1/*! For license information please see main.140a26c3.js.LICENSE.txt */ 2(()=>{var e={600(e,t){var n;!function(){"use strict";var r={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var o=typeof n;if("string"===o||"number"===o)e.push(n);else if(Array.isArray(n)){if(n.length){var i=a.apply(null,n);i&&e.push(i)}}else if("object"===o){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var s in n)r.call(n,s)&&n[s]&&e.push(s)}}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},613(e,t){var n;!function(t,n){"use strict";"object"===typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!==typeof window?window:this,function(r,a){"use strict";var o=[],i=Object.getPrototypeOf,s=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,u=o.indexOf,A={},h=A.toString,d=A.hasOwnProperty,p=d.toString,f=p.call(Object),m={},y=function(e){return"function"===typeof e&&"number"!==typeof e.nodeType&&"function"!==typeof e.item},g=function(e){return null!=e&&e===e.window},b=r.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,a,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in v)(a=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,a);n.head.appendChild(o).parentNode.removeChild(o)}function B(e){return null==e?e+"":"object"===typeof e||"function"===typeof e?A[h.call(e)]||"object":typeof e}var C="3.7.1",N=/HTML$/i,E=function(e,t){return new E.fn.init(e,t)};function x(e){var t=!!e&&"length"in e&&e.length,n=B(e);return!y(e)&&!g(e)&&("array"===n||0===t||"number"===typeof t&&t>0&&t-1 in e)}function S(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}E.fn=E.prototype={jquery:C,constructor:E,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=E.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return E.each(this,e)},map:function(e){return this.pushStack(E.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(E.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(E.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},E.extend=E.fn.extend=function(){var e,t,n,r,a,o,i=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"===typeof i&&(c=i,i=arguments[s]||{},s++),"object"===typeof i||y(i)||(i={}),s===l&&(i=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&i!==r&&(c&&r&&(E.isPlainObject(r)||(a=Array.isArray(r)))?(n=i[t],o=a&&!Array.isArray(n)?[]:a||E.isPlainObject(n)?n:{},a=!1,i[t]=E.extend(c,o,r)):void 0!==r&&(i[t]=r));return i},E.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==h.call(e))&&(!(t=i(e))||"function"===typeof(n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(x(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,a=e.nodeType;if(!a)for(;t=e[r++];)n+=E.text(t);return 1===a||11===a?e.textContent:9===a?e.documentElement.textContent:3===a||4===a?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?E.merge(n,"string"===typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!N.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,a=e.length;r<n;r++)e[a++]=t[r];return e.length=a,e},grep:function(e,t,n){for(var r=[],a=0,o=e.length,i=!n;a<o;a++)!t(e[a],a)!==i&&r.push(e[a]);return r},map:function(e,t,n){var r,a,o=0,i=[];if(x(e))for(r=e.length;o<r;o++)null!=(a=t(e[o],o,n))&&i.push(a);else for(o in e)null!=(a=t(e[o],o,n))&&i.push(a);return l(i)},guid:1,support:m}),"function"===typeof Symbol&&(E.fn[Symbol.iterator]=o[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){A["[object "+t+"]"]=t.toLowerCase()});var T=o.pop,F=o.sort,k=o.splice,U="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+U+"+|((?:^|[^\\\\])(?:\\\\.)*)"+U+"+$","g");E.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function I(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}E.escapeSelector=function(e){return(e+"").replace(O,I)};var Q=b,H=c;!function(){var e,t,n,a,i,l,c,A,h,p,f=H,y=E.expando,g=0,b=0,v=ee(),w=ee(),B=ee(),C=ee(),N=function(e,t){return e===t&&(i=!0),0},x="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",I="\\["+U+"*("+O+")(?:"+U+"*([*^$|!~]?=)"+U+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+U+"*\\]",R=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",P=new RegExp(U+"+","g"),D=new RegExp("^"+U+"*,"+U+"*"),M=new RegExp("^"+U+"*([>+~]|"+U+")"+U+"*"),_=new RegExp(U+"|>"),j=new RegExp(R),K=new RegExp("^"+O+"$"),z={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+U+"*(even|odd|(([+-]|)(\\d*)n|)"+U+"*(?:([+-]|)"+U+"*(\\d+)|))"+U+"*\\)|)","i"),bool:new RegExp("^(?:"+x+")$","i"),needsContext:new RegExp("^"+U+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+U+"*((?:-\\d)?\\d*)"+U+"*\\)|)(?=[^-]|$)","i")},W=/^(?:input|select|textarea|button)$/i,V=/^h\d$/i,G=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,q=/[+~]/,Y=new RegExp("\\\\[\\da-fA-F]{1,6}"+U+"?|\\\\([^\\r\\n\\f])","g"),X=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){le()},Z=he(function(e){return!0===e.disabled&&S(e,"fieldset")},{dir:"parentNode",next:"legend"});try{f.apply(o=s.call(Q.childNodes),Q.childNodes),o[Q.childNodes.length].nodeType}catch(be){f={apply:function(e,t){H.apply(e,s.call(t))}
vendor: 13,517 bytes, line 2
2,call:function(e){H.apply(e,s.call(arguments,1))}}}function $(e,t,n,r){var a,o,i,s,c,u,d,p=t&&t.ownerDocument,g=t?t.nodeType:9;if(n=n||[],"string"!==typeof e||!e||1!==g&&9!==g&&11!==g)return n;if(!r&&(le(t),t=t||l,A)){if(11!==g&&(c=G.exec(e)))if(a=c[1]){if(9===g){if(!(i=t.getElementById(a)))return n;if(i.id===a)return f.call(n,i),n}else if(p&&(i=p.getElementById(a))&&$.contains(t,i)&&i.id===a)return f.call(n,i),n}else{if(c[2])return f.apply(n,t.getElementsByTagName(e)),n;if((a=c[3])&&t.getElementsByClassName)return f.apply(n,t.getElementsByClassName(a)),n}if(!C[e+" "]&&(!h||!h.test(e))){if(d=e,p=t,1===g&&(_.test(e)||M.test(e))){for((p=q.test(e)&&se(t.parentNode)||t)==t&&m.scope||((s=t.getAttribute("id"))?s=E.escapeSelector(s):t.setAttribute("id",s=y)),o=(u=ue(e)).length;o--;)u[o]=(s?"#"+s:":scope")+" "+Ae(u[o]);d=u.join(",")}try{return f.apply(n,p.querySelectorAll(d)),n}catch(b){C(e,!0)}finally{s===y&&t.removeAttribute("id")}}}return ge(e.replace(L,"$1"),t,n,r)}function ee(){var e=[];return function n(r,a){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=a}}function te(e){return e[y]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(be){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return S(t,"input")&&t.type===e}}function ae(e){return function(t){return(S(t,"input")||S(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&Z(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ie(e){return te(function(t){return t=+t,te(function(n,r){for(var a,o=e([],n.length,t),i=o.length;i--;)n[a=o[i]]&&(n[a]=!(r[a]=n[a]))})})}function se(e){return e&&"undefined"!==typeof e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:Q;return r!=l&&9===r.nodeType&&r.documentElement?(c=(l=r).documentElement,A=!E.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&Q!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",J),m.getById=ne(function(e){return c.appendChild(e).id=E.expando,!l.getElementsByName||!l.getElementsByName(E.expando).length}),m.disconnectedMatch=ne(function(e){return p.call(e,"*")}),m.scope=ne(function(){return l.querySelectorAll(":scope")}),m.cssHas=ne(function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(be){return!0}}),m.getById?(t.filter.ID=function(e){var t=e.replace(Y,X);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&A){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(Y,X);return function(e){var n="undefined"!==typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if("undefined"!==typeof t.getElementById&&A){var n,r,a,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(a=t.getElementsByName(e),r=0;o=a[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return"undefined"!==typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if("undefined"!==typeof t.getElementsByClassName&&A)return t.getElementsByClassName(e)},h=[],ne(function(e){var t;c.appendChild(e).innerHTML="<a id='"+y+"' href='' disabled='disabled'></a><select id='"+y+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\["+U+"*(?:value|"+x+")"),e.querySelectorAll("[id~="+y+"-]").length||h.push("~="),e.querySelectorAll("a#"+y+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\["+U+"*name"+U+"*="+U+"*(?:''|\"\")")}),m.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),N=function(e,t){if(e===t)return i=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==Q&&$.contains(Q,e)?-1:t===l||t.ownerDocument==Q&&$.contains(Q,t)?1:a?u.call(a,e)-u.call(a,t):0:4&n?-1:1)},l):l}for(e in $.matches=function(e,t){return $(e,null,null,t)},$.matchesSelector=function(e,t){if(le(e),A&&!C[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(be){C(t,!0)}return $(t,l,null,[e]).length>0},$.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),E.contains(e,t)},$.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],a=r&&d.call(t.attrHandle,n.toLowerCase())?r(e,n,!A):void 0;return void 0!==a?a:e.getAttribute(n)},$.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],r=0,o=0;if(i=!m.sortStable,a=!m.sortStable&&s.call(e,0),F.call(e,N),i){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)k.call(e,n[r],1)}return a=null,e},E.fn.uniqueSort=function(){return this.pushStack(E.uniqueSort(s.apply(this)))},t=E.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Y,X),e[3]=(e[3]||e[4]||e[5]||"").replace(Y,X),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||$.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&$.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Y,X).toLowerCase();return"*"===e?function(){return!0}:function(e){return S(e,t)}},CLASS:function(e){var t=v[e+" "];return t||(t=new RegExp("(^|"+U+")"+e+"("+U+"|$)"))&&v(e,function(e){return t.test("string"===typeof e.className&&e.className||"undefined"!==typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var a=$.attr(r,e);return null==a?"!="===t:!t||(a+="","="===t?a===n:"!="===t?a!==n:"^="===t?n&&0===a.indexOf(n):"*="===t?n&&a.indexOf(n)>-1:"$="===t?n&&a.slice(-n.length)===n:"~="===t?(" "+a.replace(P," ")+" ").indexOf(n)>-1:"|="===t&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,a){var o="nth"!==e.slice(0,3),i="last"!==e.slice(-4),s="of-type"===t;return 1===r&&0===a?function(e){return!!e.parentNode}:function(t,n,l){var c,u,A,h,d,p=o!==i?"nextSibling":"previousSibling",f=t.parentNode,m=s&&t.nodeName.toLowerCase(),b=!l&&!s,v=!1;if(f){if(o){for(;p;){for(A=t;A=A[p];)if(s?S(A,m):1===A.nodeType)return!1;d=p="only"===e&&!d&&"nextSibling"}return!0}if(d=[i?f.firstChild:f.lastChild],i&&b){for(v=(h=(c=(u=f[y]||(f[y]={}))[e]||[])[0]===g&&c[1])&&c[2],A=h&&f.childNodes[h];A=++h&&A&&A[p]||(v=h=0)||d.pop();)if(1===A.nodeType&&++v&&A===t){u[e]=[g,h,v];break}}else if(b&&(v=h=(c=(u=t[y]||(t[y]={}))[e]||[])[0]===g&&c[1]),!1===v)for(;(A=++h&&A&&A[p]||(v=h=0)||d.pop())&&(!(s?S(A,m):1===A.nodeType)||!++v||(b&&((u=A[y]||(A[y]={}))[e]=[g,v]),A!==t)););return(v-=a)===r||v%r===0&&v/r>=0}}},PSEUDO:function(e,n){var r,a=t.pseudos[e]||t.setFilters[e.toLowerCase()]||$.error("unsupported pseudo: "+e);return a[y]?a(n):a.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te(function(e,t){for(var r,o=a(e,n),i=o.length;i--;)e[r=u.call(e,o[i])]=!(t[r]=o[i])}):function(e){return a(e,0,r)}):a}},pseudos:{not:te(function(e){var t=[],n=[],r=ye(e.replace(L,"$1"));return r[y]?te(function(e,t,n,a){for(var o,i=r(e,null,a,[]),s=e.length;s--;)(o=i[s])&&(e[s]=!(t[s]=o))}):function(e,a,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:te(function(e){return function(t){return $(e,t).length>0}}),contains:te(function(e){return e=e.replace(Y,X),function(t){return(t.textContent||E.text(t)).indexOf(e)>-1}}),lang:te(function(e){return K.test(e||"")||$.error("unsupported lang: "+e),e=e.replace(Y,X).toLowerCase(),function(t){var n;do{if(n=A?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return S(e,"input")&&!!e.checked||S(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return V.test(e.nodeName)},input:function(e){return W.test(e.nodeName)},button:function(e){return S(e,"input")&&"button"===e.type||S(e,"button")},text:function(e){var t;return S(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:ie(function(){return[0]}),last:ie(function(e,t){return[t-1]}),eq:ie(function(e,t,n){return[n<0?n+t:n]}),even:ie(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:ie(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:ie(function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e}),gt:ie(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ae(e);function ce(){}function ue(e,n){var r,a,o,i,s,l,c,u=w[e+" "];if(u)return n?0:u.slice(0);for(s=e,l=[],c=t.preFilter;s;){for(i in r&&!(a=D.exec(s))||(a&&(s=s.slice(a[0].length)||s),l.push(o=[])),r=!1,(a=M.exec(s))&&(r=a.shift(),o.push({value:r,type:a[0].replace(L," ")}),s=s.slice(r.length)),t.filter)!(a=z[i].exec(s))||c[i]&&!(a=c[i](a))||(r=a.shift(),o.push({value:r,type:i,matches:a}),s=s.slice(r.length));if(!r)break}return n?s.length:s?$.error(e):w(e,l).slice(0)}function Ae(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function he(e,t,n){var r=t.dir,a=t.next,o=a||r,i=n&&"parentNode"===o,s=b++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,a);return!1}:function(t,n,l){var c,u,A=[g,s];if(l){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||i)if(u=t[y]||(t[y]={}),a&&S(t,a))t=t[r]||t;else{if((c=u[o])&&c[0]===g&&c[1]===s)return A[2]=c[2];if(u[o]=A,A[2]=e(t,n,l))return!0}return!1}}function de(e){return e.length>1?function(t,n,r){for(var a=e.length;a--;)if(!e[a](t,n,r))return!1;return!0}:e[0]}function pe(e,t,n,r,a){for(var o,i=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,a)||(i.push(o),c&&t.push(s)));return i}function fe(e,t,n,r,a,o){return r&&!r[y]&&(r=fe(r)),a&&!a[y]&&(a=fe(a,o)),te(function(o,i,s,l){var c,A,h,d,p=[],m=[],y=i.length,g=o||function(e,t,n){for(var r=0,a=t.length;r<a;r++)$(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),b=!e||!o&&t?g:pe(g,p,e,s,l);if(n?n(b,d=a||(o?e:y||r)?[]:i,s,l):d=b,r)for(c=pe(d,m),r(c,[],s,l),A=c.length;A--;)(h=c[A])&&(d[m[A]]=!(b[m[A]]=h));if(o){if(a||e){if(a){for(c=[],A=d.length;A--;)(h=d[A])&&c.push(b[A]=h);a(null,d=[],c,l)}for(A=d.length;A--;)(h=d[A])&&(c=a?u.call(o,h):p[A])>-1&&(o[c]=!(i[c]=h))}}else d=pe(d===i?d.splice(y,d.length):d),a?a(null,i,d,l):f.apply(i,d)})}function me(e){for(var r,a,o,i=e.length,s=t.relative[e[0].type],l=s||t.relative[" "],c=s?1:0,A=he(function(e){return e===r},l,!0),h=he(function(e){return u.call(r,e)>-1},l,!0),d=[function(e,t,a){var o=!s&&(a||t!=n)||((r=t).nodeType?A(e,t,a):h(e,t,a));return r=null,o}];c<i;c++)if(a=t.relative[e[c].type])d=[he(de(d),a)];else{if((a=t.filter[e[c].type].apply(null,e[c].matches))[y]){for(o=++c;o<i&&!t.relative[e[o].type];o++);return fe(c>1&&de(d),c>1&&Ae(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(L,"$1"),a,c<o&&me(e.slice(c,o)),o<i&&me(e=e.slice(o)),o<i&&Ae(e))}d.push(a)}return de(d)}function ye(e,r){var a,o=[],i=[],s=B[e+" "];if(!s){for(r||(r=ue(e)),a=r.length;a--;)(s=me(r[a]))[y]?o.push(s):i.push(s);s=B(e,function(e,r){var a=r.length>0,o=e.length>0,i=function(i,s,c,u,h){var d,p,m,y=0,b="0",v=i&&[],w=[],B=n,C=i||o&&t.find.TAG("*",h),N=g+=null==B?1:Math.random()||.1,x=C.length;for(h&&(n=s==l||s||h);b!==x&&null!=(d=C[b]);b++){if(o&&d){for(p=0,s||d.ownerDocument==l||(le(d),c=!A);m=e[p++];)if(m(d,s||l,c)){f.call(u,d);break}h&&(g=N)}a&&((d=!m&&d)&&y--,i&&v.push(d))}if(y+=b,a&&b!==y){for(p=0;m=r[p++];)m(v,w,s,c);if(i){if(y>0)for(;b--;)v[b]||w[b]||(w[b]=T.call(u));w=pe(w)}f.apply(u,w),h&&!i&&w.length>0&&y+r.length>1&&E.uniqueSort(u)}return h&&(g=N,n=B),v};return a?te(i):i}(i,o)),s.selector=e}return s}function ge(e,n,r,a){var o,i,s,l,c,u="function"===typeof e&&e,h=!a&&ue(e=u.selector||e);if(r=r||[],1===h.length){if((i=h[0]=h[0].slice(0)).length>
vendor: 6,946 bytes, line 2
22&&"ID"===(s=i[0]).type&&9===n.nodeType&&A&&t.relative[i[1].type]){if(!(n=(t.find.ID(s.matches[0].replace(Y,X),n)||[])[0]))return r;u&&(n=n.parentNode),e=e.slice(i.shift().value.length)}for(o=z.needsContext.test(e)?0:i.length;o--&&(s=i[o],!t.relative[l=s.type]);)if((c=t.find[l])&&(a=c(s.matches[0].replace(Y,X),q.test(i[0].type)&&se(n.parentNode)||n))){if(i.splice(o,1),!(e=a.length&&Ae(i)))return f.apply(r,a),r;break}}return(u||ye(e,h))(a,n,!A,r,!n||q.test(e)&&se(n.parentNode)||n),r}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=y.split("").sort(N).join("")===y,le(),m.sortDetached=ne(function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))}),E.find=$,E.expr[":"]=E.expr.pseudos,E.unique=E.uniqueSort,$.compile=ye,$.select=ge,$.setDocument=le,$.tokenize=ue,$.escape=E.escapeSelector,$.getText=E.text,$.isXML=E.isXMLDoc,$.selectors=E.expr,$.support=E.support,$.uniqueSort=E.uniqueSort}();var R=function(e,t,n){for(var r=[],a=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(a&&E(e).is(n))break;r.push(e)}return r},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},D=E.expr.match.needsContext,M=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function _(e,t,n){return y(t)?E.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?E.grep(e,function(e){return e===t!==n}):"string"!==typeof t?E.grep(e,function(e){return u.call(t,e)>-1!==n}):E.filter(t,e,n)}E.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?E.find.matchesSelector(r,e)?[r]:[]:E.find.matches(e,E.grep(t,function(e){return 1===e.nodeType}))},E.fn.extend({find:function(e){var t,n,r=this.length,a=this;if("string"!==typeof e)return this.pushStack(E(e).filter(function(){for(t=0;t<r;t++)if(E.contains(a[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)E.find(e,a[t],n);return r>1?E.uniqueSort(n):n},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"===typeof e&&D.test(e)?E(e):e||[],!1).length}});var j,K=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(e,t,n){var r,a;if(!e)return this;if(n=n||j,"string"===typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:K.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof E?t[0]:t,E.merge(this,E.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),M.test(r[1])&&E.isPlainObject(t))for(r in t)y(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(a=b.getElementById(r[2]))&&(this[0]=a,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(E):E.makeArray(e,this)}).prototype=E.fn,j=E(b);var z=/^(?:parents|prev(?:Until|All))/,W={children:!0,contents:!0,next:!0,prev:!0};function V(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}E.fn.extend({has:function(e){var t=E(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(E.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,a=this.length,o=[],i="string"!==typeof e&&E(e);if(!D.test(e))for(;r<a;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(i?i.index(n)>-1:1===n.nodeType&&E.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?E.uniqueSort(o):o)},index:function(e){return e?"string"===typeof e?u.call(E(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),E.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return V(e,"nextSibling")},prev:function(e){return V(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&i(e.contentDocument)?e.contentDocument:(S(e,"template")&&(e=e.content||e),E.merge([],e.childNodes))}},function(e,t){E.fn[e]=function(n,r){var a=E.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"===typeof r&&(a=E.filter(r,a)),this.length>1&&(W[e]||E.uniqueSort(a),z.test(e)&&a.reverse()),this.pushStack(a)}});var G=/[^\x20\t\r\n\f]+/g;function q(e){return e}function Y(e){throw e}function X(e,t,n,r){var a;try{e&&y(a=e.promise)?a.call(e).done(t).fail(n):e&&y(a=e.then)?a.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}E.Callbacks=function(e){e="string"===typeof e?function(e){var t={};return E.each(e.match(G)||[],function(e,n){t[n]=!0}),t}(e):E.extend({},e);var t,n,r,a,o=[],i=[],s=-1,l=function(){for(a=a||e.once,r=t=!0;i.length;s=-1)for(n=i.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=o.length,n=!1);e.memory||(n=!1),t=!1,a&&(o=n?[]:"")},c={add:function(){return o&&(n&&!t&&(s=o.length-1,i.push(n)),function t(n){E.each(n,function(n,r){y(r)?e.unique&&c.has(r)||o.push(r):r&&r.length&&"string"!==B(r)&&t(r)})}(arguments),n&&!t&&l()),this},remove:function(){return E.each(arguments,function(e,t){for(var n;(n=E.inArray(t,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(e){return e?E.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return a=i=[],o=n="",this},disabled:function(){return!o},lock:function(){return a=i=[],n||t||(o=n=""),this},locked:function(){return!!a},fireWith:function(e,n){return a||(n=[e,(n=n||[]).slice?n.slice():n],i.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!r}};return c},E.extend({Deferred:function(e){var t=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],n="pending",a={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var e=arguments;return E.Deferred(function(n){E.each(t,function(t,r){var a=y(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=a&&a.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,a?[e]:arguments)})}),e=null}).promise()},then:function(e,n,a){var o=0;function i(e,t,n,a){return function(){var s=this,l=arguments,c=function(){var r,c;if(!(e<o)){if((r=n.apply(s,l))===t.promise())throw new TypeError("Thenable self
2-resolution");c=r&&("object"===typeof r||"function"===typeof r)&&r.then,y(c)?a?c.call(r,i(o,t,q,a),i(o,t,Y,a)):(o++,c.call(r,i(o,t,q,a),i(o,t,Y,a),i(o,t,q,t.notifyWith))):(n!==q&&(s=void 0,l=[r]),(a||t.resolveWith)(s,l))}},u=a?c:function(){try{c()}catch(r){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(r,u.error),e+1>=o&&(n!==Y&&(s=void 0,l=[r]),t.rejectWith(s,l))}};e?u():(E.Deferred.getErrorHook?u.error=E.Deferred.getErrorHook():E.Deferred.getStackHook&&(u.error=E.Deferred.getStackHook()),r.setTimeout(u))}}return E.Deferred(function(r){t[0][3].add(i(0,r,y(a)?a:q,r.notifyWith)),t[1][3].add(i(0,r,y(e)?e:q)),t[2][3].add(i(0,r,y(n)?n:Y))}).promise()},promise:function(e){return null!=e?E.extend(e,a):a}},o={};return E.each(t,function(e,r){var i=r[2],s=r[5];a[r[1]]=i.add,s&&i.add(function(){n=s},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),i.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=i.fireWith}),a.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),a=s.call(arguments),o=E.Deferred(),i=function(e){return function(n){r[e]=this,a[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(r,a)}};if(t<=1&&(X(e,o.done(i(n)).resolve,o.reject,!t),"pending"===o.state()||y(a[n]&&a[n].then)))return o.then();for(;n--;)X(a[n],i(n),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&J.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},E.readyException=function(e){r.setTimeout(function(){throw e})};var Z=E.Deferred();function $(){b.removeEventListener("DOMContentLoaded",$),r.removeEventListener("load",$),E.ready()}E.fn.ready=function(e){return Z.then(e).catch(function(e){E.readyException(e)}),this},E.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--E.readyWait:E.isReady)||(E.isReady=!0,!0!==e&&--E.readyWait>0||Z.resolveWith(b,[E]))}}),E.ready.then=Z.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(E.ready):(b.addEventListener("DOMContentLoaded",$),r.addEventListener("load",$));var ee=function(e,t,n,r,a,o,i){var s=0,l=e.length,c=null==n;if("object"===B(n))for(s in a=!0,n)ee(e,t,s,n[s],!0,o,i);else if(void 0!==r&&(a=!0,y(r)||(i=!0),c&&(i?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(E(e),n)})),t))for(;s<l;s++)t(e[s],n,i?r:r.call(e[s],s,t(e[s],n)));return a?e:c?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ae(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function ie(){this.expando=E.expando+ie.uid++}ie.uid=1,ie.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,a=this.cache(e);if("string"===typeof t)a[ae(t)]=n;else for(r in t)a[ae(r)]=t[r];return a},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ae(t)]},access:function(e,t,n){return void 0===t||t&&"string"===typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ae):(t=ae(t))in r?[t]:t.match(G)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||E.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var se=new ie,le=new ie,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function Ae(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ue,"-$&").toLowerCase(),"string"===typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(a){}le.set(e,t,n)}else n=void 0;return n}E.extend({hasData:function(e){return le.hasData(e)||se.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return se.access(e,t,n)},_removeData:function(e,t){se.remove(e,t)}}),E.fn.extend({data:function(e,t){var n,r,a,o=this[0],i=o&&o.attributes;if(void 0===e){if(this.length&&(a=le.get(o),1===o.nodeType&&!se.get(o,"hasDataAttrs"))){for(n=i.length;n--;)i[n]&&0===(r=i[n].name).indexOf("data-")&&(r=ae(r.slice(5)),Ae(o,r,a[r]));se.set(o,"hasDataAttrs",!0)}return a}return"object"===typeof e?this.each(function(){le.set(this,e)}):ee(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=Ae(o,e))?n:void 0;this.each(function(){le.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){le.remove(this,e)})}}),E.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=se.get(e,t),n&&(!r||Array.isArray(n)?r=se.access(e,t,E.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=E.queue(e,t),r=n.length,a=n.shift(),o=E._queueHooks(e,t);"inprogress"===a&&(a=n.shift(),r--),a&&("fx"===t&&n.unshift("inprogress"),delete o.stop,a.call(e,function(){E.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return se.get(e,n)||se.access(e,n,{empty:E.Callbacks("once memory").add(function(){se.remove(e,[t+"queue",n])})})}}),E.fn.extend({queue:function(e,t){var n=2;return"string"!==typeof e&&(t=e,e="fx",n--),arguments.length<n?E.queue(this[0],e):void 0===t?this:this.each(function(){var n=E.queue(this,e,t);E._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&E.dequeue(this,e)})},dequeue:function(e){return this.each(function(){E.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,a=E.Deferred(),o=this,i=this.length,s=function(){--r||a.resolveWith(o,[o])};for("string"!==typeof e&&(t=e,e=void 0),e=e||"fx";i--;)(n=se.get(o[i],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),a.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,de=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],fe=b.documentElement,me=function(e){return E.contains(e.ownerDocument,e)},ye={composed:!0};fe.getRootNode&&(me=function(e){return E.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});var ge=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===E.css(e,"display")};function be(e,t,n,r){var a,o,i=20,s=r?function(){return r.cur()}:function(){return E.css(e,t,"")},l=s(),c=n&&n[3]||(E.cssNumber[t]?"":"px"),u=e.nodeType&&(E.cssNumber[t]||"px"!==c&&+l)&&de.exec(E.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;i--;)E.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(i=0),u/=o;u*=2,E.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,a=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=a)),a}var ve={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,a=ve[r];return a||(t=n.body.appendChild(n.createElement(r)),a=E.css(t,"display"),t.parentNode.removeChild(t),"none"===a&&(a="block"),ve[r]=a,a)}function Be(e,t){for(var n,r,a=[],o=0,i=e.length;o<i;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(a[o]=se.get(r,"display")||null,a[o]||(r.style.display="")),""===r.style.display&&ge(r)&&(a[o]=we(r))):"none"!==n&&(a[o]="none",se.set(r,"display",n)));for(o=0;o<i;o++)null!=a[o]&&(e[o].style.display=a[o]);return e}E.fn.extend({show:function(){return Be(this,!0)},hide:function(){return Be(this)},toggle:function(e){return"boolean"===typeof e?e?this.show():this.hide():this.each(function(){ge(this)?E(this).show():E(this).hide()})}});var Ce=/^(?:checkbox|radio)$/i,Ne=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i;!function(){var e=b.createDocumentFragment().appendChild(b.createElement("div")),t=b.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),m.checkClone
vendor: 8,954 bytes, line 2
2=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue,e.innerHTML="<option></option>",m.option=!!e.lastChild}();var xe={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,"",""]};function Se(e,t){var n;return n="undefined"!==typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!==typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&S(e,t)?E.merge([e],n):n}function Te(e,t){for(var n=0,r=e.length;n<r;n++)se.set(e[n],"globalEval",!t||se.get(t[n],"globalEval"))}xe.tbody=xe.tfoot=xe.colgroup=xe.caption=xe.thead,xe.th=xe.td,m.option||(xe.optgroup=xe.option=[1,"<select multiple='multiple'>","</select>"]);var Fe=/<|&#?\w+;/;function ke(e,t,n,r,a){for(var o,i,s,l,c,u,A=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===B(o))E.merge(h,o.nodeType?[o]:o);else if(Fe.test(o)){for(i=i||A.appendChild(t.createElement("div")),s=(Ne.exec(o)||["",""])[1].toLowerCase(),l=xe[s]||xe._default,i.innerHTML=l[1]+E.htmlPrefilter(o)+l[2],u=l[0];u--;)i=i.lastChild;E.merge(h,i.childNodes),(i=A.firstChild).textContent=""}else h.push(t.createTextNode(o));for(A.textContent="",d=0;o=h[d++];)if(r&&E.inArray(o,r)>-1)a&&a.push(o);else if(c=me(o),i=Se(A.appendChild(o),"script"),c&&Te(i),n)for(u=0;o=i[u++];)Ee.test(o.type||"")&&n.push(o);return A}var Ue=/^([^.]*)(?:\.(.+)|)/;function Le(){return!0}function Oe(){return!1}function Ie(e,t,n,r,a,o){var i,s;if("object"===typeof t){for(s in"string"!==typeof n&&(r=r||n,n=void 0),t)Ie(e,s,n,r,t[s],o);return e}if(null==r&&null==a?(a=n,r=n=void 0):null==a&&("string"===typeof n?(a=r,r=void 0):(a=r,r=n,n=void 0)),!1===a)a=Oe;else if(!a)return e;return 1===o&&(i=a,a=function(e){return E().off(e),i.apply(this,arguments)},a.guid=i.guid||(i.guid=E.guid++)),e.each(function(){E.event.add(this,t,a,r,n)})}function Qe(e,t,n){n?(se.set(e,t,!1),E.event.add(e,t,{namespace:!1,handler:function(e){var n,r=se.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(E.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=s.call(arguments),se.set(this,t,r),this[t](),n=se.get(this,t),se.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(se.set(this,t,E.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Le)}})):void 0===se.get(e,t)&&E.event.add(e,t,Le)}E.event={global:{},add:function(e,t,n,r,a){var o,i,s,l,c,u,A,h,d,p,f,m=se.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,a=o.selector),a&&E.find.matchesSelector(fe,a),n.guid||(n.guid=E.guid++),(l=m.events)||(l=m.events=Object.create(null)),(i=m.handle)||(i=m.handle=function(t){return"undefined"!==typeof E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(G)||[""]).length;c--;)d=f=(s=Ue.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),d&&(A=E.event.special[d]||{},d=(a?A.delegateType:A.bindType)||d,A=E.event.special[d]||{},u=E.extend({type:d,origType:f,data:r,handler:n,guid:n.guid,selector:a,needsContext:a&&E.expr.match.needsContext.test(a),namespace:p.join(".")},o),(h=l[d])||((h=l[d]=[]).delegateCount=0,A.setup&&!1!==A.setup.call(e,r,p,i)||e.addEventListener&&e.addEventListener(d,i)),A.add&&(A.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),a?h.splice(h.delegateCount++,0,u):h.push(u),E.event.global[d]=!0)},remove:function(e,t,n,r,a){var o,i,s,l,c,u,A,h,d,p,f,m=se.hasData(e)&&se.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(G)||[""]).length;c--;)if(d=f=(s=Ue.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),d){for(A=E.event.special[d]||{},h=l[d=(r?A.delegateType:A.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=o=h.length;o--;)u=h[o],!a&&f!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,A.remove&&A.remove.call(e,u));i&&!h.length&&(A.teardown&&!1!==A.teardown.call(e,p,m.handle)||E.removeEvent(e,d,m.handle),delete l[d])}else for(d in l)E.event.remove(e,d+t[c],n,r,!0);E.isEmptyObject(l)&&se.remove(e,"handle events")}},dispatch:function(e){var t,n,r,a,o,i,s=new Array(arguments.length),l=E.event.fix(e),c=(se.get(this,"events")||Object.create(null))[l.type]||[],u=E.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(i=E.event.handlers.call(this,l,c),t=0;(a=i[t++])&&!l.isPropagationStopped();)for(l.currentTarget=a.elem,n=0;(o=a.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((E.event.special[o.origType]||{}).handle||o.handler).apply(a.elem,s))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,a,o,i,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],i={},n=0;n<l;n++)void 0===i[a=(r=t[n]).selector+" "]&&(i[a]=r.needsContext?E(a,this).index(c)>-1:E.find(a,this,null,[c]).length),i[a]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[E.expando]?e:new E.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&S(t,"input")&&Qe(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&S(t,"input")&&Qe(t,"click"),!0},_default:function(e){var t=e.target;return Ce.test(t.type)&&t.click&&S(t,"input")&&se.get(t,"click")||S(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},E.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},E.Event=function(e,t){if(!(this instanceof E.Event))return new E.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Le:Oe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&E.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Oe,isPropagationStopped:Oe,isImmediatePropagationStopped:Oe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Le,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Le,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Le,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},E.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},E.event.addProp),E.each({focus:"focusin",blur:"focusout"},function(e,t){function n(e){if(b.documentMode){var n=se.get(this,"handle"),r=E.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else E.event.simulate(t,e.target,E.event.fix(e))}E.event.special[e]={setup:function(){var r;if(Qe(this,e,!0),!b.documentMode)return!1;(r=se.get(this,t))||this.addEventListener(t,n),se.set(this,t,(r||0)+1)},trigger:function(){return Qe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=se.get(this,t)-1)?se.set(this,t,e):(this.removeEventListener(t,n),se.remove(this,t))},_default:function(t){return se.get(t.target,e)},delegateType:t},E.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,a=b.documentMode?this:r,o=se.get(a,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),se.set(a,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,a=b.documentMode?this:r,o=se.get(a,t)-1;o?se.set(a,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),se.remove(a,t))}}}
vendor: 5,956 bytes, line 2
2),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){E.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,a=e.handleObj;return r&&(r===this||E.contains(this,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),E.fn.extend({on:function(e,t,n,r){return Ie(this,e,t,n,r)},one:function(e,t,n,r){return Ie(this,e,t,n,r,1)},off:function(e,t,n){var r,a;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,E(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"===typeof e){for(a in e)this.off(a,t,e[a]);return this}return!1!==t&&"function"!==typeof t||(n=t,t=void 0),!1===n&&(n=Oe),this.each(function(){E.event.remove(this,e,n,t)})}});var He=/<script|<style|<link/i,Re=/checked\s*(?:[^=]|=\s*.checked.)/i,Pe=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function De(e,t){return S(e,"table")&&S(11!==t.nodeType?t:t.firstChild,"tr")&&E(e).children("tbody")[0]||e}function Me(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function _e(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function je(e,t){var n,r,a,o,i,s;if(1===t.nodeType){if(se.hasData(e)&&(s=se.get(e).events))for(a in se.remove(t,"handle events"),s)for(n=0,r=s[a].length;n<r;n++)E.event.add(t,a,s[a][n]);le.hasData(e)&&(o=le.access(e),i=E.extend({},o),le.set(t,i))}}function Ke(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ce.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=l(t);var a,o,i,s,c,u,A=0,h=e.length,d=h-1,p=t[0],f=y(p);if(f||h>1&&"string"===typeof p&&!m.checkClone&&Re.test(p))return e.each(function(a){var o=e.eq(a);f&&(t[0]=p.call(this,a,o.html())),ze(o,t,n,r)});if(h&&(o=(a=ke(t,e[0].ownerDocument,!1,e,r)).firstChild,1===a.childNodes.length&&(a=o),o||r)){for(s=(i=E.map(Se(a,"script"),Me)).length;A<h;A++)c=a,A!==d&&(c=E.clone(c,!0,!0),s&&E.merge(i,Se(c,"script"))),n.call(e[A],c,A);if(s)for(u=i[i.length-1].ownerDocument,E.map(i,_e),A=0;A<s;A++)c=i[A],Ee.test(c.type||"")&&!se.access(c,"globalEval")&&E.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?E._evalUrl&&!c.noModule&&E._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(Pe,""),c,u))}return e}function We(e,t,n){for(var r,a=t?E.filter(t,e):e,o=0;null!=(r=a[o]);o++)n||1!==r.nodeType||E.cleanData(Se(r)),r.parentNode&&(n&&me(r)&&Te(Se(r,"script")),r.parentNode.removeChild(r));return e}E.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,a,o,i,s=e.cloneNode(!0),l=me(e);if(!m.noCloneChecked&&(1===e.nodeType||11===e.nodeType)&&!E.isXMLDoc(e))for(i=Se(s),r=0,a=(o=Se(e)).length;r<a;r++)Ke(o[r],i[r]);if(t)if(n)for(o=o||Se(e),i=i||Se(s),r=0,a=o.length;r<a;r++)je(o[r],i[r]);else je(e,s);return(i=Se(s,"script")).length>0&&Te(i,!l&&Se(e,"script")),s},cleanData:function(e){for(var t,n,r,a=E.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[se.expando]){if(t.events)for(r in t.events)a[r]?E.event.remove(n,r):E.removeEvent(n,r,t.handle);n[se.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),E.fn.extend({detach:function(e){return We(this,e,!0)},remove:function(e){return We(this,e)},text:function(e){return ee(this,function(e){return void 0===e?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return ze(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return ze(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return ze(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(E.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return E.clone(this,e,t)})},html:function(e){return ee(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"===typeof e&&!He.test(e)&&!xe[(Ne.exec(e)||["",""])[1].toLowerCase()]){e=E.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(E.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(a){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,function(t){var n=this.parentNode;E.inArray(this,e)<0&&(E.cleanData(Se(this)),n&&n.replaceChild(t,this))},e)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){E.fn[e]=function(e){for(var n,r=[],a=E(e),o=a.length-1,i=0;i<=o;i++)n=i===o?this:this.clone(!0),E(a[i])[t](n),c.apply(r,n.get());return this.pushStack(r)}});var Ve=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ge=/^--/,qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Ye=function(e,t,n){var r,a,o={};for(a in t)o[a]=e.style[a],e.style[a]=t[a];for(a in r=n.call(e),t)e.style[a]=o[a];return r},Xe=new RegExp(pe.join("|"),"i");function Je(e,t,n){var r,a,o,i,s=Ge.test(t),l=e.style;return(n=n||qe(e))&&(i=n.getPropertyValue(t)||n[t],s&&i&&(i=i.replace(L,"$1")||void 0),""!==i||me(e)||(i=E.style(e,t)),!m.pixelBoxStyles()&&Ve.test(i)&&Xe.test(t)&&(r=l.width,a=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=i,i=n.width,l.width=r,l.minWidth=a,l.maxWidth=o)),void 0!==i?i+"":i}function Ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;
2left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",fe.appendChild(c).appendChild(u);var e=r.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",i=36===t(e.right),a=36===t(e.width),u.style.position="absolute",o=12===t(u.offsetWidth/3),fe.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,a,o,i,s,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,E.extend(m,{boxSizingReliable:function(){return e(),a},pixelBoxStyles:function(){return e(),i},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,a;return null==s&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",fe.appendChild(e).appendChild(t).appendChild(n),a=r.getComputedStyle(t),s=parseInt(a.height,10)+parseInt(a.borderTopWidth,10)+parseInt(a.borderBottomWidth,10)===t.offsetHeight,fe.removeChild(e)),s}}))}();var $e=["Webkit","Moz","ms"],et=b.createElement("div").style,tt={};function nt(e){var t=E.cssProps[e]||tt[e];return t||(e in et?e:tt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=$e.length;n--;)if((e=$e[n]+t)in et)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,at={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function it(e,t,n){var r=de.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function st(e,t,n,r,a,o){var i="width"===t?1:0,s=0,l=0,c=0;if(n===(r?"border":"content"))return 0;for(;i<4;i+=2)"margin"===n&&(c+=E.css(e,n+pe[i],!0,a)),r?("content"===n&&(l-=E.css(e,"padding"+pe[i],!0,a)),"margin"!==n&&(l-=E.css(e,"border"+pe[i]+"Width",!0,a))):(l+=E.css(e,"padding"+pe[i],!0,a),"padding"!==n?l+=E.css(e,"border"+pe[i]+"Width",!0,a):s+=E.css(e,"border"+pe[i]+"Width",!0,a));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))||0),l+c}function lt(e,t,n){var r=qe(e),a=(!m.boxSizingReliable()||n)&&"border-box"===E.css(e,"boxSizing",!1,r),o=a,i=Je(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(Ve.test(i)){if(!n)return i;i="auto"}return(!m.boxSizingReliable()&&a||!m.reliableTrDimensions()&&S(e,"tr")||"auto"===i||!parseFloat(i)&&"inline"===E.css(e,"display",!1,r))&&e.getClientRects().length&&(a="border-box"===E.css(e,"boxSizing",!1,r),(o=s in e)&&(i=e[s])),(i=parseFloat(i)||0)+st(e,t,n||(a?"border":"content"),o,r,i)+"px"}function ct(e,t,n,r,a){return new ct.prototype.init(e,t,n,r,a)}E.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Je(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var a,o,i,s=ae(t),l=Ge.test(t),c=e.style;if(l||(t=nt(s)),i=E.cssHooks[t]||E.cssHooks[s],void 0===n)return i&&"get"in i&&void 0!==(a=i.get(e,!1,r))?a:c[t];"string"===(o=typeof n)&&(a=de.exec(n))&&a[1]&&(n=be(e,t,a),o="number"),null!=n&&n===n&&("number"!==o||l||(n+=a&&a[3]||(E.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),i&&"set"in i&&void 0===(n=i.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var a,o,i,s=ae(t);return Ge.test(t)||(t=nt(s)),(i=E.cssHooks[t]||E.cssHooks[s])&&"get"in i&&(a=i.get(e,!0,n)),void 0===a&&(a=Je(e,t,r)),"normal"===a&&t in ot&&(a=ot[t]),""===n||n?(o=parseFloat(a),!0===n||isFinite(o)?o||0:a):a}}),E.each(["height","width"],function(e,t){E.cssHooks[t]={get:function(e,n,r){if(n)return!rt.test(E.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?lt(e,t,r):Ye(e,at,function(){return lt(e,t,r)})},set:function(e,n,r){var a,o=qe(e),i=!m.scrollboxSize()&&"absolute"===o.position,s=(i||r)&&"border-box"===E.css(e,"boxSizing",!1,o),l=r?st(e,t,r,s,o):0;return s&&i&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-st(e,t,"border",!1,o)-.5)),l&&(a=de.exec(n))&&"px"!==(a[3]||"px")&&(e.style[t]=n,n=E.css(e,t)),it(0,n,l)}}}
vendor: 7,305 bytes, line 2
2),E.cssHooks.marginLeft=Ze(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Je(e,"marginLeft"))||e.getBoundingClientRect().left-Ye(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(e,t){E.cssHooks[e+t]={expand:function(n){for(var r=0,a={},o="string"===typeof n?n.split(" "):[n];r<4;r++)a[e+pe[r]+t]=o[r]||o[r-2]||o[0];return a}},"margin"!==e&&(E.cssHooks[e+t].set=it)}),E.fn.extend({css:function(e,t){return ee(this,function(e,t,n){var r,a,o={},i=0;if(Array.isArray(t)){for(r=qe(e),a=t.length;i<a;i++)o[t[i]]=E.css(e,t[i],!1,r);return o}return void 0!==n?E.style(e,t,n):E.css(e,t)},e,t,arguments.length>1)}}),E.Tween=ct,ct.prototype={constructor:ct,init:function(e,t,n,r,a,o){this.elem=e,this.prop=n,this.easing=a||E.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(E.cssNumber[n]?"":"px")},cur:function(){var e=ct.propHooks[this.prop];return e&&e.get?e.get(this):ct.propHooks._default.get(this)},run:function(e){var t,n=ct.propHooks[this.prop];return this.options.duration?this.pos=t=E.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ct.propHooks._default.set(this),this}},ct.prototype.init.prototype=ct.prototype,ct.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=E.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){E.fx.step[e.prop]?E.fx.step[e.prop](e):1!==e.elem.nodeType||!E.cssHooks[e.prop]&&null==e.elem.style[nt(e.prop)]?e.elem[e.prop]=e.now:E.style(e.elem,e.prop,e.now+e.unit)}}},ct.propHooks.scrollTop=ct.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},E.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},E.fx=ct.prototype.init,E.fx.step={};var ut,At,ht=/^(?:toggle|show|hide)$/,dt=/queueHooks$/;function pt(){At&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(pt):r.setTimeout(pt,E.fx.interval),E.fx.tick())}function ft(){return r.setTimeout(function(){ut=void 0}),ut=Date.now()}function mt(e,t){var n,r=0,a={height:e};for(t=t?1:0;r<4;r+=2-t)a["margin"+(n=pe[r])]=a["padding"+n]=e;return t&&(a.opacity=a.width=e),a}function yt(e,t,n){for(var r,a=(gt.tweeners[t]||[]).concat(gt.tweeners["*"]),o=0,i=a.length;o<i;o++)if(r=a[o].call(n,t,e))return r}function gt(e,t,n){var r,a,o=0,i=gt.prefilters.length,s=E.Deferred().always(function(){delete l.elem}),l=function(){if(a)return!1;for(var t=ut||ft(),n=Math.max(0,c.startTime+c.duration-t),r=1-(n/c.duration||0),o=0,i=c.tweens.length;o<i;o++)c.tweens[o].run(r);return s.notifyWith(e,[c,r,n]),r<1&&i?n:(i||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},n),originalProperties:t,originalOptions:n,startTime:ut||ft(),duration:n.duration,tweens:[],createTween:function(t,n){var r=E.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(a)return this;for(a=!0;n<r;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,r,a,o,i;for(n in e)if(a=t[r=ae(n)],o=e[n],Array.isArray(o)&&(a=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(i=E.cssHooks[r])&&"expand"in i)for(n in o=i.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=a);else t[r]=a}(u,c.opts.specialEasing);o<i;o++)if(r=gt.prefilters[o].call(c,e,u,c.opts))return y(r.stop)&&(E._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return E.map(u,yt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),E.fx.timer(E.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}E.Animation=E.extend(gt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,de.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(G);for(var n,r=0,a=e.length;r<a;r++)n=e[r],gt.tweeners[n]=gt.tweeners[n]||[],gt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,a,o,i,s,l,c,u,A="width"in t||"height"in t,h=this,d={},p=e.style,f=e.nodeType&&ge(e),m=se.get(e,"fxshow");for(r in n.queue||(null==(i=E._queueHooks(e,"fx")).unqueued&&(i.unqueued=0,s=i.empty.fire,i.empty.fire=function(){i.unqueued||s()}),i.unqueued++,h.always(function(){h.always(function(){i.unqueued--,E.queue(e,"fx").length||i.empty.fire()})})),t)if(a=t[r],ht.test(a)){if(delete t[r],o=o||"toggle"===a,a===(f?"hide":"show")){if("show"!==a||!m||void 0===m[r])continue;f=!0}d[r]=m&&m[r]||E.style(e,r)}if((l=!E.isEmptyObject(t))||!E.isEmptyObject(d))for(r in A&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=se.get(e,"display")),"none"===(u=E.css(e,"display"))&&(c?u=c:(Be([e],!0),c=e.style.display||c,u=E.css(e,"display"),Be([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===E.css(e,"float")&&(l||(h.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,d)l||(m?"hidden"in m&&(f=m.hidden):m=se.access(e,"fxshow",{display:c}),o&&(m.hidden=!f),f&&Be([e],!0),h.done(function(){for(r in f||Be([e]),se.remove(e,"fxshow"),d)E.style(e,r,d[r])})),l=yt(f?m[r]:0,r,h),r in m||(m[r]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?gt.prefilters.unshift(e):gt.prefilters.push(e)}}),E.speed=function(e,t,n){var r=e&&"object"===typeof e?E.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return E.fx.off?r.duration=0:"number"!==typeof r.duration&&(r.duration in E.fx.speeds?r.duration=E.fx.speeds[r.duration]:r.duration=E.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){y(r.old)&&r.old.call(this),r.queue&&E.dequeue(this,r.queue)},r},E.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ge).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var a=E.isEmptyObject(e),o=E.speed(t,n,r),i=function(){var t=gt(this,E.extend({},e),o);(a||se.get(this,"finish"))&&t.stop(!0)};return i.finish=i,a||!1===o.queue?this.each(i):this.queue(o.queue,i)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!==typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each(function(){var t=!0,a=null!=e&&e+"queueHooks",o=E.timers,i=se.get(this);if(a)i[a]&&i[a].stop&&r(i[a]);else for(a in i)i[a]&&i[a].stop&&dt.test(a)&&r(i[a]);for(a=o.length;a--;)o[a].elem!==this||null!=e&&o[a].queue!==e||(o[a].anim.stop(n),t=!1,o.splice(a,1));!t&&n||E.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=se.get(this),r=n[e+"queue"],a=n[e+"queueHooks"],o=E.timers,i=r?r.length:0;for(n.finish=!0,E.queue(this,e,[]),a&&a.stop&&a.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1)
vendor: 18,880 bytes, line 2
2);for(t=0;t<i;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),E.each(["toggle","show","hide"],function(e,t){var n=E.fn[t];E.fn[t]=function(e,r,a){return null==e||"boolean"===typeof e?n.apply(this,arguments):this.animate(mt(t,!0),e,r,a)}}),E.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){E.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),E.timers=[],E.fx.tick=function(){var e,t=0,n=E.timers;for(ut=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||E.fx.stop(),ut=void 0},E.fx.timer=function(e){E.timers.push(e),E.fx.start()},E.fx.interval=13,E.fx.start=function(){At||(At=!0,pt())},E.fx.stop=function(){At=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(e,t){return e=E.fx&&E.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,n){var a=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(a)}})},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var bt,vt=E.expr.attrHandle;E.fn.extend({attr:function(e,t){return ee(this,E.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){E.removeAttr(this,e)})}}),E.extend({attr:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"===typeof e.getAttribute?E.prop(e,t,n):(1===o&&E.isXMLDoc(e)||(a=E.attrHooks[t.toLowerCase()]||(E.expr.match.bool.test(t)?bt:void 0)),void 0!==n?null===n?void E.removeAttr(e,t):a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:(e.setAttribute(t,n+""),n):a&&"get"in a&&null!==(r=a.get(e,t))?r:null==(r=E.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&S(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,a=t&&t.match(G);if(a&&1===e.nodeType)for(;n=a[r++];)e.removeAttribute(n)}}),bt={set:function(e,t,n){return!1===t?E.removeAttr(e,n):e.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(e,t){var n=vt[t]||E.find.attr;vt[t]=function(e,t,r){var a,o,i=t.toLowerCase();return r||(o=vt[i],vt[i]=a,a=null!=n(e,t,r)?i:null,vt[i]=o),a}});var wt=/^(?:input|select|textarea|button)$/i,Bt=/^(?:a|area)$/i;function Ct(e){return(e.match(G)||[]).join(" ")}function Nt(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"===typeof e&&e.match(G)||[]}E.fn.extend({prop:function(e,t){return ee(this,E.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[E.propFix[e]||e]})}}),E.extend({prop:function(e,t,n){var r,a,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&E.isXMLDoc(e)||(t=E.propFix[t]||t,a=E.propHooks[t]),void 0!==n?a&&"set"in a&&void 0!==(r=a.set(e,n,t))?r:e[t]=n:a&&"get"in a&&null!==(r=a.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=E.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||Bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(E.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,r,a,o,i;return y(e)?this.each(function(t){E(this).addClass(e.call(this,t,Nt(this)))}):(t=Et(e)).length?this.each(function(){if(r=Nt(this),n=1===this.nodeType&&" "+Ct(r)+" "){for(o=0;o<t.length;o++)a=t[o],n.indexOf(" "+a+" ")<0&&(n+=a+" ");i=Ct(n),r!==i&&this.setAttribute("class",i)}}):this},removeClass:function(e){var t,n,r,a,o,i;return y(e)?this.each(function(t){E(this).removeClass(e.call(this,t,Nt(this)))}):arguments.length?(t=Et(e)).length?this.each(function(){if(r=Nt(this),n=1===this.nodeType&&" "+Ct(r)+" "){for(o=0;o<t.length;o++)for(a=t[o];n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");i=Ct(n),r!==i&&this.setAttribute("class",i)}}):this:this.attr("class","")},toggleClass:function(e,t){var n,r,a,o,i=typeof e,s="string"===i||Array.isArray(e);return y(e)?this.each(function(n){E(this).toggleClass(e.call(this,n,Nt(this),t),t)}):"boolean"===typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=Et(e),this.each(function(){if(s)for(o=E(this),a=0;a<n.length;a++)r=n[a],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==i||((r=Nt(this))&&se.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":se.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Ct(Nt(n))+" ").indexOf(t)>-1)return!0;return!1}});var xt=/\r/g;E.fn.extend({val:function(e){var t,n,r,a=this[0];return arguments.length?(r=y(e),this.each(function(n){var a;1===this.nodeType&&(null==(a=r?e.call(this,n,E(this).val()):e)?a="":"number"===typeof a?a+="":Array.isArray(a)&&(a=E.map(a,function(e){return null==e?"":e+""})),(t=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,a,"value")||(this.value=a))})):a?(t=E.valHooks[a.type]||E.valHooks[a.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(a,"value"))?n:"string"===typeof(n=a.value)?n.replace(xt,""):null==n?"":n:void 0}}),E.extend({valHooks:{option:{get:function(e){var t=E.find.attr(e,"value");return null!=t?t:Ct(E.text(e))}},select:{get:function(e){var t,n,r,a=e.options,o=e.selectedIndex,i="select-one"===e.type,s=i?null:[],l=i?o+1:a.length;for(r=o<0?l:i?o:0;r<l;r++)if(((n=a[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!S(n.parentNode,"optgroup"))){if(t=E(n).val(),i)return t;s.push(t)}return s},set:function(e,t){for(var n,r,a=e.options,o=E.makeArray(t),i=a.length;i--;)((r=a[i]).selected=E.inArray(E.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=E.inArray(E(e).val(),t)>-1}},m.checkOn||(E.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var St=r.location,Tt={guid:Date.now()},Ft=/\?/;E.parseXML=function(e){var t,n;if(!e||"string"!==typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(a){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||E.error("Invalid XML: "+(n?E.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var kt=/^(?:focusinfocus|focusoutblur)$/,Ut=function(e){e.stopPropagation()};E.extend(E.event,{trigger:function(e,t,n,a){var o,i,s,l,c,u,A,h,p=[n||b],f=d.call(e,"type")?e.type:e,m=d.call(e,"namespace")?e.namespace.split("."):[];if(i=h=s=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!kt.test(f+E.event.triggered)&&(f.indexOf(".")>-1&&(m=f.split("."),f=m.shift(),m.sort()),c=f.indexOf(":")<0&&"on"+f,(e=e[E.expando]?e:new E.Event(f,"object"===typeof e&&e)).isTrigger=a?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:E.makeArray(t,[e]),A=E.event.special[f]||{},a||!A.trigger||!1!==A.trigger.apply(n,t))){if(!a&&!A.noBubble&&!g(n)){for(l=A.delegateType||f,kt.test(l+f)||(i=i.parentNode);i;i=i.parentNode)p.push(i),s=i;s===(n.ownerDocument||b)&&p.push(s.defaultView||s.parentWindow||r)}for(o=0;(i=p[o++])&&!e.isPropagationStopped();)h=i,e.type=o>1?l:A.bindType||f,(u=(se.get(i,"events")||Object.create(null))[e.type]&&se.get(i,"handle"))&&u.apply(i,t),(u=c&&i[c])&&u.apply&&oe(i)&&(e.result=u.apply(i,t),!1===e.result&&e.preventDefault());return e.type=f,a||e.isDefaultPrevented()||A._default&&!1!==A._default.apply(p.pop(),t)||!oe(n)||c&&y(n[f])&&!g(n)&&((s=n[c])&&(n[c]=null),E.event.triggered=f,e.isPropagationStopped()&&h.addEventListener(f,Ut),n[f](),e.isPropagationStopped()&&h.removeEventListener(f,Ut),E.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var r=E.extend(new E.Event,n,{type:e,isSimulated:!0});E.event.trigger(r,null,t)}}),E.fn.extend({trigger:function(e,t){return this.each(function(){E.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return E.event.trigger(e,t,n,!0)}});var Lt=/\[\]$/,Ot=/\r?\n/g,It=/^(?:submit|button|image|reset|file)$/i,Qt=/^(?:input|select|textarea|keygen)/i;function Ht(e,t,n,r){var a;if(Array.isArray(t))E.each(t,function(t,a){n||Lt.test(e)?r(e,a):Ht(e+"["+("object"===typeof a&&null!=a?t:"")+"]",a,n,r)});else if(n||"object"!==B(t))r(e,t);else for(a in t)Ht(e+"["+a+"]",t[a],n,r)}E.param=function(e,t){var n,r=[],a=function(e,t){var n=y(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!E.isPlainObject(e))E.each(e,function(){a(this.name,this.value)});else for(n in e)Ht(n,e[n],t,a);return r.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=E.prop(this,"elements");return e?E.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!E(this).is(":disabled")&&Qt.test(this.nodeName)&&!It.test(e)&&(this.checked||!Ce.test(e))}).map(function(e,t){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(e){return{name:t.name,value:e.replace(Ot,"\r\n")}}):{name:t.name,value:n.replace(Ot,"\r\n")}}).get()}});var Rt=/%20/g,Pt=/#.*$/,Dt=/([?&])_=[^&]*/,Mt=/^(.*?):[ \t]*([^\r\n]*)$/gm,_t=/^(?:GET|HEAD)$/,jt=/^\/\//,Kt={},zt={},Wt="*/".concat("*"),Vt=b.createElement("a");function Gt(e){return function(t,n){"string"!==typeof t&&(n=t,t="*");var r,a=0,o=t.toLowerCase().match(G)||[];if(y(n))for(;r=o[a++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function qt(e,t,n,r){var a={},o=e===zt;function i(s){var l;return a[s]=!0,E.each(e[s]||[],function(e,s){var c=s(t,n,r);return"string"!==typeof c||o||a[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),l}return i(t.dataTypes[0])||!a["*"]&&i("*")}function Yt(e,t){var n,r,a=E.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((a[n]?e:r||(r={}))[n]=t[n]);return r&&E.extend(!0,e,r),e}Vt.href=St.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:St.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(St.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Wt,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":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Yt(Yt(e,E.ajaxSettings),t):Yt(E.ajaxSettings,e)},ajaxPrefilter:Gt(Kt),ajaxTransport:Gt(zt),ajax:function(e,t){"object"===typeof e&&(t=e,e=void 0),t=t||{};var n,a,o,i,s,l,c,u,A,h,d=E.ajaxSetup({},t),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?E(p):E.event,m=E.Deferred(),y=E.Callbacks("once memory"),g=d.statusCode||{},v={},w={},B="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!i)for(i={};t=Mt.exec(o);)i[t[1].toLowerCase()+" "]=(i[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=i[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,v[e]=t),this},overrideMimeType:function(e){return null==c&&(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)g[t]=[g[t],e[t]];return this},abort:function(e){var t=e||B;return n&&n.abort(t),N(0,t),this}};if(m.promise(C),d.url=((e||d.url||St.href)+"").replace(jt,St.protocol+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=(d.dataType||"*").toLowerCase().match(G)||[""],null==d.crossDomain){l=b.createElement("a");try{l.href=d.url,l.href=l.href,d.crossDomain=Vt.protocol+"//"+Vt.host!==l.protocol+"//"+l.host}catch(x){d.crossDomain=!0}}if(d.data&&d.processData&&"string"!==typeof d.data&&(d.data=E.param(d.data,d.traditional)),qt(Kt,d,t,C),c)return C;for(A in(u=E.event&&d.global)&&0===E.active++&&E.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!_t.test(d.type),a=d.url.replace(Pt,""),d.hasContent?d.data&&d.processData&&0===(d.contentType||"").indexOf("application/x-www-form-urlencoded")&&(d.data=d.data.replace(Rt,"+")):(h=d.url.slice(a.length),d.data&&(d.processData||"string"===typeof d.data)&&(a+=(Ft.test(a)?"&":"?")+d.data,delete d.data),!1===d.cache&&(a=a.replace(Dt,"$1"),h=(Ft.test(a)?"&":"?")+"_="+Tt.guid+++h),d.url=a+h),d.ifModified&&(E.lastModified[a]&&C.setRequestHeader("If-Modified-Since",E.lastModified[a]),E.etag[a]&&C.setRequestHeader("If-None-Match",E.etag[a])),(d.data&&d.hasContent&&!1!==d.contentType||t.contentType)&&C.setRequestHeader("Content-Type",d.contentType),C.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+Wt+"; q=0.01":""):d.accepts["*"]),d.headers)C.setRequestHeader(A,d.headers[A]);if(d.beforeSend&&(!1===d.beforeSend.call(p,C,d)||c))return C.abort();if(B="abort",y.add(d.complete),C.done(d.success),C.fail(d.error),n=qt(zt,d,t,C)){if(C.readyState=1,u&&f.trigger("ajaxSend",[C,d]),c)return C;d.async&&d.timeout>0&&(s=r.setTimeout(function(){C.abort("timeout")},d.timeout));try{c=!1,n.send(v,N)}catch(x){if(c)throw x;N(-1,x)}}else N(-1,"No Transport");function N(e,t,i,l){var A,h,b,v,w,B=t;c||(c=!0,s&&r.clearTimeout(s),n=void 0,o=l||"",C.readyState=e>0?4:0,A=e>=200&&e<300||304===e,i&&(v=function(e,t,n){for(var r,a,o,i,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(a in s)if(s[a]&&s[a].test(r)){l.unshift(a);break}if(l[0]in n)o=l[0];else{for(a in n){if(!l[0]||e.converters[a+" "+l[0]]){o=a;break}i||(i=a)}o=o||i}if(o)return o!==l[0]&&l.unshift(o),n[o]}(d,C,i)),!A&&E.inArray("script",d.dataTypes)>-1&&E.inArray("json",d.dataTypes)<0&&(d.converters["text script"]=function(){}),v=function(e,t,n,r){var a,o,i,s,l,c={},u=e.dataTypes.slice();if(u[1])for(i in e.converters)c[i.toLowerCase()]=e.converters[i];for(o=u.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(i=c[l+" "+o]||c["* "+o]))for(a in c)if((s=a.split(" "))[1]===o&&(i=c[l+" "+s[0]]||c["* "+s[0]])){!0===i?i=c[a]:!0!==c[a]&&(o=s[0],u.unshift(s[1]));break}if(!0!==i)if(i&&e.throws)t=i(t);else try{t=i(t)}catch(x){return{state:"parsererror",error:i?x:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(d,v,C,A),A?(d.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(E.lastModified[a]=w),(w=C.getResponseHeader("etag"))&&(E.etag[a]=w)),204===e||"HEAD"===d.type?B="nocontent":304===e?B="notmodified":(B=v.state,h=v.data,A=!(b=v.error))):(b=B,!e&&B||(B="error",e<0&&(e=0))),C.status=e,C.statusText=(t||B)+"",A?m.resolveWith(p,[h,B,C]):m.rejectWith(p,[C,B,b]),C.statusCode(g),g=void 0,u&&f.trigger(A?"ajaxSuccess":"ajaxError",[C,d,A?h:b]),y.fireWith(p,[C,B]),u&&(f.trigger("ajaxComplete",[C,d]),--E.active||E.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return E.get(e,t,n,"json")},getScript:function(e,t){return E.get(e,void 0,t,"script")}}),E.each(["get","post"],function(e,t){E[t]=function(e,n,r,a){return y(n)&&(a=a||r,r=n,n=void 0),E.ajax(E.extend({url:e,type:t,dataType:a,data:n,success:r},E.isPlainObject(e)&&e))}}),E.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),E._evalUrl=function(e,t,n){return E.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){E.globalEval(e,t,n)}})},E.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=E(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){E(this).wrapInner(e.call(this,t))}):this.each(function(){var t=E(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){E(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(e){return!E.expr.pseudos.visible(e)},E.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Jt=E.ajaxSettings.xhr();m.cors=!!Jt&&"withCredentials"in Jt,m.ajax=Jt=!!Jt,E.ajaxTransport(function(e){var t,n;if(m.cors||Jt&&!e.crossDomain)return{send:function(a,o){var i,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)s[i]=e.xhrFields[i];for(i in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||a["X-Requested-With"]||(a["X-Requested-With"]="XMLHttpRequest"),a)s.setRequestHeader(i,a[i]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!==typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!==typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&r.setTimeout(function(){t&&n()})},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(l){if(t)throw l}},abort:function(){t&&t()}}}),E.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return E.globalEval(e),e}}}),E.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),E.ajaxTransport("script",function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,a){t=E("<script>").attr(e.scriptAttrs||{}
vendor: 5,689 bytes, line 2
2).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&a("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}});var Zt=[],$t=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Zt.pop()||E.expando+"_"+Tt.guid++;return this[e]=!0,e}}),E.ajaxPrefilter("json jsonp",function(e,t,n){var a,o,i,s=!1!==e.jsonp&&($t.test(e.url)?"url":"string"===typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&$t.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return a=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace($t,"$1"+a):!1!==e.jsonp&&(e.url+=(Ft.test(e.url)?"&":"?")+e.jsonp+"="+a),e.converters["script json"]=function(){return i||E.error(a+" was not called"),i[0]},e.dataTypes[0]="json",o=r[a],r[a]=function(){i=arguments},n.always(function(){void 0===o?E(r).removeProp(a):r[a]=o,e[a]&&(e.jsonpCallback=t.jsonpCallback,Zt.push(a)),i&&y(o)&&o(i[0]),i=o=void 0}),"script"}),m.createHTMLDocument=function(){var e=b.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),E.parseHTML=function(e,t,n){return"string"!==typeof e?[]:("boolean"===typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(a=M.exec(e))?[t.createElement(a[1])]:(a=ke([e],t,o),o&&o.length&&E(o).remove(),E.merge([],a.childNodes)));var r,a,o},E.fn.load=function(e,t,n){var r,a,o,i=this,s=e.indexOf(" ");return s>-1&&(r=Ct(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"===typeof t&&(a="POST"),i.length>0&&E.ajax({url:e,type:a||"GET",dataType:"html",data:t}).done(function(e){o=arguments,i.html(r?E("<div>").append(E.parseHTML(e)).find(r):e)}).always(n&&function(e,t){i.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(e,t,n){var r,a,o,i,s,l,c=E.css(e,"position"),u=E(e),A={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=E.css(e,"top"),l=E.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(i=(r=u.position()).top,a=r.left):(i=parseFloat(o)||0,a=parseFloat(l)||0),y(t)&&(t=t.call(e,n,E.extend({},s))),null!=t.top&&(A.top=t.top-s.top+i),null!=t.left&&(A.left=t.left-s.left+a),"using"in t?t.using.call(e,A):u.css(A)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],a={top:0,left:0};if("fixed"===E.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===E.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((a=E(e).offset()).top+=E.css(e,"borderTopWidth",!0),a.left+=E.css(e,"borderLeftWidth",!0))}return{top:t.top-a.top-E.css(r,"marginTop",!0),left:t.left-a.left-E.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===E.css(e,"position");)e=e.offsetParent;return e||fe})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;E.fn[e]=function(r){return ee(this,function(e,r,a){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===a)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:a,n?a:o.pageYOffset):e[r]=a},e,r,arguments.length)}}),E.each(["top","left"],function(e,t){E.cssHooks[t]=Ze(m.pixelPosition,function(e,n){if(n)return n=Je(e,t),Ve.test(n)?E(e).position()[t]+"px":n})}),E.each({Height:"height",Width:"width"},function(e,t){E.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){E.fn[r]=function(a,o){var i=arguments.length&&(n||"boolean"!==typeof a),s=n||(!0===a||!0===o?"margin":"border");return ee(this,function(t,n,a){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===a?E.css(t,n,s):E.style(t,n,a,s)},t,i?a:void 0,i)}})}),E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){E.fn[t]=function(e){return this.on(t,e)}}),E.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),E.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(e,t){E.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;E.proxy=function(e,t){var n,r,a;if("string"===typeof t&&(n=e[t],t=e,e=n),y(e))return r=s.call(arguments,2),a=function(){return e.apply(t||this,r.concat(s.call(arguments)))},a.guid=e.guid=e.guid||E.guid++,a},E.holdReady=function(e){e?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=S,E.isFunction=y,E.isWindow=g,E.c
2amelCase=ae,E.type=B,E.now=Date.now,E.isNumeric=function(e){var t=E.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},E.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},void 0===(n=function(){return E}.apply(t,[]))||(e.exports=n);var tn=r.jQuery,nn=r.$;return E.noConflict=function(e){return r.$===E&&(r.$=nn),e&&r.jQuery===E&&(r.jQuery=tn),E},"undefined"===typeof a&&(r.jQuery=r.$=E),E})},497(e,t,n){"use strict";var r=n(218);function a(){}function o(){}o.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,o,i){if(i!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:a};return n.PropTypes=n,n}},173(e,t,n){e.exports=n(497)()},218(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},663(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var a in e)n.d(r,a,function(t){return e[t]}.bind(null,a));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)};function t(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}var n=function(){return(n=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function r(e,t,n,r){return new(n||(n=Promise))(function(a,o){function i(e){try{l(r.next(e))}catch(e){o(e)}}function s(e){try{l(r.throw(e))}catch(e){o(e)}}function l(e){e.done?a(e.value):new n(function(t){t(e.value)}).then(i,s)}l((r=r.apply(e,t||[])).next())})}function a(e,t){var n,r,a,o,i={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;i;)try{if(n=1,r&&(a=2&o[0]?r.return:o[0]?r.throw||((a=r.return)&&a.call(r),0):r.next)&&!(a=a.call(r,o[1])).done)return a;switch(r=0,a&&(o=[2&o[0],a.value]),o[0]){case 0:case 1:a=o;break;case 4:return i.label++,{value:o[1],done:!1};case 5:i.label++,r=o[1],o=[0];continue;case 7:o=i.ops.pop(),i.trys.pop();continue;default:if(!((a=(a=i.trys).length>0&&a[a.length-1])||6!==o[0]&&2!==o[0])){i=0;continue}if(3===o[0]&&(!a||o[1]>a[0]&&o[1]<a[3])){i.label=o[1];break}if(6===o[0]&&i.label<a[1]){i.label=a[1],a=o;break}if(a&&i.label<a[2]){i.label=a[2],i.ops.push(o);break}a[2]&&i.ops.pop(),i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e],r=0}finally{n=a=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}for(var o=function(){function e(e,t,n,r){this.left=e,this.top=t,this.width=n,this.height=r}return e.prototype.add=function(t,n,r,a){return new e(this.left+t,this.top+n,this.width+r,this.height+a)},e.fromClientRect=function(t){return new e(t.left,t.top,t.width,t.height)},e}(),i=function(e){return o.fromClientRect(e.getBoundingClientRect())},s=function(e){for(var t=[],n=0,r=e.length;n<r;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<r){var o=e.charCodeAt(n++);56320==(64512&o)?t.push(((1023&a)<<10)+(1023&o)+65536):(t.push(a),n--)}else t.push(a)}return t},l=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var n=e.length;if(!n)return"";for(var r=[],a=-1,o="";++a<n;){var i=e[a];i<=65535?r.push(i):(i-=65536,r.push(55296+(i>>10),i%1024+56320)),(a+1===n||r.length>16384)&&(o+=String.fromCharCode.apply(String,r),r.length=0)}return o},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
2+/",u="undefined"==typeof Uint8Array?[]:new Uint8Array(256),A=0;A<64;A++)u[c.charCodeAt(A)]=A;var h,d=function(e,t,n){return e.slice?e.slice(t,n):new Uint16Array(Array.prototype.slice.call(e,t,n))},p=function(){function e(e,t,n,r,a,o){this.initialValue=e,this.errorValue=t,this.highStart=n,this.highValueIndex=r,this.index=a,this.data=o}return e.prototype.get=function(e){var t;if(e>=0){if(e<55296||e>56319&&e<=65535)return t=((t=this.index[e>>5])<<2)+(31&e),this.data[t];if(e<=65535)return t=((t=this.index[2048+(e-55296>>5)])<<2)+(31&e),this.data[t];if(e<this.highStart)return t=2080+(e>>11),t=this.index[t],t+=e>>5&63,t=((t=this.index[t])<<2)+(31&e),this.data[t];if(e<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),f=10,m=13,y=15,g=17,b=18,v=19,w=20,B=21,C=22,N=24,E=25,x=26,S=27,T=28,F=30,k=32,U=33,L=34,O=35,I=37,Q=38,H=39,R=40,P=42,D=function(){var e,t,n,r=function(e){var t,n,r,a,o,i=.75*e.length,s=e.length,l=0;"="===e[e.length-1]&&(i--,"="===e[e.length-2]&&i--);var c="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&void 0!==Uint8Array.prototype.slice?new ArrayBuffer(i):new Array(i),A=Array.isArray(c)?c:new Uint8Array(c);for(t=0;t<s;t+=4)n=u[e.charCodeAt(t)],r=u[e.charCodeAt(t+1)],a=u[e.charCodeAt(t+2)],o=u[e.charCodeAt(t+3)],A[l++]=n<<2|r>>4,A[l++]=(15&r)<<4|a>>2,A[l++]=(3&a)<<6|63&o;return c}(
vendor: 50,626 bytes, line 2
2"KwAAAAAAAAAACA4AIDoAAPAfAAACAAAAAAAIABAAGABAAEgAUABYAF4AZgBeAGYAYABoAHAAeABeAGYAfACEAIAAiACQAJgAoACoAK0AtQC9AMUAXgBmAF4AZgBeAGYAzQDVAF4AZgDRANkA3gDmAOwA9AD8AAQBDAEUARoBIgGAAIgAJwEvATcBPwFFAU0BTAFUAVwBZAFsAXMBewGDATAAiwGTAZsBogGkAawBtAG8AcIBygHSAdoB4AHoAfAB+AH+AQYCDgIWAv4BHgImAi4CNgI+AkUCTQJTAlsCYwJrAnECeQKBAk0CiQKRApkCoQKoArACuALAAsQCzAIwANQC3ALkAjAA7AL0AvwCAQMJAxADGAMwACADJgMuAzYDPgOAAEYDSgNSA1IDUgNaA1oDYANiA2IDgACAAGoDgAByA3YDfgOAAIQDgACKA5IDmgOAAIAAogOqA4AAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAK8DtwOAAIAAvwPHA88D1wPfAyAD5wPsA/QD/AOAAIAABAQMBBIEgAAWBB4EJgQuBDMEIAM7BEEEXgBJBCADUQRZBGEEaQQwADAAcQQ+AXkEgQSJBJEEgACYBIAAoASoBK8EtwQwAL8ExQSAAIAAgACAAIAAgACgAM0EXgBeAF4AXgBeAF4AXgBeANUEXgDZBOEEXgDpBPEE+QQBBQkFEQUZBSEFKQUxBTUFPQVFBUwFVAVcBV4AYwVeAGsFcwV7BYMFiwWSBV4AmgWgBacFXgBeAF4AXgBeAKsFXgCyBbEFugW7BcIFwgXIBcIFwgXQBdQF3AXkBesF8wX7BQMGCwYTBhsGIwYrBjMGOwZeAD8GRwZNBl4AVAZbBl4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAGMGXgBqBnEGXgBeAF4AXgBeAF4AXgBeAF4AXgB5BoAG4wSGBo4GkwaAAIADHgR5AF4AXgBeAJsGgABGA4AAowarBrMGswagALsGwwbLBjAA0wbaBtoG3QbaBtoG2gbaBtoG2gblBusG8wb7BgMHCwcTBxsHCwcjBysHMAc1BzUHOgdCB9oGSgdSB1oHYAfaBloHaAfaBlIH2gbaBtoG2gbaBtoG2gbaBjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHbQdeAF4ANQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQd1B30HNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B4MH2gaKB68EgACAAIAAgACAAIAAgACAAI8HlwdeAJ8HpweAAIAArwe3B14AXgC/B8UHygcwANAH2AfgB4AA6AfwBz4B+AcACFwBCAgPCBcIogEYAR8IJwiAAC8INwg/CCADRwhPCFcIXwhnCEoDGgSAAIAAgABvCHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIfQh3CHgIeQh6CHsIfAh9CHcIeAh5CHoIewh8CH0Idwh4CHkIegh7CHwIhAiLCI4IMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAANQc1BzUHNQc1BzUHNQc1BzUHNQc1B54INQc1B6II2gaqCLIIugiAAIAAvgjGCIAAgACAAIAAgACAAIAAgACAAIAAywiHAYAA0wiAANkI3QjlCO0I9Aj8CIAAgACAAAIJCgkSCRoJIgknCTYHLwk3CZYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiWCJYIlgiAAIAAAAFAAXgBeAGAAcABeAHwAQACQAKAArQC9AJ4AXgBeAE0A3gBRAN4A7AD8AMwBGgEAAKcBNwEFAUwBXAF4QkhCmEKnArcCgAHHAsABz4LAAcABwAHAAd+C6ABoAG+C/4LAAcABwAHAAc+DF4MAAcAB54M3gweDV4Nng3eDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEeDqABVg6WDqABoQ6gAaABoAHXDvcONw/3DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DvcO9w73DncPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB7cPPwlGCU4JMACAAIAAgABWCV4JYQmAAGkJcAl4CXwJgAkwADAAMAAwAIgJgACLCZMJgACZCZ8JowmrCYAAswkwAF4AXgB8AIAAuwkABMMJyQmAAM4JgADVCTAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAqwYWBNkIMAAwADAAMADdCeAJ6AnuCR4E9gkwAP4JBQoNCjAAMACAABUK0wiAAB0KJAosCjQKgAAwADwKQwqAAEsKvQmdCVMKWwowADAAgACAALcEMACAAGMKgABrCjAAMAAwADAAMAAwADAAMAAwADAAMAAeBDAAMAAwADAAMAAwADAAMAAwADAAMAAwAIkEPQFzCnoKiQSCCooKkAqJBJgKoAqkCokEGAGsCrQKvArBCjAAMADJCtEKFQHZCuEK/gHpCvEKMAAwADAAMACAAIwE+QowAIAAPwEBCzAAMAAwADAAMACAAAkLEQswAIAAPwEZCyELgAAOCCkLMAAxCzkLMAAwADAAMAAwADAAXgBeAEELMAAwADAAMAAwADAAMAAwAEkLTQtVC4AAXAtkC4AAiQkwADAAMAAwADAAMAAwADAAbAtxC3kLgAuFC4sLMAAwAJMLlwufCzAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAApwswADAAMACAAIAAgACvC4AAgACAAIAAgACAALcLMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAvwuAAMcLgACAAIAAgACAAIAAyguAAIAAgACAAIAA0QswADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAANkLgACAAIAA4AswADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACJCR4E6AswADAAhwHwC4AA+AsADAgMEAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMACAAIAAGAwdDCUMMAAwAC0MNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQw1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHPQwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADUHNQc1BzUHNQc1BzUHNQc2BzAAMAA5DDUHNQc1BzUHNQc1BzUHNQc1BzUHNQdFDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAgACAAIAATQxSDFoMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAF4AXgBeAF4AXgBeAF4AYgxeAGoMXgBxDHkMfwxeAIUMXgBeAI0MMAAwADAAMAAwAF4AXgCVDJ0MMAAwADAAMABeAF4ApQxeAKsMswy7DF4Awgy9DMoMXgBeAF4AXgBeAF4AXgBeAF4AXgDRDNkMeQBqCeAM3Ax8AOYM7Az0DPgMXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgBeAF4AXgCgAAANoAAHDQ4NFg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAeDSYNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIAAgACAAIAAgACAAC4NMABeAF4ANg0wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAD4NRg1ODVYNXg1mDTAAbQ0wADAAMAAwADAAMAAwADAA2gbaBtoG2gbaBtoG2gbaBnUNeg3CBYANwgWFDdoGjA3aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gaUDZwNpA2oDdoG2gawDbcNvw3HDdoG2gbPDdYN3A3fDeYN2gbsDfMN2gbaBvoN/g3aBgYODg7aBl4AXgBeABYOXgBeACUG2gYeDl4AJA5eACwO2w3aBtoGMQ45DtoG2gbaBtoGQQ7aBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDjUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B1EO2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQdZDjUHNQc1BzUHNQc1B2EONQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHaA41BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B3AO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gY1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1BzUHNQc1B2EO2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gZJDtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBtoG2gbaBkkOeA6gAKAAoAAwADAAMAAwAKAAoACgAKAAoACgAKAAgA4wADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAD//wQABAAEAAQABAAEAAQABAAEAA0AAwABAAEAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAKABMAFwAeABsAGgAeABcAFgASAB4AGwAYAA8AGAAcAEsASwBLAEsASwBLAEsASwBLAEsAGAAYAB4AHgAeABMAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAFgAbABIAHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYADQARAB4ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkAFgAaABsAGwAbAB4AHQAdAB4ATwAXAB4ADQAeAB4AGgAbAE8ATwAOAFAAHQAdAB0ATwBPABcATwBPAE8AFgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwArAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAAQABAANAA0ASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAUAArACsAKwArACsAKwArACsABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAGgAaAFAAUABQAFAAUABMAB4AGwBQAB4AKwArACsABAAEAAQAKwBQAFAAUABQAFAAUAArACsAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUAArAFAAUAArACsABAArAAQABAAEAAQABAArACsAKwArAAQABAArACsABAAEAAQAKwArACsABAArACsAKwArACsAKwArAFAAUABQAFAAKwBQACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwAEAAQAUABQAFAABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUAArACsABABQAAQABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQAKwArAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeABsAKwArACsAKwArACsAKwBQAAQABAAEAAQABAAEACsABAAEAAQAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArAAQABAArACsABAAEAAQAKwArACsAKwArACsAKwArAAQABAArACsAKwArAFAAUAArAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwAeAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwAEAFAAKwBQAFAAUABQAFAAUAArACsAKwBQAFAAUAArAFAAUABQAFAAKwArACsAUABQACsAUAArAFAAUAArACsAKwBQAFAAKwArACsAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQAKwArACsABAAEAAQAKwAEAAQABAAEACsAKwBQACsAKwArACsAKwArAAQAKwArACsAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAB4AHgAeAB4AHgAeABsAHgArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArAFAAUABQACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAB4AUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABAArACsAKwArACsAKwArAAQABAArACsAKwArACsAKwArAFAAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwArAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAKwBcAFwAKwBcACsAKwBcACsAKwArACsAKwArAFwAXABcAFwAKwBcAFwAXABcAFwAXABcACsAXABcAFwAKwBcACsAXAArACsAXABcACsAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgArACoAKgBcACsAKwBcAFwAXABcAFwAKwBcACsAKgAqACoAKgAqACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAFwAXABcAFwAUAAOAA4ADgAOAB4ADgAOAAkADgAOAA0ACQATABMAEwATABMACQAeABMAHgAeAB4ABAAEAB4AHgAeAB4AHgAeAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUAANAAQAHgAEAB4ABAAWABEAFgARAAQABABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAAQABAAEAAQABAANAAQABABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsADQANAB4AHgAeAB4AHgAeAAQAHgAeAB4AHgAeAB4AKwAeAB4ADgAOAA0ADgAeAB4AHgAeAB4ACQAJACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgAeAB4AHgBcAFwAXABcAFwAXAAqACoAKgAqAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAKgAqACoAKgAqACoAKgBcAFwAXAAqACoAKgAqAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAXAAqAEsASwBLAEsASwBLAEsASwBLAEsAKgAqACoAKgAqACoAUABQAFAAUABQAFAAKwBQACsAKwArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQACsAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwAEAAQABAAeAA0AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAEQArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAADQANAA0AUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAA0ADQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQACsABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoADQANABUAXAANAB4ADQAbAFwAKgArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAB4AHgATABMADQANAA4AHgATABMAHgAEAAQABAAJACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAUABQAFAAUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwAeACsAKwArABMAEwBLAEsASwBLAEsASwBLAEsASwBLAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwBcAFwAXABcAFwAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcACsAKwArACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwAeAB4AXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsABABLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKgAqACoAKgAqACoAKgBcACoAKgAqACoAKgAqACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAUABQAFAAUABQAFAAUAArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4ADQANAA0ADQAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAHgAeAB4AHgBQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwANAA0ADQANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwBQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsABAAEAAQAHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAABABQAFAAUABQAAQABAAEAFAAUAAEAAQABAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAKwBQACsAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAKwArAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAKwAeAB4AHgAeAB4AHgAeAA4AHgArAA0ADQANAA0ADQANAA0ACQANAA0ADQAIAAQACwAEAAQADQAJAA0ADQAMAB0AHQAeABcAFwAWABcAFwAXABYAFwAdAB0AHgAeABQAFAAUAA0AAQABAAQABAAEAAQABAAJABoAGgAaABoAGgAaABoAGgAeABcAFwAdABUAFQAeAB4AHgAeAB4AHgAYABYAEQAVABUAFQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgANAB4ADQANAA0ADQAeAA0ADQANAAcAHgAeAB4AHgArAAQABAAEAAQABAAEAAQABAAEAAQAUABQACsAKwBPAFAAUABQAFAAUAAeAB4AHgAWABEATwBQAE8ATwBPAE8AUABQAFAAUABQAB4AHgAeABYAEQArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAaABsAGwAbABsAGgAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgBQABoAHgAdAB4AUAAeABoAHgAeAB4AHgAeAB4AHgAeAB4ATwAeAFAAGwAeAB4AUABQAFAAUABQAB4AHgAeAB0AHQAeAFAAHgBQAB4AUAAeAFAATwBQAFAAHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AUABQAFAAUABPAE8AUABQAFAAUABQAE8AUABQAE8AUABPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAE8ATwBPAE8ATwBPAE8ATwBPAE8AUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAATwAeAB4AKwArACsAKwAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB0AHQAeAB4AHgAdAB0AHgAeAB0AHgAeAB4AHQAeAB0AGwAbAB4AHQAeAB4AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB0AHgAdAB4AHQAdAB0AHQAdAB0AHgAdAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAdAB0AHQAdAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAlACUAHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBQAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAeAB4AHgAeAB0AHQAeAB4AHgAeAB0AHQAdAB4AHgAdAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB0AHQAeAB4AHQAeAB4AHgAeAB0AHQAeAB4AHgAeACUAJQAdAB0AJQAeACUAJQAlACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAHgAeAB4AHgAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHQAdAB0AHgAdACUAHQAdAB4AHQAdAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHQAdAB0AHQAlAB4AJQAlACUAHQAlACUAHQAdAB0AJQAlAB0AHQAlAB0AHQAlACUAJQAeAB0AHgAeAB4AHgAdAB0AJQAdAB0AHQAdAB0AHQAlACUAJQAlACUAHQAlACUAIAAlAB0AHQAlACUAJQAlACUAJQAlACUAHgAeAB4AJQAlACAAIAAgACAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeABcAFwAXABcAFwAXAB4AEwATACUAHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACUAJQBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwArACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAE8ATwBPAE8ATwBPAE8ATwAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeACsAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUAArACsAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQBQAFAAUABQACsAKwArACsAUABQAFAAUABQAFAAUABQAA0AUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAABAAEAAQAKwAEAAQAKwArACsAKwArAAQABAAEAAQAUABQAFAAUAArAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsABAAEAAQAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsADQANAA0ADQANAA0ADQANAB4AKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAUABQAFAAUABQAA0ADQANAA0ADQANABQAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwANAA0ADQANAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAeAAQABAAEAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLACsADQArAB4AKwArAAQABAAEAAQAUABQAB4AUAArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwAEAAQABAAEAAQABAAEAAQABAAOAA0ADQATABMAHgAeAB4ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0AUABQAFAAUAAEAAQAKwArAAQADQANAB4AUAArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXABcAA0ADQANACoASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUAArACsAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANACsADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEcARwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQACsAKwAeAAQABAANAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAEAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUAArACsAUAArACsAUABQACsAKwBQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AKwArAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAeAB4ADQANAA0ADQAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAArAAQABAArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAEAAQABAAEAAQABAAEACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAFgAWAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAKwBQACsAKwArACsAKwArAFAAKwArACsAKwBQACsAUAArAFAAKwBQAFAAUAArAFAAUAArAFAAKwArAFAAKwBQACsAUAArAFAAKwBQACsAUABQACsAUAArACsAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAUABQAFAAUAArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUAArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAlACUAJQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeACUAJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeACUAJQAlACUAJQAeACUAJQAlACUAJQAgACAAIAAlACUAIAAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIQAhACEAIQAhACUAJQAgACAAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAIAAlACUAJQAlACAAJQAgACAAIAAgACAAIAAgACAAIAAlACUAJQAgACUAJQAlACUAIAAgACAAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeACUAHgAlAB4AJQAlACUAJQAlACAAJQAlACUAJQAeACUAHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAIAAgACAAIAAgAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFwAXABcAFQAVABUAHgAeAB4AHgAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAIAAgACAAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAlACAAIAAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsA"
2),a=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=4)n.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return n}(r):new Uint32Array(r),o=Array.isArray(r)?function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n.push(e[r+1]<<8|e[r]);return n}(r):new Uint16Array(r),i=d(o,12,a[4]/2),s=2===a[5]?d(o,(24+a[4])/2):(e=a,t=Math.ceil((24+a[4])/4),e.slice?e.slice(t,n):new Uint32Array(Array.prototype.slice.call(e,t,n)));return new p(a[0],a[1],a[2],a[3],i,s)}(),M=[F,36],_=[1,2,3,5],j=[f,8],K=[S,x],z=_.concat(j),W=[Q,H,R,L,O],V=[y,m],G=function(e,t,n,r){var a=r[n];if(Array.isArray(e)?-1!==e.indexOf(a):e===a)for(var o=n;o<=r.length;){if((l=r[++o])===t)return!0;if(l!==f)break}if(a===f)for(o=n;o>0;){var i=r[--o];if(Array.isArray(e)?-1!==e.indexOf(i):e===i)for(var s=n;s<=r.length;){var l;if((l=r[++s])===t)return!0;if(l!==f)break}if(i!==f)break}return!1},q=function(e,t){for(var n=e;n>=0;){var r=t[n];if(r!==f)return r;n--}return 0},Y=function(e,t,n,r,a){if(0===n[r])return"\xd7";var o=r-1;if(Array.isArray(a)&&!0===a[o])return"\xd7";var i=o-1,s=o+1,l=t[o],c=i>=0?t[i]:0,u=t[s];if(2===l&&3===u)return"\xd7";if(-1!==_.indexOf(l))return"!";if(-1!==_.indexOf(u))return"\xd7";if(-1!==j.indexOf(u))return"\xd7";if(8===q(o,t))return"\xf7";if(11===D.get(e[o])&&(u===I||u===k||u===U))return"\xd7";if(7===l||7===u)return"\xd7";if(9===l)return"\xd7";if(-1===[f,m,y].indexOf(l)&&9===u)return"\xd7";if(-1!==[g,b,v,N,T].indexOf(u))return"\xd7";if(q(o,t)===C)return"\xd7";if(G(23,C,o,t))return"\xd7";if(G([g,b],B,o,t))return"\xd7";if(G(12,12,o,t))return"\xd7";if(l===f)return"\xf7";if(23===l||23===u)return"\xd7";if(16===u||16===l)return"\xf7";if(-1!==[m,y,B].indexOf(u)||14===l)return"\xd7";if(36===c&&-1!==V.indexOf(l))return"\xd7";if(l===T&&36===u)return"\xd7";if(u===w&&-1!==M.concat(w,v,E,I,k,U).indexOf(l))return"\xd7";if(-1!==M.indexOf(u)&&l===E||-1!==M.indexOf(l)&&u===E)return"\xd7";if(l===S&&-1!==[I,k,U].indexOf(u)||-1!==[I,k,U].indexOf(l)&&u===x)return"\xd7";if(-1!==M.indexOf(l)&&-1!==K.indexOf(u)||-1!==K.indexOf(l)&&-1!==M.indexOf(u))return"\xd7";if(-1!==[S,x].indexOf(l)&&(u===E||-1!==[C,y].indexOf(u)&&t[s+1]===E)||-1!==[C,y].indexOf(l)&&u===E||l===E&&-1!==[E,T,N].indexOf(u))return"\xd7";if(-1!==[E,T,N,g,b].indexOf(u))for(var A=o;A>=0;){if((h=t[A])===E)return"\xd7";if(-1===[T,N].indexOf(h))break;A--}if(-1!==[S,x].indexOf(u))for(A=-1!==[g,b].indexOf(l)?i:o;A>=0;){var h;if((h=t[A])===E)return"\xd7";if(-1===[T,N].indexOf(h))break;A--}if(Q===l&&-1!==[Q,H,L,O].indexOf(u)||-1!==[H,L].indexOf(l)&&-1!==[H,R].indexOf(u)||-1!==[R,O].indexOf(l)&&u===R)return"\xd7";if(-1!==W.indexOf(l)&&-1!==[w,x].indexOf(u)||-1!==W.indexOf(u)&&l===S)return"\xd7";if(-1!==M.indexOf(l)&&-1!==M.indexOf(u))return"\xd7";if(l===N&&-1!==M.indexOf(u))return"\xd7";if(-1!==M.concat(E).indexOf(l)&&u===C||-1!==M.concat(E).indexOf(u)&&l===b)return"\xd7";if(41===l&&41===u){for(var d=n[o],p=1;d>0&&41===t[--d];)p++;if(p%2!=0)return"\xd7"}return l===k&&u===U?"\xd7":"\xf7"}
2,X=function(){function e(e,t,n,r){this.codePoints=e,this.required="!"===t,this.start=n,this.end=r}return e.prototype.slice=function(){return l.apply(void 0,this.codePoints.slice(this.start,this.end))},e}();!function(e){e[e.STRING_TOKEN=0]="STRING_TOKEN",e[e.BAD_STRING_TOKEN=1]="BAD_STRING_TOKEN",e[e.LEFT_PARENTHESIS_TOKEN=2]="LEFT_PARENTHESIS_TOKEN",e[e.RIGHT_PARENTHESIS_TOKEN=3]="RIGHT_PARENTHESIS_TOKEN",e[e.COMMA_TOKEN=4]="COMMA_TOKEN",e[e.HASH_TOKEN=5]="HASH_TOKEN",e[e.DELIM_TOKEN=6]="DELIM_TOKEN",e[e.AT_KEYWORD_TOKEN=7]="AT_KEYWORD_TOKEN",e[e.PREFIX_MATCH_TOKEN=8]="PREFIX_MATCH_TOKEN",e[e.DASH_MATCH_TOKEN=9]="DASH_MATCH_TOKEN",e[e.INCLUDE_MATCH_TOKEN=10]="INCLUDE_MATCH_TOKEN",e[e.LEFT_CURLY_BRACKET_TOKEN=11]="LEFT_CURLY_BRACKET_TOKEN",e[e.RIGHT_CURLY_BRACKET_TOKEN=12]="RIGHT_CURLY_BRACKET_TOKEN",e[e.SUFFIX_MATCH_TOKEN=13]="SUFFIX_MATCH_TOKEN",e[e.SUBSTRING_MATCH_TOKEN=14]="SUBSTRING_MATCH_TOKEN",e[e.DIMENSION_TOKEN=15]="DIMENSION_TOKEN",e[e.PERCENTAGE_TOKEN=16]="PERCENTAGE_TOKEN",e[e.NUMBER_TOKEN=17]="NUMBER_TOKEN",e[e.FUNCTION=18]="FUNCTION",e[e.FUNCTION_TOKEN=19]="FUNCTION_TOKEN",e[e.IDENT_TOKEN=20]="IDENT_TOKEN",e[e.COLUMN_TOKEN=21]="COLUMN_TOKEN",e[e.URL_TOKEN=22]="URL_TOKEN",e[e.BAD_URL_TOKEN=23]="BAD_URL_TOKEN",e[e.CDC_TOKEN=24]="CDC_TOKEN",e[e.CDO_TOKEN=25]="CDO_TOKEN",e[e.COLON_TOKEN=26]="COLON_TOKEN",e[e.SEMICOLON_TOKEN=27]="SEMICOLON_TOKEN",e[e.LEFT_SQUARE_BRACKET_TOKEN=28]="LEFT_SQUARE_BRACKET_TOKEN",e[e.RIGHT_SQUARE_BRACKET_TOKEN=29]="RIGHT_SQUARE_BRACKET_TOKEN",e[e.UNICODE_RANGE_TOKEN=30]="UNICODE_RANGE_TOKEN",e[e.WHITESPACE_TOKEN=31]="WHITESPACE_TOKEN",e[e.EOF_TOKEN=32]="EOF_TOKEN"}
2(h||(h={}));var J=function(e){return e>=48&&e<=57},Z=function(e){return J(e)||e>=65&&e<=70||e>=97&&e<=102},$=function(e){return 10===e||9===e||32===e},ee=function(e){return function(e){return function(e){return e>=97&&e<=122}(e)||function(e){return e>=65&&e<=90}(e)}(e)||function(e){return e>=128}(e)||95===e},te=function(e){return ee(e)||J(e)||45===e},ne=function(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e},re=function(e,t){return 92===e&&10!==t},ae=function(e,t,n){return 45===e?ee(t)||re(t,n):!!ee(e)||!(92!==e||!re(e,t))},oe=function(e,t,n){return 43===e||45===e?!!J(t)||46===t&&J(n):J(46===e?t:e)},ie=function(e){var t=0,n=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(n=-1),t++);for(var r=[];J(e[t]);)r.push(e[t++]);var a=r.length?parseInt(l.apply(void 0,r),10):0;46===e[t]&&t++;for(var o=[];J(e[t]);)o.push(e[t++]);var i=o.length,s=i?parseInt(l.apply(void 0,o),10):0;69!==e[t]&&101!==e[t]||t++;var c=1;43!==e[t]&&45!==e[t]||(45===e[t]&&(c=-1),t++);for(var u=[];J(e[t]);)u.push(e[t++]);var A=u.length?parseInt(l.apply(void 0,u),10):0;return n*(a+s*Math.pow(10,-i))*Math.pow(10,c*A)},se={type:h.LEFT_PARENTHESIS_TOKEN},le={type:h.RIGHT_PARENTHESIS_TOKEN},ce={type:h.COMMA_TOKEN},ue={type:h.SUFFIX_MATCH_TOKEN},Ae={type:h.PREFIX_MATCH_TOKEN},he={type:h.COLUMN_TOKEN},de={type:h.DASH_MATCH_TOKEN},pe={type:h.INCLUDE_MATCH_TOKEN},fe={type:h.LEFT_CURLY_BRACKET_TOKEN},me={type:h.RIGHT_CURLY_BRACKET_TOKEN},ye={type:h.SUBSTRING_MATCH_TOKEN},ge={type:h.BAD_URL_TOKEN},be={type:h.BAD_STRING_TOKEN},ve={type:h.CDO_TOKEN},we={type:h.CDC_TOKEN},Be={type:h.COLON_TOKEN},Ce={type:h.SEMICOLON_TOKEN},Ne={type:h.LEFT_SQUARE_BRACKET_TOKEN},Ee={type:h.RIGHT_SQUARE_BRACKET_TOKEN},xe={type:h.WHITESPACE_TOKEN},Se={type:h.EOF_TOKEN},Te=function(){function e(){this._value=[]}return e.prototype.write=function(e){this._value=this._value.concat(s(e))},e.prototype.read=function(){for(var e=[],t=this.consumeToken();t!==Se;)e.push(t),t=this.consumeToken();return e},e.prototype.consumeToken=function(){var e=this.consumeCodePoint();switch(e){case 34:return this.consumeStringToken(34);case 35:var t=this.peekCodePoint(0),n=this.peekCodePoint(1),r=this.peekCodePoint(2);if(te(t)||re(n,r)){var a=ae(t,n,r)?2:1,o=this.consumeName();return{type:h.HASH_TOKEN,value:o,flags:a}}break;case 36:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ue;break;case 39:return this.consumeStringToken(39);case 40:return se;case 41:return le;case 42:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),ye;break;case 43:if(oe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 44:return ce;case 45:var i=e,s=this.peekCodePoint(0),c=this.peekCodePoint(1);if(oe(i,s,c))return this.reconsumeCodePoint(e),this.consumeNumericToken();if(ae(i,s,c))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();if(45===s&&62===c)return this.consumeCodePoint(),this.consumeCodePoint(),we;break;case 46:if(oe(e,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(e),this.consumeNumericToken();break;case 47:if(42===this.peekCodePoint(0))for(this.consumeCodePoint();;){var u=this.consumeCodePoint();if(42===u&&47===(u=this.consumeCodePoint()))return this.consumeToken();if(-1===u)return this.consumeToken()}break;case 58:return Be;case 59:return Ce;case 60:if(33===this.peekCodePoint(0)&&45===this.peekCodePoint(1)&&45===this.peekCodePoint(2))return this.consumeCodePoint(),this.consumeCodePoint(),ve;break;case 64:var A=this.peekCodePoint(0),d=this.peekCodePoint(1),p=this.peekCodePoint(2);if(ae(A,d,p))return o=this.consumeName(),{type:h.AT_KEYWORD_TOKEN,value:o};break;case 91:return Ne;case 92:if(re(e,this.peekCodePoint(0)))return this.reconsumeCodePoint(e),this.consumeIdentLikeToken();break;case 93:return Ee;case 61:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),Ae;break;case 123:return fe;case 125:return me;case 117:case 85:var f=this.peekCodePoint(0),m=this.peekCodePoint(1);return 43!==f||!Z(m)&&63!==m||(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(e),this.consumeIdentLikeToken();case 124:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),de;if(124===this.peekCodePoint(0))return this.consumeCodePoint(),he;break;case 126:if(61===this.peekCodePoint(0))return this.consumeCodePoint(),pe;break;case-1:return Se}return $(e)?(this.consumeWhiteSpace(),xe):J(e)?(this.reconsumeCodePoint(e),this.consumeNumericToken()):ee(e)?(this.reconsumeCodePoint(e),this.consumeIdentLikeToken()):{type:h.DELIM_TOKEN,value:l(e)}},e.prototype.consumeCodePoint=function(){var e=this._value.shift();return void 0===e?-1:e},e.prototype.reconsumeCodePoint=function(e){this._value.unshift(e)},e.prototype.peekCodePoint=function(e){return e>=this._value.length?-1:this._value[e]},e.prototype.consumeUnicodeRangeToken=function(){for(var e=[],t=this.consumeCodePoint();Z(t)&&e.length<6;)e.push(t),t=this.consumeCodePoint();for(var n=!1;63===t&&e.length<6;)e.push(t),t=this.consumeCodePoint(),n=!0;if(n){var r=parseInt(l.apply(void 0,e.map(function(e){return 63===e?48:e})),16),a=parseInt(l.apply(void 0,e.map(function(e){return 63===e?70:e})),16);return{type:h.UNICODE_RANGE_TOKEN,start:r,end:a}}var o=parseInt(l.apply(void 0,e),16);if(45===this.peekCodePoint(0)&&Z(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];Z(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();return a=parseInt(l.apply(void 0,i),16),{type:h.UNICODE_RANGE_TOKEN,start:o,end:a}}return{type:h.UNICODE_RANGE_TOKEN,start:o,end:o}},e.prototype.consumeIdentLikeToken=function(){var e=this.consumeName();return"url"===e.toLowerCase()&&40===this.peekCodePoint(0)?(this.consumeCodePoint(),this.consumeUrlToken()):40===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.FUNCTION_TOKEN,value:e}):{type:h.IDENT_TOKEN,value:e}},e.prototype.consumeUrlToken=function(){var e=[];
2if(this.consumeWhiteSpace(),-1===this.peekCodePoint(0))return{type:h.URL_TOKEN,value:""};var t=this.peekCodePoint(0);if(39===t||34===t){var n=this.consumeStringToken(this.consumeCodePoint());return n.type===h.STRING_TOKEN&&(this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0))?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:n.value}):(this.consumeBadUrlRemnants(),ge)}for(;;){var r=this.consumeCodePoint();if(-1===r||41===r)return{type:h.URL_TOKEN,value:l.apply(void 0,e)};if($(r))return this.consumeWhiteSpace(),-1===this.peekCodePoint(0)||41===this.peekCodePoint(0)?(this.consumeCodePoint(),{type:h.URL_TOKEN,value:l.apply(void 0,e)}):(this.consumeBadUrlRemnants(),ge);if(34===r||39===r||40===r||ne(r))return this.consumeBadUrlRemnants(),ge;if(92===r){if(!re(r,this.peekCodePoint(0)))return this.consumeBadUrlRemnants(),ge;e.push(this.consumeEscapedCodePoint())}else e.push(r)}},e.prototype.consumeWhiteSpace=function(){for(;$(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var e=this.consumeCodePoint();if(41===e||-1===e)return;re(e,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(e){for(var t="";e>0;){var n=Math.min(6e4,e);t+=l.apply(void 0,this._value.splice(0,n)),e-=n}return this._value.shift(),t},e.prototype.consumeStringToken=function(e){for(var t="",n=0;;){var r=this._value[n];if(-1===r||void 0===r||r===e)return t+=this.consumeStringSlice(n),{type:h.STRING_TOKEN,value:t};if(10===r)return this._value.splice(0,n),be;if(92===r){var a=this._value[n+1];-1!==a&&void 0!==a&&(10===a?(t+=this.consumeStringSlice(n),n=-1,this._value.shift()):re(r,a)&&(t+=this.consumeStringSlice(n),t+=l(this.consumeEscapedCodePoint()),n=-1))}n++}},e.prototype.consumeNumber=function(){var e=[],t=4,n=this.peekCodePoint(0);for(43!==n&&45!==n||e.push(this.consumeCodePoint());J(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0);var r=this.peekCodePoint(1);if(46===n&&J(r))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;J(this.peekCodePoint(0));)e.push(this.consumeCodePoint());n=this.peekCodePoint(0),r=this.peekCodePoint(1);var a=this.peekCodePoint(2);if((69===n||101===n)&&((43===r||45===r)&&J(a)||J(r)))for(e.push(this.consumeCodePoint(),this.consumeCodePoint()),t=8;J(this.peekCodePoint(0));)e.push(this.consumeCodePoint());return[ie(e),t]},e.prototype.consumeNumericToken=function(){var e=this.consumeNumber(),t=e[0],n=e[1],r=this.peekCodePoint(0),a=this.peekCodePoint(1),o=this.peekCodePoint(2);if(ae(r,a,o)){var i=this.consumeName();return{type:h.DIMENSION_TOKEN,number:t,flags:n,unit:i}}return 37===r?(this.consumeCodePoint(),{type:h.PERCENTAGE_TOKEN,number:t,flags:n}):{type:h.NUMBER_TOKEN,number:t,flags:n}},e.prototype.consumeEscapedCodePoint=function(){var e=this.consumeCodePoint();if(Z(e)){for(var t=l(e);Z(this.peekCodePoint(0))&&t.length<6;)t+=l(this.consumeCodePoint());$(this.peekCodePoint(0))&&this.consumeCodePoint();var n=parseInt(t,16);return 0===n||function(e){return e>=55296&&e<=57343}(n)||n>1114111?65533:n}return-1===e?65533:e},e.prototype.consumeName=function(){for(var e="";;){var t=this.consumeCodePoint();if(te(t))e+=l(t);else{if(!re(t,this.peekCodePoint(0)))return this.reconsumeCodePoint(t),e;e+=l(this.consumeEscapedCodePoint())}}},e}(),Fe=function(){function e(e){this._tokens=e}return e.create=function(t){var n=new Te;return n.write(t),new e(n.read())},e.parseValue=function(t){return e.create(t).parseComponentValue()},e.parseValues=function(t){return e.create(t).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var e=this.consumeToken();e.type===h.WHITESPACE_TOKEN;)e=this.consumeToken();if(e.type===h.EOF_TOKEN)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(e);var t=this.consumeComponentValue();do{e=this.consumeToken()}while(e.type===h.WHITESPACE_TOKEN);if(e.type===h.EOF_TOKEN)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var e=[];;){var t=this.consumeComponentValue();if(t.type===h.EOF_TOKEN)return e;e.push(t),e.push()}},e.prototype.consumeComponentValue=function(){var e=this.consumeToken();switch(e.type){case h.LEFT_CURLY_BRACKET_TOKEN:case h.LEFT_SQUARE_BRACKET_TOKEN:case h.LEFT_PARENTHESIS_TOKEN:return this.consumeSimpleBlock(e.type);case h.FUNCTION_TOKEN:return this.consumeFunction(e)}return e},e.prototype.consumeSimpleBlock=function(e){for(var t={type:e,values:[]},n=this.consumeToken();;){if(n.type===h.EOF_TOKEN||Pe(n,e))return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue()),n=this.consumeToken()}},e.prototype.consumeFunction=function(e){for(var t={name:e.value,values:[],type:h.FUNCTION};;){var n=this.consumeToken();if(n.type===h.EOF_TOKEN||n.type===h.RIGHT_PARENTHESIS_TOKEN)return t;this.reconsumeToken(n),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var e=this._tokens.shift();return void 0===e?Se:e},e.prototype.reconsumeToken=function(e){this._tokens.unshift(e)},e}(),ke=function(e){return e.type===h.DIMENSION_TOKEN},Ue=function(e){return e.type===h.NUMBER_TOKEN},Le=function(e){return e.type===h.IDENT_TOKEN},Oe=function(e){return e.type===h.STRING_TOKEN},Ie=function(e,t){return Le(e)&&e.value===t},Qe=function(e){return e.type!==h.WHITESPACE_TOKEN},He=function(e){return e.type!==h.WHITESPACE_TOKEN&&e.type!==h.COMMA_TOKEN},Re=function(e){var t=[],n=[];return e.forEach(function(e){if(e.type===h.COMMA_TOKEN){if(0===n.length)throw new Error("Error parsing function args, zero tokens for arg");return t.push(n),void(n=[])}e.type!==h.WHITESPACE_TOKEN&&n.push(e)}),n.length&&t.push(n),t},Pe=function(e,t){return t===h.LEFT_CURLY_BRACKET_TOKEN&&e.type===h.RIGHT_CURLY_BRACKET_TOKEN||t===h.LEFT_SQUARE_BRACKET_TOKEN&&e.type===h.RIGHT_SQUARE_BRACKET_TOKEN||t===h.LEFT_PARENTHESIS_TOKEN&&e.type===h.RIGHT_PARENTHESIS_TOKEN},De=function(e){return e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN},Me=function(e){return e.type===h.PERCENTAGE_TOKEN||De(e)},_e=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},je={type:h.NUMBER_TOKEN,number:0,flags:4},Ke={type:h.PERCENTAGE_TOKEN,number:50,flags:4},ze={type:h.PERCENTAGE_TOKEN,number:100,flags:4},We=function(e,t,n){var r=e[0],a=e[1];return[Ve(r,t),Ve(void 0!==a?a:r,n)]},Ve=function(e,t){if(e.type===h.PERCENTAGE_TOKEN)return e.number/100*t;if(ke(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Ge=function(e){if(e.type===h.DIMENSION_TOKEN)switch(e.unit){case"deg":return Math.PI*e.number/180;case"grad":return Math.PI/200*e.number;case"rad":return e.number;case"turn":return 2*Math.PI*e.number}throw new Error("Unsupported angle type")},qe=function(e){return e.type===h.DIMENSION_TOKEN&&("deg"===e.unit||"grad"===e.unit||"rad"===e.unit||"turn"===e.unit)},Ye=function(e){switch(e.filter(Le).map(function(e){return e.value}).join(" ")){case"to bottom right":case"to right bottom":case"left top":case"top left"
2:return[je,je];case"to top":case"bottom":return Xe(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[je,ze];case"to right":case"left":return Xe(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[ze,ze];case"to bottom":case"top":return Xe(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[ze,je];case"to left":case"right":return Xe(270)}return 0},Xe=function(e){return Math.PI*e/180},Je=function(e){if(e.type===h.FUNCTION){var t=st[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported color function "'+e.name+'"');return t(e.values)}if(e.type===h.HASH_TOKEN){if(3===e.value.length){var n=e.value.substring(0,1),r=e.value.substring(1,2),a=e.value.substring(2,3);return et(parseInt(n+n,16),parseInt(r+r,16),parseInt(a+a,16),1)}if(4===e.value.length){n=e.value.substring(0,1),r=e.value.substring(1,2),a=e.value.substring(2,3);var o=e.value.substring(3,4);return et(parseInt(n+n,16),parseInt(r+r,16),parseInt(a+a,16),parseInt(o+o,16)/255)}if(6===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),a=e.value.substring(4,6),et(parseInt(n,16),parseInt(r,16),parseInt(a,16),1);if(8===e.value.length)return n=e.value.substring(0,2),r=e.value.substring(2,4),a=e.value.substring(4,6),o=e.value.substring(6,8),et(parseInt(n,16),parseInt(r,16),parseInt(a,16),parseInt(o,16)/255)}if(e.type===h.IDENT_TOKEN){var i=lt[e.value.toUpperCase()];if(void 0!==i)return i}return lt.TRANSPARENT},Ze=function(e){return 0==(255&e)},$e=function(e){var t=255&e,n=255&e>>8,r=255&e>>16,a=255&e>>24;return t<255?"rgba("+a+","+r+","+n+","+t/255+")":"rgb("+a+","+r+","+n+")"},et=function(e,t,n,r){return(e<<24|t<<16|n<<8|Math.round(255*r))>>>0},tt=function(e,t){if(e.type===h.NUMBER_TOKEN)return e.number;if(e.type===h.PERCENTAGE_TOKEN){var n=3===t?1:255;return 3===t?e.number/100*n:Math.round(e.number/100*n)}return 0},nt=function(e){var t=e.filter(He);if(3===t.length){var n=t.map(tt),r=n[0],a=n[1],o=n[2];return et(r,a,o,1)}if(4===t.length){var i=t.map(tt),s=(r=i[0],a=i[1],o=i[2],i[3]);return et(r,a,o,s)}return 0};function rt(e,t,n){return n<0&&(n+=1),n>=1&&(n-=1),n<1/6?(t-e)*n*6+e:n<.5?t:n<2/3?6*(t-e)*(2/3-n)+e:e}var at,ot,it=function(e){var t=e.filter(He),n=t[0],r=t[1],a=t[2],o=t[3],i=(n.type===h.NUMBER_TOKEN?Xe(n.number):Ge(n))/(2*Math.PI),s=Me(r)?r.number/100:0,l=Me(a)?a.number/100:0,c=void 0!==o&&Me(o)?Ve(o,1):1;if(0===s)return et(255*l,255*l,255*l,1);var u=l<=.5?l*(s+1):l+s-l*s,A=2*l-u,d=rt(A,u,i+1/3),p=rt(A,u,i),f=rt(A,u,i-1/3);return et(255*d,255*p,255*f,c)},st={hsl:it,hsla:it,rgb:nt,rgba:nt},lt={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:404164
21215,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};(function(e){e[e.VALUE=0]="VALUE",e[e.LIST=1]="LIST",e[e.IDENT_VALUE=2]="IDENT_VALUE",e[e.TYPE_VALUE=3]="TYPE_VALUE",e[e.TOKEN_VALUE=4]="TOKEN_VALUE"})(at||(at={})),function(e){e[e.BORDER_BOX=0]="BORDER_BOX",e[e.PADDING_BOX=1]="PADDING_BOX",e[e.CONTENT_BOX=2]="CONTENT_BOX"}(ot||(ot={}));var ct,ut,At,ht={name:"background-clip",initialValue:"border-box",prefix:!1,type:at.LIST,parse:function(e){return e.map(function(e){if(Le(e))switch(e.value){case"padding-box":return ot.PADDING_BOX;case"content-box":return ot.CONTENT_BOX}return ot.BORDER_BOX})}},dt={name:"background-color",initialValue:"transparent",prefix:!1,type:at.TYPE_VALUE,format:"color"},pt=function(e){var t=Je(e[0]),n=e[1];return n&&Me(n)?{color:t,stop:n}:{color:t,stop:null}},ft=function(e,t){var n=e[0],r=e[e.length-1];null===n.stop&&(n.stop=je),null===r.stop&&(r.stop=ze);for(var a=[],o=0,i=0;i<e.length;i++){var s=e[i].stop;if(null!==s){var l=Ve(s,t);l>o?a.push(l):a.push(o),o=l}else a.push(null)}var c=null;for(i=0;i<a.length;i++){var u=a[i];if(null===u)null===c&&(c=i);else if(null!==c){for(var A=i-c,h=(u-a[c-1])/(A+1),d=1;d<=A;d++)a[c+d-1]=h*d;c=null}}return e.map(function(e,n){return{color:e.color,stop:Math.max(Math.min(1,a[n]/t),0)}})},mt=function(e,t){return Math.sqrt(e*e+t*t)},yt=function(e,t,n,r,a){return[[0,0],[0,t],[e,0],[e,t]].reduce(function(e,t){var o=t[0],i=t[1],s=mt(n-o,r-i);return(a?s<e.optimumDistance:s>e.optimumDistance)?{optimumCorner:t,optimumDistance:s}:e},{optimumDistance:a?1/0:-1/0,optimumCorner:null}).optimumCorner},gt=function(e){var t=Xe(180),n=[];return Re(e).forEach(function(e,r){if(0===r){var a=e[0];if(a.type===h.IDENT_TOKEN&&-1!==["top","left","right","bottom"].indexOf(a.value))return void(t=Ye(e));if(qe(a))return void(t=(Ge(a)+Xe(270))%Xe(360))}var o=pt(e);n.push(o)}),{angle:t,stops:n,type:ct.LINEAR_GRADIENT}},bt=function(e){return 0===e[0]&&255===e[1]&&0===e[2]&&255===e[3]},vt=function(e,t,n,r,a){var o="http://www.w3.org/2000/svg",i=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return i.setAttributeNS(null,"width",e.toString()),i.setAttributeNS(null,"height",t.toString()),s.setAttributeNS(null,"width","100%"),s.setAttributeNS(null,"height","100%"),s.setAttributeNS(null,"x",n.toString()),s.setAttributeNS(null,"y",r.toString()),s.setAttributeNS(null,"externalResourcesRequired","true"),i.appendChild(s),s.appendChild(a),i},wt=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},Bt={get SUPPORT_RANGE_BOUNDS(){var e=function(e){if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var n=e.createElement("boundtest");n.style.height="123px",n.style.display="block",e.body.appendChild(n),t.selectNode(n);var r=t.getBoundingClientRect(),a=Math.round(r.height);if(e.body.removeChild(n),123===a)return!0}}return!1}(document);return Object.defineProperty(Bt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=function(e){var t=new Image,n=e.createElement("canvas"),r=n.getContext("2d");if(!r)return!1;t.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(t,0,0),n.toDataURL()}catch(e){return!1}return!0}(document);return Object.defineProperty(Bt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e="function"==typeof Array.from&&"function"==typeof window.fetch?function(e){var t=e.createElement("canvas");t.width=100,t.height=100;var n=t.getContext("2d");if(!n)return Promise.reject(!1);n.fillStyle="rgb(0, 255, 0)",n.fillRect(0,0,100,100);var r=new Image,a=t.toDataURL();r.src=a;var o=vt(100,100,0,0,r);return n.fillStyle="red",n.fillRect(0,0,100,100),wt(o).then(function(t){n.drawImage(t,0,0);var r=n.getImageData(0,0,100,100).data;n.fillStyle="red",n.fillRect(0,0,100,100);var o=e.createElement("div");return o.style.backgroundImage="url("+a+")",o.style.height="100px",bt(r)?wt(vt(100,100,0,0,o)):Promise.reject(!1)}).then(function(e){return n.drawImage(e,0,0),bt(n.getImageData(0,0,100,100).data)}).catch(function(){return!1})}
2(document):Promise.resolve(!1);return Object.defineProperty(Bt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=void 0!==(new Image).crossOrigin;return Object.defineProperty(Bt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e="string"==typeof(new XMLHttpRequest).responseType;return Object.defineProperty(Bt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Bt,"SUPPORT_CORS_XHR",{value:e}),e}},Ct=function(){function e(e){var t=e.id,n=e.enabled;this.id=t,this.enabled=n,this.start=Date.now()}return e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.debug?console.debug.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.prototype.getTime=function(){return Date.now()-this.start},e.create=function(t){e.instances[t.id]=new e(t)},e.destroy=function(t){delete e.instances[t]},e.getInstance=function(t){var n=e.instances[t];if(void 0===n)throw new Error("No logger instance found with id "+t);return n},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&"undefined"!=typeof window&&window.console&&"function"==typeof console.info&&console.info.apply(console,[this.id,this.getTime()+"ms"].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.enabled&&("undefined"!=typeof window&&window.console&&"function"==typeof console.error?console.error.apply(console,[this.id,this.getTime()+"ms"].concat(e)):this.info.apply(this,e))},e.instances={},e}(),Nt=function(){function e(){}return e.create=function(t,n){return e._caches[t]=new Et(t,n)},e.destroy=function(t){delete e._caches[t]},e.open=function(t){var n=e._caches[t];if(void 0!==n)return n;throw new Error('Cache with key "'+t+'" not found')},e.getOrigin=function(t){var n=e._link;return n?(n.href=t,n.href=n.href,n.protocol+n.hostname+n.port):"about:blank"},e.isSameOrigin=function(t){return e.getOrigin(t)===e._origin},e.setContext=function(t){e._link=t.document.createElement("a"),e._origin=e.getOrigin(t.location.href)},e.getInstance=function(){var t=e._current;if(null===t)throw new Error("No cache instance attached");return t},e.attachInstance=function(t){e._current=t},e.detachInstance=function(){e._current=null},e._caches={},e._origin="about:blank",e._current=null,e}(),Et=function(){function e(e,t){this.id=e,this._options=t,this._cache={}}return e.prototype.addImage=function(e){var t=Promise.resolve();return this.has(e)?t:Lt(e)||Ft(e)?(this._cache[e]=this.loadImage(e),t):t},e.prototype.match=function(e){return this._cache[e]},e.prototype.loadImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,i=this;return a(this,function(a){switch(a.label){case 0:return t=Nt.isSameOrigin(e),n=!kt(e)&&!0===this._options.useCORS&&Bt.SUPPORT_CORS_IMAGES&&!t,r=!kt(e)&&!t&&"string"==typeof this._options.proxy&&Bt.SUPPORT_CORS_XHR&&!n,t||!1!==this._options.allowTaint||kt(e)||r||n?(o=e,r?[4,this.proxy(o)]:[3,2]):[2];case 1:o=a.sent(),a.label=2;case 2:return Ct.getInstance(this.id).debug("Added image "+e.substring(0,256)),[4,new Promise(function(e,t){var r=new Image;r.onload=function(){return e(r)},r.onerror=t,(Ut(o)||n)&&(r.crossOrigin="anonymous"),r.src=o,!0===r.complete&&setTimeout(function(){return e(r)},500),i._options.imageTimeout>0&&setTimeout(function(){return t("Timed out ("+i._options.imageTimeout+"ms) loading image")},i._options.imageTimeout)})];case 3:return[2,a.sent()]}})})},e.prototype.has=function(e){return void 0!==this._cache[e]},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(e){var t=this,n=this._options.proxy;if(!n)throw new Error("No proxy defined");var r=e.substring(0,256);return new Promise(function(a,o){var i=Bt.SUPPORT_RESPONSE_TYPE?"blob":"text",s=new XMLHttpRequest;if(s.onload=function(){if(200===s.status)if("text"===i)a(s.response);else{var e=new FileReader;e.addEventListener("load",function(){return a(e.result)},!1),e.addEventListener("error",function(e){return o(e)}
2,!1),e.readAsDataURL(s.response)}else o("Failed to proxy resource "+r+" with status code "+s.status)},s.onerror=o,s.open("GET",n+"?url="+encodeURIComponent(e)+"&responseType="+i),"text"!==i&&s instanceof XMLHttpRequest&&(s.responseType=i),t._options.imageTimeout){var l=t._options.imageTimeout;s.timeout=l,s.ontimeout=function(){return o("Timed out ("+l+"ms) proxying "+r)}}s.send()})},e}(),xt=/^data:image\/svg\+xml/i,St=/^data:image\/.*;base64,/i,Tt=/^data:image\/.*/i,Ft=function(e){return Bt.SUPPORT_SVG_DRAWING||!Ot(e)},kt=function(e){return Tt.test(e)},Ut=function(e){return St.test(e)},Lt=function(e){return"blob"===e.substr(0,4)},Ot=function(e){return"svg"===e.substr(-3).toLowerCase()||xt.test(e)},It=function(e){var t=ut.CIRCLE,n=At.FARTHEST_CORNER,r=[],a=[];return Re(e).forEach(function(e,o){var i=!0;if(0===o?i=e.reduce(function(e,t){if(Le(t))switch(t.value){case"center":return a.push(Ke),!1;case"top":case"left":return a.push(je),!1;case"right":case"bottom":return a.push(ze),!1}else if(Me(t)||De(t))return a.push(t),!1;return e},i):1===o&&(i=e.reduce(function(e,r){if(Le(r))switch(r.value){case"circle":return t=ut.CIRCLE,!1;case"ellipse":return t=ut.ELLIPSE,!1;case"contain":case"closest-side":return n=At.CLOSEST_SIDE,!1;case"farthest-side":return n=At.FARTHEST_SIDE,!1;case"closest-corner":return n=At.CLOSEST_CORNER,!1;case"cover":case"farthest-corner":return n=At.FARTHEST_CORNER,!1}else if(De(r)||Me(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e},i)),i){var s=pt(e);r.push(s)}}),{size:n,shape:t,stops:r,position:a,type:ct.RADIAL_GRADIENT}};!function(e){e[e.URL=0]="URL",e[e.LINEAR_GRADIENT=1]="LINEAR_GRADIENT",e[e.RADIAL_GRADIENT=2]="RADIAL_GRADIENT"}(ct||(ct={})),function(e){e[e.CIRCLE=0]="CIRCLE",e[e.ELLIPSE=1]="ELLIPSE"}(ut||(ut={})),function(e){e[e.CLOSEST_SIDE=0]="CLOSEST_SIDE",e[e.FARTHEST_SIDE=1]="FARTHEST_SIDE",e[e.CLOSEST_CORNER=2]="CLOSEST_CORNER",e[e.FARTHEST_CORNER=3]="FARTHEST_CORNER"}(At||(At={}));var Qt,Ht=function(e){if(e.type===h.URL_TOKEN){var t={url:e.value,type:ct.URL};return Nt.getInstance().addImage(e.value),t}if(e.type===h.FUNCTION){var n=Rt[e.name];if(void 0===n)throw new Error('Attempting to parse an unsupported image function "'+e.name+'"');return n(e.values)}throw new Error("Unsupported image type")},Rt={"linear-gradient":function(e){var t=Xe(180),n=[];return Re(e).forEach(function(e,r){if(0===r){var a=e[0];if(a.type===h.IDENT_TOKEN&&"to"===a.value)return void(t=Ye(e));if(qe(a))return void(t=Ge(a))}var o=pt(e);n.push(o)}),{angle:t,stops:n,type:ct.LINEAR_GRADIENT}},"-moz-linear-gradient":gt,"-ms-linear-gradient":gt,"-o-linear-gradient":gt,"-webkit-linear-gradient":gt,"radial-gradient":function(e){var t=ut.CIRCLE,n=At.FARTHEST_CORNER,r=[],a=[];return Re(e).forEach(function(e,o){var i=!0;if(0===o){var s=!1;i=e.reduce(function(e,r){if(s)if(Le(r))switch(r.value){case"center":return a.push(Ke),e;case"top":case"left":return a.push(je),e;case"right":case"bottom":return a.push(ze),e}else(Me(r)||De(r))&&a.push(r);else if(Le(r))switch(r.value){case"circle":return t=ut.CIRCLE,!1;case"ellipse":return t=ut.ELLIPSE,!1;case"at":return s=!0,!1;case"closest-side":return n=At.CLOSEST_SIDE,!1;case"cover":case"farthest-side":return n=At.FARTHEST_SIDE,!1;case"contain":case"closest-corner":return n=At.CLOSEST_CORNER,!1;case"farthest-corner":return n=At.FARTHEST_CORNER,!1}else if(De(r)||Me(r))return Array.isArray(n)||(n=[]),n.push(r),!1;return e},i)}if(i){var l=pt(e);r.push(l)}}),{size:n,shape:t,stops:r,position:a,type:ct.RADIAL_GRADIENT}},"-moz-radial-gradient":It,"-ms-radial-gradient":It,"-o-radial-gradient":It,"-webkit-radial-gradient":It,"-webkit-gradient":function(e){var t=Xe(180),n=[],r=ct.LINEAR_GRADIENT,a=ut.CIRCLE,o=At.FARTHEST_CORNER;return Re(e).forEach(function(e,t){var a=e[0];if(0===t){if(Le(a)&&"linear"===a.value)return void(r=ct.LINEAR_GRADIENT);if(Le(a)&&"radial"===a.value)return void(r=ct.RADIAL_GRADIENT)}if(a.type===h.FUNCTION)if("from"===a.name){var o=Je(a.values[0]);n.push({stop:je,color:o})}else if("to"===a.name)o=Je(a.values[0]),n.push({stop:ze,color:o});else if("color-stop"===a.name){var i=a.values.filter(He);if(2===i.length){o=Je(i[1]);var s=i[0];Ue(s)&&n.push({stop:{type:h.PERCENTAGE_TOKEN,number:100*s.number,flags:s.flags},color:o})}}}
2),r===ct.LINEAR_GRADIENT?{angle:(t+Xe(180))%Xe(360),stops:n,type:r}:{size:o,shape:a,stops:n,position:[],type:r}}},Pt={name:"background-image",initialValue:"none",type:at.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e.filter(function(e){return He(e)&&function(e){return e.type!==h.FUNCTION||Rt[e.name]}(e)}).map(Ht)}},Dt={name:"background-origin",initialValue:"border-box",prefix:!1,type:at.LIST,parse:function(e){return e.map(function(e){if(Le(e))switch(e.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Mt={name:"background-position",initialValue:"0% 0%",type:at.LIST,prefix:!1,parse:function(e){return Re(e).map(function(e){return e.filter(Me)}).map(_e)}};!function(e){e[e.REPEAT=0]="REPEAT",e[e.NO_REPEAT=1]="NO_REPEAT",e[e.REPEAT_X=2]="REPEAT_X",e[e.REPEAT_Y=3]="REPEAT_Y"}(Qt||(Qt={}));var _t,jt={name:"background-repeat",initialValue:"repeat",prefix:!1,type:at.LIST,parse:function(e){return Re(e).map(function(e){return e.filter(Le).map(function(e){return e.value}).join(" ")}).map(Kt)}},Kt=function(e){switch(e){case"no-repeat":return Qt.NO_REPEAT;case"repeat-x":case"repeat no-repeat":return Qt.REPEAT_X;case"repeat-y":case"no-repeat repeat":return Qt.REPEAT_Y;default:return Qt.REPEAT}};!function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"}(_t||(_t={}));var zt,Wt={name:"background-size",initialValue:"0",prefix:!1,type:at.LIST,parse:function(e){return Re(e).map(function(e){return e.filter(Vt)})}},Vt=function(e){return Le(e)||Me(e)},Gt=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:at.TYPE_VALUE,format:"color"}},qt=Gt("top"),Yt=Gt("right"),Xt=Gt("bottom"),Jt=Gt("left"),Zt=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:at.LIST,parse:function(e){return _e(e.filter(Me))}}},$t=Zt("top-left"),en=Zt("top-right"),tn=Zt("bottom-right"),nn=Zt("bottom-left");!function(e){e[e.NONE=0]="NONE",e[e.SOLID=1]="SOLID"}(zt||(zt={}));var rn,an=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:at.IDENT_VALUE,parse:function(e){return"none"===e?zt.NONE:zt.SOLID}}},on=an("top"),sn=an("right"),ln=an("bottom"),cn=an("left"),un=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:at.VALUE,prefix:!1,parse:function(e){return ke(e)?e.number:0}}},An=un("top"),hn=un("right"),dn=un("bottom"),pn=un("left"),fn={name:"color",initialValue:"transparent",prefix:!1,type:at.TYPE_VALUE,format:"color"},mn={name:"display",initialValue:"inline-block",prefix:!1,type:at.LIST,parse:function(e){return e.filter(Le).reduce(function(e,t){return e|yn(t.value)},0)}},yn=function(e){switch(e){case"block":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};!function(e){e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.INLINE_START=3]="INLINE_START",e[e.INLINE_END=4]="INLINE_END"}(rn||(rn={}));var gn,bn={name:"float",initialValue:"none",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"left":return rn.LEFT;case"right":return rn.RIGHT;case"inline-start":return rn.INLINE_START;case"inline-end":return rn.INLINE_END}return rn.NONE}},vn={name:"letter-spacing",initialValue:"0",prefix:!1,type:at.VALUE,parse:function(e){return e.type===h.IDENT_TOKEN&&"normal"===e.value?0:e.type===h.NUMBER_TOKEN||e.type===h.DIMENSION_TOKEN?e.number:0}};!function(e){e.NORMAL="normal",e.STRICT="strict"}(gn||(gn={}));var wn,Bn={name:"line-break",initialValue:"normal",prefix:!1,type:at.IDENT_VALUE,parse:function(e){return"strict"===e?gn.STRICT:gn.NORMAL}},Cn={name:"line-height",initialValue:"normal",prefix:!1,type:at.TOKEN_VALUE},Nn={name:"list-style-image",initialValue:"none",type:at.VALUE,prefix:!1,parse:function(e){return e.type===h.IDENT_TOKEN&&"none"===e.value?null:Ht(e)}};!function(e){e[e.INSIDE=0]="INSIDE",e[e.OUTSIDE=1]="OUTSIDE"}(wn||(wn={}));var En,xn={name:"list-style-position",initialValue:"outside",prefix:!1,type:at.IDENT_VALUE,parse:function(e){return"inside"===e?wn.INSIDE:wn.OUTSIDE}};!function(e){e[e.NONE=-1]="NONE",e[e.DISC=0]="DISC",e[e.CIRCLE=1]="CIRCLE",e[e.SQUARE=2]="SQUARE",e[e.DECI
2MAL=3]="DECIMAL",e[e.CJK_DECIMAL=4]="CJK_DECIMAL",e[e.DECIMAL_LEADING_ZERO=5]="DECIMAL_LEADING_ZERO",e[e.LOWER_ROMAN=6]="LOWER_ROMAN",e[e.UPPER_ROMAN=7]="UPPER_ROMAN",e[e.LOWER_GREEK=8]="LOWER_GREEK",e[e.LOWER_ALPHA=9]="LOWER_ALPHA",e[e.UPPER_ALPHA=10]="UPPER_ALPHA",e[e.ARABIC_INDIC=11]="ARABIC_INDIC",e[e.ARMENIAN=12]="ARMENIAN",e[e.BENGALI=13]="BENGALI",e[e.CAMBODIAN=14]="CAMBODIAN",e[e.CJK_EARTHLY_BRANCH=15]="CJK_EARTHLY_BRANCH",e[e.CJK_HEAVENLY_STEM=16]="CJK_HEAVENLY_STEM",e[e.CJK_IDEOGRAPHIC=17]="CJK_IDEOGRAPHIC",e[e.DEVANAGARI=18]="DEVANAGARI",e[e.ETHIOPIC_NUMERIC=19]="ETHIOPIC_NUMERIC",e[e.GEORGIAN=20]="GEORGIAN",e[e.GUJARATI=21]="GUJARATI",e[e.GURMUKHI=22]="GURMUKHI",e[e.HEBREW=22]="HEBREW",e[e.HIRAGANA=23]="HIRAGANA",e[e.HIRAGANA_IROHA=24]="HIRAGANA_IROHA",e[e.JAPANESE_FORMAL=25]="JAPANESE_FORMAL",e[e.JAPANESE_INFORMAL=26]="JAPANESE_INFORMAL",e[e.KANNADA=27]="KANNADA",e[e.KATAKANA=28]="KATAKANA",e[e.KATAKANA_IROHA=29]="KATAKANA_IROHA",e[e.KHMER=30]="KHMER",e[e.KOREAN_HANGUL_FORMAL=31]="KOREAN_HANGUL_FORMAL",e[e.KOREAN_HANJA_FORMAL=32]="KOREAN_HANJA_FORMAL",e[e.KOREAN_HANJA_INFORMAL=33]="KOREAN_HANJA_INFORMAL",e[e.LAO=34]="LAO",e[e.LOWER_ARMENIAN=35]="LOWER_ARMENIAN",e[e.MALAYALAM=36]="MALAYALAM",e[e.MONGOLIAN=37]="MONGOLIAN",e[e.MYANMAR=38]="MYANMAR",e[e.ORIYA=39]="ORIYA",e[e.PERSIAN=40]="PERSIAN",e[e.SIMP_CHINESE_FORMAL=41]="SIMP_CHINESE_FORMAL",e[e.SIMP_CHINESE_INFORMAL=42]="SIMP_CHINESE_INFORMAL",e[e.TAMIL=43]="TAMIL",e[e.TELUGU=44]="TELUGU",e[e.THAI=45]="THAI",e[e.TIBETAN=46]="TIBETAN",e[e.TRAD_CHINESE_FORMAL=47]="TRAD_CHINESE_FORMAL",e[e.TRAD_CHINESE_INFORMAL=48]="TRAD_CHINESE_INFORMAL",e[e.UPPER_ARMENIAN=49]="UPPER_ARMENIAN",e[e.DISCLOSURE_OPEN=50]="DISCLOSURE_OPEN",e[e.DISCLOSURE_CLOSED=51]="DISCLOSURE_CLOSED"}(En||(En={}));var Sn,Tn={name:"list-style-type",initialValue:"none",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"disc":return En.DISC;case"circle":return En.CIRCLE;case"square":return En.SQUARE;case"decimal":return En.DECIMAL;case"cjk-decimal":return En.CJK_DECIMAL;case"decimal-leading-zero":return En.DECIMAL_LEADING_ZERO;case"lower-roman":return En.LOWER_ROMAN;case"upper-roman":return En.UPPER_ROMAN;case"lower-greek":return En.LOWER_GREEK;case"lower-alpha":return En.LOWER_ALPHA;case"upper-alpha":return En.UPPER_ALPHA;case"arabic-indic":return En.ARABIC_INDIC;case"armenian":return En.ARMENIAN;case"bengali":return En.BENGALI;case"cambodian":return En.CAMBODIAN;case"cjk-earthly-branch":return En.CJK_EARTHLY_BRANCH;case"cjk-heavenly-stem":return En.CJK_HEAVENLY_STEM;case"cjk-ideographic":return En.CJK_IDEOGRAPHIC;case"devanagari":return En.DEVANAGARI;case"ethiopic-numeric":return En.ETHIOPIC_NUMERIC;case"georgian":return En.GEORGIAN;case"gujarati":return En.GUJARATI;case"gurmukhi":return En.GURMUKHI;case"hebrew":return En.HEBREW;case"hiragana":return En.HIRAGANA;case"hiragana-iroha":return En.HIRAGANA_IROHA;case"japanese-formal":return En.JAPANESE_FORMAL;case"japanese-informal":return En.JAPANESE_INFORMAL;case"kannada":return En.KANNADA;case"katakana":return En.KATAKANA;case"katakana-iroha":return En.KATAKANA_IROHA;case"khmer":return En.KHMER;case"korean-hangul-formal":return En.KOREAN_HANGUL_FORMAL;case"korean-hanja-formal":return En.KOREAN_HANJA_FORMAL;case"korean-hanja-informal":return En.KOREAN_HANJA_INFORMAL;case"lao":return En.LAO;case"lower-armenian":return En.LOWER_ARMENIAN;case"malayalam":return En.MALAYALAM;case"mongolian":return En.MONGOLIAN;case"myanmar":return En.MYANMAR;case"oriya":return En.ORIYA;case"persian":return En.PERSIAN;case"simp-chinese-formal":return En.SIMP_CHINESE_FORMAL;case"simp-chinese-informal":return En.SIMP_CHINESE_INFORMAL;case"tamil":return En.TAMIL;case"telugu":return En.TELUGU;case"thai":return En.THAI;case"tibetan":return En.TIBETAN;case"trad-chinese-formal":return En.TRAD_CHINESE_FORMAL;case"trad-chinese-informal":return En.TRAD_CHINESE_INFORMAL;case"upper-armenian":return En.UPPER_ARMENIAN;case"disclosure-open":return En.DISCLOSURE_OPEN;case"disclosure-closed":return En.DISCLOSURE_CLOSED;default:return En.NONE}}},Fn=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:at.TOKEN_VALUE}},kn=Fn("top"),Un=Fn("right"),Ln=Fn("bottom"),On=Fn("left");!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.SCROLL=2]="SCROLL",e[e.AUTO=3]="AUTO"}(Sn||(Sn={}));var In,Qn={name:"overflow",initialValue:"visible",prefix:!1,type:at.LIST,parse:function(e){return e.filter(Le).map(function(e){switch(e.value){case"hidden":return Sn.HIDDEN;case"scroll":return Sn.SCROLL;case"auto":return Sn.AUTO;default:return Sn.VISIBLE}})}};!function(e){e.NORMAL="normal",e.BREAK_WORD="break-word"}(In||(In={}));var Hn,Rn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:at.IDENT_VALUE,parse:function(e){return"break-word"===e?In.BREAK_WORD:In.NORMAL}},Pn=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:at.TYPE_VALUE,format:"length-percentage"}},Dn=Pn("top"),Mn=Pn("right"),_n=Pn("bottom"),jn=Pn("left");!function(e){e[e.LEFT=0]="LEFT",e[e.CENTER=1]="CENTER",e[e.RIGHT=2]="RIGHT"}(Hn||(Hn={}));var Kn,zn={name:"text-align",initialValue:"left",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"right":return Hn.RIGHT;case"center":case"justify":return Hn.CENTER;default:return Hn.LEFT}}};!function(e){e[e.STATIC=0]="STATIC",e[e.RELATIVE=1]="RELATIVE",e[e.ABSOLUTE=2]="ABSOLUTE",e[e.FIXED=3]="FIXED",e[e.STICKY=4]="STICKY"}(Kn||(Kn={}));var Wn,Vn={name:"position",initialValue:"static",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"relative":return Kn.RELATIVE;case"absolute":return Kn.ABSOLUTE;case"fixed":return Kn.FIXED;case"sticky":return Kn.STICKY}return Kn.STATIC}},Gn={name:"text-shadow",initialValue:"none",type:at.LIST,prefix:!1,parse:function(e){return 1===e.length&&Ie(e[0],"none")?[]:Re(e).map(function(e){for(var t={color:lt.TRANSPARENT,offsetX:je,offsetY:je,blur:je},n=0,r=0;r<e.length;r++){var a=e[r];De(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:t.blur=a,n++):t.color=Je(a)}return t})}};!function(e){e[e.NONE=0]="NONE",e[e.LOWERCASE=1]="LOWERCASE",e[e.UPPERCASE=2]="UPPERCASE",e[e.CAPITALIZE=3]="CAPITALIZE"}(Wn||(Wn={}));
2var qn,Yn={name:"text-transform",initialValue:"none",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"uppercase":return Wn.UPPERCASE;case"lowercase":return Wn.LOWERCASE;case"capitalize":return Wn.CAPITALIZE}return Wn.NONE}},Xn={name:"transform",initialValue:"none",prefix:!0,type:at.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN&&"none"===e.value)return null;if(e.type===h.FUNCTION){var t=Jn[e.name];if(void 0===t)throw new Error('Attempting to parse an unsupported transform function "'+e.name+'"');return t(e.values)}return null}},Jn={matrix:function(e){var t=e.filter(function(e){return e.type===h.NUMBER_TOKEN}).map(function(e){return e.number});return 6===t.length?t:null},matrix3d:function(e){var t=e.filter(function(e){return e.type===h.NUMBER_TOKEN}).map(function(e){return e.number}),n=t[0],r=t[1],a=(t[2],t[3],t[4]),o=t[5],i=(t[6],t[7],t[8],t[9],t[10],t[11],t[12]),s=t[13];return t[14],t[15],16===t.length?[n,r,a,o,i,s]:null}},Zn={type:h.PERCENTAGE_TOKEN,number:50,flags:4},$n=[Zn,Zn],er={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:at.LIST,parse:function(e){var t=e.filter(Me);return 2!==t.length?$n:[t[0],t[1]]}};!function(e){e[e.VISIBLE=0]="VISIBLE",e[e.HIDDEN=1]="HIDDEN",e[e.COLLAPSE=2]="COLLAPSE"}(qn||(qn={}));var tr,nr={name:"visible",initialValue:"none",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"hidden":return qn.HIDDEN;case"collapse":return qn.COLLAPSE;default:return qn.VISIBLE}}};!function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"}(tr||(tr={}));var rr,ar={name:"word-break",initialValue:"normal",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"break-all":return tr.BREAK_ALL;case"keep-all":return tr.KEEP_ALL;default:return tr.NORMAL}}},or={name:"z-index",initialValue:"auto",prefix:!1,type:at.VALUE,parse:function(e){if(e.type===h.IDENT_TOKEN)return{auto:!0,order:0};if(Ue(e))return{auto:!1,order:e.number};throw new Error("Invalid z-index number parsed")}},ir={name:"opacity",initialValue:"1",type:at.VALUE,prefix:!1,parse:function(e){return Ue(e)?e.number:1}},sr={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:at.TYPE_VALUE,format:"color"},lr={name:"text-decoration-line",initialValue:"none",prefix:!1,type:at.LIST,parse:function(e){return e.filter(Le).map(function(e){switch(e.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(e){return 0!==e})}},cr={name:"font-family",initialValue:"",prefix:!1,type:at.LIST,parse:function(e){var t=[],n=[];return e.forEach(function(e){switch(e.type){case h.IDENT_TOKEN:case h.STRING_TOKEN:t.push(e.value);break;case h.NUMBER_TOKEN:t.push(e.number.toString());break;case h.COMMA_TOKEN:n.push(t.join(" ")),t.length=0}}),t.length&&n.push(t.join(" ")),n.map(function(e){return-1===e.indexOf(" ")?e:"'"+e+"'"})}},ur={name:"font-size",initialValue:"0",prefix:!1,type:at.TYPE_VALUE,format:"length"},Ar={name:"font-weight",initialValue:"normal",type:at.VALUE,prefix:!1,parse:function(e){if(Ue(e))return e.number;if(Le(e)){if("bold"===e.value)return 700;return 400}return 400}},hr={name:"font-variant",initialValue:"none",type:at.LIST,prefix:!1,parse:function(e){return e.filter(Le).map(function(e){return e.value})}};!function(e){e.NORMAL="normal",e.ITALIC="italic",e.OBLIQUE="oblique"}(rr||(rr={}));var dr,pr={name:"font-style",initialValue:"normal",prefix:!1,type:at.IDENT_VALUE,parse:function(e){switch(e){case"oblique":return rr.OBLIQUE;case"italic":return rr.ITALIC;default:return rr.NORMAL}}},fr=function(e,t){return 0!=(e&t)},mr={name:"content",initialValue:"none",type:at.LIST,prefix:!1,parse:function(e){if(0===e.length)return[];var t=e[0];return t.type===h.IDENT_TOKEN&&"none"===t.value?[]:e}},yr={name:"counter-increment",initialValue:"none",prefix:!0,type:at.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;for(var n=[],r=e.filter(Qe),a=0;a<r.length;a++){var o=r[a],i=r[a+1];if(o.type===h.IDENT_TOKEN){var s=i&&Ue(i)?i.number:1;n.push({counter:o.value,increment:s})}}return n}},gr={name:"counter-reset",initialValue:"none",prefix:!0,type:at.LIST,parse:function(e){if(0===e.length)return[];for(var t=[],n=e.filter(Qe),r=0;r<n.length;r++){var a=n[r],o=n[r+1];if(Le(a)&&"none"!==a.value){var i=o&&Ue(o)?o.number:0;t.push({counter:a.value,reset:i})}}return t}},br={name:"quotes",initialValue:"none",prefix:!0,type:at.LIST,parse:function(e){if(0===e.length)return null;var t=e[0];if(t.type===h.IDENT_TOKEN&&"none"===t.value)return null;var n=[],r=e.filter(Oe);if(r.length%2!=0)return null;for(var a=0;a<r.length;a+=2){var o=r[a].value,i=r[a+1].value;n.push({open:o,close:i})}return n}},vr=function(e,t,n){if(!e)return"";var r=e[Math.min(t,e.length-1)];return r?n?r.open:r.close:""},wr={name:"box-shadow",initialValue:"none",type:at.LIST,prefix:!1,parse:function(e){return 1===e.length&&Ie(e[0],"none")?[]:Re(e).map(function(e){for(var t={color:255,offsetX:je,offsetY:je,blur:je,spread:je,inset:!1},n=0,r=0;r<e.length;r++){var a=e[r];Ie(a,"inset")?t.inset=!0:De(a)?(0===n?t.offsetX=a:1===n?t.offsetY=a:2===n?t.blur=a:t.spread=a,n++):t.color=Je(a)}return t})}},Br=function(){function e(e){this.backgroundClip=Er(ht,e.backgroundClip),this.backgroundColor=Er(
2dt,e.backgroundColor),this.backgroundImage=Er(Pt,e.backgroundImage),this.backgroundOrigin=Er(Dt,e.backgroundOrigin),this.backgroundPosition=Er(Mt,e.backgroundPosition),this.backgroundRepeat=Er(jt,e.backgroundRepeat),this.backgroundSize=Er(Wt,e.backgroundSize),this.borderTopColor=Er(qt,e.borderTopColor),this.borderRightColor=Er(Yt,e.borderRightColor),this.borderBottomColor=Er(Xt,e.borderBottomColor),this.borderLeftColor=Er(Jt,e.borderLeftColor),this.borderTopLeftRadius=Er($t,e.borderTopLeftRadius),this.borderTopRightRadius=Er(en,e.borderTopRightRadius),this.borderBottomRightRadius=Er(tn,e.borderBottomRightRadius),this.borderBottomLeftRadius=Er(nn,e.borderBottomLeftRadius),this.borderTopStyle=Er(on,e.borderTopStyle),this.borderRightStyle=Er(sn,e.borderRightStyle),this.borderBottomStyle=Er(ln,e.borderBottomStyle),this.borderLeftStyle=Er(cn,e.borderLeftStyle),this.borderTopWidth=Er(An,e.borderTopWidth),this.borderRightWidth=Er(hn,e.borderRightWidth),this.borderBottomWidth=Er(dn,e.borderBottomWidth),this.borderLeftWidth=Er(pn,e.borderLeftWidth),this.boxShadow=Er(wr,e.boxShadow),this.color=Er(fn,e.color),this.display=Er(mn,e.display),this.float=Er(bn,e.cssFloat),this.fontFamily=Er(cr,e.fontFamily),this.fontSize=Er(ur,e.fontSize),this.fontStyle=Er(pr,e.fontStyle),this.fontVariant=Er(hr,e.fontVariant),this.fontWeight=Er(Ar,e.fontWeight),this.letterSpacing=Er(vn,e.letterSpacing),this.lineBreak=Er(Bn,e.lineBreak),this.lineHeight=Er(Cn,e.lineHeight),this.listStyleImage=Er(Nn,e.listStyleImage),this.listStylePosition=Er(xn,e.listStylePosition),this.listStyleType=Er(Tn,e.listStyleType),this.marginTop=Er(kn,e.marginTop),this.marginRight=Er(Un,e.marginRight),this.marginBottom=Er(Ln,e.marginBottom),this.marginLeft=Er(On,e.marginLeft),this.opacity=Er(ir,e.opacity);var t=Er(Qn,e.overflow);this.overflowX=t[0],this.overflowY=t[t.length>1?1:0],this.overflowWrap=Er(Rn,e.overflowWrap),this.paddingTop=Er(Dn,e.paddingTop),this.paddingRight=Er(Mn,e.paddingRight),this.paddingBottom=Er(_n,e.paddingBottom),this.paddingLeft=Er(jn,e.paddingLeft),this.position=Er(Vn,e.position),this.textAlign=Er(zn,e.textAlign),this.textDecorationColor=Er(sr,e.textDecorationColor||e.color),this.textDecorationLine=Er(lr,e.textDecorationLine),this.textShadow=Er(Gn,e.textShadow),this.textTransform=Er(Yn,e.textTransform),this.transform=Er(Xn,e.transform),this.transformOrigin=Er(er,e.transformOrigin),this.visibility=Er(nr,e.visibility),this.wordBreak=Er(ar,e.wordBreak),this.zIndex=Er(or,e.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===qn.VISIBLE},e.prototype.isTransparent=function(){return Ze(this.backgroundColor)},e.prototype.isTransformed=function(){return null!==this.transform},e.prototype.isPositioned=function(){return this.position!==Kn.STATIC},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==rn.NONE},e.prototype.isInlineLevel=function(){return fr(this.display,4)||fr(this.display,33554432)||fr(this.display,268435456)||fr(this.display,536870912)||fr(this.display,67108864)||fr(this.display,134217728)},e}(),Cr=function(e){this.content=Er(mr,e.content),this.quotes=Er(br,e.quotes)},Nr=function(e){this.counterIncrement=Er(yr,e.counterIncrement),this.counterReset=Er(gr,e.counterReset)},Er=function(e,t){var n=new Te,r=null!=t?t.toString():e.initialValue;n.write(r);var a=new Fe(n.read());switch(e.type){case at.IDENT_VALUE:var o=a.parseComponentValue();return e.parse(Le(o)?o.value:e.initialValue);case at.VALUE:return e.parse(a.parseComponentValue());case at.LIST:return e.parse(a.parseComponentValues());case at.TOKEN_VALUE:return a.parseComponentValue();case at.TYPE_VALUE:switch(e.format){case"angle":return Ge(a.parseComponentValue());case"color":return Je(a.parseComponentValue());case"image":return Ht(a.parseComponentValue());case"length":var i=a.parseComponentValue();return De(i)?i:je;case"length-percentage":var s=a.parseComponentValue();return Me(s)?s:je}}throw new Error("Attempting to parse unsupported css format type "+e.format)},xr=function(e){this.styles=new Br(window.getComputedStyle(e,null)),this.textNodes=[],this.elements=[],null!==this.styles.transform&&ta(e)&&(e.style.transform="none"),this.bounds=i(e),this.flags=0},Sr=function(e,t){this.text=e,this.bounds=t},Tr=function(e){var t=e.ownerDocument;if(t){var n=t.createElement("html2canvaswrapper");
2n.appendChild(e.cloneNode(!0));var r=e.parentNode;if(r){r.replaceChild(n,e);var a=i(n);return n.firstChild&&r.replaceChild(n.firstChild,n),a}}return new o(0,0,0,0)},Fr=function(e,t,n){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var a=r.createRange();return a.setStart(e,t),a.setEnd(e,t+n),o.fromClientRect(a.getBoundingClientRect())},kr=function(e,t){for(var n,r=function(e,t){var n=s(e),r=function(e,t){t||(t={lineBreak:"normal",wordBreak:"normal"});var n=function(e,t){void 0===t&&(t="strict");var n=[],r=[],a=[];return e.forEach(function(e,o){var i=D.get(e);if(i>50?(a.push(!0),i-=50):a.push(!1),-1!==["normal","auto","loose"].indexOf(t)&&-1!==[8208,8211,12316,12448].indexOf(e))return r.push(o),n.push(16);if(4===i||11===i){if(0===o)return r.push(o),n.push(F);var s=n[o-1];return-1===z.indexOf(s)?(r.push(r[o-1]),n.push(s)):(r.push(o),n.push(F))}return r.push(o),31===i?n.push("strict"===t?B:I):i===P||29===i?n.push(F):43===i?e>=131072&&e<=196605||e>=196608&&e<=262141?n.push(I):n.push(F):void n.push(i)}),[r,n,a]}(e,t.lineBreak),r=n[0],a=n[1],o=n[2];return"break-all"!==t.wordBreak&&"break-word"!==t.wordBreak||(a=a.map(function(e){return-1!==[E,F,P].indexOf(e)?I:e})),[r,a,"keep-all"===t.wordBreak?o.map(function(t,n){return t&&e[n]>=19968&&e[n]<=40959}):void 0]}(n,t),a=r[0],o=r[1],i=r[2],l=n.length,c=0,u=0;return{next:function(){if(u>=l)return{done:!0,value:null};for(var e="\xd7";u<l&&"\xd7"===(e=Y(n,o,a,++u,i)););if("\xd7"!==e||u===l){var t=new X(n,e,c,u);return c=u,{value:t,done:!1}}return{done:!0,value:null}}}}(e,{lineBreak:t.lineBreak,wordBreak:t.overflowWrap===In.BREAK_WORD?"break-word":t.wordBreak}),a=[];!(n=r.next()).done;)n.value&&a.push(n.value.slice());return a},Ur=function(e,t){this.text=Lr(e.data,t.textTransform),this.textBounds=function(e,t,n){var r=function(e,t){return 0!==t.letterSpacing?s(e).map(function(e){return l(e)}):kr(e,t)}(e,t),a=[],o=0;return r.forEach(function(e){if(t.textDecorationLine.length||e.trim().length>0)if(Bt.SUPPORT_RANGE_BOUNDS)a.push(new Sr(e,Fr(n,o,e.length)));else{var r=n.splitText(e.length);a.push(new Sr(e,Tr(n))),n=r}else Bt.SUPPORT_RANGE_BOUNDS||(n=n.splitText(e.length));o+=e.length}),a}(this.text,t,e)},Lr=function(e,t){switch(t){case Wn.LOWERCASE:return e.toLowerCase();case Wn.CAPITALIZE:return e.replace(Or,Ir);case Wn.UPPERCASE:return e.toUpperCase();default:return e}},Or=/(^|\s|:|-|\(|\))([a-z])/g,Ir=function(e,t,n){return e.length>0?t+n.toUpperCase():e},Qr=function(e){function n(t){var n=e.call(this,t)||this;return n.src=t.currentSrc||t.src,n.intrinsicWidth=t.naturalWidth,n.intrinsicHeight=t.naturalHeight,Nt.getInstance().addImage(n.src),n}return t(n,e),n}(xr),Hr=function(e){function n(t){var n=e.call(this,t)||this;return n.canvas=t,n.intrinsicWidth=t.width,n.intrinsicHeight=t.height,n}return t(n,e),n}(xr),Rr=function(e){function n(t){var n=e.call(this,t)||this,r=new XMLSerializer;return n.svg="data:image/svg+xml,"+encodeURIComponent(r.serializeToString(t)),n.intrinsicWidth=t.width.baseVal.value,n.intrinsicHeight=t.height.baseVal.value,Nt.getInstance().addImage(n.svg),n}return t(n,e),n}(xr),Pr=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(xr),Dr=function(e){function n(t){var n=e.call(this,t)||this;return n.start=t.start,n.reversed="boolean"==typeof t.reversed&&!0===t.reversed,n}return t(n,e),n}(xr),Mr=[{type:h.DIMENSION_TOKEN,flags:0,unit:"px",number:3}],_r=[{type:h.PERCENTAGE_TOKEN,flags:0,number:50}],jr=function(e){function n(t){var n,r,a,i=e.call(this,t)||this;switch(i.type=t.type.toLowerCase(),i.checked=t.checked,i.value=0===(r="password"===(n=t).type?new Array(n.value.length+1).join("\u2022"):n.value).length?n.placeholder||"":r,"checkbox"!==i.type&&"radio"!==i.type||(i.styles.backgroundColor=3739148031,i.styles.borderTopColor=i.styles.borderRightColor=i.styles.borderBottomColor=i.styles.borderLeftColor=2779096575,i.styles.borderTopWidth=i.styles.borderRightWidth=i.styles.borderBottomWidth=i.styles.borderLeftWidth=1,i.styles.borderTopStyle=i.styles.borderRightStyle=i.styles.borderBottomStyle=i.styles.borderLeftStyle=zt.SOLID,i.styles.backgroundClip=[ot.BORDER_BOX],i.styles.backgroundOrigin=[0],i.bounds=(a=i.bounds).width>a.height?new o(a.left+(a.width-a.height)/2,a.top,a.height,a.height):a.width<a.height?new o(a.left,a.top+(a.height-a.width)/2,a.width,a.width):a),i.type){case"checkbox":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=Mr;break;case"radio":i.styles.borderTopRightRadius=i.styles.borderTopLeftRadius=i.styles.borderBottomRightRadius=i.styles.borderBottomLeftRadius=_r}return i}return t(n,e),n}(xr),Kr=function(e){function n(t){var n=e.call(this,t)||this,r=t.options[t.selectedIndex||0];return n.value=r&&r.text||"",n}return t(n,e),n}(xr),zr=function(e){function n(t){var n=e.call(this,t)||this;return n.value=t.value,n}return t(n,e),n}(xr),Wr=function(e){return Je(Fe.create(e).parseComponentValue())},Vr=function(e){function n(t){var n=e.call(this,t)||this;n.src=t.src,n.width=parseInt(t.width,10)||0,n.height=parseInt(t.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(t.contentWindow&&t.contentWindow.document&&t.contentWindow.document.documentElement){n.tree=Xr(t.contentWindow.document.documentElement);var r=t.contentWindow.document.documentElement?Wr(getComputedStyle(t.contentWindow.document.documentElement).backgroundColor):lt.TRANSPARENT,a=t.contentWindow.document.body?Wr(getComputedStyle(t.contentWindow.document.body).backgroundColor):lt.TRANSPARENT;n.backgroundColor=Ze(r)?Ze(a)?n.styles.backgroundColor:a:r}}catch(e){}return n}return t(n,e),n}(xr),Gr=["OL","UL","MENU"],qr=function(e,t,n){for(var r=e.firstChild,a=void 0;r;r=a)if(a=r.nextSibling,$r(r)&&r.data.trim().length>0)t.textNodes.push(new Ur(r,t.styles));else if(ea(r)){var o=Yr(r);o.styles.isVisible()&&(Jr(r,o,n)?o.flags|=4:Zr(o.styles)&&(o.flags|=2),-1!==Gr.indexOf(r.tagName)&&(o.flags|=8),t.elements.push(o),da(r)||ia(r)||pa(r)||qr(r,o,n))}},Yr=function(e){return ca(e)?new Qr(e):la(e)?new Hr(e):ia(e)?new Rr(e):ra(e)?new Pr(e):aa(e)?new Dr(e):oa(e)?new jr(e):pa(e)?new Kr(e):da(e)?new zr(e):ua(e)?new Vr(e):new xr(e)},Xr=function(e){var t=Yr(e);return t.flags|=4,qr(e,t,t),t},Jr=function(e,t,n){return t.styles.isPositionedWithZIndex()||t.styles.opacity<1||t.styles.isTransformed()||sa(e)&&n.styles.isTransparent
vendor: 1,649 bytes, line 2
2()},Zr=function(e){return e.isPositioned()||e.isFloating()},$r=function(e){return e.nodeType===Node.TEXT_NODE},ea=function(e){return e.nodeType===Node.ELEMENT_NODE},ta=function(e){return ea(e)&&void 0!==e.style&&!na(e)},na=function(e){return"object"==typeof e.className},ra=function(e){return"LI"===e.tagName},aa=function(e){return"OL"===e.tagName},oa=function(e){return"INPUT"===e.tagName},ia=function(e){return"svg"===e.tagName},sa=function(e){return"BODY"===e.tagName},la=function(e){return"CANVAS"===e.tagName},ca=function(e){return"IMG"===e.tagName},ua=function(e){return"IFRAME"===e.tagName},Aa=function(e){return"STYLE"===e.tagName},ha=function(e){return"SCRIPT"===e.tagName},da=function(e){return"TEXTAREA"===e.tagName},pa=function(e){return"SELECT"===e.tagName},fa=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(e){var t=this.counters[e];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(e){return this.counters[e]||[]},e.prototype.pop=function(e){var t=this;e.forEach(function(e){return t.counters[e].pop()})},e.prototype.parse=function(e){var t=this,n=e.counterIncrement,r=e.counterReset,a=!0;null!==n&&n.forEach(function(e){var n=t.counters[e.counter];n&&0!==e.increment&&(a=!1,n[Math.max(0,n.length-1)]+=e.increment)});var o=[];return a&&r.forEach(function(e){var n=t.counters[e.counter];o.push(e.counter),n||(n=t.counters[e.counter]=[]),n.push(e.reset)}),o},e}(),ma={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"]},ya={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,9
20,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054f","\u054e","\u054d","\u054c","\u054b","\u054a","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053f","\u053e","\u053d","\u053c","\u053b","\u053a","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},ga={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:["\u05d9\u05f3","\u05d8\u05f3","\u05d7\u05f3","\u05d6\u05f3","\u05d5\u05f3","\u05d4\u05f3","\u05d3\u05f3","\u05d2\u05f3","\u05d1\u05f3","\u05d0\u05f3","\u05ea","\u05e9","\u05e8","\u05e7","\u05e6","\u05e4","\u05e2","\u05e1","\u05e0","\u05de","\u05dc","\u05db","\u05d9\u05d8","\u05d9\u05d7","\u05d9\u05d6","\u05d8\u05d6","\u05d8\u05d5","\u05d9","\u05d8","\u05d7","\u05d6","\u05d5","\u05d4","\u05d3","\u05d2","\u05d1","\u05d0"]},ba={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:["\u10f5","\u10f0","\u10ef","\u10f4","\u10ee","\u10ed","\u10ec","\u10eb","\u10ea","\u10e9","\u10e8","\u10e7","\u10e6","\u10e5","\u10e4","\u10f3","\u10e2","\u10e1","\u10e0","\u10df","\u10de","\u10dd","\u10f2","\u10dc","\u10db","\u10da","\u10d9","\u10d8","\u10d7","\u10f1","\u10d6","\u10d5","\u10d4","\u10d3","\u10d2","\u10d1","\u10d0"]},va=function(e,t,n,r,a,o){return e<t||e>n?Ea(e,a,o.length>0):r.integers.reduce(function(t,n,a){for(;e>=n;)e-=n,t+=r.values[a];return t},"")+o},wa=function(e,t,n,r){var a="";do{n||e--,a=r(e)+a,e/=t}while(e*t>=t);return a},Ba=function(e,t,n,r,a){var o=n-t+1;return(e<0?"-":"")+(wa(Math.abs(e),o,r,function(e){return l(Math.floor(e%o)+t)})+a)},Ca=function(e,t,n){void 0===n&&(n=". ");var r=t.length;return wa(Math.abs(e),r,!1,function(e){return t[Math.floor(e%r)]})+n},Na=function(e,t,n,r,a,o){if(e<-9999||e>9999)return Ea(e,En.CJK_DECIMAL,a.length>0);var i=Math.abs(e),s=a;if(0===i)return t[0]+s;for(var l=0;i>0&&l<=4;l++){var c=i%10;0===c&&fr(o,1)&&""!==s?s=t[c]+s:c>1||1===c&&0===l||1===c&&1===l&&fr(o,2)||1===c&&1===l&&fr(o,4)&&e>100||1===c&&l>1&&fr(o,8)?s=t[c]+(l>0?n[l-1]:"")+s:1===c&&l>0&&(s=n[l-1]+s),i=Math.floor(i/10)}return(e<0?r:"")+s},Ea=function(e,t,n){var r=n?". ":"",a=n?"\u3001":"",o=n?", ":"",i=n?" ":"";switch(t){case En.DISC:return"\u2022"+i;case En.CIRCLE:return"\u25e6"+i;case En.SQUARE:return"\u25fe"+i;case En.DECIMAL_LEADING_ZERO:var s=Ba(e,48,57,!0,r);return s.length<4?"0"+s:s;case En.CJK_DECIMAL:return Ca(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d",a);case En.LOWER_ROMAN:return va(e,1,3999,ma,En.DECIMAL,r).toLowerCase();case En.UPPER_ROMAN:return va(e,1,3999,ma,En.DECIMAL,r);case En.LOWER_GREEK:return Ba(e,945,969,!1,r);case En.LOWER_ALPHA:return Ba(e,97,122,!1,r);case En.UPPER_ALPHA:return Ba(e,65,90,!1,r);case En.ARABIC_INDIC:return Ba(e,1632,1641,!0,r);case En.ARMENIAN:case En.UPPER_ARMENIAN:return va(e,1,9999,ya,En.DECIMAL,r);case En.LOWER_ARMENIAN:return va(e,1,9999,ya,En.DECIMAL,r).toLowerCase();case En.BENGALI:return Ba(e,2534,2543,!0,r);case En.CAMBODIAN:case En.KHMER:return Ba(e,6112,6121,!0,r);case En.CJK_EARTHLY_BRANCH:return Ca(e,"\u5b50\u4e11\u5bc5\u536f\u8fb0\u5df3\u5348\u672a\u7533\u9149\u620c\u4ea5",a);case En.CJK_HEAVENLY_STEM:return Ca(e,"\u7532\u4e59\u4e19\u4e01\u620a\u5df1\u5e9a\u8f9b\u58ec\u7678",a);case En.CJK_IDEOGRAPHIC:case En.TRAD_CHINESE_INFORMAL:return Na(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8ca0",a,14);case En.TRAD_CHINESE_FORMAL:return Na(e,"\u96f6\u58f9\u8cb3\u53c3\u8086\u4f0d\u9678\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8ca0",a,15);case En.SIMP_CHINESE_INFORMAL:return Na(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\u8d1f",a,14);case En.SIMP_CHINESE_FORMAL:return Na(e,"\u96f6\u58f9\u8d30\u53c1\u8086\u4f0d\u9646\u67d2\u634c\u7396","\u62fe\u4f70\u4edf\u842c","\u8d1f",a,15);case En.JAPANESE_INFORMAL:return Na(e,"\u3007\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,0);case En.JAPANESE_FORMAL:return Na(e,"\u96f6\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343\u4e07","\u30de\u30a4\u30ca\u30b9",a,7);case En.KOREAN_HANGUL_FORMAL:return Na(e,"\uc601\uc77c\uc774\uc0bc\uc0ac\uc624\uc721\uce60\ud314\uad6c","\uc2ed\ubc31\ucc9c\ub9cc","\ub9c8\uc774\ub108\uc2a4",o,7);case En.KOREAN_HANJA_INFORMAL:return Na(e,"\u96f6\u4e00\u4e8c\u4e09\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u5341\u767e\u5343\u842c","\ub9c8\uc774\ub108\uc2a4",o,0);case En.KOREAN_HANJA_FORMAL:return Na(e,"\u96f6\u58f9\u8cb3\u53c3\u56db\u4e94\u516d\u4e03\u516b\u4e5d","\u62fe\u767e\u5343","\ub9c8\uc774\ub108\uc2a4",o,7);case En.DEVANAGARI:return Ba(e,2406,2415,!0,r);case En.GEORGIAN:return va(e,1,19999,ba,En.DECIMAL,r);case En.GUJARATI:return Ba(e,2790,2799,!0,r);case En.GURMUKHI:return Ba(e,2662,2671,!0,r);case En.HEBREW:return va(e,1,10999,ga,En.DECIMAL,r);case En.HIRAGANA:return Ca(e,"\u3042\u3044\u3046\u3048\u304a\u304b\u304d\u304f\u3051\u3053\u3055\u3057\u3059\u305b\u305d\u305f\u3061\u3064\u3066\u3068\u306a\u306b\u306c\u306d\u306e\u306f\u3072\u3075\u3078\u307b\u307e\u307f\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308a\u308b\u308c\u308d\u308f\u3090\u3091\u3092\u3093");case En.HIRAGANA_IROHA:return Ca(e,"\u3044\u308d\u306f\u306b\u307b\u3078\u3068\u3061\u308a\u306c\u308b\u3092\u308f\u304b\u3088\u305f\u308c\u305d\u3064\u306d\u306a\u3089\u3080\u3046\u3090\u306e\u304a\u304f\u3084\u307e\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304d\u3086\u3081\u307f\u3057\u3091\u3072\u3082\u305b\u3059");case En.KANNADA:return Ba(e,3302,3311,!0,r);case En.KATAKANA:return Ca(e,"\u30a2\u30a4\u30a6\u30a8\u30aa\u30ab\u30ad\u30af\u30b1\u30b3\u30b5\u30b7\u30b9\u30bb\u30bd\u30bf\u30c1\u30c4\u30c6\u30c8\u30ca\u30cb\u30cc\u30cd\u30ce\u30cf\u30d2\u30d5\u30d8\u30db\u30de\u30df\u30e0\u30e1\u30e2\u30e4\u30e6\u30e8\u30e9\u30ea\u30eb\u30ec\u30ed\u30ef\u30f0\u30f1\u30f2\u30f3",a);case En.KATAKANA_IROHA:return Ca(e,"\u30a4\u30ed\u30cf\u30cb\u30db\u30d8\u30c8\u30c1\u30ea\u30cc\u30eb\u30f2\u30ef\u30ab\u30e8\u30bf\u30ec\u30bd\u30c4\u30cd\u30ca\u30e9\u30e0\u30a6\u30f0\u30ce\u30aa\u30af\u30e4\u30de\u30b1\u30d5\u30b3\u30a8\u30c6\u30a2\u30b5\u30ad\u30e6\u30e1\u30df\u30b7\u30f1\u30d2\u30e2\u30bb\u30b9",a);case En.LAO:return Ba(e,3792,3801,!0,r);case En.MONGOLIAN:return Ba(e,6160,6169,!0,r);case En.MYANMAR:return Ba(e,4160,4169,!0,r);case En.ORIYA:return Ba(e,2918,2927,!0,r);case En.PERSIAN:return Ba(e,1776,1785,!0,r);case En.TAMIL:return Ba(e,3046,3055,!0,r);case En.TELUGU:return Ba(e,3174,3183,!0,r);case En.THAI:return Ba(e,3664,3673,!0,r);case En.TIBETAN:return Ba(e,3872,3881,!0,r);case En.DECIMAL:default:return Ba(e,48,57,!0,r)}},xa=function(){function e(e,t){if(this.options=t,this.scrolledElements=[],this.referenceElement=e,this.counters=new fa,this.quoteDepth=0,!e.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(e.ownerDocument.documentElement)}return e.prototype.toIFrame=function(e,t){var n=this,o=Ta(e,t);if(!o.contentWindow)return Promise.reject("Unable to find iframe window");var i=e.defaultView.pageXOffset,s=e.defaultView.pageYOffset,l=o.contentWindow,c=l.document,u=Fa(o).then(function(){return r(n,void 0,void 0,function(){var e;return a(this,function(n){switch(n.label){case 0:return this.scrolledElements.forEac
2h(Oa),l&&(l.scrollTo(t.left,t.top),!/(iPad|iPhone|iPod)/g.test(navigator.userAgent)||l.scrollY===t.top&&l.scrollX===t.left||(c.documentElement.style.top=-t.top+"px",c.documentElement.style.left=-t.left+"px",c.documentElement.style.position="absolute")),e=this.options.onclone,void 0===this.clonedReferenceElement?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:n.sent(),n.label=2;case 2:return"function"==typeof e?[2,Promise.resolve().then(function(){return e(c)}).then(function(){return o})]:[2,o]}})})});return c.open(),c.write(Ua(document.doctype)+"<html></html>"),La(this.referenceElement.ownerDocument,i,s),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),u},e.prototype.createElementClone=function(e){if(la(e))return this.createCanvasClone(e);if(Aa(e))return this.createStyleClone(e);var t=e.cloneNode(!1);return ca(t)&&"lazy"===t.loading&&(t.loading="eager"),t},e.prototype.createStyleClone=function(e){try{var t=e.sheet;if(t&&t.cssRules){var n=[].slice.call(t.cssRules,0).reduce(function(e,t){return t&&"string"==typeof t.cssText?e+t.cssText:e},""),r=e.cloneNode(!1);return r.textContent=n,r}}catch(e){if(Ct.getInstance(this.options.id).error("Unable to access cssRules property",e),"SecurityError"!==e.name)throw e}return e.cloneNode(!1)}
2,e.prototype.createCanvasClone=function(e){if(this.options.inlineImages&&e.ownerDocument){var t=e.ownerDocument.createElement("img");try{return t.src=e.toDataURL(),t}catch(e){Ct.getInstance(this.options.id).info("Unable to clone canvas contents, canvas is tainted")}}var n=e.cloneNode(!1);try{n.width=e.width,n.height=e.height;var r=e.getContext("2d"),a=n.getContext("2d");return a&&(r?a.putImageData(r.getImageData(0,0,e.width,e.height),0,0):a.drawImage(e,0,0)),n}catch(e){}return n},e.prototype.cloneNode=function(e){if($r(e))return document.createTextNode(e.data);if(!e.ownerDocument)return e.cloneNode(!1);var t=e.ownerDocument.defaultView;if(t&&ea(e)&&(ta(e)||na(e))){var n=this.createElementClone(e),r=t.getComputedStyle(e),a=t.getComputedStyle(e,":before"),o=t.getComputedStyle(e,":after");this.referenceElement===e&&ta(n)&&(this.clonedReferenceElement=n),sa(n)&&Ha(n);for(var i=this.counters.parse(new Nr(r)),s=this.resolvePseudoContent(e,n,a,dr.BEFORE),l=e.firstChild;l;l=l.nextSibling)ea(l)&&(ha(l)||l.hasAttribute("data-html2canvas-ignore")||"function"==typeof this.options.ignoreElements&&this.options.ignoreElements(l))||this.options.copyStyles&&ea(l)&&Aa(l)||n.appendChild(this.cloneNode(l));s&&n.insertBefore(s,n.firstChild);var c=this.resolvePseudoContent(e,n,o,dr.AFTER);return c&&n.appendChild(c),this.counters.pop(i),r&&(this.options.copyStyles||na(e))&&!ua(e)&&ka(r,n),0===e.scrollTop&&0===e.scrollLeft||this.scrolledElements.push([n,e.scrollLeft,e.scrollTop]),(da(e)||pa(e))&&(da(n)||pa(n))&&(n.value=e.value),n}return e.cloneNode(!1)},e.prototype.resolvePseudoContent=function(e,t,n,r){var a=this;if(n){var o=n.content,i=t.ownerDocument;if(i&&o&&"none"!==o&&"-moz-alt-content"!==o&&"none"!==n.display){this.counters.parse(new Nr(n));var s=new Cr(n),l=i.createElement("html2canvaspseudoelement");ka(n,l),s.content.forEach(function(t){if(t.type===h.STRING_TOKEN)l.appendChild(i.createTextNode(t.value));else if(t.type===h.URL_TOKEN){var n=i.createElement("img");n.src=t.value,n.style.opacity="1",l.appendChild(n)}else if(t.type===h.FUNCTION){if("attr"===t.name){var r=t.values.filter(Le);r.length&&l.appendChild(i.createTextNode(e.getAttribute(r[0].value)||""))}else if("counter"===t.name){var o=t.values.filter(He),c=o[0],u=o[1];if(c&&Le(c)){var A=a.counters.getCounterValue(c.value),d=u&&Le(u)?Tn.parse(u.value):En.DECIMAL;l.appendChild(i.createTextNode(Ea(A,d,!1)))}}else if("counters"===t.name){var p=t.values.filter(He),f=(c=p[0],p[1]);if(u=p[2],c&&Le(c)){var m=a.counters.getCounterValues(c.value),y=u&&Le(u)?Tn.parse(u.value):En.DECIMAL,g=f&&f.type===h.STRING_TOKEN?f.value:"",b=m.map(function(e){return Ea(e,y,!1)}).join(g);l.appendChild(i.createTextNode(b))}}}else if(t.type===h.IDENT_TOKEN)switch(t.value){case"open-quote":l.appendChild(i.createTextNode(vr(s.quotes,a.quoteDepth++,!0)));break;case"close-quote":l.appendChild(i.createTextNode(vr(s.quotes,--a.quoteDepth,!1)));break;default:l.appendChild(i.createTextNode(t.value))}}),l.className=Ia+" "+Qa;var c=r===dr.BEFORE?" "+Ia:" "+Qa;return na(t)?t.className.baseValue+=c:t.className+=c,l}}},e.destroy=function(e){return!!e.parentNode&&(e.parentNode.removeChild(e),!0)},e}();!function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"}(dr||(dr={}));var Sa,Ta=function(e,t){var n=e.createElement("iframe");return n.className="html2canvas-container",n.style.visibility="hidden",n.style.position="fixed",n.style.left="-10000px",n.style.top="0px",n.style.border="0",n.width=t.width.toString(),n.height=t.height.toString(),n.scrolling="no",n.setAttribute("data-html2canvas-ignore","true"),e.body.appendChild(n),n},Fa=function(e){return new Promise(function(t,n){var r=e.contentWindow;if(!r)return n("No window assigned for iframe");var a=r.document;r.onload=e.onload=a.onreadystatechange=function(){r.onload=e.onload=a.onreadystatechange=null;var n=setInterval(function(){a.body.childNodes.length>0&&"complete"===a.readyState&&(clearInterval(n),t(e))},50)}})},ka=function(e,t){for(var n=e.length-1;n>=0;n--){var r=e.item(n);"content"!==r&&t.style.setProperty(r,e.getPropertyValue(r))}return t},Ua=function(e){var t="";return e&&(t+="<!DOCTYPE ",e.name&&(t+=e.name),e.internalSubset&&(t+=e.internalSubset),e.publicId&&(t+='"'+e.publicId+'"'),e.systemId&&(t+='"'+e.systemId+'"'),t+=">"),t},La=function(e,t,n){e&&e.defaultView&&(t!==e.defaultView.pageXOffset||n!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(t,n)},Oa=function(e){var t=e[0],n=e[1],r=e[2];t.scrollLeft=n,t.scrollTop=r},Ia="___html2canvas___pseudoelement_before",Qa="___html2canvas___pseudoelement_after",Ha=function(e){Ra(e,"."+Ia+':before{\n content: "" !important;\n display: none !important;\n}\n .'+Qa+':after{\n content: "" !important;\n display: none !important;\n}')},Ra=function(e,t){var n=e.ownerDocument;if(n){var r=n.createElement("style");r.textContent=t,e.appendChild(r)}};!function(e){e[e.VECTOR=0]="VECTOR",e[e.BEZIER_CURVE=1]="BEZIER_CURVE"}(Sa||(Sa={}));var Pa,Da=function(e,t){return e.length===t.length&&e.some(function(e,n){return e===t[n]})},Ma=function(){function e(e,t){this.type=Sa.VECTOR,this.x=e,this.y=t}return e.prototype.add=function(t,n){return new e(this.x+t,this.y+n)},e}(),_a=function(e,t,n){return new Ma(e.x+(t.x-e.x)*n,e.y+(t.y-e.y)*n)},ja=function(){function e(e,t,n,r){this.type=Sa.BEZIER_CURVE,this.start=e,this.startControl=t,this.endControl=n,this.end=r}return e.prototype.subdivide=function(t,n){var r=_a(this.start,this.startControl,t),a=_a(this.startControl,this.endControl,t),o=_a(this.endControl,this.end,t),i=_a(r,a,t),s=_a(a,o,t),l=_a(i,s,t);return n?new e(this.start,r,i,l):new e(l,s,o,this.end)},e.prototype.add=function(t,n){return new e(this.start.add(t,n),this.startControl.add(t,n),this.endControl.add(t,n),this.end.add(t,n))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),Ka=function(e){return e.type===Sa.BEZIER_CURVE},za=function(e){var t=e.styles,n=e.bounds,r=We(t.borderTopLeftRadius,n.width,n.height),a=r[0],o=r[1],i=We(t.borderTopRightRadius,n.width,n.height),s=i[0],l=i[1],c=We(t.borderBottomRightRadius,n.width,n.height),u=c[0],A=c[1],h=We(t.borderBottomLeftRadius,n.width,n.height),d=h[0],p=h[1],f=[];f.push((a+s)/n.width),f.push((d+u)/n.width),f.push((o+p)/n.height),f.push((l+A)/n.height);var m=Math.max.apply(Math,f);m>1&&(a/=m,o/=m,s/=m,l/=m,u/=m,A/=m,d/=m,p/=m);var y=n.width-s,g=n.height-A,b=n.width-u,v=n.height-p,w=t.borderTopWidth,B=t.borderRightWidth,C=t.borderBottomWidth,N=t.borderLeftWidth,E=Ve(t.paddingTop,e.bounds.width),x=Ve(t.paddingRight,e.bounds.width),S=Ve(t.paddingBottom,e.boun
vendor: 5,760 bytes, line 2
2ds.width),T=Ve(t.paddingLeft,e.bounds.width);this.topLeftBorderBox=a>0||o>0?Wa(n.left,n.top,a,o,Pa.TOP_LEFT):new Ma(n.left,n.top),this.topRightBorderBox=s>0||l>0?Wa(n.left+y,n.top,s,l,Pa.TOP_RIGHT):new Ma(n.left+n.width,n.top),this.bottomRightBorderBox=u>0||A>0?Wa(n.left+b,n.top+g,u,A,Pa.BOTTOM_RIGHT):new Ma(n.left+n.width,n.top+n.height),this.bottomLeftBorderBox=d>0||p>0?Wa(n.left,n.top+v,d,p,Pa.BOTTOM_LEFT):new Ma(n.left,n.top+n.height),this.topLeftPaddingBox=a>0||o>0?Wa(n.left+N,n.top+w,Math.max(0,a-N),Math.max(0,o-w),Pa.TOP_LEFT):new Ma(n.left+N,n.top+w),this.topRightPaddingBox=s>0||l>0?Wa(n.left+Math.min(y,n.width+N),n.top+w,y>n.width+N?0:s-N,l-w,Pa.TOP_RIGHT):new Ma(n.left+n.width-B,n.top+w),this.bottomRightPaddingBox=u>0||A>0?Wa(n.left+Math.min(b,n.width-N),n.top+Math.min(g,n.height+w),Math.max(0,u-B),A-C,Pa.BOTTOM_RIGHT):new Ma(n.left+n.width-B,n.top+n.height-C),this.bottomLeftPaddingBox=d>0||p>0?Wa(n.left+N,n.top+v,Math.max(0,d-N),p-C,Pa.BOTTOM_LEFT):new Ma(n.left+N,n.top+n.height-C),this.topLeftContentBox=a>0||o>0?Wa(n.left+N+T,n.top+w+E,Math.max(0,a-(N+T)),Math.max(0,o-(w+E)),Pa.TOP_LEFT):new Ma(n.left+N+T,n.top+w+E),this.topRightContentBox=s>0||l>0?Wa(n.left+Math.min(y,n.width+N+T),n.top+w+E,y>n.width+N+T?0:s-N+T,l-(w+E),Pa.TOP_RIGHT):new Ma(n.left+n.width-(B+x),n.top+w+E),this.bottomRightContentBox=u>0||A>0?Wa(n.left+Math.min(b,n.width-(N+T)),n.top+Math.min(g,n.height+w+E),Math.max(0,u-(B+x)),A-(C+S),Pa.BOTTOM_RIGHT):new Ma(n.left+n.width-(B+x),n.top+n.height-(C+S)),this.bottomLeftContentBox=d>0||p>0?Wa(n.left+N+T,n.top+v,Math.max(0,d-(N+T)),p-(C+S),Pa.BOTTOM_LEFT):new Ma(n.left+N+T,n.top+n.height-(C+S))};!function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"}(Pa||(Pa={}));var Wa=function(e,t,n,r,a){var o=(Math.sqrt(2)-1)/3*4,i=n*o,s=r*o,l=e+n,c=t+r;switch(a){case Pa.TOP_LEFT:return new ja(new Ma(e,c),new Ma(e,c-s),new Ma(l-i,t),new Ma(l,t));case Pa.TOP_RIGHT:return new ja(new Ma(e,t),new Ma(e+i,t),new Ma(l,c-s),new Ma(l,c));case Pa.BOTTOM_RIGHT:return new ja(new Ma(l,t),new Ma(l,t+s),new Ma(e+i,c),new Ma(e,c));case Pa.BOTTOM_LEFT:default:return new ja(new Ma(l,c),new Ma(l-i,c),new Ma(e,t+s),new Ma(e,t))}},Va=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},Ga=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},qa=function(e,t,n){this.type=0,this.offsetX=e,this.offsetY=t,this.matrix=n,this.target=6},Ya=function(e,t){this.type=1,this.target=t,this.path=e},Xa=function(e){this.element=e,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]},Ja=function(){function e(e,t){if(this.container=e,this.effects=t.slice(0),this.curves=new za(e),null!==e.styles.transform){var n=e.bounds.left+e.styles.transformOrigin[0].number,r=e.bounds.top+e.styles.transformOrigin[1].number,a=e.styles.transform;this.effects.push(new qa(n,r,a))}if(e.styles.overflowX!==Sn.VISIBLE){var o=Va(this.curves),i=Ga(this.curves);Da(o,i)?this.effects.push(new Ya(o,6)):(this.effects.push(new Ya(o,2)),this.effects.push(new Ya(i,4)))}}return e.prototype.getParentEffects=function(){var e=this.effects.slice(0);if(this.container.styles.overflowX!==Sn.VISIBLE){var t=Va(this.curves),n=Ga(this.curves);Da(t,n)||e.push(new Ya(n,6))}return e},e}(),Za=function(e,t,n,r){e.container.elements.forEach(function(a){var o=fr(a.flags,4),i=fr(a.flags,2),s=new Ja(a,e.getParentEffects());fr(a.styles.display,2048)&&r.push(s);var l=fr(a.flags,8)?[]:r;if(o||i){var c=o||a.styles.isPositioned()?n:t,u=new Xa(s);if(a.styles.isPositioned()||a.styles.opacity<1||a.styles.isTransformed()){var A=a.styles.zIndex.order;if(A<0){var h=0;c.negativeZIndex.some(function(e,t){return A>e.element.container.styles.zIndex.order?(h=t,!1):h>0}),c.negativeZIndex.splice(h,0,u)}else if(A>0){var d=0;c.positiveZIndex.some(function(e,t){return A>=e.element.container.styles.zIndex.order?(d=t+1,!1):d>0}),c.positiveZIndex.splice(d,0,u)}else c.zeroOrAutoZIndexOrTransformedOrOpacity.push(u)}else a.styles.isFloating()?c.nonPositionedFloats.push(u):c.nonPositionedInlineLevel.push(u);Za(s,u,o?u:n,l)}else a.styles.isInlineLevel()?t.inlineLevel.push(s):t.nonInlineLevel.push(s),Za(s,t,n,l);fr(a.flags,8)&&$a(a,l)})},$a=function(e,t){for(var n=e instanceof Dr?e.start:1,r=e instanceof Dr&&e.reversed,a=0;a<t.length;a++){var o=t[a];o.container instanceof Pr&&"number"==typeof o.container.value&&0!==o.container.value&&(n=o.container.value),o.listValue=Ea(n,o.container.styles.listStyleType,!0),n+=r?-1:1}},eo=function(e,t,n,r){var a=[];return Ka(e)?a.push(e.subdivide(.5,!1)):a.push(e),Ka(n)?a.push(n.subdivide(.5,!0)):a.push(n),Ka(r)?a.push(r.subdivide(.5,!0).reverse()):a.push(r),Ka(t)?a.push(t.subdivide(.5,!1).reverse()):a.push(t),a},to=function(e){var t=e.bounds,n=e.styles;return t.add(n.borderLeftWidth,n.borderTopWidth,-(n.borderRightWidth+n.borderLeftWidth),-(n.borderTopWidth+n.borderBottomWidth))},no=function(e){var t=e.styles,n=e.bounds,r=Ve(t.paddingLeft,n.width),a=Ve(t.paddingRight,n.width),o=Ve(t.paddingTop,n.width),i=Ve(t.paddingBottom,n.width);return n.add(r+t.borderLeftWidth,o+t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth+r+a),-(t.borderTopWidth+t.borderBottomWidth+o+i))},ro=function(e,t,n){var r=function(e,t){return 0===e?t.bounds:2===e?no(t):to(t)}(so(e.styles.backgroundOrigin,t),e),a=function(e,t){return e===ot.BORDER_BOX?t.bounds:e===ot.CONTENT_BOX?no(t):to(t)}(so(e.styles.backgroundClip,t),e),o=io(so(e.styles.backgroundSize,t),n,r),i=o[0],s=o[1],l=We(so(e.styles.backgroundPosition,t),r.width-i,r.he
vendor: 17,550 bytes, line 2
2ight-s);return[lo(so(e.styles.backgroundRepeat,t),l,o,r,a),Math.round(r.left+l[0]),Math.round(r.top+l[1]),i,s]},ao=function(e){return Le(e)&&e.value===_t.AUTO},oo=function(e){return"number"==typeof e},io=function(e,t,n){var r=t[0],a=t[1],o=t[2],i=e[0],s=e[1];if(Me(i)&&s&&Me(s))return[Ve(i,n.width),Ve(s,n.height)];var l=oo(o);if(Le(i)&&(i.value===_t.CONTAIN||i.value===_t.COVER))return oo(o)?n.width/n.height<o!=(i.value===_t.COVER)?[n.width,n.width/o]:[n.height*o,n.height]:[n.width,n.height];var c=oo(r),u=oo(a),A=c||u;if(ao(i)&&(!s||ao(s)))return c&&u?[r,a]:l||A?A&&l?[c?r:a*o,u?a:r/o]:[c?r:n.width,u?a:n.height]:[n.width,n.height];if(l){var h=0,d=0;return Me(i)?h=Ve(i,n.width):Me(s)&&(d=Ve(s,n.height)),ao(i)?h=d*o:s&&!ao(s)||(d=h/o),[h,d]}var p=null,f=null;if(Me(i)?p=Ve(i,n.width):s&&Me(s)&&(f=Ve(s,n.height)),null===p||s&&!ao(s)||(f=c&&u?p/r*a:n.height),null!==f&&ao(i)&&(p=c&&u?f/a*r:n.width),null!==p&&null!==f)return[p,f];throw new Error("Unable to calculate background-size for element")},so=function(e,t){var n=e[t];return void 0===n?e[0]:n},lo=function(e,t,n,r,a){var o=t[0],i=t[1],s=n[0],l=n[1];switch(e){case Qt.REPEAT_X:return[new Ma(Math.round(r.left),Math.round(r.top+i)),new Ma(Math.round(r.left+r.width),Math.round(r.top+i)),new Ma(Math.round(r.left+r.width),Math.round(l+r.top+i)),new Ma(Math.round(r.left),Math.round(l+r.top+i))];case Qt.REPEAT_Y:return[new Ma(Math.round(r.left+o),Math.round(r.top)),new Ma(Math.round(r.left+o+s),Math.round(r.top)),new Ma(Math.round(r.left+o+s),Math.round(r.height+r.top)),new Ma(Math.round(r.left+o),Math.round(r.height+r.top))];case Qt.NO_REPEAT:return[new Ma(Math.round(r.left+o),Math.round(r.top+i)),new Ma(Math.round(r.left+o+s),Math.round(r.top+i)),new Ma(Math.round(r.left+o+s),Math.round(r.top+i+l)),new Ma(Math.round(r.left+o),Math.round(r.top+i+l))];default:return[new Ma(Math.round(a.left),Math.round(a.top)),new Ma(Math.round(a.left+a.width),Math.round(a.top)),new Ma(Math.round(a.left+a.width),Math.round(a.height+a.top)),new Ma(Math.round(a.left),Math.round(a.height+a.top))]}},co=function(){function e(e){this._data={},this._document=e}return e.prototype.parseMetrics=function(e,t){var n=this._document.createElement("div"),r=this._document.createElement("img"),a=this._document.createElement("span"),o=this._document.body;n.style.visibility="hidden",n.style.fontFamily=e,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",o.appendChild(n),r.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",r.width=1,r.height=1,r.style.margin="0",r.style.padding="0",r.style.verticalAlign="baseline",a.style.fontFamily=e,a.style.fontSize=t,a.style.margin="0",a.style.padding="0",a.appendChild(this._document.createTextNode("Hidden Text")),n.appendChild(a),n.appendChild(r);var i=r.offsetTop-a.offsetTop+2;n.removeChild(a),n.appendChild(this._document.createTextNode("Hidden Text")),n.style.lineHeight="normal",r.style.verticalAlign="super";var s=r.offsetTop-n.offsetTop+2;return o.removeChild(n),{baseline:i,middle:s}},e.prototype.getMetrics=function(e,t){var n=e+" "+t;return void 0===this._data[n]&&(this._data[n]=this.parseMetrics(e,t)),this._data[n]},e}(),uo=function(){function e(e){this._activeEffects=[],this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,e.canvas||(this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px"),this.fontMetrics=new co(document),this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),this.ctx.textBaseline="bottom",this._activeEffects=[],Ct.getInstance(e.id).debug("Canvas renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.applyEffects=function(e,t){for(var n=this;this._activeEffects.length;)this.popEffect();e.filter(function(e){return fr(e.target,t)}).forEach(function(e){return n.applyEffect(e)})},e.prototype.applyEffect=function(e){this.ctx.save(),function(e){return 0===e.type}(e)&&(this.ctx.translate(e.offsetX,e.offsetY),this.ctx.transform(e.matrix[0],e.matrix[1],e.matrix[2],e.matrix[3],e.matrix[4],e.matrix[5]),this.ctx.translate(-e.offsetX,-e.offsetY)),function(e){return 1===e.type}(e)&&(this.path(e.path),this.ctx.clip()),this._activeEffects.push(e)},e.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},e.prototype.renderStack=function(e){return r(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return(t=e.element.container.styles).isVisible()?(this.ctx.globalAlpha=t.opacity,[4,this.renderStackContent(e)]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.renderNode=function(e){return r(this,void 0,void 0,function(){return a(this,function(t){switch(t.label){case 0:return e.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(e)]:[3,3];case 1:return t.sent(),[4,this.renderNodeContent(e)];case 2:t.sent(),t.label=3;case 3:return[2]}})})},e.prototype.renderTextWithLetterSpacing=function(e,t){var n=this;0===t?this.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height):s(e.text).map(function(e){return l(e)}).reduce(function(t,r){return n.ctx.fillText(r,t,e.bounds.top+e.bounds.height),t+n.ctx.measureText(r).width},e.bounds.left)},e.prototype.createFontStyle=function(e){var t=e.fontVariant.filter(function(e){return"normal"===e||"small-caps"===e}).join(""),n=e.fontFamily.join(", "),r=ke(e.fontSize)?""+e.fontSize.number+e.fontSize.unit:e.fontSize.number+"px";return[[e.fontStyle,t,e.fontWeight,r,n].join(" "),n,r]},e.prototype.renderTextNode=function(e,t){return r(this,void 0,void 0,function(){var n,r,o,i,s=this;return a(this,function(a){return n=this.createFontStyle(t),r=n[0],o=n[1],i=n[2],this.ctx.font=r,e.textBounds.forEach(function(e){s.ctx.fillStyle=$e(t.color),s.renderTextWithLetterSpacing(e,t.letterSpacing);var n=t.textShadow;n.length&&e.text.trim().length&&(n.slice(0).reverse().forEach(function(t){s.ctx.shadowColor=$e(t.color),s.ctx.shadowOffsetX=t.offsetX.number*s.options.scale,s.ctx.shadowOffsetY=t.offsetY.number*s.options.scale,s.ctx.shadowBlur=t.blur.number,s.ctx.fillText(e.text,e.bounds.left,e.bounds.top+e.bounds.height)}),s.ctx.shadowColor="",s.ctx.shadowOffsetX=0,s.ctx.shadowOffsetY=0,s.ctx.shadowBlur=0),t.textDecorationLine.length&&(s.ctx.fillStyle=$e(t.textDecorationColor||t.color),t.textDecorationLine.forEach(function(t){switch(t){case 1:var n=s.fontMetrics.getMetrics(o,i).baseline;s.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top+n),e.bounds.width,1);break;case 2:s.ctx.fillRect(e.bounds.left,Math.round(e.bounds.top),e.bounds.width,1);break;case 3:var r=s.fontMetrics.getMetrics(o,i).middle;s.ctx.fillRect(e.bounds.left,Math.ceil(e.bounds.top+r),e.bounds.width,1)}}))}),[2]})})},e.prototype.renderReplacedElement=function(e,t,n){if(n&&e.intrinsicWidth>0&&e.intrinsicHeight>0){var r=no(e),a=Ga(t);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,e.intrinsicWidth,e.intrinsicHeight,r.left,r.top,r.width,r.height),this.ctx.restore()}},e.prototype.renderNodeContent=function(t){return r(this,void 0,void 0,function(){var n,r,i,s,l,c,u,A,d,p,f,m,y,g;return a(this,function(a){switch(a.label){case 0:this.applyEffects(t.effects,4),n=t.container,r=t.curves,i=n.styles,s=0,l=n.textNodes,a.label=1;case 1:return s<l.length?(c=l[s],[4,this.renderTextNode(c,i)]):[3,4];case 2:a.sent(),a.label=3;case 3:return s++,[3,1];case 4:if(!(n instanceof Qr))return[3,8];a.label=5;case 5:return a.trys.push([5,7,,8]),[4,this.options.cache.match(n.src)];case 6:return m=a.sent(),this.renderReplacedElement(n,r,m),[3,8];case 7:return a.sent(),Ct.getInstance(this.options.id).error("Error loading image "+n.src),[3,8];case 8:if(n instanceof Hr&&this.renderReplacedElement(n,r,n.canvas),!(n instanceof Rr))return[3,12];a.label=9;case 9:return a.trys.push([9,11,,12]),[4,this.options.cache.match(n.svg)];case 10:return m=a.sent(),this.renderReplacedElement(n,r,m),[3,12];case 11:return a.sent(),Ct.getInstance(this.options.id).error("Error loading svg "+n.svg.substring(0,255)),[3,12];case 12:return n instanceof Vr&&n.tree?[4,new e({id:this.options.id,scale:this.options.scale,backgroundColor:n.backgroundColor,x:0,y:0,scrollX:0,scrollY:0,width:n.width,height:n.height,cache:this.options.cache,windowWidth:n.width,windowHeight:n.height}).render(n.tree)]:[3,14];case 13:u=a.sent(),n.width&&n.height&&this.ctx.drawImage(u,0,0,n.width,n.height,n.bounds.left,n.bounds.top,n.bounds.width,n.bounds.height),a.label=14;case 14:if(n instanceof jr&&(A=Math.min(n.bounds.width,n.bounds.height),"checkbox"===n.type?n.checked&&(this.ctx.save(),this.path([new Ma(n.bounds.left+.39363*A,n.bounds.top+.79*A),new Ma(n.bounds.left+.16*A,n.bounds.top+.5549*A),new Ma(n.bounds.left+.27347*A,n.bounds.top+.44071*A),new Ma(n.bounds.left+.39694*A,n.bounds.top+.5649*A),new Ma(n.bounds.left+.72983*A,n.bounds.top+.23*A),new Ma(n.bounds.left+.84*A,n.bounds.top+.34085*A),new Ma(n.bounds.left+.39363*A,n.bounds.top+.79*A)]),this.ctx.fillStyle=$e(707406591),this.ctx.fill(),this.ctx.restore()):"radio"===n.type&&n.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(n.bounds.left+A/2,n.bounds.top+A/2,A/4,0,2*Math.PI,!0),this.ctx.fillStyle=$e(707406591),this.ctx.fill(),this.ctx.restore())),Ao(n)&&n.value.length){switch(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=$e(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign=po(n.styles.textAlign),g=no(n),d=0,n.styles.textAlign){case Hn.CENTER:d+=g.width/2;break;case Hn.RIGHT:d+=g.width}p=g.add(d,0,0,-g.height/2+1),this.ctx.save(),this.path([new Ma(g.left,g.top),new Ma(g.left+g.width,g.top),new Ma(g.left+g.width,g.top+g.height),new Ma(g.left,g.top+g.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Sr(n.value,p),i.letterSpacing),this.ctx.restore(),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"}if(!fr(n.styles.display,2048))return[3,20];if(null===n.styles.listStyleImage)return[3,19];if((f=n.styles.listStyleImage).type!==ct.URL)return[3,18];m=void 0,y=f.url,a.label=15;case 15:return a.trys.push([15,17,,18]),[4,this.options.cache.match(y)];case 16:return m=a.sent(),this.ctx.drawImage(m,n.bounds.left-(m.width+10),n.bounds.top),[3,18];case 17:return a.sent(),Ct.getInstance(this.options.id).error("Error loading list-style-image "+y),[3,18];case 18:return[3,20];case 19:t.listValue&&n.styles.listStyleType!==En.NONE&&(this.ctx.font=this.createFontStyle(i)[0],this.ctx.fillStyle=$e(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",g=new o(n.bounds.left,n.bounds.top+Ve(n.styles.paddingTop,n.bounds.width),n.bounds.width,function(e,t){return Le(e)&&"normal"===e.value?1.2*t:e.type===h.NUMBER_TOKEN?t*e.number:Me(e)?Ve(e,t):t}(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Sr(t.listValue,g),i.letterSpacing),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),a.label=20;case 20:return[2]}})})},e.prototype.renderStackContent=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,i,s,l,c,u,A,h,d,p,f,m;return a(this,function(a){switch(a.label){case 0:return[4,this.renderNodeBackgroundAndBorders(e.element)];case 1:a.sent(),t=0,n=e.negativeZIndex,a.label=2;case 2:return t<n.length?(m=n[t],[4,this.renderStack(m)]):[3,5];case 3:a.sent(),a.label=4;case 4:return t++,[3,2];case 5:return[4,this.renderNodeContent(e.element)];case 6:a.sent(),r=0,o=e.nonInlineLevel,a.label=7;case 7:return r<o.length?(m=o[r],[4,this.renderNode(m)]):[3,10];case 8:a.sent(),a.label=9;case 9:return r++,[3,7];case 10:i=0,s=e.nonPositionedFloats,a.label=11;case 11:return i<s.length?(m=s[i],[4,this.renderStack(m)]):[3,14];case 12:a.sent(),a.label=13;case 13:return i++,[3,11];case 14:l=0,c=e.nonPositionedInlineLevel,a.label=15;case 15:return l<c.length?(m=c[l],[4,this.renderStack(m)]):[3,18];case 16:a.sent(),a.label=17;case 17:return l++,[3,15];case 18:u=0,A=e.inlineLevel,a.label=19;case 19:return u<A.length?(m=A[u],[4,this.renderNode(m)]):[3,22];case 20:a.sent(),a.label=21;case 21:return u++,[3,19];case 22:h=0,d=e.zeroOrAutoZIndexOrTransformedOrOpacity,a.label=23;case 23:return h<d.length?(m=d[h],[4,this.renderStack(m)]):[3,26];case 24:a.sent(),a.label=25;case 25:return h++,[3,23];case 26:p=0,f=e.positiveZIndex,a.label=27;case 27:return p<f.length?(m=f[p],[4,this.renderStack(m)]):[3,30];case 28:a.sent(),a.label=29;case 29:return p++,[3,27];case 30:return[2]}})})},e.prototype.mask=function(e){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(e.slice(0).reverse()),this.ctx.closePath()},e.prototype.path=function(e){this.ctx.beginPath(),this.formatPath(e),this.ctx.closePath()},e.prototype.formatPath=function(e){var t=this;e.forEach(function(e,n){var r=Ka(e)?e.start:e;0===n?t.ctx.moveTo(r.x,r.y):t.ctx.lineTo(r.x,r.y),Ka(e)&&t.ctx.bezierCurveTo(e.startControl.x,e.startControl.y,e.endControl.x,e.endControl.y,e.end.x,e.end.y)})},e.prototype.renderRepeat=function(e,t,n,r){this.path(e),this.ctx.fillStyle=t,this.ctx.translate(n,r),this.ctx.fill(),this.ctx.translate(-n,-r)},e.prototype.resizeImage=function(e,t,n){if(e.width===t&&e.height===n)return e;var r=this.canvas.ownerDocument.createElement("canvas");return r.width=t,r.height=n,r.getContext("2d").drawImage(e,0,0,e.width,e.height,0,0,t,n),r},e.prototype.renderBackgroundImage=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,i,s;return a(this,function(l){switch(l.label){case 0:t=e.styles.backgroundImage.length-1,n=function(n){var o,i,s,l,c,u,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T,F,k,U,L,O,I,Q;return a(this,function(a){switch(a.label){case 0:if(n.type!==ct.URL)return[3,5];o=void 0,i=n.url,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,r.options.cache.match(i)];case 2:return o=a.sent(),[3,4];case 3:return a.sent(),Ct.getInstance(r.options.id).error("Error loading background-image "+i),[3,4];case 4:return o&&(s=ro(e,t,[o.width,o.height,o.width/o.height]),v=s[0],x=s[1],S=s[2],C=s[3],N=s[4],g=r.ctx.createPattern(r.resizeImage(o,C,N),"repeat"),r.renderRepeat(v,g,x,S)),[3,6];case 5:n.type===ct.LINEAR_GRADIENT?(l=ro(e,t,[null,null,null]),v=l[0],x=l[1],S=l[2],C=l[3],N=l[4],c=function(e,t,n){var r="number"==typeof e?e:function(e,t,n){var r=t/2,a=n/2,o=Ve(e[0],t)-r,i=a-Ve(e[1],n);return(Math.atan2(i,o)+2*Math.PI)%(2*Math.PI)}(e,t,n),a=Math.abs(t*Math.sin(r))+Math.abs(n*Math.cos(r)),o=t/2,i=n/2,s=a/2,l=Math.sin(r-Math.PI/2)*s,c=Math.cos(r-Math.PI/2)*s;return[a,o-c,o+c,i-l,i+l]}(n.angle,C,N),u=c[0],A=c[1],h=c[2],d=c[3],p=c[4],(f=document.createElement("canvas")).width=C,f.height=N,m=f.getContext("2d"),y=m.createLinearGradient(A,d,h,p),ft(n.stops,u).forEach(function(e){return y.addColorStop(e.stop,$e(e.color))}),m.fillStyle=y,m.fillRect(0,0,C,N),C>0&&N>0&&(g=r.ctx.createPattern(f,"repeat"),r.renderRepeat(v,g,x,S))):function(e){return e.type===ct.RADIAL_GRADIENT}(n)&&(b=ro(e,t,[null,null,null]),v=b[0],w=b[1],B=b[2],C=b[3],N=b[4],E=0===n.position.length?[Ke]:n.position,x=Ve(E[0],C),S=Ve(E[E.length-1],N),T=function(e,t,n,r,a){var o=0,i=0;switch(e.size){case At.CLOSEST_SIDE:e.shape===ut.CIRCLE?o=i=Math.min(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-a)):e.shape===ut.ELLIPSE&&(o=Math.min(Math.abs(t),Math.abs(t-r)),i=Math.min(Math.abs(n),Math.abs(n-a)));break;case At.CLOSEST_CORNER:if(e.shape===ut.CIRCLE)o=i=Math.min(mt(t,n),mt(t,n-a),mt(t-r,n),mt(t-r,n-a));else if(e.shape===ut.ELLIPSE){var s=Math.min(Math.abs(n),Math.abs(n-a))/Math.min(Math.abs(t),Math.abs(t-r)),l=yt(r,a,t,n,!0),c=l[0],u=l[1];i=s*(o=mt(c-t,(u-n)/s))}break;case At.FARTHEST_SIDE:e.shape===ut.CIRCLE?o=i=Math.max(Math.abs(t),Math.abs(t-r),Math.abs(n),Math.abs(n-a)):e.shape===ut.ELLIPSE&&(o=Math.max(Math.abs(t),Math.abs(t-r)),i=Math.max(Math.abs(n),Math.abs(n-a)));break;case At.FARTHEST_CORNER:if(e.shape===ut.CIRCLE)o=i=Math.max(mt(t,n),mt(t,n-a),mt(t-r,n),mt(t-r,n-a));else if(e.shape===ut.ELLIPSE){s=Math.max(Math.abs(n),Math.abs(n-a))/Math.max(Math.abs(t),Math.abs(t-r));var A=yt(r,a,t,n,!1);c=A[0],u=A[1],i=s*(o=mt(c-t,(u-n)/s))}}return Array.isArray(e.size)&&(o=Ve(e.size[0],r),i=2===e.size.length?Ve(e.size[1],a):o),[o,i]}(n,x,S,C,N),F=T[0],k=T[1],F>0&&F>0&&(U=r.ctx.createRadialGradient(w+x,B+S,0,w+x,B+S,F),ft(n.stops,2*F).forEach(function(e){return U.addColorStop(e.stop,$e(e.color))}),r.path(v),r.ctx.fillStyle=U,F!==k?(L=e.bounds.left+.5*e.bounds.width,O=e.bounds.top+.5*e.bounds.height,Q=1/(I=k/F),r.ctx.save(),r.ctx.translate(L,O),r.ctx.transform(1,0,0,I,0,0),r.ctx.translate(-L,-O),r.ctx.fillRect(w,Q*(B-O)+O,C,N*Q),r.ctx.restore()):r.ctx.fill())),a.label=6;case 6:return t--,[2]}})},r=this,o=0,i=e.styles.backgroundImage.slice(0).reverse(),l.label=1;case 1:return o<i.length?(s=i[o],[5,n(s)]):[3,4];case 2:l.sent(),l.label=3;case 3:return o++,[3,1];case 4:return[2]}})})},e.prototype.renderBorder=function(e,t,n){return r(this,void 0,void 0,function(){return a(this,function(r){return this.path(function(e,t){switch(t){case 0:return eo(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return eo(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return eo(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);default:return eo(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}}(n,t)),this.ctx.fillStyle=$e(e),this.ctx.fill(),[2]})})}
2,e.prototype.renderNodeBackgroundAndBorders=function(e){return r(this,void 0,void 0,function(){var t,n,r,o,i,s,l,c,u=this;return a(this,function(a){switch(a.label){case 0:return this.applyEffects(e.effects,2),t=e.container.styles,n=!Ze(t.backgroundColor)||t.backgroundImage.length,r=[{style:t.borderTopStyle,color:t.borderTopColor},{style:t.borderRightStyle,color:t.borderRightColor},{style:t.borderBottomStyle,color:t.borderBottomColor},{style:t.borderLeftStyle,color:t.borderLeftColor}],o=ho(so(t.backgroundClip,0),e.curves),n||t.boxShadow.length?(this.ctx.save(),this.path(o),this.ctx.clip(),Ze(t.backgroundColor)||(this.ctx.fillStyle=$e(t.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(e.container)]):[3,2];case 1:a.sent(),this.ctx.restore(),t.boxShadow.slice(0).reverse().forEach(function(t){u.ctx.save();var n,r,a,o,i,s=Va(e.curves),l=t.inset?0:1e4,c=(n=s,r=-l+(t.inset?1:-1)*t.spread.number,a=(t.inset?1:-1)*t.spread.number,o=t.spread.number*(t.inset?-2:2),i=t.spread.number*(t.inset?-2:2),n.map(function(e,t){switch(t){case 0:return e.add(r,a);case 1:return e.add(r+o,a);case 2:return e.add(r+o,a+i);case 3:return e.add(r,a+i)}return e}));t.inset?(u.path(s),u.ctx.clip(),u.mask(c)):(u.mask(s),u.ctx.clip(),u.path(c)),u.ctx.shadowOffsetX=t.offsetX.number+l,u.ctx.shadowOffsetY=t.offsetY.number,u.ctx.shadowColor=$e(t.color),u.ctx.shadowBlur=t.blur.number,u.ctx.fillStyle=t.inset?$e(t.color):"rgba(0,0,0,1)",u.ctx.fill(),u.ctx.restore()}),a.label=2;case 2:i=0,s=0,l=r,a.label=3;case 3:return s<l.length?(c=l[s]).style===zt.NONE||Ze(c.color)?[3,5]:[4,this.renderBorder(c.color,i,e.curves)]:[3,7];case 4:a.sent(),a.label=5;case 5:i++,a.label=6;case 6:return s++,[3,3];case 7:return[2]}})})},e.prototype.render=function(e){return r(this,void 0,void 0,function(){var t;return a(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=$e(this.options.backgroundColor),this.ctx.fillRect(this.options.x-this.options.scrollX,this.options.y-this.options.scrollY,this.options.width,this.options.height)),r=new Ja(e,[]),a=new Xa(r),Za(r,a,a,o=[]),$a(r.container,o),t=a,[4,this.renderStack(t)];case 1:return n.sent(),this.applyEffects([],2),[2,this.canvas]}var r,a,o})})},e}(),Ao=function(e){return e instanceof zr||e instanceof Kr||e instanceof jr&&"radio"!==e.type&&"checkbox"!==e.type},ho=function(e,t){switch(e){case ot.BORDER_BOX:return Va(t);case ot.CONTENT_BOX:return function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]}(t);case ot.PADDING_BOX:default:return Ga(t)}},po=function(e){switch(e){case Hn.CENTER:return"center";case Hn.RIGHT:return"right";case Hn.LEFT:default:return"left"}},fo=function(){function e(e){this.canvas=e.canvas?e.canvas:document.createElement("canvas"),this.ctx=this.canvas.getContext("2d"),this.options=e,this.canvas.width=Math.floor(e.width*e.scale),this.canvas.height=Math.floor(e.height*e.scale),this.canvas.style.width=e.width+"px",this.canvas.style.height=e.height+"px",this.ctx.scale(this.options.scale,this.options.scale),this.ctx.translate(-e.x+e.scrollX,-e.y+e.scrollY),Ct.getInstance(e.id).debug("EXPERIMENTAL ForeignObject renderer initialized ("+e.width+"x"+e.height+" at "+e.x+","+e.y+") with scale "+e.scale)}return e.prototype.render=function(e){return r(this,void 0,void 0,function(){var t,n;return a(this,function(r){switch(r.label){case 0:return t=vt(Math.max(this.options.windowWidth,this.options.width)*this.options.scale,Math.max(this.options.windowHeight,this.options.height)*this.options.scale,this.options.scrollX*this.options.scale,this.options.scrollY*this.options.scale,e),[4,mo(t)];case 1:return n=r.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=$e(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},e}(),mo=function(e){return new Promise(function(t,n){var r=new Image;r.onload=function(){t(r)},r.onerror=n,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent((new XMLSerializer).serializeToString(e))})},yo=function(e){return Je(Fe.create(e).parseComponentValue())};"undefined"!=typeof window&&Nt.setContext(window);return function(e,t){return void 0===t&&(t={}),function(e,t){return r(void 0,void 0,void 0,function(){var r,s,l,c,u,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T;return a(this,function(a){switch(a.label){case 0:if(!(r=e.ownerDocument))throw new Error("Element is not attached to a Document");
2if(!(s=r.defaultView))throw new Error("Document is not attached to a Window");return l=(Math.round(1e3*Math.random())+Date.now()).toString(16),c=sa(e)||"HTML"===e.tagName?function(e){var t=e.body,n=e.documentElement;if(!t||!n)throw new Error("Unable to get document size");var r=Math.max(Math.max(t.scrollWidth,n.scrollWidth),Math.max(t.offsetWidth,n.offsetWidth),Math.max(t.clientWidth,n.clientWidth)),a=Math.max(Math.max(t.scrollHeight,n.scrollHeight),Math.max(t.offsetHeight,n.offsetHeight),Math.max(t.clientHeight,n.clientHeight));return new o(0,0,r,a)}(r):i(e),u=c.width,A=c.height,h=c.left,d=c.top,p=n({},{allowTaint:!1,imageTimeout:15e3,proxy:void 0,useCORS:!1},t),f={backgroundColor:"#ffffff",cache:t.cache?t.cache:Nt.create(l,p),logging:!0,removeContainer:!0,foreignObjectRendering:!1,scale:s.devicePixelRatio||1,windowWidth:s.innerWidth,windowHeight:s.innerHeight,scrollX:s.pageXOffset,scrollY:s.pageYOffset,x:h,y:d,width:Math.ceil(u),height:Math.ceil(A),id:l},m=n({},f,p,t),y=new o(m.scrollX,m.scrollY,m.windowWidth,m.windowHeight),Ct.create({id:l,enabled:m.logging}),Ct.getInstance(l).debug("Starting document clone"),g=new xa(e,{id:l,onclone:m.onclone,ignoreElements:m.ignoreElements,inlineImages:m.foreignObjectRendering,copyStyles:m.foreignObjectRendering}),(b=g.clonedReferenceElement)?[4,g.toIFrame(r,y)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return v=a.sent(),w=r.documentElement?yo(getComputedStyle(r.documentElement).backgroundColor):lt.TRANSPARENT,B=r.body?yo(getComputedStyle(r.body).backgroundColor):lt.TRANSPARENT,C=t.backgroundColor,N="string"==typeof C?yo(C):null===C?lt.TRANSPARENT:4294967295,E=e===r.documentElement?Ze(w)?Ze(B)?N:B:w:N,x={id:l,cache:m.cache,canvas:m.canvas,backgroundColor:E,scale:m.scale,x:m.x,y:m.y,scrollX:m.scrollX,scrollY:m.scrollY,width:m.width,height:m.height,windowWidth:m.windowWidth,windowHeight:m.windowHeight},m.foreignObjectRendering?(Ct.getInstance(l).debug("Document cloned, using foreign object rendering"),[4,new fo(x).render(b)]):[3,3];case 2:return S=a.sent(),[3,5];case 3:return Ct.getInstance(l).debug("Document cloned, using computed rendering"),Nt.attachInstance(m.cache),Ct.getInstance(l).debug("Starting DOM parsing"),T=Xr(b),Nt.detachInstance(),E===T.styles.backgroundColor&&(T.styles.backgroundColor=lt.TRANSPARENT),Ct.getInstance(l).debug("Starting renderer"),[4,new uo(x).render(T)];case 4:S=a.sent(),a.label=5;case 5:return!0===m.removeContainer&&(xa.destroy(v)||Ct.getInstance(l).error("Cannot detach cloned iframe as it is not in the DOM anymore")),Ct.getInstance(l).debug("Finished rendering"),Ct.destroy(l),Nt.destroy(l),[2,S]}})})}(e,t)}}()},function(e,t,n){(function(r){var a,o;a=function(){"use strict";function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){if("object"!==a(e.console)){e.console={};for(var t,n,r=e.console,o=function(){},i=["memory"],s="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)r[t]||(r[t]={});for(;n=s.pop();)r[n]||(r[n]=o)}var l,c,u,A,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";void 0===e.btoa&&(e.btoa=function(e){var t,n,r,a,o,i=0,s=0,l="",c=[];if(!e)return e;for(;t=(o=e.charCodeAt(i++)<<16|e.charCodeAt(i++)<<8|e.charCodeAt(i++))>>18&63,n=o>>12&63,r=o>>6&63,a=63&o,c[s++]=h.charAt(t)+h.charAt(n)+h.charAt(r)+h.charAt(a),i<e.length;);l=c.join("");var u=e.length%3;return(u?l.slice(0,u-3):l)+"===".slice(u||3)}),void 0===e.atob&&(e.atob=function(e){var t,n,r,a,o,i,s=0,l=0,c=[];if(!e)return e;for(e+="";t=(i=h.indexOf(e.charAt(s++))<<18|h.indexOf(e.charAt(s++))<<12|(a=h.indexOf(e.charAt(s++)))<<6|(o=h.indexOf(e.charAt(s++))))>>16&255,n=i>>8&255,r=255&i,c[l++]=64==a?String.fromCharCode(t):64==o?String.fromCharCode(t,n):String.fromCharCode(t,n,r),s<e.length;);return c.join("")}),Array.prototype.map||(Array.prototype.map=function(e){if(null==this||"function"!=typeof e)throw new TypeError;for(var t=Object(this),n=t.length>>>0,r=new Array(n),a=1<arguments.length?arguments[1]:void 0,o=0;o<n;o++)o in t&&(r[o]=e.call(a,t[o],o,t));return r}),Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),Array.prototype.forEach||(Array.prototype.forEach=function(e,t){if(null==this||"function"!=typeof e)throw new TypeError;for(var n=Object(this),r=n.length>>>0,a=0;a<r;a++)a in n&&e.call(t,n[a],a,n)}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null==this)throw new TypeError('"this" is null or not defined');var t=Object(this),n=t.length>>>0;if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var r=arguments[1],a=0;a<n;){var o=t[a];if(e.call(r,o,a,t))return o;a++}},configurable:!0,writable:!0}),Object.keys||(Object.keys=(l=Object.prototype.hasOwnProperty,c=!{toString:null}
2.propertyIsEnumerable("toString"),A=(u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(e){if("object"!==a(e)&&("function"!=typeof e||null===e))throw new TypeError;var t,n,r=[];for(t in e)l.call(e,t)&&r.push(t);if(c)for(n=0;n<A;n++)l.call(e,u[n])&&r.push(u[n]);return r})),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");e=Object(e);for(var t=1;t<arguments.length;t++){var n=arguments[t];if(null!=n)for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}),String.prototype.trim||(String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")}),String.prototype.trimLeft||(String.prototype.trimLeft=function(){return this.replace(/^\s+/g,"")}),String.prototype.trimRight||(String.prototype.trimRight=function(){return this.replace(/\s+$/g,"")}),Number.isInteger=Number.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var i,s,l,c,u,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T,F,k,U,L,O,I,Q,H,R,P,D,M,_,j,K,z,W,V,G,q,Y,X,J,Z,$,ee,te,ne,re,ae,oe,ie,se,le,ce,ue,Ae,he,de,pe=function(r){function i(e){if("object"!==a(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,r){if(r=r||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof r)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var a=Math.random().toString(35);return t[e][a]=[n,!!r],a},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),o=[];for(var i in t[n]){var s=t[n][i];try{s[0].apply(e,a)}catch(n){r.console&&console.error("jsPDF PubSub Error",n.message,n)}s[1]&&o.push(i)}o.length&&o.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function s(e,t,n,o){var l={},c=[],u=1;"object"===a(e)&&(e=(l=e).orientation,t=l.unit||t,n=l.format||n,o=l.compress||l.compressPdf||o,c=l.filters||(!0===o?["FlateEncode"]:c),u="number"==typeof l.userUnit?Math.abs(l.userUnit):1),t=t||"mm",e=(""+(e||"P")).toLowerCase();var A=l.putOnlyUsedFonts||!0,h={},d={internal:{},__private__:{}};d.__private__.PubSub=i;var p="1.3",f=d.__private__.getPdfVersion=function(){return p},m=(d.__private__.setPdfVersion=function(e){p=e},{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]}),y=(d.__private__.getPageFormats=function(){return m},d.__private__.getPageFormat=function(e){return m[e]});"string"==typeof n&&(n=y(n)),n=n||y("a4");var g,b=d.f2=d.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(2)},v=d.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return e.toFixed(3)},w="00000000000000000000000000000000",B=d.__private__.getFileId=function(){return w},C=d.__private__.setFileId=function(e){return e=e||"12345678901234567890123456789012".split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),w=e};d.setFileId=function(e){return C(e),this},d.getFileId=function(){return B()};var N=d.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",r=Math.floor(Math.abs(t/60)),a=Math.abs(t%60),o=[n,H(r),"'",H(a),"'"].join("");return["D:",e.getFullYear(),H(e.getMonth()+1),H(e.getDate()),H(e.getHours()),H(e.getMinutes()),H(e.getSeconds()),o].join("")},E=d.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,r=parseInt(e.substr(8,2),10),a=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),i=parseInt(e.substr(14,2),10);return parseInt(e.substr(16,2),10),parseInt(e.substr(20,2),10),new Date(t,n,r,a,o,i,0)},x=d.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),"object"===a(e)&&"[object Date]"===Object.prototype.toString.call(e))t=N(e);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(e))throw new Error("Invalid argument passed to
2jsPDF.setCreationDate");t=e}return g=t},S=d.__private__.getCreationDate=function(e){var t=g;return"jsDate"===e&&(t=E(g)),t};d.setCreationDate=function(e){return x(e),this},d.getCreationDate=function(e){return S(e)};var T,F,k,U,L,O,I,Q,H=d.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},R=!1,P=[],D=[],M=0,_=(d.__private__.setCustomOutputDestination=function(e){F=e},d.__private__.resetCustomOutputDestination=function(e){F=void 0},d.__private__.out=function(e){var t;return e="string"==typeof e?e:e.toString(),(t=void 0===F?R?P[T]:D:F).push(e),R||(M+=e.length+1),t}),j=d.__private__.write=function(e){return _(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},K=d.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),r=new Uint8Array(n);t--;)r[t]=e.charCodeAt(t);return n},z=[["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]],W=(d.__private__.getStandardFonts=function(e){return z},l.fontSize||16),V=(d.__private__.setFontSize=d.setFontSize=function(e){return W=e,this},d.__private__.getFontSize=d.getFontSize=function(){return W}),G=l.R2L||!1,q=(d.__private__.setR2L=d.setR2L=function(e){return G=e,this},d.__private__.getR2L=d.getR2L=function(e){return G},d.__private__.setZoomMode=function(e){if(/^\d*\.?\d*\%$/.test(e))k=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');k=e}else k=parseInt(e,10)}),Y=(d.__private__.getZoomMode=function(){return k},d.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');U=e}),X=(d.__private__.getPageMode=function(){return U},d.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');L=e}),J=(d.__private__.getLayoutMode=function(){return L},d.__private__.setDisplayMode=d.setDisplayMode=function(e,t,n){return q(e),X(t),Y(n),this},{title:"",subject:"",author:"",keywords:"",creator:""}),Z=(d.__private__.getDocumentProperty=function(e){if(-1===Object.keys(J).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return J[e]},d.__private__.getDocumentProperties=function(e){return J},d.__private__.setDocumentProperties=d.setProperties=d.setDocumentProperties=function(e){for(var t in J)J.hasOwnProperty(t)&&e[t]&&(J[t]=e[t]);return this},d.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(J).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return J[e]=t},0),$=[],ee={},te={},ne=0,re=[],ae=[],oe=new i(d),ie=l.hotfixes||[],se=d.__private__.newObject=function(){var e=le();return ce(e,!0),e},le=d.__private__.newObjectDeferred=function(){return $[++Z]=function(){return M},Z},ce=function(e,t){return t="boolean"==typeof t&&t,$[e]=M,t&&_(e+" 0 obj"),e},ue=d.__private__.newAdditionalObject=function(){var e={objId:le(),content:""};return ae.push(e),e},Ae=le(),he=le(),de=d.__private__.decodeColorString=function(e){var t=e.split(" ");if(2===t.length&&("g"===t[1]||"G"===t[1])){var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var r="#",a=0;a<3;a++)r+=("0"+Math.floor(255*parseFloat(t[a])).toString(16)).slice(-2);return r},pe=d.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});
2var n=e.ch1,r=e.ch2,o=e.ch3,i=e.ch4,s=(e.precision,"draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"]);if("string"==typeof n&&"#"!==n.charAt(0)){var l=new RGBColor(n);if(l.ok)n=l.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var c=parseInt(n.substr(1),16);n=c>>16&255,r=c>>8&255,o=255&c}if(void 0===r||void 0===i&&n===r&&r===o)if("string"==typeof n)t=n+" "+s[0];else if(2===e.precision)t=b(n/255)+" "+s[0];else t=v(n/255)+" "+s[0];else if(void 0===i||"object"===a(i)){if(i&&!isNaN(i.a)&&0===i.a)return["1.000","1.000","1.000",s[1]].join(" ");if("string"==typeof n)t=[n,r,o,s[1]].join(" ");else if(2===e.precision)t=[b(n/255),b(r/255),b(o/255),s[1]].join(" ");else t=[v(n/255),v(r/255),v(o/255),s[1]].join(" ")}else if("string"==typeof n)t=[n,r,o,i,s[2]].join(" ");else if(2===e.precision)t=[b(n/255),b(r/255),b(o/255),b(i/255),s[2]].join(" ");else t=[v(n/255),v(r/255),v(o/255),v(i/255),s[2]].join(" ");return t},fe=d.__private__.getFilters=function(){return c},me=d.__private__.putStream=function(e){var t,n=(e=e||{}).data||"",r=e.filters||fe(),a=e.alreadyAppliedFilters||[],o=e.addLength1||!1,i=n.length;!0===r&&(r=["FlateEncode"]);var l=e.additionalKeyValues||[],c=(t=void 0!==s.API.processDataByFilters?s.API.processDataByFilters(n,r):{data:n,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());0!==t.data.length&&(l.push({key:"Length",value:t.data.length}),!0===o&&l.push({key:"Length1",value:i})),0!=c.length&&(c.split("/").length-1==1?l.push({key:"Filter",value:c}):l.push({key:"Filter",value:"["+c+"]"})),_("<<");for(var u=0;u<l.length;u++)_("/"+l[u].key+" "+l[u].value);_(">>"),0!==t.data.length&&(_("stream"),_(t.data),_("endstream"))},ye=d.__private__.putPage=function(e){e.mediaBox;var t=e.number,n=e.data,r=e.objId,a=e.contentsObjId;ce(r,!0),re[T].mediaBox.topRightX,re[T].mediaBox.bottomLeftX,re[T].mediaBox.topRightY,re[T].mediaBox.bottomLeftY,_("<</Type /Page"),_("/Parent "+e.rootDictionaryObjId+" 0 R"),_("/Resources "+e.resourceDictionaryObjId+" 0 R"),_("/MediaBox ["+parseFloat(b(e.mediaBox.bottomLeftX))+" "+parseFloat(b(e.mediaBox.bottomLeftY))+" "+b(e.mediaBox.topRightX)+" "+b(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&_("/CropBox ["+b(e.cropBox.bottomLeftX)+" "+b(e.cropBox.bottomLeftY)+" "+b(e.cropBox.topRightX)+" "+b(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&_("/BleedBox ["+b(e.bleedBox.bottomLeftX)+" "+b(e.bleedBox.bottomLeftY)+" "+b(e.bleedBox.topRightX)+" "+b(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&_("/TrimBox ["+b(e.trimBox.bottomLeftX)+" "+b(e.trimBox.bottomLeftY)+" "+b(e.trimBox.topRightX)+" "+b(e.trimBox.topRightY)+"]"),null!==e.artBox&&_("/ArtBox ["+b(e.artBox.bottomLeftX)+" "+b(e.artBox.bottomLeftY)+" "+b(e.artBox.topRightX)+" "+b(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&_("/UserUnit "+e.userUnit),oe.publish("putPage",{objId:r,pageContext:re[t],pageNumber:t,page:n}),_("/Contents "+a+" 0 R"),_(">>"),_("endobj");var o=n.join("\n");return ce(a,!0),me({data:o,filters:fe()}),_("endobj"),r},ge=d.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=ne;e++)re[e].objId=le(),re[e].contentsObjId=le();for(e=1;e<=ne;e++)n.push(ye({number:e,data:P[e],objId:re[e].objId,contentsObjId:re[e].contentsObjId,mediaBox:re[e].mediaBox,cropBox:re[e].cropBox,bleedBox:re[e].bleedBox,trimBox:re[e].trimBox,artBox:re[e].artBox,userUnit:re[e].userUnit,rootDictionaryObjId:Ae,resourceDictionaryObjId:he}));ce(Ae,!0),_("<</Type /Pages");var r="/Kids [";for(t=0;t<ne;t++)r+=n[t]+" 0 R ";_(r+"]"),_("/Count "+ne),_(">>"),_("endobj"),oe.publish("postPutPages")},be=function(e,t,n){te.hasOwnProperty(t)||(te[t]={}),te[t][n]=e},ve=function(e,t,n,r,a){a=a||!1;var o="F"+(Object.keys(ee).length+1).toString(10),i={id:o,postScriptName:e,fontName:t,fontStyle:n,encoding:r,isStandardFont:a,metadata:{}};return oe.publish("addFont",{font:i,instance:this}),void 0!==o&&(ee[o]=i,be(o,t,n)),o},we=d.__private__.pdfEscape=d.pdfEscape=function(e,t){return function(e,t){var n,r,a,o,i,s,l,c,u;if(a=(t=t||{}).sourceEncoding||"Unicode",i=t.outputEncoding,(t.autoencode||i)&&ee[O].metadata&&ee[O].metadata[a]&&ee[O].metadata[a].encoding&&(o=ee[O].metadata[a].encoding,!i&&ee[O].encoding&&(i=ee[O].encoding),!i&&o.codePages&&(i=o.codePages[0]),"string"==typeof i&&(i=o[i]),i)){for(l=!1,s=[],n=0,r=e.length;n<r;n++)(c=i[e.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(e[n]),s[n].charCo
2deAt(0)>>8&&(l=!0);e=s.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(s=t.noBOM?[]:[254,255],n=0,r=e.length;n<r;n++){if((u=(c=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Be=d.__private__.beginPage=function(e,t){var r,a="string"==typeof t&&t.toLowerCase();if("string"==typeof e&&(r=y(e.toLowerCase()))&&(e=r[0],t=r[1]),Array.isArray(e)&&(t=e[1],e=e[0]),(isNaN(e)||isNaN(t))&&(e=n[0],t=n[1]),a){switch(a.substr(0,1)){case"l":e<t&&(a="s");break;case"p":t<e&&(a="s")}"s"===a&&(r=e,e=t,t=r)}(14400<e||14400<t)&&(console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),e=Math.min(14400,e),t=Math.min(14400,t)),n=[e,t],R=!0,P[++ne]=[],re[ne]={objId:0,contentsObjId:0,userUnit:Number(u),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e),topRightY:Number(t)}},Ne(ne)},Ce=function(){Be.apply(this,arguments),ze(Ke),_(Ze),0!==at&&_(at+" J"),0!==it&&_(it+" j"),oe.publish("addPage",{pageNumber:ne})},Ne=function(e){0<e&&e<=ne&&(T=e)},Ee=d.__private__.getNumberOfPages=d.getNumberOfPages=function(){return P.length-1},xe=function(e,t,n){var r,a=void 0;return n=n||{},e=void 0!==e?e:ee[O].fontName,t=void 0!==t?t:ee[O].fontStyle,r=e.toLowerCase(),void 0!==te[r]&&void 0!==te[r][t]?a=te[r][t]:void 0!==te[e]&&void 0!==te[e][t]?a=te[e][t]:!1===n.disableWarning&&console.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),a||n.noFallback||null==(a=te.times[t])&&(a=te.times.normal),a},Se=d.__private__.putInfo=function(){for(var e in se(),_("<<"),_("/Producer (jsPDF "+s.version+")"),J)J.hasOwnProperty(e)&&J[e]&&_("/"+e.substr(0,1).toUpperCase()+e.substr(1)+" ("+we(J[e])+")");_("/CreationDate ("+g+")"),_(">>"),_("endobj")},Te=d.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Ae;switch(se(),_("<<"),_("/Type /Catalog"),_("/Pages "+t+" 0 R"),k||(k="fullwidth"),k){case"fullwidth":_("/OpenAction [3 0 R /FitH null]");break;case"fullheight":_("/OpenAction [3 0 R /FitV null]");break;case"fullpage":_("/OpenAction [3 0 R /Fit]");break;case"original":_("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+k;"%"===n.substr(n.length-1)&&(k=parseInt(k)/100),"number"==typeof k&&_("/OpenAction [3 0 R /XYZ null null "+b(k)+"]")}switch(L||(L="continuous"),L){case"continuous":_("/PageLayout /OneColumn");break;case"single":_("/PageLayout /SinglePage");break;case"two":case"twoleft":_("/PageLayout /TwoColumnLeft");break;case"tworight":_("/PageLayout /TwoColumnRight")}U&&_("/PageMode /"+U),oe.publish("putCatalog"),_(">>"),_("endobj")},Fe=d.__private__.putTrailer=function(){_("trailer"),_("<<"),_("/Size "+(Z+1)),_("/Root "+Z+" 0 R"),_("/Info "+(Z-1)+" 0 R"),_("/ID [ <"+w+"> <"+w+"> ]"),_(">>")},Ue=d.__private__.putHeader=function(){_("%PDF-"+p),_("%\xba\xdf\xac\xe0")},Le=d.__private__.putXRef=function(){var e=1,t="0000000000";for(_("xref"),_("0 "+(Z+1)),_("0000000000 65535 f "),e=1;e<=Z;e++)"function"==typeof $[e]?_((t+$[e]()).slice(-10)+" 00000 n "):void 0!==$[e]?_((t+$[e]).slice(-10)+" 00000 n "):_("0000000000 00000 n ")},Oe=d.__private__.buildDocument=function(){R=!1,M=Z=0,D=[],$=[],ae=[],Ae=le(),he=le(),oe.publish("buildDocument"),Ue(),ge(),function(){oe.publish("putAdditionalObjects");for(var e=0;e<ae.length;e++){var t=ae[e];ce(t.objId,!0),_(t.content),_("endobj")}oe.publish("postPutAdditionalObjects")}(),function(){for(var e in ee)ee.hasOwnProperty(e)&&(!1===A||!0===A&&h.hasOwnProperty(e))&&(t=ee[e],oe.publish("putFont",{font:t,out:_,newObject:se,putStream:me}),!0!==t.isAlreadyPutted&&(t.objectNumber=se(),_("<<"),_("/Type /Font"),_("/BaseFont /"+t.postScriptName),_("/Subtype /Type1"),"string"==typeof t.encoding&&_("/Encoding /"+t.encoding),_("/FirstChar 32"),_("/LastChar 255"),_(">>"),_("endobj")));var t}(),oe.publish("putResources"),ce(he,!0),_("<<"),function(){for(var e in _("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),_("/Font <<"),ee)ee.hasOwnProperty(e)&&(!1===A||!0===A&&h.hasOwnProperty(e))&&_("/"+e+" "+ee[e].objectNumber+" 0 R");_(">>"),_("/XObject <<"),oe.publish("putXobjectDict"),_(">>")}(),_(">>"),_("endobj"),oe.publish("postPutResources"),Se(),Te();var e=M;return Le(),Fe(),_("startxref"),_(""+e),_("%%EOF"),R=!0,D.join("\n")},Ie=d.__private__.getBlob=function(e){return new Blob([K(e)],{type:"application/pdf"})},Qe=d.output=d.__private__.output=((Q=function(e,t){t=t||{};var n=Oe();switch("string"==typeof t?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return n;case"save":d.save(t.filename);break;case"arraybuffer":return K(n);case"blob":return Ie(n);case"bloburi":case"bloburl":if(void 0!==r.URL&&"function"==typeof r.URL.createObjectURL)return r.URL&&r.URL.createObjectURL(Ie(n))||void 0;console.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":return"data:application/pdf;filename="+t.filename+";base64,"+btoa(n);case"dataurlnewwindow":var a='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring")+'"></iframe></body></html>',o=r.open();if(null!==o&&o.document.write(a),o||"undefined"==typeof safari)return o;case"datauri":case"dataurl":return r.document.location.href="data:application/pdf;filename="+t.filename+";base64,"+btoa(n);default:return null}}).foo=function(){try{return Q.apply(this,arguments)}catch(n){var e=n.stack||"";~e.indexOf(" at ")&&(e=e.split(" at ")[1]);var t="Error in function "+e.split("\n")[0].split("<")[0]+": "+n.message;if(!r.console)throw new Error(t);r.console.error(t,n),r.alert&&alert(t)}},(Q.foo.bar=Q).foo),He=function(e){return!0===Array.isArray(ie)&&-1<ie.indexOf(e)};switch(t){case"pt":I=1;break;case"mm":I=72/25.4;break;case"cm":I=72/2.54;break;case"in":I=72;break;case"px":I=1==He("px_scaling")?.75:96/72;break;case"pc":case"em":I=12;break;case"ex":I=6;break;default:throw new Error("Invalid unit: "+t)}x(),C();var Re=d.__private__.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to
2jsPDF.getPageInfo");return{objId:re[e].objId,pageNumber:e,pageContext:re[e]}},Pe=d.__private__.getPageInfoByObjId=function(e){for(var t in re)if(re[t].objId===e)break;if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");return Re(t)},De=d.__private__.getCurrentPageInfo=function(){return{objId:re[T].objId,pageNumber:T,pageContext:re[T]}};d.addPage=function(){return Ce.apply(this,arguments),this},d.setPage=function(){return Ne.apply(this,arguments),this},d.insertPage=function(e){return this.addPage(),this.movePage(T,e),this},d.movePage=function(e,t){if(t<e){for(var n=P[e],r=re[e],a=e;t<a;a--)P[a]=P[a-1],re[a]=re[a-1];P[t]=n,re[t]=r,this.setPage(t)}else if(e<t){for(n=P[e],r=re[e],a=e;a<t;a++)P[a]=P[a+1],re[a]=re[a+1];P[t]=n,re[t]=r,this.setPage(t)}return this},d.deletePage=function(){return function(e){0<e&&e<=ne&&(P.splice(e,1),--ne<T&&(T=ne),this.setPage(T))}.apply(this,arguments),this},d.__private__.text=d.text=function(e,t,n,r){var o;"number"!=typeof e||"number"!=typeof t||"string"!=typeof n&&!Array.isArray(n)||(o=n,n=t,t=e,e=o);var i=arguments[3],s=arguments[4],l=arguments[5];if("object"===a(i)&&null!==i||("string"==typeof s&&(l=s,s=null),"string"==typeof i&&(l=i,i=null),"number"==typeof i&&(s=i,i=null),r={flags:i,angle:s,align:l}),(i=i||{}).noBOM=i.noBOM||!0,i.autoencode=i.autoencode||!0,isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return d;var c,u="",A="number"==typeof r.lineHeightFactor?r.lineHeightFactor:je,d=r.scope||this;function p(e){for(var t,n=e.concat(),r=[],a=n.length;a--;)"string"==typeof(t=n.shift())?r.push(t):Array.isArray(e)&&1===t.length?r.push(t[0]):r.push([t[0],t[1],t[2]]);return r}function f(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var r,a,o=e.concat(),i=[],s=o.length;s--;)"string"==typeof(r=o.shift())?i.push(t(r)[0]):Array.isArray(r)&&"string"===r[0]&&(a=t(r[0],r[1],r[2]),i.push([a[0],a[1],a[2]]));n=i}return n}var m=!1,y=!0;if("string"==typeof e)m=!0;else if(Array.isArray(e)){for(var g,w=e.concat(),B=[],C=w.length;C--;)("string"!=typeof(g=w.shift())||Array.isArray(g)&&"string"!=typeof g[0])&&(y=!1);m=y}if(!1===m)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');var N=ee[O].encoding;"WinAnsiEncoding"!==N&&"StandardEncoding"!==N||(e=f(e,function(e,t,n){return[(a=e,a=a.split("\t").join(Array(r.TabLen||9).join(" ")),we(a,i)),t,n];var a})),"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var E=W/d.internal.scaleFactor,x=E*(je-1);switch(r.baseline){case"bottom":n-=x;break;case"top":n+=E-x;break;case"hanging":n+=E-2*x;break;case"middle":n+=E/2-x}0<(j=r.maxWidth||0)&&("string"==typeof e?e=d.splitTextToSize(e,j):"[object Array]"===Object.prototype.toString.call(e)&&(e=d.splitTextToSize(e.join(" "),j)));var S={text:e,x:t,y:n,options:r,mutex:{pdfEscape:we,activeFontKey:O,fonts:ee,activeFontSize:W}};oe.publish("preProcessText",S),e=S.text,s=(r=S.options).angle;var T=d.internal.scaleFactor,F=[];if(s){s*=Math.PI/180;var k=Math.cos(s),U=Math.sin(s);F=[b(k),b(U),b(-1*U),b(k)]}void 0!==(M=r.charSpace)&&(u+=v(M*T)+" Tc\n"),r.lang;var L=-1,I=void 0!==r.renderingMode?r.renderingMode:r.stroke,Q=d.internal.getCurrentPageInfo().pageContext;switch(I){case 0:case!1:case"fill":L=0;break;case 1:case!0:case"stroke":L=1;break;case 2:case"fillThenStroke":L=2;break;case 3:case"invisible":L=3;break;case 4:case"fillAndAddForClipping":L=4;break;case 5:case"strokeAndAddPathForClipping":L=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":L=6;break;case 7:case"addToPathForClipping":L=7}var H=void 0!==Q.usedRenderingMode?Q.usedRenderingMode:-1;-1!==L?u+=L+" Tr\n":-1!==H&&(u+="0 Tr\n"),-1!==L&&(Q.usedRenderingMode=L),l=r.align||"left";var R=W*A,P=d.internal.pageSize.getWidth(),D=(T=d.internal.scaleFactor,ee[O]),M=r.charSpace||nt,j=r.maxWidth||0,K=(i={},[]);if("[object Array]"===Object.prototype.toString.call(e)){var z,V;B=p(e),"left"!==l&&(V=B.map(function(e){return d.getStringUnitWidth(e,{font:D,charSpace:M,fontSize:W})*W/T})),Math.max.apply(Math,V);var q,Y=0;if("right"===l){t-=V[0],e=[];var X=0;for(C=B.length;X<C;X++)V[X],z=0===X?(q=qe(t),Ye(n)):(q=(Y-V[X])*T,-R),e.push([B[X],q,z]),Y=V[X]}else if("center"===l)for(t-=V[0]/2,e=[],X=0,C=B.length;X<C;X++)V[X],z=0===X?(q=qe(t),Ye(n)):(q=(Y-V[X])/2*T,-R),e.push([B[X],q,z]),Y=V[X];else if("left"===l)for(e=[],X=0,C=B.length;X<C;X++)z=0===X?Ye(n):-R,q=0===X?qe(t):0,e.push(B[X]);else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],j=0!==j?j:P,X=0,C=B.length;X<C;X++)z=0===X?Ye(n):-R,q=0===X?qe(t):0,X<C-1&&K.push(((j-V[X])/(B[X].split(" ").length-1)*T).toFixed(2)),e.push([B[X],q,z])}}!0===("boolean"==typeof r.R2L?r.R2L:G)&&(e=f(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),S={text:e,x:t,y:n,options:r,mutex:{pdfEscape:we,activeFontKey:O,fonts:ee,activeFontSize:W}},oe.publish("postProcessText",S),e=S.text,c=S.mutex.isHex,B=p(e),e=[];var J,Z,$,te=0,ne=(C=B.length,"");for(X=0;X<C;X++)ne="",Array.isArray(B[X])?(J=parseFloat(B[X][1]),Z=parseFloat(B[X][2]),$=(c?"<":"(")+B[X][0]+(c?">":")"),te=1):(J=qe(t),Z=Ye(n),$=(c?"<":"(")+B[X]+(c?">":")")),void 0!==K&&void 0!==K[X]&&(ne=K[X]+" Tw\n"),0!==F.length&&0===X?e.push(ne+F.join(" ")+" "+J.toFixed(2)+" "+Z.toFixed(2)+" Tm\n"+$):1===te||0===te&&0===X?e.push(ne+J.toFixed(2)+" "+Z.toFixed(2)+" Td\n"+$):e.push(ne+$);e=0===te?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var re="BT\n/"+O+" "+W+" Tf\n"+(W*A).toFixed(2)+" TL\n"+et+"\n";return re+=u,re+=e,_(re+="ET"),h[O]=!0,d},d.__private__.lstext=d.lstext=function(e,t,n,r){return console.warn("jsPDF.lstext is deprecated"),this.text(e,t,n,{charSpace:r})},d.__private__.clip=d.clip=function(e){_("evenodd"===e?"W*":"W"),_("n")}
2,d.__private__.clip_fixed=d.clip_fixed=function(e){console.log("clip_fixed is deprecated"),d.clip(e)};var Me=d.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","F","DF","FD","f","f*","B","B*"].indexOf(e)&&(t=!0),t},_e=d.__private__.getStyle=function(e){var t="S";return"F"===e?t="f":"FD"===e||"DF"===e?t="B":"f"!==e&&"f*"!==e&&"B"!==e&&"B*"!==e||(t=e),t};d.__private__.line=d.line=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw new Error("Invalid arguments passed to jsPDF.line");return this.lines([[n-e,r-t]],e,t)},d.__private__.lines=d.lines=function(e,t,n,r,a,o){var i,s,l,c,u,A,h,d,p,f,m,y;if("number"==typeof e&&(y=n,n=t,t=e,e=y),r=r||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(r)||!Me(a)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(_(v(qe(t))+" "+v(Ye(n))+" m "),i=r[0],s=r[1],c=e.length,f=t,m=n,l=0;l<c;l++)2===(u=e[l]).length?(f=u[0]*i+f,m=u[1]*s+m,_(v(qe(f))+" "+v(Ye(m))+" l")):(A=u[0]*i+f,h=u[1]*s+m,d=u[2]*i+f,p=u[3]*s+m,f=u[4]*i+f,m=u[5]*s+m,_(v(qe(A))+" "+v(Ye(h))+" "+v(qe(d))+" "+v(Ye(p))+" "+v(qe(f))+" "+v(Ye(m))+" c"));return o&&_(" h"),null!==a&&_(_e(a)),this},d.__private__.rect=d.rect=function(e,t,n,r,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Me(a))throw new Error("Invalid arguments passed to jsPDF.rect");return _([b(qe(e)),b(Ye(t)),b(n*I),b(-r*I),"re"].join(" ")),null!==a&&_(_e(a)),this},d.__private__.triangle=d.triangle=function(e,t,n,r,a,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a)||isNaN(o)||!Me(i))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,r-t],[a-n,o-r],[e-a,t-o]],e,t,[1,1],i,!0),this},d.__private__.roundedRect=d.roundedRect=function(e,t,n,r,a,o,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a)||isNaN(o)||!Me(i))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return this.lines([[n-2*a,0],[a*s,0,a,o-o*s,a,o],[0,r-2*o],[0,o*s,-a*s,o,-a,o],[2*a-n,0],[-a*s,0,-a,-o*s,-a,-o],[0,2*o-r],[0,-o*s,a*s,-o,a,-o]],e+a,t,[1,1],i),this},d.__private__.ellipse=d.ellipse=function(e,t,n,r,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||!Me(a))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,i=4/3*(Math.SQRT2-1)*r;return _([b(qe(e+n)),b(Ye(t)),"m",b(qe(e+n)),b(Ye(t-i)),b(qe(e+o)),b(Ye(t-r)),b(qe(e)),b(Ye(t-r)),"c"].join(" ")),_([b(qe(e-o)),b(Ye(t-r)),b(qe(e-n)),b(Ye(t-i)),b(qe(e-n)),b(Ye(t)),"c"].join(" ")),_([b(qe(e-n)),b(Ye(t+i)),b(qe(e-o)),b(Ye(t+r)),b(qe(e)),b(Ye(t+r)),"c"].join(" ")),_([b(qe(e+o)),b(Ye(t+r)),b(qe(e+n)),b(Ye(t+i)),b(qe(e+n)),b(Ye(t)),"c"].join(" ")),null!==a&&_(_e(a)),this},d.__private__.circle=d.circle=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||!Me(r))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,r)},d.setFont=function(e,t){return O=xe(e,t,{disableWarning:!1}),this},d.setFontStyle=d.setFontType=function(e){return O=xe(void 0,e),this},d.__private__.getFontList=d.getFontList=function(){var e,t,n,r={};for(e in te)if(te.hasOwnProperty(e))for(t in r[e]=n=[],te[e])te[e].hasOwnProperty(t)&&n.push(t);return r},d.addFont=function(e,t,n,r){ve.call(this,e,t,n,r=r||"Identity-H")};var je,Ke=l.lineWidth||.200025,ze=d.__private__.setLineWidth=d.setLineWidth=function(e){return _((e*I).toFixed(2)+" w"),this},We=(d.__private__.setLineDash=s.API.setLineDash=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map(function(e){return(e*I).toFixed(3)}).join(" "),t=parseFloat((t*I).toFixed(3)),_("["+e+"] "+t+" d"),this},d.__private__.getLineHeight=d.getLineHeight=function(){return W*je}),Ve=(We=d.__private__.getLineHeight=d.getLineHeight=function(){return W*je},d.__private__.setLineHeightFactor=d.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(je=e),this}),Ge=d.__private__.getLineHeightFactor=d.getLineHeightFactor=function(){return je};Ve(l.lineHeight);var qe=d.__private__.getHorizontalCoordinate=function(e){return e*I},Ye=d.__private__.getVerticalCoordinate=function(e){return re[T].mediaBox.topRightY-re[T].mediaBox.bottomLeftY-e*I},Xe=d.__private__.getHorizontalCoordinateString=function(e){return b(e*I)},Je=d.__private__.getVerticalCoordinateString=function(e){return b(re[T].mediaBox.topRightY-re[T].mediaBox.bottomLeftY-e*I)},Ze=l.strokeColor||"0 G",$e=(d.__private__.getStrokeColor=d.getDrawColor=function(){return de(Ze)},d.__private__.setStrokeColor=d.setDrawColor=function(e,t,n,r){return Ze=pe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"draw",precision:2}),_(Ze),this},l.fillColor||"0 g"),et=(d.__private__.getFillColor=d.getFillColor=function(){return de($e)},d.__private__.setFillColor=d.setFillColor=function(e,t,n,r){return $e=pe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"fill",precision:2}),_($e),this},l.textColor||"0 g"),tt=d.__private__.getTextColor=d.getTextColor=function(){return de(et)},nt=(d.__private__.setTextColor=d.setTextColor=function(e,t,n,r){return et=pe({ch1:e,ch2:t,ch3:n,ch4:r,pdfColorType:"text",precision:3}),this},l.charSpace||0),rt=d.__private__.getCharSpace=d.getCharSpace=function(){return nt},at=(d.__private__.setCharSpace=d.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to
2jsPDF.setCharSpace");return nt=e,this},0);d.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},d.__private__.setLineCap=d.setLineCap=function(e){var t=d.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _((at=t)+" J"),this};var ot,it=0;for(var st in d.__private__.setLineJoin=d.setLineJoin=function(e){var t=d.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _((it=t)+" j"),this},d.__private__.setMiterLimit=d.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setMiterLimit");return ot=parseFloat(b(e*I)),_(ot+" M"),this},d.save=function(e,t){if(e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1!==t.returnPromise)return new Promise(function(t,n){try{var a=ke(Ie(Oe()),e);"function"==typeof ke.unload&&r.setTimeout&&setTimeout(ke.unload,911),t(a)}catch(t){n(t.message)}});ke(Ie(Oe()),e),"function"==typeof ke.unload&&r.setTimeout&&setTimeout(ke.unload,911)},s.API)s.API.hasOwnProperty(st)&&("events"===st&&s.API.events.length?function(e,t){var n,r,a;for(a=t.length-1;-1!==a;a--)n=t[a][0],r=t[a][1],e.subscribe.apply(e,[n].concat("function"==typeof r?[r]:r))}(oe,s.API.events):d[st]=s.API[st]);return d.internal={pdfEscape:we,getStyle:_e,getFont:function(){return ee[xe.apply(d,arguments)]},getFontSize:V,getCharSpace:rt,getTextColor:tt,getLineHeight:We,getLineHeightFactor:Ge,write:j,getHorizontalCoordinate:qe,getVerticalCoordinate:Ye,getCoordinateString:Xe,getVerticalCoordinateString:Je,collections:{},newObject:se,newAdditionalObject:ue,newObjectDeferred:le,newObjectDeferredBegin:ce,getFilters:fe,putStream:me,events:oe,scaleFactor:I,pageSize:{getWidth:function(){return(re[T].mediaBox.topRightX-re[T].mediaBox.bottomLeftX)/I},setWidth:function(e){re[T].mediaBox.topRightX=e*I+re[T].mediaBox.bottomLeftX},getHeight:function(){return(re[T].mediaBox.topRightY-re[T].mediaBox.bottomLeftY)/I},setHeight:function(e){re[T].mediaBox.topRightY=e*I+re[T].mediaBox.bottomLeftY}},output:Qe,getNumberOfPages:Ee,pages:P,out:_,f2:b,f3:v,getPageInfo:Re,getPageInfoByObjId:Pe,getCurrentPageInfo:De,getPDFVersion:f,hasHotfix:He},Object.defineProperty(d.internal.pageSize,"width",{get:function(){return(re[T].mediaBox.topRightX-re[T].mediaBox.bottomLeftX)/I},set:function(e){re[T].mediaBox.topRightX=e*I+re[T].mediaBox.bottomLeftX},enumerable:!0,configurable:!0}),Object.defineProperty(d.internal.pageSize,"height",{get:function(){return(re[T].mediaBox.topRightY-re[T].mediaBox.bottomLeftY)/I},set:function(e){re[T].mediaBox.topRightY=e*I+re[T].mediaBox.bottomLeftY},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=z.length;t<n;t++){var r=ve(e[t][0],e[t][1],e[t][2],z[t][3],!0);h[r]=!0;var a=e[t][0].split("-");be(r,a[0],a[1]||"")}oe.publish("addFonts",{fonts:ee,dictionary:te})}(z),O="F1",Ce(n,e),oe.publish("initialized"),d}return s.API={events:[]},s.version="1.5.3",void 0!==(o=function(){return s}.call(t,n,t,e))&&(e.exports=o),s}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());(function(e,t){var n,r=1,o=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},i=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},s=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(2)},l=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return e.toFixed(5)};e.__acroform__={};var c=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},u=function(e){return e*r},A=function(e){return e/r},h=function(e){var t=new I,n=q.internal.getHeight(e)||0,r=q.internal.getWidth(e)||0;return t.BBox=[0,0,Number(s(r)),Number(s(n))],t},d=e.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to
2jsPDF.API.__acroform__.setBit");return e|1<<t},p=e.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},f=e.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return 0==(e&1<<t)?0:1},m=e.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return f(e,t-1)},y=e.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return d(e,t-1)},g=e.__acroform__.clearBitForPdf=function(e,t,n){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return p(e,t-1)},b=e.__acroform__.calculateCoordinates=function(e){var t=this.internal.getHorizontalCoordinate,n=this.internal.getVerticalCoordinate,r=e[0],a=e[1],o=e[2],i=e[3],l={};return l.lowerLeft_X=t(r)||0,l.lowerLeft_Y=n(a+i)||0,l.upperRight_X=t(r+o)||0,l.upperRight_Y=n(a)||0,[Number(s(l.lowerLeft_X)),Number(s(l.lowerLeft_Y)),Number(s(l.upperRight_X)),Number(s(l.upperRight_Y))]},v=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],r=e.V||e.DV,a=w(e,r),o=n.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(n.__private__.encodeColorString(e.color)),t.push("/"+o+" "+s(a.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC");var i=new h(e);return i.stream=t.join("\n"),i}},w=function(e,t){var r=e.maxFontSize||12,a=(e.fontName,{text:"",fontSize:""}),i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" "),l=(n.__private__.encodeColorString(e.color),r),c=q.internal.getHeight(e)||0;c=c<0?-c:c;var u=q.internal.getWidth(e)||0;u=u<0?-u:u;var A=function(t,n,r){if(t+1<i.length){var a=n+" "+i[t+1];return B(a,e,r).width<=u-4}return!1};l++;e:for(;;){t="";var h=B("3",e,--l).height,d=e.multiline?c-l:(c-h)/2,p=-2,f=d+=2,m=0,y=0,g=0;if(l<=0){t="(...) Tj\n",t+="% Width of Text: "+B(t,e,l=12).width+", FieldWidth:"+u+"\n";break}g=B(i[0]+" ",e,l).width;var b="",v=0;for(var w in i)if(i.hasOwnProperty(w)){b=" "==(b+=i[w]+" ").substr(b.length-1)?b.substr(0,b.length-1):b;var C=parseInt(w);g=B(b+" ",e,l).width;var N=A(C,b,l),E=w>=i.length-1;if(N&&!E){b+=" ";continue}if(N||E){if(E)y=C;else if(e.multiline&&c<(h+2)*(v+2)+2)continue e}else{if(!e.multiline)continue e;if(c<(h+2)*(v+2)+2)continue e;y=C}for(var x="",S=m;S<=y;S++)x+=i[S]+" ";switch(x=" "==x.substr(x.length-1)?x.substr(0,x.length-1):x,g=B(x,e,l).width,e.textAlign){case"right":p=u-g-2;break;case"center":p=(u-g)/2;break;default:p=2}t+=s(p)+" "+s(f)+" Td\n",t+="("+o(x)+") Tj\n",t+=-s(p)+" 0 Td\n",f=-(l+2),g=0,m=y+1,v++,b=""}break}return a.text=t,a.fontSize=l,a},B=function(e,t,r){var a=n.internal.getFont(t.fontName,t.fontStyle),o=n.get
2StringUnitWidth(e,{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r);return{height:n.getStringUnitWidth("3",{font:a,fontSize:parseFloat(r),charSpace:0})*parseFloat(r)*1.5,width:o}},C={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},N=function(){n.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var e=n.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];r.objId=void 0,r.hasAnnotation&&E.call(n,r)}},E=function(e){var t={type:"reference",object:e};void 0===n.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===t.type&&e.object===t.object})&&n.internal.getPageInfo(e.page).pageContext.annotations.push(t)},x=function(){if(void 0===n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");n.internal.write("/AcroForm "+n.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")},S=function(){n.internal.events.unsubscribe(n.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete n.internal.acroformPlugin.acroFormDictionaryRoot._eventID,n.internal.acroformPlugin.printedOut=!0},T=function(e){var t=!e;for(var r in e||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(r)){var o=e[r],i=[],s=o.Rect;if(o.Rect&&(o.Rect=b.call(this,o.Rect)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=q.createDefaultAppearanceStream(o),"object"===a(o)&&"function"==typeof o.getKeyValueListForStream&&(i=o.getKeyValueListForStream()),o.Rect=s,o.hasAppearanceStream&&!o.appearanceStreamContent){var l=v.call(this,o);i.push({key:"AP",value:"<</N "+l+">>"}),n.internal.acroformPlugin.xForms.push(l)}if(o.appearanceStreamContent){var c="";for(var u in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(u)){var A=o.appearanceStreamContent[u];if(c+="/"+u+" ",c+="<<",1<=Object.keys(A).length||Array.isArray(A))for(var r in A){var h;A.hasOwnProperty(r)&&("function"==typeof(h=A[r])&&(h=h.call(this,o)),c+="/"+r+" "+h+" ",0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h))}else"function"==typeof(h=A)&&(h=h.call(this,o)),c+="/"+r+" "+h,0<=n.internal.acroformPlugin.xForms.indexOf(h)||n.internal.acroformPlugin.xForms.push(h);c+=">>"}i.push({key:"AP",value:"<<\n"+c+">>"})}n.internal.putStream({additionalKeyValues:i}),n.internal.out("endobj")}t&&F.call(this,n.internal.acroformPlugin.xForms)},F=function(e){for(var t in e)if(e.hasOwnProperty(t)){var r=t,o=e[t];n.internal.newObjectDeferredBegin(o&&o.objId,!0),"object"===a(o)&&"function"==typeof o.putStream&&o.putStream(),delete e[r]}},k=function(){if(void 0!==this.internal&&(void 0===this.internal.acroformPlugin||!1===this.internal.acroformPlugin.isInitialized)){if(n=this,H.FieldNum=0,this.internal.acroformPlugin=JSON.parse(JSON.stringify(C)),this.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");r=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Q,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",S),n.internal.events.subscribe("buildDocument",N),n.internal.events.subscribe("putCatalog",x),n.internal.events.subscribe("postPutPages",T),n.internal.acroformPlugin.isInitialized=!0}},U=e.__acroform__.arrayToPdfArray=function(e){if(Array.isArray(e)){for(var t="[",n=0;n<e.length;n++)switch(0!==n&&(t+=" "),a(e[n])){case"boolean":case"number":case"object":t+=e[n].toString();break;case"string":"/"!==e[n].substr(0,1)?t+="("+o(e[n].toString())+")":t+=e[n].toString()}return t+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},L=function(e){return(e=e||"").toString(),"("+o(e)+")"},O=function(){var e;Object.defineProperty(this,"objId",{configurable:!0,get:function(){if(e||(e=n.internal.newObjectDeferred()),!e)throw new Error("AcroFormPDFObject: Couldn't create Object ID");return e},set:function(t){e=t}})};O.prototype.toString=function(){return this.objId+" 0 R"},O.prototype.putStream=function(){var e=this.getKeyValueListForStream();n.internal.putStream({data:this.stream,additionalKeyValues:e}),n.internal.out("endobj")},O.prototype.getKeyValueListForStream=function(){return function(e){var t=[],n=Object.getOwnPropertyNames(e).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"_"!=e.substring(0,1)});for(var r in n)if(!1===Object.getOwnPropertyDescriptor(e,n[r]).configurable){var a=n[r],o=e[a];o&&(Array.isArray(o)?t.push({key:a,value:U(o)}
2):o instanceof O?t.push({key:a,value:o.objId+" 0 R"}):"function"!=typeof o&&t.push({key:a,value:o}))}return t}(this)};var I=function(){O.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writeable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writeable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writeable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,writeable:!0,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writeable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};c(I,O);var Q=function(){O.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return 0<t.length?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e)return"("+e+")"},set:function(t){e=t}})};c(Q,O);var H=function e(){O.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(t,3))},set:function(e){!0===Boolean(e)?this.F=y(t,3):this.F=g(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==r.length)return r},set:function(e){r=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:A(r[0])},set:function(e){r[0]=u(e)}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:A(r[1])},set:function(e){r[1]=u(e)}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:A(r[2])},set:function(e){r[2]=u(e)}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:A(r[3])},set:function(e){r[3]=u(e)}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a}
vendor: 7,131 bytes, line 2
2,set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof z)return;s="FieldObject"+e.FieldNum++}return"("+o(s)+")"},set:function(e){s=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(e){s=e}});var l="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var c="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return c},set:function(e){c=e}});var h=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return A(h)},set:function(e){h=u(e)}});var d=50;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return A(d)},set:function(e){d=u(e)}});var p="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return p},set:function(e){p=e}});var f="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!f||this instanceof z||this instanceof V))return L(f)},set:function(e){e=e.toString(),f=e}});var b=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(b)return this instanceof _==0?L(b):b},set:function(e){e=e.toString(),b=this instanceof _==0?"("===e.substr(0,1)?i(e.substr(1,e.length-2)):i(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof _==1?i(b.substr(1,b.length-1)):b},set:function(e){e=e.toString(),b=this instanceof _==1?"/"+e:e}});var v=null;Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(v)return this instanceof _==0?L(v):v},set:function(e){e=e.toString(),v=this instanceof _==0?"("===e.substr(0,1)?i(e.substr(1,e.length-2)):i(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof _==1?i(v.substr(1,v.length-1)):v},set:function(e){e=e.toString(),v=this instanceof _==1?"/"+e:e}}),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 w,B=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,writeable:!0,get:function(){return B},set:function(e){e=Boolean(e),B=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writeable:!0,get:function(){if(w)return w},set:function(e){w=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,1):this.Ff=g(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,2):this.Ff=g(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,3):this.Ff=g(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==C)return C},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');C=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e="left";switch(C){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:C=2;break;case"center":case 1:C=1;break;default:C=0}}})};c(H,O);var R=function(){H.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return U(t)},set:function(e){var n,r;r=[],"string"==typeof(n=e)&&(r=function(e,t,n){n||(n=1);for(var r,a=[];r=t.exec(e);)a.push(r[n]);return a}(n,/\((.*?)\)/g)),t=r}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,18):this.Ff=g(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=y(this.Ff,19):this.Ff=g(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=y(this.Ff,20),t.sort()):this.Ff=g(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,22):this.Ff=g(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,23):this.Ff=g(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,27):this.Ff=g(this.Ff,27)}}),this.hasAppearanceStream=!1};c(R,H);var P=function(){R.call(this),this.fontName="helvetica",this.combo=!1};c(P,R);var D=function(){P.call(this),this.combo=!0};c(D,P);var M=function(){D.call(this),this.edit=!0};c(M,D);var _=function(){H.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,15):this.Ff=g(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,16):this.Ff=g(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,17):this.Ff=g(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,26):this.Ff=g(this.Ff,26)}});var e,t={};
2Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){if(0!==Object.keys(t).length){var e,n=[];for(e in n.push("<<"),t)n.push("/"+e+" ("+t[e]+")");return n.push(">>"),n.join("\n")}},set:function(e){"object"===a(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};c(_,H);var j=function(){_.call(this),this.pushButton=!0};c(j,_);var K=function(){_.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};c(K,_);var z=function(){var e,t;H.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e,t=[];for(e in t.push("<<"),r)t.push("/"+e+" ("+r[e]+")");return t.push(">>"),t.join("\n")},set:function(e){"object"===a(e)&&(r=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(e){"string"==typeof e&&(r.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.optionName=name,this.caption="l",this.appearanceState="Off",this._AppearanceType=q.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(name)};c(z,H),K.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},K.prototype.createOption=function(e){this.Kids.length;var t=new z;return t.Parent=this,t.optionName=e,this.Kids.push(t),Y.call(this,t),t};var W=function(){_.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=q.CheckBox.createAppearanceStream()};c(W,_);var V=function(){H.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,13):this.Ff=g(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,21):this.Ff=g(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,23):this.Ff=g(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,24):this.Ff=g(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,25):this.Ff=g(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,26):this.Ff=g(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};c(V,H);
vendor: 5,909 bytes, line 2
2var G=function(){V.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(m(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=y(this.Ff,14):this.Ff=g(this.Ff,14)}}),this.password=!0};c(G,V);var q={CheckBox:{createAppearanceStream:function(){return{N:{On:q.CheckBox.YesNormal},D:{On:q.CheckBox.YesPushDown,Off:q.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=h(e),r=[],a=n.internal.getFont(e.fontName,e.fontStyle).id,o=n.__private__.encodeColorString(e.color),i=w(e,e.caption);return r.push("0.749023 g"),r.push("0 0 "+s(q.internal.getWidth(e))+" "+s(q.internal.getHeight(e))+" re"),r.push("f"),r.push("BMC"),r.push("q"),r.push("0 0 1 rg"),r.push("/"+a+" "+s(i.fontSize)+" Tf "+o),r.push("BT"),r.push(i.text),r.push("ET"),r.push("Q"),r.push("EMC"),t.stream=r.join("\n"),t},YesNormal:function(e){var t=h(e),r=n.internal.getFont(e.fontName,e.fontStyle).id,a=n.__private__.encodeColorString(e.color),o=[],i=q.internal.getHeight(e),l=q.internal.getWidth(e),c=w(e,e.caption);return o.push("1 g"),o.push("0 0 "+s(l)+" "+s(i)+" re"),o.push("f"),o.push("q"),o.push("0 0 1 rg"),o.push("0 0 "+s(l-1)+" "+s(i-1)+" re"),o.push("W"),o.push("n"),o.push("0 g"),o.push("BT"),o.push("/"+r+" "+s(c.fontSize)+" Tf "+a),o.push(c.text),o.push("ET"),o.push("Q"),t.stream=o.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(q.internal.getWidth(e))+" "+s(q.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:q.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=q.RadioButton.Circle.YesNormal,t.D[e]=q.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=h(e),n=[],r=q.internal.getWidth(e)<=q.internal.getHeight(e)?q.internal.getWidth(e)/4:q.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var a=q.internal.Bezier_C,o=Number((r*a).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+l(q.internal.getWidth(e)/2)+" "+l(q.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+o+" "+o+" "+r+" 0 "+r+" c"),n.push("-"+o+" "+r+" -"+r+" "+o+" -"+r+" 0 c"),n.push("-"+r+" -"+o+" -"+o+" -"+r+" 0 -"+r+" c"),n.push(o+" -"+r+" "+r+" -"+o+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=h(e),n=[],r=q.internal.getWidth(e)<=q.internal.getHeight(e)?q.internal.getWidth(e)/4:q.internal.getHeight(e)/4,a=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((a*q.internal.Bezier_C).toFixed(5)),i=Number((r*q.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(q.internal.getWidth(e)/2)+" "+l(q.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+l(q.internal.getWidth(e)/2)+" "+l(q.internal.getHeight(e)/2)+" cm"),n.push(r+" 0 m"),n.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),n.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),n.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),n.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[],r=q.internal.getWidth(e)<=q.internal.getHeight(e)?q.internal.getWidth(e)/4:q.internal.getHeight(e)/4,a=(r=Number((.9*r).toFixed(5)),Number((2*r).toFixed(5))),o=Number((a*q.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+l(q.internal.getWidth(e)/2)+" "+l(q.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:q.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=q.RadioButton.Cross.YesNormal,t.D[e]=q.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=h(e),n=[],r=q.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+s(q.internal.getWidth(e)-2)+" "+s(q.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(s(r.x1.x)+" "+s(r.x1.y)+" m"),n.push(s(r.x2.x)+" "+s(r.x2.y)+" l"),n.push(s(r.x4.x)+" "+s(r.x4.y)+" m"),n.push(s(r.x3.x)+" "+s(r.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=h(e),n=q.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+s(q.internal.getWidth(e))+" "+s(q.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+s(q.internal.getWidth(e)-2)+" "+s(q.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(s(n.x1.x)+" "+s(n.x1.y)+" m"),r.push(s(n.x2.x)+" "+s(n.x2.y)+" l"),r.push(s(n.x4.x)+" "+s(n.x4.y)+" m"),r.push(s(n.x3.x)+" "+s(n.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join("\n"),t},OffPushDown:function(e){var t=h(e),n=[];return n.push("0.749023 g"),n.push("0 0 "+s(q.internal.getWidth(e))+" "+s(q.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=n.internal.getFont(e.fontName,e.fontStyle).id,r=n.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+r}};q.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=q.internal.getWidth(e),n=q.internal.getHeight(e),r=Math.min(t,n);return{x1:{x:(t-r)/2,y:(n-r)/2+r},x2:{x:(t-r)/2+r,y:(n-r)/2},x3:{x:(t-r)/2,y:(n-r)/2},x4:{x:(t-r)/2+r,y:(n-r)/2+r}}}},q.internal.getWidth=function(e){var t=0;return"object"===a(e)&&(t=u(e.Rect[2])),t},q.internal.getHeight=function(e){var t=0;return"object"===a(e)&&(t=u(e.Rect[3])),t};var Y=e.addField=function(e){if(k.call(this),!(e instanceof H))throw new Error("Invalid argument passed to
2jsPDF.addField.");return function(e){n.internal.acroformPlugin.printedOut&&(n.internal.acroformPlugin.printedOut=!1,n.internal.acroformPlugin.acroFormDictionaryRoot=null),n.internal.acroformPlugin.acroFormDictionaryRoot||k.call(n),n.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(e)}.call(this,e),e.page=n.internal.getCurrentPageInfo().pageNumber,this};e.addButton=function(e){if(e instanceof _==0)throw new Error("Invalid argument passed to jsPDF.addButton.");return Y.call(this,e)},e.addTextField=function(e){if(e instanceof V==0)throw new Error("Invalid argument passed to jsPDF.addTextField.");return Y.call(this,e)},e.addChoiceField=function(e){if(e instanceof R==0)throw new Error("Invalid argument passed to jsPDF.addChoiceField.");return Y.call(this,e)},"object"==a(t)&&void 0===t.ChoiceField&&void 0===t.ListBox&&void 0===t.ComboBox&&void 0===t.EditBox&&void 0===t.Button&&void 0===t.PushButton&&void 0===t.RadioButton&&void 0===t.CheckBox&&void 0===t.TextField&&void 0===t.PasswordField?(t.ChoiceField=R,t.ListBox=P,t.ComboBox=D,t.EditBox=M,t.Button=_,t.PushButton=j,t.RadioButton=K,t.CheckBox=W,t.TextField=V,t.PasswordField=G,t.AcroForm={Appearance:q}):console.warn("AcroForm-Classes are not populated into global-namespace, because the class-Names exist already."),e.AcroFormChoiceField=R,e.AcroFormListBox=P,e.AcroFormComboBox=D,e.AcroFormEditBox=M,e.AcroFormButton=_,e.AcroFormPushButton=j,e.AcroFormRadioButton=K,e.AcroFormCheckBox=W,e.AcroFormTextField=V,e.AcroFormPasswordField=G,e.AcroFormAppearance=q,e.AcroForm={ChoiceField:R,ListBox:P,ComboBox:D,EditBox:M,Button:_,PushButton:j,RadioButton:K,CheckBox:W,TextField:V,PasswordField:G,Appearance:q}})((window.tmp=pe).API,"undefined"!=typeof window&&window||void 0!==r&&r),function(e){var t="addImage_",n={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]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.getImageFileTypeByImageData=function(t,r){var a,o;r=r||"UNKNOWN";var i,s,l,c="UNKNOWN";for(l in e.isArrayBufferView(t)&&(t=e.arrayBufferToBinaryString(t)),n)for(i=n[l],a=0;a<i.length;a+=1){for(s=!0,o=0;o<i[a].length;o+=1)if(void 0!==i[a][o]&&i[a][o]!==t.charCodeAt(o)){s=!1;break}if(!0===s){c=l;break}}return"UNKNOWN"===c&&"UNKNOWN"!==r&&(console.warn('FileType of Image not recognized. Processing image as "'+r+'".'),c=r),c},o=function e(t){for(var n=this.internal.newObject(),r=this.internal.write,a=this.internal.putStream,o=(0,this.internal.getFilters)();-1!==o.indexOf("FlateEncode");)o.splice(o.indexOf("FlateEncode"),1);t.n=n;var i=[];if(i.push({key:"Type",value:"/XObject"}),i.push({key:"Subtype",value:"/Image"}),i.push({key:"Width",value:t.w}),i.push({key:"Height",value:t.h}),t.cs===this.color_spaces.INDEXED?i.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.pal.length/3-1)+" "+("smask"in t?n+2:n+1)+" 0 R]"}):(i.push({key:"ColorSpace",value:"/"+t.cs}),t.cs===this.color_spaces.DEVICE_CMYK&&i.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),i.push({key:"BitsPerComponent",value:t.bpc}),"dp"in t&&i.push({key:"DecodeParms",value:"<<"+t.dp+">>"}),"trns"in t&&t.trns.constructor==Array){for(var s="",l=0,c=t.trns.length;l<c;l++)s+=t.trns[l]+" "+t.trns[l]+" ";i.push({key:"Mask",value:"["+s+"]"})}"smask"in t&&i.push({key:"SMask",value:n+1+" 0 R"});var u=void 0!==t.f?["/"+t.f]:void 0;if(a({data:t.data,additionalKeyValues:i,alreadyAppliedFilters:u}),r("endobj"),"smask"in t){var A="/Predictor "+t.p+" /Colors 1 /BitsPerComponent "+t.bpc+" /Columns "+t.w,h={w:t.w,h:t.h,cs:"DeviceGray",bpc:t.bpc,dp:A,data:t.smask};"f"in t&&(h.f=t.f),e.call(this,h)}t.cs===this.color_spaces.INDEXED&&(this.internal.newObject(),a({data:this.arrayBufferToBinaryString(new Uint8Array(t.pal))}),r("endobj"))},i=function(){var e=this.internal.collections[t+"images"];for(var n in e)o.call(this,e[n])},s=function(){var e,n=this.internal.collections[t+"images"],r=this.internal.write;for(var a in n)r("/I"+(e=n[a]).i,e.n,"0","R")},l=function(t){return"function"==typeof e["process"+t.toUpperCase()]},c=function(e){return"object"===a(e)&&1===e.nodeType},u=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var r=""+t.getAttribute("src");if(0===r.indexOf("data:image/"))return unescape(r);var a=e.loadFile(r);if(void 0!==a)return btoa(a)}if("CANVAS"===t.nodeName){var o=t;return t.toDataURL("image/jpeg",1)}(o=document.createElement("canvas")).width=t.clientWidth||t.width,o.height=t.clientHeight||t.height;var i=o.getContext("2d");if(!i)throw"addImage requires canvas to be supported by browser.";return i.drawImage(t,0,0,o.width,o.height),o.toDataURL("png"==(""+n).toLowerCase()?"image/png":"image/jpeg")},A=function(e,t){var n;if(t)for(var r in t)if(e===t[r].alias){n=t[r];break}return n};e.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"},e.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"},e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},e.sHashCode=function(e){var t,n=0;if(0===(e=e||"").length)return n;for(t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return n},e.isString=function(e){return"string"==typeof e}
2,e.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+\/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9\/][A-Za-z0-9+\/]|[A-Za-z0-9+\/]=|==$/.test(e.substr(-2))&&(t=!1),t},e.extractInfoFromBase64DataURI=function(e){return/^data:([\w]+?\/([\w]+?));\S*;*base64,(.+)$/g.exec(e)},e.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var r=/^data:(\w*\/\w*);*(charset=[\w=-]*)*;*$/.exec(t[0]);Array.isArray(r)&&(n={mimeType:r[1],charset:r[2],data:t[1]})}return n},e.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array},e.isArrayBuffer=function(e){return!!this.supportsArrayBuffer()&&e instanceof ArrayBuffer},e.isArrayBufferView=function(e){return!!this.supportsArrayBuffer()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},e.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),r=0;r<t;r++)n[r]=e.charCodeAt(r);return n},e.arrayBufferToBinaryString=function(e){if("function"==typeof atob)return atob(this.arrayBufferToBase64(e))},e.arrayBufferToBase64=function(e){for(var t,n="",r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=new Uint8Array(e),o=a.byteLength,i=o%3,s=o-i,l=0;l<s;l+=3)n+=r[(16515072&(t=a[l]<<16|a[l+1]<<8|a[l+2]))>>18]+r[(258048&t)>>12]+r[(4032&t)>>6]+r[63&t];return 1==i?n+=r[(252&(t=a[s]))>>2]+r[(3&t)<<4]+"==":2==i&&(n+=r[(64512&(t=a[s]<<8|a[s+1]))>>10]+r[(1008&t)>>4]+r[(15&t)<<2]+"="),n},e.createImageInfo=function(e,t,n,r,a,o,i,s,l,c,u,A,h){var d={alias:s,w:t,h:n,cs:r,bpc:a,i:i,data:e};return o&&(d.f=o),l&&(d.dp=l),c&&(d.trns=c),u&&(d.pal=u),A&&(d.smask=A),h&&(d.p=h),d},e.addImage=function(n,r,o,h,d,p,f,m,y){var g="";if("string"!=typeof r){var b=p;p=d,d=h,h=o,o=r,r=b}if("object"===a(n)&&!c(n)&&"imageData"in n){var v=n;n=v.imageData,r=v.format||r||"UNKNOWN",o=v.x||o||0,h=v.y||h||0,d=v.w||d,p=v.h||p,f=v.alias||f,m=v.compression||m,y=v.rotation||v.angle||y}var w=this.internal.getFilters();if(void 0===m&&-1!==w.indexOf("FlateEncode")&&(m="SLOW"),"string"==typeof n&&(n=unescape(n)),isNaN(o)||isNaN(h))throw console.error("jsPDF.addImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addImage");var B,C,N,E,x,S,T,F=function(){var e=this.internal.collections[t+"images"];return e||(this.internal.collections[t+"images"]=e={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",s)),e}.call(this);if(!((B=A(n,F))||(c(n)&&(n=u(n,r)),(null==(T=f)||0===T.length)&&(f="string"==typeof(S=n)?e.sHashCode(S):e.isArrayBufferView(S)?e.sHashCode(e.arrayBufferToBinaryString(S)):null),B=A(f,F)))){if(this.isString(n)&&(""!==(g=this.convertStringToImageData(n))||void 0!==(g=e.loadFile(n)))&&(n=g),r=this.getImageFileTypeByImageData(n,r),!l(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(n instanceof Uint8Array||(C=n,n=this.binaryStringToUint8Array(n))),!(B=this["process"+r.toUpperCase()](n,(x=0,(E=F)&&(x=Object.keys?Object.keys(E).length:function(e){var t=0;for(var n in e)e.hasOwnProperty(n)&&t++;return t}(E)),x),f,((N=m)&&"string"==typeof N&&(N=N.toUpperCase()),N in e.image_compression?N:e.image_compression.NONE),C)))throw new Error("An unknown error occurred whilst processing the image")}return function(e,t,n,r,a,o,i,s){var l=function(e,t,n){return e||t||(t=e=-96),e<0&&(e=-1*n.w*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.h*72/t/this.internal.scaleFactor),0===e&&(e=t*n.w/n.h),0===t&&(t=e*n.h/n.w),[e,t]}.call(this,n,r,a),c=this.internal.getCoordinateString,u=this.internal.getVerticalCoordinateString;if(n=l[0],r=l[1],i[o]=a,s){s*=Math.PI/180;var A=Math.cos(s),h=Math.sin(s),d=function(e){return e.toFixed(4)},p=[d(A),d(h),d(-1*h),d(A),0,0,"cm"]}this.internal.write("q"),s?(this.internal.write([1,"0","0",1,c(e),u(t+r),"cm"].join(" ")),this.internal.write(p.join(" ")),this.internal.write([c(n),"0","0",c(r),"0","0","cm"].join(" "))):this.internal.write([c(n),"0","0",c(r),c(e),u(t+r),"cm"].join(" ")),this.internal.write("/I"+a.i+" Do"),this.internal.write("Q")}
2.call(this,o,h,d,p,B,B.i,F,y),this},e.convertStringToImageData=function(t){var n,r="";if(this.isString(t)){var a;n=null!==(a=this.extractImageFromDataUrl(t))?a.data:t;try{r=atob(n)}catch(t){throw e.validateStringAsBase64(n)?new Error("atob-Error in jsPDF.convertStringToImageData "+t.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertStringToImageData ")}}return r};var h=function(e,t){return e.subarray(t,t+5)};e.processJPEG=function(e,t,n,a,o,i){var s,l=this.decode.DCT_DECODE;if(!this.isString(e)&&!this.isArrayBuffer(e)&&!this.isArrayBufferView(e))return null;if(this.isString(e)&&(s=function(e){var t;if("JPEG"!==r(e))throw new Error("getJpegSize requires a binary string jpeg file");for(var n=256*e.charCodeAt(4)+e.charCodeAt(5),a=4,o=e.length;a<o;){if(a+=n,255!==e.charCodeAt(a))throw new Error("getJpegSize could not find the size of the image");if(192===e.charCodeAt(a+1)||193===e.charCodeAt(a+1)||194===e.charCodeAt(a+1)||195===e.charCodeAt(a+1)||196===e.charCodeAt(a+1)||197===e.charCodeAt(a+1)||198===e.charCodeAt(a+1)||199===e.charCodeAt(a+1))return t=256*e.charCodeAt(a+5)+e.charCodeAt(a+6),[256*e.charCodeAt(a+7)+e.charCodeAt(a+8),t,e.charCodeAt(a+9)];a+=2,n=256*e.charCodeAt(a)+e.charCodeAt(a+1)}}(e)),this.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.isArrayBufferView(e)&&(s=function(e){if(65496!=(e[0]<<8|e[1]))throw new Error("Supplied data is not a JPEG");for(var t,n=e.length,r=(e[4]<<8)+e[5],a=4;a<n;
2){if(r=((t=h(e,a+=r))[2]<<8)+t[3],(192===t[1]||194===t[1])&&255===t[0]&&7<r)return{width:((t=h(e,a+5))[2]<<8)+t[3],height:(t[0]<<8)+t[1],numcomponents:t[4]};a+=2}throw new Error("getJpegSizeFromBytes could not find the size of the image")}(e),e=o||this.arrayBufferToBinaryString(e)),void 0===i)switch(s.numcomponents){case 1:i=this.color_spaces.DEVICE_GRAY;break;case 4:i=this.color_spaces.DEVICE_CMYK;break;default:i=this.color_spaces.DEVICE_RGB}return this.createImageInfo(e,s.width,s.height,i,8,l,t,n)},e.processJPG=function(){return this.processJPEG.apply(this,arguments)},e.getImageProperties=function(t){var n,r,a="";if(c(t)&&(t=u(t)),this.isString(t)&&(""!==(a=this.convertStringToImageData(t))||void 0!==(a=e.loadFile(t)))&&(t=a),r=this.getImageFileTypeByImageData(t),!l(r))throw new Error("addImage does not support files of type '"+r+"', please ensure that a plugin for '"+r+"' support is added.");if(this.supportsArrayBuffer()&&(t instanceof Uint8Array||(t=this.binaryStringToUint8Array(t))),!(n=this["process"+r.toUpperCase()](t)))throw new Error("An unknown error occurred whilst processing the image");return{fileType:r,width:n.w,height:n.h,colorSpace:n.cs,compressionMode:n.f,bitsPerComponent:n.bpc}}}(pe.API),i=pe.API,pe.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),i.events.push(["putPage",function(e){for(var t=this.internal.getPageInfoByObjId(e.objId),n=e.pageContext.annotations,r=function(e){if(void 0!==e&&""!=e)return!0},a=!1,o=0;o<n.length&&!a;o++)switch((l=n[o]).type){case"link":if(r(l.options.url)||r(l.options.pageNumber)){a=!0;break}case"reference":case"text":case"freetext":a=!0}if(0!=a){this.internal.write("/Annots ["),this.internal.pageSize.height;
2var i=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;for(o=0;o<n.length;o++){var l;switch((l=n[o]).type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var c=this.internal.newAdditionalObject(),u=this.internal.newAdditionalObject(),A=l.title||"Note";m="<</Type /Annot /Subtype /Text "+(d="/Rect ["+i(l.bounds.x)+" "+s(l.bounds.y+l.bounds.h)+" "+i(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y)+"] ")+"/Contents ("+l.contents+")",m+=" /Popup "+u.objId+" 0 R",m+=" /P "+t.objId+" 0 R",m+=" /T ("+A+") >>",c.content=m;var h=c.objId+" 0 R";m="<</Type /Annot /Subtype /Popup "+(d="/Rect ["+i(l.bounds.x+30)+" "+s(l.bounds.y+l.bounds.h)+" "+i(l.bounds.x+l.bounds.w+30)+" "+s(l.bounds.y)+"] ")+" /Parent "+h,l.open&&(m+=" /Open true"),m+=" >>",u.content=m,this.internal.write(c.objId,"0 R",u.objId,"0 R");break;case"freetext":var d="/Rect ["+i(l.bounds.x)+" "+s(l.bounds.y)+" "+i(l.bounds.x+l.bounds.w)+" "+s(l.bounds.y+l.bounds.h)+"] ",p=l.color||"#000000";m="<</Type /Annot /Subtype /FreeText "+d+"/Contents ("+l.contents+")",m+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+p+")",m+=" /Border [0 0 0]",m+=" >>",this.internal.write(m);break;case"link":if(l.options.name){var f=this.annotations._nameMap[l.options.name];l.options.pageNumber=f.page,l.options.top=f.y}else l.options.top||(l.options.top=0);d="/Rect ["+i(l.x)+" "+s(l.y)+" "+i(l.x+l.w)+" "+s(l.y+l.h)+"] ";var m="";if(l.options.url)m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /A <</S /URI /URI ("+l.options.url+") >>";else if(l.options.pageNumber)switch(m="<</Type /Annot /Subtype /Link "+d+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":m+=" /Fit]";break;case"FitH":m+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,m+=" /FitV "+l.options.left+"]";break;default:var y=s(l.options.top);l.options.left=l.options.left||0,void 0===l.options.zoom&&(l.options.zoom=0),m+=" /XYZ "+l.options.left+" "+y+" "+l.options.zoom+"]"}""!=m&&(m+=" >>",this.internal.write(m))}}this.internal.write("]")}}]),i.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},i.link=function(e,t,n,r,a){this.internal.getCurrentPageInfo().pageContext.annotations.push({x:e,y:t,w:n,h:r,options:a,type:"link"})},i.textWithLink=function(e,t,n,r){var a=this.getTextWidth(e),o=this.internal.getLineHeight()/this.internal.scaleFactor;return this.text(e,t,n),n+=.2*o,this.link(t,n-o,a,o,r),a},i.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor},function(e){var t={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,6437
27],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]},n={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}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},a=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},i=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return i(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return i(e)&&0<=a.indexOf(e.charCodeAt(0))},c=(e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return i(e)&&o(e)&&1<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasFinalForm=function(e){return i(e)&&o(e)&&2<=t[e.charCodeAt(0)].length}),u=(e.__arabicParser__.arabicLetterHasInitialForm=function(e){return i(e)&&o(e)&&3<=t[e.charCodeAt(0)].length},e.__arabicParser__.arabicLetterHasMedialForm=function(e){return i(e)&&o(e)&&4==t[e.charCodeAt(0)].length}),A=e.__arabicParser__.resolveLigatures=function(e){var t=0,r=n,a=0,o="",i=0;for(t=0;t<e.length;t+=1)void 0!==r[e.charCodeAt(t)]?(i++,"number"==typeof(r=r[e.charCodeAt(t)])&&(a=-1!==(a=h(e.charAt(t),e.charAt(t-i),e.charAt(t+1)))?a:0,o+=String.fromCharCode(r),r=n,i=0),t===e.length-1&&(r=n,o+=e.charAt(t-(i-1)),t-=i-1,i=0)):(r=n,o+=e.charAt(t-i),t-=i,i=0);return o},h=(e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==r[e.charCodeAt(0)]},e.__arabicParser__.getCorrectForm=function(e,t,n){return i(e)?!1===o(e)?-1:!c(e)||!i(t)&&!i(n)||!i(n)&&s(t)||s(e)&&!i(t)||s(e)&&l(t)||s(e)&&s(t)?0:u(e)&&i(t)&&!s(t)&&i(n)&&c(n)?3:s(e)||!i(n)?1:2:-1}),d=e.__arabicParser__.processArabic=e.processArabic=function(e){var n=0,r=0,a=0,o="",s="",l="",c=(e=e||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),r=0;r<c[n].length;r+=1)o=c[n][r],s=c[n][r-1],l=c[n][r+1],i(o)?(a=h(o,s,l),u[n]+=-1!==a?String.fromCharCode(t[o.charCodeAt(0)][a]):o):u[n]+=o;u[n]=A(u[n])}return u.join(" ")};e.events.push(["preProcessText",function(e){var t=e.text,n=(e.x,e.y,e.options||{}),r=(e.mutex,n.lang,[]);if("[object Array]"===Object.prototype.toString.call(t)){var a=0;for(r=[],a=0;a<t.length;a+=1)"[object Array]"===Object.prototype.toString.call(t[a])?r.push([d(t[a][0]),t[a][1],t[a][2]]):r.push([d(t[a])]);e.text=r}else e.text=d(t)}])}(pe.API),pe.API.autoPrint=function(e){var t;if("javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")});return this},s=pe.API,(l=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var r=[];Object.defineProperty(this,"childNodes",{get:function(){return r},set:function(e){r=e}});var a={};Object.defineProperty(this,"style",{get:function(){return a}
2,set:function(e){a=e}}),Object.defineProperty(this,"parentNode",{get:function(){return!1}})}).prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return(this.pdf.context2d._canvas=this).pdf.context2d},l.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},s.events.push(["initialized",function(){this.canvas=new l,this.canvas.pdf=this}]),c=pe.API,A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1,d=function(e,t,n,r,a){A={x:e,y:t,w:n,h:r,ln:a}},p=function(){return A},f={left:0,top:0,bottom:0},c.setHeaderFunction=function(e){u=e},c.getTextDimensions=function(e,t){var n=this.table_font_size||this.internal.getFontSize(),r=(this.internal.getFont().fontStyle,(t=t||{}).scaleFactor||this.internal.scaleFactor),a=0,o=0,i=0;if("string"==typeof e)0!=(a=this.getStringUnitWidth(e)*n)&&(o=1);else{if("[object Array]"!==Object.prototype.toString.call(e))throw new Error("getTextDimensions expects text-parameter to be of type String or an Array of Strings.");for(var s=0;s<e.length;s++)a<(i=this.getStringUnitWidth(e[s])*n)&&(a=i);0!==a&&(o=e.length)}return{w:a/=r,h:Math.max((o*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/r,0)}},c.cellAddPage=function(){var e=this.margins||f;this.addPage(),d(e.left,e.top,void 0,void 0),h+=1},c.cellInitialize=function(){A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1},c.cell=function(e,t,n,r,a,o,i){var s=p(),l=!1;if(void 0!==s.ln)if(s.ln===o)e=s.x+s.w,t=s.y;else{var c=this.margins||f;s.y+s.h+r+13>=this.internal.pageSize.getHeight()-c.bottom&&(this.cellAddPage(),l=!0,this.printHeaders&&this.tableHeaderRow&&this.printHeaderRow(o,!0)),t=p().y+p().h,l&&(t=23)}if(void 0!==a[0])if(this.printingHeaderRow?this.rect(e,t,n,r,"FD"):this.rect(e,t,n,r),"right"===i){a instanceof Array||(a=[a]);for(var u=0;u<a.length;u++){var A=a[u],h=this.getStringUnitWidth(A)*this.internal.getFontSize()/this.internal.scaleFactor;this.text(A,e+n-h-3,t+this.internal.getLineHeight()*(u+1))}}else this.text(a,e+3,t+this.internal.getLineHeight());return d(e,t,n,r,o),this},c.arrayMax=function(e,t){var n,r,a,o=e[0];for(n=0,r=e.length;n<r;n+=1)a=e[n],t?-1===t(o,a)&&(o=a):o<a&&(o=a);return o},c.table=function(e,t,n,r,a){if(!n)throw"No data for PDF table";var o,i,s,l,u,d,p,m,y,g,b=[],v=[],w={},B={},C=[],N=[],E=!1,x=!0,S=12,T=f;if(T.width=this.internal.pageSize.getWidth(),a&&(!0===a.autoSize&&(E=!0),!1===a.printHeaders&&(x=!1),a.fontSize&&(S=a.fontSize),a.css&&void 0!==a.css["font-size"]&&(S=16*a.css["font-size"]),a.margins&&(T=a.margins)),this.lnMod=0,A={x:void 0,y:void 0,w:void 0,h:void 0,ln:void 0},h=1,this.printHeaders=x,this.margins=T,this.setFontSize(S),this.table_font_size=S,null==r)b=Object.keys(n[0]);else if(r[0]&&"string"!=typeof r[0])for(i=0,s=r.length;i<s;i+=1)o=r[i],b.push(o.name),v.push(o.prompt),B[o.name]=o.width*(19.049976/25.4);else b=r;if(E)for(g=function(e){return e[o]},i=0,s=b.length;i<s;i+=1){for(w[o=b[i]]=n.map(g),C.push(this.getTextDimensions(v[i]||o,{scaleFactor:1}).w),p=0,l=(d=w[o]).length;p<l;p+=1)u=d[p],C.push(this.getTextDimensions(u,{scaleFactor:1}).w);B[o]=c.arrayMax(C),C=[]}if(x){var F=this.calculateLineHeight(b,B,v.length?v:b);for(i=0,s=b.length;i<s;i+=1)o=b[i],N.push([e,t,B[o],F,String(v.length?v[i]:o)]);this.setTableHeaderRow(N),this.printHeaderRow(1,!1)}for(i=0,s=n.length;i<s;i+=1)for(m=n[i],F=this.calculateLineHeight(b,B,m),p=0,y=b.length;p<y;p+=1)o=b[p],this.cell(e,t,B[o],F,m[o],i+2,o.align);return this.lastCellPos=A,this.table_x=e,this.table_y=t,this},c.calculateLineHeight=function(e,t,n){for(var r,a=0,o=0;o<e.length;o++){n[r=e[o]]=this.splitTextToSize(String(n[r]),t[r]-3);var i=this.internal.getLineHeight()*n[r].length+3;a<i&&(a=i)}return a},c.setTableHeaderRow=function(e){this.tableHeaderRow=e},c.printHeaderRow=function(e,t){if(!this.tableHeaderRow)throw"Property tableHeaderRow does not exist.";var n,r,a,o;if(this.printingHeaderRow=!0,void 0!==u){var i=u(this,h);d(i[0],i[1],i[2],i[3],-1)}this.setFontStyle("bold");var s=[];for(a=0,o=this.tableHeaderRow.length;a<o;a+=1)this.setFillColor(200,200,200),n=this.tableHeaderRow[a],t&&(this.margins.top=13,n[1]=this.margins&&this.margins.top||0,s.push(n)),r=[].
2concat(n),this.cell.apply(this,r.concat(e));0<s.length&&this.setTableHeaderRow(s),this.setFontStyle("normal"),this.printingHeaderRow=!1},function(e){var t,n,r,o,i,s=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new I,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new L,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new L,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new l(this),t=this.internal.f2,this.internal.f3,n=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,o=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate}]);var l=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}}),Object.defineProperty(this,"pdf",{get:function(){return e}});var t=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return t},set:function(e){t=Boolean(e)}});var n=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var r=0;Object.defineProperty(this,"posX",{get:function(){return r},set:function(e){isNaN(e)||(r=e)}});var a=0;Object.defineProperty(this,"posY",{get:function(){return a}
2,set:function(e){isNaN(e)||(a=e)}});var o=!1;Object.defineProperty(this,"autoPaging",{get:function(){return o},set:function(e){o=Boolean(e)}});var i=0;Object.defineProperty(this,"lastBreak",{get:function(){return i},set:function(e){i=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}});var u=new s;Object.defineProperty(this,"ctx",{get:function(){return u},set:function(e){e instanceof s&&(u=e)}}),Object.defineProperty(this,"path",{get:function(){return u.path},set:function(e){u.path=e}});var A=[];Object.defineProperty(this,"ctxStack",{get:function(){return A},set:function(e){A=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=c(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=c(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\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(e))){var n=t[1],r=(t[2],t[3]),a=t[4],o=t[5],i=t[6];a="px"===o?Math.floor(parseFloat(a)):"em"===o?Math.floor(parseFloat(a)*this.pdf.getFontSize()):Math.floor(parseFloat(a)),this.pdf.setFontSize(a);var s="";("bold"===r||700<=parseInt(r,10)||"bold"===n)&&(s="bold"),"italic"===n&&(s+="italic"),0===s.length&&(s="normal");for(var l="",c=i.toLowerCase().replace(/"|'/g,"").split(/\s*,\s*/),u={arial:"Helvetica",verdana:"Helvetica",helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",courier:"Courier",times:"Times",cursive:"Times",fantasy:"Times",serif:"Times"},A=0;A<c.length;A++){if(void 0!==this.pdf.internal.getFont(c[A],s,{noFallback:!0,disableWarning:!0})){l=c[A];break}if("bolditalic"===s&&void 0!==this.pdf.internal.getFont(c[A],"bold",{noFallback:!0,disableWarning:!0}))l=c[A],s="bold";else if(void 0!==this.pdf.internal.getFont(c[A],"normal",{noFallback:!0,disableWarning:!0})){l=c[A],s="normal";break}}if(""===l)for(A=0;A<c.length;A++)if(u[c[A]]){l=u[c[A]];break}l=""===l?"Times":l,this.pdf.setFont(l,s)}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};l.prototype.fill=function(){f.call(this,"fill",!1)},l.prototype.stroke=function(){f.call(this,"stroke",!1)},l.prototype.beginPath=function(){this.path=[{type:"begin"}]},l.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to
2jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new L(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new L(e,t)},l.prototype.closePath=function(){var e=new L(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===a(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new L(this.path[t+1].x,this.path[t+1].y),this.path.push({type:"lt",x:e.x,y:e.y});break}"object"===a(this.path[t+2])&&"number"==typeof this.path[t+2].x&&this.path.push(JSON.parse(JSON.stringify(this.path[t+2]))),this.path.push({type:"close"}),this.ctx.lastPoint=new L(e.x,e.y)},l.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new L(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new L(n.x,n.y)},l.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),f.call(this,null,!0)},l.prototype.quadraticCurveTo=function(e,t,n,r){if(isNaN(n)||isNaN(r)||isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var a=this.ctx.transform.applyToPoint(new L(n,r)),o=this.ctx.transform.applyToPoint(new L(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:a.x,y:a.y}),this.ctx.lastPoint=new L(a.x,a.y)},l.prototype.bezierCurveTo=function(e,t,n,r,a,o){if(isNaN(a)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var i=this.ctx.transform.applyToPoint(new L(a,o)),s=this.ctx.transform.applyToPoint(new L(e,t)),l=this.ctx.transform.applyToPoint(new L(n,r));this.path.push({type:"bct",x1:s.x,y1:s.y,x2:l.x,y2:l.y,x:i.x,y:i.y}),this.ctx.lastPoint=new L(i.x,i.y)},l.prototype.arc=function(e,t,n,r,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a))throw console.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var i=this.ctx.transform.applyToPoint(new L(e,t));e=i.x,t=i.y;var s=this.ctx.transform.applyToPoint(new L(0,n)),l=this.ctx.transform.applyToPoint(new L(0,0));n=Math.sqrt(Math.pow(s.x-l.x,2)+Math.pow(s.y-l.y,2))}Math.abs(a-r)>=2*Math.PI&&(r=0,a=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:r,endAngle:a,counterclockwise:o})},l.prototype.arcTo=function(e,t,n,r,a){throw new Error("arcTo not implemented.")},l.prototype.rect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+r),this.lineTo(e,t+r),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},l.prototype.fillRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!u.call(this)){var a={};"butt"!==this.lineCap&&(a.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(a.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,r),this.fill(),a.hasOwnProperty("lineCap")&&(this.lineCap=a.lineCap),a.hasOwnProperty("lineJoin")&&(this.lineJoin=a.lineJoin)}},l.prototype.strokeRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");A.call(this)||(this.beginPath(),this.rect(e,t,n,r),this.stroke())},l.prototype.clearRect=function(e,t,n,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r))throw console.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,r))},l.prototype.save=function(e){e="boolean"!=typeof e||e;
vendor: 4,281 bytes, line 2
2for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var r=new s(this.ctx);this.ctxStack.push(this.ctx),this.ctx=r}},l.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(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)},l.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var c=function(e){var t,n,r,a;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))a=r=n=t=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),a=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d\.]+)\s*\)/.exec(e)))t=parseInt(o[1]),n=parseInt(o[2]),r=parseInt(o[3]),a=parseFloat(o[4]);else{if(a=1,"string"==typeof e&&"#"!==e.charAt(0)){var i=new RGBColor(e);e=i.ok?i.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,r=e.substring(3,4),r+=r):(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),r=parseInt(r,16)}}return{r:t,g:n,b:r,a:a,style:e}},u=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},A=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};l.prototype.fillText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw console.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(r=isNaN(r)?void 0:r,!u.call(this)){n=y.call(this,n);var a=T(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:o,angle:a,align:this.textAlign,maxWidth:r})}},l.prototype.strokeText=function(e,t,n,r){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw console.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!A.call(this)){r=isNaN(r)?void 0:r,n=y.call(this,n);var a=T(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;B.call(this,{text:e,x:t,y:n,scale:o,renderingMode:"stroke",angle:a,align:this.textAlign,maxWidth:r})}},l.prototype.measureText=function(e){if("string"!=typeof e)throw console.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,r=t.internal.getFontSize(),a=t.getStringUnitWidth(e)*r/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:a*=Math.round(96*n/72*1e4)/1e4})},l.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new I(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.rotate=function(e){if(isNaN(e))throw console.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new I(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},l.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw console.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new I(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},l.prototype.transform=function(e,t,n,r,a,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(r)||isNaN(a)||isNaN(o))throw console.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to
2jsPDF.context2d.transform");var i=new I(e,t,n,r,a,o);this.ctx.transform=this.ctx.transform.multiply(i)},l.prototype.setTransform=function(e,t,n,r,a,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,r=isNaN(r)?1:r,a=isNaN(a)?0:a,o=isNaN(o)?0:o,this.ctx.transform=new I(e,t,n,r,a,o)},l.prototype.drawImage=function(e,t,n,r,a,o,i,s,l){var c=this.pdf.getImageProperties(e),u=1,A=1,d=1,f=1;void 0!==r&&void 0!==s&&(d=s/r,f=l/a,u=c.width/r*s/r,A=c.height/a*l/a),void 0===o&&(o=t,i=n,n=t=0),void 0!==r&&void 0===s&&(s=r,l=a),void 0===r&&void 0===s&&(s=c.width,l=c.height);var y=this.ctx.transform.decompose(),g=T(y.rotate.shx);y.scale.sx,y.scale.sy;for(var b,v=new I,w=((v=(v=(v=v.multiply(y.translate)).multiply(y.skew)).multiply(y.scale)).applyToPoint(new L(s,l)),v.applyToRectangle(new O(o-t*d,i-n*f,r*u,a*A))),B=h.call(this,w),C=[],N=0;N<B.length;N+=1)-1===C.indexOf(B[N])&&C.push(B[N]);if(C.sort(),this.autoPaging)for(var E=C[0],x=C[C.length-1],S=E;S<x+1;S++){if(this.pdf.setPage(S),0!==this.ctx.clip_path.length){var F=this.path;b=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=p(b,this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY),m.call(this,"fill",!0),this.path=F}var k=JSON.parse(JSON.stringify(w));k=p([k],this.posX,-1*this.pdf.internal.pageSize.height*(S-1)+this.posY)[0],this.pdf.addImage(e,"jpg",k.x,k.y,k.w,k.h,null,null,g)}else this.pdf.addImage(e,"jpg",w.x,w.y,w.w,w.h,null,null,g)};var h=function(e,t,n){var r=[];switch(t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height,e.type){default:case"mt":case"lt":r.push(Math.floor((e.y+this.posY)/n)+1);break;case"arc":r.push(Math.floor((e.y+this.posY-e.radius)/n)+1),r.push(Math.floor((e.y+this.posY+e.radius)/n)+1);break;case"qct":var a=k(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);r.push(Math.floor(a.y/n)+1),r.push(Math.floor((a.y+a.h)/n)+1);break;case"bct":var o=U(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);r.push(Math.floor(o.y/n)+1),r.push(Math.floor((o.y+o.h)/n)+1);break;case"rect":r.push(Math.floor((e.y+this.posY)/n)+1),r.push(Math.floor((e.y+e.h+this.posY)/n)+1)}for(var i=0;i<r.length;i+=1)for(;this.pdf.internal.getNumberOfPages()<r[i];)d.call(this);return r},d=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,r=this.lineCap,a=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=r,this.lineWidth=a,this.lineJoin=o},p=function(e,t,n){for(var r=0;r<e.length;r++)switch(e[r].type){case"bct":e[r].x2+=t,e[r].y2+=n;case"qct":e[r].x1+=t,e[r].y1+=n;default:e[r].x+=t,e[r].y+=n}return e},f=function(e,t){for(var n,r,a=this.fillStyle,o=this.strokeStyle,i=(this.font,this.lineCap),s=this.lineWidth,l=this.lineJoin,c=JSON.parse(JSON.stringify(this.path)),u=JSON.parse(JSON.stringify(this.path)),A=[],f=0;f<u.length;f++)if(void 0!==u[f].x)for(var y=h.call(this,u[f]),g=0;g<y.length;g+=1)-1===A.indexOf(y[g])&&A.push(y[g]);for(f=0;f<A.length;f++)for(;this.pdf.internal.getNumberOfPages()<A[f];)d.call(this);if(A.sort(),this.autoPaging){var b=A[0],v=A[A.length-1];for(f=b;f<v+1;f++){if(this.pdf.setPage(f),this.fillStyle=a,this.strokeStyle=o,this.lineCap=i,this.lineWidth=s,this.lineJoin=l,0!==this.ctx.clip_path.length){var w=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=p(n,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),m.call(this,e,!0),this.path=w}r=JSON.parse(JSON.stringify(c)),this.path=p(r,this.posX,-1*this.pdf.internal.pageSize.height*(f-1)+this.posY),!1!==t&&0!==f||m.call(this,e,t)}}else m.call(this,e,t);this.path=c},m=function(e,t){if(("stroke"!==e||t||!A.call(this))&&("stroke"===e||t||!u.call(this))){var n=[];this.ctx.globalAlpha,this.ctx.fillOpacity<1&&this.ctx.fillOpacity;for(var r,a=this.path,o=0;o<a.length;o++){var i=a[o];switch(i.type){case"begin":n.push({begin:!0});break;case"close":n.push({close:!0});break;case"mt":n.push({start:i,deltas:[],abs:[]});break;case"lt":var s=n.length;if(!isNaN(a[o-1].x)){var l=[i.x-a[o-1].x,i.y-a[o-1].y];if(0<s)for(;0<=s;s--)if(!0!==n[s-1].close&&!0!==n[s-1].begin){n[s-1].deltas.push(l),n[s-1].abs.push(i);break}}break;case"bct":l=[i.x1-a[o-1].x,i.y1-a[o-1].y,i.x2-a[o-1].x,i.y2-a[o-1].y,i.x-a[o-1].x,i.y-a[o-1].y],n[n.length-1].deltas.push(l);break;case"qct":var c=a[o-1].x+2/3*(i.x1-a[o-1].x),h=a[o-1].y+2/3*(i.y1-a[o-1].y),d=i.x+2/3*(i.x1-i.x),p=i.y+2/3*(i.y1-i.y),f=i.x,m=i.y;l=[c-a[o-1].x,h-a[o-1].y,d-a[o-1].x,p-a[o-1].y,f-a[o-1].x,m-a[o-1].y],n[n.length-1].deltas.push(l);break;case"arc":n.push({deltas:[],abs:[],arc:!0}),Array.isArray(n[n.length-1].abs)&&n[n.length-1].abs.push(i)}}for(r=t?null:"stroke"===e?"stroke":"fill",o=0;o<n.length;o++){if(n[o].arc)for(var y=n[o].abs,w=0;w<y.length;w++){var B=y[w];if(void 0!==B.startAngle){var E=T(B.startAngle),x=T(B.endAngle),S=B.x,F=B.y;g.call(this,S,F,B.radius,E,x,B.counterclockwise,r,t)}else C.call(this,B.x,B.y)}n[o].arc||!0===n[o].close||!0===n[o].begin||(S=n[o].start.x,F=n[o].start.y,N.call(this,n[o].deltas,S,F,null,null))}r&&b.call(this,r),t&&v.call(this)}},y=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}};l.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},l.prototype.createPattern=function(){return this.createLinearGradient()},l.prototype.createRadialGradient=function(){return this.createLinearGradient()};var g=function(e,t,n,r,a,o,i,s){this.pdf.internal.scaleFactor;for(var l=F(r),c=F(a),u=x.call(this,n,l,c,o),A=0;A<u.length;A++){var h=u[A];0===A&&w.call(this,h.x1+e,h.y1+t),E.call(this,e,t,h.x2,h.y2,h.x3,h.y3,h.x4,h.y4)}s?v.call(this):b.call(this,i)},b=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},v=function(){this.pdf.clip()},w=function(e,t){this.pdf.internal.out(n(e)+" "+r(t)+" m")},B=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.ctx.transform.applyToPoint(new L(e.x,e.y)),r=this.ctx.transform.decompose(),a=new I;a=(a=(a=a.multiply(r.translate)).multiply(r.skew)).multiply(r.scale);for(var o,i=this.pdf.getTextDimensions(e.text),s=this.ctx.transform.applyToRectangle(new O(e.x,e.y,i.w,i.h)),l=a.applyToRectangle(new O(e.x,e.y-i.h,i.w,i.h)),c=h.call(this,l),u=[],A=0;A<c.length;A+=1)-1===u.indexOf(c[A])&&u.push(c[A]);if(u.sort(),!0===this.autoPaging)for(var d=u[0],f=u[u.length-1],y=d;y<f+1;y++){if(this.pdf.setPage(y),0!==this.ctx.clip_path.length){var g=this.path;o=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=p(o,this.posX,-1*this.pdf.internal.pageSize.height*(y-1)+this.posY),m.call(this,"fill",!0),this.path=g}var b=JSON.parse(JSON.stringify(s));if(b=p([b],this.posX,-1*this.pdf.internal.pageSize.height*(y-1)+this.posY)[0],.01<=e.scale){var v=this.pdf.internal.getFontSize();this.pdf.setFontSize(v*e.scale)}this.pdf.text(e.text,b.x,b.y,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),.01<=e.scale&&this.pdf.setFontSize(v)}else.01<=e.scale&&(v=this.pdf.internal.getFontSize(),this.pdf.setFontSize(v*e.scale)),this.pdf.text(e.text,n.x+this.posX,n.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),.01<=e.scale&&this.pdf.setFontSize(v)},C=function(e,t,a,o){a=a||0,o=o||0,this.pdf.internal.out(n(e+a)+" "+r(t+o)+" l")},N=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},E=function(e,n,r,a,s,l,c,u){this.pdf.internal.out([t(o(r+e)),t(i(a+n)),t(o(s+e)),t(i(l+n)),t(o(c+e)),t(i(u+n)),"c"].join(" "))},x=function(e,t,n,r){var a=2*Math.PI,o=t;(o<a||a<o)&&(o%=a);var i=n;(i<a||a<i)&&(i%=a);for(var s=[],l=Math.PI/2,c=r?-1:1,u=t,A=Math.min(a,Math.abs(i-o));1e-5<A;){var h=u+c*Math.min(A,l);s.push(S.call(this,e,u,h)),A-=Math.abs(h-u),u=h}return s},S=function(e,t,n){var r=(n-t)/2,a=e*Math.cos(r),o=e*Math.sin(r),i=a,s=-o,l=i*i+s*s,c=l+i*a+s*o,u=4/3*(Math.sqrt(2*l*c)-c)/(i*o-s*a),A=i-u*s,h=s+u*i,d=A,p=-h,f=r+t,m=Math.cos(f),y=Math.sin(f);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:A*m-h*y,y2:A*y+h*m,x3:d*m-p*y,y3:d*y+p*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},T=function(e){return 180*e/Math.PI},F=function(e){return e*Math.PI/180},k=function(e,t,n,r,a,o){var i=e+.5*(n-e),s=t+.5*(r-t),l=a+.5*(n-a),c=o+.5*(r-o),u=Math.min(e,a,i,l),A=Math.max(e,a,i,l),h=Math.min(t,o,s,c),d=Math.max(t,o,s,c);return new O(u,h,A-u,d-h)},U=function(e,t,n,r,a,o,i,s){for(var l,c,u,A,h,d,p,f,m,y,g,b,v,w=n-e,B=r-t,C=a-n,N=o-r,E=i-a,x=s-o,S=0;S<41;S++)f=(d=(c=e+(l=S/40)*w)+l*((A=n+l*C)-c))+l*(A+l*(a+l*E-A)-d),m=(p=(u=t+l*B)+l*((h=r+l*N)-u))+l*(h+l*(o+l*x-h)-p),v=0==S?(b=y=f,g=m):(y=Math.min(y,f),g=Math.min(g,m),b=Math.max(b,f),Math.max(v,m));return new O(Math.round(y),Math.round(g),Math.round(b-y),Math.round(v-g))},L=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var r=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return r},set:function(e){isNaN(e)||(r=parseFloat(e))}});var a="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return a}
2,set:function(e){a=e.toString()}}),this},O=function(e,t,n,r){L.call(this,e,t),this.type="rect";var a=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var o=r||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},I=function(e,t,n,r,a,o){var i=[];return Object.defineProperty(this,"sx",{get:function(){return i[0]},set:function(e){i[0]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"shy",{get:function(){return i[1]},set:function(e){i[1]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"shx",{get:function(){return i[2]},set:function(e){i[2]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"sy",{get:function(){return i[3]},set:function(e){i[3]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"tx",{get:function(){return i[4]},set:function(e){i[4]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"ty",{get:function(){return i[5]},set:function(e){i[5]=Math.round(1e5*e)/1e5}}),Object.defineProperty(this,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(this,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(this,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(this,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),this.sx=isNaN(e)?1:e,this.shy=isNaN(t)?0:t,this.shx=isNaN(n)?0:n,this.sy=isNaN(r)?1:r,this.tx=isNaN(a)?0:a,this.ty=isNaN(o)?0:o,this};I.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,r=e.shx*this.sx+e.sy*this.shx,a=e.shx*this.shy+e.sy*this.sy,o=e.tx*this.sx+e.ty*this.shx+this.tx,i=e.tx*this.shy+e.ty*this.sy+this.ty;return new I(t,n,r,a,o,i)},I.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,a=this.tx,o=this.ty,i=Math.sqrt(e*e+t*t),s=(e/=i)*n+(t/=i)*r;n-=e*s,r-=t*s;var l=Math.sqrt(n*n+r*r);return s/=l,e*(r/=l)<t*(n/=l)&&(e=-e,t=-t,s=-s,i=-i),{scale:new I(i,0,0,l,0,0),translate:new I(1,0,0,1,a,o),rotate:new I(e,t,-t,e,0,0),skew:new I(1,0,s,1,0,0)}},I.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new L(t,n)},I.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new L(e.x+e.w,e.y+e.h));return new O(t.x,t.y,n.x-t.x,n.y-t.y)},I.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,r=this.sy,a=this.tx,o=this.ty;return new I(e,t,n,r,a,o)}}(pe.API,"undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),m=pe.API,y=function(e){var t,n,r,a,o,i,s,l,c,u;for(/[^\x00-\xFF]/.test(e),n=[],r=0,a=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;r<a;r+=4)0!==(o=(e.charCodeAt(r)<<24)+(e.charCodeAt(r+1)<<16)+(e.charCodeAt(r+2)<<8)+e.charCodeAt(r+3))?(i=(o=((o=((o=((o=(o-(u=o%85))/85)-(c=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(i+33,s+33,l+33,c+33,u+33)):n.push(122);return function(e){for(var n=t.length;0<n;n--)e.pop()}(n),String.fromCharCode.apply(String,n)+"~>"},g=function(e){var t,n,r,a,o,i=String,s="length",l="charCodeAt",c="slice",u="replace";for(e[c](-2),e=e[c](0,-2)[u](/\s/g,"")[u]("z","!!!!!"),r=[],a=0,o=(e+=t="uuuuu"[c](e[s]%5||5))[s];a<o;a+=5)n=52200625*(e[l](a)-33)+614125*(e[l](a+1)-33)+7225*(e[l](a+2)-33)+85*(e[l](a+3)-33)+(e[l](a+4)-33),r.push(255&n>>24,255&n>>16,255&n>>8,255&n);return function(e){for(var n=t[s];0<n;n--)e.pop()}(r),i.fromCharCode.apply(i,r)},b=function(e){for(var t="",n=0;n<e.length;n+=1)t+=("0"+e.charCodeAt(n).toString(16)).slice(-2);return t+">"},v=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",r=0;r<e.length;r+=2)n+=String.fromCharCode("0x"+(e[r]+e[r+1]));return n},w=function(e,t){t=Object.assign({predictor:1,colors:1,bitsPerComponent:8,columns:1},t);for(var n,r,a=[],o=e.length;o--;)a[o]=e.charCodeAt(o);return n=m.adler32cs.from(e),(r=new Deflater(6)).append(new Uint8Array(a)),e=r.flush(),(a=new Uint8Array(e.length+6)).set(new Uint8Array([120,156])),a.set(e,2),a.set(new Uint8Array([255&n,n>>8&255,n>>16&255,n>>24&255]),e.length+2),String.fromCharCode.apply(null,a)},m.processDataByFilters=function(e,t){var n=0,r=e||"",a=[];for("string"==typeof(t=t||[])&&(t=[t]),n=0;n<t.length;n+=1)switch(t[n]){case"ASCII85Decode":case"/ASCII85Decode":r=g(r),a.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":r=y(r),a.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":r=v(r),a.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":r=b(r),a.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":r=w(r),a.push("/FlateDecode");break;default:throw'The filter: "'+t[n]+'" is not implemented'}return{data:r,reverseChain:a.reverse().join(" ")}},(B=pe.API).loadFile=function(e,t,n){var r;t=t||!0,n=n||function(){};try{r=function(e,t){var n=new XMLHttpRequest,r=[],a=0,o=function(e){var t=e.length,n=String.fromCharCode;for(a=0;a<t;a+=1)r.push(n(255&e.charCodeAt(a)));return r.join("")};if(n.open("GET",e,!t),n.overrideMimeType("text/plain;
2 charset=x-user-defined"),!1===t&&(n.onload=function(){return o(this.responseText)}),n.send(null),200===n.status)return t?o(n.responseText):void 0;console.warn('Unable to load file "'+e+'"')}(e,t)}catch(e){r=void 0}return r},B.loadImageFile=B.loadFile,C=pe.API,N="undefined"!=typeof window&&window||void 0!==r&&r,E=function(e){var t=a(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},x=function(e,t){var n=document.createElement(e);if(t.className&&(n.className=t.className),t.innerHTML){n.innerHTML=t.innerHTML;for(var r=n.getElementsByTagName("script"),a=r.length;0<a--;null)r[a].parentNode.removeChild(r[a])}for(var o in t.style)n.style[o]=t.style[o];return n},(((S=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),r=e.convert(Promise.resolve(),n);return(r=r.setProgress(1,e,1,[e])).set(t)}).prototype=Object.create(Promise.prototype)).constructor=S).convert=function(e,t){return e.__proto__=t||S.prototype,e},S.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:{}}},S.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(E(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.set({src:x("div",{innerHTML:e})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},S.prototype.to=function(e){switch(e){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.")}},S.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 e={position:"relative",display:"inline-block",width:Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:"white"},t=function e(t,n){for(var r=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),a=t.firstChild;a;a=a.nextSibling)!0!==n&&1===a.nodeType&&"SCRIPT"===a.nodeName||r.appendChild(e(a,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(r.width=t.width,r.height=t.height,r.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(r.value=t.value),r.addEventListener("load",function(){r.scrollTop=t.scrollTop,r.scrollLeft=t.scrollLeft},!0)),r}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=x("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=x("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(x("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"})},S.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(function(){var e=Object.assign({},this.opt.html2canvas);if(delete e.onrendered,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,e)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},S.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(function(){var e=this.opt.jsPDF,t=Object.assign({async:!0,allowTaint:!0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete t.onrendered,e.context2d.autoPaging=!0,e.context2d.posX=this.opt.x,e.context2d.posY=this.opt.y,t.windowHeight=t.windowHeight||0,t.windowHeight=0==t.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):t.windowHeight,this.isHtml2CanvasLoaded())return html2canvas(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},S.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},S.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},S.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},S.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf(
vendor: 5,026 bytes, line 2
2)}]).then(function(){return this.prop.pdf.output(e,t)})},S.prototype.outputImg=function(e,t){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){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 "'+e+'" is not supported.'}})},S.prototype.isHtml2CanvasLoaded=function(){var e=void 0!==N.html2canvas;return e||console.error("html2canvas not loaded."),e},S.prototype.save=function(e){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},S.prototype.doCallback=function(e){if(this.isHtml2CanvasLoaded())return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},S.prototype.set=function(e){if("object"!==E(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in S.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},S.prototype.get=function(e,t){return this.then(function(){var n=e in S.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},S.prototype.setMargin=function(e){return this.then(function(){switch(E(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},S.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||pe.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},S.prototype.setProgress=function(e,t,n,r){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=r&&(this.progress.stack=r),this.progress.ratio=this.progress.val/this.progress.state,this},S.prototype.updateProgress=function(e,t,n,r){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,r?this.progress.stack.concat(r):null)},S.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},S.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then;var r=this;e&&(e=e.bind(r)),t&&(t=t.bind(r));var a=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?r:S.convert(Object.assign({},r),Promise.prototype),o=n.call(a,e,t);return S.convert(o,r.__proto__)},S.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},S.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},S.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return S.convert(t,this)},S.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},S.prototype.error=function(e){return this.then(function(){throw new Error(e)})},S.prototype.using=S.prototype.set,S.prototype.saveAs=S.prototype.save,S.prototype.export=S.prototype.output,S.prototype.run=S.prototype.then,pe.getPageSize=function(e,t,n){if("object"===a(e)){var r=e;e=r.orientation,t=r.unit||t,n=r.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var o=(""+n).toLowerCase(),i={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(t){case"pt":var s=1;break;case"mm":s=72/25.4;break;case"cm":s=72/2.54;break;case"in":s=72;break;case"px":s=.75;break;case"pc":case"em":s=12;break;case"ex":s=6;break;default:throw"Invalid unit: "+t}
2if(i.hasOwnProperty(o))var l=i[o][1]/s,c=i[o][0]/s;else try{l=n[1],c=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e){if(e="p",l<c){var u=c;c=l,l=u}}else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",c<l&&(u=c,c=l,l=u)}return{width:c,height:l,unit:t,k:s}},C.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.jsPDF;var n=new S(t);return t.worker?n:n.from(e).doCallback()},pe.API.addJS=function(e){return k=e,this.internal.events.subscribe("postPutResources",function(e){T=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(T+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),F=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+k+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==T&&void 0!==F&&this.internal.out("/Names <</JavaScript "+T+" 0 R>>")}),this},(U=pe.API).events.push(["postPutResources",function(){var e=this,t=/^(\d+) 0 obj$/;if(0<this.outline.root.children.length)for(var n=e.outline.render().split(/\r\n/),r=0;r<n.length;r++){var a=n[r],o=t.exec(a);if(null!=o){var i=o[1];e.internal.newObjectDeferredBegin(i,!1)}e.internal.write(a)}if(this.outline.createNamedDestinations){var s=this.internal.pages.length,l=[];for(r=0;r<s;r++){var c=e.internal.newObject();l.push(c);var u=e.internal.getPageInfo(r+1);e.internal.write("<< /D["+u.objId+" 0 R /XYZ null null null]>> endobj")}var A=e.internal.newObject();for(e.internal.write("<< /Names [ "),r=0;r<l.length;r++)e.internal.write("(page_"+(r+1)+")"+l[r]+" 0 R");e.internal.write(" ] >>","endobj"),e.internal.newObject(),e.internal.write("<< /Dests "+A+" 0 R"),e.internal.write(">>","endobj")}}]),U.events.push(["putCatalog",function(){0<this.outline.root.children.length&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+namesOid+" 0 R"))}]),U.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var r={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(r),r},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),0<e.children.length&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){this.ctx.pdf.internal.getCoordinateString;for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,r=0;r<t.children.length;r++){var a=t.children[r];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(t)),0<r&&this.line("/Prev "+this.makeRef(t.children[r-1])),r<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[r+1])),0<a.children.length&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var o=this.count=this.count_r({count:0},a);if(0<o&&this.line("/Count "+o),a.options&&a.options.pageNumber){var i=e.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+i.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(r=0;r<t.children.length;r++)a=t.children[r],this.renderItems(a)},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(e){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}]),L=pe.API,O=function(){var e="function"==typeof Deflater;if(!e)throw new Error("requires deflate.js for compression");return e},I=function(e,t,n,r){var a=5,o=M;switch(r){case L.image_compression.FAST:a=3,o=D;break;case L.image_compression.MEDIUM:a=6,o=_;break;case L.image_compression.SLOW:a=9,o=j}e=R(e,t,n,o);var i=new Uint8Array(Q(a)),s=H(e),l=new Deflater(a),c=l.append(e),u=l.flush(),A=i.length+c.length+u.length,h=new Uint8Array(A+4);return h.set(i),h.set(c,i.length),h.set(u,i.length+c.length),h[A++]=s>>>24&255,h[A++]=s>>>16&255,h[A++]=s>>>8&255,h[A++]=255&s,L.arrayBufferToBinaryString(h)},Q=function(e,t){var n=Math.LOG2E*Math.log(32768)-8<<4|8,r=n<<8;return r|=Math.min(3,(t-1&255)>>
21)<<6,r|=0,[n,255&(r+=31-r%31)]},H=function(e,t){for(var n,r=1,a=0,o=e.length,i=0;0<o;){for(o-=n=t<o?t:o;a+=r+=e[i++],--n;);r%=65521,a%=65521}return(a<<16|r)>>>0},R=function(e,t,n,r){for(var a,o,i,s=e.length/t,l=new Uint8Array(e.length+s),c=z(),u=0;u<s;u++){if(i=u*t,a=e.subarray(i,i+t),r)l.set(r(a,n,o),i+u);else{for(var A=0,h=c.length,d=[];A<h;A++)d[A]=c[A](a,n,o);var p=W(d.concat());l.set(d[p],i+u)}o=a}return l},P=function(e,t,n){var r=Array.apply([],e);return r.unshift(0),r},D=function(e,t,n){var r,a=[],o=0,i=e.length;for(a[0]=1;o<i;o++)r=e[o-t]||0,a[o+1]=e[o]-r+256&255;return a},M=function(e,t,n){var r,a=[],o=0,i=e.length;for(a[0]=2;o<i;o++)r=n&&n[o]||0,a[o+1]=e[o]-r+256&255;return a},_=function(e,t,n){var r,a,o=[],i=0,s=e.length;for(o[0]=3;i<s;i++)r=e[i-t]||0,a=n&&n[i]||0,o[i+1]=e[i]+256-(r+a>>>1)&255;return o},j=function(e,t,n){var r,a,o,i,s=[],l=0,c=e.length;for(s[0]=4;l<c;l++)r=e[l-t]||0,a=n&&n[l]||0,o=n&&n[l-t]||0,i=K(r,a,o),s[l+1]=e[l]-i+256&255;return s},K=function(e,t,n){var r=e+t-n,a=Math.abs(r-e),o=Math.abs(r-t),i=Math.abs(r-n);return a<=o&&a<=i?e:o<=i?t:n},z=function(){return[P,D,M,_,j]},W=function(e){for(var t,n,r,a=0,o=e.length;a<o;)((t=V(e[a].slice(1)))<n||!n)&&(n=t,r=a),a++;return r},V=function(e){for(var t=0,n=e.length,r=0;t<n;)r+=Math.abs(e[t++]);return r},L.processPNG=function(e,t,n,r,a){var o,i,s,l,c,u,A=this.color_spaces.DEVICE_RGB,h=this.decode.FLATE_DECODE,d=8;if(this.isArrayBuffer(e)&&(e=new Uint8Array(e)),this.isArrayBufferView(e)){if("function"!=typeof PNG||"function"!=typeof He)throw new Error("PNG support requires png.js and zlib.js");if(e=(o=new PNG(e)).imgData,d=o.bits,A=o.colorSpace,l=o.colors,-1!==[4,6].indexOf(o.colorType)){if(8===o.bits)for(var p,f=(x=32==o.pixelBitlength?new Uint32Array(o.decodePixels().buffer):16==o.pixelBitlength?new Uint16Array(o.decodePixels().buffer):new Uint8Array(o.decodePixels().buffer)).length,m=new Uint8Array(f*o.colors),y=new Uint8Array(f),g=o.pixelBitlength-o.bits,b=0,v=0;b<f;b++){for(w=x[b],p=0;p<g;)m[v++]=w>>>p&255,p+=o.bits;y[b]=w>>>p&255}if(16===o.bits){f=(x=new Uint32Array(o.decodePixels().buffer)).length,m=new Uint8Array(f*(32/o.pixelBitlength)*o.colors),y=new Uint8Array(f*(32/o.pixelBitlength));for(var w,B=1<o.colors,C=v=b=0;b<f;)w=x[b++],m[v++]=w>>>0&255,B&&(m[v++]=w>>>16&255,w=x[b++],m[v++]=w>>>0&255),y[C++]=w>>>16&255;d=8}r!==L.image_compression.NONE&&O()?(e=I(m,o.width*o.colors,o.colors,r),u=I(y,o.width,1,r)):(e=m,u=y,h=null)}if(3===o.colorType&&(A=this.color_spaces.INDEXED,c=o.palette,o.transparency.indexed)){var N=o.transparency.indexed,E=0;for(b=0,f=N.length;b<f;++b)E+=N[b];if((E/=255)==f-1&&-1!==N.indexOf(0))s=[N.indexOf(0)];else if(E!==f){var x=o.decodePixels();for(y=new Uint8Array(x.length),b=0,f=x.length;b<f;b++)y[b]=N[x[b]];u=I(y,o.width,1)}}var S=function(e){var t;switch(e){case L.image_compression.FAST:t=11;break;case L.image_compression.MEDIUM:t=13;break;case L.image_compression.SLOW:t=14;break;default:t=12}return t}(r);return i=h===this.decode.FLATE_DECODE?"/Predictor "+S+" /Colors "+l+" /BitsPerComponent "+d+" /Columns "+o.width:"/Colors "+l+" /BitsPerComponent "+d+" /Columns "+o.width,(this.isArrayBuffer(e)||this.isArrayBufferView(e))&&(e=this.arrayBufferToBinaryString(e)),(u&&this.isArrayBuffer(u)||this.isArrayBufferView(u))&&(u=this.arrayBufferToBinaryString(u)),this.createImageInfo(e,o.width,o.height,A,d,h,t,n,i,s,c,u,S)}throw new Error("Unsupported PNG image data, try using JPEG instead.")},(G=pe.API).processGIF89A=function(e,t,n,r,a){var o=new Ue(e),i=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:i,height:s},u=new Oe(100).encode(c,100);return G.processJPEG.call(this,u,t,n,r)},G.processGIF87A=G.processGIF89A,(q=pe.API).processBMP=function(e,t,n,r,a){var o=new Ie(e,!1),i=o.width,s=o.height,l={data:o.getData(),width:i,height:s},c=new Oe(100).encode(l,100);return q.processJPEG.call(this,c,t,n,r)},pe.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canad
2a)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"FYRO Macedonian",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Y=pe.API,X=Y.getCharWidthsArray=function(e,t){var n,r,a,o=(t=t||{}).font||this.internal.getFont(),i=t.fontSize||this.internal.getFontSize(),s=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:o.metadata.Unicode.widths,c=l.fof?l.fof:1,u=t.kerning?t.kerning:o.metadata.Unicode.kerning,A=u.fof?u.fof:1,h=0,d=l[0]||c,p=[];for(n=0,r=e.length;n<r;n++)a=e.charCodeAt(n),"function"==typeof o.metadata.widthOfString?p.push((o.metadata.widthOfGlyph(o.metadata.characterToGlyph(a))+s*(1e3/i)||0)/1e3):p.push((l[a]||d)/c+(u[a]&&u[a][h]||0)/A),h=a;return p},J=Y.getArraySum=function(e){for(var t=e.length,n=0;t;)n+=e[--t];return n},Z=Y.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return"function"==typeof r.metadata.widthOfString?r.metadata.widthOfString(e,n,a)/n:J(X.apply(this,arguments))},$=function(e,t,n,r){for(var a=[],o=0,i=e.length,s=0;o!==i&&s+t[o]<n;)s+=t[o],o++;a.push(e.slice(0,o));var l=o;for(s=0;o!==i;)s+t[o]>
2r&&(a.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&a.push(e.slice(l,o)),a},ee=function(e,t,n){n||(n={});var r,a,o,i,s,l,c=[],u=[c],A=n.textIndent||0,h=0,d=0,p=e.split(" "),f=X.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?p[0].length+2:n.lineIndent||0){var m=Array(l).join(" "),y=[];p.map(function(e){1<(e=e.split(/\s*\n/)).length?y=y.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):y.push(e[0])}),p=y,l=Z.apply(this,[m,n])}for(o=0,i=p.length;o<i;o++){var g=0;if(r=p[o],l&&"\n"==r[0]&&(r=r.substr(1),g=1),a=X.apply(this,[r,n]),t<A+h+(d=J(a))||g){if(t<d){for(s=$.apply(this,[r,a,t-(A+h),t]),c.push(s.shift()),c=[s.pop()];s.length;)u.push([s.shift()]);d=J(a.slice(r.length-(c[0]?c[0].length:0)))}else c=[r];u.push(c),A=d+l,h=f}else c.push(r),A+=h+d,h=f}if(l)var b=function(e,t){return(t?m:"")+e.join(" ")};else b=function(e){return e.join(" ")};return u.map(b)},Y.splitTextToSize=function(e,t,n){var r,a=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle),n="Unicode";return t.metadata[n]?{widths:t.metadata[n].widths||{0:1},kerning:t.metadata[n].kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);r=Array.isArray(e)?e:e.split(/\r?\n/);var i=1*this.internal.scaleFactor*t/a;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=r.length;s<l;s++)c=c.concat(ee.apply(this,[r[s],i,o]));return c},te=pe.API,re={codePages:["WinAnsiEncoding"],WinAnsiEncoding:(ne=function(e){for(var t="klmnopqrstuvwxyz",n={},r=0;r<16;r++)n[t[r]]="0123456789abcdef"[r];var a,o,i,s,l,c={},u=1,A=c,h=[],d="",p="",f=e.length-1;for(r=1;r!=f;)l=e[r],r+=1,"'"==l?o=o?(s=o.join(""),a):[]:o?o.push(l):"{"==l?(h.push([A,s]),A={},s=a):"}"==l?((i=h.pop())[0][i[1]]=A,s=a,A=i[0]):"-"==l?u=-1:s===a?n.hasOwnProperty(l)?(d+=n[l],s=parseInt(d,16)*u,u=1,d=""):d+=l:n.hasOwnProperty(l)?(p+=n[l],A[s]=parseInt(p,16)*u,u=1,s=a,p=""):p+=l;return c})("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},ae={Unicode:{Courier:re,"Courier-Bold":re,"Courier-BoldOblique":re,"Courier-Oblique":re,Helvetica:re,"Helvetica-Bold":re,"Helvetica-BoldOblique":re,"Helvetica-Oblique":re,"Times-Roman":re,"Times-Bold":re,"Times-BoldItalic":re,"Times-Italic":re}},oe={Unicode:{"Courier-Oblique":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":ne("{'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":ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
2dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":ne("{'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:ne("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
2dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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":ne("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4y
2dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'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:ne("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":ne("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":ne("{'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}
2fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":ne("{'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":ne("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4y
2dn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'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}}}")}},te.events.push(["addFont",function(e){var t,n,r,a=e.font,o="Unicode";(t=oe[o][a.postScriptName])&&((n=a.metadata[o]?a.metadata[o]:a.metadata[o]={}).widths=t.widths,n.kerning=t.kerning),(r=ae[o][a.postScriptName])&&((n=a.metadata[o]?a.metadata[o]:a.metadata[o]={}).encoding=r).codePages&&r.codePages.length&&(a.encoding=r.codePages[0])}]),ie=pe,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")(),ie.API.events.push(["addFont",function(e){var t=e.font,n=e.instance;if(void 0!==n&&n.existsFileInVFS(t.postScriptName)){var r=n.getFileFromVFS(t.postScriptName);if("string"!=typeof r)throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').");t.metadata=ie.API.TTFFont.open(t.postScriptName,t.fontName,r,t.encoding),t.metadata.Unicode=t.metadata.Unicode||{encoding:{},kerning:{},widths:[]},t.metadata.glyIdsUsed=[0]}else if(!1===t.isStandardFont)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+t.postScriptName+"').")}]),(se=pe.API).addSvg=function(e,t,n,r,a){if(void 0===t||void 0===n)throw new Error("addSVG needs values for 'x' and 'y'");function o(e){for(var t=parseFloat(e[1]),n=parseFloat(e[2]),r=[],a=3,o=e.length;a<o;)"c"===e[a]?(r.push([parseFloat(e[a+1]),parseFloat(e[a+2]),parseFloat(e[a+3]),parseFloat(e[a+4]),parseFloat(e[a+5]),parseFloat(e[a+6])]),a+=7):"l"===e[a]?(r.push([parseFloat(e[a+1]),parseFloat(e[a+2])]),a+=3):a+=1;return[t,n,r]}var i,s,l,c,u,A,h,d,p=(i=e,(l=((d=(c=document).createElement("iframe"),u=".jsPDF_sillysvg_iframe {display:none;position:absolute;}",(h=(A=c).createElement("style")).type="text/css",h.styleSheet?h.styleSheet.cssText=u:h.appendChild(A.createTextNode(u)),A.getElementsByTagName("head")[0].appendChild(h),d.name="childframe",d.setAttribute("width",0),d.setAttribute("height",0),d.setAttribute("frameborder","0"),d.setAttribute("scrolling","no"),d.setAttribute("seamless","seamless"),d.setAttribute("class","jsPDF_sillysvg_iframe"),c.body.appendChild(d),s=d).contentWindow||s.contentDocument).document).write(i),l.close(),l.getElementsByTagName("svg")[0]),f=[1,1],m=parseFloat(p.getAttribute("width")),y=parseFloat(p.getAttribute("height"));m&&y&&(r&&a?f=[r/m,a/y]:r?f=[r/m,r/m]:a&&(f=[a/y,a/y]));var g,b,v,w,B=p.childNodes;for(g=0,b=B.length;g<b;g++)(v=B[g]).tagName&&"PATH"===v.tagName.toUpperCase()&&((w=o(v.getAttribute("d").split(" ")))[0]=w[0]*f[0]+t,w[1]=w[1]*f[1]+n,this.lines.call(this,w[2],w[0],w[1],f));return this},se.addSVG=se.addSvg,se.addSvgAsImage=function(e,t,n,r,a,o,i,s){if(isNaN(t)||isNaN(n))throw console.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw console.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var l=document.createElement("canvas");l.width=r,l.height=a;var c=l.getContext("2d");return c.fillStyle="#fff",c.fillRect(0,0,l.width,l.height),canvg(l,e,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0}),this.addImage(l.toDataURL("image/jpeg",1),t,n,r,a,i,s),this},pe.API.putTotalPages=function(e){var t,n;
2n=parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,n);return this},pe.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var r,o,i={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}},s=Object.keys(i),l=[],c=0,u=0,A=0,h=!0;function d(e,t){var n,r=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(r=!0);return r}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(i)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=s.length;for(A=0;A<p;A+=1)n[s[A]].value=n[s[A]].defaultValue,n[s[A]].explicitSet=!1}if("object"===a(e))for(r in e)if(o=e[r],d(s,r)&&void 0!==o){if("boolean"===n[r].type&&"boolean"==typeof o)n[r].value=o;else if("name"===n[r].type&&d(n[r].valueSet,o))n[r].value=o;else if("integer"===n[r].type&&Number.isInteger(o))n[r].value=o;else if("array"===n[r].type){for(c=0;c<o.length;c+=1)if(h=!0,1===o[c].length&&"number"==typeof o[c][0])l.push(String(o[c]-1));else if(1<o[c].length){for(u=0;u<o[c].length;u+=1)"number"!=typeof o[c][u]&&(h=!1);!0===h&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}n[r].value="["+l.join(" ")+"]"}else n[r].value=n[r].defaultValue;n[r].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},le=pe.API,Ae=ue=ce="",le.addMetadata=function(e,t){return ue=t||"http://jspdf.default.namespaceuri/",ce=e,this.internal.events.subscribe("postPutResources",function(){if(ce){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+ue+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),r=unescape(encodeURIComponent(ce)),a=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),i=n.length+r.length+a.length+t.length+o.length;Ae=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+i+" >>"),this.internal.write("stream"),this.internal.write(t+n+r+a+o),this.internal.write("endstream"),this.internal.write("endobj")}else Ae=""}),this.internal.events.subscribe("putCatalog",function(){Ae&&this.internal.write("/Metadata "+Ae+" 0 R")}),this},function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,r=t.metadata.Unicode.widths,a=["","0","00","000","0000"],o=[""],i=0,s=e.length;i<s;++i){if(n=t.metadata.characterToGlyph(e.charCodeAt(i)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(i),-1==r.indexOf(n)&&(r.push(n),r.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(a[4-n.length],n)}return o.join("")},r=function(e){var t,n,r,a,o,i,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",r=[],i=0,s=(n=Object.keys(e).sort(function(e,t){return e-t})).length;i<s;i++)t=n[i],100<=r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar",r=[]),a=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),r.push("<"+t+"><"+a+">");return r.length&&(o+="\n"+r.length+" beginbfchar\n"+r.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t,n,a,o){if(t.metadata instanceof e.API.TTFFont&&"Identity-H"===t.encoding){for(var i=t.metadata.Unicode.widths,s=t.metadata.subset.encode(t.metadata.glyIdsUsed,1),l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=a();o({data:l,addLength1:!0}),n("endobj");var A=a();o({data:r(t.metadata.toUnicode),addLength1:!0}),n("endobj");var h=a();n("<<"),n("/Type /FontDescriptor"),n("/FontName /"+t.fontName),n("/FontFile2 "+u+" 0 R"),n("/FontBBox "+e.API.PDFObject.convert(t.metadata.bbox)),n("/Flags "+t.metadata.flags),n("/StemV "+t.metadata.stemV),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n(">>"),n("endobj");var d=a();n("<<"),n("/Type /Font"),n("/BaseFont /"+t.fontName),n("/FontDescriptor "+h+" 0 R"),n("/W "+e.API.PDFObject.convert(i)),n("/CIDToGIDMap /Identity"),n("/DW 1000"),n("/Subtype /CIDFontType2"),n("/CIDSystemInfo"),n("<<"),n("/Supplement 0"),n("/Registry (Adobe)"),n("/Ordering ("+t.encoding+")"),n(">>"),n(">>"),n("endobj"),t.objectNumber=a(),n("<<"),n("/Type /Font"),n("/Subtype /Type0"),n("/ToUnicode "+A+" 0 R"),n("/BaseFont /"+t.fontName),n("/Encoding /"+t.encoding),n("/DescendantFonts ["+d+" 0 R]"),n(">>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]),t.events.push(["putFont",function(t){!function(t,n,a,o){if(t.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===t.encoding){t.metadata.Unicode.widths;for(var i=t.metadata.rawData,s="",l=0;l<i.length;l++)s+=String.fromCharCode(i[l]);var c=a();o({data:s,addLength1:!0}),n("endobj");var u=a();o({data:r(t.metadata.toUnicode),addLength1:!0}),n("endobj");var A=a();for(n("<<"),n("/Descent "+t.metadata.decender),n("/CapHeight "+t.metadata.capHeight),n("/StemV "+t.metadata.stemV),n("/Type /FontDescriptor"),n("/FontFile2 "+c+" 0 R"),n("/Flags 96"),n("/FontBBox "+e.API.PDFObject.convert(t.metadata.bbox)),n("/FontName /"+t.fontName),n("/ItalicAngle "+t.metadata.italicAngle),n("/Ascent "+t.metadata.ascender),n(">>"),n("endobj"),t.objectNumber=a(),l=0;l<t.metadata.hmtx.widths.length;l++)t.metadata.hmtx.widths[l]=parseInt(t.metadata.hmtx.widths[l]*(1e3/t.metadata.head.unitsPerEm));n("<</Subtype/TrueType/Type/Font/ToUnicode "+u+" 0 R/BaseFont/"+t.fontName+"/FontDescriptor "+A+" 0 R/Encoding/"+t.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(t.metadata.hmtx.widths)+">>"),n("endobj"),t.isAlreadyPutted=!0}}(t.font,t.out,t.newObject,t.putStream)}]);var a=function(e){var t,r,a=e.text||"",o=e.x,i=e.y,s=e.options||{},l=e.mutex||{},c=l.pdfEscape,u=l.activeFontKey,A=l.fonts,h=(l.activeFontSize,""),d=0,p="",f=A[r=u].encoding;if("Identity-H"!==A[r].encoding)return{text:a,x:o,y:i,options:s,mutex:l};for(p=a,r=u,"[object Array]"===Object.prototype.toString.call(a)&&(p=a[0]),d=0;d<p.length;d+=1)A[r].metadata.hasOwnProperty("cmap")&&(t=A[r].metadata.cmap.unicode.codeMap[p[d].charCo
2deAt(0)]),t||p[d].charCodeAt(0)<256&&A[r].metadata.hasOwnProperty("Unicode")?h+=p[d]:h+="";var m="";return parseInt(r.slice(1))<14||"WinAnsiEncoding"===f?m=function(e){for(var t="",n=0;n<e.length;n++)t+=""+e.charCodeAt(n).toString(16);return t}(c(h,r)):"Identity-H"===f&&(m=n(h,A[r])),l.isHex=!0,{text:m,x:o,y:i,options:s,mutex:l}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=e.x,r=e.y,o=e.options,i=e.mutex,s=(o.lang,[]),l={text:t,x:n,y:r,options:o,mutex:i};if("[object Array]"===Object.prototype.toString.call(t)){var c=0;for(c=0;c<t.length;c+=1)"[object Array]"===Object.prototype.toString.call(t[c])&&3===t[c].length?s.push([a(Object.assign({},l,{text:t[c][0]})).text,t[c][1],t[c][2]]):s.push(a(Object.assign({},l,{text:t[c]})).text);e.text=s}else e.text=a(Object.assign({},l,{text:t})).text}])}(pe,"undefined"!=typeof self&&self||void 0!==r&&r||"undefined"!=typeof window&&window||Function("return this")()),he=pe.API,de=function(e){return void 0!==e&&(void 0===e.vFS&&(e.vFS={}),!0)},he.existsFileInVFS=function(e){return!!de(this.internal)&&void 0!==this.internal.vFS[e]},he.addFileToVFS=function(e,t){return de(this.internal),this.internal.vFS[e]=t,this},he.getFileFromVFS=function(e){return de(this.internal),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null},pe.API.addHTML=function(e,t,n,r,a){if("undefined"==typeof html2canvas&&"undefined"==typeof rasterizeHTML)throw new Error("You need either https://github.com/niklasvh/html2canvas or https://github.com/cburgmer/rasterizeHTML.js");"number"!=typeof t&&(r=t,a=n),"function"==typeof r&&(a=r,r=null),"function"!=typeof a&&(a=function(){});var o=this.internal,i=o.scaleFactor,s=o.pageSize.getWidth(),l=o.pageSize.getHeight();if((r=r||{}).onrendered=function(e){t=parseInt(t)||0,n=parseInt(n)||0;var o=r.dim||{},c=Object.assign({top:0,right:0,bottom:0,left:0,useFor:"content"},r.margin),u=o.h||Math.min(l,e.height/i),A=o.w||Math.min(s,e.width/i)-t,h=r.format||"JPEG",d=r.imageCompression||"SLOW";if(e.height>l-c.top-c.bottom&&r.pagesplit){var p=function(e,t,n,a,o){var i=document.createElement("canvas");i.height=o,i.width=a;var s=i.getContext("2d");return s.mozImageSmoothingEnabled=!1,s.webkitImageSmoothingEnabled=!1,s.msImageSmoothingEnabled=!1,s.imageSmoothingEnabled=!1,s.fillStyle=r.backgroundColor||"#ffffff",s.fillRect(0,0,a,o),s.drawImage(e,t,n,a,o,0,0,a,o),i},f=function(){for(var r,o,u=0,f=0,m={},y=!1;;){var g;if(f=0,m.top=0!==u?c.top:n,m.left=0!==u?c.left:t,y=(s-c.left-c.right)*i<e.width,"content"===c.useFor?0===u?(r=Math.min((s-c.left)*i,e.width),o=Math.min((l-c.top)*i,e.height-u)):(r=Math.min(s*i,e.width),o=Math.min(l*i,e.height-u),m.top=0):(r=Math.min((s-c.left-c.right)*i,e.width),o=Math.min((l-c.bottom-c.top)*i,e.height-u)),y)for(;;){"content"===c.useFor&&(0===f?r=Math.min((s-c.left)*i,e.width):(r=Math.min(s*i,e.width-f),m.left=0));var b=[g=p(e,f,u,r,o),m.left,m.top,g.width/i,g.height/i,h,null,d];if(this.addImage.apply(this,b),(f+=r)>=e.width)break;this.addPage()}else b=[g=p(e,0,u,r,o),m.left,m.top,g.width/i,g.height/i,h,null,d],this.addImage.apply(this,b);if((u+=o)>=e.height)break;this.addPage()}a(A,u,null,b)}.bind(this);if("CANVAS"===e.nodeName){var m=new Image;m.onload=f,m.src=e.toDataURL("image/png"),e=m}else f()}else{var y=Math.random().toString(35),g=[e,t,n,A,u,h,y,d];this.addImage.apply(this,g),a(A,u,y,g)}}.bind(this),"undefined"!=typeof html2canvas&&!r.rstz)return html2canvas(e,r);if("undefined"==typeof rasterizeHTML)return null;var c="drawDocument";return"string"==typeof e&&(c=/^http/.test(e)?"drawURL":"drawHTML"),r.width=r.width||s*i,rasterizeHTML[c](e,void 0,r).then(function(e){r.onrendered(e.image)},function(e){a(null,e)})},function(e){var t,n,r,o,i,s,l,c,u,A,h,d,p,f,m,y,g,b,v,w;t=function(){return function(t){return e.prototype=t,new e};function e(){}}(),A=function(e){var t,n,r,a,o,i,s;for(n=0,r=e.length,t=void 0,i=a=!1;!a&&n!==r;)(t=e[n]=e[n].trimLeft())&&(a=!0),n++;for(n=r-1;r&&!i&&-1!==n;)(t=e[n]=e[n].trimRight())&&(i=!0),n--;for(o=/\s+$/g,s=!0,n=0;n!==r;)"\u2028"!=e[n]&&(t=e[n].replace(/\s+/g," "),s&&(t=t.trimLeft()),t&&(s=o.test(t)),e[n]=t),n++;return e},d=function(e){var t,n,a;for(t=void 0,n=(a=e.split(",")).shift();!t&&n;)t=r[n.trim().toLowerCase()],n=a.shift();return t},p=function(e){var t;return-1<(e="auto"===e?"0px":e).indexOf("em")&&!isNaN(Number(e.replace("em","")))&&(e=18.719*Number(e.replace("em",""))+"px"),-1<e.indexOf("pt")&&!isNaN(Number(e.replace("pt","")))&&(e=1.333*Number(e.replace("pt",""))+"px"),(t=f[e])?t:void 0!==(t={"xx-small":9,"x-small":11,small:13,medium:16,large:19,"x-large":23,"xx-large":28,auto:0}[e])||(t=parseFloat(e))?f[e]=t/16:(t=e.match(/([\d\.]+)(px)/),Array.isArray(t)&&3===t.length?f[e]=parseFloat(t[1])/16:f[e]=1)},u=function(e){var t,n,r,a,u;return u=e,a=document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(u,null):u.currentStyle?u.currentStyle:u.style,n=void 0,(t={})["font-family"]=d((r=function(e){return e=e.replace(/-\D/g,function(e){return e.charAt(1).toUpperCase()}),a[e]})("font-family"))||"times",t["font-style"]=o[r("font-style")]||"normal",t["text-align"]=i[r("text-align")]||"left","bold"===(n=s[r("font-weight")]||"normal")&&("normal"===t["font-style"]?t["font-style"]=n:t["font-style"]=n+t["font-style"]),t["font-size"]=p(r("font-size"))||1,t["line-height"]=p(r("line-height"))||1,t.dis
vendor: 10,275 bytes, line 2
2play="inline"===r("display")?"inline":"block",n="block"===t.display,t["margin-top"]=n&&p(r("margin-top"))||0,t["margin-bottom"]=n&&p(r("margin-bottom"))||0,t["padding-top"]=n&&p(r("padding-top"))||0,t["padding-bottom"]=n&&p(r("padding-bottom"))||0,t["margin-left"]=n&&p(r("margin-left"))||0,t["margin-right"]=n&&p(r("margin-right"))||0,t["padding-left"]=n&&p(r("padding-left"))||0,t["padding-right"]=n&&p(r("padding-right"))||0,t["page-break-before"]=r("page-break-before")||"auto",t.float=l[r("cssFloat")]||"none",t.clear=c[r("clear")]||"none",t.color=r("color"),t},m=function(e,t,n){var r,a,o,i,s;if(o=!1,i=a=void 0,r=n["#"+e.id])if("function"==typeof r)o=r(e,t);else for(a=0,i=r.length;!o&&a!==i;)o=r[a](e,t),a++;if(r=n[e.nodeName],!o&&r)if("function"==typeof r)o=r(e,t);else for(a=0,i=r.length;!o&&a!==i;)o=r[a](e,t),a++;for(s="string"==typeof e.className?e.className.split(" "):[],a=0;a<s.length;a++)if(r=n["."+s[a]],!o&&r)if("function"==typeof r)o=r(e,t);else for(a=0,i=r.length;!o&&a!==i;)o=r[a](e,t),a++;return o},w=function(e,t){var n,r,a,o,i,s,l,c,u;for(n=[],r=[],a=0,u=e.rows[0].cells.length,l=e.clientWidth;a<u;)c=e.rows[0].cells[a],r[a]={name:c.textContent.toLowerCase().replace(/\s+/g,""),prompt:c.textContent.replace(/\r?\n/g,""),width:c.clientWidth/l*t.pdf.internal.pageSize.getWidth()},a++;for(a=1;a<e.rows.length;){for(s=e.rows[a],i={},o=0;o<s.cells.length;)i[r[o].name]=s.cells[o].textContent.replace(/\r?\n/g,""),o++;n.push(i),a++}return{rows:n,headers:r}};var B={SCRIPT:1,STYLE:1,NOSCRIPT:1,OBJECT:1,EMBED:1,SELECT:1},C=1;n=function(e,r,o){var i,s,l,c,A,h,d,p;for(s=e.childNodes,i=void 0,(A="block"===(l=u(e)).display)&&(r.setBlockBoundary(),r.setBlockStyle(l)),c=0,h=s.length;c<h;){if("object"===a(i=s[c])){if(r.executeWatchFunctions(i),1===i.nodeType&&"HEADER"===i.nodeName){var f=i,g=r.pdf.margins_doc.top;r.pdf.internal.events.subscribe("addPage",function(e){r.y=g,n(f,r,o),r.pdf.margins_doc.top=r.y+10,r.y+=10},!1)}if(8===i.nodeType&&"#comment"===i.nodeName)~i.textContent.indexOf("ADD_PAGE")&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top);else if(1!==i.nodeType||B[i.nodeName])if(3===i.nodeType){var b=i.nodeValue;if(i.nodeValue&&"LI"===i.parentNode.nodeName)if("OL"===i.parentNode.parentNode.nodeName)b=C+++". "+b;else{var v=l["font-size"],N=(3-.75*v)*r.pdf.internal.scaleFactor,E=.75*v*r.pdf.internal.scaleFactor,x=1.74*v/r.pdf.internal.scaleFactor;p=function(e,t){this.pdf.circle(e+N,t+E,x,"FD")}}16&i.ownerDocument.body.compareDocumentPosition(i)&&r.addText(b,l)}else"string"==typeof i&&r.addText(i,l);else{var S;if("IMG"===i.nodeName){var T=i.getAttribute("src");S=y[r.pdf.sHashCode(T)||T]}if(S){r.pdf.internal.pageSize.getHeight()-r.pdf.margins_doc.bottom<r.y+i.height&&r.y>r.pdf.margins_doc.top&&(r.pdf.addPage(),r.y=r.pdf.margins_doc.top,r.executeWatchFunctions(i));var F=u(i),k=r.x,U=12/r.pdf.internal.scaleFactor,L=(F["margin-left"]+F["padding-left"])*U,O=(F["margin-right"]+F["padding-right"])*U,I=(F["margin-top"]+F["padding-top"])*U,Q=(F["margin-bottom"]+F["padding-bottom"])*U;void 0!==F.float&&"right"===F.float?k+=r.settings.width-i.width-O:k+=L,r.pdf.addImage(S,k,r.y+I,i.width,i.height),S=void 0,"right"===F.float||"left"===F.float?(r.watchFunctions.push(function(e,t,n,a){return r.y>=t?(r.x+=e,r.settings.width+=n,!0):!!(a&&1===a.nodeType&&!B[a.nodeName]&&r.x+a.width>r.pdf.margins_doc.left+r.pdf.margins_doc.width)&&(r.x+=e,r.y=t,r.settings.width+=n,!0)}.bind(this,"left"===F.float?-i.width-L-O:0,r.y+i.height+I+Q,i.width)),r.watchFunctions.push(function(e,t,n){return!(r.y<e&&t===r.pdf.internal.getNumberOfPages())||1===n.nodeType&&"both"===u(n).clear&&(r.y=e,!0)}.bind(this,r.y+i.height,r.pdf.internal.getNumberOfPages())),r.settings.width-=i.width+L+O,"left"===F.float&&(r.x+=i.width+L+O)):r.y+=i.height+I+Q}else if("TABLE"===i.nodeName)d=w(i,r),r.y+=10,r.pdf.table(r.x,r.y,d.rows,d.headers,{autoSize:!1,printHeaders:o.printHeaders,margins:r.pdf.margins_doc,css:u(i)}),r.y=r.pdf.lastCellPos.y+r.pdf.lastCellPos.h+20;else if("OL"===i.nodeName||"UL"===i.nodeName)C=1,m(i,r,o)||n(i,r,o),r.y+=10;else if("LI"===i.nodeName){var H=r.x;r.x+=20/r.pdf.internal.scaleFactor,r.y+=3,m(i,r,o)||n(i,r,o),r.x=H}else"BR"===i.nodeName?(r.y+=l["font-size"]*r.pdf.internal.scaleFactor,r.addText("\u2028",t(l))):m(i,r,o)||n(i,r,o)}}c++}if(o.outY=r.y,A)return r.setBlockBoundary(p)},y={},g=function(e,t,n,r){var a,o=e.getElementsByTagName("img"),i=o.length,s=0;function l(){t.pdf.internal.events.publish("imagesLoaded"),r(a)}function c(e,n,r){if(e){var o=new Image;a=++s,o.crossOrigin="",o.onerror=o.onload=function(){if(o.complete&&(0===o.src.indexOf("data:image/")&&(o.width=n||o.width||0,o.height=r||o.height||0),o.width+o.height)){var a=t.pdf.sHashCode(e)||e;y[a]=y[a]||o}--s||l()},o.src=e}}for(;i--;)c(o[i].getAttribute("src"),o[i].width,o[i].height);return s||l()},b=function(e,t,r){var a=e.getElementsByTagName("footer");if(0<a.length){a=a[0];var o=t.pdf.internal.write,i=t.y;t.pdf.internal.write=function(){},n(a,t,r);var s=Math.ceil(t.y-i)+5;t.y=i,t.pdf.internal.write=o,t.pdf.margins_doc.bottom+=s;for(var l=function(e){var o=void 0!==e?e.pageNumber:1,i=t.y;t.y=t.pdf.internal.pageSize.getHeight()-t.pdf.margins_doc.bottom,t.pdf.margins_doc.bottom-=s;for(var l=a.getElementsByTagName("span"),c=0;c<l.length;++c)-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" pageCounter ")&&(l[c].innerHTML=o),-1<(" "+l[c].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&(l[c].innerHTML="###jsPDFVarTotalPages###");n(a,t,r),t.pdf.margins_doc.bottom+=s,t.y=i},c=a.getElementsByTagName("span"),u=0;u<c.length;++u)-1<(" "+c[u].className+" ").replace(/[\n\t]/g," ").indexOf(" totalPages ")&&t.pdf.internal.events.subscribe("htmlRenderingFinished",t.pdf.putTotalPages.bind(t.pdf,"###jsPDFVarTotalPages###"),!0);t.pdf.internal.events.subscribe("addPage",l,!1),l(),B.FOOTER=1}},v=function(e,t,r,a,o,i){if(!t)return!1;var s,l,c,u;"string"==typeof t||t.parentNode||(t=""+t.innerHTML),"string"==typeof t&&(s=t.replace(/<\/?script[^>]*?>/gi,""),u="jsPDFhtmlText"+Date.now().toString()+(1e3*Math.random()).toFixed(0),(c=document.createElement("div")).style.cssText="position: absolute !important;clip: rect(1px 1px 1px 1px); /* IE6, IE7 */clip: rect(1px, 1px, 1px, 1px);padding:0 !important;border:0 !important;height: 1px !important;width: 1px !important; top:auto;left:-100px;overflow: hidden;",c.innerHTML='<iframe style="height:1px;width:1px" name="'+u+'" />',document.body.appendChild(c),(l=window.frames[u]).document.open(),l.document.writeln(s),l.document.close(),t=l.document.body);var A,d=new h(e,r,a,o);return g.call(this,t,d,o.elementHandlers,function(e){b(t,d,o.elementHandlers),n(t,d,o.elementHandlers),d.pdf.internal.events.publish("htmlRenderingFinished"),A=d.dispose(),"function"==typeof i?i(A):e&&console.error("jsPDF Warning: rendering issues? provide a callback to fromHTML!")}),A||{x:d.x,y:d.y}},(h=function(e,t,n,r){return this.pdf=e,this.x=t,this.y=n,this.settings=r,this.watchFunctions=[],this.init(),this}).prototype.init=function(){return this.paragraph={text:[],style:[]},this.pdf.internal.write("q")},h.prototype.dispose=function(){return this.pdf.internal.write("Q"),{x:this.x,y:this.y,ready:!0}},h.prototype.executeWatchFunctions=function(e){var t=!1,n=[];if(0<this.watchFunctions.length){for(var r=0;r<this.watchFunctions.length;++r)!0===this.watchFunctions[r](e)?t=!0:n.push(this.watchFunctions[r]);this.watchFunctions=n}return t},h.prototype.splitFragmentsIntoLines=function(e,n){var r,a,o,i,s,l,c,u,A,h,d,p,f,m;for(h=this.pdf.internal.scaleFactor,i={},l=c=u=m=s=o=A=a=void 0,p=[d=[]],r=0,f=this.settings.width;e.length;)if(s=e.shift(),m=n.shift(),s)if((o=i[(a=m["font-family"])+(A=m["font-style"])])||(o=this.pdf.internal.getFont(a,A).metadata.Unicode,i[a+A]=o),u={widths:o.widths,kerning:o.kerning,fontSize:12*m["font-size"],textIndent:r},c=this.pdf.getStringUnitWidth(s,u)*u.fontSize/h,"\u2028"==s)d=[],p.push(d);else if(f<r+c){for(l=this.pdf.splitTextToSize(s,f,u),d.push([l.shift(),m]);l.length;)d=[[l.shift(),m]],p.push(d);r=this.pdf.getStringUnitWidth(d[0][0],u)*u.fontSize/h}else d.push([s,m]),r+=c;if(void 0!==m["text-align"]&&("center"===m["text-align"]||"right"===m["text-align"]||"justify"===m["text-align"]))for(var y=0;y<p.length;++y){var g=this.pdf.getStringUnitWidth(p[y][0][0],u)*u.fontSize/h;0<y&&(p[y][0][1]=t(p[y][0][1]));var b=f-g;if("right"===m["text-align"])p[y][0][1]["margin-left"]=b;else if("center"===m["text-align"])p[y][0][1]["margin-left"]=b/2;else if("justify"===m["text-align"]){var v=p[y][0][0].split(" ").length-1;p[y][0][1]["word-spacing"]=b/v,y===p.length-1&&(p[y][0][1]["word-spacing"]=0)}}return p},h.prototype.RenderTextFragment=function(e,t){var n,r;r=0,this.pdf.internal.pageSize.getHeight()-this.pdf.margins_doc.bottom<this.y+this.pdf.internal.getFontSize()&&(this.pdf.internal.write("ET","Q"),this.pdf.addPage(),this.y=this.pdf.margins_doc.top,this.pdf.internal.write("q","BT",this.getPdfColor(t.color),this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td"),r=Math.max(r,t["line-height"],t["font-size"]),this.pdf.internal.write(0,(-12*r).toFixed(2),"Td")),n=this.pdf.internal.getFont(t["font-family"],t["font-style"]);var a=this.getPdfColor(t.color);a!==this.lastTextColor&&(this.pdf.internal.write(a),this.lastTextColor=a),void 0!==t["word-spacing"]&&0<t["word-spacing"]&&this.pdf.internal.write(t["word-spacing"].toFixed(2),"Tw"),this.pdf.internal.write("/"+n.id,(12*t["font-size"]).toFixed(2),"Tf","("+this.pdf.internal.pdfEscape(e)+") Tj"),void 0!==t["word-spacing"]&&this.pdf.internal.write(0,"Tw")},h.prototype.getPdfColor=function(e){var t,n,r,a=/rgb\s*\(\s*(\d+),\s*(\d+),\s*(\d+\s*)\)/.exec(e);if(null!=a)t=parseInt(a[1]),n=parseInt(a[2]),r=parseInt(a[3]);else{if("string"==typeof e&&"#"!=e.charAt(0)){var o=new RGBColor(e);e=o.ok?o.toHex():"#000000"}t=e.substring(1,3),t=parseInt(t,16),n=e.substring(3,5),n=parseInt(n,16),r=e.substring(5,7),r=parseInt(r,16)}if("string"==typeof t&&/^#[0-9A-Fa-f]{6}$/.test(t)){var i=parseInt(t.substr(1),16);t=i>>16&255,n=i>>8&255,r=255&i}var s=this.f3;return 0===t&&0===n&&0===r||void 0===n?s(t/255)+" g":[s(t/255),s(n/255),s(r/255),"rg"].join(" ")},h.prototype.f3=function(e){return e.toFixed(3)},h.prototype.renderParagraph=function(e){var t,n,r,a,o,i,s,l,c,u,h,d,p;
2if(r=A(this.paragraph.text),d=this.paragraph.style,t=this.paragraph.blockstyle,this.paragraph.priorblockstyle,this.paragraph={text:[],style:[],blockstyle:{},priorblockstyle:t},r.join("").trim()){s=this.splitFragmentsIntoLines(r,d),l=i=void 0,n=12/this.pdf.internal.scaleFactor,this.priorMarginBottom=this.priorMarginBottom||0,h=(Math.max((t["margin-top"]||0)-this.priorMarginBottom,0)+(t["padding-top"]||0))*n,u=((t["margin-bottom"]||0)+(t["padding-bottom"]||0))*n,this.priorMarginBottom=t["margin-bottom"]||0,"always"===t["page-break-before"]&&(this.pdf.addPage(),this.y=0,h=((t["margin-top"]||0)+(t["padding-top"]||0))*n),c=this.pdf.internal.write,o=a=void 0,this.y+=h,c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td");for(var f=0;s.length;){for(a=l=0,o=(i=s.shift()).length;a!==o;)i[a][0].trim()&&(l=Math.max(l,i[a][1]["line-height"],i[a][1]["font-size"]),p=7*i[a][1]["font-size"]),a++;var m=0,y=0;for(void 0!==i[0][1]["margin-left"]&&0<i[0][1]["margin-left"]&&(m=(y=this.pdf.internal.getCoordinateString(i[0][1]["margin-left"]))-f,f=y),c(m+Math.max(t["margin-left"]||0,0)*n,(-12*l).toFixed(2),"Td"),a=0,o=i.length;a!==o;)i[a][0]&&this.RenderTextFragment(i[a][0],i[a][1]),a++;if(this.y+=l*n,this.executeWatchFunctions(i[0][1])&&0<s.length){var g=[],b=[];s.forEach(function(e){for(var t=0,n=e.length;t!==n;)e[t][0]&&(g.push(e[t][0]+" "),b.push(e[t][1])),++t}),s=this.splitFragmentsIntoLines(A(g),b),c("ET","Q"),c("q","BT 0 g",this.pdf.internal.getCoordinateString(this.x),this.pdf.internal.getVerticalCoordinateString(this.y),"Td")}}return e&&"function"==typeof e&&e.call(this,this.x-9,this.y-p/2),c("ET","Q"),this.y+=u}},h.prototype.setBlockBoundary=function(e){return this.renderParagraph(e)},h.prototype.setBlockStyle=function(e){return this.paragraph.blockstyle=e},h.prototype.addText=function(e,t){return this.paragraph.text.push(e),this.paragraph.style.push(t)},r={helvetica:"helvetica","sans-serif":"helvetica","times new roman":"times",serif:"times",times:"times",monospace:"courier",courier:"courier"},s={100:"normal",200:"normal",300:"normal",400:"normal",500:"bold",600:"bold",700:"bold",800:"bold",900:"bold",normal:"normal",bold:"bold",bolder:"bold",lighter:"normal"},o={normal:"normal",italic:"italic",oblique:"italic"},i={left:"left",right:"right",center:"center",justify:"justify"},l={none:"none",right:"right",left:"left"},c={none:"none",both:"both"},f={normal:1},e.fromHTML=function(e,t,n,r,a,o){return this.margins_doc=o||{top:0,bottom:0},r||(r={}),r.elementHandlers||(r.elementHandlers={}),v(this,e,isNaN(t)?4:t,isNaN(n)?4:n,r,a)}}(pe.API),pe.API,("undefined"!=typeof window&&window||void 0!==r&&r).html2pdf=function(e,t,n){var r=t.canvas;if(r){var a,o;if((r.pdf=t).annotations={_nameMap:[],createAnnotation:function(e,n){var r,a=t.context2d._wrapX(n.left),o=t.context2d._wrapY(n.top),i=(t.context2d._page(n.top),e.indexOf("#"));r=0<=i?{name:e.substring(i+1)}:{url:e},t.link(a,o,n.right-n.left,n.bottom-n.top,r)},setName:function(e,n){var r=t.context2d._wrapX(n.left),a=t.context2d._wrapY(n.top),o=t.context2d._page(n.top);this._nameMap[e]={page:o,x:r,y:a}}},r.annotations=t.annotations,t.context2d._pageBreakAt=function(e){this.pageBreaks.push(e)},t.context2d._gotoPage=function(e){for(;t.internal.getNumberOfPages()<e;)t.addPage();t.setPage(e)},"string"==typeof e){e=e.replace(/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,"");var i,s,l=document.createElement("iframe");document.body.appendChild(l),null!=(i=l.contentDocument)&&null!=i||(i=l.contentWindow.document),i.open(),i.write(e),i.close(),a=i.body,s=i.body||{},e=i.documentElement||{},o=Math.max(s.scrollHeight,s.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight)}else s=(a=e).body||{},o=Math.max(s.scrollHeight,s.offsetHeight,e.clientHeight,e.scrollHeight,e.offsetHeight);var c={async:!0,allowTaint:!0,backgroundColor:"#ffffff",canvas:r,imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1,windowHeight:o=t.internal.pageSize.getHeight(),scrollY:o};t.context2d.pageWrapYEnabled=!0,t.context2d.pageWrapY=t.internal.pageSize.getHeight(),html2canvas(a,c).then(function(e){n&&(l&&l.parentElement.removeChild(l),n(t))})}else alert("jsPDF canvas plugin not installed")},window.tmp=html2pdf,function(e){var t=e.BlobBuilder||e.WebKitBlobBuilder||e.MSBlobBuilder||e.MozBlobBuilder;e.URL=e.URL||e.webkitURL||function(e,t){return(t=document.createElement("a")).href=e,t};var n=e.Blob,r=URL.createObjectURL,a=URL.revokeObjectURL,o=e.Symbol&&e.Symbol.toStringTag,i=!1,s=!1,l=!!e.ArrayBuffer,c=t&&t.prototype.append&&t.prototype.getBlob;
vendor: 4,821 bytes, line 2
2try{i=2===new Blob(["\xe4"]).size,s=2===new Blob([new Uint8Array([1,2])]).size}catch(i){}function u(e){return e.map(function(e){if(e.buffer instanceof ArrayBuffer){var t=e.buffer;if(e.byteLength!==t.byteLength){var n=new Uint8Array(e.byteLength);n.set(new Uint8Array(t,e.byteOffset,e.byteLength)),t=n.buffer}return t}return e})}function A(e,n){n=n||{};var r=new t;return u(e).forEach(function(e){r.append(e)}),n.type?r.getBlob(n.type):r.getBlob()}function h(e,t){return new n(u(e),t||{})}if(e.Blob&&(A.prototype=Blob.prototype,h.prototype=Blob.prototype),o)try{File.prototype[o]="File",Blob.prototype[o]="Blob",FileReader.prototype[o]="FileReader"}catch(i){}function d(){var t=!!e.ActiveXObject||"-ms-scroll-limit"in document.documentElement.style&&"-ms-ime-align"in document.documentElement.style,n=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;t&&n&&(XMLHttpRequest.prototype.send=function(e){e instanceof Blob&&this.setRequestHeader("Content-Type",e.type),n.call(this,e)});try{new File([],"")}catch(t){try{var r=new Function('class File extends Blob {constructor(chunks, name, opts) {opts = opts || {};super(chunks, opts || {});this.name = name;this.lastModifiedDate = opts.lastModified ? new Date(opts.lastModified) : new Date;this.lastModified = +this.lastModifiedDate;}};return new File([], ""), File')();e.File=r}catch(t){r=function(e,t,n){var r=new Blob(e,n),a=n&&void 0!==n.lastModified?new Date(n.lastModified):new Date;return r.name=t,r.lastModifiedDate=a,r.lastModified=+a,r.toString=function(){return"[object File]"},o&&(r[o]="File"),r},e.File=r}}}i?(d(),e.Blob=s?e.Blob:h):c?(d(),e.Blob=A):function(){function t(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t.push(r):r<2048?t.push(192|r>>6,128|63&r):r<55296||57344<=r?t.push(224|r>>12,128|r>>6&63,128|63&r):(n++,r=65536+((1023&r)<<10|1023&e.charCodeAt(n)),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r))}return t}function n(e){var t,n,r,a,o,i;for(t="",r=e.length,n=0;n<r;)switch((a=e[n++])>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:t+=String.fromCharCode(a);break;case 12:case 13:o=e[n++],t+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=e[n++],i=e[n++],t+=String.fromCharCode((15&a)<<12|(63&o)<<6|63&i)}return t}function o(e){for(var t=new Array(e.byteLength),n=new Uint8Array(e),r=t.length;r--;)t[r]=n[r];return t}function i(e){for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=[],r=0;r<e.length;r+=3){var a=e[r],o=r+1<e.length,i=o?e[r+1]:0,s=r+2<e.length,l=s?e[r+2]:0,c=a>>2,u=(3&a)<<4|i>>4,A=(15&i)<<2|l>>6,h=63&l;s||(h=64,o||(A=64)),n.push(t[c],t[u],t[A],t[h])}return n.join("")}var s=Object.create||function(e){function t(){}return t.prototype=e,new t};if(l)var c=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(e){return e&&-1<c.indexOf(Object.prototype.toString.call(e))};function A(e,n){for(var r=0,a=(e=e||[]).length;r<a;r++){var i=e[r];i instanceof A?e[r]=i._buffer:"string"==typeof i?e[r]=t(i):l&&(ArrayBuffer.prototype.isPrototypeOf(i)||u(i))?e[r]=o(i):l&&(s=i)&&DataView.prototype.isPrototypeOf(s)?e[r]=o(i.buffer):e[r]=t(String(i))}var s;this._buffer=[].concat.apply([],e),this.size=this._buffer.length,this.type=n&&n.type||""}function h(e,t,n){var r=A.call(this,e,n=n||{})||this;return r.name=t,r.lastModifiedDate=n.lastModified?new Date(n.lastModified):new Date,r.lastModified=+r.lastModifiedDate,r}if(A.prototype.slice=function(e,t,n){return new A([this._buffer.slice(e||0,t||this._buffer.length)],{type:n})},A.prototype.toString=function(){return"[object Blob]"},(h.prototype=s(A.prototype)).constructor=h,Object.setPrototypeOf)Object.setPrototypeOf(h,A);else try{h.__proto__=A}catch(s){}function d(){if(!(this instanceof d))throw new TypeError("Failed to construct 'FileReader': Please use the 'new' operator, this DOM object constructor cannot be called as a function.");var e=document.createDocumentFragment();this.addEventListener=e.addEventListener,this.dispatchEvent=function(t){var n=this["on"+t.type];"function"==typeof n&&n(t),e.dispatchEvent(t)},this.removeEventListener=e.removeEventListener}function p(e,t,n){if(!(t instanceof A))throw new TypeError("Failed to execute '"+n+"' on 'FileReader': parameter 1 is not of type 'Blob'.");e.result="",setTimeout(function(){this.readyState=d.LOADING,e.dispatchEvent(new Event("load")),e.dispatchEvent(new Event("loadend"))})}h.prototype.toString=function(){return"[object File]"},d.EMPTY=0,d.LOADING=1,d.DONE=2,d.prototype.error=null,d.prototype.onabort=null,d.prototype.onerror=null,d.prototype.onload=null,d.prototype.onloadend=null,d.prototype.onloadstart=null,d.prototype.onprogress=null,d.prototype.readAsD
2ataURL=function(e){p(this,e,"readAsDataURL"),this.result="data:"+e.type+";base64,"+i(e._buffer)},d.prototype.readAsText=function(e){p(this,e,"readAsText"),this.result=n(e._buffer)},d.prototype.readAsArrayBuffer=function(e){p(this,e,"readAsText"),this.result=e._buffer.slice()},d.prototype.abort=function(){},URL.createObjectURL=function(e){return e instanceof A?"data:"+e.type+";base64,"+i(e._buffer):r.call(URL,e)},URL.revokeObjectURL=function(e){a&&a.call(URL,e)};var f=e.XMLHttpRequest&&e.XMLHttpRequest.prototype.send;f&&(XMLHttpRequest.prototype.send=function(e){e instanceof A?(this.setRequestHeader("Content-Type",e.type),f.call(this,n(e._buffer))):f.call(this,e)}),e.FileReader=d,e.File=h,e.Blob=A}()}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")());var fe,me,ye,ge,be,ve,we,Be,Ce,Ne,Ee,xe,Se,Te,Fe,ke=ke||function(e){if(!(void 0===e||"undefined"!=typeof navigator&&/MSIE [1-9]\./.test(navigator.userAgent))){var t=e.document,n=function(){return e.URL||e.webkitURL||e},r=t.createElementNS("http://www.w3.org/1999/xhtml","a"),a="download"in r,o=/constructor/i.test(e.HTMLElement)||e.safari,i=/CriOS\/[\d]+/.test(navigator.userAgent),s=e.setImmediate||e.setTimeout,l=function(e){s(function(){throw e},0)},c=function(e){setTimeout(function(){"string"==typeof e?n().revokeObjectURL(e):e.remove()},4e4)},u=function(e){return/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e},A=function(t,A,h){h||(t=u(t));var d,p=this,f="application/octet-stream"===t.type,m=function(){!function(e,t){for(var n=(t=[].concat(t)).length;n--;){var r=e["on"+t[n]];if("function"==typeof r)try{r.call(e,e)}catch(e){l(e)}}}(p,"writestart progress write writeend".split(" "))};if(p.readyState=p.INIT,a)return d=n().createObjectURL(t),void s(function(){var e,t;r.href=d,r.download=A,e=r,t=new MouseEvent("click"),e.dispatchEvent(t),m(),c(d),p.readyState=p.DONE},0);!function(){if((i||f&&o)&&e.FileReader){var r=new FileReader;return r.onloadend=function(){var t=i?r.result:r.result.replace(/^data:[^;]*;/,"data:attachment/file;");e.open(t,"_blank")||(e.location.href=t),t=void 0,p.readyState=p.DONE,m()},r.readAsDataURL(t),p.readyState=p.INIT}d||(d=n().createObjectURL(t)),f?e.location.href=d:e.open(d,"_blank")||(e.location.href=d),p.readyState=p.DONE,m(),c(d)}()},h=A.prototype;return"undefined"!=typeof navigator&&navigator.msSaveOrOpenBlob?function(e,t,n){return t=t||e.name||"download",n||(e=u(e)),navigator.msSaveOrOpenBlob(e,t)}:(h.abort=function(){},h.readyState=h.INIT=0,h.WRITING=1,h.DONE=2,h.error=h.onwritestart=h.onprogress=h.onwrite=h.onabort=h.onerror=h.onwriteend=null,function(e,t,n){return new A(e,t||e.name||"download",n)})}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0);function Ue(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw"Invalid GIF 87a/89a header.";var n=e[t++]|e[t++]<<8,r=e[t++]|e[t++]<<8,a=e[t++],o=a>>7,i=1<<1+(7&a);e[t++],e[t++];var s=null;o&&(s=t,t+=3*i);var l=!0,c=[],u=0,A=null,h=0,d=null;for(this.width=n,this.height=r;l&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,d=e[t++]|e[t++]<<8,t++;else for(t+=12;0!==(N=e[t++]);)t+=N;break;case 249:if(4!==e[t++]||0!==e[t+4])throw"Invalid graphics extension block.";var p=e[t++];u=e[t++]|e[t++]<<8,A=e[t++],0==(1&p)&&(A=null),h=p>>2&7,t++;break;case 254:for(;0!==(N=e[t++]);)t+=N;break;default:throw"Unknown graphic control label: 0x"+e[t-1].toString(16)}break;case 44:var f=e[t++]|e[t++]<<8,m=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,b=e[t++],v=b>>6&1,w=s,B=!1;b>>7&&(B=!0,w=t,t+=3*(1<<1+(7&b)));var C=t;for(t++;;){var N;if(0===(N=e[t++]))break;t+=N}c.push({x:f,y:m,width:y,height:g,has_local_palette:B,palette_offset:w,data_offset:C,data_length:t-C,transparent_index:A,interlaced:!!v,delay:u,dis
2posal:h});break;case 59:l=!1;break;default:throw"Unknown gif block: 0x"+e[t-1].toString(16)}this.numFrames=function(){return c.length},this.loopCount=function(){return d},this.frameInfo=function(e){if(e<0||e>=c.length)throw"Frame index out of range.";return c[e]},this.decodeAndBlitFrameBGRA=function(t,r){var a=this.frameInfo(t),o=a.width*a.height,i=new Uint8Array(o);Le(e,a.data_offset,i,o);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=n-c,A=c,h=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),p=h,f=4*u;!0===a.interlaced&&(f+=4*(c+u)*7);for(var m=8,y=0,g=i.length;y<g;++y){var b=i[y];if(0===A&&(A=c,d<=(p+=f)&&(f=u+4*(c+u)*(m-1),p=h+(c+u)*(m<<1),m>>=1)),b===l)p+=4;else{var v=e[s+3*b],w=e[s+3*b+1],B=e[s+3*b+2];r[p++]=B,r[p++]=w,r[p++]=v,r[p++]=255}--A}},this.decodeAndBlitFrameRGBA=function(t,r){var a=this.frameInfo(t),o=a.width*a.height,i=new Uint8Array(o);Le(e,a.data_offset,i,o);var s=a.palette_offset,l=a.transparent_index;null===l&&(l=256);var c=a.width,u=n-c,A=c,h=4*(a.y*n+a.x),d=4*((a.y+a.height)*n+a.x),p=h,f=4*u;!0===a.interlaced&&(f+=4*(c+u)*7);for(var m=8,y=0,g=i.length;y<g;++y){var b=i[y];if(0===A&&(A=c,d<=(p+=f)&&(f=u+4*(c+u)*(m-1),p=h+(c+u)*(m<<1),m>>=1)),b===l)p+=4;else{var v=e[s+3*b],w=e[s+3*b+1],B=e[s+3*b+2];r[p++]=v,r[p++]=w,r[p++]=B,r[p++]=255}--A}}}function Le(e,t,n,r){for(var a=e[t++],o=1<<a,i=o+1,s=i+1,l=a+1,c=(1<<l)-1,u=0,A=0,h=0,d=e[t++],p=new Int32Array(4096),f=null;;){for(;u<16&&0!==d;)A|=e[t++]<<u,u+=8,1===d?d=e[t++]:--d;if(u<l)break;var m=A&c;if(A>>=l,u-=l,m!==o){if(m===i)break;for(var y=m<s?m:f,g=0,b=y;o<b;)b=p[b]>>8,++g;var v=b;if(r<h+g+(y!==m?1:0))return void console.log("Warning, gif stream longer than expected.");n[h++]=v;var w=h+=g;for(y!==m&&(n[h++]=v),b=y;g--;)b=p[b],n[--w]=255&b,b>>=8;null!==f&&s<4096&&(p[s++]=f<<8|v,c+1<=s&&l<12&&(++l,c=c<<1|1)),f=m}else s=i+1,c=(1<<(l=a+1))-1,f=null}return h!==r&&console.log("Warning, gif stream shorter than expected."),n}try{t.GifWriter=function(e,t,n,r){var a=0,o=void 0===(r=void 0===r?{}:r).loop?null:r.loop,i=void 0===r.palette?null:r.palette;if(t<=0||n<=0||65535<t||65535<n)throw"Width/Height invalid.";function s(e){var t=e.length;if(t<2||256<t||t&t-1)throw"Invalid code/color length, must be power of 2 and 2 .. 256.";return t}e[a++]=71,e[a++]=73,e[a++]=70,e[a++]=56,e[a++]=57,e[a++]=97;var l=0,c=0;if(null!==i){for(var u=s(i);u>>=1;)++l;if(u=1<<l,--l,void 0!==r.background){if(u<=(c=r.background))throw"Background index out of range.";if(0===c)throw"Background index explicitly passed as 0."}}if(e[a++]=255&t,e[a++]=t>>8&255,e[a++]=255&n,e[a++]=n>>8&255,e[a++]=(null!==i?128:0)|l,e[a++]=c,e[a++]=0,null!==i)for(var A=0,h=i.length;A<h;++A){var d=i[A];e[a++]=d>>16&255,e[a++]=d>>8&255,e[a++]=255&d}if(null!==o){if(o<0||65535<o)throw"Loop count invalid.";e[a++]=33,e[a++]=255,e[a++]=11,e[a++]=78,e[a++]=69,e[a++]=84,e[a++]=83,e[a++]=67,e[a++]=65,e[a++]=80,e[a++]=69,e[a++]=50,e[a++]=46,e[a++]=48,e[a++]=3,e[a++]=1,e[a++]=255&o,e[a++]=o>>8&255,e[a++]=0}var p=!1;this.addFrame=function(t,n,r,o,l,c){if(!0===p&&(--a,p=!1),c=void 0===c?{}
2:c,t<0||n<0||65535<t||65535<n)throw"x/y invalid.";if(r<=0||o<=0||65535<r||65535<o)throw"Width/Height invalid.";if(l.length<r*o)throw"Not enough pixels for the frame size.";var u=!0,A=c.palette;if(null==A&&(u=!1,A=i),null==A)throw"Must supply either a local or global palette.";for(var h=s(A),d=0;h>>=1;)++d;h=1<<d;var f=void 0===c.delay?0:c.delay,m=void 0===c.disposal?0:c.disposal;if(m<0||3<m)throw"Disposal out of range.";var y=!1,g=0;if(void 0!==c.transparent&&null!==c.transparent&&(y=!0,(g=c.transparent)<0||h<=g))throw"Transparent color index.";if((0!==m||y||0!==f)&&(e[a++]=33,e[a++]=249,e[a++]=4,e[a++]=m<<2|(!0===y?1:0),e[a++]=255&f,e[a++]=f>>8&255,e[a++]=g,e[a++]=0),e[a++]=44,e[a++]=255&t,e[a++]=t>>8&255,e[a++]=255&n,e[a++]=n>>8&255,e[a++]=255&r,e[a++]=r>>8&255,e[a++]=255&o,e[a++]=o>>8&255,e[a++]=!0===u?128|d-1:0,!0===u)for(var b=0,v=A.length;b<v;++b){var w=A[b];e[a++]=w>>16&255,e[a++]=w>>8&255,e[a++]=255&w}a=function(e,t,n,r){e[t++]=n;var a=t++,o=1<<n,i=o-1,s=o+1,l=s+1,c=n+1,u=0,A=0;function h(n){for(;n<=u;)e[t++]=255&A,A>>=8,u-=8,t===a+256&&(e[a]=255,a=t++)}function d(e){A|=e<<u,u+=c,h(8)}var p=r[0]&i,f={};d(o);for(var m=1,y=r.length;m<y;++m){var g=r[m]&i,b=p<<8|g,v=f[b];if(void 0===v){for(A|=p<<u,u+=c;8<=u;)e[t++]=255&A,A>>=8,u-=8,t===a+256&&(e[a]=255,a=t++);4096===l?(d(o),l=s+1,c=n+1,f={}):(1<<c<=l&&++c,f[b]=l++),p=g}else p=v}return d(p),d(s),h(1),a+1===t?e[a]=0:(e[a]=t-a-1,e[t++]=0),t}(e,a,d<2?2:d,l)},this.end=function(){return!1===p&&(e[a++]=59,p=!0),a}},t.GifReader=Ue}catch(i){}function Oe(e){var t,n,r,a,o,i=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),A=new Array(65535),h=new Array(65535),d=new Array(64),p=new Array(64),f=[],m=0,y=7,g=new Array(64),b=new Array(64),v=new Array(64),w=new Array(256),B=new Array(2048),C=[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],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],E=[0,1,2,3,4,5,6,7,8,9,10,11],x=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],S=[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],T=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],F=[0,1,2,3,4,5,6,7,8,9,10,11],k=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],U=[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 L(e,t){for(var n=0,r=0,a=new Array,o=1;o<=16;o++){for(var i=1;i<=e[o];i++)a[t[r]]=[],a[t[r]][0]=n,a[t[r]][1]=o,r++,n++;n*=2}return a}function O(e){for(var t=e[0],n=e[1]-1;0<=n;)t&1<<n&&(m|=1<<y),n--,--y<0&&(255==m?(I(255),I(0)):I(m),y=7,m=0)}function I(e){f.push(e)}function Q(e){I(e>>8&255),I(255&e)}function H(e,t,n,r,a){for(var o,i=a[0],s=a[240],l=function(e,t){var n,r,a,o,i,s,l,c,u,A,h=0;for(u=0;u<8;++u){n=e[h],r=e[h+1],a=e[h+2],o=e[h+3],i=e[h+4],s=e[h+5],l=e[h+6];var p=n+(c=e[h+7]),f=n-c,m=r+l,y=r-l,g=a+s,b=a-s,v=o+i,w=o-i,B=p+v,C=p-v,N=m+g,E=m-g;e[h]=B+N,e[h+4]=B-N;var x=.707106781*(E+C);e[h+2]=C+x,e[h+6]=C-x;var S=.382683433*((B=w+b)-(E=y+f)),T=.5411961*B+S,F=1.306562965*E+S,k=.707106781*(N=b+y),U=f+k,L=f-k;e[h+5]=L+T,e[h+3]=L-T,e[h+1]=U+F,e[h+7]=U-F,h+=8}for(u=h=0;u<8;++u){n=e[h],r=e[h+8],a=e[h+16],o=e[h+24],i=e[h+32],s=e[h+40],l=e[h+48];var O=n+(c=e[h+56]),I=n-c,Q=r+l,H=r-l,R=a+s,P=a-s,D=o+i,M=o-i,_=O
2+D,j=O-D,K=Q+R,z=Q-R;e[h]=_+K,e[h+32]=_-K;var W=.707106781*(z+j);e[h+16]=j+W,e[h+48]=j-W;var V=.382683433*((_=M+P)-(z=H+I)),G=.5411961*_+V,q=1.306562965*z+V,Y=.707106781*(K=P+H),X=I+Y,J=I-Y;e[h+40]=J+G,e[h+24]=J-G,e[h+8]=X+q,e[h+56]=X-q,h++}for(u=0;u<64;++u)A=e[u]*t[u],d[u]=0<A?A+.5|0:A-.5|0;return d}(e,t),c=0;c<64;++c)p[C[c]]=l[c];var u=p[0]-n;n=p[0],0==u?O(r[0]):(O(r[h[o=32767+u]]),O(A[o]));for(var f=63;0<f&&0==p[f];f--);if(0==f)return O(i),n;for(var m,y=1;y<=f;){for(var g=y;0==p[y]&&y<=f;++y);var b=y-g;if(16<=b){m=b>>4;for(var v=1;v<=m;++v)O(s);b&=15}o=32767+p[y],O(a[(b<<4)+h[o]]),O(A[o]),y++}return 63!=f&&O(i),n}function R(e){e<=0&&(e=1),100<e&&(e=100),o!=e&&(function(e){for(var t=[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],n=0;n<64;n++){var r=i((t[n]*e+50)/100);r<1?r=1:255<r&&(r=255),s[C[n]]=r}for(var a=[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],o=0;o<64;o++){var A=i((a[o]*e+50)/100);A<1?A=1:255<A&&(A=255),l[C[o]]=A}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],d=0,p=0;p<8;p++)for(var f=0;f<8;f++)c[d]=1/(s[C[d]]*h[p]*h[f]*8),u[d]=1/(l[C[d]]*h[p]*h[f]*8),d++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){var i,A;(new Date).getTime(),o&&R(o),f=new Array,m=0,y=7,Q(65496),Q(65504),Q(16),I(74),I(70),I(73),I(70),I(0),I(1),I(1),I(0),Q(1),Q(1),I(0),I(0),function(){Q(65499),Q(132),I(0);for(var e=0;e<64;e++)I(s[e]);I(1);for(var t=0;t<64;t++)I(l[t])}(),i=e.width,A=e.height,Q(65472),Q(17),I(8),Q(A),Q(i),I(3),I(1),I(17),I(0),I(2),I(17),I(1),I(3),I(17),I(1),function(){Q(65476),Q(418),I(0);for(var e=0;e<16;e++)I(N[e+1]);for(var t=0;t<=11;t++)I(E[t]);I(16);for(var n=0;n<16;n++)I(x[n+1]);for(var r=0;r<=161;r++)I(S[r]);I(1);for(var a=0;a<16;a++)I(T[a+1]);for(var o=0;o<=11;o++)I(F[o]);I(17);for(var i=0;i<16;i++)I(k[i+1]);for(var s=0;s<=161;s++)I(U[s])}(),Q(65498),Q(12),I(3),I(1),I(0),I(2),I(17),I(3),I(17),I(0),I(63),I(0);var h=0,d=0,p=0;m=0,y=7,this.encode.displayName="_encode_";for(var w,C,L,P,D,M,_,j,K,z=e.data,W=e.width,V=e.height,G=4*W,q=0;q<V;){for(w=0;w<G;){for(M=D=G*q+w,_=-1,K=j=0;K<64;K++)M=D+(j=K>>3)*G+(_=4*(7&K)),V<=q+j&&(M-=G*(q+1+j-V)),G<=w+_&&(M-=w+_-G+4),C=z[M++],L=z[M++],P=z[M++],g[K]=(B[C]+B[L+256|0]+B[P+512|0]>>16)-128,b[K]=(B[C+768|0]+B[L+1024|0]+B[P+1280|0]>>16)-128,v[K]=(B[C+1280|0]+B[L+1536|0]+B[P+1792|0]>>16)-128;h=H(g,c,h,t,r),d=H(b,u,d,n,a),p=H(v,u,p,n,a),w+=32}q+=8}if(0<=y){var Y=[];Y[1]=y+1,Y[0]=(1<<y+1)-1,O(Y)}return Q(65497),new Uint8Array(f)},(new Date).getTime(),e||(e=50),function(){for(var e=String.fromCharCode,t=0;t<256;t++)w[t]=e(t)}(),t=L(N,E),n=L(T,F),r=L(x,S),a=L(k,U),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var r=e;r<t;r++)h[32767+r]=n,A[32767+r]=[],A[32767+r][1]=n,A[32767+r][0]=r;for(var a=-(t-1);a<=-e;a++)h[32767+a]=n,A[32767+a]=[],A[32767+a][1]=n,A[32767+a][0]=t-1+a;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)B[e]=19595*e,B[e+256|0]=38470*e,B[e+512|0]=7471*e+32768,B[e+768|0]=-11059*e,B[e+1024|0]=-21709*e,B[e+1280|0]=32768*e+8421375,B[e+1536|0]=-27439*e,B[e+1792|0]=-5329*e}(),R(e),(new Date).getTime()}function Ie(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}window.tmp=Ue,pe.API.adler32cs=(ve="function"==typeof ArrayBuffer&&"function"==typeof Uint8Array,we=null,Be=function(){if(!ve)return function(){return!1};try{var e={};"function"==typeof e.Buffer&&(we=e.Buffer)}catch(e){}return function(e){return e instanceof ArrayBuffer||null!==we&&e instanceof we}}(),Ce=null!==we?function(e){return new we(e,"utf8").toString("binary")}:function(e){return unescape(encodeURIComponent(e))},Ne=function(e,t){for(var n=65535&e,r=e>>>16,a=0,o=t.length;a<o;a++)r=(r+(n=(n+(255&t.charCodeAt(a)))%65521))%65521;return(r<<16|n)>>>0},Ee=function(e,t){for(var n=65535&e,r=e>>>16,a=0,o=t.length;a<o;a++)r=(r+(n=(n+t[a])%65521))%65521;return(r<<16|n)>>>0},Se=(xe={}).Adler32=(((be=(ge=function(e){if(!(this instanceof ge))throw new TypeError("Constructor cannot called be as a function.");
2if(!isFinite(e=null==e?1:+e))throw new Error("First arguments needs to be a finite number.");this.checksum=e>>>0}).prototype={}).constructor=ge).from=((fe=function(e){if(!(this instanceof ge))throw new TypeError("Constructor cannot called be as a function.");if(null==e)throw new Error("First argument needs to be a string.");this.checksum=Ne(1,e.toString())}).prototype=be,fe),ge.fromUtf8=((me=function(e){if(!(this instanceof ge))throw new TypeError("Constructor cannot called be as a function.");if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());this.checksum=Ne(1,t)}).prototype=be,me),ve&&(ge.fromBuffer=((ye=function(e){if(!(this instanceof ge))throw new TypeError("Constructor cannot called be as a function.");if(!Be(e))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(e);return this.checksum=Ee(1,t)}).prototype=be,ye)),be.update=function(e){if(null==e)throw new Error("First argument needs to be a string.");return e=e.toString(),this.checksum=Ne(this.checksum,e)},be.updateUtf8=function(e){if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());return this.checksum=Ne(this.checksum,t)},ve&&(be.updateBuffer=function(e){if(!Be(e))throw new Error("First argument needs to be ArrayBuffer.");var t=new Uint8Array(e);return this.checksum=Ee(this.checksum,t)}),be.clone=function(){return new Se(this.checksum)},ge),xe.from=function(e){if(null==e)throw new Error("First argument needs to be a string.");return Ne(1,e.toString())},xe.fromUtf8=function(e){if(null==e)throw new Error("First argument needs to be a string.");var t=Ce(e.toString());return Ne(1,t)},ve&&(xe.fromBuffer=function(e){if(!Be(e))throw new Error("First argument need to be ArrayBuffer.");var t=new Uint8Array(e);return Ee(1,t)}),xe),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,r,a,o,i,s,l,c=t,u=[[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]],A=[[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]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},d={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},p=["(",")","(","<",">","<","[","]","[","{","}","{","\xab","\xbb","\xab","\u2039","\u203a","\u2039","\u2045","\u2046","\u2045","\u207d","\u207e","\u207d","\u208d","\u208e","\u208d","\u2264","\u2265","\u2264","\u2329","\u232a","\u2329","\ufe59","\ufe5a","\ufe59","\ufe5b","\ufe5c","\ufe5b","\ufe5d","\ufe5e","\ufe5d","\ufe64","\ufe65","\ufe64"],f=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)$/),m=!1,y=0;this.__bidiEngine__={};var g=function(e){var t=e.charCodeAt(),n=t>>8,r=d[n];return void 0!==r?c[256*r+(255&t)]:252===n||253===n?"AL":f.test(n)?"L":8===n?"R":"N"},b=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=g(e.charAt(n))))return!1;if("R"===t)return!0}return!1},v=function(e,t,i,s){var l,c,u,A,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(h="AN");break;case"AL":m=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=i[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?h="N":m&&(c="AN"),h=c===l?c:"N";break;case"ES":h="EN"===(l=0<s?i[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(0<s&&"EN"===i[s-1]){h="EN";break}if(m){h="N";break}for(u=s+1,A=t.length;u<A&&"ET"===t[u];)u++;h=u<A&&"EN"===t[u]?"EN":"N";break;case"NSM":if(a&&!o){for(A=t.length,u=s+1;u<A&&"NSM"===t[u];)u++;if(u<A){var d=e[s],p=1425<=d&&d<=2303||64286===d;if(l=t[u],p&&("R"===l||"AL"===l)){h="R";break}}}h=s<1||"B"===(l=t[s-1])?"N":i[s-1];break;case"B":n=!(m=!1),h=y;break;case"S":r=!0,h="N"}return h},w=function(e,t,n){var r=e.split("");return n&&B(r,n,{hiLevel:y}),r.reverse(),t&&t.reverse(),r.join("")},B=function(e,t,a){var o,i,s,l,c,d=-1,p=e.length,f=0,b=[],w=y?A:u,B=[];for(r=n=m=!1,i=0;i<p;i++)B[i]=g(e[i]);for(s=0;s<p;s++){if(c=f,b[s]=v(e,B,b,s),o=240&(f=w[c][h[b[s]]]),f&=15,t[s]=l=w[f][5],0<o)if(16===o){for(i=d;i<s;i++)t[i]=1;d=-1}else d=-1;if(w[f][6])-1===d&&(d=s);else if(-1<d){for(i=d;i<s;i++)t[i]=l;d=-1}"B"===B[s]&&(t[s]=0),a.hiLevel|=l}r&&function(e,t,n){for(var r=0;r<n;r++)if("S"===e[r]){t[r]=y;for(var a=r-1;0<=a&&"WS"===e[a];a--)t[a]=y}}(B,t,p)},C=function(e,t,r,a,o){if(!(o.hiLevel<e)){if(1===e&&1===y&&!n)return t.reverse(),void(r&&r.reverse());for(var i,s,l,c,u=t.length,A=0;A<u;){if(a[A]>=e){for(l=A+1;l<u&&a[l]>=e;)l++;for(c=A,s=l-1;c<s;c++,s--)i=t[c],t[c]=t[s],t[s]=i,r&&(i=r[c],r[c]=r[s],r[s]=i);A=l}A++}}},N=function(e,t,n){var r=e.split(""),a={hiLevel:y};return n||(n=[]),B(r,n,a),function(e,t,n){if(0!==n.hiLevel&&l)for(var r,a=0;a<e.length;a++)1===t[a]&&0<=(r=p.indexOf(e[a]))&&(e[a]=p[r+1])}(r,n,a),C(2,r,t,n,a),C(1,r,t,n,a),r.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===o&&(o=b(e)),void 0===s&&(s=b(e))}(e,t),a||!i||s)if(a&&i&&o^s)y=o?1:0,e=w(e,t,n);else if(!a&&i&&s)y=o?1:0,e=N(e,t,n),e=w(e,t);
vendor: 10,356 bytes, line 2
2else if(!a||o||i||s){if(a&&!i&&o^s)e=w(e,t),e=o?(y=0,N(e,t,n)):(y=1,e=N(e,t,n),w(e,t));else if(a&&o&&!i&&s)y=1,e=N(e,t,n),e=w(e,t);else if(!a&&!i&&o^s){var r=l;o?(y=1,e=N(e,t,n),y=0,l=!1,e=N(e,t,n),l=r):(y=0,e=N(e,t,n),e=w(e,t),l=!(y=1),e=N(e,t,n),l=r,e=w(e,t))}}else y=0,e=N(e,t,n);else y=o?1:0,e=N(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(a=e.isInputVisual,i=e.isOutputVisual,o=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["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"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,r=(e.x,e.y,e.options||{}),a=(e.mutex,r.lang,[]);if("[object Array]"===Object.prototype.toString.call(t)){var o=0;for(a=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?a.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]
2):a.push([n.doBidiReorder(t[o])]);e.text=a}else e.text=n.doBidiReorder(t)}])}(pe),window.tmp=Oe,Ie.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,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Ie.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){console.log("bit decode error:"+e)}},Ie.prototype.bit1=function(){var e=Math.ceil(this.width/8),t=e%4,n=0<=this.height?this.height-1:-this.height;for(n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<e;a++)for(var o=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+8*a*4,s=0;s<8&&8*a+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[i+4*s]=l.blue,this.data[i+4*s+1]=l.green,this.data[i+4*s+2]=l.red,this.data[i+4*s+3]=255}0!=t&&(this.pos+=4-t)}},Ie.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<e;a++){var o=this.datav.getUint8(this.pos++,!0),i=r*this.width*4+2*a*4,s=o>>4,l=15&o,c=this.palette[s];if(this.data[i]=c.blue,this.data[i+1]=c.green,this.data[i+2]=c.red,this.data[i+3]=255,2*a+1>=this.width)break;c=this.palette[l],this.data[i+4]=c.blue,this.data[i+4+1]=c.green,this.data[i+4+2]=c.red,this.data[i+4+3]=255}0!=t&&(this.pos+=4-t)}},Ie.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;0<=t;t--){for(var n=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*r;if(a<this.palette.length){var i=this.palette[a];this.data[o]=i.red,this.data[o+1]=i.green,this.data[o+2]=i.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!=e&&(this.pos+=4-e)}},Ie.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;0<=n;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var i=(o&t)/t*255|0,s=(o>>5&t)/t*255|0,l=(o>>10&t)/t*255|0,c=o>>15?255:0,u=r*this.width*4+4*a;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=i,this.data[u+3]=c}this.pos+=e}},Ie.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),r=this.height-1;0<=r;r--){for(var a=this.bottom_up?r:this.height-1-r,o=0;o<this.width;o++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(i&t)/t*255|0,l=(i>>5&n)/n*255|0,c=(i>>11)/t*255|0,u=a*this.width*4+4*o;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},Ie.prototype.bit24=function(){for(var e=this.height-1;0<=e;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*n;this.data[i]=o,this.data[i+1]=a,this.data[i+2]=r,this.data[i+3]=255}this.pos+=this.width%4}},Ie.prototype.bit32=function(){for(var e=this.height-1;0<=e;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=a,this.data[s+2]=r,this.data[s+3]=i}},Ie.prototype.getData=function(){return this.data},window.tmp=Ie,function(e){var t=[0,1,2,3,4,4,5,5,6,6,6,6,7,7,7,7,8,8,8,8,8,8,8,8,9,9,9,9,9,9,9,9,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,10,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,11,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,12,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,15,0,0,16,17,18,18,19,19,20,20,20,20,21,21,21,21,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29];function n(){var e=this;function t(e,t){for(var n=0;n|=1&e,e>>>=1,n<<=1,0<--t;);return n>>>1}e.build_tree=function(n){var r,a,o,i=e.dyn_tree,s=e.stat_desc.static_tree,l=e.stat_desc.elems,c=-1;for(n.heap_len=0,n.heap_max=573,r=0;r<l;r++)0!==i[2*r]?(n.heap[++n.heap_len]=c=r,n.depth[r]=0):i[2*r+1]=0;for(;n.heap_len<2;)i[2*(o=n.heap[++n.heap_len]=c<2?++c:0)]=1,n.depth[o]=0,n.opt_len--,s&&(n.static_len-=s[2*o+1]
2);for(e.max_code=c,r=Math.floor(n.heap_len/2);1<=r;r--)n.pqdownheap(i,r);for(o=l;r=n.heap[1],n.heap[1]=n.heap[n.heap_len--],n.pqdownheap(i,1),a=n.heap[1],n.heap[--n.heap_max]=r,n.heap[--n.heap_max]=a,i[2*o]=i[2*r]+i[2*a],n.depth[o]=Math.max(n.depth[r],n.depth[a])+1,i[2*r+1]=i[2*a+1]=o,n.heap[1]=o++,n.pqdownheap(i,1),2<=n.heap_len;);n.heap[--n.heap_max]=n.heap[1],function(t){var n,r,a,o,i,s,l=e.dyn_tree,c=e.stat_desc.static_tree,u=e.stat_desc.extra_bits,A=e.stat_desc.extra_base,h=e.stat_desc.max_length,d=0;for(o=0;o<=15;o++)t.bl_count[o]=0;for(l[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<573;n++)h<(o=l[2*l[2*(r=t.heap[n])+1]+1]+1)&&(o=h,d++),l[2*r+1]=o,r>e.max_code||(t.bl_count[o]++,i=0,A<=r&&(i=u[r-A]),s=l[2*r],t.opt_len+=s*(o+i),c&&(t.static_len+=s*(c[2*r+1]+i)));if(0!==d){do{for(o=h-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[h]--,d-=2}while(0<d);for(o=h;0!==o;o--)for(r=t.bl_count[o];0!==r;)(a=t.heap[--n])>e.max_code||(l[2*a+1]!=o&&(t.opt_len+=(o-l[2*a+1])*l[2*a],l[2*a+1]=o),r--)}}(n),function(e,n,r){var a,o,i,s=[],l=0;for(a=1;a<=15;a++)s[a]=l=l+r[a-1]<<1;for(o=0;o<=n;o++)0!==(i=e[2*o+1])&&(e[2*o]=t(s[i]++,i))}(i,e.max_code,n.bl_count)}}function r(e,t,n,r,a){this.static_tree=e,this.extra_bits=t,this.extra_base=n,this.elems=r,this.max_length=a}function a(e,t,n,r,a){this.good_length=e,this.max_lazy=t,this.nice_length=n,this.max_chain=r,this.func=a}n._length_code=[0,1,2,3,4,5,6,7,8,8,9,9,10,10,11,11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,16,16,16,16,17,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,28],n.base_length=[0,1,2,3,4,5,6,7,8,10,12,14,16,20,24,28,32,40,48,56,64,80,96,112,128,160,192,224,0],n.base_dist=[0,1,2,3,4,6,8,12,16,24,32,48,64,96,128,192,256,384,512,768,1024,1536,2048,3072,4096,6144,8192,12288,16384,24576],n.d_code=function(e){return e<256?t[e]:t[256+(e>>>7)]},n.extra_lbits=[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],n.extra_dbits=[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],n.extra_blbits=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],n.bl_order=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],r.static_ltree=[12,8,140,8,76,8,204,8,44,8,172,8,108,8,236,8,28,8,156,8,92,8,220,8,60,8,188,8,124,8,252,8,2,8,130,8,66,8,194,8,34,8,162,8,98,8,226,8,18,8,146,8,82,8,210,8,50,8,178,8,114,8,242,8,10,8,138,8,74,8,202,8,42,8,170,8,106,8,234,8,26,8,154,8,90,8,218,8,58,8,186,8,122,8,250,8,6,8,134,8,70,8,198,8,38,8,166,8,102,8,230,8,22,8,150,8,86,8,214,8,54,8,182,8,118,8,246,8,14,8,142,8,78,8,206,8,46,8,174,8,110,8,238,8,30,8,158,8,94,8,222,8,62,8,190,8,126,8,254,8,1,8,129,8,65,8,193,8,33,8,161,8,97,8,225,8,17,8,145,8,81,8,209,8,49,8,177,8,113,8,241,8,9,8,137,8,73,8,201,8,41,8,169,8,105,8,233,8,25,8,153,8,89,8,217,8,57,8,185,8,121,8,249,8,5,8,133,8,69,8,197,8,37,8,165,8,101,8,229,8,21,8,149,8,85,8,213,8,53,8,181,8,117,8,245,8,13,8,141,8,77,8,205,8,45,8,173,8,109,8,237,8,29,8,157,8,93,8,221,8,61,8,189,8,125,8,253,8,19,9,275,9,147,9,403,9,83,9,339,9,211,9,467,9,51,9,307,9,179,9,435,9,115,9,371,9,243,9,499,9,11,9,267,9,139,9,395,9,75,9,331,9,203,9,459,9,43,9,299,9,171,9,427,9,107,9,363,9,235,9,491,9,27,9,283,9,155,9,411,9,91,9,347,9,219,9,475,9,59,9,315,9,187,9,443,9,123,9,379,9,251,9,507,9,7,9,263,9,135,9,391,9,71,9,327,9,199,9,455,9,39,9,295,9,167,9,423,9,103,9,359,9,231,9,487,9,23,9,279,9,151,9,407,9,87,9,343,9,215,9,471,9,55,9,311,9,183,9,439,9,119,9,375,9,247,9,503,9,15,9,271,9,143,9,399,9,79,9,335,9,207,9,463,9,47,9,303,9,175,9,431,9,111,9,367,9,239,9,495,9,31,9,287,9,159,9,415,9,95,9,351,9,223,9,479,9,63,9,319,9,191,9,447,9,127,9,383,9,255,9,511,9,0,7,64,7,32,7,96,7,16,7,80,7,48,7,112,7,8,7,72,7,40,7,104,7,24,7,88,7,56,7,120,7,4,7,68,7,36,7,100,7,20,7,84,7,52,7,116,7,3,8,131,8,67,8,195,8,35,8,163,8,99,8,227,8],r.static_dtree=[0,5,16,5,8,5,24,5,4,5,20,5,12,5,28,5,2,5,18,5,10,5,26,5,6,5,22,5,14,5,30,5,1,5,17,5,9,5,25,5,5,5,21,5,13,5,29,5,3,5,19,5,11,5,27,5,7,5,23,5],r.static_l_desc=new r(r.static_ltree,n.extra_lbits,257,286,15),r.static_d_desc=new r(r.static_dtree,n.extra_dbits,0,30,15),r.static_bl_desc=new r(null,n.extra_blbits,0,19,7);var o=[new a(0,0,0,0,0),new a(4,4,8,4,1),new a(4,5,16,8,1),new a(4,6,32,32,1),new a(4,4,16,16,2),new a(8,16,32,32,2),new a(8,16,128,128,2),new a(8,32,128,256,2),new a(32,128,258,1024,2),new a(32,258,258,4096,2)],i=["need dictionary","stream end","","","stream error","data error","","buffer error","",""];function s(e,t,n,r){var a=e[2*t],o=e[2*n];return a<o||a==o&&r[t]<=r[n]}function l(){var e,t,a,l,c,u,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T,F,k,U,L,O,I,Q,H,R,P,D,M,_,j,K,z,W,V=this,G=new n,q=new n,Y=new n;function X(){var e;
2for(e=0;e<286;e++)Q[2*e]=0;for(e=0;e<30;e++)H[2*e]=0;for(e=0;e<19;e++)R[2*e]=0;Q[512]=1,V.opt_len=V.static_len=0,M=j=0}function J(e,t){var n,r,a=-1,o=e[1],i=0,s=7,l=4;for(0===o&&(s=138,l=3),e[2*(t+1)+1]=65535,n=0;n<=t;n++)r=o,o=e[2*(n+1)+1],++i<s&&r==o||(i<l?R[2*r]+=i:0!==r?(r!=a&&R[2*r]++,R[32]++):i<=10?R[34]++:R[36]++,a=r,l=(i=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4))}function Z(e){V.pending_buf[V.pending++]=e}function $(e){Z(255&e),Z(e>>>8&255)}function ee(e,t){var n,r=t;16-r<W?($(z|=(n=e)<<W&65535),z=n>>>16-W,W+=r-16):(z|=e<<W&65535,W+=r)}function te(e,t){var n=2*e;ee(65535&t[n],65535&t[n+1])}function ne(e,t){var n,r,a=-1,o=e[1],i=0,s=7,l=4;for(0===o&&(s=138,l=3),n=0;n<=t;n++)if(r=o,o=e[2*(n+1)+1],!(++i<s&&r==o)){if(i<l)for(;te(r,R),0!=--i;);else 0!==r?(r!=a&&(te(r,R),i--),te(16,R),ee(i-3,2)):i<=10?(te(17,R),ee(i-3,3)):(te(18,R),ee(i-11,7));a=r,l=(i=0)===o?(s=138,3):r==o?(s=6,3):(s=7,4)}}function re(){16==W?($(z),W=z=0):8<=W&&(Z(255&z),z>>>=8,W-=8)}function ae(e,t){var r,a,o;if(V.pending_buf[_+2*M]=e>>>8&255,V.pending_buf[_+2*M+1]=255&e,V.pending_buf[P+M]=255&t,M++,0===e?Q[2*t]++:(j++,e--,Q[2*(n._length_code[t]+256+1)]++,H[2*n.d_code(e)]++),0==(8191&M)&&2<U){for(r=8*M,a=E-w,o=0;o<30;o++)r+=H[2*o]*(5+n.extra_dbits[o]);if(r>>>=3,j<Math.floor(M/2)&&r<Math.floor(a/2))return!0}return M==D-1}function oe(e,t){var r,a,o,i,s=0;if(0!==M)for(;r=V.pending_buf[_+2*s]<<8&65280|255&V.pending_buf[_+2*s+1],a=255&V.pending_buf[P+s],s++,0===r?te(a,e):(te((o=n._length_code[a])+256+1,e),0!==(i=n.extra_lbits[o])&&ee(a-=n.base_length[o],i),te(o=n.d_code(--r),t),0!==(i=n.extra_dbits[o])&&ee(r-=n.base_dist[o],i)),s<M;);te(256,e),K=e[513]}function ie(){8<W?$(z):0<W&&Z(255&z),W=z=0}function se(e,t,n){var r,a;ee(0+(n?1:0),3),r=e,a=t,ie(),K=8,$(a),$(~a),V.pending_buf.set(h.subarray(r,r+a),V.pending),V.pending+=a}function le(t){(function(e,t,a){var o,i,s=0;0<U?(G.build_tree(V),q.build_tree(V),s=function(){var e;for(J(Q,G.max_code),J(H,q.max_code),Y.build_tree(V),e=18;3<=e&&0===R[2*n.bl_order[e]+1];e--);return V.opt_len+=3*(e+1)+5+5+4,e}(),o=V.opt_len+3+7>>>3,(i=V.static_len+3+7>>>3)<=o&&(o=i)):o=i=t+5,t+4<=o&&-1!=e?se(e,t,a):i==o?(ee(2+(a?1:0),3),oe(r.static_ltree,r.static_dtree)):(ee(4+(a?1:0),3),function(e,t,r){var a;for(ee(e-257,5),ee(t-1,5),ee(r-4,4),a=0;a<r;a++)ee(R[2*n.bl_order[a]+1],3);ne(Q,e-1),ne(H,t-1)}(G.max_code+1,q.max_code+1,s+1),oe(Q,H)),X(),a&&ie()})(0<=w?w:-1,E-w,t),w=E,e.flush_pending()}function ce(){var t,n,r,a;do{if(0==(a=d-S-E)&&0===E&&0===S)a=c;else if(-1==a)a--;else if(c+c-262<=E){for(h.set(h.subarray(c,c+c),0),x-=c,E-=c,w-=c,r=t=y;n=65535&f[--r],f[r]=c<=n?n-c:0,0!=--t;);for(r=t=c;n=65535&p[--r],p[r]=c<=n?n-c:0,0!=--t;);a+=c}if(0===e.avail_in)return;t=e.read_buf(h,E+S,a),3<=(S+=t)&&(m=((m=255&h[E])<<v^255&h[E+1])&b)}while(S<262&&0!==e.avail_in)}function ue(e){var t,n,r=F,a=E,o=T,i=c-262<E?E-(c-262):0,s=I,l=A,u=E+258,d=h[a+o-1],f=h[a+o];O<=T&&(r>>=2),S<s&&(s=S);do{if(h[(t=e)+o]==f&&h[t+o-1]==d&&h[t]==h[a]&&h[++t]==h[a+1]){a+=2,t++;do{}while(h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&h[++a]==h[++t]&&a<u);if(n=258-(u-a),a=u-258,o<n){if(x=e,s<=(o=n))break;d=h[a+o-1],f=h[a+o]}}}while((e=65535&p[e&l])>i&&0!=--r);return o<=S?o:S}function Ae(e){return e.total_in=e.total_out=0,e.msg=null,V.pending=0,V.pending_out=0,t=113,l=0,G.dyn_tree=Q,G.stat_desc=r.static_l_desc,q.dyn_tree=H,q.stat_desc=r.static_d_desc,Y.dyn_tree=R,Y.stat_desc=r.static_bl_desc,W=z=0,K=8,X(),function(){var e;for(d=2*c,e=f[y-1]=0;e<y-1;e++)f[e]=0;k=o[U].max_lazy,O=o[U].good_length,I=o[U].nice_length,F=o[U].max_chain,B=T=2,m=N=S=w=E=0}(),0}V.depth=[],V.bl_count=[],V.heap=[],Q=[],H=[],R=[],V.pqdownheap=function(e,t){for(var n=V.heap,r=n[t],a=t<<1;a<=V.heap_len&&(a<V.heap_len&&s(e,n[a+1],n[a],V.depth)&&a++,!s(e,r,n[a],V.depth));)n[t]=n[a],t=a,a<<=1;n[t]=r},V.deflateInit=function(e,t,n,r,o,i){return r||(r=8),o||(o=8),i||(i=0),e.msg=null,-1==t&&(t=6),o<1||9<o||8!=r||n<9||15<n||t<0||9<t||i<0||2<i?-2:(e.dstate=V,A=(c=1<<(u=n))-1,b=(y=1<<(g=o+7))-1,v=Math.floor((g+3-1)/3),h=new Uint8Array(2*c),p=[],f=[],D=1<<o+6,V.pending_buf=new Uint8Array(4*D),a=4*D,_=Math.floor(D/2),P=3*D,U=t,L=i,Ae(e))},V.deflateEnd=function(){return 42!=t&&113!=t&&666!=t?-2:(V.pending_buf=null,h=p=f=null,V.dstate=null,113==t?-3:0)},V.deflateParams=function(e,t,n){var r=0;return-1==t&&(t=6),t<0||9<t||n<0||2<n?-2:(o[U].func!=o[t].func&&0!==e.total_in&&(r=e.deflate(1)),U!=t&&(k=o[U=t].max_lazy,O=o[U].good_length,I=o[U].nice_length,F=o[U].max_chain),L=n,r)},V.deflateSetDictionary=function(e,n,r){var a,o=r,i=0;if(!n||42!=t)return-2;if(o<3)return 0;for(c-262<o&&(i=r-(o=c-262)),h.set(n.subarray(i,i+o),0),w=E=o,m=((m=255&h[0])<<v^255&h[1])&b,a=0;a<=o-3;a++)m=(m<<v^255&h[a+2])&b,p[a&A]=f[m],f[m]=a;return 0},V.deflate=function(n,s){var d,g,F,O,I,Q;if(4<s||s<0)return-2;if(!n.next_out||!n.next_in&&0!==n.avail_in||666==t&&4!=s)return n.msg=i[4],-2;if(0===n.avail_out)return n.msg=i[7],-5;if(e=n,O=l,l=s,42==t&&(g=8+(u-8<<4)<<8,3<(F=(U-1&255)>>1)&&(F=3),g|=F<<6,0!==E&&(g|=32),t=113,Z((Q=g+=31-g%31)>>8&255),Z(255&Q)),0!==V.pending){if(e.flush_pending(),0===e.avail_out)return l=-1,0}else if(0===e.avail_in&&s<=O&&4!=s)return e.msg=i[7],-5;if(666==t&&0!==e.avail_in)return n.msg=i[7],-5;if(0!==e.avail_in||0!==S||0!=s&&666!=t){switch(I=-1,o[U].func){case 0:I=function(t){var n,r=65535;for(a-5<r&&(r=a-5);;){if(S<=1){if(ce(),0===S&&0==t)return 0;if(0===S)break}if(E+=S,n=w+r,((S=0)===E||n<=E)&&(S=E-n,E=n,le(!1),0===e.avail_out))return 0;if(c-262<=E-w&&(le(!1),0===e.avail_out))return 0}return le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s);break;case 1:I=function(t){for(var n,r=0;;){if(S<262){if(ce(),S<262&&0==t)return 0;if(0===S)break}if(3<=S&&(m=(m<<v^255&h[E+2])&b,r=65535&f[m],p[E&A]=f[m],f[m]=E),0!==r&&(E-r&65535)<=c-262&&2!=L&&(B=ue(r)),3<=B)if(n=ae(E-x,B-3),S-=B,B<=k&&3<=S){for(B--;m=(m<<v^255&h[2+ ++E])&b,r=65535&f[m],p[E&A]=f[m],f[m]=E,0!=--B;);E++}
2else E+=B,B=0,m=((m=255&h[E])<<v^255&h[E+1])&b;else n=ae(0,255&h[E]),S--,E++;if(n&&(le(!1),0===e.avail_out))return 0}return le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s);break;case 2:I=function(t){for(var n,r,a=0;;){if(S<262){if(ce(),S<262&&0==t)return 0;if(0===S)break}if(3<=S&&(m=(m<<v^255&h[E+2])&b,a=65535&f[m],p[E&A]=f[m],f[m]=E),T=B,C=x,B=2,0!==a&&T<k&&(E-a&65535)<=c-262&&(2!=L&&(B=ue(a)),B<=5&&(1==L||3==B&&4096<E-x)&&(B=2)),3<=T&&B<=T){for(r=E+S-3,n=ae(E-1-C,T-3),S-=T-1,T-=2;++E<=r&&(m=(m<<v^255&h[E+2])&b,a=65535&f[m],p[E&A]=f[m],f[m]=E),0!=--T;);if(N=0,B=2,E++,n&&(le(!1),0===e.avail_out))return 0}else if(0!==N){if((n=ae(0,255&h[E-1]))&&le(!1),E++,S--,0===e.avail_out)return 0}else N=1,E++,S--}return 0!==N&&(n=ae(0,255&h[E-1]),N=0),le(4==t),0===e.avail_out?4==t?2:0:4==t?3:1}(s)}if(2!=I&&3!=I||(t=666),0==I||2==I)return 0===e.avail_out&&(l=-1),0;if(1==I){if(1==s)ee(2,3),te(256,r.static_ltree),re(),1+K+10-W<9&&(ee(2,3),te(256,r.static_ltree),re()),K=7;else if(se(0,0,!1),3==s)for(d=0;d<y;d++)f[d]=0;if(e.flush_pending(),0===e.avail_out)return l=-1,0}}return 4!=s?0:1}}function c(){this.next_in_index=0,this.next_out_index=0,this.avail_in=0,this.total_in=0,this.avail_out=0,this.total_out=0}c.prototype={deflateInit:function(e,t){return this.dstate=new l,t||(t=15),this.dstate.deflateInit(this,e,t)},deflate:function(e){return this.dstate?this.dstate.deflate(this,e):-2},deflateEnd:function(){if(!this.dstate)return-2;var e=this.dstate.deflateEnd();return this.dstate=null,e},deflateParams:function(e,t){return this.dstate?this.dstate.deflateParams(this,e,t):-2},deflateSetDictionary:function(e,t){return this.dstate?this.dstate.deflateSetDictionary(this,e,t):-2},read_buf:function(e,t,n){var r=this.avail_in;return n<r&&(r=n),0===r?0:(this.avail_in-=r,e.set(this.next_in.subarray(this.next_in_index,this.next_in_index+r),t),this.next_in_index+=r,this.total_in+=r,r)},flush_pending:function(){var e=this,t=e.dstate.pending;t>e.avail_out&&(t=e.avail_out),0!==t&&(e.next_out.set(e.dstate.pending_buf.subarray(e.dstate.pending_out,e.dstate.pending_out+t),e.next_out_index),e.next_out_index+=t,e.dstate.pending_out+=t,e.total_out+=t,e.avail_out-=t,e.dstate.pending-=t,0===e.dstate.pending&&(e.dstate.pending_out=0))}};var u=e.zip||e;u.Deflater=u._jzlib_Deflater=function(e){var t=new c,n=new Uint8Array(512),r=e?e.level:-1;void 0===r&&(r=-1),t.deflateInit(r),t.next_out=n,this.append=function(e,r){var a,o=[],i=0,s=0,l=0;if(e.length){t.next_in_index=0,t.next_in=e,t.avail_in=e.length;do{if(t.next_out_index=0,t.avail_out=512,0!=t.deflate(0))throw new Error("deflating: "+t.msg);t.next_out_index&&(512==t.next_out_index?o.push(new Uint8Array(n)):o.push(new Uint8Array(n.subarray(0,t.next_out_index)))),l+=t.next_out_index,r&&0<t.next_in_index&&t.next_in_index!=i&&(r(t.next_in_index),i=t.next_in_index)}while(0<t.avail_in||0===t.avail_out);return a=new Uint8Array(l),o.forEach(function(e){a.set(e,s),s+=e.length}),a}},this.flush=function(){var e,r,a=[],o=0,i=0;do{if(t.next_out_index=0,t.avail_out=512,1!=(e=t.deflate(4))&&0!=e)throw new Error("deflating: "+t.msg);0<512-t.avail_out&&a.push(new Uint8Array(n.subarray(0,t.next_out_index))),i+=t.next_out_index}while(0<t.avail_in||0===t.avail_out);return t.deflateEnd(),r=new Uint8Array(i),a.forEach(function(e){r.set(e,o),o+=e.length}),r}}}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()),("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")()).RGBColor=function(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e=(e=e.replace(/ /g,"")).toLowerCase();var n={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:"90ee9
20",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"};for(var r in n)e==r&&(e=n[r]);for(var a=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],o=0;o<a.length;o++){var i=a[o].re,s=a[o].process,l=i.exec(e);l&&(t=s(l),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:255<this.r?255:this.r,this.g=this.g<0||isNaN(this.g)?0:255<this.g?255:this.g,this.b=this.b<0||isNaN(this.b)?0:255<this.b?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}},function(e){var t="+".charCodeAt(0),n="/".charCodeAt(0),r="0".charCodeAt(0),a="a".charCodeAt(0),o="A".charCodeAt(0),i="-".charCodeAt(0),s="_".charCodeAt(0),l=function(e){var l=e.charCodeAt(0);return l===t||l===i?62:l===n||l===s?63:l<r?-1:l<r+10?l-r+26+26:l<o+26?l-o:l<a+26?l-a+26:void 0};e.API.TTFFont=function(){function e(e,t,n){var r;if(this.rawData=e,r=this.contents=new u(e),this.contents.pos=4,"ttcf"===r.readString(4)){if(!t)throw new Error("Mu
2st specify a font name for TTC files.");throw new Error("Font "+t+" not found in TTC file.")}r.pos=0,this.parse(),this.subset=new F(this),this.registerTTF()}return e.open=function(t,n,r,a){if("string"!=typeof r)throw new Error("Invalid argument supplied in TTFFont.open");return new e(function(e){var t,n,r,a,o,i;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var s=e.length;o="="===e.charAt(s-2)?2:"="===e.charAt(s-1)?1:0,i=new Uint8Array(3*e.length/4-o),r=0<o?e.length-4:e.length;var c=0;function u(e){i[c++]=e}for(n=t=0;t<r;t+=4,n+=3)u((16711680&(a=l(e.charAt(t))<<18|l(e.charAt(t+1))<<12|l(e.charAt(t+2))<<6|l(e.charAt(t+3))))>>16),u((65280&a)>>8),u(255&a);return 2===o?u(255&(a=l(e.charAt(t))<<2|l(e.charAt(t+1))>>4)):1===o&&(u((a=l(e.charAt(t))<<10|l(e.charAt(t+1))<<4|l(e.charAt(t+2))>>2)>>8&255),u(255&a)),i}(r),n,a)},e.prototype.parse=function(){return this.directory=new A(this.contents),this.head=new p(this),this.name=new w(this),this.cmap=new m(this),this.toUnicode=new Map,this.hhea=new y(this),this.maxp=new B(this),this.hmtx=new C(this),this.post=new b(this),this.os2=new g(this),this.loca=new T(this),this.glyf=new E(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]},e.prototype.registerTTF=function(){var e,t,n,r,a;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,r,a;for(a=[],t=0,n=(r=this.bbox).length;t<n;t++)e=r[t],a.push(Math.round(e*this.scaleFactor));return a}.call(this),this.stemV=0,this.post.exists?(n=255&(r=this.post.italic_angle),!0&(t=r>>16)&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):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=1===(a=this.familyClass)||2===a||3===a||4===a||5===a||7===a,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var r,a,o,i,s;for(a=i=o=0,s=(e=""+e).length;0<=s?i<s:s<i;a=0<=s?++i:--i)r=e.charCodeAt(a),o+=this.widthOfGlyph(this.characterToGlyph(r))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var c,u=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return 2147483648<=(e=this.readUInt32())?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return 32768<=(e=this.readUInt16())?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n,r;for(n=[],t=r=0;0<=e?r<e:e<r;t=0<=e?++r:--r)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,r,a;for(a=[],t=n=0,r=e.length;0<=r?n<r:r<n;t=0<=r?++n:--n)a.push(this.writeByte(e.charCodeAt(t)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,r,a,o,i,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),r=this.readByte(),a=this.readByte(),o=this.readByte(),i=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^r)+16777216*(255^a)+65536*(255^o)+256*(255^i)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*r+16777216*a+65536*o+256*i+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:e<n;0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,r,a;for(a=[],n=0,r=e.length;n<r;n++)t=e[n],a.push(this.writeByte(t));return a},e}(),A=function(){var e;function t(e){var t,n,r;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,r=this.tableCount;0<=r?n<r:r<n;0<=r?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,r,a,o,i,s,l,c,A,h,d,p,f;for(f in d=Object.keys(t).length,s=Math.log(2),A=16*Math.floor(Math.log(d)/s),o=Math.floor(A/s),c=16*d-A,(r=new u).writeInt(this.scalarType),r.writeShort(d),r.writeShort(A),r.writeShort(o),r.writeShort(c),a=16*d,l=r.pos+a,i=null,p=[],t)for(h=t[f],r.writeString(f),r.writeInt(e(h)),r.writeInt(l),r.writeInt(h.length),p=p.concat(h),"head"===f&&(i=l),l+=h.length;l%4;)p.push(0),l++;return r.write(p),n=2981146554-e(r.data),r.pos=i+8,r.writeUInt32(n),r.data},e=function(e){var t,n,r,a;for(e=N.call(e);e.length%4;)e.push(0);for(n=new u(e),r=t=0,a=e.length;r<a;r+=4)t+=n.readUInt32();return 4294967295&t},t}(),h={}.hasOwnProperty,d=function(e,t){for(var n in t)h.call(t,n)&&(e[n]=t[n]);function r(){this.constructor=e}return r.prototype=t.prototype,e.prototype=new r,e.__super__=t.prototype,e};c=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var p=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new u).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax
vendor: 7,395 bytes, line 2
2),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),f=function(){function e(e,t){var n,r,a,o,i,s,l,c,u,A,h,d,p,f,m,y,g,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=m=0;m<256;s=++m)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),A=h/2,e.pos+=6,a=function(){var t,n;for(n=[],s=t=0;0<=A?t<A:A<t;s=0<=A?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,p=function(){var t,n;for(n=[],s=t=0;0<=A?t<A:A<t;s=0<=A?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=A?t<A:A<t;s=0<=A?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=A?t<A:A<t;s=0<=A?++t:--t)n.push(e.readUInt16());return n}(),r=(this.length-e.pos+this.offset)/2,i=function(){var t,n;for(n=[],s=t=0;0<=r?t<r:r<t;s=0<=r?++t:--t)n.push(e.readUInt16());return n}(),s=y=0,b=a.length;y<b;s=++y)for(f=a[s],n=g=d=p[s];d<=f?g<=f:f<=g;n=d<=f?++g:--g)0===c[s]?o=n+l[s]:0!==(o=i[c[s]/2+(n-d)-(A-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}e.pos=u}return e.encode=function(e,t){var n,r,a,o,i,s,l,c,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T,F,k,U,L,O,I,Q,H,R,P,D,M,_,j,K,z,W,V,G,q;switch(k=new u,o=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(f=0,m=function(){var e,t;for(t=[],p=e=0;e<256;p=++e)t.push(0);return t}(),g={0:0},a={},U=0,Q=o.length;U<Q;U++)null==g[W=e[r=o[U]]]&&(g[W]=++f),a[r]={old:e[r],new:g[e[r]]},m[r]=g[e[r]];return k.writeUInt16(1),k.writeUInt16(0),k.writeUInt32(12),k.writeUInt16(0),k.writeUInt16(262),k.writeUInt16(0),k.write(m),{charMap:a,subtable:k.data,maxGlyphID:f+1};case"unicode":for(T=[],A=[],g={},n={},y=l=null,L=b=0,H=o.length;L<H;L++)null==g[w=e[r=o[L]]]&&(g[w]=++b),n[r]={old:w,new:g[w]},i=g[w]-r,null!=y&&i===l||(y&&A.push(y),T.push(r),l=i),y=r;for(y&&A.push(y),A.push(65535),T.push(65535),x=2*(E=T.length),N=2*Math.pow(Math.log(E)/Math.LN2,2),h=Math.log(N/2)/Math.LN2,C=2*E-N,s=[],B=[],d=[],p=O=0,R=T.length;O<R;p=++O){if(S=T[p],c=A[p],65535===S){s.push(0),B.push(0);break}if(32768<=S-(F=n[S].new))for(s.push(0),B.push(2*(d.length+E-p)),r=I=S;S<=c?I<=c:c<=I;r=S<=c?++I:--I)d.push(n[r].new);else s.push(F-S),B.push(0)}for(k.writeUInt16(3),k.writeUInt16(1),k.writeUInt32(12),k.writeUInt16(4),k.writeUInt16(16+8*E+2*d.length),k.writeUInt16(0),k.writeUInt16(x),k.writeUInt16(N),k.writeUInt16(h),k.writeUInt16(C),K=0,P=A.length;K<P;K++)r=A[K],k.writeUInt16(r);for(k.writeUInt16(0),z=0,D=T.length;z<D;z++)r=T[z],k.writeUInt16(r);for(V=0,M=s.length;V<M;V++)i=s[V],k.writeUInt16(i);for(G=0,_=B.length;G<_;G++)v=B[G],k.writeUInt16(v);for(q=0,j=d.length;q<j;q++)f=d[q],k.writeUInt16(f);return{charMap:n,subtable:k.data,maxGlyphID:b+1}}},e}(),m=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,r;for(e.pos=this.offset,this.version=e.readUInt16(),n=e.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=n?r<n:n<r;0<=n?++r:--r)t=new f(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,r;return null==t&&(t="macroman"),n=f.encode(e,t),(r=new u).writeUInt16(0),r.writeUInt16(1),n.table=r.data.concat(n.subtable),n},e}(),y=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),g=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),0<this.version&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;++t)n.push(e.readInt());return n}(),1<this.version))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),b=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,r,a;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:for(n=e.readUInt16(),this.glyphNameIndex=[],r=0;0<=n?r<n:n<r;0<=n?++r:--r)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],a=[];e.pos<this.offset+this.length;)t=e.readByte(),a.push(this.names.push(e.readString(t)));return a;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,r;for(r=[],t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:n<t;0<=n?++t:--t)r.push(e.readUInt32());return r}.call(this)}},e}(),v=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},w=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,r,a,o,i,s,l,c,u,A,h;for(e.pos=this.offset,e.readShort(),t=e.readShort(),i=e.readShort(),n=[],a=c=0;0<=t?c<t:t<c;a=0<=t?++c:--c)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+i+e.readShort()});for(s={},a=u=0,A=n.length;u<A;a=++u)r=n[a],e.pos=r.offset,l=e.readString(r.length),o=new v(l,r),null==s[h=r.nameID]&&(s[h]=[]),s[r.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfam
vendor: 4,410 bytes, line 2
2ily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),B=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),C=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,r,a,o,i,s;for(e.pos=this.offset,this.metrics=[],a=0,i=this.file.hhea.numberOfMetrics;0<=i?a<i:i<a;0<=i?++a:--a)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(n=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var t,r;for(r=[],t=0;0<=n?t<n:n<t;0<=n?++t:--t)r.push(e.readInt16());return r}(),this.widths=function(){var e,t,n,a;for(a=[],e=0,t=(n=this.metrics).length;e<t;e++)r=n[e],a.push(r.advance);return a}.call(this),t=this.widths[this.widths.length-1],s=[],o=0;0<=n?o<n:n<o;0<=n?++o:--o)s.push(this.widths.push(t));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),N=[].slice,E=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="glyf",e.prototype.parse=function(e){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,r,a,o,i,s,l,c,A;return e in this.cache?this.cache[e]:(a=this.file.loca,t=this.file.contents,n=a.indexOf(e),0===(r=a.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(i=new u(t.read(r))).readShort(),l=i.readShort(),A=i.readShort(),s=i.readShort(),c=i.readShort(),this.cache[e]=-1===o?new S(i,l,A,s,c):new x(i,o,l,A,s,c),this.cache[e]))},e.prototype.encode=function(e,t,n){var r,a,o,i,s;for(o=[],a=[],i=0,s=t.length;i<s;i++)r=e[t[i]],a.push(o.length),r&&(o=o.concat(r.encode(n)));return a.push(o.length),{table:o,offsets:a}},e}(),x=function(){function e(e,t,n,r,a,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=r,this.xMax=a,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),S=function(){function e(e,t,n,r,a){var o,i;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=r,this.yMax=a,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;i=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readShort()),32&i;)o.pos+=1&i?4:2,128&i?o.pos+=8:64&i?o.pos+=4:8&i&&(o.pos+=2)}return e.prototype.encode=function(e){var t,n,r,a,o;for(n=new u(N.call(this.raw.data)),t=r=0,a=(o=this.glyphIDs).length;r<a;t=++r)o[t],n.pos=this.glyphOffsets[t];return n.data},e}(),T=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return d(e,c),e.prototype.tag="loca",e.prototype.parse=function(e){var t;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,n,r;for(r=[],t=0,n=this.length;t<n;t+=2)r.push(2*e.readUInt16());return r}.call(this):function(){var t,n,r;for(r=[],t=0,n=this.length;t<n;t+=4)r.push(e.readUInt32());return r}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),r=0,a=0,o=0;o<n.length;++o)if(n[o]=r,a<t.length&&t[a]==o){++a,n[o]=r;var i=this.offsets[o],s=this.offsets[o+1]-i;0<s&&(r+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;
2++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),F=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,r,a;for(t in r=this.font.cmap.tables[0].codeMap,e={},a=this.subset)n=a[t],e[t]=r[n];return e},e.prototype.glyphsFor=function(e){var t,n,r,a,o,i,s;for(r={},o=0,i=e.length;o<i;o++)r[a=e[o]]=this.font.glyf.glyphFor(a);for(a in t=[],r)(null!=(n=r[a])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(0<t.length)for(a in s=this.glyphsFor(t))n=s[a],r[a]=n;return r},e.prototype.encode=function(e,t){var n,r,a,o,i,s,l,c,u,A,h,d,p,f,y;for(r in n=m.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),h={0:0},y=n.charMap)h[(s=y[r]).old]=s.new;for(d in A=n.maxGlyphID,o)d in h||(h[d]=A++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(h),u=Object.keys(c).sort(function(e,t){return e-t}),p=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)i=u[e],n.push(c[i]);return n}(),a=this.font.glyf.encode(o,p,h),l=this.font.loca.encode(a.offsets,p),f={cmap:this.font.cmap.raw(),glyf:a.table,loca:l,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(t)},this.font.os2.exists&&(f["OS/2"]=this.font.os2.raw()),this.font.directory.encode(f)},e}();e.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var r,a,o,i;if(Array.isArray(n))return"["+function(){var e,a,o;for(o=[],e=0,a=n.length;e<a;e++)r=n[e],o.push(t.convert(r));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"!=={}.toString.call(n))return""+n;for(a in o=["<<"],n)i=n[a],o.push("/"+a+" "+t.convert(i));return o.push(">>"),o.join("\n")},t}()}(pe),Te="undefined"!=typeof self&&self||"undefined"!=typeof window&&window||void 0!==r&&r||Function('return typeof this === "object" && this.content')()||Function("return this")(),Fe=function(){var e,t,n;function r(e){var t,n,r,a,o,i,s,l,c,u,A,h,d,p;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},i=null;;){switch(t=this.readUInt32(),c=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.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(t);break;case"fcTL":i&&this.animation.frames.push(i),this.pos+=4,i={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),a=this.readUInt16()||100,i.delay=1e3*o/a,i.disposeOp=this.data[this.pos++],i.blendOp=this.data[this.pos++],i.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),e=(null!=i?i.data:void 0)||this.imgData,h=0;0<=t?h<t:t<h;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(r=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>r)throw new Error("More transparent colors than palette size");if(0<(u=r-this.transparency.indexed.length))for(d=0;0<=u?d<u:u<d;0<=u?++d:--d)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(A=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,A.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,A.slice(s+1));break;case"IEND":return i&&this.animation.frames.push(i),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(p=this.colorType)||6===p,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace
2=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.load=function(e,t,n){var a;return"function"==typeof t&&(n=t),(a=new XMLHttpRequest).open("GET",e,!0),a.responseType="arraybuffer",a.onload=function(){var e;return e=new r(new Uint8Array(a.response||a.mozResponseArrayBuffer)),"function"==typeof(null!=t?t.getContext:void 0)&&e.render(t),"function"==typeof n?n(e):void 0},a.send(null)},r.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:e<t;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),r=0,a=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function o(o,i,s,l){var c,u,A,h,d,p,f,m,y,g,b,v,w,B,C,N,E,x,S,T,F,k=Math.ceil((a.width-o)/s),U=Math.ceil((a.height-i)/l),L=a.width==k&&a.height==U;for(B=t*k,v=L?n:new Uint8Array(B*U),p=e.length,u=w=0;w<U&&r<p;){switch(e[r++]){case 0:for(h=E=0;E<B;h=E+=1)v[u++]=e[r++];break;case 1:for(h=x=0;x<B;h=x+=1)c=e[r++],d=h<t?0:v[u-t],v[u++]=(c+d)%256;break;case 2:for(h=S=0;S<B;h=S+=1)c=e[r++],A=(h-h%t)/t,C=w&&v[(w-1)*B+A*t+h%t],v[u++]=(C+c)%256;break;case 3:for(h=T=0;T<B;h=T+=1)c=e[r++],A=(h-h%t)/t,d=h<t?0:v[u-t],C=w&&v[(w-1)*B+A*t+h%t],v[u++]=(c+Math.floor((d+C)/2))%256;break;case 4:for(h=F=0;F<B;h=F+=1)c=e[r++],A=(h-h%t)/t,d=h<t?0:v[u-t],0===w?C=N=0:(C=v[(w-1)*B+A*t+h%t],N=A&&v[(w-1)*B+(A-1)*t+h%t]),f=d+C-N,m=Math.abs(f-d),g=Math.abs(f-C),b=Math.abs(f-N),y=m<=g&&m<=b?d:g<=b?C:N,v[u++]=(c+y)%256;break;default:throw new Error("Invalid filter algorithm: "+e[r-1])}if(!L){var O=((i+w*l)*a.width+o)*t,I=w*B;for(h=0;h<k;h+=1){for(var Q=0;Q<t;Q+=1)n[O++]=v[I++];O+=(s-1)*t}}w++}}return e=(e=new He(e)).getBytes(),1==a.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},r.prototype.decodePalette=function(){var e,t,n,r,a,o,i,s,l;for(n=this.palette,o=this.transparency.indexed||[],a=new Uint8Array((o.length||0)+n.length),r=0,n.length,t=i=e=0,s=n.length;i<s;t=i+=3)a[r++]=n[t],a[r++]=n[t+1],a[r++]=n[t+2],a[r++]=null!=(l=o[e++])?l:255;return a},r.prototype.copyToImageData=function(e,t){var n,r,a,o,i,s,l,c,u,A,h;if(r=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),r=4,n=!0),c=(a=e.data||e).length,i=u||t,o=s=0,1===r)for(;o<c;)l=u?4*t[o/4]:s,A=i[l++],a[o++]=A,a[o++]=A,a[o++]=A,a[o++]=n?i[l++]:255,s=l;else for(;o<c;)l=u?4*t[o/4]:s,a[o++]=i[l++],a[o++]=i[l++],a[o++]=i[l++],a[o++]=n?i[l++]:255,s=l},r.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};try{t=Te.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return-1}return e=function(e){var r;return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(r=new Image).src=t.toDataURL(),r},r.prototype.decodeFrames=function(t){var n,r,a,o,i,s,l,c;if(this.animation){for(c=[],r=i=0,s=(l=this.animation.frames).length;i<s;r=++i)n=l[r],a=t.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(a,o),n.imageData=a,c.push(n.image=e(a));return c}},r.prototype.renderFrame=function(e,t){var n,r,a;return n=(r=this.animation.frames)[t],a=r[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=a?a.disposeOp:void 0)?e.clearRect(a.xOffset,a.yOffset,a.width,a.height):2===(null!=a?a.disposeOp:void 0)&&e.putImageData(a.imageData,a.xOffset,a.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},r.prototype.animate=function(e){var t,n,r,a,o,i,s=this;return n=0,i=this.animation,a=i.numFrames,r=i.frames,o=i.numPlays,(t=function(){var i,l;if(i=n++%a,l=r[i],s.renderFrame(e,i),1<a&&n/a<o)return s.animation._timeout=setTimeout(t,l.delay)})()},r.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},r.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},r}(),Te.PNG=Fe;var Qe=function(){function e(){this.pos=0,this.bufferLength=0,this.eof=!1,this.buffer=null}return e.prototype={ensureBuffer:function(e){var t=this.buffer,n=t?t.byteLength:0;if(e<n)return t;for(var r=512;r<e;)r<<=1;for(var a=new Uint8Array(r),o=0;o<n;++o)a[o]=t[o];return this.buffer=a},getByte:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return this.buffer[this.pos++]},getBytes:function(e){var t=this.pos;if(e){this.ensureBuffer(t+e);for(var n=t+e;!this.eof&&this.bufferLength<n;)this.readBlock();var r=this.bufferLength;r<n&&(n=r)}else{for(;!this.eof;)this.readBlock();n=this.bufferLength}return this.pos=n,this.buffer.subarray(t,n)},lookChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos])},getChar:function(){for(var e=this.pos;this.bufferLength<=e;){if(this.eof)return null;this.readBlock()}return String.fromCharCode(this.buffer[this.pos++])},makeSubStream:function(e,t,n){for(var r=e+t;this.bufferLength<=r&&!this.eof;)this.readBlock();return new Stream(this.buffer,e,t,n)},skip:function(e){e||(e=1),this.pos+=e},reset:function(){this.pos=0}},e}(),He=function(){if("undefined"!=typeof Uint32Array){var e=new Uint32Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),t=new Uint32Array([3,4,5,6,7,8,9,10,65547,65549,65551,65553,131091,131095,131099,131103,196643,196651,196659,196667,262211,262227,262243,262259,327811,327843,327875,327907,258,258,258]),n=new Uint32Array([1,2,3,4,65541,65543,131081,131085,196625,196633,262177,262193,327745,327777,393345,393409,459009,459137,524801,525057,590849,591361,657409,658433,724993,727041,794625,798721,868353,876545]),r=[new Uint32Array([459008,5243
vendor: 4,409 bytes, line 2
268,524304,524568,459024,524400,524336,590016,459016,524384,524320,589984,524288,524416,524352,590048,459012,524376,524312,589968,459028,524408,524344,590032,459020,524392,524328,59e4,524296,524424,524360,590064,459010,524372,524308,524572,459026,524404,524340,590024,459018,524388,524324,589992,524292,524420,524356,590056,459014,524380,524316,589976,459030,524412,524348,590040,459022,524396,524332,590008,524300,524428,524364,590072,459009,524370,524306,524570,459025,524402,524338,590020,459017,524386,524322,589988,524290,524418,524354,590052,459013,524378,524314,589972,459029,524410,524346,590036,459021,524394,524330,590004,524298,524426,524362,590068,459011,524374,524310,524574,459027,524406,524342,590028,459019,524390,524326,589996,524294,524422,524358,590060,459015,524382,524318,589980,459031,524414,524350,590044,459023,524398,524334,590012,524302,524430,524366,590076,459008,524369,524305,524569,459024,524401,524337,590018,459016,524385,524321,589986,524289,524417,524353,590050,459012,524377,524313,589970,459028,524409,524345,590034,459020,524393,524329,590002,524297,524425,524361,590066,459010,524373,524309,524573,459026,524405,524341,590026,459018,524389,524325,589994,524293,524421,524357,590058,459014,524381,524317,589978,459030,524413,524349,590042,459022,524397,524333,590010,524301,524429,524365,590074,459009,524371,524307,524571,459025,524403,524339,590022,459017,524387,524323,589990,524291,524419,524355,590054,459013,524379,524315,589974,459029,524411,524347,590038,459021,524395,524331,590006,524299,524427,524363,590070,459011,524375,524311,524575,459027,524407,524343,590030,459019,524391,524327,589998,524295,524423,524359,590062,459015,524383,524319,589982,459031,524415,524351,590046,459023,524399,524335,590014,524303,524431,524367,590078,459008,524368,524304,524568,459024,524400,524336,590017,459016,524384,524320,589985,524288,524416,524352,590049,459012,524376,524312,589969,459028,524408,524344,590033,459020,524392,524328,590001,524296,524424,524360,590065,459010,524372,524308,524572,459026,524404,524340,590025,459018,524388,524324,589993,524292,524420,524356,590057,459014,524380,524316,589977,459030,524412,524348,590041,459022,524396,524332,590009,524300,524428,524364,590073,459009,524370,524306,524570,459025,524402,524338,590021,459017,524386,524322,589989,524290,524418,524354,590053,459013,524378,524314,589973,459029,524410,524346,590037,459021,524394,524330,590005,524298,524426,524362,590069,459011,524374,524310,524574,459027,524406,524342,590029,459019,524390,524326,589997,524294,524422,524358,590061,459015,524382,524318,589981,459031,524414,524350,590045,459023,524398,524334,590013,524302,524430,524366,590077,459008,524369,524305,524569,459024,524401,524337,590019,459016,524385,524321,589987,524289,524417,524353,590051,459012,524377,524313,589971,459028,524409,524345,590035,459020,524393,524329,590003,524297,524425,524361,590067,459010,524373,524309,524573,459026,524405,524341,590027,459018,524389,524325,589995,524293,524421,524357,590059,459014,524381,524317,589979,459030,524413,524349,590043,459022,524397,524333,590011,524301,524429,524365,590075,459009,524371,524307,524571,459025,524403,524339,590023,459017,524387,524323,589991,524291,524419,524355,590055,459013,524379,524315,589975,459029,524411,524347,590039,459021,524395,524331,590007,524299,524427,524363,590071,459011,524375,524311,524575,459027,524407,524343,590031,459019,524391,524327,589999,524295,524423,524359,590063,459015,524383,524319,589983,459031,524415,524351,590047,459023,524399,524335,590015,524303,524431,524367,590079]),9],a=[new Uint32Array([327680,327696,327688,327704,327684,327700,327692,327708,327682,327698,327690,327706,327686,327702,327694,0,327681,327697,327689,327705,327685,327701,327693,327709,327683,327699,327691,327707,327687,327703,327695,0]),5];return(i.prototype=Object.create(Qe.prototype)).getBits=function(e){for(var t,n=this.codeSize,r=this.codeBuf,a=this.bytes,i=this.bytesPos;n<e;)void 0===(t=a[i++])&&o("Bad encoding in flate stream"),r|=t<<n,n+=8;return t=r&(1<<e)-1,this.codeBuf=r>>e,this.codeSize=n-=e,this.bytesPos=i,t},i.prototype.getCode=function(e){for(var t=e[0],n=e[1],r=this.codeSize,a=this.codeBuf,i=this.bytes,s=this.bytesPos;r<n;){var l;void 0===(l=i[s++])&&o("Bad encoding in flate stream"),a|=l<<r,r+=8}var c=t[a&(1<<n)-1],u=c>>16,A=65535&c;return(0==r||r<u||0==u)&&o("Bad encoding in flate stream"),this.codeBuf=a>>
2u,this.codeSize=r-u,this.bytesPos=s,A},i.prototype.generateHuffmanTable=function(e){for(var t=e.length,n=0,r=0;r<t;++r)e[r]>n&&(n=e[r]);for(var a=1<<n,o=new Uint32Array(a),i=1,s=0,l=2;i<=n;++i,s<<=1,l<<=1)for(var c=0;c<t;++c)if(e[c]==i){var u=0,A=s;for(r=0;r<i;++r)u=u<<1|1&A,A>>=1;for(r=u;r<a;r+=l)o[r]=i<<16|c;++s}return[o,n]},i.prototype.readBlock=function(){function i(e,t,n,r,a){for(var o=e.getBits(n)+r;0<o--;)t[p++]=a}var s=this.getBits(3);if(1&s&&(this.eof=!0),0!=(s>>=1)){var l,c;if(1==s)l=r,c=a;else if(2==s){for(var u=this.getBits(5)+257,A=this.getBits(5)+1,h=this.getBits(4)+4,d=Array(e.length),p=0;p<h;)d[e[p++]]=this.getBits(3);for(var f=this.generateHuffmanTable(d),m=0,y=(p=0,u+A),g=new Array(y);p<y;){var b=this.getCode(f);16==b?i(this,g,2,3,m):17==b?i(this,g,3,3,m=0):18==b?i(this,g,7,11,m=0):g[p++]=m=b}l=this.generateHuffmanTable(g.slice(0,u)),c=this.generateHuffmanTable(g.slice(u,y))}else o("Unknown block type in flate stream");for(var v=(L=this.buffer)?L.length:0,w=this.bufferLength;;){var B=this.getCode(l);if(B<256)v<=w+1&&(v=(L=this.ensureBuffer(w+1)).length),L[w++]=B;else{if(256==B)return void(this.bufferLength=w);var C=(B=t[B-=257])>>16;0<C&&(C=this.getBits(C)),m=(65535&B)+C,B=this.getCode(c),0<(C=(B=n[B])>>16)&&(C=this.getBits(C));var N=(65535&B)+C;v<=w+m&&(v=(L=this.ensureBuffer(w+m)).length);for(var E=0;E<m;++E,++w)L[w]=L[w-N]}}}else{var x,S=this.bytes,T=this.bytesPos;void 0===(x=S[T++])&&o("Bad block header in flate stream");var F=x;void 0===(x=S[T++])&&o("Bad block header in flate stream"),F|=x<<8,void 0===(x=S[T++])&&o("Bad block header in flate stream");var k=x;void 0===(x=S[T++])&&o("Bad block header in flate stream"),(k|=x<<8)!=(65535&~F)&&o("Bad uncompressed block length in flate stream"),this.codeBuf=0,this.codeSize=0;var U=this.bufferLength,L=this.ensureBuffer(U+F),O=U+F;this.bufferLength=O;for(var I=U;I<O;++I){if(void 0===(x=S[T++])){this.eof=!0;break}L[I]=x}this.bytesPos=T}},i}function o(e){throw new Error(e)}function i(e){var t=0,n=e[t++],r=e[t++];-1!=n&&-1!=r||o("Invalid header in flate stream"),8!=(15&n)&&o("Unknown compression method in flate stream"),((n<<8)+r)%31!=0&&o("Bad FCHECK in flate stream"),32&r&&o("FDICT bit set in flate stream"),this.bytes=e,this.bytesPos=2,this.codeSize=0,this.codeBuf=0,Qe.call(this)}}();window.tmp=He},void 0===(o=a.call(t,n,t,e))||(e.exports=o);try{e.exports=jsPDF}catch(e){}}).call(this,n(4))},function(e,t){e.exports=n(950)},function(e,t,n){"use strict";n.r(t),n.d(t,"exportComponentAsJPEG",function(){return m}),n.d(t,"exportComponentAsPDF",function(){return y}),n.d(t,"exportComponentAsPNG",function(){return f});var r=n(0),a=n.n(r),o=n(1),i=n.n(o),s=n(2),l=n.n(s);const c="image/png",u="application/pdf",A={fileName:"component.png",type:c,html2CanvasOptions:{}},h={fileName:"component.jpg",type:"image/jpeg",html2CanvasOptions:{}},d={fileName:"component.pdf",type:u,html2CanvasOptions:{},pdfOptions:{}},p=(e,t)=>{let{fileName:n,type:r,html2CanvasOptions:o,pdfOptions:s}=t;if(!e.current)throw new Error("'node' must be a RefObject");const A=l.a.findDOMNode(e.current);return a()(A,{scrollY:-window.scrollY,useCORS:!0,...o}).then(e=>{if(r===u){const t=((e,t)=>{let{w:n,h:r,orientation:a,unit:o="mm",pdfFormat:s}=t;const l=n||e.width,c=r||e.height,u=a||l>c?"l":"p",A=s||"a4";return new i.a(u,o,A)})(e,s);t.addImage(e.toDataURL(c,1),"PNG",s.x||0,s.y||0,s.w||e.width,s.h||e.height),t.save(n)}else((e,t)=>{const n=document.createElement("a");"string"==typeof n.download?(n.href=e,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n)):window.open(e)})(e.toDataURL(r,1),n)})},f=function(e){return p(e,{...A,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},m=function(e){return p(e,{...h,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})},y=function(e){return p(e,{...d,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n}])},730(e,t,n){"use strict";var r=n(43),a=n(853);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i=new Set,s={};function l(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)i.add(t[e])}var u=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),A=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,d={},p={};function f(e,t,n,r,a,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var m={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){m[e]=new f(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEac
vendor: 19,824 bytes, line 2
2h(function(e){var t=e[0];m[t]=new f(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){m[e]=new f(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){m[e]=new f(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){m[e]=new f(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){m[e]=new f(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){m[e]=new f(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){m[e]=new f(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){m[e]=new f(e,5,!1,e.toLowerCase(),null,!1,!1)});var y=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var a=m.hasOwnProperty(t)?m[t]:null;(null!==a?0!==a.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,a,r)&&(n=null),r||null===a?function(e){return!!A.call(p,e)||!A.call(d,e)&&(h.test(e)?p[e]=!0:(d[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):a.mustUseProperty?e[a.propertyName]=null===n?3!==a.type&&"":n:(t=a.attributeName,r=a.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(a=a.type)||4===a&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(y,g);m[t]=new f(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(y,g);m[t]=new f(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(y,g);m[t]=new f(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){m[e]=new f(e,1,!1,e.toLowerCase(),null,!1,!1)}),m.xlinkHref=new f("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){m[e]=new f(e,1,!1,e.toLowerCase(),null,!0,!0)});var v=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for("react.element"),B=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),N=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),x=Symbol.for("react.provider"),S=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),k=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),L=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var O=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var I=Symbol.iterator;function Q(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=I&&e[I]||e["@@iterator"])?e:null}var H,R=Object.assign;function P(e){if(void 0===H)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);H=t&&t[1]||""}return"\n"+H+e}var D=!1;function M(e,t){if(!e||D)return"";D=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var a=c.stack.split("\n"),o=r.stack.split("\n"),i=a.length-1,s=o.length-1;1<=i&&0<=s&&a[i]!==o[s];)s--;for(;1<=i&&0<=s;i--,s--)if(a[i]!==o[s]){if(1!==i||1!==s)do{if(i--,0>--s||a[i]!==o[s]){var l="\n"+a[i].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}}while(1<=i&&0<=s);break}}}finally{D=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?P(e):""}function _(e){switch(e.tag){case 5:return P(e.type);case 16:return P("Lazy");case 13:return P("Suspense");case 19:return P("SuspenseList");case 0:case 2:case 15:return e=M(e.type,!1);case 11:return e=M(e.type.render,!1);case 1:return e=M(e.type,!0);default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case C:return"Fragment";case B:return"Portal";case E:return"Profiler";case N:return"StrictMode";case F:return"Suspense";case k:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case x:return(e._context.displayName||"Context")+".Provider";case T:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:j(e.type)||"Memo";case L:t=e._payload,e=e._init;try{return j(e(t))}catch(n){}}return null}function K(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(t);case 8:return t===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function z(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function W(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function V(e){e._valueTracker||(e._valueTracker=function(e){var t=W(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var a=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function G(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=W(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function q(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Y(e,t){var n=t.checked;return R({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=z(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function J(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function Z(e,t){J(e,t);var n=z(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,z(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function $(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&q(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+z(n),t=null,a=0;a<e.length;a++){if(e[a].value===n)return e[a].selected=!0,void(r&&(e[a].defaultSelected=!0));null!==t||e[a].disabled||(t=e[a])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return R({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ae(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:z(n)}}function oe(e,t){var n=z(t.value),r=z(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ie(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function le(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,ue,Ae=(ue=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return ue(e,t)})}:ue);function he(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var de={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},pe=["Webkit","ms","Moz","O"];function fe(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||de.hasOwnProperty(e)&&de[e]?(""+t).trim():t+"px"}function me(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),a=fe(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,a):e[n]=a}}Object.keys(de).forEach(function(e){pe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),de[t]=de[e]})});var ye=R({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ye[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ve=null;function we(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Be=null,Ce=null,Ne=null;function Ee(e){if(e=ba(e)){if("function"!==typeof Be)throw Error(o(280));var t=e.stateNode;t&&(t=wa(t),Be(e.stateNode,e.type,t))}}function xe(e){Ce?Ne?Ne.push(e):Ne=[e]:Ce=e}function Se(){if(Ce){var e=Ce,t=Ne;if(Ne=Ce=null,Ee(e),t)for(e=0;e<t.length;e++)Ee(t[e])}}function Te(e,t){return e(t)}function Fe(){}var ke=!1;function Ue(e,t,n){if(ke)return e(t,n);ke=!0;try{return Te(e,t,n)}finally{ke=!1,(null!==Ce||null!==Ne)&&(Fe(),Se())}}function Le(e,t){var n=e.stateNode;if(null===n)return null;var r=wa(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Oe=!1;if(u)try{var Ie={};Object.defineProperty(Ie,"passive",{get:function(){Oe=!0}}),window.addEventListener("test",Ie,Ie),window.removeEventListener("test",Ie,Ie)}catch(ue){Oe=!1}function Qe(e,t,n,r,a,o,i,s,l){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(u){this.onError(u)}}var He=!1,Re=null,Pe=!1,De=null,Me={onError:function(e){He=!0,Re=e}};function _e(e,t,n,r,a,o,i,s,l){He=!1,Re=null,Qe.apply(Me,arguments)}function je(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Ke(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function ze(e){if(je(e)!==e)throw Error(o(188))}function We(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=je(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(null===a)break;var i=a.alternate;if(null===i){if(null!==(r=a.return)){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return ze(a),e;if(i===r)return ze(a),t;i=i.sibling}throw Error(o(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,l=a.child;l;){if(l===n){s=!0,n=a,r=i;break}if(l===r){s=!0,r=a,n=i;break}l=l.sibling}if(!s){for(l=i.child;l;){if(l===n){s=!0,n=i,r=a;break}if(l===r){s=!0,r=i,n=a;break}l=l.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ve(e):null}function Ve(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ve(e);if(null!==t)return t;e=e.sibling}return null}var Ge=a.unstable_scheduleCallback,qe=a.unstable_cancelCallback,Ye=a.unstable_shouldYield,Xe=a.unstable_requestPaint,Je=a.unstable_now,Ze=a.unstable_getCurrentPriorityLevel,$e=a.unstable_ImmediatePriority,et=a.unstable_UserBlockingPriority,tt=a.unstable_NormalPriority,nt=a.unstable_LowPriority,rt=a.unstable_IdlePriority,at=null,ot=null;var it=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/lt|0)|0},st=Math.log,lt=Math.LN2;var ct=64,ut=4194304;function At(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ht(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,a=e.suspendedLanes,o=e.pingedLanes,i=268435455&n;if(0!==i){var s=i&~a;0!==s?r=At(s):0!==(o&=i)&&(r=At(o))}else 0!==(i=n&~a)?r=At(i):0!==o&&(r=At(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&a)&&((a=r&-r)>=(o=t&-t)||16===a&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)a=1<<(n=31-it(t)),r|=e[n],t&=~a;return r}function dt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function pt(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function ft(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function mt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function yt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-it(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-it(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}var bt=0;function vt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var wt,Bt,Ct,Nt,Et,xt=!1,St=[],Tt=null,Ft=null,kt=null,Ut=new Map,Lt=new Map,Ot=[],It="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Qt(e,t){switch(e){case"focusin":case"focusout":Tt=null;break;case"dragenter":case"dragleave":Ft=null;break;case"mouseover":case"mouseout":kt=null;break;case"pointerover":case"pointerout":Ut.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lt.delete(t.pointerId)}}function Ht(e,t,n,r,a,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[a]},null!==t&&(null!==(t=ba(t))&&Bt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==a&&-1===t.indexOf(a)&&t.pu
vendor: 5,438 bytes, line 2
2sh(a),e)}function Rt(e){var t=ga(e.target);if(null!==t){var n=je(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Ke(n)))return e.blockedOn=t,void Et(e.priority,function(){Ct(n)})}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Pt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Yt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=ba(n))&&Bt(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);ve=r,n.target.dispatchEvent(r),ve=null,t.shift()}return!0}function Dt(e,t,n){Pt(e)&&n.delete(t)}function Mt(){xt=!1,null!==Tt&&Pt(Tt)&&(Tt=null),null!==Ft&&Pt(Ft)&&(Ft=null),null!==kt&&Pt(kt)&&(kt=null),Ut.forEach(Dt),Lt.forEach(Dt)}function _t(e,t){e.blockedOn===t&&(e.blockedOn=null,xt||(xt=!0,a.unstable_scheduleCallback(a.unstable_NormalPriority,Mt)))}function jt(e){function t(t){return _t(t,e)}if(0<St.length){_t(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Tt&&_t(Tt,e),null!==Ft&&_t(Ft,e),null!==kt&&_t(kt,e),Ut.forEach(t),Lt.forEach(t),n=0;n<Ot.length;n++)(r=Ot[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Ot.length&&null===(n=Ot[0]).blockedOn;)Rt(n),null===n.blockedOn&&Ot.shift()}var Kt=v.ReactCurrentBatchConfig,zt=!0;function Wt(e,t,n,r){var a=bt,o=Kt.transition;Kt.transition=null;try{bt=1,Gt(e,t,n,r)}finally{bt=a,Kt.transition=o}}function Vt(e,t,n,r){var a=bt,o=Kt.transition;Kt.transition=null;try{bt=4,Gt(e,t,n,r)}finally{bt=a,Kt.transition=o}}function Gt(e,t,n,r){if(zt){var a=Yt(e,t,n,r);if(null===a)zr(e,t,r,qt,n),Qt(e,r);else if(function(e,t,n,r,a){switch(t){case"focusin":return Tt=Ht(Tt,e,t,n,r,a),!0;case"dragenter":return Ft=Ht(Ft,e,t,n,r,a),!0;case"mouseover":return kt=Ht(kt,e,t,n,r,a),!0;case"pointerover":var o=a.pointerId;return Ut.set(o,Ht(Ut.get(o)||null,e,t,n,r,a)),!0;case"gotpointercapture":return o=a.pointerId,Lt.set(o,Ht(Lt.get(o)||null,e,t,n,r,a)),!0}return!1}(a,e,t,n,r))r.stopPropagation();else if(Qt(e,r),4&t&&-1<It.indexOf(e)){for(;null!==a;){var o=ba(a);if(null!==o&&wt(o),null===(o=Yt(e,t,n,r))&&zr(e,t,r,qt,n),o===a)break;a=o}null!==a&&r.stopPropagation()}else zr(e,t,r,null,n)}}var qt=null;function Yt(e,t,n,r){if(qt=null,null!==(e=ga(e=we(r))))if(null===(t=je(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Ke(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return qt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Ze()){case $e:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Jt=null,Zt=null,$t=null;function en(){if($t)return $t;var e,t,n=Zt,r=n.length,a="value"in Jt?Jt.value:Jt.textContent,o=a.length;for(e=0;e<r&&n[e]===a[e];e++);var i=r-e;for(t=1;t<=i&&n[r-t]===a[o-t];t++);return $t=a.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function an(e){function t(t,n,r,a,o){for(var i in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=a,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(a):a[i]);return this.isDefaultPrevented=(null!=a.defaultPrevented?a.defaultPrevented:!1===a.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return R(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var on,sn,ln,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},un=an(cn),An=R({},cn,{view:0,detail:0}),hn=an(An),dn=R({},An,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:En,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 9,184 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==ln&&(ln&&"mousemove"===e.type?(on=e.screenX-ln.screenX,sn=e.screenY-ln.screenY):sn=on=0,ln=e),on)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),pn=an(dn),fn=an(R({},dn,{dataTransfer:0})),mn=an(R({},An,{relatedTarget:0})),yn=an(R({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=R({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=an(gn),vn=an(R({},cn,{data:0})),wn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Cn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Cn[e])&&!!t[e]}function En(){return Nn}var xn=R({},An,{key:function(e){if(e.key){var t=wn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Bn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:En,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=an(xn),Tn=an(R({},dn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=an(R({},An,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:En})),kn=an(R({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Un=R({},dn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Ln=an(Un),On=[9,13,27,32],In=u&&"CompositionEvent"in window,Qn=null;u&&"documentMode"in document&&(Qn=document.documentMode);var Hn=u&&"TextEvent"in window&&!Qn,Rn=u&&(!In||Qn&&8<Qn&&11>=Qn),Pn=String.fromCharCode(32),Dn=!1;function Mn(e,t){switch(e){case"keyup":return-1!==On.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _n(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var jn=!1;var Kn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Kn[e.type]:"textarea"===t}function Wn(e,t,n,r){xe(r),0<(t=Vr(t,"onChange")).length&&(n=new un("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Vn=null,Gn=null;function qn(e){Pr(e,0)}function Yn(e){if(G(va(e)))return e}function Xn(e,t){if("change"===e)return t}var Jn=!1;if(u){var Zn;if(u){var $n="oninput"in document;if(!$n){var er=document.createElement("div");er.setAttribute("oninput","return;"),$n="function"===typeof er.oninput}Zn=$n}else Zn=!1;Jn=Zn&&(!document.documentMode||9<document.documentMode)}function tr(){Vn&&(Vn.detachEvent("onpropertychange",nr),Gn=Vn=null)}function nr(e){if("value"===e.propertyName&&Yn(Gn)){var t=[];Wn(t,Gn,e,we(e)),Ue(qn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Gn=n,(Vn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ar(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Yn(Gn)}function or(e,t){if("click"===e)return Yn(t)}function ir(e,t){if("input"===e||"change"===e)return Yn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function lr(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!A.call(t,a)||!sr(e[a],t[a]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ur(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function Ar(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?Ar(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function hr(){for(var e=window,t=q();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=q((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function pr(e){var t=hr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ar(n.ownerDocument.documentElement,n)){if(null!==r&&dr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var a=n.textContent.length,o=Math.min(r.start,a);r=void 0===r.end?o:Math.min(r.end,a),!e.extend&&o>r&&(a=r,r=o,o=a),a=ur(n,o);var i=ur(n,r);a&&i&&(1!==e.rangeCount||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&((t=t.createRange()).setStart(a.node,a.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var fr=u&&"documentMode"in document&&11>=document.documentMode,mr=null,yr=null,gr=null,br=!1;function vr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==mr||mr!==q(r)||("selectionStart"in(r=mr)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&lr(gr,r)||(gr=r,0<(r=Vr(yr,"onSelect")).length&&(t=new un("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=mr)))}function wr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Br={animationend:wr("Animation","AnimationEnd"),animationiteration:wr("Animation","AnimationIteration"),animationstart:wr("Animation","AnimationStart"),transitionend:wr("Transition","TransitionEnd")},Cr={},Nr={};function Er(e){if(Cr[e])return Cr[e];if(!Br[e])return e;var t,n=Br[e];for(t in n)if(n.hasOwnProperty(t)&&t in Nr)return Cr[e]=n[t];return e}u&&(Nr=document.createElement("div").style,"AnimationEvent"in window||(delete Br.animationend.animation,delete Br.animationiteration.animation,delete Br.animationstart.animation),"TransitionEvent"in window||delete Br.transitionend.transition);var xr=Er("animationend"),Sr=Er("animationiteration"),Tr=Er("animationstart"),Fr=Er("transitionend"),kr=new Map,Ur="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Lr(e,t){kr.set(e,t),l(t,[e])}for(var Or=0;Or<Ur.length;Or++){var Ir=Ur[Or];Lr(Ir.toLowerCase(),"on"+(Ir[0].toUpperCase()+Ir.slice(1)))}Lr(xr,"onAnimationEnd"),Lr(Sr,"onAnimationIteration"),Lr(Tr,"onAnimationStart"),Lr("dblclick","onDoubleClick"),Lr("focusin","onFocus"),Lr("focusout","onBlur"),Lr(Fr,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),l("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),l("onSelect","focusout contextmenu dragend focu
2sin keydown keyup mousedown mouseup selectionchange".split(" ")),l("onBeforeInput",["compositionend","keypress","textInput","paste"]),l("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),l("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Qr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Hr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Qr));function Rr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,a,i,s,l,c){if(_e.apply(this,arguments),He){if(!He)throw Error(o(198));var u=Re;He=!1,Re=null,Pe||(Pe=!0,De=u)}}(r,t,void 0,e),e.currentTarget=null}function Pr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var i=r.length-1;0<=i;i--){var s=r[i],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==o&&a.isPropagationStopped())break e;Rr(a,s,c),o=l}else for(i=0;i<r.length;i++){if(l=(s=r[i]).instance,c=s.currentTarget,s=s.listener,l!==o&&a.isPropagationStopped())break e;Rr(a,s,c),o=l}}}if(Pe)throw e=De,Pe=!1,De=null,e}function Dr(e,t){var n=t[fa];void 0===n&&(n=t[fa]=new Set);var r=e+"__bubble";n.has(r)||(Kr(t,e,2,!1),n.add(r))}function Mr(e,t,n){var r=0;t&&(r|=4),Kr(n,e,r,t)}var _r="_reactListening"+Math.random().toString(36).slice(2);function jr(e){if(!e[_r]){e[_r]=!0,i.forEach(function(t){"selectionchange"!==t&&(Hr.has(t)||Mr(t,!1,e),Mr(t,!0,e))});var t=9===e.nodeType?e:e.ownerDocument;null===t||t[_r]||(t[_r]=!0,Mr("selectionchange",!1,t))}}function Kr(e,t,n,r){switch(Xt(t)){case 1:var a=Wt;break;case 4:a=Vt;break;default:a=Gt}n=a.bind(null,t,n,e),a=void 0,!Oe||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(a=!0),r?void 0!==a?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):void 0!==a?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function zr(e,t,n,r,a){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var i=r.tag;if(3===i||4===i){var s=r.stateNode.containerInfo;if(s===a||8===s.nodeType&&s.parentNode===a)break;if(4===i)for(i=r.return;null!==i;){var l=i.tag;if((3===l||4===l)&&((l=i.stateNode.containerInfo)===a||8===l.nodeType&&l.parentNode===a))return;i=i.return}for(;null!==s;){if(null===(i=ga(s)))return;if(5===(l=i.tag)||6===l){r=o=i;continue e}s=s.parentNode}}r=r.return}Ue(function(){var r=o,a=we(n),i=[];e:{var s=kr.get(e);if(void 0!==s){var l=un,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":l=Sn;break;case"focusin":c="focus",l=mn;break;case"focusout":c="blur",l=mn;break;case"beforeblur":case"afterblur":l=mn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":l=pn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":l=fn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":l=Fn;break;case xr:case Sr:case Tr:l=yn;break;case Fr:l=kn;break;case"scroll":l=hn;break;case"wheel":l=Ln;break;case"copy":case"cut":case"paste":l=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":l=Tn}var u=0!==(4&t),A=!u&&"scroll"===e,h=u?null!==s?s+"Capture":null:s;u=[];for(var d,p=r;null!==p;){var f=(d=p).stateNode;if(5===d.tag&&null!==f&&(d=f,null!==h&&(null!=(f=Le(p,h))&&u.push(Wr(p,f,d)))),A)break;p=p.return}0<u.length&&(s=new l(s,c,null,n,a),i.push({event:s,listeners:u}))}}if(0===(7&t)){if(l="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===ve||!(c=n.relatedTarget||n.fromElement)||!ga(c)&&!c[pa])&&(l||s)&&(s=a.window===a?a:(s=a.ownerDocument)?s.defaultView||s.parentWindow:window,l?(l=r,null!==(c=(c=n.relatedTarget||n.toElement)?ga(c):null)&&(c!==(A=je(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(l=null,c=r),l!==c)){if(u=pn,f="onMouseLeave",h="onMouseEnter",p="mouse","pointerout"!==e&&"pointerover"!==e||(u=Tn,f="onPointerLeave",h="onPointerEnter",p="pointer"),A=null==l?s:va(l),d=null==c?s:va(c),(s=new u(f,p+"leave",l,n,a)).target=A,s.relatedTarget=d,f=null,ga(a)===r&&((u=new u(h,p+"enter",c,n,a)).target=d,u.relatedTarget=A,f=u),A=f,l&&c)e:{for(h=c,p=0,d=u=l;d;d=Gr(d))p++;for(d=0,f=h;f;f=Gr(f))d++;for(;0<p-d;)u=Gr(u),p--;for(;0<d-p;)h=Gr(h),d--;for(;p--;){if(u===h||null!==h&&u===h.alternate)break e;u=Gr(u),h=Gr(h)}u=null}else u=null;null!==l&&qr(i,s,l,u,!1),null!==c&&null!==A&&qr(i,A,c,u,!0)}if("select"===(l=(s=r?va(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===l&&"file"===s.type)var m=Xn;else if(zn(s))if(Jn)m=ir;else{m=ar;var y=rr}else(l=s.nodeName)&&"input"===l.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(m=or);switch(m&&(m=m(e,r))?Wn(i,m,n,a):(y&&y(e,s,r),"focusout"===e&&(y=s._wrapperState)&&y.controlled&&"number"===s.type&&ee(s,"number",s.value)),y=r?va(r):window,e){case"focusin":(zn(y)||"true"===y.contentEditable)&&(mr=y,yr=r,gr=null);break;case"focusout":gr=yr=mr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,vr(i,n,a);break;case"selectionchange":if(fr)break;case"keydown":case"keyup":vr(i,n,a)}var g;if(In)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else jn?Mn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Rn&&"ko"!==n.locale&&(jn||"onCompositionStart"!==b?"onCompositionEnd"===b&&jn&&(g=en()):(Zt="value"in(Jt=a)?Jt.value:Jt.textContent,jn=!0)),0<(y=Vr(r,b)).length&&(b=new vn(b,e,null,n,a),i.push({event:b,listeners:y}),g?b.data=g:null!==(g=_n(n))&&(b.data=g))),(g=Hn?function(e,t){switch(e){case"compositionend":return _n(t);case"keypress":return 32!==t.which?null:(Dn=!0,Pn);case"textInput":return(e=t.data)===Pn&&Dn?null:e;default:return null}}(e,n):function(e,t){if(jn)return"compositionend"===e||!In&&Mn(e,t)?(e=en(),$t=Zt=Jt=null,jn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;
vendor: 80,705 bytes, line 2
2case"compositionend":return Rn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Vr(r,"onBeforeInput")).length&&(a=new vn("onBeforeInput","beforeinput",null,n,a),i.push({event:a,listeners:r}),a.data=g))}Pr(i,t)})}function Wr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Vr(e,t){for(var n=t+"Capture",r=[];null!==e;){var a=e,o=a.stateNode;5===a.tag&&null!==o&&(a=o,null!=(o=Le(e,n))&&r.unshift(Wr(e,o,a)),null!=(o=Le(e,t))&&r.push(Wr(e,o,a))),e=e.return}return r}function Gr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function qr(e,t,n,r,a){for(var o=t._reactName,i=[];null!==n&&n!==r;){var s=n,l=s.alternate,c=s.stateNode;if(null!==l&&l===r)break;5===s.tag&&null!==c&&(s=c,a?null!=(l=Le(n,o))&&i.unshift(Wr(n,l,s)):a||null!=(l=Le(n,o))&&i.push(Wr(n,l,s))),n=n.return}0!==i.length&&e.push({event:t,listeners:i})}var Yr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Jr(e){return("string"===typeof e?e:""+e).replace(Yr,"\n").replace(Xr,"")}function Zr(e,t,n){if(t=Jr(t),Jr(e)!==t&&n)throw Error(o(425))}function $r(){}var ea=null,ta=null;function na(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ra="function"===typeof setTimeout?setTimeout:void 0,aa="function"===typeof clearTimeout?clearTimeout:void 0,oa="function"===typeof Promise?Promise:void 0,ia="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oa?function(e){return oa.resolve(null).then(e).catch(sa)}:ra;function sa(e){setTimeout(function(){throw e})}function la(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&8===a.nodeType)if("/$"===(n=a.data)){if(0===r)return e.removeChild(a),void jt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=a}while(n);jt(t)}function ca(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function ua(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var Aa=Math.random().toString(36).slice(2),ha="__reactFiber$"+Aa,da="__reactProps$"+Aa,pa="__reactContainer$"+Aa,fa="__reactEvents$"+Aa,ma="__reactListeners$"+Aa,ya="__reactHandles$"+Aa;function ga(e){var t=e[ha];if(t)return t;for(var n=e.parentNode;n;){if(t=n[pa]||n[ha]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=ua(e);null!==e;){if(n=e[ha])return n;e=ua(e)}return t}n=(e=n).parentNode}return null}function ba(e){return!(e=e[ha]||e[pa])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function va(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function wa(e){return e[da]||null}var Ba=[],Ca=-1;function Na(e){return{current:e}}function Ea(e){0>Ca||(e.current=Ba[Ca],Ba[Ca]=null,Ca--)}function xa(e,t){Ca++,Ba[Ca]=e.current,e.current=t}var Sa={},Ta=Na(Sa),Fa=Na(!1),ka=Sa;function Ua(e,t){var n=e.type.contextTypes;if(!n)return Sa;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in n)o[a]=t[a];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function La(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Oa(){Ea(Fa),Ea(Ta)}function Ia(e,t,n){if(Ta.current!==Sa)throw Error(o(168));xa(Ta,t),xa(Fa,n)}function Qa(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var a in r=r.getChildContext())if(!(a in t))throw Error(o(108,K(e)||"Unknown",a));return R({},n,r)}function Ha(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Sa,ka=Ta.current,xa(Ta,e),xa(Fa,Fa.current),!0}function Ra(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Qa(e,t,ka),r.__reactInternalMemoizedMergedChildContext=e,Ea(Fa),Ea(Ta),xa(Ta,e)):Ea(Fa),xa(Fa,n)}var Pa=null,Da=!1,Ma=!1;function _a(e){null===Pa?Pa=[e]:Pa.push(e)}function ja(){if(!Ma&&null!==Pa){Ma=!0;var e=0,t=bt;try{var n=Pa;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Pa=null,Da=!1}catch(a){throw null!==Pa&&(Pa=Pa.slice(e+1)),Ge($e,ja),a}finally{bt=t,Ma=!1}}return null}var Ka=[],za=0,Wa=null,Va=0,Ga=[],qa=0,Ya=null,Xa=1,Ja="";function Za(e,t){Ka[za++]=Va,Ka[za++]=Wa,Wa=e,Va=t}function $a(e,t,n){Ga[qa++]=Xa,Ga[qa++]=Ja,Ga[qa++]=Ya,Ya=e;var r=Xa;e=Ja;var a=32-it(r)-1;r&=~(1<<a),n+=1;var o=32-it(t)+a;if(30<o){var i=a-a%5;o=(r&(1<<i)-1).toString(32),r>>=i,a-=i,Xa=1<<32-it(t)+a|n<<a|r,Ja=o+e}else Xa=1<<o|n<<a|r,Ja=e}function eo(e){null!==e.return&&(Za(e,1),$a(e,1,0))}function to(e){for(;e===Wa;)Wa=Ka[--za],Ka[za]=null,Va=Ka[--za],Ka[za]=null;for(;e===Ya;)Ya=Ga[--qa],Ga[qa]=null,Ja=Ga[--qa],Ga[qa]=null,Xa=Ga[--qa],Ga[qa]=null}var no=null,ro=null,ao=!1,oo=null;function io(e,t){var n=kc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ca(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ya?{id:Xa,overflow:Ja}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=kc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function lo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(ao){var t=ro;if(t){var n=t;if(!so(e,t)){if(lo(e))throw Error(o(418));t=ca(n.nextSibling);var r=no;t&&so(e,t)?io(r,n):(e.flags=-4097&e.flags|2,ao=!1,no=e)}}else{if(lo(e))throw Error(o(418));e.flags=-4097&e.flags|2,ao=!1,no=e}}}function uo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function Ao(e){if(e!==no)return!1;if(!ao)return uo(e),ao=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!na(e.type,e.memoizedProps)),t&&(t=ro)){if(lo(e))throw ho(),Error(o(418));for(;t;)io(e,t),t=ca(t.nextSibling)}if(uo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ca(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ca(e.stateNode.nextSibling):null;return!0}function ho(){for(var e=ro;e;)e=ca(e.nextSibling)}function po(){ro=no=null,ao=!1}function fo(e){null===oo?oo=[e]:oo.push(e)}var mo=v.ReactCurrentBatchConfig;function yo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var a=r,i=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=a.refs;null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function go(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function bo(e){return(0,e._init)(e._payload)}function vo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function a(e,t){return(e=Lc(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hc(n,e.mode,r)).return=e,t):((t=a(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===C?A(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===L&&bo(o)===t.type)?((r=a(t,n.props)).ref=yo(e,t,n),r.return=e,r):((r=Oc(n.type,n.key,n.props,null,e.mode,r)).ref=yo(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Rc(n,e.mode,r)).return=e,t):((t=a(t,n.children||[])).return=e,t)}function A(e,t,n,r,o){return null===t||7!==t.tag?((t=Ic(n,e.mode,r,o)).return=e,t):((t=a(t,n)).return=e,t)}function h(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Hc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case w:return(n=Oc(t.type,t.key,t.props,null,e.mode,n)).ref=yo(e,null,t),n.return=e,n;case B:return(t=Rc(t,e.mode,n)).return=e,t;case L:return h(e,(0,t._init)(t._payload),n)}if(te(t)||Q(t))return(t=Ic(t,e.mode,n,null)).return=e,t;go(e,t)}return null}function d(e,t,n,r){var a=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==a?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case w:return n.key===a?c(e,t,n,r):null;case B:return n.key===a?u(e,t,n,r):null;case L:return d(e,t,(a=n._init)(n._payload),r)}if(te(n)||Q(n))return null!==a?null:A(e,t,n,r,null);go(e,n)}return null}function p(e,t,n,r,a){if("string"===typeof r&&""!==r||"number"===typeof r)return l(t,e=e.get(n)||null,""+r,a);if("object"===typeof r&&null!==r){switch(r.$$typeof){case w:return c(t,e=e.get(null===r.key?n:r.key)||null,r,a);case B:return u(t,e=e.get(null===r.key?n:r.key)||null,r,a);case L:return p(e,t,n,(0,r._init)(r._payload),a)}if(te(r)||Q(r))return A(t,e=e.get(n)||null,r,a,null);go(t,r)}return null}function f(a,o,s,l){for(var c=null,u=null,A=o,f=o=0,m=null;null!==A&&f<s.length;f++){A.index>f?(m=A,A=null):m=A.sibling;var y=d(a,A,s[f],l);if(null===y){null===A&&(A=m);break}e&&A&&null===y.alternate&&t(a,A),o=i(y,o,f),null===u?c=y:u.sibling=y,u=y,A=m}if(f===s.length)return n(a,A),ao&&Za(a,f),c;if(null===A){for(;f<s.length;f++)null!==(A=h(a,s[f],l))&&(o=i(A,o,f),null===u?c=A:u.sibling=A,u=A);return ao&&Za(a,f),c}for(A=r(a,A);f<s.length;f++)null!==(m=p(A,a,f,s[f],l))&&(e&&null!==m.alternate&&A.delete(null===m.key?f:m.key),o=i(m,o,f),null===u?c=m:u.sibling=m,u=m);return e&&A.forEach(function(e){return t(a,e)}),ao&&Za(a,f),c}function m(a,s,l,c){var u=Q(l);if("function"!==typeof u)throw Error(o(150));if(null==(l=u.call(l)))throw Error(o(151));for(var A=u=null,f=s,m=s=0,y=null,g=l.next();null!==f&&!g.done;m++,g=l.next()){f.index>m?(y=f,f=null):y=f.sibling;var b=d(a,f,g.value,c);if(null===b){null===f&&(f=y);break}e&&f&&null===b.alternate&&t(a,f),s=i(b,s,m),null===A?u=b:A.sibling=b,A=b,f=y}if(g.done)return n(a,f),ao&&Za(a,m),u;if(null===f){for(;!g.done;m++,g=l.next())null!==(g=h(a,g.value,c))&&(s=i(g,s,m),null===A?u=g:A.sibling=g,A=g);return ao&&Za(a,m),u}for(f=r(a,f);!g.done;m++,g=l.next())null!==(g=p(f,a,m,g.value,c))&&(e&&null!==g.alternate&&f.delete(null===g.key?m:g.key),s=i(g,s,m),null===A?u=g:A.sibling=g,A=g);return e&&f.forEach(function(e){return t(a,e)}),ao&&Za(a,m),u}return function e(r,o,i,l){if("object"===typeof i&&null!==i&&i.type===C&&null===i.key&&(i=i.props.children),"object"===typeof i&&null!==i){switch(i.$$typeof){case w:e:{for(var c=i.key,u=o;null!==u;){if(u.key===c){if((c=i.type)===C){if(7===u.tag){n(r,u.sibling),(o=a(u,i.props.children)).return=r,r=o;break e}}else if(u.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===L&&bo(c)===u.type){n(r,u.sibling),(o=a(u,i.props)).ref=yo(r,u,i),o.return=r,r=o;break e}n(r,u);break}t(r,u),u=u.sibling}i.type===C?((o=Ic(i.props.children,r.mode,l,i.key)).return=r,r=o):((l=Oc(i.type,i.key,i.props,null,r.mode,l)).ref=yo(r,o,i),l.return=r,r=l)}return s(r);case B:e:{for(u=i.key;null!==o;){if(o.key===u){if(4===o.tag&&o.stateNode.containerInfo===i.containerInfo&&o.stateNode.implementation===i.implementation){n(r,o.sibling),(o=a(o,i.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=Rc(i,r.mode,l)).return=r,r=o}return s(r);case L:return e(r,o,(u=i._init)(i._payload),l)}if(te(i))return f(r,o,i,l);if(Q(i))return m(r,o,i,l);go(r,i)}return"string"===typeof i&&""!==i||"number"===typeof i?(i=""+i,null!==o&&6===o.tag?(n(r,o.sibling),(o=a(o,i)).return=r,r=o):(n(r,o),(o=Hc(i,r.mode,l)).return=r,r=o),s(r)):n(r,o)}}var wo=vo(!0),Bo=vo(!1),Co=Na(null),No=null,Eo=null,xo=null;function So(){xo=Eo=No=null}function To(e){var t=Co.current;Ea(Co),e._currentValue=t}function Fo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function ko(e,t){No=e,xo=Eo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(bs=!0),e.firstContext=null)}function Uo(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===Eo){if(null===No)throw Error(o(308));Eo=e,No.dependencies={lanes:0,firstContext:e}}else Eo=Eo.next=e;return t}var Lo=null;function Oo(e){null===Lo?Lo=[e]:Lo.push(e)}function Io(e,t,n,r){var a=t.interleaved;return null===a?(n.next=n,Oo(t)):(n.next=a.next,a.next=n),t.interleaved=n,Qo(e,r)}function Qo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Ho=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Po(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Do(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mo(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Sl)){var a=r.pending;return null===a?t.next=t:(t.next=a.next,a.next=t),r.pending=t,Qo(e,n)}return null===(a=r.interleaved)?(t.next=t,Oo(r)):(t.next=a.next,a.next=t),r.interleaved=t,Qo(e,n)}function _o(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function jo(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var a=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?a=o=i:o=o.next=i,n=n.next}while(null!==n);null===o?a=o=t:o=o.next=t}else a=o=t;return n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ko(e,t,n,r){var a=e.updateQueue;Ho=!1;var o=a.firstBaseUpdate,i=a.lastBaseUpdate,s=a.shared.pending;if(null!==s){a.shared.pending=null;var l=s,c=l.next;l.next=null,null===i?o=c:i.next=c,i=l;var u=e.alternate;null!==u&&((s=(u=u.updateQueue).lastBaseUpdate)!==i&&(null===s?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(null!==o){var A=a.baseState;for(i=0,u=c=l=null,s=o;;){var h=s.lane,d=s.eventTime;if((r&h)===h){null!==u&&(u=u.next={eventTime:d,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,f=s;switch(h=t,d=n,f.tag){case 1:if("function"===typeof(p=f.payload)){A=p.call(d,A,h);break e}A=p;break e;case 3:p.flags=-65537&p.flags|128;case 0:if(null===(h="function"===typeof(p=f.payload)?p.call(d,A,h):p)||void 0===h)break e;A=R({},A,h);break e;case 2:Ho=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(h=a.effects)?a.effects=[s]:h.push(s))}else d={eventTime:d,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===u?(c=u=d,l=A):u=u.next=d,i|=h;if(null===(s=s.next)){if(null===(s=a.shared.pending))break;s=(h=s).next,h.next=null,a.lastBaseUpdate=h,a.shared.pending=null}}if(null===u&&(l=A),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=u,null!==(t=a.shared.interleaved)){a=t;do{i|=a.lane,a=a.next}while(a!==t)}else null===o&&(a.shared.lanes=0);Ql|=i,e.lanes=i,e.memoizedState=A}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],a=r.callback;if(null!==a){if(r.callback=null,r=n,"function"!==typeof a)throw Error(o(191,a));a.call(r)}}}var Wo={},Vo=Na(Wo),Go=Na(Wo),qo=Na(Wo);function Yo(e){if(e===Wo)throw Error(o(174));return e}function Xo(e,t){switch(xa(qo,t),xa(Go,e),xa(Vo,Wo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:le(null,"");break;default:t=le(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ea(Vo),xa(Vo,t)}function Jo(){Ea(Vo),Ea(Go),Ea(qo)}function Zo(e){Yo(qo.current);var t=Yo(Vo.current),n=le(t,e.type);t!==n&&(xa(Go,e),xa(Vo,n))}function $o(e){Go.current===e&&(Ea(Vo),Ea(Go))}var ei=Na(0);function ti(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ni=[];function ri(){for(var e=0;e<ni.length;e++)ni[e]._workInProgressVersionPrimary=null;ni.length=0}var ai=v.ReactCurrentDispatcher,oi=v.ReactCurrentBatchConfig,ii=0,si=null,li=null,ci=null,ui=!1,Ai=!1,hi=0,di=0;function pi(){throw Error(o(321))}function fi(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function mi(e,t,n,r,a,i){if(ii=i,si=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,ai.current=null===e||null===e.memoizedState?$i:es,e=n(r,a),Ai){i=0;do{if(Ai=!1,hi=0,25<=i)throw Error(o(301));i+=1,ci=li=null,t.updateQueue=null,ai.current=ts,e=n(r,a)}while(Ai)}if(ai.current=Zi,t=null!==li&&null!==li.next,ii=0,ci=li=si=null,ui=!1,t)throw Error(o(300));return e}function yi(){var e=0!==hi;return hi=0,e}function gi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===ci?si.memoizedState=ci=e:ci=ci.next=e,ci}function bi(){if(null===li){var e=si.alternate;e=null!==e?e.memoizedState:null}else e=li.next;var t=null===ci?si.memoizedState:ci.next;if(null!==t)ci=t,li=e;else{if(null===e)throw Error(o(310));e={memoizedState:(li=e).memoizedState,baseState:li.baseState,baseQueue:li.baseQueue,queue:li.queue,next:null},null===ci?si.memoizedState=ci=e:ci=ci.next=e}return ci}function vi(e,t){return"function"===typeof t?t(e):t}function wi(e){var t=bi(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=li,a=r.baseQueue,i=n.pending;if(null!==i){if(null!==a){var s=a.next;a.next=i.next,i.next=s}r.baseQueue=a=i,n.pending=null}if(null!==a){i=a.next,r=r.baseState;var l=s=null,c=null,u=i;do{var A=u.lane;if((ii&A)===A)null!==c&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var h={lane:A,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===c?(l=c=h,s=r):c=c.next=h,si.lanes|=A,Ql|=A}u=u.next}while(null!==u&&u!==i);null===c?s=r:c.next=l,sr(r,t.memoizedState)||(bs=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){a=e;do{i=a.lane,si.lanes|=i,Ql|=i,a=a.next}while(a!==e)}else null===a&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Bi(e){var t=bi(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(null!==a){n.pending=null;var s=a=a.next;do{i=e(i,s.action),s=s.next}while(s!==a);sr(i,t.memoizedState)||(bs=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function Ci(){}function Ni(e,t){var n=si,r=bi(),a=t(),i=!sr(r.memoizedState,a);if(i&&(r.memoizedState=a,bs=!0),r=r.queue,Hi(Si.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==ci&&1&ci.memoizedState.tag){if(n.flags|=2048,Ui(9,xi.bind(null,n,r,a,t),void 0,null),null===Tl)throw Error(o(349));0!==(30&ii)||Ei(n,t,a)}return a}function Ei(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function xi(e,t,n,r){t.value=n,t.getSnapshot=r,Ti(t)&&Fi(e)}function Si(e,t,n){return n(function(){Ti(t)&&Fi(e)})}function Ti(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Fi(e){var t=Qo(e,1);null!==t&&tc(t,e,1,-1)}function ki(e){var t=gi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:vi,lastRenderedState:e},t.queue=e,e=e.dispatch=qi.bind(null,si,e),[t.memoizedState,e]}function Ui(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=si.updateQueue)?(t={lastEffect:null,stores:null},si.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Li(){return bi().memoizedState}function Oi(e,t,n,r){var a=gi();si.flags|=e,a.memoizedState=Ui(1|t,n,void 0,void 0===r?null:r)}function Ii(e,t,n,r){var a=bi();r=void 0===r?null:r;var o=void 0;if(null!==li){var i=li.memoizedState;if(o=i.destroy,null!==r&&fi(r,i.deps))return void(a.memoizedState=Ui(t,n,o,r))}si.flags|=e,a.memoizedState=Ui(1|t,n,o,r)}function Qi(e,t){return Oi(8390656,8,e,t)}function Hi(e,t){return Ii(2048,8,e,t)}function Ri(e,t){return Ii(4,2,e,t)}function Pi(e,t){return Ii(4,4,e,t)}function Di(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Mi(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ii(4,4,Di.bind(null,t,e),n)}function _i(){}function ji(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ki(e,t){var n=bi();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&fi(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function zi(e,t,n){return 0===(21&ii)?(e.baseState&&(e.baseState=!1,bs=!0),e.memoizedState=n):(sr(n,t)||(n=ft(),si.lanes|=n,Ql|=n,e.baseState=!0),t)}function Wi(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=oi.transition;oi.transition={};try{e(!1),t()}finally{bt=n,oi.transition=r}}function Vi(){return bi().memoizedState}function Gi(e,t,n){var r=ec(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Yi(e))Xi(t,n);else if(null!==(n=Io(e,t,n,r))){tc(n,e,r,$l()),Ji(n,t,r)}}function qi(e,t,n){var r=ec(e),a={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Yi(e))Xi(t,a);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var i=t.lastRenderedState,s=o(i,n);if(a.hasEagerState=!0,a.eagerState=s,sr(s,i)){var l=t.interleaved;return null===l?(a.next=a,Oo(t)):(a.next=l.next,l.next=a),void(t.interleaved=a)}}catch(c){}null!==(n=Io(e,t,a,r))&&(tc(n,e,r,a=$l()),Ji(n,t,r))}}function Yi(e){var t=e.alternate;return e===si||null!==t&&t===si}function Xi(e,t){Ai=ui=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ji(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var Zi={readContext:Uo,useCallback:pi,useContext:pi,useEffect:pi,useImperativeHandle:pi,useInsertionEffect:pi,useLayoutEffect:pi,useMemo:pi,useReducer:pi,useRef:pi,useState:pi,useDebugValue:pi,useDeferredValue:pi,useTransition:pi,useMutableSource:pi,useSyncExternalStore:pi,useId:pi,unstable_isNewReconciler:!1},$i={readContext:Uo,useCallback:function(e,t){return gi().memoizedState=[e,void 0===t?null:t],e},useContext:Uo,useEffect:Qi,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Oi(4194308,4,Di.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Oi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Oi(4,2,e,t)},useMemo:function(e,t){var n=gi();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=gi();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Gi.bind(null,si,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},gi().memoizedState=e},useState:ki,useDebugValue:_i,useDeferredValue:function(e){return gi().memoizedState=e},useTransition:function(){var e=ki(!1),t=e[0];return e=Wi.bind(null,e[1]),gi().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=si,a=gi();if(ao){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Tl)throw Error(o(349));0!==(30&ii)||Ei(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,Qi(Si.bind(null,r,i,e),[e]),r.flags|=2048,Ui(9,xi.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=gi(),t=Tl.identifierPrefix;if(ao){var n=Ja;t=":"+t+"R"+(n=(Xa&~(1<<32-it(Xa)-1)).toString(32)+n),0<(n=hi++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=di++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},es={readContext:Uo,useCallback:ji,useContext:Uo,useEffect:Hi,useImperativeHandle:Mi,useInsertionEffect:Ri,useLayoutEffect:Pi,useMemo:Ki,useReducer:wi,useRef:Li,useState:function(){return wi(vi)},useDebugValue:_i,useDeferredValue:function(e){return zi(bi(),li.memoizedState,e)},useTransition:function(){return[wi(vi)[0],bi().memoizedState]},useMutableSource:Ci,useSyncExternalStore:Ni,useId:Vi,unstable_isNewReconciler:!1},ts={readContext:Uo,useCallback:ji,useContext:Uo,useEffect:Hi,useImperativeHandle:Mi,useInsertionEffect:Ri,useLayoutEffect:Pi,useMemo:Ki,useReducer:Bi,useRef:Li,useState:function(){return Bi(vi)},useDebugValue:_i,useDeferredValue:function(e){var t=bi();return null===li?t.memoizedState=e:zi(t,li.memoizedState,e)},useTransition:function(){return[Bi(vi)[0],bi().memoizedState]},useMutableSource:Ci,useSyncExternalStore:Ni,useId:Vi,unstable_isNewReconciler:!1};function ns(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function rs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:R({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var as={isMounted:function(e){return!!(e=e._reactInternals)&&je(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=$l(),a=ec(e),o=Do(r,a);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,a))&&(tc(t,e,a,r),_o(t,e,a))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=$l(),a=ec(e),o=Do(r,a);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=Mo(e,o,a))&&(tc(t,e,a,r),_o(t,e,a))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=$l(),r=ec(e),a=Do(n,r);a.tag=2,void 0!==t&&null!==t&&(a.callback=t),null!==(t=Mo(e,a,r))&&(tc(t,e,r,n),_o(t,e,r))}};function os(e,t,n,r,a,o,i){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,i):!t.prototype||!t.prototype.isPureReactComponent||(!lr(n,r)||!lr(a,o))}function is(e,t,n){var r=!1,a=Sa,o=t.contextType;return"object"===typeof o&&null!==o?o=Uo(o):(a=La(t)?ka:Ta.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Ua(e,a):Sa),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=as,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=o),t}function ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&as.enqueueReplaceState(t,t.state,null)}function ls(e,t,n,r){var a=e.stateNode;a.props=n,a.state=e.memoizedState,a.refs={},Ro(e);var o=t.contextType;"object"===typeof o&&null!==o?a.context=Uo(o):(o=La(t)?ka:Ta.current,a.context=Ua(e,o)),a.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(rs(e,t,o,n),a.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(t=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),t!==a.state&&as.enqueueReplaceState(a,a.state,null),Ko(e,n,a,r),a.state=e.memoizedState),"function"===typeof a.componentDidMount&&(e.flags|=4194308)}function cs(e,t){try{var n="",r=t;do{n+=_(r),r=r.return}while(r);var a=n}catch(o){a="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:a,digest:null}}function us(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function As(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var hs="function"===typeof WeakMap?WeakMap:Map;function ds(e,t,n){(n=Do(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Kl||(Kl=!0,zl=r),As(0,t)},n}function ps(e,t,n){(n=Do(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var a=t.value;n.payload=function(){return r(a)},n.callback=function(){As(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){As(0,t),"function"!==typeof r&&(null===Wl?Wl=new Set([this]):Wl.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function fs(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new hs;var a=new Set;r.set(t,a)}else void 0===(a=r.get(t))&&(a=new Set,r.set(t,a));a.has(n)||(a.add(n),e=Nc.bind(null,e,t,n),t.then(e,e))}function ms(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function ys(e,t,n,r,a){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Do(-1,1)).tag=2,Mo(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var gs=v.ReactCurrentOwner,bs=!1;function vs(e,t,n,r){t.child=null===e?Bo(t,null,n,r):wo(t,e.child,n,r)}function ws(e,t,n,r,a){n=n.render;var o=t.ref;return ko(t,a),r=mi(e,t,n,r,o,a),n=yi(),null===e||bs?(ao&&n&&eo(t),t.flags|=1,vs(e,t,r,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ks(e,t,a))}function Bs(e,t,n,r,a){if(null===e){var o=n.type;return"function"!==typeof o||Uc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Oc(n.type,null,r,t,t.mode,a)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Cs(e,t,o,r,a))}if(o=e.child,0===(e.lanes&a)){var i=o.memoizedProps;if((n=null!==(n=n.compare)?n:lr)(i,r)&&e.ref===t.ref)return Ks(e,t,a)}return t.flags|=1,(e=Lc(o,r)).ref=t.ref,e.return=t,t.child=e}function Cs(e,t,n,r,a){if(null!==e){var o=e.memoizedProps;if(lr(o,r)&&e.ref===t.ref){if(bs=!1,t.pendingProps=r=o,0===(e.lanes&a))return t.lanes=e.lanes,Ks(e,t,a);0!==(131072&e.flags)&&(bs=!0)}}return xs(e,t,n,r,a)}function Ns(e,t,n){var r=t.pendingProps,a=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},xa(Ll,Ul),Ul|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,xa(Ll,Ul),Ul|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,xa(Ll,Ul),Ul|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,xa(Ll,Ul),Ul|=r;return vs(e,t,a,n),t.child}function Es(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function xs(e,t,n,r,a){var o=La(n)?ka:Ta.current;return o=Ua(t,o),ko(t,a),n=mi(e,t,n,r,o,a),r=yi(),null===e||bs?(ao&&r&&eo(t),t.flags|=1,vs(e,t,n,a),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a,Ks(e,t,a))}function Ss(e,t,n,r,a){if(La(n)){var o=!0;Ha(t)}else o=!1;if(ko(t,a),null===t.stateNode)js(e,t),is(t,n,r),ls(t,n,r,a),r=!0;else if(null===e){var i=t.stateNode,s=t.memoizedProps;i.props=s;var l=i.context,c=n.contextType;"object"===typeof c&&null!==c?c=Uo(c):c=Ua(t,c=La(n)?ka:Ta.current);var u=n.getDerivedStateFromProps,A="function"===typeof u||"function"===typeof i.getSnapshotBeforeUpdate;A||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==r||l!==c)&&ss(t,i,r,c),Ho=!1;var h=t.memoizedState;i.state=h,Ko(t,r,i,a),l=t.memoizedState,s!==r||h!==l||Fa.current||Ho?("function"===typeof u&&(rs(t,n,u,r),l=t.memoizedState),(s=Ho||os(t,n,s,r,h,l,c))?(A||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||("function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount()),"function"===typeof i.componentDidMount&&(t.flags|=4194308)):("function"===typeof i.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),i.props=r,i.state=l,i.context=c,r=s):("function"===typeof i.componentDidMount&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Po(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:ns(t.type,s),i.props=c,A=t.pendingProps,h=i.context,"object"===typeof(l=n.contextType)&&null!==l?l=Uo(l):l=Ua(t,l=La(n)?ka:Ta.current);var d=n.getDerivedStateFromProps;(u="function"===typeof d||"function"===typeof i.getSnapshotBeforeUpdate)||"function"!==typeof i.UNSAFE_componentWillReceiveProps&&"function"!==typeof i.componentWillReceiveProps||(s!==A||h!==l)&&ss(t,i,r,l),Ho=!1,h=t.memoizedState,i.state=h,Ko(t,r,i,a);var p=t.memoizedState;s!==A||h!==p||Fa.current||Ho?("function"===typeof d&&(rs(t,n,d,r),p=t.memoizedState),(c=Ho||os(t,n,c,r,h,p,l)||!1)?(u||"function"!==typeof i.UNSAFE_componentWillUpdate&&"function"!==typeof i.componentWillUpdate||("function"===typeof i.componentWillUpdate&&i.componentWillUpdate(r,p,l),"function"===typeof i.UNSAFE_componentWillUpdate&&i.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof i.componentDidUpdate&&(t.flags|=4),"function"===typeof i.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=c):("function"!==typeof i.componentDidUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),"function"!==typeof i.getSnapshotBeforeUpdate||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return Ts(e,t,n,r,o,a)}function Ts(e,t,n,r,a,o){Es(e,t);var i=0!==(128&t.flags);if(!r&&!i)return a&&Ra(t,n,!1),Ks(e,t,o);r=t.stateNode,gs.current=t;var s=i&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&i?(t.child=wo(t,e.child,null,o),t.child=wo(t,null,s,o)):vs(e,t,s,o),t.memoizedState=r.state,a&&Ra(t,n,!0),t.child}function Fs(e){var t=e.stateNode;t.pendingContext?Ia(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Ia(0,t.context,!1),Xo(e,t.containerInfo)}function ks(e,t,n,r,a){return po(),fo(a),t.flags|=256,vs(e,t,n,r),t.child}var Us,Ls,Os,Is={dehydrated:null,treeContext:null,retryLane:0};function Qs(e){return{baseLanes:e,cachePool:null,transitions:null}}function Hs(e,t,n){var r,a=t.pendingProps,i=ei.current,s=!1,l=0!==(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&0!==(2&i)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),xa(ei,1&i),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(l=a.children,e=a.fallback,s?(a=t.mode,s=t.child,l={mode:"hidden",children:l},0===(1&a)&&null!==s?(s.childLanes=0,s.pendingProps=l):s=Qc(l,a,0,null),e=Ic(e,a,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Qs(n),t.memoizedState=Is,e):Rs(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,a,i,s){if(n)return 256&t.flags?(t.flags&=-257,Ps(e,t,s,r=us(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,a=t.mode,r=Qc({mode:"visible",children:r.children},a,0,null),(i=Ic(i,a,s,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,0!==(1&t.mode)&&wo(t,e.child,null,s),t.child.memoizedState=Qs(s),t.memoizedState=Is,i);if(0===(1&t.mode))return Ps(e,t,s,null);if("$!"===a.data){if(r=a.nextSibling&&a.nextSibling.dataset)var l=r.dgst;return r=l,Ps(e,t,s,r=us(i=Error(o(419)),r,void 0))}if(l=0!==(s&e.childLanes),bs||l){if(null!==(r=Tl)){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}0!==(a=0!==(a&(r.suspendedLanes|s))?0:a)&&a!==i.retryLane&&(i.retryLane=a,Qo(e,a),tc(r,e,a,-1))}return pc(),Ps(e,t,s,r=us(Error(o(421))))}return"$?"===a.data?(t.flags|=128,t.child=e.child,t=xc.bind(null,e),a._reactRetry=t,null):(e=i.treeContext,ro=ca(a.nextSibling),no=t,ao=!0,oo=null,null!==e&&(Ga[qa++]=Xa,Ga[qa++]=Ja,Ga[qa++]=Ya,Xa=e.id,Ja=e.overflow,Ya=t),t=Rs(t,r.children),t.flags|=4096,t)}(e,t,l,a,r,i,n);if(s){s=a.fallback,l=t.mode,r=(i=e.child).sibling;var c={mode:"hidden",children:a.children};return 0===(1&l)&&t.child!==i?((a=t.child).childLanes=0,a.pendingProps=c,t.deletions=null):(a=Lc(i,c)).subtreeFlags=14680064&i.subtreeFlags,null!==r?s=Lc(r,s):(s=Ic(s,l,n,null)).flags|=2,s.return=t,a.return=t,a.sibling=s,t.child=a,a=s,s=t.child,l=null===(l=e.child.memoizedState)?Qs(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},s.memoizedState=l,s.childLanes=e.childLanes&~n,t.memoizedState=Is,a}return e=(s=e.child).sibling,a=Lc(s,{mode:"visible",children:a.children}),0===(1&t.mode)&&(a.lanes=n),a.return=t,a.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=a,t.memoizedState=null,a}function Rs(e,t){return(t=Qc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Ps(e,t,n,r){return null!==r&&fo(r),wo(t,e.child,null,n),(e=Rs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Ds(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Fo(e.return,t,n)}function Ms(e,t,n,r,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=a)}function _s(e,t,n){var r=t.pendingProps,a=r.revealOrder,o=r.tail;if(vs(e,t,r.children,n),0!==(2&(r=ei.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Ds(e,n,t);else if(19===e.tag)Ds(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(xa(ei,r),0===(1&t.mode))t.memoizedState=null;else switch(a){case"forwards":for(n=t.child,a=null;null!==n;)null!==(e=n.alternate)&&null===ti(e)&&(a=n),n=n.sibling;null===(n=a)?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),Ms(t,!1,a,n,o);break;case"backwards":for(n=null,a=t.child,t.child=null;null!==a;){if(null!==(e=a.alternate)&&null===ti(e)){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}Ms(t,!0,n,null,o);break;case"together":Ms(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function js(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Ks(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Ql|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Lc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Lc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function zs(e,t){if(!ao)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=14680064&a.subtreeFlags,r|=14680064&a.flags,a.return=e,a=a.sibling;else for(a=e.child;null!==a;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Vs(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return La(t.type)&&Oa(),Ws(t),null;case 3:return r=t.stateNode,Jo(),Ea(Fa),Ea(Ta),ri(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Ao(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(oc(oo),oo=null))),Ws(t),null;case 5:$o(t);var a=Yo(qo.current);if(n=t.type,null!==e&&null!=t.stateNode)Ls(e,t,n,r),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=Yo(Vo.current),Ao(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[ha]=t,r[da]=i,e=0!==(1&t.mode),n){case"dialog":Dr("cancel",r),Dr("close",r);break;case"iframe":case"object":case"embed":Dr("load",r);break;case"video":case"audio":for(a=0;a<Qr.length;a++)Dr(Qr[a],r);break;case"source":Dr("error",r);break;case"img":case"image":case"link":Dr("error",r),Dr("load",r);break;case"details":Dr("toggle",r);break;case"input":X(r,i),Dr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Dr("invalid",r);break;case"textarea":ae(r,i),Dr("invalid",r)}for(var l in ge(n,i),a=null,i)if(i.hasOwnProperty(l)){var c=i[l];"children"===l?"string"===typeof c?r.textContent!==c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),a=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==i.suppressHydrationWarning&&Zr(r.textContent,c,e),a=["children",""+c]):s.hasOwnProperty(l)&&null!=c&&"onScroll"===l&&Dr("scroll",r)}switch(n){case"input":V(r),$(r,i,!0);break;case"textarea":V(r),ie(r);break;case"select":case"option":break;default:"function"===typeof i.onClick&&(r.onclick=$r)}r=a,t.updateQueue=r,null!==r&&(t.flags|=4)}else{l=9===a.nodeType?a:a.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=l.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=l.createElement(n,{is:r.is}):(e=l.createElement(n),"select"===n&&(l=e,r.multiple?l.multiple=!0:r.size&&(l.size=r.size))):e=l.createElementNS(e,n),e[ha]=t,e[da]=r,Us(e,t),t.stateNode=e;e:{switch(l=be(n,r),n){case"dialog":Dr("cancel",e),Dr("close",e),a=r;break;case"iframe":case"object":case"embed":Dr("load",e),a=r;break;case"video":case"audio":for(a=0;a<Qr.length;a++)Dr(Qr[a],e);a=r;break;case"source":Dr("error",e),a=r;break;case"img":case"image":case"link":Dr("error",e),Dr("load",e),a=r;break;case"details":Dr("toggle",e),a=r;break;case"input":X(e,r),a=Y(e,r),Dr("invalid",e);break;case"option":default:a=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},a=R({},r,{value:void 0}),Dr("invalid",e);break;case"textarea":ae(e,r),a=re(e,r),Dr("invalid",e)}for(i in ge(n,a),c=a)if(c.hasOwnProperty(i)){var u=c[i];"style"===i?me(e,u):"dangerouslySetInnerHTML"===i?null!=(u=u?u.__html:void 0)&&Ae(e,u):"children"===i?"string"===typeof u?("textarea"!==n||""!==u)&&he(e,u):"number"===typeof u&&he(e,""+u):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(s.hasOwnProperty(i)?null!=u&&"onScroll"===i&&Dr("scroll",e):null!=u&&b(e,i,u,l))}switch(n){case"input":V(e),$(e,r,!1);break;case"textarea":V(e),ie(e);break;case"option":null!=r.value&&e.setAttribute("value",""+z(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ne(e,!!r.multiple,i,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof a.onClick&&(e.onclick=$r)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Os(0,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=Yo(qo.current),Yo(Vo.current),Ao(t)){if(r=t.stateNode,n=t.memoizedProps,r[ha]=t,(i=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:Zr(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Zr(r.nodeValue,n,0!==(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[ha]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ea(ei),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ao&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))ho(),po(),t.flags|=98560,i=!1;else if(i=Ao(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[ha]=t}else po(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),i=!1}else null!==oo&&(oc(oo),oo=null),i=!0;if(!i)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ei.current)?0===Ol&&(Ol=3):pc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return Jo(),null===e&&jr(t.stateNode.containerInfo),Ws(t),null;case 10:return To(t.type._context),Ws(t),null;case 19:if(Ea(ei),null===(i=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(l=i.rendering))if(r)zs(i,!1);else{if(0!==Ol||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(l=ti(e))){for(t.flags|=128,zs(i,!1),null!==(r=l.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(l=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=l.childLanes,i.lanes=l.lanes,i.child=l.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=l.memoizedProps,i.memoizedState=l.memoizedState,i.updateQueue=l.updateQueue,i.type=l.type,e=l.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return xa(ei,1&ei.current|2),t.child}e=e.sibling}null!==i.tail&&Je()>_l&&(t.flags|=128,r=!0,zs(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ti(l))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),zs(i,!0),null===i.tail&&"hidden"===i.tailMode&&!l.alternate&&!ao)return Ws(t),null}else 2*Je()-i.renderingStartTime>_l&&1073741824!==n&&(t.flags|=128,r=!0,zs(i,!1),t.lanes=4194304);i.isBackwards?(l.sibling=t.child,t.child=l):(null!==(n=i.last)?n.sibling=l:t.child=l,i.last=l)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Je(),t.sibling=null,n=ei.current,xa(ei,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return uc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Ul)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Gs(e,t){switch(to(t),t.tag){case 1:return La(t.type)&&Oa(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return Jo(),Ea(Fa),Ea(Ta),ri(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return $o(t),null;case 13:if(Ea(ei),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));po()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ea(ei),null;case 4:return Jo(),null;case 10:return To(t.type._context),null;case 22:case 23:return uc(),null;default:return null}}Us=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ls=function(e,t,n,r){var a=e.memoizedProps;if(a!==r){e=t.stateNode,Yo(Vo.current);var o,i=null;switch(n){case"input":a=Y(e,a),r=Y(e,r),i=[];break;case"select":a=R({},a,{value:void 0}),r=R({},r,{value:void 0}),i=[];break;case"textarea":a=re(e,a),r=re(e,r),i=[];break;default:"function"!==typeof a.onClick&&"function"===typeof r.onClick&&(e.onclick=$r)}for(u in ge(n,r),n=null,a)if(!r.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u){var l=a[u];for(o in l)l.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(s.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var c=r[u];if(l=null!=a?a[u]:void 0,r.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(o in l)!l.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&l[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(i||(i=[]),i.push(u,n)),n=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(i=i||[]).push(u,c)):"children"===u?"string"!==typeof c&&"number"!==typeof c||(i=i||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(s.hasOwnProperty(u)?(null!=c&&"onScroll"===u&&Dr("scroll",e),i||l===c||(i=[])):(i=i||[]).push(u,c))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}},Os=function(e,t,n,r){n!==r&&(t.flags|=4)};var qs=!1,Ys=!1,Xs="function"===typeof WeakSet?WeakSet:Set,Js=null;function Zs(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Cc(e,t,r)}else n.current=null}function $s(e,t,n){try{n()}catch(r){Cc(e,t,r)}}var el=!1;function tl(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var a=r=r.next;do{if((a.tag&e)===e){var o=a.destroy;a.destroy=void 0,void 0!==o&&$s(t,n,o)}a=a.next}while(a!==r)}}function nl(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function rl(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function al(e){var t=e.alternate;null!==t&&(e.alternate=null,al(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[ha],delete t[da],delete t[fa],delete t[ma],delete t[ya])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ol(e){return 5===e.tag||3===e.tag||4===e.tag}function il(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||ol(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function sl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=$r));else if(4!==r&&null!==(e=e.child))for(sl(e,t,n),e=e.sibling;null!==e;)sl(e,t,n),e=e.sibling}function ll(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(ll(e,t,n),e=e.sibling;null!==e;)ll(e,t,n),e=e.sibling}var cl=null,ul=!1;function Al(e,t,n){for(n=n.child;null!==n;)hl(e,t,n),n=n.sibling}function hl(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(at,n)}catch(s){}switch(n.tag){case 5:Ys||Zs(n,t);case 6:var r=cl,a=ul;cl=null,Al(e,t,n),ul=a,null!==(cl=r)&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):cl.removeChild(n.stateNode));break;case 18:null!==cl&&(ul?(e=cl,n=n.stateNode,8===e.nodeType?la(e.parentNode,n):1===e.nodeType&&la(e,n),jt(e)):la(cl,n.stateNode));break;case 4:r=cl,a=ul,cl=n.stateNode.containerInfo,ul=!0,Al(e,t,n),cl=r,ul=a;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){a=r=r.next;do{var o=a,i=o.destroy;o=o.tag,void 0!==i&&(0!==(2&o)||0!==(4&o))&&$s(n,t,i),a=a.next}while(a!==r)}Al(e,t,n);break;case 1:if(!Ys&&(Zs(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Cc(n,t,s)}Al(e,t,n);break;case 21:Al(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,Al(e,t,n),Ys=r):Al(e,t,n);break;default:Al(e,t,n)}}function dl(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new Xs),t.forEach(function(t){var r=Sc.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function pl(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var a=n[r];try{var i=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 5:cl=l.stateNode,ul=!1;break e;case 3:case 4:cl=l.stateNode.containerInfo,ul=!0;break e}l=l.return}if(null===cl)throw Error(o(160));hl(i,s,a),cl=null,ul=!1;var c=a.alternate;null!==c&&(c.return=null),a.return=null}catch(u){Cc(a,t,u)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)fl(t,e),t=t.sibling}function fl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(pl(t,e),ml(e),4&r){try{tl(3,e,e.return),nl(3,e)}catch(m){Cc(e,e.return,m)}try{tl(5,e,e.return)}catch(m){Cc(e,e.return,m)}}break;case 1:pl(t,e),ml(e),512&r&&null!==n&&Zs(n,n.return);break;case 5:if(pl(t,e),ml(e),512&r&&null!==n&&Zs(n,n.return),32&e.flags){var a=e.stateNode;try{he(a,"")}catch(m){Cc(e,e.return,m)}}if(4&r&&null!=(a=e.stateNode)){var i=e.memoizedProps,s=null!==n?n.memoizedProps:i,l=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===l&&"radio"===i.type&&null!=i.name&&J(a,i),be(l,s);var u=be(l,i);for(s=0;s<c.length;s+=2){var A=c[s],h=c[s+1];"style"===A?me(a,h):"dangerouslySetInnerHTML"===A?Ae(a,h):"children"===A?he(a,h):b(a,A,h,u)}switch(l){case"input":Z(a,i);break;case"textarea":oe(a,i);break;case"select":var d=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!i.multiple;var p=i.value;null!=p?ne(a,!!i.multiple,p,!1):d!==!!i.multiple&&(null!=i.defaultValue?ne(a,!!i.multiple,i.defaultValue,!0):ne(a,!!i.multiple,i.multiple?[]:"",!1))}a[da]=i}catch(m){Cc(e,e.return,m)}}break;case 6:if(pl(t,e),ml(e),4&r){if(null===e.stateNode)throw Error(o(162));a=e.stateNode,i=e.memoizedProps;try{a.nodeValue=i}catch(m){Cc(e,e.return,m)}}break;case 3:if(pl(t,e),ml(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{jt(t.containerInfo)}catch(m){Cc(e,e.return,m)}break;case 4:default:pl(t,e),ml(e);break;case 13:pl(t,e),ml(e),8192&(a=e.child).flags&&(i=null!==a.memoizedState,a.stateNode.isHidden=i,!i||null!==a.alternate&&null!==a.alternate.memoizedState||(Ml=Je())),4&r&&dl(e);break;case 22:if(A=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(u=Ys)||A,pl(t,e),Ys=u):pl(t,e),ml(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!A&&0!==(1&e.mode))for(Js=e,A=e.child;null!==A;){for(h=Js=A;null!==Js;){switch(p=(d=Js).child,d.tag){case 0:case 11:case 14:case 15:tl(4,d,d.return);break;case 1:Zs(d,d.return);var f=d.stateNode;if("function"===typeof f.componentWillUnmount){r=d,n=d.return;try{t=r,f.props=t.memoizedProps,f.state=t.memoizedState,f.componentWillUnmount()}catch(m){Cc(r,n,m)}}break;case 5:Zs(d,d.return);break;case 22:if(null!==d.memoizedState){vl(h);continue}}null!==p?(p.return=d,Js=p):vl(h)}A=A.sibling}e:for(A=null,h=e;;){if(5===h.tag){if(null===A){A=h;try{a=h.stateNode,u?"function"===typeof(i=a.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=h.stateNode,s=void 0!==(c=h.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,l.style.display=fe("display",s))}catch(m){Cc(e,e.return,m)}}}else if(6===h.tag){if(null===A)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(m){Cc(e,e.return,m)}}else if((22!==h.tag&&23!==h.tag||null===h.memoizedState||h===e)&&null!==h.child){h.child.return=h,h=h.child;continue}if(h===e)break e;for(;null===h.sibling;){if(null===h.return||h.return===e)break e;A===h&&(A=null),h=h.return}A===h&&(A=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:pl(t,e),ml(e),4&r&&dl(e);case 21:}}function ml(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(ol(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var a=r.stateNode;32&r.flags&&(he(a,""),r.flags&=-33),ll(e,il(e),a);break;case 3:case 4:var i=r.stateNode.containerInfo;sl(e,il(e),i);break;default:throw Error(o(161))}}catch(s){Cc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function yl(e,t,n){Js=e,gl(e,t,n)}function gl(e,t,n){for(var r=0!==(1&e.mode);null!==Js;){var a=Js,o=a.child;if(22===a.tag&&r){var i=null!==a.memoizedState||qs;if(!i){var s=a.alternate,l=null!==s&&null!==s.memoizedState||Ys;s=qs;var c=Ys;if(qs=i,(Ys=l)&&!c)for(Js=a;null!==Js;)l=(i=Js).child,22===i.tag&&null!==i.memoizedState?wl(a):null!==l?(l.return=i,Js=l):wl(a);for(;null!==o;)Js=o,gl(o,t,n),o=o.sibling;Js=a,qs=s,Ys=c}bl(e)}else 0!==(8772&a.subtreeFlags)&&null!==o?(o.return=a,Js=o):bl(e)}}function bl(e){for(;null!==Js;){var t=Js;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||nl(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:ns(t.type,n.memoizedProps);r.componentDidUpdate(a,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&zo(t,i,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var A=u.memoizedState;if(null!==A){var h=A.dehydrated;null!==h&&jt(h)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&rl(t)}catch(d){Cc(t,t.return,d)}}if(t===e){Js=null;break}if(null!==(n=t.sibling)){n.return=t.return,Js=n;break}Js=t.return}}function vl(e){for(;null!==Js;){var t=Js;if(t===e){Js=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Js=n;break}Js=t.return}}function wl(e){for(;null!==Js;){var t=Js;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{nl(4,t)}catch(l){Cc(t,n,l)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var a=t.return;try{r.componentDidMount()}catch(l){Cc(t,a,l)}}var o=t.return;try{rl(t)}catch(l){Cc(t,o,l)}break;case 5:var i=t.return;try{rl(t)}catch(l){Cc(t,i,l)}}}catch(l){Cc(t,t.return,l)}if(t===e){Js=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Js=s;break}Js=t.return}}var Bl,Cl=Math.ceil,Nl=v.ReactCurrentDispatcher,El=v.ReactCurrentOwner,xl=v.ReactCurrentBatchConfig,Sl=0,Tl=null,Fl=null,kl=0,Ul=0,Ll=Na(0),Ol=0,Il=null,Ql=0,Hl=0,Rl=0,Pl=null,Dl=null,Ml=0,_l=1/0,jl=null,Kl=!1,zl=null,Wl=null,Vl=!1,Gl=null,ql=0,Yl=0,Xl=null,Jl=-1,Zl=0;function $l(){return 0!==(6&Sl)?Je():-1!==Jl?Jl:Jl=Je()}function ec(e){return 0===(1&e.mode)?1:0!==(2&Sl)&&0!==kl?kl&-kl:null!==mo.transition?(0===Zl&&(Zl=ft()),Zl):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function tc(e,t,n,r){if(50<Yl)throw Yl=0,Xl=null,Error(o(185));yt(e,n,r),0!==(2&Sl)&&e===Tl||(e===Tl&&(0===(2&Sl)&&(Hl|=n),4===Ol&&ic(e,kl)),nc(e,r),1===n&&0===Sl&&0===(1&t.mode)&&(_l=Je()+500,Da&&ja()))}function nc(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,o=e.pendingLanes;0<o;){var i=31-it(o),s=1<<i,l=a[i];-1===l?0!==(s&n)&&0===(s&r)||(a[i]=dt(s,t)):l<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=ht(e,e===Tl?kl:0);if(0===r)null!==n&&qe(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&qe(n),1===t)0===e.tag?function(e){Da=!0,_a(e)}(sc.bind(null,e)):_a(sc.bind(null,e)),ia(function(){0===(6&Sl)&&ja()}),n=null;else{switch(vt(r)){case 1:n=$e;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Tc(n,rc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function rc(e,t){if(Jl=-1,Zl=0,0!==(6&Sl))throw Error(o(327));var n=e.callbackNode;if(wc()&&e.callbackNode!==n)return null;var r=ht(e,e===Tl?kl:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=fc(e,r);else{t=r;var a=Sl;Sl|=2;var i=dc();for(Tl===e&&kl===t||(jl=null,_l=Je()+500,Ac(e,t));;)try{yc();break}catch(l){hc(e,l)}So(),Nl.current=i,Sl=a,null!==Fl?t=0:(Tl=null,kl=0,t=Ol)}if(0!==t){if(2===t&&(0!==(a=pt(e))&&(r=a,t=ac(e,a))),1===t)throw n=Il,Ac(e,0),ic(e,r),nc(e,Je()),n;if(6===t)ic(e,r);else{if(a=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var a=n[r],o=a.getSnapshot;a=a.value;try{if(!sr(o(),a))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(a)&&(2===(t=fc(e,r))&&(0!==(i=pt(e))&&(r=i,t=ac(e,i))),1===t))throw n=Il,Ac(e,0),ic(e,r),nc(e,Je()),n;switch(e.finishedWork=a,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:vc(e,Dl,jl);break;case 3:if(ic(e,r),(130023424&r)===r&&10<(t=Ml+500-Je())){if(0!==ht(e,0))break;if(((a=e.suspendedLanes)&r)!==r){$l(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=ra(vc.bind(null,e,Dl,jl),t);break}vc(e,Dl,jl);break;case 4:if(ic(e,r),(4194240&r)===r)break;for(t=e.eventTimes,a=-1;0<r;){var s=31-it(r);i=1<<s,(s=t[s])>a&&(a=s),r&=~i}if(r=a,10<(r=(120>(r=Je()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Cl(r/1960))-r)){e.timeoutHandle=ra(vc.bind(null,e,Dl,jl),r);break}vc(e,Dl,jl);break;default:throw Error(o(329))}}}return nc(e,Je()),e.callbackNode===n?rc.bind(null,e):null}function ac(e,t){var n=Pl;return e.current.memoizedState.isDehydrated&&(Ac(e,t).flags|=256),2!==(e=fc(e,t))&&(t=Dl,Dl=n,null!==t&&oc(t)),e}function oc(e){null===Dl?Dl=e:Dl.push.apply(Dl,e)}function ic(e,t){for(t&=~Rl,t&=~Hl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-it(t),r=1<<n;e[n]=-1,t&=~r}}function sc(e){if(0!==(6&Sl))throw Error(o(327));wc();var t=ht(e,0);if(0===(1&t))return nc(e,Je()),null;var n=fc(e,t);if(0!==e.tag&&2===n){var r=pt(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Il,Ac(e,0),ic(e,t),nc(e,Je()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,vc(e,Dl,jl),nc(e,Je()),null}function lc(e,t){var n=Sl;Sl|=1;try{return e(t)}finally{0===(Sl=n)&&(_l=Je()+500,Da&&ja())}}function cc(e){null!==Gl&&0===Gl.tag&&0===(6&Sl)&&wc();var t=Sl;Sl|=1;var n=xl.transition,r=bt;try{if(xl.transition=null,bt=1,e)return e()}finally{bt=r,xl.transition=n,0===(6&(Sl=t))&&ja()}}function uc(){Ul=Ll.current,Ea(Ll)}function Ac(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,aa(n)),null!==Fl)for(n=Fl.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Oa();break;case 3:Jo(),Ea(Fa),Ea(Ta),ri();break;case 5:$o(r);break;case 4:Jo();break;case 13:case 19:Ea(ei);break;case 10:To(r.type._context);break;case 22:case 23:uc()}n=n.return}if(Tl=e,Fl=e=Lc(e.current,null),kl=Ul=t,Ol=0,Il=null,Rl=Hl=Ql=0,Dl=Pl=null,null!==Lo){for(t=0;t<Lo.length;t++)if(null!==(r=(n=Lo[t]).interleaved)){n.interleaved=null;var a=r.next,o=n.pending;if(null!==o){var i=o.next;o.next=a,r.next=i}n.pending=r}Lo=null}return e}function hc(e,t){for(;;){var n=Fl;try{if(So(),ai.current=Zi,ui){for(var r=si.memoizedState;null!==r;){var a=r.queue;null!==a&&(a.pending=null),r=r.next}ui=!1}if(ii=0,ci=li=si=null,Ai=!1,hi=0,El.current=null,null===n||null===n.return){Ol=1,Il=t,Fl=null;break}e:{var i=e,s=n.return,l=n,c=t;if(t=kl,l.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var u=c,A=l,h=A.tag;if(0===(1&A.mode)&&(0===h||11===h||15===h)){var d=A.alternate;d?(A.updateQueue=d.updateQueue,A.memoizedState=d.memoizedState,A.lanes=d.lanes):(A.updateQueue=null,A.memoizedState=null)}var p=ms(s);if(null!==p){p.flags&=-257,ys(p,s,l,0,t),1&p.mode&&fs(i,u,t),c=u;var f=(t=p).updateQueue;if(null===f){var m=new Set;m.add(c),t.updateQueue=m}else f.add(c);break e}if(0===(1&t)){fs(i,u,t),pc();break e}c=Error(o(426))}else if(ao&&1&l.mode){var y=ms(s);if(null!==y){0===(65536&y.flags)&&(y.flags|=256),ys(y,s,l,0,t),fo(cs(c,l));break e}}i=c=cs(c,l),4!==Ol&&(Ol=2),null===Pl?Pl=[i]:Pl.push(i),i=s;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,jo(i,ds(0,c,t));break e;case 1:l=c;var g=i.type,b=i.stateNode;if(0===(128&i.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wl||!Wl.has(b)))){i.flags|=65536,t&=-t,i.lanes|=t,jo(i,ps(i,l,t));break e}}i=i.return}while(null!==i)}bc(n)}catch(v){t=v,Fl===n&&null!==n&&(Fl=n=n.return);continue}break}}function dc(){var e=Nl.current;return Nl.current=Zi,null===e?Zi:e}function pc(){0!==Ol&&3!==Ol&&2!==Ol||(Ol=4),null===Tl||0===(268435455&Ql)&&0===(268435455&Hl)||ic(Tl,kl)}function fc(e,t){var n=Sl;Sl|=2;var r=dc();for(Tl===e&&kl===t||(jl=null,Ac(e,t));;)try{mc();break}catch(a){hc(e,a)}if(So(),Sl=n,Nl.current=r,null!==Fl)throw Error(o(261));return Tl=null,kl=0,Ol}function mc(){for(;null!==Fl;)gc(Fl)}function yc(){for(;null!==Fl&&!Ye();)gc(Fl)}function gc(e){var t=Bl(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,null===t?bc(e):Fl=t,El.current=null}function bc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Vs(n,t,Ul)))return void(Fl=n)}else{if(null!==(n=Gs(n,t)))return n.flags&=32767,void(Fl=n);if(null===e)return Ol=6,void(Fl=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Fl=t);Fl=t=e}while(null!==t);0===Ol&&(Ol=5)}function vc(e,t,n){var r=bt,a=xl.transition;try{xl.transition=null,bt=1,function(e,t,n,r){do{wc()}while(null!==Gl);if(0!==(6&Sl))throw Error(o(327));n=e.finishedWork;var a=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var a=31-it(n),o=1<<a;t[a]=0,r[a]=-1,e[a]=-1,n&=~o}}(e,i),e===Tl&&(Fl=Tl=null,kl=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Vl||(Vl=!0,Tc(tt,function(){return wc(),null})),i=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||i){i=xl.transition,xl.transition=null;var s=bt;bt=1;var l=Sl;Sl|=4,El.current=null,function(e,t){if(ea=zt,dr(e=hr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(w){n=null;break e}var s=0,l=-1,c=-1,u=0,A=0,h=e,d=null;t:for(;;){for(var p;h!==n||0!==a&&3!==h.nodeType||(l=s+a),h!==i||0!==r&&3!==h.nodeType||(c=s+r),3===h.nodeType&&(s+=h.nodeValue.length),null!==(p=h.firstChild);)d=h,h=p;for(;;){if(h===e)break t;if(d===n&&++u===a&&(l=s),d===i&&++A===r&&(c=s),null!==(p=h.nextSibling))break;d=(h=d).parentNode}h=p}n=-1===l||-1===c?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ta={focusedElem:e,selectionRange:n},zt=!1,Js=t;null!==Js;)if(e=(t=Js).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Js=e;else for(;null!==Js;){t=Js;try{var f=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==f){var m=f.memoizedProps,y=f.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?m:ns(t.type,m),y);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var v=t.stateNode.containerInfo;1===v.nodeType?v.textContent="":9===v.nodeType&&v.documentElement&&v.removeChild(v.documentElement);break;default:throw Error(o(163))}}catch(w){Cc(t,t.return,w)}if(null!==(e=t.sibling)){e.return=t.return,Js=e;break}Js=t.return}f=el,el=!1}(e,n),fl(n,e),pr(ta),zt=!!ea,ta=ea=null,e.current=n,yl(n,e,a),Xe(),Sl=l,bt=s,xl.transition=i}else e.current=n;if(Vl&&(Vl=!1,Gl=e,ql=a),i=e.pendingLanes,0===i&&(Wl=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(at,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),nc(e,Je()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],r(a.value,{componentStack:a.stack,digest:a.digest});if(Kl)throw Kl=!1,e=zl,zl=null,e;0!==(1&ql)&&0!==e.tag&&wc(),i=e.pendingLanes,0!==(1&i)?e===Xl?Yl++:(Yl=0,Xl=e):Yl=0,ja()}(e,t,n,r)}finally{xl.transition=a,bt=r}return null}function wc(){if(null!==Gl){var e=vt(ql),t=xl.transition,n=bt;try{if(xl.transition=null,bt=16>e?16:e,null===Gl)var r=!1;else{if(e=Gl,Gl=null,ql=0,0!==(6&Sl))throw Error(o(331));var a=Sl;for(Sl|=4,Js=e.current;null!==Js;){var i=Js,s=i.child;if(0!==(16&Js.flags)){var l=i.deletions;if(null!==l){for(var c=0;c<l.length;c++){var u=l[c];for(Js=u;null!==Js;){var A=Js;switch(A.tag){case 0:case 11:case 15:tl(8,A,i)}var h=A.child;if(null!==h)h.return=A,Js=h;else for(;null!==Js;){var d=(A=Js).sibling,p=A.return;if(al(A),A===u){Js=null;break}if(null!==d){d.return=p,Js=d;break}Js=p}}}var f=i.alternate;if(null!==f){var m=f.child;if(null!==m){f.child=null;do{var y=m.sibling;m.sibling=null,m=y}while(null!==m)}}Js=i}}if(0!==(2064&i.subtreeFlags)&&null!==s)s.return=i,Js=s;else e:for(;null!==Js;){if(0!==(2048&(i=Js).flags))switch(i.tag){case 0:case 11:case 15:tl(9,i,i.return)}var g=i.sibling;if(null!==g){g.return=i.return,Js=g;break e}Js=i.return}}var b=e.current;for(Js=b;null!==Js;){var v=(s=Js).child;if(0!==(2064&s.subtreeFlags)&&null!==v)v.return=s,Js=v;else e:for(s=b;null!==Js;){if(0!==(2048&(l=Js).flags))try{switch(l.tag){case 0:case 11:case 15:nl(9,l)}}catch(B){Cc(l,l.return,B)}if(l===s){Js=null;break e}var w=l.sibling;if(null!==w){w.return=l.return,Js=w;break e}Js=l.return}}if(Sl=a,ja(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(at,e)}catch(B){}r=!0}return r}finally{bt=n,xl.transition=t}}return!1}function Bc(e,t,n){e=Mo(e,t=ds(0,t=cs(n,t),1),1),t=$l(),null!==e&&(yt(e,1,t),nc(e,t))}function Cc(e,t,n){if(3===e.tag)Bc(e,e,n);else for(;null!==t;){if(3===t.tag){Bc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wl||!Wl.has(r))){t=Mo(t,e=ps(t,e=cs(n,e),1),1),e=$l(),null!==t&&(yt(t,1,e),nc(t,e));break}}t=t.return}}function Nc(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=$l(),e.pingedLanes|=e.suspendedLanes&n,Tl===e&&(kl&n)===n&&(4===Ol||3===Ol&&(130023424&kl)===kl&&500>Je()-Ml?Ac(e,0):Rl|=n),nc(e,t)}function Ec(e,t){0===t&&(0===(1&e.mode)?t=1:(t=ut,0===(130023424&(ut<<=1))&&(ut=4194304)));var n=$l();null!==(e=Qo(e,t))&&(yt(e,t,n),nc(e,n))}function xc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Ec(e,n)}function Sc(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,a=e.memoizedState;null!==a&&(n=a.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Ec(e,n)}function Tc(e,t){return Ge(e,t)}function Fc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function kc(e,t,n,r){return new Fc(e,t,n,r)}function Uc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Lc(e,t){var n=e.alternate;return null===n?((n=kc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Oc(e,t,n,r,a,i){var s=2;if(r=e,"function"===typeof e)Uc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case C:return Ic(n.children,a,i,t);case N:s=8,a|=8;break;case E:return(e=kc(12,n,t,2|a)).elementType=E,e.lanes=i,e;case F:return(e=kc(13,n,t,a)).elementType=F,e.lanes=i,e;case k:return(e=kc(19,n,t,a)).elementType=k,e.lanes=i,e;case O:return Qc(n,a,i,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case x:s=10;break e;case S:s=9;break e;case T:s=11;break e;case U:s=14;break e;case L:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=kc(s,n,t,a)).elementType=e,t.type=r,t.lanes=i,t}function Ic(e,t,n,r){return(e=kc(7,e,r,t)).lanes=n,e}function Qc(e,t,n,r){return(e=kc(22,e,r,t)).elementType=O,e.lanes=n,e.stateNode={isHidden:!1},e}function Hc(e,t,n){return(e=kc(6,e,null,t)).lanes=n,e}function Rc(e,t,n){return(t=kc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Pc(e,t,n,r,a){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=mt(0),this.expirationTimes=mt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=mt(0),this.identifierPrefix=r,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Dc(e,t,n,r,a,o,i,s,l){return e=new Pc(e,t,n,s,l),1===t?(t=1,!0===o&&(t|=8)):t=0,o=kc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Mc(e){if(!e)return Sa;e:{if(je(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(La(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(La(n))return Qa(e,n,t)}return t}function _c(e,t,n,r,a,o,i,s,l){return(e=Dc(n,r,!0,e,0,o,0,s,l)).context=Mc(null),n=e.current,(o=Do(r=$l(),a=ec(n))).callback=void 0!==t&&null!==t?t:null,Mo(n,o,a),e.current.lanes=a,yt(e,a,r),nc(e,r),e}function jc(e,t,n,r){var a=t.current,o=$l(),i=ec(a);return n=Mc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Do(o,i)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=Mo(a,t,i))&&(tc(e,a,i,o),_o(e,a,i)),i}function Kc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function zc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){zc(e,t),(e=e.alternate)&&zc(e,t)}Bl=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Fa.current)bs=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return bs=!1,function(e,t,n){switch(t.tag){case 3:Fs(t),po();break;case 5:Zo(t);break;case 1:La(t.type)&&Ha(t);break;case 4:Xo(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,a=t.memoizedProps.value;xa(Co,r._currentValue),r._currentValue=a;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(xa(ei,1&ei.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Hs(e,t,n):(xa(ei,1&ei.current),null!==(e=Ks(e,t,n))?e.sibling:null);xa(ei,1&ei.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return _s(e,t,n);t.flags|=128}if(null!==(a=t.memoizedState)&&(a.rendering=null,a.tail=null,a.lastEffect=null),xa(ei,ei.current),r)break;return null;case 22:case 23:return t.lanes=0,Ns(e,t,n)}return Ks(e,t,n)}(e,t,n);bs=0!==(131072&e.flags)}else bs=!1,ao&&0!==(1048576&t.flags)&&$a(t,Va,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;js(e,t),e=t.pendingProps;var a=Ua(t,Ta.current);ko(t,n),a=mi(null,t,r,e,a,n);var i=yi();return t.flags|=1,"object"===typeof a&&null!==a&&"function"===typeof a.render&&void 0===a.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,La(r)?(i=!0,Ha(t)):i=!1,t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,Ro(t),a.updater=as,t.stateNode=a,a._reactInternals=t,ls(t,r,e,n),t=Ts(null,t,r,!0,i,n)):(t.tag=0,ao&&i&&eo(t),vs(null,t,a,n),t=t.child),t;case 16:r=t.elementType;e:{switch(js(e,t),e=t.pendingProps,r=(a=r._init)(r._payload),t.type=r,a=t.tag=function(e){if("function"===typeof e)return Uc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===T)return 11;if(e===U)return 14}return 2}(r),e=ns(r,e),a){case 0:t=xs(null,t,r,e,n);break e;case 1:t=Ss(null,t,r,e,n);break e;case 11:t=ws(null,t,r,e,n);break e;case 14:t=Bs(null,t,r,ns(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,a=t.pendingProps,xs(e,t,r,a=t.elementType===r?a:ns(r,a),n);case 1:return r=t.type,a=t.pendingProps,Ss(e,t,r,a=t.elementType===r?a:ns(r,a),n);case 3:e:{if(Fs(t),null===e)throw Error(o(387));r=t.pendingProps,a=(i=t.memoizedState).element,Po(e,t),Ko(t,r,null,n);var s=t.memoizedState;if(r=s.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=ks(e,t,r,n,a=cs(Error(o(423)),t));break e}if(r!==a){t=ks(e,t,r,n,a=cs(Error(o(424)),t));break e}for(ro=ca(t.stateNode.containerInfo.firstChild),no=t,ao=!0,oo=null,n=Bo(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(po(),r===a){t=Ks(e,t,n);break e}vs(e,t,r,n)}t=t.child}return t;case 5:return Zo(t),null===e&&co(t),r=t.type,a=t.pendingProps,i=null!==e?e.memoizedProps:null,s=a.children,na(r,a)?s=null:null!==i&&na(r,i)&&(t.flags|=32),Es(e,t),vs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Hs(e,t,n);case 4:return Xo(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=wo(t,null,r,n):vs(e,t,r,n),t.child;case 11:return r=t.type,a=t.pendingProps,ws(e,t,r,a=t.elementType===r?a:ns(r,a),n);case 7:return vs(e,t,t.pendingProps,n),t.child;case 8:case 12:return vs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,a=t.pendingProps,i=t.memoizedProps,s=a.value,xa(Co,r._currentValue),r._currentValue=s,null!==i)if(sr(i.value,s)){if(i.children===a.children&&!Fa.current){t=Ks(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){s=i.child;for(var c=l.firstContext;null!==c;){if(c.context===r){if(1===i.tag){(c=Do(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var A=(u=u.shared).pending;null===A?c.next=c:(c.next=A.next,A.next=c),u.pending=c}}i.lanes|=n,null!==(c=i.alternate)&&(c.lanes|=n),Fo(i.return,n,t),l.lanes|=n;break}c=c.next}}else if(10===i.tag)s=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(l=s.alternate)&&(l.lanes|=n),Fo(s,n,t),s=i.sibling}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===t){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}vs(e,t,a.children,n),t=t.child}return t;
vendor: 10,557 bytes, line 2
2case 9:return a=t.type,r=t.pendingProps.children,ko(t,n),r=r(a=Uo(a)),t.flags|=1,vs(e,t,r,n),t.child;case 14:return a=ns(r=t.type,t.pendingProps),Bs(e,t,r,a=ns(r.type,a),n);case 15:return Cs(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,a=t.pendingProps,a=t.elementType===r?a:ns(r,a),js(e,t),t.tag=1,La(r)?(e=!0,Ha(t)):e=!1,ko(t,n),is(t,r,a),ls(t,r,a,n),Ts(null,t,r,!0,e,n);case 19:return _s(e,t,n);case 22:return Ns(e,t,n)}throw Error(o(156,t.tag))};var Vc="function"===typeof reportError?reportError:function(e){console.error(e)};function Gc(e){this._internalRoot=e}function qc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function Xc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Jc(){}function Zc(e,t,n,r,a){var o=n._reactRootContainer;if(o){var i=o;if("function"===typeof a){var s=a;a=function(){var e=Kc(i);s.call(e)}}jc(t,i,e,a)}else i=function(e,t,n,r,a){if(a){if("function"===typeof r){var o=r;r=function(){var e=Kc(i);o.call(e)}}var i=_c(t,r,e,0,null,!1,0,"",Jc);return e._reactRootContainer=i,e[pa]=i.current,jr(8===e.nodeType?e.parentNode:e),cc(),i}for(;a=e.lastChild;)e.removeChild(a);if("function"===typeof r){var s=r;r=function(){var e=Kc(l);s.call(e)}}var l=Dc(e,0,!1,null,0,!1,0,"",Jc);return e._reactRootContainer=l,e[pa]=l.current,jr(8===e.nodeType?e.parentNode:e),cc(function(){jc(t,l,n,r)}),l}(n,t,e,a,r);return Kc(i)}qc.prototype.render=Gc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));jc(e,t,null,null)},qc.prototype.unmount=Gc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;cc(function(){jc(null,e,null,null)}),t[pa]=null}},qc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Nt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Ot.length&&0!==t&&t<Ot[n].priority;n++);Ot.splice(n,0,e),0===n&&Rt(e)}},wt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=At(t.pendingLanes);0!==n&&(gt(t,1|n),nc(t,Je()),0===(6&Sl)&&(_l=Je()+500,ja()))}break;case 13:cc(function(){var t=Qo(e,1);if(null!==t){var n=$l();tc(t,e,1,n)}}),Wc(e,1)}},Bt=function(e){if(13===e.tag){var t=Qo(e,134217728);if(null!==t)tc(t,e,134217728,$l());Wc(e,134217728)}},Ct=function(e){if(13===e.tag){var t=ec(e),n=Qo(e,t);if(null!==n)tc(n,e,t,$l());Wc(e,t)}},Nt=function(){return bt},Et=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Be=function(e,t,n){switch(t){case"input":if(Z(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=wa(r);if(!a)throw Error(o(90));G(r),Z(r,a)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Te=lc,Fe=cc;var $c={usingClientEntryPoint:!1,Events:[ba,va,wa,xe,Se,lc]},eu={findFiberByHostInstance:ga,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},tu={bundleType:eu.bundleType,version:eu.version,rendererPackageName:eu.rendererPackageName,rendererConfig:eu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:v.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=We(e))?null:e.stateNode},findFiberByHostInstance:eu.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var nu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!nu.isDisabled&&nu.supportsFiber)try{at=nu.inject(tu),ot=nu}catch(ue){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=$c,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:B,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(o(299));var n=!1,r="",a=Vc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(a=t.onRecoverableError)),t=Dc(e,1,!1,null,0,n,0,r,a),e[pa]=t.current,jr(8===e.nodeType?e.parentNode:e),new Gc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=We(t))?null:e.stateNode},t.flushSync=function(e){return cc(e)},t.hydrate=function(e,t,n){if(!Xc(t))throw Error(o(200));return Zc(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,a=!1,i="",s=Vc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(a=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=_c(t,null,e,1,null!=n?n:null,a,0,i,s),e[pa]=t.current,jr(e),r)for(e=0;e<r.length;e++)a=(a=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new qc(t)},t.render=function(e,t,n){if(!Xc(t))throw Error(o(200));return Zc(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!Xc(e))throw Error(o(40));return!!e._reactRootContainer&&(cc(function(){Zc(null,null,e,!1,function(){e._reactRootContainer=null,e[pa]=null})}),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Xc(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return Zc(e,t,n,!1,r)},t.version="18.3.1-next-f1338f8080-20240426"},950(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(730)},202(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),A=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),d=Symbol.iterator;var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,m={};function y(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||p}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=y.prototype;var v=b.prototype=new g;v.constructor=b,f(v,y.prototype),v.isPureReactComponent=!0;var w=Array.isArray,B=Object.prototype.hasOwnProperty,C={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function E(e,t,r){var a,o={},i=null,s=null;if(null!=t)for(a in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(i=""+t.key),t)B.call(t,a)&&!N.hasOwnProperty(a)&&(o[a]=t[a]);var l=arguments.length-2;if(1===l)o.children=r;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];o.children=c}if(e&&e.defaultProps)for(a in l=e.defaultProps)void 0===o[a]&&(o[a]=l[a]);return{$$typeof:n,type:e,key:i,ref:s,props:o,_owner:C.current}}function x(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function T(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(e){return t[e]})}(""+e.key):t.toString(36)}function F(e,t,a,o,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l=!1;if(null===e)l=!0;else switch(s){case"string":case"number":l=!0;break;case"object":switch(e.$$typeof){case n:case r:l=!0}}if(l)return i=i(l=e),e=""===o?"."+T(l,0):o,w(i)?(a="",null!=e&&(a=e.replace(S,"$&/")+"/"),F(i,t,a,"",function(e){return e})):null!=i&&(x(i)&&(i=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(i,a+(!i.key||l&&l.key===i.key?"":(""+i.key).replace(S,"$&/")+"/")+e)),t.push(i)),1;if(l=0,o=""===o?".":o+":",w(e))for(var c=0;c<e.length;c++){var u=o+T(s=e[c],c);l+=F(s,t,a,u,i)}else if(u=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=d&&e[d]||e["@@iterator"])?e:null}(e),"function"===typeof u)for(e=u.call(e),c=0;!(s=e.next()).done;)l+=F(s=s.value,t,a,u=o+T(s,c++),i);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return l}function k(e,t,n){if(null==e)return e;var r=[],a=0;return F(e,r,"","",function(e){return t.call(n,e,a++)}),r}function U(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L={current:null},O={transition:null},I={ReactCurrentDispatcher:L,ReactCurrentBatchConfig:O,ReactCurrentOwner:C};function Q(){throw Error("act(...) is not supported in production builds of React.")}t.Children={map:k,forEach:function(e,t,n){k(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return k(e,function(){t++}),t},toArray:function(e){return k(e,function(e){return e})||[]},only:function(e){if(!x(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=y,t.Fragment=a,t.Profiler=i,t.PureComponent=b,t.StrictMode=o,t.Suspense=u,t.__SECRET_INT
vendor: 6,354 bytes, line 2
2ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=I,t.act=Q,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var a=f({},e.props),o=e.key,i=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(i=t.ref,s=C.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)B.call(t,c)&&!N.hasOwnProperty(c)&&(a[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)a.children=r;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}return{$$typeof:n,type:e.type,key:o,ref:i,props:a,_owner:s}},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=E,t.createFactory=function(e){var t=E.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=x,t.lazy=function(e){return{$$typeof:h,_payload:{_status:-1,_result:e},_init:U}},t.memo=function(e,t){return{$$typeof:A,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=O.transition;O.transition={};try{e()}finally{O.transition=t}},t.unstable_act=Q,t.useCallback=function(e,t){return L.current.useCallback(e,t)},t.useContext=function(e){return L.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return L.current.useDeferredValue(e)},t.useEffect=function(e,t){return L.current.useEffect(e,t)},t.useId=function(){return L.current.useId()},t.useImperativeHandle=function(e,t,n){return L.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return L.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return L.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return L.current.useMemo(e,t)},t.useReducer=function(e,t,n){return L.current.useReducer(e,t,n)},t.useRef=function(e){return L.current.useRef(e)},t.useState=function(e){return L.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return L.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return L.current.useTransition()},t.version="18.3.1"},43(e,t,n){"use strict";e.exports=n(202)},234(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,a=e[r];if(!(0<o(a,t)))break e;e[r]=t,e[n]=a,n=r}}function r(e){return 0===e.length?null:e[0]}function a(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,a=e.length,i=a>>>1;r<i;){var s=2*(r+1)-1,l=e[s],c=s+1,u=e[c];if(0>o(l,n))c<a&&0>o(u,l)?(e[r]=u,e[c]=n,r=c):(e[r]=l,e[s]=n,r=s);else{if(!(c<a&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var i=performance;t.unstable_now=function(){return i.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var c=[],u=[],A=1,h=null,d=3,p=!1,f=!1,m=!1,y="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function v(e){for(var t=r(u);null!==t;){if(null===t.callback)a(u);else{if(!(t.startTime<=e))break;a(u),t.sortIndex=t.expirationTime,n(c,t)}t=r(u)}}function w(e){if(m=!1,v(e),!f)if(null!==r(c))f=!0,O(B);else{var t=r(u);null!==t&&I(w,t.startTime-e)}}function B(e,n){f=!1,m&&(m=!1,g(x),x=-1),p=!0;var o=d;try{for(v(n),h=r(c);null!==h&&(!(h.expirationTime>n)||e&&!F());){var i=h.callback;if("function"===typeof i){h.callback=null,d=h.priorityLevel;var s=i(h.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?h.callback=s:h===r(c)&&a(c),v(n)}else a(c);h=r(c)}if(null!==h)var l=!0;else{var A=r(u);null!==A&&I(w,A.startTime-n),l=!1}return l}finally{h=null,d=o,p=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var C,N=!1,E=null,x=-1,S=5,T=-1;function F(){return!(t.unstable_now()-T<S)}function k(){if(null!==E){var e=t.unstable_now();T=e;var n=!0;try{n=E(!0,e)}finally{n?C():(N=!1,E=null)}}else N=!1}if("function"===typeof b)C=function(){b(k)};else if("undefined"!==typeof MessageChannel){var U=new MessageChannel,L=U.port2;U.port1.onmessage=k,C=function(){L.postMessage(null)}}else C=function(){y(k,0)};function O(e){E=e,N||(N=!0,C())}function I(e,n){x=y(function(){e(t.unstable_now())},n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){f||p||(f=!0,O(B))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(d){case 1:case 2:case 3:var t=3;break;default:t=d}var n=d;d=t;try{return e()}finally{d=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=d;d=e;try{return t()}finally{d=n}},t.unstable_scheduleCallback=function(e,a,o){var i=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?i+o:i:o=i,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:A++,callback:a,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>i?(e.sortIndex=o,n(u,e),null===r(c)&&e===r(u)&&(m?(g(x),x=-1):m=!0,I(w,o-i))):(e.sortIndex=s,n(c,e),f||p||(f=!0,O(B))),e},t.unstable_shouldYield=F,t.unstable_wrapCallback=function(e){var t=d;return function(){var n=d;d=t;try{return e.apply(this,arguments)}finally{d=n}}}},853(e,t,n){"use strict";e.exports=n(234)}};const t={};function n(r){const a=t[r];if(void 0!==a)return a.exports;const o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.m=e,n.n=e=>
2{const t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.cw=e=>{var t;return()=>{if(e){var n=e;e=0,t={exports:{}},n.call(t.exports,t,t.exports)}return t.exports}},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,r)=>(n.f[r](e,t),t),[])),n.u=e=>"static/js/"+e+".a4c4f46b.chunk.js",n.miniCssF=e=>{},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{const e={},t="ti4:";n.l=(r,a,o,i)=>{if(e[r])return void e[r].push(a);let s,l;if(void 0!==o){const e=document.getElementsByTagName("script");for(var c=0;c<e.length;c++){const n=e[c];if(n.getAttribute("src")==r||n.getAttribute("data-webpack")==t+o){s=n;break}}}s||(l=!0,s=document.createElement("script"),s.charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack",t+o),s.src=r),e[r]=[a];const u=(t,n)=>{s.onerror=s.onload=null,clearTimeout(A);const a=e[r];if(delete e[r],s.parentNode?.removeChild(s),a?.forEach(e=>e(n)),t)return t(n)},A=setTimeout(u.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=u.bind(null,s.onerror),s.onload=u.bind(null,s.onload),l&&document.head.appendChild(s)}})(),n.dn=e=>{var t=Object.getOwnPropertyDescriptor(e,"name");(!t||!t.writable&&t.configurable)&&Object.defineProperty(e,"name",{value:"default",configurable:!0})},n.p="/ti4/",(()=>{const e={792:0};n.f.j=(t,r)=>{let a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)r.push(a[2]);else{const o=new Promise((n,r)=>a=e[t]=[n,r]);r.push(a[2]=o);const i=new Error,s=r=>{if(n.o(e,t)&&(a=e[t],0!==a&&(e[t]=void 0),a)){const e=r&&("load"===r.type?"missing":r.type),n=r&&r.target&&r.target.src;i.message="Loading chunk "+t+" failed.\n("+e+": "+n+")",i.name="ChunkLoadError",i.type=e,i.request=n,i.event=r,a[1](i)}};n.l(n.p+n.u(t),s,"chunk-"+t,t)}};const t=(t,r)=>{let[a,o,i]=r;var s,l,c=0;if(a.some(t=>0!==e[t])){for(s in o)n.o(o,s)&&(n.m[s]=o[s]);if(i)i(n)}for(t&&t(r);c<a.length;c++)l=a[c],n.o(e,l)&&e[l]&&e[l][0](),e[l]=0},r=globalThis.webpackChunkti4||=[];r.forEach(t.bind(null,0)),r.push=t.bind(null,r.push.bind(r))})(),(()=>{"use strict";var e=n.cw(function(e,n){var r=t();n.H=r.createRoot,r.hydrateRoot}),t=()=>n(950),r=n.cw(function(e,t){var n=a(),r=Symbol.for("react.element"),o=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var a,o={},c=null,u=null;for(a in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)i.call(t,a)&&!l.hasOwnProperty(a)&&(o[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===o[a]&&(o[a]=t[a]);return{$$typeof:r,type:e,key:c,ref:u,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c}),a=()=>n(43),o=n.cw(function(e,t){e.exports=r()}),i=n.cw(function(e,t){var n=function(){};e.exports=n});a(),t(),e();var s=n(613),l=n.n(s);o();class c extends a().Component{render(){return(0,r().jsxs)("div",{id:"bootstrapScripts",children:[(0,r().jsx)("script",{src:"https://code.jquery.com/jquery-3.3.1.min.js",integrity:"sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=",crossOrigin:"anonymous"}),(0,r().jsx)("script",{src:"https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js",integrity:"sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1",crossOrigin:"anonymous"}),(0,r().jsx)("script",{src:"https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js",integrity:"sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM",crossOrigin:"anonymous"})]})}}const u=c,A=JSON.parse('{"0":[1,2,3,4,5,6],"1":[7,8,2,0,6,18],"2":[8,9,10,3,0,1],"3":[2,10,11,12,4,0],"4":[0,3,12,13,14,5],"5":[6,0,4,14,15,16],"6":[18,1,0,5,16,17],"7":[19,20,8,1,18,36],"8":[20,21,9,2,1,7],"9":[21,22,23,10,2,8],"10":[9,23,24,11,3,2],"11":[10,24,25,26,12,3],"12":[3,11,26,27,13,4],"13":[4,12,27,28,29,14],"14":[5,4,13,29,30,15],"15":[16,5,14,30,31,32],"16":[17,6,5,15,32,33],"17":[35,18,6,16,33,34],"18":[36,7,1,6,17,35],"19":[37,38,20,7,36,60],"20":[38,39,21,8,7,19],"21":[39,40,22,9,8,20],"22":[40,41,42,23,9,21],"23":[22,42,43,24,10,9],"24":[23,43,44,25,11,10],"25":[24,44,45,46,26,11],"26":[11,25,46,47,27,12],"27":[12,26,47,48,28,13],"28":[13,27,48,49,50,29],"29":[14,13,28,50,51,30],"30":[15,14,29,51,52,31],"31":[32,15,30,52,53,54],"32":[33,16,15,31,54,55],"33":[34,17,16,32,55,56],"34":[58,35,17,33,56,5
27],"35":[59,36,18,17,34,58],"36":[60,19,7,18,35,59],"37":[38,19,60,61,90,62],"38":[39,20,19,37,62,63],"39":[40,21,20,38,63,64],"40":[41,22,21,39,64,65],"41":[42,22,40,65,67,66],"42":[41,43,23,22,68,67],"43":[42,44,24,23,69,68],"44":[43,45,25,24,70,69],"45":[44,46,25,72,71,70],"46":[25,45,47,26,73,72],"47":[26,46,48,27,74,73],"48":[27,47,49,28,75,74],"49":[28,48,50,77,76,75],"50":[29,28,49,51,78,77],"51":[30,29,50,52,79,78],"52":[31,30,51,53,80,79],"53":[54,31,52,82,81,80],"54":[55,32,31,53,83,82],"55":[56,33,32,54,84,83],"56":[57,34,33,55,85,84],"57":[58,34,56,87,86,85],"58":[59,35,34,57,88,87],"59":[60,36,35,58,89,88],"60":[37,19,36,59,90,89],"61":[90,37,62],"62":[61,37,38,63],"63":[62,38,39,64],"64":[63,39,40,65],"65":[64,40,41,66],"66":[65,41,67],"67":[66,41,42,68],"68":[67,42,43,69],"69":[68,43,44,70],"70":[69,44,45,71],"71":[70,45,72],"72":[45,46,73,71],"73":[46,47,74,72],"74":[47,48,75,73],"75":[48,49,76,74],"76":[49,77,75],"77":[50,78,76,49],"78":[51,79,77,50],"79":[52,80,78,51],"80":[53,81,79,52],"81":[82,80,53],"82":[83,81,53,54],"83":[84,82,54,55],"84":[85,83,55,56],"85":[86,84,56,57],"86":[85,57,87],"87":[86,57,58,88],"88":[87,58,59,89],"89":[88,59,60,90],"90":[89,60,37,61]}'),h={HAZARDOUS:"hazardous",INDUSTRIAL:"industrial",CULTURAL:"cultural",NONE:null},d="biotic",p="warfare",f="propulsion",m="cybernetic",y="space-station",g="legendary",b="nebula",v="gravity-rift",w="asteroid-field",B="supernova",C="entropic-scar",N={ALPHA:"alpha",BETA:"beta",GAMMA:"gamma",DELTA:"delta",EPSILON:"epsilon",ZETA:"zeta",ETA:"eta",THETA:"theta",IOTA:"iota",KAPPA:"kappa"},E="Prophecy of Kings",x="Thunder's Edge",S="Discordant Stars",T="Uncharted Space",F="Ascendant Sun",k="Async Hyperlanes",U=Object.fromEntries([[N.ALPHA,"\u03b1"],[N.BETA,"\u03b2"],[N.GAMMA,"\u03b3"],[N.DELTA,"\u03b4"],[N.EPSILON,"\u03b5"],[N.ZETA,"\u03b6"],[N.ETA,"\u03b7"],[N.THETA,"\u03b8"],[N.IOTA,"\u03b9"],[N.KAPPA,"\u03ba"]]),L={hyperlanes:["83A","83B","84A","84B","85A","85B","86A","86B","87A","87B","88A","88B","89A","89B","90A","90B","91A","91B","hypspaghet","hyp4squeeze","hypbball","hypcrossed","hypflair","hypfrost","hypfrostcross","hyphorizon","hypmergeleft","hypmergeright","hypno","hypoops","hypriftabout1","hypriftabout2","hypriftabout3","hypriftabout6","hyproundabout1","hyproundabout2","hyproundabout3","hyproundabout6"],all:{1:{type:"green",faction:"The Federation of Sol",wormhole:[],anomaly:[],planets:[{name:"Jord",resources:4,influence:2,trait:null,specialty:[]}]},2:{type:"green",faction:"The Mentak Coalition",wormhole:[],anomaly:[],planets:[{name:"Moll Primus",resources:4,influence:1,trait:null,specialty:[]}]},3:{type:"green",faction:"The Yin Brotherhood",wormhole:[],anomaly:[],planets:[{name:"Darien",resources:4,influence:4,trait:null,specialty:[]}]},4:{type:"green",faction:"The Embers of Muaat",wormhole:[],anomaly:[],planets:[{name:"Muaat",resources:4,influence:1,trait:null,specialty:[]}]},5:{type:"green",faction:"The Arborec",wormhole:[],anomaly:[],planets:[{name:"Nestphar",resources:3,influence:2,trait:null,specialty:[]}]},6:{type:"green",faction:"The Lizix Mindnet",wormhole:[],anomaly:[],planets:[{name:"[0.0.0]",resources:5,influence:0,trait:null,specialty:[]}]},7:{type:"green",faction:"The Winnu",wormhole:[],anomaly:[],planets:[{name:"Winnu",resources:3,influence:4,trait:null,specialty:[]}]},8:{type:"green",faction:"The Nekro Virus",wormhole:[],anomaly:[],planets:[{name:"Mordai II",resources:4,influence:0,trait:null,specialty:[]}]},9:{type:"green",faction:"The Naalu Collective",wormhole:[],anomaly:[],planets:[{name:"Maaluuk",resources:2,influence:0,trait:null,specialty:[]},{name:"Druaa",resources:3,influence:1,trait:null,specialty:[]}]},10:{type:"green",faction:"The Barony of Letnev",wormhole:[],anomaly:[],planets:[{name:"Arc Prime",resources:4,influence:0,trait:null,specialty:[]},{name:"Wren Terra",resources:2,influence:1,trait:null,specialty:[]}]},11:{type:"green",faction:"The Clan of Saar",wormhole:[],anomaly:[],planets:[{name:"Lisis II",resources:1,influence:0,trait:null,specialty:[]},{name:"Ragh",resources:2,influence:1,trait:null,specialty:[]}]},12:{type:"green",faction:"The Universities of Jol-Nar",wormhole:[],anomaly:[],planets:[{name:"Nar",resources:2,influence:3,trait:null,specialty:[]},{name:"Jol",resources:1,influence:2,trait:null,specialty:[]}]},13:{type:"green",faction:"Sardakk N'orr",wormhole:[],anomaly:[],planets:[{name:"Tren'lak",resources:1,influence:0,trait:null,specialty:[]},{name:"Quinarra",resources:3,influence:1,trait:null,specialty:[]}]},14:{type:"green",faction:"The Xxcha Kingdom",wormhole:[],anomaly:[],planets:[{name:"Archon Re
2n",resources:2,influence:3,trait:null,specialty:[]},{name:"Archon Tau",resources:1,influence:1,trait:null,specialty:[]}]},15:{type:"green",faction:"The Yssaril Tribes",wormhole:[],anomaly:[],planets:[{name:"Retillion",resources:2,influence:3,trait:null,specialty:[]},{name:"Shalloq",resources:1,influence:2,trait:null,specialty:[]}]},16:{type:"green",faction:"The Emirates of Hacan",wormhole:[],anomaly:[],planets:[{name:"Arretze",resources:2,influence:0,trait:null,specialty:[]},{name:"Hercant",resources:1,influence:1,trait:null,specialty:[]},{name:"Kamdorn",resources:0,influence:1,trait:null,specialty:[]}]},17:{type:"green",faction:"The Ghosts of Creuss",wormhole:["delta"],anomaly:[],planets:[]},18:{type:"blue",wormhole:[],anomaly:[],special:!0,planets:[{name:"Mecatol Rex",resources:1,influence:6,trait:null,specialty:[]}]},19:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Wellon",resources:1,influence:2,trait:"industrial",specialty:["cybernetic"]}]},20:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Vefut II",resources:2,influence:2,trait:"hazardous",specialty:[]}]},21:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Thibah",resources:1,influence:1,trait:"industrial",specialty:["propulsion"]}]},22:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Tar'mann",resources:1,influence:1,trait:"industrial",specialty:["biotic"]}]},23:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Saudor",resources:2,influence:2,trait:"industrial",specialty:[]}]},24:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Mehar Xull",resources:1,influence:3,trait:"hazardous",specialty:["warfare"]}]},25:{type:"blue",wormhole:["beta"],anomaly:[],planets:[{name:"Quann",resources:2,influence:1,trait:"cultural",specialty:[]}]},26:{type:"blue",wormhole:["alpha"],anomaly:[],planets:[{name:"Lodor",resources:3,influence:1,trait:"cultural",specialty:[]}]},27:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"New Albion",resources:1,influence:1,trait:"industrial",specialty:["biotic"]},{name:"Starpoint",resources:3,influence:1,trait:"hazardous",specialty:[]}]},28:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Tequ'ran",resources:2,influence:0,trait:"hazardous",specialty:[]},{name:"Torkan",resources:0,influence:3,trait:"cultural",specialty:[]}]},29:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Qucen'n",resources:1,influence:2,trait:"industrial",specialty:[]},{name:"Rarron",resources:0,influence:3,trait:"cultural",specialty:[]}]},30:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Mellon",resources:0,influence:2,trait:"cultural",specialty:[]},{name:"Zohbat",resources:3,influence:1,trait:"hazardous",specialty:[]}]},31:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Lazar",resources:1,influence:0,trait:"industrial",specialty:["cybernetic"]},{name:"Sakulag",resources:2,influence:1,trait:"hazardous",specialty:[]}]},32:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Dal Bootha",resources:0,influence:2,trait:"cultural",specialty:[]},{name:"Xxehan",resources:1,influence:1,trait:"cultural",specialty:[]}]},33:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Corneeq",resources:1,influence:2,trait:"cultural",specialty:[]},{name:"Resulon",resources:2,influence:0,trait:"cultural",specialty:[]}]},34:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Centauri",resources:1,influence:3,trait:"cultural",specialty:[]},{name:"Gral",resources:1,influence:1,trait:"industrial",specialty:["propulsion"]}]},35:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Bereg",resources:3,influence:1,trait:"hazardous",specialty:[]},{name:"Lirta IV",resources:2,influence:3,trait:"hazardous",specialty:[]}]},36:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Arnor",resources:2,influence:1,trait:"industrial",specialty:[]},{name:"Lor",resources:1,influence:2,trait:"industrial",specialty:[]}]},37:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Arinam",resources:1,influence:2,trait:"industrial",specialty:[]},{name:"Meer",resources:0,influence:4,trait:"hazardous",specialty:["warfare"]}]},38:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Abyz",resources:3,influence:0,trait:"hazardous",specialty:[]},{name:"Fria",resources:2,influence:0,trait:"hazardous",specialty:[]}]},39:{type:"red",wormhole:["alpha"],anomaly:[],planets:[]},40:{type:"red",wormhole:["beta"],anomaly:[],planets:[]},41:{type:"red",wormhole:[],anomaly:["gravity-rift"],planets:[]},42:{type:"red",wormhole:[],anomaly:["nebula"],planets:[]},43:{type:"red",wormhole:[],anomaly:["supernova"],planets:[]},44:{type:"red",wormhole:[],anomaly:["asteroid-field"],planets:[]},45:{type:"red",wormhole:[],anomaly:["asteroid-field"],planets:[]},46:{type:"red",wormhole:[],anomaly:[],planets:[]},47:{type:"red",wormhole:[],anomaly:[],planets:[]},48:{type:"red",wormhole:[],anomaly:[],planets:[]},49:{type:"red",wormhole:[],anomaly:[],planets:[]},50:{type:"red",wormhole:[],anomaly:[],planets:[]},51:{type:"green",wormhole:"delta",planets:[{name:"Creuss",resources:4,influence:2,specialty:[]}]},52:{type:"green",faction:"The Mahact Gene-sorcerers",wormhole:[],anomaly:[],planets:[{name:"Ixth",resources:3,influence:5,trait:null,specialty:[]}]},53:{type:"green",faction:"The Nomad",wormhole:[],anomaly:[],planets:[{name:"Arcturus",resources:4,influence:4,trait:null,specialty:[]}]},54:{type:"green",faction:"The Vuil'raith Cabal",wormhole:[],anomaly:[],planets:[{name:"Acheron",resources:4,influence:0,trait:null,specialty:[]}]},55:{type:"green",faction:"The Titans of Ul",wormhole:[],anomaly:[],planets:[{name:"Elysium",resources:4,influence:1,trait:null,specialty:[]}]},56:{type:"green",faction:"The Empyrean",wormhole:[],anomaly:[b],planets:[{name:"The Dark",resources:3,influence:4,trait:null,specialty:[]}]},57:{type:"green",faction:"The Naaz-Rokha Alliance",wormhole:[],anomaly:[],planets:[{name:"Naazir",resources:2,influence:1,trait:null,specialty:[]},{name:"Rokha",resources:1,influence:2,trait:null,specialty:[]}]},58:{type:"green",faction:"The Argent Flight",wormhole:[],anomaly:[],planets:[{name:"Valk",resources:2,influence:0,trait:null,specialty:[]},{name:"Avar",resources:1,influence:1,trait:null,specialty:[]},{name:"Ylir",resources:0,influence:2,trait:null,specialty:[]}]},59:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Archon Vail",resources:1,influence:3,trait:"hazardous",specialty:["propulsion"]}]},60:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Perimeter",resources:2,influence:1,trait:"industrial",specialty:[]}]},61:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Ang",resources:2,influence:0,trait:"industrial",specialty:["warfare"]}]},62:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Sem-Lore",resources:3,influence:2,trait:"cultural",specialty:["cybernetic"]}]},63:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Vorhal",resources:0,influence:2,trait:"cultural",specialty:["biotic"]}]},64:{type:"blue",wormhole:["beta"],anomaly:[],planets:[{name:"Atlas",resources:3,influence:1,trait:"hazardous",specialty:[]}]},65:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Primor",resources:2,influence:1,trait:"cultural",specialty:[g],ability:"The Atrament - You may exhaust this card at the end of your turn to place up to 2 infantry from your reinfor
2cements on any planet you control."}]},66:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Hope's End",resources:3,influence:0,trait:"hazardous",specialty:[g],ability:"Imperial Arms Vault - You may exhaust this card at the end of your turn to place 1 mech from your reinforcements on any planet you control, or draw 1 action card."}]},67:{type:"red",wormhole:[],anomaly:["gravity-rift"],planets:[{name:"Cormund",resources:2,influence:0,trait:"hazardous",specialty:[]}]},68:{type:"red",wormhole:[],anomaly:["nebula"],planets:[{name:"Everra",resources:3,influence:1,trait:"cultural",specialty:[]}]},69:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Accoen",resources:2,influence:3,trait:"industrial",specialty:[]},{name:"Jeol Ir",resources:2,influence:3,trait:"industrial",specialty:[]}]},70:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Kraag",resources:2,influence:1,trait:"hazardous",specialty:[]},{name:"Siig",resources:0,influence:2,trait:"hazardous",specialty:[]}]},71:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Ba'Kal",resources:3,influence:2,trait:"industrial",specialty:[]},{name:"Alio Prima",resources:1,influence:1,trait:"cultural",specialty:[]}]},72:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Lisis",resources:2,influence:2,trait:"industrial",specialty:[]},{name:"Velnor",resources:2,influence:1,trait:"industrial",specialty:["warfare"]}]},73:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Lisis",resources:0,influence:2,trait:"cultural",specialty:["cybernetic"]},{name:"Xanhact",resources:0,influence:1,trait:"hazardous",specialty:[]}]},74:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Vega Major",resources:2,influence:1,trait:"cultural",specialty:[]},{name:"Vega Minor",resources:1,influence:2,trait:"cultural",specialty:["propulsion"]}]},75:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Loki",resources:1,influence:2,trait:"cultural",specialty:[]},{name:"Abaddon",resources:1,influence:0,trait:"cultural",specialty:[]},{name:"Ashtroth",resources:2,influence:0,trait:"hazardous",specialty:[]}]},76:{type:"blue",wormhole:[],anomaly:[],planets:[{name:"Rigel I",resources:0,influence:1,trait:"hazardous",specialty:[]},{name:"Rigel II",resources:1,influence:2,trait:"industrial",specialty:[]},{name:"Rigel III",resources:1,influence:1,trait:"industrial",specialty:["biotic"]}]},77:{type:"red",wormhole:[],anomaly:[],planets:[]},78:{type:"red",wormhole:[],anomaly:[],planets:[]},79:{type:"red",wormhole:["alpha"],anomaly:["asteroid-field"],planets:[]},80:{type:"red",wormhole:[],anomaly:["supernova"],planets:[]},81:{type:"red",special:!0,wormhole:[],anomaly:["muaat-supernova"],planets:[]},82:{type:"blue",special:!0,wormhole:[N.ALPHA,N.BETA,N.GAMMA],planets:[{name:"Mallice",resources:0,influence:3,trait:"cultural",specialty:[g],ability:"Exterrix Headquarters - You may exhaust this card at the end of your turn to gain 2 trade goods or convert all of your commodities into trade goods."}]},"83A":{type:"hyperlane",hyperlanes:[[1,4]],wormhole:[],anomaly:[],planets:[]},"83B":{type:"hyperlane",hyperlanes:[[0,3],[0,2],[3,5]],wormhole:[],anomaly:[],planets:[]},"84A":{type:"hyperlane",hyperlanes:[[2,5]],wormhole:[],anomaly:[],planets:[]},"84B":{type:"hyperlane",hyperlanes:[[0,3],[0,4],[1,3]],wormhole:[],anomaly:[],planets:[]},"85A":{type:"hyperlane",hyperlanes:[[1,5]],wormhole:[],anomaly:[],planets:[]},"85B":{type:"hyperlane",hyperlanes:[[0,3],[0,2],[3,5]],wormhole:[],anomaly:[],planets:[]},"86A":{type:"hyperlane",hyperlanes:[[1,5]],wormhole:[],anomaly:[],planets:[]},"86B":{type:"hyperlane",hyperlanes:[[0,3],[0,4],[1,3]],wormhole:[],anomaly:[],planets:[]},"87A":{type:"hyperlane",hyperlanes:[[0,2],[2,4],[2,5]],wormhole:[],anomaly:[],planets:[]},"87B":{type:"hyperlane",hyperlanes:[[0,2],[0,3]],wormhole:[],anomaly:[],planets:[]},"88A":{type:"hyperlane",hyperlanes:[[0,4],[1,4],[2,4]],wormhole:[],anomaly:[],planets:[]},"88B":{type:"hyperlane",hyperlanes:[[0,3],[0,2],[3,5]],wormhole:[],anomaly:[],planets:[]},"89A":{type:"hyperlane",hyperlanes:[[0,2],[0,4],[2,4]],wormhole:[],anomaly:[],planets:[]},"89B":{type:"hyperlane",hyperlanes:[[0,3],[0,4]],wormhole:[],anomaly:[],planets:[]},"90A":{type:"hyperlane",hyperlanes:[[1,5],[2,4]],wormhole:[],anomaly:[],planets:[]},"90B":{type:"hyperlane",hyperlanes:[[0,3],[0,4]],wormhole:[],anomaly:[],planets:[]},"91A":{type:"hyperlane",hyperlanes:[[0,3],[0,4],[1,3]],wormhole:[],anomaly:[],planets:[]},"91B":{type:"hyperlane",hyperlanes:[[0,2],[0,3]],wormhole:[],anomaly:[],planets:[]},3201:{type:"green",planets:[{name:"Rhune",trait:h.NONE,specialty:[],resources:3,influence:4}],anomaly:[],wormhole:[]},3202:{type:"green",planets:[{name:"Idyn",trait:h.NONE,specialty:[],resources:1,influence:0},{name:"Kroll",trait:h.NONE,specialty:[],resources:1,influence:1},{name:"Cyrra",trait:h.NONE,specialty:[],resources:0,influence:1}],anomaly:[],wormhole:[]},3203:{type:"green",planets:[{name:"Kyr",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Pax",trait:h.NONE,specialty:[],resources:1,influence:2},{name:"Vess",trait:h.NONE,specialty:[],resources:0,influence:1}],anomaly:[],wormhole:[]},3204:{type:"green",planets:[{name:"Ogdun",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Brthkul",trait:h.NONE,specialty:[],resources:1,influence:3}],anomaly:[],wormhole:[]},3205:{type:"green",planets:[{name:"Drah",trait:h.NONE,specialty:[],resources:1,influence:2},{name:"Trykk",trait:h.NONE,specialty:[],resources:2,influence:1}],anomaly:[],wormhole:[]}
2,3206:{type:"green",planets:[{name:"Vadarian",trait:h.NONE,specialty:[],resources:3,influence:0},{name:"Norvus",trait:h.NONE,specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},3207:{type:"green",planets:[{name:"Biaheo",trait:h.NONE,specialty:[],resources:3,influence:0},{name:"Empero",trait:h.NONE,specialty:[],resources:0,influence:3}],anomaly:[b],wormhole:[]},3208:{type:"green",planets:[{name:"Demis",trait:h.NONE,specialty:[],resources:2,influence:2},{name:"Chrion",trait:h.NONE,specialty:[],resources:2,influence:3}],anomaly:[],wormhole:[]},3209:{type:"green",planets:[{name:"Axis",trait:h.NONE,specialty:[],resources:5,influence:0}],anomaly:[],wormhole:[]},3210:{type:"green",planets:[{name:"Sanctuary",trait:h.NONE,specialty:[],resources:3,influence:4}],anomaly:[],wormhole:[]},3211:{type:"green",planets:[{name:"Shi-Halaum",trait:h.NONE,specialty:[],resources:4,influence:0}],anomaly:[],wormhole:[]},3212:{type:"green",planets:[{name:"Discordia",trait:h.NONE,specialty:[],resources:4,influence:1}],anomaly:[],wormhole:[]},3213:{type:"green",planets:[{name:"Cymiae",trait:h.NONE,specialty:[],resources:3,influence:1}],anomaly:[],wormhole:[]},3214:{type:"green",planets:[{name:"Prind",trait:h.NONE,specialty:[],resources:3,influence:3}],anomaly:[],wormhole:[]},3215:{type:"green",planets:[{name:"Gen",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Zelian",trait:h.NONE,specialty:[],resources:3,influence:3}],anomaly:[w],wormhole:[]},3216:{type:"green",planets:[{name:"Vaylar",trait:h.NONE,specialty:[],resources:3,influence:2}],anomaly:[],wormhole:[]},3217:{type:"green",planets:[{name:"Delmor",trait:h.NONE,specialty:[],resources:2,influence:1},{name:"Kyd",trait:h.NONE,specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},3218:{type:"green",planets:[{name:"Abyssus",trait:h.NONE,specialty:[],resources:4,influence:2}],anomaly:[],wormhole:[]},3219:{type:"green",planets:[{name:"Louk",trait:h.NONE,specialty:[],resources:2,influence:1},{name:"Auldane",trait:h.NONE,specialty:[],resources:1,influence:3}],anomaly:[],wormhole:[]},3220:{type:"green",planets:[{name:"Ellas",trait:h.NONE,specialty:[],resources:3,influence:3}],anomaly:[v],wormhole:[]},3221:{type:"green",planets:[{name:"Aldra",trait:h.NONE,specialty:[],resources:2,influence:3},{name:"Beata",trait:h.NONE,specialty:[],resources:2,influence:1}],anomaly:[],wormhole:[]},3222:{type:"green",planets:[{name:"Bohl-Dhur",trait:h.NONE,specialty:[],resources:3,influence:4}],anomaly:[],wormhole:[]},3223:{type:"green",planets:[{name:"Susuros",trait:h.NONE,specialty:[],resources:4,influence:4}],anomaly:[],wormhole:[]},3224:{type:"green",planets:[{name:"Poh",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Orad",trait:h.NONE,specialty:[],resources:3,influence:1}],anomaly:[],wormhole:[]},3226:{type:"green",planets:[{name:"Kjalengard",trait:h.NONE,specialty:[],resources:3,influence:2},{name:"Hulgade",trait:h.NONE,specialty:[],resources:1,influence:0}],anomaly:[],wormhole:[]},3227:{type:"green",planets:[{name:"Benc",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Hau",trait:h.NONE,specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},3228:{type:"green",planets:[{name:"Zarr",trait:h.NONE,specialty:[],resources:2,influence:1},{name:"Nokk",trait:h.NONE,specialty:[],resources:1,influence:1}],anomaly:[],wormhole:[]},3229:{type:"green",planets:[{name:"Last Stop",trait:h.NONE,specialty:[],resources:3,influence:0}],anomaly:[],wormhole:[]},3230:{type:"green",planets:[{name:"Aysis' Rest",trait:h.NONE,specialty:[],resources:4,influence:3},{name:"Solitude",trait:h.NONE,specialty:[],resources:0,influence:1}],anomaly:[],wormhole:[]},3231:{type:"green",planets:[{name:"Avicenna",trait:h.NONE,specialty:[],resources:4,influence:0}],anomaly:[],wormhole:[]},3232:{type:"green",planets:[],anomaly:[],wormhole:[]},3233:{type:"green",planets:[{name:"Alesna",trait:h.NONE,specialty:[],resources:2,influence:0},{name:"Azle",trait:h.NONE,specialty:[],resources:2,influence:0}],anomaly:[],wormhole:[]},3234:{type:"green",planets:[{name:"Arche",trait:h.NONE,specialty:[],resources:2,influence:2},{name:"Gghurn Theta",trait:h.NONE,specialty:[],resources:2,influence:1}],anomaly:[],wormhole:[]},3235:{type:"green",planets:[{name:"Edyn",trait:h.NONE,specialty:[],resources:3,influence:3},{name:"Ekko",trait:h.NONE,specialty:[],resources:0,influence:1},{name:"Okke",trait:h.NONE,specialty:[],resources:0,influence:1}],anomaly:[],wormhole:[]},4253:{type:"blue",planets:[{name:"Silence",trait:h.INDUSTRIAL,specialty:[g],ability:"Imperial Salvage Yard - You may exhaust this card at the end of your turn to place 1 cruiser from your reinfor
2cements in any system that contains 1 or more of your ships.",resources:2,influence:2}],anomaly:[],wormhole:[]},4254:{type:"blue",planets:[{name:"Echo",trait:h.HAZARDOUS,specialty:[g],ability:"Bi-Phasic Generators - You may exhaust this card at the end of your turn to place 1 frontier token in a system that does not contain a planet.",resources:1,influence:2}],anomaly:[],wormhole:[]},4255:{type:"blue",planets:[{name:"Tarock",trait:h.INDUSTRIAL,specialty:[g],ability:"Council Black Site - You may exhaust this card when an agenda is revealed to predict aloud an outcome of that agenda. If your prediction is correct, draw 1 secret objective.",resources:3,influence:0}],anomaly:[],wormhole:[]},4256:{type:"blue",planets:[{name:"Prism",trait:h.INDUSTRIAL,specialty:[g],ability:"Mystic Library - ACTION: Exhaust this card to replace 1 of your non-faction non-unit upgrade technologies with another technology from your technology deck with the same number of prerequisites.",resources:0,influence:3}],anomaly:[],wormhole:[]},4257:{type:"blue",planets:[{name:"Troac",trait:h.CULTURAL,specialty:[],resources:0,influence:4}],anomaly:[],wormhole:[]},4258:{type:"blue",planets:[{name:"Etir V",trait:h.HAZARDOUS,specialty:[],resources:4,influence:0}],anomaly:[],wormhole:[]},4259:{type:"blue",planets:[{name:"Vioss",trait:h.CULTURAL,specialty:[],resources:3,influence:3}],anomaly:[],wormhole:[]},4260:{type:"blue",planets:[{name:"Fakrenn",trait:h.HAZARDOUS,specialty:[],resources:2,influence:2}],anomaly:[],wormhole:[N.ALPHA]},4261:{type:"blue",planets:[{name:"San-Vit",trait:h.CULTURAL,specialty:[],resources:3,influence:1},{name:"Lodran",trait:h.HAZARDOUS,specialty:[m],resources:0,influence:2}],anomaly:[],wormhole:[]},4262:{type:"blue",planets:[{name:"Dorvok",trait:h.INDUSTRIAL,specialty:[p],resources:1,influence:2},{name:"Derbrae",trait:h.CULTURAL,specialty:[],resources:2,influence:3}],anomaly:[],wormhole:[]},4263:{type:"blue",planets:[{name:"Moln",trait:h.INDUSTRIAL,specialty:[f],resources:1,influence:2},{name:"Rysaa",trait:h.HAZARDOUS,specialty:[d],resources:2,influence:0}],anomaly:[],wormhole:[]},4264:{type:"blue",planets:[{name:"Salin",trait:h.HAZARDOUS,specialty:[],resources:1,influence:2},{name:"Gwiyun",trait:h.HAZARDOUS,specialty:[],resources:2,influence:2}],anomaly:[],wormhole:[]},4265:{type:"blue",planets:[{name:"Inan",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:2},{name:"Swog",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:0}],anomaly:[],wormhole:[]},4266:{type:"blue",planets:[{name:"Detic",trait:h.CULTURAL,specialty:[],resources:3,influence:2},{name:"Lliot",trait:h.CULTURAL,specialty:[],resources:0,influence:1}],anomaly:[],wormhole:[]},4267:{type:"blue",planets:[{name:"Qaak",trait:h.CULTURAL,specialty:[],resources:1,influence:1},{name:"Larred",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:1},{name:"Nairb",trait:h.HAZARDOUS,specialty:[],resources:1,influence:1}],anomaly:[],wormhole:[]},4268:{type:"blue",planets:[{name:"Sierpen",trait:h.CULTURAL,specialty:[],resources:2,influence:0},{name:"Mandle",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:1},{name:"Regnem",trait:h.HAZARDOUS,specialty:[],resources:0,influence:2}],anomaly:[],wormhole:[]},4269:{type:"red",planets:[{name:"Domna",trait:h.HAZARDOUS,specialty:[g],ability:"Fractal Gate - You may exhaust this card at the end of your turn to remove 1 of your ships from the game board and place that unit in an adjacent system that does not contain another player\u2019s ships.",resources:2,influence:1}],anomaly:[b],wormhole:[]},4270:{type:"red",planets:[],anomaly:[],wormhole:[]},4271:{type:"red",planets:[],anomaly:[],wormhole:[]},4272:{type:"red",planets:[],anomaly:[b],wormhole:[N.BETA]},4273:{type:"red",planets:[],anomaly:[w,b],wormhole:[]},4274:{type:"red",planets:[],anomaly:[v,w],wormhole:[]},4275:{type:"red",planets:[],anomaly:[v],wormhole:[N.GAMMA]},4276:{type:"red",planets:[],anomaly:[B],wormhole:[N.ALPHA,N.BETA]},er01:{type:"blue",planets:[{name:"Rial Archon",trait:"hazardous",specialty:["propulsion"],resources:1,influence:1}],anomaly:[],wormhole:[]},er02:{type:"blue",planets:[{name:"Eshonia",trait:"hazardous",specialty:[],resources:2,influence:1}],anomaly:["nebula"],wormhole:[]},er03:{type:"red",planets:[{name:"Hell's Maw",trait:"hazardous",specialty:[],resources:3,influence:0},{name:"Death's Gate",trait:"hazardous",specialty:[],resources:0,influence:1}],anomaly:["gravity-rift"],wormhole:["epsilon"]},er04:{type:"blue",planets:[{name:"Su'Prima",trait:"cultural",specialty:[],resources:0,influence:2}],anomaly:[],wormhole:[]},er05:{type:"blue",planets:[{name:"Kkita Ul'in",trait:h.CULTURAL,specialty:[],resources:0,influence:2}],anomaly:[],wormhole:[]},er06:{type:"blue",planets:[{name:"Solin Tu",trait:"industrial",specialty:[],resources:2,influence:1},{name:"Solin Uo",trait:"cultural",specialty:[],resources:1,influence:3}],anomaly:[],wormhole:[]},er07:{type:"blue",planets:[{name:"Khjan",trait:"hazardous",specialty:[],resources:2,influence:1},{name:"Shul",trait:"cultural",specialty:["propulsion"],resources:1,influence:1}],anomaly:[],wormhole:[]},er08:{type:"blue",planets:[{name:"Rayon V",trait:"hazardous",specialty:[],resources:2,influence:2}],anomaly:[],wormhole:["epsilon"]},er09:{type:"red",planets:[{name:"Ulon Gamma",trait:"hazardous",specialty:[],resources:0,influence:1},{name:"Ulon Rho",trait:"industrial",specialty:[],resources:1,influence:1}],anomaly:["asteroid-field"],wormhole:[]},er10:{type:"red",planets:[{name:"Elok Phi",trait:"hazardous",specialty:[],resources:0,influence:1},{name:"Elok Nu",trait:"hazardous",specialty:[],resources:1,influence:1}],anomaly:["nebula"],wormhole:[]},er11:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["beta"]},er12:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["iota"]},er13:{type:"red",planets:[],anomaly:[],wormhole:["iota"]},er14:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["iota"]},er15:{type:"red",planets:[],anomaly:["nebula"],wormhole:["iota"]},er16:{type:"red",planets:[],anomaly:["supernova"],wormhole:[]},er17:{type:"red",planets:[],anomaly:["gravity-rift","asteroid-field"],wormhole:[]},er18:{type:"red",planets:[],anomaly:["nebula","asteroid-field"],wormhole:[]},er19:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["alpha","beta"]},er20:{type:"blue",planets:[{name:"Erodius",trait:"hazardous",specialty:[],resources:2,influence:1}],anomaly:[],wormhole:["epsilon"]},er21:{type:"red",planets:[],anomaly:["asteroid-field","nebula","supernova","gravity-rift"],wormhole:[]},er22:{type:"blue",planets:[{name:"Il Voshu",trait:"cultural",specialty:["biotic"],resources:2,influence:1}],anomaly:[],wormhole:[]},er23:{type:"red",planets:[{name:"Xyon",trait:"hazardous",specialty:[],resources:2,influence:1}],anomaly:[v],wormhole:[]},er24:{type:"red",planets:[{name:"Ynnis",trait:"hazardous",specialty:[],resources:2,influence:3}],anomaly:[v],wormhole:[]},er25:{type:"red",planets:[],anomaly:[],wormhole:["epsilon"]},er26:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["epsilon"]},er27:{type:"red",planets:[],anomaly:["nebula"],wormhole:["epsilon"]},er28:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["epsilon"]},er29:{type:"red",planets:[],anomaly:[],wormhole:["zeta"]},er30:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["zeta"]},er31:{type:"red",planets:[],anomaly:["nebula"],wormhole:["zeta"]},er32:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["zeta"]},er33:{type:"red",planets:[],anomaly:[],wormhole:["epsilon","zeta"]},er34:{type:"red",planets:[],anomaly:[],wormhole:["eta"]},er35:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["eta"]},er36:{type:"red",planets:[],anomaly:["nebula"],wormhole:["eta"]},er37:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["eta"]},er38:{type:"red",planets:[],anomaly:[],wormhole:["theta"]},er39:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["theta"]},er40:{type:"red",planets:[],anomaly:["nebula"],wormhole:["theta"]},er41:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["theta"]},er42:{type:"red",planets:[],anomaly:[],wormhole:["eta","theta"]},er43:{type:"red",planets:[],anomaly:[],wormhole:["kappa"]},er44:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:["kappa"]},er45:{type:"red",planets:[],anomaly:["nebula"],wormhole:["kappa"]},er46:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:["kappa"]},er47:{type:"red",planets:[],anomaly:[],wormhole:["iota","kappa"]},er48:{type:"blue",planets:[{name:"Zhgen",trait:"industrial",specialty:[],resources:0,influence:2},{name:"Sehnn",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er49:{type:"blue",planets:[{name:"Myrwater",trait:"hazardous",specialty:["biotic"],resources:1,influence:3}],anomaly:[],wormhole:[]},er50:{type:"blue",planets:[{name:"Adrian",trait:"hazardous",specialty:[],resources:1,influence:0},{name:"Telahas",trait:"industrial",specialty:[],resources:2,influence:0}],anomaly:[],wormhole:[]},er51:{type:"blue",planets:[{name:"Grywon",trait:"hazardous",specialty:[],resources:2,influence:2}],anomaly:[],wormhole:["theta"]},er52:{type:"blue",planets:[{name:"Ikrus III",trait:"industrial",specialty:[],resources:2,influence:2},{name:"Tir",trait:"hazardous",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er53:{type:"blue",planets:[{name:"Meko II",trait:"cultural",specialty:["propulsion"],resources:0,influence:2}],anomaly:[],wormhole:[]},er54:{type:"blue",planets:[{name:"Tethn'Sekus",trait:"cultural",specialty:[],resources:1,influence:1},{name:"Tethn'Tirs",trait:h.HAZARDOUS,specialty:[],resources:2,influence:2}],anomaly:[],wormhole:[]},er55:{type:"blue",planets:[{name:"Dwuuit",trait:h.CULTURAL,specialty:[],resources:1,influence:1},{name:"Uhott",trait:h.INDUSTRIAL,specialty:[],resources:0,influence:3}],anomaly:[],wormhole:[]},er56:{type:"blue",planets:[{name:"Breakpoint",trait:"hazardous",specialty:[],resources:3,influence:3}],anomaly:[],wormhole:["theta"]},er57:{type:"blue",planets:[{name:"Akhassi",trait:"hazardous",specialty:["warfare"],resources:0,influence:2}],anomaly:[],wormhole:[]},er58:{type:"blue",planets:[{name:"Rhyah",trait:"cultural",specialty:[],resources:2,influence:0},{name:"Taal'Dorn",trait:"industrial",specialty:["cybernetic"],resources:1,influence:2}],anomaly:[],wormhole:[]},er59:{type:"blue",planets:[{name:"Volra",trait:"hazardous",specialty:[],resources:3,influence:1},{name:"Venhalo",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:1}],anomaly:[],wormhole:[]},er60:{type:"blue",planets:[{name:"Orchard",trait:"cultural",specialty:[],resources:2,influence:3}],anomaly:[],wormhole:[]},er61:{type:"blue",planets:[{name:"Erissiha",trait:void 0,specialty:[],resources:1,influence:1},{name:"Renhult",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er62:{type:"blue",planets:[{name:"Heska",trait:"industrial",specialty:["cybernetic"],resources:2,influence:0}],anomaly:[],wormhole:["iota"]},er63:{type:"blue",planets:[{name:"Mayris",trait:"industrial",specialty:[],resources:0,influence:1},{name:"Quwon",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er64:{type:"blue",planets:[{name:"Grywon",trait:"hazardous",specialty:[],resources:2,influence:2}],anomaly:[],wormhole:["eta"]},er65:{type:"blue",planets:[{name:"Kris",trait:"cultural",specialty:[],resources:0,influence:1},{name:"Shigonas",trait:"hazardous",specialty:[],resources:0,influence:2}],anomaly:[],wormhole:[]},er66:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:[]},er67:{type:"red",planets:[],anomaly:["nebula"],wormhole:[]},er68:{type:"red",planets:[],anomaly:["supernova"],wormhole:[]},er69:{type:"red",planets:[],anomaly:["gravity-rift"],wormhole:[]},er70:{type:"red",planets:[],anomaly:["nebula"],wormhole:[]},er71:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:[]},er72:{type:"red",planets:[],anomaly:["asteroid-field"],wormhole:[]},er75:{type:"red",planets:[],anomaly:[],wormhole:[]},er76:{type:"red",planets:[],anomaly:[],wormhole:[]},er77:{type:"red",planets:[],anomaly:[],wormhole:[]},er78:{type:"red",planets:[],anomaly:[],wormhole:[]},er79:{type:"red",planets:[],anomaly:[],wormhole:[]},er80:{type:"red",planets:[],anomaly:[],wormhole:[]},er81:{type:"red",planets:[],anomaly:[],wormhole:[]},er82:{type:"red",planets:[{name:"Ako.4.0.m",trait:"hazardous",specialty:[g],ability:"Gravitational Gambit - At the end of your turn, you may exhaust this card to roll a die. On a result of 1-3 purge each attachment to this planet, and remove all units on this planet from the game board. Otherwise, attach an Improvement card to this planet. (Improvement - ATTACH: This planet's resource and influence values are each increased by 1.)",resources:1,influence:1}],anomaly:["gravity-rift"],wormhole:[]},er83:{type:"blue",planets:[{name:"Kelgate",trait:"industrial",specialty:[g],ability:"Experimental Gate - At the start of your turn, you may exhaust this card to treat this system as if it had an alpha and beta wormhole until the end of this tactical action.",resources:1,influence:2}],anomaly:[],wormhole:[]},er84:{type:"blue",planets:[{name:"Casibann",trait:"cultural",specialty:[g],ability:"Sacrifice - When you exh
2aust Casibann to spend its resources or influence, you may exhaust this card to remove any number of infantry on that planet to spend them as resources or influence as well.",resources:0,influence:3}],anomaly:[],wormhole:[]},er85:{type:"blue",planets:[{name:"Station 309",trait:"industrial",specialty:[],resources:3,influence:2}],anomaly:[],wormhole:[]},er86:{type:"blue",planets:[{name:"Meranna",trait:"cultural",specialty:[],resources:0,influence:1},{name:"Hurigati",trait:"hazardous",specialty:["cybernetic"],resources:0,influence:1},{name:"Ferrust",trait:"hazardous",specialty:[],resources:2,influence:0}],anomaly:[],wormhole:[]},er87:{type:"blue",planets:[{name:"Argenum",trait:"hazardous",specialty:[],resources:3,influence:3},{name:"Vernium",trait:"hazardous",specialty:[],resources:1,influence:0}],anomaly:[],wormhole:[]},er88:{type:"blue",planets:[{name:"Elan's Rest",trait:"industrial",specialty:[],resources:1,influence:2},{name:"Verdis",trait:"industrial",specialty:[],resources:3,influence:1}],anomaly:[],wormhole:[]},er89:{type:"blue",planets:[{name:"Brilenci",trait:"cultural",specialty:["cybernetic"],resources:1,influence:1}],anomaly:[],wormhole:["epsilon"]},er90:{type:"red",planets:[{name:"Char",trait:"hazardous",specialty:[],resources:1,influence:0}],anomaly:[B],wormhole:[]},er91:{type:"red",planets:[{name:"Dognui",trait:"hazardous",specialty:[],resources:1,influence:0}],anomaly:[v],wormhole:[]},er92:{type:"blue",planets:[{name:"Fyrain",trait:"hazardous",specialty:[],resources:3,influence:0},{name:"Leonelli",trait:"hazardous",specialty:["cybernetic"],resources:2,influence:1}],anomaly:[],wormhole:[]},er93:{type:"blue",planets:[{name:"Sigilus",trait:"hazardous",specialty:[],resources:0,influence:4}],anomaly:[],wormhole:[]},er94:{type:"blue",planets:[{name:"Iynntani",trait:"industrial",specialty:[],resources:1,influence:3}],anomaly:[],wormhole:["beta"]},er95:{type:"blue",planets:[{name:"Kytos",trait:"cultural",specialty:[],resources:2,influence:1},{name:"Prymis",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:2}],anomaly:[],wormhole:["alpha","beta"]},er96:{type:"red",planets:[{name:"Mecantor",trait:"hazardous",specialty:[],resources:2,influence:1}],anomaly:["gravity-rift"],wormhole:[]},er97:{type:"blue",planets:[{name:"Merjae",trait:"industrial",specialty:["propulsion"],resources:2,influence:2}],anomaly:[],wormhole:[]},er98:{type:"blue",planets:[{name:"Mor Rock",trait:"cultural",specialty:[],resources:2,influence:1},{name:"Migyro",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er99:{type:"red",planets:[{name:"Mornn",trait:"hazardous",specialty:[],resources:0,influence:3}],anomaly:["nebula"],wormhole:["epsilon"]},er100:{type:"blue",planets:[{name:"Nix",trait:"industrial",specialty:[],resources:0,influence:1},{name:"Nokturn",trait:"hazardous",specialty:["warfare"],resources:0,influence:2},{name:"Viliguard",trait:"cultural",specialty:[],resources:1,influence:0}],anomaly:[],wormhole:[]},er101:{type:"blue",planets:[{name:"Ryl Fang",trait:"cultural",specialty:[],resources:2,influence:0},{name:"Syvian",trait:"cultural",specialty:["biotic"],resources:0,influence:3}],anomaly:[],wormhole:[]},er102:{type:"blue",planets:[{name:"Norrk",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er103:{type:"red",planets:[{name:"Perpetual",trait:"hazardous",specialty:[],resources:0,influence:2}],anomaly:[B,b],wormhole:[]},er104:{type:"blue",planets:[{name:"Thenphase",trait:"hazardous",specialty:["biotic"],resources:2,influence:1}],anomaly:[],wormhole:[]},er105:{type:"blue",planets:[{name:"Vent",trait:"industrial",specialty:[],resources:2,influence:2}],anomaly:[],wormhole:[]},er106:{type:"blue",planets:[{name:"Vygar II",trait:"hazardous",specialty:[],resources:2,influence:0},{name:"Yncranti",trait:"industrial",specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},er107:{type:"blue",planets:[{name:"Limbo",trait:"hazardous",specialty:[g],ability:"Equilibrium - When a player would win a combat, you may exhaust this card to treat that combat as a draw instead",resources:0,influence:2}],anomaly:[],wormhole:[]},er108:{type:"blue",planets:[{name:"Lust",trait:"cultural",specialty:[g],ability:"Vigorous Winds - After you activate a system, you may exhaust this card to apply +1 to the movement value of up to 2 of your ships during this tactical action.",resources:1,influence:2}],anomaly:[],wormhole:[]},er109:{type:"blue",planets:[{name:"Cerberus",trait:"hazardous",specialty:[g],ability:"Desperation - At the start of a ground combat on a planet you control, you may exhaust this card to choose 1 ground force in the active system; that ground force rolls 1 additional die during each round of that ground combat.",resources:3,influence:1}],anomaly:[],wormhole:[]},er110:{type:"blue",planets:[{name:"Plutus",trait:"industrial",specialty:[g],ability:"Curse of Wealth - At the start of the Strategy phase, you may exhaust this card and any number of planets you control to place a number of trade goods on this card equal to either the combined resource or influence value of those planets. When you ready this card, gain all trade goods on this card.",resources:1,influence:0}],anomaly:[],wormhole:[]},er111:{type:"blue",planets:[{name:"Stygain",trait:"hazardous",specialty:[g],ability:"Undying Leg
2ions - After 1 of your infantry units is destroyed during combat, you may place that unit on this card. When you pass, you may exhaust this card to place each unit on this card on Stygain.",resources:3,influence:0}],anomaly:[],wormhole:[]},er112:{type:"blue",planets:[{name:"Hersey",trait:"cultural",specialty:[g],ability:"Betrayers' Dagger - Before a player casts votes, you may exhaust this card to choose a player; that player must give you 1 promissory note from their hand, or cast at least 1 vote for the outcome of your choice on that agenda.",resources:0,influence:5}],anomaly:[],wormhole:[]},er113:{type:"blue",planets:[{name:"Violence",trait:"industrial",specialty:[g],ability:"Violent Demise - At the end of a ground combat on a planet you control, you may exhaust this card to roll 3 dice. For each result of 6 or greater, destroy 1 ground force on that planet.",resources:3,influence:1}],anomaly:[],wormhole:[]},er114:{type:"blue",planets:[{name:"Malbolge",trait:"hazardous",specialty:[g],ability:"Hand of Force - At the start of your turn, you may exhaust this card to choose 1 of your neighbors; that player must give you 1 promissory note or 1 action card from their hand, if able.",resources:1,influence:3}],anomaly:[],wormhole:[]},er115:{type:"blue",planets:[{name:"Cantris",trait:"hazardous",specialty:[g],ability:"Starlight Throne - When you gain this card, gain 1 victory point; when you lose this card, lose 1 victory point. You score last during the status phase.",resources:4,influence:4}],anomaly:[],wormhole:[]},er116:{type:"blue",planets:[{name:"Phylo",trait:"industrial",specialty:[],resources:2,influence:2}],anomaly:[],wormhole:["iota"]},er117:{type:"blue",planets:[{name:"Cahgaris",trait:"hazardous",specialty:[],resources:1,influence:3}],anomaly:[],wormhole:[N.KAPPA]},er118:{type:"blue",planets:[{name:"Ultimur",trait:"cultural",specialty:[],resources:3,influence:0}],anomaly:[],wormhole:[N.KAPPA]},er119:{type:"red",planets:[],anomaly:["nebula"],wormhole:["alpha","beta"]},er120:{type:"blue",planets:[{name:"Sentuim",trait:"cultural",specialty:[],resources:1,influence:1},{name:"Volgan",trait:"hazardous",specialty:[],resources:3,influence:2}],anomaly:[],wormhole:[]},er121:{type:"blue",planets:[{name:"Aranndan",trait:"hazardous",specialty:[],resources:3,influence:3}],anomaly:[],wormhole:["zeta"]},er122:{type:"blue",planets:[{name:"Hr'an Cus",trait:"cultural",specialty:[],resources:1,influence:1},{name:"Kan'His",trait:"industrial",specialty:[],resources:0,influence:3}],anomaly:[],wormhole:[]},er123:{type:"blue",planets:[{name:"Vylanua",trait:"hazardous",specialty:["warfare"],resources:0,influence:2}],anomaly:[],wormhole:[]},er124:{type:"blue",planets:[{name:"Ghanis",trait:"industrial",specialty:[],resources:2,influence:0},{name:"Behjan",trait:"cultural",specialty:["cybernetic"],resources:1,influence:2}],anomaly:[],wormhole:[]},er125:{type:"blue",planets:[{name:"Veyhrune",trait:"industrial",specialty:["propulsion"],resources:2,influence:2}],anomaly:[],wormhole:[]},er126:{type:"blue",planets:[{name:"Sokaris",trait:"cultural",specialty:[],resources:1,influence:3},{name:"Lunerus",trait:"hazardous",specialty:["cybernetic"],resources:2,influence:3}],anomaly:[],wormhole:[]},er127:{type:"blue",planets:[{name:"Maon-Lor",trait:"industrial",specialty:["biotic"],resources:3,influence:2}],anomaly:[],wormhole:["zeta"]},er128:{type:"blue",planets:[{name:"Adoriah",trait:"cultural",specialty:[],resources:1,influence:1}],anomaly:[],wormhole:["eta"]},er129:{type:"blue",planets:[{name:"Grishinu",trait:"cultural",specialty:[],resources:3,influence:2},{name:"Gryenorn",trait:"industrial",specialty:[],resources:2,influence:3}],anomaly:[],wormhole:[]},hypspaghet:{type:"hyperlane",hyperlanes:[[0,1],[0,2],[0,3],[0,4],[0,5],[1,2],[1,3],[1,4],[1,5],[2,3],[2,4],[2,5],[3,4],[3,5],[4,5]],wormhole:[],anomaly:[],planets:[]},hyp4squeeze:{type:"hyperlane",hyperlanes:[[1,4],[1,5],[2,4],[2,5]],wormhole:[],anomaly:[],planets:[]},hypbball:{type:"hyperlane",hyperlanes:[[0,2],[1,4],[3,5]],wormhole:[],anomaly:[],planets:[]},hypcrossed:{type:"hyperlane",hyperlanes:[[3,5],[0,4]],wormhole:[],anomaly:[],planets:[]},hypflair:{type:"hyperlane",hyperlanes:[[0,2],[0,4],[2,4],[1,3],[1,5],[3,5]],wormhole:[],anomaly:[],planets:[]},hypfrost:{type:"hyperlane",hyperlanes:[[1,3],[3,5]],wormhole:[],anomaly:[],planets:[]},hypfrostcross:{type:"hyperlane",hyperlanes:[[1,3],[3,5],[0,2],[0,4]],wormhole:[],anomaly:[],planets:[]},hyphorizon:{type:"hyperlane",hyperlanes:[[0,3],[0,4],[3,5]],wormhole:[],anomaly:[],planets:[]},hypmergeleft:{type:"hyperlane",hyperlanes:[[0,2],[0,3],[3,5],[1,4]],wormhole:[],anomaly:[],planets:[]},hypmergeright:{type:"hyperlane",hyperlanes:[[0,2],[2,5],[3,5],[1,4]],wormhole:[],anomaly:[],planets:[]},hypno:{type:"hyperlane",hyperlanes:[[1,4],[2,5]],wormhole:[],anomaly:[],planets:[]},hypoops:{type:"hyperlane",hyperlanes:[[0,2],[0,3],[0,4],[1,3],[1,4],[1,5],[2,4],[2,5],[3,5]],wormhole:[],anomaly:[],planets:[]},hypriftabout1:{type:"hyperlane",hyperlanes:[[3,3]],wormhole:[],anomaly:[v],planets:[]},hypriftabout2:{type:"hyperlane",hyperlanes:[[0,3]],wormhole:[],anomaly:[v],planets:[]},hypriftabout3:{type:"hyperlane",hyperlanes:[[0,2],[0,4],[2,4]],wormhole:[],anomaly:[v],planets:[]},hypriftabout6:{type:"hyperlane",hyperlanes:[[0,1],[0,2],[0,3],[0,4],[0,5],[1,2],[1,3],[1,4],[1,5],[2,3],[2,4],[2,5],[3,4],[3,5],[4,5]],wormhole:[],anomaly:[v],planets:[]},hyproundabout1:{type:"hyperlane",hyperlanes:[[3,3]],wormhole:[],anomaly:[],planets:[]},hyproundabout2:{type:"hyperlane",hyperlanes:[[0,3]],wormhole:[],anomaly:[],planets:[]},hyproundabout3:{type:"hyperlane",hyperlanes:[[0,2],[0,4],[2,4]],wormhole:[],anomaly:[],planets:[]},hyproundabout6:{type:"hyperlane",hyperlanes:[[0,1],[0,2],[0,3],[0,4],[0,5],[1,2],[1,3],[1,4],[1,5],[2,3],[2,4],[2,5],[3,4],[3,5],[4,5]],wormhole:[],anomaly:[],planets:[]},92:{type:"green",planets:[{name:"Ordinian",trait:h.NONE,specialty:[g],ability:'4X4ID "Hyperion" VI - You may exhaust this card when you pass to draw 1 action card and gain 1 command token.',resources:0,influence:0},{name:"Revelation",trait:h.NONE,specialty:[y],resources:1,influence:2}],anomaly:[b],wormhole:[]},93:{type:"green",planets:[{name:"Mez Lo Orz Fei Zsha",trait:h.NONE,specialty:[],resources:2,influence:1},{name:"Rep Lo Orz Qet",trait:h.NONE,specialty:[],resources:1,influence:3}],anomaly:[],wormhole:[]}
2,94:{type:"green",planets:[],anomaly:[],wormhole:[N.EPSILON]},95:{type:"green",planets:[{name:"Ikatena",trait:h.NONE,specialty:[],resources:4,influence:4}],anomaly:[],wormhole:[]},96:{type:"green",planets:[{name:"Cronos",trait:h.NONE,specialty:[],resources:2,influence:1},{name:"Tallin",trait:h.NONE,specialty:[],resources:1,influence:2}],anomaly:[],wormhole:[]},97:{type:"blue",planets:[{name:"Faunus",trait:h.INDUSTRIAL,specialty:[d,g],ability:"Maxis Central Control - You may exhaust this card when you pass to gain control of a non-home, non-legendary planet that contains no units and has no attachments.",resources:1,influence:3}],anomaly:[],wormhole:[]},98:{type:"blue",planets:[{name:"Garbozia",trait:h.HAZARDOUS,specialty:[g],ability:"Dok 'N Pic's Salvage Yard - You may exhaust this card when you pass to place 1 action card from the discard pile faceup on this card; you can purge cards on this card to play them as if they were in your hand.",resources:2,influence:1}],anomaly:[],wormhole:[]},99:{type:"blue",planets:[{name:"Emelpar",trait:h.CULTURAL,specialty:[g],ability:"The Acropolis - You may exhaust this card at the end of your turn to ready another component that isn't a strategy card.",resources:0,influence:2}],anomaly:[],wormhole:[]},100:{type:"blue",planets:[{name:"Tempesta",trait:h.HAZARDOUS,specialty:[f,g],ability:"Ionian Fuel Refinery - You may exhaust this card after you activate a system to apply +1 to the move value of 1 of your ships during this tactical action.",resources:1,influence:1}],anomaly:[],wormhole:[]},101:{type:"blue",planets:[{name:"Olergodt",trait:[h.CULTURAL,h.HAZARDOUS],specialty:[m,p],resources:2,influence:1}],anomaly:[],wormhole:[]},102:{type:"blue",planets:[{name:"Andeara",trait:h.INDUSTRIAL,specialty:[f],resources:1,influence:1}],anomaly:[],wormhole:[N.ALPHA]},103:{type:"blue",planets:[{name:"Vira-Pics III",trait:[h.CULTURAL,h.HAZARDOUS],specialty:[],resources:2,influence:3}],anomaly:[],wormhole:[]},104:{type:"blue",planets:[{name:"Lesab",trait:[h.HAZARDOUS,h.INDUSTRIAL],specialty:[],resources:2,influence:1}],anomaly:[],wormhole:[]},105:{type:"blue",planets:[{name:"New Terra",trait:h.INDUSTRIAL,specialty:[d],resources:1,influence:1},{name:"Tinnes",trait:[h.HAZARDOUS,h.INDUSTRIAL],specialty:[d],resources:2,influence:1}],anomaly:[],wormhole:[]},106:{type:"blue",planets:[{name:"Cresius",trait:h.HAZARDOUS,specialty:[],resources:0,influence:1},{name:"Lazul Rex",trait:[h.INDUSTRIAL,h.CULTURAL],specialty:[],resources:2,influence:2}],anomaly:[],wormhole:[]},107:{type:"blue",planets:[{name:"Tiamat",trait:h.CULTURAL,specialty:[m,m],resources:2,influence:1},{name:"Hercalor",trait:h.INDUSTRIAL,specialty:[],resources:1,influence:0}],anomaly:[],wormhole:[]},108:{type:"blue",planets:[{name:"Kostboth",trait:h.CULTURAL,specialty:[],resources:0,influence:1},{name:"Capha",trait:h.HAZARDOUS,specialty:[],resources:3,influence:0}],anomaly:[],wormhole:[]},109:{type:"blue",planets:[{name:"Bellatrix",trait:h.CULTURAL,specialty:[],resources:1,influence:2},{name:"Tsion Station",trait:h.NONE,specialty:[y],resources:1,influence:1}],anomaly:[],wormhole:[]},110:{type:"blue",planets:[{name:"Horizon",trait:h.CULTURAL,specialty:[],resources:1,influence:2},{name:"El'Nath",trait:h.HAZARDOUS,specialty:[],resources:2,influence:0},{name:"Luthien VI",trait:h.HAZARDOUS,specialty:[],resources:3,influence:1}],anomaly:[],wormhole:[]},111:{type:"blue",planets:[{name:"Tarana",trait:[h.INDUSTRIAL,h.CULTURAL],specialty:[],resources:1,influence:2},{name:"Oluz Station",trait:h.NONE,specialty:[y],resources:1,influence:1}],anomaly:[],wormhole:[]},112:{type:"blue",planets:[{name:"Mecatol Rex",trait:h.NONE,specialty:[g],ability:"The Galactic Council - You may exhaust this card and discard 1 secret objective at the end of your turn to draw 1 secret objective.",resources:1,influence:6}],anomaly:[],wormhole:[]},113:{type:"red",planets:[],anomaly:[v],wormhole:[N.BETA]},114:{type:"red",planets:[],anomaly:[C],wormhole:[]},115:{type:"red",planets:[{name:"Industrex",trait:h.INDUSTRIAL,specialty:[p,g],ability:"Aeurex Mechanica - You may exhaust this card when you pass to place 1 ship that matches a unit upgrade technology you own from your reinfor
2cements into a system that contains your ships.",resources:2,influence:0}],anomaly:[w],wormhole:[]},116:{type:"red",planets:[{name:"Lemox",trait:h.INDUSTRIAL,specialty:[],resources:0,influence:3}],anomaly:[C],wormhole:[]},117:{type:"red",planets:[{name:"The Watchtower",trait:h.NONE,specialty:[y],resources:1,influence:1}],anomaly:[v,w],wormhole:[]},118:{type:"green",planets:[{name:"Ahk Creuxx",trait:h.NONE,specialty:[],resources:4,influence:2}],anomaly:[],wormhole:[N.EPSILON]}},base:["1","2","3","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"],pok:["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","77","78","79","80","81","82"],uncharted:["4253","4254","4255","4256","4257","4258","4259","4260","4261","4262","4263","4264","4265","4266","4267","4268","4269","4270","4271","4272","4273","4274","4275","4276"],sun:["er01","er02","er03","er04","er05","er06","er07","er08","er09","er10","er11","er12","er13","er14","er15","er16","er17","er18","er19","er20","er21","er22","er23","er24","er25","er26","er27","er28","er29","er30","er31","er32","er33","er34","er35","er36","er37","er38","er39","er40","er41","er42","er43","er44","er45","er46","er47","er48","er49","er50","er51","er52","er53","er54","er55","er56","er57","er58","er59","er60","er61","er62","er63","er64","er65","er66","er67","er68","er69","er70","er71","er72","er75","er76","er77","er78","er79","er80","er81","er82","er83","er84","er85","er86","er87","er88","er89","er90","er91","er92","er93","er94","er95","er96","er97","er98","er99","er100","er101","er102","er103","er104","er105","er106","er107","er108","er109","er110","er111","er112","er113","er114","er115","er116","er117","er118","er119","er120","er121","er122","er123","er124","er125","er126","er127","er128","er129"],te:["92","93","94","95","96","97","98","99","100","101","102","103","104","105","106","107","108","109","110","111","112","113","114","115","116","117","118"],ds:["3201","3202","3203","3204","3205","3206","3207","3208","3209","3210","3211","3212","3213","3214","3215","3216","3217","3218","3219","3220","3221","3222","3223","3224","3226","3227","3228","3229","3230","3231","3232","3233","3234","3235"],asyncLanes:["hypspaghet","hyp4squeeze","hypbball","hypcrossed","hypflair","hypfrost","hypfrostcross","hyphorizon","hypmergeleft","hypmergeright","hypno","hypoops","hypriftabout1","hypriftabout2","hypriftabout3","hypriftabout6","hyproundabout1","hyproundabout2","hyproundabout3","hyproundabout6"]};L.green=Object.keys(L.all).filter(e=>"green"===L.all[e].type).filter(e=>!L.all[e].special),L.blue=Object.keys(L.all).filter(e=>"blue"===L.all[e].type).filter(e=>!L.all[e].special),L.red=Object.keys(L.all).filter(e=>"red"===L.all[e].type).filter(e=>!L.all[e].special),L.anomaly=L.red.filter(e=>L.all[e].anomaly.length>0),L.blankRed=L.red.filter(e=>0===L.all[e].anomaly.length),L.wormholes=Object.keys(L.all).filter(e=>L.all[e].wormhole.length>0).filter(e=>!L.all[e].special),L.asteroidFields=L.anomaly.filter(e=>L.all[e].anomaly.includes(w)),L.gravityRifts=L.anomaly.filter(e=>L.all[e].anomaly.includes(v)),L.nebulae=L.anomaly.filter(e=>L.all[e].anomaly.includes(b)),L.supernovas=L.anomaly.filter(e=>L.all[e].anomaly.includes(B));for(const n in N)L[`${N[n]}Wormholes`]=Object.keys(L.all).filter(e=>L.all[e].wormhole.includes(N[n])).filter(e=>!L.all[e].special);for(const n in h)h[n]!==h.NONE&&(L[`${h[n]}Tiles`]=Object.keys(L.all).filter(e=>!L.all[e].special&&L.all[e].planets.some(e=>e.trait===h[n])));const O=L,I="biotic",Q="warfare",H="propulsion",R="cybernetic",P=null,D="flagship",M="mech",_="infantry",j="carrier",K="cruiser",z="destroyer",W="dreadnought",V="fighter",G="war-sun",q="pds",Y="space-dock",X={factions:["The Arborec","The Barony of Letnev","The Clan of Saar","The Embers of Muaat","The Emirates of Hacan","The Federation of Sol","The Ghosts of Creuss","The L1Z1X Mindnet","The Mentak Coalition","The Naalu Collective","The Nekro Virus","Sardakk N'orr","The Universities of Jol-Nar","The Winnu","The Xxcha Kingdom","The Yin Brotherhood","The Yssaril Tribes"],pokFactions:["The Argent Flight","The Empyrean","The Mahact Gene-sorcerers","The Naaz-Rokha Alliance","The Nomad","The Titans of Ul","The Vuil'raith Cabal"],teFactions:["The Crimson Rebellion","The Deepwrought Scholarate","The Firmament","Last Bastion","The Ral Nel Consortium"],dsFactions:["The Shipwrights of Axis","The Celdauri Trade Confederation","The Savages of Cymiae","The Dih-Mohn Flotilla","The Florzen Profiteers","The Free Systems Compact","The Ghemina Raiders","The Augurs of Ilyxum","The Kollecc Society","The Kortali Tribunal","The Li-Zho Dynasty","The L'tokk Khrask","The Mirveda Protectorate","The Glimmer of Mortheus","The Myko-Mentori","The Nivyn Star Kings","The Olradin League","The Zealots of Rhodun","Roh'Dhna Mechatronics","The Tnelis Syndicate","The Vaden Banking Clans","The Vaylerian Scourge","The Veldyr Sovereignty","The Zelian Purifier","The Bentor
2Conglomerate","The Cheiran Hordes","The Edyn Mandate","The Ghoti Wayfarers","The Gledge Union","The Berserkers of Kjalengard","The Monks of Kolume","The Kyro Sodality","The Lanefir Remnants","The Nokar Sellships"],homeSystems:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17],pokHomeSystems:[52,53,54,55,56,57,58],teHomeSystems:[92,93,94,95,96],dsHomeSystems:[3201,3202,3203,3204,3205,3206,3207,3208,3209,3210,3211,3212,3213,3214,3215,3216,3217,3218,3219,3220,3221,3222,3223,3224,3226,3227,3228,3229,3230,3231,3232,3233,3234,3235],homeSystemToFactionMap:{1:"The Federation of Sol",2:"The Mentak Coalition",3:"The Yin Brotherhood",4:"The Embers of Muaat",5:"The Arborec",6:"The L1Z1X Mindnet",7:"The Winnu",8:"The Nekro Virus",9:"The Naalu Collective",10:"The Barony of Letnev",11:"The Clan of Saar",12:"The Universities of Jol-Nar",13:"Sardakk N'orr",14:"The Xxcha Kingdom",15:"The Yssaril Tribes",16:"The Emirates of Hacan",17:"The Ghosts of Creuss",52:"The Mahact Gene-sorcerers",53:"The Nomad",54:"The Vuil'raith Cabal",55:"The Titans of Ul",56:"The Empyrean",57:"The Naaz-Rokha Alliance",58:"The Argent Flight",92:"Last Bastion",93:"The Ral Nel Consortium",94:"The Crimson Rebellion",95:"The Deepwrought Scholarate",96:"The Firmament",3201:"The Veldyr Sovereignty",3202:"The Free Systems Compact",3203:"The Li-Zho Dynasty",3204:"The Kortali Tribunal",3205:"The Ghemina Raiders",3206:"The Vaden Banking Clans",3207:"The Glimmer of Mortheus",3208:"The Augurs of Ilyxum",3209:"The Shipwrights of Axis",3210:"The Olradin League",3211:"The Myko-Mentori",3212:"The Tnelis Syndicate",3213:"The Savages of Cymiae",3214:"Roh'Dhna Mechatronics",3215:"The Zelian Purifier",3216:"The Vaylerian Scourge",3217:"The Florzen Profiteers",3218:"The Dih-Mohn Flotilla",3219:"The Celdauri Trade Confederation",3220:"The Nivyn Star Kings",3221:"The Mirveda Protectorate",3222:"The L'tokk Khrask",3223:"The Kollecc Society",3224:"The Zealots of Rhodun",3226:"The Berserkers of Kjalengard",3227:"The Bentor Conglomerate",3228:"The Nokar Sellships",3229:"The Gledge Union",3230:"The Lanefir Remnants",3231:"The Kyro Sodality",3232:"The Ghoti Wayfarers",3233:"The Monks of Kolume",3234:"The Cheiran Hordes",3235:"The Edyn Mandate"},factionToHomeSystemMap:{"The Federation of Sol":1,"The Mentak Coalition":2,"The Yin Brotherhood":3,"The Embers of Muaat":4,"The Arborec":5,"The L1Z1X Mindnet":6,"The Winnu":7,"The Nekro Virus":8,"The Naalu Collective":9,"The Barony of Letnev":10,"The Clan of Saar":11,"The Universities of Jol-Nar":12,"Sardakk N'orr":13,"The Xxcha Kingdom":14,"The Yssaril Tribes":15,"The Emirates of Hacan":16,"The Ghosts of Creuss":17,"The Mahact Gene-sorcerers":52,"The Nomad":53,"The Vuil'raith Cabal":54,"The Titans of Ul":55,"The Empyrean":56,"The Naaz-Rokha Alliance":57,"The Argent Flight":58,"Last Bastion":92,"The Ral Nel Consortium":93,"The Crimson Rebellion":94,"The Deepwrought Scholarate":95,"The Firmament":96,"The Veldyr Sovereignty":3201,"The Free Systems Compact":3202,"The Li-Zho Dynasty":3203,"The Kortali Tribunal":3204,"The Ghemina Raiders":3205,"The Vaden Banking Clans":3206,"The Glimmer of Mortheus":3207,"The Augurs of Ilyxum":3208,"The Shipwrights of Axis":3209,"The Olradin League":3210,"The Myko-Mentori":3211,"The Tnelis Syndicate":3212,"The Savages of Cymiae":3213,"Roh'Dhna Mechatronics":3214,"The Zelian Purifier":3215,"The Vaylerian Scourge":3216,"The Florzen Profiteers":3217,"The Dih-Mohn Flotilla":3218,"The Celdauri Trade Confederation":3219,"The Nivyn Star Kings":3220,"The Mirveda Protectorate":3221,"The L'tokk Khrask":3222,"The Kollecc Society":3223,"The Zealots of Rhodun":3224,"The Berserkers of Kjalengard":3226,"The Bentor Conglomerate":3227,"The Nokar Sellships":3228,"The Gledge Union":3229,"The Lanefir Remnants":3230,"The Kyro Sodality":3231,"The Ghoti Wayfarers":3232,"The Monks of Kolume":3233,"The Cheiran Hordes":3234,"The Edyn Mandate":3235},factionDetails:{"Last Bastion":{abilities:[{name:"LIBERATE",description:"When you gain control of a planet, ready that planet if it contains a number of your infantry equal to or greater than that planet's resource value; otherwise, place 1 infantry on that planet."},{name:"GALVANIZE",description:"When a game effect instructs a player to galvanize a unit, they place a galvanize token beneath it, if it does not have one. Galvanized units roll 1 additional die for combat rolls and unit abilities."},{name:"PHOENIX STANDARD",description:"At the end of combat, you may galvanize 1 of your units that participated."}],promissoryNote:{name:"Raise the Standard",description:"At the end of a combat: Galvanize 1 of your units that participated. Then, return this card to the Last Bastion player."},technologies:[{name:"Proxima Targeting VI",type:Q,description:"Cancel 1 hit produced by BOMBARDMENT rolls made against your ground forces for each of your galvanized units present. At the start of a round of ground combat, you may resolve BOMBARDMENT 8 (x3) against your opponents ground forces; if you do, make an identical roll against your own ground forces."}],startingTechnologyChoice:{count:1,options:["antimass-deflectors","dark-energy-tap","sarween-tools","scanlink-drone-network"]},startingUnits:{[_]:3,[j]:1,[K]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"The Egeiro",stats:{cost:8,combat:9,move:1,capacity:3},abilities:["Sustain Damage","Production 1","Apply +1 to the results of each of this unit's combat rolls for each non-
2home system that contains a planet you control."]},mech:{name:"A3 Valiance",stats:{cost:2,combat:6},abilities:["When this unit is destroyed, if it was galvanized, galvanize up to 3 of your infantry in its system","Sustain Damage"]},breakthrough:{name:"The Icon",description:"When you produce ships, you may exhaust this card to place those ships in a system that contains one of your command tokens, at least one of your ground forces, and no other player's ships."},"space-dock":{tiers:[{name:'4X41C "HELIOS" V1',stats:{},abilities:["This unit's PRODUCTION value is equal to 2 more than the resource value of this planet. The resource value of this planet is increased by 1. Up to 3 fighters in this system do not count against your ships' capacity. Production X"]},{name:'4X41C "HELIOS" V2',stats:{},abilities:["This unit's PRODUCTION value is equal to 4 more than the resource value of this planet. The resource value of this planet is increased by 2. Up to 3 fighters in this system do not count against your ships' capacity. Production X"]}]}},leaders:{agent:{name:"Dame Briar",unlockCriteria:"At Game Start",ability:"When a player's unit is destroyed: You may exhaust this card to galvanize another of that player's units in the destroyed unit's system."},commander:{name:"Nip and Tuck",unlockCriteria:"There are 3 galvanized units on the game board",ability:'Your action cards cannot be canceled by "Sabotage" action cards. The Nekro Virus cannot place assimilator tokens on your components.'},hero:{name:"Lyra Keen",unlockCriteria:"Have 3 Scored Objectives",ability:'ENTITY 4X41A "APOLLO" When one of your galvanized units is destroyed: You may purge this card to roll 1 die for each unit in its system that belongs to another player; if the result is equal to or greater than the galvanized unit\'s combat value, destroy that unit.'}}},"Sardakk N'orr":{abilities:[{name:"UNRELENTING",description:"Apply +1 to the result of each of your unit's combat rolls."}],promissoryNote:{name:"Tekklar Legion",description:"At the start of an invasion combat: Apply +1 to the result of each of your unit's combat rolls during this combat. If your opponent is the N'orr player, apply -1 to the result of each of his unit's combat rolls during this combat. Then, return this card to the N'orr player."},technologies:[{name:"Valkyrie Particle Weave",type:Q,description:"After making combat rolls during a round of ground combat, if your opponent produced 1 or more hits, you produce 1 additional hit"}],startingUnits:{[_]:5,[j]:2,[K]:1,[q]:1,[Y]:1},units:{flagship:{name:"C'Morran N'orr",stats:{cost:8,combat:"6 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Apply +1 to the result of each of your other ship's combat rolls in this system."]},mech:{name:"Valkyrie Exoskeleton",stats:{cost:2,combat:6},abilities:["After this unit uses its SUSTAIN DAMAGE ability during Ground Combat, it produces 1 hit against your opponent's ground forces on this planet.","Sustain Damage"]},breakthrough:{name:"N'orr Supremacy",description:"After you win a combat, either gain 1 command token or research a unit upgrade technology."},dreadnought:{description:"Sardakk N'orr Dreadnoughts and their upgraded variety have stronger bombardment than all other Dreadnoughts.",tiers:[{name:"Exotrireme I",stats:{cost:4,combat:5,move:1,capacity:1},abilities:["Sustain Damage Bombardment 4 (x2)"]},{name:"Exotrireme II",stats:{cost:4,combat:5,move:2,capacity:1},abilities:['Sustain Damage Bombardment 4 (x2) This unit cannot be destroyed by "Direct Hit" action cards. After a round of space combat, you may destroy this unit to destroy up to 2 ships in this system.']}]}},leaders:{agent:{name:"T'ro",unlockCriteria:"At Game Start",ability:"At the end of a player's tactical action: You may exhaust this card; if you do, that player may place 2 infantry from their reinforcements on a planet they control in the active system."},commander:{name:"G'hom Sek'kus",unlockCriteria:"Control 5 planets in non-home systems",ability:'During the " Commit Ground Forces " step: You can commit up to 1 ground force from each planet in the active system and each planet in adjacent systems that do not contain 1 of your command tokens.'},hero:{name:"Sh'val, Harbinger",unlockCriteria:"Have 3 Scored Objectives",ability:'TEKKLAR CONDITIONING After you move ships into the active system: You may skip directly to the "Commit Ground Forces" step. If you do, after you commit ground forces to land on planets, purge this card and return each of your ships in the active system to your reinfor
2cements.'}}},"The Arborec":{abilities:[{name:"MITOSIS",description:"Your space docks cannot produce infantry. At the start of the status phase, place 1 infantry from your reinforcements on any planet you control."}],promissoryNote:{name:"Stymie",description:"ACTION: Place this card face up in your play area. While this card is in your play area, the Arborec player cannot produce units in or adjacent to non-home systems that contain 1 or more of your units. If you activate a system that contains 1 or more of the Arborec player's units, return this card to the Arborec player. After another player moves ships into a system that contains 1 or more of your units: You may place 1 command token from that player's reinforcements in any non-home system. Then, return this card to the Arborec player."},technologies:[{name:"Bioplasmosis",type:I,description:"At the end of the status phase, you may remove any number of infantry from planets you control and place them on 1 or more planets you control in the same or adjacent systems."}],startingTechnologies:["magen-defense-grid"],startingUnits:{[_]:4,[j]:1,[K]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Duha Menaimon",stats:{cost:8,combat:"7 (x2)",move:1,capacity:5},abilities:["Sustain Damage","After you activate this system, you may produce up to 5 units in this system."]},mech:{name:"Letani Behemoth",stats:{cost:2,combat:6},abilities:["DEPLOY: When you would use your MITOSIS faction ability you may replace 1 of your infantry with 1 mech from your reinforcements instead.","Sustain Damage","Production 2","Planetary Shield"]},breakthrough:{name:"Psychospore",description:"ACTION: Exhaust this card to remove a command token from a system that contains 1 or more of your infantry and return it to your reinforcements. Then, place 1 infantry in that system."},infantry:{description:"Arborec Infantry have the Production ability.",tiers:[{name:"Letani Warrior I",stats:{cost:"1x2",combat:8},abilities:["Production 1"]},{name:"Letani Warrior II",stats:{cost:"1x2",combat:7},abilities:["Production 2 After this unit is destroyed, roll 1 die. If the result is 6 or greater, place the unit on this card. At the start of your next turn, place each unit that is on this card on a planet you control in your home system."]}]}},leaders:{agent:{name:"Letani Ospha",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card and choose a player's non-fighter ship; that player may replace that ship with one from their reinforcements that costs up to 2 more than the replaced ship."},commander:{name:"Dirzuga Rophal",unlockCriteria:"Have 12 Ground Forces on Planets you control.",ability:"After another player activates a system that contains 1 or more of your units that have PRODUCTION: You may produce 1 unit in that system."},hero:{name:"Letani Miasmiala",unlockCriteria:"Have 3 Scored Objectives",ability:"ULTRASONIC EMITTER ACTION: Produce any number of units in any number of systems that contain 1 or more of your ground forces. Then, purge this card."}}},"The Argent Flight":{abilities:[{name:"ZEAL",description:"You always vote first during the agenda phase. When you cast at least 1 vote, cast 1 additional vote for each player in the game including you."},{name:"RAID FORMATION",description:"When 1 or more of your units uses ANTI-FIGHTER BARRAGE, for each hit produced in excess of your opponent's Fighters, choose 1 of your opponent's ships that has SUSTAIN DAMAGE to become damaged."}],promissoryNote:{name:"Strike Wing Ambuscade",description:"When 1 or more of your units make a roll for a unit ability: Choose 1 of those units to roll 1 additional die Then, return this card to the Argent player"},technologies:[{name:"Aerie Hololattice",type:R,description:"Other players cannot move ships through systems that contain your structures. Each planet that contains 1 or more of your structures gains the PRODUCTION 1 ability as if it were a unit"}],startingTechnologyChoice:{count:2,options:["neural-motivator","sarween-tools","plasma-scoring"]},startingUnits:{[_]:5,[j]:1,[z]:2,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Quetzecoatl",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Other players cannot use space cannon against your ships in this system"]},mech:{name:"Aerie Sentinel",stats:{cost:2,combat:6},abilities:["This unit does not count against capacity if it is being transported or if it is in a space area with 1 or more of your ships that have capacity values","Sustain Damage"]},breakthrough:{name:"Wing Transfer",description:"When you activate a system that contains only your units, you may place command tokens from your reinfor
2cements into any system adjacent to that system that contain only your units; at the end of this action, you may move ships among the active system and systems adjacent to it that contain your command tokens."},destroyer:{description:"Argent Flight Destroyers have capacity and they hit on an 8 rather than a 9.",tiers:[{name:"Strike Wing Alpha I",stats:{cost:1,combat:8,move:2,capacity:1},abilities:["Anti-Fighter Barrage 9 (x2)"]},{name:"Strike Wing Alpha II",stats:{cost:1,combat:7,move:2,capacity:1},abilities:["Anti-Fighter Barrage 6 (x3) When this unit uses ANTI-FIGHTER BARRAGE, each result of 9 or 10 also destroys 1 of your opponent's infantry in the space area of the active system"]}]}},leaders:{agent:{name:"Trillossa Aun Mirik",unlockCriteria:"At Game Start",ability:"When a player produces ground forces in a system: You may exhaust this card; that player may place those units on any planets they control in that system and any adjacent systems."},commander:{name:"Trrakan Aun Zulok",unlockCriteria:"Have 6 units that have ANTI-FIGHTER BARRAGE, SPACE CANNON or BOMBARDMENT on the game board",ability:"When 1 or more of your units make a roll for a unit ability: You may choose 1 of those units to roll 1 additional die."},hero:{name:"Mirik Aun Sissiri",unlockCriteria:"Have 3 Scored Objectives",ability:"HELIX PROTOCOL ACTION: Move any number of your ships from any systems to any number of other systems that contain 1 of your command tokens and no other players' ships. Then, purge this card."}}},"The Barony of Letnev":{abilities:[{name:"MUNITIONS RESERVES",description:"At the start of each round of space combat, you may spend 2 trade goods; you may re-roll any number of your dice during that combat round."},{name:"ARMADA",description:"The maximum number of non-fighter ships you can have in each system is equal to 2 more than the number of tokens in your fleet pool."}],promissoryNote:{name:"War Funding",description:"At the start of a round of space combat: The Letnev player loses 2 trade goods. During this combat round, re-roll any number of your dice. Then, return this card to the Letnev player. After you and your opponent roll dice during space combat: You may reroll all of your opponent's dice. You may reroll any number of your dice. Then, return this card to the Letnev player."},technologies:[{name:"L4 Disruptors",type:R,description:"During an invasion, units cannot use SPACE CANNON against your units."},{name:"Non-Euclidean Shielding",type:Q,description:"When 1 of your units uses SUSTAIN DAMAGE, cancel 2 hits instead of 1."}],startingTechnologies:["antimass-deflectors","plasma-scoring"],startingUnits:{[_]:3,[j]:1,[z]:1,[W]:1,[V]:1,[Y]:1},units:{flagship:{name:"Arc Secundus",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Bombardment 5 (x3)","Other players' units in this system lose PLANETARY SHIELD. At the start of each space combat round, repair this ship."]},mech:{name:"Dunlain Reaper",stats:{cost:2,combat:6},abilities:["DEPLOY: At the start of a round of ground combat, you may spend 2 resources to replace 1 of your infantry in that combat with 1 mech.","Sustain Damage"]},breakthrough:{name:"Gravleash Maneuvers",description:"Before you roll dice during space combat, apply +X to the results of 1 of your ship's rolls, where X is the number of ship types you have in the combat. During movement, your non-fighter ships' move values are equal to the highest move value amongst moving ships in the system they started in."}},leaders:{agent:{name:"Viscount Unlenn",unlockCriteria:"At Game Start",ability:"At the start of a Space Combat round: You may exhaust this card to choose 1 ship in the active system. That ship rolls 1 additional die during this combat round."},commander:{name:"Rear Admiral Farran",unlockCriteria:"Have 5 non-fighter ships in 1 system",ability:"After 1 of your units uses SUSTAIN DAMAGE: You may gain 1 Trade Good."},hero:{name:"Darktalon Treilla",unlockCriteria:"Have 3 Scored Objectives",ability:"DARK MATTER AFFINITY ACTION: Place this card near the game board; the number of non-fighter ships you can have in systems is not limited by laws or by the number of command tokens in your fleet pool during this game roun
2d. At the end of that game round, purge this card."}}},"The Clan of Saar":{abilities:[{name:"SCAVENGE",description:"After you gain control of a planet, gain 1 trade good."},{name:"NOMADIC",description:"You can score objectives even if you do not control the planets in your home system."}],promissoryNote:{name:"Ragh's Call",description:"After you commit 1 or more units to land on a planet: Remove all of the Saar player's ground forces from that planet and place them on a planet controlled by the Saar player. Then, return this card to the Saar player."},technologies:[{name:"Chaos Mapping",type:H,description:"Other players cannot activate asteroid fields that contain 1 or more of your ships. At the start of your turn during the action phase, you may produce 1 unit in a system that contains at least 1 of your units that has Production."}],startingTechnologies:["antimass-deflectors"],startingUnits:{[_]:4,[j]:2,[K]:1,[V]:2,[Y]:1},units:{flagship:{name:"Son of Ragh",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Anti-Fighter Barrage 6 (x4)"]},mech:{name:"Scavenger Zeta",stats:{cost:2,combat:6},abilities:["DEPLOY: After you gain control of a planet, you may spend 1 trade good to place 1 mech on that planet.","Sustain Damage"]},breakthrough:{name:"Deorbit Barrage",description:"ACTION: Exhaust this card and spend any amount of resources to choose a planet up to 2 systems away from an asteroid field that contains your ships; roll a number of dice equal to the amount spent, and assign 1 hit to a ground force on that planet for each roll of 4 or greater"},"space-dock":{description:"Saar Space Docks are placed in the space area of their system instead of on a planet. They can move as ships and have capacity. They also have a set Production value.",tiers:[{name:"Floating Factory I",stats:{move:1,capacity:4},abilities:["Production 5 This unit is placed in a space area instead of on a planet. This unit can move and retreat as if it were a ship. If this unit is blockaded, it is destroyed."]},{name:"Floating Factory II",stats:{move:2,capacity:5},abilities:["Production 7 This unit is placed in a space area instead of on a planet. This unit can move and retreat as if it were a ship. If this unit is blockaded, it is destroyed."]}]}},leaders:{agent:{name:"Captain Mendosa",unlockCriteria:"At Game Start",ability:"After a player activates a system: You may exhaust this card to increase the move value of 1 of that player's ships to match the move value of the ship on the game board that has the highest move value."},commander:{name:"Rowl Sarrig",unlockCriteria:"Have 3 space docks on the game board",ability:"When you produce fighters or infantry: You may place each of those units at any of your space docks that are not blockaded."},hero:{name:"Gurno Aggero",unlockCriteria:"Have 3 Scored Objectives",ability:"ARMAGEDDON RELAY ACTION: Choose 1 system that is adjacent to 1 of your space docks. Destroy all other player's infantry and fighters in that system. Then, purge this card."}}},"The Council Keleres":{abilities:[{name:"THE TRIBUNII \u03a9",description:"During setup, choose a Keleres hero that corresponds to an unused faction; take that faction's home system, command tokens and control tokens. The unchosen Keleres heroes are not used."},{name:"COUNCIL PATRONAGE",description:"Replenish your commodities at the start of the strategy phase, then gain 1 trade good."},{name:"LAW'S ORDER \u03a9",description:"You may spend 1 trade good or 1 commodity at the start of any player's turn to treat all laws as blank until the end of that turn."}],promissoryNote:{name:"Keleres Rider",description:"After an agenda is revealed: You cannot vote on this agenda. Predict aloud an outcome of this agenda. If your prediction is correct, draw 1 action card and gain 2 trade goods. Then, return this card to the Keleres player."},technologies:[{name:"I.I.H.Q. Modernization",type:R,description:"You are neighbors with all players that have units or control planets in or adjacent to the Mecatol Rex system. Gain the Custodia Vigilia planet card and its legendary planet ability card. You cannot lose these cards, and this card cannot have an X or Y assimilator token placed on it."},{name:"Agency Supply Network",type:R,description:"Whenever you resolve one of your PRODUCTION abilities, you may resolve an additional one of your PRODUCTION abilities in any system; the additional use does not trigger this ability."},{name:"Executive Order",type:R,description:"ACTION: Exhaust this card and draw the top or bottom card of the agenda deck. Players immediately vote on this agenda as if you were the speaker; you can spend trade goods and resources on this agenda as if they were votes."}],startingTechnologyChoice:{count:2,options:[],description:"Choose 2 non-faction technologies owned by other players."},startingUnits:{[_]:2,[j]:2,[K]:1,[V]:2,[Y]:1},units:{flagship:{name:"Artemiris",stats:{cost:8,combat:"7 (x2)",move:1,capacity:6},abilities:["Sustain Damage","Other players must spend 2 influence to activate the system that contains this ship."]},mech:{name:"Omniopiares",stats:{cost:2,combat:6},abilities:["Other players must spend 1 influence to commit ground forces to the planet that c
2ontains this unit.","Sustain Damage"]},breakthrough:{name:"I.I.H.Q. Modernization",description:"When you gain this card, gain the Custodia Vigilia planet card and its legendary planet ability card. You are neighbors with all players that have units or control planets in or adjacent to the Mecatol Rex system."}},leaders:{agent:{name:"Xander Alexin Victori III",unlockCriteria:"At Game Start",ability:"At any time: You may exhaust this card to allow any player to spend commodities as if they were trade goods"},commander:{name:"Suffi An",unlockCriteria:"Spend 1 trade good after you play an action card that has a component action",ability:"After you perform a component action: You may perform an additional action."},hero:{name:"Kuuasi Aun Jalatai",unlockCriteria:"Have 3 Scored objectives",ability:"OVERWING ZETA At the start of a round of space combat in a system that contains a planet you control: Place your flagship and up to a total of 2 cruisers and/or destroyers from your reinforcements in the active system. Then, purge this card.",condition:"If Argent Flight Chosen for Tribunii"},hero2:{name:"Odlynn Myrr",unlockCriteria:"Have 3 Scored Objectives",ability:"OPERATION ARCHON After an agenda is revealed: You may cast up to 6 additional votes on this agenda. Predict aloud an outcome for this agenda. For each player that votes for another outcome, gain 1 trade good and 1 command token. Then, purge this card.",condition:"If Xxcha Chosen for Tribunii"},hero3:{name:"Harka Leeds",unlockCriteria:"Have 3 Scored Objectives",ability:"ERWAN'S COVENANT ACTION: Reveal cards from the action card deck until you reveal 3 action cards that have component actions. Draw those cards and shuffle the rest back into the action card deck. Then, purge this card.",condition:"If Mentak Chosen for Tribunii"}}},"The Crimson Rebellion":{abilities:[{name:"SUNDERED",description:"You cannot use wormholes other than epsilon wormholes. Other players' units that move or are placed into your home system are destroyed."},{name:"INCURSION",description:"When you activate a system that contains a breach, you may flip that breach; systems that contain active breaches are adjacent. At the end of the status phase, any player with ships in a system that contain an active breach may remove that breach."},{name:"THE SORROW",description:"When you create the game board, place the Sorrow (tile 94) where your home system would normally be placed, then place a inactive breach there. The Sorrow is not a home system. Then, place your home system (tile 118) in your play area."}],promissoryNote:{name:"Sever",description:"ACTION: Place this card faceup in your play area, and place the sever token in a system that contains your units; wormholes in that system have no effect during movement. Remove the sever token and return this card to the Rebellion player at end of the status phase."},technologies:[{name:"Subatomic Splicer",type:R,description:"When one of your ships is destroyed, you may produce a ship of the same type at a space dock in your home system."}],startingTechnologyChoice:{count:1,options:["dark-energy-tap","antimass-deflectors","plasma-scoring","ai-development-algorithm"]},startingUnits:{[_]:4,[j]:1,[z]:2,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Quietus",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","While this unit is in a system that contains an active breach, other players' units in systems with active breaches lose all their unit abilities."]},mech:{name:"Revenant",stats:{cost:2,combat:6},abilities:['DEPLOY: During the "Commit Ground Forces" step of your tactical action in a system that contains an active breach, you may commit 1 mech, even if you have no units in the system',"Sustain Damage"]},breakthrough:{name:"Resonance Generator",description:"During your tactical actions, apply +1 to the move value of each of your ships that start in your home system or in a system that contains an active breach. ACTION: Exhaust this card to flip any breach or place an active breach in a non-home system that contains your units."},destroyer:{description:"Crimson Rebellion Destroyers interact with the Breach mechanic, allowing the placement of Inactive Breach tokens after combat in, or adjacent to the Destroyer's system. They are also stronger than regular Destroyers.",tiers:[{name:"Exile I",stats:{cost:1,combat:8,move:2},abilities:["At the end of any player's combat in this unit's system or an adjacent system, you may place 1 inactive breach in that system. Anti-Fighter Barrage 9 (x2)"]},{name:"Exile II",stats:{cost:1,combat:7,move:2},abilities:["At the end of any player's combat in this unit's system or up to 2 systems away, you may place 1 active or inactive breach in that system. Anti-Fighter Barrage 6 (x3)"]}]}},leaders:{agent:{name:"Ahk Ravin",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to choose 1 player. That player may swap the position of 2 of their ships in any systems; they may transport units when they swap."},commander:{name:"Ahk Siever",unlockCriteria:"Place a breach token in a system that contains another player'
2s unit.",ability:"At the end of a combat between any players: Gain 1 commodity or convert 1 of your commodities to a trade good."},hero:{name:"Homesick Phantom",unlockCriteria:"Have 3 Scored Objectives",ability:"FRAGMENT REALITY When you produce ships: You may place any of those ships on this card. At the start of a space combat, you may purge this card to place all ships from this card into the active system."}}},"The Deepwrought Scholarate":{abilities:[{name:"RESEARCH TEAM",description:"When ground forces are committed, if your units on the planet are not already coexisting, you may choose for your units to coexist."},{name:"OCEANBOUND",description:"When your units begin coexisting on a planet, gain an ocean card and ready it. Any time you have more ocean cards than there are planets that have your coexisting units, discard ocean cards until you do not."}],promissoryNote:{name:"Share Knowledge",description:"ACTION: Place this card faceup in your play area and gain 1 non-faction, non-unit upgrade technology that the Deepwrought player owns; place that technology on this card. Return that technology to the deck and this card to the Deepwrought player at the end of the status phase."},technologies:[{name:"Radical Advancement",type:I,description:"At the start of the status phase, you may replace one of your non-unit upgrade technologies with a technology of the same color that has exactly 1 more prerequisite."},{name:"Hydrothermal Mining",type:I,description:"At the start of the status phase, gain 1 trade good for each ocean card in play."}],startingTechnologyChoice:{count:2,options:[]},startingUnits:{[_]:3,[j]:1,[W]:1,[V]:4,[Y]:1},units:{flagship:{name:"D.W.S. Luminous",stats:{cost:8,combat:"7 (x2)",move:1,capacity:6},abilities:["Sustain Damage","This ship can move through systems that contain your units, even if other players' units are present: if it would, apply +1 to its move value for each of those systems."]},mech:{name:"Eanautic",stats:{cost:2,combat:6},abilities:["When another player activates this system, if this unit is coexisting, you may move it and any of your infantry on its planet to a planet you control in your home system.","Sustain Damage","Production 1"]},breakthrough:{name:"Visionaria Select",description:"ACTION: Exhaust this card to allow each other player to spend 3 trade goods and give you 1 promissory note. Each player that does may research a non-faction, non-unit upgrade technology. You also gain each technology researched this way."}},leaders:{agent:{name:"Doctor Carrina",unlockCriteria:"At Game Start",ability:"When another player researches a technology: You may exhaust this card to allow that player to ignore 1 prerequisite; if they do, you may place 1 infantry from your reinforcements into coexistence on a non-home planet they control"},commander:{name:"Aello",unlockCriteria:"Have an ocean card in play.",ability:"When another player spends resources to research a technology: That player may reduce the cost by 1, if they do, gain 1 commodity or convert 1 of your commodities to a trade good."},hero:{name:"Ta Zern",unlockCriteria:"Have 3 Scored Objectives",ability:"WAVE FUNCTION COLLAPSE ACTION: Purge this card and a non-unit upgrade technology you own or from your deck; then, purge all cards with the same name owned by other players and in other players' decks. Then, each player that purged a technology they owned researches another technology."}}},"The Embers of Muaat":{abilities:[{name:"STAR FORGE",description:"ACTION: Spend 1 token from your strategy pool to place either 2 fighters or 1 destroyer from your reinforcements in a system that contains 1 or more of your war suns."},{name:"GASHLAI PHYSIOLOGY",description:"Your ships can move through supernovas."}],promissoryNote:{name:"Fires of the Gashlai",description:"ACTION: Remove 1 token from the Muaat player's fleet pool and return it to their reinforcements. Then, gain your war sun unit upgrade technology card. Then, return this card to the Muaat player."},technologies:[{name:"Magmus Reactor",type:Q,description:"Your ships can move into supernovas. After 1 or more of your units use Production in a system that either contains a war sun or is adjacent to a supernova, gain 1 trade good."},{name:"Magmus Reactor \u03a9",type:Q,description:"Your ships can move into supernovas. Each supernova that contains 1 or more of your units gains the PRODUCTION 5 ability as if it were 1 of your units."}],startingTechnologies:["plasma-scoring"],startingUnits:{[_]:4,[V]:2,[G]:1,[Y]:1},units:{flagship:{name:"The Inferno",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","ACTION: Spend 1 token from your strategy pool to place 1 cruiser in this unit's system."]},mech:{name:"Ember Colossus",stats:{cost:2,combat:6},abilities:["When you use your STAR FORGE faction ability in this system or an adjacent system, you may place 1 infantry from your reinfor
2cements with this unit.","Sustain Damage"]},breakthrough:{name:"Stellar Genesis",description:"When you gain this card, place the Avernus planet token into a non-home system that is adjacent to a planet you control; gain control of and ready it. After you move 1 of your war suns out of or through Avernus's system and into a non-home system, you may move the Avernus token with it."},"war-sun":{description:"The Embers of Muaat are the only faction that begins play with the ability to build War Suns. Muaat War Suns are slower than base War Suns, but upgraded Muaat War Suns are faster and cheaper.",tiers:[{name:"Prototype War Sun I",stats:{cost:12,combat:"3 (x3)",move:1,capacity:6},abilities:["Sustain Damage Bombardment 3 (x3) Other players' units in this system lose Planetary Shield."]},{name:"Prototype War Sun II",stats:{cost:10,combat:"3 (x3)",move:3,capacity:6},abilities:["Sustain Damage Bombardment 3 (x3) Other players' units in this system lose Planetary Shield."]}]}},leaders:{agent:{name:"Umbat",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to choose a player; that player may produce up to 2 units that each have a cost of 4 or less in a system that contains one of their war suns or their flagship."},commander:{name:"Magmus",unlockCriteria:"Produce a War Sun",ability:"After you spend a token from your strategy pool: You may gain 1 trade good."},hero:{name:"Adjudicator Ba'al",unlockCriteria:"Have 3 Scored Objectives",ability:"NOVA SEED After you move a war sun into a non-home system other than Mecatol Rex: You may destroy all other players' units in that system and replace that system tile with the Muaat supernova tile. If you do, purge this card and each planet card that corresponds to the replaced system tile."}}},"The Emirates of Hacan":{abilities:[{name:"MASTERS OF TRADE",description:'You do not have to spend a command token to resolve the secondary ability of the "Trade" strategy card.'},{name:"GUILD SHIPS",description:"You can negotiate transactions with players who are not your neighbor."},{name:"ARBITERS",description:"When you are negotiating a transaction, action cards can be exchanged as part of that transaction."}],promissoryNote:{name:"Trade Convoys",description:"ACTION: Place this card face-up in your play area. While this card is in your play area, you may negotiate transactions with players who are not your neighbor. If you activate a system that contains 1 or more of the Hacan player's units, return this card to the Hacan player."},technologies:[{name:"Production Biomes",type:I,description:"ACTION: Exhaust this card and spend 1 token from your strategy pool to gain 4 trade goods and choose 1 other player; that player gains 2 trade goods"},{name:"Quantum Datahub Node",type:R,description:"At the end of the strategy phase, you may spend 1 token from your strategy pool and give another player 3 of your trade goods. If you do, give 1 of your strategy cards to that player and take 1 of their strategy cards."}],startingTechnologies:["sarween-tools","antimass-deflectors"],startingUnits:{[_]:4,[j]:2,[K]:1,[V]:2,[Y]:1},units:{flagship:{name:"Wrath of Kenara",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","After you roll a die during a space combat in this system, you may spend 1 trade good to apply +1 to the result."]},mech:{name:"Pride of Kenara",stats:{cost:2,combat:6},abilities:["This planet's card may be traded as part of a transaction; if you do, move all of your units from this planet to another planet you control.","Sustain Damage"]},breakthrough:{name:"Auto-Factories",description:"When you produce 3 or more non-fighter ships, place 1 command token from your reinforcements into your fleet pool."}},leaders:{agent:{name:"Carth of Golden Sands",unlockCriteria:"At Game Start",ability:"During the action phase: You may exhaust this card to gain 2 commodities or replenish another player's commodities."},commander:{name:"Gila the Silvertongue",unlockCriteria:"Have 10 Trade Goods",ability:"When you cast votes: You may spend any number of trade goods; cast 2 additional votes for each trade good spent."},hero:{name:"Harrugh Gefhara",unlockCriteria:"Have 3 Scored Objectives",ability:"GALACTIC SECURITIES NET When 1 or more of your units use PRODUCTION: You may reduce the cost of each of your units to 0 during this use of PRODUCTION. If you do, purge this card."}}},"The Empyrean":{abilities:[{name:"VOIDBORN",description:"Nebulae do not affect your ships' movement."},{name:"AETHERPASSAGE",description:"After a player activates a system, you may allow that player to move their ships through systems that contain your ships."},{name:"DARK WHISPERS",description:"During setup, take the additional Empyrean faction promissory note; you have 2 faction promissory notes."}],promissoryNote:{name:"Dark Pact",description:"ACTION: Place this card face up in your play area. When you give a number of commodities to the Empyrean player equal to your maximum commodity value, you each gain 1 trade good. If you activate a system that contains 1 or more of the Empyrean player's units, return this card to the Empyrean player. ACTION: Place this card face up in your play area. When you and the Empyrean player cast votes for the same outcome, cast 4 additional votes for that outcome. If you activate a system that contains 1 or more of the Empyrean player's units, return this card to the Empyrean player."},technologies:[{name:"Aetherstream",type:H,description:"After you or one of your neighbors activates a system that is adjacent to an anomaly, you may apply +1 to the move value of all of that player'
2s ships during this tactical action."},{name:"Voidwatch",type:I,description:"After a player moves ships into a system that contains 1 or more of your units, they must give you 1 promissory note from their hand, if able."}],startingTechnologies:["dark-energy-tap"],startingUnits:{[_]:4,[j]:2,[z]:1,[V]:2,[Y]:1},units:{flagship:{name:"Dynamo",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","After any player's unit in this system or an adjacent system uses SUSTAIN DAMAGE, you may spend 2 influence to repair that unit."]},mech:{name:"Watcher",stats:{cost:2,combat:6},abilities:["You may remove this unit from a system that contains or is adjacent to another player's units to cancel an action card played by that player.","Sustain Damage"]},breakthrough:{name:"Void Tether",description:"When you activate a system that contains or is adjacent to a unit or planet you control, you may place or move 1 of your void tether tokens onto a border that system shares with another system; other players do not treat those systems as adjacent to each other unless you allow it."}},leaders:{agent:{name:"Acamar",unlockCriteria:"At Game Start",ability:"After a player moves ships into a system that does not contain any planets: You may exhaust this card; that player gains 1 command token."},commander:{name:"Xuange",unlockCriteria:"Be neighbors with all other players",ability:"After another player moves ships into a system that contains 1 of your command tokens: You may return that token to your reinforcements."},hero:{name:"Conservator Procyon",unlockCriteria:"Have 3 Scored Objectives",ability:"MULTIVERSE SHIFT ACTION: Place 1 frontier token in each system that does not contain any planets and does not already have a frontier token. Then, explore each frontier token that is in a system that contains 1 or more of your ships. Then, purge this card."}}},"The Federation of Sol":{abilities:[{name:"ORBITAL DROP",description:"ACTION: Spend 1 token from your strategy pool to place 2 infantry from your reinforcements on 1 planet you control."},{name:"VERSATILE",description:"When you gain command tokens during the status phase, gain 1 additional command token."}],promissoryNote:{name:"Military Support",description:"At the start of the Sol player's turn: Remove 1 token from the Sol player's strategy pool, if able, and return it to their reinforcements. Then, you may place 2 infantry from your reinforcements on any planet you control. Then, return this card to the Sol player."},startingTechnologies:["antimass-deflectors","neural-motivator"],startingUnits:{[_]:5,[j]:2,[z]:1,[V]:3,[Y]:1},units:{flagship:{name:"Genesis",stats:{cost:8,combat:"5 (x2)",move:1,capacity:12},abilities:["Sustain Damage","At the end of the status phase, place 1 infantry from your reinforcements in this system's space area."]},mech:{name:"ZS Thunderbolt M2",stats:{cost:2,combat:6},abilities:["DEPLOY: After you use your ORBITAL DROP faction ability, you may spend 3 resources to place 1 mech on that planet.","Sustain Damage"]},breakthrough:{name:"Bellum Gloriosum",description:"When you produce a ship that has capacity, you may also produce any combination of ground forces or fighters up to that ship's capacity; they do not count against your PRODUCTION limit."},infantry:{description:"Federation of Sol Infantry are better at combat than standard Infantry, and once upgraded are more likely to be returned to their home system when destroyed.",tiers:[{name:"Spec Ops I",stats:{cost:"1x2",combat:7},abilities:[]},{name:"Spec Ops II",stats:{cost:"1x2",combat:6},abilities:["After this unit is destroyed, roll 1 die. If the result is 5 or greater, place the unit on this card. At the start of your next turn, place each unit that is on this card on a planet you control in your home system."]}]},carrier:{description:"Federation of Sol Carriers have 2 more capacity than regular Carriers, and when upgraded gain the Sustain Damage ability.",tiers:[{name:"Advanced Carrier I",stats:{cost:3,combat:9,move:1,capacity:6},abilities:[]},{name:"Advanced Carrier II",stats:{cost:3,combat:9,move:2,capacity:8},abilities:["Sustain Damage"]}]}},leaders:{agent:{name:"Evelyn Delouis",unlockCriteria:"At Game Start",ability:"At the start of a ground combat round: You may exhaust this card to choose 1 ground force in the active system; that ground force rolls 1 additional die during that combat round."},commander:{name:"Claire Gibson",unlockCriteria:"Control planets that have a combined total of at least 12 resources.",ability:"At the start of a ground combat on a planet you control: You may place 1 infantry from your reinfor
2cements on that planet."},hero:{name:"Jace X. 4th Air Legion",unlockCriteria:"Have 3 Scored Objectives",ability:"HELIO COMMAND ARRAY ACTION: Remove each of your command tokens from the game board and return them to your reinforcements. Then, purge this card."}}},"The Firmament":{abilities:[{name:"PLOTS WITHIN PLOTS",description:"You can score secret objectives already scored by other players, if you fulfill their requirements; This does not count against your secret objective limit or the number you can score in a round. When you score another player's secret objective do not score a victory point. Instead, place a face down plot card into your play area with that player's control token on it."},{name:"PUPPETS OF THE BLADE",description:"If you have at least one plot card in your play area, gain the following ability: ACTION: Purge the Firmaments faction sheet, leaders, planet card, and promissory note, then gain all of the faction components for The Obsidian."}],promissoryNote:{name:"Black Ops",description:"When you receive this card: If you are not The Firmament, the Firmament player may place 1 facedown plot card in their play area with your control token on it. Then, gain 2 command tokens, gain 2 trade goods, and purge this card."},technologies:[{name:"Plane Splitter",type:R,description:"When you gain this card, put The Fracture into play. Flip this card if the Obsidian faction is in play."},{name:"Neural Parasite",type:I,description:"At the start of the status phase, you may place 1 infantry from your reinforcements on a planet you control in your home system. Flip this card if the Obsidian faction is in play."}],startingTechnologyChoice:{count:1,options:["neural-motivator","psychoarchaeology","sarween-tools","scanlink-drone-network"]},startingUnits:{[_]:3,[j]:1,[K]:1,[z]:1,[V]:3,[Y]:1},units:{flagship:{name:"Heaven's Eye",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","If the Active System contains units that belong to a player who has a Control Token on one of your Plots, apply +1 to this ship's move value and repair it at the end of every Combat Round."]},mech:{name:"Viper EX-23",stats:{cost:2,combat:6},abilities:["When ground forces are committed to this planet, you may choose for your units to coexist, if they were not already. Flip this card if your faction becomes the Obsidian.","Sustain Damage"]},breakthrough:{name:"The Sowing",description:"When you gain this card and at the start of the status phase, you may place up to three of your trade goods on this card. Flip this card if you become The Obsidian faction."}},leaders:{agent:{name:"Myru Vos",unlockCriteria:"At Game Start",ability:"When a player moves ships: You may exhaust this card; if you do, SPACE CANNON cannot be used against those ships. If they are not transporting units, they can also move through other players' ships."},commander:{name:"Captain Aroz",unlockCriteria:"Have one plot card in play.",ability:"You may treat planets in systems that contain your ships as if you controlled them for the purpose of scoring secret objectives."},hero:{name:"Sharsiss",unlockCriteria:"Have 3 Scored Objectives",ability:"THE BLADE BECKONS ACTION: Place 1 of your plot cards in play with any other player's control token on it. Then, you may place any player's control token on 1 of your in-play plot cards; one plot cannot have two of the same player's tokens. Then, purge this card."}}},"The Ghosts of Creuss":{abilities:[{name:"QUANTUM ENTANGLEMENT",description:"You treat all systems that contain either an alpha or beta wormhole as adjacent to each other. Game effects cannot prevent you from using this ability."},{name:"SLIPSTREAM",description:"During your tactical actions, apply +1 to the move value of each of your ships that starts its movement in your home system or in a system that contains either an alpha or beta wormhole."},{name:"CREUSS GATE",description:"When you create the game board, place the Creuss Gate (tile 17) where your home system would normally be placed. The Creuss Gate system is not a home system. Then, place your home system (tile 51) in your play area."}],promissoryNote:{name:"Creuss Iff",description:"At the start of your turn during the action phase: Place or move a Creuss wormhole token into either a system that contains a planet you control or a non-home system that does not contain another player'
2s ships. Then, return this card to the Creuss player."},technologies:[{name:"Wormhole Generator",type:H,description:"At the start of the status phase, place or move a Creuss wormhole token into either a system that contains a planet you control or a non-home system that does not contain another player's ships"},{name:"Wormhole Generator \u03a9",type:H,description:"ACTION: Exhaust this card to place or move a Creuss wormhole token into either a system that contains a planet you control or a non-home system that does not contain another player's ships."},{name:"Dimensional Splicer",type:Q,description:"At the start of space combat in a system that contains a wormhole and 1 or more of your ships, you may produce 1 hit and assign it to 1 of your opponent's ships."}],startingTechnologies:["gravity-drive"],startingUnits:{[_]:4,[j]:1,[z]:2,[V]:2,[Y]:1},units:{flagship:{name:"Hil Colish",stats:{cost:8,combat:5,move:1,capacity:3},abilities:["Sustain Damage","This ship's system contains a delta wormhole. During movement, this ship may move before or after your other ships."]},mech:{name:"Icarus Drive",stats:{cost:2,combat:6},abilities:["After any player activates a system, you may remove this unit from the game board to place or move a Creuss wormhole token into this system.","Sustain Damage"]},breakthrough:{name:"Particle Synthesis",description:"Each wormhole in a system that contains your ships gains PRODUCTION 1 as if it were a unit you control. Reduce the combined cost of units you produce in systems that contain wormholes by 1 for each wormhole in that system."}},leaders:{agent:{name:"Emissary Taivra",unlockCriteria:"At Game Start",ability:"After a player activates a system that contains a non-delta wormhole: You may exhaust this card; if you do, that system is adjacent to all other systems that contain a wormhole during this tactical action."},commander:{name:"Sai Seravus",unlockCriteria:"Have units in 3 systems that contain alpha or beta wormholes.",ability:"After your ships move: For each ship that has a capacity value and moved through 1 or more wormholes, you may place 1 fighter from your reinforcements with that ship if you have unused capacity in the active system."},hero:{name:"Riftwalker Meian",unlockCriteria:"Have 3 Scored Objectives",ability:"SINGULARITY REACTOR ACTION: Swap the positions of any 2 systems that contain wormholes or your units, other than the Creuss system and the Wormhole Nexus. Then, purge this card."}}},"The L1Z1X Mindnet":{abilities:[{name:"ASSIMILATE",description:"When you gain control of a planet, replace each PDS and space dock that is on that planet with a matching unit from your reinforcements."},{name:"HARROW",description:"At the end of each round of ground combat, your ships in the active system may use their Bombardment abilities against your opponent's ground forces on the planet."}],promissoryNote:{name:"Cybernetic Enhancements",description:"At the start of your turn: Remove 1 token from the L1Z1X player's strategy pool and return it to his reinforcements. Then, place 1 command token from your reinforcements in your strategy pool. Then, return this card to the L1Z1X player. When you gain command tokens during the status phase: Gain 1 additional command token. Then, return this card to the L1Z1X player."},technologies:[{name:"Inheritance Systems",type:R,description:"You may exhaust this card and spend 2 resources when you research a technology; ignore all of that technology's prerequisites."}],startingTechnologies:["plasma-scoring","neural-motivator"],startingUnits:{[_]:5,[j]:1,[W]:1,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"[0.0.1]",stats:{cost:8,combat:"5 (x2)",move:1,capacity:5},abilities:["Sustain Damage","During a space combat, hits produced by this ship and by your dreadnoughts in this system must be assigned to non-fighter ships if able."]},mech:{name:"Annihilator",stats:{cost:2,combat:6},abilities:["While not participating in ground combat, this unit can use its BOMBARDMENT ability on planets in its system as if it were a ship.","Sustain Damage","Bombardment 8"]},breakthrough:{name:"Fealty Uplink",description:"When you gain control of a planet, place infantry from your reinfor
2cements equal to that planet's influence value on that planet."},dreadnought:{description:"L1Z1X Dreadnoughts have a greater capacity than regular Dreadnoughts, and once upgraded have more effective bombardment.",tiers:[{name:"Super-Dreadnought I",stats:{cost:4,combat:5,move:1,capacity:2},abilities:["Sustain Damage Bombardment 5"]},{name:"Super-Dreadnought II",stats:{cost:4,combat:4,move:2,capacity:2},abilities:['Sustain Damage Bombardment 4 This unit cannot be destroyed by "Direct Hit" action cards.']}]}},leaders:{agent:{name:"I48S",unlockCriteria:"At Game Start",ability:"After a player activates a system: You may exhaust this card to allow that player to replace 1 of their infantry in the active system with 1 mech from their reinforcements."},commander:{name:"2RAM",unlockCriteria:"Have 4 dreadnoughts on the Board",ability:"Units that have PLANETARY SHIELD do not prevent you from using Bombardment."},hero:{name:"The Helmsman",unlockCriteria:"Have 3 Scored Objectives",ability:"DARK SPACE NAVIGATION ACTION: Choose 1 system that does not contain other players' ships; you may move your flagship and any number of your dreadnoughts from other systems into the chosen system. Then, purge this card."}}},"The Mahact Gene-sorcerers":{abilities:[{name:"EDICT",description:"When you win a combat, place 1 command token from your opponent's reinforcements in your fleet pool if it does not already contain 1 of that player's tokens; other player's tokens in your fleet pool increase your fleet limit but cannot be redistributed."},{name:"IMPERIA",description:"While another player's command token is in your fleet pool, you can use the ability of that player's commander, if it is unlocked."},{name:"HUBRIS",description:'During setup, purge your " Alliance " promissory note. Other players cannot give you their "Alliance" promissory note.'}],promissoryNote:{name:"Scepter of Dominion",description:"At the start of the strategy phase: Choose 1 non-home system that contains your units; each other player who has a token on the Mahact player's command sheet places a token from their reinforcements in that system. Then, return this card to the Mahact player."},technologies:[{name:"Genetic Recombination",type:I,description:"You may exhaust this card before a player casts votes; that player must cast at least 1 vote for an outcome of your choice or remove 1 token from their fleet pool and return it to their reinforcements."}],startingTechnologies:["predictive-intelligence","bio-stims"],startingUnits:{[_]:3,[j]:1,[K]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Arvicon Rex",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","During combat against an opponent whose command token is not in your fleet pool, apply +2 to the results of this unit's combat rolls."]},mech:{name:"Starlancer",stats:{cost:2,combat:6},abilities:["After a player whose command token is in your fleet pool activates this system, you may spend their token from your fleet pool to end their turn; they gain that token.","Sustain Damage"]},breakthrough:{name:"Vaults of the Heir",description:"ACTION: Exhaust this card and purge 1 of your technologies to gain 1 relic."},infantry:{description:"Mahact Infantry turn into commodities or trade goods when they are destroyed.",tiers:[{name:"Crimson Legionnaire I",stats:{cost:"1x2",combat:8},abilities:["After this unit is destroyed, gain 1 commodity or convert 1 of your commodities to a trade good."]},{name:"Crimson Legionnaire II",stats:{cost:"1x2",combat:7},abilities:["After this unit is destroyed, gain 1 commodity or convert 1 of your commodities to a trade good. Then, place the unit on this card. At the start of your next turn, place each unit that is on this card on a planet you control in your home system."]}]}},leaders:{agent:{name:"Jae Mir Kan",unlockCriteria:"At Game Start",ability:"When you would spend a command token during the secondary ability of a strategic action: You may exhaust this card to remove 1 of the active player's command tokens from the board and use it instead."},commander:{name:"Il Na Viroset",unlockCriteria:"Have 2 other factions' command tokens in your fleet pool.",ability:"During your tactical actions, you can activate systems that contain your command tokens. If you do, return both command tokens to your reinfor
2cements and end your turn."},hero:{name:"Airo Shir Aur",unlockCriteria:"Have 3 Scored Objectives",ability:"BENEDICTION ACTION: Move all units in the space area of any system to an adjacent system that contains a different player's ships. Space Combat is resolved in that system; neither player can retreat or resolve abilities that would move their ships. Then, purge this card."}}},"The Mentak Coalition":{abilities:[{name:"AMBUSH",description:"At the start of a space combat, you may roll 1 die for each of up to 2 of your cruisers or destroyers in the system. For each result equal to or greater than that ship's combat value, produce 1 hit; your opponent must assign it to 1 of their ships."},{name:"PILLAGE",description:"After 1 of your neighbors gains trade goods or resolves a transaction, if they have 3 or more trade goods, you may take 1 of their trade goods or commodities."}],promissoryNote:{name:"Promise of Protection",description:"ACTION: Place this card face-up in your play area. While this card is in your play area, the Mentak player cannot use their Pillage faction ability against you. If you activate a system that contains 1 or more of the Mentak player's units, return this card to the Mentak player."},technologies:[{name:"Salvage Operations",type:R,description:"After you win or lose a space combat, gain 1 trade good; if you won the combat, you may also produce 1 ship in that system of any ship type that was destroyed during the combat"},{name:"Mirror Computing",type:R,description:"When you spend trade goods, each trade good is worth 2 resources or influence instead of 1"}],startingTechnologies:["plasma-scoring","sarween-tools"],startingUnits:{[_]:4,[j]:1,[K]:2,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Fourth Moon",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Other players' ships in this system cannot use Sustain Damage."]},mech:{name:"Moll Terminus",stats:{cost:2,combat:6},abilities:["Other players' ground forces on this planet cannot use SUSTAIN DAMAGE.","Sustain Damage"]},breakthrough:{name:"The Table's Grace",description:"If you have the Cruiser II unit upgrade technology, flip this card and place it on top of Cruiser II."}},leaders:{agent:{name:"Suffi An",unlockCriteria:"At Game Start",ability:"After the PILLAGE faction ability is used against another player: You may exhaust this card; if you do, you and that player each draw 1 action card."},commander:{name:"S'Ula Mentarion",unlockCriteria:"Have 4 cruisers on the game board",ability:"After you win a space combat: You may force your opponent to give you 1 promissory note from their hand."},hero:{name:"Ipswitch, Loose Cannon",unlockCriteria:"Have 3 Scored Objectives",ability:"SLEEPER CELL At the start of space combat that you are participating in: You may purge this card; if you do, for each other player's ship that is destroyed during this combat, place 1 ship of that type from your reinforcements in the active system."}}},"The Naalu Collective":{abilities:[{name:"TELEPATHIC",description:'At the end of the strategy phase, place the Naalu "0" token on your strategy card; you are first in initiative order.'},{name:"FORESIGHT",description:"After another player moves ships into a system that contains 1 or more of your ships, you may place 1 token from your strategy pool in an adjacent system that does not contain another player's ships; move your ships from the active system into that system."}],promissoryNote:{name:"Gift of Prescience",description:'At the end of the strategy phase: Place this card face-up in your play area and place the Naalu "0" token on your strategy card; you are first in the initiative order. The Naalu player cannot use their TELEPATHIC faction ability during this game round. Return this card to the Naalu player at the end of the status phase.'},technologies:[{name:"Neuroglaive",type:I,description:"After another player activates a system that contains 1 or more of your ships, that player removes 1 token from their fleet pool and returns it to their reinforcements."}],startingTechnologies:["sarween-tools","neural-motivator"],startingUnits:{[_]:4,[j]:1,[K]:1,[z]:1,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Matriarch",stats:{cost:8,combat:"9 (x2)",move:1,capacity:6},abilities:["Sustain Damage","During an invasion in this system, you may commit fighters to planets as if they were ground forces. When combat ends, return those units to the space area."]},mech:{name:"Iconoclast",stats:{cost:2,combat:6},abilities:["During combat against an opponent who has at least 1 relic fragment, apply +2 to the results of this unit's combat rolls.","Sustain Damage"]},breakthrough:{name:"Mindsieve",description:"When you would resolve the secondary ability of another player'
2s strategy card, you may give them a promissory note to resolve it without spending a command token."},fighter:{description:"Naalu Fighters are stronger than standard Fighters. When upgraded, they gain further improved combat and only count as 1/2 toward the fleet limit as opposed to 1.",tiers:[{name:"Hybrid Crystal Fighter I",stats:{cost:"1x2",combat:8},abilities:[]},{name:"Hybrid Crystal Fighter II",stats:{cost:"1x2",combat:7,move:2},abilities:["This unit may move without being transported. Each fighter in excess of your ships' capacity counts as 1/2 of a ship against your fleet pool."]}]}},leaders:{agent:{name:"Z'eu",unlockCriteria:"At Game Start",ability:"After an agenda is revealed: You may exhaust this card to look at the top card of the agenda deck. Then, you may show that card to 1 other player."},commander:{name:"M'aban",unlockCriteria:"Have 12 fighters on the game board",ability:"You may produce 1 additional fighter for their cost; these additional units do not count against your production limit."},hero:{name:"The Oracle",unlockCriteria:"Have 3 Scored Objectives",ability:"C-RADIUM GEOMETRY At the end of the status phase: You may force each other player to give you 1 promissory note from their hand. If you do, purge this card."}}},"The Naaz-Rokha Alliance":{abilities:[{name:"DISTANT SUNS",description:"When you explore a planet that contains 1 of your mechs, you may draw 1 additional card; choose 1 to resolve and discard the rest."},{name:"FABRICATION",description:"ACTION: Either purge 2 of your relic fragments of the same type to gain 1 relic; or purge 1 of your relic fragments to gain 1 command token."}],promissoryNote:{name:"Black Market Forgery",description:"ACTION: Purge 2 of your relic fragments of the same type to gain 1 relic. Then, return this card to the Naaz-Rokha player."},technologies:[{name:"Supercharge",type:Q,description:"At the start of a combat round, you may exhaust this card to apply +1 to the result of each of your unit's combat rolls during this combat round."},{name:"Pre-Fab Arcologies",type:I,description:"After you explore a planet, ready that planet."}],startingTechnologies:["psychoarchaeology","ai-development-algorithm"],startingUnits:{[M]:1,[_]:3,[j]:2,[z]:1,[V]:2,[Y]:1},units:{flagship:{name:"Visz el Vir",stats:{cost:8,combat:"9 (x2)",move:1,capacity:4},abilities:["Sustain Damage","Your mechs in this system roll 1 additional die during combat."]},mech:{name:"Eidolon",stats:{cost:2,combat:"6 (x2)"},abilities:["If this unit is in the space area of the active system at the start of a space combat, flip this card.","Sustain Damage","(This card begins the game with this side face up)"]},breakthrough:{name:"Absolute Synergy",description:"When you have 4 mechs in the same system, you may return 3 of those mechs to your reinforcements to flip this card and place it on top of your mech card."}},leaders:{agent:{name:"Garv and Gunn",unlockCriteria:"At Game Start",ability:"At the end of a player's turn: You may exhaust this card to allow that player to explore 1 of their planets."},commander:{name:"Dart and Tai",unlockCriteria:"Have 3 mechs in 3 systems",ability:"After you gain control of a planet that was controlled by another player: You may explore that planet."},hero:{name:"Hesh and Prit",unlockCriteria:"Have 3 Scored Objectives",ability:"PERFECT SYNTHESIS ACTION: Gain 1 relic and perform the secondary ability of up to 2 readied or unchosen strategy cards; during this action, spend command tokens from your reinforcements instead of your strategy pool. Then, purge this card."}}},"The Nekro Virus":{abilities:[{name:"GALACTIC THREAT",description:"You cannot vote on agendas. Once per agenda phase, after an agenda is revealed, you may predict aloud the outcome of that agenda. If your prediction is correct, gain 1 technology that is owned by a player who voted how you predicted."},{name:"TECHNOLOGICAL SINGULARITY",description:"Once per combat, after 1 of your opponent's units is destroyed, you may gain 1 technology that is owned by that player."},{name:"PROPAGATION",description:"You cannot research technology. When you would research a technology, gain 3 command tokens instead."}],promissoryNote:{name:"Antivirus",description:"At the start of a combat: Place this card face-up in your play area. While this card is in your play area, the Nekro player cannot use their TECHNOLOGICAL SINGULARITY faction ability against you. If you activate a system that contains 1 or more of the Nekro player's units, return this card to the Nekro player."},technologies:[{name:"Valefar Assimilator X",type:P,description:"When you would gain another player'
2s technology using 1 of your faction abilities, you may place the \"X\" assimilator token on a faction technology owned by that player instead. While that token is on a technology, this card gains that technology's text. You cannot place an assimilator token on technology that already has an assimilator token."},{name:"Valefar Assimilator Y",type:P,description:'When you would gain another players technology using 1 of your faction abilities, you may place the "Y" assimilator token on a faction technology owned by that player instead. While that token is on a technology, this card gains that technology\'s text. You cannot place an assimilator token on technology that already has an assimilator token.'}],startingTechnologies:["dacxive-animators"],startingUnits:{[_]:2,[j]:1,[K]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"The Alastor",stats:{cost:8,combat:"9 (x2)",move:1,capacity:3},abilities:["Sustain Damage","At the start of a space combat, choose any number of your ground forces in this system to participate in that combat as if they were ships."]},mech:{name:"Mordred",stats:{cost:2,combat:6},abilities:['During combat against an opponent who has an "X" or "Y" token on 1 or more of their technologies, apply +2 to the result of each of this unit\'s combat rolls.',"Sustain Damage"]},breakthrough:{name:"Valefar Assimilator Z",description:"When you would gain another player's technology using one of your faction abilities, you may instead place one of your \"Z\" assimilator tokens on that player's faction sheet. Your flagship gains the text abilities of that faction's flagship in addition to its own."}},leaders:{agent:{name:"Nekro Malleon",unlockCriteria:"At Game Start",ability:"During the action phase: You may exhaust this card to choose a player; that player may discard 1 action card or spend 1 command token from their command sheet to gain 2 trade goods."},commander:{name:"Nekro Acidos",unlockCriteria:'Own 3 technologies. A "Valefar Assimilator" technology counts only if its X or Y token is on a technology',ability:"After you gain a technology: You may draw 1 action card."},hero:{name:"UNIT.DSGN. FLAYESH",unlockCriteria:"Have 3 Scored Objectives",ability:"POLYMORPHIC ALGORITHM ACTION: Choose a planet that has a technology specialty in a system that contains your units. Destroy any other player's units on that planet. Gain trade goods equal to that planet's combined resource and influence values and gain 1 technology that matches the specialty of that planet. Then, purge this card."}}},"The Nomad":{abilities:[{name:"THE COMPANY",description:"During setup, take the 2 additional Nomad faction agents and place them next to your faction sheet; you have 3 agents."},{name:"FUTURE SIGHT",description:"During the Agenda phase, after an outcome that you voted for or predicted is resolved, gain 1 trade good."}],promissoryNote:{name:"The Cavalry",description:"At the start of a space combat against a player other than the Nomad: During this combat, treat 1 of your non-fighter ships as if it has the SUSTAIN DAMAGE ability, combat value, and ANTI-FIGHTER BARRAGE value of the Nomad's flagship. Return this card to the Nomad player at the end of this combat."},technologies:[{name:"Temporal Command Suite",type:R,description:"After any player's agent becomes exhausted, you may exhaust this card to ready that agent; if you ready another player's agent, you may perform a transaction with that player."}],startingTechnologies:["sling-relay"],startingUnits:{[D]:1,[_]:4,[j]:1,[z]:1,[V]:3,[Y]:1},units:{flagship:{name:"Memoria",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Anti-Fighter Barrage 8 (x3)","You may treat this unit as if it were adjacent to systems that contain one or more of your mechs."]},mech:{name:"Quantum Manipulator",stats:{cost:2,combat:6},abilities:["While this unit is in a space area during combat, you may use its SUSTAIN DAMAGE ability to cancel a hit that is produced against your ships in this system.","Sustain Damage"]},breakthrough:{name:"Thunder's Paradox",description:"At the start of any player's turn, you may exhaust 1 of your agents to ready any other agent."}},leaders:{agent:{name:"Artuno the Betrayer",unlockCriteria:"At Game Start",ability:"When you gain trade goods from the supply: You may exhaust this card to place an equal number of trade goods on this card. When this card readies, gain the trade goods on this card."},agent2:{name:"Field Marshal Mercer",unlockCriteria:"At Game Start",ability:"At the end of a player's turn: You may exhaust this card to allow that player to remove up to 2 of their ground forces from the game board and place them on planets they control in the active system."},agent3:{name:"The Thundarian",unlockCriteria:"At Game Start",ability:'After the "Roll Dice" step of combat: You may exhaust this card. If you do, hits are not assigned to either players\' units. Return to the start of this combat round\'s "Roll Dice" step.'},commander:{name:"Navarch Feng",unlockCriteria:"Have 1 scored secret objective",ability:"You can produce your flagship without spending resources."},hero:{name:"Ahk-Syl Siven",unlockCriteria:"Have 3 Scored Objectives",ability:"PROBABILITY MATRIX ACTION: Place this card near the game board; your flagship and units it transports can move out of systems that contain your command tokens during this game roun
2d. At the end of that game round, purge this card."}}},"The Ral Nel Consortium":{abilities:[{name:"SURVIVAL INSTINCT",description:"After another player activates a system that contains your ships, you may move up to 2 of your ships into the active system from adjacent systems that do not contain your command tokens."},{name:"MINIATURIZATION",description:"Your structures can be transported by any ship; this does not require or count against capacity. While your structures are in the space area, they cannot use their unit abilities. At the end of your tactical actions, you may place your structures that are in space areas onto planets you control in their respective systems."}],promissoryNote:{name:"Nano-Link Permit",description:"After you activate a system: You may move your structures from adjacent systems that do not contain your command tokens onto planets you control in the active system. Then, return this card to the Ral Nel player."},technologies:[{name:"Nanomachines",type:Q,description:"ACTION: Exhaust this card to place 1 PDS on a planet you control. ACTION: Exhaust this card to repair all of your damaged units. ACTION: Exhaust this card and discard 1 action card to draw 1 action card."}],startingTechnologyChoice:{count:1,options:["neural-motivator","psychoarchaeology","plasma-scoring","ai-development-algorithm"]},startingUnits:{[_]:4,[j]:1,[z]:1,[W]:1,[V]:2,[q]:2,[Y]:1},units:{flagship:{name:"Last Dispatch",stats:{cost:8,combat:"8 (x2)",move:2,capacity:4},abilities:["Sustain Damage","When this unit retreats, you may destroy 1 ship in the active system that does not have SUSTAIN DAMAGE."]},mech:{name:"Alarum",stats:{cost:2,combat:6},abilities:["At the end of a round of combat on this planet, you may move up to 2 of your ground forces to this planet from planets in adjacent systems.","Sustain Damage"]},breakthrough:{name:"Data Skimmer",description:"During the action phase, if you have not passed, when other players would discard action cards, they are placed on this card instead. When you pass, take 1 action card from this card and discard the rest."},destroyer:{description:"Ral Nel Destroyers are able to use the SPACE CANNON ability of structures they carry (via their Miniaturization faction ability). They are also faster than regular Destroyers.",tiers:[{name:"Linkship I",stats:{cost:1,combat:9,move:3},abilities:["This unit can use the SPACE CANNON ability of one of your structures in its space area; each structure can only be triggered once. Anti-Fighter Barrage 9 (x2)"]},{name:"Linkship II",stats:{cost:1,combat:8,move:4},abilities:["This unit can use the SPACE CANNON ability of one of your structures in its space area; each linkship can trigger the same structure. Anti-Fighter Barrage 6 (x3)"]}]}},leaders:{agent:{name:"Kan Kip Rel",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to draw 2 action cards; give 1 of those cards to another player."},commander:{name:"Watchful Ojz",unlockCriteria:"Be the last person to pass during the Action Phase",ability:"When you declare a retreat: Immediately retreat up to 2 of your ships from the active system to an adjacent system that does not contain another player's ships. Place a command token from your reinforcements into that system."},hero:{name:"Director Nel",unlockCriteria:"Have 3 Scored Objectives",ability:"SIGNAL INTRUSION After the last player passes: You may choose to no longer be passed; if you do, gain 2 command tokens, draw 1 action card, and purge this card."}}},"The Titans of Ul":{abilities:[{name:"TERRAGENESIS",description:"After you explore a planet that does not have a sleeper token, you may place or move 1 sleeper token onto that planet."},{name:"AWAKEN",description:"After you activate a system that contains 1 or more of your sleeper tokens, you may replace each of those tokens with 1 PDS from your reinforcements."},{name:"COALESCENCE",description:'If your flagship or your AWAKEN faction ability places your units into the same space area or onto the same planet as another player\'s units, your units must participate in combat during " Space Combat " or " Ground Combat " steps.'}],promissoryNote:{name:"Terraform",description:"ACTION: Attach this card to a non-home planet you control other than Mecatol Rex. Its resource and influence values are each increased by 1 and it is treated as having all 3 planet traits (Cultural, Hazardous, and Industrial)."},startingTechnologies:["antimass-deflectors","scanlink-drone-network"],startingUnits:{[_]:3,[K]:2,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Ouranos",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","DEPLOY: After you activate a system that contains 1 or more of your PDS, you may replace 1 of those PDS with this unit."]},mech:{name:"Hecatoncheires",stats:{cost:2,combat:6},abilities:["DEPLOY: When you would place a PDS on a planet, you may place 1 mech and 1 infantry on that planet instead.","Sustain Damage"]},breakthrough:{name:"Slumberstate Computing",description:"When COALESCENCE results in a ground combat, if you commit no other units, you may choose for your units to coexist instead. During the status phase, for each player you are coexisting with, you and that player each draw 1 additional action card. Other players may allow you to place a sleeper token on a planet they control."},cruiser:{description:"Titans of Ul Cruisers start with capacity and when upgraded gain the Sustain Damage ability.",tiers:[{name:"Saturn Engine I",stats:{cost:2,combat:7,move:2,capacity:1},abilities:[]},{name:"Saturn Engine II",stats:{cost:2,combat:6,move:3,capacity:2},abilities:["Sustain Damage"]}]},pds:{description:"Titans of Ul PDS can participate in Ground Combat and have a Production value.",tiers:[{name:"Hel-Titan I",stats:{combat:7},abilities:["Planetary Shield Space Cannon 6 Sustain Damage Production 1 This unit is treated as both a structure and a ground force. It cannot be transported."]},{name:"Hel-Titan II",stats:{combat:6},abilities:["Planetary Shield Space Cannon 5 Sustain Damage Production 1 This unit is treated as both a structure and a ground force. It cannot be transported. You may use this unit's SPACE CANNON against ships that are adjacent to this unit's system."]}]}},leaders:{agent:{name:"Tellurian",unlockCriteria:"At Game Start",ability:"When a hit is produced against a unit: You may exhaust this card to cancel that hit."},commander:{name:"Tungstantus",unlockCriteria:"Have 5 structures on the game board",ability:"When 1 or more of your units use PRODUCTION: You may gain 1 trade good."},hero:{name:"Ul The Progenitor",unlockCriteria:"Have 3 Scored Objectives",ability:"GEOFORM ACTION: Ready Elysium and attach this card to it. Its resource and influence values are each increased by 3, and it gains the SPACE CANNON 5 (x3) ability as if it were a unit."}}},"The Universities of Jol-Nar":{abilities:[{name:"FRAGILE",description:"Apply -1 to the result of each of your unit's combat rolls."}
2,{name:"BRILLIANT",description:'When you spend a command token to resolve the secondary ability of the "Technology" strategy card, you may resolve the primary ability instead.'},{name:"ANALYTICAL",description:"When you research a technology that is not a unit upgrade technology, you may ignore 1 prerequisite."}],promissoryNote:{name:"Research Agreement",description:"After the Jol-Nar player researches a technology that is not a faction technology: Gain that technology. Then, return this card to the Jol-Nar player."},technologies:[{name:"E-Res Siphons",type:R,description:"After another player activates a system that contains 1 or more of your ships, gain 4 trade goods."},{name:"Spatial Conduit Cylinder",type:H,description:"You may exhaust this card after you activate a system that contains 1 or more of your units; that system is adjacent to all other systems that contain 1 or more of your units during this activation."}],startingTechnologies:["antimass-deflectors","sarween-tools","neural-motivator","plasma-scoring"],startingUnits:{[_]:2,[j]:2,[W]:1,[V]:1,[q]:2,[Y]:1},units:{flagship:{name:"J.N.S. Hylarim",stats:{cost:8,combat:"6 (x2)",move:1,capacity:3},abilities:["Sustain Damage","When making a combat roll for this ship, each result of 9 or 10, before applying modifiers, produces 2 additional hits."]},mech:{name:"Shield Paling",stats:{cost:2,combat:6},abilities:["Your infantry on this planet are not affected by your FRAGILE faction ability.","Sustain Damage"]},breakthrough:{name:"Specialized Compounds",description:'When you research technology using the "Technology" strategy card, you may exhaust a planet that has a technology specialty instead of spending resources; if you do you must research a technology of that colour.'}},leaders:{agent:{name:"Doctor Sucaban",unlockCriteria:"At Game Start",ability:"When a player spends resources to research: You may exhaust this card to allow that player to remove any number of their infantry from the game board. For each unit removed, reduce the resources spent by 1."},commander:{name:"Ta Zern",unlockCriteria:"Own 8 technologies",ability:"After you roll dice for a unit ability: You may reroll any of those dice."},hero:{name:"Rin, The Master's Legacy",unlockCriteria:"Have 3 Scored Objectives",ability:"GENETIC MEMORY ACTION: For each non-unit upgrade technology you own, you may replace that technology with any technology of the same color from the deck. Then, purge this card."}}},"The Vuil'raith Cabal":{abilities:[{name:"DEVOUR",description:"Capture your opponent's non-structure units that are destroyed during combat."},{name:"AMALGAMATION",description:"When you produce a unit, you may return 1 captured unit of that type to produce that unit without spending resources."},{name:"RIFTMELD",description:"When you research a unit upgrade technology, you may return 1 captured unit of that type to ignore all of the technology's prerequisites."}],promissoryNote:{name:"Crucible",description:"After you activate a system: Your ships do not roll for gravity rifts during this movement; apply an additional +1 to the move values of your ships that would move out of or through a gravity rift instead. Then, return this card to the Vuil'raith player."},technologies:[{name:"Vortex",type:Q,description:"ACTION: Exhaust this card to choose another player's non-structure unit in a system that is adjacent to 1 or more of your space docks. Capture 1 unit of that type from that player's reinforcements"}],startingTechnologies:["self-assembly-routines"],startingUnits:{[_]:3,[j]:1,[K]:1,[W]:1,[V]:3,[Y]:1},units:{flagship:{name:"The Terror Between",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Bombardment 5","Capture all other non-structure units that are destroyed in this system, including your own."]},mech:{name:"Reanimator",stats:{cost:2,combat:6},abilities:["When your infantry on this planet are destroyed, place them on your faction sheet; those units are captured.","Sustain Damage"]},breakthrough:{name:"Al'Raith Ix Ianovar",description:"This breakthrough causes The Fracture to enter play without a roll, if it is not already in play. After this card enter
2s play, move up to 2 ingress tokens into systems that contain gravity rifts. Apply +1 to the Move value of each of your ships that start their movement in The Fracture."},"space-dock":{description:"Vuil'Raith Dimensional Tears are Gravity Rifts, meaning they give +1 movement to all ships moving out of their system. These gravity rifts are represented by a token placed under the space dock. If a space dock that has a dimensional tear token under it is destroyed, the dimensional tear token is immediately removed from the board.",tiers:[{name:"Dimensional Tear I",stats:{},abilities:["This system is a gravity rift; your ships do not roll for this gravity rift. Place a dimensional tear token beneath this unit as a reminder. Up to 6 fighters in this system do not count against your ships' capacity."]},{name:"Dimensional Tear II",stats:{},abilities:["This system is a gravity rift; your ships do not roll for this gravity rift. Place a dimensional tear token beneath this unit as a reminder. Up to 12 fighters in this system do not count against your ships' capacity."]}]}},leaders:{agent:{name:"The Stillness of Stars",unlockCriteria:"At Game Start",ability:"After another player replenishes commodities: You may exhaust this card to convert their commodities to trade goods and capture 1 unit from their reinforcements that has a cost equal to or lower than their commodity value."},commander:{name:"That Which Molds Flesh",unlockCriteria:"Have units in 3 Gravity Rifts",ability:"When you produce fighter or infantry units: Up to 2 of those units do not count against your PRODUCTION limit."},hero:{name:"It Feeds on Carrion",unlockCriteria:"Have 3 Scored Objectives",ability:"DIMENSIONAL ANCHOR ACTION: Each other player rolls a die for each of their non-fighter ships that are in or adjacent to a system that contains a dimensional tear; on a 1-3, capture that unit. If this causes a player's ground forces or fighters to be removed, also capture those units. Then, purge this card."}}},"The Winnu":{abilities:[{name:"BLOOD TIES",description:"You do not have to spend influence to remove the custodians token from Mecatol Rex."},{name:"RECLAMATION",description:"After you resolve a tactical action during which you gained control of Mecatol Rex, you may place 1 PDS and 1 space dock from your reinforcements on Mecatol Rex."}],promissoryNote:{name:"Acquiescence",description:"At the end of the strategy phase: Exchange 1 of your strategy cards with a strategy card that was chosen by the Winnu player. Then, return this card to the Winnu player. When the Winnu player resolves a strategic action: You do not have to spend or place a command token to resolve the secondary ability of that strategy card. Then, return this card to the Winnu player"},technologies:[{name:"Lazax Gate Folding",type:H,description:"During your tactical actions, if you do not control Mecatol Rex, treat its system as if it contains both an alpha and beta wormhole. ACTION: If you control Mecatol Rex, exhaust this card to place 1 infantry from your reinforcements on Mecatol Rex."},{name:"Hegemonic Trade Policy",type:R,description:"Exhaust this card when 1 or more of your units use PRODUCTION; swap the resource and influence values of 1 planet you control during that use of Production"}],startingTechnologyChoice:{count:1,options:["antimass-deflectors","dark-energy-tap","neural-motivator","psychoarchaeology","sarween-tools","scanlink-drone-network","plasma-scoring","ai-development-algorithm"]},startingUnits:{[_]:2,[j]:1,[K]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Salai Sai Corian",stats:{cost:8,combat:7,move:1,capacity:3},abilities:["Sustain Damage","When this unit makes a combat roll, it rolls a number of dice equal to the number of your opponent's non-fighter ships in this system."]},mech:{name:"Reclaimer",stats:{cost:2,combat:6},abilities:["After you resolve a tactical action where you gained control of this planet, you may place 1 PDS or 1 Space Dock from your reinforcements on this planet.","Sustain Damage"]},breakthrough:{name:"Imperator",description:"Apply +1 to the results of each of your unit's combat rolls for each \"Support for the Throne\" in your opponent's play area. After you activate a system that contains a legendary planet, apply +1 to the move value of 1 of your ships during this tactical action."}},leaders:{agent:{name:"Berekar Berekon",unlockCriteria:"At Game Start",ability:"When 1 or more of a player's units use PRODUCTION: You may exhaust this card to reduce the combined cost of the produced units by 2."},commander:{name:"Rickar Rickani",unlockCriteria:"Control Mecatol Rex or enter into a combat in the Mecatol Rex system.",ability:"During combat: Apply +2 to the result of each of your unit's combat rolls in the Mecatol Rex system, your home system, and each system that contains a legendary planet"},hero:{name:"Mathis Mathinus",unlockCriteria:"Have 3 Scored Objectives",ability:"IMPERIAL SEAL ACTION: Perform the primary ability of any strategy card. Then, cho
2ose any number of other players. Those players may perform the secondary ability of that strategy card. Then, purge this card."}}},"The Xxcha Kingdom":{abilities:[{name:"PEACE ACCORDS",description:'After you resolve the primary or secondary ability of the "Diplomacy" strategy card, you may gain control of 1 planet other than Mecatol Rex that does not contain any units and is in a system that is adjacent to a planet you control.'},{name:"QUASH",description:"When an agenda is revealed, you may spend 1 token from your strategy pool to discard that agenda and reveal 1 agenda from the top of the deck. Players vote on this agenda instead."}],promissoryNote:{name:"Political Favor",description:"When an agenda is revealed: Remove 1 token from the Xxcha player's strategy pool and return it to their reinforcements. Then, discard the revealed agenda and reveal 1 agenda from the top of the deck. Players vote on this agenda instead. Then, return this card to the Xxcha player."},technologies:[{name:"Nullification Field",type:R,description:"After another player activates a system that contains 1 or more of your ships, you may exhaust this card and spend 1 token from your strategy pool; immediately end that player's turn."},{name:"Instinct Training",type:I,description:"You may exhaust this card and spend 1 token from your strategy pool when another player plays an action card; cancel that action card."}],startingTechnologies:["graviton-laser-system"],startingUnits:{[_]:4,[j]:1,[K]:2,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Loncara Ssodu",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage","Space Cannon 5 (x3)","You may use this unit's SPACE CANNON against ships that are in adjacent systems."]},mech:{name:"Indomitus",stats:{cost:2,combat:6},abilities:["You may use this unit's Space Cannon ability against ships that are in adjacent systems.","Sustain Damage","Space Cannon 8"]},breakthrough:{name:"Archon's Gift",description:"You can spend influence as if it were resources. You can spend resources as if it were influence."}},leaders:{agent:{name:"Ggrocuto Rinn",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to ready any planet; if that planet is in a system that is adjacent to a planet you control, you may remove 1 infantry from that planet and return it to its reinforcements."},commander:{name:"Elder Qanoj",unlockCriteria:"Control planets that have a combined value of at least 12 influence",ability:"Each planet you exhaust to cast votes provides 1 additional vote. Game effects cannot prevent you from voting on an agenda."},hero:{name:"Xxekir Grom",unlockCriteria:"Have 3 Scored Objectives",ability:"POLITICAL DATA NEXUS ACTION: You may discard 1 law from play. Look at the top 5 cards of the agenda deck. Choose 2 to reveal, and resolve each as if you had cast 1 vote for an outcome of your choice; discard the rest. Other players cannot resolve abilities during this action. Then, purge this card."}}},"The Yin Brotherhood":{abilities:[{name:"INDOCTRINATION",description:"At the start of a ground combat, you may spend 2 influence to replace 1 of your opponent's participating infantry with 1 infantry from your reinforcements."},{name:"DEVOTION",description:"After each space battle round, you may destroy 1 of your cruisers or destroyers in the active system to produce 1 hit and assign it to 1 of your opponent's ships in that system."}],promissoryNote:{name:"Greyfire Mutagen",description:"After a system is activated: The Yin player cannot use faction abilities or faction technology during this tactical action. Then, return this card to the Yin player. At the start of a ground combat against 2 or more ground forces that are not controlled by the Yin player: Replace 1 of your opponent's infantry with 1 infantry from your reinforcements. Then, return this card to the Yin player."},technologies:[{name:"Impulse Core",type:R,description:"At the start of a space combat, you may destroy 1 of your cruisers or destroyers in the active system to produce 1 hit against your opponent's ships; that hit must be assigned by your opponent to 1 of their non-fighter ships, if able."},{name:"Yin Spinner",type:I,description:"After 1 or more of your units use PRODUCTION, place 1 infantry from your reinfor
2cements on a planet you control in that system."},{name:"Yin Spinner \u03a9",type:I,description:"After you produce units, place up to 2 infantry from your reinforcements on any planet you control or in any space area that contains 1 or more of your ships."}],startingTechnologies:["sarween-tools"],startingUnits:{[_]:4,[j]:2,[z]:1,[V]:4,[Y]:1},units:{flagship:{name:"Van Hauge",stats:{cost:8,combat:"9 (x2)",move:1,capacity:3},abilities:["Sustain Damage","When this ship is destroyed, destroy all ships in this system."]},mech:{name:"Moyin's Ashes",stats:{cost:2,combat:6},abilities:["DEPLOY: When you use your INDOCTRINATION faction ability, you may spend 1 additional influence to replace your opponent's unit with 1 mech instead of 1 infantry.","Sustain Damage"]},breakthrough:{name:"Yin Ascendant",description:"When you gain this card or score a public objective, gain the alliance ability of a random, unused faction."}},leaders:{agent:{name:"Brother Milor",unlockCriteria:"At Game Start",ability:"After a player's destroyer or cruiser is destroyed: You may exhaust this card; if you do, that player may place up to 2 fighters from their reinforcements in that unit's system."},commander:{name:"Brother Omar",unlockCriteria:"Use your INDOCTRINATION faction ability",ability:"This card satisfies a green technology prerequisite. You may produce 1 additional infantry for their cost. These infantry do not count against your production limit."},hero:{name:"Dannel of the Tenth",unlockCriteria:"Have 3 Scored Objectives",ability:"SPINNER OVERDRIVE ACTION: For each planet that contains any number of your infantry, either ready that planet or place an equal number of infantry from your reinforcements on that planet. Then, purge this card."}}},"The Yssaril Tribes":{abilities:[{name:"STALL TACTICS",description:"ACTION: Discard 1 action card from your hand."},{name:"SCHEMING",description:"When you draw 1 or more action cards, draw 1 additional action card. Then, choose and discard 1 action card from your hand."},{name:"CRAFTY",description:"You can have any number of action cards in your hand. Game effects cannot prevent you from using this ability."}],promissoryNote:{name:"Spy Net",description:"At the start of your turn: Look at the Yssaril player'
2s hand of action cards. Choose 1 of those cards and add it to your hand. Then, return this card to the Yssaril player."},technologies:[{name:"Transparasteel Plating",type:I,description:"During your turn of the action phase, players that have passed cannot play action cards."},{name:"Mageon Implants",type:I,description:"ACTION: Exhaust this card to look at another player's hand of action cards. Choose 1 of those cards and add it to your hand."}],startingTechnologies:["neural-motivator"],startingUnits:{[_]:5,[j]:2,[K]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Y'sia Y'ssrila",stats:{cost:8,combat:"5 (x2)",move:2,capacity:3},abilities:["Sustain Damage","This ship can move through systems that contain other player's ships."]},mech:{name:"Blackshade Infiltrator",stats:{cost:2,combat:6},abilities:["DEPLOY: After you use your STALL TACTICS faction ability, you may place 1 mech on a planet you control","Sustain Damage"]},breakthrough:{name:"Deepgloom Executable",description:"You can allow other players to use your STALL TACTICS or SCHEMING faction abilities; when you do, you may resolve a transaction with that player. During the action phase, that transaction does not count against the once-per-player transactions limit for that turn."}},leaders:{agent:{name:"Ssruu",unlockCriteria:"At Game Start",ability:"This card has the text ability of each other player's agent, even if that agent is exhausted."},commander:{name:"So Ata",unlockCriteria:"Have 7 action cards",ability:"After another player activates a system that contains your units: You may look at that player's action cards, promissory notes, or secret objectives."},hero:{name:"Kyver, Blade and Key",unlockCriteria:"Have 3 Scored Objectives",ability:"GUILD OF SPIES ACTION: Each other player shows you 1 action card from their hand. For each player, you may either take that card or force that player to discard 3 random action cards from their hand. Then, purge this card."}}},"The Monks of Kolume":{abilities:[{name:"STARFALL GUNNERY",description:"During movement, while you are not the active player, you may only use 1 of your unit's SPACE CANNON. During each of your actions, up to 3 of your non- fighter ships gain SPACE CANNON 8."},{name:"DELIBERATE ACTION",description:"You cannot redistribute command tokens during the status phase. When you pass, you may place 1 command token from your reinforcements in 1 pool on your command sheet that contains no command tokens."},{name:"MEDITATION",description:"ACTION: Spend 1 command token from your strategy pool to ready 1 of your technologies."}],promissoryNote:{name:"Combinatorial Bypass",description:"At the start of invasion, place this card in your play area. During this invasion, all other player\u2019s units lose SPACE CANNON and PLANETARY SHIELD. At the start of your next turn, return this card to the Kolume player."},technologies:[{name:"Applied Biothermics",type:Q,description:"When you pass, you may gain 1 commodity for each other player who has already passed. ACTION: Exhaust this card."},{name:"Omniscience Field",type:Q,description:"After a system is activated, you may exhaust this card to choose 1 player. Apply +1 or -1 to all rolls that player makes during this tactical action."}],startingTechnologyChoice:{count:1,options:["graviton-laser-system","predictive-intelligence"]},startingUnits:{[_]:4,[j]:2,[K]:1,[V]:2,[Y]:1},units:{flagship:{name:"Halberd",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage Space Cannon 7 Hits produced by the SPACE CANNON abilities of your units in this system cannot be canceled."]},mech:{name:"Rook",stats:{cost:2,combat:6},abilities:["Hits produced by this unit cannot be assigned to non- fighter ships. After you spend a command token from your strategy pool, repair this unit. Space Cannon 8 (x2) Sustain Damage"]},breakthrough:{name:"Synchronicity VI",description:"ACTION : Exhaust this card to either gain 1 command token, or research a technology of the same color as one of your exhausted technologies. When you exhaust a technology, gain 1 commodity."}},leaders:{agent:{name:"Disciple Fran - Meditative Prodigy",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to allow a player to redistribute 1 of their command tokens on their command sheet."},commander:{name:"Issac of Sinci - Kinematics Specialist",unlockCriteria:"During the action phase, ready 1 of your technologies",ability:"Apply +1 to each of your unit's ability rolls."},hero:{name:"Wonell the Silent - Grandmaster of the Order",unlockCriteria:"Have 3 Scored Objectives",ability:"COIL OVERCHARGE - STREAKS IN THE NIGHT ACTION: Place this card near the game board;
2 during this game round, after you perform a component action, you may use 1 of your unit's SPACE CANNON against ships in or adjacent to that unit's system, without rolling additional dice. At the end of this game round, purge this card."}}},"The Free Systems Compact":{abilities:[{name:"RALLY TO THE CAUSE",description:"Once per action, after you produce 1 or more ships in your home system, you may produce up to 2 ships in a system that contains a cultural, hazardous, or industrial planet and does not contain a legendary planet or other players\u2019 units."},{name:"DIPLOMATS",description:"Once per action, you may exhaust 1 uncontrolled planet\u2019s planet card that is on the game board to spend its resources or influence."},{name:"FREE PEOPLE",description:"During setup, for each non-home planet other than Mecatol Rex on the game board, place that planet\u2019s planet card face up on the game board."}],promissoryNote:{name:"Broadcast Teams",description:"When you gain control of a planet during a tactical action : If the active system does not contain another player\u2019s ships, you may produce up to 2 ships in that system. Then, return this card to the Free Systems player."},technologies:[{name:"Envoy Network",type:R,description:"At the start of the agenda phase, you may choose and exhaust 1 cultural, 1 hazardous, and 1 industrial planet. When you cast 1 or more votes, if you exhaust at least 1 cultural, 1 hazardous, and 1 industrial planet to cast votes, you may cast 4 additional votes."},{name:"Covert Strike Teams",type:R,description:"At the start of a ground combat, you may roll 1 die for each of up to 2 of your ground forces on that planet. For each result equal to or greater than that unit's combat value, produce 1 hit; your opponent must assign it to 1 of their units on that planet."}],startingTechnologies:["psychoarchaeology"],startingUnits:{[_]:4,[j]:1,[K]:2,[V]:2,[q]:1,[Y]:1},units:{flagship:{tiers:[{name:"Vox",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage When this unit makes a combat roll, it rolls 1 additional die for each planet in this system of any single trait."]},{name:"",stats:{},abilities:[]}]},mech:{name:"Liberator",stats:{cost:2,combat:6},abilities:["DEPLOY : After you use your RALLY TO THE CAUSE faction ability in a system, you may spend 1 trade good to place 1 mech on a planet you control adjacent to that system. Sustain Damage"]},breakthrough:{name:"Galactic Movement",description:"After you spend a strategy token, you may place 1 infantry from your reinforcements into coexistence on any cultural, hazardous, or industrial planet that contains the active player's ground forces. Your infantry tokens on planets you control can be accompanied by your control tokens instead of plastic pieces."}},leaders:{agent:{name:"Cordo Haved - Friendly Diplomat",unlockCriteria:"At Game Start",ability:"While ready, this card has the text ability of each legendary planet ability card any player controls, even if that card is exhausted. You may allow another player to use this card's ability."},commander:{name:"President Cyhn - Crisis Leader",unlockCriteria:"Each non- legendary planet on the game board is controlled",ability:"After you gain control of a non-home planet during a tactical action : If you have 1 or more ships in the active system, you may produce 1 ship in that system."},hero:{name:"Count Otto P\u2019may - Inspiring Rhetorician",unlockCriteria:"Have 3 Scored Objectives",ability:"HEART OF REBELLION - FREEDOM OR DEATH ACTION: Ready a non-home planet other than Mecatol Rex that you control, remove all units on that planet and attach this card to it. Units cannot be committed to, produced on, or placed on this planet."}}},"The Cheiran Hordes":{abilities:[{name:"TEEMING",description:"During setup, place 2 additional dreadnoughts and 1 additional mech in your reinforcements."},{name:"MOULT",description:"After you win a space combat as the defender, you may produce 1 ship in the active system, reducing the cost by 1 for each of your non- fighter ships destroyed during that combat."},{name:"BYSSUS",description:"You may treat your mechs on planets you control as structures for any purpose other than scoring objectives."}],promissoryNote:{name:"Carcinisation",description:"When 1 of your non- fighter ships is destroyed during combat in a system: You may place 2 fighters from your reinfor
2cements in the space area of that system. At the end of that combat, return this card to the Cheiran Hordes player."},technologies:[{name:"Brood Pod",type:Q,description:"After another player activates a system that contains 1 of your structures, you may exhaust this card to produce 1 ship in the active system. For each of your structures in the active system, you may remove that unit from the game board to reduce the cost of the produced ship by 3."}],startingTechnologyChoice:{count:1,options:["magen-defense-grid","self-assembly-routines"]},startingUnits:{[M]:1,[_]:2,[j]:1,[z]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Lithodax",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage Anti-Fighter Barrage 7 (x2) When this unit makes a combat or ability roll, it rolls 1 additional die if this system is adjacent to or contains 1 of your structures."]},mech:{name:"Nauplius",stats:{cost:2,combat:6},abilities:["When this unit is destroyed, you may place 1 infantry from your reinforcements on this planet. Sustain Damage"]},breakthrough:{name:"Matriphagy",description:"At the end of your turn, you may exhaust this card to choose 1 of your non-fighter ships on the game board; replace that ship with 1 or more units from your reinforcements that have a total combined cost less than that ship's cost value."},dreadnought:{tiers:[{name:"Chitin Hulk I",stats:{cost:4,combat:5,move:1,capacity:1},abilities:["Sustain Damage Bombardment 5 When this unit is destroyed, you may place 1 fighter from your reinforcements in this system\u2019s space area."]},{name:"Chitin Hulk II",stats:{cost:4,combat:5,move:2,capacity:1},abilities:['Sustain Damage Bombardment 5 This unit cannot be destroyed by "Direct Hit" action cards. When this unit is destroyed, you may place 1 fighter or 1 destroyer from your reinforcements in this system\u2019s space area.']}]}},leaders:{agent:{name:"Operator Kkavras - Subspace Grapple",unlockCriteria:"At Game Start",ability:"At the end of a player\u2019s turn: Exhaust this card to allow that player to remove 1 of their command tokens from the game board and place that token in an adjacent system that contains 1 or more of their structures and none of their command tokens."},commander:{name:"Spc. Phquaiset - Alloyed Carapace",unlockCriteria:"Have 4 structures on non-home planets",ability:"While you are the defender during ground combat : After your opponent produces 1 or more hits against your units, you may spend 1 commodity or 1 trade good to cancel 1 of those hits."},hero:{name:"Thakt Clqua - Polemarch",unlockCriteria:"Have 3 Scored Objectives",ability:"CONTINGENCY PLAN - BIOMASS EVENT ACTION: Gather units from your reinforcements up to equal to your starting units. Place these units, in any combination, in the space area of any systems that contain 1 of your structures and no other players\u2019 ships, or on planets you control. Then, purge this card."}}},"The Nokar Sellships":{abilities:[{name:"HIRED GUNS",description:"After a system is activated, you may choose up to 3 of your ships. Those ships are also treated as the active player\u2019s and participate in combat as their units. At the end of this tactical action, that player may replace each of those ships in the active system with their own of the same unit type. Then, remove the rest from the game board."},{name:"PRIVATE FLEET",description:"During setup, place 4 additional destroyers in your reinforcements."},{name:"DESPERADOS",description:"When 1 or more of your units use PRODUCTION, 1 destroyer does not count against your PRODUCTION limit. Apply +1 to your destroyers ' move values while you are not the active player."}],promissoryNote:{name:"Nokar Navigator",description:"At the start of a space combat : During this combat, the active system is adjacent to each system that contains a planet you control for the purposes of announcing and resolving retreats. At the end of this combat, return this card to the Nokar player."},technologies:[{name:"Local Contracts",type:R,description:"During the action phase : You may exhaust this card to use the PRODUCTION ability of 1 of your units. Then, place 1 command token from your reinfor
2cements in that unit\u2019s system."}],startingTechnologyChoice:{count:2,options:["dark-energy-tap","psychoarchaeology","ai-development-algorithm"]},startingUnits:{[_]:4,[j]:1,[K]:1,[z]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Annah Regia",stats:{cost:8,combat:"9 (x2)",move:2,capacity:3},abilities:["Sustain Damage Apply +1 to the results of this unit\u2019s combat rolls for every 2 destroyers you control."]},mech:{name:"Freelance Outfit",stats:{cost:2,combat:6},abilities:["You may treat this system as adjacent to the active system for the purposes of declaring and resolving retreats. Sustain Damage"]},breakthrough:{name:"Mercenary Captains",description:"ACTION : Exhaust this card to place 1 neutral cruiser and 2 neutral destroyers into a non-fracture system that contains no non-neutral ships. After another player wins a space combat in a system that contains your ships, gain 2 commodities or 1 command token."},destroyer:{tiers:[{name:"Sabre I",stats:{cost:1,combat:8,move:2},abilities:["Anti-Fighter Barrage 9 (x2) After this unit is destroyed during combat, roll a die, on a result of 9 or 10, produce up to 1 hit against your opponent\u2019s ships."]},{name:"Sabre II",stats:{cost:1,combat:7,move:2},abilities:["Anti-Fighter Barrage 6 (x3) After this unit is destroyed during combat, roll a die, on a result equal to or greater than 7, produce up to 1 hit against your opponent\u2019s ships."]}]}},leaders:{agent:{name:"Sal Sparrow - The Privateer",unlockCriteria:"At Game Start",ability:"After movement : You may exhaust this card to allow 1 player with 1 or more ships in the active system to place 1 destroyer from their reinforcements in that system. Then, you may resolve 1 transaction with that player."},commander:{name:"Jack Hallard - The Commodore",unlockCriteria:"Another player moves 1 of your ships",ability:"Before you assign hits to your ships during a space combat, if you announced a retreat, cancel up to 2 hits. During combat, you may treat the active system as adjacent to each system adjacent to your home system."},hero:{name:"Starsails - Mercenary King",unlockCriteria:"Have 3 Scored Objectives",ability:"IRREFUTABLE OFFER - GALACTICE PRESS GANG ACTION: Place this card near the game board, until the end of this game round, each of your planets gains the PRODUCTION 3 ability as if it were a unit. At the end of this game round, purge this card."}}},"The Lanefir Remnants":{abilities:[{name:"A NEW EDIFICE",description:"You may not use technology specialties. When you would gain a relic, instead purge it and explore up to 3 planets you control."},{name:"ICONOCLASM",description:"When researching a non- unit upgrade technology, you may purge 1 of your relic fragments to ignore 1 prerequisite on the technology you are researching."},{name:"WAR STORIES",description:"Once per action, after you win a combat, you may explore 1 planet you control, or if the active system does not contain any planets, the frontier exploration deck in the active system."}],promissoryNote:{name:"Spoils of War",description:"After you win a combat : Place this card face-up in your play area to explore 1 planet you control. At the start of the Lanefir player\u2019s turn, return this card to the Lanefir player."},technologies:[{name:"Spark Thrusters",type:Q,description:"ACTION: Spend 1 command token from your strategy pool or purge 1 relic fragment to move 1 of your ships to an adjacent system that contains no other player\u2019s ships. If you spent a command token, exhaust this card."},{name:"ATS Armaments",type:Q,description:"After you explore, or purge 1 or more relic fragments, place 1 commodity token on this card. At the start of a round of combat, remove any number of tokens from this card to reroll up to that many of your dice during this round of combat."}],startingTechnologyChoice:{count:2,options:["dark-energy-tap","scanlink-drone-network","ai-development-algorithm"]},startingUnits:{[_]:3,[j]:2,[z]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Memory of Dusk",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage At the end of a tactical action in this system, you may explore 1 planet you control in this system."]},mech:{name:"Troubadour",stats:{cost:2,combat:6},abilities:["DEPLOY : At the start of your turn, purge 1 of your relic fragments to place 1 mech on a planet you control, if you do, you may end your turn. Sustain Damage"]},breakthrough:{name:"Erasure Corps.",description:"After another player purges 1 or more non-action card components, gain 1 command token or ready this card. During the action phase, you may exhaust this card to explore 1 planet you control."}},leaders:{agent:{name:"Vassa Hagi - Plunderer of Lost Arks",unlockCriteria:"At Game Start",ability:"When a player explores, you may exhaust this card to allow that player to discard 1 exploration card they drew and draw another."},commander:{name:"Master Halbert - Quartermaster",unlockCriteria:"7 relic fragments have been purged",ability:"After you explore a planet: You may place 1 infantry from your reinfor
2cements on that planet."},hero:{name:"The Venerable - Keeper of Myths",unlockCriteria:"Have 3 Scored Objectives",ability:"RESONANCE CASCADE - BROKEN LEGACY ACTION: Draw and reveal up to 3 relics. For each relic that started this action in a player's play area, gain 1 command token ; you may swap that relic for 1 of the revealed relics or a relic in a player's play area. Then, shuffle the remaining relics into the relic deck and purge this card."}}},"The Florzen Profiteers":{abilities:[{name:"MERCENARIES",description:"At the start of a space combat, you may remove up to 2 fighters you control in a system adjacent to the active system. Then, choose 1 player participating in that combat ; that player places the same number of fighters from their reinforcements in the active system."},{name:"DATA LEAK",description:"When you would gain a relic, you may draw 1 additional card; choose 1 to gain and return the rest to the relic deck. Then, shuffle the relic deck."},{name:"SHADOW MARKETS",description:"When you explore a planet, you may treat that planet as if it had the same trait as another planet you control."}],promissoryNote:{name:"Underground Market",description:"When you would gain a relic : You may draw 1 additional card; choose 1 to gain and return the rest to the relic deck. Then, shuffle the relic deck. Then, return this card to the Florzen player."},technologies:[{name:"Blackmail Programs",type:I,description:"When a player would perform a strategic action, you may exhaust this card and spend 1 token from your strategy pool to end that player's turn; the strategic action is not resolved and the strategy card is not exhausted."}],startingTechnologies:["neural-motivator","scanlink-drone-network"],startingUnits:{[_]:4,[j]:2,[V]:4,[Y]:1},units:{flagship:{name:"Man O' War",stats:{cost:8,combat:"7 (x2)",move:1,capacity:5},abilities:["Sustain Damage Other players cannot play action cards during a space combat in this system."]},mech:{name:"Privateer",stats:{cost:2,combat:6},abilities:["You may spend influence as resources to produce this unit. Sustain Damage"]},breakthrough:{name:"Reverie Implants",description:"After a system that contains 2 or more planets you control is activated, you may exhaust this card. If you do, you and the active player each secretly spend 0, 1, or 2 trade goods. Then, reveal the spent trade goods; if you spent the same number of trade goods, explore 1 planet you control; otherwise, end that player\u2019s turn."},fighter:{tiers:[{name:"Corsair I",stats:{cost:"1 (x2)",combat:9,move:1},abilities:["Anti-Fighter Barrage 9 This unit may move without being transported. Fighters in excess of your ships\u2019 capacity count against your fleet pool."]},{name:"Corsair II",stats:{cost:"1 (x2)",combat:8,move:3},abilities:["Anti-Fighter Barrage 8 This unit may move without being transported. Fighters in excess of your ships\u2019 capacity count against your fleet pool."]}]}},leaders:{agent:{name:"Sal Gavda - Black Market Dealer",unlockCriteria:"At Game Start",ability:"At the start of a player's turn : You may exhaust this card to allow that player to remove an attachment from a non-home planet they control and attach it to a non-home planet they control other than Mecatol Rex adjacent to that planet's system."},commander:{name:"Quaxdol Junitas - The Unseen Hand",unlockCriteria:"Have the outcome you voted for or predicted on an agenda resolved",ability:"After the second agenda is revealed during the agenda phase : You may ready 1 planet you control; explore that planet, if able."},hero:{name:"Banua Gowen - Administrator of Minds",unlockCriteria:"Have 3 Scored Objectives",ability:"SLEEPER CELLS - SHADY ACQUISITIONS ACTION: Place 2 fighters from your reinforcements in each system that contains 1 or more planets you control and no other player's ships. Then, you may remove 1 attachment from any planet in a system that contains 1 or more of your ships and attach it to 1 planet in your home system. Then, purge this card."}}},"The Myko-Mentori":{abilities:[{name:"PRESCIENT MEMORIES",description:"You have 4 \u201cOmen\u201d Dice. At the start of the strategy phase, roll all 4 Omen dice and place them near your faction sheet."},{name:"DIVINATION",description:"Before you would roll a die, you may instead return 1 Omen die near your faction sheet to your reinfor
2cements to resolve that roll as if it had the result of that die."},{name:"NECROPHAGE",description:"Apply +1 to your commodity value for each space dock you control. After the first round of combat, gain 1 commodity or convert 1 of your commodities to a trade good."}],promissoryNote:{name:"Gift of Insight",description:"ACTION: Place this card face up in your play area. While this card is in your play area, once per turn, after you roll a die, you may reroll that die. If you activate a system that contains 1 or more of the Myko-Mentori player\u2019s units, return this card to the Myko-Mentori player."},technologies:[{name:"Psychoactive Armaments",type:I,description:"After your opponent makes a combat roll, you may exhaust this card. If you do, for each of their units that did not produce a hit, you may reroll that unit's combat roll; any hits that roll produces are produced against your opponent\u2019s units instead."}],startingTechnologies:["predictive-intelligence"],startingUnits:{[_]:6,[j]:2,[K]:1,[V]:1,[Y]:1},units:{flagship:{name:"Psyclobea Qarnyx",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage Once per round of space combat, when a non- fighter ship in this system is destroyed, you may gain 1 commodity."]},mech:{name:"Amandia Pholdis",stats:{cost:2,combat:6},abilities:["After this unit is destroyed, roll a die. If the result is 6 or greater, place the unit on this card. At the start of your turn, you may replace 1 infantry you control with a unit that is on this card. Sustain Damage"]},breakthrough:{name:"Dreamwalkers",description:"Capture other player's infantry that are destroyed during combat on planets you control. After each round of ground combat on a planet you control, roll a die. On a result of 7 or greater, place up to 1 of your captured infantry onto that planet, as if it were your own."},"space-dock":{tiers:[{name:"Mycelium Ring I",stats:{},abilities:["Planetary Shield Production X+2 (X is the resource value of the planet) This unit\u2019s PRODUCTION value is equal to 2 more than the resource value of this planet. DEPLOY : When you gain control of a planet, you may replace 4 infantry on that planet with 1 space dock."]},{name:"Mycelium Ring II",stats:{},abilities:["Planetary Shield Production X+5 (X is the resource value of the planet) This unit\u2019s PRODUCTION value is equal to 5 more than the resource value of this planet. DEPLOY : When you gain control of a planet, you may replace 3 infantry on that planet with 1 space dock."]}]}},leaders:{agent:{name:"Lactarius Indigo - Omen Caller",unlockCriteria:"At Game Start",ability:"Before a player rolls a die, you may instead exhaust this card and choose 1 Omen die near the Myko-Mentori player\u2019s faction sheet; resolve that die roll as if it had the result of that Omen die."},commander:{name:"Amanita Muscaria - Rampant Growth",unlockCriteria:"Have 4 commodities on your faction sheet",ability:"After another player produces 1 or more hits against your units during space combat, you may spend 1 commodity or 1 trade good to cancel 1 of those hits."},hero:{name:"Coprinus Comatus - Necromancer",unlockCriteria:"Have 3 Scored Objectives",ability:"SOUL CAGE - RISE AGAIN When another player\u2019s hero would be purged, instead attach it to this card. You may resolve this card as if it instead had the text of any single hero attached to this card. When this card is purged, purge each of its attachments as well."}}},"The Augurs of Ilyxum":{abilities:[{name:"ORACLE AI",description:"After the speaker reveals an unrevealed public objective, choose 1 unrevealed public objective card and place that card on your faction sheet. You may look at the card on your faction sheet at any time."},{name:"LIMITED VISION",description:"You may not place a stage II objective card on your faction sheet until all stage I objectives have been revealed."},{name:"PROBABILITY ALGORITHMS",description:"When the speaker would reveal the next public objective, they must reveal the public objective card on your faction sheet instead. Place that card near the other public objectives."}],promissoryNote:{name:"Read the Fates",description:"ACTION: Place this face up in your play area. While this card is in your play area, you may look at the public objective card on the Ilyxum player\u2019s faction sheet. If you activate a system that contains 1 or more of the Ilyxum player'
2s units, return this card to the Ilyxum player."},technologies:[{name:"Psychographics",type:R,description:"During the status phase, you may score 1 additional public objective instead of a secret objective."},{name:"Sentient Datapool",type:R,description:"At the start of the status phase, you may spend 3 trade goods to research 1 technology."}],startingTechnologies:["ai-development-algorithm","scanlink-drone-network"],startingUnits:{[_]:4,[j]:1,[z]:2,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Nemsys",stats:{cost:8,combat:5,move:1,capacity:3},abilities:["Sustain Damage When this unit makes a combat roll, it rolls 1 additional die for each secret objective you have scored."]},mech:{name:"Iledrith",stats:{cost:2,combat:6},abilities:["DEPLOY : After researching a technology, you may place 1 mech on a legendary planet, or a planet that has a technology specialty, that you control. Sustain Damage"]},breakthrough:{name:"Cryptic Insights",description:"When you explore a planet, you may discard that card to draw 1 action card instead."}},leaders:{agent:{name:"Clodho - Speaker",unlockCriteria:"At Game Start",ability:"After a player explores a legendary planet or a planet that has a technology specialty, you may exhaust this card to allow that player to gain 2 trade goods."},commander:{name:"Lachis - Reader",unlockCriteria:"Win a combat in a system that contains a legendary planet or a planet that has a technology specialty",ability:"This card satisfies a yellow technology prerequisite. When you cast at least 1 vote, cast 1 additional vote for every 2 technologies you own."},hero:{name:"Atropha - Weaver",unlockCriteria:"Have 3 Scored Objectives",ability:"SYNCHRONICITY ALGORITHM - WOVEN FATE ACTION: Draw 3 objective cards from 1 of the public objective decks; choose up to 1 of those cards to replace an objective card on a player\u2019s faction sheet, and return the others to the bottom of their corresponding decks. Then, purge this card."}}},"The Edyn Mandate":{abilities:[{name:"GRACE",description:"Once per action phase, after you resolve the primary ability of a strategy card, you may resolve the secondary ability of 1 readied or unchosen strategy card with a lower printed initiative number than that strategy card."},{name:"DECREE",description:"You may prevent ships from moving through anomalies that contain your ground forces."},{name:"RADIANCE",description:"After an agenda is revealed, you may predict aloud the outcome of that agenda. If your prediction is correct, place 1 command token from another player's reinforcements in a Sigil."}],promissoryNote:{name:"Edyn Rider",description:"After an agenda is revealed : You cannot vote on this agenda. Predict aloud an outcome of this agenda. If your prediction is correct, place 1 command token from another player\u2019s reinforcements in a system that contains your units. Then, return this card to the Edyn player."},technologies:[{name:"Unity Algorithm",type:R,description:"Once per agenda phase, after an agenda is revealed, you may predict aloud an outcome of that agenda. If your prediction is correct, you may score 1 public objective if you fulfill its requirements; each other player who voted for that outcome draws 1 secret objective."},{name:"Encrypted Trade Hub",type:R,description:"You may exhaust this card to allow a player to exchange 1 of their relics or agendas as part of a transaction. You always vote last during the agenda phase. When an outcome you voted for or predicted is resolved, each player who voted for that outcome gains 1 commodity."}],startingTechnologyChoice:{count:3,options:["antimass-deflectors","dark-energy-tap","neural-motivator","psychoarchaeology","sarween-tools","scanlink-drone-network","plasma-scoring","ai-development-algorithm"]},startingUnits:{[_]:3,[j]:1,[z]:2,[V]:4,[q]:1,[Y]:1},units:{flagship:{name:"Kaliburn",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage Apply +1 to the results of this unit's combat rolls for each law in play."]},mech:{name:"Rune Bearer",stats:{cost:2,combat:6},abilities:['This system is a "Sigil" anomaly. Place a Sigil token beneath this unit as a reminder. Game effects cannot prevent you from using this ability. Sustain Damage']},breakthrough:{name:"Arms Brokerage",description:"ACTION : Exhaust this card and show another player 1 of your unscored secret objectives; that player must show you 1 of their unscored secret objectives, at random, or allow you to place 1 ground force from your reinfor
2cements into coexistence on a planet they control."}},leaders:{agent:{name:"Allant - Elder Voice",unlockCriteria:"At Game Start",ability:"After a player passes : You may exhaust this card to choose 1 player; that player may perform up to 1 action. Then, look at the top card of the agenda deck; you may discard that agenda card."},commander:{name:"Kadryn - Highest Grace",unlockCriteria:"Have 1 or more laws in play",ability:"When any game effect would allow you to score a public objective, you may instead draw 1 secret objective."},hero:{name:"Midir - Living Will",unlockCriteria:"Have 3 Scored Objectives",ability:"GOLDEN ORDER - PEACE ETERNAL ACTION: For each Sigil on the game board, draw 1 agenda. Reveal and resolve each agenda in any order as if you had cast 1 vote for an outcome of your choice. Other players cannot resolve abilities during this action. Then, purge this card."}}},"The L'tokk Khrask":{abilities:[{name:"LITHOIDS",description:"During the agenda phase, the number of votes you cast is instead equal to the combined resource value of the planets that you exhaust."},{name:"GARDEN WORLDS",description:"Apply +1 to the resource values of your planets that do not contain 1 or more ground forces."},{name:"METEOR SLINGS",description:"When your units use BOMBARDMENT against a planet another player controls, you may cancel any number of hits you produce to place that many infantry from your reinforcements onto that planet. Those units participate in ground combat, if able."}],promissoryNote:{name:"Stone Speakers",description:"During a tactical action, when you produce 1 or more hits during a BOMBARDMENT roll: For each hit you produced, you may instead place 1 infantry from your reinforcements on the planet being bombarded. Then, return this card to the L\u2019tokk Khrask player."},technologies:[{name:"Stone's Embrace",type:I,description:"When you would spend a token from your strategy pool, you may exhaust 1 planet you control to spend 1 token from your reinforcements instead."}],startingTechnologies:["plasma-scoring","scanlink-drone-network"],startingUnits:{[_]:3,[K]:3,[V]:1,[q]:1,[Y]:1},units:{flagship:{name:"Splintering Gale",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage At the start of a space combat in this system, choose up to 2 non- fighter ships to gain SUSTAIN DAMAGE until the end of combat."]},mech:{name:"Megalith",stats:{cost:2,combat:6},abilities:["Units other than your mechs do not make combat rolls during the first round of ground combat on this planet. Sustain Damage"]},breakthrough:{name:"Mended Grove",description:"Gain the Grove card. When you resolve METEOR SLINGS, if you cancel all hits produced, you may place your units into coexistence ; you cannot commit those coexisting ground forces during this action."},cruiser:{tiers:[{name:"Shattered Sky I",stats:{cost:2,combat:7,move:2,capacity:1},abilities:["Bombardment 8"]},{name:"Shattered Sky II",stats:{cost:2,combat:6,move:3,capacity:2},abilities:["Bombardment 6"]}]}},leaders:{agent:{name:"Udosh B\u2019rtul - Grove Tender",unlockCriteria:"At Game Start",ability:"When a player would spend influence : You may exhaust this card to allow that player to spend the resources of 1 non-home planet they control as influence, in addition to its influence."},commander:{name:"Hkot Tokal - Crystal Druid",unlockCriteria:"Win a ground combat on a planet you do not control",ability:"At the start of invasion in a system that contains 1 or more planets: You may place 1 infantry unit from your reinforcements in that system\u2019s space area if you have unused capacity in that system."},hero:{name:"Vehl-Tikar - Arch Druid",unlockCriteria:"Have 3 Scored Objectives",ability:"CRYSTAL CHORUS - WORLDS AWAKEN ACTION: Purge this card to choose up to 4 planets; exhaust or ready each of those planets."}}},"The Dih-Mohn Flotilla":{abilities:[{name:"CAPITAL FLEET",description:"Destroyers count as 1/2 of a ship against your fleet pool."},{name:"MIGRANT EXPLORERS",description:"After you explore a frontier token in a system, you may explore a planet you control that is adjacent to that system."},{name:"FLOTILLA",description:"You cannot have more infantry than non- fighter ships in the space area of a system."}],promissoryNote:{name:"Combat Drills",description:"When 1 of your ships would be destroyed: Instead of destroying that ship, place this card face up in your play area. Return this card to the Dih-Mohn player at the start of the status phase."},technologies:[{name:"Impressment Programs",type:R,description:"When you explore a planet, you may produce 1 ship in that planet\u2019s system. ACTION: Exhaust this card and 1 planet you control to explore that planet."}],startingTechnologies:["scanlink-drone-network","dark-energy-tap"],startingUnits:{[M]:1,[_]:2,[z]:2,[W]:2,[V]:2,[Y]:1},units:{flagship:{name:"Maximus",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage After this unit moves into the active system, you may produce up to 2 units that have a combined cost of 4 or less in that system."]},mech:{name:"Repairitor",stats:{cost:2,combat:6},abilities:["At the start of a combat in this system you may repair 1 unit you control that is participating in that combat. Sustain Damage"]},breakthrough:{name:"Exodus Engineering",description:"Once per space combat, after 1 of your opponent's non-fighter ships is destroyed, you may either exhaust this card to place 1 frontier token in the active system, or produce 1 or 2 non-fighter ships in that system to ready this card. You can produce ships in systems that contain both your ships and another player'
2s ships."},dreadnought:{tiers:[{name:"Aegis I",stats:{cost:4,combat:5,move:1,capacity:1},abilities:["Sustain Damage Bombardment 5 When another ship in this system would be destroyed during combat, you may have this ship become damaged instead."]},{name:"Aegis II",stats:{cost:4,combat:4,move:2,capacity:1},abilities:["Sustain Damage Bombardment 5 When another ship in this system would be destroyed by a game effect, you may have this ship become damaged instead."]}]}},leaders:{agent:{name:"Jgin Faru - Chancellor of Immigration",unlockCriteria:"At Game Start",ability:"When a player commits 1 or more units to a planet during invasion : You may exhaust this card to allow that player to place 1 infantry from their reinforcements on that planet."},commander:{name:"Clona Bathru - Founder of Bathru Robotics",unlockCriteria:"Research a ship unit upgrade technology",ability:"This card satisfies a red technology prerequisite. At the start of a space combat in a system that contains 3 or more different types of your non- fighter ships, produce 1 hit against your opponent\u2019s ships."},hero:{name:"Verrisus Ypru - Former Admiral of the Unrelenting Battlegroup",unlockCriteria:"Have 3 Scored Objectives",ability:'DEFENSE MATRIX OVERLOAD - VOLATILE EMP BURST After the "Roll Dice" step of space combat : You may purge this card. If you do, all ships in the active system become damaged ; during this round of space combat your ships cannot be destroyed.'}}}
2,"The Glimmer of Mortheus":{abilities:[{name:"FACSIMILE",description:"At the start of a space combat while you are the defender, you may spend influence equal to the cost value of 1 of your opponent's ships in the active system to place 1 unit of that type from your reinforcements in that system."},{name:"ILLUSORY PRESENCE",description:"During the agenda phase, after another player casts votes, you may exhaust up to 2 planets you control; that player casts an additional number of votes equal to 1 more than the combined influence values of those planets."}],promissoryNote:{name:"Secrets of the Weave",description:"At the start of a space combat while you are the defender: You may spend influence equal to the cost value of 1 of your opponent's ships in the active system to place 1 unit of that type from your reinforcements in that system. Then, return this card to the Mortheus player."},technologies:[{name:"Fractal Plating",type:R,description:"After a unit you control in a system is destroyed, you may exhaust this card to place 1 unit of that type from your reinforcements in the space area of a system adjacent to that system that contains 1 or more of your ships."},{name:"Fabrication Grid",type:R,description:"Each system that contains 1 or more of your ships and no planets gains PRODUCTION 2 as if it were a unit you control."}],startingTechnologies:["dark-energy-tap","sarween-tools"],startingUnits:{[_]:3,[j]:1,[z]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Particle Sieve",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage After you activate this system, if it does not contain any planets, you may place 1 frontier token in this system."]},mech:{name:"Duuban",stats:{cost:2,combat:6},abilities:["When a player commits 1 or more units to a planet you control adjacent to this system, you may swap this unit with 1 of your infantry on that planet. Sustain Damage"]},breakthrough:{name:"Mirage Craf",description:"At the start and end of a space combat in which you are the defender, you may swap 1 of your ships in the active system with 1 of your ships in another system that contains 1 of your command tokens; the swapped ships cannot transport units."}},leaders:{agent:{name:"Walik - Dull Green",unlockCriteria:"At Game Start",ability:"When a player produces 1 or more units in a system: You may exhaust this card to allow that player to place 1 of the produced units in the space area of an adjacent system that does not contain another player\u2019s ships."},commander:{name:"Komat - Vibrant Blue",unlockCriteria:"Have ships in 3 systems not adjacent to or including your home system",ability:"At the start of a space combat while you are not the active player: Choose 1 of your non- fighter ships in the active system to gain SUSTAIN DAMAGE until the end of combat."},hero:{name:"Bayan - Deep Magenta",unlockCriteria:"Have 3 Scored Objectives",ability:"WEAVELINK REPLICATOR - TWO BY TWO ACTION: Purge this card to choose 1 ship you control in each system; for each of those units, you may place 1 unit of that type from your reinforcements in the space area of that unit\u2019s system, if able."}}},"Roh'Dhna Mechatronics":{abilities:[{name:"INDUSTRIOUS",description:"After you place a space dock in a system that contains no other players' ships, you may spend 6 resources and remove that space dock to place 1 war sun in that system's space area."},{name:"RECYCLED MATERIALS",description:"After you activate a system, you may return 1 cruiser, carrier, or dreadnought you control in that system to your reinforcements to gain a number of trade goods equal to 1 less than that unit\u2019s cost value."},{name:"ORBITAL FOUNDRIES",description:"For the purpose of scoring objectives, you may treat each of your war sun units as though it is a structure on any planet you control."}],promissoryNote:{name:"Automatons",description:"At the end of your turn, you may attach this card to a non-home planet you control other than Mecatol Rex. This planet has PRODUCTION 3 as if it were a unit."},technologies:[{name:"Contractual Obligations",type:R,description:"At the start of the agenda phase, for each unit upgrade technology you control, you may choose 1 player. Each of those players must produce 1 ship in a system that contains 1 or more of their space docks or war suns."}],startingTechnologies:["psychoarchaeology","sarween-tools"],startingUnits:{[_]:3,[j]:2,[z]:1,[V]:3,[Y]:1},units:{flagship:{name:"Ky'vir",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage DEPLOY : After you activate a system, you may spend 4 resources to replace 1 of your non- fighter ships in that system with your flagship."]},mech:{name:"Autofabricator",stats:{cost:2,combat:6},abilities:["DEPLOY : After you use your RECYCLED MATERIALS faction ability in a system, you may place 1 mech in that system's space area or on a planet you control in that system. Sustain Damage"]},breakthrough:{name:"The Prodigy\u2019s Triumph",description:"If you have the Terrafactory II technology, flip this card and place it on top of Terrafactory II."},"war-sun":{tiers:[{name:"Terrafactory I",stats:{combat:"5 (x2)",capacity:4},abilities:["Production 5 This unit produces only 1 fighter or infantry for their cost instead of 2. This unit cannot move or be produced."]},{name:"Terrafactory II",stats:{cost:12,combat:"3 (x3)",move:2,capacity:6},abilities:["Production 5 Bombardment 3 (x3) Sustain Damage This unit produces only 1 fighter or infantry for their cost instead of 2. Other player'
2s units in this system lose PLANETARY SHIELD."]}]}},leaders:{agent:{name:"Rond Bri\u2019ay - Master of Operations",unlockCriteria:"At Game Start",ability:"After 1 or more of a player's units use PRODUCTION : You may exhaust this card to allow that player to gain 1 command token."},commander:{name:"B-Unit 205643a - Predominant Constructor",unlockCriteria:"Have units with a combined PRODUCTION value of at least 7 in a single system",ability:"When you spend a command token to resolve the secondary ability of the \u201cConstruction\u201d strategy card, you may resolve the primary ability instead."},hero:{name:"Roh\u2019Vhin Dhna mk4 - Ruthless Executive",unlockCriteria:"Have 3 Scored Objectives",ability:"PRIMESPACE ACTUALIZATION - SUBVERSIVE AUTOMATION After you move 1 or more of your ships into the active system: You may purge this card to produce ships using the PRODUCTION abilities of any units in the active system as if they were your own, regardless of whether that system contains another player\u2019s ships."}}},"The Kyro Sodality":{abilities:[{name:"CONTAGION",description:'After you resolve the primary or secondary ability of the "Politics" strategy card, commit 1 infantry from your reinforcements to a planet that is in or adjacent to a system that contains a planet you control; resolve invasion on that planet.'},{name:"PLAGUE RESERVOIR",description:"Once per action, during invasion on a planet that contains your units, you may resolve ground combat on that planet, even if it does not contain another player's ground forces."},{name:"SUBVERSIVE",description:"When participating in a combat that would end in a draw, you are treated as the winner instead."}],promissoryNote:{name:"Kyro Rider",description:"After an agenda is revealed : You cannot vote on this agenda. Predict aloud an outcome of this agenda. If your prediction is correct, place 3 infantry from your reinforcements on a planet you control. Then, return this card to the Kyro player."},technologies:[{name:"Indoctrination Teams",type:R,description:"During the agenda phase, after an outcome you voted for is resolved, place 2 infantry from your reinforcements on a planet you control."},{name:"Vector Programs",type:R,description:"At the start of the strategy phase, you may place any number of your trade goods on any combination of strategy cards. Then, place 2 trade goods from the supply on 1 strategy card."}],startingTechnologyChoice:{count:1,options:["dacxive-animators","bio-stims"]},startingUnits:{[_]:3,[j]:1,[z]:1,[W]:1,[Y]:1},units:{flagship:{name:"Auriga",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage When you commit units to a planet in this system, commit 1 infantry from your reinforcements to that planet."]},mech:{name:"Pustule",stats:{cost:2,combat:6},abilities:["When this unit would be destroyed, if it is damaged, you may discard 1 action card to repair it instead. Sustain Damage"]},breakthrough:{name:"Strain Dispersal",description:"When researching a technology, you may discard an action card to ignore 1 of that technology's prerequisites. Once per action, when you win a combat, for each technology your opponent owns, if you do not own that technology, gain 1 commodity or convert 1 of your commodities to a trade good."}},leaders:{agent:{name:"Tox - Plague Queen",unlockCriteria:"At Game Start",ability:"After a player loses or draws a ground combat: You may exhaust this card to allow that player to replenish their commodities ; place a number of infantry equal to 1 less than their commodity value on 1 planet you control."},commander:{name:"Silas Deriga - Necrosage",unlockCriteria:"Have 6 infantry and 6 fighters on the game board",ability:"When you cast votes : Remove up to 4 of your infantry from the game board to cast 1 additional vote for each infantry removed."},hero:{name:"Speygh - Blightmaster",unlockCriteria:"Have 3 Scored Objectives",ability:"BRIKK STRAIN - GALACTIC BLIGHT At the start of the status phase: You may attach this card to 1 of your strategy cards. Its initiative value is 9. Non-Kyro Players may only resolve 1 clause of this strategy card\u2019s primary ability. The Kyro player gains any trade goods placed on this card."}}}
2,"The Bentor Conglomerate":{abilities:[{name:"SECRET MAPS",description:"At the end of your tactical actions, you may explore 1 planet in the active system that is or contains 1 of your units with PRODUCTION that you did not explore during that tactical action."},{name:"FORTUNE SEEKERS",description:"Once per action, after you explore a planet or frontier token, you may gain 1 commodity."},{name:"ANCIENT BLUEPRINTS",description:"The first time you gain a cultural, hazardous, industrial, or unknown relic fragment, place the corresponding \u201cFragment\u201d token on your faction sheet."}],promissoryNote:{name:"Encryption Key",description:"ACTION: Attach this card to a non-home planet you control. This planet has 1 technology specialty of any color."},technologies:[{name:"Broker Network",type:R,description:"Each planet you control that has a technology specialty or an attachment gains the PRODUCTION 1 ability as if it were a unit."},{name:"Merged Replicators",type:R,description:"When 1 or more of your units use PRODUCTION, you may exhaust this card to swap 1 of those unit's PRODUCTION with another on the game board, or apply +2 to the total PRODUCTION value of those units."}],startingTechnologyChoice:{count:2,options:["dark-energy-tap","psychoarchaeology","scanlink-drone-network"]},startingUnits:{[_]:4,[j]:1,[K]:2,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Wayfinder",stats:{cost:8,combat:"9 (x2)",move:1,capacity:3},abilities:["Sustain Damage Anti-Fighter Barrage 9 (x2) Space Cannon 9 Bombardment 9 Apply +1 to the results of this ship\u2019s combat and ability rolls for each Fragment token on your faction sheet."]},mech:{name:"Auctioneer",stats:{cost:2,combat:6},abilities:["DEPLOY : When you place a Fragment token on your faction sheet, you may place 1 mech on a planet you control. Sustain Damage"]},breakthrough:{name:"Historian Conclave",description:"ACTION : Exhaust this card to allow all other players to explore 1 planet they control. Then, place up to 1 infantry from your reinforcements into coexistence on 1 of those planets. When you explore a planet, you may exhaust this card to instead explore the frontier deck in that system."}},leaders:{agent:{name:"C.O.O. Mgur - Deft Tradesperson",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card and choose 1 player. For each Fragment token on your faction sheet, that player gains 1 commodity. For each commodity they would gain in excess of their commodity value, they gain 1 trade good instead."},commander:{name:"C.M.O. Ranc - Marketing Guru",unlockCriteria:"Have 3 Fragment tokens on your faction sheet",ability:"Your commodity value is increased by 1."},hero:{name:"C.E.O. Ken Tucc - Visionary Explorer",unlockCriteria:"Have 3 Scored Objectives",ability:"PRIMORDIAL DATA CORE - GRAND REVEAL ACTION: Purge this card to explore each planet you control, in any order."}}},"The Kortali Tribunal":{abilities:[{name:"ZEALOUS",description:'When you spend a command token to resolve the secondary ability of the " Warfare" strategy card, you may resolve the primary ability instead.'},{name:"RUTHLESS",description:"At the start of a ground combat on an exhausted planet you do not control, you may produce 1 hit and assign it to 1 of your opponent's ground forces on that planet."}],promissoryNote:{name:"Blessing of the Queen",description:"ACTION: Place this card face up in your play area and remove 1 of your command tokens from the game board. At the start of the status phase, return this card to the Kortali player."},technologies:[{name:"Tempest Drive",type:Q,description:"After you win a combat in a system, you may exhaust this card to remove 1 command token from that system."},{name:"Deliverance Engine",type:Q,description:"Once per space combat, after 1 of your non- fighter ships is destroyed, you may produce 1 hit and assign it to 1 of your opponent\u2019s non- carrier ships."}],startingTechnologies:["plasma-scoring","psychoarchaeology"],startingUnits:{[_]:4,[j]:2,[K]:1,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Magistrate",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage Bombardment 3 After you win a space combat in this system, you may have this ship become damaged to gain 1 command token."]},mech:{name:"Justicar",stats:{cost:2,combat:5},abilities:["This unit cannot lose its PLANETARY SHIELD. Planetary Shield Sustain Damage"]},breakthrough:{name:"Psychospore",description:"If you have the Dreadnought II technology, flip this card and place it on top of Dreadnought II."}},leaders:{agent:{name:"Queen Lucreia - Atonement and Punishment",unlockCriteria:"At Game Start",ability:"When a player wins a ground combat : You may exhaust this card to allow that player to take 1 relic fragment their opponent owns, at random, if able."},commander:{name:"Queen Lorena - Compassion and Destruction",unlockCriteria:"Destroy the last of a player\u2019s units in a system",ability:"During the first roun
2d of a combat, you may cancel 1 hit produced against your units."},hero:{name:"Queen Nadalia - Life and Death",unlockCriteria:"Have 3 Scored Objectives",ability:"CALLING OF THE QUEENS - MOTHER GODDESSES When you win a combat : You may purge this card to choose and take up to 1 of your opponent's relics. Then, for each planet you control that is a legendary planet or has a technology specialty, gain 1 command token."}}},"The Shipwrights of Axis":{abilities:[{name:"MILITARY INDUSTRIAL COMPLEX",description:'After you gain or replenish commodities, you may spend a number of commodities equal to the combined cost listed on any number of " Axis Order " cards in your reinforcements to place those cards in your play area. You cannot give your commodities to other players as part of a transaction.'},{name:"ARMS DEALERS",description:"When a player negotiates a transaction, they may exchange Axis Order cards in their play area as part of that transaction. You cannot resolve the effects of Axis Order cards."}],promissoryNote:{name:"Industry Secrets",description:"When 1 or more of your units use PRODUCTION : Place this card face up in your play area to apply +4 to the PRODUCTION value of those units and reduce the combined cost of the produced units by 1 for this use of PRODUCTION. At the start of the status phase, return this card to the Axis player."},technologies:[{name:"Rift Engines",type:R,description:"After you activate a system, you may exhaust this card to choose 1 ship you control and roll a die. On a result of 1-3, remove that ship from the game board; on a result of 4-10, apply +2 to that ship\u2019s move value during this tactical action."},{name:"Emergency Deployment",type:R,description:"ACTION: Exhaust this card to place or move 1 of your space docks onto a planet you control that does not contain a space dock."}],startingTechnologies:["sarween-tools","ai-development-algorithm"],startingUnits:{[_]:3,[j]:1,[z]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Bearer of Heavens",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage After this ship produces 1 or more hits during a round of space combat, you may repair 1 ship you control in this system."]},mech:{name:"Forgetender",stats:{cost:2,combat:6},abilities:["You may treat a spacedock on this planet as if it has PRODUCTION 5. Sustain Damage"]},breakthrough:{name:"Arms Brokerage",description:"At the start of a player's turn, you may exhaust this card to allow that player to treat 1 of your unit upgrade technologies as their own until the end of that turn. After you replenish commodities, gain a number of trade goods equal to the number of unit upgrade technologies you own."}},leaders:{agent:{name:"Shipmonger Zsknck - Forgeworld Merchant",unlockCriteria:"At Game Start",ability:"ACTION: Exhaust this card to choose 1 player; that player may place 1 cruiser or 1 destroyer from their reinforcements in a system that contains their ships. Then, if you chose another player, gain 2 commodities."},commander:{name:"Designer TckVsk - Diligent Retro-Engineer",unlockCriteria:"Have 4 Axis Order cards of different unit types in 1 or more players\u2019 play areas.",ability:"After a player resolves an Axis Order card: You may spend 6 resources to gain the corresponding unit\u2019s unit upgrade technology."},hero:{name:"Demi-Queen Mdcksssk - Commissioner of Profits",unlockCriteria:"Have 3 Scored Objectives",ability:"GALACTIC FIELD TEST - AGGRESSIVE MARKETING ACTION: Purge this card and give 1 or more Axis Order cards in your play area to 1 or more other players; for each Axis Order card you give to another player, you may force that player to give you 1 promissory note from their hand."}}},"The Olradin League":{abilities:[{name:"POLICIES",description:"When you gather your starting components, place the 3 \u201c Policy \u201d cards near your faction sheet, choose which side of each card to place face up. This faction has the abilities and effects listed on the face up side of each Policy card."}],promissoryNote:{name:"Incite Revolution",description:"ACTION: Place this card face up in your play area to choose and exhaust 1 planet you control. Then, ready 1 non-home planet you control other than Mecatol Rex. At the start of the status phase, return this card to the Olradin player."},technologies:[{name:"False Flag Operations",type:H,description:"At the start of your turn, you may exhaust this card and 1 planet you control to ready 1 non-home planet other than Mecatol Rex."},{name:"Geosympathic Impeller",type:H,description:"After you activate a system, you may exhaust a planet you control of the same type as a planet in that system to apply +1 to the move value of each of your ships during this tactical action."}],startingTechnologies:["psychoarchaeology","scanlink-drone-network"],startingUnits:{[_]:4,[j]:2,[K]:1,[V]:3,[Y]:1},units:{flagship:{name:"Rallypoint",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage When you move this ship, apply +1 to the move value of each of your other ships during this tactical action."]},mech:{name:"Exemplar Bonum",stats:{cost:2,combat:6},abilities:["If you have at least 2 \u201c-\u201d Policies, flip this card. If this planet contains
2no more than 1 of your mechs, apply +1 to its influence value. Sustain Damage","Exemplar Malus (- Side)","If you have at least 2 \u201c+\u201d Policies, flip this card. If this planet contains no more than 1 of your mechs, apply +1 to its resource value. Sustain Damage"]},breakthrough:{name:"Insurrectionist Networking",description:"Once per action, after you resolve a policy ability, you may spend 1 trade good to move 1 of your infantry on the game board into coexistence on a planet in an adjacent system. ACTION : Purge this card to resolve invasion on all planets that contain your coexisting infantry."}},leaders:{agent:{name:"Baggil Wildpaw - Political Haggler",unlockCriteria:"At Game Start",ability:"After a player exhausts a cultural, hazardous, or industrial planet they control, you may exhaust this card to allow that player to ready a planet they control of a different trait than that planet."},commander:{name:"Knak Halfear - Grizzled Negotiator",unlockCriteria:"Control 1 cultural planet, 1 hazardous planet, and 1 industrial planet",ability:"When you pass : You may exhaust 1 non-home planet you control other than Mecatol Rex to gain a number of trade goods equal to that planet\u2019s resource or influence value."},hero:{name:"Pahn Silverfur - Council Speaker",unlockCriteria:"Have 3 Scored Objectives",ability:"SHADOW COUNCIL - CHANGE OF PLANS ACTION: Place 1 infantry from your reinforcements on each planet you control; you may choose and flip 1 Policy card. Then, purge this card."}}},"The Savages of Cymiae":{abilities:[{name:"AUTONETIC MEMORY",description:"When you would draw 1 or more action cards, you may draw 1 less card to either choose 1 card from the action card discard pile and add it to your hand, or place 1 infantry from your reinforcements on a planet you control."},{name:"CYBERNETIC MADNESS",description:"After you add an action card from the discard pile to your hand using your AUTONETIC MEMORY faction ability, you must discard 1 action card. After you fully resolve an action card\u2019s ability text, purge that card instead of discarding it."}],promissoryNote:{name:"Algorithmic Replication",description:"ACTION: Choose 1 action card from the action card discard pile and add it to your hand. Then, purge this card."},technologies:[{name:"Recursive Worm",type:R,description:"At the start of your turn, you may exhaust this card to choose 1 non-home system other than Mecatol Rex that contains 1 or more of your units; place 1 other player\u2019s command token from their reinforcements in that system."}],startingTechnologies:["neural-motivator","ai-development-algorithm"],startingUnits:{[_]:3,[j]:1,[z]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Reprocessor Alpha",stats:{cost:8,combat:"9 (x2)",move:1,capacity:6},abilities:["Sustain Damage After you win a combat in this system, you may take 1 of your opponent\u2019s action cards, at random."]},mech:{name:"Revenant",stats:{cost:2,combat:6},abilities:["At the start of each ground combat round, if this planet contains no more than 1 of your mechs, repair this unit. Sustain Damage"]},breakthrough:{name:"Cybernetic Armoring",description:"After you win a combat, you may purge 1 of your promissory notes from your hand to move 1 other player's command token in the active system to an adjacent system, or gain 2 trade goods. ACTION: Exhaust this card to discard the top 3 cards of the action card deck."},infantry:{tiers:[{name:"Unholy Abomination I",stats:{cost:1,combat:5},abilities:[]},{name:"Unholy Abomination II",stats:{cost:1,combat:4},abilities:["After this unit is destroyed, roll 1 die. If the result is 6 or greater, place the unit on this card. At the start of your turn, place each unit that is on this card on a planet you control, if able."]}]}},leaders:{agent:{name:"Skhot Unit X-12 - Watcher",unlockCriteria:"At Game Start",ability:"When a player discards or purges an action card : You may exhaust this card to allow that player to draw 1 action card."},commander:{name:"Koryl Ferax - The Third Voice",unlockCriteria:"Have 10 or more infantry on the board",ability:"After you gain control of a planet during a tactical action : You may discard 1 action card to place or move 1 mech onto that planet."},hero:{name:"The Voice United - Psionic Maelstrom",unlockCriteria:"Have 3 Scored Objectives",ability:"THE SCREAM - SYMPHONY OF AGONY ACTION: Draw and reveal a number of action cards from the action card deck equal to 1 more than the number of players in the game, give 1 to each other player in the game and keep the rest; each other player must discard 1 action card. Then, purge this card."}}},"The Celdauri Trade Confederation":{abilities:[{name:"PROJECTION OF POWER",description:"At the start of any space combat in a system that is adjacent to or contains 1 or more of your space docks, choose up to 1 ship in that system to gain ANTI-FIGHTER BARRAGE 6 during that combat."},{name:"INDUSTRIALISTS",description:"During setup, place 1 additional space dock in your reinfor
2cements."}],promissoryNote:{name:"Trade Alliance",description:"When you receive this card, if you are not the Celdauri player, you must place it face up in your play area. While this card is in your play area, you can use the Celdauri player\u2019s commander ability, if it is unlocked. If you activate a system that contains 1 or more of the Celdauri player\u2019s units, return this card to the Celdauri player."},technologies:[{name:"Emergency Mobilization Protocols",type:Q,description:"At the end of your turn, you may exhaust this card and spend 1 token from your strategy pool to remove a command token from a system that contains 1 or more of your space docks."}],startingTechnologyChoice:{count:2,options:["antimass-deflectors","sarween-tools","plasma-scoring"]},startingUnits:{[_]:3,[j]:2,[z]:1,[V]:4,[q]:1,[Y]:1},units:{flagship:{name:"Supremacy",stats:{cost:8,combat:"7 (x2)",move:1,capacity:6},abilities:["Sustain Damage Anti-Fighter Barrage 6 (x2) You may use the PRODUCTION ability of other player\u2019s space docks in this system to produce ships."]},mech:{name:"Minuteman",stats:{cost:2,combat:6},abilities:["DEPLOY : After another player activates a system, you may spend 1 trade good or 1 commodity to place 1 mech on a planet in that system that contains 1 of your space docks. Sustain Damage"]},breakthrough:{name:"Trade Protectorate",description:"When you gain this card, flip this card and place it on your faction sheet. Then, place the Celagrom token in a system that contains your ships, if able. The Celagrom token is a second flagship with the attributes, abilities, and ability text on the Celagrom flagship card."},"space-dock":{tiers:[{name:"Trade Port I",stats:{},abilities:["Anti-Fighter Barrage 6 (x2) Production X+2 (X is the resource or influence value of the planet) This unit's PRODUCTION value is equal to 2 more than the resource or influence value of this planet. Up to 3 fighters in this system do not count against your ships' capacity."]},{name:"Trade Port II",stats:{},abilities:["Anti-Fighter Barrage 6 (x2) Production X+4 (X is the resource or influence value of the planet) This unit's PRODUCTION value is equal to 4 more than the resource or influence value of this planet. Up to 3 fighters in this system do not count against your ships' capacity. This unit may use its ANTI-FIGHTER BARRAGE during each round of space combat."]}]}},leaders:{agent:{name:"George Nobin - Esteemed Merchantman",unlockCriteria:"At Game Start",ability:"At the end of a player's tactical action : You may exhaust this card to allow that player to spend 2 trade goods or 2 commodities to place 1 spacedock from their reinforcements on a planet they control in the active system."},commander:{name:"Henry Storcher - Starbase Commander",unlockCriteria:"Have 1 space dock on the game board that is not adjacent to your home system",ability:"After you activate a system that contains 1 or more of your space docks, gain 1 commodity. Your ships may treat systems that contain 1 or more of your space docks as adjacent to each other."},hero:{name:"Titus Flavius - Councilman",unlockCriteria:"Have 3 Scored Objectives",ability:"TRADER MOBILIZATION ACT - MERCHANT REARMAMENT After a player activates a system other than Mecatol Rex : You may place 1 space dock on a planet you control in that system, convert each of your commodities to a trade good, and use the PRODUCTION ability of each of your units in the active system. Then, purge this card."}}},"The Nivyn Star Kings":{abilities:[{name:"CELESTIAL GUIDES",description:"Your units do not roll for gravity rifts. You may ignore the movement effects of anomalies in systems that contain or are adjacent to 1 or more of your structures."},{name:"SINGULARITY POINT",description:"The system that contains the \u201c Wound \u201d token is both a nebula and a gravity rift."},{name:"VOIDSAILORS",description:"When you explore a frontier token, you may draw 1 additional card; choose 1 to resolve and return the rest to the frontier exploration deck. Then, shuffle that deck."}],promissoryNote:{name:"Nivyn Guidance",description:"After you activate a system: During this activation, you may ignore the effects of each anomaly. Return this card to the Nivyn player at the end of this activation."},technologies:[{name:"Voidwake Missiles",type:R,description:"After 1 or more of your units with SUSTAIN DAMAGE makes a combat roll, you may choose 1 of those units to become damaged to reroll its combat roll."}],startingTechnologies:["plasma-scoring","dark-energy-tap"],startingUnits:{[M]:1,[_]:3,[j]:1,[K]:1,[W]:1,[V]:3,[Y]:1},units:{flagship:{name:"Eradica",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage When a unit in this system would be destroyed, you may remove it from the game board instead."]},mech:{tiers:[{name:"Voidflare Warden I",stats:{cost:2,combat:6},abilities:["Sustain Damage After this system is activated, you may have this unit become damaged to place or move the Wound token into this system."]},{name:"Voidflare Warden II",stats:{cost:2,combat:4},abilities:["Sustain Damage After a system is activated, you may have this unit become damaged to place or move the Wound token into this system."]}]},breakthrough:{name:"Anomaly Stabilization",description:"The system that contains the Wound token is also an entropic scar. You may ignore the effects of entropic scars. You may treat entropic scars as ingress tokens."}},leaders:{agent:{name:"Suldhan Wraeg - Shrouded Advisor",unlockCriteria:"At Game Start",ability:"When a player would use 1 unit\u2019s non- PRODUCTION unit ability in a system that contains or is adjacent to an anomaly, you may exhaust this card to prevent that unit from using that unit ability."},commander:{name:"Thussad Krath - High Inquisitor",unlockCriteria:"Have units in 2 different non-home anomalies",ability:"When 1 or more of your damaged units make a combat roll, up to 2 of those units may roll an additional combat die."},hero:{name:"Krill Drakkon - Star-Crowned King",unlockCriteria:"Have 3 Scored Objectives",ability:"SINGULARITY CRADLE - EYE OF THE ABYSS ACTION: Each unit on the game board
2with SUSTAIN DAMAGE, other than your mechs, becomes damaged, if able. Place this card near the game board; you may treat each unit you control as adjacent to the system that contains the Wound token until the end of this game round. At the end of this game round, purge this card."}}},"The Kollecc Society":{abilities:[{name:"CLOAKED FLEETS",description:"After you produce 1 or more ships, you may place up to 2 of those ships on your faction sheet, those ships are captured."},{name:"SHROUD OF LITH",description:"After movement, if the active system contains 1 or more of your non- fighter ships, you may place up to 2 of your captured ships and 2 of your captured ground forces from your faction sheet in that system\u2019s space area."},{name:"TREASURE HUNTERS",description:"At the start of your turn, you may look at the top card of the cultural, hazardous, or industrial exploration deck. Then, look at the top card of the relic deck."}],promissoryNote:{name:"AI Survey",description:"At the start of your turn : You may look at either the top card of the cultural, hazardous, and industrial exploration decks, or the top card of the relic deck. Then, return this card to the Kollecc player."},technologies:[{name:"Seeker Drones",type:H,description:"ACTION: Exhaust this card to choose 1 of your neighbors that has 1 or more relic fragments. That player gains 2 trade goods and must give you 1 of those relic fragments of your choice."},{name:"Shrouded Skirmishers",type:H,description:"At the start of a space combat, you may choose 1 of your ships in the active system that did not begin this action in that system; roll a die. On a result equal to or greater than that ship's combat value, produce 1 hit; your opponent must assign it to 1 of their ships."}],startingTechnologies:["scanlink-drone-network"],startingUnits:{[_]:4,[j]:2,[K]:1,[V]:2,[Y]:1},units:{flagship:{name:"Nightingale V",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage When this unit retreats, you may capture each of your units that retreat."]},mech:{name:"Nightshade Vanguard",stats:{cost:2,combat:6},abilities:["At the end of a tactical action in this system, you may place up to 2 ground forces from this planet onto your faction sheet, those units are captured. Sustain Damage"]},breakthrough:{name:"The Collector's Museum",description:"When you explore a planet, you may exhaust this card to resolve a card from that exploration deck's discard pile instead; if you would discard that card, instead shuffle it into the corresponding exploration deck."}},leaders:{agent:{name:"Captain Dust - Artifact Broker",unlockCriteria:"At Game Start",ability:"At the start of a player's turn : You may exhaust this card to allow that player to reveal the top 2 cards of an exploration deck that matches a planet they control; they gain any relic fragments that they revealed and discard the rest."},commander:{name:"Kado S\u2019mah-Qar - Coordinator",unlockCriteria:"Have 4 relic fragments",ability:"This card satisfies a blue technology prerequisite. When you retreat, if the active system does not contain 1 of your command tokens, you do not place a command token in the system your ships retreated to."},hero:{name:"Dorrahn Griphyn - The Collector",unlockCriteria:"Have 3 Scored Objectives",ability:"SHADOWCASTER - STEALTH EXPEDITION ACTION: Draw a number of relic cards up to an amount equal to the number of players in the game, choose 1 to gain, and return the rest to the relic deck. Then, shuffle that deck and purge this card."}}},"The Berserkers of Kjalengard":{abilities:[{name:"GLORY",description:"After you win a combat, you may place or move a Glory token into the active system, or spend 1 token from your strategy pool to research a unit upgrade technology of the same type as 1 of your units that participated in that combat."},{name:"HEROISM",description:"Capture your fighters and infantry that are destroyed during combat. When you pass, for each Glory token on the game board, you may return 4 of your captured units to gain 1 command token."},{name:"VALOR",description:"When units make a combat roll in a system that contains a Glory token, each result of 10, before applying modifiers, produces 1 additional hit."}],promissoryNote:{name:"Vassalage",description:"At the start of combat : Apply +1 to the results of each of your fighters ' combat rolls during this combat. The Kjalengard player captures each of your fighters destroyed during this combat. Then, return this card to the Kjalengard player."},technologies:[{name:"Zhrgar Stimulants",type:I,description:"Once per action, after a player produces 1 or more hits during a round of combat in a system that contains a Glory token, gain 1 trade good. After a player rolls combat dice, you may exhaust this card to allow that player to reroll any number of those dice."}],startingTechnologyChoice:{count:1,options:[]},startingUnits:{[_]:4,[j]:2,[z]:1,[V]:4,[q]:1,[Y]:1},units:{flagship:{name:"Hulgade\u2019s Hammer",stats:{cost:8,combat:"7 (x2)",move:1,capacity:6}
2,abilities:["Sustain Damage After the first round of a combat in this system, place up to 2 of your captured units in this system or on that planet."]},mech:{name:"Skald",stats:{cost:2,combat:6},abilities:["When you pass, place 1 infantry from your reinforcements on this planet if there is a Glory token in or adjacent to this system. Sustain Damage"]},breakthrough:{name:"Bannerhalls",description:"For each Glory token on the game board, you control 1 Bannerhall card. Once per action, when a player wins a combat in a system that contains a Glory token, ready each Bannerhall card."},carrier:{tiers:[{name:"Star Dragon I",stats:{cost:3,combat:8,move:1,capacity:4},abilities:["This unit may ignore the movement effects of non- supernova anomalies."]},{name:"Star Dragon II",stats:{cost:3,combat:7,move:2,capacity:6},abilities:["This unit may ignore the movement effects of anomalies."]}]}},leaders:{agent:{name:"Merkismathr Asvand - Marshal of Trade",unlockCriteria:"At Game Start",ability:"At the start of a combat : Exhaust this card to move a Glory token to the active system, if able. Then, the active player may gain a number of commodities equal to the number of neighbors they have."},commander:{name:"Sdallari Tvungovot - Marshal Engineer",unlockCriteria:"Have 2 Glory tokens on the game board",ability:"When researching a unit upgrade technology, each of your unit upgrade technologies may satisfy 1 prerequisite it shares with the technology you are researching."},hero:{name:"Ygegnad, The Thunder - Honorary Skald",unlockCriteria:"Have 3 Scored Objectives",ability:"A TALE OF LEGENDS - FOR ETERNAL GLORY ACTION: For each system that contains a Glory token, remove up to 1 command token in or adjacent to that system from the game board and gain 1 command token, if able. Then, purge this card."}}},"The Mirveda Protectorate":{abilities:[{name:"PRIVILEGED CITIZENRY",description:"Each system can contain a number of your PDS equal to the number of command tokens in your fleet pool. For the purpose of scoring objectives, you may treat each of your PDS units as though it is a structure on any planet you control."},{name:"COMBAT DRONES",description:"Your space docks cannot produce infantry. At the start of invasion, you may replace each of your fighters in the active system with 1 infantry unit. During invasion, your infantry in the space area of the active system do not count against your ships\u2019 capacity."}],promissoryNote:{name:"Rapid Assembly",description:"At the start of your turn: You may move up to 2 PDS units you control to a planet you control. Then, return this card to the Mirveda player."},technologies:[{name:"Orbital Defense Grid",type:Q,description:"At the start of invasion, choose up to 1 unit you control in the active system ; that unit gains PLANETARY SHIELD. When a player commits a unit to land on a planet you control, you may exhaust this card to destroy that unit."}],startingTechnologies:["ai-development-algorithm"],startingUnits:{[_]:2,[j]:2,[K]:1,[V]:5,[q]:1,[Y]:1},units:{flagship:{name:"Nexus",stats:{cost:8,combat:"9 (x2)",move:1,capacity:3},abilities:["Sustain Damage After each round of space combat in this system, place 1 fighter from your reinforcements in this system."]},mech:{name:"Javelin",stats:{cost:2,combat:6},abilities:["For every 2 unit upgrade technologies you own, apply +1 to the result of this unit's combat rolls. Sustain Damage"]},breakthrough:{name:"Stabilization Arrays",description:"If you have the Fighter II unit upgrade technology, flip this card and place it on top of Fighter II."},pds:{tiers:[{name:"Gauss Cannon I",stats:{move:1},abilities:["Space Cannon 6 Bombardment 6 This unit is placed in a space area instead of on a planet. This unit can move and retreat as if it were a ship. This unit can be blockaded, if it is blockaded, it is destroyed."]},{name:"Gauss Cannon II",stats:{move:2,capacity:1},abilities:["Space Cannon 4 Bombardment 4 This unit is placed in a space area instead of on a planet. This unit can move and retreat as if it were a ship. This unit can be blockaded, if it is blockaded, it is destroyed."]}]}},leaders:{agent:{name:"Logic Machina - Weapons Development",unlockCriteria:"At Game Start",ability:"After a player gains a unit upgrade technology : You may exhaust this card to allow that player to spend 1 command token from their strategy pool to research 1 technology of the same color as any 1 of that unit upgrade's prerequisites."},commander:{name:"Assault Machina - Delta Shield",unlockCriteria:"Own 2 unit upgrade technologies",ability:"During Movement, for each infantry you transport, you may replace that unit with 1 fighter. You may use the SPACE CANNON of 1 of your units against units that are adjacent to that unit\u2019s system."},hero:{name:"Wrath Machina - AI Mainframe",unlockCriteria:"Have 3 Scored Objectives",ability:"DHOR\u2019S HAMMER - PEACE AT LAST ACTION: Place up to 3 PDS units from your reinfor
2cements on planets you control and choose 1 system; your PDS units may use their SPACE CANNON on ships in that system, and BOMBARDMENT against units on 1 planet in that system. Then, purge this card."}}},"The Gledge Union":{abilities:[{name:"MANTLE CRACKING",description:"ACTION: Place 1 Core token on a non-home planet you control other than Mecatol Rex that does not contain a Core token to gain up to 4 trade goods."},{name:"CELESTIAL RECLAMATION",description:"Planets that contain Core tokens have a base resource value of 2 and influence value of 0. Core tokens cannot be removed from the planet that contains them."},{name:"DEEP MINING",description:"When you would explore a planet that contains 1 of your mechs or structures, you may instead gain 1 trade good."}],promissoryNote:{name:"GLEdge Base",description:"ACTION: Attach this card to a non-home planet you control. This planet\u2019s resource value is increased by 2."},technologies:[{name:"Lightning Drives",type:H,description:"During movement, you may increase the move value of each of your non- fighter ships not transporting any fighters or infantry by 1."}],startingTechnologyChoice:{count:2,options:["psychoarchaeology","scanlink-drone-network","ai-development-algorithm"]},startingUnits:{[M]:1,[_]:2,[j]:1,[z]:1,[W]:1,[V]:3,[Y]:1},units:{flagship:{name:"Beg Bersha",stats:{cost:8,combat:7,move:1,capacity:3},abilities:["Sustain Damage Bombardment 7 When this unit makes a combat or ability roll, it rolls 1 additional die for each mech in or adjacent to this system."]},mech:{name:"Exodriller",stats:{cost:2,combat:6},abilities:["When you exhaust this planet to spend resources, you may also spend 1 of its influence as a resource. Sustain Damage"]},breakthrough:{name:"Dhonraz Installations",description:"Planets you control that contain core tokens are also treated as stations except for the purposes of control; units can be committed to, produced on, and placed on these planets. Stations you control have SPACE CANNON 5."},pds:{tiers:[{name:"Orion Platform I",stats:{},abilities:["Planetary Shield Space Cannon 6 When this unit makes a SPACE CANNON roll against another player\u2019s units, if it rolls at least 1 result of 9 or 10, explore this planet."]},{name:"Orion Platform II",stats:{},abilities:["Planetary Shield Space Cannon 5 When this unit produces 1 or more hits against another player's units, explore this planet. You may use this unit\u2019s SPACE CANNON against ships that are adjacent to this unit's system."]}]}},leaders:{agent:{name:"Durran - Ember of the Union",unlockCriteria:"At Game Start",ability:"When 1 or more of a player\u2019s units use PRODUCTION : You may exhaust this card to apply +3 to the total PRODUCTION value of that player\u2019s units."},commander:{name:"Voldun - Forge Lord",unlockCriteria:"Control non- fighter ships with a total combined cost value of at least 10 in 1 system",ability:"When you use the PRODUCTION of 1 or more of your units, you may increase the total PRODUCTION value of those units by 1 for each space dock you control."},hero:{name:"Gorthrim - Chief of Expeditions",unlockCriteria:"Have 3 Scored Objectives",ability:"MAGNUM OPUS - WORLD SHAPERS ACTION: Reveal cards from any non-frontier exploration decks until you reveal up to 3 attachments, if able; attach those cards to any planets you control of the corresponding planet type, and discard the rest. Then, purge this card."}}},"The Ghoti Wayfarers":{abilities:[{name:"ABYSSAL EMBRACE",description:"When you create the game board, place the Ghoti Space tile where your home system would normally be placed. The Ghoti Space system is not a home system."},{name:"MOBILE COMMAND",description:"The system that contains your flagship is your home system. Your flagship cannot be captured and you cannot score public objectives if your flagship is not on the game board."},{name:"SPAWNING GROUNDS",description:"During setup, gain and ready the Ghoti planet card and its planet ability card ; you cannot lose those cards."}],promissoryNote:{name:"Ghoti Relay",description:"At the start of your turn : Place this card in your play area to produce up to 2 ships in a system that contains 1 or more of your ships. At the start of the status phase, return this card to the Ghoti Player."},technologies:[{name:"Networked Command",type:R,description:"Up to 3 ships in your home system do not count against your fleet pool. When you cast 1 or more votes, you may exhaust this card to cast an additional number of votes equal to the number of command tokens in your fleet pool."},{name:"Parallel Production",type:R,description:"When you produce 1 or more units, you may produce 1 additional unit in each of 2 systems that contain 1 or more of your ships and 1 of your command tokens."}],startingTechnologyChoice:{count:1,options:["gravity-drive","sling-relay"]},startingUnits:{[D]:1,[_]:3,[K]:1,[V]:2},units:{flagship:{name:"All Mother",stats:{cost:6,combat:"7 (x2)",move:1,capacity:5},abilities:["Sustain Damage Production X (number of fleet pool command tokens ) While in play, this unit is also treated as a space dock with a PRODUCTION value equal to the number of tokens in your fleet pool."]}
2,mech:{name:"Tioleombp",stats:{cost:2,combat:6},abilities:["This unit can be blockaded. When producing ships in your home system, place up to 1 of those units in this system\u2019s space area if it is not blockaded. Sustain Damage"]},breakthrough:{name:"Cult of the All-Mother",description:"When you pass, you may exhaust this card to move 1 ingress token into an empty system, or move 1 of your ships to an adjacent system that contains your ships. Your units may retreat to any empty system that does not contain another player's ships."}},leaders:{agent:{name:"Becece - Caretaker of Worlds",unlockCriteria:"At Game Start",ability:"When a player produces 1 or more units: You may exhaust this card to allow that player to either produce 2 additional units or gain 1 trade good."},commander:{name:"Ceie Doleegueaunm - Abyssal Queen",unlockCriteria:"Have units in 3 systems that do not contain planets",ability:"After you activate a system: You may treat systems that contain no planets as adjacent to each other during this tactical action."},hero:{name:"Nmenmede - Ghoti All Mother",unlockCriteria:"Have 3 Scored Objectives",ability:"TRANSCENDENCE - THE GHOTI ARISE ACTION: For each system that contains 1 or more of your ships, you may replace 1 of your non- fighter ships in that system with a ship from your reinforcements that has a cost value of up to 2 greater than the cost value of that ship. Then, purge this card."}}},"The Ghemina Raiders":{abilities:[{name:"THE LADY & THE LORD",description:"During setup, place 1 additional flagship in your reinforcements and the additional Ghemina Hero next to your faction sheet. This additional flagship has the abilities and attributes listed on the Lord flagship card. You have 2 Heroes."},{name:"RULE OF TWO",description:"During a round of combat in a system that contains exactly 2 of your non- fighter ships, if those ships have the same unit type, apply +2 to the result of each of those unit\u2019s combat rolls."}],promissoryNote:{name:"Raid Leaders",description:"After you activate a system: Choose 1 non- fighter ship you control; during this action, that unit gains BOMBARDMENT 5(x2) and a capacity value of 2. Return this card to the Ghemina player at the end of this action."},technologies:[{name:"War Song Implants",type:I,description:"After you win a space combat, you may ready 1 planet you control."}],startingTechnologies:["psychoarchaeology","dark-energy-tap"],startingUnits:{[_]:3,[j]:2,[z]:1,[V]:3,[Y]:2},units:{flagship:{tiers:[{name:"The Lady",stats:{cost:6,combat:"7 (x2)",move:2,capacity:3},abilities:["Sustain Damage Bombardment 5 (x4) When a structure you do not control in this system is destroyed, gain 1 trade good."]},{name:"The Lord",stats:{cost:6,combat:"7 (x2)",move:2,capacity:7},abilities:["Sustain Damage After a player explores a planet in this system, place 1 infantry from their reinforcements on that planet."]}]},mech:{name:"Jotun",stats:{cost:2,combat:6},abilities:["After you win a ground combat on this planet, if this planet contains exactly 1 other mech, explore this planet. Sustain Damage"]},breakthrough:{name:"Raiding Parties",description:"During each round of combat, you may choose 1 of your participating units; roll that unit\u2019s combat roll twice and resolve the result of your choice. When you announce a retreat, you may exhaust this card to immediately resolve that retreat."},carrier:{tiers:[{name:"Combat Transport I",stats:{cost:3,combat:9,move:2,capacity:4},abilities:[]},{name:"Combat Transport II",stats:{cost:3,combat:9,move:2,capacity:6},abilities:["You may reroll 1 of your unit's combat dice during each round of ground combat on a planet in this system that contains 2 or fewer of your infantry."]}]}},leaders:{agent:{name:"Skarvald & Torvar - Raid Heralds",unlockCriteria:"At Game Start",ability:"When the active player produces 1 or more hits during a round of combat : You may exhaust this card to allow that player to produce 1 additional hit."},commander:{name:"Jarl Vel & Jarl Jotrun",unlockCriteria:"Have 2 flagships on the game board",ability:"RAID LEADERS After you win a combat in a system that contains
2no planets or on a planet that contains a structure, you may gain 1 trade good. RAID LEADERS While you are the active player, players that have two or fewer command tokens on the game board cannot cancel hits your units or abilities produce."},hero:{name:"Kantrus - The Lord",unlockCriteria:"Have 3 Scored Objectives",ability:"DESTINY DRIVE - ALLEGED BIRTHRIGHT ACTION: Purge this card to choose 1 non-home planet other than Mecatol Rex that does not contain another player\u2019s units and is adjacent to a system that contains 1 of your flagships ; gain control of that planet. Then, ready that planet."}}},"The Li-Zho Dynasty":{abilities:[{name:"CUNNING",description:"After you perform a tactical action in a system, you may attach 1 \u201cTrap\u201d card from your reinforcements to a planet in that system that contains 1 or more of your infantry units."},{name:"SUBTERFUGE",description:"Trap attachments are attached face-down and remain hidden until revealed; you may look at Trap attachments at any time. You do not count trap attachments toward fulfilling objectives."}],promissoryNote:{name:"Trusted Counselor",description:"At the start of a space combat you are participating in: You may place up to 2 fighters from your reinforcements into the space area of the active system. Then, return this card to the Li-Zho player."},technologies:[{name:"Wraith Engine",type:H,description:"After you activate a non-home system, you may exhaust this card to choose 1 ship you control; you may treat that ship as adjacent to the active system until the end of this tactical action."}],startingTechnologies:["psychoarchaeology","antimass-deflectors"],startingUnits:{[_]:4,[j]:2,[z]:1,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Silence of Stars",stats:{cost:8,combat:"5 (x2)",move:1,capacity:3},abilities:["Sustain Damage This unit can only be destroyed by an uncanceled hit being assigned to it."]},mech:{name:"Oro-Zhin Elite",stats:{cost:2,combat:6},abilities:["At the start of your turn, you may remove 1 trap attachment from the game board and attach it to this planet, or swap any trap attachment with 1 on this planet. Sustain Damage"]},breakthrough:{name:"Professional Intrigue",description:"After you perform a tactical action in a non-home system, you may move 1 of your infantry on the game board into coexistence on a planet in that system. When a player ends your units' coexistence on a planet, they must discard 1 action card, if able."},fighter:{tiers:[{name:"Heavy Bomber I",stats:{cost:"1 (x2)",combat:9},abilities:["Bombardment 9"]},{name:"Heavy Bomber II",stats:{cost:"1 (x2)",combat:8,move:2},abilities:["Bombardment 8 This unit may move without being transported. Fighters in excess of your ships' capacity count against your fleet pool."]}]}},leaders:{agent:{name:"Vasra Ivo - Intelligence Officer",unlockCriteria:"At Game Start",ability:"At the end of a player\u2019s turn: You may exhaust this card to allow that player to place 2 fighters from their reinforcements in the space area of a system that contains 1 or more of their ships."},commander:{name:"Dhume Tathu - Ruthless Strategist",unlockCriteria:"Have 4 trap attachments on the game board",ability:"During a round of combat in which no more than 1 of your non- fighter ships or 1 of your infantry is participating, you may choose 1 of your units in that combat, that unit rolls 1 additional combat die."},hero:{name:"Khaz-Rin Li-Zho - Empress",unlockCriteria:"Have 3 Scored Objectives",ability:"STAR'S RAZOR - CLOSING MOVES ACTION: You may attach, or remove and attach, each Trap card to a planet on the game board; place a total of up to 12 fighters in any number of systems that contain 1 or more planets with Trap attachments and no other player\u2019s ships. Then, purge this card."}}},"The Zealots of Rhodun":{abilities:[{name:"CONSPIRATORS",description:"Once per agenda phase, after an agenda is revealed, if you are not the speaker, you may choose to vote after the speaker on that agenda."},{name:"ANCIENT KNOWLEDGE",description:"When you use a technology specialty to ignore a prerequisite on a technology card you are researching, you may ignore 1 additional prerequisite of the same color. After you exhaust a planet to use its technology specialty, you may gain 1 commodity."}
2],promissoryNote:{name:"Favor of Rhodun",description:"When you ignore a prerequisite on a technology card you are researching : You may ignore 1 additional prerequisite of the same color. Then, return this card to the Rhodun player."},technologies:[{name:"Sanctification Field",type:H,description:"When you activate a system, or a system that contains 1 or more of your units is activated, you may choose 1 technology or non- fighter, non- structure unit upgrade technology another player controls; until the end of this tactical action, that card is treated as though it had no ability text."},{name:"Pilgrimage Beacons",type:H,description:"Once during your turn, when you exhaust 1 or more planets you control that have a technology specialty, you may produce 1 ship in 1 system that contains 1 of those planets."}],startingTechnologies:["bio-stims"],startingUnits:{[_]:4,[j]:1,[K]:1,[z]:1,[V]:3,[Y]:1},units:{flagship:{name:"Reckoning",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage For each unit upgrade technology your opponent owns, apply +1 to the results of this unit\u2019s combat rolls."]},mech:{name:"Templar",stats:{cost:2,combat:6},abilities:["Apply +1 to this unit's combat rolls for each faction technology your opponent owns. Sustain Damage"]},breakthrough:{name:"Rhodun's Reliquary",description:"After you gain control of a legendary or fracture planet, you may research 1 technology or remove 1 of your command tokens in that system and return it to your reinforcements."}},leaders:{agent:{name:"Priestess Tuh - The Edifier",unlockCriteria:"At Game Start",ability:"After a player researches a technology: You may exhaust this card to allow that player to produce 1 ship in their home system or a system that contains a planet they control that has a technology specialty."},commander:{name:"Bishop Ulin - The Librarian",unlockCriteria:"Have a technology with 2 or more prerequisites",ability:"When researching a technology, you may use the technology specialty of 1 planet you control to ignore any 1 prerequisite on the technology card you are researching."},hero:{name:"Saint Binal - The Prophet",unlockCriteria:"Have 3 Scored Objectives",ability:"BLESSING OF THE ANCIENTS - FORGOTTEN SORCERY ACTION: Place this card and up to 3 non- faction technologies near the game board, you gain those technologies. At the start of the next strategy phase, purge all but 1 of those technologies and this card."}}},"The Tnelis Syndicate":{abilities:[{name:"PLAUSIBLE DENIABILITY ",description:"When you draw 1 or more secret objective cards, draw 1 additional secret objective card. Then, return 1 secret objective card to the secret objective deck; shuffle that deck."},{name:"STEALTH INSERTION",description:'If you place units onto the same planet as another player\'s units, your units must participate in combat during the " Ground Combat " step.'},{name:"INFORMATION BROKERS",description:"You may have 1 additional unscored secret objective."},{name:"PLAUSIBLE DENIABILITY",description:"At any time, if another player satisfies the requirements of one of your secret objectives, you may ignore its requirements; if you score that objective, draw 1 secret objective."},{name:"STEALTH CORPS",description:"After 1 or more of your units enter coexistence on a planet, destroy up to 1 ground force on that planet."},{name:"INFORMATION BROKERS",description:"You may have 1 additional unscored secret objective."}],promissoryNote:{name:"Plots Within Plots",description:"When you draw 1 or more secret objective cards: Draw 1 additional secret objective card. Then, return 1 secret objective card to the secret objective deck; shuffle that deck. Then, return this card to the Tnelis player."},technologies:[{name:"Daedalon Flight System",type:R,description:"After a round of space combat in a system that contains 1 or more of your mechs, you may have 1 of those units become damaged to produce 1 hit and assign it to a cruiser, dreadnought, or destroyer you do not control in that system."}],startingTechnologyChoice:{count:2,options:["antimass-deflectors","neural-motivator","plasma-scoring"]},startingUnits:{[_]:4,[j]:1,[z]:2,[V]:2,[q]:1,[Y]:1},units:{flagship:{name:"Principia Aneris",stats:{cost:8,combat:"9 (x4)",move:2,capacity:3},abilities:["Sustain Damage At the start of a round of combat, choose 1 ship in this system, during this combat round, that ship rolls 1 less combat die."]},mech:{name:"Daedalon",stats:{cost:2,combat:6}
2,abilities:["DEPLOY : After you move a destroyer into a non-home system other than Mecatol Rex, you may spend 3 resources to place 1 mech on a planet in that system. Sustain Damage"]},breakthrough:{name:"Hidden Hardpoints",description:"At the end of a round of ground combat, you may discard 1 secret objective to have all your participating units enter coexistence ; that combat ends in a draw. When another player ends your units' coexistence on a planet, you may draw 1 secret objective."},destroyer:{tiers:[{name:"Blockade Runner I",stats:{cost:1,combat:9,move:2},abilities:["Anti-Fighter Barrage 9 (x3)"]},{name:"Blockade Runner II",stats:{cost:1,combat:8,move:2},abilities:["Anti-Fighter Barrage 6 (x4) This ship can move through systems that contain other players' ships."]}]}},leaders:{agent:{name:"Davish S\u2019Norri - Labor Relations Specialist",unlockCriteria:"At Game Start",ability:"At the start of invasion : You may exhaust this card to choose 1 ship in the active system. During this invasion, that ship may use its ANTI-FIGHTER BARRAGE as if it were BOMBARDMENT."},commander:{name:"Fillipo Rois - Logistical Expeditor",unlockCriteria:"Have 6 of your destroyers on the game board",ability:"After you activate a system, you may produce and assign 1 hit to a non- fighter ship you control in a system to apply +1 to the move value of 1 of your ships in that system until the end of this tactical action."},hero:{name:"Turra Sveyar - Shadow Councilor",unlockCriteria:"Have 3 Scored Objectives",ability:"CONTRACT NETWORK - FRIENDS IN LOW PLACES After another player scores a secret objective : You may attach, or remove and attach, this card to that secret objective. You treat the attached secret objective as if it were a public objective. After you score the attached objective, purge this card."}}},"The Vaden Banking Clans":{abilities:[{name:"FINE PRINT",description:"After a player resolves the secondary ability of 1 of your strategy cards, place up to 1 of their control tokens on your faction sheet."},{name:"COLLATERALIZED LOANS",description:"After 1 of your opponent\u2019s ships is destroyed during a round of space combat, you may remove 1 of that player\u2019s control tokens from your faction sheet to place 1 ship of that type from your reinforcements in the active system."},{name:"BINDING DEBTS",description:"Other players may place their control tokens on your faction sheet at any time. At the start of the status phase, each of your neighbors may give you 1 trade good to remove up to 2 of their control tokens from your faction sheet."}
2],promissoryNote:{name:"Vaden Handshake",description:"After you activate a system: You may spend any number of trade goods ; for each trade good spent, apply +1 to the move value of 1 non- fighter ship you control during this activation. Return this card to the Vaden player at the end of this activation."},technologies:[{name:"Midas Turbine",type:R,description:"After you activate a system, you may exhaust this card and spend any number of trade goods ; for each trade good you spent, apply +1 to the move value of 1 non- fighter ship you control."},{name:"Krovoz Strike Teams",type:R,description:"After another player\u2019s unit uses SUSTAIN DAMAGE to cancel a hit produced by your units or abilities, you may exhaust this card to destroy that unit. After you produce 1 or more hits during a round of combat, you may spend 1 trade good to produce 1 additional hit."}],startingTechnologyChoice:{count:2,options:["antimass-deflectors","neural-motivator","sarween-tools"]},startingUnits:{[_]:3,[j]:1,[K]:1,[W]:1,[V]:2,[Y]:1},units:{flagship:{name:"Aurum Vadra",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage Bombardment 5 (x2) After this unit produces 1 or more hits during a BOMBARDMENT roll, gain 1 trade good."]},mech:{name:"Collector",stats:{cost:2,combat:6},abilities:["At the end of a round of ground combat, you may remove 1 of your opponent\u2019s control tokens from your faction sheet to place 1 infantry unit from your reinforcements on this planet. Sustain Damage"]},breakthrough:{name:"High Security Vault",description:"Other players cannot take any of your trade goods, commodities, or relic fragments unless you allow it. When another player returns 1 of your promissory notes, place 1 of their control tokens on your faction sheet."}},leaders:{agent:{name:"Yudri Sukhov - Developer",unlockCriteria:"At Game Start",ability:"At the start of a player's turn: You may exhaust this card to allow that player to choose 1 planet they control; that player gains a number of commodities equal to that planet's influence value."},commander:{name:"Komdar Borodin - Banker",unlockCriteria:"Have 1 or more different players\u2019 control tokens on your faction sheet for every 2 players in this game",ability:"At the start of the status phase : Gain 1 trade good for each secret objective you have scored and 1 commodity for each public objective you have scored."},hero:{name:"Putriv Sirvonsk - Clanmaster Prime",unlockCriteria:"Have 3 Scored Objectives",ability:"ACULA NETWORK - DEBTS COME DUE ACTION: For each control token that belongs to another player on your faction sheet, you may return that token. If you do, that player must give you 1 of their trade goods, 2 of their commodities, or 1 promissory note from their hand, if able. Then, purge this card."}}},"The Vaylerian Scourge":{abilities:[{name:"CARGO RAIDERS",description:"During the first round of a space combat, you may prevent your opponent from declaring a retreat unless they spend 1 trade good."},{name:"SCOUR",description:"Once per tactical action, after you gain control of a planet, you may discard 1 action card to ready that planet."},{name:"RAZE",description:"After 1 or more of another player's structures are destroyed on a planet that contains your units, you may replenish your commodities."}],promissoryNote:{name:"Clan's Favor",description:"At the start of a round of space combat : The Vaylerian player discards 1 action card. Then, move all of your ships from the active system to an adjacent system that does not contain another player's ships; the space combat ends in a draw. Then, place a command token from your reinforcements in that system and return this card to the Vaylerian player."},technologies:[{name:"Scavenger Exos",type:Q,description:"Once per action, after you win a ground combat, you may draw 1 action card."}],startingTechnologies:["neural-motivator","dark-energy-tap"],startingUnits:{[_]:3,[j]:1,[K]:1,[z]:1,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Lost Cause",stats:{cost:8,combat:"7 (x2)",move:2,capacity:3},abilities:["Sustain Damage At the start of a space combat in this system, you may choose 1 adjacent system. Your opponent cannot retreat to that system."]},mech:{name:"Eclipse",stats:{cost:2,combat:6},abilities:["During your tactical actions, hits produced by SPACE CANNON cannot be assigned to 1 of your ships in this system. Sustain Damage"]},breakthrough:{name:"Gravitic Disruption",description:"After you move 1 or more ships into the active system, you may discard an action card to move 1 of those ships into an adjacent system that does not contain another player\u2019s ships."},cruiser:{tiers:[{name:"Raider I",stats:{cost:2,combat:7,move:2,capacity:1},abilities:["During a round of space combat, if your opponent cannot declare a retreat, hits produced by this
2ship must be assigned to non- fighter ships, if able. This unit may only transport ground forces."]},{name:"Raider II",stats:{cost:2,combat:6,move:3,capacity:1},abilities:["During a round of space combat, if your opponent cannot declare a retreat, hits produced by this ship cannot be canceled and must be assigned to non- fighter ships, if able."]}]}},leaders:{agent:{name:"Yvin Korduul - Political Gambler",unlockCriteria:"At Game Start",ability:"After a player gains control of a planet, you may exhaust this card to allow that player to draw 1 action card."},commander:{name:"Pyndil Gonsuul - Strike Team Coordinator",unlockCriteria:"Control 3 planets that each have the same trait",ability:"After you activate a system: Choose 1 ship you control with a capacity value, apply +2 to that value during this tactical action."},hero:{name:"Dyln Harthuul - Vice Admiral of Fleet Group 15",unlockCriteria:"Have 3 Scored Objectives",ability:"SPEAR OF VAYLAR - HIDDEN VANGUARD After you activate a system: Remove 1 of your command tokens from the board and gain 1 command token. Until the end of this tactical action, apply +1 to the move value of each of your ships and the result of each of your ships\u2019 combat rolls. At the end of this turn, purge this card."}}},"The Veldyr Sovereignty":{abilities:[{name:"CORPORATE ENTITY",description:"During setup, take the additional Veldyr faction promissory notes ; you have 4 faction promissory notes. \u201cBranch Office\u201d attachments do not count toward scoring objectives."},{name:"HOLDING COMPANY",description:"At the start of the status phase, for each planet that has a Branch Office attachment, you may gain 1 commodity or convert 1 of your commodities to a trade good."},{name:"TARGETED ACQUISITION",description:"At the start of the status phase, you may give 1 of your faction promissory notes in your hand to 1 of your neighbors."}],promissoryNote:[{name:"Branch Office - Tax Haven",description:"When you receive this card, you must attach it to a non-home planet you control other than Mecatol Rex that does not have a Branch Office attachment. Its influence value is increased by 1."},{name:"Branch Office - Broadcast Hub",description:"When you receive this card, you must attach it to a non-home planet you control other than Mecatol Rex that does not have a Branch Office attachment. Its influence value is increased by 1."},{name:"Branch Office - Reserve Bank",description:"When you receive this card, you must attach it to a non-home planet you control other than Mecatol Rex that does not have a Branch Office attachment. Its resource value is increased by 1."},{name:"Branch Office - Orbital Shipyard",description:"When you receive this card, you must attach it to a non-home planet you control other than Mecatol Rex that does not have a Branch Office attachment. Its resource value is increased by 1."}],technologies:[{name:"SEIDR Project",type:Q,description:"At the end of each round of space combat, you may use the SPACE CANNON of 1 of your units in the active system against your opponent's ships, without rolling additional dice."}],startingTechnologies:["ai-development-algorithm","dark-energy-tap"],startingUnits:{[_]:4,[j]:1,[z]:1,[W]:1,[V]:3,[q]:1,[Y]:1},units:{flagship:{name:"Richtyrian",stats:{cost:8,combat:"7 (x2)",move:1,capacity:3},abilities:["Sustain Damage When this ship makes a combat roll, it rolls 1 additional die for each round of combat that has been resolved this combat."]},mech:{name:"Aurora Stormcaller",stats:{cost:2,combat:6},abilities:["After a player activates this system, you may remove this unit from the game board to place 1 PDS from your reinforcements on this planet. Sustain Damage"]},breakthrough:{name:"Aurora Research Base",description:"Your home system is also a nebula. Hits produced by the ability rolls of your units in nebulae cannot be canceled. When you pass, explore the frontier deck in your home system."},dreadnought:{tiers:[{name:"Lancer Dreadnought I",stats:{cost:4,combat:5,move:1,capacity:1},abilities:["Sustain Damage Bombardment 5 Space Cannon 8"]},{name:"Lancer Dreadnought II",stats:{cost:4,combat:5,move:2,capacity:1},abilities:['Sustain Damage Bombardment 5 Space Cannon 5 This unit cannot be destroyed by "Direct Hit" action cards.']}]}},leaders:{agent:{name:"Solis Morden - Research and Development",unlockCriteria:"At Game Start",ability:"When a player spends resources to research : You may exhaust this card to allow that player to spend the influence of 1 planet they control as resources."},commander:{name:"Vera Khage - Chief Legal Officer",unlockCriteria:"2 other players control 1 or more planets that have Branch Office attachments",ability:"When you research a technology that is owned by a player who controls a planet with a Branch Office attachment, you may ignore 1 prerequisite on that technology."},hero:{name:"Auberon Elyrin - Chairman",unlockCriteria:"Have 3 Scored Objectives",ability:"TWILIGHT PROTOCOL - A NEW DAWN ACTION: For each planet that has a Branch Office attachment, you may gain 1 unit upgrade technology of the same unit type as 1 owned by the player that c
2ontrols that planet. Then, purge this card."}}},"The Zelian Purifier":{abilities:[{name:"OBSESSIVE DESIGNS",description:"During the action phase, after you research a unit upgrade technology, you may use the PRODUCTION ability of 1 of your space docks in your home system to produce units of that type, reducing the combined cost of the produced units by 2."},{name:"BIOPHOBIC",description:"During the agenda phase, the number of votes you cast is instead equal to the number of planets you exhaust to cast votes."},{name:"PARANOIA",description:"Game effects other than your command tokens cannot prevent you from activating, or moving ships into, your home system."}],promissoryNote:{name:"Hyperkinetic Ordinance",description:"When 1 or more of your units would make a BOMBARDMENT roll: If you produce 1 or more hits during this BOMBARDMENT roll, produce 1 additional hit for that roll. Then, return this card to the Zelian player."},technologies:[{name:"Shard Volley",type:Q,description:"When 1 or more of your units produce 1 or more hits during a BOMBARDMENT roll against a planet, produce 1 additional hit for that roll."}],startingTechnologies:["ai-development-algorithm","antimass-deflectors"],startingUnits:{[_]:5,[j]:1,[z]:1,[W]:1,[V]:1,[q]:1,[Y]:1},units:{flagship:{name:"World-Cracker",stats:{cost:8,combat:5,move:1,capacity:3},abilities:["Sustain Damage Bombardment 5 Anti-Fighter Barrage 5 When this unit makes a combat or unit ability roll, it rolls 1 additional die for each asteroid field adjacent to this unit."]},mech:{name:"Collider",stats:{cost:2,combat:6},abilities:["At the start of invasion, if this unit is in the space area of the active system, you may remove this unit from the game board to destroy 1 unit on a planet in that system. Sustain Damage"]},breakthrough:{name:"Awakened Planetoids",description:"Your planets in the active system participate in space combat if that system contains 1 or more of your ships, and ground combat on themselves if they contain 1 or more of your ground forces. Your planets cannot be assigned hits and have a combat value equal to 10 minus their resource value, minimum 1."},infantry:{tiers:[{name:"Impactor I",stats:{cost:"1 (x2)",combat:8},abilities:["Bombardment 9 During invasion, this unit must commit to a planet it bombards."]},{name:"Impactor II",stats:{cost:"1 (x2)",combat:7},abilities:["Bombardment 8 After this unit is destroyed, roll 1 die. If the result is 6 or greater, place the unit on this card. At the start of your next turn, place each unit that is on this card on a planet you control in your home system."]}]}},leaders:{agent:{name:"Zelian A - The Mutilator",unlockCriteria:"At Game Start",ability:"At the start of invasion : You may exhaust this card to allow the active player to replace 1 of their infantry in the space area of the active system with 1 mech from their reinforcements."},commander:{name:"Zelian B - The Hunter",unlockCriteria:"Have 1 or more ships in 2 systems that contain an asteroid field",ability:"Each of your Dreadnoughts and War Suns without ANTI-FIGHTER BARRAGE gains ANTI-FIGHTER BARRAGE 5."},hero:{name:"Zelian R - The Destroyer",unlockCriteria:"Have 3 Scored Objectives",ability:"CATACLYSM - CELESTIAL IMPACT After you move a unit with BOMBARDMENT into a non-home system other than Mecatol Rex : You may gain trade goods equal to the total combined resource values of planets in that system. If you do, destroy all units on planets in that system and replace that system tile with the Zelian asteroid tile. Then, purge this card and each planet card that corresponds to the replaced system tile."}}}}},J=n.p+"static/media/influence.d1f8e76f5d831abee28c.png",Z=n.p+"static/media/planet.7203e647ebece014b0b7.png",$=n.p+"static/media/resource.4e66e6d47a747142cd01.png",ee=n.p+"static/media/specialty-biotic.683b8aa586590392015c.png",te=n.p+"static/media/specialty-warfare.222674a3f03a4679d5e7.png",ne=n.p+"static/media/specialty-propulsion.767d15a072722915bd40.png",re=n.p+"static/media/specialty-cybernetic.16601911f01cb00be4ac.png",ae=n.p+"static/media/trait-cultural.800b2f56fc7b90d98133.png",oe=n.p+"static/media/trait-hazardous.6495672183040821b58e.png",ie=n.p+"static/media/trait-industrial.37a31434ec37a8efd0db.png";function se(e){return Number.isInteger(e)?e.toString():e.toFixed(1)}class le extends a().Component{constructor(e){super(e),this.getAdjacent=this.getAdjacent.bind(this)}getAdjacent(e){let t=[...A[e]],n=[...A[e]],r=0,a=0,o=0,i=0,s=0,l=[],c={biotic:0,warfare:0,propulsion:0,cybernetic:0,"space-station":0,legendary:0},u={cultural:0,industrial:0,hazardous:0};for(;n.length>0;){let h=n.splice(0,1)[0],d=this.props.tiles[h];if(O.hyperlanes.indexOf(this.props.getTileNumber(d))>=0){let r=[...A[h]],a=r.indexOf(Number(e)),o=O.all[this.props.getTileNumber(d)].hyperlanes,i=Number(d.split("-")[1]);for(let e of o){let o=(e[0]+i)%6,s=(e[1]+i)%6,l=r[o],c=r[s];o===a&&t.indexOf(c)<0?n.push(c):s===a&&t.indexOf(l)<0&&n.push(l)}}if(d in O.all){for(let e in O.all[d].planets){let t=O.all[d].planets[e];r+=1,a+=t.resources,o+=t.influence,t.resources>t.influence?i+=t.resources:t.influence>t.resources?s+=t.influence:(i+=t.resources/2,s+=t.influence/2);let n=[].concat(t.specialty);for(let e of n)e in c&&(c[e]+=1);for(let e of[].concat(t.trait))e in u&&(u[e]+=1)}for(let e in O.all[d].wormhole)O.all[d].wormhole[e]in l||l.push(O.all[d].wormhole[e])}}
2return{planets:r,resources:a,influence:o,optimalResources:i,optimalInfluence:s,specialties:c,traits:u,wormholes:l}}render(){let e=[];for(let t in this.props.tiles)if(this.props.tiles[t]>=0&&this.props.tiles[t]<18||this.props.tiles[t]>=51&&this.props.tiles[t]<59){let n=this.getAdjacent(t),a=this.props.currentPlayerNames[e.length];""===a&&(a="P"+(e.length+1)),e.push((0,r().jsxs)("tr",{children:[(0,r().jsx)("th",{scope:"row",children:a}),(0,r().jsxs)("td",{children:[X.homeSystemToFactionMap[this.props.tiles[t]],(0,r().jsx)("br",{}),"Home Tile: ",this.props.tiles[t]]}),(0,r().jsx)("td",{children:n.resources}),(0,r().jsx)("td",{children:n.influence}),(0,r().jsxs)("td",{title:"Optimal total: "+se(n.optimalResources+n.optimalInfluence),children:[se(n.optimalResources),"/",se(n.optimalInfluence)]}),(0,r().jsx)("td",{children:(0,r().jsxs)("span",{className:"d-flex",children:[[...Array(n.traits.cultural)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:ae,alt:"C"},a+"-cultural-"+t)),[...Array(n.traits.hazardous)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:oe,alt:"H"},a+"-hazardous-"+t)),[...Array(n.traits.industrial)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:ie,alt:"I"},a+"-industrial-"+t)),[...Array(n.wormholes)].map((e,t)=>(0,r().jsx)("p",{className:"icon",children:U[e]},`${a}-wormhole-${t}`))]})}),(0,r().jsx)("td",{children:(0,r().jsxs)("span",{className:"d-flex",children:[[...Array(n.specialties.biotic)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:ee,alt:"B"},a+"-biotic-"+t)),[...Array(n.specialties.warfare)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:te,alt:"W"},a+"-warfare-"+t)),[...Array(n.specialties.propulsion)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:ne,alt:"P"},a+"-propulsion-"+t)),[...Array(n.specialties.cybernetic)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:re,alt:"C"},a+"-cybernetic-"+t)),[...Array(n.specialties["space-station"])].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAvCAYAAACVDljoAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAJgAAAABAAAAmAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKqADAAQAAAABAAAALwAAAAA4hAKFAAAACXBIWXMAABdgAAAXYAE8fGXsAAACymlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj4xNTI8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjE1MjwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjQ5PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj41MDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgq7ftXBAAAUOklEQVRYCcWZCXRdZbXHf3eex9zcmzlpkmbokIaU2pFODEUGgZYZZVJBq4AsdCm8h6gsxOd76ANUZqryRKUihTJYLC20pa3MbaFD0kzNeJPc3JubO0/f2ym2a7mY33MtT1bWufd837nfPvvb+///733gX3Dsen6HuvJb96rPsrT+s0z+Z8z987M7VGBZE83D4c/0c9rPNPufMNlXbWQsq2XV6Qu46Gv3fWqvav4va48kJ9WLe0Pos3G8Pj0urTyvzURS6UkmU+QKGYq9XlKRIVIqgTlnxJ5JEdbmyCQ1GE0GaloaeHtjFxeeM+9T2fCpJh17mEuve0BdcFkrxpJKXOkwqYIGlbNTXJpnMp6kIMZYbBaZriMxGSGlyRGNGEgEIxQ0MUxWE4VCGpXO4LC6KauvZsOjr3HnbZd/oh2fOOGYkT/41UvqC6dUkjHaxUtabLYkg8ExBiaiJKI9DHd2E4sMU+T3ilfN4m2wB+poqrWh09sIDoYwxybIuZ04jGY0CRN18xoZC6f46Q3PsXXrLR9ryycm07U3P6GuOL+FgN/NpMON3pTiwP632b1pH2OHj9B3qJvxnjHyFivJyRT60G4yEoOlpWVM5N7AbQ/xjS9fSvW8JUSHOslndOiKinFUOMhMJmmqrmTJtSvE0GMu+fDzxxp6y3W/Vedd+jmMjdWkDDDcP8wj9/6UF57cROy9GFaTDpfHitdlJh0JY5ssYA6YiabyxBLdxKNjzLXPo9jXRjwt215Ui1WuRScSaDRGLHLfeFLP4iWz+c7aR9R//urLH+nVjxz4r1v/pFZ/ZQnDEld5W4oNT27gsZ89ycS+gwQ8ZkJ5G/HxEayVTmZMryC4p4OJUBrv9Bomo1FCwUFqLRYef/rXeE9dTO/eN9AazNhl2wtZSXa9lUB1Dbl8Grspi11j4IZ/28q6H5/7oTZ96MU7vvu4uuDaVZimeRlMJFj34J2su+UBis1F1M6qYDAch4wJk+yH0aPDIvEYmZyUbNbRPRDBKChQX+2lOm+maMEMUhUFllT7OXIkyITZQXOpgVjKyEg8Tpm/CLtdR1yTZkHLPLY/leemtad9wK4PbP2NV9+vLv7GGRRVutjYfoCf3XYnfTv34PeU4a9xojx2RroGsBqsOHwB9FoDvcFulNLRXFIi3pR4NdmpbBT42XOAjl8+hB0f2xqmEYyNkpnI4ZCEyuYnSQ+Pkre7MDmcxIeOcM1XZ3Pz3ffyxqFN6vd3r/qAscej9/I1P1HPPbFF9WSVWt9+SFWtOFf2yCL/LhWoXqRaWhYpo7dZldQsVM7q+QpdpTKbZyhbYK7gQJnym+qVS65bA/PkHpvCElANla3KZauR7yiXvUSV+KbLfWXyPaCqKuYop7Pk6JjJ5JOzVl1/3dlqd/travX1D09dP37ojn2av/xWdclJs1ly6ckcEND+6gWXMrhjK0WljSQzGqYJ7GSNBZQ2TcGoMMn2ZlHoHRnyiVG06SST4rtUJks2HJKfDVNuCjCaRDA2igCajOoxS3hoDDqMEqsmiWGtTifmWdEIWZidRex6ZS+XXt7CrJaTCHV7f9DZte2HUzYe3/oTWuppXDUTt8PI5vt/w/Dut3B65FqNn5LFLbR3tKM36GloaGTHu+0YJMvntlSTyaQJ79Mxo6WKyqbpODQZKivcVM2cg6fGQefBAzz4i22MpRPEYyPElYMTT/DjtBvYuacdjV7DkqVtvHewj4ww2rTKVp667xW++eMz+NzKGWza/L4rj8fBht/vVksuns+6jVv5xTevQa+zEsllKfO6cHsdxCMCK9ksfmsdNSYr/jnTaJtThsFtQWfUSwxrOIKJydEoBnOU4Jie1//WwcLlPs5ZvJAtG/dx14+fpfvIPqY1VGIpcjLY008hmaS43EMqkSWfAk+Rj0iwg7vuXkvF3CtZ2lh73EauOv+/Vd/hPnVQKeVbuOpozPh9M5Qn0HA0bsCkGmfNVR5vjXr4gUfV1o529dBzL6ibHnpYrbnzLrXm5rWqbpXEZUWLsta1Ka2x+uhviC8U1ga1+LST1f0P/kht2fak+tI118iYxI6MyY4ph9579LPNVKZ8xbXH7zvn1Fa1d7Bdfek766aucdTa396/Wa259mRue/yP/O7732ZmRQPtnWEGoyHqG2s5odjJ1gMHWd7SxvX338OV/347wxuewyi0ni9oMSX0mESU2CV7NZmYAP0k9W01hKJJOvb2kk1kaFw6n5O/0MQVly9HG9Xx3Wvu4fktu4QMnBSVVzEqsq+Qi9Eyfzq9R8bpfXcvL2x4gPyMVZzZUK7RnnXuPaqutQnxOtvXP0EmnEMJXmI0kNNocJpFcOSFSeJZLrj4fH6/fgPtjzyKO1CKvmDFnUtTXCzc7rehLRIazQimSkINRlJEwpJoGkVJczm55CQP3baBcxfcxMZdu7nniRu4+66v4bPbCIf6yRtTKAH/6GAch94iW5Fn78uvUi7Md/S46qpH1aGemLr/+W3KVyZbbZomrq5QXk+jcpXNVRbrFGyY1JkLV6sdncPKvfgs+e5Q3srZci5RRZ6ZambtXPk8BWNOVVTWojyOOvksawlElZc0K52+/Oh3m71cmf7+uWaOT+3rXa+ef3mz0mCWcbPSW/xyNiqzqVhQ2aFWnzRXPXPwzal70Vb5LNRWmjn8zh7GBsepDrjEQyLNyGClQJ2/UhjIxiWXLGMgMUTsYAdl5eVYBeiLvTrcLiPBvAZHUUAQogaLoEBCtn92QxM1JcXCQBl8skZbfSNWmwFnsZtSdw0De8Ls/atC23QClXVNuMwGGTdTV1dLSZFd/Knn8KFRKvJ5fvjYTqUtq3GR0uoYD41N2Y3W7eGEBQvx+6ZjymdFe5Zy3urTKF1xEr95djfFZcV4nMJQyTyBsho8JQEJET3FRW
2XYvH4JoYLIOAcVjXPxVU8nnsngEvFRKbgY8NfIw6cwljm5es3VnL7mPKJdXZhESFsc8vB6M4HSSmrkoVwOG4ms4HYmTMOcSrRl4omucIRXX9snqaXoD43y0qv7yKYFvks9dHTvY35NQH5ez/M/f4yhfQPkZLOUVnGoY4DOsQk0KSXiOErPQD/hvPC2MvHCxs10vNt19KHGQwmefuY5xiZHSOg09O7fS9u0KnGKXoQ3dPaNEJwIi5uM7NzxBm8LTltsXsKpFK//5VVMuTxao9NFXyhORywiUZVGG4+Rjwygz8WFQSwU8nIucTOzqlx4/1rmlPjoPtjJaHwShyUv4iSMyaWIEKWQSqNXWZLyWFpdFoNRVJHZhNGqw5wPYUmniYmXFldNY/6ZKzgiRmpFx9pdXox6I6JhcLj02ASXszFJxkyE8fgITofstCkdwyt02GZzSTwbqakq4/wrLxZAdjPSeYj6ymk4p89AGd2sWXshj237FRd96QxsItXKa6fR3FALuRSNIu9OXjaf6hI7br3iggvX0Dx/FkfGBoQQnCxb9QUx3Iw2OMQXL/kytpNOkJpqmMoiM8vmNmCzGImNRTl15QpmNDeS14sXhXTLK+bgyhvQZ8qLGBgaJywqvUIwLSNe3bf/sKijOKZiG8OjivH9MdTKDLt3d6ATlrrpJ9/jzLNX8Ic/vsSW7YexawuMZqMMjYmLsnkikXGeeeEl7HotftnO5OFBglojjWV+zm1dSMPZZ9Pd1U9loJjXe7rZuesN0ukUZqkRX9m+m6zUYqIYJIkLpIeGGNPo0MeSWQqGBH0mRZWI4aF4hviBPcyrK6fgLSfY8SaFUIfQaZxMahTDoXHedTnwzJrHN2pLqJ7zEltfPED4nbcYjo1RVdXGqoWtmLMRETJVAuDzmCwRjE0maG5tFZXvICTo4Rw1kKyo5/H1TxMa6ZQaTJLJbGFwpA+lN+HySXKKxrVUFJMQEaNXoxNUNtiosls5MjpGtagk9yw7kwIr4fEQbo8J7fRiclJhWk02AWYjavIIve+F8bicrF59Nk0zF5LoXInXLkjqK5Wd8OIRDaC3uAnlDJSYCoRCQY4k4tiEtcx5i0BSHTtff5e/Pf0sVVKiJE0aqbUyNFTWM5qOE0vG8AjT1U+fx3hGQqZzMkdNcTGntjZgFZfXBEpYfFKbJENBRHCC6fWzKNG4seZE0mm0gotR4c0UNoGuhDBX73AWn0i96WfNouK0BRQqnHRKZgfziuDwAdrbX2Ho3bdwJSTR5C+fyOOx6nEGfOx48RlMmTizF7fi8rrRifqfIXE9Y2Y9uWgGb2kFzbXVkh8x9J3DcaIFA/s0Uhvp9fSMjdEVk9pbI8Bvc9DbHSMjZa7JFpBrYYwTSp64BJ1BNOb4EcE6PTlThp7+GGmRcB5nUp4jxx7SR0sVfcLAoM5CPD6KcAMJk4OYMPSeQ71se3ozIZGL23e/jcomMGosbNryDkZxUk5lqBD1P2DUSW60o33g5uWagaEByv3CQwIduuCACII9pASmdG7FiJQW2w9tRut4lbqmOhw2HyajwJKS//EIGtmucMZDQWRaKt3HyFAfuv4u9DKWiOswaArY9CFJliAFiWEJCIq8dWx64im697+D2++HiUkmw6InhHi0AkcZ6RWY9AlOWjhTioRiBg53va+e/nAgqOzBA1z3xW/RNKNEKNTPrv4j9PeGaSkWQWHWUVwHK9dcwMoVS0n1jHP4cFJunhAvFhgLjsgDiIfFW6FhEzpHjjKHRbokE4Kok9icxVLAVYqCT1LpChCx1HP7jV9nfNc2bDV1uIUNe3v6hG801NaW0z0axDI4ysb1vyG9ZDGNOo1wnxwXNwc0u/cdVHWzArz2XifO4AR64XefyUJ3tJ/0mIb3tod55ek97P/OJVx2ySnMPqGe9kE3mbFO4X6TBHw5xrEwTmeBlF17FKhF9+G2NKKJFRDNLUqsmoqSIjY+/Tx7X5Mdkv5Ud3eXhJxR4FCqWZuNdzq7GO1q5/Klp1G5dDH3b9o2ZaLsw98PjaeYRQsXs/kvuwgNxCmvKsHldNB38LCwT5SmqtmEw+P8+pb/4aUn3uD8ryzklOXLcDgD4kUfFpF1WZFqeil9S3ETMbpwujw0V/jJGcJMjPTiCHjYq4b564ZHhXKFfiX7U4lJiaI8FmcpsViMsUgHFVIpfP97N0jFABufet/Q4zI/KOp+x7Y3+NGt35fWzAQG0S+joQLVwvdmU5rBrhABtwuz38Kbr+1nIjbJ2VefwZpLllM/rQW7zk9WuilxEclKtKfGKpAkWf/anveI5XJIB4e3DoywU3bM3C0dvqTs1sgAgQqvAH9AwqyfjBBEfGiEmy6/kH974D6e2NPPRa2VR2087tGgiIqVS09k+9JlbFj/HEmbXoSAdDGckqpmK3pXXAjASlpjp27mTOLJMLtf6mLrpk5WnjGbWYvamEik6NvXw+hoh7QXs9IYizHQLbpB2jZFZRVExoJoY3F8ddNICcF4hOXMShoRIlpyejv9o72c09bGtTf/kEHx5luvvXFsw//xfLMI6Gd3va78pVKz2xrV/PmnKYu9VISrSdVVnagqpy9XOus0qfFb1ey5y5TN6pVlipXeMFXriJw6KpYNfz9PCWejqq1oVi5P1dFrOn2R8pXWiwiVml/mVpZOV17rlKieqqGM6gRfuXrlzxvUhOzub988NDXn+HF8649dufdARBXtfY4bvv1zEQIZssIQ1oARg3RGcgkdXtGOowL6gijYNCLxTKKORI/nhCL1loKsZyYRyWDWCDXrcqQLNjJCAJZCXIZcopYMZOPjaPKCv9K2MEoJ3jc0SIP0VB985BGWXX0xu4b7WVT6/pYfs0tkwD8et27rxb/odNZ97yqGJOB1UrhVaX0Eh5LSFJPKSrSnKSS10HgSV6BMDLeTDClKK2qYMW8pXk8As2Tz5075PFUtJ4pu1Uvd42XBotOkLC47WgzW15/IHOkzFexuqa2inD1nNg/e9UtaL7uYHjFn3YsH/9Eo+fYBj07NuOrJ99Ql84qJb9/JQM8IsUJeRIOIXFFGg4kQ5QLyJqU4KLDjFU9bfUbuefFlena/SaXVRbKgJAZ1mMSTJvFgQtwfkdi0O62USHewf2xSyEEWyk6wwF/Bd++4nUVXnE1SGmX/sX4b91161gfs+sCFKUOnjuar1qm7rj+fea12JrI5ChKCY9J9S4+MiL6U5rfVSK57QkqOat4cPcRNF94ocrALi5DFlICOjPZht3jFu3aik8LVgqP+UhEpacVE8AhT5d+Fqy/ljLVfwTN7prSnC/x1y+vceMbKD7XpQy++b6oQwQ+eVWvXrqBe+qN7e4bJSZ/eIlg5mhDDozEqyixEXMXc8PXbSex4laqmJmGjiGRRTjoe0qFLxRgSLaERti0JFDHUKw8i3eiLVi5nzWXnUfL5MzC47FJzpXn4md3ccc7yj7TnIweOGTt1fms4qVKCrUHBvbRBCo1xKTsK4wTKK2g/kOR3Aic6gySWw0/PoQ7GxaP1ogtUPEFyNCZVQhFtJy+iyOanrbWZ6aevJCm0aRWgj0bjrNuyh5+dv/RjbfnYwWPG3vCLV9S3rpjLlrffIdHfh1voLi7YmkqIV205iiTzO4YiBPcPHBUnUSUMPxCkTPqlMxc0Yfe4iOuKaJw7D73TwIRogIwgyr6JMZ5dv4sXbl/7iXZ84oRjxv5pf6eqcpglufpE2knVL01np+hEjRRuaUuJyLsiKXGN8gbEKrBVkPJXIy++hONj0vySnC1kJ6UrohFJqWf/qJadO9/l0as//6nX/9QTpwx+d3BcBZNRsuODopqMmMt8eMToCWn3uKUOl0QnIR1AgUYxWCd4K0pKCiF5FSH11ASd43F63+7hlzdc/pnWnVr7OIVOffmk4+W/vU3b/CbM8vrl9Nrpxxe74/l9Kitlc05KY7NV3tjlM4K/42Jslpi8dOjtGOLI/n52PfmT4/d80lr/7/HhvODLv+D4XwHpyeI2TzI0AAAAAElFTkSuQmCC",alt:"S"},a+"-space-station-"+t)),[...Array(n.specialties.legendary)].map((e,t)=>(0,r().jsx)("img",{className:"icon",src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAtCAYAAADV2ImkAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAhGVYSWZNTQAqAAAACAAFARIAAwAAAAEAAQAAARoABQAAAAEAAABKARsABQAAAAEAAABSASgAAwAAAAEAAgAAh2kABAAAAAEAAABaAAAAAAAAAJgAAAABAAAAmAAAAAEAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAALQAAAADlcObtAAAACXBIWXMAABdgAAAXYAE8fGXsAAACymlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNi4wLjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj4xNTI8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjE1MjwvdGlmZjpYUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+
2MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjQ0PC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj40NTwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgpnxB1IAAAVTElEQVRYCa2ZCXxkVZXG/7XvValKVSqp7Ekn6U5673TTizRLsyiIAiMKKuOCgui4DbjhIIu7MjLjqOiIIojyw11kG0WRtmm6m97SSzrd6exLVSqpqtS+151TQRDFBZ15+b3UW+5797v3nvOd75yn4f9p+9yNP1fmko7mVBmjvoQy6zFMLjJVybH6wrOo1Qbpuu4czf+1u3/4BXseelZln56kZaGCoVAmWCqRCqUIksVohmLGgF5nxCTnqWKRxvo2VtTbOTD7LM9OnCRZKvLvhx/8u/v/ux+oztC33vUD1TA0y3ymzKK3QiI4RVCfYKbWxMlEAftkjlIxi77DjnM8RSa4wOquFaxoaactb8SSzFK0xzg4M8yJUhhjjZn7jj31srC8rEZVkB8591b1zh1ryTwbZtdkiIFGyNbpiR0dwpydxerWUtAZWIxoqTi8lJ0V5g5P4agx4q21kjs1T9BmocZZy2va17DB6sEgphOaX2AyEuKUfoRv7P6fv4nnbza45a3/pfTHgmy21TKmT7M7O8+xQpSFSh63BSrRCi11BhmSGZVI4igLsNYmFpWF+f0zdHTbaevsZubAYULFBDZXG+ZCBWuuwrkrVtKrr6CJa5hLJZm2pLjlV3f9VUx/9Waf7zr1qZVNNHk7+e9dj/Dt4H7qLQ1sWuXhmXCK0HgEZ18jtaYcrvgsobQWrVZHjbZMXm9ltlwhm05grsg1fyvNBhujszPEUkH6W1dhjKUoZxL0+pq5onELscUIT+cGSftK3LP3sT+L7c9erJrA23s/pN7cEWBkMcsDk4OEDUHyAtIoS2m0KoyWCsFyjjmLgEvmaAvYcJSy5KN6KuJkLllurcPB1ESErLaItbUec1GPPRoVjyxRrtjFpoo4DVZsYjaNugqvqOmgS9PMHmGUZ2OD/GRo10vw6arg/nT7yBVfUxeabeRsZr4bO8bp1Cx97QE2n9fHQmSe6dFhmls9nHXBWsJzUdwGI772Vk6KgxnjERo6dSTzislggq6OBnrX9ZGcE1OJTrJsZT89LT1My4pUtBbq23xoLEWKZQ2z4gN2m4teu49an4+OFY237j05eNuL8b1kBJv1V6s7tm5ivzbGx/c+jtdswed0Ebdq8MtSVVIxFuYSxE16zNXrg9OkTQpvq4Ymfx3bWrvYsKWH8GKe5OkRhrOLhKaSDBwbZUFrw2r2YVRZvB4zplye+fkCTXqLvMuJRWPERpTXdK3GH/bw2+IIYVuU7z79+As49S9Gv6H5OnVFrYOJXIp7Zw/hNxdIZnVEalLMjQcZPjFGbctaumobOHXksaVHl9e1ceUbz2Zt/1bWrtuIxe3gycEQPmOWN11xJclkBpUNMxKLcvf3nuTH932TjDxpU5upyMzGZEBOUwWtEopMa3DO5ngmN8Vl65tYc9zM3nThxRB5AXn16i2bPqKuaO7hppM7mUiN4hNnKOvKhKIhzEYL/hYvR4ZOMzs6xKbVzbzl2ldz2aVX09C4fOmlsyNTjM2d4NBEkJBwczgSoxLJ4qlt5pXnnsu5O87guKzap772AD9+/CmW1TfQ4q1lbiGFWczBZ7OiL1uJBcOcva6ftzat44mDO/lNaoLvDzy6hPWFGX5X57vUK6y13DM0yIGpEeo9FoamQiABQa/TyYt0nBydIjR6jI29nXzngbtZ0buBclERjSbIFzLo7AZW+Tez7QzhO6U4MTZEaGaSx372KJedfz6+VVv4/v1f44F77+Wrd/8H//rRb5BWNpw2O4txsWN7FlkgSFh5Yt8+/Fo/a3z9HBseWpqQP/r3vU23qB+u+ZzqcJytltdtV277dgVrlMnUoRrq+5TZXC/nqLe+4VIVC4+rQrmkjg0eVfPhsAoHg2pyYkSFw/MqFFxQo6PjKhQKq3w6r3LZkoqGx9TBAz9VK/vXLb3jhmtuUtXt3nt+Kuc1yt7YozrWna/0tVuVwblNbeu6UG3xb1drLK9QD225U+2/4Ufqkh0XVp9liSXe2PdBtb0+wJO5SaYM8zgbXVSSc3Q31eD0e0nH4+hLSmxyB9984FtYbPUkEhHc4ihlmXmjUcKt1YlWIyuhlZca5Z9sGjnPiD8Uy3q6ujbw7mvfxOjwIb5+3z2MT6e55RPXULvMzs8feRKNzUadxYhBNIbDZ0Fr1qJSIawmDavsfZx1xg6+8et7b1syieV2D9Fclp3FYXQGE4sTSTSiYHKGPFmhp1C0xNZVXm7+/I1ocbMYjWOz16IXdFqDuFBJI8cmitp81RJwGmspl8pUKtJ5jQudRk9kIU6Nx8V933tMhNC1fO5Ld2D35PnKF77MidMx7rrrfrrXd5Np1ZIYzmK1OfCftZ2heQ0jRw/hrTt7aRKWALeKd46Z4wydmBBlJcbvqkGjzTEyMyGN3AKmwj9dfB5OVw+RSEJGbWIhvEBJZsPldpLPFcllIzIIKwaDgVhsQZ7TYbVaiEcXKRRK2KxmGWgMg9nJez9wE7v3HOOrX/wuW3q2cdu1b+GxX/ySPQenMTU10uQxUZ6PMXYwg1bo8+QyB6b9R5YAa69f8wEV8BnYNxfEL0ywtt6I3pkjI7G9rbERT72F7av8vOW6q9HqbTJzOXICwGjWCUCjwNKgkwEZrHpxTr3Mpk5Aa+VYg0ZmW6upyLH8yp9Brycug/H4G7nx3f+Mw5Lm9ptuxlip8MF3XIYrHcZ8eor5dJHThTyp+UkKYlLDsRxqYoFjn3tI6S7Z+OZbRXTx+OmDFANempcFSESzlIUX65a1CUANr7l0Kxdd/uYqNFSpSgAVXLLUVvHuooRZm9WKS4KIRkBVxCYsYo9Gow6TRoO9pga7w47ZYsJkNuFy2ZdYp2d1v6xEggO/20+b6JXXXXE5u393ELu9RC5fwut3s6yjR1jDKSaXoXdln+gRj/jSgRlOOKIEUynC6SDHhws4JPJodGkO735WGN7MuZf8myy/4uTJEfxeFw7RCOFghFJFSQcmMYk0ixIgrLLcwoBYRWPYa9zI2Dg4McfpY0OMDy8yKcd6awVqbeiN9RwIGwnLMO996Fdc9ppXYXTUcezwICva24iXy5zMFmTWMxStJuKlAmM7Z9D32krslGiicxmpKxjF3mIYdaJtK0bpLsbK1o20NHSSz+ewiPcrWeeyqDCtiBVpJfyrFfstoJEOPG6FyeLhicEwD9/7IAN7n+To/mNERkYFlkJVqkPIyp6WXcSPDFbUkszsPiZTio1nruPxX/xANLUHR0EiXGmUeV8DhkWvCK1Z/IYG9O2bujgczJN4Ji7atZ6VrjpGZ2IUbIpSopmL+vtoFBAlmbrm1haymbQALuHz+oSuckREIvoknNtdjRwZneWOOz/O3qeOcuroXgEVxmNuZ1lDA5lKgXlZRX1WQ6XkQF8jWsQTIOWSPRTj+MgMWzasxFbfSKYgKq5iwu31ssnlYkLpOWYvcoFFoY1qZJQmLR6XTTzYSEpnIyuzqMTzfb527P52DB6P2HJJTCAnDibOZdAIhQltoacxUCdgndz/8F4uuvI9fPcrd+E2JVi3rJuampX079hI+5o2AVGQ5FTLmi2rOeO8Dei0Vlo8Ts565UYJ+WZ0Q0fpEVXX2b8RXYMJ3yY/bdt7pW8D7fo8W1e2YO7wo596fLfooyA5sYCnJBxCEp/ZLzZs4tTwE3Q1dMhyInS2QEaEitdTv+TtU5MztLe1EpF7l192PTt/9nUMunYJNM3s3b8XU20rDpOF3zy1B+WuRWOuw5qOMDg1C+U85VSBocFTnBw7gVk0RNhq4/jgGBMDQxRMRkYX8jSmJzmVKKONKVbvi5L1CfevvGAdh6ZNpIbnWNnXjdlkJTUXoiySUcXrqK8TLyokhQXMYsMNYuNF8tLZ6t4WjoTnufTCDzG26wcEGtoplN1ksyEa60ykhc6SGdEiqQVhlBKFtJ98RStJwCgmGYiqc1IIzqLJFMhEzLJWyAqkiRYnIdPCaZUnL8KpJdAiq1EWXXKEM6xe9DGdWTi1gE2c12h0CJ+K14tZUIhT5+mUCFhmIr6A1+ITISTvSmVp72phKFbinW/42BLY7o516MTOZ0RC+hqaqa+xE5xdIL6YoH/j2SI5rezffwiD0OH6jdspFvQcHTtNS98GbDYdk88clGzaLyzRzDJft2QwOsxdAcorBEskz3J9kZ7ufjRZCWJjvz4kL5S4L0WQ4OFTxJUEDuE+nVGi3/Qwc9Ec170/jKXZRyQRYkWbh6l0kq1nXkns+FO469s5FZa0R/I0va6AQToeHx4RW9cI71o5PjpOQVOkJAHAJPL81LAIfpEB5WyWRNHCTHGG1kYHvRet4DP37WLh5BQbVncyNx+Rd0iEM1gYTJRom9Ri6tKjLdttrNZZxP4q9PT6WB2wkknOkytmqHXrJSU6xcjAPlw+E7USsuMaD6+/8sMC9lFM+hpJy4R+hL8hJLZeppyLo6kIkxQWJflMy3KfprQwgUPA5qXgEpk9Ti46gYEii7Exyol5tp1/Dv5AK4/cfz+LhQgT0TxzR8ZJip4ul4tI4KMwMMZhqSrps+0+nAURGymxD6+VuhphjNKwMGyGzmXL0Q2f5qEfPMGVb3kHdaLcrrzhs+x5+Hts3boVl8HJs/sHaBb7Xba6ieExCQPZMn29rUvmkV5IctbWHbhl4E/tFi2Qz7J+bb84nY2ZmTABr00mJMzbREsMHB3BkV2guW0tczPicPU+7GJKFklwLWYPmzcvZzgvVrlzaoauJh8rRPQ8tGeckkMETbmASQT5wLFDuBweHv/VEYZ/N462x82DX7
2oZs8PHZCwJuRgmo9CgSMwTUlzJ5xTJVI5EQYPICZIyEZNhmS3pNJnNYDDa0ZZMZMQh82Yzsalx3nrVDs7Z8kreedPniQq9ui12VCZOVPjaFdNL1rLIhgYvne5mLr/39Rp67G9X3177GXX7incpK41KR5uqr12lPFavSBedwlD9NaozN10konxMXXXVlXIuYUuyMBmvMria5Ne1dM2gCyiTtVmOq7LHrEz26r1qW5TDGlABz3I59ilPfbvE9M6l66nJA+qR3aMK5wqpHXiVxeFXPX0XKq9xlaqnVbm0XeqG1jeqJzturbZHfzL1bU3S+3m1qtzIuspysUMd4aQknWqRjroa8WitFDi0HKjmVg/9mu9//wGmJ4PsfXqXVHS6iMVjOCRVtxhbCS9IzUwcrBrKIxmNSMs0nY1tMjR5p9glqkDP2m6mxkVTpE6z7+EHMTWv59+ueS2mdJyAiBuzUF5mMU5fm5+MpE/GlIV+XxtHU4kqXpEDsu0VvjSIdFxu62NGGdCIV5rzbrQ1zZJ8enBLVHI09PCBT3+LHz/4Q3bueoxr33OdLJfwa6KqK5yUakQX64riJMLXNa2SgVgl45D57F2NfVkvRckmUnJeTISpl9T9dz+5m3UXv57LPngLpwcO45ew7xd1aPMGROYaKQkekz3AJWLT3S0dnOjxVqH+Ybuz/1Pqno7rlUmWoNO7VXW6exWSx1nsAeUz9shyeGTXKRGJ6oGvPKji0Yy68YZrlMkiZaDfLzt4lUHTIec1Cp1HGQIr5bhOdofsz+WEXR2daurogFoQHbr5te+V6yijrV11tKxTRnOrwtqnOlp3KLdzo2rXn6nu3/Rp9fNL71Yfv/Sr1bZ/2M5fdr16dMvt6uYN71DNgW1qTf1GSUh7VLtP7Nm5XPk9ftXS4P+9TZvU+y5+myolTqjw4in1yY/9i2pubFzq/Dnbfs5un7Pl545fu+0MtfNn96hsOa9+9PCAagu86vftDVI29CqPcZmyapqVj07V4T1HmTSd6v1tV6nfvurL6uzej78AtioTXtg+ed4d6tUNNdx85FFmVYSA1c90LM9IaITu9k6aGqwMHBwlJMlhg89JU9N6Lrritbzvmkuk7JRm4MjTDB16moVUHqlYScXIwoYN6+nsWo5TzGtmJsuv9jzFLZ+8nbzUHvpX9VEWUR+ZDpOTaNve0oouVGYwGGdrRwuf6D+PB49O8uldt7+A84WD51F/tuPDarm3zG2hAcYy8+TjGRxSdVwsLopDiaB2NkhiGpdpy1GUACPkis4c4HUXvZKLX3U5jWvq5VJGQnk9OSlPnJTCS/TEPD985Jc8/cwj0j5HZ2+fxHgJM/rqWxYJiARICO0VMhIRhaMdyQp3rjqXnCiyy/d89I8w/tFJFfQa0zuF4lqZLExwx+AjFBwuEfNeIlkRLeJFSkmuZpTqYzEpGUVFhIkkjFKtlNhcfVy2FtmrQl3yO7lWFi1Y3bRYqYgiI7OA3exFFUUgSRSDOal0duIUrTKVnJXwXeDbm96Eq+Tn1Qc//BJ8L7lQffkFa25Q73O7SdvifCI0QXR8hPUSdXKSlRyXTDojpSWfTwSI6I3coqRDIpgKmoiEWmEMgxmP+FhcTCkpReuA1BikJkQmWsYt2sItwn86sUA2J5mSvlZYSJglK5m41iVsA9e3rmO5pYsdz3zoz2KTJi/dRuaeuW3RtenW7YF2NosAOSpcm5MPKh6vWyqRUkWXpHLVul7Mkjkng3M0ttfS3CncG5G8zmJl8xmbyUhWksho2b5tKxZZpSn5zrFSQnjf+nXynAFTqkjbinoCHR2i6nI4xTw+e8FF9Nq62frE+/4s2CrSv3jj+WH8Z/P71Zblddy465fszE5Sb/LSIJrjUHBMvheEpSAt9lcMS/MEFn0TOZGQqpyq5s/YDTUkRP1pJJXqbqylzuVn10gSp1aChLuGE9Xwnklydfsqrg50MhWxcn8my5OTX/iLuP7ijecBb+x4t7pYb+fSrnr2FUP8eM9BpvNBoh4jNcWypD46FqQk0CzfJ4oZo2S7Yue6GGYJNjadh9lsjCYpqzbpGpnQSL1DZKZIbHIaA01Sw7iqpo3zW8/kWal1/Hz0FE9GvvNXMf3Vm8+Drv5ed9kX1TkVqX/NS62XeQaEDA5OhYkMH0U11uGy1JAbn5asQoc7YGQ6VCRedLBRNGybycG+k9MiLyp097ahi5k4K13L5u4uZiWJ/aUIp6+O3fmysLysRi8G/saeD6lznX78MlOHMtNiAmlmo3PslpnViBOWRRsvysxlS1WxXeEcKf0bpfKed5jYanfizbuodQTkwyLsSQR5JpHicOiul43jZTd8Mejq8Xbt1er2q7awUQp4Jx49zMCYFL1rrCQqC6RlBkUz4bPqCGilqJjP42huICby88CRMU5oSvwi8fV/qO9/6KE/Bf/pt31LJU+P0yw2XF/npiKfC1wVM03NfgYlNxyamOXwwRA/irz8mfzTPp4//1/r43EPlbK/SQAAAABJRU5ErkJggg==",alt:"L"},a+"-legendary-"+t))]})})]},"more-info-"+a))}return(0,r().jsxs)("div",{id:"moreInfoContainer",className:this.props.visible?"":"d-none",children:[(0,r().jsx)("div",{className:"title",children:(0,r().jsx)("h4",{id:"infoTitle",className:"text-center",children:"Assets Adjacent to Home System"})}),(0,r().jsx)("div",{id:"moreInfo",className:"",children:(0,r().jsxs)("table",{className:"table",children:[(0,r().jsx)("thead",{children:(0,r().jsxs)("tr",{children:[(0,r().jsx)("th",{scope:"col"}),(0,r().jsx)("th",{scope:"col",children:"Faction"}),(0,r().jsx)("th",{scope:"col",children:(0,r().jsx)("img",{className:"icon",src:$,alt:"Res."})}),(0,r().jsx)("th",{scope:"col",children:(0,r().jsx)("img",{className:"icon",src:J,alt:"Inf."})}),(0,r().jsx)("th",{scope:"col",title:"Optimal resources / influence",children:(0,r().jsxs)("span",{className:"d-flex",children:[(0,r().jsx)("span",{children:"Opt."}),(0,r().jsx)("img",{className:"icon",src:$,alt:"Opt. Res."}),(0,r().jsx)("span",{children:"/"}),(0,r().jsx)("img",{className:"icon",src:J,alt:"Opt. Inf."})]})}),(0,r().jsx)("th",{scope:"col",children:(0,r().jsx)("img",{className:"icon",src:Z,alt:"Planets"})}),(0,r().jsx)("th",{scope:"col",children:(0,r().jsx)("img",{className:"icon",src:te,alt:"Tech"})})]})}),(0,r().jsx)("tbody",{children:e})]})})]})}}const ce=le;var ue=n(600),Ae=n.n(ue),he=n(173),de=n.n(he);const pe={type:de().string,tooltip:de().bool,as:de().elementType},fe=a().forwardRef((e,t)=>{let{as:n="div",className:a,type:o="valid",tooltip:i=!1,...s}=e;return(0,r().jsx)(n,{...s,ref:t,className:Ae()(a,`${o}-${i?"tooltip":"feedback"}`)})});fe.displayName="Feedback",fe.propTypes=pe;const me=fe,ye=a().createContext({});const ge=["xxl","xl","lg","md","sm","xs"],be="xs",ve=a().createContext({prefixes:{},breakpoints:ge,minBreakpoint:be}),{Consumer:we,Provider:Be}=ve;function Ce(e,t){const{prefixes:n}=(0,a().useContext)(ve);return e||n[t]||t}const Ne=a().forwardRef((e,t)=>
2{let{id:n,bsPrefix:o,className:i,type:s="checkbox",isValid:l=!1,isInvalid:c=!1,as:u="input",...A}=e;const{controlId:h}=(0,a().useContext)(ye);return o=Ce(o,"form-check-input"),(0,r().jsx)(u,{...A,ref:t,type:s,id:n||h,className:Ae()(i,o,l&&"is-valid",c&&"is-invalid")})});Ne.displayName="FormCheckInput";const Ee=Ne,xe=a().forwardRef((e,t)=>{let{bsPrefix:n,className:o,htmlFor:i,...s}=e;const{controlId:l}=(0,a().useContext)(ye);return n=Ce(n,"form-check-label"),(0,r().jsx)("label",{...s,ref:t,htmlFor:i||l,className:Ae()(o,n)})});xe.displayName="FormCheckLabel";const Se=xe;const Te=a().forwardRef((e,t)=>{let{id:n,bsPrefix:o,bsSwitchPrefix:i,inline:s=!1,reverse:l=!1,disabled:c=!1,isValid:u=!1,isInvalid:A=!1,feedbackTooltip:h=!1,feedback:d,feedbackType:p,className:f,style:m,title:y="",type:g="checkbox",label:b,children:v,as:w="input",...B}=e;o=Ce(o,"form-check"),i=Ce(i,"form-switch");const{controlId:C}=(0,a().useContext)(ye),N=(0,a().useMemo)(()=>({controlId:n||C}),[C,n]),E=!v&&null!=b&&!1!==b||function(e,t){return a().Children.toArray(e).some(e=>a().isValidElement(e)&&e.type===t)}(v,Se),x=(0,r().jsx)(Ee,{...B,type:"switch"===g?"checkbox":g,ref:t,isValid:u,isInvalid:A,disabled:c,as:w});return(0,r().jsx)(ye.Provider,{value:N,children:(0,r().jsx)("div",{style:m,className:Ae()(f,E&&o,s&&`${o}-inline`,l&&`${o}-reverse`,"switch"===g&&i),children:v||(0,r().jsxs)(r().Fragment,{children:[x,E&&(0,r().jsx)(Se,{title:y,children:b}),d&&(0,r().jsx)(me,{type:p,tooltip:h,children:d})]})})})});Te.displayName="FormCheck";const Fe=Object.assign(Te,{Input:Ee,Label:Se});i();const ke=a().forwardRef((e,t)=>{let{bsPrefix:n,type:o,size:i,htmlSize:s,id:l,className:c,isValid:u=!1,isInvalid:A=!1,plaintext:h,readOnly:d,as:p="input",...f}=e;const{controlId:m}=(0,a().useContext)(ye);return n=Ce(n,"form-control"),(0,r().jsx)(p,{...f,type:o,size:s,ref:t,readOnly:d,id:l||m,className:Ae()(c,h?`${n}-plaintext`:n,i&&`${n}-${i}`,"color"===o&&`${n}-color`,u&&"is-valid",A&&"is-invalid")})});ke.displayName="FormControl";const Ue=Object.assign(ke,{Feedback:me}),Le=a().forwardRef((e,t)=>{let{className:n,bsPrefix:a,as:o="div",...i}=e;return a=Ce(a,"form-floating"),(0,r().jsx)(o,{ref:t,className:Ae()(n,a),...i})});Le.displayName="FormFloating";const Oe=Le,Ie=a().forwardRef((e,t)=>{let{controlId:n,as:o="div",...i}=e;const s=(0,a().useMemo)(()=>({controlId:n}),[n]);return(0,r().jsx)(ye.Provider,{value:s,children:(0,r().jsx)(o,{...i,ref:t})})});Ie.displayName="FormGroup";const Qe=Ie;function He(e){let{as:t,bsPrefix:n,className:r,...o}=e;n=Ce(n,"col");const i=function(){const{breakpoints:e}=(0,a().useContext)(ve);return e}(),s=function(){const{minBreakpoint:e}=(0,a().useContext)(ve);return e}(),l=[],c=[];return i.forEach(e=>{const t=o[e];let r,a,i;delete o[e],"object"===typeof t&&null!=t?({span:r,offset:a,order:i}=t):r=t;const u=e!==s?`-${e}`:"";r&&l.push(!0===r?`${n}${u}`:`${n}${u}-${r}`),null!=i&&c.push(`order${u}-${i}`),null!=a&&c.push(`offset${u}-${a}`)}),[{...o,className:Ae()(r,...l,...c)},{as:t,bsPrefix:n,spans:l}]}const Re=a().forwardRef((e,t)=>{const[{className:n,...a},{as:o="div",bsPrefix:i,spans:s}]=He(e);return(0,r().jsx)(o,{...a,ref:t,className:Ae()(n,!s.length&&i)})});Re.displayName="Col";const Pe=Re,De=a().forwardRef((e,t)=>{let{as:n="label",bsPrefix:o,column:i=!1,visuallyHidden:s=!1,className:l,htmlFor:c,...u}=e;const{controlId:A}=(0,a().useContext)(ye);o=Ce(o,"form-label");let h="col-form-label";"string"===typeof i&&(h=`${h} ${h}-${i}`);const d=Ae()(l,o,s&&"visually-hidden",i&&h);return c=c||A,i?(0,r().jsx)(Pe,{ref:t,as:"label",className:d,htmlFor:c,...u}):(0,r().jsx)(n,{ref:t,className:d,htmlFor:c,...u})});De.displayName="FormLabel";const Me=De,_e=a().forwardRef((e,t)=>{let{bsPrefix:n,className:o,id:i,...s}=e;const{controlId:l}=(0,a().useContext)(ye);return n=Ce(n,"form-range"),(0,r().jsx)("input",{...s,type:"range",ref:t,className:Ae()(o,n),id:i||l})});_e.displayName="FormRange";const je=_e,Ke=a().forwardRef((e,t)=>{let{bsPrefix:n,size:o,htmlSize:i,className:s,isValid:l=!1,isInvalid:c=!1,id:u,...A}=e;const{controlId:h}=(0,a().useContext)(ye);return n=Ce(n,"form-select"),(0,r().jsx)("select",{...A,size:i,ref:t,className:Ae()(s,n,o&&`${n}-${o}`,l&&"is-valid",c&&"is-invalid"),id:u||h})});Ke.displayName="FormSelect";const ze=Ke,We=a().forwardRef((e,t)=>
2{let{bsPrefix:n,className:a,as:o="small",muted:i,...s}=e;return n=Ce(n,"form-text"),(0,r().jsx)(o,{...s,ref:t,className:Ae()(a,n,i&&"text-muted")})});We.displayName="FormText";const Ve=We,Ge=a().forwardRef((e,t)=>(0,r().jsx)(Fe,{...e,ref:t,type:"switch"}));Ge.displayName="Switch";const qe=Object.assign(Ge,{Input:Fe.Input,Label:Fe.Label}),Ye=a().forwardRef((e,t)=>{let{bsPrefix:n,className:a,children:o,controlId:i,label:s,...l}=e;return n=Ce(n,"form-floating"),(0,r().jsxs)(Qe,{ref:t,className:Ae()(a,n),controlId:i,...l,children:[o,(0,r().jsx)("label",{htmlFor:i,children:s})]})});Ye.displayName="FloatingLabel";const Xe=Ye,Je={_ref:de().any,validated:de().bool,as:de().elementType},Ze=a().forwardRef((e,t)=>{let{className:n,validated:a,as:o="form",...i}=e;return(0,r().jsx)(o,{...i,ref:t,className:Ae()(n,a&&"was-validated")})});Ze.displayName="Form",Ze.propTypes=Je;const $e=Object.assign(Ze,{Group:Qe,Control:Ue,Floating:Oe,Check:Fe,Switch:qe,Label:Me,Text:Ve,Range:je,Select:ze,FloatingLabel:Xe}),et=a().createContext(null);et.displayName="InputGroupContext";const tt=et,nt=a().forwardRef((e,t)=>{let{className:n,bsPrefix:a,as:o="span",...i}=e;return a=Ce(a,"input-group-text"),(0,r().jsx)(o,{ref:t,className:Ae()(n,a),...i})});nt.displayName="InputGroupText";const rt=nt,at=a().forwardRef((e,t)=>{let{bsPrefix:n,size:o,hasValidation:i,className:s,as:l="div",...c}=e;n=Ce(n,"input-group");const u=(0,a().useMemo)(()=>({}),[]);return(0,r().jsx)(tt.Provider,{value:u,children:(0,r().jsx)(l,{ref:t,...c,className:Ae()(s,n,o&&`${n}-${o}`,i&&"has-validation")})})});at.displayName="InputGroup";const ot=Object.assign(at,{Text:rt,Radio:e=>(0,r().jsx)(rt,{children:(0,r().jsx)(Ee,{type:"radio",...e})}),Checkbox:e=>(0,r().jsx)(rt,{children:(0,r().jsx)(Ee,{type:"checkbox",...e})})});var it=["color","size","title","className"];function st(){return st=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},st.apply(this,arguments)}function lt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ct=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=lt(e,it);return a().createElement("svg",st({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-question-circle",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),a().createElement("path",{d:"M5.255 5.786a.237.237 0 0 0 .241.247h.825c.138 0 .248-.113.266-.25.09-.656.54-1.134 1.342-1.134.686 0 1.314.343 1.314 1.168 0 .635-.374.927-.965 1.371-.673.489-1.206 1.06-1.168 1.987l.003.217a.25.25 0 0 0 .25.246h.811a.25.25 0 0 0 .25-.25v-.105c0-.718.273-.927 1.01-1.486.609-.463 1.244-.977 1.244-2.056 0-1.511-1.276-2.241-2.673-2.241-1.267 0-2.655.59-2.75 2.286m1.557 5.763c0 .533.425.927 1.01.927.609 0 1.028-.394 1.028-.927 0-.552-.42-.94-1.029-.94-.584 0-1.009.388-1.009.94"}))});ct.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},ct.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ut=ct;var At=["color","size","title","className"];function ht(){return ht=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ht.apply(this,arguments)}function dt(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var pt=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=dt(e,At);return a().createElement("svg",ht({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-x-lg",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M2.146 2.854a.5.5 0 1 1 .708-.708L8 7.293l5.146-5.147a.5.5 0 0 1 .708.708L8.707 8l5.147 5.146a.5.5 0 0 1-.708.708L8 8.707l-5.146 5.147a.5.5 0 0 1-.708-.708L7.293 8z"}))});pt.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},pt.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ft=pt,mt=!("undefined"===typeof window||!window.document||!window.document.createElement);var yt=!1,gt=!1;try{var bt={get passive(){return yt=!0},get once(){return gt=yt=!0}};mt&&(window.addEventListener("test",bt,bt),window.removeEventListener("test",bt,!0))}catch(Ss){}const vt=function(e,t,n,r){if(r&&"boolean"!==typeof r&&!gt){var a=r.once,o=r.capture,i=n;!gt&&a&&(i=n.__once||function e(r){this.removeEventListener(t,e,o),n.call(this,r)},n.__once=i),e.addEventListener(t,i,yt?r:o)}e.addEventListener(t,n,r)};function wt(e){return e&&e.ownerDocument||document}const Bt=function(e,t,n,r){var a=r&&"boolean"!==typeof r?r.capture:r;e.removeEventListener(t,n,a),n.__once&&e.removeEventListener(t,n.__once,a)};var Ct;function Nt(e){if((!Ct&&0!==Ct||e)&&mt){var t=document.createElement("div");t.style.position="absolute",t.style.top="-9999px",t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t),Ct=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Ct}const Et=function(e){const t=(0,a().useRef)(e);return(0,a().useEffect)(()=>{t.current=e},[e]),t};function xt(e){const t=Et(e);return(0,a().useCallback)(function(){return t.current&&t.current(...arguments)},[t])}const St=e=>e&&"function"!==typeof e?t=>{e.current=t}:e;const Tt=function(e,t){return(0,a().useMemo)(()=>function(e,t){const n=St(e),r=St(t);return e=>{n&&n(e),r&&r(e)}}(e,t),[e,t])};function Ft(e){const t=function(e){const t=(0,a().useRef)(e);return t.current=e,t}(e);(0,a().useEffect)(()=>()=>t.current(),[])}function kt(e,t){return function(e){var t=wt(e);return t&&t.defaultView||window}(e).getComputedStyle(e,t)}var Ut=/([A-Z])/g;var Lt=/^ms-/;function Ot(e){return function(e){return e.replace(Ut,"-$1").toLowerCase()}(e).replace(Lt,"-ms-")}var It=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;const Qt=function(e,t){var n="",r="";if("string"===typeof t)return e.style.getPropertyValue(Ot(t))||kt(e).getPropertyValue(Ot(t));Object.keys(t).forEach(function(a){var o=t[a];o||0===o?!function(e){return!(!e||!It.test(e))}(a)?n+=Ot(a)+": "+o+";":r+=a+"("+o+") ":e.style.removeProperty(Ot(a))}),r&&(n+="transform: "+r+";"),e.style.cssText+=";"+n};const Ht=function(e,t,n,r){return vt(e,t,n,r),function(){Bt(e,t,n,r)}};function Rt(e,t,n){void 0===n&&(n=5);var r=!1,a=setTimeout(function(){r||function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),e){var a=document.createEvent("HTMLEvents");a.initEvent(t,n,r),e.dispatchEvent(a)}}(e,"transitionend",!0)},t+n),o=Ht(e,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),o()}}function Pt(e,t,n,r){null==n&&(n=function(e){var t=Qt(e,"transitionDuration")||"",n=-1===t.indexOf("ms")?1e3:1;return parseFloat(t)*n}(e)||0);var a=Rt(e,n,r),o=Ht(e,"transitionend",t);return function(){a(),o()}}function Dt(e){void 0===e&&(e=wt());try{var t=e.activeElement;return t&&t.nodeName?t:null}catch(Ss){return e.body}}function Mt(e,t){return e.contains?e.contains(t):e.compareDocumentPosition?e===t||!!(16&e.compareDocumentPosition(t)):void 0}const _t=`data-rr-ui-${"modal-open"}`;const jt=class{constructor(){let{ownerDocument:e,handleContainerOverflow:t=!0,isRTL:n=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.handleContainerOverflow=t,this.isRTL=n,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;const t=e.defaultView;return Math.abs(t.innerWidth-e.documentElement.clientWidth)}(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},n=this.isRTL?"paddingLeft":"paddingRight",r=this.getElement();e.style={overflow:r.style.overflow,[n]:r.style[n]},e.scrollBarWidth&&(t[n]=`${parseInt(Qt(r,n)||"0",10)+e.scrollBarWidth}px`),r.setAttribute(_t,""),Qt(r,t)}
2reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(_t),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return-1!==t?t:(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),0!==t||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t)}remove(e){const t=this.modals.indexOf(e);-1!==t&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}},Kt=(0,a().createContext)(mt?window:void 0);Kt.Provider;function zt(){return(0,a().useContext)(Kt)}const Wt=(e,t)=>mt?null==e?(t||wt()).body:("function"===typeof e&&(e=e()),e&&"current"in e&&(e=e.current),e&&("nodeType"in e||e.getBoundingClientRect)?e:null):null;const Vt="undefined"!==typeof globalThis&&globalThis.navigator&&"ReactNative"===globalThis.navigator.product,Gt="undefined"!==typeof document||Vt?a().useLayoutEffect:a().useEffect;const qt=function(e){let{children:t,in:n,onExited:r,mountOnEnter:o,unmountOnExit:i}=e;const s=(0,a().useRef)(null),l=(0,a().useRef)(n),c=xt(r);(0,a().useEffect)(()=>{n?l.current=!0:c(s.current)},[n,c]);const u=Tt(s,t.ref),A=(0,a().cloneElement)(t,{ref:u});return n?A:i||!l.current&&o?null:A};const Yt=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function Xt(e){let{onEnter:t,onEntering:n,onEntered:r,onExit:o,onExiting:i,onExited:s,addEndListener:l,children:c}=e,u=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,Yt);const{major:A}=function(){const e=a().version.split(".");return{major:+e[0],minor:+e[1],patch:+e[2]}}(),h=A>=19?c.props.ref:c.ref,d=(0,a().useRef)(null),p=Tt(d,"function"===typeof c?null:h),f=e=>t=>{e&&d.current&&e(d.current,t)},m=(0,a().useCallback)(f(t),[t]),y=(0,a().useCallback)(f(n),[n]),g=(0,a().useCallback)(f(r),[r]),b=(0,a().useCallback)(f(o),[o]),v=(0,a().useCallback)(f(i),[i]),w=(0,a().useCallback)(f(s),[s]),B=(0,a().useCallback)(f(l),[l]);return Object.assign({},u,{nodeRef:d},t&&{onEnter:m},n&&{onEntering:y},r&&{onEntered:g},o&&{onExit:b},i&&{onExiting:v},s&&{onExited:w},l&&{addEndListener:B},{children:"function"===typeof c?(e,t)=>c(e,Object.assign({},t,{ref:p})):(0,a().cloneElement)(c,{ref:p})})}const Jt=["component"];const Zt=a().forwardRef((e,t)=>{let{component:n}=e;const a=Xt(function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,Jt));return(0,r().jsx)(n,Object.assign({ref:t},a))});function $t(e){let{children:t,in:n,onExited:r,onEntered:o,transition:i}=e;const[s,l]=(0,a().useState)(!n);n&&s&&l(!1);const c=function(e){let{in:t,onTransition:n}=e;const r=(0,a().useRef)(null),o=(0,a().useRef)(!0),i=xt(n);return Gt(()=>{if(!r.current)return;let e=!1;return i({in:t,element:r.current,initial:o.current,isStale:()=>e}),()=>{e=!0}},[t,i]),Gt(()=>(o.current=!1,()=>{o.current=!0}),[]),r}({in:!!n,onTransition:e=>{Promise.resolve(i(e)).then(()=>{e.isStale()||(e.in?null==o||o(e.element,e.initial):(l(!0),null==r||r(e.element)))},t=>{throw e.in||l(!0),t})}}),u=Tt(c,t.ref);return s&&!n?null:(0,a().cloneElement)(t,{ref:u})}function en(e,t,n){return e?(0,r().jsx)(Zt,Object.assign({},n,{component:e})):t?(0,r().jsx)($t,Object.assign({},n,{transition:t})):(0,r().jsx)(qt,Object.assign({},n))}const tn=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];let nn;function rn(e){const t=zt(),n=e||function(e){return nn||(nn=new jt({ownerDocument:null==e?void 0:e.document})),nn}(t),r=(0,a().useRef)({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>n.add(r.current),remove:()=>n.remove(r.current),isTopModal:()=>n.isTopModal(r.current),setDialogRef:(0,a().useCallback)(e=>{r.current.dialog=e},[]),setBackdropRef:(0,a().useCallback)(e=>{r.current.backdrop=e},[])})}const an=(0,a().forwardRef)((e,n)=>{let{show:o=!1,role:i="dialog",className:s,style:l,children:c,backdrop:u=!0,keyboard:A=!0,onBackdropClick:h,onEscapeKeyDown:d,transition:p,runTransition:f,backdropTransition:m,runBackdropTransition:y,autoFocus:g=!0,enforceFocus:b=!0,restoreFocus:v=!0,restoreFocusOptions:w,renderDialog:B,renderBackdrop:C=e=>(0,r().jsx)("div",Object.assign({},e)),manager:N,container:E,onShow:x,onHide:S=()=>{},onExit:T,onExited:F,onExiting:k,onEnter:U,onEntering:L,onEntered:O}=e,I=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,tn);
2const Q=zt(),H=function(e,t){const n=zt(),[r,o]=(0,a().useState)(()=>Wt(e,null==n?void 0:n.document));if(!r){const t=Wt(e);t&&o(t)}return(0,a().useEffect)(()=>{t&&r&&t(r)},[t,r]),(0,a().useEffect)(()=>{const t=Wt(e);t!==r&&o(t)},[e,r]),r}(E),R=rn(N),P=function(){const e=(0,a().useRef)(!0),t=(0,a().useRef)(()=>e.current);return(0,a().useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),t.current}(),D=function(e){const t=(0,a().useRef)(null);return(0,a().useEffect)(()=>{t.current=e}),t.current}(o),[M,_]=(0,a().useState)(!o),j=(0,a().useRef)(null);(0,a().useImperativeHandle)(n,()=>R,[R]),mt&&!D&&o&&(j.current=Dt(null==Q?void 0:Q.document)),o&&M&&_(!1);const K=xt(()=>{if(R.add(),Y.current=Ht(document,"keydown",G),q.current=Ht(document,"focus",()=>setTimeout(W),!0),x&&x(),g){var e,t;const n=Dt(null!=(e=null==(t=R.dialog)?void 0:t.ownerDocument)?e:null==Q?void 0:Q.document);R.dialog&&n&&!Mt(R.dialog,n)&&(j.current=n,R.dialog.focus())}}),z=xt(()=>{var e;(R.remove(),null==Y.current||Y.current(),null==q.current||q.current(),v)&&(null==(e=j.current)||null==e.focus||e.focus(w),j.current=null)});(0,a().useEffect)(()=>{o&&H&&K()},[o,H,K]),(0,a().useEffect)(()=>{M&&z()},[M,z]),Ft(()=>{z()});const W=xt(()=>{if(!b||!P()||!R.isTopModal())return;const e=Dt(null==Q?void 0:Q.document);R.dialog&&e&&!Mt(R.dialog,e)&&R.dialog.focus()}),V=xt(e=>{e.target===e.currentTarget&&(null==h||h(e),!0===u&&S())}),G=xt(e=>{A&&function(e){return"Escape"===e.code||27===e.keyCode}(e)&&R.isTopModal()&&(null==d||d(e),e.defaultPrevented||S())}),q=(0,a().useRef)(),Y=(0,a().useRef)();if(!H)return null;const X=Object.assign({role:i,ref:R.setDialogRef,"aria-modal":"dialog"===i||void 0},I,{style:l,className:s,tabIndex:-1});let J=B?B(X):(0,r().jsx)("div",Object.assign({},X,{children:a().cloneElement(c,{role:"document"})}));J=en(p,f,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!o,onExit:T,onExiting:k,onExited:function(){_(!0),null==F||F(...arguments)},onEnter:U,onEntering:L,onEntered:O,children:J});let Z=null;return u&&(Z=C({ref:R.setBackdropRef,onClick:V}),Z=en(m,y,{in:!!o,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:Z})),(0,r().jsx)(r().Fragment,{children:t().createPortal((0,r().jsxs)(r().Fragment,{children:[Z,J]}),H)})});an.displayName="Modal";const on=Object.assign(an,{Manager:jt});var sn=Function.prototype.bind.call(Function.prototype.call,[].slice);function ln(e,t){return sn(e.querySelectorAll(t))}
2function cn(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}const un=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",An=".sticky-top",hn=".navbar-toggler";class dn extends jt{adjustAndStore(e,t,n){const r=t.style[e];t.dataset[e]=r,Qt(t,{[e]:`${parseFloat(Qt(t,e))+n}px`})}restore(e,t){const n=t.dataset[e];void 0!==n&&(delete t.dataset[e],Qt(t,{[e]:n}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();var n,r;if(r="modal-open",(n=t).classList?n.classList.add(r):function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")}(n,r)||("string"===typeof n.className?n.className=n.className+" "+r:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+r)),!e.scrollBarWidth)return;const a=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ln(t,un).forEach(t=>this.adjustAndStore(a,t,e.scrollBarWidth)),ln(t,An).forEach(t=>this.adjustAndStore(o,t,-e.scrollBarWidth)),ln(t,hn).forEach(t=>this.adjustAndStore(o,t,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();var n,r;r="modal-open",(n=t).classList?n.classList.remove(r):"string"===typeof n.className?n.className=cn(n.className,r):n.setAttribute("class",cn(n.className&&n.className.baseVal||"",r));const a=this.isRTL?"paddingLeft":"paddingRight",o=this.isRTL?"marginLeft":"marginRight";ln(t,un).forEach(e=>this.restore(a,e)),ln(t,An).forEach(e=>this.restore(o,e)),ln(t,hn).forEach(e=>this.restore(o,e))}}let pn;function fn(e,t){return fn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},fn(e,t)}const mn=!1,yn=a().createContext(null);var gn="unmounted",bn="exited",vn="entering",wn="entered",Bn="exiting",Cn=function(e){function n(t,n){var r;r=e.call(this,t,n)||this;var a,o=n&&!n.isMounting?t.enter:t.appear;return r.appearStatus=null,t.in?o?(a=bn,r.appearStatus=vn):a=wn:a=t.unmountOnExit||t.mountOnEnter?gn:bn,r.state={status:a},r.nextCallback=null,r}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,fn(e,t)}(n,e),n.getDerivedStateFromProps=function(e,t){return e.in&&t.status===gn?{status:bn}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==vn&&n!==wn&&(t=vn):n!==vn&&n!==wn||(t=Bn)}this.updateStatus(!1,t)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var e,t,n,r=this.props.timeout;return e=t=n=r,null!=r&&"number"!==typeof r&&(e=r.exit,t=r.enter,n=void 0!==r.appear?r.appear:t),{exit:e,enter:t,appear:n}},r.updateStatus=function(e,n){if(void 0===e&&(e=!1),null!==n)if(this.cancelNextCallback(),n===vn){if(this.props.unmountOnExit||this.props.mountOnEnter){var r=this.props.nodeRef?this.props.nodeRef.current:t().findDOMNode(this);r&&function(e){e.scrollTop}(r)}this.performEnter(e)}else this.performExit();else this.props.unmountOnExit&&this.state.status===bn&&this.setState({status:gn})},r.performEnter=function(e){var n=this,r=this.props.enter,a=this.context?this.context.isMounting:e,o=this.props.nodeRef?[a]:[t().findDOMNode(this),a],i=o[0],s=o[1],l=this.getTimeouts(),c=a?l.appear:l.enter;!e&&!r||mn?this.safeSetState({status:wn},function(){n.props.onEntered(i)}):(this.props.onEnter(i,s),this.safeSetState({status:vn},function(){n.props.onEntering(i,s),n.onTransitionEnd(c,function(){n.safeSetState({status:wn},function(){n.props.onEntered(i,s)})})}))},r.performExit=function(){var e=this,n=this.props.exit,r=this.getTimeouts(),a=this.props.nodeRef?void 0:t().findDOMNode(this);n&&!mn?(this.props.onExit(a),this.safeSetState({status:Bn},function(){e.props.onExiting(a),e.onTransitionEnd(r.exit,function(){e.safeSetState({status:bn},function(){e.props.onExited(a)})})})):this.safeSetState({status:bn},function(){e.props.onExited(a)})},r.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},r.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},r.onTransitionEnd=function(e,n){this.setNextCallback(n);var r=this.props.nodeRef?this.props.nodeRef.current:t().findDOMNode(this),a=null==e&&!this.props.addEndListener;if(r&&!a){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[r,this.nextCallback],i=o[0],s=o[1];this.props.addEndListener(i,s)}null!=e&&setTimeout(this.nextCallback,e)}else setTimeout(this.nextCallback,0)},r.render=function(){var e=this.state.status;if(e===gn)return null;var t=this.props,n=t.children,r=(t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef,function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return a().createElement(yn.Provider,{value:null},"function"===typeof n?n(e,r):a().cloneElement(a().Children.only(n),r))},n}(a().Component);function Nn(){}Cn.contextType=yn,Cn.propTypes={},Cn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter
2:!0,exit:!0,onEnter:Nn,onEntering:Nn,onEntered:Nn,onExit:Nn,onExiting:Nn,onExited:Nn},Cn.UNMOUNTED=gn,Cn.EXITED=bn,Cn.ENTERING=vn,Cn.ENTERED=wn,Cn.EXITING=Bn;const En=Cn;function xn(e,t){const n=Qt(e,t)||"",r=-1===n.indexOf("ms")?1e3:1;return parseFloat(n)*r}function Sn(e,t){const n=xn(e,"transitionDuration"),r=xn(e,"transitionDelay"),a=Pt(e,n=>{n.target===e&&(a(),t(n))},n+r)}function Tn(e){e.offsetHeight}const Fn=a().forwardRef((e,n)=>{let{onEnter:o,onEntering:i,onEntered:s,onExit:l,onExiting:c,onExited:u,addEndListener:A,children:h,childRef:d,...p}=e;const f=(0,a().useRef)(null),m=Tt(f,d),y=e=>{var n;m((n=e)&&"setState"in n?t().findDOMNode(n):null!=n?n:null)},g=e=>t=>{e&&f.current&&e(f.current,t)},b=(0,a().useCallback)(g(o),[o]),v=(0,a().useCallback)(g(i),[i]),w=(0,a().useCallback)(g(s),[s]),B=(0,a().useCallback)(g(l),[l]),C=(0,a().useCallback)(g(c),[c]),N=(0,a().useCallback)(g(u),[u]),E=(0,a().useCallback)(g(A),[A]);return(0,r().jsx)(En,{ref:n,...p,onEnter:b,onEntered:w,onEntering:v,onExit:B,onExited:N,onExiting:C,addEndListener:E,nodeRef:f,children:"function"===typeof h?(e,t)=>h(e,{...t,ref:y}):a().cloneElement(h,{ref:y})})}),kn={[vn]:"show",[wn]:"show"},Un=a().forwardRef((e,t)=>{let{className:n,children:o,transitionClasses:i={},onEnter:s,...l}=e;const c={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...l},u=(0,a().useCallback)((e,t)=>{Tn(e),null==s||s(e,t)},[s]);return(0,r().jsx)(Fn,{ref:t,addEndListener:Sn,...c,onEnter:u,childRef:o.ref,children:(e,t)=>a().cloneElement(o,{...t,className:Ae()("fade",n,o.props.className,kn[e],i[e])})})});Un.displayName="Fade";const Ln=Un,On=a().forwardRef((e,t)=>{let{className:n,bsPrefix:a,as:o="div",...i}=e;return a=Ce(a,"modal-body"),(0,r().jsx)(o,{ref:t,className:Ae()(n,a),...i})});On.displayName="ModalBody";const In=On,Qn=a().createContext({onHide(){}}),Hn=a().forwardRef((e,t)=>{let{bsPrefix:n,className:a,contentClassName:o,centered:i,size:s,fullscreen:l,children:c,scrollable:u,...A}=e;n=Ce(n,"modal");const h=`${n}-dialog`,d="string"===typeof l?`${n}-fullscreen-${l}`:`${n}-fullscreen`;return(0,r().jsx)("div",{...A,ref:t,className:Ae()(h,a,s&&`${n}-${s}`,i&&`${h}-centered`,u&&`${h}-scrollable`,l&&d),children:(0,r().jsx)("div",{className:Ae()(`${n}-content`,o),children:c})})});Hn.displayName="ModalDialog";const Rn=Hn,Pn=a().forwardRef((e,t)=>{let{className:n,bsPrefix:a,as:o="div",...i}=e;return a=Ce(a,"modal-footer"),(0,r().jsx)(o,{ref:t,className:Ae()(n,a),...i})});Pn.displayName="ModalFooter";const Dn=Pn,Mn={"aria-label":de().string,onClick:de().func,variant:de().oneOf(["white"])},_n=a().forwardRef((e,t)=>{let{className:n,variant:a,"aria-label":o="Close",...i}=e;return(0,r().jsx)("button",{ref:t,type:"button",className:Ae()("btn-close",a&&`btn-close-${a}`,n),"aria-label":o,...i})});_n.displayName="CloseButton",_n.propTypes=Mn;const jn=_n,Kn=a().forwardRef((e,t)=>{let{closeLabel:n="Close",closeVariant:o,closeButton:i=!1,onHide:s,children:l,...c}=e;const u=(0,a().useContext)(Qn),A=xt(()=>{null==u||u.onHide(),null==s||s()});return(0,r().jsxs)("div",{ref:t,...c,children:[l,i&&(0,r().jsx)(jn,{"aria-label":n,variant:o,onClick:A})]})}),zn=Kn,Wn=a().forwardRef((e,t)=>{let{bsPrefix:n,className:a,closeLabel:o="Close",closeButton:i=!1,...s}=e;return n=Ce(n,"modal-header"),(0,r().jsx)(zn,{ref:t,...s,className:Ae()(a,n),closeLabel:o,closeButton:i})});Wn.displayName="ModalHeader";const Vn=Wn,Gn=e=>a().forwardRef((t,n)=>(0,r().jsx)("div",{...t,ref:n,className:Ae()(t.className,e)}));n.dn(Gn);const qn=Gn("h4"),Yn=a().forwardRef((e,t)=>{let{className:n,bsPrefix:a,as:o=qn,...i}=e;return a=Ce(a,"modal-title"),(0,r().jsx)(o,{ref:t,className:Ae()(n,a),...i})});Yn.displayName="ModalTitle";const Xn=Yn;function Jn(e){return(0,r().jsx)(Ln,{...e,timeout:null})}function Zn(e){return(0,r().jsx)(Ln,{...e,timeout:null})}const $n=a().forwardRef((e,t)=>{let{bsPrefix:n,className:o,style:i,dialogClassName:s,contentClassName:l,children:c,dialogAs:u=Rn,"data-bs-theme":A,"aria-labelledby":h,"aria-describedby":d,"aria-label":p,show:f=!1,animation:m=!0,backdrop:y=!0,keyboard:g=!0,onEscapeKeyDown:b,onShow:v,onHide:w,container:B,autoFocus:C=!0,enforceFocus:N=!0,restoreFocus:E=!0,restoreFocusOptions:x,onEntered:S,onExit:T,onExiting:F,onEnter:k,onEntering:U,onExited:L,backdropClassName:O,manager:I,...Q}=e;
2const[H,R]=(0,a().useState)({}),[P,D]=(0,a().useState)(!1),M=(0,a().useRef)(!1),_=(0,a().useRef)(!1),j=(0,a().useRef)(null),[K,z]=(0,a().useState)(null),W=Tt(t,z),V=xt(w),G=function(){const{dir:e}=(0,a().useContext)(ve);return"rtl"===e}();n=Ce(n,"modal");const q=(0,a().useMemo)(()=>({onHide:V}),[V]);function Y(){return I||function(e){return pn||(pn=new dn(e)),pn}({isRTL:G})}function X(e){if(!mt)return;const t=Y().getScrollbarWidth()>0,n=e.scrollHeight>wt(e).documentElement.clientHeight;R({paddingRight:t&&!n?Nt():void 0,paddingLeft:!t&&n?Nt():void 0})}const J=xt(()=>{K&&X(K.dialog)});Ft(()=>{Bt(window,"resize",J),null==j.current||j.current()});const Z=()=>{M.current=!0},$=e=>{M.current&&K&&e.target===K.dialog&&(_.current=!0),M.current=!1},ee=()=>{D(!0),j.current=Pt(K.dialog,()=>{D(!1)})},te=e=>{"static"!==y?_.current||e.target!==e.currentTarget?_.current=!1:null==w||w():(e=>{e.target===e.currentTarget&&ee()})(e)},ne=(0,a().useCallback)(e=>(0,r().jsx)("div",{...e,className:Ae()(`${n}-backdrop`,O,!m&&"show")}),[m,O,n]),re={...i,...H};re.display="block";return(0,r().jsx)(Qn.Provider,{value:q,children:(0,r().jsx)(on,{show:f,ref:W,backdrop:y,container:B,keyboard:!0,autoFocus:C,enforceFocus:N,restoreFocus:E,restoreFocusOptions:x,onEscapeKeyDown:e=>{g?null==b||b(e):(e.preventDefault(),"static"===y&&ee())},onShow:v,onHide:w,onEnter:(e,t)=>{e&&X(e),null==k||k(e,t)},onEntering:(e,t)=>{null==U||U(e,t),vt(window,"resize",J)},onEntered:S,onExit:e=>{null==j.current||j.current(),null==T||T(e)},onExiting:F,onExited:e=>{e&&(e.style.display=""),null==L||L(e),Bt(window,"resize",J)},manager:Y(),transition:m?Jn:void 0,backdropTransition:m?Zn:void 0,renderBackdrop:ne,renderDialog:e=>(0,r().jsx)("div",{role:"dialog",...e,style:re,className:Ae()(o,n,P&&`${n}-static`,!m&&"show"),onClick:y?te:void 0,onMouseUp:$,"data-bs-theme":A,"aria-label":p,"aria-labelledby":h,"aria-describedby":d,children:(0,r().jsx)(u,{...Q,onMouseDown:Z,className:s,contentClassName:l,children:c})})})})});$n.displayName="Modal";const er=Object.assign($n,{Body:In,Header:Vn,Title:Xn,Footer:Dn,Dialog:Rn,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150});class tr extends a().Component{render(){return(0,r().jsxs)(er,{show:this.props.visible,onHide:this.props.hideModal,children:[(0,r().jsx)(er.Header,{closeButton:!0,children:(0,r().jsx)(er.Title,{children:this.props.title})}),(0,r().jsx)(er.Body,{children:(0,r().jsx)("div",{className:"help-content",dangerouslySetInnerHTML:{__html:this.props.content}})})]})}}const nr=tr,rr=Math.min,ar=Math.max,or=Math.round,ir=Math.floor,sr=e=>({x:e,y:e}),lr={left:"right",right:"left",bottom:"top",top:"bottom"},cr={start:"end",end:"start"};function ur(e,t,n){return ar(e,rr(t,n))}function Ar(e,t){return"function"===typeof e?e(t):e}function hr(e){return e.split("-")[0]}function dr(e){return e.split("-")[1]}function pr(e){return"x"===e?"y":"x"}function fr(e){return"y"===e?"height":"width"}function mr(e){return["top","bottom"].includes(hr(e))?"y":"x"}function yr(e){return pr(mr(e))}function gr(e){return e.replace(/start|end/g,e=>cr[e])}function br(e){return e.replace(/left|right|bottom|top/g,e=>lr[e])}function vr(e){return"number"!==typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function wr(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Br(e,t,n){let{reference:r,floating:a}=e;const o=mr(t),i=yr(t),s=fr(i),l=hr(t),c="y"===o,u=r.x+r.width/2-a.width/2,A=r.y+r.height/2-a.height/2,h=r[s]/2-a[s]/2;let d;switch(l){case"top":d={x:u,y:r.y-a.height};break;case"bottom":d={x:u,y:r.y+r.height};break;case"right":d={x:r.x+r.width,y:A};break;case"left":d={x:r.x-a.width,y:A};break;default:d={x:r.x,y:r.y}}switch(dr(t)){case"start":d[i]-=h*(n&&c?-1:1);break;case"end":d[i]+=h*(n&&c?-1:1)}return d}async function Cr(e,t){var n;void 0===t&&(t={});const{x:r,y:a,platform:o,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:A="floating",altBoundary:h=!1,padding:d=0}=Ar(t,e),p=vr(d),f=s[h?"floating"===A?"reference":"floating":A],m=wr(await o.getClippingRect
vendor: 13,406 bytes, line 2
2({element:null==(n=await(null==o.isElement?void 0:o.isElement(f)))||n?f:f.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),y="floating"===A?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,g=await(null==o.getOffsetParent?void 0:o.getOffsetParent(s.floating)),b=await(null==o.isElement?void 0:o.isElement(g))&&await(null==o.getScale?void 0:o.getScale(g))||{x:1,y:1},v=wr(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:g,strategy:l}):y);return{top:(m.top-v.top+p.top)/b.y,bottom:(v.bottom-m.bottom+p.bottom)/b.y,left:(m.left-v.left+p.left)/b.x,right:(v.right-m.right+p.right)/b.x}}function Nr(e){return Sr(e)?(e.nodeName||"").toLowerCase():"#document"}function Er(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function xr(e){var t;return null==(t=(Sr(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Sr(e){return e instanceof Node||e instanceof Er(e).Node}function Tr(e){return e instanceof Element||e instanceof Er(e).Element}function Fr(e){return e instanceof HTMLElement||e instanceof Er(e).HTMLElement}function kr(e){return"undefined"!==typeof ShadowRoot&&(e instanceof ShadowRoot||e instanceof Er(e).ShadowRoot)}function Ur(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Hr(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!["inline","contents"].includes(a)}function Lr(e){return["table","td","th"].includes(Nr(e))}function Or(e){const t=Ir(),n=Hr(e);return"none"!==n.transform||"none"!==n.perspective||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||["transform","perspective","filter"].some(e=>(n.willChange||"").includes(e))||["paint","layout","strict","content"].some(e=>(n.contain||"").includes(e))}function Ir(){return!("undefined"===typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function Qr(e){return["html","body","#document"].includes(Nr(e))}function Hr(e){return Er(e).getComputedStyle(e)}function Rr(e){return Tr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Pr(e){if("html"===Nr(e))return e;const t=e.assignedSlot||e.parentNode||kr(e)&&e.host||xr(e);return kr(t)?t.host:t}function Dr(e){const t=Pr(e);return Qr(t)?e.ownerDocument?e.ownerDocument.body:e.body:Fr(t)&&Ur(t)?t:Dr(t)}function Mr(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const a=Dr(e),o=a===(null==(r=e.ownerDocument)?void 0:r.body),i=Er(a);return o?t.concat(i,i.visualViewport||[],Ur(a)?a:[],i.frameElement&&n?Mr(i.frameElement):[]):t.concat(a,Mr(a,[],n))}function _r(e){const t=Hr(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Fr(e),o=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=or(n)!==o||or(r)!==i;return s&&(n=o,r=i),{width:n,height:r,$:s}}function jr(e){return Tr(e)?e:e.contextElement}function Kr(e){const t=jr(e);if(!Fr(t))return sr(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:o}=_r(t);let i=(o?or(n.width):n.width)/r,s=(o?or(n.height):n.height)/a;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const zr=sr(0);function Wr(e){const t=Er(e);return Ir()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:zr}function Vr(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const a=e.getBoundingClientRect(),o=jr(e);let i=sr(1);t&&(r?Tr(r)&&(i=Kr(r)):i=Kr(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Er(e))&&t}(o,n,r)?Wr(o):sr(0);let l=(a.left+s.x)/i.x,c=(a.top+s.y)/i.y,u=a.width/i.x,A=a.height/i.y;if(o){const e=Er(o),t=r&&Tr(r)?Er(r):r;let n=e,a=n.frameElement;for(;a&&r&&t!==n;){const e=Kr(a),t=a.getBoundingClientRect(),r=Hr(a),o=t.left+(a.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(a.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,A*=e.y,l+=o,c+=i,n=Er(a),a=n.frameElement}}return wr({width:u,height:A,x:l,y:c})}const Gr=[":popover-open",":modal"];function qr(e){return Gr.some(t=>{try{return e.matches(t)}catch(Ss){return!1}})}function Yr(e){return Vr(xr(e)).left+Rr(e).scrollLeft}function Xr(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Er(e),r=xr(e),a=n.visualViewport;let o=r.clientWidth,i=r.clientHeight,s=0,l=0;if(a){o=a.width,i=a.height;const e=Ir();(!e||e&&"fixed"===t)&&(s=a.offsetLeft,l=a.offsetTop)}return{width:o,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=xr(e),n=Rr(e),r=e.ownerDocument.body,a=ar(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=ar(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Yr(e);const s=-n.scrollTop;return"rtl"===Hr(r).direction&&(i+=ar(t.clientWidth,r.clientWidth)-a),{width:a,height:o,x:i,y:s}}(xr(e));else if(Tr(t))r=function(e,t){const n=Vr(e,!0,"fixed"===t),r=n.top+e.clientTop,a=n.left+e.clientLeft,o=Fr(e)?Kr(e):sr(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:a*o.x,y:r*o.y}}(t,n);else{const n=Wr(e);r={...t,x:t.x-n.x,y:t.y-n.y}}return wr(r)}function Jr(e,t){const n=Pr(e);return!(n===t||!Tr(n)||Qr(n))&&("fixed"===Hr(n).position||Jr(n,t))}function Zr(e,t,n){const r=Fr(t),a=xr(t),o="fixed"===n,i=Vr(e,!0,o,t);let s={scrollLeft:0,scrollTop:0};const l=sr(0);if(r||!r&&!o)if(("body"!==Nr(t)||Ur(a))&&(s=Rr(t)),r){const e=Vr(t,!0,o,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else a&&(l.x=Yr(a));return{x:i.left+s.scrollLeft-l.x,y:i.top+s.scrollTop-l.y,width:i.width,height:i.height}}function $r(e){return"static"===Hr(e).position}function ea(e,t){return Fr(e)&&"fixed"!==Hr(e).position?t?t(e):e.offsetParent:null}function ta(e,t){const n=Er(e);if(qr(e))return n;if(!Fr(e)){let t=Pr(e);for(;t&&!Qr(t);){if(Tr(t)&&!$r(t))return t;t=Pr(t)}return n}let r=ea(e,t);for(;r&&Lr(r)&&$r(r);)r=ea(r,t);return r&&Qr(r)&&$r(r)&&!Or(r)?n:r||function(e){let t=Pr(e);for(;Fr(t)&&!Qr(t);){if(Or(t))return t;t=Pr(t)}return null}(e)||n}const na={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const o="fixed"===a,i=xr(r),s=!!t&&qr(t.floating);if(r===i||s&&o)return n;let l={scrollLeft:0,scrollTop:0},c=sr(1);const u=sr(0),A=Fr(r);if((A||!A&&!o)&&(("body"!==Nr(r)||Ur(i))&&(l=Rr(r)),Fr(r))){const e=Vr(r);c=Kr(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x,y:n.y*c.y-l.scrollTop*c.y+u.y}},getDocumentElement:xr,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const o=[..."clippingAncestors"===n?qr(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=Mr(e,[],!1).filter(e=>Tr(e)&&"body"!==Nr(e)),a=null;const o="fixed"===Hr(e).position;let i=o?Pr(e):e;for(;Tr(i)&&!Qr(i);){const t=Hr(i),n=Or(i);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&a&&["absolute","fixed"].includes(a.position)||Ur(i)&&!n&&Jr(e,i))?r=r.filter(e=>e!==i):a=t,i=Pr(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=o[0],s=o.reduce((e,n)=>{const r=Xr(t,n,a);return e.top=ar(r.top,e.top),e.right=rr(r.right,e.right),e.bottom=rr(r.bottom,e.bottom),e.left=ar(r.left,e.left),e},Xr(t,i,a));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:ta,getElementRects:async function(e){const t=this.getOffsetParent||ta,n=this.getDimensions,r=await n(e.floating);return{reference:Zr(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=_r(e);return{width:t,height:n}},getScale:Kr,isElement:Tr,isRTL:function(e){return"rtl"===Hr(e).direction}};function ra(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:i="function"===typeof ResizeObserver,layoutShift:s="function"===typeof IntersectionObserver,animationFrame:l=!1}=r,c=jr(e),u=a||o?[...c?Mr(c):[],...Mr(t)]:[];u.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const A=c&&s?function(e,t){let n,r=null;const a=xr(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),o();const{left:c,top:u,width:A,height:h}=e.getBoundingClientRect();if(s||t(),!A||!h)return;const d={rootMargin:-ir(u)+"px "+-ir(a.clientWidth-(c+A))+"px "+-ir(a.clientHeight-(u+h))+"px "+-ir(c)+"px",threshold:ar(0,rr(1,l))||1};let p=!0;function f(e){const t=e[0].intersectionRatio;if(t!==l){if(!p)return i();t?i(!1,t):n=setTimeout(()=>{i(!1,1e-7)},1e3)}p=!1}try{r=new IntersectionObserver(f,{...d,root:a.ownerDocument})}catch(Ss){r=new IntersectionObserver(f,d)}r.observe(e)}(!0),o}(c,n):null;let h,d=-1,p=null;i&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&p&&(p.unobserve(t),cancelAnimationFrame(d),d=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),c&&!l&&p.observe(c),p.observe(t));let f=l?Vr(e):null;return l&&function t(){const r=Vr(e);!f||r.x===f.x&&r.y===f.y&&r.width===f.width&&r.height===f.height||n();f=r,h=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==A||A(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(h)}}const aa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:o,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:a}=e,o=await(null==r.isRTL?void 0:r.isRTL(a.floating)),i=hr(n),s=dr(n),l="y"===mr(n),c=["left","top"].includes(i)?-1:1,u=o&&l?-1:1,A=Ar(t,e);let{mainAxis:h,crossAxis:d,alignmentAxis:p}="number"===typeof A?{mainAxis:A,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...A};return s&&"number"===typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:a+l.x,y:o+l.y,data:{...l,placement:i}}}}},oa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a}=t,{mainAxis:o=!0,crossAxis:i=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=Ar(e,t),c={x:n,y:r},u=await Cr(t,l),A=mr(hr(a)),h=pr(A);let d=c[h],p=c[A];if(o){const e="y"===h?"bottom":"right";d=ur(d+u["y"===h?"top":"left"],d,d-u[e])}if(i){const e="y"===A?"bottom":"right";p=ur(p+u["y"===A?"top":"left"],p,p-u[e])}const f=s.fn({...t,[h]:d,[A]:p});return{...f,data:{x:f.x-n,y:f.y-r}}}}},ia=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:o,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:A=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:f=!0,...m}=Ar(e,t);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const y=hr(a),g=hr(s)===s,b=await(null==l.isRTL?void 0:l.isRTL(c.floating)),v=h||(g||!f?[br(s)]:function(e){const t=br(e);return[gr(e),t,gr(t)]}(s));h||"none"===p||v.push(...function(e,t,n,r){const a=dr(e);let o=function(e,t,n){const r=["left","right"],a=["right","left"],o=["top","bottom"],i=["bottom","top"];switch(e){case"top":case"bottom":return n?t?a:r:t?r:a;case"left":case"right":return t?o:i;default:return[]}}(hr(e),"start"===n,r);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(gr)))),o}(s,f,p,b));const w=[s,...v],B=await Cr(t,m),C=[];let N=(null==(r=o.flip)?void 0:r.overflows)||[];if(u&&C.push(B[y]),A){const e=function(e,t,n){void 0===n&&(n=!1);const r=dr(e),a=yr(e),o=fr(a);let i="x"===a?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(i=br(i)),[i,br(i)]}(a,i,b);C.push(B[e[0]],B[e[1]])}if(N=[...N,{placement:a,overflows:C}],!C.every(e=>e<=0)){var E,x;const e=((null==(E=o.flip)?void 0:E.index)||0)+1,t=w[e];if(t)return{data:{index:e,overflows:N},reset:{placement:t}};let n=null==(x=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:x.placement;if(!n)switch(d){case"bestFit":{var S;const e=null==(S=N.map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:S[0];e&&(n=e);break}case"initialPlacement":n=s}if(a!==n)return{reset:{placement:n}}}return{}}}},sa=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:a,rects:o,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=Ar(e,t)||{};if(null==c)return{};const A=vr(u),h={x:n,y:r},d=yr(a),p=fr(d),f=await i.getDimensions(c),m="y"===d,y=m?"top":"left",g=m?"bottom":"right",b=m?"clientHeight":"clientWidth",v=o.reference[p]+o.reference[d]-h[d]-o.floating[p],w=h[d]-o.reference[d],B=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let C=B?B[b]:0;C&&await(null==i.isElement?void 0:i.isElement(B))||(C=s.floating[b]||o.floating[p]);const N=v/2-w/2,E=C/2-f[p]/2-1,x=rr(A[y],E),S=rr(A[g],E),T=x,F=C-f[p]-S,k=C/2-f[p]/2+N,U=ur(T,k,F),L=!l.arrow&&null!=dr(a)&&k!==U&&o.reference[p]/2-(k<T?x:S)-f[p]/2<0,O=L?k<T?k-T:k-F:0;return{[d]:h[d]+O,data:{[d]:U,centerOffset:k-U-O,...L&&{alignmentOffset:O}},reset:L}}}),la=(e,t,n)=>{const r=new Map,a={platform:na,...n},o={...a.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:o=[],platform:i}
2=n,s=o.filter(Boolean),l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:u,y:A}=Br(c,r,l),h=r,d={},p=0;for(let f=0;f<s.length;f++){const{name:n,fn:o}=s[f],{x:m,y:y,data:g,reset:b}=await o({x:u,y:A,initialPlacement:r,placement:h,strategy:a,middlewareData:d,rects:c,platform:i,elements:{reference:e,floating:t}});u=null!=m?m:u,A=null!=y?y:A,d={...d,[n]:{...d[n],...g}},b&&p<=50&&(p++,"object"===typeof b&&(b.placement&&(h=b.placement),b.rects&&(c=!0===b.rects?await i.getElementRects({reference:e,floating:t,strategy:a}):b.rects),({x:u,y:A}=Br(c,h,l))),f=-1)}return{x:u,y:A,placement:h,strategy:a,middlewareData:d}})(e,t,{...a,platform:o})};const ca="react-tooltip-core-styles",ua="react-tooltip-base-styles",Aa={core:!1,base:!1};function ha(e){let{css:t,id:n=ua,type:r="base",ref:a}=e;var o,i;if(!t||"undefined"==typeof document||Aa[r])return;if("core"===r&&"undefined"!=typeof process&&(null===(o=null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"/ti4",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===o?void 0:o.REACT_TOOLTIP_DISABLE_CORE_STYLES))return;if("base"!==r&&"undefined"!=typeof process&&(null===(i=null===process||void 0===process?void 0:{NODE_ENV:"production",PUBLIC_URL:"/ti4",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0})||void 0===i?void 0:i.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;"core"===r&&(n=ca),a||(a={});const{insertAt:s}=a;if(document.getElementById(n))return void console.warn(`[react-tooltip] Element with id '${n}' already exists. Call \`removeStyle()\` first`);const l=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.id=n,c.type="text/css","top"===s&&l.firstChild?l.insertBefore(c,l.firstChild):l.appendChild(c),c.styleSheet?c.styleSheet.cssText=t:c.appendChild(document.createTextNode(t)),Aa[r]=!0}const da=async e=>{let{elementReference:t=null,tooltipReference:n=null,tooltipArrowReference:r=null,place:a="top",offset:o=10,strategy:i="absolute",middlewares:s=[aa(Number(o)),ia({fallbackAxisSideDirection:"start"}),oa({padding:5})],border:l}=e;if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};if(null===n)return{tooltipStyles:{},tooltipArrowStyles:{},place:a};const c=s;return r?(c.push(sa({element:r,padding:5})),la(t,n,{placement:a,strategy:i,middleware:c}).then(e=>{let{x:t,y:n,placement:r,middlewareData:a}=e;var o,i;const s={left:`${t}px`,top:`${n}px`,border:l},{x:c,y:u}=null!==(o=a.arrow)&&void 0!==o?o:{x:0,y:0},A=null!==(i={top:"bottom",right:"left",bottom:"top",left:"right"}[r.split("-")[0]])&&void 0!==i?i:"bottom",h=l&&{borderBottom:l,borderRight:l};let d=0;if(l){const e=`${l}`.match(/(\d+)px/);d=(null==e?void 0:e[1])?Number(e[1]):1}return{tooltipStyles:s,tooltipArrowStyles:{left:null!=c?`${c}px`:"",top:null!=u?`${u}px`:"",right:"",bottom:"",...h,[A]:`-${4+d}px`},place:r}})):la(t,n,{placement:"bottom",strategy:i,middleware:c}).then(e=>{let{x:t,y:n,placement:r}=e;return{tooltipStyles:{left:`${t}px`,top:`${n}px`},tooltipArrowStyles:{},place:r}})},pa=(e,t)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(e,t),fa=(e,t,n)=>{let r=null;const a=function(){for(var a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];const s=()=>{r=null,n||e.apply(this,o)};n&&!r&&(e.apply(this,o),r=setTimeout(s,t)),n||(r&&clearTimeout(r),r=setTimeout(s,t))};return a.cancel=()=>{r&&(clearTimeout(r),r=null)},a},ma=e=>null!==e&&!Array.isArray(e)&&"object"==typeof e,ya=(e,t)=>{if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&e.every((e,n)=>ya(e,t[n]));if(Array.isArray(e)!==Array.isArray(t))return!1;if(!ma(e)||!ma(t))return e===t;const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(n=>ya(e[n],t[n]))},ga=e=>{if(!(e instanceof HTMLElement||e instanceof SVGElement))return!1;const t=getComputedStyle(e);return["overflow","overflow-x","overflow-y"].some(e=>{const n=t.getPropertyValue(e);return"auto"===n||"scroll"===n})},ba=e=>{if(!e)return null;let t=e.parentElement;for(;t;){if(ga(t))return t;t=t.parentElement}return document.scrollingElement||document.documentElement},va="undefined"!=typeof window?a().useLayoutEffect:a().useEffect,wa="DEFAULT_TOOLTIP_ID",Ba={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},Ca=(0,a().createContext)({getTooltipData:()=>Ba});function Na(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:wa;return(0,a().useContext)(Ca).getTooltipData(e)}var Ea={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},xa={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const Sa=e=>{let{forwardRef:t,id:n,className:r,classNameArrow:o,variant:i="dark",anchorId:s,anchorSelect:l,place:c="top",offset:u=10,events:A=["hover"],openOnClick:h=!1,positionStrategy:d="absolute",middlewares:p,wrapper:f,delayShow:m=0,delayHide:y=0,float:g=!1,hidden:b=!1,noArrow:v=!1,clickable:w=!1,closeOnEsc:B=!1,closeOnScroll:C=!1,closeOnResize:N=!1,openEvents:E,closeEvents:x,globalCloseEvents:S,imperativeModeOnly:T,style:F,position:k,afterShow:U,afterHide:L,content:O,contentWrapperRef:I,isOpen:Q,defaultIsOpen:H=!1,setIsOpen:R,activeAnchor:P,setActiveAnchor:D,border:M,opacity:_,arrowColor:j,role:K="tooltip"}=e;var z;const W=(0,a().useRef)(null),V=(0,a().useRef)(null),G=(0,a().useRef)(null),q=(0,a().useRef)(null),Y=(0,a().useRef)(null),[X,J]=(0,a().use
2State)({tooltipStyles:{},tooltipArrowStyles:{},place:c}),[Z,$]=(0,a().useState)(!1),[ee,te]=(0,a().useState)(!1),[ne,re]=(0,a().useState)(null),ae=(0,a().useRef)(!1),oe=(0,a().useRef)(null),{anchorRefs:ie,setActiveAnchor:se}=Na(n),le=(0,a().useRef)(!1),[ce,Ae]=(0,a().useState)([]),he=(0,a().useRef)(!1),de=h||A.includes("click"),pe=de||(null==E?void 0:E.click)||(null==E?void 0:E.dblclick)||(null==E?void 0:E.mousedown),fe=E?{...E}:{mouseenter:!0,focus:!0,click:!1,dblclick:!1,mousedown:!1};!E&&de&&Object.assign(fe,{mouseenter:!1,focus:!1,click:!0});const me=x?{...x}:{mouseleave:!0,blur:!0,click:!1,dblclick:!1,mouseup:!1};!x&&de&&Object.assign(me,{mouseleave:!1,blur:!1});const ye=S?{...S}:{escape:B||!1,scroll:C||!1,resize:N||!1,clickOutsideAnchor:pe||!1};T&&(Object.assign(fe,{mouseenter:!1,focus:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(me,{mouseleave:!1,blur:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(ye,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),va(()=>(he.current=!0,()=>{he.current=!1}),[]);const ge=e=>{he.current&&(e&&te(!0),setTimeout(()=>{he.current&&(null==R||R(e),void 0===Q&&$(e))},10))};(0,a().useEffect)(()=>{if(void 0===Q)return()=>null;Q&&te(!0);const e=setTimeout(()=>{$(Q)},10);return()=>{clearTimeout(e)}},[Q]),(0,a().useEffect)(()=>{if(Z!==ae.current)if(Y.current&&clearTimeout(Y.current),ae.current=Z,Z)null==U||U();else{const e=(()=>{const e=getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay").match(/^([\d.]+)(ms|s)$/);if(!e)return 0;const[,t,n]=e;return Number(t)*("ms"===n?1:1e3)})();Y.current=setTimeout(()=>{te(!1),re(null),null==L||L()},e+25)}},[Z]);const be=e=>{J(t=>ya(t,e)?t:e)},ve=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m;G.current&&clearTimeout(G.current),ee?ge(!0):G.current=setTimeout(()=>{ge(!0)},e)},we=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:y;q.current&&clearTimeout(q.current),q.current=setTimeout(()=>{le.current||ge(!1)},e)},Be=e=>{var t;if(!e)return;const n=null!==(t=e.currentTarget)&&void 0!==t?t:e.target;if(!(null==n?void 0:n.isConnected))return D(null),void se({current:null});m?ve():ge(!0),D(n),se({current:n}),q.current&&clearTimeout(q.current)},Ce=()=>{w?we(y||100):y?we():ge(!1),G.current&&clearTimeout(G.current)},Ne=e=>{let{x:t,y:n}=e;var r;const a={getBoundingClientRect:()=>({x:t,y:n,width:0,height:0,top:n,left:t,right:t,bottom:n})};da({place:null!==(r=null==ne?void 0:ne.place)&&void 0!==r?r:c,offset:u,elementReference:a,tooltipReference:W.current,tooltipArrowReference:V.current,strategy:d,middlewares:p,border:M}).then(e=>{be(e)})},Ee=e=>{if(!e)return;const t=e,n={x:t.clientX,y:t.clientY};Ne(n),oe.current=n},xe=e=>{var t;if(!Z)return;const n=e.target;n.isConnected&&((null===(t=W.current)||void 0===t?void 0:t.contains(n))||[document.querySelector(`[id='${s}']`),...ce].some(e=>null==e?void 0:e.contains(n))||(ge(!1),G.current&&clearTimeout(G.current)))},Se=fa(Be,50,!0),Te=fa(Ce,50,!0),Fe=e=>{Te.cancel(),Se(e)},ke=()=>{Se.cancel(),Te()},Ue=(0,a().useCallback)(()=>{var e,t;const n=null!==(e=null==ne?void 0:ne.position)&&void 0!==e?e:k;n?Ne(n):g?oe.current&&Ne(oe.current):(null==P?void 0:P.isConnected)&&da({place:null!==(t=null==ne?void 0:ne.place)&&void 0!==t?t:c,offset:u,elementReference:P,tooltipReference:W.current,tooltipArrowReference:V.current,strategy:d,middlewares:p,border:M}).then(e=>{he.current&&be(e)})},[Z,P,O,F,c,null==ne?void 0:ne.place,u,d,k,null==ne?void 0:ne.position,g]);(0,a().useEffect)(()=>{var e,t;const n=new Set(ie);ce.forEach(e=>{n.add({current:e})});const r=document.querySelector(`[id='${s}']`);r&&n.add({current:r});const a=()=>{ge(!1)},o=ba(P),i=ba(W.current);ye.scroll&&(window.addEventListener("scroll",a),null==o||o.addEventListener("scroll",a),null==i||i.addEventListener("scroll",a));let l=null;ye.resize?window.addEventListener("resize",a):P&&W.current&&(l=ra(P,W.current,Ue,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const c=e=>{"Escape"===e.key&&ge(!1)};ye.escape&&window.addEventListener("keydown",c),ye.clickOutsideAnchor&&window.addEventListener("click",xe);const u=[],A=e=>{Z&&(null==e?void 0:e.target)===P||Be(e)},h=e=>{Z&&(null==e?void 0:e.target)===P&&Ce()},d=["mouseenter","mouseleave","focus","blur"],p=["click","dblclick","mousedown","mouseup"];
2Object.entries(fe).forEach(e=>{let[t,n]=e;n&&(d.includes(t)?u.push({event:t,listener:Fe}):p.includes(t)&&u.push({event:t,listener:A}))}),Object.entries(me).forEach(e=>{let[t,n]=e;n&&(d.includes(t)?u.push({event:t,listener:ke}):p.includes(t)&&u.push({event:t,listener:h}))}),g&&u.push({event:"pointermove",listener:Ee});const f=()=>{le.current=!0},m=()=>{le.current=!1,Ce()};return w&&!pe&&(null===(e=W.current)||void 0===e||e.addEventListener("mouseenter",f),null===(t=W.current)||void 0===t||t.addEventListener("mouseleave",m)),u.forEach(e=>{let{event:t,listener:r}=e;n.forEach(e=>{var n;null===(n=e.current)||void 0===n||n.addEventListener(t,r)})}),()=>{var e,t;ye.scroll&&(window.removeEventListener("scroll",a),null==o||o.removeEventListener("scroll",a),null==i||i.removeEventListener("scroll",a)),ye.resize?window.removeEventListener("resize",a):null==l||l(),ye.clickOutsideAnchor&&window.removeEventListener("click",xe),ye.escape&&window.removeEventListener("keydown",c),w&&!pe&&(null===(e=W.current)||void 0===e||e.removeEventListener("mouseenter",f),null===(t=W.current)||void 0===t||t.removeEventListener("mouseleave",m)),u.forEach(e=>{let{event:t,listener:r}=e;n.forEach(e=>{var n;null===(n=e.current)||void 0===n||n.removeEventListener(t,r)})})}},[P,Ue,ee,ie,ce,E,x,S,de,m,y]),(0,a().useEffect)(()=>{var e,t;let r=null!==(t=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l)&&void 0!==t?t:"";!r&&n&&(r=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const a=new MutationObserver(e=>{const t=[],a=[];e.forEach(e=>{if("attributes"===e.type&&"data-tooltip-id"===e.attributeName&&(e.target.getAttribute("data-tooltip-id")===n?t.push(e.target):e.oldValue===n&&a.push(e.target)),"childList"===e.type){if(P){const t=[...e.removedNodes].filter(e=>1===e.nodeType);if(r)try{a.push(...t.filter(e=>e.matches(r))),a.push(...t.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}t.some(e=>{var t;return!!(null===(t=null==e?void 0:e.contains)||void 0===t?void 0:t.call(e,P))&&(te(!1),ge(!1),D(null),G.current&&clearTimeout(G.current),q.current&&clearTimeout(q.current),!0)})}if(r)try{const n=[...e.addedNodes].filter(e=>1===e.nodeType);t.push(...n.filter(e=>e.matches(r))),t.push(...n.flatMap(e=>[...e.querySelectorAll(r)]))}catch(e){}}}),(t.length||a.length)&&Ae(e=>[...e.filter(e=>!a.includes(e)),...t])});return a.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{a.disconnect()}},[n,l,null==ne?void 0:ne.anchorSelect,P]),(0,a().useEffect)(()=>{Ue()},[Ue]),(0,a().useEffect)(()=>{if(!(null==I?void 0:I.current))return()=>null;const e=new ResizeObserver(()=>{setTimeout(()=>Ue())});return e.observe(I.current),()=>{e.disconnect()}},[O,null==I?void 0:I.current]),(0,a().useEffect)(()=>{var e;const t=document.querySelector(`[id='${s}']`),n=[...ce,t];P&&n.includes(P)||D(null!==(e=ce[0])&&void 0!==e?e:t)},[s,ce,P]),(0,a().useEffect)(()=>(H&&ge(!0),()=>{G.current&&clearTimeout(G.current),q.current&&clearTimeout(q.current)}),[]),(0,a().useEffect)(()=>{var e;let t=null!==(e=null==ne?void 0:ne.anchorSelect)&&void 0!==e?e:l;if(!t&&n&&(t=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),t)try{const e=Array.from(document.querySelectorAll(t));Ae(e)}catch(e){Ae([])}},[n,l,null==ne?void 0:ne.anchorSelect]),(0,a().useEffect)(()=>{G.current&&(clearTimeout(G.current),ve(m))},[m]);const Le=null!==(z=null==ne?void 0:ne.content)&&void 0!==z?z:O,Oe=Z&&Object.keys(X.tooltipStyles).length>0;return(0,a().useImperativeHandle)(t,()=>({open:e=>{if(null==e?void 0:e.anchorSelect)try{document.querySelector(e.anchorSelect)}catch(t){return void console.warn(`[react-tooltip] "${e.anchorSelect}" is not a valid CSS selector`)}re(null!=e?e:null),(null==e?void 0:e.delay)?ve(e.delay):ge(!0)},close:e=>{(null==e?void 0:e.delay)?we(e.delay):ge(!1)},activeAnchor:P,place:X.place,isOpen:Boolean(ee&&!b&&Le&&Oe)})),ee&&!b&&Le?a().createElement(f,{id:n,role:K,className:ue("react-tooltip",Ea.tooltip,xa.tooltip,xa[i],r,`react-tooltip__place-${X.place}`,Ea[Oe?"show":"closing"],Oe?"react-tooltip__show":"react-tooltip__closing","fixed"===d&&Ea.fixed,w&&Ea.clickable),onTransitionEnd:e=>{Y.current&&clearTimeout(Y.current),Z||"opacity"!==e.propertyName||(te(!1),re(null),null==L||L())},style:{...F,...X.tooltipStyles,opacity:void 0!==_&&Oe?_:void 0},ref:W},Le,a().createElement(f,{className:ue("react-tooltip-arrow",Ea.arrow,xa.arrow,o,v&&Ea.noArrow),style:{...X.tooltipArrowStyles,background:j?`linear-gradient(to right bottom, transparent 50%, ${j} 50%)`:void 0},ref:V})):null},Ta=e=>{let{content:t}=e;return a().createElement("span",{dangerouslySetInnerHTML:{__html:t}})},Fa=a().forwardRef((e,t)=>
2{let{id:n,anchorId:r,anchorSelect:o,content:i,html:s,render:l,className:c,classNameArrow:u,variant:A="dark",place:h="top",offset:d=10,wrapper:p="div",children:f=null,events:m=["hover"],openOnClick:y=!1,positionStrategy:g="absolute",middlewares:b,delayShow:v=0,delayHide:w=0,float:B=!1,hidden:C=!1,noArrow:N=!1,clickable:E=!1,closeOnEsc:x=!1,closeOnScroll:S=!1,closeOnResize:T=!1,openEvents:F,closeEvents:k,globalCloseEvents:U,imperativeModeOnly:L=!1,style:O,position:I,isOpen:Q,defaultIsOpen:H=!1,disableStyleInjection:R=!1,border:P,opacity:D,arrowColor:M,setIsOpen:_,afterShow:j,afterHide:K,role:z="tooltip"}=e;const[W,V]=(0,a().useState)(i),[G,q]=(0,a().useState)(s),[Y,X]=(0,a().useState)(h),[J,Z]=(0,a().useState)(A),[$,ee]=(0,a().useState)(d),[te,ne]=(0,a().useState)(v),[re,ae]=(0,a().useState)(w),[oe,ie]=(0,a().useState)(B),[se,le]=(0,a().useState)(C),[ce,Ae]=(0,a().useState)(p),[he,de]=(0,a().useState)(m),[pe,fe]=(0,a().useState)(g),[me,ye]=(0,a().useState)(null),[ge,be]=(0,a().useState)(null),ve=(0,a().useRef)(R),{anchorRefs:we,activeAnchor:Be}=Na(n),Ce=e=>null==e?void 0:e.getAttributeNames().reduce((t,n)=>{var r;return n.startsWith("data-tooltip-")&&(t[n.replace(/^data-tooltip-/,"")]=null!==(r=null==e?void 0:e.getAttribute(n))&&void 0!==r?r:null),t},{}),Ne=e=>{const t={place:e=>{var t;X(null!==(t=e)&&void 0!==t?t:h)},content:e=>{V(null!=e?e:i)},html:e=>{q(null!=e?e:s)},variant:e=>{var t;Z(null!==(t=e)&&void 0!==t?t:A)},offset:e=>{ee(null===e?d:Number(e))},wrapper:e=>{var t;Ae(null!==(t=e)&&void 0!==t?t:p)},events:e=>{const t=null==e?void 0:e.split(" ");de(null!=t?t:m)},"position-strategy":e=>{var t;fe(null!==(t=e)&&void 0!==t?t:g)},"delay-show":e=>{ne(null===e?v:Number(e))},"delay-hide":e=>{ae(null===e?w:Number(e))},float:e=>{ie(null===e?B:"true"===e)},hidden:e=>{le(null===e?C:"true"===e)},"class-name":e=>{ye(e)}};Object.values(t).forEach(e=>e(null)),Object.entries(e).forEach(e=>{let[n,r]=e;var a;null===(a=t[n])||void 0===a||a.call(t,r)})};(0,a().useEffect)(()=>{V(i)},[i]),(0,a().useEffect)(()=>{q(s)},[s]),(0,a().useEffect)(()=>{X(h)},[h]),(0,a().useEffect)(()=>{Z(A)},[A]),(0,a().useEffect)(()=>{ee(d)},[d]),(0,a().useEffect)(()=>{ne(v)},[v]),(0,a().useEffect)(()=>{ae(w)},[w]),(0,a().useEffect)(()=>{ie(B)},[B]),(0,a().useEffect)(()=>{le(C)},[C]),(0,a().useEffect)(()=>{fe(g)},[g]),(0,a().useEffect)(()=>{ve.current!==R&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[R]),(0,a().useEffect)(()=>{"undefined"!=typeof window&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:"core"===R,disableBase:R}}))},[]),(0,a().useEffect)(()=>{var e;const t=new Set(we);let a=o;if(!a&&n&&(a=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),a)try{document.querySelectorAll(a).forEach(e=>{t.add({current:e})})}catch(e){console.warn(`[react-tooltip] "${a}" is not a valid CSS selector`)}const i=document.querySelector(`[id='${r}']`);if(i&&t.add({current:i}),!t.size)return()=>null;const s=null!==(e=null!=ge?ge:i)&&void 0!==e?e:Be.current,l=new MutationObserver(e=>{e.forEach(e=>{var t;if(!s||"attributes"!==e.type||!(null===(t=e.attributeName)||void 0===t?void 0:t.startsWith("data-tooltip-")))return;const n=Ce(s);Ne(n)})}),c={attributes:!0,childList:!1,subtree:!1};if(s){const e=Ce(s);Ne(e),l.observe(s,c)}return()=>{l.disconnect()}},[we,Be,ge,r,o]),(0,a().useEffect)(()=>{(null==O?void 0:O.border)&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),P&&!pa("border",`${P}`)&&console.warn(`[react-tooltip] "${P}" is not a valid \`border\`.`),(null==O?void 0:O.opacity)&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),D&&!pa("opacity",`${D}`)&&console.warn(`[react-tooltip] "${D}" is not a valid \`opacity\`.`)},[]);let Ee=f;const xe=(0,a().useRef)(null);if(l){const e=l({content:(null==ge?void 0:ge.getAttribute("data-tooltip-content"))||W||null,activeAnchor:ge});Ee=e?a().createElement("div",{ref:xe,className:"react-tooltip-content-wrapper"},e):null}else W&&(Ee=W);G&&(Ee=a().createElement(Ta,{content:G}));const Se={forwardRef:t,id:n,anchorId:r,anchorSelect:o,className:ue(c,me),classNameArrow:u,content:Ee,contentWrapperRef:xe,place:Y,variant:J,offset:$,wrapper:ce,events:he,openOnClick:y,positionStrategy:pe,middlewares:b,delayShow:te,delayHide:re,float:oe,hidden:se,noArrow:N,clickable:E,closeOnEsc:x,closeOnScroll:S,closeOnResize:T,openEvents:F,closeEvents:k,globalCloseEvents:U,imperativeModeOnly:L,style:O,position:I,isOpen:Q,defaultIsOpen:H,border:P,opacity:D,arrowColor:M,setIsOpen:_,afterShow:j,afterHide:K,activeAnchor:ge,setActiveAnchor:e=>be(e),role:z};return a().createElement(Sa,{...Se})});function ka(e){if("number"==typeof e)return[e,""];{const t=e.match(/((?:er)?\d+)(.*)/);if(null===t)return[99999,t];{const[,n,r]=t;return e.includes("hyp")?[99999,t]:[n,r]}}}function Ua(e,t){const[n,r]=ka(e),[a,o]=ka(t);return n===a?r<o?-1:r===o?0:1:n-a}"undefined"!=typeof window&&window.addEventListener("react-tooltip-inject-styles",e=>{e.detail.disableCore||ha({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}
2.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),e.detail.disableBase||ha({css:"\n.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}",type:"base"})});const La={"-1":"Empty",0:"Home"};class Oa extends a().Component{constructor(e){super(e),this.state={searchTerm:"",searchHelp:!1,collapsedSections:{}},this.underlayStyle={width:"210px",height:"185px",position:"absolute",top:"0",left:"0"},this.tileStyle={width:"200px",height:"175px",display:"none",margin:"5px",position:"relative"},this.overlayStyle={height:"175px",marginLeft:"92px",top:"85px",display:"none"},this.updateSearchTerm=this.updateSearchTerm.bind(this),this.clearSearchTerm=this.clearSearchTerm.bind(this),this.toggleSearchHelp=this.toggleSearchHelp.bind(this),this.toggleSection=this.toggleSection.bind(this)}componentDidUpdate(e,t){t.searchTerm===this.state.searchTerm&&t.collapsedSections===this.state.collapsedSections||this.props.showExtraTiles&&this.props.showExtraTiles()}updateSearchTerm(e){this.setState({searchTerm:e.target.value})}clearSearchTerm(){this.setState({searchTerm:""})}toggleSearchHelp(){this.setState(e=>({searchHelp:!e.searchHelp}))}toggleSection(e){this.setState(t=>({collapsedSections:{...t.collapsedSections,[e]:!t.collapsedSections[e]}}))}matchesSearch(e){var t,n,r;const a=this.state.searchTerm.trim().toLowerCase();if(""===a)return!0;const o=String(e);if("-1"===o)return"empty".includes(a)||"placeholder".includes(a);if("0"===o)return"home".includes(a)||"homeworld".includes(a)||"placeholder".includes(a);if(o.toLowerCase().includes(a))return!0;const i=O.all[o.split("-")[0]];if(void 0===i)return!1;return[i.faction].concat(null!==(t=i.wormhole)&&void 0!==t?t:[]).concat(null!==(n=i.anomaly)&&void 0!==n?n:[]).concat((null!==(r=i.planets)&&void 0!==r?r:[]).flatMap(e=>{var t,n;return[e.name].concat(null!==(t=e.trait)&&void 0!==t?t:[]).concat(null!==(n=e.specialty)&&void 0!==n?n:[])})).some(e=>"string"===typeof e&&e.toLowerCase().includes(a))}renderTile(e){var t;const n=[];isNaN(Number(e))&&void 0!==e&&(e=e.split("-")[0]);var a,o;void 0!==O.all[e]&&O.all[e].planets.length>0&&O.all[e].planets[0].specialty.includes(g)&&n.push((0,r().jsx)(Fa,{style:{zIndex:1,overflow:"visible"},anchorSelect:"#"+("extra-"+e),place:"right",children:(0,r().jsx)("div",{style:{display:"flex",flexDirection:"column"},children:(o=null!==(a=O.all[e].planets[0].ability)&&void 0!==a?a:"",o.replace(/(?![^\n]{1,24}$)([^\n]{1,24})\s/g,"$1\n")).split("\n").map((e,t)=>(0,r().jsx)("span",{children:e},t))})},"extra-tooltip-"+e));return n.push((0,r().jsxs)("div",{className:"tile-wrapper",children:[(0,r().jsx)("span",{id:"extra-number-"+e,className:"overlay"+(this.props.overlayVisible?"":" d-none"),style:this.overlayStyle,children:null!==(t=La[e])&&void 0!==t?t:e}),(0,r().jsx)("img",{id:"extra-"+e,width:"200px",height:"175px",className:"tile",src:window.location.origin+window.location.pathname+"/tiles/ST_"+e+".webp",draggable:"true",onDragStart:this.props.drag,onDrop:this.props.drop,onDragOver:this.props.allowDrop,onDragEnter:this.props.dragEnter,onDragLeave:this.props.dragLeave,alt:"",style:this.tileStyle}),(0,r().jsx)("svg",{id:"extra-underlay-"+e,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 359.35 311.21",className:"underlay",fill:"currentColor",style:this.underlayStyle,children:(0,r().jsx)("polygon",{points:"269.51 0 89.84 0 0 155.6 89.84 311.2 269.51 311.2 359.35 155.6 269.51 0"})})]},"extra-tile-wrapper-"+e)),n}buildSections(){const e=this.props.includedExpansions,t=e=>{const t=new Set(e.map(String));return e=>t.has(String(e))},n=t(O.pok),r=t(O.te),a=t(O.uncharted),o=t(O.sun),i=t(O.ds),s=t(O.asyncLanes),l=t=>(!n(t)||e[E])&&(!r(t)||e[x])&&(!a(t)||e[T])&&(!o(t)||e[F])&&(!i(t)||e[S])&&(!s(t)||e[k]),c=O.blue.concat(O.red).filter(l),u=O.green.filter(l),A=[];return this.props.customMapBuilding&&A.push({key:"placeholders",label:"Placeholders",tiles:[-1,0]}),A.push({key:"base",label:"Base Game",tiles:c.filter(e=>!n(e)&&!r(e)&&!a(e)&&!o(e))},{key:E,label:E,tiles:c.filter(n)},{key:x,label:x,tiles:c.filter(r)},{key:T,label:T,tiles:c.filter(a)},{key:F,label:F,tiles:c.filter(o)},{key:"homeWorlds",label:"Home Worlds",tiles:u}),this.props.customMapBuilding&&A.push({key:"hyperlanes",label:"Hyperlanes",tiles:O.hyperlanes.filter(e=>!s(e)&&l(e))},{key:k,label:k,tiles:O.hyperlanes.filter(e=>s(e)&&l(e))}),A.map(e=>({...e,tiles:e.tiles.filter(e=>this.matchesSearch(e)).sort(Ua)})).filter(e=>e.tiles.length>0)}render(){const e=this.buildSections();return(0,r().jsxs)("div",{id:"extraTilesContainer",className:this.props.visible?"":"d-none",children:[(0,r().jsx)("div",{className:"title",children:(0,r().jsx)("h4",{id:"extraTitle",className:"text-center",children:"Extra Tiles"})}),(0,r().jsx)($e.Group,{className:"mt-3 text-center",controlId:"showAllExtraTiles",children:(0,r().jsx)($e.Check,{inline:!0,name:"showAllExtraTiles",type:"checkbox",checked:this.props.showAllExtraTiles,onChange:this.props.toggleShowAllExtraTiles,label:"Show All Tiles"})}),(0,r().jsx)($e.Group,{className:"mt-3 text-center",controlId:"customMapBuilding",children:(0,r().jsx)($e.Check,{inline:!0,name:"customMapBuilding",type:"checkbox",checked:this.props.customMapBuilding,onChange:this.props.toggleCustomMapBuilding,label:"Custom Map Building"})}),(0,r().jsx)("div",{className:"mt-3 ml-3 mr-3 text-center "+(this.props.customMapBuilding?"":"d-none"),children:(0,r().jsx)("button",{className:"btn btn-primary",id:"unsetAllTilesButton",onClick:this.props.unsetAllTiles,children:"Unset All Tiles"})}),(0,r().jsxs)($e.Group,{id:"extraTilesSearch",className:"mt-3",controlId:"tileSearch",children:[(0,r().jsxs)($e.Label,{className:"d-flex",children:["Search Tiles",(0,r().jsx)(ut,{className:"icon",title:"Search help",onClick:this.toggleSearchHelp})]}),(0,r().jsxs)(ot,{children:[(0,r().jsx)($e.Control,{type:"search",name:"tileSearch",value:this.state.searchTerm,onChange:this.updateSearchTerm,placeholder:"Search...","aria-label":"Search tiles"}),(0,r().jsx)("button",{className:"btn btn-outline-secondary",id:"clearTileSearchButton",type:"button",onClick:this.clearSearchTerm,disabled:""===this.state.searchTerm,"aria-label":"Clear search",children:(0,r().jsx)(ft,{})})]})]}),(0,r().jsx)(nr,{visible:this.state.searchHelp,hideModal:this.toggleSearchHelp,title:"Searching for Tiles",content:'<p>\n Search the tiles below by any of the following:\n </p>\n <ul>\n <li><b>Tile number:</b> <i>26</i>, <i>84A</i>, <i>er01</i>, <i>3201</i></li>\n <li><b>Planet name:</b> <i>mecatol</i>, <i>jord</i>, <i>abyz</i></li>\n <li><b>Planet trait:</b> <i>cultural</i>, <i>hazardous</i>, <i>industrial</i></li>\n <li><b>Tech specialty:</b> <i>biotic</i>, <i>cybernetic</i>, <i>propulsion</i>,\n <i>warfare</i>, <i>legendary</i></li>\n <li><b>Anomaly:</b> <i>nebula</i>, <i>supernova</i>, <i>asteroid-field</i>,\n <i>gravity-rift</i></li>\n <li><b>Wormhole:</b> <i>alpha</i>, <i>beta</i>, <i>gamma</i>, <i>delta</i></li>\n <li><b>Faction:</b> <i>sol</i>, <i>hacan</i>, <i>creuss</i></li>\n <li><b>Placeholder:</b> <i>empty</i>, <i>home</i> (custom map building only)</li>\n </ul>\n <p class="mb-0">\n Matches are partial and case insensitive, so <i>neb</i> finds every nebula. Only tiles from\n the expansions you have enabled are searched.\n </p>'},"help-tile-search"),(0,r().jsx)("div",{id:"extraTiles",className:"",children:0===e.length?(0,r().jsx)("p",{className:"text-center extra-no-results",children:"No tiles match your search."}):e.map(e=>{const t=!!this.state.collapsedSections[e.key];return(0,r().jsxs)("div",{id:"extra-section-"+e.key,className:"extra-section",children:[(0,r().jsxs)("button",{type:"button",className:"extra-section-header",onClick:()=>this.toggleSection(e.key),"aria-expanded":!t,children:[(0,r().jsx)("span",{className:"extra-section-caret",children:t?"\u25b8":"\u25be"}),e.label]}),(0,r().jsx)("div",{className:"extra-section-tiles"+(t?" d-none":""),children:e.tiles.map(e=>this.renderTile(e))})]},"extra-section-"+e.key)})})]})}}const Ia=Oa;var Qa=["color","size","title","className"];function Ha(){return Ha=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ha.apply(this,arguments)}function Ra(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Pa=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Ra(e,Qa);return a().createElement("svg",Ha({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-lock",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M8 1a2 2 0 0 1 2 2v4H6V3a2 2 0 0 1 2-2m3 6V3a3 3 0 0 0-6 0v4a2 2 0 0 0-2 2v5a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2M5 8h6a1 1 0 0 1 1 1v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V9a1 1 0 0 1 1-1"}))});Pa.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Pa.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Da=Pa;var Ma=["color","size","title","className"];function _a(){return _a=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_a.apply(this,arguments)}function ja(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ka=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=ja(e,Ma);return a().createElement("svg",_a({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-check",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M10.97 4.97a.75.75 0 0 1 1.07 1.05l-3.99 4.99a.75.75 0 0 1-1.08.02L4.324 8.384a.75.75 0 1 1 1.06-1.06l2.094 2.093 3.473-4.425z"}))});Ka.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Ka.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const za=Ka;var Wa=["color","size","title","className"];function Va(){return Va=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Va.apply(this,arguments)}function Ga(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var qa=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Ga(e,Wa);return a().createElement("svg",Va({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-x",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708"}))});qa.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},qa.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Ya=qa;var Xa=["color","size","title","className"];function Ja(){return Ja=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ja.apply(this,arguments)}function Za(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var $a=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Za(e,Xa);return a().createElement("svg",Ja({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-repeat",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M11.534 7h3.932a.25.25 0 0 1 .192.41l-1.966 2.36a.25.25 0 0 1-.384 0l-1.966-2.3
26a.25.25 0 0 1 .192-.41m-11 2h3.932a.25.25 0 0 0 .192-.41L2.692 6.23a.25.25 0 0 0-.384 0L.342 8.59A.25.25 0 0 0 .534 9"}),a().createElement("path",{fillRule:"evenodd",d:"M8 3c-1.552 0-2.94.707-3.857 1.818a.5.5 0 1 1-.771-.636A6.002 6.002 0 0 1 13.917 7H12.9A5 5 0 0 0 8 3M3.1 9a5.002 5.002 0 0 0 8.757 2.182.5.5 0 1 1 .771.636A6.002 6.002 0 0 1 2.083 9z"}))});$a.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},$a.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const eo=$a;var to=["color","size","title","className"];function no(){return no=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},no.apply(this,arguments)}function ro(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ao=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=ro(e,to);return a().createElement("svg",no({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-share",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.5 2.5 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5m-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3"}))});ao.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},ao.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const oo=ao;class io extends a().Component{render(){return(0,r().jsxs)("div",{id:"overview",className:"flex-column justify-content-center"+(this.props.visible?" d-flex":" d-none"),children:[(0,r().jsx)("div",{className:"title",children:(0,r().jsx)("h1",{children:"TI4 Map Generator"})}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Customize Your Next Twilight Imperium 4 Map!"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsx)("p",{className:"text-left p-3",children:'Use this tool to generate a fresh new Twilight Imperium map for the next game you play. The goal of this tool is to cut down the game setup time by letting you generate a fair and balanced map before you play, so that you are not spending a half-hour picking and placing tiles, or getting a bad draw of tiles. Get started by customizing settings via the generation panel on the right, and hit "Generate" to see a new map.'})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Individual Tile Controls"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:["Modify individual tiles by clicking on them to pull up the tile control menu. Lock the tile in place with the (",(0,r().jsx)(Da,{className:"icon d-inline"}),") button. Include it in all future generations with the (",(0,r().jsx)(za,{className:"icon d-inline"}),") button. Exclude it from all future generations with the (",(0,r().jsx)(Ya,{className:"icon d-inline"}),") button. Finally, swap it with a tile not on the board with the (",(0,r().jsx)(eo,{className:"icon d-inline"}),") button. Controls reset on page refresh."]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Drag and Drop for Further Customization"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:['Unhappy with a wormhole next to a home world? Are two asteroids next to one another? Don\'t like a certain system? Just swap it with another tile by clicking and dragging one tile over the top of another tile. Alternatively, use the tile controls (click on a tile once to see them) and click the bottom middle "Swap with an extra tile" button (',(0,r().jsx)(eo,{className:"icon d-inline"}),") to swap with a tile not on the board."]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"New Prophecy of Kings Expansion Content"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsx)("p",{className:"text-left p-3",children:"The new expansion content for TI4, called Prophecy of Kings, was recently released. Check out the new tiles as well as the 7 and 8 player maps. Hyperlanes which connect systems together were also added, and are included on some non expansion board styles."})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Share With Your Friends"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:['After you have made your custom map, click on the "Share This Map" button (',(0,r().jsx)(oo,{className:"icon d-inline"}),") to find out how to send it to your friends! You can share the url as a link, copy the Table Top Simulator string to use in the TI4 mod, or simply download an image of the map to post. If you toggle the tile overlay on, you can have the tile numbers appear in your downloaded image."]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Use Any Tile You Want"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:['Do you really like the gravity rift anomaly and not see it on the board? Click the "Show unused tiles" button (',(0,r().jsx)("svg",{id:"showExtraTilesSvg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 359.35 311.21",className:"icon d-inline",fill:"
2currentColor",children:(0,r().jsx)("polygon",{id:"showExtraTilesPoly",points:"269.51 0 89.84 0 0 155.6 89.84 311.2 269.51 311.2 359.35 155.6 269.51 0"})}),") to see any tiles not currently being used in the map, and drag and drop them to add them!"]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Easy Setup On Game Day"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:['It can be hard to know which tile is which when it is time to setup your new board. Click the "Toggle Tile Number Overlay" button (',(0,r().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194.78 169.62",className:"icon d-inline",fill:"currentColor",children:[(0,r().jsx)("polygon",{className:"overlay-cls-1",points:"148.03 4 51.81 4 4.61 86.92 52.02 169.84 148.03 169.84 195.03 86.92 148.03 4"}),(0,r().jsx)("text",{className:"overlay-cls-2",transform:"translate(27.09 132.03)",children:"18"})]}),") to see the numbers of every tile on your custom board."]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Have Any Ideas On Improvements?"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsxs)("p",{className:"text-left p-3",children:["I am always open to feedback and suggestions! You can see the"," ",(0,r().jsx)("a",{href:"https://github.com/KeeganW/ti4/issues",children:"current set of issues"})," ","with the generator, or if you don't see your issue or want to suggest a new feature, add it"," ",(0,r().jsx)("a",{href:"https://github.com/KeeganW/ti4/issues/new",children:"to my issue tracker"}),". Thanks for checking this out!"]})})]}),(0,r().jsxs)("div",{className:"overview-panel my-4 mx-auto",children:[(0,r().jsx)("h4",{className:"m-3",children:"Contributors"}),(0,r().jsx)("div",{className:"d-flex",children:(0,r().jsx)("p",{className:"text-left p-2",children:"Thank you to all the contributors to this project"})}),(0,r().jsx)("div",{className:"d-flex justify-content-center",children:(0,r().jsxs)("ul",{className:"text-left",children:[(0,r().jsx)("li",{children:"dotlogix"}),(0,r().jsx)("li",{children:"nicolajv"}),(0,r().jsx)("li",{children:"ninevra"}),(0,r().jsx)("li",{children:"qbixsd"}),(0,r().jsx)("li",{children:"shenanigans-be"}),(0,r().jsx)("li",{children:"tomb1125"})]})})]}),(0,r().jsx)("div",{className:"overview-panel my-4 mx-auto",children:"\xa9 Keegan Williams 2023"})]})}}const so=io;var lo=["color","size","title","className"];function co(){return co=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},co.apply(this,arguments)}function uo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ao=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=uo(e,lo);return a().createElement("svg",co({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-90deg-left",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M1.146 4.854a.5.5 0 0 1 0-.708l4-4a.5.5 0 1 1 .708.708L2.707 4H12.5A2.5 2.5 0 0 1 15 6.5v8a.5.5 0 0 1-1 0v-8A1.5 1.5 0 0 0 12.5 5H2.707l3.147 3.146a.5.5 0 1 1-.708.708z"}))});Ao.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Ao.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ho=Ao;var po=["color","size","title","className"];function fo(){return fo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fo.apply(this,arguments)}function mo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var yo=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=mo(e,po);return a().createElement("svg",fo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-90deg-right",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M14.854 4.854a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 4H3.5A2.5 2.5 0 0 0 1 6.5v8a.5.5 0 0 0 1 0v-8A1.5 1.5 0 0 1 3.5 5h9.793l-3.147 3.146a.5.5 0 0 0 .708.708z"}))});yo.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},yo.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const go=yo;class bo extends a().Component{constructor(e){super(e),this.toggleControls=this.toggleControls.bind(this),this.getRotationDegrees=this.getRotationDegrees.bind(this)}toggleControls(e){const t=e.target.id.split("-"),n=t[0],r=Number(t[t.length-1]),a=this.props.getTileNumber(this.props.tiles[r]);if("tile"===n){let e=-1;this.props.tileClicked!==r&&-1!==a&&0!==a&&(e=r),this.props.updateTileClicked(e)}else if("rotate"===n){const e=t[1];let n=l()("#tile-"+r),a=this.getRotationDegrees(n);"left"===e?a-=60:"right"===e&&(a+=60),a<0&&(a+=360);let o=a/60%6,i=[...this.props.tiles];i[r]=this.props.getTileNumber(i[r])+"-"+o,this.props.updateTiles(i),n.css({transform:"rotate("+a+"deg)"})}else if("swap"===n){if(this.props.unusedTiles.length>0){const e=this.props.unusedTiles[Math.floor(Math.random()*this.props.unusedTiles.length)];let t=[...this.props.tiles];t[r]=e,this.props.updateTiles(t)}}else if("lock"===n){let e=this.props.lockedTiles.indexOf(a),t=this.props.lockedTiles;e>=0?t.splice(e,1):t.push(a),this.props.updateLockedTiles(t)}else if("exclude"===n){let e=this.props.excludedTiles.indexOf(a),t=this.props.excludedTiles,n=this.props.includedTiles;if(e>=0)t.splice(e,1);else{t.push(a);let e=this.props.includedTiles.indexOf(a);e>=0&&n.splice(e,1)}this.props.updateInExcludedTiles(n,t)}else if("include"===n){let e=this.props.includedTiles.indexOf(a),t=this.props.includedTiles,n=this.props.excludedTiles;if(e>=0)t.splice(e,1);else{t.push(a);let e=this.props.excludedTiles.indexOf(a);e>=0&&n.splice(e,1)}this.props.updateInExcludedTiles(t,n)}}getRotationDegrees(e){let t=e.css("-webkit-transform")||e.css("-moz-transform")||e.css("-ms-transform")||e.css("-o-transform")||e.css("transform"),n=0;if("none"!==t){let e=t.split("(")[1].split(")")[0].split(","),r=e[0],a=e[1];n=Math.round(Math.atan2(a,r)*(180/Math.PI))}return n<0&&(n+=360),n}render(){const e=[],t={position:"absolute"},n={display:"none"},a=e=>e.replace(/(?![^\n]{1,32}$)([^\n]{1,32})\s/g,"$1\n");for(let i=0;i<331;i++){let s=this.props.getTileNumber(this.props.tiles[i]);if(void 0!==s){var o;if(void 0!==O.all[s]&&O.all[s].planets.length>0&&O.all[s].planets[0].specialty.includes(g))e.push((0,r().jsx)(Fa,{style:{zIndex:1},anchorSelect:"#"+("tile-wrapper-"+i),place:"top",children:(0,r().jsx)("div",{style:{display:"flex",flexDirection:"column"},children:a(null!==(o=O.all[s].planets[0].ability)&&void 0!==o?o:"").split("\n").map(e=>(0,r().jsx)("span",{children:e}))})},"tooltip-"+i));e.push((0,r().jsxs)("div",{id:"tile-wrapper-"+i,className:"tile-wrapper",style:t,onClick:this.toggleControls,children:[(0,r().jsx)("button",{id:"rotate-left-"+i,className:"btn btn-primary tile-control rotate-left"+(this.props.tileClicked===i?"":" d-none"),"data-tip":"Rotate tile left","data-place":"top",children:(0,r().jsx)(ho,{id:"rotate-left-svg-"+i,className:"icon"})}),(0,r().jsx)("button",{id:"lock-"+i,className:"btn btn-primary tile-control lock"+(this.props.tileClicked===i?"":" d-none")+(this.props.lockedTiles.indexOf(s)>=0?" active":""),"data-tip":"Keep tile here on generation",children:(0,r().jsx)(Da,{id:"lock-svg-"+i,className:"icon"})}),(0,r().jsx)("button",{id:"rotate-right-"+i,className:"btn btn-primary tile-control rotate-right"+(this.props.tileClicked===i?"":" d-none"),"data-tip":"Rotate tile right",children:(0,r().jsx)(go,{id:"rotate-right-svg-"+i,className:"icon"})}),(0,r().jsx)("span",{id:"number-"+i,className:"overlay",style:n,children:i}),(0,r().jsx)("span",{id:"wormhole-"+i,className:"overlay",style:n}),(0,r().jsx)("span",{id:"closest-player-"+i,className:"overlay",style:n}),(0,r().jsx)("span",{id:"player-name-"+i,className:"overlay"}),(0,r().jsx)("img",{id:"tile-"+i,className:"tile",src:window.location.origin+window.location.pathname+"/tiles/ST_"+s+".webp",draggable:"true",onDragStart:this.props.drag,onDrop:this.props.drop,onDragOver:this.props.allowDrop,onDragEnter:this.props.dragEnter,onDragLeave:this.props.dragLeave,onTouchMove:this.props.touchMove,onTouchEnd:this.props.touchEnd,alt:"Twilight Imperium 4 Tile Number "+i+" and System Number "+s+"."}),(0,r().jsx)("svg",{id:"underlay-"+i,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 359.35 311.21",className:"underlay",fill:"currentColor",children:(0,r().jsx)("polygon",{points:"269.51 0 89.84 0 0 155.6 89.84 311.2 269.51 311.2 359.35 155.6 269.51 0"})}),(0,r().jsx)("button",{id:"exclude-"+i,className:"btn btn-primary tile-control exclude"+(this.props.tileClicked===i?"":" d-none")+(this.props.excludedTiles.indexOf(s)>
2=0?" active":""),"data-tip":"Exclude from generation","data-place":"bottom",children:(0,r().jsx)(Ya,{id:"exclude-svg-"+i,className:"icon"})}),(0,r().jsx)("button",{id:"swap-"+i,className:"btn btn-primary tile-control swap"+(this.props.tileClicked===i?"":" d-none"),"data-tip":"Swap with an extra tile","data-place":"bottom",children:(0,r().jsx)(eo,{id:"swap-svg-"+i,className:"icon"})}),(0,r().jsx)("button",{id:"include-"+i,className:"btn btn-primary tile-control include"+(this.props.tileClicked===i?"":" d-none")+(this.props.includedTiles.indexOf(s)>=0?" active":""),"data-tip":"Always include in generation","data-place":"bottom",children:(0,r().jsx)(za,{id:"include-svg-"+i,className:"icon"})})]},"tile-wrapper-"+i))}}return(0,r().jsx)("div",{id:"map",className:"map center-map "+(this.props.visible?"":"d-none"),children:e})}}const vo=bo;var wo=["color","size","title","className"];function Bo(){return Bo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bo.apply(this,arguments)}function Co(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var No=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Co(e,wo);return a().createElement("svg",Bo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-plus",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4"}))});No.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},No.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Eo=No;var xo=["color","size","title","className"];function So(){return So=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},So.apply(this,arguments)}function To(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Fo=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=To(e,xo);return a().createElement("svg",So({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-dash",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M4 8a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7A.5.5 0 0 1 4 8"}))});Fo.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Fo.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ko=Fo;var Uo=["color","size","title","className"];function Lo(){return Lo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lo.apply(this,arguments)}function Oo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Io=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Oo(e,Uo);return a().createElement("svg",Lo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-clockwise",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2z"}),a().createElement("path",{d:"M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466"}))});Io.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Io.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Qo=Io;var Ho=["color","size","title","className"];function Ro(){return Ro=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ro.apply(this,arguments)}function Po(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Do=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Po(e,Ho);return a().createElement("svg",Ro({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-counterclockwise",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2z"}),a().createElement("path",{d:"M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466"}))});Do.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Do.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Mo=Do;var _o=["color","size","title","className"];function jo(){return jo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jo.apply(this,arguments)}function Ko(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var zo=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Ko(e,_o);return a().createElement("svg",jo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-people-fill",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M7 14s-1 0-1-1 1-4 5-4 5 3 5 4-1 1-1 1zm4-6a3 3 0 1 0 0-6 3 3 0 0 0 0 6m-5.784 6A2.24 2.24 0 0 1 5 13c0-1.355.68-2.75 1.936-3.72A6.3 6.3 0 0 0 5 9c-4 0-5 3-5 4s1 1 1 1zM4.5 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5"}))});zo.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},zo.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Wo=zo;var Vo=["color","size","title","className"];function Go(){return Go=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Go.apply(this,arguments)}function qo(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Yo=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=qo(e,Vo);return a().createElement("svg",Go({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-info-circle",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14m0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16"}),a().createElement("path",{d:"m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0"}))});Yo.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Yo.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Xo=Yo;var Jo=["color","size","title","className"];function Zo(){return Zo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zo.apply(this,arguments)}function $o(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var ei=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=$o(e,Jo);return a().createElement("svg",Zo({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-upload",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5"}),a().createElement("path",{d:"M7.646 1.146a.5.5 0 0 1 .708 0l3 3a.5.5 0 0 1-.708.708L8.5 2.707V11.5a.5.5 0 0 1-1 0V2.707L5.354 4.854a.5.5 0 1 1-.708-.708z"}))});ei.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},ei.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ti=ei;var ni=["color","size","title","className"];function ri(){return ri=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ri.apply(this,arguments)}function ai(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var oi=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=ai(e,ni);return a().createElement("svg",ri({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-card-image",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{d:"M6.002 5.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0"}),a().createElement("path",{d:"M1.5 2A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h13a1.5 1.5 0 0 0 1.5-1.5v-9A1.5 1.5 0 0 0 14.5 2zm13 1a.5.5 0 0 1 .5.5v6l-3.775-1.947a.5.5 0 0 0-.577.093l-3.71 3.71-2.66-1.772a.5.5 0 0 0-.63.062L1.002 12v.54L1 12.5v-9a.5.5 0 0 1 .5-.5z"}))});oi.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},oi.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ii=oi;var si=n(663);class li extends a().Component{constructor(e){super(e),this.getTTSTileString=this.getTTSTileString.bind(this),this.copyTileStringToCl
2ipboard=this.copyTileStringToClipboard.bind(this),this.copyLinkToClipboard=this.copyLinkToClipboard.bind(this),this.removeTrailing=this.removeTrailing.bind(this),this.sleep=this.sleep.bind(this),this.downloadImage=this.downloadImage.bind(this),this.getBaseTileId=this.getBaseTileId.bind(this),this.getUniqueTileIds=this.getUniqueTileIds.bind(this),this.getNumericSortedTiles=this.getNumericSortedTiles.bind(this),this.getAlphabeticalSortedTiles=this.getAlphabeticalSortedTiles.bind(this)}getBaseTileId(e){let t=/^((8[3-9]|90|91)[AB])-?([0-5])?$/.exec(e);if(t)return t[1];let n=/^(hyp.+?)-?([0-5])?$/.exec(e);if(n)return n[1];return t=/^((?:er)?\d{1,4})-?([0-5])?$/.exec(e),t?t[1]:-1}getUniqueTileIds(){let e=new Set;for(let t of this.props.tiles){if(-1===t||0===t||"0"===t||"-1"===t)continue;let n=this.getBaseTileId(t);-1!==n&&void 0!==n&&e.add(String(n))}return[...e]}getNumericSortedTiles(){return this.getUniqueTileIds().sort((e,t)=>{let n=parseInt(e.replace(/^er/,""),10),r=parseInt(t.replace(/^er/,""),10);return n!==r?n-r:e.localeCompare(t)})}getAlphabeticalSortedTiles(){let e=this.getUniqueTileIds(),t=[],n=[];for(let r of e){let e=O.all[r],a=e&&e.planets&&e.planets.length>0?e.planets[0].name:null;a?t.push({id:r,label:`${a} (${r})`}):n.push({id:r,label:`${r}`})}return t.sort((e,t)=>e.label.localeCompare(t.label)),n.sort((e,t)=>{let n=parseInt(e.id.replace(/^er/,""),10),r=parseInt(t.id.replace(/^er/,""),10);return n!==r?n-r:e.id.localeCompare(t.id)}),t.concat(n)}getTTSTileString(){let e=[...this.props.tiles];return e=this.removeTrailing(e),"18"===e[0]&&e.shift(),e=e.toString(),e=e.replaceAll(",-1",",0"),e=e.replaceAll(","," "),e=e.replaceAll(/(\d+)-\d/gm,"$1"),e=e.replaceAll("-",""),e}
2copyTileStringToClipboard(){let e=this.getTTSTileString();console.log("Here is the tile string for use with this mod: https://steamcommunity.com/sharedfiles/filedetails/?id=1288687076"),console.log(e),navigator.clipboard.writeText(e)}copyLinkToClipboard(){navigator.clipboard.writeText(window.location.href)}removeTrailing(e){for(;-1===e[e.length-1];)e.pop();return e}sleep(e){return new Promise(t=>setTimeout(t,e))}async downloadImage(){l()("#downloadMapButton").addClass("active"),window.scrollTo(0,0),await(0,si.exportComponentAsPNG)(this.props.map,{fileName:"ti4-map",html2CanvasOptions:{backgroundColor:null,scrollX:0,scrollY:-window.pageYOffset,scale:2}}),await this.sleep(750),l()("#downloadMapButton").removeClass("active")}render(){let e=this.getTTSTileString(),t=this.getNumericSortedTiles(),n=this.getAlphabeticalSortedTiles();return(0,r().jsxs)(er,{show:this.props.visible,onHide:this.props.hideModal,children:[(0,r().jsx)(er.Header,{closeButton:!0,children:(0,r().jsx)(er.Title,{children:"Share Map"})}),(0,r().jsxs)(er.Body,{children:[(0,r().jsxs)("div",{className:"input-group mb-3",children:[(0,r().jsx)("input",{type:"text",className:"form-control",value:window.location.href,readOnly:!0,"aria-label":"Page Link","aria-describedby":"basic-addon2"}),(0,r().jsx)("div",{className:"input-group-append",children:(0,r().jsx)("button",{className:"btn btn-primary",type:"button",onClick:this.copyLinkToClipboard,children:"Copy Link"})})]}),(0,r().jsxs)("div",{className:"input-group mb-3",children:[(0,r().jsx)("input",{type:"text",className:"form-control",value:e,readOnly:!0,"aria-label":"Tile String","aria-describedby":"basic-addon2"}),(0,r().jsx)("div",{className:"input-group-append",children:(0,r().jsx)("button",{className:"btn btn-primary",type:"button",onClick:this.copyTileStringToCl
2ipboard,children:"Copy TTS String"})})]}),(0,r().jsx)("div",{className:"input-group mb-3 justify-content-center",children:(0,r().jsx)("button",{id:"downloadMapButton",className:"btn btn-primary",type:"button",onClick:this.downloadImage,children:"Download Map Image"})}),(0,r().jsx)("hr",{}),(0,r().jsx)("h6",{children:"Pulling Tiles From the Box"}),(0,r().jsxs)("div",{className:"mb-3",children:[(0,r().jsx)("div",{className:"fw-bold",children:"Numeric Order"}),(0,r().jsx)("div",{children:t.join(", ")})]}),(0,r().jsxs)("div",{className:"mb-3",children:[(0,r().jsx)("div",{className:"fw-bold",children:"Alphabetical Order (by first planet)"}),(0,r().jsx)("div",{children:n.map(e=>e.label).join(", ")})]})]})]})}}const ci=li;class ui extends a().Component{constructor(e){super(e),this.state={currentInputTiles:""},this.updateInputTiles=this.updateInputTiles.bind(this),this.loadTiles=this.loadTiles.bind(this)}parseTTSTileString(){let e=this.props.removeTrailing(this.state.currentInputTiles);e=e.toString(),e=e.split(" "),e.includes("18")||e.unshift("18"),e=e.map((e,t)=>{let n=e;const r=n.indexOf("A"),a=n.indexOf("B");if(r>=0||a>=0){const e=r>=0?r:a,t=n.substring(e+1);n=n.substring(0,e+1)+"-"+t}return n}),this.setState({currentInputTiles:""},()=>{this.props.updateTiles(e,void 0,!0),this.props.hideModal()})}updateInputTiles(e){(e.target.value||""===e.target.value)&&this.setState({currentInputTiles:e.target.value})}loadTiles(e){void 0===e&&void 0!==this.state.currentInputTiles&&""!==this.state.currentInputTiles||e.preventDefault(),this.parseTTSTileString()}render(){return(0,r().jsxs)(er,{show:this.props.visible,onHide:this.props.hideModal,children:[(0,r().jsx)(er.Header,{closeButton:!0,children:(0,r().jsx)(er.Title,{children:"Load Map"})}),(0,r().jsx)(er.Body,{children:(0,r().jsx)("form",{id:"generateForm",onSubmit:this.loadTiles,children:(0,r().jsxs)("div",{className:"input-group mb-3",children:[(0,r().jsx)("input",{type:"text",className:"form-control",id:"inputMapString",name:"userInputTiles",placeholder:"Enter a tile string (eg. 79 60 50 31...)","aria-label":"Map String","aria-describedby":"basic-addon2",value:this.state.currentInputTiles,onChange:this.updateInputTiles}),(0,r().jsx)("div",{className:"input-group-append",children:(0,r().jsx)("button",{className:"btn btn-primary",type:"submit",children:"Load Map"})})]})})})]})}}const Ai=ui;class hi extends a().Component{constructor(e){super(e),this.state={shareMapHelp:!1,loadMapHelp:!1},this.toggleShareMapHelp=this.toggleShareMapHelp.bind(this),this.toggleLoadMapHelp=this.toggleLoadMapHelp.bind(this)}toggleShareMapHelp(e){this.setState({shareMapHelp:!this.state.shareMapHelp})}toggleLoadMapHelp(e){this.setState({loadMapHelp:!this.state.loadMapHelp})}render(){return(0,r().jsxs)("div",{id:"map-controls",children:[(0,r().jsxs)("div",{id:"zoomButtons",className:"btn-group-justified btn-group-sm btn-group-vertical"+(this.props.visible?"":" d-none"),children:[(0,r().jsx)("button",{className:"btn btn-primary",id:"zoomPlus",onClick:this.props.zoomPlus,"data-tooltip-id":"tooltip","data-tooltip-content":"Or Hold CTRL and Use Scroll Wheel","data-tooltip-place":"left",children:(0,r().jsx)(Eo,{className:"icon"})}),(0,r().jsx)("button",{className:"btn btn-primary",id:"zoomMinus",onClick:this.props.zoomMinus,"data-tooltip-id":"tooltip","data-tooltip-content":"Or Hold CTRL and Use Scroll Wheel","data-tooltip-place":"left",children:(0,r().jsx)(ko,{className:"icon"})})]}),(0,r().jsxs)("div",{id:"rotateButtons",className:"btn-group-justified btn-group-sm btn-group-vertical"+(this.props.visible?"":" d-none"),children:[(0,r().jsx)("button",{className:"btn btn-primary",id:"rotateClockwise",onClick:this.props.rotateClockwise,"data-tooltip-id":"tooltip","data-tooltip-content":"Rotate Map Clockwise","data-tooltip-place":"left",children:(0,r().jsx)(Qo,{className:"icon"})}),(0,r().jsx)("button",{className:"btn btn-primary",id:"rotateCounterClockwise",onClick:this.props.rotateCounterClockwise,"data-tooltip-id":"tooltip","data-tooltip-content":"Rotate Map Counter-Clockwise","data-tooltip-place":"left",children:(0,r().jsx)(Mo,{
2className:"icon"})})]}),(0,r().jsx)("div",{id:"hexOverlay",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.props.toggleOverlay,children:(0,r().jsx)("button",{className:"btn btn-primary"+(this.props.overlayVisible?" active":""),id:"showHexOverlay","data-tooltip-id":"tooltip","data-tooltip-content":"Tile Number Overlay","data-tooltip-place":"left",children:(0,r().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194.78 169.62",className:"icon",fill:"currentColor",children:[(0,r().jsx)("polygon",{className:"overlay-cls-1",points:"148.03 4 51.81 4 4.61 86.92 52.02 169.84 148.03 169.84 195.03 86.92 148.03 4"}),(0,r().jsx)("text",{className:"overlay-cls-2",transform:"translate(24.09 132.03)",children:"18"})]})})}),(0,r().jsx)("div",{id:"wormholeOverlay",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.props.toggleWormholeOverlay,children:(0,r().jsx)("button",{className:"btn btn-primary"+(this.props.wormholeOverlayVisible?" active":""),id:"showWormholeOverlay","data-tooltip-id":"tooltip","data-tooltip-content":"Wormhole Overlay","data-tooltip-place":"left",children:(0,r().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194.78 169.62",className:"icon",fill:"currentColor",children:[(0,r().jsx)("polygon",{className:"overlay-cls-1",points:"148.03 4 51.81 4 4.61 86.92 52.02 169.84 148.03 169.84 195.03 86.92 148.03 4"}),(0,r().jsx)("text",{className:"overlay-cls-2",transform:"translate(62.09 132.03)",children:"\u03b2"})]})})}),(0,r().jsx)("div",{id:"closestPlayerOverlay",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.props.toggleClosestPlayerOverlay,children:(0,r().jsx)("button",{className:"btn btn-primary"+(this.props.closestPlayerOverlayVisible?" active":""),id:"showClosestPlayerOverlay","data-tooltip-id":"tooltip","data-tooltip-content":"Closest Player Overlay","data-tooltip-place":"left",children:(0,r().jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 194.78 169.62",className:"icon",fill:"currentColor",children:[(0,r().jsx)("polygon",{className:"overlay-cls-1",points:"148.03 4 51.81 4 4.61 86.92 52.02 169.84 148.03 169.84 195.03 86.92 148.03 4"}),(0,r().jsx)(Wo,{className:"overlay-cls-2",x:"57",y:"60",width:"80",height:"80"})]})})}),(0,r().jsx)("div",{id:"extraTilesButton",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.props.toggleExtraTiles,children:(0,r().jsx)("button",{className:"btn btn-primary"+(this.props.extraTilesVisible?" active":""),id:"showExtraTiles","data-tooltip-id":"tooltip","data-tooltip-content":"Unused Tiles","data-tooltip-place":"left",children:(0,r().jsx)("svg",{id:"showExtraTilesSvg",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 359.35 311.21",className:"icon",fill:"currentColor",children:(0,r().jsx)("polygon",{id:"showExtraTilesPoly",points:"269.51 0 89.84 0 0 155.6 89.84 311.2 269.51 311.2 359.35 155.6 269.51 0"})})})}),(0,r().jsx)("div",{id:"moreInfoButton",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.props.toggleMoreInfo,children:(0,r().jsx)("button",{className:"btn btn-primary"+(this.props.moreInfoVisible?" active":""),id:"showMoreInfo","data-tooltip-id":"tooltip","data-tooltip-content":"Assets Adjacent to Home","data-tooltip-place":"left",children:(0,r().jsx)(Xo,{id:"showMoreInfoSvg",className:"icon"})})}),(0,r().jsx)("div",{id:"shareMapButton",className:"btn-group-justified btn-group-sm"+(this.props.visible?"":" d-none"),onClick:this.toggleShareMapHelp,children:(0,r().jsx)("button",{className:"btn btn-primary",id:"shareMapInfo","data-tooltip-id":"tooltip","data-tooltip-content":"Share This Map","data-tooltip-place":"left",children:(0,r().jsx)(oo,{id:"shareMapSvg",className:"icon"})})}),(0,r().jsx)("div",{id:"loadMapButton",className:"btn-group-justified btn-group-sm",onClick:this.toggleLoadMapHelp,children:(0,r().jsx)("button",{className:"btn btn-primary",id:"loadMapInfo","data-tooltip-id":"tooltip","data-tooltip-content":"Load a Map","data-tooltip-place":"left",children:(0,r().jsx)(ti,{id:"loadMapSvg",className:"icon"})})}),(0,r().jsx)(ci,{visible:this.state.shareMapHelp,hideModal:this.toggleShareMapHelp,tiles:this.props.tiles,map:this.props.map}),(0,r().jsx)(Ai,{visible:this.state.loadMapHelp,hideModal:this.toggleLoadM
2apHelp,tiles:this.props.tiles,updateTiles:this.props.updateTiles,removeTrailing:this.props.removeTrailing}),(0,r().jsx)("div",{id:"toggleBackgroundButton",className:"btn-group-justified btn-group-sm",onClick:this.props.toggleBackground,children:(0,r().jsx)("button",{className:"btn btn-primary",id:"toggleBackground","data-tooltip-id":"tooltip","data-tooltip-content":"Toggle Background Animation",children:(0,r().jsx)(ii,{id:"toggleBackgroundSvg",className:"icon"})})})]})}}const di=hi;var pi=["color","size","title","className"];function fi(){return fi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fi.apply(this,arguments)}function mi(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var yi=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=mi(e,pi);return a().createElement("svg",fi({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-bar-right",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M6 8a.5.5 0 0 0 .5.5h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L12.293 7.5H6.5A.5.5 0 0 0 6 8m-2.5 7a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5"}))});yi.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},yi.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const gi=yi;var bi=["color","size","title","className"];function vi(){return vi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vi.apply(this,arguments)}function wi(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Bi=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=wi(e,bi);return a().createElement("svg",vi({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-arrow-bar-left",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M12.5 15a.5.5 0 0 1-.5-.5v-13a.5.5 0 0 1 1 0v13a.5.5 0 0 1-.5.5M10 8a.5.5 0 0 1-.5.5H3.707l2.147 2.146a.5.5 0 0 1-.708.708l-3-3a.5.5 0 0 1 0-.708l3-3a.5.5 0 1 1 .708.708L3.707 7.5H9.5a.5.5 0 0 1 .5.5"}))});Bi.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Bi.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Ci=Bi;class Ni extends a().Component{render(){return(0,r().jsx)("div",{className:"controls btn-group-justified btn-group-sm",children:(0,r().jsxs)("button",{type:"button",id:"toggleOptions",className:"btn btn-primary"+(this.props.visible?"":" hidden")+(this.props.isMobileView?" full-screen":""),onClick:this.props.toggleOptions,children:[(0,r().jsx)(gi,{className:"icon icon-contract"}),(0,r().jsx)(Ci,{className:"icon icon-expand"})]})})}}const Ei=Ni;var xi=["color","size","title","className"];function Si(){return Si=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Si.apply(this,arguments)}function Ti(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Fi=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Ti(e,xi);return a().createElement("svg",Si({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-up",i].filter(
2Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708z"}))});Fi.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Fi.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const ki=Fi;var Ui=["color","size","title","className"];function Li(){return Li=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Li.apply(this,arguments)}function Oi(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var Ii=(0,a().forwardRef)(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=Oi(e,Ui);return a().createElement("svg",Li({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?a().createElement("title",null,o):null,a().createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});Ii.propTypes={color:de().string,size:de().oneOfType([de().string,de().number]),title:de().string,className:de().string},Ii.defaultProps={color:"currentColor",size:"1em",title:null,className:""};const Qi=Ii;const Hi=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(e=>null!=e).reduce((e,t)=>{if("function"!==typeof t)throw new Error("Invalid Argument Type, must only provide functions, undefined, or null.");return null===e?t:function(){for(var n=arguments.length,r=new Array(n),a=0;a<n;a++)r[a]=arguments[a];e.apply(this,r),t.apply(this,r)}},null)},Ri={height:["marginTop","marginBottom"],width:["marginLeft","marginRight"]};function Pi(e,t){const n=t[`offset${e[0].toUpperCase()}${e.slice(1)}`],r=Ri[e];return n+parseInt(Qt(t,r[0]),10)+parseInt(Qt(t,r[1]),10)}const Di={[bn]:"collapse",[Bn]:"collapsing",[vn]:"collapsing",[wn]:"collapse show"},Mi=a().forwardRef((e,t)=>{let{onEnter:n,onEntering:o,onEntered:i,onExit:s,onExiting:l,className:c,children:u,dimension:A="height",in:h=!1,timeout:d=300,mountOnEnter:p=!1,unmountOnExit:f=!1,appear:m=!1,getDimensionValue:y=Pi,...g}=e;const b="function"===typeof A?A():A,v=(0,a().useMemo)(()=>Hi(e=>{e.style[b]="0"},n),[b,n]),w=(0,a().useMemo)(()=>Hi(e=>{const t=`scroll${b[0].toUpperCase()}${b.slice(1)}`;e.style[b]=`${e[t]}px`},o),[b,o]),B=(0,a().useMemo)(()=>Hi(e=>{e.style[b]=null},i),[b,i]),C=(0,a().useMemo)(()=>Hi(e=>{e.style[b]=`${y(b,e)}px`,Tn(e)},s),[s,y,b]),N=(0,a().useMemo)(()=>Hi(e=>{e.style[b]=null},l),[b,l]);return(0,r().jsx)(Fn,{ref:t,addEndListener:Sn,...g,"aria-expanded":g.role?h:null,onEnter:v,onEntering:w,onEntered:B,onExit:C,onExiting:N,childRef:u.ref,in:h,timeout:d,mountOnEnter:p,unmountOnExit:f,appear:m,children:(e,t)=>a().cloneElement(u,{...t,className:Ae()(c,u.props.className,Di[e],"width"===b&&"collapse-horizontal")})})}),_i=["as","disabled"];function ji(e){let{tagName:t,disabled:n,href:r,target:a,rel:o,role:i,onClick:s,tabIndex:l=0,type:c}=e;t||(t=null!=r||null!=a||null!=o?"a":"button");const u={tagName:t};if("button"===t)return[{type:c||"button",disabled:n},u];const A=e=>{(n||"a"===t&&function(e){return!e||"#"===e.trim()}(r))&&e.preventDefault(),n?e.stopPropagation():null==s||s(e)};return"a"===t&&(r||(r="#"),n&&(r=void 0)),[{role:null!=i?i:"button",disabled:void 0,tabIndex:n?void 0:l,href:r,target:"a"===t?a:void 0,"aria-disabled":n||void 0,rel:"a"===t?o:void 0,onClick:A,onKeyDown:e=>{" "===e.key&&(e.preventDefault(),A(e))}},u]}const Ki=a().forwardRef((e,t)=>{let{as:n,disabled:a}=e,o=function(e,t){if(null==e)return{};var n,r,a={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,_i);const[i,{tagName:s}]=ji(Object.assign({tagName:n,disabled:a},o));return(0,r().jsx)(s,Object.assign({},o,i,{ref:t}))});Ki.displayName="Button";const zi=a().forwardRef((e,t)=>
2{let{as:n,bsPrefix:a,variant:o="primary",size:i,active:s=!1,disabled:l=!1,className:c,...u}=e;const A=Ce(a,"btn"),[h,{tagName:d}]=ji({tagName:n,disabled:l,...u}),p=d;return(0,r().jsx)(p,{...h,...u,ref:t,disabled:l,className:Ae()(c,A,s&&"active",o&&`${A}-${o}`,i&&`${A}-${i}`,u.href&&l&&"disabled")})});zi.displayName="Button";const Wi=zi,Vi=JSON.parse('{"Bk":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1],"R7":{"2":{"normal":{"description":"A board smaller and more proportioned to modified two player TI.","source":"KingOfRohan","home_worlds":[22,31],"primary_tiles":[9,15],"secondary_tiles":[5,2,21,30,32,23],"tertiary_tiles":[10,16,14,8,7,13,12,18,1,4,6,3],"hyperlane_tiles":[]}},"3":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[22,28,34],"primary_tiles":[9,13,17],"secondary_tiles":[6,4,2,21,27,33,35,29,23],"tertiary_tiles":[8,12,16,18,14,10,1,3,5,15,11,7],"hyperlane_tiles":[]},"compact":{"description":"A more compact variant, that encourages fighting. Recommended to play with high resource values.","source":"Unknown","home_worlds":[10,14,18],"primary_tiles":[2,4,6,1,5,3],"secondary_tiles":[9,13,17,7,15,11],"tertiary_tiles":[12,16,8],"hyperlane_tiles":[]},"manta":{"description":"A flatter 3 player map without a top of the galaxy.","source":"arborecsoup","home_worlds":[28,25,31],"primary_tiles":[13,11,15],"secondary_tiles":[4,3,5,27,26,30,29,32,24],"tertiary_tiles":[12,10,16,14,6,2,1],"hyperlane_tiles":[]},"rex":{"description":"A competitive map with adjacencies.","source":"rex","home_worlds":[7,11,15],"primary_tiles":[8,12,16,6,4,2],"secondary_tiles":[18,10,14,31,25,19],"tertiary_tiles":[9,13,17,34,28,22],"hyperlane_tiles":[[1,"90A",0],[3,"90A",2],[5,"90A",1],[20,"85A",4],[24,"85A",4],[26,"85A",0],[30,"85A",0],[32,"85A",2],[36,"85A",2]]},"warp":{"description":"The Trident, a 5 player warp board scaled down to 3. Warp zones fill the three playerless corners, each wrapping around one isolated system that only hyperlanes reach, so the players sit close together and Mecatol Rex has just three neighbors.","source":"Skootur","home_worlds":[19,25,31],"primary_tiles":[7,11,15],"secondary_tiles":[5,3,1,9,13,17],"tertiary_tiles":[20,24,26,30,32,36],"hyperlane_tiles":[[2,"85A",4],[4,"85A",0],[6,"85A",2],[8,"87A",0],[10,"87A",4],[12,"87A",2],[14,"87A",0],[16,"87A",4],[18,"87A",2],[21,"83A",1],[22,"85A",4],[23,"83A",2],[27,"83A",0],[28,"85A",0],[29,"83A",1],[33,"83A",2],[34,"85A",2],[35,"83A",0]],"overrideRatios":{"blueTileRatio":2,"redTileRatio":1}},"large warp":{"description":"A four ring warp board for 3 players, with the playerless corners sealed off by hyperlanes. Needs Prophecy of Kings to fill.","source":"Marquize-sys","home_worlds":[37,45,53],"primary_tiles":[19,25,31,7,11,15],"secondary_tiles":[38,60,44,46,52,54],"tertiary_tiles":[1,3,5,9,13,17,20,24,26,30,32,36,41,49,57],"hyperlane_tiles":[[2,"85A",4],[4,"86A",0],[6,"85A",2],[8,"88A",4],[10,"88A",2],[12,"87A",2],[14,"87A",0],[16,"88A",2],[18,"88A",0],[21,"84A",0],[22,"89A",5],[23,"84A",1],[27,"83A",0],[28,"89A",1],[29,"84A",0],[33,"84A",1],[34,"89A",1],[35,"84A",5],[39,"87B",2],[40,"83A",1],[42,"83A",5],[43,"89B",0],[47,"87B",4],[48,"84A",2],[50,"83A",4],[51,"89B",2],[55,"87B",0],[56,"84A",1],[58,"83A",0],[59,"89B",4]],"requiresPok":true,"overrideRatios":{"blueTileRatio":2,"redTileRatio":1}}},"4":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[23,27,32,36],"primary_tiles":[9,12,15,18,7,16,13,10],"secondary_tiles":[2,4,5,1,19,33,28,24,22,26,31,35],"tertiary_tiles":[3,6,17,14,11,8,20,25,29,34,30,21],"hyperlane_tiles":[]},"horizontal":{"description":"A slightly smaller than normal board which is aligned horizontally.","source":"Squishyish","home_worlds":[22,25,31,34],"primary_tiles":[9,11,15,17],"secondary_tiles":[6,5,3,2,21,26,30,35,33,32,24,23],"tertiary_tiles":[1,4,18,14,12,8,10,13,16,7],"hyperlane_tiles":[]},"vertical":{"description":"An smaller than normal board aligned vertically.","source":"Unknown","home_worlds":[21,26,30,35],"primary_tiles":[8,12,14,18],"secondary_tiles":[6,5,3,2,20,27,29,36,17,15,11,9],"tertiary_tiles":[1,4,16,10,7,13],"hyperlane_tiles":[]},"gaps":{"description":"A smaller than normal board aligned vertically, but with gaps to encourage fights with neighbors.","source":"Unknown","home_worlds":[21,26,30,35],"primary_tiles":[8,12,14,18],"secondary_tiles":[6,5,3,2,20,27,29,36,17,15,11,9],"tertiary_tiles":[16,10,7,13],"hyperlane_tiles":[]},"warp":{"description":"A smaller than normal board aligned vertically, but filled two hyperlanes to facilitate getting across the board.","source":"Unknown","home_worlds":[21,26,30,35],"primary_tiles":[8,12,14,18],"secondary_tiles":[6,5,3,2,20,27,29,36,17,15,11,9],"tertiary_tiles":[16,10,7,13],"hyperlane_tiles":[[1,"87A",1],[4,"88A",2]]},"double warp":{"description":"Split sides of the galaxy with many hyperlanes connecting the sides.","source":"Unknown","home_worlds":[22,25,31,34],"primary_tiles":[9,11,15,17,7,13],"secondary_tiles":[6,5,3,2,35,30,26,21,23,24,32,33],"tertiary_tiles":[10,16],"hy
2perlane_tiles":[[8,"89B",5],[12,"87B",4],[14,"90B",2],[18,"91B",1]]},"mini warp":{"description":"S more standard 4 player map, but with 4 hyperlanes to bring neighbors closer.","source":"Captbrownshoes","home_worlds":[36,23,27,32],"primary_tiles":[7,10,13,15,16,12,9,18],"secondary_tiles":[1,2,4,5,17,11],"tertiary_tiles":[24,26,33,35,6,3,19,31,28,22,21,29,30,20],"hyperlane_tiles":[[8,"91A",2],[14,"84B",5],[25,"85A",5],[34,"86A",2]]},"corner warp":{"description":"The 5 player warp board scaled down to 4 players, with the two playerless corners sealed off by hyperlanes.","source":"Marquize-sys","home_worlds":[22,25,31,34],"primary_tiles":[9,11,15,17],"secondary_tiles":[6,5,3,2,7,10,13,16],"tertiary_tiles":[21,23,24,26,30,32,33,35],"hyperlane_tiles":[[1,"86A",3],[4,"86A",0],[8,"88A",1],[12,"88A",0],[14,"87A",0],[18,"87A",5],[19,"85A",3],[20,"84A",0],[27,"83A",0],[28,"85A",0],[29,"84A",0],[36,"83A",0]],"overrideRatios":{"blueTileRatio":7,"redTileRatio":3}},"large warp":{"description":"A four ring warp board for 4 players, with the playerless corners sealed off by hyperlanes. Needs Prophecy of Kings to fill.","source":"Marquize-sys","home_worlds":[41,45,53,57],"primary_tiles":[22,25,31,34,9,11,15,17],"secondary_tiles":[40,42,44,46,52,54,56,58],"tertiary_tiles":[2,3,5,6,7,10,13,16,21,23,24,26,30,32,33,35,37,43,49,55],"hyperlane_tiles":[[1,"86A",3],[4,"86A",0],[8,"87A",3],[12,"87A",2],[14,"87A",0],[18,"87A",5],[19,"89A",0],[20,"84A",0],[27,"84A",2],[28,"89A",1],[29,"84A",0],[36,"84A",2],[38,"84A",0],[39,"89B",5],[47,"87B",4],[48,"83A",0],[50,"84A",0],[51,"89B",2],[59,"87B",1],[60,"83A",0]],"requiresPok":true}},"5":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[21,25,28,31,35],"primary_tiles":[13,15,11,17,9],"secondary_tiles":[4,3,5,6,2,29,30,26,8,18,27,24,32,34,22],"tertiary_tiles":[1,16,7,10,12,14,33,23,20,36,19],"hyperlane_tiles":[]},"warp":{"description":"The modified version of the 5 player map from FFG for use with hyperlanes.","source":"Game Rules","home_worlds":[19,22,25,31,34],"primary_tiles":[7,9,11,15,17],"secondary_tiles":[6,5,3,2,1,13,16,18,8,10],"tertiary_tiles":[20,23,26,32,35,33,30,24,21,36],"hyperlane_tiles":[[4,"86A",0],[12,"88A",0],[14,"87A",0],[27,"83A",0],[28,"85A",0],[29,"84A",0]],"overrideRatios":{"blueTileRatio":3,"redTileRatio":2}},"diamond":{"description":"A slightly smaller map than normal, which focuses on being closer to Mecatol Rex.","source":"Unknown","home_worlds":[21,24,28,32,35],"primary_tiles":[9,11,13,15,17],"secondary_tiles":[6,5,4,3,2,18,16,29,10,8,20,23,27,33,36],"tertiary_tiles":[1,7,12,14,19],"hyperlane_tiles":[]},"flat":{"description":"A wide map with a missing top and extra tiles on the sides.","source":"Good Sauce","home_worlds":[28,22,34,25,31],"primary_tiles":[13,15,11,9,17],"secondary_tiles":[6,2,3,5,4,27,24,32,56,42],"tertiary_tiles":[23,33,30,26,29,1,12,14,10,16,43,55,8,18,7,44,54],"hyperlane_tiles":[]},"notch":{"description":"A distinct notch separates the players at the top of the board, making their home systems still distant.","source":"Kazadoom","home_worlds":[28,20,36,24,32],"primary_tiles":[8,11,13,15,18],"secondary_tiles":[6,5,4,3,2,21,10,27,16,35,17,31,29,25,9],"tertiary_tiles":[1,12,14,34,30,26,22,23,33],"hyperlane_tiles":[]},"approaching":{"description":"A taller 5 player map which moves one player further from Mecatol Rex.","source":"Unknown","home_worlds":[21,24,28,32,35],"primary_tiles":[8,10,13,16,18],"secondary_tiles":[6,5,4,3,2,20,11,29,33,36,17,15,27,23,9],"tertiary_tiles":[1,12,7,14,19],"hyperlane_tiles":[]},"large warp":{"description":"A four ring version of the 5 player warp board, using hyperlanes to keep the slices even. Needs Prophecy of Kings to fill.","source":"Marquize-sys","home_worlds":[37,41,45,53,57],"primary_tiles":[19,22,25,31,34,7,9,11,15,17],"secondary_tiles":[38,60,40,42,44,46,52,54,56,58],"tertiary_tiles":[1,2,3,5,6,8,10,13,16,18,20,21,23,24,26,30,32,33,35,36,39,43,49,55,59],"hyperlane_tiles":[[4,"86A",0],[12,"87A",2],[14,"87A",0],[27,"83A",0],[28,"89A",1],[29,"84A",0],[47,"87B",4],[48,"84A",2],[50,"83A",4],[51,"89B",2]],"requiresPok":true}},"6":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[19,22,25,28,31,34],"primary_tiles":[7,9,11,13,15,17],"secondary_tiles":[6,5,4,3,2,1,20,21,24,27,30,33],"tertiary_tiles":[18,16,14,12,10,8,23,26,29,32,35,36],"hyperlane_tiles":[]},"spiral":{"description":"More adjacent home planets, with the same path to the middle.","source":"9__Erebus","home_worlds":[20,23,26,29,32,35],"primary_tiles":[8,10,12,14,16,18,6,5,4,3,2,1],"secondary_tiles":[19,22,25,28,31,34,17,15,13,11,9,7],"tertiary_tiles":[27,24,21,36,33,30],"hyperlane_tiles":[]},"large":{"description":"The large version using the expansion tiles.","source":"Game Rules","requiresPok":true,"home_worlds":[37,41,45,49,53,57],"primary_tiles":[19,22,25,28,31,34,17,15,13,11,9,7],"secondary_tiles":[60,40,44,48,52,56,58,54,50,46,42,38],"tertiary_tiles":[1,2,3,4,5,6,16,14,12,10,8,18,20,23,26,29,32,35,33,30,27,24,21,36,39,43,47,51,55,59],"hyperlane_tiles":[]}
2,"extraLarge":{"description":"An expansive board with a 5th ring of frontier space, for very large or long-form games. Needs a large tile pool to fill all 90 non-Mecatol tiles \u2014 enable PoK plus fan-made tile content (Uncharted Space / Eronous / Thunder\'s Edge) or some tiles may be left empty.","source":"Community","home_worlds":[61,66,71,76,81,86],"primary_tiles":[62,63,64,65,67,68,69,70,72,73,74,75,77,78,79,80,82,83,84,85,87,88,89,90],"secondary_tiles":[37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60],"tertiary_tiles":[1,2,3,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],"hyperlane_tiles":[]}},"7":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[37,40,43,46,52,55,58],"primary_tiles":[19,21,23,25,31,33,35,18,16,15,11,10,8,7],"secondary_tiles":[1,2,3,4,5,6,57,54,51,47,44,41,38,60,39,42,45,53,56,59,20,36],"tertiary_tiles":[17,14,12,9,34,32,30,26,24,22,28],"hyperlane_tiles":[[13,"86A",0],[27,"88A",0],[29,"87A",0],[48,"83A",0],[49,"85A",0],[50,"84A",0]]},"warp":{"description":"The alternate map to use with 7 players which uses different hyperlanes.","source":"Game Rules","home_worlds":[37,22,25,49,52,55,58],"primary_tiles":[19,35,16,30,28,11,9],"secondary_tiles":[2,3,13,14,6,18,7,60,34,32,51,48,24,21],"tertiary_tiles":[23,26,50,31,56,59,38,36,17,15,29,12,10,8],"hyperlane_tiles":[[1,"85B",0],[4,"84B",0],[5,"90B",0],[20,"88B",0],[27,"86B",0],[33,"83B",5]]}},"8":{"normal":{"description":"Control what is around you for resources, and attack the center for victory points.","source":"Game Rules","home_worlds":[37,40,43,46,49,52,55,58],"primary_tiles":[19,35,33,30,28,26,24,21],"secondary_tiles":[2,3,4,5,6,1,7,18,16,14,13,12,10,8],"tertiary_tiles":[60,57,54,51,48,45,42,39,41,44,47,50,53,56,59,38,36,20,27,29,17,15,11,9,34,32,31,25,23,22],"hyperlane_tiles":[]},"warp":{"description":"The alternate map to use with 8 players which uses hyperlanes.","source":"Game Rules","home_worlds":[37,40,43,46,49,52,55,58],"primary_tiles":[19,21,10,26,28,30,16,35],"secondary_tiles":[18,6,14,13,12,3,8,7,60,39,23,25,48,51,32,34,59,56,31,50,47,44,22,38],"tertiary_tiles":[20,9,11,27,29,15,17,36],"hyperlane_tiles":[[1,"87A",1],[2,"90B",3],[4,"88A",2],[5,"89B",0],[24,"85B",5],[33,"83B",5]]}}}}'),Gi=10,qi=[[-1,1],[-1,0],[0,-1],[1,-1],[1,0],[0,1]],Yi=e=>{let t=[],n=e,r=0;for(let a=0;a<6;a++)for(let o=0;o<e;o++)t.push([n,r]),n+=qi[a][0],r+=qi[a][1];return t};let Xi=null,Ji=null;const Zi=()=>{if(!Xi){Xi=[[0,0]],Ji=new Map([["0,0",0]]);for(let e=1;e<=Gi;e++)for(const[t,n]of Yi(e))Ji.set(`${t},${n}`,Xi.length),Xi.push([t,n])}},$i=[[1,0],[0,1],[-1,1],[-1,0],[0,-1],[1,-1]],es=e=>{Zi();const t=Xi[e];if(!t)return[];const[n,r]=t;return $i.map(e=>{let[t,a]=e;return Ji.get(`${n+t},${r+a}`)})},ts=e=>{let t=3;for(;e>3*t*(t+1)+1&&t<Gi;)t++;return t},ns=e=>{Zi();const t=Xi[e];if(!t)return 0;const[n,r]=t,a=.75*r,o=-n-.5*r;return(180*Math.atan2(a,-o)/Math.PI+360)%360},rs=/^((?:8[3-9]|9[01])[AB]|hyp[a-z0-9]+?)(?:-([0-5]))?$/,as=e=>{const t=rs.exec(String(e));return t&&O.hyperlanes.indexOf(t[1])>=0?{id:t[1],rotation:Number(t[2])||0,isHyperlane:!0}:{id:e,rotation:0,isHyperlane:!1}},os=e=>as(e).isHyperlane,is=(e,t,n,r)=>{if(r.has(t))return[];r.add(t);const a=es(t),o=a.indexOf(n);if(o<0)return[];const{id:i,rotation:s}=as(e[t]),l=(O.all[i]||{}).hyperlanes||[],c=[];for(const[u,A]of l){const n=(u+s)%6,i=(A+s)%6,l=n===o?i:i===o?n:-1;if(l<0)continue;const h=a[l];void 0===h||h>=e.length||(os(e[h])?c.push(...is(e,h,t,r)):c.push(h))}return c},ss=(e,t)=>{const n=[];for(const r of es(t))void 0===r||r>=e.length||(os(e[r])?n.push(...is(e,r,t,new Set)):n.push(r));return n.filter((e,r)=>e!==t&&n.indexOf(e)===r)},ls={resources:1,influence:1,planets:.25,anomalies:1},cs=(e,t,n)=>{if(0===n||t.has(n))return!1;const r=e[n];return void 0!==r&&-1!==r&&0!==r&&!os(r)},us=e=>{const t={resources:0,influence:0,planets:0,anomalies:0},n=O.all[e];if(void 0===n)return t;for(const r of n.planets)t.planets+=1,r.resources>r.influence?t.resources+=r.resources:r.influence>r.resources?t.influence+=r.influence:(t.resources+=r.resources/2,t.influence+=r.influence/2);return"red"===n.type&&(t.anomalies+=1),t},As=(e,t)=>t.map(t=>{const n={resources:0,influence:0,planets:0,anomalies:0};for(const r in t){const a=t[r],o=us(e[r]);n.resources+=o.resources*a,n.influence+=o.influence*a,n.planets+=o.planets*a,n.anomalies+=o.anomalies*a}return n}),hs=e=>{if(e.length<2)return 0;let t=0;for(const n in ls){const r=e.map(e=>e[n]),a=r.reduce((e,t)=>
2e+t,0)/r.length;t+=r.reduce((e,t)=>e+(t-a)*(t-a),0)*ls[n]}return t};class ds extends a().Component{render(){return(0,r().jsxs)(er,{show:this.props.visible,onHide:this.props.hideModal,children:[(0,r().jsx)(er.Header,{closeButton:!0,children:(0,r().jsx)(er.Title,{children:"Set Player Names"})}),(0,r().jsx)(er.Body,{children:(0,r().jsx)("form",{id:"playerNameForm",children:this.props.currentPlayerNames.map((e,t)=>(0,r().jsxs)("div",{className:"form-group",children:[(0,r().jsxs)("label",{htmlFor:"player"+(t+1)+"Name",children:["Player ",t+1]}),(0,r().jsx)("input",{className:"form-control",name:"playerName"+t,type:"text",placeholder:"P"+(t+1),defaultValue:e,onChange:this.props.handleNameChange})]},"set-names-"+t))})})]})}}const ps=ds;class fs extends a().Component{constructor(e){super(e),this.state={searchString:""},this.updateSearchString=this.updateSearchString.bind(this)}updateSearchString(e){this.setState({searchString:e.target.value})}render(){let e=this.props.factions;this.props.includedExpansions[E]&&(e=e.concat(this.props.pokFactions)),this.props.includedExpansions[x]&&(e=e.concat(this.props.teFactions)),this.props.includedExpansions[S]&&(e=e.concat(this.props.dsFactions));return(0,r().jsxs)(er,{show:this.props.visible,onHide:this.props.hideModal,children:[(0,r().jsx)(er.Header,{closeButton:!0,children:(0,r().jsx)(er.Title,{children:"Set Factions"})}),(0,r().jsxs)("div",{style:{borderBottom:"1px solid #dee2e6"},children:[(0,r().jsx)("button",{type:"button",name:"all",className:"btn btn-outline-primary m-2 ml-3",onClick:this.props.handleFactionsChange,children:"Select All"}),(0,r().jsx)("button",{type:"button",name:"none",className:"btn btn-outline-primary m-2",onClick:this.props.handleFactionsChange,children:"Deselect All"})]}),(0,r().jsx)(er.Body,{children:(0,r().jsxs)("form",{id:"includedFactionsForm",children:[(0,r().jsx)("div",{className:"form-group mb-3",children:(0,r().jsx)("input",{className:"form-control",id:"filterFactions",type:"text",placeholder:"Filter Factions...",value:this.state.searchString,onChange:this.updateSearchString})}),e.map((e,t)=>{let n=e.toLowerCase().includes(this.state.searchString);return(0,r().jsx)($e.Group,{className:"custom-control custom-checkbox mb-2 factions"+(n?"":" d-none"),controlId:"include"+e.replace(" ",""),children:(0,r().jsx)($e.Check,{inline:!0,name:e,type:"checkbox",checked:this.props.currentFactions.indexOf(e)>-1,onChange:this.props.handleFactionsChange,label:e})},"set-factions-"+t)})]})})]})}}const ms=fs,ys=e=>t=>(!O.pok.includes(t)||e[E])&&(!O.uncharted.includes(t)||e[T])&&(!O.sun.includes(t)||e[F])&&(!O.asyncLanes.includes(t)||e[k])&&(!O.te.includes(t)||e[x]),gs=e=>Object.keys(Vi.R7[e]).filter(t=>!Vi.R7[e][t].requiresPok),bs='<a href="https://images-cdn.fantasyflightgames.com/filer_public/fa/b1/fab15a15-94a6-404c-ab86-6a3b0e77a7a0/ip_policy_031419_final_v21.pdf" target="_blank" rel="noreferrer">Asmodee guidelines on community usage of TI4 intellectual property</a>',vs=e=>`<p class="mb-0"><a href="${e}" target="_blank" rel="noreferrer">Reference document for this content</a></p>`;class ws extends a().Component{constructor(e){super(e);const t={numberOfPlayers:[2,3,4,5,6],pokNumberOfPlayers:[7,8],boardStyles:{2:gs("2"),3:gs("3"),4:gs("4"),5:gs("5"),6:gs("6")},boardStylesPok:{2:Object.keys(Vi.R7[2]).map(e=>e),3:Object.keys(Vi.R7[3]).map(e=>e),4:Object.keys(Vi.R7[4]).map(e=>e),5:Object.keys(Vi.R7[5]).map(e=>e),6:Object.keys(Vi.R7[6]).map(e=>e),7:Object.keys(Vi.R7[7]).map(e=>e),8:Object.keys(Vi.R7[8]).map(e=>e)},pickStyles:["balanced","random","resource","influence","custom"],placementStyles:["slice","initial","home","random"],factions:[...X.factions],pokFactions:[...X.pokFactions],teFactions:[...X.teFactions],dsFactions:[...X.dsFactions],homeworlds:X.homeSystems,pokHomeworlds:X.pokHomeSystems,teHomeworlds:X.teHomeSystems,dsHomeworlds:X.dsHomeSystems};this.state={optionsPossible:t,currentNumberOfPlayers:6,currentNumberOfPlayersOptions:t.numberOfPlayers,currentBoardStyleOptions:t.boardStyles[6],currentBoardStyle:t.boardStyles[6][0],currentPickStyle:t.pickStyles[0],currentPlacementStyle:t.placementStyles[0],currentSeed:"",userSetSeed:!1,fanContent:!1,pickFactions:!1,pickMultipleFactions:!1,shuffleBoards:!1,reversePlacementOrder:!1,forceWormholes:!1,forceAnomalies:!1,ensureFactionAnomalies:!0,balancePlanetTraits:!1,balanceSlices:!0,generated:!1,advancedSettingsOpen:!1,fanContentHelp:!1,unchartedSpaceHelp:!1,discordantStarsHelp:!1,ascendentSunHelp:!1,pickFactionsHelp:!1,boardStyleHelp:!1,pickStyleHelp:!1,placementStyleHelp:!1,setPlayerNamesHelp:!1,setFactionsHelp:!1,pickMultipleFactionsHelp:!1,shufflePriorityHelp:!1,reversePlacementOrderHelp:!1,forceWormholesHelp:!1,forceAnomaliesHelp:!1,ensureFactionAnomaliesHelp:!1,balancePlanetTraitsHelp:!1,resourceWeight:70,influenceWeight:30,planetCountWeight:15,specialtyWeight:50,anomalyWeight:10,wormholeWeight:25,shuffleThreshold:5},this.handleInputChange=this.handleInputChange.bind(this),this.handleNameChange=this.handleNameChange.bind(this),this.handleFactionsChange=this.handleFactionsChange.bind(this),this.updatePok=this.updatePok.bind(this),this.updateUncharted=this.updateUncharted.bind(this),this.updateDS=this.updateDS.bind(this),this.updateSun=this.updateSun.bind(this),this.updateFanHyp=this.updateFanHyp.bind(this),this.updatePlayerCount=this.updatePlayerCount.bind(this),this.updateBoardStyle=this.updateBoardStyle.bind(this),this.updateSeed=this.updateSeed.bind(this),this.ensureAnomalies=this.ensureAnomalies.bind(this),this.ensureWormholesForType=this.ensureWormholesForType.bind(this),this.ensurePlanetTraitBalance=this.ensurePlanetTraitBalance.b
2ind(this),this.balanceSlices=this.balanceSlices.bind(this),this.updateBoardStyleOptions=this.updateBoardStyleOptions.bind(this),this.encodeSettings=this.encodeSettings.bind(this),this.decodeSettings=this.decodeSettings.bind(this),this.generateBoard=this.generateBoard.bind(this),this.getNewTileSet=this.getNewTileSet.bind(this),this.toggleFanContentHelp=this.toggleFanContentHelp.bind(this),this.toggleUnchartedSpaceHelp=this.toggleUnchartedSpaceHelp.bind(this),this.toggleDiscordantStarsHelp=this.toggleDiscordantStarsHelp.bind(this),this.toggleAscendentSunHelp=this.toggleAscendentSunHelp.bind(this),this.toggleFanHyperlanesHelp=this.toggleFanHyperlanesHelp.bind(this),this.updateTE=this.updateTE.bind(this),this.togglePickFactionsHelp=this.togglePickFactionsHelp.bind(this),this.toggleBoardStyleHelp=this.toggleBoardStyleHelp.bind(this),this.togglePickStyleHelp=this.togglePickStyleHelp.bind(this),this.togglePlacementStyleHelp=this.togglePlacementStyleHelp.bind(this),this.toggleSetPlayerNamesHelp=this.toggleSetPlayerNamesHelp.bind(this),this.toggleSetFactionsHelp=this.toggleSetFactionsHelp.bind(this),this.togglePickMultipleFactionsHelp=this.togglePickMultipleFactionsHelp.bind(this),this.toggleShufflePriorityHelp=this.toggleShufflePriorityHelp.bind(this),this.toggleReversePlacementOrderHelp=this.toggleReversePlacementOrderHelp.bind(this),this.toggleForceWormholesHelp=this.toggleForceWormholesHelp.bind(this),this.toggleForceAnomaliesHelp=this.toggleForceAnomaliesHelp.bind(this),this.toggleEnsureFactionAnomaliesHelp=this.toggleEnsureFactionAnomaliesHelp.bind(this),this.toggleBalancePlanetTraitsHelp=this.toggleBalancePlanetTraitsHelp.bind(this),this.toggleBalanceSlicesHelp=this.toggleBalanceSlicesHelp.bind(this),this.toggleAdvancedSettings=this.toggleAdvancedSettings.bind(this)}handleInputChange(e){const t=e.target,n="checkbox"===t.type?t.checked:t.value,r=t.name;this.setState({[r]:n})}handleNameChange(e){let t=parseInt(e.target.name.substring(10)),n=this.props.currentPlayerNames;n[t]=e.target.value,this.setState({currentPlayerNames:n}),this.props.updatePlayerNames(n)}handleFactionsChange(e){let t=e.target.name,n=this.props.currentFactions;if("none"===t)n=[];else if("all"===t)n=[...this.state.optionsPossible.factions],this.props.includedExpansions[E]&&(n=n.concat(this.state.optionsPossible.pokFactions)),this.props.includedExpansions[x]&&(n=n.concat(this.state.optionsPossible.teFactions)),this.props.includedExpansions[S]&&(n=n.concat(this.state.optionsPossible.dsFactions));else{let e=n.indexOf(t);e>=0?n.splice(e,1):n.push(t)}this.props.updateFactions(n)}updatePok(e){let t=[...this.state.optionsPossible.factions];this.props.includedExpansions[x]&&(t=t.concat(this.state.optionsPossible.teFactions)),this.props.includedExpansions[S]&&(t=t.concat(this.state.optionsPossible.dsFactions));let n=this.state.optionsPossible.boardStyles;e.target.checked?(n=this.state.optionsPossible.boardStylesPok,this.setState({currentNumberOfPlayersOptions:this.state.optionsPossible.numberOfPlayers.concat(this.state.optionsPossible.pokNumberOfPlayers),currentBoardStyle:n[this.state.currentNumberOfPlayers][0],currentBoardStyleOptions:n[this.state.currentNumberOfPlayers]},()=>{this.props.updateFactions([...t.concat(this.state.optionsPossible.pokFactions)]),this.props.toggleProphecyOfKings(e)})):this.setState({currentNumberOfPlayers:this.state.currentNumberOfPlayers>6?6:this.state.currentNumberOfPlayers,currentNumberOfPlayersOptions:this.state.optionsPossible.numberOfPlayers,currentBoardStyle:this.state.currentNumberOfPlayers>6?n[6][0]:this.state.currentBoardStyle,currentBoardStyleOptions:this.state.currentNumberOfPlayers>6?n[6]:n[this.state.currentNumberOfPlayers]},()=>{this.props.updateFactions(t),this.props.toggleProphecyOfKings(e)})}updateUncharted(e){this.props.toggleUnchartedSpace(e)}updateSun(e){this.props.toggleAscendentSun(e)}updateFanHyp(e){this.props.toggleFanHyperlanes(e)}updateTE(e){let t=[...this.state.optionsPossible.factions];this.props.includedExpansions[E]&&(t=t.concat(this.state.optionsPossible.pokFactions)),this.props.includedExpansions[S]&&(t=t.concat(this.state.optionsPossible.dsFactions)),e.target.checked?this.props.updateFactions([...t.concat(this.state.optionsPossible.teFactions)]):this.props.updateFactions(t),this.props.toggleThundersEdge(e)}updateDS(e){let t=[...this.state.optionsPossible.factions];this.props.includedExpansions[E]&&(t=t.concat(this.state.optionsPossible.pokFactions)),this.props.includedExpansions[x]&&(t=t.concat(this.state.optionsPossible.teFactions)),e.target.checked?this.props.updateFactions([...t.concat(this.state.optionsPossible.dsFactions)]):this.props.updateFactions(t),this.props.toggleDiscordantStars(e)}updatePlayerCount(e){this.setState({currentNumberOfPlayers:parseInt(e.target.value)},()=>{this.updateBoardStyleOptions(e)})}updateBoardStyle(e){this.setState({currentBoardStyle:e.target.value},()=>{this.state.generated&&this.generateBoard(e)})}updateBoardStyleOptions(e){let t=this.state.optionsPossible.boardStyles;this.props.includedExpansions[E]&&(t=this.state.optionsPossible.boardStylesPok),this.setState({currentBoardStyleOptions:t[this.state.currentNumberOfPlayers],currentBoardStyle:t[this.state.currentNumberOfPlayers][0]},()=>{this.state.generated&&this.generateBoard(e)})}updateSeed(e){let t=parseInt(e.target.value);isNaN(t)&&""!==e.target.value||this.setState({currentSeed:e.target.value,userSetSeed:""!==e.target.value})}capitalize(e){return e.charAt(0).toUpperCase()+e.slice(1)}shuffle(e){let t,n,r=e.length,a=this.state.currentSeed.valueOf();for(;r;)n=Math.floor(this.random(a)*r--),t=e[r],e[r]=e[n],e[n]=t,++a;return e}random(e){let t=1e4*Math.sin(e++);return t-Math.floor(t)}encodeSettings(){let e="";if(e+=this.props.includedExpansions[E]?"T":"F",e+=this.props.includedExpansions[x]?"T":"F",this.state.fanContent?(e+=this.props.includedExpansions[T]?"T":"F",e+=this.props.includedExpansions[S]?"T":"F",e+=this.props.includedExpansions[F]?"T":"F",e+=this.props.includedExpansions[k]?"T":"F"):e+="FFFF",e+=this.state.currentNumberOfPlayers.toString(),e+=this.state.currentBoardStyleOptions.indexOf(this.state.currentBoardStyle).toString(),e+=this.state.optionsPossible.placementStyles.indexOf(this.state.currentPlacementStyle).toString(),e+=this.state.optionsPossible.pickStyles.indexOf(this.state.currentPickStyle).toString(),"custom"===this.state.currentPickStyle&&(e+=this.state.resourceWeight.toString().padStart(3,"0"),e+=this.state.influenceWeight.toString().padStart(3,"0"),e+=this.state.planetCountWeight.toString().padStart(3,"0"),e+=this.state.specialtyWeight.toString().padStart(3,"0"),e+=this.state.anomalyWeight.toString().padStart(3,"0"),e+=this.state.wormholeWeight.toString().padStart(3,"0")),e+=this.state.currentSeed.toString().padStart(4,"0"),e+=this.state.shuffleBoards?"T":"F",e+=this.state.reversePlacementOrder?"T":"F",e+=this.state.forceWormholes?"T":"F",e+=this.state.forceAnomalies?"T":"F",e+=this.state.balancePlanetTraits?"T":"F",e+=this.state.balanceSlices?"T":"F",e+=this.state.pickFactions?"T":"F",this.state.pickFactions){e+=this.state.ensureFactionAnomalies?"T":"F";let t=this.state.optionsPossible.factions.concat(this.state.optionsPossible.pokFactions).concat(this.state.optionsPossible.dsFactions).concat(this.state.optionsPossible.teFactions),n=17;if(this.props.includedExpansions[E]&&(n+=7),this.props.includedExpansions[S]&&(n+=34),this.props.includedExpansions[x]&&(n+=5),this.props.currentFactions.length!==n)for(let o of this.props.currentFactions)t.indexOf(o)>=0&&(e+=t.indexOf(o).toString().padStart(2,"0"));let r=!1,a="|";for(let e of this.props.currentPlayerNames)""!==e&&(r=!0),a+=e+"|";r&&(e+=a,e=e.slice(0,-1))}return e}decodeSettings(e,t){let n=0;console.log(e);let r=Object.fromEntries([[E,!1],[T,!1],[S,!1],[F,!1],[k,!1],[x,!1]]),a=!1;r[E]="T"===e[n],n+=1;const o=t=>{let a=n,o={...r},i=!1;t?(o[x]="T"===e[a],a+=1):o[x]=!1,"T"!==e[a]&&"F"!==e[a]||(o[T]="T"===e[a],i=i||o[T],a+=1,o[S]="T"===e[a],i=i||o[S],a+=1,o[F
2]="T"===e[a],i=i||o[F],a+=1,o[k]="T"===e[a],i=i||o[k],a+=1);let s=Number(e[a]);a+=1;let l=o[E]?this.state.optionsPossible.numberOfPlayers.concat(this.state.optionsPossible.pokNumberOfPlayers):this.state.optionsPossible.numberOfPlayers,c=o[E]?this.state.optionsPossible.boardStylesPok[s]:this.state.optionsPossible.boardStyles[s],u=c?c[Number(e[a])]:void 0;return a+=1,{expansions:o,fanContent:i,index:a,numberOfPlayers:s,numberOfPlayersOptions:l,boardStyleOptions:c,boardStyle:u,valid:void 0!==c&&void 0!==u}};let i=o(!0);i.valid||(i=o(!1)),r=i.expansions,a=i.fanContent,n=i.index;let s=i.numberOfPlayers,l=i.numberOfPlayersOptions,c=i.boardStyleOptions,u=i.boardStyle,A=this.state.optionsPossible.placementStyles[Number(e[n])];n+=1;let h=this.state.optionsPossible.pickStyles[Number(e[n])];n+=1;let d=this.state.resourceWeight,p=this.state.influenceWeight,f=this.state.planetCountWeight,m=this.state.specialtyWeight,y=this.state.anomalyWeight,g=this.state.wormholeWeight;"custom"===h&&(d=Number(e.substring(n,n+3)),n+=3,p=Number(e.substring(n,n+3)),n+=3,f=Number(e.substring(n,n+3)),n+=3,m=Number(e.substring(n,n+3)),n+=3,y=Number(e.substring(n,n+3)),n+=3,g=Number(e.substring(n,n+3)),n+=3);let b=Number(e.substring(n,n+4));n+=4;let v="T"===e[n];n+=1;let w="T"===e[n];n+=1;let B="T"===e[n];n+=1;let C="T"===e[n];n+=1;let N="T"===e[n];n+=1;let U="T"===e[n];n+=1;let L="T"===e[n];n+=1;let O=this.props.currentPlayerNames,I=this.props.currentFactions,Q=this.props.ensureFactionAnomalies;if(L)if(Q="T"===e[n],n+=1,"|"!==e[n])if(void 0!==e[n]){I=[];let t=this.state.optionsPossible.factions.concat(this.state.optionsPossible.pokFactions).concat(this.state.optionsPossible.dsFactions).concat(this.state.optionsPossible.teFactions);for(;"|"!==e[n]&&n!==e.length;)I.push(t[Number(e.substring(n,n+2))]),n+=2}else I=this.state.optionsPossible.factions,r[E]&&(I=I.concat(this.state.optionsPossible.pokFactions)),r[x]&&(I=I.concat(this.state.optionsPossible.teFactions)),r[S]&&(I=I.concat(this.state.optionsPossible.dsFactions));else O=e.substring(n).split("|").splice(1);this.setState({fanContent:a,currentNumberOfPlayers:s,currentNumberOfPlayersOptions:l,currentBoardStyle:u,currentBoardStyleOptions:c,currentPlacementStyle:A,currentPickStyle:h,resourceWeight:d,influenceWeight:p,planetCountWeight:f,specialtyWeight:m,anomalyWeight:y,wormholeWeight:g,currentSeed:b,shuffleBoards:v,reversePlacementOrder:w,forceWormholes:B,forceAnomalies:C,balancePlanetTraits:N,balanceSlices:U,pickFactions:L,ensureFactionAnomalies:Q},()=>{this.props.updateFactions(I),this.props.updatePlayerNames(O),(r[E]&&!this.props.includedExpansions[E]||!r[E]&&this.props.includedExpansions[E])&&this.props.toggleProphecyOfKings(),(r[T]&&!this.props.includedExpansions[T]||!r[T]&&this.props.includedExpansions[T])&&this.props.toggleUnchartedSpace(),(r[F]&&!this.props.includedExpansions[F]||!r[F]&&this.props.includedExpansions[F])&&this.props.toggleAscendentSun(),(r[k]&&!this.props.includedExpansions[k]||!r[k]&&this.props.includedExpansions[k])&&this.props.toggleAscendentSun(),(r[S]&&!this.props.includedExpansions[S]||!r[S]&&this.props.includedExpansions[S])&&this.props.toggleDiscordantStars(),(r[x]&&!this.props.includedExpansions[x]||!r[x]&&this.props.includedExpansions[x])&&this.props.toggleThundersEdge(),t.length>0?this.props.updateTiles(t,e):this.props.updateTiles(this.getNewTileSet(I,r),e,!1)})}generateBoard(e){void 0!==e&&e.preventDefault();let t=this.state.currentSeed;this.state.userSetSeed||(t=Math.floor(Math.random()*Math.floor(9999))),this.setState({currentSeed:t,generated:!0},()=>{this.props.updateTiles(this.getNewTileSet(),this.encodeSettings(),!0)})}getNewTileSet(e,t){void 0===t&&(t=Object.fromEntries([[E,this.props.includedExpansions[E]],[T,this.state.fanContent&&this.props.includedExpansions[T]],[F,this.state.fanContent&&this.props.includedExpansions[F]],[k,this.state.fanContent&&this.props.includedExpansions[k]],[x,this.props.includedExpansions[x]]]));let n=this.getNewTilesToPlace();e=void 0===e?[...this.props.currentFactions]:[...e],this.shuffle(e),e=e.slice(0,this.state.currentNumberOfPlayers);let r=this.getNewSystemsToPlace(n.length,e,t),a=[...Vi.Bk];a[0]=18,this.placeHyperlanes(a),this.placeHomeSystems(a,e);
2for(let o of n)a[o]=r.shift();return this.placeLockedSystems(a),this.checkAdjacencies(a,t),this.state.balanceSlices&&this.balanceSlices(a,t),a}getNewTilesToPlace(){let e=[...Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].primary_tiles],t=[...Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].secondary_tiles],n=[...Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].tertiary_tiles];this.state.shuffleBoards&&(this.shuffle(e),this.shuffle(t),this.shuffle(n));let r=[];switch(this.state.currentPlacementStyle){case"random":r=this.state.reversePlacementOrder?n.concat(t).concat(e):e.concat(t).concat(n),this.shuffle(r);break;case"initial":r=this.state.reversePlacementOrder?this.shuffle(t.concat(n)).concat(e):e.concat(this.shuffle(t.concat(n)));break;case"home":r=e.concat(t).concat(n);let a=[...Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].home_worlds],o=[];for(let e of a){let t=A[e];for(let e of t)r.indexOf(e)>=0&&(o.push(e),r.splice(r.indexOf(e),1))}this.shuffle(o),r=this.state.reversePlacementOrder?r.concat(o):o.concat(r);break;default:r=this.state.reversePlacementOrder?n.concat(t).concat(e):e.concat(t).concat(n)}return r}getNewSystemsToPlace(e,t,n){let r=O.blue.filter(ys(n)),a=O.red.filter(ys(n));for(let p of this.props.excludedTiles)a.indexOf(p)>=0?a.splice(a.indexOf(p),1):r.indexOf(p)>=0&&r.splice(r.indexOf(p),1);const o=[];for(const p in N){if(N[p]===N.DELTA)continue;if(this.state.forceWormholes&&(N[p]===N.ALPHA||N[p]===N.BETA))continue;let e=a.filter(e=>O.all[e].wormhole.includes(N[p])).length;e+=r.filter(e=>O.all[e].wormhole.includes(N[p])).length,e<=1?(a=a.filter(e=>!O.all[e].wormhole.includes(N[p])),r=r.filter(e=>!O.all[e].wormhole.includes(N[p]))):o.push(p)}this.shuffle(o),o.splice(0,3);for(const p of o)console.log(N[p]),a=a.filter(e=>!O.all[e].wormhole.includes(N[p])),r=r.filter(e=>!O.all[e].wormhole.includes(N[p]));this.shuffle(r),this.shuffle(a);let i=2,s=1;const l=Vi.R7[this.state.currentNumberOfPlayers][this.state.currentBoardStyle];if(void 0!==l.overrideRatios)i=l.overrideRatios.blueTileRatio,s=l.overrideRatios.redTileRatio;else switch(this.state.currentNumberOfPlayers){case 3:i=3,s=1;break;case 4:i=5,s=3;break;case 6:i=3,s=2}let c=Math.round(Number(e/(i+s)*s)),u=Math.round(Number(e/(i+s)*i)),A=[];for(let p of this.props.includedTiles)A.indexOf(p)<0&&(A.push(p),a.indexOf(p)>=0?(a.splice(a.indexOf(p),1),c-=1):(r.splice(r.indexOf(p),1),u-=1));for(let p of this.props.lockedTiles)A.indexOf(p)<0&&(A.push(p),a.indexOf(p)>=0?(a.splice(a.indexOf(p),1),c-=1):(r.splice(r.indexOf(p),1),u-=1));const h=[];if(this.ensuredAnomalies=h,this.state.ensureFactionAnomalies&&this.state.pickFactions&&t.forEach(e=>{let t=[],r=!1;if("The Clan of Saar"===e?(t=O.asteroidFields.filter(ys(n)),r=!0):"The Embers of Muaat"===e?(t=O.supernovas.filter(ys(n)),r=!0):"The Empyrean"===e?(t=O.nebulae.filter(ys(n)),r=!0):"The Vuil'Raith Cabal"!==e&&"The Nivyn Star Kings"!==e||(t=O.gravityRifts.filter(ys(n)),r=!0),r&&c>0){t.some(e=>A.includes(e))?h.push(A.find(e=>t.includes(e))):(this.shuffle(t),A.push(t[0]),h.push(t[0]),a.splice(a.indexOf(t[0]),1),c-=1)}}),this.state.forceAnomalies){const e=[O.asteroidFields,O.supernovas,O.nebulae,O.gravityRifts];for(const t of e){const e=t.filter(ys(n)),o=A.find(t=>e.includes(t));if(void 0!==o){h.includes(o)||h.push(o);continue}const i=this.shuffle(e.filter(e=>a.includes(e)||r.includes(e)));for(;i.length>0;){const e=i.pop();if(a.includes(e)){if(c<=0)continue;a.splice(a.indexOf(e),1),c-=1}else{if(u<=0)continue;r.splice(r.indexOf(e),1),u-=1}A.push(e),h.push(e);break}}}if(this.state.forceWormholes)for(const p of[N.ALPHA,N.BETA]){const e=O[`${p}Wormholes`].filter(ys(n));let t=0;for(const n of e)A.includes(n)&&(t+=1);let o=2-t;if(o<=0)continue;const i=this.shuffle(e.filter(e=>a.includes(e)||r.includes(e)));for(;o>0&&i.length>0;){const e=i.pop();if(a.includes(e)){if(c<=0)continue;a.splice(a.indexOf(e),1),c-=1}else{if(u<=0)continue;r.splice(r.indexOf(e),1),u-=1}A.push(e),o-=1}}A=c>a.length?A.concat(r.slice(0,u+(c-a.length)).concat(a)):u>r.length?A.concat(r.concat(a.slice(0,c+(u-r.length)))):A.concat(r.slice(0,u).concat(a.slice(0,c)));for(const p in N){if(N[p]===N.GAMMA)continue;if(N[p]===N.DELTA)continue;const e=O[`${N[p]}Wormholes`].filter(ys(n));A=this.ensureWormholesForType(A,e,h,n)}for(const p in N){if(N[p]===N.GAMMA)continue;if(N[p]===N.DELTA)continue;const e=O[`${N[p]}Wormholes`].filter(ys(n));A=this.ensureWormholesForType(A,e,h,n,{method:"remove"})}this.state.balancePlanetTraits&&(A=this.ensurePlanetTraitBalance(A,h,n));let d={};switch(this.state.currentPickStyle){case"random":return this.shuffle(A),A;
2case"custom":d={resource:parseInt(this.state.resourceWeight),influence:parseInt(this.state.influenceWeight),planet_count:parseInt(this.state.planetCountWeight),specialty:parseInt(this.state.specialtyWeight),anomaly:parseInt(this.state.anomalyWeight),wormhole:parseInt(this.state.wormholeWeight),faction:parseInt(this.state.wormholeWeight)-5};break;case"resource":d={resource:100,influence:10,planet_count:10,specialty:10,anomaly:10,wormhole:10,faction:5};break;case"influence":d={resource:10,influence:100,planet_count:10,specialty:10,anomaly:10,wormhole:10,faction:5};break;default:d=n[E]?{resource:80,influence:30,planet_count:15,specialty:50,anomaly:40,wormhole:25,faction:20}:{resource:80,influence:30,planet_count:15,specialty:40,anomaly:30,wormhole:25,faction:20}}return A=this.getWeightedPlanetList(A,d,h),A}placeHyperlanes(e){for(let t=0;t<Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].hyperlane_tiles.length;t++){let n=Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].hyperlane_tiles[t];e[n[0]]=n[1]+"-"+n[2]}}placeHomeSystems(e,t){for(let n=0;n<Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].home_worlds.length;n++){let r=Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle].home_worlds[n];this.state.pickFactions&&!this.state.pickMultipleFactions?(e[r]=X.factionToHomeSystemMap[t[0]],t.shift()):e[r]=0}}placeLockedSystems(e){for(let t of this.props.lockedTiles){let n=this.props.tiles.indexOf(t);if(n>=0){let r=e.indexOf(t);e[r]=e[n],e[n]=t}}}checkAdjacencies(e,t){const n=this.ensuredAnomalies||[];let r=O.anomaly.filter(ys(t)),a=e.filter(e=>void 0!==O.all[e]).filter(e=>O.all[e].anomaly.length>0&&"green"!==O.all[e].type),o=[],i=[];for(let s of e.filter(e=>void 0!==O.all[e]))0!==s&&-1!==s&&O.all[s].wormhole.length>0&&(i=i.concat(O.all[s].wormhole).filter((e,t,n)=>t===n.indexOf(e)));for(let s of a){let t=e.indexOf(s),n=ss(e,t),a=[];for(let o of n){let t=e[o];r.indexOf(t)>=0&&a.push(t)}a.length>0&&o.push([s,a])}o.sort((e,t)=>t[1].length-e[1].length);for(let s of o){const a=s[0];if(this.props.includedTiles.includes(a))continue;if(this.props.lockedTiles.includes(a))continue;let o=e.indexOf(a),i=ss(e,o),l=[];for(let t of i){let n=e[t];r.indexOf(n)>=0&&l.push(n)}if(l.length<=0)continue;let c=!1;if(O.all[a].planets.length>0&&!O.all[a].anomaly.includes(B)){let i=O.blue.filter(ys(t)),s=[];for(let t of i.filter(t=>e.indexOf(t)<0))O.all[t].planets.length===O.all[a].planets.length&&O.all[t].wormhole.every(e=>O.all[a].wormhole.includes(e))&&O.all[a].wormhole.every(e=>O.all[t].wormhole.includes(e))&&s.push(t);if(this.shuffle(s),s.length>0&&!n.includes(a)&&(c=!0,e[o]=s[0]),!c&&l.length>0){for(let t of i){let n=e.indexOf(t);if(n>=0){let i=ss(e,n),s=!0;for(let t of i)if(r.indexOf(e[t])>=0&&t!==o){s=!1;break}if(s){e[o]=t,e[n]=a,c=!0;break}}}c||console.log("Error! Unable to swap anomaly to a free position.")}}else{let i=O.blankRed.filter(ys(t)),s=[];for(let t of i.filter(t=>e.indexOf(t)<0))O.all[t].wormhole.every(e=>O.all[a].wormhole.includes(e))&&O.all[a].wormhole.every(e=>O.all[t].wormhole.includes(e))&&s.push(t);if(this.shuffle(s),s.length>0&&!n.includes(a)&&(c=!0,e[o]=s[0]),!c&&l.length>0){for(let t of i){let n=e.indexOf(t);if(n>=0){let i=ss(e,n),s=!0;for(let t of i)if(r.indexOf(e[t])>=0&&t!==o){s=!1;break}if(s){e[o]=t,e[n]=a,c=!0;break}}}c||console.log("Error! Unable to swap anomaly to a free position.")}}}for(const s in N){const n=O[`${N[s]}Wormholes`].filter(ys(t));for(let a of n){let o=e.indexOf(a);if(o>=0&&0===O.all[a].planets.length){let i=ss(e,o),s=!1;for(let t of i)if(n.indexOf(e[t])>=0){s=!0;break}if(s){let i=O.blankRed.filter(ys(t));i=i.filter(function(e){return n.indexOf(e)<0}),i=this.shuffle(i);for(let t of i){let i=e.indexOf(t);if(i>=0){let s=ss(e,i),l=!0;for(let t of s)if(n.indexOf(e[t])>=0&&t!==o||r.indexOf(a)>=0&&r.indexOf(e[t])>=0){l=!1;break}if(l){e[o]=t,e[i]=a;break}}}}}}}}countAdjacencyViolations(e,t,n){let r=0;for(let a of t){let t=e[a];if(void 0===O.all[t])continue;let o=ss(e,a);if(n.indexOf(t)>=0)for(let a of o)if(n.indexOf(e[a])>=0){r+=1;break}if(O.all[t].wormhole.length>0&&0===O.all[t].planets.length)for(let n of o){let a=O.all[e[n]];if(void 0!==a&&a.wormhole.some(e=>O.all[t].wormhole.includes(e))){r+=1;break}}}return r}balanceSlices(e,t){const n=Vi.R7[this.state.currentNumberOfPlayers.toString()][this.state.currentBoardStyle],r=n.home_worlds,a=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;const r=new Set(t),a=t.map(t=>{const a=new Map;let o=[t];for(let i=1;i<=n;i++){const t=[];
2for(const n of o)for(const o of ss(e,n))cs(e,r,o)&&(a.has(o)||(a.set(o,i),t.push(o)));o=t}return a}),o=new Set;for(const s of a)for(const e of s.keys())o.add(e);const i=t.map(()=>({}));for(const s of o){let e=1/0;for(const n of a){const t=n.get(s);void 0!==t&&t<e&&(e=t)}const t=[];a.forEach((n,r)=>{n.get(s)===e&&t.push(r)});for(const n of t)i[n][s]=1/t.length}return i}(e,r);if(a.length<2)return;const o=O.anomaly.filter(ys(t)),i=new Set(this.props.lockedTiles.map(t=>e.indexOf(t)).filter(e=>e>=0)),s=["primary_tiles","secondary_tiles","tertiary_tiles"].map(t=>n[t].filter(t=>!i.has(t)&&void 0!==O.all[e[t]])).filter(e=>e.length>1);let l=hs(As(e,a));for(let c=0;c<200&&!(l<=0);c++){let t=null,n=l;for(let l of s)for(let r=0;r<l.length;r++)for(let i=r+1;i<l.length;i++){const s=l[r],c=l[i],u=new Set([s,c]);for(let t of ss(e,s))u.add(t);for(let t of ss(e,c))u.add(t);const A=this.countAdjacencyViolations(e,u,o),h=e[s];e[s]=e[c],e[c]=h;const d=hs(As(e,a)),p=d<n-1e-9&&this.countAdjacencyViolations(e,u,o)<=A;e[c]=e[s],e[s]=h,p&&(t=[s,c],n=d)}if(null===t)break;const[r,i]=t,c=e[r];e[r]=e[i],e[i]=c,l=n}}ensureWormholesForType(e,t,n,r){let{method:a="add"}=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=t.filter(e=>!O.blankRed.includes(e)),i=O.red.filter(ys(r)),s=[],l=i.filter(t=>!e.includes(t)),c=O.blue.filter(ys(r)).filter(e=>1===O.all[e].planets.length),u=[];for(let A in t)e.indexOf(t[A])<0?s.push(t[A]):u.push(t[A]);if(1===u.length)if("add"===a){s=this.shuffle(s);let t=[...O.wormholes].concat(n);if(o.indexOf(u[0])<0)s=o,t=t.concat(i);else{let e=[];for(let t of s)o.indexOf(t)<0&&e.push(t);s=e}e=this.reverseReplace(e,1,s,t,!1)}else if("remove"===a){const t=e.filter(e=>e!==u[0]);e=o.indexOf(u[0])<0?this.reverseReplace(e,1,l,t,!1):this.reverseReplace(e,1,c,t,!1)}return e}ensureAnomalies(e,t,n){e=e.slice(0,t);let r=2,a=1;switch(this.state.currentNumberOfPlayers){case 3:r=3,a=1;break;case 4:r=5,a=3;break;case 6:r=3,a=2}let o=t/(r+a)*a;if(o<0)return e;let i=O.red.filter(ys(n)),s=[];for(let l in i)e.indexOf(i[l])<0?s.push(i[l]):o-=1;return s=this.shuffle(s),this.reverseReplace(e,o,s,i,!1)}ensurePlanetTraitBalance(e,t,n){const r=O.wormholes.concat(t),a=[h.CULTURAL,h.INDUSTRIAL,h.HAZARDOUS].map(t=>{const r=O[`${t}Tiles`].filter(ys(n)),a=e.filter(e=>r.includes(e)).length,o=Math.ceil(e.length/3*.6);return{traitTiles:r,needed:o-a}}).sort((e,t)=>t.needed-e.needed);let o=e;for(const{traitTiles:i,needed:s}of a){if(s<=0)continue;const e=o,t=this.shuffle(i.filter(t=>!e.includes(t)));o=this.reverseReplace(e,s,t,r,!1)}return o}reverseReplace(e,t,n,r,a){a&&(e=e.reverse());let o=e.length-1;for(;t>0&&n.length>0&&o>0;){let a=e[o];r.indexOf(a)<0&&-1!==a&&18!==a&&0!==a&&(e[o]=n.shift(),t-=1),o-=1}return a&&(e=e.reverse()),e}getWeightedPlanetList(e,t,n){let r=[];for(let c in e)r.push([e[c],this.getWeight(e[c],t,n)]);r.sort(function(e,t){return t[1]-e[1]});let a=0,o=r[0][1],i=[],s=[];for(;a<r.length;){let e=r[a];e[1]>=o-this.state.shuffleThreshold?i.push(e):(i=this.shuffle(i),s=s.concat(i),i=[e],o=e[1]),a+=1}i=this.shuffle(i),s=s.concat(i);let l=[];for(let c in s)l.push(s[c][0]);return l}getWeight(e,t,n){let r=0,a=O.all[e.toString()];for(let o in a.planets){let e=a.planets[o];r+=e.resources/4*t.resource,r+=e.influence/4*t.influence,r+=t.planet_count/2,r+=e.specialty&&e.specialty.length>0?t.specialty:0}return"red"===a.type&&(r+=t.anomaly+40),r+=a.wormhole.length>0?t.wormhole:0,r+=n.indexOf(e)>-1?t.faction:0,r}toggleFanContentHelp(e){this.setState({fanContentHelp:!this.state.fanContentHelp})}toggleUnchartedSpaceHelp(e){this.setState({unchartedSpaceHelp:!this.state.unchartedSpaceHelp})}toggleDiscordantStarsHelp(e){this.setState({discordantStarsHelp:!this.state.discordantStarsHelp})}toggleAscendentSunHelp(e){this.setState({ascendentSunHelp:!this.state.ascendentSunHelp})}toggleFanHyperlanesHelp(e){this.setState({fanHyperlanesHelp:!this.state.fanHyperlanesHelp})}togglePickFactionsHelp(e){this.setState({pickFactionsHelp:!this.state.pickFactionsHelp})}toggleBoardStyleHelp(e){this.setState({boardStyleHelp:!this.state.boardStyleHelp})}togglePlacementStyleHelp(e){this.setState({placementStyleHelp:!this.state.placementStyleHelp})}togglePickStyleHelp(e){this.setState({pickStyleHelp:!this.state.pickStyleHelp})}toggleSetPlayerNamesHelp(e){this.setState({setPlayerNamesHelp:!this.state.setPlayerNamesHelp})}toggleSetFactionsHelp(e){this.setState({setFactionsHelp:!this.state.setFactionsHelp})}togglePickMultipleFactionsHelp(e){this.setState({pickMultipleFactionsHelp:!this.state.pickMultipleFactionsHelp})}toggleShufflePriorityHelp(e){this.setState({shufflePriorityHelp:!this.state.shufflePriorityHelp})}
2toggleReversePlacementOrderHelp(e){this.setState({reversePlacementOrderHelp:!this.state.reversePlacementOrderHelp})}toggleForceWormholesHelp(e){this.setState({forceWormholesHelp:!this.state.forceWormholesHelp})}toggleForceAnomaliesHelp(e){this.setState({forceAnomaliesHelp:!this.state.forceAnomaliesHelp})}toggleEnsureFactionAnomaliesHelp(e){this.setState({ensureFactionAnomaliesHelp:!this.state.ensureFactionAnomaliesHelp})}toggleBalancePlanetTraitsHelp(e){this.setState({balancePlanetTraitsHelp:!this.state.balancePlanetTraitsHelp})}toggleBalanceSlicesHelp(e){this.setState({balanceSlicesHelp:!this.state.balanceSlicesHelp})}toggleAdvancedSettings(e){this.setState({advancedSettingsOpen:!this.state.advancedSettingsOpen})}render(){return(0,r().jsxs)("div",{id:"options",className:this.props.visible?"":"d-none",children:[(0,r().jsx)("div",{className:"title",children:(0,r().jsx)("h4",{className:"text-center",children:"Generation Options"})}),(0,r().jsxs)($e,{id:"generateForm",onSubmit:this.generateBoard,children:[(0,r().jsx)($e.Group,{className:"mb-3 d-flex",controlId:"pokExpansion",children:(0,r().jsx)($e.Check,{name:"pokExpansion",type:"checkbox",checked:this.props.includedExpansions[E],onChange:this.updatePok,label:"Use POK Tiles"})}),(0,r().jsx)($e.Group,{className:"mb-3 d-flex",controlId:"useThundersEdge",children:(0,r().jsx)($e.Check,{name:"useThundersEdge",type:"checkbox",checked:this.props.includedExpansions[x],onChange:this.updateTE,label:"Use Thunder's Edge Tiles"})}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"fanContent",children:[(0,r().jsx)($e.Check,{name:"fanContent",type:"checkbox",checked:this.state.fanContent,onChange:this.handleInputChange,label:"Use Fan-Made Content"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleFanContentHelp})]}),(0,r().jsx)(Mi,{in:this.state.fanContent,children:(0,r().jsx)("div",{children:(0,r().jsxs)("div",{className:"card card-body",children:[(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"useUnchartedSpace",children:[(0,r().jsx)($e.Check,{name:"useUnchartedSpace",type:"checkbox",checked:this.props.includedExpansions[T],onChange:this.updateUncharted,label:"Use Uncharted Space Fan Tiles"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleUnchartedSpaceHelp})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"useDiscordantStars",children:[(0,r().jsx)($e.Check,{name:"useDiscordantStars",type:"checkbox",checked:this.props.includedExpansions[S],onChange:this.updateDS,label:"Use DS Fan Factions"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleDiscordantStarsHelp})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"useAscendentSun",children:[(0,r().jsx)($e.Check,{name:"useAscendentSun",type:"checkbox",checked:this.props.includedExpansions[F],onChange:this.updateSun,label:"Use Eronous' Fan Tiles"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleAscendentSunHelp})]}),(0,r().jsxs)($e.Group,{className:"d-flex",controlId:"useFanHyperlanes",children:[(0,r().jsx)($e.Check,{name:"useFanHyperlanes",type:"checkbox",checked:this.props.includedExpansions[k],onChange:this.updateFanHyp,label:"Use Async Hyperlane Tiles"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleFanHyperlanesHelp})]})]})})}),(0,r().jsxs)($e.Group,{className:"my-3",children:[(0,r().jsx)($e.Label,{children:"Number of Players"}),(0,r().jsx)($e.Select,{className:"form-control",id:"playerCount",name:"currentNumberOfPlayers",value:this.state.currentNumberOfPlayers,onChange:this.updatePlayerCount,children:this.state.currentNumberOfPlayersOptions.map(e=>(0,r().jsx)("option",{value:e,children:e},e))})]}),(0,r().jsxs)($e.Group,{className:"my-3",children:[(0,r().jsxs)($e.Label,{className:"d-flex",children:["Board Style",(0,r().jsx)(ut,{className:"icon",onClick:this.toggleBoardStyleHelp})]}),(0,r().jsx)($e.Select,{className:"form-control",id:"boardStyle",name:"currentBoardStyle",value:this.state.currentBoardStyle,onChange:this.updateBoardStyle,children:this.state.currentBoardStyleOptions.map(e=>(0,r().jsx)("option",{value:e,children:this.capitalize(e)},e))})]}),(0,r().jsxs)($e.Group,{className:"my-3",children:[(0,r().jsxs)($e.Label,{className:"d-flex",children:["Placement Style",(0,r().jsx)(ut,{className:"icon",onClick:this.togglePlacementStyleHelp})]}),(0,r().jsx)($e.Select,{className:"form-control",id:"placementStyle",name:"currentPlacementStyle",value:this.state.currentPlacementStyle,onChange:this.handleInputChange,children:this.state.optionsPossible.placementStyles.map(e=>(0,r().jsx)("option",{value:e,children:this.capitalize(e)},e))})]}),(0,r().jsxs)($e.Group,{className:"my-3",children:[(0,r().jsxs)($e.Label,{className:"d-flex",children:["System Weighting",(0,r().jsx)(ut,{className:"icon",onClick:this.togglePickStyleHelp})]}),(0,r().jsx)($e.Select,{className:"form-control",id:"pickStyle",name:"currentPickStyle",value:this.state.currentPickStyle,onChange:this.handleInputChange,children:this.state.optionsPossible.pickStyles.map(e=>(0,r().jsx)("option",{value:e,children:this.capitalize(e)},e))})]}),(0,r().jsx)("div",{className:"ml-2 collapse "+("custom"===this.state.currentPickStyle?"show":""),id:"customPickStyle",children:(0,r().jsxs)("div",{className:"card card-body",children:[(0,r().jsx)("label",{htmlFor:"customResource",children:"Resource"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"resourceWeight",value:this.state.resourceWeight,onChange:this.handleInputChange}),(0,r().jsx)("label",{htmlFor:"customInfluence",children:"Influence"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"influenceWeight",value:this.state.influenceWeight,onChange:this.handleInputChange}),(0,r().jsx)("label",{htmlFor:"customPlanetCount",children:"Planet Count"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"planetCountWeight",value:this.state.planetCountWeight,onChange:this.handleInputChange}),(0,r().jsx)("label",{htmlFor:"customSpecialty",children:"Specialty"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"specialtyWeight",value:this.state.specialtyWeight,onChange:this.handleInputChange}),(0,r().jsx)("label",{htmlFor:"customAnomaly",children:"Anomaly"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"anomalyWeight",value:this.state.anomalyWeight,onChange:this.handleInputChange}),(0,r().jsx)("label",{htmlFor:"customWormhole",children:"Wormhole"}),(0,r().jsx)("input",{type:"range",className:"custom-range",name:"wormholeWeight",value:this.state.wormholeWeight,onChange:this.handleInputChange})]})}),(0,r().jsxs)($e.Group,{className:"mb-3",controlId:"seed",children:[(0,r().jsx)($e.Label,{children:"Specific Seed"}),(0,r().jsx)($e.Control,{name:"updateSeed",type:"text",placeholder:"Enter a number to seed generation...",value:this.state.currentSeed,onChange:this.updateSeed})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"pickFactions",children:[(0,r().jsx)($e.Check,{name:"pickFactions",type:"checkbox",checked:this.props.pickFactions,onChange:this.handleInputChange,label:"Pick Factions for Players"}),(0,r().jsx)(ut,{className:"icon",onClick:this.togglePickFactionsHelp})]}),(0,r().jsx)(Mi,{in:this.state.pickFactions,children:(0,r().jsx)("div",{children:(0,r().jsxs)("div",{className:"card card-body",children:[(0,r().jsx)("button",{type:"button",className:"btn btn-outline-primary mb-2",onClick:this.toggleSetFactionsHelp,children:"Set Included Factions"}),(0,r().jsx)("button",{type:"button",className:"btn btn-outline-primary mb-2",onClick:this.toggleSetPlayerNamesHelp,children:"Set Player Names"}),(0,r().jsxs)($e.Group,{className:"d-flex",controlId:"ensureFactionAnomalies",children:[(0,r().jsx)($e.Check,{name:"ensureFactionAnomalies",type:"checkbox",checked:this.props.ensureFactionAnomalies,onChange:this.handleInputChange,label:"Ensure Faction Anomalies"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleEnsureFactionAnomaliesHelp})]})]})})}),(0,r().jsxs)("div",{className:"d-flex justify-content-between align-items-center my-3",style:{cursor:"pointer"},onClick:this.toggleAdvancedSettings,"aria-controls":"advancedSettings","aria-expanded":this.state.advancedSettingsOpen,children:[(0,r().jsx)("strong",{children:"Advanced Settings"}),this.state.advancedSettingsOpen?(0,r().jsx)(ki,{className:"icon"}):(0,r().jsx)(Qi,{className:"icon"})]}),(0,r().jsx)(Mi,{in:this.state.advancedSettingsOpen,children:(0,r().jsx)("div",{id:"advancedSettings",children:(0,r().jsxs)("div",{className:"card card-body",children:[(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"shuffleBoards",children:[(0,r().jsx)($e.Check,{name:"shuffleBoards",type:"checkbox",checked:this.props.shuffleBoards,onChange:this.handleInputChange,label:"Randomize Priorities Before Placement"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleShufflePriorityHelp})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"reversePlacementOrder",children:[(0,r().jsx)($e.Check,{name:"reversePlacementOrder",type:"checkbox",checked:this.props.reversePlacementOrder,onChange:this.handleInputChange,label:"Reverse Placement Order"}
2),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleReversePlacementOrderHelp})]}),(0,r().jsxs)($e.Group,{className:"d-flex",controlId:"forceWormholes",children:[(0,r().jsx)($e.Check,{name:"forceWormholes",type:"checkbox",checked:this.state.forceWormholes,onChange:this.handleInputChange,label:"Force Alpha and Beta Wormholes"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleForceWormholesHelp})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"forceAnomalies",children:[(0,r().jsx)($e.Check,{name:"forceAnomalies",type:"checkbox",checked:this.state.forceAnomalies,onChange:this.handleInputChange,label:"Force All Anomaly Types"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleForceAnomaliesHelp})]}),(0,r().jsxs)($e.Group,{className:"mb-3 d-flex",controlId:"balancePlanetTraits",children:[(0,r().jsx)($e.Check,{name:"balancePlanetTraits",type:"checkbox",checked:this.state.balancePlanetTraits,onChange:this.handleInputChange,label:"Balance Planet Traits"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleBalancePlanetTraitsHelp})]}),(0,r().jsxs)($e.Group,{className:"d-flex",controlId:"balanceSlices",children:[(0,r().jsx)($e.Check,{name:"balanceSlices",type:"checkbox",checked:this.state.balanceSlices,onChange:this.handleInputChange,label:"Balance Slices"}),(0,r().jsx)(ut,{className:"icon",onClick:this.toggleBalanceSlicesHelp})]})]})})}),(0,r().jsx)(ps,{visible:this.state.setPlayerNamesHelp,currentPlayerNames:this.props.currentPlayerNames,hideModal:this.toggleSetPlayerNamesHelp,handleNameChange:this.handleNameChange}),(0,r().jsx)(ms,{visible:this.state.setFactionsHelp,factions:this.state.optionsPossible.factions,includedExpansions:this.props.includedExpansions,pokFactions:this.state.optionsPossible.pokFactions,teFactions:this.state.optionsPossible.teFactions,dsFactions:this.state.optionsPossible.dsFactions,currentFactions:this.props.currentFactions,hideModal:this.toggleSetFactionsHelp,handleFactionsChange:this.handleFactionsChange}),(0,r().jsx)(nr,{visible:this.state.fanContentHelp,hideModal:this.toggleFanContentHelp,title:"About Fan-Made Content",content:`<p class="alert alert-warning">\n Highly experimental content ahead. Fan-made content is subject to change, and does not\n guarantee the same balance and quality as TI4 and its official expansions.\n </p>\n <p>\n Over the years, some fans have created additional content for the game that has become\n relatively popular. This option lets you add some of the more well-known fan system tiles\n during map generation.\n </p>\n <p class="mb-0">\n Fan content featured here is created to be compliant with the ${bs}.\n </p>`},"help-fan-content"),(0,r().jsx)(nr,{visible:this.state.unchartedSpaceHelp,hideModal:this.toggleUnchartedSpaceHelp,title:"About Uncharted Space",content:`<blockquote class="help-quote">\n A fan-made expansion for Twilight Imperium: Fourth Edition from the team responsible for\n Discordant Stars. The new content in this pack is intended to expand the variety of available\n system tiles, exploration effects, relics, and action cards, while preserving official game\n balance. This project has endeavored to fully comply with the ${bs}.\n </blockquote>\n <p>\n Only the new system tiles are relevant for this tool. This adds 24 system tiles, including\n 5 new legendary planets, some additional empty systems and anomalies to even out system\n distributions, and one gamma wormhole inside a gravity rift.\n </p>\n ${vs("https://docs.google.com/document/d/10sYWiwVNvdOwDMpvHlbsx4athKwgeTc8usWFMV3Aaas")}`},"help-uncharted-space"),(0,r().jsx)(nr,{visible:this.state.discordantStarsHelp,hideModal:this.toggleDiscordantStarsHelp,title:"About Discordant Stars",content:`<blockquote class="help-quote">\n A fan-made expansion for Twilight Imperium: Fourth Edition that adds 34 additional factions\n designed by and for the Twilight Imperium c
2ommunity. This project has endeavored to fully\n comply with the ${bs}.\n </blockquote>\n <p>\n This option only matters if you choose to pick factions for players. It adds these factions\n to the pool of random factions, includes their home systems in the graphics, and influences\n faction anomalies.\n </p>\n ${vs("https://docs.google.com/document/d/1214N4Py1NqvkQzFN5YULKiR7rmn1qpf4OdFqb8_vQUg")}`},"help-discordant-stars"),(0,r().jsx)(nr,{visible:this.state.ascendentSunHelp,hideModal:this.toggleAscendentSunHelp,title:"About Ascendant Sun",content:`<p>\n "Eronous Tiles" is a set of 130+ tiles created by Discord user and artist Eronous. They were\n initially made for the TI4 async bot, as part of large community games that required very\n large maps.\n </p>\n <p>\n This set includes 110 new planets, 12 of which are legendary, 6 new wormhole types, and\n 2 planets inside supernovas.\n </p>\n ${vs("https://docs.google.com/spreadsheets/d/1C1a8uc_DT21aPUUF5oQWNb0y9QYZHCVsE5rarEjB8kA")}`},"help-ascendent-sun"),(0,r().jsx)(nr,{visible:this.state.fanHyperlanesHelp,hideModal:this.toggleFanHyperlanesHelp,title:"About Async Hyperlanes",content:'<p class="mb-0">\n These are a set of hyperlane tiles that are part of the TI4 async bot, but aren\'t necessarily\n part of any particular fan expansion. Feel free to use them however you imagine.\n </p>'},"help-fan-hyperlanes"),(0,r().jsx)(nr,{visible:this.state.boardStyleHelp,hideModal:this.toggleBoardStyleHelp,title:"About Board Style",content:'<p>\n Board style changes how the tiles are actually laid out on a newly generated map.\n </p>\n <p class="mb-0">\n Changing this gives you different hex layouts, such as different patterns of tiles, usage of\n hyperlanes, or unorthodox placement of home worlds.\n </p>'},"help-board"),(0,r().jsx)(nr,{visible:this.state.placementStyleHelp,hideModal:this.togglePlacementStyleHelp,title:"About Placement Style",content:'<p>\n Placement style dictates where important tiles are placed. Most revolve around having at\n least one tile near the home system with good resources.\n </p>\n <ul class="mb-0">\n <li><b>Slice:</b> Places tiles like a normal player would. Prioritizes a good pathway to\n Mecatol, and filling in the area around the home system with good tiles.</li>\n <li><b>Initial:</b> Only guarantees a good tile right in front of the home system (on the way\n to Mecatol). Everything else is random.</li>\n <li><b>Home:</b> Prioritizes all of the tiles adjacent to the home system, and everything\n else is random.</li>\n <li><b>Random:</b> Shuffles the priority levels completely. No favoritism to tiles near the\n home system.</li>\n </ul>'},"help-placement"),(0,r().jsx)(nr,{visible:this.state.pickStyleHelp,hideModal:this.togglePickStyleHelp,title:"About Pick Style",content:'<p>
2\n Pick style determines how tiles are weighted when they are placed on the board. A higher\n weighted tile means that the hex is more important, and so (depending on the placement style)\n it is put closer to home worlds to facilitate available assets.\n </p>\n <ul class="mb-0">\n <li><b>Balanced:</b> A custom weight which favors resources and planet count more than\n anomalies. This more accurately factors in tech specialties and influence as trade-offs to\n the "Resource" pick.</li>\n <li><b>Resource:</b> Tiles are ordered primarily by their resource values. Higher resource\n planets are more coveted, and so are more important.</li>\n <li><b>Influence:</b> Similar to "Resource", but tiles are ordered primarily by their\n influence values.</li>\n <li><b>Random:</b> Tiles are completely randomly ordered. Expect chaotic and unbalanced\n maps.</li>\n <li><b>Custom:</b> Enter your own values for balancing trade-offs between various tile\n qualities.</li>\n </ul>'},"help-pick"),(0,r().jsx)(nr,{visible:this.state.pickFactionsHelp,hideModal:this.togglePickFactionsHelp,title:"About Picking Factions",content:'<p>\n Automatically assigns factions to the players on the board.\n </p>\n <p class="mb-0">\n From the set of factions, turning this on assigns every player a random faction (designated by\n giving them the home world tile of that faction). You should pick which player sits at a\n certain position before turning this on.\n </p>'},"help-factions"),(0,r().jsx)(nr,{visible:this.state.pickMultipleFactionsHelp,hideModal:this.togglePickMultipleFactionsHelp,title:"About Picking Multiple Factions",content:'<p>\n Divides all the factions evenly amongst the players in the game (with no overflow), so that\n they can choose from a selection instead of being assigned one faction.\n </p>\n <p class="mb-0">\n Some groups prefer to have a draft, where every player is given a few factions to pick\n between. This lets them play the faction they want, without conflicting with other players\n over a certain faction.\n </p>'},"help-multiple"),(0,r().jsx)(nr,{visible:this.state.shufflePriorityHelp,hideModal:this.toggleShufflePriorityHelp,title:"About Shuffling Priority",content:'<p>\n Randomizes the priority picks for each picking round.\n </p>\n <p>\n Normally when placing tiles, this tool attempts to place them so that player 1 does not always\n get the best tiles. To do this, it follows the game setup rules: in a 6 player game, player 1\n gets to place tiles 1 and 12, while player 6 places tiles 6 and 7.\n </p>\n <p class="mb-0">\n Turning this on stops that from happening, and instead completely randomizes the placement\n order.\n </p>'},"help-priority"),(0,r().jsx)(nr,{visible:this.state.reversePlacementOrderHelp,hideModal:this.toggleReversePlacementOrderHelp,title:"About Reverse Placement Order",content:'<p>\n Reverses which tiles are placed first in placement order.\n </p>\n <p class="mb-0">\n Tiles are normally placed in priority order (see the shuffling priority help). This reverses\n that order, so that the last picks come first, which generally has the effect of pushing the\n more valuable tiles towards the center of the galaxy.\n </p>'},"help-reverse"),(0,r().jsx)(nr,{visible:this.state.forceWormholesHelp,hideModal:this.toggleForceWormholesHelp,title:"About Forcing Alpha and Beta Wormholes",content:'<p>\n Normally, map generation randomly chooses a handful of wormhole types (out of all those\n eligible) to place on the board, which means Alpha and Beta wormholes are not guaranteed to\n show up, especially when fan-made wormhole types are enabled.\n </p>\n <p class="mb-0">\n Turning this on ensures that a pair of Alp
2ha wormholes and a pair of Beta wormholes are always\n included in the generated galaxy.\n </p>'},"help-force-wormholes"),(0,r().jsx)(nr,{visible:this.state.forceAnomaliesHelp,hideModal:this.toggleForceAnomaliesHelp,title:"About Forcing All Anomaly Types",content:'<p>\n Normally, which anomalies show up is left to chance, so a galaxy can easily end up with no\n nebula or no gravity rift at all. That is a problem for the factions built around a specific\n anomaly, like The Clan of Saar, The Embers of Muaat, The Empyrean and The Vuil\'Raith Cabal.\n </p>\n <p class="mb-0">\n Turning this on ensures at least one asteroid field, one supernova, one nebula and one gravity\n rift are included in the generated galaxy, whichever tile of that type gets picked. This\n applies no matter which factions are in the game, unlike Ensure Faction Anomalies.\n </p>'},"help-force-anomalies"),(0,r().jsx)(nr,{visible:this.state.balancePlanetTraitsHelp,hideModal:this.toggleBalancePlanetTraitsHelp,title:"About Balancing Planet Traits",content:'<p>\n Normally, the mix of Cultural, Industrial, and Hazardous planets on the board is left entirely\n to chance, which can occasionally leave one trait so scarce that a trait-based objective\n becomes nearly unscorable for most players.\n </p>\n <p class="mb-0">\n Turning this on tops up whichever trait is most underrepresented after generation, swapping in\n additional tiles of that trait so that all three remain reasonably achievable.\n </p>'},"help-balance-planet-traits"),(0,r().jsx)(nr,{visible:this.state.balanceSlicesHelp,hideModal:this.toggleBalanceSlicesHelp,title:"About Balancing Slices",content:'<p>\n Tiles are normally dealt out by how good they are, one to each player in\n turn, which evens out the <i>ranking</i> of what everybody gets but not its\n value. Two tiles next to each other in that ranking can be worth wildly\n different amounts, so it is easy to end up with one player sitting on twice\n the resources of another.\n </p>\n <p>\n Turning this on measures what each player can actually reach — the\n systems within two jumps of their home system, with contested systems split\n between everyone equally close to them — and swaps systems between\n slices until the resources, influence, planets, and anomalies are as even as\n they can be made.\n </p>\n <p class="mb-0">\n Systems are only ever swapped with others of the same importance to the\n board, and never in a way that puts two anomalies or two matching wormholes\n next to each other, so the shape and feel of the board style is kept intact.\n </p>'},"help-balance-slices"),(0,r().jsx)(nr,{visible:this.state.ensureFactionAnomaliesHelp,hideModal:this.toggleEnsureFactionAnomaliesHelp,title:"About Ensuring Faction Anomalies",content:'<p>\n Ensures that the corresponding beneficial anomaly is present in the galaxy for each of these\n factions.\n </p>\n <ul class="mb-0">\n <li><b>Muaat:</b> Supernova</li>\n <li><b>Saar:</b> Asteroid Field</li>\n <li><b>Empyrean:</b> Nebula</li>\n <li><b>Vuil\'Raith</b> and <b>Nivyn</b> (DS)<b>:</b> Gravity Rift</li>\n </ul>'},"help-faction-anomalies"),(0,r().jsx)(Wi,{type:"submit",className:"btn btn-primary",children:"Generate"})]})]})}}const Bs=ws,Cs=["#e63946","#4dd671","#4d94ff","#ffd23f","#b84dff","#ff944d","#4dd9ec","#ff6fc4"];class Ns extends a().Component{constructor(e){super(e),this.state={isOptionsMenuShowing:!0,overviewVisible:!0,extraTilesVisible:!1,moreInfoVisible:!1,backgroundAnimated:!0,showAllExtraTiles:!1,customMapBuilding:!1,tiles:[],unusedTiles:[],overlayVisible:!1,wormholeOverlayVisible:!1,
2closestPlayerOverlayVisible:!1,zoom:1,lastCall:0,mobileBreakpoint:700,isMobileView:!1,encodedOptions:"",includedExpansions:Object.fromEntries([[E,!1],[T,!1],[S,!1],[F,!1],[k,!1],[x,!1]]),currentPlayerNames:["","","","","","","",""],currentFactions:[...X.factions],lockedTiles:[],excludedTiles:[],includedTiles:[],tileClicked:-1,currentMobileHover:""},this.mapOptions=a().createRef(),this.map=a().createRef(),this.drawMap=this.drawMap.bind(this),this.onPopState=this.onPopState.bind(this),this.checkResize=this.checkResize.bind(this),this.updateTiles=this.updateTiles.bind(this),this.updateLockedTiles=this.updateLockedTiles.bind(this),this.updateInExcludedTiles=this.updateInExcludedTiles.bind(this),this.updateTileClicked=this.updateTileClicked.bind(this),this.updateFactions=this.updateFactions.bind(this),this.updatePlayerNames=this.updatePlayerNames.bind(this),this.updatePlayerNameOverlays=this.updatePlayerNameOverlays.bind(this),this.validateTiles=this.validateTiles.bind(this),this.toggleBackground=this.toggleBackground.bind(this),this.removeTrailing=this.removeTrailing.bind(this),this.getTileNumber=this.getTileNumber.bind(this),this.toggleOptionsMenu=this.toggleOptionsMenu.bind(this),this.toggleProphecyOfKings=this.toggleProphecyOfKings.bind(this),this.toggleUnchartedSpace=this.toggleUnchartedSpace.bind(this),this.toggleDiscordantStars=this.toggleDiscordantStars.bind(this),this.toggleAscendentSun=this.toggleAscendentSun.bind(this),this.toggleFanHyperlanes=this.toggleFanHyperlanes.bind(this),this.toggleThundersEdge=this.toggleThundersEdge.bind(this),this.toggleOverlay=this.toggleOverlay.bind(this),this.toggleWormholeOverlay=this.toggleWormholeOverlay.bind(this),this.toggleClosestPlayerOverlay=this.toggleClosestPlayerOverlay.bind(this),this.updateTileNumberOverlays=this.updateTileNumberOverlays.bind(this),this.toggleMoreInfo=this.toggleMoreInfo.bind(this),this.toggleExtraTiles=this.toggleExtraTiles.bind(this),this.toggleShowAllExtraTiles=this.toggleShowAllExtraTiles.bind(this),this.toggleCustomMapBuilding=this.toggleCustomMapBuilding.bind(this),this.showExtraTiles=this.showExtraTiles.bind(this),this.unsetAllTiles=this.unsetAllTiles.bind(this),this.zoomScroll=this.zoomScroll.bind(this),this.zoomPlusClick=this.zoomPlusClick.bind(this),this.zoomMinusClick=this.zoomMinusClick.bind(this),this.rotateClockwise=this.rotateClockwise.bind(this),this.rotateCounterClockwise=this.rotateCounterClockwise.bind(this),this.drag=this.drag.bind(this),this.drop=this.drop.bind(this),this.dragEnter=this.dragEnter.bind(this),this.dragLeave=this.dragLeave.bind(this),this.allowDrop=this.allowDrop.bind(this),this.handleDrop=this.handleDrop.bind(this),this.handleTouchMove=this.handleTouchMove.bind(this),this.handleTouchEnd=this.handleTouchEnd.bind(this)}componentDidMount(){this.$mapContainer=l()("#mainContent"),this.$tiMap=l()("#map"),window.onpopstate=this.onPopState,this.onPopState(),window.onresize=this.checkResize,this.checkResize(),document.addEventListener("mousedown",this.updateTileClicked),document.addEventListener("wheel",this.zoomScroll,!0)}componentWillUnmount(){window.onpopstate=()=>{},document.removeEventListener("mousedown",this.updateTileClicked),document.removeEventListener("wheel",this.zoomScroll)}checkResize(){window.innerWidth<this.state.mobileBreakpoint?this.state.isMobileView||(this.setState({isMobileView:!0,isOptionsMenuShowing:!1}),document.documentElement.style.setProperty("--options-width","0px")):(this.setState({isMobileView:!1,isOptionsMenuShowing:!0}),document.documentElement.style.setProperty("--options-width","400px")),this.drawMap()}onPopState(e){let t=new URL(document.location),n=t.searchParams.get("settings"),r=t.searchParams.get("tiles");const a=null!==r?this.validateTiles(r):[];null!==n&&void 0!==n&&""!==n?this.setState({encodedOptions:n},()=>{this.mapOptions.current.decodeSettings(n,a)}):a.length>0?this.setState({tiles:a},this.drawMap):this.setState({tiles:[]},this.drawMap)}updateTiles(e,t,n,r){r||(e=this.removeTrailing(e));let a="&tiles="+e.toString(),o=this.state.encodedOptions;void 0!==t?(a=this.state.lockedTiles.length>0||this.state.includedTiles.length>0?"?settings="+o+a:"?settings="+t,o=t):a="?settings="+o+a,(n||void 0===t)&&window.history.pushState({},null,window.location.pathname+a);let i=this.state.isOptionsMenuShowing;this.state.isMobileView&&(i=!1);let s=[];var l;s=s.concat(O.blue).concat(O.red).filter((l=this.state.includedExpansions,e=>(!O.pok.includes(e)||l[E])&&(!O.uncharted.includes(e)||l[T])&&(!O.sun.includes(e)||l[F])&&(!O.asyncLanes.includes(e)||l[k])&&(!O.te.includes(e)||l[x])));let c=[];for(let A of s)e.includes(A)||c.push(A);let u=this.state.tileClicked;
2n&&(u=-1),this.setState({tiles:e,unusedTiles:c,tileClicked:u,encodedOptions:o,isOptionsMenuShowing:i},()=>{this.showExtraTiles(),this.drawMap()})}updateLockedTiles(e){this.setState({lockedTiles:e})}updateTileClicked(e){"number"===typeof e||"mainContent"!==e.target.id&&"map"!==e.target.id?"number"===typeof e&&this.setState({tileClicked:e}):this.setState({tileClicked:-1})}updateInExcludedTiles(e,t){this.setState({includedTiles:e,excludedTiles:t})}removeTrailing(e){for(;-1===e[e.length-1]&&e.length>37;)e.pop();return e}validateTiles(e){"["===(e=e.replaceAll(" ","")).charAt(0)&&(e=e.substring(1,e.length)),"]"===e.charAt(e.length-1)&&(e=e.substring(0,e.length-1)),e=e.split(",");let t=[];for(let n of e)t.push(this.getTileNumber(n,!1,!0));return t}toggleOptionsMenu(){if(window.innerWidth>=this.state.mobileBreakpoint){let e=this.state.isOptionsMenuShowing?"0px":"400px";document.documentElement.style.setProperty("--options-width",e)}this.drawMap(),this.setState({isOptionsMenuShowing:!this.state.isOptionsMenuShowing})}toggleOverlay(){this.updateTileNumberOverlays(!this.state.overlayVisible),this.setState({overlayVisible:!this.state.overlayVisible})}toggleWormholeOverlay(){this.updateWormholeOverlays(!this.state.wormholeOverlayVisible),this.setState({wormholeOverlayVisible:!this.state.wormholeOverlayVisible})}toggleClosestPlayerOverlay(){let e=!this.state.closestPlayerOverlayVisible;this.updateClosestPlayerOverlays(e&&!this.state.customMapBuilding),this.setState({closestPlayerOverlayVisible:e})}updateTileNumberOverlays(e){for(let t=0;t<331;t++){let n=l()("#number-"+t);e?-1!==this.getTileNumber(this.state.tiles[t])||this.state.customMapBuilding?n.show():n.hide():0===this.state.tiles[t]&&this.state.moreInfoVisible||n.hide()}}updateWormholeOverlays(e){for(let t=0;t<331;t++){let n=l()("#wormhole-"+t);e?O.all[this.state.tiles[t]]&&O.all[this.state.tiles[t]].wormhole.length>0&&(-1!==this.getTileNumber(this.state.tiles[t])||this.state.customMapBuilding)&&(n.html(O.all[this.state.tiles[t]].wormhole.map(e=>U[e]).join(" ")),n.show()):n.hide()}}updateClosestPlayerOverlays(e){for(let t=0;t<331;t++){let n=l()("#closest-player-"+t);e&&(-1!==this.getTileNumber(this.state.tiles[t])||this.state.customMapBuilding)?n.show():n.hide()}}getHomePositions(){let e=[];for(let t=0;t<331;t++){let n=Number(this.state.tiles[t]);(0===n||!isNaN(n)&&n in X.homeSystemToFactionMap)&&e.push(t)}if(e.length>8){let t=ts(this.state.tiles.length);e=e.filter(e=>(e=>{let t=0;for(;e>3*t*(t+1)+1-1&&t<Gi;)t++;return t})(e)===t)}return e.sort((e,t)=>ns(e)-ns(t)||e-t),e}getDistancesFrom(e){let t=new Array(331).fill(1/0);t[e]=0;let n=[e];for(;n.length>0;){let e=n.shift();for(let r of ss(this.state.tiles,e))t[r]===1/0&&(t[r]=t[e]+1,n.push(r))}return t}getPlayerLabel(e){let t=this.state.currentPlayerNames[e];return void 0===t||""===t?"P"+(e+1):t}computeClosestPlayerLabels(){let e=this.getHomePositions(),t=new Array(331).fill("");
2if(0===e.length)return t;let n=e.map(e=>this.getDistancesFrom(e));for(let r=0;r<331;r++){let a=1/0;for(let t=0;t<e.length;t++)a=Math.min(a,n[t][r]);if(a===1/0)continue;let o=[];for(let t=0;t<e.length;t++)n[t][r]===a&&o.push(t);t[r]=o.map(t=>'<span style="color:'+Cs[t%Cs.length]+'">'+(e[t]===r?this.getPlayerLabel(t):String(a))+"</span>").join("/")}return t}toggleShowAllExtraTiles(){this.setState({showAllExtraTiles:!this.state.showAllExtraTiles},this.showExtraTiles)}unsetAllTiles(){this.setState({tileClicked:-1},()=>{this.updateTiles(new Array(this.state.tiles.length).fill(-1),void 0,!1,!0)})}toggleCustomMapBuilding(){this.setState({customMapBuilding:!this.state.customMapBuilding},()=>{this.updateTileNumberOverlays(this.state.customMapBuilding||this.state.overlayVisible),this.updateClosestPlayerOverlays(!this.state.customMapBuilding&&this.state.closestPlayerOverlayVisible),this.showExtraTiles(),this.drawMap()})}toggleProphecyOfKings(){const e=this.state.includedExpansions;e[E]=!e[E],this.setState({includedExpansions:e},this.showExtraTiles)}toggleUnchartedSpace(){const e=this.state.includedExpansions;e[T]=!e[T],this.setState({includedExpansions:e},this.showExtraTiles)}toggleAscendentSun(){const e=this.state.includedExpansions;e[F]=!e[F],this.setState({includedExpansions:e},this.showExtraTiles)}toggleFanHyperlanes(){const e=this.state.includedExpansions;e[k]=!e[k],this.setState({includedExpansions:e},this.showExtraTiles)}toggleThundersEdge(){const e=this.state.includedExpansions;e[x]=!e[x],this.setState({includedExpansions:e},this.showExtraTiles)}toggleDiscordantStars(){const e=this.state.includedExpansions;e[S]=!e[S],this.setState({includedExpansions:e},this.showExtraTiles)}toggleMoreInfo(e,t){t=void 0!==t&&t;let n=this.state.moreInfoVisible?"0px":"400px";document.documentElement.style.setProperty("--more-info-width",n);for(let r=0;r<331;r++)if(0===Number(this.state.tiles[r])&&!this.state.overlayVisible){let e=l()("#number-"+r);this.state.moreInfoVisible?e.hide():e.show()}this.setState({moreInfoVisible:!this.state.moreInfoVisible},()=>{this.state.extraTilesVisible&&!t&&this.toggleExtraTiles(e,!0)})}toggleExtraTiles(e,t){t=void 0!==t&&t,this.showExtraTiles();let n=this.state.extraTilesVisible?"0px":"250px";document.documentElement.style.setProperty("--extra-tiles-width",n),this.setState({extraTilesVisible:!this.state.extraTilesVisible},()=>{this.state.moreInfoVisible&&!t&&this.toggleMoreInfo(e,!0)})}showExtraTiles(){let e=[];var t;e=e.concat(O.blue).concat(O.red).concat(O.green).filter((t=this.state.includedExpansions,e=>(!O.pok.includes(e)||t[E])&&(!O.uncharted.includes(e)||t[T])&&(!O.sun.includes(e)||t[F])&&(!O.asyncLanes.includes(e)||t[k])&&(!O.te.includes(e)||t[x])&&(!O.ds.includes(e)||t[S]))),this.state.customMapBuilding&&(e=[-1,0].concat(e.concat(O.hyperlanes)));for(let n of e){let e=l()("#extra-"+n),t=l()("#extra-number-"+n);this.state.showAllExtraTiles||this.state.customMapBuilding?(e.show(),t.show()):this.state.tiles.includes(n)?(e.hide(),t.hide()):(e.show(),t.show())}l()(".extra-section").each(function(){const e=l()(this).find("img.tile").filter(function(){return"none"!==this.style.display}).length>0;l()(this).toggleClass("d-none",!e)})}
2toggleBackground(){this.state.backgroundAnimated?(l()("#stars").css("animation","staticStar 50s linear infinite"),l()("#stars2").css("animation","staticStar 100s linear infinite"),l()("#stars3").css("animation","staticStar 150s linear infinite")):(l()("#stars").css("animation","animateStar 50s linear infinite"),l()("#stars2").css("animation","animateStar 100s linear infinite"),l()("#stars3").css("animation","animateStar 150s linear infinite")),this.setState({backgroundAnimated:!this.state.backgroundAnimated})}zoomScroll(e){this.state.lastCall<Date.now()-200&&e.ctrlKey&&("mainContent"===e.target.id||"map"===e.target.id||"tile"===e.target.id.split("-")[0])&&(e.deltaY<0?this.state.zoom<3&&this.setState({zoom:this.state.zoom+.2,lastCall:Date.now()},this.drawMap):e.deltaY>0&&this.state.zoom>.5&&this.setState({zoom:this.state.zoom-.2,lastCall:Date.now()},this.drawMap))}zoomPlusClick(){this.state.zoom<3&&this.setState({zoom:this.state.zoom+.75},this.drawMap)}zoomMinusClick(){this.state.zoom>.5&&this.setState({zoom:this.state.zoom-.75},this.drawMap)}rotateHexGrid(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const t=e.length>0?e:this.state.tiles,n=e=>{var n;return null!==(n=t[e])&&void 0!==n?n:-1};let r=[n(0)],a=1;for(let o=1;o<=10;o++){const e=6*o;if(o>3&&t.length<=a)break;for(let t=0;t<e;t++){const i=a+(t+e-o)%e;r.push(n(i))}a+=e}return r}rotateHyperlaneTiles(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=[...e];for(let r=0;r<n.length;r++)if("string"===typeof n[r]){let e=1;if(n[r].includes("-")){e=(parseInt(n[r].split("-")[1])+t)%6}n[r]=`${n[r].split("-")[0]}-${e}`}return n}generateRotatedMap(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=[];for(let n=0;n<e;n++)t=0===n?this.rotateHexGrid():this.rotateHexGrid(t),t=this.rotateHyperlaneTiles(t);return t}rotateClockwise(){this.setState({tileClicked:-1},()=>{this.updateTiles(this.generateRotatedMap(),void 0,!1,!0)})}rotateCounterClockwise(){this.setState({tileClicked:-1},()=>{this.updateTiles(this.generateRotatedMap(5),void 0,!1,!0)})}updateFactions(e){this.setState({currentFactions:e})}updatePlayerNames(e){this.setState({currentPlayerNames:e},this.updatePlayerNameOverlays)}updatePlayerNameOverlays(){let e=this.getHomePositions();for(let t=0;t<331;t++){let n=e.indexOf(t),r=-1!==n?this.state.currentPlayerNames[n]:"",a=l()("#player-name-"+t);r?a.css("color",Cs[n%Cs.length]).html(r).show():a.hide()}}getTileNumber(e,t,n){if(void 0!==e){let r=/^((8[3-9]|90|91)[AB])-?([0-5])?$/gm.exec(e),a=/^(hyp.+?)-?([0-5])?$/gm.exec(e);if(r)return t?Number(r[2]):n?r[0]:r[1];if(a)return t?Number(a[2]):n?a[0]:a[1];return r=/^((?:er)?\d{1,4})-?([0-5])?$/gm.exec(e),r?r[1]:-1}return-1}drawMap(){if(void 0===this.state||this.state.tiles.length<=0)return void this.setState({overviewVisible:!0,mapVisible:!1,mapControlsVisible:!1});this.setState({overviewVisible:!1,mapVisible:!0,mapControlsVisible:!0});let e=ts(this.state.tiles.length),t=e<=4?9:2*e+1,n=t;[...Object.keys(O.all)].push(0);let r=this.$mapContainer.width()-0,a=this.$mapContainer.height()-0,o=Math.floor(r/n),i=Math.floor(a/t),s=Math.min(this.state.zoom*Math.min(o,Math.floor(364/317*i)),364),c=Math.floor(317/364*s);this.$tiMap.css("width",s*n).css("height",c*t);let u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gi,r=-t,a=.5*-e,o=.5*-t,i=.75*-e;const s=(e,t)=>[Math.round(a-t*i),Math.round(o+e*r+t*o)];let l=[s(0,0)];for(let c=1;c<=n;c++)for(const[e,t]of Yi(c))l.push(s(e,t));return l}(s,c),A=this.getHomePositions(),h=this.computeClosestPlayerLabels();for(let d=0;d<u.length;d++){let e=l()("#tile-"+d),r=l()("#tile-wrapper-"+d),a=l()("#number-"+d),o=l()("#wormhole-"+d),i=l()("#closest-player-"+d),p=l()("#player-name-"+d),f=l()("#underlay-"+d);if(this.state.tiles[d]>=0||"string"===typeof this.state.tiles[d]||this.state.customMapBuilding){if(e.css("left",0).css("top",0).css({transform:"rotate(0)"}).show(),r.css("width",s).css("height",c).css("margin-left",u[d][0]).css("margin-top",u[d][1]).css("left",n/2*s).css("top",t/2*c).show(),"string"===typeof this.state.tiles[d]&&"0"!==this.state.tiles[d].split("-")[1]){let t=60*Number(this.state.tiles[d].split("-")[1]);e.css({transform:"rotate("+t+"deg)"})}}else e.hide();a.css("margin-left","-10px").css("top",c/2-10).html(this.getTileNumber(this.state.tiles[d])),o.css("margin-left","-10px").css("top",c/2-23).css("font-size","2rem").html(""),i.css("margin-left","-10px").css("top",c/2-10).html(h[d]),f.css("width",s+6).css("height",c+6).css("margin-left","-3px").css("margin-top","-3px");let m=A.indexOf(d),y=-1!==m?this.state.currentPlayerNames[m]:"";y?p.css("margin-left","-10px").css("top",c/2-10).css("color",Cs[m%Cs.length]).html(y).show():p.hide()}this.$tiMap.removeClass("center-map"),this.$tiMap.removeClass("center-map-vertical"),this.$tiMap.removeClass("center-map-horizontal"),this.state.zoom>1?(s*n<r?this.$tiMap.addClass("center-map-horizontal"):c*t<a&&this.$tiMap.addClass("center-map-vertical"),l()("#tile-0").get(0).scrollIntoView({behavior:"smooth",block:"center",inline:"center"})):this.$tiMap.addClass("center-map")}allowDrop(e){e.preventDefault()}dragEnter(e){let t=l()("#"+e.target.id),n=l()("#underlay-"+e.target.id.split("-")[1]);t.addClass("tile-target"),n.addClass("underlay-target")}dragLeave(e){let t=l()("#"+e.target.id),n=l()("#underlay-"+e.target.id.split("-")[1]);t.removeClass("tile-target"),n.removeClass("underlay-target")}drag(e){e.dataTransfer.setData("text",e.target.id)}drop(e){e.preventDefault();let t=e.dataTransfer.getData("text"),n=e.target.id;this.handleDrop(n,t)}handleDrop(e,t){console.log(e,t);let n=l()("#"+e),r=l()("#"+t),a=l()("#underlay-"+e.split("-")[1]),o=e.split("-")[0],i=t.split("-")[0],s=e.slice(e.indexOf("-")+1),c=t.slice(t.indexOf("-")+1);console.log(s,c);let u=[...this.state.tiles];console.log(this.getTileNumber(c));let A=!0;if("tile"===i&&"tile"===o){let e=u[s];u[s]=u[c],u[c]=e}else if("extra"===i&&"tile"===o){let e=u[s];u[s]=this.getTileNumber(c),this.state.showAllExtraTiles||this.state.customMapBuilding?A=!1:r.attr("id","extra-"+e)}else if("tile"===i&&"extra"===o){let e=u[c];u[c]=this.getTileNumber(s),this.state.showAllExtraTiles||this.state.customMapBuilding?A=!1:n.attr("id","extra-"+e)}else this.state.showAllExtraTiles||this.state.customMapBuilding?A=!1:(n.attr("id","extra-"+c),r.attr("id","extra-"+s));if(A){let e=n.attr("src");n.attr("src",r.attr("src")),r.attr("src",e)}n.removeClass("tile-target"),a.removeClass("underlay-target"),this.state.customMapBuilding&&(u=Array.from(u,e=>"undefined"===typeof e?-1:e)),this.setState({tileClicked:-1},()=>{this.updateTiles(u)})}handleTouchMove(e){let t=e.changedTouches[0],n=document.elementFromPoint(t.clientX,t.clientY);if(void 0!==n.id&&""!==n.id&&n.id!==this.state.currentMobileHover){let e=l()("#"+n.id),t=l()("#underlay-"+n.id.split("-")[1]);if(e.addClass("tile-target"),t.addClass("underlay-target"),""!==this.state.currentMobileHover){let e=l()("#"+this.state.currentMobileHover),t=l()("#underlay-"+this.state.currentMobileHover.split("-")[1]);e.removeClass("tile-target"),t.removeClass("underlay-target")}this.setState({currentMobileHover:n.id,tileClicked:-1})}}handleTouchEnd(e){e.stopPropagation();let t=e.changedTouches[0],n=document.elementFromPoint(t.clientX,t.clientY);if(this.handleDrop(e.target.id,n.id),""!==this.state.currentMobileHover){let e=l()("#"+this.state.currentMobileHover),t=l()("#underlay-"+this.state.currentMobileHover.split("-")[1]);e.removeClass("tile-target"),t.removeClass("underlay-target"),this.setState({currentMobileHover:"",tileClicked:-1})}}render(){return(0,r().jsxs)("div",{children:[(0,r().jsxs)("div",{id:"mainContent",className:"justify-content-center align-items-center",onClick:this.updateTileClicked,children:[(0,r().jsx)(so,{visible:this.state.overviewVisible}),(0,r().jsx)(vo,{visible:this.state.mapVisible,overlayVisible:this.state.overlayVisible,tiles:this.state.tiles,ref:this.map,unusedTiles:this.state.unusedT
2iles,updateTiles:this.updateTiles,lockedTiles:this.state.lockedTiles,updateLockedTiles:this.updateLockedTiles,includedTiles:this.state.includedTiles,updateInExcludedTiles:this.updateInExcludedTiles,excludedTiles:this.state.excludedTiles,tileClicked:this.state.tileClicked,updateTileClicked:this.updateTileClicked,getTileNumber:this.getTileNumber,drag:this.drag,drop:this.drop,dragEnter:this.dragEnter,dragLeave:this.dragLeave,allowDrop:this.allowDrop,touchEnd:this.handleTouchEnd,touchMove:this.handleTouchMove})]}),(0,r().jsx)(Ei,{visible:this.state.isOptionsMenuShowing,isMobileView:this.state.isMobileView,toggleOptions:this.toggleOptionsMenu}),(0,r().jsx)(di,{visible:this.state.mapControlsVisible,extraTilesVisible:this.state.extraTilesVisible,moreInfoVisible:this.state.moreInfoVisible,overlayVisible:this.state.overlayVisible,wormholeOverlayVisible:this.state.wormholeOverlayVisible,closestPlayerOverlayVisible:this.state.closestPlayerOverlayVisible,tiles:this.state.tiles,map:this.map,toggleOverlay:this.toggleOverlay,toggleWormholeOverlay:this.toggleWormholeOverlay,toggleClosestPlayerOverlay:this.toggleClosestPlayerOverlay,toggleMoreInfo:this.toggleMoreInfo,toggleExtraTiles:this.toggleExtraTiles,zoomPlus:this.zoomPlusClick,zoomMinus:this.zoomMinusClick,rotateClockwise:this.rotateClockwise,rotateCounterClockwise:this.rotateCounterClockwise,toggleBackgroun
2d:this.toggleBackground,updateTiles:this.updateTiles,removeTrailing:this.removeTrailing}),(0,r().jsx)(Ia,{visible:this.state.extraTilesVisible,overlayVisible:this.state.overlayVisible,includedExpansions:this.state.includedExpansions,showAllExtraTiles:this.state.showAllExtraTiles,customMapBuilding:this.state.customMapBuilding,updateTiles:this.updateTiles,showExtraTiles:this.showExtraTiles,toggleShowAllExtraTiles:this.toggleShowAllExtraTiles,toggleCustomMapBuilding:this.toggleCustomMapBuilding,unsetAllTiles:this.unsetAllTiles,drag:this.drag,drop:this.drop,dragEnter:this.dragEnter,dragLeave:this.dragLeave,allowDrop:this.allowDrop}),(0,r().jsx)(ce,{visible:this.state.moreInfoVisible,currentPlayerNames:this.state.currentPlayerNames,tiles:this.state.tiles,getTileNumber:this.getTileNumber}),(0,r().jsx)(Bs,{visible:this.state.isOptionsMenuShowing,includedExpansions:this.state.includedExpansions,currentPlayerNames:this.state.currentPlayerNames,currentFactions:this.state.currentFactions,tiles:this.state.tiles,includedTiles:this.state.includedTiles,excludedTiles:this.state.excludedTiles,lockedTiles:this.state.lockedTiles,ref:this.mapOptions,toggleProphecyOfKings:this.toggleProphecyOfKings,toggleUnchartedSpace:this.toggleUnchartedSpace,toggleDiscordantStars:this.toggleDiscordantStars,toggleAscendentSun:this.toggleAscendentSun,toggleFanHyperlanes:this.toggleFanHyperlanes,toggleThundersEdge:this.toggleThundersEdge,updateTiles:this.updateTiles,showExtraTiles:this.showExtraTiles,updateFactions:this.updateFactions,updatePlayerNames:this.updatePlayerNames}),(0,r().jsx)(Fa,{id:"tooltip"}),(0,r().jsx)(u,{})]})}}const Es=Ns,xs=e=>{e&&e instanceof Function&&n.e(422).then(()=>n(422)).then(t=>{let{getCLS:n,getFID:r,getFCP:a,getLCP:o,getTTFB:i}=t;n(e),r(e),a(e),o(e),i(e)})};(0,e().H)(document.getElementById("root")).render((0,r().jsx)(a().StrictMode,{children:(0,r().jsx)(Es,{})})),xs()})()})(); 3//# sourceMappingURL=main.140a26c3.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.