iwmlib/dist/iwmlib.3rdparty.min.js

1 line
1.9 MiB
Raw Blame History

var e;!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(T,e){"use strict";var t=[],S=T.document,n=Object.getPrototypeOf,s=t.slice,m=t.concat,u=t.push,i=t.indexOf,r={},o=r.toString,g=r.hasOwnProperty,a=g.toString,c=a.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},_=function(e){return null!=e&&e===e.window},l={type:!0,src:!0,noModule:!0};function b(e,t,r){var n,i=(t=t||S).createElement("script");if(i.text=e,r)for(n in l)r[n]&&(i[n]=r[n]);t.head.appendChild(i).parentNode.removeChild(i)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?r[o.call(e)]||"object":typeof e}var M=function(e,t){return new M.fn.init(e,t)},f=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,r=x(e);return!y(e)&&!_(e)&&("array"===r||0===t||"number"==typeof t&&0<t&&t-1 in e)}M.fn=M.prototype={jquery:"3.3.1",constructor:M,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=M.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return M.each(this,e)},map:function(r){return this.pushStack(M.map(this,function(e,t){return r.call(e,t,e)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,r=+e+(e<0?t:0);return this.pushStack(0<=r&&r<t?[this[r]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:t.sort,splice:t.splice},M.extend=M.fn.extend=function(){var e,t,r,n,i,o,a=arguments[0]||{},s=1,u=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=a[t],a!==(n=e[t])&&(c&&n&&(M.isPlainObject(n)||(i=Array.isArray(n)))?(o=i?(i=!1,r&&Array.isArray(r)?r:[]):r&&M.isPlainObject(r)?r:{},a[t]=M.extend(c,o,n)):void 0!==n&&(a[t]=n));return a},M.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,r;return!(!e||"[object Object]"!==o.call(e))&&(!(t=n(e))||"function"==typeof(r=g.call(t,"constructor")&&t.constructor)&&a.call(r)===c)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){b(e)},each:function(e,t){var r,n=0;if(h(e))for(r=e.length;n<r&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(f,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(h(Object(e))?M.merge(r,"string"==typeof e?[e]:e):u.call(r,e)),r},inArray:function(e,t,r){return null==t?-1:i.call(t,e,r)},merge:function(e,t){for(var r=+t.length,n=0,i=e.length;n<r;n++)e[i++]=t[n];return e.length=i,e},grep:function(e,t,r){for(var n=[],i=0,o=e.length,a=!r;i<o;i++)!t(e[i],i)!=a&&n.push(e[i]);return n},map:function(e,t,r){var n,i,o=0,a=[];if(h(e))for(n=e.length;o<n;o++)null!=(i=t(e[o],o,r))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,r))&&a.push(i);return m.apply([],a)},guid:1,support:v}),"function"==typeof Symbol&&(M.fn[Symbol.iterator]=t[Symbol.iterator]),M.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){r["[object "+t+"]"]=t.toLowerCase()});var d=function(r){var e,d,b,o,i,p,f,m,x,u,c,w,T,a,S,g,s,l,v,M="sizzle"+1*new Date,y=r.document,P=0,n=0,h=ae(),_=ae(),E=ae(),C=function(e,t){return e===t&&(c=!0),0},k={}.hasOwnProperty,t=[],A=t.pop,O=t.push,R=t.push,I=t.slice,D=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",j="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+N+"*("+j+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+j+"))|)"+N+"*\\]",B=":("+j+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(N+"+","g"),U=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),X=new RegExp("^"+N+"*,"+N+"*"),q=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),H=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),Y=new RegExp(B),G=new RegExp("^"+j+"$"),W={ID:new RegExp("^#("+j+")"),CLASS:new RegExp("^\\.("+j+")"),TAG:new RegExp("^("+j+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+B),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,$=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),ee=function(e,t,r){var n="0x"+t-65536;return n!=n||r?t:n<0?String.fromCharCode(65536+n):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){w()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{R.apply(t=I.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(e){R={apply:t.length?function(e,t){O.apply(e,I.call(t))}:function(e,t){for(var r=e.length,n=0;e[r++]=t[n++];);e.length=r-1}}}function oe(e,t,r,n){var i,o,a,s,u,c,l,f=t&&t.ownerDocument,h=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return r;if(!n&&((t?t.ownerDocument||t:y)!==T&&w(t),t=t||T,S)){if(11!==h&&(u=Z.exec(e)))if(i=u[1]){if(9===h){if(!(a=t.getElementById(i)))return r;if(a.id===i)return r.push(a),r}else if(f&&(a=f.getElementById(i))&&v(t,a)&&a.id===i)return r.push(a),r}else{if(u[2])return R.apply(r,t.getElementsByTagName(e)),r;if((i=u[3])&&d.getElementsByClassName&&t.getElementsByClassName)return R.apply(r,t.getElementsByClassName(i)),r}if(d.qsa&&!E[e+" "]&&(!g||!g.test(e))){if(1!==h)f=t,l=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,re):t.setAttribute("id",s=M),o=(c=p(e)).length;o--;)c[o]="#"+s+" "+ve(c[o]);l=c.join(","),f=Q.test(e)&&me(t.parentNode)||t}if(l)try{return R.apply(r,f.querySelectorAll(l)),r}catch(e){}finally{s===M&&t.removeAttribute("id")}}}return m(e.replace(U,"$1"),t,r,n)}function ae(){var n=[];return function e(t,r){return n.push(t+" ")>b.cacheLength&&delete e[n.shift()],e[t+" "]=r}}function se(e){return e[M]=!0,e}function ue(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var r=e.split("|"),n=r.length;n--;)b.attrHandle[r[n]]=t}function le(e,t){var r=t&&e,n=r&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(r)for(;r=r.nextSibling;)if(r===t)return-1;return e?1:-1}function fe(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(r){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===r}}function de(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ie(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function pe(a){return se(function(o){return o=+o,se(function(e,t){for(var r,n=a([],e.length,o),i=n.length;i--;)e[r=n[i]]&&(e[r]=!(t[r]=e[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in d=oe.support={},i=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},w=oe.setDocument=function(e){var t,r,n=e?e.ownerDocument||e:y;return n!==T&&9===n.nodeType&&n.documentElement&&(a=(T=n).documentElement,S=!i(T),y!==T&&(r=T.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ne,!1):r.attachEvent&&r.attachEvent("onunload",ne)),d.attributes=ue(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ue(function(e){return e.appendChild(T.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=J.test(T.getElementsByClassName),d.getById=ue(function(e){return a.appendChild(e).id=M,!T.getElementsByName||!T.getElementsByName(M).length}),d.getById?(b.filter.ID=function(e){var t=e.replace($,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var r=t.getElementById(e);return r?[r]:[]}}):(b.filter.ID=function(e){var r=e.replace($,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===r}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&S){var r,n,i,o=t.getElementById(e);if(o){if((r=o.getAttributeNode("id"))&&r.value===e)return[o];for(i=t.getElementsByName(e),n=0;o=i[n++];)if((r=o.getAttributeNode("id"))&&r.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var r,n=[],i=0,o=t.getElementsByTagName(e);if("*"!==e)return o;for(;r=o[i++];)1===r.nodeType&&n.push(r);return n},b.find.CLASS=d.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&S)return t.getElementsByClassName(e)},s=[],g=[],(d.qsa=J.test(T.querySelectorAll))&&(ue(function(e){a.appendChild(e).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+M+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||g.push(".#.+[+~]")}),ue(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(d.matchesSelector=J.test(l=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ue(function(e){d.disconnectedMatch=l.call(e,"*"),l.call(e,"[s!='']:x"),s.push("!=",B)}),g=g.length&&new RegExp(g.join("|")),s=s.length&&new RegExp(s.join("|")),t=J.test(a.compareDocumentPosition),v=t||J.test(a.contains)?function(e,t){var r=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(r.contains?r.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},C=t?function(e,t){if(e===t)return c=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===r?e===T||e.ownerDocument===y&&v(y,e)?-1:t===T||t.ownerDocument===y&&v(y,t)?1:u?D(u,e)-D(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return c=!0,0;var r,n=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===T?-1:t===T?1:i?-1:o?1:u?D(u,e)-D(u,t):0;if(i===o)return le(e,t);for(r=e;r=r.parentNode;)a.unshift(r);for(r=t;r=r.parentNode;)s.unshift(r);for(;a[n]===s[n];)n++;return n?le(a[n],s[n]):a[n]===y?-1:s[n]===y?1:0}),T},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==T&&w(e),t=t.replace(H,"='$1']"),d.matchesSelector&&S&&!E[t+" "]&&(!s||!s.test(t))&&(!g||!g.test(t)))try{var r=l.call(e,t);if(r||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return 0<oe(t,T,null,[e]).length},oe.contains=function(e,t){return(e.ownerDocument||e)!==T&&w(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==T&&w(e);var r=b.attrHandle[t.toLowerCase()],n=r&&k.call(b.attrHandle,t.toLowerCase())?r(e,t,!S):void 0;return void 0!==n?n:d.attributes||!S?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},oe.escape=function(e){return(e+"").replace(te,re)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],n=0,i=0;if(c=!d.detectDuplicates,u=!d.sortStable&&e.slice(0),e.sort(C),c){for(;t=e[i++];)t===e[i]&&(n=r.push(i));for(;n--;)e.splice(r[n],1)}return u=null,e},o=oe.getText=function(e){var t,r="",n=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=o(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[n++];)r+=o(t);return r},(b=oe.selectors={cacheLength:50,createPseudo:se,match:W,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($,ee),e[3]=(e[3]||e[4]||e[5]||"").replace($,ee),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,r=!e[6]&&e[2];return W.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":r&&Y.test(r)&&(t=p(r,!0))&&(t=r.indexOf(")",r.length-t)-r.length)&&(e[0]=e[0].slice(0,t),e[2]=r.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace($,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+N+")"+e+"("+N+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(r,n,i){return function(e){var t=oe.attr(e,r);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(z," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,e,t,m,g){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),_="of-type"===e;return 1===m&&0===g?function(e){return!!e.parentNode}:function(e,t,r){var n,i,o,a,s,u,c=v!=y?"nextSibling":"previousSibling",l=e.parentNode,f=_&&e.nodeName.toLowerCase(),h=!r&&!_,d=!1;if(l){if(v){for(;c;){for(a=e;a=a[c];)if(_?a.nodeName.toLowerCase()===f:1===a.nodeType)return!1;u=c="only"===p&&!u&&"nextSibling"}return!0}if(u=[y?l.firstChild:l.lastChild],y&&h){for(d=(s=(n=(i=(o=(a=l)[M]||(a[M]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===P&&n[1])&&n[2],a=s&&l.childNodes[s];a=++s&&a&&a[c]||(d=s=0)||u.pop();)if(1===a.nodeType&&++d&&a===e){i[p]=[P,s,d];break}}else if(h&&(d=s=(n=(i=(o=(a=e)[M]||(a[M]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]||[])[0]===P&&n[1]),!1===d)for(;(a=++s&&a&&a[c]||(d=s=0)||u.pop())&&((_?a.nodeName.toLowerCase()!==f:1!==a.nodeType)||!++d||(h&&((i=(o=a[M]||(a[M]={}))[a.uniqueID]||(o[a.uniqueID]={}))[p]=[P,d]),a!==e)););return(d-=g)===m||d%m==0&&0<=d/m}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return a[M]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,t){for(var r,n=a(e,o),i=n.length;i--;)e[r=D(e,n[i])]=!(t[r]=n[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:se(function(e){var n=[],i=[],s=f(e.replace(U,"$1"));return s[M]?se(function(e,t,r,n){for(var i,o=s(e,null,n,[]),a=e.length;a--;)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,r){return n[0]=e,s(n,null,r,i),n[0]=null,!i.pop()}}),has:se(function(t){return function(e){return 0<oe(t,e).length}}),contains:se(function(t){return t=t.replace($,ee),function(e){return-1<(e.textContent||e.innerText||o(e)).indexOf(t)}}),lang:se(function(r){return G.test(r||"")||oe.error("unsupported lang: "+r),r=r.replace($,ee).toLowerCase(),function(e){var t;do{if(t=S?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===r||0===t.indexOf(r+"-")}while((e=e.parentNode)&&1===e.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===a},focus:function(e){return e===T.activeElement&&(!T.hasFocus||T.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:de(!1),disabled:de(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!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!b.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,r){return[r<0?r+t:r]}),even:pe(function(e,t){for(var r=0;r<t;r+=2)e.push(r);return e}),odd:pe(function(e,t){for(var r=1;r<t;r+=2)e.push(r);return e}),lt:pe(function(e,t,r){for(var n=r<0?r+t:r;0<=--n;)e.push(n);return e}),gt:pe(function(e,t,r){for(var n=r<0?r+t:r;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=fe(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=he(e);function ge(){}function ve(e){for(var t=0,r=e.length,n="";t<r;t++)n+=e[t].value;return n}function ye(s,e,t){var u=e.dir,c=e.next,l=c||u,f=t&&"parentNode"===l,h=n++;return e.first?function(e,t,r){for(;e=e[u];)if(1===e.nodeType||f)return s(e,t,r);return!1}:function(e,t,r){var n,i,o,a=[P,h];if(r){for(;e=e[u];)if((1===e.nodeType||f)&&s(e,t,r))return!0}else for(;e=e[u];)if(1===e.nodeType||f)if(i=(o=e[M]||(e[M]={}))[e.uniqueID]||(o[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[u]||e;else{if((n=i[l])&&n[0]===P&&n[1]===h)return a[2]=n[2];if((i[l]=a)[2]=s(e,t,r))return!0}return!1}}function _e(i){return 1<i.length?function(e,t,r){for(var n=i.length;n--;)if(!i[n](e,t,r))return!1;return!0}:i[0]}function be(e,t,r,n,i){for(var o,a=[],s=0,u=e.length,c=null!=t;s<u;s++)(o=e[s])&&(r&&!r(o,n,i)||(a.push(o),c&&t.push(s)));return a}function xe(d,p,m,g,v,e){return g&&!g[M]&&(g=xe(g)),v&&!v[M]&&(v=xe(v,e)),se(function(e,t,r,n){var i,o,a,s=[],u=[],c=t.length,l=e||function(e,t,r){for(var n=0,i=t.length;n<i;n++)oe(e,t[n],r);return r}(p||"*",r.nodeType?[r]:r,[]),f=!d||!e&&p?l:be(l,s,d,r,n),h=m?v||(e?d:c||g)?[]:t:f;if(m&&m(f,h,r,n),g)for(i=be(h,u),g(i,[],r,n),o=i.length;o--;)(a=i[o])&&(h[u[o]]=!(f[u[o]]=a));if(e){if(v||d){if(v){for(i=[],o=h.length;o--;)(a=h[o])&&i.push(f[o]=a);v(null,h=[],i,n)}for(o=h.length;o--;)(a=h[o])&&-1<(i=v?D(e,a):s[o])&&(e[i]=!(t[i]=a))}}else h=be(h===t?h.splice(c,h.length):h),v?v(null,t,h,n):R.apply(t,h)})}function we(e){for(var i,t,r,n=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=ye(function(e){return e===i},a,!0),c=ye(function(e){return-1<D(i,e)},a,!0),l=[function(e,t,r){var n=!o&&(r||t!==x)||((i=t).nodeType?u(e,t,r):c(e,t,r));return i=null,n}];s<n;s++)if(t=b.relative[e[s].type])l=[ye(_e(l),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[M]){for(r=++s;r<n&&!b.relative[e[r].type];r++);return xe(1<s&&_e(l),1<s&&ve(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(U,"$1"),t,s<r&&we(e.slice(s,r)),r<n&&we(e=e.slice(r)),r<n&&ve(e))}l.push(t)}return _e(l)}return ge.prototype=b.filters=b.pseudos,b.setFilters=new ge,p=oe.tokenize=function(e,t){var r,n,i,o,a,s,u,c=_[e+" "];if(c)return t?0:c.slice(0);for(a=e,s=[],u=b.preFilter;a;){for(o in r&&!(n=X.exec(a))||(n&&(a=a.slice(n[0].length)||a),s.push(i=[])),r=!1,(n=q.exec(a))&&(r=n.shift(),i.push({value:r,type:n[0].replace(U," ")}),a=a.slice(r.length)),b.filter)!(n=W[o].exec(a))||u[o]&&!(n=u[o](n))||(r=n.shift(),i.push({value:r,type:o,matches:n}),a=a.slice(r.length));if(!r)break}return t?a.length:a?oe.error(e):_(e,s).slice(0)},f=oe.compile=function(e,t){var r,n=[],i=[],o=E[e+" "];if(!o){for(t||(t=p(e)),r=t.length;r--;)(o=we(t[r]))[M]?n.push(o):i.push(o);(o=E(e,function(g,v){var y=0<v.length,_=0<g.length,e=function(e,t,r,n,i){var o,a,s,u=0,c="0",l=e&&[],f=[],h=x,d=e||_&&b.find.TAG("*",i),p=P+=null==h?1:Math.random()||.1,m=d.length;for(i&&(x=t===T||t||i);c!==m&&null!=(o=d[c]);c++){if(_&&o){for(a=0,t||o.ownerDocument===T||(w(o),r=!S);s=g[a++];)if(s(o,t||T,r)){n.push(o);break}i&&(P=p)}y&&((o=!s&&o)&&u--,e&&l.push(o))}if(u+=c,y&&c!==u){for(a=0;s=v[a++];)s(l,f,t,r);if(e){if(0<u)for(;c--;)l[c]||f[c]||(f[c]=A.call(n));f=be(f)}R.apply(n,f),i&&!e&&0<f.length&&1<u+v.length&&oe.uniqueSort(n)}return i&&(P=p,x=h),l};return y?se(e):e}(i,n))).selector=e}return o},m=oe.select=function(e,t,r,n){var i,o,a,s,u,c="function"==typeof e&&e,l=!n&&p(e=c.selector||e);if(r=r||[],1===l.length){if(2<(o=l[0]=l[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&S&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace($,ee),t)||[])[0]))return r;c&&(t=t.parentNode),e=e.slice(o.shift().value.length)}for(i=W.needsContext.test(e)?0:o.length;i--&&(a=o[i],!b.relative[s=a.type]);)if((u=b.find[s])&&(n=u(a.matches[0].replace($,ee),Q.test(o[0].type)&&me(t.parentNode)||t))){if(o.splice(i,1),!(e=n.length&&ve(o)))return R.apply(r,n),r;break}}return(c||f(e,l))(n,t,!S,r,!t||Q.test(e)&&me(t.parentNode)||t),r},d.sortStable=M.split("").sort(C).join("")===M,d.detectDuplicates=!!c,w(),d.sortDetached=ue(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ue(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,r){if(!r)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),d.attributes&&ue(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,r){if(!r&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),ue(function(e){return null==e.getAttribute("disabled")})||ce(L,function(e,t,r){var n;if(!r)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),oe}(T);M.find=d,M.expr=d.selectors,M.expr[":"]=M.expr.pseudos,M.uniqueSort=M.unique=d.uniqueSort,M.text=d.getText,M.isXMLDoc=d.isXML,M.contains=d.contains,M.escapeSelector=d.escape;var p=function(e,t,r){for(var n=[],i=void 0!==r;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&M(e).is(r))break;n.push(e)}return n},w=function(e,t){for(var r=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&r.push(e);return r},P=M.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var C=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function k(e,r,n){return y(r)?M.grep(e,function(e,t){return!!r.call(e,t,e)!==n}):r.nodeType?M.grep(e,function(e){return e===r!==n}):"string"!=typeof r?M.grep(e,function(e){return-1<i.call(r,e)!==n}):M.filter(r,e,n)}M.filter=function(e,t,r){var n=t[0];return r&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?M.find.matchesSelector(n,e)?[n]:[]:M.find.matches(e,M.grep(t,function(e){return 1===e.nodeType}))},M.fn.extend({find:function(e){var t,r,n=this.length,i=this;if("string"!=typeof e)return this.pushStack(M(e).filter(function(){for(t=0;t<n;t++)if(M.contains(i[t],this))return!0}));for(r=this.pushStack([]),t=0;t<n;t++)M.find(e,i[t],r);return 1<n?M.uniqueSort(r):r},filter:function(e){return this.pushStack(k(this,e||[],!1))},not:function(e){return this.pushStack(k(this,e||[],!0))},is:function(e){return!!k(this,"string"==typeof e&&P.test(e)?M(e):e||[],!1).length}});var A,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(M.fn.init=function(e,t,r){var n,i;if(!e)return this;if(r=r||A,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==r.ready?r.ready(e):e(M):M.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:O.exec(e))||!n[1]&&t)return!t||t.jquery?(t||r).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof M?t[0]:t,M.merge(this,M.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:S,!0)),C.test(n[1])&&M.isPlainObject(t))for(n in t)y(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(i=S.getElementById(n[2]))&&(this[0]=i,this.length=1),this}).prototype=M.fn,A=M(S);var R=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function D(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}M.fn.extend({has:function(e){var t=M(e,this),r=t.length;return this.filter(function(){for(var e=0;e<r;e++)if(M.contains(this,t[e]))return!0})},closest:function(e,t){var r,n=0,i=this.length,o=[],a="string"!=typeof e&&M(e);if(!P.test(e))for(;n<i;n++)for(r=this[n];r&&r!==t;r=r.parentNode)if(r.nodeType<11&&(a?-1<a.index(r):1===r.nodeType&&M.find.matchesSelector(r,e))){o.push(r);break}return this.pushStack(1<o.length?M.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?i.call(M(e),this[0]):i.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(M.uniqueSort(M.merge(this.get(),M(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),M.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return p(e,"parentNode")},parentsUntil:function(e,t,r){return p(e,"parentNode",r)},next:function(e){return D(e,"nextSibling")},prev:function(e){return D(e,"previousSibling")},nextAll:function(e){return p(e,"nextSibling")},prevAll:function(e){return p(e,"previousSibling")},nextUntil:function(e,t,r){return p(e,"nextSibling",r)},prevUntil:function(e,t,r){return p(e,"previousSibling",r)},siblings:function(e){return w((e.parentNode||{}).firstChild,e)},children:function(e){return w(e.firstChild)},contents:function(e){return E(e,"iframe")?e.contentDocument:(E(e,"template")&&(e=e.content||e),M.merge([],e.childNodes))}},function(n,i){M.fn[n]=function(e,t){var r=M.map(this,i,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(r=M.filter(t,r)),1<this.length&&(I[n]||M.uniqueSort(r),R.test(n)&&r.reverse()),this.pushStack(r)}});var L=/[^\x20\t\r\n\f]+/g;function N(e){return e}function j(e){throw e}function F(e,t,r,n){var i;try{e&&y(i=e.promise)?i.call(e).done(t).fail(r):e&&y(i=e.then)?i.call(e,t,r):t.apply(void 0,[e].slice(n))}catch(e){r.apply(void 0,[e])}}M.Callbacks=function(n){n="string"==typeof n?function(e){var r={};return M.each(e.match(L)||[],function(e,t){r[t]=!0}),r}(n):M.extend({},n);var r,e,t,i,o=[],a=[],s=-1,u=function(){for(i=i||n.once,t=r=!0;a.length;s=-1)for(e=a.shift();++s<o.length;)!1===o[s].apply(e[0],e[1])&&n.stopOnFalse&&(s=o.length,e=!1);n.memory||(e=!1),r=!1,i&&(o=e?[]:"")},c={add:function(){return o&&(e&&!r&&(s=o.length-1,a.push(e)),function r(e){M.each(e,function(e,t){y(t)?n.unique&&c.has(t)||o.push(t):t&&t.length&&"string"!==x(t)&&r(t)})}(arguments),e&&!r&&u()),this},remove:function(){return M.each(arguments,function(e,t){for(var r;-1<(r=M.inArray(t,o,r));)o.splice(r,1),r<=s&&s--}),this},has:function(e){return e?-1<M.inArray(e,o):0<o.length},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=e="",this},disabled:function(){return!o},lock:function(){return i=a=[],e||r||(o=e=""),this},locked:function(){return!!i},fireWith:function(e,t){return i||(t=[e,(t=t||[]).slice?t.slice():t],a.push(t),r||u()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!t}};return c},M.extend({Deferred:function(e){var o=[["notify","progress",M.Callbacks("memory"),M.Callbacks("memory"),2],["resolve","done",M.Callbacks("once memory"),M.Callbacks("once memory"),0,"resolved"],["reject","fail",M.Callbacks("once memory"),M.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return a.then(null,e)},pipe:function(){var i=arguments;return M.Deferred(function(n){M.each(o,function(e,t){var r=y(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,r?[e]:arguments)})}),i=null}).promise()},then:function(t,r,n){var u=0;function c(i,o,a,s){return function(){var r=this,n=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(r,n))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?s?t.call(e,c(u,o,N,s),c(u,o,j,s)):(u++,t.call(e,c(u,o,N,s),c(u,o,j,s),c(u,o,N,o.notifyWith))):(a!==N&&(r=void 0,n=[e]),(s||o.resolveWith)(r,n))}},t=s?e:function(){try{e()}catch(e){M.Deferred.exceptionHook&&M.Deferred.exceptionHook(e,t.stackTrace),u<=i+1&&(a!==j&&(r=void 0,n=[e]),o.rejectWith(r,n))}};i?t():(M.Deferred.getStackHook&&(t.stackTrace=M.Deferred.getStackHook()),T.setTimeout(t))}}return M.Deferred(function(e){o[0][3].add(c(0,e,y(n)?n:N,e.notifyWith)),o[1][3].add(c(0,e,y(t)?t:N)),o[2][3].add(c(0,e,y(r)?r:j))}).promise()},promise:function(e){return null!=e?M.extend(e,a):a}},s={};return M.each(o,function(e,t){var r=t[2],n=t[5];a[t[1]]=r.add,n&&r.add(function(){i=n},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),r.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=r.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var r=arguments.length,t=r,n=Array(t),i=s.call(arguments),o=M.Deferred(),a=function(t){return function(e){n[t]=this,i[t]=1<arguments.length?s.call(arguments):e,--r||o.resolveWith(n,i)}};if(r<=1&&(F(e,o.done(a(t)).resolve,o.reject,!r),"pending"===o.state()||y(i[t]&&i[t].then)))return o.then();for(;t--;)F(i[t],a(t),o.reject);return o.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;M.Deferred.exceptionHook=function(e,t){T.console&&T.console.warn&&e&&B.test(e.name)&&T.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},M.readyException=function(e){T.setTimeout(function(){throw e})};var z=M.Deferred();function U(){S.removeEventListener("DOMContentLoaded",U),T.removeEventListener("load",U),M.ready()}M.fn.ready=function(e){return z.then(e).catch(function(e){M.readyException(e)}),this},M.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--M.readyWait:M.isReady)||(M.isReady=!0)!==e&&0<--M.readyWait||z.resolveWith(S,[M])}}),M.ready.then=z.then,"complete"===S.readyState||"loading"!==S.readyState&&!S.documentElement.doScroll?T.setTimeout(M.ready):(S.addEventListener("DOMContentLoaded",U),T.addEventListener("load",U));var X=function(e,t,r,n,i,o,a){var s=0,u=e.length,c=null==r;if("object"===x(r))for(s in i=!0,r)X(e,t,s,r[s],!0,o,a);else if(void 0!==n&&(i=!0,y(n)||(a=!0),c&&(t=a?(t.call(e,n),null):(c=t,function(e,t,r){return c.call(M(e),r)})),t))for(;s<u;s++)t(e[s],r,a?n:n.call(e[s],s,t(e[s],r)));return i?e:c?t.call(e):u?t(e[0],r):o},q=/^-ms-/,H=/-([a-z])/g;function Y(e,t){return t.toUpperCase()}function G(e){return e.replace(q,"ms-").replace(H,Y)}var W=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function V(){this.expando=M.expando+V.uid++}V.uid=1,V.prototype={cache:function(e){var t=e[this.expando];return t||(t={},W(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,r){var n,i=this.cache(e);if("string"==typeof t)i[G(t)]=r;else for(n in t)i[G(n)]=t[n];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,r){return void 0===t||t&&"string"==typeof t&&void 0===r?this.get(e,t):(this.set(e,t,r),void 0!==r?r:t)},remove:function(e,t){var r,n=e[this.expando];if(void 0!==n){if(void 0!==t){r=(t=Array.isArray(t)?t.map(G):(t=G(t))in n?[t]:t.match(L)||[]).length;for(;r--;)delete n[t[r]]}(void 0===t||M.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!M.isEmptyObject(t)}};var K=new V,J=new V,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function $(e,t,r){var n;if(void 0===r&&1===e.nodeType)if(n="data-"+t.replace(Q,"-$&").toLowerCase(),"string"==typeof(r=e.getAttribute(n))){try{r=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Z.test(e)?JSON.parse(e):e)}(r)}catch(e){}J.set(e,t,r)}else r=void 0;return r}M.extend({hasData:function(e){return J.hasData(e)||K.hasData(e)},data:function(e,t,r){return J.access(e,t,r)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,r){return K.access(e,t,r)},_removeData:function(e,t){K.remove(e,t)}}),M.fn.extend({data:function(r,e){var t,n,i,o=this[0],a=o&&o.attributes;if(void 0!==r)return"object"==typeof r?this.each(function(){J.set(this,r)}):X(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=J.get(o,r))?t:void 0!==(t=$(o,r))?t:void 0;this.each(function(){J.set(this,r,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(i=J.get(o),1===o.nodeType&&!K.get(o,"hasDataAttrs"))){for(t=a.length;t--;)a[t]&&0===(n=a[t].name).indexOf("data-")&&(n=G(n.slice(5)),$(o,n,i[n]));K.set(o,"hasDataAttrs",!0)}return i},removeData:function(e){return this.each(function(){J.remove(this,e)})}}),M.extend({queue:function(e,t,r){var n;if(e)return t=(t||"fx")+"queue",n=K.get(e,t),r&&(!n||Array.isArray(r)?n=K.access(e,t,M.makeArray(r)):n.push(r)),n||[]},dequeue:function(e,t){t=t||"fx";var r=M.queue(e,t),n=r.length,i=r.shift(),o=M._queueHooks(e,t);"inprogress"===i&&(i=r.shift(),n--),i&&("fx"===t&&r.unshift("inprogress"),delete o.stop,i.call(e,function(){M.dequeue(e,t)},o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var r=t+"queueHooks";return K.get(e,r)||K.access(e,r,{empty:M.Callbacks("once memory").add(function(){K.remove(e,[t+"queue",r])})})}}),M.fn.extend({queue:function(t,r){var e=2;return"string"!=typeof t&&(r=t,t="fx",e--),arguments.length<e?M.queue(this[0],t):void 0===r?this:this.each(function(){var e=M.queue(this,t,r);M._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&M.dequeue(this,t)})},dequeue:function(e){return this.each(function(){M.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var r,n=1,i=M.Deferred(),o=this,a=this.length,s=function(){--n||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(r=K.get(o[a],e+"queueHooks"))&&r.empty&&(n++,r.empty.add(s));return s(),i.promise(t)}});var ee=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,te=new RegExp("^(?:([+-])=|)("+ee+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ne=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&M.contains(e.ownerDocument,e)&&"none"===M.css(e,"display")},ie=function(e,t,r,n){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];for(o in i=r.apply(e,n||[]),t)e.style[o]=a[o];return i};function oe(e,t,r,n){var i,o,a=20,s=n?function(){return n.cur()}:function(){return M.css(e,t,"")},u=s(),c=r&&r[3]||(M.cssNumber[t]?"":"px"),l=(M.cssNumber[t]||"px"!==c&&+u)&&te.exec(M.css(e,t));if(l&&l[3]!==c){for(u/=2,c=c||l[3],l=+u||1;a--;)M.style(e,t,l+c),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),l/=o;l*=2,M.style(e,t,l+c),r=r||[]}return r&&(l=+l||+u||0,i=r[1]?l+(r[1]+1)*r[2]:+r[2],n&&(n.unit=c,n.start=l,n.end=i)),i}var ae={};function se(e,t){for(var r,n,i,o,a,s,u,c=[],l=0,f=e.length;l<f;l++)(n=e[l]).style&&(r=n.style.display,t?("none"===r&&(c[l]=K.get(n,"display")||null,c[l]||(n.style.display="")),""===n.style.display&&ne(n)&&(c[l]=(u=a=o=void 0,a=(i=n).ownerDocument,s=i.nodeName,(u=ae[s])||(o=a.body.appendChild(a.createElement(s)),u=M.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ae[s]=u)))):"none"!==r&&(c[l]="none",K.set(n,"display",r)));for(l=0;l<f;l++)null!=c[l]&&(e[l].style.display=c[l]);return e}M.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ne(this)?M(this).show():M(this).hide()})}});var ue=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,le=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,"<select multiple='multiple'>","</select>"],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 he(e,t){var r;return r=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?M.merge([e],r):r}function de(e,t){for(var r=0,n=e.length;r<n;r++)K.set(e[r],"globalEval",!t||K.get(t[r],"globalEval"))}fe.optgroup=fe.option,fe.tbody=fe.tfoot=fe.colgroup=fe.caption=fe.thead,fe.th=fe.td;var pe,me,ge=/<|&#?\w+;/;function ve(e,t,r,n,i){for(var o,a,s,u,c,l,f=t.createDocumentFragment(),h=[],d=0,p=e.length;d<p;d++)if((o=e[d])||0===o)if("object"===x(o))M.merge(h,o.nodeType?[o]:o);else if(ge.test(o)){for(a=a||f.appendChild(t.createElement("div")),s=(ce.exec(o)||["",""])[1].toLowerCase(),u=fe[s]||fe._default,a.innerHTML=u[1]+M.htmlPrefilter(o)+u[2],l=u[0];l--;)a=a.lastChild;M.merge(h,a.childNodes),(a=f.firstChild).textContent=""}else h.push(t.createTextNode(o));for(f.textContent="",d=0;o=h[d++];)if(n&&-1<M.inArray(o,n))i&&i.push(o);else if(c=M.contains(o.ownerDocument,o),a=he(f.appendChild(o),"script"),c&&de(a),r)for(l=0;o=a[l++];)le.test(o.type||"")&&r.push(o);return f}pe=S.createDocumentFragment().appendChild(S.createElement("div")),(me=S.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),pe.appendChild(me),v.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var ye=S.documentElement,_e=/^key/,be=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function we(){return!0}function Te(){return!1}function Se(){try{return S.activeElement}catch(e){}}function Me(e,t,r,n,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof r&&(n=n||r,r=void 0),t)Me(e,s,r,n,t[s],o);return e}if(null==n&&null==i?(i=r,n=r=void 0):null==i&&("string"==typeof r?(i=n,n=void 0):(i=n,n=r,r=void 0)),!1===i)i=Te;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return M().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=M.guid++)),e.each(function(){M.event.add(this,t,i,n,r)})}M.event={global:{},add:function(t,e,r,n,i){var o,a,s,u,c,l,f,h,d,p,m,g=K.get(t);if(g)for(r.handler&&(r=(o=r).handler,i=o.selector),i&&M.find.matchesSelector(ye,i),r.guid||(r.guid=M.guid++),(u=g.events)||(u=g.events={}),(a=g.handle)||(a=g.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(L)||[""]).length;c--;)d=m=(s=xe.exec(e[c])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=M.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=M.event.special[d]||{},l=M.extend({type:d,origType:m,data:n,handler:r,guid:r.guid,selector:i,needsContext:i&&M.expr.match.needsContext.test(i),namespace:p.join(".")},o),(h=u[d])||((h=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,n,p,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,l),l.handler.guid||(l.handler.guid=r.guid)),i?h.splice(h.delegateCount++,0,l):h.push(l),M.event.global[d]=!0)},remove:function(e,t,r,n,i){var o,a,s,u,c,l,f,h,d,p,m,g=K.hasData(e)&&K.get(e);if(g&&(u=g.events)){for(c=(t=(t||"").match(L)||[""]).length;c--;)if(d=m=(s=xe.exec(t[c])||[])[1],p=(s[2]||"").split(".").sort(),d){for(f=M.event.special[d]||{},h=u[d=(n?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)l=h[o],!i&&m!==l.origType||r&&r.guid!==l.guid||s&&!s.test(l.namespace)||n&&n!==l.selector&&("**"!==n||!l.selector)||(h.splice(o,1),l.selector&&h.delegateCount--,f.remove&&f.remove.call(e,l));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,g.handle)||M.removeEvent(e,d,g.handle),delete u[d])}else for(d in u)M.event.remove(e,d+t[c],r,n,!0);M.isEmptyObject(u)&&K.remove(e,"handle events")}},dispatch:function(e){var t,r,n,i,o,a,s=M.event.fix(e),u=new Array(arguments.length),c=(K.get(this,"events")||{})[s.type]||[],l=M.event.special[s.type]||{};for(u[0]=s,t=1;t<arguments.length;t++)u[t]=arguments[t];if(s.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,s)){for(a=M.event.handlers.call(this,s,c),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,r=0;(o=i.handlers[r++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(n=((M.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,u))&&!1===(s.result=n)&&(s.preventDefault(),s.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,s),s.result}},handlers:function(e,t){var r,n,i,o,a,s=[],u=t.delegateCount,c=e.target;if(u&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},r=0;r<u;r++)void 0===a[i=(n=t[r]).selector+" "]&&(a[i]=n.needsContext?-1<M(i,this).index(c):M.find(i,this,null,[c]).length),a[i]&&o.push(n);o.length&&s.push({elem:c,handlers:o})}return c=this,u<t.length&&s.push({elem:c,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(M.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[M.expando]?e:new M.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Se()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Se()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E(this,"input"))return this.click(),!1},_default:function(e){return E(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},M.removeEvent=function(e,t,r){e.removeEventListener&&e.removeEventListener(t,r)},M.Event=function(e,t){if(!(this instanceof M.Event))return new M.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?we:Te,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&&M.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[M.expando]=!0},M.Event.prototype={constructor:M.Event,isDefaultPrevented:Te,isPropagationStopped:Te,isImmediatePropagationStopped:Te,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=we,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=we,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=we,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},M.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,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:function(e){var t=e.button;return null==e.which&&_e.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&be.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},M.event.addProp),M.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){M.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,r=e.relatedTarget,n=e.handleObj;return r&&(r===this||M.contains(this,r))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=i),t}}}),M.fn.extend({on:function(e,t,r,n){return Me(this,e,t,r,n)},one:function(e,t,r,n){return Me(this,e,t,r,n,1)},off:function(e,t,r){var n,i;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,M(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(r=t,t=void 0),!1===r&&(r=Te),this.each(function(){M.event.remove(this,e,r,t)});for(i in e)this.off(i,t,e[i]);return this}});var Pe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ee=/<script|<style|<link/i,Ce=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ae(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&M(e).children("tbody")[0]||e}function Oe(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var r,n,i,o,a,s,u,c;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),c=o.events))for(i in delete a.handle,a.events={},c)for(r=0,n=c[i].length;r<n;r++)M.event.add(t,i,c[i][r]);J.hasData(e)&&(s=J.access(e),u=M.extend({},s),J.set(t,u))}}function De(r,n,i,o){n=m.apply([],n);var e,t,a,s,u,c,l=0,f=r.length,h=f-1,d=n[0],p=y(d);if(p||1<f&&"string"==typeof d&&!v.checkClone&&Ce.test(d))return r.each(function(e){var t=r.eq(e);p&&(n[0]=d.call(this,e,t.html())),De(t,n,i,o)});if(f&&(t=(e=ve(n,r[0].ownerDocument,!1,r,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=M.map(he(e,"script"),Oe)).length;l<f;l++)u=e,l!==h&&(u=M.clone(u,!0,!0),s&&M.merge(a,he(u,"script"))),i.call(r[l],u,l);if(s)for(c=a[a.length-1].ownerDocument,M.map(a,Re),l=0;l<s;l++)u=a[l],le.test(u.type||"")&&!K.access(u,"globalEval")&&M.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?M._evalUrl&&M._evalUrl(u.src):b(u.textContent.replace(ke,""),c,u))}return r}function Le(e,t,r){for(var n,i=t?M.filter(t,e):e,o=0;null!=(n=i[o]);o++)r||1!==n.nodeType||M.cleanData(he(n)),n.parentNode&&(r&&M.contains(n.ownerDocument,n)&&de(he(n,"script")),n.parentNode.removeChild(n));return e}M.extend({htmlPrefilter:function(e){return e.replace(Pe,"<$1></$2>")},clone:function(e,t,r){var n,i,o,a,s,u,c,l=e.cloneNode(!0),f=M.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(a=he(l),n=0,i=(o=he(e)).length;n<i;n++)s=o[n],u=a[n],void 0,"input"===(c=u.nodeName.toLowerCase())&&ue.test(s.type)?u.checked=s.checked:"input"!==c&&"textarea"!==c||(u.defaultValue=s.defaultValue);if(t)if(r)for(o=o||he(e),a=a||he(l),n=0,i=o.length;n<i;n++)Ie(o[n],a[n]);else Ie(e,l);return 0<(a=he(l,"script")).length&&de(a,!f&&he(e,"script")),l},cleanData:function(e){for(var t,r,n,i=M.event.special,o=0;void 0!==(r=e[o]);o++)if(W(r)){if(t=r[K.expando]){if(t.events)for(n in t.events)i[n]?M.event.remove(r,n):M.removeEvent(r,n,t.handle);r[K.expando]=void 0}r[J.expando]&&(r[J.expando]=void 0)}}}),M.fn.extend({detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return X(this,function(e){return void 0===e?M.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 De(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ae(this,e).appendChild(e)})},prepend:function(){return De(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ae(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return De(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return De(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&&(M.cleanData(he(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return M.clone(this,e,t)})},html:function(e){return X(this,function(e){var t=this[0]||{},r=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ee.test(e)&&!fe[(ce.exec(e)||["",""])[1].toLowerCase()]){e=M.htmlPrefilter(e);try{for(;r<n;r++)1===(t=this[r]||{}).nodeType&&(M.cleanData(he(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var r=[];return De(this,arguments,function(e){var t=this.parentNode;M.inArray(this,r)<0&&(M.cleanData(he(this)),t&&t.replaceChild(e,this))},r)}}),M.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){M.fn[e]=function(e){for(var t,r=[],n=M(e),i=n.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),M(n[o])[a](t),u.apply(r,t.get());return this.pushStack(r)}});var Ne=new RegExp("^("+ee+")(?!px)[a-z%]+$","i"),je=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=T),t.getComputedStyle(e)},Fe=new RegExp(re.join("|"),"i");function Be(e,t,r){var n,i,o,a,s=e.style;return(r=r||je(e))&&(""!==(a=r.getPropertyValue(t)||r[t])||M.contains(e.ownerDocument,e)||(a=M.style(e,t)),!v.pixelBoxStyles()&&Ne.test(a)&&Fe.test(t)&&(n=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=r.width,s.width=n,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function ze(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){s.style.cssText="position:absolute;left:-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%",ye.appendChild(s).appendChild(u);var e=T.getComputedStyle(u);r="1%"!==e.top,a=12===t(e.marginLeft),u.style.right="60%",o=36===t(e.right),n=36===t(e.width),u.style.position="absolute",i=36===u.offsetWidth||"absolute",ye.removeChild(s),u=null}}function t(e){return Math.round(parseFloat(e))}var r,n,i,o,a,s=S.createElement("div"),u=S.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===u.style.backgroundClip,M.extend(v,{boxSizingReliable:function(){return e(),n},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),r},reliableMarginLeft:function(){return e(),a},scrollboxSize:function(){return e(),i}}))}();var Ue=/^(none|table(?!-c[ea]).+)/,Xe=/^--/,qe={position:"absolute",visibility:"hidden",display:"block"},He={letterSpacing:"0",fontWeight:"400"},Ye=["Webkit","Moz","ms"],Ge=S.createElement("div").style;function We(e){var t=M.cssProps[e];return t||(t=M.cssProps[e]=function(e){if(e in Ge)return e;for(var t=e[0].toUpperCase()+e.slice(1),r=Ye.length;r--;)if((e=Ye[r]+t)in Ge)return e}(e)||e),t}function Ve(e,t,r){var n=te.exec(t);return n?Math.max(0,n[2]-(r||0))+(n[3]||"px"):t}function Ke(e,t,r,n,i,o){var a="width"===t?1:0,s=0,u=0;if(r===(n?"border":"content"))return 0;for(;a<4;a+=2)"margin"===r&&(u+=M.css(e,r+re[a],!0,i)),n?("content"===r&&(u-=M.css(e,"padding"+re[a],!0,i)),"margin"!==r&&(u-=M.css(e,"border"+re[a]+"Width",!0,i))):(u+=M.css(e,"padding"+re[a],!0,i),"padding"!==r?u+=M.css(e,"border"+re[a]+"Width",!0,i):s+=M.css(e,"border"+re[a]+"Width",!0,i));return!n&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))),u}function Je(e,t,r){var n=je(e),i=Be(e,t,n),o="border-box"===M.css(e,"boxSizing",!1,n),a=o;if(Ne.test(i)){if(!r)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===M.css(e,"display",!1,n))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Ke(e,t,r||(o?"border":"content"),a,n,i)+"px"}function Ze(e,t,r,n,i){return new Ze.prototype.init(e,t,r,n,i)}M.extend({cssHooks:{opacity:{get:function(e,t){if(t){var r=Be(e,"opacity");return""===r?"1":r}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,r,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=G(t),u=Xe.test(t),c=e.style;if(u||(t=We(s)),a=M.cssHooks[t]||M.cssHooks[s],void 0===r)return a&&"get"in a&&void 0!==(i=a.get(e,!1,n))?i:c[t];"string"===(o=typeof r)&&(i=te.exec(r))&&i[1]&&(r=oe(e,t,i),o="number"),null!=r&&r==r&&("number"===o&&(r+=i&&i[3]||(M.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==r||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(r=a.set(e,r,n))||(u?c.setProperty(t,r):c[t]=r))}},css:function(e,t,r,n){var i,o,a,s=G(t);return Xe.test(t)||(t=We(s)),(a=M.cssHooks[t]||M.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,r)),void 0===i&&(i=Be(e,t,n)),"normal"===i&&t in He&&(i=He[t]),""===r||r?(o=parseFloat(i),!0===r||isFinite(o)?o||0:i):i}}),M.each(["height","width"],function(e,s){M.cssHooks[s]={get:function(e,t,r){if(t)return!Ue.test(M.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Je(e,s,r):ie(e,qe,function(){return Je(e,s,r)})},set:function(e,t,r){var n,i=je(e),o="border-box"===M.css(e,"boxSizing",!1,i),a=r&&Ke(e,s,r,o,i);return o&&v.scrollboxSize()===i.position&&(a-=Math.ceil(e["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(i[s])-Ke(e,s,"border",!1,i)-.5)),a&&(n=te.exec(t))&&"px"!==(n[3]||"px")&&(e.style[s]=t,t=M.css(e,s)),Ve(0,t,a)}}}),M.cssHooks.marginLeft=ze(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Be(e,"marginLeft"))||e.getBoundingClientRect().left-ie(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),M.each({margin:"",padding:"",border:"Width"},function(i,o){M.cssHooks[i+o]={expand:function(e){for(var t=0,r={},n="string"==typeof e?e.split(" "):[e];t<4;t++)r[i+re[t]+o]=n[t]||n[t-2]||n[0];return r}},"margin"!==i&&(M.cssHooks[i+o].set=Ve)}),M.fn.extend({css:function(e,t){return X(this,function(e,t,r){var n,i,o={},a=0;if(Array.isArray(t)){for(n=je(e),i=t.length;a<i;a++)o[t[a]]=M.css(e,t[a],!1,n);return o}return void 0!==r?M.style(e,t,r):M.css(e,t)},e,t,1<arguments.length)}}),((M.Tween=Ze).prototype={constructor:Ze,init:function(e,t,r,n,i,o){this.elem=e,this.prop=r,this.easing=i||M.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(M.cssNumber[r]?"":"px")},cur:function(){var e=Ze.propHooks[this.prop];return e&&e.get?e.get(this):Ze.propHooks._default.get(this)},run:function(e){var t,r=Ze.propHooks[this.prop];return this.options.duration?this.pos=t=M.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),r&&r.set?r.set(this):Ze.propHooks._default.set(this),this}}).init.prototype=Ze.prototype,(Ze.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=M.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){M.fx.step[e.prop]?M.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[M.cssProps[e.prop]]&&!M.cssHooks[e.prop]?e.elem[e.prop]=e.now:M.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ze.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},M.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},M.fx=Ze.prototype.init,M.fx.step={};var Qe,$e,et,tt,rt=/^(?:toggle|show|hide)$/,nt=/queueHooks$/;function it(){$e&&(!1===S.hidden&&T.requestAnimationFrame?T.requestAnimationFrame(it):T.setTimeout(it,M.fx.interval),M.fx.tick())}function ot(){return T.setTimeout(function(){Qe=void 0}),Qe=Date.now()}function at(e,t){var r,n=0,i={height:e};for(t=t?1:0;n<4;n+=2-t)i["margin"+(r=re[n])]=i["padding"+r]=e;return t&&(i.opacity=i.width=e),i}function st(e,t,r){for(var n,i=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,a=i.length;o<a;o++)if(n=i[o].call(r,t,e))return n}function ut(o,e,t){var r,a,n=0,i=ut.prefilters.length,s=M.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=Qe||ot(),t=Math.max(0,c.startTime+c.duration-e),r=1-(t/c.duration||0),n=0,i=c.tweens.length;n<i;n++)c.tweens[n].run(r);return s.notifyWith(o,[c,r,t]),r<1&&i?t:(i||s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c]),!1)},c=s.promise({elem:o,props:M.extend({},e),opts:M.extend(!0,{specialEasing:{},easing:M.easing._default},t),originalProperties:e,originalOptions:t,startTime:Qe||ot(),duration:t.duration,tweens:[],createTween:function(e,t){var r=M.Tween(o,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(r),r},stop:function(e){var t=0,r=e?c.tweens.length:0;if(a)return this;for(a=!0;t<r;t++)c.tweens[t].run(1);return e?(s.notifyWith(o,[c,1,0]),s.resolveWith(o,[c,e])):s.rejectWith(o,[c,e]),this}}),l=c.props;for(!function(e,t){var r,n,i,o,a;for(r in e)if(i=t[n=G(r)],o=e[r],Array.isArray(o)&&(i=o[1],o=e[r]=o[0]),r!==n&&(e[n]=o,delete e[r]),(a=M.cssHooks[n])&&"expand"in a)for(r in o=a.expand(o),delete e[n],o)r in e||(e[r]=o[r],t[r]=i);else t[n]=i}(l,c.opts.specialEasing);n<i;n++)if(r=ut.prefilters[n].call(c,o,l,c.opts))return y(r.stop)&&(M._queueHooks(c.elem,c.opts.queue).stop=r.stop.bind(r)),r;return M.map(l,st,c),y(c.opts.start)&&c.opts.start.call(o,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),M.fx.timer(M.extend(u,{elem:o,anim:c,queue:c.opts.queue})),c}M.Animation=M.extend(ut,{tweeners:{"*":[function(e,t){var r=this.createTween(e,t);return oe(r.elem,e,te.exec(t),r),r}]},tweener:function(e,t){for(var r,n=0,i=(e=y(e)?(t=e,["*"]):e.match(L)).length;n<i;n++)r=e[n],ut.tweeners[r]=ut.tweeners[r]||[],ut.tweeners[r].unshift(t)},prefilters:[function(e,t,r){var n,i,o,a,s,u,c,l,f="width"in t||"height"in t,h=this,d={},p=e.style,m=e.nodeType&&ne(e),g=K.get(e,"fxshow");for(n in r.queue||(null==(a=M._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,M.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[n],rt.test(i)){if(delete t[n],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[n])continue;m=!0}d[n]=g&&g[n]||M.style(e,n)}if((u=!M.isEmptyObject(t))||!M.isEmptyObject(d))for(n in f&&1===e.nodeType&&(r.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=K.get(e,"display")),"none"===(l=M.css(e,"display"))&&(c?l=c:(se([e],!0),c=e.style.display||c,l=M.css(e,"display"),se([e]))),("inline"===l||"inline-block"===l&&null!=c)&&"none"===M.css(e,"float")&&(u||(h.done(function(){p.display=c}),null==c&&(l=p.display,c="none"===l?"":l)),p.display="inline-block")),r.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=r.overflow[0],p.overflowX=r.overflow[1],p.overflowY=r.overflow[2]})),u=!1,d)u||(g?"hidden"in g&&(m=g.hidden):g=K.access(e,"fxshow",{display:c}),o&&(g.hidden=!m),m&&se([e],!0),h.done(function(){for(n in m||se([e]),K.remove(e,"fxshow"),d)M.style(e,n,d[n])})),u=st(m?g[n]:0,n,h),n in g||(g[n]=u.start,m&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),M.speed=function(e,t,r){var n=e&&"object"==typeof e?M.extend({},e):{complete:r||!r&&t||y(e)&&e,duration:e,easing:r&&t||t&&!y(t)&&t};return M.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in M.fx.speeds?n.duration=M.fx.speeds[n.duration]:n.duration=M.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){y(n.old)&&n.old.call(this),n.queue&&M.dequeue(this,n.queue)},n},M.fn.extend({fadeTo:function(e,t,r,n){return this.filter(ne).css("opacity",0).show().end().animate({opacity:t},e,r,n)},animate:function(t,e,r,n){var i=M.isEmptyObject(t),o=M.speed(e,r,n),a=function(){var e=ut(this,M.extend({},t),o);(i||K.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&!1!==i&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",r=M.timers,n=K.get(this);if(t)n[t]&&n[t].stop&&a(n[t]);else for(t in n)n[t]&&n[t].stop&&nt.test(t)&&a(n[t]);for(t=r.length;t--;)r[t].elem!==this||null!=i&&r[t].queue!==i||(r[t].anim.stop(o),e=!1,r.splice(t,1));!e&&o||M.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=K.get(this),r=t[a+"queue"],n=t[a+"queueHooks"],i=M.timers,o=r?r.length:0;for(t.finish=!0,M.queue(this,a,[]),n&&n.stop&&n.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)r[e]&&r[e].finish&&r[e].finish.call(this);delete t.finish})}}),M.each(["toggle","show","hide"],function(e,n){var i=M.fn[n];M.fn[n]=function(e,t,r){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(at(n,!0),e,t,r)}}),M.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){M.fn[e]=function(e,t,r){return this.animate(n,e,t,r)}}),M.timers=[],M.fx.tick=function(){var e,t=0,r=M.timers;for(Qe=Date.now();t<r.length;t++)(e=r[t])()||r[t]!==e||r.splice(t--,1);r.length||M.fx.stop(),Qe=void 0},M.fx.timer=function(e){M.timers.push(e),M.fx.start()},M.fx.interval=13,M.fx.start=function(){$e||($e=!0,it())},M.fx.stop=function(){$e=null},M.fx.speeds={slow:600,fast:200,_default:400},M.fn.delay=function(n,e){return n=M.fx&&M.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var r=T.setTimeout(e,n);t.stop=function(){T.clearTimeout(r)}})},et=S.createElement("input"),tt=S.createElement("select").appendChild(S.createElement("option")),et.type="checkbox",v.checkOn=""!==et.value,v.optSelected=tt.selected,(et=S.createElement("input")).value="t",et.type="radio",v.radioValue="t"===et.value;var ct,lt=M.expr.attrHandle;M.fn.extend({attr:function(e,t){return X(this,M.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){M.removeAttr(this,e)})}}),M.extend({attr:function(e,t,r){var n,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?M.prop(e,t,r):(1===o&&M.isXMLDoc(e)||(i=M.attrHooks[t.toLowerCase()]||(M.expr.match.bool.test(t)?ct:void 0)),void 0!==r?null===r?void M.removeAttr(e,t):i&&"set"in i&&void 0!==(n=i.set(e,r,t))?n:(e.setAttribute(t,r+""),r):i&&"get"in i&&null!==(n=i.get(e,t))?n:null==(n=M.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&E(e,"input")){var r=e.value;return e.setAttribute("type",t),r&&(e.value=r),t}}}},removeAttr:function(e,t){var r,n=0,i=t&&t.match(L);if(i&&1===e.nodeType)for(;r=i[n++];)e.removeAttribute(r)}}),ct={set:function(e,t,r){return!1===t?M.removeAttr(e,r):e.setAttribute(r,r),r}},M.each(M.expr.match.bool.source.match(/\w+/g),function(e,t){var a=lt[t]||M.find.attr;lt[t]=function(e,t,r){var n,i,o=t.toLowerCase();return r||(i=lt[o],lt[o]=n,n=null!=a(e,t,r)?o:null,lt[o]=i),n}});var ft=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function dt(e){return(e.match(L)||[]).join(" ")}function pt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(L)||[]}M.fn.extend({prop:function(e,t){return X(this,M.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[M.propFix[e]||e]})}}),M.extend({prop:function(e,t,r){var n,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&M.isXMLDoc(e)||(t=M.propFix[t]||t,i=M.propHooks[t]),void 0!==r?i&&"set"in i&&void 0!==(n=i.set(e,r,t))?n:e[t]=r:i&&"get"in i&&null!==(n=i.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=M.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(M.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)}}),M.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){M.propFix[this.toLowerCase()]=this}),M.fn.extend({addClass:function(t){var e,r,n,i,o,a,s,u=0;if(y(t))return this.each(function(e){M(this).addClass(t.call(this,e,pt(this)))});if((e=mt(t)).length)for(;r=this[u++];)if(i=pt(r),n=1===r.nodeType&&" "+dt(i)+" "){for(a=0;o=e[a++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");i!==(s=dt(n))&&r.setAttribute("class",s)}return this},removeClass:function(t){var e,r,n,i,o,a,s,u=0;if(y(t))return this.each(function(e){M(this).removeClass(t.call(this,e,pt(this)))});if(!arguments.length)return this.attr("class","");if((e=mt(t)).length)for(;r=this[u++];)if(i=pt(r),n=1===r.nodeType&&" "+dt(i)+" "){for(a=0;o=e[a++];)for(;-1<n.indexOf(" "+o+" ");)n=n.replace(" "+o+" "," ");i!==(s=dt(n))&&r.setAttribute("class",s)}return this},toggleClass:function(i,t){var o=typeof i,a="string"==o||Array.isArray(i);return"boolean"==typeof t&&a?t?this.addClass(i):this.removeClass(i):y(i)?this.each(function(e){M(this).toggleClass(i.call(this,e,pt(this),t),t)}):this.each(function(){var e,t,r,n;if(a)for(t=0,r=M(this),n=mt(i);e=n[t++];)r.hasClass(e)?r.removeClass(e):r.addClass(e);else void 0!==i&&"boolean"!=o||((e=pt(this))&&K.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===i?"":K.get(this,"__className__")||""))})},hasClass:function(e){var t,r,n=0;for(t=" "+e+" ";r=this[n++];)if(1===r.nodeType&&-1<(" "+dt(pt(r))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;M.fn.extend({val:function(r){var n,e,i,t=this[0];return arguments.length?(i=y(r),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?r.call(this,e,M(this).val()):r)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=M.map(t,function(e){return null==e?"":e+""})),(n=M.valHooks[this.type]||M.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=M.valHooks[t.type]||M.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),M.extend({valHooks:{option:{get:function(e){var t=M.find.attr(e,"value");return null!=t?t:dt(M.text(e))}},select:{get:function(e){var t,r,n,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(n=o<0?u:a?o:0;n<u;n++)if(((r=i[n]).selected||n===o)&&!r.disabled&&(!r.parentNode.disabled||!E(r.parentNode,"optgroup"))){if(t=M(r).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var r,n,i=e.options,o=M.makeArray(t),a=i.length;a--;)((n=i[a]).selected=-1<M.inArray(M.valHooks.option.get(n),o))&&(r=!0);return r||(e.selectedIndex=-1),o}}}}),M.each(["radio","checkbox"],function(){M.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<M.inArray(M(e).val(),t)}},v.checkOn||(M.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in T;var vt=/^(?:focusinfocus|focusoutblur)$/,yt=function(e){e.stopPropagation()};M.extend(M.event,{trigger:function(e,t,r,n){var i,o,a,s,u,c,l,f,h=[r||S],d=g.call(e,"type")?e.type:e,p=g.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=r=r||S,3!==r.nodeType&&8!==r.nodeType&&!vt.test(d+M.event.triggered)&&(-1<d.indexOf(".")&&(d=(p=d.split(".")).shift(),p.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[M.expando]?e:new M.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=r),t=null==t?[e]:M.makeArray(t,[e]),l=M.event.special[d]||{},n||!l.trigger||!1!==l.trigger.apply(r,t))){if(!n&&!l.noBubble&&!_(r)){for(s=l.delegateType||d,vt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)h.push(o),a=o;a===(r.ownerDocument||S)&&h.push(a.defaultView||a.parentWindow||T)}for(i=0;(o=h[i++])&&!e.isPropagationStopped();)f=o,e.type=1<i?s:l.bindType||d,(c=(K.get(o,"events")||{})[e.type]&&K.get(o,"handle"))&&c.apply(o,t),(c=u&&o[u])&&c.apply&&W(o)&&(e.result=c.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,n||e.isDefaultPrevented()||l._default&&!1!==l._default.apply(h.pop(),t)||!W(r)||u&&y(r[d])&&!_(r)&&((a=r[u])&&(r[u]=null),M.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,yt),r[d](),e.isPropagationStopped()&&f.removeEventListener(d,yt),M.event.triggered=void 0,a&&(r[u]=a)),e.result}},simulate:function(e,t,r){var n=M.extend(new M.Event,r,{type:e,isSimulated:!0});M.event.trigger(n,null,t)}}),M.fn.extend({trigger:function(e,t){return this.each(function(){M.event.trigger(e,t,this)})},triggerHandler:function(e,t){var r=this[0];if(r)return M.event.trigger(e,t,r,!0)}}),v.focusin||M.each({focus:"focusin",blur:"focusout"},function(r,n){var i=function(e){M.event.simulate(n,e.target,M.event.fix(e))};M.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=K.access(e,n);t||e.addEventListener(r,i,!0),K.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=K.access(e,n)-1;t?K.access(e,n,t):(e.removeEventListener(r,i,!0),K.remove(e,n))}}});var _t=T.location,bt=Date.now(),xt=/\?/;M.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new T.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||M.error("Invalid XML: "+e),t};var wt=/\[\]$/,Tt=/\r?\n/g,St=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;function Pt(r,e,n,i){var t;if(Array.isArray(e))M.each(e,function(e,t){n||wt.test(r)?i(r,t):Pt(r+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,i)});else if(n||"object"!==x(e))i(r,e);else for(t in e)Pt(r+"["+t+"]",e[t],n,i)}M.param=function(e,t){var r,n=[],i=function(e,t){var r=y(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==r?"":r)};if(Array.isArray(e)||e.jquery&&!M.isPlainObject(e))M.each(e,function(){i(this.name,this.value)});else for(r in e)Pt(r,e[r],t,i);return n.join("&")},M.fn.extend({serialize:function(){return M.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=M.prop(this,"elements");return e?M.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!M(this).is(":disabled")&&Mt.test(this.nodeName)&&!St.test(e)&&(this.checked||!ue.test(e))}).map(function(e,t){var r=M(this).val();return null==r?null:Array.isArray(r)?M.map(r,function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}}):{name:t.name,value:r.replace(Tt,"\r\n")}}).get()}});var Et=/%20/g,Ct=/#.*$/,kt=/([?&])_=[^&]*/,At=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ot=/^(?:GET|HEAD)$/,Rt=/^\/\//,It={},Dt={},Lt="*/".concat("*"),Nt=S.createElement("a");function jt(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var r,n=0,i=e.toLowerCase().match(L)||[];if(y(t))for(;r=i[n++];)"+"===r[0]?(r=r.slice(1)||"*",(o[r]=o[r]||[]).unshift(t)):(o[r]=o[r]||[]).push(t)}}function Ft(t,i,o,a){var s={},u=t===Dt;function c(e){var n;return s[e]=!0,M.each(t[e]||[],function(e,t){var r=t(i,o,a);return"string"!=typeof r||u||s[r]?u?!(n=r):void 0:(i.dataTypes.unshift(r),c(r),!1)}),n}return c(i.dataTypes[0])||!s["*"]&&c("*")}function Bt(e,t){var r,n,i=M.ajaxSettings.flatOptions||{};for(r in t)void 0!==t[r]&&((i[r]?e:n||(n={}))[r]=t[r]);return n&&M.extend(!0,e,n),e}Nt.href=_t.href,M.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Lt,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":M.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,M.ajaxSettings),t):Bt(M.ajaxSettings,e)},ajaxPrefilter:jt(It),ajaxTransport:jt(Dt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var l,f,h,r,d,n,p,m,i,o,g=M.ajaxSetup({},t),v=g.context||g,y=g.context&&(v.nodeType||v.jquery)?M(v):M.event,_=M.Deferred(),b=M.Callbacks("once memory"),x=g.statusCode||{},a={},s={},u="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(p){if(!r)for(r={};t=At.exec(h);)r[t[1].toLowerCase()]=t[2];t=r[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return p?h:null},setRequestHeader:function(e,t){return null==p&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==p&&(g.mimeType=e),this},statusCode:function(e){var t;if(e)if(p)w.always(e[w.status]);else for(t in e)x[t]=[x[t],e[t]];return this},abort:function(e){var t=e||u;return l&&l.abort(t),c(0,t),this}};if(_.promise(w),g.url=((e||g.url||_t.href)+"").replace(Rt,_t.protocol+"//"),g.type=t.method||t.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(L)||[""],null==g.crossDomain){n=S.createElement("a");try{n.href=g.url,n.href=n.href,g.crossDomain=Nt.protocol+"//"+Nt.host!=n.protocol+"//"+n.host}catch(e){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=M.param(g.data,g.traditional)),Ft(It,g,t,w),p)return w;for(i in(m=M.event&&g.global)&&0==M.active++&&M.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Ot.test(g.type),f=g.url.replace(Ct,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Et,"+")):(o=g.url.slice(f.length),g.data&&(g.processData||"string"==typeof g.data)&&(f+=(xt.test(f)?"&":"?")+g.data,delete g.data),!1===g.cache&&(f=f.replace(kt,"$1"),o=(xt.test(f)?"&":"?")+"_="+bt+++o),g.url=f+o),g.ifModified&&(M.lastModified[f]&&w.setRequestHeader("If-Modified-Since",M.lastModified[f]),M.etag[f]&&w.setRequestHeader("If-None-Match",M.etag[f])),(g.data&&g.hasContent&&!1!==g.contentType||t.contentType)&&w.setRequestHeader("Content-Type",g.contentType),w.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Lt+"; q=0.01":""):g.accepts["*"]),g.headers)w.setRequestHeader(i,g.headers[i]);if(g.beforeSend&&(!1===g.beforeSend.call(v,w,g)||p))return w.abort();if(u="abort",b.add(g.complete),w.done(g.success),w.fail(g.error),l=Ft(Dt,g,t,w)){if(w.readyState=1,m&&y.trigger("ajaxSend",[w,g]),p)return w;g.async&&0<g.timeout&&(d=T.setTimeout(function(){w.abort("timeout")},g.timeout));try{p=!1,l.send(a,c)}catch(e){if(p)throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,r,n){var i,o,a,s,u,c=t;p||(p=!0,d&&T.clearTimeout(d),l=void 0,h=n||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,r&&(s=function(e,t,r){for(var n,i,o,a,s=e.contents,u=e.dataTypes;"*"===u[0];)u.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(i in s)if(s[i]&&s[i].test(n)){u.unshift(i);break}if(u[0]in r)o=u[0];else{for(i in r){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),r[o]}(g,w,r)),s=function(e,t,r,n){var i,o,a,s,u,c={},l=e.dataTypes.slice();if(l[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(o=l.shift();o;)if(e.responseFields[o]&&(r[e.responseFields[o]]=t),!u&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=l.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=c[u+" "+o]||c["* "+o]))for(i in c)if((s=i.split(" "))[1]===o&&(a=c[u+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[i]:!0!==c[i]&&(o=s[0],l.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(g,s,w,i),i?(g.ifModified&&((u=w.getResponseHeader("Last-Modified"))&&(M.lastModified[f]=u),(u=w.getResponseHeader("etag"))&&(M.etag[f]=u)),204===e||"HEAD"===g.type?c="nocontent":304===e?c="notmodified":(c=s.state,o=s.data,i=!(a=s.error))):(a=c,!e&&c||(c="error",e<0&&(e=0))),w.status=e,w.statusText=(t||c)+"",i?_.resolveWith(v,[o,c,w]):_.rejectWith(v,[w,c,a]),w.statusCode(x),x=void 0,m&&y.trigger(i?"ajaxSuccess":"ajaxError",[w,g,i?o:a]),b.fireWith(v,[w,c]),m&&(y.trigger("ajaxComplete",[w,g]),--M.active||M.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,r){return M.get(e,t,r,"json")},getScript:function(e,t){return M.get(e,void 0,t,"script")}}),M.each(["get","post"],function(e,i){M[i]=function(e,t,r,n){return y(t)&&(n=n||r,r=t,t=void 0),M.ajax(M.extend({url:e,type:i,dataType:n,data:t,success:r},M.isPlainObject(e)&&e))}}),M._evalUrl=function(e){return M.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},M.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=M(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(r){return y(r)?this.each(function(e){M(this).wrapInner(r.call(this,e))}):this.each(function(){var e=M(this),t=e.contents();t.length?t.wrapAll(r):e.append(r)})},wrap:function(t){var r=y(t);return this.each(function(e){M(this).wrapAll(r?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){M(this).replaceWith(this.childNodes)}),this}}),M.expr.pseudos.hidden=function(e){return!M.expr.pseudos.visible(e)},M.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},M.ajaxSettings.xhr=function(){try{return new T.XMLHttpRequest}catch(e){}};var zt={0:200,1223:204},Ut=M.ajaxSettings.xhr();v.cors=!!Ut&&"withCredentials"in Ut,v.ajax=Ut=!!Ut,M.ajaxTransport(function(i){var o,a;if(v.cors||Ut&&!i.crossDomain)return{send:function(e,t){var r,n=i.xhr();if(n.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(r in i.xhrFields)n[r]=i.xhrFields[r];for(r in i.mimeType&&n.overrideMimeType&&n.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(r,e[r]);o=function(e){return function(){o&&(o=a=n.onload=n.onerror=n.onabort=n.ontimeout=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(zt[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=o(),a=n.onerror=n.ontimeout=o("error"),void 0!==n.onabort?n.onabort=a:n.onreadystatechange=function(){4===n.readyState&&T.setTimeout(function(){o&&a()})},o=o("abort");try{n.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),M.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),M.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 M.globalEval(e),e}}}),M.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),M.ajaxTransport("script",function(r){var n,i;if(r.crossDomain)return{send:function(e,t){n=M("<script>").prop({charset:r.scriptCharset,src:r.url}).on("load error",i=function(e){n.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),S.head.appendChild(n[0])},abort:function(){i&&i()}}});var Xt,qt=[],Ht=/(=)\?(?=&|$)|\?\?/;M.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=qt.pop()||M.expando+"_"+bt++;return this[e]=!0,e}}),M.ajaxPrefilter("json jsonp",function(e,t,r){var n,i,o,a=!1!==e.jsonp&&(Ht.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ht.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Ht,"$1"+n):!1!==e.jsonp&&(e.url+=(xt.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return o||M.error(n+" was not called"),o[0]},e.dataTypes[0]="json",i=T[n],T[n]=function(){o=arguments},r.always(function(){void 0===i?M(T).removeProp(n):T[n]=i,e[n]&&(e.jsonpCallback=t.jsonpCallback,qt.push(n)),o&&y(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Xt=S.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Xt.childNodes.length),M.parseHTML=function(e,t,r){return"string"!=typeof e?[]:("boolean"==typeof t&&(r=t,t=!1),t||(v.createHTMLDocument?((n=(t=S.implementation.createHTMLDocument("")).createElement("base")).href=S.location.href,t.head.appendChild(n)):t=S),o=!r&&[],(i=C.exec(e))?[t.createElement(i[1])]:(i=ve([e],t,o),o&&o.length&&M(o).remove(),M.merge([],i.childNodes)));var n,i,o},M.fn.load=function(e,t,r){var n,i,o,a=this,s=e.indexOf(" ");return-1<s&&(n=dt(e.slice(s)),e=e.slice(0,s)),y(t)?(r=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&M.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(n?M("<div>").append(M.parseHTML(e)).find(n):e)}).always(r&&function(e,t){a.each(function(){r.apply(this,o||[e.responseText,t,e])})}),this},M.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){M.fn[t]=function(e){return this.on(t,e)}}),M.expr.pseudos.animated=function(t){return M.grep(M.timers,function(e){return t===e.elem}).length},M.offset={setOffset:function(e,t,r){var n,i,o,a,s,u,c=M.css(e,"position"),l=M(e),f={};"static"===c&&(e.style.position="relative"),s=l.offset(),o=M.css(e,"top"),u=M.css(e,"left"),i=("absolute"===c||"fixed"===c)&&-1<(o+u).indexOf("auto")?(a=(n=l.position()).top,n.left):(a=parseFloat(o)||0,parseFloat(u)||0),y(t)&&(t=t.call(e,r,M.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):l.css(f)}},M.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){M.offset.setOffset(this,t,e)});var e,r,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),r=n.ownerDocument.defaultView,{top:e.top+r.pageYOffset,left:e.left+r.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,r,n=this[0],i={top:0,left:0};if("fixed"===M.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),r=n.ownerDocument,e=n.offsetParent||r.documentElement;e&&(e===r.body||e===r.documentElement)&&"static"===M.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((i=M(e).offset()).top+=M.css(e,"borderTopWidth",!0),i.left+=M.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-M.css(n,"marginTop",!0),left:t.left-i.left-M.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===M.css(e,"position");)e=e.offsetParent;return e||ye})}}),M.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;M.fn[t]=function(e){return X(this,function(e,t,r){var n;if(_(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===r)return n?n[i]:e[t];n?n.scrollTo(o?n.pageXOffset:r,o?r:n.pageYOffset):e[t]=r},t,e,arguments.length)}}),M.each(["top","left"],function(e,r){M.cssHooks[r]=ze(v.pixelPosition,function(e,t){if(t)return t=Be(e,r),Ne.test(t)?M(e).position()[r]+"px":t})}),M.each({Height:"height",Width:"width"},function(a,s){M.each({padding:"inner"+a,content:s,"":"outer"+a},function(n,o){M.fn[o]=function(e,t){var r=arguments.length&&(n||"boolean"!=typeof e),i=n||(!0===e||!0===t?"margin":"border");return X(this,function(e,t,r){var n;return _(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+a],n["scroll"+a],e.body["offset"+a],n["offset"+a],n["client"+a])):void 0===r?M.css(e,t,i):M.style(e,t,r,i)},s,r?e:void 0,r)}})}),M.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,r){M.fn[r]=function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)}}),M.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),M.fn.extend({bind:function(e,t,r){return this.on(e,null,t,r)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,r,n){return this.on(t,e,r,n)},undelegate:function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)}}),M.proxy=function(e,t){var r,n,i;if("string"==typeof t&&(r=e[t],t=e,e=r),y(e))return n=s.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(s.call(arguments)))}).guid=e.guid=e.guid||M.guid++,i},M.holdReady=function(e){e?M.readyWait++:M.ready(!0)},M.isArray=Array.isArray,M.parseJSON=JSON.parse,M.nodeName=E,M.isFunction=y,M.isWindow=_,M.camelCase=G,M.type=x,M.now=Date.now,M.isNumeric=function(e){var t=M.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return M});var Yt=T.jQuery,Gt=T.$;return M.noConflict=function(e){return T.$===M&&(T.$=Gt),e&&T.jQuery===M&&(T.jQuery=Yt),M},e||(T.jQuery=T.$=M),M}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.OptimalSelect=t():e.OptimalSelect=t()}(this,function(){return function(r){var n={};function i(e){if(n[e])return n[e].exports;var t=n[e]={i:e,l:!1,exports:{}};return r[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return i.m=r,i.c=n,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=6)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.convertNodeList=function(e){for(var t=e.length,r=new Array(t),n=0;n<t;n++)r[n]=e[n];return r},t.escapeValue=function(e){return e&&e.replace(/['"`\\/:\?&!#$%^()[\]{|}*+;,.<=>@~]/g,"\\$&").replace(/\n/g,"A")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCommonAncestor=function(e){var t=(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).root,n=void 0===t?document:t,i=[];e.forEach(function(e,t){for(var r=[];e!==n;)e=e.parentNode,r.unshift(e);i[t]=r}),i.sort(function(e,t){return e.length-t.length});for(var r=i.shift(),o=null,a=function(){var t=r[s],e=i.some(function(e){return!e.some(function(e){return e===t})});if(e)return"break";o=t},s=0,u=r.length;s<u;s++){var c=a();if("break"===c)break}return o},t.getCommonProperties=function(e){var l={classes:[],attributes:{},tag:null};return e.forEach(function(e){var i,n,t,r,o=l.classes,a=l.attributes,s=l.tag;if(void 0!==o){var u=e.getAttribute("class");u?(u=u.trim().split(" "),o.length?(o=o.filter(function(t){return u.some(function(e){return e===t})})).length?l.classes=o:delete l.classes:l.classes=u):delete l.classes}if(void 0!==a&&(i=e.attributes,n=Object.keys(i).reduce(function(e,t){var r=i[t],n=r.name;return r&&"class"!==n&&(e[n]=r.value),e},{}),t=Object.keys(n),r=Object.keys(a),t.length?r.length?(a=r.reduce(function(e,t){var r=a[t];return r===n[t]&&(e[t]=r),e},{}),Object.keys(a).length?l.attributes=a:delete l.attributes):l.attributes=n:delete l.attributes),void 0!==s){var c=e.tagName.toLowerCase();s?c!==s&&delete l.tag:l.tag=c}}),l}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Array.isArray(t)||(t=t.length?(0,f.convertNodeList)(t):[t]);if(!t.length||t.some(function(e){return 1!==e.nodeType}))throw new Error('Invalid input - to compare HTMLElements its necessary to provide a reference of the selected node(s)! (missing "elements")');(0,l.default)(t[0],r);var n=e.replace(/> /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(n.length<2)return h("",e,"",t);var i=[n.pop()];for(;1<n.length;){var o=n.pop(),a=n.join(" "),s=i.join(" "),u=a+" "+s,c=document.querySelectorAll(u);c.length!==t.length&&i.unshift(h(a,o,s,t))}i.unshift(n[0]),(n=i)[0]=h("",n[0],n.slice(1).join(" "),t),n[n.length-1]=h(n.slice(0,-1).join(" "),n[n.length-1],"",t);return n.join(" ").replace(/>/g,"> ").trim()};var n,i=r(3),l=(n=i)&&n.__esModule?n:{default:n},f=r(0);function h(r,n,i,o){if(r.length&&(r+=" "),i.length&&(i=" "+i),/\[*\]/.test(n)){var e=n.replace(/=.*$/,"]"),a=""+r+e+i;if(g(document.querySelectorAll(a),o))n=e;else for(var s=document.querySelectorAll(""+r+e),t=function(){var t=s[u];if(o.some(function(e){return t.contains(e)})){var e=t.tagName.toLowerCase();return a=""+r+e+i,g(document.querySelectorAll(a),o)&&(n=e),"break"}},u=0,c=s.length;u<c;u++){if("break"===t())break}}if(/>/.test(n)){var l=n.replace(/>/,"");a=""+r+l+i;g(document.querySelectorAll(a),o)&&(n=l)}if(/:nth-child/.test(n)){var f=n.replace(/nth-child/g,"nth-of-type");a=""+r+f+i;g(document.querySelectorAll(a),o)&&(n=f)}if(/\.\S+\.\S+/.test(n)){for(var h=n.trim().split(".").slice(1).map(function(e){return"."+e}).sort(function(e,t){return e.length-t.length});h.length;){var d=n.replace(h.shift(),"").trim();if(!(a=(""+r+d+i).trim()).length||">"===a.charAt(0)||">"===a.charAt(a.length-1))break;g(document.querySelectorAll(a),o)&&(n=d)}if((h=n&&n.match(/\./g))&&2<h.length){var p=document.querySelectorAll(""+r+n),m=function(){var t=p[u];if(o.some(function(e){return t.contains(e)})){var e=t.tagName.toLowerCase();return a=""+r+e+i,g(document.querySelectorAll(a),o)&&(n=e),"break"}};for(u=0,c=p.length;u<c;u++){if("break"===m())break}}}return n}function g(r,e){var n=r.length;return n===e.length&&e.every(function(e){for(var t=0;t<n;t++)if(r[t]===e)return!0;return!1})}e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var d="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},p=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){i=!0,o=e}finally{try{!n&&s.return&&s.return()}finally{if(i)throw o}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};function m(e,r){e.forEach(function(e){var t=!0;r(e,function(){return t=!1}),e.childTags&&t&&m(e.childTags,r)})}function g(e,t,r){for(;e.parent;){if(r(e=e.parent))return e;if(e===t)break}return null}t.default=function(e,t){return!1;var r=Object.getPrototypeOf(!0);Object.getOwnPropertyDescriptor(r,"childTags")||Object.defineProperty(r,"childTags",{enumerable:!0,get:function(){return this.children.filter(function(e){return"tag"===e.type||"script"===e.type||"style"===e.type})}});Object.getOwnPropertyDescriptor(r,"attributes")||Object.defineProperty(r,"attributes",{enumerable:!0,get:function(){var n=this.attribs,e=Object.keys(n),t=e.reduce(function(e,t,r){return e[r]={name:t,value:n[t]},e},{});return Object.defineProperty(t,"length",{enumerable:!1,configurable:!1,value:e.length}),t}});r.getAttribute||(r.getAttribute=function(e){return this.attribs[e]||null});r.getElementsByTagName||(r.getElementsByTagName=function(t){var r=[];return m(this.childTags,function(e){e.name!==t&&"*"!==t||r.push(e)}),r});r.getElementsByClassName||(r.getElementsByClassName=function(e){var r=e.trim().replace(/\s+/g," ").split(" "),n=[];return m([this],function(e){var t=e.attribs.class;t&&r.every(function(e){return-1<t.indexOf(e)})&&n.push(e)}),n});r.querySelectorAll||(r.querySelectorAll=function(e){var r=this,n=function(e){return e.split(" ").reverse().map(function(e,t){var a=0===t,r=e.split(":"),n=p(r,2),s=n[0],i=n[1],u=null,c=null;if(function(){switch(!0){case/>/.test(s):c=function(t){return function(e){return e(t.parent)&&t.parent}};break;case/^\./.test(s):var r=s.substr(1).split(".");u=function(e){var t=e.attribs.class;return t&&r.every(function(e){return-1<t.indexOf(e)})},c=function(e,t){return a?e.getElementsByClassName(r.join(" ")):"function"==typeof e?e(u):g(e,t,u)};break;case/^\[/.test(s):var e=s.replace(/\[|\]|"/g,"").split("="),t=p(e,2),n=t[0],i=t[1];u=function(e){var t=-1<Object.keys(e.attribs).indexOf(n);return t&&(!i||e.attribs[n]===i)},c=function(e,t){if(a){var r=function(){var t=[];return m([e],function(e){u(e)&&t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;case/^#/.test(s):var o=s.substr(1);u=function(e){return e.attribs.id===o},c=function(e,t){if(a){var r=function(){var r=[];return m([e],function(e,t){u(e)&&(r.push(e),t())}),{v:r}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;case/\*/.test(s):u=function(e){return!0},c=function(e,t){if(a){var r=function(){var t=[];return m([e],function(e){return t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)};break;default:u=function(e){return e.name===s},c=function(e,t){if(a){var r=function(){var t=[];return m([e],function(e){u(e)&&t.push(e)}),{v:t}}();if("object"===(void 0===r?"undefined":d(r)))return r.v}return"function"==typeof e?e(u):g(e,t,u)}}}(),!i)return c;var o=i.match(/-(child|type)\((\d+)\)$/),l=o[1],f=parseInt(o[2],10)-1,h=function(t){if(t){var e=t.parent.childTags;"type"===l&&(e=e.filter(u));var r=e.findIndex(function(e){return e===t});if(r===f)return!0}return!1};return function(e){var t=c(e);return a?t.reduce(function(e,t){return h(t)&&e.push(t),e},[]):h(t)&&t}})}(e=e.replace(/(>)(\S)/g,"$1 $2").trim()),t=n.shift(),i=n.length;return t(this).filter(function(e){for(var t=0;t<i;){if(!(e=n[t](e,r)))return!1;t+=1}return!0})});r.contains||(r.contains=function(r){var n=!1;return m([this],function(e,t){e===r&&(n=!0,t())}),n});return!0},e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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};t.getSingleSelector=l,t.getMultiSelector=f,t.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return!e.length||e.name?l(e,t):f(e,t)};var a=o(r(3)),i=o(r(5)),s=o(r(2)),u=r(0),c=r(1);function o(e){return e&&e.__esModule?e:{default:e}}function l(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(3===e.nodeType&&(e=e.parentNode),1!==e.nodeType)throw new Error('Invalid input - only HTMLElements or representations of them are supported! (not "'+(void 0===e?"undefined":n(e))+'")');(0,a.default)(e,t);var r=(0,i.default)(e,t);return(0,s.default)(r,e,t)}function f(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};if(Array.isArray(e)||(e=(0,u.convertNodeList)(e)),e.some(function(e){return 1!==e.nodeType}))throw new Error("Invalid input - only an Array of HTMLElements or representations of them is supported!");(0,a.default)(e[0],t);var r=l((0,c.getCommonAncestor)(e,t),t),n=function(e){var t=(0,c.getCommonProperties)(e),r=t.classes,n=t.attributes,i=t.tag,o=[];i&&o.push(i);if(r){var a=r.map(function(e){return"."+e}).join("");o.push(a)}if(n){var s=Object.keys(n).reduce(function(e,t){return e.push("["+t+'="'+n[t]+'"]'),e},[]).join("");o.push(s)}o.length;return[o.join("")]}(e)[0],i=(0,s.default)(r+" "+n,e,t),o=(0,u.convertNodeList)(document.querySelectorAll(i));return e.every(function(t){return o.some(function(e){return e===t})})?i:console.warn("\n The selected elements can't be efficiently mapped.\n Its probably best to use multiple single selectors instead!\n ",e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=t.root,n=void 0===r?document:r,i=t.skip,o=void 0===i?null:i,a=t.priority,s=void 0===a?["id","class","href","src"]:a,u=t.ignore,c=void 0===u?{}:u,l=[],f=e,h=l.length,d=!1,p=o&&(Array.isArray(o)?o:[o]).map(function(t){return"function"!=typeof t?function(e){return e===t}:t}),m=function(t){return o&&p.some(function(e){return e(t)})};Object.keys(c).forEach(function(e){"class"===e&&(d=!0);var r=c[e];"function"!=typeof r&&("number"==typeof r&&(r=r.toString()),"string"==typeof r&&(r=new RegExp((0,v.escapeValue)(r).replace(/\\/g,"\\\\"))),"boolean"==typeof r&&(r=r?/(?:)/:/.^/),c[e]=function(e,t){return r.test(t)})}),d&&function(){var n=c.attribute;c.attribute=function(e,t,r){return c.class(t)||n&&n(e,t,r)}}();for(;f!==n;){if(!0!==m(f)){if(y(s,f,c,l,n))break;if(_(f,c,l,n))break;y(s,f,c,l),l.length===h&&_(f,c,l),l.length===h&&b(s,f,c,l)}f=f.parentNode,h=l.length}if(f===n){var g=x(s,f,c);l.unshift(g)}return l.join(" ")};var v=r(0),h={attribute:function(e){return-1<["style","data-reactid","data-react-checksum"].indexOf(e)}};function y(e,t,r,n){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:t.parentNode,o=a(e,t,r);if(o&&1===i.querySelectorAll(o).length)return n.unshift(o),!0;return!1}function a(i,e,t){for(var o=e.attributes,r=Object.keys(o).sort(function(e,t){var r=i.indexOf(o[e].name),n=i.indexOf(o[t].name);return-1===n?-1===r?0:-1:r-n}),n=0,a=r.length;n<a;n++){var s=r[n],u=o[s],c=u.name,l=(0,v.escapeValue)(u.value);if(!d(t[c]||t.attribute,c,l,h[c]||h.attribute)){var f="["+c+'="'+l+'"]';if(!1===/\b\d/.test(l))if("id"===c&&(f="#"+l),"class"===c)f="."+l.trim().replace(/\s+/g,".");return f}}return null}function _(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:e.parentNode,i=o(e,t);if(i&&1===n.getElementsByTagName(i).length)return r.unshift(i),!0;return!1}function o(e,t){var r=e.tagName.toLowerCase();return d(t.tag,null,r)?null:r}function b(e,t,r,n){for(var i=t.parentNode,o=i.childTags||i.children,a=0,s=o.length;a<s;a++){var u=o[a];if(u===t){var c=x(e,u,r);if(!c)return console.warn("\n Element couldn't be matched through strict ignore pattern!\n ",u,r,c);var l="> "+c+":nth-child("+(a+1)+")";return n.unshift(l),!0}}return!1}function x(e,t,r){var n=a(e,t,r);return n||(n=o(t,r)),n}function d(e,t,r,n){if(!r)return!0;var i=e||n;return!!i&&i(t,r,n)}e.exports=t.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.common=t.optimize=t.getMultiSelector=t.getSingleSelector=t.select=void 0;var n=r(4);Object.defineProperty(t,"getSingleSelector",{enumerable:!0,get:function(){return n.getSingleSelector}}),Object.defineProperty(t,"getMultiSelector",{enumerable:!0,get:function(){return n.getMultiSelector}});var i=s(n),o=s(r(2)),a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(r(1));function s(e){return e&&e.__esModule?e:{default:e}}t.select=i.default,t.optimize=o.default,t.common=a,t.default=i.default}])}),function(o,i,e,f){"use strict";var a,s=["","webkit","Moz","MS","ms","o"],t=i.createElement("div"),r="function",u=Math.round,h=Math.abs,d=Date.now;function c(e,t,r){return setTimeout(y(e,r),t)}function n(e,t,r){return!!Array.isArray(e)&&(l(e,r[t],r),!0)}function l(e,t,r){var n;if(e)if(e.forEach)e.forEach(t,r);else if(e.length!==f)for(n=0;n<e.length;)t.call(r,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n,e)}function p(n,e,t){var i="DEPRECATED METHOD: "+e+"\n"+t+" AT \n";return function(){var e=new Error("get-stack-trace"),t=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=o.console&&(o.console.warn||o.console.log);return r&&r.call(o.console,i,t),n.apply(this,arguments)}}a="function"!=typeof Object.assign?function(e){if(e===f||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(n!==f&&null!==n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t}:Object.assign;var m=p(function(e,t,r){for(var n=Object.keys(t),i=0;i<n.length;)(!r||r&&e[n[i]]===f)&&(e[n[i]]=t[n[i]]),i++;return e},"extend","Use `assign`."),g=p(function(e,t){return m(e,t,!0)},"merge","Use `assign`.");function v(e,t,r){var n,i=t.prototype;(n=e.prototype=Object.create(i)).constructor=e,n._super=i,r&&a(n,r)}function y(e,t){return function(){return e.apply(t,arguments)}}function _(e,t){return typeof e==r?e.apply(t&&t[0]||f,t):e}function b(e,t){return e===f?t:e}function x(t,e,r){l(M(e),function(e){t.addEventListener(e,r,!1)})}function w(t,e,r){l(M(e),function(e){t.removeEventListener(e,r,!1)})}function T(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function S(e,t){return-1<e.indexOf(t)}function M(e){return e.trim().split(/\s+/g)}function P(e,t,r){if(e.indexOf&&!r)return e.indexOf(t);for(var n=0;n<e.length;){if(r&&e[n][r]==t||!r&&e[n]===t)return n;n++}return-1}function E(e){return Array.prototype.slice.call(e,0)}function C(e,r,t){for(var n=[],i=[],o=0;o<e.length;){var a=r?e[o][r]:e[o];P(i,a)<0&&n.push(e[o]),i[o]=a,o++}return t&&(n=r?n.sort(function(e,t){return e[r]>t[r]}):n.sort()),n}function k(e,t){for(var r,n,i=t[0].toUpperCase()+t.slice(1),o=0;o<s.length;){if((n=(r=s[o])?r+i:t)in e)return n;o++}return f}var A=1;function O(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||o}var R="ontouchstart"in o,I=k(o,"PointerEvent")!==f,D=R&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),L="touch",N="mouse",j=25,F=1,B=4,z=8,U=1,X=2,q=4,H=8,Y=16,G=X|q,W=H|Y,V=G|W,K=["x","y"],J=["clientX","clientY"];function Z(t,e){var r=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){_(t.options.enable,[t])&&r.handler(e)},this.init()}function Q(e,t,r){var n=r.pointers.length,i=r.changedPointers.length,o=t&F&&n-i==0,a=t&(B|z)&&n-i==0;r.isFirst=!!o,r.isFinal=!!a,o&&(e.session={}),r.eventType=t,function(e,t){var r=e.session,n=t.pointers,i=n.length;r.firstInput||(r.firstInput=$(t));1<i&&!r.firstMultiple?r.firstMultiple=$(t):1===i&&(r.firstMultiple=!1);var o=r.firstInput,a=r.firstMultiple,s=a?a.center:o.center,u=t.center=ee(n);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=ie(s,u),t.distance=ne(s,u),function(e,t){var r=t.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==F&&o.eventType!==B||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=e.offsetDelta={x:r.x,y:r.y});t.deltaX=i.x+(r.x-n.x),t.deltaY=i.y+(r.y-n.y)}(r,t),t.offsetDirection=re(t.deltaX,t.deltaY);var c=te(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=h(c.x)>h(c.y)?c.x:c.y,t.scale=a?function(e,t){return ne(t[0],t[1],J)/ne(e[0],e[1],J)}(a.pointers,n):1,t.rotation=a?function(e,t){return ie(t[1],t[0],J)+ie(e[1],e[0],J)}(a.pointers,n):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,function(e,t){var r,n,i,o,a=e.lastInterval||t,s=t.timeStamp-a.timeStamp;if(t.eventType!=z&&(j<s||a.velocity===f)){var u=t.deltaX-a.deltaX,c=t.deltaY-a.deltaY,l=te(s,u,c);n=l.x,i=l.y,r=h(l.x)>h(l.y)?l.x:l.y,o=re(u,c),e.lastInterval=t}else r=a.velocity,n=a.velocityX,i=a.velocityY,o=a.direction;t.velocity=r,t.velocityX=n,t.velocityY=i,t.direction=o}(r,t);var l=e.element;T(t.srcEvent.target,l)&&(l=t.srcEvent.target);t.target=l}(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function $(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:u(e.pointers[r].clientX),clientY:u(e.pointers[r].clientY)},r++;return{timeStamp:d(),pointers:t,center:ee(t),deltaX:e.deltaX,deltaY:e.deltaY}}function ee(e){var t=e.length;if(1===t)return{x:u(e[0].clientX),y:u(e[0].clientY)};for(var r=0,n=0,i=0;i<t;)r+=e[i].clientX,n+=e[i].clientY,i++;return{x:u(r/t),y:u(n/t)}}function te(e,t,r){return{x:t/e||0,y:r/e||0}}function re(e,t){return e===t?U:h(e)>=h(t)?e<0?X:q:t<0?H:Y}function ne(e,t,r){r||(r=K);var n=t[r[0]]-e[r[0]],i=t[r[1]]-e[r[1]];return Math.sqrt(n*n+i*i)}function ie(e,t,r){r||(r=K);var n=t[r[0]]-e[r[0]],i=t[r[1]]-e[r[1]];return 180*Math.atan2(i,n)/Math.PI}Z.prototype={handler:function(){},init:function(){this.evEl&&x(this.element,this.evEl,this.domHandler),this.evTarget&&x(this.target,this.evTarget,this.domHandler),this.evWin&&x(O(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&w(this.element,this.evEl,this.domHandler),this.evTarget&&w(this.target,this.evTarget,this.domHandler),this.evWin&&w(O(this.element),this.evWin,this.domHandler)}};var oe={mousedown:F,mousemove:2,mouseup:B},ae="mousedown",se="mousemove mouseup";function ue(){this.evEl=ae,this.evWin=se,this.pressed=!1,Z.apply(this,arguments)}v(ue,Z,{handler:function(e){var t=oe[e.type];t&F&&0===e.button&&(this.pressed=!0),2&t&&1!==e.which&&(t=B),this.pressed&&(t&B&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:N,srcEvent:e}))}});var ce={pointerdown:F,pointermove:2,pointerup:B,pointercancel:z,pointerout:z},le={2:L,3:"pen",4:N,5:"kinect"},fe="pointerdown",he="pointermove pointerup pointercancel";function de(){this.evEl=fe,this.evWin=he,Z.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(fe="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),v(de,Z,{handler:function(e){var t=this.store,r=!1,n=e.type.toLowerCase().replace("ms",""),i=ce[n],o=le[e.pointerType]||e.pointerType,a=o==L,s=P(t,e.pointerId,"pointerId");i&F&&(0===e.button||a)?s<0&&(t.push(e),s=t.length-1):i&(B|z)&&(r=!0),s<0||(t[s]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),r&&t.splice(s,1))}});var pe={touchstart:F,touchmove:2,touchend:B,touchcancel:z};function me(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,Z.apply(this,arguments)}v(me,Z,{handler:function(e){var t=pe[e.type];if(t===F&&(this.started=!0),this.started){var r=function(e,t){var r=E(e.touches),n=E(e.changedTouches);t&(B|z)&&(r=C(r.concat(n),"identifier",!0));return[r,n]}.call(this,e,t);t&(B|z)&&r[0].length-r[1].length==0&&(this.started=!1),this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:L,srcEvent:e})}}});var ge={touchstart:F,touchmove:2,touchend:B,touchcancel:z},ve="touchstart touchmove touchend touchcancel";function ye(){this.evTarget=ve,this.targetIds={},Z.apply(this,arguments)}v(ye,Z,{handler:function(e){var t=ge[e.type],r=function(e,t){var r=E(e.touches),n=this.targetIds;if(t&(2|F)&&1===r.length)return n[r[0].identifier]=!0,[r,r];var i,o,a=E(e.changedTouches),s=[],u=this.target;if(o=r.filter(function(e){return T(e.target,u)}),t===F)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;i=0;for(;i<a.length;)n[a[i].identifier]&&s.push(a[i]),t&(B|z)&&delete n[a[i].identifier],i++;return s.length?[C(o.concat(s),"identifier",!0),s]:void 0}.call(this,e,t);r&&this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:L,srcEvent:e})}});var _e=2500;function be(){Z.apply(this,arguments);var e=y(this.handler,this);this.touch=new ye(this.manager,e),this.mouse=new ue(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function xe(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var r={x:t.clientX,y:t.clientY};this.lastTouches.push(r);var n=this.lastTouches;setTimeout(function(){var e=n.indexOf(r);-1<e&&n.splice(e,1)},_e)}}v(be,Z,{handler:function(e,t,r){var n=r.pointerType==L,i=r.pointerType==N;if(!(i&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(n)(function(e,t){e&F?(this.primaryTouch=t.changedPointers[0].identifier,xe.call(this,t)):e&(B|z)&&xe.call(this,t)}).call(this,t,r);else if(i&&function(e){for(var t=e.srcEvent.clientX,r=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(t-i.x),a=Math.abs(r-i.y);if(o<=25&&a<=25)return!0}return!1}.call(this,r))return;this.callback(e,t,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var we=k(t.style,"touchAction"),Te=we!==f,Se="compute",Me="manipulation",Pe="none",Ee="pan-x",Ce="pan-y",ke=function(){if(!Te)return!1;var t={},r=o.CSS&&o.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(e){t[e]=!r||o.CSS.supports("touch-action",e)}),t}();function Ae(e,t){this.manager=e,this.set(t)}Ae.prototype={set:function(e){e==Se&&(e=this.compute()),Te&&this.manager.element.style&&ke[e]&&(this.manager.element.style[we]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return l(this.manager.recognizers,function(e){_(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(e){if(S(e,Pe))return Pe;var t=S(e,Ee),r=S(e,Ce);if(t&&r)return Pe;if(t||r)return t?Ee:Ce;if(S(e,Me))return Me;return"auto"}(t.join(" "))},preventDefaults:function(e){var t=e.srcEvent,r=e.offsetDirection;if(this.manager.session.prevented)t.preventDefault();else{var n=this.actions,i=S(n,Pe)&&!ke[Pe],o=S(n,Ce)&&!ke[Ce],a=S(n,Ee)&&!ke[Ee];if(i){var s=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(s&&u&&c)return}if(!a||!o)return i||o&&r&G||a&&r&W?this.preventSrc(t):void 0}},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var Oe=1;function Re(e){this.options=a({},this.defaults,e||{}),this.id=A++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=Oe,this.simultaneous={},this.requireFail=[]}function Ie(e){return 16&e?"cancel":8&e?"end":4&e?"move":2&e?"start":""}function De(e){return e==Y?"down":e==H?"up":e==X?"left":e==q?"right":""}function Le(e,t){var r=t.manager;return r?r.get(e):e}function Ne(){Re.apply(this,arguments)}function je(){Ne.apply(this,arguments),this.pX=null,this.pY=null}function Fe(){Ne.apply(this,arguments)}function Be(){Re.apply(this,arguments),this._timer=null,this._input=null}function ze(){Ne.apply(this,arguments)}function Ue(){Ne.apply(this,arguments)}function Xe(){Re.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function qe(e,t){return(t=t||{}).recognizers=b(t.recognizers,qe.defaults.preset),new He(e,t)}Re.prototype={defaults:{},set:function(e){return a(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(n(e,"recognizeWith",this))return this;var t=this.simultaneous;return t[(e=Le(e,this)).id]||(t[e.id]=e).recognizeWith(this),this},dropRecognizeWith:function(e){return n(e,"dropRecognizeWith",this)||(e=Le(e,this),delete this.simultaneous[e.id]),this},requireFailure:function(e){if(n(e,"requireFailure",this))return this;var t=this.requireFail;return-1===P(t,e=Le(e,this))&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(n(e,"dropRequireFailure",this))return this;e=Le(e,this);var t=P(this.requireFail,e);return-1<t&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(t){var r=this,e=this.state;function n(e){r.manager.emit(e,t)}e<8&&n(r.options.event+Ie(e)),n(r.options.event),t.additionalEvent&&n(t.additionalEvent),8<=e&&n(r.options.event+Ie(e))},tryEmit:function(e){if(this.canEmit())return this.emit(e);this.state=32},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(32|Oe)))return!1;e++}return!0},recognize:function(e){var t=a({},e);if(!_(this.options.enable,[this,t]))return this.reset(),void(this.state=32);56&this.state&&(this.state=Oe),this.state=this.process(t),30&this.state&&this.tryEmit(t)},process:function(e){},getTouchAction:function(){},reset:function(){}},v(Ne,Re,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,r=e.eventType,n=6&t,i=this.attrTest(e);return n&&(r&z||!i)?16|t:n||i?r&B?8|t:2&t?4|t:2:32}}),v(je,Ne,{defaults:{event:"pan",threshold:10,pointers:1,direction:V},getTouchAction:function(){var e=this.options.direction,t=[];return e&G&&t.push(Ce),e&W&&t.push(Ee),t},directionTest:function(e){var t=this.options,r=!0,n=e.distance,i=e.direction,o=e.deltaX,a=e.deltaY;return i&t.direction||(n=t.direction&G?(i=0===o?U:o<0?X:q,r=o!=this.pX,Math.abs(e.deltaX)):(i=0===a?U:a<0?H:Y,r=a!=this.pY,Math.abs(e.deltaY))),e.direction=i,r&&n>t.threshold&&i&t.direction},attrTest:function(e){return Ne.prototype.attrTest.call(this,e)&&(2&this.state||!(2&this.state)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=De(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),v(Fe,Ne,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||2&this.state)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),v(Be,Re,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,n=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!n||!r||e.eventType&(B|z)&&!i)this.reset();else if(e.eventType&F)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},t.time,this);else if(e.eventType&B)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(e){8===this.state&&(e&&e.eventType&B?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),v(ze,Ne,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Pe]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||2&this.state)}}),v(Ue,Ne,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:G|W,pointers:1},getTouchAction:function(){return je.prototype.getTouchAction.call(this)},attrTest:function(e){var t,r=this.options.direction;return r&(G|W)?t=e.overallVelocity:r&G?t=e.overallVelocityX:r&W&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&h(t)>this.options.velocity&&e.eventType&B},emit:function(e){var t=De(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),v(Xe,Re,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Me]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,n=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&F&&0===this.count)return this.failTimeout();if(n&&i&&r){if(e.eventType!=B)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,a=!this.pCenter||ne(this.pCenter,e.center)<t.posThreshold;if(this.pTime=e.timeStamp,this.pCenter=e.center,a&&o?this.count+=1:this.count=1,this._input=e,0==this.count%t.taps)return this.hasRequireFailures()?(this._timer=c(function(){this.state=8,this.tryEmit()},t.interval,this),2):8}return 32},failTimeout:function(){return this._timer=c(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),qe.VERSION="2.0.7",qe.defaults={domEvents:!1,touchAction:Se,enable:!0,inputTarget:null,inputClass:null,preset:[[ze,{enable:!1}],[Fe,{enable:!1},["rotate"]],[Ue,{direction:G}],[je,{direction:G},["swipe"]],[Xe],[Xe,{event:"doubletap",taps:2},["tap"]],[Be]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function He(e,t){this.options=a({},qe.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=function(e){var t=e.options.inputClass;return new(t||(I?de:D?ye:R?be:ue))(e,Q)}(this),this.touchAction=new Ae(this,this.options.touchAction),Ye(this,!0),l(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function Ye(r,n){var i,o=r.element;o.style&&(l(r.options.cssProps,function(e,t){i=k(o.style,t),n?(r.oldCssProps[i]=o.style[i],o.style[i]=e):o.style[i]=r.oldCssProps[i]||""}),n||(r.oldCssProps={}))}He.prototype={set:function(e){return a(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?2:1},recognize:function(e){var t=this.session;if(!t.stopped){var r;this.touchAction.preventDefaults(e);var n=this.recognizers,i=t.curRecognizer;(!i||i&&8&i.state)&&(i=t.curRecognizer=null);for(var o=0;o<n.length;)r=n[o],2===t.stopped||i&&r!=i&&!r.canRecognizeWith(i)?r.reset():r.recognize(e),!i&&14&r.state&&(i=t.curRecognizer=r),o++}},get:function(e){if(e instanceof Re)return e;for(var t=this.recognizers,r=0;r<t.length;r++)if(t[r].options.event==e)return t[r];return null},add:function(e){if(n(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),(e.manager=this).touchAction.update(),e},remove:function(e){if(n(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,r=P(t,e);-1!==r&&(t.splice(r,1),this.touchAction.update())}return this},on:function(e,t){if(e!==f&&t!==f){var r=this.handlers;return l(M(e),function(e){r[e]=r[e]||[],r[e].push(t)}),this}},off:function(e,t){if(e!==f){var r=this.handlers;return l(M(e),function(e){t?r[e]&&r[e].splice(P(r[e],t),1):delete r[e]}),this}},emit:function(e,t){this.options.domEvents&&function(e,t){var r=i.createEvent("Event");r.initEvent(e,!0,!0),(r.gesture=t).target.dispatchEvent(r)}(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](t),n++}},destroy:function(){this.element&&Ye(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},a(qe,{INPUT_START:F,INPUT_MOVE:2,INPUT_END:B,INPUT_CANCEL:z,STATE_POSSIBLE:Oe,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:U,DIRECTION_LEFT:X,DIRECTION_RIGHT:q,DIRECTION_UP:H,DIRECTION_DOWN:Y,DIRECTION_HORIZONTAL:G,DIRECTION_VERTICAL:W,DIRECTION_ALL:V,Manager:He,Input:Z,TouchAction:Ae,TouchInput:ye,MouseInput:ue,PointerEventInput:de,TouchMouseInput:be,SingleTouchInput:me,Recognizer:Re,AttrRecognizer:Ne,Tap:Xe,Pan:je,Swipe:Ue,Pinch:Fe,Rotate:ze,Press:Be,on:x,off:w,each:l,merge:g,extend:m,assign:a,inherit:v,bindFn:y,prefixed:k}),(void 0!==o?o:"undefined"!=typeof self?self:{}).Hammer=qe,"function"==typeof define&&define.amd?define(function(){return qe}):"undefined"!=typeof module&&module.exports?module.exports=qe:o.Hammer=qe}(window,document),function(e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():window.propagating=e()}(function(){var l=null;return function n(i,e){var o=e||{preventDefault:!1};if(i.Manager){var a=i,t=function(e,t){var r=Object.create(o);return t&&a.assign(r,t),n(new a(e,r),r)};return a.assign(t,a),t.Manager=function(e,t){var r=Object.create(o);return t&&a.assign(r,t),n(new a.Manager(e,r),r)},t}var s=Object.create(i),r=i.element;function u(e){return e.match(/[^ ]+/g)}function c(e){if("hammer.input"!==e.type){if(e.srcEvent._handled||(e.srcEvent._handled={}),e.srcEvent._handled[e.type])return;e.srcEvent._handled[e.type]=!0}var t=!1;e.stopPropagation=function(){t=!0};var r=e.srcEvent.stopPropagation.bind(e.srcEvent);"function"==typeof r&&(e.srcEvent.stopPropagation=function(){r(),e.stopPropagation()});for(var n=e.firstTarget=l;n&&!t;){var i=n.hammer;if(i)for(var o,a=0;a<i.length;a++)if(o=i[a]._handlers[e.type])for(var s=0;s<o.length&&!t;s++)o[s](e);n=n.parentNode}}return r.hammer||(r.hammer=[]),r.hammer.push(s),i.on("hammer.input",function(e){!0!==o.preventDefault&&o.preventDefault!==e.pointerType||e.preventDefault(),e.isFirst&&(l=e.target)}),s._handlers={},s.on=function(e,r){return u(e).forEach(function(e){var t=s._handlers[e];t||(s._handlers[e]=t=[],i.on(e,c)),t.push(r)}),s},s.off=function(e,r){return u(e).forEach(function(e){var t=s._handlers[e];t&&(0<(t=r?t.filter(function(e){return e!==r}):[]).length?s._handlers[e]=t:(i.off(e,c),delete s._handlers[e]))}),s},s.emit=function(e,t){l=t.target,i.emit(e,t)},s.destroy=function(){var e=i.element.hammer,t=e.indexOf(s);-1!==t&&e.splice(t,1),e.length||delete i.element.hammer,s._handlers={},i.destroy()},s}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.d3=e.d3||{})}(this,function(z){"use strict";function s(e,t){return e<t?-1:t<e?1:t<=e?0:NaN}function S(o){return 1===o.length&&(o=function(r){return function(e,t){return s(r(e),t)}}(o)),{left:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;o(e[i],t)<0?r=1+i:n=i}return r},right:function(e,t,r,n){for(null==r&&(r=0),null==n&&(n=e.length);r<n;){var i=r+n>>>1;0<o(e[i],t)?n=i:r=1+i}return r}}}var e=S(s),m=e.right,t=e.left;function l(e,t){return[e,t]}function c(e){return null===e?NaN:+e}function n(e,t){var r,n,i=e.length,o=0,a=-1,s=0,u=0;if(null==t)for(;++a<i;)isNaN(r=c(e[a]))||(u+=(n=r-s)*(r-(s+=n/++o)));else for(;++a<i;)isNaN(r=c(t(e[a],a,e)))||(u+=(n=r-s)*(r-(s+=n/++o)));if(1<o)return u/(o-1)}function i(e,t){var r=n(e,t);return r?Math.sqrt(r):r}function u(e,t){var r,n,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(r=e[a])&&r<=r)for(n=i=r;++a<o;)null!=(r=e[a])&&(r<n&&(n=r),i<r&&(i=r))}else for(;++a<o;)if(null!=(r=t(e[a],a,e))&&r<=r)for(n=i=r;++a<o;)null!=(r=t(e[a],a,e))&&(r<n&&(n=r),i<r&&(i=r));return[n,i]}var r=Array.prototype,o=r.slice,a=r.map;function f(e){return function(){return e}}function g(e){return e}function M(e,t,r){e=+e,t=+t,r=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+r;for(var n=-1,i=0|Math.max(0,Math.ceil((t-e)/r)),o=new Array(i);++n<i;)o[n]=e+n*r;return o}var h=Math.sqrt(50),d=Math.sqrt(10),p=Math.sqrt(2);function v(e,t,r){var n,i,o,a,s=-1;if(r=+r,(e=+e)===(t=+t)&&0<r)return[e];if((n=t<e)&&(i=e,e=t,t=i),0===(a=y(e,t,r))||!isFinite(a))return[];if(0<a)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return n&&o.reverse(),o}function y(e,t,r){var n=(t-e)/Math.max(0,r),i=Math.floor(Math.log(n)/Math.LN10),o=n/Math.pow(10,i);return 0<=i?(h<=o?10:d<=o?5:p<=o?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(h<=o?10:d<=o?5:p<=o?2:1)}function P(e,t,r){var n=Math.abs(t-e)/Math.max(0,r),i=Math.pow(10,Math.floor(Math.log(n)/Math.LN10)),o=n/i;return h<=o?i*=10:d<=o?i*=5:p<=o&&(i*=2),t<e?-i:i}function _(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1}function b(e,t,r){if(null==r&&(r=c),n=e.length){if((t=+t)<=0||n<2)return+r(e[0],0,e);if(1<=t)return+r(e[n-1],n-1,e);var n,i=(n-1)*t,o=Math.floor(i),a=+r(e[o],o,e);return a+(+r(e[o+1],o+1,e)-a)*(i-o)}}function x(e,t){var r,n,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(r=e[o])&&r<=r)for(n=r;++o<i;)null!=(r=e[o])&&n<r&&(n=r)}else for(;++o<i;)if(null!=(r=t(e[o],o,e))&&r<=r)for(n=r;++o<i;)null!=(r=t(e[o],o,e))&&n<r&&(n=r);return n}function E(e){for(var t,r,n,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(r=new Array(a);0<=--i;)for(t=(n=e[i]).length;0<=--t;)r[--a]=n[t];return r}function w(e,t){var r,n,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(r=e[o])&&r<=r)for(n=r;++o<i;)null!=(r=e[o])&&r<n&&(n=r)}else for(;++o<i;)if(null!=(r=t(e[o],o,e))&&r<=r)for(n=r;++o<i;)null!=(r=t(e[o],o,e))&&r<n&&(n=r);return n}function T(e){if(!(i=e.length))return[];for(var t=-1,r=w(e,C),n=new Array(r);++t<r;)for(var i,o=-1,a=n[t]=new Array(i);++o<i;)a[o]=e[o][t];return n}function C(e){return e.length}var k=Array.prototype.slice;function A(e){return e}var O=1,R=2,I=3,D=4,L=1e-6;function N(e){return"translate("+(e+.5)+",0)"}function j(e){return"translate(0,"+(e+.5)+")"}function F(){return!this.__axis}function B(m,g){var v=[],y=null,_=null,b=6,x=6,w=3,T=m===O||m===D?-1:1,S=m===D||m===R?"x":"y",M=m===O||m===I?N:j;function t(e){var t=null==y?g.ticks?g.ticks.apply(g,v):g.domain():y,r=null==_?g.tickFormat?g.tickFormat.apply(g,v):A:_,n=Math.max(b,0)+w,i=g.range(),o=+i[0]+.5,a=+i[i.length-1]+.5,s=(g.bandwidth?function(t){var r=Math.max(0,t.bandwidth()-1)/2;return t.round()&&(r=Math.round(r)),function(e){return+t(e)+r}}:function(t){return function(e){return+t(e)}})(g.copy()),u=e.selection?e.selection():e,c=u.selectAll(".domain").data([null]),l=u.selectAll(".tick").data(t,g).order(),f=l.exit(),h=l.enter().append("g").attr("class","tick"),d=l.select("line"),p=l.select("text");c=c.merge(c.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),l=l.merge(h),d=d.merge(h.append("line").attr("stroke","currentColor").attr(S+"2",T*b)),p=p.merge(h.append("text").attr("fill","currentColor").attr(S,T*n).attr("dy",m===O?"0em":m===I?"0.71em":"0.32em")),e!==u&&(c=c.transition(e),l=l.transition(e),d=d.transition(e),p=p.transition(e),f=f.transition(e).attr("opacity",L).attr("transform",function(e){return isFinite(e=s(e))?M(e):this.getAttribute("transform")}),h.attr("opacity",L).attr("transform",function(e){var t=this.parentNode.__axis;return M(t&&isFinite(t=t(e))?t:s(e))})),f.remove(),c.attr("d",m===D||m==R?x?"M"+T*x+","+o+"H0.5V"+a+"H"+T*x:"M0.5,"+o+"V"+a:x?"M"+o+","+T*x+"V0.5H"+a+"V"+T*x:"M"+o+",0.5H"+a),l.attr("opacity",1).attr("transform",function(e){return M(s(e))}),d.attr(S+"2",T*b),p.attr(S,T*n).text(r),u.filter(F).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",m===R?"start":m===D?"end":"middle"),u.each(function(){this.__axis=s})}return t.scale=function(e){return arguments.length?(g=e,t):g},t.ticks=function(){return v=k.call(arguments),t},t.tickArguments=function(e){return arguments.length?(v=null==e?[]:k.call(e),t):v.slice()},t.tickValues=function(e){return arguments.length?(y=null==e?null:k.call(e),t):y&&y.slice()},t.tickFormat=function(e){return arguments.length?(_=e,t):_},t.tickSize=function(e){return arguments.length?(b=x=+e,t):b},t.tickSizeInner=function(e){return arguments.length?(b=+e,t):b},t.tickSizeOuter=function(e){return arguments.length?(x=+e,t):x},t.tickPadding=function(e){return arguments.length?(w=+e,t):w},t}var U={value:function(){}};function X(){for(var e,t=0,r=arguments.length,n={};t<r;++t){if(!(e=arguments[t]+"")||e in n)throw new Error("illegal type: "+e);n[e]=[]}return new q(n)}function q(e){this._=e}function H(e,t){for(var r,n=0,i=e.length;n<i;++n)if((r=e[n]).name===t)return r.value}function Y(e,t,r){for(var n=0,i=e.length;n<i;++n)if(e[n].name===t){e[n]=U,e=e.slice(0,n).concat(e.slice(n+1));break}return null!=r&&e.push({name:t,value:r}),e}q.prototype=X.prototype={constructor:q,on:function(e,t){var r,n=this._,i=function(e,n){return e.trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");if(0<=r&&(t=e.slice(r+1),e=e.slice(0,r)),e&&!n.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})}(e+"",n),o=-1,a=i.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++o<a;)if(r=(e=i[o]).type)n[r]=Y(n[r],e.name,t);else if(null==t)for(r in n)n[r]=Y(n[r],e.name,null);return this}for(;++o<a;)if((r=(e=i[o]).type)&&(r=H(n[r],e.name)))return r},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new q(e)},call:function(e,t){if(0<(r=arguments.length-2))for(var r,n,i=new Array(r),o=0;o<r;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,r=(n=this._[e]).length;o<r;++o)n[o].value.apply(t,i)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var n=this._[e],i=0,o=n.length;i<o;++i)n[i].value.apply(t,r)}};var G="http://www.w3.org/1999/xhtml",W={svg:"http://www.w3.org/2000/svg",xhtml:G,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function V(e){var t=e+="",r=t.indexOf(":");return 0<=r&&"xmlns"!==(t=e.slice(0,r))&&(e=e.slice(r+1)),W.hasOwnProperty(t)?{space:W[t],local:e}:e}function K(e){var t=V(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(r){return function(){var e=this.ownerDocument,t=this.namespaceURI;return t===G&&e.documentElement.namespaceURI===G?e.createElement(r):e.createElementNS(t,r)}})(t)}function J(){}function Z(e){return null==e?J:function(){return this.querySelector(e)}}function Q(){return[]}function $(e){return null==e?Q:function(){return this.querySelectorAll(e)}}function ee(e){return function(){return this.matches(e)}}function te(e){return new Array(e.length)}function re(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}re.prototype={constructor:re,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var ne="$";function ie(e,t,r,n,i,o){for(var a,s=0,u=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],n[s]=a):r[s]=new re(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function oe(e,t,r,n,i,o,a){var s,u,c,l={},f=t.length,h=o.length,d=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(d[s]=c=ne+a.call(u,u.__data__,s,t),c in l?i[s]=u:l[c]=u);for(s=0;s<h;++s)(u=l[c=ne+a.call(e,o[s],s,o)])?((n[s]=u).__data__=o[s],l[c]=null):r[s]=new re(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&l[d[s]]===u&&(i[s]=u)}function ae(e,t){return e<t?-1:t<e?1:t<=e?0:NaN}function se(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function ue(e,t){return e.style.getPropertyValue(t)||se(e).getComputedStyle(e,null).getPropertyValue(t)}function ce(e){return e.trim().split(/^|\s+/)}function le(e){return e.classList||new fe(e)}function fe(e){this._node=e,this._names=ce(e.getAttribute("class")||"")}function he(e,t){for(var r=le(e),n=-1,i=t.length;++n<i;)r.add(t[n])}function de(e,t){for(var r=le(e),n=-1,i=t.length;++n<i;)r.remove(t[n])}function pe(){this.textContent=""}function me(){this.innerHTML=""}function ge(){this.nextSibling&&this.parentNode.appendChild(this)}function ve(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ye(){return null}function _e(){var e=this.parentNode;e&&e.removeChild(this)}function be(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function xe(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}fe.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);0<=t&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return 0<=this._names.indexOf(e)}};var we={};(z.event=null,"undefined"!=typeof document)&&("onmouseenter"in document.documentElement||(we={mouseenter:"mouseover",mouseleave:"mouseout"}));function Te(r,e,t){return r=Se(r,e,t),function(e){var t=e.relatedTarget;t&&(t===this||8&t.compareDocumentPosition(this))||r.call(this,e)}}function Se(r,n,i){return function(e){var t=z.event;z.event=e;try{r.call(this,this.__data__,n,i)}finally{z.event=t}}}function Me(o){return function(){var e=this.__on;if(e){for(var t,r=0,n=-1,i=e.length;r<i;++r)t=e[r],o.type&&t.type!==o.type||t.name!==o.name?e[++n]=t:this.removeEventListener(t.type,t.listener,t.capture);++n?e.length=n:delete this.__on}}}function Pe(u,c,l){var f=we.hasOwnProperty(u.type)?Te:Se;return function(e,t,r){var n,i=this.__on,o=f(c,t,r);if(i)for(var a=0,s=i.length;a<s;++a)if((n=i[a]).type===u.type&&n.name===u.name)return this.removeEventListener(n.type,n.listener,n.capture),this.addEventListener(n.type,n.listener=o,n.capture=l),void(n.value=c);this.addEventListener(u.type,o,l),n={type:u.type,name:u.name,value:c,listener:o,capture:l},i?i.push(n):this.__on=[n]}}function Ee(e,t,r,n){var i=z.event;e.sourceEvent=z.event,z.event=e;try{return t.apply(r,n)}finally{z.event=i}}function Ce(e,t,r){var n=se(e),i=n.CustomEvent;"function"==typeof i?i=new i(t,r):(i=n.document.createEvent("Event"),r?(i.initEvent(t,r.bubbles,r.cancelable),i.detail=r.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var ke=[null];function Ae(e,t){this._groups=e,this._parents=t}function Oe(){return new Ae([[document.documentElement]],ke)}function Re(e){return"string"==typeof e?new Ae([[document.querySelector(e)]],[document.documentElement]):new Ae([[e]],ke)}Ae.prototype=Oe.prototype={constructor:Ae,select:function(e){"function"!=typeof e&&(e=Z(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a,s=t[i],u=s.length,c=n[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=e.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new Ae(n,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=$(e));for(var t=this._groups,r=t.length,n=[],i=[],o=0;o<r;++o)for(var a,s=t[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(n.push(e.call(a,a.__data__,c,s)),i.push(a));return new Ae(n,i)},filter:function(e){"function"!=typeof e&&(e=ee(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a=t[i],s=a.length,u=n[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new Ae(n,this._parents)},data:function(e,t){if(!e)return d=new Array(this.size()),c=-1,this.each(function(e){d[++c]=e}),d;var r=t?oe:ie,n=this._parents,i=this._groups;"function"!=typeof e&&(e=function(e){return function(){return e}}(e));for(var o=i.length,a=new Array(o),s=new Array(o),u=new Array(o),c=0;c<o;++c){var l=n[c],f=i[c],h=f.length,d=e.call(l,l&&l.__data__,c,n),p=d.length,m=s[c]=new Array(p),g=a[c]=new Array(p);r(l,f,m,g,u[c]=new Array(h),d,t);for(var v,y,_=0,b=0;_<p;++_)if(v=m[_]){for(b<=_&&(b=_+1);!(y=g[b])&&++b<p;);v._next=y||null}}return(a=new Ae(a,n))._enter=s,a._exit=u,a},enter:function(){return new Ae(this._enter||this._groups.map(te),this._parents)},exit:function(){return new Ae(this._exit||this._groups.map(te),this._parents)},join:function(e,t,r){var n=this.enter(),i=this,o=this.exit();return n="function"==typeof e?e(n):n.append(e+""),null!=t&&(i=t(i)),null==r?o.remove():r(o),n&&i?n.merge(i).order():i},merge:function(e){for(var t=this._groups,r=e._groups,n=t.length,i=r.length,o=Math.min(n,i),a=new Array(n),s=0;s<o;++s)for(var u,c=t[s],l=r[s],f=c.length,h=a[s]=new Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<n;++s)a[s]=t[s];return new Ae(a,this._parents)},order:function(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var n,i=e[t],o=i.length-1,a=i[o];0<=--o;)(n=i[o])&&(a&&4^n.compareDocumentPosition(a)&&a.parentNode.insertBefore(n,a),a=n);return this},sort:function(r){function e(e,t){return e&&t?r(e.__data__,t.__data__):!e-!t}r||(r=ae);for(var t=this._groups,n=t.length,i=new Array(n),o=0;o<n;++o){for(var a,s=t[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(e)}return new Ae(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var n=e[t],i=0,o=n.length;i<o;++i){var a=n[i];if(a)return a}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,r=0,n=t.length;r<n;++r)for(var i,o=t[r],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var r=V(e);if(arguments.length<2){var n=this.node();return r.local?n.getAttributeNS(r.space,r.local):n.getAttribute(r)}return this.each((null==t?r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?r.local?function(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,e)}}:function(t,r){return function(){var e=r.apply(this,arguments);null==e?this.removeAttribute(t):this.setAttribute(t,e)}}:r.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(r,t))},style:function(e,t,r){return 1<arguments.length?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(t,r,n){return function(){var e=r.apply(this,arguments);null==e?this.style.removeProperty(t):this.style.setProperty(t,e,n)}}:function(e,t,r){return function(){this.style.setProperty(e,t,r)}})(e,t,null==r?"":r)):ue(this.node(),e)},property:function(e,t){return 1<arguments.length?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(t,r){return function(){var e=r.apply(this,arguments);null==e?delete this[t]:this[t]=e}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var r=ce(e+"");if(arguments.length<2){for(var n=le(this.node()),i=-1,o=r.length;++i<o;)if(!n.contains(r[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?he:de)(this,e)}}:t?function(e){return function(){he(this,e)}}:function(e){return function(){de(this,e)}})(r,t))},text:function(e){return arguments.length?this.each(null==e?pe:("function"==typeof e?function(t){return function(){var e=t.apply(this,arguments);this.textContent=null==e?"":e}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?me:("function"==typeof e?function(t){return function(){var e=t.apply(this,arguments);this.innerHTML=null==e?"":e}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(ge)},lower:function(){return this.each(ve)},append:function(e){var t="function"==typeof e?e:K(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var r="function"==typeof e?e:K(e),n=null==t?ye:"function"==typeof t?t:Z(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),n.apply(this,arguments)||null)})},remove:function(){return this.each(_e)},clone:function(e){return this.select(e?xe:be)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,r){var n,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",r=e.indexOf(".");return 0<=r&&(t=e.slice(r+1),e=e.slice(0,r)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Pe:Me,null==r&&(r=!1),n=0;n<a;++n)this.each(s(o[n],t,r));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(n=0,u=s[c];n<a;++n)if((i=o[n]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return Ce(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return Ce(this,e,t)}})(e,t))}};var Ie=0;function De(){return new Le}function Le(){this._="@"+(++Ie).toString(36)}function Ne(){for(var e,t=z.event;e=t.sourceEvent;)t=e;return t}function je(e,t){var r=e.ownerSVGElement||e;if(r.createSVGPoint){var n=r.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,[(n=n.matrixTransform(e.getScreenCTM().inverse())).x,n.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]}function Fe(e){var t=Ne();return t.changedTouches&&(t=t.changedTouches[0]),je(e,t)}function Be(e,t,r){arguments.length<3&&(r=t,t=Ne().changedTouches);for(var n,i=0,o=t?t.length:0;i<o;++i)if((n=t[i]).identifier===r)return je(e,n);return null}function ze(){z.event.stopImmediatePropagation()}function Ue(){z.event.preventDefault(),z.event.stopImmediatePropagation()}function Xe(e){var t=e.document.documentElement,r=Re(e).on("dragstart.drag",Ue,!0);"onselectstart"in t?r.on("selectstart.drag",Ue,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function qe(e,t){var r=e.document.documentElement,n=Re(e).on("dragstart.drag",null);t&&(n.on("click.drag",Ue,!0),setTimeout(function(){n.on("click.drag",null)},0)),"onselectstart"in r?n.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}function He(e){return function(){return e}}function Ye(e,t,r,n,i,o,a,s,u,c){this.target=e,this.type=t,this.subject=r,this.identifier=n,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=u,this._=c}function Ge(){return!z.event.button}function We(){return this.parentNode}function Ve(e){return null==e?{x:z.event.x,y:z.event.y}:e}function Ke(){return"ontouchstart"in this}function Je(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Ze(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function Qe(){}Le.prototype=De.prototype={constructor:Le,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}},Ye.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var $e=1/.7,et="\\s*([+-]?\\d+)\\s*",tt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",rt="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",nt=/^#([0-9a-f]{3})$/,it=/^#([0-9a-f]{6})$/,ot=new RegExp("^rgb\\("+[et,et,et]+"\\)$"),at=new RegExp("^rgb\\("+[rt,rt,rt]+"\\)$"),st=new RegExp("^rgba\\("+[et,et,et,tt]+"\\)$"),ut=new RegExp("^rgba\\("+[rt,rt,rt,tt]+"\\)$"),ct=new RegExp("^hsl\\("+[tt,rt,rt]+"\\)$"),lt=new RegExp("^hsla\\("+[tt,rt,rt,tt]+"\\)$"),ft={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function ht(e){var t;return e=(e+"").trim().toLowerCase(),(t=nt.exec(e))?new vt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=it.exec(e))?dt(parseInt(t[1],16)):(t=ot.exec(e))?new vt(t[1],t[2],t[3],1):(t=at.exec(e))?new vt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=st.exec(e))?pt(t[1],t[2],t[3],t[4]):(t=ut.exec(e))?pt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=ct.exec(e))?_t(t[1],t[2]/100,t[3]/100,1):(t=lt.exec(e))?_t(t[1],t[2]/100,t[3]/100,t[4]):ft.hasOwnProperty(e)?dt(ft[e]):"transparent"===e?new vt(NaN,NaN,NaN,0):null}function dt(e){return new vt(e>>16&255,e>>8&255,255&e,1)}function pt(e,t,r,n){return n<=0&&(e=t=r=NaN),new vt(e,t,r,n)}function mt(e){return e instanceof Qe||(e=ht(e)),e?new vt((e=e.rgb()).r,e.g,e.b,e.opacity):new vt}function gt(e,t,r,n){return 1===arguments.length?mt(e):new vt(e,t,r,null==n?1:n)}function vt(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function yt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function _t(e,t,r,n){return n<=0?e=t=r=NaN:r<=0||1<=r?e=t=NaN:t<=0&&(e=NaN),new xt(e,t,r,n)}function bt(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof xt)return new xt(e.h,e.s,e.l,e.opacity);if(e instanceof Qe||(e=ht(e)),!e)return new xt;if(e instanceof xt)return e;var t=(e=e.rgb()).r/255,r=e.g/255,n=e.b/255,i=Math.min(t,r,n),o=Math.max(t,r,n),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(r-n)/s+6*(r<n):r===o?(n-t)/s+2:(t-r)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=0<u&&u<1?0:a,new xt(a,s,u,e.opacity)}(e):new xt(e,t,r,null==n?1:n)}function xt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function wt(e,t,r){return 255*(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)}Je(Qe,ht,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),Je(vt,gt,Ze(Qe,{brighter:function(e){return e=null==e?$e:Math.pow($e,e),new vt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new vt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+yt(this.r)+yt(this.g)+yt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),Je(xt,bt,Ze(Qe,{brighter:function(e){return e=null==e?$e:Math.pow($e,e),new xt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new xt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new vt(wt(240<=e?e-240:120+e,i,n),wt(e,i,n),wt(e<120?240+e:e-120,i,n),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var Tt=Math.PI/180,St=180/Math.PI,Mt=.96422,Pt=1,Et=.82521,Ct=4/29,kt=6/29,At=3*kt*kt,Ot=kt*kt*kt;function Rt(e){if(e instanceof Dt)return new Dt(e.l,e.a,e.b,e.opacity);if(e instanceof Ut){if(isNaN(e.h))return new Dt(e.l,0,0,e.opacity);var t=e.h*Tt;return new Dt(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof vt||(e=mt(e));var r,n,i=Ft(e.r),o=Ft(e.g),a=Ft(e.b),s=Lt((.2225045*i+.7168786*o+.0606169*a)/Pt);return i===o&&o===a?r=n=s:(r=Lt((.4360747*i+.3850649*o+.1430804*a)/Mt),n=Lt((.0139322*i+.0971045*o+.7141733*a)/Et)),new Dt(116*s-16,500*(r-s),200*(s-n),e.opacity)}function It(e,t,r,n){return 1===arguments.length?Rt(e):new Dt(e,t,r,null==n?1:n)}function Dt(e,t,r,n){this.l=+e,this.a=+t,this.b=+r,this.opacity=+n}function Lt(e){return Ot<e?Math.pow(e,1/3):e/At+Ct}function Nt(e){return kt<e?e*e*e:At*(e-Ct)}function jt(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Ft(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Bt(e){if(e instanceof Ut)return new Ut(e.h,e.c,e.l,e.opacity);if(e instanceof Dt||(e=Rt(e)),0===e.a&&0===e.b)return new Ut(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*St;return new Ut(t<0?360+t:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function zt(e,t,r,n){return 1===arguments.length?Bt(e):new Ut(e,t,r,null==n?1:n)}function Ut(e,t,r,n){this.h=+e,this.c=+t,this.l=+r,this.opacity=+n}Je(Dt,It,Ze(Qe,{brighter:function(e){return new Dt(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new Dt(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,r=isNaN(this.b)?e:e-this.b/200;return new vt(jt(3.1338561*(t=Mt*Nt(t))-1.6168667*(e=Pt*Nt(e))-.4906146*(r=Et*Nt(r))),jt(-.9787684*t+1.9161415*e+.033454*r),jt(.0719453*t-.2289914*e+1.4052427*r),this.opacity)}})),Je(Ut,zt,Ze(Qe,{brighter:function(e){return new Ut(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new Ut(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return Rt(this).rgb()}}));var Xt=1.78277,qt=-.29227,Ht=-.90649,Yt=1.97294,Gt=Yt*Ht,Wt=Yt*Xt,Vt=Xt*qt- -.14861*Ht;function Kt(e,t,r,n){return 1===arguments.length?function(e){if(e instanceof Jt)return new Jt(e.h,e.s,e.l,e.opacity);e instanceof vt||(e=mt(e));var t=e.r/255,r=e.g/255,n=e.b/255,i=(Vt*n+Gt*t-Wt*r)/(Vt+Gt-Wt),o=n-i,a=(Yt*(r-i)-qt*o)/Ht,s=Math.sqrt(a*a+o*o)/(Yt*i*(1-i)),u=s?Math.atan2(a,o)*St-120:NaN;return new Jt(u<0?u+360:u,s,i,e.opacity)}(e):new Jt(e,t,r,null==n?1:n)}function Jt(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function Zt(e,t,r,n,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*r+(1+3*e+3*o-3*a)*n+a*i)/6}function Qt(a){var s=a.length-1;return function(e){var t=e<=0?e=0:1<=e?s-(e=1):Math.floor(e*s),r=a[t],n=a[t+1],i=0<t?a[t-1]:2*r-n,o=t<s-1?a[t+2]:2*n-r;return Zt((e-t/s)*s,i,r,n,o)}}function $t(a){var s=a.length;return function(e){var t=Math.floor(((e%=1)<0?++e:e)*s),r=a[(t+s-1)%s],n=a[t%s],i=a[(t+1)%s],o=a[(t+2)%s];return Zt((e-t/s)*s,r,n,i,o)}}function er(e){return function(){return e}}function tr(t,r){return function(e){return t+e*r}}function rr(e,t){var r=t-e;return r?tr(e,180<r||r<-180?r-360*Math.round(r/360):r):er(isNaN(e)?t:e)}function nr(r){return 1==(r=+r)?ir:function(e,t){return t-e?function(t,r,n){return t=Math.pow(t,n),r=Math.pow(r,n)-t,n=1/n,function(e){return Math.pow(t+e*r,n)}}(e,t,r):er(isNaN(e)?t:e)}}function ir(e,t){var r=t-e;return r?tr(e,r):er(isNaN(e)?t:e)}Je(Jt,Kt,Ze(Qe,{brighter:function(e){return e=null==e?$e:Math.pow($e,e),new Jt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Jt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*Tt,t=+this.l,r=isNaN(this.s)?0:this.s*t*(1-t),n=Math.cos(e),i=Math.sin(e);return new vt(255*(t+r*(-.14861*n+Xt*i)),255*(t+r*(qt*n+Ht*i)),255*(t+Yt*n*r),this.opacity)}}));var or=function e(t){var a=nr(t);function r(t,e){var r=a((t=gt(t)).r,(e=gt(e)).r),n=a(t.g,e.g),i=a(t.b,e.b),o=ir(t.opacity,e.opacity);return function(e){return t.r=r(e),t.g=n(e),t.b=i(e),t.opacity=o(e),t+""}}return r.gamma=e,r}(1);function ar(s){return function(e){var t,r,n=e.length,i=new Array(n),o=new Array(n),a=new Array(n);for(t=0;t<n;++t)r=gt(e[t]),i[t]=r.r||0,o[t]=r.g||0,a[t]=r.b||0;return i=s(i),o=s(o),a=s(a),r.opacity=1,function(e){return r.r=i(e),r.g=o(e),r.b=a(e),r+""}}}var sr=ar(Qt),ur=ar($t);function cr(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,o=new Array(i),a=new Array(n);for(r=0;r<i;++r)o[r]=gr(e[r],t[r]);for(;r<n;++r)a[r]=t[r];return function(e){for(r=0;r<i;++r)a[r]=o[r](e);return a}}function lr(t,r){var n=new Date;return r-=t=+t,function(e){return n.setTime(t+r*e),n}}function fr(t,r){return r-=t=+t,function(e){return t+r*e}}function hr(e,t){var r,n={},i={};for(r in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)r in e?n[r]=gr(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}var dr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,pr=new RegExp(dr.source,"g");function mr(e,n){var t,r,i,o=dr.lastIndex=pr.lastIndex=0,a=-1,s=[],u=[];for(e+="",n+="";(t=dr.exec(e))&&(r=pr.exec(n));)(i=r.index)>o&&(i=n.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(t=t[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:fr(t,r)})),o=pr.lastIndex;return o<n.length&&(i=n.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(t){return function(e){return t(e)+""}}(u[0].x):function(e){return function(){return e}}(n):(n=u.length,function(e){for(var t,r=0;r<n;++r)s[(t=u[r]).i]=t.x(e);return s.join("")})}function gr(e,t){var r,n=typeof t;return null==t||"boolean"==n?er(t):("number"==n?fr:"string"==n?(r=ht(t))?(t=r,or):mr:t instanceof ht?or:t instanceof Date?lr:Array.isArray(t)?cr:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?hr:fr)(e,t)}function vr(t,r){return r-=t=+t,function(e){return Math.round(t+r*e)}}var yr,_r,br,xr,wr=180/Math.PI,Tr={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Sr(e,t,r,n,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*r+t*n)&&(r-=e*u,n-=t*u),(s=Math.sqrt(r*r+n*n))&&(r/=s,n/=s,u/=s),e*n<t*r&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*wr,skewX:Math.atan(u)*wr,scaleX:a,scaleY:s}}function Mr(r,s,u,a){function c(e){return e.length?e.pop()+" ":""}return function(e,t){var i=[],o=[];return e=r(e),t=r(t),function(e,t,r,n,i,o){if(e!==r||t!==n){var a=i.push("translate(",null,s,null,u);o.push({i:a-4,x:fr(e,r)},{i:a-2,x:fr(t,n)})}else(r||n)&&i.push("translate("+r+s+n+u)}(e.translateX,e.translateY,t.translateX,t.translateY,i,o),function(e,t,r,n){e!==t?(180<e-t?t+=360:180<t-e&&(e+=360),n.push({i:r.push(c(r)+"rotate(",null,a)-2,x:fr(e,t)})):t&&r.push(c(r)+"rotate("+t+a)}(e.rotate,t.rotate,i,o),function(e,t,r,n){e!==t?n.push({i:r.push(c(r)+"skewX(",null,a)-2,x:fr(e,t)}):t&&r.push(c(r)+"skewX("+t+a)}(e.skewX,t.skewX,i,o),function(e,t,r,n,i,o){if(e!==r||t!==n){var a=i.push(c(i)+"scale(",null,",",null,")");o.push({i:a-4,x:fr(e,r)},{i:a-2,x:fr(t,n)})}else 1===r&&1===n||i.push(c(i)+"scale("+r+","+n+")")}(e.scaleX,e.scaleY,t.scaleX,t.scaleY,i,o),e=t=null,function(e){for(var t,r=-1,n=o.length;++r<n;)i[(t=o[r]).i]=t.x(e);return i.join("")}}}var Pr=Mr(function(e){return"none"===e?Tr:(yr||(yr=document.createElement("DIV"),_r=document.documentElement,br=document.defaultView),yr.style.transform=e,e=br.getComputedStyle(_r.appendChild(yr),null).getPropertyValue("transform"),_r.removeChild(yr),Sr(+(e=e.slice(7,-1).split(","))[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),Er=Mr(function(e){return null==e?Tr:(xr||(xr=document.createElementNS("http://www.w3.org/2000/svg","g")),xr.setAttribute("transform",e),(e=xr.transform.baseVal.consolidate())?Sr((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Tr)},", ",")",")"),Cr=Math.SQRT2,kr=2,Ar=4,Or=1e-12;function Rr(e){return((e=Math.exp(e))+1/e)/2}function Ir(e,t){var r,i,o=e[0],a=e[1],s=e[2],n=t[0],u=t[1],c=t[2],l=n-o,f=u-a,h=l*l+f*f;if(h<Or)i=Math.log(c/s)/Cr,r=function(e){return[o+e*l,a+e*f,s*Math.exp(Cr*e*i)]};else{var d=Math.sqrt(h),p=(c*c-s*s+Ar*h)/(2*s*kr*d),m=(c*c-s*s-Ar*h)/(2*c*kr*d),g=Math.log(Math.sqrt(p*p+1)-p),v=Math.log(Math.sqrt(m*m+1)-m);i=(v-g)/Cr,r=function(e){var t=e*i,r=Rr(g),n=s/(kr*d)*(r*function(e){return((e=Math.exp(2*e))-1)/(e+1)}(Cr*t+g)-function(e){return((e=Math.exp(e))-1/e)/2}(g));return[o+n*l,a+n*f,s*r/Rr(Cr*t+g)]}}return r.duration=1e3*i,r}function Dr(a){return function(t,e){var r=a((t=bt(t)).h,(e=bt(e)).h),n=ir(t.s,e.s),i=ir(t.l,e.l),o=ir(t.opacity,e.opacity);return function(e){return t.h=r(e),t.s=n(e),t.l=i(e),t.opacity=o(e),t+""}}}var Lr=Dr(rr),Nr=Dr(ir);function jr(a){return function(t,e){var r=a((t=zt(t)).h,(e=zt(e)).h),n=ir(t.c,e.c),i=ir(t.l,e.l),o=ir(t.opacity,e.opacity);return function(e){return t.h=r(e),t.c=n(e),t.l=i(e),t.opacity=o(e),t+""}}}var Fr=jr(rr),Br=jr(ir);function zr(s){return function e(a){function t(t,e){var r=s((t=Kt(t)).h,(e=Kt(e)).h),n=ir(t.s,e.s),i=ir(t.l,e.l),o=ir(t.opacity,e.opacity);return function(e){return t.h=r(e),t.s=n(e),t.l=i(Math.pow(e,a)),t.opacity=o(e),t+""}}return a=+a,t.gamma=e,t}(1)}var Ur=zr(rr),Xr=zr(ir);var qr,Hr,Yr=0,Gr=0,Wr=0,Vr=1e3,Kr=0,Jr=0,Zr=0,Qr="object"==typeof performance&&performance.now?performance:Date,$r="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function en(){return Jr||($r(tn),Jr=Qr.now()+Zr)}function tn(){Jr=0}function rn(){this._call=this._time=this._next=null}function nn(e,t,r){var n=new rn;return n.restart(e,t,r),n}function on(){en(),++Yr;for(var e,t=qr;t;)0<=(e=Jr-t._time)&&t._call.call(null,e),t=t._next;--Yr}function an(){Jr=(Kr=Qr.now())+Zr,Yr=Gr=0;try{on()}finally{Yr=0,function(){var e,t,r=qr,n=1/0;for(;r;)r=r._call?(n>r._time&&(n=r._time),(e=r)._next):(t=r._next,r._next=null,e?e._next=t:qr=t);Hr=e,un(n)}(),Jr=0}}function sn(){var e=Qr.now(),t=e-Kr;Vr<t&&(Zr-=t,Kr=e)}function un(e){Yr||(Gr&&(Gr=clearTimeout(Gr)),24<e-Jr?(e<1/0&&(Gr=setTimeout(an,e-Qr.now()-Zr)),Wr&&(Wr=clearInterval(Wr))):(Wr||(Kr=Qr.now(),Wr=setInterval(sn,Vr)),Yr=1,$r(an)))}function cn(t,r,e){var n=new rn;return r=null==r?0:+r,n.restart(function(e){n.stop(),t(e+r)},r,e),n}rn.prototype=nn.prototype={constructor:rn,restart:function(e,t,r){if("function"!=typeof e)throw new TypeError("callback is not a function");r=(null==r?en():+r)+(null==t?0:+t),this._next||Hr===this||(Hr?Hr._next=this:qr=this,Hr=this),this._call=e,this._time=r,un()},stop:function(){this._call&&(this._call=null,this._time=1/0,un())}};var ln=X("start","end","cancel","interrupt"),fn=[],hn=0,dn=1,pn=2,mn=3,gn=4,vn=5,yn=6;function _n(e,t,r,n,i,o){var a=e.__transition;if(a){if(r in a)return}else e.__transition={};!function(o,a,s){var u,c=o.__transition;function l(e){var t,r,n,i;if(s.state!==dn)return h();for(t in c)if((i=c[t]).name===s.name){if(i.state===mn)return cn(l);i.state===gn?(i.state=yn,i.timer.stop(),i.on.call("interrupt",o,o.__data__,i.index,i.group),delete c[t]):+t<a&&(i.state=yn,i.timer.stop(),i.on.call("cancel",o,o.__data__,i.index,i.group),delete c[t])}if(cn(function(){s.state===mn&&(s.state=gn,s.timer.restart(f,s.delay,s.time),f(e))}),s.state=pn,s.on.call("start",o,o.__data__,s.index,s.group),s.state===pn){for(s.state=mn,u=new Array(n=s.tween.length),t=0,r=-1;t<n;++t)(i=s.tween[t].value.call(o,o.__data__,s.index,s.group))&&(u[++r]=i);u.length=r+1}}function f(e){for(var t=e<s.duration?s.ease.call(null,e/s.duration):(s.timer.restart(h),s.state=vn,1),r=-1,n=u.length;++r<n;)u[r].call(o,t);s.state===vn&&(s.on.call("end",o,o.__data__,s.index,s.group),h())}function h(){for(var e in s.state=yn,s.timer.stop(),delete c[a],c)return;delete o.__transition}(c[a]=s).timer=nn(function(e){s.state=dn,s.timer.restart(l,s.delay,s.time),s.delay<=e&&l(e-s.delay)},0,s.time)}(e,r,{name:t,index:n,group:i,on:ln,tween:fn,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:hn})}function bn(e,t){var r=wn(e,t);if(r.state>hn)throw new Error("too late; already scheduled");return r}function xn(e,t){var r=wn(e,t);if(r.state>mn)throw new Error("too late; already running");return r}function wn(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function Tn(e,t){var r,n,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(r=o[i]).name===t?(n=r.state>pn&&r.state<vn,r.state=yn,r.timer.stop(),r.on.call(n?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete o[i]):a=!1;a&&delete e.__transition}}function Sn(e,t,r){var n=e._id;return e.each(function(){var e=xn(this,n);(e.value||(e.value={}))[t]=r.apply(this,arguments)}),function(e){return wn(e,n).value[t]}}function Mn(e,t){var r;return("number"==typeof t?fr:t instanceof ht?or:(r=ht(t))?(t=r,or):mr)(e,t)}var Pn=Oe.prototype.constructor;function En(e){return function(){this.style.removeProperty(e)}}var Cn=0;function kn(e,t,r,n){this._groups=e,this._parents=t,this._name=r,this._id=n}function An(e){return Oe().transition(e)}function On(){return++Cn}var Rn=Oe.prototype;function In(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function Dn(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}kn.prototype=An.prototype={constructor:kn,select:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=Z(e));for(var n=this._groups,i=n.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=n[a],l=c.length,f=o[a]=new Array(l),h=0;h<l;++h)(s=c[h])&&(u=e.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,_n(f[h],t,r,h,f,wn(s,r)));return new kn(o,this._parents,t,r)},selectAll:function(e){var t=this._name,r=this._id;"function"!=typeof e&&(e=$(e));for(var n=this._groups,i=n.length,o=[],a=[],s=0;s<i;++s)for(var u,c=n[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,d=e.call(u,u.__data__,f,c),p=wn(u,r),m=0,g=d.length;m<g;++m)(h=d[m])&&_n(h,t,r,m,d,p);o.push(d),a.push(u)}return new kn(o,a,t,r)},filter:function(e){"function"!=typeof e&&(e=ee(e));for(var t=this._groups,r=t.length,n=new Array(r),i=0;i<r;++i)for(var o,a=t[i],s=a.length,u=n[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new kn(n,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,n=t.length,i=r.length,o=Math.min(n,i),a=new Array(n),s=0;s<o;++s)for(var u,c=t[s],l=r[s],f=c.length,h=a[s]=new Array(f),d=0;d<f;++d)(u=c[d]||l[d])&&(h[d]=u);for(;s<n;++s)a[s]=t[s];return new kn(a,this._parents,this._name,this._id)},selection:function(){return new Pn(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,r=On(),n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=wn(a,t);_n(a,e,r,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new kn(n,this._parents,e,r)},call:Rn.call,nodes:Rn.nodes,node:Rn.node,size:Rn.size,empty:Rn.empty,each:Rn.each,on:function(e,t){var r=this._id;return arguments.length<2?wn(this.node(),r).on.on(e):this.each(function(r,n,i){var o,a,s=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return 0<=t&&(e=e.slice(0,t)),!e||"start"===e})}(n)?bn:xn;return function(){var e=s(this,r),t=e.on;t!==o&&(a=(o=t).copy()).on(n,i),e.on=a}}(r,e,t))},attr:function(e,t){var r=V(e),n="transform"===r?Er:Mn;return this.attrTween(e,"function"==typeof t?(r.local?function(n,i,o){var a,s,u;return function(){var e,t,r=o(this);if(null!=r)return(e=this.getAttributeNS(n.space,n.local))===(t=r+"")?null:e===a&&t===s?u:(s=t,u=i(a=e,r));this.removeAttributeNS(n.space,n.local)}}:function(n,i,o){var a,s,u;return function(){var e,t,r=o(this);if(null!=r)return(e=this.getAttribute(n))===(t=r+"")?null:e===a&&t===s?u:(s=t,u=i(a=e,r));this.removeAttribute(n)}})(r,n,Sn(this,"attr."+e,t)):null==t?(r.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(r):(r.local?function(t,r,n){var i,o,a=n+"";return function(){var e=this.getAttributeNS(t.space,t.local);return e===a?null:e===i?o:o=r(i=e,n)}}:function(t,r,n){var i,o,a=n+"";return function(){var e=this.getAttribute(t);return e===a?null:e===i?o:o=r(i=e,n)}})(r,n,t))},attrTween:function(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;var n=V(e);return this.tween(r,(n.local?function(t,r){var n,i;function e(){var e=r.apply(this,arguments);return e!==i&&(n=(i=e)&&function(t,r){return function(e){this.setAttributeNS(t.space,t.local,r(e))}}(t,e)),n}return e._value=r,e}:function(t,r){var n,i;function e(){var e=r.apply(this,arguments);return e!==i&&(n=(i=e)&&function(t,r){return function(e){this.setAttribute(t,r(e))}}(t,e)),n}return e._value=r,e})(n,t))},style:function(e,t,r){var n="transform"==(e+="")?Pr:Mn;return null==t?this.styleTween(e,function(r,n){var i,o,a;return function(){var e=ue(this,r),t=(this.style.removeProperty(r),ue(this,r));return e===t?null:e===i&&t===o?a:a=n(i=e,o=t)}}(e,n)).on("end.style."+e,En(e)):"function"==typeof t?this.styleTween(e,function(n,i,o){var a,s,u;return function(){var e=ue(this,n),t=o(this),r=t+"";return null==t&&(this.style.removeProperty(n),r=t=ue(this,n)),e===r?null:e===a&&r===s?u:(s=r,u=i(a=e,t))}}(e,n,Sn(this,"style."+e,t))).each(function(n,i){var o,a,s,u,c="style."+i,l="end."+c;return function(){var e=xn(this,n),t=e.on,r=null==e.value[c]?u||(u=En(i)):void 0;t===o&&s===r||(a=(o=t).copy()).on(l,s=r),e.on=a}}(this._id,e)):this.styleTween(e,function(t,r,n){var i,o,a=n+"";return function(){var e=ue(this,t);return e===a?null:e===i?o:o=r(i=e,n)}}(e,n,t),r).on("end.style."+e,null)},styleTween:function(e,t,r){var n="style."+(e+="");if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;return this.tween(n,function(t,r,n){var i,o;function e(){var e=r.apply(this,arguments);return e!==o&&(i=(o=e)&&function(t,r,n){return function(e){this.style.setProperty(t,r(e),n)}}(t,e,n)),i}return e._value=r,e}(e,t,null==r?"":r))},text:function(e){return this.tween("text","function"==typeof e?function(t){return function(){var e=t(this);this.textContent=null==e?"":e}}(Sn(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",function(r){return function(){var e=this.parentNode;for(var t in this.__transition)if(+t!==r)return;e&&e.removeChild(this)}}(this._id))},tween:function(e,t){var r=this._id;if(e+="",arguments.length<2){for(var n,i=wn(this.node(),r).tween,o=0,a=i.length;o<a;++o)if((n=i[o]).name===e)return n.value;return null}return this.each((null==t?function(i,o){var a,s;return function(){var e=xn(this,i),t=e.tween;if(t!==a)for(var r=0,n=(s=a=t).length;r<n;++r)if(s[r].name===o){(s=s.slice()).splice(r,1);break}e.tween=s}}:function(o,a,s){var u,c;if("function"!=typeof s)throw new Error;return function(){var e=xn(this,o),t=e.tween;if(t!==u){c=(u=t).slice();for(var r={name:a,value:s},n=0,i=c.length;n<i;++n)if(c[n].name===a){c[n]=r;break}n===i&&c.push(r)}e.tween=c}})(r,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){bn(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){bn(this,e).delay=t}})(t,e)):wn(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){xn(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){xn(this,e).duration=t}})(t,e)):wn(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){xn(this,e).ease=t}}(t,e)):wn(this.node(),t).ease},end:function(){var i,o,a=this,s=a._id,u=a.size();return new Promise(function(e,t){var r={value:t},n={value:function(){0==--u&&e()}};a.each(function(){var e=xn(this,s),t=e.on;t!==i&&((o=(i=t).copy())._.cancel.push(r),o._.interrupt.push(r),o._.end.push(n)),e.on=o})})}};var Ln=function e(t){function r(e){return Math.pow(e,t)}return t=+t,r.exponent=e,r}(3),Nn=function e(t){function r(e){return 1-Math.pow(1-e,t)}return t=+t,r.exponent=e,r}(3),jn=function e(t){function r(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,r.exponent=e,r}(3),Fn=Math.PI,Bn=Fn/2;function zn(e){return(1-Math.cos(Fn*e))/2}function Un(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function Xn(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var qn=4/11,Hn=6/11,Yn=8/11,Gn=.75,Wn=9/11,Vn=10/11,Kn=.9375,Jn=21/22,Zn=63/64,Qn=1/qn/qn;function $n(e){return(e=+e)<qn?Qn*e*e:e<Yn?Qn*(e-=Hn)*e+Gn:e<Vn?Qn*(e-=Wn)*e+Kn:Qn*(e-=Jn)*e+Zn}var ei=1.70158,ti=function e(t){function r(e){return e*e*((t+1)*e-t)}return t=+t,r.overshoot=e,r}(ei),ri=function e(t){function r(e){return--e*e*((t+1)*e+t)+1}return t=+t,r.overshoot=e,r}(ei),ni=function e(t){function r(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,r.overshoot=e,r}(ei),ii=2*Math.PI,oi=function t(r,n){var i=Math.asin(1/(r=Math.max(1,r)))*(n/=ii);function e(e){return r*Math.pow(2,10*--e)*Math.sin((i-e)/n)}return e.amplitude=function(e){return t(e,n*ii)},e.period=function(e){return t(r,e)},e}(1,.3),ai=function t(r,n){var i=Math.asin(1/(r=Math.max(1,r)))*(n/=ii);function e(e){return 1-r*Math.pow(2,-10*(e=+e))*Math.sin((e+i)/n)}return e.amplitude=function(e){return t(e,n*ii)},e.period=function(e){return t(r,e)},e}(1,.3),si=function t(r,n){var i=Math.asin(1/(r=Math.max(1,r)))*(n/=ii);function e(e){return((e=2*e-1)<0?r*Math.pow(2,10*e)*Math.sin((i-e)/n):2-r*Math.pow(2,-10*e)*Math.sin((i+e)/n))/2}return e.amplitude=function(e){return t(e,n*ii)},e.period=function(e){return t(r,e)},e}(1,.3),ui={time:null,delay:0,duration:250,ease:Dn};function ci(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))return ui.time=en(),ui;return r}Oe.prototype.interrupt=function(e){return this.each(function(){Tn(this,e)})},Oe.prototype.transition=function(e){var t,r;e=e instanceof kn?(t=e._id,e._name):(t=On(),(r=ui).time=en(),null==e?null:e+"");for(var n=this._groups,i=n.length,o=0;o<i;++o)for(var a,s=n[o],u=s.length,c=0;c<u;++c)(a=s[c])&&_n(a,e,t,c,s,r||ci(a,t));return new kn(n,this._parents,e,t)};var li=[null];function fi(e){return function(){return e}}function hi(e,t,r){this.target=e,this.type=t,this.selection=r}function di(){z.event.stopImmediatePropagation()}function pi(){z.event.preventDefault(),z.event.stopImmediatePropagation()}var mi={name:"drag"},gi={name:"space"},vi={name:"handle"},yi={name:"center"},_i={name:"x",handles:["e","w"].map(Ei),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},bi={name:"y",handles:["n","s"].map(Ei),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},xi={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(Ei),input:function(e){return e},output:function(e){return e}},wi={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},Ti={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},Si={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},Mi={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},Pi={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function Ei(e){return{type:e}}function Ci(){return!z.event.button}function ki(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function Ai(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function Oi(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Ri(L){var N,t=ki,j=Ci,r=X(i,"start","brush","end"),n=6;function i(e){var t=e.property("__brush",s).selectAll(".overlay").data([Ei("overlay")]);t.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",wi.overlay).merge(t).each(function(){var e=Ai(this).extent;Re(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),e.selectAll(".selection").data([Ei("selection")]).enter().append("rect").attr("class","selection").attr("cursor",wi.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=e.selectAll(".handle").data(L.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return wi[e.type]}),e.each(F).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",a)}function F(){var e=Re(this),t=Ai(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-n/2:t[0][0]-n/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-n/2:t[0][1]-n/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+n:n}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+n:n})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function B(e,t){return e.__brush.emitter||new o(e,t)}function o(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function a(){if(z.event.touches){if(z.event.changedTouches.length<z.event.touches.length)return pi()}else if(N)return;if(j.apply(this,arguments)){var t,r,n,i,o,a,s,u,c,l,f,h,d,p=this,m=z.event.target.__data__.type,g="selection"===(z.event.metaKey?m="overlay":m)?mi:z.event.altKey?yi:vi,v=L===bi?null:Mi[m],y=L===_i?null:Pi[m],_=Ai(p),e=_.extent,b=_.selection,x=e[0][0],w=e[0][1],T=e[1][0],S=e[1][1],M=v&&y&&z.event.shiftKey,P=Fe(p),E=P,C=B(p,arguments).beforestart();"overlay"===m?_.selection=b=[[t=L===bi?x:P[0],n=L===_i?w:P[1]],[o=L===bi?T:t,s=L===_i?S:n]]:(t=b[0][0],n=b[0][1],o=b[1][0],s=b[1][1]),r=t,i=n,a=o,u=s;var k=Re(p).attr("pointer-events","none"),A=k.selectAll(".overlay").attr("cursor",wi[m]);if(z.event.touches)k.on("touchmove.brush",R,!0).on("touchend.brush touchcancel.brush",D,!0);else{var O=Re(z.event.view).on("keydown.brush",function(){switch(z.event.keyCode){case 16:M=v&&y;break;case 18:g===vi&&(v&&(o=a-c*v,t=r+c*v),y&&(s=u-l*y,n=i+l*y),g=yi,I());break;case 32:g!==vi&&g!==yi||(v<0?o=a-c:0<v&&(t=r-c),y<0?s=u-l:0<y&&(n=i-l),g=gi,A.attr("cursor",wi.selection),I());break;default:return}pi()},!0).on("keyup.brush",function(){switch(z.event.keyCode){case 16:M&&(h=d=M=!1,I());break;case 18:g===yi&&(v<0?o=a:0<v&&(t=r),y<0?s=u:0<y&&(n=i),g=vi,I());break;case 32:g===gi&&(g=z.event.altKey?(v&&(o=a-c*v,t=r+c*v),y&&(s=u-l*y,n=i+l*y),yi):(v<0?o=a:0<v&&(t=r),y<0?s=u:0<y&&(n=i),vi),A.attr("cursor",wi[m]),I());break;default:return}pi()},!0).on("mousemove.brush",R,!0).on("mouseup.brush",D,!0);Xe(z.event.view)}di(),Tn(p),F.call(p),C.start()}function R(){var e=Fe(p);!M||h||d||(Math.abs(e[0]-E[0])>Math.abs(e[1]-E[1])?d=!0:h=!0),E=e,f=!0,pi(),I()}function I(){var e;switch(c=E[0]-P[0],l=E[1]-P[1],g){case gi:case mi:v&&(c=Math.max(x-t,Math.min(T-o,c)),r=t+c,a=o+c),y&&(l=Math.max(w-n,Math.min(S-s,l)),i=n+l,u=s+l);break;case vi:v<0?(c=Math.max(x-t,Math.min(T-t,c)),r=t+c,a=o):0<v&&(c=Math.max(x-o,Math.min(T-o,c)),r=t,a=o+c),y<0?(l=Math.max(w-n,Math.min(S-n,l)),i=n+l,u=s):0<y&&(l=Math.max(w-s,Math.min(S-s,l)),i=n,u=s+l);break;case yi:v&&(r=Math.max(x,Math.min(T,t-c*v)),a=Math.max(x,Math.min(T,o+c*v))),y&&(i=Math.max(w,Math.min(S,n-l*y)),u=Math.max(w,Math.min(S,s+l*y)))}a<r&&(v*=-1,e=t,t=o,o=e,e=r,r=a,a=e,m in Ti&&A.attr("cursor",wi[m=Ti[m]])),u<i&&(y*=-1,e=n,n=s,s=e,e=i,i=u,u=e,m in Si&&A.attr("cursor",wi[m=Si[m]])),_.selection&&(b=_.selection),h&&(r=b[0][0],a=b[1][0]),d&&(i=b[0][1],u=b[1][1]),b[0][0]===r&&b[0][1]===i&&b[1][0]===a&&b[1][1]===u||(_.selection=[[r,i],[a,u]],F.call(p),C.brush())}function D(){if(di(),z.event.touches){if(z.event.touches.length)return;N&&clearTimeout(N),N=setTimeout(function(){N=null},500),k.on("touchmove.brush touchend.brush touchcancel.brush",null)}else qe(z.event.view,f),O.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);k.attr("pointer-events","all"),A.attr("cursor",wi.overlay),_.selection&&(b=_.selection),Oi(b)&&(_.selection=null,F.call(p)),C.end()}}function s(){var e=this.__brush||{selection:null};return e.extent=t.apply(this,arguments),e.dim=L,e}return i.move=function(e,s){e.selection?e.on("start.brush",function(){B(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){B(this,arguments).end()}).tween("brush",function(){var t=this,r=t.__brush,n=B(t,arguments),e=r.selection,i=L.input("function"==typeof s?s.apply(this,arguments):s,r.extent),o=gr(e,i);function a(e){r.selection=1===e&&Oi(i)?null:o(e),F.call(t),n.brush()}return e&&i?a:a(1)}):e.each(function(){var e=arguments,t=this.__brush,r=L.input("function"==typeof s?s.apply(this,e):s,t.extent),n=B(this,e).beforestart();Tn(this),t.selection=null==r||Oi(r)?null:r,F.call(this),n.start().brush().end()})},o.prototype={beforestart:function(){return 1==++this.active&&((this.state.emitter=this).starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(e){Ee(new hi(i,e,L.output(this.state.selection)),r.apply,r,[e,this.that,this.args])}},i.extent=function(e){return arguments.length?(t="function"==typeof e?e:fi([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),i):t},i.filter=function(e){return arguments.length?(j="function"==typeof e?e:fi(!!e),i):j},i.handleSize=function(e){return arguments.length?(n=+e,i):n},i.on=function(){var e=r.on.apply(r,arguments);return e===r?i:e},i}var Ii=Math.cos,Di=Math.sin,Li=Math.PI,Ni=Li/2,ji=2*Li,Fi=Math.max;var Bi=Array.prototype.slice;function zi(e){return function(){return e}}var Ui=Math.PI,Xi=2*Ui,qi=Xi-1e-6;function Hi(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Yi(){return new Hi}function Gi(e){return e.source}function Wi(e){return e.target}function Vi(e){return e.radius}function Ki(e){return e.startAngle}function Ji(e){return e.endAngle}Hi.prototype=Yi.prototype={constructor:Hi,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,r,n){this._+="Q"+ +e+","+ +t+","+(this._x1=+r)+","+(this._y1=+n)},bezierCurveTo:function(e,t,r,n,i,o){this._+="C"+ +e+","+ +t+","+ +r+","+ +n+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,r,n,i){e=+e,t=+t,r=+r,n=+n,i=+i;var o=this._x1,a=this._y1,s=r-e,u=n-t,c=o-e,l=a-t,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(1e-6<f)if(1e-6<Math.abs(l*s-u*c)&&i){var h=r-o,d=n-a,p=s*s+u*u,m=h*h+d*d,g=Math.sqrt(p),v=Math.sqrt(f),y=i*Math.tan((Ui-Math.acos((p+f-m)/(2*g*v)))/2),_=y/v,b=y/g;1e-6<Math.abs(_-1)&&(this._+="L"+(e+_*c)+","+(t+_*l)),this._+="A"+i+","+i+",0,0,"+ +(c*d<l*h)+","+(this._x1=e+b*s)+","+(this._y1=t+b*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,r,n,i,o){e=+e,t=+t;var a=(r=+r)*Math.cos(n),s=r*Math.sin(n),u=e+a,c=t+s,l=1^o,f=o?n-i:i-n;if(r<0)throw new Error("negative radius: "+r);null===this._x1?this._+="M"+u+","+c:(1e-6<Math.abs(this._x1-u)||1e-6<Math.abs(this._y1-c))&&(this._+="L"+u+","+c),r&&(f<0&&(f=f%Xi+Xi),qi<f?this._+="A"+r+","+r+",0,1,"+l+","+(e-a)+","+(t-s)+"A"+r+","+r+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):1e-6<f&&(this._+="A"+r+","+r+",0,"+ +(Ui<=f)+","+l+","+(this._x1=e+r*Math.cos(i))+","+(this._y1=t+r*Math.sin(i))))},rect:function(e,t,r,n){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +r+"v"+ +n+"h"+-r+"Z"},toString:function(){return this._}};function Zi(){}function Qi(e,t){var r=new Zi;if(e instanceof Zi)e.each(function(e,t){r.set(t,e)});else if(Array.isArray(e)){var n,i=-1,o=e.length;if(null==t)for(;++i<o;)r.set(i,e[i]);else for(;++i<o;)r.set(t(n=e[i],i,e),n)}else if(e)for(var a in e)r.set(a,e[a]);return r}function $i(){return{}}function eo(e,t,r){e[t]=r}function to(){return Qi()}function ro(e,t,r){e.set(t,r)}function no(){}Zi.prototype=Qi.prototype={constructor:Zi,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var io=Qi.prototype;function oo(e,t){var r=new no;if(e instanceof no)e.each(function(e){r.add(e)});else if(e){var n=-1,i=e.length;if(null==t)for(;++n<i;)r.add(e[n]);else for(;++n<i;)r.add(t(e[n],n,e))}return r}no.prototype=oo.prototype={constructor:no,has:io.has,add:function(e){return this["$"+(e+="")]=e,this},remove:io.remove,clear:io.clear,values:io.keys,size:io.size,empty:io.empty,each:io.each};var ao=Array.prototype.slice;function so(e,t){return e-t}function uo(e){return function(){return e}}function co(e,t){for(var r,n=-1,i=t.length;++n<i;)if(r=lo(e,t[n]))return r;return 0}function lo(e,t){for(var r,n,i,o,a=t[0],s=t[1],u=-1,c=0,l=e.length,f=l-1;c<l;f=c++){var h=e[c],d=h[0],p=h[1],m=e[f],g=m[0],v=m[1];if(o=void 0,function(e,t,r){return(t[0]-e[0])*(r[1]-e[1])==(r[0]-e[0])*(t[1]-e[1])}(r=h,n=m,i=t)&&function(e,t,r){return e<=t&&t<=r||r<=t&&t<=e}(r[o=+(r[0]===n[0])],i[o],n[o]))return 0;s<p!=s<v&&a<(g-d)*(s-p)/(v-p)+d&&(u=-u)}return u}function fo(){}var ho=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function po(){var h=1,d=1,o=_,a=t;function n(t){var e=o(t);if(Array.isArray(e))e=e.slice().sort(so);else{var r=u(t),n=r[0],i=r[1];e=P(n,i,e),e=M(Math.floor(n/e)*e,Math.floor(i/e)*e,e)}return e.map(function(e){return s(t,e)})}function s(t,r){var i=[],n=[];return function(e,t,s){var u,c,r,n,i,o,l=new Array,f=new Array;u=c=-1,n=e[0]>=t,ho[n<<1].forEach(a);for(;++u<h-1;)r=n,n=e[u+1]>=t,ho[r|n<<1].forEach(a);ho[n<<0].forEach(a);for(;++c<d-1;){for(u=-1,n=e[c*h+h]>=t,i=e[c*h]>=t,ho[n<<1|i<<2].forEach(a);++u<h-1;)r=n,n=e[c*h+h+u+1]>=t,o=i,i=e[c*h+u+1]>=t,ho[r|n<<1|i<<2|o<<3].forEach(a);ho[n|i<<3].forEach(a)}u=-1,i=e[c*h]>=t,ho[i<<2].forEach(a);for(;++u<h-1;)o=i,i=e[c*h+u+1]>=t,ho[i<<2|o<<3].forEach(a);function a(e){var t,r,n=[e[0][0]+u,e[0][1]+c],i=[e[1][0]+u,e[1][1]+c],o=p(n),a=p(i);(t=f[o])?(r=l[a])?(delete f[t.end],delete l[r.start],t===r?(t.ring.push(i),s(t.ring)):l[t.start]=f[r.end]={start:t.start,end:r.end,ring:t.ring.concat(r.ring)}):(delete f[t.end],t.ring.push(i),f[t.end=a]=t):(t=l[a])?(r=f[o])?(delete l[t.start],delete f[r.end],t===r?(t.ring.push(i),s(t.ring)):l[r.start]=f[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete l[t.start],t.ring.unshift(n),l[t.start=o]=t):l[o]=f[a]={start:o,end:a,ring:[n,i]}}ho[i<<3].forEach(a)}(t,r,function(e){a(e,t,r),0<function(e){for(var t=0,r=e.length,n=e[r-1][1]*e[0][0]-e[r-1][0]*e[0][1];++t<r;)n+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return n}(e)?i.push([e]):n.push(e)}),n.forEach(function(e){for(var t,r=0,n=i.length;r<n;++r)if(-1!==co((t=i[r])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:r,coordinates:i}}function p(e){return 2*e[0]+e[1]*(h+1)*4}function t(e,s,u){e.forEach(function(e){var t,r=e[0],n=e[1],i=0|r,o=0|n,a=s[o*h+i];0<r&&r<h&&i===r&&(t=s[o*h+i-1],e[0]=r+(u-t)/(a-t)-.5),0<n&&n<d&&o===n&&(t=s[(o-1)*h+i],e[1]=n+(u-t)/(a-t)-.5)})}return n.contour=s,n.size=function(e){if(!arguments.length)return[h,d];var t=Math.ceil(e[0]),r=Math.ceil(e[1]);if(!(0<t&&0<r))throw new Error("invalid size");return h=t,d=r,n},n.thresholds=function(e){return arguments.length?(o="function"==typeof e?e:Array.isArray(e)?uo(ao.call(e)):uo(e),n):o},n.smooth=function(e){return arguments.length?(a=e?t:fo,n):a===t},n}function mo(e,t,r){for(var n=e.width,i=e.height,o=1+(r<<1),a=0;a<i;++a)for(var s=0,u=0;s<n+r;++s)s<n&&(u+=e.data[s+a*n]),r<=s&&(o<=s&&(u-=e.data[s-o+a*n]),t.data[s-r+a*n]=u/Math.min(s+1,n-1+o-s,o))}function go(e,t,r){for(var n=e.width,i=e.height,o=1+(r<<1),a=0;a<n;++a)for(var s=0,u=0;s<i+r;++s)s<i&&(u+=e.data[a+s*n]),r<=s&&(o<=s&&(u-=e.data[a+(s-o)*n]),t.data[a+(s-r)*n]=u/Math.min(s+1,i-1+o-s,o))}function vo(e){return e[0]}function yo(e){return e[1]}function _o(){return 1}var bo={},xo={},wo=34,To=10,So=13;function Mo(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}function Po(e){var r=Object.create(null),n=[];return e.forEach(function(e){for(var t in e)t in r||n.push(r[t]=t)}),n}function Eo(e,t){var r=e+"",n=r.length;return n<t?new Array(t-n+1).join(0)+r:r}function Co(e){var t=e.getUTCHours(),r=e.getUTCMinutes(),n=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?"Invalid Date":function(e){return e<0?"-"+Eo(-e,6):9999<e?"+"+Eo(e,6):Eo(e,4)}(e.getUTCFullYear())+"-"+Eo(e.getUTCMonth()+1,2)+"-"+Eo(e.getUTCDate(),2)+(i?"T"+Eo(t,2)+":"+Eo(r,2)+":"+Eo(n,2)+"."+Eo(i,3)+"Z":n?"T"+Eo(t,2)+":"+Eo(r,2)+":"+Eo(n,2)+"Z":r||t?"T"+Eo(t,2)+":"+Eo(r,2)+"Z":"")}function ko(n){var t=new RegExp('["'+n+"\n\r]"),f=n.charCodeAt(0);function o(n,e){var t,r=[],i=n.length,o=0,a=0,s=i<=0,u=!1;function c(){if(s)return xo;if(u)return u=!1,bo;var e,t,r=o;if(n.charCodeAt(r)===wo){for(;o++<i&&n.charCodeAt(o)!==wo||n.charCodeAt(++o)===wo;);return(e=o)>=i?s=!0:(t=n.charCodeAt(o++))===To?u=!0:t===So&&(u=!0,n.charCodeAt(o)===To&&++o),n.slice(r+1,e-1).replace(/""/g,'"')}for(;o<i;){if((t=n.charCodeAt(e=o++))===To)u=!0;else if(t===So)u=!0,n.charCodeAt(o)===To&&++o;else if(t!==f)continue;return n.slice(r,e)}return s=!0,n.slice(r,i)}for(n.charCodeAt(i-1)===To&&--i,n.charCodeAt(i-1)===So&&--i;(t=c())!==xo;){for(var l=[];t!==bo&&t!==xo;)l.push(t),t=c();e&&null==(l=e(l,a++))||r.push(l)}return r}function r(e,r){return e.map(function(t){return r.map(function(e){return a(t[e])}).join(n)})}function i(e){return e.map(a).join(n)}function a(e){return null==e?"":e instanceof Date?Co(e):t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,r){var n,i,t=o(e,function(e,t){if(n)return n(e,t-1);i=e,n=r?function(r,n){var i=Mo(r);return function(e,t){return n(i(e),t,r)}}(e,r):Mo(e)});return t.columns=i||[],t},parseRows:o,format:function(e,t){return null==t&&(t=Po(e)),[t.map(a).join(n)].concat(r(e,t)).join("\n")},formatBody:function(e,t){return null==t&&(t=Po(e)),r(e,t).join("\n")},formatRows:function(e){return e.map(i).join("\n")}}}var Ao=ko(","),Oo=Ao.parse,Ro=Ao.parseRows,Io=Ao.format,Do=Ao.formatBody,Lo=Ao.formatRows,No=ko("\t"),jo=No.parse,Fo=No.parseRows,Bo=No.format,zo=No.formatBody,Uo=No.formatRows;function Xo(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}function qo(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}function Ho(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}function Yo(e,t){return fetch(e,t).then(Ho)}function Go(n){return function(e,t,r){return 2===arguments.length&&"function"==typeof t&&(r=t,t=void 0),Yo(e,t).then(function(e){return n(e,r)})}}var Wo=Go(Oo),Vo=Go(jo);function Ko(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}function Jo(r){return function(e,t){return Yo(e,t).then(function(e){return(new DOMParser).parseFromString(e,r)})}}var Zo=Jo("application/xml"),Qo=Jo("text/html"),$o=Jo("image/svg+xml");function ea(e){return function(){return e}}function ta(){return 1e-6*(Math.random()-.5)}function ra(e,t,r,n){if(isNaN(t)||isNaN(r))return e;var i,o,a,s,u,c,l,f,h,d=e._root,p={data:n},m=e._x0,g=e._y0,v=e._x1,y=e._y1;if(!d)return e._root=p,e;for(;d.length;)if((c=t>=(o=(m+v)/2))?m=o:v=o,(l=r>=(a=(g+y)/2))?g=a:y=a,!(d=(i=d)[f=l<<1|c]))return i[f]=p,e;if(s=+e._x.call(null,d.data),u=+e._y.call(null,d.data),t===s&&r===u)return p.next=d,i?i[f]=p:e._root=p,e;for(;i=i?i[f]=new Array(4):e._root=new Array(4),(c=t>=(o=(m+v)/2))?m=o:v=o,(l=r>=(a=(g+y)/2))?g=a:y=a,(f=l<<1|c)==(h=(a<=u)<<1|o<=s););return i[h]=d,i[f]=p,e}function na(e,t,r,n,i){this.node=e,this.x0=t,this.y0=r,this.x1=n,this.y1=i}function ia(e){return e[0]}function oa(e){return e[1]}function aa(e,t,r){var n=new sa(null==t?ia:t,null==r?oa:r,NaN,NaN,NaN,NaN);return null==e?n:n.addAll(e)}function sa(e,t,r,n,i,o){this._x=e,this._y=t,this._x0=r,this._y0=n,this._x1=i,this._y1=o,this._root=void 0}function ua(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var ca=aa.prototype=sa.prototype;function la(e){return e.x+e.vx}function fa(e){return e.y+e.vy}function ha(e){return e.index}function da(e,t){var r=e.get(t);if(!r)throw new Error("missing: "+t);return r}function pa(e){return e.x}function ma(e){return e.y}ca.copy=function(){var e,t,r=new sa(this._x,this._y,this._x0,this._y0,this._x1,this._y1),n=this._root;if(!n)return r;if(!n.length)return r._root=ua(n),r;for(e=[{source:n,target:r._root=new Array(4)}];n=e.pop();)for(var i=0;i<4;++i)(t=n.source[i])&&(t.length?e.push({source:t,target:n.target[i]=new Array(4)}):n.target[i]=ua(t));return r},ca.add=function(e){var t=+this._x.call(null,e),r=+this._y.call(null,e);return ra(this.cover(t,r),t,r,e)},ca.addAll=function(e){var t,r,n,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,l=-1/0,f=-1/0;for(r=0;r<o;++r)isNaN(n=+this._x.call(null,t=e[r]))||isNaN(i=+this._y.call(null,t))||((a[r]=n)<u&&(u=n),l<n&&(l=n),(s[r]=i)<c&&(c=i),f<i&&(f=i));if(l<u||f<c)return this;for(this.cover(u,c).cover(l,f),r=0;r<o;++r)ra(this,a[r],s[r],e[r]);return this},ca.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,n=this._y0,i=this._x1,o=this._y1;if(isNaN(r))i=(r=Math.floor(e))+1,o=(n=Math.floor(t))+1;else{for(var a,s,u=i-r,c=this._root;e<r||i<=e||t<n||o<=t;)switch(s=(t<n)<<1|e<r,(a=new Array(4))[s]=c,c=a,u*=2,s){case 0:i=r+u,o=n+u;break;case 1:r=i-u,o=n+u;break;case 2:i=r+u,n=o-u;break;case 3:r=i-u,n=o-u}this._root&&this._root.length&&(this._root=c)}return this._x0=r,this._y0=n,this._x1=i,this._y1=o,this},ca.data=function(){var t=[];return this.visit(function(e){if(!e.length)for(;t.push(e.data),e=e.next;);}),t},ca.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ca.find=function(e,t,r){var n,i,o,a,s,u,c,l=this._x0,f=this._y0,h=this._x1,d=this._y1,p=[],m=this._root;for(m&&p.push(new na(m,l,f,h,d)),null==r?r=1/0:(l=e-r,f=t-r,h=e+r,d=t+r,r*=r);u=p.pop();)if(!(!(m=u.node)||(i=u.x0)>h||(o=u.y0)>d||(a=u.x1)<l||(s=u.y1)<f))if(m.length){var g=(i+a)/2,v=(o+s)/2;p.push(new na(m[3],g,v,a,s),new na(m[2],i,v,g,s),new na(m[1],g,o,a,v),new na(m[0],i,o,g,v)),(c=(v<=t)<<1|g<=e)&&(u=p[p.length-1],p[p.length-1]=p[p.length-1-c],p[p.length-1-c]=u)}else{var y=e-+this._x.call(null,m.data),_=t-+this._y.call(null,m.data),b=y*y+_*_;if(b<r){var x=Math.sqrt(r=b);l=e-x,f=t-x,h=e+x,d=t+x,n=m.data}}return n},ca.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,r,n,i,o,a,s,u,c,l,f,h,d=this._root,p=this._x0,m=this._y0,g=this._x1,v=this._y1;if(!d)return this;if(d.length)for(;;){if((c=o>=(s=(p+g)/2))?p=s:g=s,(l=a>=(u=(m+v)/2))?m=u:v=u,!(d=(t=d)[f=l<<1|c]))return this;if(!d.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(r=t,h=f)}for(;d.data!==e;)if(!(d=(n=d).next))return this;return(i=d.next)&&delete d.next,n?i?n.next=i:delete n.next:t?(i?t[f]=i:delete t[f],(d=t[0]||t[1]||t[2]||t[3])&&d===(t[3]||t[2]||t[1]||t[0])&&!d.length&&(r?r[h]=d:this._root=d)):this._root=i,this},ca.removeAll=function(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this},ca.root=function(){return this._root},ca.size=function(){var t=0;return this.visit(function(e){if(!e.length)for(;++t,e=e.next;);}),t},ca.visit=function(e){var t,r,n,i,o,a,s=[],u=this._root;for(u&&s.push(new na(u,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(u=t.node,n=t.x0,i=t.y0,o=t.x1,a=t.y1)&&u.length){var c=(n+o)/2,l=(i+a)/2;(r=u[3])&&s.push(new na(r,c,l,o,a)),(r=u[2])&&s.push(new na(r,n,l,c,a)),(r=u[1])&&s.push(new na(r,c,i,o,l)),(r=u[0])&&s.push(new na(r,n,i,c,l))}return this},ca.visitAfter=function(e){var t,r=[],n=[];for(this._root&&r.push(new na(this._root,this._x0,this._y0,this._x1,this._y1));t=r.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,u=t.x1,c=t.y1,l=(a+u)/2,f=(s+c)/2;(o=i[0])&&r.push(new na(o,a,s,l,f)),(o=i[1])&&r.push(new na(o,l,s,u,f)),(o=i[2])&&r.push(new na(o,a,f,l,c)),(o=i[3])&&r.push(new na(o,l,f,u,c))}n.push(t)}for(;t=n.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},ca.x=function(e){return arguments.length?(this._x=e,this):this._x},ca.y=function(e){return arguments.length?(this._y=e,this):this._y};var ga=Math.PI*(3-Math.sqrt(5));function va(e,t){if((r=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var r,n=e.slice(0,r);return[1<n.length?n[0]+n.slice(2):n,+e.slice(r+1)]}function ya(e){return(e=va(Math.abs(e)))?e[1]:NaN}var _a,ba=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function xa(e){return new wa(e)}function wa(e){if(!(t=ba.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}function Ta(e,t){var r=va(e,t);if(!r)return e+"";var n=r[0],i=r[1];return i<0?"0."+new Array(-i).join("0")+n:n.length>i+1?n.slice(0,i+1)+"."+n.slice(i+1):n+new Array(i-n.length+2).join("0")}xa.prototype=wa.prototype,wa.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Sa={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Ta(100*e,t)},r:Ta,s:function(e,t){var r=va(e,t);if(!r)return e+"";var n=r[0],i=r[1],o=i-(_a=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:a<o?n+new Array(o-a+1).join("0"):0<o?n.slice(0,o)+"."+n.slice(o):"0."+new Array(1-o).join("0")+va(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function Ma(e){return e}var Pa,Ea=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function Ca(e){var w=e.grouping&&e.thousands?function(s,u){return function(e,t){for(var r=e.length,n=[],i=0,o=s[0],a=0;0<r&&0<o&&(t<a+o+1&&(o=Math.max(1,t-a)),n.push(e.substring(r-=o,r+o)),!((a+=o+1)>t));)o=s[i=(i+1)%s.length];return n.reverse().join(u)}}(e.grouping,e.thousands):Ma,n=e.currency,T=e.decimal,S=e.numerals?function(t){return function(e){return e.replace(/[0-9]/g,function(e){return t[+e]})}}(e.numerals):Ma,i=e.percent||"%";function a(e){var c=(e=xa(e)).fill,l=e.align,f=e.sign,t=e.symbol,h=e.zero,d=e.width,p=e.comma,m=e.precision,g=e.trim,v=e.type;"n"===v?(p=!0,v="g"):Sa[v]||(null==m&&(m=12),g=!0,v="g"),(h||"0"===c&&"="===l)&&(h=!0,c="0",l="=");var y="$"===t?n[0]:"#"===t&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",_="$"===t?n[1]:/[%p]/.test(v)?i:"",b=Sa[v],x=/[defgprs%]/.test(v);function r(e){var t,r,n,i=y,o=_;if("c"===v)o=b(e)+o,e="";else{var a=(e=+e)<0;if(e=b(Math.abs(e),m),g&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n<r;++n)switch(e[n]){case".":i=t=n;break;case"0":0===i&&(i=n),t=n;break;default:if(0<i){if(!+e[n])break e;i=0}}return 0<i?e.slice(0,i)+e.slice(t+1):e}(e)),a&&0==+e&&(a=!1),i=(a?"("===f?f:"-":"-"===f||"("===f?"":f)+i,o=("s"===v?Ea[8+_a/3]:"")+o+(a&&"("===f?")":""),x)for(t=-1,r=e.length;++t<r;)if((n=e.charCodeAt(t))<48||57<n){o=(46===n?T+e.slice(t+1):e.slice(t))+o,e=e.slice(0,t);break}}p&&!h&&(e=w(e,1/0));var s=i.length+e.length+o.length,u=s<d?new Array(d-s+1).join(c):"";switch(p&&h&&(e=w(u+e,u.length?d-o.length:1/0),u=""),l){case"<":e=i+e+o+u;break;case"=":e=i+u+e+o;break;case"^":e=u.slice(0,s=u.length>>1)+i+e+o+u.slice(s);break;default:e=u+i+e+o}return S(e)}return m=null==m?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,m)):Math.max(0,Math.min(20,m)),r.toString=function(){return e+""},r}return{format:a,formatPrefix:function(e,t){var r=a(((e=xa(e)).type="f",e)),n=3*Math.max(-8,Math.min(8,Math.floor(ya(t)/3))),i=Math.pow(10,-n),o=Ea[8+n/3];return function(e){return r(i*e)+o}}}}function ka(e){return Pa=Ca(e),z.format=Pa.format,z.formatPrefix=Pa.formatPrefix,Pa}function Aa(e){return Math.max(0,-ya(Math.abs(e)))}function Oa(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(ya(t)/3)))-ya(Math.abs(e)))}function Ra(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,ya(t)-ya(e))+1}function Ia(){return new Da}function Da(){this.reset()}ka({decimal:".",thousands:",",grouping:[3],currency:["$",""]}),Da.prototype={constructor:Da,reset:function(){this.s=this.t=0},add:function(e){Na(La,e,this.t),Na(this,La.s,this.s),this.s?this.t+=La.t:this.s=La.t},valueOf:function(){return this.s}};var La=new Da;function Na(e,t,r){var n=e.s=t+r,i=n-t,o=n-i;e.t=t-o+(r-i)}var ja=1e-6,Fa=Math.PI,Ba=Fa/2,za=Fa/4,Ua=2*Fa,Xa=180/Fa,qa=Fa/180,Ha=Math.abs,Ya=Math.atan,Ga=Math.atan2,Wa=Math.cos,Va=Math.ceil,Ka=Math.exp,Ja=Math.log,Za=Math.pow,Qa=Math.sin,$a=Math.sign||function(e){return 0<e?1:e<0?-1:0},es=Math.sqrt,ts=Math.tan;function rs(e){return 1<e?0:e<-1?Fa:Math.acos(e)}function ns(e){return 1<e?Ba:e<-1?-Ba:Math.asin(e)}function is(e){return(e=Qa(e/2))*e}function os(){}function as(e,t){e&&us.hasOwnProperty(e.type)&&us[e.type](e,t)}var ss={Feature:function(e,t){as(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,n=-1,i=r.length;++n<i;)as(r[n].geometry,t)}},us={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)e=r[n],t.point(e[0],e[1],e[2])},LineString:function(e,t){cs(e.coordinates,t,0)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)cs(r[n],t,0)},Polygon:function(e,t){ls(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)ls(r[n],t)},GeometryCollection:function(e,t){for(var r=e.geometries,n=-1,i=r.length;++n<i;)as(r[n],t)}};function cs(e,t,r){var n,i=-1,o=e.length-r;for(t.lineStart();++i<o;)n=e[i],t.point(n[0],n[1],n[2]);t.lineEnd()}function ls(e,t){var r=-1,n=e.length;for(t.polygonStart();++r<n;)cs(e[r],t,1);t.polygonEnd()}function fs(e,t){e&&ss.hasOwnProperty(e.type)?ss[e.type](e,t):as(e,t)}var hs,ds,ps,ms,gs,vs=Ia(),ys=Ia(),_s={point:os,lineStart:os,lineEnd:os,polygonStart:function(){vs.reset(),_s.lineStart=bs,_s.lineEnd=xs},polygonEnd:function(){var e=+vs;ys.add(e<0?Ua+e:e),this.lineStart=this.lineEnd=this.point=os},sphere:function(){ys.add(Ua)}};function bs(){_s.point=ws}function xs(){Ts(hs,ds)}function ws(e,t){_s.point=Ts,hs=e,ds=t,ps=e*=qa,ms=Wa(t=(t*=qa)/2+za),gs=Qa(t)}function Ts(e,t){var r=(e*=qa)-ps,n=0<=r?1:-1,i=n*r,o=Wa(t=(t*=qa)/2+za),a=Qa(t),s=gs*a,u=ms*o+s*Wa(i),c=s*n*Qa(i);vs.add(Ga(c,u)),ps=e,ms=o,gs=a}function Ss(e){return[Ga(e[1],e[0]),ns(e[2])]}function Ms(e){var t=e[0],r=e[1],n=Wa(r);return[n*Wa(t),n*Qa(t),Qa(r)]}function Ps(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Es(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Cs(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function ks(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function As(e){var t=es(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Os,Rs,Is,Ds,Ls,Ns,js,Fs,Bs,zs,Us,Xs,qs,Hs,Ys,Gs,Ws,Vs,Ks,Js,Zs,Qs,$s,eu,tu,ru,nu=Ia(),iu={point:ou,lineStart:su,lineEnd:uu,polygonStart:function(){iu.point=cu,iu.lineStart=lu,iu.lineEnd=fu,nu.reset(),_s.polygonStart()},polygonEnd:function(){_s.polygonEnd(),iu.point=ou,iu.lineStart=su,iu.lineEnd=uu,vs<0?(Os=-(Is=180),Rs=-(Ds=90)):ja<nu?Ds=90:nu<-ja&&(Rs=-90),zs[0]=Os,zs[1]=Is}};function ou(e,t){Bs.push(zs=[Os=e,Is=e]),t<Rs&&(Rs=t),Ds<t&&(Ds=t)}function au(e,t){var r=Ms([e*qa,t*qa]);if(Fs){var n=Es(Fs,r),i=Es([n[1],-n[0],0],n);As(i),i=Ss(i);var o,a=e-Ls,s=0<a?1:-1,u=i[0]*Xa*s,c=180<Ha(a);c^(s*Ls<u&&u<s*e)?(o=i[1]*Xa,Ds<o&&(Ds=o)):c^(s*Ls<(u=(u+360)%360-180)&&u<s*e)?(o=-i[1]*Xa)<Rs&&(Rs=o):(t<Rs&&(Rs=t),Ds<t&&(Ds=t)),c?e<Ls?hu(Os,e)>hu(Os,Is)&&(Is=e):hu(e,Is)>hu(Os,Is)&&(Os=e):Os<=Is?(e<Os&&(Os=e),Is<e&&(Is=e)):Ls<e?hu(Os,e)>hu(Os,Is)&&(Is=e):hu(e,Is)>hu(Os,Is)&&(Os=e)}else Bs.push(zs=[Os=e,Is=e]);t<Rs&&(Rs=t),Ds<t&&(Ds=t),Fs=r,Ls=e}function su(){iu.point=au}function uu(){zs[0]=Os,zs[1]=Is,iu.point=ou,Fs=null}function cu(e,t){if(Fs){var r=e-Ls;nu.add(180<Ha(r)?r+(0<r?360:-360):r)}else Ns=e,js=t;_s.point(e,t),au(e,t)}function lu(){_s.lineStart()}function fu(){cu(Ns,js),_s.lineEnd(),Ha(nu)>ja&&(Os=-(Is=180)),zs[0]=Os,zs[1]=Is,Fs=null}function hu(e,t){return(t-=e)<0?t+360:t}function du(e,t){return e[0]-t[0]}function pu(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var mu={sphere:os,point:gu,lineStart:yu,lineEnd:xu,polygonStart:function(){mu.lineStart=wu,mu.lineEnd=Tu},polygonEnd:function(){mu.lineStart=yu,mu.lineEnd=xu}};function gu(e,t){e*=qa;var r=Wa(t*=qa);vu(r*Wa(e),r*Qa(e),Qa(t))}function vu(e,t,r){qs+=(e-qs)/++Us,Hs+=(t-Hs)/Us,Ys+=(r-Ys)/Us}function yu(){mu.point=_u}function _u(e,t){e*=qa;var r=Wa(t*=qa);eu=r*Wa(e),tu=r*Qa(e),ru=Qa(t),mu.point=bu,vu(eu,tu,ru)}function bu(e,t){e*=qa;var r=Wa(t*=qa),n=r*Wa(e),i=r*Qa(e),o=Qa(t),a=Ga(es((a=tu*o-ru*i)*a+(a=ru*n-eu*o)*a+(a=eu*i-tu*n)*a),eu*n+tu*i+ru*o);Xs+=a,Gs+=a*(eu+(eu=n)),Ws+=a*(tu+(tu=i)),Vs+=a*(ru+(ru=o)),vu(eu,tu,ru)}function xu(){mu.point=gu}function wu(){mu.point=Su}function Tu(){Mu(Qs,$s),mu.point=gu}function Su(e,t){Qs=e,$s=t,e*=qa,t*=qa,mu.point=Mu;var r=Wa(t);eu=r*Wa(e),tu=r*Qa(e),ru=Qa(t),vu(eu,tu,ru)}function Mu(e,t){e*=qa;var r=Wa(t*=qa),n=r*Wa(e),i=r*Qa(e),o=Qa(t),a=tu*o-ru*i,s=ru*n-eu*o,u=eu*i-tu*n,c=es(a*a+s*s+u*u),l=ns(c),f=c&&-l/c;Ks+=f*a,Js+=f*s,Zs+=f*u,Xs+=l,Gs+=l*(eu+(eu=n)),Ws+=l*(tu+(tu=i)),Vs+=l*(ru+(ru=o)),vu(eu,tu,ru)}function Pu(e){return function(){return e}}function Eu(r,n){function e(e,t){return e=r(e,t),n(e[0],e[1])}return r.invert&&n.invert&&(e.invert=function(e,t){return(e=n.invert(e,t))&&r.invert(e[0],e[1])}),e}function Cu(e,t){return[Ha(e)>Fa?e+Math.round(-e/Ua)*Ua:e,t]}function ku(e,t,r){return(e%=Ua)?t||r?Eu(Ou(e),Ru(t,r)):Ou(e):t||r?Ru(t,r):Cu}function Au(r){return function(e,t){return[Fa<(e+=r)?e-Ua:e<-Fa?e+Ua:e,t]}}function Ou(e){var t=Au(e);return t.invert=Au(-e),t}function Ru(e,t){var s=Wa(e),u=Qa(e),c=Wa(t),l=Qa(t);function r(e,t){var r=Wa(t),n=Wa(e)*r,i=Qa(e)*r,o=Qa(t),a=o*s+n*u;return[Ga(i*c-a*l,n*s-o*u),ns(a*c+i*l)]}return r.invert=function(e,t){var r=Wa(t),n=Wa(e)*r,i=Qa(e)*r,o=Qa(t),a=o*c-i*l;return[Ga(i*c+o*l,n*s+a*u),ns(a*s-n*u)]},r}function Iu(t){function e(e){return(e=t(e[0]*qa,e[1]*qa))[0]*=Xa,e[1]*=Xa,e}return t=ku(t[0]*qa,t[1]*qa,2<t.length?t[2]*qa:0),e.invert=function(e){return(e=t.invert(e[0]*qa,e[1]*qa))[0]*=Xa,e[1]*=Xa,e},e}function Du(e,t,r,n,i,o){if(r){var a=Wa(t),s=Qa(t),u=n*r;null==i?(i=t+n*Ua,o=t-u/2):(i=Lu(a,i),o=Lu(a,o),(0<n?i<o:o<i)&&(i+=n*Ua));for(var c,l=i;0<n?o<l:l<o;l-=u)c=Ss([a,-s*Wa(l),-s*Qa(l)]),e.point(c[0],c[1])}}function Lu(e,t){(t=Ms(t))[0]-=e,As(t);var r=rs(-t[1]);return((-t[2]<0?-r:r)+Ua-ja)%Ua}function Nu(){var r,t=[];return{point:function(e,t){r.push([e,t])},lineStart:function(){t.push(r=[])},lineEnd:os,rejoin:function(){1<t.length&&t.push(t.pop().concat(t.shift()))},result:function(){var e=t;return t=[],r=null,e}}}function ju(e,t){return Ha(e[0]-t[0])<ja&&Ha(e[1]-t[1])<ja}function Fu(e,t,r,n){this.x=e,this.z=t,this.o=r,this.e=n,this.v=!1,this.n=this.p=null}function Bu(e,t,r,n,o){var a,i,s=[],u=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,r,n=e[0],i=e[t];if(ju(n,i)){for(o.lineStart(),a=0;a<t;++a)o.point((n=e[a])[0],n[1]);o.lineEnd()}else s.push(r=new Fu(n,e,null,!0)),u.push(r.o=new Fu(n,null,r,!1)),s.push(r=new Fu(i,e,null,!1)),u.push(r.o=new Fu(i,null,r,!0))}}),s.length){for(u.sort(t),zu(s),zu(u),a=0,i=u.length;a<i;++a)u[a].e=r=!r;for(var c,l,f=s[0];;){for(var h=f,d=!0;h.v;)if((h=h.n)===f)return;c=h.z,o.lineStart();do{if(h.v=h.o.v=!0,h.e){if(d)for(a=0,i=c.length;a<i;++a)o.point((l=c[a])[0],l[1]);else n(h.x,h.n.x,1,o);h=h.n}else{if(d)for(c=h.p.z,a=c.length-1;0<=a;--a)o.point((l=c[a])[0],l[1]);else n(h.x,h.p.x,-1,o);h=h.p}c=(h=h.o).z,d=!d}while(!h.v);o.lineEnd()}}}function zu(e){if(t=e.length){for(var t,r,n=0,i=e[0];++n<t;)i.n=r=e[n],r.p=i,i=r;i.n=r=e[0],r.p=i}}Cu.invert=Cu;var Uu=Ia();function Xu(e,t){var r=t[0],n=t[1],i=Qa(n),o=[Qa(r),-Wa(r),0],a=0,s=0;Uu.reset(),1===i?n=Ba+ja:-1===i&&(n=-Ba-ja);for(var u=0,c=e.length;u<c;++u)if(f=(l=e[u]).length)for(var l,f,h=l[f-1],d=h[0],p=h[1]/2+za,m=Qa(p),g=Wa(p),v=0;v<f;++v,d=_,m=x,g=w,h=y){var y=l[v],_=y[0],b=y[1]/2+za,x=Qa(b),w=Wa(b),T=_-d,S=0<=T?1:-1,M=S*T,P=Fa<M,E=m*x;if(Uu.add(Ga(E*S*Qa(M),g*w+E*Wa(M))),a+=P?T+S*Ua:T,P^r<=d^r<=_){var C=Es(Ms(h),Ms(y));As(C);var k=Es(o,C);As(k);var A=(P^0<=T?-1:1)*ns(k[2]);(A<n||n===A&&(C[0]||C[1]))&&(s+=P^0<=T?1:-1)}}return(a<-ja||a<ja&&Uu<-ja)^1&s}function qu(g,v,y,_){return function(s){var u,c,l,r=v(s),f=Nu(),h=v(f),d=!1,t={point:n,lineStart:i,lineEnd:o,polygonStart:function(){t.point=p,t.lineStart=a,t.lineEnd=m,c=[],u=[]},polygonEnd:function(){t.point=n,t.lineStart=i,t.lineEnd=o,c=E(c);var e=Xu(u,_);c.length?(d||(s.polygonStart(),d=!0),Bu(c,Yu,e,y,s)):e&&(d||(s.polygonStart(),d=!0),s.lineStart(),y(null,null,1,s),s.lineEnd()),d&&(s.polygonEnd(),d=!1),c=u=null},sphere:function(){s.polygonStart(),s.lineStart(),y(null,null,1,s),s.lineEnd(),s.polygonEnd()}};function n(e,t){g(e,t)&&s.point(e,t)}function e(e,t){r.point(e,t)}function i(){t.point=e,r.lineStart()}function o(){t.point=n,r.lineEnd()}function p(e,t){l.push([e,t]),h.point(e,t)}function a(){h.lineStart(),l=[]}function m(){p(l[0][0],l[0][1]),h.lineEnd();var e,t,r,n,i=h.clean(),o=f.result(),a=o.length;if(l.pop(),u.push(l),l=null,a)if(1&i){if(0<(t=(r=o[0]).length-1)){for(d||(s.polygonStart(),d=!0),s.lineStart(),e=0;e<t;++e)s.point((n=r[e])[0],n[1]);s.lineEnd()}}else 1<a&&2&i&&o.push(o.pop().concat(o.shift())),c.push(o.filter(Hu))}return t}}function Hu(e){return 1<e.length}function Yu(e,t){return((e=e.x)[0]<0?e[1]-Ba-ja:Ba-e[1])-((t=t.x)[0]<0?t[1]-Ba-ja:Ba-t[1])}var Gu=qu(function(){return!0},function(i){var o,a=NaN,s=NaN,u=NaN;return{lineStart:function(){i.lineStart(),o=1},point:function(e,t){var r=0<e?Fa:-Fa,n=Ha(e-a);Ha(n-Fa)<ja?(i.point(a,s=0<(s+t)/2?Ba:-Ba),i.point(u,s),i.lineEnd(),i.lineStart(),i.point(r,s),i.point(e,s),o=0):u!==r&&Fa<=n&&(Ha(a-u)<ja&&(a-=u*ja),Ha(e-r)<ja&&(e-=r*ja),s=function(e,t,r,n){var i,o,a=Qa(e-r);return Ha(a)>ja?Ya((Qa(t)*(o=Wa(n))*Qa(r)-Qa(n)*(i=Wa(t))*Qa(e))/(i*o*a)):(t+n)/2}(a,s,e,t),i.point(u,s),i.lineEnd(),i.lineStart(),i.point(r,s),o=0),i.point(a=e,s=t),u=r},lineEnd:function(){i.lineEnd(),a=s=NaN},clean:function(){return 2-o}}},function(e,t,r,n){var i;if(null==e)i=r*Ba,n.point(-Fa,i),n.point(0,i),n.point(Fa,i),n.point(Fa,0),n.point(Fa,-i),n.point(0,-i),n.point(-Fa,-i),n.point(-Fa,0),n.point(-Fa,i);else if(Ha(e[0]-t[0])>ja){var o=e[0]<t[0]?Fa:-Fa;i=r*o/2,n.point(-o,i),n.point(0,i),n.point(o,i)}else n.point(t[0],t[1])},[-Fa,-Ba]);function Wu(i){var P=Wa(i),o=6*qa,d=0<P,p=Ha(P)>ja;function m(e,t){return Wa(e)*Wa(t)>P}function g(e,t,r){var n=[1,0,0],i=Es(Ms(e),Ms(t)),o=Ps(i,i),a=i[0],s=o-a*a;if(!s)return!r&&e;var u=P*o/s,c=-P*a/s,l=Es(n,i),f=ks(n,u);Cs(f,ks(i,c));var h=l,d=Ps(f,h),p=Ps(h,h),m=d*d-p*(Ps(f,f)-1);if(!(m<0)){var g=es(m),v=ks(h,(-d-g)/p);if(Cs(v,f),v=Ss(v),!r)return v;var y,_=e[0],b=t[0],x=e[1],w=t[1];b<_&&(y=_,_=b,b=y);var T=b-_,S=Ha(T-Fa)<ja;if(!S&&w<x&&(y=x,x=w,w=y),S||T<ja?S?0<x+w^v[1]<(Ha(v[0]-_)<ja?x:w):x<=v[1]&&v[1]<=w:Fa<T^(_<=v[0]&&v[0]<=b)){var M=ks(h,(-d+g)/p);return Cs(M,f),[v,Ss(M)]}}}function v(e,t){var r=d?i:Fa-i,n=0;return e<-r?n|=1:r<e&&(n|=2),t<-r?n|=4:r<t&&(n|=8),n}return qu(m,function(s){var u,c,l,f,h;return{lineStart:function(){f=l=!1,h=1},point:function(e,t){var r,n=[e,t],i=m(e,t),o=d?i?0:v(e,t):i?v(e+(e<0?Fa:-Fa),t):0;if(!u&&(f=l=i)&&s.lineStart(),i!==l&&(!(r=g(u,n))||ju(u,r)||ju(n,r))&&(n[0]+=ja,n[1]+=ja,i=m(n[0],n[1])),i!==l)h=0,i?(s.lineStart(),r=g(n,u),s.point(r[0],r[1])):(r=g(u,n),s.point(r[0],r[1]),s.lineEnd()),u=r;else if(p&&u&&d^i){var a;o&c||!(a=g(n,u,!0))||(h=0,d?(s.lineStart(),s.point(a[0][0],a[0][1]),s.point(a[1][0],a[1][1]),s.lineEnd()):(s.point(a[1][0],a[1][1]),s.lineEnd(),s.lineStart(),s.point(a[0][0],a[0][1])))}!i||u&&ju(u,n)||s.point(n[0],n[1]),u=n,l=i,c=o},lineEnd:function(){l&&s.lineEnd(),u=null},clean:function(){return h|(f&&l)<<1}}},function(e,t,r,n){Du(n,i,o,r,e,t)},d?[0,-i]:[-Fa,i-Fa])}var Vu=1e9,Ku=-Vu;function Ju(v,y,_,b){function x(e,t){return v<=e&&e<=_&&y<=t&&t<=b}function w(e,t,r,n){var i=0,o=0;if(null==e||(i=a(e,r))!==(o=a(t,r))||s(e,t)<0^0<r)for(;n.point(0===i||3===i?v:_,1<i?b:y),(i=(i+r+4)%4)!==o;);else n.point(t[0],t[1])}function a(e,t){return Ha(e[0]-v)<ja?0<t?0:3:Ha(e[0]-_)<ja?0<t?2:1:Ha(e[1]-y)<ja?0<t?1:0:0<t?3:2}function T(e,t){return s(e.x,t.x)}function s(e,t){var r=a(e,1),n=a(t,1);return r!==n?r-n:0===r?t[1]-e[1]:1===r?e[0]-t[0]:2===r?e[1]-t[1]:t[0]-e[0]}return function(n){var i,f,o,a,s,u,c,l,h,d,p,m=n,e=Nu(),t={point:r,lineStart:function(){t.point=g,f&&f.push(o=[]);d=!0,h=!1,c=l=NaN},lineEnd:function(){i&&(g(a,s),u&&h&&e.rejoin(),i.push(e.result()));t.point=r,h&&m.lineEnd()},polygonStart:function(){m=e,i=[],f=[],p=!0},polygonEnd:function(){var e=function(){for(var e=0,t=0,r=f.length;t<r;++t)for(var n,i,o=f[t],a=1,s=o.length,u=o[0],c=u[0],l=u[1];a<s;++a)n=c,i=l,u=o[a],c=u[0],l=u[1],i<=b?b<l&&(l-i)*(v-n)<(c-n)*(b-i)&&++e:l<=b&&(c-n)*(b-i)<(l-i)*(v-n)&&--e;return e}(),t=p&&e,r=(i=E(i)).length;(t||r)&&(n.polygonStart(),t&&(n.lineStart(),w(null,null,1,n),n.lineEnd()),r&&Bu(i,T,e,w,n),n.polygonEnd());m=n,i=f=o=null}};function r(e,t){x(e,t)&&m.point(e,t)}function g(e,t){var r=x(e,t);if(f&&o.push([e,t]),d)a=e,s=t,d=!1,(u=r)&&(m.lineStart(),m.point(e,t));else if(r&&h)m.point(e,t);else{var n=[c=Math.max(Ku,Math.min(Vu,c)),l=Math.max(Ku,Math.min(Vu,l))],i=[e=Math.max(Ku,Math.min(Vu,e)),t=Math.max(Ku,Math.min(Vu,t))];!function(e,t,r,n,i,o){var a,s=e[0],u=e[1],c=0,l=1,f=t[0]-s,h=t[1]-u;if(a=r-s,f||!(0<a)){if(a/=f,f<0){if(a<c)return;a<l&&(l=a)}else if(0<f){if(l<a)return;c<a&&(c=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(l<a)return;c<a&&(c=a)}else if(0<f){if(a<c)return;a<l&&(l=a)}if(a=n-u,h||!(0<a)){if(a/=h,h<0){if(a<c)return;a<l&&(l=a)}else if(0<h){if(l<a)return;c<a&&(c=a)}if(a=o-u,h||!(a<0)){if(a/=h,h<0){if(l<a)return;c<a&&(c=a)}else if(0<h){if(a<c)return;a<l&&(l=a)}return 0<c&&(e[0]=s+c*f,e[1]=u+c*h),l<1&&(t[0]=s+l*f,t[1]=u+l*h),!0}}}}}(n,i,v,y,_,b)?r&&(m.lineStart(),m.point(e,t),p=!1):(h||(m.lineStart(),m.point(n[0],n[1])),m.point(i[0],i[1]),r||m.lineEnd(),p=!1)}c=e,l=t,h=r}return t}}var Zu,Qu,$u,ec=Ia(),tc={sphere:os,point:os,lineStart:function(){tc.point=nc,tc.lineEnd=rc},lineEnd:os,polygonStart:os,polygonEnd:os};function rc(){tc.point=tc.lineEnd=os}function nc(e,t){Zu=e*=qa,Qu=Qa(t*=qa),$u=Wa(t),tc.point=ic}function ic(e,t){e*=qa;var r=Qa(t*=qa),n=Wa(t),i=Ha(e-Zu),o=Wa(i),a=n*Qa(i),s=$u*r-Qu*n*o,u=Qu*r+$u*n*o;ec.add(Ga(es(a*a+s*s),u)),Zu=e,Qu=r,$u=n}function oc(e){return ec.reset(),fs(e,tc),+ec}var ac=[null,null],sc={type:"LineString",coordinates:ac};function uc(e,t){return ac[0]=e,ac[1]=t,oc(sc)}var cc={Feature:function(e,t){return fc(e.geometry,t)},FeatureCollection:function(e,t){for(var r=e.features,n=-1,i=r.length;++n<i;)if(fc(r[n].geometry,t))return!0;return!1}},lc={Sphere:function(){return!0},Point:function(e,t){return hc(e.coordinates,t)},MultiPoint:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)if(hc(r[n],t))return!0;return!1},LineString:function(e,t){return dc(e.coordinates,t)},MultiLineString:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)if(dc(r[n],t))return!0;return!1},Polygon:function(e,t){return pc(e.coordinates,t)},MultiPolygon:function(e,t){for(var r=e.coordinates,n=-1,i=r.length;++n<i;)if(pc(r[n],t))return!0;return!1},GeometryCollection:function(e,t){for(var r=e.geometries,n=-1,i=r.length;++n<i;)if(fc(r[n],t))return!0;return!1}};function fc(e,t){return!(!e||!lc.hasOwnProperty(e.type))&&lc[e.type](e,t)}function hc(e,t){return 0===uc(e,t)}function dc(e,t){var r=uc(e[0],e[1]);return uc(e[0],t)+uc(t,e[1])<=r+ja}function pc(e,t){return!!Xu(e.map(mc),gc(t))}function mc(e){return(e=e.map(gc)).pop(),e}function gc(e){return[e[0]*qa,e[1]*qa]}function vc(e,t,r){var n=M(e,t-ja,r).concat(t);return function(t){return n.map(function(e){return[t,e]})}}function yc(e,t,r){var n=M(e,t-ja,r).concat(t);return function(t){return n.map(function(e){return[e,t]})}}function _c(){var t,r,n,i,o,a,s,u,c,l,f,h,d=10,p=d,m=90,g=360,v=2.5;function y(){return{type:"MultiLineString",coordinates:e()}}function e(){return M(Va(i/m)*m,n,m).map(f).concat(M(Va(u/g)*g,s,g).map(h)).concat(M(Va(r/d)*d,t,d).filter(function(e){return Ha(e%m)>ja}).map(c)).concat(M(Va(a/p)*p,o,p).filter(function(e){return Ha(e%g)>ja}).map(l))}return y.lines=function(){return e().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(i=+e[0][0],n=+e[1][0],u=+e[0][1],s=+e[1][1],n<i&&(e=i,i=n,n=e),s<u&&(e=u,u=s,s=e),y.precision(v)):[[i,u],[n,s]]},y.extentMinor=function(e){return arguments.length?(r=+e[0][0],t=+e[1][0],a=+e[0][1],o=+e[1][1],t<r&&(e=r,r=t,t=e),o<a&&(e=a,a=o,o=e),y.precision(v)):[[r,a],[t,o]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(m=+e[0],g=+e[1],y):[m,g]},y.stepMinor=function(e){return arguments.length?(d=+e[0],p=+e[1],y):[d,p]},y.precision=function(e){return arguments.length?(v=+e,c=vc(a,o,90),l=yc(r,t,v),f=vc(u,s,90),h=yc(i,n,v),y):v},y.extentMajor([[-180,-90+ja],[180,90-ja]]).extentMinor([[-180,-80-ja],[180,80+ja]])}function bc(e){return e}var xc,wc,Tc,Sc,Mc=Ia(),Pc=Ia(),Ec={point:os,lineStart:os,lineEnd:os,polygonStart:function(){Ec.lineStart=Cc,Ec.lineEnd=Oc},polygonEnd:function(){Ec.lineStart=Ec.lineEnd=Ec.point=os,Mc.add(Ha(Pc)),Pc.reset()},result:function(){var e=Mc/2;return Mc.reset(),e}};function Cc(){Ec.point=kc}function kc(e,t){Ec.point=Ac,xc=Tc=e,wc=Sc=t}function Ac(e,t){Pc.add(Sc*e-Tc*t),Tc=e,Sc=t}function Oc(){Ac(xc,wc)}var Rc=1/0,Ic=Rc,Dc=-Rc,Lc=Dc,Nc={point:function(e,t){e<Rc&&(Rc=e);Dc<e&&(Dc=e);t<Ic&&(Ic=t);Lc<t&&(Lc=t)},lineStart:os,lineEnd:os,polygonStart:os,polygonEnd:os,result:function(){var e=[[Rc,Ic],[Dc,Lc]];return Dc=Lc=-(Ic=Rc=1/0),e}};var jc,Fc,Bc,zc,Uc=0,Xc=0,qc=0,Hc=0,Yc=0,Gc=0,Wc=0,Vc=0,Kc=0,Jc={point:Zc,lineStart:Qc,lineEnd:tl,polygonStart:function(){Jc.lineStart=rl,Jc.lineEnd=nl},polygonEnd:function(){Jc.point=Zc,Jc.lineStart=Qc,Jc.lineEnd=tl},result:function(){var e=Kc?[Wc/Kc,Vc/Kc]:Gc?[Hc/Gc,Yc/Gc]:qc?[Uc/qc,Xc/qc]:[NaN,NaN];return Uc=Xc=qc=Hc=Yc=Gc=Wc=Vc=Kc=0,e}};function Zc(e,t){Uc+=e,Xc+=t,++qc}function Qc(){Jc.point=$c}function $c(e,t){Jc.point=el,Zc(Bc=e,zc=t)}function el(e,t){var r=e-Bc,n=t-zc,i=es(r*r+n*n);Hc+=i*(Bc+e)/2,Yc+=i*(zc+t)/2,Gc+=i,Zc(Bc=e,zc=t)}function tl(){Jc.point=Zc}function rl(){Jc.point=il}function nl(){ol(jc,Fc)}function il(e,t){Jc.point=ol,Zc(jc=Bc=e,Fc=zc=t)}function ol(e,t){var r=e-Bc,n=t-zc,i=es(r*r+n*n);Hc+=i*(Bc+e)/2,Yc+=i*(zc+t)/2,Gc+=i,Wc+=(i=zc*e-Bc*t)*(Bc+e),Vc+=i*(zc+t),Kc+=3*i,Zc(Bc=e,zc=t)}function al(e){this._context=e}al.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,Ua)}},result:os};var sl,ul,cl,ll,fl,hl=Ia(),dl={point:os,lineStart:function(){dl.point=pl},lineEnd:function(){sl&&ml(ul,cl),dl.point=os},polygonStart:function(){sl=!0},polygonEnd:function(){sl=null},result:function(){var e=+hl;return hl.reset(),e}};function pl(e,t){dl.point=ml,ul=ll=e,cl=fl=t}function ml(e,t){ll-=e,fl-=t,hl.add(es(ll*ll+fl*fl)),ll=e,fl=t}function gl(){this._string=[]}function vl(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}function yl(n){return function(e){var t=new _l;for(var r in n)t[r]=n[r];return t.stream=e,t}}function _l(){}function bl(e,t,r){var n=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=n&&e.clipExtent(null),fs(r,e.stream(Nc)),t(Nc.result()),null!=n&&e.clipExtent(n),e}function xl(a,s,e){return bl(a,function(e){var t=s[1][0]-s[0][0],r=s[1][1]-s[0][1],n=Math.min(t/(e[1][0]-e[0][0]),r/(e[1][1]-e[0][1])),i=+s[0][0]+(t-n*(e[1][0]+e[0][0]))/2,o=+s[0][1]+(r-n*(e[1][1]+e[0][1]))/2;a.scale(150*n).translate([i,o])},e)}function wl(e,t,r){return xl(e,[[0,0],t],r)}function Tl(o,a,e){return bl(o,function(e){var t=+a,r=t/(e[1][0]-e[0][0]),n=(t-r*(e[1][0]+e[0][0]))/2,i=-r*e[0][1];o.scale(150*r).translate([n,i])},e)}function Sl(o,a,e){return bl(o,function(e){var t=+a,r=t/(e[1][1]-e[0][1]),n=-r*e[0][0],i=(t-r*(e[1][1]+e[0][1]))/2;o.scale(150*r).translate([n,i])},e)}gl.prototype={_radius:4.5,_circle:vl(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=vl(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}},_l.prototype={constructor:_l,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var Ml=16,Pl=Wa(30*qa);function El(e,t){return+t?function(k,A){function O(e,t,r,n,i,o,a,s,u,c,l,f,h,d){var p=a-e,m=s-t,g=p*p+m*m;if(4*A<g&&h--){var v=n+c,y=i+l,_=o+f,b=es(v*v+y*y+_*_),x=ns(_/=b),w=Ha(Ha(_)-1)<ja||Ha(r-u)<ja?(r+u)/2:Ga(y,v),T=k(w,x),S=T[0],M=T[1],P=S-e,E=M-t,C=m*P-p*E;(A<C*C/g||.3<Ha((p*P+m*E)/g-.5)||n*c+i*l+o*f<Pl)&&(O(e,t,r,n,i,o,S,M,w,v/=b,y/=b,_,h,d),d.point(S,M),O(S,M,w,v,y,_,a,s,u,c,l,f,h,d))}}return function(i){var r,n,o,a,s,u,c,l,f,h,d,p,m={point:e,lineStart:t,lineEnd:v,polygonStart:function(){i.polygonStart(),m.lineStart=y},polygonEnd:function(){i.polygonEnd(),m.lineStart=t}};function e(e,t){e=k(e,t),i.point(e[0],e[1])}function t(){l=NaN,m.point=g,i.lineStart()}function g(e,t){var r=Ms([e,t]),n=k(e,t);O(l,f,c,h,d,p,l=n[0],f=n[1],c=e,h=r[0],d=r[1],p=r[2],Ml,i),i.point(l,f)}function v(){m.point=e,i.lineEnd()}function y(){t(),m.point=_,m.lineEnd=b}function _(e,t){g(r=e,t),n=l,o=f,a=h,s=d,u=p,m.point=g}function b(){O(l,f,c,h,d,p,n,o,r,a,s,u,Ml,i),(m.lineEnd=v)()}return m}}(e,t):function(r){return yl({point:function(e,t){e=r(e,t),this.stream.point(e[0],e[1])}})}(e)}var Cl=yl({point:function(e,t){this.stream.point(e*qa,t*qa)}});function kl(e,r,n,t){var i=Wa(t),o=Qa(t),a=i*e,s=o*e,u=i/e,c=o/e,l=(o*n-i*r)/e,f=(o*r+i*n)/e;function h(e,t){return[a*e-s*t+r,n-s*e-a*t]}return h.invert=function(e,t){return[u*e-c*t+l,f-c*e-u*t]},h}function Al(e){return Ol(function(){return e})()}function Ol(e){var r,n,t,i,o,a,s,u,c,l,f=150,h=480,d=250,p=0,m=0,g=0,v=0,y=0,_=0,b=null,x=Gu,w=null,T=bc,S=.5;function M(e){return u(e[0]*qa,e[1]*qa)}function P(e){return(e=u.invert(e[0],e[1]))&&[e[0]*Xa,e[1]*Xa]}function E(){var e=kl(f,0,0,_).apply(null,r(p,m)),t=(_?kl:function(r,n,i){function e(e,t){return[n+r*e,i-r*t]}return e.invert=function(e,t){return[(e-n)/r,(i-t)/r]},e})(f,h-e[0],d-e[1],_);return n=ku(g,v,y),s=Eu(r,t),u=Eu(n,s),a=El(s,S),C()}function C(){return c=l=null,M}return M.stream=function(e){return c&&l===e?c:c=Cl(function(n){return yl({point:function(e,t){var r=n(e,t);return this.stream.point(r[0],r[1])}})}(n)(x(a(T(l=e)))))},M.preclip=function(e){return arguments.length?(x=e,b=void 0,C()):x},M.postclip=function(e){return arguments.length?(T=e,w=t=i=o=null,C()):T},M.clipAngle=function(e){return arguments.length?(x=+e?Wu(b=e*qa):(b=null,Gu),C()):b*Xa},M.clipExtent=function(e){return arguments.length?(T=null==e?(w=t=i=o=null,bc):Ju(w=+e[0][0],t=+e[0][1],i=+e[1][0],o=+e[1][1]),C()):null==w?null:[[w,t],[i,o]]},M.scale=function(e){return arguments.length?(f=+e,E()):f},M.translate=function(e){return arguments.length?(h=+e[0],d=+e[1],E()):[h,d]},M.center=function(e){return arguments.length?(p=e[0]%360*qa,m=e[1]%360*qa,E()):[p*Xa,m*Xa]},M.rotate=function(e){return arguments.length?(g=e[0]%360*qa,v=e[1]%360*qa,y=2<e.length?e[2]%360*qa:0,E()):[g*Xa,v*Xa,y*Xa]},M.angle=function(e){return arguments.length?(_=e%360*qa,E()):_*Xa},M.precision=function(e){return arguments.length?(a=El(s,S=e*e),C()):es(S)},M.fitExtent=function(e,t){return xl(M,e,t)},M.fitSize=function(e,t){return wl(M,e,t)},M.fitWidth=function(e,t){return Tl(M,e,t)},M.fitHeight=function(e,t){return Sl(M,e,t)},function(){return r=e.apply(this,arguments),M.invert=r.invert&&P,E()}}function Rl(e){var t=0,r=Fa/3,n=Ol(e),i=n(t,r);return i.parallels=function(e){return arguments.length?n(t=e[0]*qa,r=e[1]*qa):[t*Xa,r*Xa]},i}function Il(e,t){var r=Qa(e),n=(r+Qa(t))/2;if(Ha(n)<ja)return function(e){var r=Wa(e);function t(e,t){return[e*r,Qa(t)/r]}return t.invert=function(e,t){return[e/r,ns(t*r)]},t}(e);var i=1+r*(2*n-r),o=es(i)/n;function a(e,t){var r=es(i-2*n*Qa(t))/n;return[r*Qa(e*=n),o-r*Wa(e)]}return a.invert=function(e,t){var r=o-t;return[Ga(e,Ha(r))/n*$a(r),ns((i-(e*e+r*r)*n*n)/(2*n))]},a}function Dl(){return Rl(Il).scale(155.424).center([0,33.6442])}function Ll(){return Dl().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])}function Nl(o){return function(e,t){var r=Wa(e),n=Wa(t),i=o(r*n);return[i*n*Qa(e),i*Qa(t)]}}function jl(a){return function(e,t){var r=es(e*e+t*t),n=a(r),i=Qa(n),o=Wa(n);return[Ga(e*i,r*o),ns(r&&t*i/r)]}}var Fl=Nl(function(e){return es(2/(1+e))});Fl.invert=jl(function(e){return 2*ns(e/2)});var Bl=Nl(function(e){return(e=rs(e))&&e/Qa(e)});function zl(e,t){return[e,Ja(ts((Ba+t)/2))]}function Ul(r){var n,i,o,a=Al(r),t=a.center,s=a.scale,u=a.translate,c=a.clipExtent,l=null;function f(){var e=Fa*s(),t=a(Iu(a.rotate()).invert([0,0]));return c(null==l?[[t[0]-e,t[1]-e],[t[0]+e,t[1]+e]]:r===zl?[[Math.max(t[0]-e,l),n],[Math.min(t[0]+e,i),o]]:[[l,Math.max(t[1]-e,n)],[i,Math.min(t[1]+e,o)]])}return a.scale=function(e){return arguments.length?(s(e),f()):s()},a.translate=function(e){return arguments.length?(u(e),f()):u()},a.center=function(e){return arguments.length?(t(e),f()):t()},a.clipExtent=function(e){return arguments.length?(null==e?l=n=i=o=null:(l=+e[0][0],n=+e[0][1],i=+e[1][0],o=+e[1][1]),f()):null==l?null:[[l,n],[i,o]]},f()}function Xl(e){return ts((Ba+e)/2)}function ql(e,t){var r=Wa(e),i=e===t?Qa(e):Ja(r/Wa(t))/Ja(Xl(t)/Xl(e)),o=r*Za(Xl(e),i)/i;if(!i)return zl;function n(e,t){0<o?t<-Ba+ja&&(t=-Ba+ja):Ba-ja<t&&(t=Ba-ja);var r=o/Za(Xl(t),i);return[r*Qa(i*e),o-r*Wa(i*e)]}return n.invert=function(e,t){var r=o-t,n=$a(i)*es(e*e+r*r);return[Ga(e,Ha(r))/i*$a(r),2*Ya(Za(o/n,1/i))-Ba]},n}function Hl(e,t){return[e,t]}function Yl(e,t){var r=Wa(e),i=e===t?Qa(e):(r-Wa(t))/(t-e),o=r/i+e;if(Ha(i)<ja)return Hl;function n(e,t){var r=o-t,n=i*e;return[r*Qa(n),o-r*Wa(n)]}return n.invert=function(e,t){var r=o-t;return[Ga(e,Ha(r))/i*$a(r),o-$a(i)*es(e*e+r*r)]},n}Bl.invert=jl(function(e){return e}),zl.invert=function(e,t){return[e,2*Ya(Ka(t))-Ba]},Hl.invert=Hl;var Gl=1.340264,Wl=-.081106,Vl=893e-6,Kl=.003796,Jl=es(3)/2;function Zl(e,t){var r=ns(Jl*Qa(t)),n=r*r,i=n*n*n;return[e*Wa(r)/(Jl*(Gl+3*Wl*n+i*(7*Vl+9*Kl*n))),r*(Gl+Wl*n+i*(Vl+Kl*n))]}function Ql(e,t){var r=Wa(t),n=Wa(e)*r;return[r*Qa(e)/n,Qa(t)/n]}function $l(r,n,i,o){return 1===r&&1===n&&0===i&&0===o?bc:yl({point:function(e,t){this.stream.point(e*r+i,t*n+o)}})}function ef(e,t){var r=t*t,n=r*r;return[e*(.8707-.131979*r+n*(n*(.003971*r-.001529*n)-.013791)),t*(1.007226+r*(.015085+n*(.028874*r-.044475-.005916*n)))]}function tf(e,t){return[Wa(t)*Qa(e),Qa(t)]}function rf(e,t){var r=Wa(t),n=1+Wa(e)*r;return[r*Qa(e)/n,Qa(t)/n]}function nf(e,t){return[Ja(ts((Ba+t)/2)),-e]}function of(e,t){return e.parent===t.parent?1:2}function af(e,t){return e+t.x}function sf(e,t){return Math.max(e,t.y)}function uf(e){var t=0,r=e.children,n=r&&r.length;if(n)for(;0<=--n;)t+=r[n].value;else t=1;e.value=t}function cf(e,t){var r,n,i,o,a,s=new df(e),u=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=lf);r=c.pop();)if(u&&(r.value=+r.data.value),(i=t(r.data))&&(a=i.length))for(r.children=new Array(a),o=a-1;0<=o;--o)c.push(n=r.children[o]=new df(i[o])),n.parent=r,n.depth=r.depth+1;return s.eachBefore(hf)}function lf(e){return e.children}function ff(e){e.data=e.data.data}function hf(e){for(var t=0;e.height=t,(e=e.parent)&&e.height<++t;);}function df(e){this.data=e,this.depth=this.height=0,this.parent=null}Zl.invert=function(e,t){for(var r,n=t,i=n*n,o=i*i*i,a=0;a<12&&(o=(i=(n-=r=(n*(Gl+Wl*i+o*(Vl+Kl*i))-t)/(Gl+3*Wl*i+o*(7*Vl+9*Kl*i)))*n)*i*i,!(Ha(r)<1e-12));++a);return[Jl*e*(Gl+3*Wl*i+o*(7*Vl+9*Kl*i))/Wa(n),ns(Qa(n)/Jl)]},Ql.invert=jl(Ya),ef.invert=function(e,t){var r,n=t,i=25;do{var o=n*n,a=o*o;n-=r=(n*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(Ha(r)>ja&&0<--i);return[e/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]},tf.invert=jl(ns),rf.invert=jl(function(e){return 2*Ya(e)}),nf.invert=function(e,t){return[-t,2*Ya(Ka(e))-Ba]},df.prototype=cf.prototype={constructor:df,count:function(){return this.eachAfter(uf)},each:function(e){var t,r,n,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),r=o.children)for(n=0,i=r.length;n<i;++n)a.push(r[n])}while(a.length);return this},eachAfter:function(e){for(var t,r,n,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(r=0,n=t.length;r<n;++r)o.push(t[r]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,r,n=this,i=[n];n=i.pop();)if(e(n),t=n.children)for(r=t.length-1;0<=r;--r)i.push(t[r]);return this},sum:function(i){return this.eachAfter(function(e){for(var t=+i(e.data)||0,r=e.children,n=r&&r.length;0<=--n;)t+=r[n].value;e.value=t})},sort:function(t){return this.eachBefore(function(e){e.children&&e.children.sort(t)})},path:function(e){for(var t=this,r=function(e,t){if(e===t)return e;var r=e.ancestors(),n=t.ancestors(),i=null;for(e=r.pop(),t=n.pop();e===t;)i=e,e=r.pop(),t=n.pop();return i}(t,e),n=[t];t!==r;)t=t.parent,n.push(t);for(var i=n.length;e!==r;)n.splice(i,0,e),e=e.parent;return n},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var t=[];return this.each(function(e){t.push(e)}),t},leaves:function(){var t=[];return this.eachBefore(function(e){e.children||t.push(e)}),t},links:function(){var t=this,r=[];return t.each(function(e){e!==t&&r.push({source:e.parent,target:e})}),r},copy:function(){return cf(this).eachBefore(ff)}};var pf=Array.prototype.slice;function mf(e){for(var t,r,n=0,i=(e=function(e){for(var t,r,n=e.length;n;)r=Math.random()*n--|0,t=e[n],e[n]=e[r],e[r]=t;return e}(pf.call(e))).length,o=[];n<i;)t=e[n],r&&yf(r,t)?++n:(r=bf(o=gf(o,t)),n=0);return r}function gf(e,t){var r,n;if(_f(t,e))return[t];for(r=0;r<e.length;++r)if(vf(t,e[r])&&_f(xf(e[r],t),e))return[e[r],t];for(r=0;r<e.length-1;++r)for(n=r+1;n<e.length;++n)if(vf(xf(e[r],e[n]),t)&&vf(xf(e[r],t),e[n])&&vf(xf(e[n],t),e[r])&&_f(wf(e[r],e[n],t),e))return[e[r],e[n],t];throw new Error}function vf(e,t){var r=e.r-t.r,n=t.x-e.x,i=t.y-e.y;return r<0||r*r<n*n+i*i}function yf(e,t){var r=e.r-t.r+1e-6,n=t.x-e.x,i=t.y-e.y;return 0<r&&n*n+i*i<r*r}function _f(e,t){for(var r=0;r<t.length;++r)if(!yf(e,t[r]))return!1;return!0}function bf(e){switch(e.length){case 1:return function(e){return{x:e.x,y:e.y,r:e.r}}(e[0]);case 2:return xf(e[0],e[1]);case 3:return wf(e[0],e[1],e[2])}}function xf(e,t){var r=e.x,n=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-r,c=a-n,l=s-i,f=Math.sqrt(u*u+c*c);return{x:(r+o+u/f*l)/2,y:(n+a+c/f*l)/2,r:(f+i+s)/2}}function wf(e,t,r){var n=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,c=r.x,l=r.y,f=r.r,h=n-a,d=n-c,p=i-s,m=i-l,g=u-o,v=f-o,y=n*n+i*i-o*o,_=y-a*a-s*s+u*u,b=y-c*c-l*l+f*f,x=d*p-h*m,w=(p*b-m*_)/(2*x)-n,T=(m*g-p*v)/x,S=(d*_-h*b)/(2*x)-i,M=(h*v-d*g)/x,P=T*T+M*M-1,E=2*(o+w*T+S*M),C=w*w+S*S-o*o,k=-(P?(E+Math.sqrt(E*E-4*P*C))/(2*P):C/E);return{x:n+w+T*k,y:i+S+M*k,r:k}}function Tf(e,t,r){var n,i,o,a,s=e.x-t.x,u=e.y-t.y,c=s*s+u*u;c?(i=t.r+r.r,i*=i,a=e.r+r.r,(a*=a)<i?(n=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-n*n)),r.x=e.x-n*s-o*u,r.y=e.y-n*u+o*s):(n=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-n*n)),r.x=t.x+n*s-o*u,r.y=t.y+n*u+o*s)):(r.x=t.x+r.r,r.y=t.y)}function Sf(e,t){var r=e.r+t.r-1e-6,n=t.x-e.x,i=t.y-e.y;return 0<r&&n*n+i*i<r*r}function Mf(e){var t=e._,r=e.next._,n=t.r+r.r,i=(t.x*r.r+r.x*t.r)/n,o=(t.y*r.r+r.y*t.r)/n;return i*i+o*o}function Pf(e){this._=e,this.next=null,this.previous=null}function Ef(e){if(!(i=e.length))return 0;var t,r,n,i,o,a,s,u,c,l,f;if((t=e[0]).x=0,t.y=0,!(1<i))return t.r;if(r=e[1],t.x=-r.r,r.x=t.r,r.y=0,!(2<i))return t.r+r.r;Tf(r,t,n=e[2]),t=new Pf(t),r=new Pf(r),n=new Pf(n),t.next=n.previous=r,r.next=t.previous=n,n.next=r.previous=t;e:for(s=3;s<i;++s){Tf(t._,r._,n=e[s]),n=new Pf(n),u=r.next,c=t.previous,l=r._.r,f=t._.r;do{if(l<=f){if(Sf(u._,n._)){r=u,(t.next=r).previous=t,--s;continue e}l+=u._.r,u=u.next}else{if(Sf(c._,n._)){((t=c).next=r).previous=t,--s;continue e}f+=c._.r,c=c.previous}}while(u!==c.next);for(n.previous=t,n.next=r,t.next=r.previous=r=n,o=Mf(t);(n=n.next)!==r;)(a=Mf(n))<o&&(t=n,o=a);r=t.next}for(t=[r._],n=r;(n=n.next)!==r;)t.push(n._);for(n=mf(t),s=0;s<i;++s)(t=e[s]).x-=n.x,t.y-=n.y;return n.r}function Cf(e){if("function"!=typeof e)throw new Error;return e}function kf(){return 0}function Af(e){return function(){return e}}function Of(e){return Math.sqrt(e.value)}function Rf(t){return function(e){e.children||(e.r=Math.max(0,+t(e)||0))}}function If(a,s){return function(e){if(t=e.children){var t,r,n,i=t.length,o=a(e)*s||0;if(o)for(r=0;r<i;++r)t[r].r+=o;if(n=Ef(t),o)for(r=0;r<i;++r)t[r].r-=o;e.r=n+o}}}function Df(r){return function(e){var t=e.parent;e.r*=r,t&&(e.x=t.x+r*e.x,e.y=t.y+r*e.y)}}function Lf(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)}function Nf(e,t,r,n,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(n-t)/e.value;++s<u;)(o=a[s]).y0=r,o.y1=i,o.x0=t,o.x1=t+=o.value*c}var jf={depth:-1},Ff={};function Bf(e){return e.id}function zf(e){return e.parentId}function Uf(e,t){return e.parent===t.parent?1:2}function Xf(e){var t=e.children;return t?t[0]:e.t}function qf(e){var t=e.children;return t?t[t.length-1]:e.t}function Hf(e,t){this._=e,this.parent=null,this.children=null,this.A=null,(this.a=this).z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}function Yf(e,t,r,n,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(i-r)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=n,o.y0=r,o.y1=r+=o.value*c}Hf.prototype=Object.create(df.prototype);var Gf=(1+Math.sqrt(5))/2;function Wf(e,t,r,n,i,o){for(var a,s,u,c,l,f,h,d,p,m,g,v=[],y=t.children,_=0,b=0,x=y.length,w=t.value;_<x;){for(u=i-r,c=o-n;!(l=y[b++].value)&&b<x;);for(f=h=l,g=l*l*(m=Math.max(c/u,u/c)/(w*e)),p=Math.max(h/g,g/f);b<x;++b){if(l+=s=y[b].value,s<f&&(f=s),h<s&&(h=s),g=l*l*m,p<(d=Math.max(h/g,g/f))){l-=s;break}p=d}v.push(a={value:l,dice:u<c,children:y.slice(_,b)}),a.dice?Nf(a,r,n,i,w?n+=c*l/w:o):Yf(a,r,n,w?r+=u*l/w:i,o),w-=l,_=b}return v}var Vf=function t(o){function e(e,t,r,n,i){Wf(o,e,t,r,n,i)}return e.ratio=function(e){return t(1<(e=+e)?e:1)},e}(Gf);var Kf=function t(d){function e(e,t,r,n,i){if((o=e._squarify)&&o.ratio===d)for(var o,a,s,u,c,l=-1,f=o.length,h=e.value;++l<f;){for(s=(a=o[l]).children,u=a.value=0,c=s.length;u<c;++u)a.value+=s[u].value;a.dice?Nf(a,t,r,n,r+=(i-r)*a.value/h):Yf(a,t,r,t+=(n-t)*a.value/h,i),h-=a.value}else e._squarify=o=Wf(d,e,t,r,n,i),o.ratio=d}return e.ratio=function(e){return t(1<(e=+e)?e:1)},e}(Gf);function Jf(e,t){return e[0]-t[0]||e[1]-t[1]}function Zf(e){for(var t,r,n,i=e.length,o=[0,1],a=2,s=2;s<i;++s){for(;1<a&&(t=e[o[a-2]],r=e[o[a-1]],n=e[s],(r[0]-t[0])*(n[1]-t[1])-(r[1]-t[1])*(n[0]-t[0])<=0);)--a;o[a++]=s}return o.slice(0,a)}function Qf(){return Math.random()}var $f=function e(r){function t(e,t){return e=null==e?0:+e,t=null==t?1:+t,1===arguments.length?(t=e,e=0):t-=e,function(){return r()*t+e}}return t.source=e,t}(Qf),eh=function e(o){function t(t,r){var n,i;return t=null==t?0:+t,r=null==r?1:+r,function(){var e;if(null!=n)e=n,n=null;else for(;n=2*o()-1,e=2*o()-1,!(i=n*n+e*e)||1<i;);return t+r*e*Math.sqrt(-2*Math.log(i)/i)}}return t.source=e,t}(Qf),th=function e(t){function r(){var e=eh.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return r.source=e,r}(Qf),rh=function e(n){function t(r){return function(){for(var e=0,t=0;t<r;++t)e+=n();return e}}return t.source=e,t}(Qf),nh=function e(r){function t(e){var t=rh.source(r)(e);return function(){return t()/e}}return t.source=e,t}(Qf),ih=function e(t){function r(e){return function(){return-Math.log(1-t())/e}}return r.source=e,r}(Qf);function oh(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}function ah(e,t){switch(arguments.length){case 0:break;case 1:this.interpolator(e);break;default:this.interpolator(t).domain(e)}return this}var sh=Array.prototype,uh=sh.map,ch=sh.slice,lh={name:"implicit"};function fh(){var o=Qi(),a=[],n=[],i=lh;function s(e){var t=e+"",r=o.get(t);if(!r){if(i!==lh)return i;o.set(t,r=a.push(e))}return n[(r-1)%n.length]}return s.domain=function(e){if(!arguments.length)return a.slice();a=[],o=Qi();for(var t,r,n=-1,i=e.length;++n<i;)o.has(r=(t=e[n])+"")||o.set(r,a.push(t));return s},s.range=function(e){return arguments.length?(n=ch.call(e),s):n.slice()},s.unknown=function(e){return arguments.length?(i=e,s):i},s.copy=function(){return fh(a,n).unknown(i)},oh.apply(s,arguments),s}function hh(){var o,a,e=fh().unknown(void 0),s=e.domain,u=e.range,c=[0,1],l=!1,f=0,h=0,d=.5;function t(){var e=s().length,t=c[1]<c[0],r=c[t-0],n=c[1-t];o=(n-r)/Math.max(1,e-f+2*h),l&&(o=Math.floor(o)),r+=(n-r-o*(e-f))*d,a=o*(1-f),l&&(r=Math.round(r),a=Math.round(a));var i=M(e).map(function(e){return r+o*e});return u(t?i.reverse():i)}return delete e.unknown,e.domain=function(e){return arguments.length?(s(e),t()):s()},e.range=function(e){return arguments.length?(c=[+e[0],+e[1]],t()):c.slice()},e.rangeRound=function(e){return c=[+e[0],+e[1]],l=!0,t()},e.bandwidth=function(){return a},e.step=function(){return o},e.round=function(e){return arguments.length?(l=!!e,t()):l},e.padding=function(e){return arguments.length?(f=Math.min(1,h=+e),t()):f},e.paddingInner=function(e){return arguments.length?(f=Math.min(1,e),t()):f},e.paddingOuter=function(e){return arguments.length?(h=+e,t()):h},e.align=function(e){return arguments.length?(d=Math.max(0,Math.min(1,e)),t()):d},e.copy=function(){return hh(s(),c).round(l).paddingInner(f).paddingOuter(h).align(d)},oh.apply(t(),arguments)}function dh(e){return+e}var ph=[0,1];function mh(e){return e}function gh(t,r){return(r-=t=+t)?function(e){return(e-t)/r}:function(e){return function(){return e}}(isNaN(r)?NaN:.5)}function vh(e){var t,r=e[0],n=e[e.length-1];return n<r&&(t=r,r=n,n=t),function(e){return Math.max(r,Math.min(n,e))}}function yh(e,t,r){var n=e[0],i=e[1],o=t[0],a=t[1];return o=i<n?(n=gh(i,n),r(a,o)):(n=gh(n,i),r(o,a)),function(e){return o(n(e))}}function _h(r,e,t){var n=Math.min(r.length,e.length)-1,i=new Array(n),o=new Array(n),a=-1;for(r[n]<r[0]&&(r=r.slice().reverse(),e=e.slice().reverse());++a<n;)i[a]=gh(r[a],r[a+1]),o[a]=t(e[a],e[a+1]);return function(e){var t=m(r,e,1,n)-1;return o[t](i[t](e))}}function bh(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function xh(){var r,n,t,i,o,a,s=ph,u=ph,c=gr,l=mh;function f(){return i=2<Math.min(s.length,u.length)?_h:yh,o=a=null,h}function h(e){return isNaN(e=+e)?t:(o||(o=i(s.map(r),u,c)))(r(l(e)))}return h.invert=function(e){return l(n((a||(a=i(u,s.map(r),fr)))(e)))},h.domain=function(e){return arguments.length?(s=uh.call(e,dh),l===mh||(l=vh(s)),f()):s.slice()},h.range=function(e){return arguments.length?(u=ch.call(e),f()):u.slice()},h.rangeRound=function(e){return u=ch.call(e),c=vr,f()},h.clamp=function(e){return arguments.length?(l=e?vh(s):mh,h):l!==mh},h.interpolate=function(e){return arguments.length?(c=e,f()):c},h.unknown=function(e){return arguments.length?(t=e,h):t},function(e,t){return r=e,n=t,f()}}function wh(e,t){return xh()(e,t)}function Th(e,t,r,n){var i,o=P(e,t,r);switch((n=xa(null==n?",f":n)).type){case"s":var a=Math.max(Math.abs(e),Math.abs(t));return null!=n.precision||isNaN(i=Oa(o,a))||(n.precision=i),z.formatPrefix(n,a);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(i=Ra(o,Math.max(Math.abs(e),Math.abs(t))))||(n.precision=i-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(i=Aa(o))||(n.precision=i-2*("%"===n.type))}return z.format(n)}function Sh(s){var u=s.domain;return s.ticks=function(e){var t=u();return v(t[0],t[t.length-1],null==e?10:e)},s.tickFormat=function(e,t){var r=u();return Th(r[0],r[r.length-1],null==e?10:e,t)},s.nice=function(e){null==e&&(e=10);var t,r=u(),n=0,i=r.length-1,o=r[n],a=r[i];return a<o&&(t=o,o=a,a=t,t=n,n=i,i=t),0<(t=y(o,a,e))?t=y(o=Math.floor(o/t)*t,a=Math.ceil(a/t)*t,e):t<0&&(t=y(o=Math.ceil(o*t)/t,a=Math.floor(a*t)/t,e)),0<t?(r[n]=Math.floor(o/t)*t,r[i]=Math.ceil(a/t)*t,u(r)):t<0&&(r[n]=Math.ceil(o*t)/t,r[i]=Math.floor(a*t)/t,u(r)),s},s}function Mh(e,t){var r,n=0,i=(e=e.slice()).length-1,o=e[n],a=e[i];return a<o&&(r=n,n=i,i=r,r=o,o=a,a=r),e[n]=t.floor(o),e[i]=t.ceil(a),e}function Ph(e){return Math.log(e)}function Eh(e){return Math.exp(e)}function Ch(e){return-Math.log(-e)}function kh(e){return-Math.exp(-e)}function Ah(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Oh(t){return function(e){return-t(-e)}}function Rh(e){var h,d,t=e(Ph,Eh),p=t.domain,m=10;function r(){return h=function(t){return t===Math.E?Math.log:10===t&&Math.log10||2===t&&Math.log2||(t=Math.log(t),function(e){return Math.log(e)/t})}(m),d=function(t){return 10===t?Ah:t===Math.E?Math.exp:function(e){return Math.pow(t,e)}}(m),p()[0]<0?(h=Oh(h),d=Oh(d),e(Ch,kh)):e(Ph,Eh),t}return t.base=function(e){return arguments.length?(m=+e,r()):m},t.domain=function(e){return arguments.length?(p(e),r()):p()},t.ticks=function(e){var t,r=p(),n=r[0],i=r[r.length-1];(t=i<n)&&(u=n,n=i,i=u);var o,a,s,u=h(n),c=h(i),l=null==e?10:+e,f=[];if(!(m%1)&&c-u<l){if(u=Math.round(u)-1,c=Math.round(c)+1,0<n){for(;u<c;++u)for(a=1,o=d(u);a<m;++a)if(!((s=o*a)<n)){if(i<s)break;f.push(s)}}else for(;u<c;++u)for(a=m-1,o=d(u);1<=a;--a)if(!((s=o*a)<n)){if(i<s)break;f.push(s)}}else f=v(u,c,Math.min(c-u,l)).map(d);return t?f.reverse():f},t.tickFormat=function(e,r){if(null==r&&(r=10===m?".0e":","),"function"!=typeof r&&(r=z.format(r)),e===1/0)return r;null==e&&(e=10);var n=Math.max(1,m*e/t.ticks().length);return function(e){var t=e/d(Math.round(h(e)));return t*m<m-.5&&(t*=m),t<=n?r(e):""}},t.nice=function(){return p(Mh(p(),{floor:function(e){return d(Math.floor(h(e)))},ceil:function(e){return d(Math.ceil(h(e)))}}))},t}function Ih(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function Dh(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function Lh(t){var r=1,e=t(Ih(r),Dh(r));return e.constant=function(e){return arguments.length?t(Ih(r=+e),Dh(r)):r},Sh(e)}function Nh(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function jh(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Fh(e){return e<0?-e*e:e*e}function Bh(t){var e=t(mh,mh),r=1;return e.exponent=function(e){return arguments.length?1===(r=+e)?t(mh,mh):.5===r?t(jh,Fh):t(Nh(r),Nh(1/r)):r},Sh(e)}function zh(){var e=Bh(xh());return e.copy=function(){return bh(e,zh()).exponent(e.exponent())},oh.apply(e,arguments),e}var Uh=new Date,Xh=new Date;function qh(o,a,r,n){function s(e){return o(e=new Date(+e)),e}return(s.floor=s).ceil=function(e){return o(e=new Date(e-1)),a(e,1),o(e),e},s.round=function(e){var t=s(e),r=s.ceil(e);return e-t<r-e?t:r},s.offset=function(e,t){return a(e=new Date(+e),null==t?1:Math.floor(t)),e},s.range=function(e,t,r){var n,i=[];if(e=s.ceil(e),r=null==r?1:Math.floor(r),!(e<t&&0<r))return i;for(;i.push(n=new Date(+e)),a(e,r),o(e),n<e&&e<t;);return i},s.filter=function(r){return qh(function(e){if(e<=e)for(;o(e),!r(e);)e.setTime(e-1)},function(e,t){if(e<=e)if(t<0)for(;++t<=0;)for(;a(e,-1),!r(e););else for(;0<=--t;)for(;a(e,1),!r(e););})},r&&(s.count=function(e,t){return Uh.setTime(+e),Xh.setTime(+t),o(Uh),o(Xh),Math.floor(r(Uh,Xh))},s.every=function(t){return t=Math.floor(t),isFinite(t)&&0<t?1<t?s.filter(n?function(e){return n(e)%t==0}:function(e){return s.count(0,e)%t==0}):s:null}),s}var Hh=qh(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Hh.every=function(r){return r=Math.floor(r),isFinite(r)&&0<r?1<r?qh(function(e){e.setTime(Math.floor(e/r)*r)},function(e,t){e.setTime(+e+t*r)},function(e,t){return(t-e)/r}):Hh:null};var Yh=Hh.range,Gh=qh(function(e){e.setTime(e-e.getMilliseconds())},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),Wh=Gh.range,Vh=qh(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds())},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getMinutes()}),Kh=Vh.range,Jh=qh(function(e){e.setTime(e-e.getMilliseconds()-1e3*e.getSeconds()-6e4*e.getMinutes())},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),Zh=Jh.range,Qh=qh(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/864e5},function(e){return e.getDate()-1}),$h=Qh.range;function ed(t){return qh(function(e){e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-6e4*(t.getTimezoneOffset()-e.getTimezoneOffset()))/6048e5})}var td=ed(0),rd=ed(1),nd=ed(2),id=ed(3),od=ed(4),ad=ed(5),sd=ed(6),ud=td.range,cd=rd.range,ld=nd.range,fd=id.range,hd=od.range,dd=ad.range,pd=sd.range,md=qh(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),gd=md.range,vd=qh(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});vd.every=function(r){return isFinite(r=Math.floor(r))&&0<r?qh(function(e){e.setFullYear(Math.floor(e.getFullYear()/r)*r),e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t*r)}):null};var yd=vd.range,_d=qh(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+6e4*t)},function(e,t){return(t-e)/6e4},function(e){return e.getUTCMinutes()}),bd=_d.range,xd=qh(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),wd=xd.range,Td=qh(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Sd=Td.range;function Md(t){return qh(function(e){e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/6048e5})}var Pd=Md(0),Ed=Md(1),Cd=Md(2),kd=Md(3),Ad=Md(4),Od=Md(5),Rd=Md(6),Id=Pd.range,Dd=Ed.range,Ld=Cd.range,Nd=kd.range,jd=Ad.range,Fd=Od.range,Bd=Rd.range,zd=qh(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),Ud=zd.range,Xd=qh(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Xd.every=function(r){return isFinite(r=Math.floor(r))&&0<r?qh(function(e){e.setUTCFullYear(Math.floor(e.getUTCFullYear()/r)*r),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t*r)}):null};var qd=Xd.range;function Hd(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function Yd(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Gd(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function Wd(e){var n=e.dateTime,i=e.date,o=e.time,t=e.periods,r=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,c=tp(t),l=rp(t),f=tp(r),h=rp(r),d=tp(a),p=rp(a),m=tp(s),g=rp(s),v=tp(u),y=rp(u),_={a:function(e){return a[e.getDay()]},A:function(e){return r[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:wp,e:wp,f:Ep,H:Tp,I:Sp,j:Mp,L:Pp,m:Cp,M:kp,p:function(e){return t[+(12<=e.getHours())]},Q:nm,s:im,S:Ap,u:Op,U:Rp,V:Ip,w:Dp,W:Lp,x:null,X:null,y:Np,Y:jp,Z:Fp,"%":rm},b={a:function(e){return a[e.getUTCDay()]},A:function(e){return r[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:Bp,e:Bp,f:Hp,H:zp,I:Up,j:Xp,L:qp,m:Yp,M:Gp,p:function(e){return t[+(12<=e.getUTCHours())]},Q:nm,s:im,S:Wp,u:Vp,U:Kp,V:Jp,w:Zp,W:Qp,x:null,X:null,y:$p,Y:em,Z:tm,"%":rm},x={a:function(e,t,r){var n=d.exec(t.slice(r));return n?(e.w=p[n[0].toLowerCase()],r+n[0].length):-1},A:function(e,t,r){var n=f.exec(t.slice(r));return n?(e.w=h[n[0].toLowerCase()],r+n[0].length):-1},b:function(e,t,r){var n=v.exec(t.slice(r));return n?(e.m=y[n[0].toLowerCase()],r+n[0].length):-1},B:function(e,t,r){var n=m.exec(t.slice(r));return n?(e.m=g[n[0].toLowerCase()],r+n[0].length):-1},c:function(e,t,r){return S(e,n,t,r)},d:hp,e:hp,f:yp,H:pp,I:pp,j:dp,L:vp,m:fp,M:mp,p:function(e,t,r){var n=c.exec(t.slice(r));return n?(e.p=l[n[0].toLowerCase()],r+n[0].length):-1},Q:bp,s:xp,S:gp,u:ip,U:op,V:ap,w:np,W:sp,x:function(e,t,r){return S(e,i,t,r)},X:function(e,t,r){return S(e,o,t,r)},y:cp,Y:up,Z:lp,"%":_p};function w(u,c){return function(e){var t,r,n,i=[],o=-1,a=0,s=u.length;for(e instanceof Date||(e=new Date(+e));++o<s;)37===u.charCodeAt(o)&&(i.push(u.slice(a,o)),null!=(r=Kd[t=u.charAt(++o)])?t=u.charAt(++o):r="e"===t?" ":"0",(n=c[t])&&(t=n(e,r)),i.push(t),a=o+1);return i.push(u.slice(a,o)),i.join("")}}function T(i,o){return function(e){var t,r,n=Gd(1900);if(S(n,i,e+="",0)!=e.length)return null;if("Q"in n)return new Date(n.Q);if("p"in n&&(n.H=n.H%12+12*n.p),"V"in n){if(n.V<1||53<n.V)return null;"w"in n||(n.w=1),"Z"in n?(t=4<(r=(t=Yd(Gd(n.y))).getUTCDay())||0===r?Ed.ceil(t):Ed(t),t=Td.offset(t,7*(n.V-1)),n.y=t.getUTCFullYear(),n.m=t.getUTCMonth(),n.d=t.getUTCDate()+(n.w+6)%7):(t=4<(r=(t=o(Gd(n.y))).getDay())||0===r?rd.ceil(t):rd(t),t=Qh.offset(t,7*(n.V-1)),n.y=t.getFullYear(),n.m=t.getMonth(),n.d=t.getDate()+(n.w+6)%7)}else("W"in n||"U"in n)&&("w"in n||(n.w="u"in n?n.u%7:"W"in n?1:0),r="Z"in n?Yd(Gd(n.y)).getUTCDay():o(Gd(n.y)).getDay(),n.m=0,n.d="W"in n?(n.w+6)%7+7*n.W-(r+5)%7:n.w+7*n.U-(r+6)%7);return"Z"in n?(n.H+=n.Z/100|0,n.M+=n.Z%100,Yd(n)):o(n)}}function S(e,t,r,n){for(var i,o,a=0,s=t.length,u=r.length;a<s;){if(u<=n)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=x[i in Kd?t.charAt(a++):i])||(n=o(e,r,n))<0)return-1}else if(i!=r.charCodeAt(n++))return-1}return n}return _.x=w(i,_),_.X=w(o,_),_.c=w(n,_),b.x=w(i,b),b.X=w(o,b),b.c=w(n,b),{format:function(e){var t=w(e+="",_);return t.toString=function(){return e},t},parse:function(e){var t=T(e+="",Hd);return t.toString=function(){return e},t},utcFormat:function(e){var t=w(e+="",b);return t.toString=function(){return e},t},utcParse:function(e){var t=T(e,Yd);return t.toString=function(){return e},t}}}var Vd,Kd={"-":"",_:" ",0:"0"},Jd=/^\s*\d+/,Zd=/^%/,Qd=/[\\^$*+?|[\]().{}]/g;function $d(e,t,r){var n=e<0?"-":"",i=(n?-e:e)+"",o=i.length;return n+(o<r?new Array(r-o+1).join(t)+i:i)}function ep(e){return e.replace(Qd,"\\$&")}function tp(e){return new RegExp("^(?:"+e.map(ep).join("|")+")","i")}function rp(e){for(var t={},r=-1,n=e.length;++r<n;)t[e[r].toLowerCase()]=r;return t}function np(e,t,r){var n=Jd.exec(t.slice(r,r+1));return n?(e.w=+n[0],r+n[0].length):-1}function ip(e,t,r){var n=Jd.exec(t.slice(r,r+1));return n?(e.u=+n[0],r+n[0].length):-1}function op(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.U=+n[0],r+n[0].length):-1}function ap(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.V=+n[0],r+n[0].length):-1}function sp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.W=+n[0],r+n[0].length):-1}function up(e,t,r){var n=Jd.exec(t.slice(r,r+4));return n?(e.y=+n[0],r+n[0].length):-1}function cp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.y=+n[0]+(68<+n[0]?1900:2e3),r+n[0].length):-1}function lp(e,t,r){var n=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(r,r+6));return n?(e.Z=n[1]?0:-(n[2]+(n[3]||"00")),r+n[0].length):-1}function fp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.m=n[0]-1,r+n[0].length):-1}function hp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.d=+n[0],r+n[0].length):-1}function dp(e,t,r){var n=Jd.exec(t.slice(r,r+3));return n?(e.m=0,e.d=+n[0],r+n[0].length):-1}function pp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.H=+n[0],r+n[0].length):-1}function mp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.M=+n[0],r+n[0].length):-1}function gp(e,t,r){var n=Jd.exec(t.slice(r,r+2));return n?(e.S=+n[0],r+n[0].length):-1}function vp(e,t,r){var n=Jd.exec(t.slice(r,r+3));return n?(e.L=+n[0],r+n[0].length):-1}function yp(e,t,r){var n=Jd.exec(t.slice(r,r+6));return n?(e.L=Math.floor(n[0]/1e3),r+n[0].length):-1}function _p(e,t,r){var n=Zd.exec(t.slice(r,r+1));return n?r+n[0].length:-1}function bp(e,t,r){var n=Jd.exec(t.slice(r));return n?(e.Q=+n[0],r+n[0].length):-1}function xp(e,t,r){var n=Jd.exec(t.slice(r));return n?(e.Q=1e3*+n[0],r+n[0].length):-1}function wp(e,t){return $d(e.getDate(),t,2)}function Tp(e,t){return $d(e.getHours(),t,2)}function Sp(e,t){return $d(e.getHours()%12||12,t,2)}function Mp(e,t){return $d(1+Qh.count(vd(e),e),t,3)}function Pp(e,t){return $d(e.getMilliseconds(),t,3)}function Ep(e,t){return Pp(e,t)+"000"}function Cp(e,t){return $d(e.getMonth()+1,t,2)}function kp(e,t){return $d(e.getMinutes(),t,2)}function Ap(e,t){return $d(e.getSeconds(),t,2)}function Op(e){var t=e.getDay();return 0===t?7:t}function Rp(e,t){return $d(td.count(vd(e),e),t,2)}function Ip(e,t){var r=e.getDay();return e=4<=r||0===r?od(e):od.ceil(e),$d(od.count(vd(e),e)+(4===vd(e).getDay()),t,2)}function Dp(e){return e.getDay()}function Lp(e,t){return $d(rd.count(vd(e),e),t,2)}function Np(e,t){return $d(e.getFullYear()%100,t,2)}function jp(e,t){return $d(e.getFullYear()%1e4,t,4)}function Fp(e){var t=e.getTimezoneOffset();return(0<t?"-":(t*=-1,"+"))+$d(t/60|0,"0",2)+$d(t%60,"0",2)}function Bp(e,t){return $d(e.getUTCDate(),t,2)}function zp(e,t){return $d(e.getUTCHours(),t,2)}function Up(e,t){return $d(e.getUTCHours()%12||12,t,2)}function Xp(e,t){return $d(1+Td.count(Xd(e),e),t,3)}function qp(e,t){return $d(e.getUTCMilliseconds(),t,3)}function Hp(e,t){return qp(e,t)+"000"}function Yp(e,t){return $d(e.getUTCMonth()+1,t,2)}function Gp(e,t){return $d(e.getUTCMinutes(),t,2)}function Wp(e,t){return $d(e.getUTCSeconds(),t,2)}function Vp(e){var t=e.getUTCDay();return 0===t?7:t}function Kp(e,t){return $d(Pd.count(Xd(e),e),t,2)}function Jp(e,t){var r=e.getUTCDay();return e=4<=r||0===r?Ad(e):Ad.ceil(e),$d(Ad.count(Xd(e),e)+(4===Xd(e).getUTCDay()),t,2)}function Zp(e){return e.getUTCDay()}function Qp(e,t){return $d(Ed.count(Xd(e),e),t,2)}function $p(e,t){return $d(e.getUTCFullYear()%100,t,2)}function em(e,t){return $d(e.getUTCFullYear()%1e4,t,4)}function tm(){return"+0000"}function rm(){return"%"}function nm(e){return+e}function im(e){return Math.floor(+e/1e3)}function om(e){return Vd=Wd(e),z.timeFormat=Vd.format,z.timeParse=Vd.parse,z.utcFormat=Vd.utcFormat,z.utcParse=Vd.utcParse,Vd}om({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var am="%Y-%m-%dT%H:%M:%S.%LZ";var sm=Date.prototype.toISOString?function(e){return e.toISOString()}:z.utcFormat(am);var um=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:z.utcParse(am),cm=1e3,lm=60*cm,fm=60*lm,hm=24*fm,dm=7*hm,pm=30*hm,mm=365*hm;function gm(e){return new Date(e)}function vm(e){return e instanceof Date?+e:+new Date(+e)}function ym(a,t,r,n,i,o,s,u,c){var l=wh(mh,mh),f=l.invert,h=l.domain,d=c(".%L"),p=c(":%S"),m=c("%I:%M"),g=c("%I %p"),v=c("%a %d"),y=c("%b %d"),_=c("%B"),b=c("%Y"),x=[[s,1,cm],[s,5,5*cm],[s,15,15*cm],[s,30,30*cm],[o,1,lm],[o,5,5*lm],[o,15,15*lm],[o,30,30*lm],[i,1,fm],[i,3,3*fm],[i,6,6*fm],[i,12,12*fm],[n,1,hm],[n,2,2*hm],[r,1,dm],[t,1,pm],[t,3,3*pm],[a,1,mm]];function w(e){return(s(e)<e?d:o(e)<e?p:i(e)<e?m:n(e)<e?g:t(e)<e?r(e)<e?v:y:a(e)<e?_:b)(e)}function T(e,t,r,n){if(null==e&&(e=10),"number"==typeof e){var i=Math.abs(r-t)/e,o=S(function(e){return e[2]}).right(x,i);e=o===x.length?(n=P(t/mm,r/mm,e),a):o?(n=(o=x[i/x[o-1][2]<x[o][2]/i?o-1:o])[1],o[0]):(n=Math.max(P(t,r,e),1),u)}return null==n?e:e.every(n)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?h(uh.call(e,vm)):h().map(gm)},l.ticks=function(e,t){var r,n=h(),i=n[0],o=n[n.length-1],a=o<i;return a&&(r=i,i=o,o=r),r=(r=T(e,i,o,t))?r.range(i,o+1):[],a?r.reverse():r},l.tickFormat=function(e,t){return null==t?w:c(t)},l.nice=function(e,t){var r=h();return(e=T(e,r[0],r[r.length-1],t))?h(Mh(r,e)):l},l.copy=function(){return bh(l,ym(a,t,r,n,i,o,s,u,c))},l}function _m(){var t,r,n,i,o,a=0,s=1,u=mh,c=!1;function l(e){return isNaN(e=+e)?o:u(0===n?.5:(e=(i(e)-t)*n,c?Math.max(0,Math.min(1,e)):e))}return l.domain=function(e){return arguments.length?(t=i(a=+e[0]),r=i(s=+e[1]),n=t===r?0:1/(r-t),l):[a,s]},l.clamp=function(e){return arguments.length?(c=!!e,l):c},l.interpolator=function(e){return arguments.length?(u=e,l):u},l.unknown=function(e){return arguments.length?(o=e,l):o},function(e){return t=(i=e)(a),r=e(s),n=t===r?0:1/(r-t),l}}function bm(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function xm(){var e=Bh(_m());return e.copy=function(){return bm(e,xm()).exponent(e.exponent())},ah.apply(e,arguments)}function wm(){var t,r,n,i,o,a,s,u=0,c=.5,l=1,f=mh,h=!1;function d(e){return isNaN(e=+e)?s:(e=.5+((e=+a(e))-r)*(e<r?i:o),f(h?Math.max(0,Math.min(1,e)):e))}return d.domain=function(e){return arguments.length?(t=a(u=+e[0]),r=a(c=+e[1]),n=a(l=+e[2]),i=t===r?0:.5/(r-t),o=r===n?0:.5/(n-r),d):[u,c,l]},d.clamp=function(e){return arguments.length?(h=!!e,d):h},d.interpolator=function(e){return arguments.length?(f=e,d):f},d.unknown=function(e){return arguments.length?(s=e,d):s},function(e){return t=(a=e)(u),r=e(c),n=e(l),i=t===r?0:.5/(r-t),o=r===n?0:.5/(n-r),d}}function Tm(){var e=Bh(wm());return e.copy=function(){return bm(e,Tm()).exponent(e.exponent())},ah.apply(e,arguments)}function Sm(e){for(var t=e.length/6|0,r=new Array(t),n=0;n<t;)r[n]="#"+e.slice(6*n,6*++n);return r}var Mm=Sm("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),Pm=Sm("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),Em=Sm("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Cm=Sm("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),km=Sm("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),Am=Sm("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Om=Sm("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Rm=Sm("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Im=Sm("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");function Dm(e){return sr(e[e.length-1])}var Lm=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Sm),Nm=Dm(Lm),jm=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Sm),Fm=Dm(jm),Bm=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Sm),zm=Dm(Bm),Um=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Sm),Xm=Dm(Um),qm=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Sm),Hm=Dm(qm),Ym=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Sm),Gm=Dm(Ym),Wm=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Sm),Vm=Dm(Wm),Km=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Sm),Jm=Dm(Km),Zm=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Sm),Qm=Dm(Zm),$m=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Sm),eg=Dm($m),tg=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Sm),rg=Dm(tg),ng=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Sm),ig=Dm(ng),og=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Sm),ag=Dm(og),sg=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Sm),ug=Dm(sg),cg=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Sm),lg=Dm(cg),fg=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Sm),hg=Dm(fg),dg=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Sm),pg=Dm(dg),mg=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Sm),gg=Dm(mg),vg=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Sm),yg=Dm(vg),_g=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Sm),bg=Dm(_g),xg=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Sm),wg=Dm(xg),Tg=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Sm),Sg=Dm(Tg),Mg=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Sm),Pg=Dm(Mg),Eg=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Sm),Cg=Dm(Eg),kg=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Sm),Ag=Dm(kg),Og=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Sm),Rg=Dm(Og),Ig=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Sm),Dg=Dm(Ig),Lg=Xr(Kt(300,.5,0),Kt(-240,.5,1)),Ng=Xr(Kt(-100,.75,.35),Kt(80,1.5,.8)),jg=Xr(Kt(260,.75,.35),Kt(80,1.5,.8)),Fg=Kt();var Bg=gt(),zg=Math.PI/3,Ug=2*Math.PI/3;function Xg(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}}var qg=Xg(Sm("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),Hg=Xg(Sm("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),Yg=Xg(Sm("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),Gg=Xg(Sm("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));function Wg(e){return function(){return e}}var Vg=Math.abs,Kg=Math.atan2,Jg=Math.cos,Zg=Math.max,Qg=Math.min,$g=Math.sin,ev=Math.sqrt,tv=1e-12,rv=Math.PI,nv=rv/2,iv=2*rv;function ov(e){return 1<=e?nv:e<=-1?-nv:Math.asin(e)}function av(e){return e.innerRadius}function sv(e){return e.outerRadius}function uv(e){return e.startAngle}function cv(e){return e.endAngle}function lv(e){return e&&e.padAngle}function fv(e,t,r,n,i,o,a){var s=e-r,u=t-n,c=(a?o:-o)/ev(s*s+u*u),l=c*u,f=-c*s,h=e+l,d=t+f,p=r+l,m=n+f,g=(h+p)/2,v=(d+m)/2,y=p-h,_=m-d,b=y*y+_*_,x=i-o,w=h*m-p*d,T=(_<0?-1:1)*ev(Zg(0,x*x*b-w*w)),S=(w*_-y*T)/b,M=(-w*y-_*T)/b,P=(w*_+y*T)/b,E=(-w*y+_*T)/b,C=S-g,k=M-v,A=P-g,O=E-v;return A*A+O*O<C*C+k*k&&(S=P,M=E),{cx:S,cy:M,x01:-l,y01:-f,x11:S*(i/x-1),y11:M*(i/x-1)}}function hv(e){this._context=e}function dv(e){return new hv(e)}function pv(e){return e[0]}function mv(e){return e[1]}function gv(){var a=pv,s=mv,u=Wg(!0),c=null,l=dv,f=null;function t(e){var t,r,n,i=e.length,o=!1;for(null==c&&(f=l(n=Yi())),t=0;t<=i;++t)!(t<i&&u(r=e[t],t,e))===o&&((o=!o)?f.lineStart():f.lineEnd()),o&&f.point(+a(r,t,e),+s(r,t,e));if(n)return f=null,n+""||null}return t.x=function(e){return arguments.length?(a="function"==typeof e?e:Wg(+e),t):a},t.y=function(e){return arguments.length?(s="function"==typeof e?e:Wg(+e),t):s},t.defined=function(e){return arguments.length?(u="function"==typeof e?e:Wg(!!e),t):u},t.curve=function(e){return arguments.length?(l=e,null!=c&&(f=l(c)),t):l},t.context=function(e){return arguments.length?(null==e?c=f=null:f=l(c=e),t):c},t}function vv(){var l=pv,f=null,h=Wg(0),d=mv,p=Wg(!0),m=null,g=dv,v=null;function t(e){var t,r,n,i,o,a=e.length,s=!1,u=new Array(a),c=new Array(a);for(null==m&&(v=g(o=Yi())),t=0;t<=a;++t){if(!(t<a&&p(i=e[t],t,e))===s)if(s=!s)r=t,v.areaStart(),v.lineStart();else{for(v.lineEnd(),v.lineStart(),n=t-1;r<=n;--n)v.point(u[n],c[n]);v.lineEnd(),v.areaEnd()}s&&(u[t]=+l(i,t,e),c[t]=+h(i,t,e),v.point(f?+f(i,t,e):u[t],d?+d(i,t,e):c[t]))}if(o)return v=null,o+""||null}function e(){return gv().defined(p).curve(g).context(m)}return t.x=function(e){return arguments.length?(l="function"==typeof e?e:Wg(+e),f=null,t):l},t.x0=function(e){return arguments.length?(l="function"==typeof e?e:Wg(+e),t):l},t.x1=function(e){return arguments.length?(f=null==e?null:"function"==typeof e?e:Wg(+e),t):f},t.y=function(e){return arguments.length?(h="function"==typeof e?e:Wg(+e),d=null,t):h},t.y0=function(e){return arguments.length?(h="function"==typeof e?e:Wg(+e),t):h},t.y1=function(e){return arguments.length?(d=null==e?null:"function"==typeof e?e:Wg(+e),t):d},t.lineX0=t.lineY0=function(){return e().x(l).y(h)},t.lineY1=function(){return e().x(l).y(d)},t.lineX1=function(){return e().x(f).y(h)},t.defined=function(e){return arguments.length?(p="function"==typeof e?e:Wg(!!e),t):p},t.curve=function(e){return arguments.length?(g=e,null!=m&&(v=g(m)),t):g},t.context=function(e){return arguments.length?(null==e?m=v=null:v=g(m=e),t):m},t}function yv(e,t){return t<e?-1:e<t?1:e<=t?0:NaN}function _v(e){return e}hv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var bv=wv(dv);function xv(e){this._curve=e}function wv(t){function e(e){return new xv(t(e))}return e._curve=t,e}function Tv(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(wv(e)):t()._curve},e}function Sv(){return Tv(gv().curve(bv))}function Mv(){var e=vv().curve(bv),t=e.curve,r=e.lineX0,n=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return Tv(r())},delete e.lineX0,e.lineEndAngle=function(){return Tv(n())},delete e.lineX1,e.lineInnerRadius=function(){return Tv(i())},delete e.lineY0,e.lineOuterRadius=function(){return Tv(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(wv(e)):t()._curve},e}function Pv(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]}xv.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Ev=Array.prototype.slice;function Cv(e){return e.source}function kv(e){return e.target}function Av(i){var o=Cv,a=kv,s=pv,u=mv,c=null;function t(){var e,t=Ev.call(arguments),r=o.apply(this,t),n=a.apply(this,t);if(c||(c=e=Yi()),i(c,+s.apply(this,(t[0]=r,t)),+u.apply(this,t),+s.apply(this,(t[0]=n,t)),+u.apply(this,t)),e)return c=null,e+""||null}return t.source=function(e){return arguments.length?(o=e,t):o},t.target=function(e){return arguments.length?(a=e,t):a},t.x=function(e){return arguments.length?(s="function"==typeof e?e:Wg(+e),t):s},t.y=function(e){return arguments.length?(u="function"==typeof e?e:Wg(+e),t):u},t.context=function(e){return arguments.length?(c=null==e?null:e,t):c},t}function Ov(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t=(t+n)/2,r,t,i,n,i)}function Rv(e,t,r,n,i){e.moveTo(t,r),e.bezierCurveTo(t,r=(r+i)/2,n,r,n,i)}function Iv(e,t,r,n,i){var o=Pv(t,r),a=Pv(t,r=(r+i)/2),s=Pv(n,r),u=Pv(n,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}var Dv={draw:function(e,t){var r=Math.sqrt(t/rv);e.moveTo(r,0),e.arc(0,0,r,0,iv)}},Lv={draw:function(e,t){var r=Math.sqrt(t/5)/2;e.moveTo(-3*r,-r),e.lineTo(-r,-r),e.lineTo(-r,-3*r),e.lineTo(r,-3*r),e.lineTo(r,-r),e.lineTo(3*r,-r),e.lineTo(3*r,r),e.lineTo(r,r),e.lineTo(r,3*r),e.lineTo(-r,3*r),e.lineTo(-r,r),e.lineTo(-3*r,r),e.closePath()}},Nv=Math.sqrt(1/3),jv=2*Nv,Fv={draw:function(e,t){var r=Math.sqrt(t/jv),n=r*Nv;e.moveTo(0,-r),e.lineTo(n,0),e.lineTo(0,r),e.lineTo(-n,0),e.closePath()}},Bv=Math.sin(rv/10)/Math.sin(7*rv/10),zv=Math.sin(iv/10)*Bv,Uv=-Math.cos(iv/10)*Bv,Xv={draw:function(e,t){var r=Math.sqrt(.8908130915292852*t),n=zv*r,i=Uv*r;e.moveTo(0,-r),e.lineTo(n,i);for(var o=1;o<5;++o){var a=iv*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*r,-s*r),e.lineTo(s*n-u*i,u*n+s*i)}e.closePath()}},qv={draw:function(e,t){var r=Math.sqrt(t),n=-r/2;e.rect(n,n,r,r)}},Hv=Math.sqrt(3),Yv={draw:function(e,t){var r=-Math.sqrt(t/(3*Hv));e.moveTo(0,2*r),e.lineTo(-Hv*r,-r),e.lineTo(Hv*r,-r),e.closePath()}},Gv=Math.sqrt(3)/2,Wv=1/Math.sqrt(12),Vv=3*(Wv/2+1),Kv={draw:function(e,t){var r=Math.sqrt(t/Vv),n=r/2,i=r*Wv,o=n,a=r*Wv+r,s=-o,u=a;e.moveTo(n,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*n-Gv*i,Gv*n+-.5*i),e.lineTo(-.5*o-Gv*a,Gv*o+-.5*a),e.lineTo(-.5*s-Gv*u,Gv*s+-.5*u),e.lineTo(-.5*n+Gv*i,-.5*i-Gv*n),e.lineTo(-.5*o+Gv*a,-.5*a-Gv*o),e.lineTo(-.5*s+Gv*u,-.5*u-Gv*s),e.closePath()}},Jv=[Dv,Lv,Fv,qv,Xv,Yv,Kv];function Zv(){}function Qv(e,t,r){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+r)/6)}function $v(e){this._context=e}function ey(e){this._context=e}function ty(e){this._context=e}function ry(e,t){this._basis=new $v(e),this._beta=t}$v.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:Qv(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Qv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ey.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:Qv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+e)/6,n=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(r,n):this._context.moveTo(r,n);break;case 3:this._point=4;default:Qv(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}},ry.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,r=e.length-1;if(0<r)for(var n,i=e[0],o=t[0],a=e[r]-i,s=t[r]-o,u=-1;++u<=r;)n=u/r,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+n*a),this._beta*t[u]+(1-this._beta)*(o+n*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var ny=function t(r){function e(e){return 1===r?new $v(e):new ry(e,r)}return e.beta=function(e){return t(+e)},e}(.85);function iy(e,t,r){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-r),e._x2,e._y2)}function oy(e,t){this._context=e,this._k=(1-t)/6}oy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:iy(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ay=function t(r){function e(e){return new oy(e,r)}return e.tension=function(e){return t(+e)},e}(0);function sy(e,t){this._context=e,this._k=(1-t)/6}sy.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var uy=function t(r){function e(e){return new sy(e,r)}return e.tension=function(e){return t(+e)},e}(0);function cy(e,t){this._context=e,this._k=(1-t)/6}cy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:iy(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ly=function t(r){function e(e){return new cy(e,r)}return e.tension=function(e){return t(+e)},e}(0);function fy(e,t,r){var n=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>tv){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);n=(n*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>tv){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*c+e._y1*e._l23_2a-r*e._l12_2a)/l}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function hy(e,t){this._context=e,this._alpha=t}hy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:fy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var dy=function t(r){function e(e){return r?new hy(e,r):new oy(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function py(e,t){this._context=e,this._alpha=t}py.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:fy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var my=function t(r){function e(e){return r?new py(e,r):new sy(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function gy(e,t){this._context=e,this._alpha=t}gy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var r=this._x2-e,n=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+n*n,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:fy(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var vy=function t(r){function e(e){return r?new gy(e,r):new cy(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function yy(e){this._context=e}function _y(e){return e<0?-1:1}function by(e,t,r){var n=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(n||i<0&&-0),a=(r-e._y1)/(i||n<0&&-0),s=(o*i+a*n)/(n+i);return(_y(o)+_y(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function xy(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function wy(e,t,r){var n=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-n)/3;e._context.bezierCurveTo(n+s,i+s*t,o-s,a-s*r,o,a)}function Ty(e){this._context=e}function Sy(e){this._context=new My(e)}function My(e){this._context=e}function Py(e){this._context=e}function Ey(e){var t,r,n=e.length-1,i=new Array(n),o=new Array(n),a=new Array(n);for(o[i[0]=0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[n-1]=2,o[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=i[t]/o[t-1],o[t]-=r,a[t]-=r*a[t-1];for(i[n-1]=a[n-1]/o[n-1],t=n-2;0<=t;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[n-1]=(e[n]+i[n-1])/2,t=0;t<n-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}function Cy(e,t){this._context=e,this._t=t}function ky(e,t){if(1<(i=e.length))for(var r,n,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(n=a,a=e[t[o]],r=0;r<s;++r)a[r][1]+=a[r][0]=isNaN(n[r][1])?n[r][0]:n[r][1]}function Ay(e){for(var t=e.length,r=new Array(t);0<=--t;)r[t]=t;return r}function Oy(e,t){return e[t]}function Ry(e){var r=e.map(Iy);return Ay(e).sort(function(e,t){return r[e]-r[t]})}function Iy(e){for(var t,r=-1,n=0,i=e.length,o=-1/0;++r<i;)(t=+e[r][1])>o&&(o=t,n=r);return n}function Dy(e){var r=e.map(Ly);return Ay(e).sort(function(e,t){return r[e]-r[t]})}function Ly(e){for(var t,r=0,n=-1,i=e.length;++n<i;)(t=+e[n][1])&&(r+=t);return r}function Ny(e){return function(){return e}}function jy(e){return e[0]}function Fy(e){return e[1]}function By(){this._=null}function zy(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Uy(e,t){var r=t,n=t.R,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.R=n.L,r.R&&(r.R.U=r),n.L=r}function Xy(e,t){var r=t,n=t.L,i=r.U;i?i.L===r?i.L=n:i.R=n:e._=n,n.U=i,r.U=n,r.L=n.R,r.L&&(r.L.U=r),n.R=r}function qy(e){for(;e.L;)e=e.L;return e}function Hy(e,t,r,n){var i=[null,null],o=h_.push(i)-1;return i.left=e,i.right=t,r&&Gy(i,e,t,r),n&&Gy(i,t,e,n),l_[e.index].halfedges.push(o),l_[t.index].halfedges.push(o),i}function Yy(e,t,r){var n=[t,r];return n.left=e,n}function Gy(e,t,r,n){e[0]||e[1]?e.left===r?e[1]=n:e[0]=n:(e[0]=n,e.left=t,e.right=r)}function Wy(e,t,r,n,i){var o,a=e[0],s=e[1],u=a[0],c=a[1],l=0,f=1,h=s[0]-u,d=s[1]-c;if(o=t-u,h||!(0<o)){if(o/=h,h<0){if(o<l)return;o<f&&(f=o)}else if(0<h){if(f<o)return;l<o&&(l=o)}if(o=n-u,h||!(o<0)){if(o/=h,h<0){if(f<o)return;l<o&&(l=o)}else if(0<h){if(o<l)return;o<f&&(f=o)}if(o=r-c,d||!(0<o)){if(o/=d,d<0){if(o<l)return;o<f&&(f=o)}else if(0<d){if(f<o)return;l<o&&(l=o)}if(o=i-c,d||!(o<0)){if(o/=d,d<0){if(f<o)return;l<o&&(l=o)}else if(0<d){if(o<l)return;o<f&&(f=o)}return(0<l||f<1)&&(0<l&&(e[0]=[u+l*h,c+l*d]),f<1&&(e[1]=[u+f*h,c+f*d])),!0}}}}}function Vy(e,t,r,n,i){var o=e[1];if(o)return!0;var a,s,u=e[0],c=e.left,l=e.right,f=c[0],h=c[1],d=l[0],p=l[1],m=(f+d)/2,g=(h+p)/2;if(p===h){if(m<t||n<=m)return;if(d<f){if(u){if(u[1]>=i)return}else u=[m,r];o=[m,i]}else{if(u){if(u[1]<r)return}else u=[m,i];o=[m,r]}}else if(s=g-(a=(f-d)/(p-h))*m,a<-1||1<a)if(d<f){if(u){if(u[1]>=i)return}else u=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(u){if(u[1]<r)return}else u=[(i-s)/a,i];o=[(r-s)/a,r]}else if(h<p){if(u){if(u[0]>=n)return}else u=[t,a*t+s];o=[n,a*n+s]}else{if(u){if(u[0]<t)return}else u=[n,a*n+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0}function Ky(e,t){return t[+(t.left!==e.site)]}yy.prototype={areaStart:Zv,areaEnd:Zv,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}},Ty.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:wy(this,this._t0,xy(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var r=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,wy(this,xy(this,r=by(this,e,t)),r);break;default:wy(this,this._t0,r=by(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=r}}},(Sy.prototype=Object.create(Ty.prototype)).point=function(e,t){Ty.prototype.point.call(this,t,e)},My.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,r,n,i,o){this._context.bezierCurveTo(t,e,n,r,o,i)}},Py.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,r=e.length;if(r)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===r)this._context.lineTo(e[1],t[1]);else for(var n=Ey(e),i=Ey(t),o=0,a=1;a<r;++o,++a)this._context.bezierCurveTo(n[0][o],i[0][o],n[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===r)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}},Cy.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),0<=this._line&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var r=this._x*(1-this._t)+e*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,t)}}this._x=e,this._y=t}},By.prototype={constructor:By,insert:function(e,t){var r,n,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;r=e}else r=this._?(e=qy(this._),t.P=null,(t.N=e).P=e.L=t,e):(t.P=t.N=null,this._=t,null);for(t.L=t.R=null,t.U=r,t.C=!0,e=t;r&&r.C;)r===(n=r.U).L?(i=n.R)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.R&&(Uy(this,r),r=(e=r).U),r.C=!1,n.C=!0,Xy(this,n)):(i=n.L)&&i.C?(r.C=i.C=!1,n.C=!0,e=n):(e===r.L&&(Xy(this,r),r=(e=r).U),r.C=!1,n.C=!0,Uy(this,n)),r=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,r,n,i=e.U,o=e.L,a=e.R;if(r=o?a?qy(a):o:a,i?i.L===e?i.L=r:i.R=r:this._=r,o&&a?(n=r.C,r.C=e.C,((r.L=o).U=r)!==a?(i=r.U,r.U=e.U,e=r.R,i.L=e,(r.R=a).U=r):(r.U=i,e=(i=r).R)):(n=e.C,e=r),e&&(e.U=i),!n)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Uy(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,Xy(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Uy(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,Xy(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Uy(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,Xy(this,i),e=this._;break}t.C=!0,i=(e=i).U}while(!e.C);e&&(e.C=!1)}}};var Jy,Zy=[];function Qy(){zy(this),this.x=this.y=this.arc=this.site=this.cy=null}function $y(e){var t=e.P,r=e.N;if(t&&r){var n=t.site,i=e.site,o=r.site;if(n!==o){var a=i[0],s=i[1],u=n[0]-a,c=n[1]-s,l=o[0]-a,f=o[1]-s,h=2*(u*f-c*l);if(!(-p_<=h)){var d=u*u+c*c,p=l*l+f*f,m=(f*d-c*p)/h,g=(u*p-l*d)/h,v=Zy.pop()||new Qy;v.arc=e,v.site=i,v.x=m+a,v.y=(v.cy=g+s)+Math.sqrt(m*m+g*g),e.circle=v;for(var y=null,_=f_._;_;)if(v.y<_.y||v.y===_.y&&v.x<=_.x){if(!_.L){y=_.P;break}_=_.L}else{if(!_.R){y=_;break}_=_.R}f_.insert(y,v),y||(Jy=v)}}}}function e_(e){var t=e.circle;t&&(t.P||(Jy=t.N),f_.remove(t),Zy.push(t),zy(t),e.circle=null)}var t_=[];function r_(){zy(this),this.edge=this.site=this.circle=null}function n_(e){var t=t_.pop()||new r_;return t.site=e,t}function i_(e){e_(e),c_.remove(e),t_.push(e),zy(e)}function o_(e){var t=e.circle,r=t.x,n=t.cy,i=[r,n],o=e.P,a=e.N,s=[e];i_(e);for(var u=o;u.circle&&Math.abs(r-u.circle.x)<d_&&Math.abs(n-u.circle.cy)<d_;)o=u.P,s.unshift(u),i_(u),u=o;s.unshift(u),e_(u);for(var c=a;c.circle&&Math.abs(r-c.circle.x)<d_&&Math.abs(n-c.circle.cy)<d_;)a=c.N,s.push(c),i_(c),c=a;s.push(c),e_(c);var l,f=s.length;for(l=1;l<f;++l)c=s[l],u=s[l-1],Gy(c.edge,u.site,c.site,i);u=s[0],(c=s[f-1]).edge=Hy(u.site,c.site,null,i),$y(u),$y(c)}function a_(e){for(var t,r,n,i,o=e[0],a=e[1],s=c_._;s;)if(n=s_(s,a)-o,d_<n)s=s.L;else{if(i=o-u_(s,a),!(d_<i)){-d_<n?(t=s.P,r=s):-d_<i?r=(t=s).N:t=r=s;break}if(!s.R){t=s;break}s=s.R}!function(e){l_[e.index]={site:e,halfedges:[]}}(e);var u=n_(e);if(c_.insert(t,u),t||r){if(t===r)return e_(t),r=n_(t.site),c_.insert(u,r),u.edge=r.edge=Hy(t.site,u.site),$y(t),void $y(r);if(r){e_(t),e_(r);var c=t.site,l=c[0],f=c[1],h=e[0]-l,d=e[1]-f,p=r.site,m=p[0]-l,g=p[1]-f,v=2*(h*g-d*m),y=h*h+d*d,_=m*m+g*g,b=[(g*y-d*_)/v+l,(h*_-m*y)/v+f];Gy(r.edge,c,p,b),u.edge=Hy(c,e,null,b),r.edge=Hy(e,p,null,b),$y(t),$y(r)}else u.edge=Hy(t.site,u.site)}}function s_(e,t){var r=e.site,n=r[0],i=r[1],o=i-t;if(!o)return n;var a=e.P;if(!a)return-1/0;var s=(r=a.site)[0],u=r[1],c=u-t;if(!c)return s;var l=s-n,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+n:(n+s)/2}function u_(e,t){var r=e.N;if(r)return s_(r,t);var n=e.site;return n[1]===t?n[0]:1/0}var c_,l_,f_,h_,d_=1e-6,p_=1e-12;function m_(e,t){return t[1]-e[1]||t[0]-e[0]}function g_(e,t){var r,n,i,o=e.sort(m_).pop();for(h_=[],l_=new Array(e.length),c_=new By,f_=new By;;)if(i=Jy,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===r&&o[1]===n||(a_(o),r=o[0],n=o[1]),o=e.pop();else{if(!i)break;o_(i.arc)}if(function(){for(var e,t,r,n,i=0,o=l_.length;i<o;++i)if((e=l_[i])&&(n=(t=e.halfedges).length)){var a=new Array(n),s=new Array(n);for(r=0;r<n;++r)a[r]=r,s[r]=(u=e,c=h_[t[r]],h=f=void 0,l=u.site,f=c.left,h=c.right,l===h&&(h=f,f=l),h?Math.atan2(h[1]-f[1],h[0]-f[0]):(h=l===f?(f=c[1],c[0]):(f=c[0],c[1]),Math.atan2(f[0]-h[0],h[1]-f[1])));for(a.sort(function(e,t){return s[t]-s[e]}),r=0;r<n;++r)s[r]=t[a[r]];for(r=0;r<n;++r)t[r]=s[r]}var u,c,l,f,h}(),t){var a=+t[0][0],s=+t[0][1],u=+t[1][0],c=+t[1][1];!function(e,t,r,n){for(var i,o=h_.length;o--;)Vy(i=h_[o],e,t,r,n)&&Wy(i,e,t,r,n)&&(Math.abs(i[0][0]-i[1][0])>d_||Math.abs(i[0][1]-i[1][1])>d_)||delete h_[o]}(a,s,u,c),function(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p,m,g,v,y=l_.length,_=!0;for(i=0;i<y;++i)if(o=l_[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)h_[u[s]]||u.splice(s,1);for(s=0,c=u.length;s<c;)g=o,p=(d=(v=h_[u[s]])[+(v.left===g.site)])[0],m=d[1],f=(l=Ky(o,h_[u[++s%c]]))[0],h=l[1],(Math.abs(p-f)>d_||Math.abs(m-h)>d_)&&(u.splice(s,0,h_.push(Yy(a,d,Math.abs(p-e)<d_&&d_<n-m?[e,Math.abs(f-e)<d_?h:n]:Math.abs(m-n)<d_&&d_<r-p?[Math.abs(h-n)<d_?f:r,n]:Math.abs(p-r)<d_&&d_<m-t?[r,Math.abs(f-r)<d_?h:t]:Math.abs(m-t)<d_&&d_<p-e?[Math.abs(h-t)<d_?f:e,t]:null))-1),++c);c&&(_=!1)}if(_){var b,x,w,T=1/0;for(i=0,_=null;i<y;++i)(o=l_[i])&&(w=(b=(a=o.site)[0]-e)*b+(x=a[1]-t)*x)<T&&(T=w,_=o);if(_){var S=[e,t],M=[e,n],P=[r,n],E=[r,t];_.halfedges.push(h_.push(Yy(a=_.site,S,M))-1,h_.push(Yy(a,M,P))-1,h_.push(Yy(a,P,E))-1,h_.push(Yy(a,E,S))-1)}}for(i=0;i<y;++i)(o=l_[i])&&(o.halfedges.length||delete l_[i])}(a,s,u,c)}this.edges=h_,this.cells=l_,c_=f_=h_=l_=null}function v_(e){return function(){return e}}function y_(e,t,r){this.target=e,this.type=t,this.transform=r}function __(e,t,r){this.k=e,this.x=t,this.y=r}g_.prototype={constructor:g_,polygons:function(){var r=this.edges;return this.cells.map(function(t){var e=t.halfedges.map(function(e){return Ky(t,r[e])});return e.data=t.site.data,e})},triangles:function(){var h=[],d=this.edges;return this.cells.forEach(function(e,t){if(n=(r=e.halfedges).length)for(var r,n,i,o,a,s,u=e.site,c=-1,l=d[r[n-1]],f=l.left===u?l.right:l.left;++c<n;)i=f,f=(l=d[r[c]]).left===u?l.right:l.left,i&&f&&t<i.index&&t<f.index&&(a=i,s=f,((o=u)[0]-s[0])*(a[1]-o[1])-(o[0]-a[0])*(s[1]-o[1])<0)&&h.push([u.data,i.data,f.data])}),h},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(a,s,e){for(var t,u,c=this,l=c._found||0,r=c.cells.length;!(u=c.cells[l]);)if(++l>=r)return null;for(var n=a-u.site[0],i=s-u.site[1],f=n*n+i*i;u=c.cells[t=l],l=null,u.halfedges.forEach(function(e){var t=c.edges[e],r=t.left;if(r!==u.site&&r||(r=t.right)){var n=a-r[0],i=s-r[1],o=n*n+i*i;o<f&&(f=o,l=r.index)}}),null!==l;);return c._found=t,null==e||f<=e*e?u.site:null}},__.prototype={constructor:__,scale:function(e){return 1===e?this:new __(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new __(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var b_=new __(1,0,0);function x_(e){return e.__zoom||b_}function w_(){z.event.stopImmediatePropagation()}function T_(){z.event.preventDefault(),z.event.stopImmediatePropagation()}function S_(){return!z.event.button}function M_(){var e,t,r=this;return t=r instanceof SVGElement?(e=(r=r.ownerSVGElement||r).width.baseVal.value,r.height.baseVal.value):(e=r.clientWidth,r.clientHeight),[[0,0],[e,t]]}function P_(){return this.__zoom||b_}function E_(){return-z.event.deltaY*(z.event.deltaMode?120:1)/500}function C_(){return"ontouchstart"in this}function k_(e,t,r){var n=e.invertX(t[0][0])-r[0][0],i=e.invertX(t[1][0])-r[1][0],o=e.invertY(t[0][1])-r[0][1],a=e.invertY(t[1][1])-r[1][1];return e.translate(n<i?(n+i)/2:Math.min(0,n)||Math.max(0,i),o<a?(o+a)/2:Math.min(0,o)||Math.max(0,a))}x_.prototype=__.prototype,z.version="5.9.2",z.bisect=m,z.bisectRight=m,z.bisectLeft=t,z.ascending=s,z.bisector=S,z.cross=function(e,t,r){var n,i,o,a,s=e.length,u=t.length,c=new Array(s*u);for(null==r&&(r=l),n=o=0;n<s;++n)for(a=e[n],i=0;i<u;++i,++o)c[o]=r(a,t[i]);return c},z.descending=function(e,t){return t<e?-1:e<t?1:e<=t?0:NaN},z.deviation=i,z.extent=u,z.histogram=function(){var h=g,d=u,p=_;function t(e){var t,r,n=e.length,i=new Array(n);for(t=0;t<n;++t)i[t]=h(e[t],t,e);var o=d(i),a=o[0],s=o[1],u=p(i,a,s);Array.isArray(u)||(u=P(a,s,u),u=M(Math.ceil(a/u)*u,s,u));for(var c=u.length;u[0]<=a;)u.shift(),--c;for(;u[c-1]>s;)u.pop(),--c;var l,f=new Array(c+1);for(t=0;t<=c;++t)(l=f[t]=[]).x0=0<t?u[t-1]:a,l.x1=t<c?u[t]:s;for(t=0;t<n;++t)a<=(r=i[t])&&r<=s&&f[m(u,r,0,c)].push(e[t]);return f}return t.value=function(e){return arguments.length?(h="function"==typeof e?e:f(e),t):h},t.domain=function(e){return arguments.length?(d="function"==typeof e?e:f([e[0],e[1]]),t):d},t.thresholds=function(e){return arguments.length?(p="function"==typeof e?e:Array.isArray(e)?f(o.call(e)):f(e),t):p},t},z.thresholdFreedmanDiaconis=function(e,t,r){return e=a.call(e,c).sort(s),Math.ceil((r-t)/(2*(b(e,.75)-b(e,.25))*Math.pow(e.length,-1/3)))},z.thresholdScott=function(e,t,r){return Math.ceil((r-t)/(3.5*i(e)*Math.pow(e.length,-1/3)))},z.thresholdSturges=_,z.max=x,z.mean=function(e,t){var r,n=e.length,i=n,o=-1,a=0;if(null==t)for(;++o<n;)isNaN(r=c(e[o]))?--i:a+=r;else for(;++o<n;)isNaN(r=c(t(e[o],o,e)))?--i:a+=r;if(i)return a/i},z.median=function(e,t){var r,n=e.length,i=-1,o=[];if(null==t)for(;++i<n;)isNaN(r=c(e[i]))||o.push(r);else for(;++i<n;)isNaN(r=c(t(e[i],i,e)))||o.push(r);return b(o.sort(s),.5)},z.merge=E,z.min=w,z.pairs=function(e,t){null==t&&(t=l);for(var r=0,n=e.length-1,i=e[0],o=new Array(n<0?0:n);r<n;)o[r]=t(i,i=e[++r]);return o},z.permute=function(e,t){for(var r=t.length,n=new Array(r);r--;)n[r]=e[t[r]];return n},z.quantile=b,z.range=M,z.scan=function(e,t){if(r=e.length){var r,n,i=0,o=0,a=e[o];for(null==t&&(t=s);++i<r;)(t(n=e[i],a)<0||0!==t(a,a))&&(a=n,o=i);return 0===t(a,a)?o:void 0}},z.shuffle=function(e,t,r){for(var n,i,o=(null==r?e.length:r)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,n=e[o+t],e[o+t]=e[i+t],e[i+t]=n;return e},z.sum=function(e,t){var r,n=e.length,i=-1,o=0;if(null==t)for(;++i<n;)(r=+e[i])&&(o+=r);else for(;++i<n;)(r=+t(e[i],i,e))&&(o+=r);return o},z.ticks=v,z.tickIncrement=y,z.tickStep=P,z.transpose=T,z.variance=n,z.zip=function(){return T(arguments)},z.axisTop=function(e){return B(O,e)},z.axisRight=function(e){return B(R,e)},z.axisBottom=function(e){return B(I,e)},z.axisLeft=function(e){return B(D,e)},z.brush=function(){return Ri(xi)},z.brushX=function(){return Ri(_i)},z.brushY=function(){return Ri(bi)},z.brushSelection=function(e){var t=e.__brush;return t?t.dim.output(t.selection):null},z.chord=function(){var x=0,w=null,T=null,S=null;function t(n){var e,t,r,i,o,a,s=n.length,u=[],c=M(s),l=[],f=[],h=f.groups=new Array(s),d=new Array(s*s);for(e=0,o=-1;++o<s;){for(t=0,a=-1;++a<s;)t+=n[o][a];u.push(t),l.push(M(s)),e+=t}for(w&&c.sort(function(e,t){return w(u[e],u[t])}),T&&l.forEach(function(e,r){e.sort(function(e,t){return T(n[r][e],n[r][t])})}),i=(e=Fi(0,ji-x*s)/e)?x:ji/s,t=0,o=-1;++o<s;){for(r=t,a=-1;++a<s;){var p=c[o],m=l[p][a],g=n[p][m],v=t,y=t+=g*e;d[m*s+p]={index:p,subindex:m,startAngle:v,endAngle:y,value:g}}h[p]={index:p,startAngle:r,endAngle:t,value:u[p]},t+=i}for(o=-1;++o<s;)for(a=o-1;++a<s;){var _=d[a*s+o],b=d[o*s+a];(_.value||b.value)&&f.push(_.value<b.value?{source:b,target:_}:{source:_,target:b})}return S?f.sort(S):f}return t.padAngle=function(e){return arguments.length?(x=Fi(0,e),t):x},t.sortGroups=function(e){return arguments.length?(w=e,t):w},t.sortSubgroups=function(e){return arguments.length?(T=e,t):T},t.sortChords=function(e){return arguments.length?(null==e?S=null:(S=function(r){return function(e,t){return r(e.source.value+e.target.value,t.source.value+t.target.value)}}(e))._=e,t):S&&S._},t},z.ribbon=function(){var h=Gi,d=Wi,p=Vi,m=Ki,g=Ji,v=null;function t(){var e,t=Bi.call(arguments),r=h.apply(this,t),n=d.apply(this,t),i=+p.apply(this,(t[0]=r,t)),o=m.apply(this,t)-Ni,a=g.apply(this,t)-Ni,s=i*Ii(o),u=i*Di(o),c=+p.apply(this,(t[0]=n,t)),l=m.apply(this,t)-Ni,f=g.apply(this,t)-Ni;if(v||(v=e=Yi()),v.moveTo(s,u),v.arc(0,0,i,o,a),o==l&&a==f||(v.quadraticCurveTo(0,0,c*Ii(l),c*Di(l)),v.arc(0,0,c,l,f)),v.quadraticCurveTo(0,0,s,u),v.closePath(),e)return v=null,e+""||null}return t.radius=function(e){return arguments.length?(p="function"==typeof e?e:zi(+e),t):p},t.startAngle=function(e){return arguments.length?(m="function"==typeof e?e:zi(+e),t):m},t.endAngle=function(e){return arguments.length?(g="function"==typeof e?e:zi(+e),t):g},t.source=function(e){return arguments.length?(h=e,t):h},t.target=function(e){return arguments.length?(d=e,t):d},t.context=function(e){return arguments.length?(v=null==e?null:e,t):v},t},z.nest=function(){var h,d,t,p=[],a=[];function m(e,r,n,i){if(r>=p.length)return null!=h&&e.sort(h),null!=d?d(e):e;for(var t,o,a,s=-1,u=e.length,c=p[r++],l=Qi(),f=n();++s<u;)(a=l.get(t=c(o=e[s])+""))?a.push(o):l.set(t,[o]);return l.each(function(e,t){i(f,t,m(e,r,n,i))}),f}return t={object:function(e){return m(e,0,$i,eo)},map:function(e){return m(e,0,to,ro)},entries:function(e){return function r(e,n){if(++n>p.length)return e;var i,o=a[n-1];return null!=d&&n>=p.length?i=e.entries():(i=[],e.each(function(e,t){i.push({key:t,values:r(e,n)})})),null!=o?i.sort(function(e,t){return o(e.key,t.key)}):i}(m(e,0,to,ro),0)},key:function(e){return p.push(e),t},sortKeys:function(e){return a[p.length-1]=e,t},sortValues:function(e){return h=e,t},rollup:function(e){return d=e,t}}},z.set=oo,z.map=Qi,z.keys=function(e){var t=[];for(var r in e)t.push(r);return t},z.values=function(e){var t=[];for(var r in e)t.push(e[r]);return t},z.entries=function(e){var t=[];for(var r in e)t.push({key:r,value:e[r]});return t},z.color=ht,z.rgb=gt,z.hsl=bt,z.lab=It,z.hcl=zt,z.lch=function(e,t,r,n){return 1===arguments.length?Bt(e):new Ut(r,t,e,null==n?1:n)},z.gray=function(e,t){return new Dt(e,0,0,null==t?1:t)},z.cubehelix=Kt,z.contours=po,z.contourDensity=function(){var s=vo,u=yo,c=_o,n=960,i=500,o=20,l=2,f=3*o,h=n+2*f>>l,d=i+2*f>>l,p=uo(20);function t(e){var a=new Float32Array(h*d),t=new Float32Array(h*d);e.forEach(function(e,t,r){var n=+s(e,t,r)+f>>l,i=+u(e,t,r)+f>>l,o=+c(e,t,r);0<=n&&n<h&&0<=i&&i<d&&(a[n+i*h]+=o)}),mo({width:h,height:d,data:a},{width:h,height:d,data:t},o>>l),go({width:h,height:d,data:t},{width:h,height:d,data:a},o>>l),mo({width:h,height:d,data:a},{width:h,height:d,data:t},o>>l),go({width:h,height:d,data:t},{width:h,height:d,data:a},o>>l),mo({width:h,height:d,data:a},{width:h,height:d,data:t},o>>l),go({width:h,height:d,data:t},{width:h,height:d,data:a},o>>l);var r=p(a);if(!Array.isArray(r)){var n=x(a);r=P(0,n,r),(r=M(0,Math.floor(n/r)*r,r)).shift()}return po().thresholds(r).size([h,d])(a).map(m)}function m(e){return e.value*=Math.pow(2,-2*l),e.coordinates.forEach(r),e}function r(e){e.forEach(a)}function a(e){e.forEach(g)}function g(e){e[0]=e[0]*Math.pow(2,l)-f,e[1]=e[1]*Math.pow(2,l)-f}function v(){return h=n+2*(f=3*o)>>l,d=i+2*f>>l,t}return t.x=function(e){return arguments.length?(s="function"==typeof e?e:uo(+e),t):s},t.y=function(e){return arguments.length?(u="function"==typeof e?e:uo(+e),t):u},t.weight=function(e){return arguments.length?(c="function"==typeof e?e:uo(+e),t):c},t.size=function(e){if(!arguments.length)return[n,i];var t=Math.ceil(e[0]),r=Math.ceil(e[1]);if(!(0<=t||0<=t))throw new Error("invalid size");return n=t,i=r,v()},t.cellSize=function(e){if(!arguments.length)return 1<<l;if(!(1<=(e=+e)))throw new Error("invalid cell size");return l=Math.floor(Math.log(e)/Math.LN2),v()},t.thresholds=function(e){return arguments.length?(p="function"==typeof e?e:Array.isArray(e)?uo(ao.call(e)):uo(e),t):p},t.bandwidth=function(e){if(!arguments.length)return Math.sqrt(o*(o+1));if(!(0<=(e=+e)))throw new Error("invalid bandwidth");return o=Math.round((Math.sqrt(4*e*e+1)-1)/2),v()},t},z.dispatch=X,z.drag=function(){var r,n,i,o,a=Ge,s=We,t=Ve,u=Ke,p={},m=X("start","drag","end"),g=0,c=0;function v(e){e.on("mousedown.drag",l).filter(u).on("touchstart.drag",d).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",_).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function l(){if(!o&&a.apply(this,arguments)){var e=b("mouse",s.apply(this,arguments),Fe,this,arguments);e&&(Re(z.event.view).on("mousemove.drag",f,!0).on("mouseup.drag",h,!0),Xe(z.event.view),ze(),i=!1,r=z.event.clientX,n=z.event.clientY,e("start"))}}function f(){if(Ue(),!i){var e=z.event.clientX-r,t=z.event.clientY-n;i=c<e*e+t*t}p.mouse("drag")}function h(){Re(z.event.view).on("mousemove.drag mouseup.drag",null),qe(z.event.view,i),Ue(),p.mouse("end")}function d(){if(a.apply(this,arguments)){var e,t,r=z.event.changedTouches,n=s.apply(this,arguments),i=r.length;for(e=0;e<i;++e)(t=b(r[e].identifier,n,Be,this,arguments))&&(ze(),t("start"))}}function y(){var e,t,r=z.event.changedTouches,n=r.length;for(e=0;e<n;++e)(t=p[r[e].identifier])&&(Ue(),t("drag"))}function _(){var e,t,r=z.event.changedTouches,n=r.length;for(o&&clearTimeout(o),o=setTimeout(function(){o=null},500),e=0;e<n;++e)(t=p[r[e].identifier])&&(ze(),t("end"))}function b(i,o,a,s,u){var c,l,f,h=a(o,i),d=m.copy();if(Ee(new Ye(v,"beforestart",c,i,g,h[0],h[1],0,0,d),function(){return null!=(z.event.subject=c=t.apply(s,u))&&(l=c.x-h[0]||0,f=c.y-h[1]||0,!0)}))return function e(t){var r,n=h;switch(t){case"start":p[i]=e,r=g++;break;case"end":delete p[i],--g;case"drag":h=a(o,i),r=g}Ee(new Ye(v,t,c,i,r,h[0]+l,h[1]+f,h[0]-n[0],h[1]-n[1],d),d.apply,d,[t,s,u])}}return v.filter=function(e){return arguments.length?(a="function"==typeof e?e:He(!!e),v):a},v.container=function(e){return arguments.length?(s="function"==typeof e?e:He(e),v):s},v.subject=function(e){return arguments.length?(t="function"==typeof e?e:He(e),v):t},v.touchable=function(e){return arguments.length?(u="function"==typeof e?e:He(!!e),v):u},v.on=function(){var e=m.on.apply(m,arguments);return e===m?v:e},v.clickDistance=function(e){return arguments.length?(c=(e=+e)*e,v):Math.sqrt(c)},v},z.dragDisable=Xe,z.dragEnable=qe,z.dsvFormat=ko,z.csvParse=Oo,z.csvParseRows=Ro,z.csvFormat=Io,z.csvFormatBody=Do,z.csvFormatRows=Lo,z.tsvParse=jo,z.tsvParseRows=Fo,z.tsvFormat=Bo,z.tsvFormatBody=zo,z.tsvFormatRows=Uo,z.autoType=function(e){for(var t in e){var r,n=e[t].trim();if(n)if("true"===n)n=!0;else if("false"===n)n=!1;else if("NaN"===n)n=NaN;else if(isNaN(r=+n)){if(!/^([-+]\d{2})?\d{4}(-\d{2}(-\d{2})?)?(T\d{2}:\d{2}(:\d{2}(\.\d{3})?)?(Z|[-+]\d{2}:\d{2})?)?$/.test(n))continue;n=new Date(n)}else n=r;else n=null;e[t]=n}return e},z.easeLinear=function(e){return+e},z.easeQuad=In,z.easeQuadIn=function(e){return e*e},z.easeQuadOut=function(e){return e*(2-e)},z.easeQuadInOut=In,z.easeCubic=Dn,z.easeCubicIn=function(e){return e*e*e},z.easeCubicOut=function(e){return--e*e*e+1},z.easeCubicInOut=Dn,z.easePoly=jn,z.easePolyIn=Ln,z.easePolyOut=Nn,z.easePolyInOut=jn,z.easeSin=zn,z.easeSinIn=function(e){return 1-Math.cos(e*Bn)},z.easeSinOut=function(e){return Math.sin(e*Bn)},z.easeSinInOut=zn,z.easeExp=Un,z.easeExpIn=function(e){return Math.pow(2,10*e-10)},z.easeExpOut=function(e){return 1-Math.pow(2,-10*e)},z.easeExpInOut=Un,z.easeCircle=Xn,z.easeCircleIn=function(e){return 1-Math.sqrt(1-e*e)},z.easeCircleOut=function(e){return Math.sqrt(1- --e*e)},z.easeCircleInOut=Xn,z.easeBounce=$n,z.easeBounceIn=function(e){return 1-$n(1-e)},z.easeBounceOut=$n,z.easeBounceInOut=function(e){return((e*=2)<=1?1-$n(1-e):$n(e-1)+1)/2},z.easeBack=ni,z.easeBackIn=ti,z.easeBackOut=ri,z.easeBackInOut=ni,z.easeElastic=ai,z.easeElasticIn=oi,z.easeElasticOut=ai,z.easeElasticInOut=si,z.blob=function(e,t){return fetch(e,t).then(Xo)},z.buffer=function(e,t){return fetch(e,t).then(qo)},z.dsv=function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=ko(e);return Yo(t,r).then(function(e){return i.parse(e,n)})},z.csv=Wo,z.tsv=Vo,z.image=function(i,o){return new Promise(function(e,t){var r=new Image;for(var n in o)r[n]=o[n];r.onerror=t,r.onload=function(){e(r)},r.src=i})},z.json=function(e,t){return fetch(e,t).then(Ko)},z.text=Yo,z.xml=Zo,z.html=Qo,z.svg=$o,z.forceCenter=function(o,a){var s;function t(){var e,t,r=s.length,n=0,i=0;for(e=0;e<r;++e)n+=(t=s[e]).x,i+=t.y;for(n=n/r-o,i=i/r-a,e=0;e<r;++e)(t=s[e]).x-=n,t.y-=i}return null==o&&(o=0),null==a&&(a=0),t.initialize=function(e){s=e},t.x=function(e){return arguments.length?(o=+e,t):o},t.y=function(e){return arguments.length?(a=+e,t):a},t},z.forceCollide=function(n){var o,a,g=1,s=1;function t(){for(var e,t,f,h,d,p,m,r=o.length,n=0;n<s;++n)for(t=aa(o,la,fa).visitAfter(u),e=0;e<r;++e)f=o[e],p=a[f.index],m=p*p,h=f.x+f.vx,d=f.y+f.vy,t.visit(i);function i(e,t,r,n,i){var o=e.data,a=e.r,s=p+a;if(!o)return h+s<t||n<h-s||d+s<r||i<d-s;if(o.index>f.index){var u=h-o.x-o.vx,c=d-o.y-o.vy,l=u*u+c*c;l<s*s&&(0===u&&(l+=(u=ta())*u),0===c&&(l+=(c=ta())*c),l=(s-(l=Math.sqrt(l)))/l*g,f.vx+=(u*=l)*(s=(a*=a)/(m+a)),f.vy+=(c*=l)*s,o.vx-=u*(s=1-s),o.vy-=c*s)}}}function u(e){if(e.data)return e.r=a[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function r(){if(o){var e,t,r=o.length;for(a=new Array(r),e=0;e<r;++e)t=o[e],a[t.index]=+n(t,e,o)}}return"function"!=typeof n&&(n=ea(null==n?1:+n)),t.initialize=function(e){o=e,r()},t.iterations=function(e){return arguments.length?(s=+e,t):s},t.strength=function(e){return arguments.length?(g=+e,t):g},t.radius=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),r(),t):n},t},z.forceLink=function(f){var h,d,o,a,p,s=ha,r=function(e){return 1/Math.min(a[e.source.index],a[e.target.index])},n=ea(30),m=1;function t(e){for(var t=0,r=f.length;t<m;++t)for(var n,i,o,a,s,u,c,l=0;l<r;++l)i=(n=f[l]).source,a=(o=n.target).x+o.vx-i.x-i.vx||ta(),s=o.y+o.vy-i.y-i.vy||ta(),a*=u=((u=Math.sqrt(a*a+s*s))-d[l])/u*e*h[l],s*=u,o.vx-=a*(c=p[l]),o.vy-=s*c,i.vx+=a*(c=1-c),i.vy+=s*c}function i(){if(o){var e,t,r=o.length,n=f.length,i=Qi(o,s);for(e=0,a=new Array(r);e<n;++e)(t=f[e]).index=e,"object"!=typeof t.source&&(t.source=da(i,t.source)),"object"!=typeof t.target&&(t.target=da(i,t.target)),a[t.source.index]=(a[t.source.index]||0)+1,a[t.target.index]=(a[t.target.index]||0)+1;for(e=0,p=new Array(n);e<n;++e)t=f[e],p[e]=a[t.source.index]/(a[t.source.index]+a[t.target.index]);h=new Array(n),u(),d=new Array(n),c()}}function u(){if(o)for(var e=0,t=f.length;e<t;++e)h[e]=+r(f[e],e,f)}function c(){if(o)for(var e=0,t=f.length;e<t;++e)d[e]=+n(f[e],e,f)}return null==f&&(f=[]),t.initialize=function(e){o=e,i()},t.links=function(e){return arguments.length?(f=e,i(),t):f},t.id=function(e){return arguments.length?(s=e,t):s},t.iterations=function(e){return arguments.length?(m=+e,t):m},t.strength=function(e){return arguments.length?(r="function"==typeof e?e:ea(+e),u(),t):r},t.distance=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),c(),t):n},t},z.forceManyBody=function(){var i,u,c,l,n=ea(-30),f=1,h=1/0,d=.81;function t(e){var t,r=i.length,n=aa(i,pa,ma).visitAfter(o);for(c=e,t=0;t<r;++t)u=i[t],n.visit(a)}function r(){if(i){var e,t,r=i.length;for(l=new Array(r),e=0;e<r;++e)t=i[e],l[t.index]=+n(t,e,i)}}function o(e){var t,r,n,i,o,a=0,s=0;if(e.length){for(n=i=o=0;o<4;++o)(t=e[o])&&(r=Math.abs(t.value))&&(a+=t.value,s+=r,n+=r*t.x,i+=r*t.y);e.x=n/s,e.y=i/s}else for((t=e).x=t.data.x,t.y=t.data.y;a+=l[t.data.index],t=t.next;);e.value=a}function a(e,t,r,n){if(!e.value)return!0;var i=e.x-u.x,o=e.y-u.y,a=n-t,s=i*i+o*o;if(a*a/d<s)return s<h&&(0===i&&(s+=(i=ta())*i),0===o&&(s+=(o=ta())*o),s<f&&(s=Math.sqrt(f*s)),u.vx+=i*e.value*c/s,u.vy+=o*e.value*c/s),!0;if(!(e.length||h<=s))for((e.data!==u||e.next)&&(0===i&&(s+=(i=ta())*i),0===o&&(s+=(o=ta())*o),s<f&&(s=Math.sqrt(f*s)));e.data!==u&&(a=l[e.data.index]*c/s,u.vx+=i*a,u.vy+=o*a),e=e.next;);}return t.initialize=function(e){i=e,r()},t.strength=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),r(),t):n},t.distanceMin=function(e){return arguments.length?(f=e*e,t):Math.sqrt(f)},t.distanceMax=function(e){return arguments.length?(h=e*e,t):Math.sqrt(h)},t.theta=function(e){return arguments.length?(d=e*e,t):Math.sqrt(d)},t},z.forceRadial=function(r,u,c){var l,f,h,n=ea(.1);function t(e){for(var t=0,r=l.length;t<r;++t){var n=l[t],i=n.x-u||1e-6,o=n.y-c||1e-6,a=Math.sqrt(i*i+o*o),s=(h[t]-a)*f[t]*e/a;n.vx+=i*s,n.vy+=o*s}}function i(){if(l){var e,t=l.length;for(f=new Array(t),h=new Array(t),e=0;e<t;++e)h[e]=+r(l[e],e,l),f[e]=isNaN(h[e])?0:+n(l[e],e,l)}}return"function"!=typeof r&&(r=ea(+r)),null==u&&(u=0),null==c&&(c=0),t.initialize=function(e){l=e,i()},t.strength=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),i(),t):n},t.radius=function(e){return arguments.length?(r="function"==typeof e?e:ea(+e),i(),t):r},t.x=function(e){return arguments.length?(u=+e,t):u},t.y=function(e){return arguments.length?(c=+e,t):c},t},z.forceSimulation=function(l){var o,a=1,t=.001,s=1-Math.pow(t,1/300),u=0,c=.6,f=Qi(),e=nn(n),r=X("tick","end");function n(){i(),r.call("tick",o),a<t&&(e.stop(),r.call("end",o))}function i(e){var t,r,n=l.length;void 0===e&&(e=1);for(var i=0;i<e;++i)for(a+=(u-a)*s,f.each(function(e){e(a)}),t=0;t<n;++t)null==(r=l[t]).fx?r.x+=r.vx*=c:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=c:(r.y=r.fy,r.vy=0);return o}function h(){for(var e,t=0,r=l.length;t<r;++t){if((e=l[t]).index=t,null!=e.fx&&(e.x=e.fx),null!=e.fy&&(e.y=e.fy),isNaN(e.x)||isNaN(e.y)){var n=10*Math.sqrt(t),i=t*ga;e.x=n*Math.cos(i),e.y=n*Math.sin(i)}(isNaN(e.vx)||isNaN(e.vy))&&(e.vx=e.vy=0)}}function d(e){return e.initialize&&e.initialize(l),e}return null==l&&(l=[]),h(),o={tick:i,restart:function(){return e.restart(n),o},stop:function(){return e.stop(),o},nodes:function(e){return arguments.length?(l=e,h(),f.each(d),o):l},alpha:function(e){return arguments.length?(a=+e,o):a},alphaMin:function(e){return arguments.length?(t=+e,o):t},alphaDecay:function(e){return arguments.length?(s=+e,o):+s},alphaTarget:function(e){return arguments.length?(u=+e,o):u},velocityDecay:function(e){return arguments.length?(c=1-e,o):1-c},force:function(e,t){return 1<arguments.length?(null==t?f.remove(e):f.set(e,d(t)),o):f.get(e)},find:function(e,t,r){var n,i,o,a,s,u=0,c=l.length;for(null==r?r=1/0:r*=r,u=0;u<c;++u)(o=(n=e-(a=l[u]).x)*n+(i=t-a.y)*i)<r&&(s=a,r=o);return s},on:function(e,t){return 1<arguments.length?(r.on(e,t),o):r.on(e)}}},z.forceX=function(r){var i,o,a,n=ea(.1);function t(e){for(var t,r=0,n=i.length;r<n;++r)(t=i[r]).vx+=(a[r]-t.x)*o[r]*e}function s(){if(i){var e,t=i.length;for(o=new Array(t),a=new Array(t),e=0;e<t;++e)o[e]=isNaN(a[e]=+r(i[e],e,i))?0:+n(i[e],e,i)}}return"function"!=typeof r&&(r=ea(null==r?0:+r)),t.initialize=function(e){i=e,s()},t.strength=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),s(),t):n},t.x=function(e){return arguments.length?(r="function"==typeof e?e:ea(+e),s(),t):r},t},z.forceY=function(r){var i,o,a,n=ea(.1);function t(e){for(var t,r=0,n=i.length;r<n;++r)(t=i[r]).vy+=(a[r]-t.y)*o[r]*e}function s(){if(i){var e,t=i.length;for(o=new Array(t),a=new Array(t),e=0;e<t;++e)o[e]=isNaN(a[e]=+r(i[e],e,i))?0:+n(i[e],e,i)}}return"function"!=typeof r&&(r=ea(null==r?0:+r)),t.initialize=function(e){i=e,s()},t.strength=function(e){return arguments.length?(n="function"==typeof e?e:ea(+e),s(),t):n},t.y=function(e){return arguments.length?(r="function"==typeof e?e:ea(+e),s(),t):r},t},z.formatDefaultLocale=ka,z.formatLocale=Ca,z.formatSpecifier=xa,z.precisionFixed=Aa,z.precisionPrefix=Oa,z.precisionRound=Ra,z.geoArea=function(e){return ys.reset(),fs(e,_s),2*ys},z.geoBounds=function(e){var t,r,n,i,o,a,s;if(Ds=Is=-(Os=Rs=1/0),Bs=[],fs(e,iu),r=Bs.length){for(Bs.sort(du),t=1,o=[n=Bs[0]];t<r;++t)pu(n,(i=Bs[t])[0])||pu(n,i[1])?(hu(n[0],i[1])>hu(n[0],n[1])&&(n[1]=i[1]),hu(i[0],n[1])>hu(n[0],n[1])&&(n[0]=i[0])):o.push(n=i);for(a=-1/0,t=0,n=o[r=o.length-1];t<=r;n=i,++t)i=o[t],(s=hu(n[1],i[0]))>a&&(a=s,Os=i[0],Is=n[1])}return Bs=zs=null,Os===1/0||Rs===1/0?[[NaN,NaN],[NaN,NaN]]:[[Os,Rs],[Is,Ds]]},z.geoCentroid=function(e){Us=Xs=qs=Hs=Ys=Gs=Ws=Vs=Ks=Js=Zs=0,fs(e,mu);var t=Ks,r=Js,n=Zs,i=t*t+r*r+n*n;return i<1e-12&&(t=Gs,r=Ws,n=Vs,Xs<ja&&(t=qs,r=Hs,n=Ys),(i=t*t+r*r+n*n)<1e-12)?[NaN,NaN]:[Ga(r,t)*Xa,ns(n/es(i))*Xa]},z.geoCircle=function(){var n,i,o=Pu([0,0]),a=Pu(90),s=Pu(6),u={point:function(e,t){n.push(e=i(e,t)),e[0]*=Xa,e[1]*=Xa}};function t(){var e=o.apply(this,arguments),t=a.apply(this,arguments)*qa,r=s.apply(this,arguments)*qa;return n=[],i=ku(-e[0]*qa,-e[1]*qa,0).invert,Du(u,t,r,1),e={type:"Polygon",coordinates:[n]},n=i=null,e}return t.center=function(e){return arguments.length?(o="function"==typeof e?e:Pu([+e[0],+e[1]]),t):o},t.radius=function(e){return arguments.length?(a="function"==typeof e?e:Pu(+e),t):a},t.precision=function(e){return arguments.length?(s="function"==typeof e?e:Pu(+e),t):s},t},z.geoClipAntimeridian=Gu,z.geoClipCircle=Wu,z.geoClipExtent=function(){var t,r,n,i=0,o=0,a=960,s=500;return n={stream:function(e){return t&&r===e?t:t=Ju(i,o,a,s)(r=e)},extent:function(e){return arguments.length?(i=+e[0][0],o=+e[0][1],a=+e[1][0],s=+e[1][1],t=r=null,n):[[i,o],[a,s]]}}},z.geoClipRectangle=Ju,z.geoContains=function(e,t){return(e&&cc.hasOwnProperty(e.type)?cc[e.type]:fc)(e,t)},z.geoDistance=uc,z.geoGraticule=_c,z.geoGraticule10=function(){return _c()()},z.geoInterpolate=function(e,t){var r=e[0]*qa,n=e[1]*qa,i=t[0]*qa,o=t[1]*qa,a=Wa(n),s=Qa(n),u=Wa(o),c=Qa(o),l=a*Wa(r),f=a*Qa(r),h=u*Wa(i),d=u*Qa(i),p=2*ns(es(is(o-n)+a*u*is(i-r))),m=Qa(p),g=p?function(e){var t=Qa(e*=p)/m,r=Qa(p-e)/m,n=r*l+t*h,i=r*f+t*d,o=r*s+t*c;return[Ga(i,n)*Xa,Ga(o,es(n*n+i*i))*Xa]}:function(){return[r*Xa,n*Xa]};return g.distance=p,g},z.geoLength=oc,z.geoPath=function(t,r){var n,i,o=4.5;function a(e){return e&&("function"==typeof o&&i.pointRadius(+o.apply(this,arguments)),fs(e,n(i))),i.result()}return a.area=function(e){return fs(e,n(Ec)),Ec.result()},a.measure=function(e){return fs(e,n(dl)),dl.result()},a.bounds=function(e){return fs(e,n(Nc)),Nc.result()},a.centroid=function(e){return fs(e,n(Jc)),Jc.result()},a.projection=function(e){return arguments.length?(n=null==e?(t=null,bc):(t=e).stream,a):t},a.context=function(e){return arguments.length?(i=null==e?(r=null,new gl):new al(r=e),"function"!=typeof o&&i.pointRadius(o),a):r},a.pointRadius=function(e){return arguments.length?(o="function"==typeof e?e:(i.pointRadius(+e),+e),a):o},a.projection(t).context(r)},z.geoAlbers=Ll,z.geoAlbersUsa=function(){var t,r,i,o,a,n,s=Ll(),u=Dl().rotate([154,0]).center([-2,58.5]).parallels([55,65]),c=Dl().rotate([157,0]).center([-3,19.9]).parallels([8,18]),l={point:function(e,t){n=[e,t]}};function f(e){var t=e[0],r=e[1];return n=null,i.point(t,r),n||(o.point(t,r),n)||(a.point(t,r),n)}function h(){return t=r=null,f}return f.invert=function(e){var t=s.scale(),r=s.translate(),n=(e[0]-r[0])/t,i=(e[1]-r[1])/t;return(.12<=i&&i<.234&&-.425<=n&&n<-.214?u:.166<=i&&i<.234&&-.214<=n&&n<-.115?c:s).invert(e)},f.stream=function(e){return t&&r===e?t:t=function(n){var i=n.length;return{point:function(e,t){for(var r=-1;++r<i;)n[r].point(e,t)},sphere:function(){for(var e=-1;++e<i;)n[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)n[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)n[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)n[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)n[e].polygonEnd()}}}([s.stream(r=e),u.stream(e),c.stream(e)])},f.precision=function(e){return arguments.length?(s.precision(e),u.precision(e),c.precision(e),h()):s.precision()},f.scale=function(e){return arguments.length?(s.scale(e),u.scale(.35*e),c.scale(e),f.translate(s.translate())):s.scale()},f.translate=function(e){if(!arguments.length)return s.translate();var t=s.scale(),r=+e[0],n=+e[1];return i=s.translate(e).clipExtent([[r-.455*t,n-.238*t],[r+.455*t,n+.238*t]]).stream(l),o=u.translate([r-.307*t,n+.201*t]).clipExtent([[r-.425*t+ja,n+.12*t+ja],[r-.214*t-ja,n+.234*t-ja]]).stream(l),a=c.translate([r-.205*t,n+.212*t]).clipExtent([[r-.214*t+ja,n+.166*t+ja],[r-.115*t-ja,n+.234*t-ja]]).stream(l),h()},f.fitExtent=function(e,t){return xl(f,e,t)},f.fitSize=function(e,t){return wl(f,e,t)},f.fitWidth=function(e,t){return Tl(f,e,t)},f.fitHeight=function(e,t){return Sl(f,e,t)},f.scale(1070)},z.geoAzimuthalEqualArea=function(){return Al(Fl).scale(124.75).clipAngle(179.999)},z.geoAzimuthalEqualAreaRaw=Fl,z.geoAzimuthalEquidistant=function(){return Al(Bl).scale(79.4188).clipAngle(179.999)},z.geoAzimuthalEquidistantRaw=Bl,z.geoConicConformal=function(){return Rl(ql).scale(109.5).parallels([30,30])},z.geoConicConformalRaw=ql,z.geoConicEqualArea=Dl,z.geoConicEqualAreaRaw=Il,z.geoConicEquidistant=function(){return Rl(Yl).scale(131.154).center([0,13.9389])},z.geoConicEquidistantRaw=Yl,z.geoEqualEarth=function(){return Al(Zl).scale(177.158)},z.geoEqualEarthRaw=Zl,z.geoEquirectangular=function(){return Al(Hl).scale(152.63)},z.geoEquirectangularRaw=Hl,z.geoGnomonic=function(){return Al(Ql).scale(144.049).clipAngle(60)},z.geoGnomonicRaw=Ql,z.geoIdentity=function(){var t,r,n,i,o,a,s=1,u=0,c=0,l=1,f=1,h=bc,d=null,p=bc;function m(){return i=o=null,a}return a={stream:function(e){return i&&o===e?i:i=h(p(o=e))},postclip:function(e){return arguments.length?(p=e,d=t=r=n=null,m()):p},clipExtent:function(e){return arguments.length?(p=null==e?(d=t=r=n=null,bc):Ju(d=+e[0][0],t=+e[0][1],r=+e[1][0],n=+e[1][1]),m()):null==d?null:[[d,t],[r,n]]},scale:function(e){return arguments.length?(h=$l((s=+e)*l,s*f,u,c),m()):s},translate:function(e){return arguments.length?(h=$l(s*l,s*f,u=+e[0],c=+e[1]),m()):[u,c]},reflectX:function(e){return arguments.length?(h=$l(s*(l=e?-1:1),s*f,u,c),m()):l<0},reflectY:function(e){return arguments.length?(h=$l(s*l,s*(f=e?-1:1),u,c),m()):f<0},fitExtent:function(e,t){return xl(a,e,t)},fitSize:function(e,t){return wl(a,e,t)},fitWidth:function(e,t){return Tl(a,e,t)},fitHeight:function(e,t){return Sl(a,e,t)}}},z.geoProjection=Al,z.geoProjectionMutator=Ol,z.geoMercator=function(){return Ul(zl).scale(961/Ua)},z.geoMercatorRaw=zl,z.geoNaturalEarth1=function(){return Al(ef).scale(175.295)},z.geoNaturalEarth1Raw=ef,z.geoOrthographic=function(){return Al(tf).scale(249.5).clipAngle(90+ja)},z.geoOrthographicRaw=tf,z.geoStereographic=function(){return Al(rf).scale(250).clipAngle(142)},z.geoStereographicRaw=rf,z.geoTransverseMercator=function(){var e=Ul(nf),t=e.center,r=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?r([e[0],e[1],2<e.length?e[2]+90:90]):[(e=r())[0],e[1],e[2]-90]},r([0,0,90]).scale(159.155)},z.geoTransverseMercatorRaw=nf,z.geoRotation=Iu,z.geoStream=fs,z.geoTransform=function(e){return{stream:yl(e)}},z.cluster=function(){var s=of,u=1,c=1,l=!1;function t(t){var r,n=0;t.eachAfter(function(e){var t=e.children;t?(e.x=function(e){return e.reduce(af,0)/e.length}(t),e.y=function(e){return 1+e.reduce(sf,0)}(t)):(e.x=r?n+=s(e,r):0,e.y=0,r=e)});var e=function(e){for(var t;t=e.children;)e=t[0];return e}(t),i=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(t),o=e.x-s(e,i)/2,a=i.x+s(i,e)/2;return t.eachAfter(l?function(e){e.x=(e.x-t.x)*u,e.y=(t.y-e.y)*c}:function(e){e.x=(e.x-o)/(a-o)*u,e.y=(1-(t.y?e.y/t.y:1))*c})}return t.separation=function(e){return arguments.length?(s=e,t):s},t.size=function(e){return arguments.length?(l=!1,u=+e[0],c=+e[1],t):l?null:[u,c]},t.nodeSize=function(e){return arguments.length?(l=!0,u=+e[0],c=+e[1],t):l?[u,c]:null},t},z.hierarchy=cf,z.pack=function(){var t=null,r=1,n=1,i=kf;function o(e){return e.x=r/2,e.y=n/2,t?e.eachBefore(Rf(t)).eachAfter(If(i,.5)).eachBefore(Df(1)):e.eachBefore(Rf(Of)).eachAfter(If(kf,1)).eachAfter(If(i,e.r/Math.min(r,n))).eachBefore(Df(Math.min(r,n)/(2*e.r))),e}return o.radius=function(e){return arguments.length?(t=function(e){return null==e?null:Cf(e)}(e),o):t},o.size=function(e){return arguments.length?(r=+e[0],n=+e[1],o):[r,n]},o.padding=function(e){return arguments.length?(i="function"==typeof e?e:Af(+e),o):i},o},z.packSiblings=function(e){return Ef(e),e},z.packEnclose=mf,z.partition=function(){var r=1,n=1,s=0,i=!1;function t(e){var t=e.height+1;return e.x0=e.y0=s,e.x1=r,e.y1=n/t,e.eachBefore(function(o,a){return function(e){e.children&&Nf(e,e.x0,o*(e.depth+1)/a,e.x1,o*(e.depth+2)/a);var t=e.x0,r=e.y0,n=e.x1-s,i=e.y1-s;n<t&&(t=n=(t+n)/2),i<r&&(r=i=(r+i)/2),e.x0=t,e.y0=r,e.x1=n,e.y1=i}}(n,t)),i&&e.eachBefore(Lf),e}return t.round=function(e){return arguments.length?(i=!!e,t):i},t.size=function(e){return arguments.length?(r=+e[0],n=+e[1],t):[r,n]},t.padding=function(e){return arguments.length?(s=+e,t):s},t},z.stratify=function(){var f=Bf,h=zf;function t(e){var t,r,n,i,o,a,s,u=e.length,c=new Array(u),l={};for(r=0;r<u;++r)t=e[r],o=c[r]=new df(t),null!=(a=f(t,r,e))&&(a+="")&&(l[s="$"+(o.id=a)]=s in l?Ff:o);for(r=0;r<u;++r)if(o=c[r],null!=(a=h(e[r],r,e))&&(a+="")){if(!(i=l["$"+a]))throw new Error("missing: "+a);if(i===Ff)throw new Error("ambiguous: "+a);i.children?i.children.push(o):i.children=[o],o.parent=i}else{if(n)throw new Error("multiple roots");n=o}if(!n)throw new Error("no root");if(n.parent=jf,n.eachBefore(function(e){e.depth=e.parent.depth+1,--u}).eachBefore(hf),n.parent=null,0<u)throw new Error("cycle");return n}return t.id=function(e){return arguments.length?(f=Cf(e),t):f},t.parentId=function(e){return arguments.length?(h=Cf(e),t):h},t},z.tree=function(){var _=Uf,c=1,l=1,f=null;function t(e){var t=function(e){for(var t,r,n,i,o,a=new Hf(e,0),s=[a];t=s.pop();)if(n=t._.children)for(t.children=new Array(o=n.length),i=o-1;0<=i;--i)s.push(r=t.children[i]=new Hf(n[i],i)),r.parent=t;return(a.parent=new Hf(null,0)).children=[a],a}(e);if(t.eachAfter(h),t.parent.m=-t.z,t.eachBefore(d),f)e.eachBefore(p);else{var r=e,n=e,i=e;e.eachBefore(function(e){e.x<r.x&&(r=e),e.x>n.x&&(n=e),e.depth>i.depth&&(i=e)});var o=r===n?1:_(r,n)/2,a=o-r.x,s=c/(n.x+o+a),u=l/(i.depth||1);e.eachBefore(function(e){e.x=(e.x+a)*s,e.y=e.depth*u})}return e}function h(e){var t=e.children,r=e.parent.children,n=e.i?r[e.i-1]:null;if(t){!function(e){for(var t,r=0,n=0,i=e.children,o=i.length;0<=--o;)(t=i[o]).z+=r,t.m+=r,r+=t.s+(n+=t.c)}(e);var i=(t[0].z+t[t.length-1].z)/2;n?(e.z=n.z+_(e._,n._),e.m=e.z-i):e.z=i}else n&&(e.z=n.z+_(e._,n._));e.parent.A=function(e,t,r){if(t){for(var n,i=e,o=e,a=t,s=i.parent.children[0],u=i.m,c=o.m,l=a.m,f=s.m;a=qf(a),i=Xf(i),a&&i;)s=Xf(s),(o=qf(o)).a=e,0<(n=a.z+l-i.z-u+_(a._,i._))&&(v=e,y=r,h=(g=a).a.parent===v.parent?g.a:y,m=(p=n)/((d=e).i-h.i),d.c-=m,d.s+=p,h.c+=m,d.z+=p,d.m+=p,u+=n,c+=n),l+=a.m,u+=i.m,f+=s.m,c+=o.m;a&&!qf(o)&&(o.t=a,o.m+=l-c),i&&!Xf(s)&&(s.t=i,s.m+=u-f,r=e)}var h,d,p,m,g,v,y;return r}(e,n,e.parent.A||r[0])}function d(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function p(e){e.x*=c,e.y=e.depth*l}return t.separation=function(e){return arguments.length?(_=e,t):_},t.size=function(e){return arguments.length?(f=!1,c=+e[0],l=+e[1],t):f?null:[c,l]},t.nodeSize=function(e){return arguments.length?(f=!0,c=+e[0],l=+e[1],t):f?[c,l]:null},t},z.treemap=function(){var a=Vf,t=!1,r=1,n=1,s=[0],u=kf,c=kf,l=kf,f=kf,h=kf;function i(e){return e.x0=e.y0=0,e.x1=r,e.y1=n,e.eachBefore(o),s=[0],t&&e.eachBefore(Lf),e}function o(e){var t=s[e.depth],r=e.x0+t,n=e.y0+t,i=e.x1-t,o=e.y1-t;i<r&&(r=i=(r+i)/2),o<n&&(n=o=(n+o)/2),e.x0=r,e.y0=n,e.x1=i,e.y1=o,e.children&&(t=s[e.depth+1]=u(e)/2,r+=h(e)-t,n+=c(e)-t,(i-=l(e)-t)<r&&(r=i=(r+i)/2),(o-=f(e)-t)<n&&(n=o=(n+o)/2),a(e,r,n,i,o))}return i.round=function(e){return arguments.length?(t=!!e,i):t},i.size=function(e){return arguments.length?(r=+e[0],n=+e[1],i):[r,n]},i.tile=function(e){return arguments.length?(a=Cf(e),i):a},i.padding=function(e){return arguments.length?i.paddingInner(e).paddingOuter(e):i.paddingInner()},i.paddingInner=function(e){return arguments.length?(u="function"==typeof e?e:Af(+e),i):u},i.paddingOuter=function(e){return arguments.length?i.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):i.paddingTop()},i.paddingTop=function(e){return arguments.length?(c="function"==typeof e?e:Af(+e),i):c},i.paddingRight=function(e){return arguments.length?(l="function"==typeof e?e:Af(+e),i):l},i.paddingBottom=function(e){return arguments.length?(f="function"==typeof e?e:Af(+e),i):f},i.paddingLeft=function(e){return arguments.length?(h="function"==typeof e?e:Af(+e),i):h},i},z.treemapBinary=function(e,t,r,n,i){var o,a,y=e.children,s=y.length,_=new Array(s+1);for(_[0]=a=o=0;o<s;++o)_[o+1]=a+=y[o].value;!function e(t,r,n,i,o,a,s){if(r-1<=t){var u=y[t];return u.x0=i,u.y0=o,u.x1=a,void(u.y1=s)}for(var c=_[t],l=n/2+c,f=t+1,h=r-1;f<h;){var d=f+h>>>1;_[d]<l?f=1+d:h=d}l-_[f-1]<_[f]-l&&t+1<f&&--f;var p=_[f]-c,m=n-p;if(s-o<a-i){var g=(i*m+a*p)/n;e(t,f,p,i,o,g,s),e(f,r,m,g,o,a,s)}else{var v=(o*m+s*p)/n;e(t,f,p,i,o,a,v),e(f,r,m,i,v,a,s)}}(0,s,e.value,t,r,n,i)},z.treemapDice=Nf,z.treemapSlice=Yf,z.treemapSliceDice=function(e,t,r,n,i){(1&e.depth?Yf:Nf)(e,t,r,n,i)},z.treemapSquarify=Vf,z.treemapResquarify=Kf,z.interpolate=gr,z.interpolateArray=cr,z.interpolateBasis=Qt,z.interpolateBasisClosed=$t,z.interpolateDate=lr,z.interpolateDiscrete=function(t){var r=t.length;return function(e){return t[Math.max(0,Math.min(r-1,Math.floor(e*r)))]}},z.interpolateHue=function(e,t){var r=rr(+e,+t);return function(e){var t=r(e);return t-360*Math.floor(t/360)}},z.interpolateNumber=fr,z.interpolateObject=hr,z.interpolateRound=vr,z.interpolateString=mr,z.interpolateTransformCss=Pr,z.interpolateTransformSvg=Er,z.interpolateZoom=Ir,z.interpolateRgb=or,z.interpolateRgbBasis=sr,z.interpolateRgbBasisClosed=ur,z.interpolateHsl=Lr,z.interpolateHslLong=Nr,z.interpolateLab=function(t,e){var r=ir((t=It(t)).l,(e=It(e)).l),n=ir(t.a,e.a),i=ir(t.b,e.b),o=ir(t.opacity,e.opacity);return function(e){return t.l=r(e),t.a=n(e),t.b=i(e),t.opacity=o(e),t+""}},z.interpolateHcl=Fr,z.interpolateHclLong=Br,z.interpolateCubehelix=Ur,z.interpolateCubehelixLong=Xr,z.piecewise=function(e,t){for(var r=0,n=t.length-1,i=t[0],o=new Array(n<0?0:n);r<n;)o[r]=e(i,i=t[++r]);return function(e){var t=Math.max(0,Math.min(n-1,Math.floor(e*=n)));return o[t](e-t)}},z.quantize=function(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e(n/(t-1));return r},z.path=Yi,z.polygonArea=function(e){for(var t,r=-1,n=e.length,i=e[n-1],o=0;++r<n;)t=i,i=e[r],o+=t[1]*i[0]-t[0]*i[1];return o/2},z.polygonCentroid=function(e){for(var t,r,n=-1,i=e.length,o=0,a=0,s=e[i-1],u=0;++n<i;)t=s,s=e[n],u+=r=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*r,a+=(t[1]+s[1])*r;return[o/(u*=3),a/u]},z.polygonHull=function(e){if((r=e.length)<3)return null;var t,r,n=new Array(r),i=new Array(r);for(t=0;t<r;++t)n[t]=[+e[t][0],+e[t][1],t];for(n.sort(Jf),t=0;t<r;++t)i[t]=[n[t][0],-n[t][1]];var o=Zf(n),a=Zf(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],c=[];for(t=o.length-1;0<=t;--t)c.push(e[n[o[t]][2]]);for(t=+s;t<a.length-u;++t)c.push(e[n[a[t]][2]]);return c},z.polygonContains=function(e,t){for(var r,n,i=e.length,o=e[i-1],a=t[0],s=t[1],u=o[0],c=o[1],l=!1,f=0;f<i;++f)r=(o=e[f])[0],s<(n=o[1])!=s<c&&a<(u-r)*(s-n)/(c-n)+r&&(l=!l),u=r,c=n;return l},z.polygonLength=function(e){for(var t,r,n=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++n<i;)t=a,r=s,t-=a=(o=e[n])[0],r-=s=o[1],u+=Math.sqrt(t*t+r*r);return u},z.quadtree=aa,z.randomUniform=$f,z.randomNormal=eh,z.randomLogNormal=th,z.randomBates=nh,z.randomIrwinHall=rh,z.randomExponential=ih,z.scaleBand=hh,z.scalePoint=function(){return function e(t){var r=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(r())},t}(hh.apply(null,arguments).paddingInner(1))},z.scaleIdentity=function e(t){var r;function n(e){return isNaN(e=+e)?r:e}return(n.invert=n).domain=n.range=function(e){return arguments.length?(t=uh.call(e,dh),n):t.slice()},n.unknown=function(e){return arguments.length?(r=e,n):r},n.copy=function(){return e(t).unknown(r)},t=arguments.length?uh.call(t,dh):[0,1],Sh(n)},z.scaleLinear=function e(){var t=wh(mh,mh);return t.copy=function(){return bh(t,e())},oh.apply(t,arguments),Sh(t)},z.scaleLog=function e(){var t=Rh(xh()).domain([1,10]);return t.copy=function(){return bh(t,e()).base(t.base())},oh.apply(t,arguments),t},z.scaleSymlog=function e(){var t=Lh(xh());return t.copy=function(){return bh(t,e()).constant(t.constant())},oh.apply(t,arguments)},z.scaleOrdinal=fh,z.scaleImplicit=lh,z.scalePow=zh,z.scaleSqrt=function(){return zh.apply(null,arguments).exponent(.5)},z.scaleQuantile=function e(){var t,i=[],r=[],n=[];function o(){var e=0,t=Math.max(1,r.length);for(n=new Array(t-1);++e<t;)n[e-1]=b(i,e/t);return a}function a(e){return isNaN(e=+e)?t:r[m(n,e)]}return a.invertExtent=function(e){var t=r.indexOf(e);return t<0?[NaN,NaN]:[0<t?n[t-1]:i[0],t<n.length?n[t]:i[i.length-1]]},a.domain=function(e){if(!arguments.length)return i.slice();i=[];for(var t,r=0,n=e.length;r<n;++r)null==(t=e[r])||isNaN(t=+t)||i.push(t);return i.sort(s),o()},a.range=function(e){return arguments.length?(r=ch.call(e),o()):r.slice()},a.unknown=function(e){return arguments.length?(t=e,a):t},a.quantiles=function(){return n.slice()},a.copy=function(){return e().domain(i).range(r).unknown(t)},oh.apply(a,arguments)},z.scaleQuantize=function e(){var t,r=0,n=1,i=1,o=[.5],a=[0,1];function s(e){return e<=e?a[m(o,e,0,i)]:t}function u(){var e=-1;for(o=new Array(i);++e<i;)o[e]=((e+1)*n-(e-i)*r)/(i+1);return s}return s.domain=function(e){return arguments.length?(r=+e[0],n=+e[1],u()):[r,n]},s.range=function(e){return arguments.length?(i=(a=ch.call(e)).length-1,u()):a.slice()},s.invertExtent=function(e){var t=a.indexOf(e);return t<0?[NaN,NaN]:t<1?[r,o[0]]:i<=t?[o[i-1],n]:[o[t-1],o[t]]},s.unknown=function(e){return arguments.length&&(t=e),s},s.thresholds=function(){return o.slice()},s.copy=function(){return e().domain([r,n]).range(a).unknown(t)},oh.apply(Sh(s),arguments)},z.scaleThreshold=function e(){var t,r=[.5],n=[0,1],i=1;function o(e){return e<=e?n[m(r,e,0,i)]:t}return o.domain=function(e){return arguments.length?(r=ch.call(e),i=Math.min(r.length,n.length-1),o):r.slice()},o.range=function(e){return arguments.length?(n=ch.call(e),i=Math.min(r.length,n.length-1),o):n.slice()},o.invertExtent=function(e){var t=n.indexOf(e);return[r[t-1],r[t]]},o.unknown=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e().domain(r).range(n).unknown(t)},oh.apply(o,arguments)},z.scaleTime=function(){return oh.apply(ym(vd,md,td,Qh,Jh,Vh,Gh,Hh,z.timeFormat).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)},z.scaleUtc=function(){return oh.apply(ym(Xd,zd,Pd,Td,xd,_d,Gh,Hh,z.utcFormat).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)},z.scaleSequential=function e(){var t=Sh(_m()(mh));return t.copy=function(){return bm(t,e())},ah.apply(t,arguments)},z.scaleSequentialLog=function e(){var t=Rh(_m()).domain([1,10]);return t.copy=function(){return bm(t,e()).base(t.base())},ah.apply(t,arguments)},z.scaleSequentialPow=xm,z.scaleSequentialSqrt=function(){return xm.apply(null,arguments).exponent(.5)},z.scaleSequentialSymlog=function e(){var t=Lh(_m());return t.copy=function(){return bm(t,e()).constant(t.constant())},ah.apply(t,arguments)},z.scaleSequentialQuantile=function e(){var i=[],t=mh;function o(e){if(!isNaN(e=+e))return t((m(i,e)-1)/(i.length-1))}return o.domain=function(e){if(!arguments.length)return i.slice();i=[];for(var t,r=0,n=e.length;r<n;++r)null==(t=e[r])||isNaN(t=+t)||i.push(t);return i.sort(s),o},o.interpolator=function(e){return arguments.length?(t=e,o):t},o.copy=function(){return e(t).domain(i)},ah.apply(o,arguments)},z.scaleDiverging=function e(){var t=Sh(wm()(mh));return t.copy=function(){return bm(t,e())},ah.apply(t,arguments)},z.scaleDivergingLog=function e(){var t=Rh(wm()).domain([.1,1,10]);return t.copy=function(){return bm(t,e()).base(t.base())},ah.apply(t,arguments)},z.scaleDivergingPow=Tm,z.scaleDivergingSqrt=function(){return Tm.apply(null,arguments).exponent(.5)},z.scaleDivergingSymlog=function e(){var t=Lh(wm());return t.copy=function(){return bm(t,e()).constant(t.constant())},ah.apply(t,arguments)},z.tickFormat=Th,z.schemeCategory10=Mm,z.schemeAccent=Pm,z.schemeDark2=Em,z.schemePaired=Cm,z.schemePastel1=km,z.schemePastel2=Am,z.schemeSet1=Om,z.schemeSet2=Rm,z.schemeSet3=Im,z.interpolateBrBG=Nm,z.schemeBrBG=Lm,z.interpolatePRGn=Fm,z.schemePRGn=jm,z.interpolatePiYG=zm,z.schemePiYG=Bm,z.interpolatePuOr=Xm,z.schemePuOr=Um,z.interpolateRdBu=Hm,z.schemeRdBu=qm,z.interpolateRdGy=Gm,z.schemeRdGy=Ym,z.interpolateRdYlBu=Vm,z.schemeRdYlBu=Wm,z.interpolateRdYlGn=Jm,z.schemeRdYlGn=Km,z.interpolateSpectral=Qm,z.schemeSpectral=Zm,z.interpolateBuGn=eg,z.schemeBuGn=$m,z.interpolateBuPu=rg,z.schemeBuPu=tg,z.interpolateGnBu=ig,z.schemeGnBu=ng,z.interpolateOrRd=ag,z.schemeOrRd=og,z.interpolatePuBuGn=ug,z.schemePuBuGn=sg,z.interpolatePuBu=lg,z.schemePuBu=cg,z.interpolatePuRd=hg,z.schemePuRd=fg,z.interpolateRdPu=pg,z.schemeRdPu=dg,z.interpolateYlGnBu=gg,z.schemeYlGnBu=mg,z.interpolateYlGn=yg,z.schemeYlGn=vg,z.interpolateYlOrBr=bg,z.schemeYlOrBr=_g,z.interpolateYlOrRd=wg,z.schemeYlOrRd=xg,z.interpolateBlues=Sg,z.schemeBlues=Tg,z.interpolateGreens=Pg,z.schemeGreens=Mg,z.interpolateGreys=Cg,z.schemeGreys=Eg,z.interpolatePurples=Ag,z.schemePurples=kg,z.interpolateReds=Rg,z.schemeReds=Og,z.interpolateOranges=Dg,z.schemeOranges=Ig,z.interpolateCubehelixDefault=Lg,z.interpolateRainbow=function(e){(e<0||1<e)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return Fg.h=360*e-100,Fg.s=1.5-1.5*t,Fg.l=.8-.9*t,Fg+""},z.interpolateWarm=Ng,z.interpolateCool=jg,z.interpolateSinebow=function(e){var t;return e=(.5-e)*Math.PI,Bg.r=255*(t=Math.sin(e))*t,Bg.g=255*(t=Math.sin(e+zg))*t,Bg.b=255*(t=Math.sin(e+Ug))*t,Bg+""},z.interpolateViridis=qg,z.interpolateMagma=Hg,z.interpolateInferno=Yg,z.interpolatePlasma=Gg,z.create=function(e){return Re(K(e).call(document.documentElement))},z.creator=K,z.local=De,z.matcher=ee,z.mouse=Fe,z.namespace=V,z.namespaces=W,z.clientPoint=je,z.select=Re,z.selectAll=function(e){return"string"==typeof e?new Ae([document.querySelectorAll(e)],[document.documentElement]):new Ae([null==e?[]:e],ke)},z.selection=Oe,z.selector=Z,z.selectorAll=$,z.style=ue,z.touch=Be,z.touches=function(e,t){null==t&&(t=Ne().touches);for(var r=0,n=t?t.length:0,i=new Array(n);r<n;++r)i[r]=je(e,t[r]);return i},z.window=se,z.customEvent=Ee,z.arc=function(){var F=av,B=sv,z=Wg(0),U=null,X=uv,q=cv,H=lv,Y=null;function t(){var e,t,r=+F.apply(this,arguments),n=+B.apply(this,arguments),i=X.apply(this,arguments)-nv,o=q.apply(this,arguments)-nv,a=Vg(o-i),s=i<o;if(Y||(Y=e=Yi()),n<r&&(t=n,n=r,r=t),tv<n)if(iv-tv<a)Y.moveTo(n*Jg(i),n*$g(i)),Y.arc(0,0,n,i,o,!s),tv<r&&(Y.moveTo(r*Jg(o),r*$g(o)),Y.arc(0,0,r,o,i,s));else{var u,c,l=i,f=o,h=i,d=o,p=a,m=a,g=H.apply(this,arguments)/2,v=tv<g&&(U?+U.apply(this,arguments):ev(r*r+n*n)),y=Qg(Vg(n-r)/2,+z.apply(this,arguments)),_=y,b=y;if(tv<v){var x=ov(v/r*$g(g)),w=ov(v/n*$g(g));(p-=2*x)>tv?(h+=x*=s?1:-1,d-=x):(p=0,h=d=(i+o)/2),(m-=2*w)>tv?(l+=w*=s?1:-1,f-=w):(m=0,l=f=(i+o)/2)}var T=n*Jg(l),S=n*$g(l),M=r*Jg(d),P=r*$g(d);if(tv<y){var E,C=n*Jg(f),k=n*$g(f),A=r*Jg(h),O=r*$g(h);if(a<rv&&(E=function(e,t,r,n,i,o,a,s){var u=r-e,c=n-t,l=a-i,f=s-o,h=f*u-l*c;if(!(h*h<tv))return[e+(h=(l*(t-o)-f*(e-i))/h)*u,t+h*c]}(T,S,A,O,C,k,M,P))){var R=T-E[0],I=S-E[1],D=C-E[0],L=k-E[1],N=1/$g(function(e){return 1<e?0:e<-1?rv:Math.acos(e)}((R*D+I*L)/(ev(R*R+I*I)*ev(D*D+L*L)))/2),j=ev(E[0]*E[0]+E[1]*E[1]);_=Qg(y,(r-j)/(N-1)),b=Qg(y,(n-j)/(1+N))}}tv<m?tv<b?(u=fv(A,O,T,S,n,b,s),c=fv(C,k,M,P,n,b,s),Y.moveTo(u.cx+u.x01,u.cy+u.y01),b<y?Y.arc(u.cx,u.cy,b,Kg(u.y01,u.x01),Kg(c.y01,c.x01),!s):(Y.arc(u.cx,u.cy,b,Kg(u.y01,u.x01),Kg(u.y11,u.x11),!s),Y.arc(0,0,n,Kg(u.cy+u.y11,u.cx+u.x11),Kg(c.cy+c.y11,c.cx+c.x11),!s),Y.arc(c.cx,c.cy,b,Kg(c.y11,c.x11),Kg(c.y01,c.x01),!s))):(Y.moveTo(T,S),Y.arc(0,0,n,l,f,!s)):Y.moveTo(T,S),tv<r&&tv<p?tv<_?(u=fv(M,P,C,k,r,-_,s),c=fv(T,S,A,O,r,-_,s),Y.lineTo(u.cx+u.x01,u.cy+u.y01),_<y?Y.arc(u.cx,u.cy,_,Kg(u.y01,u.x01),Kg(c.y01,c.x01),!s):(Y.arc(u.cx,u.cy,_,Kg(u.y01,u.x01),Kg(u.y11,u.x11),!s),Y.arc(0,0,r,Kg(u.cy+u.y11,u.cx+u.x11),Kg(c.cy+c.y11,c.cx+c.x11),s),Y.arc(c.cx,c.cy,_,Kg(c.y11,c.x11),Kg(c.y01,c.x01),!s))):Y.arc(0,0,r,d,h,s):Y.lineTo(M,P)}else Y.moveTo(0,0);if(Y.closePath(),e)return Y=null,e+""||null}return t.centroid=function(){var e=(+F.apply(this,arguments)+ +B.apply(this,arguments))/2,t=(+X.apply(this,arguments)+ +q.apply(this,arguments))/2-rv/2;return[Jg(t)*e,$g(t)*e]},t.innerRadius=function(e){return arguments.length?(F="function"==typeof e?e:Wg(+e),t):F},t.outerRadius=function(e){return arguments.length?(B="function"==typeof e?e:Wg(+e),t):B},t.cornerRadius=function(e){return arguments.length?(z="function"==typeof e?e:Wg(+e),t):z},t.padRadius=function(e){return arguments.length?(U=null==e?null:"function"==typeof e?e:Wg(+e),t):U},t.startAngle=function(e){return arguments.length?(X="function"==typeof e?e:Wg(+e),t):X},t.endAngle=function(e){return arguments.length?(q="function"==typeof e?e:Wg(+e),t):q},t.padAngle=function(e){return arguments.length?(H="function"==typeof e?e:Wg(+e),t):H},t.context=function(e){return arguments.length?(Y=null==e?null:e,t):Y},t},z.area=vv,z.line=gv,z.pie=function(){var p=_v,m=yv,g=null,v=Wg(0),y=Wg(iv),_=Wg(0);function t(r){var e,t,n,i,o,a=r.length,s=0,u=new Array(a),c=new Array(a),l=+v.apply(this,arguments),f=Math.min(iv,Math.max(-iv,y.apply(this,arguments)-l)),h=Math.min(Math.abs(f)/a,_.apply(this,arguments)),d=h*(f<0?-1:1);for(e=0;e<a;++e)0<(o=c[u[e]=e]=+p(r[e],e,r))&&(s+=o);for(null!=m?u.sort(function(e,t){return m(c[e],c[t])}):null!=g&&u.sort(function(e,t){return g(r[e],r[t])}),e=0,n=s?(f-a*d)/s:0;e<a;++e,l=i)t=u[e],i=l+(0<(o=c[t])?o*n:0)+d,c[t]={data:r[t],index:e,value:o,startAngle:l,endAngle:i,padAngle:h};return c}return t.value=function(e){return arguments.length?(p="function"==typeof e?e:Wg(+e),t):p},t.sortValues=function(e){return arguments.length?(m=e,g=null,t):m},t.sort=function(e){return arguments.length?(g=e,m=null,t):g},t.startAngle=function(e){return arguments.length?(v="function"==typeof e?e:Wg(+e),t):v},t.endAngle=function(e){return arguments.length?(y="function"==typeof e?e:Wg(+e),t):y},t.padAngle=function(e){return arguments.length?(_="function"==typeof e?e:Wg(+e),t):_},t},z.areaRadial=Mv,z.radialArea=Mv,z.lineRadial=Sv,z.radialLine=Sv,z.pointRadial=Pv,z.linkHorizontal=function(){return Av(Ov)},z.linkVertical=function(){return Av(Rv)},z.linkRadial=function(){var e=Av(Iv);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e},z.symbol=function(){var t=Wg(Dv),r=Wg(64),n=null;function i(){var e;if(n||(n=e=Yi()),t.apply(this,arguments).draw(n,+r.apply(this,arguments)),e)return n=null,e+""||null}return i.type=function(e){return arguments.length?(t="function"==typeof e?e:Wg(e),i):t},i.size=function(e){return arguments.length?(r="function"==typeof e?e:Wg(+e),i):r},i.context=function(e){return arguments.length?(n=null==e?null:e,i):n},i},z.symbols=Jv,z.symbolCircle=Dv,z.symbolCross=Lv,z.symbolDiamond=Fv,z.symbolSquare=qv,z.symbolStar=Xv,z.symbolTriangle=Yv,z.symbolWye=Kv,z.curveBasisClosed=function(e){return new ey(e)},z.curveBasisOpen=function(e){return new ty(e)},z.curveBasis=function(e){return new $v(e)},z.curveBundle=ny,z.curveCardinalClosed=uy,z.curveCardinalOpen=ly,z.curveCardinal=ay,z.curveCatmullRomClosed=my,z.curveCatmullRomOpen=vy,z.curveCatmullRom=dy,z.curveLinearClosed=function(e){return new yy(e)},z.curveLinear=dv,z.curveMonotoneX=function(e){return new Ty(e)},z.curveMonotoneY=function(e){return new Sy(e)},z.curveNatural=function(e){return new Py(e)},z.curveStep=function(e){return new Cy(e,.5)},z.curveStepAfter=function(e){return new Cy(e,1)},z.curveStepBefore=function(e){return new Cy(e,0)},z.stack=function(){var f=Wg([]),h=Ay,d=ky,p=Oy;function t(e){var t,r,n=f.apply(this,arguments),i=e.length,o=n.length,a=new Array(o);for(t=0;t<o;++t){for(var s,u=n[t],c=a[t]=new Array(i),l=0;l<i;++l)c[l]=s=[0,+p(e[l],u,l,e)],s.data=e[l];c.key=u}for(t=0,r=h(a);t<o;++t)a[r[t]].index=t;return d(a,r),a}return t.keys=function(e){return arguments.length?(f="function"==typeof e?e:Wg(Ev.call(e)),t):f},t.value=function(e){return arguments.length?(p="function"==typeof e?e:Wg(+e),t):p},t.order=function(e){return arguments.length?(h=null==e?Ay:"function"==typeof e?e:Wg(Ev.call(e)),t):h},t.offset=function(e){return arguments.length?(d=null==e?ky:e,t):d},t},z.stackOffsetExpand=function(e,t){if(0<(n=e.length)){for(var r,n,i,o=0,a=e[0].length;o<a;++o){for(i=r=0;r<n;++r)i+=e[r][o][1]||0;if(i)for(r=0;r<n;++r)e[r][o][1]/=i}ky(e,t)}},z.stackOffsetDiverging=function(e,t){if(1<(s=e.length))for(var r,n,i,o,a,s,u=0,c=e[t[0]].length;u<c;++u)for(o=a=0,r=0;r<s;++r)0<=(i=(n=e[t[r]][u])[1]-n[0])?(n[0]=o,n[1]=o+=i):i<0?(n[1]=a,n[0]=a+=i):n[0]=o},z.stackOffsetNone=ky,z.stackOffsetSilhouette=function(e,t){if(0<(r=e.length)){for(var r,n=0,i=e[t[0]],o=i.length;n<o;++n){for(var a=0,s=0;a<r;++a)s+=e[a][n][1]||0;i[n][1]+=i[n][0]=-s/2}ky(e,t)}},z.stackOffsetWiggle=function(e,t){if(0<(i=e.length)&&0<(n=(r=e[t[0]]).length)){for(var r,n,i,o=0,a=1;a<n;++a){for(var s=0,u=0,c=0;s<i;++s){for(var l=e[t[s]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,d=0;d<s;++d){var p=e[t[d]];h+=(p[a][1]||0)-(p[a-1][1]||0)}u+=f,c+=h*f}r[a-1][1]+=r[a-1][0]=o,u&&(o-=c/u)}r[a-1][1]+=r[a-1][0]=o,ky(e,t)}},z.stackOrderAppearance=Ry,z.stackOrderAscending=Dy,z.stackOrderDescending=function(e){return Dy(e).reverse()},z.stackOrderInsideOut=function(e){var t,r,n=e.length,i=e.map(Ly),o=Ry(e),a=0,s=0,u=[],c=[];for(t=0;t<n;++t)r=o[t],a<s?(a+=i[r],u.push(r)):(s+=i[r],c.push(r));return c.reverse().concat(u)},z.stackOrderNone=Ay,z.stackOrderReverse=function(e){return Ay(e).reverse()},z.timeInterval=qh,z.timeMillisecond=Hh,z.timeMilliseconds=Yh,z.utcMillisecond=Hh,z.utcMilliseconds=Yh,z.timeSecond=Gh,z.timeSeconds=Wh,z.utcSecond=Gh,z.utcSeconds=Wh,z.timeMinute=Vh,z.timeMinutes=Kh,z.timeHour=Jh,z.timeHours=Zh,z.timeDay=Qh,z.timeDays=$h,z.timeWeek=td,z.timeWeeks=ud,z.timeSunday=td,z.timeSundays=ud,z.timeMonday=rd,z.timeMondays=cd,z.timeTuesday=nd,z.timeTuesdays=ld,z.timeWednesday=id,z.timeWednesdays=fd,z.timeThursday=od,z.timeThursdays=hd,z.timeFriday=ad,z.timeFridays=dd,z.timeSaturday=sd,z.timeSaturdays=pd,z.timeMonth=md,z.timeMonths=gd,z.timeYear=vd,z.timeYears=yd,z.utcMinute=_d,z.utcMinutes=bd,z.utcHour=xd,z.utcHours=wd,z.utcDay=Td,z.utcDays=Sd,z.utcWeek=Pd,z.utcWeeks=Id,z.utcSunday=Pd,z.utcSundays=Id,z.utcMonday=Ed,z.utcMondays=Dd,z.utcTuesday=Cd,z.utcTuesdays=Ld,z.utcWednesday=kd,z.utcWednesdays=Nd,z.utcThursday=Ad,z.utcThursdays=jd,z.utcFriday=Od,z.utcFridays=Fd,z.utcSaturday=Rd,z.utcSaturdays=Bd,z.utcMonth=zd,z.utcMonths=Ud,z.utcYear=Xd,z.utcYears=qd,z.timeFormatDefaultLocale=om,z.timeFormatLocale=Wd,z.isoFormat=sm,z.isoParse=um,z.now=en,z.timer=nn,z.timerFlush=on,z.timeout=cn,z.interval=function(r,n,i){var o=new rn,a=n;return null==n?o.restart(r,n,i):(n=+n,i=null==i?en():+i,o.restart(function e(t){t+=a,o.restart(e,a+=n,i),r(t)},n,i)),o},z.transition=An,z.active=function(e,t){var r,n,i=e.__transition;if(i)for(n in t=null==t?null:t+"",i)if((r=i[n]).state>dn&&r.name===t)return new kn([[e]],li,t,+n);return null},z.interrupt=Tn,z.voronoi=function(){var i=jy,o=Fy,t=null;function r(n){return new g_(n.map(function(e,t){var r=[Math.round(i(e,t,n)/d_)*d_,Math.round(o(e,t,n)/d_)*d_];return r.index=t,r.data=e,r}),t)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(e){return arguments.length?(i="function"==typeof e?e:Ny(+e),r):i},r.y=function(e){return arguments.length?(o="function"==typeof e?e:Ny(+e),r):o},r.extent=function(e){return arguments.length?(t=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):t&&[[t[0][0],t[0][1]],[t[1][0],t[1][1]]]},r.size=function(e){return arguments.length?(t=null==e?null:[[0,0],[+e[0],+e[1]]],r):t&&[t[1][0]-t[0][0],t[1][1]-t[0][1]]},r},z.zoom=function(){var d,o,s=S_,l=M_,p=k_,i=E_,t=C_,a=[0,1/0],m=[[-1/0,-1/0],[1/0,1/0]],u=250,f=Ir,c=[],r=X("start","zoom","end"),h=500,g=150,v=0;function y(e){e.property("__zoom",P_).on("wheel.zoom",n).on("mousedown.zoom",M).on("dblclick.zoom",P).filter(t).on("touchstart.zoom",E).on("touchmove.zoom",C).on("touchend.zoom touchcancel.zoom",k).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function _(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new __(t,e.x,e.y)}function b(e,t,r){var n=t[0]-r[0]*e.k,i=t[1]-r[1]*e.k;return n===e.x&&i===e.y?e:new __(e.k,n,i)}function x(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,u,c){e.on("start.zoom",function(){T(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){T(this,arguments).end()}).tween("zoom",function(){var e=arguments,n=T(this,e),t=l.apply(this,e),i=c||x(t),o=Math.max(t[1][0]-t[0][0],t[1][1]-t[0][1]),r=this.__zoom,a="function"==typeof u?u.apply(this,e):u,s=f(r.invert(i).concat(o/r.k),a.invert(i).concat(o/a.k));return function(e){if(1===e)e=a;else{var t=s(e),r=o/t[2];e=new __(r,i[0]-t[0]*r,i[1]-t[1]*r)}n.zoom(null,e)}})}function T(e,t){for(var r,n=0,i=c.length;n<i;++n)if((r=c[n]).that===e)return r;return new S(e,t)}function S(e,t){this.that=e,this.args=t,this.index=-1,this.active=0,this.extent=l.apply(e,t)}function n(){if(s.apply(this,arguments)){var e=T(this,arguments),t=this.__zoom,r=Math.max(a[0],Math.min(a[1],t.k*Math.pow(2,i.apply(this,arguments)))),n=Fe(this);if(e.wheel)e.mouse[0][0]===n[0]&&e.mouse[0][1]===n[1]||(e.mouse[1]=t.invert(e.mouse[0]=n)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[n,t.invert(n)],Tn(this),e.start()}T_(),e.wheel=setTimeout(function(){e.wheel=null,e.end()},g),e.zoom("mouse",p(b(_(t,r),e.mouse[0],e.mouse[1]),e.extent,m))}}function M(){if(!o&&s.apply(this,arguments)){var r=T(this,arguments),e=Re(z.event.view).on("mousemove.zoom",function(){if(T_(),!r.moved){var e=z.event.clientX-n,t=z.event.clientY-i;r.moved=v<e*e+t*t}r.zoom("mouse",p(b(r.that.__zoom,r.mouse[0]=Fe(r.that),r.mouse[1]),r.extent,m))},!0).on("mouseup.zoom",function(){e.on("mousemove.zoom mouseup.zoom",null),qe(z.event.view,r.moved),T_(),r.end()},!0),t=Fe(this),n=z.event.clientX,i=z.event.clientY;Xe(z.event.view),w_(),r.mouse=[t,this.__zoom.invert(t)],Tn(this),r.start()}}function P(){if(s.apply(this,arguments)){var e=this.__zoom,t=Fe(this),r=e.invert(t),n=e.k*(z.event.shiftKey?.5:2),i=p(b(_(e,n),t,r),l.apply(this,arguments),m);T_(),0<u?Re(this).transition().duration(u).call(w,i,t):Re(this).call(y.transform,i)}}function E(){if(s.apply(this,arguments)){var e,t,r,n,i=T(this,arguments),o=z.event.changedTouches,a=o.length;for(w_(),t=0;t<a;++t)n=[n=Be(this,o,(r=o[t]).identifier),this.__zoom.invert(n),r.identifier],i.touch0?i.touch1||(i.touch1=n):(i.touch0=n,e=!0);if(d&&(d=clearTimeout(d),!i.touch1))return i.end(),void((n=Re(this).on("dblclick.zoom"))&&n.apply(this,arguments));e&&(d=setTimeout(function(){d=null},h),Tn(this),i.start())}}function C(){var e,t,r,n,i=T(this,arguments),o=z.event.changedTouches,a=o.length;for(T_(),d&&(d=clearTimeout(d)),e=0;e<a;++e)r=Be(this,o,(t=o[e]).identifier),i.touch0&&i.touch0[2]===t.identifier?i.touch0[0]=r:i.touch1&&i.touch1[2]===t.identifier&&(i.touch1[0]=r);if(t=i.that.__zoom,i.touch1){var s=i.touch0[0],u=i.touch0[1],c=i.touch1[0],l=i.touch1[1],f=(f=c[0]-s[0])*f+(f=c[1]-s[1])*f,h=(h=l[0]-u[0])*h+(h=l[1]-u[1])*h;t=_(t,Math.sqrt(f/h)),r=[(s[0]+c[0])/2,(s[1]+c[1])/2],n=[(u[0]+l[0])/2,(u[1]+l[1])/2]}else{if(!i.touch0)return;r=i.touch0[0],n=i.touch0[1]}i.zoom("touch",p(b(t,r,n),i.extent,m))}function k(){var e,t,r=T(this,arguments),n=z.event.changedTouches,i=n.length;for(w_(),o&&clearTimeout(o),o=setTimeout(function(){o=null},h),e=0;e<i;++e)t=n[e],r.touch0&&r.touch0[2]===t.identifier?delete r.touch0:r.touch1&&r.touch1[2]===t.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return y.transform=function(e,t){var r=e.selection?e.selection():e;r.property("__zoom",P_),e!==r?w(e,t):r.interrupt().each(function(){T(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},y.scaleBy=function(e,t){y.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)})},y.scaleTo=function(e,o){y.transform(e,function(){var e=l.apply(this,arguments),t=this.__zoom,r=x(e),n=t.invert(r),i="function"==typeof o?o.apply(this,arguments):o;return p(b(_(t,i),r,n),e,m)})},y.translateBy=function(e,t,r){y.transform(e,function(){return p(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof r?r.apply(this,arguments):r),l.apply(this,arguments),m)})},y.translateTo=function(e,n,i){y.transform(e,function(){var e=l.apply(this,arguments),t=this.__zoom,r=x(e);return p(b_.translate(r[0],r[1]).scale(t.k).translate("function"==typeof n?-n.apply(this,arguments):-n,"function"==typeof i?-i.apply(this,arguments):-i),e,m)})},S.prototype={start:function(){return 1==++this.active&&(this.index=c.push(this)-1,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(c.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){Ee(new y_(y,e,this.that.__zoom),r.apply,r,[e,this.that,this.args])}},y.wheelDelta=function(e){return arguments.length?(i="function"==typeof e?e:v_(+e),y):i},y.filter=function(e){return arguments.length?(s="function"==typeof e?e:v_(!!e),y):s},y.touchable=function(e){return arguments.length?(t="function"==typeof e?e:v_(!!e),y):t},y.extent=function(e){return arguments.length?(l="function"==typeof e?e:v_([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),y):l},y.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],y):[a[0],a[1]]},y.translateExtent=function(e){return arguments.length?(m[0][0]=+e[0][0],m[1][0]=+e[1][0],m[0][1]=+e[0][1],m[1][1]=+e[1][1],y):[[m[0][0],m[0][1]],[m[1][0],m[1][1]]]},y.constrain=function(e){return arguments.length?(p=e,y):p},y.duration=function(e){return arguments.length?(u=+e,y):u},y.interpolate=function(e){return arguments.length?(f=e,y):f},y.on=function(){var e=r.on.apply(r,arguments);return e===r?y:e},y.clickDistance=function(e){return arguments.length?(v=(e=+e)*e,y):Math.sqrt(v)},y},z.zoomTransform=x_,z.zoomIdentity=b_,Object.defineProperty(z,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(require("d3-selection"),require("d3-transition")):"function"==typeof define&&define.amd?define(["d3-selection","d3-transition"],t):t(e.d3,e.d3)}(this,function(a,e){"use strict";a.selection.prototype.attrs=function(e){return("function"==typeof e?function(e,n){return e.each(function(){var e=n.apply(this,arguments),t=a.select(this);for(var r in e)t.attr(r,e[r])})}:function(e,t){for(var r in t)e.attr(r,t[r]);return e})(this,e)},a.selection.prototype.styles=function(e,t){return("function"==typeof e?function(e,n,i){return e.each(function(){var e=n.apply(this,arguments),t=a.select(this);for(var r in e)t.style(r,e[r],i)})}:function(e,t,r){for(var n in t)e.style(n,t[n],r);return e})(this,e,null==t?"":t)},a.selection.prototype.properties=function(e){return("function"==typeof e?function(e,n){return e.each(function(){var e=n.apply(this,arguments),t=a.select(this);for(var r in e)t.property(r,e[r])})}:function(e,t){for(var r in t)e.property(r,t[r]);return e})(this,e)},e.transition.prototype.attrs=function(e){return("function"==typeof e?function(n,i){return n.each(function(){var e=i.apply(this,arguments),t=a.select(this).transition(n);for(var r in e)t.attr(r,e[r])})}:function(e,t){for(var r in t)e.attr(r,t[r]);return e})(this,e)},e.transition.prototype.styles=function(e,t){return("function"==typeof e?function(n,i,o){return n.each(function(){var e=i.apply(this,arguments),t=a.select(this).transition(n);for(var r in e)t.style(r,e[r],o)})}:function(e,t,r){for(var n in t)e.style(n,t[n],r);return e})(this,e,null==t?"":t)}}),function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define([],function(){return t.hljs}))}(function(i){var r,f=[],u=Object.keys,y={},s={},t=/^(no-?highlight|plain|text)$/i,c=/\blang(?:uage)?-([\w-]+)\b/i,n=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,_="</span>",b={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0};function x(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function h(e){return e.nodeName.toLowerCase()}function w(e,t){var r=e&&e.exec(t);return r&&0===r.index}function l(e){return t.test(e)}function d(e){var t,r={},n=Array.prototype.slice.call(arguments,1);for(t in e)r[t]=e[t];return n.forEach(function(e){for(t in e)r[t]=e[t]}),r}function p(e){var i=[];return function e(t,r){for(var n=t.firstChild;n;n=n.nextSibling)3===n.nodeType?r+=n.nodeValue.length:1===n.nodeType&&(i.push({event:"start",offset:r,node:n}),r=e(n,r),h(n).match(/br|hr|img|input/)||i.push({event:"stop",offset:r,node:n}));return r}(e,0),i}function o(e){if(r&&!e.langApiRestored){for(var t in e.langApiRestored=!0,r)e[t]&&(e[r[t]]=e[t]);(e.contains||[]).concat(e.variants||[]).forEach(o)}}function T(a){function c(e){return e&&e.source||e}function s(e,t){return new RegExp(c(e),"m"+(a.case_insensitive?"i":"")+(t?"g":""))}!function t(r,e){if(!r.compiled){if(r.compiled=!0,r.keywords=r.keywords||r.beginKeywords,r.keywords){var n={},i=function(r,e){a.case_insensitive&&(e=e.toLowerCase()),e.split(" ").forEach(function(e){var t=e.split("|");n[t[0]]=[r,t[1]?Number(t[1]):1]})};"string"==typeof r.keywords?i("keyword",r.keywords):u(r.keywords).forEach(function(e){i(e,r.keywords[e])}),r.keywords=n}r.lexemesRe=s(r.lexemes||/\w+/,!0),e&&(r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")\\b"),r.begin||(r.begin=/\B|\b/),r.beginRe=s(r.begin),r.endSameAsBegin&&(r.end=r.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),r.end&&(r.endRe=s(r.end)),r.terminator_end=c(r.end)||"",r.endsWithParent&&e.terminator_end&&(r.terminator_end+=(r.end?"|":"")+e.terminator_end)),r.illegal&&(r.illegalRe=s(r.illegal)),null==r.relevance&&(r.relevance=1),r.contains||(r.contains=[]),r.contains=Array.prototype.concat.apply([],r.contains.map(function(e){return function(t){return t.variants&&!t.cached_variants&&(t.cached_variants=t.variants.map(function(e){return d(t,{variants:null},e)})),t.cached_variants||t.endsWithParent&&[d(t)]||[t]}("self"===e?r:e)})),r.contains.forEach(function(e){t(e,r)}),r.starts&&t(r.starts,e);var o=r.contains.map(function(e){return e.beginKeywords?"\\.?(?:"+e.begin+")\\.?":e.begin}).concat([r.terminator_end,r.illegal]).map(c).filter(Boolean);r.terminators=o.length?s(function(e,t){for(var r=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,n=0,i="",o=0;o<e.length;o++){var a=n,s=c(e[o]);for(0<o&&(i+=t);0<s.length;){var u=r.exec(s);if(null==u){i+=s;break}i+=s.substring(0,u.index),s=s.substring(u.index+u[0].length),"\\"==u[0][0]&&u[1]?i+="\\"+String(Number(u[1])+a):(i+=u[0],"("==u[0]&&n++)}}return i}(o,"|"),!0):{exec:function(){return null}}}}(a)}function S(e,t,o,r){function s(e,t,r,n){var i='<span class="'+(n?"":b.classPrefix);return(i+=e+'">')+t+(r?"":_)}function a(){h+=null!=l.subLanguage?function(){var e="string"==typeof l.subLanguage;if(e&&!y[l.subLanguage])return x(d);var t=e?S(l.subLanguage,d,!0,f[l.subLanguage]):M(d,l.subLanguage.length?l.subLanguage:void 0);return 0<l.relevance&&(p+=t.relevance),e&&(f[l.subLanguage]=t.top),s(t.language,t.value,!1,!0)}():function(){var e,t,r,n,i,o,a;if(!l.keywords)return x(d);for(n="",t=0,l.lexemesRe.lastIndex=0,r=l.lexemesRe.exec(d);r;)n+=x(d.substring(t,r.index)),i=l,o=r,a=c.case_insensitive?o[0].toLowerCase():o[0],(e=i.keywords.hasOwnProperty(a)&&i.keywords[a])?(p+=e[1],n+=s(e[0],x(r[0]))):n+=x(r[0]),t=l.lexemesRe.lastIndex,r=l.lexemesRe.exec(d);return n+x(d.substr(t))}(),d=""}function u(e){h+=e.className?s(e.className,"",!0):"",l=Object.create(e,{parent:{value:l}})}function n(e,t){if(d+=e,null==t)return a(),0;var r=function(e,t){var r,n,i;for(r=0,n=t.contains.length;r<n;r++)if(w(t.contains[r].beginRe,e))return t.contains[r].endSameAsBegin&&(t.contains[r].endRe=(i=t.contains[r].beginRe.exec(e)[0],new RegExp(i.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"),"m"))),t.contains[r]}(t,l);if(r)return r.skip?d+=t:(r.excludeBegin&&(d+=t),a(),r.returnBegin||r.excludeBegin||(d=t)),u(r),r.returnBegin?0:t.length;var n=function e(t,r){if(w(t.endRe,r)){for(;t.endsParent&&t.parent;)t=t.parent;return t}if(t.endsWithParent)return e(t.parent,r)}(l,t);if(n){var i=l;for(i.skip?d+=t:(i.returnEnd||i.excludeEnd||(d+=t),a(),i.excludeEnd&&(d=t));l.className&&(h+=_),l.skip||l.subLanguage||(p+=l.relevance),(l=l.parent)!==n.parent;);return n.starts&&(n.endSameAsBegin&&(n.starts.endRe=n.endRe),u(n.starts)),i.returnEnd?0:t.length}if(function(e,t){return!o&&w(t.illegalRe,e)}(t,l))throw new Error('Illegal lexeme "'+t+'" for mode "'+(l.className||"<unnamed>")+'"');return d+=t,t.length||1}var c=P(e);if(!c)throw new Error('Unknown language: "'+e+'"');T(c);var i,l=r||c,f={},h="";for(i=l;i!==c;i=i.parent)i.className&&(h=s(i.className,"",!0)+h);var d="",p=0;try{for(var m,g,v=0;l.terminators.lastIndex=v,m=l.terminators.exec(t);)g=n(t.substring(v,m.index),m[0]),v=m.index+g;for(n(t.substr(v)),i=l;i.parent;i=i.parent)i.className&&(h+=_);return{relevance:p,value:h,language:e,top:l}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{relevance:0,value:x(t)};throw e}}function M(r,e){e=e||b.languages||u(y);var n={relevance:0,value:x(r)},i=n;return e.filter(P).filter(v).forEach(function(e){var t=S(e,r,!1);t.language=e,t.relevance>i.relevance&&(i=t),t.relevance>n.relevance&&(i=n,n=t)}),i.language&&(n.second_best=i),n}function m(e){return b.tabReplace||b.useBR?e.replace(n,function(e,t){return b.useBR&&"\n"===e?"<br>":b.tabReplace?t.replace(/\t/g,b.tabReplace):""}):e}function a(e){var t,r,n,i,o,a=function(e){var t,r,n,i,o=e.className+" ";if(o+=e.parentNode?e.parentNode.className:"",r=c.exec(o))return P(r[1])?r[1]:"no-highlight";for(t=0,n=(o=o.split(/\s+/)).length;t<n;t++)if(l(i=o[t])||P(i))return i}(e);l(a)||(b.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n"):t=e,o=t.textContent,n=a?S(a,o,!0):M(o),(r=p(t)).length&&((i=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=n.value,n.value=function(e,t,r){var n=0,i="",o=[];function a(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset<t[0].offset?e:t:"start"===t[0].event?e:t:e.length?e:t}function s(e){i+="<"+h(e)+f.map.call(e.attributes,function(e){return" "+e.nodeName+'="'+x(e.value).replace('"',"&quot;")+'"'}).join("")+">"}function u(e){i+="</"+h(e)+">"}function c(e){("start"===e.event?s:u)(e.node)}for(;e.length||t.length;){var l=a();if(i+=x(r.substring(n,l[0].offset)),n=l[0].offset,l===e){for(o.reverse().forEach(u);c(l.splice(0,1)[0]),(l=a())===e&&l.length&&l[0].offset===n;);o.reverse().forEach(s)}else"start"===l[0].event?o.push(l[0].node):o.pop(),c(l.splice(0,1)[0])}return i+x(r.substr(n))}(r,p(i),o)),n.value=m(n.value),e.innerHTML=n.value,e.className=function(e,t,r){var n=t?s[t]:r,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(n)&&i.push(n),i.join(" ").trim()}(e.className,a,n.language),e.result={language:n.language,re:n.relevance},n.second_best&&(e.second_best={language:n.second_best.language,re:n.second_best.relevance}))}function g(){if(!g.called){g.called=!0;var e=document.querySelectorAll("pre code");f.forEach.call(e,a)}}function P(e){return e=(e||"").toLowerCase(),y[e]||y[s[e]]}function v(e){var t=P(e);return t&&!t.disableAutodetect}return i.highlight=S,i.highlightAuto=M,i.fixMarkup=m,i.highlightBlock=a,i.configure=function(e){b=d(b,e)},i.initHighlighting=g,i.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)},i.registerLanguage=function(t,e){var r=y[t]=e(i);o(r),r.aliases&&r.aliases.forEach(function(e){s[e]=t})},i.listLanguages=function(){return u(y)},i.getLanguage=P,i.autoDetection=v,i.inherit=d,i.IDENT_RE="[a-zA-Z]\\w*",i.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",i.NUMBER_RE="\\b\\d+(\\.\\d+)?",i.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",i.BINARY_NUMBER_RE="\\b(0b[01]+)",i.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",i.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},i.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[i.BACKSLASH_ESCAPE]},i.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},i.COMMENT=function(e,t,r){var n=i.inherit({className:"comment",begin:e,end:t,contains:[]},r||{});return n.contains.push(i.PHRASAL_WORDS_MODE),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),n},i.C_LINE_COMMENT_MODE=i.COMMENT("//","$"),i.C_BLOCK_COMMENT_MODE=i.COMMENT("/\\*","\\*/"),i.HASH_COMMENT_MODE=i.COMMENT("#","$"),i.NUMBER_MODE={className:"number",begin:i.NUMBER_RE,relevance:0},i.C_NUMBER_MODE={className:"number",begin:i.C_NUMBER_RE,relevance:0},i.BINARY_NUMBER_MODE={className:"number",begin:i.BINARY_NUMBER_RE,relevance:0},i.CSS_NUMBER_MODE={className:"number",begin:i.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},i.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[i.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[i.BACKSLASH_ESCAPE]}]},i.TITLE_MODE={className:"title",begin:i.IDENT_RE,relevance:0},i.UNDERSCORE_TITLE_MODE={className:"title",begin:i.UNDERSCORE_IDENT_RE,relevance:0},i.METHOD_GUARD={begin:"\\.\\s*"+i.UNDERSCORE_IDENT_RE,relevance:0},i}),function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).PIXI=e()}}(function(){return function o(a,s,u){function c(r,e){if(!s[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return c(t||e)},i,i.exports,o,a,s,u)}return s[r].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(e,t,r){"use strict";function n(e){var t=32;return(e&=-e)&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}r.INT_BITS=32,r.INT_MAX=2147483647,r.INT_MIN=-1<<31,r.sign=function(e){return(0<e)-(e<0)},r.abs=function(e){var t=e>>31;return(e^t)-t},r.min=function(e,t){return t^(e^t)&-(e<t)},r.max=function(e,t){return e^(e^t)&-(e<t)},r.isPow2=function(e){return!(e&e-1||!e)},r.log2=function(e){var t,r;return t=(65535<e)<<4,t|=r=(255<(e>>>=t))<<3,t|=r=(15<(e>>>=r))<<2,(t|=r=(3<(e>>>=r))<<1)|(e>>>=r)>>1},r.log10=function(e){return 1e9<=e?9:1e8<=e?8:1e7<=e?7:1e6<=e?6:1e5<=e?5:1e4<=e?4:1e3<=e?3:100<=e?2:10<=e?1:0},r.popCount=function(e){return 16843009*((e=(858993459&(e-=e>>>1&1431655765))+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},r.countTrailingZeros=n,r.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},r.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},r.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var i=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,n=t,i=7;for(r>>>=1;r;r>>>=1)n<<=1,n|=1&r,--i;e[t]=n<<i&255}}(i),r.reverse=function(e){return i[255&e]<<24|i[e>>>8&255]<<16|i[e>>>16&255]<<8|i[e>>>24&255]},r.interleave2=function(e,t){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e&=65535)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t&=65535)|t<<8))|t<<4))|t<<2))|t<<1))<<1},r.deinterleave2=function(e,t){return(e=65535&((e=16711935&((e=252645135&((e=858993459&((e=e>>>t&1431655765)|e>>>1))|e>>>2))|e>>>4))|e>>>16))<<16>>16},r.interleave3=function(e,t,r){return e=1227133513&((e=3272356035&((e=251719695&((e=4278190335&((e&=1023)|e<<16))|e<<8))|e<<4))|e<<2),(e|=(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<1)|(r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2))<<2},r.deinterleave3=function(e,t){return(e=1023&((e=4278190335&((e=251719695&((e=3272356035&((e=e>>>t&1227133513)|e>>>2))|e>>>4))|e>>>8))|e>>>16))<<22>>22},r.nextCombination=function(e){var t=e|e-1;return 1+t|(~t&-~t)-1>>>n(e)+1}},{}],2:[function(e,t,r){"use strict";function n(e,t,r){r=r||2;var n,i,o,a,s,u,c,l=t&&t.length,f=l?t[0]*r:e.length,h=m(e,0,f,r,!0),d=[];if(!h||h.next===h.prev)return d;if(l&&(h=function(e,t,r,n){var i,o,a,s,u,c=[];for(i=0,o=t.length;i<o;i++)a=t[i]*n,s=i<o-1?t[i+1]*n:e.length,(u=m(e,a,s,n,!1))===u.next&&(u.steiner=!0),c.push(x(u));for(c.sort(y),i=0;i<c.length;i++)_(c[i],r),r=g(r,r.next);return r}(e,t,h,r)),e.length>80*r){n=o=e[0],i=a=e[1];for(var p=r;p<f;p+=r)(s=e[p])<n&&(n=s),(u=e[p+1])<i&&(i=u),o<s&&(o=s),a<u&&(a=u);c=0!==(c=Math.max(o-n,a-i))?1/c:0}return v(h,d,r,n,i,c),d}function m(e,t,r,n,i){var o,a;if(i===0<E(e,t,r,n))for(o=t;o<r;o+=n)a=u(o,e[o],e[o+1],a);else for(o=r-n;t<=o;o-=n)a=u(o,e[o],e[o+1],a);return a&&s(a,a.next)&&(P(a),a=a.next),a}function g(e,t){if(!e)return e;t||(t=e);var r,n=e;do{if(r=!1,n.steiner||!s(n,n.next)&&0!==T(n.prev,n,n.next))n=n.next;else{if(P(n),(n=t=n.prev)===n.next)break;r=!0}}while(r||n!==t);return t}function v(e,t,r,n,i,o,a){if(e){!a&&o&&function(e,t,r,n){var i=e;for(;null===i.z&&(i.z=b(i.x,i.y,t,r,n)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next,i!==e;);i.prevZ.nextZ=null,i.prevZ=null,function(e){var t,r,n,i,o,a,s,u,c=1;do{for(r=e,o=e=null,a=0;r;){for(a++,n=r,t=s=0;t<c&&(s++,n=n.nextZ);t++);for(u=c;0<s||0<u&&n;)0!==s&&(0===u||!n||r.z<=n.z)?(r=(i=r).nextZ,s--):(n=(i=n).nextZ,u--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;r=n}o.nextZ=null,c*=2}while(1<a)}(i)}(e,n,i,o);for(var s,u,c=e;e.prev!==e.next;)if(s=e.prev,u=e.next,o?f(e,n,i,o):l(e))t.push(s.i/r),t.push(e.i/r),t.push(u.i/r),P(e),e=u.next,c=u.next;else if((e=u)===c){a?1===a?v(e=h(e,t,r),t,r,n,i,o,2):2===a&&d(e,t,r,n,i,o):v(g(e),t,r,n,i,o,1);break}}}function l(e){var t=e.prev,r=e,n=e.next;if(0<=T(t,r,n))return!1;for(var i=e.next.next;i!==e.prev;){if(w(t.x,t.y,r.x,r.y,n.x,n.y,i.x,i.y)&&0<=T(i.prev,i,i.next))return!1;i=i.next}return!0}function f(e,t,r,n){var i=e.prev,o=e,a=e.next;if(0<=T(i,o,a))return!1;for(var s=i.x<o.x?i.x<a.x?i.x:a.x:o.x<a.x?o.x:a.x,u=i.y<o.y?i.y<a.y?i.y:a.y:o.y<a.y?o.y:a.y,c=i.x>o.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,l=i.y>o.y?i.y>a.y?i.y:a.y:o.y>a.y?o.y:a.y,f=b(s,u,t,r,n),h=b(c,l,t,r,n),d=e.prevZ,p=e.nextZ;d&&d.z>=f&&p&&p.z<=h;){if(d!==e.prev&&d!==e.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&0<=T(d.prev,d,d.next))return!1;if(d=d.prevZ,p!==e.prev&&p!==e.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&0<=T(p.prev,p,p.next))return!1;p=p.nextZ}for(;d&&d.z>=f;){if(d!==e.prev&&d!==e.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,d.x,d.y)&&0<=T(d.prev,d,d.next))return!1;d=d.prevZ}for(;p&&p.z<=h;){if(p!==e.prev&&p!==e.next&&w(i.x,i.y,o.x,o.y,a.x,a.y,p.x,p.y)&&0<=T(p.prev,p,p.next))return!1;p=p.nextZ}return!0}function h(e,t,r){var n=e;do{var i=n.prev,o=n.next.next;!s(i,o)&&p(i,n,n.next,o)&&S(i,o)&&S(o,i)&&(t.push(i.i/r),t.push(n.i/r),t.push(o.i/r),P(n),P(n.next),n=e=o),n=n.next}while(n!==e);return n}function d(e,t,r,n,i,o){var a,s,u=e;do{for(var c=u.next.next;c!==u.prev;){if(u.i!==c.i&&(s=c,(a=u).next.i!==s.i&&a.prev.i!==s.i&&!function(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&p(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}(a,s)&&S(a,s)&&S(s,a)&&function(e,t){var r=e,n=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;for(;r.y>o!=r.next.y>o&&r.next.y!==r.y&&i<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(n=!n),r=r.next,r!==e;);return n}(a,s))){var l=M(u,c);return u=g(u,u.next),l=g(l,l.next),v(u,t,r,n,i,o),void v(l,t,r,n,i,o)}c=c.next}u=u.next}while(u!==e)}function y(e,t){return e.x-t.x}function _(e,t){if(t=function(e,t){var r,n=t,i=e.x,o=e.y,a=-1/0;do{if(o<=n.y&&o>=n.next.y&&n.next.y!==n.y){var s=n.x+(o-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(s<=i&&a<s){if((a=s)===i){if(o===n.y)return n;if(o===n.next.y)return n.next}r=n.x<n.next.x?n:n.next}}n=n.next}while(n!==t);if(!r)return null;if(i===a)return r.prev;var u,c=r,l=r.x,f=r.y,h=1/0;n=r.next;for(;n!==c;)i>=n.x&&n.x>=l&&i!==n.x&&w(o<f?i:a,o,l,f,o<f?a:i,o,n.x,n.y)&&((u=Math.abs(o-n.y)/(i-n.x))<h||u===h&&n.x>r.x)&&S(n,e)&&(r=n,h=u),n=n.next;return r}(e,t)){var r=M(t,e);g(r,r.next)}}function b(e,t,r,n,i){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))|(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function x(e){for(var t=e,r=e;t.x<r.x&&(r=t),(t=t.next)!==e;);return r}function w(e,t,r,n,i,o,a,s){return 0<=(i-a)*(t-s)-(e-a)*(o-s)&&0<=(e-a)*(n-s)-(r-a)*(t-s)&&0<=(r-a)*(o-s)-(i-a)*(n-s)}function T(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function s(e,t){return e.x===t.x&&e.y===t.y}function p(e,t,r,n){return!!(s(e,t)&&s(r,n)||s(e,n)&&s(r,t))||0<T(e,t,r)!=0<T(e,t,n)&&0<T(r,n,e)!=0<T(r,n,t)}function S(e,t){return T(e.prev,e,e.next)<0?0<=T(e,t,e.next)&&0<=T(e,e.prev,t):T(e,t,e.prev)<0||T(e,e.next,t)<0}function M(e,t){var r=new a(e.i,e.x,e.y),n=new a(t.i,t.x,t.y),i=e.next,o=t.prev;return(e.next=t).prev=e,(r.next=i).prev=r,(n.next=r).prev=n,(o.next=n).prev=o,n}function u(e,t,r,n){var i=new a(e,t,r);return n?(i.next=n.next,(i.prev=n).next.prev=i,n.next=i):(i.prev=i).next=i,i}function P(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function a(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function E(e,t,r,n){for(var i=0,o=t,a=r-n;o<r;o+=n)i+=(e[a]-e[o])*(e[o+1]+e[a+1]),a=o;return i}t.exports=n,(t.exports.default=n).deviation=function(e,t,r,n){var i=t&&t.length,o=i?t[0]*r:e.length,a=Math.abs(E(e,0,o,r));if(i)for(var s=0,u=t.length;s<u;s++){var c=t[s]*r,l=s<u-1?t[s+1]*r:e.length;a-=Math.abs(E(e,c,l,r))}var f=0;for(s=0;s<n.length;s+=3){var h=n[s]*r,d=n[s+1]*r,p=n[s+2]*r;f+=Math.abs((e[h]-e[p])*(e[1+d]-e[1+h])-(e[h]-e[d])*(e[1+p]-e[1+h]))}return 0===a&&0===f?0:Math.abs((f-a)/a)},n.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},n=0,i=0;i<e.length;i++){for(var o=0;o<e[i].length;o++)for(var a=0;a<t;a++)r.vertices.push(e[i][o][a]);0<i&&(n+=e[i-1].length,r.holes.push(n))}return r}},{}],3:[function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,d="~";function c(){}function o(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function i(){this._events=new c,this._eventsCount=0}Object.create&&(c.prototype=Object.create(null),(new c).__proto__||(d=!1)),i.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(d?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},i.prototype.listeners=function(e,t){var r=d?d+e:e,n=this._events[r];if(t)return!!n;if(!n)return[];if(n.fn)return[n.fn];for(var i=0,o=n.length,a=new Array(o);i<o;i++)a[i]=n[i].fn;return a},i.prototype.emit=function(e,t,r,n,i,o){var a=d?d+e:e;if(!this._events[a])return!1;var s,u,c=this._events[a],l=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,n),!0;case 5:return c.fn.call(c.context,t,r,n,i),!0;case 6:return c.fn.call(c.context,t,r,n,i,o),!0}for(u=1,s=new Array(l-1);u<l;u++)s[u-1]=arguments[u];c.fn.apply(c.context,s)}else{var f,h=c.length;for(u=0;u<h;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),l){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,n);break;default:if(!s)for(f=1,s=new Array(l-1);f<l;f++)s[f-1]=arguments[f];c[u].fn.apply(c[u].context,s)}}return!0},i.prototype.on=function(e,t,r){var n=new o(t,r||this),i=d?d+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},i.prototype.once=function(e,t,r){var n=new o(t,r||this,!0),i=d?d+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],n]:this._events[i].push(n):(this._events[i]=n,this._eventsCount++),this},i.prototype.removeListener=function(e,t,r,n){var i=d?d+e:e;if(!this._events[i])return this;if(!t)return 0==--this._eventsCount?this._events=new c:delete this._events[i],this;var o=this._events[i];if(o.fn)o.fn!==t||n&&!o.once||r&&o.context!==r||(0==--this._eventsCount?this._events=new c:delete this._events[i]);else{for(var a=0,s=[],u=o.length;a<u;a++)(o[a].fn!==t||n&&!o[a].once||r&&o[a].context!==r)&&s.push(o[a]);s.length?this._events[i]=1===s.length?s[0]:s:0==--this._eventsCount?this._events=new c:delete this._events[i]}return this},i.prototype.removeAllListeners=function(e){var t;return e?(t=d?d+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new c:delete this._events[t])):(this._events=new c,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=d,i.EventEmitter=i,void 0!==t&&(t.exports=i)},{}],4:[function(e,r,t){!function(e){var i=/iPhone/i,o=/iPod/i,a=/iPad/i,s=/\bAndroid(?:.+)Mobile\b/i,u=/Android/i,c=/\bAndroid(?:.+)SD4930UR\b/i,l=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,f=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,d=/BlackBerry/i,p=/BB10/i,m=/Opera Mini/i,g=/\b(CriOS|Chrome)(?:.+)Mobile/i,v=/\Mobile(?:.+)Firefox\b/i;function y(e,t){return e.test(t)}function t(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),r=t.split("[FBAN");void 0!==r[1]&&(t=r[0]),void 0!==(r=t.split("Twitter"))[1]&&(t=r[0]);var n={apple:{phone:y(i,t)&&!y(f,t),ipod:y(o,t),tablet:!y(i,t)&&y(a,t)&&!y(f,t),device:(y(i,t)||y(o,t)||y(a,t))&&!y(f,t)},amazon:{phone:y(c,t),tablet:!y(c,t)&&y(l,t),device:y(c,t)||y(l,t)},android:{phone:!y(f,t)&&y(c,t)||!y(f,t)&&y(s,t),tablet:!y(f,t)&&!y(c,t)&&!y(s,t)&&(y(l,t)||y(u,t)),device:!y(f,t)&&(y(c,t)||y(l,t)||y(s,t)||y(u,t))},windows:{phone:y(f,t),tablet:y(h,t),device:y(f,t)||y(h,t)},other:{blackberry:y(d,t),blackberry10:y(p,t),opera:y(m,t),firefox:y(v,t),chrome:y(g,t),device:y(d,t)||y(p,t)||y(m,t)||y(v,t)||y(g,t)}};return n.any=n.apple.device||n.android.device||n.windows.device||n.other.device,n.phone=n.apple.phone||n.android.phone||n.windows.phone,n.tablet=n.apple.tablet||n.android.tablet||n.windows.tablet,n}void 0!==r&&r.exports&&"undefined"==typeof window?r.exports=t:void 0!==r&&r.exports&&"undefined"!=typeof window?r.exports=t():e.isMobile=t()}(this)},{}],5:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var n=function(){function n(e,t,r){void 0===t&&(t=!1),o(this,n),this._fn=e,this._once=t,this._thisArg=r,this._next=this._prev=this._owner=null}return i(n,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),n}();function a(e,t){return e._head?(e._tail._next=t)._prev=e._tail:e._head=t,(e._tail=t)._owner=e,t}var s=function(){function e(){o(this,e),this._head=this._tail=void 0}return i(e,[{key:"handlers",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=this._head;if(e)return!!t;for(var r=[];t;)r.push(t),t=t._next;return r}},{key:"has",value:function(e){if(!(e instanceof n))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return e._owner===this}},{key:"dispatch",value:function(){var e=this._head;if(!e)return!1;for(;e;)e._once&&this.detach(e),e._fn.apply(e._thisArg,arguments),e=e._next;return!0}},{key:"add",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return a(this,new n(e,!1,t))}},{key:"once",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return a(this,new n(e,!0,t))}},{key:"detach",value:function(e){if(!(e instanceof n))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return e._owner!==this||(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,null===e._next&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null),this}},{key:"detachAll",value:function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this}}]),e}();s.MiniSignalBinding=n,r.default=s,t.exports=r.default},{}],6:[function(e,t,r){"use strict";var u=Object.getOwnPropertySymbols,c=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,n,i=function(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),o=1;o<arguments.length;o++){for(var a in r=Object(arguments[o]))c.call(r,a)&&(i[a]=r[a]);if(u){n=u(r);for(var s=0;s<n.length;s++)l.call(r,n[s])&&(i[n[s]]=r[n[s]])}}return i}},{}],7:[function(e,t,r){"use strict";t.exports=function(e,t){t=t||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},r=n.parser[t.strictMode?"strict":"loose"].exec(e),i={},o=14;o--;)i[n.key[o]]=r[o]||"";return i[n.q.name]={},i[n.key[12]].replace(n.q.parser,function(e,t,r){t&&(i[n.q.name][t]=r)}),i}},{}],8:[function(e,t,c){(function(i){function o(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}c.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:i.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},c.normalize=function(e){var t=c.isAbsolute(e),r="/"===n(e,-1);return(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},c.isAbsolute=function(e){return"/"===e.charAt(0)},c.join=function(){var e=Array.prototype.slice.call(arguments,0);return c.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},c.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=c.resolve(e).substr(1),t=c.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},c.sep="/",c.delimiter=":",c.dirname=function(e){var t=a(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},c.basename=function(e,t){var r=a(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},c.extname=function(e){return a(e)[3]};var n="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:26}],9:[function(e,t,r){var i=new ArrayBuffer(0),o=function(e,t,r,n){this.gl=e,this.buffer=e.createBuffer(),this.type=t||e.ARRAY_BUFFER,this.drawType=n||e.STATIC_DRAW,this.data=i,r&&this.upload(r),this._updateID=0};o.prototype.upload=function(e,t,r){r||this.bind();var n=this.gl;e=e||this.data,t=t||0,this.data.byteLength>=e.byteLength?n.bufferSubData(this.type,t,e):n.bufferData(this.type,e,this.drawType),this.data=e},o.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},o.createVertexBuffer=function(e,t,r){return new o(e,e.ARRAY_BUFFER,t,r)},o.createIndexBuffer=function(e,t,r){return new o(e,e.ELEMENT_ARRAY_BUFFER,t,r)},o.create=function(e,t,r,n){return new o(e,t,r,n)},o.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},t.exports=o},{}],10:[function(e,t,r){var a=e("./GLTexture"),s=function(e,t,r){this.gl=e,this.framebuffer=e.createFramebuffer(),this.stencil=null,this.texture=null,this.width=t||100,this.height=r||100};s.prototype.enableTexture=function(e){var t=this.gl;this.texture=e||new a(t),this.texture.bind(),this.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture.texture,0)},s.prototype.enableStencil=function(){if(!this.stencil){var e=this.gl;this.stencil=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,this.stencil),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,this.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,this.width,this.height)}},s.prototype.clear=function(e,t,r,n){this.bind();var i=this.gl;i.clearColor(e,t,r,n),i.clear(i.COLOR_BUFFER_BIT|i.DEPTH_BUFFER_BIT)},s.prototype.bind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer)},s.prototype.unbind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,null)},s.prototype.resize=function(e,t){var r=this.gl;this.width=e,this.height=t,this.texture&&this.texture.uploadData(null,e,t),this.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,this.stencil),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e,t))},s.prototype.destroy=function(){var e=this.gl;this.texture&&this.texture.destroy(),e.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},s.createRGBA=function(e,t,r,n){var i=a.fromData(e,null,t,r);i.enableNearestScaling(),i.enableWrapClamp();var o=new s(e,t,r);return o.enableTexture(i),o.unbind(),o},s.createFloat32=function(e,t,r,n){var i=new a.fromData(e,n,t,r);i.enableNearestScaling(),i.enableWrapClamp();var o=new s(e,t,r);return o.enableTexture(i),o.unbind(),o},t.exports=s},{"./GLTexture":12}],11:[function(e,t,r){var o=e("./shader/compileProgram"),a=e("./shader/extractAttributes"),s=e("./shader/extractUniforms"),u=e("./shader/setPrecision"),c=e("./shader/generateUniformAccessObject"),n=function(e,t,r,n,i){this.gl=e,n&&(t=u(t,n),r=u(r,n)),this.program=o(e,t,r,i),this.attributes=a(e,this.program),this.uniformData=s(e,this.program),this.uniforms=c(e,this.uniformData)};n.prototype.bind=function(){return this.gl.useProgram(this.program),this},n.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},t.exports=n},{"./shader/compileProgram":17,"./shader/extractAttributes":19,"./shader/extractUniforms":20,"./shader/generateUniformAccessObject":21,"./shader/setPrecision":25}],12:[function(e,t,r){var o=function(e,t,r,n,i){this.gl=e,this.texture=e.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=t||-1,this.height=r||-1,this.format=n||e.RGBA,this.type=i||e.UNSIGNED_BYTE},i=!(o.prototype.upload=function(e){this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var r=e.videoWidth||e.width,n=e.videoHeight||e.height;n!==this.height||r!==this.width?t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,this.type,e):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.format,this.type,e),this.width=r,this.height=n});o.prototype.uploadData=function(e,t,r){this.bind();var n=this.gl;if(e instanceof Float32Array){if(!i){if(!n.getExtension("OES_texture_float"))throw new Error("floating point textures not available");i=!0}this.type=n.FLOAT}else this.type=this.type||n.UNSIGNED_BYTE;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t!==this.width||r!==this.height?n.texImage2D(n.TEXTURE_2D,0,this.format,t,r,0,this.format,this.type,e||null):n.texSubImage2D(n.TEXTURE_2D,0,0,0,t,r,this.format,this.type,e||null),this.width=t,this.height=r},o.prototype.bind=function(e){var t=this.gl;void 0!==e&&t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,this.texture)},o.prototype.unbind=function(){var e=this.gl;e.bindTexture(e.TEXTURE_2D,null)},o.prototype.minFilter=function(e){var t=this.gl;this.bind(),this.mipmap?t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR_MIPMAP_LINEAR:t.NEAREST_MIPMAP_NEAREST):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR:t.NEAREST)},o.prototype.magFilter=function(e){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e?t.LINEAR:t.NEAREST)},o.prototype.enableMipmap=function(){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)},o.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},o.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},o.prototype.enableWrapClamp=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)},o.prototype.enableWrapRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)},o.prototype.enableWrapMirrorRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.MIRRORED_REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.MIRRORED_REPEAT)},o.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},o.fromSource=function(e,t,r){var n=new o(e);return n.premultiplyAlpha=r||!1,n.upload(t),n},o.fromData=function(e,t,r,n){var i=new o(e);return i.uploadData(t,r,n),i},t.exports=o},{}],13:[function(e,t,r){var i=e("./setVertexAttribArrays");function n(e,t){if(this.nativeVaoExtension=null,n.FORCE_NATIVE||(this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=t,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var r=e.getParameter(e.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(r),attribState:new Array(r)}}this.gl=e,this.attributes=[],this.indexBuffer=null,this.dirty=!1}n.prototype.constructor=n,(t.exports=n).FORCE_NATIVE=!1,n.prototype.bind=function(){if(this.nativeVao){if(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty)return this.dirty=!1,this.activate(),this;this.indexBuffer&&this.indexBuffer.bind()}else this.activate();return this},n.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},n.prototype.activate=function(){for(var e=this.gl,t=null,r=0;r<this.attributes.length;r++){var n=this.attributes[r];t!==n.buffer&&(n.buffer.bind(),t=n.buffer),e.vertexAttribPointer(n.attribute.location,n.attribute.size,n.type||e.FLOAT,n.normalized||!1,n.stride||0,n.start||0)}return i(e,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},n.prototype.addAttribute=function(e,t,r,n,i,o){return this.attributes.push({buffer:e,attribute:t,location:t.location,type:r||this.gl.FLOAT,normalized:n||!1,stride:i||0,start:o||0}),this.dirty=!0,this},n.prototype.addIndex=function(e){return this.indexBuffer=e,this.dirty=!0,this},n.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},n.prototype.draw=function(e,t,r){var n=this.gl;return this.indexBuffer?n.drawElements(e,t||this.indexBuffer.data.length,n.UNSIGNED_SHORT,2*(r||0)):n.drawArrays(e,r,t||this.getSize()),this},n.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null},n.prototype.getSize=function(){var e=this.attributes[0];return e.buffer.data.length/(e.stride/4||e.attribute.size)}},{"./setVertexAttribArrays":16}],14:[function(e,t,r){t.exports=function(e,t){var r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);if(!r)throw new Error("This browser does not support webGL. Try using the canvas renderer");return r}},{}],15:[function(e,t,r){var n={createContext:e("./createContext"),setVertexAttribArrays:e("./setVertexAttribArrays"),GLBuffer:e("./GLBuffer"),GLFramebuffer:e("./GLFramebuffer"),GLShader:e("./GLShader"),GLTexture:e("./GLTexture"),VertexArrayObject:e("./VertexArrayObject"),shader:e("./shader")};void 0!==t&&t.exports&&(t.exports=n),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=n)},{"./GLBuffer":9,"./GLFramebuffer":10,"./GLShader":11,"./GLTexture":12,"./VertexArrayObject":13,"./createContext":14,"./setVertexAttribArrays":16,"./shader":22}],16:[function(e,t,r){t.exports=function(e,t,r){var n;if(r){var i=r.tempAttribState,o=r.attribState;for(n=0;n<i.length;n++)i[n]=!1;for(n=0;n<t.length;n++)i[t[n].attribute.location]=!0;for(n=0;n<o.length;n++)o[n]!==i[n]&&(o[n]=i[n],r.attribState[n]?e.enableVertexAttribArray(n):e.disableVertexAttribArray(n))}else for(n=0;n<t.length;n++){var a=t[n];e.enableVertexAttribArray(a.attribute.location)}}},{}],17:[function(e,t,r){var u=function(e,t,r){var n=e.createShader(t);return e.shaderSource(n,r),e.compileShader(n),e.getShaderParameter(n,e.COMPILE_STATUS)?n:(console.log(e.getShaderInfoLog(n)),null)};t.exports=function(e,t,r,n){var i=u(e,e.VERTEX_SHADER,t),o=u(e,e.FRAGMENT_SHADER,r),a=e.createProgram();if(e.attachShader(a,i),e.attachShader(a,o),n)for(var s in n)e.bindAttribLocation(a,n[s],s);return e.linkProgram(a),e.getProgramParameter(a,e.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",e.getProgramParameter(a,e.VALIDATE_STATUS)),console.error("gl.getError()",e.getError()),""!==e.getProgramInfoLog(a)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(a)),e.deleteProgram(a),a=null),e.deleteShader(i),e.deleteShader(o),a}},{}],18:[function(e,t,r){var n=function(e){for(var t=new Array(e),r=0;r<t.length;r++)t[r]=!1;return t};t.exports=function(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"bool":return!1;case"bvec2":return n(2*t);case"bvec3":return n(3*t);case"bvec4":return n(4*t);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}}},{}],19:[function(e,t,r){var s=e("./mapType"),u=e("./mapSize"),c=function(e,t,r,n){gl.vertexAttribPointer(this.location,this.size,e||gl.FLOAT,t||!1,r||0,n||0)};t.exports=function(e,t){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),i=0;i<n;i++){var o=e.getActiveAttrib(t,i),a=s(e,o.type);r[o.name]={type:a,size:u(a),location:e.getAttribLocation(t,o.name),pointer:c}}return r}},{"./mapSize":23,"./mapType":24}],20:[function(e,t,r){var u=e("./mapType"),c=e("./defaultValue");t.exports=function(e,t){for(var r={},n=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),i=0;i<n;i++){var o=e.getActiveUniform(t,i),a=o.name.replace(/\[.*?\]/,""),s=u(e,o.type);r[a]={type:s,size:o.size,location:e.getUniformLocation(t,a),value:c(s,o.size)}}return r}},{"./defaultValue":18,"./mapType":24}],21:[function(e,t,r){var l=function(e){return function(){return this.data[e].value}},i={float:function(e,t,r){e.uniform1f(t,r)},vec2:function(e,t,r){e.uniform2f(t,r[0],r[1])},vec3:function(e,t,r){e.uniform3f(t,r[0],r[1],r[2])},vec4:function(e,t,r){e.uniform4f(t,r[0],r[1],r[2],r[3])},int:function(e,t,r){e.uniform1i(t,r)},ivec2:function(e,t,r){e.uniform2i(t,r[0],r[1])},ivec3:function(e,t,r){e.uniform3i(t,r[0],r[1],r[2])},ivec4:function(e,t,r){e.uniform4i(t,r[0],r[1],r[2],r[3])},bool:function(e,t,r){e.uniform1i(t,r)},bvec2:function(e,t,r){e.uniform2i(t,r[0],r[1])},bvec3:function(e,t,r){e.uniform3i(t,r[0],r[1],r[2])},bvec4:function(e,t,r){e.uniform4i(t,r[0],r[1],r[2],r[3])},mat2:function(e,t,r){e.uniformMatrix2fv(t,!1,r)},mat3:function(e,t,r){e.uniformMatrix3fv(t,!1,r)},mat4:function(e,t,r){e.uniformMatrix4fv(t,!1,r)},sampler2D:function(e,t,r){e.uniform1i(t,r)}},o={float:function(e,t,r){e.uniform1fv(t,r)},vec2:function(e,t,r){e.uniform2fv(t,r)},vec3:function(e,t,r){e.uniform3fv(t,r)},vec4:function(e,t,r){e.uniform4fv(t,r)},int:function(e,t,r){e.uniform1iv(t,r)},ivec2:function(e,t,r){e.uniform2iv(t,r)},ivec3:function(e,t,r){e.uniform3iv(t,r)},ivec4:function(e,t,r){e.uniform4iv(t,r)},bool:function(e,t,r){e.uniform1iv(t,r)},bvec2:function(e,t,r){e.uniform2iv(t,r)},bvec3:function(e,t,r){e.uniform3iv(t,r)},bvec4:function(e,t,r){e.uniform4iv(t,r)},sampler2D:function(e,t,r){e.uniform1iv(t,r)}};function f(r,n){return function(e){this.data[r].value=e;var t=this.data[r].location;1===n.size?i[n.type](this.gl,t,e):o[n.type](this.gl,t,e)}}function h(e,t){for(var r=t,n=0;n<e.length-1;n++){var i=r[e[n]]||{data:{}};r[e[n]]=i,r=i}return r}t.exports=function(e,t){var r={data:{}};r.gl=e;for(var n=Object.keys(t),i=0;i<n.length;i++){var o=n[i],a=o.split("."),s=a[a.length-1],u=h(a,r),c=t[o];u.data[s]=c,u.gl=e,Object.defineProperty(u,s,{get:l(s),set:f(s,c)})}return r}},{}],22:[function(e,t,r){t.exports={compileProgram:e("./compileProgram"),defaultValue:e("./defaultValue"),extractAttributes:e("./extractAttributes"),extractUniforms:e("./extractUniforms"),generateUniformAccessObject:e("./generateUniformAccessObject"),setPrecision:e("./setPrecision"),mapSize:e("./mapSize"),mapType:e("./mapType")}},{"./compileProgram":17,"./defaultValue":18,"./extractAttributes":19,"./extractUniforms":20,"./generateUniformAccessObject":21,"./mapSize":23,"./mapType":24,"./setPrecision":25}],23:[function(e,t,r){var n={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};t.exports=function(e){return n[e]}},{}],24:[function(e,t,r){var o=null,a={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};t.exports=function(e,t){if(!o){var r=Object.keys(a);o={};for(var n=0;n<r.length;++n){var i=r[n];o[e[i]]=a[i]}}return o[t]}},{}],25:[function(e,t,r){t.exports=function(e,t){return"precision"!==e.substring(0,9)?"precision "+t+" float;\n"+e:e}},{}],26:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,h=-1;function d(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!f){var e=u(d);f=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||f||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],27:[function(e,R,I){(function(O){!function(e){var t="object"==typeof I&&I&&!I.nodeType&&I,r="object"==typeof R&&R&&!R.nodeType&&R,n="object"==typeof O&&O;n.global!==n&&n.window!==n&&n.self!==n||(e=n);var i,o,v=2147483647,y=36,_=1,b=26,a=38,s=700,x=72,w=128,T="-",u=/^xn--/,c=/[^\x20-\x7E]/,l=/[\x2E\u3002\uFF0E\uFF61]/g,f={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},h=y-_,S=Math.floor,M=String.fromCharCode;function P(e){throw new RangeError(f[e])}function d(e,t){for(var r=e.length,n=[];r--;)n[r]=t(e[r]);return n}function p(e,t){var r=e.split("@"),n="";return 1<r.length&&(n=r[0]+"@",e=r[1]),n+d((e=e.replace(l,".")).split("."),t).join(".")}function E(e){for(var t,r,n=[],i=0,o=e.length;i<o;)55296<=(t=e.charCodeAt(i++))&&t<=56319&&i<o?56320==(64512&(r=e.charCodeAt(i++)))?n.push(((1023&t)<<10)+(1023&r)+65536):(n.push(t),i--):n.push(t);return n}function C(e){return d(e,function(e){var t="";return 65535<e&&(t+=M((e-=65536)>>>10&1023|55296),e=56320|1023&e),t+=M(e)}).join("")}function k(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function A(e,t,r){var n=0;for(e=r?S(e/s):e>>1,e+=S(e/t);h*b>>1<e;n+=y)e=S(e/h);return S(n+(h+1)*e/(e+a))}function m(e){var t,r,n,i,o,a,s,u,c,l,f,h=[],d=e.length,p=0,m=w,g=x;for((r=e.lastIndexOf(T))<0&&(r=0),n=0;n<r;++n)128<=e.charCodeAt(n)&&P("not-basic"),h.push(e.charCodeAt(n));for(i=0<r?r+1:0;i<d;){for(o=p,a=1,s=y;d<=i&&P("invalid-input"),f=e.charCodeAt(i++),(y<=(u=f-48<10?f-22:f-65<26?f-65:f-97<26?f-97:y)||u>S((v-p)/a))&&P("overflow"),p+=u*a,!(u<(c=s<=g?_:g+b<=s?b:s-g));s+=y)a>S(v/(l=y-c))&&P("overflow"),a*=l;g=A(p-o,t=h.length+1,0==o),S(p/t)>v-m&&P("overflow"),m+=S(p/t),p%=t,h.splice(p++,0,m)}return C(h)}function g(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,g=[];for(h=(e=E(e)).length,t=w,o=x,a=r=0;a<h;++a)(f=e[a])<128&&g.push(M(f));for(n=i=g.length,i&&g.push(T);n<h;){for(s=v,a=0;a<h;++a)t<=(f=e[a])&&f<s&&(s=f);for(s-t>S((v-r)/(d=n+1))&&P("overflow"),r+=(s-t)*d,t=s,a=0;a<h;++a)if((f=e[a])<t&&++r>v&&P("overflow"),f==t){for(u=r,c=y;!(u<(l=c<=o?_:o+b<=c?b:c-o));c+=y)m=u-l,p=y-l,g.push(M(k(l+m%p,0))),u=S(m/p);g.push(M(k(u,0))),o=A(r,d,n==i),r=0,++n}++r,++t}return g.join("")}if(i={version:"1.4.1",ucs2:{decode:E,encode:C},decode:m,encode:g,toASCII:function(e){return p(e,function(e){return c.test(e)?"xn--"+g(e):e})},toUnicode:function(e){return p(e,function(e){return u.test(e)?m(e.slice(4).toLowerCase()):e})}},t&&r)if(R.exports==t)r.exports=i;else for(o in i)i.hasOwnProperty(o)&&(t[o]=i[o]);else e.punycode=i}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],28:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){t=t||"&",r=r||"=";var i={};if("string"!=typeof e||0===e.length)return i;var o=/\+/g;e=e.split(t);var a=1e3;n&&"number"==typeof n.maxKeys&&(a=n.maxKeys);var s,u,c=e.length;0<a&&a<c&&(c=a);for(var l=0;l<c;++l){var f,h,d,p,m=e[l].replace(o,"%20"),g=m.indexOf(r);h=0<=g?(f=m.substr(0,g),m.substr(g+1)):(f=m,""),d=decodeURIComponent(f),p=decodeURIComponent(h),s=i,u=d,Object.prototype.hasOwnProperty.call(s,u)?v(i[d])?i[d].push(p):i[d]=[i[d],p]:i[d]=p}return i};var v=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},{}],29:[function(e,t,r){"use strict";var o=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};t.exports=function(r,n,i,e){return n=n||"&",i=i||"=",null===r&&(r=void 0),"object"==typeof r?s(u(r),function(e){var t=encodeURIComponent(o(e))+i;return a(r[e])?s(r[e],function(e){return t+encodeURIComponent(o(e))}).join(n):t+encodeURIComponent(o(r[e]))}).join(n):e?encodeURIComponent(o(e))+i+encodeURIComponent(o(r)):""};var a=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function s(e,t){if(e.map)return e.map(t);for(var r=[],n=0;n<e.length;n++)r.push(t(e[n],n));return r}var u=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},{}],30:[function(e,t,r){"use strict";r.decode=r.parse=e("./decode"),r.encode=r.stringify=e("./encode")},{"./decode":28,"./encode":29}],31:[function(e,t,r){"use strict";t.exports=function(e,t,r){var n,i=e.length;if(!(i<=t||0===r)){var o=i-(r=i<t+r?i-t:r);for(n=t;n<o;++n)e[n]=e[n+r];e.length=o}}},{}],32:[function(e,t,r){"use strict";r.__esModule=!0,r.Loader=void 0;var l="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},n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),a=o(e("mini-signals")),i=o(e("parse-uri")),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./async")),f=e("./Resource");function o(e){return e&&e.__esModule?e:{default:e}}var u=/(#[\w-]+)?$/,c=r.Loader=function(){function o(){var r=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:10;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.baseUrl=e,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,t){return r._loadResource(e,t)},this._queue=s.queue(this._boundLoadResource,t),this._queue.pause(),this.resources={},this.onProgress=new a.default,this.onError=new a.default,this.onLoad=new a.default,this.onStart=new a.default,this.onComplete=new a.default;for(var n=0;n<o._defaultBeforeMiddleware.length;++n)this.pre(o._defaultBeforeMiddleware[n]);for(var i=0;i<o._defaultAfterMiddleware.length;++i)this.use(o._defaultAfterMiddleware[i])}return o.prototype.add=function(e,t,r,n){if(Array.isArray(e)){for(var i=0;i<e.length;++i)this.add(e[i]);return this}if("object"===(void 0===e?"undefined":l(e))&&(n=t||e.callback||e.onComplete,t=(r=e).url,e=e.name||e.key||e.url),"string"!=typeof t&&(n=r,r=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");if("function"==typeof r&&(n=r,r=null),this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new f.Resource(e,t,r),"function"==typeof n&&this.resources[e].onAfterMiddleware.once(n),this.loading){for(var o=r.parentResource,a=[],s=0;s<o.children.length;++s)o.children[s].isComplete||a.push(o.children[s]);var u=o.progressChunk*(a.length+1)/(a.length+2);o.children.push(this.resources[e]),o.progressChunk=u;for(var c=0;c<a.length;++c)a[c].progressChunk=u;this.resources[e].progressChunk=u}return this._queue.push(this.resources[e]),this},o.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},o.prototype.use=function(e){return this._afterMiddleware.push(e),this},o.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var t=this.resources[e];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort()}return this.resources={},this},o.prototype.load=function(e){if("function"==typeof e&&this.onComplete.once(e),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var t=100/this._queue._tasks.length,r=0;r<this._queue._tasks.length;++r)this._queue._tasks[r].data.progressChunk=t;this._onStart(),this._queue.resume()}return this},o.prototype._prepareUrl=function(e){var t=(0,i.default)(e,{strictMode:!0}),r=void 0;if(r=t.protocol||!t.path||0===e.indexOf("//")?e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==e.charAt(0)?this.baseUrl+"/"+e:this.baseUrl+e,this.defaultQueryString){var n=u.exec(r)[0];-1!==(r=r.substr(0,r.length-n.length)).indexOf("?")?r+="&"+this.defaultQueryString:r+="?"+this.defaultQueryString,r+=n}return r},o.prototype._loadResource=function(r,e){var n=this;r._dequeue=e,s.eachSeries(this._beforeMiddleware,function(e,t){e.call(n,r,function(){t(r.isComplete?{}:null)})},function(){r.isComplete?n._onLoad(r):(r._onLoadBinding=r.onComplete.once(n._onLoad,n),r.load())},!0)},o.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},o.prototype._onComplete=function(){this.progress=100,this.loading=!1,this.onComplete.dispatch(this,this.resources)},o.prototype._onLoad=function(r){var n=this;r._onLoadBinding=null,this._resourcesParsing.push(r),r._dequeue(),s.eachSeries(this._afterMiddleware,function(e,t){e.call(n,r,t)},function(){r.onAfterMiddleware.dispatch(r),n.progress=Math.min(100,n.progress+r.progressChunk),n.onProgress.dispatch(n,r),r.error?n.onError.dispatch(r.error,n,r):n.onLoad.dispatch(n,r),n._resourcesParsing.splice(n._resourcesParsing.indexOf(r),1),n._queue.idle()&&0===n._resourcesParsing.length&&n._onComplete()},!0)},n(o,[{key:"concurrency",get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e}}]),o}();c._defaultBeforeMiddleware=[],c._defaultAfterMiddleware=[],c.pre=function(e){return c._defaultBeforeMiddleware.push(e),c},c.use=function(e){return c._defaultAfterMiddleware.push(e),c}},{"./Resource":33,"./async":34,"mini-signals":5,"parse-uri":7}],33:[function(e,t,r){"use strict";r.__esModule=!0,r.Resource=void 0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=o(e("parse-uri")),a=o(e("mini-signals"));function o(e){return e&&e.__esModule?e:{default:e}}var s=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),u=null;function c(){}var l=r.Resource=function(){function o(e,t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),"string"!=typeof e||"string"!=typeof t)throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(o.STATUS_FLAGS.DATA_URL,0===t.indexOf("data:")),this.name=e,this.url=t,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===r.crossOrigin?"anonymous":r.crossOrigin,this.timeout=r.timeout||0,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=o.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=c,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new a.default,this.onProgress=new a.default,this.onComplete=new a.default,this.onAfterMiddleware=new a.default}return o.setExtensionLoadType=function(e,t){f(o._loadTypeMap,e,t)},o.setExtensionXhrType=function(e,t){f(o._xhrTypeMap,e,t)},o.prototype.complete=function(){this._clearEvents(),this._finish()},o.prototype.abort=function(e){if(!this.error){if(this.error=new Error(e),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=o.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},o.prototype.load=function(e){var t=this;if(!this.isLoading)if(this.isComplete)e&&setTimeout(function(){return e(t)},1);else switch(e&&this.onComplete.once(e),this._setFlag(o.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case o.LOAD_TYPE.IMAGE:this.type=o.TYPE.IMAGE,this._loadElement("image");break;case o.LOAD_TYPE.AUDIO:this.type=o.TYPE.AUDIO,this._loadSourceElement("audio");break;case o.LOAD_TYPE.VIDEO:this.type=o.TYPE.VIDEO,this._loadSourceElement("video");break;case o.LOAD_TYPE.XHR:default:s&&this.crossOrigin?this._loadXdr():this._loadXhr()}},o.prototype._hasFlag=function(e){return 0!=(this._flags&e)},o.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},o.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},o.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(o.STATUS_FLAGS.COMPLETE,!0),this._setFlag(o.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},o.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(e),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},o.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(e),null!==this.data){if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var t=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(e,this.url[r],Array.isArray(t)?t[r]:t));else{var n=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(n)?n[0]:n))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}else this.abort("Unsupported element: "+e)},o.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XMLHttpRequest;e.open("GET",this.url,!0),e.timeout=this.timeout,this.xhrType===o.XHR_RESPONSE_TYPE.JSON||this.xhrType===o.XHR_RESPONSE_TYPE.DOCUMENT?e.responseType=o.XHR_RESPONSE_TYPE.TEXT:e.responseType=this.xhrType,e.addEventListener("error",this._boundXhrOnError,!1),e.addEventListener("timeout",this._boundXhrOnTimeout,!1),e.addEventListener("abort",this._boundXhrOnAbort,!1),e.addEventListener("progress",this._boundOnProgress,!1),e.addEventListener("load",this._boundXhrOnLoad,!1),e.send()},o.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var e=this.xhr=new XDomainRequest;e.timeout=this.timeout||5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXhrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},o.prototype._createSource=function(e,t,r){r||(r=e+"/"+this._getExtension(t));var n=document.createElement("source");return n.src=t,n.type=r,n},o.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},o.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},o.prototype._onTimeout=function(){this.abort("Load timed out.")},o.prototype._xhrOnError=function(){var e=this.xhr;this.abort(h(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},o.prototype._xhrOnTimeout=function(){var e=this.xhr;this.abort(h(e)+" Request timed out.")},o.prototype._xhrOnAbort=function(){var e=this.xhr;this.abort(h(e)+" Request was aborted by the user.")},o.prototype._xhrOnLoad=function(){var e=this.xhr,t="",r=void 0===e.status?200:e.status;if(""!==e.responseType&&"text"!==e.responseType&&void 0!==e.responseType||(t=e.responseText),0===r&&(0<t.length||e.responseType===o.XHR_RESPONSE_TYPE.BUFFER)?r=200:1223===r&&(r=204),2==(r/100|0)){if(this.xhrType===o.XHR_RESPONSE_TYPE.TEXT)this.data=t,this.type=o.TYPE.TEXT;else if(this.xhrType===o.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(t),this.type=o.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===o.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var n=new DOMParser;this.data=n.parseFromString(t,"text/xml")}else{var i=document.createElement("div");i.innerHTML=t,this.data=i}this.type=o.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=e.response||t;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},o.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";if(window.origin!==window.location.origin)return"anonymous";t=t||window.location,u||(u=document.createElement("a")),u.href=e;var r=!(e=(0,i.default)(u.href,{strictMode:!0})).port&&""===t.port||e.port===t.port,n=e.protocol?e.protocol+":":"";return e.host===t.hostname&&r&&n===t.protocol?"":"anonymous"},o.prototype._determineXhrType=function(){return o._xhrTypeMap[this.extension]||o.XHR_RESPONSE_TYPE.TEXT},o.prototype._determineLoadType=function(){return o._loadTypeMap[this.extension]||o.LOAD_TYPE.XHR},o.prototype._getExtension=function(){var e=this.url,t="";if(this.isDataUrl){var r=e.indexOf("/");t=e.substring(r+1,e.indexOf(";",r))}else{var n=e.indexOf("?"),i=e.indexOf("#"),o=Math.min(-1<n?n:e.length,-1<i?i:e.length);t=(e=e.substring(0,o)).substring(e.lastIndexOf(".")+1)}return t.toLowerCase()},o.prototype._getMimeFromXhrType=function(e){switch(e){case o.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case o.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case o.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case o.XHR_RESPONSE_TYPE.JSON:return"application/json";case o.XHR_RESPONSE_TYPE.DEFAULT:case o.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},n(o,[{key:"isDataUrl",get:function(){return this._hasFlag(o.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(o.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(o.STATUS_FLAGS.LOADING)}}]),o}();function f(e,t,r){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=r)}function h(e){return e.toString().replace("object ","")}l.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},l.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},l.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},l.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},l._loadTypeMap={gif:l.LOAD_TYPE.IMAGE,png:l.LOAD_TYPE.IMAGE,bmp:l.LOAD_TYPE.IMAGE,jpg:l.LOAD_TYPE.IMAGE,jpeg:l.LOAD_TYPE.IMAGE,tif:l.LOAD_TYPE.IMAGE,tiff:l.LOAD_TYPE.IMAGE,webp:l.LOAD_TYPE.IMAGE,tga:l.LOAD_TYPE.IMAGE,svg:l.LOAD_TYPE.IMAGE,"svg+xml":l.LOAD_TYPE.IMAGE,mp3:l.LOAD_TYPE.AUDIO,ogg:l.LOAD_TYPE.AUDIO,wav:l.LOAD_TYPE.AUDIO,mp4:l.LOAD_TYPE.VIDEO,webm:l.LOAD_TYPE.VIDEO},l._xhrTypeMap={xhtml:l.XHR_RESPONSE_TYPE.DOCUMENT,html:l.XHR_RESPONSE_TYPE.DOCUMENT,htm:l.XHR_RESPONSE_TYPE.DOCUMENT,xml:l.XHR_RESPONSE_TYPE.DOCUMENT,tmx:l.XHR_RESPONSE_TYPE.DOCUMENT,svg:l.XHR_RESPONSE_TYPE.DOCUMENT,tsx:l.XHR_RESPONSE_TYPE.DOCUMENT,gif:l.XHR_RESPONSE_TYPE.BLOB,png:l.XHR_RESPONSE_TYPE.BLOB,bmp:l.XHR_RESPONSE_TYPE.BLOB,jpg:l.XHR_RESPONSE_TYPE.BLOB,jpeg:l.XHR_RESPONSE_TYPE.BLOB,tif:l.XHR_RESPONSE_TYPE.BLOB,tiff:l.XHR_RESPONSE_TYPE.BLOB,webp:l.XHR_RESPONSE_TYPE.BLOB,tga:l.XHR_RESPONSE_TYPE.BLOB,json:l.XHR_RESPONSE_TYPE.JSON,text:l.XHR_RESPONSE_TYPE.TEXT,txt:l.XHR_RESPONSE_TYPE.TEXT,ttf:l.XHR_RESPONSE_TYPE.BUFFER,otf:l.XHR_RESPONSE_TYPE.BUFFER},l.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",void 0!==t&&(t.exports.default=l)},{"mini-signals":5,"parse-uri":7}],34:[function(e,t,r){"use strict";function a(){}function s(t){return function(){if(null===t)throw new Error("Callback was already called.");var e=t;t=null,e.apply(this,arguments)}}r.__esModule=!0,r.eachSeries=function(r,n,i,o){var a=0,s=r.length;!function e(t){t||a===s?i&&i(t):o?setTimeout(function(){n(r[a++],e)},1):n(r[a++],e)}()},r.queue=function(t,e){if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var r=0,i={_tasks:[],concurrency:e,saturated:a,unsaturated:a,buffer:e/4,empty:a,drain:a,error:a,started:!1,paused:!1,push:function(e,t){n(e,!1,t)},kill:function(){r=0,i.drain=a,i.started=!1,i._tasks=[]},unshift:function(e,t){n(e,!0,t)},process:function(){for(;!i.paused&&r<i.concurrency&&i._tasks.length;){var e=i._tasks.shift();0===i._tasks.length&&i.empty(),(r+=1)===i.concurrency&&i.saturated(),t(e.data,s(o(e)))}},length:function(){return i._tasks.length},running:function(){return r},idle:function(){return i._tasks.length+r===0},pause:function(){!0!==i.paused&&(i.paused=!0)},resume:function(){if(!1!==i.paused){i.paused=!1;for(var e=1;e<=i.concurrency;e++)i.process()}}};function n(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(i.started=!0,null==e&&i.idle())setTimeout(function(){return i.drain()},1);else{var n={data:e,callback:"function"==typeof r?r:a};t?i._tasks.unshift(n):i._tasks.push(n),setTimeout(function(){return i.process()},1)}}function o(e){return function(){r-=1,e.callback.apply(e,arguments),null!=arguments[0]&&i.error(arguments[0],e.data),r<=i.concurrency-i.buffer&&i.unsaturated(),i.idle()&&i.drain(),i.process()}}return i}},{}],35:[function(e,t,r){"use strict";r.__esModule=!0,r.encodeBinary=n;var s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function n(e){for(var t="",r=0;r<e.length;){for(var n=[0,0,0],i=[0,0,0,0],o=0;o<n.length;++o)r<e.length?n[o]=255&e.charCodeAt(r++):n[o]=0;switch(i[0]=n[0]>>2,i[1]=(3&n[0])<<4|n[1]>>4,i[2]=(15&n[1])<<2|n[2]>>6,i[3]=63&n[2],r-(e.length-1)){case 2:i[3]=64,i[2]=64;break;case 1:i[3]=64}for(var a=0;a<i.length;++a)t+=s.charAt(i[a])}return t}void 0!==t&&(t.exports.default=n)},{}],36:[function(e,t,r){"use strict";var n=e("./Loader").Loader,i=e("./Resource").Resource,o=e("./async"),a=e("./b64");n.Resource=i,n.async=o,n.encodeBinary=a,n.base64=a,t.exports=n,t.exports.Loader=n,t.exports.default=n},{"./Loader":32,"./Resource":33,"./async":34,"./b64":35}],37:[function(e,t,r){"use strict";r.__esModule=!0,r.blobMiddlewareFactory=function(){return function(e,t){if(e.data){if(e.xhr&&e.xhrType===i.Resource.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof e.data){if(0===e.data.type.indexOf("image")){var r=a.createObjectURL(e.data);return e.blob=e.data,e.data=new Image,e.data.src=r,e.type=i.Resource.TYPE.IMAGE,void(e.data.onload=function(){a.revokeObjectURL(r),e.data.onload=null,t()})}}else{var n=e.xhr.getResponseHeader("content-type");if(n&&0===n.indexOf("image"))return e.data=new Image,e.data.src="data:"+n+";base64,"+(0,o.encodeBinary)(e.xhr.responseText),e.type=i.Resource.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}else t()}};var i=e("../../Resource"),o=e("../../b64"),a=window.URL||window.webkitURL},{"../../Resource":33,"../../b64":35}],38:[function(e,t,r){"use strict";var I=e("punycode"),D=e("./util");function E(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}r.parse=o,r.resolve=function(e,t){return o(e,!1,!0).resolve(t)},r.resolveObject=function(e,t){return e?o(e,!1,!0).resolveObject(t):t},r.format=function(e){D.isString(e)&&(e=o(e));return e instanceof E?e.format():E.prototype.format.call(e)},r.Url=E;var L=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,N=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,i=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),j=["'"].concat(i),F=["%","/","?",";","#"].concat(j),B=["/","?","#"],z=/^[+a-z0-9A-Z_-]{0,63}$/,U=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,X={javascript:!0,"javascript:":!0},q={javascript:!0,"javascript:":!0},H={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},Y=e("querystring");function o(e,t,r){if(e&&D.isObject(e)&&e instanceof E)return e;var n=new E;return n.parse(e,t,r),n}E.prototype.parse=function(e,t,r){if(!D.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var n=e.indexOf("?"),i=-1!==n&&n<e.indexOf("#")?"?":"#",o=e.split(i);o[0]=o[0].replace(/\\/g,"/");var a=e=o.join(i);if(a=a.trim(),!r&&1===e.split("#").length){var s=N.exec(a);if(s)return this.path=a,this.href=a,this.pathname=s[1],s[2]?(this.search=s[2],this.query=t?Y.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var u=L.exec(a);if(u){var c=(u=u[0]).toLowerCase();this.protocol=c,a=a.substr(u.length)}if(r||u||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var l="//"===a.substr(0,2);!l||u&&q[u]||(a=a.substr(2),this.slashes=!0)}if(!q[u]&&(l||u&&!H[u])){for(var f,h,d=-1,p=0;p<B.length;p++){-1!==(m=a.indexOf(B[p]))&&(-1===d||m<d)&&(d=m)}-1!==(h=-1===d?a.lastIndexOf("@"):a.lastIndexOf("@",d))&&(f=a.slice(0,h),a=a.slice(h+1),this.auth=decodeURIComponent(f)),d=-1;for(p=0;p<F.length;p++){var m;-1!==(m=a.indexOf(F[p]))&&(-1===d||m<d)&&(d=m)}-1===d&&(d=a.length),this.host=a.slice(0,d),a=a.slice(d),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var v=this.hostname.split(/\./),y=(p=0,v.length);p<y;p++){var _=v[p];if(_&&!_.match(z)){for(var b="",x=0,w=_.length;x<w;x++)127<_.charCodeAt(x)?b+="x":b+=_[x];if(!b.match(z)){var T=v.slice(0,p),S=v.slice(p+1),M=_.match(U);M&&(T.push(M[1]),S.unshift(M[2])),S.length&&(a="/"+S.join(".")+a),this.hostname=T.join(".");break}}}255<this.hostname.length?this.hostname="":this.hostname=this.hostname.toLowerCase(),g||(this.hostname=I.toASCII(this.hostname));var P=this.port?":"+this.port:"",E=this.hostname||"";this.host=E+P,this.href+=this.host,g&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!X[c])for(p=0,y=j.length;p<y;p++){var C=j[p];if(-1!==a.indexOf(C)){var k=encodeURIComponent(C);k===C&&(k=escape(C)),a=a.split(C).join(k)}}var A=a.indexOf("#");-1!==A&&(this.hash=a.substr(A),a=a.slice(0,A));var O=a.indexOf("?");if(-1!==O?(this.search=a.substr(O),this.query=a.substr(O+1),t&&(this.query=Y.parse(this.query)),a=a.slice(0,O)):t&&(this.search="",this.query={}),a&&(this.pathname=a),H[c]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var R=this.search||"";this.path=P+R}return this.href=this.format(),this},E.prototype.format=function(){var e=this.auth||"";e&&(e=(e=encodeURIComponent(e)).replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",n=this.hash||"",i=!1,o="";this.host?i=e+this.host:this.hostname&&(i=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(i+=":"+this.port)),this.query&&D.isObject(this.query)&&Object.keys(this.query).length&&(o=Y.stringify(this.query));var a=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||H[t])&&!1!==i?(i="//"+(i||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):i||(i=""),n&&"#"!==n.charAt(0)&&(n="#"+n),a&&"?"!==a.charAt(0)&&(a="?"+a),t+i+(r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}))+(a=a.replace("#","%23"))+n},E.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},E.prototype.resolveObject=function(e){if(D.isString(e)){var t=new E;t.parse(e,!1,!0),e=t}for(var r=new E,n=Object.keys(this),i=0;i<n.length;i++){var o=n[i];r[o]=this[o]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),s=0;s<a.length;s++){var u=a[s];"protocol"!==u&&(r[u]=e[u])}return H[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!H[e.protocol]){for(var c=Object.keys(e),l=0;l<c.length;l++){var f=c[l];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||q[e.protocol])r.pathname=e.pathname;else{for(var h=(e.pathname||"").split("/");h.length&&!(e.host=h.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==h[0]&&h.unshift(""),h.length<2&&h.unshift(""),r.pathname=h.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var d=r.pathname||"",p=r.search||"";r.path=d+p}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var m=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),v=g||m||r.host&&e.pathname,y=v,_=r.pathname&&r.pathname.split("/")||[],b=(h=e.pathname&&e.pathname.split("/")||[],r.protocol&&!H[r.protocol]);if(b&&(r.hostname="",r.port=null,r.host&&(""===_[0]?_[0]=r.host:_.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===h[0]?h[0]=e.host:h.unshift(e.host)),e.host=null),v=v&&(""===h[0]||""===_[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,_=h;else if(h.length)_||(_=[]),_.pop(),_=_.concat(h),r.search=e.search,r.query=e.query;else if(!D.isNullOrUndefined(e.search)){if(b)r.hostname=r.host=_.shift(),(M=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift());return r.search=e.search,r.query=e.query,D.isNull(r.pathname)&&D.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!_.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var x=_.slice(-1)[0],w=(r.host||e.host||1<_.length)&&("."===x||".."===x)||""===x,T=0,S=_.length;0<=S;S--)"."===(x=_[S])?_.splice(S,1):".."===x?(_.splice(S,1),T++):T&&(_.splice(S,1),T--);if(!v&&!y)for(;T--;T)_.unshift("..");!v||""===_[0]||_[0]&&"/"===_[0].charAt(0)||_.unshift(""),w&&"/"!==_.join("/").substr(-1)&&_.push("");var M,P=""===_[0]||_[0]&&"/"===_[0].charAt(0);b&&(r.hostname=r.host=P?"":_.length?_.shift():"",(M=!!(r.host&&0<r.host.indexOf("@"))&&r.host.split("@"))&&(r.auth=M.shift(),r.host=r.hostname=M.shift()));return(v=v||r.host&&_.length)&&!P&&_.unshift(""),_.length?r.pathname=_.join("/"):(r.pathname=null,r.path=null),D.isNull(r.pathname)&&D.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},E.prototype.parseHost=function(){var e=this.host,t=n.exec(e);t&&(":"!==(t=t[0])&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},{"./util":39,punycode:27,querystring:30}],39:[function(e,t,r){"use strict";t.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},{}],40:[function(e,t,r){"use strict";r.__esModule=!0;var u=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),n=o(e("ismobilejs")),i=o(e("./accessibleTarget"));function o(e){return e&&e.__esModule?e:{default:e}}u.utils.mixins.delayMixin(u.DisplayObject.prototype,i.default);var a=function(){function r(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),!n.default.tablet&&!n.default.phone||navigator.isCocoonJS||this.createTouchHook();var t=document.createElement("div");t.style.width="100px",t.style.height="100px",t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.zIndex=2,this.div=t,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=e,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return r.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessabillity=!0,e.activate(),document.body.removeChild(t)}),document.body.appendChild(t)},r.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},r.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},r.prototype.updateAccessibleObjects=function(e){if(e.visible){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,r=0;r<t.length;r++)this.updateAccessibleObjects(t[r])}},r.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.width/this.renderer.width,r=e.height/this.renderer.height,n=this.div;n.style.left=e.left+"px",n.style.top=e.top+"px",n.style.width=this.renderer.width+"px",n.style.height=this.renderer.height+"px";for(var i=0;i<this.children.length;i++){var o=this.children[i];if(o.renderId!==this.renderId)o._accessibleActive=!1,u.utils.removeItems(this.children,i,1),this.div.removeChild(o._accessibleDiv),this.pool.push(o._accessibleDiv),o._accessibleDiv=null,i--,0===this.children.length&&this.deactivate();else{n=o._accessibleDiv;var a=o.hitArea,s=o.worldTransform;o.hitArea?(n.style.left=(s.tx+a.x*s.a)*t+"px",n.style.top=(s.ty+a.y*s.d)*r+"px",n.style.width=a.width*s.a*t+"px",n.style.height=a.height*s.d*r+"px"):(a=o.getBounds(),this.capHitArea(a),n.style.left=a.x*t+"px",n.style.top=a.y*r+"px",n.style.width=a.width*t+"px",n.style.height=a.height*r+"px",n.title!==o.accessibleTitle&&null!==o.accessibleTitle&&(n.title=o.accessibleTitle),n.getAttribute("aria-label")!==o.accessibleHint&&null!==o.accessibleHint&&n.setAttribute("aria-label",o.accessibleHint))}}this.renderId++}},r.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},r.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width="100px",t.style.height="100px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=2,t.style.borderStyle="none",-1<navigator.userAgent.toLowerCase().indexOf("chrome")?t.setAttribute("aria-live","off"):t.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?t.setAttribute("aria-relevant","additions"):t.setAttribute("aria-relevant","text"),t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle&&null!==e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleHint&&null!==e.accessibleHint||(t.title="displayObject "+e.tabIndex),e.accessibleHint&&null!==e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,(e._accessibleDiv=t).displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},r.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData)},r.prototype._onFocus=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","assertive");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},r.prototype._onFocusOut=function(e){e.target.getAttribute("aria-live","off")||e.target.setAttribute("aria-live","polite");var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},r.prototype._onKeyDown=function(e){9===e.keyCode&&this.activate()},r.prototype._onMouseMove=function(e){0===e.movementX&&0===e.movementY||this.deactivate()},r.prototype.destroy=function(){this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},r}();r.default=a,u.WebGLRenderer.registerPlugin("accessibility",a),u.CanvasRenderer.registerPlugin("accessibility",a)},{"../core":65,"./accessibleTarget":41,ismobilejs:4}],41:[function(e,t,r){"use strict";r.__esModule=!0,r.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},{}],42:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./accessibleTarget");Object.defineProperty(r,"accessibleTarget",{enumerable:!0,get:function(){return o(n).default}});var i=e("./AccessibilityManager");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"AccessibilityManager",{enumerable:!0,get:function(){return o(i).default}})},{"./AccessibilityManager":40,"./accessibleTarget":41}],43:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),a=e("./autoDetectRenderer"),s=o(e("./display/Container")),u=e("./ticker"),c=o(e("./settings")),i=e("./const");function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){function o(e,t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),"number"==typeof e&&(e=Object.assign({width:e,height:t||c.default.RENDER_OPTIONS.height,forceCanvas:!!n,sharedTicker:!!i},r)),this._options=e=Object.assign({autoStart:!0,sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},e),this.renderer=(0,a.autoDetectRenderer)(e),this.stage=new s.default,this._ticker=null,this.ticker=e.sharedTicker?u.shared:new u.Ticker,e.autoStart&&this.start()}return o.prototype.render=function(){this.renderer.render(this.stage)},o.prototype.stop=function(){this._ticker.stop()},o.prototype.start=function(){this._ticker.start()},o.prototype.destroy=function(e,t){if(this._ticker){var r=this._ticker;this.ticker=null,r.destroy()}this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null,this._options=null},n(o,[{key:"ticker",set:function(e){this._ticker&&this._ticker.remove(this.render,this),(this._ticker=e)&&e.add(this.render,this,i.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),o}();r.default=l},{"./autoDetectRenderer":45,"./const":46,"./display/Container":48,"./settings":101,"./ticker":121}],44:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("pixi-gl-core"),o=e("./settings"),s=(n=o)&&n.__esModule?n:{default:n};function u(e,t){if(e instanceof Array){if("precision"!==e[0].substring(0,9)){var r=e.slice(0);return r.unshift("precision "+t+" float;"),r}}else if("precision"!==e.trim().substring(0,9))return"precision "+t+" float;\n"+e;return e}var a=function(o){function a(e,t,r,n,i){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this,e,u(t,i||s.default.PRECISION_VERTEX),u(r,i||s.default.PRECISION_FRAGMENT),void 0,n))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a}(i.GLShader);r.default=a},{"./settings":101,"pixi-gl-core":15}],45:[function(e,t,r){"use strict";r.__esModule=!0,r.autoDetectRenderer=function(e,t,r,n){var i=e&&e.forceCanvas;void 0!==n&&(i=n);return i||!o.isWebGLSupported()?new a.default(e,t,r):new s.default(e,t,r)};var o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("./utils")),a=n(e("./renderers/canvas/CanvasRenderer")),s=n(e("./renderers/webgl/WebGLRenderer"));function n(e){return e&&e.__esModule?e:{default:e}}},{"./renderers/canvas/CanvasRenderer":77,"./renderers/webgl/WebGLRenderer":84,"./utils":125}],46:[function(e,t,r){"use strict";r.__esModule=!0;r.VERSION="4.8.6",r.PI_2=2*Math.PI,r.RAD_TO_DEG=180/Math.PI,r.DEG_TO_RAD=Math.PI/180,r.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},r.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},r.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},r.SCALE_MODES={LINEAR:0,NEAREST:1},r.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},r.GC_MODES={AUTO:0,MANUAL:1},r.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,r.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;charset=([\w-]+))?(?:;(base64))?,(.*)/i,r.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,r.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},r.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},r.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},r.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},r.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},{}],47:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("../math");var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?n.Rectangle.EMPTY:((e=e||new n.Rectangle(0,0,1,1)).x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,r=this.minY,n=this.maxX,i=this.maxY,o=e[0],a=e[1];t=o<t?o:t,r=a<r?a:r,n=n<o?o:n,i=i<a?a:i,t=(o=e[2])<t?o:t,r=(a=e[3])<r?a:r,n=n<o?o:n,i=i<a?a:i,t=(o=e[4])<t?o:t,r=(a=e[5])<r?a:r,n=n<o?o:n,i=i<a?a:i,t=(o=e[6])<t?o:t,r=(a=e[7])<r?a:r,n=n<o?o:n,i=i<a?a:i,this.minX=t,this.minY=r,this.maxX=n,this.maxY=i},e.prototype.addFrame=function(e,t,r,n,i){var o=e.worldTransform,a=o.a,s=o.b,u=o.c,c=o.d,l=o.tx,f=o.ty,h=this.minX,d=this.minY,p=this.maxX,m=this.maxY,g=a*t+u*r+l,v=s*t+c*r+f;h=g<h?g:h,d=v<d?v:d,p=p<g?g:p,m=m<v?v:m,h=(g=a*n+u*r+l)<h?g:h,d=(v=s*n+c*r+f)<d?v:d,p=p<g?g:p,m=m<v?v:m,h=(g=a*t+u*i+l)<h?g:h,d=(v=s*t+c*i+f)<d?v:d,p=p<g?g:p,m=m<v?v:m,h=(g=a*n+u*i+l)<h?g:h,d=(v=s*n+c*i+f)<d?v:d,p=p<g?g:p,m=m<v?v:m,this.minX=h,this.minY=d,this.maxX=p,this.maxY=m},e.prototype.addVertices=function(e,t,r,n){for(var i=e.worldTransform,o=i.a,a=i.b,s=i.c,u=i.d,c=i.tx,l=i.ty,f=this.minX,h=this.minY,d=this.maxX,p=this.maxY,m=r;m<n;m+=2){var g=t[m],v=t[m+1],y=o*g+s*v+c,_=u*v+a*g+l;f=y<f?y:f,h=_<h?_:h,d=d<y?y:d,p=p<_?_:p}this.minX=f,this.minY=h,this.maxX=d,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,r=this.minY,n=this.maxX,i=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<r?e.minY:r,this.maxX=e.maxX>n?e.maxX:n,this.maxY=e.maxY>i?e.maxY:i},e.prototype.addBoundsMask=function(e,t){var r=e.minX>t.minX?e.minX:t.minX,n=e.minY>t.minY?e.minY:t.minY,i=e.maxX<t.maxX?e.maxX:t.maxX,o=e.maxY<t.maxY?e.maxY:t.maxY;if(r<=i&&n<=o){var a=this.minX,s=this.minY,u=this.maxX,c=this.maxY;this.minX=r<a?r:a,this.minY=n<s?n:s,this.maxX=u<i?i:u,this.maxY=c<o?o:c}},e.prototype.addBoundsArea=function(e,t){var r=e.minX>t.x?e.minX:t.x,n=e.minY>t.y?e.minY:t.y,i=e.maxX<t.x+t.width?e.maxX:t.x+t.width,o=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(r<=i&&n<=o){var a=this.minX,s=this.minY,u=this.maxX,c=this.maxY;this.minX=r<a?r:a,this.minY=n<s?n:s,this.maxX=u<i?i:u,this.maxY=c<o?o:c}},e}();r.default=i},{"../math":70}],48:[function(e,t,r){"use strict";r.__esModule=!0;var n,o=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),a=e("../utils"),i=e("./DisplayObject");var s=function(i){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return e.children=[],e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i),t.prototype.onChildrenChange=function(){},t.prototype.addChild=function(e){var t=arguments.length;if(1<t)for(var r=0;r<t;r++)this.addChild(arguments[r]);else e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.push(e),this._boundsID++,this.onChildrenChange(this.children.length-1),e.emit("added",this);return e},t.prototype.addChildAt=function(e,t){if(t<0||t>this.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),e},t.prototype.swapChildren=function(e,t){if(e!==t){var r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}},t.prototype.getChildIndex=function(e){var t=this.children.indexOf(e);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},t.prototype.setChildIndex=function(e,t){if(t<0||t>=this.children.length)throw new Error("The index "+t+" supplied is out of bounds "+this.children.length);var r=this.getChildIndex(e);(0,a.removeItems)(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(e){var t=arguments.length;if(1<t)for(var r=0;r<t;r++)this.removeChild(arguments[r]);else{var n=this.children.indexOf(e);if(-1===n)return null;e.parent=null,e.transform._parentID=-1,(0,a.removeItems)(this.children,n,1),this._boundsID++,this.onChildrenChange(n),e.emit("removed",this)}return e},t.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,(0,a.removeItems)(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),t},t.prototype.removeChildren=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=e,n="number"==typeof t?t:this.children.length,i=n-r,o=void 0;if(0<i&&i<=n){o=this.children.splice(r,i);for(var a=0;a<o.length;++a)o[a].parent=null,o[a].transform&&(o[a].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var s=0;s<o.length;++s)o[s].emit("removed",this);return o}if(0==i&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e<t;++e){var r=this.children[e];r.visible&&r.updateTransform()}},t.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t=this.children[e];t.visible&&t.renderable&&(t.calculateBounds(),t._mask?(t._mask.calculateBounds(),this._bounds.addBoundsMask(t._bounds,t._mask._bounds)):t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds))}this._lastBoundsID=this._boundsID},t.prototype._calculateBounds=function(){},t.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderWebGL(e)}},t.prototype.renderAdvancedWebGL=function(e){e.flush();var t=this._filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]);for(var n=this._enabledFilters.length=0;n<t.length;n++)t[n].enabled&&this._enabledFilters.push(t[n]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}r&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e);for(var i=0,o=this.children.length;i<o;i++)this.children[i].renderWebGL(e);e.flush(),r&&e.maskManager.popMask(this,this._mask),t&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},t.prototype._renderWebGL=function(e){},t.prototype._renderCanvas=function(e){},t.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}},t.prototype.destroy=function(e){i.prototype.destroy.call(this);var t="boolean"==typeof e?e:e&&e.children,r=this.removeChildren(0,this.children.length);if(t)for(var n=0;n<r.length;++n)r[n].destroy(e)},o(t,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var t=this.getLocalBounds().width;this.scale.x=0!==t?e/t:1,this._width=e}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var t=this.getLocalBounds().height;this.scale.y=0!==t?e/t:1,this._height=e}}]),t}(((n=i)&&n.__esModule?n:{default:n}).default);(r.default=s).prototype.containerUpdateTransform=s.prototype.updateTransform},{"../utils":125,"./DisplayObject":49}],49:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),n=f(e("eventemitter3")),o=e("../const"),a=f(e("../settings")),s=f(e("./TransformStatic")),u=f(e("./Transform")),c=f(e("./Bounds")),l=e("../math");function f(e){return e&&e.__esModule?e:{default:e}}var h=function(r){function n(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this)),t=a.default.TRANSFORM_MODE===o.TRANSFORM_MODE.STATIC?s.default:u.default;return e.tempDisplayObjectParent=null,e.transform=new t,e.alpha=1,e.visible=!0,e.renderable=!0,e.parent=null,e.worldAlpha=1,e.filterArea=null,e._filters=null,e._enabledFilters=null,e._bounds=new c.default,e._boundsID=0,e._lastBoundsID=-1,e._boundsRect=null,e._localBoundsRect=null,e._mask=null,e._destroyed=!1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},n.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},n.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),t||(this._boundsRect||(this._boundsRect=new l.Rectangle),t=this._boundsRect),this._bounds.getRectangle(t)},n.prototype.getLocalBounds=function(e){var t=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,e||(this._localBoundsRect||(this._localBoundsRect=new l.Rectangle),e=this._localBoundsRect);var n=this.getBounds(!1,e);return this.parent=r,this.transform=t,n},n.prototype.toGlobal=function(e,t){return 2<arguments.length&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(e,t)},n.prototype.toLocal=function(e,t,r,n){return t&&(e=t.toGlobal(e,r,n)),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,r)},n.prototype.renderWebGL=function(e){},n.prototype.renderCanvas=function(e){},n.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},n.prototype.setTransform=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0,a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:0,s=7<arguments.length&&void 0!==arguments[7]?arguments[7]:0,u=8<arguments.length&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=e,this.position.y=t,this.scale.x=r||1,this.scale.y=n||1,this.rotation=i,this.skew.x=o,this.skew.y=a,this.pivot.x=s,this.pivot.y=u,this},n.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},i(n,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new n),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(e){this.transform.position.x=e}},{key:"y",get:function(){return this.position.y},set:function(e){this.transform.position.y=e}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(e){this.transform.position.copy(e)}},{key:"scale",get:function(){return this.transform.scale},set:function(e){this.transform.scale.copy(e)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copy(e)}},{key:"skew",get:function(){return this.transform.skew},set:function(e){this.transform.skew.copy(e)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e}},{key:"worldVisible",get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}},{key:"mask",get:function(){return this._mask},set:function(e){this._mask&&(this._mask.renderable=!0,this._mask.isMask=!1),this._mask=e,this._mask&&(this._mask.renderable=!1,this._mask.isMask=!0)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(e){this._filters=e&&e.slice()}}]),n}(n.default);(r.default=h).prototype.displayObjectUpdateTransform=h.prototype.updateTransform},{"../const":46,"../math":70,"../settings":101,"./Bounds":47,"./Transform":50,"./TransformStatic":52,eventemitter3:3}],50:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../math"),a=e("./TransformBase");var s=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this));return e.position=new o.Point(0,0),e.scale=new o.Point(1,1),e.skew=new o.ObservablePoint(e.updateSkew,e,0,0),e.pivot=new o.Point(0,0),e._rotation=0,e._cx=1,e._sx=0,e._cy=0,e._sy=1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},r.prototype.updateLocalTransform=function(){var e=this.localTransform;e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d)},r.prototype.updateTransform=function(e){var t=this.localTransform;t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d);var r=e.worldTransform,n=this.worldTransform;n.a=t.a*r.a+t.b*r.c,n.b=t.a*r.b+t.b*r.d,n.c=t.c*r.a+t.d*r.c,n.d=t.c*r.b+t.d*r.d,n.tx=t.tx*r.a+t.ty*r.c+r.tx,n.ty=t.tx*r.b+t.ty*r.d+r.ty,this._worldID++},r.prototype.setFromMatrix=function(e){e.decompose(this)},i(r,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),r}(((n=a)&&n.__esModule?n:{default:n}).default);r.default=s},{"../math":70,"./TransformBase":51}],51:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("../math");var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.worldTransform=new n.Matrix,this.localTransform=new n.Matrix,this._worldID=0,this._parentID=0}return e.prototype.updateLocalTransform=function(){},e.prototype.updateTransform=function(e){var t=e.worldTransform,r=this.worldTransform,n=this.localTransform;r.a=n.a*t.a+n.b*t.c,r.b=n.a*t.b+n.b*t.d,r.c=n.c*t.a+n.d*t.c,r.d=n.c*t.b+n.d*t.d,r.tx=n.tx*t.a+n.ty*t.c+t.tx,r.ty=n.tx*t.b+n.ty*t.d+t.ty,this._worldID++},e}();(r.default=i).prototype.updateWorldTransform=i.prototype.updateTransform,i.IDENTITY=new i},{"../math":70}],52:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../math"),a=e("./TransformBase");var s=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this));return e.position=new o.ObservablePoint(e.onChange,e,0,0),e.scale=new o.ObservablePoint(e.onChange,e,1,1),e.pivot=new o.ObservablePoint(e.onChange,e,0,0),e.skew=new o.ObservablePoint(e.updateSkew,e,0,0),e._rotation=0,e._cx=1,e._sx=0,e._cy=0,e._sy=1,e._localID=0,e._currentLocalID=0,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype.onChange=function(){this._localID++},r.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},r.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale._x,e.b=this._sx*this.scale._x,e.c=this._cy*this.scale._y,e.d=this._sy*this.scale._y,e.tx=this.position._x-(this.pivot._x*e.a+this.pivot._y*e.c),e.ty=this.position._y-(this.pivot._x*e.b+this.pivot._y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},r.prototype.updateTransform=function(e){var t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale._x,t.b=this._sx*this.scale._x,t.c=this._cy*this.scale._y,t.d=this._sy*this.scale._y,t.tx=this.position._x-(this.pivot._x*t.a+this.pivot._y*t.c),t.ty=this.position._y-(this.pivot._x*t.b+this.pivot._y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){var r=e.worldTransform,n=this.worldTransform;n.a=t.a*r.a+t.b*r.c,n.b=t.a*r.b+t.b*r.d,n.c=t.c*r.a+t.d*r.c,n.d=t.c*r.b+t.d*r.d,n.tx=t.tx*r.a+t.ty*r.c+r.tx,n.ty=t.tx*r.b+t.ty*r.d+r.ty,this._parentID=e._worldID,this._worldID++}},r.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},i(r,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}}]),r}(((n=a)&&n.__esModule?n:{default:n}).default);r.default=s},{"../math":70,"./TransformBase":51}],53:[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("../display/Container")),o=i(e("../textures/RenderTexture")),a=i(e("../textures/Texture")),s=i(e("./GraphicsData")),u=i(e("../sprites/Sprite")),c=e("../math"),l=e("../utils"),S=e("../const"),f=i(e("../display/Bounds")),h=i(e("./utils/bezierCurveTo")),d=i(e("../renderers/canvas/CanvasRenderer"));function i(e){return e&&e.__esModule?e:{default:e}}var p=void 0,m=new c.Matrix,g=new c.Point,v=new Float32Array(4),y=new Float32Array(4),_=function(i){function T(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return t.fillAlpha=1,t.lineWidth=0,t.nativeLines=e,t.lineColor=0,t.lineAlignment=.5,t.graphicsData=[],t.tint=16777215,t._prevTint=16777215,t.blendMode=S.BLEND_MODES.NORMAL,t.currentPath=null,t._webGL={},t.isMask=!1,t.boundsPadding=0,t._localBounds=new f.default,t.dirty=0,t.fastRectDirty=-1,t.clearDirty=0,t.boundsDirty=-1,t.cachedSpriteDirty=!1,t._spriteRect=null,t._fastRect=!1,t._prevRectTint=null,t._prevRectFillColor=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(T,i),T.prototype.clone=function(){var e=new T;e.renderable=this.renderable,e.fillAlpha=this.fillAlpha,e.lineWidth=this.lineWidth,e.lineColor=this.lineColor,e.lineAlignment=this.lineAlignment,e.tint=this.tint,e.blendMode=this.blendMode,e.isMask=this.isMask,e.boundsPadding=this.boundsPadding,e.dirty=0,e.cachedSpriteDirty=this.cachedSpriteDirty;for(var t=0;t<this.graphicsData.length;++t)e.graphicsData.push(this.graphicsData[t].clone());return e.currentPath=e.graphicsData[e.graphicsData.length-1],e.updateLocalBounds(),e},T.prototype._quadraticCurveLength=function(e,t,r,n,i,o){var a=e-2*r+i,s=t-2*n+o,u=2*r-2*e,c=2*n-2*t,l=4*(a*a+s*s),f=4*(a*u+s*c),h=u*u+c*c,d=2*Math.sqrt(l+f+h),p=Math.sqrt(l),m=2*l*p,g=2*Math.sqrt(h),v=f/p;return(m*d+p*f*(d-g)+(4*h*l-f*f)*Math.log((2*p+v+d)/(v+g)))/(4*m)},T.prototype._bezierCurveLength=function(e,t,r,n,i,o,a,s){for(var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=e,b=t,x=1;x<=10;++x)v=_-(m=(p=(d=(h=1-(c=x/10))*h)*h)*e+3*d*c*r+3*h*(l=c*c)*i+(f=l*c)*a),y=b-(g=p*t+3*d*c*n+3*h*l*o+f*s),_=m,b=g,u+=Math.sqrt(v*v+y*y);return u},T.prototype._segmentsCount=function(e){var t=Math.ceil(e/T.CURVES.maxLength);return t<T.CURVES.minSegments?t=T.CURVES.minSegments:t>T.CURVES.maxSegments&&(t=T.CURVES.maxSegments),t},T.prototype.lineStyle=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:.5;if(this.lineWidth=e,this.lineColor=t,this.lineAlpha=r,this.lineAlignment=n,this.currentPath)if(this.currentPath.shape.points.length){var i=new c.Polygon(this.currentPath.shape.points.slice(-2));i.closed=!1,this.drawShape(i)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha,this.currentPath.lineAlignment=this.lineAlignment;return this},T.prototype.moveTo=function(e,t){var r=new c.Polygon([e,t]);return r.closed=!1,this.drawShape(r),this},T.prototype.lineTo=function(e,t){var r=this.currentPath.shape.points,n=r[r.length-2],i=r[r.length-1];return n===e&&i===t||(r.push(e,t),this.dirty++),this},T.prototype.quadraticCurveTo=function(e,t,r,n){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var i=this.currentPath.shape.points,o=0,a=0;0===i.length&&this.moveTo(0,0);for(var s=i[i.length-2],u=i[i.length-1],c=T.CURVES.adaptive?this._segmentsCount(this._quadraticCurveLength(s,u,e,t,r,n)):20,l=1;l<=c;++l){var f=l/c;o=s+(e-s)*f,a=u+(t-u)*f,i.push(o+(e+(r-e)*f-o)*f,a+(t+(n-t)*f-a)*f)}return this.dirty++,this},T.prototype.bezierCurveTo=function(e,t,r,n,i,o){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var a=this.currentPath.shape.points,s=a[a.length-2],u=a[a.length-1];a.length-=2;var c=T.CURVES.adaptive?this._segmentsCount(this._bezierCurveLength(s,u,e,t,r,n,i,o)):20;return(0,h.default)(s,u,e,t,r,n,i,o,c,a),this.dirty++,this},T.prototype.arcTo=function(e,t,r,n,i){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(e,t):this.moveTo(e,t);var o=this.currentPath.shape.points,a=o[o.length-2],s=o[o.length-1]-t,u=a-e,c=n-t,l=r-e,f=Math.abs(s*l-u*c);if(f<1e-8||0===i)o[o.length-2]===e&&o[o.length-1]===t||o.push(e,t);else{var h=s*s+u*u,d=c*c+l*l,p=s*c+u*l,m=i*Math.sqrt(h)/f,g=i*Math.sqrt(d)/f,v=m*p/h,y=g*p/d,_=m*l+g*u,b=m*c+g*s,x=u*(g+v),w=s*(g+v),T=l*(m+y),S=c*(m+y),M=Math.atan2(w-b,x-_),P=Math.atan2(S-b,T-_);this.arc(_+e,b+t,i,M,P,l*s<u*c)}return this.dirty++,this},T.prototype.arc=function(e,t,r,n,i){var o=5<arguments.length&&void 0!==arguments[5]&&arguments[5];if(n===i)return this;!o&&i<=n?i+=S.PI_2:o&&n<=i&&(n+=S.PI_2);var a=i-n,s=T.CURVES.adaptive?this._segmentsCount(Math.abs(a)*r):40*Math.ceil(Math.abs(a)/S.PI_2);if(0==a)return this;var u=e+Math.cos(n)*r,c=t+Math.sin(n)*r,l=this.currentPath?this.currentPath.shape.points:null;if(l){var f=Math.abs(l[l.length-2]-u),h=Math.abs(l[l.length-1]-c);f<.001&&h<.001||l.push(u,c)}else this.moveTo(u,c),l=this.currentPath.shape.points;for(var d=a/(2*s),p=2*d,m=Math.cos(d),g=Math.sin(d),v=s-1,y=v%1/v,_=0;_<=v;++_){var b=d+n+p*(_+y*_),x=Math.cos(b),w=-Math.sin(b);l.push((m*x+g*w)*r+e,(m*-w+g*x)*r+t)}return this.dirty++,this},T.prototype.beginFill=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=e,this.fillAlpha=t,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},T.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},T.prototype.drawRect=function(e,t,r,n){return this.drawShape(new c.Rectangle(e,t,r,n)),this},T.prototype.drawRoundedRect=function(e,t,r,n,i){return this.drawShape(new c.RoundedRectangle(e,t,r,n,i)),this},T.prototype.drawCircle=function(e,t,r){return this.drawShape(new c.Circle(e,t,r)),this},T.prototype.drawEllipse=function(e,t,r,n){return this.drawShape(new c.Ellipse(e,t,r,n)),this},T.prototype.drawPolygon=function(e){var t=e,r=!0;if(t instanceof c.Polygon&&(r=t.closed,t=t.points),!Array.isArray(t)){t=new Array(arguments.length);for(var n=0;n<t.length;++n)t[n]=arguments[n]}var i=new c.Polygon(t);return i.closed=r,this.drawShape(i),this},T.prototype.drawStar=function(e,t,r,n,i){var o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;i=i||n/2;for(var a=-1*Math.PI/2+o,s=2*r,u=S.PI_2/s,c=[],l=0;l<s;l++){var f=l%2?i:n,h=l*u+a;c.push(e+f*Math.cos(h),t+f*Math.sin(h))}return this.drawPolygon(c)},T.prototype.clear=function(){return(this.lineWidth||this.filling||0<this.graphicsData.length)&&(this.lineWidth=0,this.lineAlignment=.5,this.filling=!1,this.boundsDirty=-1,this.canvasTintDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},T.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===S.SHAPES.RECT&&!this.graphicsData[0].lineWidth},T.prototype._renderWebGL=function(e){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(e):(e.setObjectRenderer(e.plugins.graphics),e.plugins.graphics.render(this))},T.prototype._renderSpriteRect=function(e){var t=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new u.default(new a.default(a.default.WHITE)));var r=this._spriteRect,n=this.graphicsData[0].fillColor;if(16777215===this.tint)r.tint=n;else if(this.tint!==this._prevRectTint||n!==this._prevRectFillColor){var i=v,o=y;(0,l.hex2rgb)(n,i),(0,l.hex2rgb)(this.tint,o),i[0]*=o[0],i[1]*=o[1],i[2]*=o[2],r.tint=(0,l.rgb2hex)(i),this._prevRectTint=this.tint,this._prevRectFillColor=n}r.alpha=this.graphicsData[0].fillAlpha,r.worldAlpha=this.worldAlpha*r.alpha,r.blendMode=this.blendMode,r._texture._frame.width=t.width,r._texture._frame.height=t.height,r.transform.worldTransform=this.transform.worldTransform,r.anchor.set(-t.x/t.width,-t.y/t.height),r._onAnchorUpdate(),r._renderWebGL(e)},T.prototype._renderCanvas=function(e){!0!==this.isMask&&e.plugins.graphics.render(this)},T.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var e=this._localBounds;this._bounds.addFrame(this.transform,e.minX,e.minY,e.maxX,e.maxY)},T.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,g);for(var t=this.graphicsData,r=0;r<t.length;++r){var n=t[r];if(n.fill&&(n.shape&&n.shape.contains(g.x,g.y))){if(n.holes)for(var i=0;i<n.holes.length;i++){if(n.holes[i].contains(g.x,g.y))return!1}return!0}}return!1},T.prototype.updateLocalBounds=function(){var e=1/0,t=-1/0,r=1/0,n=-1/0;if(this.graphicsData.length)for(var i=0,o=0,a=0,s=0,u=0,c=0;c<this.graphicsData.length;c++){var l=this.graphicsData[c],f=l.type,h=l.lineWidth*l.lineAlignment;if(i=l.shape,f===S.SHAPES.RECT||f===S.SHAPES.RREC)o=i.x-h,a=i.y-h,e=o<e?o:e,t=t<o+(s=i.width+2*h)?o+s:t,r=a<r?a:r,n=n<a+(u=i.height+2*h)?a+u:n;else if(f===S.SHAPES.CIRC)o=i.x,a=i.y,e=o-(s=i.radius+h)<e?o-s:e,t=t<o+s?o+s:t,r=a-(u=i.radius+h)<r?a-u:r,n=n<a+u?a+u:n;else if(f===S.SHAPES.ELIP)o=i.x,a=i.y,e=o-(s=i.width+h)<e?o-s:e,t=t<o+s?o+s:t,r=a-(u=i.height+h)<r?a-u:r,n=n<a+u?a+u:n;else for(var d=i.points,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0;w+2<d.length;w+=2)o=d[w],a=d[w+1],p=d[w+2],m=d[w+3],g=Math.abs(p-o),v=Math.abs(m-a),u=2*h,(s=Math.sqrt(g*g+v*v))<1e-9||(e=(b=(p+o)/2)-(y=(u/s*v+g)/2)<e?b-y:e,t=t<b+y?b+y:t,r=(x=(m+a)/2)-(_=(u/s*g+v)/2)<r?x-_:r,n=n<x+_?x+_:n)}else n=r=t=e=0;var T=this.boundsPadding;this._localBounds.minX=e-T,this._localBounds.maxX=t+T,this._localBounds.minY=r-T,this._localBounds.maxY=n+T},T.prototype.drawShape=function(e){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var t=new s.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,e,this.lineAlignment);return this.graphicsData.push(t),t.type===S.SHAPES.POLY&&(t.shape.closed=t.shape.closed,this.currentPath=t),this.dirty++,t},T.prototype.generateCanvasTexture=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1,r=this.getLocalBounds(),n=o.default.create(r.width,r.height,e,t);p||(p=new d.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(m),m.invert(),m.tx-=r.x,m.ty-=r.y,p.render(this,n,!0,m);var i=a.default.fromCanvas(n.baseTexture._canvasRenderTarget.canvas,e,"graphics");return i.baseTexture.resolution=t,i.baseTexture.update(),i},T.prototype.closePath=function(){var e=this.currentPath;return e&&e.shape&&e.shape.close(),this},T.prototype.addHole=function(){var e=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(e.shape),this.currentPath=null,this},T.prototype.destroy=function(e){i.prototype.destroy.call(this,e);for(var t=0;t<this.graphicsData.length;++t)this.graphicsData[t].destroy();for(var r in this._webGL)for(var n=0;n<this._webGL[r].data.length;++n)this._webGL[r].data[n].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webGL=null,this._localBounds=null},T}(n.default);(r.default=_)._SPRITE_TEXTURE=null,_.CURVES={adaptive:!1,maxLength:10,minSegments:8,maxSegments:2048}},{"../const":46,"../display/Bounds":47,"../display/Container":48,"../math":70,"../renderers/canvas/CanvasRenderer":77,"../sprites/Sprite":102,"../textures/RenderTexture":113,"../textures/Texture":115,"../utils":125,"./GraphicsData":54,"./utils/bezierCurveTo":56}],54:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function c(e,t,r,n,i,o,a,s,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),this.lineWidth=e,this.lineAlignment=u,this.nativeLines=a,this.lineColor=t,this.lineAlpha=r,this._lineTint=t,this.fillColor=n,this.fillAlpha=i,this._fillTint=n,this.fill=o,this.holes=[],this.shape=s,this.type=s.type}return c.prototype.clone=function(){return new c(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape,this.lineAlignment)},c.prototype.addHole=function(e){this.holes.push(e)},c.prototype.destroy=function(){this.shape=null,this.holes=null},c}();r.default=n},{}],55:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../../renderers/canvas/CanvasRenderer"),o=(n=i)&&n.__esModule?n:{default:n},j=e("../../const");var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=this.renderer,r=t.context,n=e.worldAlpha,i=e.transform.worldTransform,o=t.resolution;r.setTransform(i.a*o,i.b*o,i.c*o,i.d*o,i.tx*o,i.ty*o),e.canvasTintDirty===e.dirty&&e._prevTint===e.tint||this.updateGraphicsTint(e),t.setBlendMode(e.blendMode);for(var a=0;a<e.graphicsData.length;a++){var s=e.graphicsData[a],u=s.shape,c=s._fillTint,l=s._lineTint;if(r.lineWidth=s.lineWidth,s.type===j.SHAPES.POLY){r.beginPath();var f=u.points,h=s.holes,d=void 0,p=void 0;r.moveTo(f[0],f[1]);for(var m=2;m<f.length;m+=2)r.lineTo(f[m],f[m+1]);if(u.closed&&r.closePath(),0<h.length){for(var g=d=0;g<f.length;g+=2)d+=f[g]*f[g+3]-f[g+1]*f[g+2];for(var v=0;v<h.length;v++){f=h[v].points;for(var y=p=0;y<f.length;y+=2)p+=f[y]*f[y+3]-f[y+1]*f[y+2];if(r.moveTo(f[0],f[1]),p*d<0)for(var _=2;_<f.length;_+=2)r.lineTo(f[_],f[_+1]);else for(var b=f.length-2;2<=b;b-=2)r.lineTo(f[b],f[b+1]);h[v].closed&&r.closePath()}}s.fill&&(r.globalAlpha=s.fillAlpha*n,r.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*n,r.strokeStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.stroke())}else if(s.type===j.SHAPES.RECT)(s.fillColor||0===s.fillColor)&&(r.globalAlpha=s.fillAlpha*n,r.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.fillRect(u.x,u.y,u.width,u.height)),s.lineWidth&&(r.globalAlpha=s.lineAlpha*n,r.strokeStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.strokeRect(u.x,u.y,u.width,u.height));else if(s.type===j.SHAPES.CIRC)r.beginPath(),r.arc(u.x,u.y,u.radius,0,2*Math.PI),r.closePath(),s.fill&&(r.globalAlpha=s.fillAlpha*n,r.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*n,r.strokeStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.stroke());else if(s.type===j.SHAPES.ELIP){var x=2*u.width,w=2*u.height,T=u.x-x/2,S=u.y-w/2;r.beginPath();var M=x/2*.5522848,P=w/2*.5522848,E=T+x,C=S+w,k=T+x/2,A=S+w/2;r.moveTo(T,A),r.bezierCurveTo(T,A-P,k-M,S,k,S),r.bezierCurveTo(k+M,S,E,A-P,E,A),r.bezierCurveTo(E,A+P,k+M,C,k,C),r.bezierCurveTo(k-M,C,T,A+P,T,A),r.closePath(),s.fill&&(r.globalAlpha=s.fillAlpha*n,r.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*n,r.strokeStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.stroke())}else if(s.type===j.SHAPES.RREC){var O=u.x,R=u.y,I=u.width,D=u.height,L=u.radius,N=Math.min(I,D)/2|0;L=N<L?N:L,r.beginPath(),r.moveTo(O,R+L),r.lineTo(O,R+D-L),r.quadraticCurveTo(O,R+D,O+L,R+D),r.lineTo(O+I-L,R+D),r.quadraticCurveTo(O+I,R+D,O+I,R+D-L),r.lineTo(O+I,R+L),r.quadraticCurveTo(O+I,R,O+I-L,R),r.lineTo(O+L,R),r.quadraticCurveTo(O,R,O,R+L),r.closePath(),(s.fillColor||0===s.fillColor)&&(r.globalAlpha=s.fillAlpha*n,r.fillStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.fill()),s.lineWidth&&(r.globalAlpha=s.lineAlpha*n,r.strokeStyle="#"+("00000"+(0|l).toString(16)).substr(-6),r.stroke())}}},t.prototype.updateGraphicsTint=function(e){e._prevTint=e.tint,e.canvasTintDirty=e.dirty;for(var t=(e.tint>>16&255)/255,r=(e.tint>>8&255)/255,n=(255&e.tint)/255,i=0;i<e.graphicsData.length;++i){var o=e.graphicsData[i],a=0|o.fillColor,s=0|o.lineColor;o._fillTint=((a>>16&255)/255*t*255<<16)+((a>>8&255)/255*r*255<<8)+(255&a)/255*n*255,o._lineTint=((s>>16&255)/255*t*255<<16)+((s>>8&255)/255*r*255<<8)+(255&s)/255*n*255}},t.prototype.renderPolygon=function(e,t,r){r.moveTo(e[0],e[1]);for(var n=1;n<e.length/2;++n)r.lineTo(e[2*n],e[2*n+1]);t&&r.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();r.default=a,o.default.registerPlugin("graphics",a)},{"../../const":46,"../../renderers/canvas/CanvasRenderer":77}],56:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r,n,i,o,a,s,u){var c=9<arguments.length&&void 0!==arguments[9]?arguments[9]:[],l=0,f=0,h=0,d=0,p=0;c.push(e,t);for(var m=1,g=0;m<=u;++m)h=(f=(l=1-(g=m/u))*l)*l,p=(d=g*g)*g,c.push(h*e+3*f*g*r+3*l*d*i+p*a,h*t+3*f*g*n+3*l*d*o+p*s);return c}},{}],57:[function(e,t,r){"use strict";r.__esModule=!0;var c=e("../../utils"),l=e("../../const"),i=s(e("../../renderers/webgl/utils/ObjectRenderer")),n=s(e("../../renderers/webgl/WebGLRenderer")),o=s(e("./WebGLGraphicsData")),a=s(e("./shaders/PrimitiveShader")),f=s(e("./utils/buildPoly")),h=s(e("./utils/buildRectangle")),d=s(e("./utils/buildRoundedRectangle")),p=s(e("./utils/buildCircle"));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.graphicsDataPool=[],t.primitiveShader=null,t.gl=e.gl,t.CONTEXT_UID=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new a.default(this.gl)},n.prototype.destroy=function(){i.default.prototype.destroy.call(this);for(var e=0;e<this.graphicsDataPool.length;++e)this.graphicsDataPool[e].destroy();this.graphicsDataPool=null},n.prototype.render=function(e){var t=this.renderer,r=t.gl,n=void 0,i=e._webGL[this.CONTEXT_UID];i&&e.dirty===i.dirty||(this.updateGraphics(e),i=e._webGL[this.CONTEXT_UID]);var o=this.primitiveShader;t.bindShader(o),t.state.setBlendMode(e.blendMode);for(var a=0,s=i.data.length;a<s;a++){var u=(n=i.data[a]).shader;t.bindShader(u),u.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),u.uniforms.tint=(0,c.hex2rgb)(e.tint),u.uniforms.alpha=e.worldAlpha,t.bindVao(n.vao),n.nativeLines?r.drawArrays(r.LINES,0,n.points.length/6):n.vao.draw(r.TRIANGLE_STRIP,n.indices.length)}},n.prototype.updateGraphics=function(e){var t=this.renderer.gl,r=e._webGL[this.CONTEXT_UID];if(r||(r=e._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:t,clearDirty:-1,dirty:-1}),r.dirty=e.dirty,e.clearDirty!==r.clearDirty){r.clearDirty=e.clearDirty;for(var n=0;n<r.data.length;n++)this.graphicsDataPool.push(r.data[n]);r.data.length=0,r.lastIndex=0}for(var i=void 0,o=void 0,a=r.lastIndex;a<e.graphicsData.length;a++){var s=e.graphicsData[a];i=this.getWebGLData(r,0),s.nativeLines&&s.lineWidth&&(o=this.getWebGLData(r,0,!0),r.lastIndex++),s.type===l.SHAPES.POLY&&(0,f.default)(s,i,o),s.type===l.SHAPES.RECT?(0,h.default)(s,i,o):s.type===l.SHAPES.CIRC||s.type===l.SHAPES.ELIP?(0,p.default)(s,i,o):s.type===l.SHAPES.RREC&&(0,d.default)(s,i,o),r.lastIndex++}this.renderer.bindVao(null);for(var u=0;u<r.data.length;u++)(i=r.data[u]).dirty&&i.upload()},n.prototype.getWebGLData=function(e,t,r){var n=e.data[e.data.length-1];return(!n||n.nativeLines!==r||32e4<n.points.length)&&((n=this.graphicsDataPool.pop()||new o.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=r,n.reset(t),e.data.push(n)),n.dirty=!0,n},n}(i.default);r.default=u,n.default.registerPlugin("graphics",u)},{"../../const":46,"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../utils":125,"./WebGLGraphicsData":58,"./shaders/PrimitiveShader":59,"./utils/buildCircle":60,"./utils/buildPoly":62,"./utils/buildRectangle":63,"./utils/buildRoundedRectangle":64}],58:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("pixi-gl-core"),o=(n=i)&&n.__esModule?n:{default:n};var a=function(){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.gl=e,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=o.default.GLBuffer.createVertexBuffer(e),this.indexBuffer=o.default.GLBuffer.createIndexBuffer(e),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=t,this.vao=new o.default.VertexArrayObject(e,r).addIndex(this.indexBuffer).addAttribute(this.buffer,t.attributes.aVertexPosition,e.FLOAT,!1,24,0).addAttribute(this.buffer,t.attributes.aColor,e.FLOAT,!1,24,8)}return n.prototype.reset=function(){this.points.length=0,this.indices.length=0},n.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},n.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},n}();r.default=a},{"pixi-gl-core":15}],59:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../../../Shader");var o=function(t){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o},{"../../../Shader":44}],60:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var n=e.shape,i=n.x,o=n.y,a=void 0,s=void 0;s=e.type===w.SHAPES.CIRC?(a=n.radius,n.radius):(a=n.width,n.height);if(0===a||0===s)return;var u=Math.floor(30*Math.sqrt(n.radius))||Math.floor(15*Math.sqrt(n.width+n.height)),c=2*Math.PI/u;if(e.fill){var l=(0,T.hex2rgb)(e.fillColor),f=e.fillAlpha,h=l[0]*f,d=l[1]*f,p=l[2]*f,m=t.points,g=t.indices,v=m.length/6;g.push(v);for(var y=0;y<u+1;y++)m.push(i,o,h,d,p,f),m.push(i+Math.sin(c*y)*a,o+Math.cos(c*y)*s,h,d,p,f),g.push(v++,v++);g.push(v-1)}if(e.lineWidth){var _=e.points;e.points=[];for(var b=0;b<u;b++)e.points.push(i+Math.sin(c*-b)*a,o+Math.cos(c*-b)*s);e.points.push(e.points[0],e.points[1]),(0,x.default)(e,t,r),e.points=_}};var n,i=e("./buildLine"),x=(n=i)&&n.__esModule?n:{default:n},w=e("../../../const"),T=e("../../../utils")},{"../../../const":46,"../../../utils":125,"./buildLine":61}],61:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){e.nativeLines?function(e,t){var r=0,n=e.points;if(0===n.length)return;var i=t.points,o=n.length/2,a=(0,W.hex2rgb)(e.lineColor),s=e.lineAlpha,u=a[0]*s,c=a[1]*s,l=a[2]*s;for(r=1;r<o;r++){var f=n[2*(r-1)],h=n[2*(r-1)+1],d=n[2*r],p=n[2*r+1];i.push(f,h),i.push(u,c,l,s),i.push(d,p),i.push(u,c,l,s)}}(e,r):function(e,t){var r=e.points;if(0===r.length)return;var n=new G.Point(r[0],r[1]),i=new G.Point(r[r.length-2],r[r.length-1]);if(n.x===i.x&&n.y===i.y){(r=r.slice()).pop(),r.pop();var o=(i=new G.Point(r[r.length-2],r[r.length-1])).x+.5*(n.x-i.x),a=i.y+.5*(n.y-i.y);r.unshift(o,a),r.push(o,a)}var s=t.points,u=t.indices,c=r.length/2,l=r.length,f=s.length/6,h=e.lineWidth/2,d=(0,W.hex2rgb)(e.lineColor),p=e.lineAlpha,m=d[0]*p,g=d[1]*p,v=d[2]*p,y=r[0],_=r[1],b=r[2],x=r[3],w=0,T=0,S=-(_-x),M=y-b,P=0,E=0,C=0,k=0,A=Math.sqrt(S*S+M*M);S/=A,M/=A,S*=h,M*=h;var O=e.lineAlignment,R=2*(1-O),I=2*O;s.push(y-S*R,_-M*R,m,g,v,p),s.push(y+S*I,_+M*I,m,g,v,p);for(var D=1;D<c-1;++D){y=r[2*(D-1)],_=r[2*(D-1)+1],b=r[2*D],x=r[2*D+1],w=r[2*(D+1)],T=r[2*(D+1)+1],S=-(_-x),M=y-b,A=Math.sqrt(S*S+M*M),S/=A,M/=A,S*=h,M*=h,P=-(x-T),E=b-w,A=Math.sqrt(P*P+E*E),P/=A,E/=A;var L=-M+_-(-M+x),N=-S+b-(-S+y),j=(-S+y)*(-M+x)-(-S+b)*(-M+_),F=-(E*=h)+T-(-E+x),B=-(P*=h)+b-(-P+w),z=(-P+w)*(-E+x)-(-P+b)*(-E+T),U=L*B-F*N;if(Math.abs(U)<.1)U+=10.1,s.push(b-S*R,x-M*R,m,g,v,p),s.push(b+S*I,x+M*I,m,g,v,p);else{var X=(N*z-B*j)/U,q=(F*j-L*z)/U,H=(X-b)*(X-b)+(q-x)*(q-x);196*h*h<H?(C=S-P,k=M-E,A=Math.sqrt(C*C+k*k),C/=A,k/=A,C*=h,k*=h,s.push(b-C*R,x-k*R),s.push(m,g,v,p),s.push(b+C*I,x+k*I),s.push(m,g,v,p),s.push(b-C*I*R,x-k*R),s.push(m,g,v,p),l++):(s.push(b+(X-b)*R,x+(q-x)*R),s.push(m,g,v,p),s.push(b-(X-b)*I,x-(q-x)*I),s.push(m,g,v,p))}}y=r[2*(c-2)],_=r[2*(c-2)+1],b=r[2*(c-1)],x=r[2*(c-1)+1],S=-(_-x),M=y-b,A=Math.sqrt(S*S+M*M),S/=A,M/=A,S*=h,M*=h,s.push(b-S*R,x-M*R),s.push(m,g,v,p),s.push(b+S*I,x+M*I),s.push(m,g,v,p),u.push(f);for(var Y=0;Y<l;++Y)u.push(f++);u.push(f-1)}(e,t)};var G=e("../../../math"),W=e("../../../utils")},{"../../../math":70,"../../../utils":125}],62:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){e.points=e.shape.points.slice();var n=e.points;if(e.fill&&6<=n.length){for(var i=[],o=e.holes,a=0;a<o.length;a++){var s=o[a];i.push(n.length/2),n=n.concat(s.points)}var u=t.points,c=t.indices,l=n.length/2,f=(0,x.hex2rgb)(e.fillColor),h=e.fillAlpha,d=f[0]*h,p=f[1]*h,m=f[2]*h,g=(0,w.default)(n,i,2);if(!g)return;for(var v=u.length/6,y=0;y<g.length;y+=3)c.push(g[y]+v),c.push(g[y]+v),c.push(g[y+1]+v),c.push(g[y+2]+v),c.push(g[y+2]+v);for(var _=0;_<l;_++)u.push(n[2*_],n[2*_+1],d,p,m,h)}0<e.lineWidth&&(0,b.default)(e,t,r)};var b=n(e("./buildLine")),x=e("../../../utils"),w=n(e("earcut"));function n(e){return e&&e.__esModule?e:{default:e}}},{"../../../utils":125,"./buildLine":61,earcut:2}],63:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var n=e.shape,i=n.x,o=n.y,a=n.width,s=n.height;if(e.fill){var u=(0,y.hex2rgb)(e.fillColor),c=e.fillAlpha,l=u[0]*c,f=u[1]*c,h=u[2]*c,d=t.points,p=t.indices,m=d.length/6;d.push(i,o),d.push(l,f,h,c),d.push(i+a,o),d.push(l,f,h,c),d.push(i,o+s),d.push(l,f,h,c),d.push(i+a,o+s),d.push(l,f,h,c),p.push(m,m,1+m,2+m,3+m,3+m)}if(e.lineWidth){var g=e.points;e.points=[i,o,i+a,o,i+a,o+s,i,o+s,i,o],(0,v.default)(e,t,r),e.points=g}};var n,i=e("./buildLine"),v=(n=i)&&n.__esModule?n:{default:n},y=e("../../../utils")},{"../../../utils":125,"./buildLine":61}],64:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var n=e.shape,i=n.x,o=n.y,a=n.width,s=n.height,u=n.radius,c=[];if(c.push(i+u,o),E(i+a-u,o,i+a,o,i+a,o+u,c),E(i+a,o+s-u,i+a,o+s,i+a-u,o+s,c),E(i+u,o+s,i,o+s,i,o+s-u,c),E(i,o+u,i,o,i+u+1e-10,o,c),e.fill){for(var l=(0,P.hex2rgb)(e.fillColor),f=e.fillAlpha,h=l[0]*f,d=l[1]*f,p=l[2]*f,m=t.points,g=t.indices,v=m.length/6,y=(0,S.default)(c,null,2),_=0,b=y.length;_<b;_+=3)g.push(y[_]+v),g.push(y[_]+v),g.push(y[_+1]+v),g.push(y[_+2]+v),g.push(y[_+2]+v);for(var x=0,w=c.length;x<w;x++)m.push(c[x],c[++x],h,d,p,f)}if(e.lineWidth){var T=e.points;e.points=c,(0,M.default)(e,t,r),e.points=T}};var S=n(e("earcut")),M=n(e("./buildLine")),P=e("../../../utils");function n(e){return e&&e.__esModule?e:{default:e}}function m(e,t,r){return e+(t-e)*r}function E(e,t,r,n,i,o){for(var a=6<arguments.length&&void 0!==arguments[6]?arguments[6]:[],s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;d<=20;++d)s=m(e,r,p=d/20),u=m(t,n,p),c=m(r,i,p),l=m(n,o,p),f=m(s,c,p),h=m(u,l,p),a.push(f,h);return a}},{"../../../utils":125,"./buildLine":61,earcut:2}],65:[function(e,t,r){"use strict";r.__esModule=!0,r.autoDetectRenderer=r.Application=r.Filter=r.SpriteMaskFilter=r.Quad=r.RenderTarget=r.ObjectRenderer=r.WebGLManager=r.Shader=r.CanvasRenderTarget=r.TextureUvs=r.VideoBaseTexture=r.BaseRenderTexture=r.RenderTexture=r.BaseTexture=r.TextureMatrix=r.Texture=r.Spritesheet=r.CanvasGraphicsRenderer=r.GraphicsRenderer=r.GraphicsData=r.Graphics=r.TextMetrics=r.TextStyle=r.Text=r.SpriteRenderer=r.CanvasTinter=r.CanvasSpriteRenderer=r.Sprite=r.TransformBase=r.TransformStatic=r.Transform=r.Container=r.DisplayObject=r.Bounds=r.glCore=r.WebGLRenderer=r.CanvasRenderer=r.ticker=r.utils=r.settings=void 0;var n=e("./const");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return n[e]}})});var i=e("./math");Object.keys(i).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(r,e,{enumerable:!0,get:function(){return i[e]}})});var o=e("pixi-gl-core");Object.defineProperty(r,"glCore",{enumerable:!0,get:function(){return W(o).default}});var a=e("./display/Bounds");Object.defineProperty(r,"Bounds",{enumerable:!0,get:function(){return W(a).default}});var s=e("./display/DisplayObject");Object.defineProperty(r,"DisplayObject",{enumerable:!0,get:function(){return W(s).default}});var u=e("./display/Container");Object.defineProperty(r,"Container",{enumerable:!0,get:function(){return W(u).default}});var c=e("./display/Transform");Object.defineProperty(r,"Transform",{enumerable:!0,get:function(){return W(c).default}});var l=e("./display/TransformStatic");Object.defineProperty(r,"TransformStatic",{enumerable:!0,get:function(){return W(l).default}});var f=e("./display/TransformBase");Object.defineProperty(r,"TransformBase",{enumerable:!0,get:function(){return W(f).default}});var h=e("./sprites/Sprite");Object.defineProperty(r,"Sprite",{enumerable:!0,get:function(){return W(h).default}});var d=e("./sprites/canvas/CanvasSpriteRenderer");Object.defineProperty(r,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return W(d).default}});var p=e("./sprites/canvas/CanvasTinter");Object.defineProperty(r,"CanvasTinter",{enumerable:!0,get:function(){return W(p).default}});var m=e("./sprites/webgl/SpriteRenderer");Object.defineProperty(r,"SpriteRenderer",{enumerable:!0,get:function(){return W(m).default}});var g=e("./text/Text");Object.defineProperty(r,"Text",{enumerable:!0,get:function(){return W(g).default}});var v=e("./text/TextStyle");Object.defineProperty(r,"TextStyle",{enumerable:!0,get:function(){return W(v).default}});var y=e("./text/TextMetrics");Object.defineProperty(r,"TextMetrics",{enumerable:!0,get:function(){return W(y).default}});var _=e("./graphics/Graphics");Object.defineProperty(r,"Graphics",{enumerable:!0,get:function(){return W(_).default}});var b=e("./graphics/GraphicsData");Object.defineProperty(r,"GraphicsData",{enumerable:!0,get:function(){return W(b).default}});var x=e("./graphics/webgl/GraphicsRenderer");Object.defineProperty(r,"GraphicsRenderer",{enumerable:!0,get:function(){return W(x).default}});var w=e("./graphics/canvas/CanvasGraphicsRenderer");Object.defineProperty(r,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return W(w).default}});var T=e("./textures/Spritesheet");Object.defineProperty(r,"Spritesheet",{enumerable:!0,get:function(){return W(T).default}});var S=e("./textures/Texture");Object.defineProperty(r,"Texture",{enumerable:!0,get:function(){return W(S).default}});var M=e("./textures/TextureMatrix");Object.defineProperty(r,"TextureMatrix",{enumerable:!0,get:function(){return W(M).default}});var P=e("./textures/BaseTexture");Object.defineProperty(r,"BaseTexture",{enumerable:!0,get:function(){return W(P).default}});var E=e("./textures/RenderTexture");Object.defineProperty(r,"RenderTexture",{enumerable:!0,get:function(){return W(E).default}});var C=e("./textures/BaseRenderTexture");Object.defineProperty(r,"BaseRenderTexture",{enumerable:!0,get:function(){return W(C).default}});var k=e("./textures/VideoBaseTexture");Object.defineProperty(r,"VideoBaseTexture",{enumerable:!0,get:function(){return W(k).default}});var A=e("./textures/TextureUvs");Object.defineProperty(r,"TextureUvs",{enumerable:!0,get:function(){return W(A).default}});var O=e("./renderers/canvas/utils/CanvasRenderTarget");Object.defineProperty(r,"CanvasRenderTarget",{enumerable:!0,get:function(){return W(O).default}});var R=e("./Shader");Object.defineProperty(r,"Shader",{enumerable:!0,get:function(){return W(R).default}});var I=e("./renderers/webgl/managers/WebGLManager");Object.defineProperty(r,"WebGLManager",{enumerable:!0,get:function(){return W(I).default}});var D=e("./renderers/webgl/utils/ObjectRenderer");Object.defineProperty(r,"ObjectRenderer",{enumerable:!0,get:function(){return W(D).default}});var L=e("./renderers/webgl/utils/RenderTarget");Object.defineProperty(r,"RenderTarget",{enumerable:!0,get:function(){return W(L).default}});var N=e("./renderers/webgl/utils/Quad");Object.defineProperty(r,"Quad",{enumerable:!0,get:function(){return W(N).default}});var j=e("./renderers/webgl/filters/spriteMask/SpriteMaskFilter");Object.defineProperty(r,"SpriteMaskFilter",{enumerable:!0,get:function(){return W(j).default}});var F=e("./renderers/webgl/filters/Filter");Object.defineProperty(r,"Filter",{enumerable:!0,get:function(){return W(F).default}});var B=e("./Application");Object.defineProperty(r,"Application",{enumerable:!0,get:function(){return W(B).default}});var z=e("./autoDetectRenderer");Object.defineProperty(r,"autoDetectRenderer",{enumerable:!0,get:function(){return z.autoDetectRenderer}});var U=G(e("./utils")),X=G(e("./ticker")),q=W(e("./settings")),H=W(e("./renderers/canvas/CanvasRenderer")),Y=W(e("./renderers/webgl/WebGLRenderer"));function G(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function W(e){return e&&e.__esModule?e:{default:e}}r.settings=q.default,r.utils=U,r.ticker=X,r.CanvasRenderer=H.default,r.WebGLRenderer=Y.default},{"./Application":43,"./Shader":44,"./autoDetectRenderer":45,"./const":46,"./display/Bounds":47,"./display/Container":48,"./display/DisplayObject":49,"./display/Transform":50,"./display/TransformBase":51,"./display/TransformStatic":52,"./graphics/Graphics":53,"./graphics/GraphicsData":54,"./graphics/canvas/CanvasGraphicsRenderer":55,"./graphics/webgl/GraphicsRenderer":57,"./math":70,"./renderers/canvas/CanvasRenderer":77,"./renderers/canvas/utils/CanvasRenderTarget":79,"./renderers/webgl/WebGLRenderer":84,"./renderers/webgl/filters/Filter":86,"./renderers/webgl/filters/spriteMask/SpriteMaskFilter":89,"./renderers/webgl/managers/WebGLManager":93,"./renderers/webgl/utils/ObjectRenderer":94,"./renderers/webgl/utils/Quad":95,"./renderers/webgl/utils/RenderTarget":96,"./settings":101,"./sprites/Sprite":102,"./sprites/canvas/CanvasSpriteRenderer":103,"./sprites/canvas/CanvasTinter":104,"./sprites/webgl/SpriteRenderer":106,"./text/Text":108,"./text/TextMetrics":109,"./text/TextStyle":110,"./textures/BaseRenderTexture":111,"./textures/BaseTexture":112,"./textures/RenderTexture":113,"./textures/Spritesheet":114,"./textures/Texture":115,"./textures/TextureMatrix":116,"./textures/TextureUvs":117,"./textures/VideoBaseTexture":118,"./ticker":121,"./utils":125,"pixi-gl-core":15}],66:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./Matrix"),l=(n=i)&&n.__esModule?n:{default:n};var f=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],h=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],d=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],p=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],m=[],g=[];function v(e){return e<0?-1:0<e?1:0}!function(){for(var e=0;e<16;e++){var t=[];g.push(t);for(var r=0;r<16;r++)for(var n=v(f[e]*f[r]+d[e]*h[r]),i=v(h[e]*f[r]+p[e]*h[r]),o=v(f[e]*d[r]+d[e]*p[r]),a=v(h[e]*d[r]+p[e]*p[r]),s=0;s<16;s++)if(f[s]===n&&h[s]===i&&d[s]===o&&p[s]===a){t.push(s);break}}for(var u=0;u<16;u++){var c=new l.default;c.set(f[u],h[u],d[u],p[u],0,0),m.push(c)}}();var o={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(e){return f[e]},uY:function(e){return h[e]},vX:function(e){return d[e]},vY:function(e){return p[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return g[e][t]},sub:function(e,t){return g[e][o.inv(t)]},rotate180:function(e){return 4^e},isVertical:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?0<=t?o.S:o.N:2*Math.abs(t)<=Math.abs(e)?0<e?o.E:o.W:0<t?0<e?o.SE:o.SW:0<e?o.NE:o.NW},matrixAppendRotationInv:function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,i=m[o.inv(t)];i.tx=r,i.ty=n,e.append(i)}};r.default=o},{"./Matrix":67}],67:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("./Point"),s=(n=o)&&n.__esModule?n:{default:n},u=e("../const");var a=function(){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:1,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:0,o=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o,this.array=null}return a.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},a.prototype.set=function(e,t,r,n,i,o){return this.a=e,this.b=t,this.c=r,this.d=n,this.tx=i,this.ty=o,this},a.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var r=t||this.array;return e?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0),r[8]=1,r},a.prototype.apply=function(e,t){t=t||new s.default;var r=e.x,n=e.y;return t.x=this.a*r+this.c*n+this.tx,t.y=this.b*r+this.d*n+this.ty,t},a.prototype.applyInverse=function(e,t){t=t||new s.default;var r=1/(this.a*this.d+this.c*-this.b),n=e.x,i=e.y;return t.x=this.d*r*n+-this.c*r*i+(this.ty*this.c-this.tx*this.d)*r,t.y=this.a*r*i+-this.b*r*n+(-this.ty*this.a+this.tx*this.b)*r,t},a.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},a.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},a.prototype.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),n=this.a,i=this.c,o=this.tx;return this.a=n*t-this.b*r,this.b=n*r+this.b*t,this.c=i*t-this.d*r,this.d=i*r+this.d*t,this.tx=o*t-this.ty*r,this.ty=o*r+this.ty*t,this},a.prototype.append=function(e){var t=this.a,r=this.b,n=this.c,i=this.d;return this.a=e.a*t+e.b*n,this.b=e.a*r+e.b*i,this.c=e.c*t+e.d*n,this.d=e.c*r+e.d*i,this.tx=e.tx*t+e.ty*n+this.tx,this.ty=e.tx*r+e.ty*i+this.ty,this},a.prototype.setTransform=function(e,t,r,n,i,o,a,s,u){return this.a=Math.cos(a+u)*i,this.b=Math.sin(a+u)*i,this.c=-Math.sin(a-s)*o,this.d=Math.cos(a-s)*o,this.tx=e-(r*this.a+n*this.c),this.ty=t-(r*this.b+n*this.d),this},a.prototype.prepend=function(e){var t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){var r=this.a,n=this.c;this.a=r*e.a+this.b*e.c,this.b=r*e.b+this.b*e.d,this.c=n*e.a+this.d*e.c,this.d=n*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},a.prototype.decompose=function(e){var t=this.a,r=this.b,n=this.c,i=this.d,o=-Math.atan2(-n,i),a=Math.atan2(r,t),s=Math.abs(o+a);return s<1e-5||Math.abs(u.PI_2-s)<1e-5?(e.rotation=a,t<0&&0<=i&&(e.rotation+=e.rotation<=0?Math.PI:-Math.PI),e.skew.x=e.skew.y=0):(e.rotation=0,e.skew.x=o,e.skew.y=a),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(n*n+i*i),e.position.x=this.tx,e.position.y=this.ty,e},a.prototype.invert=function(){var e=this.a,t=this.b,r=this.c,n=this.d,i=this.tx,o=e*n-t*r;return this.a=n/o,this.b=-t/o,this.c=-r/o,this.d=e/o,this.tx=(r*this.ty-n*i)/o,this.ty=-(e*this.ty-t*i)/o,this},a.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},a.prototype.clone=function(){var e=new a;return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},a.prototype.copy=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},i(a,null,[{key:"IDENTITY",get:function(){return new a}},{key:"TEMP_MATRIX",get:function(){return new a}}]),a}();r.default=a},{"../const":46,"./Point":69}],68:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();var i=function(){function i(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this._x=r,this._y=n,this.cb=e,this.scope=t}return i.prototype.clone=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new i(e||this.cb,t||this.scope,this._x,this._y)},i.prototype.set=function(e,t){var r=e||0,n=t||(0!==t?r:0);this._x===r&&this._y===n||(this._x=r,this._y=n,this.cb.call(this.scope))},i.prototype.copy=function(e){this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope))},i.prototype.equals=function(e){return e.x===this._x&&e.y===this._y},n(i,[{key:"x",get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}}]),i}();r.default=i},{}],69:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function r(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.x=e,this.y=t}return r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.copy=function(e){this.set(e.x,e.y)},r.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},r.prototype.set=function(e,t){this.x=e||0,this.y=t||(0!==t?this.x:0)},r}();r.default=n},{}],70:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./Point");Object.defineProperty(r,"Point",{enumerable:!0,get:function(){return h(n).default}});var i=e("./ObservablePoint");Object.defineProperty(r,"ObservablePoint",{enumerable:!0,get:function(){return h(i).default}});var o=e("./Matrix");Object.defineProperty(r,"Matrix",{enumerable:!0,get:function(){return h(o).default}});var a=e("./GroupD8");Object.defineProperty(r,"GroupD8",{enumerable:!0,get:function(){return h(a).default}});var s=e("./shapes/Circle");Object.defineProperty(r,"Circle",{enumerable:!0,get:function(){return h(s).default}});var u=e("./shapes/Ellipse");Object.defineProperty(r,"Ellipse",{enumerable:!0,get:function(){return h(u).default}});var c=e("./shapes/Polygon");Object.defineProperty(r,"Polygon",{enumerable:!0,get:function(){return h(c).default}});var l=e("./shapes/Rectangle");Object.defineProperty(r,"Rectangle",{enumerable:!0,get:function(){return h(l).default}});var f=e("./shapes/RoundedRectangle");function h(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"RoundedRectangle",{enumerable:!0,get:function(){return h(f).default}})},{"./GroupD8":66,"./Matrix":67,"./ObservablePoint":68,"./Point":69,"./shapes/Circle":71,"./shapes/Ellipse":72,"./shapes/Polygon":73,"./shapes/Rectangle":74,"./shapes/RoundedRectangle":75}],71:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./Rectangle"),o=(n=i)&&n.__esModule?n:{default:n},a=e("../../const");var s=function(){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.x=e,this.y=t,this.radius=r,this.type=a.SHAPES.CIRC}return n.prototype.clone=function(){return new n(this.x,this.y,this.radius)},n.prototype.contains=function(e,t){if(this.radius<=0)return!1;var r=this.radius*this.radius,n=this.x-e,i=this.y-t;return(n*=n)+(i*=i)<=r},n.prototype.getBounds=function(){return new o.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},n}();r.default=s},{"../../const":46,"./Rectangle":74}],72:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./Rectangle"),o=(n=i)&&n.__esModule?n:{default:n},a=e("../../const");var s=function(){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.x=e,this.y=t,this.width=r,this.height=n,this.type=a.SHAPES.ELIP}return i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var r=(e-this.x)/this.width,n=(t-this.y)/this.height;return(r*=r)+(n*=n)<=1},i.prototype.getBounds=function(){return new o.default(this.x-this.width,this.y-this.height,this.width,this.height)},i}();r.default=s},{"../../const":46,"./Rectangle":74}],73:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../Point"),s=(n=i)&&n.__esModule?n:{default:n},u=e("../../const");var o=function(){function a(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),Array.isArray(t[0])&&(t=t[0]),t[0]instanceof s.default){for(var n=[],i=0,o=t.length;i<o;i++)n.push(t[i].x,t[i].y);t=n}this.closed=!0,this.points=t,this.type=u.SHAPES.POLY}return a.prototype.clone=function(){return new a(this.points.slice())},a.prototype.close=function(){var e=this.points;e[0]===e[e.length-2]&&e[1]===e[e.length-1]||e.push(e[0],e[1])},a.prototype.contains=function(e,t){for(var r=!1,n=this.points.length/2,i=0,o=n-1;i<n;o=i++){var a=this.points[2*i],s=this.points[2*i+1],u=this.points[2*o],c=this.points[2*o+1];t<s!=t<c&&e<(t-s)/(c-s)*(u-a)+a&&(r=!r)}return r},a}();r.default=o},{"../../const":46,"../Point":69}],74:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../../const");var i=function(){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.x=Number(e),this.y=Number(t),this.width=Number(r),this.height=Number(n),this.type=o.SHAPES.RECT}return i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height)},i.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},i.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height)},i.prototype.pad=function(e,t){e=e||0,t=t||(0!==t?e:0),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t},i.prototype.fit=function(e){var t=Math.max(this.x,e.x),r=Math.min(this.x+this.width,e.x+e.width),n=Math.max(this.y,e.y),i=Math.min(this.y+this.height,e.y+e.height);this.x=t,this.width=Math.max(r-t,0),this.y=n,this.height=Math.max(i-n,0)},i.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),n=Math.min(this.y,e.y),i=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=r-t,this.y=n,this.height=i-n},i.prototype.ceil=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:.001,r=Math.ceil((this.x+this.width-t)*e)/e,n=Math.ceil((this.y+this.height-t)*e)/e;this.x=Math.floor((this.x+t)*e)/e,this.y=Math.floor((this.y+t)*e)/e,this.width=r-this.x,this.height=n-this.y},n(i,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new i(0,0,0,0)}}]),i}();r.default=i},{"../../const":46}],75:[function(e,t,r){"use strict";r.__esModule=!0;var a=e("../../const");var n=function(){function o(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:20;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),this.x=e,this.y=t,this.width=r,this.height=n,this.radius=i,this.type=a.SHAPES.RREC}return o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.radius)},o.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){if(t>=this.y+this.radius&&t<=this.y+this.height-this.radius||e>=this.x+this.radius&&e<=this.x+this.width-this.radius)return!0;var r=e-(this.x+this.radius),n=t-(this.y+this.radius),i=this.radius*this.radius;if(r*r+n*n<=i)return!0;if((r=e-(this.x+this.width-this.radius))*r+n*n<=i)return!0;if(r*r+(n=t-(this.y+this.height-this.radius))*n<=i)return!0;if((r=e-(this.x+this.radius))*r+n*n<=i)return!0}return!1},o}();r.default=n},{"../../const":46}],76:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),s=e("../utils"),u=e("../math"),c=e("../const"),l=o(e("../settings")),f=o(e("../display/Container")),h=o(e("../textures/RenderTexture")),i=o(e("eventemitter3"));function o(e){return e&&e.__esModule?e:{default:e}}var d=new u.Matrix,a=function(o){function a(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this));return(0,s.sayHello)(e),"number"==typeof t&&(t=Object.assign({width:t,height:r||l.default.RENDER_OPTIONS.height},n)),t=Object.assign({},l.default.RENDER_OPTIONS,t),i.options=t,i.type=c.RENDERER_TYPE.UNKNOWN,i.screen=new u.Rectangle(0,0,t.width,t.height),i.view=t.view||document.createElement("canvas"),i.resolution=t.resolution||l.default.RESOLUTION,i.transparent=t.transparent,i.autoResize=t.autoResize||!1,i.blendModes=null,i.preserveDrawingBuffer=t.preserveDrawingBuffer,i.clearBeforeRender=t.clearBeforeRender,i.roundPixels=t.roundPixels,i._backgroundColor=0,i._backgroundColorRgba=[0,0,0,0],i._backgroundColorString="#000000",i.backgroundColor=t.backgroundColor||i._backgroundColor,i._tempDisplayObjectParent=new f.default,i._lastObjectRendered=i._tempDisplayObjectParent,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.resize=function(e,t){this.screen.width=e,this.screen.height=t,this.view.width=e*this.resolution,this.view.height=t*this.resolution,this.autoResize&&(this.view.style.width=e+"px",this.view.style.height=t+"px")},a.prototype.generateTexture=function(e,t,r,n){n=n||e.getLocalBounds();var i=h.default.create(0|n.width,0|n.height,t,r);return d.tx=-n.x,d.ty=-n.y,this.render(e,i,!1,d,!!e.parent),i},a.prototype.destroy=function(e){e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=c.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},n(a,[{key:"width",get:function(){return this.view.width}},{key:"height",get:function(){return this.view.height}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=(0,s.hex2string)(e),(0,s.hex2rgb)(e,this._backgroundColorRgba)}}]),a}(i.default);r.default=a},{"../const":46,"../display/Container":48,"../math":70,"../settings":101,"../textures/RenderTexture":113,"../utils":125,eventemitter3:3}],77:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("../SystemRenderer")),a=o(e("./utils/CanvasMaskManager")),l=o(e("./utils/CanvasRenderTarget")),s=o(e("./utils/mapCanvasBlendModesToPixi")),i=e("../../utils"),f=e("../../const"),u=o(e("../../settings"));function o(e){return e&&e.__esModule?e:{default:e}}var c=function(i){function o(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,"Canvas",e,t,r));return n.type=f.RENDERER_TYPE.CANVAS,n.rootContext=n.view.getContext("2d",{alpha:n.transparent}),n.context=n.rootContext,n.refresh=!0,n.maskManager=new a.default(n),n.smoothProperty="imageSmoothingEnabled",n.rootContext.imageSmoothingEnabled||(n.rootContext.webkitImageSmoothingEnabled?n.smoothProperty="webkitImageSmoothingEnabled":n.rootContext.mozImageSmoothingEnabled?n.smoothProperty="mozImageSmoothingEnabled":n.rootContext.oImageSmoothingEnabled?n.smoothProperty="oImageSmoothingEnabled":n.rootContext.msImageSmoothingEnabled&&(n.smoothProperty="msImageSmoothingEnabled")),n.initPlugins(),n.blendModes=(0,s.default)(),n._activeBlendMode=null,n.renderingToScreen=!1,n.resize(n.options.width,n.options.height),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype.render=function(e,t,r,n,i){if(this.view){this.renderingToScreen=!t,this.emit("prerender");var o=this.resolution;t?((t=t.baseTexture||t)._canvasRenderTarget||(t._canvasRenderTarget=new l.default(t.width,t.height,t.resolution),t.source=t._canvasRenderTarget.canvas,t.valid=!0),this.context=t._canvasRenderTarget.context,this.resolution=t._canvasRenderTarget.resolution):this.context=this.rootContext;var a=this.context;if(t||(this._lastObjectRendered=e),!i){var s=e.parent,u=this._tempDisplayObjectParent.transform.worldTransform;n?(n.copy(u),this._tempDisplayObjectParent.transform._worldID=-1):u.identity(),e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=s}a.save(),a.setTransform(1,0,0,1,0,0),a.globalAlpha=1,this._activeBlendMode=f.BLEND_MODES.NORMAL,a.globalCompositeOperation=this.blendModes[f.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(a.fillStyle="black",a.clear()),(void 0!==r?r:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?a.clearRect(0,0,this.width,this.height):(a.fillStyle=this._backgroundColorString,a.fillRect(0,0,this.width,this.height)));var c=this.context;this.context=a,e.renderCanvas(this),this.context=c,a.restore(),this.resolution=o,this.emit("postrender")}},o.prototype.clear=function(e){var t=this.context;e=e||this._backgroundColorString,!this.transparent&&e?(t.fillStyle=e,t.fillRect(0,0,this.width,this.height)):t.clearRect(0,0,this.width,this.height)},o.prototype.setBlendMode=function(e){this._activeBlendMode!==e&&(this._activeBlendMode=e,this.context.globalCompositeOperation=this.blendModes[e])},o.prototype.destroy=function(e){this.destroyPlugins(),i.prototype.destroy.call(this,e),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},o.prototype.resize=function(e,t){i.prototype.resize.call(this,e,t),this.smoothProperty&&(this.rootContext[this.smoothProperty]=u.default.SCALE_MODE===f.SCALE_MODES.LINEAR)},o.prototype.invalidateBlendMode=function(){this._activeBlendMode=this.blendModes.indexOf(this.context.globalCompositeOperation)},o}(n.default);r.default=c,i.pluginTarget.mixin(c)},{"../../const":46,"../../settings":101,"../../utils":125,"../SystemRenderer":76,"./utils/CanvasMaskManager":78,"./utils/CanvasRenderTarget":79,"./utils/mapCanvasBlendModesToPixi":81}],78:[function(e,t,r){"use strict";r.__esModule=!0;var R=e("../../../const");var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var r=e.alpha,n=e.transform.worldTransform,i=t.resolution;t.context.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=r},t.prototype.renderGraphicsShape=function(e){var t=this.renderer.context,r=e.graphicsData.length;if(0!==r){t.beginPath();for(var n=0;n<r;n++){var i=e.graphicsData[n],o=i.shape;if(i.type===R.SHAPES.POLY){var a=o.points,s=i.holes,u=void 0,c=void 0;t.moveTo(a[0],a[1]);for(var l=2;l<a.length;l+=2)t.lineTo(a[l],a[l+1]);if(a[0]===a[a.length-2]&&a[1]===a[a.length-1]&&t.closePath(),0<s.length){for(var f=u=0;f<a.length;f+=2)u+=a[f]*a[f+3]-a[f+1]*a[f+2];for(var h=0;h<s.length;h++){a=s[h].points;for(var d=c=0;d<a.length;d+=2)c+=a[d]*a[d+3]-a[d+1]*a[d+2];if(t.moveTo(a[0],a[1]),c*u<0)for(var p=2;p<a.length;p+=2)t.lineTo(a[p],a[p+1]);else for(var m=a.length-2;2<=m;m-=2)t.lineTo(a[m],a[m+1])}}}else if(i.type===R.SHAPES.RECT)t.rect(o.x,o.y,o.width,o.height),t.closePath();else if(i.type===R.SHAPES.CIRC)t.arc(o.x,o.y,o.radius,0,2*Math.PI),t.closePath();else if(i.type===R.SHAPES.ELIP){var g=2*o.width,v=2*o.height,y=o.x-g/2,_=o.y-v/2,b=g/2*.5522848,x=v/2*.5522848,w=y+g,T=_+v,S=y+g/2,M=_+v/2;t.moveTo(y,M),t.bezierCurveTo(y,M-x,S-b,_,S,_),t.bezierCurveTo(S+b,_,w,M-x,w,M),t.bezierCurveTo(w,M+x,S+b,T,S,T),t.bezierCurveTo(S-b,T,y,M+x,y,M),t.closePath()}else if(i.type===R.SHAPES.RREC){var P=o.x,E=o.y,C=o.width,k=o.height,A=o.radius,O=Math.min(C,k)/2|0;A=O<A?O:A,t.moveTo(P,E+A),t.lineTo(P,E+k-A),t.quadraticCurveTo(P,E+k,P+A,E+k),t.lineTo(P+C-A,E+k),t.quadraticCurveTo(P+C,E+k,P+C,E+k-A),t.lineTo(P+C,E+A),t.quadraticCurveTo(P+C,E,P+C-A,E),t.lineTo(P+A,E),t.quadraticCurveTo(P,E,P,E+A),t.closePath()}}}},t.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},t.prototype.destroy=function(){},t}();r.default=n},{"../../../const":46}],79:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../../../settings"),a=(n=o)&&n.__esModule?n:{default:n};var s=function(){function n(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=r||a.default.RESOLUTION,this.resize(e,t)}return n.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},n.prototype.resize=function(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},n.prototype.destroy=function(){this.context=null,this.canvas=null},i(n,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}}]),n}();r.default=s},{"../../../settings":101}],80:[function(e,t,r){"use strict";function a(e){var t=document.createElement("canvas");t.width=6,t.height=1;var r=t.getContext("2d");return r.fillStyle=e,r.fillRect(0,0,6,1),t}r.__esModule=!0,r.default=function(){if("undefined"==typeof document)return!1;var e=a("#ff00ff"),t=a("#ffff00"),r=document.createElement("canvas");r.width=6,r.height=1;var n=r.getContext("2d");n.globalCompositeOperation="multiply",n.drawImage(e,0,0),n.drawImage(t,2,0);var i=n.getImageData(2,0,1,1);if(!i)return!1;var o=i.data;return 255===o[0]&&0===o[1]&&0===o[2]}},{}],81:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];(0,a.default)()?(e[i.BLEND_MODES.NORMAL]="source-over",e[i.BLEND_MODES.ADD]="lighter",e[i.BLEND_MODES.MULTIPLY]="multiply",e[i.BLEND_MODES.SCREEN]="screen",e[i.BLEND_MODES.OVERLAY]="overlay",e[i.BLEND_MODES.DARKEN]="darken",e[i.BLEND_MODES.LIGHTEN]="lighten",e[i.BLEND_MODES.COLOR_DODGE]="color-dodge",e[i.BLEND_MODES.COLOR_BURN]="color-burn",e[i.BLEND_MODES.HARD_LIGHT]="hard-light",e[i.BLEND_MODES.SOFT_LIGHT]="soft-light",e[i.BLEND_MODES.DIFFERENCE]="difference",e[i.BLEND_MODES.EXCLUSION]="exclusion",e[i.BLEND_MODES.HUE]="hue",e[i.BLEND_MODES.SATURATION]="saturate",e[i.BLEND_MODES.COLOR]="color",e[i.BLEND_MODES.LUMINOSITY]="luminosity"):(e[i.BLEND_MODES.NORMAL]="source-over",e[i.BLEND_MODES.ADD]="lighter",e[i.BLEND_MODES.MULTIPLY]="source-over",e[i.BLEND_MODES.SCREEN]="source-over",e[i.BLEND_MODES.OVERLAY]="source-over",e[i.BLEND_MODES.DARKEN]="source-over",e[i.BLEND_MODES.LIGHTEN]="source-over",e[i.BLEND_MODES.COLOR_DODGE]="source-over",e[i.BLEND_MODES.COLOR_BURN]="source-over",e[i.BLEND_MODES.HARD_LIGHT]="source-over",e[i.BLEND_MODES.SOFT_LIGHT]="source-over",e[i.BLEND_MODES.DIFFERENCE]="source-over",e[i.BLEND_MODES.EXCLUSION]="source-over",e[i.BLEND_MODES.HUE]="source-over",e[i.BLEND_MODES.SATURATION]="source-over",e[i.BLEND_MODES.COLOR]="source-over",e[i.BLEND_MODES.LUMINOSITY]="source-over");return e[i.BLEND_MODES.NORMAL_NPM]=e[i.BLEND_MODES.NORMAL],e[i.BLEND_MODES.ADD_NPM]=e[i.BLEND_MODES.ADD],e[i.BLEND_MODES.SCREEN_NPM]=e[i.BLEND_MODES.SCREEN],e};var n,i=e("../../../const"),o=e("./canUseNewCanvasBlendModes"),a=(n=o)&&n.__esModule?n:{default:n}},{"../../../const":46,"./canUseNewCanvasBlendModes":80}],82:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../../const"),o=e("../../settings"),a=(n=o)&&n.__esModule?n:{default:n};var s=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=a.default.GC_MAX_IDLE,this.checkCountMax=a.default.GC_MAX_CHECK_COUNT,this.mode=a.default.GC_MODE}return t.prototype.update=function(){this.count++,this.mode!==i.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},t.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,r=!1,n=0;n<t.length;n++){var i=t[n];!i._glRenderTargets&&this.count-i.touched>this.maxIdle&&(e.destroyTexture(i,!0),r=!(t[n]=null))}if(r){for(var o=0,a=0;a<t.length;a++)null!==t[a]&&(t[o++]=t[a]);t.length=o}},t.prototype.unload=function(e){var t=this.renderer.textureManager;e._texture&&e._texture._glRenderTargets&&t.destroyTexture(e._texture,!0);for(var r=e.children.length-1;0<=r;r--)this.unload(e.children[r])},t}();r.default=s},{"../../const":46,"../../settings":101}],83:[function(e,t,r){"use strict";r.__esModule=!0;var n,u=e("pixi-gl-core"),c=e("../../const"),i=e("./utils/RenderTarget"),l=(n=i)&&n.__esModule?n:{default:n},s=e("../../utils");var o=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.gl=e.gl,this._managedTextures=[]}return t.prototype.bindTexture=function(){},t.prototype.getTexture=function(){},t.prototype.updateTexture=function(e,t){var r=this.gl,n=!!e._glRenderTargets;if(!e.hasLoaded)return null;var i=this.renderer.boundTextures;if(void 0===t)for(var o=t=0;o<i.length;++o)if(i[o]===e){t=o;break}i[t]=e,r.activeTexture(r.TEXTURE0+t);var a=e._glTextures[this.renderer.CONTEXT_UID];if(a)n?e._glRenderTargets[this.renderer.CONTEXT_UID].resize(e.width,e.height):a.upload(e.source);else{if(n){var s=new l.default(this.gl,e.width,e.height,e.scaleMode,e.resolution);s.resize(e.width,e.height),a=(e._glRenderTargets[this.renderer.CONTEXT_UID]=s).texture,this.renderer._activeRenderTarget.root||this.renderer._activeRenderTarget.frameBuffer.bind()}else(a=new u.GLTexture(this.gl,null,null,null,null)).bind(t),a.premultiplyAlpha=!0,a.upload(e.source);e._glTextures[this.renderer.CONTEXT_UID]=a,e.on("update",this.updateTexture,this),e.on("dispose",this.destroyTexture,this),this._managedTextures.push(e),e.isPowerOfTwo?(e.mipmap&&a.enableMipmap(),e.wrapMode===c.WRAP_MODES.CLAMP?a.enableWrapClamp():e.wrapMode===c.WRAP_MODES.REPEAT?a.enableWrapRepeat():a.enableWrapMirrorRepeat()):a.enableWrapClamp(),e.scaleMode===c.SCALE_MODES.NEAREST?a.enableNearestScaling():a.enableLinearScaling()}return a},t.prototype.destroyTexture=function(e,t){if((e=e.baseTexture||e).hasLoaded){var r=this.renderer,n=r.CONTEXT_UID,i=e._glTextures,o=e._glRenderTargets;if(i[n]&&(r.unbindTexture(e),i[n].destroy(),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this),delete i[n],!t)){var a=this._managedTextures.indexOf(e);-1!==a&&(0,s.removeItems)(this._managedTextures,a,1)}o&&o[n]&&(r._activeRenderTarget===o[n]&&r.bindRenderTarget(r.rootRenderTarget),o[n].destroy(),delete o[n])}},t.prototype.removeAll=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];t._glTextures[this.renderer.CONTEXT_UID]&&delete t._glTextures[this.renderer.CONTEXT_UID]}},t.prototype.destroy=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];this.destroyTexture(t,!0),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this)}this._managedTextures=null},t}();r.default=o},{"../../const":46,"../../utils":125,"./utils/RenderTarget":96,"pixi-gl-core":15}],84:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("../SystemRenderer")),a=o(e("./managers/MaskManager")),s=o(e("./managers/StencilManager")),u=o(e("./managers/FilterManager")),c=o(e("./utils/RenderTarget")),l=o(e("./utils/ObjectRenderer")),f=o(e("./TextureManager")),h=o(e("../../textures/BaseTexture")),d=o(e("./TextureGarbageCollector")),p=o(e("./WebGLState")),m=o(e("./utils/mapWebGLDrawModesToPixi")),g=o(e("./utils/validateContext")),i=e("../../utils"),v=o(e("pixi-gl-core")),y=e("../../const");function o(e){return e&&e.__esModule?e:{default:e}}var _=0,b=function(i){function o(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,"WebGL",e,t,r));return n.legacy=n.options.legacy,n.legacy&&(v.default.VertexArrayObject.FORCE_NATIVE=!0),n.type=y.RENDERER_TYPE.WEBGL,n.handleContextLost=n.handleContextLost.bind(n),n.handleContextRestored=n.handleContextRestored.bind(n),n.view.addEventListener("webglcontextlost",n.handleContextLost,!1),n.view.addEventListener("webglcontextrestored",n.handleContextRestored,!1),n._contextOptions={alpha:n.transparent,antialias:n.options.antialias,premultipliedAlpha:n.transparent&&"notMultiplied"!==n.transparent,stencil:!0,preserveDrawingBuffer:n.options.preserveDrawingBuffer,powerPreference:n.options.powerPreference},n._backgroundColorRgba[3]=n.transparent?0:1,n.maskManager=new a.default(n),n.stencilManager=new s.default(n),n.emptyRenderer=new l.default(n),n.currentRenderer=n.emptyRenderer,n.textureManager=null,n.filterManager=null,n.initPlugins(),n.options.context&&(0,g.default)(n.options.context),n.gl=n.options.context||v.default.createContext(n.view,n._contextOptions),n.CONTEXT_UID=_++,n.state=new p.default(n.gl),n.renderingToScreen=!0,n.boundTextures=null,n._activeShader=null,n._activeVao=null,n._activeRenderTarget=null,n._initContext(),n.drawModes=(0,m.default)(n.gl),n._nextTextureLocation=0,n.setBlendMode(0),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype._initContext=function(){var e=this.gl;e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext();var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this._activeShader=null,this._activeVao=null,this.boundTextures=new Array(t),this.emptyTextures=new Array(t),this._unknownBoundTextures=!1,this.textureManager=new f.default(this),this.filterManager=new u.default(this),this.textureGC=new d.default(this),this.state.resetToDefault(),this.rootRenderTarget=new c.default(e,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var r=new v.default.GLTexture.fromData(e,null,1,1),n={_glTextures:{}};n._glTextures[this.CONTEXT_UID]={};for(var i=0;i<t;i++){var o=new h.default;o._glTextures[this.CONTEXT_UID]=r,this.boundTextures[i]=n,this.emptyTextures[i]=o,this.bindTexture(null,i)}this.emit("context",e),this.resize(this.screen.width,this.screen.height)},o.prototype.render=function(e,t,r,n,i){if(this.renderingToScreen=!t,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,t||(this._lastObjectRendered=e),!i){var o=e.parent;e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=o}this.bindRenderTexture(t,n),this.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this._activeRenderTarget.clear(),e.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},o.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},o.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},o.prototype.resize=function(e,t){n.default.prototype.resize.call(this,e,t),this.rootRenderTarget.resize(e,t),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},o.prototype.setBlendMode=function(e){this.state.setBlendMode(e)},o.prototype.clear=function(e){this._activeRenderTarget.clear(e)},o.prototype.setTransform=function(e){this._activeRenderTarget.transform=e},o.prototype.clearRenderTexture=function(e,t){var r=e.baseTexture._glRenderTargets[this.CONTEXT_UID];return r&&r.clear(t),this},o.prototype.bindRenderTexture=function(e,t){var r=void 0;if(e){var n=e.baseTexture;n._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(n,0),this.unbindTexture(n),(r=n._glRenderTargets[this.CONTEXT_UID]).setFrame(e.frame)}else r=this.rootRenderTarget;return r.transform=t,this.bindRenderTarget(r),this},o.prototype.bindRenderTarget=function(e){return e!==this._activeRenderTarget&&((this._activeRenderTarget=e).activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=e.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(e.stencilMaskStack)),this},o.prototype.bindShader=function(e,t){return this._activeShader!==e&&((this._activeShader=e).bind(),!1!==t&&(e.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0))),this},o.prototype.bindTexture=function(e,t,r){if((e=(e=e||this.emptyTextures[t]).baseTexture||e).touched=this.textureGC.count,r)t=t||0;else{for(var n=0;n<this.boundTextures.length;n++)if(this.boundTextures[n]===e)return n;void 0===t&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,t=this.boundTextures.length-this._nextTextureLocation-1)}var i=this.gl,o=e._glTextures[this.CONTEXT_UID];return o?(this.boundTextures[t]=e,i.activeTexture(i.TEXTURE0+t),i.bindTexture(i.TEXTURE_2D,o.texture)):this.textureManager.updateTexture(e,t),t},o.prototype.unbindTexture=function(e){var t=this.gl;if(e=e.baseTexture||e,this._unknownBoundTextures){this._unknownBoundTextures=!1;for(var r=0;r<this.boundTextures.length;r++)this.boundTextures[r]===this.emptyTextures[r]&&(t.activeTexture(t.TEXTURE0+r),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[r]._glTextures[this.CONTEXT_UID].texture))}for(var n=0;n<this.boundTextures.length;n++)this.boundTextures[n]===e&&(this.boundTextures[n]=this.emptyTextures[n],t.activeTexture(t.TEXTURE0+n),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[n]._glTextures[this.CONTEXT_UID].texture));return this},o.prototype.createVao=function(){return new v.default.VertexArrayObject(this.gl,this.state.attribState)},o.prototype.bindVao=function(e){return this._activeVao===e||(e?e.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=e),this},o.prototype.reset=function(){this.setObjectRenderer(this.emptyRenderer),this.bindVao(null),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this._unknownBoundTextures=!0;for(var e=0;e<this.boundTextures.length;e++)this.boundTextures[e]=this.emptyTextures[e];return this.rootRenderTarget.activate(),this.state.resetToDefault(),this},o.prototype.handleContextLost=function(e){e.preventDefault()},o.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this.filterManager.destroy(!0),this._initContext()},o.prototype.destroy=function(e){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),i.prototype.destroy.call(this,e),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},o}(n.default);r.default=b,i.pluginTarget.mixin(b)},{"../../const":46,"../../textures/BaseTexture":112,"../../utils":125,"../SystemRenderer":76,"./TextureGarbageCollector":82,"./TextureManager":83,"./WebGLState":85,"./managers/FilterManager":90,"./managers/MaskManager":91,"./managers/StencilManager":92,"./utils/ObjectRenderer":94,"./utils/RenderTarget":96,"./utils/mapWebGLDrawModesToPixi":99,"./utils/validateContext":100,"pixi-gl-core":15}],85:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./utils/mapWebGLBlendModesToPixi"),o=(n=i)&&n.__esModule?n:{default:n};var a=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=e,this.maxAttribs=e.getParameter(e.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,o.default)(e),this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")}return t.prototype.push=function(){var e=this.stack[this.stackIndex];e||(e=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var t=0;t<this.activeState.length;t++)e[t]=this.activeState[t]},t.prototype.pop=function(){var e=this.stack[--this.stackIndex];this.setState(e)},t.prototype.setState=function(e){this.setBlend(e[0]),this.setDepthTest(e[1]),this.setFrontFace(e[2]),this.setCullFace(e[3]),this.setBlendMode(e[4])},t.prototype.setBlend=function(e){e=e?1:0,this.activeState[0]!==e&&(this.activeState[0]=e,this.gl[e?"enable":"disable"](this.gl.BLEND))},t.prototype.setBlendMode=function(e){if(e!==this.activeState[4]){this.activeState[4]=e;var t=this.blendModes[e];2===t.length?this.gl.blendFunc(t[0],t[1]):this.gl.blendFuncSeparate(t[0],t[1],t[2],t[3])}},t.prototype.setDepthTest=function(e){e=e?1:0,this.activeState[1]!==e&&(this.activeState[1]=e,this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST))},t.prototype.setCullFace=function(e){e=e?1:0,this.activeState[3]!==e&&(this.activeState[3]=e,this.gl[e?"enable":"disable"](this.gl.CULL_FACE))},t.prototype.setFrontFace=function(e){e=e?1:0,this.activeState[2]!==e&&(this.activeState[2]=e,this.gl.frontFace(this.gl[e?"CW":"CCW"]))},t.prototype.resetAttributes=function(){for(var e=0;e<this.attribState.tempAttribState.length;e++)this.attribState.tempAttribState[e]=0;for(var t=0;t<this.attribState.attribState.length;t++)this.attribState.attribState[t]=0;for(var r=1;r<this.maxAttribs;r++)this.gl.disableVertexAttribArray(r)},t.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var e=0;e<this.activeState.length;++e)this.activeState[e]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},t}();r.default=a},{"./utils/mapWebGLBlendModesToPixi":98}],86:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=i(e("./extractUniformsFromSrc")),a=e("../../../utils"),s=e("../../../const"),u=i(e("../../../settings"));function i(e){return e&&e.__esModule?e:{default:e}}var c={},l=function(){function i(e,t,r){for(var n in function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.vertexSrc=e||i.defaultVertexSrc,this.fragmentSrc=t||i.defaultFragmentSrc,this._blendMode=s.BLEND_MODES.NORMAL,this.uniformData=r||(0,o.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={},this.uniformData)this.uniforms[n]=this.uniformData[n].value,this.uniformData[n].type&&(this.uniformData[n].type=this.uniformData[n].type.toLowerCase());this.glShaders={},c[this.vertexSrc+this.fragmentSrc]||(c[this.vertexSrc+this.fragmentSrc]=(0,a.uid)()),this.glShaderKey=c[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=u.default.FILTER_RESOLUTION,this.enabled=!0,this.autoFit=!0}return i.prototype.apply=function(e,t,r,n,i){e.applyFilter(this,t,r,n)},n(i,[{key:"blendMode",get:function(){return this._blendMode},set:function(e){this._blendMode=e}}],[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;"," vTextureCoord = aTextureCoord ;","}"].join("\n")}},{key:"defaultFragmentSrc",get:function(){return["varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","uniform sampler2D uSampler;","uniform sampler2D filterSampler;","void main(void){"," vec4 masky = texture2D(filterSampler, vFilterCoord);"," vec4 sample = texture2D(uSampler, vTextureCoord);"," vec4 color;"," if(mod(vFilterCoord.x, 1.0) > 0.5)"," {"," color = vec4(1.0, 0.0, 0.0, 1.0);"," }"," else"," {"," color = vec4(0.0, 1.0, 0.0, 1.0);"," }"," gl_FragColor = mix(sample, masky, 0.5);"," gl_FragColor *= sample.a;","}"].join("\n")}}]),i}();r.default=l},{"../../../const":46,"../../../settings":101,"../../../utils":125,"./extractUniformsFromSrc":87}],87:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t,r){var n=o(e),i=o(t);return Object.assign(n,i)};var n,i=e("pixi-gl-core");var f=((n=i)&&n.__esModule?n:{default:n}).default.shader.defaultValue;function o(e){for(var t=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),r={},n=void 0,i=e.replace(/\s+/g," ").split(/\s*;\s*/),o=0;o<i.length;o++){var a=i[o].trim();if(-1<a.indexOf("uniform")){var s=a.split(" "),u=s[1],c=s[2],l=1;-1<c.indexOf("[")&&(c=(n=c.split(/\[|]/))[0],l*=Number(n[1])),c.match(t)||(r[c]={value:f(u,l),name:c,type:u})}}return r}},{"pixi-gl-core":15}],88:[function(e,t,r){"use strict";r.__esModule=!0,r.calculateScreenSpaceMatrix=function(e,t,r){var n=e.identity();return n.translate(t.x/r.width,t.y/r.height),n.scale(r.width,r.height),n},r.calculateNormalizedScreenSpaceMatrix=function(e,t,r){var n=e.identity();n.translate(t.x/r.width,t.y/r.height);var i=r.width/t.width,o=r.height/t.height;return n.scale(i,o),n},r.calculateSpriteMatrix=function(e,t,r,n){var i=n._texture.orig,o=e.set(r.width,0,0,r.height,t.x,t.y),a=n.worldTransform.copy(s.Matrix.TEMP_MATRIX);return a.invert(),o.prepend(a),o.scale(1/i.width,1/i.height),o.translate(n.anchor.x,n.anchor.y),o};var s=e("../../../math")},{"../../../math":70}],89:[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("../Filter")),o=e("../../../../math"),a=(e("path"),i(e("../../../../textures/TextureMatrix")));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(n){function i(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var t=new o.Matrix,r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n float clip = step(3.5,\n step(maskClamp.x, vMaskCoord.x) +\n step(maskClamp.y, vMaskCoord.y) +\n step(vMaskCoord.x, maskClamp.z) +\n step(vMaskCoord.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, vMaskCoord);\n\n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n"));return e.renderable=!1,r.maskSprite=e,r.maskMatrix=t,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.apply=function(e,t,r,n){var i=this.maskSprite,o=this.maskSprite.texture;o.valid&&(o.transform||(o.transform=new a.default(o,0)),o.transform.update(),this.uniforms.mask=o,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,i).prepend(o.transform.mapCoord),this.uniforms.alpha=i.worldAlpha,this.uniforms.maskClamp=o.transform.uClampFrame,e.applyFilter(this,t,r,n))},i}(n.default);r.default=s},{"../../../../math":70,"../../../../textures/TextureMatrix":116,"../Filter":86,path:8}],90:[function(e,t,r){"use strict";r.__esModule=!0;var n=l(e("./WebGLManager")),s=l(e("../utils/RenderTarget")),i=l(e("../utils/Quad")),o=e("../../../math"),u=l(e("../../../Shader")),a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../filters/filterTransforms")),c=l(e("bit-twiddle"));function l(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=function(){function e(){f(this,e),this.renderTarget=null,this.target=null,this.resolution=1,this.sourceFrame=new o.Rectangle,this.destinationFrame=new o.Rectangle,this.filters=[]}return e.prototype.clear=function(){this.filters=null,this.target=null,this.renderTarget=null},e}(),h="screen",d=function(r){function n(e){f(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.gl=t.renderer.gl,t.quad=new i.default(t.gl,e.state.attribState),t.shaderCache={},t.pool={},t.filterData=null,t.managedFilters=[],t.renderer.on("prerender",t.onPrerender,t),t._screenWidth=e.view.width,t._screenHeight=e.view.height,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.pushFilter=function(e,t){var r=this.renderer,n=this.filterData;if(!n){n=this.renderer._activeRenderTarget.filterStack;var i=new p;i.sourceFrame=i.destinationFrame=this.renderer._activeRenderTarget.size,i.renderTarget=r._activeRenderTarget,this.renderer._activeRenderTarget.filterData=n={index:0,stack:[i]},this.filterData=n}var o=n.stack[++n.index],a=n.stack[0].destinationFrame;o||(o=n.stack[n.index]=new p);var s=e.filterArea&&0===e.filterArea.x&&0===e.filterArea.y&&e.filterArea.width===r.screen.width&&e.filterArea.height===r.screen.height,u=t[0].resolution,c=0|t[0].padding,l=s?r.screen:e.filterArea||e.getBounds(!0),f=o.sourceFrame,h=o.destinationFrame;f.x=(l.x*u|0)/u,f.y=(l.y*u|0)/u,f.width=(l.width*u|0)/u,f.height=(l.height*u|0)/u,s||(n.stack[0].renderTarget.transform||t[0].autoFit&&f.fit(a),f.pad(c)),h.width=f.width,h.height=f.height;var d=this.getPotRenderTarget(r.gl,f.width,f.height,u);o.target=e,o.filters=t,o.resolution=u,(o.renderTarget=d).setFrame(h,f),r.bindRenderTarget(d),d.clear()},n.prototype.popFilter=function(){var e=this.filterData,t=e.stack[e.index-1],r=e.stack[e.index];this.quad.map(r.renderTarget.size,r.sourceFrame).upload();var n=r.filters;if(1===n.length)n[0].apply(this,r.renderTarget,t.renderTarget,!1,r),this.freePotRenderTarget(r.renderTarget);else{var i=r.renderTarget,o=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,r.resolution);o.setFrame(r.destinationFrame,r.sourceFrame),o.clear();var a=0;for(a=0;a<n.length-1;++a){n[a].apply(this,i,o,!0,r);var s=i;i=o,o=s}n[a].apply(this,i,t.renderTarget,!1,r),this.freePotRenderTarget(i),this.freePotRenderTarget(o)}r.clear(),e.index--,0===e.index&&(this.filterData=null)},n.prototype.applyFilter=function(e,t,r,n){var i=this.renderer,o=i.gl,a=e.glShaders[i.CONTEXT_UID];a||(e.glShaderKey?(a=this.shaderCache[e.glShaderKey])||(a=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),e.glShaders[i.CONTEXT_UID]=this.shaderCache[e.glShaderKey]=a,this.managedFilters.push(e)):(a=e.glShaders[i.CONTEXT_UID]=new u.default(this.gl,e.vertexSrc,e.fragmentSrc),this.managedFilters.push(e)),i.bindVao(null),this.quad.initVao(a)),i.bindVao(this.quad.vao),i.bindRenderTarget(r),n&&(o.disable(o.SCISSOR_TEST),i.clear(),o.enable(o.SCISSOR_TEST)),r===i.maskManager.scissorRenderTarget&&i.maskManager.pushScissorMask(null,i.maskManager.scissorData),i.bindShader(a);var s=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=s,this.syncUniforms(a,e),i.state.setBlendMode(e.blendMode),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),o.bindTexture(o.TEXTURE_2D,s._glTextures[this.renderer.CONTEXT_UID].texture)},n.prototype.syncUniforms=function(e,t){var r=t.uniformData,n=t.uniforms,i=1,o=void 0;if(e.uniforms.filterArea){o=this.filterData.stack[this.filterData.index];var a=e.uniforms.filterArea;a[0]=o.renderTarget.size.width,a[1]=o.renderTarget.size.height,a[2]=o.sourceFrame.x,a[3]=o.sourceFrame.y,e.uniforms.filterArea=a}if(e.uniforms.filterClamp){o=o||this.filterData.stack[this.filterData.index];var s=e.uniforms.filterClamp;s[0]=0,s[1]=0,s[2]=(o.sourceFrame.width-1)/o.renderTarget.size.width,s[3]=(o.sourceFrame.height-1)/o.renderTarget.size.height,e.uniforms.filterClamp=s}for(var u in r)if(e.uniforms.data[u]){var c=r[u].type;if("sampler2d"===c&&0!==n[u]){if(n[u].baseTexture)e.uniforms[u]=this.renderer.bindTexture(n[u].baseTexture,i);else{e.uniforms[u]=i;var l=this.renderer.gl;this.renderer.boundTextures[i]=this.renderer.emptyTextures[i],l.activeTexture(l.TEXTURE0+i),n[u].texture.bind()}i++}else if("mat3"===c)void 0!==n[u].a?e.uniforms[u]=n[u].toArray(!0):e.uniforms[u]=n[u];else if("vec2"===c)if(void 0!==n[u].x){var f=e.uniforms[u]||new Float32Array(2);f[0]=n[u].x,f[1]=n[u].y,e.uniforms[u]=f}else e.uniforms[u]=n[u];else"float"===c?e.uniforms.data[u].value!==r[u]&&(e.uniforms[u]=n[u]):e.uniforms[u]=n[u]}},n.prototype.getRenderTarget=function(e,t){var r=this.filterData.stack[this.filterData.index],n=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,t||r.resolution);return n.setFrame(r.destinationFrame,r.sourceFrame),n},n.prototype.returnRenderTarget=function(e){this.freePotRenderTarget(e)},n.prototype.calculateScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return a.calculateScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size)},n.prototype.calculateNormalizedScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return a.calculateNormalizedScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size,t.destinationFrame)},n.prototype.calculateSpriteMatrix=function(e,t){var r=this.filterData.stack[this.filterData.index];return a.calculateSpriteMatrix(e,r.sourceFrame,r.renderTarget.size,t)},n.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],t=this.renderer,r=this.managedFilters;t.off("prerender",this.onPrerender,this);for(var n=0;n<r.length;n++)e||r[n].glShaders[t.CONTEXT_UID].destroy(),delete r[n].glShaders[t.CONTEXT_UID];this.shaderCache={},e?this.pool={}:this.emptyPool()},n.prototype.getPotRenderTarget=function(e,t,r,n){var i=h;r*=n,(t*=n)===this._screenWidth&&r===this._screenHeight||(i=(65535&(t=c.default.nextPow2(t)))<<16|65535&(r=c.default.nextPow2(r))),this.pool[i]||(this.pool[i]=[]);var o=this.pool[i].pop();if(!o){var a=this.renderer.boundTextures[0];e.activeTexture(e.TEXTURE0),o=new s.default(e,t,r,null,1),e.bindTexture(e.TEXTURE_2D,a._glTextures[this.renderer.CONTEXT_UID].texture)}return o.resolution=n,o.defaultFrame.width=o.size.width=t/n,o.defaultFrame.height=o.size.height=r/n,o.filterPoolKey=i,o},n.prototype.emptyPool=function(){for(var e in this.pool){var t=this.pool[e];if(t)for(var r=0;r<t.length;r++)t[r].destroy(!0)}this.pool={}},n.prototype.freePotRenderTarget=function(e){this.pool[e.filterPoolKey].push(e)},n.prototype.onPrerender=function(){if(this._screenWidth!==this.renderer.view.width||this._screenHeight!==this.renderer.view.height){this._screenWidth=this.renderer.view.width,this._screenHeight=this.renderer.view.height;var e=this.pool[h];if(e)for(var t=0;t<e.length;t++)e[t].destroy(!0);this.pool[h]=[]}},n}(n.default);r.default=d},{"../../../Shader":44,"../../../math":70,"../filters/filterTransforms":88,"../utils/Quad":95,"../utils/RenderTarget":96,"./WebGLManager":93,"bit-twiddle":1}],91:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("./WebGLManager")),i=o(e("../filters/spriteMask/SpriteMaskFilter"));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.scissor=!1,t.scissorData=null,t.scissorRenderTarget=null,t.enableScissor=!0,t.alphaMaskPool=[],t.alphaMaskIndex=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.pushMask=function(e,t){if(t.texture)this.pushSpriteMask(e,t);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&t.isFastRect()){var r=t.worldTransform,n=Math.atan2(r.b,r.a);(n=Math.round(n*(180/Math.PI)))%90?this.pushStencilMask(t):this.pushScissorMask(e,t)}else this.pushStencilMask(t)},n.prototype.popMask=function(e,t){t.texture?this.popSpriteMask(e,t):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(e,t):this.popStencilMask(e,t)},n.prototype.pushSpriteMask=function(e,t){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new i.default(t)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=t;var n=e.filterArea;e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),e.filterArea=n,this.alphaMaskIndex++},n.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},n.prototype.pushStencilMask=function(e){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(e)},n.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},n.prototype.pushScissorMask=function(e,t){t.renderable=!0;var r=this.renderer._activeRenderTarget,n=t.getBounds();n.fit(r.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var i=this.renderer.resolution;this.renderer.gl.scissor(n.x*i,(r.root?r.size.height-n.y-n.height:n.y)*i,n.width*i,n.height*i),this.scissorRenderTarget=r,this.scissorData=t,this.scissor=!0},n.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var e=this.renderer.gl;e.disable(e.SCISSOR_TEST)},n}(n.default);r.default=a},{"../filters/spriteMask/SpriteMaskFilter":89,"./WebGLManager":93}],92:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./WebGLManager"),o=(n=i)&&n.__esModule?n:{default:n};var a=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.stencilMaskStack=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.setMaskStack=function(e){this.stencilMaskStack=e;var t=this.renderer.gl;0===e.length?t.disable(t.STENCIL_TEST):t.enable(t.STENCIL_TEST)},n.prototype.pushStencil=function(e){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var t=this.renderer.gl,r=this.stencilMaskStack.length;0===r&&t.enable(t.STENCIL_TEST),this.stencilMaskStack.push(e),t.colorMask(!1,!1,!1,!1),t.stencilFunc(t.EQUAL,r,this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.INCR),this.renderer.plugins.graphics.render(e),this._useCurrent()},n.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var e=this.renderer.gl,t=this.stencilMaskStack.pop();0===this.stencilMaskStack.length?(e.disable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),e.clearStencil(0)):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),this.renderer.plugins.graphics.render(t),this._useCurrent())},n.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.stencilMaskStack.length,this._getBitwiseMask()),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},n.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},n.prototype.destroy=function(){o.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},n}(o.default);r.default=a},{"./WebGLManager":93}],93:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e,this.renderer.on("context",this.onContextChange,this)}return t.prototype.onContextChange=function(){},t.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},t}();r.default=n},{}],94:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../managers/WebGLManager");var o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.flush=function(){},t.prototype.render=function(e){},t}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o},{"../managers/WebGLManager":93}],95:[function(e,t,r){"use strict";r.__esModule=!0;var i=n(e("pixi-gl-core")),o=n(e("../../../utils/createIndicesForQuads"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(){function n(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),this.gl=e,this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.interleaved=new Float32Array(16);for(var r=0;r<4;r++)this.interleaved[4*r]=this.vertices[2*r],this.interleaved[4*r+1]=this.vertices[2*r+1],this.interleaved[4*r+2]=this.uvs[2*r],this.interleaved[4*r+3]=this.uvs[2*r+1];this.indices=(0,o.default)(1),this.vertexBuffer=i.default.GLBuffer.createVertexBuffer(e,this.interleaved,e.STATIC_DRAW),this.indexBuffer=i.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.vao=new i.default.VertexArrayObject(e,t)}return n.prototype.initVao=function(e){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,e.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,e.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},n.prototype.map=function(e,t){var r=0,n=0;return this.uvs[0]=r,this.uvs[1]=n,this.uvs[2]=r+t.width/e.width,this.uvs[3]=n,this.uvs[4]=r+t.width/e.width,this.uvs[5]=n+t.height/e.height,this.uvs[6]=r,this.uvs[7]=n+t.height/e.height,r=t.x,n=t.y,this.vertices[0]=r,this.vertices[1]=n,this.vertices[2]=r+t.width,this.vertices[3]=n,this.vertices[4]=r+t.width,this.vertices[5]=n+t.height,this.vertices[6]=r,this.vertices[7]=n+t.height,this},n.prototype.upload=function(){for(var e=0;e<4;e++)this.interleaved[4*e]=this.vertices[2*e],this.interleaved[4*e+1]=this.vertices[2*e+1],this.interleaved[4*e+2]=this.uvs[2*e],this.interleaved[4*e+3]=this.uvs[2*e+1];return this.vertexBuffer.upload(this.interleaved),this},n.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},n}();r.default=a},{"../../../utils/createIndicesForQuads":123,"pixi-gl-core":15}],96:[function(e,t,r){"use strict";r.__esModule=!0;var n,s=e("../../../math"),u=e("../../../const"),i=e("../../../settings"),c=(n=i)&&n.__esModule?n:{default:n},l=e("pixi-gl-core");var o=function(){function a(e,t,r,n,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.gl=e,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new s.Rectangle(0,0,1,1),this.resolution=i||c.default.RESOLUTION,this.projectionMatrix=new s.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new s.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.filterPoolKey="",this.scaleMode=void 0!==n?n:c.default.SCALE_MODE,this.root=o||!1,this.root?(this.frameBuffer=new l.GLFramebuffer(e,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=l.GLFramebuffer.createRGBA(e,100,100),this.scaleMode===u.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(t,r)}return a.prototype.clear=function(e){var t=e||this.clearColor;this.frameBuffer.clear(t[0],t[1],t[2],t[3])},a.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},a.prototype.setFrame=function(e,t){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||this.destinationFrame},a.prototype.activate=function(){var e=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(e.enable(e.SCISSOR_TEST),e.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):e.disable(e.SCISSOR_TEST),e.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},a.prototype.calculateProjection=function(e,t){var r=this.projectionMatrix;t=t||e,r.identity(),this.root?(r.a=1/e.width*2,r.d=-1/e.height*2,r.tx=-1-t.x*r.a,r.ty=1-t.y*r.d):(r.a=1/e.width*2,r.d=1/e.height*2,r.tx=-1-t.x*r.a,r.ty=-1-t.y*r.d)},a.prototype.resize=function(e,t){if(e|=0,t|=0,this.size.width!==e||this.size.height!==t){this.size.width=e,this.size.height=t,this.defaultFrame.width=e,this.defaultFrame.height=t,this.frameBuffer.resize(e*this.resolution,t*this.resolution);var r=this.frame||this.size;this.calculateProjection(r)}},a.prototype.destroy=function(){this.frameBuffer.stencil&&this.gl.deleteRenderbuffer(this.frameBuffer.stencil),this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},a}();r.default=o},{"../../../const":46,"../../../math":70,"../../../settings":101,"pixi-gl-core":15}],97:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=!t;if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(r){var n=document.createElement("canvas");n.width=1,n.height=1,t=a.default.createContext(n)}var i=t.createShader(t.FRAGMENT_SHADER);for(;;){var o=s.replace(/%forloop%/gi,u(e));if(t.shaderSource(i,o),t.compileShader(i),t.getShaderParameter(i,t.COMPILE_STATUS))break;e=e/2|0}r&&t.getExtension("WEBGL_lose_context")&&t.getExtension("WEBGL_lose_context").loseContext();return e};var n,i=e("pixi-gl-core"),a=(n=i)&&n.__esModule?n:{default:n};var s=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function u(e){for(var t="",r=0;r<e;++r)0<r&&(t+="\nelse "),r<e-1&&(t+="if(test == "+r+".0){}");return t}},{"pixi-gl-core":15}],98:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];return t[n.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.ADD]=[e.ONE,e.DST_ALPHA],t[n.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR],t[n.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.DST_ALPHA,e.ONE,e.DST_ALPHA],t[n.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_COLOR],t};var n=e("../../../const")},{"../../../const":46}],99:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return t[n.DRAW_MODES.POINTS]=e.POINTS,t[n.DRAW_MODES.LINES]=e.LINES,t[n.DRAW_MODES.LINE_LOOP]=e.LINE_LOOP,t[n.DRAW_MODES.LINE_STRIP]=e.LINE_STRIP,t[n.DRAW_MODES.TRIANGLES]=e.TRIANGLES,t[n.DRAW_MODES.TRIANGLE_STRIP]=e.TRIANGLE_STRIP,t[n.DRAW_MODES.TRIANGLE_FAN]=e.TRIANGLE_FAN,t};var n=e("../../../const")},{"../../../const":46}],100:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){e.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}},{}],101:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("./utils/maxRecommendedTextures")),i=o(e("./utils/canUploadSameBuffer"));function o(e){return e&&e.__esModule?e:{default:e}}r.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,n.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,i.default)(),MESH_CANVAS_PADDING:0}},{"./utils/canUploadSameBuffer":122,"./utils/maxRecommendedTextures":127}],102:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../math"),a=e("../utils"),s=e("../const"),u=c(e("../textures/Texture")),n=c(e("../display/Container"));function c(e){return e&&e.__esModule?e:{default:e}}var l=new o.Point,f=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this));return t._anchor=new o.ObservablePoint(t._onAnchorUpdate,t,e?e.defaultAnchor.x:0,e?e.defaultAnchor.y:0),t._texture=null,t._width=0,t._height=0,t._tint=null,t._tintRGB=null,t.tint=16777215,t.blendMode=s.BLEND_MODES.NORMAL,t.shader=null,t.cachedTint=16777215,t.texture=e||u.default.EMPTY,t.vertexData=new Float32Array(8),t.vertexTrimmedData=null,t._transformID=-1,t._textureID=-1,t._transformTrimmedID=-1,t._textureTrimmedID=-1,t.pluginName="sprite",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this.cachedTint=16777215,this._width&&(this.scale.x=(0,a.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,a.sign)(this.scale.y)*this._height/this._texture.orig.height)},n.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},n.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var e=this._texture,t=this.transform.worldTransform,r=t.a,n=t.b,i=t.c,o=t.d,a=t.tx,s=t.ty,u=this.vertexData,c=e.trim,l=e.orig,f=this._anchor,h=0,d=0,p=0,m=0;p=c?(h=(d=c.x-f._x*l.width)+c.width,(m=c.y-f._y*l.height)+c.height):(h=(d=-f._x*l.width)+l.width,(m=-f._y*l.height)+l.height),u[0]=r*d+i*m+a,u[1]=o*m+n*d+s,u[2]=r*h+i*m+a,u[3]=o*m+n*h+s,u[4]=r*h+i*p+a,u[5]=o*p+n*h+s,u[6]=r*d+i*p+a,u[7]=o*p+n*d+s}},n.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var e=this._texture,t=this.vertexTrimmedData,r=e.orig,n=this._anchor,i=this.transform.worldTransform,o=i.a,a=i.b,s=i.c,u=i.d,c=i.tx,l=i.ty,f=-n._x*r.width,h=f+r.width,d=-n._y*r.height,p=d+r.height;t[0]=o*f+s*d+c,t[1]=u*d+a*f+l,t[2]=o*h+s*d+c,t[3]=u*d+a*h+l,t[4]=o*h+s*p+c,t[5]=u*p+a*h+l,t[6]=o*f+s*p+c,t[7]=u*p+a*f+l},n.prototype._renderWebGL=function(e){this.calculateVertices(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},n.prototype._renderCanvas=function(e){e.plugins[this.pluginName].render(this)},n.prototype._calculateBounds=function(){var e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},n.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new o.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):r.prototype.getLocalBounds.call(this,e)},n.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,l);var t=this._texture.orig.width,r=this._texture.orig.height,n=-t*this.anchor.x,i=0;return l.x>=n&&l.x<n+t&&(i=-r*this.anchor.y,l.y>=i&&l.y<i+r)},n.prototype.destroy=function(e){if(r.prototype.destroy.call(this,e),this._texture.off("update",this._onTextureUpdate,this),this._anchor=null,"boolean"==typeof e?e:e&&e.texture){var t="boolean"==typeof e?e:e&&e.baseTexture;this._texture.destroy(!!t)}this._texture=null,this.shader=null},n.from=function(e){return new n(u.default.from(e))},n.fromFrame=function(e){var t=a.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return new n(t)},n.fromImage=function(e,t,r){return new n(u.default.fromImage(e,t,r))},i(n,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=(0,a.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=(0,a.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"anchor",get:function(){return this._anchor},set:function(e){this._anchor.copy(e)}},{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e||u.default.EMPTY,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}}]),n}(n.default);r.default=f},{"../const":46,"../display/Container":48,"../math":70,"../textures/Texture":115,"../utils":125}],103:[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("../../renderers/canvas/CanvasRenderer")),l=e("../../const"),f=e("../../math"),h=i(e("./CanvasTinter"));function i(e){return e&&e.__esModule?e:{default:e}}var d=new f.Matrix,o=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=e._texture,r=this.renderer,n=t._frame.width,i=t._frame.height,o=e.transform.worldTransform,a=0,s=0;if(!(t.orig.width<=0||t.orig.height<=0)&&t.baseTexture.source&&(r.setBlendMode(e.blendMode),t.valid)){r.context.globalAlpha=e.worldAlpha;var u=t.baseTexture.scaleMode===l.SCALE_MODES.LINEAR;r.smoothProperty&&r.context[r.smoothProperty]!==u&&(r.context[r.smoothProperty]=u),s=t.trim?(a=t.trim.width/2+t.trim.x-e.anchor.x*t.orig.width,t.trim.height/2+t.trim.y-e.anchor.y*t.orig.height):(a=(.5-e.anchor.x)*t.orig.width,(.5-e.anchor.y)*t.orig.height),t.rotate&&(o.copy(d),o=d,f.GroupD8.matrixAppendRotationInv(o,t.rotate,a,s),s=a=0),a-=n/2,s-=i/2,r.roundPixels?(r.context.setTransform(o.a,o.b,o.c,o.d,o.tx*r.resolution|0,o.ty*r.resolution|0),a|=0,s|=0):r.context.setTransform(o.a,o.b,o.c,o.d,o.tx*r.resolution,o.ty*r.resolution);var c=t.baseTexture.resolution;16777215!==e.tint?(e.cachedTint===e.tint&&e.tintedTexture.tintId===e._texture._updateID||(e.cachedTint=e.tint,e.tintedTexture=h.default.getTintedTexture(e,e.tint)),r.context.drawImage(e.tintedTexture,0,0,n*c,i*c,a*r.resolution,s*r.resolution,n*r.resolution,i*r.resolution)):r.context.drawImage(t.baseTexture.source,t._frame.x*c,t._frame.y*c,n*c,i*c,a*r.resolution,s*r.resolution,n*r.resolution,i*r.resolution)}},t.prototype.destroy=function(){this.renderer=null},t}();r.default=o,n.default.registerPlugin("sprite",o)},{"../../const":46,"../../math":70,"../../renderers/canvas/CanvasRenderer":77,"./CanvasTinter":104}],104:[function(e,t,r){"use strict";r.__esModule=!0;var n,d=e("../../utils"),i=e("../../renderers/canvas/utils/canUseNewCanvasBlendModes");var s={getTintedTexture:function(e,t){var r=e._texture,n="#"+("00000"+(0|(t=s.roundColor(t))).toString(16)).substr(-6);r.tintCache=r.tintCache||{};var i=r.tintCache[n],o=void 0;if(i){if(i.tintId===r._updateID)return r.tintCache[n];o=r.tintCache[n]}else o=s.canvas||document.createElement("canvas");if(s.tintMethod(r,t,o),o.tintId=r._updateID,s.convertTintToImage){var a=new Image;a.src=o.toDataURL(),r.tintCache[n]=a}else r.tintCache[n]=o,s.canvas=null;return o},tintWithMultiply:function(e,t,r){var n=r.getContext("2d"),i=e._frame.clone(),o=e.baseTexture.resolution;i.x*=o,i.y*=o,i.width*=o,i.height*=o,r.width=Math.ceil(i.width),r.height=Math.ceil(i.height),n.save(),n.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),n.fillRect(0,0,i.width,i.height),n.globalCompositeOperation="multiply",n.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),n.globalCompositeOperation="destination-atop",n.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),n.restore()},tintWithOverlay:function(e,t,r){var n=r.getContext("2d"),i=e._frame.clone(),o=e.baseTexture.resolution;i.x*=o,i.y*=o,i.width*=o,i.height*=o,r.width=Math.ceil(i.width),r.height=Math.ceil(i.height),n.save(),n.globalCompositeOperation="copy",n.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),n.fillRect(0,0,i.width,i.height),n.globalCompositeOperation="destination-atop",n.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),n.restore()},tintWithPerPixel:function(e,t,r){var n=r.getContext("2d"),i=e._frame.clone(),o=e.baseTexture.resolution;i.x*=o,i.y*=o,i.width*=o,i.height*=o,r.width=Math.ceil(i.width),r.height=Math.ceil(i.height),n.save(),n.globalCompositeOperation="copy",n.drawImage(e.baseTexture.source,i.x,i.y,i.width,i.height,0,0,i.width,i.height),n.restore();for(var a=(0,d.hex2rgb)(t),s=a[0],u=a[1],c=a[2],l=n.getImageData(0,0,i.width,i.height),f=l.data,h=0;h<f.length;h+=4)f[h+0]*=s,f[h+1]*=u,f[h+2]*=c;n.putImageData(l,0,0)},roundColor:function(e){var t=s.cacheStepsPerColorChannel,r=(0,d.hex2rgb)(e);return r[0]=Math.min(255,r[0]/t*t),r[1]=Math.min(255,r[1]/t*t),r[2]=Math.min(255,r[2]/t*t),(0,d.rgb2hex)(r)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,((n=i)&&n.__esModule?n:{default:n}).default)(),tintMethod:0};s.tintMethod=s.canUseMultiply?s.tintWithMultiply:s.tintWithPerPixel,r.default=s},{"../../renderers/canvas/utils/canUseNewCanvasBlendModes":80,"../../utils":125}],105:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.vertices=new ArrayBuffer(e),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return t.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},t}();r.default=n},{}],106:[function(e,t,r){"use strict";r.__esModule=!0;var n=o(e("../../renderers/webgl/utils/ObjectRenderer")),i=o(e("../../renderers/webgl/WebGLRenderer")),a=o(e("../../utils/createIndicesForQuads")),s=o(e("./generateMultiTextureShader")),u=o(e("../../renderers/webgl/utils/checkMaxIfStatmentsInShader")),c=o(e("./BatchBuffer")),j=o(e("../../settings")),F=e("../../utils"),B=o(e("pixi-gl-core")),z=o(e("bit-twiddle"));function o(e){return e&&e.__esModule?e:{default:e}}var U=0,X=0,l=function(i){function o(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e));t.vertSize=5,t.vertByteSize=4*t.vertSize,t.size=j.default.SPRITE_BATCH_SIZE,t.buffers=[];for(var r=1;r<=z.default.nextPow2(t.size);r*=2)t.buffers.push(new c.default(4*r*t.vertByteSize));t.indices=(0,a.default)(t.size),t.shader=null,t.currentIndex=0,t.groups=[];for(var n=0;n<t.size;n++)t.groups[n]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return t.sprites=[],t.vertexBuffers=[],t.vaos=[],t.vaoMax=2,t.vertexCount=0,t.renderer.on("prerender",t.onPrerender,t),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype.onContextChange=function(){var e=this.renderer.gl;this.renderer.legacy?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),j.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,u.default)(this.MAX_TEXTURES,e)),this.shader=(0,s.default)(e,this.MAX_TEXTURES),this.indexBuffer=B.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);for(var t=this.shader.attributes,r=0;r<this.vaoMax;r++){var n=this.vertexBuffers[r]=B.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),i=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(n,t.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(n,t.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(n,t.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);t.aTextureId&&i.addAttribute(n,t.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[r]=i}this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},o.prototype.onPrerender=function(){this.vertexCount=0},o.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&(this.sprites[this.currentIndex++]=e)},o.prototype.flush=function(){if(0!==this.currentIndex){var e=this.renderer.gl,t=this.MAX_TEXTURES,r=z.default.nextPow2(this.currentIndex),n=z.default.log2(r),i=this.buffers[n],o=this.sprites,a=this.groups,s=i.float32View,u=i.uint32View,c=this.boundTextures,l=this.renderer.boundTextures,f=this.renderer.textureGC.count,h=0,d=void 0,p=void 0,m=1,g=0,v=a[0],y=void 0,_=void 0,b=F.premultiplyBlendMode[o[0]._texture.baseTexture.premultipliedAlpha?1:0][o[0].blendMode];v.textureCount=0,v.start=0,v.blend=b,U++;var x=void 0;for(x=0;x<t;++x){var w=l[x];w._enabled!==U?((c[x]=w)._virtalBoundId=x,w._enabled=U):c[x]=this.renderer.emptyTextures[x]}for(U++,x=0;x<this.currentIndex;++x){var T=o[x];o[x]=null,d=T._texture.baseTexture;var S=F.premultiplyBlendMode[Number(d.premultipliedAlpha)][T.blendMode];if(b!==S&&(b=S,p=null,g=t,U++),p!==d&&(p=d)._enabled!==U){if(g===t&&(U++,v.size=x-v.start,g=0,(v=a[m++]).blend=b,v.textureCount=0,v.start=x),d.touched=f,-1===d._virtalBoundId)for(var M=0;M<t;++M){var P=(M+X)%t,E=c[P];if(E._enabled!==U){X++,E._virtalBoundId=-1,c[d._virtalBoundId=P]=d;break}}d._enabled=U,v.textureCount++,v.ids[g]=d._virtalBoundId,v.textures[g++]=d}if(y=T.vertexData,_=T._texture._uvs.uvsUint32,this.renderer.roundPixels){var C=this.renderer.resolution;s[h]=(y[0]*C|0)/C,s[h+1]=(y[1]*C|0)/C,s[h+5]=(y[2]*C|0)/C,s[h+6]=(y[3]*C|0)/C,s[h+10]=(y[4]*C|0)/C,s[h+11]=(y[5]*C|0)/C,s[h+15]=(y[6]*C|0)/C,s[h+16]=(y[7]*C|0)/C}else s[h]=y[0],s[h+1]=y[1],s[h+5]=y[2],s[h+6]=y[3],s[h+10]=y[4],s[h+11]=y[5],s[h+15]=y[6],s[h+16]=y[7];u[h+2]=_[0],u[h+7]=_[1],u[h+12]=_[2],u[h+17]=_[3];var k=Math.min(T.worldAlpha,1),A=k<1&&d.premultipliedAlpha?(0,F.premultiplyTint)(T._tintRGB,k):T._tintRGB+(255*k<<24);u[h+3]=u[h+8]=u[h+13]=u[h+18]=A,s[h+4]=s[h+9]=s[h+14]=s[h+19]=d._virtalBoundId,h+=20}if(v.size=x-v.start,j.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(i.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var O=this.shader.attributes,R=this.vertexBuffers[this.vertexCount]=B.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),I=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(R,O.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(R,O.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(R,O.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);O.aTextureId&&I.addAttribute(R,O.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=I}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(i.vertices,0,!1),this.vertexCount++}for(x=0;x<t;++x)l[x]._virtalBoundId=-1;for(x=0;x<m;++x){for(var D=a[x],L=D.textureCount,N=0;N<L;N++)p=D.textures[N],l[D.ids[N]]!==p&&this.renderer.bindTexture(p,D.ids[N],!0),p._virtalBoundId=-1;this.renderer.state.setBlendMode(D.blend),e.drawElements(e.TRIANGLES,6*D.size,e.UNSIGNED_SHORT,6*D.start*2)}this.currentIndex=0}},o.prototype.start=function(){this.renderer.bindShader(this.shader),j.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},o.prototype.stop=function(){this.flush()},o.prototype.destroy=function(){for(var e=0;e<this.vaoMax;e++)this.vertexBuffers[e]&&this.vertexBuffers[e].destroy(),this.vaos[e]&&this.vaos[e].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),i.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var t=0;t<this.buffers.length;++t)this.buffers[t].destroy()},o}(n.default);r.default=l,i.default.registerPlugin("sprite",l)},{"../../renderers/webgl/WebGLRenderer":84,"../../renderers/webgl/utils/ObjectRenderer":94,"../../renderers/webgl/utils/checkMaxIfStatmentsInShader":97,"../../settings":101,"../../utils":125,"../../utils/createIndicesForQuads":123,"./BatchBuffer":105,"./generateMultiTextureShader":107,"bit-twiddle":1,"pixi-gl-core":15}],107:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=s;r=(r=r.replace(/%count%/gi,t)).replace(/%forloop%/gi,function(e){var t="";t+="\n",t+="\n";for(var r=0;r<e;r++)0<r&&(t+="\nelse "),r<e-1&&(t+="if(textureId == "+r+".0)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);",t+="\n}";return t+="\n",t+="\n"}(t));for(var n=new a.default(e,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",r),i=[],o=0;o<t;o++)i[o]=o;return n.bind(),n.uniforms.uSamplers=i,n};var n,i=e("../../Shader"),a=(n=i)&&n.__esModule?n:{default:n};e("path");var s=["varying vec2 vTextureCoord;","varying vec4 vColor;","varying float vTextureId;","uniform sampler2D uSamplers[%count%];","void main(void){","vec4 color;","float textureId = floor(vTextureId+0.5);","%forloop%","gl_FragColor = color * vColor;","}"].join("\n")},{"../../Shader":44,path:8}],108:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=o(e("../sprites/Sprite")),s=o(e("../textures/Texture")),u=e("../math"),c=e("../utils"),m=e("../const"),l=o(e("../settings")),f=o(e("./TextStyle")),v=o(e("./TextMetrics")),h=o(e("../utils/trimCanvas"));function o(e){return e&&e.__esModule?e:{default:e}}var d={texture:!0,children:!1,baseTexture:!0},a=function(o){function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(r=r||document.createElement("canvas")).width=3,r.height=3;var n=s.default.fromCanvas(r,l.default.SCALE_MODE,"text");n.orig=new u.Rectangle,n.trim=new u.Rectangle;var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this,n));return s.default.addToCache(i._texture,i._texture.baseTexture.textureCacheIds[0]),i.canvas=r,i.context=i.canvas.getContext("2d"),i.resolution=l.default.RESOLUTION,i._text=null,i._style=null,i._styleListener=null,i._font="",i.text=e,i.style=t,i.localStyleID=-1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.updateText=function(e){var t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),this.dirty||!e){this._font=this._style.toFontString();var r=this.context,n=v.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),i=n.width,o=n.height,a=n.lines,s=n.lineHeight,u=n.lineWidths,c=n.maxLineWidth,l=n.fontProperties;this.canvas.width=Math.ceil((Math.max(1,i)+2*t.padding)*this.resolution),this.canvas.height=Math.ceil((Math.max(1,o)+2*t.padding)*this.resolution),r.scale(this.resolution,this.resolution),r.clearRect(0,0,this.canvas.width,this.canvas.height),r.font=this._font,r.strokeStyle=t.stroke,r.lineWidth=t.strokeThickness,r.textBaseline=t.textBaseline,r.lineJoin=t.lineJoin,r.miterLimit=t.miterLimit;var f=void 0,h=void 0;if(t.dropShadow){r.fillStyle=t.dropShadowColor,r.globalAlpha=t.dropShadowAlpha,r.shadowBlur=t.dropShadowBlur,0<t.dropShadowBlur&&(r.shadowColor=t.dropShadowColor);for(var d=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,p=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,m=0;m<a.length;m++)f=t.strokeThickness/2,h=t.strokeThickness/2+m*s+l.ascent,"right"===t.align?f+=c-u[m]:"center"===t.align&&(f+=(c-u[m])/2),t.fill&&(this.drawLetterSpacing(a[m],f+d+t.padding,h+p+t.padding),t.stroke&&t.strokeThickness&&(r.strokeStyle=t.dropShadowColor,this.drawLetterSpacing(a[m],f+d+t.padding,h+p+t.padding,!0),r.strokeStyle=t.stroke))}r.shadowBlur=0,r.globalAlpha=1,r.fillStyle=this._generateFillStyle(t,a);for(var g=0;g<a.length;g++)f=t.strokeThickness/2,h=t.strokeThickness/2+g*s+l.ascent,"right"===t.align?f+=c-u[g]:"center"===t.align&&(f+=(c-u[g])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(a[g],f+t.padding,h+t.padding,!0),t.fill&&this.drawLetterSpacing(a[g],f+t.padding,h+t.padding);this.updateTexture()}},a.prototype.drawLetterSpacing=function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]&&arguments[3],i=this._style.letterSpacing;if(0!==i)for(var o=String.prototype.split.call(e,""),a=t,s=0,u="";s<e.length;)u=o[s++],n?this.context.strokeText(u,a,r):this.context.fillText(u,a,r),a+=this.context.measureText(u).width+i;else n?this.context.strokeText(e,t,r):this.context.fillText(e,t,r)},a.prototype.updateTexture=function(){var e=this.canvas;if(this._style.trim){var t=(0,h.default)(e);t.data&&(e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0))}var r=this._texture,n=this._style,i=n.trim?0:n.padding,o=r.baseTexture;o.hasLoaded=!0,o.resolution=this.resolution,o.realWidth=e.width,o.realHeight=e.height,o.width=e.width/this.resolution,o.height=e.height/this.resolution,r.trim.width=r._frame.width=e.width/this.resolution,r.trim.height=r._frame.height=e.height/this.resolution,r.trim.x=-i,r.trim.y=-i,r.orig.width=r._frame.width-2*i,r.orig.height=r._frame.height-2*i,this._onTextureUpdate(),o.emit("update",o),this.dirty=!1},a.prototype.renderWebGL=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),o.prototype.renderWebGL.call(this,e)},a.prototype._renderCanvas=function(e){this.resolution!==e.resolution&&(this.resolution=e.resolution,this.dirty=!0),this.updateText(!0),o.prototype._renderCanvas.call(this,e)},a.prototype.getLocalBounds=function(e){return this.updateText(!0),o.prototype.getLocalBounds.call(this,e)},a.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},a.prototype._onStyleChange=function(){this.dirty=!0},a.prototype._generateFillStyle=function(e,t){if(!Array.isArray(e.fill))return e.fill;if(navigator.isCocoonJS)return e.fill[0];var r=void 0,n=void 0,i=void 0,o=void 0,a=this.canvas.width/this.resolution,s=this.canvas.height/this.resolution,u=e.fill.slice(),c=e.fillGradientStops.slice();if(!c.length)for(var l=u.length+1,f=1;f<l;++f)c.push(f/l);if(u.unshift(e.fill[0]),c.unshift(0),u.push(e.fill[e.fill.length-1]),c.push(1),e.fillGradientType===m.TEXT_GRADIENT.LINEAR_VERTICAL){r=this.context.createLinearGradient(a/2,0,a/2,s),n=(u.length+1)*t.length;for(var h=i=0;h<t.length;h++){i+=1;for(var d=0;d<u.length;d++)o="number"==typeof c[d]?c[d]/t.length+h/t.length:i/n,r.addColorStop(o,u[d]),i++}}else{r=this.context.createLinearGradient(0,s/2,a,s/2),n=u.length+1,i=1;for(var p=0;p<u.length;p++)o="number"==typeof c[p]?c[p]:i/n,r.addColorStop(o,u[p]),i++}return r},a.prototype.destroy=function(e){"boolean"==typeof e&&(e={children:e}),e=Object.assign({},d,e),o.prototype.destroy.call(this,e),this.context=null,this.canvas=null,this._style=null},n(a,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=(0,c.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=(0,c.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"style",get:function(){return this._style},set:function(e){(e=e||{})instanceof f.default?this._style=e:this._style=new f.default(e),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(e){e=String(""===e||null==e?" ":e),this._text!==e&&(this._text=e,this.dirty=!0)}}]),a}(i.default);r.default=a},{"../const":46,"../math":70,"../settings":101,"../sprites/Sprite":102,"../textures/Texture":115,"../utils":125,"../utils/trimCanvas":130,"./TextMetrics":109,"./TextStyle":110}],109:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function E(e,t,r,n,i,o,a,s,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),this.text=e,this.style=t,this.width=r,this.height=n,this.lines=i,this.lineWidths=o,this.lineHeight=a,this.maxLineWidth=s,this.fontProperties=u}return E.measureText=function(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:E._canvas;r=null==r?t.wordWrap:r;var i=t.toFontString(),o=E.measureFont(i),a=n.getContext("2d");a.font=i;for(var s=(r?E.wordWrap(e,t,n):e).split(/(?:\r\n|\r|\n)/),u=new Array(s.length),c=0,l=0;l<s.length;l++){var f=a.measureText(s[l]).width+(s[l].length-1)*t.letterSpacing;u[l]=f,c=Math.max(c,f)}var h=c+t.strokeThickness;t.dropShadow&&(h+=t.dropShadowDistance);var d=t.lineHeight||o.fontSize+t.strokeThickness,p=Math.max(d,o.fontSize+t.strokeThickness)+(s.length-1)*(d+t.leading);return t.dropShadow&&(p+=t.dropShadowDistance),new E(e,t,h,p,s,u,d+t.leading,c,o)},E.wordWrap=function(e,t){for(var r=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:E._canvas).getContext("2d"),n=0,i="",o="",a={},s=t.letterSpacing,u=t.whiteSpace,c=E.collapseSpaces(u),l=E.collapseNewlines(u),f=!c,h=t.wordWrapWidth+s,d=E.tokenize(e),p=0;p<d.length;p++){var m=d[p];if(E.isNewline(m)){if(!l){o+=E.addLine(i),f=!c,i="",n=0;continue}m=" "}if(c){var g=E.isBreakingSpace(m),v=E.isBreakingSpace(i[i.length-1]);if(g&&v)continue}var y=E.getFromCache(m,s,a,r);if(h<y)if(""!==i&&(o+=E.addLine(i),i="",n=0),E.canBreakWords(m,t.breakWords))for(var _=m.split(""),b=0;b<_.length;b++){for(var x=_[b],w=1;_[b+w];){var T=_[b+w],S=x[x.length-1];if(E.canBreakChars(S,T,m,b,t.breakWords))break;x+=T,w++}b+=x.length-1;var M=E.getFromCache(x,s,a,r);h<M+n&&(o+=E.addLine(i),f=!1,i="",n=0),i+=x,n+=M}else{0<i.length&&(o+=E.addLine(i),i="",n=0);var P=p===d.length-1;o+=E.addLine(m,!P),f=!1,i="",n=0}else h<y+n&&(f=!1,o+=E.addLine(i),i="",n=0),(0<i.length||!E.isBreakingSpace(m)||f)&&(i+=m,n+=y)}return o+=E.addLine(i,!1)},E.addLine=function(e){var t=!(1<arguments.length&&void 0!==arguments[1])||arguments[1];return e=E.trimRight(e),e=t?e+"\n":e},E.getFromCache=function(e,t,r,n){var i=r[e];if(void 0===i){var o=e.length*t;i=n.measureText(e).width+o,r[e]=i}return i},E.collapseSpaces=function(e){return"normal"===e||"pre-line"===e},E.collapseNewlines=function(e){return"normal"===e},E.trimRight=function(e){if("string"!=typeof e)return"";for(var t=e.length-1;0<=t;t--){var r=e[t];if(!E.isBreakingSpace(r))break;e=e.slice(0,-1)}return e},E.isNewline=function(e){return"string"==typeof e&&0<=E._newlines.indexOf(e.charCodeAt(0))},E.isBreakingSpace=function(e){return"string"==typeof e&&0<=E._breakingSpaces.indexOf(e.charCodeAt(0))},E.tokenize=function(e){var t=[],r="";if("string"!=typeof e)return t;for(var n=0;n<e.length;n++){var i=e[n];E.isBreakingSpace(i)||E.isNewline(i)?(""!==r&&(t.push(r),r=""),t.push(i)):r+=i}return""!==r&&t.push(r),t},E.canBreakWords=function(e,t){return t},E.canBreakChars=function(e,t,r,n,i){return!0},E.measureFont=function(e){if(E._fonts[e])return E._fonts[e];var t={},r=E._canvas,n=E._context;n.font=e;var i=E.METRICS_STRING+E.BASELINE_SYMBOL,o=Math.ceil(n.measureText(i).width),a=Math.ceil(n.measureText(E.BASELINE_SYMBOL).width),s=2*a;a=a*E.BASELINE_MULTIPLIER|0,r.width=o,r.height=s,n.fillStyle="#f00",n.fillRect(0,0,o,s),n.font=e,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText(i,0,a);var u=n.getImageData(0,0,o,s).data,c=u.length,l=4*o,f=0,h=0,d=!1;for(f=0;f<a;++f){for(var p=0;p<l;p+=4)if(255!==u[h+p]){d=!0;break}if(d)break;h+=l}for(t.ascent=a-f,h=c-l,d=!1,f=s;a<f;--f){for(var m=0;m<l;m+=4)if(255!==u[h+m]){d=!0;break}if(d)break;h-=l}return t.descent=f-a,t.fontSize=t.ascent+t.descent,E._fonts[e]=t},E.clearMetrics=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"";e?delete E._fonts[e]:E._fonts={}},E}();r.default=n;var i=document.createElement("canvas");i.width=i.height=10,n._canvas=i,n._context=i.getContext("2d"),n._fonts={},n.METRICS_STRING="|Éq",n.BASELINE_SYMBOL="M",n.BASELINE_MULTIPLIER=1.4,n._newlines=[10,13],n._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288]},{}],110:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=e("../const"),o=e("../utils");var a={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:i.TEXT_GRADIENT.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},s=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],u=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.styleID=0,this.reset(),f(this,e,e)}return t.prototype.clone=function(){var e={};return f(e,this,a),new t(e)},t.prototype.reset=function(){f(this,a,a)},t.prototype.toFontString=function(){var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(var r=t.length-1;0<=r;r--){var n=t[r].trim();!/([\"\'])[^\'\"]+\1/.test(n)&&s.indexOf(n)<0&&(n='"'+n+'"'),t[r]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},n(t,[{key:"align",get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(e){var t=l(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(e){var t=l(e);this._fill!==t&&(this._fill=t,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(e){(function(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0})(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}},{key:"leading",get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(e){var t=l(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)}},{key:"whiteSpace",get:function(){return this._whiteSpace},set:function(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}}]),t}();function c(e){return"number"==typeof e?(0,o.hex2string)(e):("string"==typeof e&&0===e.indexOf("0x")&&(e=e.replace("0x","#")),e)}function l(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=c(e[t]);return e}return c(e)}function f(e,t,r){for(var n in r)Array.isArray(t[n])?e[n]=t[n].slice():e[n]=t[n]}r.default=u},{"../const":46,"../utils":125}],111:[function(e,t,r){"use strict";r.__esModule=!0;var n=i(e("./BaseTexture")),s=i(e("../settings"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(o){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:100,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=arguments[2],n=arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this,null,r));return i.resolution=n||s.default.RESOLUTION,i.width=Math.ceil(e),i.height=Math.ceil(t),i.realWidth=i.width*i.resolution,i.realHeight=i.height*i.resolution,i.scaleMode=void 0!==r?r:s.default.SCALE_MODE,i.hasLoaded=!0,i._glRenderTargets={},i._canvasRenderTarget=null,i.valid=!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.resize=function(e,t){e=Math.ceil(e),t=Math.ceil(t),e===this.width&&t===this.height||(this.valid=0<e&&0<t,this.width=e,this.height=t,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},a.prototype.destroy=function(){o.prototype.destroy.call(this,!0),this.renderer=null},a}(n.default);r.default=o},{"../settings":101,"./BaseTexture":112}],112:[function(e,t,r){"use strict";r.__esModule=!0;var s=e("../utils"),o=i(e("../settings")),n=i(e("eventemitter3")),u=i(e("../utils/determineCrossOrigin")),c=i(e("bit-twiddle"));function i(e){return e&&e.__esModule?e:{default:e}}var a=function(i){function a(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this));return n.uid=(0,s.uid)(),n.touched=0,n.resolution=r||o.default.RESOLUTION,n.width=100,n.height=100,n.realWidth=100,n.realHeight=100,n.scaleMode=void 0!==t?t:o.default.SCALE_MODE,n.hasLoaded=!1,n.isLoading=!1,n.source=null,n.origSource=null,n.imageType=null,n.sourceScale=1,n.premultipliedAlpha=!0,n.imageUrl=null,n.isPowerOfTwo=!1,n.mipmap=o.default.MIPMAP_TEXTURES,n.wrapMode=o.default.WRAP_MODE,n._glTextures={},n._enabled=0,n._virtalBoundId=-1,n._destroyed=!1,n.textureCacheIds=[],e&&n.loadSource(e),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,i),a.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},a.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=c.default.isPow2(this.realWidth)&&c.default.isPow2(this.realHeight)},a.prototype.loadSource=function(e){var t=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,t&&this.source&&(this.source.onload=null,this.source.onerror=null);var r=!this.source;if(((this.source=e).src&&e.complete||e.getContext)&&e.width&&e.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),r&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var n=this;if(e.onload=function(){n._updateImageType(),e.onload=null,e.onerror=null,n.isLoading&&(n.isLoading=!1,n._sourceLoaded(),"svg"!==n.imageType?n.emit("loaded",n):n._loadSvgSource())},e.onerror=function(){e.onload=null,e.onerror=null,n.isLoading&&(n.isLoading=!1,n.emit("error",n))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===n.imageType)return void n._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},a.prototype._updateImageType=function(){if(this.imageUrl){var e=(0,s.decomposeDataUri)(this.imageUrl),t=void 0;if(e&&"image"===e.mediaType){var r=e.subType.split("+")[0];if(!(t=(0,s.getUrlFileExtension)("."+r)))throw new Error("Invalid image type in data URI.")}else(t=(0,s.getUrlFileExtension)(this.imageUrl))||(t="png");this.imageType=t}},a.prototype._loadSvgSource=function(){if("svg"===this.imageType){var e=(0,s.decomposeDataUri)(this.imageUrl);e?this._loadSvgSourceUsingDataUri(e):this._loadSvgSourceUsingXhr()}},a.prototype._loadSvgSourceUsingDataUri=function(e){var t=void 0;if("base64"===e.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");t=atob(e.data)}else t=e.data;this._loadSvgSourceUsingString(t)},a.prototype._loadSvgSourceUsingXhr=function(){var e=this,t=new XMLHttpRequest;t.onload=function(){if(t.readyState!==t.DONE||200!==t.status)throw new Error("Failed to load SVG using XHR.");e._loadSvgSourceUsingString(t.response)},t.onerror=function(){return e.emit("error",e)},t.open("GET",this.imageUrl,!0),t.send()},a.prototype._loadSvgSourceUsingString=function(e){var t=(0,s.getSvgSize)(e),r=t.width,n=t.height;if(!r||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(r*this.sourceScale),this.realHeight=Math.round(n*this.sourceScale),this._updateDimensions();var i=document.createElement("canvas");i.width=this.realWidth,i.height=this.realHeight,i._pixiId="canvas_"+(0,s.uid)(),i.getContext("2d").drawImage(this.source,0,0,r,n,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=i,a.addToCache(this,i._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},a.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},a.prototype.destroy=function(){this.imageUrl&&(delete s.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),a.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},a.prototype.dispose=function(){this.emit("dispose",this)},a.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},a.fromImage=function(e,t,r,n){var i=s.BaseTextureCache[e];if(!i){var o=new Image;void 0===t&&0!==e.indexOf("data:")?o.crossOrigin=(0,u.default)(e):t&&(o.crossOrigin="string"==typeof t?t:"anonymous"),(i=new a(o,r)).imageUrl=e,n&&(i.sourceScale=n),i.resolution=(0,s.getResolutionOfUrl)(e),o.src=e,a.addToCache(i,e)}return i},a.fromCanvas=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=r+"_"+(0,s.uid)());var n=s.BaseTextureCache[e._pixiId];return n||(n=new a(e,t),a.addToCache(n,e._pixiId)),n},a.from=function(e,t,r){if("string"==typeof e)return a.fromImage(e,void 0,t,r);if(e instanceof HTMLImageElement){var n=e.src,i=s.BaseTextureCache[n];return i||((i=new a(e,t)).imageUrl=n,r&&(i.sourceScale=r),i.resolution=(0,s.getResolutionOfUrl)(n),a.addToCache(i,n)),i}return e instanceof HTMLCanvasElement?a.fromCanvas(e,t):e},a.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),s.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),s.BaseTextureCache[t]=e)},a.removeFromCache=function(e){if("string"==typeof e){var t=s.BaseTextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return-1<r&&t.textureCacheIds.splice(r,1),delete s.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var n=0;n<e.textureCacheIds.length;++n)delete s.BaseTextureCache[e.textureCacheIds[n]];return e.textureCacheIds.length=0,e}return null},a}(n.default);r.default=a},{"../settings":101,"../utils":125,"../utils/determineCrossOrigin":124,"bit-twiddle":1,eventemitter3:3}],113:[function(e,t,r){"use strict";r.__esModule=!0;var l=n(e("./BaseRenderTexture"));function n(e){return e&&e.__esModule?e:{default:e}}var i=function(u){function c(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c);var r=null;if(!(e instanceof l.default)){var n=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4];console.warn("Please use RenderTexture.create("+n+", "+i+") instead of the ctor directly."),r=arguments[0],t=null,e=new l.default(n,i,o,a)}var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,u.call(this,e,t));return s.legacyRenderer=r,s.valid=!0,s._updateUvs(),s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(c,u),c.prototype.resize=function(e,t,r){e=Math.ceil(e),t=Math.ceil(t),this.valid=0<e&&0<t,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,r||this.baseTexture.resize(e,t),this._updateUvs()},c.create=function(e,t,r,n){return new c(new l.default(e,t,r,n))},c}(n(e("./Texture")).default);r.default=i},{"./BaseRenderTexture":111,"./Texture":115}],114:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),h=e("../"),i=e("../utils");var o=function(){function f(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),this.baseTexture=e,this.textures={},this.animations={},this.data=t,this.resolution=this._updateResolution(r||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return n(f,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),f.prototype._updateResolution=function(e){var t=this.data.meta.scale,r=(0,i.getResolutionOfUrl)(e,null);return null===r&&(r=void 0!==t?parseFloat(t):1),1!==r&&(this.baseTexture.resolution=r,this.baseTexture.update()),r},f.prototype.parse=function(e){this._batchIndex=0,this._callback=e,this._frameKeys.length<=f.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},f.prototype._processFrames=function(e){for(var t=e,r=f.BATCH_SIZE,n=this.baseTexture.sourceScale;t-e<r&&t<this._frameKeys.length;){var i=this._frameKeys[t],o=this._frames[i],a=o.frame;if(a){var s=null,u=null,c=!1!==o.trimmed&&o.sourceSize?o.sourceSize:o.frame,l=new h.Rectangle(0,0,Math.floor(c.w*n)/this.resolution,Math.floor(c.h*n)/this.resolution);s=o.rotated?new h.Rectangle(Math.floor(a.x*n)/this.resolution,Math.floor(a.y*n)/this.resolution,Math.floor(a.h*n)/this.resolution,Math.floor(a.w*n)/this.resolution):new h.Rectangle(Math.floor(a.x*n)/this.resolution,Math.floor(a.y*n)/this.resolution,Math.floor(a.w*n)/this.resolution,Math.floor(a.h*n)/this.resolution),!1!==o.trimmed&&o.spriteSourceSize&&(u=new h.Rectangle(Math.floor(o.spriteSourceSize.x*n)/this.resolution,Math.floor(o.spriteSourceSize.y*n)/this.resolution,Math.floor(a.w*n)/this.resolution,Math.floor(a.h*n)/this.resolution)),this.textures[i]=new h.Texture(this.baseTexture,s,l,u,o.rotated?2:0,o.anchor),h.Texture.addToCache(this.textures[i],i)}t++}},f.prototype._processAnimations=function(){var e=this.data.animations||{};for(var t in e){this.animations[t]=[];var r=e[t],n=Array.isArray(r),i=0;for(r=n?r:r[Symbol.iterator]();;){var o;if(n){if(i>=r.length)break;o=r[i++]}else{if((i=r.next()).done)break;o=i.value}var a=o;this.animations[t].push(this.textures[a])}}},f.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},f.prototype._nextBatch=function(){var e=this;this._processFrames(this._batchIndex*f.BATCH_SIZE),this._batchIndex++,setTimeout(function(){e._batchIndex*f.BATCH_SIZE<e._frameKeys.length?e._nextBatch():(e._processAnimations(),e._parseComplete())},0)},f.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];for(var t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&this.baseTexture.destroy(),this.baseTexture=null},f}();r.default=o},{"../":65,"../utils":125}],115:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=u(e("./BaseTexture")),i=u(e("./VideoBaseTexture")),a=u(e("./TextureUvs")),s=u(e("eventemitter3")),c=e("../math"),l=e("../utils"),f=u(e("../settings"));function u(e){return e&&e.__esModule?e:{default:e}}var h=function(s){function u(e,t,r,n,i,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this));if(a.noFrame=!1,t||(a.noFrame=!0,t=new c.Rectangle(0,0,1,1)),e instanceof u&&(e=e.baseTexture),a.baseTexture=e,a._frame=t,a.trim=n,a.valid=!1,a.requiresUpdate=!1,a._uvs=null,a.orig=r||t,a._rotate=Number(i||0),!0===i)a._rotate=2;else if(a._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return e.hasLoaded?(a.noFrame&&(t=new c.Rectangle(0,0,e.width,e.height),e.on("update",a.onBaseTextureUpdated,a)),a.frame=t):e.once("loaded",a.onBaseTextureLoaded,a),a.defaultAnchor=o?new c.Point(o.x,o.y):new c.Point(0,0),a._updateID=0,a.transform=null,a.textureCacheIds=[],a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.update=function(){this.baseTexture.update()},u.prototype.onBaseTextureLoaded=function(e){this._updateID++,this.noFrame?this.frame=new c.Rectangle(0,0,e.width,e.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},u.prototype.onBaseTextureUpdated=function(e){this._updateID++,this._frame.width=e.width,this._frame.height=e.height,this.emit("update",this)},u.prototype.destroy=function(e){this.baseTexture&&(e&&(l.TextureCache[this.baseTexture.imageUrl]&&u.removeFromCache(this.baseTexture.imageUrl),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,u.removeFromCache(this),this.textureCacheIds=null},u.prototype.clone=function(){return new u(this.baseTexture,this.frame,this.orig,this.trim,this.rotate,this.defaultAnchor)},u.prototype._updateUvs=function(){this._uvs||(this._uvs=new a.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},u.fromImage=function(e,t,r,n){var i=l.TextureCache[e];return i||(i=new u(o.default.fromImage(e,t,r,n)),u.addToCache(i,e)),i},u.fromFrame=function(e){var t=l.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return t},u.fromCanvas=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"canvas";return new u(o.default.fromCanvas(e,t,r))},u.fromVideo=function(e,t,r,n){return"string"==typeof e?u.fromVideoUrl(e,t,r,n):new u(i.default.fromVideo(e,t,n))},u.fromVideoUrl=function(e,t,r,n){return new u(i.default.fromUrl(e,t,r,n))},u.from=function(e){if("string"!=typeof e)return e instanceof HTMLImageElement?new u(o.default.from(e)):e instanceof HTMLCanvasElement?u.fromCanvas(e,f.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?u.fromVideo(e):e instanceof o.default?new u(e):e;var t=l.TextureCache[e];return t||(null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?u.fromVideoUrl(e):u.fromImage(e))},u.fromLoader=function(e,t,r){var n=new o.default(e,void 0,(0,l.getResolutionOfUrl)(t)),i=new u(n);return n.imageUrl=t,r||(r=t),o.default.addToCache(i.baseTexture,r),u.addToCache(i,r),r!==t&&(o.default.addToCache(i.baseTexture,t),u.addToCache(i,t)),i},u.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),l.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),l.TextureCache[t]=e)},u.removeFromCache=function(e){if("string"==typeof e){var t=l.TextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return-1<r&&t.textureCacheIds.splice(r,1),delete l.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var n=0;n<e.textureCacheIds.length;++n)l.TextureCache[e.textureCacheIds[n]]===e&&delete l.TextureCache[e.textureCacheIds[n]];return e.textureCacheIds.length=0,e}return null},n(u,[{key:"frame",get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,r=e.y,n=e.width,i=e.height,o=t+n>this.baseTexture.width,a=r+i>this.baseTexture.height;if(o||a){var s=o&&a?"and":"or",u="X: "+t+" + "+n+" = "+(t+n)+" > "+this.baseTexture.width,c="Y: "+r+" + "+i+" = "+(r+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+c)}this.valid=n&&i&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=e),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),u}(s.default);function d(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}(r.default=h).EMPTY=new h(new o.default),d(h.EMPTY),d(h.EMPTY.baseTexture),h.WHITE=function(){var e=document.createElement("canvas");e.width=10,e.height=10;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,10,10),new h(new o.default(e))}(),d(h.WHITE),d(h.WHITE.baseTexture)},{"../math":70,"../settings":101,"../utils":125,"./BaseTexture":112,"./TextureUvs":117,"./VideoBaseTexture":118,eventemitter3:3}],116:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=e("../math/Matrix"),a=(n=o)&&n.__esModule?n:{default:n};var c=new a.default,s=function(){function r(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this._texture=e,this.mapCoord=new a.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===t?.5:t}return r.prototype.multiplyUvs=function(e,t){void 0===t&&(t=e);for(var r=this.mapCoord,n=0;n<e.length;n+=2){var i=e[n],o=e[n+1];t[n]=i*r.a+o*r.c+r.tx,t[n+1]=i*r.b+o*r.d+r.ty}return t},r.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._lastTextureID===t._updateID)return!1;this._lastTextureID=t._updateID;var r=t._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var n=t.orig,i=t.trim;i&&(c.set(n.width/i.width,0,0,n.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(c));var o=t.baseTexture,a=this.uClampFrame,s=this.clampMargin/o.resolution,u=this.clampOffset;return a[0]=(t._frame.x+s+u)/o.width,a[1]=(t._frame.y+s+u)/o.height,a[2]=(t._frame.x+t._frame.width-s+u)/o.width,a[3]=(t._frame.y+t._frame.height-s+u)/o.height,this.uClampOffset[0]=u/o.realWidth,this.uClampOffset[1]=u/o.realHeight,!0},i(r,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture=e,this._lastTextureID=-1}}]),r}();r.default=s},{"../math/Matrix":67}],117:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../math/GroupD8"),c=(n=i)&&n.__esModule?n:{default:n};var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return e.prototype.set=function(e,t,r){var n=t.width,i=t.height;if(r){var o=e.width/2/n,a=e.height/2/i,s=e.x/n+o,u=e.y/i+a;r=c.default.add(r,c.default.NW),this.x0=s+o*c.default.uX(r),this.y0=u+a*c.default.uY(r),r=c.default.add(r,2),this.x1=s+o*c.default.uX(r),this.y1=u+a*c.default.uY(r),r=c.default.add(r,2),this.x2=s+o*c.default.uX(r),this.y2=u+a*c.default.uY(r),r=c.default.add(r,2),this.x3=s+o*c.default.uX(r),this.y3=u+a*c.default.uY(r)}else this.x0=e.x/n,this.y0=e.y/i,this.x1=(e.x+e.width)/n,this.y1=e.y/i,this.x2=(e.x+e.width)/n,this.y2=(e.y+e.height)/i,this.x3=e.x/n,this.y3=(e.y+e.height)/i;this.uvsUint32[0]=(65535&Math.round(65535*this.y0))<<16|65535&Math.round(65535*this.x0),this.uvsUint32[1]=(65535&Math.round(65535*this.y1))<<16|65535&Math.round(65535*this.x1),this.uvsUint32[2]=(65535&Math.round(65535*this.y2))<<16|65535&Math.round(65535*this.x2),this.uvsUint32[3]=(65535&Math.round(65535*this.y3))<<16|65535&Math.round(65535*this.x3)},e}();r.default=o},{"../math/GroupD8":66}],118:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),o=i(e("./BaseTexture")),a=e("../utils"),u=e("../ticker"),c=e("../const"),l=i(e("../utils/determineCrossOrigin"));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(i){function s(e,t){var r=!(2<arguments.length&&void 0!==arguments[2])||arguments[2];if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),!e)throw new Error("No video source element specified.");(e.readyState===e.HAVE_ENOUGH_DATA||e.readyState===e.HAVE_FUTURE_DATA)&&e.width&&e.height&&(e.complete=!0);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e,t));return n.width=e.videoWidth,n.height=e.videoHeight,n._autoUpdate=!0,n._isAutoUpdating=!1,n.autoPlay=r,n.update=n.update.bind(n),n._onCanPlay=n._onCanPlay.bind(n),e.addEventListener("play",n._onPlayStart.bind(n)),e.addEventListener("pause",n._onPlayStop.bind(n)),n.hasLoaded=!1,n.__loaded=!1,n._isSourceReady()?n._onCanPlay():(e.addEventListener("canplay",n._onCanPlay),e.addEventListener("canplaythrough",n._onCanPlay)),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,i),s.prototype._isSourcePlaying=function(){var e=this.source;return 0<e.currentTime&&!1===e.paused&&!1===e.ended&&2<e.readyState},s.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},s.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(u.shared.add(this.update,this,c.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},s.prototype._onPlayStop=function(){this._isAutoUpdating&&(u.shared.remove(this.update,this),this._isAutoUpdating=!1)},s.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},s.prototype.destroy=function(){this._isAutoUpdating&&u.shared.remove(this.update,this),this.source&&this.source._pixiId&&(o.default.removeFromCache(this.source._pixiId),delete this.source._pixiId,this.source.pause(),this.source.src="",this.source.load()),i.prototype.destroy.call(this)},s.fromVideo=function(e,t,r){e._pixiId||(e._pixiId="video_"+(0,a.uid)());var n=a.BaseTextureCache[e._pixiId];return n||(n=new s(e,t,r),o.default.addToCache(n,e._pixiId)),n},s.fromUrl=function(e,t,r,n){var i=document.createElement("video");i.setAttribute("webkit-playsinline",""),i.setAttribute("playsinline","");var o=Array.isArray(e)?e[0].src||e[0]:e.src||e;if(void 0===r&&0!==o.indexOf("data:")?i.crossOrigin=(0,l.default)(o):r&&(i.crossOrigin="string"==typeof r?r:"anonymous"),Array.isArray(e))for(var a=0;a<e.length;++a)i.appendChild(f(e[a].src||e[a],e[a].mime));else i.appendChild(f(o,e.mime));return i.load(),s.fromVideo(i,t,n)},n(s,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isAutoUpdating?(u.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(u.shared.add(this.update,this,c.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),s}(o.default);function f(e,t){if(!t){var r=e.split("?").shift().toLowerCase();t="video/"+r.substr(r.lastIndexOf(".")+1)}var n=document.createElement("source");return n.src=e,n.type=t,n}(r.default=s).fromUrls=s.fromUrl},{"../const":46,"../ticker":121,"../utils":125,"../utils/determineCrossOrigin":124,"./BaseTexture":112}],119:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=s(e("../settings")),o=e("../const"),a=s(e("./TickerListener"));function s(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._head=new a.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/i.default.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!1,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return e.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:o.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,r))},e.prototype.addOnce=function(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:o.UPDATE_PRIORITY.NORMAL;return this._addListener(new a.default(e,t,r,!0))},e.prototype._addListener=function(e){var t=this._head.next,r=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(r);break}t=(r=t).next}e.previous||e.connect(r)}else e.connect(r);return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var r=this._head.next;r;)r=r.match(e,t)?r.destroy():r.next;return this._head.next||this._cancelIfNeeded(),this},e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){this.stop();for(var e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:performance.now(),t=void 0;if(e>this.lastTime){(t=this.elapsedMS=e-this.lastTime)>this._maxElapsedMS&&(t=this._maxElapsedMS),this.deltaTime=t*i.default.TARGET_FPMS*this.speed;for(var r=this._head,n=r.next;n;)n=n.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=e},n(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(Math.max(0,e)/1e3,i.default.TARGET_FPMS);this._maxElapsedMS=1/t}}]),e}();r.default=u},{"../const":46,"../settings":101,"./TickerListener":120}],120:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function i(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,n=3<arguments.length&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),this.fn=e,this.context=t,this.priority=r,this.once=n,this.next=null,this.previous=null,this._destroyed=!1}return i.prototype.match=function(e,t){return t=t||null,this.fn===e&&this.context===t},i.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},i.prototype.connect=function(e){(this.previous=e).next&&(e.next.previous=this),this.next=e.next,e.next=this},i.prototype.destroy=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var t=this.next;return this.next=e?null:t,this.previous=null,t},i}();r.default=n},{}],121:[function(e,t,r){"use strict";r.__esModule=!0,r.Ticker=r.shared=void 0;var n,i=e("./Ticker"),o=(n=i)&&n.__esModule?n:{default:n};var a=new o.default;a.autoStart=!0,a.destroy=function(){},r.shared=a,r.Ticker=o.default},{"./Ticker":119}],122:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return!(navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}},{}],123:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){for(var t=6*e,r=new Uint16Array(t),n=0,i=0;n<t;n+=6,i+=4)r[n+0]=i+0,r[n+1]=i+1,r[n+2]=i+2,r[n+3]=i+0,r[n+4]=i+2,r[n+5]=i+3;return r}},{}],124:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:window.location;if(0===e.indexOf("data:"))return"";t=t||window.location,a||(a=document.createElement("a"));a.href=e;var r=!(e=o.default.parse(a.href)).port&&""===t.port||e.port===t.port;return e.hostname===t.hostname&&r&&e.protocol===t.protocol?"":"anonymous"};var n,i=e("url"),o=(n=i)&&n.__esModule?n:{default:n};var a=void 0},{url:38}],125:[function(e,t,r){"use strict";r.__esModule=!0,r.premultiplyBlendMode=r.BaseTextureCache=r.TextureCache=r.earcut=r.mixins=r.pluginTarget=r.EventEmitter=r.removeItems=r.isMobile=void 0,r.uid=function(){return++p},r.hex2rgb=function(e,t){return(t=t||[])[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t},r.hex2string=function(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)},r.rgb2hex=function(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)},r.getResolutionOfUrl=function(e,t){var r=i.default.RETINA_PREFIX.exec(e);if(r)return parseFloat(r[1]);return void 0!==t?t:1},r.decomposeDataUri=function(e){var t=n.DATA_URI.exec(e);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,charset:t[3]?t[3].toLowerCase():void 0,encoding:t[4]?t[4].toLowerCase():void 0,data:t[5]};return},r.getUrlFileExtension=function(e){var t=n.URL_FILE_EXTENSION.exec(e);if(t)return t[1].toLowerCase();return},r.getSvgSize=function(e){var t=n.SVG_SIZE.exec(e),r={};t&&(r[t[1]]=Math.round(parseFloat(t[3])),r[t[5]]=Math.round(parseFloat(t[7])));return r},r.skipHello=function(){m=!0},r.sayHello=function(e){if(m)return;if(-1<navigator.userAgent.toLowerCase().indexOf("chrome")){var t=["\n %c %c %c PixiJS "+n.VERSION+" - ✰ "+e+" ✰ %c %c http://www.pixijs.com/ %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,t)}else window.console&&window.console.log("PixiJS "+n.VERSION+" - "+e+" - http://www.pixijs.com/");m=!0},r.isWebGLSupported=function(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),n=!(!r||!r.getContextAttributes().stencil);if(r){var i=r.getExtension("WEBGL_lose_context");i&&i.loseContext()}return r=null,n}catch(e){return!1}},r.sign=function(e){return 0===e?0:e<0?-1:1},r.destroyTextureCache=function(){var e=void 0;for(e in g)g[e].destroy();for(e in v)v[e].destroy()},r.clearTextureCache=function(){var e=void 0;for(e in g)delete g[e];for(e in v)delete v[e]},r.correctBlendMode=function(e,t){return y[t?1:0][e]},r.premultiplyTint=function(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var r=e>>16&255,n=e>>8&255,i=255&e;return(255*t<<24)+((r=r*t+.5|0)<<16)+((n=n*t+.5|0)<<8)+(i=i*t+.5|0)},r.premultiplyRgba=function(e,t,r,n){r=r||new Float32Array(4),n||void 0===n?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]);return r[3]=t,r},r.premultiplyTintToRgba=function(e,t,r,n){(r=r||new Float32Array(4))[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,(n||void 0===n)&&(r[0]*=t,r[1]*=t,r[2]*=t);return r[3]=t,r};var n=e("../const"),i=d(e("../settings")),o=d(e("eventemitter3")),a=d(e("./pluginTarget")),s=h(e("./mixin")),u=h(e("ismobilejs")),c=d(e("remove-array-items")),l=d(e("./mapPremultipliedBlendModes")),f=d(e("earcut"));function h(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function d(e){return e&&e.__esModule?e:{default:e}}var p=0,m=!1;r.isMobile=u,r.removeItems=c.default,r.EventEmitter=o.default,r.pluginTarget=a.default,r.mixins=s,r.earcut=f.default;var g=r.TextureCache=Object.create(null),v=r.BaseTextureCache=Object.create(null);var y=r.premultiplyBlendMode=(0,l.default)()},{"../const":46,"../settings":101,"./mapPremultipliedBlendModes":126,"./mixin":128,"./pluginTarget":129,earcut:2,eventemitter3:3,ismobilejs:4,"remove-array-items":31}],126:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[i.BLEND_MODES.NORMAL_NPM]=i.BLEND_MODES.NORMAL,e[i.BLEND_MODES.ADD_NPM]=i.BLEND_MODES.ADD,e[i.BLEND_MODES.SCREEN_NPM]=i.BLEND_MODES.SCREEN,t[i.BLEND_MODES.NORMAL]=i.BLEND_MODES.NORMAL_NPM,t[i.BLEND_MODES.ADD]=i.BLEND_MODES.ADD_NPM,t[i.BLEND_MODES.SCREEN]=i.BLEND_MODES.SCREEN_NPM;var n=[];return n.push(t),n.push(e),n};var i=e("../const")},{"../const":46}],127:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){if(o.default.tablet||o.default.phone)return 4;return e};var n,i=e("ismobilejs"),o=(n=i)&&n.__esModule?n:{default:n}},{ismobilejs:4}],128:[function(e,t,r){"use strict";function n(e,t){if(e&&t)for(var r=Object.keys(t),n=0;n<r.length;++n){var i=r[n];Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(t,i))}}r.__esModule=!0,r.mixin=n,r.delayMixin=function(e,t){i.push(e,t)},r.performMixins=function(){for(var e=0;e<i.length;e+=2)n(i[e],i[e+1]);i.length=0};var i=[]},{}],129:[function(e,t,r){"use strict";r.__esModule=!0,r.default={mixin:function(e){!function(r){r.__plugins={},r.registerPlugin=function(e,t){r.__plugins[e]=t},r.prototype.initPlugins=function(){for(var e in this.plugins=this.plugins||{},r.__plugins)this.plugins[e]=new r.__plugins[e](this)},r.prototype.destroyPlugins=function(){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;this.plugins=null}}(e)}}},{}],130:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=e.width,r=e.height,n=e.getContext("2d"),i=n.getImageData(0,0,t,r).data,o=i.length,a={top:null,left:null,right:null,bottom:null},s=null,u=void 0,c=void 0,l=void 0;for(u=0;u<o;u+=4)0!==i[u+3]&&(c=u/4%t,l=~~(u/4/t),null===a.top&&(a.top=l),null===a.left?a.left=c:c<a.left&&(a.left=c),null===a.right?a.right=c+1:a.right<c&&(a.right=c+1),null===a.bottom?a.bottom=l:a.bottom<l&&(a.bottom=l));null!==a.top&&(t=a.right-a.left,r=a.bottom-a.top+1,s=n.getImageData(a.left,a.top,t,r));return{height:r,width:t,data:s}}},{}],131:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(r){var e=r.mesh,t=r.particles,n=r.extras,i=r.filters,o=r.prepare,a=r.loaders,s=r.interaction;Object.defineProperties(r,{SpriteBatch:{get:function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")}},AssetLoader:{get:function(){throw new ReferenceError("The loader system was overhauled in PixiJS v3, please see the new PIXI.loaders.Loader class.")}},Stage:{get:function(){return p("You do not need to use a PIXI Stage any more, you can simply render any container."),r.Container}},DisplayObjectContainer:{get:function(){return p("DisplayObjectContainer has been shortened to Container, please use Container from now on."),r.Container}},Strip:{get:function(){return p("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),e.Mesh}},Rope:{get:function(){return p("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),e.Rope}},ParticleContainer:{get:function(){return p("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),t.ParticleContainer}},MovieClip:{get:function(){return p("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),n.AnimatedSprite}},TilingSprite:{get:function(){return p("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),n.TilingSprite}},BitmapText:{get:function(){return p("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),n.BitmapText}},blendModes:{get:function(){return p("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),r.BLEND_MODES}},scaleModes:{get:function(){return p("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),r.SCALE_MODES}},BaseTextureCache:{get:function(){return p("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),r.utils.BaseTextureCache}},TextureCache:{get:function(){return p("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),r.utils.TextureCache}},math:{get:function(){return p("The math namespace is deprecated, please access members already accessible on PIXI."),r}},AbstractFilter:{get:function(){return p("AstractFilter has been renamed to Filter, please use PIXI.Filter"),r.Filter}},TransformManual:{get:function(){return p("TransformManual has been renamed to TransformBase, please update your pixi-spine"),r.TransformBase}},TARGET_FPMS:{get:function(){return p("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),r.settings.TARGET_FPMS},set:function(e){p("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),r.settings.TARGET_FPMS=e}},FILTER_RESOLUTION:{get:function(){return p("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),r.settings.FILTER_RESOLUTION},set:function(e){p("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),r.settings.FILTER_RESOLUTION=e}},RESOLUTION:{get:function(){return p("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),r.settings.RESOLUTION},set:function(e){p("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),r.settings.RESOLUTION=e}},MIPMAP_TEXTURES:{get:function(){return p("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),r.settings.MIPMAP_TEXTURES},set:function(e){p("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),r.settings.MIPMAP_TEXTURES=e}},SPRITE_BATCH_SIZE:{get:function(){return p("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),r.settings.SPRITE_BATCH_SIZE},set:function(e){p("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),r.settings.SPRITE_BATCH_SIZE=e}},SPRITE_MAX_TEXTURES:{get:function(){return p("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),r.settings.SPRITE_MAX_TEXTURES},set:function(e){p("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),r.settings.SPRITE_MAX_TEXTURES=e}},RETINA_PREFIX:{get:function(){return p("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),r.settings.RETINA_PREFIX},set:function(e){p("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),r.settings.RETINA_PREFIX=e}},DEFAULT_RENDER_OPTIONS:{get:function(){return p("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),r.settings.RENDER_OPTIONS}}});for(var u=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION_FRAGMENT"}],c=function(e){var t=u[e];Object.defineProperty(r[t.parent],"DEFAULT",{get:function(){return p("PIXI."+t.parent+".DEFAULT has been deprecated, please use PIXI.settings."+t.target),r.settings[t.target]},set:function(e){p("PIXI."+t.parent+".DEFAULT has been deprecated, please use PIXI.settings."+t.target),r.settings[t.target]=e}})},l=0;l<u.length;l++)c(l);Object.defineProperties(r.settings,{PRECISION:{get:function(){return p("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),r.settings.PRECISION_FRAGMENT},set:function(e){p("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),r.settings.PRECISION_FRAGMENT=e}}}),n.AnimatedSprite&&Object.defineProperties(n,{MovieClip:{get:function(){return p("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),n.AnimatedSprite}}});n&&Object.defineProperties(n,{TextureTransform:{get:function(){return p("The TextureTransform class has been renamed to TextureMatrix, please use PIXI.TextureMatrix from now on."),r.TextureMatrix}}});r.DisplayObject.prototype.generateTexture=function(e,t,r){return p("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),e.generateTexture(this,t,r)},r.Graphics.prototype.generateTexture=function(e,t){return p("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(e,t)},r.GroupD8.isSwapWidthHeight=function(e){return p("GroupD8.isSwapWidthHeight was renamed to GroupD8.isVertical"),r.GroupD8.isVertical(e)},r.RenderTexture.prototype.render=function(e,t,r,n){this.legacyRenderer.render(e,this,r,t,!n),p("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},r.RenderTexture.prototype.getImage=function(e){return p("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(e)},r.RenderTexture.prototype.getBase64=function(e){return p("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(e)},r.RenderTexture.prototype.getCanvas=function(e){return p("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(e)},r.RenderTexture.prototype.getPixels=function(e){return p("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(e)},r.Sprite.prototype.setTexture=function(e){this.texture=e,p("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},n.BitmapText&&(n.BitmapText.prototype.setText=function(e){this.text=e,p("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")});r.Text.prototype.setText=function(e){this.text=e,p("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},r.Text.calculateFontProperties=function(e){return p("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),r.TextMetrics.measureFont(e)},Object.defineProperties(r.Text,{fontPropertiesCache:{get:function(){return p("Text.fontPropertiesCache is deprecated"),r.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return p("Text.fontPropertiesCanvas is deprecated"),r.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return p("Text.fontPropertiesContext is deprecated"),r.TextMetrics._context}}}),r.Text.prototype.setStyle=function(e){this.style=e,p("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},r.Text.prototype.determineFontProperties=function(e){return p("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),r.TextMetrics.measureFont(e)},r.Text.getFontStyle=function(e){return p("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),(e=e||{})instanceof r.TextStyle||(e=new r.TextStyle(e)),e.toFontString()},Object.defineProperties(r.TextStyle.prototype,{font:{get:function(){p("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var e="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+e+" "+this._fontFamily},set:function(e){p("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),1<e.indexOf("italic")?this._fontStyle="italic":-1<e.indexOf("oblique")?this._fontStyle="oblique":this._fontStyle="normal",-1<e.indexOf("small-caps")?this._fontVariant="small-caps":this._fontVariant="normal";var t=e.split(" "),r=-1;this._fontSize=26;for(var n=0;n<t.length;++n)if(t[n].match(/(px|pt|em|%)/)){r=n,this._fontSize=t[n];break}this._fontWeight="normal";for(var i=0;i<r;++i)if(t[i].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=t[i];break}if(-1<r&&r<t.length-1){this._fontFamily="";for(var o=r+1;o<t.length;++o)this._fontFamily+=t[o]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),r.Texture.prototype.setFrame=function(e){this.frame=e,p("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},r.Texture.addTextureToCache=function(e,t){r.Texture.addToCache(e,t),p("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},r.Texture.removeTextureFromCache=function(e){return p("Texture.removeTextureFromCache is deprecated, please use Texture.removeFromCache from now on. Be aware that Texture.removeFromCache does not automatically its BaseTexture from the BaseTextureCache. For that, use BaseTexture.removeFromCache"),r.BaseTexture.removeFromCache(e),r.Texture.removeFromCache(e)},Object.defineProperties(i,{AbstractFilter:{get:function(){return p("AstractFilter has been renamed to Filter, please use PIXI.Filter"),r.AbstractFilter}},SpriteMaskFilter:{get:function(){return p("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),r.SpriteMaskFilter}},VoidFilter:{get:function(){return p("VoidFilter has been renamed to AlphaFilter, please use PIXI.filters.AlphaFilter"),i.AlphaFilter}}}),r.utils.uuid=function(){return p("utils.uuid() is deprecated, please use utils.uid() from now on."),r.utils.uid()},r.utils.canUseNewCanvasBlendModes=function(){return p("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),r.CanvasTinter.canUseMultiply};var f=!0;Object.defineProperty(r.utils,"_saidHello",{set:function(e){e&&(p("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),f=e},get:function(){return f}}),o.BasePrepare&&(o.BasePrepare.prototype.register=function(e,t){return p("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),e&&this.registerFindHook(e),t&&this.registerUploadHook(t),this});o.canvas&&Object.defineProperty(o.canvas,"UPLOADS_PER_FRAME",{set:function(){p("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return p("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});o.webgl&&Object.defineProperty(o.webgl,"UPLOADS_PER_FRAME",{set:function(){p("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return p("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}});if(a.Loader){var h=a.Resource,d=a.Loader;Object.defineProperties(h.prototype,{isJson:{get:function(){return p("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===h.TYPE.JSON}},isXml:{get:function(){return p("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===h.TYPE.XML}},isImage:{get:function(){return p("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===h.TYPE.IMAGE}},isAudio:{get:function(){return p("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===h.TYPE.AUDIO}},isVideo:{get:function(){return p("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===h.TYPE.VIDEO}}}),Object.defineProperties(d.prototype,{before:{get:function(){return p("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return p("The after() method is deprecated, please use use()."),this.use}}})}s.interactiveTarget&&Object.defineProperty(s.interactiveTarget,"defaultCursor",{set:function(e){p("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=e},get:function(){return p("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}});s.InteractionManager&&(Object.defineProperty(s.InteractionManager,"defaultCursorStyle",{set:function(e){p("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=e},get:function(){return p("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(s.InteractionManager,"currentCursorStyle",{set:function(e){p("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=e},get:function(){return p("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))};var n={};function p(e){if(!n[e]){var t=(new Error).stack;void 0===t?console.warn("Deprecation Warning: ",e):(t=t.split("\n").splice(3).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e),console.warn(t),console.groupEnd()):(console.warn("Deprecation Warning: ",e),console.warn(t))),n[e]=!0}}},{}],132:[function(e,t,r){"use strict";r.__esModule=!0;var l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));var f=new l.Rectangle,n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(this.renderer=e).extract=this}return t.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},t.prototype.base64=function(e){return this.canvas(e).toDataURL()},t.prototype.canvas=function(e){var t=this.renderer,r=void 0,n=void 0,i=void 0,o=void 0;e&&(o=e instanceof l.RenderTexture?e:t.generateTexture(e)),o?(r=o.baseTexture._canvasRenderTarget.context,n=o.baseTexture._canvasRenderTarget.resolution,i=o.frame):(r=t.rootContext,n=t.resolution,(i=f).width=this.renderer.width,i.height=this.renderer.height);var a=i.width*n,s=i.height*n,u=new l.CanvasRenderTarget(a,s,1),c=r.getImageData(i.x*n,i.y*n,a,s);return u.context.putImageData(c,0,0),u.canvas},t.prototype.pixels=function(e){var t=this.renderer,r=void 0,n=void 0,i=void 0,o=void 0;return e&&(o=e instanceof l.RenderTexture?e:t.generateTexture(e)),o?(r=o.baseTexture._canvasRenderTarget.context,n=o.baseTexture._canvasRenderTarget.resolution,i=o.frame):(r=t.rootContext,(i=f).width=t.width,i.height=t.height),r.getImageData(0,0,i.width*n,i.height*n).data},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();r.default=n,l.CanvasRenderer.registerPlugin("extract",n)},{"../../core":65}],133:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./webgl/WebGLExtract");Object.defineProperty(r,"webgl",{enumerable:!0,get:function(){return o(n).default}});var i=e("./canvas/CanvasExtract");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"canvas",{enumerable:!0,get:function(){return o(i).default}})},{"./canvas/CanvasExtract":132,"./webgl/WebGLExtract":134}],134:[function(e,t,r){"use strict";r.__esModule=!0;var p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));var m=new p.Rectangle,n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(this.renderer=e).extract=this}return t.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},t.prototype.base64=function(e){return this.canvas(e).toDataURL()},t.prototype.canvas=function(e){var t=this.renderer,r=void 0,n=void 0,i=void 0,o=!1,a=void 0,s=!1;e&&(e instanceof p.RenderTexture?a=e:(a=this.renderer.generateTexture(e),s=!0)),a?(n=(r=a.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,i=a.frame,o=!1):(n=(r=this.renderer.rootRenderTarget).resolution,o=!0,(i=m).width=r.size.width,i.height=r.size.height);var u=i.width*n,c=i.height*n,l=new p.CanvasRenderTarget(u,c,1);if(r){t.bindRenderTarget(r);var f=new Uint8Array(4*u*c),h=t.gl;h.readPixels(i.x*n,i.y*n,u,c,h.RGBA,h.UNSIGNED_BYTE,f);var d=l.context.getImageData(0,0,u,c);d.data.set(f),l.context.putImageData(d,0,0),o&&(l.context.scale(1,-1),l.context.drawImage(l.canvas,0,-c))}return s&&a.destroy(!0),l.canvas},t.prototype.pixels=function(e){var t=this.renderer,r=void 0,n=void 0,i=void 0,o=void 0,a=!1;e&&(e instanceof p.RenderTexture?o=e:(o=this.renderer.generateTexture(e),a=!0)),o?(n=(r=o.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,i=o.frame):(n=(r=this.renderer.rootRenderTarget).resolution,(i=m).width=r.size.width,i.height=r.size.height);var s=i.width*n,u=i.height*n,c=new Uint8Array(4*s*u);if(r){t.bindRenderTarget(r);var l=t.gl;l.readPixels(i.x*n,i.y*n,s,u,l.RGBA,l.UNSIGNED_BYTE,c)}return a&&o.destroy(!0),c},t.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},t}();r.default=n,p.WebGLRenderer.registerPlugin("extract",n)},{"../../core":65}],135:[function(e,t,r){"use strict";r.__esModule=!0;var o=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));var n=function(n){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e[0]instanceof a.Texture?e[0]:e[0].texture));return r._textures=null,r._durations=null,r.textures=e,r._autoUpdate=!1!==t,r.animationSpeed=1,r.loop=!0,r.updateAnchor=!1,r.onComplete=null,r.onFrameChange=null,r.onLoop=null,r._currentTime=0,r.playing=!1,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&a.ticker.shared.remove(this.update,this))},i.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&a.ticker.shared.add(this.update,this,a.UPDATE_PRIORITY.HIGH))},i.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},i.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},i.prototype.update=function(e){var t=this.animationSpeed*e,r=this.currentFrame;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];for(n+=t/60*1e3;n<0;)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);n>=this._durations[this.currentFrame];)n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=t;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(0<this.animationSpeed&&this.currentFrame<r?this.onLoop():this.animationSpeed<0&&this.currentFrame>r&&this.onLoop()),this.updateTexture())},i.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.updateAnchor&&this._anchor.copy(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame)},i.prototype.destroy=function(e){this.stop(),n.prototype.destroy.call(this,e)},i.fromFrames=function(e){for(var t=[],r=0;r<e.length;++r)t.push(a.Texture.fromFrame(e[r]));return new i(t)},i.fromImages=function(e){for(var t=[],r=0;r<e.length;++r)t.push(a.Texture.fromImage(e[r]));return new i(t)},o(i,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(e){if(e[0]instanceof a.Texture)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}}]),i}(a.Sprite);r.default=n},{"../core":65}],136:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),O=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),o=n(e("../core/math/ObservablePoint")),T=e("../core/utils"),S=n(e("../core/settings"));function n(e){return e&&e.__esModule?e:{default:e}}var a=function(n){function A(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,A);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this));return r._textWidth=0,r._textHeight=0,r._glyphs=[],r._font={tint:void 0!==t.tint?t.tint:16777215,align:t.align||"left",name:null,size:0},r.font=t.font,r._text=e,r._maxWidth=0,r._maxLineHeight=0,r._letterSpacing=0,r._anchor=new o.default(function(){r.dirty=!0},r,0,0),r.dirty=!1,r.updateText(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(A,n),A.prototype.updateText=function(){for(var e=A.fonts[this._font.name],t=this._font.size/e.size,r=new O.Point,n=[],i=[],o=this.text.replace(/(?:\r\n|\r)/g,"\n"),a=o.length,s=this._maxWidth*e.size/this._font.size,u=null,c=0,l=0,f=0,h=-1,d=0,p=0,m=0,g=0;g<a;g++){var v=o.charCodeAt(g),y=o.charAt(g);if(/(?:\s)/.test(y)&&(h=g,d=c),"\r"!==y&&"\n"!==y){var _=e.chars[v];_&&(u&&_.kerning[u]&&(r.x+=_.kerning[u]),n.push({texture:_.texture,line:f,charCode:v,position:new O.Point(r.x+_.xOffset+this._letterSpacing/2,r.y+_.yOffset)}),r.x+=_.xAdvance+this._letterSpacing,c=r.x,m=Math.max(m,_.yOffset+_.texture.height),u=v,-1!==h&&0<s&&r.x>s&&(++p,O.utils.removeItems(n,1+h-p,1+g-h),g=h,h=-1,i.push(d),l=Math.max(l,d),f++,r.x=0,r.y+=e.lineHeight,u=null))}else i.push(c),l=Math.max(l,c),++f,++p,r.x=0,r.y+=e.lineHeight,u=null}var b=o.charAt(o.length-1);"\r"!==b&&"\n"!==b&&(/(?:\s)/.test(b)&&(c=d),i.push(c),l=Math.max(l,c));for(var x=[],w=0;w<=f;w++){var T=0;"right"===this._font.align?T=l-i[w]:"center"===this._font.align&&(T=(l-i[w])/2),x.push(T)}for(var S=n.length,M=this.tint,P=0;P<S;P++){var E=this._glyphs[P];E?E.texture=n[P].texture:(E=new O.Sprite(n[P].texture),this._glyphs.push(E)),E.position.x=(n[P].position.x+x[n[P].line])*t,E.position.y=n[P].position.y*t,E.scale.x=E.scale.y=t,E.tint=M,E.parent||this.addChild(E)}for(var C=S;C<this._glyphs.length;++C)this.removeChild(this._glyphs[C]);if(this._textWidth=l*t,this._textHeight=(r.y+e.lineHeight)*t,0!==this.anchor.x||0!==this.anchor.y)for(var k=0;k<S;k++)this._glyphs[k].x-=this._textWidth*this.anchor.x,this._glyphs[k].y-=this._textHeight*this.anchor.y;this._maxLineHeight=m*t},A.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},A.prototype.getLocalBounds=function(){return this.validate(),n.prototype.getLocalBounds.call(this)},A.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},A.registerFont=function(e,t){var r={},n=e.getElementsByTagName("info")[0],i=e.getElementsByTagName("common")[0],o=e.getElementsByTagName("page"),a=(0,T.getResolutionOfUrl)(o[0].getAttribute("file"),S.default.RESOLUTION),s={};r.font=n.getAttribute("face"),r.size=parseInt(n.getAttribute("size"),10),r.lineHeight=parseInt(i.getAttribute("lineHeight"),10)/a,r.chars={},t instanceof O.Texture&&(t=[t]);for(var u=0;u<o.length;u++){var c=o[u].getAttribute("id"),l=o[u].getAttribute("file");s[c]=t instanceof Array?t[u]:t[l]}for(var f=e.getElementsByTagName("char"),h=0;h<f.length;h++){var d=f[h],p=parseInt(d.getAttribute("id"),10),m=d.getAttribute("page")||0,g=new O.Rectangle(parseInt(d.getAttribute("x"),10)/a+s[m].frame.x/a,parseInt(d.getAttribute("y"),10)/a+s[m].frame.y/a,parseInt(d.getAttribute("width"),10)/a,parseInt(d.getAttribute("height"),10)/a);r.chars[p]={xOffset:parseInt(d.getAttribute("xoffset"),10)/a,yOffset:parseInt(d.getAttribute("yoffset"),10)/a,xAdvance:parseInt(d.getAttribute("xadvance"),10)/a,kerning:{},texture:new O.Texture(s[m].baseTexture,g),page:m}}for(var v=e.getElementsByTagName("kerning"),y=0;y<v.length;y++){var _=v[y],b=parseInt(_.getAttribute("first"),10)/a,x=parseInt(_.getAttribute("second"),10)/a,w=parseInt(_.getAttribute("amount"),10)/a;r.chars[x]&&(r.chars[x].kerning[b]=w)}return A.fonts[r.font]=r},i(A,[{key:"tint",get:function(){return this._font.tint},set:function(e){this._font.tint="number"==typeof e&&0<=e?e:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(e){this._font.align=e||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copy(e)}},{key:"font",get:function(){return this._font},set:function(e){e&&("string"==typeof e?(e=e.split(" "),this._font.name=1===e.length?e[0]:e.slice(1).join(" "),this._font.size=2<=e.length?parseInt(e[0],10):A.fonts[this._font.name].size):(this._font.name=e.name,this._font.size="number"==typeof e.size?e.size:parseInt(e.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(e){e=e.toString()||" ",this._text!==e&&(this._text=e,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.dirty=!0)}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),A}(O.Container);(r.default=a).fonts={}},{"../core":65,"../core/math/ObservablePoint":68,"../core/settings":101,"../core/utils":125}],137:[function(e,t,r){"use strict";r.__esModule=!0;var n,a=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),x=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),i=e("../core/sprites/canvas/CanvasTinter"),w=(n=i)&&n.__esModule?n:{default:n};var s=new x.Point,o=function(i){function o(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:100;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e));return n.tileTransform=new x.TransformStatic,n._width=t,n._height=r,n._canvasPattern=null,n.uvTransform=e.transform||new x.TextureMatrix(e),n.pluginName="tilingSprite",n.uvRespectAnchor=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},o.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},o.prototype._renderCanvas=function(e){var t=this._texture;if(t.baseTexture.hasLoaded){var r=e.context,n=this.worldTransform,i=e.resolution,o=2===t.rotate,a=t.baseTexture,s=a.resolution,u=this.tilePosition.x/this.tileScale.x%t.orig.width*s,c=this.tilePosition.y/this.tileScale.y%t.orig.height*s;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var l=new x.CanvasRenderTarget(t.orig.width,t.orig.height,s);if(16777215!==this.tint)this.tintedTexture=w.default.getTintedTexture(this,this.tint),l.context.drawImage(this.tintedTexture,0,0);else{var f=t._frame.x*s,h=t._frame.y*s,d=t._frame.width*s,p=t._frame.height*s,m=(t.trim?t.trim.width:t.orig.width)*s,g=(t.trim?t.trim.height:t.orig.height)*s,v=(t.trim?t.trim.x:0)*s,y=(t.trim?t.trim.y:0)*s;o?(l.context.rotate(-Math.PI/2),l.context.translate(-g,0),l.context.drawImage(a.source,f,h,d,p,-y,v,g,m)):l.context.drawImage(a.source,f,h,d,p,v,y,m,g)}this.cachedTint=this.tint,this._canvasPattern=l.context.createPattern(l.canvas,"repeat")}r.globalAlpha=this.worldAlpha,r.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),e.setBlendMode(this.blendMode),r.fillStyle=this._canvasPattern,r.scale(this.tileScale.x/s,this.tileScale.y/s);var _=this.anchor.x*-this._width*s,b=this.anchor.y*-this._height*s;this.uvRespectAnchor?(r.translate(u,c),r.fillRect(_-u,b-c,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s)):(r.translate(u+_,c+b),r.fillRect(-u,-c,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s))}},o.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),n=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,r,n)},o.prototype.getLocalBounds=function(e){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._y),e||(this._localBoundsRect||(this._localBoundsRect=new x.Rectangle),e=this._localBoundsRect),this._bounds.getRectangle(e)):i.prototype.getLocalBounds.call(this,e)},o.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,s);var t=this._width,r=this._height,n=-t*this.anchor._x;if(s.x>=n&&s.x<n+t){var i=-r*this.anchor._y;if(s.y>=i&&s.y<i+r)return!0}return!1},o.prototype.destroy=function(e){i.prototype.destroy.call(this,e),this.tileTransform=null,this.uvTransform=null},o.from=function(e,t,r){return new o(x.Texture.from(e),t,r)},o.fromFrame=function(e,t,r){var n=x.utils.TextureCache[e];if(!n)throw new Error('The frameId "'+e+'" does not exist in the texture cache '+this);return new o(n,t,r)},o.fromImage=function(e,t,r,n,i){return new o(x.Texture.fromImage(e,n,i),t,r)},a(o,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(e){this.uvTransform.clampMargin=e,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copy(e)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copy(e)}},{key:"width",get:function(){return this._width},set:function(e){this._width=e}},{key:"height",get:function(){return this._height},set:function(e){this._height=e}}]),o}(x.Sprite);r.default=o},{"../core":65,"../core/sprites/canvas/CanvasTinter":104}],138:[function(e,t,r){"use strict";var l=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),f=n(e("../core/textures/Texture")),h=n(e("../core/textures/BaseTexture")),d=e("../core/utils");function n(e){return e&&e.__esModule?e:{default:e}}var i=l.DisplayObject,p=new l.Matrix;i.prototype._cacheAsBitmap=!1,i.prototype._cacheData=!1;var o=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.textureCacheId=null,this.originalRenderWebGL=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(i.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){var t=void 0;(this._cacheAsBitmap=e)?(this._cacheData||(this._cacheData=new o),(t=this._cacheData).originalRenderWebGL=this.renderWebGL,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this.calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((t=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=t.originalRenderWebGL,this.renderCanvas=t.originalRenderCanvas,this.calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}}),i.prototype._renderCachedWebGL=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(e))},i.prototype._initCachedDisplayObject=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.alpha;this.alpha=1,e.currentRenderer.flush();var r=this.getLocalBounds().clone();if(this._filters&&this._filters.length){var n=this._filters[0].padding;r.pad(n)}r.ceil(l.settings.RESOLUTION);var i=e._activeRenderTarget,o=e.filterManager.filterStack,a=l.RenderTexture.create(r.width,r.height),s="cacheAsBitmap_"+(0,d.uid)();this._cacheData.textureCacheId=s,h.default.addToCache(a.baseTexture,s),f.default.addToCache(a,s);var u=p;u.tx=-r.x,u.ty=-r.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,e.render(this,a,!0,u,!0),e.bindRenderTarget(i),e.filterManager.filterStack=o,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var c=new l.Sprite(a);c.transform.worldTransform=this.transform.worldTransform,c.anchor.x=-r.x/r.width,c.anchor.y=-r.y/r.height,c.alpha=t,c._bounds=this._bounds,this._cacheData.sprite=c,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=c.containsPoint.bind(c)}},i.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(e))},i.prototype._initCachedDisplayObjectCanvas=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.getLocalBounds(),r=this.alpha;this.alpha=1;var n=e.context;t.ceil(l.settings.RESOLUTION);var i=l.RenderTexture.create(t.width,t.height),o="cacheAsBitmap_"+(0,d.uid)();this._cacheData.textureCacheId=o,h.default.addToCache(i.baseTexture,o),f.default.addToCache(i,o);var a=p;this.transform.localTransform.copy(a),a.invert(),a.tx-=t.x,a.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,i,!0,a,!1),e.context=n,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var s=new l.Sprite(i);s.transform.worldTransform=this.transform.worldTransform,s.anchor.x=-t.x/t.width,s.anchor.y=-t.y/t.height,s.alpha=r,s._bounds=this._bounds,this._cacheData.sprite=s,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=s.containsPoint.bind(s)}},i.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._lastBoundsID=this._boundsID},i.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},i.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,h.default.removeFromCache(this._cacheData.textureCacheId),f.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},i.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)}},{"../core":65,"../core/textures/BaseTexture":112,"../core/textures/Texture":115,"../core/utils":125}],139:[function(e,t,r){"use strict";var n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));n.DisplayObject.prototype.name=null,n.Container.prototype.getChildByName=function(e){for(var t=0;t<this.children.length;t++)if(this.children[t].name===e)return this.children[t];return null}},{"../core":65}],140:[function(e,t,r){"use strict";var n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));n.DisplayObject.prototype.getGlobalPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:new n.Point,t=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e}},{"../core":65}],141:[function(e,t,r){"use strict";r.__esModule=!0,r.BitmapText=r.TilingSpriteRenderer=r.TilingSprite=r.AnimatedSprite=void 0;var n=e("./AnimatedSprite");Object.defineProperty(r,"AnimatedSprite",{enumerable:!0,get:function(){return s(n).default}});var i=e("./TilingSprite");Object.defineProperty(r,"TilingSprite",{enumerable:!0,get:function(){return s(i).default}});var o=e("./webgl/TilingSpriteRenderer");Object.defineProperty(r,"TilingSpriteRenderer",{enumerable:!0,get:function(){return s(o).default}});var a=e("./BitmapText");function s(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"BitmapText",{enumerable:!0,get:function(){return s(a).default}}),e("./cacheAsBitmap"),e("./getChildByName"),e("./getGlobalPosition")},{"./AnimatedSprite":135,"./BitmapText":136,"./TilingSprite":137,"./cacheAsBitmap":138,"./getChildByName":139,"./getGlobalPosition":140,"./webgl/TilingSpriteRenderer":142}],142:[function(e,t,r){"use strict";r.__esModule=!0;var p=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),m=e("../../core/const");e("path");var g=new p.Matrix,n=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t.simpleShader=null,t.quad=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new p.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new p.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new p.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},n.prototype.render=function(e){var t=this.renderer,r=this.quad;t.bindVao(r.vao);var n=r.vertices;n[0]=n[6]=e._width*-e.anchor.x,n[1]=n[3]=e._height*-e.anchor.y,n[2]=n[4]=e._width*(1-e.anchor.x),n[5]=n[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((n=r.uvs)[0]=n[6]=-e.anchor.x,n[1]=n[3]=-e.anchor.y,n[2]=n[4]=1-e.anchor.x,n[5]=n[7]=1-e.anchor.y),r.upload();var i=e._texture,o=i.baseTexture,a=e.tileTransform.localTransform,s=e.uvTransform,u=o.isPowerOfTwo&&i.frame.width===o.width&&i.frame.height===o.height;u&&(o._glTextures[t.CONTEXT_UID]?u=o.wrapMode!==m.WRAP_MODES.CLAMP:o.wrapMode===m.WRAP_MODES.CLAMP&&(o.wrapMode=m.WRAP_MODES.REPEAT));var c=u?this.simpleShader:this.shader;t.bindShader(c);var l=i.width,f=i.height,h=e._width,d=e._height;g.set(a.a*l/h,a.b*l/d,a.c*f/h,a.d*f/d,a.tx/h,a.ty/d),g.invert(),u?g.prepend(s.mapCoord):(c.uniforms.uMapCoord=s.mapCoord.toArray(!0),c.uniforms.uClampFrame=s.uClampFrame,c.uniforms.uClampOffset=s.uClampOffset),c.uniforms.uTransform=g.toArray(!0),c.uniforms.uColor=p.utils.premultiplyTintToRgba(e.tint,e.worldAlpha,c.uniforms.uColor,o.premultipliedAlpha),c.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),c.uniforms.uSampler=t.bindTexture(i),t.setBlendMode(p.utils.correctBlendMode(e.blendMode,o.premultipliedAlpha)),r.vao.draw(this.renderer.gl.TRIANGLES,6,0)},n}(p.ObjectRenderer);r.default=n,p.WebGLRenderer.registerPlugin("tilingSprite",n)},{"../../core":65,"../../core/const":46,path:8}],143:[function(e,t,r){"use strict";r.__esModule=!0;var i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var o=function(r){function n(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float uAlpha;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;\n}\n"));return t.alpha=e,t.glShaderKey="alpha",t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),i(n,[{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),n}(n.Filter);r.default=o},{"../../core":65,path:8}],144:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),u=i(e("./BlurXFilter")),c=i(e("./BlurYFilter"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(o){function a(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this));return i.blurXFilter=new u.default(e,t,r,n),i.blurYFilter=new c.default(e,t,r,n),i.padding=0,i.resolution=r||s.settings.RESOLUTION,i.quality=t||4,i.blur=e||8,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.apply=function(e,t,r){var n=e.getRenderTarget(!0);this.blurXFilter.apply(e,t,n,!0),this.blurYFilter.apply(e,n,r,!1),e.returnRenderTarget(n)},n(a,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"quality",get:function(){return this.blurXFilter.quality},set:function(e){this.blurXFilter.quality=this.blurYFilter.quality=e}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blurY",get:function(){return this.blurYFilter.blur},set:function(e){this.blurYFilter.blur=e,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blendMode",get:function(){return this.blurYFilter._blendMode},set:function(e){this.blurYFilter._blendMode=e}}]),a}(s.Filter);r.default=o},{"../../core":65,"./BlurXFilter":145,"./BlurYFilter":146}],145:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),f=i(e("./generateBlurVertSource")),h=i(e("./generateBlurFragSource")),d=i(e("./getMaxBlurKernelSize"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(s){function u(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),n=n||5;var i=(0,f.default)(n,!0),o=(0,h.default)(n),a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this,i,o));return a.resolution=r||c.settings.RESOLUTION,a._quality=0,a.quality=t||4,a.strength=e||8,a.firstRun=!0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.apply=function(e,t,r,n){if(this.firstRun){var i=e.renderer.gl,o=(0,d.default)(i);this.vertexSrc=(0,f.default)(o,!0),this.fragmentSrc=(0,h.default)(o),this.firstRun=!1}if(this.uniforms.strength=1/r.size.width*(r.size.width/t.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,n);else{for(var a=e.getRenderTarget(!0),s=t,u=a,c=0;c<this.passes-1;c++){e.applyFilter(this,s,u,!0);var l=u;u=s,s=l}e.applyFilter(this,s,r,n),e.returnRenderTarget(a)}},n(u,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),u}(c.Filter);r.default=o},{"../../core":65,"./generateBlurFragSource":147,"./generateBlurVertSource":148,"./getMaxBlurKernelSize":149}],146:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),c=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),f=i(e("./generateBlurVertSource")),h=i(e("./generateBlurFragSource")),d=i(e("./getMaxBlurKernelSize"));function i(e){return e&&e.__esModule?e:{default:e}}var o=function(s){function u(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),n=n||5;var i=(0,f.default)(n,!1),o=(0,h.default)(n),a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,s.call(this,i,o));return a.resolution=r||c.settings.RESOLUTION,a._quality=0,a.quality=t||4,a.strength=e||8,a.firstRun=!0,a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(u,s),u.prototype.apply=function(e,t,r,n){if(this.firstRun){var i=e.renderer.gl,o=(0,d.default)(i);this.vertexSrc=(0,f.default)(o,!1),this.fragmentSrc=(0,h.default)(o),this.firstRun=!1}if(this.uniforms.strength=1/r.size.height*(r.size.height/t.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,n);else{for(var a=e.getRenderTarget(!0),s=t,u=a,c=0;c<this.passes-1;c++){e.applyFilter(this,s,u,!0);var l=u;u=s,s=l}e.applyFilter(this,s,r,n),e.returnRenderTarget(a)}},n(u,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),u}(c.Filter);r.default=o},{"../../core":65,"./generateBlurFragSource":147,"./generateBlurVertSource":148,"./getMaxBlurKernelSize":149}],147:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){for(var t=u[e],r=t.length,n=c,i="",o=void 0,a=0;a<e;a++){var s="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",a);r<=(o=a)&&(o=e-a-1),s=s.replace("%value%",t[o]),i+=s,i+="\n"}return n=(n=n.replace("%blur%",i)).replace("%size%",e)};var u={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},c=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join("\n")},{}],148:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e,t){var r=Math.ceil(e/2),n=u,i="",o=void 0;o=t?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var a=0;a<e;a++){var s=o.replace("%index%",a);s=s.replace("%sampleIndex%",a-(r-1)+".0"),i+=s,i+="\n"}return n=(n=n.replace("%blur%",i)).replace("%size%",e)};var u=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float strength;","uniform mat3 projectionMatrix;","varying vec2 vBlurTexCoords[%size%];","void main(void)","{","gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);","%blur%","}"].join("\n")},{}],149:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(e){var t=e.getParameter(e.MAX_VARYING_VECTORS),r=15;for(;t<r;)r-=2;return r}},{}],150:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var o=function(t){function r(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (uAlpha == 0.0) {\n gl_FragColor = c;\n return;\n }\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (c.a > 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n"));return e.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],e.alpha=1,e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r.prototype._loadMatrix=function(e){var t=e;1<arguments.length&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(t,this.uniforms.m,e),t=this._colorMatrix(t)),this.uniforms.m=t},r.prototype._multiply=function(e,t,r){return e[0]=t[0]*r[0]+t[1]*r[5]+t[2]*r[10]+t[3]*r[15],e[1]=t[0]*r[1]+t[1]*r[6]+t[2]*r[11]+t[3]*r[16],e[2]=t[0]*r[2]+t[1]*r[7]+t[2]*r[12]+t[3]*r[17],e[3]=t[0]*r[3]+t[1]*r[8]+t[2]*r[13]+t[3]*r[18],e[4]=t[0]*r[4]+t[1]*r[9]+t[2]*r[14]+t[3]*r[19]+t[4],e[5]=t[5]*r[0]+t[6]*r[5]+t[7]*r[10]+t[8]*r[15],e[6]=t[5]*r[1]+t[6]*r[6]+t[7]*r[11]+t[8]*r[16],e[7]=t[5]*r[2]+t[6]*r[7]+t[7]*r[12]+t[8]*r[17],e[8]=t[5]*r[3]+t[6]*r[8]+t[7]*r[13]+t[8]*r[18],e[9]=t[5]*r[4]+t[6]*r[9]+t[7]*r[14]+t[8]*r[19]+t[9],e[10]=t[10]*r[0]+t[11]*r[5]+t[12]*r[10]+t[13]*r[15],e[11]=t[10]*r[1]+t[11]*r[6]+t[12]*r[11]+t[13]*r[16],e[12]=t[10]*r[2]+t[11]*r[7]+t[12]*r[12]+t[13]*r[17],e[13]=t[10]*r[3]+t[11]*r[8]+t[12]*r[13]+t[13]*r[18],e[14]=t[10]*r[4]+t[11]*r[9]+t[12]*r[14]+t[13]*r[19]+t[14],e[15]=t[15]*r[0]+t[16]*r[5]+t[17]*r[10]+t[18]*r[15],e[16]=t[15]*r[1]+t[16]*r[6]+t[17]*r[11]+t[18]*r[16],e[17]=t[15]*r[2]+t[16]*r[7]+t[17]*r[12]+t[18]*r[17],e[18]=t[15]*r[3]+t[16]*r[8]+t[17]*r[13]+t[18]*r[18],e[19]=t[15]*r[4]+t[16]*r[9]+t[17]*r[14]+t[18]*r[19]+t[19],e},r.prototype._colorMatrix=function(e){var t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},r.prototype.brightness=function(e,t){var r=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.greyscale=function(e,t){var r=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.blackAndWhite=function(e){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],e)},r.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var r=Math.cos(e),n=Math.sin(e),i=(0,Math.sqrt)(1/3),o=[r+1/3*(1-r),1/3*(1-r)-i*n,1/3*(1-r)+i*n,0,0,1/3*(1-r)+i*n,r+1/3*(1-r),1/3*(1-r)-i*n,0,0,1/3*(1-r)-i*n,1/3*(1-r)+i*n,r+1/3*(1-r),0,0,0,0,0,1,0];this._loadMatrix(o,t)},r.prototype.contrast=function(e,t){var r=(e||0)+1,n=-.5*(r-1),i=[r,0,0,0,n,0,r,0,0,n,0,0,r,0,n,0,0,0,1,0];this._loadMatrix(i,t)},r.prototype.saturate=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=2*e/3+1,n=-.5*(r-1),i=[r,n,n,0,0,n,r,n,0,0,n,n,r,0,0,0,0,0,1,0];this._loadMatrix(i,t)},r.prototype.desaturate=function(){this.saturate(-1)},r.prototype.negative=function(e){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],e)},r.prototype.sepia=function(e){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],e)},r.prototype.technicolor=function(e){this._loadMatrix([1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],e)},r.prototype.polaroid=function(e){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],e)},r.prototype.toBGR=function(e){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],e)},r.prototype.kodachrome=function(e){this._loadMatrix([1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],e)},r.prototype.browni=function(e){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],e)},r.prototype.vintage=function(e){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],e)},r.prototype.colorTone=function(e,t,r,n,i){var o=((r=r||16770432)>>16&255)/255,a=(r>>8&255)/255,s=(255&r)/255,u=((n=n||3375104)>>16&255)/255,c=(n>>8&255)/255,l=(255&n)/255,f=[.3,.59,.11,0,0,o,a,s,e=e||.2,0,u,c,l,t=t||.15,0,o-u,a-c,s-l,0,0];this._loadMatrix(f,i)},r.prototype.night=function(e,t){var r=[-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.predator=function(e,t){var r=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(r,t)},r.prototype.lsd=function(e){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},r.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},n(r,[{key:"matrix",get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),r}(i.Filter);(r.default=o).prototype.grayscale=o.prototype.greyscale},{"../../core":65,path:8}],151:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var i=function(i){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var r=new a.Matrix;e.renderable=!1;var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;\n vTextureCoord = aTextureCoord;\n}","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 map = texture2D(mapSampler, vFilterCoord);\n\n map -= 0.5;\n map.xy *= scale / filterArea.xy;\n\n gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\n}\n"));return n.maskSprite=e,n.maskMatrix=r,n.uniforms.mapSampler=e._texture,n.uniforms.filterMatrix=r,n.uniforms.scale={x:1,y:1},null==t&&(t=20),n.scale=new a.Point(t,t),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype.apply=function(e,t,r){this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x,this.uniforms.scale.y=this.scale.y,e.applyFilter(this,t,r)},n(o,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e}}]),o}(a.Filter);r.default=i},{"../../core":65,path:8}],152:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n out vec2 v_rgbNW, out vec2 v_rgbNE,\n out vec2 v_rgbSW, out vec2 v_rgbSE,\n out vec2 v_rgbM) {\n vec2 inverseVP = 1.0 / resolution.xy;\n v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = aTextureCoord;\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX 8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n vec2 v_rgbNW, vec2 v_rgbNE,\n vec2 v_rgbSW, vec2 v_rgbSE,\n vec2 v_rgbM) {\n vec4 color;\n mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n vec4 texColor = texture2D(tex, v_rgbM);\n vec3 rgbM = texColor.xyz;\n vec3 luma = vec3(0.299, 0.587, 0.114);\n float lumaNW = dot(rgbNW, luma);\n float lumaNE = dot(rgbNE, luma);\n float lumaSW = dot(rgbSW, luma);\n float lumaSE = dot(rgbSE, luma);\n float lumaM = dot(rgbM, luma);\n float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n \n mediump vec2 dir;\n dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n \n float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n \n float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n dir * rcpDirMin)) * inverseVP;\n \n vec3 rgbA = 0.5 * (\n texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n vec3 rgbB = rgbA * 0.5 + 0.25 * (\n texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n \n float lumaB = dot(rgbB, luma);\n if ((lumaB < lumaMin) || (lumaB > lumaMax))\n color = vec4(rgbA, texColor.a);\n else\n color = vec4(rgbB, texColor.a);\n return color;\n}\n\nvoid main() {\n\n vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n vec4 color;\n\n color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n gl_FragColor = color;\n}\n'))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.Filter);r.default=i},{"../../core":65,path:8}],153:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./fxaa/FXAAFilter");Object.defineProperty(r,"FXAAFilter",{enumerable:!0,get:function(){return f(n).default}});var i=e("./noise/NoiseFilter");Object.defineProperty(r,"NoiseFilter",{enumerable:!0,get:function(){return f(i).default}});var o=e("./displacement/DisplacementFilter");Object.defineProperty(r,"DisplacementFilter",{enumerable:!0,get:function(){return f(o).default}});var a=e("./blur/BlurFilter");Object.defineProperty(r,"BlurFilter",{enumerable:!0,get:function(){return f(a).default}});var s=e("./blur/BlurXFilter");Object.defineProperty(r,"BlurXFilter",{enumerable:!0,get:function(){return f(s).default}});var u=e("./blur/BlurYFilter");Object.defineProperty(r,"BlurYFilter",{enumerable:!0,get:function(){return f(u).default}});var c=e("./colormatrix/ColorMatrixFilter");Object.defineProperty(r,"ColorMatrixFilter",{enumerable:!0,get:function(){return f(c).default}});var l=e("./alpha/AlphaFilter");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"AlphaFilter",{enumerable:!0,get:function(){return f(l).default}})},{"./alpha/AlphaFilter":143,"./blur/BlurFilter":144,"./blur/BlurXFilter":145,"./blur/BlurYFilter":146,"./colormatrix/ColorMatrixFilter":150,"./displacement/DisplacementFilter":151,"./fxaa/FXAAFilter":152,"./noise/NoiseFilter":154}],154:[function(e,t,r){"use strict";r.__esModule=!0;var o=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),n=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core"));e("path");var i=function(n){function i(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:.5,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:Math.random();!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float randomValue = rand(gl_FragCoord.xy * uSeed);\n float diff = (randomValue - 0.5) * uNoise;\n\n // Un-premultiply alpha before applying the color matrix. See issue #3539.\n if (color.a > 0.0) {\n color.rgb /= color.a;\n }\n\n color.r += diff;\n color.g += diff;\n color.b += diff;\n\n // Premultiply alpha again.\n color.rgb *= color.a;\n\n gl_FragColor = color;\n}\n"));return r.noise=e,r.seed=t,r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),o(i,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e}}]),i}(n.Filter);r.default=i},{"../../core":65,path:8}],155:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core"));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.global=new i.Point,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return e.prototype.getLocalPosition=function(e,t,r){return e.worldTransform.applyInverse(r||this.global,t)},e.prototype.copyEvent=function(e){e.isPrimary&&(this.isPrimary=!0),this.button=e.button,this.buttons=Number.isInteger(e.buttons)?e.buttons:e.which,this.width=e.width,this.height=e.height,this.tiltX=e.tiltX,this.tiltY=e.tiltY,this.pointerType=e.pointerType,this.pressure=e.pressure,this.rotationAngle=e.rotationAngle,this.twist=e.twist||0,this.tangentialPressure=e.tangentialPressure||0},e.prototype.reset=function(){this.isPrimary=!1},n(e,[{key:"pointerId",get:function(){return this.identifier}}]),e}();r.default=o},{"../core":65}],156:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0},e.prototype.reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},e}();r.default=n},{}],157:[function(e,t,r){"use strict";r.__esModule=!0;var o="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},a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),s=c(e("./InteractionData")),u=c(e("./InteractionEvent")),d=c(e("./InteractionTrackingData")),n=c(e("eventemitter3")),i=c(e("./interactiveTarget"));function c(e){return e&&e.__esModule?e:{default:e}}a.utils.mixins.delayMixin(a.DisplayObject.prototype,i.default);var l={target:null,data:{global:null}},f=function(n){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this));return t=t||{},r.renderer=e,r.autoPreventDefault=void 0===t.autoPreventDefault||t.autoPreventDefault,r.interactionFrequency=t.interactionFrequency||10,r.mouse=new s.default,r.mouse.identifier=1,r.mouse.global.set(-999999),r.activeInteractionData={},r.activeInteractionData[1]=r.mouse,r.interactionDataPool=[],r.eventData=new u.default,r.interactionDOMElement=null,r.moveWhenInside=!1,r.eventsAdded=!1,r.mouseOverRenderer=!1,r.supportsTouchEvents="ontouchstart"in window,r.supportsPointerEvents=!!window.PointerEvent,r.onPointerUp=r.onPointerUp.bind(r),r.processPointerUp=r.processPointerUp.bind(r),r.onPointerCancel=r.onPointerCancel.bind(r),r.processPointerCancel=r.processPointerCancel.bind(r),r.onPointerDown=r.onPointerDown.bind(r),r.processPointerDown=r.processPointerDown.bind(r),r.onPointerMove=r.onPointerMove.bind(r),r.processPointerMove=r.processPointerMove.bind(r),r.onPointerOut=r.onPointerOut.bind(r),r.processPointerOverOut=r.processPointerOverOut.bind(r),r.onPointerOver=r.onPointerOver.bind(r),r.cursorStyles={default:"inherit",pointer:"pointer"},r.currentCursorMode=null,r.cursor=null,r._tempPoint=new a.Point,r.resolution=1,r.setTargetElement(r.renderer.view,r.renderer.resolution),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype.hitTest=function(e,t){return l.target=null,l.data.global=e,t||(t=this.renderer._lastObjectRendered),this.processInteractive(l,t,null,!0),l.target},i.prototype.setTargetElement=function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents()},i.prototype.addEvents=function(){this.interactionDOMElement&&(a.ticker.shared.add(this.update,this,a.UPDATE_PRIORITY.INTERACTION),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},i.prototype.removeEvents=function(){this.interactionDOMElement&&(a.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},i.prototype.update=function(e){if(this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement))if(this.didMove)this.didMove=!1;else{for(var t in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var r=this.activeInteractionData[t];if(r.originalEvent&&"touch"!==r.pointerType){var n=this.configureInteractionEventForDOMEvent(this.eventData,r.originalEvent,r);this.processInteractive(n,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},i.prototype.setCursorMode=function(e){if(e=e||"default",this.currentCursorMode!==e){this.currentCursorMode=e;var t=this.cursorStyles[e];if(t)switch(void 0===t?"undefined":o(t)){case"string":this.interactionDOMElement.style.cursor=t;break;case"function":t(e);break;case"object":Object.assign(this.interactionDOMElement.style,t)}else"string"!=typeof e||Object.prototype.hasOwnProperty.call(this.cursorStyles,e)||(this.interactionDOMElement.style.cursor=e)}},i.prototype.dispatchEvent=function(e,t,r){r.stopped||(r.currentTarget=e,r.type=t,e.emit(t,r),e[t]&&e[t](r))},i.prototype.mapPositionToPoint=function(e,t,r){var n=void 0;n=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var i=navigator.isCocoonJS?this.resolution:1/this.resolution;e.x=(t-n.left)*(this.interactionDOMElement.width/n.width)*i,e.y=(r-n.top)*(this.interactionDOMElement.height/n.height)*i},i.prototype.processInteractive=function(e,t,r,n,i){if(!t||!t.visible)return!1;var o=e.data.global,a=!1,s=i=t.interactive||i,u=!0;if(t.hitArea?(n&&(t.worldTransform.applyInverse(o,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)?a=!0:u=n=!1),s=!1):t._mask&&n&&(t._mask.containsPoint(o)||(u=n=!1)),u&&t.interactiveChildren&&t.children)for(var c=t.children,l=c.length-1;0<=l;l--){var f=c[l],h=this.processInteractive(e,f,r,n,s);if(h){if(!f.parent)continue;s=!1,h&&(e.target&&(n=!1),a=!0)}}return i&&(n&&!e.target&&!t.hitArea&&t.containsPoint&&t.containsPoint(o)&&(a=!0),t.interactive&&(a&&!e.target&&(e.target=t),r&&r(e,t,!!a))),a},i.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&e.preventDefault();for(var r=t.length,n=0;n<r;n++){var i=t[n],o=this.getInteractionDataForPointerId(i),a=this.configureInteractionEventForDOMEvent(this.eventData,i,o);if(a.data.originalEvent=e,this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",a),"touch"===i.pointerType)this.emit("touchstart",a);else if("mouse"===i.pointerType||"pen"===i.pointerType){var s=2===i.button;this.emit(s?"rightdown":"mousedown",this.eventData)}}}},i.prototype.processPointerDown=function(e,t,r){var n=e.data,i=e.data.identifier;if(r)if(t.trackedPointers[i]||(t.trackedPointers[i]=new d.default(i)),this.dispatchEvent(t,"pointerdown",e),"touch"===n.pointerType)this.dispatchEvent(t,"touchstart",e);else if("mouse"===n.pointerType||"pen"===n.pointerType){var o=2===n.button;o?t.trackedPointers[i].rightDown=!0:t.trackedPointers[i].leftDown=!0,this.dispatchEvent(t,o?"rightdown":"mousedown",e)}},i.prototype.onPointerComplete=function(e,t,r){for(var n=this.normalizeToPointerData(e),i=n.length,o=e.target!==this.interactionDOMElement?"outside":"",a=0;a<i;a++){var s=n[a],u=this.getInteractionDataForPointerId(s),c=this.configureInteractionEventForDOMEvent(this.eventData,s,u);if(c.data.originalEvent=e,this.processInteractive(c,this.renderer._lastObjectRendered,r,t||!o),this.emit(t?"pointercancel":"pointerup"+o,c),"mouse"===s.pointerType||"pen"===s.pointerType){var l=2===s.button;this.emit(l?"rightup"+o:"mouseup"+o,c)}else"touch"===s.pointerType&&(this.emit(t?"touchcancel":"touchend"+o,c),this.releaseInteractionDataForPointerId(s.pointerId,u))}},i.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},i.prototype.processPointerCancel=function(e,t){var r=e.data,n=e.data.identifier;void 0!==t.trackedPointers[n]&&(delete t.trackedPointers[n],this.dispatchEvent(t,"pointercancel",e),"touch"===r.pointerType&&this.dispatchEvent(t,"touchcancel",e))},i.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},i.prototype.processPointerUp=function(e,t,r){var n=e.data,i=e.data.identifier,o=t.trackedPointers[i],a="touch"===n.pointerType,s="mouse"===n.pointerType||"pen"===n.pointerType,u=!1;if(s){var c=2===n.button,l=d.default.FLAGS,f=c?l.RIGHT_DOWN:l.LEFT_DOWN,h=void 0!==o&&o.flags&f;r?(this.dispatchEvent(t,c?"rightup":"mouseup",e),h&&(this.dispatchEvent(t,c?"rightclick":"click",e),u=!0)):h&&this.dispatchEvent(t,c?"rightupoutside":"mouseupoutside",e),o&&(c?o.rightDown=!1:o.leftDown=!1)}r?(this.dispatchEvent(t,"pointerup",e),a&&this.dispatchEvent(t,"touchend",e),o&&(s&&!u||this.dispatchEvent(t,"pointertap",e),a&&(this.dispatchEvent(t,"tap",e),o.over=!1))):o&&(this.dispatchEvent(t,"pointerupoutside",e),a&&this.dispatchEvent(t,"touchendoutside",e)),o&&o.none&&delete t.trackedPointers[i]},i.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);"mouse"!==t[0].pointerType&&"pen"!==t[0].pointerType||(this.didMove=!0,this.cursor=null);for(var r=t.length,n=0;n<r;n++){var i=t[n],o=this.getInteractionDataForPointerId(i),a=this.configureInteractionEventForDOMEvent(this.eventData,i,o);a.data.originalEvent=e;var s="touch"!==i.pointerType||this.moveWhenInside;this.processInteractive(a,this.renderer._lastObjectRendered,this.processPointerMove,s),this.emit("pointermove",a),"touch"===i.pointerType&&this.emit("touchmove",a),"mouse"!==i.pointerType&&"pen"!==i.pointerType||this.emit("mousemove",a)}"mouse"===t[0].pointerType&&this.setCursorMode(this.cursor)}},i.prototype.processPointerMove=function(e,t,r){var n=e.data,i="touch"===n.pointerType,o="mouse"===n.pointerType||"pen"===n.pointerType;o&&this.processPointerOverOut(e,t,r),this.moveWhenInside&&!r||(this.dispatchEvent(t,"pointermove",e),i&&this.dispatchEvent(t,"touchmove",e),o&&this.dispatchEvent(t,"mousemove",e))},i.prototype.onPointerOut=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e)[0];"mouse"===t.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var r=this.getInteractionDataForPointerId(t),n=this.configureInteractionEventForDOMEvent(this.eventData,t,r);n.data.originalEvent=t,this.processInteractive(n,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",n),"mouse"===t.pointerType||"pen"===t.pointerType?this.emit("mouseout",n):this.releaseInteractionDataForPointerId(r.identifier)}},i.prototype.processPointerOverOut=function(e,t,r){var n=e.data,i=e.data.identifier,o="mouse"===n.pointerType||"pen"===n.pointerType,a=t.trackedPointers[i];r&&!a&&(a=t.trackedPointers[i]=new d.default(i)),void 0!==a&&(r&&this.mouseOverRenderer?(a.over||(a.over=!0,this.dispatchEvent(t,"pointerover",e),o&&this.dispatchEvent(t,"mouseover",e)),o&&null===this.cursor&&(this.cursor=t.cursor)):a.over&&(a.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),o&&this.dispatchEvent(t,"mouseout",e),a.none&&delete t.trackedPointers[i]))},i.prototype.onPointerOver=function(e){var t=this.normalizeToPointerData(e)[0],r=this.getInteractionDataForPointerId(t),n=this.configureInteractionEventForDOMEvent(this.eventData,t,r);"mouse"===(n.data.originalEvent=t).pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",n),"mouse"!==t.pointerType&&"pen"!==t.pointerType||this.emit("mouseover",n)},i.prototype.getInteractionDataForPointerId=function(e){var t=e.pointerId,r=void 0;return 1===t||"mouse"===e.pointerType?r=this.mouse:this.activeInteractionData[t]?r=this.activeInteractionData[t]:((r=this.interactionDataPool.pop()||new s.default).identifier=t,this.activeInteractionData[t]=r),r.copyEvent(e),r},i.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t.reset(),this.interactionDataPool.push(t))},i.prototype.configureInteractionEventForDOMEvent=function(e,t,r){return e.data=r,this.mapPositionToPoint(r.global,t.clientX,t.clientY),navigator.isCocoonJS&&"touch"===t.pointerType&&(r.global.x=r.global.x/this.resolution,r.global.y=r.global.y/this.resolution),"touch"===t.pointerType&&(t.globalX=r.global.x,t.globalY=r.global.y),r.originalEvent=t,e.reset(),e},i.prototype.normalizeToPointerData=function(e){var t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var r=0,n=e.changedTouches.length;r<n;r++){var i=e.changedTouches[r];void 0===i.button&&(i.button=e.touches.length?1:0),void 0===i.buttons&&(i.buttons=e.touches.length?1:0),void 0===i.isPrimary&&(i.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===i.width&&(i.width=i.radiusX||1),void 0===i.height&&(i.height=i.radiusY||1),void 0===i.tiltX&&(i.tiltX=0),void 0===i.tiltY&&(i.tiltY=0),void 0===i.pointerType&&(i.pointerType="touch"),void 0===i.pointerId&&(i.pointerId=i.identifier||0),void 0===i.pressure&&(i.pressure=i.force||.5),void 0===i.twist&&(i.twist=0),void 0===i.tangentialPressure&&(i.tangentialPressure=0),void 0===i.layerX&&(i.layerX=i.offsetX=i.clientX),void 0===i.layerY&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,t.push(i)}else!(e instanceof MouseEvent)||this.supportsPointerEvents&&e instanceof window.PointerEvent||(void 0===e.isPrimary&&(e.isPrimary=!0),void 0===e.width&&(e.width=1),void 0===e.height&&(e.height=1),void 0===e.tiltX&&(e.tiltX=0),void 0===e.tiltY&&(e.tiltY=0),void 0===e.pointerType&&(e.pointerType="mouse"),void 0===e.pointerId&&(e.pointerId=1),void 0===e.pressure&&(e.pressure=.5),void 0===e.twist&&(e.twist=0),void 0===e.tangentialPressure&&(e.tangentialPressure=0),e.isNormalized=!0),t.push(e);return t},i.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this._tempPoint=null},i}(n.default);r.default=f,a.WebGLRenderer.registerPlugin("interaction",f),a.CanvasRenderer.registerPlugin("interaction",f)},{"../core":65,"./InteractionData":155,"./InteractionEvent":156,"./InteractionTrackingData":158,"./interactiveTarget":160,eventemitter3:3}],158:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}();var i=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this._pointerId=e,this._flags=t.FLAGS.NONE}return t.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},n(t,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(e){this._flags=e}},{key:"none",get:function(){return this._flags===this.constructor.FLAGS.NONE}},{key:"over",get:function(){return 0!=(this._flags&this.constructor.FLAGS.OVER)},set:function(e){this._doSet(this.constructor.FLAGS.OVER,e)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,e)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.LEFT_DOWN,e)}}]),t}();(r.default=i).FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4})},{}],159:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./InteractionData");Object.defineProperty(r,"InteractionData",{enumerable:!0,get:function(){return u(n).default}});var i=e("./InteractionManager");Object.defineProperty(r,"InteractionManager",{enumerable:!0,get:function(){return u(i).default}});var o=e("./interactiveTarget");Object.defineProperty(r,"interactiveTarget",{enumerable:!0,get:function(){return u(o).default}});var a=e("./InteractionTrackingData");Object.defineProperty(r,"InteractionTrackingData",{enumerable:!0,get:function(){return u(a).default}});var s=e("./InteractionEvent");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"InteractionEvent",{enumerable:!0,get:function(){return u(s).default}})},{"./InteractionData":155,"./InteractionEvent":156,"./InteractionManager":157,"./InteractionTrackingData":158,"./interactiveTarget":160}],160:[function(e,t,r){"use strict";r.__esModule=!0,r.default={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(e){e?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0}},{}],161:[function(e,t,r){"use strict";r.__esModule=!0,r.parse=m,r.default=function(){return function(t,r){if(t.data&&t.type===p.Resource.TYPE.XML)if(0!==t.data.getElementsByTagName("page").length&&0!==t.data.getElementsByTagName("info").length&&null!==t.data.getElementsByTagName("info")[0].getAttribute("face")){var e=t.isDataUrl?"":d.dirname(t.url);t.isDataUrl&&("."===e&&(e=""),this.baseUrl&&e&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(e+="/")),(e=e.replace(this.baseUrl,""))&&"/"!==e.charAt(e.length-1)&&(e+="/");for(var n=t.data.getElementsByTagName("page"),i={},o=function(e){i[e.metadata.pageFile]=e.texture,Object.keys(i).length===n.length&&(m(t,i),r())},a=0;a<n.length;++a){var s=n[a].getAttribute("file"),u=e+s,c=!1;for(var l in this.resources){var f=this.resources[l];if(f.url===u){f.metadata.pageFile=s,f.texture?o(f):f.onAfterMiddleware.add(o),c=!0;break}}if(!c){var h={crossOrigin:t.crossOrigin,loadType:p.Resource.LOAD_TYPE.IMAGE,metadata:Object.assign({pageFile:s},t.metadata.imageMetadata),parentResource:t};this.add(u,h,o)}}}else r();else r()}};var d=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("path")),p=e("resource-loader"),n=e("../extras");function m(e,t){e.bitmapFont=n.BitmapText.registerFont(e.data,t)}},{"../extras":141,path:8,"resource-loader":36}],162:[function(e,t,r){"use strict";r.__esModule=!0,r.shared=r.Resource=r.textureParser=r.getResourcePath=r.spritesheetParser=r.parseBitmapFontData=r.bitmapFontParser=r.Loader=void 0;var n=e("./bitmapFontParser");Object.defineProperty(r,"bitmapFontParser",{enumerable:!0,get:function(){return c(n).default}}),Object.defineProperty(r,"parseBitmapFontData",{enumerable:!0,get:function(){return n.parse}});var i=e("./spritesheetParser");Object.defineProperty(r,"spritesheetParser",{enumerable:!0,get:function(){return c(i).default}}),Object.defineProperty(r,"getResourcePath",{enumerable:!0,get:function(){return i.getResourcePath}});var o=e("./textureParser");Object.defineProperty(r,"textureParser",{enumerable:!0,get:function(){return c(o).default}});var a=e("resource-loader");Object.defineProperty(r,"Resource",{enumerable:!0,get:function(){return a.Resource}});var s=c(e("../core/Application")),u=c(e("./loader"));function c(e){return e&&e.__esModule?e:{default:e}}r.Loader=u.default;var l=new u.default;l.destroy=function(){},r.shared=l;var f=s.default.prototype;f._loader=null,Object.defineProperty(f,"loader",{get:function(){if(!this._loader){var e=this._options.sharedLoader;this._loader=e?l:new u.default}return this._loader}}),f._parentDestroy=f.destroy,f.destroy=function(e,t){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(e,t)}},{"../core/Application":43,"./bitmapFontParser":161,"./loader":163,"./spritesheetParser":164,"./textureParser":165,"resource-loader":36}],163:[function(e,t,r){"use strict";r.__esModule=!0;var n=c(e("resource-loader")),i=e("resource-loader/lib/middlewares/parsing/blob"),a=c(e("eventemitter3")),o=c(e("./textureParser")),s=c(e("./spritesheetParser")),u=c(e("./bitmapFontParser"));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(i){function o(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e,t));a.default.call(n);for(var r=0;r<o._pixiMiddleware.length;++r)n.use(o._pixiMiddleware[r]());return n.onStart.add(function(e){return n.emit("start",e)}),n.onProgress.add(function(e,t){return n.emit("progress",e,t)}),n.onError.add(function(e,t,r){return n.emit("error",e,t,r)}),n.onLoad.add(function(e,t){return n.emit("load",e,t)}),n.onComplete.add(function(e,t){return n.emit("complete",e,t)}),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.addPixiMiddleware=function(e){o._pixiMiddleware.push(e)},o.prototype.destroy=function(){this.removeAllListeners(),this.reset()},o}(n.default);for(var f in r.default=l,a.default.prototype)l.prototype[f]=a.default.prototype[f];l._pixiMiddleware=[i.blobMiddlewareFactory,o.default,s.default,u.default];var h=n.default.Resource;h.setExtensionXhrType("fnt",h.XHR_RESPONSE_TYPE.DOCUMENT)},{"./bitmapFontParser":161,"./spritesheetParser":164,"./textureParser":165,eventemitter3:3,"resource-loader":36,"resource-loader/lib/middlewares/parsing/blob":37}],164:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return function(r,n){var e=r.name+"_image";if(r.data&&r.type===o.Resource.TYPE.JSON&&r.data.frames&&!this.resources[e]){var t={crossOrigin:r.crossOrigin,metadata:r.metadata.imageMetadata,parentResource:r},i=u(r,this.baseUrl);this.add(e,i,t,function(e){if(e.error)n(e.error);else{var t=new s.Spritesheet(e.texture.baseTexture,r.data,r.url);t.parse(function(){r.spritesheet=t,r.textures=t.textures,n()})}})}else n()}},r.getResourcePath=u;var n,o=e("resource-loader"),i=e("url"),a=(n=i)&&n.__esModule?n:{default:n},s=e("../core");function u(e,t){return e.isDataUrl?e.data.meta.image:a.default.resolve(e.url.replace(t,""),e.data.meta.image)}},{"../core":65,"resource-loader":36,url:38}],165:[function(e,t,r){"use strict";r.__esModule=!0,r.default=function(){return function(e,t){e.data&&e.type===i.Resource.TYPE.IMAGE&&(e.texture=a.default.fromLoader(e.data,e.url,e.name)),t()}};var n,i=e("resource-loader"),o=e("../core/textures/Texture"),a=(n=o)&&n.__esModule?n:{default:n}},{"../core/textures/Texture":115,"resource-loader":36}],166:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),o=e("../core/textures/Texture"),u=(n=o)&&n.__esModule?n:{default:n};var f=new s.Point,h=new s.Polygon,a=function(a){function l(e,t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this));return o._texture=e||u.default.EMPTY,o.uvs=r||new Float32Array([0,0,1,0,1,1,0,1]),o.vertices=t||new Float32Array([0,0,100,0,100,100,0,100]),o.indices=n||new Uint16Array([0,1,3,2]),o.dirty=0,o.indexDirty=0,o.vertexDirty=0,o.autoUpdate=!0,o.blendMode=s.BLEND_MODES.NORMAL,o.canvasPadding=s.settings.MESH_CANVAS_PADDING,o.drawMode=i||l.DRAW_MODES.TRIANGLE_MESH,o.shader=null,o.tintRgb=new Float32Array([1,1,1]),o._glDatas={},o._uvTransform=new s.TextureMatrix(o._texture),o.uploadUvTransform=!1,o.pluginName="mesh",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(l,a),l.prototype._renderWebGL=function(e){this.refresh(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},l.prototype._renderCanvas=function(e){this.refresh(),e.plugins[this.pluginName].render(this)},l.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},l.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},l.prototype.refresh=function(e){this.autoUpdate&&this.vertexDirty++,this._uvTransform.update(e)&&this._refresh()},l.prototype._refresh=function(){},l.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},l.prototype.containsPoint=function(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,f);for(var t=this.vertices,r=h.points,n=this.indices,i=this.indices.length,o=this.drawMode===l.DRAW_MODES.TRIANGLES?3:1,a=0;a+2<i;a+=o){var s=2*n[a],u=2*n[a+1],c=2*n[a+2];if(r[0]=t[s],r[1]=t[1+s],r[2]=t[u],r[3]=t[1+u],r[4]=t[c],r[5]=t[1+c],h.contains(f.x,f.y))return!0}return!1},l.prototype.destroy=function(e){for(var t in this._glDatas){var r=this._glDatas[t];r.destroy?r.destroy():(r.vertexBuffer&&(r.vertexBuffer.destroy(),r.vertexBuffer=null),r.indexBuffer&&(r.indexBuffer.destroy(),r.indexBuffer=null),r.uvBuffer&&(r.uvBuffer.destroy(),r.uvBuffer=null),r.vao&&(r.vao.destroy(),r.vao=null))}this._glDatas=null,a.prototype.destroy.call(this,e)},i(l,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e)&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this))}},{key:"tint",get:function(){return s.utils.rgb2hex(this.tintRgb)},set:function(e){this.tintRgb=s.utils.hex2rgb(e,this.tintRgb)}}]),l}(s.Container);(r.default=a).DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},{"../core":65,"../core/textures/Texture":115}],167:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),i=o(e("./Plane")),x=o(e("../core/sprites/canvas/CanvasTinter"));function o(e){return e&&e.__esModule?e:{default:e}}var a=function(a){function s(e,t,r,n,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,a.call(this,e,4,4));return o._origWidth=e.orig.width,o._origHeight=e.orig.height,o._width=o._origWidth,o._height=o._origHeight,o._leftWidth=void 0!==t?t:10,o._rightWidth=void 0!==n?n:10,o._topHeight=void 0!==r?r:10,o._bottomHeight=void 0!==i?i:10,o._cachedTint=16777215,o._tintedTexture=null,o._canvasUvs=null,o.refresh(!0),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(s,a),s.prototype.updateHorizontalVertices=function(){var e=this.vertices,t=this._topHeight+this._bottomHeight,r=this._height>t?1:this._height/t;e[9]=e[11]=e[13]=e[15]=this._topHeight*r,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight*r,e[25]=e[27]=e[29]=e[31]=this._height},s.prototype.updateVerticalVertices=function(){var e=this.vertices,t=this._leftWidth+this._rightWidth,r=this._width>t?1:this._width/t;e[2]=e[10]=e[18]=e[26]=this._leftWidth*r,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth*r,e[6]=e[14]=e[22]=e[30]=this._width},s.prototype._renderCanvas=function(e){var t=e.context,r=this.worldTransform,n=e.resolution,i=16777215!==this.tint,o=this._texture;i&&this._cachedTint!==this.tint&&(this._cachedTint=this.tint,this._tintedTexture=x.default.getTintedTexture(this,this.tint));var a=i?this._tintedTexture:o.baseTexture.source;this._canvasUvs||(this._canvasUvs=[0,0,0,0,0,0,0,0]);var s=this.vertices,u=this._canvasUvs,c=i?0:o.frame.x,l=i?0:o.frame.y,f=c+o.frame.width,h=l+o.frame.height;u[0]=c,u[1]=c+this._leftWidth,u[2]=f-this._rightWidth,u[3]=f,u[4]=l,u[5]=l+this._topHeight,u[6]=h-this._bottomHeight,u[7]=h;for(var d=0;d<8;d++)u[d]*=o.baseTexture.resolution;t.globalAlpha=this.worldAlpha,e.setBlendMode(this.blendMode),e.roundPixels?t.setTransform(r.a*n,r.b*n,r.c*n,r.d*n,r.tx*n|0,r.ty*n|0):t.setTransform(r.a*n,r.b*n,r.c*n,r.d*n,r.tx*n,r.ty*n);for(var p=0;p<3;p++)for(var m=0;m<3;m++){var g=2*m+8*p,v=Math.max(1,u[m+1]-u[m]),y=Math.max(1,u[p+5]-u[p+4]),_=Math.max(1,s[10+g]-s[g]),b=Math.max(1,s[11+g]-s[1+g]);t.drawImage(a,u[m],u[p+4],v,y,s[g],s[1+g],_,b)}},s.prototype._refresh=function(){a.prototype._refresh.call(this);var e=this.uvs,t=this._texture;this._origWidth=t.orig.width,this._origHeight=t.orig.height;var r=1/this._origWidth,n=1/this._origHeight;e[0]=e[8]=e[16]=e[24]=0,e[1]=e[3]=e[5]=e[7]=0,e[6]=e[14]=e[22]=e[30]=1,e[25]=e[27]=e[29]=e[31]=1,e[2]=e[10]=e[18]=e[26]=r*this._leftWidth,e[4]=e[12]=e[20]=e[28]=1-r*this._rightWidth,e[9]=e[11]=e[13]=e[15]=n*this._topHeight,e[17]=e[19]=e[21]=e[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty++,this.multiplyUvs()},n(s,[{key:"width",get:function(){return this._width},set:function(e){this._width=e,this._refresh()}},{key:"height",get:function(){return this._height},set:function(e){this._height=e,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()}}]),s}(i.default);r.default=a},{"../core/sprites/canvas/CanvasTinter":104,"./Plane":168}],168:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./Mesh"),a=(n=i)&&n.__esModule?n:{default:n};var o=function(i){function o(e,t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,i.call(this,e));return n._ready=!0,n.verticesX=t||10,n.verticesY=r||10,n.drawMode=a.default.DRAW_MODES.TRIANGLES,n.refresh(),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,i),o.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,r=[],n=[],i=[],o=this.verticesX-1,a=this.verticesY-1,s=e.width/o,u=e.height/a,c=0;c<t;c++){var l=c%this.verticesX,f=c/this.verticesX|0;r.push(l*s,f*u),n.push(l/o,f/a)}for(var h=o*a,d=0;d<h;d++){var p=d%o,m=d/o|0,g=m*this.verticesX+p,v=m*this.verticesX+p+1,y=(1+m)*this.verticesX+p,_=(1+m)*this.verticesX+p+1;i.push(g,v,y),i.push(v,_,y)}this.vertices=new Float32Array(r),this.uvs=new Float32Array(n),this.colors=new Float32Array([]),this.indices=new Uint16Array(i),this.dirty++,this.indexDirty++,this.multiplyUvs()},o.prototype._onTextureUpdate=function(){a.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},o}(a.default);r.default=o},{"./Mesh":166}],169:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("./Mesh");var o=function(n){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,n.call(this,e));return r.points=t,r.vertices=new Float32Array(4*t.length),r.uvs=new Float32Array(4*t.length),r.colors=new Float32Array(2*t.length),r.indices=new Uint16Array(2*t.length),r.autoUpdate=!0,r.refresh(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(i,n),i.prototype._refresh=function(){var e=this.points;if(!(e.length<1)&&this._texture._uvs){this.vertices.length/4!==e.length&&(this.vertices=new Float32Array(4*e.length),this.uvs=new Float32Array(4*e.length),this.colors=new Float32Array(2*e.length),this.indices=new Uint16Array(2*e.length));var t=this.uvs,r=this.indices,n=this.colors;t[0]=0,t[1]=0,t[2]=0,t[3]=1,n[0]=1,n[1]=1,r[0]=0,r[1]=1;for(var i=e.length,o=1;o<i;o++){var a=4*o,s=o/(i-1);t[a]=s,t[a+1]=0,t[a+2]=s,t[a+3]=1,n[a=2*o]=1,n[a+1]=1,r[a=2*o]=a,r[a+1]=a+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},i.prototype.refreshVertices=function(){var e=this.points;if(!(e.length<1))for(var t=e[0],r=void 0,n=0,i=0,o=this.vertices,a=e.length,s=0;s<a;s++){var u=e[s],c=4*s;i=-((r=s<e.length-1?e[s+1]:u).x-t.x),n=r.y-t.y;var l=10*(1-s/(a-1));1<l&&(l=1);var f=Math.sqrt(n*n+i*i),h=this._texture.height/2;n/=f,i/=f,n*=h,i*=h,o[c]=u.x+n,o[1+c]=u.y+i,o[2+c]=u.x-n,o[3+c]=u.y-i,t=u}},i.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},i}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o},{"./Mesh":166}],170:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),o=e("../Mesh"),a=(n=o)&&n.__esModule?n:{default:n};var s=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.renderer=e}return t.prototype.render=function(e){var t=this.renderer,r=t.context,n=e.worldTransform,i=t.resolution;t.roundPixels?r.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i|0,n.ty*i|0):r.setTransform(n.a*i,n.b*i,n.c*i,n.d*i,n.tx*i,n.ty*i),t.context.globalAlpha=e.worldAlpha,t.setBlendMode(e.blendMode),e.drawMode===a.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(e):this._renderTriangles(e)},t.prototype._renderTriangleMesh=function(e){for(var t=e.vertices.length/2,r=0;r<t-2;r++){var n=2*r;this._renderDrawTriangle(e,n,2+n,4+n)}},t.prototype._renderTriangles=function(e){for(var t=e.indices,r=t.length,n=0;n<r;n+=3){var i=2*t[n],o=2*t[n+1],a=2*t[n+2];this._renderDrawTriangle(e,i,o,a)}},t.prototype._renderDrawTriangle=function(e,t,r,n){var i=this.renderer.context,o=e.uvs,a=e.vertices,s=e._texture;if(s.valid){var u=s.baseTexture,c=u.source,l=u.width,f=u.height,h=void 0,d=void 0,p=void 0,m=void 0,g=void 0,v=void 0;if(e.uploadUvTransform){var y=e._uvTransform.mapCoord;h=(o[t]*y.a+o[t+1]*y.c+y.tx)*u.width,d=(o[r]*y.a+o[r+1]*y.c+y.tx)*u.width,p=(o[n]*y.a+o[n+1]*y.c+y.tx)*u.width,m=(o[t]*y.b+o[t+1]*y.d+y.ty)*u.height,g=(o[r]*y.b+o[r+1]*y.d+y.ty)*u.height,v=(o[n]*y.b+o[n+1]*y.d+y.ty)*u.height}else h=o[t]*u.width,d=o[r]*u.width,p=o[n]*u.width,m=o[t+1]*u.height,g=o[r+1]*u.height,v=o[n+1]*u.height;var _=a[t],b=a[r],x=a[n],w=a[t+1],T=a[r+1],S=a[n+1],M=e.canvasPadding/this.renderer.resolution;if(0<M){var P=M/Math.abs(e.worldTransform.a),E=M/Math.abs(e.worldTransform.d),C=(_+b+x)/3,k=(w+T+S)/3,A=_-C,O=w-k,R=Math.sqrt(A*A+O*O);_=C+A/R*(R+P),w=k+O/R*(R+E),O=T-k,b=C+(A=b-C)/(R=Math.sqrt(A*A+O*O))*(R+P),T=k+O/R*(R+E),O=S-k,x=C+(A=x-C)/(R=Math.sqrt(A*A+O*O))*(R+P),S=k+O/R*(R+E)}i.save(),i.beginPath(),i.moveTo(_,w),i.lineTo(b,T),i.lineTo(x,S),i.closePath(),i.clip();var I=h*g+m*p+d*v-g*p-m*d-h*v,D=_*g+m*x+b*v-g*x-m*b-_*v,L=h*b+_*p+d*x-b*p-_*d-h*x,N=h*g*x+m*b*p+_*d*v-_*g*p-m*d*x-h*b*v,j=w*g+m*S+T*v-g*S-m*T-w*v,F=h*T+w*p+d*S-T*p-w*d-h*S,B=h*g*S+m*T*p+w*d*v-w*g*p-m*d*S-h*T*v;i.transform(D/I,j/I,L/I,F/I,N/I,B/I),i.drawImage(c,0,0,l*u.resolution,f*u.resolution,0,0,l,f),i.restore(),this.renderer.invalidateBlendMode()}},t.prototype.renderMeshFlat=function(e){var t=this.renderer.context,r=e.vertices,n=r.length/2;t.beginPath();for(var i=1;i<n-2;++i){var o=2*i,a=r[o],s=r[1+o],u=r[2+o],c=r[3+o],l=r[4+o],f=r[5+o];t.moveTo(a,s),t.lineTo(u,c),t.lineTo(l,f)}t.fillStyle="#FF0000",t.fill(),t.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();r.default=s,i.CanvasRenderer.registerPlugin("mesh",s)},{"../../core":65,"../Mesh":166}],171:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./Mesh");Object.defineProperty(r,"Mesh",{enumerable:!0,get:function(){return c(n).default}});var i=e("./webgl/MeshRenderer");Object.defineProperty(r,"MeshRenderer",{enumerable:!0,get:function(){return c(i).default}});var o=e("./canvas/CanvasMeshRenderer");Object.defineProperty(r,"CanvasMeshRenderer",{enumerable:!0,get:function(){return c(o).default}});var a=e("./Plane");Object.defineProperty(r,"Plane",{enumerable:!0,get:function(){return c(a).default}});var s=e("./NineSlicePlane");Object.defineProperty(r,"NineSlicePlane",{enumerable:!0,get:function(){return c(s).default}});var u=e("./Rope");function c(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"Rope",{enumerable:!0,get:function(){return c(u).default}})},{"./Mesh":166,"./NineSlicePlane":167,"./Plane":168,"./Rope":169,"./canvas/CanvasMeshRenderer":170,"./webgl/MeshRenderer":172}],172:[function(e,t,r){"use strict";r.__esModule=!0;var a=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),s=n(e("pixi-gl-core")),u=n(e("../Mesh"));e("path");function n(e){return e&&e.__esModule?e:{default:e}}var c=a.Matrix.IDENTITY,i=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new a.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n")},n.prototype.render=function(e){var t=this.renderer,r=t.gl,n=e._texture;if(n.valid){var i=e._glDatas[t.CONTEXT_UID];i||(t.bindVao(null),(i={shader:this.shader,vertexBuffer:s.default.GLBuffer.createVertexBuffer(r,e.vertices,r.STREAM_DRAW),uvBuffer:s.default.GLBuffer.createVertexBuffer(r,e.uvs,r.STREAM_DRAW),indexBuffer:s.default.GLBuffer.createIndexBuffer(r,e.indices,r.STATIC_DRAW),vao:null,dirty:e.dirty,indexDirty:e.indexDirty,vertexDirty:e.vertexDirty}).vao=new s.default.VertexArrayObject(r).addIndex(i.indexBuffer).addAttribute(i.vertexBuffer,i.shader.attributes.aVertexPosition,r.FLOAT,!1,8,0).addAttribute(i.uvBuffer,i.shader.attributes.aTextureCoord,r.FLOAT,!1,8,0),e._glDatas[t.CONTEXT_UID]=i),t.bindVao(i.vao),e.dirty!==i.dirty&&(i.dirty=e.dirty,i.uvBuffer.upload(e.uvs)),e.indexDirty!==i.indexDirty&&(i.indexDirty=e.indexDirty,i.indexBuffer.upload(e.indices)),e.vertexDirty!==i.vertexDirty&&(i.vertexDirty=e.vertexDirty,i.vertexBuffer.upload(e.vertices)),t.bindShader(i.shader),i.shader.uniforms.uSampler=t.bindTexture(n),t.state.setBlendMode(a.utils.correctBlendMode(e.blendMode,n.baseTexture.premultipliedAlpha)),i.shader.uniforms.uTransform&&(e.uploadUvTransform?i.shader.uniforms.uTransform=e._uvTransform.mapCoord.toArray(!0):i.shader.uniforms.uTransform=c.toArray(!0)),i.shader.uniforms.translationMatrix=e.worldTransform.toArray(!0),i.shader.uniforms.uColor=a.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,i.shader.uniforms.uColor,n.baseTexture.premultipliedAlpha);var o=e.drawMode===u.default.DRAW_MODES.TRIANGLE_MESH?r.TRIANGLE_STRIP:r.TRIANGLES;i.vao.draw(o,e.indices.length,0)}},n}(a.ObjectRenderer);r.default=i,a.WebGLRenderer.registerPlugin("mesh",i)},{"../../core":65,"../Mesh":166,path:8,"pixi-gl-core":15}],173:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}}(),s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),i=e("../core/utils");var o=function(o){function a(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:1500,t=arguments[1],r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:16384,n=3<arguments.length&&void 0!==arguments[3]&&arguments[3];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,o.call(this));return 16384<r&&(r=16384),e<r&&(r=e),i._properties=[!1,!0,!1,!1,!1],i._maxSize=e,i._batchSize=r,i._glBuffers={},i._bufferUpdateIDs=[],i._updateID=0,i.interactiveChildren=!1,i.blendMode=s.BLEND_MODES.NORMAL,i.autoResize=n,i.roundPixels=!0,i.baseTexture=null,i.setProperties(t),i._tint=0,i.tintRgb=new Float32Array(4),i.tint=16777215,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(a,o),a.prototype.setProperties=function(e){e&&(this._properties[0]="vertices"in e||"scale"in e?!!e.vertices||!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="tint"in e||"alpha"in e?!!e.tint||!!e.alpha:this._properties[4])},a.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},a.prototype.renderWebGL=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},a.prototype.onChildrenChange=function(e){for(var t=Math.floor(e/this._batchSize);this._bufferUpdateIDs.length<t;)this._bufferUpdateIDs.push(0);this._bufferUpdateIDs[t]=++this._updateID},a.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var t=e.context,r=this.worldTransform,n=!0,i=0,o=0,a=0,s=0;e.setBlendMode(this.blendMode),t.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var u=0;u<this.children.length;++u){var c=this.children[u];if(c.visible){var l=c._texture.frame;if(t.globalAlpha=this.worldAlpha*c.alpha,c.rotation%(2*Math.PI)==0)n&&(t.setTransform(r.a,r.b,r.c,r.d,r.tx*e.resolution,r.ty*e.resolution),n=!1),i=c.anchor.x*(-l.width*c.scale.x)+c.position.x+.5,o=c.anchor.y*(-l.height*c.scale.y)+c.position.y+.5,a=l.width*c.scale.x,s=l.height*c.scale.y;else{n||(n=!0),c.displayObjectUpdateTransform();var f=c.worldTransform;e.roundPixels?t.setTransform(f.a,f.b,f.c,f.d,f.tx*e.resolution|0,f.ty*e.resolution|0):t.setTransform(f.a,f.b,f.c,f.d,f.tx*e.resolution,f.ty*e.resolution),i=c.anchor.x*-l.width+.5,o=c.anchor.y*-l.height+.5,a=l.width,s=l.height}var h=c._texture.baseTexture.resolution;t.drawImage(c._texture.baseTexture.source,l.x*h,l.y*h,l.width*h,l.height*h,i*e.resolution,o*e.resolution,a*e.resolution,s*e.resolution)}}}},a.prototype.destroy=function(e){if(o.prototype.destroy.call(this,e),this._buffers)for(var t=0;t<this._buffers.length;++t)this._buffers[t].destroy();this._properties=null,this._buffers=null,this._bufferUpdateIDs=null},n(a,[{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,(0,i.hex2rgb)(e,this.tintRgb)}}]),a}(s.Container);r.default=o},{"../core":65,"../core/utils":125}],174:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./ParticleContainer");Object.defineProperty(r,"ParticleContainer",{enumerable:!0,get:function(){return o(n).default}});var i=e("./webgl/ParticleRenderer");function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"ParticleRenderer",{enumerable:!0,get:function(){return o(i).default}})},{"./ParticleContainer":173,"./webgl/ParticleRenderer":176}],175:[function(e,t,r){"use strict";r.__esModule=!0;var d=n(e("pixi-gl-core")),p=n(e("../../core/utils/createIndicesForQuads"));function n(e){return e&&e.__esModule?e:{default:e}}var i=function(){function a(e,t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),this.gl=e,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(var i=0;i<t.length;++i){var o=t[i];o={attribute:o.attribute,size:o.size,uploadFunction:o.uploadFunction,unsignedByte:o.unsignedByte,offset:o.offset},r[i]?this.dynamicProperties.push(o):this.staticProperties.push(o)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this._updateID=0,this.initBuffers()}return a.prototype.initBuffers=function(){var e=this.gl,t=0;this.indices=(0,p.default)(this.size),this.indexBuffer=d.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW);for(var r=this.dynamicStride=0;r<this.dynamicProperties.length;++r){var n=this.dynamicProperties[r];n.offset=t,t+=n.size,this.dynamicStride+=n.size}var i=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(i),this.dynamicDataUint32=new Uint32Array(i),this.dynamicBuffer=d.default.GLBuffer.createVertexBuffer(e,i,e.STREAM_DRAW);for(var o=0,a=this.staticStride=0;a<this.staticProperties.length;++a){var s=this.staticProperties[a];s.offset=o,o+=s.size,this.staticStride+=s.size}var u=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(u),this.staticDataUint32=new Uint32Array(u),this.staticBuffer=d.default.GLBuffer.createVertexBuffer(e,u,e.STATIC_DRAW),this.vao=new d.default.VertexArrayObject(e).addIndex(this.indexBuffer);for(var c=0;c<this.dynamicProperties.length;++c){var l=this.dynamicProperties[c];l.unsignedByte?this.vao.addAttribute(this.dynamicBuffer,l.attribute,e.UNSIGNED_BYTE,!0,4*this.dynamicStride,4*l.offset):this.vao.addAttribute(this.dynamicBuffer,l.attribute,e.FLOAT,!1,4*this.dynamicStride,4*l.offset)}for(var f=0;f<this.staticProperties.length;++f){var h=this.staticProperties[f];h.unsignedByte?this.vao.addAttribute(this.staticBuffer,h.attribute,e.UNSIGNED_BYTE,!0,4*this.staticStride,4*h.offset):this.vao.addAttribute(this.staticBuffer,h.attribute,e.FLOAT,!1,4*this.staticStride,4*h.offset)}},a.prototype.uploadDynamic=function(e,t,r){for(var n=0;n<this.dynamicProperties.length;n++){var i=this.dynamicProperties[n];i.uploadFunction(e,t,r,i.unsignedByte?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,i.offset)}this.dynamicBuffer.upload()},a.prototype.uploadStatic=function(e,t,r){for(var n=0;n<this.staticProperties.length;n++){var i=this.staticProperties[n];i.uploadFunction(e,t,r,i.unsignedByte?this.staticDataUint32:this.staticData,this.staticStride,i.offset)}this.staticBuffer.upload()},a.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicBuffer.destroy(),this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.staticProperties=null,this.staticBuffer.destroy(),this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null},a}();r.default=i},{"../../core/utils/createIndicesForQuads":123,"pixi-gl-core":15}],176:[function(e,t,r){"use strict";r.__esModule=!0;var g=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),i=n(e("./ParticleShader")),s=n(e("./ParticleBuffer")),f=e("../../core/utils");function n(e){return e&&e.__esModule?e:{default:e}}var o=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.shader=null,t.indexBuffer=null,t.properties=null,t.tempMatrix=new g.Matrix,t.CONTEXT_UID=0,t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.onContextChange=function(){var e=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new i.default(e),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,unsignedByte:!0,uploadFunction:this.uploadTint,offset:0}]},n.prototype.start=function(){this.renderer.bindShader(this.shader)},n.prototype.render=function(e){var t=e.children,r=e._maxSize,n=e._batchSize,i=this.renderer,o=t.length;if(0!==o){r<o&&(o=r);var a=e._glBuffers[i.CONTEXT_UID];a||(a=e._glBuffers[i.CONTEXT_UID]=this.generateBuffers(e));var s=t[0]._texture.baseTexture;this.renderer.setBlendMode(g.utils.correctBlendMode(e.blendMode,s.premultipliedAlpha));var u=i.gl,c=e.worldTransform.copy(this.tempMatrix);c.prepend(i._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=c.toArray(!0),this.shader.uniforms.uColor=g.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,s.premultipliedAlpha),this.shader.uniforms.uSampler=i.bindTexture(s);for(var l=!1,f=0,h=0;f<o;f+=n,h+=1){var d=o-f;if(n<d&&(d=n),h>=a.length){if(!e.autoResize)break;a.push(this._generateOneMoreBuffer(e))}var p=a[h];p.uploadDynamic(t,f,d);var m=e._bufferUpdateIDs[h]||0;(l=l||p._updateID<m)&&(p._updateID=e._updateID,p.uploadStatic(t,f,d)),i.bindVao(p.vao),p.vao.draw(u.TRIANGLES,6*d)}}},n.prototype.generateBuffers=function(e){for(var t=this.renderer.gl,r=[],n=e._maxSize,i=e._batchSize,o=e._properties,a=0;a<n;a+=i)r.push(new s.default(t,this.properties,o,i));return r},n.prototype._generateOneMoreBuffer=function(e){var t=this.renderer.gl,r=e._batchSize,n=e._properties;return new s.default(t,this.properties,n,r)},n.prototype.uploadVertices=function(e,t,r,n,i,o){for(var a=0,s=0,u=0,c=0,l=0;l<r;++l){var f=e[t+l],h=f._texture,d=f.scale.x,p=f.scale.y,m=h.trim,g=h.orig;m?(a=(s=m.x-f.anchor.x*g.width)+m.width,u=(c=m.y-f.anchor.y*g.height)+m.height):(a=g.width*(1-f.anchor.x),s=g.width*-f.anchor.x,u=g.height*(1-f.anchor.y),c=g.height*-f.anchor.y),n[o]=s*d,n[o+1]=c*p,n[o+i]=a*d,n[o+i+1]=c*p,n[o+2*i]=a*d,n[o+2*i+1]=u*p,n[o+3*i]=s*d,n[o+3*i+1]=u*p,o+=4*i}},n.prototype.uploadPosition=function(e,t,r,n,i,o){for(var a=0;a<r;a++){var s=e[t+a].position;n[o]=s.x,n[o+1]=s.y,n[o+i]=s.x,n[o+i+1]=s.y,n[o+2*i]=s.x,n[o+2*i+1]=s.y,n[o+3*i]=s.x,n[o+3*i+1]=s.y,o+=4*i}},n.prototype.uploadRotation=function(e,t,r,n,i,o){for(var a=0;a<r;a++){var s=e[t+a].rotation;n[o]=s,n[o+i]=s,n[o+2*i]=s,n[o+3*i]=s,o+=4*i}},n.prototype.uploadUvs=function(e,t,r,n,i,o){for(var a=0;a<r;++a){var s=e[t+a]._texture._uvs;s?(n[o]=s.x0,n[o+1]=s.y0,n[o+i]=s.x1,n[o+i+1]=s.y1,n[o+2*i]=s.x2,n[o+2*i+1]=s.y2,n[o+3*i]=s.x3,n[o+3*i+1]=s.y3):(n[o]=0,n[o+1]=0,n[o+i]=0,n[o+i+1]=0,n[o+2*i]=0,n[o+2*i+1]=0,n[o+3*i]=0,n[o+3*i+1]=0),o+=4*i}},n.prototype.uploadTint=function(e,t,r,n,i,o){for(var a=0;a<r;++a){var s=e[t+a],u=s._texture.baseTexture.premultipliedAlpha,c=s.alpha,l=c<1&&u?(0,f.premultiplyTint)(s._tintRGB,c):s._tintRGB+(255*c<<24);n[o]=l,n[o+i]=l,n[o+2*i]=l,n[o+3*i]=l,o+=4*i}},n.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),r.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},n}(g.ObjectRenderer);r.default=o,g.WebGLRenderer.registerPlugin("particle",o)},{"../../core":65,"../../core/utils":125,"./ParticleBuffer":175,"./ParticleShader":177}],177:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=e("../../core/Shader");var o=function(t){function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,t.call(this,e,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","attribute vec2 aPositionCoord;","attribute float aRotation;","uniform mat3 projectionMatrix;","uniform vec4 uColor;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){"," float x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," float y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," vec2 v = vec2(x, y);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor * uColor;","}"].join("\n"),["varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor;"," gl_FragColor = color;","}"].join("\n")))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(r,t),r}(((n=i)&&n.__esModule?n:{default:n}).default);r.default=o},{"../../core/Shader":44}],178:[function(e,t,r){"use strict";Math.sign||(Math.sign=function(e){return 0===(e=Number(e))||isNaN(e)?e:0<e?1:-1})},{}],179:[function(e,t,r){"use strict";Number.isInteger||(Number.isInteger=function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e})},{}],180:[function(e,t,r){"use strict";var n,i=e("object-assign"),o=(n=i)&&n.__esModule?n:{default:n};Object.assign||(Object.assign=o.default)},{"object-assign":6}],181:[function(e,t,r){"use strict";e("./Object.assign"),e("./requestAnimationFrame"),e("./Math.sign"),e("./Number.isInteger"),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},{"./Math.sign":178,"./Number.isInteger":179,"./Object.assign":180,"./requestAnimationFrame":182}],182:[function(e,t,r){(function(e){"use strict";if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}for(var n=Date.now(),r=["ms","moz","webkit","o"],i=0;i<r.length&&!e.requestAnimationFrame;++i){var o=r[i];e.requestAnimationFrame=e[o+"RequestAnimationFrame"],e.cancelAnimationFrame=e[o+"CancelAnimationFrame"]||e[o+"CancelRequestAnimationFrame"]}e.requestAnimationFrame||(e.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),r=16+n-t;return r<0&&(r=0),n=t,setTimeout(function(){n=Date.now(),e(performance.now())},r)}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){return clearTimeout(e)})}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],183:[function(e,t,r){"use strict";r.__esModule=!0;var n,s=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../core")),i=e("./limiters/CountLimiter"),o=(n=i)&&n.__esModule?n:{default:n};var u=s.ticker.shared;s.settings.UPLOADS_PER_FRAME=4;var a=function(){function r(e){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),this.limiter=new o.default(s.settings.UPLOADS_PER_FRAME),this.renderer=e,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){t.queue&&t.prepareItems()},this.registerFindHook(p),this.registerFindHook(m),this.registerFindHook(c),this.registerFindHook(l),this.registerFindHook(f),this.registerUploadHook(h),this.registerUploadHook(d)}return r.prototype.upload=function(e,t){"function"==typeof e&&(t=e,e=null),e&&this.add(e),this.queue.length?(t&&this.completes.push(t),this.ticking||(this.ticking=!0,u.addOnce(this.tick,this,s.UPDATE_PRIORITY.UTILITY))):t&&t()},r.prototype.tick=function(){setTimeout(this.delayedTick,0)},r.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],t=!1;if(e&&!e._destroyed)for(var r=0,n=this.uploadHooks.length;r<n;r++)if(this.uploadHooks[r](this.uploadHookHelper,e)){this.queue.shift(),t=!0;break}t||this.queue.shift()}if(this.queue.length)u.addOnce(this.tick,this,s.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;for(var i=this.completes.slice(0),o=this.completes.length=0,a=i.length;o<a;o++)i[o]()}},r.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},r.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},r.prototype.add=function(e){for(var t=0,r=this.addHooks.length;t<r&&!this.addHooks[t](e,this.queue);t++);if(e instanceof s.Container)for(var n=e.children.length-1;0<=n;n--)this.add(e.children[n]);return this},r.prototype.destroy=function(){this.ticking&&u.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},r}();function c(e,t){var r=!1;if(e&&e._textures&&e._textures.length)for(var n=0;n<e._textures.length;n++)if(e._textures[n]instanceof s.Texture){var i=e._textures[n].baseTexture;-1===t.indexOf(i)&&(t.push(i),r=!0)}return r}function l(e,t){return e instanceof s.BaseTexture&&(-1===t.indexOf(e)&&t.push(e),!0)}function f(e,t){if(e._texture&&e._texture instanceof s.Texture){var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function h(e,t){return t instanceof s.Text&&(t.updateText(!0),!0)}function d(e,t){if(t instanceof s.TextStyle){var r=t.toFontString();return s.TextMetrics.measureFont(r),!0}return!1}function p(e,t){if(e instanceof s.Text){-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e);var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function m(e,t){return e instanceof s.TextStyle&&(-1===t.indexOf(e)&&t.push(e),!0)}r.default=a},{"../core":65,"./limiters/CountLimiter":186}],184:[function(e,t,r){"use strict";r.__esModule=!0;var n,o=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),i=e("../BasePrepare"),a=(n=i)&&n.__esModule?n:{default:n};var s=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return(t.uploadHookHelper=t).canvas=document.createElement("canvas"),t.canvas.width=16,t.canvas.height=16,t.ctx=t.canvas.getContext("2d"),t.registerUploadHook(u),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n.prototype.destroy=function(){r.prototype.destroy.call(this),this.ctx=null,this.canvas=null},n}(a.default);function u(e,t){if(t instanceof o.BaseTexture){var r=t.source,n=0===r.width?e.canvas.width:Math.min(e.canvas.width,r.width),i=0===r.height?e.canvas.height:Math.min(e.canvas.height,r.height);return e.ctx.drawImage(r,0,0,n,i,0,0,e.canvas.width,e.canvas.height),!0}return!1}r.default=s,o.CanvasRenderer.registerPlugin("prepare",s)},{"../../core":65,"../BasePrepare":183}],185:[function(e,t,r){"use strict";r.__esModule=!0;var n=e("./webgl/WebGLPrepare");Object.defineProperty(r,"webgl",{enumerable:!0,get:function(){return u(n).default}});var i=e("./canvas/CanvasPrepare");Object.defineProperty(r,"canvas",{enumerable:!0,get:function(){return u(i).default}});var o=e("./BasePrepare");Object.defineProperty(r,"BasePrepare",{enumerable:!0,get:function(){return u(o).default}});var a=e("./limiters/CountLimiter");Object.defineProperty(r,"CountLimiter",{enumerable:!0,get:function(){return u(a).default}});var s=e("./limiters/TimeLimiter");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"TimeLimiter",{enumerable:!0,get:function(){return u(s).default}})},{"./BasePrepare":183,"./canvas/CanvasPrepare":184,"./limiters/CountLimiter":186,"./limiters/TimeLimiter":187,"./webgl/WebGLPrepare":188}],186:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxItemsPerFrame=e,this.itemsLeft=0}return t.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},t.prototype.allowedToUpload=function(){return 0<this.itemsLeft--},t}();r.default=n},{}],187:[function(e,t,r){"use strict";r.__esModule=!0;var n=function(){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),this.maxMilliseconds=e,this.frameStart=0}return t.prototype.beginFrame=function(){this.frameStart=Date.now()},t.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},t}();r.default=n},{}],188:[function(e,t,r){"use strict";r.__esModule=!0;var n,i=function(e){{if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}}(e("../../core")),o=e("../BasePrepare");var a=function(r){function n(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n);var t=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,r.call(this,e));return t.uploadHookHelper=t.renderer,t.registerFindHook(c),t.registerUploadHook(s),t.registerUploadHook(u),t}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,r),n}(((n=o)&&n.__esModule?n:{default:n}).default);function s(e,t){return t instanceof i.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.textureManager.updateTexture(t),!0)}function u(e,t){return t instanceof i.Graphics&&((t.dirty||t.clearDirty||!t._webGL[e.plugins.graphics.CONTEXT_UID])&&e.plugins.graphics.updateGraphics(t),!0)}function c(e,t){return e instanceof i.Graphics&&(t.push(e),!0)}r.default=a,i.WebGLRenderer.registerPlugin("prepare",a)},{"../../core":65,"../BasePrepare":183}],189:[function(v,e,y){(function(e){"use strict";y.__esModule=!0,y.loader=y.prepare=y.particles=y.mesh=y.loaders=y.interaction=y.filters=y.extras=y.extract=y.accessibility=void 0;var t=v("./polyfill");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(y,e,{enumerable:!0,get:function(){return t[e]}})});var r=v("./core");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(y,e,{enumerable:!0,get:function(){return r[e]}})});var n,i=v("./deprecation"),o=(n=i)&&n.__esModule?n:{default:n},a=m(v("./accessibility")),s=m(v("./extract")),u=m(v("./extras")),c=m(v("./filters")),l=m(v("./interaction")),f=m(v("./loaders")),h=m(v("./mesh")),d=m(v("./particles")),p=m(v("./prepare"));function m(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}r.utils.mixins.performMixins();var g=f.shared||null;y.accessibility=a,y.extract=s,y.extras=u,y.filters=c,y.interaction=l,y.loaders=f,y.mesh=h,y.particles=d,y.prepare=p,y.loader=g,"function"==typeof o.default&&(0,o.default)(y),e.PIXI=y}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./accessibility":42,"./core":65,"./deprecation":131,"./extract":133,"./extras":141,"./filters":153,"./interaction":159,"./loaders":162,"./mesh":171,"./particles":174,"./polyfill":181,"./prepare":185}]},{},[189])(189)}),e||(e=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},k;for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba="object"==typeof window,ca="function"==typeof importScripts,da="object"==typeof process&&"function"==typeof require&&!ba&&!ca,ea=!ba&&!da&&!ca;if(da){e.print||(e.print=function(e){process.stdout.write(e+"\n")}),e.printErr||(e.printErr=function(e){process.stderr.write(e+"\n")});var fa=require("fs"),ga=require("path");e.read=function(e,t){e=ga.normalize(e);var r=fa.readFileSync(e);return r||e==ga.resolve(e)||(e=path.join(__dirname,"..","src",e),r=fa.readFileSync(e)),r&&!t&&(r=r.toString()),r},e.readBinary=function(t){return(t=e.read(t,!0)).buffer||(t=new Uint8Array(t)),assert(t.buffer),t},e.load=function(e){ha(read(e))},e.thisProgram||(e.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),e.arguments=process.argv.slice(2),"undefined"!=typeof module&&(module.exports=e),process.on("uncaughtException",function(e){if(!(e instanceof ia))throw e}),e.inspect=function(){return"[Emscripten Module object]"}}else if(ea)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),e.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},e.readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:"undefined"!=typeof arguments&&(e.arguments=arguments),eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},"undefined"!=typeof arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function ha(e){eval.call(null,e)}for(k in!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[],aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(assert(0==(e=parseInt(e.substr(1)))%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,r){return r||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,r,n){return n&&n.length?(n.splice||(n=Array.prototype.slice.call(n)),n.splice(0,0,r),e["dynCall_"+t].apply(null,n)):e["dynCall_"+t].call(null,r)},Z:[],Xa:function(e){for(var t=0;t<n.Z.length;t++)if(!n.Z[t])return n.Z[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},nb:function(e){n.Z[(e-2)/2]=null},O:function(t){n.O.ta||(n.O.ta={}),n.O.ta[t]||(n.O.ta[t]=1,e.W(t))},ma:{},Hd:function(e,t){assert(t),n.ma[t]||(n.ma[t]={});var r=n.ma[t];return r[e]||(r[e]=function(){return n.L(t,e,arguments)}),r[e]},Fd:function(){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},aa:function(e){var t=m;return m=(m=m+e|0)+15&-16,t},Ra:function(e){var t=la;return la=(la=la+e|0)+15&-16,t},R:function(e){var n=r;return t<=(r=(r=r+e|0)+15&-16)&&!ma()?(r=n,0):n},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,r){return r?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t)},Ua:8,J:4,vd:0};e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb;var na=!1,oa,pa,ka,ra,sa;function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(e){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var o,a;a="number"==typeof e?(o=!0,e):(o=!1,e.length);var s,u,c="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(a,c?1:t.length)),o){for(assert(0==(3&(i=r))),e=r+(-4&a);i<e;i+=4)C[i>>2]=0;for(e=r+a;i<e;)y[i++>>0]=0;return r}if("i8"===c)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i<a;){var l=e[i];"function"==typeof l&&(l=n.Id(l)),0===(o=c||t[i])?i++:("i64"==o&&(o="i32"),wa(r+i,l,o),u!==o&&(s=n.Ka(o),u=o),i+=s)}return r}function va(t,r){if(0===r||!t)return"";for(var n,i=0,o=0;(i|=n=E[t+o>>0],0!=n||r)&&(o++,!r||o!=r););if(r||(r=o),n="",i<128){for(;0<r;)i=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(r,1024))),n=n?n+i:i,t+=1024,r-=1024;return n}return e.UTF8ToString(t)}function Ja(e,t){for(var r,n,i,o,a,s="";;){if(!(r=e[t++]))return s;128&r?(n=63&e[t++],192==(224&r)?s+=String.fromCharCode((31&r)<<6|n):(i=63&e[t++],(r=224==(240&r)?(15&r)<<12|n<<6|i:(o=63&e[t++],240==(248&r)?(7&r)<<18|n<<12|i<<6|o:(a=63&e[t++],248==(252&r)?(3&r)<<24|n<<18|i<<12|o<<6|a:(1&r)<<30|n<<24|i<<18|o<<12|a<<6|63&e[t++])))<65536?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,n){if(!(0<n))return 0;var i=r;n=r+n-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n<=r)break;t[r++]=a}else{if(a<=2047){if(n<=r+1)break;t[r++]=192|a>>6}else{if(a<=65535){if(n<=r+2)break;t[r++]=224|a>>12}else{if(a<=2097151){if(n<=r+3)break;t[r++]=240|a>>18}else{if(a<=67108863){if(n<=r+4)break;t[r++]=248|a>>24}else{if(n<=r+5)break;t[r++]=252|a>>30,t[r++]=128|a>>24&63}t[r++]=128|a>>18&63}t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i}function La(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t=n<=2047?t+2:n<=65535?t+3:n<=2097151?t+4:n<=67108863?t+5:t+6}return t}function Ma(l){var t=!!e.___cxa_demangle;if(t)try{var r=Ea(l.length);ua(l.substr(1),r);var i=Ea(4),o=e.___cxa_demangle(r,0,0,i);if(0===Da(i,"i32")&&o)return va(o)}catch(e){}finally{r&&Na(r),i&&Na(i),o&&Na(o)}var f=3,h={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],p=!0;r=l;try{if("Object._main"==l||"_main"==l)return"main()";if("number"==typeof l&&(l=va(l)),"_"!==l[0]||"_"!==l[1]||"Z"!==l[2])return l;switch(l[3]){case"n":return"operator new()";case"d":return"operator delete()"}r=function e(t,r,n){r=r||1/0;var i,o="",a=[];if("N"===l[f]){for("K"===l[++f]&&f++,i=[];"E"!==l[f];)if("S"===l[f]){f++;var s=l.indexOf("_",f);i.push(d[l.substring(f,s)||0]||"?"),f=s+1}else if("C"===l[f])i.push(i[i.length-1]),f+=2;else{var u=(s=parseInt(l.substr(f))).toString().length;if(!s||!u){f--;break}var c=l.substr(f+u,s);i.push(c),d.push(c),f+=u+s}if(f++,i=i.join("::"),0==--r)return t?[i]:i}else("K"===l[f]||p&&"L"===l[f])&&f++,(s=parseInt(l.substr(f)))&&(u=s.toString().length,i=l.substr(f+u,s),f+=u+s);p=!1,"I"===l[f]?(f++,s=e(!0),o+=(u=e(!0,1,!0))[0]+" "+i+"<"+s.join(", ")+">"):o=i;e:for(;f<l.length&&0<r--;)if(i=l[f++],i in h)a.push(h[i]);else switch(i){case"P":a.push(e(!0,1,!0)[0]+"*");break;case"R":a.push(e(!0,1,!0)[0]+"&");break;case"L":f++,s=l.indexOf("E",f)-f,a.push(l.substr(f,s)),f+=s+2;break;case"A":if(s=parseInt(l.substr(f)),f+=s.toString().length,"_"!==l[f])throw"?";f++,a.push(e(!0,1,!0)[0]+" ["+s+"]");break;case"E":break e;default:o+="?"+i;break e}return n||1!==a.length||"void"!==a[0]||(a=[]),t?(o&&a.push(o+"?"),a):o+"("+a.join(", ")+")"}()}catch(e){r+="?"}return 0<=r.indexOf("?")&&!t&&n.O("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),r}function Oa(){return Pa().replace(/__Z[\w\d_]+/g,function(e){var t=Ma(e);return e===t?e:e+" ["+t+"]"})}function Pa(){var t=Error();if(!t.stack){try{throw Error(0)}catch(e){t=e}if(!t.stack)return"(no stack trace available)"}return t.stack.toString()}function Qa(e){return 0<e%4096&&(e+=4096-e%4096),e}!function(){function a(e){return{arguments:(e=e.toString().match(d).slice(1))[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!=e&&0!==e&&ua(e,t=n.aa(1+(e.length<<2))),t}},c={string:b.stringToC,array:b.arrayToC};sa=function(e,t,r,i,o){e=qa(e);var a=[],s=0;if(i)for(var u=0;u<i.length;u++){var l=c[r[u]];l?(0===s&&(s=n.ua()),a[u]=l(i[u])):a[u]=i[u]}if(r=e.apply(null,a),"string"===t&&(r=va(r)),0!==s){if(o&&o.async)return void EmterpreterAsync.yd.push(function(){n.ba(s)});n.ba(s)}return r};var d=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,f={},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=a(b[g]));ra=function(b,c,d){d=d||[];var g=qa(b);b=d.every(function(e){return"number"===e});var q="string"!==c;if(q&&b)return g;var v=d.map(function(e,t){return"$"+t});c="(function("+v.join(",")+") {";var B=d.length;if(!b){c+="var stack = "+f.stackSave.body+";";for(var G=0;G<B;G++){var O=v[G],ja=d[G];"number"!==ja&&(ja=f[ja+"ToC"],c+="var "+ja.arguments+" = "+O+";",c+=ja.body+";",c+=O+"="+ja.returnValue+";")}}return d=a(function(){return g}).returnValue,c+="var ret = "+d+"("+v.join(",")+");",q||(d=a(function(){return va}).returnValue,c+="ret = "+d+"(ret);"),b||(c+=f.stackRestore.body.replace("()","(stack)")+";"),eval(c+"return ret})")}}(),e.ccall=sa,e.cwrap=ra,e.setValue=wa,e.getValue=Da,e.ALLOC_NORMAL=0,e.ALLOC_STACK=1,e.ALLOC_STATIC=2,e.ALLOC_DYNAMIC=3,e.ALLOC_NONE=4,e.allocate=D,e.getMemory=function(e){return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var r=y[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var n=z[e+2*t>>1];if(0==n)return r;++t,r+=String.fromCharCode(n)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var i=0;i<r;++i)z[t>>1]=e.charCodeAt(i),t+=2;return z[t>>1]=0,t-n},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var n=C[e+4*t>>2];if(0==n)return r;++t,65536<=n?(n-=65536,r+=String.fromCharCode(55296|n>>10,56320|1023&n)):r+=String.fromCharCode(n)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;var n=t;r=n+r-4;for(var i=0;i<e.length;++i){if(55296<=(o=e.charCodeAt(i))&&o<=57343)var o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i);if(C[t>>2]=o,r<(t+=4)+4)break}return C[t>>2]=0,t-n},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&n<=57343&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya,buffer;function ma(){var n=Math.pow(2,31);if(n<=r)return!1;for(;t<=r;)if(t<n/2)t=Qa(2*t);else{var i=t;if((t=Qa((3*t+n)/4))<=i)return!1}if(n<=(t=Math.max(t,16777216)))return!1;try{if(ArrayBuffer.p)buffer=ArrayBuffer.p(buffer,t);else{var o=y;buffer=new ArrayBuffer(t)}}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(o),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t();else{var r=t.ab;"number"==typeof r?void 0===t.X?n.L("v",r):n.L("vi",r,[t.X]):r(void 0===t.X?null:t.X)}}}F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;function fb(e){bb.unshift(e)}function gb(e){eb.unshift(e)}function hb(e,t,r){return e=Ka(e,r=Array(0<r?r:La(e)+1),0,r.length),t&&(r.length=e),r}function ua(e,t,r){for(e=hb(e,r),r=0;r<e.length;)y[t+r>>0]=e[r],r+=1}function ta(e,t){for(var r=0;r<e.length;r++)y[t++>>0]=e[r]}function Ia(e,t,r){for(var n=0;n<e.length;++n)y[t++>>0]=e.charCodeAt(n);r||(y[t>>0]=0)}e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];255<n&&(n&=255),t.push(String.fromCharCode(n))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16)*n+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){if(I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)){var t=jb;jb=null,t()}}e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={};function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}var xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function yb(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function Bb(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."}var Eb=[];function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}var Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,r,n){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var i=0,o=0;o<n;o++){var a;try{a=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===a&&0===i)throw new L(J.va);if(null==a)break;i++,t[r+o]=a}return i&&(e.g.timestamp=Date.now()),i},write:function(e,t,r,n){if(!e.tty||!e.tty.N.qa)throw new L(J.Aa);for(var i=0;i<n;i++)try{e.tty.N.qa(e.tty,t[r+i])}catch(e){throw new L(J.H)}return n&&(e.g.timestamp=Date.now()),i}},Ib={La:function(e){if(!e.input.length){var t=null;if(da){var r,n=new Buffer(256),i=process.stdin.fd,o=!1;try{i=fs.openSync("/dev/stdin","r"),o=!0}catch(e){}r=fs.readSync(i,n,0,256,null),o&&fs.closeSync(i),t=0<r?n.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&(null!==(t=readline())&&(t+="\n"));if(!t)return null;e.input=hb(t,!0)}return e.input.shift()},qa:function(t,r){null===r||10===r?(e.print(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.print(Ja(t.output,0)),t.output=[])}},Jb={qa:function(t,r){null===r||10===r?(e.printErr(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.printErr(Ja(t.output,0)),t.output=[])}},M={C:null,A:function(){return M.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(24576==(61440&r)||4096==(61440&r))throw new L(J.I);return M.C||(M.C={dir:{g:{D:M.k.D,u:M.k.u,lookup:M.k.lookup,T:M.k.T,rename:M.k.rename,unlink:M.k.unlink,rmdir:M.k.rmdir,readdir:M.k.readdir,symlink:M.k.symlink},stream:{G:M.n.G}},file:{g:{D:M.k.D,u:M.k.u},stream:{G:M.n.G,read:M.n.read,write:M.n.write,Ba:M.n.Ba,Na:M.n.Na,Pa:M.n.Pa}},link:{g:{D:M.k.D,u:M.k.u,readlink:M.k.readlink},stream:{}},Ea:{g:{D:M.k.D,u:M.k.u},stream:Kb}}),N((r=Lb(e,t,r,n)).mode)?(r.k=M.C.dir.g,r.n=M.C.dir.stream,r.e={}):32768==(61440&r.mode)?(r.k=M.C.file.g,r.n=M.C.file.stream,r.o=0,r.e=null):40960==(61440&r.mode)?(r.k=M.C.link.g,r.n=M.C.link.stream):8192==(61440&r.mode)&&(r.k=M.C.Ea.g,r.n=M.C.Ea.stream),r.timestamp=Date.now(),e&&(e.e[t]=r),r},cb:function(e){if(e.e&&e.e.subarray){for(var t=[],r=0;r<e.o;++r)t.push(e.e[r]);return t}return e.e},Gd:function(e){return e.e?e.e.subarray?e.e.subarray(0,e.o):new Uint8Array(e.e):new Uint8Array},Ga:function(e,t){if(e.e&&e.e.subarray&&t>e.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var r=e.e?e.e.buffer.byteLength:0;t<=r||(t=Math.max(t,r*(r<1048576?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.e,e.e=new Uint8Array(t),0<e.o&&e.e.set(r.subarray(0,e.o),0))}else for(!e.e&&0<t&&(e.e=[]);e.e.length<t;)e.e.push(0)},ob:function(e,t){if(e.o!=t)if(0==t)e.e=null,e.o=0;else{if(!e.e||e.e.subarray){var r=e.e;e.e=new Uint8Array(new ArrayBuffer(t)),r&&e.e.set(r.subarray(0,Math.min(t,e.o)))}else if(e.e||(e.e=[]),e.e.length>t)e.e.length=t;else for(;e.e.length<t;)e.e.push(0);e.o=t}},k:{D:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,N(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.o:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.K=4096,t.blocks=Math.ceil(t.size/t.K),t},u:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&M.ob(e,t.size)},lookup:function(){throw Mb[J.F]},T:function(e,t,r,n){return M.createNode(e,t,r,n)},rename:function(e,t,r){if(N(e.mode)){var n;try{n=Nb(t,r)}catch(e){}if(n)for(var i in n.e)throw new L(J.za)}delete e.parent.e[e.name],e.name=r,(t.e[r]=e).parent=t},unlink:function(e,t){delete e.e[t]},rmdir:function(e,t){var r,n=Nb(e,t);for(r in n.e)throw new L(J.za);delete e.e[t]},readdir:function(e){var t,r=[".",".."];for(t in e.e)e.e.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,t,r){return(e=M.createNode(e,t,41471,0)).link=r,e},readlink:function(e){if(40960!=(61440&e.mode))throw new L(J.q);return e.link}},n:{read:function(e,t,r,n,i){var o=e.g.e;if(i>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-i,n))),8<e&&o.subarray)t.set(o.subarray(i,i+e),r);else for(n=0;n<e;n++)t[r+n]=o[i+n];return e},write:function(e,t,r,n,i,o){if(!n)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(o)return e.e=t.subarray(r,r+n),e.o=n;if(0===e.o&&0===i)return e.e=new Uint8Array(t.subarray(r,r+n)),e.o=n;if(i+n<=e.o)return e.e.set(t.subarray(r,r+n),i),n}if(M.Ga(e,i+n),e.e.subarray&&t.subarray)e.e.set(t.subarray(r,r+n),i);else for(o=0;o<n;o++)e.e[i+o]=t[r+o];return e.o=Math.max(e.o,i+n),n},G:function(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.g.mode)&&(t+=e.g.o),t<0)throw new L(J.q);return t},Ba:function(e,t,r){M.Ga(e.g,t+r),e.g.o=Math.max(e.g.o,t+r)},Na:function(e,t,r,n,i,o,a){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&a||r.buffer!==t&&r.buffer!==t.buffer){if((0<i||i+n<e.g.o)&&(r=r.subarray?r.subarray(i,i+n):Array.prototype.slice.call(r,i,i+n)),e=!0,!(n=Ea(n)))throw new L(J.Ta);t.set(r,n)}else e=!1,n=r.byteOffset;return{Rd:n,xd:e}},Pa:function(e,t,r,n,i){if(32768!=(61440&e.g.mode))throw new L(J.ha);return 2&i||M.n.write(e,t,0,n,r,!1),0}}},P={$:!1,sb:function(){P.$=!!process.platform.match(/^win/)},A:function(e){return assert(da),P.createNode(null,"/",P.Ja(e.pa.root),0)},createNode:function(e,t,r){if(!N(r)&&32768!=(61440&r)&&40960!=(61440&r))throw new L(J.q);return(e=Lb(e,t,r)).k=P.k,e.n=P.n,e},Ja:function(e){var t;try{t=fs.lstatSync(e),P.$&&(t.mode=t.mode|(146&t.mode)>>1)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){var t;e=P.B(e);try{t=fs.lstatSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var r=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},lookup:function(e,t){var r=K(P.B(e),t);r=P.Ja(r);return P.createNode(e,t,r)},T:function(e,t,r,n){e=P.createNode(e,t,r,n),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return e},rename:function(e,t,r){e=P.B(e),t=K(P.B(t),r);try{fs.renameSync(e,t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},unlink:function(e,t){var r=K(P.B(e),t);try{fs.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},rmdir:function(e,t){var r=K(P.B(e),t);try{fs.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,n,i){if(0===n)return 0;var o,a=new Buffer(n);try{o=fs.readSync(e.V,a,0,n,i)}catch(e){throw new L(J[e.code])}if(0<o)for(e=0;e<o;e++)t[r+e]=a[e];return o},write:function(e,t,r,n,i){var o;t=new Buffer(t.subarray(r,r+n));try{o=fs.writeSync(e.V,t,0,n,i)}catch(e){throw new L(J[e.code])}return o},G:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(t<0)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={};function S(e,t){if(t=t||{},!(e=Db("/",e)))return{path:"",g:null};var r,n={Ia:!0,ra:0};for(r in n)void 0===t[r]&&(t[r]=n[r]);if(8<t.ra)throw new L(J.ga);n=yb(e.split("/").filter(function(e){return!!e}),!1);var i=Pb;r="/";for(var o=0;o<n.length;o++){var a=o===n.length-1;if(a&&t.parent)break;if(i=Nb(i,n[o]),r=K(r,n[o]),i.U&&(!a||a&&t.Ia)&&(i=i.U.root),!a||t.la)for(a=0;40960==(61440&i.mode);)if(i=Vb(r),i=S(r=Db(Ab(r),i),{ra:t.ra}).g,40<a++)throw new L(J.ga)}return{path:r,g:i}}function T(e){for(var t;;){if(e===e.parent)return e=e.A.Oa,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function Wb(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var r;if(r=(r=Yb(e,"x"))?r:e.k.lookup?0:J.da)throw new L(r,e);for(r=Q[Wb(e.id,t)];r;r=r.M){var n=r.name;if(r.parent.id===e.id&&n===t)return r}return e.k.lookup(e,t)}function Lb(e,t,r,n){return Zb||((Zb=function(e,t,r,n){e||(e=this),this.parent=e,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=r,this.k={},this.n={},this.rdev=n}).prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),Xb(e=new Zb(e,t,r,n)),e}function N(e){return 16384==(61440&e)}var $b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Yb(e,t){return Tb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){for(var e=0;e<=4096;e++)if(!Rb[e])return e;throw new L(J.Sa)}function cc(e){dc||((dc=function(){}).prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,r=new dc;for(t in e)r[t]=e[t];return e=r,r=bc(),e.fd=r,Rb[r]=e}var Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc;function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var r,n="/"===t,i=!t;if(n&&Pb)throw new L(J.fa);if(!n&&!i){if(t=(r=S(t,{Ia:!1})).path,(r=r.g).U)throw new L(J.fa);if(!N(r.mode))throw new L(J.ya)}i={type:e,pa:{},Oa:t,lb:[]};var o=e.A(i);(o.A=i).root=o,n?Pb=o:r&&(r.U=i,r.A&&r.A.lb.push(i))}function fc(e,t,r){var n=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var i=ac(n,e);if(i)throw new L(i);if(!n.k.T)throw new L(J.I);return n.k.T(n,e,t,r)}function gc(e,t){return t=4095&(void 0!==t?t:438),fc(e,t|=32768,0)}function V(e,t){return t=1023&(void 0!==t?t:511),fc(e,t|=16384,0)}function hc(e,t,r){return void 0===r&&(r=t,t=438),fc(e,8192|t,r)}function ic(e,t){if(!Db(e))throw new L(J.F);var r=S(t,{parent:!0}).g;if(!r)throw new L(J.F);var n=Bb(t),i=ac(r,n);if(i)throw new L(i);if(!r.k.symlink)throw new L(J.I);return r.k.symlink(r,n,e)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(!e.k.readlink)throw new L(J.q);return Db(T(e.parent),e.k.readlink(e))}function jc(e,t){var r;if(!(r="string"==typeof e?S(e,{la:!0}).g:e).k.u)throw new L(J.I);r.k.u(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function kc(t,r){var n,i,o;if(""===t)throw new L(J.F);if("string"==typeof r){if(void 0===(i=$b[r]))throw Error("Unknown file open mode: "+r)}else i=r;if(n=64&(r=i)?4095&(void 0===n?438:n)|32768:0,"object"==typeof t)o=t;else{t=zb(t);try{o=S(t,{la:!(131072&r)}).g}catch(e){}}if(i=!1,64&r)if(o){if(128&r)throw new L(J.wa)}else o=fc(t,n,0),i=!0;if(!o)throw new L(J.F);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&!N(o.mode))throw new L(J.ya);if(!i&&(n=o?40960==(61440&o.mode)?J.ga:N(o.mode)&&(0!=(2097155&r)||512&r)?J.P:(n=["r","w","rw"][3&r],512&r&&(n+="w"),Yb(o,n)):J.F))throw new L(n);if(512&r){var a;if(!(a="string"==typeof(n=o)?S(n,{la:!0}).g:n).k.u)throw new L(J.I);if(N(a.mode))throw new L(J.P);if(32768!=(61440&a.mode))throw new L(J.q);if(n=Yb(a,"w"))throw new L(n);a.k.u(a,{size:0,timestamp:Date.now()})}r&=-641,(o=cc({g:o,path:T(o),flags:r,seekable:!0,position:0,n:o.n,tb:[],error:!1})).n.open&&o.n.open(o),!e.logReadFiles||1&r||(lc||(lc={}),t in lc||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(a=0,1!=(2097155&r)&&(a|=1),0!=(2097155&r)&&(a|=2),R.onOpenFile(t,a))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return o}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,r){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,r),e.tb=[]}function oc(e,t,r,n,i,o){if(n<0||i<0)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var a=!0;if(void 0===i)i=e.position,a=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,n,i,o),a||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||((L=function(e,t){this.g=t,this.qb=function(e){for(var t in this.S=e,J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]}).prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack="<generic error, no stack>"}))}function rc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function sc(e,t,r,n){return gc(e=K("string"==typeof e?e:T(e),t),rc(r,n))}function tc(e,t,r,n,i,o){if(i=gc(e=t?K("string"==typeof e?e:T(e),t):e,n=rc(n,i)),r){if("string"==typeof r){e=Array(r.length),t=0;for(var a=r.length;t<a;++t)e[t]=r.charCodeAt(t);r=e}jc(i,146|n),oc(e=kc(i,"w"),r,0,r.length,0,o),mc(e),jc(i,n)}return i}function W(e,t,s,o){e=K("string"==typeof e?e:T(e),t),t=rc(!!s,!!o),W.Ma||(W.Ma=64);var r=W.Ma++<<8|0;return Gb(r,{open:function(e){e.seekable=!1},close:function(){o&&o.buffer&&o.buffer.length&&o(10)},read:function(e,t,r,n){for(var i=0,o=0;o<n;o++){var a;try{a=s()}catch(e){throw new L(J.H)}if(void 0===a&&0===i)throw new L(J.va);if(null==a)break;i++,t[r+o]=a}return i&&(e.g.timestamp=Date.now()),i},write:function(e,t,r,n){for(var i=0;i<n;i++)try{o(t[r+i])}catch(e){throw new L(J.H)}return n&&(e.g.timestamp=Date.now()),i}}),hc(e,t,r)}function uc(t){if(t.jb||t.kb||t.link||t.e)return!0;var r=!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.e=hb(e.read(t.url),!0),t.o=t.e.length}catch(e){r=!1}return r||ob(J.H),r}var vc={},Zb,dc,lc,wc=0;function X(){return C[(wc+=4)-4>>2]}function xc(){var e;if(e=X(),!(e=Rb[e]))throw new L(J.ea);return e}var yc={};function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}e._i64Add=zc;var Ac=1;function Cc(e,t){if(Dc=e,Ec=t,!Fc)return 1;if(0==e)Y=function(){setTimeout(Gc,t)},Hc="timeout";else if(1==e)Y=function(){Ic(Gc)},Hc="rAF";else if(2==e){if(!window.setImmediate){var r=[];window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),r.shift()())},!0),window.setImmediate=function(e){r.push(e),window.postMessage("__emcc","*")}}Y=function(){window.setImmediate(Gc)},Hc="immediate"}return 0}function Jc(a,t,r,s,i){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=a,Kc=s;var u=Lc;if(Gc=function(){if(!na)if(0<Mc.length){var t=Date.now(),r=Mc.shift();if(r.ab(r.X),Nc){var i=Nc,o=0==i%1?i-1:Math.floor(i);Nc=r.Bd?o:(8*i+(o+.5))/9}console.log('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)}else u<Lc||(Pc=Pc+1|0,1==Dc&&1<Ec&&0!=Pc%Ec?Y():("timeout"===Hc&&e.ka&&(e.W("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Hc=""),Qc(function(){void 0!==s?n.L("vi",a,[s]):n.L("v",a)}),u<Lc||("object"==typeof SDL&&SDL.audio&&SDL.audio.mb&&SDL.audio.mb(),Y())))},i||(t&&0<t?Cc(0,1e3/t):Cc(1,1),Y()),r)throw"SimulateInfiniteLoop"}e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[];function Oc(){if(e.setStatus){var t=e.statusMessage||"Please wait...",r=Nc,n=Rc.Dd;r?r<n?e.setStatus(t+" ("+(n-r)+"/"+n+")"):e.setStatus(t):e.setStatus("")}}function Qc(t){if(!(na||e.preMainLoop&&!1===e.preMainLoop())){try{t()}catch(t){if(t instanceof ia)return;throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t}e.postMainLoop&&e.postMainLoop()}}var Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[];function Vc(){function t(){Tc=document.pointerLockElement===r||document.mozPointerLockElement===r||document.webkitPointerLockElement===r||document.msPointerLockElement===r}if(e.preloadPlugins||(e.preloadPlugins=[]),!Wc){Wc=!0;try{Xc=!0}catch(e){Xc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Yc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Xc?null:console.log("warning: no BlobBuilder"),Zc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,e.Qa||void 0!==Zc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.Qa=!0),e.preloadPlugins.push({canHandle:function(t){return!e.Qa&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(r,i,o,t){var a=null;if(Xc)try{(a=new Blob([r],{type:$c(i)})).size!==r.length&&(a=new Blob([new Uint8Array(r).buffer],{type:$c(i)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}a||((a=new Yc).append(new Uint8Array(r).buffer),a=a.getBlob());var s=Zc.createObjectURL(a),u=new Image;u.onload=function(){assert(u.complete,"Image "+i+" could not be decoded");var t=document.createElement("canvas");t.width=u.width,t.height=u.height,t.getContext("2d").drawImage(u,0,0),e.preloadedImages[i]=t,Zc.revokeObjectURL(s),o&&o(r)},u.onerror=function(){console.log("Image "+s+" could not be decoded"),t&&t()},u.src=s}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(o,a,r,t){function s(t){u||(u=!0,e.preloadedAudios[a]=t,r&&r(o))}function n(){u||(u=!0,e.preloadedAudios[a]=new Audio,t&&t())}var u=!1;if(!Xc)return n();try{var i=new Blob([o],{type:$c(a)})}catch(e){return n()}i=Zc.createObjectURL(i);var c=new Audio;c.addEventListener("canplaythrough",function(){s(c)},!1),c.onerror=function(){if(!u){console.log("warning: browser could not fully decode audio "+a+", trying slower base64 approach");for(var e="",t=0,r=0,n=0;n<o.length;n++)for(t=t<<8|o[n],r+=8;6<=r;){var i=t>>r-6&63;r=r-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}2==r?(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4],e+="=="):4==r&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2],e+="="),c.src="data:audio/x-"+a.substr(-3)+";base64,"+e,s(c)}},c.src=i,ad(function(){s(c)})}});var r=e.canvas;r&&(r.sa=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.Fa=r.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&r.addEventListener("click",function(e){!Tc&&r.sa&&(r.sa(),e.preventDefault())},!1))}}function bd(t,r,n,i){if(r&&e.ka&&t==e.canvas)return e.ka;var o,a;if(r){if(a={antialias:!1,alpha:!1},i)for(var s in i)a[s]=i[s];(a=GL.createContext(t,a))&&(o=GL.getContext(a).td),t.style.backgroundColor="black"}else o=t.getContext("2d");return o?(n&&(r||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=o,r&&GL.Od(a),e.Td=r,Uc.forEach(function(e){e()}),Vc()),o):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,r,n){function i(){Sc=!1;var t=o.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(o.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},o.Da=o.Da.bind(document),dd&&o.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(o)}void 0===(dd=t)&&(dd=!0),void 0===(ed=r)&&(ed=!1),void 0===(jd=n)&&(jd=null);var o=e.canvas;cd||(cd=!0,document.addEventListener("fullscreenchange",i,!1),document.addEventListener("mozfullscreenchange",i,!1),document.addEventListener("webkitfullscreenchange",i,!1),document.addEventListener("MSFullscreenChange",i,!1));var a=document.createElement("div");o.parentNode.insertBefore(a,o),a.appendChild(o),a.p=a.requestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen||(a.webkitRequestFullScreen?function(){a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),n?a.p({Ud:n}):a.p()}var kd=0;function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;kd<=t+2;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}function nd(t,r,e){md(t,function(e){assert(e,'Loading data file "'+t+'" failed (no arrayBuffer).'),r(new Uint8Array(e)),lb()},function(){if(!e)throw'Loading data file "'+t+'" failed.';e()}),kb()}var od=[],Wc,Xc,Yc,Zc,jd;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=8388608|e}pd()}function hd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=-8388609&e}pd()}function id(t,r,n){r&&n?(t.ub=r,t.hb=n):(r=t.ub,n=t.hb);var i=r,o=n;if(e.forcedAspectRatio&&0<e.forcedAspectRatio&&(i/o<e.forcedAspectRatio?i=Math.round(o*e.forcedAspectRatio):o=Math.round(i/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t.parentNode&&"undefined"!=typeof screen){var a=Math.min(screen.width/i,screen.height/o);i=Math.round(i*a),o=Math.round(o*a)}ed?(t.width!=i&&(t.width=i),t.height!=o&&(t.height=o),void 0!==t.style&&(t.style.removeProperty("width"),t.style.removeProperty("height"))):(t.width!=r&&(t.width=r),t.height!=n&&(t.height=n),void 0!==t.style&&(i!=r||o!=n?(t.style.setProperty("width",i+"px","important"),t.style.setProperty("height",o+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){var e;if(V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,n){return n}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536),"undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var n={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return n.parent=n}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),assert(1===(t=kc("/dev/stdout","w")).fd,"invalid handle for stdout ("+t.fd+")"),assert(2===(t=kc("/dev/stderr","w")).fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var r=Rb[t];r&&mc(r)}}),e.FS_createFolder=function(e,t,r,n){return V(e=K("string"==typeof e?e:T(e),t),rc(r,n))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var r=t.split("/").reverse();r.length;){var n=r.pop();if(n){var i=K(e,n);try{V(i)}catch(e){}e=i}}return i},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(i,o,t,a,s,u,c,l,f,h){function r(t){function r(e){h&&h(),l||tc(i,o,e,a,s,f),u&&u(),lb()}var n=!1;e.preloadPlugins.forEach(function(e){!n&&e.canHandle(d)&&(e.handle(t,d,r,function(){c&&c(),lb()}),n=!0)}),n||r(t)}Vc();var d=o?Db(K(i,o)):i;kb(),"string"==typeof t?nd(t,function(e){r(e)},c):r(t)},e.FS_createLazyFile=function(e,t,u,r,n){var i,o;function a(){this.oa=!1,this.Y=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},a.prototype.pb=function(e){this.gb=e},a.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",u,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+u+". Status: "+e.status);var t,o=Number(e.getResponseHeader("Content-length")),a=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(a=o);var s=this;s.pb(function(e){var t=e*a,r=(e+1)*a-1;r=Math.min(r,o-1);if(void 0===s.Y[e]){var n=s.Y;if(r<t)throw Error("invalid range ("+t+", "+r+") or no bytes requested!");if(o-1<r)throw Error("only "+o+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",u,!1),o!==a&&i.setRequestHeader("Range","bytes="+t+"-"+r),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(200<=i.status&&i.status<300||304===i.status))throw Error("Couldn't load "+u+". Status: "+i.status);t=void 0!==i.response?new Uint8Array(i.response||[]):hb(i.responseText||"",!0),n[e]=t}if(void 0===s.Y[e])throw Error("doXHR failed!");return s.Y[e]}),this.Wa=o,this.Va=a,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";i=new a,Object.defineProperty(i,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(i,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),o=void 0}else o=u,i=void 0;var s=sc(e,t,r,n);i?s.e=i:o&&(s.e=null,s.url=o),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}});var c={};return Object.keys(s.n).forEach(function(e){var t=s.n[e];c[e]=function(){if(!uc(s))throw new L(J.H);return t.apply(null,arguments)}}),c.read=function(e,t,r,n,i){if(!uc(s))throw new L(J.H);if(i>=(e=e.g.e).length)return 0;if(assert(0<=(n=Math.min(e.length-i,n))),e.slice)for(var o=0;o<n;o++)t[r+o]=e[i+o];else for(o=0;o<n;o++)t[r+o]=e.get(i+o);return n},s.n=c,s},e.FS_createLink=function(e,t,r){return ic(r,e=K("string"==typeof e?e:T(e),t))},e.FS_createDevice=W,e.FS_unlink=function(t){var r,e=S(t,{parent:!0}).g,n=Bb(t),i=Nb(e,n);e:{try{r=Nb(e,n)}catch(e){r=e.S;break e}var o=Yb(e,"wx");r=o||(N(r.mode)?J.P:0)}if(r)throw r===J.P&&(r=J.I),new L(r);if(!e.k.unlink)throw new L(J.I);if(i.U)throw new L(J.fa);try{R.willDeletePath&&R.willDeletePath(t)}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+t+"') threw an exception: "+e.message)}if(e.k.unlink(e,n),e=Wb(i.parent.id,i.name),Q[e]===i)Q[e]=i.M;else for(e=Q[e];e;){if(e.M===i){e.M=i.M;break}e=e.M}try{R.onDeletePath&&R.onDeletePath(t)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+t+"') threw an exception: "+e.message)}},cb.unshift(function(){}),H.push(function(){}),da){var fs=require("fs"),Ob=require("path");P.sb()}e.requestFullScreen=function(e,t,r){fd(e,t,r)},e.requestAnimationFrame=function(e){Ic(e)},e.setCanvasSize=function(t,r,n){id(e.canvas,t,r),n||pd()},e.pauseMainLoop=function(){Y=null,Lc++},e.resumeMainLoop=function(){Lc++;var e=Dc,t=Ec;Jc(Fc,0,!1,Kc,!(Fc=null)),Cc(e,t),Y()},e.getUserMedia=function(){window.p||(window.p=navigator.getUserMedia||navigator.mozGetUserMedia),window.p(void 0)},e.createContext=function(e,t,r,n){return bd(e,t,r,n)},Ua=m=n.ja(la),Fa=!0,Va=Ua+$a,Wa=r=n.ja(Va),assert(Wa<t,"TOTAL_MEMORY not big enough for stack");var qd=D([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3);e.Ya={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Ya},e.Za={abort:x,assert:assert,invoke_iiii:function(t,r,n,i){try{return e.dynCall_iiii(t,r,n,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiii:function(t,r,n,i,o,a){try{e.dynCall_viiiii(t,r,n,i,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_vi:function(t,r){try{e.dynCall_vi(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_ii:function(t,r){try{return e.dynCall_ii(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viii:function(t,r,n,i){try{e.dynCall_viii(t,r,n,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_v:function(t){try{e.dynCall_v(t)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiiii:function(t,r,n,i,o,a,s){try{e.dynCall_viiiiii(t,r,n,i,o,a,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,r,n,i,o,a){try{return e.dynCall_iiiiii(t,r,n,i,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,r,n,i,o){try{e.dynCall_viiii(t,r,n,i,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},_pthread_cleanup_pop:function(){assert(pb.level==H.length,"cannot pop if something else added meanwhile!"),H.pop(),pb.level=H.length},___syscall54:function(e,t){wc=t;try{var r=xc(),n=X();switch(n){case 21505:case 21506:return r.tty?0:-J.Q;case 21519:if(!r.tty)return-J.Q;var i=X();return C[i>>2]=0;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(i=X(),!r.n.ib)throw new L(J.Q);return r.n.ib(r,n,i);default:x("bad ioctl syscall "+n)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){var t;tb.p--,ub.push(e);e:{if(e&&!vb[e])for(t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,r){return E.set(E.subarray(t,t+r),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var r=xc(),n=X(),i=X(),o=X(),a=X();return assert(0===n),nc(r,i,a),C[o>>2]=r.position,r.na&&0===i&&0===a&&(r.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var r,n=xc(),i=X();e:{for(var o=X(),a=0,s=0;s<o;s++){var u=oc(n,y,C[i+8*s>>2],C[i+(8*s+4)>>2],void 0);if(u<0){r=-1;break e}a+=u}r=a}return r}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd};var Z=function(e,t,r){"use asm";var n=e.Int8Array;var i=e.Int16Array;var o=e.Int32Array;var a=e.Uint8Array;var s=e.Uint16Array;var u=e.Uint32Array;var c=e.Float32Array;var l=e.Float64Array;var de=new n(r);var $=new i(r);var pe=new o(r);var me=new a(r);var ge=new s(r);var f=new u(r);var h=new c(r);var ee=new l(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var m=t.ABORT|0;var g=t.cttz_i8|0;var v=0;var y=0;var _=0;var b=0;var x=e.NaN,w=e.Infinity;var T=0,S=0,M=0,P=0,E=0.0,C=0,k=0,A=0,O=0.0;var re=0;var R=0;var I=0;var D=0;var L=0;var N=0;var j=0;var F=0;var B=0;var z=0;var U=e.Math.floor;var X=e.Math.abs;var q=e.Math.sqrt;var H=e.Math.pow;var Y=e.Math.cos;var G=e.Math.sin;var W=e.Math.tan;var V=e.Math.acos;var K=e.Math.asin;var J=e.Math.atan;var Z=e.Math.atan2;var Q=e.Math.exp;var ne=e.Math.log;var ie=e.Math.ceil;var ye=e.Math.imul;var oe=e.Math.min;var ae=e.Math.clz32;var se=t.abort;var ue=t.assert;var ce=t.invoke_iiii;var le=t.invoke_viiiii;var fe=t.invoke_vi;var he=t.invoke_ii;var _e=t.invoke_viii;var be=t.invoke_v;var xe=t.invoke_viiiiii;var we=t.invoke_iiiiii;var Te=t.invoke_viiii;var Se=t._pthread_cleanup_pop;var Me=t.___syscall54;var Pe=t.___syscall6;var Ee=t._emscripten_set_main_loop_timing;var Ce=t.__ZSt18uncaught_exceptionv;var ke=t.___setErrNo;var Ae=t._sbrk;var Oe=t.___cxa_begin_catch;var Re=t._emscripten_memcpy_big;var Ie=t._sysconf;var De=t._pthread_getspecific;var Le=t._pthread_self;var Ne=t._pthread_once;var je=t._pthread_key_create;var Fe=t.___unlock;var Be=t._emscripten_set_main_loop;var ze=t._pthread_setspecific;var Ue=t.___lock;var Xe=t._abort;var qe=t._pthread_cleanup_push;var He=t._time;var Ye=t.___syscall140;var Ge=t.___syscall146;var We=0.0;function Ve(e){if(d(e)&16777215||d(e)<=16777215||d(e)>2147483648)return false;de=new n(e);$=new i(e);pe=new o(e);me=new a(e);ge=new s(e);f=new u(e);h=new c(e);ee=new l(e);r=e;return true}function Ke(e){e=e|0;var t=0;t=ve;ve=ve+e|0;ve=ve+15&-16;return t|0}function Je(){return ve|0}function Ze(e){e=e|0;ve=e}function Qe(e,t){e=e|0;t=t|0;ve=e;p=t}function $e(e,t){e=e|0;t=t|0;if(!v){v=e;y=t}}function et(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0]}function tt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0];de[te+4>>0]=de[e+4>>0];de[te+5>>0]=de[e+5>>0];de[te+6>>0]=de[e+6>>0];de[te+7>>0]=de[e+7>>0]}function rt(e){e=e|0;re=e}function nt(){return re|0}function it(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;m=ve;ve=ve+608|0;h=m+88|0;f=m+72|0;u=m+64|0;s=m+48|0;a=m+24|0;o=m;l=m+96|0;d=m+92|0;c=e+4|0;p=e+8|0;if((pe[c>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[o>>2]=1154;pe[o+4>>2]=2120;pe[o+8>>2]=1133;br(l,1100,o)|0;_r(l,m+16|0)|0}if((2147418112/(n>>>0)|0)>>>0<=t>>>0){pe[a>>2]=1154;pe[a+4>>2]=2121;pe[a+8>>2]=1169;br(l,1100,a)|0;_r(l,m+40|0)|0}a=pe[p>>2]|0;if(a>>>0>=t>>>0){p=1;ve=m;return p|0}do{if(r){if(t){o=t+-1|0;if(!(o&t)){o=11;break}else t=o}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;o=10}else o=10}while(0);if((o|0)==10)if(!t){t=0;o=12}else o=11;if((o|0)==11)if(t>>>0<=a>>>0)o=12;if((o|0)==12){pe[s>>2]=1154;pe[s+4>>2]=2130;pe[s+8>>2]=1217;br(l,1100,s)|0;_r(l,u)|0}r=ye(t,n)|0;do{if(!i){o=ot(pe[e>>2]|0,r,d,1)|0;if(!o){p=0;ve=m;return p|0}else{pe[e>>2]=o;break}}else{a=at(r,d)|0;if(!a){p=0;ve=m;return p|0}On[i&0](a,pe[e>>2]|0,pe[c>>2]|0);o=pe[e>>2]|0;do{if(o)if(!(o&7)){Dn[pe[104>>2]&1](o,0,0,1,pe[27]|0)|0;break}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(l,1100,f)|0;_r(l,h)|0;break}}while(0);pe[e>>2]=a}}while(0);o=pe[d>>2]|0;if(o>>>0>r>>>0)t=(o>>>0)/(n>>>0)|0;pe[p>>2]=t;p=1;ve=m;return p|0}function ot(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;c=ve;ve=ve+592|0;u=c+48|0;o=c+24|0;i=c;s=c+72|0;a=c+68|0;if(e&7){pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1494;br(s,1100,i)|0;_r(s,c+16|0)|0;u=0;ve=c;return u|0}if(t>>>0>2147418112){pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1387;br(s,1100,o)|0;_r(s,c+40|0)|0;u=0;ve=c;return u|0}pe[a>>2]=t;n=Dn[pe[104>>2]&1](e,t,a,n,pe[27]|0)|0;if(r)pe[r>>2]=pe[a>>2];if(!(n&7)){u=n;ve=c;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;br(s,1100,u)|0;_r(s,c+64|0)|0;u=n;ve=c;return u|0}function at(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0;u=ve;ve=ve+592|0;a=u+48|0;s=u+24|0;r=u;o=u+72|0;i=u+68|0;n=e+3&-4;n=(n|0)!=0?n:4;if(n>>>0>2147418112){pe[r>>2]=1154;pe[r+4>>2]=2499;pe[r+8>>2]=1387;br(o,1100,r)|0;_r(o,u+16|0)|0;s=0;ve=u;return s|0}pe[i>>2]=n;r=Dn[pe[104>>2]&1](0,n,i,1,pe[27]|0)|0;e=pe[i>>2]|0;if(t)pe[t>>2]=e;if((r|0)==0|e>>>0<n>>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;br(o,1100,s)|0;_r(o,u+40|0)|0;s=0;ve=u;return s|0}if(!(r&7)){s=r;ve=u;return s|0}pe[a>>2]=1154;pe[a+4>>2]=2526;pe[a+8>>2]=1440;br(o,1100,a)|0;_r(o,u+64|0)|0;s=r;ve=u;return s|0}function st(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0;F=ve;ve=ve+960|0;L=F+232|0;D=F+216|0;I=F+208|0;R=F+192|0;O=F+184|0;A=F+168|0;k=F+160|0;C=F+144|0;M=F+136|0;S=F+120|0;T=F+112|0;w=F+96|0;_=F+88|0;y=F+72|0;v=F+64|0;g=F+48|0;f=F+40|0;d=F+24|0;h=F+16|0;l=F;E=F+440|0;N=F+376|0;j=F+304|0;m=F+236|0;if((t|0)==0|n>>>0>11){e=0;ve=F;return e|0}pe[e>>2]=t;i=j;o=i+68|0;do{pe[i>>2]=0;i=i+4|0}while((i|0)<(o|0));o=0;do{i=de[r+o>>0]|0;if(i<<24>>24){P=j+((i&255)<<2)|0;pe[P>>2]=(pe[P>>2]|0)+1}o=o+1|0}while((o|0)!=(t|0));o=0;c=1;a=0;s=-1;u=0;while(1){i=pe[j+(c<<2)>>2]|0;if(!i)pe[e+28+(c+-1<<2)>>2]=0;else{P=c+-1|0;pe[N+(P<<2)>>2]=o;o=i+o|0;x=16-c|0;pe[e+28+(P<<2)>>2]=(o+-1<<x|(1<<x)+-1)+1;pe[e+96+(P<<2)>>2]=u;pe[m+(c<<2)>>2]=u;a=a>>>0>c>>>0?a:c;s=s>>>0<c>>>0?s:c;u=i+u|0}c=c+1|0;if((c|0)==17){P=a;break}else o=o<<1}pe[e+4>>2]=u;o=e+172|0;do{if(u>>>0>(pe[o>>2]|0)>>>0){pe[o>>2]=u;if(u){i=u+-1|0;if(i&u)p=14}else{i=-1;p=14}if((p|0)==14){x=i>>>16|i;x=x>>>8|x;x=x>>>4|x;x=x>>>2|x;x=(x>>>1|x)+1|0;pe[o>>2]=x>>>0>t>>>0?t:x}a=e+176|0;i=pe[a>>2]|0;do{if(i){x=pe[i+-4>>2]|0;i=i+-8|0;if(!((x|0)!=0?(x|0)==(~pe[i>>2]|0):0)){pe[l>>2]=1154;pe[l+4>>2]=644;pe[l+8>>2]=1863;br(E,1100,l)|0;_r(E,h)|0}if(!(i&7)){Dn[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;break}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;br(E,1100,d)|0;_r(E,f)|0;break}}}while(0);o=pe[o>>2]|0;o=(o|0)!=0?o:1;i=at((o<<1)+8|0,0)|0;if(!i){pe[a>>2]=0;i=0;break}else{pe[i+4>>2]=o;pe[i>>2]=~o;pe[a>>2]=i+8;p=25;break}}else p=25}while(0);e:do{if((p|0)==25){x=e+24|0;de[x>>0]=s;de[e+25>>0]=P;o=e+176|0;a=0;do{b=de[r+a>>0]|0;i=b&255;if(b<<24>>24){if(!(pe[j+(i<<2)>>2]|0)){pe[g>>2]=1154;pe[g+4>>2]=2273;pe[g+8>>2]=1261;br(E,1100,g)|0;_r(E,v)|0}b=m+(i<<2)|0;i=pe[b>>2]|0;pe[b>>2]=i+1;if(i>>>0>=u>>>0){pe[y>>2]=1154;pe[y+4>>2]=2277;pe[y+8>>2]=1274;br(E,1100,y)|0;_r(E,_)|0}$[(pe[o>>2]|0)+(i<<1)>>1]=a}a=a+1|0}while((a|0)!=(t|0));i=de[x>>0]|0;_=(i&255)>>>0<n>>>0?n:0;b=e+8|0;pe[b>>2]=_;y=(_|0)!=0;if(y){v=1<<_;i=e+164|0;do{if(v>>>0>(pe[i>>2]|0)>>>0){pe[i>>2]=v;a=e+168|0;i=pe[a>>2]|0;do{if(i){g=pe[i+-4>>2]|0;i=i+-8|0;if(!((g|0)!=0?(g|0)==(~pe[i>>2]|0):0)){pe[w>>2]=1154;pe[w+4>>2]=644;pe[w+8>>2]=1863;br(E,1100,w)|0;_r(E,T)|0}if(!(i&7)){Dn[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;break}else{pe[S>>2]=1154;pe[S+4>>2]=2499;pe[S+8>>2]=1516;br(E,1100,S)|0;_r(E,M)|0;break}}}while(0);i=v<<2;o=at(i+8|0,0)|0;if(!o){pe[a>>2]=0;i=0;break e}else{M=o+8|0;pe[o+4>>2]=v;pe[o>>2]=~v;pe[a>>2]=M;o=M;break}}else{o=e+168|0;i=v<<2;a=o;o=pe[o>>2]|0}}while(0);Vr(o|0,-1,i|0)|0;p=e+176|0;g=1;do{if(pe[j+(g<<2)>>2]|0){t=_-g|0;m=1<<t;o=g+-1|0;s=pe[N+(o<<2)>>2]|0;if(o>>>0>=16){pe[C>>2]=1154;pe[C+4>>2]=1953;pe[C+8>>2]=1737;br(E,1100,C)|0;_r(E,k)|0}i=pe[e+28+(o<<2)>>2]|0;if(!i)d=-1;else d=(i+-1|0)>>>(16-g|0);if(s>>>0<=d>>>0){f=(pe[e+96+(o<<2)>>2]|0)-s|0;h=g<<16;do{i=ge[(pe[p>>2]|0)+(f+s<<1)>>1]|0;if((me[r+i>>0]|0|0)!=(g|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;br(E,1100,A)|0;_r(E,O)|0}l=s<<t;o=i|h;c=0;do{u=c+l|0;if(u>>>0>=v>>>0){pe[R>>2]=1154;pe[R+4>>2]=2325;pe[R+8>>2]=1337;br(E,1100,R)|0;_r(E,I)|0}i=pe[a>>2]|0;if((pe[i+(u<<2)>>2]|0)!=-1){pe[D>>2]=1154;pe[D+4>>2]=2327;pe[D+8>>2]=1360;br(E,1100,D)|0;_r(E,L)|0;i=pe[a>>2]|0}pe[i+(u<<2)>>2]=o;c=c+1|0}while(c>>>0<m>>>0);s=s+1|0}while(s>>>0<=d>>>0)}}g=g+1|0}while(_>>>0>=g>>>0);i=de[x>>0]|0}o=e+96|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N>>2]|0);o=e+100|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+4>>2]|0);o=e+104|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+8>>2]|0);o=e+108|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+12>>2]|0);o=e+112|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+16>>2]|0);o=e+116|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+20>>2]|0);o=e+120|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+24>>2]|0);o=e+124|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+28>>2]|0);o=e+128|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+32>>2]|0);o=e+132|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+36>>2]|0);o=e+136|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+40>>2]|0);o=e+140|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+44>>2]|0);o=e+144|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+48>>2]|0);o=e+148|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+52>>2]|0);o=e+152|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+56>>2]|0);o=e+156|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+60>>2]|0);o=e+16|0;pe[o>>2]=0;a=e+20|0;pe[a>>2]=i&255;t:do{if(y){while(1){if(!n)break t;i=n+-1|0;if(!(pe[j+(n<<2)>>2]|0))n=i;else break}pe[o>>2]=pe[e+28+(i<<2)>>2];i=_+1|0;pe[a>>2]=i;if(i>>>0<=P>>>0){while(1){if(pe[j+(i<<2)>>2]|0)break;i=i+1|0;if(i>>>0>P>>>0)break t}pe[a>>2]=i}}}while(0);pe[e+92>>2]=-1;pe[e+160>>2]=1048575;pe[e+12>>2]=32-(pe[b>>2]|0);i=1}}while(0);e=i;ve=F;return e|0}function ut(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0;if(!e){i=zr(t)|0;if(!r){r=i;return r|0}if(!i)o=0;else o=qr(i)|0;pe[r>>2]=o;r=i;return r|0}if(!t){Ur(e);if(!r){r=0;return r|0}pe[r>>2]=0;r=0;return r|0}i=Xr(e,t)|0;o=(i|0)!=0;if(o|n^1)o=o?i:e;else{i=Xr(e,t)|0;o=(i|0)==0?e:i}if(!r){r=i;return r|0}t=qr(o)|0;pe[r>>2]=t;r=i;return r|0}function ct(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(!((e|0)!=0&t>>>0>73&(r|0)!=0)){r=0;return r|0}if((pe[r>>2]|0)!=40|t>>>0<74){r=0;return r|0}if(((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);pe[r+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);pe[r+12>>2]=me[e+16>>0];pe[r+16>>2]=me[e+17>>0];t=e+18|0;n=r+32|0;pe[n>>2]=me[t>>0];pe[n+4>>2]=0;t=de[t>>0]|0;pe[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;pe[r+24>>2]=(me[e+26>>0]|0)<<16|(me[e+25>>0]|0)<<24|(me[e+27>>0]|0)<<8|(me[e+28>>0]|0);pe[r+28>>2]=(me[e+30>>0]|0)<<16|(me[e+29>>0]|0)<<24|(me[e+31>>0]|0)<<8|(me[e+32>>0]|0);r=1;return r|0}function lt(e){e=e|0;Oe(e|0)|0;Ut()}function ft(e){e=e|0;var t=0,r=0,n=0,i=0,o=0;o=ve;ve=ve+544|0;i=o;n=o+24|0;t=pe[e+20>>2]|0;if(t)ht(t);t=e+4|0;r=pe[t>>2]|0;if(!r){i=e+16|0;de[i>>0]=0;ve=o;return}if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;br(n,1100,i)|0;_r(n,o+16|0)|0}pe[t>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;i=e+16|0;de[i>>0]=0;ve=o;return}function ht(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;d=ve;ve=ve+640|0;h=d+112|0;f=d+96|0;l=d+88|0;c=d+72|0;u=d+64|0;s=d+48|0;n=d+40|0;o=d+24|0;i=d+16|0;r=d;a=d+120|0;if(!e){ve=d;return}t=pe[e+168>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[r>>2]=1154;pe[r+4>>2]=644;pe[r+8>>2]=1863;br(a,1100,r)|0;_r(a,i)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1516;br(a,1100,o)|0;_r(a,n)|0;break}}}while(0);t=pe[e+176>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[s>>2]=1154;pe[s+4>>2]=644;pe[s+8>>2]=1863;br(a,1100,s)|0;_r(a,u)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;br(a,1100,c)|0;_r(a,l)|0;break}}}while(0);if(!(e&7)){Dn[pe[104>>2]&1](e,0,0,1,pe[27]|0)|0;ve=d;return}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(a,1100,f)|0;_r(a,h)|0;ve=d;return}}function dt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+560|0;a=l+40|0;s=l+24|0;t=l;o=l+48|0;i=e+8|0;r=pe[i>>2]|0;if((r+-1|0)>>>0>=8192){pe[t>>2]=1154;pe[t+4>>2]=2997;pe[t+8>>2]=1541;br(o,1100,t)|0;_r(o,l+16|0)|0}pe[e>>2]=r;n=e+20|0;t=pe[n>>2]|0;if(!t){t=at(180,0)|0;if(!t)t=0;else{c=t+164|0;pe[c>>2]=0;pe[c+4>>2]=0;pe[c+8>>2]=0;pe[c+12>>2]=0}pe[n>>2]=t;c=t;u=pe[e>>2]|0}else{c=t;u=r}if(!(pe[i>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(o,1100,s)|0;_r(o,a)|0;o=pe[e>>2]|0}else o=u;i=pe[e+4>>2]|0;if(o>>>0>16){r=o;t=0}else{e=0;c=st(c,u,i,e)|0;ve=l;return c|0}while(1){n=t+1|0;if(r>>>0>3){r=r>>>1;t=n}else{r=n;break}}e=t+2+((r|0)!=32&1<<r>>>0<o>>>0&1)|0;e=e>>>0<11?e&255:11;c=st(c,u,i,e)|0;ve=l;return c|0}function pt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0;L=ve;ve=ve+800|0;A=L+256|0;k=L+240|0;C=L+232|0;E=L+216|0;P=L+208|0;M=L+192|0;S=L+184|0;T=L+168|0;w=L+160|0;x=L+144|0;b=L+136|0;_=L+120|0;y=L+112|0;v=L+96|0;g=L+88|0;m=L+72|0;f=L+64|0;l=L+48|0;s=L+40|0;u=L+24|0;o=L+16|0;i=L;I=L+288|0;D=L+264|0;O=mt(e,14)|0;if(!O){pe[t>>2]=0;r=t+4|0;n=pe[r>>2]|0;if(n){if(!(n&7))Dn[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;br(I,1100,i)|0;_r(I,o)|0}pe[r>>2]=0;pe[t+8>>2]=0;pe[t+12>>2]=0}de[t+16>>0]=0;r=t+20|0;n=pe[r>>2]|0;if(!n){t=1;ve=L;return t|0}ht(n);pe[r>>2]=0;t=1;ve=L;return t|0}d=t+4|0;p=t+8|0;r=pe[p>>2]|0;if((r|0)!=(O|0)){if(r>>>0<=O>>>0){do{if((pe[t+12>>2]|0)>>>0<O>>>0){if(it(d,O,(r+1|0)==(O|0),1,0)|0){r=pe[p>>2]|0;break}de[t+16>>0]=1;t=0;ve=L;return t|0}}while(0);Vr((pe[d>>2]|0)+r|0,0,O-r|0)|0}pe[p>>2]=O}Vr(pe[d>>2]|0,0,O|0)|0;h=e+20|0;r=pe[h>>2]|0;if((r|0)<5){o=e+4|0;a=e+8|0;i=e+16|0;do{n=pe[o>>2]|0;if((n|0)==(pe[a>>2]|0))n=0;else{pe[o>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;br(I,1100,u)|0;_r(I,s)|0;r=pe[h>>2]|0}n=n<<32-r|pe[i>>2];pe[i>>2]=n}while((r|0)<5)}else{n=e+16|0;i=n;n=pe[n>>2]|0}c=n>>>27;pe[i>>2]=n<<5;pe[h>>2]=r+-5;if((c+-1|0)>>>0>20){t=0;ve=L;return t|0}pe[D+20>>2]=0;pe[D>>2]=0;pe[D+4>>2]=0;pe[D+8>>2]=0;pe[D+12>>2]=0;de[D+16>>0]=0;r=D+4|0;n=D+8|0;e:do{if(it(r,21,0,1,0)|0){s=pe[n>>2]|0;u=pe[r>>2]|0;Vr(u+s|0,0,21-s|0)|0;pe[n>>2]=21;if(c){i=e+4|0;o=e+8|0;a=e+16|0;s=0;do{r=pe[h>>2]|0;if((r|0)<3)do{n=pe[i>>2]|0;if((n|0)==(pe[o>>2]|0))n=0;else{pe[i>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[l>>2]=1154;pe[l+4>>2]=3199;pe[l+8>>2]=1650;br(I,1100,l)|0;_r(I,f)|0;r=pe[h>>2]|0}n=n<<32-r|pe[a>>2];pe[a>>2]=n}while((r|0)<3);else n=pe[a>>2]|0;pe[a>>2]=n<<3;pe[h>>2]=r+-3;de[u+(me[1611+s>>0]|0)>>0]=n>>>29;s=s+1|0}while((s|0)!=(c|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;c=e+16|0;n=0;t:while(1){a=O-n|0;r=gt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=n>>>0){pe[m>>2]=1154;pe[m+4>>2]=903;pe[m+8>>2]=1781;br(I,1100,m)|0;_r(I,g)|0}de[(pe[d>>2]|0)+n>>0]=r;r=n+1|0}else switch(r|0){case 17:{r=pe[h>>2]|0;if((r|0)<3)do{i=pe[s>>2]|0;if((i|0)==(pe[u>>2]|0))i=0;else{pe[s>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[v>>2]=1154;pe[v+4>>2]=3199;pe[v+8>>2]=1650;br(I,1100,v)|0;_r(I,y)|0;r=pe[h>>2]|0}i=i<<32-r|pe[c>>2];pe[c>>2]=i}while((r|0)<3);else i=pe[c>>2]|0;pe[c>>2]=i<<3;pe[h>>2]=r+-3;r=(i>>>29)+3|0;if(r>>>0>a>>>0){r=0;break e}r=r+n|0;break r}case 18:{r=pe[h>>2]|0;if((r|0)<7)do{i=pe[s>>2]|0;if((i|0)==(pe[u>>2]|0))i=0;else{pe[s>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[_>>2]=1154;pe[_+4>>2]=3199;pe[_+8>>2]=1650;br(I,1100,_)|0;_r(I,b)|0;r=pe[h>>2]|0}i=i<<32-r|pe[c>>2];pe[c>>2]=i}while((r|0)<7);else i=pe[c>>2]|0;pe[c>>2]=i<<7;pe[h>>2]=r+-7;r=(i>>>25)+11|0;if(r>>>0>a>>>0){r=0;break e}r=r+n|0;break r}default:{if((r+-19|0)>>>0>=2){R=90;break t}o=pe[h>>2]|0;if((r|0)==19){if((o|0)<2){i=o;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))o=0;else{pe[s>>2]=r+1;o=me[r>>0]|0}r=i+8|0;pe[h>>2]=r;if((r|0)>=33){pe[x>>2]=1154;pe[x+4>>2]=3199;pe[x+8>>2]=1650;br(I,1100,x)|0;_r(I,w)|0;r=pe[h>>2]|0}i=o<<32-r|pe[c>>2];pe[c>>2]=i;if((r|0)<2)i=r;else break}}else{i=pe[c>>2]|0;r=o}pe[c>>2]=i<<2;pe[h>>2]=r+-2;o=(i>>>30)+3|0}else{if((o|0)<6){i=o;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))o=0;else{pe[s>>2]=r+1;o=me[r>>0]|0}r=i+8|0;pe[h>>2]=r;if((r|0)>=33){pe[T>>2]=1154;pe[T+4>>2]=3199;pe[T+8>>2]=1650;br(I,1100,T)|0;_r(I,S)|0;r=pe[h>>2]|0}i=o<<32-r|pe[c>>2];pe[c>>2]=i;if((r|0)<6)i=r;else break}}else{i=pe[c>>2]|0;r=o}pe[c>>2]=i<<6;pe[h>>2]=r+-6;o=(i>>>26)+7|0}if((n|0)==0|o>>>0>a>>>0){r=0;break e}r=n+-1|0;if((pe[p>>2]|0)>>>0<=r>>>0){pe[M>>2]=1154;pe[M+4>>2]=903;pe[M+8>>2]=1781;br(I,1100,M)|0;_r(I,P)|0}i=de[(pe[d>>2]|0)+r>>0]|0;if(!(i<<24>>24)){r=0;break e}r=o+n|0;if(n>>>0>=r>>>0){r=n;break r}do{if((pe[p>>2]|0)>>>0<=n>>>0){pe[E>>2]=1154;pe[E+4>>2]=903;pe[E+8>>2]=1781;br(I,1100,E)|0;_r(I,C)|0}de[(pe[d>>2]|0)+n>>0]=i;n=n+1|0}while((n|0)!=(r|0))}}}while(0);if(O>>>0>r>>>0)n=r;else break}if((R|0)==90){pe[k>>2]=1154;pe[k+4>>2]=3140;pe[k+8>>2]=1632;br(I,1100,k)|0;_r(I,A)|0;r=0;break}if((O|0)==(r|0))r=dt(t)|0;else r=0}else r=0}else{de[D+16>>0]=1;r=0}}while(0);ft(D);t=r;ve=L;return t|0}function mt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+544|0;s=l+16|0;a=l;o=l+24|0;if(!t){c=0;ve=l;return c|0}if(t>>>0<=16){c=vt(e,t)|0;ve=l;return c|0}u=vt(e,t+-16|0)|0;c=e+20|0;t=pe[c>>2]|0;if((t|0)<16){n=e+4|0;i=e+8|0;r=e+16|0;do{e=pe[n>>2]|0;if((e|0)==(pe[i>>2]|0))e=0;else{pe[n>>2]=e+1;e=me[e>>0]|0}t=t+8|0;pe[c>>2]=t;if((t|0)>=33){pe[a>>2]=1154;pe[a+4>>2]=3199;pe[a+8>>2]=1650;br(o,1100,a)|0;_r(o,s)|0;t=pe[c>>2]|0}e=e<<32-t|pe[r>>2];pe[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=pe[e>>2]|0}pe[r>>2]=e<<16;pe[c>>2]=t+-16;c=e>>>16|u<<16;ve=l;return c|0}function gt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0;_=ve;ve=ve+608|0;m=_+88|0;p=_+72|0;h=_+64|0;f=_+48|0;l=_+40|0;d=_+24|0;c=_+16|0;u=_;v=_+96|0;g=pe[t+20>>2]|0;y=e+20|0;s=pe[y>>2]|0;do{if((s|0)<24){a=e+4|0;n=pe[a>>2]|0;i=pe[e+8>>2]|0;r=n>>>0<i>>>0;if((s|0)>=16){if(r){pe[a>>2]=n+1;r=me[n>>0]|0}else r=0;pe[y>>2]=s+8;a=e+16|0;o=r<<24-s|pe[a>>2];pe[a>>2]=o;break}if(r){o=(me[n>>0]|0)<<8;r=n+1|0}else{o=0;r=n}if(r>>>0<i>>>0){n=me[r>>0]|0;r=r+1|0}else n=0;pe[a>>2]=r;pe[y>>2]=s+16;a=e+16|0;o=(n|o)<<16-s|pe[a>>2];pe[a>>2]=o}else{o=e+16|0;a=o;o=pe[o>>2]|0}}while(0);i=(o>>>16)+1|0;do{if(i>>>0<=(pe[g+16>>2]|0)>>>0){n=pe[(pe[g+168>>2]|0)+(o>>>(32-(pe[g+8>>2]|0)|0)<<2)>>2]|0;if((n|0)==-1){pe[u>>2]=1154;pe[u+4>>2]=3244;pe[u+8>>2]=1677;br(v,1100,u)|0;_r(v,c)|0}r=n&65535;n=n>>>16;if((pe[t+8>>2]|0)>>>0<=r>>>0){pe[d>>2]=1154;pe[d+4>>2]=902;pe[d+8>>2]=1781;br(v,1100,d)|0;_r(v,l)|0}if((me[(pe[t+4>>2]|0)+r>>0]|0|0)!=(n|0)){pe[f>>2]=1154;pe[f+4>>2]=3248;pe[f+8>>2]=1694;br(v,1100,f)|0;_r(v,h)|0}}else{n=pe[g+20>>2]|0;while(1){r=n+-1|0;if(i>>>0>(pe[g+28+(r<<2)>>2]|0)>>>0)n=n+1|0;else break}r=(o>>>(32-n|0))+(pe[g+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=ge[(pe[g+176>>2]|0)+(r<<1)>>1]|0;break}pe[p>>2]=1154;pe[p+4>>2]=3266;pe[p+8>>2]=1632;br(v,1100,p)|0;_r(v,m)|0;y=0;ve=_;return y|0}}while(0);pe[a>>2]=pe[a>>2]<<n;pe[y>>2]=(pe[y>>2]|0)-n;y=r;ve=_;return y|0}function vt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+560|0;s=l+40|0;u=l+24|0;r=l;a=l+48|0;if(t>>>0>=33){pe[r>>2]=1154;pe[r+4>>2]=3190;pe[r+8>>2]=1634;br(a,1100,r)|0;_r(a,l+16|0)|0}c=e+20|0;r=pe[c>>2]|0;if((r|0)>=(t|0)){o=e+16|0;a=o;o=pe[o>>2]|0;s=r;u=32-t|0;u=o>>>u;o=o<<t;pe[a>>2]=o;t=s-t|0;pe[c>>2]=t;ve=l;return u|0}i=e+4|0;o=e+8|0;n=e+16|0;do{e=pe[i>>2]|0;if((e|0)==(pe[o>>2]|0))e=0;else{pe[i>>2]=e+1;e=me[e>>0]|0}r=r+8|0;pe[c>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;br(a,1100,u)|0;_r(a,s)|0;r=pe[c>>2]|0}e=e<<32-r|pe[n>>2];pe[n>>2]=e}while((r|0)<(t|0));u=32-t|0;u=e>>>u;s=e<<t;pe[n>>2]=s;t=r-t|0;pe[c>>2]=t;ve=l;return u|0}function yt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0;p=ve;ve=ve+544|0;h=p+16|0;f=p;l=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}c=at(300,0)|0;if(!c){d=0;ve=p;return d|0}pe[c>>2]=519686845;r=c+4|0;pe[r>>2]=0;n=c+8|0;pe[n>>2]=0;u=c+88|0;i=c+136|0;o=c+160|0;a=u;s=a+44|0;do{pe[a>>2]=0;a=a+4|0}while((a|0)<(s|0));de[u+44>>0]=0;m=c+184|0;a=c+208|0;s=c+232|0;g=c+252|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=c+268|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=c+284|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;pe[i>>2]=0;pe[i+4>>2]=0;pe[i+8>>2]=0;pe[i+12>>2]=0;pe[i+16>>2]=0;de[i+20>>0]=0;pe[o>>2]=0;pe[o+4>>2]=0;pe[o+8>>2]=0;pe[o+12>>2]=0;pe[o+16>>2]=0;de[o+20>>0]=0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;pe[m+12>>2]=0;pe[m+16>>2]=0;de[m+20>>0]=0;pe[a>>2]=0;pe[a+4>>2]=0;pe[a+8>>2]=0;pe[a+12>>2]=0;pe[a+16>>2]=0;de[a+20>>0]=0;pe[s>>2]=0;pe[s+4>>2]=0;pe[s+8>>2]=0;pe[s+12>>2]=0;de[s+16>>0]=0;do{if(((t>>>0>=74?((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)==18552:0)?((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0>=74:0)?((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[n>>2]=t;if(Et(c)|0){r=pe[u>>2]|0;if((me[r+39>>0]|0)<<8|(me[r+40>>0]|0)){if(!(Ct(c)|0))break;if(!(kt(c)|0))break;r=pe[u>>2]|0}if(!((me[r+55>>0]|0)<<8|(me[r+56>>0]|0))){g=c;ve=p;return g|0}if(At(c)|0?Ot(c)|0:0){g=c;ve=p;return g|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Nt(c);if(!(c&7)){Dn[pe[104>>2]&1](c,0,0,1,pe[27]|0)|0;g=0;ve=p;return g|0}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(l,1100,f)|0;_r(l,h)|0;g=0;ve=p;return g|0}return 0}function _t(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+544|0;c=l;u=l+24|0;o=pe[e+88>>2]|0;s=(me[o+70+(i<<2)+1>>0]|0)<<16|(me[o+70+(i<<2)>>0]|0)<<24|(me[o+70+(i<<2)+2>>0]|0)<<8|(me[o+70+(i<<2)+3>>0]|0);a=i+1|0;if(a>>>0<(me[o+16>>0]|0)>>>0)o=(me[o+70+(a<<2)+1>>0]|0)<<16|(me[o+70+(a<<2)>>0]|0)<<24|(me[o+70+(a<<2)+2>>0]|0)<<8|(me[o+70+(a<<2)+3>>0]|0);else o=pe[e+8>>2]|0;if(o>>>0>s>>>0){u=e+4|0;u=pe[u>>2]|0;u=u+s|0;c=o-s|0;c=bt(e,u,c,t,r,n,i)|0;ve=l;return c|0}pe[c>>2]=1154;pe[c+4>>2]=3704;pe[c+8>>2]=1792;br(u,1100,c)|0;_r(u,l+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;c=o-s|0;c=bt(e,u,c,t,r,n,i)|0;ve=l;return c|0}function bt(e,t,r,n,i,o,a){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;var s=0,u=0,c=0,l=0;l=pe[e+88>>2]|0;u=((me[l+12>>0]|0)<<8|(me[l+13>>0]|0))>>>a;c=((me[l+14>>0]|0)<<8|(me[l+15>>0]|0))>>>a;u=u>>>0>1?(u+3|0)>>>2:1;c=c>>>0>1?(c+3|0)>>>2:1;l=l+18|0;a=de[l>>0]|0;a=ye(a<<24>>24==0|a<<24>>24==9?8:16,u)|0;if(o)if((o&3|0)==0&a>>>0<=o>>>0)a=o;else{e=0;return e|0}if((ye(a,c)|0)>>>0>i>>>0){e=0;return e|0}o=(u+1|0)>>>1;s=(c+1|0)>>>1;if(!r){e=0;return e|0}pe[e+92>>2]=t;pe[e+96>>2]=t;pe[e+104>>2]=r;pe[e+100>>2]=t+r;pe[e+108>>2]=0;pe[e+112>>2]=0;switch(me[l>>0]|0|0){case 0:{Rt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{It(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 9:{Dt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 8:case 7:{Lt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function xt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+4>>2]|0}function wt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+8>>2]|0}function Tt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+12>>2]|0}function St(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+32>>2]|0}function Mt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0;u=ve;ve=ve+576|0;a=u+56|0;o=u+40|0;i=u+64|0;c=u;pe[c>>2]=40;ct(e,t,c)|0;n=(((pe[c+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[c+8>>2]|0)>>>r)+3|0)>>>2;r=c+32|0;e=pe[r+4>>2]|0;do{switch(pe[r>>2]|0){case 0:{if(!e)e=8;else s=13;break}case 1:{if(!e)s=12;else s=13;break}case 2:{if(!e)s=12;else s=13;break}case 3:{if(!e)s=12;else s=13;break}case 4:{if(!e)s=12;else s=13;break}case 5:{if(!e)s=12;else s=13;break}case 6:{if(!e)s=12;else s=13;break}case 7:{if(!e)s=12;else s=13;break}case 8:{if(!e)s=12;else s=13;break}case 9:{if(!e)e=8;else s=13;break}default:s=13}}while(0);if((s|0)==12)e=16;else if((s|0)==13){pe[o>>2]=1154;pe[o+4>>2]=2663;pe[o+8>>2]=1535;br(i,1100,o)|0;_r(i,a)|0;e=0}c=ye(ye(t,n)|0,e)|0;ve=u;return c|0}function Pt(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;p=ve;ve=ve+608|0;h=p+80|0;d=p+64|0;s=p+56|0;a=p+40|0;l=p+88|0;m=p;f=p+84|0;pe[m>>2]=40;ct(e,t,m)|0;u=(((pe[m+4>>2]|0)>>>i)+3|0)>>>2;m=m+32|0;o=pe[m+4>>2]|0;do{switch(pe[m>>2]|0){case 0:{if(!o)o=8;else c=13;break}case 1:{if(!o)c=12;else c=13;break}case 2:{if(!o)c=12;else c=13;break}case 3:{if(!o)c=12;else c=13;break}case 4:{if(!o)c=12;else c=13;break}case 5:{if(!o)c=12;else c=13;break}case 6:{if(!o)c=12;else c=13;break}case 7:{if(!o)c=12;else c=13;break}case 8:{if(!o)c=12;else c=13;break}case 9:{if(!o)o=8;else c=13;break}default:c=13}}while(0);if((c|0)==12)o=16;else if((c|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;br(l,1100,a)|0;_r(l,s)|0;o=0}s=ye(o,u)|0;a=yt(e,t)|0;pe[f>>2]=r;o=(a|0)==0;if(!(i>>>0>15|(n>>>0<8|o))?(pe[a>>2]|0)==519686845:0)_t(a,f,n,s,i)|0;if(o){ve=p;return}if((pe[a>>2]|0)!=519686845){ve=p;return}Nt(a);if(!(a&7)){Dn[pe[104>>2]&1](a,0,0,1,pe[27]|0)|0;ve=p;return}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;br(l,1100,d)|0;_r(l,h)|0;ve=p;return}}function Et(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0;a=e+92|0;n=pe[e+4>>2]|0;o=e+88|0;i=pe[o>>2]|0;t=(me[i+68>>0]|0)<<8|(me[i+67>>0]|0)<<16|(me[i+69>>0]|0);r=n+t|0;i=(me[i+65>>0]|0)<<8|(me[i+66>>0]|0);if(!i){e=0;return e|0}pe[a>>2]=r;pe[e+96>>2]=r;pe[e+104>>2]=i;pe[e+100>>2]=n+(i+t);pe[e+108>>2]=0;pe[e+112>>2]=0;if(!(pt(a,e+116|0)|0)){e=0;return e|0}t=pe[o>>2]|0;do{if(!((me[t+39>>0]|0)<<8|(me[t+40>>0]|0))){if(!((me[t+55>>0]|0)<<8|(me[t+56>>0]|0))){e=0;return e|0}}else{if(!(pt(a,e+140|0)|0)){e=0;return e|0}if(pt(a,e+188|0)|0){t=pe[o>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(pt(a,e+164|0)|0)){e=0;return e|0}if(!(pt(a,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function Ct(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+592|0;u=p+16|0;s=p;a=p+72|0;d=p+24|0;n=e+88|0;t=pe[n>>2]|0;h=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);l=e+236|0;o=e+240|0;r=pe[o>>2]|0;if((r|0)!=(h|0)){if(r>>>0<=h>>>0){do{if((pe[e+244>>2]|0)>>>0<h>>>0){if(it(l,h,(r+1|0)==(h|0),4,0)|0){t=pe[o>>2]|0;break}de[e+248>>0]=1;d=0;ve=p;return d|0}else t=r}while(0);Vr((pe[l>>2]|0)+(t<<2)|0,0,h-t<<2|0)|0;t=pe[n>>2]|0}pe[o>>2]=h}c=e+92|0;r=pe[e+4>>2]|0;n=(me[t+34>>0]|0)<<8|(me[t+33>>0]|0)<<16|(me[t+35>>0]|0);i=r+n|0;t=(me[t+37>>0]|0)<<8|(me[t+36>>0]|0)<<16|(me[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[c>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=t;pe[e+100>>2]=r+(t+n);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[d+20>>2]=0;pe[d>>2]=0;pe[d+4>>2]=0;pe[d+8>>2]=0;pe[d+12>>2]=0;de[d+16>>0]=0;e=d+24|0;pe[d+44>>2]=0;pe[e>>2]=0;pe[e+4>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;de[e+16>>0]=0;if(pt(c,d)|0?(f=d+24|0,pt(c,f)|0):0){if(!(pe[o>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;_r(a,u)|0}if(!h)t=1;else{n=0;i=0;o=0;t=0;a=0;e=0;s=0;r=pe[l>>2]|0;while(1){n=(gt(c,d)|0)+n&31;i=(gt(c,f)|0)+i&63;o=(gt(c,d)|0)+o&31;t=(gt(c,d)|0)+t|0;a=(gt(c,f)|0)+a&63;e=(gt(c,d)|0)+e&31;pe[r>>2]=i<<5|n<<11|o|t<<27|a<<21|e<<16;s=s+1|0;if((s|0)==(h|0)){t=1;break}else{t=t&31;r=r+4|0}}}}else t=0;ft(d+24|0);ft(d);d=t;ve=p;return d|0}function kt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0;M=ve;ve=ve+1024|0;s=M+16|0;a=M;o=M+504|0;S=M+480|0;w=M+284|0;T=M+88|0;x=M+24|0;i=pe[e+88>>2]|0;b=(me[i+47>>0]|0)<<8|(me[i+48>>0]|0);_=e+92|0;t=pe[e+4>>2]|0;r=(me[i+42>>0]|0)<<8|(me[i+41>>0]|0)<<16|(me[i+43>>0]|0);n=t+r|0;i=(me[i+45>>0]|0)<<8|(me[i+44>>0]|0)<<16|(me[i+46>>0]|0);if(!i){S=0;ve=M;return S|0}pe[_>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[S+20>>2]=0;pe[S>>2]=0;pe[S+4>>2]=0;pe[S+8>>2]=0;pe[S+12>>2]=0;de[S+16>>0]=0;if(pt(_,S)|0){r=0;n=-3;i=-3;while(1){pe[w+(r<<2)>>2]=n;pe[T+(r<<2)>>2]=i;t=(n|0)>2;r=r+1|0;if((r|0)==49)break;else{n=t?-3:n+1|0;i=(t&1)+i|0}}t=x;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));y=e+252|0;r=e+256|0;t=pe[r>>2]|0;e:do{if((t|0)==(b|0))u=13;else{if(t>>>0<=b>>>0){do{if((pe[e+260>>2]|0)>>>0<b>>>0)if(it(y,b,(t+1|0)==(b|0),4,0)|0){t=pe[r>>2]|0;break}else{de[e+264>>0]=1;t=0;break e}}while(0);Vr((pe[y>>2]|0)+(t<<2)|0,0,b-t<<2|0)|0}pe[r>>2]=b;u=13}}while(0);do{if((u|0)==13){if(!b){pe[a>>2]=1154;pe[a+4>>2]=903;pe[a+8>>2]=1781;br(o,1100,a)|0;_r(o,s)|0;t=1;break}n=x+4|0;i=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;u=x+28|0;c=x+32|0;l=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;m=x+56|0;g=x+60|0;v=0;r=pe[y>>2]|0;while(1){t=0;do{P=gt(_,S)|0;y=t<<1;E=x+(y<<2)|0;pe[E>>2]=(pe[E>>2]|0)+(pe[w+(P<<2)>>2]|0)&3;y=x+((y|1)<<2)|0;pe[y>>2]=(pe[y>>2]|0)+(pe[T+(P<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(me[1725+(pe[n>>2]|0)>>0]|0)<<2|(me[1725+(pe[x>>2]|0)>>0]|0)|(me[1725+(pe[i>>2]|0)>>0]|0)<<4|(me[1725+(pe[e>>2]|0)>>0]|0)<<6|(me[1725+(pe[o>>2]|0)>>0]|0)<<8|(me[1725+(pe[a>>2]|0)>>0]|0)<<10|(me[1725+(pe[s>>2]|0)>>0]|0)<<12|(me[1725+(pe[u>>2]|0)>>0]|0)<<14|(me[1725+(pe[c>>2]|0)>>0]|0)<<16|(me[1725+(pe[l>>2]|0)>>0]|0)<<18|(me[1725+(pe[f>>2]|0)>>0]|0)<<20|(me[1725+(pe[h>>2]|0)>>0]|0)<<22|(me[1725+(pe[d>>2]|0)>>0]|0)<<24|(me[1725+(pe[p>>2]|0)>>0]|0)<<26|(me[1725+(pe[m>>2]|0)>>0]|0)<<28|(me[1725+(pe[g>>2]|0)>>0]|0)<<30;v=v+1|0;if((v|0)==(b|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;ft(S);E=t;ve=M;return E|0}function At(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0;h=ve;ve=ve+560|0;u=h+16|0;s=h;a=h+48|0;f=h+24|0;i=pe[e+88>>2]|0;l=(me[i+55>>0]|0)<<8|(me[i+56>>0]|0);c=e+92|0;t=pe[e+4>>2]|0;r=(me[i+50>>0]|0)<<8|(me[i+49>>0]|0)<<16|(me[i+51>>0]|0);n=t+r|0;i=(me[i+53>>0]|0)<<8|(me[i+52>>0]|0)<<16|(me[i+54>>0]|0);if(!i){f=0;ve=h;return f|0}pe[c>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[f+20>>2]=0;pe[f>>2]=0;pe[f+4>>2]=0;pe[f+8>>2]=0;pe[f+12>>2]=0;de[f+16>>0]=0;e:do{if(pt(c,f)|0){o=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(l|0)){if(t>>>0<=l>>>0){do{if((pe[e+276>>2]|0)>>>0<l>>>0)if(it(o,l,(t+1|0)==(l|0),2,0)|0){t=pe[r>>2]|0;break}else{de[e+280>>0]=1;t=0;break e}}while(0);Vr((pe[o>>2]|0)+(t<<1)|0,0,l-t<<1|0)|0}pe[r>>2]=l}if(!l){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;_r(a,u)|0;t=1;break}r=0;n=0;i=0;t=pe[o>>2]|0;while(1){u=gt(c,f)|0;r=u+r&255;n=(gt(c,f)|0)+n&255;$[t>>1]=n<<8|r;i=i+1|0;if((i|0)==(l|0)){t=1;break}else t=t+2|0}}else t=0}while(0);ft(f);f=t;ve=h;return f|0}function Ot(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0;M=ve;ve=ve+2432|0;s=M+16|0;a=M;o=M+1912|0;S=M+1888|0;w=M+988|0;T=M+88|0;x=M+24|0;i=pe[e+88>>2]|0;b=(me[i+63>>0]|0)<<8|(me[i+64>>0]|0);_=e+92|0;t=pe[e+4>>2]|0;r=(me[i+58>>0]|0)<<8|(me[i+57>>0]|0)<<16|(me[i+59>>0]|0);n=t+r|0;i=(me[i+61>>0]|0)<<8|(me[i+60>>0]|0)<<16|(me[i+62>>0]|0);if(!i){S=0;ve=M;return S|0}pe[_>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[S+20>>2]=0;pe[S>>2]=0;pe[S+4>>2]=0;pe[S+8>>2]=0;pe[S+12>>2]=0;de[S+16>>0]=0;if(pt(_,S)|0){r=0;n=-7;i=-7;while(1){pe[w+(r<<2)>>2]=n;pe[T+(r<<2)>>2]=i;t=(n|0)>6;r=r+1|0;if((r|0)==225)break;else{n=t?-7:n+1|0;i=(t&1)+i|0}}t=x;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));y=e+284|0;r=b*3|0;n=e+288|0;t=pe[n>>2]|0;e:do{if((t|0)==(r|0))u=13;else{if(t>>>0<=r>>>0){do{if((pe[e+292>>2]|0)>>>0<r>>>0)if(it(y,r,(t+1|0)==(r|0),2,0)|0){t=pe[n>>2]|0;break}else{de[e+296>>0]=1;t=0;break e}}while(0);Vr((pe[y>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}pe[n>>2]=r;u=13}}while(0);do{if((u|0)==13){if(!b){pe[a>>2]=1154;pe[a+4>>2]=903;pe[a+8>>2]=1781;br(o,1100,a)|0;_r(o,s)|0;t=1;break}n=x+4|0;i=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;u=x+28|0;c=x+32|0;l=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;m=x+56|0;g=x+60|0;v=0;r=pe[y>>2]|0;while(1){t=0;do{P=gt(_,S)|0;y=t<<1;E=x+(y<<2)|0;pe[E>>2]=(pe[E>>2]|0)+(pe[w+(P<<2)>>2]|0)&7;y=x+((y|1)<<2)|0;pe[y>>2]=(pe[y>>2]|0)+(pe[T+(P<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);P=me[1729+(pe[a>>2]|0)>>0]|0;$[r>>1]=(me[1729+(pe[n>>2]|0)>>0]|0)<<3|(me[1729+(pe[x>>2]|0)>>0]|0)|(me[1729+(pe[i>>2]|0)>>0]|0)<<6|(me[1729+(pe[e>>2]|0)>>0]|0)<<9|(me[1729+(pe[o>>2]|0)>>0]|0)<<12|P<<15;E=me[1729+(pe[f>>2]|0)>>0]|0;$[r+2>>1]=(me[1729+(pe[s>>2]|0)>>0]|0)<<2|P>>>1|(me[1729+(pe[u>>2]|0)>>0]|0)<<5|(me[1729+(pe[c>>2]|0)>>0]|0)<<8|(me[1729+(pe[l>>2]|0)>>0]|0)<<11|E<<14;$[r+4>>1]=(me[1729+(pe[h>>2]|0)>>0]|0)<<1|E>>>2|(me[1729+(pe[d>>2]|0)>>0]|0)<<4|(me[1729+(pe[p>>2]|0)>>0]|0)<<7|(me[1729+(pe[m>>2]|0)>>0]|0)<<10|(me[1729+(pe[g>>2]|0)>>0]|0)<<13;v=v+1|0;if((v|0)==(b|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;ft(S);E=t;ve=M;return E|0}function Rt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,ce=0,le=0,fe=0,he=0;le=ve;ve=ve+720|0;ce=le+184|0;se=le+168|0;ae=le+160|0;oe=le+144|0;ie=le+136|0;ne=le+120|0;re=le+112|0;ee=le+96|0;$=le+88|0;Q=le+72|0;Z=le+64|0;J=le+48|0;K=le+40|0;ue=le+24|0;te=le+16|0;V=le;G=le+208|0;W=le+192|0;B=e+240|0;z=pe[B>>2]|0;q=e+256|0;H=pe[q>>2]|0;r=de[(pe[e+88>>2]|0)+17>>0]|0;Y=n>>>2;if(!(r<<24>>24)){ve=le;return 1}U=(s|0)==0;X=s+-1|0;R=(o&1|0)!=0;I=n<<1;D=e+92|0;L=e+116|0;N=e+140|0;j=e+236|0;F=a+-1|0;O=(i&1|0)!=0;A=e+188|0;M=e+252|0;P=Y+1|0;E=Y+2|0;C=Y+3|0;k=F<<4;T=r&255;r=0;o=0;i=1;S=0;do{if(!U){x=pe[t+(S<<2)>>2]|0;w=0;while(1){y=w&1;u=(y|0)==0;v=(y<<5^32)+-16|0;y=(y<<1^2)+-1|0;b=u?a:-1;c=u?0:F;e=(w|0)==(X|0);_=R&e;if((c|0)!=(b|0)){g=R&e^1;m=u?x:x+k|0;while(1){if((i|0)==1)i=gt(D,L)|0|512;p=i&7;i=i>>>3;u=me[1823+p>>0]|0;e=0;do{h=(gt(D,N)|0)+o|0;d=h-z|0;o=d>>31;o=o&h|d&~o;if((pe[B>>2]|0)>>>0<=o>>>0){pe[V>>2]=1154;pe[V+4>>2]=903;pe[V+8>>2]=1781;br(G,1100,V)|0;_r(G,te)|0}pe[W+(e<<2)>>2]=pe[(pe[j>>2]|0)+(o<<2)>>2];e=e+1|0}while(e>>>0<u>>>0);d=O&(c|0)==(F|0);if(_|d){h=0;do{l=ye(h,n)|0;e=m+l|0;u=(h|0)==0|g;f=h<<1;he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;do{if(d){if(!u){fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((me[1831+(p<<2)+f>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(G,1100,oe)|0;_r(G,ae)|0}pe[m+(l+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r}else{if(!u){fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((me[1831+(p<<2)+f>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(G,1100,ne)|0;_r(G,ie)|0}pe[m+(l+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;pe[m+(l+8)>>2]=pe[W+((me[(f|1)+(1831+(p<<2))>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;br(G,1100,se)|0;_r(G,ce)|0}pe[m+(l+12)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}}while(0);h=h+1|0}while((h|0)!=2)}else{pe[m>>2]=pe[W+((me[1831+(p<<2)>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ue>>2]=1154;pe[ue+4>>2]=903;pe[ue+8>>2]=1781;br(G,1100,ue)|0;_r(G,K)|0}pe[m+4>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+8>>2]=pe[W+((me[1831+(p<<2)+1>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[J>>2]=1154;pe[J+4>>2]=903;pe[J+8>>2]=1781;br(G,1100,J)|0;_r(G,Z)|0}pe[m+12>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+(Y<<2)>>2]=pe[W+((me[1831+(p<<2)+2>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;br(G,1100,Q)|0;_r(G,$)|0}pe[m+(P<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+(E<<2)>>2]=pe[W+((me[1831+(p<<2)+3>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(G,1100,ee)|0;_r(G,re)|0}pe[m+(C<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}c=c+y|0;if((c|0)==(b|0))break;else m=m+v|0}}w=w+1|0;if((w|0)==(s|0))break;else x=x+I|0}}S=S+1|0}while((S|0)!=(T|0));ve=le;return 1}function It(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,ce=0,le=0,fe=0,he=0;fe=ve;ve=ve+640|0;ue=fe+88|0;se=fe+72|0;ae=fe+64|0;oe=fe+48|0;ie=fe+40|0;le=fe+24|0;ce=fe+16|0;ne=fe;te=fe+128|0;re=fe+112|0;ee=fe+96|0;B=e+240|0;z=pe[B>>2]|0;q=e+256|0;Z=pe[q>>2]|0;Q=e+272|0;$=pe[Q>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=fe;return 1}X=(s|0)==0;H=s+-1|0;Y=n<<1;G=e+92|0;W=e+116|0;V=a+-1|0;K=e+212|0;J=e+188|0;F=(i&1|0)==0;j=(o&1|0)==0;O=e+288|0;R=e+284|0;I=e+252|0;D=e+140|0;L=e+236|0;N=e+164|0;k=e+268|0;A=V<<5;E=r&255;r=0;i=0;o=0;e=0;u=1;C=0;do{if(!X){M=pe[t+(C<<2)>>2]|0;P=0;while(1){T=P&1;c=(T|0)==0;w=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;S=c?a:-1;l=c?0:V;if((l|0)!=(S|0)){x=j|(P|0)!=(H|0);b=c?M:M+A|0;while(1){if((u|0)==1)u=gt(G,W)|0|512;_=u&7;u=u>>>3;f=me[1823+_>>0]|0;c=0;do{v=(gt(G,N)|0)+i|0;y=v-$|0;i=y>>31;i=i&v|y&~i;if((pe[Q>>2]|0)>>>0<=i>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(te,1100,ne)|0;_r(te,ce)|0}pe[ee+(c<<2)>>2]=ge[(pe[k>>2]|0)+(i<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);c=0;do{v=(gt(G,D)|0)+e|0;y=v-z|0;e=y>>31;e=e&v|y&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[le>>2]=1154;pe[le+4>>2]=903;pe[le+8>>2]=1781;br(te,1100,le)|0;_r(te,ie)|0}pe[re+(c<<2)>>2]=pe[(pe[L>>2]|0)+(e<<2)>>2];c=c+1|0}while(c>>>0<f>>>0);y=F|(l|0)!=(V|0);g=0;v=b;while(1){m=x|(g|0)==0;p=g<<1;h=0;d=v;while(1){f=(gt(G,K)|0)+r|0;c=f-U|0;r=c>>31;r=r&f|c&~r;c=(gt(G,J)|0)+o|0;f=c-Z|0;o=f>>31;o=o&c|f&~o;if((y|(h|0)==0)&m){c=me[h+p+(1831+(_<<2))>>0]|0;f=r*3|0;if((pe[O>>2]|0)>>>0<=f>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(te,1100,oe)|0;_r(te,ae)|0}he=pe[R>>2]|0;pe[d>>2]=(ge[he+(f<<1)>>1]|0)<<16|pe[ee+(c<<2)>>2];pe[d+4>>2]=(ge[he+(f+2<<1)>>1]|0)<<16|(ge[he+(f+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(c<<2)>>2];if((pe[q>>2]|0)>>>0<=o>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;br(te,1100,se)|0;_r(te,ue)|0}pe[d+12>>2]=pe[(pe[I>>2]|0)+(o<<2)>>2]}h=h+1|0;if((h|0)==2)break;else d=d+16|0}g=g+1|0;if((g|0)==2)break;else v=v+n|0}l=l+T|0;if((l|0)==(S|0))break;else b=b+w|0}}P=P+1|0;if((P|0)==(s|0))break;else M=M+Y|0}}C=C+1|0}while((C|0)!=(E|0));ve=fe;return 1}function Dt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0;Z=ve;ve=ve+608|0;V=Z+64|0;W=Z+48|0;G=Z+40|0;J=Z+24|0;K=Z+16|0;Y=Z;H=Z+88|0;q=Z+72|0;I=e+272|0;D=pe[I>>2]|0;r=pe[e+88>>2]|0;L=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=Z;return 1}N=(s|0)==0;j=s+-1|0;F=n<<1;B=e+92|0;z=e+116|0;U=a+-1|0;X=e+212|0;R=(o&1|0)==0;k=e+288|0;A=e+284|0;O=e+164|0;E=e+268|0;C=U<<4;P=r&255;M=(i&1|0)!=0;r=0;o=0;e=1;S=0;do{if(!N){w=pe[t+(S<<2)>>2]|0;T=0;while(1){b=T&1;i=(b|0)==0;_=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;x=i?a:-1;u=i?0:U;if((u|0)!=(x|0)){y=R|(T|0)!=(j|0);v=i?w:w+C|0;while(1){if((e|0)==1)e=gt(B,z)|0|512;g=e&7;e=e>>>3;c=me[1823+g>>0]|0;i=0;do{p=(gt(B,O)|0)+o|0;m=p-D|0;o=m>>31;o=o&p|m&~o;if((pe[I>>2]|0)>>>0<=o>>>0){pe[Y>>2]=1154;pe[Y+4>>2]=903;pe[Y+8>>2]=1781;br(H,1100,Y)|0;_r(H,K)|0}pe[q+(i<<2)>>2]=ge[(pe[E>>2]|0)+(o<<1)>>1];i=i+1|0}while(i>>>0<c>>>0);m=(u|0)==(U|0)&M;d=0;p=v;while(1){h=y|(d|0)==0;f=d<<1;i=(gt(B,X)|0)+r|0;l=i-L|0;c=l>>31;c=c&i|l&~c;if(h){r=me[1831+(g<<2)+f>>0]|0;i=c*3|0;if((pe[k>>2]|0)>>>0<=i>>>0){pe[J>>2]=1154;pe[J+4>>2]=903;pe[J+8>>2]=1781;br(H,1100,J)|0;_r(H,G)|0}l=pe[A>>2]|0;pe[p>>2]=(ge[l+(i<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(ge[l+(i+2<<1)>>1]|0)<<16|(ge[l+(i+1<<1)>>1]|0)}l=p+8|0;i=(gt(B,X)|0)+c|0;c=i-L|0;r=c>>31;r=r&i|c&~r;if(!(m|h^1)){i=me[(f|1)+(1831+(g<<2))>>0]|0;c=r*3|0;if((pe[k>>2]|0)>>>0<=c>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;br(H,1100,W)|0;_r(H,V)|0}h=pe[A>>2]|0;pe[l>>2]=(ge[h+(c<<1)>>1]|0)<<16|pe[q+(i<<2)>>2];pe[p+12>>2]=(ge[h+(c+2<<1)>>1]|0)<<16|(ge[h+(c+1<<1)>>1]|0)}d=d+1|0;if((d|0)==2)break;else p=p+n|0}u=u+b|0;if((u|0)==(x|0))break;else v=v+_|0}}T=T+1|0;if((T|0)==(s|0))break;else w=w+F|0}}S=S+1|0}while((S|0)!=(P|0));ve=Z;return 1}function Lt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0;ae=ve;ve=ve+640|0;ne=ae+88|0;re=ae+72|0;te=ae+64|0;ee=ae+48|0;$=ae+40|0;oe=ae+24|0;ie=ae+16|0;Q=ae;Z=ae+128|0;K=ae+112|0;J=ae+96|0;B=e+272|0;z=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=ae;return 1}X=(s|0)==0;q=s+-1|0;H=n<<1;Y=e+92|0;G=e+116|0;W=a+-1|0;V=e+212|0;F=(i&1|0)==0;j=(o&1|0)==0;D=e+288|0;L=e+284|0;N=e+164|0;R=e+268|0;I=W<<5;A=r&255;r=0;i=0;o=0;e=0;u=1;O=0;do{if(!X){C=pe[t+(O<<2)>>2]|0;k=0;while(1){P=k&1;c=(P|0)==0;M=(P<<6^64)+-32|0;P=(P<<1^2)+-1|0;E=c?a:-1;l=c?0:W;if((l|0)!=(E|0)){S=j|(k|0)!=(q|0);T=c?C:C+I|0;while(1){if((u|0)==1)u=gt(Y,G)|0|512;w=u&7;u=u>>>3;f=me[1823+w>>0]|0;c=0;do{b=(gt(Y,N)|0)+e|0;x=b-z|0;e=x>>31;e=e&b|x&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;br(Z,1100,Q)|0;_r(Z,ie)|0}pe[K+(c<<2)>>2]=ge[(pe[R>>2]|0)+(e<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);c=0;do{b=(gt(Y,N)|0)+i|0;x=b-z|0;i=x>>31;i=i&b|x&~i;if((pe[B>>2]|0)>>>0<=i>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(Z,1100,oe)|0;_r(Z,$)|0}pe[J+(c<<2)>>2]=ge[(pe[R>>2]|0)+(i<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);x=F|(l|0)!=(W|0);_=0;b=T;while(1){y=S|(_|0)==0;v=_<<1;m=0;g=b;while(1){p=(gt(Y,V)|0)+o|0;d=p-U|0;o=d>>31;o=o&p|d&~o;d=(gt(Y,V)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((x|(m|0)==0)&y){d=me[m+v+(1831+(w<<2))>>0]|0;p=o*3|0;c=pe[D>>2]|0;if(c>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(Z,1100,ee)|0;_r(Z,te)|0;c=pe[D>>2]|0}f=pe[L>>2]|0;h=r*3|0;if(c>>>0>h>>>0)c=f;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;br(Z,1100,re)|0;_r(Z,ne)|0;c=pe[L>>2]|0}pe[g>>2]=(ge[f+(p<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[g+4>>2]=(ge[f+(p+2<<1)>>1]|0)<<16|(ge[f+(p+1<<1)>>1]|0);pe[g+8>>2]=(ge[c+(h<<1)>>1]|0)<<16|pe[J+(d<<2)>>2];pe[g+12>>2]=(ge[c+(h+2<<1)>>1]|0)<<16|(ge[c+(h+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else g=g+16|0}_=_+1|0;if((_|0)==2)break;else b=b+n|0}l=l+P|0;if((l|0)==(E|0))break;else T=T+M|0}}k=k+1|0;if((k|0)==(s|0))break;else C=C+H|0}}O=O+1|0}while((O|0)!=(A|0));ve=ae;return 1}function Nt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0;h=ve;ve=ve+608|0;f=h+88|0;l=h+72|0;u=h+64|0;s=h+48|0;o=h+40|0;a=h+24|0;i=h+16|0;n=h;c=h+96|0;pe[e>>2]=0;t=e+284|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;br(c,1100,n)|0;_r(c,i)|0}pe[t>>2]=0;pe[e+288>>2]=0;pe[e+292>>2]=0}de[e+296>>0]=0;t=e+268|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1516;br(c,1100,a)|0;_r(c,o)|0}pe[t>>2]=0;pe[e+272>>2]=0;pe[e+276>>2]=0}de[e+280>>0]=0;t=e+252|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1516;br(c,1100,s)|0;_r(c,u)|0}pe[t>>2]=0;pe[e+256>>2]=0;pe[e+260>>2]=0}de[e+264>>0]=0;t=e+236|0;r=pe[t>>2]|0;if(!r){f=e+248|0;de[f>>0]=0;f=e+212|0;ft(f);f=e+188|0;ft(f);f=e+164|0;ft(f);f=e+140|0;ft(f);f=e+116|0;ft(f);ve=h;return}if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;br(c,1100,l)|0;_r(c,f)|0}pe[t>>2]=0;pe[e+240>>2]=0;pe[e+244>>2]=0;f=e+248|0;de[f>>0]=0;f=e+212|0;ft(f);f=e+188|0;ft(f);f=e+164|0;ft(f);f=e+140|0;ft(f);f=e+116|0;ft(f);ve=h;return}function jt(e,t){e=e|0;t=t|0;var r=0;r=ve;ve=ve+16|0;pe[r>>2]=t;t=pe[63]|0;xr(t,e,r)|0;vr(10,t)|0;Xe()}function Ft(){var e=0,t=0;e=ve;ve=ve+16|0;if(!(Ne(200,2)|0)){t=De(pe[49]|0)|0;ve=e;return t|0}else jt(2090,e);return 0}function Bt(e){e=e|0;Ur(e);return}function zt(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Rn[e&3]();jt(2139,t)}function Ut(){var e=0,t=0;e=Ft()|0;if(((e|0)!=0?(t=pe[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(pe[e>>2]&-256|0)==1126902528?(pe[e+4>>2]|0)==1129074247:0):0)zt(pe[t+12>>2]|0);t=pe[28]|0;pe[28]=t+0;zt(t)}function Xt(e){e=e|0;return}function qt(e){e=e|0;return}function Ht(e){e=e|0;return}function Yt(e){e=e|0;return}function Gt(e){e=e|0;Bt(e);return}function Wt(e){e=e|0;Bt(e);return}function Vt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;a=ve;ve=ve+64|0;o=a;if((e|0)!=(t|0))if((t|0)!=0?(i=Qt(t,24,40,0)|0,(i|0)!=0):0){t=o;n=t+56|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(n|0));pe[o>>2]=i;pe[o+8>>2]=e;pe[o+12>>2]=-1;pe[o+48>>2]=1;Ln[pe[(pe[i>>2]|0)+28>>2]&3](i,o,pe[r>>2]|0,1);if((pe[o+24>>2]|0)==1){pe[r>>2]=pe[o+16>>2];t=1}else t=0}else t=0;else t=1;ve=a;return t|0}function Kt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;e=t+16|0;i=pe[e>>2]|0;do{if(i){if((i|0)!=(r|0)){n=t+36|0;pe[n>>2]=(pe[n>>2]|0)+1;pe[t+24>>2]=2;de[t+54>>0]=1;break}e=t+24|0;if((pe[e>>2]|0)==2)pe[e>>2]=n}else{pe[e>>2]=r;pe[t+24>>2]=n;pe[t+36>>2]=1}}while(0);return}function Jt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if((e|0)==(pe[t+8>>2]|0))Kt(0,t,r,n);return}function Zt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if((e|0)==(pe[t+8>>2]|0))Kt(0,t,r,n);else{e=pe[e+8>>2]|0;Ln[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,n)}return}function Qt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0;d=ve;ve=ve+64|0;h=d;f=pe[e>>2]|0;l=e+(pe[f+-8>>2]|0)|0;f=pe[f+-4>>2]|0;pe[h>>2]=r;pe[h+4>>2]=e;pe[h+8>>2]=t;pe[h+12>>2]=n;n=h+16|0;e=h+20|0;t=h+24|0;i=h+28|0;o=h+32|0;a=h+40|0;s=(f|0)==(r|0);u=n;c=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(c|0));$[n+36>>1]=0;de[n+38>>0]=0;e:do{if(s){pe[h+48>>2]=1;In[pe[(pe[r>>2]|0)+20>>2]&3](r,h,l,l,1,0);n=(pe[t>>2]|0)==1?l:0}else{Cn[pe[(pe[f>>2]|0)+24>>2]&3](f,h,l,1,0);switch(pe[h+36>>2]|0){case 0:{n=(pe[a>>2]|0)==1&(pe[i>>2]|0)==1&(pe[o>>2]|0)==1?pe[e>>2]|0:0;break e}case 1:break;default:{n=0;break e}}if((pe[t>>2]|0)!=1?!((pe[a>>2]|0)==0&(pe[i>>2]|0)==1&(pe[o>>2]|0)==1):0){n=0;break}n=pe[n>>2]|0}}while(0);ve=d;return n|0}function $t(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;de[t+53>>0]=1;do{if((pe[t+4>>2]|0)==(n|0)){de[t+52>>0]=1;n=t+16|0;e=pe[n>>2]|0;if(!e){pe[n>>2]=r;pe[t+24>>2]=i;pe[t+36>>2]=1;if(!((i|0)==1?(pe[t+48>>2]|0)==1:0))break;de[t+54>>0]=1;break}if((e|0)!=(r|0)){i=t+36|0;pe[i>>2]=(pe[i>>2]|0)+1;de[t+54>>0]=1;break}e=t+24|0;n=pe[e>>2]|0;if((n|0)==2){pe[e>>2]=i;n=i}if((n|0)==1?(pe[t+48>>2]|0)==1:0)de[t+54>>0]=1}}while(0);return}function er(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0;e:do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(o=t+28|0,(pe[o>>2]|0)!=1):0)pe[o>>2]=n}else{if((e|0)!=(pe[t>>2]|0)){s=pe[e+8>>2]|0;Cn[pe[(pe[s>>2]|0)+24>>2]&3](s,t,r,n,i);break}if((pe[t+16>>2]|0)!=(r|0)?(a=t+20|0,(pe[a>>2]|0)!=(r|0)):0){pe[t+32>>2]=n;n=t+44|0;if((pe[n>>2]|0)==4)break;o=t+52|0;de[o>>0]=0;u=t+53|0;de[u>>0]=0;e=pe[e+8>>2]|0;In[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,r,1,i);if(de[u>>0]|0){if(!(de[o>>0]|0)){o=1;s=13}}else{o=0;s=13}do{if((s|0)==13){pe[a>>2]=r;u=t+40|0;pe[u>>2]=(pe[u>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0){de[t+54>>0]=1;if(o)break}else s=16;if((s|0)==16?o:0)break;pe[n>>2]=4;break e}}while(0);pe[n>>2]=3;break}if((n|0)==1)pe[t+32>>2]=1}}while(0);return}function tr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0;do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(a=t+28|0,(pe[a>>2]|0)!=1):0)pe[a>>2]=n}else if((e|0)==(pe[t>>2]|0)){if((pe[t+16>>2]|0)!=(r|0)?(o=t+20|0,(pe[o>>2]|0)!=(r|0)):0){pe[t+32>>2]=n;pe[o>>2]=r;i=t+40|0;pe[i>>2]=(pe[i>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0)de[t+54>>0]=1;pe[t+44>>2]=4;break}if((n|0)==1)pe[t+32>>2]=1}}while(0);return}function rr(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,n,i);else{e=pe[e+8>>2]|0;In[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,n,i,o)}return}function nr(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,n,i);return}function ir(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=ve;ve=ve+16|0;n=i;pe[n>>2]=pe[r>>2];e=En[pe[(pe[e>>2]|0)+16>>2]&7](e,t,n)|0;if(e)pe[r>>2]=pe[n>>2];ve=i;return e&1|0}function or(e){e=e|0;if(!e)e=0;else e=(Qt(e,24,72,0)|0)!=0;return e&1|0}function ar(){var e=0,t=0,r=0,n=0,i=0,o=0,a=0,s=0;i=ve;ve=ve+48|0;a=i+32|0;r=i+24|0;s=i+16|0;o=i;i=i+36|0;e=Ft()|0;if((e|0)!=0?(n=pe[e>>2]|0,(n|0)!=0):0){e=n+48|0;t=pe[e>>2]|0;e=pe[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){pe[r>>2]=pe[51];jt(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=pe[n+44>>2]|0;else e=n+80|0;pe[i>>2]=e;n=pe[n>>2]|0;e=pe[n+4>>2]|0;if(En[pe[(pe[8>>2]|0)+16>>2]&7](8,n,i)|0){s=pe[i>>2]|0;i=pe[51]|0;s=An[pe[(pe[s>>2]|0)+8>>2]&1](s)|0;pe[o>>2]=i;pe[o+4>>2]=e;pe[o+8>>2]=s;jt(2282,o)}else{pe[s>>2]=pe[51];pe[s+4>>2]=e;jt(2327,s)}}jt(2406,a)}function sr(){var e=0;e=ve;ve=ve+16|0;if(!(je(196,6)|0)){ve=e;return}else jt(2179,e)}function ur(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Ur(e);if(!(ze(pe[49]|0,0)|0)){ve=t;return}else jt(2229,t)}function cr(e){e=e|0;var t=0,r=0;t=0;while(1){if((me[2427+t>>0]|0)==(e|0)){r=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;r=5;break}}if((r|0)==2)if(!t)e=2515;else{e=2515;r=5}if((r|0)==5)while(1){r=e;while(1){e=r+1|0;if(!(de[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function lr(){var e=0;if(!(pe[52]|0))e=264;else{e=(Le()|0)+60|0;e=pe[e>>2]|0}return e|0}function fr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=lr()|0;pe[t>>2]=0-e;e=-1}return e|0}function hr(e,t){e=+e;t=t|0;var r=0,n=0,i=0;ee[te>>3]=e;r=pe[te>>2]|0;n=pe[te+4>>2]|0;i=Kr(r|0,n|0,52)|0;i=i&2047;switch(i|0){case 0:{if(e!=0.0){e=+hr(e*18446744073709552.0e3,t);r=(pe[t>>2]|0)+-64|0}else r=0;pe[t>>2]=r;break}case 2047:break;default:{pe[t>>2]=i+-1022;pe[te>>2]=r;pe[te+4>>2]=n&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function dr(e,t){e=+e;t=t|0;return+ +hr(e,t)}function pr(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){de[e>>0]=t;e=1;break}if(t>>>0<2048){de[e>>0]=t>>>6|192;de[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){de[e>>0]=t>>>12|224;de[e+1>>0]=t>>>6&63|128;de[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){de[e>>0]=t>>>18|240;de[e+1>>0]=t>>>12&63|128;de[e+2>>0]=t>>>6&63|128;de[e+3>>0]=t&63|128;e=4;break}else{e=lr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function mr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function gr(e){e=e|0;var t=0,r=0;do{if(e){if((pe[e+76>>2]|0)<=-1){t=Ir(e)|0;break}r=(Sr(e)|0)==0;t=Ir(e)|0;if(!r)Mr(e)}else{if(!(pe[65]|0))t=0;else t=gr(pe[65]|0)|0;Ue(236);e=pe[58]|0;if(e)do{if((pe[e+76>>2]|0)>-1)r=Sr(e)|0;else r=0;if((pe[e+20>>2]|0)>>>0>(pe[e+28>>2]|0)>>>0)t=Ir(e)|0|t;if(r)Mr(e);e=pe[e+56>>2]|0}while((e|0)!=0);Fe(236)}}while(0);return t|0}function vr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0;if((pe[t+76>>2]|0)>=0?(Sr(t)|0)!=0:0){if((de[t+75>>0]|0)!=(e|0)?(n=t+20|0,i=pe[n>>2]|0,i>>>0<(pe[t+16>>2]|0)>>>0):0){pe[n>>2]=i+1;de[i>>0]=e;r=e&255}else r=Pr(t,e)|0;Mr(t)}else a=3;do{if((a|0)==3){if((de[t+75>>0]|0)!=(e|0)?(o=t+20|0,r=pe[o>>2]|0,r>>>0<(pe[t+16>>2]|0)>>>0):0){pe[o>>2]=r+1;de[r>>0]=e;r=e&255;break}r=Pr(t,e)|0}}while(0);return r|0}function yr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;n=r+16|0;i=pe[n>>2]|0;if(!i)if(!(Or(r)|0)){i=pe[n>>2]|0;o=4}else n=0;else o=4;e:do{if((o|0)==4){a=r+20|0;o=pe[a>>2]|0;if((i-o|0)>>>0<t>>>0){n=En[pe[r+36>>2]&7](r,e,t)|0;break}t:do{if((de[r+75>>0]|0)>-1){n=t;while(1){if(!n){i=o;n=0;break t}i=n+-1|0;if((de[e+i>>0]|0)==10)break;else n=i}if((En[pe[r+36>>2]&7](r,e,n)|0)>>>0<n>>>0)break e;t=t-n|0;e=e+n|0;i=pe[a>>2]|0}else{i=o;n=0}}while(0);Qr(i|0,e|0,t|0)|0;pe[a>>2]=(pe[a>>2]|0)+t;n=n+t|0}}while(0);return n|0}function _r(e,t){e=e|0;t=t|0;var r=0,n=0;r=ve;ve=ve+16|0;n=r;pe[n>>2]=t;t=xr(pe[64]|0,e,n)|0;ve=r;return t|0}function br(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=ve;ve=ve+16|0;i=n;pe[i>>2]=r;r=Tr(e,t,i)|0;ve=n;return r|0}function xr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;m=ve;ve=ve+224|0;f=m+120|0;p=m+80|0;d=m;h=m+136|0;n=p;i=n+40|0;do{pe[n>>2]=0;n=n+4|0}while((n|0)<(i|0));pe[f>>2]=pe[r>>2];if((Dr(0,t,f,d,p)|0)<0)r=-1;else{if((pe[e+76>>2]|0)>-1)c=Sr(e)|0;else c=0;r=pe[e>>2]|0;l=r&32;if((de[e+74>>0]|0)<1)pe[e>>2]=r&-33;r=e+48|0;if(!(pe[r>>2]|0)){i=e+44|0;o=pe[i>>2]|0;pe[i>>2]=h;a=e+28|0;pe[a>>2]=h;s=e+20|0;pe[s>>2]=h;pe[r>>2]=80;u=e+16|0;pe[u>>2]=h+80;n=Dr(e,t,f,d,p)|0;if(o){En[pe[e+36>>2]&7](e,0,0)|0;n=(pe[s>>2]|0)==0?-1:n;pe[i>>2]=o;pe[r>>2]=0;pe[u>>2]=0;pe[a>>2]=0;pe[s>>2]=0}}else n=Dr(e,t,f,d,p)|0;r=pe[e>>2]|0;pe[e>>2]=r|l;if(c)Mr(e);r=(r&32|0)==0?n:-1}ve=m;return r|0}function wr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+128|0;i=l+112|0;c=l;o=c;a=268;s=o+112|0;do{pe[o>>2]=pe[a>>2];o=o+4|0;a=a+4|0}while((o|0)<(s|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;u=4}else{t=lr()|0;pe[t>>2]=75;t=-1}else{i=e;u=4}if((u|0)==4){u=-2-i|0;u=t>>>0>u>>>0?u:t;pe[c+48>>2]=u;e=c+20|0;pe[e>>2]=i;pe[c+44>>2]=i;t=i+u|0;i=c+16|0;pe[i>>2]=t;pe[c+28>>2]=t;t=xr(c,r,n)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[i>>2]|0))<<31>>31)>>0]=0}}ve=l;return t|0}function Tr(e,t,r){e=e|0;t=t|0;r=r|0;return wr(e,2147483647,t,r)|0}function Sr(e){e=e|0;return 0}function Mr(e){e=e|0;return}function Pr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0;u=ve;ve=ve+16|0;s=u;a=t&255;de[s>>0]=a;n=e+16|0;i=pe[n>>2]|0;if(!i)if(!(Or(e)|0)){i=pe[n>>2]|0;o=4}else r=-1;else o=4;do{if((o|0)==4){n=e+20|0;o=pe[n>>2]|0;if(o>>>0<i>>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[n>>2]=o+1;de[o>>0]=a;break}if((En[pe[e+36>>2]&7](e,s,1)|0)==1)r=me[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Er(e){e=e|0;var t=0,r=0;t=ve;ve=ve+16|0;r=t;pe[r>>2]=pe[e+60>>2];e=fr(Pe(6,r|0)|0)|0;ve=t;return e|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0;i=ve;ve=ve+32|0;o=i;n=i+20|0;pe[o>>2]=pe[e+60>>2];pe[o+4>>2]=0;pe[o+8>>2]=t;pe[o+12>>2]=n;pe[o+16>>2]=r;if((fr(Ye(140,o|0)|0)|0)<0){pe[n>>2]=-1;e=-1}else e=pe[n>>2]|0;ve=i;return e|0}function kr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+48|0;f=p+16|0;l=p;n=p+32|0;h=e+28|0;i=pe[h>>2]|0;pe[n>>2]=i;d=e+20|0;i=(pe[d>>2]|0)-i|0;pe[n+4>>2]=i;pe[n+8>>2]=t;pe[n+12>>2]=r;u=e+60|0;c=e+44|0;t=2;i=i+r|0;while(1){if(!(pe[52]|0)){pe[f>>2]=pe[u>>2];pe[f+4>>2]=n;pe[f+8>>2]=t;a=fr(Ge(146,f|0)|0)|0}else{qe(7,e|0);pe[l>>2]=pe[u>>2];pe[l+4>>2]=n;pe[l+8>>2]=t;a=fr(Ge(146,l|0)|0)|0;Se(0)}if((i|0)==(a|0)){i=6;break}if((a|0)<0){i=8;break}i=i-a|0;o=pe[n+4>>2]|0;if(a>>>0<=o>>>0)if((t|0)==2){pe[h>>2]=(pe[h>>2]|0)+a;s=o;t=2}else s=o;else{s=pe[c>>2]|0;pe[h>>2]=s;pe[d>>2]=s;s=pe[n+12>>2]|0;a=a-o|0;n=n+8|0;t=t+-1|0}pe[n>>2]=(pe[n>>2]|0)+a;pe[n+4>>2]=s-a}if((i|0)==6){f=pe[c>>2]|0;pe[e+16>>2]=f+(pe[e+48>>2]|0);e=f;pe[h>>2]=e;pe[d>>2]=e}else if((i|0)==8){pe[e+16>>2]=0;pe[h>>2]=0;pe[d>>2]=0;pe[e>>2]=pe[e>>2]|32;if((t|0)==2)r=0;else r=r-(pe[n+4>>2]|0)|0}ve=p;return r|0}function Ar(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=ve;ve=ve+80|0;n=i;pe[e+36>>2]=3;if((pe[e>>2]&64|0)==0?(pe[n>>2]=pe[e+60>>2],pe[n+4>>2]=21505,pe[n+8>>2]=i+12,(Me(54,n|0)|0)!=0):0)de[e+75>>0]=-1;n=kr(e,t,r)|0;ve=i;return n|0}function Or(e){e=e|0;var t=0,r=0;t=e+74|0;r=de[t>>0]|0;de[t>>0]=r+255|r;t=pe[e>>2]|0;if(!(t&8)){pe[e+8>>2]=0;pe[e+4>>2]=0;t=pe[e+44>>2]|0;pe[e+28>>2]=t;pe[e+20>>2]=t;pe[e+16>>2]=t+(pe[e+48>>2]|0);t=0}else{pe[e>>2]=t|32;t=-1}return t|0}function Rr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;o=t&255;n=(r|0)!=0;e:do{if(n&(e&3|0)!=0){i=t&255;while(1){if((de[e>>0]|0)==i<<24>>24){a=6;break e}e=e+1|0;r=r+-1|0;n=(r|0)!=0;if(!(n&(e&3|0)!=0)){a=5;break}}}else a=5}while(0);if((a|0)==5)if(n)a=6;else r=0;e:do{if((a|0)==6){i=t&255;if((de[e>>0]|0)!=i<<24>>24){n=ye(o,16843009)|0;t:do{if(r>>>0>3)while(1){o=pe[e>>2]^n;if((o&-2139062144^-2139062144)&o+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){a=11;break t}}else a=11}while(0);if((a|0)==11)if(!r){r=0;break}while(1){if((de[e>>0]|0)==i<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Ir(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0;t=e+20|0;o=e+28|0;if((pe[t>>2]|0)>>>0>(pe[o>>2]|0)>>>0?(En[pe[e+36>>2]&7](e,0,0)|0,(pe[t>>2]|0)==0):0)t=-1;else{a=e+4|0;r=pe[a>>2]|0;n=e+8|0;i=pe[n>>2]|0;if(r>>>0<i>>>0)En[pe[e+40>>2]&7](e,r-i|0,1)|0;pe[e+16>>2]=0;pe[o>>2]=0;pe[t>>2]=0;pe[n>>2]=0;pe[a>>2]=0;t=0}return t|0}function Dr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0.0,l=0,f=0,h=0,d=0,p=0.0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0;Q=ve;ve=ve+624|0;W=Q+24|0;K=Q+16|0;V=Q+588|0;X=Q+576|0;G=Q;B=Q+536|0;Z=Q+8|0;J=Q+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;z=Z+4|0;U=X+12|0;X=X+11|0;q=V;H=U;Y=H-q|0;R=-2-q|0;I=H+2|0;D=W+288|0;L=V+9|0;N=L;j=V+8|0;o=0;m=t;a=0;t=0;e:while(1){do{if((o|0)>-1)if((a|0)>(2147483647-o|0)){o=lr()|0;pe[o>>2]=75;o=-1;break}else{o=a+o|0;break}}while(0);a=de[m>>0]|0;if(!(a<<24>>24)){k=245;break}else s=m;t:while(1){switch(a<<24>>24){case 37:{a=s;k=9;break t}case 0:{a=s;break t}default:{}}C=s+1|0;a=de[C>>0]|0;s=C}t:do{if((k|0)==9)while(1){k=0;if((de[a+1>>0]|0)!=37)break t;s=s+1|0;a=a+2|0;if((de[a>>0]|0)==37)k=9;else break}}while(0);v=s-m|0;if(A?(pe[e>>2]&32|0)==0:0)yr(m,v,e)|0;if((s|0)!=(m|0)){m=a;a=v;continue}l=a+1|0;s=de[l>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){C=(de[a+2>>0]|0)==36;l=C?a+3|0:l;s=de[l>>0]|0;d=C?u:-1;t=C?1:t}else d=-1;a=s<<24>>24;t:do{if((a&-32|0)==32){u=0;while(1){if(!(1<<a+-32&75913)){f=u;a=l;break t}u=1<<(s<<24>>24)+-32|u;l=l+1|0;s=de[l>>0]|0;a=s<<24>>24;if((a&-32|0)!=32){f=u;a=l;break}}}else{f=0;a=l}}while(0);do{if(s<<24>>24==42){u=a+1|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[a+2>>0]|0)==36:0){pe[i+(s<<2)>>2]=10;t=1;a=a+3|0;s=pe[n+((de[u>>0]|0)+-48<<3)>>2]|0}else{if(t){o=-1;break e}if(!A){g=f;a=u;t=0;C=0;break}t=(pe[r>>2]|0)+(4-1)&~(4-1);s=pe[t>>2]|0;pe[r>>2]=t+4;t=0;a=u}if((s|0)<0){g=f|8192;C=0-s|0}else{g=f;C=s}}else{u=(s<<24>>24)+-48|0;if(u>>>0<10){s=0;do{s=(s*10|0)+u|0;a=a+1|0;u=(de[a>>0]|0)+-48|0}while(u>>>0<10);if((s|0)<0){o=-1;break e}else{g=f;C=s}}else{g=f;C=0}}}while(0);t:do{if((de[a>>0]|0)==46){u=a+1|0;s=de[u>>0]|0;if(s<<24>>24!=42){l=(s<<24>>24)+-48|0;if(l>>>0<10){a=u;s=0}else{a=u;l=0;break}while(1){s=(s*10|0)+l|0;a=a+1|0;l=(de[a>>0]|0)+-48|0;if(l>>>0>=10){l=s;break t}}}u=a+2|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[a+3>>0]|0)==36:0){pe[i+(s<<2)>>2]=10;a=a+4|0;l=pe[n+((de[u>>0]|0)+-48<<3)>>2]|0;break}if(t){o=-1;break e}if(A){a=(pe[r>>2]|0)+(4-1)&~(4-1);l=pe[a>>2]|0;pe[r>>2]=a+4;a=u}else{a=u;l=0}}else l=-1}while(0);h=0;while(1){s=(de[a>>0]|0)+-65|0;if(s>>>0>57){o=-1;break e}u=a+1|0;s=de[5359+(h*58|0)+s>>0]|0;f=s&255;if((f+-1|0)>>>0<8){a=u;h=f}else{E=u;break}}if(!(s<<24>>24)){o=-1;break}u=(d|0)>-1;do{if(s<<24>>24==19)if(u){o=-1;break e}else k=52;else{if(u){pe[i+(d<<2)>>2]=f;M=n+(d<<3)|0;P=pe[M+4>>2]|0;k=G;pe[k>>2]=pe[M>>2];pe[k+4>>2]=P;k=52;break}if(!A){o=0;break e}jr(G,f,r)}}while(0);if((k|0)==52?(k=0,!A):0){m=E;a=v;continue}d=de[a>>0]|0;d=(h|0)!=0&(d&15|0)==3?d&-33:d;u=g&-65537;P=(g&8192|0)==0?g:u;t:do{switch(d|0){case 110:switch(h|0){case 0:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 1:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 2:{m=pe[G>>2]|0;pe[m>>2]=o;pe[m+4>>2]=((o|0)<0)<<31>>31;m=E;a=v;continue e}case 3:{$[pe[G>>2]>>1]=o;m=E;a=v;continue e}case 4:{de[pe[G>>2]>>0]=o;m=E;a=v;continue e}case 6:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 7:{m=pe[G>>2]|0;pe[m>>2]=o;pe[m+4>>2]=((o|0)<0)<<31>>31;m=E;a=v;continue e}default:{m=E;a=v;continue e}}case 112:{h=P|8;l=l>>>0>8?l:8;d=120;k=64;break}case 88:case 120:{h=P;k=64;break}case 111:{u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;if((s|0)==0&(u|0)==0)a=O;else{a=O;do{a=a+-1|0;de[a>>0]=s&7|48;s=Kr(s|0,u|0,3)|0;u=re}while(!((s|0)==0&(u|0)==0))}if(!(P&8)){s=P;h=0;f=5839;k=77}else{h=F-a+1|0;s=P;l=(l|0)<(h|0)?h:l;h=0;f=5839;k=77}break}case 105:case 100:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;if((s|0)<0){a=Wr(0,0,a|0,s|0)|0;s=re;u=G;pe[u>>2]=a;pe[u+4>>2]=s;u=1;f=5839;k=76;break t}if(!(P&2048)){f=P&1;u=f;f=(f|0)==0?5839:5841;k=76}else{u=1;f=5840;k=76}break}case 117:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;f=5839;k=76;break}case 99:{de[B>>0]=pe[G>>2];m=B;s=1;h=0;d=5839;a=O;break}case 109:{a=lr()|0;a=cr(pe[a>>2]|0)|0;k=82;break}case 115:{a=pe[G>>2]|0;a=(a|0)!=0?a:5849;k=82;break}case 67:{pe[Z>>2]=pe[G>>2];pe[z>>2]=0;pe[G>>2]=Z;l=-1;k=86;break}case 83:{if(!l){Br(e,32,C,0,P);a=0;k=98}else k=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{c=+ee[G>>3];pe[K>>2]=0;ee[te>>3]=c;if((pe[te+4>>2]|0)>=0)if(!(P&2048)){M=P&1;S=M;M=(M|0)==0?5857:5862}else{S=1;M=5859}else{c=-c;S=1;M=5856}ee[te>>3]=c;T=pe[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){p=+dr(c,K)*2.0;s=p!=0.0;if(s)pe[K>>2]=(pe[K>>2]|0)+-1;x=d|32;if((x|0)==97){m=d&32;v=(m|0)==0?M:M+9|0;g=S|2;a=12-l|0;do{if(!(l>>>0>11|(a|0)==0)){c=8.0;do{a=a+-1|0;c=c*16.0}while((a|0)!=0);if((de[v>>0]|0)==45){c=-(c+(-p-c));break}else{c=p+c-c;break}}else c=p}while(0);s=pe[K>>2]|0;a=(s|0)<0?0-s|0:s;a=Fr(a,((a|0)<0)<<31>>31,U)|0;if((a|0)==(U|0)){de[X>>0]=48;a=X}de[a+-1>>0]=(s>>31&2)+43;h=a+-2|0;de[h>>0]=d+15;f=(l|0)<1;u=(P&8|0)==0;s=V;while(1){M=~~c;a=s+1|0;de[s>>0]=me[5823+M>>0]|m;c=(c-+(M|0))*16.0;do{if((a-q|0)==1){if(u&(f&c==0.0))break;de[a>>0]=46;a=s+2|0}}while(0);if(!(c!=0.0))break;else s=a}l=(l|0)!=0&(R+a|0)<(l|0)?I+l-h|0:Y-h+a|0;u=l+g|0;Br(e,32,C,u,P);if(!(pe[e>>2]&32))yr(v,g,e)|0;Br(e,48,C,u,P^65536);a=a-q|0;if(!(pe[e>>2]&32))yr(V,a,e)|0;s=H-h|0;Br(e,48,l-(a+s)|0,0,0);if(!(pe[e>>2]&32))yr(h,s,e)|0;Br(e,32,C,u,P^8192);a=(u|0)<(C|0)?C:u;break}a=(l|0)<0?6:l;if(s){s=(pe[K>>2]|0)+-28|0;pe[K>>2]=s;c=p*268435456.0}else{c=p;s=pe[K>>2]|0}T=(s|0)<0?W:D;w=T;s=T;do{b=~~c>>>0;pe[s>>2]=b;s=s+4|0;c=(c-+(b>>>0))*1.0e9}while(c!=0.0);u=s;s=pe[K>>2]|0;if((s|0)>0){f=T;while(1){h=(s|0)>29?29:s;l=u+-4|0;do{if(l>>>0<f>>>0)l=f;else{s=0;do{b=Jr(pe[l>>2]|0,0,h|0)|0;b=Zr(b|0,re|0,s|0,0)|0;s=re;_=sn(b|0,s|0,1e9,0)|0;pe[l>>2]=_;s=an(b|0,s|0,1e9,0)|0;l=l+-4|0}while(l>>>0>=f>>>0);if(!s){l=f;break}l=f+-4|0;pe[l>>2]=s}}while(0);while(1){if(u>>>0<=l>>>0)break;s=u+-4|0;if(!(pe[s>>2]|0))u=s;else break}s=(pe[K>>2]|0)-h|0;pe[K>>2]=s;if((s|0)>0)f=l;else break}}else l=T;if((s|0)<0){v=((a+25|0)/9|0)+1|0;y=(x|0)==102;m=l;while(1){g=0-s|0;g=(g|0)>9?9:g;do{if(m>>>0<u>>>0){s=(1<<g)+-1|0;f=1e9>>>g;l=0;h=m;do{b=pe[h>>2]|0;pe[h>>2]=(b>>>g)+l;l=ye(b&s,f)|0;h=h+4|0}while(h>>>0<u>>>0);s=(pe[m>>2]|0)==0?m+4|0:m;if(!l){l=s;break}pe[u>>2]=l;l=s;u=u+4|0}else l=(pe[m>>2]|0)==0?m+4|0:m}while(0);s=y?T:l;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[K>>2]|0)+g|0;pe[K>>2]=s;if((s|0)>=0){m=l;break}else m=l}}else m=l;do{if(m>>>0<u>>>0){s=(w-m>>2)*9|0;f=pe[m>>2]|0;if(f>>>0<10)break;else l=10;do{l=l*10|0;s=s+1|0}while(f>>>0>=l>>>0)}else s=0}while(0);_=(x|0)==103;b=(a|0)!=0;l=a-((x|0)!=102?s:0)+((b&_)<<31>>31)|0;if((l|0)<(((u-w>>2)*9|0)+-9|0)){h=l+9216|0;y=(h|0)/9|0;l=T+(y+-1023<<2)|0;h=((h|0)%9|0)+1|0;if((h|0)<9){f=10;do{f=f*10|0;h=h+1|0}while((h|0)!=9)}else f=10;g=pe[l>>2]|0;v=(g>>>0)%(f>>>0)|0;if((v|0)==0?(T+(y+-1022<<2)|0)==(u|0):0)f=m;else k=163;do{if((k|0)==163){k=0;p=(((g>>>0)/(f>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;h=(f|0)/2|0;do{if(v>>>0<h>>>0)c=.5;else{if((v|0)==(h|0)?(T+(y+-1022<<2)|0)==(u|0):0){c=1.0;break}c=1.5}}while(0);do{if(S){if((de[M>>0]|0)!=45)break;p=-p;c=-c}}while(0);h=g-v|0;pe[l>>2]=h;if(!(p+c!=p)){f=m;break}x=h+f|0;pe[l>>2]=x;if(x>>>0>999999999){s=m;while(1){f=l+-4|0;pe[l>>2]=0;if(f>>>0<s>>>0){s=s+-4|0;pe[s>>2]=0}x=(pe[f>>2]|0)+1|0;pe[f>>2]=x;if(x>>>0>999999999)l=f;else{m=s;l=f;break}}}s=(w-m>>2)*9|0;h=pe[m>>2]|0;if(h>>>0<10){f=m;break}else f=10;do{f=f*10|0;s=s+1|0}while(h>>>0>=f>>>0);f=m}}while(0);x=l+4|0;m=f;u=u>>>0>x>>>0?x:u}v=0-s|0;while(1){if(u>>>0<=m>>>0){y=0;x=u;break}l=u+-4|0;if(!(pe[l>>2]|0))u=l;else{y=1;x=u;break}}do{if(_){a=(b&1^1)+a|0;if((a|0)>(s|0)&(s|0)>-5){d=d+-1|0;a=a+-1-s|0}else{d=d+-2|0;a=a+-1|0}u=P&8;if(u)break;do{if(y){u=pe[x+-4>>2]|0;if(!u){l=9;break}if(!((u>>>0)%10|0)){f=10;l=0}else{l=0;break}do{f=f*10|0;l=l+1|0}while(((u>>>0)%(f>>>0)|0|0)==0)}else l=9}while(0);u=((x-w>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-l|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}else{u=u+s-l|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}}else u=P&8}while(0);g=a|u;f=(g|0)!=0&1;h=(d|32|0)==102;if(h){s=(s|0)>0?s:0;d=0}else{l=(s|0)<0?v:s;l=Fr(l,((l|0)<0)<<31>>31,U)|0;if((H-l|0)<2)do{l=l+-1|0;de[l>>0]=48}while((H-l|0)<2);de[l+-1>>0]=(s>>31&2)+43;w=l+-2|0;de[w>>0]=d;s=H-w|0;d=w}v=S+1+a+f+s|0;Br(e,32,C,v,P);if(!(pe[e>>2]&32))yr(M,S,e)|0;Br(e,48,C,v,P^65536);do{if(h){l=m>>>0>T>>>0?T:m;s=l;do{u=Fr(pe[s>>2]|0,0,L)|0;do{if((s|0)==(l|0)){if((u|0)!=(L|0))break;de[j>>0]=48;u=j}else{if(u>>>0<=V>>>0)break;do{u=u+-1|0;de[u>>0]=48}while(u>>>0>V>>>0)}}while(0);if(!(pe[e>>2]&32))yr(u,N-u|0,e)|0;s=s+4|0}while(s>>>0<=T>>>0);do{if(g){if(pe[e>>2]&32)break;yr(5891,1,e)|0}}while(0);if((a|0)>0&s>>>0<x>>>0){u=s;while(1){s=Fr(pe[u>>2]|0,0,L)|0;if(s>>>0>V>>>0)do{s=s+-1|0;de[s>>0]=48}while(s>>>0>V>>>0);if(!(pe[e>>2]&32))yr(s,(a|0)>9?9:a,e)|0;u=u+4|0;s=a+-9|0;if(!((a|0)>9&u>>>0<x>>>0)){a=s;break}else a=s}}Br(e,48,a+9|0,9,0)}else{h=y?x:m+4|0;if((a|0)>-1){f=(u|0)==0;l=m;do{s=Fr(pe[l>>2]|0,0,L)|0;if((s|0)==(L|0)){de[j>>0]=48;s=j}do{if((l|0)==(m|0)){u=s+1|0;if(!(pe[e>>2]&32))yr(s,1,e)|0;if(f&(a|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}yr(5891,1,e)|0;s=u}else{if(s>>>0<=V>>>0)break;do{s=s+-1|0;de[s>>0]=48}while(s>>>0>V>>>0)}}while(0);u=N-s|0;if(!(pe[e>>2]&32))yr(s,(a|0)>(u|0)?u:a,e)|0;a=a-u|0;l=l+4|0}while(l>>>0<h>>>0&(a|0)>-1)}Br(e,48,a+18|0,18,0);if(pe[e>>2]&32)break;yr(d,H-d|0,e)|0}}while(0);Br(e,32,C,v,P^8192);a=(v|0)<(C|0)?C:v}else{h=(d&32|0)!=0;f=c!=c|0.0!=0.0;s=f?0:S;l=s+3|0;Br(e,32,C,l,u);a=pe[e>>2]|0;if(!(a&32)){yr(M,s,e)|0;a=pe[e>>2]|0}if(!(a&32))yr(f?h?5883:5887:h?5875:5879,3,e)|0;Br(e,32,C,l,P^8192);a=(l|0)<(C|0)?C:l}}while(0);m=E;continue e}default:{u=P;s=l;h=0;d=5839;a=O}}}while(0);t:do{if((k|0)==64){u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;f=d&32;if(!((s|0)==0&(u|0)==0)){a=O;do{a=a+-1|0;de[a>>0]=me[5823+(s&15)>>0]|f;s=Kr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));k=G;if((h&8|0)==0|(pe[k>>2]|0)==0&(pe[k+4>>2]|0)==0){s=h;h=0;f=5839;k=77}else{s=h;h=2;f=5839+(d>>4)|0;k=77}}else{a=O;s=h;h=0;f=5839;k=77}}else if((k|0)==76){a=Fr(a,s,O)|0;s=P;h=u;k=77}else if((k|0)==82){k=0;P=Rr(a,0,l)|0;M=(P|0)==0;m=a;s=M?l:P-a|0;h=0;d=5839;a=M?a+l|0:P}else if((k|0)==86){k=0;s=0;a=0;f=pe[G>>2]|0;while(1){u=pe[f>>2]|0;if(!u)break;a=mr(J,u)|0;if((a|0)<0|a>>>0>(l-s|0)>>>0)break;s=a+s|0;if(l>>>0>s>>>0)f=f+4|0;else break}if((a|0)<0){o=-1;break e}Br(e,32,C,s,P);if(!s){a=0;k=98}else{u=0;l=pe[G>>2]|0;while(1){a=pe[l>>2]|0;if(!a){a=s;k=98;break t}a=mr(J,a)|0;u=a+u|0;if((u|0)>(s|0)){a=s;k=98;break t}if(!(pe[e>>2]&32))yr(J,a,e)|0;if(u>>>0>=s>>>0){a=s;k=98;break}else l=l+4|0}}}}while(0);if((k|0)==98){k=0;Br(e,32,C,a,P^8192);m=E;a=(C|0)>(a|0)?C:a;continue}if((k|0)==77){k=0;u=(l|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((l|0)!=0|s){s=(s&1^1)+(F-a)|0;m=a;s=(l|0)>(s|0)?l:s;d=f;a=O}else{m=O;s=0;d=f;a=O}}f=a-m|0;s=(s|0)<(f|0)?f:s;l=h+s|0;a=(C|0)<(l|0)?l:C;Br(e,32,a,l,u);if(!(pe[e>>2]&32))yr(d,h,e)|0;Br(e,48,a,l,u^65536);Br(e,48,s,f,0);if(!(pe[e>>2]&32))yr(m,f,e)|0;Br(e,32,a,l,u^8192);m=E}e:do{if((k|0)==245)if(!e)if(t){o=1;while(1){t=pe[i+(o<<2)>>2]|0;if(!t)break;jr(n+(o<<3)|0,t,r);o=o+1|0;if((o|0)>=10){o=1;break e}}if((o|0)<10)while(1){if(pe[i+(o<<2)>>2]|0){o=-1;break e}o=o+1|0;if((o|0)>=10){o=1;break}}else o=1}else o=0}while(0);ve=Q;return o|0}function Lr(e){e=e|0;if(!(pe[e+68>>2]|0))Mr(e);return}function Nr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=e+20|0;i=pe[n>>2]|0;e=(pe[e+16>>2]|0)-i|0;e=e>>>0>r>>>0?r:e;Qr(i|0,t|0,e|0)|0;pe[n>>2]=(pe[n>>2]|0)+e;return r|0}function jr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;pe[e>>2]=t;break e}case 10:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=t;pe[n+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=t;pe[n+4>>2]=0;break e}case 12:{n=(pe[r>>2]|0)+(8-1)&~(8-1);t=n;i=pe[t>>2]|0;t=pe[t+4>>2]|0;pe[r>>2]=n+8;n=e;pe[n>>2]=i;pe[n+4>>2]=t;break e}case 13:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;n=(n&65535)<<16>>16;i=e;pe[i>>2]=n;pe[i+4>>2]=((n|0)<0)<<31>>31;break e}case 14:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=n&65535;pe[i+4>>2]=0;break e}case 15:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;n=(n&255)<<24>>24;i=e;pe[i>>2]=n;pe[i+4>>2]=((n|0)<0)<<31>>31;break e}case 16:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=n&255;pe[i+4>>2]=0;break e}case 17:{i=(pe[r>>2]|0)+(8-1)&~(8-1);o=+ee[i>>3];pe[r>>2]=i+8;ee[e>>3]=o;break e}case 18:{i=(pe[r>>2]|0)+(8-1)&~(8-1);o=+ee[i>>3];pe[r>>2]=i+8;ee[e>>3]=o;break e}default:break e}}while(0)}while(0);return}function Fr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){n=sn(e|0,t|0,10,0)|0;r=r+-1|0;de[r>>0]=n|48;n=an(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=n;t=re}else{e=n;break}}if(e)while(1){r=r+-1|0;de[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function Br(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0;s=ve;ve=ve+256|0;a=s;do{if((r|0)>(n|0)&(i&73728|0)==0){i=r-n|0;Vr(a|0,t|0,(i>>>0>256?256:i)|0)|0;t=pe[e>>2]|0;o=(t&32|0)==0;if(i>>>0>255){n=r-n|0;do{if(o){yr(a,256,e)|0;t=pe[e>>2]|0}i=i+-256|0;o=(t&32|0)==0}while(i>>>0>255);if(o)i=n&255;else break}else if(!o)break;yr(a,i,e)|0}}while(0);ve=s;return}function zr(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0;do{if(e>>>0<245){d=e>>>0<11?16:e+11&-8;e=d>>>3;s=pe[151]|0;r=s>>>e;if(r&3){e=(r&1^1)+e|0;n=e<<1;r=644+(n<<2)|0;n=644+(n+2<<2)|0;i=pe[n>>2]|0;o=i+8|0;a=pe[o>>2]|0;do{if((r|0)!=(a|0)){if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+12|0;if((pe[t>>2]|0)==(i|0)){pe[t>>2]=r;pe[n>>2]=a;break}else Xe()}else pe[151]=s&~(1<<e)}while(0);j=e<<3;pe[i+4>>2]=j|3;j=i+(j|4)|0;pe[j>>2]=pe[j>>2]|1;j=o;return j|0}a=pe[153]|0;if(d>>>0>a>>>0){if(r){n=2<<e;n=r<<e&(n|0-n);n=(n&0-n)+-1|0;u=n>>>12&16;n=n>>>u;i=n>>>5&8;n=n>>>i;o=n>>>2&4;n=n>>>o;r=n>>>1&2;n=n>>>r;e=n>>>1&1;e=(i|u|o|r|e)+(n>>>e)|0;n=e<<1;r=644+(n<<2)|0;n=644+(n+2<<2)|0;o=pe[n>>2]|0;u=o+8|0;i=pe[u>>2]|0;do{if((r|0)!=(i|0)){if(i>>>0<(pe[155]|0)>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)==(o|0)){pe[t>>2]=r;pe[n>>2]=i;c=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<<e);c=a}}while(0);j=e<<3;a=j-d|0;pe[o+4>>2]=d|3;s=o+d|0;pe[o+(d|4)>>2]=a|1;pe[o+j>>2]=a;if(c){i=pe[156]|0;r=c>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){e=644+(t+2<<2)|0;t=pe[e>>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{l=e;f=t}}else{pe[151]=e|r;l=644+(t+2<<2)|0;f=n}pe[l>>2]=i;pe[f+12>>2]=i;pe[i+8>>2]=f;pe[i+12>>2]=n}pe[153]=a;pe[156]=s;j=u;return j|0}e=pe[152]|0;if(e){r=(e&0-e)+-1|0;N=r>>>12&16;r=r>>>N;L=r>>>5&8;r=r>>>L;j=r>>>2&4;r=r>>>j;e=r>>>1&2;r=r>>>e;n=r>>>1&1;n=pe[908+((L|N|j|e|n)+(r>>>n)<<2)>>2]|0;r=(pe[n+4>>2]&-8)-d|0;e=n;while(1){t=pe[e+16>>2]|0;if(!t){t=pe[e+20>>2]|0;if(!t){u=r;break}}e=(pe[t+4>>2]&-8)-d|0;j=e>>>0<r>>>0;r=j?e:r;e=t;n=j?t:n}o=pe[155]|0;if(n>>>0<o>>>0)Xe();s=n+d|0;if(n>>>0>=s>>>0)Xe();a=pe[n+24>>2]|0;r=pe[n+12>>2]|0;do{if((r|0)==(n|0)){e=n+20|0;t=pe[e>>2]|0;if(!t){e=n+16|0;t=pe[e>>2]|0;if(!t){h=0;break}}while(1){r=t+20|0;i=pe[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=pe[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0<o>>>0)Xe();else{pe[e>>2]=0;h=t;break}}else{i=pe[n+8>>2]|0;if(i>>>0<o>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(n|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(n|0)){pe[t>>2]=r;pe[e>>2]=i;h=r;break}else Xe()}}while(0);do{if(a){t=pe[n+28>>2]|0;e=908+(t<<2)|0;if((n|0)==(pe[e>>2]|0)){pe[e>>2]=h;if(!h){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(n|0))pe[t>>2]=h;else pe[a+20>>2]=h;if(!h)break}e=pe[155]|0;if(h>>>0<e>>>0)Xe();pe[h+24>>2]=a;t=pe[n+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[h+16>>2]=t;pe[t+24>>2]=h;break}}while(0);t=pe[n+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[h+20>>2]=t;pe[t+24>>2]=h;break}}}while(0);if(u>>>0<16){j=u+d|0;pe[n+4>>2]=j|3;j=n+(j+4)|0;pe[j>>2]=pe[j>>2]|1}else{pe[n+4>>2]=d|3;pe[n+(d|4)>>2]=u|1;pe[n+(u+d)>>2]=u;t=pe[153]|0;if(t){o=pe[156]|0;r=t>>>3;t=r<<1;i=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){t=644+(t+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;m=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;m=i}pe[p>>2]=o;pe[m+12>>2]=o;pe[o+8>>2]=m;pe[o+12>>2]=i}pe[153]=u;pe[156]=s}j=n+8|0;return j|0}else m=d}else m=d}else if(e>>>0<=4294967231){e=e+11|0;f=e&-8;l=pe[152]|0;if(l){r=0-f|0;e=e>>>8;if(e)if(f>>>0>16777215)c=31;else{m=(e+1048320|0)>>>16&8;b=e<<m;p=(b+520192|0)>>>16&4;b=b<<p;c=(b+245760|0)>>>16&2;c=14-(p|m|c)+(b<<c>>>15)|0;c=f>>>(c+7|0)&1|c<<1}else c=0;e=pe[908+(c<<2)>>2]|0;e:do{if(!e){i=0;e=0;b=86}else{a=r;i=0;s=f<<((c|0)==31?0:25-(c>>>1)|0);u=e;e=0;while(1){o=pe[u+4>>2]&-8;r=o-f|0;if(r>>>0<a>>>0)if((o|0)==(f|0)){o=u;e=u;b=90;break e}else e=u;else r=a;b=pe[u+20>>2]|0;u=pe[u+16+(s>>>31<<2)>>2]|0;i=(b|0)==0|(b|0)==(u|0)?i:b;if(!u){b=86;break}else{a=r;s=s<<1}}}}while(0);if((b|0)==86){if((i|0)==0&(e|0)==0){e=2<<c;e=l&(e|0-e);if(!e){m=f;break}e=(e&0-e)+-1|0;h=e>>>12&16;e=e>>>h;l=e>>>5&8;e=e>>>l;p=e>>>2&4;e=e>>>p;m=e>>>1&2;e=e>>>m;i=e>>>1&1;i=pe[908+((l|h|p|m|i)+(e>>>i)<<2)>>2]|0;e=0}if(!i){s=r;u=e}else{o=i;b=90}}if((b|0)==90)while(1){b=0;m=(pe[o+4>>2]&-8)-f|0;i=m>>>0<r>>>0;r=i?m:r;e=i?o:e;i=pe[o+16>>2]|0;if(i){o=i;b=90;continue}o=pe[o+20>>2]|0;if(!o){s=r;u=e;break}else b=90}if((u|0)!=0?s>>>0<((pe[153]|0)-f|0)>>>0:0){i=pe[155]|0;if(u>>>0<i>>>0)Xe();a=u+f|0;if(u>>>0>=a>>>0)Xe();o=pe[u+24>>2]|0;r=pe[u+12>>2]|0;do{if((r|0)==(u|0)){e=u+20|0;t=pe[e>>2]|0;if(!t){e=u+16|0;t=pe[e>>2]|0;if(!t){d=0;break}}while(1){r=t+20|0;n=pe[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=pe[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0<i>>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{n=pe[u+8>>2]|0;if(n>>>0<i>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(u|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(u|0)){pe[t>>2]=r;pe[e>>2]=n;d=r;break}else Xe()}}while(0);do{if(o){t=pe[u+28>>2]|0;e=908+(t<<2)|0;if((u|0)==(pe[e>>2]|0)){pe[e>>2]=d;if(!d){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(u|0))pe[t>>2]=d;else pe[o+20>>2]=d;if(!d)break}e=pe[155]|0;if(d>>>0<e>>>0)Xe();pe[d+24>>2]=o;t=pe[u+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[d+16>>2]=t;pe[t+24>>2]=d;break}}while(0);t=pe[u+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[d+20>>2]=t;pe[t+24>>2]=d;break}}}while(0);e:do{if(s>>>0>=16){pe[u+4>>2]=f|3;pe[u+(f|4)>>2]=s|1;pe[u+(s+f)>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;y=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;y=n}pe[v>>2]=a;pe[y+12>>2]=a;pe[u+(f+8)>>2]=y;pe[u+(f+12)>>2]=n;break}t=s>>>8;if(t)if(s>>>0>16777215)n=31;else{N=(t+1048320|0)>>>16&8;j=t<<N;L=(j+520192|0)>>>16&4;j=j<<L;n=(j+245760|0)>>>16&2;n=14-(L|N|n)+(j<<n>>>15)|0;n=s>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;pe[u+(f+28)>>2]=n;pe[u+(f+20)>>2]=0;pe[u+(f+16)>>2]=0;e=pe[152]|0;r=1<<n;if(!(e&r)){pe[152]=e|r;pe[t>>2]=a;pe[u+(f+24)>>2]=t;pe[u+(f+12)>>2]=a;pe[u+(f+8)>>2]=a;break}t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(s|0)){n=s<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(s|0)){T=r;break t}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=a;pe[u+(f+24)>>2]=t;pe[u+(f+12)>>2]=a;pe[u+(f+8)>>2]=a;break e}}else T=t}while(0);t=T+8|0;e=pe[t>>2]|0;j=pe[155]|0;if(e>>>0>=j>>>0&T>>>0>=j>>>0){pe[e+12>>2]=a;pe[t>>2]=a;pe[u+(f+8)>>2]=e;pe[u+(f+12)>>2]=T;pe[u+(f+24)>>2]=0;break}else Xe()}else{j=s+f|0;pe[u+4>>2]=j|3;j=u+(j+4)|0;pe[j>>2]=pe[j>>2]|1}}while(0);j=u+8|0;return j|0}else m=f}else m=f}else m=-1}while(0);r=pe[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+m;pe[153]=t;pe[e+(m+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=m|3}else{pe[153]=0;pe[156]=0;pe[e+4>>2]=r|3;j=e+(r+4)|0;pe[j>>2]=pe[j>>2]|1}j=e+8|0;return j|0}e=pe[154]|0;if(e>>>0>m>>>0){N=e-m|0;pe[154]=N;j=pe[157]|0;pe[157]=j+m;pe[j+(m+4)>>2]=N|1;pe[j+4>>2]=m|3;j=j+8|0;return j|0}do{if(!(pe[269]|0)){e=Ie(30)|0;if(!(e+-1&e)){pe[271]=e;pe[270]=e;pe[272]=-1;pe[273]=-1;pe[274]=0;pe[262]=0;T=(He(0)|0)&-16^1431655768;pe[269]=T;break}else Xe()}}while(0);u=m+48|0;s=pe[271]|0;c=m+47|0;a=s+c|0;s=0-s|0;l=a&s;if(l>>>0<=m>>>0){j=0;return j|0}e=pe[261]|0;if((e|0)!=0?(y=pe[259]|0,T=y+l|0,T>>>0<=y>>>0|T>>>0>e>>>0):0){j=0;return j|0}e:do{if(!(pe[262]&4)){e=pe[157]|0;t:do{if(e){i=1052;while(1){r=pe[i>>2]|0;if(r>>>0<=e>>>0?(g=i+4|0,(r+(pe[g>>2]|0)|0)>>>0>e>>>0):0){o=i;e=g;break}i=pe[i+8>>2]|0;if(!i){b=174;break t}}r=a-(pe[154]|0)&s;if(r>>>0<2147483647){i=Ae(r|0)|0;T=(i|0)==((pe[o>>2]|0)+(pe[e>>2]|0)|0);e=T?r:0;if(T){if((i|0)!=(-1|0)){x=i;p=e;b=194;break e}}else b=184}else e=0}else b=174}while(0);do{if((b|0)==174){o=Ae(0)|0;if((o|0)!=(-1|0)){e=o;r=pe[270]|0;i=r+-1|0;if(!(i&e))r=l;else r=l-e+(i+e&0-r)|0;e=pe[259]|0;i=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){T=pe[261]|0;if((T|0)!=0?i>>>0<=e>>>0|i>>>0>T>>>0:0){e=0;break}i=Ae(r|0)|0;T=(i|0)==(o|0);e=T?r:0;if(T){x=o;p=e;b=194;break e}else b=184}else e=0}else e=0}}while(0);t:do{if((b|0)==184){o=0-r|0;do{if(u>>>0>r>>>0&(r>>>0<2147483647&(i|0)!=(-1|0))?(_=pe[271]|0,_=c-r+_&0-_,_>>>0<2147483647):0)if((Ae(_|0)|0)==(-1|0)){Ae(o|0)|0;break t}else{r=_+r|0;break}}while(0);if((i|0)!=(-1|0)){x=i;p=r;b=194;break e}}}while(0);pe[262]=pe[262]|4;b=191}else{e=0;b=191}}while(0);if((((b|0)==191?l>>>0<2147483647:0)?(x=Ae(l|0)|0,w=Ae(0)|0,x>>>0<w>>>0&((x|0)!=(-1|0)&(w|0)!=(-1|0))):0)?(S=w-x|0,M=S>>>0>(m+40|0)>>>0,M):0){p=M?S:e;b=194}if((b|0)==194){e=(pe[259]|0)+p|0;pe[259]=e;if(e>>>0>(pe[260]|0)>>>0)pe[260]=e;a=pe[157]|0;e:do{if(a){o=1052;do{e=pe[o>>2]|0;r=o+4|0;i=pe[r>>2]|0;if((x|0)==(e+i|0)){P=e;E=r;C=i;k=o;b=204;break}o=pe[o+8>>2]|0}while((o|0)!=0);if(((b|0)==204?(pe[k+12>>2]&8|0)==0:0)?a>>>0<x>>>0&a>>>0>=P>>>0:0){pe[E>>2]=C+p;j=(pe[154]|0)+p|0;N=a+8|0;N=(N&7|0)==0?0:0-N&7;L=j-N|0;pe[157]=a+N;pe[154]=L;pe[a+(N+4)>>2]=L|1;pe[a+(j+4)>>2]=40;pe[158]=pe[273];break}e=pe[155]|0;if(x>>>0<e>>>0){pe[155]=x;e=x}r=x+p|0;o=1052;while(1){if((pe[o>>2]|0)==(r|0)){i=o;r=o;b=212;break}o=pe[o+8>>2]|0;if(!o){r=1052;break}}if((b|0)==212)if(!(pe[r+12>>2]&8)){pe[i>>2]=x;h=r+4|0;pe[h>>2]=(pe[h>>2]|0)+p;h=x+8|0;h=(h&7|0)==0?0:0-h&7;c=x+(p+8)|0;c=(c&7|0)==0?0:0-c&7;t=x+(c+p)|0;f=h+m|0;d=x+f|0;l=t-(x+h)-m|0;pe[x+(h+4)>>2]=m|3;t:do{if((t|0)!=(a|0)){if((t|0)==(pe[156]|0)){j=(pe[153]|0)+l|0;pe[153]=j;pe[156]=d;pe[x+(f+4)>>2]=j|1;pe[x+(j+f)>>2]=j;break}s=p+4|0;r=pe[x+(s+c)>>2]|0;if((r&3|0)==1){u=r&-8;o=r>>>3;r:do{if(r>>>0>=256){a=pe[x+((c|24)+p)>>2]|0;n=pe[x+(p+12+c)>>2]|0;do{if((n|0)==(t|0)){i=c|16;n=x+(s+i)|0;r=pe[n>>2]|0;if(!r){n=x+(i+p)|0;r=pe[n>>2]|0;if(!r){D=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<e>>>0)Xe();else{pe[n>>2]=0;D=r;break}}else{i=pe[x+((c|8)+p)>>2]|0;if(i>>>0<e>>>0)Xe();e=i+12|0;if((pe[e>>2]|0)!=(t|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(t|0)){pe[e>>2]=n;pe[r>>2]=i;D=n;break}else Xe()}}while(0);if(!a)break;e=pe[x+(p+28+c)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(pe[r>>2]|0)){if(a>>>0<(pe[155]|0)>>>0)Xe();e=a+16|0;if((pe[e>>2]|0)==(t|0))pe[e>>2]=D;else pe[a+20>>2]=D;if(!D)break r}else{pe[r>>2]=D;if(D)break;pe[152]=pe[152]&~(1<<e);break r}}while(0);r=pe[155]|0;if(D>>>0<r>>>0)Xe();pe[D+24>>2]=a;t=c|16;e=pe[x+(t+p)>>2]|0;do{if(e)if(e>>>0<r>>>0)Xe();else{pe[D+16>>2]=e;pe[e+24>>2]=D;break}}while(0);t=pe[x+(s+t)>>2]|0;if(!t)break;if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[D+20>>2]=t;pe[t+24>>2]=D;break}}else{n=pe[x+((c|8)+p)>>2]|0;i=pe[x+(p+12+c)>>2]|0;r=644+(o<<1<<2)|0;do{if((n|0)!=(r|0)){if(n>>>0<e>>>0)Xe();if((pe[n+12>>2]|0)==(t|0))break;Xe()}}while(0);if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<o);break}do{if((i|0)==(r|0))A=i+8|0;else{if(i>>>0<e>>>0)Xe();e=i+8|0;if((pe[e>>2]|0)==(t|0)){A=e;break}Xe()}}while(0);pe[n+12>>2]=i;pe[A>>2]=n}}while(0);t=x+((u|c)+p)|0;i=u+l|0}else i=l;t=t+4|0;pe[t>>2]=pe[t>>2]&-2;pe[x+(f+4)>>2]=i|1;pe[x+(i+f)>>2]=i;t=i>>>3;if(i>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;do{if(!(r&t)){pe[151]=r|t;L=644+(e+2<<2)|0;N=n}else{t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0>=(pe[155]|0)>>>0){L=t;N=e;break}Xe()}}while(0);pe[L>>2]=d;pe[N+12>>2]=d;pe[x+(f+8)>>2]=N;pe[x+(f+12)>>2]=n;break}t=i>>>8;do{if(!t)n=0;else{if(i>>>0>16777215){n=31;break}L=(t+1048320|0)>>>16&8;N=t<<L;D=(N+520192|0)>>>16&4;N=N<<D;n=(N+245760|0)>>>16&2;n=14-(D|L|n)+(N<<n>>>15)|0;n=i>>>(n+7|0)&1|n<<1}}while(0);t=908+(n<<2)|0;pe[x+(f+28)>>2]=n;pe[x+(f+20)>>2]=0;pe[x+(f+16)>>2]=0;e=pe[152]|0;r=1<<n;if(!(e&r)){pe[152]=e|r;pe[t>>2]=d;pe[x+(f+24)>>2]=t;pe[x+(f+12)>>2]=d;pe[x+(f+8)>>2]=d;break}t=pe[t>>2]|0;r:do{if((pe[t+4>>2]&-8|0)!=(i|0)){n=i<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(i|0)){j=r;break r}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=d;pe[x+(f+24)>>2]=t;pe[x+(f+12)>>2]=d;pe[x+(f+8)>>2]=d;break t}}else j=t}while(0);t=j+8|0;e=pe[t>>2]|0;N=pe[155]|0;if(e>>>0>=N>>>0&j>>>0>=N>>>0){pe[e+12>>2]=d;pe[t>>2]=d;pe[x+(f+8)>>2]=e;pe[x+(f+12)>>2]=j;pe[x+(f+24)>>2]=0;break}else Xe()}else{j=(pe[154]|0)+l|0;pe[154]=j;pe[157]=d;pe[x+(f+4)>>2]=j|1}}while(0);j=x+(h|8)|0;return j|0}else r=1052;while(1){e=pe[r>>2]|0;if(e>>>0<=a>>>0?(t=pe[r+4>>2]|0,n=e+t|0,n>>>0>a>>>0):0)break;r=pe[r+8>>2]|0}i=e+(t+-39)|0;e=e+(t+-47+((i&7|0)==0?0:0-i&7))|0;i=a+16|0;e=e>>>0<i>>>0?a:e;t=e+8|0;r=x+8|0;r=(r&7|0)==0?0:0-r&7;j=p+-40-r|0;pe[157]=x+r;pe[154]=j;pe[x+(r+4)>>2]=j|1;pe[x+(p+-36)>>2]=40;pe[158]=pe[273];r=e+4|0;pe[r>>2]=27;pe[t>>2]=pe[263];pe[t+4>>2]=pe[264];pe[t+8>>2]=pe[265];pe[t+12>>2]=pe[266];pe[263]=x;pe[264]=p;pe[266]=0;pe[265]=t;t=e+28|0;pe[t>>2]=7;if((e+32|0)>>>0<n>>>0)do{j=t;t=t+4|0;pe[t>>2]=7}while((j+8|0)>>>0<n>>>0);if((e|0)!=(a|0)){o=e-a|0;pe[r>>2]=pe[r>>2]&-2;pe[a+4>>2]=o|1;pe[e>>2]=o;t=o>>>3;if(o>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{O=t;R=e}}else{pe[151]=r|t;O=644+(e+2<<2)|0;R=n}pe[O>>2]=a;pe[R+12>>2]=a;pe[a+8>>2]=R;pe[a+12>>2]=n;break}t=o>>>8;if(t)if(o>>>0>16777215)n=31;else{N=(t+1048320|0)>>>16&8;j=t<<N;L=(j+520192|0)>>>16&4;j=j<<L;n=(j+245760|0)>>>16&2;n=14-(L|N|n)+(j<<n>>>15)|0;n=o>>>(n+7|0)&1|n<<1}else n=0;r=908+(n<<2)|0;pe[a+28>>2]=n;pe[a+20>>2]=0;pe[i>>2]=0;t=pe[152]|0;e=1<<n;if(!(t&e)){pe[152]=t|e;pe[r>>2]=a;pe[a+24>>2]=r;pe[a+12>>2]=a;pe[a+8>>2]=a;break}t=pe[r>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(o|0)){n=o<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(o|0)){I=r;break t}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=a;pe[a+24>>2]=t;pe[a+12>>2]=a;pe[a+8>>2]=a;break e}}else I=t}while(0);t=I+8|0;e=pe[t>>2]|0;j=pe[155]|0;if(e>>>0>=j>>>0&I>>>0>=j>>>0){pe[e+12>>2]=a;pe[t>>2]=a;pe[a+8>>2]=e;pe[a+12>>2]=I;pe[a+24>>2]=0;break}else Xe()}}else{j=pe[155]|0;if((j|0)==0|x>>>0<j>>>0)pe[155]=x;pe[263]=x;pe[264]=p;pe[266]=0;pe[160]=pe[269];pe[159]=-1;t=0;do{j=t<<1;N=644+(j<<2)|0;pe[644+(j+3<<2)>>2]=N;pe[644+(j+2<<2)>>2]=N;t=t+1|0}while((t|0)!=32);j=x+8|0;j=(j&7|0)==0?0:0-j&7;N=p+-40-j|0;pe[157]=x+j;pe[154]=N;pe[x+(j+4)>>2]=N|1;pe[x+(p+-36)>>2]=40;pe[158]=pe[273]}}while(0);t=pe[154]|0;if(t>>>0>m>>>0){N=t-m|0;pe[154]=N;j=pe[157]|0;pe[157]=j+m;pe[j+(m+4)>>2]=N|1;pe[j+4>>2]=m|3;j=j+8|0;return j|0}}j=lr()|0;pe[j>>2]=12;j=0;return j|0}function Ur(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0<s>>>0)Xe();r=pe[e+-4>>2]|0;n=r&3;if((n|0)==1)Xe();d=r&-8;m=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!n)return;u=-8-t|0;l=e+u|0;f=t+d|0;if(l>>>0<s>>>0)Xe();if((l|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){_=l;o=f;break}pe[153]=f;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=f|1;pe[m>>2]=f;return}i=t>>>3;if(t>>>0<256){n=pe[e+(u+8)>>2]|0;r=pe[e+(u+12)>>2]|0;t=644+(i<<1<<2)|0;if((n|0)!=(t|0)){if(n>>>0<s>>>0)Xe();if((pe[n+12>>2]|0)!=(l|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<<i);_=l;o=f;break}if((r|0)!=(t|0)){if(r>>>0<s>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(l|0))a=t;else Xe()}else a=r+8|0;pe[n+12>>2]=r;pe[a>>2]=n;_=l;o=f;break}a=pe[e+(u+24)>>2]|0;n=pe[e+(u+12)>>2]|0;do{if((n|0)==(l|0)){r=e+(u+20)|0;t=pe[r>>2]|0;if(!t){r=e+(u+16)|0;t=pe[r>>2]|0;if(!t){c=0;break}}while(1){n=t+20|0;i=pe[n>>2]|0;if(i){t=i;r=n;continue}n=t+16|0;i=pe[n>>2]|0;if(!i)break;else{t=i;r=n}}if(r>>>0<s>>>0)Xe();else{pe[r>>2]=0;c=t;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0<s>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(l|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(l|0)){pe[t>>2]=n;pe[r>>2]=i;c=n;break}else Xe()}}while(0);if(a){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((l|0)==(pe[r>>2]|0)){pe[r>>2]=c;if(!c){pe[152]=pe[152]&~(1<<t);_=l;o=f;break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(l|0))pe[t>>2]=c;else pe[a+20>>2]=c;if(!c){_=l;o=f;break}}r=pe[155]|0;if(c>>>0<r>>>0)Xe();pe[c+24>>2]=a;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[c+16>>2]=t;pe[t+24>>2]=c;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=t;pe[t+24>>2]=c;_=l;o=f;break}else{_=l;o=f}}else{_=l;o=f}}else{_=t;o=d}}while(0);if(_>>>0>=m>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((m|0)==(pe[157]|0)){y=(pe[154]|0)+o|0;pe[154]=y;pe[157]=_;pe[_+4>>2]=y|1;if((_|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){y=(pe[153]|0)+o|0;pe[153]=y;pe[156]=_;pe[_+4>>2]=y|1;pe[_+y>>2]=y;return}o=(r&-8)+o|0;i=r>>>3;do{if(r>>>0>=256){a=pe[e+(d+16)>>2]|0;t=pe[e+(d|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(d+12)|0;t=pe[r>>2]|0;if(!t){r=e+(d+8)|0;t=pe[r>>2]|0;if(!t){p=0;break}}while(1){n=t+20|0;i=pe[n>>2]|0;if(i){t=i;r=n;continue}n=t+16|0;i=pe[n>>2]|0;if(!i)break;else{t=i;r=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=0;p=t;break}}else{r=pe[e+d>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();n=r+12|0;if((pe[n>>2]|0)!=(m|0))Xe();i=t+8|0;if((pe[i>>2]|0)==(m|0)){pe[n>>2]=t;pe[i>>2]=r;p=t;break}else Xe()}}while(0);if(a){t=pe[e+(d+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(m|0))pe[t>>2]=p;else pe[a+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0<r>>>0)Xe();pe[p+24>>2]=a;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[p+16>>2]=t;pe[t+24>>2]=p;break}}while(0);t=pe[e+(d+12)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=t;pe[t+24>>2]=p;break}}}else{n=pe[e+d>>2]|0;r=pe[e+(d|4)>>2]|0;t=644+(i<<1<<2)|0;if((n|0)!=(t|0)){if(n>>>0<(pe[155]|0)>>>0)Xe();if((pe[n+12>>2]|0)!=(m|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<<i);break}if((r|0)!=(t|0)){if(r>>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(m|0))h=t;else Xe()}else h=r+8|0;pe[n+12>>2]=r;pe[h>>2]=n}}while(0);pe[_+4>>2]=o|1;pe[_+o>>2]=o;if((_|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[t>>2]=r&-2;pe[_+4>>2]=o|1;pe[_+o>>2]=o}t=o>>>3;if(o>>>0<256){r=t<<1;i=644+(r<<2)|0;n=pe[151]|0;t=1<<t;if(n&t){t=644+(r+2<<2)|0;r=pe[t>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{g=t;v=r}}else{pe[151]=n|t;g=644+(r+2<<2)|0;v=i}pe[g>>2]=_;pe[v+12>>2]=_;pe[_+8>>2]=v;pe[_+12>>2]=i;return}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{g=(t+1048320|0)>>>16&8;v=t<<g;m=(v+520192|0)>>>16&4;v=v<<m;i=(v+245760|0)>>>16&2;i=14-(m|g|i)+(v<<i>>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[_+28>>2]=i;pe[_+20>>2]=0;pe[_+16>>2]=0;r=pe[152]|0;n=1<<i;e:do{if(r&n){t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(o|0)){i=o<<((i|0)==31?0:25-(i>>>1)|0);while(1){r=t+16+(i>>>31<<2)|0;n=pe[r>>2]|0;if(!n)break;if((pe[n+4>>2]&-8|0)==(o|0)){y=n;break t}else{i=i<<1;t=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=_;pe[_+24>>2]=t;pe[_+12>>2]=_;pe[_+8>>2]=_;break e}}else y=t}while(0);t=y+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&y>>>0>=v>>>0){pe[r+12>>2]=_;pe[t>>2]=_;pe[_+8>>2]=r;pe[_+12>>2]=y;pe[_+24>>2]=0;break}else Xe()}else{pe[152]=r|n;pe[t>>2]=_;pe[_+24>>2]=t;pe[_+12>>2]=_;pe[_+8>>2]=_}}while(0);_=(pe[159]|0)+-1|0;pe[159]=_;if(!_)t=1060;else return;while(1){t=pe[t>>2]|0;if(!t)break;else t=t+8|0}pe[159]=-1;return}function Xr(e,t){e=e|0;t=t|0;var r=0,n=0;if(!e){e=zr(t)|0;return e|0}if(t>>>0>4294967231){e=lr()|0;pe[e>>2]=12;e=0;return e|0}r=Hr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=zr(t)|0;if(!r){e=0;return e|0}n=pe[e+-4>>2]|0;n=(n&-8)-((n&3|0)==0?8:4)|0;Qr(r|0,e|0,(n>>>0<t>>>0?n:t)|0)|0;Ur(e);e=r;return e|0}function qr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=pe[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Hr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;l=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0<l>>>0))Xe();n=e+(u|4)|0;i=pe[n>>2]|0;if(!(i&1))Xe();if(!r){if(t>>>0<256){e=0;return e|0}if(u>>>0>=(t+4|0)>>>0?(u-t|0)>>>0<=pe[271]<<1>>>0:0)return e|0;e=0;return e|0}if(u>>>0>=t>>>0){r=u-t|0;if(r>>>0<=15)return e|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|3;pe[n>>2]=pe[n>>2]|1;Yr(e+t|0,r);return e|0}if((l|0)==(pe[157]|0)){r=(pe[154]|0)+u|0;if(r>>>0<=t>>>0){e=0;return e|0}h=r-t|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=h|1;pe[157]=e+t;pe[154]=h;return e|0}if((l|0)==(pe[156]|0)){n=(pe[153]|0)+u|0;if(n>>>0<t>>>0){e=0;return e|0}r=n-t|0;if(r>>>0>15){pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|1;pe[e+n>>2]=r;n=e+(n+4)|0;pe[n>>2]=pe[n>>2]&-2;n=e+t|0}else{pe[d>>2]=p&1|n|2;n=e+(n+4)|0;pe[n>>2]=pe[n>>2]|1;n=0;r=0}pe[153]=r;pe[156]=n;return e|0}if(i&2){e=0;return e|0}f=(i&-8)+u|0;if(f>>>0<t>>>0){e=0;return e|0}h=f-t|0;o=i>>>3;do{if(i>>>0>=256){a=pe[e+(u+24)>>2]|0;o=pe[e+(u+12)>>2]|0;do{if((o|0)==(l|0)){n=e+(u+20)|0;r=pe[n>>2]|0;if(!r){n=e+(u+16)|0;r=pe[n>>2]|0;if(!r){c=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<s>>>0)Xe();else{pe[n>>2]=0;c=r;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0<s>>>0)Xe();r=i+12|0;if((pe[r>>2]|0)!=(l|0))Xe();n=o+8|0;if((pe[n>>2]|0)==(l|0)){pe[r>>2]=o;pe[n>>2]=i;c=o;break}else Xe()}}while(0);if(a){r=pe[e+(u+28)>>2]|0;n=908+(r<<2)|0;if((l|0)==(pe[n>>2]|0)){pe[n>>2]=c;if(!c){pe[152]=pe[152]&~(1<<r);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();r=a+16|0;if((pe[r>>2]|0)==(l|0))pe[r>>2]=c;else pe[a+20>>2]=c;if(!c)break}n=pe[155]|0;if(c>>>0<n>>>0)Xe();pe[c+24>>2]=a;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0<n>>>0)Xe();else{pe[c+16>>2]=r;pe[r+24>>2]=c;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;break}}}else{i=pe[e+(u+8)>>2]|0;n=pe[e+(u+12)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<s>>>0)Xe();if((pe[i+12>>2]|0)!=(l|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);break}if((n|0)!=(r|0)){if(n>>>0<s>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(l|0))a=r;else Xe()}else a=n+8|0;pe[i+12>>2]=n;pe[a>>2]=i}}while(0);if(h>>>0<16){pe[d>>2]=f|p&1|2;t=e+(f|4)|0;pe[t>>2]=pe[t>>2]|1;return e|0}else{pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=h|3;p=e+(f|4)|0;pe[p>>2]=pe[p>>2]|1;Yr(e+t|0,h);return e|0}return 0}function Yr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0;m=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){c=pe[e>>2]|0;if(!(r&3))return;h=e+(0-c)|0;f=c+t|0;u=pe[155]|0;if(h>>>0<u>>>0)Xe();if((h|0)==(pe[156]|0)){n=e+(t+4)|0;r=pe[n>>2]|0;if((r&3|0)!=3){y=h;a=f;break}pe[153]=f;pe[n>>2]=r&-2;pe[e+(4-c)>>2]=f|1;pe[m>>2]=f;return}o=c>>>3;if(c>>>0<256){i=pe[e+(8-c)>>2]|0;n=pe[e+(12-c)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();if((pe[i+12>>2]|0)!=(h|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);y=h;a=f;break}if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(h|0))s=r;else Xe()}else s=n+8|0;pe[i+12>>2]=n;pe[s>>2]=i;y=h;a=f;break}s=pe[e+(24-c)>>2]|0;i=pe[e+(12-c)>>2]|0;do{if((i|0)==(h|0)){i=16-c|0;n=e+(i+4)|0;r=pe[n>>2]|0;if(!r){n=e+i|0;r=pe[n>>2]|0;if(!r){l=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<u>>>0)Xe();else{pe[n>>2]=0;l=r;break}}else{o=pe[e+(8-c)>>2]|0;if(o>>>0<u>>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(h|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(h|0)){pe[r>>2]=i;pe[n>>2]=o;l=i;break}else Xe()}}while(0);if(s){r=pe[e+(28-c)>>2]|0;n=908+(r<<2)|0;if((h|0)==(pe[n>>2]|0)){pe[n>>2]=l;if(!l){pe[152]=pe[152]&~(1<<r);y=h;a=f;break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(h|0))pe[r>>2]=l;else pe[s+20>>2]=l;if(!l){y=h;a=f;break}}i=pe[155]|0;if(l>>>0<i>>>0)Xe();pe[l+24>>2]=s;r=16-c|0;n=pe[e+r>>2]|0;do{if(n)if(n>>>0<i>>>0)Xe();else{pe[l+16>>2]=n;pe[n+24>>2]=l;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;y=h;a=f;break}else{y=h;a=f}}else{y=h;a=f}}else{y=e;a=t}}while(0);u=pe[155]|0;if(m>>>0<u>>>0)Xe();r=e+(t+4)|0;n=pe[r>>2]|0;if(!(n&2)){if((m|0)==(pe[157]|0)){v=(pe[154]|0)+a|0;pe[154]=v;pe[157]=y;pe[y+4>>2]=v|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){v=(pe[153]|0)+a|0;pe[153]=v;pe[156]=y;pe[y+4>>2]=v|1;pe[y+v>>2]=v;return}a=(n&-8)+a|0;o=n>>>3;do{if(n>>>0>=256){s=pe[e+(t+24)>>2]|0;i=pe[e+(t+12)>>2]|0;do{if((i|0)==(m|0)){n=e+(t+20)|0;r=pe[n>>2]|0;if(!r){n=e+(t+16)|0;r=pe[n>>2]|0;if(!r){p=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<u>>>0)Xe();else{pe[n>>2]=0;p=r;break}}else{o=pe[e+(t+8)>>2]|0;if(o>>>0<u>>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(m|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(m|0)){pe[r>>2]=i;pe[n>>2]=o;p=i;break}else Xe()}}while(0);if(s){r=pe[e+(t+28)>>2]|0;n=908+(r<<2)|0;if((m|0)==(pe[n>>2]|0)){pe[n>>2]=p;if(!p){pe[152]=pe[152]&~(1<<r);break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(m|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}n=pe[155]|0;if(p>>>0<n>>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0<n>>>0)Xe();else{pe[p+16>>2]=r;pe[r+24>>2]=p;break}}while(0);r=pe[e+(t+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=r;pe[r+24>>2]=p;break}}}else{i=pe[e+(t+8)>>2]|0;n=pe[e+(t+12)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();if((pe[i+12>>2]|0)!=(m|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);break}if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(m|0))d=r;else Xe()}else d=n+8|0;pe[i+12>>2]=n;pe[d>>2]=i}}while(0);pe[y+4>>2]=a|1;pe[y+a>>2]=a;if((y|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[r>>2]=n&-2;pe[y+4>>2]=a|1;pe[y+a>>2]=a}r=a>>>3;if(a>>>0<256){n=r<<1;o=644+(n<<2)|0;i=pe[151]|0;r=1<<r;if(i&r){r=644+(n+2<<2)|0;n=pe[r>>2]|0;if(n>>>0<(pe[155]|0)>>>0)Xe();else{g=r;v=n}}else{pe[151]=i|r;g=644+(n+2<<2)|0;v=o}pe[g>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=o;return}r=a>>>8;if(r)if(a>>>0>16777215)o=31;else{g=(r+1048320|0)>>>16&8;v=r<<g;m=(v+520192|0)>>>16&4;v=v<<m;o=(v+245760|0)>>>16&2;o=14-(m|g|o)+(v<<o>>>15)|0;o=a>>>(o+7|0)&1|o<<1}else o=0;r=908+(o<<2)|0;pe[y+28>>2]=o;pe[y+20>>2]=0;pe[y+16>>2]=0;n=pe[152]|0;i=1<<o;if(!(n&i)){pe[152]=n|i;pe[r>>2]=y;pe[y+24>>2]=r;pe[y+12>>2]=y;pe[y+8>>2]=y;return}r=pe[r>>2]|0;e:do{if((pe[r+4>>2]&-8|0)!=(a|0)){o=a<<((o|0)==31?0:25-(o>>>1)|0);while(1){n=r+16+(o>>>31<<2)|0;i=pe[n>>2]|0;if(!i)break;if((pe[i+4>>2]&-8|0)==(a|0)){r=i;break e}else{o=o<<1;r=i}}if(n>>>0<(pe[155]|0)>>>0)Xe();pe[n>>2]=y;pe[y+24>>2]=r;pe[y+12>>2]=y;pe[y+8>>2]=y;return}}while(0);n=r+8|0;i=pe[n>>2]|0;v=pe[155]|0;if(!(i>>>0>=v>>>0&r>>>0>=v>>>0))Xe();pe[i+12>>2]=y;pe[n>>2]=y;pe[y+8>>2]=i;pe[y+12>>2]=r;pe[y+24>>2]=0;return}function Gr(){}function Wr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;n=t-n-(r>>>0>e>>>0|0)>>>0;return(re=n,e-r>>>0|0)|0}function Vr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;n=e+r|0;if((r|0)>=20){t=t&255;o=e&3;a=t|t<<8|t<<16|t<<24;i=n&~3;if(o){o=e+4-o|0;while((e|0)<(o|0)){de[e>>0]=t;e=e+1|0}}while((e|0)<(i|0)){pe[e>>2]=a;e=e+4|0}}while((e|0)<(n|0)){de[e>>0]=t;e=e+1|0}return e-r|0}function Kr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=0;return t>>>r-32|0}function Jr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<<r|(e&(1<<r)-1<<32-r)>>>32-r;return e<<r}re=e<<r-32;return 0}function Zr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;r=e+r>>>0;return(re=t+n+(r>>>0<e>>>0|0)>>>0,r|0)|0}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if((r|0)>=4096)return Re(e|0,t|0,r|0)|0;n=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return n|0;de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){pe[e>>2]=pe[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return n|0}function $r(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=(t|0)<0?-1:0;return t>>r-32|0}function en(e){e=e|0;var t=0;t=de[g+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[g+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[g+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[g+(e>>>24)>>0]|0)+24|0}function tn(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0;o=e&65535;i=t&65535;r=ye(i,o)|0;n=e>>>16;e=(r>>>16)+(ye(i,n)|0)|0;i=t>>>16;t=ye(i,o)|0;return(re=(e>>>16)+(ye(i,n)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function rn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;c=t>>31|((t|0)<0?-1:0)<<1;u=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;o=n>>31|((n|0)<0?-1:0)<<1;i=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;s=Wr(c^e,u^t,c,u)|0;a=re;e=o^c;t=i^u;return Wr((un(s,a,Wr(o^r,i^n,o,i)|0,re,0)|0)^e,re^t,e,t)|0}function nn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;i=ve;ve=ve+16|0;s=i|0;a=t>>31|((t|0)<0?-1:0)<<1;o=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;c=n>>31|((n|0)<0?-1:0)<<1;u=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;e=Wr(a^e,o^t,a,o)|0;t=re;un(e,t,Wr(c^r,u^n,c,u)|0,re,s)|0;n=Wr(pe[s>>2]^a,pe[s+4>>2]^o,a,o)|0;r=re;ve=i;return(re=r,n)|0}function on(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;i=e;o=r;r=tn(i,o)|0;e=re;return(re=(ye(t,o)|0)+(ye(n,i)|0)+e|e&0,r|0|0)|0}function an(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return un(e,t,r,n,0)|0}function sn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;o=ve;ve=ve+16|0;i=o|0;un(e,t,r,n,i)|0;ve=o;return(re=pe[i+4>>2]|0,pe[i>>2]|0)|0}function un(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;l=e;u=t;c=u;a=r;h=n;s=h;if(!c){o=(i|0)!=0;if(!s){if(o){pe[i>>2]=(l>>>0)%(a>>>0);pe[i+4>>2]=0}h=0;i=(l>>>0)/(a>>>0)>>>0;return(re=h,i)|0}else{if(!o){h=0;i=0;return(re=h,i)|0}pe[i>>2]=e|0;pe[i+4>>2]=t&0;h=0;i=0;return(re=h,i)|0}}o=(s|0)==0;do{if(a){if(!o){o=(ae(s|0)|0)-(ae(c|0)|0)|0;if(o>>>0<=31){f=o+1|0;s=31-o|0;t=o-31>>31;a=f;e=l>>>(f>>>0)&t|c<<s;t=c>>>(f>>>0)&t;o=0;s=l<<s;break}if(!i){h=0;i=0;return(re=h,i)|0}pe[i>>2]=e|0;pe[i+4>>2]=u|t&0;h=0;i=0;return(re=h,i)|0}o=a-1|0;if(o&a){s=(ae(a|0)|0)+33-(ae(c|0)|0)|0;p=64-s|0;f=32-s|0;u=f>>31;d=s-32|0;t=d>>31;a=s;e=f-1>>31&c>>>(d>>>0)|(c<<f|l>>>(s>>>0))&t;t=t&c>>>(s>>>0);o=l<<p&u;s=(c<<p|l>>>(d>>>0))&u|l<<f&s-33>>31;break}if(i){pe[i>>2]=o&l;pe[i+4>>2]=0}if((a|0)==1){d=u|t&0;p=e|0|0;return(re=d,p)|0}else{p=en(a|0)|0;d=c>>>(p>>>0)|0;p=c<<32-p|l>>>(p>>>0)|0;return(re=d,p)|0}}else{if(o){if(i){pe[i>>2]=(c>>>0)%(a>>>0);pe[i+4>>2]=0}d=0;p=(c>>>0)/(a>>>0)>>>0;return(re=d,p)|0}if(!l){if(i){pe[i>>2]=0;pe[i+4>>2]=(c>>>0)%(s>>>0)}d=0;p=(c>>>0)/(s>>>0)>>>0;return(re=d,p)|0}o=s-1|0;if(!(o&s)){if(i){pe[i>>2]=e|0;pe[i+4>>2]=o&c|t&0}d=0;p=c>>>((en(s|0)|0)>>>0);return(re=d,p)|0}o=(ae(s|0)|0)-(ae(c|0)|0)|0;if(o>>>0<=30){t=o+1|0;s=31-o|0;a=t;e=c<<s|l>>>(t>>>0);t=c>>>(t>>>0);o=0;s=l<<s;break}if(!i){d=0;p=0;return(re=d,p)|0}pe[i>>2]=e|0;pe[i+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!a){c=s;u=0;s=0}else{f=r|0|0;l=h|n&0;c=Zr(f|0,l|0,-1,-1)|0;r=re;u=s;s=0;do{n=u;u=o>>>31|u<<1;o=s|o<<1;n=e<<1|n>>>31|0;h=e>>>31|t<<1|0;Wr(c,r,n,h)|0;p=re;d=p>>31|((p|0)<0?-1:0)<<1;s=d&1;e=Wr(n,h,d&f,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l)|0;t=re;a=a-1|0}while((a|0)!=0);c=u;u=0}a=0;if(i){pe[i>>2]=e;pe[i+4>>2]=t}d=(o|0)>>>31|(c|a)<<1|(a<<1|o>>>31)&0|u;p=(o<<1|0>>>31)&-2|s;return(re=d,p)|0}function cn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return En[e&7](t|0,r|0,n|0)|0}function ln(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;Cn[e&3](t|0,r|0,n|0,i|0,o|0)}function fn(e,t){e=e|0;t=t|0;kn[e&7](t|0)}function hn(e,t){e=e|0;t=t|0;return An[e&1](t|0)|0}function dn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;On[e&0](t|0,r|0,n|0)}function pn(e){e=e|0;Rn[e&3]()}function mn(e,t,r,n,i,o,a){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;In[e&3](t|0,r|0,n|0,i|0,o|0,a|0)}function gn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;return Dn[e&1](t|0,r|0,n|0,i|0,o|0)|0}function vn(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;Ln[e&3](t|0,r|0,n|0,i|0)}function yn(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function _n(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;se(1)}function bn(e){e=e|0;se(2)}function xn(e){e=e|0;se(3);return 0}function wn(e,t,r){e=e|0;t=t|0;r=r|0;se(4)}function Tn(){se(5)}function Sn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;se(6)}function Mn(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;se(7);return 0}function Pn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;se(8)}var En=[yn,Vt,Nr,kr,Cr,Ar,yn,yn];var Cn=[_n,tr,er,_n];var kn=[bn,qt,Gt,Ht,Yt,Wt,ur,Lr];var An=[xn,Er];var On=[wn];var Rn=[Tn,ar,sr,Tn];var In=[Sn,nr,rr,Sn];var Dn=[Mn,ut];var Ln=[Pn,Jt,Zt,Pn];return{___cxa_can_catch:ir,_crn_get_levels:Tt,_crn_get_uncompressed_size:Mt,_crn_decompress:Pt,_i64Add:Zr,_crn_get_width:xt,___cxa_is_pointer_type:or,_i64Subtract:Wr,_memset:Vr,_malloc:zr,_free:Ur,_memcpy:Qr,_bitshift64Lshr:Kr,_fflush:gr,_bitshift64Shl:Jr,_crn_get_height:wt,___errno_location:lr,_crn_get_dxt_format:St,runPostSets:Gr,_emscripten_replace_memory:Ve,stackAlloc:Ke,stackSave:Je,stackRestore:Ze,establishStackSpace:Qe,setThrew:$e,setTempRet0:rt,getTempRet0:nt,dynCall_iiii:cn,dynCall_viiiii:ln,dynCall_vi:fn,dynCall_ii:hn,dynCall_viii:dn,dynCall_v:pn,dynCall_viiiiii:mn,dynCall_iiiiii:gn,dynCall_viiii:vn}}(e.Ya,e.Za,buffer);e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress;var zc=e._i64Add=Z._i64Add;e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type;var nb=e._i64Subtract=Z._i64Subtract,qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory;e._crn_get_dxt_format=Z._crn_get_dxt_format;var rb=e._bitshift64Lshr=Z._bitshift64Lshr,Na=e._free=Z._free;e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location;var sb=e._bitshift64Shl=Z._bitshift64Shl;function ia(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};function td(t){function r(){if(!e.calledRun&&(e.calledRun=!0,!na)){if(Ha||(Ha=!0,ab(cb)),ab(db),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._main&&vd&&e.callMain(t),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)gb(e.postRun.shift());ab(eb)}}if(t=t||e.arguments,null===rd&&(rd=Date.now()),!(0<I)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)fb(e.preRun.shift());ab(bb),0<I||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),r()},1)):r())}}function ud(t,r){if(!r||!e.noExitRuntime)throw!e.noExitRuntime&&(na=!0,m=void 0,ab(H),e.onExit)&&e.onExit(t),da?(process.stdout.once("drain",function(){process.exit(t)}),console.log(" "),setTimeout(function(){process.exit(t)},500)):ea&&"function"==typeof quit&&quit(t),new ia(t)}e.callMain=e.zd=function(t){function r(){for(var e=0;e<3;e++)i.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var n=t.length+1,i=[D(hb(e.thisProgram),"i8",0)];r();for(var o=0;o<n-1;o+=1)i.push(D(hb(t[o]),"i8",0)),r();i.push(0),i=D(i,"i32",0);try{ud(e._main(n,i,0),!0)}catch(t){if(!(t instanceof ia)){if("SimulateInfiniteLoop"!=t)throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t;e.noExitRuntime=!0}}},e.run=e.run=td,e.exit=e.exit=ud;var wd=[];function x(t){t=void 0!==t?(e.print(t),e.W(t),JSON.stringify(t)):"",na=!0;var r="abort("+t+") at "+Oa()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw wd&&wd.forEach(function(e){r=e(r,t)}),r}if(e.abort=e.abort=x,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var vd=!0;e.noInitialRun&&(vd=!1),td(),window.Module=e,function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).pixiCompressedTextures=e()}}(function(){var define,module,exports;return function o(a,s,u){function c(r,e){if(!s[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(l)return l(r,!0);var n=new Error("Cannot find module '"+r+"'");throw n.code="MODULE_NOT_FOUND",n}var i=s[r]={exports:{}};a[r][0].call(i.exports,function(e){var t=a[r][1][e];return c(t||e)},i,i.exports,o,a,s,u)}return s[r].exports}for(var l="function"==typeof require&&require,e=0;e<u.length;e++)c(u[e]);return c}({1:[function(require,module,exports){(function(process,Buffer,__dirname){var e;e||(e=eval("(function() { try { return Module || {} } catch(e) { return {} } })()"));var aa={},k;for(k in e)e.hasOwnProperty(k)&&(aa[k]=e[k]);var ba="object"==typeof window,ca="function"==typeof importScripts,da="object"==typeof process&&"function"==typeof require&&!ba&&!ca,ea=!ba&&!da&&!ca;if(da){e.print||(e.print=function(e){process.stdout.write(e+"\n")}),e.printErr||(e.printErr=function(e){process.stderr.write(e+"\n")});var fa=require("fs"),ga=require("path");e.read=function(e,t){e=ga.normalize(e);var r=fa.readFileSync(e);return r||e==ga.resolve(e)||(e=path.join(__dirname,"..","src",e),r=fa.readFileSync(e)),r&&!t&&(r=r.toString()),r},e.readBinary=function(t){return(t=e.read(t,!0)).buffer||(t=new Uint8Array(t)),assert(t.buffer),t},e.load=function(e){ha(read(e))},e.thisProgram||(e.thisProgram=1<process.argv.length?process.argv[1].replace(/\\/g,"/"):"unknown-program"),e.arguments=process.argv.slice(2),void 0!==module&&(module.exports=e),process.on("uncaughtException",function(e){if(!(e instanceof ia))throw e}),e.inspect=function(){return"[Emscripten Module object]"}}else if(ea)e.print||(e.print=print),"undefined"!=typeof printErr&&(e.printErr=printErr),e.read="undefined"!=typeof read?read:function(){throw"no read() available (jsc?)"},e.readBinary=function(e){return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(assert("object"==typeof(e=read(e,"binary"))),e)},"undefined"!=typeof scriptArgs?e.arguments=scriptArgs:void 0!==arguments&&(e.arguments=arguments),eval("if (typeof gc === 'function' && gc.toString().indexOf('[native code]') > 0) var gc = undefined");else{if(!ba&&!ca)throw"Unknown runtime environment. Where are we?";e.read=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},void 0!==arguments&&(e.arguments=arguments),"undefined"!=typeof console?(e.print||(e.print=function(e){console.log(e)}),e.printErr||(e.printErr=function(e){console.log(e)})):e.print||(e.print=function(){}),ca&&(e.load=importScripts),void 0===e.setWindowTitle&&(e.setWindowTitle=function(e){document.title=e})}function ha(e){eval.call(null,e)}for(k in!e.load&&e.read&&(e.load=function(t){ha(e.read(t))}),e.print||(e.print=function(){}),e.printErr||(e.printErr=e.print),e.arguments||(e.arguments=[]),e.thisProgram||(e.thisProgram="./this.program"),e.print=e.print,e.W=e.printErr,e.preRun=[],e.postRun=[],aa)aa.hasOwnProperty(k)&&(e[k]=aa[k]);var n={rb:function(e){ka=e},fb:function(){return ka},ua:function(){return m},ba:function(e){m=e},Ka:function(e){switch(e){case"i1":case"i8":return 1;case"i16":return 2;case"i32":return 4;case"i64":return 8;case"float":return 4;case"double":return 8;default:return"*"===e[e.length-1]?n.J:"i"===e[0]?(assert(0==(e=parseInt(e.substr(1)))%8),e/8):0}},eb:function(e){return Math.max(n.Ka(e),n.J)},ud:16,Qd:function(e,t){return"double"===t||"i64"===t?7&e&&(assert(4==(7&e)),e+=4):assert(0==(3&e)),e},Ed:function(e,t,r){return r||"i64"!=e&&"double"!=e?e?Math.min(t||(e?n.eb(e):0),n.J):Math.min(t,8):8},L:function(t,r,n){return n&&n.length?(n.splice||(n=Array.prototype.slice.call(n)),n.splice(0,0,r),e["dynCall_"+t].apply(null,n)):e["dynCall_"+t].call(null,r)},Z:[],Xa:function(e){for(var t=0;t<n.Z.length;t++)if(!n.Z[t])return n.Z[t]=e,2*(1+t);throw"Finished up all reserved function pointers. Use a higher value for RESERVED_FUNCTION_POINTERS."},nb:function(e){n.Z[(e-2)/2]=null},O:function(t){n.O.ta||(n.O.ta={}),n.O.ta[t]||(n.O.ta[t]=1,e.W(t))},ma:{},Hd:function(e,t){assert(t),n.ma[t]||(n.ma[t]={});var r=n.ma[t];return r[e]||(r[e]=function(){return n.L(t,e,arguments)}),r[e]},Fd:function(){throw"You must build with -s RETAIN_COMPILER_SETTINGS=1 for Runtime.getCompilerSetting or emscripten_get_compiler_setting to work"},aa:function(e){var t=m;return m=(m=m+e|0)+15&-16,t},Ra:function(e){var t=la;return la=(la=la+e|0)+15&-16,t},R:function(e){var n=r;return t<=(r=(r=r+e|0)+15&-16)&&!ma()?(r=n,0):n},ja:function(e,t){return Math.ceil(e/(t||16))*(t||16)},Nd:function(e,t,r){return r?+(e>>>0)+4294967296*+(t>>>0):+(e>>>0)+4294967296*+(0|t)},Ua:8,J:4,vd:0};e.Runtime=n,n.addFunction=n.Xa,n.removeFunction=n.nb;var na=!1,oa,pa,ka,ra,sa;function assert(e,t){e||x("Assertion failed: "+t)}function qa(a){var b=e["_"+a];if(!b)try{b=eval("_"+a)}catch(e){}return assert(b,"Cannot call unknown function "+a+" (perhaps LLVM optimizations or closure removed it?)"),b}function wa(e,t,r){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":y[e>>0]=t;break;case"i16":z[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":pa=[t>>>0,(oa=t,1<=+xa(oa)?0<oa?(0|ya(+za(oa/4294967296),4294967295))>>>0:~~+Aa((oa-+(~~oa>>>0))/4294967296)>>>0:0)],C[e>>2]=pa[0],C[e+4>>2]=pa[1];break;case"float":Ba[e>>2]=t;break;case"double":Ca[e>>3]=t;break;default:x("invalid type for setValue: "+r)}}function Da(e,t){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return y[e>>0];case"i16":return z[e>>1];case"i32":case"i64":return C[e>>2];case"float":return Ba[e>>2];case"double":return Ca[e>>3];default:x("invalid type for setValue: "+t)}return null}function D(e,t,r,i){var o,a;a="number"==typeof e?(o=!0,e):(o=!1,e.length);var s,u,c="string"==typeof t?t:null;if(r=4==r?i:[Ea,n.aa,n.Ra,n.R][void 0===r?2:r](Math.max(a,c?1:t.length)),o){for(assert(0==(3&(i=r))),e=r+(-4&a);i<e;i+=4)C[i>>2]=0;for(e=r+a;i<e;)y[i++>>0]=0;return r}if("i8"===c)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i<a;){var l=e[i];"function"==typeof l&&(l=n.Id(l)),0===(o=c||t[i])?i++:("i64"==o&&(o="i32"),wa(r+i,l,o),u!==o&&(s=n.Ka(o),u=o),i+=s)}return r}function va(t,r){if(0===r||!t)return"";for(var n,i=0,o=0;(i|=n=E[t+o>>0],0!=n||r)&&(o++,!r||o!=r););if(r||(r=o),n="",i<128){for(;0<r;)i=String.fromCharCode.apply(String,E.subarray(t,t+Math.min(r,1024))),n=n?n+i:i,t+=1024,r-=1024;return n}return e.UTF8ToString(t)}function Ja(e,t){for(var r,n,i,o,a,s="";;){if(!(r=e[t++]))return s;128&r?(n=63&e[t++],192==(224&r)?s+=String.fromCharCode((31&r)<<6|n):(i=63&e[t++],(r=224==(240&r)?(15&r)<<12|n<<6|i:(o=63&e[t++],240==(248&r)?(7&r)<<18|n<<12|i<<6|o:(a=63&e[t++],248==(252&r)?(3&r)<<24|n<<18|i<<12|o<<6|a:(1&r)<<30|n<<24|i<<18|o<<12|a<<6|63&e[t++])))<65536?s+=String.fromCharCode(r):(r-=65536,s+=String.fromCharCode(55296|r>>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,n){if(!(0<n))return 0;var i=r;n=r+n-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(n<=r)break;t[r++]=a}else{if(a<=2047){if(n<=r+1)break;t[r++]=192|a>>6}else{if(a<=65535){if(n<=r+2)break;t[r++]=224|a>>12}else{if(a<=2097151){if(n<=r+3)break;t[r++]=240|a>>18}else{if(a<=67108863){if(n<=r+4)break;t[r++]=248|a>>24}else{if(n<=r+5)break;t[r++]=252|a>>30,t[r++]=128|a>>24&63}t[r++]=128|a>>18&63}t[r++]=128|a>>12&63}t[r++]=128|a>>6&63}t[r++]=128|63&a}}return t[r]=0,r-i}function La(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t=n<=2047?t+2:n<=65535?t+3:n<=2097151?t+4:n<=67108863?t+5:t+6}return t}function Ma(l){var t=!!e.___cxa_demangle;if(t)try{var r=Ea(l.length);ua(l.substr(1),r);var i=Ea(4),o=e.___cxa_demangle(r,0,0,i);if(0===Da(i,"i32")&&o)return va(o)}catch(e){}finally{r&&Na(r),i&&Na(i),o&&Na(o)}var f=3,h={v:"void",b:"bool",c:"char",s:"short",i:"int",l:"long",f:"float",d:"double",w:"wchar_t",a:"signed char",h:"unsigned char",t:"unsigned short",j:"unsigned int",m:"unsigned long",x:"long long",y:"unsigned long long",z:"..."},d=[],p=!0;r=l;try{if("Object._main"==l||"_main"==l)return"main()";if("number"==typeof l&&(l=va(l)),"_"!==l[0]||"_"!==l[1]||"Z"!==l[2])return l;switch(l[3]){case"n":return"operator new()";case"d":return"operator delete()"}r=function e(t,r,n){r=r||1/0;var i,o="",a=[];if("N"===l[f]){for("K"===l[++f]&&f++,i=[];"E"!==l[f];)if("S"===l[f]){f++;var s=l.indexOf("_",f);i.push(d[l.substring(f,s)||0]||"?"),f=s+1}else if("C"===l[f])i.push(i[i.length-1]),f+=2;else{var u=(s=parseInt(l.substr(f))).toString().length;if(!s||!u){f--;break}var c=l.substr(f+u,s);i.push(c),d.push(c),f+=u+s}if(f++,i=i.join("::"),0==--r)return t?[i]:i}else("K"===l[f]||p&&"L"===l[f])&&f++,(s=parseInt(l.substr(f)))&&(u=s.toString().length,i=l.substr(f+u,s),f+=u+s);p=!1,"I"===l[f]?(f++,s=e(!0),o+=(u=e(!0,1,!0))[0]+" "+i+"<"+s.join(", ")+">"):o=i;e:for(;f<l.length&&0<r--;)if(i=l[f++],i in h)a.push(h[i]);else switch(i){case"P":a.push(e(!0,1,!0)[0]+"*");break;case"R":a.push(e(!0,1,!0)[0]+"&");break;case"L":f++,s=l.indexOf("E",f)-f,a.push(l.substr(f,s)),f+=s+2;break;case"A":if(s=parseInt(l.substr(f)),f+=s.toString().length,"_"!==l[f])throw"?";f++,a.push(e(!0,1,!0)[0]+" ["+s+"]");break;case"E":break e;default:o+="?"+i;break e}return n||1!==a.length||"void"!==a[0]||(a=[]),t?(o&&a.push(o+"?"),a):o+"("+a.join(", ")+")"}()}catch(e){r+="?"}return 0<=r.indexOf("?")&&!t&&n.O("warning: a problem occurred in builtin C++ name demangling; build with -s DEMANGLE_SUPPORT=1 to link in libcxxabi demangling"),r}function Oa(){return Pa().replace(/__Z[\w\d_]+/g,function(e){var t=Ma(e);return e===t?e:e+" ["+t+"]"})}function Pa(){var t=Error();if(!t.stack){try{throw Error(0)}catch(e){t=e}if(!t.stack)return"(no stack trace available)"}return t.stack.toString()}function Qa(e){return 0<e%4096&&(e+=4096-e%4096),e}!function(){function a(e){return{arguments:(e=e.toString().match(d).slice(1))[0],body:e[1],returnValue:e[2]}}var b={stackSave:function(){n.ua()},stackRestore:function(){n.ba()},arrayToC:function(e){var t=n.aa(e.length);return ta(e,t),t},stringToC:function(e){var t=0;return null!=e&&0!==e&&ua(e,t=n.aa(1+(e.length<<2))),t}},c={string:b.stringToC,array:b.arrayToC};sa=function(e,t,r,i,o){e=qa(e);var a=[],s=0;if(i)for(var u=0;u<i.length;u++){var l=c[r[u]];l?(0===s&&(s=n.ua()),a[u]=l(i[u])):a[u]=i[u]}if(r=e.apply(null,a),"string"===t&&(r=va(r)),0!==s){if(o&&o.async)return void EmterpreterAsync.yd.push(function(){n.ba(s)});n.ba(s)}return r};var d=/^function\s*\(([^)]*)\)\s*{\s*([^*]*?)[\s;]*(?:return\s*(.*?)[;\s]*)?}$/,f={},g;for(g in b)b.hasOwnProperty(g)&&(f[g]=a(b[g]));ra=function(b,c,d){d=d||[];var g=qa(b);b=d.every(function(e){return"number"===e});var q="string"!==c;if(q&&b)return g;var v=d.map(function(e,t){return"$"+t});c="(function("+v.join(",")+") {";var B=d.length;if(!b){c+="var stack = "+f.stackSave.body+";";for(var G=0;G<B;G++){var O=v[G],ja=d[G];"number"!==ja&&(ja=f[ja+"ToC"],c+="var "+ja.arguments+" = "+O+";",c+=ja.body+";",c+=O+"="+ja.returnValue+";")}}return d=a(function(){return g}).returnValue,c+="var ret = "+d+"("+v.join(",")+");",q||(d=a(function(){return va}).returnValue,c+="ret = "+d+"(ret);"),b||(c+=f.stackRestore.body.replace("()","(stack)")+";"),eval(c+"return ret})")}}(),e.ccall=sa,e.cwrap=ra,e.setValue=wa,e.getValue=Da,e.ALLOC_NORMAL=0,e.ALLOC_STACK=1,e.ALLOC_STATIC=2,e.ALLOC_DYNAMIC=3,e.ALLOC_NONE=4,e.allocate=D,e.getMemory=function(e){return Fa?void 0!==Ga&&!Ga.p||!Ha?n.R(e):Ea(e):n.Ra(e)},e.Pointer_stringify=va,e.AsciiToString=function(e){for(var t="";;){var r=y[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}},e.stringToAscii=function(e,t){return Ia(e,t,!1)},e.UTF8ArrayToString=Ja,e.UTF8ToString=function(e){return Ja(E,e)},e.stringToUTF8Array=Ka,e.stringToUTF8=function(e,t,r){return Ka(e,E,t,r)},e.lengthBytesUTF8=La,e.UTF16ToString=function(e){for(var t=0,r="";;){var n=z[e+2*t>>1];if(0==n)return r;++t,r+=String.fromCharCode(n)}},e.stringToUTF16=function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;var n=t;r=(r-=2)<2*e.length?r/2:e.length;for(var i=0;i<r;++i)z[t>>1]=e.charCodeAt(i),t+=2;return z[t>>1]=0,t-n},e.lengthBytesUTF16=function(e){return 2*e.length},e.UTF32ToString=function(e){for(var t=0,r="";;){var n=C[e+4*t>>2];if(0==n)return r;++t,65536<=n?(n-=65536,r+=String.fromCharCode(55296|n>>10,56320|1023&n)):r+=String.fromCharCode(n)}},e.stringToUTF32=function(e,t,r){if(void 0===r&&(r=2147483647),r<4)return 0;var n=t;r=n+r-4;for(var i=0;i<e.length;++i){if(55296<=(o=e.charCodeAt(i))&&o<=57343)var o=65536+((1023&o)<<10)|1023&e.charCodeAt(++i);if(C[t>>2]=o,r<(t+=4)+4)break}return C[t>>2]=0,t-n},e.lengthBytesUTF32=function(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);55296<=n&&n<=57343&&++r,t+=4}return t},e.stackTrace=function(){return Oa()};var y,E,z,Ra,C,Sa,Ba,Ca,Ta=0,la=0,Fa=!1,Ua=0,m=0,Va=0,Wa=0,r=0,Ya,buffer;function ma(){var n=Math.pow(2,31);if(n<=r)return!1;for(;t<=r;)if(t<n/2)t=Qa(2*t);else{var i=t;if((t=Qa((3*t+n)/4))<=i)return!1}if(n<=(t=Math.max(t,16777216)))return!1;try{if(ArrayBuffer.p)buffer=ArrayBuffer.p(buffer,t);else{var o=y;buffer=new ArrayBuffer(t)}}catch(e){return!1}return!!Xa(buffer)&&(e.buffer=buffer,e.HEAP8=y=new Int8Array(buffer),e.HEAP16=z=new Int16Array(buffer),e.HEAP32=C=new Int32Array(buffer),e.HEAPU8=E=new Uint8Array(buffer),e.HEAPU16=Ra=new Uint16Array(buffer),e.HEAPU32=Sa=new Uint32Array(buffer),e.HEAPF32=Ba=new Float32Array(buffer),e.HEAPF64=Ca=new Float64Array(buffer),ArrayBuffer.p||y.set(o),!0)}try{Ya=Function.prototype.call.bind(Object.getOwnPropertyDescriptor(ArrayBuffer.prototype,"byteLength").get),Ya(new ArrayBuffer(4))}catch(e){Ya=function(e){return e.byteLength}}for(var $a=e.TOTAL_STACK||5242880,t=e.TOTAL_MEMORY||16777216,F=65536;F<t||F<2*$a;)F=F<16777216?2*F:F+16777216;function ab(e){for(;0<e.length;){var t=e.shift();if("function"==typeof t)t();else{var r=t.ab;"number"==typeof r?void 0===t.X?n.L("v",r):n.L("vi",r,[t.X]):r(void 0===t.X?null:t.X)}}}F=Math.max(F,16777216),F!==t&&(t=F),assert("undefined"!=typeof Int32Array&&"undefined"!=typeof Float64Array&&!!new Int32Array(1).subarray&&!!new Int32Array(1).set,"JS engine does not provide full typed array support"),buffer=new ArrayBuffer(t),y=new Int8Array(buffer),z=new Int16Array(buffer),C=new Int32Array(buffer),E=new Uint8Array(buffer),Ra=new Uint16Array(buffer),Sa=new Uint32Array(buffer),Ba=new Float32Array(buffer),Ca=new Float64Array(buffer),C[0]=255,assert(255===E[0]&&0===E[3],"Typed arrays 2 must be run on a little-endian system"),e.HEAP=void 0,e.buffer=buffer,e.HEAP8=y,e.HEAP16=z,e.HEAP32=C,e.HEAPU8=E,e.HEAPU16=Ra,e.HEAPU32=Sa,e.HEAPF32=Ba,e.HEAPF64=Ca;var bb=[],cb=[],db=[],H=[],eb=[],Ha=!1;function fb(e){bb.unshift(e)}function gb(e){eb.unshift(e)}function hb(e,t,r){return e=Ka(e,r=Array(0<r?r:La(e)+1),0,r.length),t&&(r.length=e),r}function ua(e,t,r){for(e=hb(e,r),r=0;r<e.length;)y[t+r>>0]=e[r],r+=1}function ta(e,t){for(var r=0;r<e.length;r++)y[t++>>0]=e[r]}function Ia(e,t,r){for(var n=0;n<e.length;++n)y[t++>>0]=e.charCodeAt(n);r||(y[t>>0]=0)}e.addOnPreRun=fb,e.addOnInit=function(e){cb.unshift(e)},e.addOnPreMain=function(e){db.unshift(e)},e.addOnExit=function(e){H.unshift(e)},e.addOnPostRun=gb,e.intArrayFromString=hb,e.intArrayToString=function(e){for(var t=[],r=0;r<e.length;r++){var n=e[r];255<n&&(n&=255),t.push(String.fromCharCode(n))}return t.join("")},e.writeStringToMemory=ua,e.writeArrayToMemory=ta,e.writeAsciiToMemory=Ia,Math.imul&&-5===Math.imul(4294967295,5)||(Math.imul=function(e,t){var r=65535&e,n=65535&t;return r*n+((e>>>16)*n+r*(t>>>16)<<16)|0}),Math.Jd=Math.imul,Math.clz32||(Math.clz32=function(e){e>>>=0;for(var t=0;t<32;t++)if(e&1<<31-t)return t;return 32}),Math.Ad=Math.clz32;var xa=Math.abs,Aa=Math.ceil,za=Math.floor,ya=Math.min,I=0,ib=null,jb=null;function kb(){I++,e.monitorRunDependencies&&e.monitorRunDependencies(I)}function lb(){if(I--,e.monitorRunDependencies&&e.monitorRunDependencies(I),0==I&&(null!==ib&&(clearInterval(ib),ib=null),jb)){var t=jb;jb=null,t()}}e.addRunDependency=kb,e.removeRunDependency=lb,e.preloadedImages={},e.preloadedAudios={},Ta=8,la=Ta+5888,cb.push(),D([124,0,0,0,98,7,0,0,124,0,0,0,111,7,0,0,164,0,0,0,124,7,0,0,16,0,0,0,0,0,0,0,164,0,0,0,157,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,227,7,0,0,24,0,0,0,0,0,0,0,164,0,0,0,191,7,0,0,56,0,0,0,0,0,0,0,164,0,0,0,5,8,0,0,40,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,40,0,0,0,1,0,0,0,2,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,88,0,0,0,1,0,0,0,5,0,0,0,3,0,0,0,4,0,0,0,1,0,0,0,2,0,0,0,2,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,114,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,124,1,0,0,236,1,0,0,236,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,3,0,0,0,4,0,0,0,239,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,5,0,0,0,4,0,0,0,231,16,0,0,0,4,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,255,255,255,255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,115,40,37,117,41,58,32,65,115,115,101,114,116,105,111,110,32,102,97,105,108,117,114,101,58,32,34,37,115,34,10,0,109,95,115,105,122,101,32,60,61,32,109,95,99,97,112,97,99,105,116,121,0,46,47,99,114,110,95,100,101,99,111,109,112,46,104,0,109,105,110,95,110,101,119,95,99,97,112,97,99,105,116,121,32,60,32,40,48,120,55,70,70,70,48,48,48,48,85,32,47,32,101,108,101,109,101,110,116,95,115,105,122,101,41,0,110,101,119,95,99,97,112,97,99,105,116,121,32,38,38,32,40,110,101,119,95,99,97,112,97,99,105,116,121,32,62,32,109,95,99,97,112,97,99,105,116,121,41,0,110,117,109,95,99,111,100,101,115,91,99,93,0,115,111,114,116,101,100,95,112,111,115,32,60,32,116,111,116,97,108,95,117,115,101,100,95,115,121,109,115,0,112,67,111,100,101,115,105,122,101,115,91,115,121,109,95,105,110,100,101,120,93,32,61,61,32,99,111,100,101,115,105,122,101,0,116,32,60,32,40,49,85,32,60,60,32,116,97,98,108,101,95,98,105,116,115,41,0,109,95,108,111,111,107,117,112,91,116,93,32,61,61,32,99,85,73,78,84,51,50,95,77,65,88,0,99,114,110,100,95,109,97,108,108,111,99,58,32,115,105,122,101,32,116,111,111,32,98,105,103,0,99,114,110,100,95,109,97,108,108,111,99,58,32,111,117,116,32,111,102,32,109,101,109,111,114,121,0,40,40,117,105,110,116,51,50,41,112,95,110,101,119,32,38,32,40,67,82,78,68,95,77,73,78,95,65,76,76,79,67,95,65,76,73,71,78,77,69,78,84,32,45,32,49,41,41,32,61,61,32,48,0,99,114,110,100,95,114,101,97,108,108,111,99,58,32,98,97,100,32,112,116,114,0,99,114,110,100,95,102,114,101,101,58,32,98,97,100,32,112,116,114,0,102,97,108,115,101,0,40,116,111,116,97,108,95,115,121,109,115,32,62,61,32,49,41,32,38,38,32,40,116,111,116,97,108,95,115,121,109,115,32,60,61,32,112,114,101,102,105,120,95,99,111,100,105,110,103,58,58,99,77,97,120,83,117,112,112,111,114,116,101,100,83,121,109,115,41,0,17,18,19,20,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15,16,48,0,110,117,109,95,98,105,116,115,32,60,61,32,51,50,85,0,109,95,98,105,116,95,99,111,117,110,116,32,60,61,32,99,66,105,116,66,117,102,83,105,122,101,0,116,32,33,61,32,99,85,73,78,84,51,50,95,77,65,88,0,109,111,100,101,108,46,109,95,99,111,100,101,95,115,105,122,101,115,91,115,121,109,93,32,61,61,32,108,101,110,0,0,2,3,1,0,2,3,4,5,6,7,1,40,108,101,110,32,62,61,32,49,41,32,38,38,32,40,108,101,110,32,60,61,32,99,77,97,120,69,120,112,101,99,116,101,100,67,111,100,101,83,105,122,101,41,0,105,32,60,32,109,95,115,105,122,101,0,110,101,120,116,95,108,101,118,101,108,95,111,102,115,32,62,32,99,117,114,95,108,101,118,101,108,95,111,102,115,0,1,2,2,3,3,3,3,4,0,0,0,0,0,0,1,1,0,1,0,1,0,0,1,2,1,2,0,0,0,1,0,2,1,0,2,0,0,1,2,3,110,117,109,32,38,38,32,40,110,117,109,32,61,61,32,126,110,117,109,95,99,104,101,99,107,41,0,83,116,57,101,120,99,101,112,116,105,111,110,0,83,116,57,116,121,112,101,95,105,110,102,111,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,54,95,95,115,104,105,109,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,57,95,95,112,111,105,110,116,101,114,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,49,55,95,95,112,98,97,115,101,95,116,121,112,101,95,105,110,102,111,69,0,78,49,48,95,95,99,120,120,97,98,105,118,49,50,48,95,95,115,105,95,99,108,97,115,115,95,116,121,112,101,95,105,110,102,111,69,0,112,116,104,114,101,97,100,95,111,110,99,101,32,102,97,105,108,117,114,101,32,105,110,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,95,102,97,115,116,40,41,0,116,101,114,109,105,110,97,116,101,95,104,97,110,100,108,101,114,32,117,110,101,120,112,101,99,116,101,100,108,121,32,114,101,116,117,114,110,101,100,0,99,97,110,110,111,116,32,99,114,101,97,116,101,32,112,116,104,114,101,97,100,32,107,101,121,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,99,97,110,110,111,116,32,122,101,114,111,32,111,117,116,32,116,104,114,101,97,100,32,118,97,108,117,101,32,102,111,114,32,95,95,99,120,97,95,103,101,116,95,103,108,111,98,97,108,115,40,41,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,58,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,101,120,99,101,112,116,105,111,110,32,111,102,32,116,121,112,101,32,37,115,0,116,101,114,109,105,110,97,116,105,110,103,32,119,105,116,104,32,37,115,32,102,111,114,101,105,103,110,32,101,120,99,101,112,116,105,111,110,0,116,101,114,109,105,110,97,116,105,110,103,0,117,110,99,97,117,103,104,116,0,84,33,34,25,13,1,2,3,17,75,28,12,16,4,11,29,18,30,39,104,110,111,112,113,98,32,5,6,15,19,20,21,26,8,22,7,40,36,23,24,9,10,14,27,31,37,35,131,130,125,38,42,43,60,61,62,63,67,71,74,77,88,89,90,91,92,93,94,95,96,97,99,100,101,102,103,105,106,107,108,114,115,116,121,122,123,124,0,73,108,108,101,103,97,108,32,98,121,116,101,32,115,101,113,117,101,110,99,101,0,68,111,109,97,105,110,32,101,114,114,111,114,0,82,101,115,117,108,116,32,110,111,116,32,114,101,112,114,101,115,101,110,116,97,98,108,101,0,78,111,116,32,97,32,116,116,121,0,80,101,114,109,105,115,115,105,111,110,32,100,101,110,105,101,100,0,79,112,101,114,97,116,105,111,110,32,110,111,116,32,112,101,114,109,105,116,116,101,100,0,78,111,32,115,117,99,104,32,102,105,108,101,32,111,114,32,100,105,114,101,99,116,111,114,121,0,78,111,32,115,117,99,104,32,112,114,111,99,101,115,115,0,70,105,108,101,32,101,120,105,115,116,115,0,86,97,108,117,101,32,116,111,111,32,108,97,114,103,101,32,102,111,114,32,100,97,116,97,32,116,121,112,101,0,78,111,32,115,112,97,99,101,32,108,101,102,116,32,111,110,32,100,101,118,105,99,101,0,79,117,116,32,111,102,32,109,101,109,111,114,121,0,82,101,115,111,117,114,99,101,32,98,117,115,121,0,73,110,116,101,114,114,117,112,116,101,100,32,115,121,115,116,101,109,32,99,97,108,108,0,82,101,115,111,117,114,99,101,32,116,101,109,112,111,114,97,114,105,108,121,32,117,110,97,118,97,105,108,97,98,108,101,0,73,110,118,97,108,105,100,32,115,101,101,107,0,67,114,111,115,115,45,100,101,118,105,99,101,32,108,105,110,107,0,82,101,97,100,45,111,110,108,121,32,102,105,108,101,32,115,121,115,116,101,109,0,68,105,114,101,99,116,111,114,121,32,110,111,116,32,101,109,112,116,121,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,112,101,101,114,0,79,112,101,114,97,116,105,111,110,32,116,105,109,101,100,32,111,117,116,0,67,111,110,110,101,99,116,105,111,110,32,114,101,102,117,115,101,100,0,72,111,115,116,32,105,115,32,100,111,119,110,0,72,111,115,116,32,105,115,32,117,110,114,101,97,99,104,97,98,108,101,0,65,100,100,114,101,115,115,32,105,110,32,117,115,101,0,66,114,111,107,101,110,32,112,105,112,101,0,73,47,79,32,101,114,114,111,114,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,32,111,114,32,97,100,100,114,101,115,115,0,66,108,111,99,107,32,100,101,118,105,99,101,32,114,101,113,117,105,114,101,100,0,78,111,32,115,117,99,104,32,100,101,118,105,99,101,0,78,111,116,32,97,32,100,105,114,101,99,116,111,114,121,0,73,115,32,97,32,100,105,114,101,99,116,111,114,121,0,84,101,120,116,32,102,105,108,101,32,98,117,115,121,0,69,120,101,99,32,102,111,114,109,97,116,32,101,114,114,111,114,0,73,110,118,97,108,105,100,32,97,114,103,117,109,101,110,116,0,65,114,103,117,109,101,110,116,32,108,105,115,116,32,116,111,111,32,108,111,110,103,0,83,121,109,98,111,108,105,99,32,108,105,110,107,32,108,111,111,112,0,70,105,108,101,110,97,109,101,32,116,111,111,32,108,111,110,103,0,84,111,111,32,109,97,110,121,32,111,112,101,110,32,102,105,108,101,115,32,105,110,32,115,121,115,116,101,109,0,78,111,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,115,32,97,118,97,105,108,97,98,108,101,0,66,97,100,32,102,105,108,101,32,100,101,115,99,114,105,112,116,111,114,0,78,111,32,99,104,105,108,100,32,112,114,111,99,101,115,115,0,66,97,100,32,97,100,100,114,101,115,115,0,70,105,108,101,32,116,111,111,32,108,97,114,103,101,0,84,111,111,32,109,97,110,121,32,108,105,110,107,115,0,78,111,32,108,111,99,107,115,32,97,118,97,105,108,97,98,108,101,0,82,101,115,111,117,114,99,101,32,100,101,97,100,108,111,99,107,32,119,111,117,108,100,32,111,99,99,117,114,0,83,116,97,116,101,32,110,111,116,32,114,101,99,111,118,101,114,97,98,108,101,0,80,114,101,118,105,111,117,115,32,111,119,110,101,114,32,100,105,101,100,0,79,112,101,114,97,116,105,111,110,32,99,97,110,99,101,108,101,100,0,70,117,110,99,116,105,111,110,32,110,111,116,32,105,109,112,108,101,109,101,110,116,101,100,0,78,111,32,109,101,115,115,97,103,101,32,111,102,32,100,101,115,105,114,101,100,32,116,121,112,101,0,73,100,101,110,116,105,102,105,101,114,32,114,101,109,111,118,101,100,0,68,101,118,105,99,101,32,110,111,116,32,97,32,115,116,114,101,97,109,0,78,111,32,100,97,116,97,32,97,118,97,105,108,97,98,108,101,0,68,101,118,105,99,101,32,116,105,109,101,111,117,116,0,79,117,116,32,111,102,32,115,116,114,101,97,109,115,32,114,101,115,111,117,114,99,101,115,0,76,105,110,107,32,104,97,115,32,98,101,101,110,32,115,101,118,101,114,101,100,0,80,114,111,116,111,99,111,108,32,101,114,114,111,114,0,66,97,100,32,109,101,115,115,97,103,101,0,70,105,108,101,32,100,101,115,99,114,105,112,116,111,114,32,105,110,32,98,97,100,32,115,116,97,116,101,0,78,111,116,32,97,32,115,111,99,107,101,116,0,68,101,115,116,105,110,97,116,105,111,110,32,97,100,100,114,101,115,115,32,114,101,113,117,105,114,101,100,0,77,101,115,115,97,103,101,32,116,111,111,32,108,97,114,103,101,0,80,114,111,116,111,99,111,108,32,119,114,111,110,103,32,116,121,112,101,32,102,111,114,32,115,111,99,107,101,116,0,80,114,111,116,111,99,111,108,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,80,114,111,116,111,99,111,108,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,83,111,99,107,101,116,32,116,121,112,101,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,78,111,116,32,115,117,112,112,111,114,116,101,100,0,80,114,111,116,111,99,111,108,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,0,65,100,100,114,101,115,115,32,102,97,109,105,108,121,32,110,111,116,32,115,117,112,112,111,114,116,101,100,32,98,121,32,112,114,111,116,111,99,111,108,0,65,100,100,114,101,115,115,32,110,111,116,32,97,118,97,105,108,97,98,108,101,0,78,101,116,119,111,114,107,32,105,115,32,100,111,119,110,0,78,101,116,119,111,114,107,32,117,110,114,101,97,99,104,97,98,108,101,0,67,111,110,110,101,99,116,105,111,110,32,114,101,115,101,116,32,98,121,32,110,101,116,119,111,114,107,0,67,111,110,110,101,99,116,105,111,110,32,97,98,111,114,116,101,100,0,78,111,32,98,117,102,102,101,114,32,115,112,97,99,101,32,97,118,97,105,108,97,98,108,101,0,83,111,99,107,101,116,32,105,115,32,99,111,110,110,101,99,116,101,100,0,83,111,99,107,101,116,32,110,111,116,32,99,111,110,110,101,99,116,101,100,0,67,97,110,110,111,116,32,115,101,110,100,32,97,102,116,101,114,32,115,111,99,107,101,116,32,115,104,117,116,100,111,119,110,0,79,112,101,114,97,116,105,111,110,32,97,108,114,101,97,100,121,32,105,110,32,112,114,111,103,114,101,115,115,0,79,112,101,114,97,116,105,111,110,32,105,110,32,112,114,111,103,114,101,115,115,0,83,116,97,108,101,32,102,105,108,101,32,104,97,110,100,108,101,0,82,101,109,111,116,101,32,73,47,79,32,101,114,114,111,114,0,81,117,111,116,97,32,101,120,99,101,101,100,101,100,0,78,111,32,109,101,100,105,117,109,32,102,111,117,110,100,0,87,114,111,110,103,32,109,101,100,105,117,109,32,116,121,112,101,0,78,111,32,101,114,114,111,114,32,105,110,102,111,114,109,97,116,105,111,110,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,17,0,10,0,17,17,17,0,0,0,0,5,0,0,0,0,0,0,9,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,15,10,17,17,17,3,10,7,0,1,19,9,11,11,0,0,9,6,11,0,0,11,0,6,17,0,0,0,17,17,17,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,17,0,10,10,17,17,17,0,10,0,0,2,0,9,11,0,0,0,9,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,14,0,0,0,0,0,0,0,0,0,0,0,13,0,0,0,4,13,0,0,0,0,9,14,0,0,0,0,0,14,0,0,14,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16,0,0,0,0,0,0,0,0,0,0,0,15,0,0,0,0,15,0,0,0,0,9,16,0,0,0,0,0,16,0,0,16,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,18,0,0,0,18,18,18,0,0,0,0,0,0,9,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,11,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,10,0,0,0,0,9,11,0,0,0,0,0,11,0,0,11,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,0,0,0,0,0,0,0,12,0,0,0,0,12,0,0,0,0,9,12,0,0,0,0,0,12,0,0,12,0,0,48,49,50,51,52,53,54,55,56,57,65,66,67,68,69,70,45,43,32,32,32,48,88,48,120,0,40,110,117,108,108,41,0,45,48,88,43,48,88,32,48,88,45,48,120,43,48,120,32,48,120,0,105,110,102,0,73,78,70,0,110,97,110,0,78,65,78,0,46,0],"i8",4,n.Ua);var mb=n.ja(D(12,"i8",2),8);function ob(t){return e.___errno_location&&(C[e.___errno_location()>>2]=t),t}assert(0==mb%8),e._i64Subtract=nb;var J={I:1,F:2,ed:3,bc:4,H:5,Aa:6,vb:7,zc:8,ea:9,Jb:10,va:11,qd:11,Ta:12,da:13,Vb:14,Lc:15,fa:16,wa:17,rd:18,ha:19,ya:20,P:21,q:22,uc:23,Sa:24,Q:25,nd:26,Wb:27,Hc:28,ia:29,bd:30,nc:31,Vc:32,Sb:33,Zc:34,Dc:42,Zb:43,Kb:44,ec:45,fc:46,gc:47,mc:48,od:49,xc:50,dc:51,Pb:35,Ac:37,Bb:52,Eb:53,sd:54,vc:55,Fb:56,Gb:57,Qb:35,Hb:59,Jc:60,yc:61,kd:62,Ic:63,Ec:64,Fc:65,ad:66,Bc:67,yb:68,gd:69,Lb:70,Wc:71,pc:72,Tb:73,Db:74,Qc:76,Cb:77,$c:78,hc:79,ic:80,lc:81,kc:82,jc:83,Kc:38,za:39,qc:36,ga:40,Rc:95,Uc:96,Ob:104,wc:105,zb:97,Yc:91,Oc:88,Gc:92,cd:108,Nb:111,wb:98,Mb:103,tc:101,rc:100,ld:110,Xb:112,Yb:113,ac:115,Ab:114,Rb:89,oc:90,Xc:93,dd:94,xb:99,sc:102,cc:106,Mc:107,md:109,pd:87,Ub:122,hd:116,Pc:95,Cc:123,$b:84,Sc:75,Ib:125,Nc:131,Tc:130,jd:86};function pb(e,t){H.push(function(){n.L("vi",e,[t])}),pb.level=H.length}function tb(){return!!tb.p}e._memset=qb,e._bitshift64Lshr=rb,e._bitshift64Shl=sb;var ub=[],vb={};function wb(e,t){wb.p||(wb.p={}),e in wb.p||(n.L("v",t),wb.p[e]=1)}var xb={0:"Success",1:"Not super-user",2:"No such file or directory",3:"No such process",4:"Interrupted system call",5:"I/O error",6:"No such device or address",7:"Arg list too long",8:"Exec format error",9:"Bad file number",10:"No children",11:"No more processes",12:"Not enough core",13:"Permission denied",14:"Bad address",15:"Block device required",16:"Mount device busy",17:"File exists",18:"Cross-device link",19:"No such device",20:"Not a directory",21:"Is a directory",22:"Invalid argument",23:"Too many open files in system",24:"Too many open files",25:"Not a typewriter",26:"Text file busy",27:"File too large",28:"No space left on device",29:"Illegal seek",30:"Read only file system",31:"Too many links",32:"Broken pipe",33:"Math arg out of domain of func",34:"Math result not representable",35:"File locking deadlock error",36:"File or path name too long",37:"No record locks available",38:"Function not implemented",39:"Directory not empty",40:"Too many symbolic links",42:"No message of desired type",43:"Identifier removed",44:"Channel number out of range",45:"Level 2 not synchronized",46:"Level 3 halted",47:"Level 3 reset",48:"Link number out of range",49:"Protocol driver not attached",50:"No CSI structure available",51:"Level 2 halted",52:"Invalid exchange",53:"Invalid request descriptor",54:"Exchange full",55:"No anode",56:"Invalid request code",57:"Invalid slot",59:"Bad font file fmt",60:"Device not a stream",61:"No data (for no delay io)",62:"Timer expired",63:"Out of streams resources",64:"Machine is not on the network",65:"Package not installed",66:"The object is remote",67:"The link has been severed",68:"Advertise error",69:"Srmount error",70:"Communication error on send",71:"Protocol error",72:"Multihop attempted",73:"Cross mount point (not really error)",74:"Trying to read unreadable message",75:"Value too large for defined data type",76:"Given log. name not unique",77:"f.d. invalid for this operation",78:"Remote address changed",79:"Can access a needed shared lib",80:"Accessing a corrupted shared lib",81:".lib section in a.out corrupted",82:"Attempting to link in too many libs",83:"Attempting to exec a shared library",84:"Illegal byte sequence",86:"Streams pipe error",87:"Too many users",88:"Socket operation on non-socket",89:"Destination address required",90:"Message too long",91:"Protocol wrong type for socket",92:"Protocol not available",93:"Unknown protocol",94:"Socket type not supported",95:"Not supported",96:"Protocol family not supported",97:"Address family not supported by protocol family",98:"Address already in use",99:"Address not available",100:"Network interface is not configured",101:"Network is unreachable",102:"Connection reset by network",103:"Connection aborted",104:"Connection reset by peer",105:"No buffer space available",106:"Socket is already connected",107:"Socket is not connected",108:"Can't send after socket shutdown",109:"Too many references",110:"Connection timed out",111:"Connection refused",112:"Host is down",113:"Host is unreachable",114:"Socket already connected",115:"Connection already in progress",116:"Stale file handle",122:"Quota exceeded",123:"No medium (in tape drive)",125:"Operation canceled",130:"Previous owner died",131:"State not recoverable"};function yb(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function zb(e){var t="/"===e.charAt(0),r="/"===e.substr(-1);return(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e}function Ab(e){var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return e=t[0],t=t[1],e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."}function Bb(e){if("/"===e)return"/";var t=e.lastIndexOf("/");return-1===t?e:e.substr(t+1)}function Cb(){return zb(Array.prototype.slice.call(arguments,0).join("/"))}function K(e,t){return zb(e+"/"+t)}function Db(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){if("string"!=typeof(t=0<=r?arguments[r]:"/"))throw new TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return(t?"/":"")+(e=yb(e.split("/").filter(function(e){return!!e}),!t).join("/"))||"."}var Eb=[];function Fb(e,t){Eb[e]={input:[],output:[],N:t},Gb(e,Hb)}var Hb={open:function(e){var t=Eb[e.g.rdev];if(!t)throw new L(J.ha);e.tty=t,e.seekable=!1},close:function(e){e.tty.N.flush(e.tty)},flush:function(e){e.tty.N.flush(e.tty)},read:function(e,t,r,n){if(!e.tty||!e.tty.N.La)throw new L(J.Aa);for(var i=0,o=0;o<n;o++){var a;try{a=e.tty.N.La(e.tty)}catch(e){throw new L(J.H)}if(void 0===a&&0===i)throw new L(J.va);if(null==a)break;i++,t[r+o]=a}return i&&(e.g.timestamp=Date.now()),i},write:function(e,t,r,n){if(!e.tty||!e.tty.N.qa)throw new L(J.Aa);for(var i=0;i<n;i++)try{e.tty.N.qa(e.tty,t[r+i])}catch(e){throw new L(J.H)}return n&&(e.g.timestamp=Date.now()),i}},Ib={La:function(e){if(!e.input.length){var t=null;if(da){var r,n=new Buffer(256),i=process.stdin.fd,o=!1;try{i=fs.openSync("/dev/stdin","r"),o=!0}catch(e){}r=fs.readSync(i,n,0,256,null),o&&fs.closeSync(i),t=0<r?n.slice(0,r).toString("utf-8"):null}else"undefined"!=typeof window&&"function"==typeof window.prompt?null!==(t=window.prompt("Input: "))&&(t+="\n"):"function"==typeof readline&&(null!==(t=readline())&&(t+="\n"));if(!t)return null;e.input=hb(t,!0)}return e.input.shift()},qa:function(t,r){null===r||10===r?(e.print(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.print(Ja(t.output,0)),t.output=[])}},Jb={qa:function(t,r){null===r||10===r?(e.printErr(Ja(t.output,0)),t.output=[]):0!=r&&t.output.push(r)},flush:function(t){t.output&&0<t.output.length&&(e.printErr(Ja(t.output,0)),t.output=[])}},M={C:null,A:function(){return M.createNode(null,"/",16895,0)},createNode:function(e,t,r,n){if(24576==(61440&r)||4096==(61440&r))throw new L(J.I);return M.C||(M.C={dir:{g:{D:M.k.D,u:M.k.u,lookup:M.k.lookup,T:M.k.T,rename:M.k.rename,unlink:M.k.unlink,rmdir:M.k.rmdir,readdir:M.k.readdir,symlink:M.k.symlink},stream:{G:M.n.G}},file:{g:{D:M.k.D,u:M.k.u},stream:{G:M.n.G,read:M.n.read,write:M.n.write,Ba:M.n.Ba,Na:M.n.Na,Pa:M.n.Pa}},link:{g:{D:M.k.D,u:M.k.u,readlink:M.k.readlink},stream:{}},Ea:{g:{D:M.k.D,u:M.k.u},stream:Kb}}),N((r=Lb(e,t,r,n)).mode)?(r.k=M.C.dir.g,r.n=M.C.dir.stream,r.e={}):32768==(61440&r.mode)?(r.k=M.C.file.g,r.n=M.C.file.stream,r.o=0,r.e=null):40960==(61440&r.mode)?(r.k=M.C.link.g,r.n=M.C.link.stream):8192==(61440&r.mode)&&(r.k=M.C.Ea.g,r.n=M.C.Ea.stream),r.timestamp=Date.now(),e&&(e.e[t]=r),r},cb:function(e){if(e.e&&e.e.subarray){for(var t=[],r=0;r<e.o;++r)t.push(e.e[r]);return t}return e.e},Gd:function(e){return e.e?e.e.subarray?e.e.subarray(0,e.o):new Uint8Array(e.e):new Uint8Array},Ga:function(e,t){if(e.e&&e.e.subarray&&t>e.e.length&&(e.e=M.cb(e),e.o=e.e.length),!e.e||e.e.subarray){var r=e.e?e.e.buffer.byteLength:0;t<=r||(t=Math.max(t,r*(r<1048576?2:1.125)|0),0!=r&&(t=Math.max(t,256)),r=e.e,e.e=new Uint8Array(t),0<e.o&&e.e.set(r.subarray(0,e.o),0))}else for(!e.e&&0<t&&(e.e=[]);e.e.length<t;)e.e.push(0)},ob:function(e,t){if(e.o!=t)if(0==t)e.e=null,e.o=0;else{if(!e.e||e.e.subarray){var r=e.e;e.e=new Uint8Array(new ArrayBuffer(t)),r&&e.e.set(r.subarray(0,Math.min(t,e.o)))}else if(e.e||(e.e=[]),e.e.length>t)e.e.length=t;else for(;e.e.length<t;)e.e.push(0);e.o=t}},k:{D:function(e){var t={};return t.dev=8192==(61440&e.mode)?e.id:1,t.ino=e.id,t.mode=e.mode,t.nlink=1,t.uid=0,t.gid=0,t.rdev=e.rdev,N(e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.o:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.atime=new Date(e.timestamp),t.mtime=new Date(e.timestamp),t.ctime=new Date(e.timestamp),t.K=4096,t.blocks=Math.ceil(t.size/t.K),t},u:function(e,t){void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&M.ob(e,t.size)},lookup:function(){throw Mb[J.F]},T:function(e,t,r,n){return M.createNode(e,t,r,n)},rename:function(e,t,r){if(N(e.mode)){var n;try{n=Nb(t,r)}catch(e){}if(n)for(var i in n.e)throw new L(J.za)}delete e.parent.e[e.name],e.name=r,(t.e[r]=e).parent=t},unlink:function(e,t){delete e.e[t]},rmdir:function(e,t){var r,n=Nb(e,t);for(r in n.e)throw new L(J.za);delete e.e[t]},readdir:function(e){var t,r=[".",".."];for(t in e.e)e.e.hasOwnProperty(t)&&r.push(t);return r},symlink:function(e,t,r){return(e=M.createNode(e,t,41471,0)).link=r,e},readlink:function(e){if(40960!=(61440&e.mode))throw new L(J.q);return e.link}},n:{read:function(e,t,r,n,i){var o=e.g.e;if(i>=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-i,n))),8<e&&o.subarray)t.set(o.subarray(i,i+e),r);else for(n=0;n<e;n++)t[r+n]=o[i+n];return e},write:function(e,t,r,n,i,o){if(!n)return 0;if((e=e.g).timestamp=Date.now(),t.subarray&&(!e.e||e.e.subarray)){if(o)return e.e=t.subarray(r,r+n),e.o=n;if(0===e.o&&0===i)return e.e=new Uint8Array(t.subarray(r,r+n)),e.o=n;if(i+n<=e.o)return e.e.set(t.subarray(r,r+n),i),n}if(M.Ga(e,i+n),e.e.subarray&&t.subarray)e.e.set(t.subarray(r,r+n),i);else for(o=0;o<n;o++)e.e[i+o]=t[r+o];return e.o=Math.max(e.o,i+n),n},G:function(e,t,r){if(1===r?t+=e.position:2===r&&32768==(61440&e.g.mode)&&(t+=e.g.o),t<0)throw new L(J.q);return t},Ba:function(e,t,r){M.Ga(e.g,t+r),e.g.o=Math.max(e.g.o,t+r)},Na:function(e,t,r,n,i,o,a){if(32768!=(61440&e.g.mode))throw new L(J.ha);if(r=e.g.e,2&a||r.buffer!==t&&r.buffer!==t.buffer){if((0<i||i+n<e.g.o)&&(r=r.subarray?r.subarray(i,i+n):Array.prototype.slice.call(r,i,i+n)),e=!0,!(n=Ea(n)))throw new L(J.Ta);t.set(r,n)}else e=!1,n=r.byteOffset;return{Rd:n,xd:e}},Pa:function(e,t,r,n,i){if(32768!=(61440&e.g.mode))throw new L(J.ha);return 2&i||M.n.write(e,t,0,n,r,!1),0}}},P={$:!1,sb:function(){P.$=!!process.platform.match(/^win/)},A:function(e){return assert(da),P.createNode(null,"/",P.Ja(e.pa.root),0)},createNode:function(e,t,r){if(!N(r)&&32768!=(61440&r)&&40960!=(61440&r))throw new L(J.q);return(e=Lb(e,t,r)).k=P.k,e.n=P.n,e},Ja:function(e){var t;try{t=fs.lstatSync(e),P.$&&(t.mode=t.mode|(146&t.mode)>>1)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return t.mode},B:function(e){for(var t=[];e.parent!==e;)t.push(e.name),e=e.parent;return t.push(e.A.pa.root),t.reverse(),Cb.apply(null,t)},Ha:{0:"r",1:"r+",2:"r+",64:"r",65:"r+",66:"r+",129:"rx+",193:"rx+",514:"w+",577:"w",578:"w+",705:"wx",706:"wx+",1024:"a",1025:"a",1026:"a+",1089:"a",1090:"a+",1153:"ax",1154:"ax+",1217:"ax",1218:"ax+",4096:"rs",4098:"rs+"},$a:function(e){if((e&=-32769)in P.Ha)return P.Ha[e];throw new L(J.q)},k:{D:function(e){var t;e=P.B(e);try{t=fs.lstatSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return P.$&&!t.K&&(t.K=4096),P.$&&!t.blocks&&(t.blocks=(t.size+t.K-1)/t.K|0),{dev:t.dev,ino:t.ino,mode:t.mode,nlink:t.nlink,uid:t.uid,gid:t.gid,rdev:t.rdev,size:t.size,atime:t.atime,mtime:t.mtime,ctime:t.ctime,K:t.K,blocks:t.blocks}},u:function(e,t){var r=P.B(e);try{void 0!==t.mode&&(fs.chmodSync(r,t.mode),e.mode=t.mode),void 0!==t.size&&fs.truncateSync(r,t.size)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},lookup:function(e,t){var r=K(P.B(e),t);r=P.Ja(r);return P.createNode(e,t,r)},T:function(e,t,r,n){e=P.createNode(e,t,r,n),t=P.B(e);try{N(e.mode)?fs.mkdirSync(t,e.mode):fs.writeFileSync(t,"",{mode:e.mode})}catch(e){if(!e.code)throw e;throw new L(J[e.code])}return e},rename:function(e,t,r){e=P.B(e),t=K(P.B(t),r);try{fs.renameSync(e,t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},unlink:function(e,t){var r=K(P.B(e),t);try{fs.unlinkSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},rmdir:function(e,t){var r=K(P.B(e),t);try{fs.rmdirSync(r)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readdir:function(e){e=P.B(e);try{return fs.readdirSync(e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},symlink:function(e,t,r){e=K(P.B(e),t);try{fs.symlinkSync(r,e)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},readlink:function(e){var t=P.B(e);try{return t=fs.readlinkSync(t),t=Ob.relative(Ob.resolve(e.A.pa.root),t)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}}},n:{open:function(e){var t=P.B(e.g);try{32768==(61440&e.g.mode)&&(e.V=fs.openSync(t,P.$a(e.flags)))}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},close:function(e){try{32768==(61440&e.g.mode)&&e.V&&fs.closeSync(e.V)}catch(e){if(!e.code)throw e;throw new L(J[e.code])}},read:function(e,t,r,n,i){if(0===n)return 0;var o,a=new Buffer(n);try{o=fs.readSync(e.V,a,0,n,i)}catch(e){throw new L(J[e.code])}if(0<o)for(e=0;e<o;e++)t[r+e]=a[e];return o},write:function(e,t,r,n,i){var o;t=new Buffer(t.subarray(r,r+n));try{o=fs.writeSync(e.V,t,0,n,i)}catch(e){throw new L(J[e.code])}return o},G:function(e,t,r){if(1===r)t+=e.position;else if(2===r&&32768==(61440&e.g.mode))try{t+=fs.fstatSync(e.V).size}catch(e){throw new L(J[e.code])}if(t<0)throw new L(J.q);return t}}};D(1,"i32*",2),D(1,"i32*",2),D(1,"i32*",2);var Pb=null,Qb=[null],Rb=[],Sb=1,Q=null,Tb=!0,R={},L=null,Mb={};function S(e,t){if(t=t||{},!(e=Db("/",e)))return{path:"",g:null};var r,n={Ia:!0,ra:0};for(r in n)void 0===t[r]&&(t[r]=n[r]);if(8<t.ra)throw new L(J.ga);n=yb(e.split("/").filter(function(e){return!!e}),!1);var i=Pb;r="/";for(var o=0;o<n.length;o++){var a=o===n.length-1;if(a&&t.parent)break;if(i=Nb(i,n[o]),r=K(r,n[o]),i.U&&(!a||a&&t.Ia)&&(i=i.U.root),!a||t.la)for(a=0;40960==(61440&i.mode);)if(i=Vb(r),i=S(r=Db(Ab(r),i),{ra:t.ra}).g,40<a++)throw new L(J.ga)}return{path:r,g:i}}function T(e){for(var t;;){if(e===e.parent)return e=e.A.Oa,t?"/"!==e[e.length-1]?e+"/"+t:e+t:e;t=t?e.name+"/"+t:e.name,e=e.parent}}function Wb(e,t){for(var r=0,n=0;n<t.length;n++)r=(r<<5)-r+t.charCodeAt(n)|0;return(e+r>>>0)%Q.length}function Xb(e){var t=Wb(e.parent.id,e.name);e.M=Q[t],Q[t]=e}function Nb(e,t){var r;if(r=(r=Yb(e,"x"))?r:e.k.lookup?0:J.da)throw new L(r,e);for(r=Q[Wb(e.id,t)];r;r=r.M){var n=r.name;if(r.parent.id===e.id&&n===t)return r}return e.k.lookup(e,t)}function Lb(e,t,r,n){return Zb||((Zb=function(e,t,r,n){e||(e=this),this.parent=e,this.A=e.A,this.U=null,this.id=Sb++,this.name=t,this.mode=r,this.k={},this.n={},this.rdev=n}).prototype={},Object.defineProperties(Zb.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}},kb:{get:function(){return N(this.mode)}},jb:{get:function(){return 8192==(61440&this.mode)}}})),Xb(e=new Zb(e,t,r,n)),e}function N(e){return 16384==(61440&e)}var $b={r:0,rs:1052672,"r+":2,w:577,wx:705,xw:705,"w+":578,"wx+":706,"xw+":706,a:1089,ax:1217,xa:1217,"a+":1090,"ax+":1218,"xa+":1218};function Yb(e,t){return Tb?0:(-1===t.indexOf("r")||292&e.mode)&&(-1===t.indexOf("w")||146&e.mode)&&(-1===t.indexOf("x")||73&e.mode)?0:J.da}function ac(e,t){try{return Nb(e,t),J.wa}catch(e){}return Yb(e,"wx")}function bc(){for(var e=0;e<=4096;e++)if(!Rb[e])return e;throw new L(J.Sa)}function cc(e){dc||((dc=function(){}).prototype={},Object.defineProperties(dc.prototype,{object:{get:function(){return this.g},set:function(e){this.g=e}},Ld:{get:function(){return 1!=(2097155&this.flags)}},Md:{get:function(){return 0!=(2097155&this.flags)}},Kd:{get:function(){return 1024&this.flags}}}));var t,r=new dc;for(t in e)r[t]=e[t];return e=r,r=bc(),e.fd=r,Rb[r]=e}var Kb={open:function(e){e.n=Qb[e.g.rdev].n,e.n.open&&e.n.open(e)},G:function(){throw new L(J.ia)}},qc;function Gb(e,t){Qb[e]={n:t}}function ec(e,t){var r,n="/"===t,i=!t;if(n&&Pb)throw new L(J.fa);if(!n&&!i){if(t=(r=S(t,{Ia:!1})).path,(r=r.g).U)throw new L(J.fa);if(!N(r.mode))throw new L(J.ya)}i={type:e,pa:{},Oa:t,lb:[]};var o=e.A(i);(o.A=i).root=o,n?Pb=o:r&&(r.U=i,r.A&&r.A.lb.push(i))}function fc(e,t,r){var n=S(e,{parent:!0}).g;if(!(e=Bb(e))||"."===e||".."===e)throw new L(J.q);var i=ac(n,e);if(i)throw new L(i);if(!n.k.T)throw new L(J.I);return n.k.T(n,e,t,r)}function gc(e,t){return t=4095&(void 0!==t?t:438),fc(e,t|=32768,0)}function V(e,t){return t=1023&(void 0!==t?t:511),fc(e,t|=16384,0)}function hc(e,t,r){return void 0===r&&(r=t,t=438),fc(e,8192|t,r)}function ic(e,t){if(!Db(e))throw new L(J.F);var r=S(t,{parent:!0}).g;if(!r)throw new L(J.F);var n=Bb(t),i=ac(r,n);if(i)throw new L(i);if(!r.k.symlink)throw new L(J.I);return r.k.symlink(r,n,e)}function Vb(e){if(!(e=S(e).g))throw new L(J.F);if(!e.k.readlink)throw new L(J.q);return Db(T(e.parent),e.k.readlink(e))}function jc(e,t){var r;if(!(r="string"==typeof e?S(e,{la:!0}).g:e).k.u)throw new L(J.I);r.k.u(r,{mode:4095&t|-4096&r.mode,timestamp:Date.now()})}function kc(t,r){var n,i,o;if(""===t)throw new L(J.F);if("string"==typeof r){if(void 0===(i=$b[r]))throw Error("Unknown file open mode: "+r)}else i=r;if(n=64&(r=i)?4095&(void 0===n?438:n)|32768:0,"object"==typeof t)o=t;else{t=zb(t);try{o=S(t,{la:!(131072&r)}).g}catch(e){}}if(i=!1,64&r)if(o){if(128&r)throw new L(J.wa)}else o=fc(t,n,0),i=!0;if(!o)throw new L(J.F);if(8192==(61440&o.mode)&&(r&=-513),65536&r&&!N(o.mode))throw new L(J.ya);if(!i&&(n=o?40960==(61440&o.mode)?J.ga:N(o.mode)&&(0!=(2097155&r)||512&r)?J.P:(n=["r","w","rw"][3&r],512&r&&(n+="w"),Yb(o,n)):J.F))throw new L(n);if(512&r){var a;if(!(a="string"==typeof(n=o)?S(n,{la:!0}).g:n).k.u)throw new L(J.I);if(N(a.mode))throw new L(J.P);if(32768!=(61440&a.mode))throw new L(J.q);if(n=Yb(a,"w"))throw new L(n);a.k.u(a,{size:0,timestamp:Date.now()})}r&=-641,(o=cc({g:o,path:T(o),flags:r,seekable:!0,position:0,n:o.n,tb:[],error:!1})).n.open&&o.n.open(o),!e.logReadFiles||1&r||(lc||(lc={}),t in lc||(lc[t]=1,e.printErr("read file: "+t)));try{R.onOpenFile&&(a=0,1!=(2097155&r)&&(a|=1),0!=(2097155&r)&&(a|=2),R.onOpenFile(t,a))}catch(e){console.log("FS.trackingDelegate['onOpenFile']('"+t+"', flags) threw an exception: "+e.message)}return o}function mc(e){e.na&&(e.na=null);try{e.n.close&&e.n.close(e)}catch(e){throw e}finally{Rb[e.fd]=null}}function nc(e,t,r){if(!e.seekable||!e.n.G)throw new L(J.ia);e.position=e.n.G(e,t,r),e.tb=[]}function oc(e,t,r,n,i,o){if(n<0||i<0)throw new L(J.q);if(0==(2097155&e.flags))throw new L(J.ea);if(N(e.g.mode))throw new L(J.P);if(!e.n.write)throw new L(J.q);1024&e.flags&&nc(e,0,2);var a=!0;if(void 0===i)i=e.position,a=!1;else if(!e.seekable)throw new L(J.ia);t=e.n.write(e,t,r,n,i,o),a||(e.position+=t);try{e.path&&R.onWriteToFile&&R.onWriteToFile(e.path)}catch(e){console.log("FS.trackingDelegate['onWriteToFile']('"+path+"') threw an exception: "+e.message)}return t}function pc(){L||((L=function(e,t){this.g=t,this.qb=function(e){for(var t in this.S=e,J)if(J[t]===e){this.code=t;break}},this.qb(e),this.message=xb[e]}).prototype=Error(),L.prototype.constructor=L,[J.F].forEach(function(e){Mb[e]=new L(e),Mb[e].stack="<generic error, no stack>"}))}function rc(e,t){var r=0;return e&&(r|=365),t&&(r|=146),r}function sc(e,t,r,n){return gc(e=K("string"==typeof e?e:T(e),t),rc(r,n))}function tc(e,t,r,n,i,o){if(i=gc(e=t?K("string"==typeof e?e:T(e),t):e,n=rc(n,i)),r){if("string"==typeof r){e=Array(r.length),t=0;for(var a=r.length;t<a;++t)e[t]=r.charCodeAt(t);r=e}jc(i,146|n),oc(e=kc(i,"w"),r,0,r.length,0,o),mc(e),jc(i,n)}return i}function W(e,t,s,o){e=K("string"==typeof e?e:T(e),t),t=rc(!!s,!!o),W.Ma||(W.Ma=64);var r=W.Ma++<<8|0;return Gb(r,{open:function(e){e.seekable=!1},close:function(){o&&o.buffer&&o.buffer.length&&o(10)},read:function(e,t,r,n){for(var i=0,o=0;o<n;o++){var a;try{a=s()}catch(e){throw new L(J.H)}if(void 0===a&&0===i)throw new L(J.va);if(null==a)break;i++,t[r+o]=a}return i&&(e.g.timestamp=Date.now()),i},write:function(e,t,r,n){for(var i=0;i<n;i++)try{o(t[r+i])}catch(e){throw new L(J.H)}return n&&(e.g.timestamp=Date.now()),i}}),hc(e,t,r)}function uc(t){if(t.jb||t.kb||t.link||t.e)return!0;var r=!0;if("undefined"!=typeof XMLHttpRequest)throw Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");if(!e.read)throw Error("Cannot load without read() or XMLHttpRequest.");try{t.e=hb(e.read(t.url),!0),t.o=t.e.length}catch(e){r=!1}return r||ob(J.H),r}var vc={},Zb,dc,lc,wc=0;function X(){return C[(wc+=4)-4>>2]}function xc(){var e;if(e=X(),!(e=Rb[e]))throw new L(J.ea);return e}var yc={};function Ga(e){Ga.p||(r=Qa(r),Ga.p=!0,assert(n.R),Ga.bb=n.R,n.R=function(){x("cannot dynamically allocate, sbrk now has control")});var t=r;return 0==e||Ga.bb(e)?t:4294967295}e._i64Add=zc;var Ac=1;function Cc(e,t){if(Dc=e,Ec=t,!Fc)return 1;if(0==e)Y=function(){setTimeout(Gc,t)},Hc="timeout";else if(1==e)Y=function(){Ic(Gc)},Hc="rAF";else if(2==e){if(!window.setImmediate){var r=[];window.addEventListener("message",function(e){e.source===window&&"__emcc"===e.data&&(e.stopPropagation(),r.shift()())},!0),window.setImmediate=function(e){r.push(e),window.postMessage("__emcc","*")}}Y=function(){window.setImmediate(Gc)},Hc="immediate"}return 0}function Jc(a,t,r,s,i){e.noExitRuntime=!0,assert(!Fc,"emscripten_set_main_loop: there can only be one main loop function at once: call emscripten_cancel_main_loop to cancel the previous one before setting a new one with different parameters."),Fc=a,Kc=s;var u=Lc;if(Gc=function(){if(!na)if(0<Mc.length){var t=Date.now(),r=Mc.shift();if(r.ab(r.X),Nc){var i=Nc,o=0==i%1?i-1:Math.floor(i);Nc=r.Bd?o:(8*i+(o+.5))/9}console.log('main loop blocker "'+r.name+'" took '+(Date.now()-t)+" ms"),Oc(),setTimeout(Gc,0)}else u<Lc||(Pc=Pc+1|0,1==Dc&&1<Ec&&0!=Pc%Ec?Y():("timeout"===Hc&&e.ka&&(e.W("Looks like you are rendering without using requestAnimationFrame for the main loop. You should use 0 for the frame rate in emscripten_set_main_loop in order to use requestAnimationFrame, as that can greatly improve your frame rates!"),Hc=""),Qc(function(){void 0!==s?n.L("vi",a,[s]):n.L("v",a)}),u<Lc||("object"==typeof SDL&&SDL.audio&&SDL.audio.mb&&SDL.audio.mb(),Y())))},i||(t&&0<t?Cc(0,1e3/t):Cc(1,1),Y()),r)throw"SimulateInfiniteLoop"}e._memcpy=Bc;var Y=null,Hc="",Lc=0,Fc=null,Kc=0,Dc=0,Ec=0,Pc=0,Mc=[];function Oc(){if(e.setStatus){var t=e.statusMessage||"Please wait...",r=Nc,n=Rc.Dd;r?r<n?e.setStatus(t+" ("+(n-r)+"/"+n+")"):e.setStatus(t):e.setStatus("")}}function Qc(t){if(!(na||e.preMainLoop&&!1===e.preMainLoop())){try{t()}catch(t){if(t instanceof ia)return;throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t}e.postMainLoop&&e.postMainLoop()}}var Rc={},Gc,Nc,Sc=!1,Tc=!1,Uc=[];function Vc(){function t(){Tc=document.pointerLockElement===r||document.mozPointerLockElement===r||document.webkitPointerLockElement===r||document.msPointerLockElement===r}if(e.preloadPlugins||(e.preloadPlugins=[]),!Wc){Wc=!0;try{Xc=!0}catch(e){Xc=!1,console.log("warning: no blob constructor, cannot create blobs with mimetypes")}Yc="undefined"!=typeof MozBlobBuilder?MozBlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:Xc?null:console.log("warning: no BlobBuilder"),Zc="undefined"!=typeof window?window.URL?window.URL:window.webkitURL:void 0,e.Qa||void 0!==Zc||(console.log("warning: Browser does not support creating object URLs. Built-in browser image decoding will not be available."),e.Qa=!0),e.preloadPlugins.push({canHandle:function(t){return!e.Qa&&/\.(jpg|jpeg|png|bmp)$/i.test(t)},handle:function(r,i,o,t){var a=null;if(Xc)try{(a=new Blob([r],{type:$c(i)})).size!==r.length&&(a=new Blob([new Uint8Array(r).buffer],{type:$c(i)}))}catch(e){n.O("Blob constructor present but fails: "+e+"; falling back to blob builder")}a||((a=new Yc).append(new Uint8Array(r).buffer),a=a.getBlob());var s=Zc.createObjectURL(a),u=new Image;u.onload=function(){assert(u.complete,"Image "+i+" could not be decoded");var t=document.createElement("canvas");t.width=u.width,t.height=u.height,t.getContext("2d").drawImage(u,0,0),e.preloadedImages[i]=t,Zc.revokeObjectURL(s),o&&o(r)},u.onerror=function(){console.log("Image "+s+" could not be decoded"),t&&t()},u.src=s}}),e.preloadPlugins.push({canHandle:function(t){return!e.Pd&&t.substr(-4)in{".ogg":1,".wav":1,".mp3":1}},handle:function(o,a,r,t){function s(t){u||(u=!0,e.preloadedAudios[a]=t,r&&r(o))}function n(){u||(u=!0,e.preloadedAudios[a]=new Audio,t&&t())}var u=!1;if(!Xc)return n();try{var i=new Blob([o],{type:$c(a)})}catch(e){return n()}i=Zc.createObjectURL(i);var c=new Audio;c.addEventListener("canplaythrough",function(){s(c)},!1),c.onerror=function(){if(!u){console.log("warning: browser could not fully decode audio "+a+", trying slower base64 approach");for(var e="",t=0,r=0,n=0;n<o.length;n++)for(t=t<<8|o[n],r+=8;6<=r;){var i=t>>r-6&63;r=r-6,e=e+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[i]}2==r?(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(3&t)<<4],e+="=="):4==r&&(e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[(15&t)<<2],e+="="),c.src="data:audio/x-"+a.substr(-3)+";base64,"+e,s(c)}},c.src=i,ad(function(){s(c)})}});var r=e.canvas;r&&(r.sa=r.requestPointerLock||r.mozRequestPointerLock||r.webkitRequestPointerLock||r.msRequestPointerLock||function(){},r.Fa=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock||document.msExitPointerLock||function(){},r.Fa=r.Fa.bind(document),document.addEventListener("pointerlockchange",t,!1),document.addEventListener("mozpointerlockchange",t,!1),document.addEventListener("webkitpointerlockchange",t,!1),document.addEventListener("mspointerlockchange",t,!1),e.elementPointerLock&&r.addEventListener("click",function(e){!Tc&&r.sa&&(r.sa(),e.preventDefault())},!1))}}function bd(t,r,n,i){if(r&&e.ka&&t==e.canvas)return e.ka;var o,a;if(r){if(a={antialias:!1,alpha:!1},i)for(var s in i)a[s]=i[s];(a=GL.createContext(t,a))&&(o=GL.getContext(a).td),t.style.backgroundColor="black"}else o=t.getContext("2d");return o?(n&&(r||assert("undefined"==typeof GLctx,"cannot set in module if GLctx is used, but we are a non-GL context that would replace it"),e.ka=o,r&&GL.Od(a),e.Td=r,Uc.forEach(function(e){e()}),Vc()),o):null}var cd=!1,dd=void 0,ed=void 0;function fd(t,r,n){function i(){Sc=!1;var t=o.parentNode;(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t?(o.Da=document.cancelFullScreen||document.mozCancelFullScreen||document.webkitCancelFullScreen||document.msExitFullscreen||document.exitFullscreen||function(){},o.Da=o.Da.bind(document),dd&&o.sa(),Sc=!0,ed&&gd()):(t.parentNode.insertBefore(o,t),t.parentNode.removeChild(t),ed&&hd()),e.onFullScreen&&e.onFullScreen(Sc),id(o)}void 0===(dd=t)&&(dd=!0),void 0===(ed=r)&&(ed=!1),void 0===(jd=n)&&(jd=null);var o=e.canvas;cd||(cd=!0,document.addEventListener("fullscreenchange",i,!1),document.addEventListener("mozfullscreenchange",i,!1),document.addEventListener("webkitfullscreenchange",i,!1),document.addEventListener("MSFullscreenChange",i,!1));var a=document.createElement("div");o.parentNode.insertBefore(a,o),a.appendChild(o),a.p=a.requestFullScreen||a.mozRequestFullScreen||a.msRequestFullscreen||(a.webkitRequestFullScreen?function(){a.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT)}:null),n?a.p({Ud:n}):a.p()}var kd=0;function ld(e){var t=Date.now();if(0===kd)kd=t+1e3/60;else for(;kd<=t+2;)kd+=1e3/60;t=Math.max(kd-t,0),setTimeout(e,t)}function Ic(e){"undefined"==typeof window?ld(e):(window.requestAnimationFrame||(window.requestAnimationFrame=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame||ld),window.requestAnimationFrame(e))}function ad(t){e.noExitRuntime=!0,setTimeout(function(){na||t()},1e4)}function $c(e){return{jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",bmp:"image/bmp",ogg:"audio/ogg",wav:"audio/wav",mp3:"audio/mpeg"}[e.substr(e.lastIndexOf(".")+1)]}function md(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}function nd(t,r,e){md(t,function(e){assert(e,'Loading data file "'+t+'" failed (no arrayBuffer).'),r(new Uint8Array(e)),lb()},function(){if(!e)throw'Loading data file "'+t+'" failed.';e()}),kb()}var od=[],Wc,Xc,Yc,Zc,jd;function pd(){var t=e.canvas;od.forEach(function(e){e(t.width,t.height)})}function gd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=8388608|e}pd()}function hd(){if("undefined"!=typeof SDL){var e=Sa[SDL.screen+0*n.J>>2];C[SDL.screen+0*n.J>>2]=-8388609&e}pd()}function id(t,r,n){r&&n?(t.ub=r,t.hb=n):(r=t.ub,n=t.hb);var i=r,o=n;if(e.forcedAspectRatio&&0<e.forcedAspectRatio&&(i/o<e.forcedAspectRatio?i=Math.round(o*e.forcedAspectRatio):o=Math.round(i/e.forcedAspectRatio)),(document.webkitFullScreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.mozFullscreenElement||document.fullScreenElement||document.fullscreenElement||document.msFullScreenElement||document.msFullscreenElement||document.webkitCurrentFullScreenElement)===t.parentNode&&"undefined"!=typeof screen){var a=Math.min(screen.width/i,screen.height/o);i=Math.round(i*a),o=Math.round(o*a)}ed?(t.width!=i&&(t.width=i),t.height!=o&&(t.height=o),void 0!==t.style&&(t.style.removeProperty("width"),t.style.removeProperty("height"))):(t.width!=r&&(t.width=r),t.height!=n&&(t.height=n),void 0!==t.style&&(i!=r||o!=n?(t.style.setProperty("width",i+"px","important"),t.style.setProperty("height",o+"px","important")):(t.style.removeProperty("width"),t.style.removeProperty("height"))))}if(pc(),Q=Array(4096),ec(M,"/"),V("/tmp"),V("/home"),V("/home/web_user"),function(){var e;if(V("/dev"),Gb(259,{read:function(){return 0},write:function(e,t,r,n){return n}}),hc("/dev/null",259),Fb(1280,Ib),Fb(1536,Jb),hc("/dev/tty",1280),hc("/dev/tty1",1536),"undefined"!=typeof crypto){var t=new Uint8Array(1);e=function(){return crypto.getRandomValues(t),t[0]}}else e=da?function(){return require("crypto").randomBytes(1)[0]}:function(){return 256*Math.random()|0};W("/dev","random",e),W("/dev","urandom",e),V("/dev/shm"),V("/dev/shm/tmp")}(),V("/proc"),V("/proc/self"),V("/proc/self/fd"),ec({A:function(){var e=Lb("/proc/self","fd",16895,73);return e.k={lookup:function(e,t){var r=Rb[+t];if(!r)throw new L(J.ea);var n={parent:null,A:{Oa:"fake"},k:{readlink:function(){return r.path}}};return n.parent=n}},e}},"/proc/self/fd"),cb.unshift(function(){if(!e.noFSInit&&!qc){assert(!qc,"FS.init was previously called. If you want to initialize later with custom parameters, remove any earlier calls (note that one is automatically added to the generated code)"),qc=!0,pc(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?W("/dev","stdin",e.stdin):ic("/dev/tty","/dev/stdin"),e.stdout?W("/dev","stdout",null,e.stdout):ic("/dev/tty","/dev/stdout"),e.stderr?W("/dev","stderr",null,e.stderr):ic("/dev/tty1","/dev/stderr");var t=kc("/dev/stdin","r");assert(0===t.fd,"invalid handle for stdin ("+t.fd+")"),assert(1===(t=kc("/dev/stdout","w")).fd,"invalid handle for stdout ("+t.fd+")"),assert(2===(t=kc("/dev/stderr","w")).fd,"invalid handle for stderr ("+t.fd+")")}}),db.push(function(){Tb=!1}),H.push(function(){qc=!1;var t=e._fflush;for(t&&t(0),t=0;t<Rb.length;t++){var r=Rb[t];r&&mc(r)}}),e.FS_createFolder=function(e,t,r,n){return V(e=K("string"==typeof e?e:T(e),t),rc(r,n))},e.FS_createPath=function(e,t){e="string"==typeof e?e:T(e);for(var r=t.split("/").reverse();r.length;){var n=r.pop();if(n){var i=K(e,n);try{V(i)}catch(e){}e=i}}return i},e.FS_createDataFile=tc,e.FS_createPreloadedFile=function(i,o,t,a,s,u,c,l,f,h){function r(t){function r(e){h&&h(),l||tc(i,o,e,a,s,f),u&&u(),lb()}var n=!1;e.preloadPlugins.forEach(function(e){!n&&e.canHandle(d)&&(e.handle(t,d,r,function(){c&&c(),lb()}),n=!0)}),n||r(t)}Vc();var d=o?Db(K(i,o)):i;kb(),"string"==typeof t?nd(t,function(e){r(e)},c):r(t)},e.FS_createLazyFile=function(e,t,u,r,n){var i,o;function a(){this.oa=!1,this.Y=[]}if(a.prototype.get=function(e){if(!(e>this.length-1||e<0)){var t=e%this.chunkSize;return this.gb(e/this.chunkSize|0)[t]}},a.prototype.pb=function(e){this.gb=e},a.prototype.Ca=function(){var e=new XMLHttpRequest;if(e.open("HEAD",u,!1),e.send(null),!(200<=e.status&&e.status<300||304===e.status))throw Error("Couldn't load "+u+". Status: "+e.status);var t,o=Number(e.getResponseHeader("Content-length")),a=1048576;(t=e.getResponseHeader("Accept-Ranges"))&&"bytes"===t||(a=o);var s=this;s.pb(function(e){var t=e*a,r=(e+1)*a-1;r=Math.min(r,o-1);if(void 0===s.Y[e]){var n=s.Y;if(r<t)throw Error("invalid range ("+t+", "+r+") or no bytes requested!");if(o-1<r)throw Error("only "+o+" bytes available! programmer error!");var i=new XMLHttpRequest;if(i.open("GET",u,!1),o!==a&&i.setRequestHeader("Range","bytes="+t+"-"+r),"undefined"!=typeof Uint8Array&&(i.responseType="arraybuffer"),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=x-user-defined"),i.send(null),!(200<=i.status&&i.status<300||304===i.status))throw Error("Couldn't load "+u+". Status: "+i.status);t=void 0!==i.response?new Uint8Array(i.response||[]):hb(i.responseText||"",!0),n[e]=t}if(void 0===s.Y[e])throw Error("doXHR failed!");return s.Y[e]}),this.Wa=o,this.Va=a,this.oa=!0},"undefined"!=typeof XMLHttpRequest){if(!ca)throw"Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";i=new a,Object.defineProperty(i,"length",{get:function(){return this.oa||this.Ca(),this.Wa}}),Object.defineProperty(i,"chunkSize",{get:function(){return this.oa||this.Ca(),this.Va}}),o=void 0}else o=u,i=void 0;var s=sc(e,t,r,n);i?s.e=i:o&&(s.e=null,s.url=o),Object.defineProperty(s,"usedBytes",{get:function(){return this.e.length}});var c={};return Object.keys(s.n).forEach(function(e){var t=s.n[e];c[e]=function(){if(!uc(s))throw new L(J.H);return t.apply(null,arguments)}}),c.read=function(e,t,r,n,i){if(!uc(s))throw new L(J.H);if(i>=(e=e.g.e).length)return 0;if(assert(0<=(n=Math.min(e.length-i,n))),e.slice)for(var o=0;o<n;o++)t[r+o]=e[i+o];else for(o=0;o<n;o++)t[r+o]=e.get(i+o);return n},s.n=c,s},e.FS_createLink=function(e,t,r){return ic(r,e=K("string"==typeof e?e:T(e),t))},e.FS_createDevice=W,e.FS_unlink=function(t){var r,e=S(t,{parent:!0}).g,n=Bb(t),i=Nb(e,n);e:{try{r=Nb(e,n)}catch(e){r=e.S;break e}var o=Yb(e,"wx");r=o||(N(r.mode)?J.P:0)}if(r)throw r===J.P&&(r=J.I),new L(r);if(!e.k.unlink)throw new L(J.I);if(i.U)throw new L(J.fa);try{R.willDeletePath&&R.willDeletePath(t)}catch(e){console.log("FS.trackingDelegate['willDeletePath']('"+t+"') threw an exception: "+e.message)}if(e.k.unlink(e,n),e=Wb(i.parent.id,i.name),Q[e]===i)Q[e]=i.M;else for(e=Q[e];e;){if(e.M===i){e.M=i.M;break}e=e.M}try{R.onDeletePath&&R.onDeletePath(t)}catch(e){console.log("FS.trackingDelegate['onDeletePath']('"+t+"') threw an exception: "+e.message)}},cb.unshift(function(){}),H.push(function(){}),da){var fs=require("fs"),Ob=require("path");P.sb()}e.requestFullScreen=function(e,t,r){fd(e,t,r)},e.requestAnimationFrame=function(e){Ic(e)},e.setCanvasSize=function(t,r,n){id(e.canvas,t,r),n||pd()},e.pauseMainLoop=function(){Y=null,Lc++},e.resumeMainLoop=function(){Lc++;var e=Dc,t=Ec;Jc(Fc,0,!1,Kc,!(Fc=null)),Cc(e,t),Y()},e.getUserMedia=function(){window.p||(window.p=navigator.getUserMedia||navigator.mozGetUserMedia),window.p(void 0)},e.createContext=function(e,t,r,n){return bd(e,t,r,n)},Ua=m=n.ja(la),Fa=!0,Va=Ua+$a,Wa=r=n.ja(Va),assert(Wa<t,"TOTAL_MEMORY not big enough for stack");var qd=D([8,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,7,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,6,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,5,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0,4,0,1,0,2,0,1,0,3,0,1,0,2,0,1,0],"i8",3);e.Ya={Math:Math,Int8Array:Int8Array,Int16Array:Int16Array,Int32Array:Int32Array,Uint8Array:Uint8Array,Uint16Array:Uint16Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array,NaN:NaN,Infinity:1/0,byteLength:Ya},e.Za={abort:x,assert:assert,invoke_iiii:function(t,r,n,i){try{return e.dynCall_iiii(t,r,n,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiii:function(t,r,n,i,o,a){try{e.dynCall_viiiii(t,r,n,i,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_vi:function(t,r){try{e.dynCall_vi(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_ii:function(t,r){try{return e.dynCall_ii(t,r)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viii:function(t,r,n,i){try{e.dynCall_viii(t,r,n,i)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_v:function(t){try{e.dynCall_v(t)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiiiii:function(t,r,n,i,o,a,s){try{e.dynCall_viiiiii(t,r,n,i,o,a,s)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_iiiiii:function(t,r,n,i,o,a){try{return e.dynCall_iiiiii(t,r,n,i,o,a)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},invoke_viiii:function(t,r,n,i,o){try{e.dynCall_viiii(t,r,n,i,o)}catch(e){if("number"!=typeof e&&"longjmp"!==e)throw e;Z.setThrew(1,0)}},_pthread_cleanup_pop:function(){assert(pb.level==H.length,"cannot pop if something else added meanwhile!"),H.pop(),pb.level=H.length},___syscall54:function(e,t){wc=t;try{var r=xc(),n=X();switch(n){case 21505:case 21506:return r.tty?0:-J.Q;case 21519:if(!r.tty)return-J.Q;var i=X();return C[i>>2]=0;case 21520:return r.tty?-J.q:-J.Q;case 21531:if(i=X(),!r.n.ib)throw new L(J.Q);return r.n.ib(r,n,i);default:x("bad ioctl syscall "+n)}}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall6:function(e,t){wc=t;try{return mc(xc()),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},_emscripten_set_main_loop_timing:Cc,__ZSt18uncaught_exceptionv:tb,___setErrNo:ob,_sbrk:Ga,___cxa_begin_catch:function(e){var t;tb.p--,ub.push(e);e:{if(e&&!vb[e])for(t in vb)if(vb[t].wd===e)break e;t=e}return t&&vb[t].Sd++,e},_emscripten_memcpy_big:function(e,t,r){return E.set(E.subarray(t,t+r),e),e},_sysconf:function(e){switch(e){case 30:return 4096;case 85:return F/4096;case 132:case 133:case 12:case 137:case 138:case 15:case 235:case 16:case 17:case 18:case 19:case 20:case 149:case 13:case 10:case 236:case 153:case 9:case 21:case 22:case 159:case 154:case 14:case 77:case 78:case 139:case 80:case 81:case 82:case 68:case 67:case 164:case 11:case 29:case 47:case 48:case 95:case 52:case 51:case 46:return 200809;case 79:return 0;case 27:case 246:case 127:case 128:case 23:case 24:case 160:case 161:case 181:case 182:case 242:case 183:case 184:case 243:case 244:case 245:case 165:case 178:case 179:case 49:case 50:case 168:case 169:case 175:case 170:case 171:case 172:case 97:case 76:case 32:case 173:case 35:return-1;case 176:case 177:case 7:case 155:case 8:case 157:case 125:case 126:case 92:case 93:case 129:case 130:case 131:case 94:case 91:return 1;case 74:case 60:case 69:case 70:case 4:return 1024;case 31:case 42:case 72:return 32;case 87:case 26:case 33:return 2147483647;case 34:case 1:return 47839;case 38:case 36:return 99;case 43:case 37:return 2048;case 0:return 2097152;case 3:return 65536;case 28:return 32768;case 44:return 32767;case 75:return 16384;case 39:return 1e3;case 89:return 700;case 71:return 256;case 40:return 255;case 2:return 100;case 180:return 64;case 25:return 20;case 5:return 16;case 6:return 6;case 73:return 4;case 84:return"object"==typeof navigator&&navigator.hardwareConcurrency||1}return ob(J.q),-1},_pthread_getspecific:function(e){return yc[e]||0},_pthread_self:function(){return 0},_pthread_once:wb,_pthread_key_create:function(e){return 0==e?J.q:(C[e>>2]=Ac,yc[Ac]=0,Ac++,0)},___unlock:function(){},_emscripten_set_main_loop:Jc,_pthread_setspecific:function(e,t){return e in yc?(yc[e]=t,0):J.q},___lock:function(){},_abort:function(){e.abort()},_pthread_cleanup_push:pb,_time:function(e){var t=Date.now()/1e3|0;return e&&(C[e>>2]=t),t},___syscall140:function(e,t){wc=t;try{var r=xc(),n=X(),i=X(),o=X(),a=X();return assert(0===n),nc(r,i,a),C[o>>2]=r.position,r.na&&0===i&&0===a&&(r.na=null),0}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},___syscall146:function(e,t){wc=t;try{var r,n=xc(),i=X();e:{for(var o=X(),a=0,s=0;s<o;s++){var u=oc(n,y,C[i+8*s>>2],C[i+(8*s+4)>>2],void 0);if(u<0){r=-1;break e}a+=u}r=a}return r}catch(e){return void 0!==vc&&e instanceof L||x(e),-e.S}},STACKTOP:m,STACK_MAX:Va,tempDoublePtr:mb,ABORT:na,cttz_i8:qd};var Z=function(e,t,r){"use asm";var n=e.Int8Array;var i=e.Int16Array;var o=e.Int32Array;var a=e.Uint8Array;var s=e.Uint16Array;var u=e.Uint32Array;var c=e.Float32Array;var l=e.Float64Array;var de=new n(r);var $=new i(r);var pe=new o(r);var me=new a(r);var ge=new s(r);var f=new u(r);var h=new c(r);var ee=new l(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var m=t.ABORT|0;var g=t.cttz_i8|0;var v=0;var y=0;var _=0;var b=0;var x=e.NaN,w=e.Infinity;var T=0,S=0,M=0,P=0,E=0.0,C=0,k=0,A=0,O=0.0;var re=0;var R=0;var I=0;var D=0;var L=0;var N=0;var j=0;var F=0;var B=0;var z=0;var U=e.Math.floor;var X=e.Math.abs;var q=e.Math.sqrt;var H=e.Math.pow;var Y=e.Math.cos;var G=e.Math.sin;var W=e.Math.tan;var V=e.Math.acos;var K=e.Math.asin;var J=e.Math.atan;var Z=e.Math.atan2;var Q=e.Math.exp;var ne=e.Math.log;var ie=e.Math.ceil;var ye=e.Math.imul;var oe=e.Math.min;var ae=e.Math.clz32;var se=t.abort;var ue=t.assert;var ce=t.invoke_iiii;var le=t.invoke_viiiii;var fe=t.invoke_vi;var he=t.invoke_ii;var _e=t.invoke_viii;var be=t.invoke_v;var xe=t.invoke_viiiiii;var we=t.invoke_iiiiii;var Te=t.invoke_viiii;var Se=t._pthread_cleanup_pop;var Me=t.___syscall54;var Pe=t.___syscall6;var Ee=t._emscripten_set_main_loop_timing;var Ce=t.__ZSt18uncaught_exceptionv;var ke=t.___setErrNo;var Ae=t._sbrk;var Oe=t.___cxa_begin_catch;var Re=t._emscripten_memcpy_big;var Ie=t._sysconf;var De=t._pthread_getspecific;var Le=t._pthread_self;var Ne=t._pthread_once;var je=t._pthread_key_create;var Fe=t.___unlock;var Be=t._emscripten_set_main_loop;var ze=t._pthread_setspecific;var Ue=t.___lock;var Xe=t._abort;var qe=t._pthread_cleanup_push;var He=t._time;var Ye=t.___syscall140;var Ge=t.___syscall146;var We=0.0;function Ve(e){if(d(e)&16777215||d(e)<=16777215||d(e)>2147483648)return false;de=new n(e);$=new i(e);pe=new o(e);me=new a(e);ge=new s(e);f=new u(e);h=new c(e);ee=new l(e);r=e;return true}function Ke(e){e=e|0;var t=0;t=ve;ve=ve+e|0;ve=ve+15&-16;return t|0}function Je(){return ve|0}function Ze(e){e=e|0;ve=e}function Qe(e,t){e=e|0;t=t|0;ve=e;p=t}function $e(e,t){e=e|0;t=t|0;if(!v){v=e;y=t}}function et(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0]}function tt(e){e=e|0;de[te>>0]=de[e>>0];de[te+1>>0]=de[e+1>>0];de[te+2>>0]=de[e+2>>0];de[te+3>>0]=de[e+3>>0];de[te+4>>0]=de[e+4>>0];de[te+5>>0]=de[e+5>>0];de[te+6>>0]=de[e+6>>0];de[te+7>>0]=de[e+7>>0]}function rt(e){e=e|0;re=e}function nt(){return re|0}function it(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;m=ve;ve=ve+608|0;h=m+88|0;f=m+72|0;u=m+64|0;s=m+48|0;a=m+24|0;o=m;l=m+96|0;d=m+92|0;c=e+4|0;p=e+8|0;if((pe[c>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[o>>2]=1154;pe[o+4>>2]=2120;pe[o+8>>2]=1133;br(l,1100,o)|0;_r(l,m+16|0)|0}if((2147418112/(n>>>0)|0)>>>0<=t>>>0){pe[a>>2]=1154;pe[a+4>>2]=2121;pe[a+8>>2]=1169;br(l,1100,a)|0;_r(l,m+40|0)|0}a=pe[p>>2]|0;if(a>>>0>=t>>>0){p=1;ve=m;return p|0}do{if(r){if(t){o=t+-1|0;if(!(o&t)){o=11;break}else t=o}else t=-1;t=t>>>16|t;t=t>>>8|t;t=t>>>4|t;t=t>>>2|t;t=(t>>>1|t)+1|0;o=10}else o=10}while(0);if((o|0)==10)if(!t){t=0;o=12}else o=11;if((o|0)==11)if(t>>>0<=a>>>0)o=12;if((o|0)==12){pe[s>>2]=1154;pe[s+4>>2]=2130;pe[s+8>>2]=1217;br(l,1100,s)|0;_r(l,u)|0}r=ye(t,n)|0;do{if(!i){o=ot(pe[e>>2]|0,r,d,1)|0;if(!o){p=0;ve=m;return p|0}else{pe[e>>2]=o;break}}else{a=at(r,d)|0;if(!a){p=0;ve=m;return p|0}On[i&0](a,pe[e>>2]|0,pe[c>>2]|0);o=pe[e>>2]|0;do{if(o)if(!(o&7)){Dn[pe[104>>2]&1](o,0,0,1,pe[27]|0)|0;break}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(l,1100,f)|0;_r(l,h)|0;break}}while(0);pe[e>>2]=a}}while(0);o=pe[d>>2]|0;if(o>>>0>r>>>0)t=(o>>>0)/(n>>>0)|0;pe[p>>2]=t;p=1;ve=m;return p|0}function ot(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;c=ve;ve=ve+592|0;u=c+48|0;o=c+24|0;i=c;s=c+72|0;a=c+68|0;if(e&7){pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1494;br(s,1100,i)|0;_r(s,c+16|0)|0;u=0;ve=c;return u|0}if(t>>>0>2147418112){pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1387;br(s,1100,o)|0;_r(s,c+40|0)|0;u=0;ve=c;return u|0}pe[a>>2]=t;n=Dn[pe[104>>2]&1](e,t,a,n,pe[27]|0)|0;if(r)pe[r>>2]=pe[a>>2];if(!(n&7)){u=n;ve=c;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;br(s,1100,u)|0;_r(s,c+64|0)|0;u=n;ve=c;return u|0}function at(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0;u=ve;ve=ve+592|0;a=u+48|0;s=u+24|0;r=u;o=u+72|0;i=u+68|0;n=e+3&-4;n=(n|0)!=0?n:4;if(n>>>0>2147418112){pe[r>>2]=1154;pe[r+4>>2]=2499;pe[r+8>>2]=1387;br(o,1100,r)|0;_r(o,u+16|0)|0;s=0;ve=u;return s|0}pe[i>>2]=n;r=Dn[pe[104>>2]&1](0,n,i,1,pe[27]|0)|0;e=pe[i>>2]|0;if(t)pe[t>>2]=e;if((r|0)==0|e>>>0<n>>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;br(o,1100,s)|0;_r(o,u+40|0)|0;s=0;ve=u;return s|0}if(!(r&7)){s=r;ve=u;return s|0}pe[a>>2]=1154;pe[a+4>>2]=2526;pe[a+8>>2]=1440;br(o,1100,a)|0;_r(o,u+64|0)|0;s=r;ve=u;return s|0}function st(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0;F=ve;ve=ve+960|0;L=F+232|0;D=F+216|0;I=F+208|0;R=F+192|0;O=F+184|0;A=F+168|0;k=F+160|0;C=F+144|0;M=F+136|0;S=F+120|0;T=F+112|0;w=F+96|0;_=F+88|0;y=F+72|0;v=F+64|0;g=F+48|0;f=F+40|0;d=F+24|0;h=F+16|0;l=F;E=F+440|0;N=F+376|0;j=F+304|0;m=F+236|0;if((t|0)==0|n>>>0>11){e=0;ve=F;return e|0}pe[e>>2]=t;i=j;o=i+68|0;do{pe[i>>2]=0;i=i+4|0}while((i|0)<(o|0));o=0;do{i=de[r+o>>0]|0;if(i<<24>>24){P=j+((i&255)<<2)|0;pe[P>>2]=(pe[P>>2]|0)+1}o=o+1|0}while((o|0)!=(t|0));o=0;c=1;a=0;s=-1;u=0;while(1){i=pe[j+(c<<2)>>2]|0;if(!i)pe[e+28+(c+-1<<2)>>2]=0;else{P=c+-1|0;pe[N+(P<<2)>>2]=o;o=i+o|0;x=16-c|0;pe[e+28+(P<<2)>>2]=(o+-1<<x|(1<<x)+-1)+1;pe[e+96+(P<<2)>>2]=u;pe[m+(c<<2)>>2]=u;a=a>>>0>c>>>0?a:c;s=s>>>0<c>>>0?s:c;u=i+u|0}c=c+1|0;if((c|0)==17){P=a;break}else o=o<<1}pe[e+4>>2]=u;o=e+172|0;do{if(u>>>0>(pe[o>>2]|0)>>>0){pe[o>>2]=u;if(u){i=u+-1|0;if(i&u)p=14}else{i=-1;p=14}if((p|0)==14){x=i>>>16|i;x=x>>>8|x;x=x>>>4|x;x=x>>>2|x;x=(x>>>1|x)+1|0;pe[o>>2]=x>>>0>t>>>0?t:x}a=e+176|0;i=pe[a>>2]|0;do{if(i){x=pe[i+-4>>2]|0;i=i+-8|0;if(!((x|0)!=0?(x|0)==(~pe[i>>2]|0):0)){pe[l>>2]=1154;pe[l+4>>2]=644;pe[l+8>>2]=1863;br(E,1100,l)|0;_r(E,h)|0}if(!(i&7)){Dn[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;break}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;br(E,1100,d)|0;_r(E,f)|0;break}}}while(0);o=pe[o>>2]|0;o=(o|0)!=0?o:1;i=at((o<<1)+8|0,0)|0;if(!i){pe[a>>2]=0;i=0;break}else{pe[i+4>>2]=o;pe[i>>2]=~o;pe[a>>2]=i+8;p=25;break}}else p=25}while(0);e:do{if((p|0)==25){x=e+24|0;de[x>>0]=s;de[e+25>>0]=P;o=e+176|0;a=0;do{b=de[r+a>>0]|0;i=b&255;if(b<<24>>24){if(!(pe[j+(i<<2)>>2]|0)){pe[g>>2]=1154;pe[g+4>>2]=2273;pe[g+8>>2]=1261;br(E,1100,g)|0;_r(E,v)|0}b=m+(i<<2)|0;i=pe[b>>2]|0;pe[b>>2]=i+1;if(i>>>0>=u>>>0){pe[y>>2]=1154;pe[y+4>>2]=2277;pe[y+8>>2]=1274;br(E,1100,y)|0;_r(E,_)|0}$[(pe[o>>2]|0)+(i<<1)>>1]=a}a=a+1|0}while((a|0)!=(t|0));i=de[x>>0]|0;_=(i&255)>>>0<n>>>0?n:0;b=e+8|0;pe[b>>2]=_;y=(_|0)!=0;if(y){v=1<<_;i=e+164|0;do{if(v>>>0>(pe[i>>2]|0)>>>0){pe[i>>2]=v;a=e+168|0;i=pe[a>>2]|0;do{if(i){g=pe[i+-4>>2]|0;i=i+-8|0;if(!((g|0)!=0?(g|0)==(~pe[i>>2]|0):0)){pe[w>>2]=1154;pe[w+4>>2]=644;pe[w+8>>2]=1863;br(E,1100,w)|0;_r(E,T)|0}if(!(i&7)){Dn[pe[104>>2]&1](i,0,0,1,pe[27]|0)|0;break}else{pe[S>>2]=1154;pe[S+4>>2]=2499;pe[S+8>>2]=1516;br(E,1100,S)|0;_r(E,M)|0;break}}}while(0);i=v<<2;o=at(i+8|0,0)|0;if(!o){pe[a>>2]=0;i=0;break e}else{M=o+8|0;pe[o+4>>2]=v;pe[o>>2]=~v;pe[a>>2]=M;o=M;break}}else{o=e+168|0;i=v<<2;a=o;o=pe[o>>2]|0}}while(0);Vr(o|0,-1,i|0)|0;p=e+176|0;g=1;do{if(pe[j+(g<<2)>>2]|0){t=_-g|0;m=1<<t;o=g+-1|0;s=pe[N+(o<<2)>>2]|0;if(o>>>0>=16){pe[C>>2]=1154;pe[C+4>>2]=1953;pe[C+8>>2]=1737;br(E,1100,C)|0;_r(E,k)|0}i=pe[e+28+(o<<2)>>2]|0;if(!i)d=-1;else d=(i+-1|0)>>>(16-g|0);if(s>>>0<=d>>>0){f=(pe[e+96+(o<<2)>>2]|0)-s|0;h=g<<16;do{i=ge[(pe[p>>2]|0)+(f+s<<1)>>1]|0;if((me[r+i>>0]|0|0)!=(g|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;br(E,1100,A)|0;_r(E,O)|0}l=s<<t;o=i|h;c=0;do{u=c+l|0;if(u>>>0>=v>>>0){pe[R>>2]=1154;pe[R+4>>2]=2325;pe[R+8>>2]=1337;br(E,1100,R)|0;_r(E,I)|0}i=pe[a>>2]|0;if((pe[i+(u<<2)>>2]|0)!=-1){pe[D>>2]=1154;pe[D+4>>2]=2327;pe[D+8>>2]=1360;br(E,1100,D)|0;_r(E,L)|0;i=pe[a>>2]|0}pe[i+(u<<2)>>2]=o;c=c+1|0}while(c>>>0<m>>>0);s=s+1|0}while(s>>>0<=d>>>0)}}g=g+1|0}while(_>>>0>=g>>>0);i=de[x>>0]|0}o=e+96|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N>>2]|0);o=e+100|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+4>>2]|0);o=e+104|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+8>>2]|0);o=e+108|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+12>>2]|0);o=e+112|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+16>>2]|0);o=e+116|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+20>>2]|0);o=e+120|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+24>>2]|0);o=e+124|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+28>>2]|0);o=e+128|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+32>>2]|0);o=e+132|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+36>>2]|0);o=e+136|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+40>>2]|0);o=e+140|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+44>>2]|0);o=e+144|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+48>>2]|0);o=e+148|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+52>>2]|0);o=e+152|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+56>>2]|0);o=e+156|0;pe[o>>2]=(pe[o>>2]|0)-(pe[N+60>>2]|0);o=e+16|0;pe[o>>2]=0;a=e+20|0;pe[a>>2]=i&255;t:do{if(y){while(1){if(!n)break t;i=n+-1|0;if(!(pe[j+(n<<2)>>2]|0))n=i;else break}pe[o>>2]=pe[e+28+(i<<2)>>2];i=_+1|0;pe[a>>2]=i;if(i>>>0<=P>>>0){while(1){if(pe[j+(i<<2)>>2]|0)break;i=i+1|0;if(i>>>0>P>>>0)break t}pe[a>>2]=i}}}while(0);pe[e+92>>2]=-1;pe[e+160>>2]=1048575;pe[e+12>>2]=32-(pe[b>>2]|0);i=1}}while(0);e=i;ve=F;return e|0}function ut(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0;if(!e){i=zr(t)|0;if(!r){r=i;return r|0}if(!i)o=0;else o=qr(i)|0;pe[r>>2]=o;r=i;return r|0}if(!t){Ur(e);if(!r){r=0;return r|0}pe[r>>2]=0;r=0;return r|0}i=Xr(e,t)|0;o=(i|0)!=0;if(o|n^1)o=o?i:e;else{i=Xr(e,t)|0;o=(i|0)==0?e:i}if(!r){r=i;return r|0}t=qr(o)|0;pe[r>>2]=t;r=i;return r|0}function ct(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(!((e|0)!=0&t>>>0>73&(r|0)!=0)){r=0;return r|0}if((pe[r>>2]|0)!=40|t>>>0<74){r=0;return r|0}if(((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(me[e+12>>0]|0)<<8|(me[e+13>>0]|0);pe[r+8>>2]=(me[e+14>>0]|0)<<8|(me[e+15>>0]|0);pe[r+12>>2]=me[e+16>>0];pe[r+16>>2]=me[e+17>>0];t=e+18|0;n=r+32|0;pe[n>>2]=me[t>>0];pe[n+4>>2]=0;t=de[t>>0]|0;pe[r+20>>2]=t<<24>>24==0|t<<24>>24==9?8:16;pe[r+24>>2]=(me[e+26>>0]|0)<<16|(me[e+25>>0]|0)<<24|(me[e+27>>0]|0)<<8|(me[e+28>>0]|0);pe[r+28>>2]=(me[e+30>>0]|0)<<16|(me[e+29>>0]|0)<<24|(me[e+31>>0]|0)<<8|(me[e+32>>0]|0);r=1;return r|0}function lt(e){e=e|0;Oe(e|0)|0;Ut()}function ft(e){e=e|0;var t=0,r=0,n=0,i=0,o=0;o=ve;ve=ve+544|0;i=o;n=o+24|0;t=pe[e+20>>2]|0;if(t)ht(t);t=e+4|0;r=pe[t>>2]|0;if(!r){i=e+16|0;de[i>>0]=0;ve=o;return}if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;br(n,1100,i)|0;_r(n,o+16|0)|0}pe[t>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;i=e+16|0;de[i>>0]=0;ve=o;return}function ht(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;d=ve;ve=ve+640|0;h=d+112|0;f=d+96|0;l=d+88|0;c=d+72|0;u=d+64|0;s=d+48|0;n=d+40|0;o=d+24|0;i=d+16|0;r=d;a=d+120|0;if(!e){ve=d;return}t=pe[e+168>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[r>>2]=1154;pe[r+4>>2]=644;pe[r+8>>2]=1863;br(a,1100,r)|0;_r(a,i)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[o>>2]=1154;pe[o+4>>2]=2499;pe[o+8>>2]=1516;br(a,1100,o)|0;_r(a,n)|0;break}}}while(0);t=pe[e+176>>2]|0;do{if(t){p=pe[t+-4>>2]|0;t=t+-8|0;if(!((p|0)!=0?(p|0)==(~pe[t>>2]|0):0)){pe[s>>2]=1154;pe[s+4>>2]=644;pe[s+8>>2]=1863;br(a,1100,s)|0;_r(a,u)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;br(a,1100,c)|0;_r(a,l)|0;break}}}while(0);if(!(e&7)){Dn[pe[104>>2]&1](e,0,0,1,pe[27]|0)|0;ve=d;return}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(a,1100,f)|0;_r(a,h)|0;ve=d;return}}function dt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+560|0;a=l+40|0;s=l+24|0;t=l;o=l+48|0;i=e+8|0;r=pe[i>>2]|0;if((r+-1|0)>>>0>=8192){pe[t>>2]=1154;pe[t+4>>2]=2997;pe[t+8>>2]=1541;br(o,1100,t)|0;_r(o,l+16|0)|0}pe[e>>2]=r;n=e+20|0;t=pe[n>>2]|0;if(!t){t=at(180,0)|0;if(!t)t=0;else{c=t+164|0;pe[c>>2]=0;pe[c+4>>2]=0;pe[c+8>>2]=0;pe[c+12>>2]=0}pe[n>>2]=t;c=t;u=pe[e>>2]|0}else{c=t;u=r}if(!(pe[i>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(o,1100,s)|0;_r(o,a)|0;o=pe[e>>2]|0}else o=u;i=pe[e+4>>2]|0;if(o>>>0>16){r=o;t=0}else{e=0;c=st(c,u,i,e)|0;ve=l;return c|0}while(1){n=t+1|0;if(r>>>0>3){r=r>>>1;t=n}else{r=n;break}}e=t+2+((r|0)!=32&1<<r>>>0<o>>>0&1)|0;e=e>>>0<11?e&255:11;c=st(c,u,i,e)|0;ve=l;return c|0}function pt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0;L=ve;ve=ve+800|0;A=L+256|0;k=L+240|0;C=L+232|0;E=L+216|0;P=L+208|0;M=L+192|0;S=L+184|0;T=L+168|0;w=L+160|0;x=L+144|0;b=L+136|0;_=L+120|0;y=L+112|0;v=L+96|0;g=L+88|0;m=L+72|0;f=L+64|0;l=L+48|0;s=L+40|0;u=L+24|0;o=L+16|0;i=L;I=L+288|0;D=L+264|0;O=mt(e,14)|0;if(!O){pe[t>>2]=0;r=t+4|0;n=pe[r>>2]|0;if(n){if(!(n&7))Dn[pe[104>>2]&1](n,0,0,1,pe[27]|0)|0;else{pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1516;br(I,1100,i)|0;_r(I,o)|0}pe[r>>2]=0;pe[t+8>>2]=0;pe[t+12>>2]=0}de[t+16>>0]=0;r=t+20|0;n=pe[r>>2]|0;if(!n){t=1;ve=L;return t|0}ht(n);pe[r>>2]=0;t=1;ve=L;return t|0}d=t+4|0;p=t+8|0;r=pe[p>>2]|0;if((r|0)!=(O|0)){if(r>>>0<=O>>>0){do{if((pe[t+12>>2]|0)>>>0<O>>>0){if(it(d,O,(r+1|0)==(O|0),1,0)|0){r=pe[p>>2]|0;break}de[t+16>>0]=1;t=0;ve=L;return t|0}}while(0);Vr((pe[d>>2]|0)+r|0,0,O-r|0)|0}pe[p>>2]=O}Vr(pe[d>>2]|0,0,O|0)|0;h=e+20|0;r=pe[h>>2]|0;if((r|0)<5){o=e+4|0;a=e+8|0;i=e+16|0;do{n=pe[o>>2]|0;if((n|0)==(pe[a>>2]|0))n=0;else{pe[o>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;br(I,1100,u)|0;_r(I,s)|0;r=pe[h>>2]|0}n=n<<32-r|pe[i>>2];pe[i>>2]=n}while((r|0)<5)}else{n=e+16|0;i=n;n=pe[n>>2]|0}c=n>>>27;pe[i>>2]=n<<5;pe[h>>2]=r+-5;if((c+-1|0)>>>0>20){t=0;ve=L;return t|0}pe[D+20>>2]=0;pe[D>>2]=0;pe[D+4>>2]=0;pe[D+8>>2]=0;pe[D+12>>2]=0;de[D+16>>0]=0;r=D+4|0;n=D+8|0;e:do{if(it(r,21,0,1,0)|0){s=pe[n>>2]|0;u=pe[r>>2]|0;Vr(u+s|0,0,21-s|0)|0;pe[n>>2]=21;if(c){i=e+4|0;o=e+8|0;a=e+16|0;s=0;do{r=pe[h>>2]|0;if((r|0)<3)do{n=pe[i>>2]|0;if((n|0)==(pe[o>>2]|0))n=0;else{pe[i>>2]=n+1;n=me[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[l>>2]=1154;pe[l+4>>2]=3199;pe[l+8>>2]=1650;br(I,1100,l)|0;_r(I,f)|0;r=pe[h>>2]|0}n=n<<32-r|pe[a>>2];pe[a>>2]=n}while((r|0)<3);else n=pe[a>>2]|0;pe[a>>2]=n<<3;pe[h>>2]=r+-3;de[u+(me[1611+s>>0]|0)>>0]=n>>>29;s=s+1|0}while((s|0)!=(c|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;c=e+16|0;n=0;t:while(1){a=O-n|0;r=gt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=n>>>0){pe[m>>2]=1154;pe[m+4>>2]=903;pe[m+8>>2]=1781;br(I,1100,m)|0;_r(I,g)|0}de[(pe[d>>2]|0)+n>>0]=r;r=n+1|0}else switch(r|0){case 17:{r=pe[h>>2]|0;if((r|0)<3)do{i=pe[s>>2]|0;if((i|0)==(pe[u>>2]|0))i=0;else{pe[s>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[v>>2]=1154;pe[v+4>>2]=3199;pe[v+8>>2]=1650;br(I,1100,v)|0;_r(I,y)|0;r=pe[h>>2]|0}i=i<<32-r|pe[c>>2];pe[c>>2]=i}while((r|0)<3);else i=pe[c>>2]|0;pe[c>>2]=i<<3;pe[h>>2]=r+-3;r=(i>>>29)+3|0;if(r>>>0>a>>>0){r=0;break e}r=r+n|0;break r}case 18:{r=pe[h>>2]|0;if((r|0)<7)do{i=pe[s>>2]|0;if((i|0)==(pe[u>>2]|0))i=0;else{pe[s>>2]=i+1;i=me[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[_>>2]=1154;pe[_+4>>2]=3199;pe[_+8>>2]=1650;br(I,1100,_)|0;_r(I,b)|0;r=pe[h>>2]|0}i=i<<32-r|pe[c>>2];pe[c>>2]=i}while((r|0)<7);else i=pe[c>>2]|0;pe[c>>2]=i<<7;pe[h>>2]=r+-7;r=(i>>>25)+11|0;if(r>>>0>a>>>0){r=0;break e}r=r+n|0;break r}default:{if((r+-19|0)>>>0>=2){R=90;break t}o=pe[h>>2]|0;if((r|0)==19){if((o|0)<2){i=o;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))o=0;else{pe[s>>2]=r+1;o=me[r>>0]|0}r=i+8|0;pe[h>>2]=r;if((r|0)>=33){pe[x>>2]=1154;pe[x+4>>2]=3199;pe[x+8>>2]=1650;br(I,1100,x)|0;_r(I,w)|0;r=pe[h>>2]|0}i=o<<32-r|pe[c>>2];pe[c>>2]=i;if((r|0)<2)i=r;else break}}else{i=pe[c>>2]|0;r=o}pe[c>>2]=i<<2;pe[h>>2]=r+-2;o=(i>>>30)+3|0}else{if((o|0)<6){i=o;while(1){r=pe[s>>2]|0;if((r|0)==(pe[u>>2]|0))o=0;else{pe[s>>2]=r+1;o=me[r>>0]|0}r=i+8|0;pe[h>>2]=r;if((r|0)>=33){pe[T>>2]=1154;pe[T+4>>2]=3199;pe[T+8>>2]=1650;br(I,1100,T)|0;_r(I,S)|0;r=pe[h>>2]|0}i=o<<32-r|pe[c>>2];pe[c>>2]=i;if((r|0)<6)i=r;else break}}else{i=pe[c>>2]|0;r=o}pe[c>>2]=i<<6;pe[h>>2]=r+-6;o=(i>>>26)+7|0}if((n|0)==0|o>>>0>a>>>0){r=0;break e}r=n+-1|0;if((pe[p>>2]|0)>>>0<=r>>>0){pe[M>>2]=1154;pe[M+4>>2]=903;pe[M+8>>2]=1781;br(I,1100,M)|0;_r(I,P)|0}i=de[(pe[d>>2]|0)+r>>0]|0;if(!(i<<24>>24)){r=0;break e}r=o+n|0;if(n>>>0>=r>>>0){r=n;break r}do{if((pe[p>>2]|0)>>>0<=n>>>0){pe[E>>2]=1154;pe[E+4>>2]=903;pe[E+8>>2]=1781;br(I,1100,E)|0;_r(I,C)|0}de[(pe[d>>2]|0)+n>>0]=i;n=n+1|0}while((n|0)!=(r|0))}}}while(0);if(O>>>0>r>>>0)n=r;else break}if((R|0)==90){pe[k>>2]=1154;pe[k+4>>2]=3140;pe[k+8>>2]=1632;br(I,1100,k)|0;_r(I,A)|0;r=0;break}if((O|0)==(r|0))r=dt(t)|0;else r=0}else r=0}else{de[D+16>>0]=1;r=0}}while(0);ft(D);t=r;ve=L;return t|0}function mt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+544|0;s=l+16|0;a=l;o=l+24|0;if(!t){c=0;ve=l;return c|0}if(t>>>0<=16){c=vt(e,t)|0;ve=l;return c|0}u=vt(e,t+-16|0)|0;c=e+20|0;t=pe[c>>2]|0;if((t|0)<16){n=e+4|0;i=e+8|0;r=e+16|0;do{e=pe[n>>2]|0;if((e|0)==(pe[i>>2]|0))e=0;else{pe[n>>2]=e+1;e=me[e>>0]|0}t=t+8|0;pe[c>>2]=t;if((t|0)>=33){pe[a>>2]=1154;pe[a+4>>2]=3199;pe[a+8>>2]=1650;br(o,1100,a)|0;_r(o,s)|0;t=pe[c>>2]|0}e=e<<32-t|pe[r>>2];pe[r>>2]=e}while((t|0)<16)}else{e=e+16|0;r=e;e=pe[e>>2]|0}pe[r>>2]=e<<16;pe[c>>2]=t+-16;c=e>>>16|u<<16;ve=l;return c|0}function gt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0;_=ve;ve=ve+608|0;m=_+88|0;p=_+72|0;h=_+64|0;f=_+48|0;l=_+40|0;d=_+24|0;c=_+16|0;u=_;v=_+96|0;g=pe[t+20>>2]|0;y=e+20|0;s=pe[y>>2]|0;do{if((s|0)<24){a=e+4|0;n=pe[a>>2]|0;i=pe[e+8>>2]|0;r=n>>>0<i>>>0;if((s|0)>=16){if(r){pe[a>>2]=n+1;r=me[n>>0]|0}else r=0;pe[y>>2]=s+8;a=e+16|0;o=r<<24-s|pe[a>>2];pe[a>>2]=o;break}if(r){o=(me[n>>0]|0)<<8;r=n+1|0}else{o=0;r=n}if(r>>>0<i>>>0){n=me[r>>0]|0;r=r+1|0}else n=0;pe[a>>2]=r;pe[y>>2]=s+16;a=e+16|0;o=(n|o)<<16-s|pe[a>>2];pe[a>>2]=o}else{o=e+16|0;a=o;o=pe[o>>2]|0}}while(0);i=(o>>>16)+1|0;do{if(i>>>0<=(pe[g+16>>2]|0)>>>0){n=pe[(pe[g+168>>2]|0)+(o>>>(32-(pe[g+8>>2]|0)|0)<<2)>>2]|0;if((n|0)==-1){pe[u>>2]=1154;pe[u+4>>2]=3244;pe[u+8>>2]=1677;br(v,1100,u)|0;_r(v,c)|0}r=n&65535;n=n>>>16;if((pe[t+8>>2]|0)>>>0<=r>>>0){pe[d>>2]=1154;pe[d+4>>2]=902;pe[d+8>>2]=1781;br(v,1100,d)|0;_r(v,l)|0}if((me[(pe[t+4>>2]|0)+r>>0]|0|0)!=(n|0)){pe[f>>2]=1154;pe[f+4>>2]=3248;pe[f+8>>2]=1694;br(v,1100,f)|0;_r(v,h)|0}}else{n=pe[g+20>>2]|0;while(1){r=n+-1|0;if(i>>>0>(pe[g+28+(r<<2)>>2]|0)>>>0)n=n+1|0;else break}r=(o>>>(32-n|0))+(pe[g+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=ge[(pe[g+176>>2]|0)+(r<<1)>>1]|0;break}pe[p>>2]=1154;pe[p+4>>2]=3266;pe[p+8>>2]=1632;br(v,1100,p)|0;_r(v,m)|0;y=0;ve=_;return y|0}}while(0);pe[a>>2]=pe[a>>2]<<n;pe[y>>2]=(pe[y>>2]|0)-n;y=r;ve=_;return y|0}function vt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+560|0;s=l+40|0;u=l+24|0;r=l;a=l+48|0;if(t>>>0>=33){pe[r>>2]=1154;pe[r+4>>2]=3190;pe[r+8>>2]=1634;br(a,1100,r)|0;_r(a,l+16|0)|0}c=e+20|0;r=pe[c>>2]|0;if((r|0)>=(t|0)){o=e+16|0;a=o;o=pe[o>>2]|0;s=r;u=32-t|0;u=o>>>u;o=o<<t;pe[a>>2]=o;t=s-t|0;pe[c>>2]=t;ve=l;return u|0}i=e+4|0;o=e+8|0;n=e+16|0;do{e=pe[i>>2]|0;if((e|0)==(pe[o>>2]|0))e=0;else{pe[i>>2]=e+1;e=me[e>>0]|0}r=r+8|0;pe[c>>2]=r;if((r|0)>=33){pe[u>>2]=1154;pe[u+4>>2]=3199;pe[u+8>>2]=1650;br(a,1100,u)|0;_r(a,s)|0;r=pe[c>>2]|0}e=e<<32-r|pe[n>>2];pe[n>>2]=e}while((r|0)<(t|0));u=32-t|0;u=e>>>u;s=e<<t;pe[n>>2]=s;t=r-t|0;pe[c>>2]=t;ve=l;return u|0}function yt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0;p=ve;ve=ve+544|0;h=p+16|0;f=p;l=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}c=at(300,0)|0;if(!c){d=0;ve=p;return d|0}pe[c>>2]=519686845;r=c+4|0;pe[r>>2]=0;n=c+8|0;pe[n>>2]=0;u=c+88|0;i=c+136|0;o=c+160|0;a=u;s=a+44|0;do{pe[a>>2]=0;a=a+4|0}while((a|0)<(s|0));de[u+44>>0]=0;m=c+184|0;a=c+208|0;s=c+232|0;g=c+252|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=c+268|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;g=c+284|0;pe[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;de[g+12>>0]=0;pe[i>>2]=0;pe[i+4>>2]=0;pe[i+8>>2]=0;pe[i+12>>2]=0;pe[i+16>>2]=0;de[i+20>>0]=0;pe[o>>2]=0;pe[o+4>>2]=0;pe[o+8>>2]=0;pe[o+12>>2]=0;pe[o+16>>2]=0;de[o+20>>0]=0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;pe[m+12>>2]=0;pe[m+16>>2]=0;de[m+20>>0]=0;pe[a>>2]=0;pe[a+4>>2]=0;pe[a+8>>2]=0;pe[a+12>>2]=0;pe[a+16>>2]=0;de[a+20>>0]=0;pe[s>>2]=0;pe[s+4>>2]=0;pe[s+8>>2]=0;pe[s+12>>2]=0;de[s+16>>0]=0;do{if(((t>>>0>=74?((me[e>>0]|0)<<8|(me[e+1>>0]|0)|0)==18552:0)?((me[e+2>>0]|0)<<8|(me[e+3>>0]|0))>>>0>=74:0)?((me[e+7>>0]|0)<<16|(me[e+6>>0]|0)<<24|(me[e+8>>0]|0)<<8|(me[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[n>>2]=t;if(Et(c)|0){r=pe[u>>2]|0;if((me[r+39>>0]|0)<<8|(me[r+40>>0]|0)){if(!(Ct(c)|0))break;if(!(kt(c)|0))break;r=pe[u>>2]|0}if(!((me[r+55>>0]|0)<<8|(me[r+56>>0]|0))){g=c;ve=p;return g|0}if(At(c)|0?Ot(c)|0:0){g=c;ve=p;return g|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Nt(c);if(!(c&7)){Dn[pe[104>>2]&1](c,0,0,1,pe[27]|0)|0;g=0;ve=p;return g|0}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(l,1100,f)|0;_r(l,h)|0;g=0;ve=p;return g|0}return 0}function _t(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+544|0;c=l;u=l+24|0;o=pe[e+88>>2]|0;s=(me[o+70+(i<<2)+1>>0]|0)<<16|(me[o+70+(i<<2)>>0]|0)<<24|(me[o+70+(i<<2)+2>>0]|0)<<8|(me[o+70+(i<<2)+3>>0]|0);a=i+1|0;if(a>>>0<(me[o+16>>0]|0)>>>0)o=(me[o+70+(a<<2)+1>>0]|0)<<16|(me[o+70+(a<<2)>>0]|0)<<24|(me[o+70+(a<<2)+2>>0]|0)<<8|(me[o+70+(a<<2)+3>>0]|0);else o=pe[e+8>>2]|0;if(o>>>0>s>>>0){u=e+4|0;u=pe[u>>2]|0;u=u+s|0;c=o-s|0;c=bt(e,u,c,t,r,n,i)|0;ve=l;return c|0}pe[c>>2]=1154;pe[c+4>>2]=3704;pe[c+8>>2]=1792;br(u,1100,c)|0;_r(u,l+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;c=o-s|0;c=bt(e,u,c,t,r,n,i)|0;ve=l;return c|0}function bt(e,t,r,n,i,o,a){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;var s=0,u=0,c=0,l=0;l=pe[e+88>>2]|0;u=((me[l+12>>0]|0)<<8|(me[l+13>>0]|0))>>>a;c=((me[l+14>>0]|0)<<8|(me[l+15>>0]|0))>>>a;u=u>>>0>1?(u+3|0)>>>2:1;c=c>>>0>1?(c+3|0)>>>2:1;l=l+18|0;a=de[l>>0]|0;a=ye(a<<24>>24==0|a<<24>>24==9?8:16,u)|0;if(o)if((o&3|0)==0&a>>>0<=o>>>0)a=o;else{e=0;return e|0}if((ye(a,c)|0)>>>0>i>>>0){e=0;return e|0}o=(u+1|0)>>>1;s=(c+1|0)>>>1;if(!r){e=0;return e|0}pe[e+92>>2]=t;pe[e+96>>2]=t;pe[e+104>>2]=r;pe[e+100>>2]=t+r;pe[e+108>>2]=0;pe[e+112>>2]=0;switch(me[l>>0]|0|0){case 0:{Rt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{It(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 9:{Dt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}case 8:case 7:{Lt(e,n,i,a,u,c,o,s)|0;e=1;return e|0}default:{e=0;return e|0}}return 0}function xt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+4>>2]|0}function wt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+8>>2]|0}function Tt(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+12>>2]|0}function St(e,t){e=e|0;t=t|0;var r=0,n=0;n=ve;ve=ve+48|0;r=n;pe[r>>2]=40;ct(e,t,r)|0;ve=n;return pe[r+32>>2]|0}function Mt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0;u=ve;ve=ve+576|0;a=u+56|0;o=u+40|0;i=u+64|0;c=u;pe[c>>2]=40;ct(e,t,c)|0;n=(((pe[c+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[c+8>>2]|0)>>>r)+3|0)>>>2;r=c+32|0;e=pe[r+4>>2]|0;do{switch(pe[r>>2]|0){case 0:{if(!e)e=8;else s=13;break}case 1:{if(!e)s=12;else s=13;break}case 2:{if(!e)s=12;else s=13;break}case 3:{if(!e)s=12;else s=13;break}case 4:{if(!e)s=12;else s=13;break}case 5:{if(!e)s=12;else s=13;break}case 6:{if(!e)s=12;else s=13;break}case 7:{if(!e)s=12;else s=13;break}case 8:{if(!e)s=12;else s=13;break}case 9:{if(!e)e=8;else s=13;break}default:s=13}}while(0);if((s|0)==12)e=16;else if((s|0)==13){pe[o>>2]=1154;pe[o+4>>2]=2663;pe[o+8>>2]=1535;br(i,1100,o)|0;_r(i,a)|0;e=0}c=ye(ye(t,n)|0,e)|0;ve=u;return c|0}function Pt(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;p=ve;ve=ve+608|0;h=p+80|0;d=p+64|0;s=p+56|0;a=p+40|0;l=p+88|0;m=p;f=p+84|0;pe[m>>2]=40;ct(e,t,m)|0;u=(((pe[m+4>>2]|0)>>>i)+3|0)>>>2;m=m+32|0;o=pe[m+4>>2]|0;do{switch(pe[m>>2]|0){case 0:{if(!o)o=8;else c=13;break}case 1:{if(!o)c=12;else c=13;break}case 2:{if(!o)c=12;else c=13;break}case 3:{if(!o)c=12;else c=13;break}case 4:{if(!o)c=12;else c=13;break}case 5:{if(!o)c=12;else c=13;break}case 6:{if(!o)c=12;else c=13;break}case 7:{if(!o)c=12;else c=13;break}case 8:{if(!o)c=12;else c=13;break}case 9:{if(!o)o=8;else c=13;break}default:c=13}}while(0);if((c|0)==12)o=16;else if((c|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;br(l,1100,a)|0;_r(l,s)|0;o=0}s=ye(o,u)|0;a=yt(e,t)|0;pe[f>>2]=r;o=(a|0)==0;if(!(i>>>0>15|(n>>>0<8|o))?(pe[a>>2]|0)==519686845:0)_t(a,f,n,s,i)|0;if(o){ve=p;return}if((pe[a>>2]|0)!=519686845){ve=p;return}Nt(a);if(!(a&7)){Dn[pe[104>>2]&1](a,0,0,1,pe[27]|0)|0;ve=p;return}else{pe[d>>2]=1154;pe[d+4>>2]=2499;pe[d+8>>2]=1516;br(l,1100,d)|0;_r(l,h)|0;ve=p;return}}function Et(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0;a=e+92|0;n=pe[e+4>>2]|0;o=e+88|0;i=pe[o>>2]|0;t=(me[i+68>>0]|0)<<8|(me[i+67>>0]|0)<<16|(me[i+69>>0]|0);r=n+t|0;i=(me[i+65>>0]|0)<<8|(me[i+66>>0]|0);if(!i){e=0;return e|0}pe[a>>2]=r;pe[e+96>>2]=r;pe[e+104>>2]=i;pe[e+100>>2]=n+(i+t);pe[e+108>>2]=0;pe[e+112>>2]=0;if(!(pt(a,e+116|0)|0)){e=0;return e|0}t=pe[o>>2]|0;do{if(!((me[t+39>>0]|0)<<8|(me[t+40>>0]|0))){if(!((me[t+55>>0]|0)<<8|(me[t+56>>0]|0))){e=0;return e|0}}else{if(!(pt(a,e+140|0)|0)){e=0;return e|0}if(pt(a,e+188|0)|0){t=pe[o>>2]|0;break}else{e=0;return e|0}}}while(0);if((me[t+55>>0]|0)<<8|(me[t+56>>0]|0)){if(!(pt(a,e+164|0)|0)){e=0;return e|0}if(!(pt(a,e+212|0)|0)){e=0;return e|0}}e=1;return e|0}function Ct(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+592|0;u=p+16|0;s=p;a=p+72|0;d=p+24|0;n=e+88|0;t=pe[n>>2]|0;h=(me[t+39>>0]|0)<<8|(me[t+40>>0]|0);l=e+236|0;o=e+240|0;r=pe[o>>2]|0;if((r|0)!=(h|0)){if(r>>>0<=h>>>0){do{if((pe[e+244>>2]|0)>>>0<h>>>0){if(it(l,h,(r+1|0)==(h|0),4,0)|0){t=pe[o>>2]|0;break}de[e+248>>0]=1;d=0;ve=p;return d|0}else t=r}while(0);Vr((pe[l>>2]|0)+(t<<2)|0,0,h-t<<2|0)|0;t=pe[n>>2]|0}pe[o>>2]=h}c=e+92|0;r=pe[e+4>>2]|0;n=(me[t+34>>0]|0)<<8|(me[t+33>>0]|0)<<16|(me[t+35>>0]|0);i=r+n|0;t=(me[t+37>>0]|0)<<8|(me[t+36>>0]|0)<<16|(me[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[c>>2]=i;pe[e+96>>2]=i;pe[e+104>>2]=t;pe[e+100>>2]=r+(t+n);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[d+20>>2]=0;pe[d>>2]=0;pe[d+4>>2]=0;pe[d+8>>2]=0;pe[d+12>>2]=0;de[d+16>>0]=0;e=d+24|0;pe[d+44>>2]=0;pe[e>>2]=0;pe[e+4>>2]=0;pe[e+8>>2]=0;pe[e+12>>2]=0;de[e+16>>0]=0;if(pt(c,d)|0?(f=d+24|0,pt(c,f)|0):0){if(!(pe[o>>2]|0)){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;_r(a,u)|0}if(!h)t=1;else{n=0;i=0;o=0;t=0;a=0;e=0;s=0;r=pe[l>>2]|0;while(1){n=(gt(c,d)|0)+n&31;i=(gt(c,f)|0)+i&63;o=(gt(c,d)|0)+o&31;t=(gt(c,d)|0)+t|0;a=(gt(c,f)|0)+a&63;e=(gt(c,d)|0)+e&31;pe[r>>2]=i<<5|n<<11|o|t<<27|a<<21|e<<16;s=s+1|0;if((s|0)==(h|0)){t=1;break}else{t=t&31;r=r+4|0}}}}else t=0;ft(d+24|0);ft(d);d=t;ve=p;return d|0}function kt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0;M=ve;ve=ve+1024|0;s=M+16|0;a=M;o=M+504|0;S=M+480|0;w=M+284|0;T=M+88|0;x=M+24|0;i=pe[e+88>>2]|0;b=(me[i+47>>0]|0)<<8|(me[i+48>>0]|0);_=e+92|0;t=pe[e+4>>2]|0;r=(me[i+42>>0]|0)<<8|(me[i+41>>0]|0)<<16|(me[i+43>>0]|0);n=t+r|0;i=(me[i+45>>0]|0)<<8|(me[i+44>>0]|0)<<16|(me[i+46>>0]|0);if(!i){S=0;ve=M;return S|0}pe[_>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[S+20>>2]=0;pe[S>>2]=0;pe[S+4>>2]=0;pe[S+8>>2]=0;pe[S+12>>2]=0;de[S+16>>0]=0;if(pt(_,S)|0){r=0;n=-3;i=-3;while(1){pe[w+(r<<2)>>2]=n;pe[T+(r<<2)>>2]=i;t=(n|0)>2;r=r+1|0;if((r|0)==49)break;else{n=t?-3:n+1|0;i=(t&1)+i|0}}t=x;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));y=e+252|0;r=e+256|0;t=pe[r>>2]|0;e:do{if((t|0)==(b|0))u=13;else{if(t>>>0<=b>>>0){do{if((pe[e+260>>2]|0)>>>0<b>>>0)if(it(y,b,(t+1|0)==(b|0),4,0)|0){t=pe[r>>2]|0;break}else{de[e+264>>0]=1;t=0;break e}}while(0);Vr((pe[y>>2]|0)+(t<<2)|0,0,b-t<<2|0)|0}pe[r>>2]=b;u=13}}while(0);do{if((u|0)==13){if(!b){pe[a>>2]=1154;pe[a+4>>2]=903;pe[a+8>>2]=1781;br(o,1100,a)|0;_r(o,s)|0;t=1;break}n=x+4|0;i=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;u=x+28|0;c=x+32|0;l=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;m=x+56|0;g=x+60|0;v=0;r=pe[y>>2]|0;while(1){t=0;do{P=gt(_,S)|0;y=t<<1;E=x+(y<<2)|0;pe[E>>2]=(pe[E>>2]|0)+(pe[w+(P<<2)>>2]|0)&3;y=x+((y|1)<<2)|0;pe[y>>2]=(pe[y>>2]|0)+(pe[T+(P<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(me[1725+(pe[n>>2]|0)>>0]|0)<<2|(me[1725+(pe[x>>2]|0)>>0]|0)|(me[1725+(pe[i>>2]|0)>>0]|0)<<4|(me[1725+(pe[e>>2]|0)>>0]|0)<<6|(me[1725+(pe[o>>2]|0)>>0]|0)<<8|(me[1725+(pe[a>>2]|0)>>0]|0)<<10|(me[1725+(pe[s>>2]|0)>>0]|0)<<12|(me[1725+(pe[u>>2]|0)>>0]|0)<<14|(me[1725+(pe[c>>2]|0)>>0]|0)<<16|(me[1725+(pe[l>>2]|0)>>0]|0)<<18|(me[1725+(pe[f>>2]|0)>>0]|0)<<20|(me[1725+(pe[h>>2]|0)>>0]|0)<<22|(me[1725+(pe[d>>2]|0)>>0]|0)<<24|(me[1725+(pe[p>>2]|0)>>0]|0)<<26|(me[1725+(pe[m>>2]|0)>>0]|0)<<28|(me[1725+(pe[g>>2]|0)>>0]|0)<<30;v=v+1|0;if((v|0)==(b|0)){t=1;break}else r=r+4|0}}}while(0)}else t=0;ft(S);E=t;ve=M;return E|0}function At(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0;h=ve;ve=ve+560|0;u=h+16|0;s=h;a=h+48|0;f=h+24|0;i=pe[e+88>>2]|0;l=(me[i+55>>0]|0)<<8|(me[i+56>>0]|0);c=e+92|0;t=pe[e+4>>2]|0;r=(me[i+50>>0]|0)<<8|(me[i+49>>0]|0)<<16|(me[i+51>>0]|0);n=t+r|0;i=(me[i+53>>0]|0)<<8|(me[i+52>>0]|0)<<16|(me[i+54>>0]|0);if(!i){f=0;ve=h;return f|0}pe[c>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[f+20>>2]=0;pe[f>>2]=0;pe[f+4>>2]=0;pe[f+8>>2]=0;pe[f+12>>2]=0;de[f+16>>0]=0;e:do{if(pt(c,f)|0){o=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(l|0)){if(t>>>0<=l>>>0){do{if((pe[e+276>>2]|0)>>>0<l>>>0)if(it(o,l,(t+1|0)==(l|0),2,0)|0){t=pe[r>>2]|0;break}else{de[e+280>>0]=1;t=0;break e}}while(0);Vr((pe[o>>2]|0)+(t<<1)|0,0,l-t<<1|0)|0}pe[r>>2]=l}if(!l){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;_r(a,u)|0;t=1;break}r=0;n=0;i=0;t=pe[o>>2]|0;while(1){u=gt(c,f)|0;r=u+r&255;n=(gt(c,f)|0)+n&255;$[t>>1]=n<<8|r;i=i+1|0;if((i|0)==(l|0)){t=1;break}else t=t+2|0}}else t=0}while(0);ft(f);f=t;ve=h;return f|0}function Ot(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0;M=ve;ve=ve+2432|0;s=M+16|0;a=M;o=M+1912|0;S=M+1888|0;w=M+988|0;T=M+88|0;x=M+24|0;i=pe[e+88>>2]|0;b=(me[i+63>>0]|0)<<8|(me[i+64>>0]|0);_=e+92|0;t=pe[e+4>>2]|0;r=(me[i+58>>0]|0)<<8|(me[i+57>>0]|0)<<16|(me[i+59>>0]|0);n=t+r|0;i=(me[i+61>>0]|0)<<8|(me[i+60>>0]|0)<<16|(me[i+62>>0]|0);if(!i){S=0;ve=M;return S|0}pe[_>>2]=n;pe[e+96>>2]=n;pe[e+104>>2]=i;pe[e+100>>2]=t+(i+r);pe[e+108>>2]=0;pe[e+112>>2]=0;pe[S+20>>2]=0;pe[S>>2]=0;pe[S+4>>2]=0;pe[S+8>>2]=0;pe[S+12>>2]=0;de[S+16>>0]=0;if(pt(_,S)|0){r=0;n=-7;i=-7;while(1){pe[w+(r<<2)>>2]=n;pe[T+(r<<2)>>2]=i;t=(n|0)>6;r=r+1|0;if((r|0)==225)break;else{n=t?-7:n+1|0;i=(t&1)+i|0}}t=x;r=t+64|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(r|0));y=e+284|0;r=b*3|0;n=e+288|0;t=pe[n>>2]|0;e:do{if((t|0)==(r|0))u=13;else{if(t>>>0<=r>>>0){do{if((pe[e+292>>2]|0)>>>0<r>>>0)if(it(y,r,(t+1|0)==(r|0),2,0)|0){t=pe[n>>2]|0;break}else{de[e+296>>0]=1;t=0;break e}}while(0);Vr((pe[y>>2]|0)+(t<<1)|0,0,r-t<<1|0)|0}pe[n>>2]=r;u=13}}while(0);do{if((u|0)==13){if(!b){pe[a>>2]=1154;pe[a+4>>2]=903;pe[a+8>>2]=1781;br(o,1100,a)|0;_r(o,s)|0;t=1;break}n=x+4|0;i=x+8|0;e=x+12|0;o=x+16|0;a=x+20|0;s=x+24|0;u=x+28|0;c=x+32|0;l=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;m=x+56|0;g=x+60|0;v=0;r=pe[y>>2]|0;while(1){t=0;do{P=gt(_,S)|0;y=t<<1;E=x+(y<<2)|0;pe[E>>2]=(pe[E>>2]|0)+(pe[w+(P<<2)>>2]|0)&7;y=x+((y|1)<<2)|0;pe[y>>2]=(pe[y>>2]|0)+(pe[T+(P<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);P=me[1729+(pe[a>>2]|0)>>0]|0;$[r>>1]=(me[1729+(pe[n>>2]|0)>>0]|0)<<3|(me[1729+(pe[x>>2]|0)>>0]|0)|(me[1729+(pe[i>>2]|0)>>0]|0)<<6|(me[1729+(pe[e>>2]|0)>>0]|0)<<9|(me[1729+(pe[o>>2]|0)>>0]|0)<<12|P<<15;E=me[1729+(pe[f>>2]|0)>>0]|0;$[r+2>>1]=(me[1729+(pe[s>>2]|0)>>0]|0)<<2|P>>>1|(me[1729+(pe[u>>2]|0)>>0]|0)<<5|(me[1729+(pe[c>>2]|0)>>0]|0)<<8|(me[1729+(pe[l>>2]|0)>>0]|0)<<11|E<<14;$[r+4>>1]=(me[1729+(pe[h>>2]|0)>>0]|0)<<1|E>>>2|(me[1729+(pe[d>>2]|0)>>0]|0)<<4|(me[1729+(pe[p>>2]|0)>>0]|0)<<7|(me[1729+(pe[m>>2]|0)>>0]|0)<<10|(me[1729+(pe[g>>2]|0)>>0]|0)<<13;v=v+1|0;if((v|0)==(b|0)){t=1;break}else r=r+6|0}}}while(0)}else t=0;ft(S);E=t;ve=M;return E|0}function Rt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,ce=0,le=0,fe=0,he=0;le=ve;ve=ve+720|0;ce=le+184|0;se=le+168|0;ae=le+160|0;oe=le+144|0;ie=le+136|0;ne=le+120|0;re=le+112|0;ee=le+96|0;$=le+88|0;Q=le+72|0;Z=le+64|0;J=le+48|0;K=le+40|0;ue=le+24|0;te=le+16|0;V=le;G=le+208|0;W=le+192|0;B=e+240|0;z=pe[B>>2]|0;q=e+256|0;H=pe[q>>2]|0;r=de[(pe[e+88>>2]|0)+17>>0]|0;Y=n>>>2;if(!(r<<24>>24)){ve=le;return 1}U=(s|0)==0;X=s+-1|0;R=(o&1|0)!=0;I=n<<1;D=e+92|0;L=e+116|0;N=e+140|0;j=e+236|0;F=a+-1|0;O=(i&1|0)!=0;A=e+188|0;M=e+252|0;P=Y+1|0;E=Y+2|0;C=Y+3|0;k=F<<4;T=r&255;r=0;o=0;i=1;S=0;do{if(!U){x=pe[t+(S<<2)>>2]|0;w=0;while(1){y=w&1;u=(y|0)==0;v=(y<<5^32)+-16|0;y=(y<<1^2)+-1|0;b=u?a:-1;c=u?0:F;e=(w|0)==(X|0);_=R&e;if((c|0)!=(b|0)){g=R&e^1;m=u?x:x+k|0;while(1){if((i|0)==1)i=gt(D,L)|0|512;p=i&7;i=i>>>3;u=me[1823+p>>0]|0;e=0;do{h=(gt(D,N)|0)+o|0;d=h-z|0;o=d>>31;o=o&h|d&~o;if((pe[B>>2]|0)>>>0<=o>>>0){pe[V>>2]=1154;pe[V+4>>2]=903;pe[V+8>>2]=1781;br(G,1100,V)|0;_r(G,te)|0}pe[W+(e<<2)>>2]=pe[(pe[j>>2]|0)+(o<<2)>>2];e=e+1|0}while(e>>>0<u>>>0);d=O&(c|0)==(F|0);if(_|d){h=0;do{l=ye(h,n)|0;e=m+l|0;u=(h|0)==0|g;f=h<<1;he=(gt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;do{if(d){if(!u){fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((me[1831+(p<<2)+f>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(G,1100,oe)|0;_r(G,ae)|0}pe[m+(l+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r}else{if(!u){fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((me[1831+(p<<2)+f>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(G,1100,ne)|0;_r(G,ie)|0}pe[m+(l+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;pe[m+(l+8)>>2]=pe[W+((me[(f|1)+(1831+(p<<2))>>0]|0)<<2)>>2];if((pe[q>>2]|0)>>>0<=r>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;br(G,1100,se)|0;_r(G,ce)|0}pe[m+(l+12)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}}while(0);h=h+1|0}while((h|0)!=2)}else{pe[m>>2]=pe[W+((me[1831+(p<<2)>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ue>>2]=1154;pe[ue+4>>2]=903;pe[ue+8>>2]=1781;br(G,1100,ue)|0;_r(G,K)|0}pe[m+4>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+8>>2]=pe[W+((me[1831+(p<<2)+1>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[J>>2]=1154;pe[J+4>>2]=903;pe[J+8>>2]=1781;br(G,1100,J)|0;_r(G,Z)|0}pe[m+12>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+(Y<<2)>>2]=pe[W+((me[1831+(p<<2)+2>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;br(G,1100,Q)|0;_r(G,$)|0}pe[m+(P<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[m+(E<<2)>>2]=pe[W+((me[1831+(p<<2)+3>>0]|0)<<2)>>2];fe=(gt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;if((pe[q>>2]|0)>>>0<=r>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(G,1100,ee)|0;_r(G,re)|0}pe[m+(C<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}c=c+y|0;if((c|0)==(b|0))break;else m=m+v|0}}w=w+1|0;if((w|0)==(s|0))break;else x=x+I|0}}S=S+1|0}while((S|0)!=(T|0));ve=le;return 1}function It(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,ce=0,le=0,fe=0,he=0;fe=ve;ve=ve+640|0;ue=fe+88|0;se=fe+72|0;ae=fe+64|0;oe=fe+48|0;ie=fe+40|0;le=fe+24|0;ce=fe+16|0;ne=fe;te=fe+128|0;re=fe+112|0;ee=fe+96|0;B=e+240|0;z=pe[B>>2]|0;q=e+256|0;Z=pe[q>>2]|0;Q=e+272|0;$=pe[Q>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=fe;return 1}X=(s|0)==0;H=s+-1|0;Y=n<<1;G=e+92|0;W=e+116|0;V=a+-1|0;K=e+212|0;J=e+188|0;F=(i&1|0)==0;j=(o&1|0)==0;O=e+288|0;R=e+284|0;I=e+252|0;D=e+140|0;L=e+236|0;N=e+164|0;k=e+268|0;A=V<<5;E=r&255;r=0;i=0;o=0;e=0;u=1;C=0;do{if(!X){M=pe[t+(C<<2)>>2]|0;P=0;while(1){T=P&1;c=(T|0)==0;w=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;S=c?a:-1;l=c?0:V;if((l|0)!=(S|0)){x=j|(P|0)!=(H|0);b=c?M:M+A|0;while(1){if((u|0)==1)u=gt(G,W)|0|512;_=u&7;u=u>>>3;f=me[1823+_>>0]|0;c=0;do{v=(gt(G,N)|0)+i|0;y=v-$|0;i=y>>31;i=i&v|y&~i;if((pe[Q>>2]|0)>>>0<=i>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(te,1100,ne)|0;_r(te,ce)|0}pe[ee+(c<<2)>>2]=ge[(pe[k>>2]|0)+(i<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);c=0;do{v=(gt(G,D)|0)+e|0;y=v-z|0;e=y>>31;e=e&v|y&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[le>>2]=1154;pe[le+4>>2]=903;pe[le+8>>2]=1781;br(te,1100,le)|0;_r(te,ie)|0}pe[re+(c<<2)>>2]=pe[(pe[L>>2]|0)+(e<<2)>>2];c=c+1|0}while(c>>>0<f>>>0);y=F|(l|0)!=(V|0);g=0;v=b;while(1){m=x|(g|0)==0;p=g<<1;h=0;d=v;while(1){f=(gt(G,K)|0)+r|0;c=f-U|0;r=c>>31;r=r&f|c&~r;c=(gt(G,J)|0)+o|0;f=c-Z|0;o=f>>31;o=o&c|f&~o;if((y|(h|0)==0)&m){c=me[h+p+(1831+(_<<2))>>0]|0;f=r*3|0;if((pe[O>>2]|0)>>>0<=f>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(te,1100,oe)|0;_r(te,ae)|0}he=pe[R>>2]|0;pe[d>>2]=(ge[he+(f<<1)>>1]|0)<<16|pe[ee+(c<<2)>>2];pe[d+4>>2]=(ge[he+(f+2<<1)>>1]|0)<<16|(ge[he+(f+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(c<<2)>>2];if((pe[q>>2]|0)>>>0<=o>>>0){pe[se>>2]=1154;pe[se+4>>2]=903;pe[se+8>>2]=1781;br(te,1100,se)|0;_r(te,ue)|0}pe[d+12>>2]=pe[(pe[I>>2]|0)+(o<<2)>>2]}h=h+1|0;if((h|0)==2)break;else d=d+16|0}g=g+1|0;if((g|0)==2)break;else v=v+n|0}l=l+T|0;if((l|0)==(S|0))break;else b=b+w|0}}P=P+1|0;if((P|0)==(s|0))break;else M=M+Y|0}}C=C+1|0}while((C|0)!=(E|0));ve=fe;return 1}function Dt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0;Z=ve;ve=ve+608|0;V=Z+64|0;W=Z+48|0;G=Z+40|0;J=Z+24|0;K=Z+16|0;Y=Z;H=Z+88|0;q=Z+72|0;I=e+272|0;D=pe[I>>2]|0;r=pe[e+88>>2]|0;L=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=Z;return 1}N=(s|0)==0;j=s+-1|0;F=n<<1;B=e+92|0;z=e+116|0;U=a+-1|0;X=e+212|0;R=(o&1|0)==0;k=e+288|0;A=e+284|0;O=e+164|0;E=e+268|0;C=U<<4;P=r&255;M=(i&1|0)!=0;r=0;o=0;e=1;S=0;do{if(!N){w=pe[t+(S<<2)>>2]|0;T=0;while(1){b=T&1;i=(b|0)==0;_=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;x=i?a:-1;u=i?0:U;if((u|0)!=(x|0)){y=R|(T|0)!=(j|0);v=i?w:w+C|0;while(1){if((e|0)==1)e=gt(B,z)|0|512;g=e&7;e=e>>>3;c=me[1823+g>>0]|0;i=0;do{p=(gt(B,O)|0)+o|0;m=p-D|0;o=m>>31;o=o&p|m&~o;if((pe[I>>2]|0)>>>0<=o>>>0){pe[Y>>2]=1154;pe[Y+4>>2]=903;pe[Y+8>>2]=1781;br(H,1100,Y)|0;_r(H,K)|0}pe[q+(i<<2)>>2]=ge[(pe[E>>2]|0)+(o<<1)>>1];i=i+1|0}while(i>>>0<c>>>0);m=(u|0)==(U|0)&M;d=0;p=v;while(1){h=y|(d|0)==0;f=d<<1;i=(gt(B,X)|0)+r|0;l=i-L|0;c=l>>31;c=c&i|l&~c;if(h){r=me[1831+(g<<2)+f>>0]|0;i=c*3|0;if((pe[k>>2]|0)>>>0<=i>>>0){pe[J>>2]=1154;pe[J+4>>2]=903;pe[J+8>>2]=1781;br(H,1100,J)|0;_r(H,G)|0}l=pe[A>>2]|0;pe[p>>2]=(ge[l+(i<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(ge[l+(i+2<<1)>>1]|0)<<16|(ge[l+(i+1<<1)>>1]|0)}l=p+8|0;i=(gt(B,X)|0)+c|0;c=i-L|0;r=c>>31;r=r&i|c&~r;if(!(m|h^1)){i=me[(f|1)+(1831+(g<<2))>>0]|0;c=r*3|0;if((pe[k>>2]|0)>>>0<=c>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;br(H,1100,W)|0;_r(H,V)|0}h=pe[A>>2]|0;pe[l>>2]=(ge[h+(c<<1)>>1]|0)<<16|pe[q+(i<<2)>>2];pe[p+12>>2]=(ge[h+(c+2<<1)>>1]|0)<<16|(ge[h+(c+1<<1)>>1]|0)}d=d+1|0;if((d|0)==2)break;else p=p+n|0}u=u+b|0;if((u|0)==(x|0))break;else v=v+_|0}}T=T+1|0;if((T|0)==(s|0))break;else w=w+F|0}}S=S+1|0}while((S|0)!=(P|0));ve=Z;return 1}function Lt(e,t,r,n,i,o,a,s){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;s=s|0;var u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0,$=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0;ae=ve;ve=ve+640|0;ne=ae+88|0;re=ae+72|0;te=ae+64|0;ee=ae+48|0;$=ae+40|0;oe=ae+24|0;ie=ae+16|0;Q=ae;Z=ae+128|0;K=ae+112|0;J=ae+96|0;B=e+272|0;z=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(me[r+63>>0]|0)<<8|(me[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=ae;return 1}X=(s|0)==0;q=s+-1|0;H=n<<1;Y=e+92|0;G=e+116|0;W=a+-1|0;V=e+212|0;F=(i&1|0)==0;j=(o&1|0)==0;D=e+288|0;L=e+284|0;N=e+164|0;R=e+268|0;I=W<<5;A=r&255;r=0;i=0;o=0;e=0;u=1;O=0;do{if(!X){C=pe[t+(O<<2)>>2]|0;k=0;while(1){P=k&1;c=(P|0)==0;M=(P<<6^64)+-32|0;P=(P<<1^2)+-1|0;E=c?a:-1;l=c?0:W;if((l|0)!=(E|0)){S=j|(k|0)!=(q|0);T=c?C:C+I|0;while(1){if((u|0)==1)u=gt(Y,G)|0|512;w=u&7;u=u>>>3;f=me[1823+w>>0]|0;c=0;do{b=(gt(Y,N)|0)+e|0;x=b-z|0;e=x>>31;e=e&b|x&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[Q>>2]=1154;pe[Q+4>>2]=903;pe[Q+8>>2]=1781;br(Z,1100,Q)|0;_r(Z,ie)|0}pe[K+(c<<2)>>2]=ge[(pe[R>>2]|0)+(e<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);c=0;do{b=(gt(Y,N)|0)+i|0;x=b-z|0;i=x>>31;i=i&b|x&~i;if((pe[B>>2]|0)>>>0<=i>>>0){pe[oe>>2]=1154;pe[oe+4>>2]=903;pe[oe+8>>2]=1781;br(Z,1100,oe)|0;_r(Z,$)|0}pe[J+(c<<2)>>2]=ge[(pe[R>>2]|0)+(i<<1)>>1];c=c+1|0}while(c>>>0<f>>>0);x=F|(l|0)!=(W|0);_=0;b=T;while(1){y=S|(_|0)==0;v=_<<1;m=0;g=b;while(1){p=(gt(Y,V)|0)+o|0;d=p-U|0;o=d>>31;o=o&p|d&~o;d=(gt(Y,V)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((x|(m|0)==0)&y){d=me[m+v+(1831+(w<<2))>>0]|0;p=o*3|0;c=pe[D>>2]|0;if(c>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(Z,1100,ee)|0;_r(Z,te)|0;c=pe[D>>2]|0}f=pe[L>>2]|0;h=r*3|0;if(c>>>0>h>>>0)c=f;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;br(Z,1100,re)|0;_r(Z,ne)|0;c=pe[L>>2]|0}pe[g>>2]=(ge[f+(p<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[g+4>>2]=(ge[f+(p+2<<1)>>1]|0)<<16|(ge[f+(p+1<<1)>>1]|0);pe[g+8>>2]=(ge[c+(h<<1)>>1]|0)<<16|pe[J+(d<<2)>>2];pe[g+12>>2]=(ge[c+(h+2<<1)>>1]|0)<<16|(ge[c+(h+1<<1)>>1]|0)}m=m+1|0;if((m|0)==2)break;else g=g+16|0}_=_+1|0;if((_|0)==2)break;else b=b+n|0}l=l+P|0;if((l|0)==(E|0))break;else T=T+M|0}}k=k+1|0;if((k|0)==(s|0))break;else C=C+H|0}}O=O+1|0}while((O|0)!=(A|0));ve=ae;return 1}function Nt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0;h=ve;ve=ve+608|0;f=h+88|0;l=h+72|0;u=h+64|0;s=h+48|0;o=h+40|0;a=h+24|0;i=h+16|0;n=h;c=h+96|0;pe[e>>2]=0;t=e+284|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[n>>2]=1154;pe[n+4>>2]=2499;pe[n+8>>2]=1516;br(c,1100,n)|0;_r(c,i)|0}pe[t>>2]=0;pe[e+288>>2]=0;pe[e+292>>2]=0}de[e+296>>0]=0;t=e+268|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[a>>2]=1154;pe[a+4>>2]=2499;pe[a+8>>2]=1516;br(c,1100,a)|0;_r(c,o)|0}pe[t>>2]=0;pe[e+272>>2]=0;pe[e+276>>2]=0}de[e+280>>0]=0;t=e+252|0;r=pe[t>>2]|0;if(r){if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1516;br(c,1100,s)|0;_r(c,u)|0}pe[t>>2]=0;pe[e+256>>2]=0;pe[e+260>>2]=0}de[e+264>>0]=0;t=e+236|0;r=pe[t>>2]|0;if(!r){f=e+248|0;de[f>>0]=0;f=e+212|0;ft(f);f=e+188|0;ft(f);f=e+164|0;ft(f);f=e+140|0;ft(f);f=e+116|0;ft(f);ve=h;return}if(!(r&7))Dn[pe[104>>2]&1](r,0,0,1,pe[27]|0)|0;else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;br(c,1100,l)|0;_r(c,f)|0}pe[t>>2]=0;pe[e+240>>2]=0;pe[e+244>>2]=0;f=e+248|0;de[f>>0]=0;f=e+212|0;ft(f);f=e+188|0;ft(f);f=e+164|0;ft(f);f=e+140|0;ft(f);f=e+116|0;ft(f);ve=h;return}function jt(e,t){e=e|0;t=t|0;var r=0;r=ve;ve=ve+16|0;pe[r>>2]=t;t=pe[63]|0;xr(t,e,r)|0;vr(10,t)|0;Xe()}function Ft(){var e=0,t=0;e=ve;ve=ve+16|0;if(!(Ne(200,2)|0)){t=De(pe[49]|0)|0;ve=e;return t|0}else jt(2090,e);return 0}function Bt(e){e=e|0;Ur(e);return}function zt(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Rn[e&3]();jt(2139,t)}function Ut(){var e=0,t=0;e=Ft()|0;if(((e|0)!=0?(t=pe[e>>2]|0,(t|0)!=0):0)?(e=t+48|0,(pe[e>>2]&-256|0)==1126902528?(pe[e+4>>2]|0)==1129074247:0):0)zt(pe[t+12>>2]|0);t=pe[28]|0;pe[28]=t+0;zt(t)}function Xt(e){e=e|0;return}function qt(e){e=e|0;return}function Ht(e){e=e|0;return}function Yt(e){e=e|0;return}function Gt(e){e=e|0;Bt(e);return}function Wt(e){e=e|0;Bt(e);return}function Vt(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;a=ve;ve=ve+64|0;o=a;if((e|0)!=(t|0))if((t|0)!=0?(i=Qt(t,24,40,0)|0,(i|0)!=0):0){t=o;n=t+56|0;do{pe[t>>2]=0;t=t+4|0}while((t|0)<(n|0));pe[o>>2]=i;pe[o+8>>2]=e;pe[o+12>>2]=-1;pe[o+48>>2]=1;Ln[pe[(pe[i>>2]|0)+28>>2]&3](i,o,pe[r>>2]|0,1);if((pe[o+24>>2]|0)==1){pe[r>>2]=pe[o+16>>2];t=1}else t=0}else t=0;else t=1;ve=a;return t|0}function Kt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0;e=t+16|0;i=pe[e>>2]|0;do{if(i){if((i|0)!=(r|0)){n=t+36|0;pe[n>>2]=(pe[n>>2]|0)+1;pe[t+24>>2]=2;de[t+54>>0]=1;break}e=t+24|0;if((pe[e>>2]|0)==2)pe[e>>2]=n}else{pe[e>>2]=r;pe[t+24>>2]=n;pe[t+36>>2]=1}}while(0);return}function Jt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if((e|0)==(pe[t+8>>2]|0))Kt(0,t,r,n);return}function Zt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;if((e|0)==(pe[t+8>>2]|0))Kt(0,t,r,n);else{e=pe[e+8>>2]|0;Ln[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,n)}return}function Qt(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0;d=ve;ve=ve+64|0;h=d;f=pe[e>>2]|0;l=e+(pe[f+-8>>2]|0)|0;f=pe[f+-4>>2]|0;pe[h>>2]=r;pe[h+4>>2]=e;pe[h+8>>2]=t;pe[h+12>>2]=n;n=h+16|0;e=h+20|0;t=h+24|0;i=h+28|0;o=h+32|0;a=h+40|0;s=(f|0)==(r|0);u=n;c=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(c|0));$[n+36>>1]=0;de[n+38>>0]=0;e:do{if(s){pe[h+48>>2]=1;In[pe[(pe[r>>2]|0)+20>>2]&3](r,h,l,l,1,0);n=(pe[t>>2]|0)==1?l:0}else{Cn[pe[(pe[f>>2]|0)+24>>2]&3](f,h,l,1,0);switch(pe[h+36>>2]|0){case 0:{n=(pe[a>>2]|0)==1&(pe[i>>2]|0)==1&(pe[o>>2]|0)==1?pe[e>>2]|0:0;break e}case 1:break;default:{n=0;break e}}if((pe[t>>2]|0)!=1?!((pe[a>>2]|0)==0&(pe[i>>2]|0)==1&(pe[o>>2]|0)==1):0){n=0;break}n=pe[n>>2]|0}}while(0);ve=d;return n|0}function $t(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;de[t+53>>0]=1;do{if((pe[t+4>>2]|0)==(n|0)){de[t+52>>0]=1;n=t+16|0;e=pe[n>>2]|0;if(!e){pe[n>>2]=r;pe[t+24>>2]=i;pe[t+36>>2]=1;if(!((i|0)==1?(pe[t+48>>2]|0)==1:0))break;de[t+54>>0]=1;break}if((e|0)!=(r|0)){i=t+36|0;pe[i>>2]=(pe[i>>2]|0)+1;de[t+54>>0]=1;break}e=t+24|0;n=pe[e>>2]|0;if((n|0)==2){pe[e>>2]=i;n=i}if((n|0)==1?(pe[t+48>>2]|0)==1:0)de[t+54>>0]=1}}while(0);return}function er(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0;e:do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(o=t+28|0,(pe[o>>2]|0)!=1):0)pe[o>>2]=n}else{if((e|0)!=(pe[t>>2]|0)){s=pe[e+8>>2]|0;Cn[pe[(pe[s>>2]|0)+24>>2]&3](s,t,r,n,i);break}if((pe[t+16>>2]|0)!=(r|0)?(a=t+20|0,(pe[a>>2]|0)!=(r|0)):0){pe[t+32>>2]=n;n=t+44|0;if((pe[n>>2]|0)==4)break;o=t+52|0;de[o>>0]=0;u=t+53|0;de[u>>0]=0;e=pe[e+8>>2]|0;In[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,r,1,i);if(de[u>>0]|0){if(!(de[o>>0]|0)){o=1;s=13}}else{o=0;s=13}do{if((s|0)==13){pe[a>>2]=r;u=t+40|0;pe[u>>2]=(pe[u>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0){de[t+54>>0]=1;if(o)break}else s=16;if((s|0)==16?o:0)break;pe[n>>2]=4;break e}}while(0);pe[n>>2]=3;break}if((n|0)==1)pe[t+32>>2]=1}}while(0);return}function tr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0;do{if((e|0)==(pe[t+8>>2]|0)){if((pe[t+4>>2]|0)==(r|0)?(a=t+28|0,(pe[a>>2]|0)!=1):0)pe[a>>2]=n}else if((e|0)==(pe[t>>2]|0)){if((pe[t+16>>2]|0)!=(r|0)?(o=t+20|0,(pe[o>>2]|0)!=(r|0)):0){pe[t+32>>2]=n;pe[o>>2]=r;i=t+40|0;pe[i>>2]=(pe[i>>2]|0)+1;if((pe[t+36>>2]|0)==1?(pe[t+24>>2]|0)==2:0)de[t+54>>0]=1;pe[t+44>>2]=4;break}if((n|0)==1)pe[t+32>>2]=1}}while(0);return}function rr(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,n,i);else{e=pe[e+8>>2]|0;In[pe[(pe[e>>2]|0)+20>>2]&3](e,t,r,n,i,o)}return}function nr(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;if((e|0)==(pe[t+8>>2]|0))$t(0,t,r,n,i);return}function ir(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=ve;ve=ve+16|0;n=i;pe[n>>2]=pe[r>>2];e=En[pe[(pe[e>>2]|0)+16>>2]&7](e,t,n)|0;if(e)pe[r>>2]=pe[n>>2];ve=i;return e&1|0}function or(e){e=e|0;if(!e)e=0;else e=(Qt(e,24,72,0)|0)!=0;return e&1|0}function ar(){var e=0,t=0,r=0,n=0,i=0,o=0,a=0,s=0;i=ve;ve=ve+48|0;a=i+32|0;r=i+24|0;s=i+16|0;o=i;i=i+36|0;e=Ft()|0;if((e|0)!=0?(n=pe[e>>2]|0,(n|0)!=0):0){e=n+48|0;t=pe[e>>2]|0;e=pe[e+4>>2]|0;if(!((t&-256|0)==1126902528&(e|0)==1129074247)){pe[r>>2]=pe[51];jt(2368,r)}if((t|0)==1126902529&(e|0)==1129074247)e=pe[n+44>>2]|0;else e=n+80|0;pe[i>>2]=e;n=pe[n>>2]|0;e=pe[n+4>>2]|0;if(En[pe[(pe[8>>2]|0)+16>>2]&7](8,n,i)|0){s=pe[i>>2]|0;i=pe[51]|0;s=An[pe[(pe[s>>2]|0)+8>>2]&1](s)|0;pe[o>>2]=i;pe[o+4>>2]=e;pe[o+8>>2]=s;jt(2282,o)}else{pe[s>>2]=pe[51];pe[s+4>>2]=e;jt(2327,s)}}jt(2406,a)}function sr(){var e=0;e=ve;ve=ve+16|0;if(!(je(196,6)|0)){ve=e;return}else jt(2179,e)}function ur(e){e=e|0;var t=0;t=ve;ve=ve+16|0;Ur(e);if(!(ze(pe[49]|0,0)|0)){ve=t;return}else jt(2229,t)}function cr(e){e=e|0;var t=0,r=0;t=0;while(1){if((me[2427+t>>0]|0)==(e|0)){r=2;break}t=t+1|0;if((t|0)==87){t=87;e=2515;r=5;break}}if((r|0)==2)if(!t)e=2515;else{e=2515;r=5}if((r|0)==5)while(1){r=e;while(1){e=r+1|0;if(!(de[r>>0]|0))break;else r=e}t=t+-1|0;if(!t)break;else r=5}return e|0}function lr(){var e=0;if(!(pe[52]|0))e=264;else{e=(Le()|0)+60|0;e=pe[e>>2]|0}return e|0}function fr(e){e=e|0;var t=0;if(e>>>0>4294963200){t=lr()|0;pe[t>>2]=0-e;e=-1}return e|0}function hr(e,t){e=+e;t=t|0;var r=0,n=0,i=0;ee[te>>3]=e;r=pe[te>>2]|0;n=pe[te+4>>2]|0;i=Kr(r|0,n|0,52)|0;i=i&2047;switch(i|0){case 0:{if(e!=0.0){e=+hr(e*18446744073709552.0e3,t);r=(pe[t>>2]|0)+-64|0}else r=0;pe[t>>2]=r;break}case 2047:break;default:{pe[t>>2]=i+-1022;pe[te>>2]=r;pe[te+4>>2]=n&-2146435073|1071644672;e=+ee[te>>3]}}return+e}function dr(e,t){e=+e;t=t|0;return+ +hr(e,t)}function pr(e,t,r){e=e|0;t=t|0;r=r|0;do{if(e){if(t>>>0<128){de[e>>0]=t;e=1;break}if(t>>>0<2048){de[e>>0]=t>>>6|192;de[e+1>>0]=t&63|128;e=2;break}if(t>>>0<55296|(t&-8192|0)==57344){de[e>>0]=t>>>12|224;de[e+1>>0]=t>>>6&63|128;de[e+2>>0]=t&63|128;e=3;break}if((t+-65536|0)>>>0<1048576){de[e>>0]=t>>>18|240;de[e+1>>0]=t>>>12&63|128;de[e+2>>0]=t>>>6&63|128;de[e+3>>0]=t&63|128;e=4;break}else{e=lr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function mr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function gr(e){e=e|0;var t=0,r=0;do{if(e){if((pe[e+76>>2]|0)<=-1){t=Ir(e)|0;break}r=(Sr(e)|0)==0;t=Ir(e)|0;if(!r)Mr(e)}else{if(!(pe[65]|0))t=0;else t=gr(pe[65]|0)|0;Ue(236);e=pe[58]|0;if(e)do{if((pe[e+76>>2]|0)>-1)r=Sr(e)|0;else r=0;if((pe[e+20>>2]|0)>>>0>(pe[e+28>>2]|0)>>>0)t=Ir(e)|0|t;if(r)Mr(e);e=pe[e+56>>2]|0}while((e|0)!=0);Fe(236)}}while(0);return t|0}function vr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0;if((pe[t+76>>2]|0)>=0?(Sr(t)|0)!=0:0){if((de[t+75>>0]|0)!=(e|0)?(n=t+20|0,i=pe[n>>2]|0,i>>>0<(pe[t+16>>2]|0)>>>0):0){pe[n>>2]=i+1;de[i>>0]=e;r=e&255}else r=Pr(t,e)|0;Mr(t)}else a=3;do{if((a|0)==3){if((de[t+75>>0]|0)!=(e|0)?(o=t+20|0,r=pe[o>>2]|0,r>>>0<(pe[t+16>>2]|0)>>>0):0){pe[o>>2]=r+1;de[r>>0]=e;r=e&255;break}r=Pr(t,e)|0}}while(0);return r|0}function yr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;n=r+16|0;i=pe[n>>2]|0;if(!i)if(!(Or(r)|0)){i=pe[n>>2]|0;o=4}else n=0;else o=4;e:do{if((o|0)==4){a=r+20|0;o=pe[a>>2]|0;if((i-o|0)>>>0<t>>>0){n=En[pe[r+36>>2]&7](r,e,t)|0;break}t:do{if((de[r+75>>0]|0)>-1){n=t;while(1){if(!n){i=o;n=0;break t}i=n+-1|0;if((de[e+i>>0]|0)==10)break;else n=i}if((En[pe[r+36>>2]&7](r,e,n)|0)>>>0<n>>>0)break e;t=t-n|0;e=e+n|0;i=pe[a>>2]|0}else{i=o;n=0}}while(0);Qr(i|0,e|0,t|0)|0;pe[a>>2]=(pe[a>>2]|0)+t;n=n+t|0}}while(0);return n|0}function _r(e,t){e=e|0;t=t|0;var r=0,n=0;r=ve;ve=ve+16|0;n=r;pe[n>>2]=t;t=xr(pe[64]|0,e,n)|0;ve=r;return t|0}function br(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=ve;ve=ve+16|0;i=n;pe[i>>2]=r;r=Tr(e,t,i)|0;ve=n;return r|0}function xr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0;m=ve;ve=ve+224|0;f=m+120|0;p=m+80|0;d=m;h=m+136|0;n=p;i=n+40|0;do{pe[n>>2]=0;n=n+4|0}while((n|0)<(i|0));pe[f>>2]=pe[r>>2];if((Dr(0,t,f,d,p)|0)<0)r=-1;else{if((pe[e+76>>2]|0)>-1)c=Sr(e)|0;else c=0;r=pe[e>>2]|0;l=r&32;if((de[e+74>>0]|0)<1)pe[e>>2]=r&-33;r=e+48|0;if(!(pe[r>>2]|0)){i=e+44|0;o=pe[i>>2]|0;pe[i>>2]=h;a=e+28|0;pe[a>>2]=h;s=e+20|0;pe[s>>2]=h;pe[r>>2]=80;u=e+16|0;pe[u>>2]=h+80;n=Dr(e,t,f,d,p)|0;if(o){En[pe[e+36>>2]&7](e,0,0)|0;n=(pe[s>>2]|0)==0?-1:n;pe[i>>2]=o;pe[r>>2]=0;pe[u>>2]=0;pe[a>>2]=0;pe[s>>2]=0}}else n=Dr(e,t,f,d,p)|0;r=pe[e>>2]|0;pe[e>>2]=r|l;if(c)Mr(e);r=(r&32|0)==0?n:-1}ve=m;return r|0}function wr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0,l=0;l=ve;ve=ve+128|0;i=l+112|0;c=l;o=c;a=268;s=o+112|0;do{pe[o>>2]=pe[a>>2];o=o+4|0;a=a+4|0}while((o|0)<(s|0));if((t+-1|0)>>>0>2147483646)if(!t){t=1;u=4}else{t=lr()|0;pe[t>>2]=75;t=-1}else{i=e;u=4}if((u|0)==4){u=-2-i|0;u=t>>>0>u>>>0?u:t;pe[c+48>>2]=u;e=c+20|0;pe[e>>2]=i;pe[c+44>>2]=i;t=i+u|0;i=c+16|0;pe[i>>2]=t;pe[c+28>>2]=t;t=xr(c,r,n)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[i>>2]|0))<<31>>31)>>0]=0}}ve=l;return t|0}function Tr(e,t,r){e=e|0;t=t|0;r=r|0;return wr(e,2147483647,t,r)|0}function Sr(e){e=e|0;return 0}function Mr(e){e=e|0;return}function Pr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0;u=ve;ve=ve+16|0;s=u;a=t&255;de[s>>0]=a;n=e+16|0;i=pe[n>>2]|0;if(!i)if(!(Or(e)|0)){i=pe[n>>2]|0;o=4}else r=-1;else o=4;do{if((o|0)==4){n=e+20|0;o=pe[n>>2]|0;if(o>>>0<i>>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[n>>2]=o+1;de[o>>0]=a;break}if((En[pe[e+36>>2]&7](e,s,1)|0)==1)r=me[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Er(e){e=e|0;var t=0,r=0;t=ve;ve=ve+16|0;r=t;pe[r>>2]=pe[e+60>>2];e=fr(Pe(6,r|0)|0)|0;ve=t;return e|0}function Cr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0;i=ve;ve=ve+32|0;o=i;n=i+20|0;pe[o>>2]=pe[e+60>>2];pe[o+4>>2]=0;pe[o+8>>2]=t;pe[o+12>>2]=n;pe[o+16>>2]=r;if((fr(Ye(140,o|0)|0)|0)<0){pe[n>>2]=-1;e=-1}else e=pe[n>>2]|0;ve=i;return e|0}function kr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+48|0;f=p+16|0;l=p;n=p+32|0;h=e+28|0;i=pe[h>>2]|0;pe[n>>2]=i;d=e+20|0;i=(pe[d>>2]|0)-i|0;pe[n+4>>2]=i;pe[n+8>>2]=t;pe[n+12>>2]=r;u=e+60|0;c=e+44|0;t=2;i=i+r|0;while(1){if(!(pe[52]|0)){pe[f>>2]=pe[u>>2];pe[f+4>>2]=n;pe[f+8>>2]=t;a=fr(Ge(146,f|0)|0)|0}else{qe(7,e|0);pe[l>>2]=pe[u>>2];pe[l+4>>2]=n;pe[l+8>>2]=t;a=fr(Ge(146,l|0)|0)|0;Se(0)}if((i|0)==(a|0)){i=6;break}if((a|0)<0){i=8;break}i=i-a|0;o=pe[n+4>>2]|0;if(a>>>0<=o>>>0)if((t|0)==2){pe[h>>2]=(pe[h>>2]|0)+a;s=o;t=2}else s=o;else{s=pe[c>>2]|0;pe[h>>2]=s;pe[d>>2]=s;s=pe[n+12>>2]|0;a=a-o|0;n=n+8|0;t=t+-1|0}pe[n>>2]=(pe[n>>2]|0)+a;pe[n+4>>2]=s-a}if((i|0)==6){f=pe[c>>2]|0;pe[e+16>>2]=f+(pe[e+48>>2]|0);e=f;pe[h>>2]=e;pe[d>>2]=e}else if((i|0)==8){pe[e+16>>2]=0;pe[h>>2]=0;pe[d>>2]=0;pe[e>>2]=pe[e>>2]|32;if((t|0)==2)r=0;else r=r-(pe[n+4>>2]|0)|0}ve=p;return r|0}function Ar(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;i=ve;ve=ve+80|0;n=i;pe[e+36>>2]=3;if((pe[e>>2]&64|0)==0?(pe[n>>2]=pe[e+60>>2],pe[n+4>>2]=21505,pe[n+8>>2]=i+12,(Me(54,n|0)|0)!=0):0)de[e+75>>0]=-1;n=kr(e,t,r)|0;ve=i;return n|0}function Or(e){e=e|0;var t=0,r=0;t=e+74|0;r=de[t>>0]|0;de[t>>0]=r+255|r;t=pe[e>>2]|0;if(!(t&8)){pe[e+8>>2]=0;pe[e+4>>2]=0;t=pe[e+44>>2]|0;pe[e+28>>2]=t;pe[e+20>>2]=t;pe[e+16>>2]=t+(pe[e+48>>2]|0);t=0}else{pe[e>>2]=t|32;t=-1}return t|0}function Rr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;o=t&255;n=(r|0)!=0;e:do{if(n&(e&3|0)!=0){i=t&255;while(1){if((de[e>>0]|0)==i<<24>>24){a=6;break e}e=e+1|0;r=r+-1|0;n=(r|0)!=0;if(!(n&(e&3|0)!=0)){a=5;break}}}else a=5}while(0);if((a|0)==5)if(n)a=6;else r=0;e:do{if((a|0)==6){i=t&255;if((de[e>>0]|0)!=i<<24>>24){n=ye(o,16843009)|0;t:do{if(r>>>0>3)while(1){o=pe[e>>2]^n;if((o&-2139062144^-2139062144)&o+-16843009)break;e=e+4|0;r=r+-4|0;if(r>>>0<=3){a=11;break t}}else a=11}while(0);if((a|0)==11)if(!r){r=0;break}while(1){if((de[e>>0]|0)==i<<24>>24)break e;e=e+1|0;r=r+-1|0;if(!r){r=0;break}}}}}while(0);return((r|0)!=0?e:0)|0}function Ir(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0;t=e+20|0;o=e+28|0;if((pe[t>>2]|0)>>>0>(pe[o>>2]|0)>>>0?(En[pe[e+36>>2]&7](e,0,0)|0,(pe[t>>2]|0)==0):0)t=-1;else{a=e+4|0;r=pe[a>>2]|0;n=e+8|0;i=pe[n>>2]|0;if(r>>>0<i>>>0)En[pe[e+40>>2]&7](e,r-i|0,1)|0;pe[e+16>>2]=0;pe[o>>2]=0;pe[t>>2]=0;pe[n>>2]=0;pe[a>>2]=0;t=0}return t|0}function Dr(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0.0,l=0,f=0,h=0,d=0,p=0.0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0,F=0,B=0,z=0,U=0,X=0,q=0,H=0,Y=0,G=0,W=0,V=0,K=0,J=0,Z=0,Q=0;Q=ve;ve=ve+624|0;W=Q+24|0;K=Q+16|0;V=Q+588|0;X=Q+576|0;G=Q;B=Q+536|0;Z=Q+8|0;J=Q+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;z=Z+4|0;U=X+12|0;X=X+11|0;q=V;H=U;Y=H-q|0;R=-2-q|0;I=H+2|0;D=W+288|0;L=V+9|0;N=L;j=V+8|0;o=0;m=t;a=0;t=0;e:while(1){do{if((o|0)>-1)if((a|0)>(2147483647-o|0)){o=lr()|0;pe[o>>2]=75;o=-1;break}else{o=a+o|0;break}}while(0);a=de[m>>0]|0;if(!(a<<24>>24)){k=245;break}else s=m;t:while(1){switch(a<<24>>24){case 37:{a=s;k=9;break t}case 0:{a=s;break t}default:{}}C=s+1|0;a=de[C>>0]|0;s=C}t:do{if((k|0)==9)while(1){k=0;if((de[a+1>>0]|0)!=37)break t;s=s+1|0;a=a+2|0;if((de[a>>0]|0)==37)k=9;else break}}while(0);v=s-m|0;if(A?(pe[e>>2]&32|0)==0:0)yr(m,v,e)|0;if((s|0)!=(m|0)){m=a;a=v;continue}l=a+1|0;s=de[l>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){C=(de[a+2>>0]|0)==36;l=C?a+3|0:l;s=de[l>>0]|0;d=C?u:-1;t=C?1:t}else d=-1;a=s<<24>>24;t:do{if((a&-32|0)==32){u=0;while(1){if(!(1<<a+-32&75913)){f=u;a=l;break t}u=1<<(s<<24>>24)+-32|u;l=l+1|0;s=de[l>>0]|0;a=s<<24>>24;if((a&-32|0)!=32){f=u;a=l;break}}}else{f=0;a=l}}while(0);do{if(s<<24>>24==42){u=a+1|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[a+2>>0]|0)==36:0){pe[i+(s<<2)>>2]=10;t=1;a=a+3|0;s=pe[n+((de[u>>0]|0)+-48<<3)>>2]|0}else{if(t){o=-1;break e}if(!A){g=f;a=u;t=0;C=0;break}t=(pe[r>>2]|0)+(4-1)&~(4-1);s=pe[t>>2]|0;pe[r>>2]=t+4;t=0;a=u}if((s|0)<0){g=f|8192;C=0-s|0}else{g=f;C=s}}else{u=(s<<24>>24)+-48|0;if(u>>>0<10){s=0;do{s=(s*10|0)+u|0;a=a+1|0;u=(de[a>>0]|0)+-48|0}while(u>>>0<10);if((s|0)<0){o=-1;break e}else{g=f;C=s}}else{g=f;C=0}}}while(0);t:do{if((de[a>>0]|0)==46){u=a+1|0;s=de[u>>0]|0;if(s<<24>>24!=42){l=(s<<24>>24)+-48|0;if(l>>>0<10){a=u;s=0}else{a=u;l=0;break}while(1){s=(s*10|0)+l|0;a=a+1|0;l=(de[a>>0]|0)+-48|0;if(l>>>0>=10){l=s;break t}}}u=a+2|0;s=(de[u>>0]|0)+-48|0;if(s>>>0<10?(de[a+3>>0]|0)==36:0){pe[i+(s<<2)>>2]=10;a=a+4|0;l=pe[n+((de[u>>0]|0)+-48<<3)>>2]|0;break}if(t){o=-1;break e}if(A){a=(pe[r>>2]|0)+(4-1)&~(4-1);l=pe[a>>2]|0;pe[r>>2]=a+4;a=u}else{a=u;l=0}}else l=-1}while(0);h=0;while(1){s=(de[a>>0]|0)+-65|0;if(s>>>0>57){o=-1;break e}u=a+1|0;s=de[5359+(h*58|0)+s>>0]|0;f=s&255;if((f+-1|0)>>>0<8){a=u;h=f}else{E=u;break}}if(!(s<<24>>24)){o=-1;break}u=(d|0)>-1;do{if(s<<24>>24==19)if(u){o=-1;break e}else k=52;else{if(u){pe[i+(d<<2)>>2]=f;M=n+(d<<3)|0;P=pe[M+4>>2]|0;k=G;pe[k>>2]=pe[M>>2];pe[k+4>>2]=P;k=52;break}if(!A){o=0;break e}jr(G,f,r)}}while(0);if((k|0)==52?(k=0,!A):0){m=E;a=v;continue}d=de[a>>0]|0;d=(h|0)!=0&(d&15|0)==3?d&-33:d;u=g&-65537;P=(g&8192|0)==0?g:u;t:do{switch(d|0){case 110:switch(h|0){case 0:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 1:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 2:{m=pe[G>>2]|0;pe[m>>2]=o;pe[m+4>>2]=((o|0)<0)<<31>>31;m=E;a=v;continue e}case 3:{$[pe[G>>2]>>1]=o;m=E;a=v;continue e}case 4:{de[pe[G>>2]>>0]=o;m=E;a=v;continue e}case 6:{pe[pe[G>>2]>>2]=o;m=E;a=v;continue e}case 7:{m=pe[G>>2]|0;pe[m>>2]=o;pe[m+4>>2]=((o|0)<0)<<31>>31;m=E;a=v;continue e}default:{m=E;a=v;continue e}}case 112:{h=P|8;l=l>>>0>8?l:8;d=120;k=64;break}case 88:case 120:{h=P;k=64;break}case 111:{u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;if((s|0)==0&(u|0)==0)a=O;else{a=O;do{a=a+-1|0;de[a>>0]=s&7|48;s=Kr(s|0,u|0,3)|0;u=re}while(!((s|0)==0&(u|0)==0))}if(!(P&8)){s=P;h=0;f=5839;k=77}else{h=F-a+1|0;s=P;l=(l|0)<(h|0)?h:l;h=0;f=5839;k=77}break}case 105:case 100:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;if((s|0)<0){a=Wr(0,0,a|0,s|0)|0;s=re;u=G;pe[u>>2]=a;pe[u+4>>2]=s;u=1;f=5839;k=76;break t}if(!(P&2048)){f=P&1;u=f;f=(f|0)==0?5839:5841;k=76}else{u=1;f=5840;k=76}break}case 117:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;f=5839;k=76;break}case 99:{de[B>>0]=pe[G>>2];m=B;s=1;h=0;d=5839;a=O;break}case 109:{a=lr()|0;a=cr(pe[a>>2]|0)|0;k=82;break}case 115:{a=pe[G>>2]|0;a=(a|0)!=0?a:5849;k=82;break}case 67:{pe[Z>>2]=pe[G>>2];pe[z>>2]=0;pe[G>>2]=Z;l=-1;k=86;break}case 83:{if(!l){Br(e,32,C,0,P);a=0;k=98}else k=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{c=+ee[G>>3];pe[K>>2]=0;ee[te>>3]=c;if((pe[te+4>>2]|0)>=0)if(!(P&2048)){M=P&1;S=M;M=(M|0)==0?5857:5862}else{S=1;M=5859}else{c=-c;S=1;M=5856}ee[te>>3]=c;T=pe[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){p=+dr(c,K)*2.0;s=p!=0.0;if(s)pe[K>>2]=(pe[K>>2]|0)+-1;x=d|32;if((x|0)==97){m=d&32;v=(m|0)==0?M:M+9|0;g=S|2;a=12-l|0;do{if(!(l>>>0>11|(a|0)==0)){c=8.0;do{a=a+-1|0;c=c*16.0}while((a|0)!=0);if((de[v>>0]|0)==45){c=-(c+(-p-c));break}else{c=p+c-c;break}}else c=p}while(0);s=pe[K>>2]|0;a=(s|0)<0?0-s|0:s;a=Fr(a,((a|0)<0)<<31>>31,U)|0;if((a|0)==(U|0)){de[X>>0]=48;a=X}de[a+-1>>0]=(s>>31&2)+43;h=a+-2|0;de[h>>0]=d+15;f=(l|0)<1;u=(P&8|0)==0;s=V;while(1){M=~~c;a=s+1|0;de[s>>0]=me[5823+M>>0]|m;c=(c-+(M|0))*16.0;do{if((a-q|0)==1){if(u&(f&c==0.0))break;de[a>>0]=46;a=s+2|0}}while(0);if(!(c!=0.0))break;else s=a}l=(l|0)!=0&(R+a|0)<(l|0)?I+l-h|0:Y-h+a|0;u=l+g|0;Br(e,32,C,u,P);if(!(pe[e>>2]&32))yr(v,g,e)|0;Br(e,48,C,u,P^65536);a=a-q|0;if(!(pe[e>>2]&32))yr(V,a,e)|0;s=H-h|0;Br(e,48,l-(a+s)|0,0,0);if(!(pe[e>>2]&32))yr(h,s,e)|0;Br(e,32,C,u,P^8192);a=(u|0)<(C|0)?C:u;break}a=(l|0)<0?6:l;if(s){s=(pe[K>>2]|0)+-28|0;pe[K>>2]=s;c=p*268435456.0}else{c=p;s=pe[K>>2]|0}T=(s|0)<0?W:D;w=T;s=T;do{b=~~c>>>0;pe[s>>2]=b;s=s+4|0;c=(c-+(b>>>0))*1.0e9}while(c!=0.0);u=s;s=pe[K>>2]|0;if((s|0)>0){f=T;while(1){h=(s|0)>29?29:s;l=u+-4|0;do{if(l>>>0<f>>>0)l=f;else{s=0;do{b=Jr(pe[l>>2]|0,0,h|0)|0;b=Zr(b|0,re|0,s|0,0)|0;s=re;_=sn(b|0,s|0,1e9,0)|0;pe[l>>2]=_;s=an(b|0,s|0,1e9,0)|0;l=l+-4|0}while(l>>>0>=f>>>0);if(!s){l=f;break}l=f+-4|0;pe[l>>2]=s}}while(0);while(1){if(u>>>0<=l>>>0)break;s=u+-4|0;if(!(pe[s>>2]|0))u=s;else break}s=(pe[K>>2]|0)-h|0;pe[K>>2]=s;if((s|0)>0)f=l;else break}}else l=T;if((s|0)<0){v=((a+25|0)/9|0)+1|0;y=(x|0)==102;m=l;while(1){g=0-s|0;g=(g|0)>9?9:g;do{if(m>>>0<u>>>0){s=(1<<g)+-1|0;f=1e9>>>g;l=0;h=m;do{b=pe[h>>2]|0;pe[h>>2]=(b>>>g)+l;l=ye(b&s,f)|0;h=h+4|0}while(h>>>0<u>>>0);s=(pe[m>>2]|0)==0?m+4|0:m;if(!l){l=s;break}pe[u>>2]=l;l=s;u=u+4|0}else l=(pe[m>>2]|0)==0?m+4|0:m}while(0);s=y?T:l;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[K>>2]|0)+g|0;pe[K>>2]=s;if((s|0)>=0){m=l;break}else m=l}}else m=l;do{if(m>>>0<u>>>0){s=(w-m>>2)*9|0;f=pe[m>>2]|0;if(f>>>0<10)break;else l=10;do{l=l*10|0;s=s+1|0}while(f>>>0>=l>>>0)}else s=0}while(0);_=(x|0)==103;b=(a|0)!=0;l=a-((x|0)!=102?s:0)+((b&_)<<31>>31)|0;if((l|0)<(((u-w>>2)*9|0)+-9|0)){h=l+9216|0;y=(h|0)/9|0;l=T+(y+-1023<<2)|0;h=((h|0)%9|0)+1|0;if((h|0)<9){f=10;do{f=f*10|0;h=h+1|0}while((h|0)!=9)}else f=10;g=pe[l>>2]|0;v=(g>>>0)%(f>>>0)|0;if((v|0)==0?(T+(y+-1022<<2)|0)==(u|0):0)f=m;else k=163;do{if((k|0)==163){k=0;p=(((g>>>0)/(f>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;h=(f|0)/2|0;do{if(v>>>0<h>>>0)c=.5;else{if((v|0)==(h|0)?(T+(y+-1022<<2)|0)==(u|0):0){c=1.0;break}c=1.5}}while(0);do{if(S){if((de[M>>0]|0)!=45)break;p=-p;c=-c}}while(0);h=g-v|0;pe[l>>2]=h;if(!(p+c!=p)){f=m;break}x=h+f|0;pe[l>>2]=x;if(x>>>0>999999999){s=m;while(1){f=l+-4|0;pe[l>>2]=0;if(f>>>0<s>>>0){s=s+-4|0;pe[s>>2]=0}x=(pe[f>>2]|0)+1|0;pe[f>>2]=x;if(x>>>0>999999999)l=f;else{m=s;l=f;break}}}s=(w-m>>2)*9|0;h=pe[m>>2]|0;if(h>>>0<10){f=m;break}else f=10;do{f=f*10|0;s=s+1|0}while(h>>>0>=f>>>0);f=m}}while(0);x=l+4|0;m=f;u=u>>>0>x>>>0?x:u}v=0-s|0;while(1){if(u>>>0<=m>>>0){y=0;x=u;break}l=u+-4|0;if(!(pe[l>>2]|0))u=l;else{y=1;x=u;break}}do{if(_){a=(b&1^1)+a|0;if((a|0)>(s|0)&(s|0)>-5){d=d+-1|0;a=a+-1-s|0}else{d=d+-2|0;a=a+-1|0}u=P&8;if(u)break;do{if(y){u=pe[x+-4>>2]|0;if(!u){l=9;break}if(!((u>>>0)%10|0)){f=10;l=0}else{l=0;break}do{f=f*10|0;l=l+1|0}while(((u>>>0)%(f>>>0)|0|0)==0)}else l=9}while(0);u=((x-w>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-l|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}else{u=u+s-l|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}}else u=P&8}while(0);g=a|u;f=(g|0)!=0&1;h=(d|32|0)==102;if(h){s=(s|0)>0?s:0;d=0}else{l=(s|0)<0?v:s;l=Fr(l,((l|0)<0)<<31>>31,U)|0;if((H-l|0)<2)do{l=l+-1|0;de[l>>0]=48}while((H-l|0)<2);de[l+-1>>0]=(s>>31&2)+43;w=l+-2|0;de[w>>0]=d;s=H-w|0;d=w}v=S+1+a+f+s|0;Br(e,32,C,v,P);if(!(pe[e>>2]&32))yr(M,S,e)|0;Br(e,48,C,v,P^65536);do{if(h){l=m>>>0>T>>>0?T:m;s=l;do{u=Fr(pe[s>>2]|0,0,L)|0;do{if((s|0)==(l|0)){if((u|0)!=(L|0))break;de[j>>0]=48;u=j}else{if(u>>>0<=V>>>0)break;do{u=u+-1|0;de[u>>0]=48}while(u>>>0>V>>>0)}}while(0);if(!(pe[e>>2]&32))yr(u,N-u|0,e)|0;s=s+4|0}while(s>>>0<=T>>>0);do{if(g){if(pe[e>>2]&32)break;yr(5891,1,e)|0}}while(0);if((a|0)>0&s>>>0<x>>>0){u=s;while(1){s=Fr(pe[u>>2]|0,0,L)|0;if(s>>>0>V>>>0)do{s=s+-1|0;de[s>>0]=48}while(s>>>0>V>>>0);if(!(pe[e>>2]&32))yr(s,(a|0)>9?9:a,e)|0;u=u+4|0;s=a+-9|0;if(!((a|0)>9&u>>>0<x>>>0)){a=s;break}else a=s}}Br(e,48,a+9|0,9,0)}else{h=y?x:m+4|0;if((a|0)>-1){f=(u|0)==0;l=m;do{s=Fr(pe[l>>2]|0,0,L)|0;if((s|0)==(L|0)){de[j>>0]=48;s=j}do{if((l|0)==(m|0)){u=s+1|0;if(!(pe[e>>2]&32))yr(s,1,e)|0;if(f&(a|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}yr(5891,1,e)|0;s=u}else{if(s>>>0<=V>>>0)break;do{s=s+-1|0;de[s>>0]=48}while(s>>>0>V>>>0)}}while(0);u=N-s|0;if(!(pe[e>>2]&32))yr(s,(a|0)>(u|0)?u:a,e)|0;a=a-u|0;l=l+4|0}while(l>>>0<h>>>0&(a|0)>-1)}Br(e,48,a+18|0,18,0);if(pe[e>>2]&32)break;yr(d,H-d|0,e)|0}}while(0);Br(e,32,C,v,P^8192);a=(v|0)<(C|0)?C:v}else{h=(d&32|0)!=0;f=c!=c|0.0!=0.0;s=f?0:S;l=s+3|0;Br(e,32,C,l,u);a=pe[e>>2]|0;if(!(a&32)){yr(M,s,e)|0;a=pe[e>>2]|0}if(!(a&32))yr(f?h?5883:5887:h?5875:5879,3,e)|0;Br(e,32,C,l,P^8192);a=(l|0)<(C|0)?C:l}}while(0);m=E;continue e}default:{u=P;s=l;h=0;d=5839;a=O}}}while(0);t:do{if((k|0)==64){u=G;s=pe[u>>2]|0;u=pe[u+4>>2]|0;f=d&32;if(!((s|0)==0&(u|0)==0)){a=O;do{a=a+-1|0;de[a>>0]=me[5823+(s&15)>>0]|f;s=Kr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));k=G;if((h&8|0)==0|(pe[k>>2]|0)==0&(pe[k+4>>2]|0)==0){s=h;h=0;f=5839;k=77}else{s=h;h=2;f=5839+(d>>4)|0;k=77}}else{a=O;s=h;h=0;f=5839;k=77}}else if((k|0)==76){a=Fr(a,s,O)|0;s=P;h=u;k=77}else if((k|0)==82){k=0;P=Rr(a,0,l)|0;M=(P|0)==0;m=a;s=M?l:P-a|0;h=0;d=5839;a=M?a+l|0:P}else if((k|0)==86){k=0;s=0;a=0;f=pe[G>>2]|0;while(1){u=pe[f>>2]|0;if(!u)break;a=mr(J,u)|0;if((a|0)<0|a>>>0>(l-s|0)>>>0)break;s=a+s|0;if(l>>>0>s>>>0)f=f+4|0;else break}if((a|0)<0){o=-1;break e}Br(e,32,C,s,P);if(!s){a=0;k=98}else{u=0;l=pe[G>>2]|0;while(1){a=pe[l>>2]|0;if(!a){a=s;k=98;break t}a=mr(J,a)|0;u=a+u|0;if((u|0)>(s|0)){a=s;k=98;break t}if(!(pe[e>>2]&32))yr(J,a,e)|0;if(u>>>0>=s>>>0){a=s;k=98;break}else l=l+4|0}}}}while(0);if((k|0)==98){k=0;Br(e,32,C,a,P^8192);m=E;a=(C|0)>(a|0)?C:a;continue}if((k|0)==77){k=0;u=(l|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((l|0)!=0|s){s=(s&1^1)+(F-a)|0;m=a;s=(l|0)>(s|0)?l:s;d=f;a=O}else{m=O;s=0;d=f;a=O}}f=a-m|0;s=(s|0)<(f|0)?f:s;l=h+s|0;a=(C|0)<(l|0)?l:C;Br(e,32,a,l,u);if(!(pe[e>>2]&32))yr(d,h,e)|0;Br(e,48,a,l,u^65536);Br(e,48,s,f,0);if(!(pe[e>>2]&32))yr(m,f,e)|0;Br(e,32,a,l,u^8192);m=E}e:do{if((k|0)==245)if(!e)if(t){o=1;while(1){t=pe[i+(o<<2)>>2]|0;if(!t)break;jr(n+(o<<3)|0,t,r);o=o+1|0;if((o|0)>=10){o=1;break e}}if((o|0)<10)while(1){if(pe[i+(o<<2)>>2]|0){o=-1;break e}o=o+1|0;if((o|0)>=10){o=1;break}}else o=1}else o=0}while(0);ve=Q;return o|0}function Lr(e){e=e|0;if(!(pe[e+68>>2]|0))Mr(e);return}function Nr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0;n=e+20|0;i=pe[n>>2]|0;e=(pe[e+16>>2]|0)-i|0;e=e>>>0>r>>>0?r:e;Qr(i|0,t|0,e|0)|0;pe[n>>2]=(pe[n>>2]|0)+e;return r|0}function jr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0.0;e:do{if(t>>>0<=20)do{switch(t|0){case 9:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;pe[e>>2]=t;break e}case 10:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=t;pe[n+4>>2]=((t|0)<0)<<31>>31;break e}case 11:{n=(pe[r>>2]|0)+(4-1)&~(4-1);t=pe[n>>2]|0;pe[r>>2]=n+4;n=e;pe[n>>2]=t;pe[n+4>>2]=0;break e}case 12:{n=(pe[r>>2]|0)+(8-1)&~(8-1);t=n;i=pe[t>>2]|0;t=pe[t+4>>2]|0;pe[r>>2]=n+8;n=e;pe[n>>2]=i;pe[n+4>>2]=t;break e}case 13:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;n=(n&65535)<<16>>16;i=e;pe[i>>2]=n;pe[i+4>>2]=((n|0)<0)<<31>>31;break e}case 14:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=n&65535;pe[i+4>>2]=0;break e}case 15:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;n=(n&255)<<24>>24;i=e;pe[i>>2]=n;pe[i+4>>2]=((n|0)<0)<<31>>31;break e}case 16:{i=(pe[r>>2]|0)+(4-1)&~(4-1);n=pe[i>>2]|0;pe[r>>2]=i+4;i=e;pe[i>>2]=n&255;pe[i+4>>2]=0;break e}case 17:{i=(pe[r>>2]|0)+(8-1)&~(8-1);o=+ee[i>>3];pe[r>>2]=i+8;ee[e>>3]=o;break e}case 18:{i=(pe[r>>2]|0)+(8-1)&~(8-1);o=+ee[i>>3];pe[r>>2]=i+8;ee[e>>3]=o;break e}default:break e}}while(0)}while(0);return}function Fr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if(t>>>0>0|(t|0)==0&e>>>0>4294967295)while(1){n=sn(e|0,t|0,10,0)|0;r=r+-1|0;de[r>>0]=n|48;n=an(e|0,t|0,10,0)|0;if(t>>>0>9|(t|0)==9&e>>>0>4294967295){e=n;t=re}else{e=n;break}}if(e)while(1){r=r+-1|0;de[r>>0]=(e>>>0)%10|0|48;if(e>>>0<10)break;else e=(e>>>0)/10|0}return r|0}function Br(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0;s=ve;ve=ve+256|0;a=s;do{if((r|0)>(n|0)&(i&73728|0)==0){i=r-n|0;Vr(a|0,t|0,(i>>>0>256?256:i)|0)|0;t=pe[e>>2]|0;o=(t&32|0)==0;if(i>>>0>255){n=r-n|0;do{if(o){yr(a,256,e)|0;t=pe[e>>2]|0}i=i+-256|0;o=(t&32|0)==0}while(i>>>0>255);if(o)i=n&255;else break}else if(!o)break;yr(a,i,e)|0}}while(0);ve=s;return}function zr(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,E=0,C=0,k=0,A=0,O=0,R=0,I=0,D=0,L=0,N=0,j=0;do{if(e>>>0<245){d=e>>>0<11?16:e+11&-8;e=d>>>3;s=pe[151]|0;r=s>>>e;if(r&3){e=(r&1^1)+e|0;n=e<<1;r=644+(n<<2)|0;n=644+(n+2<<2)|0;i=pe[n>>2]|0;o=i+8|0;a=pe[o>>2]|0;do{if((r|0)!=(a|0)){if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+12|0;if((pe[t>>2]|0)==(i|0)){pe[t>>2]=r;pe[n>>2]=a;break}else Xe()}else pe[151]=s&~(1<<e)}while(0);j=e<<3;pe[i+4>>2]=j|3;j=i+(j|4)|0;pe[j>>2]=pe[j>>2]|1;j=o;return j|0}a=pe[153]|0;if(d>>>0>a>>>0){if(r){n=2<<e;n=r<<e&(n|0-n);n=(n&0-n)+-1|0;u=n>>>12&16;n=n>>>u;i=n>>>5&8;n=n>>>i;o=n>>>2&4;n=n>>>o;r=n>>>1&2;n=n>>>r;e=n>>>1&1;e=(i|u|o|r|e)+(n>>>e)|0;n=e<<1;r=644+(n<<2)|0;n=644+(n+2<<2)|0;o=pe[n>>2]|0;u=o+8|0;i=pe[u>>2]|0;do{if((r|0)!=(i|0)){if(i>>>0<(pe[155]|0)>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)==(o|0)){pe[t>>2]=r;pe[n>>2]=i;c=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<<e);c=a}}while(0);j=e<<3;a=j-d|0;pe[o+4>>2]=d|3;s=o+d|0;pe[o+(d|4)>>2]=a|1;pe[o+j>>2]=a;if(c){i=pe[156]|0;r=c>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){e=644+(t+2<<2)|0;t=pe[e>>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{l=e;f=t}}else{pe[151]=e|r;l=644+(t+2<<2)|0;f=n}pe[l>>2]=i;pe[f+12>>2]=i;pe[i+8>>2]=f;pe[i+12>>2]=n}pe[153]=a;pe[156]=s;j=u;return j|0}e=pe[152]|0;if(e){r=(e&0-e)+-1|0;N=r>>>12&16;r=r>>>N;L=r>>>5&8;r=r>>>L;j=r>>>2&4;r=r>>>j;e=r>>>1&2;r=r>>>e;n=r>>>1&1;n=pe[908+((L|N|j|e|n)+(r>>>n)<<2)>>2]|0;r=(pe[n+4>>2]&-8)-d|0;e=n;while(1){t=pe[e+16>>2]|0;if(!t){t=pe[e+20>>2]|0;if(!t){u=r;break}}e=(pe[t+4>>2]&-8)-d|0;j=e>>>0<r>>>0;r=j?e:r;e=t;n=j?t:n}o=pe[155]|0;if(n>>>0<o>>>0)Xe();s=n+d|0;if(n>>>0>=s>>>0)Xe();a=pe[n+24>>2]|0;r=pe[n+12>>2]|0;do{if((r|0)==(n|0)){e=n+20|0;t=pe[e>>2]|0;if(!t){e=n+16|0;t=pe[e>>2]|0;if(!t){h=0;break}}while(1){r=t+20|0;i=pe[r>>2]|0;if(i){t=i;e=r;continue}r=t+16|0;i=pe[r>>2]|0;if(!i)break;else{t=i;e=r}}if(e>>>0<o>>>0)Xe();else{pe[e>>2]=0;h=t;break}}else{i=pe[n+8>>2]|0;if(i>>>0<o>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(n|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(n|0)){pe[t>>2]=r;pe[e>>2]=i;h=r;break}else Xe()}}while(0);do{if(a){t=pe[n+28>>2]|0;e=908+(t<<2)|0;if((n|0)==(pe[e>>2]|0)){pe[e>>2]=h;if(!h){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(n|0))pe[t>>2]=h;else pe[a+20>>2]=h;if(!h)break}e=pe[155]|0;if(h>>>0<e>>>0)Xe();pe[h+24>>2]=a;t=pe[n+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[h+16>>2]=t;pe[t+24>>2]=h;break}}while(0);t=pe[n+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[h+20>>2]=t;pe[t+24>>2]=h;break}}}while(0);if(u>>>0<16){j=u+d|0;pe[n+4>>2]=j|3;j=n+(j+4)|0;pe[j>>2]=pe[j>>2]|1}else{pe[n+4>>2]=d|3;pe[n+(d|4)>>2]=u|1;pe[n+(u+d)>>2]=u;t=pe[153]|0;if(t){o=pe[156]|0;r=t>>>3;t=r<<1;i=644+(t<<2)|0;e=pe[151]|0;r=1<<r;if(e&r){t=644+(t+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;m=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;m=i}pe[p>>2]=o;pe[m+12>>2]=o;pe[o+8>>2]=m;pe[o+12>>2]=i}pe[153]=u;pe[156]=s}j=n+8|0;return j|0}else m=d}else m=d}else if(e>>>0<=4294967231){e=e+11|0;f=e&-8;l=pe[152]|0;if(l){r=0-f|0;e=e>>>8;if(e)if(f>>>0>16777215)c=31;else{m=(e+1048320|0)>>>16&8;b=e<<m;p=(b+520192|0)>>>16&4;b=b<<p;c=(b+245760|0)>>>16&2;c=14-(p|m|c)+(b<<c>>>15)|0;c=f>>>(c+7|0)&1|c<<1}else c=0;e=pe[908+(c<<2)>>2]|0;e:do{if(!e){i=0;e=0;b=86}else{a=r;i=0;s=f<<((c|0)==31?0:25-(c>>>1)|0);u=e;e=0;while(1){o=pe[u+4>>2]&-8;r=o-f|0;if(r>>>0<a>>>0)if((o|0)==(f|0)){o=u;e=u;b=90;break e}else e=u;else r=a;b=pe[u+20>>2]|0;u=pe[u+16+(s>>>31<<2)>>2]|0;i=(b|0)==0|(b|0)==(u|0)?i:b;if(!u){b=86;break}else{a=r;s=s<<1}}}}while(0);if((b|0)==86){if((i|0)==0&(e|0)==0){e=2<<c;e=l&(e|0-e);if(!e){m=f;break}e=(e&0-e)+-1|0;h=e>>>12&16;e=e>>>h;l=e>>>5&8;e=e>>>l;p=e>>>2&4;e=e>>>p;m=e>>>1&2;e=e>>>m;i=e>>>1&1;i=pe[908+((l|h|p|m|i)+(e>>>i)<<2)>>2]|0;e=0}if(!i){s=r;u=e}else{o=i;b=90}}if((b|0)==90)while(1){b=0;m=(pe[o+4>>2]&-8)-f|0;i=m>>>0<r>>>0;r=i?m:r;e=i?o:e;i=pe[o+16>>2]|0;if(i){o=i;b=90;continue}o=pe[o+20>>2]|0;if(!o){s=r;u=e;break}else b=90}if((u|0)!=0?s>>>0<((pe[153]|0)-f|0)>>>0:0){i=pe[155]|0;if(u>>>0<i>>>0)Xe();a=u+f|0;if(u>>>0>=a>>>0)Xe();o=pe[u+24>>2]|0;r=pe[u+12>>2]|0;do{if((r|0)==(u|0)){e=u+20|0;t=pe[e>>2]|0;if(!t){e=u+16|0;t=pe[e>>2]|0;if(!t){d=0;break}}while(1){r=t+20|0;n=pe[r>>2]|0;if(n){t=n;e=r;continue}r=t+16|0;n=pe[r>>2]|0;if(!n)break;else{t=n;e=r}}if(e>>>0<i>>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{n=pe[u+8>>2]|0;if(n>>>0<i>>>0)Xe();t=n+12|0;if((pe[t>>2]|0)!=(u|0))Xe();e=r+8|0;if((pe[e>>2]|0)==(u|0)){pe[t>>2]=r;pe[e>>2]=n;d=r;break}else Xe()}}while(0);do{if(o){t=pe[u+28>>2]|0;e=908+(t<<2)|0;if((u|0)==(pe[e>>2]|0)){pe[e>>2]=d;if(!d){pe[152]=pe[152]&~(1<<t);break}}else{if(o>>>0<(pe[155]|0)>>>0)Xe();t=o+16|0;if((pe[t>>2]|0)==(u|0))pe[t>>2]=d;else pe[o+20>>2]=d;if(!d)break}e=pe[155]|0;if(d>>>0<e>>>0)Xe();pe[d+24>>2]=o;t=pe[u+16>>2]|0;do{if(t)if(t>>>0<e>>>0)Xe();else{pe[d+16>>2]=t;pe[t+24>>2]=d;break}}while(0);t=pe[u+20>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[d+20>>2]=t;pe[t+24>>2]=d;break}}}while(0);e:do{if(s>>>0>=16){pe[u+4>>2]=f|3;pe[u+(f|4)>>2]=s|1;pe[u+(s+f)>>2]=s;t=s>>>3;if(s>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;y=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;y=n}pe[v>>2]=a;pe[y+12>>2]=a;pe[u+(f+8)>>2]=y;pe[u+(f+12)>>2]=n;break}t=s>>>8;if(t)if(s>>>0>16777215)n=31;else{N=(t+1048320|0)>>>16&8;j=t<<N;L=(j+520192|0)>>>16&4;j=j<<L;n=(j+245760|0)>>>16&2;n=14-(L|N|n)+(j<<n>>>15)|0;n=s>>>(n+7|0)&1|n<<1}else n=0;t=908+(n<<2)|0;pe[u+(f+28)>>2]=n;pe[u+(f+20)>>2]=0;pe[u+(f+16)>>2]=0;e=pe[152]|0;r=1<<n;if(!(e&r)){pe[152]=e|r;pe[t>>2]=a;pe[u+(f+24)>>2]=t;pe[u+(f+12)>>2]=a;pe[u+(f+8)>>2]=a;break}t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(s|0)){n=s<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(s|0)){T=r;break t}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=a;pe[u+(f+24)>>2]=t;pe[u+(f+12)>>2]=a;pe[u+(f+8)>>2]=a;break e}}else T=t}while(0);t=T+8|0;e=pe[t>>2]|0;j=pe[155]|0;if(e>>>0>=j>>>0&T>>>0>=j>>>0){pe[e+12>>2]=a;pe[t>>2]=a;pe[u+(f+8)>>2]=e;pe[u+(f+12)>>2]=T;pe[u+(f+24)>>2]=0;break}else Xe()}else{j=s+f|0;pe[u+4>>2]=j|3;j=u+(j+4)|0;pe[j>>2]=pe[j>>2]|1}}while(0);j=u+8|0;return j|0}else m=f}else m=f}else m=-1}while(0);r=pe[153]|0;if(r>>>0>=m>>>0){t=r-m|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+m;pe[153]=t;pe[e+(m+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=m|3}else{pe[153]=0;pe[156]=0;pe[e+4>>2]=r|3;j=e+(r+4)|0;pe[j>>2]=pe[j>>2]|1}j=e+8|0;return j|0}e=pe[154]|0;if(e>>>0>m>>>0){N=e-m|0;pe[154]=N;j=pe[157]|0;pe[157]=j+m;pe[j+(m+4)>>2]=N|1;pe[j+4>>2]=m|3;j=j+8|0;return j|0}do{if(!(pe[269]|0)){e=Ie(30)|0;if(!(e+-1&e)){pe[271]=e;pe[270]=e;pe[272]=-1;pe[273]=-1;pe[274]=0;pe[262]=0;T=(He(0)|0)&-16^1431655768;pe[269]=T;break}else Xe()}}while(0);u=m+48|0;s=pe[271]|0;c=m+47|0;a=s+c|0;s=0-s|0;l=a&s;if(l>>>0<=m>>>0){j=0;return j|0}e=pe[261]|0;if((e|0)!=0?(y=pe[259]|0,T=y+l|0,T>>>0<=y>>>0|T>>>0>e>>>0):0){j=0;return j|0}e:do{if(!(pe[262]&4)){e=pe[157]|0;t:do{if(e){i=1052;while(1){r=pe[i>>2]|0;if(r>>>0<=e>>>0?(g=i+4|0,(r+(pe[g>>2]|0)|0)>>>0>e>>>0):0){o=i;e=g;break}i=pe[i+8>>2]|0;if(!i){b=174;break t}}r=a-(pe[154]|0)&s;if(r>>>0<2147483647){i=Ae(r|0)|0;T=(i|0)==((pe[o>>2]|0)+(pe[e>>2]|0)|0);e=T?r:0;if(T){if((i|0)!=(-1|0)){x=i;p=e;b=194;break e}}else b=184}else e=0}else b=174}while(0);do{if((b|0)==174){o=Ae(0)|0;if((o|0)!=(-1|0)){e=o;r=pe[270]|0;i=r+-1|0;if(!(i&e))r=l;else r=l-e+(i+e&0-r)|0;e=pe[259]|0;i=e+r|0;if(r>>>0>m>>>0&r>>>0<2147483647){T=pe[261]|0;if((T|0)!=0?i>>>0<=e>>>0|i>>>0>T>>>0:0){e=0;break}i=Ae(r|0)|0;T=(i|0)==(o|0);e=T?r:0;if(T){x=o;p=e;b=194;break e}else b=184}else e=0}else e=0}}while(0);t:do{if((b|0)==184){o=0-r|0;do{if(u>>>0>r>>>0&(r>>>0<2147483647&(i|0)!=(-1|0))?(_=pe[271]|0,_=c-r+_&0-_,_>>>0<2147483647):0)if((Ae(_|0)|0)==(-1|0)){Ae(o|0)|0;break t}else{r=_+r|0;break}}while(0);if((i|0)!=(-1|0)){x=i;p=r;b=194;break e}}}while(0);pe[262]=pe[262]|4;b=191}else{e=0;b=191}}while(0);if((((b|0)==191?l>>>0<2147483647:0)?(x=Ae(l|0)|0,w=Ae(0)|0,x>>>0<w>>>0&((x|0)!=(-1|0)&(w|0)!=(-1|0))):0)?(S=w-x|0,M=S>>>0>(m+40|0)>>>0,M):0){p=M?S:e;b=194}if((b|0)==194){e=(pe[259]|0)+p|0;pe[259]=e;if(e>>>0>(pe[260]|0)>>>0)pe[260]=e;a=pe[157]|0;e:do{if(a){o=1052;do{e=pe[o>>2]|0;r=o+4|0;i=pe[r>>2]|0;if((x|0)==(e+i|0)){P=e;E=r;C=i;k=o;b=204;break}o=pe[o+8>>2]|0}while((o|0)!=0);if(((b|0)==204?(pe[k+12>>2]&8|0)==0:0)?a>>>0<x>>>0&a>>>0>=P>>>0:0){pe[E>>2]=C+p;j=(pe[154]|0)+p|0;N=a+8|0;N=(N&7|0)==0?0:0-N&7;L=j-N|0;pe[157]=a+N;pe[154]=L;pe[a+(N+4)>>2]=L|1;pe[a+(j+4)>>2]=40;pe[158]=pe[273];break}e=pe[155]|0;if(x>>>0<e>>>0){pe[155]=x;e=x}r=x+p|0;o=1052;while(1){if((pe[o>>2]|0)==(r|0)){i=o;r=o;b=212;break}o=pe[o+8>>2]|0;if(!o){r=1052;break}}if((b|0)==212)if(!(pe[r+12>>2]&8)){pe[i>>2]=x;h=r+4|0;pe[h>>2]=(pe[h>>2]|0)+p;h=x+8|0;h=(h&7|0)==0?0:0-h&7;c=x+(p+8)|0;c=(c&7|0)==0?0:0-c&7;t=x+(c+p)|0;f=h+m|0;d=x+f|0;l=t-(x+h)-m|0;pe[x+(h+4)>>2]=m|3;t:do{if((t|0)!=(a|0)){if((t|0)==(pe[156]|0)){j=(pe[153]|0)+l|0;pe[153]=j;pe[156]=d;pe[x+(f+4)>>2]=j|1;pe[x+(j+f)>>2]=j;break}s=p+4|0;r=pe[x+(s+c)>>2]|0;if((r&3|0)==1){u=r&-8;o=r>>>3;r:do{if(r>>>0>=256){a=pe[x+((c|24)+p)>>2]|0;n=pe[x+(p+12+c)>>2]|0;do{if((n|0)==(t|0)){i=c|16;n=x+(s+i)|0;r=pe[n>>2]|0;if(!r){n=x+(i+p)|0;r=pe[n>>2]|0;if(!r){D=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<e>>>0)Xe();else{pe[n>>2]=0;D=r;break}}else{i=pe[x+((c|8)+p)>>2]|0;if(i>>>0<e>>>0)Xe();e=i+12|0;if((pe[e>>2]|0)!=(t|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(t|0)){pe[e>>2]=n;pe[r>>2]=i;D=n;break}else Xe()}}while(0);if(!a)break;e=pe[x+(p+28+c)>>2]|0;r=908+(e<<2)|0;do{if((t|0)!=(pe[r>>2]|0)){if(a>>>0<(pe[155]|0)>>>0)Xe();e=a+16|0;if((pe[e>>2]|0)==(t|0))pe[e>>2]=D;else pe[a+20>>2]=D;if(!D)break r}else{pe[r>>2]=D;if(D)break;pe[152]=pe[152]&~(1<<e);break r}}while(0);r=pe[155]|0;if(D>>>0<r>>>0)Xe();pe[D+24>>2]=a;t=c|16;e=pe[x+(t+p)>>2]|0;do{if(e)if(e>>>0<r>>>0)Xe();else{pe[D+16>>2]=e;pe[e+24>>2]=D;break}}while(0);t=pe[x+(s+t)>>2]|0;if(!t)break;if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[D+20>>2]=t;pe[t+24>>2]=D;break}}else{n=pe[x+((c|8)+p)>>2]|0;i=pe[x+(p+12+c)>>2]|0;r=644+(o<<1<<2)|0;do{if((n|0)!=(r|0)){if(n>>>0<e>>>0)Xe();if((pe[n+12>>2]|0)==(t|0))break;Xe()}}while(0);if((i|0)==(n|0)){pe[151]=pe[151]&~(1<<o);break}do{if((i|0)==(r|0))A=i+8|0;else{if(i>>>0<e>>>0)Xe();e=i+8|0;if((pe[e>>2]|0)==(t|0)){A=e;break}Xe()}}while(0);pe[n+12>>2]=i;pe[A>>2]=n}}while(0);t=x+((u|c)+p)|0;i=u+l|0}else i=l;t=t+4|0;pe[t>>2]=pe[t>>2]&-2;pe[x+(f+4)>>2]=i|1;pe[x+(i+f)>>2]=i;t=i>>>3;if(i>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;do{if(!(r&t)){pe[151]=r|t;L=644+(e+2<<2)|0;N=n}else{t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0>=(pe[155]|0)>>>0){L=t;N=e;break}Xe()}}while(0);pe[L>>2]=d;pe[N+12>>2]=d;pe[x+(f+8)>>2]=N;pe[x+(f+12)>>2]=n;break}t=i>>>8;do{if(!t)n=0;else{if(i>>>0>16777215){n=31;break}L=(t+1048320|0)>>>16&8;N=t<<L;D=(N+520192|0)>>>16&4;N=N<<D;n=(N+245760|0)>>>16&2;n=14-(D|L|n)+(N<<n>>>15)|0;n=i>>>(n+7|0)&1|n<<1}}while(0);t=908+(n<<2)|0;pe[x+(f+28)>>2]=n;pe[x+(f+20)>>2]=0;pe[x+(f+16)>>2]=0;e=pe[152]|0;r=1<<n;if(!(e&r)){pe[152]=e|r;pe[t>>2]=d;pe[x+(f+24)>>2]=t;pe[x+(f+12)>>2]=d;pe[x+(f+8)>>2]=d;break}t=pe[t>>2]|0;r:do{if((pe[t+4>>2]&-8|0)!=(i|0)){n=i<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(i|0)){j=r;break r}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=d;pe[x+(f+24)>>2]=t;pe[x+(f+12)>>2]=d;pe[x+(f+8)>>2]=d;break t}}else j=t}while(0);t=j+8|0;e=pe[t>>2]|0;N=pe[155]|0;if(e>>>0>=N>>>0&j>>>0>=N>>>0){pe[e+12>>2]=d;pe[t>>2]=d;pe[x+(f+8)>>2]=e;pe[x+(f+12)>>2]=j;pe[x+(f+24)>>2]=0;break}else Xe()}else{j=(pe[154]|0)+l|0;pe[154]=j;pe[157]=d;pe[x+(f+4)>>2]=j|1}}while(0);j=x+(h|8)|0;return j|0}else r=1052;while(1){e=pe[r>>2]|0;if(e>>>0<=a>>>0?(t=pe[r+4>>2]|0,n=e+t|0,n>>>0>a>>>0):0)break;r=pe[r+8>>2]|0}i=e+(t+-39)|0;e=e+(t+-47+((i&7|0)==0?0:0-i&7))|0;i=a+16|0;e=e>>>0<i>>>0?a:e;t=e+8|0;r=x+8|0;r=(r&7|0)==0?0:0-r&7;j=p+-40-r|0;pe[157]=x+r;pe[154]=j;pe[x+(r+4)>>2]=j|1;pe[x+(p+-36)>>2]=40;pe[158]=pe[273];r=e+4|0;pe[r>>2]=27;pe[t>>2]=pe[263];pe[t+4>>2]=pe[264];pe[t+8>>2]=pe[265];pe[t+12>>2]=pe[266];pe[263]=x;pe[264]=p;pe[266]=0;pe[265]=t;t=e+28|0;pe[t>>2]=7;if((e+32|0)>>>0<n>>>0)do{j=t;t=t+4|0;pe[t>>2]=7}while((j+8|0)>>>0<n>>>0);if((e|0)!=(a|0)){o=e-a|0;pe[r>>2]=pe[r>>2]&-2;pe[a+4>>2]=o|1;pe[e>>2]=o;t=o>>>3;if(o>>>0<256){e=t<<1;n=644+(e<<2)|0;r=pe[151]|0;t=1<<t;if(r&t){t=644+(e+2<<2)|0;e=pe[t>>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{O=t;R=e}}else{pe[151]=r|t;O=644+(e+2<<2)|0;R=n}pe[O>>2]=a;pe[R+12>>2]=a;pe[a+8>>2]=R;pe[a+12>>2]=n;break}t=o>>>8;if(t)if(o>>>0>16777215)n=31;else{N=(t+1048320|0)>>>16&8;j=t<<N;L=(j+520192|0)>>>16&4;j=j<<L;n=(j+245760|0)>>>16&2;n=14-(L|N|n)+(j<<n>>>15)|0;n=o>>>(n+7|0)&1|n<<1}else n=0;r=908+(n<<2)|0;pe[a+28>>2]=n;pe[a+20>>2]=0;pe[i>>2]=0;t=pe[152]|0;e=1<<n;if(!(t&e)){pe[152]=t|e;pe[r>>2]=a;pe[a+24>>2]=r;pe[a+12>>2]=a;pe[a+8>>2]=a;break}t=pe[r>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(o|0)){n=o<<((n|0)==31?0:25-(n>>>1)|0);while(1){e=t+16+(n>>>31<<2)|0;r=pe[e>>2]|0;if(!r)break;if((pe[r+4>>2]&-8|0)==(o|0)){I=r;break t}else{n=n<<1;t=r}}if(e>>>0<(pe[155]|0)>>>0)Xe();else{pe[e>>2]=a;pe[a+24>>2]=t;pe[a+12>>2]=a;pe[a+8>>2]=a;break e}}else I=t}while(0);t=I+8|0;e=pe[t>>2]|0;j=pe[155]|0;if(e>>>0>=j>>>0&I>>>0>=j>>>0){pe[e+12>>2]=a;pe[t>>2]=a;pe[a+8>>2]=e;pe[a+12>>2]=I;pe[a+24>>2]=0;break}else Xe()}}else{j=pe[155]|0;if((j|0)==0|x>>>0<j>>>0)pe[155]=x;pe[263]=x;pe[264]=p;pe[266]=0;pe[160]=pe[269];pe[159]=-1;t=0;do{j=t<<1;N=644+(j<<2)|0;pe[644+(j+3<<2)>>2]=N;pe[644+(j+2<<2)>>2]=N;t=t+1|0}while((t|0)!=32);j=x+8|0;j=(j&7|0)==0?0:0-j&7;N=p+-40-j|0;pe[157]=x+j;pe[154]=N;pe[x+(j+4)>>2]=N|1;pe[x+(p+-36)>>2]=40;pe[158]=pe[273]}}while(0);t=pe[154]|0;if(t>>>0>m>>>0){N=t-m|0;pe[154]=N;j=pe[157]|0;pe[157]=j+m;pe[j+(m+4)>>2]=N|1;pe[j+4>>2]=m|3;j=j+8|0;return j|0}}j=lr()|0;pe[j>>2]=12;j=0;return j|0}function Ur(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0,_=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0<s>>>0)Xe();r=pe[e+-4>>2]|0;n=r&3;if((n|0)==1)Xe();d=r&-8;m=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!n)return;u=-8-t|0;l=e+u|0;f=t+d|0;if(l>>>0<s>>>0)Xe();if((l|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){_=l;o=f;break}pe[153]=f;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=f|1;pe[m>>2]=f;return}i=t>>>3;if(t>>>0<256){n=pe[e+(u+8)>>2]|0;r=pe[e+(u+12)>>2]|0;t=644+(i<<1<<2)|0;if((n|0)!=(t|0)){if(n>>>0<s>>>0)Xe();if((pe[n+12>>2]|0)!=(l|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<<i);_=l;o=f;break}if((r|0)!=(t|0)){if(r>>>0<s>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(l|0))a=t;else Xe()}else a=r+8|0;pe[n+12>>2]=r;pe[a>>2]=n;_=l;o=f;break}a=pe[e+(u+24)>>2]|0;n=pe[e+(u+12)>>2]|0;do{if((n|0)==(l|0)){r=e+(u+20)|0;t=pe[r>>2]|0;if(!t){r=e+(u+16)|0;t=pe[r>>2]|0;if(!t){c=0;break}}while(1){n=t+20|0;i=pe[n>>2]|0;if(i){t=i;r=n;continue}n=t+16|0;i=pe[n>>2]|0;if(!i)break;else{t=i;r=n}}if(r>>>0<s>>>0)Xe();else{pe[r>>2]=0;c=t;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0<s>>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(l|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(l|0)){pe[t>>2]=n;pe[r>>2]=i;c=n;break}else Xe()}}while(0);if(a){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((l|0)==(pe[r>>2]|0)){pe[r>>2]=c;if(!c){pe[152]=pe[152]&~(1<<t);_=l;o=f;break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(l|0))pe[t>>2]=c;else pe[a+20>>2]=c;if(!c){_=l;o=f;break}}r=pe[155]|0;if(c>>>0<r>>>0)Xe();pe[c+24>>2]=a;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[c+16>>2]=t;pe[t+24>>2]=c;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=t;pe[t+24>>2]=c;_=l;o=f;break}else{_=l;o=f}}else{_=l;o=f}}else{_=t;o=d}}while(0);if(_>>>0>=m>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((m|0)==(pe[157]|0)){y=(pe[154]|0)+o|0;pe[154]=y;pe[157]=_;pe[_+4>>2]=y|1;if((_|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){y=(pe[153]|0)+o|0;pe[153]=y;pe[156]=_;pe[_+4>>2]=y|1;pe[_+y>>2]=y;return}o=(r&-8)+o|0;i=r>>>3;do{if(r>>>0>=256){a=pe[e+(d+16)>>2]|0;t=pe[e+(d|4)>>2]|0;do{if((t|0)==(m|0)){r=e+(d+12)|0;t=pe[r>>2]|0;if(!t){r=e+(d+8)|0;t=pe[r>>2]|0;if(!t){p=0;break}}while(1){n=t+20|0;i=pe[n>>2]|0;if(i){t=i;r=n;continue}n=t+16|0;i=pe[n>>2]|0;if(!i)break;else{t=i;r=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=0;p=t;break}}else{r=pe[e+d>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();n=r+12|0;if((pe[n>>2]|0)!=(m|0))Xe();i=t+8|0;if((pe[i>>2]|0)==(m|0)){pe[n>>2]=t;pe[i>>2]=r;p=t;break}else Xe()}}while(0);if(a){t=pe[e+(d+20)>>2]|0;r=908+(t<<2)|0;if((m|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<<t);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(m|0))pe[t>>2]=p;else pe[a+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0<r>>>0)Xe();pe[p+24>>2]=a;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0<r>>>0)Xe();else{pe[p+16>>2]=t;pe[t+24>>2]=p;break}}while(0);t=pe[e+(d+12)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=t;pe[t+24>>2]=p;break}}}else{n=pe[e+d>>2]|0;r=pe[e+(d|4)>>2]|0;t=644+(i<<1<<2)|0;if((n|0)!=(t|0)){if(n>>>0<(pe[155]|0)>>>0)Xe();if((pe[n+12>>2]|0)!=(m|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<<i);break}if((r|0)!=(t|0)){if(r>>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(m|0))h=t;else Xe()}else h=r+8|0;pe[n+12>>2]=r;pe[h>>2]=n}}while(0);pe[_+4>>2]=o|1;pe[_+o>>2]=o;if((_|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[t>>2]=r&-2;pe[_+4>>2]=o|1;pe[_+o>>2]=o}t=o>>>3;if(o>>>0<256){r=t<<1;i=644+(r<<2)|0;n=pe[151]|0;t=1<<t;if(n&t){t=644+(r+2<<2)|0;r=pe[t>>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{g=t;v=r}}else{pe[151]=n|t;g=644+(r+2<<2)|0;v=i}pe[g>>2]=_;pe[v+12>>2]=_;pe[_+8>>2]=v;pe[_+12>>2]=i;return}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{g=(t+1048320|0)>>>16&8;v=t<<g;m=(v+520192|0)>>>16&4;v=v<<m;i=(v+245760|0)>>>16&2;i=14-(m|g|i)+(v<<i>>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[_+28>>2]=i;pe[_+20>>2]=0;pe[_+16>>2]=0;r=pe[152]|0;n=1<<i;e:do{if(r&n){t=pe[t>>2]|0;t:do{if((pe[t+4>>2]&-8|0)!=(o|0)){i=o<<((i|0)==31?0:25-(i>>>1)|0);while(1){r=t+16+(i>>>31<<2)|0;n=pe[r>>2]|0;if(!n)break;if((pe[n+4>>2]&-8|0)==(o|0)){y=n;break t}else{i=i<<1;t=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=_;pe[_+24>>2]=t;pe[_+12>>2]=_;pe[_+8>>2]=_;break e}}else y=t}while(0);t=y+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&y>>>0>=v>>>0){pe[r+12>>2]=_;pe[t>>2]=_;pe[_+8>>2]=r;pe[_+12>>2]=y;pe[_+24>>2]=0;break}else Xe()}else{pe[152]=r|n;pe[t>>2]=_;pe[_+24>>2]=t;pe[_+12>>2]=_;pe[_+8>>2]=_}}while(0);_=(pe[159]|0)+-1|0;pe[159]=_;if(!_)t=1060;else return;while(1){t=pe[t>>2]|0;if(!t)break;else t=t+8|0}pe[159]=-1;return}function Xr(e,t){e=e|0;t=t|0;var r=0,n=0;if(!e){e=zr(t)|0;return e|0}if(t>>>0>4294967231){e=lr()|0;pe[e>>2]=12;e=0;return e|0}r=Hr(e+-8|0,t>>>0<11?16:t+11&-8)|0;if(r){e=r+8|0;return e|0}r=zr(t)|0;if(!r){e=0;return e|0}n=pe[e+-4>>2]|0;n=(n&-8)-((n&3|0)==0?8:4)|0;Qr(r|0,e|0,(n>>>0<t>>>0?n:t)|0)|0;Ur(e);e=r;return e|0}function qr(e){e=e|0;var t=0;if(!e){t=0;return t|0}e=pe[e+-4>>2]|0;t=e&3;if((t|0)==1){t=0;return t|0}t=(e&-8)-((t|0)==0?8:4)|0;return t|0}function Hr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;l=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0<l>>>0))Xe();n=e+(u|4)|0;i=pe[n>>2]|0;if(!(i&1))Xe();if(!r){if(t>>>0<256){e=0;return e|0}if(u>>>0>=(t+4|0)>>>0?(u-t|0)>>>0<=pe[271]<<1>>>0:0)return e|0;e=0;return e|0}if(u>>>0>=t>>>0){r=u-t|0;if(r>>>0<=15)return e|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|3;pe[n>>2]=pe[n>>2]|1;Yr(e+t|0,r);return e|0}if((l|0)==(pe[157]|0)){r=(pe[154]|0)+u|0;if(r>>>0<=t>>>0){e=0;return e|0}h=r-t|0;pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=h|1;pe[157]=e+t;pe[154]=h;return e|0}if((l|0)==(pe[156]|0)){n=(pe[153]|0)+u|0;if(n>>>0<t>>>0){e=0;return e|0}r=n-t|0;if(r>>>0>15){pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=r|1;pe[e+n>>2]=r;n=e+(n+4)|0;pe[n>>2]=pe[n>>2]&-2;n=e+t|0}else{pe[d>>2]=p&1|n|2;n=e+(n+4)|0;pe[n>>2]=pe[n>>2]|1;n=0;r=0}pe[153]=r;pe[156]=n;return e|0}if(i&2){e=0;return e|0}f=(i&-8)+u|0;if(f>>>0<t>>>0){e=0;return e|0}h=f-t|0;o=i>>>3;do{if(i>>>0>=256){a=pe[e+(u+24)>>2]|0;o=pe[e+(u+12)>>2]|0;do{if((o|0)==(l|0)){n=e+(u+20)|0;r=pe[n>>2]|0;if(!r){n=e+(u+16)|0;r=pe[n>>2]|0;if(!r){c=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<s>>>0)Xe();else{pe[n>>2]=0;c=r;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0<s>>>0)Xe();r=i+12|0;if((pe[r>>2]|0)!=(l|0))Xe();n=o+8|0;if((pe[n>>2]|0)==(l|0)){pe[r>>2]=o;pe[n>>2]=i;c=o;break}else Xe()}}while(0);if(a){r=pe[e+(u+28)>>2]|0;n=908+(r<<2)|0;if((l|0)==(pe[n>>2]|0)){pe[n>>2]=c;if(!c){pe[152]=pe[152]&~(1<<r);break}}else{if(a>>>0<(pe[155]|0)>>>0)Xe();r=a+16|0;if((pe[r>>2]|0)==(l|0))pe[r>>2]=c;else pe[a+20>>2]=c;if(!c)break}n=pe[155]|0;if(c>>>0<n>>>0)Xe();pe[c+24>>2]=a;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0<n>>>0)Xe();else{pe[c+16>>2]=r;pe[r+24>>2]=c;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;break}}}else{i=pe[e+(u+8)>>2]|0;n=pe[e+(u+12)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<s>>>0)Xe();if((pe[i+12>>2]|0)!=(l|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);break}if((n|0)!=(r|0)){if(n>>>0<s>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(l|0))a=r;else Xe()}else a=n+8|0;pe[i+12>>2]=n;pe[a>>2]=i}}while(0);if(h>>>0<16){pe[d>>2]=f|p&1|2;t=e+(f|4)|0;pe[t>>2]=pe[t>>2]|1;return e|0}else{pe[d>>2]=p&1|t|2;pe[e+(t+4)>>2]=h|3;p=e+(f|4)|0;pe[p>>2]=pe[p>>2]|1;Yr(e+t|0,h);return e|0}return 0}function Yr(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0,m=0,g=0,v=0,y=0;m=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){c=pe[e>>2]|0;if(!(r&3))return;h=e+(0-c)|0;f=c+t|0;u=pe[155]|0;if(h>>>0<u>>>0)Xe();if((h|0)==(pe[156]|0)){n=e+(t+4)|0;r=pe[n>>2]|0;if((r&3|0)!=3){y=h;a=f;break}pe[153]=f;pe[n>>2]=r&-2;pe[e+(4-c)>>2]=f|1;pe[m>>2]=f;return}o=c>>>3;if(c>>>0<256){i=pe[e+(8-c)>>2]|0;n=pe[e+(12-c)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();if((pe[i+12>>2]|0)!=(h|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);y=h;a=f;break}if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(h|0))s=r;else Xe()}else s=n+8|0;pe[i+12>>2]=n;pe[s>>2]=i;y=h;a=f;break}s=pe[e+(24-c)>>2]|0;i=pe[e+(12-c)>>2]|0;do{if((i|0)==(h|0)){i=16-c|0;n=e+(i+4)|0;r=pe[n>>2]|0;if(!r){n=e+i|0;r=pe[n>>2]|0;if(!r){l=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<u>>>0)Xe();else{pe[n>>2]=0;l=r;break}}else{o=pe[e+(8-c)>>2]|0;if(o>>>0<u>>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(h|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(h|0)){pe[r>>2]=i;pe[n>>2]=o;l=i;break}else Xe()}}while(0);if(s){r=pe[e+(28-c)>>2]|0;n=908+(r<<2)|0;if((h|0)==(pe[n>>2]|0)){pe[n>>2]=l;if(!l){pe[152]=pe[152]&~(1<<r);y=h;a=f;break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(h|0))pe[r>>2]=l;else pe[s+20>>2]=l;if(!l){y=h;a=f;break}}i=pe[155]|0;if(l>>>0<i>>>0)Xe();pe[l+24>>2]=s;r=16-c|0;n=pe[e+r>>2]|0;do{if(n)if(n>>>0<i>>>0)Xe();else{pe[l+16>>2]=n;pe[n+24>>2]=l;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;y=h;a=f;break}else{y=h;a=f}}else{y=h;a=f}}else{y=e;a=t}}while(0);u=pe[155]|0;if(m>>>0<u>>>0)Xe();r=e+(t+4)|0;n=pe[r>>2]|0;if(!(n&2)){if((m|0)==(pe[157]|0)){v=(pe[154]|0)+a|0;pe[154]=v;pe[157]=y;pe[y+4>>2]=v|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((m|0)==(pe[156]|0)){v=(pe[153]|0)+a|0;pe[153]=v;pe[156]=y;pe[y+4>>2]=v|1;pe[y+v>>2]=v;return}a=(n&-8)+a|0;o=n>>>3;do{if(n>>>0>=256){s=pe[e+(t+24)>>2]|0;i=pe[e+(t+12)>>2]|0;do{if((i|0)==(m|0)){n=e+(t+20)|0;r=pe[n>>2]|0;if(!r){n=e+(t+16)|0;r=pe[n>>2]|0;if(!r){p=0;break}}while(1){i=r+20|0;o=pe[i>>2]|0;if(o){r=o;n=i;continue}i=r+16|0;o=pe[i>>2]|0;if(!o)break;else{r=o;n=i}}if(n>>>0<u>>>0)Xe();else{pe[n>>2]=0;p=r;break}}else{o=pe[e+(t+8)>>2]|0;if(o>>>0<u>>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(m|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(m|0)){pe[r>>2]=i;pe[n>>2]=o;p=i;break}else Xe()}}while(0);if(s){r=pe[e+(t+28)>>2]|0;n=908+(r<<2)|0;if((m|0)==(pe[n>>2]|0)){pe[n>>2]=p;if(!p){pe[152]=pe[152]&~(1<<r);break}}else{if(s>>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(m|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}n=pe[155]|0;if(p>>>0<n>>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0<n>>>0)Xe();else{pe[p+16>>2]=r;pe[r+24>>2]=p;break}}while(0);r=pe[e+(t+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[p+20>>2]=r;pe[r+24>>2]=p;break}}}else{i=pe[e+(t+8)>>2]|0;n=pe[e+(t+12)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0<u>>>0)Xe();if((pe[i+12>>2]|0)!=(m|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<<o);break}if((n|0)!=(r|0)){if(n>>>0<u>>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(m|0))d=r;else Xe()}else d=n+8|0;pe[i+12>>2]=n;pe[d>>2]=i}}while(0);pe[y+4>>2]=a|1;pe[y+a>>2]=a;if((y|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[r>>2]=n&-2;pe[y+4>>2]=a|1;pe[y+a>>2]=a}r=a>>>3;if(a>>>0<256){n=r<<1;o=644+(n<<2)|0;i=pe[151]|0;r=1<<r;if(i&r){r=644+(n+2<<2)|0;n=pe[r>>2]|0;if(n>>>0<(pe[155]|0)>>>0)Xe();else{g=r;v=n}}else{pe[151]=i|r;g=644+(n+2<<2)|0;v=o}pe[g>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=o;return}r=a>>>8;if(r)if(a>>>0>16777215)o=31;else{g=(r+1048320|0)>>>16&8;v=r<<g;m=(v+520192|0)>>>16&4;v=v<<m;o=(v+245760|0)>>>16&2;o=14-(m|g|o)+(v<<o>>>15)|0;o=a>>>(o+7|0)&1|o<<1}else o=0;r=908+(o<<2)|0;pe[y+28>>2]=o;pe[y+20>>2]=0;pe[y+16>>2]=0;n=pe[152]|0;i=1<<o;if(!(n&i)){pe[152]=n|i;pe[r>>2]=y;pe[y+24>>2]=r;pe[y+12>>2]=y;pe[y+8>>2]=y;return}r=pe[r>>2]|0;e:do{if((pe[r+4>>2]&-8|0)!=(a|0)){o=a<<((o|0)==31?0:25-(o>>>1)|0);while(1){n=r+16+(o>>>31<<2)|0;i=pe[n>>2]|0;if(!i)break;if((pe[i+4>>2]&-8|0)==(a|0)){r=i;break e}else{o=o<<1;r=i}}if(n>>>0<(pe[155]|0)>>>0)Xe();pe[n>>2]=y;pe[y+24>>2]=r;pe[y+12>>2]=y;pe[y+8>>2]=y;return}}while(0);n=r+8|0;i=pe[n>>2]|0;v=pe[155]|0;if(!(i>>>0>=v>>>0&r>>>0>=v>>>0))Xe();pe[i+12>>2]=y;pe[n>>2]=y;pe[y+8>>2]=i;pe[y+12>>2]=r;pe[y+24>>2]=0;return}function Gr(){}function Wr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;n=t-n-(r>>>0>e>>>0|0)>>>0;return(re=n,e-r>>>0|0)|0}function Vr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0,i=0,o=0,a=0;n=e+r|0;if((r|0)>=20){t=t&255;o=e&3;a=t|t<<8|t<<16|t<<24;i=n&~3;if(o){o=e+4-o|0;while((e|0)<(o|0)){de[e>>0]=t;e=e+1|0}}while((e|0)<(i|0)){pe[e>>2]=a;e=e+4|0}}while((e|0)<(n|0)){de[e>>0]=t;e=e+1|0}return e-r|0}function Kr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=0;return t>>>r-32|0}function Jr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<<r|(e&(1<<r)-1<<32-r)>>>32-r;return e<<r}re=e<<r-32;return 0}function Zr(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;r=e+r>>>0;return(re=t+n+(r>>>0<e>>>0|0)>>>0,r|0)|0}function Qr(e,t,r){e=e|0;t=t|0;r=r|0;var n=0;if((r|0)>=4096)return Re(e|0,t|0,r|0)|0;n=e|0;if((e&3)==(t&3)){while(e&3){if(!r)return n|0;de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}while((r|0)>=4){pe[e>>2]=pe[t>>2];e=e+4|0;t=t+4|0;r=r-4|0}}while((r|0)>0){de[e>>0]=de[t>>0]|0;e=e+1|0;t=t+1|0;r=r-1|0}return n|0}function $r(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t>>r;return e>>>r|(t&(1<<r)-1)<<32-r}re=(t|0)<0?-1:0;return t>>r-32|0}function en(e){e=e|0;var t=0;t=de[g+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[g+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[g+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[g+(e>>>24)>>0]|0)+24|0}function tn(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0;o=e&65535;i=t&65535;r=ye(i,o)|0;n=e>>>16;e=(r>>>16)+(ye(i,n)|0)|0;i=t>>>16;t=ye(i,o)|0;return(re=(e>>>16)+(ye(i,n)|0)+(((e&65535)+t|0)>>>16)|0,e+t<<16|r&65535|0)|0}function rn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;c=t>>31|((t|0)<0?-1:0)<<1;u=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;o=n>>31|((n|0)<0?-1:0)<<1;i=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;s=Wr(c^e,u^t,c,u)|0;a=re;e=o^c;t=i^u;return Wr((un(s,a,Wr(o^r,i^n,o,i)|0,re,0)|0)^e,re^t,e,t)|0}function nn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0,a=0,s=0,u=0,c=0;i=ve;ve=ve+16|0;s=i|0;a=t>>31|((t|0)<0?-1:0)<<1;o=((t|0)<0?-1:0)>>31|((t|0)<0?-1:0)<<1;c=n>>31|((n|0)<0?-1:0)<<1;u=((n|0)<0?-1:0)>>31|((n|0)<0?-1:0)<<1;e=Wr(a^e,o^t,a,o)|0;t=re;un(e,t,Wr(c^r,u^n,c,u)|0,re,s)|0;n=Wr(pe[s>>2]^a,pe[s+4>>2]^o,a,o)|0;r=re;ve=i;return(re=r,n)|0}function on(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;i=e;o=r;r=tn(i,o)|0;e=re;return(re=(ye(t,o)|0)+(ye(n,i)|0)+e|e&0,r|0|0)|0}function an(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return un(e,t,r,n,0)|0}function sn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;var i=0,o=0;o=ve;ve=ve+16|0;i=o|0;un(e,t,r,n,i)|0;ve=o;return(re=pe[i+4>>2]|0,pe[i>>2]|0)|0}function un(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;var o=0,a=0,s=0,u=0,c=0,l=0,f=0,h=0,d=0,p=0;l=e;u=t;c=u;a=r;h=n;s=h;if(!c){o=(i|0)!=0;if(!s){if(o){pe[i>>2]=(l>>>0)%(a>>>0);pe[i+4>>2]=0}h=0;i=(l>>>0)/(a>>>0)>>>0;return(re=h,i)|0}else{if(!o){h=0;i=0;return(re=h,i)|0}pe[i>>2]=e|0;pe[i+4>>2]=t&0;h=0;i=0;return(re=h,i)|0}}o=(s|0)==0;do{if(a){if(!o){o=(ae(s|0)|0)-(ae(c|0)|0)|0;if(o>>>0<=31){f=o+1|0;s=31-o|0;t=o-31>>31;a=f;e=l>>>(f>>>0)&t|c<<s;t=c>>>(f>>>0)&t;o=0;s=l<<s;break}if(!i){h=0;i=0;return(re=h,i)|0}pe[i>>2]=e|0;pe[i+4>>2]=u|t&0;h=0;i=0;return(re=h,i)|0}o=a-1|0;if(o&a){s=(ae(a|0)|0)+33-(ae(c|0)|0)|0;p=64-s|0;f=32-s|0;u=f>>31;d=s-32|0;t=d>>31;a=s;e=f-1>>31&c>>>(d>>>0)|(c<<f|l>>>(s>>>0))&t;t=t&c>>>(s>>>0);o=l<<p&u;s=(c<<p|l>>>(d>>>0))&u|l<<f&s-33>>31;break}if(i){pe[i>>2]=o&l;pe[i+4>>2]=0}if((a|0)==1){d=u|t&0;p=e|0|0;return(re=d,p)|0}else{p=en(a|0)|0;d=c>>>(p>>>0)|0;p=c<<32-p|l>>>(p>>>0)|0;return(re=d,p)|0}}else{if(o){if(i){pe[i>>2]=(c>>>0)%(a>>>0);pe[i+4>>2]=0}d=0;p=(c>>>0)/(a>>>0)>>>0;return(re=d,p)|0}if(!l){if(i){pe[i>>2]=0;pe[i+4>>2]=(c>>>0)%(s>>>0)}d=0;p=(c>>>0)/(s>>>0)>>>0;return(re=d,p)|0}o=s-1|0;if(!(o&s)){if(i){pe[i>>2]=e|0;pe[i+4>>2]=o&c|t&0}d=0;p=c>>>((en(s|0)|0)>>>0);return(re=d,p)|0}o=(ae(s|0)|0)-(ae(c|0)|0)|0;if(o>>>0<=30){t=o+1|0;s=31-o|0;a=t;e=c<<s|l>>>(t>>>0);t=c>>>(t>>>0);o=0;s=l<<s;break}if(!i){d=0;p=0;return(re=d,p)|0}pe[i>>2]=e|0;pe[i+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!a){c=s;u=0;s=0}else{f=r|0|0;l=h|n&0;c=Zr(f|0,l|0,-1,-1)|0;r=re;u=s;s=0;do{n=u;u=o>>>31|u<<1;o=s|o<<1;n=e<<1|n>>>31|0;h=e>>>31|t<<1|0;Wr(c,r,n,h)|0;p=re;d=p>>31|((p|0)<0?-1:0)<<1;s=d&1;e=Wr(n,h,d&f,(((p|0)<0?-1:0)>>31|((p|0)<0?-1:0)<<1)&l)|0;t=re;a=a-1|0}while((a|0)!=0);c=u;u=0}a=0;if(i){pe[i>>2]=e;pe[i+4>>2]=t}d=(o|0)>>>31|(c|a)<<1|(a<<1|o>>>31)&0|u;p=(o<<1|0>>>31)&-2|s;return(re=d,p)|0}function cn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return En[e&7](t|0,r|0,n|0)|0}function ln(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;Cn[e&3](t|0,r|0,n|0,i|0,o|0)}function fn(e,t){e=e|0;t=t|0;kn[e&7](t|0)}function hn(e,t){e=e|0;t=t|0;return An[e&1](t|0)|0}function dn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;On[e&0](t|0,r|0,n|0)}function pn(e){e=e|0;Rn[e&3]()}function mn(e,t,r,n,i,o,a){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;a=a|0;In[e&3](t|0,r|0,n|0,i|0,o|0,a|0)}function gn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;return Dn[e&1](t|0,r|0,n|0,i|0,o|0)|0}function vn(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;Ln[e&3](t|0,r|0,n|0,i|0)}function yn(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function _n(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;se(1)}function bn(e){e=e|0;se(2)}function xn(e){e=e|0;se(3);return 0}function wn(e,t,r){e=e|0;t=t|0;r=r|0;se(4)}function Tn(){se(5)}function Sn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;se(6)}function Mn(e,t,r,n,i){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;se(7);return 0}function Pn(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;se(8)}var En=[yn,Vt,Nr,kr,Cr,Ar,yn,yn];var Cn=[_n,tr,er,_n];var kn=[bn,qt,Gt,Ht,Yt,Wt,ur,Lr];var An=[xn,Er];var On=[wn];var Rn=[Tn,ar,sr,Tn];var In=[Sn,nr,rr,Sn];var Dn=[Mn,ut];var Ln=[Pn,Jt,Zt,Pn];return{___cxa_can_catch:ir,_crn_get_levels:Tt,_crn_get_uncompressed_size:Mt,_crn_decompress:Pt,_i64Add:Zr,_crn_get_width:xt,___cxa_is_pointer_type:or,_i64Subtract:Wr,_memset:Vr,_malloc:zr,_free:Ur,_memcpy:Qr,_bitshift64Lshr:Kr,_fflush:gr,_bitshift64Shl:Jr,_crn_get_height:wt,___errno_location:lr,_crn_get_dxt_format:St,runPostSets:Gr,_emscripten_replace_memory:Ve,stackAlloc:Ke,stackSave:Je,stackRestore:Ze,establishStackSpace:Qe,setThrew:$e,setTempRet0:rt,getTempRet0:nt,dynCall_iiii:cn,dynCall_viiiii:ln,dynCall_vi:fn,dynCall_ii:hn,dynCall_viii:dn,dynCall_v:pn,dynCall_viiiiii:mn,dynCall_iiiiii:gn,dynCall_viiii:vn}}(e.Ya,e.Za,buffer);e.___cxa_can_catch=Z.___cxa_can_catch,e._crn_get_levels=Z._crn_get_levels,e.runPostSets=Z.runPostSets,e._crn_get_uncompressed_size=Z._crn_get_uncompressed_size,e._crn_decompress=Z._crn_decompress;var zc=e._i64Add=Z._i64Add;e._crn_get_height=Z._crn_get_height,e.___cxa_is_pointer_type=Z.___cxa_is_pointer_type;var nb=e._i64Subtract=Z._i64Subtract,qb=e._memset=Z._memset,Ea=e._malloc=Z._malloc,Bc=e._memcpy=Z._memcpy,Xa=e._emscripten_replace_memory=Z._emscripten_replace_memory;e._crn_get_dxt_format=Z._crn_get_dxt_format;var rb=e._bitshift64Lshr=Z._bitshift64Lshr,Na=e._free=Z._free;e._fflush=Z._fflush,e._crn_get_width=Z._crn_get_width,e.___errno_location=Z.___errno_location;var sb=e._bitshift64Shl=Z._bitshift64Shl;function ia(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}e.dynCall_iiii=Z.dynCall_iiii,e.dynCall_viiiii=Z.dynCall_viiiii,e.dynCall_vi=Z.dynCall_vi,e.dynCall_ii=Z.dynCall_ii,e.dynCall_viii=Z.dynCall_viii,e.dynCall_v=Z.dynCall_v,e.dynCall_viiiiii=Z.dynCall_viiiiii,e.dynCall_iiiiii=Z.dynCall_iiiiii,e.dynCall_viiii=Z.dynCall_viiii,n.aa=Z.stackAlloc,n.ua=Z.stackSave,n.ba=Z.stackRestore,n.Cd=Z.establishStackSpace,n.rb=Z.setTempRet0,n.fb=Z.getTempRet0,ia.prototype=Error(),ia.prototype.constructor=ia;var rd=null,jb=function t(){e.calledRun||td(),e.calledRun||(jb=t)};function td(t){function r(){if(!e.calledRun&&(e.calledRun=!0,!na)){if(Ha||(Ha=!0,ab(cb)),ab(db),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e._main&&vd&&e.callMain(t),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;)gb(e.postRun.shift());ab(eb)}}if(t=t||e.arguments,null===rd&&(rd=Date.now()),!(0<I)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)fb(e.preRun.shift());ab(bb),0<I||e.calledRun||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),r()},1)):r())}}function ud(t,r){if(!r||!e.noExitRuntime)throw!e.noExitRuntime&&(na=!0,m=void 0,ab(H),e.onExit)&&e.onExit(t),da?(process.stdout.once("drain",function(){process.exit(t)}),console.log(" "),setTimeout(function(){process.exit(t)},500)):ea&&"function"==typeof quit&&quit(t),new ia(t)}e.callMain=e.zd=function(t){function r(){for(var e=0;e<3;e++)i.push(0)}assert(0==I,"cannot call main when async dependencies remain! (listen on __ATMAIN__)"),assert(0==bb.length,"cannot call main when preRun functions remain to be called"),t=t||[],Ha||(Ha=!0,ab(cb));var n=t.length+1,i=[D(hb(e.thisProgram),"i8",0)];r();for(var o=0;o<n-1;o+=1)i.push(D(hb(t[o]),"i8",0)),r();i.push(0),i=D(i,"i32",0);try{ud(e._main(n,i,0),!0)}catch(t){if(!(t instanceof ia)){if("SimulateInfiniteLoop"!=t)throw t&&"object"==typeof t&&t.stack&&e.W("exception thrown: "+[t,t.stack]),t;e.noExitRuntime=!0}}},e.run=e.run=td,e.exit=e.exit=ud;var wd=[];function x(t){t=void 0!==t?(e.print(t),e.W(t),JSON.stringify(t)):"",na=!0;var r="abort("+t+") at "+Oa()+"\nIf this abort() is unexpected, build with -s ASSERTIONS=1 which can give more information.";throw wd&&wd.forEach(function(e){r=e(r,t)}),r}if(e.abort=e.abort=x,e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();var vd=!0;e.noInitialRun&&(vd=!1),td(),window.Module=e}).call(this,require("_process"),require("buffer").Buffer,"/lib")},{_process:123,buffer:49,crypto:58,fs:47,path:116}],2:[function(e,t,r){var n=r;n.bignum=e("bn.js"),n.define=e("./asn1/api").define,n.base=e("./asn1/base"),n.constants=e("./asn1/constants"),n.decoders=e("./asn1/decoders"),n.encoders=e("./asn1/encoders")},{"./asn1/api":3,"./asn1/base":5,"./asn1/constants":9,"./asn1/decoders":11,"./asn1/encoders":14,"bn.js":17}],3:[function(e,t,r){var n=e("../asn1"),i=e("inherits");function o(e,t){this.name=e,this.body=t,this.decoders={},this.encoders={}}r.define=function(e,t){return new o(e,t)},o.prototype._createNamed=function(t){var r;try{r=e("vm").runInThisContext("(function "+this.name+"(entity) {\n this._initNamed(entity);\n})")}catch(e){r=function(e){this._initNamed(e)}}return i(r,t),r.prototype._initNamed=function(e){t.call(this,e)},new r(this)},o.prototype._getDecoder=function(e){return e=e||"der",this.decoders.hasOwnProperty(e)||(this.decoders[e]=this._createNamed(n.decoders[e])),this.decoders[e]},o.prototype.decode=function(e,t,r){return this._getDecoder(t).decode(e,r)},o.prototype._getEncoder=function(e){return e=e||"der",this.encoders.hasOwnProperty(e)||(this.encoders[e]=this._createNamed(n.encoders[e])),this.encoders[e]},o.prototype.encode=function(e,t,r){return this._getEncoder(t).encode(e,r)}},{"../asn1":2,inherits:103,vm:155}],4:[function(e,t,r){var n=e("inherits"),i=e("../base").Reporter,o=e("buffer").Buffer;function a(e,t){i.call(this,t),o.isBuffer(e)?(this.base=e,this.offset=0,this.length=e.length):this.error("Input not Buffer")}function s(e,t){if(Array.isArray(e))this.length=0,this.value=e.map(function(e){return e instanceof s||(e=new s(e,t)),this.length+=e.length,e},this);else if("number"==typeof e){if(!(0<=e&&e<=255))return t.error("non-byte EncoderBuffer value");this.value=e,this.length=1}else if("string"==typeof e)this.value=e,this.length=o.byteLength(e);else{if(!o.isBuffer(e))return t.error("Unsupported type: "+typeof e);this.value=e,this.length=e.length}}n(a,i),(r.DecoderBuffer=a).prototype.save=function(){return{offset:this.offset,reporter:i.prototype.save.call(this)}},a.prototype.restore=function(e){var t=new a(this.base);return t.offset=e.offset,t.length=this.offset,this.offset=e.offset,i.prototype.restore.call(this,e.reporter),t},a.prototype.isEmpty=function(){return this.offset===this.length},a.prototype.readUInt8=function(e){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(e||"DecoderBuffer overrun")},a.prototype.skip=function(e,t){if(!(this.offset+e<=this.length))return this.error(t||"DecoderBuffer overrun");var r=new a(this.base);return r._reporterState=this._reporterState,r.offset=this.offset,r.length=this.offset+e,this.offset+=e,r},a.prototype.raw=function(e){return this.base.slice(e?e.offset:this.offset,this.length)},(r.EncoderBuffer=s).prototype.join=function(t,r){return t||(t=new o(this.length)),r||(r=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(e){e.join(t,r),r+=e.length}):("number"==typeof this.value?t[r]=this.value:"string"==typeof this.value?t.write(this.value,r):o.isBuffer(this.value)&&this.value.copy(t,r),r+=this.length)),t}},{"../base":5,buffer:49,inherits:103}],5:[function(e,t,r){var n=r;n.Reporter=e("./reporter").Reporter,n.DecoderBuffer=e("./buffer").DecoderBuffer,n.EncoderBuffer=e("./buffer").EncoderBuffer,n.Node=e("./node")},{"./buffer":4,"./node":6,"./reporter":7}],6:[function(e,t,r){var l=e("../base").Reporter,n=e("../base").EncoderBuffer,d=e("../base").DecoderBuffer,i=e("minimalistic-assert"),o=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],a=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(o);function s(e,t){var r={};(this._baseState=r).enc=e,r.parent=t||null,r.children=null,r.tag=null,r.args=null,r.reverseArgs=null,r.choice=null,r.optional=!1,r.any=!1,r.obj=!1,r.use=null,r.useDecoder=null,r.key=null,r.default=null,r.explicit=null,r.implicit=null,r.contains=null,r.parent||(r.children=[],this._wrap())}t.exports=s;var u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];s.prototype.clone=function(){var t=this._baseState,r={};u.forEach(function(e){r[e]=t[e]});var e=new this.constructor(r.parent);return e._baseState=r,e},s.prototype._wrap=function(){var r=this._baseState;a.forEach(function(t){this[t]=function(){var e=new this.constructor(this);return r.children.push(e),e[t].apply(e,arguments)}},this)},s.prototype._init=function(e){var t=this._baseState;i(null===t.parent),e.call(this),t.children=t.children.filter(function(e){return e._baseState.parent===this},this),i.equal(t.children.length,1,"Root node can have only one child")},s.prototype._useArgs=function(e){var t=this._baseState,r=e.filter(function(e){return e instanceof this.constructor},this);e=e.filter(function(e){return!(e instanceof this.constructor)},this),0!==r.length&&(i(null===t.children),(t.children=r).forEach(function(e){e._baseState.parent=this},this)),0!==e.length&&(i(null===t.args),t.args=e,t.reverseArgs=e.map(function(r){if("object"!=typeof r||r.constructor!==Object)return r;var n={};return Object.keys(r).forEach(function(e){e==(0|e)&&(e|=0);var t=r[e];n[t]=e}),n}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(t){s.prototype[t]=function(){var e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}}),o.forEach(function(r){s.prototype[r]=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return i(null===e.tag),e.tag=r,this._useArgs(t),this}}),s.prototype.use=function(e){i(e);var t=this._baseState;return i(null===t.use),t.use=e,this},s.prototype.optional=function(){return this._baseState.optional=!0,this},s.prototype.def=function(e){var t=this._baseState;return i(null===t.default),t.default=e,t.optional=!0,this},s.prototype.explicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.explicit=e,this},s.prototype.implicit=function(e){var t=this._baseState;return i(null===t.explicit&&null===t.implicit),t.implicit=e,this},s.prototype.obj=function(){var e=this._baseState,t=Array.prototype.slice.call(arguments);return e.obj=!0,0!==t.length&&this._useArgs(t),this},s.prototype.key=function(e){var t=this._baseState;return i(null===t.key),t.key=e,this},s.prototype.any=function(){return this._baseState.any=!0,this},s.prototype.choice=function(t){var e=this._baseState;return i(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map(function(e){return t[e]})),this},s.prototype.contains=function(e){var t=this._baseState;return i(null===t.use),t.contains=e,this},s.prototype._decode=function(t,r){var e=this._baseState;if(null===e.parent)return t.wrapResult(e.children[0]._decode(t,r));var n,i=e.default,o=!0,a=null;if(null!==e.key&&(a=t.enterKey(e.key)),e.optional){var s=null;if(null!==e.explicit?s=e.explicit:null!==e.implicit?s=e.implicit:null!==e.tag&&(s=e.tag),null!==s||e.any){if(o=this._peekTag(t,s,e.any),t.isError(o))return o}else{var u=t.save();try{null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),o=!0}catch(e){o=!1}t.restore(u)}}if(e.obj&&o&&(n=t.enterObject()),o){if(null!==e.explicit){var c=this._decodeTag(t,e.explicit);if(t.isError(c))return c;t=c}var l=t.offset;if(null===e.use&&null===e.choice){if(e.any)u=t.save();var f=this._decodeTag(t,null!==e.implicit?e.implicit:e.tag,e.any);if(t.isError(f))return f;e.any?i=t.raw(u):t=f}if(r&&r.track&&null!==e.tag&&r.track(t.path(),l,t.length,"tagged"),r&&r.track&&null!==e.tag&&r.track(t.path(),t.offset,t.length,"content"),i=e.any?i:null===e.choice?this._decodeGeneric(e.tag,t,r):this._decodeChoice(t,r),t.isError(i))return i;if(e.any||null!==e.choice||null===e.children||e.children.forEach(function(e){e._decode(t,r)}),e.contains&&("octstr"===e.tag||"bitstr"===e.tag)){var h=new d(i);i=this._getUse(e.contains,t._reporterState.obj)._decode(h,r)}}return e.obj&&o&&(i=t.leaveObject(n)),null===e.key||null===i&&!0!==o?null!==a&&t.exitKey(a):t.leaveKey(a,e.key,i),i},s.prototype._decodeGeneric=function(e,t,r){var n=this._baseState;return"seq"===e||"set"===e?null:"seqof"===e||"setof"===e?this._decodeList(t,e,n.args[0],r):/str$/.test(e)?this._decodeStr(t,e,r):"objid"===e&&n.args?this._decodeObjid(t,n.args[0],n.args[1],r):"objid"===e?this._decodeObjid(t,null,null,r):"gentime"===e||"utctime"===e?this._decodeTime(t,e,r):"null_"===e?this._decodeNull(t,r):"bool"===e?this._decodeBool(t,r):"objDesc"===e?this._decodeStr(t,e,r):"int"===e||"enum"===e?this._decodeInt(t,n.args&&n.args[0],r):null!==n.use?this._getUse(n.use,t._reporterState.obj)._decode(t,r):t.error("unknown tag: "+e)},s.prototype._getUse=function(e,t){var r=this._baseState;return r.useDecoder=this._use(e,t),i(null===r.useDecoder._baseState.parent),r.useDecoder=r.useDecoder._baseState.children[0],r.implicit!==r.useDecoder._baseState.implicit&&(r.useDecoder=r.useDecoder.clone(),r.useDecoder._baseState.implicit=r.implicit),r.useDecoder},s.prototype._decodeChoice=function(i,o){var a=this._baseState,s=null,u=!1;return Object.keys(a.choice).some(function(e){var t=i.save(),r=a.choice[e];try{var n=r._decode(i,o);if(i.isError(n))return!1;s={type:e,value:n},u=!0}catch(e){return i.restore(t),!1}return!0},this),u?s:i.error("Choice not matched")},s.prototype._createEncoderBuffer=function(e){return new n(e,this.reporter)},s.prototype._encode=function(e,t,r){var n=this._baseState;if(null===n.default||n.default!==e){var i=this._encodeValue(e,t,r);if(void 0!==i&&!this._skipDefault(i,t,r))return i}},s.prototype._encodeValue=function(n,i,e){var t=this._baseState;if(null===t.parent)return t.children[0]._encode(n,i||new l);var r=null;if(this.reporter=i,t.optional&&void 0===n){if(null===t.default)return;n=t.default}var o=null,a=!1;if(t.any)r=this._createEncoderBuffer(n);else if(t.choice)r=this._encodeChoice(n,i);else if(t.contains)o=this._getUse(t.contains,e)._encode(n,i),a=!0;else if(t.children)o=t.children.map(function(e){if("null_"===e._baseState.tag)return e._encode(null,i,n);if(null===e._baseState.key)return i.error("Child should have a key");var t=i.enterKey(e._baseState.key);if("object"!=typeof n)return i.error("Child expected, but input is not object");var r=e._encode(n[e._baseState.key],i,n);return i.leaveKey(t),r},this).filter(function(e){return e}),o=this._createEncoderBuffer(o);else if("seqof"===t.tag||"setof"===t.tag){if(!t.args||1!==t.args.length)return i.error("Too many args for : "+t.tag);if(!Array.isArray(n))return i.error("seqof/setof, but data is not Array");var s=this.clone();s._baseState.implicit=null,o=this._createEncoderBuffer(n.map(function(e){var t=this._baseState;return this._getUse(t.args[0],n)._encode(e,i)},s))}else null!==t.use?r=this._getUse(t.use,e)._encode(n,i):(o=this._encodePrimitive(t.tag,n),a=!0);if(!t.any&&null===t.choice){var u=null!==t.implicit?t.implicit:t.tag,c=null===t.implicit?"universal":"context";null===u?null===t.use&&i.error("Tag could be omitted only for .use()"):null===t.use&&(r=this._encodeComposite(u,a,c,o))}return null!==t.explicit&&(r=this._encodeComposite(t.explicit,!1,"context",r)),r},s.prototype._encodeChoice=function(e,t){var r=this._baseState,n=r.choice[e.type];return n||i(!1,e.type+" not found in "+JSON.stringify(Object.keys(r.choice))),n._encode(e.value,t)},s.prototype._encodePrimitive=function(e,t){var r=this._baseState;if(/str$/.test(e))return this._encodeStr(t,e);if("objid"===e&&r.args)return this._encodeObjid(t,r.reverseArgs[0],r.args[1]);if("objid"===e)return this._encodeObjid(t,null,null);if("gentime"===e||"utctime"===e)return this._encodeTime(t,e);if("null_"===e)return this._encodeNull();if("int"===e||"enum"===e)return this._encodeInt(t,r.args&&r.reverseArgs[0]);if("bool"===e)return this._encodeBool(t);if("objDesc"===e)return this._encodeStr(t,e);throw new Error("Unsupported tag: "+e)},s.prototype._isNumstr=function(e){return/^[0-9 ]*$/.test(e)},s.prototype._isPrintstr=function(e){return/^[A-Za-z0-9 '\(\)\+,\-\.\/:=\?]*$/.test(e)}},{"../base":5,"minimalistic-assert":109}],7:[function(e,t,r){var n=e("inherits");function i(e){this._reporterState={obj:null,path:[],options:e||{},errors:[]}}function o(e,t){this.path=e,this.rethrow(t)}(r.Reporter=i).prototype.isError=function(e){return e instanceof o},i.prototype.save=function(){var e=this._reporterState;return{obj:e.obj,pathLen:e.path.length}},i.prototype.restore=function(e){var t=this._reporterState;t.obj=e.obj,t.path=t.path.slice(0,e.pathLen)},i.prototype.enterKey=function(e){return this._reporterState.path.push(e)},i.prototype.exitKey=function(e){var t=this._reporterState;t.path=t.path.slice(0,e-1)},i.prototype.leaveKey=function(e,t,r){var n=this._reporterState;this.exitKey(e),null!==n.obj&&(n.obj[t]=r)},i.prototype.path=function(){return this._reporterState.path.join("/")},i.prototype.enterObject=function(){var e=this._reporterState,t=e.obj;return e.obj={},t},i.prototype.leaveObject=function(e){var t=this._reporterState,r=t.obj;return t.obj=e,r},i.prototype.error=function(e){var t,r=this._reporterState,n=e instanceof o;if(t=n?e:new o(r.path.map(function(e){return"["+JSON.stringify(e)+"]"}).join(""),e.message||e,e.stack),!r.options.partial)throw t;return n||r.errors.push(t),t},i.prototype.wrapResult=function(e){var t=this._reporterState;return t.options.partial?{result:this.isError(e)?null:e,errors:t.errors}:e},n(o,Error),o.prototype.rethrow=function(e){if(this.message=e+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,o),!this.stack)try{throw new Error(this.message)}catch(e){this.stack=e.stack}return this}},{inherits:103}],8:[function(e,t,r){var n=e("../constants");r.tagClass={0:"universal",1:"application",2:"context",3:"private"},r.tagClassByName=n._reverse(r.tagClass),r.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},r.tagByName=n._reverse(r.tag)},{"../constants":9}],9:[function(e,t,r){var n=r;n._reverse=function(r){var n={};return Object.keys(r).forEach(function(e){(0|e)==e&&(e|=0);var t=r[e];n[t]=e}),n},n.der=e("./der")},{"./der":8}],10:[function(e,t,r){var n=e("inherits"),i=e("../../asn1"),o=i.base,a=i.bignum,s=i.constants.der;function u(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new c,this.tree._init(e.body)}function c(e){o.Node.call(this,"der",e)}function l(e,t){var r=e.readUInt8(t);if(e.isError(r))return r;var n=s.tagClass[r>>6],i=0==(32&r);if(31==(31&r)){var o=r;for(r=0;128==(128&o);){if(o=e.readUInt8(t),e.isError(o))return o;r<<=7,r|=127&o}}else r&=31;return{cls:n,primitive:i,tag:r,tagStr:s.tag[r]}}function f(e,t,r){var n=e.readUInt8(r);if(e.isError(n))return n;if(!t&&128===n)return null;if(0==(128&n))return n;var i=127&n;if(4<i)return e.error("length octect is too long");for(var o=n=0;o<i;o++){n<<=8;var a=e.readUInt8(r);if(e.isError(a))return a;n|=a}return n}(t.exports=u).prototype.decode=function(e,t){return e instanceof o.DecoderBuffer||(e=new o.DecoderBuffer(e,t)),this.tree._decode(e,t)},n(c,o.Node),c.prototype._peekTag=function(e,t,r){if(e.isEmpty())return!1;var n=e.save(),i=l(e,'Failed to peek tag: "'+t+'"');return e.isError(i)?i:(e.restore(n),i.tag===t||i.tagStr===t||i.tagStr+"of"===t||r)},c.prototype._decodeTag=function(e,t,r){var n=l(e,'Failed to decode tag of "'+t+'"');if(e.isError(n))return n;var i=f(e,n.primitive,'Failed to get length of "'+t+'"');if(e.isError(i))return i;if(!r&&n.tag!==t&&n.tagStr!==t&&n.tagStr+"of"!==t)return e.error('Failed to match tag: "'+t+'"');if(n.primitive||null!==i)return e.skip(i,'Failed to match body of: "'+t+'"');var o=e.save(),a=this._skipUntilEnd(e,'Failed to skip indefinite length body: "'+this.tag+'"');return e.isError(a)?a:(i=e.offset-o.offset,e.restore(o),e.skip(i,'Failed to match body of: "'+t+'"'))},c.prototype._skipUntilEnd=function(e,t){for(;;){var r=l(e,t);if(e.isError(r))return r;var n,i=f(e,r.primitive,t);if(e.isError(i))return i;if(n=r.primitive||null!==i?e.skip(i):this._skipUntilEnd(e,t),e.isError(n))return n;if("end"===r.tagStr)break}},c.prototype._decodeList=function(e,t,r,n){for(var i=[];!e.isEmpty();){var o=this._peekTag(e,"end");if(e.isError(o))return o;var a=r.decode(e,"der",n);if(e.isError(a)&&o)break;i.push(a)}return i},c.prototype._decodeStr=function(e,t){if("bitstr"===t){var r=e.readUInt8();return e.isError(r)?r:{unused:r,data:e.raw()}}if("bmpstr"===t){var n=e.raw();if(n.length%2==1)return e.error("Decoding of string type: bmpstr length mismatch");for(var i="",o=0;o<n.length/2;o++)i+=String.fromCharCode(n.readUInt16BE(2*o));return i}if("numstr"===t){var a=e.raw().toString("ascii");return this._isNumstr(a)?a:e.error("Decoding of string type: numstr unsupported characters")}if("octstr"===t)return e.raw();if("objDesc"===t)return e.raw();if("printstr"!==t)return/str$/.test(t)?e.raw().toString():e.error("Decoding of string type: "+t+" unsupported");var s=e.raw().toString("ascii");return this._isPrintstr(s)?s:e.error("Decoding of string type: printstr unsupported characters")},c.prototype._decodeObjid=function(e,t,r){for(var n,i=[],o=0;!e.isEmpty();){var a=e.readUInt8();o<<=7,o|=127&a,0==(128&a)&&(i.push(o),o=0)}128&a&&i.push(o);var s=i[0]/40|0,u=i[0]%40;if(n=r?i:[s,u].concat(i.slice(1)),t){var c=t[n.join(" ")];void 0===c&&(c=t[n.join(".")]),void 0!==c&&(n=c)}return n},c.prototype._decodeTime=function(e,t){var r=e.raw().toString();if("gentime"===t)var n=0|r.slice(0,4),i=0|r.slice(4,6),o=0|r.slice(6,8),a=0|r.slice(8,10),s=0|r.slice(10,12),u=0|r.slice(12,14);else{if("utctime"!==t)return e.error("Decoding "+t+" time is not supported yet");n=0|r.slice(0,2),i=0|r.slice(2,4),o=0|r.slice(4,6),a=0|r.slice(6,8),s=0|r.slice(8,10),u=0|r.slice(10,12);n=n<70?2e3+n:1900+n}return Date.UTC(n,i-1,o,a,s,u,0)},c.prototype._decodeNull=function(e){return null},c.prototype._decodeBool=function(e){var t=e.readUInt8();return e.isError(t)?t:0!==t},c.prototype._decodeInt=function(e,t){var r=e.raw(),n=new a(r);return t&&(n=t[n.toString(10)]||n),n},c.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getDecoder("der").tree}},{"../../asn1":2,inherits:103}],11:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":10,"./pem":12}],12:[function(e,t,r){var n=e("inherits"),f=e("buffer").Buffer,h=e("./der");function i(e){h.call(this,e),this.enc="pem"}n(i,h),(t.exports=i).prototype.decode=function(e,t){for(var r=e.toString().split(/[\r\n]+/g),n=t.label.toUpperCase(),i=/^-----(BEGIN|END) ([^-]+)-----$/,o=-1,a=-1,s=0;s<r.length;s++){var u=r[s].match(i);if(null!==u&&u[2]===n){if(-1!==o){if("END"!==u[1])break;a=s;break}if("BEGIN"!==u[1])break;o=s}}if(-1===o||-1===a)throw new Error("PEM section not found for: "+n);var c=r.slice(o+1,a).join("");c.replace(/[^a-z0-9\+\/=]+/gi,"");var l=new f(c,"base64");return h.prototype.decode.call(this,l,t)}},{"./der":10,buffer:49,inherits:103}],13:[function(e,t,r){var n=e("inherits"),c=e("buffer").Buffer,i=e("../../asn1"),o=i.base,l=i.constants.der;function a(e){this.enc="der",this.name=e.name,this.entity=e,this.tree=new s,this.tree._init(e.body)}function s(e){o.Node.call(this,"der",e)}function u(e){return e<10?"0"+e:e}(t.exports=a).prototype.encode=function(e,t){return this.tree._encode(e,t).join()},n(s,o.Node),s.prototype._encodeComposite=function(e,t,r,n){var i,o=function(e,t,r,n){var i;"seqof"===e?e="seq":"setof"===e&&(e="set");if(l.tagByName.hasOwnProperty(e))i=l.tagByName[e];else{if("number"!=typeof e||(0|e)!==e)return n.error("Unknown tag: "+e);i=e}if(31<=i)return n.error("Multi-octet tag encoding unsupported");t||(i|=32);return i|=l.tagClassByName[r||"universal"]<<6}(e,t,r,this.reporter);if(n.length<128)return(i=new c(2))[0]=o,i[1]=n.length,this._createEncoderBuffer([i,n]);for(var a=1,s=n.length;256<=s;s>>=8)a++;(i=new c(2+a))[0]=o,i[1]=128|a;s=1+a;for(var u=n.length;0<u;s--,u>>=8)i[s]=255&u;return this._createEncoderBuffer([i,n])},s.prototype._encodeStr=function(e,t){if("bitstr"===t)return this._createEncoderBuffer([0|e.unused,e.data]);if("bmpstr"!==t)return"numstr"===t?this._isNumstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: numstr supports only digits and space"):"printstr"===t?this._isPrintstr(e)?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: printstr supports only latin upper and lower case letters, digits, space, apostrophe, left and rigth parenthesis, plus sign, comma, hyphen, dot, slash, colon, equal sign, question mark"):/str$/.test(t)?this._createEncoderBuffer(e):"objDesc"===t?this._createEncoderBuffer(e):this.reporter.error("Encoding of string type: "+t+" unsupported");for(var r=new c(2*e.length),n=0;n<e.length;n++)r.writeUInt16BE(e.charCodeAt(n),2*n);return this._createEncoderBuffer(r)},s.prototype._encodeObjid=function(e,t,r){if("string"==typeof e){if(!t)return this.reporter.error("string objid given, but no values map found");if(!t.hasOwnProperty(e))return this.reporter.error("objid not found in values map");e=t[e].split(/[\s\.]+/g);for(var n=0;n<e.length;n++)e[n]|=0}else if(Array.isArray(e)){e=e.slice();for(n=0;n<e.length;n++)e[n]|=0}if(!Array.isArray(e))return this.reporter.error("objid() should be either array or string, got: "+JSON.stringify(e));if(!r){if(40<=e[1])return this.reporter.error("Second objid identifier OOB");e.splice(0,2,40*e[0]+e[1])}var i=0;for(n=0;n<e.length;n++){var o=e[n];for(i++;128<=o;o>>=7)i++}var a=new c(i),s=a.length-1;for(n=e.length-1;0<=n;n--){o=e[n];for(a[s--]=127&o;0<(o>>=7);)a[s--]=128|127&o}return this._createEncoderBuffer(a)},s.prototype._encodeTime=function(e,t){var r,n=new Date(e);return"gentime"===t?r=[u(n.getFullYear()),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):"utctime"===t?r=[u(n.getFullYear()%100),u(n.getUTCMonth()+1),u(n.getUTCDate()),u(n.getUTCHours()),u(n.getUTCMinutes()),u(n.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+t+" time is not supported yet"),this._encodeStr(r,"octstr")},s.prototype._encodeNull=function(){return this._createEncoderBuffer("")},s.prototype._encodeInt=function(e,t){if("string"==typeof e){if(!t)return this.reporter.error("String int or enum given, but no values map");if(!t.hasOwnProperty(e))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(e));e=t[e]}if("number"!=typeof e&&!c.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new c(r)}if(c.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new c(n);return e.copy(i),0===e.length&&(i[0]=0),this._createEncoderBuffer(i)}if(e<128)return this._createEncoderBuffer(e);if(e<256)return this._createEncoderBuffer([0,e]);n=1;for(var o=e;256<=o;o>>=8)n++;for(o=(i=new Array(n)).length-1;0<=o;o--)i[o]=255&e,e>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(new c(i))},s.prototype._encodeBool=function(e){return this._createEncoderBuffer(e?255:0)},s.prototype._use=function(e,t){return"function"==typeof e&&(e=e(t)),e._getEncoder("der").tree},s.prototype._skipDefault=function(e,t,r){var n,i=this._baseState;if(null===i.default)return!1;var o=e.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,t,r).join()),o.length!==i.defaultBuffer.length)return!1;for(n=0;n<o.length;n++)if(o[n]!==i.defaultBuffer[n])return!1;return!0}},{"../../asn1":2,buffer:49,inherits:103}],14:[function(e,t,r){var n=r;n.der=e("./der"),n.pem=e("./pem")},{"./der":13,"./pem":15}],15:[function(e,t,r){var n=e("inherits"),o=e("./der");function i(e){o.call(this,e),this.enc="pem"}n(i,o),(t.exports=i).prototype.encode=function(e,t){for(var r=o.prototype.encode.call(this,e).toString("base64"),n=["-----BEGIN "+t.label+"-----"],i=0;i<r.length;i+=64)n.push(r.slice(i,i+64));return n.push("-----END "+t.label+"-----"),n.join("\n")}},{"./der":13,inherits:103}],16:[function(e,t,r){"use strict";r.byteLength=function(e){return 3*e.length/4-f(e)},r.toByteArray=function(e){var t,r,n,i,o,a=e.length;i=f(e),o=new l(3*a/4-i),r=0<i?a-4:a;var s=0;for(t=0;t<r;t+=4)n=c[e.charCodeAt(t)]<<18|c[e.charCodeAt(t+1)]<<12|c[e.charCodeAt(t+2)]<<6|c[e.charCodeAt(t+3)],o[s++]=n>>16&255,o[s++]=n>>8&255,o[s++]=255&n;2===i?(n=c[e.charCodeAt(t)]<<2|c[e.charCodeAt(t+1)]>>4,o[s++]=255&n):1===i&&(n=c[e.charCodeAt(t)]<<10|c[e.charCodeAt(t+1)]<<4|c[e.charCodeAt(t+2)]>>2,o[s++]=n>>8&255,o[s++]=255&n);return o},r.fromByteArray=function(e){for(var t,r=e.length,n=r%3,i="",o=[],a=0,s=r-n;a<s;a+=16383)o.push(h(e,a,s<a+16383?s:a+16383));1==n?(t=e[r-1],i+=u[t>>2],i+=u[t<<4&63],i+="=="):2==n&&(t=(e[r-2]<<8)+e[r-1],i+=u[t>>10],i+=u[t>>4&63],i+=u[t<<2&63],i+="=");return o.push(i),o.join("")};for(var u=[],c=[],l="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i<o;++i)u[i]=n[i],c[n.charCodeAt(i)]=i;function f(e){var t=e.length;if(0<t%4)throw new Error("Invalid string. Length must be a multiple of 4");return"="===e[t-2]?2:"="===e[t-1]?1:0}function h(e,t,r){for(var n,i,o=[],a=t;a<r;a+=3)n=(e[a]<<16)+(e[a+1]<<8)+e[a+2],o.push(u[(i=n)>>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}c["-".charCodeAt(0)]=62,c["_".charCodeAt(0)]=63},{}],17:[function(T,e,t){!function(e,t){"use strict";function g(e,t){if(!e)throw new Error(t||"Assertion failed")}function r(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function v(e,t,r){if(v.isBN(e))return e;this.negative=0,this.words=null,this.length=0,(this.red=null)!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var n;"object"==typeof e?e.exports=v:t.BN=v,(v.BN=v).wordSize=26;try{n=T("buffer").Buffer}catch(e){}function a(e,t,r){for(var n=0,i=Math.min(e.length,r),o=t;o<i;o++){var a=e.charCodeAt(o)-48;n<<=4,n|=49<=a&&a<=54?a-49+10:17<=a&&a<=22?a-17+10:15&a}return n}function f(e,t,r,n){for(var i=0,o=Math.min(e.length,r),a=t;a<o;a++){var s=e.charCodeAt(a)-48;i*=n,i+=49<=s?s-49+10:17<=s?s-17+10:s}return i}v.isBN=function(e){return e instanceof v||null!==e&&"object"==typeof e&&e.constructor.wordSize===v.wordSize&&Array.isArray(e.words)},v.max=function(e,t){return 0<e.cmp(t)?e:t},v.min=function(e,t){return e.cmp(t)<0?e:t},v.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),g(t===(0|t)&&2<=t&&t<=36);var n=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&n++,16===t?this._parseHex(e,n):this._parseBase(e,t,n),"-"===e[0]&&(this.negative=1),this.strip(),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(g(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},v.prototype._initArray=function(e,t,r){if(g("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var i,o,a=0;if("be"===r)for(n=e.length-1,i=0;0<=n;n-=3)o=e[n]|e[n-1]<<8|e[n-2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);else if("le"===r)for(i=n=0;n<e.length;n+=3)o=e[n]|e[n+1]<<8|e[n+2]<<16,this.words[i]|=o<<a&67108863,this.words[i+1]=o>>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);return this.strip()},v.prototype._parseHex=function(e,t){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var n,i,o=0;for(r=e.length-6,n=0;t<=r;r-=6)i=a(e,r,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303,26<=(o+=24)&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=i<<o&67108863,this.words[n+1]|=i>>>26-o&4194303),this.strip()},v.prototype._parseBase=function(e,t,r){this.words=[0];for(var n=0,i=this.length=1;i<=67108863;i*=t)n++;n--,i=i/t|0;for(var o=e.length-r,a=o%n,s=Math.min(o,o-a)+r,u=0,c=r;c<s;c+=n)u=f(e,c,c+n,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!=a){var l=1;for(u=f(e,c,e.length,t),c=0;c<a;c++)l*=t;this.imuln(l),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}},v.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},v.prototype.clone=function(){var e=new v(null);return this.copy(e),e},v.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},v.prototype.strip=function(){for(;1<this.length&&0===this.words[this.length-1];)this.length--;return this._normSign()},v.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},v.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function i(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;n=(r.length=n)-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,f=67108863&u,h=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=h;d++){var p=c-d|0;l+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[c]=0|f,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r.strip()}v.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var n=0,i=0,o=0;o<this.length;o++){var a=this.words[o],s=(16777215&(a<<n|i)).toString(16);r=0!==(i=a>>>24-n&16777215)||o!==this.length-1?h[6-s.length]+s+r:s+r,26<=(n+=2)&&(n-=26,o--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&2<=e&&e<=36){var u=d[e],c=p[e];r="";var l=this.clone();for(l.negative=0;!l.isZero();){var f=l.modn(c).toString(e);r=(l=l.idivn(c)).isZero()?f+r:h[u-f.length]+f+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}g(!1,"Base should be between 2 and 36")},v.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:2<this.length&&g(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},v.prototype.toJSON=function(){return this.toString(16)},v.prototype.toBuffer=function(e,t){return g(void 0!==n),this.toArrayLike(n,e,t)},v.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},v.prototype.toArrayLike=function(e,t,r){var n=this.byteLength(),i=r||Math.max(1,n);g(n<=i,"byte array longer than desired length"),g(0<i,"Requested array length <= 0"),this.strip();var o,a,s="le"===t,u=new e(i),c=this.clone();if(s){for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[a]=o;for(;a<i;a++)u[a]=0}else{for(a=0;a<i-n;a++)u[a]=0;for(a=0;!c.isZero();a++)o=c.andln(255),c.iushrn(8),u[i-a-1]=o}return u},v.prototype._countBits=Math.clz32?function(e){return 32-Math.clz32(e)}:function(e){var t=e,r=0;return 4096<=t&&(r+=13,t>>>=13),64<=t&&(r+=7,t>>>=7),8<=t&&(r+=4,t>>>=4),2<=t&&(r+=2,t>>>=2),r+t},v.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},v.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},v.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},v.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},v.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},v.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},v.prototype.isNeg=function(){return 0!==this.negative},v.prototype.neg=function(){return this.clone().ineg()},v.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},v.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},v.prototype.ior=function(e){return g(0==(this.negative|e.negative)),this.iuor(e)},v.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},v.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},v.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},v.prototype.iand=function(e){return g(0==(this.negative|e.negative)),this.iuand(e)},v.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},v.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},v.prototype.iuxor=function(e){var t,r;r=this.length>e.length?(t=this,e):(t=e,this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},v.prototype.ixor=function(e){return g(0==(this.negative|e.negative)),this.iuxor(e)},v.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},v.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},v.prototype.inotn=function(e){g("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0<r&&t--;for(var n=0;n<t;n++)this.words[n]=67108863&~this.words[n];return 0<r&&(this.words[n]=~this.words[n]&67108863>>26-r),this.strip()},v.prototype.notn=function(e){return this.clone().inotn(e)},v.prototype.setn=function(e,t){g("number"==typeof e&&0<=e);var r=e/26|0,n=e%26;return this._expand(1+r),this.words[r]=t?this.words[r]|1<<n:this.words[r]&~(1<<n),this.strip()},v.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();n=this.length>e.length?(r=this,e):(r=e,this);for(var i=0,o=0;o<n.length;o++)t=(0|r.words[o])+(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<r.length;o++)t=(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;o<r.length;o++)this.words[o]=r.words[o];return this},v.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},v.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;n=0<i?(r=this,e):(r=e,this);for(var o=0,a=0;a<n.length;a++)o=(t=(0|r.words[a])-(0|n.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<r.length;a++)o=(t=(0|r.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},v.prototype.sub=function(e){return this.clone().isub(e)};var o=function(e,t,r){var n,i,o,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],f=8191&l,h=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,g=0|a[2],v=8191&g,y=g>>>13,_=0|a[3],b=8191&_,x=_>>>13,w=0|a[4],T=8191&w,S=w>>>13,M=0|a[5],P=8191&M,E=M>>>13,C=0|a[6],k=8191&C,A=C>>>13,O=0|a[7],R=8191&O,I=O>>>13,D=0|a[8],L=8191&D,N=D>>>13,j=0|a[9],F=8191&j,B=j>>>13,z=0|s[0],U=8191&z,X=z>>>13,q=0|s[1],H=8191&q,Y=q>>>13,G=0|s[2],W=8191&G,V=G>>>13,K=0|s[3],J=8191&K,Z=K>>>13,Q=0|s[4],$=8191&Q,ee=Q>>>13,te=0|s[5],re=8191&te,ne=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,he=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,X))+Math.imul(h,U)|0))<<13)|0;c=((o=Math.imul(h,X))+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,X))+Math.imul(m,U)|0,o=Math.imul(m,X);var ve=(c+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,H)|0))<<13)|0;c=((o=o+Math.imul(h,Y)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),i=(i=Math.imul(v,X))+Math.imul(y,U)|0,o=Math.imul(y,X),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,Y)|0;var ye=(c+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;c=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(b,U),i=(i=Math.imul(b,X))+Math.imul(x,U)|0,o=Math.imul(x,X),n=n+Math.imul(v,H)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(y,H)|0,o=o+Math.imul(y,Y)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,V)|0;var _e=(c+(n=n+Math.imul(f,J)|0)|0)+((8191&(i=(i=i+Math.imul(f,Z)|0)+Math.imul(h,J)|0))<<13)|0;c=((o=o+Math.imul(h,Z)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(T,U),i=(i=Math.imul(T,X))+Math.imul(S,U)|0,o=Math.imul(S,X),n=n+Math.imul(b,H)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,Y)|0,n=n+Math.imul(v,W)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(y,W)|0,o=o+Math.imul(y,V)|0,n=n+Math.imul(p,J)|0,i=(i=i+Math.imul(p,Z)|0)+Math.imul(m,J)|0,o=o+Math.imul(m,Z)|0;var be=(c+(n=n+Math.imul(f,$)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;c=((o=o+Math.imul(h,ee)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(P,U),i=(i=Math.imul(P,X))+Math.imul(E,U)|0,o=Math.imul(E,X),n=n+Math.imul(T,H)|0,i=(i=i+Math.imul(T,Y)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,Y)|0,n=n+Math.imul(b,W)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,V)|0,n=n+Math.imul(v,J)|0,i=(i=i+Math.imul(v,Z)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,Z)|0,n=n+Math.imul(p,$)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,$)|0,o=o+Math.imul(m,ee)|0;var xe=(c+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;c=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(k,U),i=(i=Math.imul(k,X))+Math.imul(A,U)|0,o=Math.imul(A,X),n=n+Math.imul(P,H)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(E,H)|0,o=o+Math.imul(E,Y)|0,n=n+Math.imul(T,W)|0,i=(i=i+Math.imul(T,V)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,V)|0,n=n+Math.imul(b,J)|0,i=(i=i+Math.imul(b,Z)|0)+Math.imul(x,J)|0,o=o+Math.imul(x,Z)|0,n=n+Math.imul(v,$)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(m,re)|0,o=o+Math.imul(m,ne)|0;var we=(c+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0;c=((o=o+Math.imul(h,ae)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(R,U),i=(i=Math.imul(R,X))+Math.imul(I,U)|0,o=Math.imul(I,X),n=n+Math.imul(k,H)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(A,H)|0,o=o+Math.imul(A,Y)|0,n=n+Math.imul(P,W)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,V)|0,n=n+Math.imul(T,J)|0,i=(i=i+Math.imul(T,Z)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,Z)|0,n=n+Math.imul(b,$)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(x,$)|0,o=o+Math.imul(x,ee)|0,n=n+Math.imul(v,re)|0,i=(i=i+Math.imul(v,ne)|0)+Math.imul(y,re)|0,o=o+Math.imul(y,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var Te=(c+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(h,ue)|0))<<13)|0;c=((o=o+Math.imul(h,ce)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,U),i=(i=Math.imul(L,X))+Math.imul(N,U)|0,o=Math.imul(N,X),n=n+Math.imul(R,H)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(I,H)|0,o=o+Math.imul(I,Y)|0,n=n+Math.imul(k,W)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(P,J)|0,i=(i=i+Math.imul(P,Z)|0)+Math.imul(E,J)|0,o=o+Math.imul(E,Z)|0,n=n+Math.imul(T,$)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,ee)|0,n=n+Math.imul(b,re)|0,i=(i=i+Math.imul(b,ne)|0)+Math.imul(x,re)|0,o=o+Math.imul(x,ne)|0,n=n+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(y,oe)|0,o=o+Math.imul(y,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0;var Se=(c+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;c=((o=o+Math.imul(h,he)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(F,U),i=(i=Math.imul(F,X))+Math.imul(B,U)|0,o=Math.imul(B,X),n=n+Math.imul(L,H)|0,i=(i=i+Math.imul(L,Y)|0)+Math.imul(N,H)|0,o=o+Math.imul(N,Y)|0,n=n+Math.imul(R,W)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(I,W)|0,o=o+Math.imul(I,V)|0,n=n+Math.imul(k,J)|0,i=(i=i+Math.imul(k,Z)|0)+Math.imul(A,J)|0,o=o+Math.imul(A,Z)|0,n=n+Math.imul(P,$)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(E,$)|0,o=o+Math.imul(E,ee)|0,n=n+Math.imul(T,re)|0,i=(i=i+Math.imul(T,ne)|0)+Math.imul(S,re)|0,o=o+Math.imul(S,ne)|0,n=n+Math.imul(b,oe)|0,i=(i=i+Math.imul(b,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,n=n+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(y,ue)|0,o=o+Math.imul(y,ce)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,he)|0;var Me=(c+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(h,pe)|0))<<13)|0;c=((o=o+Math.imul(h,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(F,H),i=(i=Math.imul(F,Y))+Math.imul(B,H)|0,o=Math.imul(B,Y),n=n+Math.imul(L,W)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(N,W)|0,o=o+Math.imul(N,V)|0,n=n+Math.imul(R,J)|0,i=(i=i+Math.imul(R,Z)|0)+Math.imul(I,J)|0,o=o+Math.imul(I,Z)|0,n=n+Math.imul(k,$)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(A,$)|0,o=o+Math.imul(A,ee)|0,n=n+Math.imul(P,re)|0,i=(i=i+Math.imul(P,ne)|0)+Math.imul(E,re)|0,o=o+Math.imul(E,ne)|0,n=n+Math.imul(T,oe)|0,i=(i=i+Math.imul(T,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,n=n+Math.imul(b,ue)|0,i=(i=i+Math.imul(b,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(y,fe)|0,o=o+Math.imul(y,he)|0;var Pe=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(F,W),i=(i=Math.imul(F,V))+Math.imul(B,W)|0,o=Math.imul(B,V),n=n+Math.imul(L,J)|0,i=(i=i+Math.imul(L,Z)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,Z)|0,n=n+Math.imul(R,$)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,$)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(k,re)|0,i=(i=i+Math.imul(k,ne)|0)+Math.imul(A,re)|0,o=o+Math.imul(A,ne)|0,n=n+Math.imul(P,oe)|0,i=(i=i+Math.imul(P,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,n=n+Math.imul(b,fe)|0,i=(i=i+Math.imul(b,he)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,he)|0;var Ee=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((o=o+Math.imul(y,me)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(F,J),i=(i=Math.imul(F,Z))+Math.imul(B,J)|0,o=Math.imul(B,Z),n=n+Math.imul(L,$)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,ee)|0,n=n+Math.imul(R,re)|0,i=(i=i+Math.imul(R,ne)|0)+Math.imul(I,re)|0,o=o+Math.imul(I,ne)|0,n=n+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(A,oe)|0,o=o+Math.imul(A,ae)|0,n=n+Math.imul(P,ue)|0,i=(i=i+Math.imul(P,ce)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,ce)|0,n=n+Math.imul(T,fe)|0,i=(i=i+Math.imul(T,he)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,he)|0;var Ce=(c+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,me)|0)+Math.imul(x,pe)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,$),i=(i=Math.imul(F,ee))+Math.imul(B,$)|0,o=Math.imul(B,ee),n=n+Math.imul(L,re)|0,i=(i=i+Math.imul(L,ne)|0)+Math.imul(N,re)|0,o=o+Math.imul(N,ne)|0,n=n+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(I,oe)|0,o=o+Math.imul(I,ae)|0,n=n+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,ce)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,he)|0;var ke=(c+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,re),i=(i=Math.imul(F,ne))+Math.imul(B,re)|0,o=Math.imul(B,ne),n=n+Math.imul(L,oe)|0,i=(i=i+Math.imul(L,ae)|0)+Math.imul(N,oe)|0,o=o+Math.imul(N,ae)|0,n=n+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,ce)|0,n=n+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0;var Ae=(c+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,me)|0)+Math.imul(E,pe)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(F,oe),i=(i=Math.imul(F,ae))+Math.imul(B,oe)|0,o=Math.imul(B,ae),n=n+Math.imul(L,ue)|0,i=(i=i+Math.imul(L,ce)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,ce)|0,n=n+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,he)|0)+Math.imul(I,fe)|0,o=o+Math.imul(I,he)|0;var Oe=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((o=o+Math.imul(A,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,ue),i=(i=Math.imul(F,ce))+Math.imul(B,ue)|0,o=Math.imul(B,ce),n=n+Math.imul(L,fe)|0,i=(i=i+Math.imul(L,he)|0)+Math.imul(N,fe)|0,o=o+Math.imul(N,he)|0;var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(I,pe)|0))<<13)|0;c=((o=o+Math.imul(I,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(F,fe),i=(i=Math.imul(F,he))+Math.imul(B,fe)|0,o=Math.imul(B,he);var Ie=(c+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,me)|0)+Math.imul(N,pe)|0))<<13)|0;c=((o=o+Math.imul(N,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var De=(c+(n=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,me))+Math.imul(B,pe)|0))<<13)|0;return c=((o=Math.imul(B,me))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=_e,u[4]=be,u[5]=xe,u[6]=we,u[7]=Te,u[8]=Se,u[9]=Me,u[10]=Pe,u[11]=Ee,u[12]=Ce,u[13]=ke,u[14]=Ae,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=De,0!==c&&(u[19]=c,r.length++),r};function s(e,t,r){return(new u).mulp(e,t,r)}function u(e,t){this.x=e,this.y=t}Math.imul||(o=i),v.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?o(this,e,t):r<63?i(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,o=0;o<r.length-1;o++){var a=i;i=0;for(var s=67108863&n,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),h=67108863&f;s=67108863&(h=h+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[o]=s,n=a,a=i}return 0!==n?r.words[o]=n:r.length--,r.strip()}(this,e,t):s(this,e,t)},u.prototype.makeRBT=function(e){for(var t=new Array(e),r=v.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},u.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},u.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a<o;a++)n[a]=t[e[a]],i[a]=r[e[a]]},u.prototype.transform=function(e,t,r,n,i,o){this.permute(o,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,h=c,d=0;d<a;d++){var p=r[l+d],m=n[l+d],g=r[l+d+a],v=n[l+d+a],y=f*g-h*v;v=f*v+h*g,g=y,r[l+d]=p+g,n[l+d]=m+v,r[l+d+a]=p-g,n[l+d+a]=m-v,d!==s&&(y=u*f-c*h,h=u*h+c*f,f=y)}},u.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},u.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},u.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&i,r=i<67108864?0:i/67108864|0}return e},u.prototype.convert13b=function(e,t,r,n){for(var i=0,o=0;o<t;o++)i+=0|e[o],r[2*o]=8191&i,i>>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o<n;++o)r[o]=0;g(0===i),g(0==(-8192&i))},u.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},u.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),o=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,o,s,u,n,i),this.transform(c,o,l,f,n,i);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*f[d];u[d]=s[d]*f[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,h,o,n,i),this.conjugate(h,o,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},v.prototype.mul=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},v.prototype.mulf=function(e){var t=new v(null);return t.words=new Array(this.length+e.length),s(this,e,t)},v.prototype.imul=function(e){return this.clone().mulTo(e,this)},v.prototype.imuln=function(e){g("number"==typeof e),g(e<67108864);for(var t=0,r=0;r<this.length;r++){var n=(0|this.words[r])*e,i=(67108863&n)+(67108863&t);t>>=26,t+=n/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},v.prototype.muln=function(e){return this.clone().imuln(e)},v.prototype.sqr=function(){return this.mul(this)},v.prototype.isqr=function(){return this.imul(this.clone())},v.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=(e.words[n]&1<<i)>>>i}return t}(e);if(0===t.length)return new v(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},v.prototype.iushln=function(e){g("number"==typeof e&&0<=e);var t,r=e%26,n=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!=r){var o=0;for(t=0;t<this.length;t++){var a=this.words[t]&i,s=(0|this.words[t])-a<<r;this.words[t]=s|o,o=a>>>26-r}o&&(this.words[t]=o,this.length++)}if(0!=n){for(t=this.length-1;0<=t;t--)this.words[t+n]=this.words[t];for(t=0;t<n;t++)this.words[t]=0;this.length+=n}return this.strip()},v.prototype.ishln=function(e){return g(0===this.negative),this.iushln(e)},v.prototype.iushrn=function(e,t,r){var n;g("number"==typeof e&&0<=e),n=t?(t-t%26)/26:0;var i=e%26,o=Math.min((e-i)/26,this.length),a=67108863^67108863>>>i<<i,s=r;if(n-=o,n=Math.max(0,n),s){for(var u=0;u<o;u++)s.words[u]=this.words[u];s.length=o}if(0===o);else if(this.length>o)for(this.length-=o,u=0;u<this.length;u++)this.words[u]=this.words[u+o];else this.words[0]=0,this.length=1;var c=0;for(u=this.length-1;0<=u&&(0!==c||n<=u);u--){var l=0|this.words[u];this.words[u]=c<<26-i|l>>>i,c=l&a}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(e,t,r){return g(0===this.negative),this.iushrn(e,t,r)},v.prototype.shln=function(e){return this.clone().ishln(e)},v.prototype.ushln=function(e){return this.clone().iushln(e)},v.prototype.shrn=function(e){return this.clone().ishrn(e)},v.prototype.ushrn=function(e){return this.clone().iushrn(e)},v.prototype.testn=function(e){g("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<<t;return!(this.length<=r)&&!!(this.words[r]&n)},v.prototype.imaskn=function(e){g("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26;if(g(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!=t&&r++,this.length=Math.min(r,this.length),0!=t){var n=67108863^67108863>>>t<<t;this.words[this.length-1]&=n}return this.strip()},v.prototype.maskn=function(e){return this.clone().imaskn(e)},v.prototype.iaddn=function(e){return g("number"==typeof e),g(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},v.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&67108864<=this.words[t];t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},v.prototype.isubn=function(e){if(g("number"==typeof e),g(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},v.prototype.addn=function(e){return this.clone().iaddn(e)},v.prototype.subn=function(e){return this.clone().isubn(e)},v.prototype.iabs=function(){return this.negative=0,this},v.prototype.abs=function(){return this.clone().iabs()},v.prototype._ishlnsubmul=function(e,t,r){var n,i,o=e.length+r;this._expand(o);var a=0;for(n=0;n<e.length;n++){i=(0|this.words[n+r])+a;var s=(0|e.words[n])*t;a=((i-=67108863&s)>>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n<this.length-r;n++)a=(i=(0|this.words[n+r])+a)>>26,this.words[n+r]=67108863&i;if(0===a)return this.strip();for(g(-1===a),n=a=0;n<this.length;n++)a=(i=-(0|this.words[n])+a)>>26,this.words[n]=67108863&i;return this.negative=1,this.strip()},v.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),i=e,o=0|i.words[i.length-1];0!=(r=26-this._countBits(o))&&(i=i.ushln(r),n.iushln(r),o=0|i.words[i.length-1]);var a,s=n.length-i.length;if("mod"!==t){(a=new v(null)).length=1+s,a.words=new Array(a.length);for(var u=0;u<a.length;u++)a.words[u]=0}var c=n.clone()._ishlnsubmul(i,1,s);0===c.negative&&(n=c,a&&(a.words[s]=1));for(var l=s-1;0<=l;l--){var f=67108864*(0|n.words[i.length+l])+(0|n.words[i.length+l-1]);for(f=Math.min(f/o|0,67108863),n._ishlnsubmul(i,f,l);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(i,1,l),n.isZero()||(n.negative^=1);a&&(a.words[l]=f)}return a&&a.strip(),n.strip(),"div"!==t&&0!=r&&n.iushrn(r),{div:a||null,mod:n}},v.prototype.divmod=function(e,t,r){return g(!e.isZero()),this.isZero()?{div:new v(0),mod:new v(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(n=o.div.neg()),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.iadd(e)),{div:n,mod:i}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(n=o.div.neg()),{div:n,mod:o.mod}):0!=(this.negative&e.negative)?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(i=o.mod.neg(),r&&0!==i.negative&&i.isub(e)),{div:o.div,mod:i}):e.length>this.length||this.cmp(e)<0?{div:new v(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new v(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new v(this.modn(e.words[0]))}:this._wordDiv(e,t);var n,i,o},v.prototype.div=function(e){return this.divmod(e,"div",!1).div},v.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},v.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},v.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),o=r.cmp(n);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},v.prototype.modn=function(e){g(e<=67108863);for(var t=(1<<26)%e,r=0,n=this.length-1;0<=n;n--)r=(t*r+(0|this.words[n]))%e;return r},v.prototype.idivn=function(e){g(e<=67108863);for(var t=0,r=this.length-1;0<=r;r--){var n=(0|this.words[r])+67108864*t;this.words[r]=n/e|0,t=n%e}return this.strip()},v.prototype.divn=function(e){return this.clone().idivn(e)},v.prototype.egcd=function(e){g(0===e.negative),g(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n=new v(1),i=new v(0),o=new v(0),a=new v(1),s=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++s;for(var u=r.clone(),c=t.clone();!t.isZero();){for(var l=0,f=1;0==(t.words[0]&f)&&l<26;++l,f<<=1);if(0<l)for(t.iushrn(l);0<l--;)(n.isOdd()||i.isOdd())&&(n.iadd(u),i.isub(c)),n.iushrn(1),i.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(0<h)for(r.iushrn(h);0<h--;)(o.isOdd()||a.isOdd())&&(o.iadd(u),a.isub(c)),o.iushrn(1),a.iushrn(1);0<=t.cmp(r)?(t.isub(r),n.isub(o),i.isub(a)):(r.isub(t),o.isub(n),a.isub(i))}return{a:o,b:a,gcd:r.iushln(s)}},v.prototype._invmp=function(e){g(0===e.negative),g(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var n,i=new v(1),o=new v(0),a=r.clone();0<t.cmpn(1)&&0<r.cmpn(1);){for(var s=0,u=1;0==(t.words[0]&u)&&s<26;++s,u<<=1);if(0<s)for(t.iushrn(s);0<s--;)i.isOdd()&&i.iadd(a),i.iushrn(1);for(var c=0,l=1;0==(r.words[0]&l)&&c<26;++c,l<<=1);if(0<c)for(r.iushrn(c);0<c--;)o.isOdd()&&o.iadd(a),o.iushrn(1);0<=t.cmp(r)?(t.isub(r),i.isub(o)):(r.isub(t),o.isub(i))}return(n=0===t.cmpn(1)?i:o).cmpn(0)<0&&n.iadd(e),n},v.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0;for(var n=r.negative=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var o=t;t=r,r=o}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},v.prototype.invm=function(e){return this.egcd(e).a.umod(e)},v.prototype.isEven=function(){return 0==(1&this.words[0])},v.prototype.isOdd=function(){return 1==(1&this.words[0])},v.prototype.andln=function(e){return this.words[0]&e},v.prototype.bincn=function(e){g("number"==typeof e);var t=e%26,r=(e-t)/26,n=1<<t;if(this.length<=r)return this._expand(1+r),this.words[r]|=n,this;for(var i=n,o=r;0!==i&&o<this.length;o++){var a=0|this.words[o];i=(a+=i)>>>26,a&=67108863,this.words[o]=a}return 0!==i&&(this.words[o]=i,this.length++),this},v.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},v.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),1<this.length)t=1;else{r&&(e=-e),g(e<=67108863,"Number is too big");var n=0|this.words[0];t=n===e?0:n<e?-1:1}return 0!==this.negative?0|-t:t},v.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},v.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;0<=r;r--){var n=0|this.words[r],i=0|e.words[r];if(n!=i){n<i?t=-1:i<n&&(t=1);break}}return t},v.prototype.gtn=function(e){return 1===this.cmpn(e)},v.prototype.gt=function(e){return 1===this.cmp(e)},v.prototype.gten=function(e){return 0<=this.cmpn(e)},v.prototype.gte=function(e){return 0<=this.cmp(e)},v.prototype.ltn=function(e){return-1===this.cmpn(e)},v.prototype.lt=function(e){return-1===this.cmp(e)},v.prototype.lten=function(e){return this.cmpn(e)<=0},v.prototype.lte=function(e){return this.cmp(e)<=0},v.prototype.eqn=function(e){return 0===this.cmpn(e)},v.prototype.eq=function(e){return 0===this.cmp(e)},v.red=function(e){return new x(e)},v.prototype.toRed=function(e){return g(!this.red,"Already a number in reduction context"),g(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},v.prototype.fromRed=function(){return g(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},v.prototype._forceRed=function(e){return this.red=e,this},v.prototype.forceRed=function(e){return g(!this.red,"Already a number in reduction context"),this._forceRed(e)},v.prototype.redAdd=function(e){return g(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},v.prototype.redIAdd=function(e){return g(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},v.prototype.redSub=function(e){return g(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},v.prototype.redISub=function(e){return g(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},v.prototype.redShl=function(e){return g(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},v.prototype.redMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},v.prototype.redIMul=function(e){return g(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},v.prototype.redSqr=function(){return g(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},v.prototype.redISqr=function(){return g(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},v.prototype.redSqrt=function(){return g(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},v.prototype.redInvm=function(){return g(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},v.prototype.redNeg=function(){return g(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},v.prototype.redPow=function(e){return g(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var c={k256:null,p224:null,p192:null,p25519:null};function l(e,t){this.name=e,this.p=new v(t,16),this.n=this.p.bitLength(),this.k=new v(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function m(){l.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){l.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _(){l.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function b(){l.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function x(e){if("string"==typeof e){var t=v._prime(e);this.m=t.p,this.prime=t}else g(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function w(e){x.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new v(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}l.prototype._tmp=function(){var e=new v(null);return e.words=new Array(Math.ceil(this.n/13)),e},l.prototype.ireduce=function(e){for(var t,r=e;this.split(r,this.tmp),(t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength())>this.n;);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):0<n?r.isub(this.p):r.strip(),r},l.prototype.split=function(e,t){e.iushrn(this.n,0,t)},l.prototype.imulK=function(e){return e.imul(this.k)},r(m,l),m.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=4194303&i,n=10;n<e.length;n++){var o=0|e.words[n];e.words[n-10]=(4194303&o)<<4|i>>>22,i=o}i>>>=22,0===(e.words[n-10]=i)&&10<e.length?e.length-=10:e.length-=9},m.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},r(y,l),r(_,l),r(b,l),b.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,i=67108863&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},v._prime=function(e){if(c[e])return c[e];var t;if("k256"===e)t=new m;else if("p224"===e)t=new y;else if("p192"===e)t=new _;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new b}return c[e]=t},x.prototype._verify1=function(e){g(0===e.negative,"red works only with positives"),g(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){g(0==(e.negative|t.negative),"red works only with positives"),g(e.red&&e.red===t.red,"red works only with red numbers")},x.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},x.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},x.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r._forceRed(this)},x.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return 0<=r.cmp(this.m)&&r.isub(this.m),r},x.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},x.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},x.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},x.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},x.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},x.prototype.isqr=function(e){return this.imul(e,e.clone())},x.prototype.sqr=function(e){return this.mul(e,e)},x.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(g(t%2==1),3===t){var r=this.m.add(new v(1)).iushrn(2);return this.pow(e,r)}for(var n=this.m.subn(1),i=0;!n.isZero()&&0===n.andln(1);)i++,n.iushrn(1);g(!n.isZero());var o=new v(1).toRed(this),a=o.redNeg(),s=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new v(2*u*u).toRed(this);0!==this.pow(u,s).cmp(a);)u.redIAdd(a);for(var c=this.pow(u,n),l=this.pow(e,n.addn(1).iushrn(1)),f=this.pow(e,n),h=i;0!==f.cmp(o);){for(var d=f,p=0;0!==d.cmp(o);p++)d=d.redSqr();g(p<h);var m=this.pow(c,new v(1).iushln(h-p-1));l=l.redMul(m),c=m.redSqr(),f=f.redMul(c),h=p}return l},x.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},x.prototype.pow=function(e,t){if(t.isZero())return new v(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new v(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],o=0,a=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;0<=n;n--){for(var u=t.words[n],c=s-1;0<=c;c--){var l=u>>c&1;i!==r[0]&&(i=this.sqr(i)),0!=l||0!==o?(o<<=1,o|=l,(4===++a||0===n&&0===c)&&(i=this.mul(i,r[o]),o=a=0)):a=0}s=26}return i},x.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},x.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},v.mont=function(e){return new w(e)},r(w,x),w.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},w.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},w.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new v(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),o=i;return 0<=i.cmp(this.m)?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},w.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===e||e,this)},{buffer:19}],18:[function(e,t,r){var n;function i(e){this.rand=e}if(t.exports=function(e){return n||(n=new i(null)),n.generate(e)},(t.exports.Rand=i).prototype.generate=function(e){return this._rand(e)},i.prototype._rand=function(e){if(this.rand.getBytes)return this.rand.getBytes(e);for(var t=new Uint8Array(e),r=0;r<t.length;r++)t[r]=this.rand.getByte();return t},"object"==typeof self)self.crypto&&self.crypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.crypto.getRandomValues(t),t}:self.msCrypto&&self.msCrypto.getRandomValues?i.prototype._rand=function(e){var t=new Uint8Array(e);return self.msCrypto.getRandomValues(t),t}:"object"==typeof window&&(i.prototype._rand=function(){throw new Error("Not implemented yet")});else try{var o=e("crypto");if("function"!=typeof o.randomBytes)throw new Error("Not supported");i.prototype._rand=function(e){return o.randomBytes(e)}}catch(e){}},{crypto:19}],19:[function(e,t,r){},{}],20:[function(e,t,r){var i=e("safe-buffer").Buffer;function o(e){i.isBuffer(e)||(e=i.from(e));for(var t=e.length/4|0,r=new Array(t),n=0;n<t;n++)r[n]=e.readUInt32BE(4*n);return r}function n(e){for(;0<e.length;e++)e[0]=0}function a(e,t,r,n,i){for(var o,a,s,u,c=r[0],l=r[1],f=r[2],h=r[3],d=e[0]^t[0],p=e[1]^t[1],m=e[2]^t[2],g=e[3]^t[3],v=4,y=1;y<i;y++)o=c[d>>>24]^l[p>>>16&255]^f[m>>>8&255]^h[255&g]^t[v++],a=c[p>>>24]^l[m>>>16&255]^f[g>>>8&255]^h[255&d]^t[v++],s=c[m>>>24]^l[g>>>16&255]^f[d>>>8&255]^h[255&p]^t[v++],u=c[g>>>24]^l[d>>>16&255]^f[p>>>8&255]^h[255&m]^t[v++],d=o,p=a,m=s,g=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[m>>>8&255]<<8|n[255&g])^t[v++],a=(n[p>>>24]<<24|n[m>>>16&255]<<16|n[g>>>8&255]<<8|n[255&d])^t[v++],s=(n[m>>>24]<<24|n[g>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[v++],u=(n[g>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&m])^t[v++],[o>>>=0,a>>>=0,s>>>=0,u>>>=0]}var f=[0,1,2,4,8,16,32,64,128,27,54],h=function(){for(var e=new Array(256),t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;for(var r=[],n=[],i=[[],[],[],[]],o=[[],[],[],[]],a=0,s=0,u=0;u<256;++u){var c=s^s<<1^s<<2^s<<3^s<<4;c=c>>>8^255&c^99;var l=e[n[r[a]=c]=a],f=e[l],h=e[f],d=257*e[c]^16843008*c;i[0][a]=d<<24|d>>>8,i[1][a]=d<<16|d>>>16,i[2][a]=d<<8|d>>>24,i[3][a]=d,d=16843009*h^65537*f^257*l^16843008*a,o[0][c]=d<<24|d>>>8,o[1][c]=d<<16|d>>>16,o[2][c]=d<<8|d>>>24,o[3][c]=d,0===a?a=s=1:(a=l^e[e[e[h^l]]],s^=e[e[s]])}return{SBOX:r,INV_SBOX:n,SUB_MIX:i,INV_SUB_MIX:o}}();function s(e){this._key=o(e),this._reset()}s.blockSize=16,s.keySize=32,s.prototype.blockSize=s.blockSize,s.prototype.keySize=s.keySize,s.prototype._reset=function(){for(var e=this._key,t=e.length,r=t+6,n=4*(r+1),i=[],o=0;o<t;o++)i[o]=e[o];for(o=t;o<n;o++){var a=i[o-1];o%t==0?(a=a<<8|a>>>24,a=h.SBOX[a>>>24]<<24|h.SBOX[a>>>16&255]<<16|h.SBOX[a>>>8&255]<<8|h.SBOX[255&a],a^=f[o/t|0]<<24):6<t&&o%t==4&&(a=h.SBOX[a>>>24]<<24|h.SBOX[a>>>16&255]<<16|h.SBOX[a>>>8&255]<<8|h.SBOX[255&a]),i[o]=i[o-t]^a}for(var s=[],u=0;u<n;u++){var c=n-u,l=i[c-(u%4?0:4)];s[u]=u<4||c<=4?l:h.INV_SUB_MIX[0][h.SBOX[l>>>24]]^h.INV_SUB_MIX[1][h.SBOX[l>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[l>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&l]]}this._nRounds=r,this._keySchedule=i,this._invKeySchedule=s},s.prototype.encryptBlockRaw=function(e){return a(e=o(e),this._keySchedule,h.SUB_MIX,h.SBOX,this._nRounds)},s.prototype.encryptBlock=function(e){var t=this.encryptBlockRaw(e),r=i.allocUnsafe(16);return r.writeUInt32BE(t[0],0),r.writeUInt32BE(t[1],4),r.writeUInt32BE(t[2],8),r.writeUInt32BE(t[3],12),r},s.prototype.decryptBlock=function(e){var t=(e=o(e))[1];e[1]=e[3],e[3]=t;var r=a(e,this._invKeySchedule,h.INV_SUB_MIX,h.INV_SBOX,this._nRounds),n=i.allocUnsafe(16);return n.writeUInt32BE(r[0],0),n.writeUInt32BE(r[3],4),n.writeUInt32BE(r[2],8),n.writeUInt32BE(r[1],12),n},s.prototype.scrub=function(){n(this._keySchedule),n(this._invKeySchedule),n(this._key)},t.exports.AES=s},{"safe-buffer":143}],21:[function(e,t,r){var a=e("./aes"),c=e("safe-buffer").Buffer,s=e("cipher-base"),n=e("inherits"),l=e("./ghash"),i=e("buffer-xor"),f=e("./incr32");function o(e,t,r,n){s.call(this);var i=c.alloc(4,0);this._cipher=new a.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new l(o),r=function(e,t,r){if(12===t.length)return e._finID=c.concat([t,c.from([0,0,0,1])]),c.concat([t,c.from([0,0,0,2])]);var n=new l(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(c.alloc(o,0))),n.update(c.alloc(8,0));var a=8*i,s=c.alloc(8);s.writeUIntBE(a,0,8),n.update(s),e._finID=n.state;var u=c.from(e._finID);return f(u),u}(this,r,o),this._prev=c.from(r),this._cache=c.allocUnsafe(0),this._secCache=c.allocUnsafe(0),this._decrypt=n,this._alen=0,this._len=0,this._mode=e,this._authTag=null,this._called=!1}n(o,s),o.prototype._update=function(e){if(!this._called&&this._alen){var t=16-this._alen%16;t<16&&(t=c.alloc(t,0),this._ghash.update(t))}this._called=!0;var r=this._mode.encrypt(this,e);return this._decrypt?this._ghash.update(e):this._ghash.update(r),this._len+=e.length,r},o.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var e=i(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function(e,t){var r=0;e.length!==t.length&&r++;for(var n=Math.min(e.length,t.length),i=0;i<n;++i)r+=e[i]^t[i];return r}(e,this._authTag))throw new Error("Unsupported state or unable to authenticate data");this._authTag=e,this._cipher.scrub()},o.prototype.getAuthTag=function(){if(this._decrypt||!c.isBuffer(this._authTag))throw new Error("Attempting to get auth tag in unsupported state");return this._authTag},o.prototype.setAuthTag=function(e){if(!this._decrypt)throw new Error("Attempting to set auth tag in unsupported state");this._authTag=e},o.prototype.setAAD=function(e){if(this._called)throw new Error("Attempting to set AAD in unsupported state");this._ghash.update(e),this._alen+=e.length},t.exports=o},{"./aes":20,"./ghash":25,"./incr32":26,"buffer-xor":48,"cipher-base":50,inherits:103,"safe-buffer":143}],22:[function(e,t,r){var n=e("./encrypter"),i=e("./decrypter"),o=e("./modes/list.json");r.createCipher=r.Cipher=n.createCipher,r.createCipheriv=r.Cipheriv=n.createCipheriv,r.createDecipher=r.Decipher=i.createDecipher,r.createDecipheriv=r.Decipheriv=i.createDecipheriv,r.listCiphers=r.getCiphers=function(){return Object.keys(o)}},{"./decrypter":23,"./encrypter":24,"./modes/list.json":34}],23:[function(e,t,r){var i=e("./authCipher"),o=e("safe-buffer").Buffer,a=e("./modes"),s=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,r){n.call(this),this._cache=new f,this._last=void 0,this._cipher=new u.AES(t),this._prev=o.from(r),this._mode=e,this._autopadding=!0}function f(){this.cache=o.allocUnsafe(0)}function h(e,t,r){var n=a[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof r&&(r=o.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);if("string"==typeof t&&(t=o.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);return"stream"===n.type?new s(n.module,t,r,!0):"auth"===n.type?new i(n.module,t,r,!0):new l(n.module,t,r)}e("inherits")(l,n),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get(this._autopadding);)r=this._mode.decrypt(this,t),n.push(r);return o.concat(n)},l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return function(e){var t=e[15],r=-1;for(;++r<t;)if(e[r+(16-t)]!==t)throw new Error("unable to decrypt data");if(16===t)return;return e.slice(0,16-t)}(this._mode.decrypt(this,e));if(e)throw new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},f.prototype.add=function(e){this.cache=o.concat([this.cache,e])},f.prototype.get=function(e){var t;if(e){if(16<this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t}else if(16<=this.cache.length)return t=this.cache.slice(0,16),this.cache=this.cache.slice(16),t;return null},f.prototype.flush=function(){if(this.cache.length)return this.cache},r.createDecipher=function(e,t){var r=a[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return h(e,n.key,n.iv)},r.createDecipheriv=h},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],24:[function(e,t,r){var i=e("./modes"),o=e("./authCipher"),a=e("safe-buffer").Buffer,s=e("./streamCipher"),n=e("cipher-base"),u=e("./aes"),c=e("evp_bytestokey");function l(e,t,r){n.call(this),this._cache=new h,this._cipher=new u.AES(t),this._prev=a.from(r),this._mode=e,this._autopadding=!0}e("inherits")(l,n),l.prototype._update=function(e){var t,r;this._cache.add(e);for(var n=[];t=this._cache.get();)r=this._mode.encrypt(this,t),n.push(r);return a.concat(n)};var f=a.alloc(16,16);function h(){this.cache=a.allocUnsafe(0)}function d(e,t,r){var n=i[e.toLowerCase()];if(!n)throw new TypeError("invalid suite type");if("string"==typeof t&&(t=a.from(t)),t.length!==n.key/8)throw new TypeError("invalid key length "+t.length);if("string"==typeof r&&(r=a.from(r)),"GCM"!==n.mode&&r.length!==n.iv)throw new TypeError("invalid iv length "+r.length);return"stream"===n.type?new s(n.module,t,r):"auth"===n.type?new o(n.module,t,r):new l(n.module,t,r)}l.prototype._final=function(){var e=this._cache.flush();if(this._autopadding)return e=this._mode.encrypt(this,e),this._cipher.scrub(),e;if(!e.equals(f))throw this._cipher.scrub(),new Error("data not multiple of block length")},l.prototype.setAutoPadding=function(e){return this._autopadding=!!e,this},h.prototype.add=function(e){this.cache=a.concat([this.cache,e])},h.prototype.get=function(){if(15<this.cache.length){var e=this.cache.slice(0,16);return this.cache=this.cache.slice(16),e}return null},h.prototype.flush=function(){for(var e=16-this.cache.length,t=a.allocUnsafe(e),r=-1;++r<e;)t.writeUInt8(e,r);return a.concat([this.cache,t])},r.createCipheriv=d,r.createCipher=function(e,t){var r=i[e.toLowerCase()];if(!r)throw new TypeError("invalid suite type");var n=c(t,!1,r.key,r.iv);return d(e,n.key,n.iv)}},{"./aes":20,"./authCipher":21,"./modes":33,"./streamCipher":36,"cipher-base":50,evp_bytestokey:86,inherits:103,"safe-buffer":143}],25:[function(e,t,r){var n=e("safe-buffer").Buffer,i=n.alloc(16,0);function o(e){var t=n.allocUnsafe(16);return t.writeUInt32BE(e[0]>>>0,0),t.writeUInt32BE(e[1]>>>0,4),t.writeUInt32BE(e[2]>>>0,8),t.writeUInt32BE(e[3]>>>0,12),t}function a(e){this.h=e,this.state=n.alloc(16,0),this.cache=n.allocUnsafe(0)}a.prototype.ghash=function(e){for(var t=-1;++t<e.length;)this.state[t]^=e[t];this._multiply()},a.prototype._multiply=function(){for(var e,t,r=function(e){return[e.readUInt32BE(0),e.readUInt32BE(4),e.readUInt32BE(8),e.readUInt32BE(12)]}(this.h),n=[0,0,0,0],i=-1;++i<128;){for(0!=(this.state[~~(i/8)]&1<<7-i%8)&&(n[0]^=r[0],n[1]^=r[1],n[2]^=r[2],n[3]^=r[3]),t=0!=(1&r[3]),e=3;0<e;e--)r[e]=r[e]>>>1|(1&r[e-1])<<31;r[0]=r[0]>>>1,t&&(r[0]=r[0]^225<<24)}this.state=o(n)},a.prototype.update=function(e){var t;for(this.cache=n.concat([this.cache,e]);16<=this.cache.length;)t=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(t)},a.prototype.final=function(e,t){return this.cache.length&&this.ghash(n.concat([this.cache,i],16)),this.ghash(o([0,e,0,t])),this.state},t.exports=a},{"safe-buffer":143}],26:[function(e,t,r){t.exports=function(e){for(var t,r=e.length;r--;){if(255!==(t=e.readUInt8(r))){t++,e.writeUInt8(t,r);break}e.writeUInt8(0,r)}}},{}],27:[function(e,t,r){var i=e("buffer-xor");r.encrypt=function(e,t){var r=i(t,e._prev);return e._prev=e._cipher.encryptBlock(r),e._prev},r.decrypt=function(e,t){var r=e._prev;e._prev=t;var n=e._cipher.decryptBlock(t);return i(n,r)}},{"buffer-xor":48}],28:[function(e,t,r){var o=e("safe-buffer").Buffer,a=e("buffer-xor");function s(e,t,r){var n=t.length,i=a(t,e._cache);return e._cache=e._cache.slice(n),e._prev=o.concat([e._prev,r?t:i]),i}r.encrypt=function(e,t,r){for(var n,i=o.allocUnsafe(0);t.length;){if(0===e._cache.length&&(e._cache=e._cipher.encryptBlock(e._prev),e._prev=o.allocUnsafe(0)),!(e._cache.length<=t.length)){i=o.concat([i,s(e,t,r)]);break}n=e._cache.length,i=o.concat([i,s(e,t.slice(0,n),r)]),t=t.slice(n)}return i}},{"buffer-xor":48,"safe-buffer":143}],29:[function(e,t,r){var a=e("safe-buffer").Buffer;function s(e,t,r){for(var n,i,o=-1,a=0;++o<8;)n=t&1<<7-o?128:0,a+=(128&(i=e._cipher.encryptBlock(e._prev)[0]^n))>>o%8,e._prev=u(e._prev,r?n:i);return a}function u(e,t){var r=e.length,n=-1,i=a.allocUnsafe(e.length);for(e=a.concat([e,a.from([t])]);++n<r;)i[n]=e[n]<<1|e[n+1]>>7;return i}r.encrypt=function(e,t,r){for(var n=t.length,i=a.allocUnsafe(n),o=-1;++o<n;)i[o]=s(e,t[o],r);return i}},{"safe-buffer":143}],30:[function(e,t,r){var l=e("safe-buffer").Buffer;r.encrypt=function(e,t,r){for(var n,i,o,a,s=t.length,u=l.allocUnsafe(s),c=-1;++c<s;)u[c]=(n=e,i=t[c],o=r,void 0,a=n._cipher.encryptBlock(n._prev)[0]^i,n._prev=l.concat([n._prev.slice(1),l.from([o?i:a])]),a);return u}},{"safe-buffer":143}],31:[function(e,t,r){var l=e("buffer-xor"),f=e("safe-buffer").Buffer,h=e("../incr32");r.encrypt=function(e,t){var r,n,i=Math.ceil(t.length/16),o=e._cache.length;e._cache=f.concat([e._cache,f.allocUnsafe(16*i)]);for(var a=0;a<i;a++){var s=(void 0,n=(r=e)._cipher.encryptBlockRaw(r._prev),h(r._prev),n),u=o+16*a;e._cache.writeUInt32BE(s[0],u+0),e._cache.writeUInt32BE(s[1],u+4),e._cache.writeUInt32BE(s[2],u+8),e._cache.writeUInt32BE(s[3],u+12)}var c=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),l(t,c)}},{"../incr32":26,"buffer-xor":48,"safe-buffer":143}],32:[function(e,t,r){r.encrypt=function(e,t){return e._cipher.encryptBlock(t)},r.decrypt=function(e,t){return e._cipher.decryptBlock(t)}},{}],33:[function(e,t,r){var n={ECB:e("./ecb"),CBC:e("./cbc"),CFB:e("./cfb"),CFB8:e("./cfb8"),CFB1:e("./cfb1"),OFB:e("./ofb"),CTR:e("./ctr"),GCM:e("./ctr")},i=e("./list.json");for(var o in i)i[o].module=n[i[o].mode];t.exports=i},{"./cbc":27,"./cfb":28,"./cfb1":29,"./cfb8":30,"./ctr":31,"./ecb":32,"./list.json":34,"./ofb":35}],34:[function(e,t,r){t.exports={"aes-128-ecb":{cipher:"AES",key:128,iv:0,mode:"ECB",type:"block"},"aes-192-ecb":{cipher:"AES",key:192,iv:0,mode:"ECB",type:"block"},"aes-256-ecb":{cipher:"AES",key:256,iv:0,mode:"ECB",type:"block"},"aes-128-cbc":{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},"aes-192-cbc":{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},"aes-256-cbc":{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},aes128:{cipher:"AES",key:128,iv:16,mode:"CBC",type:"block"},aes192:{cipher:"AES",key:192,iv:16,mode:"CBC",type:"block"},aes256:{cipher:"AES",key:256,iv:16,mode:"CBC",type:"block"},"aes-128-cfb":{cipher:"AES",key:128,iv:16,mode:"CFB",type:"stream"},"aes-192-cfb":{cipher:"AES",key:192,iv:16,mode:"CFB",type:"stream"},"aes-256-cfb":{cipher:"AES",key:256,iv:16,mode:"CFB",type:"stream"},"aes-128-cfb8":{cipher:"AES",key:128,iv:16,mode:"CFB8",type:"stream"},"aes-192-cfb8":{cipher:"AES",key:192,iv:16,mode:"CFB8",type:"stream"},"aes-256-cfb8":{cipher:"AES",key:256,iv:16,mode:"CFB8",type:"stream"},"aes-128-cfb1":{cipher:"AES",key:128,iv:16,mode:"CFB1",type:"stream"},"aes-192-cfb1":{cipher:"AES",key:192,iv:16,mode:"CFB1",type:"stream"},"aes-256-cfb1":{cipher:"AES",key:256,iv:16,mode:"CFB1",type:"stream"},"aes-128-ofb":{cipher:"AES",key:128,iv:16,mode:"OFB",type:"stream"},"aes-192-ofb":{cipher:"AES",key:192,iv:16,mode:"OFB",type:"stream"},"aes-256-ofb":{cipher:"AES",key:256,iv:16,mode:"OFB",type:"stream"},"aes-128-ctr":{cipher:"AES",key:128,iv:16,mode:"CTR",type:"stream"},"aes-192-ctr":{cipher:"AES",key:192,iv:16,mode:"CTR",type:"stream"},"aes-256-ctr":{cipher:"AES",key:256,iv:16,mode:"CTR",type:"stream"},"aes-128-gcm":{cipher:"AES",key:128,iv:12,mode:"GCM",type:"auth"},"aes-192-gcm":{cipher:"AES",key:192,iv:12,mode:"GCM",type:"auth"},"aes-256-gcm":{cipher:"AES",key:256,iv:12,mode:"GCM",type:"auth"}}},{}],35:[function(e,t,r){(function(i){var o=e("buffer-xor");r.encrypt=function(e,t){for(;e._cache.length<t.length;)e._cache=i.concat([e._cache,(r=e,r._prev=r._cipher.encryptBlock(r._prev),r._prev)]);var r,n=e._cache.slice(0,t.length);return e._cache=e._cache.slice(t.length),o(t,n)}}).call(this,e("buffer").Buffer)},{buffer:49,"buffer-xor":48}],36:[function(e,t,r){var i=e("./aes"),o=e("safe-buffer").Buffer,a=e("cipher-base");function n(e,t,r,n){a.call(this),this._cipher=new i.AES(t),this._prev=o.from(r),this._cache=o.allocUnsafe(0),this._secCache=o.allocUnsafe(0),this._decrypt=n,this._mode=e}e("inherits")(n,a),n.prototype._update=function(e){return this._mode.encrypt(this,e,this._decrypt)},n.prototype._final=function(){this._cipher.scrub()},t.exports=n},{"./aes":20,"cipher-base":50,inherits:103,"safe-buffer":143}],37:[function(e,t,r){var o=e("evp_bytestokey"),n=e("browserify-aes/browser"),i=e("browserify-des"),a=e("browserify-des/modes"),s=e("browserify-aes/modes");function u(e,t,r){if(e=e.toLowerCase(),s[e])return n.createCipheriv(e,t,r);if(a[e])return new i({key:t,iv:r,mode:e});throw new TypeError("invalid suite type")}function c(e,t,r){if(e=e.toLowerCase(),s[e])return n.createDecipheriv(e,t,r);if(a[e])return new i({key:t,iv:r,mode:e,decrypt:!0});throw new TypeError("invalid suite type")}r.createCipher=r.Cipher=function(e,t){var r,n;if(e=e.toLowerCase(),s[e])r=s[e].key,n=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=o(t,!1,r,n);return u(e,i.key,i.iv)},r.createCipheriv=r.Cipheriv=u,r.createDecipher=r.Decipher=function(e,t){var r,n;if(e=e.toLowerCase(),s[e])r=s[e].key,n=s[e].iv;else{if(!a[e])throw new TypeError("invalid suite type");r=8*a[e].key,n=a[e].iv}var i=o(t,!1,r,n);return c(e,i.key,i.iv)},r.createDecipheriv=r.Decipheriv=c,r.listCiphers=r.getCiphers=function(){return Object.keys(a).concat(n.getCiphers())}},{"browserify-aes/browser":22,"browserify-aes/modes":33,"browserify-des":38,"browserify-des/modes":39,evp_bytestokey:86}],38:[function(n,i,e){(function(a){var s=n("cipher-base"),e=n("des.js"),t=n("inherits"),u={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function r(e){s.call(this);var t,r=e.mode.toLowerCase(),n=u[r];t=e.decrypt?"decrypt":"encrypt";var i=e.key;"des-ede"!==r&&"des-ede-cbc"!==r||(i=a.concat([i,i.slice(0,8)]));var o=e.iv;this._des=n.create({key:i,iv:o,type:t})}u.des=u["des-cbc"],u.des3=u["des-ede3-cbc"],t(i.exports=r,s),r.prototype._update=function(e){return new a(this._des.update(e))},r.prototype._final=function(){return new a(this._des.final())}}).call(this,n("buffer").Buffer)},{buffer:49,"cipher-base":50,"des.js":59,inherits:103}],39:[function(e,t,r){r["des-ecb"]={key:8,iv:0},r["des-cbc"]=r.des={key:8,iv:8},r["des-ede3-cbc"]=r.des3={key:24,iv:8},r["des-ede3"]={key:24,iv:0},r["des-ede-cbc"]={key:16,iv:8},r["des-ede"]={key:16,iv:0}},{}],40:[function(t,r,e){(function(d){var p=t("bn.js"),n=t("randombytes");function e(e,t){var r=function(e){var t=m(e);return{blinder:t.toRed(p.mont(e.modulus)).redPow(new p(e.publicExponent)).fromRed(),unblinder:t.invm(e.modulus)}}(t),n=t.modulus.byteLength(),i=(p.mont(t.modulus),new p(e).mul(r.blinder).umod(t.modulus)),o=i.toRed(p.mont(t.prime1)),a=i.toRed(p.mont(t.prime2)),s=t.coefficient,u=t.prime1,c=t.prime2,l=o.redPow(t.exponent1),f=a.redPow(t.exponent2);l=l.fromRed(),f=f.fromRed();var h=l.isub(f).imul(s).umod(u);return h.imul(c),f.iadd(h),new d(f.imul(r.unblinder).umod(t.modulus).toArray(!1,n))}function m(e){for(var t=e.modulus.byteLength(),r=new p(n(t));0<=r.cmp(e.modulus)||!r.umod(e.prime1)||!r.umod(e.prime2);)r=new p(n(t));return r}(r.exports=e).getr=m}).call(this,t("buffer").Buffer)},{"bn.js":17,buffer:49,randombytes:130}],41:[function(e,t,r){t.exports=e("./browser/algorithms.json")},{"./browser/algorithms.json":42}],42:[function(e,t,r){t.exports={sha224WithRSAEncryption:{sign:"rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},"RSA-SHA224":{sign:"ecdsa/rsa",hash:"sha224",id:"302d300d06096086480165030402040500041c"},sha256WithRSAEncryption:{sign:"rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},"RSA-SHA256":{sign:"ecdsa/rsa",hash:"sha256",id:"3031300d060960864801650304020105000420"},sha384WithRSAEncryption:{sign:"rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},"RSA-SHA384":{sign:"ecdsa/rsa",hash:"sha384",id:"3041300d060960864801650304020205000430"},sha512WithRSAEncryption:{sign:"rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA512":{sign:"ecdsa/rsa",hash:"sha512",id:"3051300d060960864801650304020305000440"},"RSA-SHA1":{sign:"rsa",hash:"sha1",id:"3021300906052b0e03021a05000414"},"ecdsa-with-SHA1":{sign:"ecdsa",hash:"sha1",id:""},sha256:{sign:"ecdsa",hash:"sha256",id:""},sha224:{sign:"ecdsa",hash:"sha224",id:""},sha384:{sign:"ecdsa",hash:"sha384",id:""},sha512:{sign:"ecdsa",hash:"sha512",id:""},"DSA-SHA":{sign:"dsa",hash:"sha1",id:""},"DSA-SHA1":{sign:"dsa",hash:"sha1",id:""},DSA:{sign:"dsa",hash:"sha1",id:""},"DSA-WITH-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-SHA224":{sign:"dsa",hash:"sha224",id:""},"DSA-WITH-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-SHA256":{sign:"dsa",hash:"sha256",id:""},"DSA-WITH-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-SHA384":{sign:"dsa",hash:"sha384",id:""},"DSA-WITH-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-SHA512":{sign:"dsa",hash:"sha512",id:""},"DSA-RIPEMD160":{sign:"dsa",hash:"rmd160",id:""},ripemd160WithRSA:{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},"RSA-RIPEMD160":{sign:"rsa",hash:"rmd160",id:"3021300906052b2403020105000414"},md5WithRSAEncryption:{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"},"RSA-MD5":{sign:"rsa",hash:"md5",id:"3020300c06082a864886f70d020505000410"}}},{}],43:[function(e,t,r){t.exports={"1.3.132.0.10":"secp256k1","1.3.132.0.33":"p224","1.2.840.10045.3.1.1":"p192","1.2.840.10045.3.1.7":"p256","1.3.132.0.34":"p384","1.3.132.0.35":"p521"}},{}],44:[function(f,h,e){(function(i){var r=f("create-hash"),n=f("stream"),e=f("inherits"),o=f("./sign"),a=f("./verify"),s=f("./algorithms.json");function t(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hashType=t.hash,this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function u(e){n.Writable.call(this);var t=s[e];if(!t)throw new Error("Unknown message digest");this._hash=r(t.hash),this._tag=t.id,this._signType=t.sign}function c(e){return new t(e)}function l(e){return new u(e)}Object.keys(s).forEach(function(e){s[e].id=new i(s[e].id,"hex"),s[e.toLowerCase()]=s[e]}),e(t,n.Writable),t.prototype._write=function(e,t,r){this._hash.update(e),r()},t.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},t.prototype.sign=function(e,t){this.end();var r=this._hash.digest(),n=o(r,e,this._hashType,this._signType,this._tag);return t?n.toString(t):n},e(u,n.Writable),u.prototype._write=function(e,t,r){this._hash.update(e),r()},u.prototype.update=function(e,t){return"string"==typeof e&&(e=new i(e,t)),this._hash.update(e),this},u.prototype.verify=function(e,t,r){"string"==typeof t&&(t=new i(t,r)),this.end();var n=this._hash.digest();return a(t,n,e,this._signType,this._tag)},h.exports={Sign:c,Verify:l,createSign:c,createVerify:l}}).call(this,f("buffer").Buffer)},{"./algorithms.json":42,"./sign":45,"./verify":46,buffer:49,"create-hash":53,inherits:103,stream:152}],45:[function(e,t,r){(function(m){var c=e("create-hmac"),l=e("browserify-rsa"),f=e("elliptic").ec,g=e("bn.js"),h=e("parse-asn1"),d=e("./curves.json");function v(e,t,r,n){if((e=new m(e.toArray())).length<t.byteLength()){var i=new m(t.byteLength()-e.length);i.fill(0),e=m.concat([i,e])}var o=r.length,a=function(e,t){e=(e=y(e,t)).mod(t);var r=new m(e.toArray());if(r.length<t.byteLength()){var n=new m(t.byteLength()-r.length);n.fill(0),r=m.concat([n,r])}return r}(r,t),s=new m(o);s.fill(1);var u=new m(o);return u.fill(0),u=c(n,u).update(s).update(new m([0])).update(e).update(a).digest(),s=c(n,u).update(s).digest(),{k:u=c(n,u).update(s).update(new m([1])).update(e).update(a).digest(),v:s=c(n,u).update(s).digest()}}function y(e,t){var r=new g(e),n=(e.length<<3)-t.bitLength();return 0<n&&r.ishrn(n),r}function _(e,t,r){var n,i;do{for(n=new m(0);8*n.length<e.bitLength();)t.v=c(r,t.k).update(t.v).digest(),n=m.concat([n,t.v]);i=y(n,e),t.k=c(r,t.k).update(t.v).update(new m([0])).digest(),t.v=c(r,t.k).update(t.v).digest()}while(-1!==i.cmp(e));return i}t.exports=function(e,t,r,n,i){var o=h(t);if(o.curve){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");return function(e,t){var r=d[t.curve.join(".")];if(!r)throw new Error("unknown curve "+t.curve.join("."));var n=new f(r).keyFromPrivate(t.privateKey).sign(e);return new m(n.toDER())}(e,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong private key type");return function(e,t,r){for(var n,i,o,a,s=t.params.priv_key,u=t.params.p,c=t.params.q,l=t.params.g,f=new g(0),h=y(e,c).mod(c),d=!1,p=v(s,c,e,r);!1===d;)n=_(c,p,r),i=n,o=u,a=c,f=l.toRed(g.mont(o)).redPow(i).fromRed().mod(a),0===(d=n.invm(c).imul(h.add(s.mul(f))).mod(c)).cmpn(0)&&(d=!1,f=new g(0));return function(e,t){e=e.toArray(),t=t.toArray(),128&e[0]&&(e=[0].concat(e)),128&t[0]&&(t=[0].concat(t));var r=[48,e.length+t.length+4,2,e.length];return r=r.concat(e,[2,t.length],t),new m(r)}(f,d)}(e,o,r)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong private key type");e=m.concat([i,e]);for(var a=o.modulus.byteLength(),s=[0,1];e.length+s.length+1<a;)s.push(255);s.push(0);for(var u=-1;++u<e.length;)s.push(e[u]);return l(s,o)},t.exports.getKey=v,t.exports.makeKey=_}).call(this,e("buffer").Buffer)},{"./curves.json":43,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hmac":56,elliptic:69,"parse-asn1":115}],46:[function(e,t,r){(function(h){var d=e("bn.js"),p=e("elliptic").ec,m=e("parse-asn1"),g=e("./curves.json");function v(e,t){if(e.cmpn(0)<=0)throw new Error("invalid sig");if(e.cmp(t)>=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var o=m(r);if("ec"===o.type){if("ecdsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=g[r.data.algorithm.curve.join(".")];if(!n)throw new Error("unknown curve "+r.data.algorithm.curve.join("."));var i=new p(n),o=r.data.subjectPrivateKey.data;return i.verify(t,e,o)}(e,t,o)}if("dsa"===o.type){if("dsa"!==n)throw new Error("wrong public key type");return function(e,t,r){var n=r.data.p,i=r.data.q,o=r.data.g,a=r.data.pub_key,s=m.signature.decode(e,"der"),u=s.s,c=s.r;v(u,i),v(c,i);var l=d.mont(n),f=u.invm(i);return 0===o.toRed(l).redPow(new d(t).mul(f).mod(i)).fromRed().mul(a.toRed(l).redPow(c.mul(f).mod(i)).fromRed()).mod(n).mod(i).cmp(c)}(e,t,o)}if("rsa"!==n&&"ecdsa/rsa"!==n)throw new Error("wrong public key type");t=h.concat([i,t]);for(var a=o.modulus.byteLength(),s=[1],u=0;t.length+s.length+2<a;)s.push(255),u++;s.push(0);for(var c=-1;++c<t.length;)s.push(t[c]);s=new h(s);var l=d.mont(o.modulus);e=(e=new d(e).toRed(l)).redPow(new d(o.publicExponent)),e=new h(e.fromRed().toArray());var f=u<8?1:0;for(a=Math.min(e.length,s.length),e.length!==s.length&&(f=1),c=-1;++c<a;)f|=e[c]^s[c];return 0===f}}).call(this,e("buffer").Buffer)},{"./curves.json":43,"bn.js":17,buffer:49,elliptic:69,"parse-asn1":115}],47:[function(e,t,r){arguments[4][19][0].apply(r,arguments)},{dup:19}],48:[function(e,t,r){(function(o){t.exports=function(e,t){for(var r=Math.min(e.length,t.length),n=new o(r),i=0;i<r;++i)n[i]=e[i]^t[i];return n}}).call(this,e("buffer").Buffer)},{buffer:49}],49:[function(j,e,F){(function(e){"use strict";var n=j("base64-js"),o=j("ieee754"),a=j("isarray");function r(){return f.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(e,t){if(r()<t)throw new RangeError("Invalid typed array length");return f.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=f.prototype:(null===e&&(e=new f(t)),e.length=t),e}function f(e,t,r){if(!(f.TYPED_ARRAY_SUPPORT||this instanceof f))return new f(e,t,r);if("number"!=typeof e)return i(this,e,t,r);if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return c(this,e)}function i(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n);f.TYPED_ARRAY_SUPPORT?(e=t).__proto__=f.prototype:e=l(e,t);return e}(e,t,r,n):"string"==typeof t?function(e,t,r){"string"==typeof r&&""!==r||(r="utf8");if(!f.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|d(t,r),i=(e=s(e,n)).write(t,r);i!==n&&(e=e.slice(0,i));return e}(e,t,r):function(e,t){if(f.isBuffer(t)){var r=0|h(t.length);return 0===(e=s(e,r)).length||t.copy(e,0,0,r),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||function(e){return e!=e}(t.length)?s(e,0):l(e,t);if("Buffer"===t.type&&a(t.data))return l(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function c(e,t){if(u(t),e=s(e,t<0?0:0|h(t)),!f.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function l(e,t){var r=t.length<0?0:0|h(t.length);e=s(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function h(e){if(e>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|e}function d(e,t){if(f.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return D(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return L(e).length;default:if(n)return D(e).length;t=(""+t).toLowerCase(),n=!0}}function p(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function m(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647<r?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=i?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(i)return-1;r=e.length-1}else if(r<0){if(!i)return-1;r=0}if("string"==typeof t&&(t=f.from(t,n)),f.isBuffer(t))return 0===t.length?-1:g(e,t,r,n,i);if("number"==typeof t)return t&=255,f.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):g(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function g(e,t,r,n,i){var o,a=1,s=e.length,u=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;s/=a=2,u/=2,r/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=r;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(s<r+u&&(r=s-u),o=r;0<=o;o--){for(var f=!0,h=0;h<u;h++)if(c(e,o+h)!==c(t,h)){f=!1;break}if(f)return o}return-1}function v(e,t,r,n){r=Number(r)||0;var i=e.length-r;n?i<(n=Number(n))&&(n=i):n=i;var o=t.length;if(o%2!=0)throw new TypeError("Invalid hex string");o/2<n&&(n=o/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function y(e,t,r,n){return N(function(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}(t),e,r,n)}function _(e,t,r){return 0===t&&r===e.length?n.fromByteArray(e):n.fromByteArray(e.slice(t,r))}function b(e,t,r){r=Math.min(e.length,r);for(var n=[],i=t;i<r;){var o,a,s,u,c=e[i],l=null,f=239<c?4:223<c?3:191<c?2:1;if(i+f<=r)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(o=e[i+1]))&&127<(u=(31&c)<<6|63&o)&&(l=u);break;case 3:o=e[i+1],a=e[i+2],128==(192&o)&&128==(192&a)&&2047<(u=(15&c)<<12|(63&o)<<6|63&a)&&(u<55296||57343<u)&&(l=u);break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&65535<(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)&&u<1114112&&(l=u)}null===l?(l=65533,f=1):65535<l&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),i+=f}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",n=0;for(;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=x));return r}(n)}F.Buffer=f,F.SlowBuffer=function(e){+e!=e&&(e=0);return f.alloc(+e)},F.INSPECT_MAX_BYTES=50,f.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),F.kMaxLength=r(),f.poolSize=8192,f._augment=function(e){return e.__proto__=f.prototype,e},f.from=function(e,t,r){return i(null,e,t,r)},f.TYPED_ARRAY_SUPPORT&&(f.prototype.__proto__=Uint8Array.prototype,f.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&f[Symbol.species]===f&&Object.defineProperty(f,Symbol.species,{value:null,configurable:!0})),f.alloc=function(e,t,r){return function(e,t,r,n){return u(t),t<=0?s(e,t):void 0!==r?"string"==typeof n?s(e,t).fill(r,n):s(e,t).fill(r):s(e,t)}(null,e,t,r)},f.allocUnsafe=function(e){return c(null,e)},f.allocUnsafeSlow=function(e){return c(null,e)},f.isBuffer=function(e){return!(null==e||!e._isBuffer)},f.compare=function(e,t){if(!f.isBuffer(e)||!f.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,i=0,o=Math.min(r,n);i<o;++i)if(e[i]!==t[i]){r=e[i],n=t[i];break}return r<n?-1:n<r?1:0},f.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},f.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return f.alloc(0);var r;if(void 0===t)for(r=t=0;r<e.length;++r)t+=e[r].length;var n=f.allocUnsafe(t),i=0;for(r=0;r<e.length;++r){var o=e[r];if(!f.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(n,i),i+=o.length}return n},f.byteLength=d,f.prototype._isBuffer=!0,f.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)p(this,t,t+1);return this},f.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)p(this,t,t+3),p(this,t+1,t+2);return this},f.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)p(this,t,t+7),p(this,t+1,t+6),p(this,t+2,t+5),p(this,t+3,t+4);return this},f.prototype.toString=function(){var e=0|this.length;return 0==e?"":0===arguments.length?b(this,0,e):function(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return S(this,t,r);case"utf8":case"utf-8":return b(this,t,r);case"ascii":return w(this,t,r);case"latin1":case"binary":return T(this,t,r);case"base64":return _(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}.apply(this,arguments)},f.prototype.equals=function(e){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===f.compare(this,e)},f.prototype.inspect=function(){var e="",t=F.INSPECT_MAX_BYTES;return 0<this.length&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},f.prototype.compare=function(e,t,r,n,i){if(!f.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),t<0||r>e.length||n<0||i>this.length)throw new RangeError("out of range index");if(i<=n&&r<=t)return 0;if(i<=n)return-1;if(r<=t)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(n,i),c=e.slice(t,r),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},f.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},f.prototype.indexOf=function(e,t,r){return m(this,e,t,r,!0)},f.prototype.lastIndexOf=function(e,t,r){return m(this,e,t,r,!1)},f.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var i=this.length-t;if((void 0===r||i<r)&&(r=i),0<e.length&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,c,l,f,h,d,p=!1;;)switch(n){case"hex":return v(this,e,t,r);case"utf8":case"utf-8":return h=t,d=r,N(D(e,(f=this).length-h),f,h,d);case"ascii":return y(this,e,t,r);case"latin1":case"binary":return y(this,e,t,r);case"base64":return u=this,c=t,l=r,N(L(e),u,c,l);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return a=t,s=r,N(function(e,t){for(var r,n,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=e.charCodeAt(a),n=r>>8,i=r%256,o.push(i),o.push(n);return o}(e,(o=this).length-a),o,a,s);default:if(p)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},f.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var x=4096;function w(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(127&e[i]);return n}function T(e,t,r){var n="";r=Math.min(e.length,r);for(var i=t;i<r;++i)n+=String.fromCharCode(e[i]);return n}function S(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||n<r)&&(r=n);for(var i="",o=t;o<r;++o)i+=I(e[o]);return i}function M(e,t,r){for(var n=e.slice(t,r),i="",o=0;o<n.length;o+=2)i+=String.fromCharCode(n[o]+256*n[o+1]);return i}function P(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(r<e+t)throw new RangeError("Trying to access beyond buffer length")}function E(e,t,r,n,i,o){if(!f.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(i<t||t<o)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function C(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i<o;++i)e[r+i]=(t&255<<8*(n?i:1-i))>>>8*(n?i:1-i)}function k(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i<o;++i)e[r+i]=t>>>8*(n?i:3-i)&255}function A(e,t,r,n,i,o){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function O(e,t,r,n,i){return i||A(e,0,r,4),o.write(e,t,r,n,23,4),r+4}function R(e,t,r,n,i){return i||A(e,0,r,8),o.write(e,t,r,n,52,8),r+8}f.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):n<e&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):n<t&&(t=n),t<e&&(t=e),f.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=f.prototype;else{var i=t-e;r=new f(i,void 0);for(var o=0;o<i;++o)r[o]=this[o+e]}return r},f.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return n},f.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e+--t],i=1;0<t&&(i*=256);)n+=this[e+--t]*i;return n},f.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},f.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},f.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},f.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},f.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},f.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=this[e],i=1,o=0;++o<t&&(i*=256);)n+=this[e+o]*i;return(i*=128)<=n&&(n-=Math.pow(2,8*t)),n},f.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||P(e,t,this.length);for(var n=t,i=1,o=this[e+--n];0<n&&(i*=256);)o+=this[e+--n]*i;return(i*=128)<=o&&(o-=Math.pow(2,8*t)),o},f.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},f.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},f.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},f.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},f.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},f.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},f.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},f.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},f.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var i=1,o=0;for(this[t]=255&e;++o<r&&(i*=256);)this[t+o]=e/i&255;return t+r},f.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||E(this,e,t,r,Math.pow(2,8*r)-1,0);var i=r-1,o=1;for(this[t+i]=255&e;0<=--i&&(o*=256);)this[t+i]=e/o&255;return t+r},f.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,1,255,0),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},f.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):k(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,4,4294967295,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},f.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<r&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var i=Math.pow(2,8*r-1);E(this,e,t,r,i-1,-i)}var o=r-1,a=1,s=0;for(this[t+o]=255&e;0<=--o&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+r},f.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,1,127,-128),f.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},f.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):C(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):C(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,4,2147483647,-2147483648),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):k(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||E(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):k(this,e,t,!1),t+4},f.prototype.writeFloatLE=function(e,t,r){return O(this,e,t,!0,r)},f.prototype.writeFloatBE=function(e,t,r){return O(this,e,t,!1,r)},f.prototype.writeDoubleLE=function(e,t,r){return R(this,e,t,!0,r)},f.prototype.writeDoubleBE=function(e,t,r){return R(this,e,t,!1,r)},f.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),0<n&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var i,o=n-r;if(this===e&&r<t&&t<n)for(i=o-1;0<=i;--i)e[i+t]=this[i+r];else if(o<1e3||!f.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)e[i+t]=this[i+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+o),t);return o},f.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var i=e.charCodeAt(0);i<256&&(e=i)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!f.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var o;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o<r;++o)this[o]=e;else{var a=f.isBuffer(e)?e:D(new f(e,n).toString()),s=a.length;for(o=0;o<r-t;++o)this[o+t]=a[o%s]}return this};var t=/[^+\/0-9A-Za-z-_]/g;function I(e){return e<16?"0"+e.toString(16):e.toString(16)}function D(e,t){var r;t=t||1/0;for(var n=e.length,i=null,o=[],a=0;a<n;++a){if(55295<(r=e.charCodeAt(a))&&r<57344){if(!i){if(56319<r){-1<(t-=3)&&o.push(239,191,189);continue}if(a+1===n){-1<(t-=3)&&o.push(239,191,189);continue}i=r;continue}if(r<56320){-1<(t-=3)&&o.push(239,191,189),i=r;continue}r=65536+(i-55296<<10|r-56320)}else i&&-1<(t-=3)&&o.push(239,191,189);if(i=null,r<128){if((t-=1)<0)break;o.push(r)}else if(r<2048){if((t-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return o}function L(e){return n.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(t,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function N(e,t,r,n){for(var i=0;i<n&&!(i+r>=t.length||i>=e.length);++i)t[i+r]=e[i];return i}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":16,ieee754:101,isarray:105}],50:[function(e,t,r){var i=e("safe-buffer").Buffer,n=e("stream").Transform,o=e("string_decoder").StringDecoder;function a(e){n.call(this),this.hashMode="string"==typeof e,this.hashMode?this[e]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}e("inherits")(a,n),a.prototype.update=function(e,t,r){"string"==typeof e&&(e=i.from(e,t));var n=this._update(e);return this.hashMode?this:(r&&(n=this._toString(n,r)),n)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(e,t,r){var n;try{this.hashMode?this._update(e):this.push(this._update(e))}catch(e){n=e}finally{r(n)}},a.prototype._flush=function(e){var t;try{this.push(this.__final())}catch(e){t=e}e(t)},a.prototype._finalOrDigest=function(e){var t=this.__final()||i.alloc(0);return e&&(t=this._toString(t,e,!0)),t},a.prototype._toString=function(e,t,r){if(this._decoder||(this._decoder=new o(t),this._encoding=t),this._encoding!==t)throw new Error("can't switch encodings");var n=this._decoder.write(e);return r&&(n+=this._decoder.end()),n},t.exports=a},{inherits:103,"safe-buffer":143,stream:152,string_decoder:153}],51:[function(e,t,r){(function(e){function t(e){return Object.prototype.toString.call(e)}r.isArray=function(e){return Array.isArray?Array.isArray(e):"[object Array]"===t(e)},r.isBoolean=function(e){return"boolean"==typeof e},r.isNull=function(e){return null===e},r.isNullOrUndefined=function(e){return null==e},r.isNumber=function(e){return"number"==typeof e},r.isString=function(e){return"string"==typeof e},r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=function(e){return void 0===e},r.isRegExp=function(e){return"[object RegExp]"===t(e)},r.isObject=function(e){return"object"==typeof e&&null!==e},r.isDate=function(e){return"[object Date]"===t(e)},r.isError=function(e){return"[object Error]"===t(e)||e instanceof Error},r.isFunction=function(e){return"function"==typeof e},r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=e.isBuffer}).call(this,{isBuffer:e("../../is-buffer/index.js")})},{"../../is-buffer/index.js":104}],52:[function(e,s,t){(function(o){var t=e("elliptic"),n=e("bn.js");s.exports=function(e){return new i(e)};var r={secp256k1:{name:"secp256k1",byteLength:32},secp224r1:{name:"p224",byteLength:28},prime256v1:{name:"p256",byteLength:32},prime192v1:{name:"p192",byteLength:24},ed25519:{name:"ed25519",byteLength:32},secp384r1:{name:"p384",byteLength:48},secp521r1:{name:"p521",byteLength:66}};function i(e){this.curveType=r[e],this.curveType||(this.curveType={name:e}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(e,t,r){Array.isArray(e)||(e=e.toArray());var n=new o(e);if(r&&n.length<r){var i=new o(r-n.length);i.fill(0),n=o.concat([i,n])}return t?n.toString(t):n}r.p224=r.secp224r1,r.p256=r.secp256r1=r.prime256v1,r.p192=r.secp192r1=r.prime192v1,r.p384=r.secp384r1,r.p521=r.secp521r1,i.prototype.generateKeys=function(e,t){return this.keys=this.curve.genKeyPair(),this.getPublicKey(e,t)},i.prototype.computeSecret=function(e,t,r){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),a(this.curve.keyFromPublic(e).getPublic().mul(this.keys.getPrivate()).getX(),r,this.curveType.byteLength)},i.prototype.getPublicKey=function(e,t){var r=this.keys.getPublic("compressed"===t,!0);return"hybrid"===t&&(r[r.length-1]%2?r[0]=7:r[0]=6),a(r,e)},i.prototype.getPrivateKey=function(e){return a(this.keys.getPrivate(),e)},i.prototype.setPublicKey=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.keys._importPublic(e),this},i.prototype.setPrivateKey=function(e,t){t=t||"utf8",o.isBuffer(e)||(e=new o(e,t));var r=new n(e);return r=r.toString(16),this.keys._importPrivate(r),this}}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49,elliptic:69}],53:[function(u,c,e){(function(r){"use strict";var e=u("inherits"),t=u("./md5"),n=u("ripemd160"),i=u("sha.js"),o=u("cipher-base");function a(e){o.call(this,"digest"),this._hash=e,this.buffers=[]}function s(e){o.call(this,"digest"),this._hash=e}e(a,o),a.prototype._update=function(e){this.buffers.push(e)},a.prototype._final=function(){var e=r.concat(this.buffers),t=this._hash(e);return this.buffers=null,t},e(s,o),s.prototype._update=function(e){this._hash.update(e)},s.prototype._final=function(){return this._hash.digest()},c.exports=function(e){return"md5"===(e=e.toLowerCase())?new a(t):new s("rmd160"===e||"ripemd160"===e?new n:i(e))}}).call(this,u("buffer").Buffer)},{"./md5":55,buffer:49,"cipher-base":50,inherits:103,ripemd160:142,"sha.js":145}],54:[function(e,t,r){(function(o){"use strict";var a=new o(4);a.fill(0);t.exports=function(e,t){var r=t(function(e){if(e.length%4!=0){var t=e.length+(4-e.length%4);e=o.concat([e,a],t)}for(var r=new Array(e.length>>>2),n=0,i=0;n<e.length;n+=4,i++)r[i]=e.readInt32LE(n);return r}(e),8*e.length);e=new o(16);for(var n=0;n<r.length;n++)e.writeInt32LE(r[n],n<<2,!0);return e}}).call(this,e("buffer").Buffer)},{buffer:49}],55:[function(e,t,r){"use strict";var n=e("./make-hash");function i(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a<e.length;a+=16){var s=r,u=n,c=i,l=o;n=p(n=p(n=p(n=p(n=d(n=d(n=d(n=d(n=h(n=h(n=h(n=h(n=f(n=f(n=f(n=f(n,i=f(i,o=f(o,r=f(r,n,i,o,e[a+0],7,-680876936),n,i,e[a+1],12,-389564586),r,n,e[a+2],17,606105819),o,r,e[a+3],22,-1044525330),i=f(i,o=f(o,r=f(r,n,i,o,e[a+4],7,-176418897),n,i,e[a+5],12,1200080426),r,n,e[a+6],17,-1473231341),o,r,e[a+7],22,-45705983),i=f(i,o=f(o,r=f(r,n,i,o,e[a+8],7,1770035416),n,i,e[a+9],12,-1958414417),r,n,e[a+10],17,-42063),o,r,e[a+11],22,-1990404162),i=f(i,o=f(o,r=f(r,n,i,o,e[a+12],7,1804603682),n,i,e[a+13],12,-40341101),r,n,e[a+14],17,-1502002290),o,r,e[a+15],22,1236535329),i=h(i,o=h(o,r=h(r,n,i,o,e[a+1],5,-165796510),n,i,e[a+6],9,-1069501632),r,n,e[a+11],14,643717713),o,r,e[a+0],20,-373897302),i=h(i,o=h(o,r=h(r,n,i,o,e[a+5],5,-701558691),n,i,e[a+10],9,38016083),r,n,e[a+15],14,-660478335),o,r,e[a+4],20,-405537848),i=h(i,o=h(o,r=h(r,n,i,o,e[a+9],5,568446438),n,i,e[a+14],9,-1019803690),r,n,e[a+3],14,-187363961),o,r,e[a+8],20,1163531501),i=h(i,o=h(o,r=h(r,n,i,o,e[a+13],5,-1444681467),n,i,e[a+2],9,-51403784),r,n,e[a+7],14,1735328473),o,r,e[a+12],20,-1926607734),i=d(i,o=d(o,r=d(r,n,i,o,e[a+5],4,-378558),n,i,e[a+8],11,-2022574463),r,n,e[a+11],16,1839030562),o,r,e[a+14],23,-35309556),i=d(i,o=d(o,r=d(r,n,i,o,e[a+1],4,-1530992060),n,i,e[a+4],11,1272893353),r,n,e[a+7],16,-155497632),o,r,e[a+10],23,-1094730640),i=d(i,o=d(o,r=d(r,n,i,o,e[a+13],4,681279174),n,i,e[a+0],11,-358537222),r,n,e[a+3],16,-722521979),o,r,e[a+6],23,76029189),i=d(i,o=d(o,r=d(r,n,i,o,e[a+9],4,-640364487),n,i,e[a+12],11,-421815835),r,n,e[a+15],16,530742520),o,r,e[a+2],23,-995338651),i=p(i,o=p(o,r=p(r,n,i,o,e[a+0],6,-198630844),n,i,e[a+7],10,1126891415),r,n,e[a+14],15,-1416354905),o,r,e[a+5],21,-57434055),i=p(i,o=p(o,r=p(r,n,i,o,e[a+12],6,1700485571),n,i,e[a+3],10,-1894986606),r,n,e[a+10],15,-1051523),o,r,e[a+1],21,-2054922799),i=p(i,o=p(o,r=p(r,n,i,o,e[a+8],6,1873313359),n,i,e[a+15],10,-30611744),r,n,e[a+6],15,-1560198380),o,r,e[a+13],21,1309151649),i=p(i,o=p(o,r=p(r,n,i,o,e[a+4],6,-145523070),n,i,e[a+11],10,-1120210379),r,n,e[a+2],15,718787259),o,r,e[a+9],21,-343485551),r=m(r,s),n=m(n,u),i=m(i,c),o=m(o,l)}return[r,n,i,o]}function s(e,t,r,n,i,o){return m(function(e,t){return e<<t|e>>>32-t}(m(m(t,e),m(n,o)),i),r)}function f(e,t,r,n,i,o,a){return s(t&r|~t&n,e,t,i,o,a)}function h(e,t,r,n,i,o,a){return s(t&n|r&~n,e,t,i,o,a)}function d(e,t,r,n,i,o,a){return s(t^r^n,e,t,i,o,a)}function p(e,t,r,n,i,o,a){return s(r^(t|~n),e,t,i,o,a)}function m(e,t){var r=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(r>>16)<<16|65535&r}t.exports=function(e){return n(e,i)}},{"./make-hash":54}],56:[function(e,t,r){"use strict";var n=e("inherits"),i=e("./legacy"),a=e("cipher-base"),s=e("safe-buffer").Buffer,o=e("create-hash/md5"),u=e("ripemd160"),c=e("sha.js"),l=s.alloc(128);function f(e,t){a.call(this,"digest"),"string"==typeof t&&(t=s.from(t));var r="sha512"===e||"sha384"===e?128:64;(this._alg=e,(this._key=t).length>r)?t=("rmd160"===e?new u:c(e)).update(t).digest():t.length<r&&(t=s.concat([t,l],r));for(var n=this._ipad=s.allocUnsafe(r),i=this._opad=s.allocUnsafe(r),o=0;o<r;o++)n[o]=54^t[o],i[o]=92^t[o];this._hash="rmd160"===e?new u:c(e),this._hash.update(n)}n(f,a),f.prototype._update=function(e){this._hash.update(e)},f.prototype._final=function(){var e=this._hash.digest();return("rmd160"===this._alg?new u:c(this._alg)).update(this._opad).update(e).digest()},t.exports=function(e,t){return"rmd160"===(e=e.toLowerCase())||"ripemd160"===e?new f("rmd160",t):"md5"===e?new i(o,t):new f(e,t)}},{"./legacy":57,"cipher-base":50,"create-hash/md5":55,inherits:103,ripemd160:142,"safe-buffer":143,"sha.js":145}],57:[function(e,t,r){"use strict";var n=e("inherits"),o=e("safe-buffer").Buffer,a=e("cipher-base"),s=o.alloc(128);function i(e,t){a.call(this,"digest"),"string"==typeof t&&(t=o.from(t)),this._alg=e,64<(this._key=t).length?t=e(t):t.length<64&&(t=o.concat([t,s],64));for(var r=this._ipad=o.allocUnsafe(64),n=this._opad=o.allocUnsafe(64),i=0;i<64;i++)r[i]=54^t[i],n[i]=92^t[i];this._hash=[r]}n(i,a),i.prototype._update=function(e){this._hash.push(e)},i.prototype._final=function(){var e=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,e]))},t.exports=i},{"cipher-base":50,inherits:103,"safe-buffer":143}],58:[function(e,t,r){"use strict";r.randomBytes=r.rng=r.pseudoRandomBytes=r.prng=e("randombytes"),r.createHash=r.Hash=e("create-hash"),r.createHmac=r.Hmac=e("create-hmac");var n=e("browserify-sign/algos"),i=Object.keys(n),o=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(i);r.getHashes=function(){return o};var a=e("pbkdf2");r.pbkdf2=a.pbkdf2,r.pbkdf2Sync=a.pbkdf2Sync;var s=e("browserify-cipher");r.Cipher=s.Cipher,r.createCipher=s.createCipher,r.Cipheriv=s.Cipheriv,r.createCipheriv=s.createCipheriv,r.Decipher=s.Decipher,r.createDecipher=s.createDecipher,r.Decipheriv=s.Decipheriv,r.createDecipheriv=s.createDecipheriv,r.getCiphers=s.getCiphers,r.listCiphers=s.listCiphers;var u=e("diffie-hellman");r.DiffieHellmanGroup=u.DiffieHellmanGroup,r.createDiffieHellmanGroup=u.createDiffieHellmanGroup,r.getDiffieHellman=u.getDiffieHellman,r.createDiffieHellman=u.createDiffieHellman,r.DiffieHellman=u.DiffieHellman;var c=e("browserify-sign");r.createSign=c.createSign,r.Sign=c.Sign,r.createVerify=c.createVerify,r.Verify=c.Verify,r.createECDH=e("create-ecdh");var l=e("public-encrypt");r.publicEncrypt=l.publicEncrypt,r.privateEncrypt=l.privateEncrypt,r.publicDecrypt=l.publicDecrypt,r.privateDecrypt=l.privateDecrypt;var f=e("randomfill");r.randomFill=f.randomFill,r.randomFillSync=f.randomFillSync,r.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},r.constants={DH_CHECK_P_NOT_SAFE_PRIME:2,DH_CHECK_P_NOT_PRIME:1,DH_UNABLE_TO_CHECK_GENERATOR:4,DH_NOT_SUITABLE_GENERATOR:8,NPN_ENABLED:1,ALPN_ENABLED:1,RSA_PKCS1_PADDING:1,RSA_SSLV23_PADDING:2,RSA_NO_PADDING:3,RSA_PKCS1_OAEP_PADDING:4,RSA_X931_PADDING:5,RSA_PKCS1_PSS_PADDING:6,POINT_CONVERSION_COMPRESSED:2,POINT_CONVERSION_UNCOMPRESSED:4,POINT_CONVERSION_HYBRID:6}},{"browserify-cipher":37,"browserify-sign":44,"browserify-sign/algos":41,"create-ecdh":52,"create-hash":53,"create-hmac":56,"diffie-hellman":65,pbkdf2:117,"public-encrypt":124,randombytes:130,randomfill:131}],59:[function(e,t,r){"use strict";r.utils=e("./des/utils"),r.Cipher=e("./des/cipher"),r.DES=e("./des/des"),r.CBC=e("./des/cbc"),r.EDE=e("./des/ede")},{"./des/cbc":60,"./des/cipher":61,"./des/des":62,"./des/ede":63,"./des/utils":64}],60:[function(e,t,r){"use strict";var n=e("minimalistic-assert"),o=e("inherits"),a={};function i(e){n.equal(e.length,8,"Invalid IV length"),this.iv=new Array(8);for(var t=0;t<this.iv.length;t++)this.iv[t]=e[t]}r.instantiate=function(t){function r(e){t.call(this,e),this._cbcInit()}o(r,t);for(var e=Object.keys(a),n=0;n<e.length;n++){var i=e[n];r.prototype[i]=a[i]}return r.create=function(e){return new r(e)},r},a._cbcInit=function(){var e=new i(this.options.iv);this._cbcState=e},a._update=function(e,t,r,n){var i=this._cbcState,o=this.constructor.super_.prototype,a=i.iv;if("encrypt"===this.type){for(var s=0;s<this.blockSize;s++)a[s]^=e[t+s];o._update.call(this,a,0,r,n);for(s=0;s<this.blockSize;s++)a[s]=r[n+s]}else{o._update.call(this,e,t,r,n);for(s=0;s<this.blockSize;s++)r[n+s]^=a[s];for(s=0;s<this.blockSize;s++)a[s]=e[t+s]}}},{inherits:103,"minimalistic-assert":109}],61:[function(e,t,r){"use strict";var n=e("minimalistic-assert");function i(e){this.options=e,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}(t.exports=i).prototype._init=function(){},i.prototype.update=function(e){return 0===e.length?[]:"decrypt"===this.type?this._updateDecrypt(e):this._updateEncrypt(e)},i.prototype._buffer=function(e,t){for(var r=Math.min(this.buffer.length-this.bufferOff,e.length-t),n=0;n<r;n++)this.buffer[this.bufferOff+n]=e[t+n];return this.bufferOff+=r,r},i.prototype._flushBuffer=function(e,t){return this._update(this.buffer,0,e,t),this.bufferOff=0,this.blockSize},i.prototype._updateEncrypt=function(e){var t=0,r=0,n=(this.bufferOff+e.length)/this.blockSize|0,i=new Array(n*this.blockSize);0!==this.bufferOff&&(t+=this._buffer(e,t),this.bufferOff===this.buffer.length&&(r+=this._flushBuffer(i,r)));for(var o=e.length-(e.length-t)%this.blockSize;t<o;t+=this.blockSize)this._update(e,t,i,r),r+=this.blockSize;for(;t<e.length;t++,this.bufferOff++)this.buffer[this.bufferOff]=e[t];return i},i.prototype._updateDecrypt=function(e){for(var t=0,r=0,n=Math.ceil((this.bufferOff+e.length)/this.blockSize)-1,i=new Array(n*this.blockSize);0<n;n--)t+=this._buffer(e,t),r+=this._flushBuffer(i,r);return t+=this._buffer(e,t),i},i.prototype.final=function(e){var t,r;return e&&(t=this.update(e)),r="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),t?t.concat(r):r},i.prototype._pad=function(e,t){if(0===t)return!1;for(;t<e.length;)e[t++]=0;return!0},i.prototype._finalEncrypt=function(){if(!this._pad(this.buffer,this.bufferOff))return[];var e=new Array(this.blockSize);return this._update(this.buffer,0,e,0),e},i.prototype._unpad=function(e){return e},i.prototype._finalDecrypt=function(){n.equal(this.bufferOff,this.blockSize,"Not enough data to decrypt");var e=new Array(this.blockSize);return this._flushBuffer(e,0),this._unpad(e)}},{"minimalistic-assert":109}],62:[function(e,t,r){"use strict";var a=e("minimalistic-assert"),n=e("inherits"),i=e("../des"),h=i.utils,o=i.Cipher;function s(){this.tmp=new Array(2),this.keys=null}function u(e){o.call(this,e);var t=new s;this._desState=t,this.deriveKeys(t,e.key)}n(u,o),(t.exports=u).create=function(e){return new u(e)};var c=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];u.prototype.deriveKeys=function(e,t){e.keys=new Array(32),a.equal(t.length,this.blockSize,"Invalid key length");var r=h.readUInt32BE(t,0),n=h.readUInt32BE(t,4);h.pc1(r,n,e.tmp,0),r=e.tmp[0],n=e.tmp[1];for(var i=0;i<e.keys.length;i+=2){var o=c[i>>>1];r=h.r28shl(r,o),n=h.r28shl(n,o),h.pc2(r,n,e.keys,i)}},u.prototype._update=function(e,t,r,n){var i=this._desState,o=h.readUInt32BE(e,t),a=h.readUInt32BE(e,t+4);h.ip(o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],"encrypt"===this.type?this._encrypt(i,o,a,i.tmp,0):this._decrypt(i,o,a,i.tmp,0),o=i.tmp[0],a=i.tmp[1],h.writeUInt32BE(r,o,n),h.writeUInt32BE(r,a,n+4)},u.prototype._pad=function(e,t){for(var r=e.length-t,n=t;n<e.length;n++)e[n]=r;return!0},u.prototype._unpad=function(e){for(var t=e[e.length-1],r=e.length-t;r<e.length;r++)a.equal(e[r],t);return e.slice(0,e.length-t)},u.prototype._encrypt=function(e,t,r,n,i){for(var o=t,a=r,s=0;s<e.keys.length;s+=2){var u=e.keys[s],c=e.keys[s+1];h.expand(a,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var l=h.substitute(u,c),f=a;a=(o^h.permute(l))>>>0,o=f}h.rip(a,o,n,i)},u.prototype._decrypt=function(e,t,r,n,i){for(var o=r,a=t,s=e.keys.length-2;0<=s;s-=2){var u=e.keys[s],c=e.keys[s+1];h.expand(o,e.tmp,0),u^=e.tmp[0],c^=e.tmp[1];var l=h.substitute(u,c),f=o;o=(a^h.permute(l))>>>0,a=f}h.rip(o,a,n,i)}},{"../des":59,inherits:103,"minimalistic-assert":109}],63:[function(e,t,r){"use strict";var o=e("minimalistic-assert"),n=e("inherits"),i=e("../des"),a=i.Cipher,s=i.DES;function u(e,t){o.equal(t.length,24,"Invalid key length");var r=t.slice(0,8),n=t.slice(8,16),i=t.slice(16,24);this.ciphers="encrypt"===e?[s.create({type:"encrypt",key:r}),s.create({type:"decrypt",key:n}),s.create({type:"encrypt",key:i})]:[s.create({type:"decrypt",key:i}),s.create({type:"encrypt",key:n}),s.create({type:"decrypt",key:r})]}function c(e){a.call(this,e);var t=new u(this.type,this.options.key);this._edeState=t}n(c,a),(t.exports=c).create=function(e){return new c(e)},c.prototype._update=function(e,t,r,n){var i=this._edeState;i.ciphers[0]._update(e,t,r,n),i.ciphers[1]._update(r,n,r,n),i.ciphers[2]._update(r,n,r,n)},c.prototype._pad=s.prototype._pad,c.prototype._unpad=s.prototype._unpad},{"../des":59,inherits:103,"minimalistic-assert":109}],64:[function(e,t,r){"use strict";r.readUInt32BE=function(e,t){return(e[0+t]<<24|e[1+t]<<16|e[2+t]<<8|e[3+t])>>>0},r.writeUInt32BE=function(e,t,r){e[0+r]=t>>>24,e[1+r]=t>>>16&255,e[2+r]=t>>>8&255,e[3+r]=255&t},r.ip=function(e,t,r,n){for(var i=0,o=0,a=6;0<=a;a-=2){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>>s+a&1}for(a=6;0<=a;a-=2){for(s=1;s<=25;s+=8)o<<=1,o|=t>>>s+a&1;for(s=1;s<=25;s+=8)o<<=1,o|=e>>>s+a&1}r[n+0]=i>>>0,r[n+1]=o>>>0},r.rip=function(e,t,r,n){for(var i=0,o=0,a=0;a<4;a++)for(var s=24;0<=s;s-=8)i<<=1,i|=t>>>s+a&1,i<<=1,i|=e>>>s+a&1;for(a=4;a<8;a++)for(s=24;0<=s;s-=8)o<<=1,o|=t>>>s+a&1,o<<=1,o|=e>>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.pc1=function(e,t,r,n){for(var i=0,o=0,a=7;5<=a;a--){for(var s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(s=0;s<=24;s+=8)i<<=1,i|=e>>s+a&1}for(s=0;s<=24;s+=8)i<<=1,i|=t>>s+a&1;for(a=1;a<=3;a++){for(s=0;s<=24;s+=8)o<<=1,o|=t>>s+a&1;for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1}for(s=0;s<=24;s+=8)o<<=1,o|=e>>s+a&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.r28shl=function(e,t){return e<<t&268435455|e>>>28-t};var u=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];r.pc2=function(e,t,r,n){for(var i=0,o=0,a=u.length>>>1,s=0;s<a;s++)i<<=1,i|=e>>>u[s]&1;for(s=a;s<u.length;s++)o<<=1,o|=t>>>u[s]&1;r[n+0]=i>>>0,r[n+1]=o>>>0},r.expand=function(e,t,r){var n=0,i=0;n=(1&e)<<5|e>>>27;for(var o=23;15<=o;o-=4)n<<=6,n|=e>>>o&63;for(o=11;3<=o;o-=4)i|=e>>>o&63,i<<=6;i|=(31&e)<<1|e>>>31,t[r+0]=n>>>0,t[r+1]=i>>>0};var i=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];r.substitute=function(e,t){for(var r=0,n=0;n<4;n++){r<<=4,r|=i[64*n+(e>>>18-6*n&63)]}for(n=0;n<4;n++){r<<=4,r|=i[256+64*n+(t>>>18-6*n&63)]}return r>>>0};var n=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];r.permute=function(e){for(var t=0,r=0;r<n.length;r++)t<<=1,t|=e>>>n[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.length<t;)n="0"+n;for(var i=[],o=0;o<t;o+=r)i.push(n.slice(o,o+r));return i.join(" ")}},{}],65:[function(e,t,r){(function(o){var a=e("./lib/generatePrime"),n=e("./lib/primes.json"),s=e("./lib/dh");var u={binary:!0,hex:!0,base64:!0};r.DiffieHellmanGroup=r.createDiffieHellmanGroup=r.getDiffieHellman=function(e){var t=new o(n[e].prime,"hex"),r=new o(n[e].gen,"hex");return new s(t,r)},r.createDiffieHellman=r.DiffieHellman=function e(t,r,n,i){return o.isBuffer(r)||void 0===u[r]?e(t,"binary",r,n):(r=r||"binary",i=i||"binary",n=n||new o([2]),o.isBuffer(n)||(n=new o(n,i)),"number"==typeof t?new s(a(t,n),n,!0):(o.isBuffer(t)||(t=new o(t,r)),new s(t,n,!0)))}}).call(this,e("buffer").Buffer)},{"./lib/dh":66,"./lib/generatePrime":67,"./lib/primes.json":68,buffer:49}],66:[function(m,g,e){(function(o){var a=m("bn.js"),s=new(m("miller-rabin")),u=new a(24),c=new a(11),l=new a(10),f=new a(3),h=new a(7),d=m("./generatePrime"),e=m("randombytes");function n(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._pub=new a(e),this}function i(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this._priv=new a(e),this}g.exports=t;var p={};function t(e,t,r){this.setGenerator(t),this.__prime=new a(e),this._prime=a.mont(this.__prime),this._primeLen=e.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,r?(this.setPublicKey=n,this.setPrivateKey=i):this._primeCode=8}function r(e,t){var r=new o(e.toArray());return t?r.toString(t):r}Object.defineProperty(t.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(e,t){var r=t.toString("hex"),n=[r,e.toString(16)].join("_");if(n in p)return p[n];var i,o=0;if(e.isEven()||!d.simpleSieve||!d.fermatTest(e)||!s.test(e))return o+=1,o+="02"===r||"05"===r?8:4,p[n]=o;switch(s.test(e.shrn(1))||(o+=2),r){case"02":e.mod(u).cmp(c)&&(o+=8);break;case"05":(i=e.mod(l)).cmp(f)&&i.cmp(h)&&(o+=8);break;default:o+=4}return p[n]=o}(this.__prime,this.__gen)),this._primeCode}}),t.prototype.generateKeys=function(){return this._priv||(this._priv=new a(e(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},t.prototype.computeSecret=function(e){var t=(e=(e=new a(e)).toRed(this._prime)).redPow(this._priv).fromRed(),r=new o(t.toArray()),n=this.getPrime();if(r.length<n.length){var i=new o(n.length-r.length);i.fill(0),r=o.concat([i,r])}return r},t.prototype.getPublicKey=function(e){return r(this._pub,e)},t.prototype.getPrivateKey=function(e){return r(this._priv,e)},t.prototype.getPrime=function(e){return r(this.__prime,e)},t.prototype.getGenerator=function(e){return r(this._gen,e)},t.prototype.setGenerator=function(e,t){return t=t||"utf8",o.isBuffer(e)||(e=new o(e,t)),this.__gen=e,this._gen=new a(e),this}}).call(this,m("buffer").Buffer)},{"./generatePrime":67,"bn.js":17,buffer:49,"miller-rabin":108,randombytes:130}],67:[function(e,t,r){var i=e("randombytes");(t.exports=n).simpleSieve=g,n.fermatTest=v;var o=e("bn.js"),a=new o(24),s=new(e("miller-rabin")),u=new o(1),c=new o(2),l=new o(5),f=(new o(16),new o(8),new o(10)),h=new o(3),d=(new o(7),new o(11)),p=new o(4),m=(new o(12),null);function g(e){for(var t=function(){if(null!==m)return m;var e=[];e[0]=2;for(var t=1,r=3;r<1048576;r+=2){for(var n=Math.ceil(Math.sqrt(r)),i=0;i<t&&e[i]<=n&&r%e[i]!=0;i++);t!==i&&e[i]<=n||(e[t++]=r)}return m=e}(),r=0;r<t.length;r++)if(0===e.modn(t[r]))return 0===e.cmpn(t[r]);return!0}function v(e){var t=o.mont(e);return 0===c.toRed(t).redPow(e.subn(1)).fromRed().cmpn(1)}function n(e,t){if(e<16)return new o(2===t||5===t?[140,123]:[140,39]);var r,n;for(t=new o(t);;){for(r=new o(i(Math.ceil(e/8)));r.bitLength()>e;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(c),t.cmp(c)){if(!t.cmp(l))for(;r.mod(f).cmp(h);)r.iadd(p)}else for(;r.mod(a).cmp(d);)r.iadd(p);if(g(n=r.shrn(1))&&g(r)&&v(n)&&v(r)&&s.test(n)&&s.test(r))return r}}},{"bn.js":17,"miller-rabin":108,randombytes:130}],68:[function(e,t,r){t.exports={modp1:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},modp2:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},modp5:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},modp14:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},modp15:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},modp16:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},modp17:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},modp18:{gen:"02",prime:"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}},{}],69:[function(e,t,r){"use strict";var n=r;n.version=e("../package.json").version,n.utils=e("./elliptic/utils"),n.rand=e("brorand"),n.curve=e("./elliptic/curve"),n.curves=e("./elliptic/curves"),n.ec=e("./elliptic/ec"),n.eddsa=e("./elliptic/eddsa")},{"../package.json":84,"./elliptic/curve":72,"./elliptic/curves":75,"./elliptic/ec":76,"./elliptic/eddsa":79,"./elliptic/utils":83,brorand:18}],70:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils,M=i.getNAF,P=i.getJSF,f=i.assert;function o(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4);var r=this.n&&this.p.div(this.n);!r||0<r.cmpn(100)?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function a(e,t){this.curve=e,this.type=t,this.precomputed=null}(t.exports=o).prototype.point=function(){throw new Error("Not implemented")},o.prototype.validate=function(){throw new Error("Not implemented")},o.prototype._fixedNafMul=function(e,t){f(e.precomputed);var r=e._getDoubles(),n=M(t,1),i=(1<<r.step+1)-(r.step%2==0?2:1);i/=3;for(var o=[],a=0;a<n.length;a+=r.step){var s=0;for(t=a+r.step-1;a<=t;t--)s=(s<<1)+n[t];o.push(s)}for(var u=this.jpoint(null,null,null),c=this.jpoint(null,null,null),l=i;0<l;l--){for(a=0;a<o.length;a++){(s=o[a])===l?c=c.mixedAdd(r.points[a]):s===-l&&(c=c.mixedAdd(r.points[a].neg()))}u=u.add(c)}return u.toP()},o.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,o=M(t,r),a=this.jpoint(null,null,null),s=o.length-1;0<=s;s--){for(t=0;0<=s&&0===o[s];s--)t++;if(0<=s&&t++,a=a.dblp(t),s<0)break;var u=o[s];f(0!==u),a="affine"===e.type?0<u?a.mixedAdd(i[u-1>>1]):a.mixedAdd(i[-u-1>>1].neg()):0<u?a.add(i[u-1>>1]):a.add(i[-u-1>>1].neg())}return"affine"===e.type?a.toP():a},o.prototype._wnafMulAdd=function(e,t,r,n,i){for(var o=this._wnafT1,a=this._wnafT2,s=this._wnafT3,u=0,c=0;c<n;c++){var l=(T=t[c])._getNAFPoints(e);o[c]=l.wnd,a[c]=l.points}for(c=n-1;1<=c;c-=2){var f=c-1,h=c;if(1===o[f]&&1===o[h]){var d=[t[f],null,null,t[h]];0===t[f].y.cmp(t[h].y)?(d[1]=t[f].add(t[h]),d[2]=t[f].toJ().mixedAdd(t[h].neg())):0===t[f].y.cmp(t[h].y.redNeg())?(d[1]=t[f].toJ().mixedAdd(t[h]),d[2]=t[f].add(t[h].neg())):(d[1]=t[f].toJ().mixedAdd(t[h]),d[2]=t[f].toJ().mixedAdd(t[h].neg()));var p=[-3,-1,-5,-7,0,7,5,1,3],m=P(r[f],r[h]);u=Math.max(m[0].length,u),s[f]=new Array(u),s[h]=new Array(u);for(var g=0;g<u;g++){var v=0|m[0][g],y=0|m[1][g];s[f][g]=p[3*(1+v)+(1+y)],s[h][g]=0,a[f]=d}}else s[f]=M(r[f],o[f]),s[h]=M(r[h],o[h]),u=Math.max(s[f].length,u),u=Math.max(s[h].length,u)}var _=this.jpoint(null,null,null),b=this._wnafT4;for(c=u;0<=c;c--){for(var x=0;0<=c;){var w=!0;for(g=0;g<n;g++)b[g]=0|s[g][c],0!==b[g]&&(w=!1);if(!w)break;x++,c--}if(0<=c&&x++,_=_.dblp(x),c<0)break;for(g=0;g<n;g++){var T,S=b[g];0!==S&&(0<S?T=a[g][S-1>>1]:S<0&&(T=a[g][-S-1>>1].neg()),_="affine"===T.type?_.mixedAdd(T):_.add(T))}}for(c=0;c<n;c++)a[c]=null;return i?_:_.toP()},(o.BasePoint=a).prototype.eq=function(){throw new Error("Not implemented")},a.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?f(e[e.length-1]%2==0):7===e[0]&&f(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},a.prototype.encodeCompressed=function(e){return this.encode(e,!0)},a.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},a.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},a.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},a.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},a.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)n=n.dbl();r.push(n)}return{step:e,points:r}},a.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1==r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},a.prototype._getBeta=function(){return null},a.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},{"../../elliptic":69,"bn.js":17}],71:[function(e,t,r){"use strict";var n=e("../curve"),i=e("../../elliptic"),u=e("bn.js"),o=e("inherits"),a=n.base,s=i.utils.assert;function c(e){this.twisted=1!=(0|e.a),this.mOneA=this.twisted&&-1==(0|e.a),this.extended=this.mOneA,a.call(this,"edwards",e),this.a=new u(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new u(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new u(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),s(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|e.c)}function l(e,t,r,n,i){a.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new u(t,16),this.y=new u(r,16),this.z=n?new u(n,16):this.curve.one,this.t=i&&new u(i,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}o(c,a),(t.exports=c).prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},c.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},c.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},c.prototype.pointFromX=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),i=this.one.redSub(this.c2.redMul(this.d).redMul(r)),o=n.redMul(i.redInvm()),a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");var s=a.fromRed().isOdd();return(t&&!s||!t&&s)&&(a=a.redNeg()),this.point(e,a)},c.prototype.pointFromY=function(e,t){(e=new u(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.one),i=r.redMul(this.d).redAdd(this.one),o=n.redMul(i.redInvm());if(0===o.cmp(this.zero)){if(t)throw new Error("invalid point");return this.point(this.zero,e)}var a=o.redSqrt();if(0!==a.redSqr().redSub(o).cmp(this.zero))throw new Error("invalid point");return a.isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},c.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},o(l,a.BasePoint),c.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},c.prototype.point=function(e,t,r,n){return new l(this,e,t,r,n)},l.fromJSON=function(e,t){return new l(e,t[0],t[1],t[2])},l.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},l.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),o=n.redAdd(t),a=o.redSub(r),s=n.redSub(t),u=i.redMul(a),c=o.redMul(s),l=i.redMul(s),f=a.redMul(o);return this.curve.point(u,c,f,l)},l.prototype._projDbl=function(){var e,t,r,n=this.x.redAdd(this.y).redSqr(),i=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var a=(c=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(c.redSub(o)),r=a.redSqr().redSub(a).redSub(a);else{var s=this.z.redSqr(),u=a.redSub(s).redISub(s);e=n.redSub(i).redISub(o).redMul(u),t=a.redMul(c.redSub(o)),r=a.redMul(u)}}else{var c=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=c.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(c)).redMul(u),t=this.curve._mulC(c).redMul(i.redISub(o)),r=c.redMul(u)}return this.curve.point(e,t,r)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),o=r.redSub(t),a=i.redSub(n),s=i.redAdd(n),u=r.redAdd(t),c=o.redMul(a),l=s.redMul(u),f=o.redMul(u),h=a.redMul(s);return this.curve.point(c,l,h,f)},l.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),o=this.x.redMul(e.x),a=this.y.redMul(e.y),s=this.curve.d.redMul(o).redMul(a),u=i.redSub(s),c=i.redAdd(s),l=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(l);return r=this.curve.twisted?(t=n.redMul(c).redMul(a.redSub(this.curve._mulA(o))),u.redMul(c)):(t=n.redMul(c).redMul(a.redSub(o)),this.curve._mulC(u).redMul(c)),this.curve.point(f,t,r)},l.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},l.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},l.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},l.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},l.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),0<=r.cmp(this.curve.p))return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}return!1},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],72:[function(e,t,r){"use strict";var n=r;n.base=e("./base"),n.short=e("./short"),n.mont=e("./mont"),n.edwards=e("./edwards")},{"./base":70,"./edwards":71,"./mont":73,"./short":74}],73:[function(e,t,r){"use strict";var n=e("../curve"),i=e("bn.js"),o=e("inherits"),a=n.base,s=e("../../elliptic").utils;function u(e){a.call(this,"mont",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(e,t,r){a.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(t,16),this.z=new i(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(u,a),(t.exports=u).prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},o(c,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new c(this,e,t)},u.prototype.pointFromJSON=function(e){return c.fromJSON(this,e)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(e,t){return new c(e,t[0],t[1]||e.one)},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),o=e.x.redSub(e.z).redMul(r),a=i.redMul(n),s=t.z.redMul(o.redAdd(a).redSqr()),u=t.x.redMul(o.redISub(a).redSqr());return this.curve.point(s,u)},c.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var o=i.length-1;0<=o;o--)0===i[o]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],74:[function(e,t,r){"use strict";var n=e("../curve"),i=e("../../elliptic"),x=e("bn.js"),o=e("inherits"),a=n.base,s=i.utils.assert;function u(e){a.call(this,"short",e),this.a=new x(e.a,16).toRed(this.red),this.b=new x(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function c(e,t,r,n){a.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new x(t,16),this.y=new x(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function l(e,t,r,n){a.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new x(0)):(this.x=new x(t,16),this.y=new x(r,16),this.z=new x(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}o(u,a),(t.exports=u).prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new x(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new x(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],s(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map(function(e){return{a:new x(e.a,16),b:new x(e.b,16)}}):this._getEndoBasis(r)}}},u.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:x.mont(e),r=new x(2).toRed(t).redInvm(),n=r.redNeg(),i=new x(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},u.prototype._getEndoBasis=function(e){for(var t,r,n,i,o,a,s,u,c,l=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),d=new x(1),p=new x(0),m=new x(0),g=new x(1),v=0;0!==f.cmpn(0);){var y=h.div(f);u=h.sub(y.mul(f)),c=m.sub(y.mul(d));var _=g.sub(y.mul(p));if(!n&&u.cmp(l)<0)t=s.neg(),r=d,n=u.neg(),i=c;else if(n&&2==++v)break;h=f,f=s=u,m=d,d=c,g=p,p=_}o=u.neg(),a=c;var b=n.sqr().add(i.sqr());return 0<=o.sqr().add(a.sqr()).cmp(b)&&(o=t,a=r),n.negative&&(n=n.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:n,b:i},{a:o,b:a}]},u.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),o=r.b.neg().mul(e).divRound(this.n),a=i.mul(r.a),s=o.mul(n.a),u=i.mul(r.b),c=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},u.prototype.pointFromX=function(e,t){(e=new x(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},u.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},u.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),n[2*o]=s,n[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,n,i,2*o,r),l=0;l<2*o;l++)n[l]=null,i[l]=null;return c},o(c,a.BasePoint),u.prototype.point=function(e,t,r){return new c(this,e,t,r)},u.prototype.pointFromJSON=function(e,t){return c.fromJSON(this,e,t)},c.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};(e.beta=t).precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},c.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},c.fromJSON=function(t,e,r){"string"==typeof e&&(e=JSON.parse(e));var n=t.point(e[0],e[1],r);if(!e[2])return n;function i(e){return t.point(e[0],e[1],r)}var o=e[2];return n.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[n].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[n].concat(o.naf.points.map(i))}},n},c.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},c.prototype.isInfinity=function(){return this.inf},c.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},c.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},c.prototype.getX=function(){return this.x.fromRed()},c.prototype.getY=function(){return this.y.fromRed()},c.prototype.mul=function(e){return e=new x(e,16),this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},c.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},c.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},c.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},c.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(l,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new l(this,e,t,r)},l.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},l.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},l.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),s=n.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=n.redMul(c),h=u.redSqr().redIAdd(l).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},l.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=r.redSub(n),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=r.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),h=s.redMul(l.redISub(f)).redISub(i.redMul(c)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},l.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}var n=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(r=0;r<e;r++){var l=o.redSqr(),f=c.redSqr(),h=f.redSqr(),d=l.redAdd(l).redIAdd(l).redIAdd(n.redMul(u)),p=o.redMul(f),m=d.redSqr().redISub(p.redAdd(p)),g=p.redISub(m),v=d.redMul(g);v=v.redIAdd(v).redISub(h);var y=c.redMul(s);r+1<e&&(u=u.redMul(h)),o=m,s=y,c=v}return this.curve.jpoint(o,c.redMul(i),s)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},l.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(l).redISub(h);d=d.redIAdd(d);var p=l.redAdd(l).redIAdd(l),m=p.redSqr(),g=h.redIAdd(h);g=(g=g.redIAdd(g)).redIAdd(g),e=m.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(g),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},l.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(n).redISub(o);a=a.redIAdd(a);var s=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),r=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(l).redMul(this.x.redAdd(l));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),m=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(m),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var g=f.redSqr();g=(g=(g=g.redIAdd(g)).redIAdd(g)).redIAdd(g),t=d.redMul(p.redISub(e)).redISub(g)}return this.curve.jpoint(e,t,r)},l.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),o=t.redSqr(),a=r.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=s.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(l,d,p)},l.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=n.redIAdd(n);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(s);return this.curve.jpoint(f,h,d)},l.prototype.mul=function(e,t){return e=new x(e,t),this.curve._wnafMul(this,e)},l.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)},l.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),0<=n.cmp(this.curve.p))return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}return!1},l.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},{"../../elliptic":69,"../curve":72,"bn.js":17,inherits:103}],75:[function(e,t,r){"use strict";var n,i=r,o=e("hash.js"),a=e("../elliptic"),s=a.utils.assert;function u(e){"short"===e.type?this.curve=new a.curve.short(e):"edwards"===e.type?this.curve=new a.curve.edwards(e):this.curve=new a.curve.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,s(this.g.validate(),"Invalid curve"),s(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function c(t,r){Object.defineProperty(i,t,{configurable:!0,enumerable:!0,get:function(){var e=new u(r);return Object.defineProperty(i,t,{configurable:!0,enumerable:!0,value:e}),e}})}i.PresetCurve=u,c("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:o.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),c("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:o.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),c("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:o.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),c("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:o.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),c("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:o.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),c("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["9"]}),c("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:o.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=e("./precomputed/secp256k1")}catch(e){n=void 0}c("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:o.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},{"../elliptic":69,"./precomputed/secp256k1":82,"hash.js":88}],76:[function(e,t,r){"use strict";var g=e("bn.js"),v=e("hmac-drbg"),o=e("../../elliptic"),d=o.utils.assert,n=e("./key"),y=e("./signature");function i(e){if(!(this instanceof i))return new i(e);"string"==typeof e&&(d(o.curves.hasOwnProperty(e),"Unknown curve "+e),e=o.curves[e]),e instanceof o.curves.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}(t.exports=i).prototype.keyPair=function(e){return new n(this,e)},i.prototype.keyFromPrivate=function(e,t){return n.fromPrivate(this,e,t)},i.prototype.keyFromPublic=function(e,t){return n.fromPublic(this,e,t)},i.prototype.genKeyPair=function(e){e||(e={});for(var t=new v({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||o.rand(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new g(2));;){var i=new g(t.generate(r));if(!(0<i.cmp(n)))return i.iaddn(1),this.keyFromPrivate(i)}},i.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return 0<r&&(e=e.ushrn(r)),!t&&0<=e.cmp(this.n)?e.sub(this.n):e},i.prototype.sign=function(e,t,r,n){"object"==typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new g(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),a=e.toArray("be",i),s=new v({hash:this.hash,entropy:o,nonce:a,pers:n.pers,persEnc:n.persEnc||"utf8"}),u=this.n.sub(new g(1)),c=0;;c++){var l=n.k?n.k(c):new g(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||0<=l.cmp(u))){var f=this.g.mul(l);if(!f.isInfinity()){var h=f.getX(),d=h.umod(this.n);if(0!==d.cmpn(0)){var p=l.invm(this.n).mul(d.mul(t.getPrivate()).iadd(e));if(0!==(p=p.umod(this.n)).cmpn(0)){var m=(f.getY().isOdd()?1:0)|(0!==h.cmp(d)?2:0);return n.canonical&&0<p.cmp(this.nh)&&(p=this.n.sub(p),m^=1),new y({r:d,s:p,recoveryParam:m})}}}}}},i.prototype.verify=function(e,t,r,n){e=this._truncateToN(new g(e,16)),r=this.keyFromPublic(r,n);var i=(t=new y(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||0<=i.cmp(this.n))return!1;if(o.cmpn(1)<0||0<=o.cmp(this.n))return!1;var a,s=o.invm(this.n),u=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,r.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,r.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},i.prototype.recoverPubKey=function(e,t,r,n){d((3&r)===r,"The recovery param is more than two bits"),t=new y(t,n);var i=this.n,o=new g(e),a=t.r,s=t.s,u=1&r,c=r>>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=t.r.invm(i),f=i.sub(o).mul(l).umod(i),h=s.mul(l).umod(i);return this.g.mulAdd(f,a,h)},i.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new y(t,n)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(r))return i}throw new Error("Unable to find valid recovery factor")}},{"../../elliptic":69,"./key":77,"./signature":78,"bn.js":17,"hmac-drbg":100}],77:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils.assert;function o(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}(t.exports=o).fromPublic=function(e,t,r){return t instanceof o?t:new o(e,{pub:t,pubEnc:r})},o.fromPrivate=function(e,t,r){return t instanceof o?t:new o(e,{priv:t,privEnc:r})},o.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},o.prototype.getPublic=function(e,t){return"string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},o.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},o.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},o.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||i(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},o.prototype.derive=function(e){return e.mul(this.priv).getX()},o.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},o.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},o.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},{"../../elliptic":69,"bn.js":17}],78:[function(e,t,r){"use strict";var s=e("bn.js"),u=e("../../elliptic").utils,n=u.assert;function i(e,t){if(e instanceof i)return e;this._importDER(e,t)||(n(e.r&&e.s,"Signature without r or s"),this.r=new s(e.r,16),this.s=new s(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function c(){this.place=0}function l(e,t){var r=e[t.place++];if(!(128&r))return r;for(var n=15&r,i=0,o=0,a=t.place;o<n;o++,a++)i<<=8,i|=e[a];return t.place=a,i}function a(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}(t.exports=i).prototype._importDER=function(e,t){e=u.toArray(e,t);var r=new c;if(48!==e[r.place++])return!1;if(l(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=l(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=l(e,r);if(e.length!==o+r.place)return!1;var a=e.slice(r.place,o+r.place);return 0===i[0]&&128&i[1]&&(i=i.slice(1)),0===a[0]&&128&a[1]&&(a=a.slice(1)),this.r=new s(i),this.s=new s(a),!(this.recoveryParam=null)},i.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=a(t),r=a(r);!(r[0]||128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var i=n.concat(r),o=[48];return f(o,i.length),o=o.concat(i),u.encode(o,e)}},{"../../elliptic":69,"bn.js":17}],79:[function(e,t,r){"use strict";var n=e("hash.js"),i=e("../../elliptic"),o=i.utils,a=o.assert,u=o.parseBytes,s=e("./key"),c=e("./signature");function l(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof l))return new l(e);e=i.curves[e].curve;this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}(t.exports=l).prototype.sign=function(e,t){e=u(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),o=this.encodePoint(i),a=this.hashInt(o,r.pubBytes(),e).mul(r.priv()),s=n.add(a).umod(this.curve.n);return this.makeSignature({R:i,S:s,Rencoded:o})},l.prototype.verify=function(e,t,r){e=u(e),t=this.makeSignature(t);var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),o=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(o)},l.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return o.intFromLE(e.digest()).umod(this.curve.n)},l.prototype.keyFromPublic=function(e){return s.fromPublic(this,e)},l.prototype.keyFromSecret=function(e){return s.fromSecret(this,e)},l.prototype.makeSignature=function(e){return e instanceof c?e:new c(this,e)},l.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},l.prototype.decodePoint=function(e){var t=(e=o.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=0!=(128&e[t]),i=o.intFromLE(r);return this.curve.pointFromY(i,n)},l.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},l.prototype.decodeInt=function(e){return o.intFromLE(e)},l.prototype.isPoint=function(e){return e instanceof this.pointClass}},{"../../elliptic":69,"./key":80,"./signature":81,"hash.js":88}],80:[function(e,t,r){"use strict";var n=e("../../elliptic").utils,i=n.assert,o=n.parseBytes,a=n.cachedProperty;function s(e,t){this.eddsa=e,this._secret=o(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=o(t.pub)}s.fromPublic=function(e,t){return t instanceof s?t:new s(e,{pub:t})},s.fromSecret=function(e,t){return t instanceof s?t:new s(e,{secret:t})},s.prototype.secret=function(){return this._secret},a(s,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),a(s,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),a(s,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),a(s,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),a(s,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),a(s,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),s.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},s.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},s.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},s.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},t.exports=s},{"../../elliptic":69}],81:[function(e,t,r){"use strict";var n=e("bn.js"),i=e("../../elliptic").utils,o=i.assert,a=i.cachedProperty,s=i.parseBytes;function u(e,t){this.eddsa=e,"object"!=typeof t&&(t=s(t)),Array.isArray(t)&&(t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),o(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}a(u,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),a(u,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),a(u,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),a(u,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),u.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},u.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},t.exports=u},{"../../elliptic":69,"bn.js":17}],82:[function(e,t,r){t.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},{}],83:[function(e,t,r){"use strict";var n=r,i=e("bn.js"),o=e("minimalistic-assert"),a=e("minimalistic-crypto-utils");n.assert=o,n.toArray=a.toArray,n.zero2=a.zero2,n.toHex=a.toHex,n.encode=a.encode,n.getNAF=function(e,t){for(var r=[],n=1<<t+1,i=e.clone();0<=i.cmpn(1);){var o;if(i.isOdd()){var a=i.andln(n-1);o=(n>>1)-1<a?(n>>1)-a:a,i.isubn(o)}else o=0;r.push(o);for(var s=0!==i.cmpn(0)&&0===i.andln(n-1)?t+1:1,u=1;u<s;u++)r.push(0);i.iushrn(s)}return r},n.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;0<e.cmpn(-n)||0<t.cmpn(-i);){var o,a,s,u=e.andln(3)+n&3,c=t.andln(3)+i&3;3===u&&(u=-1),3===c&&(c=-1),o=0==(1&u)?0:3!=(s=e.andln(7)+n&7)&&5!==s||2!==c?u:-u,r[0].push(o),a=0==(1&c)?0:3!=(s=t.andln(7)+i&7)&&5!==s||2!==u?c:-c,r[1].push(a),2*n===o+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},n.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},n.parseBytes=function(e){return"string"==typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new i(e,"hex","le")}},{"bn.js":17,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],84:[function(e,t,r){t.exports={_from:"elliptic@^6.0.0",_id:"elliptic@6.4.0",_inBundle:!1,_integrity:"sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=",_location:"/elliptic",_phantomChildren:{},_requested:{type:"range",registry:!0,raw:"elliptic@^6.0.0",name:"elliptic",escapedName:"elliptic",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/browserify-sign","/create-ecdh"],_resolved:"https://registry.npmjs.org/elliptic/-/elliptic-6.4.0.tgz",_shasum:"cac9af8762c85836187003c8dfe193e5e2eae5df",_spec:"elliptic@^6.0.0",_where:"d:\\pixi-games\\pixi-compressed-textures\\node_modules\\browserify-sign",author:{name:"Fedor Indutny",email:"fedor@indutny.com"},bugs:{url:"https://github.com/indutny/elliptic/issues"},bundleDependencies:!1,dependencies:{"bn.js":"^4.4.0",brorand:"^1.0.1","hash.js":"^1.0.0","hmac-drbg":"^1.0.0",inherits:"^2.0.1","minimalistic-assert":"^1.0.0","minimalistic-crypto-utils":"^1.0.0"},deprecated:!1,description:"EC cryptography",devDependencies:{brfs:"^1.4.3",coveralls:"^2.11.3",grunt:"^0.4.5","grunt-browserify":"^5.0.0","grunt-cli":"^1.2.0","grunt-contrib-connect":"^1.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^1.0.1","grunt-mocha-istanbul":"^3.0.1","grunt-saucelabs":"^8.6.2",istanbul:"^0.4.2",jscs:"^2.9.0",jshint:"^2.6.0",mocha:"^2.1.0"},files:["lib"],homepage:"https://github.com/indutny/elliptic",keywords:["EC","Elliptic","curve","Cryptography"],license:"MIT",main:"lib/elliptic.js",name:"elliptic",repository:{type:"git",url:"git+ssh://git@github.com/indutny/elliptic.git"},scripts:{jscs:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",jshint:"jscs benchmarks/*.js lib/*.js lib/**/*.js lib/**/**/*.js test/index.js",lint:"npm run jscs && npm run jshint",test:"npm run lint && npm run unit",unit:"istanbul test _mocha --reporter=spec test/index.js",version:"grunt dist && git add dist/"},version:"6.4.0"}},{}],85:[function(e,t,r){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function u(e){return"function"==typeof e}function c(e){return"object"==typeof e&&null!==e}function l(e){return void 0===e}((t.exports=n).EventEmitter=n).prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,r,n,i,o,a;if(this._events||(this._events={}),"error"===e&&(!this._events.error||c(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var s=new Error('Uncaught, unspecified "error" event. ('+t+")");throw s.context=t,s}if(l(r=this._events[e]))return!1;if(u(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:i=Array.prototype.slice.call(arguments,1),r.apply(this,i)}else if(c(r))for(i=Array.prototype.slice.call(arguments,1),n=(a=r.slice()).length,o=0;o<n;o++)a[o].apply(this,i);return!0},n.prototype.on=n.prototype.addListener=function(e,t){var r;if(!u(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,u(t.listener)?t.listener:t),this._events[e]?c(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,c(this._events[e])&&!this._events[e].warned&&(r=l(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&0<r&&this._events[e].length>r&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.once=function(e,t){if(!u(t))throw TypeError("listener must be a function");var r=!1;function n(){this.removeListener(e,n),r||(r=!0,t.apply(this,arguments))}return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var r,n,i,o;if(!u(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(i=(r=this._events[e]).length,n=-1,r===t||u(r.listener)&&r.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(c(r)){for(o=i;0<o--;)if(r[o]===t||r[o].listener&&r[o].listener===t){n=o;break}if(n<0)return this;1===r.length?(r.length=0,delete this._events[e]):r.splice(n,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(u(r=this._events[e]))this.removeListener(e,r);else if(r)for(;r.length;)this.removeListener(e,r[r.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?u(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(u(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},{}],86:[function(e,t,r){var d=e("safe-buffer").Buffer,p=e("md5.js");t.exports=function(e,t,r,n){if(d.isBuffer(e)||(e=d.from(e,"binary")),t&&(d.isBuffer(t)||(t=d.from(t,"binary")),8!==t.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var i=r/8,o=d.alloc(i),a=d.alloc(n||0),s=d.alloc(0);0<i||0<n;){var u=new p;u.update(s),u.update(e),t&&u.update(t),s=u.digest();var c=0;if(0<i){var l=o.length-i;c=Math.min(i,s.length),s.copy(o,l,0,c),i-=c}if(c<s.length&&0<n){var f=a.length-n,h=Math.min(n,s.length-c);s.copy(a,f,c,c+h),n-=h}}return s.fill(0),{key:o,iv:a}}},{"md5.js":106,"safe-buffer":143}],87:[function(r,n,e){(function(s){"use strict";var t=r("stream").Transform;function e(e){t.call(this),this._block=new s(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}r("inherits")(e,t),e.prototype._transform=function(e,t,r){var n=null;try{"buffer"!==t&&(e=new s(e,t)),this.update(e)}catch(e){n=e}r(n)},e.prototype._flush=function(e){var t=null;try{this.push(this._digest())}catch(e){t=e}e(t)},e.prototype.update=function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=new s(e,t||"binary"));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;0<a;++o)this._length[o]+=a,0<(a=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*a);return this},e.prototype._update=function(e){throw new Error("_update is not implemented")},e.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();return void 0!==e&&(t=t.toString(e)),t},e.prototype._digest=function(){throw new Error("_digest is not implemented")},n.exports=e}).call(this,r("buffer").Buffer)},{buffer:49,inherits:103,stream:152}],88:[function(e,t,r){var n=r;n.utils=e("./hash/utils"),n.common=e("./hash/common"),n.sha=e("./hash/sha"),n.ripemd=e("./hash/ripemd"),n.hmac=e("./hash/hmac"),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},{"./hash/common":89,"./hash/hmac":90,"./hash/ripemd":91,"./hash/sha":92,"./hash/utils":99}],89:[function(e,t,r){"use strict";var i=e("./utils"),n=e("minimalistic-assert");function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}(r.BlockHash=o).prototype.update=function(e,t){if(e=i.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=i.join32(e,0,e.length-r,this.endian);for(var n=0;n<e.length;n+=this._delta32)this._update(e,n,n+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),n(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var i=1;i<r;i++)n[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)n[i++]=0;n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=e>>>24&255,n[i++]=e>>>16&255,n[i++]=e>>>8&255,n[i++]=255&e}else for(n[i++]=255&e,n[i++]=e>>>8&255,n[i++]=e>>>16&255,n[i++]=e>>>24&255,n[i++]=0,n[i++]=0,n[i++]=0,n[i++]=0,o=8;o<this.padLength;o++)n[i++]=0;return n}},{"./utils":99,"minimalistic-assert":109}],90:[function(e,t,r){"use strict";var n=e("./utils"),i=e("minimalistic-assert");function o(e,t,r){if(!(this instanceof o))return new o(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}(t.exports=o).prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},{"./utils":99,"minimalistic-assert":109}],91:[function(e,t,r){"use strict";var n=e("./utils"),i=e("./common"),p=n.rotl32,m=n.sum32,g=n.sum32_3,v=n.sum32_4,o=i.BlockHash;function a(){if(!(this instanceof a))return new a;o.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function y(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function _(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function b(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(a,o),(r.ripemd160=a).blockSize=512,a.outSize=160,a.hmacStrength=192,a.padLength=64,a.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],i=this.h[2],o=this.h[3],a=this.h[4],s=r,u=n,c=i,l=o,f=a,h=0;h<80;h++){var d=m(p(v(r,y(h,n,i,o),e[x[h]+t],_(h)),T[h]),a);r=a,a=o,o=p(i,10),i=n,n=d,d=m(p(v(s,y(79-h,u,c,l),e[w[h]+t],b(h)),S[h]),f),s=f,f=l,l=p(c,10),c=u,u=d}d=g(this.h[1],i,l),this.h[1]=g(this.h[2],o,f),this.h[2]=g(this.h[3],a,s),this.h[3]=g(this.h[4],r,u),this.h[4]=g(this.h[0],n,c),this.h[0]=d},a.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var x=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],w=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],T=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],S=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},{"./common":89,"./utils":99}],92:[function(e,t,r){"use strict";r.sha1=e("./sha/1"),r.sha224=e("./sha/224"),r.sha256=e("./sha/256"),r.sha384=e("./sha/384"),r.sha512=e("./sha/512")},{"./sha/1":93,"./sha/224":94,"./sha/256":95,"./sha/384":96,"./sha/512":97}],93:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),f=n.rotl32,h=n.sum32,d=n.sum32_5,p=o.ft_1,a=i.BlockHash,m=[1518500249,1859775393,2400959708,3395469782];function s(){if(!(this instanceof s))return new s;a.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(s,a),(t.exports=s).blockSize=512,s.outSize=160,s.hmacStrength=80,s.padLength=64,s.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=f(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4];for(n=0;n<r.length;n++){var c=~~(n/20),l=d(f(i,5),p(c,o,a,s),u,r[n],m[c]);u=s,s=a,a=f(o,30),o=i,i=l}this.h[0]=h(this.h[0],i),this.h[1]=h(this.h[1],o),this.h[2]=h(this.h[2],a),this.h[3]=h(this.h[3],s),this.h[4]=h(this.h[4],u)},s.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":89,"../utils":99,"./common":98}],94:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./256");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(o,i),(t.exports=o).blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},{"../utils":99,"./256":95}],95:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),o=e("./common"),p=e("minimalistic-assert"),m=n.sum32,g=n.sum32_4,v=n.sum32_5,y=o.ch32,_=o.maj32,b=o.s0_256,x=o.s1_256,w=o.g0_256,T=o.g1_256,a=i.BlockHash,s=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function u(){if(!(this instanceof u))return new u;a.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=s,this.W=new Array(64)}n.inherits(u,a),(t.exports=u).blockSize=512,u.outSize=256,u.hmacStrength=192,u.padLength=64,u.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=g(T(r[n-2]),r[n-7],w(r[n-15]),r[n-16]);var i=this.h[0],o=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],l=this.h[6],f=this.h[7];for(p(this.k.length===r.length),n=0;n<r.length;n++){var h=v(f,x(u),y(u,c,l),this.k[n],r[n]),d=m(b(i),_(i,o,a));f=l,l=c,c=u,u=m(s,h),s=a,a=o,o=i,i=m(h,d)}this.h[0]=m(this.h[0],i),this.h[1]=m(this.h[1],o),this.h[2]=m(this.h[2],a),this.h[3]=m(this.h[3],s),this.h[4]=m(this.h[4],u),this.h[5]=m(this.h[5],c),this.h[6]=m(this.h[6],l),this.h[7]=m(this.h[7],f)},u.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":89,"../utils":99,"./common":98,"minimalistic-assert":109}],96:[function(e,t,r){"use strict";var n=e("../utils"),i=e("./512");function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(o,i),(t.exports=o).blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},{"../utils":99,"./512":97}],97:[function(e,t,r){"use strict";var n=e("../utils"),i=e("../common"),D=e("minimalistic-assert"),o=n.rotr64_hi,a=n.rotr64_lo,s=n.shr64_hi,u=n.shr64_lo,L=n.sum64,N=n.sum64_hi,j=n.sum64_lo,h=n.sum64_4_hi,d=n.sum64_4_lo,F=n.sum64_5_hi,B=n.sum64_5_lo,c=i.BlockHash,l=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function f(){if(!(this instanceof f))return new f;c.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=l,this.W=new Array(160)}function z(e,t,r,n,i){var o=e&r^~e&i;return o<0&&(o+=4294967296),o}function U(e,t,r,n,i,o){var a=t&n^~t&o;return a<0&&(a+=4294967296),a}function X(e,t,r,n,i){var o=e&r^e&i^r&i;return o<0&&(o+=4294967296),o}function q(e,t,r,n,i,o){var a=t&n^t&o^n&o;return a<0&&(a+=4294967296),a}function H(e,t){var r=o(e,t,28)^o(t,e,2)^o(t,e,7);return r<0&&(r+=4294967296),r}function Y(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function G(e,t){var r=o(e,t,14)^o(e,t,18)^o(t,e,9);return r<0&&(r+=4294967296),r}function W(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function p(e,t){var r=o(e,t,1)^o(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function m(e,t){var r=a(e,t,1)^a(e,t,8)^u(e,t,7);return r<0&&(r+=4294967296),r}function g(e,t){var r=o(e,t,19)^o(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}function v(e,t){var r=a(e,t,19)^a(t,e,29)^u(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(f,c),(t.exports=f).blockSize=1024,f.outSize=512,f.hmacStrength=192,f.padLength=128,f.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var i=g(r[n-4],r[n-3]),o=v(r[n-4],r[n-3]),a=r[n-14],s=r[n-13],u=p(r[n-30],r[n-29]),c=m(r[n-30],r[n-29]),l=r[n-32],f=r[n-31];r[n]=h(i,o,a,s,u,c,l,f),r[n+1]=d(i,o,a,s,u,c,l,f)}},f.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],i=this.h[1],o=this.h[2],a=this.h[3],s=this.h[4],u=this.h[5],c=this.h[6],l=this.h[7],f=this.h[8],h=this.h[9],d=this.h[10],p=this.h[11],m=this.h[12],g=this.h[13],v=this.h[14],y=this.h[15];D(this.k.length===r.length);for(var _=0;_<r.length;_+=2){var b=v,x=y,w=G(f,h),T=W(f,h),S=z(f,h,d,p,m),M=U(f,h,d,p,m,g),P=this.k[_],E=this.k[_+1],C=r[_],k=r[_+1],A=F(b,x,w,T,S,M,P,E,C,k),O=B(b,x,w,T,S,M,P,E,C,k);b=H(n,i),x=Y(n,i),w=X(n,i,o,a,s),T=q(n,i,o,a,s,u);var R=N(b,x,w,T),I=j(b,x,w,T);v=m,y=g,m=d,g=p,d=f,p=h,f=N(c,l,A,O),h=j(l,l,A,O),c=s,l=u,s=o,u=a,o=n,a=i,n=N(A,O,R,I),i=j(A,O,R,I)}L(this.h,0,n,i),L(this.h,2,o,a),L(this.h,4,s,u),L(this.h,6,c,l),L(this.h,8,f,h),L(this.h,10,d,p),L(this.h,12,m,g),L(this.h,14,v,y)},f.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},{"../common":89,"../utils":99,"minimalistic-assert":109}],98:[function(e,t,r){"use strict";var n=e("../utils").rotr32;function i(e,t,r){return e&t^~e&r}function o(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}r.ft_1=function(e,t,r,n){return 0===e?i(t,r,n):1===e||3===e?a(t,r,n):2===e?o(t,r,n):void 0},r.ch32=i,r.maj32=o,r.p32=a,r.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},r.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},r.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},r.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},{"../utils":99}],99:[function(e,t,r){"use strict";var c=e("minimalistic-assert"),n=e("inherits");function o(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function i(e){return 1===e.length?"0"+e:e}function a(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}r.inherits=n,r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"==typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(var n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n<e.length;n++)r[n]=0|e[n];return r},r.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t},r.htonl=o,r.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var i=e[n];"little"===t&&(i=o(i)),r+=a(i.toString(16))}return r},r.zero2=i,r.zero8=a,r.join32=function(e,t,r,n){var i=r-t;c(i%4==0);for(var o=new Array(i/4),a=0,s=t;a<o.length;a++,s+=4){var u;u="big"===n?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],o[a]=u>>>0}return o},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n<e.length;n++,i+=4){var o=e[n];"big"===t?(r[i]=o>>>24,r[i+1]=o>>>16&255,r[i+2]=o>>>8&255,r[i+3]=255&o):(r[i+3]=o>>>24,r[i+2]=o>>>16&255,r[i+1]=o>>>8&255,r[i]=255&o)}return r},r.rotr32=function(e,t){return e>>>t|e<<32-t},r.rotl32=function(e,t){return e<<t|e>>>32-t},r.sum32=function(e,t){return e+t>>>0},r.sum32_3=function(e,t,r){return e+t+r>>>0},r.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},r.sum32_5=function(e,t,r,n,i){return e+t+r+n+i>>>0},r.sum64=function(e,t,r,n){var i=e[t],o=n+e[t+1]>>>0,a=(o<n?1:0)+r+i;e[t]=a>>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},r.sum64_lo=function(e,t,r,n){return t+n>>>0},r.sum64_4_hi=function(e,t,r,n,i,o,a,s){var u=0,c=t;return u+=(c=c+n>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+r+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},r.sum64_4_lo=function(e,t,r,n,i,o,a,s){return t+n+o+s>>>0},r.sum64_5_hi=function(e,t,r,n,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+n>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+r+i+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},r.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,c){return t+n+o+s+c>>>0},r.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},r.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},r.shr64_hi=function(e,t,r){return e>>>r},r.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},{inherits:103,"minimalistic-assert":109}],100:[function(e,t,r){"use strict";var n=e("hash.js"),a=e("minimalistic-crypto-utils"),i=e("minimalistic-assert");function o(e){if(!(this instanceof o))return new o(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=a.toArray(e.entropy,e.entropyEnc||"hex"),r=a.toArray(e.nonce,e.nonceEnc||"hex"),n=a.toArray(e.pers,e.persEnc||"hex");i(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}(t.exports=o).prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},o.prototype._hmac=function(){return new n.hmac(this.hash,this.K)},o.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},o.prototype.reseed=function(e,t,r,n){"string"!=typeof t&&(n=r,r=t,t=null),e=a.toArray(e,t),r=a.toArray(r,n),i(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},o.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof t&&(n=r,r=t,t=null),r&&(r=a.toArray(r,n||"hex"),this._update(r));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(r),this._reseed++,a.encode(o,t)}},{"hash.js":88,"minimalistic-assert":109,"minimalistic-crypto-utils":110}],101:[function(e,t,r){r.read=function(e,t,r,n,i){var o,a,s=8*i-n-1,u=(1<<s)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-l)-1,d>>=-l,l+=s;0<l;o=256*o+e[t+f],f+=h,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;0<l;a=256*a+e[t+f],f+=h,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,n),o-=c}return(d?-1:1)*a*Math.pow(2,o-n)},r.write=function(e,t,r,n,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),2<=(t+=1<=a+f?h/u:h*Math.pow(2,1-f))*u&&(a++,u/=2),l<=a+f?(s=0,a=l):1<=a+f?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));8<=i;e[r+d]=255&s,d+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;0<c;e[r+d]=255&a,d+=p,a/=256,c-=8);e[r+d-p]|=128*m}},{}],102:[function(e,t,r){var n=[].indexOf;t.exports=function(e,t){if(n)return e.indexOf(t);for(var r=0;r<e.length;++r)if(e[r]===t)return r;return-1}},{}],103:[function(e,t,r){"function"==typeof Object.create?t.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},{}],104:[function(e,t,r){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}t.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},{}],105:[function(e,t,r){var n={}.toString;t.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},{}],106:[function(i,o,e){(function(t){"use strict";var e=i("inherits"),r=i("hash-base"),a=new Array(16);function n(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function s(e,t){return e<<t|e>>>32-t}function u(e,t,r,n,i,o,a){return s(e+(t&r|~t&n)+i+o|0,a)+t|0}function c(e,t,r,n,i,o,a){return s(e+(t&n|r&~n)+i+o|0,a)+t|0}function l(e,t,r,n,i,o,a){return s(e+(t^r^n)+i+o|0,a)+t|0}function f(e,t,r,n,i,o,a){return s(e+(r^(t|~n))+i+o|0,a)+t|0}e(n,r),n.prototype._update=function(){for(var e=a,t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d;n=f(n=f(n=f(n=f(n=l(n=l(n=l(n=l(n=c(n=c(n=c(n=c(n=u(n=u(n=u(n=u(n,i=u(i,o=u(o,r=u(r,n,i,o,e[0],3614090360,7),n,i,e[1],3905402710,12),r,n,e[2],606105819,17),o,r,e[3],3250441966,22),i=u(i,o=u(o,r=u(r,n,i,o,e[4],4118548399,7),n,i,e[5],1200080426,12),r,n,e[6],2821735955,17),o,r,e[7],4249261313,22),i=u(i,o=u(o,r=u(r,n,i,o,e[8],1770035416,7),n,i,e[9],2336552879,12),r,n,e[10],4294925233,17),o,r,e[11],2304563134,22),i=u(i,o=u(o,r=u(r,n,i,o,e[12],1804603682,7),n,i,e[13],4254626195,12),r,n,e[14],2792965006,17),o,r,e[15],1236535329,22),i=c(i,o=c(o,r=c(r,n,i,o,e[1],4129170786,5),n,i,e[6],3225465664,9),r,n,e[11],643717713,14),o,r,e[0],3921069994,20),i=c(i,o=c(o,r=c(r,n,i,o,e[5],3593408605,5),n,i,e[10],38016083,9),r,n,e[15],3634488961,14),o,r,e[4],3889429448,20),i=c(i,o=c(o,r=c(r,n,i,o,e[9],568446438,5),n,i,e[14],3275163606,9),r,n,e[3],4107603335,14),o,r,e[8],1163531501,20),i=c(i,o=c(o,r=c(r,n,i,o,e[13],2850285829,5),n,i,e[2],4243563512,9),r,n,e[7],1735328473,14),o,r,e[12],2368359562,20),i=l(i,o=l(o,r=l(r,n,i,o,e[5],4294588738,4),n,i,e[8],2272392833,11),r,n,e[11],1839030562,16),o,r,e[14],4259657740,23),i=l(i,o=l(o,r=l(r,n,i,o,e[1],2763975236,4),n,i,e[4],1272893353,11),r,n,e[7],4139469664,16),o,r,e[10],3200236656,23),i=l(i,o=l(o,r=l(r,n,i,o,e[13],681279174,4),n,i,e[0],3936430074,11),r,n,e[3],3572445317,16),o,r,e[6],76029189,23),i=l(i,o=l(o,r=l(r,n,i,o,e[9],3654602809,4),n,i,e[12],3873151461,11),r,n,e[15],530742520,16),o,r,e[2],3299628645,23),i=f(i,o=f(o,r=f(r,n,i,o,e[0],4096336452,6),n,i,e[7],1126891415,10),r,n,e[14],2878612391,15),o,r,e[5],4237533241,21),i=f(i,o=f(o,r=f(r,n,i,o,e[12],1700485571,6),n,i,e[3],2399980690,10),r,n,e[10],4293915773,15),o,r,e[1],2240044497,21),i=f(i,o=f(o,r=f(r,n,i,o,e[8],1873313359,6),n,i,e[15],4264355552,10),r,n,e[6],2734768916,15),o,r,e[13],1309151649,21),i=f(i,o=f(o,r=f(r,n,i,o,e[4],4149444226,6),n,i,e[11],3174756917,10),r,n,e[2],718787259,15),o,r,e[9],3951481745,21),this._a=this._a+r|0,this._b=this._b+n|0,this._c=this._c+i|0,this._d=this._d+o|0},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(16);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e},o.exports=n}).call(this,i("buffer").Buffer)},{buffer:49,"hash-base":107,inherits:103}],107:[function(e,t,r){"use strict";var s=e("safe-buffer").Buffer,n=e("stream").Transform;function i(e){n.call(this),this._block=s.allocUnsafe(e),this._blockSize=e,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}e("inherits")(i,n),i.prototype._transform=function(e,t,r){var n=null;try{this.update(e,t)}catch(e){n=e}r(n)},i.prototype._flush=function(e){var t=null;try{this.push(this.digest())}catch(e){t=e}e(t)},i.prototype.update=function(e,t){if(function(e,t){if(!s.isBuffer(e)&&"string"!=typeof e)throw new TypeError(t+" must be a string or a buffer")}(e,"Data"),this._finalized)throw new Error("Digest already called");s.isBuffer(e)||(e=s.from(e,t));for(var r=this._block,n=0;this._blockOffset+e.length-n>=this._blockSize;){for(var i=this._blockOffset;i<this._blockSize;)r[i++]=e[n++];this._update(),this._blockOffset=0}for(;n<e.length;)r[this._blockOffset++]=e[n++];for(var o=0,a=8*e.length;0<a;++o)this._length[o]+=a,0<(a=this._length[o]/4294967296|0)&&(this._length[o]-=4294967296*a);return this},i.prototype._update=function(){throw new Error("_update is not implemented")},i.prototype.digest=function(e){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var t=this._digest();void 0!==e&&(t=t.toString(e)),this._block.fill(0);for(var r=this._blockOffset=0;r<4;++r)this._length[r]=0;return t},i.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=i},{inherits:103,"safe-buffer":143,stream:152}],108:[function(e,t,r){var d=e("bn.js"),n=e("brorand");function i(e){this.rand=e||new n.Rand}(t.exports=i).create=function(e){return new i(e)},i.prototype._randbelow=function(e){var t=e.bitLength(),r=Math.ceil(t/8);do{var n=new d(this.rand.generate(r))}while(0<=n.cmp(e));return n},i.prototype._randrange=function(e,t){var r=t.sub(e);return e.add(this._randbelow(r))},i.prototype.test=function(e,t,r){var n=e.bitLength(),i=d.mont(e),o=new d(1).toRed(i);t||(t=Math.max(1,n/48|0));for(var a=e.subn(1),s=0;!a.testn(s);s++);for(var u=e.shrn(s),c=a.toRed(i);0<t;t--){var l=this._randrange(new d(2),a);r&&r(l);var f=l.toRed(i).redPow(u);if(0!==f.cmp(o)&&0!==f.cmp(c)){for(var h=1;h<s;h++){if(0===(f=f.redSqr()).cmp(o))return!1;if(0===f.cmp(c))break}if(h===s)return!1}}return!0},i.prototype.getDivisor=function(e,t){var r=e.bitLength(),n=d.mont(e),i=new d(1).toRed(n);t||(t=Math.max(1,r/48|0));for(var o=e.subn(1),a=0;!o.testn(a);a++);for(var s=e.shrn(a),u=o.toRed(n);0<t;t--){var c=this._randrange(new d(2),o),l=e.gcd(c);if(0!==l.cmpn(1))return l;var f=c.toRed(n).redPow(s);if(0!==f.cmp(i)&&0!==f.cmp(u)){for(var h=1;h<a;h++){if(0===(f=f.redSqr()).cmp(i))return f.fromRed().subn(1).gcd(e);if(0===f.cmp(u))break}if(h===a)return(f=f.redSqr()).fromRed().subn(1).gcd(e)}}return!1}},{"bn.js":17,brorand:18}],109:[function(e,t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}(t.exports=n).equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},{}],110:[function(e,t,r){"use strict";var n=r;function i(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=i(e[r].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!=typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(e="0"+e),n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16));else for(n=0;n<e.length;n++){var i=e.charCodeAt(n),o=i>>8,a=255&i;o?r.push(o,a):r.push(a)}return r},n.zero2=i,n.toHex=o,n.encode=function(e,t){return"hex"===t?o(e):e}},{}],111:[function(e,t,r){t.exports={"2.16.840.1.101.3.4.1.1":"aes-128-ecb","2.16.840.1.101.3.4.1.2":"aes-128-cbc","2.16.840.1.101.3.4.1.3":"aes-128-ofb","2.16.840.1.101.3.4.1.4":"aes-128-cfb","2.16.840.1.101.3.4.1.21":"aes-192-ecb","2.16.840.1.101.3.4.1.22":"aes-192-cbc","2.16.840.1.101.3.4.1.23":"aes-192-ofb","2.16.840.1.101.3.4.1.24":"aes-192-cfb","2.16.840.1.101.3.4.1.41":"aes-256-ecb","2.16.840.1.101.3.4.1.42":"aes-256-cbc","2.16.840.1.101.3.4.1.43":"aes-256-ofb","2.16.840.1.101.3.4.1.44":"aes-256-cfb"}},{}],112:[function(e,t,r){"use strict";var n=e("asn1.js");r.certificate=e("./certificate");var i=n.define("RSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("modulus").int(),this.key("publicExponent").int(),this.key("privateExponent").int(),this.key("prime1").int(),this.key("prime2").int(),this.key("exponent1").int(),this.key("exponent2").int(),this.key("coefficient").int())});r.RSAPrivateKey=i;var o=n.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});r.RSAPublicKey=o;var a=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(s),this.key("subjectPublicKey").bitstr())});r.PublicKey=a;var s=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("none").null_().optional(),this.key("curve").objid().optional(),this.key("params").seq().obj(this.key("p").int(),this.key("q").int(),this.key("g").int()).optional())}),u=n.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(s),this.key("subjectPrivateKey").octstr())});r.PrivateKey=u;var c=n.define("EncryptedPrivateKeyInfo",function(){this.seq().obj(this.key("algorithm").seq().obj(this.key("id").objid(),this.key("decrypt").seq().obj(this.key("kde").seq().obj(this.key("id").objid(),this.key("kdeparams").seq().obj(this.key("salt").octstr(),this.key("iters").int())),this.key("cipher").seq().obj(this.key("algo").objid(),this.key("iv").octstr()))),this.key("subjectPrivateKey").octstr())});r.EncryptedPrivateKey=c;var l=n.define("DSAPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("p").int(),this.key("q").int(),this.key("g").int(),this.key("pub_key").int(),this.key("priv_key").int())});r.DSAPrivateKey=l,r.DSAparam=n.define("DSAparam",function(){this.int()});var f=n.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(h),this.key("publicKey").optional().explicit(1).bitstr())});r.ECPrivateKey=f;var h=n.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});r.signature=n.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},{"./certificate":113,"asn1.js":2}],113:[function(e,t,r){"use strict";var n=e("asn1.js"),i=n.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),o=n.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),a=n.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional())}),s=n.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())}),u=n.define("RelativeDistinguishedName",function(){this.setof(o)}),c=n.define("RDNSequence",function(){this.seqof(u)}),l=n.define("Name",function(){this.choice({rdnSequence:this.use(c)})}),f=n.define("Validity",function(){this.seq().obj(this.key("notBefore").use(i),this.key("notAfter").use(i))}),h=n.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),d=n.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int(),this.key("serialNumber").int(),this.key("signature").use(a),this.key("issuer").use(l),this.key("validity").use(f),this.key("subject").use(l),this.key("subjectPublicKeyInfo").use(s),this.key("issuerUniqueID").implicit(1).bitstr().optional(),this.key("subjectUniqueID").implicit(2).bitstr().optional(),this.key("extensions").explicit(3).seqof(h).optional())}),p=n.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(d),this.key("signatureAlgorithm").use(a),this.key("signatureValue").bitstr())});t.exports=p},{"asn1.js":2}],114:[function(e,t,r){(function(h){var d=/Proc-Type: 4,ENCRYPTED\n\r?DEK-Info: AES-((?:128)|(?:192)|(?:256))-CBC,([0-9A-H]+)\n\r?\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?/m,p=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n/m,m=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,g=e("evp_bytestokey"),v=e("browserify-aes");t.exports=function(e,t){var r,n=e.toString(),i=n.match(d);if(i){var o="aes"+i[1],a=new h(i[2],"hex"),s=new h(i[3].replace(/\r?\n/g,""),"base64"),u=g(t,a.slice(0,8),parseInt(i[1],10)).key,c=[],l=v.createDecipheriv(o,u,a);c.push(l.update(s)),c.push(l.final()),r=h.concat(c)}else{var f=n.match(m);r=new h(f[2].replace(/\r?\n/g,""),"base64")}return{tag:n.match(p)[1],data:r}}}).call(this,e("buffer").Buffer)},{"browserify-aes":22,buffer:49,evp_bytestokey:86}],115:[function(t,r,e){(function(f){var s=t("./asn1"),h=t("./aesid.json"),u=t("./fixProc"),d=t("browserify-aes"),p=t("pbkdf2");function e(e){var t;"object"!=typeof e||f.isBuffer(e)||(t=e.passphrase,e=e.key),"string"==typeof e&&(e=new f(e));var r,n,i=u(e,t),o=i.tag,a=i.data;switch(o){case"CERTIFICATE":n=s.certificate.decode(a,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(n||(n=s.PublicKey.decode(a,"der")),r=n.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return s.RSAPublicKey.decode(n.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return n.subjectPrivateKey=n.subjectPublicKey,{type:"ec",data:n};case"1.2.840.10040.4.1":return n.algorithm.params.pub_key=s.DSAparam.decode(n.subjectPublicKey.data,"der"),{type:"dsa",data:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+o);case"ENCRYPTED PRIVATE KEY":a=function(e,t){var r=e.algorithm.decrypt.kde.kdeparams.salt,n=parseInt(e.algorithm.decrypt.kde.kdeparams.iters.toString(),10),i=h[e.algorithm.decrypt.cipher.algo.join(".")],o=e.algorithm.decrypt.cipher.iv,a=e.subjectPrivateKey,s=parseInt(i.split("-")[1],10)/8,u=p.pbkdf2Sync(t,r,n,s),c=d.createDecipheriv(i,u,o),l=[];return l.push(c.update(a)),l.push(c.final()),f.concat(l)}(a=s.EncryptedPrivateKey.decode(a,"der"),t);case"PRIVATE KEY":switch(r=(n=s.PrivateKey.decode(a,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return s.RSAPrivateKey.decode(n.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:n.algorithm.curve,privateKey:s.ECPrivateKey.decode(n.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return n.algorithm.params.priv_key=s.DSAparam.decode(n.subjectPrivateKey,"der"),{type:"dsa",params:n.algorithm.params};default:throw new Error("unknown key id "+r)}throw new Error("unknown key type "+o);case"RSA PUBLIC KEY":return s.RSAPublicKey.decode(a,"der");case"RSA PRIVATE KEY":return s.RSAPrivateKey.decode(a,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:s.DSAPrivateKey.decode(a,"der")};case"EC PRIVATE KEY":return{curve:(a=s.ECPrivateKey.decode(a,"der")).parameters.value,privateKey:a.privateKey};default:throw new Error("unknown key type "+o)}}(r.exports=e).signature=s.signature}).call(this,t("buffer").Buffer)},{"./aesid.json":111,"./asn1":112,"./fixProc":114,"browserify-aes":22,buffer:49,pbkdf2:117}],116:[function(e,t,c){(function(i){function o(e,t){for(var r=0,n=e.length-1;0<=n;n--){var i=e[n];"."===i?e.splice(n,1):".."===i?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,a=function(e){return t.exec(e).slice(1)};function s(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}c.resolve=function(){for(var e="",t=!1,r=arguments.length-1;-1<=r&&!t;r--){var n=0<=r?arguments[r]:i.cwd();if("string"!=typeof n)throw new TypeError("Arguments to path.resolve must be strings");n&&(e=n+"/"+e,t="/"===n.charAt(0))}return(t?"/":"")+(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||"."},c.normalize=function(e){var t=c.isAbsolute(e),r="/"===n(e,-1);return(e=o(s(e.split("/"),function(e){return!!e}),!t).join("/"))||t||(e="."),e&&r&&(e+="/"),(t?"/":"")+e},c.isAbsolute=function(e){return"/"===e.charAt(0)},c.join=function(){var e=Array.prototype.slice.call(arguments,0);return c.normalize(s(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},c.relative=function(e,t){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;0<=r&&""===e[r];r--);return r<t?[]:e.slice(t,r-t+1)}e=c.resolve(e).substr(1),t=c.resolve(t).substr(1);for(var n=r(e.split("/")),i=r(t.split("/")),o=Math.min(n.length,i.length),a=o,s=0;s<o;s++)if(n[s]!==i[s]){a=s;break}var u=[];for(s=a;s<n.length;s++)u.push("..");return(u=u.concat(i.slice(a))).join("/")},c.sep="/",c.delimiter=":",c.dirname=function(e){var t=a(e),r=t[0],n=t[1];return r||n?(n&&(n=n.substr(0,n.length-1)),r+n):"."},c.basename=function(e,t){var r=a(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},c.extname=function(e){return a(e)[3]};var n="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,e("_process"))},{_process:123}],117:[function(e,t,r){r.pbkdf2=e("./lib/async"),r.pbkdf2Sync=e("./lib/sync")},{"./lib/async":118,"./lib/sync":121}],118:[function(t,r,e){(function(u,c){var l,e=t("./precondition"),f=t("./default-encoding"),h=t("./sync"),d=t("safe-buffer").Buffer,p=c.crypto&&c.crypto.subtle,m={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},g=[];function v(e,t,r,n,i){return p.importKey("raw",e,{name:"PBKDF2"},!1,["deriveBits"]).then(function(e){return p.deriveBits({name:"PBKDF2",salt:t,iterations:r,hash:{name:i}},e,n<<3)}).then(function(e){return d.from(e)})}r.exports=function(t,r,n,i,o,a){if(d.isBuffer(t)||(t=d.from(t,f)),d.isBuffer(r)||(r=d.from(r,f)),e(n,i),"function"==typeof o&&(a=o,o=void 0),"function"!=typeof a)throw new Error("No callback provided to pbkdf2");var s=m[(o=o||"sha1").toLowerCase()];if(!s||"function"!=typeof c.Promise)return u.nextTick(function(){var e;try{e=h(t,r,n,i,o)}catch(e){return a(e)}a(null,e)});!function(e,t){e.then(function(e){u.nextTick(function(){t(null,e)})},function(e){u.nextTick(function(){t(e)})})}(function(e){if(c.process&&!c.process.browser)return Promise.resolve(!1);if(!p||!p.importKey||!p.deriveBits)return Promise.resolve(!1);if(void 0!==g[e])return g[e];var t=v(l=l||d.alloc(8),l,10,128,e).then(function(){return!0}).catch(function(){return!1});return g[e]=t}(s).then(function(e){return e?v(t,r,n,i,s):h(t,r,n,i,o)}),a)}}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./default-encoding":119,"./precondition":120,"./sync":121,_process:123,"safe-buffer":143}],119:[function(e,r,t){(function(e){var t;e.browser?t="utf-8":t=6<=parseInt(e.version.split(".")[0].slice(1),10)?"utf-8":"binary";r.exports=t}).call(this,e("_process"))},{_process:123}],120:[function(e,t,r){var n=Math.pow(2,30)-1;t.exports=function(e,t){if("number"!=typeof e)throw new TypeError("Iterations not a number");if(e<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||n<t||t!=t)throw new TypeError("Bad key length")}},{}],121:[function(e,t,r){var c=e("create-hash/md5"),l=e("ripemd160"),f=e("sha.js"),g=e("./precondition"),v=e("./default-encoding"),y=e("safe-buffer").Buffer,h=y.alloc(128),_={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function b(e,t,r){var n=function(t){return"rmd160"===t||"ripemd160"===t?l:"md5"===t?c:function(e){return f(t).update(e).digest()}}(e),i="sha512"===e||"sha384"===e?128:64;t.length>i?t=n(t):t.length<i&&(t=y.concat([t,h],i));for(var o=y.allocUnsafe(i+_[e]),a=y.allocUnsafe(i+_[e]),s=0;s<i;s++)o[s]=54^t[s],a[s]=92^t[s];var u=y.allocUnsafe(i+r+4);o.copy(u,0,0,i),this.ipad1=u,this.ipad2=o,this.opad=a,this.alg=e,this.blocksize=i,this.hash=n,this.size=_[e]}b.prototype.run=function(e,t){return e.copy(t,this.blocksize),this.hash(t).copy(this.opad,this.blocksize),this.hash(this.opad)},t.exports=function(e,t,r,n,i){y.isBuffer(e)||(e=y.from(e,v)),y.isBuffer(t)||(t=y.from(t,v)),g(r,n);var o=new b(i=i||"sha1",e,t.length),a=y.allocUnsafe(n),s=y.allocUnsafe(t.length+4);t.copy(s,0,0,t.length);for(var u=0,c=_[i],l=Math.ceil(n/c),f=1;f<=l;f++){s.writeUInt32BE(f,t.length);for(var h=o.run(s,o.ipad1),d=h,p=1;p<r;p++){d=o.run(d,o.ipad2);for(var m=0;m<c;m++)h[m]^=d[m]}h.copy(a,u),u+=c}return a}},{"./default-encoding":119,"./precondition":120,"create-hash/md5":55,ripemd160:142,"safe-buffer":143,"sha.js":145}],122:[function(e,t,r){(function(s){"use strict";!s.version||0===s.version.indexOf("v0.")||0===s.version.indexOf("v1.")&&0!==s.version.indexOf("v1.8.")?t.exports=function(e,t,r,n){if("function"!=typeof e)throw new TypeError('"callback" argument must be a function');var i,o,a=arguments.length;switch(a){case 0:case 1:return s.nextTick(e);case 2:return s.nextTick(function(){e.call(null,t)});case 3:return s.nextTick(function(){e.call(null,t,r)});case 4:return s.nextTick(function(){e.call(null,t,r,n)});default:for(i=new Array(a-1),o=0;o<i.length;)i[o++]=arguments[o];return s.nextTick(function(){e.apply(null,i)})}}:t.exports=s.nextTick}).call(this,e("_process"))},{_process:123}],123:[function(e,t,r){var n,i,o=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function u(t){if(n===setTimeout)return setTimeout(t,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(e){i=s}}();var c,l=[],f=!1,h=-1;function d(){f&&c&&(f=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!f){var e=u(d);f=!0;for(var t=l.length;t;){for(c=l,l=[];++h<t;)c&&c[h].run();h=-1,t=l.length}c=null,f=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===s||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function g(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(1<arguments.length)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new m(e,t)),1!==l.length||f||u(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=g,o.addListener=g,o.once=g,o.off=g,o.removeListener=g,o.removeAllListeners=g,o.emit=g,o.prependListener=g,o.prependOnceListener=g,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},{}],124:[function(e,t,r){r.publicEncrypt=e("./publicEncrypt"),r.privateDecrypt=e("./privateDecrypt"),r.privateEncrypt=function(e,t){return r.publicEncrypt(e,t,!0)},r.publicDecrypt=function(e,t){return r.privateDecrypt(e,t,!0)}},{"./privateDecrypt":126,"./publicEncrypt":127}],125:[function(e,t,r){(function(o){var a=e("create-hash");function s(e){var t=new o(4);return t.writeUInt32BE(e,0),t}t.exports=function(e,t){for(var r,n=new o(""),i=0;n.length<t;)r=s(i++),n=o.concat([n,a("sha1").update(e).update(r).digest()]);return n.slice(0,t)}}).call(this,e("buffer").Buffer)},{buffer:49,"create-hash":53}],126:[function(e,t,r){(function(l){var u=e("parse-asn1"),f=e("./mgf"),h=e("./xor"),c=e("bn.js"),d=e("browserify-rsa"),p=e("create-hash"),m=e("./withPublic");t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,o=u(e),a=o.modulus.byteLength();if(t.length>a||0<=new c(t).cmp(o.modulus))throw new Error("decryption error");i=r?m(new c(t),o):d(t,o);var s=new l(a-i.length);if(s.fill(0),i=l.concat([s,i],a),4===n)return function(e,t){e.modulus;var r=e.modulus.byteLength(),n=(t.length,p("sha1").update(new l("")).digest()),i=n.length;if(0!==t[0])throw new Error("decryption error");var o=t.slice(1,i+1),a=t.slice(i+1),s=h(o,f(a,i)),u=h(a,f(s,r-i-1));if(function(e,t){e=new l(e),t=new l(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++i<n;)r+=e[i]^t[i];return r}(n,u.slice(0,i)))throw new Error("decryption error");var c=i;for(;0===u[c];)c++;if(1===u[c++])return u.slice(c);throw new Error("decryption error")}(o,i);if(1===n)return function(e,t,r){var n=t.slice(0,2),i=2,o=0;for(;0!==t[i++];)if(i>=t.length){o++;break}var a=t.slice(2,i-1);t.slice(i-1,i);("0002"!==n.toString("hex")&&!r||"0001"!==n.toString("hex")&&r)&&o++;a.length<8&&o++;if(o)throw new Error("decryption error");return t.slice(i)}(0,i,r);if(3===n)return i;throw new Error("unknown padding")}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115}],127:[function(e,t,r){(function(h){var a=e("parse-asn1"),d=e("randombytes"),p=e("create-hash"),m=e("./mgf"),g=e("./xor"),v=e("bn.js"),s=e("./withPublic"),u=e("browserify-rsa");t.exports=function(e,t,r){var n;n=e.padding?e.padding:r?1:4;var i,o=a(e);if(4===n)i=function(e,t){var r=e.modulus.byteLength(),n=t.length,i=p("sha1").update(new h("")).digest(),o=i.length,a=2*o;if(r-a-2<n)throw new Error("message too long");var s=new h(r-n-a-2);s.fill(0);var u=r-o-1,c=d(o),l=g(h.concat([i,s,new h([1]),t],u),m(c,u)),f=g(c,m(l,o));return new v(h.concat([new h([0]),f,l],r))}(o,t);else if(1===n)i=function(e,t,r){var n,i=t.length,o=e.modulus.byteLength();if(o-11<i)throw new Error("message too long");r?(n=new h(o-i-3)).fill(255):n=function(e,t){var r,n=new h(e),i=0,o=d(2*e),a=0;for(;i<e;)a===o.length&&(o=d(2*e),a=0),(r=o[a++])&&(n[i++]=r);return n}(o-i-3);return new v(h.concat([new h([0,r?1:2]),n,new h([0]),t],o))}(o,t,r);else{if(3!==n)throw new Error("unknown padding");if(0<=(i=new v(t)).cmp(o.modulus))throw new Error("data too long for modulus")}return r?u(i,o):s(i,o)}}).call(this,e("buffer").Buffer)},{"./mgf":125,"./withPublic":128,"./xor":129,"bn.js":17,"browserify-rsa":40,buffer:49,"create-hash":53,"parse-asn1":115,randombytes:130}],128:[function(e,t,r){(function(r){var n=e("bn.js");t.exports=function(e,t){return new r(e.toRed(n.mont(t.modulus)).redPow(new n(t.publicExponent)).fromRed().toArray())}}).call(this,e("buffer").Buffer)},{"bn.js":17,buffer:49}],129:[function(e,t,r){t.exports=function(e,t){for(var r=e.length,n=-1;++n<r;)e[n]^=t[n];return e}},{}],130:[function(e,t,r){(function(i,o){"use strict";var a=e("safe-buffer").Buffer,s=o.crypto||o.msCrypto;s&&s.getRandomValues?t.exports=function(e,t){if(65536<e)throw new Error("requested too many random bytes");var r=new o.Uint8Array(e);0<e&&s.getRandomValues(r);var n=a.from(r.buffer);return"function"!=typeof t?n:i.nextTick(function(){t(null,n)})}:t.exports=function(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}}).call(this,e("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,"safe-buffer":143}],131:[function(r,e,d){(function(a,i){"use strict";function e(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var t=r("safe-buffer"),s=r("randombytes"),o=t.Buffer,n=t.kMaxLength,u=i.crypto||i.msCrypto,c=Math.pow(2,32)-1;function l(e,t){if("number"!=typeof e||e!=e)throw new TypeError("offset must be a number");if(c<e||e<0)throw new TypeError("offset must be a uint32");if(n<e||t<e)throw new RangeError("offset out of range")}function f(e,t,r){if("number"!=typeof e||e!=e)throw new TypeError("size must be a number");if(c<e||e<0)throw new TypeError("size must be a uint32");if(r<e+t||n<e)throw new RangeError("buffer too small")}function h(r,n,e,i){if(a.browser){var t=r.buffer,o=new Uint8Array(t,n,e);return u.getRandomValues(o),i?void a.nextTick(function(){i(null,r)}):r}if(!i)return s(e).copy(r,n),r;s(e,function(e,t){if(e)return i(e);t.copy(r,n),i(null,r)})}u&&u.getRandomValues||!a.browser?(d.randomFill=function(e,t,r,n){if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof t)n=t,t=0,r=e.length;else if("function"==typeof r)n=r,r=e.length-t;else if("function"!=typeof n)throw new TypeError('"cb" argument must be a function');return l(t,e.length),f(r,t,e.length),h(e,t,r,n)},d.randomFillSync=function(e,t,r){void 0===t&&(t=0);if(!(o.isBuffer(e)||e instanceof i.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');l(t,e.length),void 0===r&&(r=e.length-t);return f(r,t,e.length),h(e,t,r)}):(d.randomFill=e,d.randomFillSync=e)}).call(this,r("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:123,randombytes:130,"safe-buffer":143}],132:[function(e,t,r){t.exports=e("./lib/_stream_duplex.js")},{"./lib/_stream_duplex.js":133}],133:[function(e,t,r){"use strict";var n=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t};t.exports=f;var i=e("process-nextick-args"),o=e("core-util-is");o.inherits=e("inherits");var a=e("./_stream_readable"),s=e("./_stream_writable");o.inherits(f,a);for(var u=n(s.prototype),c=0;c<u.length;c++){var l=u[c];f.prototype[l]||(f.prototype[l]=s.prototype[l])}function f(e){if(!(this instanceof f))return new f(e);a.call(this,e),s.call(this,e),e&&!1===e.readable&&(this.readable=!1),e&&!1===e.writable&&(this.writable=!1),this.allowHalfOpen=!0,e&&!1===e.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",h)}function h(){this.allowHalfOpen||this._writableState.ended||i(d,this)}function d(e){e.end()}},{"./_stream_readable":135,"./_stream_writable":137,"core-util-is":51,inherits:103,"process-nextick-args":122}],134:[function(e,t,r){"use strict";t.exports=o;var n=e("./_stream_transform"),i=e("core-util-is");function o(e){if(!(this instanceof o))return new o(e);n.call(this,e)}i.inherits=e("inherits"),i.inherits(o,n),o.prototype._transform=function(e,t,r){r(null,e)}},{"./_stream_transform":136,"core-util-is":51,inherits:103}],135:[function(M,P,e){(function(m){"use strict";P.exports=n;var g=M("process-nextick-args"),v=M("isarray"),h=M("buffer").Buffer;n.ReadableState=r;M("events");var i,y=function(e,t){return e.listeners(t).length};!function(){try{i=M("stream")}catch(e){}finally{i||(i=M("events").EventEmitter)}}();h=M("buffer").Buffer;var e=M("core-util-is");e.inherits=M("inherits");var o,a,t=M("util"),_=void 0;function r(e,t){a=a||M("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof a&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.buffer=[],this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.ranOut=!1,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(o||(o=M("string_decoder/").StringDecoder),this.decoder=new o(e.encoding),this.encoding=e.encoding)}function n(e){if(a=a||M("./_stream_duplex"),!(this instanceof n))return new n(e);this._readableState=new r(e,this),this.readable=!0,e&&"function"==typeof e.read&&(this._read=e.read),i.call(this)}function s(e,t,r,n,i){var o=function(e,t){var r=null;h.isBuffer(t)||"string"==typeof t||null==t||e.objectMode||(r=new TypeError("Invalid non-string/buffer chunk"));return r}(t,r);if(o)e.emit("error",o);else if(null===r)t.reading=!1,function(e,t){if(t.ended)return;if(t.decoder){var r=t.decoder.end();r&&r.length&&(t.buffer.push(r),t.length+=t.objectMode?1:r.length)}t.ended=!0,l(e)}(e,t);else if(t.objectMode||r&&0<r.length)if(t.ended&&!i){var a=new Error("stream.push() after EOF");e.emit("error",a)}else if(t.endEmitted&&i){a=new Error("stream.unshift() after end event");e.emit("error",a)}else{var s;!t.decoder||i||n||(r=t.decoder.write(r),s=!t.objectMode&&0===r.length),i||(t.reading=!1),s||(t.flowing&&0===t.length&&!t.sync?(e.emit("data",r),e.read(0)):(t.length+=t.objectMode?1:r.length,i?t.buffer.unshift(r):t.buffer.push(r),t.needReadable&&l(e))),function(e,t){t.readingMore||(t.readingMore=!0,g(d,e,t))}(e,t)}else i||(t.reading=!1);return function(e){return!e.ended&&(e.needReadable||e.length<e.highWaterMark||0===e.length)}(t)}_=t&&t.debuglog?t.debuglog("stream"):function(){},e.inherits(n,i),n.prototype.push=function(e,t){var r=this._readableState;return r.objectMode||"string"!=typeof e||(t=t||r.defaultEncoding)!==r.encoding&&(e=new h(e,t),t=""),s(this,r,e,t,!1)},n.prototype.unshift=function(e){return s(this,this._readableState,e,"",!0)},n.prototype.isPaused=function(){return!1===this._readableState.flowing},n.prototype.setEncoding=function(e){return o||(o=M("string_decoder/").StringDecoder),this._readableState.decoder=new o(e),this._readableState.encoding=e,this};var u=8388608;function c(e,t){return 0===t.length&&t.ended?0:t.objectMode?0===e?0:1:null===e||isNaN(e)?t.flowing&&t.buffer.length?t.buffer[0].length:t.length:e<=0?0:(e>t.highWaterMark&&(t.highWaterMark=function(e){return u<=e?e=u:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e>t.length?t.ended?t.length:(t.needReadable=!0,0):e)}function l(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(_("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?g(f,e):f(e))}function f(e){_("emit readable"),e.emit("readable"),x(e)}function d(e,t){for(var r=t.length;!t.reading&&!t.flowing&&!t.ended&&t.length<t.highWaterMark&&(_("maybeReadMore read 0"),e.read(0),r!==t.length);)r=t.length;t.readingMore=!1}function p(e){_("readable nexttick read 0"),e.read(0)}function b(e,t){t.reading||(_("resume read 0"),e.read(0)),t.resumeScheduled=!1,e.emit("resume"),x(e),t.flowing&&!t.reading&&e.read(0)}function x(e){var t=e._readableState;if(_("flow",t.flowing),t.flowing)do{var r=e.read()}while(null!==r&&t.flowing)}function w(e,t){var r,n=t.buffer,i=t.length,o=!!t.decoder,a=!!t.objectMode;if(0===n.length)return null;if(0===i)r=null;else if(a)r=n.shift();else if(!e||i<=e)r=o?n.join(""):1===n.length?n[0]:h.concat(n,i),n.length=0;else{if(e<n[0].length)r=(l=n[0]).slice(0,e),n[0]=l.slice(e);else if(e===n[0].length)r=n.shift();else{r=o?"":new h(e);for(var s=0,u=0,c=n.length;u<c&&s<e;u++){var l=n[0],f=Math.min(e-s,l.length);o?r+=l.slice(0,f):l.copy(r,s,0,f),f<l.length?n[0]=l.slice(f):n.shift(),s+=f}}}return r}function T(e){var t=e._readableState;if(0<t.length)throw new Error("endReadable called on non-empty stream");t.endEmitted||(t.ended=!0,g(S,t,e))}function S(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}n.prototype.read=function(e){_("read",e);var t=this._readableState,r=e;if(("number"!=typeof e||0<e)&&(t.emittedReadable=!1),0===e&&t.needReadable&&(t.length>=t.highWaterMark||t.ended))return _("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):l(this),null;if(0===(e=c(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return _("need readable",i),(0===t.length||t.length-e<t.highWaterMark)&&_("length less than watermark",i=!0),(t.ended||t.reading)&&_("reading or ended",i=!1),i&&(_("do read"),t.reading=!0,t.sync=!0,0===t.length&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1),i&&!t.reading&&(e=c(r,t)),null===(n=0<e?w(e,t):null)&&(t.needReadable=!0,e=0),t.length-=e,0!==t.length||t.ended||(t.needReadable=!0),r!==e&&t.ended&&0===t.length&&T(this),null!==n&&this.emit("data",n),n},n.prototype._read=function(e){this.emit("error",new Error("not implemented"))},n.prototype.pipe=function(t,e){var r=this,n=this._readableState;switch(n.pipesCount){case 0:n.pipes=t;break;case 1:n.pipes=[n.pipes,t];break;default:n.pipes.push(t)}n.pipesCount+=1,_("pipe count=%d opts=%j",n.pipesCount,e);var i=(!e||!1!==e.end)&&t!==m.stdout&&t!==m.stderr?a:c;function o(e){_("onunpipe"),e===r&&c()}function a(){_("onend"),t.end()}n.endEmitted?g(i):r.once("end",i),t.on("unpipe",o);var s=function(t){return function(){var e=t._readableState;_("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&y(t,"data")&&(e.flowing=!0,x(t))}}(r);t.on("drain",s);var u=!1;function c(){_("cleanup"),t.removeListener("close",h),t.removeListener("finish",d),t.removeListener("drain",s),t.removeListener("error",f),t.removeListener("unpipe",o),r.removeListener("end",a),r.removeListener("end",c),r.removeListener("data",l),u=!0,!n.awaitDrain||t._writableState&&!t._writableState.needDrain||s()}function l(e){_("ondata"),!1===t.write(e)&&(1!==n.pipesCount||n.pipes[0]!==t||1!==r.listenerCount("data")||u||(_("false write response, pause",r._readableState.awaitDrain),r._readableState.awaitDrain++),r.pause())}function f(e){_("onerror",e),p(),t.removeListener("error",f),0===y(t,"error")&&t.emit("error",e)}function h(){t.removeListener("finish",d),p()}function d(){_("onfinish"),t.removeListener("close",h),p()}function p(){_("unpipe"),r.unpipe(t)}return r.on("data",l),t._events&&t._events.error?v(t._events.error)?t._events.error.unshift(f):t._events.error=[f,t._events.error]:t.on("error",f),t.once("close",h),t.once("finish",d),t.emit("pipe",r),n.flowing||(_("pipe resume"),r.resume()),t},n.prototype.unpipe=function(e){var t=this._readableState;if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes||(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this)),this;if(!e){var r=t.pipes,n=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var i=0;i<n;i++)r[i].emit("unpipe",this);return this}var o=function(e,t){for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}(t.pipes,e);return-1===o||(t.pipes.splice(o,1),t.pipesCount-=1,1===t.pipesCount&&(t.pipes=t.pipes[0]),e.emit("unpipe",this)),this},n.prototype.addListener=n.prototype.on=function(e,t){var r=i.prototype.on.call(this,e,t);if("data"===e&&!1!==this._readableState.flowing&&this.resume(),"readable"===e&&!this._readableState.endEmitted){var n=this._readableState;n.readableListening||(n.readableListening=!0,n.emittedReadable=!1,n.needReadable=!0,n.reading?n.length&&l(this):g(p,this))}return r},n.prototype.resume=function(){var e=this._readableState;return e.flowing||(_("resume"),e.flowing=!0,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,g(b,e,t))}(this,e)),this},n.prototype.pause=function(){return _("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(_("pause"),this._readableState.flowing=!1,this.emit("pause")),this},n.prototype.wrap=function(t){var r=this._readableState,n=!1,i=this;for(var e in t.on("end",function(){if(_("wrapped end"),r.decoder&&!r.ended){var e=r.decoder.end();e&&e.length&&i.push(e)}i.push(null)}),t.on("data",function(e){(_("wrapped data"),r.decoder&&(e=r.decoder.write(e)),r.objectMode&&null==e)||(r.objectMode||e&&e.length)&&(i.push(e)||(n=!0,t.pause()))}),t)void 0===this[e]&&"function"==typeof t[e]&&(this[e]=function(e){return function(){return t[e].apply(t,arguments)}}(e));return function(e,t){for(var r=0,n=e.length;r<n;r++)t(e[r],r)}(["error","close","destroy","pause","resume"],function(e){t.on(e,i.emit.bind(i,e))}),i._read=function(e){_("wrapped _read",e),n&&(n=!1,t.resume())},i},n._fromList=w}).call(this,M("_process"))},{"./_stream_duplex":133,_process:123,buffer:49,"core-util-is":51,events:85,inherits:103,isarray:105,"process-nextick-args":122,"string_decoder/":153,util:19}],136:[function(e,t,r){"use strict";t.exports=a;var n=e("./_stream_duplex"),i=e("core-util-is");function o(r){this.afterTransform=function(e,t){return function(e,t,r){var n=e._transformState;n.transforming=!1;var i=n.writecb;if(!i)return e.emit("error",new Error("no writecb in Transform class"));n.writechunk=null,(n.writecb=null)!=r&&e.push(r);i(t);var o=e._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&e._read(o.highWaterMark)}(r,e,t)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function a(e){if(!(this instanceof a))return new a(e);n.call(this,e),this._transformState=new o(this);var t=this;this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(e){s(t,e)}):s(t)})}function s(e,t){if(t)return e.emit("error",t);var r=e._writableState,n=e._transformState;if(r.length)throw new Error("calling transform done when ws.length != 0");if(n.transforming)throw new Error("calling transform done when still transforming");return e.push(null)}i.inherits=e("inherits"),i.inherits(a,n),a.prototype.push=function(e,t){return this._transformState.needTransform=!1,n.prototype.push.call(this,e,t)},a.prototype._transform=function(e,t,r){throw new Error("not implemented")},a.prototype._write=function(e,t,r){var n=this._transformState;if(n.writecb=r,n.writechunk=e,n.writeencoding=t,!n.transforming){var i=this._readableState;(n.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},a.prototype._read=function(e){var t=this._transformState;null!==t.writechunk&&t.writecb&&!t.transforming?(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform)):t.needTransform=!0}},{"./_stream_duplex":133,"core-util-is":51,inherits:103}],137:[function(_,b,e){(function(e){"use strict";b.exports=f;var a=_("process-nextick-args"),s=!e.browser&&-1<["v0.10","v0.9."].indexOf(e.version.slice(0,5))?setImmediate:a,u=_("buffer").Buffer;f.WritableState=i;var t=_("core-util-is");t.inherits=_("inherits");var r,n={deprecate:_("util-deprecate")};!function(){try{r=_("stream")}catch(e){}finally{r||(r=_("events").EventEmitter)}}();var o;u=_("buffer").Buffer;function c(){}function l(e,t,r){this.chunk=e,this.encoding=t,this.callback=r,this.next=null}function i(e,t){o=o||_("./_stream_duplex"),e=e||{},this.objectMode=!!e.objectMode,t instanceof o&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var r=e.highWaterMark,n=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:n,this.highWaterMark=~~this.highWaterMark,this.needDrain=!1,this.ending=!1,this.ended=!1;var i=(this.finished=!1)===e.decodeStrings;this.decodeStrings=!i,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,t){var r=e._writableState,n=r.sync,i=r.writecb;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(r),t)!function(e,t,r,n,i){--t.pendingcb,r?a(i,n):i(n);e._writableState.errorEmitted=!0,e.emit("error",n)}(e,r,n,t,i);else{var o=m(r);o||r.corked||r.bufferProcessing||!r.bufferedRequest||p(e,r),n?s(d,e,r,o,i):d(e,r,o,i)}}(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new y(this),this.corkedRequestsFree.next=new y(this)}function f(e){if(o=o||_("./_stream_duplex"),!(this instanceof f||this instanceof o))return new f(e);this._writableState=new i(e,this),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev)),r.call(this)}function h(e,t,r,n,i,o,a){t.writelen=n,t.writecb=a,t.writing=!0,t.sync=!0,r?e._writev(i,t.onwrite):e._write(i,o,t.onwrite),t.sync=!1}function d(e,t,r,n){r||function(e,t){0===t.length&&t.needDrain&&(t.needDrain=!1,e.emit("drain"))}(e,t),t.pendingcb--,n(),v(e,t)}function p(e,t){t.bufferProcessing=!0;var r=t.bufferedRequest;if(e._writev&&r&&r.next){var n=t.bufferedRequestCount,i=new Array(n),o=t.corkedRequestsFree;o.entry=r;for(var a=0;r;)r=(i[a]=r).next,a+=1;h(e,t,!0,t.length,i,"",o.finish),t.pendingcb++,t.lastBufferedRequest=null,t.corkedRequestsFree=o.next,o.next=null}else{for(;r;){var s=r.chunk,u=r.encoding,c=r.callback;if(h(e,t,!1,t.objectMode?1:s.length,s,u,c),r=r.next,t.writing)break}null===r&&(t.lastBufferedRequest=null)}t.bufferedRequestCount=0,t.bufferedRequest=r,t.bufferProcessing=!1}function m(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function g(e,t){t.prefinished||(t.prefinished=!0,e.emit("prefinish"))}function v(e,t){var r=m(t);return r&&(0===t.pendingcb?(g(e,t),t.finished=!0,e.emit("finish")):g(e,t)),r}function y(n){var i=this;this.next=null,this.entry=null,this.finish=function(e){var t=i.entry;for(i.entry=null;t;){var r=t.callback;n.pendingcb--,r(e),t=t.next}n.corkedRequestsFree?n.corkedRequestsFree.next=i:n.corkedRequestsFree=i}}t.inherits(f,r),i.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(i.prototype,"buffer",{get:n.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.")})}catch(e){}}(),f.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe. Not readable."))},f.prototype.write=function(e,t,r){var n=this._writableState,i=!1;return"function"==typeof t&&(r=t,t=null),u.isBuffer(e)?t="buffer":t||(t=n.defaultEncoding),"function"!=typeof r&&(r=c),n.ended?function(e,t){var r=new Error("write after end");e.emit("error",r),a(t,r)}(this,r):function(e,t,r,n){var i=!0;if(!u.isBuffer(r)&&"string"!=typeof r&&null!=r&&!t.objectMode){var o=new TypeError("Invalid non-string/buffer chunk");e.emit("error",o),a(n,o),i=!1}return i}(this,n,e,r)&&(n.pendingcb++,i=function(e,t,r,n,i){r=function(e,t,r){return e.objectMode||!1===e.decodeStrings||"string"!=typeof t||(t=new u(t,r)),t}(t,r,n),u.isBuffer(r)&&(n="buffer");var o=t.objectMode?1:r.length;t.length+=o;var a=t.length<t.highWaterMark;a||(t.needDrain=!0);if(t.writing||t.corked){var s=t.lastBufferedRequest;t.lastBufferedRequest=new l(r,n,i),s?s.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else h(e,t,!1,o,r,n,i);return a}(this,n,e,t,r)),i},f.prototype.cork=function(){this._writableState.corked++},f.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.finished||e.bufferProcessing||!e.bufferedRequest||p(this,e))},f.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(-1<["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e},f.prototype._write=function(e,t,r){r(new Error("not implemented"))},f.prototype._writev=null,f.prototype.end=function(e,t,r){var n=this._writableState;"function"==typeof e?(r=e,t=e=null):"function"==typeof t&&(r=t,t=null),null!=e&&this.write(e,t),n.corked&&(n.corked=1,this.uncork()),n.ending||n.finished||function(e,t,r){t.ending=!0,v(e,t),r&&(t.finished?a(r):e.once("finish",r));t.ended=!0,e.writable=!1}(this,n,r)}}).call(this,_("_process"))},{"./_stream_duplex":133,_process:123,buffer:49,"core-util-is":51,events:85,inherits:103,"process-nextick-args":122,"util-deprecate":154}],138:[function(e,t,r){t.exports=e("./lib/_stream_passthrough.js")},{"./lib/_stream_passthrough.js":134}],139:[function(e,t,r){var n=function(){try{return e("stream")}catch(e){}}();(r=t.exports=e("./lib/_stream_readable.js")).Stream=n||r,(r.Readable=r).Writable=e("./lib/_stream_writable.js"),r.Duplex=e("./lib/_stream_duplex.js"),r.Transform=e("./lib/_stream_transform.js"),r.PassThrough=e("./lib/_stream_passthrough.js")},{"./lib/_stream_duplex.js":133,"./lib/_stream_passthrough.js":134,"./lib/_stream_readable.js":135,"./lib/_stream_transform.js":136,"./lib/_stream_writable.js":137}],140:[function(e,t,r){t.exports=e("./lib/_stream_transform.js")},{"./lib/_stream_transform.js":136}],141:[function(e,t,r){t.exports=e("./lib/_stream_writable.js")},{"./lib/_stream_writable.js":137}],142:[function(i,o,e){(function(t){"use strict";var e=i("inherits"),r=i("hash-base");function n(){r.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function d(e,t){return e<<t|e>>>32-t}function p(e,t,r,n,i,o,a,s){return d(e+(t^r^n)+o+a|0,s)+i|0}function m(e,t,r,n,i,o,a,s){return d(e+(t&r|~t&n)+o+a|0,s)+i|0}function g(e,t,r,n,i,o,a,s){return d(e+((t|~r)^n)+o+a|0,s)+i|0}function v(e,t,r,n,i,o,a,s){return d(e+(t&n|r&~n)+o+a|0,s)+i|0}function y(e,t,r,n,i,o,a,s){return d(e+(t^(r|~n))+o+a|0,s)+i|0}e(n,r),n.prototype._update=function(){for(var e=new Array(16),t=0;t<16;++t)e[t]=this._block.readInt32LE(4*t);var r=this._a,n=this._b,i=this._c,o=this._d,a=this._e;a=p(a,r=p(r,n,i,o,a,e[0],0,11),n,i=d(i,10),o,e[1],0,14),n=p(n=d(n,10),i=p(i,o=p(o,a,r,n,i,e[2],0,15),a,r=d(r,10),n,e[3],0,12),o,a=d(a,10),r,e[4],0,5),o=p(o=d(o,10),a=p(a,r=p(r,n,i,o,a,e[5],0,8),n,i=d(i,10),o,e[6],0,7),r,n=d(n,10),i,e[7],0,9),r=p(r=d(r,10),n=p(n,i=p(i,o,a,r,n,e[8],0,11),o,a=d(a,10),r,e[9],0,13),i,o=d(o,10),a,e[10],0,14),i=p(i=d(i,10),o=p(o,a=p(a,r,n,i,o,e[11],0,15),r,n=d(n,10),i,e[12],0,6),a,r=d(r,10),n,e[13],0,7),a=m(a=d(a,10),r=p(r,n=p(n,i,o,a,r,e[14],0,9),i,o=d(o,10),a,e[15],0,8),n,i=d(i,10),o,e[7],1518500249,7),n=m(n=d(n,10),i=m(i,o=m(o,a,r,n,i,e[4],1518500249,6),a,r=d(r,10),n,e[13],1518500249,8),o,a=d(a,10),r,e[1],1518500249,13),o=m(o=d(o,10),a=m(a,r=m(r,n,i,o,a,e[10],1518500249,11),n,i=d(i,10),o,e[6],1518500249,9),r,n=d(n,10),i,e[15],1518500249,7),r=m(r=d(r,10),n=m(n,i=m(i,o,a,r,n,e[3],1518500249,15),o,a=d(a,10),r,e[12],1518500249,7),i,o=d(o,10),a,e[0],1518500249,12),i=m(i=d(i,10),o=m(o,a=m(a,r,n,i,o,e[9],1518500249,15),r,n=d(n,10),i,e[5],1518500249,9),a,r=d(r,10),n,e[2],1518500249,11),a=m(a=d(a,10),r=m(r,n=m(n,i,o,a,r,e[14],1518500249,7),i,o=d(o,10),a,e[11],1518500249,13),n,i=d(i,10),o,e[8],1518500249,12),n=g(n=d(n,10),i=g(i,o=g(o,a,r,n,i,e[3],1859775393,11),a,r=d(r,10),n,e[10],1859775393,13),o,a=d(a,10),r,e[14],1859775393,6),o=g(o=d(o,10),a=g(a,r=g(r,n,i,o,a,e[4],1859775393,7),n,i=d(i,10),o,e[9],1859775393,14),r,n=d(n,10),i,e[15],1859775393,9),r=g(r=d(r,10),n=g(n,i=g(i,o,a,r,n,e[8],1859775393,13),o,a=d(a,10),r,e[1],1859775393,15),i,o=d(o,10),a,e[2],1859775393,14),i=g(i=d(i,10),o=g(o,a=g(a,r,n,i,o,e[7],1859775393,8),r,n=d(n,10),i,e[0],1859775393,13),a,r=d(r,10),n,e[6],1859775393,6),a=g(a=d(a,10),r=g(r,n=g(n,i,o,a,r,e[13],1859775393,5),i,o=d(o,10),a,e[11],1859775393,12),n,i=d(i,10),o,e[5],1859775393,7),n=v(n=d(n,10),i=v(i,o=g(o,a,r,n,i,e[12],1859775393,5),a,r=d(r,10),n,e[1],2400959708,11),o,a=d(a,10),r,e[9],2400959708,12),o=v(o=d(o,10),a=v(a,r=v(r,n,i,o,a,e[11],2400959708,14),n,i=d(i,10),o,e[10],2400959708,15),r,n=d(n,10),i,e[0],2400959708,14),r=v(r=d(r,10),n=v(n,i=v(i,o,a,r,n,e[8],2400959708,15),o,a=d(a,10),r,e[12],2400959708,9),i,o=d(o,10),a,e[4],2400959708,8),i=v(i=d(i,10),o=v(o,a=v(a,r,n,i,o,e[13],2400959708,9),r,n=d(n,10),i,e[3],2400959708,14),a,r=d(r,10),n,e[7],2400959708,5),a=v(a=d(a,10),r=v(r,n=v(n,i,o,a,r,e[15],2400959708,6),i,o=d(o,10),a,e[14],2400959708,8),n,i=d(i,10),o,e[5],2400959708,6),n=y(n=d(n,10),i=v(i,o=v(o,a,r,n,i,e[6],2400959708,5),a,r=d(r,10),n,e[2],2400959708,12),o,a=d(a,10),r,e[4],2840853838,9),o=y(o=d(o,10),a=y(a,r=y(r,n,i,o,a,e[0],2840853838,15),n,i=d(i,10),o,e[5],2840853838,5),r,n=d(n,10),i,e[9],2840853838,11),r=y(r=d(r,10),n=y(n,i=y(i,o,a,r,n,e[7],2840853838,6),o,a=d(a,10),r,e[12],2840853838,8),i,o=d(o,10),a,e[2],2840853838,13),i=y(i=d(i,10),o=y(o,a=y(a,r,n,i,o,e[10],2840853838,12),r,n=d(n,10),i,e[14],2840853838,5),a,r=d(r,10),n,e[1],2840853838,12),a=y(a=d(a,10),r=y(r,n=y(n,i,o,a,r,e[3],2840853838,13),i,o=d(o,10),a,e[8],2840853838,14),n,i=d(i,10),o,e[11],2840853838,11),n=y(n=d(n,10),i=y(i,o=y(o,a,r,n,i,e[6],2840853838,8),a,r=d(r,10),n,e[15],2840853838,5),o,a=d(a,10),r,e[13],2840853838,6),o=d(o,10);var s=this._a,u=this._b,c=this._c,l=this._d,f=this._e;f=y(f,s=y(s,u,c,l,f,e[5],1352829926,8),u,c=d(c,10),l,e[14],1352829926,9),u=y(u=d(u,10),c=y(c,l=y(l,f,s,u,c,e[7],1352829926,9),f,s=d(s,10),u,e[0],1352829926,11),l,f=d(f,10),s,e[9],1352829926,13),l=y(l=d(l,10),f=y(f,s=y(s,u,c,l,f,e[2],1352829926,15),u,c=d(c,10),l,e[11],1352829926,15),s,u=d(u,10),c,e[4],1352829926,5),s=y(s=d(s,10),u=y(u,c=y(c,l,f,s,u,e[13],1352829926,7),l,f=d(f,10),s,e[6],1352829926,7),c,l=d(l,10),f,e[15],1352829926,8),c=y(c=d(c,10),l=y(l,f=y(f,s,u,c,l,e[8],1352829926,11),s,u=d(u,10),c,e[1],1352829926,14),f,s=d(s,10),u,e[10],1352829926,14),f=v(f=d(f,10),s=y(s,u=y(u,c,l,f,s,e[3],1352829926,12),c,l=d(l,10),f,e[12],1352829926,6),u,c=d(c,10),l,e[6],1548603684,9),u=v(u=d(u,10),c=v(c,l=v(l,f,s,u,c,e[11],1548603684,13),f,s=d(s,10),u,e[3],1548603684,15),l,f=d(f,10),s,e[7],1548603684,7),l=v(l=d(l,10),f=v(f,s=v(s,u,c,l,f,e[0],1548603684,12),u,c=d(c,10),l,e[13],1548603684,8),s,u=d(u,10),c,e[5],1548603684,9),s=v(s=d(s,10),u=v(u,c=v(c,l,f,s,u,e[10],1548603684,11),l,f=d(f,10),s,e[14],1548603684,7),c,l=d(l,10),f,e[15],1548603684,7),c=v(c=d(c,10),l=v(l,f=v(f,s,u,c,l,e[8],1548603684,12),s,u=d(u,10),c,e[12],1548603684,7),f,s=d(s,10),u,e[4],1548603684,6),f=v(f=d(f,10),s=v(s,u=v(u,c,l,f,s,e[9],1548603684,15),c,l=d(l,10),f,e[1],1548603684,13),u,c=d(c,10),l,e[2],1548603684,11),u=g(u=d(u,10),c=g(c,l=g(l,f,s,u,c,e[15],1836072691,9),f,s=d(s,10),u,e[5],1836072691,7),l,f=d(f,10),s,e[1],1836072691,15),l=g(l=d(l,10),f=g(f,s=g(s,u,c,l,f,e[3],1836072691,11),u,c=d(c,10),l,e[7],1836072691,8),s,u=d(u,10),c,e[14],1836072691,6),s=g(s=d(s,10),u=g(u,c=g(c,l,f,s,u,e[6],1836072691,6),l,f=d(f,10),s,e[9],1836072691,14),c,l=d(l,10),f,e[11],1836072691,12),c=g(c=d(c,10),l=g(l,f=g(f,s,u,c,l,e[8],1836072691,13),s,u=d(u,10),c,e[12],1836072691,5),f,s=d(s,10),u,e[2],1836072691,14),f=g(f=d(f,10),s=g(s,u=g(u,c,l,f,s,e[10],1836072691,13),c,l=d(l,10),f,e[0],1836072691,13),u,c=d(c,10),l,e[4],1836072691,7),u=m(u=d(u,10),c=m(c,l=g(l,f,s,u,c,e[13],1836072691,5),f,s=d(s,10),u,e[8],2053994217,15),l,f=d(f,10),s,e[6],2053994217,5),l=m(l=d(l,10),f=m(f,s=m(s,u,c,l,f,e[4],2053994217,8),u,c=d(c,10),l,e[1],2053994217,11),s,u=d(u,10),c,e[3],2053994217,14),s=m(s=d(s,10),u=m(u,c=m(c,l,f,s,u,e[11],2053994217,14),l,f=d(f,10),s,e[15],2053994217,6),c,l=d(l,10),f,e[0],2053994217,14),c=m(c=d(c,10),l=m(l,f=m(f,s,u,c,l,e[5],2053994217,6),s,u=d(u,10),c,e[12],2053994217,9),f,s=d(s,10),u,e[2],2053994217,12),f=m(f=d(f,10),s=m(s,u=m(u,c,l,f,s,e[13],2053994217,9),c,l=d(l,10),f,e[9],2053994217,12),u,c=d(c,10),l,e[7],2053994217,5),u=p(u=d(u,10),c=m(c,l=m(l,f,s,u,c,e[10],2053994217,15),f,s=d(s,10),u,e[14],2053994217,8),l,f=d(f,10),s,e[12],0,8),l=p(l=d(l,10),f=p(f,s=p(s,u,c,l,f,e[15],0,5),u,c=d(c,10),l,e[10],0,12),s,u=d(u,10),c,e[4],0,9),s=p(s=d(s,10),u=p(u,c=p(c,l,f,s,u,e[1],0,12),l,f=d(f,10),s,e[5],0,5),c,l=d(l,10),f,e[8],0,14),c=p(c=d(c,10),l=p(l,f=p(f,s,u,c,l,e[7],0,6),s,u=d(u,10),c,e[6],0,8),f,s=d(s,10),u,e[2],0,13),f=p(f=d(f,10),s=p(s,u=p(u,c,l,f,s,e[13],0,6),c,l=d(l,10),f,e[14],0,5),u,c=d(c,10),l,e[0],0,15),u=p(u=d(u,10),c=p(c,l=p(l,f,s,u,c,e[3],0,13),f,s=d(s,10),u,e[9],0,11),l,f=d(f,10),s,e[11],0,11),l=d(l,10);var h=this._b+i+l|0;this._b=this._c+o+f|0,this._c=this._d+a+s|0,this._d=this._e+r+u|0,this._e=this._a+n+c|0,this._a=h},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56<this._blockOffset&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var e=new t(20);return e.writeInt32LE(this._a,0),e.writeInt32LE(this._b,4),e.writeInt32LE(this._c,8),e.writeInt32LE(this._d,12),e.writeInt32LE(this._e,16),e},o.exports=n}).call(this,i("buffer").Buffer)},{buffer:49,"hash-base":87,inherits:103}],143:[function(e,t,r){var n=e("buffer"),i=n.Buffer;function o(e,t){for(var r in e)t[r]=e[r]}function a(e,t,r){return i(e,t,r)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(o(n,r),r.Buffer=a),o(i,a),a.from=function(e,t,r){if("number"==typeof e)throw new TypeError("Argument must not be a number");return i(e,t,r)},a.alloc=function(e,t,r){if("number"!=typeof e)throw new TypeError("Argument must be a number");var n=i(e);return void 0!==t?"string"==typeof r?n.fill(t,r):n.fill(t):n.fill(0),n},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return n.SlowBuffer(e)}},{buffer:49}],144:[function(e,t,r){var l=e("safe-buffer").Buffer;function n(e,t){this._block=l.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}n.prototype.update=function(e,t){"string"==typeof e&&(t=t||"utf8",e=l.from(e,t));for(var r=this._block,n=this._blockSize,i=e.length,o=this._len,a=0;a<i;){for(var s=o%n,u=Math.min(i-a,n-s),c=0;c<u;c++)r[s+c]=e[a+c];a+=u,(o+=u)%n==0&&this._update(r)}return this._len+=i,this},n.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,1+t),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var r=8*this._len;if(r<=4294967295)this._block.writeUInt32BE(r,this._blockSize-4);else{var n=4294967295&r,i=(r-n)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(n,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},n.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=n},{"safe-buffer":143}],145:[function(e,t,r){(r=t.exports=function(e){e=e.toLowerCase();var t=r[e];if(!t)throw new Error(e+" is not supported (we accept pull requests)");return new t}).sha=e("./sha"),r.sha1=e("./sha1"),r.sha224=e("./sha224"),r.sha256=e("./sha256"),r.sha384=e("./sha384"),r.sha512=e("./sha512")},{"./sha":146,"./sha1":147,"./sha224":148,"./sha256":149,"./sha384":150,"./sha512":151}],146:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,v=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s=this._w,u=0|this._a,c=0|this._b,l=0|this._c,f=0|this._d,h=0|this._e,d=0;d<16;++d)s[d]=e.readInt32BE(4*d);for(;d<80;++d)s[d]=s[d-3]^s[d-8]^s[d-14]^s[d-16];for(var p=0;p<80;++p){var m=~~(p/20),g=0|((a=u)<<5|a>>>27)+(n=c,i=l,o=f,0===(r=m)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+s[p]+v[m];h=f,f=l,l=(t=c)<<30|t>>>2,c=u,u=g}this._a=u+this._a|0,this._b=c+this._b|0,this._c=l+this._c|0,this._d=f+this._d|0,this._e=h+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],147:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,y=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u=this._w,c=0|this._a,l=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0;p<16;++p)u[p]=e.readInt32BE(4*p);for(;p<80;++p)u[p]=(t=u[p-3]^u[p-8]^u[p-14]^u[p-16])<<1|t>>>31;for(var m=0;m<80;++m){var g=~~(m/20),v=0|((s=c)<<5|s>>>27)+(i=l,o=f,a=h,0===(n=g)?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a)+d+u[m]+y[g];d=h,h=f,f=(r=l)<<30|r>>>2,l=c,c=v}this._a=c+this._a|0,this._b=l+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var e=o.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],148:[function(e,t,r){var n=e("inherits"),i=e("./sha256"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}n(u,i),u.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},u.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},t.exports=u},{"./hash":144,"./sha256":149,inherits:103,"safe-buffer":143}],149:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,x=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function s(){this.init(),this._w=a,i.call(this,64,56)}n(s,i),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u=this._w,c=0|this._a,l=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,m=0|this._g,g=0|this._h,v=0;v<16;++v)u[v]=e.readInt32BE(4*v);for(;v<64;++v)u[v]=0|(((r=u[v-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+u[v-7]+(((t=u[v-15])>>>7|t<<25)^(t>>>18|t<<14)^t>>>3)+u[v-16];for(var y=0;y<64;++y){var _=g+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((a=m)^d&(p^a))+x[y]+u[y]|0,b=0|(((o=c)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=c)&(i=l)|f&(n|i));g=m,m=p,p=d,d=h+_|0,h=f,f=l,l=c,c=_+b|0}this._a=c+this._a|0,this._b=l+this._b|0,this._c=f+this._c|0,this._d=h+this._d|0,this._e=d+this._e|0,this._f=p+this._f|0,this._g=m+this._g|0,this._h=g+this._h|0},s.prototype._hash=function(){var e=o.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],150:[function(e,t,r){var n=e("inherits"),i=e("./sha512"),o=e("./hash"),a=e("safe-buffer").Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}n(u,i),u.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},u.prototype._hash=function(){var n=a.allocUnsafe(48);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),n},t.exports=u},{"./hash":144,"./sha512":151,inherits:103,"safe-buffer":143}],151:[function(e,t,r){var n=e("inherits"),i=e("./hash"),o=e("safe-buffer").Buffer,ee=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function s(){this.init(),this._w=a,i.call(this,128,112)}function te(e,t,r){return r^e&(t^r)}function re(e,t,r){return e&t|r&(e|t)}function ne(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function ie(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function oe(e,t){return e>>>0<t>>>0?1:0}n(s,i),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},s.prototype._update=function(e){for(var t,r,n,i,o,a,s,u,c=this._w,l=0|this._ah,f=0|this._bh,h=0|this._ch,d=0|this._dh,p=0|this._eh,m=0|this._fh,g=0|this._gh,v=0|this._hh,y=0|this._al,_=0|this._bl,b=0|this._cl,x=0|this._dl,w=0|this._el,T=0|this._fl,S=0|this._gl,M=0|this._hl,P=0;P<32;P+=2)c[P]=e.readInt32BE(4*P),c[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var E=c[P-30],C=c[P-30+1],k=((s=E)>>>1|(u=C)<<31)^(s>>>8|u<<24)^s>>>7,A=((o=C)>>>1|(a=E)<<31)^(o>>>8|a<<24)^(o>>>7|a<<25);E=c[P-4],C=c[P-4+1];var O=((n=E)>>>19|(i=C)<<13)^(i>>>29|n<<3)^n>>>6,R=((t=C)>>>19|(r=E)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),I=c[P-14],D=c[P-14+1],L=c[P-32],N=c[P-32+1],j=A+D|0,F=k+I+oe(j,A)|0;F=(F=F+O+oe(j=j+R|0,R)|0)+L+oe(j=j+N|0,N)|0,c[P]=F,c[P+1]=j}for(var B=0;B<160;B+=2){F=c[B],j=c[B+1];var z=re(l,f,h),U=re(y,_,b),X=ne(l,y),q=ne(y,l),H=ie(p,w),Y=ie(w,p),G=ee[B],W=ee[B+1],V=te(p,m,g),K=te(w,T,S),J=M+Y|0,Z=v+H+oe(J,M)|0;Z=(Z=(Z=Z+V+oe(J=J+K|0,K)|0)+G+oe(J=J+W|0,W)|0)+F+oe(J=J+j|0,j)|0;var Q=q+U|0,$=X+z+oe(Q,q)|0;v=g,M=S,g=m,S=T,m=p,T=w,p=d+Z+oe(w=x+J|0,x)|0,d=h,x=b,h=f,b=_,f=l,_=y,l=Z+$+oe(y=J+Q|0,J)|0}this._al=this._al+y|0,this._bl=this._bl+_|0,this._cl=this._cl+b|0,this._dl=this._dl+x|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+S|0,this._hl=this._hl+M|0,this._ah=this._ah+l+oe(this._al,y)|0,this._bh=this._bh+f+oe(this._bl,_)|0,this._ch=this._ch+h+oe(this._cl,b)|0,this._dh=this._dh+d+oe(this._dl,x)|0,this._eh=this._eh+p+oe(this._el,w)|0,this._fh=this._fh+m+oe(this._fl,T)|0,this._gh=this._gh+g+oe(this._gl,S)|0,this._hh=this._hh+v+oe(this._hl,M)|0},s.prototype._hash=function(){var n=o.allocUnsafe(64);function e(e,t,r){n.writeInt32BE(e,r),n.writeInt32BE(t,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),n},t.exports=s},{"./hash":144,inherits:103,"safe-buffer":143}],152:[function(e,t,r){t.exports=n;var l=e("events").EventEmitter;function n(){l.call(this)}e("inherits")(n,l),n.Readable=e("readable-stream/readable.js"),n.Writable=e("readable-stream/writable.js"),n.Duplex=e("readable-stream/duplex.js"),n.Transform=e("readable-stream/transform.js"),n.PassThrough=e("readable-stream/passthrough.js"),(n.Stream=n).prototype.pipe=function(t,e){var r=this;function n(e){t.writable&&!1===t.write(e)&&r.pause&&r.pause()}function i(){r.readable&&r.resume&&r.resume()}r.on("data",n),t.on("drain",i),t._isStdio||e&&!1===e.end||(r.on("end",a),r.on("close",s));var o=!1;function a(){o||(o=!0,t.end())}function s(){o||(o=!0,"function"==typeof t.destroy&&t.destroy())}function u(e){if(c(),0===l.listenerCount(this,"error"))throw e}function c(){r.removeListener("data",n),t.removeListener("drain",i),r.removeListener("end",a),r.removeListener("close",s),r.removeListener("error",u),t.removeListener("error",u),r.removeListener("end",c),r.removeListener("close",c),t.removeListener("close",c)}return r.on("error",u),t.on("error",u),r.on("end",c),r.on("close",c),t.on("close",c),t.emit("pipe",r),t}},{events:85,inherits:103,"readable-stream/duplex.js":132,"readable-stream/passthrough.js":138,"readable-stream/readable.js":139,"readable-stream/transform.js":140,"readable-stream/writable.js":141}],153:[function(e,t,r){var n=e("buffer").Buffer,i=n.isEncoding||function(e){switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};var o=r.StringDecoder=function(e){switch(this.encoding=(e||"utf8").toLowerCase().replace(/[-_]/,""),function(e){if(e&&!i(e))throw new Error("Unknown encoding: "+e)}(e),this.encoding){case"utf8":this.surrogateSize=3;break;case"ucs2":case"utf16le":this.surrogateSize=2,this.detectIncompleteChar=s;break;case"base64":this.surrogateSize=3,this.detectIncompleteChar=u;break;default:return void(this.write=a)}this.charBuffer=new n(6),this.charReceived=0,this.charLength=0};function a(e){return e.toString(this.encoding)}function s(e){this.charReceived=e.length%2,this.charLength=this.charReceived?2:0}function u(e){this.charReceived=e.length%3,this.charLength=this.charReceived?3:0}o.prototype.write=function(e){for(var t="";this.charLength;){var r=e.length>=this.charLength-this.charReceived?this.charLength-this.charReceived:e.length;if(e.copy(this.charBuffer,this.charReceived,0,r),this.charReceived+=r,this.charReceived<this.charLength)return"";if(e=e.slice(r,e.length),!(55296<=(i=(t=this.charBuffer.slice(0,this.charLength).toString(this.encoding)).charCodeAt(t.length-1))&&i<=56319)){if(this.charReceived=this.charLength=0,0===e.length)return t;break}this.charLength+=this.surrogateSize,t=""}this.detectIncompleteChar(e);var n=e.length;this.charLength&&(e.copy(this.charBuffer,0,e.length-this.charReceived,n),n-=this.charReceived);var i;n=(t+=e.toString(this.encoding,0,n)).length-1;if(55296<=(i=t.charCodeAt(n))&&i<=56319){var o=this.surrogateSize;return this.charLength+=o,this.charReceived+=o,this.charBuffer.copy(this.charBuffer,o,0,o),e.copy(this.charBuffer,0,0,o),t.substring(0,n)}return t},o.prototype.detectIncompleteChar=function(e){for(var t=3<=e.length?3:e.length;0<t;t--){var r=e[e.length-t];if(1==t&&r>>5==6){this.charLength=2;break}if(t<=2&&r>>4==14){this.charLength=3;break}if(t<=3&&r>>3==30){this.charLength=4;break}}this.charReceived=t},o.prototype.end=function(e){var t="";if(e&&e.length&&(t=this.write(e)),this.charReceived){var r=this.charReceived,n=this.charBuffer,i=this.encoding;t+=n.slice(0,r).toString(i)}return t}},{buffer:49}],154:[function(e,t,r){(function(r){function n(e){try{if(!r.localStorage)return!1}catch(e){return!1}var t=r.localStorage[e];return null!=t&&"true"===String(t).toLowerCase()}t.exports=function(e,t){if(n("noDeprecation"))return e;var r=!1;return function(){if(!r){if(n("throwDeprecation"))throw new Error(t);n("traceDeprecation")?console.trace(t):console.warn(t),r=!0}return e.apply(this,arguments)}}}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],155:[function(require,module,exports){var indexOf=require("indexof"),Object_keys=function(e){if(Object.keys)return Object.keys(e);var t=[];for(var r in e)t.push(r);return t},forEach=function(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)},defineProp=function(){try{return Object.defineProperty({},"_",{}),function(e,t,r){Object.defineProperty(e,t,{writable:!0,enumerable:!1,configurable:!0,value:r})}}catch(e){return function(e,t,r){e[t]=r}}}(),globals=["Array","Boolean","Date","Error","EvalError","Function","Infinity","JSON","Math","NaN","Number","Object","RangeError","ReferenceError","RegExp","String","SyntaxError","TypeError","URIError","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","eval","isFinite","isNaN","parseFloat","parseInt","undefined","unescape"];function Context(){}Context.prototype={};var Script=exports.Script=function(e){if(!(this instanceof Script))return new Script(e);this.code=e};Script.prototype.runInContext=function(t){if(!(t instanceof Context))throw new TypeError("needs a 'context' argument.");var e=document.createElement("iframe");e.style||(e.style={}),e.style.display="none",document.body.appendChild(e);var r=e.contentWindow,n=r.eval,i=r.execScript;!n&&i&&(i.call(r,"null"),n=r.eval),forEach(Object_keys(t),function(e){r[e]=t[e]}),forEach(globals,function(e){t[e]&&(r[e]=t[e])});var o=Object_keys(r),a=n.call(r,this.code);return forEach(Object_keys(r),function(e){(e in t||-1===indexOf(o,e))&&(t[e]=r[e])}),forEach(globals,function(e){e in t||defineProp(t,e,r[e])}),document.body.removeChild(e),a},Script.prototype.runInThisContext=function(){return eval(this.code)},Script.prototype.runInNewContext=function(t){var r=Script.createContext(t),e=this.runInContext(r);return forEach(Object_keys(r),function(e){t[e]=r[e]}),e},forEach(Object_keys(Script.prototype),function(r){exports[r]=Script[r]=function(e){var t=Script(e);return t[r].apply(t,[].slice.call(arguments,1))}}),exports.createScript=function(e){return exports.Script(e)},exports.createContext=Script.createContext=function(t){var r=new Context;return"object"==typeof t&&forEach(Object_keys(t),function(e){r[e]=t[e]}),r}},{indexof:102}],156:[function(e,t,r){function f(e,t,r,n,i,o,a){f.prototype.init.apply(this,arguments)}function n(e){return e.charCodeAt(0)+(e.charCodeAt(1)<<8)+(e.charCodeAt(2)<<16)+(e.charCodeAt(3)<<24)}function h(e,t,r){switch(e){case d:case c:case ue:return(t+3>>2)*(r+3>>2)*8;case p:case m:case l:case g:return(t+3>>2)*(r+3>>2)*16;case ie:case ae:return Math.floor((Math.max(t,8)*Math.max(r,8)*4+7)/8);case oe:case se:return Math.floor((Math.max(t,16)*Math.max(r,8)*2+7)/8);case v:case i:return Math.floor((t+3)/4)*Math.floor((r+3)/4)*16;case y:case o:return Math.floor((t+4)/5)*Math.floor((r+3)/4)*16;case _:case a:return Math.floor((t+4)/5)*Math.floor((r+4)/5)*16;case b:case s:return Math.floor((t+5)/6)*Math.floor((r+4)/5)*16;case x:case u:return Math.floor((t+5)/6)*Math.floor((r+5)/6)*16;case w:case O:return Math.floor((t+7)/8)*Math.floor((r+4)/5)*16;case T:case R:return Math.floor((t+7)/8)*Math.floor((r+5)/6)*16;case S:case I:return Math.floor((t+7)/8)*Math.floor((r+7)/8)*16;case M:case D:return Math.floor((t+9)/10)*Math.floor((r+4)/5)*16;case P:case L:return Math.floor((t+9)/10)*Math.floor((r+5)/6)*16;case E:case N:return Math.floor((t+9)/10)*Math.floor((r+7)/8)*16;case C:case j:return Math.floor((t+9)/10)*Math.floor((r+9)/10)*16;case k:case F:return Math.floor((t+11)/12)*Math.floor((r+9)/10)*16;case A:case B:return Math.floor((t+11)/12)*Math.floor((r+11)/12)*16;default:return 0}}(t.exports=f).prototype.init=function(e,t,r,n,i,o,a,s){this.src=e,this.width=n,this.height=i,this.data=t,this.type=r,this.levels=o,this.internalFormat=a,this.isCompressedImage=!0,this.crunch=s,this.preserveSource=!0;var u=this.complete;return this.complete=!!t,!u&&this.complete&&this.onload&&this.onload({target:this}),this},f.prototype.dispose=function(){this.data=null},f.prototype.generateWebGLTexture=function(e){if(null===this.data)throw"Trying to create a second (or more) webgl texture from the same CompressedImage : "+this.src;for(var t=this.width,r=this.height,n=this.levels,i=0,o=0;o<this.levels;++o){var a=h(this.internalFormat,t,r),s=new Uint8Array(this.data.buffer,this.data.byteOffset+i,a);e.compressedTexImage2D(e.TEXTURE_2D,o,this.internalFormat,t,r,0,s),(t>>=1)<1&&(t=1),(r>>=1)<1&&(r=1),i+=a}1<n?(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_NEAREST)):(e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR)),this.crunch&&(Module._free(this.crunch[0]),Module._free(this.crunch[1])),this.preserveSource||(this.data=null)},f.loadFromArrayBuffer=function(e,t){return new f(t).loadFromArrayBuffer(e)},f.prototype.loadFromArrayBuffer=function(e,t){var r=new Uint8Array(e,0,3);if(r[0]=="DDS".charCodeAt(0)&&r[1]=="DDS".charCodeAt(1)&&r[2]=="DDS".charCodeAt(2))return this._loadDDS(e);if(r[0]=="PVR".charCodeAt(0)&&r[1]=="PVR".charCodeAt(1)&&r[2]=="PVR".charCodeAt(2))return this._loadPVR(e);if(19==r[0]&&171==r[1]&&161==r[2])return this._loadASTC(e);if(t)return this._loadCRN(e);throw"Compressed texture format is not recognized: "+this.src},f.prototype.arrayBufferCopy=function(e,t,r,n){dst32Offset=r/4;for(var i=n%4,o=new Uint32Array(e.buffer,0,(n-i)/4),a=new Uint32Array(t.buffer),s=0;s<o.length;s++)a[dst32Offset+s]=o[s];for(var u=n-i;u<n;u++)t[r+u]=e[u]},f.prototype._loadCRN=function(e){DXT_FORMAT_MAP=[d,p,m];var t=e.byteLength,r=new Uint8Array(e),n=Module._malloc(t);f.prototype.arrayBufferCopy(r,Module.HEAPU8,n,t);var i=Module._crn_get_width(n,t),o=Module._crn_get_height(n,t),a=Module._crn_get_levels(n,t),s=Module._crn_get_dxt_format(n,t),u=Module._crn_get_uncompressed_size(n,t,0),c=Module._malloc(u);Module._crn_decompress(n,t,c,u,0);var l=new Uint8Array(Module.HEAPU8.buffer,c,u);return this.init(this.src,l,"CRN",i,o,a,DXT_FORMAT_MAP[s],[n,c])},f.prototype._loadDDS=function(e){var t=new Int32Array(e,0,q);if(t[H]!=z)throw"Invalid magic number in DDS header";if(!t[J]&X)throw"Unsupported format, must contain a FourCC code";var r,n=t[Z];switch(n){case Q:r=d;break;case $:r=p;break;case ee:r=m;break;case te:r=c;break;case re:r=l;break;case ne:r=g;break;default:throw"Unsupported FourCC code: "+function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)}(n)}var i=1;t[G]&U&&(i=Math.max(1,t[K]));var o=t[V],a=t[W],s=t[Y]+4,u=new Uint8Array(e,s);return this.init(this.src,u,"DDS",o,a,i,r)},f.prototype._loadASTC=function(e){var t=new Int8Array(e,0,Me);if(new Uint32Array(e.slice(0,4))!=Pe)throw"Invalid magic number in ASTC header";for(var r=[v,y,_,b,x,w,T,S,M,P,E,C,k,A],n=e.byteLength-Me,i=new Uint8Array([t[7],t[8],t[9],0]),o=new Uint8Array([t[10],t[11],t[12],0]),a=new Uint32Array(i.buffer)[0],s=new Uint32Array(o.buffer)[0],u=0,c=0;c<r.length;c++)if(n===h(r[c],a,s)){u=r[c];break}if(0===u)throw"Unable to autodetect ASTC format; file size not right";var l=new Uint8Array(e,Me,n);return this.init(this.src,l,"ASTC",a,s,1,u)},f.prototype._loadPVR=function(e){var t=new Int32Array(e,0,ve);if(t[_e]!=ye)throw"Invalid magic number in PVR header";var r,n=t[be];switch(n){case ce:r=oe;break;case le:r=se;break;case fe:r=ie;break;case he:r=ae;break;case de:r=ue;break;case pe:r=d;break;case me:r=p;break;case ge:r=m;break;default:throw"Unsupported PVR format: "+n}var i=t[we],o=t[xe],a=t[Te],s=t[Se]+52,u=new Uint8Array(e,s);return this.init(this.src,u,"PVR",i,o,a,r)};var d=33776,p=33778,m=33779,c=35986,l=35987,g=34798,v=37808,y=37809,_=37810,b=37811,x=37812,w=37813,T=37814,S=37815,M=37816,P=37817,E=37818,C=37819,k=37820,A=37821,i=37840,o=37841,a=37842,s=37843,u=37844,O=37845,R=37846,I=37847,D=37848,L=37849,N=37850,j=37851,F=37852,B=37853,z=542327876,U=131072,X=4,q=31,H=0,Y=1,G=2,W=3,V=4,K=7,J=20,Z=21,Q=n("DXT1"),$=n("DXT3"),ee=n("DXT5"),te=n("ATC "),re=n("ATCA"),ne=n("ATCI"),ie=35840,oe=35841,ae=35842,se=35843,ue=36196,ce=0,le=1,fe=2,he=3,de=6,pe=7,me=9,ge=5,ve=13,ye=55727696,_e=0,be=2,xe=6,we=7,Te=11,Se=12,Me=16,Pe=1554098963},{}],157:[function(e,t,r){var n=PIXI,i=(e("./CompressedImage"),n.WebGLManager);function o(e){i.call(this,e),this.extensions={}}((o.prototype=Object.create(i.prototype)).constructor=o).prototype.onContextChange=function(){var e=this.renderer.gl;function t(e,t){var r=["","WEBKIT_","MOZ_"],n=null;for(var i in r)if(n=e.getExtension(r[i]+t))break;return n}this.extensions={dxt:t(e,"WEBGL_compressed_texture_s3tc"),pvrtc:t(e,"WEBGL_compressed_texture_pvrtc"),astc:t(e,"WEBGL_compressed_texture_astc"),atc:t(e,"WEBGL_compressed_texture_atc"),etc1:t(e,"WEBGL_compressed_texture_etc1")},this.extensions.crn=this.extensions.dxt},t.exports=o,n.WebGLRenderer.registerPlugin("compressedTextureManager",o),o.prototype.getSupportedExtensions=function(){return this.extensions}},{"./CompressedImage":156}],158:[function(e,t,r){var n=e("./CompressedImage"),i={uploadNotCompressed:PIXI.glCore.GLTexture.prototype.upload,isCompressed:!1,upload:function(e){if(!(e instanceof n))return this.uploadNotCompressed(e);this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),this.isCompressed=!0,e.generateWebGLTexture(t)},enableMipmap:function(){if(!this.isCompressed){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)}}};t.exports=i},{"./CompressedImage":156}],159:[function(e,t,r){t.exports=function(u){u=u||[];var c=e("./imageParser")();return function(e,t){var r=e.metadata.choice;if(!r)return t();var n=e.url,i=0;if(!e._defaultUrlChoice){if(!(0<=(i=(e._defaultUrlChoice=n).lastIndexOf("."))))return t();e._baseUrl=n.substring(0,i)}for(var o=r.length-1;0<=o;o--){n=e._baseUrl+r[o];for(var a=0;a<u.length;a++)if(r[o]===u[a]){e.url=n;var s=r[o];return-1<s.indexOf("@")&&(s=s.replace(/@[0-9.]*x/,"")),0<=(i=s.indexOf("."))&&(s=s.substring(i+1)),e.extension=s,e.loadType=e._determineLoadType(),c(e,t)}}return c(e,t)}}},{"./imageParser":161}],160:[function(e,t,r){var i=PIXI,o=i.utils;e("./CompressedImage");t.exports=function(e){return function(e,t){if(e.texture&&e._defaultUrlChoice&&e._defaultUrl!=e.url){var r=e.texture,n=r.baseTexture;delete o.BaseTextureCache[n.imageUrl],delete o.TextureCache[n.imageUrl],n.imageUrl=e._defaultUrlChoice,i.utils.BaseTextureCache[n.imageUrl]=n,i.utils.TextureCache[n.imageUrl]=r}t()}}},{"./CompressedImage":156}],161:[function(e,t,r){var n=PIXI,i=(n.utils,e("./CompressedImage")),o=n.loaders.Resource;o.setExtensionXhrType("dds",o.XHR_RESPONSE_TYPE.BUFFER),o.setExtensionXhrType("crn",o.XHR_RESPONSE_TYPE.BUFFER),o.setExtensionXhrType("pvr",o.XHR_RESPONSE_TYPE.BUFFER),o.setExtensionXhrType("etc1",o.XHR_RESPONSE_TYPE.BUFFER),o.setExtensionXhrType("astc",o.XHR_RESPONSE_TYPE.BUFFER),t.exports=function(){return function(e,t){if(-1!=e.url.indexOf(".crn")||-1!=e.url.indexOf(".dds")||-1!=e.url.indexOf(".pvr")||-1!=e.url.indexOf(".etc1")||-1!=e.url.indexOf(".astc")){var r=e.compressedImage||new i(e.url);if(e.data)throw"compressedImageParser middleware must be specified in loader.before() and must have zero resource.data";e.isCompressedImage=!0,e.data=r,e.onComplete.add(function(){e.type=o.TYPE.IMAGE,r.loadFromArrayBuffer(e.data,e.url.includes(".crn")),e.data=r})}t()}}},{"./CompressedImage":156}],162:[function(r,n,e){(function(e){var t={CompressedImage:r("./CompressedImage"),CompressedTextureManager:r("./CompressedTextureManager"),imageParser:r("./imageParser"),extensionChooser:r("./extensionChooser"),extensionFixer:r("./extensionFixer"),GLTextureMixin:r("./GLTextureMixin"),detectExtensions:function(e,t){var r=[];if(e instanceof PIXI.WebGLRenderer){var n=e.plugins.compressedTextureManager.getSupportedExtensions();n.dxt&&r.push(".dds"),n.pvrtc&&r.push(".pvr"),n.atc&&r.push(".atc"),n.astc&&r.push(".astc"),n.etc1&&r.push(".etc1")}else PIXI.CanvasRenderer;for(var i="@"+(t=t||e.resolution)+"x",o=r.slice(0);0<o.length;)r.push(i+o.pop());return r.push(i+".png"),r.push(i+".jpg"),r.push(i+".json"),r.push(i+".atlas"),r}};try{t.crn=r("./../lib/crn_decomp")}catch(e){console.warn("Unable to load crn decompression in pixi-compressed-textures")}Object.assign(PIXI.glCore.GLTexture.prototype,t.GLTextureMixin),PIXI.loaders.Loader.addPixiMiddleware(t.extensionFixer),PIXI.loader.use(t.extensionFixer()),n.exports=e.PIXI.compressedTextures=t}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./../lib/crn_decomp":1,"./CompressedImage":156,"./CompressedTextureManager":157,"./GLTextureMixin":158,"./extensionChooser":159,"./extensionFixer":160,"./imageParser":161}]},{},[162])(162)});var __filters=function(e,h){"use strict";var r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",t=function(t){function e(e){t.call(this,r,"varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float gamma;\nuniform float contrast;\nuniform float saturation;\nuniform float brightness;\nuniform float red;\nuniform float green;\nuniform float blue;\nuniform float alpha;\n\nvoid main(void)\n{\n vec4 c = texture2D(uSampler, vTextureCoord);\n\n if (c.a > 0.0) {\n c.rgb /= c.a;\n\n vec3 rgb = pow(c.rgb, vec3(1. / gamma));\n rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, saturation), contrast);\n rgb.r *= red;\n rgb.g *= green;\n rgb.b *= blue;\n c.rgb = rgb * brightness;\n\n c.rgb *= c.a;\n }\n\n gl_FragColor = c * alpha;\n}\n"),Object.assign(this,{gamma:1,saturation:1,contrast:1,brightness:1,red:1,green:1,blue:1,alpha:1},e)}return t&&(e.__proto__=t),((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,e.applyFilter(this,t,r,n)},e}(h.Filter),d=function(n){function e(e,t,r){void 0===e&&(e=4),void 0===t&&(t=3),void 0===r&&(r=!1),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}",r?"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample top right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}\n":"\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n\n // Sample top left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample top right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y));\n\n // Sample bottom right pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Sample bottom left pixel\n color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y));\n\n // Average\n color *= 0.25;\n\n gl_FragColor = color;\n}"),this.uniforms.uOffset=new Float32Array(2),this._pixelSize=new h.Point,this.pixelSize=1,this._clamp=r,this._kernels=null,Array.isArray(e)?this.kernels=e:(this._blur=e,this.quality=t)}n&&(e.__proto__=n);var t={kernels:{configurable:!0},clamp:{configurable:!0},pixelSize:{configurable:!0},quality:{configurable:!0},blur:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){var i,o=this.pixelSize.x/t.size.width,a=this.pixelSize.y/t.size.height;if(1===this._quality||0===this._blur)i=this._kernels[0]+.5,this.uniforms.uOffset[0]=i*o,this.uniforms.uOffset[1]=i*a,e.applyFilter(this,t,r,n);else{for(var s,u=e.getRenderTarget(!0),c=t,l=u,f=this._quality-1,h=0;h<f;h++)i=this._kernels[h]+.5,this.uniforms.uOffset[0]=i*o,this.uniforms.uOffset[1]=i*a,e.applyFilter(this,c,l,!0),s=c,c=l,l=s;i=this._kernels[f]+.5,this.uniforms.uOffset[0]=i*o,this.uniforms.uOffset[1]=i*a,e.applyFilter(this,c,r,n),e.returnRenderTarget(u)}},e.prototype._generateKernels=function(){var e=this._blur,t=this._quality,r=[e];if(0<e)for(var n=e,i=e/t,o=1;o<t;o++)n-=i,r.push(n);this._kernels=r},t.kernels.get=function(){return this._kernels},t.kernels.set=function(e){Array.isArray(e)&&0<e.length?(this._kernels=e,this._quality=e.length,this._blur=Math.max.apply(Math,e)):(this._kernels=[0],this._quality=1)},t.clamp.get=function(){return this._clamp},t.pixelSize.set=function(e){"number"==typeof e?(this._pixelSize.x=e,this._pixelSize.y=e):Array.isArray(e)?(this._pixelSize.x=e[0],this._pixelSize.y=e[1]):e instanceof h.Point?(this._pixelSize.x=e.x,this._pixelSize.y=e.y):(this._pixelSize.x=1,this._pixelSize.y=1)},t.pixelSize.get=function(){return this._pixelSize},t.quality.get=function(){return this._quality},t.quality.set=function(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()},t.blur.get=function(){return this._blur},t.blur.set=function(e){this._blur=e,this._generateKernels()},Object.defineProperties(e.prototype,t),e}(h.Filter),s=r,u=function(t){function e(e){void 0===e&&(e=.5),t.call(this,s,"\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform float threshold;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n // A simple & fast algorithm for getting brightness.\n // It's inaccuracy , but good enought for this feature.\n float _max = max(max(color.r, color.g), color.b);\n float _min = min(min(color.r, color.g), color.b);\n float brightness = (_max + _min) * 0.5;\n\n if(brightness > threshold) {\n gl_FragColor = color;\n } else {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n }\n}\n"),this.threshold=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={threshold:{configurable:!0}};return r.threshold.get=function(){return this.uniforms.threshold},r.threshold.set=function(e){this.uniforms.threshold=e},Object.defineProperties(e.prototype,r),e}(h.Filter),n=function(a){function e(e){a.call(this,s,"uniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D bloomTexture;\nuniform float bloomScale;\nuniform float brightness;\n\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord);\n color.rgb *= brightness;\n vec4 bloomColor = vec4(texture2D(bloomTexture, vTextureCoord).rgb, 0.0);\n bloomColor.rgb *= bloomScale;\n gl_FragColor = color + bloomColor;\n}\n"),"number"==typeof e&&(e={threshold:e}),e=Object.assign({threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:h.settings.RESOLUTION},e),this.bloomScale=e.bloomScale,this.brightness=e.brightness;var t=e.kernels,r=e.blur,n=e.quality,i=e.pixelSize,o=e.resolution;this._extractFilter=new u(e.threshold),this._extractFilter.resolution=o,this._blurFilter=t?new d(t):new d(r,n),this.pixelSize=i,this.resolution=o}a&&(e.__proto__=a);var t={resolution:{configurable:!0},threshold:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return((e.prototype=Object.create(a&&a.prototype)).constructor=e).prototype.apply=function(e,t,r,n,i){var o=e.getRenderTarget(!0);this._extractFilter.apply(e,t,o,!0,i);var a=e.getRenderTarget(!0);this._blurFilter.apply(e,o,a,!0,i),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=a,e.applyFilter(this,t,r,n),e.returnRenderTarget(a),e.returnRenderTarget(o)},t.resolution.get=function(){return this._resolution},t.resolution.set=function(e){this._resolution=e,this._extractFilter&&(this._extractFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},t.threshold.get=function(){return this._extractFilter.threshold},t.threshold.set=function(e){this._extractFilter.threshold=e},t.kernels.get=function(){return this._blurFilter.kernels},t.kernels.set=function(e){this._blurFilter.kernels=e},t.blur.get=function(){return this._blurFilter.blur},t.blur.set=function(e){this._blurFilter.blur=e},t.quality.get=function(){return this._blurFilter.quality},t.quality.set=function(e){this._blurFilter.quality=e},t.pixelSize.get=function(){return this._blurFilter.pixelSize},t.pixelSize.set=function(e){this._blurFilter.pixelSize=e},Object.defineProperties(e.prototype,t),e}(h.Filter),i=function(t){function e(e){void 0===e&&(e=8),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform float pixelSize;\nuniform sampler2D uSampler;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n return floor( coord / size ) * size;\n}\n\nvec2 getMod(vec2 coord, vec2 size)\n{\n return mod( coord , size) / size;\n}\n\nfloat character(float n, vec2 p)\n{\n p = floor(p*vec2(4.0, -4.0) + 2.5);\n\n if (clamp(p.x, 0.0, 4.0) == p.x)\n {\n if (clamp(p.y, 0.0, 4.0) == p.y)\n {\n if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n }\n }\n return 0.0;\n}\n\nvoid main()\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n // get the rounded color..\n vec2 pixCoord = pixelate(coord, vec2(pixelSize));\n pixCoord = unmapCoord(pixCoord);\n\n vec4 color = texture2D(uSampler, pixCoord);\n\n // determine the character to use\n float gray = (color.r + color.g + color.b) / 3.0;\n\n float n = 65536.0; // .\n if (gray > 0.2) n = 65600.0; // :\n if (gray > 0.3) n = 332772.0; // *\n if (gray > 0.4) n = 15255086.0; // o\n if (gray > 0.5) n = 23385164.0; // &\n if (gray > 0.6) n = 15252014.0; // 8\n if (gray > 0.7) n = 13199452.0; // @\n if (gray > 0.8) n = 11512810.0; // #\n\n // get the mod..\n vec2 modd = getMod(coord, vec2(pixelSize));\n\n gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0);\n\n}\n"),this.size=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={size:{configurable:!0}};return r.size.get=function(){return this.uniforms.pixelSize},r.size.set=function(e){this.uniforms.pixelSize=e},Object.defineProperties(e.prototype,r),e}(h.Filter),o=function(t){function e(e){void 0===e&&(e={}),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float transformX;\nuniform float transformY;\nuniform vec3 lightColor;\nuniform float lightAlpha;\nuniform vec3 shadowColor;\nuniform float shadowAlpha;\n\nvoid main(void) {\n vec2 transform = vec2(1.0 / filterArea) * vec2(transformX, transformY);\n vec4 color = texture2D(uSampler, vTextureCoord);\n float light = texture2D(uSampler, vTextureCoord - transform).a;\n float shadow = texture2D(uSampler, vTextureCoord + transform).a;\n\n color.rgb = mix(color.rgb, lightColor, clamp((color.a - light) * lightAlpha, 0.0, 1.0));\n color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0));\n gl_FragColor = vec4(color.rgb * color.a, color.a);\n}\n"),this.uniforms.lightColor=new Float32Array(3),this.uniforms.shadowColor=new Float32Array(3),e=Object.assign({rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},e),this.rotation=e.rotation,this.thickness=e.thickness,this.lightColor=e.lightColor,this.lightAlpha=e.lightAlpha,this.shadowColor=e.shadowColor,this.shadowAlpha=e.shadowAlpha}t&&(e.__proto__=t);var r={rotation:{configurable:!0},thickness:{configurable:!0},lightColor:{configurable:!0},lightAlpha:{configurable:!0},shadowColor:{configurable:!0},shadowAlpha:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},r.rotation.get=function(){return this._angle/h.DEG_TO_RAD},r.rotation.set=function(e){this._angle=e*h.DEG_TO_RAD,this._updateTransform()},r.thickness.get=function(){return this._thickness},r.thickness.set=function(e){this._thickness=e,this._updateTransform()},r.lightColor.get=function(){return h.utils.rgb2hex(this.uniforms.lightColor)},r.lightColor.set=function(e){h.utils.hex2rgb(e,this.uniforms.lightColor)},r.lightAlpha.get=function(){return this.uniforms.lightAlpha},r.lightAlpha.set=function(e){this.uniforms.lightAlpha=e},r.shadowColor.get=function(){return h.utils.rgb2hex(this.uniforms.shadowColor)},r.shadowColor.set=function(e){h.utils.hex2rgb(e,this.uniforms.shadowColor)},r.shadowAlpha.get=function(){return this.uniforms.shadowAlpha},r.shadowAlpha.set=function(e){this.uniforms.shadowAlpha=e},Object.defineProperties(e.prototype,r),e}(h.Filter),a=h.filters,c=a.BlurXFilter,l=a.BlurYFilter,f=a.AlphaFilter,p=function(a){function e(e,t,r,n){var i,o;void 0===e&&(e=2),void 0===t&&(t=4),void 0===r&&(r=h.settings.RESOLUTION),void 0===n&&(n=5),a.call(this),"number"==typeof e?o=i=e:e instanceof h.Point?(i=e.x,o=e.y):Array.isArray(e)&&(i=e[0],o=e[1]),this.blurXFilter=new c(i,t,r,n),this.blurYFilter=new l(o,t,r,n),this.blurYFilter.blendMode=h.BLEND_MODES.SCREEN,this.defaultFilter=new f}a&&(e.__proto__=a);var t={blur:{configurable:!0},blurX:{configurable:!0},blurY:{configurable:!0}};return((e.prototype=Object.create(a&&a.prototype)).constructor=e).prototype.apply=function(e,t,r){var n=e.getRenderTarget(!0);this.defaultFilter.apply(e,t,r),this.blurXFilter.apply(e,t,n),this.blurYFilter.apply(e,n,r),e.returnRenderTarget(n)},t.blur.get=function(){return this.blurXFilter.blur},t.blur.set=function(e){this.blurXFilter.blur=this.blurYFilter.blur=e},t.blurX.get=function(){return this.blurXFilter.blur},t.blurX.set=function(e){this.blurXFilter.blur=e},t.blurY.get=function(){return this.blurYFilter.blur},t.blurY.set=function(e){this.blurYFilter.blur=e},Object.defineProperties(e.prototype,t),e}(h.Filter),m=function(n){function e(e,t,r){n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","uniform float radius;\nuniform float strength;\nuniform vec2 center;\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nvoid main()\n{\n vec2 coord = vTextureCoord * filterArea.xy;\n coord -= center * dimensions.xy;\n float distance = length(coord);\n if (distance < radius) {\n float percent = distance / radius;\n if (strength > 0.0) {\n coord *= mix(1.0, smoothstep(0.0, radius / distance, percent), strength * 0.75);\n } else {\n coord *= mix(1.0, pow(percent, 1.0 + strength * 0.75) * radius / distance, 1.0 - percent);\n }\n }\n coord += center * dimensions.xy;\n coord /= filterArea.xy;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n gl_FragColor = color;\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.center=e||[.5,.5],this.radius="number"==typeof t?t:100,this.strength="number"==typeof r?r:1}n&&(e.__proto__=n);var t={radius:{configurable:!0},strength:{configurable:!0},center:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,e.applyFilter(this,t,r,n)},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},t.strength.get=function(){return this.uniforms.strength},t.strength.set=function(e){this.uniforms.strength=e},t.center.get=function(){return this.uniforms.center},t.center.set=function(e){this.uniforms.center=e},Object.defineProperties(e.prototype,t),e}(h.Filter),g=function(n){function e(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=1),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D colorMap;\nuniform float _mix;\nuniform float _size;\nuniform float _sliceSize;\nuniform float _slicePixelSize;\nuniform float _sliceInnerSize;\nvoid main() {\n vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n vec4 adjusted;\n if (color.a > 0.0) {\n color.rgb /= color.a;\n float innerWidth = _size - 1.0;\n float zSlice0 = min(floor(color.b * innerWidth), innerWidth);\n float zSlice1 = min(zSlice0 + 1.0, innerWidth);\n float xOffset = _slicePixelSize * 0.5 + color.r * _sliceInnerSize;\n float s0 = xOffset + (zSlice0 * _sliceSize);\n float s1 = xOffset + (zSlice1 * _sliceSize);\n float yOffset = _sliceSize * 0.5 + color.g * (1.0 - _sliceSize);\n vec4 slice0Color = texture2D(colorMap, vec2(s0,yOffset));\n vec4 slice1Color = texture2D(colorMap, vec2(s1,yOffset));\n float zOffset = fract(color.b * innerWidth);\n adjusted = mix(slice0Color, slice1Color, zOffset);\n\n color.rgb *= color.a;\n }\n gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a);\n\n}"),this._size=0,this._sliceSize=0,this._slicePixelSize=0,this._sliceInnerSize=0,this._scaleMode=null,this._nearest=!1,this.nearest=t,this.mix=r,this.colorMap=e}n&&(e.__proto__=n);var t={colorSize:{configurable:!0},colorMap:{configurable:!0},nearest:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms._mix=this.mix,e.applyFilter(this,t,r,n)},t.colorSize.get=function(){return this._size},t.colorMap.get=function(){return this._colorMap},t.colorMap.set=function(e){e instanceof h.Texture||(e=h.Texture.from(e)),e&&e.baseTexture&&(e.baseTexture.scaleMode=this._scaleMode,e.baseTexture.mipmap=!1,this._size=e.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=e),this._colorMap=e},t.nearest.get=function(){return this._nearest},t.nearest.set=function(e){this._nearest=e,this._scaleMode=e?h.SCALE_MODES.NEAREST:h.SCALE_MODES.LINEAR;var t=this._colorMap;t&&t.baseTexture&&(t.baseTexture._glTextures={},t.baseTexture.scaleMode=this._scaleMode,t.baseTexture.mipmap=!1,t._updateID++,t.baseTexture.emit("update",t.baseTexture))},e.prototype.updateColorMap=function(){var e=this._colorMap;e&&e.baseTexture&&(e._updateID++,e.baseTexture.emit("update",e.baseTexture),this.colorMap=e)},e.prototype.destroy=function(e){this._colorMap&&this._colorMap.destroy(e),n.prototype.destroy.call(this)},Object.defineProperties(e.prototype,t),e}(h.Filter),v=function(n){function e(e,t,r){void 0===e&&(e=16711680),void 0===t&&(t=0),void 0===r&&(r=.4),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 originalColor;\nuniform vec3 newColor;\nuniform float epsilon;\nvoid main(void) {\n vec4 currentColor = texture2D(uSampler, vTextureCoord);\n vec3 colorDiff = originalColor - (currentColor.rgb / max(currentColor.a, 0.0000000001));\n float colorDistance = length(colorDiff);\n float doReplace = step(colorDistance, epsilon);\n gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a);\n}\n"),this.uniforms.originalColor=new Float32Array(3),this.uniforms.newColor=new Float32Array(3),this.originalColor=e,this.newColor=t,this.epsilon=r}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={originalColor:{configurable:!0},newColor:{configurable:!0},epsilon:{configurable:!0}};return t.originalColor.set=function(e){var t=this.uniforms.originalColor;"number"==typeof e?(h.utils.hex2rgb(e,t),this._originalColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._originalColor=h.utils.rgb2hex(t))},t.originalColor.get=function(){return this._originalColor},t.newColor.set=function(e){var t=this.uniforms.newColor;"number"==typeof e?(h.utils.hex2rgb(e,t),this._newColor=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],this._newColor=h.utils.rgb2hex(t))},t.newColor.get=function(){return this._newColor},t.epsilon.set=function(e){this.uniforms.epsilon=e},t.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(e.prototype,t),e}(h.Filter),y=function(n){function e(e,t,r){void 0===t&&(t=200),void 0===r&&(r=200),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n gl_FragColor =\n c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n gl_FragColor.a = c22.a;\n}\n"),this.uniforms.texelSize=new Float32Array(2),this.uniforms.matrix=new Float32Array(9),void 0!==e&&(this.matrix=e),this.width=t,this.height=r}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={matrix:{configurable:!0},width:{configurable:!0},height:{configurable:!0}};return t.matrix.get=function(){return this.uniforms.matrix},t.matrix.set=function(e){var r=this;e.forEach(function(e,t){return r.uniforms.matrix[t]=e})},t.width.get=function(){return 1/this.uniforms.texelSize[0]},t.width.set=function(e){this.uniforms.texelSize[0]=1/e},t.height.get=function(){return 1/this.uniforms.texelSize[1]},t.height.set=function(e){this.uniforms.texelSize[1]=1/e},Object.defineProperties(e.prototype,t),e}(h.Filter),_=function(e){function t(){e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n if (lum < 1.00)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.75)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.50)\n {\n if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n\n if (lum < 0.3)\n {\n if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n {\n gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n }\n }\n}\n")}return e&&(t.__proto__=e),(t.prototype=Object.create(e&&e.prototype)).constructor=t}(h.Filter),b=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nconst float SQRT_2 = 1.414213;\n\nconst float light = 1.0;\n\nuniform float curvature;\nuniform float lineWidth;\nuniform float lineContrast;\nuniform bool verticalLine;\nuniform float noise;\nuniform float noiseSize;\n\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\n\nuniform float seed;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 coord = pixelCoord / dimensions;\n\n vec2 dir = vec2(coord - vec2(0.5, 0.5));\n\n float _c = curvature > 0. ? curvature : 1.;\n float k = curvature > 0. ?(length(dir * dir) * 0.25 * _c * _c + 0.935 * _c) : 1.;\n vec2 uv = dir * k;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 rgb = gl_FragColor.rgb;\n\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n rgb += _noise * noise;\n }\n\n if (lineWidth > 0.0) {\n float v = (verticalLine ? uv.x * dimensions.x : uv.y * dimensions.y) * min(1.0, 2.0 / lineWidth ) / _c;\n float j = 1. + cos(v * 1.2 - time) * 0.5 * lineContrast;\n rgb *= j;\n float segment = verticalLine ? mod((dir.x + .5) * dimensions.x, 4.) : mod((dir.y + .5) * dimensions.y, 4.);\n rgb *= 0.99 + ceil(segment) * 0.015;\n }\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n gl_FragColor.rgb = rgb;\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.time=0,this.seed=0,Object.assign(this,{curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},e)}t&&(e.__proto__=t);var r={curvature:{configurable:!0},lineWidth:{configurable:!0},lineContrast:{configurable:!0},verticalLine:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.seed=this.seed,this.uniforms.time=this.time,e.applyFilter(this,t,r,n)},r.curvature.set=function(e){this.uniforms.curvature=e},r.curvature.get=function(){return this.uniforms.curvature},r.lineWidth.set=function(e){this.uniforms.lineWidth=e},r.lineWidth.get=function(){return this.uniforms.lineWidth},r.lineContrast.set=function(e){this.uniforms.lineContrast=e},r.lineContrast.get=function(){return this.uniforms.lineContrast},r.verticalLine.set=function(e){this.uniforms.verticalLine=e},r.verticalLine.get=function(){return this.uniforms.verticalLine},r.noise.set=function(e){this.uniforms.noise=e},r.noise.get=function(){return this.uniforms.noise},r.noiseSize.set=function(e){this.uniforms.noiseSize=e},r.noiseSize.get=function(){return this.uniforms.noiseSize},r.vignetting.set=function(e){this.uniforms.vignetting=e},r.vignetting.get=function(){return this.uniforms.vignetting},r.vignettingAlpha.set=function(e){this.uniforms.vignettingAlpha=e},r.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},r.vignettingBlur.set=function(e){this.uniforms.vignettingBlur=e},r.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,r),e}(h.Filter),x=function(r){function e(e,t){void 0===e&&(e=1),void 0===t&&(t=5),r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 filterArea;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n float s = sin(angle), c = cos(angle);\n vec2 tex = vTextureCoord * filterArea.xy;\n vec2 point = vec2(\n c * tex.x - s * tex.y,\n s * tex.x + c * tex.y\n ) * scale;\n return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n float average = (color.r + color.g + color.b) / 3.0;\n gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n"),this.scale=e,this.angle=t}r&&(e.__proto__=r),(e.prototype=Object.create(r&&r.prototype)).constructor=e;var t={scale:{configurable:!0},angle:{configurable:!0}};return t.scale.get=function(){return this.uniforms.scale},t.scale.set=function(e){this.uniforms.scale=e},t.angle.get=function(){return this.uniforms.angle},t.angle.set=function(e){this.uniforms.angle=e},Object.defineProperties(e.prototype,t),e}(h.Filter),w=function(f){function e(e){e&&e.constructor!==Object&&(console.warn("DropShadowFilter now uses options instead of (rotation, distance, blur, color, alpha)"),e={rotation:e},void 0!==arguments[1]&&(e.distance=arguments[1]),void 0!==arguments[2]&&(e.blur=arguments[2]),void 0!==arguments[3]&&(e.color=arguments[3]),void 0!==arguments[4]&&(e.alpha=arguments[4])),e=Object.assign({rotation:45,distance:5,color:0,alpha:.5,shadowOnly:!1,kernels:null,blur:2,quality:3,pixelSize:1,resolution:h.settings.RESOLUTION},e),f.call(this);var t=e.kernels,r=e.blur,n=e.quality,i=e.pixelSize,o=e.resolution;this._tintFilter=new h.Filter("attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform vec3 color;\nvoid main(void){\n vec4 sample = texture2D(uSampler, vTextureCoord);\n\n // Un-premultiply alpha before applying the color\n if (sample.a > 0.0) {\n sample.rgb /= sample.a;\n }\n\n // Premultiply alpha again\n sample.rgb = color.rgb * sample.a;\n\n // alpha user alpha\n sample *= alpha;\n\n gl_FragColor = sample;\n}"),this._tintFilter.uniforms.color=new Float32Array(4),this._tintFilter.resolution=o,this._blurFilter=t?new d(t):new d(r,n),this.pixelSize=i,this.resolution=o,this.targetTransform=new h.Matrix;var a=e.shadowOnly,s=e.rotation,u=e.distance,c=e.alpha,l=e.color;this.shadowOnly=a,this.rotation=s,this.distance=u,this.alpha=c,this.color=l,this._updatePadding()}f&&(e.__proto__=f);var t={resolution:{configurable:!0},distance:{configurable:!0},rotation:{configurable:!0},alpha:{configurable:!0},color:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return((e.prototype=Object.create(f&&f.prototype)).constructor=e).prototype.apply=function(e,t,r,n){var i=e.getRenderTarget();i.transform=this.targetTransform,this._tintFilter.apply(e,t,i,!0),i.transform=null,this._blurFilter.apply(e,i,r,n),!0!==this.shadowOnly&&e.applyFilter(this,t,r,!1),e.returnRenderTarget(i)},e.prototype._updatePadding=function(){this.padding=this.distance+2*this.blur},e.prototype._updateTargetTransform=function(){this.targetTransform.tx=this.distance*Math.cos(this.angle),this.targetTransform.ty=this.distance*Math.sin(this.angle)},t.resolution.get=function(){return this._resolution},t.resolution.set=function(e){this._resolution=e,this._tintFilter&&(this._tintFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},t.distance.get=function(){return this._distance},t.distance.set=function(e){this._distance=e,this._updatePadding(),this._updateTargetTransform()},t.rotation.get=function(){return this.angle/h.DEG_TO_RAD},t.rotation.set=function(e){this.angle=e*h.DEG_TO_RAD,this._updateTargetTransform()},t.alpha.get=function(){return this._tintFilter.uniforms.alpha},t.alpha.set=function(e){this._tintFilter.uniforms.alpha=e},t.color.get=function(){return h.utils.rgb2hex(this._tintFilter.uniforms.color)},t.color.set=function(e){h.utils.hex2rgb(e,this._tintFilter.uniforms.color)},t.kernels.get=function(){return this._blurFilter.kernels},t.kernels.set=function(e){this._blurFilter.kernels=e},t.blur.get=function(){return this._blurFilter.blur},t.blur.set=function(e){this._blurFilter.blur=e,this._updatePadding()},t.quality.get=function(){return this._blurFilter.quality},t.quality.set=function(e){this._blurFilter.quality=e},t.pixelSize.get=function(){return this._blurFilter.pixelSize},t.pixelSize.set=function(e){this._blurFilter.pixelSize=e},Object.defineProperties(e.prototype,t),e}(h.Filter),T=function(t){function e(e){void 0===e&&(e=5),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float strength;\nuniform vec4 filterArea;\n\n\nvoid main(void)\n{\n\tvec2 onePixel = vec2(1.0 / filterArea);\n\n\tvec4 color;\n\n\tcolor.rgb = vec3(0.5);\n\n\tcolor -= texture2D(uSampler, vTextureCoord - onePixel) * strength;\n\tcolor += texture2D(uSampler, vTextureCoord + onePixel) * strength;\n\n\tcolor.rgb = vec3((color.r + color.g + color.b) / 3.0);\n\n\tfloat alpha = texture2D(uSampler, vTextureCoord).a;\n\n\tgl_FragColor = vec4(color.rgb * alpha, alpha);\n}\n"),this.strength=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={strength:{configurable:!0}};return r.strength.get=function(){return this.uniforms.strength},r.strength.set=function(e){this.uniforms.strength=e},Object.defineProperties(e.prototype,r),e}(h.Filter),S=function(t){function e(e){void 0===e&&(e={}),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","// precision highp float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\nuniform float aspect;\n\nuniform sampler2D displacementMap;\nuniform float offset;\nuniform float sinDir;\nuniform float cosDir;\nuniform int fillMode;\n\nuniform float seed;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nconst int TRANSPARENT = 0;\nconst int ORIGINAL = 1;\nconst int LOOP = 2;\nconst int CLAMP = 3;\nconst int MIRROR = 4;\n\nvoid main(void)\n{\n vec2 coord = (vTextureCoord * filterArea.xy) / dimensions;\n\n if (coord.x > 1.0 || coord.y > 1.0) {\n return;\n }\n\n float cx = coord.x - 0.5;\n float cy = (coord.y - 0.5) * aspect;\n float ny = (-sinDir * cx + cosDir * cy) / aspect + 0.5;\n\n // displacementMap: repeat\n // ny = ny > 1.0 ? ny - 1.0 : (ny < 0.0 ? 1.0 + ny : ny);\n\n // displacementMap: mirror\n ny = ny > 1.0 ? 2.0 - ny : (ny < 0.0 ? -ny : ny);\n\n vec4 dc = texture2D(displacementMap, vec2(0.5, ny));\n\n float displacement = (dc.r - dc.g) * (offset / filterArea.x);\n\n coord = vTextureCoord + vec2(cosDir * displacement, sinDir * displacement * aspect);\n\n if (fillMode == CLAMP) {\n coord = clamp(coord, filterClamp.xy, filterClamp.zw);\n } else {\n if( coord.x > filterClamp.z ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.x -= filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x = filterClamp.z * 2.0 - coord.x;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n } else if( coord.x < filterClamp.x ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.x += filterClamp.z;\n } else if (fillMode == MIRROR) {\n coord.x *= -filterClamp.z;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n }\n\n if( coord.y > filterClamp.w ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.y -= filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y = filterClamp.w * 2.0 - coord.y;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n } else if( coord.y < filterClamp.y ) {\n if (fillMode == ORIGINAL) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n } else if (fillMode == LOOP) {\n coord.y += filterClamp.w;\n } else if (fillMode == MIRROR) {\n coord.y *= -filterClamp.w;\n } else {\n gl_FragColor = vec4(0., 0., 0., 0.);\n return;\n }\n }\n }\n\n gl_FragColor.r = texture2D(uSampler, coord + red * (1.0 - seed * 0.4) / filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, coord + green * (1.0 - seed * 0.3) / filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, coord + blue * (1.0 - seed * 0.2) / filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, coord).a;\n}\n"),this.uniforms.dimensions=new Float32Array(2),e=Object.assign({slices:5,offset:100,direction:0,fillMode:0,average:!1,seed:0,red:[0,0],green:[0,0],blue:[0,0],minSize:8,sampleSize:512},e),this.direction=e.direction,this.red=e.red,this.green=e.green,this.blue=e.blue,this.offset=e.offset,this.fillMode=e.fillMode,this.average=e.average,this.seed=e.seed,this.minSize=e.minSize,this.sampleSize=e.sampleSize,this._canvas=document.createElement("canvas"),this._canvas.width=4,this._canvas.height=this.sampleSize,this.texture=h.Texture.fromCanvas(this._canvas,h.SCALE_MODES.NEAREST),this._slices=0,this.slices=e.slices}t&&(e.__proto__=t);var r={sizes:{configurable:!0},offsets:{configurable:!0},slices:{configurable:!0},direction:{configurable:!0},red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,n){var i=t.sourceFrame.width,o=t.sourceFrame.height;this.uniforms.dimensions[0]=i,this.uniforms.dimensions[1]=o,this.uniforms.aspect=o/i,this.uniforms.seed=this.seed,this.uniforms.offset=this.offset,this.uniforms.fillMode=this.fillMode,e.applyFilter(this,t,r,n)},e.prototype._randomizeSizes=function(){var e=this._sizes,t=this._slices-1,r=this.sampleSize,n=Math.min(this.minSize/r,.9/this._slices);if(this.average){for(var i=this._slices,o=1,a=0;a<t;a++){var s=o/(i-a),u=Math.max(s*(1-.6*Math.random()),n);o-=e[a]=u}e[t]=o}else{for(var c=1,l=Math.sqrt(1/this._slices),f=0;f<t;f++){var h=Math.max(l*c*Math.random(),n);c-=e[f]=h}e[t]=c}this.shuffle()},e.prototype.shuffle=function(){for(var e=this._sizes,t=this._slices-1;0<t;t--){var r=Math.random()*t>>0,n=e[t];e[t]=e[r],e[r]=n}},e.prototype._randomizeOffsets=function(){for(var e=0;e<this._slices;e++)this._offsets[e]=Math.random()*(Math.random()<.5?-1:1)},e.prototype.refresh=function(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()},e.prototype.redraw=function(){var e,t=this.sampleSize,r=this.texture,n=this._canvas.getContext("2d");n.clearRect(0,0,8,t);for(var i=0,o=0;o<this._slices;o++){e=Math.floor(256*this._offsets[o]);var a=this._sizes[o]*t,s=0<e?e:0,u=e<0?-e:0;n.fillStyle="rgba("+s+", "+u+", 0, 1)",n.fillRect(0,i>>0,t,1+a>>0),i+=a}r.baseTexture.update(),this.uniforms.displacementMap=r},r.sizes.set=function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._sizes[r]=e[r]},r.sizes.get=function(){return this._sizes},r.offsets.set=function(e){for(var t=Math.min(this._slices,e.length),r=0;r<t;r++)this._offsets[r]=e[r]},r.offsets.get=function(){return this._offsets},r.slices.get=function(){return this._slices},r.slices.set=function(e){this._slices!==e&&(this._slices=e,this.uniforms.slices=e,this._sizes=this.uniforms.slicesWidth=new Float32Array(e),this._offsets=this.uniforms.slicesOffset=new Float32Array(e),this.refresh())},r.direction.get=function(){return this._direction},r.direction.set=function(e){if(this._direction!==e){var t=(this._direction=e)*h.DEG_TO_RAD;this.uniforms.sinDir=Math.sin(t),this.uniforms.cosDir=Math.cos(t)}},r.red.get=function(){return this.uniforms.red},r.red.set=function(e){this.uniforms.red=e},r.green.get=function(){return this.uniforms.green},r.green.set=function(e){this.uniforms.green=e},r.blue.get=function(){return this.uniforms.blue},r.blue.set=function(e){this.uniforms.blue=e},e.prototype.destroy=function(){this.texture.destroy(!0),this.texture=null,this._canvas=null,this.red=null,this.green=null,this.blue=null,this._sizes=null,this._offsets=null},Object.defineProperties(e.prototype,r),e}(h.Filter);S.TRANSPARENT=0,S.ORIGINAL=1,S.LOOP=2,S.CLAMP=3,S.MIRROR=4;var M=function(o){function e(e,t,r,n,i){void 0===e&&(e=10),void 0===t&&(t=4),void 0===r&&(r=0),void 0===n&&(n=16777215),void 0===i&&(i=.1),o.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nuniform float distance;\nuniform float outerStrength;\nuniform float innerStrength;\nuniform vec4 glowColor;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nconst float PI = 3.14159265358979323846264;\n\nvoid main(void) {\n vec2 px = vec2(1.0 / filterArea.x, 1.0 / filterArea.y);\n vec4 ownColor = texture2D(uSampler, vTextureCoord);\n vec4 curColor;\n float totalAlpha = 0.0;\n float maxTotalAlpha = 0.0;\n float cosAngle;\n float sinAngle;\n vec2 displaced;\n for (float angle = 0.0; angle <= PI * 2.0; angle += %QUALITY_DIST%) {\n cosAngle = cos(angle);\n sinAngle = sin(angle);\n for (float curDistance = 1.0; curDistance <= %DIST%; curDistance++) {\n displaced.x = vTextureCoord.x + cosAngle * curDistance * px.x;\n displaced.y = vTextureCoord.y + sinAngle * curDistance * px.y;\n curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n totalAlpha += (distance - curDistance) * curColor.a;\n maxTotalAlpha += (distance - curDistance);\n }\n }\n maxTotalAlpha = max(maxTotalAlpha, 0.0001);\n\n ownColor.a = max(ownColor.a, 0.0001);\n ownColor.rgb = ownColor.rgb / ownColor.a;\n float outerGlowAlpha = (totalAlpha / maxTotalAlpha) * outerStrength * (1. - ownColor.a);\n float innerGlowAlpha = ((maxTotalAlpha - totalAlpha) / maxTotalAlpha) * innerStrength * ownColor.a;\n float resultAlpha = (ownColor.a + outerGlowAlpha);\n gl_FragColor = vec4(mix(mix(ownColor.rgb, glowColor.rgb, innerGlowAlpha / ownColor.a), glowColor.rgb, outerGlowAlpha / resultAlpha) * resultAlpha, resultAlpha);\n}\n".replace(/%QUALITY_DIST%/gi,""+(1/i/e).toFixed(7)).replace(/%DIST%/gi,""+e.toFixed(7))),this.uniforms.glowColor=new Float32Array([0,0,0,1]),this.distance=e,this.color=n,this.outerStrength=t,this.innerStrength=r}o&&(e.__proto__=o),(e.prototype=Object.create(o&&o.prototype)).constructor=e;var t={color:{configurable:!0},distance:{configurable:!0},outerStrength:{configurable:!0},innerStrength:{configurable:!0}};return t.color.get=function(){return h.utils.rgb2hex(this.uniforms.glowColor)},t.color.set=function(e){h.utils.hex2rgb(e,this.uniforms.glowColor)},t.distance.get=function(){return this.uniforms.distance},t.distance.set=function(e){this.uniforms.distance=e},t.outerStrength.get=function(){return this.uniforms.outerStrength},t.outerStrength.set=function(e){this.uniforms.outerStrength=e},t.innerStrength.get=function(){return this.uniforms.innerStrength},t.innerStrength.set=function(e){this.uniforms.innerStrength=e},Object.defineProperties(e.prototype,t),e}(h.Filter),P=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform vec2 light;\nuniform bool parallel;\nuniform float aspect;\n\nuniform float gain;\nuniform float lacunarity;\nuniform float time;\n\n${perlin}\n\nvoid main(void) {\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n float d;\n\n if (parallel) {\n float _cos = light.x;\n float _sin = light.y;\n d = (_cos * coord.x) + (_sin * coord.y * aspect);\n } else {\n float dx = coord.x - light.x / dimensions.x;\n float dy = (coord.y - light.y / dimensions.y) * aspect;\n float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n d = dy / dis;\n }\n\n vec3 dir = vec3(d, d, 0.0);\n\n float noise = turb(dir + vec3(time, 0.0, 62.1 + time) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n noise = mix(noise, 0.0, 0.3);\n //fade vertically.\n vec4 mist = vec4(noise, noise, noise, 1.0) * (1.0 - coord.y);\n mist.a = 1.0;\n\n gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n}\n".replace("${perlin}","vec3 mod289(vec3 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n Pi0 = mod289(Pi0);\n Pi1 = mod289(Pi1);\n vec3 Pf0 = fract(P); // Fractional part for interpolation\n vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n vec4 iy = vec4(Pi0.yy, Pi1.yy);\n vec4 iz0 = Pi0.zzzz;\n vec4 iz1 = Pi1.zzzz;\n vec4 ixy = permute(permute(ix) + iy);\n vec4 ixy0 = permute(ixy + iz0);\n vec4 ixy1 = permute(ixy + iz1);\n vec4 gx0 = ixy0 * (1.0 / 7.0);\n vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n gx0 = fract(gx0);\n vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n vec4 sz0 = step(gz0, vec4(0.0));\n gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n vec4 gx1 = ixy1 * (1.0 / 7.0);\n vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n gx1 = fract(gx1);\n vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n vec4 sz1 = step(gz1, vec4(0.0));\n gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n g000 *= norm0.x;\n g010 *= norm0.y;\n g100 *= norm0.z;\n g110 *= norm0.w;\n vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n g001 *= norm1.x;\n g011 *= norm1.y;\n g101 *= norm1.z;\n g111 *= norm1.w;\n float n000 = dot(g000, Pf0);\n float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n float n111 = dot(g111, Pf1);\n vec3 fade_xyz = fade(Pf0);\n vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n float sum = 0.0;\n float sc = 1.0;\n float totalgain = 1.0;\n for (float i = 0.0; i < 6.0; i++)\n {\n sum += totalgain * pnoise(P * sc, rep);\n sc *= lacunarity;\n totalgain *= gain;\n }\n return abs(sum);\n}\n")),this.uniforms.dimensions=new Float32Array(2),"number"==typeof e&&(console.warn("GodrayFilter now uses options instead of (angle, gain, lacunarity, time)"),e={angle:e},void 0!==arguments[1]&&(e.gain=arguments[1]),void 0!==arguments[2]&&(e.lacunarity=arguments[2]),void 0!==arguments[3]&&(e.time=arguments[3])),e=Object.assign({angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0]},e),this._angleLight=new h.Point,this.angle=e.angle,this.gain=e.gain,this.lacunarity=e.lacunarity,this.parallel=e.parallel,this.center=e.center,this.time=e.time}t&&(e.__proto__=t);var r={angle:{configurable:!0},gain:{configurable:!0},lacunarity:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,n){var i=t.sourceFrame,o=i.width,a=i.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=o,this.uniforms.dimensions[1]=a,this.uniforms.aspect=a/o,this.uniforms.time=this.time,e.applyFilter(this,t,r,n)},r.angle.get=function(){return this._angle},r.angle.set=function(e){var t=(this._angle=e)*h.DEG_TO_RAD;this._angleLight.x=Math.cos(t),this._angleLight.y=Math.sin(t)},r.gain.get=function(){return this.uniforms.gain},r.gain.set=function(e){this.uniforms.gain=e},r.lacunarity.get=function(){return this.uniforms.lacunarity},r.lacunarity.set=function(e){this.uniforms.lacunarity=e},Object.defineProperties(e.prototype,r),e}(h.Filter),E=function(n){function e(e,t,r){void 0===e&&(e=[0,0]),void 0===t&&(t=5),void 0===r&&(r=0),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n// int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n vec2 velocity = uVelocity / filterArea.xy;\n float offset = -uOffset / length(uVelocity) - 0.5;\n int k = uKernelSize - 1;\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n vec2 bias = velocity * (float(i) / float(k) + offset);\n color += texture2D(uSampler, vTextureCoord + bias);\n }\n gl_FragColor = color / float(uKernelSize);\n}\n"),this.uniforms.uVelocity=new Float32Array(2),this._velocity=new h.ObservablePoint(this.velocityChanged,this),this.velocity=e,this.kernelSize=t,this.offset=r}n&&(e.__proto__=n);var t={velocity:{configurable:!0},offset:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){var i=this.velocity,o=i.x,a=i.y;this.uniforms.uKernelSize=0!==o||0!==a?this.kernelSize:0,e.applyFilter(this,t,r,n)},t.velocity.set=function(e){Array.isArray(e)?this._velocity.set(e[0],e[1]):(e instanceof h.Point||e instanceof h.ObservablePoint)&&this._velocity.copy(e)},t.velocity.get=function(){return this._velocity},e.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y},t.offset.set=function(e){this.uniforms.uOffset=e},t.offset.get=function(){return this.uniforms.uOffset},Object.defineProperties(e.prototype,t),e}(h.Filter),C=function(n){function e(e,t,r){void 0===t&&(t=.05),void 0===r&&(r=null),r=r||e.length,n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float epsilon;\n\nconst int MAX_COLORS = %maxColors%;\n\nuniform vec3 originalColors[MAX_COLORS];\nuniform vec3 targetColors[MAX_COLORS];\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n\n float alpha = gl_FragColor.a;\n if (alpha < 0.0001)\n {\n return;\n }\n\n vec3 color = gl_FragColor.rgb / alpha;\n\n for(int i = 0; i < MAX_COLORS; i++)\n {\n vec3 origColor = originalColors[i];\n if (origColor.r < 0.0)\n {\n break;\n }\n vec3 colorDiff = origColor - color;\n if (length(colorDiff) < epsilon)\n {\n vec3 targetColor = targetColors[i];\n gl_FragColor = vec4((targetColor + colorDiff) * alpha, alpha);\n return;\n }\n }\n}\n".replace(/%maxColors%/g,r)),this.epsilon=t,this._maxColors=r,this._replacements=null,this.uniforms.originalColors=new Float32Array(3*r),this.uniforms.targetColors=new Float32Array(3*r),this.replacements=e}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={replacements:{configurable:!0},maxColors:{configurable:!0},epsilon:{configurable:!0}};return t.replacements.set=function(e){var t=this.uniforms.originalColors,r=this.uniforms.targetColors,n=e.length;if(n>this._maxColors)throw"Length of replacements ("+n+") exceeds the maximum colors length ("+this._maxColors+")";t[3*n]=-1;for(var i=0;i<n;i++){var o=e[i],a=o[0];"number"==typeof a?a=h.utils.hex2rgb(a):o[0]=h.utils.rgb2hex(a),t[3*i]=a[0],t[3*i+1]=a[1],t[3*i+2]=a[2];var s=o[1];"number"==typeof s?s=h.utils.hex2rgb(s):o[1]=h.utils.rgb2hex(s),r[3*i]=s[0],r[3*i+1]=s[1],r[3*i+2]=s[2]}this._replacements=e},t.replacements.get=function(){return this._replacements},e.prototype.refresh=function(){this.replacements=this._replacements},t.maxColors.get=function(){return this._maxColors},t.epsilon.set=function(e){this.uniforms.epsilon=e},t.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(e.prototype,t),e}(h.Filter),k=function(r){function e(e,t){void 0===t&&(t=0),r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform float sepia;\nuniform float noise;\nuniform float noiseSize;\nuniform float scratch;\nuniform float scratchDensity;\nuniform float scratchWidth;\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\nuniform float seed;\n\nconst float SQRT_2 = 1.414213;\nconst vec3 SEPIA_RGB = vec3(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec3 Overlay(vec3 src, vec3 dst)\n{\n // if (dst <= 0.5) then: 2 * src * dst\n // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)),\n (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)),\n (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\n\n\nvoid main()\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n vec3 color = gl_FragColor.rgb;\n\n if (sepia > 0.0)\n {\n float gray = (color.x + color.y + color.z) / 3.0;\n vec3 grayscale = vec3(gray);\n\n color = Overlay(SEPIA_RGB, grayscale);\n\n color = grayscale + sepia * (color - grayscale);\n }\n\n vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n if (vignetting > 0.0)\n {\n float outter = SQRT_2 - vignetting * SQRT_2;\n vec2 dir = vec2(vec2(0.5, 0.5) - coord);\n dir.y *= dimensions.y / dimensions.x;\n float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n color.rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n }\n\n if (scratchDensity > seed && scratch != 0.0)\n {\n float phase = seed * 256.0;\n float s = mod(floor(phase), 2.0);\n float dist = 1.0 / scratchDensity;\n float d = distance(coord, vec2(seed * dist, abs(s - seed * dist)));\n if (d < seed * 0.6 + 0.4)\n {\n highp float period = scratchDensity * 10.0;\n\n float xx = coord.x * period + phase;\n float aa = abs(mod(xx, 0.5) * 4.0);\n float bb = mod(floor(xx / 0.5), 2.0);\n float yy = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n float kk = 2.0 * period;\n float dw = scratchWidth / dimensions.x * (0.75 + seed);\n float dh = dw * kk;\n\n float tine = (yy - (2.0 - dh));\n\n if (tine > 0.0) {\n float _sign = sign(scratch);\n\n tine = s * tine / period + scratch + 0.1;\n tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n color.rgb *= tine;\n }\n }\n }\n\n if (noise > 0.0 && noiseSize > 0.0)\n {\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n pixelCoord.x = floor(pixelCoord.x / noiseSize);\n pixelCoord.y = floor(pixelCoord.y / noiseSize);\n // vec2 d = pixelCoord * noiseSize * vec2(1024.0 + seed * 512.0, 1024.0 - seed * 512.0);\n // float _noise = snoise(d) * 0.5;\n float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n color += _noise * noise;\n }\n\n gl_FragColor.rgb = color;\n}\n"),this.uniforms.dimensions=new Float32Array(2),"number"==typeof e?(this.seed=e,e=null):this.seed=t,Object.assign(this,{sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3},e)}r&&(e.__proto__=r);var t={sepia:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},scratch:{configurable:!0},scratchDensity:{configurable:!0},scratchWidth:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return((e.prototype=Object.create(r&&r.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.seed=this.seed,e.applyFilter(this,t,r,n)},t.sepia.set=function(e){this.uniforms.sepia=e},t.sepia.get=function(){return this.uniforms.sepia},t.noise.set=function(e){this.uniforms.noise=e},t.noise.get=function(){return this.uniforms.noise},t.noiseSize.set=function(e){this.uniforms.noiseSize=e},t.noiseSize.get=function(){return this.uniforms.noiseSize},t.scratch.set=function(e){this.uniforms.scratch=e},t.scratch.get=function(){return this.uniforms.scratch},t.scratchDensity.set=function(e){this.uniforms.scratchDensity=e},t.scratchDensity.get=function(){return this.uniforms.scratchDensity},t.scratchWidth.set=function(e){this.uniforms.scratchWidth=e},t.scratchWidth.get=function(){return this.uniforms.scratchWidth},t.vignetting.set=function(e){this.uniforms.vignetting=e},t.vignetting.get=function(){return this.uniforms.vignetting},t.vignettingAlpha.set=function(e){this.uniforms.vignettingAlpha=e},t.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},t.vignettingBlur.set=function(e){this.uniforms.vignettingBlur=e},t.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,t),e}(h.Filter),A=function(o){function a(e,t,r){void 0===e&&(e=1),void 0===t&&(t=0),void 0===r&&(r=.1);var n=Math.max(r*a.MAX_SAMPLES,a.MIN_SAMPLES),i=(2*Math.PI/n).toFixed(7);o.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 thickness;\nuniform vec4 outlineColor;\nuniform vec4 filterClamp;\n\nconst float DOUBLE_PI = 3.14159265358979323846264 * 2.;\n\nvoid main(void) {\n vec4 ownColor = texture2D(uSampler, vTextureCoord);\n vec4 curColor;\n float maxAlpha = 0.;\n vec2 displaced;\n for (float angle = 0.; angle <= DOUBLE_PI; angle += ${angleStep}) {\n displaced.x = vTextureCoord.x + thickness.x * cos(angle);\n displaced.y = vTextureCoord.y + thickness.y * sin(angle);\n curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n maxAlpha = max(maxAlpha, curColor.a);\n }\n float resultAlpha = max(maxAlpha, ownColor.a);\n gl_FragColor = vec4((ownColor.rgb + outlineColor.rgb * (1. - ownColor.a)) * resultAlpha, resultAlpha);\n}\n".replace(/\$\{angleStep\}/,i)),this.uniforms.thickness=new Float32Array([0,0]),this.thickness=e,this.uniforms.outlineColor=new Float32Array([0,0,0,1]),this.color=t,this.quality=r}o&&(a.__proto__=o);var e={color:{configurable:!0}};return((a.prototype=Object.create(o&&o.prototype)).constructor=a).prototype.apply=function(e,t,r,n){this.uniforms.thickness[0]=this.thickness/t.size.width,this.uniforms.thickness[1]=this.thickness/t.size.height,e.applyFilter(this,t,r,n)},e.color.get=function(){return h.utils.rgb2hex(this.uniforms.outlineColor)},e.color.set=function(e){h.utils.hex2rgb(e,this.uniforms.outlineColor)},Object.defineProperties(a.prototype,e),a}(h.Filter);A.MIN_SAMPLES=1,A.MAX_SAMPLES=100;var O=function(t){function e(e){void 0===e&&(e=10),t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform vec2 size;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n\treturn floor( coord / size ) * size;\n}\n\nvoid main(void)\n{\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = pixelate(coord, size);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord);\n}\n"),this.size=e}t&&(e.__proto__=t),(e.prototype=Object.create(t&&t.prototype)).constructor=e;var r={size:{configurable:!0}};return r.size.get=function(){return this.uniforms.size},r.size.set=function(e){"number"==typeof e&&(e=[e,e]),this.uniforms.size=e},Object.defineProperties(e.prototype,r),e}(h.Filter),R=function(i){function e(e,t,r,n){void 0===e&&(e=0),void 0===t&&(t=[0,0]),void 0===r&&(r=5),void 0===n&&(n=-1),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float uRadian;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform int uKernelSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\nvoid main(void)\n{\n vec4 color = texture2D(uSampler, vTextureCoord);\n\n if (uKernelSize == 0)\n {\n gl_FragColor = color;\n return;\n }\n\n float aspect = filterArea.y / filterArea.x;\n vec2 center = uCenter.xy / filterArea.xy;\n float gradient = uRadius / filterArea.x * 0.3;\n float radius = uRadius / filterArea.x - gradient * 0.5;\n int k = uKernelSize - 1;\n\n vec2 coord = vTextureCoord;\n vec2 dir = vec2(center - coord);\n float dist = length(vec2(dir.x, dir.y * aspect));\n\n float radianStep = uRadian;\n if (radius >= 0.0 && dist > radius) {\n float delta = dist - radius;\n float gap = gradient;\n float scale = 1.0 - abs(delta / gap);\n if (scale <= 0.0) {\n gl_FragColor = color;\n return;\n }\n radianStep *= scale;\n }\n radianStep /= float(k);\n\n float s = sin(radianStep);\n float c = cos(radianStep);\n mat2 rotationMatrix = mat2(vec2(c, -s), vec2(s, c));\n\n for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n if (i == k) {\n break;\n }\n\n coord -= center;\n coord.y *= aspect;\n coord = rotationMatrix * coord;\n coord.y /= aspect;\n coord += center;\n\n vec4 sample = texture2D(uSampler, coord);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample;\n }\n\n gl_FragColor = color / float(uKernelSize);\n}\n"),this._angle=0,this.angle=e,this.center=t,this.kernelSize=r,this.radius=n}i&&(e.__proto__=i);var t={angle:{configurable:!0},center:{configurable:!0},radius:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,e.applyFilter(this,t,r,n)},t.angle.set=function(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180},t.angle.get=function(){return this._angle},t.center.get=function(){return this.uniforms.uCenter},t.center.set=function(e){this.uniforms.uCenter=e},t.radius.get=function(){return this.uniforms.uRadius},t.radius.set=function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},Object.defineProperties(e.prototype,t),e}(h.Filter),I=function(t){function e(e){t.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nuniform bool mirror;\nuniform float boundary;\nuniform vec2 amplitude;\nuniform vec2 waveLength;\nuniform vec2 alpha;\nuniform float time;\n\nfloat rand(vec2 co) {\n return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n vec2 coord = pixelCoord / dimensions;\n\n if (coord.y < boundary) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n float k = (coord.y - boundary) / (1. - boundary + 0.0001);\n float areaY = boundary * dimensions.y / filterArea.y;\n float v = areaY + areaY - vTextureCoord.y;\n float y = mirror ? v : vTextureCoord.y;\n\n float _amplitude = ((amplitude.y - amplitude.x) * k + amplitude.x ) / filterArea.x;\n float _waveLength = ((waveLength.y - waveLength.x) * k + waveLength.x) / filterArea.y;\n float _alpha = (alpha.y - alpha.x) * k + alpha.x;\n\n float x = vTextureCoord.x + cos(v * 6.28 / _waveLength - time) * _amplitude;\n x = clamp(x, filterClamp.x, filterClamp.z);\n\n vec4 color = texture2D(uSampler, vec2(x, y));\n\n gl_FragColor = color * _alpha;\n}\n"),this.uniforms.amplitude=new Float32Array(2),this.uniforms.waveLength=new Float32Array(2),this.uniforms.alpha=new Float32Array(2),this.uniforms.dimensions=new Float32Array(2),Object.assign(this,{mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},e)}t&&(e.__proto__=t);var r={mirror:{configurable:!0},boundary:{configurable:!0},amplitude:{configurable:!0},waveLength:{configurable:!0},alpha:{configurable:!0}};return((e.prototype=Object.create(t&&t.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.time=this.time,e.applyFilter(this,t,r,n)},r.mirror.set=function(e){this.uniforms.mirror=e},r.mirror.get=function(){return this.uniforms.mirror},r.boundary.set=function(e){this.uniforms.boundary=e},r.boundary.get=function(){return this.uniforms.boundary},r.amplitude.set=function(e){this.uniforms.amplitude[0]=e[0],this.uniforms.amplitude[1]=e[1]},r.amplitude.get=function(){return this.uniforms.amplitude},r.waveLength.set=function(e){this.uniforms.waveLength[0]=e[0],this.uniforms.waveLength[1]=e[1]},r.waveLength.get=function(){return this.uniforms.waveLength},r.alpha.set=function(e){this.uniforms.alpha[0]=e[0],this.uniforms.alpha[1]=e[1]},r.alpha.get=function(){return this.uniforms.alpha},Object.defineProperties(e.prototype,r),e}(h.Filter),D=function(n){function e(e,t,r){void 0===e&&(e=[-10,0]),void 0===t&&(t=[0,10]),void 0===r&&(r=[0,0]),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nvoid main(void)\n{\n gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/filterArea.xy).r;\n gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/filterArea.xy).g;\n gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/filterArea.xy).b;\n gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;\n}\n"),this.red=e,this.green=t,this.blue=r}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return t.red.get=function(){return this.uniforms.red},t.red.set=function(e){this.uniforms.red=e},t.green.get=function(){return this.uniforms.green},t.green.set=function(e){this.uniforms.green=e},t.blue.get=function(){return this.uniforms.blue},t.blue.set=function(e){this.uniforms.blue=e},Object.defineProperties(e.prototype,t),e}(h.Filter),L=function(n){function e(e,t,r){void 0===e&&(e=[0,0]),void 0===t&&(t={}),void 0===r&&(r=0),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nuniform vec2 center;\n\nuniform float amplitude;\nuniform float wavelength;\n// uniform float power;\nuniform float brightness;\nuniform float speed;\nuniform float radius;\n\nuniform float time;\n\nconst float PI = 3.14159;\n\nvoid main()\n{\n float halfWavelength = wavelength * 0.5 / filterArea.x;\n float maxRadius = radius / filterArea.x;\n float currentRadius = time * speed / filterArea.x;\n\n float fade = 1.0;\n\n if (maxRadius > 0.0) {\n if (currentRadius > maxRadius) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n }\n\n vec2 dir = vec2(vTextureCoord - center / filterArea.xy);\n dir.y *= filterArea.y / filterArea.x;\n float dist = length(dir);\n\n if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n\n vec2 diffUV = normalize(dir);\n\n float diff = (dist - currentRadius) / halfWavelength;\n\n float p = 1.0 - pow(abs(diff), 2.0);\n\n // float powDiff = diff * pow(p, 2.0) * ( amplitude * fade );\n float powDiff = 1.25 * sin(diff * PI) * p * ( amplitude * fade );\n\n vec2 offset = diffUV * powDiff / filterArea.xy;\n\n // Do clamp :\n vec2 coord = vTextureCoord + offset;\n vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n vec4 color = texture2D(uSampler, clampedCoord);\n if (coord != clampedCoord) {\n color *= max(0.0, 1.0 - length(coord - clampedCoord));\n }\n\n // No clamp :\n // gl_FragColor = texture2D(uSampler, vTextureCoord + offset);\n\n color.rgb *= 1.0 + (brightness - 1.0) * p * fade;\n\n gl_FragColor = color;\n}\n"),this.center=e,Array.isArray(t)&&(console.warn("Deprecated Warning: ShockwaveFilter params Array has been changed to options Object."),t={}),t=Object.assign({amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},t),this.amplitude=t.amplitude,this.wavelength=t.wavelength,this.brightness=t.brightness,this.speed=t.speed,this.radius=t.radius,this.time=r}n&&(e.__proto__=n);var t={center:{configurable:!0},amplitude:{configurable:!0},wavelength:{configurable:!0},brightness:{configurable:!0},speed:{configurable:!0},radius:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.time=this.time,e.applyFilter(this,t,r,n)},t.center.get=function(){return this.uniforms.center},t.center.set=function(e){this.uniforms.center=e},t.amplitude.get=function(){return this.uniforms.amplitude},t.amplitude.set=function(e){this.uniforms.amplitude=e},t.wavelength.get=function(){return this.uniforms.wavelength},t.wavelength.set=function(e){this.uniforms.wavelength=e},t.brightness.get=function(){return this.uniforms.brightness},t.brightness.set=function(e){this.uniforms.brightness=e},t.speed.get=function(){return this.uniforms.speed},t.speed.set=function(e){this.uniforms.speed=e},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},Object.defineProperties(e.prototype,t),e}(h.Filter),N=function(n){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=1),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D uLightmap;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\nuniform vec4 ambientColor;\nvoid main() {\n vec4 diffuseColor = texture2D(uSampler, vTextureCoord);\n vec2 lightCoord = (vTextureCoord * filterArea.xy) / dimensions;\n vec4 light = texture2D(uLightmap, lightCoord);\n vec3 ambient = ambientColor.rgb * ambientColor.a;\n vec3 intensity = ambient + light.rgb;\n vec3 finalColor = diffuseColor.rgb * intensity;\n gl_FragColor = vec4(finalColor, diffuseColor.a);\n}\n"),this.uniforms.dimensions=new Float32Array(2),this.uniforms.ambientColor=new Float32Array([0,0,0,r]),this.texture=e,this.color=t}n&&(e.__proto__=n);var t={texture:{configurable:!0},color:{configurable:!0},alpha:{configurable:!0}};return((e.prototype=Object.create(n&&n.prototype)).constructor=e).prototype.apply=function(e,t,r,n){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,e.applyFilter(this,t,r,n)},t.texture.get=function(){return this.uniforms.uLightmap},t.texture.set=function(e){this.uniforms.uLightmap=e},t.color.set=function(e){var t=this.uniforms.ambientColor;"number"==typeof e?(h.utils.hex2rgb(e,t),this._color=e):(t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],this._color=h.utils.rgb2hex(t))},t.color.get=function(){return this._color},t.alpha.get=function(){return this.uniforms.ambientColor[3]},t.alpha.set=function(e){this.uniforms.ambientColor[3]=e},Object.defineProperties(e.prototype,t),e}(h.Filter),j=function(i){function e(e,t,r,n){void 0===e&&(e=100),void 0===t&&(t=600),void 0===r&&(r=null),void 0===n&&(n=null),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n vec4 color = vec4(0.0);\n float total = 0.0;\n\n float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n for (float t = -30.0; t <= 30.0; t++)\n {\n float percent = (t + offset - 0.5) / 30.0;\n float weight = 1.0 - abs(percent);\n vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n sample.rgb *= sample.a;\n color += sample * weight;\n total += weight;\n }\n\n color /= total;\n color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n"),this.uniforms.blur=e,this.uniforms.gradientBlur=t,this.uniforms.start=r||new h.Point(0,window.innerHeight/2),this.uniforms.end=n||new h.Point(600,window.innerHeight/2),this.uniforms.delta=new h.Point(30,30),this.uniforms.texSize=new h.Point(window.innerWidth,window.innerHeight),this.updateDelta()}i&&(e.__proto__=i);var t={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},t.blur.get=function(){return this.uniforms.blur},t.blur.set=function(e){this.uniforms.blur=e},t.gradientBlur.get=function(){return this.uniforms.gradientBlur},t.gradientBlur.set=function(e){this.uniforms.gradientBlur=e},t.start.get=function(){return this.uniforms.start},t.start.set=function(e){this.uniforms.start=e,this.updateDelta()},t.end.get=function(){return this.uniforms.end},t.end.set=function(e){this.uniforms.end=e,this.updateDelta()},Object.defineProperties(e.prototype,t),e}(h.Filter),F=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,r=Math.sqrt(e*e+t*t);this.uniforms.delta.x=e/r,this.uniforms.delta.y=t/r},t}(j),B=function(e){function t(){e.apply(this,arguments)}return e&&(t.__proto__=e),((t.prototype=Object.create(e&&e.prototype)).constructor=t).prototype.updateDelta=function(){var e=this.uniforms.end.x-this.uniforms.start.x,t=this.uniforms.end.y-this.uniforms.start.y,r=Math.sqrt(e*e+t*t);this.uniforms.delta.x=-t/r,this.uniforms.delta.y=e/r},t}(j),z=function(i){function e(e,t,r,n){void 0===e&&(e=100),void 0===t&&(t=600),void 0===r&&(r=null),void 0===n&&(n=null),i.call(this),this.tiltShiftXFilter=new F(e,t,r,n),this.tiltShiftYFilter=new B(e,t,r,n)}i&&(e.__proto__=i);var t={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return((e.prototype=Object.create(i&&i.prototype)).constructor=e).prototype.apply=function(e,t,r){var n=e.getRenderTarget(!0);this.tiltShiftXFilter.apply(e,t,n),this.tiltShiftYFilter.apply(e,n,r),e.returnRenderTarget(n)},t.blur.get=function(){return this.tiltShiftXFilter.blur},t.blur.set=function(e){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=e},t.gradientBlur.get=function(){return this.tiltShiftXFilter.gradientBlur},t.gradientBlur.set=function(e){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=e},t.start.get=function(){return this.tiltShiftXFilter.start},t.start.set=function(e){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=e},t.end.get=function(){return this.tiltShiftXFilter.end},t.end.set=function(e){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=e},Object.defineProperties(e.prototype,t),e}(h.Filter),U=function(n){function e(e,t,r){void 0===e&&(e=200),void 0===t&&(t=4),void 0===r&&(r=20),n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n coord *= filterArea.xy;\n coord += filterArea.zw;\n\n return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n coord -= filterArea.zw;\n coord /= filterArea.xy;\n\n return coord;\n}\n\nvec2 twist(vec2 coord)\n{\n coord -= offset;\n\n float dist = length(coord);\n\n if (dist < radius)\n {\n float ratioDist = (radius - dist) / radius;\n float angleMod = ratioDist * ratioDist * angle;\n float s = sin(angleMod);\n float c = cos(angleMod);\n coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n }\n\n coord += offset;\n\n return coord;\n}\n\nvoid main(void)\n{\n\n vec2 coord = mapCoord(vTextureCoord);\n\n coord = twist(coord);\n\n coord = unmapCoord(coord);\n\n gl_FragColor = texture2D(uSampler, coord );\n\n}\n"),this.radius=e,this.angle=t,this.padding=r}n&&(e.__proto__=n),(e.prototype=Object.create(n&&n.prototype)).constructor=e;var t={offset:{configurable:!0},radius:{configurable:!0},angle:{configurable:!0}};return t.offset.get=function(){return this.uniforms.offset},t.offset.set=function(e){this.uniforms.offset=e},t.radius.get=function(){return this.uniforms.radius},t.radius.set=function(e){this.uniforms.radius=e},t.angle.get=function(){return this.uniforms.angle},t.angle.set=function(e){this.uniforms.angle=e},Object.defineProperties(e.prototype,t),e}(h.Filter),X=function(i){function e(e,t,r,n){void 0===e&&(e=.1),void 0===t&&(t=[0,0]),void 0===r&&(r=0),void 0===n&&(n=-1),i.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uCenter;\nuniform float uStrength;\nuniform float uInnerRadius;\nuniform float uRadius;\n\nconst float MAX_KERNEL_SIZE = 32.0;\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float rand(vec2 co, float seed) {\n const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n highp float dt = dot(co + seed, vec2(a, b)), sn = mod(dt, 3.14159);\n return fract(sin(sn) * c + seed);\n}\n\nvoid main() {\n\n float minGradient = uInnerRadius * 0.3;\n float innerRadius = (uInnerRadius + minGradient * 0.5) / filterArea.x;\n\n float gradient = uRadius * 0.3;\n float radius = (uRadius - gradient * 0.5) / filterArea.x;\n\n float countLimit = MAX_KERNEL_SIZE;\n\n vec2 dir = vec2(uCenter.xy / filterArea.xy - vTextureCoord);\n float dist = length(vec2(dir.x, dir.y * filterArea.y / filterArea.x));\n\n float strength = uStrength;\n\n float delta = 0.0;\n float gap;\n if (dist < innerRadius) {\n delta = innerRadius - dist;\n gap = minGradient;\n } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n delta = dist - radius;\n gap = gradient;\n }\n\n if (delta > 0.0) {\n float normalCount = gap / filterArea.x;\n delta = (normalCount - delta) / normalCount;\n countLimit *= delta;\n strength *= delta;\n if (countLimit < 1.0)\n {\n gl_FragColor = texture2D(uSampler, vTextureCoord);\n return;\n }\n }\n\n // randomize the lookup values to hide the fixed number of samples\n float offset = rand(vTextureCoord, 0.0);\n\n float total = 0.0;\n vec4 color = vec4(0.0);\n\n dir *= strength;\n\n for (float t = 0.0; t < MAX_KERNEL_SIZE; t++) {\n float percent = (t + offset) / MAX_KERNEL_SIZE;\n float weight = 4.0 * (percent - percent * percent);\n vec2 p = vTextureCoord + dir * percent;\n vec4 sample = texture2D(uSampler, p);\n\n // switch to pre-multiplied alpha to correctly blur transparent images\n // sample.rgb *= sample.a;\n\n color += sample * weight;\n total += weight;\n\n if (t > countLimit){\n break;\n }\n }\n\n color /= total;\n // switch back from pre-multiplied alpha\n // color.rgb /= color.a + 0.00001;\n\n gl_FragColor = color;\n}\n"),this.center=t,this.strength=e,this.innerRadius=r,this.radius=n}i&&(e.__proto__=i),(e.prototype=Object.create(i&&i.prototype)).constructor=e;var t={center:{configurable:!0},strength:{configurable:!0},innerRadius:{configurable:!0},radius:{configurable:!0}};return t.center.get=function(){return this.uniforms.uCenter},t.center.set=function(e){this.uniforms.uCenter=e},t.strength.get=function(){return this.uniforms.uStrength},t.strength.set=function(e){this.uniforms.uStrength=e},t.innerRadius.get=function(){return this.uniforms.uInnerRadius},t.innerRadius.set=function(e){this.uniforms.uInnerRadius=e},t.radius.get=function(){return this.uniforms.uRadius},t.radius.set=function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},Object.defineProperties(e.prototype,t),e}(h.Filter);return e.AdjustmentFilter=t,e.AdvancedBloomFilter=n,e.AsciiFilter=i,e.BevelFilter=o,e.BloomFilter=p,e.BulgePinchFilter=m,e.ColorMapFilter=g,e.ColorReplaceFilter=v,e.ConvolutionFilter=y,e.CrossHatchFilter=_,e.CRTFilter=b,e.DotFilter=x,e.DropShadowFilter=w,e.EmbossFilter=T,e.GlitchFilter=S,e.GlowFilter=M,e.GodrayFilter=P,e.KawaseBlurFilter=d,e.MotionBlurFilter=E,e.MultiColorReplaceFilter=C,e.OldFilmFilter=k,e.OutlineFilter=A,e.PixelateFilter=O,e.RadialBlurFilter=R,e.ReflectionFilter=I,e.RGBSplitFilter=D,e.ShockwaveFilter=L,e.SimpleLightmapFilter=N,e.TiltShiftFilter=z,e.TiltShiftAxisFilter=j,e.TiltShiftXFilter=F,e.TiltShiftYFilter=B,e.TwistFilter=U,e.ZoomBlurFilter=X,e}({},PIXI),pixi_projection,pixi_heaven,pixi_projection;Object.assign(PIXI.filters,this?this.__filters:__filters),this.PIXI=this.PIXI||{},function(s,g){"use strict";var h,d=function(){function a(e,t,r){this.value="string"==typeof e?s.ParticleUtils.hexToRGB(e):e,this.time=t,this.next=null,this.isStepped=!1,this.ease=r?"function"==typeof r?r:s.ParticleUtils.generateEase(r):null}return a.createList=function(e){if(Array.isArray(e.list)){var t=e.list,r=void 0,n=void 0;if(n=r=new a(t[0].value,t[0].time,e.ease),2<t.length||2===t.length&&t[1].value!==t[0].value)for(var i=1;i<t.length;++i)r.next=new a(t[i].value,t[i].time),r=r.next;return n.isStepped=!!e.isStepped,n}var o=new a(e.start,0);return e.end!==e.start&&(o.next=new a(e.end,1)),o},a}();(h=s.ParticleUtils||(s.ParticleUtils={})).verbose=!1,h.DEG_TO_RADS=Math.PI/180,h.rotatePoint=function(e,t){if(e){e*=h.DEG_TO_RADS;var r=Math.sin(e),n=Math.cos(e),i=t.x*n-t.y*r,o=t.x*r+t.y*n;t.x=i,t.y=o}},h.combineRGBComponents=function(e,t,r){return e<<16|t<<8|r},h.normalize=function(e){var t=1/h.length(e);e.x*=t,e.y*=t},h.scaleBy=function(e,t){e.x*=t,e.y*=t},h.length=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},h.hexToRGB=function(e,t){var r;return t||(t={}),"#"==e.charAt(0)?e=e.substr(1):0===e.indexOf("0x")&&(e=e.substr(2)),8==e.length&&(r=e.substr(0,2),e=e.substr(2)),t.r=parseInt(e.substr(0,2),16),t.g=parseInt(e.substr(2,2),16),t.b=parseInt(e.substr(4,2),16),r&&(t.a=parseInt(r,16)),t},h.generateEase=function(i){var o=i.length,a=1/o;return function(e){var t,r,n=o*e|0;return t=(e-n*a)*o,(r=i[n]||i[o-1]).s+t*(2*(1-t)*(r.cp-r.s)+t*(r.e-r.s))}},h.getBlendMode=function(e){if(!e)return g.BLEND_MODES.NORMAL;for(e=e.toUpperCase();0<=e.indexOf(" ");)e=e.replace(" ","_");return g.BLEND_MODES[e]||g.BLEND_MODES.NORMAL},h.createSteppedGradient=function(e,t){void 0===t&&(t=10),("number"!=typeof t||t<=0)&&(t=10);var r=new d(e[0].value,e[0].time);r.isStepped=!0;for(var n=r,i=e[0],o=1,a=e[o],s=1;s<t;++s){for(var u=s/t;u>a.time;)i=a,a=e[++o];u=(u-i.time)/(a.time-i.time);var c=h.hexToRGB(i.value),l=h.hexToRGB(a.value),f={};f.r=(l.r-c.r)*u+c.r,f.g=(l.g-c.g)*u+c.g,f.b=(l.b-c.b)*u+c.b,n.next=new d(f,s/t),n=n.next}return r};var n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)};function t(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}var i=function(){function e(e){void 0===e&&(e=!1),this.current=null,this.next=null,this.isColor=!!e,this.interpolate=null,this.ease=null}return e.prototype.reset=function(e){this.current=e,this.next=e.next,this.next&&1<=this.next.time?this.interpolate=this.isColor?o:r:e.isStepped?this.interpolate=this.isColor?l:c:this.interpolate=this.isColor?u:a,this.ease=this.current.ease},e}();function r(e){return this.ease&&(e=this.ease(e)),(this.next.value-this.current.value)*e+this.current.value}function o(e){this.ease&&(e=this.ease(e));var t=this.current.value,r=this.next.value,n=(r.r-t.r)*e+t.r,i=(r.g-t.g)*e+t.g,o=(r.b-t.b)*e+t.b;return s.ParticleUtils.combineRGBComponents(n,i,o)}function a(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;return e=(e-this.current.time)/(this.next.time-this.current.time),(this.next.value-this.current.value)*e+this.current.value}function u(e){for(this.ease&&(e=this.ease(e));e>this.next.time;)this.current=this.next,this.next=this.next.next;e=(e-this.current.time)/(this.next.time-this.current.time);var t=this.current.value,r=this.next.value,n=(r.r-t.r)*e+t.r,i=(r.g-t.g)*e+t.g,o=(r.b-t.b)*e+t.b;return s.ParticleUtils.combineRGBComponents(n,i,o)}function c(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;return this.current.value}function l(e){for(this.ease&&(e=this.ease(e));this.next&&e>this.next.time;)this.current=this.next,this.next=this.next.next;var t=this.current.value;return s.ParticleUtils.combineRGBComponents(t.r,t.g,t.b)}var f,p=function(r){function n(e){var t=r.call(this)||this;return t.emitter=e,t.anchor.x=t.anchor.y=.5,t.velocity=new g.Point,t.maxLife=0,t.age=0,t.ease=null,t.extraData=null,t.alphaList=new i,t.speedList=new i,t.speedMultiplier=1,t.acceleration=new g.Point,t.maxSpeed=NaN,t.scaleList=new i,t.scaleMultiplier=1,t.colorList=new i(!0),t._doAlpha=!1,t._doScale=!1,t._doSpeed=!1,t._doAcceleration=!1,t._doColor=!1,t._doNormalMovement=!1,t._oneOverLife=0,t.next=null,t.prev=null,t.init=t.init,t.Particle_init=n.prototype.init,t.update=t.update,t.Particle_update=n.prototype.update,t.Sprite_destroy=r.prototype.destroy,t.Particle_destroy=n.prototype.destroy,t.applyArt=t.applyArt,t.kill=t.kill,t}return t(n,r),n.prototype.init=function(){this.age=0,this.velocity.x=this.speedList.current.value*this.speedMultiplier,this.velocity.y=0,s.ParticleUtils.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=s.ParticleUtils.DEG_TO_RADS,this.rotationSpeed*=s.ParticleUtils.DEG_TO_RADS,this.alpha=this.alphaList.current.value,this.scale.x=this.scale.y=this.scaleList.current.value,this._doAlpha=!!this.alphaList.current.next,this._doSpeed=!!this.speedList.current.next,this._doScale=!!this.scaleList.current.next,this._doColor=!!this.colorList.current.next,this._doAcceleration=0!==this.acceleration.x||0!==this.acceleration.y,this._doNormalMovement=this._doSpeed||0!==this.speedList.current.value||this._doAcceleration,this._oneOverLife=1/this.maxLife;var e=this.colorList.current.value;this.tint=s.ParticleUtils.combineRGBComponents(e.r,e.g,e.b),this.visible=!0},n.prototype.applyArt=function(e){this.texture=e||g.Texture.EMPTY},n.prototype.update=function(e){if(this.age+=e,this.age>=this.maxLife||this.age<0)return this.kill(),-1;var t=this.age*this._oneOverLife;if(this.ease&&(t=4==this.ease.length?this.ease(t,0,1,1):this.ease(t)),this._doAlpha&&(this.alpha=this.alphaList.interpolate(t)),this._doScale){var r=this.scaleList.interpolate(t)*this.scaleMultiplier;this.scale.x=this.scale.y=r}if(this._doNormalMovement){if(this._doSpeed){var n=this.speedList.interpolate(t)*this.speedMultiplier;s.ParticleUtils.normalize(this.velocity),s.ParticleUtils.scaleBy(this.velocity,n)}else if(this._doAcceleration&&(this.velocity.x+=this.acceleration.x*e,this.velocity.y+=this.acceleration.y*e,this.maxSpeed)){var i=s.ParticleUtils.length(this.velocity);i>this.maxSpeed&&s.ParticleUtils.scaleBy(this.velocity,this.maxSpeed/i)}this.position.x+=this.velocity.x*e,this.position.y+=this.velocity.y*e}return this._doColor&&(this.tint=this.colorList.interpolate(t)),0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*e:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),t},n.prototype.kill=function(){this.emitter.recycle(this)},n.prototype.destroy=function(){this.parent&&this.parent.removeChild(this),this.Sprite_destroy(),this.emitter=this.velocity=this.colorList=this.scaleList=this.alphaList=this.speedList=this.ease=this.next=this.prev=null},n.parseArt=function(e){var t;for(t=e.length;0<=t;--t)"string"==typeof e[t]&&(e[t]=g.Texture.fromImage(e[t]));if(s.ParticleUtils.verbose)for(t=e.length-1;0<t;--t)if(e[t].baseTexture!=e[t-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return e},n.parseData=function(e){return e},n}(g.Sprite),m=function(){function e(e){this.segments=[],this.countingLengths=[],this.totalLength=0,this.init(e)}return e.prototype.init=function(e){if(e&&e.length)if(Array.isArray(e[0]))for(var t=0;t<e.length;++t)for(var r=e[t],n=r[0],i=1;i<r.length;++i){var o=r[i];this.segments.push({p1:n,p2:o,l:0}),n=o}else for(n=e[0],t=1;t<e.length;++t){o=e[t];this.segments.push({p1:n,p2:o,l:0}),n=o}else this.segments.push({p1:{x:0,y:0},p2:{x:0,y:0},l:0});for(t=0;t<this.segments.length;++t){var a=this.segments[t],s=a.p1,u=a.p2,c=Math.sqrt((u.x-s.x)*(u.x-s.x)+(u.y-s.y)*(u.y-s.y));this.segments[t].l=c,this.totalLength+=c,this.countingLengths.push(this.totalLength)}},e.prototype.getRandomPoint=function(e){var t,r,n=Math.random()*this.totalLength;if(1===this.segments.length)t=this.segments[0],r=n;else for(var i=0;i<this.countingLengths.length;++i)if(n<this.countingLengths[i]){t=this.segments[i],r=0===i?n:n-this.countingLengths[i-1];break}r/=t.l||1;var o=t.p1,a=t.p2;e.x=o.x+r*(a.x-o.x),e.y=o.y+r*(a.y-o.y)},e}(),e=g;f=parseInt(/^(\d+)\./.exec(g.VERSION)[1])<5?e.ticker.shared:e.Ticker.shared;var v=new g.Point,y=function(){function e(e,t,r){this._particleConstructor=p,this.particleImages=null,this.startAlpha=null,this.startSpeed=null,this.minimumSpeedMultiplier=1,this.acceleration=null,this.maxSpeed=NaN,this.startScale=null,this.minimumScaleMultiplier=1,this.startColor=null,this.minLifetime=0,this.maxLifetime=0,this.minStartRotation=0,this.maxStartRotation=0,this.noRotation=!1,this.minRotationSpeed=0,this.maxRotationSpeed=0,this.particleBlendMode=0,this.customEase=null,this.extraData=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=null,this.spawnType=null,this._spawnFunc=null,this.spawnRect=null,this.spawnCircle=null,this.spawnPolygonalChain=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0,this.rotation=0,this.ownerPos=null,this._prevEmitterPos=null,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._origArt=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=e,t&&r&&this.init(t,r),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}return Object.defineProperty(e.prototype,"frequency",{get:function(){return this._frequency},set:function(e){this._frequency="number"==typeof e&&0<e?e:1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"particleConstructor",{get:function(){return this._particleConstructor},set:function(e){if(e!=this._particleConstructor){this._particleConstructor=e,this.cleanup();for(var t=this._poolFirst;t;t=t.next)t.destroy();this._poolFirst=null,this._origConfig&&this._origArt&&this.init(this._origArt,this._origConfig)}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},set:function(e){this.cleanup(),this._parent=e},enumerable:!0,configurable:!0}),e.prototype.init=function(e,t){if(e&&t){this.cleanup(),this._origConfig=t,this._origArt=e,e=Array.isArray(e)?e.slice():[e];var r=this._particleConstructor;this.particleImages=r.parseArt?r.parseArt(e):e,t.alpha?this.startAlpha=d.createList(t.alpha):this.startAlpha=new d(1,0),t.speed?(this.startSpeed=d.createList(t.speed),this.minimumSpeedMultiplier=t.speed.minimumSpeedMultiplier||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new d(0,0));var n,i=t.acceleration;switch(i&&(i.x||i.y)?(this.startSpeed.next=null,this.acceleration=new g.Point(i.x,i.y),this.maxSpeed=t.maxSpeed||NaN):this.acceleration=new g.Point,t.scale?(this.startScale=d.createList(t.scale),this.minimumScaleMultiplier=t.scale.minimumScaleMultiplier||1):(this.startScale=new d(1,0),this.minimumScaleMultiplier=1),t.color?this.startColor=d.createList(t.color):this.startColor=new d({r:255,g:255,b:255},0),t.startRotation?(this.minStartRotation=t.startRotation.min,this.maxStartRotation=t.startRotation.max):this.minStartRotation=this.maxStartRotation=0,t.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!t.noRotation:this.noRotation=!1,t.rotationSpeed?(this.minRotationSpeed=t.rotationSpeed.min,this.maxRotationSpeed=t.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.minLifetime=t.lifetime.min,this.maxLifetime=t.lifetime.max,this.particleBlendMode=s.ParticleUtils.getBlendMode(t.blendMode),t.ease?this.customEase="function"==typeof t.ease?t.ease:s.ParticleUtils.generateEase(t.ease):this.customEase=null,r.parseData?this.extraData=r.parseData(t.extraData):this.extraData=t.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,t.particlesPerWave&&1<t.particlesPerWave&&(this.particlesPerWave=t.particlesPerWave),this.particleSpacing=0,this.angleStart=0,t.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var o=t.spawnRect;this.spawnRect=new g.Rectangle(o.x,o.y,o.w,o.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,n=t.spawnCircle,this.spawnCircle=new g.Circle(n.x,n.y,n.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,n=t.spawnCircle,this.spawnCircle=new g.Circle(n.x,n.y,n.r),this.spawnCircle.minRadius=n.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particleSpacing=t.particleSpacing,this.angleStart=t.angleStart?t.angleStart:0;break;case"point":this.spawnType="point",this._spawnFunc=this._spawnPoint;break;case"polygonalChain":this.spawnType="polygonalChain",this._spawnFunc=this._spawnPolygonalChain,this.spawnPolygonalChain=new m(t.spawnPolygon);break;default:this.spawnType="point",this._spawnFunc=this._spawnPoint}this.frequency=t.frequency,this.spawnChance="number"==typeof t.spawnChance&&0<t.spawnChance?t.spawnChance:1,this.emitterLifetime=t.emitterLifetime||-1,this.maxParticles=0<t.maxParticles?t.maxParticles:1e3,this.addAtBack=!!t.addAtBack,this.rotation=0,this.ownerPos=new g.Point,this.spawnPos=new g.Point(t.pos.x,t.pos.y),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=void 0===t.emit||!!t.emit,this.autoUpdate=void 0!==t.autoUpdate&&!!t.autoUpdate}},e.prototype.recycle=function(e){e.next&&(e.next.prev=e.prev),e.prev&&(e.prev.next=e.next),e==this._activeParticlesLast&&(this._activeParticlesLast=e.prev),e==this._activeParticlesFirst&&(this._activeParticlesFirst=e.next),e.prev=null,e.next=this._poolFirst,(this._poolFirst=e).parent&&e.parent.removeChild(e),--this.particleCount},e.prototype.rotate=function(e){if(this.rotation!=e){var t=e-this.rotation;this.rotation=e,s.ParticleUtils.rotatePoint(t,this.spawnPos),this._posChanged=!0}},e.prototype.updateSpawnPos=function(e,t){this._posChanged=!0,this.spawnPos.x=e,this.spawnPos.y=t},e.prototype.updateOwnerPos=function(e,t){this._posChanged=!0,this.ownerPos.x=e,this.ownerPos.y=t},e.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(e.prototype,"emit",{get:function(){return this._emit},set:function(e){this._emit=!!e,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(e){this._autoUpdate&&!e?f.remove(this.update,this):!this._autoUpdate&&e&&f.add(this.update,this),this._autoUpdate=!!e},enumerable:!0,configurable:!0}),e.prototype.playOnceAndDestroy=function(e){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=e},e.prototype.playOnce=function(e){this.emit=!0,this._completeCallback=e},e.prototype.update=function(e){if(this._autoUpdate&&(e=e/g.settings.TARGET_FPMS/1e3),this._parent){var t,r,n,i,o;for(r=this._activeParticlesFirst;r;r=n)n=r.next,r.update(e);this._prevPosIsValid&&(i=this._prevEmitterPos.x,o=this._prevEmitterPos.y);var a=this.ownerPos.x+this.spawnPos.x,s=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=e<0?0:e;this._spawnTimer<=0;){if(0<this._emitterLife&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles)this._spawnTimer+=this._frequency;else{var u=void 0;if(u=this.minLifetime==this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer<u){var c=void 0,l=void 0;if(this._prevPosIsValid&&this._posChanged){var f=1+this._spawnTimer/e;c=(a-i)*f+i,l=(s-o)*f+o}else c=a,l=s;t=0;for(var h=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);t<h;++t)if(!(this.spawnChance<1&&Math.random()>=this.spawnChance)){var d=void 0;if(this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new this.particleConstructor(this),1<this.particleImages.length?d.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):d.applyArt(this.particleImages[0]),d.alphaList.reset(this.startAlpha),1!=this.minimumSpeedMultiplier&&(d.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),d.speedList.reset(this.startSpeed),d.acceleration.x=this.acceleration.x,d.acceleration.y=this.acceleration.y,d.maxSpeed=this.maxSpeed,1!=this.minimumScaleMultiplier&&(d.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),d.scaleList.reset(this.startScale),d.colorList.reset(this.startColor),this.minRotationSpeed==this.maxRotationSpeed?d.rotationSpeed=this.minRotationSpeed:d.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,d.noRotation=this.noRotation,d.maxLife=u,d.blendMode=this.particleBlendMode,d.ease=this.customEase,d.extraData=this.extraData,this._spawnFunc(d,c,l,t),d.init(),d.update(-this._spawnTimer),d.parent){var p=this._parent.children;if(p[0]==d)p.shift();else if(p[p.length-1]==d)p.pop();else{var m=p.indexOf(d);p.splice(m,1)}this.addAtBack?p.unshift(d):p.push(d)}else this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d);this._activeParticlesLast?((this._activeParticlesLast.next=d).prev=this._activeParticlesLast,this._activeParticlesLast=d):this._activeParticlesLast=this._activeParticlesFirst=d,++this.particleCount}}this._spawnTimer+=this._frequency}}this._posChanged&&(this._prevEmitterPos.x=a,this._prevEmitterPos.y=s,this._prevPosIsValid=!0,this._posChanged=!1),this._emit||this._activeParticlesFirst||(this._completeCallback&&this._completeCallback(),this._destroyWhenComplete&&this.destroy())}},e.prototype._spawnPoint=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,e.position.x=t,e.position.y=r},e.prototype._spawnRect=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,v.x=Math.random()*this.spawnRect.width+this.spawnRect.x,v.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&s.ParticleUtils.rotatePoint(this.rotation,v),e.position.x=t+v.x,e.position.y=r+v.y},e.prototype._spawnCircle=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,v.x=Math.random()*this.spawnCircle.radius,v.y=0,s.ParticleUtils.rotatePoint(360*Math.random(),v),v.x+=this.spawnCircle.x,v.y+=this.spawnCircle.y,0!==this.rotation&&s.ParticleUtils.rotatePoint(this.rotation,v),e.position.x=t+v.x,e.position.y=r+v.y},e.prototype._spawnRing=function(e,t,r){var n=this.spawnCircle;this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,n.minRadius!==n.radius?v.x=Math.random()*(n.radius-n.minRadius)+n.minRadius:v.x=n.radius,v.y=0;var i=360*Math.random();e.rotation+=i,s.ParticleUtils.rotatePoint(i,v),v.x+=this.spawnCircle.x,v.y+=this.spawnCircle.y,0!==this.rotation&&s.ParticleUtils.rotatePoint(this.rotation,v),e.position.x=t+v.x,e.position.y=r+v.y},e.prototype._spawnPolygonalChain=function(e,t,r){this.minStartRotation==this.maxStartRotation?e.rotation=this.minStartRotation+this.rotation:e.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,this.spawnPolygonalChain.getRandomPoint(v),0!==this.rotation&&s.ParticleUtils.rotatePoint(this.rotation,v),e.position.x=t+v.x,e.position.y=r+v.y},e.prototype._spawnBurst=function(e,t,r,n){0===this.particleSpacing?e.rotation=360*Math.random():e.rotation=this.angleStart+this.particleSpacing*n+this.rotation,e.position.x=t,e.position.y=r},e.prototype.cleanup=function(){var e,t;for(e=this._activeParticlesFirst;e;e=t)t=e.next,this.recycle(e),e.parent&&e.parent.removeChild(e);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},e.prototype.destroy=function(){var e;this.autoUpdate=!1,this.cleanup();for(var t=this._poolFirst;t;t=e)e=t.next,t.destroy();this._poolFirst=this._parent=this.particleImages=this.spawnPos=this.ownerPos=this.startColor=this.startScale=this.startAlpha=this.startSpeed=this.customEase=this._completeCallback=null},e}(),_=new g.Point,b=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],x=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(b).join("|"),"g"),w=(function(r){function e(e){var t=r.call(this,e)||this;return t.path=null,t.initialRotation=0,t.initialPosition=new g.Point,t.movement=0,t}t(e,r),e.prototype.init=function(){this.initialRotation=this.rotation,this.Particle_init(),this.path=this.extraData.path,this._doNormalMovement=!this.path,this.movement=0,this.initialPosition.x=this.position.x,this.initialPosition.y=this.position.y},e.prototype.update=function(e){var t=this.Particle_update(e);if(0<=t&&this.path){var r=this.speedList.interpolate(t)*this.speedMultiplier;this.movement+=r*e,_.x=this.movement,_.y=this.path(this.movement),s.ParticleUtils.rotatePoint(this.initialRotation,_),this.position.x=this.initialPosition.x+_.x,this.position.y=this.initialPosition.y+_.y}return t},e.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},e.parseArt=function(e){return p.parseArt(e)},e.parseData=function(e){var t={};if(e&&e.path)try{t.path=function(e){for(var t=e.match(x),r=t.length-1;0<=r;--r)0<=b.indexOf(t[r])&&(t[r]="Math."+t[r]);return e=t.join(""),new Function("x","return "+e+";")}(e.path)}catch(e){s.ParticleUtils.verbose&&console.error("PathParticle: error in parsing path expression"),t.path=null}else s.ParticleUtils.verbose&&console.error("PathParticle requires a path string in extraData!"),t.path=null;return t}}(p),function(r){function e(e){var t=r.call(this,e)||this;return t.textures=null,t.duration=0,t.framerate=0,t.elapsed=0,t.loop=!1,t}return t(e,r),e.prototype.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},e.prototype.applyArt=function(e){this.textures=e.textures,this.framerate=e.framerate,this.duration=e.duration,this.loop=e.loop},e.prototype.update=function(e){var t=this.Particle_update(e);if(0<=t){this.elapsed+=e,this.elapsed>this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6);var r=this.elapsed*this.framerate+1e-7|0;this.texture=this.textures[r]||g.Texture.EMPTY}return t},e.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},e.parseArt=function(e){for(var t,r,n,i,o,a=[],s=0;s<e.length;++s){t=e[s],a[s]=r={},r.textures=o=[],n=t.textures;for(var u=0;u<n.length;++u)if("string"==typeof(i=n[u]))o.push(g.Texture.fromImage(i));else if(i instanceof g.Texture)o.push(i);else{var c=i.count||1;for(i="string"==typeof i.texture?g.Texture.fromImage(i.texture):i.texture;0<c;--c)o.push(i)}"matchLife"==t.framerate?(r.framerate=-1,r.duration=0,r.loop=!1):(r.loop=!!t.loop,r.framerate=0<t.framerate?t.framerate:60,r.duration=o.length/r.framerate)}return a},e}(p));s.Particle=p,s.Emitter=y,s.AnimatedParticle=w,s.PolygonalChain=m,s.PropertyList=i,s.PropertyNode=d}(this.PIXI.particles=this.PIXI.particles||{},PIXI),function(e){var t;(t=e.utils||(e.utils={})).createIndicesForQuads=function(e){for(var t=6*e,r=new Uint16Array(t),n=0,i=0;n<t;n+=6,i+=4)r[n+0]=i+0,r[n+1]=i+1,r[n+2]=i+2,r[n+3]=i+0,r[n+4]=i+2,r[n+5]=i+3;return r},t.isPow2=function(e){return!(e&e-1||!e)},t.nextPow2=function(e){return e+=+(0===e),--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)},t.log2=function(e){var t,r;return t=+(65535<e)<<4,t|=r=+(255<(e>>>=t))<<3,t|=r=+(15<(e>>>=r))<<2,(t|=r=+(3<(e>>>=r))<<1)|(e>>>=r)>>1},t.getIntersectionFactor=function(e,t,r,n,i){var o=t.x-e.x,a=r.x-n.x,s=r.x-e.x,u=t.y-e.y,c=r.y-n.y,l=r.y-e.y,f=o*c-u*a;if(Math.abs(f)<1e-7)return i.x=o,i.y=u,0;var h=(s*c-l*a)/f,d=(o*l-u*s)/f;return d<1e-6||-1e-6<d-1?-1:(i.x=e.x+h*(t.x-e.x),i.y=e.y+h*(t.y-e.y),1)},t.getPositionFromQuad=function(e,t,r){r=r||new PIXI.Point;var n=1-t.x,i=1-n,o=1-t.y,a=1-o;return r.x=(e[0].x*n+e[1].x*i)*o+(e[3].x*n+e[2].x*i)*a,r.y=(e[0].y*n+e[1].y*i)*o+(e[3].y*n+e[2].y*i)*a,r}}(pixi_projection||(pixi_projection={})),PIXI.projection=pixi_projection,pixi_heaven||(pixi_heaven={}),PIXI.spine||(PIXI.spine={Spine:function(){}}),function(e){var t,r=function(){function e(e,t){void 0===t&&(t=!0),this._enabled=!1,this.legacy=e,t&&(this.enabled=!0),this.legacy.proj=this}return Object.defineProperty(e.prototype,"enabled",{get:function(){return this._enabled},set:function(e){this._enabled=e},enumerable:!0,configurable:!0}),e.prototype.clear=function(){},e}();e.AbstractProjection=r,(t=e.TRANSFORM_STEP||(e.TRANSFORM_STEP={}))[t.NONE=0]="NONE",t[t.BEFORE_PROJ=4]="BEFORE_PROJ",t[t.PROJ=5]="PROJ",t[t.ALL=9]="ALL"}(pixi_projection||(pixi_projection={}));var __extends=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}}(),pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection,pixi_projection;!function(r){function n(e){var t=this.proj,r=this,n=e._worldID,i=r.localTransform,o=t.scaleAfterAffine&&2<=t.affine;r._localID!==r._currentLocalID&&(o?(i.a=r._cx,i.b=r._sx,i.c=r._cy,i.d=r._sy,i.tx=r.position._x,i.ty=r.position._y):(i.a=r._cx*r.scale._x,i.b=r._sx*r.scale._x,i.c=r._cy*r.scale._y,i.d=r._sy*r.scale._y,i.tx=r.position._x-(r.pivot._x*i.a+r.pivot._y*i.c),i.ty=r.position._y-(r.pivot._x*i.b+r.pivot._y*i.d)),r._currentLocalID=r._localID,t._currentProjID=-1);var a=t._projID;if(t._currentProjID!==a&&(t._currentProjID=a,t.updateLocalTransform(i),r._parentID=-1),r._parentID!==n){var s=e.proj;s&&!s._affine?t.world.setToMult(s.world,t.local):t.world.setToMultLegacy(e.worldTransform,t.local);var u=r.worldTransform;t.world.copy(u,t._affine,t.affinePreserveOrientation),o&&(u.a*=r.scale._x,u.b*=r.scale._x,u.c*=r.scale._y,u.d*=r.scale._y,u.tx-=r.pivot._x*u.a+r.pivot._y*u.c,u.ty-=r.pivot._x*u.b+r.pivot._y*u.d),r._parentID=n,r._worldID++}}var e=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._projID=0,e._currentProjID=-1,e._affine=r.AFFINE.NONE,e.affinePreserveOrientation=!1,e.scaleAfterAffine=!0,e}return __extends(e,t),e.prototype.updateLocalTransform=function(e){},Object.defineProperty(e.prototype,"affine",{get:function(){return this._affine},set:function(e){this._affine!=e&&(this._affine=e,this._currentProjID=-1,this.legacy._currentLocalID=-1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{set:function(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?n:PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._currentProjID=-1,this._projID=0},e}(r.AbstractProjection);r.LinearProjection=e}(pixi_projection||(pixi_projection={})),function(e){var t,r;t=e.webgl||(e.webgl={}),r=function(){function e(e){this.vertices=new ArrayBuffer(e),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return e.prototype.destroy=function(){this.vertices=null},e}(),t.BatchBuffer=r}(pixi_projection||(pixi_projection={})),function(I){!function(i){var e=PIXI.ObjectRenderer,C=PIXI.settings,k=PIXI.glCore.GLBuffer,A=PIXI.utils.premultiplyTint,O=PIXI.utils.premultiplyBlendMode,R=1<<21,o=function(){this.textures=[],this.textureCount=0,this.ids=[],this.size=0,this.start=0,this.blend=PIXI.BLEND_MODES.NORMAL,this.uniforms=null};i.BatchGroup=o;var t=function(n){function e(e){var t=n.call(this,e)||this;t.shaderVert="",t.shaderFrag="",t.MAX_TEXTURES_LOCAL=32,t.vertSize=5,t.vertByteSize=4*t.vertSize,t.size=C.SPRITE_BATCH_SIZE,t.currentIndex=0,t.sprites=[],t.vertexBuffers=[],t.vaos=[],t.vaoMax=2,t.vertexCount=0,t.MAX_TEXTURES=1,t.indices=I.utils.createIndicesForQuads(t.size),t.groups=[];for(var r=0;r<t.size;r++)t.groups[r]=new o;return t.vaoMax=2,t.vertexCount=0,t.renderer.on("prerender",t.onPrerender,t),t}return __extends(e,n),e.prototype.getUniforms=function(e){return null},e.prototype.syncUniforms=function(e){if(e){var t=this.shader;for(var r in e)t.uniforms[r]=e[r]}},e.prototype.onContextChange=function(){var e=this.renderer.gl;this.MAX_TEXTURES=Math.min(this.MAX_TEXTURES_LOCAL,this.renderer.plugins.sprite.MAX_TEXTURES),this.shader=i.generateMultiTextureShader(this.shaderVert,this.shaderFrag,e,this.MAX_TEXTURES),this.indexBuffer=k.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);this.shader.attributes;for(var t=0;t<this.vaoMax;t++){var r=this.vertexBuffers[t]=k.createVertexBuffer(e,null,e.STREAM_DRAW);this.vaos[t]=this.createVao(r)}if(!this.buffers){this.buffers=[];for(t=1;t<=I.utils.nextPow2(this.size);t*=2)this.buffers.push(new i.BatchBuffer(4*t*this.vertByteSize))}this.vao=this.vaos[0]},e.prototype.onPrerender=function(){this.vertexCount=0},e.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&e._texture.baseTexture&&(this.sprites[this.currentIndex++]=e)},e.prototype.flush=function(){if(0!==this.currentIndex){var e,t,r,n=this.renderer.gl,i=this.MAX_TEXTURES,o=I.utils.nextPow2(this.currentIndex),a=I.utils.log2(o),s=this.buffers[a],u=this.sprites,c=this.groups,l=s.float32View,f=s.uint32View,h=0,d=null,p=1,m=0,g=c[0],v=O[u[0]._texture.baseTexture.premultipliedAlpha?1:0][u[0].blendMode];for(g.textureCount=0,g.start=0,g.blend=v,R++,r=0;r<this.currentIndex;++r){var y=u[r];u[r]=null,e=y._texture.baseTexture;var _=O[Number(e.premultipliedAlpha)][y.blendMode];v!==_&&(v=_,t=null,m=i,R++);var b=this.getUniforms(y);d!==b&&(d=b,t=null,m=i,R++),t!==e&&(t=e)._enabled!==R&&(m===i&&(R++,m=0,g.size=r-g.start,(g=c[p++]).textureCount=0,g.blend=v,g.start=r,g.uniforms=d),e._enabled=R,e._virtalBoundId=m,g.textures[g.textureCount++]=e,m++);var x=Math.min(y.worldAlpha,1),w=x<1&&e.premultipliedAlpha?A(y._tintRGB,x):y._tintRGB+(255*x<<24);this.fillVertices(l,f,h,y,w,e._virtalBoundId),h+=4*this.vertSize}if(g.size=r-g.start,C.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;this.shader.attributes;var T=this.vertexBuffers[this.vertexCount]=k.createVertexBuffer(n,null,n.STREAM_DRAW);this.vaos[this.vertexCount]=this.createVao(T)}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!1),this.vertexCount++}for(d=null,r=0;r<p;r++){var S=c[r],M=S.textureCount;S.uniforms!==d&&this.syncUniforms(S.uniforms);for(var P=0;P<M;P++){this.renderer.bindTexture(S.textures[P],P,!0),S.textures[P]._virtalBoundId=-1;var E=this.shader.uniforms.samplerSize;E&&(E[0]=S.textures[P].realWidth,E[1]=S.textures[P].realHeight,this.shader.uniforms.samplerSize=E)}this.renderer.state.setBlendMode(S.blend),n.drawElements(n.TRIANGLES,6*S.size,n.UNSIGNED_SHORT,6*S.start*2)}this.currentIndex=0}},e.prototype.start=function(){this.renderer.bindShader(this.shader),C.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},e.prototype.stop=function(){this.flush()},e.prototype.destroy=function(){for(var e=0;e<this.vaoMax;e++)this.vertexBuffers[e]&&this.vertexBuffers[e].destroy(),this.vaos[e]&&this.vaos[e].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),n.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(e=0;e<this.buffers.length;++e)this.buffers[e].destroy()},e}(e);i.MultiTextureSpriteRenderer=t}(I.webgl||(I.webgl={}))}(pixi_projection||(pixi_projection={})),function(e){(e.webgl||(e.webgl={})).generateMultiTextureShader=function(e,t,r,n){t=(t=t.replace(/%count%/gi,n+"")).replace(/%forloop%/gi,function(e){var t="";t+="\n",t+="\n";for(var r=0;r<e;r++)0<r&&(t+="\nelse "),r<e-1&&(t+="if(textureId == "+r+".0)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+r+"], textureCoord);",t+="\n}";return t+="\n",t+="\n"}(n));for(var i=new PIXI.Shader(r,e,t),o=new Int32Array(n),a=0;a<n;a++)o[a]=a;return i.bind(),i.uniforms.uSamplers=o,i}}(pixi_projection||(pixi_projection={})),function(e){var f=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],h=[0,0,0,0],t=function(){function e(){this.surfaceID="default",this._updateID=0,this.vertexSrc="",this.fragmentSrc=""}return e.prototype.fillUniforms=function(e){},e.prototype.clear=function(){},e.prototype.boundsQuad=function(e,t,r){for(var n=t[0],i=t[1],o=t[0],a=t[1],s=2;s<8;s+=2)n>t[s]&&(n=t[s]),o<t[s]&&(o=t[s]),i>t[s+1]&&(i=t[s+1]),a<t[s+1]&&(a=t[s+1]);if(f[0].set(n,i),this.apply(f[0],f[0]),f[1].set(o,i),this.apply(f[1],f[1]),f[2].set(o,a),this.apply(f[2],f[2]),f[3].set(n,a),this.apply(f[3],f[3]),r)r.apply(f[0],f[0]),r.apply(f[1],f[1]),r.apply(f[2],f[2]),r.apply(f[3],f[3]),t[0]=f[0].x,t[1]=f[0].y,t[2]=f[1].x,t[3]=f[1].y,t[4]=f[2].x,t[5]=f[2].y,t[6]=f[3].x,t[7]=f[3].y;else{for(s=1;s<=3;s++)if(f[s].y<f[0].y||f[s].y==f[0].y&&f[s].x<f[0].x){var u=f[0];f[0]=f[s],f[s]=u}for(s=1;s<=3;s++)h[s]=Math.atan2(f[s].y-f[0].y,f[s].x-f[0].x);for(s=1;s<=3;s++)for(var c=s+1;c<=3;c++)if(h[s]>h[c]){u=f[s];f[s]=f[c],f[c]=u;var l=h[s];h[s]=h[c],h[c]=l}if(t[0]=f[0].x,t[1]=f[0].y,t[2]=f[1].x,t[3]=f[1].y,t[4]=f[2].x,t[5]=f[2].y,t[6]=f[3].x,t[7]=f[3].y,(f[3].x-f[2].x)*(f[1].y-f[2].y)-(f[1].x-f[2].x)*(f[3].y-f[2].y)<0)return t[4]=f[3].x,void(t[5]=f[3].y)}},e}();e.Surface=t}(pixi_projection||(pixi_projection={})),function(e){var S=new PIXI.Matrix,i=new PIXI.Rectangle,M=new PIXI.Point,t=function(t){function e(){var e=t.call(this)||this;return e.distortion=new PIXI.Point,e}return __extends(e,t),e.prototype.clear=function(){this.distortion.set(0,0)},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.distortion,n=e.x*e.y;return t.x=e.x+r.x*n,t.y=e.y+r.y*n,t},e.prototype.applyInverse=function(e,t){t=t||new PIXI.Point;var r=e.x,n=e.y,i=this.distortion.x,o=this.distortion.y;if(0==i)t.x=r,t.y=n/(1+o*r);else if(0==o)t.y=n,t.x=r/(1+i*n);else{var a=.5*(n*i-r*o+1)/o,s=a*a+r/o;if(s<=1e-5)return void t.set(NaN,NaN);t.x=0<o?-a+Math.sqrt(s):-a-Math.sqrt(s),t.y=(r/t.x-1)/i}return t},e.prototype.mapSprite=function(e,t,r){var n=e.texture;return i.x=-e.anchor.x*n.orig.width,i.y=-e.anchor.y*n.orig.height,i.width=n.orig.width,i.height=n.orig.height,this.mapQuad(i,t,r||e.transform)},e.prototype.mapQuad=function(e,t,r){var n=-e.x/e.width,i=-e.y/e.height,o=(1-e.x)/e.width,a=(1-e.y)/e.height,s=t[0].x*(1-n)+t[1].x*n,u=t[0].y*(1-n)+t[1].y*n,c=t[0].x*(1-o)+t[1].x*o,l=t[0].y*(1-o)+t[1].y*o,f=t[3].x*(1-n)+t[2].x*n,h=t[3].y*(1-n)+t[2].y*n,d=t[3].x*(1-o)+t[2].x*o,p=t[3].y*(1-o)+t[2].y*o,m=s*(1-i)+f*i,g=u*(1-i)+h*i,v=c*(1-i)+d*i,y=l*(1-i)+p*i,_=s*(1-a)+f*a,b=u*(1-a)+h*a,x=c*(1-a)+d*a,w=l*(1-a)+p*a,T=S;return T.tx=m,T.ty=g,T.a=v-m,T.b=y-g,T.c=_-m,T.d=b-g,M.set(x,w),T.applyInverse(M,M),this.distortion.set(M.x-1,M.y-1),r.setFromMatrix(T),this},e.prototype.fillUniforms=function(e){e.distortion=e.distortion||new Float32Array([0,0,0,0]);var t=Math.abs(this.distortion.x),r=Math.abs(this.distortion.y);e.distortion[0]=1e4*t<=r?0:this.distortion.x,e.distortion[1]=1e4*r<=t?0:this.distortion.y,e.distortion[2]=1/e.distortion[0],e.distortion[3]=1/e.distortion[1]},e}(e.Surface);e.BilinearSurface=t}(pixi_projection||(pixi_projection={})),function(r){var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new r.ProjectionSurface(e.transform),e}return __extends(e,t),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Container);r.Container2s=e}(pixi_projection||(pixi_projection={})),function(r){var n=PIXI.TransformStatic.prototype.updateTransform;function t(e){var t=this.proj,r=e.proj;return r?r._surface?(t._activeProjection=r,this.updateLocalTransform(),this.localTransform.copy(this.worldTransform),void(this._parentID<0&&++this._worldID)):(n.call(this,e),void(t._activeProjection=r._activeProjection)):(n.call(this,e),void(t._activeProjection=null))}var e=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r._surface=null,r._activeProjection=null,r._currentSurfaceID=-1,r._currentLegacyID=-1,r._lastUniforms=null,r}return __extends(e,n),Object.defineProperty(e.prototype,"enabled",{set:function(e){e!==this._enabled&&(this._enabled=e,this.legacy.updateTransform=e?t:PIXI.TransformStatic.prototype.updateTransform,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"surface",{get:function(){return this._surface},set:function(e){this._surface!=e&&(this._surface=e||null,this.legacy._parentID=-1)},enumerable:!0,configurable:!0}),e.prototype.applyPartial=function(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t)):null!==this._surface?this.surface.apply(e,t):this.legacy.worldTransform.apply(e,t)},e.prototype.apply=function(e,t){return null!==this._activeProjection?(t=this.legacy.worldTransform.apply(e,t),this._activeProjection.surface.apply(t,t),this._activeProjection.legacy.worldTransform.apply(t,t)):null!==this._surface?(t=this.surface.apply(e,t),this.legacy.worldTransform.apply(t,t)):this.legacy.worldTransform.apply(e,t)},e.prototype.applyInverse=function(e,t){return null!==this._activeProjection?(t=this._activeProjection.legacy.worldTransform.applyInverse(e,t),this._activeProjection._surface.applyInverse(t,t),this.legacy.worldTransform.applyInverse(t,t)):null!==this._surface?(t=this.legacy.worldTransform.applyInverse(e,t),this._surface.applyInverse(t,t)):this.legacy.worldTransform.applyInverse(e,t)},e.prototype.mapBilinearSprite=function(e,t){this._surface instanceof r.BilinearSurface||(this.surface=new r.BilinearSurface),this.surface.mapSprite(e,t,this.legacy)},e.prototype.clear=function(){this.surface&&this.surface.clear()},Object.defineProperty(e.prototype,"uniforms",{get:function(){return this._currentLegacyID===this.legacy._worldID&&this._currentSurfaceID===this.surface._updateID||(this._lastUniforms=this._lastUniforms||{},this._lastUniforms.worldTransform=this.legacy.worldTransform.toArray(!0),this._surface.fillUniforms(this._lastUniforms)),this._lastUniforms},enumerable:!0,configurable:!0}),e}(r.AbstractProjection);r.ProjectionSurface=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 distortion;\n\nvoid main(void){\nvec2 surface;\nvec2 surface2;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat dx = distortion.x;\nfloat dy = distortion.y;\nfloat revx = distortion.z;\nfloat revy = distortion.w;\n\nif (distortion.x == 0.0) {\n surface.x = vx;\n surface.y = vy / (1.0 + dy * vx);\n surface2 = surface;\n} else\nif (distortion.y == 0.0) {\n surface.y = vy;\n surface.x = vx/ (1.0 + dx * vy);\n surface2 = surface;\n} else {\n float c = vy * dx - vx * dy;\n float b = (c + 1.0) * 0.5;\n float b2 = (-c + 1.0) * 0.5;\n float d = b * b + vx * dy;\n if (d < -0.00001) {\n discard;\n }\n d = sqrt(max(d, 0.0));\n surface.x = (- b + d) * revy;\n surface2.x = (- b - d) * revy;\n surface.y = (- b2 + d) * revx;\n surface2.y = (- b2 - d) * revx;\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nif (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n uv.x = vTrans1.x * surface2.x + vTrans1.y * surface2.y + vTrans1.z;\n uv.y = vTrans2.x * surface2.x + vTrans2.y * surface2.y + vTrans2.z;\n pixels = uv * samplerSize[0];\n \n if (pixels.x < vFrame.x || pixels.x > vFrame.z ||\n pixels.y < vFrame.y || pixels.y > vFrame.w) {\n discard;\n }\n}\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = 1.0; //edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(e){var t=e.proj;this.shader;return null!==t.surface?t.uniforms:null!==t._activeProjection?t._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,n=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTrans1,r.FLOAT,!1,this.vertByteSize,8).addAttribute(e,t.aTrans2,r.FLOAT,!1,this.vertByteSize,20).addAttribute(e,t.aFrame,r.FLOAT,!1,this.vertByteSize,32).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,48);return t.aTextureId&&n.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,52),n},e.prototype.fillVertices=function(e,t,r,n,i,o){for(var a=n.vertexData,s=n._texture,u=(s.orig.width,s.orig.height,n._anchor._x,n._anchor._y,s._frame),c=n.aTrans,l=0;l<4;l++)e[r]=a[2*l],e[r+1]=a[2*l+1],e[r+2]=c.a,e[r+3]=c.c,e[r+4]=c.tx,e[r+5]=c.b,e[r+6]=c.d,e[r+7]=c.ty,e[r+8]=u.x,e[r+9]=u.y,e[r+10]=u.x+u.width,e[r+11]=u.y+u.height,t[r+12]=i,e[r+13]=o,r+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_bilinear",t)}(),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.size=100,e.MAX_TEXTURES_LOCAL=1,e.shaderVert="precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec3 aTrans1;\nattribute vec3 aTrans2;\nattribute vec4 aFrame;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\nuniform mat3 worldTransform;\n\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * worldTransform * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n \n vTextureCoord = aVertexPosition;\n vTrans1 = aTrans1;\n vTrans2 = aTrans2;\n vTextureId = aTextureId;\n vColor = aColor;\n vFrame = aFrame;\n}\n",e.shaderFrag="precision highp float;\nvarying vec2 vTextureCoord;\nvarying vec3 vTrans1;\nvarying vec3 vTrans2;\nvarying vec4 vFrame;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nuniform sampler2D uSamplers[%count%];\nuniform vec2 samplerSize[%count%]; \nuniform vec4 params;\n\nvoid main(void){\nvec2 surface;\n\nfloat vx = vTextureCoord.x;\nfloat vy = vTextureCoord.y;\nfloat aleph = params.x;\nfloat bet = params.y;\nfloat A = params.z;\nfloat B = params.w;\n\nif (aleph == 0.0) {\n\tsurface.y = vy / (1.0 + vx * bet);\n\tsurface.x = vx;\n}\nelse if (bet == 0.0) {\n\tsurface.x = vx / (1.0 + vy * aleph);\n\tsurface.y = vy;\n} else {\n\tsurface.x = vx * (bet + 1.0) / (bet + 1.0 + vy * aleph);\n\tsurface.y = vy * (aleph + 1.0) / (aleph + 1.0 + vx * bet);\n}\n\nvec2 uv;\nuv.x = vTrans1.x * surface.x + vTrans1.y * surface.y + vTrans1.z;\nuv.y = vTrans2.x * surface.x + vTrans2.y * surface.y + vTrans2.z;\n\nvec2 pixels = uv * samplerSize[0];\n\nvec4 edge;\nedge.xy = clamp(pixels - vFrame.xy + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\nedge.zw = clamp(vFrame.zw - pixels + 0.5, vec2(0.0, 0.0), vec2(1.0, 1.0));\n\nfloat alpha = edge.x * edge.y * edge.z * edge.w;\nvec4 rColor = vColor * alpha;\n\nfloat textureId = floor(vTextureId+0.5);\nvec4 color;\nvec2 textureCoord = uv;\n%forloop%\ngl_FragColor = color * rColor;\n}",e.defUniforms={worldTransform:new Float32Array([1,0,0,0,1,0,0,0,1]),distortion:new Float32Array([0,0])},e}return __extends(e,t),e.prototype.getUniforms=function(e){var t=e.proj;this.shader;return null!==t.surface?t.uniforms:null!==t._activeProjection?t._activeProjection.uniforms:this.defUniforms},e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=14,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,n=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTrans1,r.FLOAT,!1,this.vertByteSize,8).addAttribute(e,t.aTrans2,r.FLOAT,!1,this.vertByteSize,20).addAttribute(e,t.aFrame,r.FLOAT,!1,this.vertByteSize,32).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,48);return t.aTextureId&&n.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,52),n},e.prototype.fillVertices=function(e,t,r,n,i,o){for(var a=n.vertexData,s=n._texture,u=(s.orig.width,s.orig.height,n._anchor._x,n._anchor._y,s._frame),c=n.aTrans,l=0;l<4;l++)e[r]=a[2*l],e[r+1]=a[2*l+1],e[r+2]=c.a,e[r+3]=c.c,e[r+4]=c.tx,e[r+5]=c.b,e[r+6]=c.d,e[r+7]=c.ty,e[r+8]=u.x,e[r+9]=u.y,e[r+10]=u.x+u.width,e[r+11]=u.y+u.height,t[r+12]=i,e[r+13]=o,r+=14},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite_strange",t)}(),function(e){var S=new PIXI.Matrix,i=new PIXI.Rectangle,M=new PIXI.Point,t=function(t){function e(){var e=t.call(this)||this;return e.params=[0,0,NaN,NaN],e}return __extends(e,t),e.prototype.clear=function(){var e=this.params;e[0]=0,e[1]=0,e[2]=NaN,e[3]=NaN},e.prototype.setAxisX=function(e,t,r){var n=e.x,i=e.y,o=Math.sqrt(n*n+i*i),a=r.rotation;0!==a&&(r.skew._x-=a,r.skew._y+=a,r.rotation=0),r.skew.y=Math.atan2(i,n);var s=this.params;s[2]=0!==t?-o*t:NaN,this._calc01()},e.prototype.setAxisY=function(e,t,r){var n=e.x,i=e.y,o=Math.sqrt(n*n+i*i),a=r.rotation;0!==a&&(r.skew._x-=a,r.skew._y+=a,r.rotation=0),r.skew.x=-Math.atan2(i,n)+Math.PI/2;var s=this.params;s[3]=0!==t?-o*t:NaN,this._calc01()},e.prototype._calc01=function(){var e=this.params;if(isNaN(e[2]))e[1]=0,isNaN(e[3])?e[0]=0:e[0]=1/e[3];else if(isNaN(e[3]))e[0]=0,e[1]=1/e[2];else{var t=1-e[2]*e[3];e[0]=(1-e[2])/t,e[1]=(1-e[3])/t}},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.params[0],n=this.params[1],i=this.params[2],o=this.params[3],a=e.x,s=e.y;if(0===r)t.y=s*(1+a*n),t.x=a;else if(0===n)t.x=a*(1+s*r),t.y=s;else{var u=i*o-s*a;t.x=i*a*(o+s)/u,t.y=o*s*(i+a)/u}return t},e.prototype.applyInverse=function(e,t){t=t||new PIXI.Point;var r=this.params[0],n=this.params[1],i=(this.params[2],this.params[3],e.x),o=e.y;return 0===r?(t.y=o/(1+i*n),t.x=i):0===n?(t.x=i*(1+o*r),t.y=o):(t.x=i*(n+1)/(n+1+o*r),t.y=o*(r+1)/(r+1+i*n)),t},e.prototype.mapSprite=function(e,t,r){var n=e.texture;return i.x=-e.anchor.x*n.orig.width,i.y=-e.anchor.y*n.orig.height,i.width=n.orig.width,i.height=n.orig.height,this.mapQuad(i,t,r||e.transform)},e.prototype.mapQuad=function(e,t,r){var n=-e.x/e.width,i=-e.y/e.height,o=(1-e.x)/e.width,a=(1-e.y)/e.height,s=t[0].x*(1-n)+t[1].x*n,u=t[0].y*(1-n)+t[1].y*n,c=t[0].x*(1-o)+t[1].x*o,l=t[0].y*(1-o)+t[1].y*o,f=t[3].x*(1-n)+t[2].x*n,h=t[3].y*(1-n)+t[2].y*n,d=t[3].x*(1-o)+t[2].x*o,p=t[3].y*(1-o)+t[2].y*o,m=s*(1-i)+f*i,g=u*(1-i)+h*i,v=c*(1-i)+d*i,y=l*(1-i)+p*i,_=s*(1-a)+f*a,b=u*(1-a)+h*a,x=c*(1-a)+d*a,w=l*(1-a)+p*a,T=S;return T.tx=m,T.ty=g,T.a=v-m,T.b=y-g,T.c=_-m,T.d=b-g,M.set(x,w),T.applyInverse(M,M),r.setFromMatrix(T),this},e.prototype.fillUniforms=function(e){var t=this.params,r=e.params||new Float32Array([0,0,0,0]);(e.params=r)[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3]},e}(e.Surface);e.StrangeSurface=t}(pixi_projection||(pixi_projection={})),function(n){var e=function(r){function e(e){var t=r.call(this,e)||this;return t.aTrans=new PIXI.Matrix,t.proj=new n.ProjectionSurface(t.transform),t.pluginName="sprite_bilinear",t}return __extends(e,r),e.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},e.prototype.calculateVertices=function(){var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,n=this.vertexData,i=r.trim,o=r.orig,a=this._anchor,s=0,u=0,c=0,l=0;if(c=i?(s=(u=i.x-a._x*o.width)+i.width,(l=i.y-a._y*o.height)+i.height):(s=(u=-a._x*o.width)+o.width,(l=-a._y*o.height)+o.height),this.proj._surface)n[0]=u,n[1]=l,n[2]=s,n[3]=l,n[4]=s,n[5]=c,n[6]=u,n[7]=c,this.proj._surface.boundsQuad(n,n);else{var f=this.transform.worldTransform,h=f.a,d=f.b,p=f.c,m=f.d,g=f.tx,v=f.ty;n[0]=h*u+p*l+g,n[1]=m*l+d*u+v,n[2]=h*s+p*l+g,n[3]=m*l+d*s+v,n[4]=h*s+p*c+g,n[5]=m*c+d*s+v,n[6]=h*u+p*c+g,n[7]=m*c+d*u+v,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(n,n)}r.transform||(r.transform=new PIXI.TextureMatrix(r)),r.transform.update();var y=this.aTrans;y.set(o.width,0,0,o.height,u,l),null===this.proj._surface&&y.prepend(this.transform.worldTransform),y.invert(),y.prepend(r.transform.mapCoord)}},e.prototype.calculateTrimmedVertices=function(){var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,n=this.vertexTrimmedData,i=r.orig,o=this._anchor,a=-o._x*i.width,s=a+i.width,u=-o._y*i.height,c=u+i.height;if(this.proj._surface)n[0]=a,n[1]=u,n[2]=s,n[3]=u,n[4]=s,n[5]=c,n[6]=a,n[7]=c,this.proj._surface.boundsQuad(n,n,this.transform.worldTransform);else{var l=this.transform.worldTransform,f=l.a,h=l.b,d=l.c,p=l.d,m=l.tx,g=l.ty;n[0]=f*a+d*u+m,n[1]=p*u+h*a+g,n[2]=f*s+d*u+m,n[3]=p*u+h*s+g,n[4]=f*s+d*c+m,n[5]=p*c+h*s+g,n[6]=f*a+d*c+m,n[7]=p*c+h*a+g,this.proj._activeProjection&&this.proj._activeProjection.surface.boundsQuad(n,n,this.proj._activeProjection.legacy.worldTransform)}},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);n.Sprite2s=e}(pixi_projection||(pixi_projection={})),function(o){var e=function(i){function e(e,t,r){var n=i.call(this,e,t,r)||this;return n.aTrans=new PIXI.Matrix,n.proj=new o.ProjectionSurface(n.transform),n.pluginName="sprite_bilinear",n}return __extends(e,i),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}),e}(PIXI.Text);(o.Text2s=e).prototype.calculateVertices=o.Sprite2s.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=o.Sprite2s.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=o.Sprite2s.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(e){PIXI.Sprite.prototype.convertTo2s=function(){this.proj||(this.pluginName="sprite_bilinear",this.aTrans=new PIXI.Matrix,this.calculateVertices=e.Sprite2s.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite2s.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite2s.prototype._calculateBounds,PIXI.Container.prototype.convertTo2s.call(this))},PIXI.Container.prototype.convertTo2s=function(){this.proj||(this.proj=new e.Projection2d(this.transform),Object.defineProperty(this,"worldTransform",{get:function(){return this.proj},enumerable:!0,configurable:!0}))},PIXI.Container.prototype.convertSubtreeTo2s=function(){this.convertTo2s();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2s()}}(pixi_projection||(pixi_projection={})),function(o){o.container2dWorldTransform=function(){return this.proj.affine?this.transform.worldTransform:this.proj.world};var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new o.Projection2d(e.transform),e}return __extends(e,t),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),t&&(e=t.toGlobal(e,r,n)),n||this._recursivePostUpdateTransform(),i>=o.TRANSFORM_STEP.PROJ?(n||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(e,r):this.proj.world.applyInverse(e,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):r.copy(e),i===o.TRANSFORM_STEP.NONE?r:this.transform.localTransform.applyInverse(r,r))},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Container);o.Container2d=e,o.container2dToLocal=e.prototype.toLocal}(pixi_projection||(pixi_projection={})),function(e){var u,t,v=PIXI.Point,r=[1,0,0,0,1,0,0,0,1];(t=u=e.AFFINE||(e.AFFINE={}))[t.NONE=0]="NONE",t[t.FREE=1]="FREE",t[t.AXIS_X=2]="AXIS_X",t[t.AXIS_Y=3]="AXIS_Y",t[t.POINT=4]="POINT";var n=function(){function e(e){this.floatArray=null,this.mat3=new Float64Array(e||r)}return Object.defineProperty(e.prototype,"a",{get:function(){return this.mat3[0]/this.mat3[8]},set:function(e){this.mat3[0]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"b",{get:function(){return this.mat3[1]/this.mat3[8]},set:function(e){this.mat3[1]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"c",{get:function(){return this.mat3[3]/this.mat3[8]},set:function(e){this.mat3[3]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"d",{get:function(){return this.mat3[4]/this.mat3[8]},set:function(e){this.mat3[4]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tx",{get:function(){return this.mat3[6]/this.mat3[8]},set:function(e){this.mat3[6]=e*this.mat3[8]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ty",{get:function(){return this.mat3[7]/this.mat3[8]},set:function(e){this.mat3[7]=e*this.mat3[8]},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r,n,i,o){var a=this.mat3;return a[0]=e,a[1]=t,a[2]=0,a[3]=r,a[4]=n,a[5]=0,a[6]=i,a[7]=o,a[8]=1,this},e.prototype.toArray=function(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var r=t||this.floatArray,n=this.mat3;return e?(r[0]=n[0],r[1]=n[1],r[2]=n[2],r[3]=n[3],r[4]=n[4],r[5]=n[5],r[6]=n[6],r[7]=n[7]):(r[0]=n[0],r[1]=n[3],r[2]=n[6],r[3]=n[1],r[4]=n[4],r[5]=n[7],r[6]=n[2],r[7]=n[5]),r[8]=n[8],r},e.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.mat3,n=e.x,i=e.y,o=1/(r[2]*n+r[5]*i+r[8]);return t.x=o*(r[0]*n+r[3]*i+r[6]),t.y=o*(r[1]*n+r[4]*i+r[7]),t},e.prototype.translate=function(e,t){var r=this.mat3;return r[0]+=e*r[2],r[1]+=t*r[2],r[3]+=e*r[5],r[4]+=t*r[5],r[6]+=e*r[8],r[7]+=t*r[8],this},e.prototype.scale=function(e,t){var r=this.mat3;return r[0]*=e,r[1]*=t,r[3]*=e,r[4]*=t,r[6]*=e,r[7]*=t,this},e.prototype.scaleAndTranslate=function(e,t,r,n){var i=this.mat3;i[0]=e*i[0]+r*i[2],i[1]=t*i[1]+n*i[2],i[3]=e*i[3]+r*i[5],i[4]=t*i[4]+n*i[5],i[6]=e*i[6]+r*i[8],i[7]=t*i[7]+n*i[8]},e.prototype.applyInverse=function(e,t){t=t||new v;var r=this.mat3,n=e.x,i=e.y,o=r[0],a=r[3],s=r[6],u=r[1],c=r[4],l=r[7],f=r[2],h=r[5],d=r[8],p=(d*c-l*h)*n+(-d*a+s*h)*i+(l*a-s*c),m=(-d*u+l*f)*n+(d*o-s*f)*i+(-l*o+s*u),g=(h*u-c*f)*n+(-h*o+a*f)*i+(c*o-a*u);return t.x=p/g,t.y=m/g,t},e.prototype.invert=function(){var e=this.mat3,t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=e[6],u=e[7],c=e[8],l=c*o-a*u,f=-c*i+a*s,h=u*i-o*s,d=t*l+r*f+n*h;return d&&(d=1/d,e[0]=l*d,e[1]=(-c*r+n*u)*d,e[2]=(a*r-n*o)*d,e[3]=f*d,e[4]=(c*t-n*s)*d,e[5]=(-a*t+n*i)*d,e[6]=h*d,e[7]=(-u*t+r*s)*d,e[8]=(o*t-r*i)*d),this},e.prototype.identity=function(){var e=this.mat3;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=1,e[5]=0,e[6]=0,e[7]=0,e[8]=1,this},e.prototype.clone=function(){return new e(this.mat3)},e.prototype.copyTo=function(e){var t=this.mat3,r=e.mat3;return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[8]=t[8],e},e.prototype.copyTo2dOr3d=function(e){return this.copyTo(e)},e.prototype.copy=function(e,t,r){var n=this.mat3,i=1/n[8],o=n[6]*i,a=n[7]*i;if(e.a=(n[0]-n[2]*o)*i,e.b=(n[1]-n[2]*a)*i,e.c=(n[3]-n[5]*o)*i,e.d=(n[4]-n[5]*a)*i,e.tx=o,e.ty=a,2<=t){var s=e.a*e.d-e.b*e.c;r||(s=Math.abs(s)),t===u.POINT?(s=0<s?1:-1,e.a=s,e.b=0,e.c=0,e.d=s):t===u.AXIS_X?(s/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=s):t===u.AXIS_Y&&(s/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=s,e.c=0)}},e.prototype.copyFrom=function(e){var t=this.mat3;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=e.c,t[4]=e.d,t[5]=0,t[6]=e.tx,t[7]=e.ty,t[8]=1,this},e.prototype.setToMultLegacy=function(e,t){var r=this.mat3,n=t.mat3,i=e.a,o=e.b,a=e.c,s=e.d,u=e.tx,c=e.ty,l=n[0],f=n[1],h=n[2],d=n[3],p=n[4],m=n[5],g=n[6],v=n[7],y=n[8];return r[0]=l*i+f*a+h*u,r[1]=l*o+f*s+h*c,r[2]=h,r[3]=d*i+p*a+m*u,r[4]=d*o+p*s+m*c,r[5]=m,r[6]=g*i+v*a+y*u,r[7]=g*o+v*s+y*c,r[8]=y,this},e.prototype.setToMultLegacy2=function(e,t){var r=this.mat3,n=e.mat3,i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=n[8],d=t.a,p=t.b,m=t.c,g=t.d,v=t.tx,y=t.ty;return r[0]=d*i+p*s,r[1]=d*o+p*u,r[2]=d*a+p*c,r[3]=m*i+g*s,r[4]=m*o+g*u,r[5]=m*a+g*c,r[6]=v*i+y*s+l,r[7]=v*o+y*u+f,r[8]=v*a+y*c+h,this},e.prototype.setToMult=function(e,t){var r=this.mat3,n=e.mat3,i=t.mat3,o=n[0],a=n[1],s=n[2],u=n[3],c=n[4],l=n[5],f=n[6],h=n[7],d=n[8],p=i[0],m=i[1],g=i[2],v=i[3],y=i[4],_=i[5],b=i[6],x=i[7],w=i[8];return r[0]=p*o+m*u+g*f,r[1]=p*a+m*c+g*h,r[2]=p*s+m*l+g*d,r[3]=v*o+y*u+_*f,r[4]=v*a+y*c+_*h,r[5]=v*s+y*l+_*d,r[6]=b*o+x*u+w*f,r[7]=b*a+x*c+w*h,r[8]=b*s+x*l+w*d,this},e.prototype.prepend=function(e){return e.mat3?this.setToMult(e,this):this.setToMultLegacy(e,this)},e.IDENTITY=new e,e.TEMP_MATRIX=new e,e}();e.Matrix2d=n}(pixi_projection||(pixi_projection={})),function(d){var p=new PIXI.Point,m=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],i=new PIXI.Rectangle,g=new d.Matrix2d,e=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.matrix=new d.Matrix2d,r.pivot=new PIXI.ObservablePoint(r.onChange,r,0,0),r.reverseLocalOrder=!1,r.local=new d.Matrix2d,r.world=new d.Matrix2d,r}return __extends(e,n),e.prototype.onChange=function(){var e=this.pivot,t=this.matrix.mat3;t[6]=-(e._x*t[0]+e._y*t[3]),t[7]=-(e._x*t[1]+e._y*t[4]),this._projID++},e.prototype.setAxisX=function(e,t){void 0===t&&(t=1);var r=e.x,n=e.y,i=Math.sqrt(r*r+n*n),o=this.matrix.mat3;o[0]=r/i,o[1]=n/i,o[2]=t/i,this.onChange()},e.prototype.setAxisY=function(e,t){void 0===t&&(t=1);var r=e.x,n=e.y,i=Math.sqrt(r*r+n*n),o=this.matrix.mat3;o[3]=r/i,o[4]=n/i,o[5]=t/i,this.onChange()},e.prototype.mapSprite=function(e,t){var r=e.texture;return i.x=-e.anchor.x*r.orig.width,i.y=-e.anchor.y*r.orig.height,i.width=r.orig.width,i.height=r.orig.height,this.mapQuad(i,t)},e.prototype.mapQuad=function(e,t){m[0].set(e.x,e.y),m[1].set(e.x+e.width,e.y),m[2].set(e.x+e.width,e.y+e.height),m[3].set(e.x,e.y+e.height);var r=1,n=2,i=3;if(0!==d.utils.getIntersectionFactor(t[0],t[2],t[1],t[3],p)){r=1,n=3,i=2;var o=Math.sqrt((t[0].x-p.x)*(t[0].x-p.x)+(t[0].y-p.y)*(t[0].y-p.y)),a=Math.sqrt((t[r].x-p.x)*(t[r].x-p.x)+(t[r].y-p.y)*(t[r].y-p.y)),s=Math.sqrt((t[n].x-p.x)*(t[n].x-p.x)+(t[n].y-p.y)*(t[n].y-p.y)),u=Math.sqrt((t[i].x-p.x)*(t[i].x-p.x)+(t[i].y-p.y)*(t[i].y-p.y)),c=(o+u)/u,l=(a+s)/s,f=(a+s)/a,h=this.matrix.mat3;h[0]=m[0].x*c,h[1]=m[0].y*c,h[2]=c,h[3]=m[r].x*l,h[4]=m[r].y*l,h[5]=l,h[6]=m[n].x*f,h[7]=m[n].y*f,h[8]=f,this.matrix.invert(),(h=g.mat3)[0]=t[0].x,h[1]=t[0].y,h[2]=1,h[3]=t[r].x,h[4]=t[r].y,h[5]=1,h[6]=t[n].x,h[7]=t[n].y,h[8]=1,this.matrix.setToMult(g,this.matrix),this._projID++}},e.prototype.updateLocalTransform=function(e){0!==this._projID?this.reverseLocalOrder?this.local.setToMultLegacy2(this.matrix,e):this.local.setToMultLegacy(e,this.matrix):this.local.copyFrom(e)},e.prototype.clear=function(){n.prototype.clear.call(this),this.matrix.identity(),this.pivot.set(0,0)},e}(d.LinearProjection);d.Projection2d=e}(pixi_projection||(pixi_projection={})),function(s){var e=function(a){function e(e,t,r,n,i){var o=a.call(this,e,t,r,n,i)||this;return o.proj=new s.Projection2d(o.transform),o.pluginName="mesh2d",o}return __extends(e,a),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=s.TRANSFORM_STEP.ALL),s.container2dToLocal.call(this,e,t,r,n,i)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.mesh.Mesh);s.Mesh2d=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new PIXI.Shader(e,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n gl_Position.z = 0.0;\n\n vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","\nvarying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}")},t}(PIXI.mesh.MeshRenderer);e.Mesh2dRenderer=t,PIXI.WebGLRenderer.registerPlugin("mesh2d",t)}(pixi_projection||(pixi_projection={})),function(o){var e=function(h){function e(e){var t=h.call(this,e)||this;return t.proj=new o.Projection2d(t.transform),t.pluginName="sprite2d",t.vertexData=new Float32Array(12),t}return __extends(e,h),e.prototype._calculateBounds=function(){this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData)},e.prototype.calculateVertices=function(){if(this.proj._affine)return 8!=this.vertexData.length&&(this.vertexData=new Float32Array(8)),void h.prototype.calculateVertices.call(this);12!=this.vertexData.length&&(this.vertexData=new Float32Array(12));var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,n=this.proj.world.mat3,i=this.vertexData,o=r.trim,a=r.orig,s=this._anchor,u=0,c=0,l=0,f=0;l=o?(u=(c=o.x-s._x*a.width)+o.width,(f=o.y-s._y*a.height)+o.height):(u=(c=-s._x*a.width)+a.width,(f=-s._y*a.height)+a.height),i[0]=n[0]*c+n[3]*f+n[6],i[1]=n[1]*c+n[4]*f+n[7],i[2]=n[2]*c+n[5]*f+n[8],i[3]=n[0]*u+n[3]*f+n[6],i[4]=n[1]*u+n[4]*f+n[7],i[5]=n[2]*u+n[5]*f+n[8],i[6]=n[0]*u+n[3]*l+n[6],i[7]=n[1]*u+n[4]*l+n[7],i[8]=n[2]*u+n[5]*l+n[8],i[9]=n[0]*c+n[3]*l+n[6],i[10]=n[1]*c+n[4]*l+n[7],i[11]=n[2]*c+n[5]*l+n[8]}},e.prototype.calculateTrimmedVertices=function(){if(this.proj._affine)h.prototype.calculateTrimmedVertices.call(this);else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,n=this.vertexTrimmedData,i=r.orig,o=this._anchor,a=this.proj.world.mat3,s=-o._x*i.width,u=s+i.width,c=-o._y*i.height,l=c+i.height,f=1/(a[2]*s+a[5]*c+a[8]);n[0]=f*(a[0]*s+a[3]*c+a[6]),n[1]=f*(a[1]*s+a[4]*c+a[7]),f=1/(a[2]*u+a[5]*c+a[8]),n[2]=f*(a[0]*u+a[3]*c+a[6]),n[3]=f*(a[1]*u+a[4]*c+a[7]),f=1/(a[2]*u+a[5]*l+a[8]),n[4]=f*(a[0]*u+a[3]*l+a[6]),n[5]=f*(a[1]*u+a[4]*l+a[7]),f=1/(a[2]*s+a[5]*l+a[8]),n[6]=f*(a[0]*s+a[3]*l+a[6]),n[7]=f*(a[1]*s+a[4]*l+a[7])}},e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),o.container2dToLocal.call(this,e,t,r,n,i)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);o.Sprite2d=e}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.shaderVert="precision highp float;\nattribute vec3 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n gl_Position.xyw = projectionMatrix * aVertexPosition;\n gl_Position.z = 0.0;\n \n vTextureCoord = aTextureCoord;\n vTextureId = aTextureId;\n vColor = aColor;\n}\n",e.shaderFrag="\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\nuniform sampler2D uSamplers[%count%];\n\nvoid main(void){\nvec4 color;\nvec2 textureCoord = vTextureCoord;\nfloat textureId = floor(vTextureId+0.5);\n%forloop%\ngl_FragColor = color * vColor;\n}",e}return __extends(e,t),e.prototype.createVao=function(e){var t=this.shader.attributes;this.vertSize=6,this.vertByteSize=4*this.vertSize;var r=this.renderer.gl,n=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(e,t.aVertexPosition,r.FLOAT,!1,this.vertByteSize,0).addAttribute(e,t.aTextureCoord,r.UNSIGNED_SHORT,!0,this.vertByteSize,12).addAttribute(e,t.aColor,r.UNSIGNED_BYTE,!0,this.vertByteSize,16);return t.aTextureId&&n.addAttribute(e,t.aTextureId,r.FLOAT,!1,this.vertByteSize,20),n},e.prototype.fillVertices=function(e,t,r,n,i,o){var a=n.vertexData,s=n._texture._uvs.uvsUint32;if(8===a.length)if(this.renderer.roundPixels){var u=this.renderer.resolution;e[r]=(a[0]*u|0)/u,e[r+1]=(a[1]*u|0)/u,e[r+2]=1,e[r+6]=(a[2]*u|0)/u,e[r+7]=(a[3]*u|0)/u,e[r+8]=1,e[r+12]=(a[4]*u|0)/u,e[r+13]=(a[5]*u|0)/u,e[r+14]=1,e[r+18]=(a[6]*u|0)/u,e[r+19]=(a[7]*u|0)/u,e[r+20]=1}else e[r]=a[0],e[r+1]=a[1],e[r+2]=1,e[r+6]=a[2],e[r+7]=a[3],e[r+8]=1,e[r+12]=a[4],e[r+13]=a[5],e[r+14]=1,e[r+18]=a[6],e[r+19]=a[7],e[r+20]=1;else e[r]=a[0],e[r+1]=a[1],e[r+2]=a[2],e[r+6]=a[3],e[r+7]=a[4],e[r+8]=a[5],e[r+12]=a[6],e[r+13]=a[7],e[r+14]=a[8],e[r+18]=a[9],e[r+19]=a[10],e[r+20]=a[11];t[r+3]=s[0],t[r+9]=s[1],t[r+15]=s[2],t[r+21]=s[3],t[r+4]=t[r+10]=t[r+16]=t[r+22]=i,e[r+5]=e[r+11]=e[r+17]=e[r+23]=o},e}((pixi_projection||(pixi_projection={})).webgl.MultiTextureSpriteRenderer);PIXI.WebGLRenderer.registerPlugin("sprite2d",t)}(),function(o){var e=function(i){function e(e,t,r){var n=i.call(this,e,t,r)||this;return n.proj=new o.Projection2d(n.transform),n.pluginName="sprite2d",n.vertexData=new Float32Array(12),n}return __extends(e,i),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e}(PIXI.Text);(o.Text2d=e).prototype.calculateVertices=o.Sprite2d.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=o.Sprite2d.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=o.Sprite2d.prototype._calculateBounds}(pixi_projection||(pixi_projection={})),function(e){function t(){this.proj||(this.proj=new e.Projection2d(this.transform),this.toLocal=e.Container2d.prototype.toLocal,Object.defineProperty(this,"worldTransform",{get:e.container2dWorldTransform,enumerable:!0,configurable:!0}))}PIXI.Container.prototype.convertTo2d=t,PIXI.Sprite.prototype.convertTo2d=function(){this.proj||(this.calculateVertices=e.Sprite2d.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite2d.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite2d.prototype._calculateBounds,this.pluginName="sprite2d",this.vertexData=new Float32Array(12),t.call(this))},PIXI.mesh.Mesh.prototype.convertTo2d=function(){this.proj||(this.pluginName="mesh2d",t.call(this))},PIXI.Container.prototype.convertSubtreeTo2d=function(){this.convertTo2d();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo2d()}}(pixi_projection||(pixi_projection={})),function(o){var r=new PIXI.TransformStatic,e=function(i){function e(e,t,r){var n=i.call(this,e,t,r)||this;return n.tileProj=new o.Projection2d(n.tileTransform),n.tileProj.reverseLocalOrder=!0,n.proj=new o.Projection2d(n.transform),n.pluginName="tilingSprite2d",n.uvRespectAnchor=!0,n}return __extends(e,i),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),o.container2dToLocal.call(this,e,t,r,n,i)},e.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateTransform(r),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},e}(PIXI.extras.TilingSprite);o.TilingSprite2d=e}(pixi_projection||(pixi_projection={})),function(e){var r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec3 vTextureCoord;\n\nvoid main(void)\n{\n gl_Position.xyw = projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0);\n\n vTextureCoord = uTransform * vec3(aTextureCoord, 1.0);\n}\n",l=new e.Matrix2d,f=PIXI.WRAP_MODES,h=PIXI.utils,t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new PIXI.Shader(e,r,"\nvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n vec2 coord = mod(vTextureCoord.xy / vTextureCoord.z - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n coord = (uMapCoord * vec3(coord, 1.0)).xy;\n coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n vec4 sample = texture2D(uSampler, coord);\n gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new PIXI.Shader(e,r,"\n\tvarying vec3 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n vec4 sample = texture2D(uSampler, vTextureCoord.xy / vTextureCoord.z);\n gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new PIXI.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},t.prototype.render=function(e){var t=this.renderer,r=this.quad;t.bindVao(r.vao);var n=r.vertices;n[0]=n[6]=e._width*-e.anchor.x,n[1]=n[3]=e._height*-e.anchor.y,n[2]=n[4]=e._width*(1-e.anchor.x),n[5]=n[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&((n=r.uvs)[0]=n[6]=-e.anchor.x,n[1]=n[3]=-e.anchor.y,n[2]=n[4]=1-e.anchor.x,n[5]=n[7]=1-e.anchor.y),r.upload();var i=e._texture,o=i.baseTexture,a=e.tileProj.world,s=e.uvTransform,u=o.isPowerOfTwo&&i.frame.width===o.width&&i.frame.height===o.height;u&&(o._glTextures[t.CONTEXT_UID]?u=o.wrapMode!==f.CLAMP:o.wrapMode===f.CLAMP&&(o.wrapMode=f.REPEAT));var c=u?this.simpleShader:this.shader;t.bindShader(c),l.identity(),l.scale(i.width,i.height),l.prepend(a),l.scale(1/e._width,1/e._height),l.invert(),u?l.prepend(s.mapCoord):(c.uniforms.uMapCoord=s.mapCoord.toArray(!0),c.uniforms.uClampFrame=s.uClampFrame,c.uniforms.uClampOffset=s.uClampOffset),c.uniforms.uTransform=l.toArray(!0),c.uniforms.uColor=h.premultiplyTintToRgba(e.tint,e.worldAlpha,c.uniforms.uColor,o.premultipliedAlpha),c.uniforms.translationMatrix=e.proj.world.toArray(!0),c.uniforms.uSampler=t.bindTexture(i),t.setBlendMode(h.correctBlendMode(e.blendMode,o.premultipliedAlpha)),r.vao.draw(this.renderer.gl.TRIANGLES,6,0)},t}(PIXI.extras.TilingSpriteRenderer);e.TilingSprite2dRenderer=t,PIXI.WebGLRenderer.registerPlugin("tilingSprite2d",t)}(pixi_projection||(pixi_projection={})),function(n){var e=function(){function e(e){var t=this;this.onContextChange=function(e){t.gl=e,t.renderer.maskManager.pushSpriteMask=r},(this.renderer=e).on("context",this.onContextChange)}return e.prototype.destroy=function(){this.renderer.off("context",this.onContextChange)},e}();function r(e,t){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new n.SpriteMaskFilter2d(t)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=t,e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),this.alphaMaskIndex++}n.ProjectionsManager=e,PIXI.WebGLRenderer.registerPlugin("projections",e)}(pixi_projection||(pixi_projection={})),function(n){var u=new n.Matrix2d,e=function(r){function s(e){var t=r.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n\tgl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n\tvTextureCoord = aTextureCoord;\n\tvMaskCoord = otherMatrix * vec3( aTextureCoord, 1.0);\n}\n","\nvarying vec3 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform sampler2D mask;\nuniform float alpha;\nuniform vec4 maskClamp;\n\nvoid main(void)\n{\n vec2 uv = vMaskCoord.xy / vMaskCoord.z;\n \n float clip = step(3.5,\n step(maskClamp.x, uv.x) +\n step(maskClamp.y, uv.y) +\n step(uv.x, maskClamp.z) +\n step(uv.y, maskClamp.w));\n\n vec4 original = texture2D(uSampler, vTextureCoord);\n vec4 masky = texture2D(mask, uv);\n \n original *= (masky.r * masky.a * alpha * clip);\n\n gl_FragColor = original;\n}\n")||this;return t.maskMatrix=new n.Matrix2d,e.renderable=!1,t.maskSprite=e,t}return __extends(s,r),s.prototype.apply=function(e,t,r,n,i){var o=this.maskSprite,a=this.maskSprite.texture;a.valid&&(a.transform||(a.transform=new PIXI.TextureMatrix(a,0)),a.transform.update(),this.uniforms.mask=o.texture,this.uniforms.otherMatrix=s.calculateSpriteMatrix(i,this.maskMatrix,o).prepend(a.transform.mapCoord),this.uniforms.alpha=o.worldAlpha,this.uniforms.maskClamp=a.transform.uClampFrame,e.applyFilter(this,t,r))},s.calculateSpriteMatrix=function(e,t,r){var n=r.proj,i=e.sourceFrame,o=e.renderTarget.size,a=n&&!n._affine?n.world.copyTo2dOr3d(u):u.copyFrom(r.transform.worldTransform),s=r.texture.orig;return t.set(o.width,0,0,o.height,i.x,i.y),a.invert(),t.setToMult(a,t),t.scaleAndTranslate(1/s.width,1/s.height,r.anchor.x,r.anchor.y),t},s}(PIXI.Filter);n.SpriteMaskFilter2d=e}(pixi_projection||(pixi_projection={})),function(o){o.container3dWorldTransform=function(){return this.proj.affine?this.transform.worldTransform:this.proj.world};var e=function(t){function e(){var e=t.call(this)||this;return e.proj=new o.Projection3d(e.transform),e}return __extends(e,t),e.prototype.isFrontFace=function(e){void 0===e&&(e=!1),e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var t=this.proj.world.mat4,r=t[0]*t[15]-t[3]*t[12],n=t[1]*t[15]-t[3]*t[13],i=t[4]*t[15]-t[7]*t[12];return 0<r*(t[5]*t[15]-t[7]*t[13])-i*n},e.prototype.getDepth=function(e){void 0===e&&(e=!1),e&&(this._recursivePostUpdateTransform(),this.displayObjectUpdateTransform());var t=this.proj.world.mat4;return t[14]/t[15]},e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),t&&(e=t.toGlobal(e,r,n)),n||this._recursivePostUpdateTransform(),i===o.TRANSFORM_STEP.ALL?(n||this.displayObjectUpdateTransform(),this.proj.affine?this.transform.worldTransform.applyInverse(r,r):this.proj.world.applyInverse(r,r)):(this.parent?r=this.parent.worldTransform.applyInverse(e,r):r.copy(e),i===o.TRANSFORM_STEP.NONE||(r=this.transform.localTransform.applyInverse(r,r),i===o.TRANSFORM_STEP.PROJ&&this.proj.cameraMode&&(r=this.proj.cameraMatrix.applyInverse(r,r))),r)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Container);o.Container3d=e,o.container3dToLocal=e.prototype.toLocal,o.container3dGetDepth=e.prototype.getDepth,o.container3dIsFrontFace=e.prototype.isFrontFace}(pixi_projection||(pixi_projection={})),function(e){var t=function(t){function e(){var e=t.call(this)||this;return e._far=0,e._near=0,e._focus=0,e._orthographic=!1,e.proj.cameraMode=!0,e.setPlanes(400,10,1e4,!1),e}return __extends(e,t),Object.defineProperty(e.prototype,"far",{get:function(){return this._far},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"near",{get:function(){return this._near},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focus",{get:function(){return this._focus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ortographic",{get:function(){return this._orthographic},enumerable:!0,configurable:!0}),e.prototype.setPlanes=function(e,t,r,n){void 0===t&&(t=10),void 0===r&&(r=1e4),void 0===n&&(n=!1),this._focus=e,this._near=t,this._far=r,this._orthographic=n;var i=this.proj,o=i.cameraMatrix.mat4;i._projID++,o[10]=1/(r-t),o[14]=(e-t)/(r-t),this._orthographic?o[11]=0:o[11]=1/e},e}(e.Container3d);e.Camera3d=t}(pixi_projection||(pixi_projection={})),function(e){var t=function(){function e(e,t,r){this._quatUpdateId=-1,this._quatDirtyId=0,this._sign=1,this._x=e||0,this._y=t||0,this._z=r||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pitch",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yaw",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"roll",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++)},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r){var n=e||0,i=t||0,o=r||0;this._x===n&&this._y===i&&this._z===o||(this._x=n,this._y=i,this._z=o,this._quatDirtyId++)},e.prototype.copy=function(e){var t=e.x,r=e.y,n=e.z;this._x===t&&this._y===r&&this._z===n||(this._x=t,this._y=r,this._z=n,this._quatDirtyId++)},e.prototype.clone=function(){return new e(this._x,this._y,this._z)},e.prototype.update=function(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),r=Math.cos(this._z/2),n=this._sign,i=n*Math.sin(this._x/2),o=n*Math.sin(this._y/2),a=n*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*t*r+e*o*a,s[1]=e*o*r-i*t*a,s[2]=e*t*a+i*o*r,s[3]=e*t*r-i*o*a,!0},e}();e.Euler=t}(pixi_projection||(pixi_projection={})),function(v){var t=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],e=function(){function g(e){this.floatArray=null,this._dirtyId=0,this._updateId=-1,this._mat4inv=null,this.cacheInverse=!1,this.mat4=new Float64Array(e||t)}return Object.defineProperty(g.prototype,"a",{get:function(){return this.mat4[0]/this.mat4[15]},set:function(e){this.mat4[0]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"b",{get:function(){return this.mat4[1]/this.mat4[15]},set:function(e){this.mat4[1]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"c",{get:function(){return this.mat4[4]/this.mat4[15]},set:function(e){this.mat4[4]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"d",{get:function(){return this.mat4[5]/this.mat4[15]},set:function(e){this.mat4[5]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"tx",{get:function(){return this.mat4[12]/this.mat4[15]},set:function(e){this.mat4[12]=e*this.mat4[15]},enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"ty",{get:function(){return this.mat4[13]/this.mat4[15]},set:function(e){this.mat4[13]=e*this.mat4[15]},enumerable:!0,configurable:!0}),g.prototype.set=function(e,t,r,n,i,o){var a=this.mat4;return a[0]=e,a[1]=t,a[2]=0,a[3]=0,a[4]=r,a[5]=n,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=1,a[11]=0,a[12]=i,a[13]=o,a[14]=0,a[15]=1,this},g.prototype.toArray=function(e,t){this.floatArray||(this.floatArray=new Float32Array(9));var r=t||this.floatArray,n=this.mat4;return e?(r[0]=n[0],r[1]=n[1],r[2]=n[3],r[3]=n[4],r[4]=n[5],r[5]=n[7],r[6]=n[12],r[7]=n[13]):(r[0]=n[0],r[1]=n[4],r[2]=n[12],r[3]=n[2],r[4]=n[6],r[5]=n[13],r[6]=n[3],r[7]=n[7]),r[8]=n[15],r},g.prototype.setToTranslation=function(e,t,r){var n=this.mat4;n[0]=1,n[1]=0,n[2]=0,n[3]=0,n[4]=0,n[5]=1,n[6]=0,n[7]=0,n[8]=0,n[9]=0,n[10]=1,n[11]=0,n[12]=e,n[13]=t,n[14]=r,n[15]=1},g.prototype.setToRotationTranslationScale=function(e,t,r,n,i,o,a){var s=this.mat4,u=e[0],c=e[1],l=e[2],f=e[3],h=u+u,d=c+c,p=l+l,m=u*h,g=u*d,v=u*p,y=c*d,_=c*p,b=l*p,x=f*h,w=f*d,T=f*p;return s[0]=(1-(y+b))*i,s[1]=(g+T)*i,s[2]=(v-w)*i,s[3]=0,s[4]=(g-T)*o,s[5]=(1-(m+b))*o,s[6]=(_+x)*o,s[7]=0,s[8]=(v+w)*a,s[9]=(_-x)*a,s[10]=(1-(m+y))*a,s[11]=0,s[12]=t,s[13]=r,s[14]=n,s[15]=1,s},g.prototype.apply=function(e,t){t=t||new PIXI.Point;var r=this.mat4,n=e.x,i=e.y,o=e.z,a=1/(r[3]*n+r[7]*i+r[11]*o+r[15]);return t.x=a*(r[0]*n+r[4]*i+r[8]*o+r[12]),t.y=a*(r[1]*n+r[5]*i+r[9]*o+r[13]),t.z=a*(r[2]*n+r[6]*i+r[10]*o+r[14]),t},g.prototype.translate=function(e,t,r){var n=this.mat4;return n[12]=n[0]*e+n[4]*t+n[8]*r+n[12],n[13]=n[1]*e+n[5]*t+n[9]*r+n[13],n[14]=n[2]*e+n[6]*t+n[10]*r+n[14],n[15]=n[3]*e+n[7]*t+n[11]*r+n[15],this},g.prototype.scale=function(e,t,r){var n=this.mat4;return n[0]*=e,n[1]*=e,n[2]*=e,n[3]*=e,n[4]*=t,n[5]*=t,n[6]*=t,n[7]*=t,void 0!==r&&(n[8]*=r,n[9]*=r,n[10]*=r,n[11]*=r),this},g.prototype.scaleAndTranslate=function(e,t,r,n,i,o){var a=this.mat4;a[0]=e*a[0]+n*a[3],a[1]=t*a[1]+i*a[3],a[2]=r*a[2]+o*a[3],a[4]=e*a[4]+n*a[7],a[5]=t*a[5]+i*a[7],a[6]=r*a[6]+o*a[7],a[8]=e*a[8]+n*a[11],a[9]=t*a[9]+i*a[11],a[10]=r*a[10]+o*a[11],a[12]=e*a[12]+n*a[15],a[13]=t*a[13]+i*a[15],a[14]=r*a[14]+o*a[15]},g.prototype.applyInverse=function(e,t){t=t||new v.Point3d,this._mat4inv||(this._mat4inv=new Float64Array(16));var r=this._mat4inv,n=this.mat4,i=e.x,o=e.y,a=e.z;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,g.glMatrixMat4Invert(r,n));var s=1/(r[3]*i+r[7]*o+r[11]*a+r[15]),u=s*(r[0]*i+r[4]*o+r[8]*a+r[12]),c=s*(r[1]*i+r[5]*o+r[9]*a+r[13]),l=s*(r[2]*i+r[6]*o+r[10]*a+r[14]);a+=1;var f=1/(r[3]*i+r[7]*o+r[11]*a+r[15]),h=f*(r[0]*i+r[4]*o+r[8]*a+r[12]),d=f*(r[1]*i+r[5]*o+r[9]*a+r[13]),p=f*(r[2]*i+r[6]*o+r[10]*a+r[14]);Math.abs(l-p)<1e-10&&t.set(NaN,NaN,0);var m=(0-l)/(p-l);return t.set((h-u)*m+u,(d-c)*m+c,0),t},g.prototype.invert=function(){return g.glMatrixMat4Invert(this.mat4,this.mat4),this},g.prototype.invertCopyTo=function(e){this._mat4inv||(this._mat4inv=new Float64Array(16));var t=this._mat4inv,r=this.mat4;this.cacheInverse&&this._updateId===this._dirtyId||(this._updateId=this._dirtyId,g.glMatrixMat4Invert(t,r)),e.mat4.set(t)},g.prototype.identity=function(){var e=this.mat4;return e[0]=1,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=1,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=1,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},g.prototype.clone=function(){return new g(this.mat4)},g.prototype.copyTo=function(e){var t=this.mat4,r=e.mat4;return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r[6]=t[6],r[7]=t[7],r[8]=t[8],e},g.prototype.copyTo2d=function(e){var t=this.mat4,r=e.mat3;return r[0]=t[0],r[1]=t[1],r[2]=t[3],r[3]=t[4],r[4]=t[5],r[5]=t[7],r[6]=t[12],r[7]=t[13],r[8]=t[15],e},g.prototype.copyTo2dOr3d=function(e){return e instanceof v.Matrix2d?this.copyTo2d(e):this.copyTo(e)},g.prototype.copy=function(e,t,r){var n=this.mat4,i=1/n[15],o=n[12]*i,a=n[13]*i;if(e.a=(n[0]-n[3]*o)*i,e.b=(n[1]-n[3]*a)*i,e.c=(n[4]-n[7]*o)*i,e.d=(n[5]-n[7]*a)*i,e.tx=o,e.ty=a,2<=t){var s=e.a*e.d-e.b*e.c;r||(s=Math.abs(s)),t===v.AFFINE.POINT?(s=0<s?1:-1,e.a=s,e.b=0,e.c=0,e.d=s):t===v.AFFINE.AXIS_X?(s/=Math.sqrt(e.b*e.b+e.d*e.d),e.c=0,e.d=s):t===v.AFFINE.AXIS_Y&&(s/=Math.sqrt(e.a*e.a+e.c*e.c),e.a=s,e.c=0)}},g.prototype.copyFrom=function(e){var t=this.mat4;return t[0]=e.a,t[1]=e.b,t[2]=0,t[3]=0,t[4]=e.c,t[5]=e.d,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=1,t[11]=0,t[12]=e.tx,t[13]=e.ty,t[14]=0,t[15]=1,this._dirtyId++,this},g.prototype.setToMultLegacy=function(e,t){var r=this.mat4,n=t.mat4,i=e.a,o=e.b,a=e.c,s=e.d,u=e.tx,c=e.ty,l=n[0],f=n[1],h=n[2],d=n[3];return r[0]=l*i+f*a+d*u,r[1]=l*o+f*s+d*c,r[2]=h,r[3]=d,l=n[4],f=n[5],h=n[6],d=n[7],r[4]=l*i+f*a+d*u,r[5]=l*o+f*s+d*c,r[6]=h,r[7]=d,l=n[8],f=n[9],h=n[10],d=n[11],r[8]=l*i+f*a+d*u,r[9]=l*o+f*s+d*c,r[10]=h,r[11]=d,l=n[12],f=n[13],h=n[14],d=n[15],r[12]=l*i+f*a+d*u,r[13]=l*o+f*s+d*c,r[14]=h,r[15]=d,this._dirtyId++,this},g.prototype.setToMultLegacy2=function(e,t){var r=this.mat4,n=e.mat4,i=n[0],o=n[1],a=n[2],s=n[3],u=n[4],c=n[5],l=n[6],f=n[7],h=t.a,d=t.b,p=t.c,m=t.d,g=t.tx,v=t.ty;return r[0]=h*i+d*u,r[1]=h*o+d*c,r[2]=h*a+d*l,r[3]=h*s+d*f,r[4]=p*i+m*u,r[5]=p*o+m*c,r[6]=p*a+m*l,r[7]=p*s+m*f,r[8]=n[8],r[9]=n[9],r[10]=n[10],r[11]=n[11],r[12]=g*i+v*u+n[12],r[13]=g*o+v*c+n[13],r[14]=g*a+v*l+n[14],r[15]=g*s+v*f+n[15],this._dirtyId++,this},g.prototype.setToMult=function(e,t){return g.glMatrixMat4Multiply(this.mat4,e.mat4,t.mat4),this._dirtyId++,this},g.prototype.prepend=function(e){e.mat4?this.setToMult(e,this):this.setToMultLegacy(e,this)},g.glMatrixMat4Invert=function(e,t){var r=t[0],n=t[1],i=t[2],o=t[3],a=t[4],s=t[5],u=t[6],c=t[7],l=t[8],f=t[9],h=t[10],d=t[11],p=t[12],m=t[13],g=t[14],v=t[15],y=r*s-n*a,_=r*u-i*a,b=r*c-o*a,x=n*u-i*s,w=n*c-o*s,T=i*c-o*u,S=l*m-f*p,M=l*g-h*p,P=l*v-d*p,E=f*g-h*m,C=f*v-d*m,k=h*v-d*g,A=y*k-_*C+b*E+x*P-w*M+T*S;return A?(A=1/A,e[0]=(s*k-u*C+c*E)*A,e[1]=(i*C-n*k-o*E)*A,e[2]=(m*T-g*w+v*x)*A,e[3]=(h*w-f*T-d*x)*A,e[4]=(u*P-a*k-c*M)*A,e[5]=(r*k-i*P+o*M)*A,e[6]=(g*b-p*T-v*_)*A,e[7]=(l*T-h*b+d*_)*A,e[8]=(a*C-s*P+c*S)*A,e[9]=(n*P-r*C-o*S)*A,e[10]=(p*w-m*b+v*y)*A,e[11]=(f*b-l*w-d*y)*A,e[12]=(s*M-a*E-u*S)*A,e[13]=(r*E-n*M+i*S)*A,e[14]=(m*_-p*x-g*y)*A,e[15]=(l*x-f*_+h*y)*A,e):null},g.glMatrixMat4Multiply=function(e,t,r){var n=t[0],i=t[1],o=t[2],a=t[3],s=t[4],u=t[5],c=t[6],l=t[7],f=t[8],h=t[9],d=t[10],p=t[11],m=t[12],g=t[13],v=t[14],y=t[15],_=r[0],b=r[1],x=r[2],w=r[3];return e[0]=_*n+b*s+x*f+w*m,e[1]=_*i+b*u+x*h+w*g,e[2]=_*o+b*c+x*d+w*v,e[3]=_*a+b*l+x*p+w*y,_=r[4],b=r[5],x=r[6],w=r[7],e[4]=_*n+b*s+x*f+w*m,e[5]=_*i+b*u+x*h+w*g,e[6]=_*o+b*c+x*d+w*v,e[7]=_*a+b*l+x*p+w*y,_=r[8],b=r[9],x=r[10],w=r[11],e[8]=_*n+b*s+x*f+w*m,e[9]=_*i+b*u+x*h+w*g,e[10]=_*o+b*c+x*d+w*v,e[11]=_*a+b*l+x*p+w*y,_=r[12],b=r[13],x=r[14],w=r[15],e[12]=_*n+b*s+x*f+w*m,e[13]=_*i+b*u+x*h+w*g,e[14]=_*o+b*c+x*d+w*v,e[15]=_*a+b*l+x*p+w*y,e},g.IDENTITY=new g,g.TEMP_MATRIX=new g,g}();v.Matrix3d=e}(pixi_projection||(pixi_projection={})),function(t){var e=function(){function e(e,t,r,n,i){this.cb=e,this.scope=t,this._quatUpdateId=-1,this._quatDirtyId=0,this._sign=1,this._x=r||0,this._y=n||0,this._z=i||0,this.quaternion=new Float64Array(4),this.quaternion[3]=1,this.update()}return Object.defineProperty(e.prototype,"x",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"y",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pitch",{get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"yaw",{get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"roll",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this._quatDirtyId++,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),e.prototype.set=function(e,t,r){var n=e||0,i=t||0,o=r||0;this._x===n&&this._y===i&&this._z===o||(this._x=n,this._y=i,this._z=o,this._quatDirtyId++,this.cb.call(this.scope))},e.prototype.copy=function(e){var t=e.x,r=e.y,n=e.z;this._x===t&&this._y===r&&this._z===n||(this._x=t,this._y=r,this._z=n,this._quatDirtyId++,this.cb.call(this.scope))},e.prototype.clone=function(){return new t.Euler(this._x,this._y,this._z)},e.prototype.update=function(){if(this._quatUpdateId===this._quatDirtyId)return!1;this._quatUpdateId=this._quatDirtyId;var e=Math.cos(this._x/2),t=Math.cos(this._y/2),r=Math.cos(this._z/2),n=this._sign,i=n*Math.sin(this._x/2),o=n*Math.sin(this._y/2),a=n*Math.sin(this._z/2),s=this.quaternion;return s[0]=i*t*r+e*o*a,s[1]=e*o*r-i*t*a,s[2]=e*t*a+i*o*r,s[3]=e*t*r-i*o*a,!0},e}();t.ObservableEuler=e}(pixi_projection||(pixi_projection={})),function(e){PIXI.Point.prototype.z=0,PIXI.Point.prototype.set=function(e,t,r){this.x=e||0,this.y=void 0===t?this.x:t||0,this.z=void 0===t?this.x:r||0},PIXI.Point.prototype.copy=function(e){this.set(e.x,e.y,e.z)},PIXI.ObservablePoint.prototype._z=0,PIXI.ObservablePoint.prototype.set=function(e,t,r){var n=e||0,i=void 0===t?n:t||0,o=void 0===t?n:r||0;this._x===n&&this._y===i&&this._z===o||(this._x=n,this._y=i,this._z=o,this.cb.call(this.scope))},Object.defineProperty(PIXI.ObservablePoint.prototype,"z",{get:function(){return this._z},set:function(e){this._z!==e&&(this._z=e,this.cb.call(this.scope))},enumerable:!0,configurable:!0}),PIXI.ObservablePoint.prototype.copy=function(e){this._x===e.x&&this._y===e.y&&this._z===e.z||(this._x=e.x,this._y=e.y,this._z=e.z,this.cb.call(this.scope))};var t=function(i){function e(e,t,r){var n=i.call(this,e,t)||this;return n.z=r,n}return __extends(e,i),e}(PIXI.Point);e.Point3d=t,PIXI.Point=t}(pixi_projection||(pixi_projection={})),function(i){var a=new i.Matrix3d,e=function(n){function e(e,t){var r=n.call(this,e,t)||this;return r.cameraMatrix=null,r._cameraMode=!1,r.position=new PIXI.ObservablePoint(r.onChange,r,0,0),r.scale=new PIXI.ObservablePoint(r.onChange,r,1,1),r.euler=new i.ObservableEuler(r.onChange,r,0,0,0),r.pivot=new PIXI.ObservablePoint(r.onChange,r,0,0),r.local=new i.Matrix3d,r.world=new i.Matrix3d,r.local.cacheInverse=!0,r.world.cacheInverse=!0,r.position._z=0,r.scale._z=1,r.pivot._z=0,r}return __extends(e,n),Object.defineProperty(e.prototype,"cameraMode",{get:function(){return this._cameraMode},set:function(e){this._cameraMode!==e&&(this._cameraMode=e,this.euler._sign=this._cameraMode?-1:1,this.euler._quatDirtyId++,e&&(this.cameraMatrix=new i.Matrix3d))},enumerable:!0,configurable:!0}),e.prototype.onChange=function(){this._projID++},e.prototype.clear=function(){this.cameraMatrix&&this.cameraMatrix.identity(),this.position.set(0,0,0),this.scale.set(1,1,1),this.euler.set(0,0,0),this.pivot.set(0,0,0),n.prototype.clear.call(this)},e.prototype.updateLocalTransform=function(e){if(0!==this._projID){var t=this.local,r=this.euler,n=this.position,i=this.scale,o=this.pivot;if(r.update(),!this.cameraMode)return t.setToRotationTranslationScale(r.quaternion,n._x,n._y,n._z,i._x,i._y,i._z),t.translate(-o._x,-o._y,-o._z),void t.setToMultLegacy(e,t);t.setToMultLegacy(e,this.cameraMatrix),t.translate(o._x,o._y,o._z),t.scale(1/i._x,1/i._y,1/i._z),a.setToRotationTranslationScale(r.quaternion,0,0,0,1,1,1),t.setToMult(t,a),t.translate(-n._x,-n._y,-n._z),this.local._dirtyId++}else this.local.copyFrom(e)},e}(i.LinearProjection);i.Projection3d=e}(pixi_projection||(pixi_projection={})),function(s){var e=function(a){function e(e,t,r,n,i){var o=a.call(this,e,t,r,n,i)||this;return o.proj=new s.Projection3d(o.transform),o.pluginName="mesh2d",o}return __extends(e,a),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=s.TRANSFORM_STEP.ALL),s.container3dToLocal.call(this,e,t,r,n,i)},e.prototype.isFrontFace=function(e){return s.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return s.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.mesh.Mesh);s.Mesh3d=e}(pixi_projection||(pixi_projection={})),function(o){var e=function(p){function e(e){var t=p.call(this,e)||this;return t.culledByFrustrum=!1,t.trimmedCulledByFrustrum=!1,t.proj=new o.Projection3d(t.transform),t.pluginName="sprite2d",t.vertexData=new Float32Array(12),t}return __extends(e,p),e.prototype._calculateBounds=function(){this.calculateVertices(),this.culledByFrustrum||(this.calculateTrimmedVertices(),this.trimmedCulledByFrustrum||this._bounds.addQuad(this.vertexTrimmedData))},e.prototype.calculateVertices=function(){if(this.proj._affine)return 8!=this.vertexData.length&&(this.vertexData=new Float32Array(8)),void p.prototype.calculateVertices.call(this);12!=this.vertexData.length&&(this.vertexData=new Float32Array(12));var e=this.transform._worldID,t=this._texture._updateID;if(this._transformID!==e||this._textureID!==t){this._transformID=e,this._textureID=t;var r=this._texture,n=this.proj.world.mat4,i=this.vertexData,o=r.trim,a=r.orig,s=this._anchor,u=0,c=0,l=0,f=0;l=o?(u=(c=o.x-s._x*a.width)+o.width,(f=o.y-s._y*a.height)+o.height):(u=(c=-s._x*a.width)+a.width,(f=-s._y*a.height)+a.height);var h,d=!1;i[0]=n[0]*c+n[4]*f+n[12],i[1]=n[1]*c+n[5]*f+n[13],h=n[2]*c+n[6]*f+n[14],i[2]=n[3]*c+n[7]*f+n[15],d=d||h<0,i[3]=n[0]*u+n[4]*f+n[12],i[4]=n[1]*u+n[5]*f+n[13],h=n[2]*u+n[6]*f+n[14],i[5]=n[3]*u+n[7]*f+n[15],d=d||h<0,i[6]=n[0]*u+n[4]*l+n[12],i[7]=n[1]*u+n[5]*l+n[13],h=n[2]*u+n[6]*l+n[14],i[8]=n[3]*u+n[7]*l+n[15],d=d||h<0,i[9]=n[0]*c+n[4]*l+n[12],i[10]=n[1]*c+n[5]*l+n[13],h=n[2]*c+n[6]*l+n[14],i[11]=n[3]*c+n[7]*l+n[15],d=d||h<0,this.culledByFrustrum=d}},e.prototype.calculateTrimmedVertices=function(){if(this.proj._affine)p.prototype.calculateTrimmedVertices.call(this);else{var e=this.transform._worldID,t=this._texture._updateID;if(this.vertexTrimmedData){if(this._transformTrimmedID===e&&this._textureTrimmedID===t)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=e,this._textureTrimmedID=t;var r=this._texture,n=this.vertexTrimmedData,i=r.orig,o=this._anchor,a=this.proj.world.mat4,s=-o._x*i.width,u=s+i.width,c=-o._y*i.height,l=c+i.height,f=!1,h=1/(a[3]*s+a[7]*c+a[15]);n[0]=h*(a[0]*s+a[4]*c+a[12]),n[1]=h*(a[1]*s+a[5]*c+a[13]);var d=a[2]*s+a[6]*c+a[14];f=f||d<0,h=1/(a[3]*u+a[7]*c+a[15]),n[2]=h*(a[0]*u+a[4]*c+a[12]),n[3]=h*(a[1]*u+a[5]*c+a[13]),d=a[2]*u+a[6]*c+a[14],f=f||d<0,h=1/(a[3]*u+a[7]*l+a[15]),n[4]=h*(a[0]*u+a[4]*l+a[12]),n[5]=h*(a[1]*u+a[5]*l+a[13]),d=a[2]*u+a[6]*l+a[14],f=f||d<0,h=1/(a[3]*s+a[7]*l+a[15]),n[6]=h*(a[0]*s+a[4]*l+a[12]),n[7]=h*(a[1]*s+a[5]*l+a[13]),d=a[2]*s+a[6]*l+a[14],f=f||d<0,this.trimmedCulledByFrustrum=f}},e.prototype._renderWebGL=function(e){this.calculateVertices(),this.culledByFrustrum||(e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},e.prototype.containsPoint=function(e){return!this.culledByFrustrum&&p.prototype.containsPoint.call(this,e)},Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),o.container3dToLocal.call(this,e,t,r,n,i)},e.prototype.isFrontFace=function(e){return o.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return o.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Sprite);o.Sprite3d=e}(pixi_projection||(pixi_projection={})),function(o){var e=function(i){function e(e,t,r){var n=i.call(this,e,t,r)||this;return n.proj=new o.Projection3d(n.transform),n.pluginName="sprite2d",n.vertexData=new Float32Array(12),n}return __extends(e,i),Object.defineProperty(e.prototype,"worldTransform",{get:function(){return this.proj.affine?this.transform.worldTransform:this.proj.world},enumerable:!0,configurable:!0}),e.prototype.toLocal=function(e,t,r,n,i){return void 0===i&&(i=o.TRANSFORM_STEP.ALL),o.container3dToLocal.call(this,e,t,r,n,i)},e.prototype.isFrontFace=function(e){return o.container3dIsFrontFace.call(this,e)},e.prototype.getDepth=function(e){return o.container3dGetDepth.call(this,e)},Object.defineProperty(e.prototype,"position3d",{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"scale3d",{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"euler",{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pivot3d",{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)},enumerable:!0,configurable:!0}),e}(PIXI.Text);(o.Text3d=e).prototype.calculateVertices=o.Sprite3d.prototype.calculateVertices,e.prototype.calculateTrimmedVertices=o.Sprite3d.prototype.calculateTrimmedVertices,e.prototype._calculateBounds=o.Sprite3d.prototype._calculateBounds,e.prototype.containsPoint=o.Sprite3d.prototype.containsPoint,e.prototype._renderWebGL=o.Sprite3d.prototype._renderWebGL}(pixi_projection||(pixi_projection={})),function(e){var t={worldTransform:{get:e.container3dWorldTransform,enumerable:!0,configurable:!0},position3d:{get:function(){return this.proj.position},set:function(e){this.proj.position.copy(e)}},scale3d:{get:function(){return this.proj.scale},set:function(e){this.proj.scale.copy(e)}},pivot3d:{get:function(){return this.proj.pivot},set:function(e){this.proj.pivot.copy(e)}},euler:{get:function(){return this.proj.euler},set:function(e){this.proj.euler.copy(e)}}};function r(){this.proj||(this.proj=new e.Projection3d(this.transform),this.toLocal=e.Container3d.prototype.toLocal,this.isFrontFace=e.Container3d.prototype.isFrontFace,this.getDepth=e.Container3d.prototype.getDepth,Object.defineProperties(this,t))}PIXI.Container.prototype.convertTo3d=r,PIXI.Sprite.prototype.convertTo3d=function(){this.proj||(this.calculateVertices=e.Sprite3d.prototype.calculateVertices,this.calculateTrimmedVertices=e.Sprite3d.prototype.calculateTrimmedVertices,this._calculateBounds=e.Sprite3d.prototype._calculateBounds,this.containsPoint=e.Sprite3d.prototype.containsPoint,this.pluginName="sprite2d",this.vertexData=new Float32Array(12),r.call(this))},PIXI.mesh.Mesh.prototype.convertTo3d=function(){this.proj||(this.pluginName="mesh2d",r.call(this))},PIXI.Container.prototype.convertSubtreeTo3d=function(){this.convertTo3d();for(var e=0;e<this.children.length;e++)this.children[e].convertSubtreeTo3d()}}(pixi_projection||(pixi_projection={}));var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(f,h,p){var m=function(e){h.call(this,e);var t,r,n=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!n.autoRemoveChildren,this.smoothChildTiming=!!n.smoothChildTiming,this._sortChildren=!0,this._onUpdate=n.onUpdate,n)t=n[r],d(t)&&-1!==t.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(t));d(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},e=p._internals,t=m._internals={},g=e.isSelector,d=e.isArray,v=e.lazyTweens,y=e.lazyRender,a=_gsScope._gsDefine.globals,_=function(e){var t,r={};for(t in e)r[t]=e[t];return r},b=function(e,t,r){var n,i,o=e.cycle;for(n in o)i=o[n],e[n]="function"==typeof i?i(r,t[r],t):i[r%i.length];delete e.cycle},o=t.pauseCallback=function(){},c=function(e,t,r,n){var i="immediateRender";return i in t||(t[i]=!(r&&!1===r[i]||n)),t},x=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,y={},_=isNaN(g),b=p.axis,x={center:.5,end:1}[g]||0;return function(e,t,r){var n,i,o,a,s,u,c,l,f,h=(r||p).length,d=y[h];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1/0])[0])){for(c=-1/0;c<(c=r[f++].getBoundingClientRect().left)&&f<h;);f--}for(d=y[h]=[],n=_?Math.min(f,h)*x-.5:g%f,i=_?h*x/f-.5:g/f|0,l=1/(c=0),u=0;u<h;u++)o=u%f-n,a=i-(u/f|0),d[u]=s=b?Math.abs("y"===b?a:o):Math.sqrt(o*o+a*a),c<s&&(c=s),s<l&&(l=s);d.max=c-l,d.min=l,d.v=h=p.amount||p.each*(h<f?h:b?"y"===b?h/f:f:Math.max(f,h/f))||0,d.b=h<0?v-h:v}return h=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(h):h)*d.v}},r=m.prototype=new h;return m.version="2.1.2",m.distribute=x,r.constructor=m,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(e,t,r,n){var i=r.repeat&&a.TweenMax||p;return t?this.add(new i(e,t,r),n):this.set(e,r,n)},r.from=function(e,t,r,n){return this.add((r.repeat&&a.TweenMax||p).from(e,t,c(0,r)),n)},r.fromTo=function(e,t,r,n,i){var o=n.repeat&&a.TweenMax||p;return n=c(0,n,r),t?this.add(o.fromTo(e,t,r,n),i):this.set(e,n,i)},r.staggerTo=function(e,t,r,n,i,o,a,s){var u,c,l=new m({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),f=x(r.stagger||n),h=r.startAt,d=r.cycle;for("string"==typeof e&&(e=p.selector(e)||e),g(e=e||[])&&(e=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r}(e)),c=0;c<e.length;c++)u=_(r),h&&(u.startAt=_(h),h.cycle&&b(u.startAt,e,c)),d&&(b(u,e,c),null!=u.duration&&(t=u.duration,delete u.duration)),l.to(e[c],t,u,f(c,e[c],e));return this.add(l,i)},r.staggerFrom=function(e,t,r,n,i,o,a,s){return r.runBackwards=!0,this.staggerTo(e,t,c(0,r),n,i,o,a,s)},r.staggerFromTo=function(e,t,r,n,i,o,a,s,u){return n.startAt=r,this.staggerTo(e,t,c(0,n,r),i,o,a,s,u)},r.call=function(e,t,r,n){return this.add(p.delayedCall(0,e,t,r),n)},r.set=function(e,t,r){return this.add(new p(e,0,c(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,n,i,o,a=new m(e),s=a._timeline;for(null==t&&(t=!0),s._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=s._time,i=s._first;i;)o=i._next,t&&i instanceof p&&i.target===i.vars.onComplete||((n=i._startTime-i._delay)<0&&(r=1),a.add(i,n)),i=o;return s.add(a,0),r&&a.totalDuration(),a},r.add=function(e,t,r,n){var i,o,a,s,u,c,l=this;if("number"!=typeof t&&(t=l._parseTimeOrLabel(t,0,!0,e)),!(e instanceof f)){if(e instanceof Array||e&&e.push&&d(e)){for(r=r||"normal",n=n||0,i=t,o=e.length,a=0;a<o;a++)d(s=e[a])&&(s=new m({tweens:s})),l.add(s,i),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?i=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),i+=n;return l._uncache(!0)}if("string"==typeof e)return l.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=p.delayedCall(0,e)}if(h.prototype.add.call(l,e,t),(e._time||!e._duration&&e._initted)&&(i=(l.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),i)))-e._totalTime)&&e.render(i,!1,!1)),(l._gc||l._time===l._duration)&&!l._paused&&l._duration<l.duration())for(c=(u=l).rawTime()>e._startTime;u._timeline;)c&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return l},r.remove=function(e){if(e instanceof f){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?f._rootFramesTimeline:f._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&d(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},r._remove=function(e,t){return h.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},r.insert=r.insertMultiple=function(e,t,r,n){return this.add(e,t||0,r,n)},r.appendMultiple=function(e,t,r,n){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,n)},r.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},r.addPause=function(e,t,r,n){var i=p.delayedCall(0,o,r,n||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},r.removeLabel=function(e){return delete this._labels[e],this},r.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},r._parseTimeOrLabel=function(e,t,r,n){var i,o;if(n instanceof f&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&d(n)))for(o=n.length;-1<--o;)n[o]instanceof f&&n[o].timeline===this&&this.remove(n[o]);if(i="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,r&&"number"==typeof e&&null==this._labels[t]?e-i:0,r);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=i);else{if(-1===(o=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=i+t:t:this._labels[e]+t;t=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=1<o?this._parseTimeOrLabel(e.substr(0,o-1),0,r):i}return Number(e)+t},r.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(e,t){return this.play(e,t)},r.gotoAndStop=function(e,t){return this.pause(e,t)},r.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var n,i,o,a,s,u,c,l,f=this,h=f._time,d=f._dirty?f.totalDuration():f._totalDuration,p=f._startTime,m=f._timeScale,g=f._paused;if(h!==f._time&&(e+=f._time-h),d-1e-8<=e&&0<=e)f._totalTime=f._time=d,f._reversed||f._hasPausedChild()||(i=!0,a="onComplete",s=!!f._timeline.autoRemoveChildren,0===f._duration&&(e<=0&&-1e-8<=e||f._rawPrevTime<0||1e-8===f._rawPrevTime)&&f._rawPrevTime!==e&&f._first&&(s=!0,1e-8<f._rawPrevTime&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(f._totalTime=f._time=0,-1e-8<e&&(e=0),(0!==h||0===f._duration&&1e-8!==f._rawPrevTime&&(0<f._rawPrevTime||e<0&&0<=f._rawPrevTime))&&(a="onReverseComplete",i=f._reversed),e<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(s=i=!0,a="onReverseComplete"):0<=f._rawPrevTime&&f._first&&(s=!0),f._rawPrevTime=e;else{if(f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,0===e&&i)for(n=f._first;n&&0===n._startTime;)n._duration||(i=!1),n=n._next;e=0,f._initted||(s=!0)}else{if(f._hasPause&&!f._forcingPlayhead&&!t){if(h<=e)for(n=f._first;n&&n._startTime<=e&&!u;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===f._rawPrevTime||(u=n),n=n._next;else for(n=f._last;n&&n._startTime>=e&&!u;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(u=n),n=n._prev;u&&(f._time=f._totalTime=e=u._startTime,l=f._startTime+e/f._timeScale)}f._totalTime=f._time=f._rawPrevTime=e}if(f._time!==h&&f._first||r||s||u){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._time!==h&&0<e&&(f._active=!0),0===h&&f.vars.onStart&&(0===f._time&&f._duration||t||f._callback("onStart")),h<=(c=f._time))for(n=f._first;n&&(o=n._next,c===f._time&&(!f._paused||g));)(n._active||n._startTime<=c&&!n._paused&&!n._gc)&&(u===n&&(f.pause(),f._pauseTime=l),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=o;else for(n=f._last;n&&(o=n._prev,c===f._time&&(!f._paused||g));){if(n._active||n._startTime<=h&&!n._paused&&!n._gc){if(u===n){for(u=n._prev;u&&u.endTime()>f._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,r),u=u._prev;u=null,f.pause(),f._pauseTime=l}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)}n=o}f._onUpdate&&(t||(v.length&&y(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&m===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&y(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[a]&&f._callback(a)))}},r._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},r.getChildren=function(e,t,r,n){n=n||-9999999999;for(var i=[],o=this._first,a=0;o;)o._startTime<n||(o instanceof p?!1!==t&&(i[a++]=o):(!1!==r&&(i[a++]=o),!1!==e&&(a=(i=i.concat(o.getChildren(!0,t,r))).length))),o=o._next;return i},r.getTweensOf=function(e,t){var r,n,i=this._gc,o=[],a=0;for(i&&this._enabled(!0,!0),n=(r=p.getTweensOf(e)).length;-1<--n;)(r[n].timeline===this||t&&this._contains(r[n]))&&(o[a++]=r[n]);return i&&this._enabled(!1,!0),o},r.recent=function(){return this._recent},r._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(e,t,r){r=r||0;for(var n,i=this._first,o=this._labels;i;)i._startTime>=r&&(i._startTime+=e),i=i._next;if(t)for(n in o)o[n]>=r&&(o[n]+=e);return this._uncache(!0)},r._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var r=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),n=r.length,i=!1;-1<--n;)r[n]._kill(e,t)&&(i=!0);return i},r.clear=function(e){var t=this.getChildren(!1,!0,!0),r=t.length;for(this._time=this._totalTime=0;-1<--r;)t[r]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return f.prototype.invalidate.call(this)},r._enabled=function(e,t){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return h.prototype._enabled.call(this,e,t)},r.totalTime=function(e,t,r){this._forcingPlayhead=!0;var n=f.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},r.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,r,n=0,i=this,o=i._last,a=999999999999;o;)t=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&i._sortChildren&&!o._paused&&!i._calculatingDuration?(i._calculatingDuration=1,i.add(o,o._startTime-o._delay),i._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(n-=o._startTime,i._timeline.smoothChildTiming&&(i._startTime+=o._startTime/i._timeScale,i._time-=o._startTime,i._totalTime-=o._startTime,i._rawPrevTime-=o._startTime),i.shiftChildren(-o._startTime,!1,-9999999999),a=0),n<(r=o._startTime+o._totalDuration/o._timeScale)&&(n=r),o=t;i._duration=i._totalDuration=n,i._dirty=!1}return this._totalDuration},r.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return f.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===f._rootFramesTimeline},r.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineLite};"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,s,e){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},C=1e-8,n=s._internals,k=n.lazyTweens,A=n.lazyRender,u=_gsScope._gsDefine.globals,c=new e(null,null,1,0),i=r.prototype=new t;return i.constructor=r,i.kill()._gc=!1,r.version="2.1.2",i.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},i.addCallback=function(e,t,r,n){return this.add(s.delayedCall(0,e,r,n),t)},i.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var r=this.getTweensOf(e,!1),n=r.length,i=this._parseTimeOrLabel(t);-1<--n;)r[n]._startTime===i&&r[n]._enabled(!1,!1);return this},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var r,n,i,o={ease:c,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=t.repeat&&u.TweenMax||s;for(n in t)o[n]=t[n];return o.time=this._parseTimeOrLabel(e),r=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,i=new a(this,r,o),o.onStart=function(){i.target.paused(!0),i.vars.time===i.target.time()||r!==i.duration()||i.isFromTo||i.duration(Math.abs(i.vars.time-i.target.time())/i.target._timeScale).render(i.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||i,t.onStartParams||[])},i},i.tweenFromTo=function(e,t,r){r=r||{},e=this._parseTimeOrLabel(e),r.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},r.immediateRender=!1!==r.immediateRender;var n=this.tweenTo(t,r);return n.isFromTo=1,n.duration(Math.abs(n.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var n,i,o,a,s,u,c,l,f,h=this,d=h._time,p=h._dirty?h.totalDuration():h._totalDuration,m=h._duration,g=h._totalTime,v=h._startTime,y=h._timeScale,_=h._rawPrevTime,b=h._paused,x=h._cycle;if(d!==h._time&&(e+=h._time-d),p-C<=e&&0<=e)h._locked||(h._totalTime=p,h._cycle=h._repeat),h._reversed||h._hasPausedChild()||(i=!0,a="onComplete",s=!!h._timeline.autoRemoveChildren,0===h._duration&&(e<=0&&-C<=e||_<0||_===C)&&_!==e&&h._first&&(s=!0,C<_&&(a="onReverseComplete"))),h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:C,h._yoyo&&1&h._cycle?h._time=e=0:e=(h._time=m)+1e-4;else if(e<C)if(h._locked||(h._totalTime=h._cycle=0),h._time=0,-C<e&&(e=0),(0!==d||0===m&&_!==C&&(0<_||e<0&&0<=_)&&!h._locked)&&(a="onReverseComplete",i=h._reversed),e<0)h._active=!1,h._timeline.autoRemoveChildren&&h._reversed?(s=i=!0,a="onReverseComplete"):0<=_&&h._first&&(s=!0),h._rawPrevTime=e;else{if(h._rawPrevTime=m||!t||e||h._rawPrevTime===e?e:C,0===e&&i)for(n=h._first;n&&0===n._startTime;)n._duration||(i=!1),n=n._next;e=0,h._initted||(s=!0)}else if(0===m&&_<0&&(s=!0),h._time=h._rawPrevTime=e,h._locked||(h._totalTime=e,0!==h._repeat&&(u=m+h._repeatDelay,h._cycle=h._totalTime/u>>0,h._cycle&&h._cycle===h._totalTime/u&&g<=e&&h._cycle--,h._time=h._totalTime-h._cycle*u,h._yoyo&&1&h._cycle&&(h._time=m-h._time),h._time>m?e=(h._time=m)+1e-4:h._time<0?h._time=e=0:e=h._time)),h._hasPause&&!h._forcingPlayhead&&!t){if(d<=(e=h._time)||h._repeat&&x!==h._cycle)for(n=h._first;n&&n._startTime<=e&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===h._rawPrevTime||(c=n),n=n._next;else for(n=h._last;n&&n._startTime>=e&&!c;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(c=n),n=n._prev;c&&(f=h._startTime+c._startTime/h._timeScale,c._startTime<m&&(h._time=h._rawPrevTime=e=c._startTime,h._totalTime=e+h._cycle*(h._totalDuration+h._repeatDelay)))}if(h._cycle!==x&&!h._locked){var w=h._yoyo&&0!=(1&x),T=w===(h._yoyo&&0!=(1&h._cycle)),S=h._totalTime,M=h._cycle,P=h._rawPrevTime,E=h._time;if(h._totalTime=x*m,h._cycle<x?w=!w:h._totalTime+=m,h._time=d,h._rawPrevTime=0===m?_-1e-4:_,h._cycle=x,h._locked=!0,d=w?0:m,h.render(d,t,0===m),t||h._gc||h.vars.onRepeat&&(h._cycle=M,h._locked=!1,h._callback("onRepeat")),d!==h._time)return;if(T&&(h._cycle=x,h._locked=!0,d=w?m+1e-4:-1e-4,h.render(d,!0,!1)),h._locked=!1,h._paused&&!b)return;h._time=E,h._totalTime=S,h._cycle=M,h._rawPrevTime=P}if(h._time!==d&&h._first||r||s||c){if(h._initted||(h._initted=!0),h._active||!h._paused&&h._totalTime!==g&&0<e&&(h._active=!0),0===g&&h.vars.onStart&&(0===h._totalTime&&h._totalDuration||t||h._callback("onStart")),d<=(l=h._time))for(n=h._first;n&&(o=n._next,l===h._time&&(!h._paused||b));)(n._active||n._startTime<=h._time&&!n._paused&&!n._gc)&&(c===n&&(h.pause(),h._pauseTime=f),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=o;else for(n=h._last;n&&(o=n._prev,l===h._time&&(!h._paused||b));){if(n._active||n._startTime<=d&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>h._time;)c.render(c._reversed?c.totalDuration()-(e-c._startTime)*c._timeScale:(e-c._startTime)*c._timeScale,t,r),c=c._prev;c=null,h.pause(),h._pauseTime=f}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)}n=o}h._onUpdate&&(t||(k.length&&A(),h._callback("onUpdate"))),a&&(h._locked||h._gc||v!==h._startTime&&y===h._timeScale||(0===h._time||p>=h.totalDuration())&&(i&&(k.length&&A(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[a]&&h._callback(a)))}else g!==h._totalTime&&h._onUpdate&&(t||h._callback("onUpdate"))},i.getActive=function(e,t,r){var n,i,o=[],a=this.getChildren(e||null==e,t||null==e,!!r),s=0,u=a.length;for(n=0;n<u;n++)(i=a[n]).isActive()&&(o[s++]=i);return o},i.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,r=this.getLabelsArray(),n=r.length;for(t=0;t<n;t++)if(r[t].time>e)return r[t].name;return null},i.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length;-1<--r;)if(t[r].time<e)return t[r].name;return null},i.getLabelsArray=function(){var e,t=[],r=0;for(e in this._labels)t[r++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},i.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},i.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},i.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},i.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},i.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,n=this._cycle,i=n*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&n?r-e+i:this._repeat?e+i:e,t)},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+C)},r},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(f,h,p){var m=function(e){h.call(this,e);var t,r,n=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!n.autoRemoveChildren,this.smoothChildTiming=!!n.smoothChildTiming,this._sortChildren=!0,this._onUpdate=n.onUpdate,n)t=n[r],d(t)&&-1!==t.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(t));d(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},e=p._internals,t=m._internals={},g=e.isSelector,d=e.isArray,v=e.lazyTweens,y=e.lazyRender,a=_gsScope._gsDefine.globals,_=function(e){var t,r={};for(t in e)r[t]=e[t];return r},b=function(e,t,r){var n,i,o=e.cycle;for(n in o)i=o[n],e[n]="function"==typeof i?i(r,t[r],t):i[r%i.length];delete e.cycle},o=t.pauseCallback=function(){},c=function(e,t,r,n){var i="immediateRender";return i in t||(t[i]=!(r&&!1===r[i]||n)),t},x=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,y={},_=isNaN(g),b=p.axis,x={center:.5,end:1}[g]||0;return function(e,t,r){var n,i,o,a,s,u,c,l,f,h=(r||p).length,d=y[h];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1/0])[0])){for(c=-1/0;c<(c=r[f++].getBoundingClientRect().left)&&f<h;);f--}for(d=y[h]=[],n=_?Math.min(f,h)*x-.5:g%f,i=_?h*x/f-.5:g/f|0,l=1/(c=0),u=0;u<h;u++)o=u%f-n,a=i-(u/f|0),d[u]=s=b?Math.abs("y"===b?a:o):Math.sqrt(o*o+a*a),c<s&&(c=s),s<l&&(l=s);d.max=c-l,d.min=l,d.v=h=p.amount||p.each*(h<f?h:b?"y"===b?h/f:f:Math.max(f,h/f))||0,d.b=h<0?v-h:v}return h=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(h):h)*d.v}},r=m.prototype=new h;return m.version="2.1.2",m.distribute=x,r.constructor=m,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(e,t,r,n){var i=r.repeat&&a.TweenMax||p;return t?this.add(new i(e,t,r),n):this.set(e,r,n)},r.from=function(e,t,r,n){return this.add((r.repeat&&a.TweenMax||p).from(e,t,c(0,r)),n)},r.fromTo=function(e,t,r,n,i){var o=n.repeat&&a.TweenMax||p;return n=c(0,n,r),t?this.add(o.fromTo(e,t,r,n),i):this.set(e,n,i)},r.staggerTo=function(e,t,r,n,i,o,a,s){var u,c,l=new m({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),f=x(r.stagger||n),h=r.startAt,d=r.cycle;for("string"==typeof e&&(e=p.selector(e)||e),g(e=e||[])&&(e=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r}(e)),c=0;c<e.length;c++)u=_(r),h&&(u.startAt=_(h),h.cycle&&b(u.startAt,e,c)),d&&(b(u,e,c),null!=u.duration&&(t=u.duration,delete u.duration)),l.to(e[c],t,u,f(c,e[c],e));return this.add(l,i)},r.staggerFrom=function(e,t,r,n,i,o,a,s){return r.runBackwards=!0,this.staggerTo(e,t,c(0,r),n,i,o,a,s)},r.staggerFromTo=function(e,t,r,n,i,o,a,s,u){return n.startAt=r,this.staggerTo(e,t,c(0,n,r),i,o,a,s,u)},r.call=function(e,t,r,n){return this.add(p.delayedCall(0,e,t,r),n)},r.set=function(e,t,r){return this.add(new p(e,0,c(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,n,i,o,a=new m(e),s=a._timeline;for(null==t&&(t=!0),s._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=s._time,i=s._first;i;)o=i._next,t&&i instanceof p&&i.target===i.vars.onComplete||((n=i._startTime-i._delay)<0&&(r=1),a.add(i,n)),i=o;return s.add(a,0),r&&a.totalDuration(),a},r.add=function(e,t,r,n){var i,o,a,s,u,c,l=this;if("number"!=typeof t&&(t=l._parseTimeOrLabel(t,0,!0,e)),!(e instanceof f)){if(e instanceof Array||e&&e.push&&d(e)){for(r=r||"normal",n=n||0,i=t,o=e.length,a=0;a<o;a++)d(s=e[a])&&(s=new m({tweens:s})),l.add(s,i),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?i=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),i+=n;return l._uncache(!0)}if("string"==typeof e)return l.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=p.delayedCall(0,e)}if(h.prototype.add.call(l,e,t),(e._time||!e._duration&&e._initted)&&(i=(l.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),i)))-e._totalTime)&&e.render(i,!1,!1)),(l._gc||l._time===l._duration)&&!l._paused&&l._duration<l.duration())for(c=(u=l).rawTime()>e._startTime;u._timeline;)c&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return l},r.remove=function(e){if(e instanceof f){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?f._rootFramesTimeline:f._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&d(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},r._remove=function(e,t){return h.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},r.insert=r.insertMultiple=function(e,t,r,n){return this.add(e,t||0,r,n)},r.appendMultiple=function(e,t,r,n){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,n)},r.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},r.addPause=function(e,t,r,n){var i=p.delayedCall(0,o,r,n||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},r.removeLabel=function(e){return delete this._labels[e],this},r.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},r._parseTimeOrLabel=function(e,t,r,n){var i,o;if(n instanceof f&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&d(n)))for(o=n.length;-1<--o;)n[o]instanceof f&&n[o].timeline===this&&this.remove(n[o]);if(i="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,r&&"number"==typeof e&&null==this._labels[t]?e-i:0,r);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=i);else{if(-1===(o=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=i+t:t:this._labels[e]+t;t=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=1<o?this._parseTimeOrLabel(e.substr(0,o-1),0,r):i}return Number(e)+t},r.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(e,t){return this.play(e,t)},r.gotoAndStop=function(e,t){return this.pause(e,t)},r.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var n,i,o,a,s,u,c,l,f=this,h=f._time,d=f._dirty?f.totalDuration():f._totalDuration,p=f._startTime,m=f._timeScale,g=f._paused;if(h!==f._time&&(e+=f._time-h),d-1e-8<=e&&0<=e)f._totalTime=f._time=d,f._reversed||f._hasPausedChild()||(i=!0,a="onComplete",s=!!f._timeline.autoRemoveChildren,0===f._duration&&(e<=0&&-1e-8<=e||f._rawPrevTime<0||1e-8===f._rawPrevTime)&&f._rawPrevTime!==e&&f._first&&(s=!0,1e-8<f._rawPrevTime&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(f._totalTime=f._time=0,-1e-8<e&&(e=0),(0!==h||0===f._duration&&1e-8!==f._rawPrevTime&&(0<f._rawPrevTime||e<0&&0<=f._rawPrevTime))&&(a="onReverseComplete",i=f._reversed),e<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(s=i=!0,a="onReverseComplete"):0<=f._rawPrevTime&&f._first&&(s=!0),f._rawPrevTime=e;else{if(f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,0===e&&i)for(n=f._first;n&&0===n._startTime;)n._duration||(i=!1),n=n._next;e=0,f._initted||(s=!0)}else{if(f._hasPause&&!f._forcingPlayhead&&!t){if(h<=e)for(n=f._first;n&&n._startTime<=e&&!u;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===f._rawPrevTime||(u=n),n=n._next;else for(n=f._last;n&&n._startTime>=e&&!u;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(u=n),n=n._prev;u&&(f._time=f._totalTime=e=u._startTime,l=f._startTime+e/f._timeScale)}f._totalTime=f._time=f._rawPrevTime=e}if(f._time!==h&&f._first||r||s||u){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._time!==h&&0<e&&(f._active=!0),0===h&&f.vars.onStart&&(0===f._time&&f._duration||t||f._callback("onStart")),h<=(c=f._time))for(n=f._first;n&&(o=n._next,c===f._time&&(!f._paused||g));)(n._active||n._startTime<=c&&!n._paused&&!n._gc)&&(u===n&&(f.pause(),f._pauseTime=l),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=o;else for(n=f._last;n&&(o=n._prev,c===f._time&&(!f._paused||g));){if(n._active||n._startTime<=h&&!n._paused&&!n._gc){if(u===n){for(u=n._prev;u&&u.endTime()>f._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,r),u=u._prev;u=null,f.pause(),f._pauseTime=l}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)}n=o}f._onUpdate&&(t||(v.length&&y(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&m===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&y(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[a]&&f._callback(a)))}},r._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},r.getChildren=function(e,t,r,n){n=n||-9999999999;for(var i=[],o=this._first,a=0;o;)o._startTime<n||(o instanceof p?!1!==t&&(i[a++]=o):(!1!==r&&(i[a++]=o),!1!==e&&(a=(i=i.concat(o.getChildren(!0,t,r))).length))),o=o._next;return i},r.getTweensOf=function(e,t){var r,n,i=this._gc,o=[],a=0;for(i&&this._enabled(!0,!0),n=(r=p.getTweensOf(e)).length;-1<--n;)(r[n].timeline===this||t&&this._contains(r[n]))&&(o[a++]=r[n]);return i&&this._enabled(!1,!0),o},r.recent=function(){return this._recent},r._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(e,t,r){r=r||0;for(var n,i=this._first,o=this._labels;i;)i._startTime>=r&&(i._startTime+=e),i=i._next;if(t)for(n in o)o[n]>=r&&(o[n]+=e);return this._uncache(!0)},r._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var r=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),n=r.length,i=!1;-1<--n;)r[n]._kill(e,t)&&(i=!0);return i},r.clear=function(e){var t=this.getChildren(!1,!0,!0),r=t.length;for(this._time=this._totalTime=0;-1<--r;)t[r]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return f.prototype.invalidate.call(this)},r._enabled=function(e,t){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return h.prototype._enabled.call(this,e,t)},r.totalTime=function(e,t,r){this._forcingPlayhead=!0;var n=f.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},r.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,r,n=0,i=this,o=i._last,a=999999999999;o;)t=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&i._sortChildren&&!o._paused&&!i._calculatingDuration?(i._calculatingDuration=1,i.add(o,o._startTime-o._delay),i._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(n-=o._startTime,i._timeline.smoothChildTiming&&(i._startTime+=o._startTime/i._timeScale,i._time-=o._startTime,i._totalTime-=o._startTime,i._rawPrevTime-=o._startTime),i.shiftChildren(-o._startTime,!1,-9999999999),a=0),n<(r=o._startTime+o._totalDuration/o._timeScale)&&(n=r),o=t;i._duration=i._totalDuration=n,i._dirty=!1}return this._totalDuration},r.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return f.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===f._rootFramesTimeline},r.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).TimelineMax};"undefined"!=typeof module&&module.exports?(require("./TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}(),function(h,d){"use strict";var p={},n=h.document,m=h.GreenSockGlobals=h.GreenSockGlobals||h,e=m[d];if(e)return"undefined"!=typeof module&&module.exports&&(module.exports=e);var t,r,i,g,v,o,a,y=function(e){var t,r=e.split("."),n=m;for(t=0;t<r.length;t++)n[r[t]]=n=n[r[t]]||{};return n},f=y("com.greensock"),_=1e-8,u=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r},b=function(){},x=(o=Object.prototype.toString,a=o.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&o.call(e)===a)}),w={},T=function(s,u,c,l){this.sc=w[s]?w[s].sc:[],(w[s]=this).gsClass=null,this.func=c;var f=[];this.check=function(e){for(var t,r,n,i,o=u.length,a=o;-1<--o;)(t=w[u[o]]||new T(u[o],[])).gsClass?(f[o]=t.gsClass,a--):e&&t.sc.push(this);if(0===a&&c){if(n=(r=("com.greensock."+s).split(".")).pop(),i=y(r.join("."))[n]=this.gsClass=c.apply(c,f),l)if(m[n]=p[n]=i,"undefined"!=typeof module&&module.exports)if(s===d)for(o in module.exports=p[d]=i,p)i[o]=p[o];else p[d]&&(p[d][n]=i);else"function"==typeof define&&define.amd&&define((h.GreenSockAMDPath?h.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return i});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)},s=h._gsDefine=function(e,t,r,n){return new T(e,t,r,n)},S=f._class=function(e,t,r){return t=t||function(){},s(e,[],function(){return t},r),t};s.globals=m;var c=[0,0,1,1],M=S("easing.Ease",function(e,t,r,n){this._func=e,this._type=r||0,this._power=n||0,this._params=t?c.concat(t):c},!0),P=M.map={},l=M.register=function(e,t,r,n){for(var i,o,a,s,u=t.split(","),c=u.length,l=(r||"easeIn,easeOut,easeInOut").split(",");-1<--c;)for(o=u[c],i=n?S("easing."+o,null,!0):f.easing[o]||{},a=l.length;-1<--a;)s=l[a],P[o+"."+s]=P[s+o]=i[s]=e.getRatio?e:e[s]||new e};for((i=M.prototype)._calcEnd=!1,i.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,r=this._power,n=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===r?n*=n:2===r?n*=n*n:3===r?n*=n*n*n:4===r&&(n*=n*n*n*n),1===t?1-n:2===t?n:e<.5?n/2:1-n/2},r=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--r;)i=t[r]+",Power"+r,l(new M(null,null,1,r),i,"easeOut",!0),l(new M(null,null,2,r),i,"easeIn"+(0===r?",easeNone":"")),l(new M(null,null,3,r),i,"easeInOut");P.linear=f.easing.Linear.easeIn,P.swing=f.easing.Quad.easeInOut;var E=S("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(i=E.prototype).addEventListener=function(e,t,r,n,i){i=i||0;var o,a,s=this._listeners[e],u=0;for(this!==g||v||g.wake(),null==s&&(this._listeners[e]=s=[]),a=s.length;-1<--a;)(o=s[a]).c===t&&o.s===r?s.splice(a,1):0===u&&o.pr<i&&(u=a+1);s.splice(u,0,{c:t,s:r,up:n,pr:i})},i.removeEventListener=function(e,t){var r,n=this._listeners[e];if(n)for(r=n.length;-1<--r;)if(n[r].c===t)return void n.splice(r,1)},i.dispatchEvent=function(e){var t,r,n,i=this._listeners[e];if(i)for(1<(t=i.length)&&(i=i.slice(0)),r=this._eventTarget;-1<--t;)(n=i[t])&&(n.up?n.c.call(n.s||r,{type:e,target:r}):n.c.call(n.s||r))};var C=h.requestAnimationFrame,k=h.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},O=A();for(r=(t=["ms","moz","webkit","o"]).length;-1<--r&&!C;)C=h[t[r]+"RequestAnimationFrame"],k=h[t[r]+"CancelAnimationFrame"]||h[t[r]+"CancelRequestAnimationFrame"];S("Ticker",function(e,t){var i,o,a,s,u,c=this,l=A(),r=!(!1===t||!C)&&"auto",f=500,h=33,d=function(e){var t,r,n=A()-O;f<n&&(l+=n-h),O+=n,c.time=(O-l)/1e3,t=c.time-u,(!i||0<t||!0===e)&&(c.frame++,u+=t+(s<=t?.004:s-t),r=!0),!0!==e&&(a=o(d)),r&&c.dispatchEvent("tick")};E.call(c),c.time=c.frame=0,c.tick=function(){d(!0)},c.lagSmoothing=function(e,t){if(!arguments.length)return f<1e8;f=e||1e8,h=Math.min(t,f,0)},c.sleep=function(){null!=a&&(r&&k?k(a):clearTimeout(a),o=b,a=null,c===g&&(v=!1))},c.wake=function(e){null!==a?c.sleep():e?l+=-O+(O=A()):10<c.frame&&(O=A()-f+5),o=0===i?b:r&&C?C:function(e){return setTimeout(e,1e3*(u-c.time)+1|0)},c===g&&(v=!0),d(2)},c.fps=function(e){if(!arguments.length)return i;s=1/((i=e)||60),u=this.time+s,c.wake()},c.useRAF=function(e){if(!arguments.length)return r;c.sleep(),r=e,c.fps(i)},c.fps(e),setTimeout(function(){"auto"===r&&c.frame<5&&"hidden"!==(n||{}).visibilityState&&c.useRAF(!1)},1500)}),(i=f.Ticker.prototype=new f.events.EventDispatcher).constructor=f.Ticker;var R=S("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!!t.immediateRender,this.data=t.data,this._reversed=!!t.reversed,Q){v||g.wake();var r=this.vars.useFrames?Z:Q;r.add(this,r._time),this.vars.paused&&this.paused(!0)}});g=R.ticker=new f.Ticker,(i=R.prototype)._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var I=function(){v&&2e3<A()-O&&("hidden"!==(n||{}).visibilityState||!g.lagSmoothing())&&g.wake();var e=setTimeout(I,2e3);e.unref&&e.unref()};I(),i.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},i.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},i.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},i.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},i.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},i.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},i.render=function(e,t,r){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},i.isActive=function(){var e,t=this._timeline,r=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<r+this.totalDuration()/this._timeScale-_},i._enabled=function(e,t){return v||g.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},i._kill=function(e,t){return this._enabled(!1,!1)},i.kill=function(e,t){return this._kill(e,t),this},i._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},i._swapSelfInParams=function(e){for(var t=e.length,r=e.concat();-1<--t;)"{self}"===e[t]&&(r[t]=this);return r},i._callback=function(e){var t=this.vars,r=t[e],n=t[e+"Params"],i=t[e+"Scope"]||t.callbackScope||this;switch(n?n.length:0){case 0:r.call(i);break;case 1:r.call(i,n[0]);break;case 2:r.call(i,n[0],n[1]);break;default:r.apply(i,n)}},i.eventCallback=function(e,t,r,n){if("on"===(e||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[e];null==t?delete i[e]:(i[e]=t,i[e+"Params"]=x(r)&&-1!==r.join("").indexOf("{self}")?this._swapSelfInParams(r):r,i[e+"Scope"]=n),"onUpdate"===e&&(this._onUpdate=t)}return this},i.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},i.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},i.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},i.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},i.totalTime=function(e,t,r){if(v||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!r&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,i=this._timeline;if(n<e&&!r&&(e=n),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?n-e:e)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(j.length&&ee(),this.render(e,t,!1),j.length&&ee())}return this},i.progress=i.totalProgress=function(e,t){var r=this.duration();return arguments.length?this.totalTime(r*e,t):r?this._time/r:this.ratio},i.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},i.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,r;for(e=e||_,this._timeline&&this._timeline.smoothChildTiming&&(r=(t=this._pauseTime)||0===t?t:this._timeline.totalTime(),this._startTime=r-(r-this._startTime)*this._timeScale/e),this._timeScale=e,r=this.timeline;r&&r.timeline;)r._dirty=!0,r.totalDuration(),r=r.timeline;return this},i.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(e){if(!arguments.length)return this._paused;var t,r,n=this._timeline;return e!=this._paused&&n&&(v||e||g.wake(),r=(t=n.rawTime())-this._pauseTime,!e&&n.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!=r&&this._initted&&this.duration()&&(t=n.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var D=S("core.SimpleTimeline",function(e){R.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(i=D.prototype=new R).constructor=D,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(e,t,r,n){var i,o;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=this.rawTime()-(e._timeline.rawTime()-e._pauseTime)),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last,this._sortChildren)for(o=e._startTime;i&&i._startTime>o;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},i._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(e,t,r){var n,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;i;)n=i._next,(i._active||e>=i._startTime&&!i._paused&&!i._gc)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=n},i.rawTime=function(){return v||g.wake(),this._totalTime};var L=S("TweenLite",function(e,t,r){if(R.call(this,t,r),this.render=L.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:L.selector(e)||e;var n,i,o,a=e.jquery||e.length&&e!==h&&e[0]&&(e[0]===h||e[0].nodeType&&e[0].style&&!e.nodeType),s=this.vars.overwrite;if(this._overwrite=s=null==s?J[L.defaultOverwrite]:"number"==typeof s?s>>0:J[s],(a||e instanceof Array||e.push&&x(e))&&"number"!=typeof e[0])for(this._targets=o=u(e),this._propLookup=[],this._siblings=[],n=0;n<o.length;n++)(i=o[n])?"string"!=typeof i?i.length&&i!==h&&i[0]&&(i[0]===h||i[0].nodeType&&i[0].style&&!i.nodeType)?(o.splice(n--,1),this._targets=o=o.concat(u(i))):(this._siblings[n]=te(i,this,!1),1===s&&1<this._siblings[n].length&&ne(i,this,null,1,this._siblings[n])):"string"==typeof(i=o[n--]=L.selector(i))&&o.splice(n+1,1):o.splice(n--,1);else this._propLookup={},this._siblings=te(e,this,!1),1===s&&1<this._siblings.length&&ne(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0),N=function(e){return e&&e.length&&e!==h&&e[0]&&(e[0]===h||e[0].nodeType&&e[0].style&&!e.nodeType)};(i=L.prototype=new R).constructor=L,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,L.version="2.1.2",L.defaultEase=i._ease=new M(null,null,1,1),L.defaultOverwrite="auto",L.ticker=g,L.autoSleep=120,L.lagSmoothing=function(e,t){g.lagSmoothing(e,t)},L.selector=h.$||h.jQuery||function(e){var t=h.$||h.jQuery;return t?(L.selector=t)(e):(n||(n=h.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var j=[],F={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,U=function(e){for(var t,r=this._firstPT;r;)t=r.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:r.c*e+r.s,r.m?t=r.m.call(this._tween,t,this._target||r.t,this._tween):t<1e-6&&-1e-6<t&&!r.blob&&(t=0),r.f?r.fp?r.t[r.p](r.fp,t):r.t[r.p](t):r.t[r.p]=t,r=r._next},X=function(e){return(1e3*e|0)/1e3+""},q=function(e,t,r,n){var i,o,a,s,u,c,l,f=[],h=0,d="",p=0;for(f.start=e,f.end=t,e=f[0]=e+"",t=f[1]=t+"",r&&(r(f),e=f[0],t=f[1]),f.length=0,i=e.match(B)||[],o=t.match(B)||[],n&&(n._next=null,n.blob=1,f._firstPT=f._applyPT=n),u=o.length,s=0;s<u;s++)l=o[s],d+=(c=t.substr(h,t.indexOf(l,h)-h))||!s?c:",",h+=c.length,p?p=(p+1)%5:"rgba("===c.substr(-5)&&(p=1),l===i[s]||i.length<=s?d+=l:(d&&(f.push(d),d=""),a=parseFloat(i[s]),f.push(a),f._firstPT={_next:f._firstPT,t:f,p:f.length-1,s:a,c:("="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*parseFloat(l.substr(2)):parseFloat(l)-a)||0,f:0,m:p&&p<4?Math.round:X}),h+=l.length;return(d+=t.substr(h))&&f.push(d),f.setRatio=U,z.test(t)&&(f.end=null),f},H=function(e,t,r,n,i,o,a,s,u){"function"==typeof n&&(n=n(u||0,e));var c=typeof e[t],l="function"!=c?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),f="get"!==r?r:l?a?e[l](a):e[l]():e[t],h="string"==typeof n&&"="===n.charAt(1),d={t:e,p:t,s:f,f:"function"==c,pg:0,n:i||t,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:h?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-f||0};if(("number"!=typeof f||"number"!=typeof n&&!h)&&(a||isNaN(f)||!h&&isNaN(n)||"boolean"==typeof f||"boolean"==typeof n?(d.fp=a,d={t:q(f,h?parseFloat(d.s)+d.c+(d.s+"").replace(/[0-9\-\.]/g,""):n,s||L.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:i||t,pr:0,m:0}):(d.s=parseFloat(f),h||(d.c=parseFloat(n)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d},Y=L._internals={isArray:x,isSelector:N,lazyTweens:j,blobDif:q},G=L._plugins={},W=Y.tweenLookup={},V=0,K=Y.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},J={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=R._rootFramesTimeline=new D,Q=R._rootTimeline=new D,$=30,ee=Y.lazyRender=function(){var e,t,r=j.length;for(F={},e=0;e<r;e++)(t=j[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);j.length=0};Q._startTime=g.time,Z._startTime=g.frame,Q._active=Z._active=!0,setTimeout(ee,1),R._updateRoot=L.render=function(){var e,t,r;if(j.length&&ee(),Q.render((g.time-Q._startTime)*Q._timeScale,!1,!1),Z.render((g.frame-Z._startTime)*Z._timeScale,!1,!1),j.length&&ee(),g.frame>=$){for(r in $=g.frame+(parseInt(L.autoSleep,10)||120),W){for(e=(t=W[r].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete W[r]}if((!(r=Q._first)||r._paused)&&L.autoSleep&&!Z._first&&1===g._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||g.sleep()}}},g.addEventListener("tick",R._updateRoot);var te=function(e,t,r){var n,i,o=e._gsTweenID;if(W[o||(e._gsTweenID=o="t"+V++)]||(W[o]={target:e,tweens:[]}),t&&((n=W[o].tweens)[i=n.length]=t,r))for(;-1<--i;)n[i]===t&&n.splice(i,1);return W[o].tweens},re=function(e,t,r,n){var i,o,a=e.vars.onOverwrite;return a&&(i=a(e,t,r,n)),(a=L.onOverwrite)&&(o=a(e,t,r,n)),!1!==i&&!1!==o},ne=function(e,t,r,n,i){var o,a,s,u;if(1===n||4<=n){for(u=i.length,o=0;o<u;o++)if((s=i[o])!==t)s._gc||s._kill(null,e,t)&&(a=!0);else if(5===n)break;return a}var c,l=t._startTime+_,f=[],h=0,d=0===t._duration;for(o=i.length;-1<--o;)(s=i[o])===t||s._gc||s._paused||(s._timeline!==t._timeline?(c=c||ie(t,0,d),0===ie(s,c,d)&&(f[h++]=s)):s._startTime<=l&&s._startTime+s.totalDuration()/s._timeScale>l&&((d||!s._initted)&&l-s._startTime<=2e-8||(f[h++]=s)));for(o=h;-1<--o;)if(u=(s=f[o])._firstPT,2===n&&s._kill(r,e,t)&&(a=!0),2!==n||!s._firstPT&&s._initted&&u){if(2!==n&&!re(s,t))continue;s._enabled(!1,!1)&&(a=!0)}return a},ie=function(e,t,r){for(var n=e._timeline,i=n._timeScale,o=e._startTime;n._timeline;){if(o+=n._startTime,i*=n._timeScale,n._paused)return-100;n=n._timeline}return t<(o/=i)?o-t:r&&o===t||!e._initted&&o-t<2e-8?_:(o+=e.totalDuration()/e._timeScale/i)>t+_?0:o-t-_};i._init=function(){var e,t,r,n,i,o,a=this.vars,s=this._overwrittenProps,u=this._duration,c=!!a.immediateRender,l=a.ease,f=this._startAt;if(a.startAt){for(n in f&&(f.render(-1,!0),f.kill()),i={},a.startAt)i[n]=a.startAt[n];if(i.data="isStart",i.overwrite=!1,i.immediateRender=!0,i.lazy=c&&!1!==a.lazy,i.startAt=i.delay=null,i.onUpdate=a.onUpdate,i.onUpdateParams=a.onUpdateParams,i.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=L.to(this.target||{},0,i),c)if(0<this._time)this._startAt=null;else if(0!==u)return}else if(a.runBackwards&&0!==u)if(f)f.render(-1,!0),f.kill(),this._startAt=null;else{for(n in 0!==this._time&&(c=!1),r={},a)K[n]&&"autoCSS"!==n||(r[n]=a[n]);if(r.overwrite=0,r.data="isFromStart",r.lazy=c&&!1!==a.lazy,r.immediateRender=c,this._startAt=L.to(this.target,0,r),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=l=l?l instanceof M?l:"function"==typeof l?new M(l,a.easeParams):P[l]||L.defaultEase:L.defaultEase,a.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,e=0;e<o;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(t&&L._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=a.onUpdate,this._initted=!0},i._initProps=function(e,t,r,n,i){var o,a,s,u,c,l;if(null==e)return!1;for(o in F[e._gsTweenID]&&ee(),this.vars.css||e.style&&e!==h&&e.nodeType&&G.css&&!1!==this.vars.autoCSS&&function(e,t){var r,n={};for(r in e)K[r]||r in t&&"transform"!==r&&"x"!==r&&"y"!==r&&"width"!==r&&"height"!==r&&"className"!==r&&"border"!==r||!(!G[r]||G[r]&&G[r]._autoCSS)||(n[r]=e[r],delete e[r]);e.css=n}(this.vars,e),this.vars)if(l=this.vars[o],K[o])l&&(l instanceof Array||l.push&&x(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[o]=l=this._swapSelfInParams(l,this));else if(G[o]&&(u=new G[o])._onInitTween(e,this.vars[o],this,i)){for(this._firstPT=c={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:u._priority,m:0},a=u._overwriteProps.length;-1<--a;)t[u._overwriteProps[a]]=this._firstPT;(u._priority||u._onInitAllProps)&&(s=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else t[o]=H.call(this,e,o,"get",l,o,0,null,this.vars.stringFilter,i);return n&&this._kill(n,e)?this._initProps(e,t,r,n,i):1<this._overwrite&&this._firstPT&&1<r.length&&ne(e,this,t,this._overwrite,r)?(this._kill(t,e),this._initProps(e,t,r,n,i)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[e._gsTweenID]=!0),s)},i.render=function(e,t,r){var n,i,o,a,s=this,u=s._time,c=s._duration,l=s._rawPrevTime;if(c-_<=e&&0<=e)s._totalTime=s._time=c,s.ratio=s._ease._calcEnd?s._ease.getRatio(1):1,s._reversed||(n=!0,i="onComplete",r=r||s._timeline.autoRemoveChildren),0===c&&(s._initted||!s.vars.lazy||r)&&(s._startTime===s._timeline._duration&&(e=0),(l<0||e<=0&&-_<=e||l===_&&"isPause"!==s.data)&&l!==e&&(r=!0,_<l&&(i="onReverseComplete")),s._rawPrevTime=a=!t||e||l===e?e:_);else if(e<_)s._totalTime=s._time=0,s.ratio=s._ease._calcEnd?s._ease.getRatio(0):0,(0!==u||0===c&&0<l)&&(i="onReverseComplete",n=s._reversed),-_<e?e=0:e<0&&(s._active=!1,0===c&&(s._initted||!s.vars.lazy||r)&&(0<=l&&(l!==_||"isPause"!==s.data)&&(r=!0),s._rawPrevTime=a=!t||e||l===e?e:_)),(!s._initted||s._startAt&&s._startAt.progress())&&(r=!0);else if(s._totalTime=s._time=e,s._easeType){var f=e/c,h=s._easeType,d=s._easePower;(1===h||3===h&&.5<=f)&&(f=1-f),3===h&&(f*=2),1===d?f*=f:2===d?f*=f*f:3===d?f*=f*f*f:4===d&&(f*=f*f*f*f),s.ratio=1===h?1-f:2===h?f:e/c<.5?f/2:1-f/2}else s.ratio=s._ease.getRatio(e/c);if(s._time!==u||r){if(!s._initted){if(s._init(),!s._initted||s._gc)return;if(!r&&s._firstPT&&(!1!==s.vars.lazy&&s._duration||s.vars.lazy&&!s._duration))return s._time=s._totalTime=u,s._rawPrevTime=l,j.push(s),void(s._lazy=[e,t]);s._time&&!n?s.ratio=s._ease.getRatio(s._time/c):n&&s._ease._calcEnd&&(s.ratio=s._ease.getRatio(0===s._time?0:1))}for(!1!==s._lazy&&(s._lazy=!1),s._active||!s._paused&&s._time!==u&&0<=e&&(s._active=!0),0===u&&(s._startAt&&(0<=e?s._startAt.render(e,!0,r):i||(i="_dummyGS")),s.vars.onStart&&(0===s._time&&0!==c||t||s._callback("onStart"))),o=s._firstPT;o;)o.f?o.t[o.p](o.c*s.ratio+o.s):o.t[o.p]=o.c*s.ratio+o.s,o=o._next;s._onUpdate&&(e<0&&s._startAt&&-1e-4!==e&&s._startAt.render(e,!0,r),t||(s._time!==u||n||r)&&s._callback("onUpdate")),i&&(s._gc&&!r||(e<0&&s._startAt&&!s._onUpdate&&-1e-4!==e&&s._startAt.render(e,!0,r),n&&(s._timeline.autoRemoveChildren&&s._enabled(!1,!1),s._active=!1),!t&&s.vars[i]&&s._callback(i),0===c&&s._rawPrevTime===_&&a!==_&&(s._rawPrevTime=0)))}},i._kill=function(e,t,r){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:L.selector(t)||t;var n,i,o,a,s,u,c,l,f,h=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,d=this._firstPT;if((x(t)||N(t))&&"number"!=typeof t[0])for(n=t.length;-1<--n;)this._kill(e,t[n],r)&&(u=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(t===this._targets[n]){s=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[n]=e?this._overwrittenProps[n]||{}:"all";break}}else{if(t!==this.target)return!1;s=this._propLookup,i=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(s){if(c=e||s,l=e!==i&&"all"!==i&&e!==s&&("object"!=typeof e||!e._tempKill),r&&(L.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(f||(f=[]),f.push(o));if((f||!e)&&!re(this,r,t,f))return!1}for(o in c)(a=s[o])&&(h&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,u=!0),a.pg&&a.t._kill(c)&&(u=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),l&&(i[o]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return u},i.invalidate=function(){this._notifyPluginsOfEnabled&&L._onPluginEvent("_onDisable",this);var e=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(e,!1,!1!==this.vars.lazy)),this},i._enabled=function(e,t){if(v||g.wake(),e&&this._gc){var r,n=this._targets;if(n)for(r=n.length;-1<--r;)this._siblings[r]=te(n[r],this,!0);else this._siblings=te(this.target,this,!0)}return R.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&L._onPluginEvent(e?"_onEnable":"_onDisable",this)},L.to=function(e,t,r){return new L(e,t,r)},L.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new L(e,t,r)},L.fromTo=function(e,t,r,n){return n.startAt=r,n.immediateRender=0!=n.immediateRender&&0!=r.immediateRender,new L(e,t,n)},L.delayedCall=function(e,t,r,n,i){return new L(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},L.set=function(e,t){return new L(e,0,t)},L.getTweensOf=function(e,t){if(null==e)return[];var r,n,i,o;if(e="string"!=typeof e?e:L.selector(e)||e,(x(e)||N(e))&&"number"!=typeof e[0]){for(r=e.length,n=[];-1<--r;)n=n.concat(L.getTweensOf(e[r],t));for(r=n.length;-1<--r;)for(o=n[r],i=r;-1<--i;)o===n[i]&&n.splice(r,1)}else if(e._gsTweenID)for(r=(n=te(e).concat()).length;-1<--r;)(n[r]._gc||t&&!n[r].isActive())&&n.splice(r,1);return n||[]},L.killTweensOf=L.killDelayedCallsTo=function(e,t,r){"object"==typeof t&&(r=t,t=!1);for(var n=L.getTweensOf(e,t),i=n.length;-1<--i;)n[i]._kill(r,e)};var oe=S("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=oe.prototype},!0);if(i=oe.prototype,oe.version="1.19.0",oe.API=2,i._firstPT=null,i._addTween=H,i.setRatio=U,i._kill=function(e){var t,r=this._overwriteProps,n=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=r.length;-1<--t;)null!=e[r[t]]&&r.splice(t,1);for(;n;)null!=e[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},i._mod=i._roundProps=function(e){for(var t,r=this._firstPT;r;)(t=e[this._propName]||null!=r.n&&e[r.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===r.f?r.t._applyPT.m=t:r.m=t),r=r._next},L._onPluginEvent=function(e,t){var r,n,i,o,a,s=t._firstPT;if("_onInitAllProps"===e){for(;s;){for(a=s._next,n=i;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:o)?s._prev._next=s:i=s,(s._next=n)?n._prev=s:o=s,s=a}s=t._firstPT=i}for(;s;)s.pg&&"function"==typeof s.t[e]&&s.t[e]()&&(r=!0),s=s._next;return r},oe.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===oe.API&&(G[(new e[t])._propName]=e[t]);return!0},s.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,r=e.propName,n=e.priority||0,i=e.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=S("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){oe.call(this,r,n),this._overwriteProps=i||[]},!0===e.global),s=a.prototype=new oe(r);for(t in(s.constructor=a).API=e.API,o)"function"==typeof e[t]&&(s[o[t]]=e[t]);return a.version=e.version,oe.activate([a]),a},t=h._gsQueue){for(r=0;r<t.length;r++)t[r]();for(i in w)w[i].func||h.console.log("GSAP encountered missing dependency: "+i)}v=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenLite");var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var T,x,w,S,v,r,y,M,_,b,d,p,g,e,t,u,c,n;_gsScope._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(n,l,_){var m=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r},g=function(e,t,r){var n,i,o=e.cycle;for(n in o)i=o[n],e[n]="function"==typeof i?i(r,t[r],t):i[r%i.length];delete e.cycle},v=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,y={},_=isNaN(g),b=p.axis,x={center:.5,end:1}[g]||0;return function(e,t,r){var n,i,o,a,s,u,c,l,f,h=(r||p).length,d=y[h];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1/0])[0])){for(c=-1/0;c<(c=r[f++].getBoundingClientRect().left)&&f<h;);f--}for(d=y[h]=[],n=_?Math.min(f,h)*x-.5:g%f,i=_?h*x/f-.5:g/f|0,l=1/(c=0),u=0;u<h;u++)o=u%f-n,a=i-(u/f|0),d[u]=s=b?Math.abs("y"===b?a:o):Math.sqrt(o*o+a*a),c<s&&(c=s),s<l&&(l=s);d.max=c-l,d.min=l,d.v=h=p.amount||p.each*(h<f?h:b?"y"===b?h/f:f:Math.max(f,h/f))||0,d.b=h<0?v-h:v}return h=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(h):h)*d.v}},y=function(e,t,r){_.call(this,e,t,r),this._cycle=0,this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._repeat&&this._uncache(!0),this.render=y.prototype.render},b=1e-8,x=_._internals,w=x.isSelector,T=x.isArray,e=y.prototype=_.to({},.1,{}),S=[];y.version="2.1.2",e.constructor=y,e.kill()._gc=!1,y.killTweensOf=y.killDelayedCallsTo=_.killTweensOf,y.getTweensOf=_.getTweensOf,y.lagSmoothing=_.lagSmoothing,y.ticker=_.ticker,y.render=_.render,y.distribute=v,e.invalidate=function(){return this._yoyo=!0===this.vars.yoyo||!!this.vars.yoyoEase,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._yoyoEase=null,this._uncache(!0),_.prototype.invalidate.call(this)},e.updateTo=function(e,t){var r,n=this,i=n.ratio,o=n.vars.immediateRender||e.immediateRender;for(r in t&&n._startTime<n._timeline._time&&(n._startTime=n._timeline._time,n._uncache(!1),n._gc?n._enabled(!0,!1):n._timeline.insert(n,n._startTime-n._delay)),e)n.vars[r]=e[r];if(n._initted||o)if(t)n._initted=!1,o&&n.render(0,!0,!0);else if(n._gc&&n._enabled(!0,!1),n._notifyPluginsOfEnabled&&n._firstPT&&_._onPluginEvent("_onDisable",n),.998<n._time/n._duration){var a=n._totalTime;n.render(0,!0,!1),n._initted=!1,n.render(a,!0,!1)}else if(n._initted=!1,n._init(),0<n._time||o)for(var s,u=1/(1-i),c=n._firstPT;c;)s=c.s+c.c,c.c*=u,c.s=s-c.c,c=c._next;return n},e.render=function(e,t,r){this._initted||0===this._duration&&this.vars.repeat&&this.invalidate();var n,i,o,a,s,u,c,l,f,h=this,d=h._dirty?h.totalDuration():h._totalDuration,p=h._time,m=h._totalTime,g=h._cycle,v=h._duration,y=h._rawPrevTime;if(d-b<=e&&0<=e?(h._totalTime=d,h._cycle=h._repeat,h._yoyo&&0!=(1&h._cycle)?(h._time=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0):(h._time=v,h.ratio=h._ease._calcEnd?h._ease.getRatio(1):1),h._reversed||(n=!0,i="onComplete",r=r||h._timeline.autoRemoveChildren),0===v&&(h._initted||!h.vars.lazy||r)&&(h._startTime===h._timeline._duration&&(e=0),(y<0||e<=0&&-b<=e||y===b&&"isPause"!==h.data)&&y!==e&&(r=!0,b<y&&(i="onReverseComplete")),h._rawPrevTime=l=!t||e||y===e?e:b)):e<b?(h._totalTime=h._time=h._cycle=0,h.ratio=h._ease._calcEnd?h._ease.getRatio(0):0,(0!==m||0===v&&0<y)&&(i="onReverseComplete",n=h._reversed),-b<e?e=0:e<0&&(h._active=!1,0===v&&(h._initted||!h.vars.lazy||r)&&(0<=y&&(r=!0),h._rawPrevTime=l=!t||e||y===e?e:b)),h._initted||(r=!0)):(h._totalTime=h._time=e,0!==h._repeat&&(a=v+h._repeatDelay,h._cycle=h._totalTime/a>>0,0!==h._cycle&&h._cycle===h._totalTime/a&&m<=e&&h._cycle--,h._time=h._totalTime-h._cycle*a,h._yoyo&&0!=(1&h._cycle)&&(h._time=v-h._time,(f=h._yoyoEase||h.vars.yoyoEase)&&(h._yoyoEase||(!0!==f||h._initted?h._yoyoEase=f=!0===f?h._ease:f instanceof Ease?f:Ease.map[f]:(f=h.vars.ease,h._yoyoEase=f=f?f instanceof Ease?f:"function"==typeof f?new Ease(f,h.vars.easeParams):Ease.map[f]||_.defaultEase:_.defaultEase)),h.ratio=f?1-f.getRatio((v-h._time)/v):0)),h._time>v?h._time=v:h._time<0&&(h._time=0)),h._easeType&&!f?(s=h._time/v,(1===(u=h._easeType)||3===u&&.5<=s)&&(s=1-s),3===u&&(s*=2),1===(c=h._easePower)?s*=s:2===c?s*=s*s:3===c?s*=s*s*s:4===c&&(s*=s*s*s*s),h.ratio=1===u?1-s:2===u?s:h._time/v<.5?s/2:1-s/2):f||(h.ratio=h._ease.getRatio(h._time/v))),p!==h._time||r||g!==h._cycle){if(!h._initted){if(h._init(),!h._initted||h._gc)return;if(!r&&h._firstPT&&(!1!==h.vars.lazy&&h._duration||h.vars.lazy&&!h._duration))return h._time=p,h._totalTime=m,h._rawPrevTime=y,h._cycle=g,x.lazyTweens.push(h),void(h._lazy=[e,t]);!h._time||n||f?n&&this._ease._calcEnd&&!f&&(h.ratio=h._ease.getRatio(0===h._time?0:1)):h.ratio=h._ease.getRatio(h._time/v)}for(!1!==h._lazy&&(h._lazy=!1),h._active||!h._paused&&h._time!==p&&0<=e&&(h._active=!0),0===m&&(2===h._initted&&0<e&&h._init(),h._startAt&&(0<=e?h._startAt.render(e,!0,r):i||(i="_dummyGS")),h.vars.onStart&&(0===h._totalTime&&0!==v||t||h._callback("onStart"))),o=h._firstPT;o;)o.f?o.t[o.p](o.c*h.ratio+o.s):o.t[o.p]=o.c*h.ratio+o.s,o=o._next;h._onUpdate&&(e<0&&h._startAt&&h._startTime&&h._startAt.render(e,!0,r),t||(h._totalTime!==m||i)&&h._callback("onUpdate")),h._cycle!==g&&(t||h._gc||h.vars.onRepeat&&h._callback("onRepeat")),i&&(h._gc&&!r||(e<0&&h._startAt&&!h._onUpdate&&h._startTime&&h._startAt.render(e,!0,r),n&&(h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[i]&&h._callback(i),0===v&&h._rawPrevTime===b&&l!==b&&(h._rawPrevTime=0)))}else m!==h._totalTime&&h._onUpdate&&(t||h._callback("onUpdate"))},y.to=function(e,t,r){return new y(e,t,r)},y.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new y(e,t,r)},y.fromTo=function(e,t,r,n){return n.startAt=r,n.immediateRender=0!=n.immediateRender&&0!=r.immediateRender,new y(e,t,n)},y.staggerTo=y.allTo=function(e,t,r,n,i,o,a){var s,u,c,l,f=[],h=v(r.stagger||n),d=r.cycle,p=(r.startAt||S).cycle;for(T(e)||("string"==typeof e&&(e=_.selector(e)||e),w(e)&&(e=m(e))),s=(e=e||[]).length-1,c=0;c<=s;c++){for(l in u={},r)u[l]=r[l];if(d&&(g(u,e,c),null!=u.duration&&(t=u.duration,delete u.duration)),p){for(l in p=u.startAt={},r.startAt)p[l]=r.startAt[l];g(u.startAt,e,c)}u.delay=h(c,e[c],e)+(u.delay||0),c===s&&i&&(u.onComplete=function(){r.onComplete&&r.onComplete.apply(r.onCompleteScope||this,arguments),i.apply(a||r.callbackScope||this,o||S)}),f[c]=new y(e[c],t,u)}return f},y.staggerFrom=y.allFrom=function(e,t,r,n,i,o,a){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,y.staggerTo(e,t,r,n,i,o,a)},y.staggerFromTo=y.allFromTo=function(e,t,r,n,i,o,a,s){return n.startAt=r,n.immediateRender=0!=n.immediateRender&&0!=r.immediateRender,y.staggerTo(e,t,n,i,o,a,s)},y.delayedCall=function(e,t,r,n,i){return new y(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,useFrames:i,overwrite:0})},y.set=function(e,t){return new y(e,0,t)},y.isTweening=function(e){return 0<_.getTweensOf(e,!0).length};var o=function(e,t){for(var r=[],n=0,i=e._first;i;)i instanceof _?r[n++]=i:(t&&(r[n++]=i),n=(r=r.concat(o(i,t))).length),i=i._next;return r},f=y.getAllTweens=function(e){return o(n._rootTimeline,e).concat(o(n._rootFramesTimeline,e))};y.killAll=function(e,t,r,n){null==t&&(t=!0),null==r&&(r=!0);var i,o,a,s=f(0!=n),u=s.length,c=t&&r&&n;for(a=0;a<u;a++)o=s[a],(c||o instanceof l||(i=o.target===o.vars.onComplete)&&r||t&&!i)&&(e?o.totalTime(o._reversed?0:o.totalDuration()):o._enabled(!1,!1))},y.killChildTweensOf=function(e,t){if(null!=e){var r,n,i,o,a,s=x.tweenLookup;if("string"==typeof e&&(e=_.selector(e)||e),w(e)&&(e=m(e)),T(e))for(o=e.length;-1<--o;)y.killChildTweensOf(e[o],t);else{for(i in r=[],s)for(n=s[i].target.parentNode;n;)n===e&&(r=r.concat(s[i].tweens)),n=n.parentNode;for(a=r.length,o=0;o<a;o++)t&&r[o].totalTime(r[o].totalDuration()),r[o]._enabled(!1,!1)}}};var i=function(e,t,r,n){t=!1!==t,r=!1!==r;for(var i,o,a=f(n=!1!==n),s=t&&r&&n,u=a.length;-1<--u;)o=a[u],(s||o instanceof l||(i=o.target===o.vars.onComplete)&&r||t&&!i)&&o.paused(e)};return y.pauseAll=function(e,t,r){i(!0,e,t,r)},y.resumeAll=function(e,t,r){i(!1,e,t,r)},y.globalTimeScale=function(e){var t=n._rootTimeline,r=_.ticker.time;return arguments.length?(e=e||b,t._startTime=r-(r-t._startTime)*t._timeScale/e,t=n._rootFramesTimeline,r=_.ticker.frame,t._startTime=r-(r-t._startTime)*t._timeScale/e,t._timeScale=n._rootTimeline._timeScale=e,e):t._timeScale},e.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()},e.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()},e.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,n=this._cycle,i=n*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&n?r-e+i:this._repeat?e+i:e,t)},e.duration=function(e){return arguments.length?n.prototype.duration.call(this,e):this._duration},e.totalDuration=function(e){return arguments.length?-1===this._repeat?this:this.duration((e-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},e.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},e.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},e.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},y},!0),_gsScope._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(f,h,p){var m=function(e){h.call(this,e);var t,r,n=this.vars;for(r in this._labels={},this.autoRemoveChildren=!!n.autoRemoveChildren,this.smoothChildTiming=!!n.smoothChildTiming,this._sortChildren=!0,this._onUpdate=n.onUpdate,n)t=n[r],d(t)&&-1!==t.join("").indexOf("{self}")&&(n[r]=this._swapSelfInParams(t));d(n.tweens)&&this.add(n.tweens,0,n.align,n.stagger)},e=p._internals,t=m._internals={},g=e.isSelector,d=e.isArray,v=e.lazyTweens,y=e.lazyRender,a=_gsScope._gsDefine.globals,_=function(e){var t,r={};for(t in e)r[t]=e[t];return r},b=function(e,t,r){var n,i,o=e.cycle;for(n in o)i=o[n],e[n]="function"==typeof i?i(r,t[r],t):i[r%i.length];delete e.cycle},o=t.pauseCallback=function(){},c=function(e,t,r,n){var i="immediateRender";return i in t||(t[i]=!(r&&!1===r[i]||n)),t},x=function(e){if("function"==typeof e)return e;var p="object"==typeof e?e:{each:e},m=p.ease,g=p.from||0,v=p.base||0,y={},_=isNaN(g),b=p.axis,x={center:.5,end:1}[g]||0;return function(e,t,r){var n,i,o,a,s,u,c,l,f,h=(r||p).length,d=y[h];if(!d){if(!(f="auto"===p.grid?0:(p.grid||[1/0])[0])){for(c=-1/0;c<(c=r[f++].getBoundingClientRect().left)&&f<h;);f--}for(d=y[h]=[],n=_?Math.min(f,h)*x-.5:g%f,i=_?h*x/f-.5:g/f|0,l=1/(c=0),u=0;u<h;u++)o=u%f-n,a=i-(u/f|0),d[u]=s=b?Math.abs("y"===b?a:o):Math.sqrt(o*o+a*a),c<s&&(c=s),s<l&&(l=s);d.max=c-l,d.min=l,d.v=h=p.amount||p.each*(h<f?h:b?"y"===b?h/f:f:Math.max(f,h/f))||0,d.b=h<0?v-h:v}return h=(d[e]-d.min)/d.max,d.b+(m?m.getRatio(h):h)*d.v}},r=m.prototype=new h;return m.version="2.1.2",m.distribute=x,r.constructor=m,r.kill()._gc=r._forcingPlayhead=r._hasPause=!1,r.to=function(e,t,r,n){var i=r.repeat&&a.TweenMax||p;return t?this.add(new i(e,t,r),n):this.set(e,r,n)},r.from=function(e,t,r,n){return this.add((r.repeat&&a.TweenMax||p).from(e,t,c(0,r)),n)},r.fromTo=function(e,t,r,n,i){var o=n.repeat&&a.TweenMax||p;return n=c(0,n,r),t?this.add(o.fromTo(e,t,r,n),i):this.set(e,n,i)},r.staggerTo=function(e,t,r,n,i,o,a,s){var u,c,l=new m({onComplete:o,onCompleteParams:a,callbackScope:s,smoothChildTiming:this.smoothChildTiming}),f=x(r.stagger||n),h=r.startAt,d=r.cycle;for("string"==typeof e&&(e=p.selector(e)||e),g(e=e||[])&&(e=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r}(e)),c=0;c<e.length;c++)u=_(r),h&&(u.startAt=_(h),h.cycle&&b(u.startAt,e,c)),d&&(b(u,e,c),null!=u.duration&&(t=u.duration,delete u.duration)),l.to(e[c],t,u,f(c,e[c],e));return this.add(l,i)},r.staggerFrom=function(e,t,r,n,i,o,a,s){return r.runBackwards=!0,this.staggerTo(e,t,c(0,r),n,i,o,a,s)},r.staggerFromTo=function(e,t,r,n,i,o,a,s,u){return n.startAt=r,this.staggerTo(e,t,c(0,n,r),i,o,a,s,u)},r.call=function(e,t,r,n){return this.add(p.delayedCall(0,e,t,r),n)},r.set=function(e,t,r){return this.add(new p(e,0,c(0,t,null,!0)),r)},m.exportRoot=function(e,t){null==(e=e||{}).smoothChildTiming&&(e.smoothChildTiming=!0);var r,n,i,o,a=new m(e),s=a._timeline;for(null==t&&(t=!0),s._remove(a,!0),a._startTime=0,a._rawPrevTime=a._time=a._totalTime=s._time,i=s._first;i;)o=i._next,t&&i instanceof p&&i.target===i.vars.onComplete||((n=i._startTime-i._delay)<0&&(r=1),a.add(i,n)),i=o;return s.add(a,0),r&&a.totalDuration(),a},r.add=function(e,t,r,n){var i,o,a,s,u,c,l=this;if("number"!=typeof t&&(t=l._parseTimeOrLabel(t,0,!0,e)),!(e instanceof f)){if(e instanceof Array||e&&e.push&&d(e)){for(r=r||"normal",n=n||0,i=t,o=e.length,a=0;a<o;a++)d(s=e[a])&&(s=new m({tweens:s})),l.add(s,i),"string"!=typeof s&&"function"!=typeof s&&("sequence"===r?i=s._startTime+s.totalDuration()/s._timeScale:"start"===r&&(s._startTime-=s.delay())),i+=n;return l._uncache(!0)}if("string"==typeof e)return l.addLabel(e,t);if("function"!=typeof e)throw"Cannot add "+e+" into the timeline; it is not a tween, timeline, function, or string.";e=p.delayedCall(0,e)}if(h.prototype.add.call(l,e,t),(e._time||!e._duration&&e._initted)&&(i=(l.rawTime()-e._startTime)*e._timeScale,(!e._duration||1e-5<Math.abs(Math.max(0,Math.min(e.totalDuration(),i)))-e._totalTime)&&e.render(i,!1,!1)),(l._gc||l._time===l._duration)&&!l._paused&&l._duration<l.duration())for(c=(u=l).rawTime()>e._startTime;u._timeline;)c&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return l},r.remove=function(e){if(e instanceof f){this._remove(e,!1);var t=e._timeline=e.vars.useFrames?f._rootFramesTimeline:f._rootTimeline;return e._startTime=(e._paused?e._pauseTime:t._time)-(e._reversed?e.totalDuration()-e._totalTime:e._totalTime)/e._timeScale,this}if(e instanceof Array||e&&e.push&&d(e)){for(var r=e.length;-1<--r;)this.remove(e[r]);return this}return"string"==typeof e?this.removeLabel(e):this.kill(null,e)},r._remove=function(e,t){return h.prototype._remove.call(this,e,t),this._last?this._time>this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},r.append=function(e,t){return this.add(e,this._parseTimeOrLabel(null,t,!0,e))},r.insert=r.insertMultiple=function(e,t,r,n){return this.add(e,t||0,r,n)},r.appendMultiple=function(e,t,r,n){return this.add(e,this._parseTimeOrLabel(null,t,!0,e),r,n)},r.addLabel=function(e,t){return this._labels[e]=this._parseTimeOrLabel(t),this},r.addPause=function(e,t,r,n){var i=p.delayedCall(0,o,r,n||this);return i.vars.onComplete=i.vars.onReverseComplete=t,i.data="isPause",this._hasPause=!0,this.add(i,e)},r.removeLabel=function(e){return delete this._labels[e],this},r.getLabelTime=function(e){return null!=this._labels[e]?this._labels[e]:-1},r._parseTimeOrLabel=function(e,t,r,n){var i,o;if(n instanceof f&&n.timeline===this)this.remove(n);else if(n&&(n instanceof Array||n.push&&d(n)))for(o=n.length;-1<--o;)n[o]instanceof f&&n[o].timeline===this&&this.remove(n[o]);if(i="number"!=typeof e||t?99999999999<this.duration()?this.recent().endTime(!1):this._duration:0,"string"==typeof t)return this._parseTimeOrLabel(t,r&&"number"==typeof e&&null==this._labels[t]?e-i:0,r);if(t=t||0,"string"!=typeof e||!isNaN(e)&&null==this._labels[e])null==e&&(e=i);else{if(-1===(o=e.indexOf("=")))return null==this._labels[e]?r?this._labels[e]=i+t:t:this._labels[e]+t;t=parseInt(e.charAt(o-1)+"1",10)*Number(e.substr(o+1)),e=1<o?this._parseTimeOrLabel(e.substr(0,o-1),0,r):i}return Number(e)+t},r.seek=function(e,t){return this.totalTime("number"==typeof e?e:this._parseTimeOrLabel(e),!1!==t)},r.stop=function(){return this.paused(!0)},r.gotoAndPlay=function(e,t){return this.play(e,t)},r.gotoAndStop=function(e,t){return this.pause(e,t)},r.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var n,i,o,a,s,u,c,l,f=this,h=f._time,d=f._dirty?f.totalDuration():f._totalDuration,p=f._startTime,m=f._timeScale,g=f._paused;if(h!==f._time&&(e+=f._time-h),d-1e-8<=e&&0<=e)f._totalTime=f._time=d,f._reversed||f._hasPausedChild()||(i=!0,a="onComplete",s=!!f._timeline.autoRemoveChildren,0===f._duration&&(e<=0&&-1e-8<=e||f._rawPrevTime<0||1e-8===f._rawPrevTime)&&f._rawPrevTime!==e&&f._first&&(s=!0,1e-8<f._rawPrevTime&&(a="onReverseComplete"))),f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,e=d+1e-4;else if(e<1e-8)if(f._totalTime=f._time=0,-1e-8<e&&(e=0),(0!==h||0===f._duration&&1e-8!==f._rawPrevTime&&(0<f._rawPrevTime||e<0&&0<=f._rawPrevTime))&&(a="onReverseComplete",i=f._reversed),e<0)f._active=!1,f._timeline.autoRemoveChildren&&f._reversed?(s=i=!0,a="onReverseComplete"):0<=f._rawPrevTime&&f._first&&(s=!0),f._rawPrevTime=e;else{if(f._rawPrevTime=f._duration||!t||e||f._rawPrevTime===e?e:1e-8,0===e&&i)for(n=f._first;n&&0===n._startTime;)n._duration||(i=!1),n=n._next;e=0,f._initted||(s=!0)}else{if(f._hasPause&&!f._forcingPlayhead&&!t){if(h<=e)for(n=f._first;n&&n._startTime<=e&&!u;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===f._rawPrevTime||(u=n),n=n._next;else for(n=f._last;n&&n._startTime>=e&&!u;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(u=n),n=n._prev;u&&(f._time=f._totalTime=e=u._startTime,l=f._startTime+e/f._timeScale)}f._totalTime=f._time=f._rawPrevTime=e}if(f._time!==h&&f._first||r||s||u){if(f._initted||(f._initted=!0),f._active||!f._paused&&f._time!==h&&0<e&&(f._active=!0),0===h&&f.vars.onStart&&(0===f._time&&f._duration||t||f._callback("onStart")),h<=(c=f._time))for(n=f._first;n&&(o=n._next,c===f._time&&(!f._paused||g));)(n._active||n._startTime<=c&&!n._paused&&!n._gc)&&(u===n&&(f.pause(),f._pauseTime=l),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=o;else for(n=f._last;n&&(o=n._prev,c===f._time&&(!f._paused||g));){if(n._active||n._startTime<=h&&!n._paused&&!n._gc){if(u===n){for(u=n._prev;u&&u.endTime()>f._time;)u.render(u._reversed?u.totalDuration()-(e-u._startTime)*u._timeScale:(e-u._startTime)*u._timeScale,t,r),u=u._prev;u=null,f.pause(),f._pauseTime=l}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)}n=o}f._onUpdate&&(t||(v.length&&y(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&m===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&y(),f._timeline.autoRemoveChildren&&f._enabled(!1,!1),f._active=!1),!t&&f.vars[a]&&f._callback(a)))}},r._hasPausedChild=function(){for(var e=this._first;e;){if(e._paused||e instanceof m&&e._hasPausedChild())return!0;e=e._next}return!1},r.getChildren=function(e,t,r,n){n=n||-9999999999;for(var i=[],o=this._first,a=0;o;)o._startTime<n||(o instanceof p?!1!==t&&(i[a++]=o):(!1!==r&&(i[a++]=o),!1!==e&&(a=(i=i.concat(o.getChildren(!0,t,r))).length))),o=o._next;return i},r.getTweensOf=function(e,t){var r,n,i=this._gc,o=[],a=0;for(i&&this._enabled(!0,!0),n=(r=p.getTweensOf(e)).length;-1<--n;)(r[n].timeline===this||t&&this._contains(r[n]))&&(o[a++]=r[n]);return i&&this._enabled(!1,!0),o},r.recent=function(){return this._recent},r._contains=function(e){for(var t=e.timeline;t;){if(t===this)return!0;t=t.timeline}return!1},r.shiftChildren=function(e,t,r){r=r||0;for(var n,i=this._first,o=this._labels;i;)i._startTime>=r&&(i._startTime+=e),i=i._next;if(t)for(n in o)o[n]>=r&&(o[n]+=e);return this._uncache(!0)},r._kill=function(e,t){if(!e&&!t)return this._enabled(!1,!1);for(var r=t?this.getTweensOf(t):this.getChildren(!0,!0,!1),n=r.length,i=!1;-1<--n;)r[n]._kill(e,t)&&(i=!0);return i},r.clear=function(e){var t=this.getChildren(!1,!0,!0),r=t.length;for(this._time=this._totalTime=0;-1<--r;)t[r]._enabled(!1,!1);return!1!==e&&(this._labels={}),this._uncache(!0)},r.invalidate=function(){for(var e=this._first;e;)e.invalidate(),e=e._next;return f.prototype.invalidate.call(this)},r._enabled=function(e,t){if(e===this._gc)for(var r=this._first;r;)r._enabled(e,!0),r=r._next;return h.prototype._enabled.call(this,e,t)},r.totalTime=function(e,t,r){this._forcingPlayhead=!0;var n=f.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,n},r.duration=function(e){return arguments.length?(0!==this.duration()&&0!==e&&this.timeScale(this._duration/e),this):(this._dirty&&this.totalDuration(),this._duration)},r.totalDuration=function(e){if(arguments.length)return e&&this.totalDuration()?this.timeScale(this._totalDuration/e):this;if(this._dirty){for(var t,r,n=0,i=this,o=i._last,a=999999999999;o;)t=o._prev,o._dirty&&o.totalDuration(),o._startTime>a&&i._sortChildren&&!o._paused&&!i._calculatingDuration?(i._calculatingDuration=1,i.add(o,o._startTime-o._delay),i._calculatingDuration=0):a=o._startTime,o._startTime<0&&!o._paused&&(n-=o._startTime,i._timeline.smoothChildTiming&&(i._startTime+=o._startTime/i._timeScale,i._time-=o._startTime,i._totalTime-=o._startTime,i._rawPrevTime-=o._startTime),i.shiftChildren(-o._startTime,!1,-9999999999),a=0),n<(r=o._startTime+o._totalDuration/o._timeScale)&&(n=r),o=t;i._duration=i._totalDuration=n,i._dirty=!1}return this._totalDuration},r.paused=function(e){if(!1===e&&this._paused)for(var t=this._first;t;)t._startTime===this._time&&"isPause"===t.data&&(t._rawPrevTime=0),t=t._next;return f.prototype.paused.apply(this,arguments)},r.usesFrames=function(){for(var e=this._timeline;e._timeline;)e=e._timeline;return e===f._rootFramesTimeline},r.rawTime=function(e){return e&&(this._paused||this._repeat&&0<this.time()&&this.totalProgress()<1)?this._totalTime%(this._duration+this._repeatDelay):this._paused?this._totalTime:(this._timeline.rawTime(e)-this._startTime)*this._timeScale},m},!0),_gsScope._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(t,s,e){var r=function(e){t.call(this,e),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=!!this.vars.yoyo,this._dirty=!0},C=1e-8,n=s._internals,k=n.lazyTweens,A=n.lazyRender,u=_gsScope._gsDefine.globals,c=new e(null,null,1,0),i=r.prototype=new t;return i.constructor=r,i.kill()._gc=!1,r.version="2.1.2",i.invalidate=function(){return this._yoyo=!!this.vars.yoyo,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),t.prototype.invalidate.call(this)},i.addCallback=function(e,t,r,n){return this.add(s.delayedCall(0,e,r,n),t)},i.removeCallback=function(e,t){if(e)if(null==t)this._kill(null,e);else for(var r=this.getTweensOf(e,!1),n=r.length,i=this._parseTimeOrLabel(t);-1<--n;)r[n]._startTime===i&&r[n]._enabled(!1,!1);return this},i.removePause=function(e){return this.removeCallback(t._internals.pauseCallback,e)},i.tweenTo=function(e,t){t=t||{};var r,n,i,o={ease:c,useFrames:this.usesFrames(),immediateRender:!1,lazy:!1},a=t.repeat&&u.TweenMax||s;for(n in t)o[n]=t[n];return o.time=this._parseTimeOrLabel(e),r=Math.abs(Number(o.time)-this._time)/this._timeScale||.001,i=new a(this,r,o),o.onStart=function(){i.target.paused(!0),i.vars.time===i.target.time()||r!==i.duration()||i.isFromTo||i.duration(Math.abs(i.vars.time-i.target.time())/i.target._timeScale).render(i.time(),!0,!0),t.onStart&&t.onStart.apply(t.onStartScope||t.callbackScope||i,t.onStartParams||[])},i},i.tweenFromTo=function(e,t,r){r=r||{},e=this._parseTimeOrLabel(e),r.startAt={onComplete:this.seek,onCompleteParams:[e],callbackScope:this},r.immediateRender=!1!==r.immediateRender;var n=this.tweenTo(t,r);return n.isFromTo=1,n.duration(Math.abs(n.vars.time-e)/this._timeScale||.001)},i.render=function(e,t,r){this._gc&&this._enabled(!0,!1);var n,i,o,a,s,u,c,l,f,h=this,d=h._time,p=h._dirty?h.totalDuration():h._totalDuration,m=h._duration,g=h._totalTime,v=h._startTime,y=h._timeScale,_=h._rawPrevTime,b=h._paused,x=h._cycle;if(d!==h._time&&(e+=h._time-d),p-C<=e&&0<=e)h._locked||(h._totalTime=p,h._cycle=h._repeat),h._reversed||h._hasPausedChild()||(i=!0,a="onComplete",s=!!h._timeline.autoRemoveChildren,0===h._duration&&(e<=0&&-C<=e||_<0||_===C)&&_!==e&&h._first&&(s=!0,C<_&&(a="onReverseComplete"))),h._rawPrevTime=h._duration||!t||e||h._rawPrevTime===e?e:C,h._yoyo&&1&h._cycle?h._time=e=0:e=(h._time=m)+1e-4;else if(e<C)if(h._locked||(h._totalTime=h._cycle=0),h._time=0,-C<e&&(e=0),(0!==d||0===m&&_!==C&&(0<_||e<0&&0<=_)&&!h._locked)&&(a="onReverseComplete",i=h._reversed),e<0)h._active=!1,h._timeline.autoRemoveChildren&&h._reversed?(s=i=!0,a="onReverseComplete"):0<=_&&h._first&&(s=!0),h._rawPrevTime=e;else{if(h._rawPrevTime=m||!t||e||h._rawPrevTime===e?e:C,0===e&&i)for(n=h._first;n&&0===n._startTime;)n._duration||(i=!1),n=n._next;e=0,h._initted||(s=!0)}else if(0===m&&_<0&&(s=!0),h._time=h._rawPrevTime=e,h._locked||(h._totalTime=e,0!==h._repeat&&(u=m+h._repeatDelay,h._cycle=h._totalTime/u>>0,h._cycle&&h._cycle===h._totalTime/u&&g<=e&&h._cycle--,h._time=h._totalTime-h._cycle*u,h._yoyo&&1&h._cycle&&(h._time=m-h._time),h._time>m?e=(h._time=m)+1e-4:h._time<0?h._time=e=0:e=h._time)),h._hasPause&&!h._forcingPlayhead&&!t){if(d<=(e=h._time)||h._repeat&&x!==h._cycle)for(n=h._first;n&&n._startTime<=e&&!c;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===h._rawPrevTime||(c=n),n=n._next;else for(n=h._last;n&&n._startTime>=e&&!c;)n._duration||"isPause"===n.data&&0<n._rawPrevTime&&(c=n),n=n._prev;c&&(f=h._startTime+c._startTime/h._timeScale,c._startTime<m&&(h._time=h._rawPrevTime=e=c._startTime,h._totalTime=e+h._cycle*(h._totalDuration+h._repeatDelay)))}if(h._cycle!==x&&!h._locked){var w=h._yoyo&&0!=(1&x),T=w===(h._yoyo&&0!=(1&h._cycle)),S=h._totalTime,M=h._cycle,P=h._rawPrevTime,E=h._time;if(h._totalTime=x*m,h._cycle<x?w=!w:h._totalTime+=m,h._time=d,h._rawPrevTime=0===m?_-1e-4:_,h._cycle=x,h._locked=!0,d=w?0:m,h.render(d,t,0===m),t||h._gc||h.vars.onRepeat&&(h._cycle=M,h._locked=!1,h._callback("onRepeat")),d!==h._time)return;if(T&&(h._cycle=x,h._locked=!0,d=w?m+1e-4:-1e-4,h.render(d,!0,!1)),h._locked=!1,h._paused&&!b)return;h._time=E,h._totalTime=S,h._cycle=M,h._rawPrevTime=P}if(h._time!==d&&h._first||r||s||c){if(h._initted||(h._initted=!0),h._active||!h._paused&&h._totalTime!==g&&0<e&&(h._active=!0),0===g&&h.vars.onStart&&(0===h._totalTime&&h._totalDuration||t||h._callback("onStart")),d<=(l=h._time))for(n=h._first;n&&(o=n._next,l===h._time&&(!h._paused||b));)(n._active||n._startTime<=h._time&&!n._paused&&!n._gc)&&(c===n&&(h.pause(),h._pauseTime=f),n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)),n=o;else for(n=h._last;n&&(o=n._prev,l===h._time&&(!h._paused||b));){if(n._active||n._startTime<=d&&!n._paused&&!n._gc){if(c===n){for(c=n._prev;c&&c.endTime()>h._time;)c.render(c._reversed?c.totalDuration()-(e-c._startTime)*c._timeScale:(e-c._startTime)*c._timeScale,t,r),c=c._prev;c=null,h.pause(),h._pauseTime=f}n._reversed?n.render((n._dirty?n.totalDuration():n._totalDuration)-(e-n._startTime)*n._timeScale,t,r):n.render((e-n._startTime)*n._timeScale,t,r)}n=o}h._onUpdate&&(t||(k.length&&A(),h._callback("onUpdate"))),a&&(h._locked||h._gc||v!==h._startTime&&y===h._timeScale||(0===h._time||p>=h.totalDuration())&&(i&&(k.length&&A(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[a]&&h._callback(a)))}else g!==h._totalTime&&h._onUpdate&&(t||h._callback("onUpdate"))},i.getActive=function(e,t,r){var n,i,o=[],a=this.getChildren(e||null==e,t||null==e,!!r),s=0,u=a.length;for(n=0;n<u;n++)(i=a[n]).isActive()&&(o[s++]=i);return o},i.getLabelAfter=function(e){e||0!==e&&(e=this._time);var t,r=this.getLabelsArray(),n=r.length;for(t=0;t<n;t++)if(r[t].time>e)return r[t].name;return null},i.getLabelBefore=function(e){null==e&&(e=this._time);for(var t=this.getLabelsArray(),r=t.length;-1<--r;)if(t[r].time<e)return t[r].name;return null},i.getLabelsArray=function(){var e,t=[],r=0;for(e in this._labels)t[r++]={time:this._labels[e],name:e};return t.sort(function(e,t){return e.time-t.time}),t},i.invalidate=function(){return this._locked=!1,t.prototype.invalidate.call(this)},i.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&0!=(1&this._cycle)?1-e:e)+this._cycle*(this._duration+this._repeatDelay),t):this._time/this.duration()||0},i.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this._totalTime/this.totalDuration()||0},i.totalDuration=function(e){return arguments.length?-1!==this._repeat&&e?this.timeScale(this.totalDuration()/e):this:(this._dirty&&(t.prototype.totalDuration.call(this),this._totalDuration=-1===this._repeat?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},i.time=function(e,t){if(!arguments.length)return this._time;this._dirty&&this.totalDuration();var r=this._duration,n=this._cycle,i=n*(r+this._repeatDelay);return r<e&&(e=r),this.totalTime(this._yoyo&&1&n?r-e+i:this._repeat?e+i:e,t)},i.repeat=function(e){return arguments.length?(this._repeat=e,this._uncache(!0)):this._repeat},i.repeatDelay=function(e){return arguments.length?(this._repeatDelay=e,this._uncache(!0)):this._repeatDelay},i.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},i.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.getLabelBefore(this._time+C)},r},!0),T=180/Math.PI,x=[],w=[],S=[],v={},r=_gsScope._gsDefine.globals,y=function(e,t,r,n){r===n&&(r=n-(n-t)/1e6),e===t&&(t=e+(r-e)/1e6),this.a=e,this.b=t,this.c=r,this.d=n,this.da=n-e,this.ca=r-e,this.ba=t-e},M=function(e,t,r,n){var i={a:e},o={},a={},s={c:n},u=(e+t)/2,c=(t+r)/2,l=(r+n)/2,f=(u+c)/2,h=(c+l)/2,d=(h-f)/8;return i.b=u+(e-u)/4,o.b=f+d,i.c=o.a=(i.b+o.b)/2,o.c=a.a=(f+h)/2,a.b=h-d,s.b=l+(n-l)/4,a.c=s.a=(a.b+s.b)/2,[i,o,a,s]},_=function(e,t,r,n,i){var o,a,s,u,c,l,f,h,d,p,m,g,v,y=e.length-1,_=0,b=e[0].a;for(o=0;o<y;o++)a=(c=e[_]).a,s=c.d,u=e[_+1].d,h=i?(m=x[o],v=((g=w[o])+m)*t*.25/(n?.5:S[o]||.5),s-((l=s-(s-a)*(n?.5*t:0!==m?v/m:0))+(((f=s+(u-s)*(n?.5*t:0!==g?v/g:0))-l)*(3*m/(m+g)+.5)/4||0))):s-((l=s-(s-a)*t*.5)+(f=s+(u-s)*t*.5))/2,l+=h,f+=h,c.c=d=l,c.b=0!==o?b:b=c.a+.6*(c.c-c.a),c.da=s-a,c.ca=d-a,c.ba=b-a,r?(p=M(a,b,d,s),e.splice(_,1,p[0],p[1],p[2],p[3]),_+=4):_++,b=f;(c=e[_]).b=b,c.c=b+.4*(c.d-b),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=b-c.a,r&&(p=M(c.a,b,c.c,c.d),e.splice(_,1,p[0],p[1],p[2],p[3]))},b=function(e,t,r,n){var i,o,a,s,u,c,l=[];if(n)for(o=(e=[n].concat(e)).length;-1<--o;)"string"==typeof(c=e[o][t])&&"="===c.charAt(1)&&(e[o][t]=n[t]+Number(c.charAt(0)+c.substr(2)));if((i=e.length-2)<0)return l[0]=new y(e[0][t],0,0,e[0][t]),l;for(o=0;o<i;o++)a=e[o][t],s=e[o+1][t],l[o]=new y(a,0,0,s),r&&(u=e[o+2][t],x[o]=(x[o]||0)+(s-a)*(s-a),w[o]=(w[o]||0)+(u-s)*(u-s));return l[o]=new y(e[o][t],0,0,e[o+1][t]),l},d=function(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p={},m=[],g=o||e[0];for(s in i="string"==typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==t&&(t=1),e[0])m.push(s);if(1<e.length){for(d=e[e.length-1],h=!0,a=m.length;-1<--a;)if(s=m[a],.05<Math.abs(g[s]-d[s])){h=!1;break}h&&(e=e.concat(),o&&e.unshift(o),e.push(e[1]),o=e[e.length-3])}for(x.length=w.length=S.length=0,a=m.length;-1<--a;)s=m[a],v[s]=-1!==i.indexOf(","+s+","),p[s]=b(e,s,v[s],o);for(a=x.length;-1<--a;)x[a]=Math.sqrt(x[a]),w[a]=Math.sqrt(w[a]);if(!n){for(a=m.length;-1<--a;)if(v[s])for(f=(u=p[m[a]]).length-1,c=0;c<f;c++)l=u[c+1].da/w[c]+u[c].da/x[c]||0,S[c]=(S[c]||0)+l*l;for(a=S.length;-1<--a;)S[a]=Math.sqrt(S[a])}for(a=m.length,c=r?4:1;-1<--a;)u=p[s=m[a]],_(u,t,r,n,v[s]),h&&(u.splice(0,c),u.splice(u.length-c,c));return p},p=function(e,t,r){for(var n,i,o,a,s,u,c,l,f,h,d,p=1/r,m=e.length;-1<--m;)for(o=(h=e[m]).a,a=h.d-o,s=h.c-o,u=h.b-o,n=i=0,l=1;l<=r;l++)n=i-(i=((c=p*l)*c*a+3*(f=1-c)*(c*s+f*u))*c),t[d=m*r+l-1]=(t[d]||0)+n*n},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(e,t,r){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var n,i,o,a,s,u=t.values||[],c={},l=u[0],f=t.autoRotate||r.vars.orientToBezier;for(n in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,l)this._props.push(n);for(o=this._props.length;-1<--o;)n=this._props[o],this._overwriteProps.push(n),i=this._func[n]="function"==typeof e[n],c[n]=i?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),s||c[n]!==u[0][n]&&(s=c);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?d(u,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,s):function(e,t,r){var n,i,o,a,s,u,c,l,f,h,d,p={},m="cubic"===(t=t||"soft")?3:2,g="soft"===t,v=[];if(g&&r&&(e=[r].concat(e)),null==e||e.length<1+m)throw"invalid Bezier data";for(f in e[0])v.push(f);for(u=v.length;-1<--u;){for(p[f=v[u]]=s=[],h=0,l=e.length,c=0;c<l;c++)n=null==r?e[c][f]:"string"==typeof(d=e[c][f])&&"="===d.charAt(1)?r[f]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&1<c&&c<l-1&&(s[h++]=(n+s[h-2])/2),s[h++]=n;for(l=h-m+1,c=h=0;c<l;c+=m)n=s[c],i=s[c+1],o=s[c+2],a=2==m?0:s[c+3],s[h++]=d=3==m?new y(n,i,o,a):new y(n,(2*i+n)/3,(2*i+o)/3,o);s.length=h}return p}(u,t.type,c),this._segCount=this._beziers[n].length,this._timeRes){var h=function(e,t){var r,n,i,o,a=[],s=[],u=0,c=0,l=(t=t>>0||6)-1,f=[],h=[];for(r in e)p(e[r],a,t);for(i=a.length,n=0;n<i;n++)u+=Math.sqrt(a[n]),h[o=n%t]=u,o===l&&(c+=u,f[o=n/t>>0]=h,s[o]=c,u=0,h=[]);return{length:c,lengths:s,segments:f}}(this._beziers,this._timeRes);this._length=h.length,this._lengths=h.lengths,this._segments=h.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),o=f.length;-1<--o;){for(a=0;a<3;a++)n=f[o][a],this._func[n]="function"==typeof e[n]&&e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[o][2],this._initialRotations[o]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=r.vars.runBackwards?1:0,!0},set:function(e){var t,r,n,i,o,a,s,u,c,l,f=this._segCount,h=this._func,d=this._target,p=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,l=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n<f-1){for(u=f-1;n<u&&(this._l2=c[++n])<=e;);this._l1=c[n-1],this._li=n,this._curSeg=l=this._segments[n],this._s2=l[this._s1=this._si=0]}else if(e<this._l1&&0<n){for(;0<n&&(this._l1=c[--n])>=e;);0===n&&e<this._l1?this._l1=0:n++,this._l2=c[n],this._li=n,this._curSeg=l=this._segments[n],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(t=n,e-=this._l1,n=this._si,e>this._s2&&n<l.length-1){for(u=l.length-1;n<u&&(this._s2=l[++n])<=e;);this._s1=l[n-1],this._si=n}else if(e<this._s1&&0<n){for(;0<n&&(this._s1=l[--n])>=e;);0===n&&e<this._s1?this._s1=0:n++,this._s2=l[n],this._si=n}a=(n+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(e-(t=e<0?0:1<=e?f-1:f*e>>0)*(1/f))*f;for(r=1-a,n=this._props.length;-1<--n;)i=this._props[n],s=(a*a*(o=this._beziers[i][t]).da+3*r*(a*o.ca+r*o.ba))*a+o.a,this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s;if(this._autoRotate){var m,g,v,y,_,b,x,w=this._autoRotate;for(n=w.length;-1<--n;)i=w[n][2],b=w[n][3]||0,x=!0===w[n][4]?1:T,o=this._beziers[w[n][0]],m=this._beziers[w[n][1]],o&&m&&(o=o[t],m=m[t],g=o.a+(o.b-o.a)*a,g+=((y=o.b+(o.c-o.b)*a)-g)*a,y+=(o.c+(o.d-o.c)*a-y)*a,v=m.a+(m.b-m.a)*a,v+=((_=m.b+(m.c-m.b)*a)-v)*a,_+=(m.c+(m.d-m.c)*a-_)*a,s=p?Math.atan2(_-v,y-g)*x+b:this._initialRotations[n],this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s)}}}),e=g.prototype,g.bezierThrough=d,g.cubicToQuadratic=M,g._autoCSS=!0,g.quadraticToCubic=function(e,t,r){return new y(e,(2*t+e)/3,(2*t+r)/3,r)},g._cssRegister=function(){var e=r.CSSPlugin;if(e){var t=e._internals,d=t._parseToProxy,p=t._setPluginRatio,m=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,r,n,i,o){t instanceof Array&&(t={values:t}),o=new g;var a,s,u,c=t.values,l=c.length-1,f=[],h={};if(l<0)return i;for(a=0;a<=l;a++)u=d(e,c[a],n,i,o,l!==a),f[a]=u.end;for(s in t)h[s]=t[s];return h.values=f,(i=new m(e,"bezier",0,0,u.pt,2)).data=u,i.plugin=o,i.setRatio=p,0===h.autoRotate&&(h.autoRotate=!0),!h.autoRotate||h.autoRotate instanceof Array||(a=!0===h.autoRotate?0:Number(h.autoRotate),h.autoRotate=null!=u.end.left?[["left","top","rotation",a,!1]]:null!=u.end.x&&[["x","y","rotation",a,!1]]),h.autoRotate&&(n._transform||n._enableTransforms(!1),u.autoRotate=n._target._gsTransform,u.proxy.rotation=u.autoRotate.rotation||0,n._overwriteProps.push("rotation")),o._onInitTween(u.proxy,h,n._tween),i}})}},e._mod=function(e){for(var t,r=this._overwriteProps,n=r.length;-1<--n;)(t=e[r[n]])&&"function"==typeof t&&(this._mod[r[n]]=t)},e._kill=function(e){var t,r,n=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],r=n.length;-1<--r;)n[r]===t&&n.splice(r,1);if(n=this._autoRotate)for(r=n.length;-1<--r;)e[n[r][2]]&&n.splice(r,1);return this._super._kill.call(this,e)},_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(o,z){var p,S,M,m,U=function(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=U.prototype.setRatio},c=_gsScope._gsDefine.globals,g={},e=U.prototype=new o("css");(e.constructor=U).version="2.1.0",U.API=2,U.defaultTransformPerspective=0,U.defaultSkewType="compensated",U.defaultSmoothOrigin=!0,e="px",U.suffixMap={top:e,right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""};var E,v,y,j,_,P,C,k,t,r,A=/(?:\-|\.|\b)(\d|\.|e\-)+/g,O=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,l=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,R=/(?:\d|\-|\+|=|#|\.)*/g,I=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,a=/alpha\(opacity *=.+?\)/i,w=/^(rgb|hsl)/,s=/([A-Z])/g,u=/-([a-z])/gi,T=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,f=function(e,t){return t.toUpperCase()},d=/(?:Left|Right|Width)/i,h=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,N=/[\s,\(]/i,F=Math.PI/180,X=180/Math.PI,B={},n={style:{}},q=_gsScope.document||{createElement:function(){return n}},H=function(e,t){return t&&q.createElementNS?q.createElementNS(t,e):q.createElement(e)},Y=H("div"),G=H("img"),i=U._internals={_specialProps:g},W=(_gsScope.navigator||{}).userAgent||"",V=(t=W.indexOf("Android"),r=H("a"),y=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||3<parseFloat(W.substr(t+8,2))),_=y&&parseFloat(W.substr(W.indexOf("Version/")+8,2))<6,j=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(W)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(W))&&(P=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),K=function(e){return I.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},J=function(e){_gsScope.console&&console.log(e)},Z="",Q="",$=function(e,t){var r,n,i=(t=t||Y).style;if(void 0!==i[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),r=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===i[r[n]+e];);return 0<=n?(Z="-"+(Q=3===n?"ms":r[n]).toLowerCase()+"-",Q+e):null},ee="undefined"!=typeof window?window:q.defaultView||{getComputedStyle:function(){}},te=function(e){return ee.getComputedStyle(e)},re=U.getStyle=function(e,t,r,n,i){var o;return V||"opacity"!==t?(!n&&e.style[t]?o=e.style[t]:(r=r||te(e))?o=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(s,"-$1").toLowerCase()):e.currentStyle&&(o=e.currentStyle[t]),null==i||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:i):K(e)},ne=i.convertToPixels=function(e,t,r,n,i){if("px"===n||!n&&"lineHeight"!==t)return r;if("auto"===n||!r)return 0;var o,a,s,u=d.test(t),c=e,l=Y.style,f=r<0,h=1===r;if(f&&(r=-r),h&&(r*=100),"lineHeight"!==t||n)if("%"===n&&-1!==t.indexOf("border"))o=r/100*(u?e.clientWidth:e.clientHeight);else{if(l.cssText="border:0 solid red;position:"+re(e,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)l[u?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(c=e.parentNode||q.body,-1!==re(c,"display").indexOf("flex")&&(l.position="absolute"),a=c._gsCache,s=z.ticker.frame,a&&u&&a.time===s)return a.width*r/100;l[u?"width":"height"]=r+n}c.appendChild(Y),o=parseFloat(Y[u?"offsetWidth":"offsetHeight"]),c.removeChild(Y),u&&"%"===n&&!1!==U.cacheWidths&&((a=c._gsCache=c._gsCache||{}).time=s,a.width=o/r*100),0!==o||i||(o=ne(e,t,r,n,!0))}else a=te(e).lineHeight,e.style.lineHeight=r,o=parseFloat(te(e).lineHeight),e.style.lineHeight=a;return h&&(o/=100),f?-o:o},ie=i.calculateOffset=function(e,t,r){if("absolute"!==re(e,"position",r))return 0;var n="left"===t?"Left":"Top",i=re(e,"margin"+n,r);return e["offset"+n]-(ne(e,t,parseFloat(i),i.replace(R,""))||0)},oe=function(e,t){var r,n,i,o={};if(t=t||te(e))if(r=t.length)for(;-1<--r;)-1!==(i=t[r]).indexOf("-transform")&&Ne!==i||(o[i.replace(u,f)]=t.getPropertyValue(i));else for(r in t)-1!==r.indexOf("Transform")&&Le!==r||(o[r]=t[r]);else if(t=e.currentStyle||e.style)for(r in t)"string"==typeof r&&void 0===o[r]&&(o[r.replace(u,f)]=t[r]);return V||(o.opacity=K(e)),n=Ke(e,t,!1),o.rotation=n.rotation,o.skewX=n.skewX,o.scaleX=n.scaleX,o.scaleY=n.scaleY,o.x=n.x,o.y=n.y,Fe&&(o.z=n.z,o.rotationX=n.rotationX,o.rotationY=n.rotationY,o.scaleZ=n.scaleZ),o.filters&&delete o.filters,o},ae=function(e,t,r,n,i){var o,a,s,u={},c=e.style;for(a in r)"cssText"!==a&&"length"!==a&&isNaN(a)&&(t[a]!==(o=r[a])||i&&i[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(u[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof t[a]||""===t[a].replace(l,"")?o:0:ie(e,a),void 0!==c[a]&&(s=new xe(c,a,c[a],s))));if(n)for(a in n)"className"!==a&&(u[a]=n[a]);return{difs:u,firstMPT:s}},se={width:["Left","Right"],height:["Top","Bottom"]},ue=["marginLeft","marginRight","marginTop","marginBottom"],ce=function(e,t,r){if("svg"===(e.nodeName+"").toLowerCase())return(r||te(e))[t]||0;if(e.getCTM&&Ge(e))return e.getBBox()[t]||0;var n=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),i=se[t],o=i.length;for(r=r||te(e);-1<--o;)n-=parseFloat(re(e,"padding"+i[o],r,!0))||0,n-=parseFloat(re(e,"border"+i[o]+"Width",r,!0))||0;return n},le=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var r,n=e.split(" "),i=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":n[0],o=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":n[1];if(3<n.length&&!t){for(n=e.split(", ").join(",").split(","),e=[],r=0;r<n.length;r++)e.push(le(n[r]));return e.join(",")}return null==o?o="center"===i?"50%":"0":"center"===o&&(o="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),e=i+" "+o+(2<n.length?" "+n[2]:""),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==o.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===o.charAt(1),t.ox=parseFloat(i.replace(l,"")),t.oy=parseFloat(o.replace(l,"")),t.v=e),t||e},fe=function(e,t){return"function"==typeof e&&(e=e(k,C)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},he=function(e,t){"function"==typeof e&&(e=e(k,C));var r="string"==typeof e&&"="===e.charAt(1);return"string"==typeof e&&"v"===e.charAt(e.length-2)&&(e=(r?e.substr(0,2):0)+window["inner"+("vh"===e.substr(-2)?"Height":"Width")]*(parseFloat(r?e.substr(2):e)/100)),null==e?t:r?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},de=function(e,t,r,n){var i,o,a,s;return"function"==typeof e&&(e=e(k,C)),(a=null==e?t:"number"==typeof e?e:(360,i=e.split("_"),o=((s="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(i[0].substr(2)):parseFloat(i[0]))*(-1===e.indexOf("rad")?1:X)-(s?0:t),i.length&&(n&&(n[r]=t+o),-1!==e.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==e.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==e.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%360-360*(o/360|0))),t+o))<1e-6&&-1e-6<a&&(a=0),a},pe={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},me=function(e,t,r){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},ge=U.parseColor=function(e,t){var r,n,i,o,a,s,u,c,l,f,h;if(e)if("number"==typeof e)r=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),pe[e])r=pe[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(n=e.charAt(1))+n+(i=e.charAt(2))+i+(o=e.charAt(3))+o),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=h=e.match(A),t){if(-1!==e.indexOf("="))return e.match(O)}else a=Number(r[0])%360/360,s=Number(r[1])/100,n=2*(u=Number(r[2])/100)-(i=u<=.5?u*(s+1):u+s-u*s),3<r.length&&(r[3]=Number(r[3])),r[0]=me(a+1/3,n,i),r[1]=me(a,n,i),r[2]=me(a-1/3,n,i);else r=e.match(A)||pe.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=pe.black;return t&&!h&&(n=r[0]/255,i=r[1]/255,o=r[2]/255,u=((c=Math.max(n,i,o))+(l=Math.min(n,i,o)))/2,c===l?a=s=0:(f=c-l,s=.5<u?f/(2-c-l):f/(c+l),a=c===n?(i-o)/f+(i<o?6:0):c===i?(o-n)/f+2:(n-i)/f+4,a*=60),r[0]=a+.5|0,r[1]=100*s+.5|0,r[2]=100*u+.5|0),r},ve=function(e,t){var r,n,i,o=e.match(ye)||[],a=0,s="";if(!o.length)return e;for(r=0;r<o.length;r++)n=o[r],a+=(i=e.substr(a,e.indexOf(n,a)-a)).length+n.length,3===(n=ge(n,t)).length&&n.push(1),s+=i+(t?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return s+e.substr(a)},ye="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in pe)ye+="|"+e+"\\b";ye=new RegExp(ye+")","gi"),U.colorStringFilter=function(e){var t,r=e[0]+" "+e[1];ye.test(r)&&(t=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),e[0]=ve(e[0],t),e[1]=ve(e[1],t)),ye.lastIndex=0},z.defaultStringFilter||(z.defaultStringFilter=U.colorStringFilter);var _e=function(e,t,o,a){if(null==e)return function(e){return e};var s,u=t?(e.match(ye)||[""])[0]:"",c=e.split(u).join("").match(b)||[],l=e.substr(0,e.indexOf(c[0])),f=")"===e.charAt(e.length-1)?")":"",h=-1!==e.indexOf(" ")?" ":",",d=c.length,p=0<d?c[0].replace(A,""):"";return d?s=t?function(e){var t,r,n,i;if("number"==typeof e)e+=p;else if(a&&L.test(e)){for(i=e.replace(L,"|").split("|"),n=0;n<i.length;n++)i[n]=s(i[n]);return i.join(",")}if(t=(e.match(ye)||[u])[0],n=(r=e.split(t).join("").match(b)||[]).length,d>n--)for(;++n<d;)r[n]=o?r[(n-1)/2|0]:c[n];return l+r.join(h)+h+t+f+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,r,n;if("number"==typeof e)e+=p;else if(a&&L.test(e)){for(r=e.replace(L,"|").split("|"),n=0;n<r.length;n++)r[n]=s(r[n]);return r.join(",")}if(n=(t=e.match(b)||[]).length,d>n--)for(;++n<d;)t[n]=o?t[(n-1)/2|0]:c[n];return l+t.join(h)+f}:function(e){return e}},be=function(c){return c=c.split(","),function(e,t,r,n,i,o,a){var s,u=(t+"").split(" ");for(a={},s=0;s<4;s++)a[c[s]]=u[s]=u[s]||u[(s-1)/2>>0];return n.parse(e,a,i,o)}},xe=(i._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,r,n,i,o,a=this.data,s=a.proxy,u=a.firstMPT;u;)t=s[u.v],u.r?t=u.r(t):t<1e-6&&-1e-6<t&&(t=0),u.t[u.p]=t,u=u._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===e||0===e)for(u=a.firstMPT,o=1===e?"e":"b";u;){if((r=u.t).type){if(1===r.type){for(i=r.xs0+r.s+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r[o]=i}}else r[o]=r.s+r.xs0;u=u._next}},function(e,t,r,n,i){this.t=e,this.p=t,this.v=r,this.r=i,n&&((n._prev=this)._next=n)}),we=(i._parseToProxy=function(e,t,r,n,i,o){var a,s,u,c,l,f=n,h={},d={},p=r._transform,m=B;for(r._transform=null,B=t,n=l=r.parse(e,t,n,i),B=m,o&&(r._transform=p,f&&(f._prev=null,f._prev&&(f._prev._next=null)));n&&n!==f;){if(n.type<=1&&(d[s=n.p]=n.s+n.c,h[s]=n.s,o||(c=new xe(n,"s",s,c,n.r),n.c=0),1===n.type))for(a=n.l;0<--a;)u="xn"+a,d[s=n.p+"_"+u]=n.data[u],h[s]=n[u],o||(c=new xe(n,u,s,c,n.rxp[u]));n=n._next}return{proxy:h,end:d,firstMPT:c,pt:l}},i.CSSPropTween=function(e,t,r,n,i,o,a,s,u,c,l){this.t=e,this.p=t,this.s=r,this.c=n,this.n=a||t,e instanceof we||m.push(this.n),this.r=s?"function"==typeof s?s:Math.round:s,this.type=o||0,u&&(this.pr=u,p=!0),this.b=void 0===c?r:c,this.e=void 0===l?r+n:l,i&&((this._next=i)._prev=this)}),Te=function(e,t,r,n,i,o){var a=new we(e,t,r,n-r,i,-1,o);return a.b=r,a.e=a.xs0=n,a},Se=U.parseComplex=function(e,t,r,n,i,o,a,s,u,c){r=r||o||"","function"==typeof n&&(n=n(k,C)),a=new we(e,t,0,0,a,c?2:1,null,!1,s,r,n),n+="",i&&ye.test(n+r)&&(n=[r,n],U.colorStringFilter(n),r=n[0],n=n[1]);var l,f,h,d,p,m,g,v,y,_,b,x,w,T=r.split(", ").join(",").split(" "),S=n.split(", ").join(",").split(" "),M=T.length,P=!1!==E;for(-1===n.indexOf(",")&&-1===r.indexOf(",")||(S=-1!==(n+r).indexOf("rgb")||-1!==(n+r).indexOf("hsl")?(T=T.join(" ").replace(L,", ").split(" "),S.join(" ").replace(L,", ").split(" ")):(T=T.join(" ").split(",").join(", ").split(" "),S.join(" ").split(",").join(", ").split(" ")),M=T.length),M!==S.length&&(M=(T=(o||"").split(" ")).length),a.plugin=u,a.setRatio=c,l=ye.lastIndex=0;l<M;l++)if(d=T[l],p=S[l]+"",(v=parseFloat(d))||0===v)a.appendXtra("",v,fe(p,v),p.replace(O,""),P&&-1!==p.indexOf("px")&&Math.round,!0);else if(i&&ye.test(d))x=")"+((x=p.indexOf(")")+1)?p.substr(x):""),w=-1!==p.indexOf("hsl")&&V,_=p,d=ge(d,w),p=ge(p,w),(y=6<d.length+p.length)&&!V&&0===p[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(S[l]).join("transparent")):(V||(y=!1),w?a.appendXtra(_.substr(0,_.indexOf("hsl"))+(y?"hsla(":"hsl("),d[0],fe(p[0],d[0]),",",!1,!0).appendXtra("",d[1],fe(p[1],d[1]),"%,",!1).appendXtra("",d[2],fe(p[2],d[2]),y?"%,":"%"+x,!1):a.appendXtra(_.substr(0,_.indexOf("rgb"))+(y?"rgba(":"rgb("),d[0],p[0]-d[0],",",Math.round,!0).appendXtra("",d[1],p[1]-d[1],",",Math.round).appendXtra("",d[2],p[2]-d[2],y?",":x,Math.round),y&&(d=d.length<4?1:d[3],a.appendXtra("",d,(p.length<4?1:p[3])-d,x,!1))),ye.lastIndex=0;else if(m=d.match(A)){if(!(g=p.match(O))||g.length!==m.length)return a;for(f=h=0;f<m.length;f++)b=m[f],_=d.indexOf(b,h),a.appendXtra(d.substr(h,_-h),Number(b),fe(g[f],b),"",P&&"px"===d.substr(_+b.length,2)&&Math.round,0===f),h=_+b.length;a["xs"+a.l]+=d.substr(h)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+p:p;if(-1!==n.indexOf("=")&&a.data){for(x=a.xs0+a.data.s,l=1;l<a.l;l++)x+=a["xs"+l]+a.data["xn"+l];a.e=x+a["xs"+l]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Me=9;for((e=we.prototype).l=e.pr=0;0<--Me;)e["xn"+Me]=0,e["xs"+Me]="";e.xs0="",e._next=e._prev=e.xfirst=e.data=e.plugin=e.setRatio=e.rxp=null,e.appendXtra=function(e,t,r,n,i,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+e:e||"",r||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",0<s?(a.data["xn"+s]=t+r,a.rxp["xn"+s]=i,a["xn"+s]=t,a.plugin||(a.xfirst=new we(a,"xn"+s,t,r,a.xfirst||a,0,a.n,i,a.pr),a.xfirst.xs0=0)):(a.data={s:t+r},a.rxp={},a.s=t,a.c=r,a.r=i),a):(a["xs"+s]+=t+(n||""),a)};var Pe=function(e,t){t=t||{},this.p=t.prefix&&$(e)||e,g[e]=g[this.p]=this,this.format=t.formatter||_e(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.allowFunc=t.allowFunc,this.pr=t.priority||0},Ee=i._registerComplexSpecialProp=function(e,t,r){"object"!=typeof t&&(t={parser:r});var n,i=e.split(","),o=t.defaultValue;for(r=r||[o],n=0;n<i.length;n++)t.prefix=0===n&&t.prefix,t.defaultValue=r[n]||o,new Pe(i[n],t)},Ce=i._registerPluginProp=function(e){if(!g[e]){var u=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Ee(e,{parser:function(e,t,r,n,i,o,a){var s=c.com.greensock.plugins[u];return s?(s._cssRegister(),g[r].parse(e,t,r,n,i,o,a)):(J("Error: "+u+" js file not loaded."),i)}})}};(e=Pe.prototype).parseComplex=function(e,t,r,n,i,o){var a,s,u,c,l,f,h=this.keyword;if(this.multi&&(L.test(r)||L.test(t)?(s=t.replace(L,"|").split("|"),u=r.replace(L,"|").split("|")):h&&(s=[t],u=[r])),u){for(c=u.length>s.length?u.length:s.length,a=0;a<c;a++)t=s[a]=s[a]||this.dflt,r=u[a]=u[a]||this.dflt,h&&(l=t.indexOf(h))!==(f=r.indexOf(h))&&(-1===f?s[a]=s[a].split(h).join(""):-1===l&&(s[a]+=" "+h));t=s.join(", "),r=u.join(", ")}return Se(e,this.p,t,r,this.clrs,this.dflt,n,this.pr,i,o)},e.parse=function(e,t,r,n,i,o,a){return this.parseComplex(e.style,this.format(re(e,this.p,M,!1,this.dflt)),this.format(t),i,o)},U.registerSpecialProp=function(e,u,c){Ee(e,{parser:function(e,t,r,n,i,o,a){var s=new we(e,r,0,0,i,2,r,!1,c);return s.plugin=o,s.setRatio=u(e,t,n._tween,r),s},priority:c})},U.useSVGTransformAttr=!0;var ke,Ae,Oe,Re,Ie,De="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Le=$("transform"),Ne=Z+"transform",je=$("transformOrigin"),Fe=null!==$("perspective"),Be=i.Transform=function(){this.perspective=parseFloat(U.defaultTransformPerspective)||0,this.force3D=!(!1===U.defaultForce3D||!Fe)&&(U.defaultForce3D||"auto")},ze=_gsScope.SVGElement,Ue=function(e,t,r){var n,i=q.createElementNS("http://www.w3.org/2000/svg",e),o=/([a-z])([A-Z])/g;for(n in r)i.setAttributeNS(null,n.replace(o,"$1-$2").toLowerCase(),r[n]);return t.appendChild(i),i},Xe=q.documentElement||{},qe=(Ie=P||/Android/i.test(W)&&!_gsScope.chrome,q.createElementNS&&!Ie&&(Ae=Ue("svg",Xe),Re=(Oe=Ue("rect",Ae,{width:100,height:50,x:100})).getBoundingClientRect().width,Oe.style[je]="50% 50%",Oe.style[Le]="scaleX(0.5)",Ie=Re===Oe.getBoundingClientRect().width&&!(j&&Fe),Xe.removeChild(Ae)),Ie),He=function(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p,m,g,v,y,_,b=e._gsTransform,x=Ve(e,!0);b&&(y=b.xOrigin,_=b.yOrigin),(!n||(a=n.split(" ")).length<2)&&(0===(h=e.getBBox()).x&&0===h.y&&h.width+h.height===0&&(h={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(t=le(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*h.width:parseFloat(t[0]))+h.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*h.height:parseFloat(t[1]))+h.y]),r.xOrigin=c=parseFloat(a[0]),r.yOrigin=l=parseFloat(a[1]),n&&x!==We&&(f=x[0],h=x[1],d=x[2],p=x[3],m=x[4],g=x[5],(v=f*p-h*d)&&(s=c*(p/v)+l*(-d/v)+(d*g-p*m)/v,u=c*(-h/v)+l*(f/v)-(f*g-h*m)/v,c=r.xOrigin=a[0]=s,l=r.yOrigin=a[1]=u)),b&&(o&&(r.xOffset=b.xOffset,r.yOffset=b.yOffset,b=r),i||!1!==i&&!1!==U.defaultSmoothOrigin?(s=c-y,u=l-_,b.xOffset+=s*x[0]+u*x[2]-s,b.yOffset+=s*x[1]+u*x[3]-u):b.xOffset=b.yOffset=0),o||e.setAttribute("data-svg-origin",a.join(" "))},Ye=function(e){var t,r=H("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,o=this.style.cssText;if(Xe.appendChild(r),r.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ye}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return i?n.insertBefore(this,i):n.appendChild(this),Xe.removeChild(r),this.style.cssText=o,t},Ge=function(e){return!(!ze||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return Ye.call(t,!0)}}(e))},We=[1,0,0,1,0,0],Ve=function(e,t){var r,n,i,o,a,s,u,c=e._gsTransform||new Be,l=e.style;if(Le?n=re(e,Ne,null,!0):e.currentStyle&&(n=(n=e.currentStyle.filter.match(h))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),c.x||0,c.y||0].join(","):""),r=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,Le&&r&&!e.offsetParent&&(o=l.display,l.display="block",(u=e.parentNode)&&e.offsetParent||(a=1,s=e.nextSibling,Xe.appendChild(e)),r=!(n=re(e,Ne,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,o?l.display=o:$e(l,"display"),a&&(s?u.insertBefore(e,s):u?u.appendChild(e):Xe.removeChild(e))),(c.svg||e.getCTM&&Ge(e))&&(r&&-1!==(l[Le]+"").indexOf("matrix")&&(n=l[Le],r=0),i=e.getAttribute("transform"),r&&i&&(n="matrix("+(i=e.transform.baseVal.consolidate().matrix).a+","+i.b+","+i.c+","+i.d+","+i.e+","+i.f+")",r=0)),r)return We;for(i=(n||"").match(A)||[],Me=i.length;-1<--Me;)o=Number(i[Me]),i[Me]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return t&&6<i.length?[i[0],i[1],i[4],i[5],i[12],i[13]]:i},Ke=i.getTransform=function(e,t,r,n){if(e._gsTransform&&r&&!n)return e._gsTransform;var i,o,a,s,u,c,l=r&&e._gsTransform||new Be,f=l.scaleX<0,h=Fe&&(parseFloat(re(e,je,t,!1,"0 0 0").split(" ")[2])||l.zOrigin)||0,d=parseFloat(U.defaultTransformPerspective)||0;if(l.svg=!(!e.getCTM||!Ge(e)),l.svg&&(He(e,re(e,je,t,!1,"50% 50%")+"",l,e.getAttribute("data-svg-origin")),ke=U.useSVGTransformAttr||qe),(i=Ve(e))!==We){if(16===i.length){var p,m,g,v,y,_=i[0],b=i[1],x=i[2],w=i[3],T=i[4],S=i[5],M=i[6],P=i[7],E=i[8],C=i[9],k=i[10],A=i[12],O=i[13],R=i[14],I=i[11],D=Math.atan2(M,k);l.zOrigin&&(A=E*(R=-l.zOrigin)-i[12],O=C*R-i[13],R=k*R+l.zOrigin-i[14]),l.rotationX=D*X,D&&(p=T*(v=Math.cos(-D))+E*(y=Math.sin(-D)),m=S*v+C*y,g=M*v+k*y,E=T*-y+E*v,C=S*-y+C*v,k=M*-y+k*v,I=P*-y+I*v,T=p,S=m,M=g),D=Math.atan2(-x,k),l.rotationY=D*X,D&&(m=b*(v=Math.cos(-D))-C*(y=Math.sin(-D)),g=x*v-k*y,C=b*y+C*v,k=x*y+k*v,I=w*y+I*v,_=p=_*v-E*y,b=m,x=g),D=Math.atan2(b,_),l.rotation=D*X,D&&(p=_*(v=Math.cos(D))+b*(y=Math.sin(D)),m=T*v+S*y,g=E*v+C*y,b=b*v-_*y,S=S*v-T*y,C=C*v-E*y,_=p,T=m,E=g),l.rotationX&&359.9<Math.abs(l.rotationX)+Math.abs(l.rotation)&&(l.rotationX=l.rotation=0,l.rotationY=180-l.rotationY),D=Math.atan2(T,S),l.scaleX=(1e5*Math.sqrt(_*_+b*b+x*x)+.5|0)/1e5,l.scaleY=(1e5*Math.sqrt(S*S+M*M)+.5|0)/1e5,l.scaleZ=(1e5*Math.sqrt(E*E+C*C+k*k)+.5|0)/1e5,_/=l.scaleX,T/=l.scaleY,b/=l.scaleX,S/=l.scaleY,2e-5<Math.abs(D)?(l.skewX=D*X,T=0,"simple"!==l.skewType&&(l.scaleY*=1/Math.cos(D))):l.skewX=0,l.perspective=I?1/(I<0?-I:I):0,l.x=A,l.y=O,l.z=R,l.svg&&(l.x-=l.xOrigin-(l.xOrigin*_-l.yOrigin*T),l.y-=l.yOrigin-(l.yOrigin*b-l.xOrigin*S))}else if(!Fe||n||!i.length||l.x!==i[4]||l.y!==i[5]||!l.rotationX&&!l.rotationY){var L=6<=i.length,N=L?i[0]:1,j=i[1]||0,F=i[2]||0,B=L?i[3]:1;l.x=i[4]||0,l.y=i[5]||0,a=Math.sqrt(N*N+j*j),s=Math.sqrt(B*B+F*F),u=N||j?Math.atan2(j,N)*X:l.rotation||0,c=F||B?Math.atan2(F,B)*X+u:l.skewX||0,l.scaleX=a,l.scaleY=s,l.rotation=u,l.skewX=c,Fe&&(l.rotationX=l.rotationY=l.z=0,l.perspective=d,l.scaleZ=1),l.svg&&(l.x-=l.xOrigin-(l.xOrigin*N+l.yOrigin*F),l.y-=l.yOrigin-(l.xOrigin*j+l.yOrigin*B))}for(o in 90<Math.abs(l.skewX)&&Math.abs(l.skewX)<270&&(f?(l.scaleX*=-1,l.skewX+=l.rotation<=0?180:-180,l.rotation+=l.rotation<=0?180:-180):(l.scaleY*=-1,l.skewX+=l.skewX<=0?180:-180)),l.zOrigin=h,l)l[o]<2e-5&&-2e-5<l[o]&&(l[o]=0)}return r&&(e._gsTransform=l).svg&&(ke&&e.style[Le]?z.delayedCall(.001,function(){$e(e.style,Le)}):!ke&&e.getAttribute("transform")&&z.delayedCall(.001,function(){e.removeAttribute("transform")})),l},Je=function(e){var t,r,n=this.data,i=-n.rotation*F,o=i+n.skewX*F,a=(Math.cos(i)*n.scaleX*1e5|0)/1e5,s=(Math.sin(i)*n.scaleX*1e5|0)/1e5,u=(Math.sin(o)*-n.scaleY*1e5|0)/1e5,c=(Math.cos(o)*n.scaleY*1e5|0)/1e5,l=this.t.style,f=this.t.currentStyle;if(f){r=s,s=-u,u=-r,t=f.filter,l.filter="";var h,d,p=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==f.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+s+", M21="+u+", M22="+c,y=n.x+p*n.xPercent/100,_=n.y+m*n.yPercent/100;if(null!=n.ox&&(y+=(h=(n.oxp?p*n.ox*.01:n.ox)-p/2)-(h*a+(d=(n.oyp?m*n.oy*.01:n.oy)-m/2)*s),_+=d-(h*u+d*c)),v+=g?", Dx="+((h=p/2)-(h*a+(d=m/2)*s)+y)+", Dy="+(d-(h*u+d*c)+_)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=t.replace(D,v):l.filter=v+" "+t,0!==e&&1!==e||1==a&&0===s&&0===u&&1==c&&(g&&-1===v.indexOf("Dx=0, Dy=0")||I.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&l.removeAttribute("filter")),!g){var b,x,w,T=P<8?1:-1;for(h=n.ieOffsetX||0,d=n.ieOffsetY||0,n.ieOffsetX=Math.round((p-((a<0?-a:a)*p+(s<0?-s:s)*m))/2+y),n.ieOffsetY=Math.round((m-((c<0?-c:c)*m+(u<0?-u:u)*p))/2+_),Me=0;Me<4;Me++)w=(r=-1!==(b=f[x=ue[Me]]).indexOf("px")?parseFloat(b):ne(this.t,x,parseFloat(b),b.replace(R,""))||0)!==n[x]?Me<2?-n.ieOffsetX:-n.ieOffsetY:Me<2?h-n.ieOffsetX:d-n.ieOffsetY,l[x]=(n[x]=Math.round(r-w*(0===Me||2===Me?1:T)))+"px"}}},Ze=i.set3DTransformRatio=i.setTransformRatio=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,y,_,b,x=this.data,w=this.t.style,T=x.rotation,S=x.rotationX,M=x.rotationY,P=x.scaleX,E=x.scaleY,C=x.scaleZ,k=x.x,A=x.y,O=x.z,R=x.svg,I=x.perspective,D=x.force3D,L=x.skewY,N=x.skewX;if(L&&(N+=L,T+=L),!((1!==e&&0!==e||"auto"!==D||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&D||O||I||M||S||1!==C)||ke&&R||!Fe)T||N||R?(T*=F,b=N*F,1e5,r=Math.cos(T)*P,o=Math.sin(T)*P,n=Math.sin(T-b)*-E,a=Math.cos(T-b)*E,b&&"simple"===x.skewType&&(t=Math.tan(b-L*F),n*=t=Math.sqrt(1+t*t),a*=t,L&&(t=Math.tan(L*F),r*=t=Math.sqrt(1+t*t),o*=t)),R&&(k+=x.xOrigin-(x.xOrigin*r+x.yOrigin*n)+x.xOffset,A+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset,ke&&(x.xPercent||x.yPercent)&&(m=this.t.getBBox(),k+=.01*x.xPercent*m.width,A+=.01*x.yPercent*m.height),k<(m=1e-6)&&-m<k&&(k=0),A<m&&-m<A&&(A=0)),_=(1e5*r|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*n|0)/1e5+","+(1e5*a|0)/1e5+","+k+","+A+")",R&&ke?this.t.setAttribute("transform","matrix("+_):w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+_):w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+P+",0,0,"+E+","+k+","+A+")";else{if(j&&(P<(m=1e-4)&&-m<P&&(P=C=2e-5),E<m&&-m<E&&(E=C=2e-5),!I||x.z||x.rotationX||x.rotationY||(I=0)),T||N)T*=F,g=r=Math.cos(T),v=o=Math.sin(T),N&&(T-=N*F,g=Math.cos(T),v=Math.sin(T),"simple"===x.skewType&&(t=Math.tan((N-L)*F),g*=t=Math.sqrt(1+t*t),v*=t,x.skewY&&(t=Math.tan(L*F),r*=t=Math.sqrt(1+t*t),o*=t))),n=-v,a=g;else{if(!(M||S||1!==C||I||R))return void(w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+A+"px,"+O+"px)"+(1!==P||1!==E?" scale("+P+","+E+")":""));r=a=1,n=o=0}l=1,i=s=u=c=f=h=0,d=I?-1/I:0,p=x.zOrigin,m=1e-6,",","0",(T=M*F)&&(g=Math.cos(T),f=d*(u=-(v=Math.sin(T))),i=r*v,s=o*v,d*=l=g,r*=g,o*=g),(T=S*F)&&(t=n*(g=Math.cos(T))+i*(v=Math.sin(T)),y=a*g+s*v,c=l*v,h=d*v,i=n*-v+i*g,s=a*-v+s*g,l*=g,d*=g,n=t,a=y),1!==C&&(i*=C,s*=C,l*=C,d*=C),1!==E&&(n*=E,a*=E,c*=E,h*=E),1!==P&&(r*=P,o*=P,u*=P,f*=P),(p||R)&&(p&&(k+=i*-p,A+=s*-p,O+=l*-p+p),R&&(k+=x.xOrigin-(x.xOrigin*r+x.yOrigin*n)+x.xOffset,A+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset),k<m&&-m<k&&(k="0"),A<m&&-m<A&&(A="0"),O<m&&-m<O&&(O=0)),_=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",_+=(r<m&&-m<r?"0":r)+","+(o<m&&-m<o?"0":o)+","+(u<m&&-m<u?"0":u),_+=","+(f<m&&-m<f?"0":f)+","+(n<m&&-m<n?"0":n)+","+(a<m&&-m<a?"0":a),S||M||1!==C?(_+=","+(c<m&&-m<c?"0":c)+","+(h<m&&-m<h?"0":h)+","+(i<m&&-m<i?"0":i),_+=","+(s<m&&-m<s?"0":s)+","+(l<m&&-m<l?"0":l)+","+(d<m&&-m<d?"0":d)+","):_+=",0,0,0,0,1,0,",_+=k+","+A+","+O+","+(I?1+-O/I:1)+")",w[Le]=_}};(e=Be.prototype).x=e.y=e.z=e.skewX=e.skewY=e.rotation=e.rotationX=e.rotationY=e.zOrigin=e.xPercent=e.yPercent=e.xOffset=e.yOffset=0,e.scaleX=e.scaleY=e.scaleZ=1,Ee("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,r,n,i,o,a){if(n._lastParsedTransform===a)return i;var s=(n._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;s&&(a.scale=s(k,e));var u,c,l,f,h,d,p,m,g,v=e._gsTransform,y=e.style,_=De.length,b=a,x={},w="transformOrigin",T=Ke(e,M,!0,b.parseTransform),S=b.transform&&("function"==typeof b.transform?b.transform(k,C):b.transform);if(T.skewType=b.skewType||T.skewType||U.defaultSkewType,n._transform=T,"rotationZ"in b&&(b.rotation=b.rotationZ),S&&"string"==typeof S&&Le)(c=Y.style)[Le]=S,c.display="block",c.position="absolute",-1!==S.indexOf("%")&&(c.width=re(e,"width"),c.height=re(e,"height")),q.body.appendChild(Y),u=Ke(Y,null,!1),"simple"===T.skewType&&(u.scaleY*=Math.cos(u.skewX*F)),T.svg&&(d=T.xOrigin,p=T.yOrigin,u.x-=T.xOffset,u.y-=T.yOffset,(b.transformOrigin||b.svgOrigin)&&(S={},He(e,le(b.transformOrigin),S,b.svgOrigin,b.smoothOrigin,!0),d=S.xOrigin,p=S.yOrigin,u.x-=S.xOffset-T.xOffset,u.y-=S.yOffset-T.yOffset),(d||p)&&(m=Ve(Y,!0),u.x-=d-(d*m[0]+p*m[2]),u.y-=p-(d*m[1]+p*m[3]))),q.body.removeChild(Y),u.perspective||(u.perspective=T.perspective),null!=b.xPercent&&(u.xPercent=he(b.xPercent,T.xPercent)),null!=b.yPercent&&(u.yPercent=he(b.yPercent,T.yPercent));else if("object"==typeof b){if(u={scaleX:he(null!=b.scaleX?b.scaleX:b.scale,T.scaleX),scaleY:he(null!=b.scaleY?b.scaleY:b.scale,T.scaleY),scaleZ:he(b.scaleZ,T.scaleZ),x:he(b.x,T.x),y:he(b.y,T.y),z:he(b.z,T.z),xPercent:he(b.xPercent,T.xPercent),yPercent:he(b.yPercent,T.yPercent),perspective:he(b.transformPerspective,T.perspective)},null!=(h=b.directionalRotation))if("object"==typeof h)for(c in h)b[c]=h[c];else b.rotation=h;"string"==typeof b.x&&-1!==b.x.indexOf("%")&&(u.x=0,u.xPercent=he(b.x,T.xPercent)),"string"==typeof b.y&&-1!==b.y.indexOf("%")&&(u.y=0,u.yPercent=he(b.y,T.yPercent)),u.rotation=de("rotation"in b?b.rotation:"shortRotation"in b?b.shortRotation+"_short":T.rotation,T.rotation,"rotation",x),Fe&&(u.rotationX=de("rotationX"in b?b.rotationX:"shortRotationX"in b?b.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",x),u.rotationY=de("rotationY"in b?b.rotationY:"shortRotationY"in b?b.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",x)),u.skewX=de(b.skewX,T.skewX),u.skewY=de(b.skewY,T.skewY)}for(Fe&&null!=b.force3D&&(T.force3D=b.force3D,f=!0),(l=T.force3D||T.z||T.rotationX||T.rotationY||u.z||u.rotationX||u.rotationY||u.perspective)||null==b.scale||(u.scaleZ=1);-1<--_;)(1e-6<(S=u[g=De[_]]-T[g])||S<-1e-6||null!=b[g]||null!=B[g])&&(f=!0,i=new we(T,g,T[g],S,i),g in x&&(i.e=x[g]),i.xs0=0,i.plugin=o,n._overwriteProps.push(i.n));return S="function"==typeof b.transformOrigin?b.transformOrigin(k,C):b.transformOrigin,T.svg&&(S||b.svgOrigin)&&(d=T.xOffset,p=T.yOffset,He(e,le(S),u,b.svgOrigin,b.smoothOrigin),i=Te(T,"xOrigin",(v?T:u).xOrigin,u.xOrigin,i,w),i=Te(T,"yOrigin",(v?T:u).yOrigin,u.yOrigin,i,w),d===T.xOffset&&p===T.yOffset||(i=Te(T,"xOffset",v?d:T.xOffset,T.xOffset,i,w),i=Te(T,"yOffset",v?p:T.yOffset,T.yOffset,i,w)),S="0px 0px"),(S||Fe&&l&&T.zOrigin)&&(Le?(f=!0,g=je,S||(S=(S=(re(e,g,M,!1,"50% 50%")+"").split(" "))[0]+" "+S[1]+" "+T.zOrigin+"px"),S+="",(i=new we(y,g,0,0,i,-1,w)).b=y[g],i.plugin=o,Fe?(c=T.zOrigin,S=S.split(" "),T.zOrigin=(2<S.length?parseFloat(S[2]):c)||0,i.xs0=i.e=S[0]+" "+(S[1]||"50%")+" 0px",(i=new we(T,"zOrigin",0,0,i,-1,i.n)).b=c,i.xs0=i.e=T.zOrigin):i.xs0=i.e=S):le(S+"",T)),f&&(n._transformType=T.svg&&ke||!l&&3!==this._transformType?2:3),s&&(a.scale=s),i},allowFunc:!0,prefix:!0}),Ee("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ee("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:_e("inset(0px 0px 0px 0px)",!1,!0)}),Ee("borderRadius",{defaultValue:"0px",parser:function(e,t,r,n,i,o){t=this.format(t);var a,s,u,c,l,f,h,d,p,m,g,v,y,_,b,x,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=e.style;for(p=parseFloat(e.offsetWidth),m=parseFloat(e.offsetHeight),a=t.split(" "),s=0;s<w.length;s++)this.p.indexOf("border")&&(w[s]=$(w[s])),-1!==(l=c=re(e,w[s],M,!1,"0px")).indexOf(" ")&&(l=(c=l.split(" "))[0],c=c[1]),f=u=a[s],h=parseFloat(l),v=l.substr((h+"").length),""===(g=(y="="===f.charAt(1))?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),f.substr((d+"").length-(d<0?1:0))||""):(d=parseFloat(f),f.substr((d+"").length)))&&(g=S[r]||v),g!==v&&(_=ne(e,"borderLeft",h,v),b=ne(e,"borderTop",h,v),c="%"===g?(l=_/p*100+"%",b/m*100+"%"):"em"===g?(l=_/(x=ne(e,"borderLeft",1,"em"))+"em",b/x+"em"):(l=_+"px",b+"px"),y&&(f=parseFloat(l)+d+g,u=parseFloat(c)+d+g)),i=Se(T,w[s],l+" "+c,f+" "+u,!1,"0px",i);return i},prefix:!0,formatter:_e("0px 0px 0px 0px",!1,!0)}),Ee("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,r,n,i,o){return Se(e.style,r,this.format(re(e,r,M,!1,"0px 0px")),this.format(t),!1,"0px",i)},prefix:!0,formatter:_e("0px 0px",!1,!0)}),Ee("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,r,n,i,o){var a,s,u,c,l,f,h="background-position",d=M||te(e),p=this.format((d?P?d.getPropertyValue(h+"-x")+" "+d.getPropertyValue(h+"-y"):d.getPropertyValue(h):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),m=this.format(t);if(-1!==p.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&(f=re(e,"backgroundImage").replace(T,""))&&"none"!==f){for(a=p.split(" "),s=m.split(" "),G.setAttribute("src",f),u=2;-1<--u;)(c=-1!==(p=a[u]).indexOf("%"))!=(-1!==s[u].indexOf("%"))&&(l=0===u?e.offsetWidth-G.width:e.offsetHeight-G.height,a[u]=c?parseFloat(p)/100*l+"px":parseFloat(p)/l*100+"%");p=a.join(" ")}return this.parseComplex(e.style,p,m,i,o)},formatter:le}),Ee("backgroundSize",{defaultValue:"0 0",formatter:function(e){return"co"===(e+="").substr(0,2)?e:le(-1===e.indexOf(" ")?e+" "+e:e)}}),Ee("perspective",{defaultValue:"0px",prefix:!0}),Ee("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ee("transformStyle",{prefix:!0}),Ee("backfaceVisibility",{prefix:!0}),Ee("userSelect",{prefix:!0}),Ee("margin",{parser:be("marginTop,marginRight,marginBottom,marginLeft")}),Ee("padding",{parser:be("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ee("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,r,n,i,o){var a,s,u;return t=P<9?(s=e.currentStyle,u=P<8?" ":",",a="rect("+s.clipTop+u+s.clipRight+u+s.clipBottom+u+s.clipLeft+")",this.format(t).split(",").join(u)):(a=this.format(re(e,this.p,M,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,a,t,i,o)}}),Ee("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ee("autoRound,strictUnits",{parser:function(e,t,r,n,i){return i}}),Ee("border",{defaultValue:"0px solid #000",parser:function(e,t,r,n,i,o){var a=re(e,"borderTopWidth",M,!1,"0px"),s=this.format(t).split(" "),u=s[0].replace(R,"");return"px"!==u&&(a=parseFloat(a)/ne(e,"borderTopWidth",1,u)+u),this.parseComplex(e.style,this.format(a+" "+re(e,"borderTopStyle",M,!1,"solid")+" "+re(e,"borderTopColor",M,!1,"#000")),s.join(" "),i,o)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(ye)||["#000"])[0]}}),Ee("borderWidth",{parser:be("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ee("float,cssFloat,styleFloat",{parser:function(e,t,r,n,i,o){var a=e.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new we(a,s,0,0,i,-1,r,!1,0,a[s],t)}});var Qe=function(e){var t,r=this.t,n=r.filter||re(this.data,"filter")||"",i=this.s+this.c*e|0;100==i&&(t=-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(r.removeAttribute("filter"),!re(this.data,"filter")):(r.filter=n.replace(a,""),!0)),t||(this.xn1&&(r.filter=n=n||"alpha(opacity="+i+")"),-1===n.indexOf("pacity")?0==i&&this.xn1||(r.filter=n+" alpha(opacity="+i+")"):r.filter=n.replace(I,"opacity="+i))};Ee("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,r,n,i,o){var a=parseFloat(re(e,"opacity",M,!1,"1")),s=e.style,u="autoAlpha"===r;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+a),u&&1===a&&"hidden"===re(e,"visibility",M)&&0!==t&&(a=0),V?i=new we(s,"opacity",a,t-a,i):((i=new we(s,"opacity",100*a,100*(t-a),i)).xn1=u?1:0,s.zoom=1,i.type=2,i.b="alpha(opacity="+i.s+")",i.e="alpha(opacity="+(i.s+i.c)+")",i.data=e,i.plugin=o,i.setRatio=Qe),u&&((i=new we(s,"visibility",0,0,i,-1,null,!1,0,0!==a?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(i.n),n._overwriteProps.push(r)),i}});var $e=function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(s,"-$1").toLowerCase())):e.removeAttribute(t))},et=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,r=this.t.style;t;)t.v?r[t.p]=t.v:$e(r,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ee("className",{parser:function(e,t,r,n,i,o,a){var s,u,c,l,f,h=e.getAttribute("class")||"",d=e.style.cssText;if((i=n._classNamePT=new we(e,r,0,0,i,2)).setRatio=et,i.pr=-11,p=!0,i.b=h,u=oe(e,M),c=e._gsClassPT){for(l={},f=c.data;f;)l[f.p]=1,f=f._next;c.setRatio(1)}return(e._gsClassPT=i).e="="!==t.charAt(1)?t:h.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",i.e),s=ae(e,u,oe(e),a,l),e.setAttribute("class",h),i.data=s.firstMPT,e.style.cssText=d,i=i.xfirst=n.parse(e,s.difs,i,o)}});var tt=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,r,n,i,o,a=this.t.style,s=g.transform.parse;if("all"===this.e)i=!(a.cssText="");else for(n=(t=this.e.split(" ").join("").split(",")).length;-1<--n;)r=t[n],g[r]&&(g[r].parse===s?i=!0:r="transformOrigin"===r?je:g[r].p),$e(a,r);i&&($e(a,Le),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ee("clearProps",{parser:function(e,t,r,n,i){return(i=new we(e,r,0,0,i,2)).setRatio=tt,i.e=t,i.pr=-10,i.data=n._tween,p=!0,i}}),e="bezier,throwProps,physicsProps,physics2D".split(","),Me=e.length;Me--;)Ce(e[Me]);(e=U.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,r,n){if(!e.nodeType)return!1;this._target=C=e,this._tween=r,this._vars=t,k=n,E=t.autoRound,p=!1,S=t.suffixMap||U.suffixMap,M=te(e),m=this._overwriteProps;var i,o,a,s,u,c,l,f,h,d=e.style;if(v&&""===d.zIndex&&("auto"!==(i=re(e,"zIndex",M))&&""!==i||this._addLazySet(d,"zIndex",0)),"string"==typeof t&&(s=d.cssText,i=oe(e,M),d.cssText=s+";"+t,i=ae(e,i,oe(e)).difs,!V&&x.test(t)&&(i.opacity=parseFloat(RegExp.$1)),t=i,d.cssText=s),t.className?this._firstPT=o=g.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=o=this.parse(e,t,null),this._transformType){for(h=3===this._transformType,Le?y&&(v=!0,""===d.zIndex&&("auto"!==(l=re(e,"zIndex",M))&&""!==l||this._addLazySet(d,"zIndex",0)),_&&this._addLazySet(d,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):d.zoom=1,a=o;a&&a._next;)a=a._next;f=new we(e,"transform",0,0,null,2),this._linkCSSP(f,null,a),f.setRatio=Le?Ze:Je,f.data=this._transform||Ke(e,M,!0),f.tween=r,f.pr=-1,m.pop()}if(p){for(;o;){for(c=o._next,a=s;a&&a.pr>o.pr;)a=a._next;(o._prev=a?a._prev:u)?o._prev._next=o:s=o,(o._next=a)?a._prev=o:u=o,o=c}this._firstPT=s}return!0},e.parse=function(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p=e.style;for(i in t){if(c=t[i],o=g[i],"function"!=typeof c||o&&o.allowFunc||(c=c(k,C)),o)r=o.parse(e,c,i,this,r,n,t);else{if("--"===i.substr(0,2)){this._tween._propLookup[i]=this._addTween.call(this._tween,e.style,"setProperty",te(e).getPropertyValue(i)+"",c+"",i,!1,i);continue}u=re(e,i,M)+"",h="string"==typeof c,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||h&&w.test(c)?(h||(c=(3<(c=ge(c)).length?"rgba(":"rgb(")+c.join(",")+")"),r=Se(p,i,u,c,!0,"transparent",r,0,n)):h&&N.test(c)?r=Se(p,i,u,c,!0,null,r,0,n):(l=(a=parseFloat(u))||0===a?u.substr((a+"").length):"",""!==u&&"auto"!==u||(l="width"===i||"height"===i?(a=ce(e,i,M),"px"):"left"===i||"top"===i?(a=ie(e,i,M),"px"):(a="opacity"!==i?0:1,"")),""===(f=(d=h&&"="===c.charAt(1))?(s=parseInt(c.charAt(0)+"1",10),c=c.substr(2),s*=parseFloat(c),c.replace(R,"")):(s=parseFloat(c),h?c.replace(R,""):""))&&(f=i in S?S[i]:l),c=s||0===s?(d?s+a:s)+f:t[i],l!==f&&(""===f&&"lineHeight"!==i||(s||0===s)&&a&&(a=ne(e,i,a,l),"%"===f?(a/=ne(e,i,100,"%")/100,!0!==t.strictUnits&&(u=a+"%")):"em"===f||"rem"===f||"vw"===f||"vh"===f?a/=ne(e,i,1,f):"px"!==f&&(s=ne(e,i,s,f),f="px"),d&&(s||0===s)&&(c=s+a+f))),d&&(s+=a),!a&&0!==a||!s&&0!==s?void 0!==p[i]&&(c||c+""!="NaN"&&null!=c)?(r=new we(p,i,s||a||0,0,r,-1,i,!1,0,u,c)).xs0="none"!==c||"display"!==i&&-1===i.indexOf("Style")?c:u:J("invalid "+i+" tween value: "+t[i]):(r=new we(p,i,a,s-a,r,0,i,!1!==E&&("px"===f||"zIndex"===i),0,u,c)).xs0=f)}n&&r&&!r.plugin&&(r.plugin=n)}return r},e.setRatio=function(e){var t,r,n,i=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;i;){if(t=i.c*e+i.s,i.r?t=i.r(t):t<1e-6&&-1e-6<t&&(t=0),i.type)if(1===i.type)if(2===(n=i.l))i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2;else if(3===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3;else if(4===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4;else if(5===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4+i.xn4+i.xs5;else{for(r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=r}else-1===i.type?i.t[i.p]=i.xs0:i.setRatio&&i.setRatio(e);else i.t[i.p]=t+i.xs0;i=i._next}else for(;i;)2!==i.type?i.t[i.p]=i.b:i.setRatio(e),i=i._next;else for(;i;){if(2!==i.type)if(i.r&&-1!==i.type)if(t=i.r(i.s+i.c),i.type){if(1===i.type){for(n=i.l,r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=r}}else i.t[i.p]=t+i.xs0;else i.t[i.p]=i.e;else i.setRatio(e);i=i._next}},e._enableTransforms=function(e){this._transform=this._transform||Ke(this._target,M,!0),this._transformType=this._transform.svg&&ke||!e&&3!==this._transformType?2:3};var rt=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};e._addLazySet=function(e,t,r){var n=this._firstPT=new we(e,t,0,0,this._firstPT,2);n.e=r,n.setRatio=rt,n.data=this},e._linkCSSP=function(e,t,r,n){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,n=!0),r?r._next=e:n||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=r),e},e._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&(t.r=e[t.p]),t=t._next},e._kill=function(e){var t,r,n,i=e;if(e.autoAlpha||e.alpha){for(r in i={},e)i[r]=e[r];i.opacity=1,i.autoAlpha&&(i.visibility=1)}for(e.className&&(t=this._classNamePT)&&((n=t.xfirst)&&n._prev?this._linkCSSP(n._prev,t._next,n._prev._prev):n===this._firstPT&&(this._firstPT=t._next),t._next&&this._linkCSSP(t._next,t._next._next,n._prev),this._classNamePT=null),t=this._firstPT;t;)t.plugin&&t.plugin!==r&&t.plugin._kill&&(t.plugin._kill(e),r=t.plugin),t=t._next;return o.prototype._kill.call(this,i)};var nt=function(e,t,r){var n,i,o,a;if(e.slice)for(i=e.length;-1<--i;)nt(e[i],t,r);else for(i=(n=e.childNodes).length;-1<--i;)a=(o=n[i]).type,o.style&&(t.push(oe(o)),r&&r.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||nt(o,t,r)};return U.cascadeTo=function(e,t,r){var n,i,o,a,s=z.to(e,t,r),u=[s],c=[],l=[],f=[],h=z._internals.reservedProps;for(e=s._targets||s.target,nt(e,c,f),s.render(t,!0,!0),nt(e,l),s.render(0,!0,!0),s._enabled(!0),n=f.length;-1<--n;)if((i=ae(f[n],c[n],l[n])).firstMPT){for(o in i=i.difs,r)h[o]&&(i[o]=r[o]);for(o in a={},i)a[o]=c[n][o];u.push(z.fromTo(f[n],t,a,i))}return u},o.activate([U]),U},!0),t=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(e,t,r){return this._tween=r,!0}}),u=function(t){var r=t<1?Math.pow(10,(t+"").length-2):1;return function(e){return(Math.round(e/t)*t*r|0)/r}},c=function(e,t){for(;e;)e.f||e.blob||(e.m=t||Math.round),e=e._next},(n=t.prototype)._onInitAllProps=function(){var e,t,r,n,i=this._tween,o=i.vars.roundProps,a={},s=i._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),r=o.length;-1<--r;)a[o[r]]=Math.round;else for(n in o)a[n]=u(o[n]);for(n in a)for(e=i._firstPT;e;)t=e._next,e.pg?e.t._mod(a):e.n===n&&(2===e.f&&e.t?c(e.t._firstPT,a[n]):(this._add(e.t,n,e.s,e.c,a[n]),t&&(t._prev=e._prev),e._prev?e._prev._next=t:i._firstPT===e&&(i._firstPT=t),e._next=e._prev=null,i._propLookup[n]=s)),e=t;return!1},n._add=function(e,t,r,n,i){this._addTween(e,t,r,r+n,t,i||Math.round),this._overwriteProps.push(t)},_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(e,t,r,n){var i,o;if("function"!=typeof e.setAttribute)return!1;for(i in t)"function"==typeof(o=t[i])&&(o=o(n,e)),this._addTween(e,"setAttribute",e.getAttribute(i)+"",o+"",i,!1,i),this._overwriteProps.push(i);return!0}}),_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(e,t,r,n){"object"!=typeof t&&(t={rotation:t}),this.finals={};var i,o,a,s,u,c,l=!0===t.useRadians?2*Math.PI:360;for(i in t)"useRadians"!==i&&("function"==typeof(s=t[i])&&(s=s(n,e)),o=(c=(s+"").split("_"))[0],a=parseFloat("function"!=typeof e[i]?e[i]:e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]()),u=(s=this.finals[i]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,c.length&&(-1!==(o=c.join("_")).indexOf("short")&&(u%=l)!==u%(l/2)&&(u=u<0?u+l:u-l),-1!==o.indexOf("_cw")&&u<0?u=(u+9999999999*l)%l-(u/l|0)*l:-1!==o.indexOf("ccw")&&0<u&&(u=(u-9999999999*l)%l-(u/l|0)*l)),(1e-6<u||u<-1e-6)&&(this._addTween(e,i,a,a+u,i),this._overwriteProps.push(i)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0,_gsScope._gsDefine("easing.Back",["easing.Ease"],function(g){var r,n,t,e,i=_gsScope.GreenSockGlobals||_gsScope,o=i.com.greensock,a=2*Math.PI,s=Math.PI/2,u=o._class,c=function(e,t){var r=u("easing."+e,function(){},!0),n=r.prototype=new g;return n.constructor=r,n.getRatio=t,r},l=g.register||function(){},f=function(e,t,r,n,i){var o=u("easing."+e,{easeOut:new t,easeIn:new r,easeInOut:new n},!0);return l(o,e),o},v=function(e,t,r){this.t=e,this.v=t,r&&(((this.next=r).prev=this).c=r.v-t,this.gap=r.t-e)},h=function(e,t){var r=u("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),n=r.prototype=new g;return n.constructor=r,n.getRatio=t,n.config=function(e){return new r(e)},r},d=f("Back",h("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),h("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),h("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=u("easing.SlowMo",function(e,t,r){t=t||0===t?t:.7,null==e?e=.7:1<e&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===r},!0),m=p.prototype=new g;return m.constructor=p,m.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1===e?0:1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},p.ease=new p(.7,.7),m.config=p.config=function(e,t,r){return new p(e,t,r)},(m=(r=u("easing.SteppedEase",function(e,t){e=e||1,this._p1=1/e,this._p2=e+(t?0:1),this._p3=t?1:0},!0)).prototype=new g).constructor=r,m.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},m.config=r.config=function(e,t){return new r(e,t)},(m=(n=u("easing.ExpoScaleEase",function(e,t,r){this._p1=Math.log(t/e),this._p2=t-e,this._p3=e,this._ease=r},!0)).prototype=new g).constructor=n,m.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},m.config=n.config=function(e,t,r){return new n(e,t,r)},(m=(t=u("easing.RoughEase",function(e){for(var t,r,n,i,o,a,s=(e=e||{}).taper||"none",u=[],c=0,l=0|(e.points||20),f=l,h=!1!==e.randomize,d=!0===e.clamp,p=e.template instanceof g?e.template:null,m="number"==typeof e.strength?.4*e.strength:.4;-1<--f;)t=h?Math.random():1/l*f,r=p?p.getRatio(t):t,n="none"===s?m:"out"===s?(i=1-t)*i*m:"in"===s?t*t*m:t<.5?(i=2*t)*i*.5*m:(i=2*(1-t))*i*.5*m,h?r+=Math.random()*n-.5*n:f%2?r+=.5*n:r-=.5*n,d&&(1<r?r=1:r<0&&(r=0)),u[c++]={x:t,y:r};for(u.sort(function(e,t){return e.x-t.x}),a=new v(1,1,null),f=l;-1<--f;)o=u[f],a=new v(o.x,o.y,a);this._prev=new v(0,0,0!==a.t?a:a.next)},!0)).prototype=new g).constructor=t,m.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},m.config=function(e){return new t(e)},t.ease=new t,f("Bounce",c("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),c("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),c("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),f("Circ",c("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),c("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),c("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),f("Elastic",(e=function(e,t,r){var n=u("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||r)/(e<1?e:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),i=n.prototype=new g;return i.constructor=n,i.getRatio=t,i.config=function(e,t){return new n(e,t)},n})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),e("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),e("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),f("Expo",c("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),c("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),c("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),f("Sine",c("SineOut",function(e){return Math.sin(e*s)}),c("SineIn",function(e){return 1-Math.cos(e*s)}),c("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return g.map[e]}},!0),l(i.SlowMo,"SlowMo","ease,"),l(t,"RoughEase","ease,"),l(r,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(h,d){"use strict";var p={},n=h.document,m=h.GreenSockGlobals=h.GreenSockGlobals||h,e=m[d];if(e)return"undefined"!=typeof module&&module.exports&&(module.exports=e);var t,r,i,g,v,o,a,y=function(e){var t,r=e.split("."),n=m;for(t=0;t<r.length;t++)n[r[t]]=n=n[r[t]]||{};return n},f=y("com.greensock"),_=1e-8,u=function(e){var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r},b=function(){},x=(o=Object.prototype.toString,a=o.call([]),function(e){return null!=e&&(e instanceof Array||"object"==typeof e&&!!e.push&&o.call(e)===a)}),w={},T=function(s,u,c,l){this.sc=w[s]?w[s].sc:[],(w[s]=this).gsClass=null,this.func=c;var f=[];this.check=function(e){for(var t,r,n,i,o=u.length,a=o;-1<--o;)(t=w[u[o]]||new T(u[o],[])).gsClass?(f[o]=t.gsClass,a--):e&&t.sc.push(this);if(0===a&&c){if(n=(r=("com.greensock."+s).split(".")).pop(),i=y(r.join("."))[n]=this.gsClass=c.apply(c,f),l)if(m[n]=p[n]=i,"undefined"!=typeof module&&module.exports)if(s===d)for(o in module.exports=p[d]=i,p)i[o]=p[o];else p[d]&&(p[d][n]=i);else"function"==typeof define&&define.amd&&define((h.GreenSockAMDPath?h.GreenSockAMDPath+"/":"")+s.split(".").pop(),[],function(){return i});for(o=0;o<this.sc.length;o++)this.sc[o].check()}},this.check(!0)},s=h._gsDefine=function(e,t,r,n){return new T(e,t,r,n)},S=f._class=function(e,t,r){return t=t||function(){},s(e,[],function(){return t},r),t};s.globals=m;var c=[0,0,1,1],M=S("easing.Ease",function(e,t,r,n){this._func=e,this._type=r||0,this._power=n||0,this._params=t?c.concat(t):c},!0),P=M.map={},l=M.register=function(e,t,r,n){for(var i,o,a,s,u=t.split(","),c=u.length,l=(r||"easeIn,easeOut,easeInOut").split(",");-1<--c;)for(o=u[c],i=n?S("easing."+o,null,!0):f.easing[o]||{},a=l.length;-1<--a;)s=l[a],P[o+"."+s]=P[s+o]=i[s]=e.getRatio?e:e[s]||new e};for((i=M.prototype)._calcEnd=!1,i.getRatio=function(e){if(this._func)return this._params[0]=e,this._func.apply(null,this._params);var t=this._type,r=this._power,n=1===t?1-e:2===t?e:e<.5?2*e:2*(1-e);return 1===r?n*=n:2===r?n*=n*n:3===r?n*=n*n*n:4===r&&(n*=n*n*n*n),1===t?1-n:2===t?n:e<.5?n/2:1-n/2},r=(t=["Linear","Quad","Cubic","Quart","Quint,Strong"]).length;-1<--r;)i=t[r]+",Power"+r,l(new M(null,null,1,r),i,"easeOut",!0),l(new M(null,null,2,r),i,"easeIn"+(0===r?",easeNone":"")),l(new M(null,null,3,r),i,"easeInOut");P.linear=f.easing.Linear.easeIn,P.swing=f.easing.Quad.easeInOut;var E=S("events.EventDispatcher",function(e){this._listeners={},this._eventTarget=e||this});(i=E.prototype).addEventListener=function(e,t,r,n,i){i=i||0;var o,a,s=this._listeners[e],u=0;for(this!==g||v||g.wake(),null==s&&(this._listeners[e]=s=[]),a=s.length;-1<--a;)(o=s[a]).c===t&&o.s===r?s.splice(a,1):0===u&&o.pr<i&&(u=a+1);s.splice(u,0,{c:t,s:r,up:n,pr:i})},i.removeEventListener=function(e,t){var r,n=this._listeners[e];if(n)for(r=n.length;-1<--r;)if(n[r].c===t)return void n.splice(r,1)},i.dispatchEvent=function(e){var t,r,n,i=this._listeners[e];if(i)for(1<(t=i.length)&&(i=i.slice(0)),r=this._eventTarget;-1<--t;)(n=i[t])&&(n.up?n.c.call(n.s||r,{type:e,target:r}):n.c.call(n.s||r))};var C=h.requestAnimationFrame,k=h.cancelAnimationFrame,A=Date.now||function(){return(new Date).getTime()},O=A();for(r=(t=["ms","moz","webkit","o"]).length;-1<--r&&!C;)C=h[t[r]+"RequestAnimationFrame"],k=h[t[r]+"CancelAnimationFrame"]||h[t[r]+"CancelRequestAnimationFrame"];S("Ticker",function(e,t){var i,o,a,s,u,c=this,l=A(),r=!(!1===t||!C)&&"auto",f=500,h=33,d=function(e){var t,r,n=A()-O;f<n&&(l+=n-h),O+=n,c.time=(O-l)/1e3,t=c.time-u,(!i||0<t||!0===e)&&(c.frame++,u+=t+(s<=t?.004:s-t),r=!0),!0!==e&&(a=o(d)),r&&c.dispatchEvent("tick")};E.call(c),c.time=c.frame=0,c.tick=function(){d(!0)},c.lagSmoothing=function(e,t){if(!arguments.length)return f<1e8;f=e||1e8,h=Math.min(t,f,0)},c.sleep=function(){null!=a&&(r&&k?k(a):clearTimeout(a),o=b,a=null,c===g&&(v=!1))},c.wake=function(e){null!==a?c.sleep():e?l+=-O+(O=A()):10<c.frame&&(O=A()-f+5),o=0===i?b:r&&C?C:function(e){return setTimeout(e,1e3*(u-c.time)+1|0)},c===g&&(v=!0),d(2)},c.fps=function(e){if(!arguments.length)return i;s=1/((i=e)||60),u=this.time+s,c.wake()},c.useRAF=function(e){if(!arguments.length)return r;c.sleep(),r=e,c.fps(i)},c.fps(e),setTimeout(function(){"auto"===r&&c.frame<5&&"hidden"!==(n||{}).visibilityState&&c.useRAF(!1)},1500)}),(i=f.Ticker.prototype=new f.events.EventDispatcher).constructor=f.Ticker;var R=S("core.Animation",function(e,t){if(this.vars=t=t||{},this._duration=this._totalDuration=e||0,this._delay=Number(t.delay)||0,this._timeScale=1,this._active=!!t.immediateRender,this.data=t.data,this._reversed=!!t.reversed,Q){v||g.wake();var r=this.vars.useFrames?Z:Q;r.add(this,r._time),this.vars.paused&&this.paused(!0)}});g=R.ticker=new f.Ticker,(i=R.prototype)._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var I=function(){v&&2e3<A()-O&&("hidden"!==(n||{}).visibilityState||!g.lagSmoothing())&&g.wake();var e=setTimeout(I,2e3);e.unref&&e.unref()};I(),i.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},i.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},i.resume=function(e,t){return null!=e&&this.seek(e,t),this.paused(!1)},i.seek=function(e,t){return this.totalTime(Number(e),!1!==t)},i.restart=function(e,t){return this.reversed(!1).paused(!1).totalTime(e?-this._delay:0,!1!==t,!0)},i.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},i.render=function(e,t,r){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},i.isActive=function(){var e,t=this._timeline,r=this._startTime;return!t||!this._gc&&!this._paused&&t.isActive()&&(e=t.rawTime(!0))>=r&&e<r+this.totalDuration()/this._timeScale-_},i._enabled=function(e,t){return v||g.wake(),this._gc=!e,this._active=this.isActive(),!0!==t&&(e&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!e&&this.timeline&&this._timeline._remove(this,!0)),!1},i._kill=function(e,t){return this._enabled(!1,!1)},i.kill=function(e,t){return this._kill(e,t),this},i._uncache=function(e){for(var t=e?this:this.timeline;t;)t._dirty=!0,t=t.timeline;return this},i._swapSelfInParams=function(e){for(var t=e.length,r=e.concat();-1<--t;)"{self}"===e[t]&&(r[t]=this);return r},i._callback=function(e){var t=this.vars,r=t[e],n=t[e+"Params"],i=t[e+"Scope"]||t.callbackScope||this;switch(n?n.length:0){case 0:r.call(i);break;case 1:r.call(i,n[0]);break;case 2:r.call(i,n[0],n[1]);break;default:r.apply(i,n)}},i.eventCallback=function(e,t,r,n){if("on"===(e||"").substr(0,2)){var i=this.vars;if(1===arguments.length)return i[e];null==t?delete i[e]:(i[e]=t,i[e+"Params"]=x(r)&&-1!==r.join("").indexOf("{self}")?this._swapSelfInParams(r):r,i[e+"Scope"]=n),"onUpdate"===e&&(this._onUpdate=t)}return this},i.delay=function(e){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+e-this._delay),this._delay=e,this):this._delay},i.duration=function(e){return arguments.length?(this._duration=this._totalDuration=e,this._uncache(!0),this._timeline.smoothChildTiming&&0<this._time&&this._time<this._duration&&0!==e&&this.totalTime(this._totalTime*(e/this._duration),!0),this):(this._dirty=!1,this._duration)},i.totalDuration=function(e){return this._dirty=!1,arguments.length?this.duration(e):this._totalDuration},i.time=function(e,t){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(e>this._duration?this._duration:e,t)):this._time},i.totalTime=function(e,t,r){if(v||g.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(e<0&&!r&&(e+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var n=this._totalDuration,i=this._timeline;if(n<e&&!r&&(e=n),this._startTime=(this._paused?this._pauseTime:i._time)-(this._reversed?n-e:e)/this._timeScale,i._dirty||this._uncache(!1),i._timeline)for(;i._timeline;)i._timeline._time!==(i._startTime+i._totalTime)/i._timeScale&&i.totalTime(i._totalTime,!0),i=i._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===e&&0!==this._duration||(j.length&&ee(),this.render(e,t,!1),j.length&&ee())}return this},i.progress=i.totalProgress=function(e,t){var r=this.duration();return arguments.length?this.totalTime(r*e,t):r?this._time/r:this.ratio},i.startTime=function(e){return arguments.length?(e!==this._startTime&&(this._startTime=e,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,e-this._delay)),this):this._startTime},i.endTime=function(e){return this._startTime+(0!=e?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(e){if(!arguments.length)return this._timeScale;var t,r;for(e=e||_,this._timeline&&this._timeline.smoothChildTiming&&(r=(t=this._pauseTime)||0===t?t:this._timeline.totalTime(),this._startTime=r-(r-this._startTime)*this._timeScale/e),this._timeScale=e,r=this.timeline;r&&r.timeline;)r._dirty=!0,r.totalDuration(),r=r.timeline;return this},i.reversed=function(e){return arguments.length?(e!=this._reversed&&(this._reversed=e,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(e){if(!arguments.length)return this._paused;var t,r,n=this._timeline;return e!=this._paused&&n&&(v||e||g.wake(),r=(t=n.rawTime())-this._pauseTime,!e&&n.smoothChildTiming&&(this._startTime+=r,this._uncache(!1)),this._pauseTime=e?t:null,this._paused=e,this._active=this.isActive(),!e&&0!=r&&this._initted&&this.duration()&&(t=n.smoothChildTiming?this._totalTime:(t-this._startTime)/this._timeScale,this.render(t,t===this._totalTime,!0))),this._gc&&!e&&this._enabled(!0,!1),this};var D=S("core.SimpleTimeline",function(e){R.call(this,0,e),this.autoRemoveChildren=this.smoothChildTiming=!0});(i=D.prototype=new R).constructor=D,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(e,t,r,n){var i,o;if(e._startTime=Number(t||0)+e._delay,e._paused&&this!==e._timeline&&(e._pauseTime=this.rawTime()-(e._timeline.rawTime()-e._pauseTime)),e.timeline&&e.timeline._remove(e,!0),e.timeline=e._timeline=this,e._gc&&e._enabled(!0,!0),i=this._last,this._sortChildren)for(o=e._startTime;i&&i._startTime>o;)i=i._prev;return i?(e._next=i._next,i._next=e):(e._next=this._first,this._first=e),e._next?e._next._prev=e:this._last=e,e._prev=i,this._recent=e,this._timeline&&this._uncache(!0),this},i._remove=function(e,t){return e.timeline===this&&(t||e._enabled(!1,!0),e._prev?e._prev._next=e._next:this._first===e&&(this._first=e._next),e._next?e._next._prev=e._prev:this._last===e&&(this._last=e._prev),e._next=e._prev=e.timeline=null,e===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(e,t,r){var n,i=this._first;for(this._totalTime=this._time=this._rawPrevTime=e;i;)n=i._next,(i._active||e>=i._startTime&&!i._paused&&!i._gc)&&(i._reversed?i.render((i._dirty?i.totalDuration():i._totalDuration)-(e-i._startTime)*i._timeScale,t,r):i.render((e-i._startTime)*i._timeScale,t,r)),i=n},i.rawTime=function(){return v||g.wake(),this._totalTime};var L=S("TweenLite",function(e,t,r){if(R.call(this,t,r),this.render=L.prototype.render,null==e)throw"Cannot tween a null target.";this.target=e="string"!=typeof e?e:L.selector(e)||e;var n,i,o,a=e.jquery||e.length&&e!==h&&e[0]&&(e[0]===h||e[0].nodeType&&e[0].style&&!e.nodeType),s=this.vars.overwrite;if(this._overwrite=s=null==s?J[L.defaultOverwrite]:"number"==typeof s?s>>0:J[s],(a||e instanceof Array||e.push&&x(e))&&"number"!=typeof e[0])for(this._targets=o=u(e),this._propLookup=[],this._siblings=[],n=0;n<o.length;n++)(i=o[n])?"string"!=typeof i?i.length&&i!==h&&i[0]&&(i[0]===h||i[0].nodeType&&i[0].style&&!i.nodeType)?(o.splice(n--,1),this._targets=o=o.concat(u(i))):(this._siblings[n]=te(i,this,!1),1===s&&1<this._siblings[n].length&&ne(i,this,null,1,this._siblings[n])):"string"==typeof(i=o[n--]=L.selector(i))&&o.splice(n+1,1):o.splice(n--,1);else this._propLookup={},this._siblings=te(e,this,!1),1===s&&1<this._siblings.length&&ne(e,this,null,1,this._siblings);(this.vars.immediateRender||0===t&&0===this._delay&&!1!==this.vars.immediateRender)&&(this._time=-_,this.render(Math.min(0,-this._delay)))},!0),N=function(e){return e&&e.length&&e!==h&&e[0]&&(e[0]===h||e[0].nodeType&&e[0].style&&!e.nodeType)};(i=L.prototype=new R).constructor=L,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,L.version="2.1.2",L.defaultEase=i._ease=new M(null,null,1,1),L.defaultOverwrite="auto",L.ticker=g,L.autoSleep=120,L.lagSmoothing=function(e,t){g.lagSmoothing(e,t)},L.selector=h.$||h.jQuery||function(e){var t=h.$||h.jQuery;return t?(L.selector=t)(e):(n||(n=h.document),n?n.querySelectorAll?n.querySelectorAll(e):n.getElementById("#"===e.charAt(0)?e.substr(1):e):e)};var j=[],F={},B=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,z=/[\+-]=-?[\.\d]/,U=function(e){for(var t,r=this._firstPT;r;)t=r.blob?1===e&&null!=this.end?this.end:e?this.join(""):this.start:r.c*e+r.s,r.m?t=r.m.call(this._tween,t,this._target||r.t,this._tween):t<1e-6&&-1e-6<t&&!r.blob&&(t=0),r.f?r.fp?r.t[r.p](r.fp,t):r.t[r.p](t):r.t[r.p]=t,r=r._next},X=function(e){return(1e3*e|0)/1e3+""},q=function(e,t,r,n){var i,o,a,s,u,c,l,f=[],h=0,d="",p=0;for(f.start=e,f.end=t,e=f[0]=e+"",t=f[1]=t+"",r&&(r(f),e=f[0],t=f[1]),f.length=0,i=e.match(B)||[],o=t.match(B)||[],n&&(n._next=null,n.blob=1,f._firstPT=f._applyPT=n),u=o.length,s=0;s<u;s++)l=o[s],d+=(c=t.substr(h,t.indexOf(l,h)-h))||!s?c:",",h+=c.length,p?p=(p+1)%5:"rgba("===c.substr(-5)&&(p=1),l===i[s]||i.length<=s?d+=l:(d&&(f.push(d),d=""),a=parseFloat(i[s]),f.push(a),f._firstPT={_next:f._firstPT,t:f,p:f.length-1,s:a,c:("="===l.charAt(1)?parseInt(l.charAt(0)+"1",10)*parseFloat(l.substr(2)):parseFloat(l)-a)||0,f:0,m:p&&p<4?Math.round:X}),h+=l.length;return(d+=t.substr(h))&&f.push(d),f.setRatio=U,z.test(t)&&(f.end=null),f},H=function(e,t,r,n,i,o,a,s,u){"function"==typeof n&&(n=n(u||0,e));var c=typeof e[t],l="function"!=c?"":t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3),f="get"!==r?r:l?a?e[l](a):e[l]():e[t],h="string"==typeof n&&"="===n.charAt(1),d={t:e,p:t,s:f,f:"function"==c,pg:0,n:i||t,m:o?"function"==typeof o?o:Math.round:0,pr:0,c:h?parseInt(n.charAt(0)+"1",10)*parseFloat(n.substr(2)):parseFloat(n)-f||0};if(("number"!=typeof f||"number"!=typeof n&&!h)&&(a||isNaN(f)||!h&&isNaN(n)||"boolean"==typeof f||"boolean"==typeof n?(d.fp=a,d={t:q(f,h?parseFloat(d.s)+d.c+(d.s+"").replace(/[0-9\-\.]/g,""):n,s||L.defaultStringFilter,d),p:"setRatio",s:0,c:1,f:2,pg:0,n:i||t,pr:0,m:0}):(d.s=parseFloat(f),h||(d.c=parseFloat(n)-d.s||0))),d.c)return(d._next=this._firstPT)&&(d._next._prev=d),this._firstPT=d},Y=L._internals={isArray:x,isSelector:N,lazyTweens:j,blobDif:q},G=L._plugins={},W=Y.tweenLookup={},V=0,K=Y.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1,yoyoEase:1,stagger:1},J={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Z=R._rootFramesTimeline=new D,Q=R._rootTimeline=new D,$=30,ee=Y.lazyRender=function(){var e,t,r=j.length;for(F={},e=0;e<r;e++)(t=j[e])&&!1!==t._lazy&&(t.render(t._lazy[0],t._lazy[1],!0),t._lazy=!1);j.length=0};Q._startTime=g.time,Z._startTime=g.frame,Q._active=Z._active=!0,setTimeout(ee,1),R._updateRoot=L.render=function(){var e,t,r;if(j.length&&ee(),Q.render((g.time-Q._startTime)*Q._timeScale,!1,!1),Z.render((g.frame-Z._startTime)*Z._timeScale,!1,!1),j.length&&ee(),g.frame>=$){for(r in $=g.frame+(parseInt(L.autoSleep,10)||120),W){for(e=(t=W[r].tweens).length;-1<--e;)t[e]._gc&&t.splice(e,1);0===t.length&&delete W[r]}if((!(r=Q._first)||r._paused)&&L.autoSleep&&!Z._first&&1===g._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||g.sleep()}}},g.addEventListener("tick",R._updateRoot);var te=function(e,t,r){var n,i,o=e._gsTweenID;if(W[o||(e._gsTweenID=o="t"+V++)]||(W[o]={target:e,tweens:[]}),t&&((n=W[o].tweens)[i=n.length]=t,r))for(;-1<--i;)n[i]===t&&n.splice(i,1);return W[o].tweens},re=function(e,t,r,n){var i,o,a=e.vars.onOverwrite;return a&&(i=a(e,t,r,n)),(a=L.onOverwrite)&&(o=a(e,t,r,n)),!1!==i&&!1!==o},ne=function(e,t,r,n,i){var o,a,s,u;if(1===n||4<=n){for(u=i.length,o=0;o<u;o++)if((s=i[o])!==t)s._gc||s._kill(null,e,t)&&(a=!0);else if(5===n)break;return a}var c,l=t._startTime+_,f=[],h=0,d=0===t._duration;for(o=i.length;-1<--o;)(s=i[o])===t||s._gc||s._paused||(s._timeline!==t._timeline?(c=c||ie(t,0,d),0===ie(s,c,d)&&(f[h++]=s)):s._startTime<=l&&s._startTime+s.totalDuration()/s._timeScale>l&&((d||!s._initted)&&l-s._startTime<=2e-8||(f[h++]=s)));for(o=h;-1<--o;)if(u=(s=f[o])._firstPT,2===n&&s._kill(r,e,t)&&(a=!0),2!==n||!s._firstPT&&s._initted&&u){if(2!==n&&!re(s,t))continue;s._enabled(!1,!1)&&(a=!0)}return a},ie=function(e,t,r){for(var n=e._timeline,i=n._timeScale,o=e._startTime;n._timeline;){if(o+=n._startTime,i*=n._timeScale,n._paused)return-100;n=n._timeline}return t<(o/=i)?o-t:r&&o===t||!e._initted&&o-t<2e-8?_:(o+=e.totalDuration()/e._timeScale/i)>t+_?0:o-t-_};i._init=function(){var e,t,r,n,i,o,a=this.vars,s=this._overwrittenProps,u=this._duration,c=!!a.immediateRender,l=a.ease,f=this._startAt;if(a.startAt){for(n in f&&(f.render(-1,!0),f.kill()),i={},a.startAt)i[n]=a.startAt[n];if(i.data="isStart",i.overwrite=!1,i.immediateRender=!0,i.lazy=c&&!1!==a.lazy,i.startAt=i.delay=null,i.onUpdate=a.onUpdate,i.onUpdateParams=a.onUpdateParams,i.onUpdateScope=a.onUpdateScope||a.callbackScope||this,this._startAt=L.to(this.target||{},0,i),c)if(0<this._time)this._startAt=null;else if(0!==u)return}else if(a.runBackwards&&0!==u)if(f)f.render(-1,!0),f.kill(),this._startAt=null;else{for(n in 0!==this._time&&(c=!1),r={},a)K[n]&&"autoCSS"!==n||(r[n]=a[n]);if(r.overwrite=0,r.data="isFromStart",r.lazy=c&&!1!==a.lazy,r.immediateRender=c,this._startAt=L.to(this.target,0,r),c){if(0===this._time)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=l=l?l instanceof M?l:"function"==typeof l?new M(l,a.easeParams):P[l]||L.defaultEase:L.defaultEase,a.easeParams instanceof Array&&l.config&&(this._ease=l.config.apply(l,a.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(o=this._targets.length,e=0;e<o;e++)this._initProps(this._targets[e],this._propLookup[e]={},this._siblings[e],s?s[e]:null,e)&&(t=!0);else t=this._initProps(this.target,this._propLookup,this._siblings,s,0);if(t&&L._onPluginEvent("_onInitAllProps",this),s&&(this._firstPT||"function"!=typeof this.target&&this._enabled(!1,!1)),a.runBackwards)for(r=this._firstPT;r;)r.s+=r.c,r.c=-r.c,r=r._next;this._onUpdate=a.onUpdate,this._initted=!0},i._initProps=function(e,t,r,n,i){var o,a,s,u,c,l;if(null==e)return!1;for(o in F[e._gsTweenID]&&ee(),this.vars.css||e.style&&e!==h&&e.nodeType&&G.css&&!1!==this.vars.autoCSS&&function(e,t){var r,n={};for(r in e)K[r]||r in t&&"transform"!==r&&"x"!==r&&"y"!==r&&"width"!==r&&"height"!==r&&"className"!==r&&"border"!==r||!(!G[r]||G[r]&&G[r]._autoCSS)||(n[r]=e[r],delete e[r]);e.css=n}(this.vars,e),this.vars)if(l=this.vars[o],K[o])l&&(l instanceof Array||l.push&&x(l))&&-1!==l.join("").indexOf("{self}")&&(this.vars[o]=l=this._swapSelfInParams(l,this));else if(G[o]&&(u=new G[o])._onInitTween(e,this.vars[o],this,i)){for(this._firstPT=c={_next:this._firstPT,t:u,p:"setRatio",s:0,c:1,f:1,n:o,pg:1,pr:u._priority,m:0},a=u._overwriteProps.length;-1<--a;)t[u._overwriteProps[a]]=this._firstPT;(u._priority||u._onInitAllProps)&&(s=!0),(u._onDisable||u._onEnable)&&(this._notifyPluginsOfEnabled=!0),c._next&&(c._next._prev=c)}else t[o]=H.call(this,e,o,"get",l,o,0,null,this.vars.stringFilter,i);return n&&this._kill(n,e)?this._initProps(e,t,r,n,i):1<this._overwrite&&this._firstPT&&1<r.length&&ne(e,this,t,this._overwrite,r)?(this._kill(t,e),this._initProps(e,t,r,n,i)):(this._firstPT&&(!1!==this.vars.lazy&&this._duration||this.vars.lazy&&!this._duration)&&(F[e._gsTweenID]=!0),s)},i.render=function(e,t,r){var n,i,o,a,s=this,u=s._time,c=s._duration,l=s._rawPrevTime;if(c-_<=e&&0<=e)s._totalTime=s._time=c,s.ratio=s._ease._calcEnd?s._ease.getRatio(1):1,s._reversed||(n=!0,i="onComplete",r=r||s._timeline.autoRemoveChildren),0===c&&(s._initted||!s.vars.lazy||r)&&(s._startTime===s._timeline._duration&&(e=0),(l<0||e<=0&&-_<=e||l===_&&"isPause"!==s.data)&&l!==e&&(r=!0,_<l&&(i="onReverseComplete")),s._rawPrevTime=a=!t||e||l===e?e:_);else if(e<_)s._totalTime=s._time=0,s.ratio=s._ease._calcEnd?s._ease.getRatio(0):0,(0!==u||0===c&&0<l)&&(i="onReverseComplete",n=s._reversed),-_<e?e=0:e<0&&(s._active=!1,0===c&&(s._initted||!s.vars.lazy||r)&&(0<=l&&(l!==_||"isPause"!==s.data)&&(r=!0),s._rawPrevTime=a=!t||e||l===e?e:_)),(!s._initted||s._startAt&&s._startAt.progress())&&(r=!0);else if(s._totalTime=s._time=e,s._easeType){var f=e/c,h=s._easeType,d=s._easePower;(1===h||3===h&&.5<=f)&&(f=1-f),3===h&&(f*=2),1===d?f*=f:2===d?f*=f*f:3===d?f*=f*f*f:4===d&&(f*=f*f*f*f),s.ratio=1===h?1-f:2===h?f:e/c<.5?f/2:1-f/2}else s.ratio=s._ease.getRatio(e/c);if(s._time!==u||r){if(!s._initted){if(s._init(),!s._initted||s._gc)return;if(!r&&s._firstPT&&(!1!==s.vars.lazy&&s._duration||s.vars.lazy&&!s._duration))return s._time=s._totalTime=u,s._rawPrevTime=l,j.push(s),void(s._lazy=[e,t]);s._time&&!n?s.ratio=s._ease.getRatio(s._time/c):n&&s._ease._calcEnd&&(s.ratio=s._ease.getRatio(0===s._time?0:1))}for(!1!==s._lazy&&(s._lazy=!1),s._active||!s._paused&&s._time!==u&&0<=e&&(s._active=!0),0===u&&(s._startAt&&(0<=e?s._startAt.render(e,!0,r):i||(i="_dummyGS")),s.vars.onStart&&(0===s._time&&0!==c||t||s._callback("onStart"))),o=s._firstPT;o;)o.f?o.t[o.p](o.c*s.ratio+o.s):o.t[o.p]=o.c*s.ratio+o.s,o=o._next;s._onUpdate&&(e<0&&s._startAt&&-1e-4!==e&&s._startAt.render(e,!0,r),t||(s._time!==u||n||r)&&s._callback("onUpdate")),i&&(s._gc&&!r||(e<0&&s._startAt&&!s._onUpdate&&-1e-4!==e&&s._startAt.render(e,!0,r),n&&(s._timeline.autoRemoveChildren&&s._enabled(!1,!1),s._active=!1),!t&&s.vars[i]&&s._callback(i),0===c&&s._rawPrevTime===_&&a!==_&&(s._rawPrevTime=0)))}},i._kill=function(e,t,r){if("all"===e&&(e=null),null==e&&(null==t||t===this.target))return this._lazy=!1,this._enabled(!1,!1);t="string"!=typeof t?t||this._targets||this.target:L.selector(t)||t;var n,i,o,a,s,u,c,l,f,h=r&&this._time&&r._startTime===this._startTime&&this._timeline===r._timeline,d=this._firstPT;if((x(t)||N(t))&&"number"!=typeof t[0])for(n=t.length;-1<--n;)this._kill(e,t[n],r)&&(u=!0);else{if(this._targets){for(n=this._targets.length;-1<--n;)if(t===this._targets[n]){s=this._propLookup[n]||{},this._overwrittenProps=this._overwrittenProps||[],i=this._overwrittenProps[n]=e?this._overwrittenProps[n]||{}:"all";break}}else{if(t!==this.target)return!1;s=this._propLookup,i=this._overwrittenProps=e?this._overwrittenProps||{}:"all"}if(s){if(c=e||s,l=e!==i&&"all"!==i&&e!==s&&("object"!=typeof e||!e._tempKill),r&&(L.onOverwrite||this.vars.onOverwrite)){for(o in c)s[o]&&(f||(f=[]),f.push(o));if((f||!e)&&!re(this,r,t,f))return!1}for(o in c)(a=s[o])&&(h&&(a.f?a.t[a.p](a.s):a.t[a.p]=a.s,u=!0),a.pg&&a.t._kill(c)&&(u=!0),a.pg&&0!==a.t._overwriteProps.length||(a._prev?a._prev._next=a._next:a===this._firstPT&&(this._firstPT=a._next),a._next&&(a._next._prev=a._prev),a._next=a._prev=null),delete s[o]),l&&(i[o]=1);!this._firstPT&&this._initted&&d&&this._enabled(!1,!1)}}return u},i.invalidate=function(){this._notifyPluginsOfEnabled&&L._onPluginEvent("_onDisable",this);var e=this._time;return this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],R.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-_,this.render(e,!1,!1!==this.vars.lazy)),this},i._enabled=function(e,t){if(v||g.wake(),e&&this._gc){var r,n=this._targets;if(n)for(r=n.length;-1<--r;)this._siblings[r]=te(n[r],this,!0);else this._siblings=te(this.target,this,!0)}return R.prototype._enabled.call(this,e,t),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&L._onPluginEvent(e?"_onEnable":"_onDisable",this)},L.to=function(e,t,r){return new L(e,t,r)},L.from=function(e,t,r){return r.runBackwards=!0,r.immediateRender=0!=r.immediateRender,new L(e,t,r)},L.fromTo=function(e,t,r,n){return n.startAt=r,n.immediateRender=0!=n.immediateRender&&0!=r.immediateRender,new L(e,t,n)},L.delayedCall=function(e,t,r,n,i){return new L(t,0,{delay:e,onComplete:t,onCompleteParams:r,callbackScope:n,onReverseComplete:t,onReverseCompleteParams:r,immediateRender:!1,lazy:!1,useFrames:i,overwrite:0})},L.set=function(e,t){return new L(e,0,t)},L.getTweensOf=function(e,t){if(null==e)return[];var r,n,i,o;if(e="string"!=typeof e?e:L.selector(e)||e,(x(e)||N(e))&&"number"!=typeof e[0]){for(r=e.length,n=[];-1<--r;)n=n.concat(L.getTweensOf(e[r],t));for(r=n.length;-1<--r;)for(o=n[r],i=r;-1<--i;)o===n[i]&&n.splice(r,1)}else if(e._gsTweenID)for(r=(n=te(e).concat()).length;-1<--r;)(n[r]._gc||t&&!n[r].isActive())&&n.splice(r,1);return n||[]},L.killTweensOf=L.killDelayedCallsTo=function(e,t,r){"object"==typeof t&&(r=t,t=!1);for(var n=L.getTweensOf(e,t),i=n.length;-1<--i;)n[i]._kill(r,e)};var oe=S("plugins.TweenPlugin",function(e,t){this._overwriteProps=(e||"").split(","),this._propName=this._overwriteProps[0],this._priority=t||0,this._super=oe.prototype},!0);if(i=oe.prototype,oe.version="1.19.0",oe.API=2,i._firstPT=null,i._addTween=H,i.setRatio=U,i._kill=function(e){var t,r=this._overwriteProps,n=this._firstPT;if(null!=e[this._propName])this._overwriteProps=[];else for(t=r.length;-1<--t;)null!=e[r[t]]&&r.splice(t,1);for(;n;)null!=e[n.n]&&(n._next&&(n._next._prev=n._prev),n._prev?(n._prev._next=n._next,n._prev=null):this._firstPT===n&&(this._firstPT=n._next)),n=n._next;return!1},i._mod=i._roundProps=function(e){for(var t,r=this._firstPT;r;)(t=e[this._propName]||null!=r.n&&e[r.n.split(this._propName+"_").join("")])&&"function"==typeof t&&(2===r.f?r.t._applyPT.m=t:r.m=t),r=r._next},L._onPluginEvent=function(e,t){var r,n,i,o,a,s=t._firstPT;if("_onInitAllProps"===e){for(;s;){for(a=s._next,n=i;n&&n.pr>s.pr;)n=n._next;(s._prev=n?n._prev:o)?s._prev._next=s:i=s,(s._next=n)?n._prev=s:o=s,s=a}s=t._firstPT=i}for(;s;)s.pg&&"function"==typeof s.t[e]&&s.t[e]()&&(r=!0),s=s._next;return r},oe.activate=function(e){for(var t=e.length;-1<--t;)e[t].API===oe.API&&(G[(new e[t])._propName]=e[t]);return!0},s.plugin=function(e){if(!(e&&e.propName&&e.init&&e.API))throw"illegal plugin definition.";var t,r=e.propName,n=e.priority||0,i=e.overwriteProps,o={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},a=S("plugins."+r.charAt(0).toUpperCase()+r.substr(1)+"Plugin",function(){oe.call(this,r,n),this._overwriteProps=i||[]},!0===e.global),s=a.prototype=new oe(r);for(t in(s.constructor=a).API=e.API,o)"function"==typeof e[t]&&(s[o[t]]=e[t]);return a.version=e.version,oe.activate([a]),a},t=h._gsQueue){for(r=0;r<t.length;r++)t[r]();for(i in w)w[i].func||h.console.log("GSAP encountered missing dependency: "+i)}v=!1}("undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window,"TweenMax"),function(h){"use strict";var d,p,r,m=h.fn.animate,o=h.fn.stop,g=!0,v=function(e){var t,r={};for(t in e)r[t]=e[t];return r},n={overwrite:1,delay:1,useFrames:1,runBackwards:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,autoCSS:1},t=",scrollTop,scrollLeft,show,hide,toggle,",y=t,_=function(e,t){for(var r in n)n[r]&&void 0!==e[r]&&(t[r]=e[r])},i=function(t){return function(e){return t.getRatio(e)}},b={},x=function(){var e,t=window.GreenSockGlobals||window;if((d=t.TweenMax||t.TweenLite)&&(t=t.com.greensock,p=t.plugins.CSSPlugin,b=t.easing.Ease.map||{}),!d||!p)return d=null,void(!r&&window.console&&(window.console.log("The jquery.gsap.js plugin requires the TweenMax (or at least TweenLite and CSSPlugin) JavaScript file(s)."),r=!0));if(h.easing){for(e in b)h.easing[e]=i(b[e]);x=!1}};h.fn.animate=function(e,t,r,n){if(e=e||{},x&&(x(),!d||!p))return m.call(this,e,t,r,n);if(!g||!0===e.skipGSAP||"object"==typeof t&&"function"==typeof t.step)return m.call(this,e,t,r,n);var i,o,a,s,u=h.speed(t,r,n),c={ease:b[u.easing]||(!1===u.easing?b.linear:b.swing)},l=this,f="object"==typeof t?t.specialEasing:null;for(o in e){if((i=e[o])instanceof Array&&b[i[1]]&&((f=f||{})[o]=i[1],i=i[0]),"show"===i||"hide"===i||"toggle"===i||-1!==y.indexOf(o)&&-1!==y.indexOf(","+o+","))return m.call(this,e,t,r,n);c[-1===o.indexOf("-")?o:h.camelCase(o)]=i}if(f){for(o in c=v(c),s=[],f)i=s[s.length]={},_(c,i),i.ease=b[f[o]]||c.ease,-1!==o.indexOf("-")&&(o=h.camelCase(o)),i[o]=c[o],delete c[o];0===s.length&&(s=null)}return!(a=function(e){var t,r=v(c);if(s)for(t=s.length;-1<--t;)d.to(this,h.fx.off?0:u.duration/1e3,s[t]);r.onComplete=function(){e?e():u.old&&h(this).each(u.old)},d.to(this,h.fx.off?0:u.duration/1e3,r)})!==u.queue?(l.queue(u.queue,a),"function"==typeof u.old&&h(l[l.length-1]).queue(u.queue,function(e){u.old.call(l),e()})):a.call(l),l},h.fn.stop=function(e,t){if(o.call(this,e,t),d){if(t)for(var r,n=d.getTweensOf(this),i=n.length;-1<--i;)0<(r=n[i].totalTime()/n[i].totalDuration())&&r<1&&n[i].seek(n[i].totalDuration());d.killTweensOf(this)}return this},h.gsap={enabled:function(e){g=e},version:"0.1.13",legacyProps:function(e){y=t+e+","}}}(jQuery);var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("easing.Back",["easing.Ease"],function(g){var r,n,t,e,i=_gsScope.GreenSockGlobals||_gsScope,o=i.com.greensock,a=2*Math.PI,s=Math.PI/2,u=o._class,c=function(e,t){var r=u("easing."+e,function(){},!0),n=r.prototype=new g;return n.constructor=r,n.getRatio=t,r},l=g.register||function(){},f=function(e,t,r,n,i){var o=u("easing."+e,{easeOut:new t,easeIn:new r,easeInOut:new n},!0);return l(o,e),o},v=function(e,t,r){this.t=e,this.v=t,r&&(((this.next=r).prev=this).c=r.v-t,this.gap=r.t-e)},h=function(e,t){var r=u("easing."+e,function(e){this._p1=e||0===e?e:1.70158,this._p2=1.525*this._p1},!0),n=r.prototype=new g;return n.constructor=r,n.getRatio=t,n.config=function(e){return new r(e)},r},d=f("Back",h("BackOut",function(e){return(e-=1)*e*((this._p1+1)*e+this._p1)+1}),h("BackIn",function(e){return e*e*((this._p1+1)*e-this._p1)}),h("BackInOut",function(e){return(e*=2)<1?.5*e*e*((this._p2+1)*e-this._p2):.5*((e-=2)*e*((this._p2+1)*e+this._p2)+2)})),p=u("easing.SlowMo",function(e,t,r){t=t||0===t?t:.7,null==e?e=.7:1<e&&(e=1),this._p=1!==e?t:0,this._p1=(1-e)/2,this._p2=e,this._p3=this._p1+this._p2,this._calcEnd=!0===r},!0),m=p.prototype=new g;return m.constructor=p,m.getRatio=function(e){var t=e+(.5-e)*this._p;return e<this._p1?this._calcEnd?1-(e=1-e/this._p1)*e:t-(e=1-e/this._p1)*e*e*e*t:e>this._p3?this._calcEnd?1===e?0:1-(e=(e-this._p3)/this._p1)*e:t+(e-t)*(e=(e-this._p3)/this._p1)*e*e*e:this._calcEnd?1:t},p.ease=new p(.7,.7),m.config=p.config=function(e,t,r){return new p(e,t,r)},(m=(r=u("easing.SteppedEase",function(e,t){e=e||1,this._p1=1/e,this._p2=e+(t?0:1),this._p3=t?1:0},!0)).prototype=new g).constructor=r,m.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},m.config=r.config=function(e,t){return new r(e,t)},(m=(n=u("easing.ExpoScaleEase",function(e,t,r){this._p1=Math.log(t/e),this._p2=t-e,this._p3=e,this._ease=r},!0)).prototype=new g).constructor=n,m.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},m.config=n.config=function(e,t,r){return new n(e,t,r)},(m=(t=u("easing.RoughEase",function(e){for(var t,r,n,i,o,a,s=(e=e||{}).taper||"none",u=[],c=0,l=0|(e.points||20),f=l,h=!1!==e.randomize,d=!0===e.clamp,p=e.template instanceof g?e.template:null,m="number"==typeof e.strength?.4*e.strength:.4;-1<--f;)t=h?Math.random():1/l*f,r=p?p.getRatio(t):t,n="none"===s?m:"out"===s?(i=1-t)*i*m:"in"===s?t*t*m:t<.5?(i=2*t)*i*.5*m:(i=2*(1-t))*i*.5*m,h?r+=Math.random()*n-.5*n:f%2?r+=.5*n:r-=.5*n,d&&(1<r?r=1:r<0&&(r=0)),u[c++]={x:t,y:r};for(u.sort(function(e,t){return e.x-t.x}),a=new v(1,1,null),f=l;-1<--f;)o=u[f],a=new v(o.x,o.y,a);this._prev=new v(0,0,0!==a.t?a:a.next)},!0)).prototype=new g).constructor=t,m.getRatio=function(e){var t=this._prev;if(e>t.t){for(;t.next&&e>=t.t;)t=t.next;t=t.prev}else for(;t.prev&&e<=t.t;)t=t.prev;return(this._prev=t).v+(e-t.t)/t.gap*t.c},m.config=function(e){return new t(e)},t.ease=new t,f("Bounce",c("BounceOut",function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}),c("BounceIn",function(e){return(e=1-e)<1/2.75?1-7.5625*e*e:e<2/2.75?1-(7.5625*(e-=1.5/2.75)*e+.75):e<2.5/2.75?1-(7.5625*(e-=2.25/2.75)*e+.9375):1-(7.5625*(e-=2.625/2.75)*e+.984375)}),c("BounceInOut",function(e){var t=e<.5;return(e=t?1-2*e:2*e-1)<1/2.75?e*=7.5625*e:e=e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375,t?.5*(1-e):.5*e+.5})),f("Circ",c("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),c("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),c("CircInOut",function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)})),f("Elastic",(e=function(e,t,r){var n=u("easing."+e,function(e,t){this._p1=1<=e?e:1,this._p2=(t||r)/(e<1?e:1),this._p3=this._p2/a*(Math.asin(1/this._p1)||0),this._p2=a/this._p2},!0),i=n.prototype=new g;return i.constructor=n,i.getRatio=t,i.config=function(e,t){return new n(e,t)},n})("ElasticOut",function(e){return this._p1*Math.pow(2,-10*e)*Math.sin((e-this._p3)*this._p2)+1},.3),e("ElasticIn",function(e){return-this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)},.3),e("ElasticInOut",function(e){return(e*=2)<1?this._p1*Math.pow(2,10*(e-=1))*Math.sin((e-this._p3)*this._p2)*-.5:this._p1*Math.pow(2,-10*(e-=1))*Math.sin((e-this._p3)*this._p2)*.5+1},.45)),f("Expo",c("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),c("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),c("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),f("Sine",c("SineOut",function(e){return Math.sin(e*s)}),c("SineIn",function(e){return 1-Math.cos(e*s)}),c("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return g.map[e]}},!0),l(i.SlowMo,"SlowMo","ease,"),l(t,"RoughEase","ease,"),l(r,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(){"use strict";var e=function(){return _gsScope.GreenSockGlobals||_gsScope};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=e()):"function"==typeof define&&define.amd&&define(["TweenLite"],e)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"attr",API:2,version:"0.6.1",init:function(e,t,r,n){var i,o;if("function"!=typeof e.setAttribute)return!1;for(i in t)"function"==typeof(o=t[i])&&(o=o(n,e)),this._addTween(e,"setAttribute",e.getAttribute(i)+"",o+"",i,!1,i),this._overwriteProps.push(i);return!0}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).AttrPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var T=180/Math.PI,x=[],w=[],S=[],v={},r=_gsScope._gsDefine.globals,y=function(e,t,r,n){r===n&&(r=n-(n-t)/1e6),e===t&&(t=e+(r-e)/1e6),this.a=e,this.b=t,this.c=r,this.d=n,this.da=n-e,this.ca=r-e,this.ba=t-e},M=function(e,t,r,n){var i={a:e},o={},a={},s={c:n},u=(e+t)/2,c=(t+r)/2,l=(r+n)/2,f=(u+c)/2,h=(c+l)/2,d=(h-f)/8;return i.b=u+(e-u)/4,o.b=f+d,i.c=o.a=(i.b+o.b)/2,o.c=a.a=(f+h)/2,a.b=h-d,s.b=l+(n-l)/4,a.c=s.a=(a.b+s.b)/2,[i,o,a,s]},_=function(e,t,r,n,i){var o,a,s,u,c,l,f,h,d,p,m,g,v,y=e.length-1,_=0,b=e[0].a;for(o=0;o<y;o++)a=(c=e[_]).a,s=c.d,u=e[_+1].d,h=i?(m=x[o],v=((g=w[o])+m)*t*.25/(n?.5:S[o]||.5),s-((l=s-(s-a)*(n?.5*t:0!==m?v/m:0))+(((f=s+(u-s)*(n?.5*t:0!==g?v/g:0))-l)*(3*m/(m+g)+.5)/4||0))):s-((l=s-(s-a)*t*.5)+(f=s+(u-s)*t*.5))/2,l+=h,f+=h,c.c=d=l,c.b=0!==o?b:b=c.a+.6*(c.c-c.a),c.da=s-a,c.ca=d-a,c.ba=b-a,r?(p=M(a,b,d,s),e.splice(_,1,p[0],p[1],p[2],p[3]),_+=4):_++,b=f;(c=e[_]).b=b,c.c=b+.4*(c.d-b),c.da=c.d-c.a,c.ca=c.c-c.a,c.ba=b-c.a,r&&(p=M(c.a,b,c.c,c.d),e.splice(_,1,p[0],p[1],p[2],p[3]))},b=function(e,t,r,n){var i,o,a,s,u,c,l=[];if(n)for(o=(e=[n].concat(e)).length;-1<--o;)"string"==typeof(c=e[o][t])&&"="===c.charAt(1)&&(e[o][t]=n[t]+Number(c.charAt(0)+c.substr(2)));if((i=e.length-2)<0)return l[0]=new y(e[0][t],0,0,e[0][t]),l;for(o=0;o<i;o++)a=e[o][t],s=e[o+1][t],l[o]=new y(a,0,0,s),r&&(u=e[o+2][t],x[o]=(x[o]||0)+(s-a)*(s-a),w[o]=(w[o]||0)+(u-s)*(u-s));return l[o]=new y(e[o][t],0,0,e[o+1][t]),l},d=function(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p={},m=[],g=o||e[0];for(s in i="string"==typeof i?","+i+",":",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",null==t&&(t=1),e[0])m.push(s);if(1<e.length){for(d=e[e.length-1],h=!0,a=m.length;-1<--a;)if(s=m[a],.05<Math.abs(g[s]-d[s])){h=!1;break}h&&(e=e.concat(),o&&e.unshift(o),e.push(e[1]),o=e[e.length-3])}for(x.length=w.length=S.length=0,a=m.length;-1<--a;)s=m[a],v[s]=-1!==i.indexOf(","+s+","),p[s]=b(e,s,v[s],o);for(a=x.length;-1<--a;)x[a]=Math.sqrt(x[a]),w[a]=Math.sqrt(w[a]);if(!n){for(a=m.length;-1<--a;)if(v[s])for(f=(u=p[m[a]]).length-1,c=0;c<f;c++)l=u[c+1].da/w[c]+u[c].da/x[c]||0,S[c]=(S[c]||0)+l*l;for(a=S.length;-1<--a;)S[a]=Math.sqrt(S[a])}for(a=m.length,c=r?4:1;-1<--a;)u=p[s=m[a]],_(u,t,r,n,v[s]),h&&(u.splice(0,c),u.splice(u.length-c,c));return p},p=function(e,t,r){for(var n,i,o,a,s,u,c,l,f,h,d,p=1/r,m=e.length;-1<--m;)for(o=(h=e[m]).a,a=h.d-o,s=h.c-o,u=h.b-o,n=i=0,l=1;l<=r;l++)n=i-(i=((c=p*l)*c*a+3*(f=1-c)*(c*s+f*u))*c),t[d=m*r+l-1]=(t[d]||0)+n*n},g=_gsScope._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.8",API:2,global:!0,init:function(e,t,r){this._target=e,t instanceof Array&&(t={values:t}),this._func={},this._mod={},this._props=[],this._timeRes=null==t.timeResolution?6:parseInt(t.timeResolution,10);var n,i,o,a,s,u=t.values||[],c={},l=u[0],f=t.autoRotate||r.vars.orientToBezier;for(n in this._autoRotate=f?f instanceof Array?f:[["x","y","rotation",!0===f?0:Number(f)||0]]:null,l)this._props.push(n);for(o=this._props.length;-1<--o;)n=this._props[o],this._overwriteProps.push(n),i=this._func[n]="function"==typeof e[n],c[n]=i?e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)]():parseFloat(e[n]),s||c[n]!==u[0][n]&&(s=c);if(this._beziers="cubic"!==t.type&&"quadratic"!==t.type&&"soft"!==t.type?d(u,isNaN(t.curviness)?1:t.curviness,!1,"thruBasic"===t.type,t.correlate,s):function(e,t,r){var n,i,o,a,s,u,c,l,f,h,d,p={},m="cubic"===(t=t||"soft")?3:2,g="soft"===t,v=[];if(g&&r&&(e=[r].concat(e)),null==e||e.length<1+m)throw"invalid Bezier data";for(f in e[0])v.push(f);for(u=v.length;-1<--u;){for(p[f=v[u]]=s=[],h=0,l=e.length,c=0;c<l;c++)n=null==r?e[c][f]:"string"==typeof(d=e[c][f])&&"="===d.charAt(1)?r[f]+Number(d.charAt(0)+d.substr(2)):Number(d),g&&1<c&&c<l-1&&(s[h++]=(n+s[h-2])/2),s[h++]=n;for(l=h-m+1,c=h=0;c<l;c+=m)n=s[c],i=s[c+1],o=s[c+2],a=2==m?0:s[c+3],s[h++]=d=3==m?new y(n,i,o,a):new y(n,(2*i+n)/3,(2*i+o)/3,o);s.length=h}return p}(u,t.type,c),this._segCount=this._beziers[n].length,this._timeRes){var h=function(e,t){var r,n,i,o,a=[],s=[],u=0,c=0,l=(t=t>>0||6)-1,f=[],h=[];for(r in e)p(e[r],a,t);for(i=a.length,n=0;n<i;n++)u+=Math.sqrt(a[n]),h[o=n%t]=u,o===l&&(c+=u,f[o=n/t>>0]=h,s[o]=c,u=0,h=[]);return{length:c,lengths:s,segments:f}}(this._beziers,this._timeRes);this._length=h.length,this._lengths=h.lengths,this._segments=h.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(f=this._autoRotate)for(this._initialRotations=[],f[0]instanceof Array||(this._autoRotate=f=[f]),o=f.length;-1<--o;){for(a=0;a<3;a++)n=f[o][a],this._func[n]="function"==typeof e[n]&&e[n.indexOf("set")||"function"!=typeof e["get"+n.substr(3)]?n:"get"+n.substr(3)];n=f[o][2],this._initialRotations[o]=(this._func[n]?this._func[n].call(this._target):this._target[n])||0,this._overwriteProps.push(n)}return this._startRatio=r.vars.runBackwards?1:0,!0},set:function(e){var t,r,n,i,o,a,s,u,c,l,f=this._segCount,h=this._func,d=this._target,p=e!==this._startRatio;if(this._timeRes){if(c=this._lengths,l=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n<f-1){for(u=f-1;n<u&&(this._l2=c[++n])<=e;);this._l1=c[n-1],this._li=n,this._curSeg=l=this._segments[n],this._s2=l[this._s1=this._si=0]}else if(e<this._l1&&0<n){for(;0<n&&(this._l1=c[--n])>=e;);0===n&&e<this._l1?this._l1=0:n++,this._l2=c[n],this._li=n,this._curSeg=l=this._segments[n],this._s1=l[(this._si=l.length-1)-1]||0,this._s2=l[this._si]}if(t=n,e-=this._l1,n=this._si,e>this._s2&&n<l.length-1){for(u=l.length-1;n<u&&(this._s2=l[++n])<=e;);this._s1=l[n-1],this._si=n}else if(e<this._s1&&0<n){for(;0<n&&(this._s1=l[--n])>=e;);0===n&&e<this._s1?this._s1=0:n++,this._s2=l[n],this._si=n}a=(n+(e-this._s1)/(this._s2-this._s1))*this._prec||0}else a=(e-(t=e<0?0:1<=e?f-1:f*e>>0)*(1/f))*f;for(r=1-a,n=this._props.length;-1<--n;)i=this._props[n],s=(a*a*(o=this._beziers[i][t]).da+3*r*(a*o.ca+r*o.ba))*a+o.a,this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s;if(this._autoRotate){var m,g,v,y,_,b,x,w=this._autoRotate;for(n=w.length;-1<--n;)i=w[n][2],b=w[n][3]||0,x=!0===w[n][4]?1:T,o=this._beziers[w[n][0]],m=this._beziers[w[n][1]],o&&m&&(o=o[t],m=m[t],g=o.a+(o.b-o.a)*a,g+=((y=o.b+(o.c-o.b)*a)-g)*a,y+=(o.c+(o.d-o.c)*a-y)*a,v=m.a+(m.b-m.a)*a,v+=((_=m.b+(m.c-m.b)*a)-v)*a,_+=(m.c+(m.d-m.c)*a-_)*a,s=p?Math.atan2(_-v,y-g)*x+b:this._initialRotations[n],this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s)}}}),e=g.prototype;g.bezierThrough=d,g.cubicToQuadratic=M,g._autoCSS=!0,g.quadraticToCubic=function(e,t,r){return new y(e,(2*t+e)/3,(2*t+r)/3,r)},g._cssRegister=function(){var e=r.CSSPlugin;if(e){var t=e._internals,d=t._parseToProxy,p=t._setPluginRatio,m=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,r,n,i,o){t instanceof Array&&(t={values:t}),o=new g;var a,s,u,c=t.values,l=c.length-1,f=[],h={};if(l<0)return i;for(a=0;a<=l;a++)u=d(e,c[a],n,i,o,l!==a),f[a]=u.end;for(s in t)h[s]=t[s];return h.values=f,(i=new m(e,"bezier",0,0,u.pt,2)).data=u,i.plugin=o,i.setRatio=p,0===h.autoRotate&&(h.autoRotate=!0),!h.autoRotate||h.autoRotate instanceof Array||(a=!0===h.autoRotate?0:Number(h.autoRotate),h.autoRotate=null!=u.end.left?[["left","top","rotation",a,!1]]:null!=u.end.x&&[["x","y","rotation",a,!1]]),h.autoRotate&&(n._transform||n._enableTransforms(!1),u.autoRotate=n._target._gsTransform,u.proxy.rotation=u.autoRotate.rotation||0,n._overwriteProps.push("rotation")),o._onInitTween(u.proxy,h,n._tween),i}})}},e._mod=function(e){for(var t,r=this._overwriteProps,n=r.length;-1<--n;)(t=e[r[n]])&&"function"==typeof t&&(this._mod[r[n]]=t)},e._kill=function(e){var t,r,n=this._props;for(t in this._beziers)if(t in e)for(delete this._beziers[t],delete this._func[t],r=n.length;-1<--r;)n[r]===t&&n.splice(r,1);if(n=this._autoRotate)for(r=n.length;-1<--r;)e[n[r][2]]&&n.splice(r,1);return this._super._kill.call(this,e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).BezierPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(o,z){var p,S,M,m,U=function(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=U.prototype.setRatio},c=_gsScope._gsDefine.globals,g={},e=U.prototype=new o("css");(e.constructor=U).version="2.1.0",U.API=2,U.defaultTransformPerspective=0,U.defaultSkewType="compensated",U.defaultSmoothOrigin=!0,e="px",U.suffixMap={top:e,right:e,bottom:e,left:e,width:e,height:e,fontSize:e,padding:e,margin:e,perspective:e,lineHeight:""};var E,v,y,j,_,P,C,k,t,r,A=/(?:\-|\.|\b)(\d|\.|e\-)+/g,O=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,b=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,l=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,R=/(?:\d|\-|\+|=|#|\.)*/g,I=/opacity *= *([^)]*)/i,x=/opacity:([^;]*)/i,a=/alpha\(opacity *=.+?\)/i,w=/^(rgb|hsl)/,s=/([A-Z])/g,u=/-([a-z])/gi,T=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,f=function(e,t){return t.toUpperCase()},d=/(?:Left|Right|Width)/i,h=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,D=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,L=/,(?=[^\)]*(?:\(|$))/gi,N=/[\s,\(]/i,F=Math.PI/180,X=180/Math.PI,B={},n={style:{}},q=_gsScope.document||{createElement:function(){return n}},H=function(e,t){return t&&q.createElementNS?q.createElementNS(t,e):q.createElement(e)},Y=H("div"),G=H("img"),i=U._internals={_specialProps:g},W=(_gsScope.navigator||{}).userAgent||"",V=(t=W.indexOf("Android"),r=H("a"),y=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||3<parseFloat(W.substr(t+8,2))),_=y&&parseFloat(W.substr(W.indexOf("Version/")+8,2))<6,j=-1!==W.indexOf("Firefox"),(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(W)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(W))&&(P=parseFloat(RegExp.$1)),!!r&&(r.style.cssText="top:1px;opacity:.55;",/^0.55/.test(r.style.opacity))),K=function(e){return I.test("string"==typeof e?e:(e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100:1},J=function(e){_gsScope.console&&console.log(e)},Z="",Q="",$=function(e,t){var r,n,i=(t=t||Y).style;if(void 0!==i[e])return e;for(e=e.charAt(0).toUpperCase()+e.substr(1),r=["O","Moz","ms","Ms","Webkit"],n=5;-1<--n&&void 0===i[r[n]+e];);return 0<=n?(Z="-"+(Q=3===n?"ms":r[n]).toLowerCase()+"-",Q+e):null},ee="undefined"!=typeof window?window:q.defaultView||{getComputedStyle:function(){}},te=function(e){return ee.getComputedStyle(e)},re=U.getStyle=function(e,t,r,n,i){var o;return V||"opacity"!==t?(!n&&e.style[t]?o=e.style[t]:(r=r||te(e))?o=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(s,"-$1").toLowerCase()):e.currentStyle&&(o=e.currentStyle[t]),null==i||o&&"none"!==o&&"auto"!==o&&"auto auto"!==o?o:i):K(e)},ne=i.convertToPixels=function(e,t,r,n,i){if("px"===n||!n&&"lineHeight"!==t)return r;if("auto"===n||!r)return 0;var o,a,s,u=d.test(t),c=e,l=Y.style,f=r<0,h=1===r;if(f&&(r=-r),h&&(r*=100),"lineHeight"!==t||n)if("%"===n&&-1!==t.indexOf("border"))o=r/100*(u?e.clientWidth:e.clientHeight);else{if(l.cssText="border:0 solid red;position:"+re(e,"position")+";line-height:0;","%"!==n&&c.appendChild&&"v"!==n.charAt(0)&&"rem"!==n)l[u?"borderLeftWidth":"borderTopWidth"]=r+n;else{if(c=e.parentNode||q.body,-1!==re(c,"display").indexOf("flex")&&(l.position="absolute"),a=c._gsCache,s=z.ticker.frame,a&&u&&a.time===s)return a.width*r/100;l[u?"width":"height"]=r+n}c.appendChild(Y),o=parseFloat(Y[u?"offsetWidth":"offsetHeight"]),c.removeChild(Y),u&&"%"===n&&!1!==U.cacheWidths&&((a=c._gsCache=c._gsCache||{}).time=s,a.width=o/r*100),0!==o||i||(o=ne(e,t,r,n,!0))}else a=te(e).lineHeight,e.style.lineHeight=r,o=parseFloat(te(e).lineHeight),e.style.lineHeight=a;return h&&(o/=100),f?-o:o},ie=i.calculateOffset=function(e,t,r){if("absolute"!==re(e,"position",r))return 0;var n="left"===t?"Left":"Top",i=re(e,"margin"+n,r);return e["offset"+n]-(ne(e,t,parseFloat(i),i.replace(R,""))||0)},oe=function(e,t){var r,n,i,o={};if(t=t||te(e))if(r=t.length)for(;-1<--r;)-1!==(i=t[r]).indexOf("-transform")&&Ne!==i||(o[i.replace(u,f)]=t.getPropertyValue(i));else for(r in t)-1!==r.indexOf("Transform")&&Le!==r||(o[r]=t[r]);else if(t=e.currentStyle||e.style)for(r in t)"string"==typeof r&&void 0===o[r]&&(o[r.replace(u,f)]=t[r]);return V||(o.opacity=K(e)),n=Ke(e,t,!1),o.rotation=n.rotation,o.skewX=n.skewX,o.scaleX=n.scaleX,o.scaleY=n.scaleY,o.x=n.x,o.y=n.y,Fe&&(o.z=n.z,o.rotationX=n.rotationX,o.rotationY=n.rotationY,o.scaleZ=n.scaleZ),o.filters&&delete o.filters,o},ae=function(e,t,r,n,i){var o,a,s,u={},c=e.style;for(a in r)"cssText"!==a&&"length"!==a&&isNaN(a)&&(t[a]!==(o=r[a])||i&&i[a])&&-1===a.indexOf("Origin")&&("number"!=typeof o&&"string"!=typeof o||(u[a]="auto"!==o||"left"!==a&&"top"!==a?""!==o&&"auto"!==o&&"none"!==o||"string"!=typeof t[a]||""===t[a].replace(l,"")?o:0:ie(e,a),void 0!==c[a]&&(s=new xe(c,a,c[a],s))));if(n)for(a in n)"className"!==a&&(u[a]=n[a]);return{difs:u,firstMPT:s}},se={width:["Left","Right"],height:["Top","Bottom"]},ue=["marginLeft","marginRight","marginTop","marginBottom"],ce=function(e,t,r){if("svg"===(e.nodeName+"").toLowerCase())return(r||te(e))[t]||0;if(e.getCTM&&Ge(e))return e.getBBox()[t]||0;var n=parseFloat("width"===t?e.offsetWidth:e.offsetHeight),i=se[t],o=i.length;for(r=r||te(e);-1<--o;)n-=parseFloat(re(e,"padding"+i[o],r,!0))||0,n-=parseFloat(re(e,"border"+i[o]+"Width",r,!0))||0;return n},le=function(e,t){if("contain"===e||"auto"===e||"auto auto"===e)return e+" ";null!=e&&""!==e||(e="0 0");var r,n=e.split(" "),i=-1!==e.indexOf("left")?"0%":-1!==e.indexOf("right")?"100%":n[0],o=-1!==e.indexOf("top")?"0%":-1!==e.indexOf("bottom")?"100%":n[1];if(3<n.length&&!t){for(n=e.split(", ").join(",").split(","),e=[],r=0;r<n.length;r++)e.push(le(n[r]));return e.join(",")}return null==o?o="center"===i?"50%":"0":"center"===o&&(o="50%"),("center"===i||isNaN(parseFloat(i))&&-1===(i+"").indexOf("="))&&(i="50%"),e=i+" "+o+(2<n.length?" "+n[2]:""),t&&(t.oxp=-1!==i.indexOf("%"),t.oyp=-1!==o.indexOf("%"),t.oxr="="===i.charAt(1),t.oyr="="===o.charAt(1),t.ox=parseFloat(i.replace(l,"")),t.oy=parseFloat(o.replace(l,"")),t.v=e),t||e},fe=function(e,t){return"function"==typeof e&&(e=e(k,C)),"string"==typeof e&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2)):parseFloat(e)-parseFloat(t)||0},he=function(e,t){"function"==typeof e&&(e=e(k,C));var r="string"==typeof e&&"="===e.charAt(1);return"string"==typeof e&&"v"===e.charAt(e.length-2)&&(e=(r?e.substr(0,2):0)+window["inner"+("vh"===e.substr(-2)?"Height":"Width")]*(parseFloat(r?e.substr(2):e)/100)),null==e?t:r?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+t:parseFloat(e)||0},de=function(e,t,r,n){var i,o,a,s;return"function"==typeof e&&(e=e(k,C)),(a=null==e?t:"number"==typeof e?e:(360,i=e.split("_"),o=((s="="===e.charAt(1))?parseInt(e.charAt(0)+"1",10)*parseFloat(i[0].substr(2)):parseFloat(i[0]))*(-1===e.indexOf("rad")?1:X)-(s?0:t),i.length&&(n&&(n[r]=t+o),-1!==e.indexOf("short")&&(o%=360)!==o%180&&(o=o<0?o+360:o-360),-1!==e.indexOf("_cw")&&o<0?o=(o+3599999999640)%360-360*(o/360|0):-1!==e.indexOf("ccw")&&0<o&&(o=(o-3599999999640)%360-360*(o/360|0))),t+o))<1e-6&&-1e-6<a&&(a=0),a},pe={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},me=function(e,t,r){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},ge=U.parseColor=function(e,t){var r,n,i,o,a,s,u,c,l,f,h;if(e)if("number"==typeof e)r=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),pe[e])r=pe[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(n=e.charAt(1))+n+(i=e.charAt(2))+i+(o=e.charAt(3))+o),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=h=e.match(A),t){if(-1!==e.indexOf("="))return e.match(O)}else a=Number(r[0])%360/360,s=Number(r[1])/100,n=2*(u=Number(r[2])/100)-(i=u<=.5?u*(s+1):u+s-u*s),3<r.length&&(r[3]=Number(r[3])),r[0]=me(a+1/3,n,i),r[1]=me(a,n,i),r[2]=me(a-1/3,n,i);else r=e.match(A)||pe.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=pe.black;return t&&!h&&(n=r[0]/255,i=r[1]/255,o=r[2]/255,u=((c=Math.max(n,i,o))+(l=Math.min(n,i,o)))/2,c===l?a=s=0:(f=c-l,s=.5<u?f/(2-c-l):f/(c+l),a=c===n?(i-o)/f+(i<o?6:0):c===i?(o-n)/f+2:(n-i)/f+4,a*=60),r[0]=a+.5|0,r[1]=100*s+.5|0,r[2]=100*u+.5|0),r},ve=function(e,t){var r,n,i,o=e.match(ye)||[],a=0,s="";if(!o.length)return e;for(r=0;r<o.length;r++)n=o[r],a+=(i=e.substr(a,e.indexOf(n,a)-a)).length+n.length,3===(n=ge(n,t)).length&&n.push(1),s+=i+(t?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return s+e.substr(a)},ye="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(e in pe)ye+="|"+e+"\\b";ye=new RegExp(ye+")","gi"),U.colorStringFilter=function(e){var t,r=e[0]+" "+e[1];ye.test(r)&&(t=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),e[0]=ve(e[0],t),e[1]=ve(e[1],t)),ye.lastIndex=0},z.defaultStringFilter||(z.defaultStringFilter=U.colorStringFilter);var _e=function(e,t,o,a){if(null==e)return function(e){return e};var s,u=t?(e.match(ye)||[""])[0]:"",c=e.split(u).join("").match(b)||[],l=e.substr(0,e.indexOf(c[0])),f=")"===e.charAt(e.length-1)?")":"",h=-1!==e.indexOf(" ")?" ":",",d=c.length,p=0<d?c[0].replace(A,""):"";return d?s=t?function(e){var t,r,n,i;if("number"==typeof e)e+=p;else if(a&&L.test(e)){for(i=e.replace(L,"|").split("|"),n=0;n<i.length;n++)i[n]=s(i[n]);return i.join(",")}if(t=(e.match(ye)||[u])[0],n=(r=e.split(t).join("").match(b)||[]).length,d>n--)for(;++n<d;)r[n]=o?r[(n-1)/2|0]:c[n];return l+r.join(h)+h+t+f+(-1!==e.indexOf("inset")?" inset":"")}:function(e){var t,r,n;if("number"==typeof e)e+=p;else if(a&&L.test(e)){for(r=e.replace(L,"|").split("|"),n=0;n<r.length;n++)r[n]=s(r[n]);return r.join(",")}if(n=(t=e.match(b)||[]).length,d>n--)for(;++n<d;)t[n]=o?t[(n-1)/2|0]:c[n];return l+t.join(h)+f}:function(e){return e}},be=function(c){return c=c.split(","),function(e,t,r,n,i,o,a){var s,u=(t+"").split(" ");for(a={},s=0;s<4;s++)a[c[s]]=u[s]=u[s]||u[(s-1)/2>>0];return n.parse(e,a,i,o)}},xe=(i._setPluginRatio=function(e){this.plugin.setRatio(e);for(var t,r,n,i,o,a=this.data,s=a.proxy,u=a.firstMPT;u;)t=s[u.v],u.r?t=u.r(t):t<1e-6&&-1e-6<t&&(t=0),u.t[u.p]=t,u=u._next;if(a.autoRotate&&(a.autoRotate.rotation=a.mod?a.mod.call(this._tween,s.rotation,this.t,this._tween):s.rotation),1===e||0===e)for(u=a.firstMPT,o=1===e?"e":"b";u;){if((r=u.t).type){if(1===r.type){for(i=r.xs0+r.s+r.xs1,n=1;n<r.l;n++)i+=r["xn"+n]+r["xs"+(n+1)];r[o]=i}}else r[o]=r.s+r.xs0;u=u._next}},function(e,t,r,n,i){this.t=e,this.p=t,this.v=r,this.r=i,n&&((n._prev=this)._next=n)}),we=(i._parseToProxy=function(e,t,r,n,i,o){var a,s,u,c,l,f=n,h={},d={},p=r._transform,m=B;for(r._transform=null,B=t,n=l=r.parse(e,t,n,i),B=m,o&&(r._transform=p,f&&(f._prev=null,f._prev&&(f._prev._next=null)));n&&n!==f;){if(n.type<=1&&(d[s=n.p]=n.s+n.c,h[s]=n.s,o||(c=new xe(n,"s",s,c,n.r),n.c=0),1===n.type))for(a=n.l;0<--a;)u="xn"+a,d[s=n.p+"_"+u]=n.data[u],h[s]=n[u],o||(c=new xe(n,u,s,c,n.rxp[u]));n=n._next}return{proxy:h,end:d,firstMPT:c,pt:l}},i.CSSPropTween=function(e,t,r,n,i,o,a,s,u,c,l){this.t=e,this.p=t,this.s=r,this.c=n,this.n=a||t,e instanceof we||m.push(this.n),this.r=s?"function"==typeof s?s:Math.round:s,this.type=o||0,u&&(this.pr=u,p=!0),this.b=void 0===c?r:c,this.e=void 0===l?r+n:l,i&&((this._next=i)._prev=this)}),Te=function(e,t,r,n,i,o){var a=new we(e,t,r,n-r,i,-1,o);return a.b=r,a.e=a.xs0=n,a},Se=U.parseComplex=function(e,t,r,n,i,o,a,s,u,c){r=r||o||"","function"==typeof n&&(n=n(k,C)),a=new we(e,t,0,0,a,c?2:1,null,!1,s,r,n),n+="",i&&ye.test(n+r)&&(n=[r,n],U.colorStringFilter(n),r=n[0],n=n[1]);var l,f,h,d,p,m,g,v,y,_,b,x,w,T=r.split(", ").join(",").split(" "),S=n.split(", ").join(",").split(" "),M=T.length,P=!1!==E;for(-1===n.indexOf(",")&&-1===r.indexOf(",")||(S=-1!==(n+r).indexOf("rgb")||-1!==(n+r).indexOf("hsl")?(T=T.join(" ").replace(L,", ").split(" "),S.join(" ").replace(L,", ").split(" ")):(T=T.join(" ").split(",").join(", ").split(" "),S.join(" ").split(",").join(", ").split(" ")),M=T.length),M!==S.length&&(M=(T=(o||"").split(" ")).length),a.plugin=u,a.setRatio=c,l=ye.lastIndex=0;l<M;l++)if(d=T[l],p=S[l]+"",(v=parseFloat(d))||0===v)a.appendXtra("",v,fe(p,v),p.replace(O,""),P&&-1!==p.indexOf("px")&&Math.round,!0);else if(i&&ye.test(d))x=")"+((x=p.indexOf(")")+1)?p.substr(x):""),w=-1!==p.indexOf("hsl")&&V,_=p,d=ge(d,w),p=ge(p,w),(y=6<d.length+p.length)&&!V&&0===p[3]?(a["xs"+a.l]+=a.l?" transparent":"transparent",a.e=a.e.split(S[l]).join("transparent")):(V||(y=!1),w?a.appendXtra(_.substr(0,_.indexOf("hsl"))+(y?"hsla(":"hsl("),d[0],fe(p[0],d[0]),",",!1,!0).appendXtra("",d[1],fe(p[1],d[1]),"%,",!1).appendXtra("",d[2],fe(p[2],d[2]),y?"%,":"%"+x,!1):a.appendXtra(_.substr(0,_.indexOf("rgb"))+(y?"rgba(":"rgb("),d[0],p[0]-d[0],",",Math.round,!0).appendXtra("",d[1],p[1]-d[1],",",Math.round).appendXtra("",d[2],p[2]-d[2],y?",":x,Math.round),y&&(d=d.length<4?1:d[3],a.appendXtra("",d,(p.length<4?1:p[3])-d,x,!1))),ye.lastIndex=0;else if(m=d.match(A)){if(!(g=p.match(O))||g.length!==m.length)return a;for(f=h=0;f<m.length;f++)b=m[f],_=d.indexOf(b,h),a.appendXtra(d.substr(h,_-h),Number(b),fe(g[f],b),"",P&&"px"===d.substr(_+b.length,2)&&Math.round,0===f),h=_+b.length;a["xs"+a.l]+=d.substr(h)}else a["xs"+a.l]+=a.l||a["xs"+a.l]?" "+p:p;if(-1!==n.indexOf("=")&&a.data){for(x=a.xs0+a.data.s,l=1;l<a.l;l++)x+=a["xs"+l]+a.data["xn"+l];a.e=x+a["xs"+l]}return a.l||(a.type=-1,a.xs0=a.e),a.xfirst||a},Me=9;for((e=we.prototype).l=e.pr=0;0<--Me;)e["xn"+Me]=0,e["xs"+Me]="";e.xs0="",e._next=e._prev=e.xfirst=e.data=e.plugin=e.setRatio=e.rxp=null,e.appendXtra=function(e,t,r,n,i,o){var a=this,s=a.l;return a["xs"+s]+=o&&(s||a["xs"+s])?" "+e:e||"",r||0===s||a.plugin?(a.l++,a.type=a.setRatio?2:1,a["xs"+a.l]=n||"",0<s?(a.data["xn"+s]=t+r,a.rxp["xn"+s]=i,a["xn"+s]=t,a.plugin||(a.xfirst=new we(a,"xn"+s,t,r,a.xfirst||a,0,a.n,i,a.pr),a.xfirst.xs0=0)):(a.data={s:t+r},a.rxp={},a.s=t,a.c=r,a.r=i),a):(a["xs"+s]+=t+(n||""),a)};var Pe=function(e,t){t=t||{},this.p=t.prefix&&$(e)||e,g[e]=g[this.p]=this,this.format=t.formatter||_e(t.defaultValue,t.color,t.collapsible,t.multi),t.parser&&(this.parse=t.parser),this.clrs=t.color,this.multi=t.multi,this.keyword=t.keyword,this.dflt=t.defaultValue,this.allowFunc=t.allowFunc,this.pr=t.priority||0},Ee=i._registerComplexSpecialProp=function(e,t,r){"object"!=typeof t&&(t={parser:r});var n,i=e.split(","),o=t.defaultValue;for(r=r||[o],n=0;n<i.length;n++)t.prefix=0===n&&t.prefix,t.defaultValue=r[n]||o,new Pe(i[n],t)},Ce=i._registerPluginProp=function(e){if(!g[e]){var u=e.charAt(0).toUpperCase()+e.substr(1)+"Plugin";Ee(e,{parser:function(e,t,r,n,i,o,a){var s=c.com.greensock.plugins[u];return s?(s._cssRegister(),g[r].parse(e,t,r,n,i,o,a)):(J("Error: "+u+" js file not loaded."),i)}})}};(e=Pe.prototype).parseComplex=function(e,t,r,n,i,o){var a,s,u,c,l,f,h=this.keyword;if(this.multi&&(L.test(r)||L.test(t)?(s=t.replace(L,"|").split("|"),u=r.replace(L,"|").split("|")):h&&(s=[t],u=[r])),u){for(c=u.length>s.length?u.length:s.length,a=0;a<c;a++)t=s[a]=s[a]||this.dflt,r=u[a]=u[a]||this.dflt,h&&(l=t.indexOf(h))!==(f=r.indexOf(h))&&(-1===f?s[a]=s[a].split(h).join(""):-1===l&&(s[a]+=" "+h));t=s.join(", "),r=u.join(", ")}return Se(e,this.p,t,r,this.clrs,this.dflt,n,this.pr,i,o)},e.parse=function(e,t,r,n,i,o,a){return this.parseComplex(e.style,this.format(re(e,this.p,M,!1,this.dflt)),this.format(t),i,o)},U.registerSpecialProp=function(e,u,c){Ee(e,{parser:function(e,t,r,n,i,o,a){var s=new we(e,r,0,0,i,2,r,!1,c);return s.plugin=o,s.setRatio=u(e,t,n._tween,r),s},priority:c})},U.useSVGTransformAttr=!0;var ke,Ae,Oe,Re,Ie,De="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),Le=$("transform"),Ne=Z+"transform",je=$("transformOrigin"),Fe=null!==$("perspective"),Be=i.Transform=function(){this.perspective=parseFloat(U.defaultTransformPerspective)||0,this.force3D=!(!1===U.defaultForce3D||!Fe)&&(U.defaultForce3D||"auto")},ze=_gsScope.SVGElement,Ue=function(e,t,r){var n,i=q.createElementNS("http://www.w3.org/2000/svg",e),o=/([a-z])([A-Z])/g;for(n in r)i.setAttributeNS(null,n.replace(o,"$1-$2").toLowerCase(),r[n]);return t.appendChild(i),i},Xe=q.documentElement||{},qe=(Ie=P||/Android/i.test(W)&&!_gsScope.chrome,q.createElementNS&&!Ie&&(Ae=Ue("svg",Xe),Re=(Oe=Ue("rect",Ae,{width:100,height:50,x:100})).getBoundingClientRect().width,Oe.style[je]="50% 50%",Oe.style[Le]="scaleX(0.5)",Ie=Re===Oe.getBoundingClientRect().width&&!(j&&Fe),Xe.removeChild(Ae)),Ie),He=function(e,t,r,n,i,o){var a,s,u,c,l,f,h,d,p,m,g,v,y,_,b=e._gsTransform,x=Ve(e,!0);b&&(y=b.xOrigin,_=b.yOrigin),(!n||(a=n.split(" ")).length<2)&&(0===(h=e.getBBox()).x&&0===h.y&&h.width+h.height===0&&(h={x:parseFloat(e.hasAttribute("x")?e.getAttribute("x"):e.hasAttribute("cx")?e.getAttribute("cx"):0)||0,y:parseFloat(e.hasAttribute("y")?e.getAttribute("y"):e.hasAttribute("cy")?e.getAttribute("cy"):0)||0,width:0,height:0}),a=[(-1!==(t=le(t).split(" "))[0].indexOf("%")?parseFloat(t[0])/100*h.width:parseFloat(t[0]))+h.x,(-1!==t[1].indexOf("%")?parseFloat(t[1])/100*h.height:parseFloat(t[1]))+h.y]),r.xOrigin=c=parseFloat(a[0]),r.yOrigin=l=parseFloat(a[1]),n&&x!==We&&(f=x[0],h=x[1],d=x[2],p=x[3],m=x[4],g=x[5],(v=f*p-h*d)&&(s=c*(p/v)+l*(-d/v)+(d*g-p*m)/v,u=c*(-h/v)+l*(f/v)-(f*g-h*m)/v,c=r.xOrigin=a[0]=s,l=r.yOrigin=a[1]=u)),b&&(o&&(r.xOffset=b.xOffset,r.yOffset=b.yOffset,b=r),i||!1!==i&&!1!==U.defaultSmoothOrigin?(s=c-y,u=l-_,b.xOffset+=s*x[0]+u*x[2]-s,b.yOffset+=s*x[1]+u*x[3]-u):b.xOffset=b.yOffset=0),o||e.setAttribute("data-svg-origin",a.join(" "))},Ye=function(e){var t,r=H("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),n=this.parentNode,i=this.nextSibling,o=this.style.cssText;if(Xe.appendChild(r),r.appendChild(this),this.style.display="block",e)try{t=this.getBBox(),this._originalGetBBox=this.getBBox,this.getBBox=Ye}catch(e){}else this._originalGetBBox&&(t=this._originalGetBBox());return i?n.insertBefore(this,i):n.appendChild(this),Xe.removeChild(r),this.style.cssText=o,t},Ge=function(e){return!(!ze||!e.getCTM||e.parentNode&&!e.ownerSVGElement||!function(t){try{return t.getBBox()}catch(e){return Ye.call(t,!0)}}(e))},We=[1,0,0,1,0,0],Ve=function(e,t){var r,n,i,o,a,s,u,c=e._gsTransform||new Be,l=e.style;if(Le?n=re(e,Ne,null,!0):e.currentStyle&&(n=(n=e.currentStyle.filter.match(h))&&4===n.length?[n[0].substr(4),Number(n[2].substr(4)),Number(n[1].substr(4)),n[3].substr(4),c.x||0,c.y||0].join(","):""),r=!n||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,Le&&r&&!e.offsetParent&&(o=l.display,l.display="block",(u=e.parentNode)&&e.offsetParent||(a=1,s=e.nextSibling,Xe.appendChild(e)),r=!(n=re(e,Ne,null,!0))||"none"===n||"matrix(1, 0, 0, 1, 0, 0)"===n,o?l.display=o:$e(l,"display"),a&&(s?u.insertBefore(e,s):u?u.appendChild(e):Xe.removeChild(e))),(c.svg||e.getCTM&&Ge(e))&&(r&&-1!==(l[Le]+"").indexOf("matrix")&&(n=l[Le],r=0),i=e.getAttribute("transform"),r&&i&&(n="matrix("+(i=e.transform.baseVal.consolidate().matrix).a+","+i.b+","+i.c+","+i.d+","+i.e+","+i.f+")",r=0)),r)return We;for(i=(n||"").match(A)||[],Me=i.length;-1<--Me;)o=Number(i[Me]),i[Me]=(a=o-(o|=0))?(1e5*a+(a<0?-.5:.5)|0)/1e5+o:o;return t&&6<i.length?[i[0],i[1],i[4],i[5],i[12],i[13]]:i},Ke=i.getTransform=function(e,t,r,n){if(e._gsTransform&&r&&!n)return e._gsTransform;var i,o,a,s,u,c,l=r&&e._gsTransform||new Be,f=l.scaleX<0,h=Fe&&(parseFloat(re(e,je,t,!1,"0 0 0").split(" ")[2])||l.zOrigin)||0,d=parseFloat(U.defaultTransformPerspective)||0;if(l.svg=!(!e.getCTM||!Ge(e)),l.svg&&(He(e,re(e,je,t,!1,"50% 50%")+"",l,e.getAttribute("data-svg-origin")),ke=U.useSVGTransformAttr||qe),(i=Ve(e))!==We){if(16===i.length){var p,m,g,v,y,_=i[0],b=i[1],x=i[2],w=i[3],T=i[4],S=i[5],M=i[6],P=i[7],E=i[8],C=i[9],k=i[10],A=i[12],O=i[13],R=i[14],I=i[11],D=Math.atan2(M,k);l.zOrigin&&(A=E*(R=-l.zOrigin)-i[12],O=C*R-i[13],R=k*R+l.zOrigin-i[14]),l.rotationX=D*X,D&&(p=T*(v=Math.cos(-D))+E*(y=Math.sin(-D)),m=S*v+C*y,g=M*v+k*y,E=T*-y+E*v,C=S*-y+C*v,k=M*-y+k*v,I=P*-y+I*v,T=p,S=m,M=g),D=Math.atan2(-x,k),l.rotationY=D*X,D&&(m=b*(v=Math.cos(-D))-C*(y=Math.sin(-D)),g=x*v-k*y,C=b*y+C*v,k=x*y+k*v,I=w*y+I*v,_=p=_*v-E*y,b=m,x=g),D=Math.atan2(b,_),l.rotation=D*X,D&&(p=_*(v=Math.cos(D))+b*(y=Math.sin(D)),m=T*v+S*y,g=E*v+C*y,b=b*v-_*y,S=S*v-T*y,C=C*v-E*y,_=p,T=m,E=g),l.rotationX&&359.9<Math.abs(l.rotationX)+Math.abs(l.rotation)&&(l.rotationX=l.rotation=0,l.rotationY=180-l.rotationY),D=Math.atan2(T,S),l.scaleX=(1e5*Math.sqrt(_*_+b*b+x*x)+.5|0)/1e5,l.scaleY=(1e5*Math.sqrt(S*S+M*M)+.5|0)/1e5,l.scaleZ=(1e5*Math.sqrt(E*E+C*C+k*k)+.5|0)/1e5,_/=l.scaleX,T/=l.scaleY,b/=l.scaleX,S/=l.scaleY,2e-5<Math.abs(D)?(l.skewX=D*X,T=0,"simple"!==l.skewType&&(l.scaleY*=1/Math.cos(D))):l.skewX=0,l.perspective=I?1/(I<0?-I:I):0,l.x=A,l.y=O,l.z=R,l.svg&&(l.x-=l.xOrigin-(l.xOrigin*_-l.yOrigin*T),l.y-=l.yOrigin-(l.yOrigin*b-l.xOrigin*S))}else if(!Fe||n||!i.length||l.x!==i[4]||l.y!==i[5]||!l.rotationX&&!l.rotationY){var L=6<=i.length,N=L?i[0]:1,j=i[1]||0,F=i[2]||0,B=L?i[3]:1;l.x=i[4]||0,l.y=i[5]||0,a=Math.sqrt(N*N+j*j),s=Math.sqrt(B*B+F*F),u=N||j?Math.atan2(j,N)*X:l.rotation||0,c=F||B?Math.atan2(F,B)*X+u:l.skewX||0,l.scaleX=a,l.scaleY=s,l.rotation=u,l.skewX=c,Fe&&(l.rotationX=l.rotationY=l.z=0,l.perspective=d,l.scaleZ=1),l.svg&&(l.x-=l.xOrigin-(l.xOrigin*N+l.yOrigin*F),l.y-=l.yOrigin-(l.xOrigin*j+l.yOrigin*B))}for(o in 90<Math.abs(l.skewX)&&Math.abs(l.skewX)<270&&(f?(l.scaleX*=-1,l.skewX+=l.rotation<=0?180:-180,l.rotation+=l.rotation<=0?180:-180):(l.scaleY*=-1,l.skewX+=l.skewX<=0?180:-180)),l.zOrigin=h,l)l[o]<2e-5&&-2e-5<l[o]&&(l[o]=0)}return r&&(e._gsTransform=l).svg&&(ke&&e.style[Le]?z.delayedCall(.001,function(){$e(e.style,Le)}):!ke&&e.getAttribute("transform")&&z.delayedCall(.001,function(){e.removeAttribute("transform")})),l},Je=function(e){var t,r,n=this.data,i=-n.rotation*F,o=i+n.skewX*F,a=(Math.cos(i)*n.scaleX*1e5|0)/1e5,s=(Math.sin(i)*n.scaleX*1e5|0)/1e5,u=(Math.sin(o)*-n.scaleY*1e5|0)/1e5,c=(Math.cos(o)*n.scaleY*1e5|0)/1e5,l=this.t.style,f=this.t.currentStyle;if(f){r=s,s=-u,u=-r,t=f.filter,l.filter="";var h,d,p=this.t.offsetWidth,m=this.t.offsetHeight,g="absolute"!==f.position,v="progid:DXImageTransform.Microsoft.Matrix(M11="+a+", M12="+s+", M21="+u+", M22="+c,y=n.x+p*n.xPercent/100,_=n.y+m*n.yPercent/100;if(null!=n.ox&&(y+=(h=(n.oxp?p*n.ox*.01:n.ox)-p/2)-(h*a+(d=(n.oyp?m*n.oy*.01:n.oy)-m/2)*s),_+=d-(h*u+d*c)),v+=g?", Dx="+((h=p/2)-(h*a+(d=m/2)*s)+y)+", Dy="+(d-(h*u+d*c)+_)+")":", sizingMethod='auto expand')",-1!==t.indexOf("DXImageTransform.Microsoft.Matrix(")?l.filter=t.replace(D,v):l.filter=v+" "+t,0!==e&&1!==e||1==a&&0===s&&0===u&&1==c&&(g&&-1===v.indexOf("Dx=0, Dy=0")||I.test(t)&&100!==parseFloat(RegExp.$1)||-1===t.indexOf(t.indexOf("Alpha"))&&l.removeAttribute("filter")),!g){var b,x,w,T=P<8?1:-1;for(h=n.ieOffsetX||0,d=n.ieOffsetY||0,n.ieOffsetX=Math.round((p-((a<0?-a:a)*p+(s<0?-s:s)*m))/2+y),n.ieOffsetY=Math.round((m-((c<0?-c:c)*m+(u<0?-u:u)*p))/2+_),Me=0;Me<4;Me++)w=(r=-1!==(b=f[x=ue[Me]]).indexOf("px")?parseFloat(b):ne(this.t,x,parseFloat(b),b.replace(R,""))||0)!==n[x]?Me<2?-n.ieOffsetX:-n.ieOffsetY:Me<2?h-n.ieOffsetX:d-n.ieOffsetY,l[x]=(n[x]=Math.round(r-w*(0===Me||2===Me?1:T)))+"px"}}},Ze=i.set3DTransformRatio=i.setTransformRatio=function(e){var t,r,n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,y,_,b,x=this.data,w=this.t.style,T=x.rotation,S=x.rotationX,M=x.rotationY,P=x.scaleX,E=x.scaleY,C=x.scaleZ,k=x.x,A=x.y,O=x.z,R=x.svg,I=x.perspective,D=x.force3D,L=x.skewY,N=x.skewX;if(L&&(N+=L,T+=L),!((1!==e&&0!==e||"auto"!==D||this.tween._totalTime!==this.tween._totalDuration&&this.tween._totalTime)&&D||O||I||M||S||1!==C)||ke&&R||!Fe)T||N||R?(T*=F,b=N*F,1e5,r=Math.cos(T)*P,o=Math.sin(T)*P,n=Math.sin(T-b)*-E,a=Math.cos(T-b)*E,b&&"simple"===x.skewType&&(t=Math.tan(b-L*F),n*=t=Math.sqrt(1+t*t),a*=t,L&&(t=Math.tan(L*F),r*=t=Math.sqrt(1+t*t),o*=t)),R&&(k+=x.xOrigin-(x.xOrigin*r+x.yOrigin*n)+x.xOffset,A+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset,ke&&(x.xPercent||x.yPercent)&&(m=this.t.getBBox(),k+=.01*x.xPercent*m.width,A+=.01*x.yPercent*m.height),k<(m=1e-6)&&-m<k&&(k=0),A<m&&-m<A&&(A=0)),_=(1e5*r|0)/1e5+","+(1e5*o|0)/1e5+","+(1e5*n|0)/1e5+","+(1e5*a|0)/1e5+","+k+","+A+")",R&&ke?this.t.setAttribute("transform","matrix("+_):w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+_):w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix(":"matrix(")+P+",0,0,"+E+","+k+","+A+")";else{if(j&&(P<(m=1e-4)&&-m<P&&(P=C=2e-5),E<m&&-m<E&&(E=C=2e-5),!I||x.z||x.rotationX||x.rotationY||(I=0)),T||N)T*=F,g=r=Math.cos(T),v=o=Math.sin(T),N&&(T-=N*F,g=Math.cos(T),v=Math.sin(T),"simple"===x.skewType&&(t=Math.tan((N-L)*F),g*=t=Math.sqrt(1+t*t),v*=t,x.skewY&&(t=Math.tan(L*F),r*=t=Math.sqrt(1+t*t),o*=t))),n=-v,a=g;else{if(!(M||S||1!==C||I||R))return void(w[Le]=(x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) translate3d(":"translate3d(")+k+"px,"+A+"px,"+O+"px)"+(1!==P||1!==E?" scale("+P+","+E+")":""));r=a=1,n=o=0}l=1,i=s=u=c=f=h=0,d=I?-1/I:0,p=x.zOrigin,m=1e-6,",","0",(T=M*F)&&(g=Math.cos(T),f=d*(u=-(v=Math.sin(T))),i=r*v,s=o*v,d*=l=g,r*=g,o*=g),(T=S*F)&&(t=n*(g=Math.cos(T))+i*(v=Math.sin(T)),y=a*g+s*v,c=l*v,h=d*v,i=n*-v+i*g,s=a*-v+s*g,l*=g,d*=g,n=t,a=y),1!==C&&(i*=C,s*=C,l*=C,d*=C),1!==E&&(n*=E,a*=E,c*=E,h*=E),1!==P&&(r*=P,o*=P,u*=P,f*=P),(p||R)&&(p&&(k+=i*-p,A+=s*-p,O+=l*-p+p),R&&(k+=x.xOrigin-(x.xOrigin*r+x.yOrigin*n)+x.xOffset,A+=x.yOrigin-(x.xOrigin*o+x.yOrigin*a)+x.yOffset),k<m&&-m<k&&(k="0"),A<m&&-m<A&&(A="0"),O<m&&-m<O&&(O=0)),_=x.xPercent||x.yPercent?"translate("+x.xPercent+"%,"+x.yPercent+"%) matrix3d(":"matrix3d(",_+=(r<m&&-m<r?"0":r)+","+(o<m&&-m<o?"0":o)+","+(u<m&&-m<u?"0":u),_+=","+(f<m&&-m<f?"0":f)+","+(n<m&&-m<n?"0":n)+","+(a<m&&-m<a?"0":a),S||M||1!==C?(_+=","+(c<m&&-m<c?"0":c)+","+(h<m&&-m<h?"0":h)+","+(i<m&&-m<i?"0":i),_+=","+(s<m&&-m<s?"0":s)+","+(l<m&&-m<l?"0":l)+","+(d<m&&-m<d?"0":d)+","):_+=",0,0,0,0,1,0,",_+=k+","+A+","+O+","+(I?1+-O/I:1)+")",w[Le]=_}};(e=Be.prototype).x=e.y=e.z=e.skewX=e.skewY=e.rotation=e.rotationX=e.rotationY=e.zOrigin=e.xPercent=e.yPercent=e.xOffset=e.yOffset=0,e.scaleX=e.scaleY=e.scaleZ=1,Ee("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(e,t,r,n,i,o,a){if(n._lastParsedTransform===a)return i;var s=(n._lastParsedTransform=a).scale&&"function"==typeof a.scale?a.scale:0;s&&(a.scale=s(k,e));var u,c,l,f,h,d,p,m,g,v=e._gsTransform,y=e.style,_=De.length,b=a,x={},w="transformOrigin",T=Ke(e,M,!0,b.parseTransform),S=b.transform&&("function"==typeof b.transform?b.transform(k,C):b.transform);if(T.skewType=b.skewType||T.skewType||U.defaultSkewType,n._transform=T,"rotationZ"in b&&(b.rotation=b.rotationZ),S&&"string"==typeof S&&Le)(c=Y.style)[Le]=S,c.display="block",c.position="absolute",-1!==S.indexOf("%")&&(c.width=re(e,"width"),c.height=re(e,"height")),q.body.appendChild(Y),u=Ke(Y,null,!1),"simple"===T.skewType&&(u.scaleY*=Math.cos(u.skewX*F)),T.svg&&(d=T.xOrigin,p=T.yOrigin,u.x-=T.xOffset,u.y-=T.yOffset,(b.transformOrigin||b.svgOrigin)&&(S={},He(e,le(b.transformOrigin),S,b.svgOrigin,b.smoothOrigin,!0),d=S.xOrigin,p=S.yOrigin,u.x-=S.xOffset-T.xOffset,u.y-=S.yOffset-T.yOffset),(d||p)&&(m=Ve(Y,!0),u.x-=d-(d*m[0]+p*m[2]),u.y-=p-(d*m[1]+p*m[3]))),q.body.removeChild(Y),u.perspective||(u.perspective=T.perspective),null!=b.xPercent&&(u.xPercent=he(b.xPercent,T.xPercent)),null!=b.yPercent&&(u.yPercent=he(b.yPercent,T.yPercent));else if("object"==typeof b){if(u={scaleX:he(null!=b.scaleX?b.scaleX:b.scale,T.scaleX),scaleY:he(null!=b.scaleY?b.scaleY:b.scale,T.scaleY),scaleZ:he(b.scaleZ,T.scaleZ),x:he(b.x,T.x),y:he(b.y,T.y),z:he(b.z,T.z),xPercent:he(b.xPercent,T.xPercent),yPercent:he(b.yPercent,T.yPercent),perspective:he(b.transformPerspective,T.perspective)},null!=(h=b.directionalRotation))if("object"==typeof h)for(c in h)b[c]=h[c];else b.rotation=h;"string"==typeof b.x&&-1!==b.x.indexOf("%")&&(u.x=0,u.xPercent=he(b.x,T.xPercent)),"string"==typeof b.y&&-1!==b.y.indexOf("%")&&(u.y=0,u.yPercent=he(b.y,T.yPercent)),u.rotation=de("rotation"in b?b.rotation:"shortRotation"in b?b.shortRotation+"_short":T.rotation,T.rotation,"rotation",x),Fe&&(u.rotationX=de("rotationX"in b?b.rotationX:"shortRotationX"in b?b.shortRotationX+"_short":T.rotationX||0,T.rotationX,"rotationX",x),u.rotationY=de("rotationY"in b?b.rotationY:"shortRotationY"in b?b.shortRotationY+"_short":T.rotationY||0,T.rotationY,"rotationY",x)),u.skewX=de(b.skewX,T.skewX),u.skewY=de(b.skewY,T.skewY)}for(Fe&&null!=b.force3D&&(T.force3D=b.force3D,f=!0),(l=T.force3D||T.z||T.rotationX||T.rotationY||u.z||u.rotationX||u.rotationY||u.perspective)||null==b.scale||(u.scaleZ=1);-1<--_;)(1e-6<(S=u[g=De[_]]-T[g])||S<-1e-6||null!=b[g]||null!=B[g])&&(f=!0,i=new we(T,g,T[g],S,i),g in x&&(i.e=x[g]),i.xs0=0,i.plugin=o,n._overwriteProps.push(i.n));return S="function"==typeof b.transformOrigin?b.transformOrigin(k,C):b.transformOrigin,T.svg&&(S||b.svgOrigin)&&(d=T.xOffset,p=T.yOffset,He(e,le(S),u,b.svgOrigin,b.smoothOrigin),i=Te(T,"xOrigin",(v?T:u).xOrigin,u.xOrigin,i,w),i=Te(T,"yOrigin",(v?T:u).yOrigin,u.yOrigin,i,w),d===T.xOffset&&p===T.yOffset||(i=Te(T,"xOffset",v?d:T.xOffset,T.xOffset,i,w),i=Te(T,"yOffset",v?p:T.yOffset,T.yOffset,i,w)),S="0px 0px"),(S||Fe&&l&&T.zOrigin)&&(Le?(f=!0,g=je,S||(S=(S=(re(e,g,M,!1,"50% 50%")+"").split(" "))[0]+" "+S[1]+" "+T.zOrigin+"px"),S+="",(i=new we(y,g,0,0,i,-1,w)).b=y[g],i.plugin=o,Fe?(c=T.zOrigin,S=S.split(" "),T.zOrigin=(2<S.length?parseFloat(S[2]):c)||0,i.xs0=i.e=S[0]+" "+(S[1]||"50%")+" 0px",(i=new we(T,"zOrigin",0,0,i,-1,i.n)).b=c,i.xs0=i.e=T.zOrigin):i.xs0=i.e=S):le(S+"",T)),f&&(n._transformType=T.svg&&ke||!l&&3!==this._transformType?2:3),s&&(a.scale=s),i},allowFunc:!0,prefix:!0}),Ee("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Ee("clipPath",{defaultValue:"inset(0px)",prefix:!0,multi:!0,formatter:_e("inset(0px 0px 0px 0px)",!1,!0)}),Ee("borderRadius",{defaultValue:"0px",parser:function(e,t,r,n,i,o){t=this.format(t);var a,s,u,c,l,f,h,d,p,m,g,v,y,_,b,x,w=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],T=e.style;for(p=parseFloat(e.offsetWidth),m=parseFloat(e.offsetHeight),a=t.split(" "),s=0;s<w.length;s++)this.p.indexOf("border")&&(w[s]=$(w[s])),-1!==(l=c=re(e,w[s],M,!1,"0px")).indexOf(" ")&&(l=(c=l.split(" "))[0],c=c[1]),f=u=a[s],h=parseFloat(l),v=l.substr((h+"").length),""===(g=(y="="===f.charAt(1))?(d=parseInt(f.charAt(0)+"1",10),f=f.substr(2),d*=parseFloat(f),f.substr((d+"").length-(d<0?1:0))||""):(d=parseFloat(f),f.substr((d+"").length)))&&(g=S[r]||v),g!==v&&(_=ne(e,"borderLeft",h,v),b=ne(e,"borderTop",h,v),c="%"===g?(l=_/p*100+"%",b/m*100+"%"):"em"===g?(l=_/(x=ne(e,"borderLeft",1,"em"))+"em",b/x+"em"):(l=_+"px",b+"px"),y&&(f=parseFloat(l)+d+g,u=parseFloat(c)+d+g)),i=Se(T,w[s],l+" "+c,f+" "+u,!1,"0px",i);return i},prefix:!0,formatter:_e("0px 0px 0px 0px",!1,!0)}),Ee("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(e,t,r,n,i,o){return Se(e.style,r,this.format(re(e,r,M,!1,"0px 0px")),this.format(t),!1,"0px",i)},prefix:!0,formatter:_e("0px 0px",!1,!0)}),Ee("backgroundPosition",{defaultValue:"0 0",parser:function(e,t,r,n,i,o){var a,s,u,c,l,f,h="background-position",d=M||te(e),p=this.format((d?P?d.getPropertyValue(h+"-x")+" "+d.getPropertyValue(h+"-y"):d.getPropertyValue(h):e.currentStyle.backgroundPositionX+" "+e.currentStyle.backgroundPositionY)||"0 0"),m=this.format(t);if(-1!==p.indexOf("%")!=(-1!==m.indexOf("%"))&&m.split(",").length<2&&(f=re(e,"backgroundImage").replace(T,""))&&"none"!==f){for(a=p.split(" "),s=m.split(" "),G.setAttribute("src",f),u=2;-1<--u;)(c=-1!==(p=a[u]).indexOf("%"))!=(-1!==s[u].indexOf("%"))&&(l=0===u?e.offsetWidth-G.width:e.offsetHeight-G.height,a[u]=c?parseFloat(p)/100*l+"px":parseFloat(p)/l*100+"%");p=a.join(" ")}return this.parseComplex(e.style,p,m,i,o)},formatter:le}),Ee("backgroundSize",{defaultValue:"0 0",formatter:function(e){return"co"===(e+="").substr(0,2)?e:le(-1===e.indexOf(" ")?e+" "+e:e)}}),Ee("perspective",{defaultValue:"0px",prefix:!0}),Ee("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Ee("transformStyle",{prefix:!0}),Ee("backfaceVisibility",{prefix:!0}),Ee("userSelect",{prefix:!0}),Ee("margin",{parser:be("marginTop,marginRight,marginBottom,marginLeft")}),Ee("padding",{parser:be("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Ee("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(e,t,r,n,i,o){var a,s,u;return t=P<9?(s=e.currentStyle,u=P<8?" ":",",a="rect("+s.clipTop+u+s.clipRight+u+s.clipBottom+u+s.clipLeft+")",this.format(t).split(",").join(u)):(a=this.format(re(e,this.p,M,!1,this.dflt)),this.format(t)),this.parseComplex(e.style,a,t,i,o)}}),Ee("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Ee("autoRound,strictUnits",{parser:function(e,t,r,n,i){return i}}),Ee("border",{defaultValue:"0px solid #000",parser:function(e,t,r,n,i,o){var a=re(e,"borderTopWidth",M,!1,"0px"),s=this.format(t).split(" "),u=s[0].replace(R,"");return"px"!==u&&(a=parseFloat(a)/ne(e,"borderTopWidth",1,u)+u),this.parseComplex(e.style,this.format(a+" "+re(e,"borderTopStyle",M,!1,"solid")+" "+re(e,"borderTopColor",M,!1,"#000")),s.join(" "),i,o)},color:!0,formatter:function(e){var t=e.split(" ");return t[0]+" "+(t[1]||"solid")+" "+(e.match(ye)||["#000"])[0]}}),Ee("borderWidth",{parser:be("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Ee("float,cssFloat,styleFloat",{parser:function(e,t,r,n,i,o){var a=e.style,s="cssFloat"in a?"cssFloat":"styleFloat";return new we(a,s,0,0,i,-1,r,!1,0,a[s],t)}});var Qe=function(e){var t,r=this.t,n=r.filter||re(this.data,"filter")||"",i=this.s+this.c*e|0;100==i&&(t=-1===n.indexOf("atrix(")&&-1===n.indexOf("radient(")&&-1===n.indexOf("oader(")?(r.removeAttribute("filter"),!re(this.data,"filter")):(r.filter=n.replace(a,""),!0)),t||(this.xn1&&(r.filter=n=n||"alpha(opacity="+i+")"),-1===n.indexOf("pacity")?0==i&&this.xn1||(r.filter=n+" alpha(opacity="+i+")"):r.filter=n.replace(I,"opacity="+i))};Ee("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(e,t,r,n,i,o){var a=parseFloat(re(e,"opacity",M,!1,"1")),s=e.style,u="autoAlpha"===r;return"string"==typeof t&&"="===t.charAt(1)&&(t=("-"===t.charAt(0)?-1:1)*parseFloat(t.substr(2))+a),u&&1===a&&"hidden"===re(e,"visibility",M)&&0!==t&&(a=0),V?i=new we(s,"opacity",a,t-a,i):((i=new we(s,"opacity",100*a,100*(t-a),i)).xn1=u?1:0,s.zoom=1,i.type=2,i.b="alpha(opacity="+i.s+")",i.e="alpha(opacity="+(i.s+i.c)+")",i.data=e,i.plugin=o,i.setRatio=Qe),u&&((i=new we(s,"visibility",0,0,i,-1,null,!1,0,0!==a?"inherit":"hidden",0===t?"hidden":"inherit")).xs0="inherit",n._overwriteProps.push(i.n),n._overwriteProps.push(r)),i}});var $e=function(e,t){t&&(e.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),e.removeProperty(t.replace(s,"-$1").toLowerCase())):e.removeAttribute(t))},et=function(e){if(this.t._gsClassPT=this,1===e||0===e){this.t.setAttribute("class",0===e?this.b:this.e);for(var t=this.data,r=this.t.style;t;)t.v?r[t.p]=t.v:$e(r,t.p),t=t._next;1===e&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Ee("className",{parser:function(e,t,r,n,i,o,a){var s,u,c,l,f,h=e.getAttribute("class")||"",d=e.style.cssText;if((i=n._classNamePT=new we(e,r,0,0,i,2)).setRatio=et,i.pr=-11,p=!0,i.b=h,u=oe(e,M),c=e._gsClassPT){for(l={},f=c.data;f;)l[f.p]=1,f=f._next;c.setRatio(1)}return(e._gsClassPT=i).e="="!==t.charAt(1)?t:h.replace(new RegExp("(?:\\s|^)"+t.substr(2)+"(?![\\w-])"),"")+("+"===t.charAt(0)?" "+t.substr(2):""),e.setAttribute("class",i.e),s=ae(e,u,oe(e),a,l),e.setAttribute("class",h),i.data=s.firstMPT,e.style.cssText=d,i=i.xfirst=n.parse(e,s.difs,i,o)}});var tt=function(e){if((1===e||0===e)&&this.data._totalTime===this.data._totalDuration&&"isFromStart"!==this.data.data){var t,r,n,i,o,a=this.t.style,s=g.transform.parse;if("all"===this.e)i=!(a.cssText="");else for(n=(t=this.e.split(" ").join("").split(",")).length;-1<--n;)r=t[n],g[r]&&(g[r].parse===s?i=!0:r="transformOrigin"===r?je:g[r].p),$e(a,r);i&&($e(a,Le),(o=this.t._gsTransform)&&(o.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Ee("clearProps",{parser:function(e,t,r,n,i){return(i=new we(e,r,0,0,i,2)).setRatio=tt,i.e=t,i.pr=-10,i.data=n._tween,p=!0,i}}),e="bezier,throwProps,physicsProps,physics2D".split(","),Me=e.length;Me--;)Ce(e[Me]);(e=U.prototype)._firstPT=e._lastParsedTransform=e._transform=null,e._onInitTween=function(e,t,r,n){if(!e.nodeType)return!1;this._target=C=e,this._tween=r,this._vars=t,k=n,E=t.autoRound,p=!1,S=t.suffixMap||U.suffixMap,M=te(e),m=this._overwriteProps;var i,o,a,s,u,c,l,f,h,d=e.style;if(v&&""===d.zIndex&&("auto"!==(i=re(e,"zIndex",M))&&""!==i||this._addLazySet(d,"zIndex",0)),"string"==typeof t&&(s=d.cssText,i=oe(e,M),d.cssText=s+";"+t,i=ae(e,i,oe(e)).difs,!V&&x.test(t)&&(i.opacity=parseFloat(RegExp.$1)),t=i,d.cssText=s),t.className?this._firstPT=o=g.className.parse(e,t.className,"className",this,null,null,t):this._firstPT=o=this.parse(e,t,null),this._transformType){for(h=3===this._transformType,Le?y&&(v=!0,""===d.zIndex&&("auto"!==(l=re(e,"zIndex",M))&&""!==l||this._addLazySet(d,"zIndex",0)),_&&this._addLazySet(d,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(h?"visible":"hidden"))):d.zoom=1,a=o;a&&a._next;)a=a._next;f=new we(e,"transform",0,0,null,2),this._linkCSSP(f,null,a),f.setRatio=Le?Ze:Je,f.data=this._transform||Ke(e,M,!0),f.tween=r,f.pr=-1,m.pop()}if(p){for(;o;){for(c=o._next,a=s;a&&a.pr>o.pr;)a=a._next;(o._prev=a?a._prev:u)?o._prev._next=o:s=o,(o._next=a)?a._prev=o:u=o,o=c}this._firstPT=s}return!0},e.parse=function(e,t,r,n){var i,o,a,s,u,c,l,f,h,d,p=e.style;for(i in t){if(c=t[i],o=g[i],"function"!=typeof c||o&&o.allowFunc||(c=c(k,C)),o)r=o.parse(e,c,i,this,r,n,t);else{if("--"===i.substr(0,2)){this._tween._propLookup[i]=this._addTween.call(this._tween,e.style,"setProperty",te(e).getPropertyValue(i)+"",c+"",i,!1,i);continue}u=re(e,i,M)+"",h="string"==typeof c,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||h&&w.test(c)?(h||(c=(3<(c=ge(c)).length?"rgba(":"rgb(")+c.join(",")+")"),r=Se(p,i,u,c,!0,"transparent",r,0,n)):h&&N.test(c)?r=Se(p,i,u,c,!0,null,r,0,n):(l=(a=parseFloat(u))||0===a?u.substr((a+"").length):"",""!==u&&"auto"!==u||(l="width"===i||"height"===i?(a=ce(e,i,M),"px"):"left"===i||"top"===i?(a=ie(e,i,M),"px"):(a="opacity"!==i?0:1,"")),""===(f=(d=h&&"="===c.charAt(1))?(s=parseInt(c.charAt(0)+"1",10),c=c.substr(2),s*=parseFloat(c),c.replace(R,"")):(s=parseFloat(c),h?c.replace(R,""):""))&&(f=i in S?S[i]:l),c=s||0===s?(d?s+a:s)+f:t[i],l!==f&&(""===f&&"lineHeight"!==i||(s||0===s)&&a&&(a=ne(e,i,a,l),"%"===f?(a/=ne(e,i,100,"%")/100,!0!==t.strictUnits&&(u=a+"%")):"em"===f||"rem"===f||"vw"===f||"vh"===f?a/=ne(e,i,1,f):"px"!==f&&(s=ne(e,i,s,f),f="px"),d&&(s||0===s)&&(c=s+a+f))),d&&(s+=a),!a&&0!==a||!s&&0!==s?void 0!==p[i]&&(c||c+""!="NaN"&&null!=c)?(r=new we(p,i,s||a||0,0,r,-1,i,!1,0,u,c)).xs0="none"!==c||"display"!==i&&-1===i.indexOf("Style")?c:u:J("invalid "+i+" tween value: "+t[i]):(r=new we(p,i,a,s-a,r,0,i,!1!==E&&("px"===f||"zIndex"===i),0,u,c)).xs0=f)}n&&r&&!r.plugin&&(r.plugin=n)}return r},e.setRatio=function(e){var t,r,n,i=this._firstPT;if(1!==e||this._tween._time!==this._tween._duration&&0!==this._tween._time)if(e||this._tween._time!==this._tween._duration&&0!==this._tween._time||-1e-6===this._tween._rawPrevTime)for(;i;){if(t=i.c*e+i.s,i.r?t=i.r(t):t<1e-6&&-1e-6<t&&(t=0),i.type)if(1===i.type)if(2===(n=i.l))i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2;else if(3===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3;else if(4===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4;else if(5===n)i.t[i.p]=i.xs0+t+i.xs1+i.xn1+i.xs2+i.xn2+i.xs3+i.xn3+i.xs4+i.xn4+i.xs5;else{for(r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=r}else-1===i.type?i.t[i.p]=i.xs0:i.setRatio&&i.setRatio(e);else i.t[i.p]=t+i.xs0;i=i._next}else for(;i;)2!==i.type?i.t[i.p]=i.b:i.setRatio(e),i=i._next;else for(;i;){if(2!==i.type)if(i.r&&-1!==i.type)if(t=i.r(i.s+i.c),i.type){if(1===i.type){for(n=i.l,r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=r}}else i.t[i.p]=t+i.xs0;else i.t[i.p]=i.e;else i.setRatio(e);i=i._next}},e._enableTransforms=function(e){this._transform=this._transform||Ke(this._target,M,!0),this._transformType=this._transform.svg&&ke||!e&&3!==this._transformType?2:3};var rt=function(e){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};e._addLazySet=function(e,t,r){var n=this._firstPT=new we(e,t,0,0,this._firstPT,2);n.e=r,n.setRatio=rt,n.data=this},e._linkCSSP=function(e,t,r,n){return e&&(t&&(t._prev=e),e._next&&(e._next._prev=e._prev),e._prev?e._prev._next=e._next:this._firstPT===e&&(this._firstPT=e._next,n=!0),r?r._next=e:n||null!==this._firstPT||(this._firstPT=e),e._next=t,e._prev=r),e},e._mod=function(e){for(var t=this._firstPT;t;)"function"==typeof e[t.p]&&(t.r=e[t.p]),t=t._next},e._kill=function(e){var t,r,n,i=e;if(e.autoAlpha||e.alpha){for(r in i={},e)i[r]=e[r];i.opacity=1,i.autoAlpha&&(i.visibility=1)}for(e.className&&(t=this._classNamePT)&&((n=t.xfirst)&&n._prev?this._linkCSSP(n._prev,t._next,n._prev._prev):n===this._firstPT&&(this._firstPT=t._next),t._next&&this._linkCSSP(t._next,t._next._next,n._prev),this._classNamePT=null),t=this._firstPT;t;)t.plugin&&t.plugin!==r&&t.plugin._kill&&(t.plugin._kill(e),r=t.plugin),t=t._next;return o.prototype._kill.call(this,i)};var nt=function(e,t,r){var n,i,o,a;if(e.slice)for(i=e.length;-1<--i;)nt(e[i],t,r);else for(i=(n=e.childNodes).length;-1<--i;)a=(o=n[i]).type,o.style&&(t.push(oe(o)),r&&r.push(o)),1!==a&&9!==a&&11!==a||!o.childNodes.length||nt(o,t,r)};return U.cascadeTo=function(e,t,r){var n,i,o,a,s=z.to(e,t,r),u=[s],c=[],l=[],f=[],h=z._internals.reservedProps;for(e=s._targets||s.target,nt(e,c,f),s.render(t,!0,!0),nt(e,l),s.render(0,!0,!0),s._enabled(!0),n=f.length;-1<--n;)if((i=ae(f[n],c[n],l[n])).firstMPT){for(o in i=i.difs,r)h[o]&&(i[o]=r[o]);for(o in a={},i)a[o]=c[n][o];u.push(z.fromTo(f[n],t,a,i))}return u},o.activate([U]),U},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).CSSPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("plugins.CSSRulePlugin",["plugins.TweenPlugin","TweenLite","plugins.CSSPlugin"],function(e,t,i){var r=function(){e.call(this,"cssRule"),this._overwriteProps.length=0},c=_gsScope.document,o=i.prototype.setRatio,n=r.prototype=new i;return n._propName="cssRule",(n.constructor=r).version="0.6.8",r.API=2,r.getRule=function(e){var t,r,n,i,o=c.all?"rules":"cssRules",a=c.styleSheets,s=a.length,u=":"===e.charAt(0);for(e=(u?"":",")+e.split("::").join(":").toLowerCase()+",",u&&(i=[]);-1<--s;){try{if(!(r=a[s][o]))continue;t=r.length}catch(e){console.log(e);continue}for(;-1<--t;)if((n=r[t]).selectorText&&-1!==(","+n.selectorText.split("::").join(":").toLowerCase()+",").indexOf(e)){if(!u)return n.style;i.push(n.style)}}return i},n._onInitTween=function(e,t,r){if(void 0===e.cssText)return!1;var n=e._gsProxy=e._gsProxy||c.createElement("div");return this._ss=e,this._proxy=n.style,n.style.cssText=e.cssText,i.prototype._onInitTween.call(this,n,t,r),!0},n.setRatio=function(e){o.call(this,e);for(var t=this._proxy,r=this._ss,n=t.length;-1<--n;)r[t[n]]=t[t[n]]},e.activate([r]),r},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).CSSRulePlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var n,u,d=/(\d|\.)+/g,p=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,m={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},g=function(e,t,r){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},c=function(e,t){var r,n,i,o,a,s,u,c,l,f,h;if(e)if("number"==typeof e)r=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),m[e])r=m[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(n=e.charAt(1))+n+(i=e.charAt(2))+i+(o=e.charAt(3))+o),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=h=e.match(d),t){if(-1!==e.indexOf("="))return e.match(p)}else a=Number(r[0])%360/360,s=Number(r[1])/100,n=2*(u=Number(r[2])/100)-(i=u<=.5?u*(s+1):u+s-u*s),3<r.length&&(r[3]=Number(r[3])),r[0]=g(a+1/3,n,i),r[1]=g(a,n,i),r[2]=g(a-1/3,n,i);else r=e.match(d)||m.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=m.black;return t&&!h&&(n=r[0]/255,i=r[1]/255,o=r[2]/255,u=((c=Math.max(n,i,o))+(l=Math.min(n,i,o)))/2,c===l?a=s=0:(f=c-l,s=.5<u?f/(2-c-l):f/(c+l),a=c===n?(i-o)/f+(i<o?6:0):c===i?(o-n)/f+2:(n-i)/f+4,a*=60),r[0]=a+.5|0,r[1]=100*s+.5|0,r[2]=100*u+.5|0),r},i=function(e,t){var r,n,i,o=(e+"").match(l)||[],a=0,s="";if(!o.length)return e;for(r=0;r<o.length;r++)n=o[r],a+=(i=e.substr(a,e.indexOf(n,a)-a)).length+n.length,3===(n=c(n,t)).length&&n.push(1),s+=i+(t?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return s+e.substr(a)},e=(_gsScope.GreenSockGlobals||_gsScope).TweenLite,l="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b",t=_gsScope._gsDefine.plugin({propName:"colorProps",version:"1.5.3",priority:-1,API:2,global:!0,init:function(e,t,r,n){var i,o,a,s;for(i in this._target=e,this._proxy=o="NUMBER"===(t.format+"").toUpperCase()?{}:0,t)"format"!==i&&(o?(this._firstNumPT=a={_next:this._firstNumPT,t:e,p:i,f:"function"==typeof e[i]},o[i]="rgb("+c(a.f?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():e[i]).join(",")+")","function"==typeof(s=t[i])&&(s=s(n,e)),this._addTween(o,i,"get","number"==typeof s?"rgb("+c(s,!1).join(",")+")":s,i,null,null,u)):this._addTween(e,i,"get",t[i],i,null,null,u,n));return!0},set:function(e){var t,r=this._firstNumPT;for(this._super.setRatio.call(this,e);r;)t=(t=c(this._proxy[r.p],!1))[0]<<16|t[1]<<8|t[2],r.f?this._target[r.p](t):this._target[r.p]=t,r=r._next}});for(n in m)l+="|"+n+"\\b";l=new RegExp(l+")","gi"),t.colorStringFilter=u=function(e){var t,r=e[0]+" "+e[1];l.lastIndex=0,l.test(r)&&(t=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),e[0]=i(e[0],t),e[1]=i(e[1],t))},e.defaultStringFilter||(e.defaultStringFilter=t.colorStringFilter),t.parseColor=c,(n=t.prototype)._firstNumPT=null,n._kill=function(e){for(var t,r=this._firstNumPT;r;)r.p in e?(r===n._firstNumPT&&(this._firstNumPT=r._next),t&&(t._next=r._next)):t=r,r=r._next;return this._super._kill(e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).ColorPropsPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"directionalRotation",version:"0.3.1",API:2,init:function(e,t,r,n){"object"!=typeof t&&(t={rotation:t}),this.finals={};var i,o,a,s,u,c,l=!0===t.useRadians?2*Math.PI:360;for(i in t)"useRadians"!==i&&("function"==typeof(s=t[i])&&(s=s(n,e)),o=(c=(s+"").split("_"))[0],a=parseFloat("function"!=typeof e[i]?e[i]:e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]()),u=(s=this.finals[i]="string"==typeof o&&"="===o.charAt(1)?a+parseInt(o.charAt(0)+"1",10)*Number(o.substr(2)):Number(o)||0)-a,c.length&&(-1!==(o=c.join("_")).indexOf("short")&&(u%=l)!==u%(l/2)&&(u=u<0?u+l:u-l),-1!==o.indexOf("_cw")&&u<0?u=(u+9999999999*l)%l-(u/l|0)*l:-1!==o.indexOf("ccw")&&0<u&&(u=(u-9999999999*l)%l-(u/l|0)*l)),(1e-6<u||u<-1e-6)&&(this._addTween(e,i,a,a+u,i),this._overwriteProps.push(i)));return!0},set:function(e){var t;if(1!==e)this._super.setRatio.call(this,e);else for(t=this._firstPT;t;)t.f?t.t[t.p](this.finals[t.p]):t.t[t.p]=this.finals[t.p],t=t._next}})._autoCSS=!0}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).DirectionalRotationPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var l,u,t=/(\d|\.)+/g,f=["redMultiplier","greenMultiplier","blueMultiplier","alphaMultiplier","redOffset","greenOffset","blueOffset","alphaOffset"],r={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},h=function(e){return""===e||null==e||"none"===e?r.transparent:r[e]?r[e]:"number"==typeof e?[e>>16,e>>8&255,255&e]:"#"===e.charAt(0)?(4===e.length&&(e="#"+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)+e.charAt(3)+e.charAt(3)),[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]):e.match(t)||r.transparent},d=function(e,t,r){if(!l&&!(l=_gsScope.ColorFilter||_gsScope.createjs.ColorFilter))throw"EaselPlugin error: The EaselJS ColorFilter JavaScript file wasn't loaded.";for(var n,i,o,a,s,u=e.filters||[],c=u.length;-1<--c;)if(u[c]instanceof l){i=u[c];break}if(i||(i=new l,u.push(i),e.filters=u),o=i.clone(),null!=t.tint)n=h(t.tint),a=null!=t.tintAmount?Number(t.tintAmount):1,o.redOffset=Number(n[0])*a,o.greenOffset=Number(n[1])*a,o.blueOffset=Number(n[2])*a,o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1-a;else for(s in t)"exposure"!==s&&"brightness"!==s&&(o[s]=Number(t[s]));for(null!=t.exposure?(o.redOffset=o.greenOffset=o.blueOffset=255*(Number(t.exposure)-1),o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1):null!=t.brightness&&(a=Number(t.brightness)-1,o.redOffset=o.greenOffset=o.blueOffset=0<a?255*a:0,o.redMultiplier=o.greenMultiplier=o.blueMultiplier=1-Math.abs(a)),c=8;-1<--c;)i[s=f[c]]!==o[s]&&r._addTween(i,s,i[s],o[s],"easel_colorFilter");if(r._overwriteProps.push("easel_colorFilter"),!e.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+e},c=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],p=.212671,m=.71516,g=.072169,v=function(e,t){if(!(e instanceof Array&&t instanceof Array))return t;var r,n,i=[],o=0,a=0;for(r=0;r<4;r++){for(n=0;n<5;n++)a=4===n?e[o+4]:0,i[o+n]=e[o]*t[n]+e[o+1]*t[n+5]+e[o+2]*t[n+10]+e[o+3]*t[n+15]+a;o+=5}return i},y=function(e,t,r){if(!u&&!(u=_gsScope.ColorMatrixFilter||_gsScope.createjs.ColorMatrixFilter))throw"EaselPlugin error: The EaselJS ColorMatrixFilter JavaScript file wasn't loaded.";for(var n,i,o,a=e.filters||[],s=a.length;-1<--s;)if(a[s]instanceof u){o=a[s];break}for(o||(o=new u(c.slice()),a.push(o),e.filters=a),i=o.matrix,n=c.slice(),null!=t.colorize&&(n=function(e,t,r){isNaN(r)&&(r=1);var n=h(t),i=n[0]/255,o=n[1]/255,a=n[2]/255,s=1-r;return v([s+r*i*p,r*i*m,r*i*g,0,0,r*o*p,s+r*o*m,r*o*g,0,0,r*a*p,r*a*m,s+r*a*g,0,0,0,0,0,1,0],e)}(n,t.colorize,Number(t.colorizeAmount))),null!=t.contrast&&(n=function(e,t){return isNaN(t)?e:v([t+=.01,0,0,0,128*(1-t),0,t,0,0,128*(1-t),0,0,t,0,128*(1-t),0,0,0,1,0],e)}(n,Number(t.contrast))),null!=t.hue&&(n=function(e,t){if(isNaN(t))return e;t*=Math.PI/180;var r=Math.cos(t),n=Math.sin(t);return v([p+r*(1-p)+n*-p,m+r*-m+n*-m,g+r*-g+n*(1-g),0,0,p+r*-p+.143*n,m+r*(1-m)+.14*n,g+r*-g+-.283*n,0,0,p+r*-p+-.787329*n,m+r*-m+n*m,g+r*(1-g)+n*g,0,0,0,0,0,1,0,0,0,0,0,1],e)}(n,Number(t.hue))),null!=t.saturation&&(n=function(e,t){if(isNaN(t))return e;var r=1-t,n=r*p,i=r*m,o=r*g;return v([n+t,i,o,0,0,n,i+t,o,0,0,n,i,o+t,0,0,0,0,0,1,0],e)}(n,Number(t.saturation))),s=n.length;-1<--s;)n[s]!==i[s]&&r._addTween(i,s,i[s],n[s],"easel_colorMatrixFilter");if(r._overwriteProps.push("easel_colorMatrixFilter"),!e.cacheID)throw"EaselPlugin warning: for filters to display in EaselJS, you must call the object's cache() method first. "+e;r._matrix=i};_gsScope._gsDefine.plugin({propName:"easel",priority:-1,version:"0.2.2",API:2,init:function(e,t,r,n){var i,o,a,s,u,c,l;for(i in this._target=e,t)if("function"==typeof(u=t[i])&&(u=u(n,e)),"colorFilter"===i||"tint"===i||"tintAmount"===i||"exposure"===i||"brightness"===i)a||(d(e,t.colorFilter||t,this),a=!0);else if("saturation"===i||"contrast"===i||"hue"===i||"colorize"===i||"colorizeAmount"===i)s||(y(e,t.colorMatrixFilter||t,this),s=!0);else if("frame"===i){if(this._firstPT=o={_next:this._firstPT,t:e,p:"gotoAndStop",s:e.currentFrame,f:!0,n:"frame",pr:0,type:0,m:Math.round},"string"==typeof u&&"="!==u.charAt(1)&&(c=e.labels))for(l=0;l<c.length;l++)c[l].label===u&&(u=c[l].position);o.c="number"==typeof u?u-o.s:parseFloat((u+"").split("=").join("")),o._next&&(o._next._prev=o)}else null!=e[i]&&(this._firstPT=o={_next:this._firstPT,t:e,p:i,f:"function"==typeof e[i],n:i,pr:0,type:0},o.s=o.f?e[i.indexOf("set")||"function"!=typeof e["get"+i.substr(3)]?i:"get"+i.substr(3)]():parseFloat(e[i]),o.c="number"==typeof u?u-o.s:"string"==typeof u?parseFloat(u.split("=").join("")):0,o._next&&(o._next._prev=o));return!0},set:function(e){for(var t,r=this._firstPT;r;)t=r.c*e+r.s,r.m?t=r.m(t,r.t):t<1e-6&&-1e-6<t&&(t=0),r.f?r.t[r.p](t):r.t[r.p]=t,r=r._next;this._target.cacheID&&this._target.updateCache()}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).EaselPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"endArray",API:2,version:"0.1.3",init:function(e,t,r){var n,i,o=t.length,a=this.a=[];if(this.target=e,this._mod=0,!o)return!1;for(;-1<--o;)(n=e[o])!==(i=t[o])&&a.push({i:o,s:n,c:i-n});return!0},mod:function(e){"function"==typeof e.endArray&&(this._mod=e.endArray)},set:function(e){var t,r,n=this.target,i=this.a,o=i.length,a=this._mod;if(a)for(;-1<--o;)n[(t=i[o]).i]=a(t.s+t.c*e,n);else for(;-1<--o;)r=(t=i[o]).s+t.c*e,n[t.i]=r<1e-6&&-1e-6<r?0:r}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var i=function(i,e,o){var a=i.type,s=i.setRatio,u=e._tween,c=e._target;i.type=2,i.m=o,i.setRatio=function(e){var t,r,n;if(1!==e||u._time!==u._duration&&0!==u._time)if(e||u._time!==u._duration&&0!==u._time||-1e-6===u._rawPrevTime)if(t=i.c*e+i.s,i.r?t=Math.round(t):t<1e-6&&-1e-6<t&&(t=0),a)if(1===a){for(r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=o.call(u,r,c,u)}else-1===a?i.t[i.p]=o.call(u,i.xs0,c,u):s&&s.call(i,e);else i.t[i.p]=o.call(u,t+i.xs0,c,u);else 2!==a?i.t[i.p]=o.call(u,i.b,c,u):s.call(i,e);else if(2!==a)if(i.r&&-1!==a)if(t=Math.round(i.s+i.c),a){if(1===a){for(r=i.xs0+t+i.xs1,n=1;n<i.l;n++)r+=i["xn"+n]+i["xs"+(n+1)];i.t[i.p]=o.call(u,r,c,u)}}else i.t[i.p]=o.call(u,t+i.xs0,c,u);else i.t[i.p]=o.call(u,i.e,c,u);else s.call(i,e)}},o=function(e,t){var r=t._firstPT,n=e.rotation&&-1!==t._overwriteProps.join("").indexOf("bezier");for(e.scale?e.scaleX=e.scaleY=e.scale:e.rotationZ&&(e.rotation=e.rotationZ);r;)"function"==typeof e[r.p]?i(r,t,e[r.p]):n&&"bezier"===r.n&&-1!==r.plugin._overwriteProps.join("").indexOf("rotation")&&(r.data.mod=e.rotation),r=r._next},e=_gsScope._gsDefine.plugin({propName:"modifiers",version:"0.0.4",API:2,init:function(e,t,r){return this._tween=r,this._vars=t,!0},initAll:function(){var e,t,r=this._tween,n=this._vars,i=r._firstPT;if(i._modInitted)return!1;for(i._modInitted=1;i;)t=i._next,e=n[i.n],i.pg?"css"===i.t._propName?o(n,i.t):i.t!==this&&(e=n[i.t._propName],i.t._tween=r,i.t._mod("object"==typeof e?e:n)):"function"==typeof e&&(2===i.f&&i.t?(i.t._applyPT.m=e,i.t._tween=r):(this._add(i.t,i.p,i.s,i.c,e),t&&(t._prev=i._prev),i._prev?i._prev._next=t:r._firstPT===i&&(r._firstPT=t),i._next=i._prev=null,r._propLookup[i.n]=this)),i=t;return!1}}).prototype;e._add=function(e,t,r,n,i){this._addTween(e,t,r,r+n,t,i),this._overwriteProps.push(t)},e=_gsScope._gsDefine.globals.TweenLite.version.split("."),Number(e[0])<=1&&Number(e[1])<19&&_gsScope.console&&console.log("ModifiersPlugin requires GSAP 1.19.0 or later.")}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).ModifiersPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a,e,t,p=/(\d|\.)+/g,m=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,g={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},v=function(e,t,r){return 255*(6*(e=e<0?e+1:1<e?e-1:e)<1?t+(r-t)*e*6:e<.5?r:3*e<2?t+(r-t)*(2/3-e)*6:t)+.5|0},u=function(e,t){var r,n,i,o,a,s,u,c,l,f,h,d="hsl"===t;if(e)if("number"==typeof e)r=[e>>16,e>>8&255,255&e];else{if(","===e.charAt(e.length-1)&&(e=e.substr(0,e.length-1)),g[e])r=g[e];else if("#"===e.charAt(0))4===e.length&&(e="#"+(n=e.charAt(1))+n+(i=e.charAt(2))+i+(o=e.charAt(3))+o),r=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(r=h=e.match(p),d){if(-1!==e.indexOf("="))return e.match(m)}else a=Number(r[0])%360/360,s=Number(r[1])/100,n=2*(u=Number(r[2])/100)-(i=u<=.5?u*(s+1):u+s-u*s),3<r.length&&(r[3]=Number(e[3])),r[0]=v(a+1/3,n,i),r[1]=v(a,n,i),r[2]=v(a-1/3,n,i);else r=e.match(p)||g.transparent;r[0]=Number(r[0]),r[1]=Number(r[1]),r[2]=Number(r[2]),3<r.length&&(r[3]=Number(r[3]))}else r=g.black;return d&&!h&&(n=r[0]/255,i=r[1]/255,o=r[2]/255,u=((c=Math.max(n,i,o))+(l=Math.min(n,i,o)))/2,c===l?a=s=0:(f=c-l,s=.5<u?f/(2-c-l):f/(c+l),a=c===n?(i-o)/f+(i<o?6:0):c===i?(o-n)/f+2:(n-i)/f+4,a*=60),r[0]=a+.5|0,r[1]=100*s+.5|0,r[2]=100*u+.5|0),"number"===t?r[0]<<16|r[1]<<8|r[2]:r},n=function(e,t){var r,n,i,o=(e+"").match(c)||[],a=0,s="";if(!o.length)return e;for(r=0;r<o.length;r++)n=o[r],a+=(i=e.substr(a,e.indexOf(n,a)-a)).length+n.length,3===(n=u(n,t?"hsl":"rgb")).length&&n.push(1),s+=i+(t?"hsla("+n[0]+","+n[1]+"%,"+n[2]+"%,"+n[3]:"rgba("+n.join(","))+")";return s+e.substr(a)},r=(_gsScope.GreenSockGlobals||_gsScope).TweenLite,c="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b",l=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],f=.212671,h=.71516,d=.072169,y=function(e,t){var r,n,i=[],o=0,a=0;for(r=0;r<4;r++){for(n=0;n<5;n++)a=4===n?e[o+4]:0,i[o+n]=e[o]*t[n]+e[o+1]*t[n+5]+e[o+2]*t[n+10]+e[o+3]*t[n+15]+a;o+=5}return i},_=function(e,t){var r=1-t,n=r*f,i=r*h,o=r*d;return y([n+t,i,o,0,0,n,i+t,o,0,0,n,i,o+t,0,0,0,0,0,1,0],e)},b=function(e,t,r){var n=u(t),i=n[0]/255,o=n[1]/255,a=n[2]/255,s=1-r;return y([s+r*i*f,r*i*h,r*i*d,0,0,r*o*f,s+r*o*h,r*o*d,0,0,r*a*f,r*a*h,s+r*a*d,0,0,0,0,0,1,0],e)},x=function(e,t){t*=Math.PI/180;var r=Math.cos(t),n=Math.sin(t);return y([f+r*(1-f)+n*-f,h+r*-h+n*-h,d+r*-d+n*(1-d),0,0,f+r*-f+.143*n,h+r*(1-h)+.14*n,d+r*-d+-.283*n,0,0,f+r*-f+-.787329*n,h+r*-h+n*h,d+r*(1-d)+n*d,0,0,0,0,0,1,0,0,0,0,0,1],e)},w=function(e,t){return y([t,0,0,0,.5*(1-t),0,t,0,0,.5*(1-t),0,0,t,0,.5*(1-t),0,0,0,1,0],e)},T=function(e,t){var r,n=_gsScope.PIXI.filters[t],i=e.filters||[],o=i.length;if(!n)throw"PixiPlugin error: "+t+" isn't present.";for(;-1<--o;)if(i[o]instanceof n)return i[o];return r=new n,"BlurFilter"===t&&(r.blur=0),i.push(r),e.filters=i,r},S=function(e,t,r,n){t._addTween(r,e,r[e],n[e],e),t._overwriteProps.push(e)},M=function(e,t){var r=new _gsScope.PIXI.filters.ColorMatrixFilter;return r.matrix=t,r.brightness(e,!0),r.matrix},P={contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},E=function(e,t,r){var n,i,o,a=T(e,"ColorMatrixFilter"),s=e._gsColorMatrixFilter=e._gsColorMatrixFilter||{contrast:1,saturation:1,colorizeAmount:0,colorize:"rgb(255,255,255)",hue:0,brightness:1},u=t.combineCMF&&!("colorMatrixFilter"in t&&!t.colorMatrixFilter);o=a.matrix,t.resolution&&(a.resolution=t.resolution),t.matrix&&t.matrix.length===o.length?(i=t.matrix,1!==s.contrast&&S("contrast",r,s,P),s.hue&&S("hue",r,s,P),1!==s.brightness&&S("brightness",r,s,P),s.colorizeAmount&&(S("colorize",r,s,P),S("colorizeAmount",r,s,P)),1!==s.saturation&&S("saturation",r,s,P)):(i=l.slice(),null!=t.contrast?(i=w(i,Number(t.contrast)),S("contrast",r,s,t)):1!==s.contrast&&(u?i=w(i,s.contrast):S("contrast",r,s,P)),null!=t.hue?(i=x(i,Number(t.hue)),S("hue",r,s,t)):s.hue&&(u?i=x(i,s.hue):S("hue",r,s,P)),null!=t.brightness?(i=M(Number(t.brightness),i),S("brightness",r,s,t)):1!==s.brightness&&(u?i=M(s.brightness,i):S("brightness",r,s,P)),null!=t.colorize?(t.colorizeAmount="colorizeAmount"in t?Number(t.colorizeAmount):1,i=b(i,t.colorize,t.colorizeAmount),S("colorize",r,s,t),S("colorizeAmount",r,s,t)):s.colorizeAmount&&(u?i=b(i,s.colorize,s.colorizeAmount):(S("colorize",r,s,P),S("colorizeAmount",r,s,P))),null!=t.saturation?(i=_(i,Number(t.saturation)),S("saturation",r,s,t)):1!==s.saturation&&(u?i=_(i,s.saturation):S("saturation",r,s,P))),n=i.length;for(;-1<--n;)i[n]!==o[n]&&r._addTween(o,n,o[n],i[n],"colorMatrixFilter");r._overwriteProps.push("colorMatrixFilter")},C=function(e,t,r,n,i){var o=n._firstPT={_next:n._firstPT,t:e,p:t,proxy:{},f:"function"==typeof e[t]};o.proxy[t]="rgb("+u(o.f?e[t.indexOf("set")||"function"!=typeof e["get"+t.substr(3)]?t:"get"+t.substr(3)]():e[t]).join(",")+")",i._addTween(o.proxy,t,"get","number"==typeof r?"rgb("+u(r,!1).join(",")+")":r,t,null,null,a)},k=function(e,n){var i=n.setRatio,o=function(e){var t,r=o._firstPT;for(i.call(n,e);r;)t=u(r.proxy[r.p],"number"),r.f?r.t[r.p](t):r.t[r.p]=t,r=r._next;o.graphics&&(o.graphics.dirty++,o.graphics.clearDirty++)};return n.setRatio=o},A={tint:1,lineColor:1,fillColor:1},i="position,scale,skew,pivot,anchor,tilePosition,tileScale".split(","),O={x:"position",y:"position",tileX:"tilePosition",tileY:"tilePosition"},R={colorMatrixFilter:1,saturation:1,contrast:1,hue:1,colorize:1,colorizeAmount:1,brightness:1,combineCMF:1},o=Math.PI/180,I=function(e){return"string"==typeof e&&"="===e.charAt(1)?e.substr(0,2)+parseFloat(e.substr(2))*o:e*o};for(e=0;e<i.length;e++)t=i[e],O[t+"X"]=t,O[t+"Y"]=t;for(t in g)c+="|"+t+"\\b";c=new RegExp(c+")","gi"),a=function(e){var t,r=e[0]+" "+e[1];c.lastIndex=0,c.test(r)&&(t=-1!==r.indexOf("hsl(")||-1!==r.indexOf("hsla("),e[0]=n(e[0],t),e[1]=n(e[1],t))},r.defaultStringFilter||(r.defaultStringFilter=a);var s=_gsScope._gsDefine.plugin({propName:"pixi",priority:0,API:2,global:!0,version:"0.2.1",init:function(e,t,r,n){if(!e instanceof _gsScope.PIXI.DisplayObject)return!1;var i,o,a,s,u,c,l,f,h,d,p;for(c in t){if(i=O[c],"function"==typeof(a=t[c])&&(a=a(n||0,e)),i)o=-1!==c.charAt(c.length-1).toLowerCase().indexOf("x")?"x":"y",this._addTween(e[i],o,e[i][o],"skew"===i?I(a):a,c);else if("scale"===c||"anchor"===c||"pivot"===c||"tileScale"===c)this._addTween(e[c],"x",e[c].x,a,c+"X"),this._addTween(e[c],"y",e[c].y,a,c+"Y");else if("rotation"===c)this._addTween(e,c,e.rotation,I(a),c);else if(R[c])s||(E(e,t.colorMatrixFilter||t,this),s=!0);else if("blur"===c||"blurX"===c||"blurY"===c||"blurPadding"===c){if(u=T(e,"BlurFilter"),this._addTween(u,c,u[c],a,c),0!==t.blurPadding)for(l=t.blurPadding||2*Math.max(u[c],a),h=e.filters.length;-1<--h;)e.filters[h].padding=Math.max(e.filters[h].padding,l)}else if(A[c])if(f||(f=k(0,this)),("lineColor"===c||"fillColor"===c)&&e instanceof _gsScope.PIXI.Graphics){for(h=(d=e.graphicsData).length;-1<--h;)C(d[h],c,a,f,this);f.graphics=e}else C(e,c,a,f,this);else"autoAlpha"===c?(this._firstPT=p={t:{setRatio:function(){e.visible=!!e.alpha}},p:"setRatio",s:0,c:1,f:1,pg:0,n:"visible",pr:0,m:0,_next:this._firstPT},p._next&&(p._next._prev=p),this._addTween(e,"alpha",e.alpha,a,"alpha"),this._overwriteProps.push("alpha","visible")):this._addTween(e,c,e[c],a,c);this._overwriteProps.push(c)}return!0}});s.colorProps=A,s.parseColor=u,s.formatColors=n,s.colorStringFilter=a}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).PixiPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var l=/[^\d\-\.]/g,d=Math.PI/180,t=/(\d|\.)+/g,r={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},f=function(e){return"number"==typeof e?[e>>16,e>>8&255,255&e]:""===e||null==e||"none"===e||"string"!=typeof e?r.transparent:r[e]?r[e]:"#"===e.charAt(0)?(4===e.length&&(e="#"+e.charAt(1)+e.charAt(1)+e.charAt(2)+e.charAt(2)+e.charAt(3)+e.charAt(3)),[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e]):e.match(t)||r.transparent},p={scaleX:1,scaleY:1,tx:1,ty:1,rotation:1,shortRotation:1,skewX:1,skewY:1,scale:1},m=function(e,t){var r=e.matrix,n=r.a,i=r.b,o=r.c,a=r.d,s=t&&e._gsTransform||{skewY:0},u=s.scaleX<0;return s.tx=r.e-(s.ox||0),s.ty=r.f-(s.oy||0),s.scaleX=Math.sqrt(n*n+i*i),s.scaleY=Math.sqrt(a*a+o*o),s.rotation=n||i?Math.atan2(i,n):s.rotation||0,s.skewX=o||a?Math.atan2(o,a)+s.rotation:s.skewX||0,Math.abs(s.skewX)>Math.PI/2&&(u?(s.scaleX*=-1,s.skewX+=s.rotation<=0?Math.PI:-Math.PI,s.rotation+=s.rotation<=0?Math.PI:-Math.PI):(s.scaleY*=-1,s.skewX+=s.skewX<=0?Math.PI:-Math.PI)),s.rotation<1e-6&&-1e-6<s.rotation&&(n||i)&&(s.rotation=0),s.skewX<1e-6&&-1e-6<s.skewX&&(i||o)&&(s.skewX=0),t&&(e._gsTransform=s),s},g=function(e,t){return null==e?t:"string"==typeof e&&1===e.indexOf("=")?parseInt(e.charAt(0)+"1",10)*Number(e.substr(2))+t:Number(e)},v=function(e,t){var r=-1===e.indexOf("rad")?d:1,n=1===e.indexOf("=");return e=Number(e.replace(l,""))*r,n?e+t:e};_gsScope._gsDefine.plugin({propName:"raphael",version:"0.2.2",API:2,init:function(e,t,r){if(!e.attr)return!1;var n,i,o,a,s,u,c;for(n in this._target=e,this._tween=r,this._props=e._gsProps=e._gsProps||{},t)o=t[n],"transform"!==n?p[n]||"pivot"===n?this._parseTransform(e,t):(i=e.attr(n),this._firstPT=a={_next:this._firstPT,t:this._props,p:n,b:i,f:!1,n:"raphael_"+n,r:!1,type:0},"fill"===n||"stroke"===n?(s=f(i),u=f(o),a.e=o,a.s=Number(s[0]),a.c=Number(u[0])-a.s,a.gs=Number(s[1]),a.gc=Number(u[1])-a.gs,a.bs=Number(s[2]),a.bc=Number(u[2])-a.bs,3<s.length||3<u.length?(a.as=s.length<4?1:Number(s[3]),a.ac=(u.length<4?1:Number(u[3]))-a.as,a.type=2):a.type=1):(i="string"==typeof i?parseFloat(i.replace(l,"")):Number(i),"string"==typeof o?(c="="===o.charAt(1),o=parseFloat(o.replace(l,""))):c=!1,a.e=o||0===o?c?o+i:o:t[n],!i&&0!==i||!o&&0!==o||!(a.c=c?o:o-i)?(a.type=-1,a.i=t[n],a.s=a.c=0):a.s=i),this._overwriteProps.push("raphael_"+n),a._next&&(a._next._prev=a)):this._parseTransform(e,o);return!0},set:function(e){for(var t,r=this._firstPT;r;)t=r.c*e+r.s,r.r&&(t=Math.round(t)),r.type?1===r.type?r.t[r.p]="rgb("+(t>>0)+", "+(r.gs+e*r.gc>>0)+", "+(r.bs+e*r.bc>>0)+")":2===r.type?r.t[r.p]="rgba("+(t>>0)+", "+(r.gs+e*r.gc>>0)+", "+(r.bs+e*r.bc>>0)+", "+(r.as+e*r.ac)+")":-1===r.type&&(r.t[r.p]=r.i):r.t[r.p]=t,r=r._next;if(this._target.attr(this._props),this._transform){var n=(r=this._transform).rotation,i=n-r.skewX,o=Math.cos(n)*r.scaleX,a=Math.sin(n)*r.scaleX,s=Math.sin(i)*-r.scaleY,u=Math.cos(i)*r.scaleY,c=this._pxl,l=this._pyl;a<1e-6&&-1e-6<a&&(a=0),s<1e-6&&-1e-6<s&&(s=0),r.ox=this._pxg-(c*o+l*s),r.oy=this._pyg-(c*a+l*u),this._target.transform("m"+o+","+a+","+s+","+u+","+(r.tx+r.ox)+","+(r.ty+r.oy))}}}).prototype._parseTransform=function(e,t){if(!this._transform){var r,n,i,o,a,s,u,c,l,f=this._transform=m(e,!0);if("object"==typeof t){if(r={scaleX:g(null!=t.scaleX?t.scaleX:t.scale,f.scaleX),scaleY:g(null!=t.scaleY?t.scaleY:t.scale,f.scaleY),tx:g(t.tx,f.tx),ty:g(t.ty,f.ty)},null!=t.shortRotation){r.rotation="number"==typeof t.shortRotation?t.shortRotation*d:v(t.shortRotation,f.rotation);var h=(r.rotation-f.rotation)%(2*Math.PI);h!==h%Math.PI&&(h+=Math.PI*(h<0?2:-2)),r.rotation=f.rotation+h}else r.rotation=null==t.rotation?f.rotation:"number"==typeof t.rotation?t.rotation*d:v(t.rotation,f.rotation);r.skewX=null==t.skewX?f.skewX:"number"==typeof t.skewX?t.skewX*d:v(t.skewX,f.skewX),r.skewY=null==t.skewY?f.skewY:"number"==typeof t.skewY?t.skewY*d:v(t.skewY,f.skewY),(n=r.skewY-f.skewY)&&(r.skewX+=n,r.rotation+=n),r.skewY<1e-6&&-1e-6<r.skewY&&(r.skewY=0),r.skewX<1e-6&&-1e-6<r.skewX&&(r.skewX=0),r.rotation<1e-6&&-1e-6<r.rotation&&(r.rotation=0),u="string"==typeof(l=t.localPivot||t.globalPivot)?(a=l.split(","),s=Number(a[0]),Number(a[1])):"object"==typeof l?(s=Number(l.x),Number(l.y)):t.localPivot?(s=(a=e.getBBox(!0)).width/2,a.height/2):(s=(a=e.getBBox()).x+a.width/2,a.y+a.height/2),t.localPivot?(c=e.matrix,s+=e.attr("x"),u+=e.attr("y"),this._pxl=s,this._pyl=u,this._pxg=s*c.a+u*c.c+c.e-f.tx,this._pyg=s*c.b+u*c.d+c.f-f.ty):(c=e.matrix.invert(),this._pxl=s*c.a+u*c.c+c.e,this._pyl=s*c.b+u*c.d+c.f,this._pxg=s-f.tx,this._pyg=u-f.ty)}else{if("string"!=typeof t)return;a=this._target.transform(),e.transform(t),r=m(e,!1),e.transform(a)}for(i in p)f[i]!==r[i]&&"shortRotation"!==i&&"scale"!==i&&(this._firstPT=o={_next:this._firstPT,t:f,p:i,s:f[i],c:r[i]-f[i],n:i,f:!1,r:!1,b:f[i],e:r[i],type:0},o._next&&(o._next._prev=o),this._overwriteProps.push("raphael_"+i))}}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var e=_gsScope._gsDefine.plugin({propName:"roundProps",version:"1.7.0",priority:-1,API:2,init:function(e,t,r){return this._tween=r,!0}}),u=function(t){var r=t<1?Math.pow(10,(t+"").length-2):1;return function(e){return(Math.round(e/t)*t*r|0)/r}},c=function(e,t){for(;e;)e.f||e.blob||(e.m=t||Math.round),e=e._next},t=e.prototype;t._onInitAllProps=function(){var e,t,r,n,i=this._tween,o=i.vars.roundProps,a={},s=i._propLookup.roundProps;if("object"!=typeof o||o.push)for("string"==typeof o&&(o=o.split(",")),r=o.length;-1<--r;)a[o[r]]=Math.round;else for(n in o)a[n]=u(o[n]);for(n in a)for(e=i._firstPT;e;)t=e._next,e.pg?e.t._mod(a):e.n===n&&(2===e.f&&e.t?c(e.t._firstPT,a[n]):(this._add(e.t,n,e.s,e.c,a[n]),t&&(t._prev=e._prev),e._prev?e._prev._next=t:i._firstPT===e&&(i._firstPT=t),e._next=e._prev=null,i._propLookup[n]=s)),e=t;return!1},t._add=function(e,t,r,n,i){this._addTween(e,t,r,r+n,t,i||Math.round),this._overwriteProps.push(t)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var s=(_gsScope.document||{}).documentElement,u=_gsScope,a=function(e,t){var r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r,o=document.body;return e===u||e===s||e===o?Math.max(s[n],o[n])-(u["inner"+r]||s[i]||o[i]):e[n]-e["offset"+r]},c=function(e,t){var r="scroll"+("x"===t?"Left":"Top");return e===u&&(null!=e.pageXOffset?r="page"+t.toUpperCase()+"Offset":e=null!=s[r]?s:document.body),function(){return e[r]}},o=function(e,t){var r=function(e){return"string"==typeof e&&(e=TweenLite.selector(e)),e.length&&e!==u&&e[0]&&e[0].style&&!e.nodeType&&(e=e[0]),e===u||e.nodeType&&e.style?e:null}(e).getBoundingClientRect(),n=document.body,i=!t||t===u||t===n,o=i?{top:s.clientTop-(window.pageYOffset||s.scrollTop||n.scrollTop||0),left:s.clientLeft-(window.pageXOffset||s.scrollLeft||n.scrollLeft||0)}:t.getBoundingClientRect(),a={x:r.left-o.left,y:r.top-o.top};return!i&&t&&(a.x+=c(t,"x")(),a.y+=c(t,"y")()),a},n=function(e,t,r,n){var i=typeof e;return isNaN(e)?"string"==i&&"="===e.charAt(1)?parseInt(e.charAt(0)+"1",10)*parseFloat(e.substr(2))+n:"max"===e?a(t,r):Math.min(a(t,r),o(e,t)[r]):parseFloat(e)},l=_gsScope._gsDefine.plugin({propName:"scrollTo",API:2,global:!0,version:"1.9.2",init:function(e,t,r){return this._wdw=e===u,this._target=e,this._tween=r,"object"!=typeof t?"string"==typeof(t={y:t}).y&&"max"!==t.y&&"="!==t.y.charAt(1)&&(t.x=t.y):t.nodeType&&(t={y:t,x:t}),this.vars=t,this._autoKill=!1!==t.autoKill,this.getX=c(e,"x"),this.getY=c(e,"y"),this.x=this.xPrev=this.getX(),this.y=this.yPrev=this.getY(),null!=t.x?(this._addTween(this,"x",this.x,n(t.x,e,"x",this.x)-(t.offsetX||0),"scrollTo_x",!0),this._overwriteProps.push("scrollTo_x")):this.skipX=!0,null!=t.y?(this._addTween(this,"y",this.y,n(t.y,e,"y",this.y)-(t.offsetY||0),"scrollTo_y",!0),this._overwriteProps.push("scrollTo_y")):this.skipY=!0,!0},set:function(e){this._super.setRatio.call(this,e);var t=this._wdw||!this.skipX?this.getX():this.xPrev,r=this._wdw||!this.skipY?this.getY():this.yPrev,n=r-this.yPrev,i=t-this.xPrev,o=l.autoKillThreshold;this.x<0&&(this.x=0),this.y<0&&(this.y=0),this._autoKill&&(!this.skipX&&(o<i||i<-o)&&t<a(this._target,"x")&&(this.skipX=!0),!this.skipY&&(o<n||n<-o)&&r<a(this._target,"y")&&(this.skipY=!0),this.skipX&&this.skipY&&(this._tween.kill(),this.vars.onAutoKill&&this.vars.onAutoKill.apply(this.vars.onAutoKillScope||this._tween,this.vars.onAutoKillParams||[]))),this._wdw?u.scrollTo(this.skipX?t:this.x,this.skipY?r:this.y):(this.skipY||(this._target.scrollTop=this.y),this.skipX||(this._target.scrollLeft=this.x)),this.xPrev=this.x,this.yPrev=this.y}}),e=l.prototype;l.max=a,l.getOffset=o,l.buildGetter=c,l.autoKillThreshold=7,e._kill=function(e){return e.scrollTo_x&&(this.skipX=!0),e.scrollTo_y&&(this.skipY=!0),this._super._kill.call(this,e)}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).ScrollToPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine.plugin({propName:"yourCustomProperty",priority:0,API:2,version:"1.0.0",overwriteProps:["yourCustomProperty"],init:function(e,t,r,n){return this._target=e,this._addTween(e,"scaleX",e.scaleX,t,"scaleX",!1),this._addTween(e,"scaleY",e.scaleY,t,"scaleY",!1),this._alphaStart=e.alpha,this._alphaChange=t.alpha-e.alpha,!0},set:function(e){this._super.setRatio.call(this,e),this._target.alpha=this._alphaStart+this._alphaChange*e}})}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a=function(e){var t=e.nodeType,r="";if(1===t||9===t||11===t){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)r+=a(e)}else if(3===t||4===t)return e.nodeValue;return r},e="[-]|\ud83c[\udc00-\udfff]|\ud83d[\udc00-\udfff]|[⚔-⚗]|\ud83e[\udd10-\udd5d]|[\ud800-\udbff][\udc00-\udfff]",r=new RegExp(e),n=new RegExp(e+"|.","g"),s=function(e,t){return""!==t&&t||!r.test(e)?e.split(t||""):e.match(n)},t=_gsScope._gsDefine.plugin({propName:"text",API:2,version:"0.6.2",init:function(e,t,r,n){var i,o=e.nodeName.toUpperCase();if("function"==typeof t&&(t=t(n,e)),this._svg=e.getBBox&&("TEXT"===o||"TSPAN"===o),!("innerHTML"in e||this._svg))return!1;if(this._target=e,"object"!=typeof t&&(t={value:t}),void 0===t.value)return this._text=this._original=[""],!0;for(this._delimiter=t.delimiter||"",this._original=s(a(e).replace(/\s+/g," "),this._delimiter),this._text=s(t.value.replace(/\s+/g," "),this._delimiter),this._runBackwards=!0===r.vars.runBackwards,this._runBackwards&&(o=this._original,this._original=this._text,this._text=o),"string"==typeof t.newClass&&(this._newClass=t.newClass,this._hasClass=!0),"string"==typeof t.oldClass&&(this._oldClass=t.oldClass,this._hasClass=!0),i=(o=this._original.length-this._text.length)<0?this._original:this._text,this._fillChar=t.fillChar||(t.padSpace?"&nbsp;":""),o<0&&(o=-o);-1<--o;)i.push(this._fillChar);return!0},set:function(e){1<e?e=1:e<0&&(e=0),this._runBackwards&&(e=1-e);var t,r,n,i=this._text.length,o=e*i+.5|0;n=this._hasClass?(t=this._newClass&&0!=o,r=this._oldClass&&o!==i,(t?"<span class='"+this._newClass+"'>":"")+this._text.slice(0,o).join(this._delimiter)+(t?"</span>":"")+(r?"<span class='"+this._oldClass+"'>":"")+this._delimiter+this._original.slice(o).join(this._delimiter)+(r?"</span>":"")):this._text.slice(0,o).join(this._delimiter)+this._delimiter+this._original.slice(o).join(this._delimiter),this._svg?this._target.textContent=n:this._target.innerHTML="&nbsp;"===this._fillChar&&-1!==n.indexOf(" ")?n.split(" ").join("&nbsp;&nbsp;"):n}}).prototype;t._newClass=t._oldClass=t._delimiter=""}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).TextPlugin};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite"],t)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(r,be,xe){var we,o,Te,S,p,m,M,P,e,t,n,i,a,Se={css:{},data:"_draggable"},Me={css:{},data:"_draggable"},Pe={css:{},data:"_draggable"},Ee={css:{}},Ce=_gsScope._gsDefine.globals,s={},u=function(){return!1},c={style:{},appendChild:u,removeChild:u},ke=_gsScope.document||{createElement:function(){return c}},Ae=ke.documentElement||{},l=function(e){return ke.createElementNS?ke.createElementNS("http://www.w3.org/1999/xhtml",e):ke.createElement(e)},f=l("div"),Oe=[],Re=180/Math.PI,Ie=999999999999999,De=Date.now||function(){return(new Date).getTime()},Le=!(ke.addEventListener||!ke.all),Ne=ke.createElement("div"),je=[],Fe={},Be=0,h=/^(?:a|input|textarea|button|select)$/i,ze=0,Ue=_gsScope.navigator&&-1!==_gsScope.navigator.userAgent.toLowerCase().indexOf("android"),Xe=0,qe={},He={},Ye=function(e,t){var r,n={};if(t)for(r in e)n[r]=e[r]*t;else for(r in e)n[r]=e[r];return n},Ge=function(){for(var e=je.length;-1<--e;)je[e]()},We=function(e){for(var t=je.length;-1<--t;)je[t]===e&&je.splice(t,1);be.to(d,0,{overwrite:"all",delay:15,onComplete:d,data:"_draggable"})},d=function(){je.length||be.ticker.removeEventListener("tick",Ge)},E=function(){return null!=window.pageYOffset?window.pageYOffset:null!=ke.scrollTop?ke.scrollTop:Ae.scrollTop||ke.body.scrollTop||0},C=function(){return null!=window.pageXOffset?window.pageXOffset:null!=ke.scrollLeft?ke.scrollLeft:Ae.scrollLeft||ke.body.scrollLeft||0},Ve=function(e,t){ct(e,"scroll",t),Je(e.parentNode)||Ve(e.parentNode,t)},Ke=function(e,t){lt(e,"scroll",t),Je(e.parentNode)||Ke(e.parentNode,t)},Je=function(e){return!(e&&e!==Ae&&e!==ke&&e!==ke.body&&e!==window&&e.nodeType&&e.parentNode)},g=function(e,t){var r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r,o=ke.body;return Math.max(0,Je(e)?Math.max(Ae[n],o[n])-(window["inner"+r]||Ae[i]||o[i]):e[n]-e[i])},Ze=function(e){var t=Je(e),r=g(e,"x"),n=g(e,"y");t?e=He:Ze(e.parentNode),e._gsMaxScrollX=r,e._gsMaxScrollY=n,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0},Qe=function(e,t){return e=e||window.event,s.pageX=e.clientX+ke.body.scrollLeft+Ae.scrollLeft,s.pageY=e.clientY+ke.body.scrollTop+Ae.scrollTop,t&&(e.returnValue=!1),s},$e=function(e){return e?("string"==typeof e&&(e=be.selector(e)),e.length&&e!==window&&e[0]&&e[0].style&&!e.nodeType&&(e=e[0]),e===window||e.nodeType&&e.style?e:null):e},v=function(e,t){var r,n,i,o=e.style;if(void 0===o[t]){for(i=["O","Moz","ms","Ms","Webkit"],n=5,r=t.charAt(0).toUpperCase()+t.substr(1);-1<--n&&void 0===o[i[n]+r];);if(n<0)return"";t=(3===n?"ms":i[n])+r}return t},et=function(e,t,r){var n=e.style;n&&(void 0===n[t]&&(t=v(e,t)),null==r?n.removeProperty?n.removeProperty(t.replace(/([A-Z])/g,"-$1").toLowerCase()):n.removeAttribute(t):void 0!==n[t]&&(n[t]=r))},y="undefined"!=typeof window?window:ke.defaultView||{getComputedStyle:function(){}},k=function(e,t){return y.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e,t)},_=/(?:Left|Right|Width)/i,b=/(?:\d|\-|\+|=|#|\.)*/g,x=function(e,t,r,n,i){if("px"===n||!n)return r;if("auto"===n||!r)return 0;var o,a=_.test(t),s=e,u=f.style,c=r<0;return c&&(r=-r),"%"===n&&-1!==t.indexOf("border")?o=r/100*(a?e.clientWidth:e.clientHeight):(u.cssText="border:0 solid red;position:"+tt(e,"position",!0)+";line-height:0;","%"!==n&&s.appendChild?u[a?"borderLeftWidth":"borderTopWidth"]=r+n:(s=e.parentNode||ke.body,u[a?"width":"height"]=r+n),s.appendChild(f),o=parseFloat(f[a?"offsetWidth":"offsetHeight"]),s.removeChild(f),0!==o||i||(o=x(e,t,r,n,!0))),c?-o:o},tt=function(e,t,r){var n,i=(e._gsTransform||{})[t];return i||0===i?i:(e.style&&e.style[t]?i=e.style[t]:(n=k(e))?i=(i=n.getPropertyValue(t.replace(/([A-Z])/g,"-$1").toLowerCase()))||n.length?i:n[t]:e.currentStyle&&(i=e.currentStyle[t]),"auto"!==i||"top"!==t&&"left"!==t||(i=function(e,t){if("absolute"!==tt(e,"position",!0))return 0;var r="left"===t?"Left":"Top",n=tt(e,"margin"+r,!0);return e["offset"+r]-(x(e,t,parseFloat(n),(n+"").replace(b,""))||0)}(e,t)),r?i:parseFloat(i)||0)},rt=function(e,t,r){var n=e.vars,i=n[r],o=e._listeners[t];"function"==typeof i&&i.apply(n[r+"Scope"]||n.callbackScope||e,n[r+"Params"]||[e.pointerEvent]),o&&e.dispatchEvent(t)},nt=function(e,t){var r,n,i,o=$e(e);return o?q(o,t):void 0!==e.left?(i=ot(t),{left:e.left-i.x,top:e.top-i.y,width:e.width,height:e.height}):{left:n=e.min||e.minX||e.minRotation||0,top:r=e.min||e.minY||0,width:(e.max||e.maxX||e.maxRotation||0)-n,height:(e.max||e.maxY||0)-r}},A=function(){if(!ke.createElementNS)return S=0,void(p=!1);var e,t,r,n,i=l("div"),o=ke.createElementNS("http://www.w3.org/2000/svg","svg"),a=l("div"),s=i.style,u=ke.body||Ae,c="flex"===tt(u,"display",!0);ke.body&&O&&(s.position="absolute",u.appendChild(a),a.appendChild(i),n=i.offsetParent,a.style[O]="rotate(1deg)",P=i.offsetParent===n,a.style.position="absolute",s.height="10px",n=i.offsetTop,a.style.border="5px solid red",M=n!==i.offsetTop,u.removeChild(a)),s=o.style,o.setAttributeNS(null,"width","400px"),o.setAttributeNS(null,"height","400px"),o.setAttributeNS(null,"viewBox","0 0 400 400"),s.display="block",s.boxSizing="border-box",s.border="0px solid red",s.transform="none",i.style.cssText="width:100px;height:100px;overflow:scroll;-ms-overflow-style:none;",u.appendChild(i),i.appendChild(o),t=(r=o.createSVGPoint().matrixTransform(o.getScreenCTM())).y,i.scrollTop=100,r.x=r.y=0,r=r.matrixTransform(o.getScreenCTM()),m=t-r.y<100.1?0:t-r.y-150,i.removeChild(o),u.removeChild(i),u.appendChild(o),c&&(u.style.display="block"),t=(e=o.getScreenCTM()).e,s.border="50px solid red",e=o.getScreenCTM(),p=0===t&&0===e.e&&0===e.f&&1===e.a?(S=1,!0):(S=t!==e.e?1:0,1!==e.a),c&&(u.style.display="flex"),u.removeChild(o)},w=""!==v(f,"perspective"),T=v(f,"transformOrigin").replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),O=v(f,"transform"),R=O.replace(/^ms/g,"Ms").replace(/([A-Z])/g,"-$1").toLowerCase(),I={},D={},L=_gsScope.SVGElement,it=function(e){return!!(L&&"function"==typeof e.getBBox&&e.getCTM&&(!e.parentNode||e.parentNode.getBBox&&e.parentNode.getCTM))},N=_gsScope.navigator&&(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(_gsScope.navigator.userAgent)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(_gsScope.navigator.userAgent))&&parseFloat(RegExp.$1)<11,j=[],F=[],B=function(e){if(!e.getBoundingClientRect||!e.parentNode||!O)return{offsetTop:0,offsetLeft:0,scaleX:1,scaleY:1,offsetParent:Ae};if(!1!==gt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r,n,i,o,a,s,u,c,l,f,h=e,d=z(e);if(d.lastUpdate=be.ticker.frame,e.getBBox&&!d.isSVGRoot){for(h=e.parentNode,t=e.getBBox();h&&"svg"!==(h.nodeName+"").toLowerCase();)h=h.parentNode;return i=B(h),d.offsetTop=t.y*i.scaleY,d.offsetLeft=t.x*i.scaleX,d.scaleX=i.scaleX,d.scaleY=i.scaleY,d.offsetParent=h||Ae,d}for((n=d.offsetParent)===ke.body&&(n=Ae),F.length=j.length=0;h&&h.parentNode;)"matrix(1, 0, 0, 1, 0, 0)"!==(o=tt(h,O,!0))&&"none"!==o&&"translate3d(0px, 0px, 0px)"!==o&&(F.push(h),j.push(h.style[O]),h.style[O]="none"),h=h.parentNode;for(r=n.getBoundingClientRect(),o=e.getScreenCTM(),s=e.createSVGPoint().matrixTransform(o),d.scaleX=Math.sqrt(o.a*o.a+o.b*o.b),d.scaleY=Math.sqrt(o.d*o.d+o.c*o.c),void 0===S&&A(),d.borderBox&&!p&&e.getAttribute("width")&&(i=k(e)||{},u=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)||0,c=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)||0,l=parseFloat(i.width)||0,f=parseFloat(i.height)||0,d.scaleX*=(l-u)/l,d.scaleY*=(f-c)/f),m?(t=e.getBoundingClientRect(),d.offsetLeft=t.left-r.left,d.offsetTop=t.top-r.top):(d.offsetLeft=s.x-r.left,d.offsetTop=s.y-r.top),d.offsetParent=n,a=F.length;-1<--a;)F[a].style[O]=j[a];return d},ot=function(e,t){if(t=t||{},!e||e===Ae||!e.parentNode||e===window)return{x:0,y:0};var r=k(e),n=T&&r?r.getPropertyValue(T):"50% 50%",i=n.split(" "),o=-1!==n.indexOf("left")?"0%":-1!==n.indexOf("right")?"100%":i[0],a=-1!==n.indexOf("top")?"0%":-1!==n.indexOf("bottom")?"100%":i[1];return"center"!==a&&null!=a||(a="50%"),("center"===o||isNaN(parseFloat(o)))&&(o="50%"),e.getBBox&&it(e)?(e._gsTransform||(be.set(e,{x:"+=0",overwrite:!1}),void 0===e._gsTransform.xOrigin&&console.log("Draggable requires at least GSAP 1.17.0")),n=e.getBBox(),t.x=e._gsTransform.xOrigin-n.x,t.y=e._gsTransform.yOrigin-n.y):(e.getBBox&&-1!==(o+a).indexOf("%")&&(e={offsetWidth:(e=e.getBBox()).width,offsetHeight:e.height}),t.x=-1!==o.indexOf("%")?e.offsetWidth*parseFloat(o)/100:parseFloat(o),t.y=-1!==a.indexOf("%")?e.offsetHeight*parseFloat(a)/100:parseFloat(a)),t},z=function(e){if(!1!==gt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r=e._dCache=e._dCache||{},n=k(e),i=e.getBBox&&it(e),o="svg"===(e.nodeName+"").toLowerCase();if(r.isSVG=i,r.isSVGRoot=o,r.borderBox="border-box"===n.boxSizing,r.computedStyle=n,o)(t=e.parentNode||Ae).insertBefore(f,e),r.offsetParent=f.offsetParent||Ae,t.removeChild(f);else if(i){for(t=e.parentNode;t&&"svg"!==(t.nodeName+"").toLowerCase();)t=t.parentNode;r.offsetParent=t}else r.offsetParent=e.offsetParent;return r},U=function(e,t,r,n,i){if(e===window||!e||!e.style||!e.parentNode)return[1,0,0,1,0,0];var o,a,s,u,c,l,f,h,d,p,m,g,v,y,_=e._dCache||z(e),b=e.parentNode,x=b._dCache||z(b),w=_.computedStyle,T=_.isSVG?x.offsetParent:b.offsetParent;if(o=_.isSVG&&-1!==(e.style[O]+"").indexOf("matrix")?e.style[O]:w?w.getPropertyValue(R):e.currentStyle?e.currentStyle[O]:"1,0,0,1,0,0",e.getBBox&&-1!==(e.getAttribute("transform")+"").indexOf("matrix")&&(o=e.getAttribute("transform")),6<(o=(o+"").match(/(?:\-|\.|\b)(\d|\.|e\-)+/g)||[1,0,0,1,0,0]).length&&(o=[o[0],o[1],o[4],o[5],o[12],o[13]]),n?o[4]=o[5]=0:_.isSVG&&(c=e._gsTransform)&&(c.xOrigin||c.yOrigin)&&(o[0]=parseFloat(o[0]),o[1]=parseFloat(o[1]),o[2]=parseFloat(o[2]),o[3]=parseFloat(o[3]),o[4]=parseFloat(o[4])-(c.xOrigin-(c.xOrigin*o[0]+c.yOrigin*o[2])),o[5]=parseFloat(o[5])-(c.yOrigin-(c.xOrigin*o[1]+c.yOrigin*o[3]))),t)if(void 0===S&&A(),s=_.isSVG||_.isSVGRoot?B(e):e,_.isSVG?(u=e.getBBox(),p=x.isSVGRoot?{x:0,y:0}:b.getBBox(),s={offsetLeft:u.x-p.x,offsetTop:u.y-p.y,offsetParent:_.offsetParent}):_.isSVGRoot?(m=parseInt(w.borderTopWidth,10)||0,g=parseInt(w.borderLeftWidth,10)||0,v=(o[0]-S)*g+o[2]*m,y=o[1]*g+(o[3]-S)*m,l=t.x,f=t.y,h=l-(l*o[0]+f*o[2]),d=f-(l*o[1]+f*o[3]),o[4]=parseFloat(o[4])+h,o[5]=parseFloat(o[5])+d,t.x-=h,t.y-=d,l=s.scaleX,f=s.scaleY,i||(t.x*=l,t.y*=f),o[0]*=l,o[1]*=f,o[2]*=l,o[3]*=f,N||(t.x+=v,t.y+=y),T===ke.body&&s.offsetParent===Ae&&(T=Ae)):!M&&e.offsetParent&&(t.x+=parseInt(tt(e.offsetParent,"borderLeftWidth"),10)||0,t.y+=parseInt(tt(e.offsetParent,"borderTopWidth"),10)||0),a=b===Ae||b===ke.body,o[4]=Number(o[4])+t.x+(s.offsetLeft||0)-r.x-(a?0:b.scrollLeft||0),o[5]=Number(o[5])+t.y+(s.offsetTop||0)-r.y-(a?0:b.scrollTop||0),b&&"fixed"===tt(e,"position",!0))for(o[4]+=C(),o[5]+=E(),b=b.offsetParent;b;)o[4]-=b.offsetLeft,o[5]-=b.offsetTop,b=b.offsetParent;else!b||b===Ae||T!==s.offsetParent||x.isSVG||P&&"100100"!==U(b).join("")||(s=x.isSVGRoot?B(b):b,o[4]-=s.offsetLeft||0,o[5]-=s.offsetTop||0,M||!x.offsetParent||_.isSVG||_.isSVGRoot||(o[4]-=parseInt(tt(x.offsetParent,"borderLeftWidth"),10)||0,o[5]-=parseInt(tt(x.offsetParent,"borderTopWidth"),10)||0));return o},at=function(e,t){if(!e||e===window||!e.parentNode)return[1,0,0,1,0,0];for(var r,n,i,o,a,s,u,c,l=ot(e,I),f=ot(e.parentNode,D),h=U(e,l,f,!1,!t);(e=e.parentNode)&&e.parentNode&&e!==Ae;)l=f,f=ot(e.parentNode,l===I?D:I),u=U(e,l,f),r=h[0],n=h[1],i=h[2],o=h[3],a=h[4],s=h[5],h[0]=r*u[0]+n*u[2],h[1]=r*u[1]+n*u[3],h[2]=i*u[0]+o*u[2],h[3]=i*u[1]+o*u[3],h[4]=a*u[0]+s*u[2]+u[4],h[5]=a*u[1]+s*u[3]+u[5];return t&&(r=h[0],n=h[1],i=h[2],o=h[3],a=h[4],s=h[5],c=r*o-n*i,h[0]=o/c,h[1]=-n/c,h[2]=-i/c,h[3]=r/c,h[4]=(i*s-o*a)/c,h[5]=-(r*s-n*a)/c),h},X=function(e,t,r){var n=e.x*t[0]+e.y*t[2]+t[4],i=e.x*t[1]+e.y*t[3]+t[5];return e.x=n*r[0]+i*r[2]+r[4],e.y=n*r[1]+i*r[3]+r[5],e},q=function(e,t,r){if(!(e=$e(e)))return null;t=$e(t);var n,i,o,a,s,u,c,l,f,h,d,p,m,g,v,y,_,b,x,w,T,S,M=e.getBBox&&it(e);if(e===window)a=E(),o=(i=C())+(Ae.clientWidth||e.innerWidth||ke.body.clientWidth||0),s=a+((e.innerHeight||0)-20<Ae.clientHeight?Ae.clientHeight:e.innerHeight||ke.body.clientHeight||0);else{if(void 0===t||t===window)return e.getBoundingClientRect();i=-(n=ot(e)).x,a=-n.y,g=M?(m=(p=e.getBBox()).width,p.height):"svg"!==(e.nodeName+"").toLowerCase()&&e.offsetWidth?(m=e.offsetWidth,e.offsetHeight):(T=k(e),m=parseFloat(T.width),parseFloat(T.height)),o=i+m,s=a+g,"svg"!==e.nodeName.toLowerCase()||Le||(S=(v=B(e)).computedStyle||{},b=(e.getAttribute("viewBox")||"0 0").split(" "),x=parseFloat(b[0]),w=parseFloat(b[1]),y=parseFloat(S.borderLeftWidth)||0,_=parseFloat(S.borderTopWidth)||0,i/=v.scaleX,a/=v.scaleY,o=i+m-(m-(m-y)/v.scaleX-x),s=a+g-(g-(g-_)/v.scaleY-w),i-=y/v.scaleX-x,a-=_/v.scaleY-w,T&&(o+=(parseFloat(S.borderRightWidth)+y)/v.scaleX,s+=(_+parseFloat(S.borderBottomWidth))/v.scaleY))}return e===t?{left:i,top:a,width:o-i,height:s-a}:(u=at(e),c=at(t,!0),l=X({x:i,y:a},u,c),f=X({x:o,y:a},u,c),h=X({x:o,y:s},u,c),d=X({x:i,y:s},u,c),i=Math.min(l.x,f.x,h.x,d.x),a=Math.min(l.y,f.y,h.y,d.y),qe.x=qe.y=0,r&&ot(t,qe),{left:i+qe.x,top:a+qe.y,width:Math.max(l.x,f.x,h.x,d.x)-i,height:Math.max(l.y,f.y,h.y,d.y)-a})},H=function(e){return!!(e&&e.length&&e[0]&&(e[0].nodeType&&e[0].style&&!e.nodeType||e[0].length&&e[0][0]))},st="undefined"!=typeof window&&"ontouchstart"in Ae&&"orientation"in window,ut=function(e){for(var t=e.split(","),r=(void 0!==f.onpointerdown?"pointerdown,pointermove,pointerup,pointercancel":void 0!==f.onmspointerdown?"MSPointerDown,MSPointerMove,MSPointerUp,MSPointerCancel":e).split(","),n={},i=4;-1<--i;)n[t[i]]=r[i],n[r[i]]=t[i];try{Ae.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){o=1}}))}catch(e){}return n}("touchstart,touchmove,touchend,touchcancel"),ct=function(e,t,r,n){if(e.addEventListener){var i=ut[t];n=n||(o?{passive:!1}:null),e.addEventListener(i||t,r,n),i&&t!==i&&e.addEventListener(t,r,n)}else e.attachEvent&&e.attachEvent("on"+t,r)},lt=function(e,t,r){if(e.removeEventListener){var n=ut[t];e.removeEventListener(n||t,r),n&&t!==n&&e.removeEventListener(t,r)}else e.detachEvent&&e.detachEvent("on"+t,r)},Y=function(e){we=e.touches&&ze<e.touches.length,lt(e.target,"touchend",Y)},ft=function(e){we=e.touches&&ze<e.touches.length,ct(e.target,"touchend",Y)},ht=function(i,o,e,t,a,r){var n,s,u,c={};if(o)if(1!==a&&o instanceof Array){if(c.end=n=[],u=o.length,"object"==typeof o[0])for(s=0;s<u;s++)n[s]=Ye(o[s],a);else for(s=0;s<u;s++)n[s]=o[s]*a;e+=1.1,t-=1.1}else c.end="function"==typeof o?function(e){var t,r,n=o.call(i,e);if(1!==a)if("object"==typeof n){for(r in t={},n)t[r]=n[r]*a;n=t}else n*=a;return n}:o;return(e||0===e)&&(c.max=e),(t||0===t)&&(c.min=t),r&&(c.velocity=0),c},dt=function(e){var t;return!(!e||!e.getAttribute||"BODY"===e.nodeName)&&(!("true"!==(t=e.getAttribute("data-clickable"))&&("false"===t||!e.onclick&&!h.test(e.nodeName+"")&&"true"!==e.getAttribute("contentEditable")))||dt(e.parentNode))},pt=function(e,t){for(var r,n=e.length;-1<--n;)(r=e[n]).ondragstart=r.onselectstart=t?null:u,et(r,"userSelect",t?"text":"none")},G=(t=ke.createElement("div"),n=ke.createElement("div"),i=n.style,a=ke.body||f,i.display="inline-block",i.position="relative",t.style.cssText=n.innerHTML="width:90px; height:40px; padding:10px; overflow:auto; visibility: hidden",t.appendChild(n),a.appendChild(t),e=n.offsetHeight+18>t.scrollHeight,a.removeChild(t),e),mt=function(i,o){i=$e(i),o=o||{};var a,s,u,e,c,l,f=ke.createElement("div"),h=f.style,t=i.firstChild,d=0,p=0,m=i.scrollTop,g=i.scrollLeft,v=i.scrollWidth,y=i.scrollHeight,_=0,b=0,x=0;w&&!1!==o.force3D?(c="translate3d(",l="px,0px)"):O&&(c="translate(",l="px)"),this.scrollTop=function(e,t){if(!arguments.length)return-this.top();this.top(-e,t)},this.scrollLeft=function(e,t){if(!arguments.length)return-this.left();this.left(-e,t)},this.left=function(e,t){if(!arguments.length)return-(i.scrollLeft+p);var r=i.scrollLeft-g,n=p;if((2<r||r<-2)&&!t)return g=i.scrollLeft,be.killTweensOf(this,!0,{left:1,scrollLeft:1}),this.left(-g),void(o.onKill&&o.onKill());(e=-e)<0?(p=e-.5|0,e=0):b<e?(p=e-b|0,e=b):p=0,(p||n)&&(c?this._suspendTransforms||(h[O]=c+-p+"px,"+-d+l):h.left=-p+"px",0<=p+_&&(h.paddingRight=p+_+"px")),i.scrollLeft=0|e,g=i.scrollLeft},this.top=function(e,t){if(!arguments.length)return-(i.scrollTop+d);var r=i.scrollTop-m,n=d;if((2<r||r<-2)&&!t)return m=i.scrollTop,be.killTweensOf(this,!0,{top:1,scrollTop:1}),this.top(-m),void(o.onKill&&o.onKill());(e=-e)<0?(d=e-.5|0,e=0):x<e?(d=e-x|0,e=x):d=0,(d||n)&&(c?this._suspendTransforms||(h[O]=c+-p+"px,"+-d+l):h.top=-d+"px"),i.scrollTop=0|e,m=i.scrollTop},this.maxScrollTop=function(){return x},this.maxScrollLeft=function(){return b},this.disable=function(){for(t=f.firstChild;t;)e=t.nextSibling,i.appendChild(t),t=e;i===f.parentNode&&i.removeChild(f)},this.enable=function(){if((t=i.firstChild)!==f){for(;t;)e=t.nextSibling,f.appendChild(t),t=e;i.appendChild(f),this.calibrate()}},this.calibrate=function(e){var t,r,n=i.clientWidth===a;m=i.scrollTop,g=i.scrollLeft,n&&i.clientHeight===s&&f.offsetHeight===u&&v===i.scrollWidth&&y===i.scrollHeight&&!e||((d||p)&&(t=this.left(),r=this.top(),this.left(-i.scrollLeft),this.top(-i.scrollTop)),n&&!e||(h.display="block",h.width="auto",h.paddingRight="0px",(_=Math.max(0,i.scrollWidth-i.clientWidth))&&(_+=tt(i,"paddingLeft")+(G?tt(i,"paddingRight"):0))),h.display="inline-block",h.position="relative",h.overflow="visible",h.verticalAlign="top",h.width="100%",h.paddingRight=_+"px",G&&(h.paddingBottom=tt(i,"paddingBottom",!0)),Le&&(h.zoom="1"),a=i.clientWidth,s=i.clientHeight,v=i.scrollWidth,y=i.scrollHeight,b=i.scrollWidth-a,x=i.scrollHeight-s,u=f.offsetHeight,h.display="block",(t||r)&&(this.left(t),this.top(r)))},this.content=f,this.element=i,this._suspendTransforms=!1,this.enable()},gt=function(d,f){r.call(this,d),d=$e(d),Te||(Te=Ce.com.greensock.plugins.ThrowPropsPlugin),this.vars=f=Ye(f||{}),this.target=d,this.x=this.y=this.rotation=0,this.dragResistance=parseFloat(f.dragResistance)||0,this.edgeResistance=isNaN(f.edgeResistance)?1:parseFloat(f.edgeResistance)||0,this.lockAxis=f.lockAxis,this.autoScroll=f.autoScroll||0,this.lockedAxis=null,this.allowEventDefault=!!f.allowEventDefault;var h,p,m,g,l,v,y,_,b,x,w,T,i,o,S,M,P,E,e,C,k,A,O,R,I,D,L,N,j,F,B,c,t=(f.type||(Le?"top,left":"x,y")).toLowerCase(),z=-1!==t.indexOf("x")||-1!==t.indexOf("y"),U=-1!==t.indexOf("rotation"),X=U?"rotation":z?"x":"left",q=z?"y":"top",H=-1!==t.indexOf("x")||-1!==t.indexOf("left")||"scroll"===t,Y=-1!==t.indexOf("y")||-1!==t.indexOf("top")||"scroll"===t,G=f.minimumMovement||2,W=this,V=function(e){if("string"==typeof e&&(e=be.selector(e)),!e||e.nodeType)return[e];var t,r=[],n=e.length;for(t=0;t!==n;r.push(e[t++]));return r}(f.trigger||f.handle||d),n={},K=0,J=!1,Z=f.autoScrollMarginTop||40,Q=f.autoScrollMarginRight||40,$=f.autoScrollMarginBottom||40,ee=f.autoScrollMarginLeft||40,te=f.clickableTest||dt,re=0,a=function(e){if(!(W.isPressed&&e.which<2))return e.preventDefault(),e.stopPropagation(),!1;W.endDrag()},ne=function(e){if(W.autoScroll&&W.isDragging&&(J||E)){var t,r,n,i,o,a,s,u,c=d,l=15*W.autoScroll;for(J=!1,He.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=Ae.scrollTop?Ae.scrollTop:ke.body.scrollTop,He.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=Ae.scrollLeft?Ae.scrollLeft:ke.body.scrollLeft,i=W.pointerX-He.scrollLeft,o=W.pointerY-He.scrollTop;c&&!r;)t=(r=Je(c.parentNode))?He:c.parentNode,n=r?{bottom:Math.max(Ae.clientHeight,window.innerHeight||0),right:Math.max(Ae.clientWidth,window.innerWidth||0),left:0,top:0}:t.getBoundingClientRect(),a=s=0,Y&&((u=t._gsMaxScrollY-t.scrollTop)<0?s=u:o>n.bottom-$&&u?(J=!0,s=Math.min(u,l*(1-Math.max(0,n.bottom-o)/$)|0)):o<n.top+Z&&t.scrollTop&&(J=!0,s=-Math.min(t.scrollTop,l*(1-Math.max(0,o-n.top)/Z)|0)),s&&(t.scrollTop+=s)),H&&((u=t._gsMaxScrollX-t.scrollLeft)<0?a=u:i>n.right-Q&&u?(J=!0,a=Math.min(u,l*(1-Math.max(0,n.right-i)/Q)|0)):i<n.left+ee&&t.scrollLeft&&(J=!0,a=-Math.min(t.scrollLeft,l*(1-Math.max(0,i-n.left)/ee)|0)),a&&(t.scrollLeft+=a)),r&&(a||s)&&(window.scrollTo(t.scrollLeft,t.scrollTop),me(W.pointerX+a,W.pointerY+s)),c=t}if(E){var f=W.x,h=W.y;f<1e-6&&-1e-6<f&&(f=0),h<1e-6&&-1e-6<h&&(h=0),U?(W.deltaX=f-L.data.rotation,L.data.rotation=W.rotation=f,L.setRatio(1)):p?(Y&&(W.deltaY=h-p.top(),p.top(h)),H&&(W.deltaX=f-p.left(),p.left(f))):z?(Y&&(W.deltaY=h-L.data.y,L.data.y=h),H&&(W.deltaX=f-L.data.x,L.data.x=f),L.setRatio(1)):(Y&&(W.deltaY=h-parseFloat(d.style.top||0),d.style.top=h+"px"),H&&(W.deltaY=f-parseFloat(d.style.left||0),d.style.left=f+"px")),!_||e||F||(F=!0,rt(W,"drag","onDrag"),F=!1)}E=!1},s=function(e,t){var r,n=W.x,i=W.y;d._gsTransform||!z&&!U||be.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),z?(W.y=d._gsTransform.y,W.x=d._gsTransform.x):U?W.x=W.rotation=d._gsTransform.rotation:p?(W.y=p.top(),W.x=p.left()):(W.y=parseInt(d.style.top,10)||0,W.x=parseInt(d.style.left,10)||0),(C||k||A)&&!t&&(W.isDragging||W.isThrowing)&&(A&&(qe.x=W.x,qe.y=W.y,(r=A(qe)).x!==W.x&&(W.x=r.x,E=!0),r.y!==W.y&&(W.y=r.y,E=!0)),C&&(r=C(W.x))!==W.x&&(W.x=r,U&&(W.rotation=r),E=!0),k&&((r=k(W.y))!==W.y&&(W.y=r),E=!0)),E&&ne(!0),e||(W.deltaX=W.x-n,W.deltaY=W.y-i,rt(W,"throwupdate","onThrowUpdate"))},u=function(){var e,t,r,n;y=!1,p?(p.calibrate(),W.minX=x=-p.maxScrollLeft(),W.minY=T=-p.maxScrollTop(),W.maxX=b=W.maxY=w=0,y=!0):f.bounds&&(e=nt(f.bounds,d.parentNode),U?(W.minX=x=e.left,W.maxX=b=e.left+e.width,W.minY=T=W.maxY=w=0):void 0!==f.bounds.maxX||void 0!==f.bounds.maxY?(e=f.bounds,W.minX=x=e.minX,W.minY=T=e.minY,W.maxX=b=e.maxX,W.maxY=w=e.maxY):(t=nt(d,d.parentNode),W.minX=x=tt(d,X)+e.left-t.left,W.minY=T=tt(d,q)+e.top-t.top,W.maxX=b=x+(e.width-t.width),W.maxY=w=T+(e.height-t.height)),b<x&&(W.minX=b,W.maxX=b=x,x=W.minX),w<T&&(W.minY=w,W.maxY=w=T,T=W.minY),U&&(W.minRotation=x,W.maxRotation=b),y=!0),f.liveSnap&&(n=(r=!0===f.liveSnap?f.snap||{}:f.liveSnap)instanceof Array||"function"==typeof r,U?(C=fe(n?r:r.rotation,x,b,1),k=null):r.points?A=he(n?r:r.points,x,b,T,w,r.radius,p?-1:1):(H&&(C=fe(n?r:r.x||r.left||r.scrollLeft,x,b,p?-1:1)),Y&&(k=fe(n?r:r.y||r.top||r.scrollTop,T,w,p?-1:1))))},ie=function(){W.isThrowing=!1,rt(W,"throwcomplete","onThrowComplete")},oe=function(){W.isThrowing=!1},ae=function(e,t){var r,n,i,o;e&&Te?(!0===e&&(n=(r=f.snap||f.liveSnap||{})instanceof Array||"function"==typeof r,e={resistance:(f.throwResistance||f.resistance||1e3)/(U?10:1)},U?e.rotation=ht(W,n?r:r.rotation,b,x,1,t):(H&&(e[X]=ht(W,n?r:r.points||r.x||r.left||r.scrollLeft,b,x,p?-1:1,t||"x"===W.lockedAxis)),Y&&(e[q]=ht(W,n?r:r.points||r.y||r.top||r.scrollTop,w,T,p?-1:1,t||"y"===W.lockedAxis)),(r.points||r instanceof Array&&"object"==typeof r[0])&&(e.linkedProps=X+","+q,e.radius=r.radius))),W.isThrowing=!0,o=isNaN(f.overshootTolerance)?1===f.edgeResistance?0:1-W.edgeResistance+.2:f.overshootTolerance,W.tween=i=Te.to(p||d,{throwProps:e,data:"_draggable",ease:f.ease||Ce.Power3.easeOut,onComplete:ie,onOverwrite:oe,onUpdate:f.fastMode?rt:s,onUpdateParams:f.fastMode?[W,"onthrowupdate","onThrowUpdate"]:r&&r.radius?[!1,!0]:Oe},Math.max(f.minDuration||0,f.maxDuration||0)||2,isNaN(f.minDuration)?0===o||"object"==typeof e&&1e3<e.resistance?0:.5:f.minDuration,o),f.fastMode||(p&&(p._suspendTransforms=!0),i.render(i.duration(),!0,!0),s(!0,!0),W.endX=W.x,W.endY=W.y,U&&(W.endRotation=W.x),i.play(0),s(!0,!0),p&&(p._suspendTransforms=!1))):y&&W.applyBounds()},se=function(e){var t,r,n,i,o,a,s,u,c,l=I||[1,0,0,1,0,0];I=at(d.parentNode,!0),e&&W.isPressed&&l.join(",")!==I.join(",")&&(t=l[0],r=l[1],n=l[2],i=l[3],o=l[4],a=l[5],c=m*(-r/(s=t*i-r*n))+g*(t/s)+-(t*a-r*o)/s,g=(u=m*(i/s)+g*(-n/s)+(n*a-i*o)/s)*I[1]+c*I[3]+I[5],m=u*I[0]+c*I[2]+I[4]),I[1]||I[2]||1!=I[0]||1!=I[3]||0!=I[4]||0!=I[5]||(I=null)},ue=function(){var e=1-W.edgeResistance;se(!1),I&&(m=W.pointerX*I[0]+W.pointerY*I[2]+I[4],g=W.pointerX*I[1]+W.pointerY*I[3]+I[5]),E&&(me(W.pointerX,W.pointerY),ne(!0)),p?(u(),v=p.top(),l=p.left()):(ce()?(s(!0,!0),u()):W.applyBounds(),U?(P=W.rotationOrigin=function(e,t,r,n){e=$e(e);var i=at(e,!1),o=t.x,a=t.y;return r&&(ot(e,t),o-=t.x,a-=t.y),(n=!0===n?t:n||{}).x=o*i[0]+a*i[2]+i[4],n.y=o*i[1]+a*i[3]+i[5],n}(d,{x:0,y:0}),s(!0,!0),l=W.x,v=W.y=Math.atan2(P.y-W.pointerY,W.pointerX-P.x)*Re):(d.parentNode&&d.parentNode.scrollTop||0,d.parentNode&&d.parentNode.scrollLeft||0,v=tt(d,q),l=tt(d,X))),y&&e&&(b<l?l=b+(l-b)/e:l<x&&(l=x-(x-l)/e),U||(w<v?v=w+(v-w)/e:v<T&&(v=T-(T-v)/e))),W.startX=l,W.startY=v},ce=function(){return W.tween&&W.tween.isActive()},le=function(){!Ne.parentNode||ce()||W.isDragging||Ne.parentNode.removeChild(Ne)},fe=function(a,s,u,r){return null==s&&(s=-Ie),null==u&&(u=Ie),"function"==typeof a?function(e){var t=W.isPressed?1-W.edgeResistance:1;return a.call(W,u<e?u+(e-u)*t:e<s?s+(e-s)*t:e)*r}:a instanceof Array?function(e){for(var t,r,n=a.length,i=0,o=Ie;-1<--n;)(r=(t=a[n])-e)<0&&(r=-r),r<o&&s<=t&&t<=u&&(i=n,o=r);return a[i]}:isNaN(a)?function(e){return e}:function(){return a*r}},he=function(u,s,c,l,f,h,d){return h=h&&h<Ie?h*h:Ie,"function"==typeof u?function(e){var t,r,n,i=W.isPressed?1-W.edgeResistance:1,o=e.x,a=e.y;return e.x=o=c<o?c+(o-c)*i:o<s?s+(o-s)*i:o,e.y=a=f<a?f+(a-f)*i:a<l?l+(a-l)*i:a,(t=u.call(W,e))!==e&&(e.x=t.x,e.y=t.y),1!==d&&(e.x*=d,e.y*=d),h<Ie&&(r=e.x-o,n=e.y-a,h<r*r+n*n&&(e.x=o,e.y=a)),e}:u instanceof Array?function(e){for(var t,r,n,i,o=u.length,a=0,s=Ie;-1<--o;)(i=(t=(n=u[o]).x-e.x)*t+(r=n.y-e.y)*r)<s&&(a=o,s=i);return s<=h?u[a]:e}:function(e){return e}},de=function(e,t){var r;if(h&&!W.isPressed&&e&&("mousedown"!==e.type&&"pointerdown"!==e.type||t||!(De()-re<30)||!ut[W.pointerEvent.type])){if(D=ce(),W.pointerEvent=e,ut[e.type]?(R=-1!==e.type.indexOf("touch")?e.currentTarget||e.target:ke,ct(R,"touchend",ge),ct(R,"touchmove",pe),ct(R,"touchcancel",ge),ct(ke,"touchstart",ft)):(R=null,ct(ke,"mousemove",pe)),j=null,ct(ke,"mouseup",ge),e&&e.target&&ct(e.target,"mouseup",ge),O=te.call(W,e.target)&&!1===f.dragClickables&&!t)return ct(e.target,"change",ge),rt(W,"pressInit","onPressInit"),rt(W,"press","onPress"),void pt(V,!0);if(N=!(!R||H==Y||!1===W.vars.allowNativeTouchScrolling||W.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which))&&(H?"y":"x"),Le?e=Qe(e,!0):N||W.allowEventDefault||(e.preventDefault(),e.preventManipulation&&e.preventManipulation()),e.changedTouches?(e=S=e.changedTouches[0],M=e.identifier):e.pointerId?M=e.pointerId:S=M=null,ze++,function(e){je.push(e),1===je.length&&be.ticker.addEventListener("tick",Ge,this,!1,1)}(ne),g=W.pointerY=e.pageY,m=W.pointerX=e.pageX,rt(W,"pressInit","onPressInit"),(N||W.autoScroll)&&Ze(d.parentNode),!d.parentNode||!W.autoScroll||p||U||!d.parentNode._gsMaxScrollX||Ne.parentNode||d.getBBox||(Ne.style.width=d.parentNode.scrollWidth+"px",d.parentNode.appendChild(Ne)),ue(),W.tween&&W.tween.kill(),W.isThrowing=!1,be.killTweensOf(p||d,!0,n),p&&be.killTweensOf(d,!0,{scrollTo:1}),W.tween=W.lockedAxis=null,(f.zIndexBoost||!U&&!p&&!1!==f.zIndexBoost)&&(d.style.zIndex=gt.zIndex++),W.isPressed=!0,_=!(!f.onDrag&&!W._listeners.drag),!U&&(!1!==f.cursor||f.activeCursor))for(r=V.length;-1<--r;)et(V[r],"cursor",f.activeCursor||f.cursor||"move");rt(W,"press","onPress")}},pe=function(e){var t,r,n,i,o,a,s=e;if(h&&!we&&W.isPressed&&e){if(t=(W.pointerEvent=e).changedTouches){if((e=t[0])!==S&&e.identifier!==M){for(i=t.length;-1<--i&&(e=t[i]).identifier!==M;);if(i<0)return}}else if(e.pointerId&&M&&e.pointerId!==M)return;if(Le)e=Qe(e,!0);else{if(R&&N&&!j&&(r=e.pageX,n=e.pageY,I&&(i=r*I[0]+n*I[2]+I[4],n=r*I[1]+n*I[3]+I[5],r=i),((o=Math.abs(r-m))!==(a=Math.abs(n-g))&&(G<o||G<a)||Ue&&N===j)&&(j=a<o&&H?"x":"y",!1!==W.vars.lockAxisOnTouchScroll&&(W.lockedAxis="x"===j?"y":"x","function"==typeof W.vars.onLockAxis&&W.vars.onLockAxis.call(W,s)),Ue&&N===j)))return void ge(s);W.allowEventDefault||N&&(!j||N===j)||!1===s.cancelable||(s.preventDefault(),s.preventManipulation&&s.preventManipulation())}W.autoScroll&&(J=!0),me(e.pageX,e.pageY)}},me=function(e,t){var r,n,i,o,a,s,u=1-W.dragResistance,c=1-W.edgeResistance;W.pointerX=e,W.pointerY=t,U?(o=Math.atan2(P.y-t,e-P.x)*Re,180<(a=W.y-o)?(v-=360,W.y=o):a<-180&&(v+=360,W.y=o),i=W.x!==l||Math.abs(v-o)>G?(W.y=o,l+(v-o)*u):l):(I&&(s=e*I[0]+t*I[2]+I[4],t=e*I[1]+t*I[3]+I[5],e=s),(n=t-g)<G&&-G<n&&(n=0),(r=e-m)<G&&-G<r&&(r=0),(W.lockAxis||W.lockedAxis)&&(r||n)&&((s=W.lockedAxis)||(W.lockedAxis=s=H&&Math.abs(r)>Math.abs(n)?"y":Y?"x":null,s&&"function"==typeof W.vars.onLockAxis&&W.vars.onLockAxis.call(W,W.pointerEvent)),"y"===s?n=0:"x"===s&&(r=0)),i=l+r*u,o=v+n*u),(C||k||A)&&(W.x!==i||W.y!==o&&!U)?(A&&(qe.x=i,qe.y=o,i=(s=A(qe)).x,o=s.y),C&&(i=C(i)),k&&(o=k(o))):y&&(b<i?i=b+(i-b)*c:i<x&&(i=x+(i-x)*c),U||(w<o?o=w+(o-w)*c:o<T&&(o=T+(o-T)*c))),U||I||(i=Math.round(i),o=Math.round(o)),(W.x!==i||W.y!==o&&!U)&&(U?(W.endRotation=W.x=W.endX=i,E=!0):(Y&&(W.y=W.endY=o,E=!0),H&&(W.x=W.endX=i,E=!0)),!W.isDragging&&W.isPressed&&(W.isDragging=!0,rt(W,"dragstart","onDragStart")))},ge=function(e,t){if(h&&W.isPressed&&(!e||null==M||t||!(e.pointerId&&e.pointerId!==M||e.changedTouches&&!function(e,t){for(var r=e.length;-1<--r;)if(e[r].identifier===t)return!0;return!1}(e.changedTouches,M)))){W.isPressed=!1;var r,n,i,o,a,s=e,u=W.isDragging,c=W.vars.allowContextMenu&&e&&(e.ctrlKey||2<e.which),l=be.delayedCall(.001,le);if(R?(lt(R,"touchend",ge),lt(R,"touchmove",pe),lt(R,"touchcancel",ge),lt(ke,"touchstart",ft)):lt(ke,"mousemove",pe),lt(ke,"mouseup",ge),e&&e.target&&lt(e.target,"mouseup",ge),E=!1,O&&!c)return e&&(lt(e.target,"change",ge),W.pointerEvent=s),pt(V,!1),rt(W,"release","onRelease"),rt(W,"click","onClick"),void(O=!1);if(We(ne),!U)for(n=V.length;-1<--n;)et(V[n],"cursor",f.cursor||(!1!==f.cursor?"move":null));if(u&&(K=Xe=De(),W.isDragging=!1),ze--,e){if(Le&&(e=Qe(e,!1)),(r=e.changedTouches)&&(e=r[0])!==S&&e.identifier!==M){for(n=r.length;-1<--n&&(e=r[n]).identifier!==M;);if(n<0)return}W.pointerEvent=s,W.pointerX=e.pageX,W.pointerY=e.pageY}return c&&s?(s.preventDefault(),s.preventManipulation&&s.preventManipulation(),rt(W,"release","onRelease")):s&&!u?(D&&(f.snap||f.bounds)&&ae(f.throwProps),rt(W,"release","onRelease"),Ue&&"touchmove"===s.type||-1!==s.type.indexOf("cancel")||(rt(W,"click","onClick"),De()-re<300&&rt(W,"doubleclick","onDoubleClick"),o=s.target||s.srcElement||d,re=De(),a=function(){re!==B&&W.enabled()&&!W.isPressed&&(o.click?o.click():ke.createEvent&&((i=ke.createEvent("MouseEvents")).initMouseEvent("click",!0,!0,window,1,W.pointerEvent.screenX,W.pointerEvent.screenY,W.pointerX,W.pointerY,!1,!1,!1,!1,0,null),o.dispatchEvent(i)))},Ue||s.defaultPrevented||be.delayedCall(1e-5,a))):(ae(f.throwProps),Le||W.allowEventDefault||!s||!1===f.dragClickables&&te.call(W,s.target)||!u||N&&(!j||N!==j)||!1===s.cancelable||(s.preventDefault(),s.preventManipulation&&s.preventManipulation()),rt(W,"release","onRelease")),ce()&&l.duration(W.tween.duration()),u&&rt(W,"dragend","onDragEnd"),!0}},ve=function(e){if(e&&W.isDragging&&!p){var t=e.target||e.srcElement||d.parentNode,r=t.scrollLeft-t._gsScrollX,n=t.scrollTop-t._gsScrollY;(r||n)&&(I?(m-=r*I[0]+n*I[2],g-=n*I[3]+r*I[1]):(m-=r,g-=n),t._gsScrollX+=r,t._gsScrollY+=n,me(W.pointerX,W.pointerY))}},ye=function(e){var t=De(),r=t-re<40,n=t-K<40,i=r&&B===re,o=!!e.preventDefault,a=W.pointerEvent&&W.pointerEvent.defaultPrevented,s=r&&c===re,u=e.isTrusted||null==e.isTrusted&&r&&i;if(o&&(i||n&&!1!==W.vars.suppressClickOnDrag)&&e.stopImmediatePropagation(),!(!r||W.pointerEvent&&W.pointerEvent.defaultPrevented||i&&u===s))return u&&i&&(c=re),void(B=re);(W.isPressed||n||r)&&(o?u&&e.detail&&r&&!a||(e.preventDefault(),e.preventManipulation&&e.preventManipulation()):e.returnValue=!1)},_e=function(e){return I?{x:e.x*I[0]+e.y*I[2]+I[4],y:e.x*I[1]+e.y*I[3]+I[5]}:{x:e.x,y:e.y}};(e=gt.get(this.target))&&e.kill(),this.startDrag=function(e,t){var r,n,i,o;de(e||W.pointerEvent,!0),t&&!W.hitTest(e||W.pointerEvent)&&(r=vt(e||W.pointerEvent),n=vt(d),i=_e({x:r.left+r.width/2,y:r.top+r.height/2}),o=_e({x:n.left+n.width/2,y:n.top+n.height/2}),m-=i.x-o.x,g-=i.y-o.y),W.isDragging||(W.isDragging=!0,rt(W,"dragstart","onDragStart"))},this.drag=pe,this.endDrag=function(e){ge(e||W.pointerEvent,!0)},this.timeSinceDrag=function(){return W.isDragging?0:(De()-K)/1e3},this.timeSinceClick=function(){return(De()-re)/1e3},this.hitTest=function(e,t){return gt.hitTest(W.target,e,t)},this.getDirection=function(e,t){var r,n,i,o,a,s,u="velocity"===e&&Te?e:"object"!=typeof e||U?"start":"element";return"element"===u&&(a=vt(W.target),s=vt(e)),r="start"===u?W.x-l:"velocity"===u?Te.getVelocity(this.target,X):a.left+a.width/2-(s.left+s.width/2),U?r<0?"counter-clockwise":"clockwise":(t=t||2,n="start"===u?W.y-v:"velocity"===u?Te.getVelocity(this.target,q):a.top+a.height/2-(s.top+s.height/2),o=(i=Math.abs(r/n))<1/t?"":r<0?"left":"right",i<t&&(""!==o&&(o+="-"),o+=n<0?"up":"down"),o)},this.applyBounds=function(e){var t,r,n,i,o,a;if(e&&f.bounds!==e)return f.bounds=e,W.update(!0);if(s(!0),u(),y){if(t=W.x,r=W.y,b<t?t=b:t<x&&(t=x),w<r?r=w:r<T&&(r=T),(W.x!==t||W.y!==r)&&(n=!0,W.x=W.endX=t,U?W.endRotation=t:W.y=W.endY=r,ne(E=!0),W.autoScroll&&!W.isDragging))for(Ze(d.parentNode),i=d,He.scrollTop=null!=window.pageYOffset?window.pageYOffset:null!=Ae.scrollTop?Ae.scrollTop:ke.body.scrollTop,He.scrollLeft=null!=window.pageXOffset?window.pageXOffset:null!=Ae.scrollLeft?Ae.scrollLeft:ke.body.scrollLeft;i&&!a;)o=(a=Je(i.parentNode))?He:i.parentNode,Y&&o.scrollTop>o._gsMaxScrollY&&(o.scrollTop=o._gsMaxScrollY),H&&o.scrollLeft>o._gsMaxScrollX&&(o.scrollLeft=o._gsMaxScrollX),i=o;W.isThrowing&&(n||W.endX>b||W.endX<x||W.endY>w||W.endY<T)&&ae(f.throwProps,n)}return W},this.update=function(e,t,r){var n=W.x,i=W.y;return se(!t),e?W.applyBounds():(E&&r&&ne(!0),s(!0)),t&&(me(W.pointerX,W.pointerY),E&&ne(!0)),W.isPressed&&!t&&(H&&.01<Math.abs(n-W.x)||Y&&.01<Math.abs(i-W.y)&&!U)&&ue(),W.autoScroll&&(Ze(d.parentNode),J=W.isDragging,ne(!0)),W.autoScroll&&(Ke(d,ve),Ve(d,ve)),W},this.enable=function(e){var t,r,n;if("soft"!==e){for(r=V.length;-1<--r;)n=V[r],ct(n,"mousedown",de),ct(n,"touchstart",de),ct(n,"click",ye,!0),U||!1===f.cursor||et(n,"cursor",f.cursor||"move"),et(n,"touchCallout","none"),et(n,"touchAction",H==Y?"none":H?"pan-y":"pan-x"),it(n)&&et(n.ownerSVGElement||n,"touchAction",H==Y?"none":H?"pan-y":"pan-x"),this.vars.allowContextMenu||ct(n,"contextmenu",a);pt(V,!1)}return Ve(d,ve),h=!0,Te&&"soft"!==e&&Te.track(p||d,z?"x,y":U?"rotation":"top,left"),p&&p.enable(),d._gsDragID=t="d"+Be++,Fe[t]=this,p&&(p.element._gsDragID=t),be.set(d,{x:"+=0",overwrite:!1,data:"_draggable"}),L={t:d,data:Le?o:d._gsTransform,tween:{},setRatio:Le?function(){be.set(d,i)}:xe._internals.setTransformRatio||xe._internals.set3DTransformRatio},ue(),W.update(!0),W},this.disable=function(e){var t,r,n=W.isDragging;if(!U)for(t=V.length;-1<--t;)et(V[t],"cursor",null);if("soft"!==e){for(t=V.length;-1<--t;)r=V[t],et(r,"touchCallout",null),et(r,"touchAction",null),lt(r,"mousedown",de),lt(r,"touchstart",de),lt(r,"click",ye),lt(r,"contextmenu",a);pt(V,!0),R&&(lt(R,"touchcancel",ge),lt(R,"touchend",ge),lt(R,"touchmove",pe)),lt(ke,"mouseup",ge),lt(ke,"mousemove",pe)}return Ke(d,ve),h=!1,Te&&"soft"!==e&&Te.untrack(p||d,z?"x,y":U?"rotation":"top,left"),p&&p.disable(),We(ne),W.isDragging=W.isPressed=O=!1,n&&rt(W,"dragend","onDragEnd"),W},this.enabled=function(e,t){return arguments.length?e?W.enable(t):W.disable(t):h},this.kill=function(){return W.isThrowing=!1,be.killTweensOf(p||d,!0,n),W.disable(),be.set(V,{clearProps:"userSelect"}),delete Fe[d._gsDragID],W},-1!==t.indexOf("scroll")&&(p=this.scrollProxy=new mt(d,function(e,t){var r;for(r in t)void 0===e[r]&&(e[r]=t[r]);return e}({onKill:function(){W.isPressed&&ge(null)}},f)),d.style.overflowY=Y&&!st?"auto":"hidden",d.style.overflowX=H&&!st?"auto":"hidden",d=p.content),!1!==f.force3D&&be.set(d,{force3D:!0}),U?n.rotation=1:(H&&(n[X]=1),Y&&(n[q]=1)),U?(o=(i=Ee).css,i.overwrite=!1):z&&(o=(i=H&&Y?Se:H?Me:Pe).css,i.overwrite=!1),this.enable()},W=gt.prototype=new r;W.constructor=gt,W.pointerX=W.pointerY=W.startX=W.startY=W.deltaX=W.deltaY=0,W.isDragging=W.isPressed=!1,gt.version="0.17.1",gt.zIndex=1e3,ct(ke,"touchcancel",function(){}),ct(ke,"contextmenu",function(e){var t;for(t in Fe)Fe[t].isPressed&&Fe[t].endDrag()}),gt.create=function(e,t){"string"==typeof e&&(e=be.selector(e));for(var r=e&&0!==e.length?H(e)?function(e){var t,r,n,i=[],o=e.length;for(t=0;t<o;t++)if(r=e[t],H(r))for(n=r.length,n=0;n<r.length;n++)i.push(r[n]);else r&&0!==r.length&&i.push(r);return i}(e):[e]:[],n=r.length;-1<--n;)r[n]=new gt(r[n],t);return r},gt.get=function(e){return Fe[($e(e)||{})._gsDragID]},gt.timeSinceDrag=function(){return(De()-Xe)/1e3};var V={},vt=function(e,t){if(e===window)return V.left=V.top=0,V.width=V.right=Ae.clientWidth||e.innerWidth||ke.body.clientWidth||0,V.height=V.bottom=(e.innerHeight||0)-20<Ae.clientHeight?Ae.clientHeight:e.innerHeight||ke.body.clientHeight||0,V;var r=e.pageX!==t?{left:e.pageX-C(),top:e.pageY-E(),right:e.pageX-C()+1,bottom:e.pageY-E()+1}:e.nodeType||e.left===t||e.top===t?Le?function(e){var t,r,n=0,i=0;for(t=(e=$e(e)).offsetWidth,r=e.offsetHeight;e;)n+=e.offsetTop,i+=e.offsetLeft,e=e.offsetParent;return{top:n,left:i,width:t,height:r}}(e):$e(e).getBoundingClientRect():e;return r.right===t&&r.width!==t?(r.right=r.left+r.width,r.bottom=r.top+r.height):r.width===t&&(r={width:r.right-r.left,height:r.bottom-r.top,right:r.right,left:r.left,bottom:r.bottom,top:r.top}),r};return gt.hitTest=function(e,t,r){if(e===t)return!1;var n,i,o,a=vt(e),s=vt(t),u=s.left>a.right||s.right<a.left||s.top>a.bottom||s.bottom<a.top;return u||!r?!u:(o=-1!==(r+"").indexOf("%"),r=parseFloat(r)||0,(n={left:Math.max(a.left,s.left),top:Math.max(a.top,s.top)}).width=Math.min(a.right,s.right)-n.left,n.height=Math.min(a.bottom,s.bottom)-n.top,!(n.width<0||n.height<0)&&(o?(r*=.01,(i=n.width*n.height)>=a.width*a.height*r||i>=s.width*s.height*r):n.width>r&&n.height>r))},Ne.style.cssText="visibility:hidden;height:1px;top:-1px;pointer-events:none;position:relative;clear:both;",gt},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).Draggable};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),require("../plugins/CSSPlugin.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite","CSSPlugin"],t)}(),function(){"use strict";var f="undefined"==typeof WebKitCSSMatrix?new DOMMatrix:new WebKitCSSMatrix;function h(e,t,r){this.x=e,this.y=t,this.z=r}function d(t){try{return"undefined"==typeof WebKitCSSMatrix?new DOMMatrix(t):new WebKitCSSMatrix(t)}catch(e){return console.warn(t),console.warn(e.toString()),f}}function n(e){for(var t=f,r=e;null!=r&&r!==r.ownerDocument.documentElement;){var n=window.getComputedStyle(r,void 0).transform||"none";t=("none"===n?f:d(n)).multiply(t),r=r.parentNode}for(var i=e.offsetWidth,o=e.offsetHeight,a=4,s=1/0,u=1/0;0<=--a;){var c=new h(0===a||1===a?0:i,0===a||3===a?0:o,0).transformBy(t);c.x<s&&(s=c.x),c.y<u&&(u=c.y)}var l=e.getBoundingClientRect();return t=f.translate(window.pageXOffset+l.left-s,window.pageYOffset+l.top-u,0).multiply(t)}h.prototype.transformBy=function(e){var t=e.multiply(f.translate(this.x,this.y,this.z));return new h(t.m41,t.m42,t.m43)},window.convertPointFromPageToNode=function(e,t,r){return new h(t,r,0).transformBy(n(e).inverse())},window.convertPointFromNodeToPage=function(e,t,r){return new h(t,r,0).transformBy(n(e))}}();