From b164de08a52ae342e80b27b988a73a7f0d1e38d2 Mon Sep 17 00:00:00 2001 From: Sebastian Kupke Date: Fri, 22 Mar 2019 13:48:42 +0100 Subject: [PATCH] Added minified version. --- README.md | 31 +- dist/iwmlib.3rdparty.min.js | 1 + gulpfile.js | 14 + package-lock.json | 3534 ++++++++++++++++++++++++++++++++++- package.json | 9 +- 5 files changed, 3583 insertions(+), 6 deletions(-) create mode 100644 dist/iwmlib.3rdparty.min.js create mode 100644 gulpfile.js diff --git a/README.md b/README.md index 97eba19..e85e54d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,33 @@ # iwmlib +## Install + +Install the following dependencies globally + +`npm i rollup gulp-cli -g` + +and some dependencies locally + +`npm i` + +Be sure that Python 3 is installed on your system (for building the 3rd party library). + ## Build -Be sure that Python 3 is installed (for building the 3rd party library) and that you have installed Rollupjs globally `npm i rollup -g`. +To build the two iwmlib files type + +`npm run build` + +The files will be generated in the dist folder (iwmlib.js and iwmlib.pixi.js). If you want to watch the files for a continuously build type + +`npm run watch` + +To build the 3rd party library type + +`npm run 3rdparty` + +To create the minified version of the 3rd party library type + +`npm run minify` + -To build the two iwmlib files type `npm run build`. The files will be generated in the dist folder (iwmlib.js and iwmlib.pixi.js). If you want to watch the files for a continuously build type `npm run watch`. -To build the 3rd party library type `npm run 3rdparty`. The file will be generated in the dist folder (iwmlib.3rdparty.js). diff --git a/dist/iwmlib.3rdparty.min.js b/dist/iwmlib.3rdparty.min.js new file mode 100644 index 0000000..c894244 --- /dev/null +++ b/dist/iwmlib.3rdparty.min.js @@ -0,0 +1 @@ +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,g=t.concat,u=t.push,i=t.indexOf,r={},o=r.toString,m=r.hasOwnProperty,a=m.toString,l=a.call(Object),v={},_=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},y=function(e){return null!=e&&e===e.window},c={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 c)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!_(e)&&!y(e)&&("array"===r||0===t||"number"==typeof t&&0+~]|"+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,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\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?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){w()},ie=_e(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{R.apply(t=I.call(_.childNodes),_.childNodes),t[_.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,l,c,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:_)!==T&&w(t),t=t||T,S)){if(11!==h&&(u=J.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&&!C[e+" "]&&(!m||!m.test(e))){if(1!==h)f=t,c=e;else if("object"!==t.nodeName.toLowerCase()){for((s=t.getAttribute("id"))?s=s.replace(te,re):t.setAttribute("id",s=M),o=(l=p(e)).length;o--;)l[o]="#"+s+" "+ve(l[o]);c=l.join(","),f=$.test(e)&&ge(t.parentNode)||t}if(c)try{return R.apply(r,f.querySelectorAll(c)),r}catch(e){}finally{s===M&&t.removeAttribute("id")}}}return g(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 le(e,t){for(var r=e.split("|"),n=r.length;n--;)b.attrHandle[r[n]]=t}function ce(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 ge(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:_;return n!==T&&9===n.nodeType&&n.documentElement&&(a=(T=n).documentElement,S=!i(T),_!==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=Z.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(Q,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(Q,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=[],m=[],(d.qsa=Z.test(T.querySelectorAll))&&(ue(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+M+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+M+"+*").length||m.push(".#.+[+~]")}),ue(function(e){e.innerHTML="";var t=T.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(d.matchesSelector=Z.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ue(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",B)}),m=m.length&&new RegExp(m.join("|")),s=s.length&&new RegExp(s.join("|")),t=Z.test(a.compareDocumentPosition),v=t||Z.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},k=t?function(e,t){if(e===t)return l=!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===_&&v(_,e)?-1:t===T||t.ownerDocument===_&&v(_,t)?1:u?D(u,e)-D(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return l=!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 ce(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?ce(a[n],s[n]):a[n]===_?-1:s[n]===_?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&&!C[t+" "]&&(!s||!s.test(t))&&(!m||!m.test(t)))try{var r=c.call(e,t);if(r||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,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(Q,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:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function E(e,r,n){return _(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)[^>]*|#([\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):_(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)),k.test(n[1])&&M.isPlainObject(t))for(n in t)_(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\x20\t\r\n\f]+)/i,ce=/^$|^module$|\/(?:java|ecma)script/i,fe={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_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&&C(e,t)?M.merge([e],r):r}function de(e,t){for(var r=0,n=e.length;rx",v.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue;var _e=S.documentElement,ye=/^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,l,c,f,h,d,p,g,m=K.get(t);if(m)for(r.handler&&(r=(o=r).handler,i=o.selector),i&&M.find.matchesSelector(_e,i),r.guid||(r.guid=M.guid++),(u=m.events)||(u=m.events={}),(a=m.handle)||(a=m.handle=function(e){return void 0!==M&&M.event.triggered!==e.type?M.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(L)||[""]).length;l--;)d=g=(s=xe.exec(e[l])||[])[1],p=(s[2]||"").split(".").sort(),d&&(f=M.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=M.event.special[d]||{},c=M.extend({type:d,origType:g,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,c),c.handler.guid||(c.handler.guid=r.guid)),i?h.splice(h.delegateCount++,0,c):h.push(c),M.event.global[d]=!0)},remove:function(e,t,r,n,i){var o,a,s,u,l,c,f,h,d,p,g,m=K.hasData(e)&&K.get(e);if(m&&(u=m.events)){for(l=(t=(t||"").match(L)||[""]).length;l--;)if(d=g=(s=xe.exec(t[l])||[])[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--;)c=h[o],!i&&g!==c.origType||r&&r.guid!==c.guid||s&&!s.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,f.remove&&f.remove.call(e,c));a&&!h.length&&(f.teardown&&!1!==f.teardown.call(e,p,m.handle)||M.removeEvent(e,d,m.handle),delete u[d])}else for(d in u)M.event.remove(e,d+t[l],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),l=(K.get(this,"events")||{})[s.type]||[],c=M.event.special[s.type]||{};for(u[0]=s,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/\s*$/g;function Ae(e,t){return C(e,"table")&&C(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,l;if(1===t.nodeType){if(K.hasData(e)&&(o=K.access(e),a=K.set(t,o),l=o.events))for(i in delete a.handle,a.events={},l)for(r=0,n=l[i].length;r")},clone:function(e,t,r){var n,i,o,a,s,u,l,c=e.cloneNode(!0),f=M.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||M.isXMLDoc(e)))for(a=he(c),n=0,i=(o=he(e)).length;n").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=_(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&&_(i)&&i(o[0]),o=i=void 0}),"script"}),v.createHTMLDocument=((Xt=S.implementation.createHTMLDocument("").body).innerHTML="
",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=k.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").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,l=M.css(e,"position"),c=M(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=M.css(e,"top"),u=M.css(e,"left"),i=("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(n=c.position()).top,n.left):(a=parseFloat(o)||0,parseFloat(u)||0),_(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):c.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||_e})}}),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(y(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 y(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@~]/g,"\\$&").replace(/\n/g,"A")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCommonAncestor=function(e){var t=(1 /g,">").split(/\s+(?=(?:(?:[^"]*"){2})*[^"]*$)/);if(n.length<2)return h("",e,"",t);var i=[n.pop()];for(;1/g,"> ").trim()};var n,i=r(3),c=(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(m(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,m(document.querySelectorAll(a),o)&&(n=e),"break"}},u=0,l=s.length;u/.test(n)){var c=n.replace(/>/,"");a=""+r+c+i;m(document.querySelectorAll(a),o)&&(n=c)}if(/:nth-child/.test(n)){var f=n.replace(/nth-child/g,"nth-of-type");a=""+r+f+i;m(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;m(document.querySelectorAll(a),o)&&(n=d)}if((h=n&&n.match(/\./g))&&2/.test(s):l=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)(\S)/g,"$1 $2").trim()),t=n.shift(),i=n.length;return t(this).filter(function(e){for(var t=0;t\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;rt[r]}):n.sort()),n}function E(e,t){for(var r,n,i=t[0].toUpperCase()+t.slice(1),o=0;oh(l.y)?l.x:l.y,t.scale=a?function(e,t){return ne(t[0],t[1],Z)/ne(e[0],e[1],Z)}(a.pointers,n):1,t.rotation=a?function(e,t){return ie(t[1],t[0],Z)+ie(e[1],e[0],Z)}(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&&(jh(c.y)?c.x:c.y,o=re(u,l),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 c=e.element;T(t.srcEvent.target,c)&&(c=t.srcEvent.target);t.target=c}(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function Q(e){for(var t=[],r=0;r=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}J.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,J.apply(this,arguments)}v(ue,J,{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 le={pointerdown:F,pointermove:2,pointerup:B,pointercancel:z,pointerout:z},ce={2:L,3:"pen",4:N,5:"kinect"},fe="pointerdown",he="pointermove pointerup pointercancel";function de(){this.evEl=fe,this.evWin=he,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}o.MSPointerEvent&&!o.PointerEvent&&(fe="MSPointerDown",he="MSPointerMove MSPointerUp MSPointerCancel"),v(de,J,{handler:function(e){var t=this.store,r=!1,n=e.type.toLowerCase().replace("ms",""),i=le[n],o=ce[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 ge(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,J.apply(this,arguments)}v(ge,J,{handler:function(e){var t=pe[e.type];if(t===F&&(this.started=!0),this.started){var r=function(e,t){var r=C(e.touches),n=C(e.changedTouches);t&(B|z)&&(r=k(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 me={touchstart:F,touchmove:2,touchend:B,touchcancel:z},ve="touchstart touchmove touchend touchcancel";function _e(){this.evTarget=ve,this.targetIds={},J.apply(this,arguments)}v(_e,J,{handler:function(e){var t=me[e.type],r=function(e,t){var r=C(e.touches),n=this.targetIds;if(t&(2|F)&&1===r.length)return n[r[0].identifier]=!0,[r,r];var i,o,a=C(e.changedTouches),s=[],u=this.target;if(o=r.filter(function(e){return T(e.target,u)}),t===F)for(i=0;it.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.distancet.time;if(this._input=e,!n||!r||e.eventType&(B|z)&&!i)this.reset();else if(e.eventType&F)this.reset(),this._timer=l(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>>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>>1;0>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=lt.exec(e))?yt(t[1],t[2]/100,t[3]/100,1):(t=ct.exec(e))?yt(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 gt(e){return e instanceof $e||(e=ht(e)),e?new vt((e=e.rgb()).r,e.g,e.b,e.opacity):new vt}function mt(e,t,r,n){return 1===arguments.length?gt(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 _t(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function yt(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 $e||(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*(ro&&(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 or._time&&(n=r._time),(e=r)._next):(t=r._next,r._next=null,e?e._next=t:qr=t);Hr=e,un(n)}(),Zr=0}}function sn(){var e=$r.now(),t=e-Kr;Vrhn)throw new Error("too late; already scheduled");return r}function xn(e,t){var r=wn(e,t);if(r.state>gn)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.stateMath.abs(e[1]-C[1])?d=!0:h=!0),C=e,f=!0,pi(),I()}function I(){var e;switch(l=C[0]-P[0],c=C[1]-P[1],m){case mi:case gi:v&&(l=Math.max(x-t,Math.min(T-o,l)),r=t+l,a=o+l),_&&(c=Math.max(w-n,Math.min(S-s,c)),i=n+c,u=s+c);break;case vi:v<0?(l=Math.max(x-t,Math.min(T-t,l)),r=t+l,a=o):0=t,ho[n<<1].forEach(a);for(;++u=t,ho[r|n<<1].forEach(a);ho[n<<0].forEach(a);for(;++l=t,i=e[l*h]>=t,ho[n<<1|i<<2].forEach(a);++u=t,o=i,i=e[l*h+u+1]>=t,ho[r|n<<1|i<<2|o<<3].forEach(a);ho[n|i<<3].forEach(a)}u=-1,i=e[l*h]>=t,ho[i<<2].forEach(a);for(;++u=t,ho[i<<2|o<<3].forEach(a);function a(e){var t,r,n=[e[0][0]+u,e[0][1]+l],i=[e[1][0]+u,e[1][1]+l],o=p(n),a=p(i);(t=f[o])?(r=c[a])?(delete f[t.end],delete c[r.start],t===r?(t.ring.push(i),s(t.ring)):c[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=c[a])?(r=f[o])?(delete c[t.start],delete f[r.end],t===r?(t.ring.push(i),s(t.ring)):c[r.start]=f[t.end]={start:r.start,end:t.end,ring:r.ring.concat(t.ring)}):(delete c[t.start],t.ring.unshift(n),c[t.start=o]=t):c[o]=f[a]={start:o,end:a,ring:[n,i]}}ho[i<<3].forEach(a)}(t,r,function(e){a(e,t,r),0=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=(o=(g+v)/2))?g=o:v=o,(c=r>=(a=(m+_)/2))?m=a:_=a,!(d=(i=d)[f=c<<1|l]))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),(l=t>=(o=(g+v)/2))?g=o:v=o,(c=r>=(a=(m+_)/2))?m=a:_=a,(f=c<<1|l)==(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 la=aa.prototype=sa.prototype;function ca(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 ga(e){return e.y}la.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},la.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)},la.addAll=function(e){var t,r,n,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,l=1/0,c=-1/0,f=-1/0;for(r=0;rh||(o=u.y0)>d||(a=u.x1)=(s=(p+m)/2))?p=s:m=s,(c=a>=(u=(g+v)/2))?g=u:v=u,!(d=(t=d)[f=c<<1|l]))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},la.removeAll=function(e){for(var t=0,r=e.length;t=^]))?([+\-( ])?([$#])?(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-(ya=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=n.length;return o===a?n:at));)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 l=(e=xa(e)).fill,c=e.align,f=e.sign,t=e.symbol,h=e.zero,d=e.width,p=e.comma,g=e.precision,m=e.trim,v=e.type;"n"===v?(p=!0,v="g"):Sa[v]||(null==g&&(g=12),m=!0,v="g"),(h||"0"===l&&"="===c)&&(h=!0,l="0",c="=");var _="$"===t?n[0]:"#"===t&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===t?n[1]:/[%p]/.test(v)?i:"",b=Sa[v],x=/[defgprs%]/.test(v);function r(e){var t,r,n,i=_,o=y;if("c"===v)o=b(e)+o,e="";else{var a=(e=+e)<0;if(e=b(Math.abs(e),g),m&&(e=function(e){e:for(var t,r=e.length,n=1,i=-1;n>1)+i+e+o+u.slice(s);break;default:e=u+i+e+o}return S(e)}return g=null==g?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g)),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(_a(t)/3))),i=Math.pow(10,-n),o=Ca[8+n/3];return function(e){return r(i*e)+o}}}}function Ea(e){return Pa=ka(e),z.format=Pa.format,z.formatPrefix=Pa.formatPrefix,Pa}function Aa(e){return Math.max(0,-_a(Math.abs(e)))}function Oa(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(_a(t)/3)))-_a(Math.abs(e)))}function Ra(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,_a(t)-_a(e))+1}function Ia(){return new Da}function Da(){this.reset()}Ea({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,Za=Math.log,Ja=Math.pow,$a=Math.sin,Qa=Math.sign||function(e){return 0hu(Os,Is)&&(Is=e):hu(e,Is)>hu(Os,Is)&&(Os=e):Os<=Is?(ehu(Os,Is)&&(Is=e):hu(e,Is)>hu(Os,Is)&&(Os=e)}else Bs.push(zs=[Os=e,Is=e]);tja&&(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]:tFa?e+Math.round(-e/Ua)*Ua:e,t]}function Eu(e,t,r){return(e%=Ua)?t||r?Cu(Ou(e),Ru(t,r)):Ou(e):t||r?Ru(t,r):ku}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=$a(e),l=Wa(t),c=$a(t);function r(e,t){var r=Wa(t),n=Wa(e)*r,i=$a(e)*r,o=$a(t),a=o*s+n*u;return[Ga(i*l-a*c,n*s-o*u),ns(a*l+i*c)]}return r.invert=function(e,t){var r=Wa(t),n=Wa(e)*r,i=$a(e)*r,o=$a(t),a=o*l-i*c;return[Ga(i*l+o*c,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=Eu(t[0]*qa,t[1]*qa,2ja?Ya(($a(t)*(o=Wa(n))*$a(r)-$a(n)*(i=Wa(t))*$a(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]ja;function g(e,t){return Wa(e)*Wa(t)>P}function m(e,t,r){var n=[1,0,0],i=Cs(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,l=-P*a/s,c=Cs(n,i),f=Es(n,u);ks(f,Es(i,l));var h=c,d=Ps(f,h),p=Ps(h,h),g=d*d-p*(Ps(f,f)-1);if(!(g<0)){var m=es(g),v=Es(h,(-d-m)/p);if(ks(v,f),v=Ss(v),!r)return v;var _,y=e[0],b=t[0],x=e[1],w=t[1];bja}).map(l)).concat(M(Va(a/p)*p,o,p).filter(function(e){return Ha(e%m)>ja}).map(c))}return _.lines=function(){return e().map(function(e){return{type:"LineString",coordinates:e}})},_.outline=function(){return{type:"Polygon",coordinates:[f(i).concat(h(s).slice(1),f(n).reverse().slice(1),h(u).reverse().slice(1))]}},_.extent=function(e){return arguments.length?_.extentMajor(e).extentMinor(e):_.extentMinor()},_.extentMajor=function(e){return arguments.length?(i=+e[0][0],n=+e[1][0],u=+e[0][1],s=+e[1][1],nja&&0<--i);return[e/(.8707+(o=n*n)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),n]},tf.invert=jc(ns),rf.invert=jc(function(e){return 2*Ya(e)}),nf.invert=function(e,t){return[-t,2*Ya(Ka(e))-Ba]},df.prototype=lf.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;ntv){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 l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,c=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*l+e._x1*e._l23_2a-t*e._l12_2a)/c,a=(a*l+e._y1*e._l23_2a-r*e._l12_2a)/c}e._context.bezierCurveTo(n,i,o,a,e._x2,e._y2)}function h_(e,t){this._context=e,this._alpha=t}h_.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:f_(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 d_=function t(r){function e(e){return r?new h_(e,r):new o_(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function p_(e,t){this._context=e,this._alpha=t}p_.prototype={areaStart:Jv,areaEnd:Jv,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:f_(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 g_=function t(r){function e(e){return r?new p_(e,r):new s_(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function m_(e,t){this._context=e,this._alpha=t}m_.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:f_(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 v_=function t(r){function e(e){return r?new m_(e,r):new l_(e,0)}return e.alpha=function(e){return t(+e)},e}(.5);function __(e){this._context=e}function y_(e){return e<0?-1:1}function b_(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 x_(e,t){var r=e._x1-e._x0;return r?(3*(e._y1-e._y0)/r-t)/2:t}function w_(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 T_(e){this._context=e}function S_(e){this._context=new M_(e)}function M_(e){this._context=e}function P_(e){this._context=e}function C_(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;to&&(o=t,n=r);return n}function D_(e){var r=e.map(L_);return A_(e).sort(function(e,t){return r[e]-r[t]})}function L_(e){for(var t,r=0,n=-1,i=e.length;++n=i)return}else u=[g,r];o=[g,i]}else{if(u){if(u[1]=i)return}else u=[(r-s)/a,r];o=[(i-s)/a,i]}else{if(u){if(u[1]=n)return}else u=[t,a*t+s];o=[n,a*n+s]}else{if(u){if(u[0]dy||Math.abs(i[0][1]-i[1][1])>dy)||delete hy[o]}(a,s,u,l),function(e,t,r,n){var i,o,a,s,u,l,c,f,h,d,p,g,m,v,_=cy.length,y=!0;for(i=0;i<_;++i)if(o=cy[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)hy[u[s]]||u.splice(s,1);for(s=0,l=u.length;sdy||Math.abs(g-h)>dy)&&(u.splice(s,0,hy.push(Y_(a,d,Math.abs(p-e)=r)return null;for(var n=a-u.site[0],i=s-u.site[1],f=n*n+i*i;u=l.cells[t=c],c=null,u.halfedges.forEach(function(e){var t=l.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;os;)u.pop(),--l;var c,f=new Array(l+1);for(t=0;t<=l;++t)(c=f[t]=[]).x0=0=p.length)return null!=h&&e.sort(h),null!=d?d(e):e;for(var t,o,a,s=-1,u=e.length,l=p[r++],c=$i(),f=n();++sp.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}(g(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=$i,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=mt,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=_o,l=yo,n=960,i=500,o=20,c=2,f=3*o,h=n+2*f>>c,d=i+2*f>>c,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>>c,i=+u(e,t,r)+f>>c,o=+l(e,t,r);0<=n&&n>c),mo({width:h,height:d,data:t},{width:h,height:d,data:a},o>>c),go({width:h,height:d,data:a},{width:h,height:d,data:t},o>>c),mo({width:h,height:d,data:t},{width:h,height:d,data:a},o>>c),go({width:h,height:d,data:a},{width:h,height:d,data:t},o>>c),mo({width:h,height:d,data:t},{width:h,height:d,data:a},o>>c);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(g)}function g(e){return e.value*=Math.pow(2,-2*c),e.coordinates.forEach(r),e}function r(e){e.forEach(a)}function a(e){e.forEach(m)}function m(e){e[0]=e[0]*Math.pow(2,c)-f,e[1]=e[1]*Math.pow(2,c)-f}function v(){return h=n+2*(f=3*o)>>c,d=i+2*f>>c,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?(l="function"==typeof e?e:uo(+e),t):l},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<f.index){var u=h-o.x-o.vx,l=d-o.y-o.vy,c=u*u+l*l;ce.r&&(e.r=e[t].r)}function r(){if(o){var e,t,r=o.length;for(a=new Array(r),e=0;ehu(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=Zs=Js=0,fs(e,gu);var t=Ks,r=Zs,n=Js,i=t*t+r*r+n*n;return i<1e-12&&(t=Gs,r=Ws,n=Vs,Xsn.x&&(n=e),e.depth>i.depth&&(i=e)});var o=r===n?1:y(r,n)/2,a=o-r.x,s=l/(n.x+o+a),u=c/(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+y(e._,n._),e.m=e.z-i):e.z=i}else n&&(e.z=n.z+y(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,l=o.m,c=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+c-i.z-u+y(a._,i._))&&(v=e,_=r,h=(m=a).a.parent===v.parent?m.a:_,g=(p=n)/((d=e).i-h.i),d.c-=g,d.s+=p,h.c+=g,d.z+=p,d.m+=p,u+=n,l+=n),c+=a.m,u+=i.m,f+=s.m,l+=o.m;a&&!qf(o)&&(o.t=a,o.m+=c-l),i&&!Xf(s)&&(s.t=i,s.m+=u-f,r=e)}var h,d,p,g,m,v,_;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*=l,e.y=e.depth*c}return t.separation=function(e){return arguments.length?(y=e,t):y},t.size=function(e){return arguments.length?(f=!1,l=+e[0],c=+e[1],t):f?null:[l,c]},t.nodeSize=function(e){return arguments.length?(f=!0,l=+e[0],c=+e[1],t):f?[l,c]:null},t},z.treemap=function(){var a=Vf,t=!1,r=1,n=1,s=[0],u=Ef,l=Ef,c=Ef,f=Ef,h=Ef;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>>1;y[d]tv?(h+=x*=s?1:-1,d-=x):(p=0,h=d=(i+o)/2),(g-=2*w)>tv?(c+=w*=s?1:-1,f-=w):(g=0,c=f=(i+o)/2)}var T=n*Zm(c),S=n*Qm(c),M=r*Zm(d),P=r*Qm(d);if(tv<_){var C,k=n*Zm(f),E=n*Qm(f),A=r*Zm(h),O=r*Qm(h);if(adn&&r.name===t)return new En([[e]],ci,t,+n);return null},z.interrupt=Tn,z.voronoi=function(){var i=j_,o=F_,t=null;function r(n){return new my(n.map(function(e,t){var r=[Math.round(i(e,t,n)/dy)*dy,Math.round(o(e,t,n)/dy)*dy];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:N_(+e),r):i},r.y=function(e){return arguments.length?(o="function"==typeof e?e:N_(+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=Sy,c=My,p=Ey,i=Cy,t=ky,a=[0,1/0],g=[[-1/0,-1/0],[1/0,1/0]],u=250,f=Ir,l=[],r=X("start","zoom","end"),h=500,m=150,v=0;function _(e){e.property("__zoom",Py).on("wheel.zoom",n).on("mousedown.zoom",M).on("dblclick.zoom",P).filter(t).on("touchstart.zoom",C).on("touchmove.zoom",k).on("touchend.zoom touchcancel.zoom",E).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(a[0],Math.min(a[1],t)))===e.k?e:new yy(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 yy(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,l){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=c.apply(this,e),i=l||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 yy(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=l.length;n]/gm,function(e){return a[e]})}function f(e){return e.nodeName.toLowerCase()}function y(e,t){var r=e&&e.exec(t);return r&&0===r.index}function s(e){return n.test(e)}function b(e,t){var r,n={};for(r in e)n[r]=e[r];if(t)for(r in t)n[r]=t[r];return n}function u(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),f(n).match(/br|hr|img|input/)||i.push({event:"stop",offset:r,node:n}));return r}(e,0),i}function x(e,t,o,r){function s(e,t,r,n){var i='')+t+(r?"":P)}function a(){h+=null!=c.sL?function(){var e="string"==typeof c.sL;if(e&&!M[c.sL])return _(d);var t=e?x(c.sL,d,!0,f[c.sL]):w(d,c.sL.length?c.sL:void 0);return 0")+'"');return d+=t,t.length||1}var l=T(e);if(!l)throw new Error('Unknown language: "'+e+'"');!function(s){function u(e){return e&&e.source||e}function l(e,t){return new RegExp(u(e),"m"+(s.cI?"i":"")+(t?"g":""))}!function t(r,e){if(!r.compiled){if(r.compiled=!0,r.k=r.k||r.bK,r.k){var n={},i=function(r,e){s.cI&&(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.k?i("keyword",r.k):S(r.k).forEach(function(e){i(e,r.k[e])}),r.k=n}r.lR=l(r.l||/\w+/,!0),e&&(r.bK&&(r.b="\\b("+r.bK.split(" ").join("|")+")\\b"),r.b||(r.b=/\B|\b/),r.bR=l(r.b),r.e||r.eW||(r.e=/\B|\b/),r.e&&(r.eR=l(r.e)),r.tE=u(r.e)||"",r.eW&&e.tE&&(r.tE+=(r.e?"|":"")+e.tE)),r.i&&(r.iR=l(r.i)),null==r.r&&(r.r=1),r.c||(r.c=[]);var o=[];r.c.forEach(function(t){t.v?t.v.forEach(function(e){o.push(b(t,e))}):o.push("self"===t?r:t)}),r.c=o,r.c.forEach(function(e){t(e,r)}),r.starts&&t(r.starts,e);var a=r.c.map(function(e){return e.bK?"\\.?("+e.b+")\\.?":e.b}).concat([r.tE,r.i]).map(u).filter(Boolean);r.t=a.length?l(a.join("|"),!0):{exec:function(){return null}}}}(s)}(l);var i,c=r||l,f={},h="";for(i=c;i!==l;i=i.parent)i.cN&&(h=s(i.cN,"",!0)+h);var d="",p=0;try{for(var g,m,v=0;c.t.lastIndex=v,g=c.t.exec(t);)m=n(t.substring(v,g.index),g[0]),v=g.index+m;for(n(t.substr(v)),i=c;i.parent;i=i.parent)i.cN&&(h+=P);return{r:p,value:h,language:e,top:c}}catch(e){if(e.message&&-1!==e.message.indexOf("Illegal"))return{r:0,value:_(t)};throw e}}function w(r,e){e=e||C.languages||S(M);var n={r:0,value:_(r)},i=n;return e.filter(T).forEach(function(e){var t=x(e,r,!1);t.language=e,t.r>i.r&&(i=t),t.r>n.r&&(i=n,n=t)}),i.language&&(n.second_best=i),n}function l(e){return C.tabReplace||C.useBR?e.replace(o,function(e,t){return C.useBR&&"\n"===e?"
":C.tabReplace?t.replace(/\t/g,C.tabReplace):void 0}):e}function t(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=d.exec(o))return T(r[1])?r[1]:"no-highlight";for(t=0,n=(o=o.split(/\s+/)).length;t/g,"\n"):t=e,o=t.textContent,n=a?x(a,o,!0):w(o),(r=u(t)).length&&((i=document.createElementNS("http://www.w3.org/1999/xhtml","div")).innerHTML=n.value,n.value=function(e,t,r){function n(){return e.length&&t.length?e[0].offset!==t[0].offset?e[0].offset"}function o(e){u+=""}function a(e){("start"===e.event?i:o)(e.node)}for(var s=0,u="",l=[];e.length||t.length;){var c=n();if(u+=_(r.substring(s,c[0].offset)),s=c[0].offset,c===e){for(l.reverse().forEach(o);a(c.splice(0,1)[0]),(c=n())===e&&c.length&&c[0].offset===s;);l.reverse().forEach(i)}else"start"===c[0].event?l.push(c[0].node):l.pop(),a(c.splice(0,1)[0])}return u+_(r.substr(s))}(r,u(i),o)),n.value=l(n.value),e.innerHTML=n.value,e.className=function(e,t,r){var n=t?c[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.r},n.second_best&&(e.second_best={language:n.second_best.language,re:n.second_best.r}))}function r(){if(!r.called){r.called=!0;var e=document.querySelectorAll("pre code");h.forEach.call(e,t)}}function T(e){return e=(e||"").toLowerCase(),M[e]||M[c[e]]}var h=[],S=Object.keys,M={},c={},n=/^(no-?highlight|plain|text)$/i,d=/\blang(?:uage)?-([\w-]+)\b/i,o=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,P="
",C={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},a={"&":"&","<":"<",">":">"};return i.highlight=x,i.highlightAuto=w,i.fixMarkup=l,i.highlightBlock=t,i.configure=function(e){C=b(C,e)},i.initHighlighting=r,i.initHighlightingOnLoad=function(){addEventListener("DOMContentLoaded",r,!1),addEventListener("load",r,!1)},i.registerLanguage=function(t,e){var r=M[t]=e(i);r.aliases&&r.aliases.forEach(function(e){c[e]=t})},i.listLanguages=function(){return S(M)},i.getLanguage=T,i.inherit=b,i.IR="[a-zA-Z]\\w*",i.UIR="[a-zA-Z_]\\w*",i.NR="\\b\\d+(\\.\\d+)?",i.CNR="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",i.BNR="\\b(0b[01]+)",i.RSR="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",i.BE={b:"\\\\[\\s\\S]",r:0},i.ASM={cN:"string",b:"'",e:"'",i:"\\n",c:[i.BE]},i.QSM={cN:"string",b:'"',e:'"',i:"\\n",c:[i.BE]},i.PWM={b:/\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|like)\b/},i.C=function(e,t,r){var n=i.inherit({cN:"comment",b:e,e:t,c:[]},r||{});return n.c.push(i.PWM),n.c.push({cN:"doctag",b:"(?:TODO|FIXME|NOTE|BUG|XXX):",r:0}),n},i.CLCM=i.C("//","$"),i.CBCM=i.C("/\\*","\\*/"),i.HCM=i.C("#","$"),i.NM={cN:"number",b:i.NR,r:0},i.CNM={cN:"number",b:i.CNR,r:0},i.BNM={cN:"number",b:i.BNR,r:0},i.CSSNM={cN:"number",b:i.NR+"(%|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)?",r:0},i.RM={cN:"regexp",b:/\//,e:/\/[gimuy]*/,i:/\n/,c:[i.BE,{b:/\[/,e:/\]/,r:0,c:[i.BE]}]},i.TM={cN:"title",b:i.IR,r:0},i.UTM={cN:"title",b:i.UIR,r:0},i.METHOD_GUARD={b:"\\.\\s*"+i.UIR,r:0},i}),hljs.registerLanguage("ini",function(e){var t={cN:"string",c:[e.BE],v:[{b:"'''",e:"'''",r:10},{b:'"""',e:'"""',r:10},{b:'"',e:'"'},{b:"'",e:"'"}]};return{aliases:["toml"],cI:!0,i:/\S/,c:[e.C(";","$"),e.HCM,{cN:"section",b:/^\s*\[+/,e:/\]+/},{b:/^[a-z0-9\[\]_-]+\s*=\s*/,e:"$",rB:!0,c:[{cN:"attr",b:/[a-z0-9\[\]_-]+/},{b:/=/,eW:!0,r:0,c:[{cN:"literal",b:/\bon|off|true|false|yes|no\b/},{cN:"variable",v:[{b:/\$[\w\d"][\w\d_]*/},{b:/\$\{(.*?)}/}]},t,{cN:"number",b:/([\+\-]+)?[\d]+_[\d_]+/},e.NM]}]}]}}),hljs.registerLanguage("diff",function(e){return{aliases:["patch"],c:[{cN:"meta",r:10,v:[{b:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{b:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{b:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{cN:"comment",v:[{b:/Index: /,e:/$/},{b:/={3,}/,e:/$/},{b:/^\-{3}/,e:/$/},{b:/^\*{3} /,e:/$/},{b:/^\+{3}/,e:/$/},{b:/\*{5}/,e:/\*{5}$/}]},{cN:"addition",b:"^\\+",e:"$"},{cN:"deletion",b:"^\\-",e:"$"},{cN:"addition",b:"^\\!",e:"$"}]}}),hljs.registerLanguage("coffeescript",function(e){var t={keyword:"in if for while finally new do return else break catch instanceof throw try this switch continue typeof delete debugger super yield import export from as default await then unless until loop of by when and or is isnt not",literal:"true false null undefined yes no on off",built_in:"npm require console print module global window document"},r="[A-Za-z$_][0-9A-Za-z$_]*",n={cN:"subst",b:/#\{/,e:/}/,k:t},i=[e.BNM,e.inherit(e.CNM,{starts:{e:"(\\s*/)?",r:0}}),{cN:"string",v:[{b:/'''/,e:/'''/,c:[e.BE]},{b:/'/,e:/'/,c:[e.BE]},{b:/"""/,e:/"""/,c:[e.BE,n]},{b:/"/,e:/"/,c:[e.BE,n]}]},{cN:"regexp",v:[{b:"///",e:"///",c:[n,e.HCM]},{b:"//[gim]*",r:0},{b:/\/(?![ *])(\\\/|.)*?\/[gim]*(?=\W|$)/}]},{b:"@"+r},{sL:"javascript",eB:!0,eE:!0,v:[{b:"```",e:"```"},{b:"`",e:"`"}]}];n.c=i;var o=e.inherit(e.TM,{b:r}),a="(\\(.*\\))?\\s*\\B[-=]>",s={cN:"params",b:"\\([^\\(]",rB:!0,c:[{b:/\(/,e:/\)/,k:t,c:["self"].concat(i)}]};return{aliases:["coffee","cson","iced"],k:t,i:/\/\*/,c:i.concat([e.C("###","###"),e.HCM,{cN:"function",b:"^\\s*"+r+"\\s*=\\s*"+a,e:"[-=]>",rB:!0,c:[o,s]},{b:/[:\(,=]\s*/,r:0,c:[{cN:"function",b:a,e:"[-=]>",rB:!0,c:[s]}]},{cN:"class",bK:"class",e:"$",i:/[:="\[\]]/,c:[{bK:"extends",eW:!0,i:/[:="\[\]]/,c:[o]},o]},{b:r+":",e:":",rB:!0,rE:!0,r:0}])}}),hljs.registerLanguage("cs",function(e){var t={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double else enum event explicit extern finally fixed float for foreach goto if implicit in int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while nameof add alias ascending async await by descending dynamic equals from get global group into join let on orderby partial remove select set value var where yield",literal:"null false true"},r={cN:"string",b:'@"',e:'"',c:[{b:'""'}]},n=e.inherit(r,{i:/\n/}),i={cN:"subst",b:"{",e:"}",k:t},o=e.inherit(i,{i:/\n/}),a={cN:"string",b:/\$"/,e:'"',i:/\n/,c:[{b:"{{"},{b:"}}"},e.BE,o]},s={cN:"string",b:/\$@"/,e:'"',c:[{b:"{{"},{b:"}}"},{b:'""'},i]},u=e.inherit(s,{i:/\n/,c:[{b:"{{"},{b:"}}"},{b:'""'},o]});i.c=[s,a,r,e.ASM,e.QSM,e.CNM,e.CBCM],o.c=[u,a,n,e.ASM,e.QSM,e.CNM,e.inherit(e.CBCM,{i:/\n/})];var l={v:[s,a,r,e.ASM,e.QSM]},c=e.IR+"(<"+e.IR+"(\\s*,\\s*"+e.IR+")*>)?(\\[\\])?";return{aliases:["csharp"],k:t,i:/::/,c:[e.C("///","$",{rB:!0,c:[{cN:"doctag",v:[{b:"///",r:0},{b:"\x3c!--|--\x3e"},{b:""}]}]}),e.CLCM,e.CBCM,{cN:"meta",b:"#",e:"$",k:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},l,e.CNM,{bK:"class interface",e:/[{;=]/,i:/[^\s:]/,c:[e.TM,e.CLCM,e.CBCM]},{bK:"namespace",e:/[{;=]/,i:/[^\s:]/,c:[e.inherit(e.TM,{b:"[a-zA-Z](\\.?\\w)*"}),e.CLCM,e.CBCM]},{bK:"new return throw await",r:0},{cN:"function",b:"("+c+"\\s+)+"+e.IR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.IR+"\\s*\\(",rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,k:t,r:0,c:[l,e.CNM,e.CBCM]},e.CLCM,e.CBCM]}]}}),hljs.registerLanguage("sql",function(e){var t=e.C("--","$");return{cI:!0,i:/[<>{}*#]/,c:[{bK:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment",e:/;/,eW:!0,l:/[\w\.]+/,k:{keyword:"abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias allocate allow alter always analyze ancillary and any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second section securefile security seed segment select self sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null",built_in:"array bigint binary bit blob boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text varchar varying void"},c:[{cN:"string",b:"'",e:"'",c:[e.BE,{b:"''"}]},{cN:"string",b:'"',e:'"',c:[e.BE,{b:'""'}]},{cN:"string",b:"`",e:"`",c:[e.BE]},e.CNM,e.CBCM,t]},e.CBCM,t]}}),hljs.registerLanguage("javascript",function(e){var t="[A-Za-z$_][0-9A-Za-z$_]*",r={keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},n={cN:"number",v:[{b:"\\b(0[bB][01]+)"},{b:"\\b(0[oO][0-7]+)"},{b:e.CNR}],r:0},i={cN:"subst",b:"\\$\\{",e:"\\}",k:r,c:[]},o={cN:"string",b:"`",e:"`",c:[e.BE,i]};i.c=[e.ASM,e.QSM,o,n,e.RM];var a=i.c.concat([e.CBCM,e.CLCM]);return{aliases:["js","jsx"],k:r,c:[{cN:"meta",r:10,b:/^\s*['"]use (strict|asm)['"]/},{cN:"meta",b:/^#!/,e:/$/},e.ASM,e.QSM,o,e.CLCM,e.CBCM,n,{b:/[{,]\s*/,r:0,c:[{b:t+"\\s*:",rB:!0,r:0,c:[{cN:"attr",b:t,r:0}]}]},{b:"("+e.RSR+"|\\b(case|return|throw)\\b)\\s*",k:"return throw case",c:[e.CLCM,e.CBCM,e.RM,{cN:"function",b:"(\\(.*?\\)|"+t+")\\s*=>",rB:!0,e:"\\s*=>",c:[{cN:"params",v:[{b:t},{b:/\(\s*\)/},{b:/\(/,e:/\)/,eB:!0,eE:!0,k:r,c:a}]}]},{b://,sL:"xml",c:[{b:/<\w+\s*\/>/,skip:!0},{b:/<\w+/,e:/(\/\w+|\w+\/)>/,skip:!0,c:[{b:/<\w+\s*\/>/,skip:!0},"self"]}]}],r:0},{cN:"function",bK:"function",e:/\{/,eE:!0,c:[e.inherit(e.TM,{b:t}),{cN:"params",b:/\(/,e:/\)/,eB:!0,eE:!0,c:a}],i:/\[|%/},{b:/\$[(.]/},e.METHOD_GUARD,{cN:"class",bK:"class",e:/[{;=]/,eE:!0,i:/[:"\[\]]/,c:[{bK:"extends"},e.UTM]},{bK:"constructor",e:/\{/,eE:!0}],i:/#(?!!)/}}),hljs.registerLanguage("nginx",function(e){var t={cN:"variable",v:[{b:/\$\d+/},{b:/\$\{/,e:/}/},{b:"[\\$\\@]"+e.UIR}]},r={eW:!0,l:"[a-z/_]+",k:{literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},r:0,i:"=>",c:[e.HCM,{cN:"string",c:[e.BE,t],v:[{b:/"/,e:/"/},{b:/'/,e:/'/}]},{b:"([a-z]+):/",e:"\\s",eW:!0,eE:!0,c:[t]},{cN:"regexp",c:[e.BE,t],v:[{b:"\\s\\^",e:"\\s|{|;",rE:!0},{b:"~\\*?\\s+",e:"\\s|{|;",rE:!0},{b:"\\*(\\.[a-z\\-]+)+"},{b:"([a-z\\-]+\\.)+\\*"}]},{cN:"number",b:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{cN:"number",b:"\\b\\d+[kKmMgGdshdwy]*\\b",r:0},t]};return{aliases:["nginxconf"],c:[e.HCM,{b:e.UIR+"\\s+{",rB:!0,e:"{",c:[{cN:"section",b:e.UIR}],r:0},{b:e.UIR+"\\s",e:";|{",rB:!0,c:[{cN:"attribute",b:e.UIR,starts:r}],r:0}],i:"[^\\s\\}]"}}),hljs.registerLanguage("objectivec",function(e){var t=/[a-zA-Z@][a-zA-Z0-9_]*/,r="@interface @class @protocol @implementation";return{aliases:["mm","objc","obj-c"],k:{keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},l:t,i:""}]}]},{cN:"class",b:"("+r.split(" ").join("|")+")\\b",e:"({|$)",eE:!0,k:r,l:t,c:[e.UTM]},{b:"\\."+e.UIR,r:0}]}}),hljs.registerLanguage("php",function(e){var t={b:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},r={cN:"meta",b:/<\?(php)?|\?>/},n={cN:"string",c:[e.BE,r],v:[{b:'b"',e:'"'},{b:"b'",e:"'"},e.inherit(e.ASM,{i:null}),e.inherit(e.QSM,{i:null})]},i={v:[e.BNM,e.CNM]};return{aliases:["php3","php4","php5","php6"],cI:!0,k:"and include_once list abstract global private echo interface as static endswitch array null if endwhile or const for endforeach self var while isset public protected exit foreach throw elseif include __FILE__ empty require_once do xor return parent clone use __CLASS__ __LINE__ else break print eval new catch __METHOD__ case exception default die require __FUNCTION__ enddeclare final try switch continue endfor endif declare unset true false trait goto instanceof insteadof __DIR__ __NAMESPACE__ yield finally",c:[e.HCM,e.C("//","$",{c:[r]}),e.C("/\\*","\\*/",{c:[{cN:"doctag",b:"@[A-Za-z]+"}]}),e.C("__halt_compiler.+?;",!1,{eW:!0,k:"__halt_compiler",l:e.UIR}),{cN:"string",b:/<<<['"]?\w+['"]?$/,e:/^\w+;?$/,c:[e.BE,{cN:"subst",v:[{b:/\$\w+/},{b:/\{\$/,e:/\}/}]}]},r,{cN:"keyword",b:/\$this\b/},t,{b:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{cN:"function",bK:"function",e:/[;{]/,eE:!0,i:"\\$|\\[|%",c:[e.UTM,{cN:"params",b:"\\(",e:"\\)",c:["self",t,e.CBCM,n,i]}]},{cN:"class",bK:"class interface",e:"{",eE:!0,i:/[:\(\$"]/,c:[{bK:"extends implements"},e.UTM]},{bK:"namespace",e:";",i:/[\.']/,c:[e.UTM]},{bK:"use",e:";",c:[e.UTM]},{b:"=>"},n,i]}}),hljs.registerLanguage("json",function(e){var t={literal:"true false null"},r=[e.QSM,e.CNM],n={e:",",eW:!0,eE:!0,c:r,k:t},i={b:"{",e:"}",c:[{cN:"attr",b:/"/,e:/"/,c:[e.BE],i:"\\n"},e.inherit(n,{b:/:/})],i:"\\S"},o={b:"\\[",e:"\\]",c:[e.inherit(n)],i:"\\S"};return r.splice(r.length,0,i,o),{c:r,k:t,i:"\\S"}}),hljs.registerLanguage("cpp",function(e){var t={cN:"keyword",b:"\\b[a-z\\d_]*_t\\b"},r={cN:"string",v:[{b:'(u8?|U)?L?"',e:'"',i:"\\n",c:[e.BE]},{b:'(u8?|U)?R"',e:'"',c:[e.BE]},{b:"'\\\\?.",e:"'",i:"."}]},n={cN:"number",v:[{b:"\\b(0b[01']+)"},{b:"\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{b:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],r:0},i={cN:"meta",b:/#\s*[a-z]+\b/,e:/$/,k:{"meta-keyword":"if else elif endif define undef warning error line pragma ifdef ifndef include"},c:[{b:/\\\n/,r:0},e.inherit(r,{cN:"meta-string"}),{cN:"meta-string",b:"<",e:">",i:"\\n"},e.CLCM,e.CBCM]},o=e.IR+"\\s*\\(",a={keyword:"int float while private char catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const struct for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using class asm case typeid short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignof constexpr decltype noexcept static_assert thread_local restrict _Bool complex _Complex _Imaginary atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return",built_in:"std string cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap array shared_ptr abort abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr",literal:"true false nullptr NULL"},s=[t,e.CLCM,e.CBCM,n,r];return{aliases:["c","cc","h","c++","h++","hpp"],k:a,i:"",k:a,c:["self",t]},{b:e.IR+"::",k:a},{v:[{b:/=/,e:/;/},{b:/\(/,e:/\)/},{bK:"new throw return else",e:/;/}],k:a,c:s.concat([{b:/\(/,e:/\)/,k:a,c:s.concat(["self"]),r:0}]),r:0},{cN:"function",b:"("+e.IR+"[\\*&\\s]+)+"+o,rB:!0,e:/[{;=]/,eE:!0,k:a,i:/[^\w\s\*&]/,c:[{b:o,rB:!0,c:[e.TM],r:0},{cN:"params",b:/\(/,e:/\)/,k:a,r:0,c:[e.CLCM,e.CBCM,r,n,t]},e.CLCM,e.CBCM,i]}]),exports:{preprocessor:i,strings:r,k:a}}}),hljs.registerLanguage("python",function(e){var t={cN:"meta",b:/^(>>>|\.\.\.) /},r={cN:"string",c:[e.BE],v:[{b:/(u|b)?r?'''/,e:/'''/,c:[t],r:10},{b:/(u|b)?r?"""/,e:/"""/,c:[t],r:10},{b:/(u|r|ur)'/,e:/'/,r:10},{b:/(u|r|ur)"/,e:/"/,r:10},{b:/(b|br)'/,e:/'/},{b:/(b|br)"/,e:/"/},e.ASM,e.QSM]},n={cN:"number",r:0,v:[{b:e.BNR+"[lLjJ]?"},{b:"\\b(0o[0-7]+)[lLjJ]?"},{b:e.CNR+"[lLjJ]?"}]},i={cN:"params",b:/\(/,e:/\)/,c:["self",t,n,r]};return{aliases:["py","gyp"],k:{keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10 None True False",built_in:"Ellipsis NotImplemented"},i:/(<\/|->|\?)|=>/,c:[t,n,r,e.HCM,{v:[{cN:"function",bK:"def"},{cN:"class",bK:"class"}],e:/:/,i:/[${=;\n,]/,c:[e.UTM,i,{b:/->/,eW:!0,k:"None"}]},{cN:"meta",b:/^[\t ]*@/,e:/$/},{b:/\b(print|exec)\(/}]}}),hljs.registerLanguage("makefile",function(e){var t={cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]};return{aliases:["mk","mak"],c:[e.HCM,{b:/^\w+\s*\W*=/,rB:!0,r:0,starts:{e:/\s*\W*=/,eE:!0,starts:{e:/$/,r:0,c:[t]}}},{cN:"section",b:/^[\w]+:\s*$/},{cN:"meta",b:/^\.PHONY:/,e:/$/,k:{"meta-keyword":".PHONY"},l:/[\.\w]+/},{b:/^\t+/,e:/$/,r:0,c:[e.QSM,t]}]}}),hljs.registerLanguage("xml",function(e){var t={eW:!0,i:/`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],cI:!0,c:[{cN:"meta",b:"",r:10,c:[{b:"\\[",e:"\\]"}]},e.C("\x3c!--","--\x3e",{r:10}),{b:"<\\!\\[CDATA\\[",e:"\\]\\]>",r:10},{b:/<\?(php)?/,e:/\?>/,sL:"php",c:[{b:"/\\*",e:"\\*/",skip:!0}]},{cN:"tag",b:"|$)",e:">",k:{name:"style"},c:[t],starts:{e:"",rE:!0,sL:["css","xml"]}},{cN:"tag",b:"|$)",e:">",k:{name:"script"},c:[t],starts:{e:"<\/script>",rE:!0,sL:["actionscript","javascript","handlebars","xml"]}},{cN:"meta",v:[{b:/<\?xml/,e:/\?>/,r:10},{b:/<\?\w+/,e:/\?>/}]},{cN:"tag",b:"",c:[{cN:"name",b:/[^\/><\s]+/,r:0},t]}]}}),hljs.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],i:"\\S",c:[{b:"^"+t,e:"$",c:[{cN:"number",b:"\\b\\d{3}\\b"}]},{b:"^[A-Z]+ (.*?) "+t+"$",rB:!0,e:"$",c:[{cN:"string",b:" ",e:" ",eB:!0,eE:!0},{b:t},{cN:"keyword",b:"[A-Z]+"}]},{cN:"attribute",b:"^\\w",e:": ",eE:!0,i:"\\n|\\s|=",starts:{e:"$",r:0}},{b:"\\n\\n",starts:{sL:[],eW:!0}}]}}),hljs.registerLanguage("java",function(e){var t="false synchronized int abstract float private char boolean static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",r={cN:"number",b:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",r:0};return{aliases:["jsp"],k:t,i:/<\/|#/,c:[e.C("/\\*\\*","\\*/",{r:0,c:[{b:/\w+@/,r:0},{cN:"doctag",b:"@[A-Za-z]+"}]}),e.CLCM,e.CBCM,e.ASM,e.QSM,{cN:"class",bK:"class interface",e:/[{;=]/,eE:!0,k:"class interface",i:/[:"\[\]]/,c:[{bK:"extends implements"},e.UTM]},{bK:"new throw return else",r:0},{cN:"function",b:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UIR+"\\s*\\(",rB:!0,e:/[{;=]/,eE:!0,k:t,c:[{b:e.UIR+"\\s*\\(",rB:!0,r:0,c:[e.UTM]},{cN:"params",b:/\(/,e:/\)/,k:t,r:0,c:[e.ASM,e.QSM,e.CNM,e.CBCM]},e.CLCM,e.CBCM]},r,{cN:"meta",b:"@[A-Za-z]+"}]}}),hljs.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],c:[{cN:"section",v:[{b:"^#{1,6}",e:"$"},{b:"^.+?\\n[=-]{2,}$"}]},{b:"<",e:">",sL:"xml",r:0},{cN:"bullet",b:"^([*+-]|(\\d+\\.))\\s+"},{cN:"strong",b:"[*_]{2}.+?[*_]{2}"},{cN:"emphasis",v:[{b:"\\*.+?\\*"},{b:"_.+?_",r:0}]},{cN:"quote",b:"^>\\s+",e:"$"},{cN:"code",v:[{b:"^```w*s*$",e:"^```s*$"},{b:"`.+?`"},{b:"^( {4}|\t)",e:"$",r:0}]},{b:"^[-\\*]{3,}",e:"$"},{b:"\\[.+?\\][\\(\\[].*?[\\)\\]]",rB:!0,c:[{cN:"string",b:"\\[",e:"\\]",eB:!0,rE:!0,r:0},{cN:"link",b:"\\]\\(",e:"\\)",eB:!0,eE:!0},{cN:"symbol",b:"\\]\\[",e:"\\]",eB:!0,eE:!0}],r:10},{b:/^\[[^\n]+\]:/,rB:!0,c:[{cN:"symbol",b:/\[/,e:/\]/,eB:!0,eE:!0},{cN:"link",b:/:\s*/,e:/$/,eB:!0}]}]}}),hljs.registerLanguage("apache",function(e){var t={cN:"number",b:"[\\$%]\\d+"};return{aliases:["apacheconf"],cI:!0,c:[e.HCM,{cN:"section",b:""},{cN:"attribute",b:/\w+/,r:0,k:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{e:/$/,r:0,k:{literal:"on off all"},c:[{cN:"meta",b:"\\s\\[",e:"\\]$"},{cN:"variable",b:"[\\$%]\\{",e:"\\}",c:["self",t]},t,e.QSM]}}],i:/\S/}}),hljs.registerLanguage("css",function(e){var t={b:/[A-Z\_\.\-]+\s*:/,rB:!0,e:";",eW:!0,c:[{cN:"attribute",b:/\S/,e:":",eE:!0,starts:{eW:!0,eE:!0,c:[{b:/[\w-]+\(/,rB:!0,c:[{cN:"built_in",b:/[\w-]+/},{b:/\(/,e:/\)/,c:[e.ASM,e.QSM]}]},e.CSSNM,e.QSM,e.ASM,e.CBCM,{cN:"number",b:"#[0-9A-Fa-f]+"},{cN:"meta",b:"!important"}]}}]};return{cI:!0,i:/[=\/|'\$]/,c:[e.CBCM,{cN:"selector-id",b:/#[A-Za-z0-9_-]+/},{cN:"selector-class",b:/\.[A-Za-z0-9_-]+/},{cN:"selector-attr",b:/\[/,e:/\]/,i:"$"},{cN:"selector-pseudo",b:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{b:"@(font-face|page)",l:"[a-z-]+",k:"font-face page"},{b:"@",e:"[{;]",i:/:/,c:[{cN:"keyword",b:/\w+/},{b:/\s/,eW:!0,eE:!0,r:0,c:[e.ASM,e.QSM,e.CSSNM]}]},{cN:"selector-tag",b:"[a-zA-Z-][a-zA-Z0-9_-]*",r:0},{b:"{",e:"}",i:/\S/,c:[e.CBCM,t]}]}}),hljs.registerLanguage("ruby",function(e){var t="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",r={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},n={cN:"doctag",b:"@[A-Za-z]+"},i={b:"#<",e:">"},o=[e.C("#","$",{c:[n]}),e.C("^\\=begin","^\\=end",{c:[n],r:10}),e.C("^__END__","\\n$")],a={cN:"subst",b:"#\\{",e:"}",k:r},s={cN:"string",c:[e.BE,a],v:[{b:/'/,e:/'/},{b:/"/,e:/"/},{b:/`/,e:/`/},{b:"%[qQwWx]?\\(",e:"\\)"},{b:"%[qQwWx]?\\[",e:"\\]"},{b:"%[qQwWx]?{",e:"}"},{b:"%[qQwWx]?<",e:">"},{b:"%[qQwWx]?/",e:"/"},{b:"%[qQwWx]?%",e:"%"},{b:"%[qQwWx]?-",e:"-"},{b:"%[qQwWx]?\\|",e:"\\|"},{b:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{b:/<<(-?)\w+$/,e:/^\s*\w+$/}]},u={cN:"params",b:"\\(",e:"\\)",endsParent:!0,k:r},l=[s,i,{cN:"class",bK:"class module",e:"$|;",i:/=/,c:[e.inherit(e.TM,{b:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{b:"<\\s*",c:[{b:"("+e.IR+"::)?"+e.IR}]}].concat(o)},{cN:"function",bK:"def",e:"$|;",c:[e.inherit(e.TM,{b:t}),u].concat(o)},{b:e.IR+"::"},{cN:"symbol",b:e.UIR+"(\\!|\\?)?:",r:0},{cN:"symbol",b:":(?!\\s)",c:[s,{b:t}],r:0},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{cN:"params",b:/\|/,e:/\|/,k:r},{b:"("+e.RSR+"|unless)\\s*",c:[i,{cN:"regexp",c:[e.BE,a],i:/\n/,v:[{b:"/",e:"/[a-z]*"},{b:"%r{",e:"}[a-z]*"},{b:"%r\\(",e:"\\)[a-z]*"},{b:"%r!",e:"![a-z]*"},{b:"%r\\[",e:"\\][a-z]*"}]}].concat(o),r:0}].concat(o);a.c=l;var c=[{b:/^\s*=>/,starts:{e:"$",c:u.c=l}},{cN:"meta",b:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{e:"$",c:l}}];return{aliases:["rb","gemspec","podspec","thor","irb"],k:r,i:/\/\*/,c:o.concat(c).concat(l)}}),hljs.registerLanguage("perl",function(e){var t="getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qqfileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmgetsub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedirioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when",r={cN:"subst",b:"[$@]\\{",e:"\\}",k:t},n={b:"->{",e:"}"},i={v:[{b:/\$\d/},{b:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{b:/[\$%@][^\s\w{]/,r:0}]},o=[e.BE,r,i],a=[i,e.HCM,e.C("^\\=\\w","\\=cut",{eW:!0}),n,{cN:"string",c:o,v:[{b:"q[qwxr]?\\s*\\(",e:"\\)",r:5},{b:"q[qwxr]?\\s*\\[",e:"\\]",r:5},{b:"q[qwxr]?\\s*\\{",e:"\\}",r:5},{b:"q[qwxr]?\\s*\\|",e:"\\|",r:5},{b:"q[qwxr]?\\s*\\<",e:"\\>",r:5},{b:"qw\\s+q",e:"q",r:5},{b:"'",e:"'",c:[e.BE]},{b:'"',e:'"'},{b:"`",e:"`",c:[e.BE]},{b:"{\\w+}",c:[],r:0},{b:"-?\\w+\\s*\\=\\>",c:[],r:0}]},{cN:"number",b:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",r:0},{b:"(\\/\\/|"+e.RSR+"|\\b(split|return|print|reverse|grep)\\b)\\s*",k:"split return print reverse grep",r:0,c:[e.HCM,{cN:"regexp",b:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",r:10},{cN:"regexp",b:"(m|qr)?/",e:"/[a-z]*",c:[e.BE],r:0}]},{cN:"function",bK:"sub",e:"(\\s*\\(.*?\\))?[;{]",eE:!0,r:5,c:[e.TM]},{b:"-\\w\\b",r:0},{b:"^__DATA__$",e:"^__END__$",sL:"mojolicious",c:[{b:"^@@.*",e:"$",cN:"comment"}]}];return r.c=a,{aliases:["pl","pm"],l:/[\w\.]+/,k:t,c:n.c=a}}),hljs.registerLanguage("bash",function(e){var t={cN:"variable",v:[{b:/\$[\w\d#@][\w\d_]*/},{b:/\$\{(.*?)}/}]},r={cN:"string",b:/"/,e:/"/,c:[e.BE,t,{cN:"variable",b:/\$\(/,e:/\)/,c:[e.BE]}]};return{aliases:["sh","zsh"],l:/-?[a-z\._]+/,k:{keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},c:[{cN:"meta",b:/^#![^\n]+sh\s*$/,r:10},{cN:"function",b:/\w[\w\d_]*\s*\(\s*\)\s*\{/,rB:!0,c:[e.inherit(e.TM,{b:/\w[\w\d_]*/})],r:0},e.HCM,r,{cN:"string",b:/'/,e:/'/},t]}}),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 l(r,e){if(!s[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(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 l(t||e)},i,i.exports,o,a,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;e>31;return(e^t)-t},r.min=function(e,t){return t^(e^t)&-(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<>>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,l,c=t&&t.length,f=c?t[0]*r:e.length,h=g(e,0,f,r,!0),d=[];if(!h||h.next===h.prev)return d;if(c&&(h=function(e,t,r,n){var i,o,a,s,u,l=[];for(i=0,o=t.length;i80*r){n=o=e[0],i=a=e[1];for(var p=r;po.x?i.x>a.x?i.x:a.x:o.x>a.x?o.x:a.x,c=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(l,c,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 l=u.next.next;l!==u.prev;){if(u.i!==l.i&&(s=l,(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 c=M(u,l);return u=m(u,u.next),c=m(c,c.next),v(u,t,r,n,i,o),void v(c,t,r,n,i,o)}l=l.next}u=u.next}while(u!==e)}function _(e,t){return e.x-t.x}function y(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=n.x&&n.x>=c&&i!==n.x&&w(or.x)&&S(n,e)&&(r=n,h=u),n=n.next;return r}(e,t)){var r=M(t,e);m(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=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"),l=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=l(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= 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>>10&1023|55296),e=56320|1023&e),t+=M(e)}).join("")}function E(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>>1S((v-p)/a))&&P("overflow"),p+=u*a,!(u<(l=s<=m?y:m+b<=s?b:s-m));s+=_)a>S(v/(c=_-l))&&P("overflow"),a*=c;m=A(p-o,t=h.length+1,0==o),S(p/t)>v-g&&P("overflow"),g+=S(p/t),p%=t,h.splice(p++,0,g)}return k(h)}function m(e){var t,r,n,i,o,a,s,u,l,c,f,h,d,p,g,m=[];for(h=(e=C(e)).length,t=w,o=x,a=r=0;aS((v-r)/(d=n+1))&&P("overflow"),r+=(s-t)*d,t=s,a=0;av&&P("overflow"),f==t){for(u=r,l=_;!(u<(c=l<=o?y:o+b<=l?b:l-o));l+=_)g=u-c,p=_-c,m.push(M(E(c+g%p,0))),u=S(g/p);m.push(M(E(u,0))),o=A(r,d,n==i),r=0,++n}++r,++t}return m.join("")}if(i={version:"1.4.1",ucs2:{decode:C,encode:k},decode:g,encode:m,toASCII:function(e){return p(e,function(e){return l.test(e)?"xn--"+m(e):e})},toUnicode:function(e){return p(e,function(e){return u.test(e)?g(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,l=e.length;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",'"',"`"," ","\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 C)return e;var n=new C;return n.parse(e,t,r),n}C.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&&nthis.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]*(?:\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=on?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.maxXt.x?e.minX:t.x,n=e.minY>t.y?e.minY:t.y,i=e.maxXthis.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=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(1T.CURVES.maxSegments&&(t=T.CURVES.maxSegments),t},T.prototype.lineStyle=function(){var e=0>16&255)/255,r=(e.tint>>8&255)/255,n=(255&e.tint)/255,i=0;i>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=this.x&&e=this.y&&t=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;rthis.checkCountMax&&(this.checkCount=0,this.run()))},t.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,r=!1,n=0;nthis.maxIdle&&(e.destroyTexture(i,!0),r=!(t[n]=null))}if(r){for(var o=0,a=0;a 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=c},{"../../../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=n&&c.x=i&&c.y>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")),c=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===c.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 l=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*l,i*l,a*r.resolution,s*r.resolution,n*r.resolution,i*r.resolution)):r.context.drawImage(t.baseTexture.source,t._frame.x*l,t._frame.y*l,n*l,i*l,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],l=a[2],c=n.getImageData(0,0,i.width,i.height),f=c.data,h=0;h=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,l=this.boundTextures,c=this.renderer.boundTextures,f=this.renderer.textureGC.count,h=0,d=void 0,p=void 0,g=1,m=0,v=a[0],_=void 0,y=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=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_SIZEthis.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,l="Y: "+r+" + "+i+" = "+(r+i)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+s+" "+l)}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;rt.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=0this.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>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(){g=!0},r.sayHello=function(e){if(g)return;if(-1>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")),l=d(e("remove-array-items")),c=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,g=!1;r.isMobile=u,r.removeItems=l.default,r.EventEmitter=o.default,r.pluginTarget=a.default,r.mixins=s,r.earcut=f.default;var m=r.TextureCache=Object.create(null),v=r.BaseTextureCache=Object.create(null);var _=r.premultiplyBlendMode=(0,c.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=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&&(0r&&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;rs&&(++p,O.utils.removeItems(n,1+h-p,1+m-h),m=h,h=-1,i.push(d),c=Math.max(c,d),f++,r.x=0,r.y+=e.lineHeight,u=null))}else i.push(l),c=Math.max(c,l),++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)&&(l=d),i.push(l),c=Math.max(c,l));for(var x=[],w=0;w<=f;w++){var T=0;"right"===this._font.align?T=c-i[w]:"center"===this._font.align&&(T=(c-i[w])/2),x.push(T)}for(var S=n.length,M=this.tint,P=0;P=n&&s.x=i&&s.y 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>16&255)/255,a=(r>>8&255)/255,s=(255&r)/255,u=((n=n||3375104)>>16&255)/255,l=(n>>8&255)/255,c=(255&n)/255,f=[.3,.59,.11,0,0,o,a,s,e=e||.2,0,u,l,c,t=t||.15,0,o-u,a-l,s-c,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 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 l=e("./colormatrix/ColorMatrixFilter");Object.defineProperty(r,"ColorMatrixFilter",{enumerable:!0,get:function(){return f(l).default}});var c=e("./alpha/AlphaFilter");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(r,"AlphaFilter",{enumerable:!0,get:function(){return f(c).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 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;rt?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,l=i?0:o.frame.x,c=i?0:o.frame.y,f=l+o.frame.width,h=c+o.frame.height;u[0]=l,u[1]=l+this._leftWidth,u[2]=f-this._rightWidth,u[3]=f,u[4]=c,u[5]=c+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 g=0;g<3;g++){var m=2*g+8*p,v=Math.max(1,u[g+1]-u[g]),_=Math.max(1,u[p+5]-u[p+4]),y=Math.max(1,s[10+m]-s[m]),b=Math.max(1,s[11+m]-s[1+m]);t.drawImage(a,u[g],u[p+4],v,_,s[m],s[1+m],y,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,l=0;l=a.length){if(!e.autoResize)break;a.push(this._generateOneMoreBuffer(e))}var p=a[h];p.uploadDynamic(t,f,d);var g=e._bufferUpdateIDs[h]||0;(c=c||p._updateID 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>>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>>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,l="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,l?1:t.length)),o){for(assert(0==(3&(i=r))),e=r+(-4&a);i>2]=0;for(e=r+a;i>0]=0;return r}if("i8"===l)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i>0],0!=n||r)&&(o++,!r||o!=r););if(r||(r=o),n="",i<128){for(;0>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,n){if(!(0>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"):o=i;e:for(;f>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>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>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>0]=e[r],r+=1}function ta(e,t){for(var r=0;r>0]=e[r]}function Ia(e,t,r){for(var n=0;n>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>>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;oe.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),0t)e.e.length=t;else for(;e.e.length=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-i,n))),8>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>>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=""}))}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>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>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+="="),l.src="data:audio/x-"+a.substr(-3)+";base64,"+e,s(l)}},l.src=i,ad(function(){s(l)})}});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&&0this.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=(e=e.g.e).length)return 0;if(assert(0<=(n=Math.min(e.length-i,n))),e.slice)for(var o=0;o>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>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 l=e.Float32Array;var c=e.Float64Array;var de=new n(r);var Q=new i(r);var pe=new o(r);var ge=new a(r);var me=new s(r);var f=new u(r);var h=new l(r);var ee=new c(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var g=t.ABORT|0;var m=t.cttz_i8|0;var v=0;var _=0;var y=0;var b=0;var x=e.NaN,w=e.Infinity;var T=0,S=0,M=0,P=0,C=0.0,k=0,E=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 Z=e.Math.atan;var J=e.Math.atan2;var $=e.Math.exp;var ne=e.Math.log;var ie=e.Math.ceil;var _e=e.Math.imul;var oe=e.Math.min;var ae=e.Math.clz32;var se=t.abort;var ue=t.assert;var le=t.invoke_iiii;var ce=t.invoke_viiiii;var fe=t.invoke_vi;var he=t.invoke_ii;var ye=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 Ce=t._emscripten_set_main_loop_timing;var ke=t.__ZSt18uncaught_exceptionv;var Ee=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);Q=new i(e);pe=new o(e);ge=new a(e);me=new s(e);f=new u(e);h=new l(e);ee=new c(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 Ze(){return ve|0}function Je(e){e=e|0;ve=e}function $e(e,t){e=e|0;t=t|0;ve=e;p=t}function Qe(e,t){e=e|0;t=t|0;if(!v){v=e;_=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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;g=ve;ve=ve+608|0;h=g+88|0;f=g+72|0;u=g+64|0;s=g+48|0;a=g+24|0;o=g;c=g+96|0;d=g+92|0;l=e+4|0;p=e+8|0;if((pe[l>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[o>>2]=1154;pe[o+4>>2]=2120;pe[o+8>>2]=1133;br(c,1100,o)|0;yr(c,g+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(c,1100,a)|0;yr(c,g+40|0)|0}a=pe[p>>2]|0;if(a>>>0>=t>>>0){p=1;ve=g;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(c,1100,s)|0;yr(c,u)|0}r=_e(t,n)|0;do{if(!i){o=ot(pe[e>>2]|0,r,d,1)|0;if(!o){p=0;ve=g;return p|0}else{pe[e>>2]=o;break}}else{a=at(r,d)|0;if(!a){p=0;ve=g;return p|0}On[i&0](a,pe[e>>2]|0,pe[l>>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(c,1100,f)|0;yr(c,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=g;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,l=0;l=ve;ve=ve+592|0;u=l+48|0;o=l+24|0;i=l;s=l+72|0;a=l+68|0;if(e&7){pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1494;br(s,1100,i)|0;yr(s,l+16|0)|0;u=0;ve=l;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;yr(s,l+40|0)|0;u=0;ve=l;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=l;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;br(s,1100,u)|0;yr(s,l+64|0)|0;u=n;ve=l;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;yr(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>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;br(o,1100,s)|0;yr(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;yr(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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;E=F+160|0;k=F+144|0;M=F+136|0;S=F+120|0;T=F+112|0;w=F+96|0;y=F+88|0;_=F+72|0;v=F+64|0;m=F+48|0;f=F+40|0;d=F+24|0;h=F+16|0;c=F;C=F+440|0;N=F+376|0;j=F+304|0;g=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;l=1;a=0;s=-1;u=0;while(1){i=pe[j+(l<<2)>>2]|0;if(!i)pe[e+28+(l+-1<<2)>>2]=0;else{P=l+-1|0;pe[N+(P<<2)>>2]=o;o=i+o|0;x=16-l|0;pe[e+28+(P<<2)>>2]=(o+-1<>2]=u;pe[g+(l<<2)>>2]=u;a=a>>>0>l>>>0?a:l;s=s>>>0>>0?s:l;u=i+u|0}l=l+1|0;if((l|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[c>>2]=1154;pe[c+4>>2]=644;pe[c+8>>2]=1863;br(C,1100,c)|0;yr(C,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(C,1100,d)|0;yr(C,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[m>>2]=1154;pe[m+4>>2]=2273;pe[m+8>>2]=1261;br(C,1100,m)|0;yr(C,v)|0}b=g+(i<<2)|0;i=pe[b>>2]|0;pe[b>>2]=i+1;if(i>>>0>=u>>>0){pe[_>>2]=1154;pe[_+4>>2]=2277;pe[_+8>>2]=1274;br(C,1100,_)|0;yr(C,y)|0}Q[(pe[o>>2]|0)+(i<<1)>>1]=a}a=a+1|0}while((a|0)!=(t|0));i=de[x>>0]|0;y=(i&255)>>>0>>0?n:0;b=e+8|0;pe[b>>2]=y;_=(y|0)!=0;if(_){v=1<>>0>(pe[i>>2]|0)>>>0){pe[i>>2]=v;a=e+168|0;i=pe[a>>2]|0;do{if(i){m=pe[i+-4>>2]|0;i=i+-8|0;if(!((m|0)!=0?(m|0)==(~pe[i>>2]|0):0)){pe[w>>2]=1154;pe[w+4>>2]=644;pe[w+8>>2]=1863;br(C,1100,w)|0;yr(C,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(C,1100,S)|0;yr(C,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;m=1;do{if(pe[j+(m<<2)>>2]|0){t=y-m|0;g=1<>2]|0;if(o>>>0>=16){pe[k>>2]=1154;pe[k+4>>2]=1953;pe[k+8>>2]=1737;br(C,1100,k)|0;yr(C,E)|0}i=pe[e+28+(o<<2)>>2]|0;if(!i)d=-1;else d=(i+-1|0)>>>(16-m|0);if(s>>>0<=d>>>0){f=(pe[e+96+(o<<2)>>2]|0)-s|0;h=m<<16;do{i=me[(pe[p>>2]|0)+(f+s<<1)>>1]|0;if((ge[r+i>>0]|0|0)!=(m|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;br(C,1100,A)|0;yr(C,O)|0}c=s<>>0>=v>>>0){pe[R>>2]=1154;pe[R+4>>2]=2325;pe[R+8>>2]=1337;br(C,1100,R)|0;yr(C,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(C,1100,D)|0;yr(C,L)|0;i=pe[a>>2]|0}pe[i+(u<<2)>>2]=o;l=l+1|0}while(l>>>0>>0);s=s+1|0}while(s>>>0<=d>>>0)}}m=m+1|0}while(y>>>0>=m>>>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(_){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=y+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 lt(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(((ge[e>>0]|0)<<8|(ge[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((ge[e+2>>0]|0)<<8|(ge[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((ge[e+7>>0]|0)<<16|(ge[e+6>>0]|0)<<24|(ge[e+8>>0]|0)<<8|(ge[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(ge[e+12>>0]|0)<<8|(ge[e+13>>0]|0);pe[r+8>>2]=(ge[e+14>>0]|0)<<8|(ge[e+15>>0]|0);pe[r+12>>2]=ge[e+16>>0];pe[r+16>>2]=ge[e+17>>0];t=e+18|0;n=r+32|0;pe[n>>2]=ge[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]=(ge[e+26>>0]|0)<<16|(ge[e+25>>0]|0)<<24|(ge[e+27>>0]|0)<<8|(ge[e+28>>0]|0);pe[r+28>>2]=(ge[e+30>>0]|0)<<16|(ge[e+29>>0]|0)<<24|(ge[e+31>>0]|0)<<8|(ge[e+32>>0]|0);r=1;return r|0}function ct(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;yr(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,l=0,c=0,f=0,h=0,d=0,p=0;d=ve;ve=ve+640|0;h=d+112|0;f=d+96|0;c=d+88|0;l=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;yr(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;yr(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;yr(a,u)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;br(a,1100,l)|0;yr(a,c)|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;yr(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,l=0,c=0;c=ve;ve=ve+560|0;a=c+40|0;s=c+24|0;t=c;o=c+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;yr(o,c+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{l=t+164|0;pe[l>>2]=0;pe[l+4>>2]=0;pe[l+8>>2]=0;pe[l+12>>2]=0}pe[n>>2]=t;l=t;u=pe[e>>2]|0}else{l=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;yr(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;l=st(l,u,i,e)|0;ve=c;return l|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<>>0>>0&1)|0;e=e>>>0<11?e&255:11;l=st(l,u,i,e)|0;ve=c;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=0,A=0,O=0,R=0,I=0,D=0,L=0;L=ve;ve=ve+800|0;A=L+256|0;E=L+240|0;k=L+232|0;C=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;y=L+120|0;_=L+112|0;v=L+96|0;m=L+88|0;g=L+72|0;f=L+64|0;c=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=gt(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;yr(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>>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=ge[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;yr(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}l=n>>>27;pe[i>>2]=n<<5;pe[h>>2]=r+-5;if((l+-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(l){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=ge[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[c>>2]=1154;pe[c+4>>2]=3199;pe[c+8>>2]=1650;br(I,1100,c)|0;yr(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+(ge[1611+s>>0]|0)>>0]=n>>>29;s=s+1|0}while((s|0)!=(l|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;l=e+16|0;n=0;t:while(1){a=O-n|0;r=mt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=n>>>0){pe[g>>2]=1154;pe[g+4>>2]=903;pe[g+8>>2]=1781;br(I,1100,g)|0;yr(I,m)|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=ge[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;yr(I,_)|0;r=pe[h>>2]|0}i=i<<32-r|pe[l>>2];pe[l>>2]=i}while((r|0)<3);else i=pe[l>>2]|0;pe[l>>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=ge[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[y>>2]=1154;pe[y+4>>2]=3199;pe[y+8>>2]=1650;br(I,1100,y)|0;yr(I,b)|0;r=pe[h>>2]|0}i=i<<32-r|pe[l>>2];pe[l>>2]=i}while((r|0)<7);else i=pe[l>>2]|0;pe[l>>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=ge[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;yr(I,w)|0;r=pe[h>>2]|0}i=o<<32-r|pe[l>>2];pe[l>>2]=i;if((r|0)<2)i=r;else break}}else{i=pe[l>>2]|0;r=o}pe[l>>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=ge[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;yr(I,S)|0;r=pe[h>>2]|0}i=o<<32-r|pe[l>>2];pe[l>>2]=i;if((r|0)<6)i=r;else break}}else{i=pe[l>>2]|0;r=o}pe[l>>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;yr(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[C>>2]=1154;pe[C+4>>2]=903;pe[C+8>>2]=1781;br(I,1100,C)|0;yr(I,k)|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[E>>2]=1154;pe[E+4>>2]=3140;pe[E+8>>2]=1632;br(I,1100,E)|0;yr(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 gt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;s=c+16|0;a=c;o=c+24|0;if(!t){l=0;ve=c;return l|0}if(t>>>0<=16){l=vt(e,t)|0;ve=c;return l|0}u=vt(e,t+-16|0)|0;l=e+20|0;t=pe[l>>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=ge[e>>0]|0}t=t+8|0;pe[l>>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;yr(o,s)|0;t=pe[l>>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[l>>2]=t+-16;l=e>>>16|u<<16;ve=c;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0;y=ve;ve=ve+608|0;g=y+88|0;p=y+72|0;h=y+64|0;f=y+48|0;c=y+40|0;d=y+24|0;l=y+16|0;u=y;v=y+96|0;m=pe[t+20>>2]|0;_=e+20|0;s=pe[_>>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>>0;if((s|0)>=16){if(r){pe[a>>2]=n+1;r=ge[n>>0]|0}else r=0;pe[_>>2]=s+8;a=e+16|0;o=r<<24-s|pe[a>>2];pe[a>>2]=o;break}if(r){o=(ge[n>>0]|0)<<8;r=n+1|0}else{o=0;r=n}if(r>>>0>>0){n=ge[r>>0]|0;r=r+1|0}else n=0;pe[a>>2]=r;pe[_>>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[m+16>>2]|0)>>>0){n=pe[(pe[m+168>>2]|0)+(o>>>(32-(pe[m+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;yr(v,l)|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;yr(v,c)|0}if((ge[(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;yr(v,h)|0}}else{n=pe[m+20>>2]|0;while(1){r=n+-1|0;if(i>>>0>(pe[m+28+(r<<2)>>2]|0)>>>0)n=n+1|0;else break}r=(o>>>(32-n|0))+(pe[m+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=me[(pe[m+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;yr(v,g)|0;_=0;ve=y;return _|0}}while(0);pe[a>>2]=pe[a>>2]<>2]=(pe[_>>2]|0)-n;_=r;ve=y;return _|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,l=0,c=0;c=ve;ve=ve+560|0;s=c+40|0;u=c+24|0;r=c;a=c+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;yr(a,c+16|0)|0}l=e+20|0;r=pe[l>>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<>2]=o;t=s-t|0;pe[l>>2]=t;ve=c;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=ge[e>>0]|0}r=r+8|0;pe[l>>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;yr(a,s)|0;r=pe[l>>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<>2]=s;t=r-t|0;pe[l>>2]=t;ve=c;return u|0}function _t(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0;p=ve;ve=ve+544|0;h=p+16|0;f=p;c=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}l=at(300,0)|0;if(!l){d=0;ve=p;return d|0}pe[l>>2]=519686845;r=l+4|0;pe[r>>2]=0;n=l+8|0;pe[n>>2]=0;u=l+88|0;i=l+136|0;o=l+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;g=l+184|0;a=l+208|0;s=l+232|0;m=l+252|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+12>>0]=0;m=l+268|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+12>>0]=0;m=l+284|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+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[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;pe[g+12>>2]=0;pe[g+16>>2]=0;de[g+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?((ge[e>>0]|0)<<8|(ge[e+1>>0]|0)|0)==18552:0)?((ge[e+2>>0]|0)<<8|(ge[e+3>>0]|0))>>>0>=74:0)?((ge[e+7>>0]|0)<<16|(ge[e+6>>0]|0)<<24|(ge[e+8>>0]|0)<<8|(ge[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[n>>2]=t;if(Ct(l)|0){r=pe[u>>2]|0;if((ge[r+39>>0]|0)<<8|(ge[r+40>>0]|0)){if(!(kt(l)|0))break;if(!(Et(l)|0))break;r=pe[u>>2]|0}if(!((ge[r+55>>0]|0)<<8|(ge[r+56>>0]|0))){m=l;ve=p;return m|0}if(At(l)|0?Ot(l)|0:0){m=l;ve=p;return m|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Nt(l);if(!(l&7)){Dn[pe[104>>2]&1](l,0,0,1,pe[27]|0)|0;m=0;ve=p;return m|0}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(c,1100,f)|0;yr(c,h)|0;m=0;ve=p;return m|0}return 0}function yt(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,l=0,c=0;c=ve;ve=ve+544|0;l=c;u=c+24|0;o=pe[e+88>>2]|0;s=(ge[o+70+(i<<2)+1>>0]|0)<<16|(ge[o+70+(i<<2)>>0]|0)<<24|(ge[o+70+(i<<2)+2>>0]|0)<<8|(ge[o+70+(i<<2)+3>>0]|0);a=i+1|0;if(a>>>0<(ge[o+16>>0]|0)>>>0)o=(ge[o+70+(a<<2)+1>>0]|0)<<16|(ge[o+70+(a<<2)>>0]|0)<<24|(ge[o+70+(a<<2)+2>>0]|0)<<8|(ge[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;l=o-s|0;l=bt(e,u,l,t,r,n,i)|0;ve=c;return l|0}pe[l>>2]=1154;pe[l+4>>2]=3704;pe[l+8>>2]=1792;br(u,1100,l)|0;yr(u,c+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=o-s|0;l=bt(e,u,l,t,r,n,i)|0;ve=c;return l|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,l=0,c=0;c=pe[e+88>>2]|0;u=((ge[c+12>>0]|0)<<8|(ge[c+13>>0]|0))>>>a;l=((ge[c+14>>0]|0)<<8|(ge[c+15>>0]|0))>>>a;u=u>>>0>1?(u+3|0)>>>2:1;l=l>>>0>1?(l+3|0)>>>2:1;c=c+18|0;a=de[c>>0]|0;a=_e(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((_e(a,l)|0)>>>0>i>>>0){e=0;return e|0}o=(u+1|0)>>>1;s=(l+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(ge[c>>0]|0|0){case 0:{Rt(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{It(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 9:{Dt(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 8:case 7:{Lt(e,n,i,a,u,l,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;lt(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;lt(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;lt(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;lt(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,l=0;u=ve;ve=ve+576|0;a=u+56|0;o=u+40|0;i=u+64|0;l=u;pe[l>>2]=40;lt(e,t,l)|0;n=(((pe[l+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[l+8>>2]|0)>>>r)+3|0)>>>2;r=l+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;yr(i,a)|0;e=0}l=_e(_e(t,n)|0,e)|0;ve=u;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;p=ve;ve=ve+608|0;h=p+80|0;d=p+64|0;s=p+56|0;a=p+40|0;c=p+88|0;g=p;f=p+84|0;pe[g>>2]=40;lt(e,t,g)|0;u=(((pe[g+4>>2]|0)>>>i)+3|0)>>>2;g=g+32|0;o=pe[g+4>>2]|0;do{switch(pe[g>>2]|0){case 0:{if(!o)o=8;else l=13;break}case 1:{if(!o)l=12;else l=13;break}case 2:{if(!o)l=12;else l=13;break}case 3:{if(!o)l=12;else l=13;break}case 4:{if(!o)l=12;else l=13;break}case 5:{if(!o)l=12;else l=13;break}case 6:{if(!o)l=12;else l=13;break}case 7:{if(!o)l=12;else l=13;break}case 8:{if(!o)l=12;else l=13;break}case 9:{if(!o)o=8;else l=13;break}default:l=13}}while(0);if((l|0)==12)o=16;else if((l|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;br(c,1100,a)|0;yr(c,s)|0;o=0}s=_e(o,u)|0;a=_t(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)yt(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(c,1100,d)|0;yr(c,h)|0;ve=p;return}}function Ct(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=(ge[i+68>>0]|0)<<8|(ge[i+67>>0]|0)<<16|(ge[i+69>>0]|0);r=n+t|0;i=(ge[i+65>>0]|0)<<8|(ge[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(!((ge[t+39>>0]|0)<<8|(ge[t+40>>0]|0))){if(!((ge[t+55>>0]|0)<<8|(ge[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((ge[t+55>>0]|0)<<8|(ge[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 kt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=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=(ge[t+39>>0]|0)<<8|(ge[t+40>>0]|0);c=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>>0){if(it(c,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[c>>2]|0)+(t<<2)|0,0,h-t<<2|0)|0;t=pe[n>>2]|0}pe[o>>2]=h}l=e+92|0;r=pe[e+4>>2]|0;n=(ge[t+34>>0]|0)<<8|(ge[t+33>>0]|0)<<16|(ge[t+35>>0]|0);i=r+n|0;t=(ge[t+37>>0]|0)<<8|(ge[t+36>>0]|0)<<16|(ge[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[l>>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(l,d)|0?(f=d+24|0,pt(l,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;yr(a,u)|0}if(!h)t=1;else{n=0;i=0;o=0;t=0;a=0;e=0;s=0;r=pe[c>>2]|0;while(1){n=(mt(l,d)|0)+n&31;i=(mt(l,f)|0)+i&63;o=(mt(l,d)|0)+o&31;t=(mt(l,d)|0)+t|0;a=(mt(l,f)|0)+a&63;e=(mt(l,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 Et(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=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=(ge[i+47>>0]|0)<<8|(ge[i+48>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+42>>0]|0)<<8|(ge[i+41>>0]|0)<<16|(ge[i+43>>0]|0);n=t+r|0;i=(ge[i+45>>0]|0)<<8|(ge[i+44>>0]|0)<<16|(ge[i+46>>0]|0);if(!i){S=0;ve=M;return S|0}pe[y>>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(y,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));_=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>>0)if(it(_,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[_>>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;yr(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;l=x+32|0;c=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;g=x+56|0;m=x+60|0;v=0;r=pe[_>>2]|0;while(1){t=0;do{P=mt(y,S)|0;_=t<<1;C=x+(_<<2)|0;pe[C>>2]=(pe[C>>2]|0)+(pe[w+(P<<2)>>2]|0)&3;_=x+((_|1)<<2)|0;pe[_>>2]=(pe[_>>2]|0)+(pe[T+(P<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(ge[1725+(pe[n>>2]|0)>>0]|0)<<2|(ge[1725+(pe[x>>2]|0)>>0]|0)|(ge[1725+(pe[i>>2]|0)>>0]|0)<<4|(ge[1725+(pe[e>>2]|0)>>0]|0)<<6|(ge[1725+(pe[o>>2]|0)>>0]|0)<<8|(ge[1725+(pe[a>>2]|0)>>0]|0)<<10|(ge[1725+(pe[s>>2]|0)>>0]|0)<<12|(ge[1725+(pe[u>>2]|0)>>0]|0)<<14|(ge[1725+(pe[l>>2]|0)>>0]|0)<<16|(ge[1725+(pe[c>>2]|0)>>0]|0)<<18|(ge[1725+(pe[f>>2]|0)>>0]|0)<<20|(ge[1725+(pe[h>>2]|0)>>0]|0)<<22|(ge[1725+(pe[d>>2]|0)>>0]|0)<<24|(ge[1725+(pe[p>>2]|0)>>0]|0)<<26|(ge[1725+(pe[g>>2]|0)>>0]|0)<<28|(ge[1725+(pe[m>>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);C=t;ve=M;return C|0}function At(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=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;c=(ge[i+55>>0]|0)<<8|(ge[i+56>>0]|0);l=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+50>>0]|0)<<8|(ge[i+49>>0]|0)<<16|(ge[i+51>>0]|0);n=t+r|0;i=(ge[i+53>>0]|0)<<8|(ge[i+52>>0]|0)<<16|(ge[i+54>>0]|0);if(!i){f=0;ve=h;return f|0}pe[l>>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(l,f)|0){o=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(c|0)){if(t>>>0<=c>>>0){do{if((pe[e+276>>2]|0)>>>0>>0)if(it(o,c,(t+1|0)==(c|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,c-t<<1|0)|0}pe[r>>2]=c}if(!c){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;yr(a,u)|0;t=1;break}r=0;n=0;i=0;t=pe[o>>2]|0;while(1){u=mt(l,f)|0;r=u+r&255;n=(mt(l,f)|0)+n&255;Q[t>>1]=n<<8|r;i=i+1|0;if((i|0)==(c|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=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=(ge[i+63>>0]|0)<<8|(ge[i+64>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+58>>0]|0)<<8|(ge[i+57>>0]|0)<<16|(ge[i+59>>0]|0);n=t+r|0;i=(ge[i+61>>0]|0)<<8|(ge[i+60>>0]|0)<<16|(ge[i+62>>0]|0);if(!i){S=0;ve=M;return S|0}pe[y>>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(y,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));_=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>>0)if(it(_,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[_>>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;yr(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;l=x+32|0;c=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;g=x+56|0;m=x+60|0;v=0;r=pe[_>>2]|0;while(1){t=0;do{P=mt(y,S)|0;_=t<<1;C=x+(_<<2)|0;pe[C>>2]=(pe[C>>2]|0)+(pe[w+(P<<2)>>2]|0)&7;_=x+((_|1)<<2)|0;pe[_>>2]=(pe[_>>2]|0)+(pe[T+(P<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);P=ge[1729+(pe[a>>2]|0)>>0]|0;Q[r>>1]=(ge[1729+(pe[n>>2]|0)>>0]|0)<<3|(ge[1729+(pe[x>>2]|0)>>0]|0)|(ge[1729+(pe[i>>2]|0)>>0]|0)<<6|(ge[1729+(pe[e>>2]|0)>>0]|0)<<9|(ge[1729+(pe[o>>2]|0)>>0]|0)<<12|P<<15;C=ge[1729+(pe[f>>2]|0)>>0]|0;Q[r+2>>1]=(ge[1729+(pe[s>>2]|0)>>0]|0)<<2|P>>>1|(ge[1729+(pe[u>>2]|0)>>0]|0)<<5|(ge[1729+(pe[l>>2]|0)>>0]|0)<<8|(ge[1729+(pe[c>>2]|0)>>0]|0)<<11|C<<14;Q[r+4>>1]=(ge[1729+(pe[h>>2]|0)>>0]|0)<<1|C>>>2|(ge[1729+(pe[d>>2]|0)>>0]|0)<<4|(ge[1729+(pe[p>>2]|0)>>0]|0)<<7|(ge[1729+(pe[g>>2]|0)>>0]|0)<<10|(ge[1729+(pe[m>>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);C=t;ve=M;return C|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,le=0,ce=0,fe=0,he=0;ce=ve;ve=ve+720|0;le=ce+184|0;se=ce+168|0;ae=ce+160|0;oe=ce+144|0;ie=ce+136|0;ne=ce+120|0;re=ce+112|0;ee=ce+96|0;Q=ce+88|0;$=ce+72|0;J=ce+64|0;Z=ce+48|0;K=ce+40|0;ue=ce+24|0;te=ce+16|0;V=ce;G=ce+208|0;W=ce+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=ce;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;C=Y+2|0;k=Y+3|0;E=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){_=w&1;u=(_|0)==0;v=(_<<5^32)+-16|0;_=(_<<1^2)+-1|0;b=u?a:-1;l=u?0:F;e=(w|0)==(X|0);y=R&e;if((l|0)!=(b|0)){m=R&e^1;g=u?x:x+E|0;while(1){if((i|0)==1)i=mt(D,L)|0|512;p=i&7;i=i>>>3;u=ge[1823+p>>0]|0;e=0;do{h=(mt(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;yr(G,te)|0}pe[W+(e<<2)>>2]=pe[(pe[j>>2]|0)+(o<<2)>>2];e=e+1|0}while(e>>>0>>0);d=O&(l|0)==(F|0);if(y|d){h=0;do{c=_e(h,n)|0;e=g+c|0;u=(h|0)==0|m;f=h<<1;he=(mt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;do{if(d){if(!u){fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((ge[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;yr(G,ae)|0}pe[g+(c+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r}else{if(!u){fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((ge[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;yr(G,ie)|0}pe[g+(c+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;pe[g+(c+8)>>2]=pe[W+((ge[(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;yr(G,le)|0}pe[g+(c+12)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}}while(0);h=h+1|0}while((h|0)!=2)}else{pe[g>>2]=pe[W+((ge[1831+(p<<2)>>0]|0)<<2)>>2];fe=(mt(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;yr(G,K)|0}pe[g+4>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+8>>2]=pe[W+((ge[1831+(p<<2)+1>>0]|0)<<2)>>2];fe=(mt(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[Z>>2]=1154;pe[Z+4>>2]=903;pe[Z+8>>2]=1781;br(G,1100,Z)|0;yr(G,J)|0}pe[g+12>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+(Y<<2)>>2]=pe[W+((ge[1831+(p<<2)+2>>0]|0)<<2)>>2];fe=(mt(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[$>>2]=1154;pe[$+4>>2]=903;pe[$+8>>2]=1781;br(G,1100,$)|0;yr(G,Q)|0}pe[g+(P<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+(C<<2)>>2]=pe[W+((ge[1831+(p<<2)+3>>0]|0)<<2)>>2];fe=(mt(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;yr(G,re)|0}pe[g+(k<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}l=l+_|0;if((l|0)==(b|0))break;else g=g+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=ce;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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,le=0,ce=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;ce=fe+24|0;le=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;J=pe[q>>2]|0;$=e+272|0;Q=pe[$>>2]|0;r=pe[e+88>>2]|0;U=(ge[r+63>>0]|0)<<8|(ge[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;Z=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;E=e+268|0;A=V<<5;C=r&255;r=0;i=0;o=0;e=0;u=1;k=0;do{if(!X){M=pe[t+(k<<2)>>2]|0;P=0;while(1){T=P&1;l=(T|0)==0;w=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;S=l?a:-1;c=l?0:V;if((c|0)!=(S|0)){x=j|(P|0)!=(H|0);b=l?M:M+A|0;while(1){if((u|0)==1)u=mt(G,W)|0|512;y=u&7;u=u>>>3;f=ge[1823+y>>0]|0;l=0;do{v=(mt(G,N)|0)+i|0;_=v-Q|0;i=_>>31;i=i&v|_&~i;if((pe[$>>2]|0)>>>0<=i>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(te,1100,ne)|0;yr(te,le)|0}pe[ee+(l<<2)>>2]=me[(pe[E>>2]|0)+(i<<1)>>1];l=l+1|0}while(l>>>0>>0);l=0;do{v=(mt(G,D)|0)+e|0;_=v-z|0;e=_>>31;e=e&v|_&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[ce>>2]=1154;pe[ce+4>>2]=903;pe[ce+8>>2]=1781;br(te,1100,ce)|0;yr(te,ie)|0}pe[re+(l<<2)>>2]=pe[(pe[L>>2]|0)+(e<<2)>>2];l=l+1|0}while(l>>>0>>0);_=F|(c|0)!=(V|0);m=0;v=b;while(1){g=x|(m|0)==0;p=m<<1;h=0;d=v;while(1){f=(mt(G,K)|0)+r|0;l=f-U|0;r=l>>31;r=r&f|l&~r;l=(mt(G,Z)|0)+o|0;f=l-J|0;o=f>>31;o=o&l|f&~o;if((_|(h|0)==0)&g){l=ge[h+p+(1831+(y<<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;yr(te,ae)|0}he=pe[R>>2]|0;pe[d>>2]=(me[he+(f<<1)>>1]|0)<<16|pe[ee+(l<<2)>>2];pe[d+4>>2]=(me[he+(f+2<<1)>>1]|0)<<16|(me[he+(f+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(l<<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;yr(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}m=m+1|0;if((m|0)==2)break;else v=v+n|0}c=c+T|0;if((c|0)==(S|0))break;else b=b+w|0}}P=P+1|0;if((P|0)==(s|0))break;else M=M+Y|0}}k=k+1|0}while((k|0)!=(C|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0;J=ve;ve=ve+608|0;V=J+64|0;W=J+48|0;G=J+40|0;Z=J+24|0;K=J+16|0;Y=J;H=J+88|0;q=J+72|0;I=e+272|0;D=pe[I>>2]|0;r=pe[e+88>>2]|0;L=(ge[r+63>>0]|0)<<8|(ge[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=J;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;E=e+288|0;A=e+284|0;O=e+164|0;C=e+268|0;k=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;y=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;x=i?a:-1;u=i?0:U;if((u|0)!=(x|0)){_=R|(T|0)!=(j|0);v=i?w:w+k|0;while(1){if((e|0)==1)e=mt(B,z)|0|512;m=e&7;e=e>>>3;l=ge[1823+m>>0]|0;i=0;do{p=(mt(B,O)|0)+o|0;g=p-D|0;o=g>>31;o=o&p|g&~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;yr(H,K)|0}pe[q+(i<<2)>>2]=me[(pe[C>>2]|0)+(o<<1)>>1];i=i+1|0}while(i>>>0>>0);g=(u|0)==(U|0)&M;d=0;p=v;while(1){h=_|(d|0)==0;f=d<<1;i=(mt(B,X)|0)+r|0;c=i-L|0;l=c>>31;l=l&i|c&~l;if(h){r=ge[1831+(m<<2)+f>>0]|0;i=l*3|0;if((pe[E>>2]|0)>>>0<=i>>>0){pe[Z>>2]=1154;pe[Z+4>>2]=903;pe[Z+8>>2]=1781;br(H,1100,Z)|0;yr(H,G)|0}c=pe[A>>2]|0;pe[p>>2]=(me[c+(i<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(me[c+(i+2<<1)>>1]|0)<<16|(me[c+(i+1<<1)>>1]|0)}c=p+8|0;i=(mt(B,X)|0)+l|0;l=i-L|0;r=l>>31;r=r&i|l&~r;if(!(g|h^1)){i=ge[(f|1)+(1831+(m<<2))>>0]|0;l=r*3|0;if((pe[E>>2]|0)>>>0<=l>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;br(H,1100,W)|0;yr(H,V)|0}h=pe[A>>2]|0;pe[c>>2]=(me[h+(l<<1)>>1]|0)<<16|pe[q+(i<<2)>>2];pe[p+12>>2]=(me[h+(l+2<<1)>>1]|0)<<16|(me[h+(l+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+y|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=J;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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=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;Q=ae+40|0;oe=ae+24|0;ie=ae+16|0;$=ae;J=ae+128|0;K=ae+112|0;Z=ae+96|0;B=e+272|0;z=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(ge[r+63>>0]|0)<<8|(ge[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){k=pe[t+(O<<2)>>2]|0;E=0;while(1){P=E&1;l=(P|0)==0;M=(P<<6^64)+-32|0;P=(P<<1^2)+-1|0;C=l?a:-1;c=l?0:W;if((c|0)!=(C|0)){S=j|(E|0)!=(q|0);T=l?k:k+I|0;while(1){if((u|0)==1)u=mt(Y,G)|0|512;w=u&7;u=u>>>3;f=ge[1823+w>>0]|0;l=0;do{b=(mt(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[$>>2]=1154;pe[$+4>>2]=903;pe[$+8>>2]=1781;br(J,1100,$)|0;yr(J,ie)|0}pe[K+(l<<2)>>2]=me[(pe[R>>2]|0)+(e<<1)>>1];l=l+1|0}while(l>>>0>>0);l=0;do{b=(mt(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(J,1100,oe)|0;yr(J,Q)|0}pe[Z+(l<<2)>>2]=me[(pe[R>>2]|0)+(i<<1)>>1];l=l+1|0}while(l>>>0>>0);x=F|(c|0)!=(W|0);y=0;b=T;while(1){_=S|(y|0)==0;v=y<<1;g=0;m=b;while(1){p=(mt(Y,V)|0)+o|0;d=p-U|0;o=d>>31;o=o&p|d&~o;d=(mt(Y,V)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((x|(g|0)==0)&_){d=ge[g+v+(1831+(w<<2))>>0]|0;p=o*3|0;l=pe[D>>2]|0;if(l>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(J,1100,ee)|0;yr(J,te)|0;l=pe[D>>2]|0}f=pe[L>>2]|0;h=r*3|0;if(l>>>0>h>>>0)l=f;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;br(J,1100,re)|0;yr(J,ne)|0;l=pe[L>>2]|0}pe[m>>2]=(me[f+(p<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[m+4>>2]=(me[f+(p+2<<1)>>1]|0)<<16|(me[f+(p+1<<1)>>1]|0);pe[m+8>>2]=(me[l+(h<<1)>>1]|0)<<16|pe[Z+(d<<2)>>2];pe[m+12>>2]=(me[l+(h+2<<1)>>1]|0)<<16|(me[l+(h+1<<1)>>1]|0)}g=g+1|0;if((g|0)==2)break;else m=m+16|0}y=y+1|0;if((y|0)==2)break;else b=b+n|0}c=c+P|0;if((c|0)==(C|0))break;else T=T+M|0}}E=E+1|0;if((E|0)==(s|0))break;else k=k+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,l=0,c=0,f=0,h=0;h=ve;ve=ve+608|0;f=h+88|0;c=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;l=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(l,1100,n)|0;yr(l,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(l,1100,a)|0;yr(l,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(l,1100,s)|0;yr(l,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[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;br(l,1100,c)|0;yr(l,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=$t(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 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);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);else{e=pe[e+8>>2]|0;Ln[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,n)}return}function $t(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,l=0,c=0,f=0,h=0,d=0;d=ve;ve=ve+64|0;h=d;f=pe[e>>2]|0;c=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;l=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(l|0));Q[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,c,c,1,0);n=(pe[t>>2]|0)==1?c:0}else{kn[pe[(pe[f>>2]|0)+24>>2]&3](f,h,c,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 Qt(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;kn[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))Qt(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))Qt(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=Cn[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=($t(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(Cn[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 lr(e){e=e|0;var t=0,r=0;t=0;while(1){if((ge[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 cr(){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=cr()|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=cr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function gr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function mr(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=mr(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 _r(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>>0){n=Cn[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((Cn[pe[r+36>>2]&7](r,e,n)|0)>>>0>>0)break e;t=t-n|0;e=e+n|0;i=pe[a>>2]|0}else{i=o;n=0}}while(0);$r(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 yr(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;g=ve;ve=ve+224|0;f=g+120|0;p=g+80|0;d=g;h=g+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)l=Sr(e)|0;else l=0;r=pe[e>>2]|0;c=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){Cn[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|c;if(l)Mr(e);r=(r&32|0)==0?n:-1}ve=g;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,l=0,c=0;c=ve;ve=ve+128|0;i=c+112|0;l=c;o=l;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=cr()|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[l+48>>2]=u;e=l+20|0;pe[e>>2]=i;pe[l+44>>2]=i;t=i+u|0;i=l+16|0;pe[i>>2]=t;pe[l+28>>2]=t;t=xr(l,r,n)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[i>>2]|0))<<31>>31)>>0]=0}}ve=c;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>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[n>>2]=o+1;de[o>>0]=a;break}if((Cn[pe[e+36>>2]&7](e,s,1)|0)==1)r=ge[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Cr(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 kr(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 Er(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,l=0,c=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+48|0;f=p+16|0;c=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;l=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[c>>2]=pe[u>>2];pe[c+4>>2]=n;pe[c+8>>2]=t;a=fr(Ge(146,c|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[l>>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[l>>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=Er(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=_e(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?(Cn[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>>0)Cn[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,l=0.0,c=0,f=0,h=0,d=0,p=0.0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0;$=ve;ve=ve+624|0;W=$+24|0;K=$+16|0;V=$+588|0;X=$+576|0;G=$;B=$+536|0;J=$+8|0;Z=$+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;z=J+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;g=t;a=0;t=0;e:while(1){do{if((o|0)>-1)if((a|0)>(2147483647-o|0)){o=cr()|0;pe[o>>2]=75;o=-1;break}else{o=a+o|0;break}}while(0);a=de[g>>0]|0;if(!(a<<24>>24)){E=245;break}else s=g;t:while(1){switch(a<<24>>24){case 37:{a=s;E=9;break t}case 0:{a=s;break t}default:{}}k=s+1|0;a=de[k>>0]|0;s=k}t:do{if((E|0)==9)while(1){E=0;if((de[a+1>>0]|0)!=37)break t;s=s+1|0;a=a+2|0;if((de[a>>0]|0)==37)E=9;else break}}while(0);v=s-g|0;if(A?(pe[e>>2]&32|0)==0:0)_r(g,v,e)|0;if((s|0)!=(g|0)){g=a;a=v;continue}c=a+1|0;s=de[c>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){k=(de[a+2>>0]|0)==36;c=k?a+3|0:c;s=de[c>>0]|0;d=k?u:-1;t=k?1:t}else d=-1;a=s<<24>>24;t:do{if((a&-32|0)==32){u=0;while(1){if(!(1<>24)+-32|u;c=c+1|0;s=de[c>>0]|0;a=s<<24>>24;if((a&-32|0)!=32){f=u;a=c;break}}}else{f=0;a=c}}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){m=f;a=u;t=0;k=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){m=f|8192;k=0-s|0}else{m=f;k=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{m=f;k=s}}else{m=f;k=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){c=(s<<24>>24)+-48|0;if(c>>>0<10){a=u;s=0}else{a=u;c=0;break}while(1){s=(s*10|0)+c|0;a=a+1|0;c=(de[a>>0]|0)+-48|0;if(c>>>0>=10){c=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;c=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);c=pe[a>>2]|0;pe[r>>2]=a+4;a=u}else{a=u;c=0}}else c=-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{C=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 E=52;else{if(u){pe[i+(d<<2)>>2]=f;M=n+(d<<3)|0;P=pe[M+4>>2]|0;E=G;pe[E>>2]=pe[M>>2];pe[E+4>>2]=P;E=52;break}if(!A){o=0;break e}jr(G,f,r)}}while(0);if((E|0)==52?(E=0,!A):0){g=C;a=v;continue}d=de[a>>0]|0;d=(h|0)!=0&(d&15|0)==3?d&-33:d;u=m&-65537;P=(m&8192|0)==0?m:u;t:do{switch(d|0){case 110:switch(h|0){case 0:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 1:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 2:{g=pe[G>>2]|0;pe[g>>2]=o;pe[g+4>>2]=((o|0)<0)<<31>>31;g=C;a=v;continue e}case 3:{Q[pe[G>>2]>>1]=o;g=C;a=v;continue e}case 4:{de[pe[G>>2]>>0]=o;g=C;a=v;continue e}case 6:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 7:{g=pe[G>>2]|0;pe[g>>2]=o;pe[g+4>>2]=((o|0)<0)<<31>>31;g=C;a=v;continue e}default:{g=C;a=v;continue e}}case 112:{h=P|8;c=c>>>0>8?c:8;d=120;E=64;break}case 88:case 120:{h=P;E=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;E=77}else{h=F-a+1|0;s=P;c=(c|0)<(h|0)?h:c;h=0;f=5839;E=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;E=76;break t}if(!(P&2048)){f=P&1;u=f;f=(f|0)==0?5839:5841;E=76}else{u=1;f=5840;E=76}break}case 117:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;f=5839;E=76;break}case 99:{de[B>>0]=pe[G>>2];g=B;s=1;h=0;d=5839;a=O;break}case 109:{a=cr()|0;a=lr(pe[a>>2]|0)|0;E=82;break}case 115:{a=pe[G>>2]|0;a=(a|0)!=0?a:5849;E=82;break}case 67:{pe[J>>2]=pe[G>>2];pe[z>>2]=0;pe[G>>2]=J;c=-1;E=86;break}case 83:{if(!c){Br(e,32,k,0,P);a=0;E=98}else E=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{l=+ee[G>>3];pe[K>>2]=0;ee[te>>3]=l;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{l=-l;S=1;M=5856}ee[te>>3]=l;T=pe[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){p=+dr(l,K)*2.0;s=p!=0.0;if(s)pe[K>>2]=(pe[K>>2]|0)+-1;x=d|32;if((x|0)==97){g=d&32;v=(g|0)==0?M:M+9|0;m=S|2;a=12-c|0;do{if(!(c>>>0>11|(a|0)==0)){l=8.0;do{a=a+-1|0;l=l*16.0}while((a|0)!=0);if((de[v>>0]|0)==45){l=-(l+(-p-l));break}else{l=p+l-l;break}}else l=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=(c|0)<1;u=(P&8|0)==0;s=V;while(1){M=~~l;a=s+1|0;de[s>>0]=ge[5823+M>>0]|g;l=(l-+(M|0))*16.0;do{if((a-q|0)==1){if(u&(f&l==0.0))break;de[a>>0]=46;a=s+2|0}}while(0);if(!(l!=0.0))break;else s=a}c=(c|0)!=0&(R+a|0)<(c|0)?I+c-h|0:Y-h+a|0;u=c+m|0;Br(e,32,k,u,P);if(!(pe[e>>2]&32))_r(v,m,e)|0;Br(e,48,k,u,P^65536);a=a-q|0;if(!(pe[e>>2]&32))_r(V,a,e)|0;s=H-h|0;Br(e,48,c-(a+s)|0,0,0);if(!(pe[e>>2]&32))_r(h,s,e)|0;Br(e,32,k,u,P^8192);a=(u|0)<(k|0)?k:u;break}a=(c|0)<0?6:c;if(s){s=(pe[K>>2]|0)+-28|0;pe[K>>2]=s;l=p*268435456.0}else{l=p;s=pe[K>>2]|0}T=(s|0)<0?W:D;w=T;s=T;do{b=~~l>>>0;pe[s>>2]=b;s=s+4|0;l=(l-+(b>>>0))*1.0e9}while(l!=0.0);u=s;s=pe[K>>2]|0;if((s|0)>0){f=T;while(1){h=(s|0)>29?29:s;c=u+-4|0;do{if(c>>>0>>0)c=f;else{s=0;do{b=Zr(pe[c>>2]|0,0,h|0)|0;b=Jr(b|0,re|0,s|0,0)|0;s=re;y=sn(b|0,s|0,1e9,0)|0;pe[c>>2]=y;s=an(b|0,s|0,1e9,0)|0;c=c+-4|0}while(c>>>0>=f>>>0);if(!s){c=f;break}c=f+-4|0;pe[c>>2]=s}}while(0);while(1){if(u>>>0<=c>>>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=c;else break}}else c=T;if((s|0)<0){v=((a+25|0)/9|0)+1|0;_=(x|0)==102;g=c;while(1){m=0-s|0;m=(m|0)>9?9:m;do{if(g>>>0>>0){s=(1<>>m;c=0;h=g;do{b=pe[h>>2]|0;pe[h>>2]=(b>>>m)+c;c=_e(b&s,f)|0;h=h+4|0}while(h>>>0>>0);s=(pe[g>>2]|0)==0?g+4|0:g;if(!c){c=s;break}pe[u>>2]=c;c=s;u=u+4|0}else c=(pe[g>>2]|0)==0?g+4|0:g}while(0);s=_?T:c;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[K>>2]|0)+m|0;pe[K>>2]=s;if((s|0)>=0){g=c;break}else g=c}}else g=c;do{if(g>>>0>>0){s=(w-g>>2)*9|0;f=pe[g>>2]|0;if(f>>>0<10)break;else c=10;do{c=c*10|0;s=s+1|0}while(f>>>0>=c>>>0)}else s=0}while(0);y=(x|0)==103;b=(a|0)!=0;c=a-((x|0)!=102?s:0)+((b&y)<<31>>31)|0;if((c|0)<(((u-w>>2)*9|0)+-9|0)){h=c+9216|0;_=(h|0)/9|0;c=T+(_+-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;m=pe[c>>2]|0;v=(m>>>0)%(f>>>0)|0;if((v|0)==0?(T+(_+-1022<<2)|0)==(u|0):0)f=g;else E=163;do{if((E|0)==163){E=0;p=(((m>>>0)/(f>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;h=(f|0)/2|0;do{if(v>>>0>>0)l=.5;else{if((v|0)==(h|0)?(T+(_+-1022<<2)|0)==(u|0):0){l=1.0;break}l=1.5}}while(0);do{if(S){if((de[M>>0]|0)!=45)break;p=-p;l=-l}}while(0);h=m-v|0;pe[c>>2]=h;if(!(p+l!=p)){f=g;break}x=h+f|0;pe[c>>2]=x;if(x>>>0>999999999){s=g;while(1){f=c+-4|0;pe[c>>2]=0;if(f>>>0>>0){s=s+-4|0;pe[s>>2]=0}x=(pe[f>>2]|0)+1|0;pe[f>>2]=x;if(x>>>0>999999999)c=f;else{g=s;c=f;break}}}s=(w-g>>2)*9|0;h=pe[g>>2]|0;if(h>>>0<10){f=g;break}else f=10;do{f=f*10|0;s=s+1|0}while(h>>>0>=f>>>0);f=g}}while(0);x=c+4|0;g=f;u=u>>>0>x>>>0?x:u}v=0-s|0;while(1){if(u>>>0<=g>>>0){_=0;x=u;break}c=u+-4|0;if(!(pe[c>>2]|0))u=c;else{_=1;x=u;break}}do{if(y){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(_){u=pe[x+-4>>2]|0;if(!u){c=9;break}if(!((u>>>0)%10|0)){f=10;c=0}else{c=0;break}do{f=f*10|0;c=c+1|0}while(((u>>>0)%(f>>>0)|0|0)==0)}else c=9}while(0);u=((x-w>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-c|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}else{u=u+s-c|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}}else u=P&8}while(0);m=a|u;f=(m|0)!=0&1;h=(d|32|0)==102;if(h){s=(s|0)>0?s:0;d=0}else{c=(s|0)<0?v:s;c=Fr(c,((c|0)<0)<<31>>31,U)|0;if((H-c|0)<2)do{c=c+-1|0;de[c>>0]=48}while((H-c|0)<2);de[c+-1>>0]=(s>>31&2)+43;w=c+-2|0;de[w>>0]=d;s=H-w|0;d=w}v=S+1+a+f+s|0;Br(e,32,k,v,P);if(!(pe[e>>2]&32))_r(M,S,e)|0;Br(e,48,k,v,P^65536);do{if(h){c=g>>>0>T>>>0?T:g;s=c;do{u=Fr(pe[s>>2]|0,0,L)|0;do{if((s|0)==(c|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))_r(u,N-u|0,e)|0;s=s+4|0}while(s>>>0<=T>>>0);do{if(m){if(pe[e>>2]&32)break;_r(5891,1,e)|0}}while(0);if((a|0)>0&s>>>0>>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))_r(s,(a|0)>9?9:a,e)|0;u=u+4|0;s=a+-9|0;if(!((a|0)>9&u>>>0>>0)){a=s;break}else a=s}}Br(e,48,a+9|0,9,0)}else{h=_?x:g+4|0;if((a|0)>-1){f=(u|0)==0;c=g;do{s=Fr(pe[c>>2]|0,0,L)|0;if((s|0)==(L|0)){de[j>>0]=48;s=j}do{if((c|0)==(g|0)){u=s+1|0;if(!(pe[e>>2]&32))_r(s,1,e)|0;if(f&(a|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}_r(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))_r(s,(a|0)>(u|0)?u:a,e)|0;a=a-u|0;c=c+4|0}while(c>>>0>>0&(a|0)>-1)}Br(e,48,a+18|0,18,0);if(pe[e>>2]&32)break;_r(d,H-d|0,e)|0}}while(0);Br(e,32,k,v,P^8192);a=(v|0)<(k|0)?k:v}else{h=(d&32|0)!=0;f=l!=l|0.0!=0.0;s=f?0:S;c=s+3|0;Br(e,32,k,c,u);a=pe[e>>2]|0;if(!(a&32)){_r(M,s,e)|0;a=pe[e>>2]|0}if(!(a&32))_r(f?h?5883:5887:h?5875:5879,3,e)|0;Br(e,32,k,c,P^8192);a=(c|0)<(k|0)?k:c}}while(0);g=C;continue e}default:{u=P;s=c;h=0;d=5839;a=O}}}while(0);t:do{if((E|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]=ge[5823+(s&15)>>0]|f;s=Kr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));E=G;if((h&8|0)==0|(pe[E>>2]|0)==0&(pe[E+4>>2]|0)==0){s=h;h=0;f=5839;E=77}else{s=h;h=2;f=5839+(d>>4)|0;E=77}}else{a=O;s=h;h=0;f=5839;E=77}}else if((E|0)==76){a=Fr(a,s,O)|0;s=P;h=u;E=77}else if((E|0)==82){E=0;P=Rr(a,0,c)|0;M=(P|0)==0;g=a;s=M?c:P-a|0;h=0;d=5839;a=M?a+c|0:P}else if((E|0)==86){E=0;s=0;a=0;f=pe[G>>2]|0;while(1){u=pe[f>>2]|0;if(!u)break;a=gr(Z,u)|0;if((a|0)<0|a>>>0>(c-s|0)>>>0)break;s=a+s|0;if(c>>>0>s>>>0)f=f+4|0;else break}if((a|0)<0){o=-1;break e}Br(e,32,k,s,P);if(!s){a=0;E=98}else{u=0;c=pe[G>>2]|0;while(1){a=pe[c>>2]|0;if(!a){a=s;E=98;break t}a=gr(Z,a)|0;u=a+u|0;if((u|0)>(s|0)){a=s;E=98;break t}if(!(pe[e>>2]&32))_r(Z,a,e)|0;if(u>>>0>=s>>>0){a=s;E=98;break}else c=c+4|0}}}}while(0);if((E|0)==98){E=0;Br(e,32,k,a,P^8192);g=C;a=(k|0)>(a|0)?k:a;continue}if((E|0)==77){E=0;u=(c|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((c|0)!=0|s){s=(s&1^1)+(F-a)|0;g=a;s=(c|0)>(s|0)?c:s;d=f;a=O}else{g=O;s=0;d=f;a=O}}f=a-g|0;s=(s|0)<(f|0)?f:s;c=h+s|0;a=(k|0)<(c|0)?c:k;Br(e,32,a,c,u);if(!(pe[e>>2]&32))_r(d,h,e)|0;Br(e,48,a,c,u^65536);Br(e,48,s,f,0);if(!(pe[e>>2]&32))_r(g,f,e)|0;Br(e,32,a,c,u^8192);g=C}e:do{if((E|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=$;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;$r(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){_r(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;_r(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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<>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<>>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;l=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<>2]=d|3;s=o+d|0;pe[o+(d|4)>>2]=a|1;pe[o+j>>2]=a;if(l){i=pe[156]|0;r=l>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{c=e;f=t}}else{pe[151]=e|r;c=644+(t+2<<2)|0;f=n}pe[c>>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>>0;r=j?e:r;e=t;n=j?t:n}o=pe[155]|0;if(n>>>0>>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>>0)Xe();else{pe[e>>2]=0;h=t;break}}else{i=pe[n+8>>2]|0;if(i>>>0>>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<>>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>>0)Xe();pe[h+24>>2]=a;t=pe[n+16>>2]|0;do{if(t)if(t>>>0>>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<>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;g=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;g=i}pe[p>>2]=o;pe[g+12>>2]=o;pe[o+8>>2]=g;pe[o+12>>2]=i}pe[153]=u;pe[156]=s}j=n+8|0;return j|0}else g=d}else g=d}else if(e>>>0<=4294967231){e=e+11|0;f=e&-8;c=pe[152]|0;if(c){r=0-f|0;e=e>>>8;if(e)if(f>>>0>16777215)l=31;else{g=(e+1048320|0)>>>16&8;b=e<>>16&4;b=b<>>16&2;l=14-(p|g|l)+(b<>>15)|0;l=f>>>(l+7|0)&1|l<<1}else l=0;e=pe[908+(l<<2)>>2]|0;e:do{if(!e){i=0;e=0;b=86}else{a=r;i=0;s=f<<((l|0)==31?0:25-(l>>>1)|0);u=e;e=0;while(1){o=pe[u+4>>2]&-8;r=o-f|0;if(r>>>0>>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<>>12&16;e=e>>>h;c=e>>>5&8;e=e>>>c;p=e>>>2&4;e=e>>>p;g=e>>>1&2;e=e>>>g;i=e>>>1&1;i=pe[908+((c|h|p|g|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;g=(pe[o+4>>2]&-8)-f|0;i=g>>>0>>0;r=i?g: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>>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>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{n=pe[u+8>>2]|0;if(n>>>0>>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<>>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>>0)Xe();pe[d+24>>2]=o;t=pe[u+16>>2]|0;do{if(t)if(t>>>0>>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<>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;_=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;_=n}pe[v>>2]=a;pe[_+12>>2]=a;pe[u+(f+8)>>2]=_;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<>>16&4;j=j<>>16&2;n=14-(L|N|n)+(j<>>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<>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 g=f}else g=f}else g=-1}while(0);r=pe[153]|0;if(r>>>0>=g>>>0){t=r-g|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+g;pe[153]=t;pe[e+(g+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=g|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>g>>>0){N=e-g|0;pe[154]=N;j=pe[157]|0;pe[157]=j+g;pe[j+(g+4)>>2]=N|1;pe[j+4>>2]=g|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=g+48|0;s=pe[271]|0;l=g+47|0;a=s+l|0;s=0-s|0;c=a&s;if(c>>>0<=g>>>0){j=0;return j|0}e=pe[261]|0;if((e|0)!=0?(_=pe[259]|0,T=_+c|0,T>>>0<=_>>>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?(m=i+4|0,(r+(pe[m>>2]|0)|0)>>>0>e>>>0):0){o=i;e=m;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=c;else r=c-e+(i+e&0-r)|0;e=pe[259]|0;i=e+r|0;if(r>>>0>g>>>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))?(y=pe[271]|0,y=l-r+y&0-y,y>>>0<2147483647):0)if((Ae(y|0)|0)==(-1|0)){Ae(o|0)|0;break t}else{r=y+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?c>>>0<2147483647:0)?(x=Ae(c|0)|0,w=Ae(0)|0,x>>>0>>0&((x|0)!=(-1|0)&(w|0)!=(-1|0))):0)?(S=w-x|0,M=S>>>0>(g+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;C=r;k=i;E=o;b=204;break}o=pe[o+8>>2]|0}while((o|0)!=0);if(((b|0)==204?(pe[E+12>>2]&8|0)==0:0)?a>>>0>>0&a>>>0>=P>>>0:0){pe[C>>2]=k+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>>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;l=x+(p+8)|0;l=(l&7|0)==0?0:0-l&7;t=x+(l+p)|0;f=h+g|0;d=x+f|0;c=t-(x+h)-g|0;pe[x+(h+4)>>2]=g|3;t:do{if((t|0)!=(a|0)){if((t|0)==(pe[156]|0)){j=(pe[153]|0)+c|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+l)>>2]|0;if((r&3|0)==1){u=r&-8;o=r>>>3;r:do{if(r>>>0>=256){a=pe[x+((l|24)+p)>>2]|0;n=pe[x+(p+12+l)>>2]|0;do{if((n|0)==(t|0)){i=l|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>>0)Xe();else{pe[n>>2]=0;D=r;break}}else{i=pe[x+((l|8)+p)>>2]|0;if(i>>>0>>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+l)>>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<>>0>>0)Xe();pe[D+24>>2]=a;t=l|16;e=pe[x+(t+p)>>2]|0;do{if(e)if(e>>>0>>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+((l|8)+p)>>2]|0;i=pe[x+(p+12+l)>>2]|0;r=644+(o<<1<<2)|0;do{if((n|0)!=(r|0)){if(n>>>0>>0)Xe();if((pe[n+12>>2]|0)==(t|0))break;Xe()}}while(0);if((i|0)==(n|0)){pe[151]=pe[151]&~(1<>>0>>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|l)+p)|0;i=u+c|0}else i=c;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<>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<>>16&4;N=N<>>16&2;n=14-(D|L|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<>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)+c|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>>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>>0)do{j=t;t=t+4|0;pe[t>>2]=7}while((j+8|0)>>>0>>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<>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<>>16&4;j=j<>>16&2;n=14-(L|N|n)+(j<>>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<>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>>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>g>>>0){N=t-g|0;pe[154]=N;j=pe[157]|0;pe[157]=j+g;pe[j+(g+4)>>2]=N|1;pe[j+4>>2]=g|3;j=j+8|0;return j|0}}j=cr()|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0>>0)Xe();r=pe[e+-4>>2]|0;n=r&3;if((n|0)==1)Xe();d=r&-8;g=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!n)return;u=-8-t|0;c=e+u|0;f=t+d|0;if(c>>>0>>0)Xe();if((c|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){y=c;o=f;break}pe[153]=f;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=f|1;pe[g>>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>>0)Xe();if((pe[n+12>>2]|0)!=(c|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(c|0))a=t;else Xe()}else a=r+8|0;pe[n+12>>2]=r;pe[a>>2]=n;y=c;o=f;break}a=pe[e+(u+24)>>2]|0;n=pe[e+(u+12)>>2]|0;do{if((n|0)==(c|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){l=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>>0)Xe();else{pe[r>>2]=0;l=t;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(c|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(c|0)){pe[t>>2]=n;pe[r>>2]=i;l=n;break}else Xe()}}while(0);if(a){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((c|0)==(pe[r>>2]|0)){pe[r>>2]=l;if(!l){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(c|0))pe[t>>2]=l;else pe[a+20>>2]=l;if(!l){y=c;o=f;break}}r=pe[155]|0;if(l>>>0>>0)Xe();pe[l+24>>2]=a;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0>>0)Xe();else{pe[l+16>>2]=t;pe[t+24>>2]=l;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=t;pe[t+24>>2]=l;y=c;o=f;break}else{y=c;o=f}}else{y=c;o=f}}else{y=t;o=d}}while(0);if(y>>>0>=g>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((g|0)==(pe[157]|0)){_=(pe[154]|0)+o|0;pe[154]=_;pe[157]=y;pe[y+4>>2]=_|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((g|0)==(pe[156]|0)){_=(pe[153]|0)+o|0;pe[153]=_;pe[156]=y;pe[y+4>>2]=_|1;pe[y+_>>2]=_;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)==(g|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)!=(g|0))Xe();i=t+8|0;if((pe[i>>2]|0)==(g|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((g|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(g|0))pe[t>>2]=p;else pe[a+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0>>0)Xe();pe[p+24>>2]=a;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0>>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)!=(g|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(g|0))h=t;else Xe()}else h=r+8|0;pe[n+12>>2]=r;pe[h>>2]=n}}while(0);pe[y+4>>2]=o|1;pe[y+o>>2]=o;if((y|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[t>>2]=r&-2;pe[y+4>>2]=o|1;pe[y+o>>2]=o}t=o>>>3;if(o>>>0<256){r=t<<1;i=644+(r<<2)|0;n=pe[151]|0;t=1<>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{m=t;v=r}}else{pe[151]=n|t;m=644+(r+2<<2)|0;v=i}pe[m>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=i;return}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{m=(t+1048320|0)>>>16&8;v=t<>>16&4;v=v<>>16&2;i=14-(g|m|i)+(v<>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[y+28>>2]=i;pe[y+20>>2]=0;pe[y+16>>2]=0;r=pe[152]|0;n=1<>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)){_=n;break t}else{i=i<<1;t=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y;break e}}else _=t}while(0);t=_+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&_>>>0>=v>>>0){pe[r+12>>2]=y;pe[t>>2]=y;pe[y+8>>2]=r;pe[y+12>>2]=_;pe[y+24>>2]=0;break}else Xe()}else{pe[152]=r|n;pe[t>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y}}while(0);y=(pe[159]|0)+-1|0;pe[159]=y;if(!y)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=cr()|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;$r(r|0,e|0,(n>>>0>>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,l=0,c=0,f=0,h=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;c=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0>>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((c|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((c|0)==(pe[156]|0)){n=(pe[153]|0)+u|0;if(n>>>0>>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>>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)==(c|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){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>>0)Xe();else{pe[n>>2]=0;l=r;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0>>0)Xe();r=i+12|0;if((pe[r>>2]|0)!=(c|0))Xe();n=o+8|0;if((pe[n>>2]|0)==(c|0)){pe[r>>2]=o;pe[n>>2]=i;l=o;break}else Xe()}}while(0);if(a){r=pe[e+(u+28)>>2]|0;n=908+(r<<2)|0;if((c|0)==(pe[n>>2]|0)){pe[n>>2]=l;if(!l){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=a+16|0;if((pe[r>>2]|0)==(c|0))pe[r>>2]=l;else pe[a+20>>2]=l;if(!l)break}n=pe[155]|0;if(l>>>0>>0)Xe();pe[l+24>>2]=a;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0>>0)Xe();else{pe[l+16>>2]=r;pe[r+24>>2]=l;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;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>>0)Xe();if((pe[i+12>>2]|0)!=(c|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(c|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0;g=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){l=pe[e>>2]|0;if(!(r&3))return;h=e+(0-l)|0;f=l+t|0;u=pe[155]|0;if(h>>>0>>0)Xe();if((h|0)==(pe[156]|0)){n=e+(t+4)|0;r=pe[n>>2]|0;if((r&3|0)!=3){_=h;a=f;break}pe[153]=f;pe[n>>2]=r&-2;pe[e+(4-l)>>2]=f|1;pe[g>>2]=f;return}o=l>>>3;if(l>>>0<256){i=pe[e+(8-l)>>2]|0;n=pe[e+(12-l)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0>>0)Xe();if((pe[i+12>>2]|0)!=(h|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>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;_=h;a=f;break}s=pe[e+(24-l)>>2]|0;i=pe[e+(12-l)>>2]|0;do{if((i|0)==(h|0)){i=16-l|0;n=e+(i+4)|0;r=pe[n>>2]|0;if(!r){n=e+i|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>>0)Xe();else{pe[n>>2]=0;c=r;break}}else{o=pe[e+(8-l)>>2]|0;if(o>>>0>>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;c=i;break}else Xe()}}while(0);if(s){r=pe[e+(28-l)>>2]|0;n=908+(r<<2)|0;if((h|0)==(pe[n>>2]|0)){pe[n>>2]=c;if(!c){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(h|0))pe[r>>2]=c;else pe[s+20>>2]=c;if(!c){_=h;a=f;break}}i=pe[155]|0;if(c>>>0>>0)Xe();pe[c+24>>2]=s;r=16-l|0;n=pe[e+r>>2]|0;do{if(n)if(n>>>0>>0)Xe();else{pe[c+16>>2]=n;pe[n+24>>2]=c;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;_=h;a=f;break}else{_=h;a=f}}else{_=h;a=f}}else{_=e;a=t}}while(0);u=pe[155]|0;if(g>>>0>>0)Xe();r=e+(t+4)|0;n=pe[r>>2]|0;if(!(n&2)){if((g|0)==(pe[157]|0)){v=(pe[154]|0)+a|0;pe[154]=v;pe[157]=_;pe[_+4>>2]=v|1;if((_|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((g|0)==(pe[156]|0)){v=(pe[153]|0)+a|0;pe[153]=v;pe[156]=_;pe[_+4>>2]=v|1;pe[_+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)==(g|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>>0)Xe();else{pe[n>>2]=0;p=r;break}}else{o=pe[e+(t+8)>>2]|0;if(o>>>0>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(g|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(g|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((g|0)==(pe[n>>2]|0)){pe[n>>2]=p;if(!p){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(g|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}n=pe[155]|0;if(p>>>0>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0>>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>>0)Xe();if((pe[i+12>>2]|0)!=(g|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(g|0))d=r;else Xe()}else d=n+8|0;pe[i+12>>2]=n;pe[d>>2]=i}}while(0);pe[_+4>>2]=a|1;pe[_+a>>2]=a;if((_|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[r>>2]=n&-2;pe[_+4>>2]=a|1;pe[_+a>>2]=a}r=a>>>3;if(a>>>0<256){n=r<<1;o=644+(n<<2)|0;i=pe[151]|0;r=1<>2]|0;if(n>>>0<(pe[155]|0)>>>0)Xe();else{m=r;v=n}}else{pe[151]=i|r;m=644+(n+2<<2)|0;v=o}pe[m>>2]=_;pe[v+12>>2]=_;pe[_+8>>2]=v;pe[_+12>>2]=o;return}r=a>>>8;if(r)if(a>>>0>16777215)o=31;else{m=(r+1048320|0)>>>16&8;v=r<>>16&4;v=v<>>16&2;o=14-(g|m|o)+(v<>>15)|0;o=a>>>(o+7|0)&1|o<<1}else o=0;r=908+(o<<2)|0;pe[_+28>>2]=o;pe[_+20>>2]=0;pe[_+16>>2]=0;n=pe[152]|0;i=1<>2]=_;pe[_+24>>2]=r;pe[_+12>>2]=_;pe[_+8>>2]=_;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]=_;pe[_+24>>2]=r;pe[_+12>>2]=_;pe[_+8>>2]=_;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]=_;pe[n>>2]=_;pe[_+8>>2]=i;pe[_+12>>2]=r;pe[_+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-32|0}function Zr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<>>32-r;return e<>>0;return(re=t+n+(r>>>0>>0|0)>>>0,r|0)|0}function $r(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 Qr(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-32|0}function en(e){e=e|0;var t=0;t=de[m+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[m+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[m+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[m+(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=_e(i,o)|0;n=e>>>16;e=(r>>>16)+(_e(i,n)|0)|0;i=t>>>16;t=_e(i,o)|0;return(re=(e>>>16)+(_e(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,l=0;l=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(l^e,u^t,l,u)|0;a=re;e=o^l;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,l=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;l=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(l^r,u^n,l,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=(_e(t,o)|0)+(_e(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,l=0,c=0,f=0,h=0,d=0,p=0;c=e;u=t;l=u;a=r;h=n;s=h;if(!l){o=(i|0)!=0;if(!s){if(o){pe[i>>2]=(c>>>0)%(a>>>0);pe[i+4>>2]=0}h=0;i=(c>>>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(l|0)|0)|0;if(o>>>0<=31){f=o+1|0;s=31-o|0;t=o-31>>31;a=f;e=c>>>(f>>>0)&t|l<>>(f>>>0)&t;o=0;s=c<>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(l|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&l>>>(d>>>0)|(l<>>(s>>>0))&t;t=t&l>>>(s>>>0);o=c<>>(d>>>0))&u|c<>31;break}if(i){pe[i>>2]=o&c;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=l>>>(p>>>0)|0;p=l<<32-p|c>>>(p>>>0)|0;return(re=d,p)|0}}else{if(o){if(i){pe[i>>2]=(l>>>0)%(a>>>0);pe[i+4>>2]=0}d=0;p=(l>>>0)/(a>>>0)>>>0;return(re=d,p)|0}if(!c){if(i){pe[i>>2]=0;pe[i+4>>2]=(l>>>0)%(s>>>0)}d=0;p=(l>>>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&l|t&0}d=0;p=l>>>((en(s|0)|0)>>>0);return(re=d,p)|0}o=(ae(s|0)|0)-(ae(l|0)|0)|0;if(o>>>0<=30){t=o+1|0;s=31-o|0;a=t;e=l<>>(t>>>0);t=l>>>(t>>>0);o=0;s=c<>2]=e|0;pe[i+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!a){l=s;u=0;s=0}else{f=r|0|0;c=h|n&0;l=Jr(f|0,c|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(l,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)&c)|0;t=re;a=a-1|0}while((a|0)!=0);l=u;u=0}a=0;if(i){pe[i>>2]=e;pe[i+4>>2]=t}d=(o|0)>>>31|(l|a)<<1|(a<<1|o>>>31)&0|u;p=(o<<1|0>>>31)&-2|s;return(re=d,p)|0}function ln(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return Cn[e&7](t|0,r|0,n|0)|0}function cn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;kn[e&3](t|0,r|0,n|0,i|0,o|0)}function fn(e,t){e=e|0;t=t|0;En[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 gn(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 mn(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 _n(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function yn(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 Cn=[_n,Vt,Nr,Er,kr,Ar,_n,_n];var kn=[yn,tr,er,yn];var En=[bn,qt,Gt,Ht,Yt,Wt,ur,Lr];var An=[xn,Cr];var On=[wn];var Rn=[Tn,ar,sr,Tn];var In=[Sn,nr,rr,Sn];var Dn=[Mn,ut];var Ln=[Pn,Zt,Jt,Pn];return{___cxa_can_catch:ir,_crn_get_levels:Tt,_crn_get_uncompressed_size:Mt,_crn_decompress:Pt,_i64Add:Jr,_crn_get_width:xt,___cxa_is_pointer_type:or,_i64Subtract:Wr,_memset:Vr,_malloc:zr,_free:Ur,_memcpy:$r,_bitshift64Lshr:Kr,_fflush:mr,_bitshift64Shl:Zr,_crn_get_height:wt,___errno_location:cr,_crn_get_dxt_format:St,runPostSets:Gr,_emscripten_replace_memory:Ve,stackAlloc:Ke,stackSave:Ze,stackRestore:Je,establishStackSpace:$e,setThrew:Qe,setTempRet0:rt,getTempRet0:nt,dynCall_iiii:ln,dynCall_viiiii:cn,dynCall_vi:fn,dynCall_ii:hn,dynCall_viii:dn,dynCall_v:pn,dynCall_viiiiii:gn,dynCall_iiiiii:mn,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 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>>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>>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,l="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,l?1:t.length)),o){for(assert(0==(3&(i=r))),e=r+(-4&a);i>2]=0;for(e=r+a;i>0]=0;return r}if("i8"===l)return e.subarray||e.slice?E.set(e,r):E.set(new Uint8Array(e),r),r;for(i=0;i>0],0!=n||r)&&(o++,!r||o!=r););if(r||(r=o),n="",i<128){for(;0>10,56320|1023&r)))):s+=String.fromCharCode(r)}}function Ka(e,t,r,n){if(!(0>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"):o=i;e:for(;f>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>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>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>0]=e[r],r+=1}function ta(e,t){for(var r=0;r>0]=e[r]}function Ia(e,t,r){for(var n=0;n>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>>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;oe.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),0t)e.e.length=t;else for(;e.e.length=e.g.o)return 0;if(assert(0<=(e=Math.min(e.g.o-i,n))),8>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>>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=""}))}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>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>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+="="),l.src="data:audio/x-"+a.substr(-3)+";base64,"+e,s(l)}},l.src=i,ad(function(){s(l)})}});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&&0this.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=(e=e.g.e).length)return 0;if(assert(0<=(n=Math.min(e.length-i,n))),e.slice)for(var o=0;o>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>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 l=e.Float32Array;var c=e.Float64Array;var de=new n(r);var Q=new i(r);var pe=new o(r);var ge=new a(r);var me=new s(r);var f=new u(r);var h=new l(r);var ee=new c(r);var d=e.byteLength;var ve=t.STACKTOP|0;var p=t.STACK_MAX|0;var te=t.tempDoublePtr|0;var g=t.ABORT|0;var m=t.cttz_i8|0;var v=0;var _=0;var y=0;var b=0;var x=e.NaN,w=e.Infinity;var T=0,S=0,M=0,P=0,C=0.0,k=0,E=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 Z=e.Math.atan;var J=e.Math.atan2;var $=e.Math.exp;var ne=e.Math.log;var ie=e.Math.ceil;var _e=e.Math.imul;var oe=e.Math.min;var ae=e.Math.clz32;var se=t.abort;var ue=t.assert;var le=t.invoke_iiii;var ce=t.invoke_viiiii;var fe=t.invoke_vi;var he=t.invoke_ii;var ye=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 Ce=t._emscripten_set_main_loop_timing;var ke=t.__ZSt18uncaught_exceptionv;var Ee=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);Q=new i(e);pe=new o(e);ge=new a(e);me=new s(e);f=new u(e);h=new l(e);ee=new c(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 Ze(){return ve|0}function Je(e){e=e|0;ve=e}function $e(e,t){e=e|0;t=t|0;ve=e;p=t}function Qe(e,t){e=e|0;t=t|0;if(!v){v=e;_=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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;g=ve;ve=ve+608|0;h=g+88|0;f=g+72|0;u=g+64|0;s=g+48|0;a=g+24|0;o=g;c=g+96|0;d=g+92|0;l=e+4|0;p=e+8|0;if((pe[l>>2]|0)>>>0>(pe[p>>2]|0)>>>0){pe[o>>2]=1154;pe[o+4>>2]=2120;pe[o+8>>2]=1133;br(c,1100,o)|0;yr(c,g+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(c,1100,a)|0;yr(c,g+40|0)|0}a=pe[p>>2]|0;if(a>>>0>=t>>>0){p=1;ve=g;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(c,1100,s)|0;yr(c,u)|0}r=_e(t,n)|0;do{if(!i){o=ot(pe[e>>2]|0,r,d,1)|0;if(!o){p=0;ve=g;return p|0}else{pe[e>>2]=o;break}}else{a=at(r,d)|0;if(!a){p=0;ve=g;return p|0}On[i&0](a,pe[e>>2]|0,pe[l>>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(c,1100,f)|0;yr(c,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=g;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,l=0;l=ve;ve=ve+592|0;u=l+48|0;o=l+24|0;i=l;s=l+72|0;a=l+68|0;if(e&7){pe[i>>2]=1154;pe[i+4>>2]=2499;pe[i+8>>2]=1494;br(s,1100,i)|0;yr(s,l+16|0)|0;u=0;ve=l;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;yr(s,l+40|0)|0;u=0;ve=l;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=l;return u|0}pe[u>>2]=1154;pe[u+4>>2]=2551;pe[u+8>>2]=1440;br(s,1100,u)|0;yr(s,l+64|0)|0;u=n;ve=l;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;yr(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>>0){pe[s>>2]=1154;pe[s+4>>2]=2499;pe[s+8>>2]=1413;br(o,1100,s)|0;yr(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;yr(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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;E=F+160|0;k=F+144|0;M=F+136|0;S=F+120|0;T=F+112|0;w=F+96|0;y=F+88|0;_=F+72|0;v=F+64|0;m=F+48|0;f=F+40|0;d=F+24|0;h=F+16|0;c=F;C=F+440|0;N=F+376|0;j=F+304|0;g=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;l=1;a=0;s=-1;u=0;while(1){i=pe[j+(l<<2)>>2]|0;if(!i)pe[e+28+(l+-1<<2)>>2]=0;else{P=l+-1|0;pe[N+(P<<2)>>2]=o;o=i+o|0;x=16-l|0;pe[e+28+(P<<2)>>2]=(o+-1<>2]=u;pe[g+(l<<2)>>2]=u;a=a>>>0>l>>>0?a:l;s=s>>>0>>0?s:l;u=i+u|0}l=l+1|0;if((l|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[c>>2]=1154;pe[c+4>>2]=644;pe[c+8>>2]=1863;br(C,1100,c)|0;yr(C,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(C,1100,d)|0;yr(C,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[m>>2]=1154;pe[m+4>>2]=2273;pe[m+8>>2]=1261;br(C,1100,m)|0;yr(C,v)|0}b=g+(i<<2)|0;i=pe[b>>2]|0;pe[b>>2]=i+1;if(i>>>0>=u>>>0){pe[_>>2]=1154;pe[_+4>>2]=2277;pe[_+8>>2]=1274;br(C,1100,_)|0;yr(C,y)|0}Q[(pe[o>>2]|0)+(i<<1)>>1]=a}a=a+1|0}while((a|0)!=(t|0));i=de[x>>0]|0;y=(i&255)>>>0>>0?n:0;b=e+8|0;pe[b>>2]=y;_=(y|0)!=0;if(_){v=1<>>0>(pe[i>>2]|0)>>>0){pe[i>>2]=v;a=e+168|0;i=pe[a>>2]|0;do{if(i){m=pe[i+-4>>2]|0;i=i+-8|0;if(!((m|0)!=0?(m|0)==(~pe[i>>2]|0):0)){pe[w>>2]=1154;pe[w+4>>2]=644;pe[w+8>>2]=1863;br(C,1100,w)|0;yr(C,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(C,1100,S)|0;yr(C,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;m=1;do{if(pe[j+(m<<2)>>2]|0){t=y-m|0;g=1<>2]|0;if(o>>>0>=16){pe[k>>2]=1154;pe[k+4>>2]=1953;pe[k+8>>2]=1737;br(C,1100,k)|0;yr(C,E)|0}i=pe[e+28+(o<<2)>>2]|0;if(!i)d=-1;else d=(i+-1|0)>>>(16-m|0);if(s>>>0<=d>>>0){f=(pe[e+96+(o<<2)>>2]|0)-s|0;h=m<<16;do{i=me[(pe[p>>2]|0)+(f+s<<1)>>1]|0;if((ge[r+i>>0]|0|0)!=(m|0)){pe[A>>2]=1154;pe[A+4>>2]=2319;pe[A+8>>2]=1303;br(C,1100,A)|0;yr(C,O)|0}c=s<>>0>=v>>>0){pe[R>>2]=1154;pe[R+4>>2]=2325;pe[R+8>>2]=1337;br(C,1100,R)|0;yr(C,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(C,1100,D)|0;yr(C,L)|0;i=pe[a>>2]|0}pe[i+(u<<2)>>2]=o;l=l+1|0}while(l>>>0>>0);s=s+1|0}while(s>>>0<=d>>>0)}}m=m+1|0}while(y>>>0>=m>>>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(_){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=y+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 lt(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(((ge[e>>0]|0)<<8|(ge[e+1>>0]|0)|0)!=18552){r=0;return r|0}if(((ge[e+2>>0]|0)<<8|(ge[e+3>>0]|0))>>>0<74){r=0;return r|0}if(((ge[e+7>>0]|0)<<16|(ge[e+6>>0]|0)<<24|(ge[e+8>>0]|0)<<8|(ge[e+9>>0]|0))>>>0>t>>>0){r=0;return r|0}pe[r+4>>2]=(ge[e+12>>0]|0)<<8|(ge[e+13>>0]|0);pe[r+8>>2]=(ge[e+14>>0]|0)<<8|(ge[e+15>>0]|0);pe[r+12>>2]=ge[e+16>>0];pe[r+16>>2]=ge[e+17>>0];t=e+18|0;n=r+32|0;pe[n>>2]=ge[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]=(ge[e+26>>0]|0)<<16|(ge[e+25>>0]|0)<<24|(ge[e+27>>0]|0)<<8|(ge[e+28>>0]|0);pe[r+28>>2]=(ge[e+30>>0]|0)<<16|(ge[e+29>>0]|0)<<24|(ge[e+31>>0]|0)<<8|(ge[e+32>>0]|0);r=1;return r|0}function ct(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;yr(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,l=0,c=0,f=0,h=0,d=0,p=0;d=ve;ve=ve+640|0;h=d+112|0;f=d+96|0;c=d+88|0;l=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;yr(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;yr(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;yr(a,u)|0}if(!(t&7)){Dn[pe[104>>2]&1](t,0,0,1,pe[27]|0)|0;break}else{pe[l>>2]=1154;pe[l+4>>2]=2499;pe[l+8>>2]=1516;br(a,1100,l)|0;yr(a,c)|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;yr(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,l=0,c=0;c=ve;ve=ve+560|0;a=c+40|0;s=c+24|0;t=c;o=c+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;yr(o,c+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{l=t+164|0;pe[l>>2]=0;pe[l+4>>2]=0;pe[l+8>>2]=0;pe[l+12>>2]=0}pe[n>>2]=t;l=t;u=pe[e>>2]|0}else{l=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;yr(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;l=st(l,u,i,e)|0;ve=c;return l|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<>>0>>0&1)|0;e=e>>>0<11?e&255:11;l=st(l,u,i,e)|0;ve=c;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=0,A=0,O=0,R=0,I=0,D=0,L=0;L=ve;ve=ve+800|0;A=L+256|0;E=L+240|0;k=L+232|0;C=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;y=L+120|0;_=L+112|0;v=L+96|0;m=L+88|0;g=L+72|0;f=L+64|0;c=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=gt(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;yr(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>>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=ge[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;yr(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}l=n>>>27;pe[i>>2]=n<<5;pe[h>>2]=r+-5;if((l+-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(l){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=ge[n>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[c>>2]=1154;pe[c+4>>2]=3199;pe[c+8>>2]=1650;br(I,1100,c)|0;yr(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+(ge[1611+s>>0]|0)>>0]=n>>>29;s=s+1|0}while((s|0)!=(l|0))}if(dt(D)|0){s=e+4|0;u=e+8|0;l=e+16|0;n=0;t:while(1){a=O-n|0;r=mt(e,D)|0;r:do{if(r>>>0<17){if((pe[p>>2]|0)>>>0<=n>>>0){pe[g>>2]=1154;pe[g+4>>2]=903;pe[g+8>>2]=1781;br(I,1100,g)|0;yr(I,m)|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=ge[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;yr(I,_)|0;r=pe[h>>2]|0}i=i<<32-r|pe[l>>2];pe[l>>2]=i}while((r|0)<3);else i=pe[l>>2]|0;pe[l>>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=ge[i>>0]|0}r=r+8|0;pe[h>>2]=r;if((r|0)>=33){pe[y>>2]=1154;pe[y+4>>2]=3199;pe[y+8>>2]=1650;br(I,1100,y)|0;yr(I,b)|0;r=pe[h>>2]|0}i=i<<32-r|pe[l>>2];pe[l>>2]=i}while((r|0)<7);else i=pe[l>>2]|0;pe[l>>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=ge[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;yr(I,w)|0;r=pe[h>>2]|0}i=o<<32-r|pe[l>>2];pe[l>>2]=i;if((r|0)<2)i=r;else break}}else{i=pe[l>>2]|0;r=o}pe[l>>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=ge[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;yr(I,S)|0;r=pe[h>>2]|0}i=o<<32-r|pe[l>>2];pe[l>>2]=i;if((r|0)<6)i=r;else break}}else{i=pe[l>>2]|0;r=o}pe[l>>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;yr(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[C>>2]=1154;pe[C+4>>2]=903;pe[C+8>>2]=1781;br(I,1100,C)|0;yr(I,k)|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[E>>2]=1154;pe[E+4>>2]=3140;pe[E+8>>2]=1632;br(I,1100,E)|0;yr(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 gt(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0;c=ve;ve=ve+544|0;s=c+16|0;a=c;o=c+24|0;if(!t){l=0;ve=c;return l|0}if(t>>>0<=16){l=vt(e,t)|0;ve=c;return l|0}u=vt(e,t+-16|0)|0;l=e+20|0;t=pe[l>>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=ge[e>>0]|0}t=t+8|0;pe[l>>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;yr(o,s)|0;t=pe[l>>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[l>>2]=t+-16;l=e>>>16|u<<16;ve=c;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0;y=ve;ve=ve+608|0;g=y+88|0;p=y+72|0;h=y+64|0;f=y+48|0;c=y+40|0;d=y+24|0;l=y+16|0;u=y;v=y+96|0;m=pe[t+20>>2]|0;_=e+20|0;s=pe[_>>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>>0;if((s|0)>=16){if(r){pe[a>>2]=n+1;r=ge[n>>0]|0}else r=0;pe[_>>2]=s+8;a=e+16|0;o=r<<24-s|pe[a>>2];pe[a>>2]=o;break}if(r){o=(ge[n>>0]|0)<<8;r=n+1|0}else{o=0;r=n}if(r>>>0>>0){n=ge[r>>0]|0;r=r+1|0}else n=0;pe[a>>2]=r;pe[_>>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[m+16>>2]|0)>>>0){n=pe[(pe[m+168>>2]|0)+(o>>>(32-(pe[m+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;yr(v,l)|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;yr(v,c)|0}if((ge[(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;yr(v,h)|0}}else{n=pe[m+20>>2]|0;while(1){r=n+-1|0;if(i>>>0>(pe[m+28+(r<<2)>>2]|0)>>>0)n=n+1|0;else break}r=(o>>>(32-n|0))+(pe[m+96+(r<<2)>>2]|0)|0;if(r>>>0<(pe[t>>2]|0)>>>0){r=me[(pe[m+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;yr(v,g)|0;_=0;ve=y;return _|0}}while(0);pe[a>>2]=pe[a>>2]<>2]=(pe[_>>2]|0)-n;_=r;ve=y;return _|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,l=0,c=0;c=ve;ve=ve+560|0;s=c+40|0;u=c+24|0;r=c;a=c+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;yr(a,c+16|0)|0}l=e+20|0;r=pe[l>>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<>2]=o;t=s-t|0;pe[l>>2]=t;ve=c;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=ge[e>>0]|0}r=r+8|0;pe[l>>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;yr(a,s)|0;r=pe[l>>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<>2]=s;t=r-t|0;pe[l>>2]=t;ve=c;return u|0}function _t(e,t){e=e|0;t=t|0;var r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0;p=ve;ve=ve+544|0;h=p+16|0;f=p;c=p+24|0;if((e|0)==0|t>>>0<62){d=0;ve=p;return d|0}l=at(300,0)|0;if(!l){d=0;ve=p;return d|0}pe[l>>2]=519686845;r=l+4|0;pe[r>>2]=0;n=l+8|0;pe[n>>2]=0;u=l+88|0;i=l+136|0;o=l+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;g=l+184|0;a=l+208|0;s=l+232|0;m=l+252|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+12>>0]=0;m=l+268|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+12>>0]=0;m=l+284|0;pe[m>>2]=0;pe[m+4>>2]=0;pe[m+8>>2]=0;de[m+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[g>>2]=0;pe[g+4>>2]=0;pe[g+8>>2]=0;pe[g+12>>2]=0;pe[g+16>>2]=0;de[g+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?((ge[e>>0]|0)<<8|(ge[e+1>>0]|0)|0)==18552:0)?((ge[e+2>>0]|0)<<8|(ge[e+3>>0]|0))>>>0>=74:0)?((ge[e+7>>0]|0)<<16|(ge[e+6>>0]|0)<<24|(ge[e+8>>0]|0)<<8|(ge[e+9>>0]|0))>>>0<=t>>>0:0){pe[u>>2]=e;pe[r>>2]=e;pe[n>>2]=t;if(Ct(l)|0){r=pe[u>>2]|0;if((ge[r+39>>0]|0)<<8|(ge[r+40>>0]|0)){if(!(kt(l)|0))break;if(!(Et(l)|0))break;r=pe[u>>2]|0}if(!((ge[r+55>>0]|0)<<8|(ge[r+56>>0]|0))){m=l;ve=p;return m|0}if(At(l)|0?Ot(l)|0:0){m=l;ve=p;return m|0}}}else d=7}while(0);if((d|0)==7)pe[u>>2]=0;Nt(l);if(!(l&7)){Dn[pe[104>>2]&1](l,0,0,1,pe[27]|0)|0;m=0;ve=p;return m|0}else{pe[f>>2]=1154;pe[f+4>>2]=2499;pe[f+8>>2]=1516;br(c,1100,f)|0;yr(c,h)|0;m=0;ve=p;return m|0}return 0}function yt(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,l=0,c=0;c=ve;ve=ve+544|0;l=c;u=c+24|0;o=pe[e+88>>2]|0;s=(ge[o+70+(i<<2)+1>>0]|0)<<16|(ge[o+70+(i<<2)>>0]|0)<<24|(ge[o+70+(i<<2)+2>>0]|0)<<8|(ge[o+70+(i<<2)+3>>0]|0);a=i+1|0;if(a>>>0<(ge[o+16>>0]|0)>>>0)o=(ge[o+70+(a<<2)+1>>0]|0)<<16|(ge[o+70+(a<<2)>>0]|0)<<24|(ge[o+70+(a<<2)+2>>0]|0)<<8|(ge[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;l=o-s|0;l=bt(e,u,l,t,r,n,i)|0;ve=c;return l|0}pe[l>>2]=1154;pe[l+4>>2]=3704;pe[l+8>>2]=1792;br(u,1100,l)|0;yr(u,c+16|0)|0;u=e+4|0;u=pe[u>>2]|0;u=u+s|0;l=o-s|0;l=bt(e,u,l,t,r,n,i)|0;ve=c;return l|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,l=0,c=0;c=pe[e+88>>2]|0;u=((ge[c+12>>0]|0)<<8|(ge[c+13>>0]|0))>>>a;l=((ge[c+14>>0]|0)<<8|(ge[c+15>>0]|0))>>>a;u=u>>>0>1?(u+3|0)>>>2:1;l=l>>>0>1?(l+3|0)>>>2:1;c=c+18|0;a=de[c>>0]|0;a=_e(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((_e(a,l)|0)>>>0>i>>>0){e=0;return e|0}o=(u+1|0)>>>1;s=(l+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(ge[c>>0]|0|0){case 0:{Rt(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 4:case 6:case 5:case 3:case 2:{It(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 9:{Dt(e,n,i,a,u,l,o,s)|0;e=1;return e|0}case 8:case 7:{Lt(e,n,i,a,u,l,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;lt(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;lt(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;lt(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;lt(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,l=0;u=ve;ve=ve+576|0;a=u+56|0;o=u+40|0;i=u+64|0;l=u;pe[l>>2]=40;lt(e,t,l)|0;n=(((pe[l+4>>2]|0)>>>r)+3|0)>>>2;t=(((pe[l+8>>2]|0)>>>r)+3|0)>>>2;r=l+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;yr(i,a)|0;e=0}l=_e(_e(t,n)|0,e)|0;ve=u;return l|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;p=ve;ve=ve+608|0;h=p+80|0;d=p+64|0;s=p+56|0;a=p+40|0;c=p+88|0;g=p;f=p+84|0;pe[g>>2]=40;lt(e,t,g)|0;u=(((pe[g+4>>2]|0)>>>i)+3|0)>>>2;g=g+32|0;o=pe[g+4>>2]|0;do{switch(pe[g>>2]|0){case 0:{if(!o)o=8;else l=13;break}case 1:{if(!o)l=12;else l=13;break}case 2:{if(!o)l=12;else l=13;break}case 3:{if(!o)l=12;else l=13;break}case 4:{if(!o)l=12;else l=13;break}case 5:{if(!o)l=12;else l=13;break}case 6:{if(!o)l=12;else l=13;break}case 7:{if(!o)l=12;else l=13;break}case 8:{if(!o)l=12;else l=13;break}case 9:{if(!o)o=8;else l=13;break}default:l=13}}while(0);if((l|0)==12)o=16;else if((l|0)==13){pe[a>>2]=1154;pe[a+4>>2]=2663;pe[a+8>>2]=1535;br(c,1100,a)|0;yr(c,s)|0;o=0}s=_e(o,u)|0;a=_t(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)yt(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(c,1100,d)|0;yr(c,h)|0;ve=p;return}}function Ct(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=(ge[i+68>>0]|0)<<8|(ge[i+67>>0]|0)<<16|(ge[i+69>>0]|0);r=n+t|0;i=(ge[i+65>>0]|0)<<8|(ge[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(!((ge[t+39>>0]|0)<<8|(ge[t+40>>0]|0))){if(!((ge[t+55>>0]|0)<<8|(ge[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((ge[t+55>>0]|0)<<8|(ge[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 kt(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=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=(ge[t+39>>0]|0)<<8|(ge[t+40>>0]|0);c=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>>0){if(it(c,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[c>>2]|0)+(t<<2)|0,0,h-t<<2|0)|0;t=pe[n>>2]|0}pe[o>>2]=h}l=e+92|0;r=pe[e+4>>2]|0;n=(ge[t+34>>0]|0)<<8|(ge[t+33>>0]|0)<<16|(ge[t+35>>0]|0);i=r+n|0;t=(ge[t+37>>0]|0)<<8|(ge[t+36>>0]|0)<<16|(ge[t+38>>0]|0);if(!t){d=0;ve=p;return d|0}pe[l>>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(l,d)|0?(f=d+24|0,pt(l,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;yr(a,u)|0}if(!h)t=1;else{n=0;i=0;o=0;t=0;a=0;e=0;s=0;r=pe[c>>2]|0;while(1){n=(mt(l,d)|0)+n&31;i=(mt(l,f)|0)+i&63;o=(mt(l,d)|0)+o&31;t=(mt(l,d)|0)+t|0;a=(mt(l,f)|0)+a&63;e=(mt(l,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 Et(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=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=(ge[i+47>>0]|0)<<8|(ge[i+48>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+42>>0]|0)<<8|(ge[i+41>>0]|0)<<16|(ge[i+43>>0]|0);n=t+r|0;i=(ge[i+45>>0]|0)<<8|(ge[i+44>>0]|0)<<16|(ge[i+46>>0]|0);if(!i){S=0;ve=M;return S|0}pe[y>>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(y,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));_=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>>0)if(it(_,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[_>>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;yr(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;l=x+32|0;c=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;g=x+56|0;m=x+60|0;v=0;r=pe[_>>2]|0;while(1){t=0;do{P=mt(y,S)|0;_=t<<1;C=x+(_<<2)|0;pe[C>>2]=(pe[C>>2]|0)+(pe[w+(P<<2)>>2]|0)&3;_=x+((_|1)<<2)|0;pe[_>>2]=(pe[_>>2]|0)+(pe[T+(P<<2)>>2]|0)&3;t=t+1|0}while((t|0)!=8);pe[r>>2]=(ge[1725+(pe[n>>2]|0)>>0]|0)<<2|(ge[1725+(pe[x>>2]|0)>>0]|0)|(ge[1725+(pe[i>>2]|0)>>0]|0)<<4|(ge[1725+(pe[e>>2]|0)>>0]|0)<<6|(ge[1725+(pe[o>>2]|0)>>0]|0)<<8|(ge[1725+(pe[a>>2]|0)>>0]|0)<<10|(ge[1725+(pe[s>>2]|0)>>0]|0)<<12|(ge[1725+(pe[u>>2]|0)>>0]|0)<<14|(ge[1725+(pe[l>>2]|0)>>0]|0)<<16|(ge[1725+(pe[c>>2]|0)>>0]|0)<<18|(ge[1725+(pe[f>>2]|0)>>0]|0)<<20|(ge[1725+(pe[h>>2]|0)>>0]|0)<<22|(ge[1725+(pe[d>>2]|0)>>0]|0)<<24|(ge[1725+(pe[p>>2]|0)>>0]|0)<<26|(ge[1725+(pe[g>>2]|0)>>0]|0)<<28|(ge[1725+(pe[m>>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);C=t;ve=M;return C|0}function At(e){e=e|0;var t=0,r=0,n=0,i=0,o=0,a=0,s=0,u=0,l=0,c=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;c=(ge[i+55>>0]|0)<<8|(ge[i+56>>0]|0);l=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+50>>0]|0)<<8|(ge[i+49>>0]|0)<<16|(ge[i+51>>0]|0);n=t+r|0;i=(ge[i+53>>0]|0)<<8|(ge[i+52>>0]|0)<<16|(ge[i+54>>0]|0);if(!i){f=0;ve=h;return f|0}pe[l>>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(l,f)|0){o=e+268|0;r=e+272|0;t=pe[r>>2]|0;if((t|0)!=(c|0)){if(t>>>0<=c>>>0){do{if((pe[e+276>>2]|0)>>>0>>0)if(it(o,c,(t+1|0)==(c|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,c-t<<1|0)|0}pe[r>>2]=c}if(!c){pe[s>>2]=1154;pe[s+4>>2]=903;pe[s+8>>2]=1781;br(a,1100,s)|0;yr(a,u)|0;t=1;break}r=0;n=0;i=0;t=pe[o>>2]|0;while(1){u=mt(l,f)|0;r=u+r&255;n=(mt(l,f)|0)+n&255;Q[t>>1]=n<<8|r;i=i+1|0;if((i|0)==(c|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=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=(ge[i+63>>0]|0)<<8|(ge[i+64>>0]|0);y=e+92|0;t=pe[e+4>>2]|0;r=(ge[i+58>>0]|0)<<8|(ge[i+57>>0]|0)<<16|(ge[i+59>>0]|0);n=t+r|0;i=(ge[i+61>>0]|0)<<8|(ge[i+60>>0]|0)<<16|(ge[i+62>>0]|0);if(!i){S=0;ve=M;return S|0}pe[y>>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(y,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));_=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>>0)if(it(_,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[_>>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;yr(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;l=x+32|0;c=x+36|0;f=x+40|0;h=x+44|0;d=x+48|0;p=x+52|0;g=x+56|0;m=x+60|0;v=0;r=pe[_>>2]|0;while(1){t=0;do{P=mt(y,S)|0;_=t<<1;C=x+(_<<2)|0;pe[C>>2]=(pe[C>>2]|0)+(pe[w+(P<<2)>>2]|0)&7;_=x+((_|1)<<2)|0;pe[_>>2]=(pe[_>>2]|0)+(pe[T+(P<<2)>>2]|0)&7;t=t+1|0}while((t|0)!=8);P=ge[1729+(pe[a>>2]|0)>>0]|0;Q[r>>1]=(ge[1729+(pe[n>>2]|0)>>0]|0)<<3|(ge[1729+(pe[x>>2]|0)>>0]|0)|(ge[1729+(pe[i>>2]|0)>>0]|0)<<6|(ge[1729+(pe[e>>2]|0)>>0]|0)<<9|(ge[1729+(pe[o>>2]|0)>>0]|0)<<12|P<<15;C=ge[1729+(pe[f>>2]|0)>>0]|0;Q[r+2>>1]=(ge[1729+(pe[s>>2]|0)>>0]|0)<<2|P>>>1|(ge[1729+(pe[u>>2]|0)>>0]|0)<<5|(ge[1729+(pe[l>>2]|0)>>0]|0)<<8|(ge[1729+(pe[c>>2]|0)>>0]|0)<<11|C<<14;Q[r+4>>1]=(ge[1729+(pe[h>>2]|0)>>0]|0)<<1|C>>>2|(ge[1729+(pe[d>>2]|0)>>0]|0)<<4|(ge[1729+(pe[p>>2]|0)>>0]|0)<<7|(ge[1729+(pe[g>>2]|0)>>0]|0)<<10|(ge[1729+(pe[m>>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);C=t;ve=M;return C|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,le=0,ce=0,fe=0,he=0;ce=ve;ve=ve+720|0;le=ce+184|0;se=ce+168|0;ae=ce+160|0;oe=ce+144|0;ie=ce+136|0;ne=ce+120|0;re=ce+112|0;ee=ce+96|0;Q=ce+88|0;$=ce+72|0;J=ce+64|0;Z=ce+48|0;K=ce+40|0;ue=ce+24|0;te=ce+16|0;V=ce;G=ce+208|0;W=ce+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=ce;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;C=Y+2|0;k=Y+3|0;E=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){_=w&1;u=(_|0)==0;v=(_<<5^32)+-16|0;_=(_<<1^2)+-1|0;b=u?a:-1;l=u?0:F;e=(w|0)==(X|0);y=R&e;if((l|0)!=(b|0)){m=R&e^1;g=u?x:x+E|0;while(1){if((i|0)==1)i=mt(D,L)|0|512;p=i&7;i=i>>>3;u=ge[1823+p>>0]|0;e=0;do{h=(mt(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;yr(G,te)|0}pe[W+(e<<2)>>2]=pe[(pe[j>>2]|0)+(o<<2)>>2];e=e+1|0}while(e>>>0>>0);d=O&(l|0)==(F|0);if(y|d){h=0;do{c=_e(h,n)|0;e=g+c|0;u=(h|0)==0|m;f=h<<1;he=(mt(D,A)|0)+r|0;fe=he-H|0;r=fe>>31;r=r&he|fe&~r;do{if(d){if(!u){fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((ge[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;yr(G,ae)|0}pe[g+(c+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r}else{if(!u){fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;break}pe[e>>2]=pe[W+((ge[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;yr(G,ie)|0}pe[g+(c+4)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];fe=(mt(D,A)|0)+r|0;he=fe-H|0;r=he>>31;r=r&fe|he&~r;pe[g+(c+8)>>2]=pe[W+((ge[(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;yr(G,le)|0}pe[g+(c+12)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}}while(0);h=h+1|0}while((h|0)!=2)}else{pe[g>>2]=pe[W+((ge[1831+(p<<2)>>0]|0)<<2)>>2];fe=(mt(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;yr(G,K)|0}pe[g+4>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+8>>2]=pe[W+((ge[1831+(p<<2)+1>>0]|0)<<2)>>2];fe=(mt(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[Z>>2]=1154;pe[Z+4>>2]=903;pe[Z+8>>2]=1781;br(G,1100,Z)|0;yr(G,J)|0}pe[g+12>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+(Y<<2)>>2]=pe[W+((ge[1831+(p<<2)+2>>0]|0)<<2)>>2];fe=(mt(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[$>>2]=1154;pe[$+4>>2]=903;pe[$+8>>2]=1781;br(G,1100,$)|0;yr(G,Q)|0}pe[g+(P<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2];pe[g+(C<<2)>>2]=pe[W+((ge[1831+(p<<2)+3>>0]|0)<<2)>>2];fe=(mt(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;yr(G,re)|0}pe[g+(k<<2)>>2]=pe[(pe[M>>2]|0)+(r<<2)>>2]}l=l+_|0;if((l|0)==(b|0))break;else g=g+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=ce;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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=0,ee=0,te=0,re=0,ne=0,ie=0,oe=0,ae=0,se=0,ue=0,le=0,ce=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;ce=fe+24|0;le=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;J=pe[q>>2]|0;$=e+272|0;Q=pe[$>>2]|0;r=pe[e+88>>2]|0;U=(ge[r+63>>0]|0)<<8|(ge[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;Z=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;E=e+268|0;A=V<<5;C=r&255;r=0;i=0;o=0;e=0;u=1;k=0;do{if(!X){M=pe[t+(k<<2)>>2]|0;P=0;while(1){T=P&1;l=(T|0)==0;w=(T<<6^64)+-32|0;T=(T<<1^2)+-1|0;S=l?a:-1;c=l?0:V;if((c|0)!=(S|0)){x=j|(P|0)!=(H|0);b=l?M:M+A|0;while(1){if((u|0)==1)u=mt(G,W)|0|512;y=u&7;u=u>>>3;f=ge[1823+y>>0]|0;l=0;do{v=(mt(G,N)|0)+i|0;_=v-Q|0;i=_>>31;i=i&v|_&~i;if((pe[$>>2]|0)>>>0<=i>>>0){pe[ne>>2]=1154;pe[ne+4>>2]=903;pe[ne+8>>2]=1781;br(te,1100,ne)|0;yr(te,le)|0}pe[ee+(l<<2)>>2]=me[(pe[E>>2]|0)+(i<<1)>>1];l=l+1|0}while(l>>>0>>0);l=0;do{v=(mt(G,D)|0)+e|0;_=v-z|0;e=_>>31;e=e&v|_&~e;if((pe[B>>2]|0)>>>0<=e>>>0){pe[ce>>2]=1154;pe[ce+4>>2]=903;pe[ce+8>>2]=1781;br(te,1100,ce)|0;yr(te,ie)|0}pe[re+(l<<2)>>2]=pe[(pe[L>>2]|0)+(e<<2)>>2];l=l+1|0}while(l>>>0>>0);_=F|(c|0)!=(V|0);m=0;v=b;while(1){g=x|(m|0)==0;p=m<<1;h=0;d=v;while(1){f=(mt(G,K)|0)+r|0;l=f-U|0;r=l>>31;r=r&f|l&~r;l=(mt(G,Z)|0)+o|0;f=l-J|0;o=f>>31;o=o&l|f&~o;if((_|(h|0)==0)&g){l=ge[h+p+(1831+(y<<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;yr(te,ae)|0}he=pe[R>>2]|0;pe[d>>2]=(me[he+(f<<1)>>1]|0)<<16|pe[ee+(l<<2)>>2];pe[d+4>>2]=(me[he+(f+2<<1)>>1]|0)<<16|(me[he+(f+1<<1)>>1]|0);pe[d+8>>2]=pe[re+(l<<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;yr(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}m=m+1|0;if((m|0)==2)break;else v=v+n|0}c=c+T|0;if((c|0)==(S|0))break;else b=b+w|0}}P=P+1|0;if((P|0)==(s|0))break;else M=M+Y|0}}k=k+1|0}while((k|0)!=(C|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0;J=ve;ve=ve+608|0;V=J+64|0;W=J+48|0;G=J+40|0;Z=J+24|0;K=J+16|0;Y=J;H=J+88|0;q=J+72|0;I=e+272|0;D=pe[I>>2]|0;r=pe[e+88>>2]|0;L=(ge[r+63>>0]|0)<<8|(ge[r+64>>0]|0);r=de[r+17>>0]|0;if(!(r<<24>>24)){ve=J;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;E=e+288|0;A=e+284|0;O=e+164|0;C=e+268|0;k=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;y=(b<<5^32)+-16|0;b=(b<<1^2)+-1|0;x=i?a:-1;u=i?0:U;if((u|0)!=(x|0)){_=R|(T|0)!=(j|0);v=i?w:w+k|0;while(1){if((e|0)==1)e=mt(B,z)|0|512;m=e&7;e=e>>>3;l=ge[1823+m>>0]|0;i=0;do{p=(mt(B,O)|0)+o|0;g=p-D|0;o=g>>31;o=o&p|g&~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;yr(H,K)|0}pe[q+(i<<2)>>2]=me[(pe[C>>2]|0)+(o<<1)>>1];i=i+1|0}while(i>>>0>>0);g=(u|0)==(U|0)&M;d=0;p=v;while(1){h=_|(d|0)==0;f=d<<1;i=(mt(B,X)|0)+r|0;c=i-L|0;l=c>>31;l=l&i|c&~l;if(h){r=ge[1831+(m<<2)+f>>0]|0;i=l*3|0;if((pe[E>>2]|0)>>>0<=i>>>0){pe[Z>>2]=1154;pe[Z+4>>2]=903;pe[Z+8>>2]=1781;br(H,1100,Z)|0;yr(H,G)|0}c=pe[A>>2]|0;pe[p>>2]=(me[c+(i<<1)>>1]|0)<<16|pe[q+(r<<2)>>2];pe[p+4>>2]=(me[c+(i+2<<1)>>1]|0)<<16|(me[c+(i+1<<1)>>1]|0)}c=p+8|0;i=(mt(B,X)|0)+l|0;l=i-L|0;r=l>>31;r=r&i|l&~r;if(!(g|h^1)){i=ge[(f|1)+(1831+(m<<2))>>0]|0;l=r*3|0;if((pe[E>>2]|0)>>>0<=l>>>0){pe[W>>2]=1154;pe[W+4>>2]=903;pe[W+8>>2]=1781;br(H,1100,W)|0;yr(H,V)|0}h=pe[A>>2]|0;pe[c>>2]=(me[h+(l<<1)>>1]|0)<<16|pe[q+(i<<2)>>2];pe[p+12>>2]=(me[h+(l+2<<1)>>1]|0)<<16|(me[h+(l+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+y|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=J;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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0,Q=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;Q=ae+40|0;oe=ae+24|0;ie=ae+16|0;$=ae;J=ae+128|0;K=ae+112|0;Z=ae+96|0;B=e+272|0;z=pe[B>>2]|0;r=pe[e+88>>2]|0;U=(ge[r+63>>0]|0)<<8|(ge[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){k=pe[t+(O<<2)>>2]|0;E=0;while(1){P=E&1;l=(P|0)==0;M=(P<<6^64)+-32|0;P=(P<<1^2)+-1|0;C=l?a:-1;c=l?0:W;if((c|0)!=(C|0)){S=j|(E|0)!=(q|0);T=l?k:k+I|0;while(1){if((u|0)==1)u=mt(Y,G)|0|512;w=u&7;u=u>>>3;f=ge[1823+w>>0]|0;l=0;do{b=(mt(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[$>>2]=1154;pe[$+4>>2]=903;pe[$+8>>2]=1781;br(J,1100,$)|0;yr(J,ie)|0}pe[K+(l<<2)>>2]=me[(pe[R>>2]|0)+(e<<1)>>1];l=l+1|0}while(l>>>0>>0);l=0;do{b=(mt(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(J,1100,oe)|0;yr(J,Q)|0}pe[Z+(l<<2)>>2]=me[(pe[R>>2]|0)+(i<<1)>>1];l=l+1|0}while(l>>>0>>0);x=F|(c|0)!=(W|0);y=0;b=T;while(1){_=S|(y|0)==0;v=y<<1;g=0;m=b;while(1){p=(mt(Y,V)|0)+o|0;d=p-U|0;o=d>>31;o=o&p|d&~o;d=(mt(Y,V)|0)+r|0;p=d-U|0;r=p>>31;r=r&d|p&~r;if((x|(g|0)==0)&_){d=ge[g+v+(1831+(w<<2))>>0]|0;p=o*3|0;l=pe[D>>2]|0;if(l>>>0<=p>>>0){pe[ee>>2]=1154;pe[ee+4>>2]=903;pe[ee+8>>2]=1781;br(J,1100,ee)|0;yr(J,te)|0;l=pe[D>>2]|0}f=pe[L>>2]|0;h=r*3|0;if(l>>>0>h>>>0)l=f;else{pe[re>>2]=1154;pe[re+4>>2]=903;pe[re+8>>2]=1781;br(J,1100,re)|0;yr(J,ne)|0;l=pe[L>>2]|0}pe[m>>2]=(me[f+(p<<1)>>1]|0)<<16|pe[K+(d<<2)>>2];pe[m+4>>2]=(me[f+(p+2<<1)>>1]|0)<<16|(me[f+(p+1<<1)>>1]|0);pe[m+8>>2]=(me[l+(h<<1)>>1]|0)<<16|pe[Z+(d<<2)>>2];pe[m+12>>2]=(me[l+(h+2<<1)>>1]|0)<<16|(me[l+(h+1<<1)>>1]|0)}g=g+1|0;if((g|0)==2)break;else m=m+16|0}y=y+1|0;if((y|0)==2)break;else b=b+n|0}c=c+P|0;if((c|0)==(C|0))break;else T=T+M|0}}E=E+1|0;if((E|0)==(s|0))break;else k=k+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,l=0,c=0,f=0,h=0;h=ve;ve=ve+608|0;f=h+88|0;c=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;l=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(l,1100,n)|0;yr(l,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(l,1100,a)|0;yr(l,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(l,1100,s)|0;yr(l,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[c>>2]=1154;pe[c+4>>2]=2499;pe[c+8>>2]=1516;br(l,1100,c)|0;yr(l,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=$t(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 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);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);else{e=pe[e+8>>2]|0;Ln[pe[(pe[e>>2]|0)+28>>2]&3](e,t,r,n)}return}function $t(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,l=0,c=0,f=0,h=0,d=0;d=ve;ve=ve+64|0;h=d;f=pe[e>>2]|0;c=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;l=u+36|0;do{pe[u>>2]=0;u=u+4|0}while((u|0)<(l|0));Q[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,c,c,1,0);n=(pe[t>>2]|0)==1?c:0}else{kn[pe[(pe[f>>2]|0)+24>>2]&3](f,h,c,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 Qt(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;kn[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))Qt(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))Qt(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=Cn[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=($t(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(Cn[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 lr(e){e=e|0;var t=0,r=0;t=0;while(1){if((ge[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 cr(){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=cr()|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=cr()|0;pe[e>>2]=84;e=-1;break}}else e=1}while(0);return e|0}function gr(e,t){e=e|0;t=t|0;if(!e)e=0;else e=pr(e,t,0)|0;return e|0}function mr(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=mr(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 _r(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>>0){n=Cn[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((Cn[pe[r+36>>2]&7](r,e,n)|0)>>>0>>0)break e;t=t-n|0;e=e+n|0;i=pe[a>>2]|0}else{i=o;n=0}}while(0);$r(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 yr(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0;g=ve;ve=ve+224|0;f=g+120|0;p=g+80|0;d=g;h=g+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)l=Sr(e)|0;else l=0;r=pe[e>>2]|0;c=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){Cn[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|c;if(l)Mr(e);r=(r&32|0)==0?n:-1}ve=g;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,l=0,c=0;c=ve;ve=ve+128|0;i=c+112|0;l=c;o=l;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=cr()|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[l+48>>2]=u;e=l+20|0;pe[e>>2]=i;pe[l+44>>2]=i;t=i+u|0;i=l+16|0;pe[i>>2]=t;pe[l+28>>2]=t;t=xr(l,r,n)|0;if(u){r=pe[e>>2]|0;de[r+(((r|0)==(pe[i>>2]|0))<<31>>31)>>0]=0}}ve=c;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>>0?(r=t&255,(r|0)!=(de[e+75>>0]|0)):0){pe[n>>2]=o+1;de[o>>0]=a;break}if((Cn[pe[e+36>>2]&7](e,s,1)|0)==1)r=ge[s>>0]|0;else r=-1}}while(0);ve=u;return r|0}function Cr(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 kr(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 Er(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,l=0,c=0,f=0,h=0,d=0,p=0;p=ve;ve=ve+48|0;f=p+16|0;c=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;l=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[c>>2]=pe[u>>2];pe[c+4>>2]=n;pe[c+8>>2]=t;a=fr(Ge(146,c|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[l>>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[l>>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=Er(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=_e(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?(Cn[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>>0)Cn[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,l=0.0,c=0,f=0,h=0,d=0,p=0.0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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,Z=0,J=0,$=0;$=ve;ve=ve+624|0;W=$+24|0;K=$+16|0;V=$+588|0;X=$+576|0;G=$;B=$+536|0;J=$+8|0;Z=$+528|0;A=(e|0)!=0;O=B+40|0;F=O;B=B+39|0;z=J+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;g=t;a=0;t=0;e:while(1){do{if((o|0)>-1)if((a|0)>(2147483647-o|0)){o=cr()|0;pe[o>>2]=75;o=-1;break}else{o=a+o|0;break}}while(0);a=de[g>>0]|0;if(!(a<<24>>24)){E=245;break}else s=g;t:while(1){switch(a<<24>>24){case 37:{a=s;E=9;break t}case 0:{a=s;break t}default:{}}k=s+1|0;a=de[k>>0]|0;s=k}t:do{if((E|0)==9)while(1){E=0;if((de[a+1>>0]|0)!=37)break t;s=s+1|0;a=a+2|0;if((de[a>>0]|0)==37)E=9;else break}}while(0);v=s-g|0;if(A?(pe[e>>2]&32|0)==0:0)_r(g,v,e)|0;if((s|0)!=(g|0)){g=a;a=v;continue}c=a+1|0;s=de[c>>0]|0;u=(s<<24>>24)+-48|0;if(u>>>0<10){k=(de[a+2>>0]|0)==36;c=k?a+3|0:c;s=de[c>>0]|0;d=k?u:-1;t=k?1:t}else d=-1;a=s<<24>>24;t:do{if((a&-32|0)==32){u=0;while(1){if(!(1<>24)+-32|u;c=c+1|0;s=de[c>>0]|0;a=s<<24>>24;if((a&-32|0)!=32){f=u;a=c;break}}}else{f=0;a=c}}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){m=f;a=u;t=0;k=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){m=f|8192;k=0-s|0}else{m=f;k=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{m=f;k=s}}else{m=f;k=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){c=(s<<24>>24)+-48|0;if(c>>>0<10){a=u;s=0}else{a=u;c=0;break}while(1){s=(s*10|0)+c|0;a=a+1|0;c=(de[a>>0]|0)+-48|0;if(c>>>0>=10){c=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;c=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);c=pe[a>>2]|0;pe[r>>2]=a+4;a=u}else{a=u;c=0}}else c=-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{C=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 E=52;else{if(u){pe[i+(d<<2)>>2]=f;M=n+(d<<3)|0;P=pe[M+4>>2]|0;E=G;pe[E>>2]=pe[M>>2];pe[E+4>>2]=P;E=52;break}if(!A){o=0;break e}jr(G,f,r)}}while(0);if((E|0)==52?(E=0,!A):0){g=C;a=v;continue}d=de[a>>0]|0;d=(h|0)!=0&(d&15|0)==3?d&-33:d;u=m&-65537;P=(m&8192|0)==0?m:u;t:do{switch(d|0){case 110:switch(h|0){case 0:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 1:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 2:{g=pe[G>>2]|0;pe[g>>2]=o;pe[g+4>>2]=((o|0)<0)<<31>>31;g=C;a=v;continue e}case 3:{Q[pe[G>>2]>>1]=o;g=C;a=v;continue e}case 4:{de[pe[G>>2]>>0]=o;g=C;a=v;continue e}case 6:{pe[pe[G>>2]>>2]=o;g=C;a=v;continue e}case 7:{g=pe[G>>2]|0;pe[g>>2]=o;pe[g+4>>2]=((o|0)<0)<<31>>31;g=C;a=v;continue e}default:{g=C;a=v;continue e}}case 112:{h=P|8;c=c>>>0>8?c:8;d=120;E=64;break}case 88:case 120:{h=P;E=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;E=77}else{h=F-a+1|0;s=P;c=(c|0)<(h|0)?h:c;h=0;f=5839;E=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;E=76;break t}if(!(P&2048)){f=P&1;u=f;f=(f|0)==0?5839:5841;E=76}else{u=1;f=5840;E=76}break}case 117:{s=G;a=pe[s>>2]|0;s=pe[s+4>>2]|0;u=0;f=5839;E=76;break}case 99:{de[B>>0]=pe[G>>2];g=B;s=1;h=0;d=5839;a=O;break}case 109:{a=cr()|0;a=lr(pe[a>>2]|0)|0;E=82;break}case 115:{a=pe[G>>2]|0;a=(a|0)!=0?a:5849;E=82;break}case 67:{pe[J>>2]=pe[G>>2];pe[z>>2]=0;pe[G>>2]=J;c=-1;E=86;break}case 83:{if(!c){Br(e,32,k,0,P);a=0;E=98}else E=86;break}case 65:case 71:case 70:case 69:case 97:case 103:case 102:case 101:{l=+ee[G>>3];pe[K>>2]=0;ee[te>>3]=l;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{l=-l;S=1;M=5856}ee[te>>3]=l;T=pe[te+4>>2]&2146435072;do{if(T>>>0<2146435072|(T|0)==2146435072&0<0){p=+dr(l,K)*2.0;s=p!=0.0;if(s)pe[K>>2]=(pe[K>>2]|0)+-1;x=d|32;if((x|0)==97){g=d&32;v=(g|0)==0?M:M+9|0;m=S|2;a=12-c|0;do{if(!(c>>>0>11|(a|0)==0)){l=8.0;do{a=a+-1|0;l=l*16.0}while((a|0)!=0);if((de[v>>0]|0)==45){l=-(l+(-p-l));break}else{l=p+l-l;break}}else l=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=(c|0)<1;u=(P&8|0)==0;s=V;while(1){M=~~l;a=s+1|0;de[s>>0]=ge[5823+M>>0]|g;l=(l-+(M|0))*16.0;do{if((a-q|0)==1){if(u&(f&l==0.0))break;de[a>>0]=46;a=s+2|0}}while(0);if(!(l!=0.0))break;else s=a}c=(c|0)!=0&(R+a|0)<(c|0)?I+c-h|0:Y-h+a|0;u=c+m|0;Br(e,32,k,u,P);if(!(pe[e>>2]&32))_r(v,m,e)|0;Br(e,48,k,u,P^65536);a=a-q|0;if(!(pe[e>>2]&32))_r(V,a,e)|0;s=H-h|0;Br(e,48,c-(a+s)|0,0,0);if(!(pe[e>>2]&32))_r(h,s,e)|0;Br(e,32,k,u,P^8192);a=(u|0)<(k|0)?k:u;break}a=(c|0)<0?6:c;if(s){s=(pe[K>>2]|0)+-28|0;pe[K>>2]=s;l=p*268435456.0}else{l=p;s=pe[K>>2]|0}T=(s|0)<0?W:D;w=T;s=T;do{b=~~l>>>0;pe[s>>2]=b;s=s+4|0;l=(l-+(b>>>0))*1.0e9}while(l!=0.0);u=s;s=pe[K>>2]|0;if((s|0)>0){f=T;while(1){h=(s|0)>29?29:s;c=u+-4|0;do{if(c>>>0>>0)c=f;else{s=0;do{b=Zr(pe[c>>2]|0,0,h|0)|0;b=Jr(b|0,re|0,s|0,0)|0;s=re;y=sn(b|0,s|0,1e9,0)|0;pe[c>>2]=y;s=an(b|0,s|0,1e9,0)|0;c=c+-4|0}while(c>>>0>=f>>>0);if(!s){c=f;break}c=f+-4|0;pe[c>>2]=s}}while(0);while(1){if(u>>>0<=c>>>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=c;else break}}else c=T;if((s|0)<0){v=((a+25|0)/9|0)+1|0;_=(x|0)==102;g=c;while(1){m=0-s|0;m=(m|0)>9?9:m;do{if(g>>>0>>0){s=(1<>>m;c=0;h=g;do{b=pe[h>>2]|0;pe[h>>2]=(b>>>m)+c;c=_e(b&s,f)|0;h=h+4|0}while(h>>>0>>0);s=(pe[g>>2]|0)==0?g+4|0:g;if(!c){c=s;break}pe[u>>2]=c;c=s;u=u+4|0}else c=(pe[g>>2]|0)==0?g+4|0:g}while(0);s=_?T:c;u=(u-s>>2|0)>(v|0)?s+(v<<2)|0:u;s=(pe[K>>2]|0)+m|0;pe[K>>2]=s;if((s|0)>=0){g=c;break}else g=c}}else g=c;do{if(g>>>0>>0){s=(w-g>>2)*9|0;f=pe[g>>2]|0;if(f>>>0<10)break;else c=10;do{c=c*10|0;s=s+1|0}while(f>>>0>=c>>>0)}else s=0}while(0);y=(x|0)==103;b=(a|0)!=0;c=a-((x|0)!=102?s:0)+((b&y)<<31>>31)|0;if((c|0)<(((u-w>>2)*9|0)+-9|0)){h=c+9216|0;_=(h|0)/9|0;c=T+(_+-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;m=pe[c>>2]|0;v=(m>>>0)%(f>>>0)|0;if((v|0)==0?(T+(_+-1022<<2)|0)==(u|0):0)f=g;else E=163;do{if((E|0)==163){E=0;p=(((m>>>0)/(f>>>0)|0)&1|0)==0?9007199254740992.0:9007199254740994.0;h=(f|0)/2|0;do{if(v>>>0>>0)l=.5;else{if((v|0)==(h|0)?(T+(_+-1022<<2)|0)==(u|0):0){l=1.0;break}l=1.5}}while(0);do{if(S){if((de[M>>0]|0)!=45)break;p=-p;l=-l}}while(0);h=m-v|0;pe[c>>2]=h;if(!(p+l!=p)){f=g;break}x=h+f|0;pe[c>>2]=x;if(x>>>0>999999999){s=g;while(1){f=c+-4|0;pe[c>>2]=0;if(f>>>0>>0){s=s+-4|0;pe[s>>2]=0}x=(pe[f>>2]|0)+1|0;pe[f>>2]=x;if(x>>>0>999999999)c=f;else{g=s;c=f;break}}}s=(w-g>>2)*9|0;h=pe[g>>2]|0;if(h>>>0<10){f=g;break}else f=10;do{f=f*10|0;s=s+1|0}while(h>>>0>=f>>>0);f=g}}while(0);x=c+4|0;g=f;u=u>>>0>x>>>0?x:u}v=0-s|0;while(1){if(u>>>0<=g>>>0){_=0;x=u;break}c=u+-4|0;if(!(pe[c>>2]|0))u=c;else{_=1;x=u;break}}do{if(y){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(_){u=pe[x+-4>>2]|0;if(!u){c=9;break}if(!((u>>>0)%10|0)){f=10;c=0}else{c=0;break}do{f=f*10|0;c=c+1|0}while(((u>>>0)%(f>>>0)|0|0)==0)}else c=9}while(0);u=((x-w>>2)*9|0)+-9|0;if((d|32|0)==102){u=u-c|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}else{u=u+s-c|0;u=(u|0)<0?0:u;a=(a|0)<(u|0)?a:u;u=0;break}}else u=P&8}while(0);m=a|u;f=(m|0)!=0&1;h=(d|32|0)==102;if(h){s=(s|0)>0?s:0;d=0}else{c=(s|0)<0?v:s;c=Fr(c,((c|0)<0)<<31>>31,U)|0;if((H-c|0)<2)do{c=c+-1|0;de[c>>0]=48}while((H-c|0)<2);de[c+-1>>0]=(s>>31&2)+43;w=c+-2|0;de[w>>0]=d;s=H-w|0;d=w}v=S+1+a+f+s|0;Br(e,32,k,v,P);if(!(pe[e>>2]&32))_r(M,S,e)|0;Br(e,48,k,v,P^65536);do{if(h){c=g>>>0>T>>>0?T:g;s=c;do{u=Fr(pe[s>>2]|0,0,L)|0;do{if((s|0)==(c|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))_r(u,N-u|0,e)|0;s=s+4|0}while(s>>>0<=T>>>0);do{if(m){if(pe[e>>2]&32)break;_r(5891,1,e)|0}}while(0);if((a|0)>0&s>>>0>>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))_r(s,(a|0)>9?9:a,e)|0;u=u+4|0;s=a+-9|0;if(!((a|0)>9&u>>>0>>0)){a=s;break}else a=s}}Br(e,48,a+9|0,9,0)}else{h=_?x:g+4|0;if((a|0)>-1){f=(u|0)==0;c=g;do{s=Fr(pe[c>>2]|0,0,L)|0;if((s|0)==(L|0)){de[j>>0]=48;s=j}do{if((c|0)==(g|0)){u=s+1|0;if(!(pe[e>>2]&32))_r(s,1,e)|0;if(f&(a|0)<1){s=u;break}if(pe[e>>2]&32){s=u;break}_r(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))_r(s,(a|0)>(u|0)?u:a,e)|0;a=a-u|0;c=c+4|0}while(c>>>0>>0&(a|0)>-1)}Br(e,48,a+18|0,18,0);if(pe[e>>2]&32)break;_r(d,H-d|0,e)|0}}while(0);Br(e,32,k,v,P^8192);a=(v|0)<(k|0)?k:v}else{h=(d&32|0)!=0;f=l!=l|0.0!=0.0;s=f?0:S;c=s+3|0;Br(e,32,k,c,u);a=pe[e>>2]|0;if(!(a&32)){_r(M,s,e)|0;a=pe[e>>2]|0}if(!(a&32))_r(f?h?5883:5887:h?5875:5879,3,e)|0;Br(e,32,k,c,P^8192);a=(c|0)<(k|0)?k:c}}while(0);g=C;continue e}default:{u=P;s=c;h=0;d=5839;a=O}}}while(0);t:do{if((E|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]=ge[5823+(s&15)>>0]|f;s=Kr(s|0,u|0,4)|0;u=re}while(!((s|0)==0&(u|0)==0));E=G;if((h&8|0)==0|(pe[E>>2]|0)==0&(pe[E+4>>2]|0)==0){s=h;h=0;f=5839;E=77}else{s=h;h=2;f=5839+(d>>4)|0;E=77}}else{a=O;s=h;h=0;f=5839;E=77}}else if((E|0)==76){a=Fr(a,s,O)|0;s=P;h=u;E=77}else if((E|0)==82){E=0;P=Rr(a,0,c)|0;M=(P|0)==0;g=a;s=M?c:P-a|0;h=0;d=5839;a=M?a+c|0:P}else if((E|0)==86){E=0;s=0;a=0;f=pe[G>>2]|0;while(1){u=pe[f>>2]|0;if(!u)break;a=gr(Z,u)|0;if((a|0)<0|a>>>0>(c-s|0)>>>0)break;s=a+s|0;if(c>>>0>s>>>0)f=f+4|0;else break}if((a|0)<0){o=-1;break e}Br(e,32,k,s,P);if(!s){a=0;E=98}else{u=0;c=pe[G>>2]|0;while(1){a=pe[c>>2]|0;if(!a){a=s;E=98;break t}a=gr(Z,a)|0;u=a+u|0;if((u|0)>(s|0)){a=s;E=98;break t}if(!(pe[e>>2]&32))_r(Z,a,e)|0;if(u>>>0>=s>>>0){a=s;E=98;break}else c=c+4|0}}}}while(0);if((E|0)==98){E=0;Br(e,32,k,a,P^8192);g=C;a=(k|0)>(a|0)?k:a;continue}if((E|0)==77){E=0;u=(c|0)>-1?s&-65537:s;s=G;s=(pe[s>>2]|0)!=0|(pe[s+4>>2]|0)!=0;if((c|0)!=0|s){s=(s&1^1)+(F-a)|0;g=a;s=(c|0)>(s|0)?c:s;d=f;a=O}else{g=O;s=0;d=f;a=O}}f=a-g|0;s=(s|0)<(f|0)?f:s;c=h+s|0;a=(k|0)<(c|0)?c:k;Br(e,32,a,c,u);if(!(pe[e>>2]&32))_r(d,h,e)|0;Br(e,48,a,c,u^65536);Br(e,48,s,f,0);if(!(pe[e>>2]&32))_r(g,f,e)|0;Br(e,32,a,c,u^8192);g=C}e:do{if((E|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=$;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;$r(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){_r(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;_r(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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0,b=0,x=0,w=0,T=0,S=0,M=0,P=0,C=0,k=0,E=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<>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<>>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;l=pe[153]|0;break}else Xe()}else{pe[151]=s&~(1<>2]=d|3;s=o+d|0;pe[o+(d|4)>>2]=a|1;pe[o+j>>2]=a;if(l){i=pe[156]|0;r=l>>>3;t=r<<1;n=644+(t<<2)|0;e=pe[151]|0;r=1<>2]|0;if(t>>>0<(pe[155]|0)>>>0)Xe();else{c=e;f=t}}else{pe[151]=e|r;c=644+(t+2<<2)|0;f=n}pe[c>>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>>0;r=j?e:r;e=t;n=j?t:n}o=pe[155]|0;if(n>>>0>>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>>0)Xe();else{pe[e>>2]=0;h=t;break}}else{i=pe[n+8>>2]|0;if(i>>>0>>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<>>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>>0)Xe();pe[h+24>>2]=a;t=pe[n+16>>2]|0;do{if(t)if(t>>>0>>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<>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{p=t;g=e}}else{pe[151]=e|r;p=644+(t+2<<2)|0;g=i}pe[p>>2]=o;pe[g+12>>2]=o;pe[o+8>>2]=g;pe[o+12>>2]=i}pe[153]=u;pe[156]=s}j=n+8|0;return j|0}else g=d}else g=d}else if(e>>>0<=4294967231){e=e+11|0;f=e&-8;c=pe[152]|0;if(c){r=0-f|0;e=e>>>8;if(e)if(f>>>0>16777215)l=31;else{g=(e+1048320|0)>>>16&8;b=e<>>16&4;b=b<>>16&2;l=14-(p|g|l)+(b<>>15)|0;l=f>>>(l+7|0)&1|l<<1}else l=0;e=pe[908+(l<<2)>>2]|0;e:do{if(!e){i=0;e=0;b=86}else{a=r;i=0;s=f<<((l|0)==31?0:25-(l>>>1)|0);u=e;e=0;while(1){o=pe[u+4>>2]&-8;r=o-f|0;if(r>>>0>>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<>>12&16;e=e>>>h;c=e>>>5&8;e=e>>>c;p=e>>>2&4;e=e>>>p;g=e>>>1&2;e=e>>>g;i=e>>>1&1;i=pe[908+((c|h|p|g|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;g=(pe[o+4>>2]&-8)-f|0;i=g>>>0>>0;r=i?g: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>>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>>0)Xe();else{pe[e>>2]=0;d=t;break}}else{n=pe[u+8>>2]|0;if(n>>>0>>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<>>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>>0)Xe();pe[d+24>>2]=o;t=pe[u+16>>2]|0;do{if(t)if(t>>>0>>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<>2]|0;if(e>>>0<(pe[155]|0)>>>0)Xe();else{v=t;_=e}}else{pe[151]=r|t;v=644+(e+2<<2)|0;_=n}pe[v>>2]=a;pe[_+12>>2]=a;pe[u+(f+8)>>2]=_;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<>>16&4;j=j<>>16&2;n=14-(L|N|n)+(j<>>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<>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 g=f}else g=f}else g=-1}while(0);r=pe[153]|0;if(r>>>0>=g>>>0){t=r-g|0;e=pe[156]|0;if(t>>>0>15){pe[156]=e+g;pe[153]=t;pe[e+(g+4)>>2]=t|1;pe[e+r>>2]=t;pe[e+4>>2]=g|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>g>>>0){N=e-g|0;pe[154]=N;j=pe[157]|0;pe[157]=j+g;pe[j+(g+4)>>2]=N|1;pe[j+4>>2]=g|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=g+48|0;s=pe[271]|0;l=g+47|0;a=s+l|0;s=0-s|0;c=a&s;if(c>>>0<=g>>>0){j=0;return j|0}e=pe[261]|0;if((e|0)!=0?(_=pe[259]|0,T=_+c|0,T>>>0<=_>>>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?(m=i+4|0,(r+(pe[m>>2]|0)|0)>>>0>e>>>0):0){o=i;e=m;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=c;else r=c-e+(i+e&0-r)|0;e=pe[259]|0;i=e+r|0;if(r>>>0>g>>>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))?(y=pe[271]|0,y=l-r+y&0-y,y>>>0<2147483647):0)if((Ae(y|0)|0)==(-1|0)){Ae(o|0)|0;break t}else{r=y+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?c>>>0<2147483647:0)?(x=Ae(c|0)|0,w=Ae(0)|0,x>>>0>>0&((x|0)!=(-1|0)&(w|0)!=(-1|0))):0)?(S=w-x|0,M=S>>>0>(g+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;C=r;k=i;E=o;b=204;break}o=pe[o+8>>2]|0}while((o|0)!=0);if(((b|0)==204?(pe[E+12>>2]&8|0)==0:0)?a>>>0>>0&a>>>0>=P>>>0:0){pe[C>>2]=k+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>>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;l=x+(p+8)|0;l=(l&7|0)==0?0:0-l&7;t=x+(l+p)|0;f=h+g|0;d=x+f|0;c=t-(x+h)-g|0;pe[x+(h+4)>>2]=g|3;t:do{if((t|0)!=(a|0)){if((t|0)==(pe[156]|0)){j=(pe[153]|0)+c|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+l)>>2]|0;if((r&3|0)==1){u=r&-8;o=r>>>3;r:do{if(r>>>0>=256){a=pe[x+((l|24)+p)>>2]|0;n=pe[x+(p+12+l)>>2]|0;do{if((n|0)==(t|0)){i=l|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>>0)Xe();else{pe[n>>2]=0;D=r;break}}else{i=pe[x+((l|8)+p)>>2]|0;if(i>>>0>>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+l)>>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<>>0>>0)Xe();pe[D+24>>2]=a;t=l|16;e=pe[x+(t+p)>>2]|0;do{if(e)if(e>>>0>>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+((l|8)+p)>>2]|0;i=pe[x+(p+12+l)>>2]|0;r=644+(o<<1<<2)|0;do{if((n|0)!=(r|0)){if(n>>>0>>0)Xe();if((pe[n+12>>2]|0)==(t|0))break;Xe()}}while(0);if((i|0)==(n|0)){pe[151]=pe[151]&~(1<>>0>>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|l)+p)|0;i=u+c|0}else i=c;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<>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<>>16&4;N=N<>>16&2;n=14-(D|L|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<>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)+c|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>>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>>0)do{j=t;t=t+4|0;pe[t>>2]=7}while((j+8|0)>>>0>>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<>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<>>16&4;j=j<>>16&2;n=14-(L|N|n)+(j<>>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<>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>>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>g>>>0){N=t-g|0;pe[154]=N;j=pe[157]|0;pe[157]=j+g;pe[j+(g+4)>>2]=N|1;pe[j+4>>2]=g|3;j=j+8|0;return j|0}}j=cr()|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0,y=0;if(!e)return;t=e+-8|0;s=pe[155]|0;if(t>>>0>>0)Xe();r=pe[e+-4>>2]|0;n=r&3;if((n|0)==1)Xe();d=r&-8;g=e+(d+-8)|0;do{if(!(r&1)){t=pe[t>>2]|0;if(!n)return;u=-8-t|0;c=e+u|0;f=t+d|0;if(c>>>0>>0)Xe();if((c|0)==(pe[156]|0)){t=e+(d+-4)|0;r=pe[t>>2]|0;if((r&3|0)!=3){y=c;o=f;break}pe[153]=f;pe[t>>2]=r&-2;pe[e+(u+4)>>2]=f|1;pe[g>>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>>0)Xe();if((pe[n+12>>2]|0)!=(c|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(c|0))a=t;else Xe()}else a=r+8|0;pe[n+12>>2]=r;pe[a>>2]=n;y=c;o=f;break}a=pe[e+(u+24)>>2]|0;n=pe[e+(u+12)>>2]|0;do{if((n|0)==(c|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){l=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>>0)Xe();else{pe[r>>2]=0;l=t;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0>>0)Xe();t=i+12|0;if((pe[t>>2]|0)!=(c|0))Xe();r=n+8|0;if((pe[r>>2]|0)==(c|0)){pe[t>>2]=n;pe[r>>2]=i;l=n;break}else Xe()}}while(0);if(a){t=pe[e+(u+28)>>2]|0;r=908+(t<<2)|0;if((c|0)==(pe[r>>2]|0)){pe[r>>2]=l;if(!l){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(c|0))pe[t>>2]=l;else pe[a+20>>2]=l;if(!l){y=c;o=f;break}}r=pe[155]|0;if(l>>>0>>0)Xe();pe[l+24>>2]=a;t=pe[e+(u+16)>>2]|0;do{if(t)if(t>>>0>>0)Xe();else{pe[l+16>>2]=t;pe[t+24>>2]=l;break}}while(0);t=pe[e+(u+20)>>2]|0;if(t)if(t>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=t;pe[t+24>>2]=l;y=c;o=f;break}else{y=c;o=f}}else{y=c;o=f}}else{y=t;o=d}}while(0);if(y>>>0>=g>>>0)Xe();t=e+(d+-4)|0;r=pe[t>>2]|0;if(!(r&1))Xe();if(!(r&2)){if((g|0)==(pe[157]|0)){_=(pe[154]|0)+o|0;pe[154]=_;pe[157]=y;pe[y+4>>2]=_|1;if((y|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((g|0)==(pe[156]|0)){_=(pe[153]|0)+o|0;pe[153]=_;pe[156]=y;pe[y+4>>2]=_|1;pe[y+_>>2]=_;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)==(g|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)!=(g|0))Xe();i=t+8|0;if((pe[i>>2]|0)==(g|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((g|0)==(pe[r>>2]|0)){pe[r>>2]=p;if(!p){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=a+16|0;if((pe[t>>2]|0)==(g|0))pe[t>>2]=p;else pe[a+20>>2]=p;if(!p)break}r=pe[155]|0;if(p>>>0>>0)Xe();pe[p+24>>2]=a;t=pe[e+(d+8)>>2]|0;do{if(t)if(t>>>0>>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)!=(g|0))Xe()}if((r|0)==(n|0)){pe[151]=pe[151]&~(1<>>0<(pe[155]|0)>>>0)Xe();t=r+8|0;if((pe[t>>2]|0)==(g|0))h=t;else Xe()}else h=r+8|0;pe[n+12>>2]=r;pe[h>>2]=n}}while(0);pe[y+4>>2]=o|1;pe[y+o>>2]=o;if((y|0)==(pe[156]|0)){pe[153]=o;return}}else{pe[t>>2]=r&-2;pe[y+4>>2]=o|1;pe[y+o>>2]=o}t=o>>>3;if(o>>>0<256){r=t<<1;i=644+(r<<2)|0;n=pe[151]|0;t=1<>2]|0;if(r>>>0<(pe[155]|0)>>>0)Xe();else{m=t;v=r}}else{pe[151]=n|t;m=644+(r+2<<2)|0;v=i}pe[m>>2]=y;pe[v+12>>2]=y;pe[y+8>>2]=v;pe[y+12>>2]=i;return}t=o>>>8;if(t)if(o>>>0>16777215)i=31;else{m=(t+1048320|0)>>>16&8;v=t<>>16&4;v=v<>>16&2;i=14-(g|m|i)+(v<>>15)|0;i=o>>>(i+7|0)&1|i<<1}else i=0;t=908+(i<<2)|0;pe[y+28>>2]=i;pe[y+20>>2]=0;pe[y+16>>2]=0;r=pe[152]|0;n=1<>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)){_=n;break t}else{i=i<<1;t=n}}if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[r>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y;break e}}else _=t}while(0);t=_+8|0;r=pe[t>>2]|0;v=pe[155]|0;if(r>>>0>=v>>>0&_>>>0>=v>>>0){pe[r+12>>2]=y;pe[t>>2]=y;pe[y+8>>2]=r;pe[y+12>>2]=_;pe[y+24>>2]=0;break}else Xe()}else{pe[152]=r|n;pe[t>>2]=y;pe[y+24>>2]=t;pe[y+12>>2]=y;pe[y+8>>2]=y}}while(0);y=(pe[159]|0)+-1|0;pe[159]=y;if(!y)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=cr()|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;$r(r|0,e|0,(n>>>0>>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,l=0,c=0,f=0,h=0,d=0,p=0;d=e+4|0;p=pe[d>>2]|0;u=p&-8;c=e+u|0;s=pe[155]|0;r=p&3;if(!((r|0)!=1&e>>>0>=s>>>0&e>>>0>>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((c|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((c|0)==(pe[156]|0)){n=(pe[153]|0)+u|0;if(n>>>0>>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>>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)==(c|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){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>>0)Xe();else{pe[n>>2]=0;l=r;break}}else{i=pe[e+(u+8)>>2]|0;if(i>>>0>>0)Xe();r=i+12|0;if((pe[r>>2]|0)!=(c|0))Xe();n=o+8|0;if((pe[n>>2]|0)==(c|0)){pe[r>>2]=o;pe[n>>2]=i;l=o;break}else Xe()}}while(0);if(a){r=pe[e+(u+28)>>2]|0;n=908+(r<<2)|0;if((c|0)==(pe[n>>2]|0)){pe[n>>2]=l;if(!l){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=a+16|0;if((pe[r>>2]|0)==(c|0))pe[r>>2]=l;else pe[a+20>>2]=l;if(!l)break}n=pe[155]|0;if(l>>>0>>0)Xe();pe[l+24>>2]=a;r=pe[e+(u+16)>>2]|0;do{if(r)if(r>>>0>>0)Xe();else{pe[l+16>>2]=r;pe[r+24>>2]=l;break}}while(0);r=pe[e+(u+20)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[l+20>>2]=r;pe[r+24>>2]=l;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>>0)Xe();if((pe[i+12>>2]|0)!=(c|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(c|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,l=0,c=0,f=0,h=0,d=0,p=0,g=0,m=0,v=0,_=0;g=e+t|0;r=pe[e+4>>2]|0;do{if(!(r&1)){l=pe[e>>2]|0;if(!(r&3))return;h=e+(0-l)|0;f=l+t|0;u=pe[155]|0;if(h>>>0>>0)Xe();if((h|0)==(pe[156]|0)){n=e+(t+4)|0;r=pe[n>>2]|0;if((r&3|0)!=3){_=h;a=f;break}pe[153]=f;pe[n>>2]=r&-2;pe[e+(4-l)>>2]=f|1;pe[g>>2]=f;return}o=l>>>3;if(l>>>0<256){i=pe[e+(8-l)>>2]|0;n=pe[e+(12-l)>>2]|0;r=644+(o<<1<<2)|0;if((i|0)!=(r|0)){if(i>>>0>>0)Xe();if((pe[i+12>>2]|0)!=(h|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>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;_=h;a=f;break}s=pe[e+(24-l)>>2]|0;i=pe[e+(12-l)>>2]|0;do{if((i|0)==(h|0)){i=16-l|0;n=e+(i+4)|0;r=pe[n>>2]|0;if(!r){n=e+i|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>>0)Xe();else{pe[n>>2]=0;c=r;break}}else{o=pe[e+(8-l)>>2]|0;if(o>>>0>>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;c=i;break}else Xe()}}while(0);if(s){r=pe[e+(28-l)>>2]|0;n=908+(r<<2)|0;if((h|0)==(pe[n>>2]|0)){pe[n>>2]=c;if(!c){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(h|0))pe[r>>2]=c;else pe[s+20>>2]=c;if(!c){_=h;a=f;break}}i=pe[155]|0;if(c>>>0>>0)Xe();pe[c+24>>2]=s;r=16-l|0;n=pe[e+r>>2]|0;do{if(n)if(n>>>0>>0)Xe();else{pe[c+16>>2]=n;pe[n+24>>2]=c;break}}while(0);r=pe[e+(r+4)>>2]|0;if(r)if(r>>>0<(pe[155]|0)>>>0)Xe();else{pe[c+20>>2]=r;pe[r+24>>2]=c;_=h;a=f;break}else{_=h;a=f}}else{_=h;a=f}}else{_=e;a=t}}while(0);u=pe[155]|0;if(g>>>0>>0)Xe();r=e+(t+4)|0;n=pe[r>>2]|0;if(!(n&2)){if((g|0)==(pe[157]|0)){v=(pe[154]|0)+a|0;pe[154]=v;pe[157]=_;pe[_+4>>2]=v|1;if((_|0)!=(pe[156]|0))return;pe[156]=0;pe[153]=0;return}if((g|0)==(pe[156]|0)){v=(pe[153]|0)+a|0;pe[153]=v;pe[156]=_;pe[_+4>>2]=v|1;pe[_+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)==(g|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>>0)Xe();else{pe[n>>2]=0;p=r;break}}else{o=pe[e+(t+8)>>2]|0;if(o>>>0>>0)Xe();r=o+12|0;if((pe[r>>2]|0)!=(g|0))Xe();n=i+8|0;if((pe[n>>2]|0)==(g|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((g|0)==(pe[n>>2]|0)){pe[n>>2]=p;if(!p){pe[152]=pe[152]&~(1<>>0<(pe[155]|0)>>>0)Xe();r=s+16|0;if((pe[r>>2]|0)==(g|0))pe[r>>2]=p;else pe[s+20>>2]=p;if(!p)break}n=pe[155]|0;if(p>>>0>>0)Xe();pe[p+24>>2]=s;r=pe[e+(t+16)>>2]|0;do{if(r)if(r>>>0>>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>>0)Xe();if((pe[i+12>>2]|0)!=(g|0))Xe()}if((n|0)==(i|0)){pe[151]=pe[151]&~(1<>>0>>0)Xe();r=n+8|0;if((pe[r>>2]|0)==(g|0))d=r;else Xe()}else d=n+8|0;pe[i+12>>2]=n;pe[d>>2]=i}}while(0);pe[_+4>>2]=a|1;pe[_+a>>2]=a;if((_|0)==(pe[156]|0)){pe[153]=a;return}}else{pe[r>>2]=n&-2;pe[_+4>>2]=a|1;pe[_+a>>2]=a}r=a>>>3;if(a>>>0<256){n=r<<1;o=644+(n<<2)|0;i=pe[151]|0;r=1<>2]|0;if(n>>>0<(pe[155]|0)>>>0)Xe();else{m=r;v=n}}else{pe[151]=i|r;m=644+(n+2<<2)|0;v=o}pe[m>>2]=_;pe[v+12>>2]=_;pe[_+8>>2]=v;pe[_+12>>2]=o;return}r=a>>>8;if(r)if(a>>>0>16777215)o=31;else{m=(r+1048320|0)>>>16&8;v=r<>>16&4;v=v<>>16&2;o=14-(g|m|o)+(v<>>15)|0;o=a>>>(o+7|0)&1|o<<1}else o=0;r=908+(o<<2)|0;pe[_+28>>2]=o;pe[_+20>>2]=0;pe[_+16>>2]=0;n=pe[152]|0;i=1<>2]=_;pe[_+24>>2]=r;pe[_+12>>2]=_;pe[_+8>>2]=_;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]=_;pe[_+24>>2]=r;pe[_+12>>2]=_;pe[_+8>>2]=_;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]=_;pe[n>>2]=_;pe[_+8>>2]=i;pe[_+12>>2]=r;pe[_+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-32|0}function Zr(e,t,r){e=e|0;t=t|0;r=r|0;if((r|0)<32){re=t<>>32-r;return e<>>0;return(re=t+n+(r>>>0>>0|0)>>>0,r|0)|0}function $r(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 Qr(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-32|0}function en(e){e=e|0;var t=0;t=de[m+(e&255)>>0]|0;if((t|0)<8)return t|0;t=de[m+(e>>8&255)>>0]|0;if((t|0)<8)return t+8|0;t=de[m+(e>>16&255)>>0]|0;if((t|0)<8)return t+16|0;return(de[m+(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=_e(i,o)|0;n=e>>>16;e=(r>>>16)+(_e(i,n)|0)|0;i=t>>>16;t=_e(i,o)|0;return(re=(e>>>16)+(_e(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,l=0;l=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(l^e,u^t,l,u)|0;a=re;e=o^l;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,l=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;l=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(l^r,u^n,l,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=(_e(t,o)|0)+(_e(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,l=0,c=0,f=0,h=0,d=0,p=0;c=e;u=t;l=u;a=r;h=n;s=h;if(!l){o=(i|0)!=0;if(!s){if(o){pe[i>>2]=(c>>>0)%(a>>>0);pe[i+4>>2]=0}h=0;i=(c>>>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(l|0)|0)|0;if(o>>>0<=31){f=o+1|0;s=31-o|0;t=o-31>>31;a=f;e=c>>>(f>>>0)&t|l<>>(f>>>0)&t;o=0;s=c<>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(l|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&l>>>(d>>>0)|(l<>>(s>>>0))&t;t=t&l>>>(s>>>0);o=c<>>(d>>>0))&u|c<>31;break}if(i){pe[i>>2]=o&c;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=l>>>(p>>>0)|0;p=l<<32-p|c>>>(p>>>0)|0;return(re=d,p)|0}}else{if(o){if(i){pe[i>>2]=(l>>>0)%(a>>>0);pe[i+4>>2]=0}d=0;p=(l>>>0)/(a>>>0)>>>0;return(re=d,p)|0}if(!c){if(i){pe[i>>2]=0;pe[i+4>>2]=(l>>>0)%(s>>>0)}d=0;p=(l>>>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&l|t&0}d=0;p=l>>>((en(s|0)|0)>>>0);return(re=d,p)|0}o=(ae(s|0)|0)-(ae(l|0)|0)|0;if(o>>>0<=30){t=o+1|0;s=31-o|0;a=t;e=l<>>(t>>>0);t=l>>>(t>>>0);o=0;s=c<>2]=e|0;pe[i+4>>2]=u|t&0;d=0;p=0;return(re=d,p)|0}}while(0);if(!a){l=s;u=0;s=0}else{f=r|0|0;c=h|n&0;l=Jr(f|0,c|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(l,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)&c)|0;t=re;a=a-1|0}while((a|0)!=0);l=u;u=0}a=0;if(i){pe[i>>2]=e;pe[i+4>>2]=t}d=(o|0)>>>31|(l|a)<<1|(a<<1|o>>>31)&0|u;p=(o<<1|0>>>31)&-2|s;return(re=d,p)|0}function ln(e,t,r,n){e=e|0;t=t|0;r=r|0;n=n|0;return Cn[e&7](t|0,r|0,n|0)|0}function cn(e,t,r,n,i,o){e=e|0;t=t|0;r=r|0;n=n|0;i=i|0;o=o|0;kn[e&3](t|0,r|0,n|0,i|0,o|0)}function fn(e,t){e=e|0;t=t|0;En[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 gn(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 mn(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 _n(e,t,r){e=e|0;t=t|0;r=r|0;se(0);return 0}function yn(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 Cn=[_n,Vt,Nr,Er,kr,Ar,_n,_n];var kn=[yn,tr,er,yn];var En=[bn,qt,Gt,Ht,Yt,Wt,ur,Lr];var An=[xn,Cr];var On=[wn];var Rn=[Tn,ar,sr,Tn];var In=[Sn,nr,rr,Sn];var Dn=[Mn,ut];var Ln=[Pn,Zt,Jt,Pn];return{___cxa_can_catch:ir,_crn_get_levels:Tt,_crn_get_uncompressed_size:Mt,_crn_decompress:Pt,_i64Add:Jr,_crn_get_width:xt,___cxa_is_pointer_type:or,_i64Subtract:Wr,_memset:Vr,_malloc:zr,_free:Ur,_memcpy:$r,_bitshift64Lshr:Kr,_fflush:mr,_bitshift64Shl:Zr,_crn_get_height:wt,___errno_location:cr,_crn_get_dxt_format:St,runPostSets:Gr,_emscripten_replace_memory:Ve,stackAlloc:Ke,stackSave:Ze,stackRestore:Je,establishStackSpace:$e,setThrew:Qe,setTempRet0:rt,getTempRet0:nt,dynCall_iiii:ln,dynCall_viiiii:cn,dynCall_vi:fn,dynCall_ii:hn,dynCall_viii:dn,dynCall_v:pn,dynCall_viiiiii:gn,dynCall_iiiiii:mn,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>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>=8)a++;(i=new l(2+a))[0]=o,i[1]=128|a;s=1+a;for(var u=n.length;0>=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 l(2*e.length),n=0;n>=7)i++}var a=new l(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&&!l.isBuffer(e)){var r=e.toArray();!e.sign&&128&r[0]&&r.unshift(0),e=new l(r)}if(l.isBuffer(e)){var n=e.length;0===e.length&&n++;var i=new l(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 l(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>16&255,o[s++]=n>>8&255,o[s++]=255&n;2===i?(n=l[e.charCodeAt(t)]<<2|l[e.charCodeAt(t+1)]>>4,o[s++]=255&n):1===i&&(n=l[e.charCodeAt(t)]<<10|l[e.charCodeAt(t+1)]<<4|l[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>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=[],l=[],c="undefined"!=typeof Uint8Array?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,o=n.length;i>18&63]+u[i>>12&63]+u[i>>6&63]+u[63&i]);return o.join("")}l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},{}],17:[function(T,e,t){!function(e,t){"use strict";function m(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>>26-a&67108863,26<=(a+=24)&&(a-=26,i++);else if("le"===r)for(i=n=0;n>>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>>26-o&4194303,26<=(o+=24)&&(o-=26,n++);r+6!==t&&(i=a(e,t,r+6),this.words[n]|=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,l=r;l"};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 l=1;l>>26,f=67108863&u,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0;c+=(a=(i=0|e.words[p])*(o=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=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>>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],l=p[e];r="";var c=this.clone();for(c.negative=0;!c.isZero();){var f=c.modn(l).toString(e);r=(c=c.idivn(l)).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}m(!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>>=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;te.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;re.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;ne.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){m("number"==typeof e&&0<=e);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),0>26-r),this.strip()},v.prototype.notn=function(e){return this.clone().inotn(e)},v.prototype.setn=function(e,t){m("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<e.length?(r=this,e):(r=e,this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;oe.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>26,this.words[a]=67108863&t;for(;0!==o&&a>26,this.words[a]=67108863&t;if(0===o&&a>>13,d=0|a[1],p=8191&d,g=d>>>13,m=0|a[2],v=8191&m,_=m>>>13,y=0|a[3],b=8191&y,x=y>>>13,w=0|a[4],T=8191&w,S=w>>>13,M=0|a[5],P=8191&M,C=M>>>13,k=0|a[6],E=8191&k,A=k>>>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],Z=8191&K,J=K>>>13,$=0|s[4],Q=8191&$,ee=$>>>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,le=se>>>13,ce=0|s[8],fe=8191&ce,he=ce>>>13,de=0|s[9],pe=8191&de,ge=de>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(l+(n=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,X))+Math.imul(h,U)|0))<<13)|0;l=((o=Math.imul(h,X))+(i>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,U),i=(i=Math.imul(p,X))+Math.imul(g,U)|0,o=Math.imul(g,X);var ve=(l+(n=n+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(h,H)|0))<<13)|0;l=((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(_,U)|0,o=Math.imul(_,X),n=n+Math.imul(p,H)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,Y)|0;var _e=(l+(n=n+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(h,W)|0))<<13)|0;l=((o=o+Math.imul(h,V)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=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(_,H)|0,o=o+Math.imul(_,Y)|0,n=n+Math.imul(p,W)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,V)|0;var ye=(l+(n=n+Math.imul(f,Z)|0)|0)+((8191&(i=(i=i+Math.imul(f,J)|0)+Math.imul(h,Z)|0))<<13)|0;l=((o=o+Math.imul(h,J)|0)+(i>>>13)|0)+(ye>>>26)|0,ye&=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(_,W)|0,o=o+Math.imul(_,V)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,J)|0)+Math.imul(g,Z)|0,o=o+Math.imul(g,J)|0;var be=(l+(n=n+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(h,Q)|0))<<13)|0;l=((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(C,U)|0,o=Math.imul(C,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,Z)|0,i=(i=i+Math.imul(v,J)|0)+Math.imul(_,Z)|0,o=o+Math.imul(_,J)|0,n=n+Math.imul(p,Q)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0;var xe=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(i=(i=i+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((o=o+Math.imul(h,ne)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(E,U),i=(i=Math.imul(E,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(C,H)|0,o=o+Math.imul(C,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,Z)|0,i=(i=i+Math.imul(b,J)|0)+Math.imul(x,Z)|0,o=o+Math.imul(x,J)|0,n=n+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(_,Q)|0,o=o+Math.imul(_,ee)|0,n=n+Math.imul(p,re)|0,i=(i=i+Math.imul(p,ne)|0)+Math.imul(g,re)|0,o=o+Math.imul(g,ne)|0;var we=(l+(n=n+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(h,oe)|0))<<13)|0;l=((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(E,H)|0,i=(i=i+Math.imul(E,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(C,W)|0,o=o+Math.imul(C,V)|0,n=n+Math.imul(T,Z)|0,i=(i=i+Math.imul(T,J)|0)+Math.imul(S,Z)|0,o=o+Math.imul(S,J)|0,n=n+Math.imul(b,Q)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(x,Q)|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(_,re)|0,o=o+Math.imul(_,ne)|0,n=n+Math.imul(p,oe)|0,i=(i=i+Math.imul(p,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0;var Te=(l+(n=n+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,le)|0)+Math.imul(h,ue)|0))<<13)|0;l=((o=o+Math.imul(h,le)|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(E,W)|0,i=(i=i+Math.imul(E,V)|0)+Math.imul(A,W)|0,o=o+Math.imul(A,V)|0,n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,J)|0)+Math.imul(C,Z)|0,o=o+Math.imul(C,J)|0,n=n+Math.imul(T,Q)|0,i=(i=i+Math.imul(T,ee)|0)+Math.imul(S,Q)|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(_,oe)|0,o=o+Math.imul(_,ae)|0,n=n+Math.imul(p,ue)|0,i=(i=i+Math.imul(p,le)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,le)|0;var Se=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;l=((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(E,Z)|0,i=(i=i+Math.imul(E,J)|0)+Math.imul(A,Z)|0,o=o+Math.imul(A,J)|0,n=n+Math.imul(P,Q)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(C,Q)|0,o=o+Math.imul(C,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,le)|0)+Math.imul(_,ue)|0,o=o+Math.imul(_,le)|0,n=n+Math.imul(p,fe)|0,i=(i=i+Math.imul(p,he)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,he)|0;var Me=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ge)|0)+Math.imul(h,pe)|0))<<13)|0;l=((o=o+Math.imul(h,ge)|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,Z)|0,i=(i=i+Math.imul(R,J)|0)+Math.imul(I,Z)|0,o=o+Math.imul(I,J)|0,n=n+Math.imul(E,Q)|0,i=(i=i+Math.imul(E,ee)|0)+Math.imul(A,Q)|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(C,re)|0,o=o+Math.imul(C,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,le)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,le)|0,n=n+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,he)|0)+Math.imul(_,fe)|0,o=o+Math.imul(_,he)|0;var Pe=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(i=(i=i+Math.imul(p,ge)|0)+Math.imul(g,pe)|0))<<13)|0;l=((o=o+Math.imul(g,ge)|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,Z)|0,i=(i=i+Math.imul(L,J)|0)+Math.imul(N,Z)|0,o=o+Math.imul(N,J)|0,n=n+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(I,Q)|0,o=o+Math.imul(I,ee)|0,n=n+Math.imul(E,re)|0,i=(i=i+Math.imul(E,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(C,oe)|0,o=o+Math.imul(C,ae)|0,n=n+Math.imul(T,ue)|0,i=(i=i+Math.imul(T,le)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,le)|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 Ce=(l+(n=n+Math.imul(v,pe)|0)|0)+((8191&(i=(i=i+Math.imul(v,ge)|0)+Math.imul(_,pe)|0))<<13)|0;l=((o=o+Math.imul(_,ge)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(F,Z),i=(i=Math.imul(F,J))+Math.imul(B,Z)|0,o=Math.imul(B,J),n=n+Math.imul(L,Q)|0,i=(i=i+Math.imul(L,ee)|0)+Math.imul(N,Q)|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(E,oe)|0,i=(i=i+Math.imul(E,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,le)|0)+Math.imul(C,ue)|0,o=o+Math.imul(C,le)|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 ke=(l+(n=n+Math.imul(b,pe)|0)|0)+((8191&(i=(i=i+Math.imul(b,ge)|0)+Math.imul(x,pe)|0))<<13)|0;l=((o=o+Math.imul(x,ge)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(F,Q),i=(i=Math.imul(F,ee))+Math.imul(B,Q)|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(E,ue)|0,i=(i=i+Math.imul(E,le)|0)+Math.imul(A,ue)|0,o=o+Math.imul(A,le)|0,n=n+Math.imul(P,fe)|0,i=(i=i+Math.imul(P,he)|0)+Math.imul(C,fe)|0,o=o+Math.imul(C,he)|0;var Ee=(l+(n=n+Math.imul(T,pe)|0)|0)+((8191&(i=(i=i+Math.imul(T,ge)|0)+Math.imul(S,pe)|0))<<13)|0;l=((o=o+Math.imul(S,ge)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=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,le)|0)+Math.imul(I,ue)|0,o=o+Math.imul(I,le)|0,n=n+Math.imul(E,fe)|0,i=(i=i+Math.imul(E,he)|0)+Math.imul(A,fe)|0,o=o+Math.imul(A,he)|0;var Ae=(l+(n=n+Math.imul(P,pe)|0)|0)+((8191&(i=(i=i+Math.imul(P,ge)|0)+Math.imul(C,pe)|0))<<13)|0;l=((o=o+Math.imul(C,ge)|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,le)|0)+Math.imul(N,ue)|0,o=o+Math.imul(N,le)|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=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(i=(i=i+Math.imul(E,ge)|0)+Math.imul(A,pe)|0))<<13)|0;l=((o=o+Math.imul(A,ge)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(F,ue),i=(i=Math.imul(F,le))+Math.imul(B,ue)|0,o=Math.imul(B,le),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=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(i=(i=i+Math.imul(R,ge)|0)+Math.imul(I,pe)|0))<<13)|0;l=((o=o+Math.imul(I,ge)|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=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(i=(i=i+Math.imul(L,ge)|0)+Math.imul(N,pe)|0))<<13)|0;l=((o=o+Math.imul(N,ge)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863;var De=(l+(n=Math.imul(F,pe))|0)+((8191&(i=(i=Math.imul(F,ge))+Math.imul(B,pe)|0))<<13)|0;return l=((o=Math.imul(B,ge))+(i>>>13)|0)+(De>>>26)|0,De&=67108863,u[0]=me,u[1]=ve,u[2]=_e,u[3]=ye,u[4]=be,u[5]=xe,u[6]=we,u[7]=Te,u[8]=Se,u[9]=Me,u[10]=Pe,u[11]=Ce,u[12]=ke,u[13]=Ee,u[14]=Ae,u[15]=Oe,u[16]=Re,u[17]=Ie,u[18]=De,0!==l&&(u[19]=l,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>>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>=1;return n},u.prototype.permute=function(e,t,r,n,i,o){for(var a=0;a>>=1)i++;return 1<>>=13,r[2*o+1]=8191&i,i>>>=13;for(o=2*t;o>=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>>i}return t}(e);if(0===t.length)return new v(1);for(var r=this,n=0;n>>26-r<<26-r;if(0!=r){var o=0;for(t=0;t>>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>>i<o)for(this.length-=o,u=0;u>>i,l=c&a}return s&&0!==l&&(s.words[s.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},v.prototype.ishrn=function(e,t,r){return m(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){m("number"==typeof e&&0<=e);var t=e%26,r=(e-t)/26,n=1<>>t<>26)-(s/67108864|0),this.words[n+r]=67108863&i}for(;n>26,this.words[n+r]=67108863&i;if(0===a)return this.strip();for(m(-1===a),n=a=0;n>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;uthis.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){m(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){m(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){m(0===e.negative),m(!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(),l=t.clone();!t.isZero();){for(var c=0,f=1;0==(t.words[0]&f)&&c<26;++c,f<<=1);if(0>>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(),1e.length)return 1;if(this.lengththis.n;);var n=t>>22,i=o}i>>>=22,0===(e.words[n-10]=i)&&10>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},v._prime=function(e){if(l[e])return l[e];var t;if("k256"===e)t=new g;else if("p224"===e)t=new _;else if("p192"===e)t=new y;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new b}return l[e]=t},x.prototype._verify1=function(e){m(0===e.negative,"red works only with positives"),m(e.red,"red works only with red numbers")},x.prototype._verify2=function(e,t){m(0==(e.negative|t.negative),"red works only with positives"),m(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(m(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);m(!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 l=this.pow(u,n),c=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();m(p>l&1;i!==r[0]&&(i=this.sqr(i)),0!=c||0!==o?(o<<=1,o|=c,(4===++a||0===n&&0===l)&&(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>>24]^c[p>>>16&255]^f[g>>>8&255]^h[255&m]^t[v++],a=l[p>>>24]^c[g>>>16&255]^f[m>>>8&255]^h[255&d]^t[v++],s=l[g>>>24]^c[m>>>16&255]^f[d>>>8&255]^h[255&p]^t[v++],u=l[m>>>24]^c[d>>>16&255]^f[p>>>8&255]^h[255&g]^t[v++],d=o,p=a,g=s,m=u;return o=(n[d>>>24]<<24|n[p>>>16&255]<<16|n[g>>>8&255]<<8|n[255&m])^t[v++],a=(n[p>>>24]<<24|n[g>>>16&255]<<16|n[m>>>8&255]<<8|n[255&d])^t[v++],s=(n[g>>>24]<<24|n[m>>>16&255]<<16|n[d>>>8&255]<<8|n[255&p])^t[v++],u=(n[m>>>24]<<24|n[d>>>16&255]<<16|n[p>>>8&255]<<8|n[255&g])^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 l=s^s<<1^s<<2^s<<3^s<<4;l=l>>>8^255&l^99;var c=e[n[r[a]=l]=a],f=e[c],h=e[f],d=257*e[l]^16843008*l;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*c^16843008*a,o[0][l]=d<<24|d>>>8,o[1][l]=d<<16|d>>>16,o[2][l]=d<<8|d>>>24,o[3][l]=d,0===a?a=s=1:(a=c^e[e[e[h^c]]],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>>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>>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>>24]]^h.INV_SUB_MIX[1][h.SBOX[c>>>16&255]]^h.INV_SUB_MIX[2][h.SBOX[c>>>8&255]]^h.INV_SUB_MIX[3][h.SBOX[255&c]]}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"),l=e("safe-buffer").Buffer,s=e("cipher-base"),n=e("inherits"),c=e("./ghash"),i=e("buffer-xor"),f=e("./incr32");function o(e,t,r,n){s.call(this);var i=l.alloc(4,0);this._cipher=new a.AES(t);var o=this._cipher.encryptBlock(i);this._ghash=new c(o),r=function(e,t,r){if(12===t.length)return e._finID=l.concat([t,l.from([0,0,0,1])]),l.concat([t,l.from([0,0,0,2])]);var n=new c(r),i=t.length,o=i%16;n.update(t),o&&(o=16-o,n.update(l.alloc(o,0))),n.update(l.alloc(8,0));var a=8*i,s=l.alloc(8);s.writeUIntBE(a,0,8),n.update(s),e._finID=n.state;var u=l.from(e._finID);return f(u),u}(this,r,o),this._prev=l.from(r),this._cache=l.allocUnsafe(0),this._secCache=l.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=l.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>>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>>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>7;return i}r.encrypt=function(e,t,r){for(var n=t.length,i=a.allocUnsafe(n),o=-1;++o=t)throw new Error("invalid sig")}t.exports=function(e,t,r,n,i){var o=g(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=m[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=g.signature.decode(e,"der"),u=s.s,l=s.r;v(u,i),v(l,i);var c=d.mont(n),f=u.invm(i);return 0===o.toRed(c).redPow(new d(t).mul(f).mod(i)).fromRed().mul(a.toRed(c).redPow(l.mul(f).mod(i)).fromRed()).mod(n).mod(i).cmp(l)}(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=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 g(e,t,r,n,i){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):2147483647=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:m(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):m(e,[t],r,n,i);throw new TypeError("val must be string, number or Buffer")}function m(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 l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var c=-1;for(o=r;o>>10&1023|55296),c=56320|1023&c),n.push(c),i+=f}return function(e){var t=e.length;if(t<=x)return String.fromCharCode.apply(String,e);var r="",n=0;for(;nthis.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 y(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 0t&&(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),l=e.slice(t,r),c=0;cthis.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var o,a,s,u,l,c,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 _(this,e,t,r);case"latin1":case"binary":return _(this,e,t,r);case"base64":return u=this,l=t,c=r,N(L(e),u,l,c);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>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;ie.length)throw new RangeError("Index out of range")}function k(e,t,r,n){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-r,2);i>>8*(n?i:1-i)}function E(e,t,r,n){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-r,4);i>>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>>8):k(this,e,t,!0),t+2},f.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,65535,0),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},f.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||C(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):E(this,e,t,!0),t+4},f.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||C(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):E(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);C(this,e,t,r,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o>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);C(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||C(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||C(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):k(this,e,t,!0),t+2},f.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||C(this,e,t,2,32767,-32768),f.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):k(this,e,t,!1),t+2},f.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||C(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):E(this,e,t,!0),t+4},f.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||C(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):E(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=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>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(o=t;o>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=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>>2),n=0,i=0;n>5]|=128<>>9<<4)]=t;for(var r=1732584193,n=-271733879,i=-1732584194,o=271733878,a=0;a>>32-t}(g(g(t,e),g(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 g(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"),l=e("sha.js"),c=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:l(e)).update(t).digest():t.length>>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>>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],l=e.keys[s+1];h.expand(o,e.tmp,0),u^=e.tmp[0],l^=e.tmp[1];var c=h.substitute(u,l),f=o;o=(a^h.permute(c))>>>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 l(e){a.call(this,e);var t=new u(this.type,this.options.key);this._edeState=t}n(l,a),(t.exports=l).create=function(e){return new l(e)},l.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)},l.prototype._pad=s.prototype._pad,l.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<>>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>>u[s]&1;for(s=a;s>>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[r]&1;return t>>>0},r.padSplit=function(e,t,r){for(var n=e.toString(2);n.lengthe;)r.ishrn(1);if(r.isEven()&&r.iadd(u),r.testn(1)||r.iadd(l),t.cmp(l)){if(!t.cmp(c))for(;r.mod(f).cmp(h);)r.iadd(p)}else for(;r.mod(a).cmp(d);)r.iadd(p);if(m(n=r.shrn(1))&&m(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>1]):a.mixedAdd(i[-u-1>>1].neg()):0>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,l=0;l>1]:S<0&&(T=a[m][-S-1>>1].neg()),y="affine"===T.type?y.mixedAdd(T):y.add(T))}}for(l=0;l=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":""},c.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&0===this.y.cmp(this.z)},c.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),l=o.redMul(s),c=i.redMul(s),f=a.redMul(o);return this.curve.point(u,l,f,c)},c.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=(l=this.curve._mulA(i)).redAdd(o);if(this.zOne)e=n.redSub(i).redSub(o).redMul(a.redSub(this.curve.two)),t=a.redMul(l.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(l.redSub(o)),r=a.redMul(u)}}else{var l=i.redAdd(o);s=this.curve._mulC(this.c.redMul(this.z)).redSqr(),u=l.redSub(s).redSub(s);e=this.curve._mulC(n.redISub(l)).redMul(u),t=this.curve._mulC(l).redMul(i.redISub(o)),r=l.redMul(u)}return this.curve.point(e,t,r)},c.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},c.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),l=o.redMul(a),c=s.redMul(u),f=o.redMul(u),h=a.redMul(s);return this.curve.point(l,c,h,f)},c.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),l=i.redAdd(s),c=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(o).redISub(a),f=n.redMul(u).redMul(c);return r=this.curve.twisted?(t=n.redMul(l).redMul(a.redSub(this.curve._mulA(o))),u.redMul(l)):(t=n.redMul(l).redMul(a.redSub(o)),this.curve._mulC(u).redMul(l)),this.curve.point(f,t,r)},c.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},c.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},c.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},c.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},c.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},c.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()},c.prototype.getY=function(){return this.normalize(),this.y.fromRed()},c.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},c.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},c.prototype.toP=c.prototype.normalize,c.prototype.mixedAdd=c.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 l(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(l,a.BasePoint),u.prototype.decodePoint=function(e,t){return this.point(s.toArray(e,t),1)},u.prototype.point=function(e,t){return new l(this,e,t)},u.prototype.pointFromJSON=function(e){return l.fromJSON(this,e)},l.prototype.precompute=function(){},l.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},l.fromJSON=function(e,t){return new l(e,t[0],t[1]||e.one)},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},l.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)},l.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},l.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)},l.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},l.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},l.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},l.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},l.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 l(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 c(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,l,c=this.n.ushrn(Math.floor(this.n.bitLength()/2)),f=e,h=this.n.clone(),d=new x(1),p=new x(0),g=new x(0),m=new x(1),v=0;0!==f.cmpn(0);){var _=h.div(f);u=h.sub(_.mul(f)),l=g.sub(_.mul(d));var y=m.sub(_.mul(p));if(!n&&u.cmp(c)<0)t=s.neg(),r=d,n=u.neg(),i=l;else if(n&&2==++v)break;h=f,f=s=u,g=d,d=l,m=p,p=y}o=u.neg(),a=l;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),l=o.mul(n.b);return{k1:e.sub(a).sub(s),k2:u.add(l).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":""},l.prototype.isInfinity=function(){return this.inf},l.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)},l.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)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.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)},l.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)},l.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)},l.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))},l.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},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},o(c,a.BasePoint),u.prototype.jpoint=function(e,t,r){return new c(this,e,t,r)},c.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)},c.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},c.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 l=s.redSqr(),c=l.redMul(s),f=n.redMul(l),h=u.redSqr().redIAdd(c).redISub(f).redISub(f),d=u.redMul(f.redISub(h)).redISub(o.redMul(c)),p=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(h,d,p)},c.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(),l=u.redMul(a),c=r.redMul(u),f=s.redSqr().redIAdd(l).redISub(c).redISub(c),h=s.redMul(c.redISub(f)).redISub(i.redMul(l)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},c.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":""},c.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 l(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,l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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"]}),l("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}l("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 m=e("bn.js"),v=e("hmac-drbg"),o=e("../../elliptic"),d=o.utils.assert,n=e("./key"),_=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 m(2));;){var i=new m(t.generate(r));if(!(0>1;if(0<=a.cmp(this.curve.p.umod(this.curve.n))&&l)throw new Error("Unable to find sencond key candinate");a=l?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var c=t.r.invm(i),f=i.sub(o).mul(c).umod(i),h=s.mul(c).umod(i);return this.g.mulAdd(f,a,h)},i.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new _(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""}},{"../../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 l(){this.place=0}function c(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>>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 l;if(48!==e[r.place++])return!1;if(c(e,r)+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var n=c(e,r),i=e.slice(r.place,n+r.place);if(r.place+=n,2!==e[r.place++])return!1;var o=c(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"),l=e("./signature");function c(e){if(a("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof c))return new c(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=c).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})},c.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)},c.prototype.hashInt=function(){for(var e=this.hash(),t=0;t>1)-1>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;ur&&(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(l(r)){for(o=i;0=this._blockSize;){for(var i=this._blockOffset;i=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>>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;othis.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t>>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 l=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>8,a=255&i;o?r.push(o,a):r.push(a)}else for(n=0;n>>0}return o},r.split32=function(e,t){for(var r=new Array(4*e.length),n=0,i=0;n>>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<>>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>>0,e[t+1]=o},r.sum64_hi=function(e,t,r,n){return(t+n>>>0>>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,l=t;return u+=(l=l+n>>>0)>>0)>>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,l){var c=0,f=t;return c+=(f=f+n>>>0)>>0)>>0)>>0)>>0},r.sum64_5_lo=function(e,t,r,n,i,o,a,s,u,l){return t+n+o+s+l>>>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.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>1,c=-7,f=r?i-1:0,h=r?-1:1,d=e[t+f];for(f+=h,o=d&(1<<-c)-1,d>>=-c,c+=s;0>=-c,c+=n;0>1,h=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:o-1,p=n?1:-1,g=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=c):(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),c<=a+f?(s=0,a=c):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<>>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 l(e,t,r,n,i,o,a){return s(e+(t&n|r&~n)+i+o|0,a)+t|0}function c(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=c(n=c(n=c(n=c(n=l(n=l(n=l(n=l(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=l(i,o=l(o,r=l(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=l(i,o=l(o,r=l(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=l(i,o=l(o,r=l(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=l(i,o=l(o,r=l(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=c(i,o=c(o,r=c(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=c(i,o=c(o,r=c(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=c(i,o=c(o,r=c(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=c(i,o=c(o,r=c(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._blockSize;){for(var i=this._blockOffset;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 l=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=l;var c=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=c,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)}),l=n.define("RDNSequence",function(){this.seqof(u)}),c=n.define("Name",function(){this.choice({rdnSequence:this.use(l)})}),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(c),this.key("validity").use(f),this.key("subject").use(c),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,g=/^-----BEGIN ((?:.* KEY)|CERTIFICATE)-----\n\r?([0-9A-z\n\r\+\/\=]+)\n\r?-----END \1-----$/m,m=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=m(t,a.slice(0,8),parseInt(i[1],10)).key,l=[],c=v.createDecipheriv(o,u,a);l.push(c.update(s)),l.push(c.final()),r=h.concat(l)}else{var f=n.match(g);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),l=d.createDecipheriv(i,u,o),c=[];return c.push(l.update(a)),c.push(l.final()),f.concat(c)}(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,l){(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;ni?t=n(t):t.lengtha||0<=new l(t).cmp(o.modulus))throw new Error("decryption error");i=r?g(new l(t),o):d(t,o);var s=new c(a-i.length);if(s.fill(0),i=c.concat([s,i],a),4===n)return function(e,t){e.modulus;var r=e.modulus.byteLength(),n=(t.length,p("sha1").update(new c("")).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 c(e),t=new c(t);var r=0,n=e.length;e.length!==t.length&&(r++,n=Math.min(e.length,t.length));var i=-1;for(;++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"),g=e("./mgf"),m=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-2t.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 c(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(y("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?m(f,e):f(e))}function f(e){y("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||t.ended))return y("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?T(this):c(this),null;if(0===(e=l(e,t))&&t.ended)return 0===t.length&&T(this),null;var n,i=t.needReadable;return y("need readable",i),(0===t.length||t.length-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 g(e,t,r,n,i,o,a,s){return d(e+(t&r|~t&n)+o+a|0,s)+i|0}function m(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 _(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=g(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=g(n=d(n,10),i=g(i,o=g(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=g(o=d(o,10),a=g(a,r=g(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=g(r=d(r,10),n=g(n,i=g(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=g(i=d(i,10),o=g(o,a=g(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=g(a=d(a,10),r=g(r,n=g(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=m(n=d(n,10),i=m(i,o=m(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=m(o=d(o,10),a=m(a,r=m(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=m(r=d(r,10),n=m(n,i=m(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=m(i=d(i,10),o=m(o,a=m(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=m(a=d(a,10),r=m(r,n=m(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=m(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=_(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=_(o=d(o,10),a=_(a,r=_(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=_(r=d(r,10),n=_(n,i=_(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=_(i=d(i,10),o=_(o,a=_(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=_(a=d(a,10),r=_(r,n=_(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=_(n=d(n,10),i=_(i,o=_(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,l=this._c,c=this._d,f=this._e;f=_(f,s=_(s,u,l,c,f,e[5],1352829926,8),u,l=d(l,10),c,e[14],1352829926,9),u=_(u=d(u,10),l=_(l,c=_(c,f,s,u,l,e[7],1352829926,9),f,s=d(s,10),u,e[0],1352829926,11),c,f=d(f,10),s,e[9],1352829926,13),c=_(c=d(c,10),f=_(f,s=_(s,u,l,c,f,e[2],1352829926,15),u,l=d(l,10),c,e[11],1352829926,15),s,u=d(u,10),l,e[4],1352829926,5),s=_(s=d(s,10),u=_(u,l=_(l,c,f,s,u,e[13],1352829926,7),c,f=d(f,10),s,e[6],1352829926,7),l,c=d(c,10),f,e[15],1352829926,8),l=_(l=d(l,10),c=_(c,f=_(f,s,u,l,c,e[8],1352829926,11),s,u=d(u,10),l,e[1],1352829926,14),f,s=d(s,10),u,e[10],1352829926,14),f=v(f=d(f,10),s=_(s,u=_(u,l,c,f,s,e[3],1352829926,12),l,c=d(c,10),f,e[12],1352829926,6),u,l=d(l,10),c,e[6],1548603684,9),u=v(u=d(u,10),l=v(l,c=v(c,f,s,u,l,e[11],1548603684,13),f,s=d(s,10),u,e[3],1548603684,15),c,f=d(f,10),s,e[7],1548603684,7),c=v(c=d(c,10),f=v(f,s=v(s,u,l,c,f,e[0],1548603684,12),u,l=d(l,10),c,e[13],1548603684,8),s,u=d(u,10),l,e[5],1548603684,9),s=v(s=d(s,10),u=v(u,l=v(l,c,f,s,u,e[10],1548603684,11),c,f=d(f,10),s,e[14],1548603684,7),l,c=d(c,10),f,e[15],1548603684,7),l=v(l=d(l,10),c=v(c,f=v(f,s,u,l,c,e[8],1548603684,12),s,u=d(u,10),l,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,l,c,f,s,e[9],1548603684,15),l,c=d(c,10),f,e[1],1548603684,13),u,l=d(l,10),c,e[2],1548603684,11),u=m(u=d(u,10),l=m(l,c=m(c,f,s,u,l,e[15],1836072691,9),f,s=d(s,10),u,e[5],1836072691,7),c,f=d(f,10),s,e[1],1836072691,15),c=m(c=d(c,10),f=m(f,s=m(s,u,l,c,f,e[3],1836072691,11),u,l=d(l,10),c,e[7],1836072691,8),s,u=d(u,10),l,e[14],1836072691,6),s=m(s=d(s,10),u=m(u,l=m(l,c,f,s,u,e[6],1836072691,6),c,f=d(f,10),s,e[9],1836072691,14),l,c=d(c,10),f,e[11],1836072691,12),l=m(l=d(l,10),c=m(c,f=m(f,s,u,l,c,e[8],1836072691,13),s,u=d(u,10),l,e[12],1836072691,5),f,s=d(s,10),u,e[2],1836072691,14),f=m(f=d(f,10),s=m(s,u=m(u,l,c,f,s,e[10],1836072691,13),l,c=d(c,10),f,e[0],1836072691,13),u,l=d(l,10),c,e[4],1836072691,7),u=g(u=d(u,10),l=g(l,c=m(c,f,s,u,l,e[13],1836072691,5),f,s=d(s,10),u,e[8],2053994217,15),c,f=d(f,10),s,e[6],2053994217,5),c=g(c=d(c,10),f=g(f,s=g(s,u,l,c,f,e[4],2053994217,8),u,l=d(l,10),c,e[1],2053994217,11),s,u=d(u,10),l,e[3],2053994217,14),s=g(s=d(s,10),u=g(u,l=g(l,c,f,s,u,e[11],2053994217,14),c,f=d(f,10),s,e[15],2053994217,6),l,c=d(c,10),f,e[0],2053994217,14),l=g(l=d(l,10),c=g(c,f=g(f,s,u,l,c,e[5],2053994217,6),s,u=d(u,10),l,e[12],2053994217,9),f,s=d(s,10),u,e[2],2053994217,12),f=g(f=d(f,10),s=g(s,u=g(u,l,c,f,s,e[13],2053994217,9),l,c=d(c,10),f,e[9],2053994217,12),u,l=d(l,10),c,e[7],2053994217,5),u=p(u=d(u,10),l=g(l,c=g(c,f,s,u,l,e[10],2053994217,15),f,s=d(s,10),u,e[14],2053994217,8),c,f=d(f,10),s,e[12],0,8),c=p(c=d(c,10),f=p(f,s=p(s,u,l,c,f,e[15],0,5),u,l=d(l,10),c,e[10],0,12),s,u=d(u,10),l,e[4],0,9),s=p(s=d(s,10),u=p(u,l=p(l,c,f,s,u,e[1],0,12),c,f=d(f,10),s,e[5],0,5),l,c=d(c,10),f,e[8],0,14),l=p(l=d(l,10),c=p(c,f=p(f,s,u,l,c,e[7],0,6),s,u=d(u,10),l,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,l,c,f,s,e[13],0,6),l,c=d(c,10),f,e[14],0,5),u,l=d(l,10),c,e[0],0,15),u=p(u=d(u,10),l=p(l,c=p(c,f,s,u,l,e[3],0,13),f,s=d(s,10),u,e[9],0,11),c,f=d(f,10),s,e[11],0,11),c=d(c,10);var h=this._b+i+c|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+l|0,this._a=h},n.prototype._digest=function(){this._block[this._blockOffset++]=128,56=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,l=0|this._b,c=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 g=~~(p/20),m=0|((a=u)<<5|a>>>27)+(n=l,i=c,o=f,0===(r=g)?n&i|~n&o:2===r?n&i|n&o|i&o:n^i^o)+h+s[p]+v[g];h=f,f=c,c=(t=l)<<30|t>>>2,l=u,u=m}this._a=u+this._a|0,this._b=l+this._b|0,this._c=c+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,_=[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,l=0|this._a,c=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 g=0;g<80;++g){var m=~~(g/20),v=0|((s=l)<<5|s>>>27)+(i=c,o=f,a=h,0===(n=m)?i&o|~i&a:2===n?i&o|i&a|o&a:i^o^a)+d+u[g]+_[m];d=h,h=f,f=(r=c)<<30|r>>>2,c=l,l=v}this._a=l+this._a|0,this._b=c+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,l=0|this._a,c=0|this._b,f=0|this._c,h=0|this._d,d=0|this._e,p=0|this._f,g=0|this._g,m=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 _=0;_<64;++_){var y=m+(((s=d)>>>6|s<<26)^(s>>>11|s<<21)^(s>>>25|s<<7))+((a=g)^d&(p^a))+x[_]+u[_]|0,b=0|(((o=l)>>>2|o<<30)^(o>>>13|o<<19)^(o>>>22|o<<10))+((n=l)&(i=c)|f&(n|i));m=g,g=p,p=d,d=h+y|0,h=f,f=c,c=l,l=y+b|0}this._a=l+this._a|0,this._b=c+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=g+this._g|0,this._h=m+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>>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,l=this._w,c=0|this._ah,f=0|this._bh,h=0|this._ch,d=0|this._dh,p=0|this._eh,g=0|this._fh,m=0|this._gh,v=0|this._hh,_=0|this._al,y=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)l[P]=e.readInt32BE(4*P),l[P+1]=e.readInt32BE(4*P+4);for(;P<160;P+=2){var C=l[P-30],k=l[P-30+1],E=((s=C)>>>1|(u=k)<<31)^(s>>>8|u<<24)^s>>>7,A=((o=k)>>>1|(a=C)<<31)^(o>>>8|a<<24)^(o>>>7|a<<25);C=l[P-4],k=l[P-4+1];var O=((n=C)>>>19|(i=k)<<13)^(i>>>29|n<<3)^n>>>6,R=((t=k)>>>19|(r=C)<<13)^(r>>>29|t<<3)^(t>>>6|r<<26),I=l[P-14],D=l[P-14+1],L=l[P-32],N=l[P-32+1],j=A+D|0,F=E+I+oe(j,A)|0;F=(F=F+O+oe(j=j+R|0,R)|0)+L+oe(j=j+N|0,N)|0,l[P]=F,l[P+1]=j}for(var B=0;B<160;B+=2){F=l[B],j=l[B+1];var z=re(c,f,h),U=re(_,y,b),X=ne(c,_),q=ne(_,c),H=ie(p,w),Y=ie(w,p),G=ee[B],W=ee[B+1],V=te(p,g,m),K=te(w,T,S),Z=M+Y|0,J=v+H+oe(Z,M)|0;J=(J=(J=J+V+oe(Z=Z+K|0,K)|0)+G+oe(Z=Z+W|0,W)|0)+F+oe(Z=Z+j|0,j)|0;var $=q+U|0,Q=X+z+oe($,q)|0;v=m,M=S,m=g,S=T,g=p,T=w,p=d+J+oe(w=x+Z|0,x)|0,d=h,x=b,h=f,b=y,f=c,y=_,c=J+Q+oe(_=Z+$|0,Z)|0}this._al=this._al+_|0,this._bl=this._bl+y|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+c+oe(this._al,_)|0,this._bh=this._bh+f+oe(this._bl,y)|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+g+oe(this._fl,T)|0,this._gh=this._gh+m+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 c=e("events").EventEmitter;function n(){c.call(this)}e("inherits")(n,c),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(l(),0===c.listenerCount(this,"error"))throw e}function l(){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",l),r.removeListener("close",l),t.removeListener("close",l)}return r.on("error",u),t.on("error",u),r.on("end",l),r.on("close",l),t.on("close",l),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>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>2)*(r+3>>2)*8;case p:case g:case c:case m: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 _:case o:return Math.floor((t+4)/5)*Math.floor((r+3)/4)*16;case y: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 C:case N:return Math.floor((t+9)/10)*Math.floor((r+7)/8)*16;case k:case j:return Math.floor((t+9)/10)*Math.floor((r+9)/10)*16;case E: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>=1)<1&&(t=1),(r>>=1)<1&&(r=1),i+=a}1>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,C,k,E,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,l=0;l 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),l=t,c=u,f=this._quality-1,h=0;h 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 if (clamp(p.x, 0.0, 4.0) == p.x && 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 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}"),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,l=a.BlurXFilter,c=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 l(i,t,r,n),this.blurYFilter=new c(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),g=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),m=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),_=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),y=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,l=e.alpha,c=e.color;this.shadowOnly=a,this.rotation=s,this.distance=u,this.alpha=l,this.color=c,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>0,n=e[t];e[t]=e[r],e[r]=n}},e.prototype._randomizeOffsets=function(){for(var e=0;e>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;rthis._maxColors)throw"Length of replacements ("+n+") exceeds the maximum colors length ("+this._maxColors+")";t[3*n]=-1;for(var i=0;i 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=g,e.ColorMapFilter=m,e.ColorReplaceFilter=v,e.ConvolutionFilter=_,e.CrossHatchFilter=y,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=C,e.MultiColorReplaceFilter=k,e.OldFilmFilter=E,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_projection;Object.assign(PIXI.filters,this?this.__filters:__filters),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).pixiParticles=e()}}(function(){return function o(a,s,u){function l(r,e){if(!s[r]){if(!a[r]){var t="function"==typeof require&&require;if(!e&&t)return t(r,!0);if(c)return c(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 l(t||e)},i,i.exports,o,a,s,u)}return s[r].exports}for(var c="function"==typeof require&&require,e=0;ethis.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]||PIXI.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=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=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.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;o.default.normalize(this.velocity),o.default.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=o.default.length(this.velocity);i>this.maxSpeed&&o.default.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]=PIXI.Texture.fromImage(e[t]));if(o.default.verbose)for(t=e.length-1;0a.time;)i=a,a=e[++o];u=(u-i.time)/(a.time-i.time);var l=d.hexToRGB(i.value),c=d.hexToRGB(a.value),f={};f.r=(c.r-l.r)*u+l.r,f.g=(c.g-l.g)*u+l.g,f.b=(c.b-l.b)*u+l.b,n.next=new h.default(f,s/t),n=n.next}return r}};r.default=d},{"./PropertyNode":7}],5:[function(e,t,r){"use strict";var n,i=this&&this.__extends||(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])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0});var o=e("./ParticleUtils"),a=e("./Particle"),s=new PIXI.Point,u=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],l=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(u).join("|"),"g"),c=function(r){function e(e){var t=r.call(this,e)||this;return t.path=null,t.initialRotation=0,t.initialPosition=new PIXI.Point,t.movement=0,t}return i(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,s.x=this.movement,s.y=this.path(this.movement),o.default.rotatePoint(this.initialRotation,s),this.position.x=this.initialPosition.x+s.x,this.position.y=this.initialPosition.y+s.y}return t},e.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},e.parseArt=function(e){return a.default.parseArt(e)},e.parseData=function(e){var t={};if(e&&e.path)try{t.path=function(e){for(var t=e.match(l),r=t.length-1;0<=r;--r)0<=u.indexOf(t[r])&&(t[r]="Math."+t[r]);return e=t.join(""),new Function("x","return "+e+";")}(e.path)}catch(e){o.default.verbose&&console.error("PathParticle: error in parsing path expression"),t.path=null}else o.default.verbose&&console.error("PathParticle requires a path string in extraData!"),t.path=null;return t},e}(a.default);r.default=c},{"./Particle":3,"./ParticleUtils":4}],6:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var a=e("./ParticleUtils"),n=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:i:e.isStepped?this.interpolate=this.isColor?c:l:this.interpolate=this.isColor?u:s,this.ease=this.current.ease},e}();function i(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 a.default.combineRGBComponents(n,i,o)}function s(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 a.default.combineRGBComponents(n,i,o)}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;return this.current.value}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;var t=this.current.value;return a.default.combineRGBComponents(t.r,t.g,t.b)}r.default=n},{"./ParticleUtils":4}],7:[function(e,t,r){"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n=e("./ParticleUtils"),i=function(){function a(e,t,r){this.value="string"==typeof e?n.default.hexToRGB(e):e,this.time=t,this.next=null,this.isStepped=!1,this.ease=r?"function"==typeof r?r:n.default.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>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,1+(e|=e>>>16)},t.log2=function(e){var t,r;return t=+(65535>>=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,l=r.y-n.y,c=r.y-e.y,f=o*l-u*a;if(Math.abs(f)<1e-7)return i.x=o,i.y=u,0;var h=(s*l-c*a)/f,d=(o*c-u*s)/f;return d<1e-6||-1e-6=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,l=this.groups,c=s.float32View,f=s.uint32View,h=0,d=null,p=1,g=0,m=l[0],v=O[u[0]._texture.baseTexture.premultipliedAlpha?1:0][u[0].blendMode];for(m.textureCount=0,m.start=0,m.blend=v,R++,r=0;rt[s]&&(n=t[s]),ot[s+1]&&(i=t[s+1]),ah[l]){u=f[s];f[s]=f[l],f[l]=u;var c=h[s];h[s]=h[l],h[l]=c}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 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),l=n.aTrans,c=0;c<4;c++)e[r]=a[2*c],e[r+1]=a[2*c+1],e[r+2]=l.a,e[r+3]=l.c,e[r+4]=l.tx,e[r+5]=l.b,e[r+6]=l.d,e[r+7]=l.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),l=n.aTrans,c=0;c<4;c++)e[r]=a[2*c],e[r+1]=a[2*c+1],e[r+2]=l.a,e[r+3]=l.c,e[r+4]=l.tx,e[r+5]=l.b,e[r+6]=l.d,e[r+7]=l.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,l=t[0].x*(1-o)+t[1].x*o,c=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,g=s*(1-i)+f*i,m=u*(1-i)+h*i,v=l*(1-i)+d*i,_=c*(1-i)+p*i,y=s*(1-a)+f*a,b=u*(1-a)+h*a,x=l*(1-a)+d*a,w=c*(1-a)+p*a,T=S;return T.tx=g,T.ty=m,T.a=v-g,T.b=_-m,T.c=y-g,T.d=b-m,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,l=0,c=0;if(l=i?(s=(u=i.x-a._x*o.width)+i.width,(c=i.y-a._y*o.height)+i.height):(s=(u=-a._x*o.width)+o.width,(c=-a._y*o.height)+o.height),this.proj._surface)n[0]=u,n[1]=c,n[2]=s,n[3]=c,n[4]=s,n[5]=l,n[6]=u,n[7]=l,this.proj._surface.boundsQuad(n,n);else{var f=this.transform.worldTransform,h=f.a,d=f.b,p=f.c,g=f.d,m=f.tx,v=f.ty;n[0]=h*u+p*c+m,n[1]=g*c+d*u+v,n[2]=h*s+p*c+m,n[3]=g*c+d*s+v,n[4]=h*s+p*l+m,n[5]=g*l+d*s+v,n[6]=h*u+p*l+m,n[7]=g*l+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 _=this.aTrans;_.set(o.width,0,0,o.height,u,c),null===this.proj._surface&&_.prepend(this.transform.worldTransform),_.invert(),_.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,l=u+i.height;if(this.proj._surface)n[0]=a,n[1]=u,n[2]=s,n[3]=u,n[4]=s,n[5]=l,n[6]=a,n[7]=l,this.proj._surface.boundsQuad(n,n,this.transform.worldTransform);else{var c=this.transform.worldTransform,f=c.a,h=c.b,d=c.c,p=c.d,g=c.tx,m=c.ty;n[0]=f*a+d*u+g,n[1]=p*u+h*a+m,n[2]=f*s+d*u+g,n[3]=p*u+h*s+m,n[4]=f*s+d*l+g,n[5]=p*l+h*s+m,n[6]=f*a+d*l+g,n[7]=p*l+h*a+m,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=o.TRANSFORM_STEP.PROJ?(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))},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 a,t,v=PIXI.Point,r=[1,0,0,0,1,0,0,0,1];(t=a=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],l=r[4],c=r[7],f=r[2],h=r[5],d=r[8],p=(d*l-c*h)*n+(-d*a+s*h)*i+(c*a-s*l),g=(-d*u+c*f)*n+(d*o-s*f)*i+(-c*o+s*u),m=(h*u-l*f)*n+(-h*o+a*f)*i+(l*o-a*u);return t.x=p/m,t.y=g/m,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],l=e[8],c=l*o-a*u,f=-l*i+a*s,h=u*i-o*s,d=t*c+r*f+n*h;return d&&(d=1/d,e[0]=c*d,e[1]=(-l*r+n*u)*d,e[2]=(a*r-n*o)*d,e[3]=f*d,e[4]=(l*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.copy=function(e,t){var r=this.mat3,n=1/r[8],i=r[6]*n,o=r[7]*n;e.a=(r[0]-r[2]*i)*n,e.b=(r[1]-r[2]*o)*n,e.c=(r[3]-r[5]*i)*n,e.d=(r[4]-r[5]*o)*n,e.tx=i,e.ty=o,2<=t&&(t===a.POINT?(e.a=1,e.b=0,e.c=0,e.d=1):t===a.AXIS_X?(e.c=-e.b,e.d=e.a):t===a.AXIS_Y&&(e.a=e.d,e.c=-e.b))},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,l=e.ty,c=n[0],f=n[1],h=n[2],d=n[3],p=n[4],g=n[5],m=n[6],v=n[7],_=n[8];return r[0]=c*i+f*a+h*u,r[1]=c*o+f*s+h*l,r[2]=h,r[3]=d*i+p*a+g*u,r[4]=d*o+p*s+g*l,r[5]=g,r[6]=m*i+v*a+_*u,r[7]=m*o+v*s+_*l,r[8]=_,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],l=n[5],c=n[6],f=n[7],h=n[8],d=t.a,p=t.b,g=t.c,m=t.d,v=t.tx,_=t.ty;return r[0]=d*i+p*s,r[1]=d*o+p*u,r[2]=d*a+p*l,r[3]=g*i+m*s,r[4]=g*o+m*u,r[5]=g*a+m*l,r[6]=v*i+_*s+c,r[7]=v*o+_*u+f,r[8]=v*a+_*l+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],l=n[4],c=n[5],f=n[6],h=n[7],d=n[8],p=i[0],g=i[1],m=i[2],v=i[3],_=i[4],y=i[5],b=i[6],x=i[7],w=i[8];return r[0]=p*o+g*u+m*f,r[1]=p*a+g*l+m*h,r[2]=p*s+g*c+m*d,r[3]=v*o+_*u+y*f,r[4]=v*a+_*l+y*h,r[5]=v*s+_*c+y*d,r[6]=b*o+x*u+w*f,r[7]=b*a+x*l+w*h,r[8]=b*s+x*c+w*d,this},e.prototype.prepend=function(e){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,g=[new PIXI.Point,new PIXI.Point,new PIXI.Point,new PIXI.Point],i=new PIXI.Rectangle,m=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){g[0].set(e.x,e.y),g[1].set(e.x+e.width,e.y),g[2].set(e.x+e.width,e.y+e.height),g[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)),l=(o+u)/u,c=(a+s)/s,f=(a+s)/a,h=this.matrix.mat3;h[0]=g[0].x*l,h[1]=g[0].y*l,h[2]=l,h[3]=g[r].x*c,h[4]=g[r].y*c,h[5]=c,h[6]=g[n].x*f,h[7]=g[n].y*f,h[8]=f,this.matrix.invert(),(h=m.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(m,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,l=0,c=0,f=0;c=o?(u=(l=o.x-s._x*a.width)+o.width,(f=o.y-s._y*a.height)+o.height):(u=(l=-s._x*a.width)+a.width,(f=-s._y*a.height)+a.height),i[0]=n[0]*l+n[3]*f+n[6],i[1]=n[1]*l+n[4]*f+n[7],i[2]=n[2]*l+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]*c+n[6],i[7]=n[1]*u+n[4]*c+n[7],i[8]=n[2]*u+n[5]*c+n[8],i[9]=n[0]*l+n[3]*c+n[6],i[10]=n[1]*l+n[4]*c+n[7],i[11]=n[2]*l+n[5]*c+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,l=-o._y*i.height,c=l+i.height,f=1/(a[2]*s+a[5]*l+a[8]);n[0]=f*(a[0]*s+a[3]*l+a[6]),n[1]=f*(a[1]*s+a[4]*l+a[7]),f=1/(a[2]*u+a[5]*l+a[8]),n[2]=f*(a[0]*u+a[3]*l+a[6]),n[3]=f*(a[1]*u+a[4]*l+a[7]),f=1/(a[2]*u+a[5]*c+a[8]),n[4]=f*(a[0]*u+a[3]*c+a[6]),n[5]=f*(a[1]*u+a[4]*c+a[7]),f=1/(a[2]*s+a[5]*c+a[8]),n[6]=f*(a[0]*s+a[3]*c+a[6]),n[7]=f*(a[1]*s+a[4]*c+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>0,0!==h._cycle&&h._cycle===h._totalTime/a&&g<=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]||y.defaultEase:y.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===(l=h._easePower)?s*=s:2===l?s*=s*s:3===l?s*=s*s*s:4===l&&(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||m!==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=g,h._rawPrevTime=_,h._cycle=m,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===g&&(2===h._initted&&0e._startTime;u._timeline;)l&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return c},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=e&&!u;)n._duration||"isPause"===n.data&&0f._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=c}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&&_(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&g===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&_(),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 g&&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=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>0,h._cycle&&h._cycle===h._totalTime/u&&m<=e&&h._cycle--,h._time=h._totalTime-h._cycle*u,h._yoyo&&1&h._cycle&&(h._time=g-h._time),h._time>g?e=(h._time=g)+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&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===h._rawPrevTime||(l=n),n=n._next;else for(n=h._last;n&&n._startTime>=e&&!l;)n._duration||"isPause"===n.data&&0h._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=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||(E.length&&A(),h._callback("onUpdate"))),a&&(h._locked||h._gc||v!==h._startTime&&_===h._timeScale||(0===h._time||p>=h.totalDuration())&&(i&&(E.length&&A(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[a]&&h._callback(a)))}else m!==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;ne)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>0||6)-1,f=[],h=[];for(r in e)p(e[r],a,t);for(i=a.length,n=0;n>0]=h,s[o]=l,u=0,h=[]);return{length:l,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,l,c,f=this._segCount,h=this._func,d=this._target,p=e!==this._startRatio;if(this._timeRes){if(l=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n=e;);0===n&&ethis._s2&&n=e;);0===n&&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 g,m,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]],g=this._beziers[w[n][1]],o&&g&&(o=o[t],g=g[t],m=o.a+(o.b-o.a)*a,m+=((_=o.b+(o.c-o.b)*a)-m)*a,_+=(o.c+(o.d-o.c)*a-_)*a,v=g.a+(g.b-g.a)*a,v+=((y=g.b+(g.c-g.b)*a)-v)*a,y+=(g.c+(g.d-g.c)*a-y)*a,s=p?Math.atan2(y-v,_-m)*x+b:this._initialRotations[n],this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s)}}}),e=m.prototype,m.bezierThrough=d,m.cubicToQuadratic=M,m._autoCSS=!0,m.quadraticToCubic=function(e,t,r){return new _(e,(2*t+e)/3,(2*t+r)/3,r)},m._cssRegister=function(){var e=r.CSSPlugin;if(e){var t=e._internals,d=t._parseToProxy,p=t._setPluginRatio,g=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,r,n,i,o){t instanceof Array&&(t={values:t}),o=new m;var a,s,u,l=t.values,c=l.length-1,f=[],h={};if(c<0)return i;for(a=0;a<=c;a++)u=d(e,l[a],n,i,o,c!==a),f[a]=u.end;for(s in t)h[s]=t[s];return h.values=f,(i=new g(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,g,U=function(){o.call(this,"css"),this._overwriteProps.length=0,this.setRatio=U.prototype.setRatio},l=_gsScope._gsDefine.globals,m={},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 C,v,_,j,y,P,k,E,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,c=/(?![+-]?\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:m},W=(_gsScope.navigator||{}).userAgent||"",V=(t=W.indexOf("Android"),r=H("a"),_=-1!==W.indexOf("Safari")&&-1===W.indexOf("Chrome")&&(-1===t||3>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),3n--)for(;++nn--)for(;++n>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-6s.length?u.length:s.length,a=0;ao.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=l}this._firstPT=s}return!0},e.parse=function(e,t,r,n){var i,o,a,s,u,l,c,f,h,d,p=e.style;for(i in t){if(l=t[i],o=m[i],"function"!=typeof l||o&&o.allowFunc||(l=l(E,k)),o)r=o.parse(e,l,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)+"",l+"",i,!1,i);continue}u=re(e,i,M)+"",h="string"==typeof l,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||h&&w.test(l)?(h||(l=(3<(l=me(l)).length?"rgba(":"rgb(")+l.join(",")+")"),r=Se(p,i,u,l,!0,"transparent",r,0,n)):h&&N.test(l)?r=Se(p,i,u,l,!0,null,r,0,n):(c=(a=parseFloat(u))||0===a?u.substr((a+"").length):"",""!==u&&"auto"!==u||(c="width"===i||"height"===i?(a=le(e,i,M),"px"):"left"===i||"top"===i?(a=ie(e,i,M),"px"):(a="opacity"!==i?0:1,"")),""===(f=(d=h&&"="===l.charAt(1))?(s=parseInt(l.charAt(0)+"1",10),l=l.substr(2),s*=parseFloat(l),l.replace(R,"")):(s=parseFloat(l),h?l.replace(R,""):""))&&(f=i in S?S[i]:c),l=s||0===s?(d?s+a:s)+f:t[i],c!==f&&(""===f&&"lineHeight"!==i||(s||0===s)&&a&&(a=ne(e,i,a,c),"%"===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)&&(l=s+a+f))),d&&(s+=a),!a&&0!==a||!s&&0!==s?void 0!==p[i]&&(l||l+""!="NaN"&&null!=l)?(r=new we(p,i,s||a||0,0,r,-1,i,!1,0,u,l)).xs0="none"!==l||"display"!==i&&-1===i.indexOf("Style")?l:u:Z("invalid "+i+" tween value: "+t[i]):(r=new we(p,i,a,s-a,r,0,i,!1!==C&&("px"===f||"zIndex"===i),0,u,l)).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-6this._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),g.config=p.config=function(e,t,r){return new p(e,t,r)},(g=(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 m).constructor=r,g.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},g.config=r.config=function(e,t){return new r(e,t)},(g=(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 m).constructor=n,g.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},g.config=n.config=function(e,t,r){return new n(e,t,r)},(g=(t=u("easing.RoughEase",function(e){for(var t,r,n,i,o,a,s=(e=e||{}).taper||"none",u=[],l=0,c=0|(e.points||20),f=c,h=!1!==e.randomize,d=!0===e.clamp,p=e.template instanceof m?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;-1<--f;)t=h?Math.random():1/c*f,r=p?p.getRatio(t):t,n="none"===s?g:"out"===s?(i=1-t)*i*g:"in"===s?t*t*g:t<.5?(i=2*t)*i*.5*g:(i=2*(1-t))*i*.5*g,h?r+=Math.random()*n-.5*n:f%2?r+=.5*n:r-=.5*n,d&&(1t.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},g.config=function(e){return new t(e)},t.ease=new t,f("Bounce",l("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}),l("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)}),l("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",l("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),l("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),l("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 m;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",l("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),l("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),l("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),f("Sine",l("SineOut",function(e){return Math.sin(e*s)}),l("SineIn",function(e){return 1-Math.cos(e*s)}),l("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return m.map[e]}},!0),c(i.SlowMo,"SlowMo","ease,"),c(t,"RoughEase","ease,"),c(r,"SteppedEase","ease,"),d},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(h,d){"use strict";var p={},n=h.document,g=h.GreenSockGlobals=h.GreenSockGlobals||h,e=g[d];if(e)return"undefined"!=typeof module&&module.exports&&(module.exports=e);var t,r,i,m,v,o,a,_=function(e){var t,r=e.split("."),n=g;for(t=0;t=r&&ethis._duration?this._duration:e,t)):this._time},i.totalTime=function(e,t,r){if(v||m.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(no;)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||m.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?Z[L.defaultOverwrite]:"number"==typeof s?s>>0:Z[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=Q){for(r in Q=m.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=$._first)||r._paused)&&L.autoSleep&&!J._first&&1===m._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||m.sleep()}}},m.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;oc&&((d||!s._initted)&&c-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?y:(o+=e.totalDuration()/e._timeScale/i)>t+y?0:o-t-y};i._init=function(){var e,t,r,n,i,o,a=this.vars,s=this._overwrittenProps,u=this._duration,l=!!a.immediateRender,c=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=l&&!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),l)if(0s.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;re._startTime;u._timeline;)l&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return c},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=e&&!u;)n._duration||"isPause"===n.data&&0f._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=c}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&&_(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&g===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&_(),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 g&&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=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>0,h._cycle&&h._cycle===h._totalTime/u&&m<=e&&h._cycle--,h._time=h._totalTime-h._cycle*u,h._yoyo&&1&h._cycle&&(h._time=g-h._time),h._time>g?e=(h._time=g)+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&&!l;)n._duration||"isPause"!==n.data||n.ratio||0===n._startTime&&0===h._rawPrevTime||(l=n),n=n._next;else for(n=h._last;n&&n._startTime>=e&&!l;)n._duration||"isPause"===n.data&&0h._time;)l.render(l._reversed?l.totalDuration()-(e-l._startTime)*l._timeScale:(e-l._startTime)*l._timeScale,t,r),l=l._prev;l=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||(E.length&&A(),h._callback("onUpdate"))),a&&(h._locked||h._gc||v!==h._startTime&&_===h._timeScale||(0===h._time||p>=h.totalDuration())&&(i&&(E.length&&A(),h._timeline.autoRemoveChildren&&h._enabled(!1,!1),h._active=!1),!t&&h.vars[a]&&h._callback(a)))}else m!==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;ne)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].timee._startTime;u._timeline;)l&&u._timeline.smoothChildTiming?u.totalTime(u._totalTime,!0):u._gc&&u._enabled(!0,!1),u=u._timeline;return c},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=e&&!u;)n._duration||"isPause"===n.data&&0f._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=c}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&&_(),f._callback("onUpdate"))),a&&(f._gc||p!==f._startTime&&g===f._timeScale||(0===f._time||d>=f.totalDuration())&&(i&&(v.length&&_(),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 g&&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=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=r&&ethis._duration?this._duration:e,t)):this._time},i.totalTime=function(e,t,r){if(v||m.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(no;)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||m.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?Z[L.defaultOverwrite]:"number"==typeof s?s>>0:Z[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=Q){for(r in Q=m.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=$._first)||r._paused)&&L.autoSleep&&!J._first&&1===m._listeners.tick.length){for(;r&&r._paused;)r=r._next;r||m.sleep()}}},m.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;oc&&((d||!s._initted)&&c-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?y:(o+=e.totalDuration()/e._timeScale/i)>t+y?0:o-t-y};i._init=function(){var e,t,r,n,i,o,a=this.vars,s=this._overwrittenProps,u=this._duration,l=!!a.immediateRender,c=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=l&&!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),l)if(0s.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;rthis._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),g.config=p.config=function(e,t,r){return new p(e,t,r)},(g=(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 m).constructor=r,g.getRatio=function(e){return e<0?e=0:1<=e&&(e=.999999999),((this._p2*e|0)+this._p3)*this._p1},g.config=r.config=function(e,t){return new r(e,t)},(g=(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 m).constructor=n,g.getRatio=function(e){return this._ease&&(e=this._ease.getRatio(e)),(this._p3*Math.exp(this._p1*e)-this._p3)/this._p2},g.config=n.config=function(e,t,r){return new n(e,t,r)},(g=(t=u("easing.RoughEase",function(e){for(var t,r,n,i,o,a,s=(e=e||{}).taper||"none",u=[],l=0,c=0|(e.points||20),f=c,h=!1!==e.randomize,d=!0===e.clamp,p=e.template instanceof m?e.template:null,g="number"==typeof e.strength?.4*e.strength:.4;-1<--f;)t=h?Math.random():1/c*f,r=p?p.getRatio(t):t,n="none"===s?g:"out"===s?(i=1-t)*i*g:"in"===s?t*t*g:t<.5?(i=2*t)*i*.5*g:(i=2*(1-t))*i*.5*g,h?r+=Math.random()*n-.5*n:f%2?r+=.5*n:r-=.5*n,d&&(1t.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},g.config=function(e){return new t(e)},t.ease=new t,f("Bounce",l("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}),l("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)}),l("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",l("CircOut",function(e){return Math.sqrt(1-(e-=1)*e)}),l("CircIn",function(e){return-(Math.sqrt(1-e*e)-1)}),l("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 m;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",l("ExpoOut",function(e){return 1-Math.pow(2,-10*e)}),l("ExpoIn",function(e){return Math.pow(2,10*(e-1))-.001}),l("ExpoInOut",function(e){return(e*=2)<1?.5*Math.pow(2,10*(e-1)):.5*(2-Math.pow(2,-10*(e-1)))})),f("Sine",l("SineOut",function(e){return Math.sin(e*s)}),l("SineIn",function(e){return 1-Math.cos(e*s)}),l("SineInOut",function(e){return-.5*(Math.cos(Math.PI*e)-1)})),u("easing.EaseLookup",{find:function(e){return m.map[e]}},!0),c(i.SlowMo,"SlowMo","ease,"),c(t,"RoughEase","ease,"),c(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("easing.CustomBounce",["easing.CustomEase"],function(_){var e,y=function(e){var t,r=e.length,n=1/e[r-2];for(t=2;tl.x||l.y!==u.y&&l.x===u.x||u===l?(l.cx=u.x-l.x,l.cy=u.y-l.y,l.n=u,l.nx=u.x,this.fast&&1l||i===u-1)&&(r.push(c+","+f),n=(s-f)/(a-c)),c=a,f=s;return m&&("string"==typeof m?document.querySelector(m):m).setAttribute("d",r.join(" ")),r.join(" ")},i},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).CustomEase};"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("easing.CustomWiggle",["easing.CustomEase","easing.Ease"],function(r,n){var e,m={easeOut:new r("","M0,1,C0.7,1,0.6,0,1,0"),easeInOut:new r("","M0,0,C0.104,0,0.242,1,0.444,1,0.644,1,0.608,0,1,0"),anticipate:new r("","M0,0,C0,0.222,0.024,0.386,0.06,0.402,0.181,0.455,0.647,0.646,0.7,0.67,0.9,0.76,1,0.846,1,1"),uniform:new r("","M0,0,C0,0.95,0.01,1,0.01,1,0.01,1,1,1,1,1,1,1,1,0.01,1,0")},v=new r,_=function(t,e){return(t=t.getRatio?t:n.map[t]||new r("",t)).rawBezier||!e?t:{getRatio:function(e){return 1-t.getRatio(e)}}},i=function(e,t){this.vars=t||{},r.call(this,e),this.update(this.vars)};return i.prototype=e=new r,e.constructor=i,e.update=function(e){var t,r,n,i,o,a,s,u,l,c=0|((e=e||this.vars).wiggles||10),f=1/c,h=f/2,d="anticipate"===e.type,p=m[e.type]||m.easeOut,g=v;if(d&&(g=p,p=m.easeOut),e.timingEase&&(g=_(e.timingEase)),e.amplitudeEase&&(p=_(e.amplitudeEase,!0)),u=[0,0,(a=g.getRatio(h))/4,0,a/2,s=d?-p.getRatio(h):p.getRatio(h),a,s],"random"===e.type){for(u.length=4,t=g.getRatio(f),r=2*Math.random()-1,l=2;l":"")+this._text.slice(0,o).join(this._delimiter)+(t?"":"")+(r?"":"")+this._delimiter+this._original.slice(o).join(this._delimiter)+(r?"":"")):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=" "===this._fillChar&&-1!==n.indexOf(" ")?n.split(" ").join("  "):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.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-6a.length&&a.grow(o),this._chars=a.sets[this._setIndex],this._revealDelay=t.revealDelay||0,this._tweenLength=!1!==t.tweenLength,this._tween=r,this._rightToLeft=!!t.rightToLeft,!0},set:function(e){var t,r,n,i,o,a,s,u,l,c=this._text.length,f=this._delimiter,h=this._tween._time,d=h-this._prevScrambleTime;this._revealDelay&&(this._tween.vars.runBackwards&&(h=this._tween._duration-h),e=0===h?0:hthis._speed||d<-this._speed)&&(this._setIndex=(this._setIndex+(19*Math.random()|0))%20,this._chars=this._charSet.sets[this._setIndex],this._prevScrambleTime+=d),this._chars):this._original.join(f),i=this._rightToLeft?1!==e||!this._tween.vars.runBackwards&&"isFromStart"!==this._tween.data?(s=this._text.slice(t).join(f),n=this._charsHaveEmoji?p(i).slice(0,this._length+(this._tweenLength?1-e*e*e:1)*this._lengthDif-(this._textHasEmoji?p(s):s).length+.5|0).join(""):i.substr(0,this._length+(this._tweenLength?1-e*e*e:1)*this._lengthDif-(this._textHasEmoji?p(s):s).length+.5|0),s):(n="",this._original.join(f)):(n=this._text.slice(0,t).join(f),r=(this._textHasEmoji?p(n):n).length,this._charsHaveEmoji?p(i).slice(r,this._length+(this._tweenLength?1-(e=1-e)*e*e*e:1)*this._lengthDif+.5|0).join(""):i.substr(r,this._length+(this._tweenLength?1-(e=1-e)*e*e*e:1)*this._lengthDif-r+.5|0)),s=this._hasClass?((o=(u=this._rightToLeft?this._oldClass:this._newClass)&&0!=t)?"":"")+n+(o?"":"")+((a=(l=this._rightToLeft?this._newClass:this._oldClass)&&t!==c)?"":"")+f+i+(a?"":""):n+f+i,this._target[this._prop]=" "===this._fillChar&&-1!==s.indexOf(" ")?s.split(" ").join("  "):s}}).prototype;for(a in a._newClass=a._oldClass="",g)g[a.toLowerCase()]=g[a],g[a.toUpperCase()]=g[a]}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).ScrambleTextPlugin};"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,g=/(?:\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]},v=function(e,t,r){return 255*(6*(e=e<0?e+1:1>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(p),d){if(-1!==e.indexOf("="))return e.match(g)}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>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(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>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),3n--)for(;++nn--)for(;++n>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-6s.length?u.length:s.length,a=0;ao.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=l}this._firstPT=s}return!0},e.parse=function(e,t,r,n){var i,o,a,s,u,l,c,f,h,d,p=e.style;for(i in t){if(l=t[i],o=m[i],"function"!=typeof l||o&&o.allowFunc||(l=l(E,k)),o)r=o.parse(e,l,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)+"",l+"",i,!1,i);continue}u=re(e,i,M)+"",h="string"==typeof l,"color"===i||"fill"===i||"stroke"===i||-1!==i.indexOf("Color")||h&&w.test(l)?(h||(l=(3<(l=me(l)).length?"rgba(":"rgb(")+l.join(",")+")"),r=Se(p,i,u,l,!0,"transparent",r,0,n)):h&&N.test(l)?r=Se(p,i,u,l,!0,null,r,0,n):(c=(a=parseFloat(u))||0===a?u.substr((a+"").length):"",""!==u&&"auto"!==u||(c="width"===i||"height"===i?(a=le(e,i,M),"px"):"left"===i||"top"===i?(a=ie(e,i,M),"px"):(a="opacity"!==i?0:1,"")),""===(f=(d=h&&"="===l.charAt(1))?(s=parseInt(l.charAt(0)+"1",10),l=l.substr(2),s*=parseFloat(l),l.replace(R,"")):(s=parseFloat(l),h?l.replace(R,""):""))&&(f=i in S?S[i]:c),l=s||0===s?(d?s+a:s)+f:t[i],c!==f&&(""===f&&"lineHeight"!==i||(s||0===s)&&a&&(a=ne(e,i,a,c),"%"===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)&&(l=s+a+f))),d&&(s+=a),!a&&0!==a||!s&&0!==s?void 0!==p[i]&&(l||l+""!="NaN"&&null!=l)?(r=new we(p,i,s||a||0,0,r,-1,i,!1,0,u,l)).xs0="none"!==l||"display"!==i&&-1===i.indexOf("Style")?l:u:Z("invalid "+i+" tween value: "+t[i]):(r=new we(p,i,a,s-a,r,0,i,!1!==C&&("px"===f||"zIndex"===i),0,u,l)).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>0||6)-1,f=[],h=[];for(r in e)p(e[r],a,t);for(i=a.length,n=0;n>0]=h,s[o]=l,u=0,h=[]);return{length:l,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,l,c,f=this._segCount,h=this._func,d=this._target,p=e!==this._startRatio;if(this._timeRes){if(l=this._lengths,c=this._curSeg,e*=this._length,n=this._li,e>this._l2&&n=e;);0===n&&ethis._s2&&n=e;);0===n&&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 g,m,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]],g=this._beziers[w[n][1]],o&&g&&(o=o[t],g=g[t],m=o.a+(o.b-o.a)*a,m+=((_=o.b+(o.c-o.b)*a)-m)*a,_+=(o.c+(o.d-o.c)*a-_)*a,v=g.a+(g.b-g.a)*a,v+=((y=g.b+(g.c-g.b)*a)-v)*a,y+=(g.c+(g.d-g.c)*a-y)*a,s=p?Math.atan2(y-v,_-m)*x+b:this._initialRotations[n],this._mod[i]&&(s=this._mod[i](s,d)),h[i]?d[i](s):d[i]=s)}}}),e=m.prototype;m.bezierThrough=d,m.cubicToQuadratic=M,m._autoCSS=!0,m.quadraticToCubic=function(e,t,r){return new _(e,(2*t+e)/3,(2*t+r)/3,r)},m._cssRegister=function(){var e=r.CSSPlugin;if(e){var t=e._internals,d=t._parseToProxy,p=t._setPluginRatio,g=t.CSSPropTween;t._registerComplexSpecialProp("bezier",{parser:function(e,t,r,n,i,o){t instanceof Array&&(t={values:t}),o=new m;var a,s,u,l=t.values,c=l.length-1,f=[],h={};if(c<0)return i;for(a=0;a<=c;a++)u=d(e,l[a],n,i,o,c!==a),f[a]=u.end;for(s in t)h[s]=t[s];return h.values=f,(i=new g(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";var e,t=_gsScope.document,r="undefined"!=typeof window?window:t.defaultView||{getComputedStyle:function(){}},l=function(e){return r.getComputedStyle(e)},f=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,c=-1!==((_gsScope.navigator||{}).userAgent||"").indexOf("Edge"),h={rect:["width","height"],circle:["r","r"],ellipse:["rx","ry"],line:["x2","y2"]};function d(e,t,r,n,i,o){return r=(parseFloat(r||0)-parseFloat(e||0))*i,n=(parseFloat(n||0)-parseFloat(t||0))*o,Math.sqrt(r*r+n*n)}function p(e){return"string"!=typeof e&&e.nodeType||(e=_gsScope.TweenLite.selector(e)).length&&(e=e[0]),e}function g(e){if(!e)return 0;var t,r,n,i,o,a,s,u=(e=p(e)).tagName.toLowerCase(),l=1,c=1;"non-scaling-stroke"===e.getAttribute("vector-effect")&&(c=e.getScreenCTM(),l=Math.sqrt(c.a*c.a+c.b*c.b),c=Math.sqrt(c.d*c.d+c.c*c.c));try{r=e.getBBox()}catch(e){console.log("Error: Some browsers like Firefox won't report measurements of invisible elements (like display:none or masks inside defs).")}if(r&&(r.width||r.height)||!h[u]||(r={width:parseFloat(e.getAttribute(h[u][0])),height:parseFloat(e.getAttribute(h[u][1]))},"rect"!==u&&"line"!==u&&(r.width*=2,r.height*=2),"line"===u&&(r.x=parseFloat(e.getAttribute("x1")),r.y=parseFloat(e.getAttribute("y1")),r.width=Math.abs(r.width-r.x),r.height=Math.abs(r.height-r.y))),"path"===u)i=e.style.strokeDasharray,e.style.strokeDasharray="none",t=e.getTotalLength()||0,l!==c&&console.log("Warning: length cannot be measured accurately when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(l+c)/2,e.style.strokeDasharray=i;else if("rect"===u)t=2*r.width*l+2*r.height*c;else if("line"===u)t=d(r.x,r.y,r.x+r.width,r.y+r.height,l,c);else if("polyline"===u||"polygon"===u)for(n=e.getAttribute("points").match(f)||[],"polygon"===u&&n.push(n[0],n[1]),t=0,o=2;o>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},g=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>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,l=this._pxl,c=this._pyl;a<1e-6&&-1e-6>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(!c&&!(c=_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||[],l=u.length;-1<--l;)if(u[l]instanceof c){i=u[l];break}if(i||(i=new c,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=0p[0].length&&M(p[0],(d[0].length-p[0].length)/6|0),_=p.length;gMath.abs(o[0]-a[a.length-2])+Math.abs(o[1]-a[a.length-1])+Math.abs(o[o.length-2]-a[0])+Math.abs(o[o.length-1]-a[1])||r%2)?(P(a),y[_]=-1,b=!0):"auto"===r?y[_]=0:"reverse"===r&&(y[_]=-1),a.closed!==o.closed&&(a.closed=o.closed=!1));return x&&I("shapeIndex:["+y.join(",")+"]"),e.shapeIndex=y}},i=function(e,t){var r,n,i,o,a,s,u,l=0,c=parseFloat(e[0]),f=parseFloat(e[1]),h=c+","+f+" ";for(r=.5*t/(.5*(i=e.length)-1),n=0;n element. "+$),!1;if(o="PATH"===i?"d":"points",("string"==typeof t||t.getBBox||t[0])&&(t={shape:t}),!t.prop&&"function"!=typeof e.setAttribute)return!1;if(s=K(t.shape||t.d||t.points||"","d"==o,e),u&&R.test(s))return I("WARNING: a <"+i+"> cannot accept path data. "+$),!1;if(l=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",c=t.map||Q.defaultMap,this._prop=t.prop,this._render=t.render||Q.defaultRender,this._apply="updateTarget"in t?t.updateTarget:Q.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,s){if(this._target=e,b="object"==typeof t.precompile,d=this._prop?e[this._prop]:e.getAttribute(o),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",d),"d"==o||this._prop){if(d=D(b?t.precompile[0]:d),p=D(b?t.precompile[1]:s),!b&&!U(d,p,l,c,k))return!1;for("log"!==t.precompile&&!0!==t.precompile||I('precompile:["'+L(d)+'","'+L(p)+'"]'),(S="linear"!==(t.type||Q.defaultType))&&(d=Z(d,t.smoothTolerance),p=Z(p,t.smoothTolerance),d.size||N(d),p.size||N(p),T=J(E[0]),this._origin=d.origin={x:d.left+T.x*d.width,y:d.top+T.y*d.height},E[1]&&(T=J(E[1])),this._eOrigin={x:p.left+T.x*p.width,y:p.top+T.y*p.height}),this._rawPath=e._gsRawPath=d,m=d.length;-1<--m;)for(_=d[m],y=p[m],f=_.isSmooth||[],h=y.isSmooth||[],v=_.length,g=A=0;gp?i:o,sl:c,cl:G(u*u+l*l)-c,i:r}},Q.pathFilter=function(e,t,r,n,i){var o=D(e[0]),a=D(e[1]);U(o,a,t||0===t?t:"auto",r,i)&&(e[0]=L(o),e[1]=L(a),"log"!==n&&!0!==n||I('precompile:["'+e[0]+'","'+e[1]+'"]'))},Q.pointsFilter=r,Q.getTotalSize=N,Q.subdivideRawBezier=Q.subdivideSegment=M,Q.rawPathToString=L,Q.defaultType="linear",Q.defaultUpdateTarget=!0,Q.defaultMap="size",Q.stringToRawPath=Q.pathDataToRawBezier=function(e){return D(K(e,!0))},Q.equalizeSegmentQuantity=U,Q.convertToPath=function(e,t){"string"==typeof e&&(e=g.selector(e));for(var r=e&&0!==e.length?e.length&&e[0]&&e[0].nodeType?Array.prototype.slice.call(e,0):[e]:[],n=r.length;-1<--n;)r[n]=s(r[n],!1!==t);return r},Q.pathDataToBezier=function(e,t){var r,n,i,o,a,s,u,l,c=D(K(e,!0))[0]||[],f=0;if(l=(t=t||{}).align||t.relative,o=t.matrix||[1,0,0,1,0,0],a=t.offsetX||0,s=t.offsetY||0,"relative"===l||!0===l?(a-=c[0]*o[0]+c[1]*o[2],s-=c[0]*o[1]+c[1]*o[3],f="+="):(a+=o[4],s+=o[5],l&&(l="string"==typeof l?g.selector(l):l&&l[0]?l:[l])&&l[0]&&(a-=(u=l[0].getBBox()||{x:0,y:0}).x,s-=u.y)),r=[],i=c.length,o&&"1,0,0,1,0,0"!==o.join(","))for(n=0;nNumber(s.max)+1e-10?(g=s.unitFactor||k.defaultUnitFactors[a]||1,(d=f>s.max&&s.min!==s.max||-15c&&(y||o.preventOvershoot?l=o.min-a:f=o.min-a-l)),this._overwriteProps[b]=i,this._props[b++]={p:i,s:a,c1:l,c2:f,f:s,r:!1}}return!0},e._kill=function(e){for(var t=this._props.length;-1<--t;)null!=e[this._props[t].p]&&this._props.splice(t,1);return r.prototype._kill.call(this,e)},e._mod=function(e){for(var t,r=this._props,n=r.length;-1<--n;)"function"==typeof(t=e[r[n].p]||e.throwProps)&&(r[n].m=t)},e.setRatio=function(e){for(var t,r,n=this._props.length;-1<--n;)r=(t=this._props[n]).s+t.c1*e+t.c2*e*e,t.m?r=t.m(r,this.target):1===e&&(r=(1e4*r+(r<0?-.5:.5)|0)/1e4),t.f?this.target[t.p](r):this.target[t.p]=r},r.activate([k]),k},!0),_gsScope._gsDefine("utils.VelocityTracker",["TweenLite"],function(a){var o,t,i,s=/([A-Z])/g,u={},e=_gsScope.document,l={x:1,y:1,z:2,scale:1,scaleX:1,scaleY:1,rotation:1,rotationZ:1,rotationX:2,rotationY:2,skewX:1,skewY:1,xPercent:1,yPercent:1},c="undefined"!=typeof window?window:e.defaultView||{getComputedStyle:function(){}},f=function(e,t,r){var n=(e._gsTransform||u)[t];return n||0===n?n:(e.style[t]?n=e.style[t]:(r=r||function(e){return c.getComputedStyle(e)}(e))?n=r[t]||r.getPropertyValue(t)||r.getPropertyValue(t.replace(s,"-$1").toLowerCase()):e.currentStyle&&(n=e.currentStyle[t]),parseFloat(n)||0)},h=a.ticker,d=function(e,t,r){this.p=e,this.f=t,this.v1=this.v2=0,this.t1=this.t2=h.time,this.css=!1,this.type="",this._prev=null,r&&((this._next=r)._prev=this)},r=function(){var e,t,r=o,n=h.time;if(.03<=n-i)for(i,i=n;r;){for(t=r._firstVP;t;)((e=t.css?f(r.target,t.p):t.f?r.target[t.p]():r.target[t.p])!==t.v1||.15":">")}},n=e.SplitText=i.SplitText=function(e,t){if("string"==typeof e&&(e=n.selector(e)),!e)throw"cannot split a null element.";this.elements=a(e)?function(e){var t,r,n,i=[],o=e.length;for(t=0;tP&&("BR"!==c.nodeName||0===s)&&(d=[],D.push(d),x=_),j&&(c._x=c.offsetLeft,c._y=_,c._w=c.offsetWidth,c._h=c.offsetHeight),D&&((c._isSplit&&h||!N&&h||L&&h||!L&&c.parentNode.parentNode===e&&!c.parentNode._isSplit)&&(d.push(c),c._x-=b,G(c,e,O)&&(c._wordEnd=!0)),"BR"===c.nodeName&&(c.nextSibling&&"BR"===c.nextSibling.nodeName||0===s)&&D.push([])));for(s=0;se.clientHeight&&(e.style.height=a-S+"px",e.clientHeighte.clientWidth&&(e.style.width=o-M+"px",e.clientWidth",b=!0,x=t.specialChars?"function"==typeof t.specialChars?t.specialChars:M:null,w=U.createElement("div"),T=e.parentNode;for(T.insertBefore(w,e),w.textContent=e.nodeValue,T.removeChild(e),c=-1!==(i=S(e=w)).indexOf("<"),!1!==t.reduceWhiteSpace&&(i=i.replace(C," ").replace(P,"")),c&&(i=i.split("<").join("{{LT}}")),u=i.length,o=(" "===i.charAt(0)?_:"")+r(),a=0;a":l,a+=d-1;else if(l===v&&i.charAt(a-1)!==v&&a){for(o+=b?y:"",b=!1;i.charAt(a+1)===v;)o+=_,a++;a===u-1?o+=_:")"!==i.charAt(a+1)&&(o+=_+r(),b=!0)}else"{"===l&&"{{LT}}"===i.substr(a,6)?(o+=g?n()+"{{LT}}":"{{LT}}",a+=5):55296<=l.charCodeAt(0)&&l.charCodeAt(0)<=56319||65024<=i.charCodeAt(a+1)&&i.charCodeAt(a+1)<=65039?(f=k(i.substr(a,2)),h=k(i.substr(a+2,2)),s=127462<=f&&f<=127487&&127462<=h&&h<=127487||127995<=h&&h<=127999?4:2,o+=g&&" "!==l?n()+i.substr(a,s)+"":i.substr(a,s),a+=s-1):o+=g&&" "!==l?n()+l+"":l;e.outerHTML=o+(b?y:""),c&&H(T,"{{LT}}","<")}(e,t,r,n)},h=n.prototype;h.split=function(e){this.isSplit&&this.revert(),this.vars=e=e||this.vars,this._originals.length=this.chars.length=this.words.length=this.lines.length=0;for(var t,r,n,i=this.elements.length,o=e.tag?e.tag:e.span?"span":"div",a=u(e.wordsClass,o),s=u(e.charsClass,o);-1<--i;)n=this.elements[i],this._originals[i]=n.innerHTML,t=n.clientHeight,r=n.clientWidth,f(n,e,a,s),c(n,e,this.chars,this.words,this.lines,r,t);return this.chars.reverse(),this.words.reverse(),this.lines.reverse(),this.isSplit=!0,this},h.revert=function(){if(!this._originals)throw"revert() call wasn't scoped properly.";for(var e=this._originals.length;-1<--e;)this.elements[e].innerHTML=this._originals[e];return this.chars=[],this.words=[],this.lines=[],this.isSplit=!1,this},n.selector=r.$||r.jQuery||function(e){var t=r.$||r.jQuery;return t?(n.selector=t)(e):"undefined"==typeof document?e:document.querySelectorAll?document.querySelectorAll(e):document.getElementById("#"===e.charAt(0)?e.substr(1):e)},n.version="0.7.0"}(_gsScope),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).SplitText};"undefined"!=typeof module&&module.exports?module.exports=t():"function"==typeof define&&define.amd&&define([],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,g,M,P,e,t,n,i,a,Se={css:{},data:"_draggable"},Me={css:{},data:"_draggable"},Pe={css:{},data:"_draggable"},Ce={css:{}},ke=_gsScope._gsDefine.globals,s={},u=function(){return!1},l={style:{},appendChild:u,removeChild:u},Ee=_gsScope.document||{createElement:function(){return l}},Ae=Ee.documentElement||{},c=function(e){return Ee.createElementNS?Ee.createElementNS("http://www.w3.org/1999/xhtml",e):Ee.createElement(e)},f=c("div"),Oe=[],Re=180/Math.PI,Ie=999999999999999,De=Date.now||function(){return(new Date).getTime()},Le=!(Ee.addEventListener||!Ee.all),Ne=Ee.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)},C=function(){return null!=window.pageYOffset?window.pageYOffset:null!=Ee.scrollTop?Ee.scrollTop:Ae.scrollTop||Ee.body.scrollTop||0},k=function(){return null!=window.pageXOffset?window.pageXOffset:null!=Ee.scrollLeft?Ee.scrollLeft:Ae.scrollLeft||Ee.body.scrollLeft||0},Ve=function(e,t){lt(e,"scroll",t),Ze(e.parentNode)||Ve(e.parentNode,t)},Ke=function(e,t){ct(e,"scroll",t),Ze(e.parentNode)||Ke(e.parentNode,t)},Ze=function(e){return!(e&&e!==Ae&&e!==Ee&&e!==Ee.body&&e!==window&&e.nodeType&&e.parentNode)},m=function(e,t){var r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r,o=Ee.body;return Math.max(0,Ze(e)?Math.max(Ae[n],o[n])-(window["inner"+r]||Ae[i]||o[i]):e[n]-e[i])},Je=function(e){var t=Ze(e),r=m(e,"x"),n=m(e,"y");t?e=He:Je(e.parentNode),e._gsMaxScrollX=r,e._gsMaxScrollY=n,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0},$e=function(e,t){return e=e||window.event,s.pageX=e.clientX+Ee.body.scrollLeft+Ae.scrollLeft,s.pageY=e.clientY+Ee.body.scrollTop+Ae.scrollTop,t&&(e.returnValue=!1),s},Qe=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))},_="undefined"!=typeof window?window:Ee.defaultView||{getComputedStyle:function(){}},E=function(e,t){return _.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e,t)},y=/(?: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=y.test(t),s=e,u=f.style,l=r<0;return l&&(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||Ee.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))),l?-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=E(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=Qe(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(!Ee.createElementNS)return S=0,void(p=!1);var e,t,r,n,i=c("div"),o=Ee.createElementNS("http://www.w3.org/2000/svg","svg"),a=c("div"),s=i.style,u=Ee.body||Ae,l="flex"===tt(u,"display",!0);Ee.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()),g=t-r.y<100.1?0:t-r.y-150,i.removeChild(o),u.removeChild(i),u.appendChild(o),l&&(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),l&&(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!==mt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r,n,i,o,a,s,u,l,c,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)===Ee.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=E(e)||{},u=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)||0,l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)||0,c=parseFloat(i.width)||0,f=parseFloat(i.height)||0,d.scaleX*=(c-u)/c,d.scaleY*=(f-l)/f),g?(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=E(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!==mt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r=e._dCache=e._dCache||{},n=E(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,l,c,f,h,d,p,g,m,v,_,y=e._dCache||z(e),b=e.parentNode,x=b._dCache||z(b),w=y.computedStyle,T=y.isSVG?x.offsetParent:b.offsetParent;if(o=y.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:y.isSVG&&(l=e._gsTransform)&&(l.xOrigin||l.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])-(l.xOrigin-(l.xOrigin*o[0]+l.yOrigin*o[2])),o[5]=parseFloat(o[5])-(l.yOrigin-(l.xOrigin*o[1]+l.yOrigin*o[3]))),t)if(void 0===S&&A(),s=y.isSVG||y.isSVGRoot?B(e):e,y.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:y.offsetParent}):y.isSVGRoot?(g=parseInt(w.borderTopWidth,10)||0,m=parseInt(w.borderLeftWidth,10)||0,v=(o[0]-S)*m+o[2]*g,_=o[1]*m+(o[3]-S)*g,c=t.x,f=t.y,h=c-(c*o[0]+f*o[2]),d=f-(c*o[1]+f*o[3]),o[4]=parseFloat(o[4])+h,o[5]=parseFloat(o[5])+d,t.x-=h,t.y-=d,c=s.scaleX,f=s.scaleY,i||(t.x*=c,t.y*=f),o[0]*=c,o[1]*=f,o[2]*=c,o[3]*=f,N||(t.x+=v,t.y+=_),T===Ee.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===Ee.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]+=k(),o[5]+=C(),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||y.isSVG||y.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,l,c=ot(e,I),f=ot(e.parentNode,D),h=U(e,c,f,!1,!t);(e=e.parentNode)&&e.parentNode&&e!==Ae;)c=f,f=ot(e.parentNode,c===I?D:I),u=U(e,c,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],l=r*o-n*i,h[0]=o/l,h[1]=-n/l,h[2]=-i/l,h[3]=r/l,h[4]=(i*s-o*a)/l,h[5]=-(r*s-n*a)/l),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=Qe(e)))return null;t=Qe(t);var n,i,o,a,s,u,l,c,f,h,d,p,g,m,v,_,y,b,x,w,T,S,M=e.getBBox&&it(e);if(e===window)a=C(),o=(i=k())+(Ae.clientWidth||e.innerWidth||Ee.body.clientWidth||0),s=a+((e.innerHeight||0)-20t.scrollHeight,a.removeChild(t),e),gt=function(i,o){i=Qe(i),o=o||{};var a,s,u,e,l,c,f=Ee.createElement("div"),h=f.style,t=i.firstChild,d=0,p=0,g=i.scrollTop,m=i.scrollLeft,v=i.scrollWidth,_=i.scrollHeight,y=0,b=0,x=0;w&&!1!==o.force3D?(l="translate3d(",c="px,0px)"):O&&(l="translate(",c="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-m,n=p;if((2n.bottom-Q&&u?(Z=!0,s=Math.min(u,c*(1-Math.max(0,n.bottom-o)/Q)|0)):on.right-$&&u?(Z=!0,a=Math.min(u,c*(1-Math.max(0,n.right-i)/$)|0)):iG?(W.y=o,c+(v-o)*u):c):(I&&(s=e*I[0]+t*I[2]+I[4],t=e*I[1]+t*I[3]+I[5],e=s),(n=t-m)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=c+r*u,o=v+n*u),(k||E||A)&&(W.x!==i||W.y!==o&&!U)?(A&&(qe.x=i,qe.y=o,i=(s=A(qe)).x,o=s.y),k&&(i=k(i)),E&&(o=E(o))):_&&(bo._gsMaxScrollY&&(o.scrollTop=o._gsMaxScrollY),H&&o.scrollLeft>o._gsMaxScrollX&&(o.scrollLeft=o._gsMaxScrollX),i=o;W.isThrowing&&(n||W.endX>b||W.endXw||W.endYa.right||s.righta.bottom||s.bottom=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;",mt},!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)}();var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";_gsScope._gsDefine("GSDevTools",["TweenLite","core.Animation","core.SimpleTimeline","TimelineLite","utils.Draggable","plugins.CSSPlugin"],function(ue,le,a,ce,fe){var he,s,de,u,pe,i=document,ge=i.documentElement,o="http://www.w3.org/2000/svg",l="http://www.w3.org/1999/xhtml",me=0,ve={},_e=function(e,t,r){var n=i.createElementNS?i.createElementNS("svg"===e?o:l,e):i.createElement(e);return t&&("string"==typeof t&&(t=i.querySelector(t)),t.appendChild(n)),"svg"===e&&(n.setAttribute("xmlns",o),n.setAttribute("xmlns:xlink",l)),r&&(n.style.cssText=r),n},ye=function(){i.selection?i.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()},c=le._rootTimeline,be=function(e,t){for(var r=[],n=0,i=e._first;i;)i instanceof ue?i.vars.id&&(r[n++]=i):(t&&i.vars.id&&(r[n++]=i),n=(r=r.concat(be(i,t))).length),i=i._next;return r},xe=function(e,t){var r=0,n=Math.max(0,e._repeat),i=e._first;for(i||(r=e.duration());i;)r=Math.max(r,999v._duration&&(e=v._duration),g||v.time(e),w.style.width=Math.min(O-A,Math.max(0,e/v._duration*100-A))+"%",T.innerHTML=e.toFixed(2)},onRelease:function(e){F||v.resume()}})[0],C=t(".in-point"),k=t(".out-point"),E=function(){A=0,O=100,C.style.left="0%",k.style.left="100%",_("in",A),_("out",O),D(!0)},A=0,O=100,R=fe.create(C,{type:"x",cursor:"ew-resize",zIndexBoost:!1,allowNativeTouchScrolling:!1,allowEventDefault:!0,onPress:r(C,1,!0),onDoubleClick:E,onDrag:function(){A=(d+h*this.x)/v.duration()*100,v.progress(A/100),D(!0)},onRelease:function(){A<0&&(A=0),ye(),C.style.left=A+"%",_("in",A),ue.set(C,{x:0,data:"root",display:"block"}),F||v.resume()}})[0],I=fe.create(k,{type:"x",cursor:"ew-resize",allowNativeTouchScrolling:!1,allowEventDefault:!0,zIndexBoost:!1,onPress:r(k,0,!0),onDoubleClick:E,onDrag:function(){O=(d+h*this.x)/v.duration()*100,v.progress(O/100),D(!0)},onRelease:function(){100a.duration();100=O/100&&(v.target===a&&v.target.seek(u+(l-u)*A/100),v._repeat&&!A?v.totalProgress(0,!0):v.progress(A/100,!0)),j.play(),v.resume(),F&&f.update(),F=!1},z=function(){j.reverse(),v&&v.pause(),F=!0},U=function(){F?B():z()},X=function(e){P.isPressed||(v.target===a&&v.target.seek(u+(l-u)*A/100),v.progress(A/100,!0),F||v.resume())},q=t(".loop"),H=function(e){var t=new ce({data:"root",paused:!0,onComplete:function(){t.kill()}});return t.to(e,.5,{rotation:360,ease:Power3.easeInOut,transformOrigin:"50% 50%"}).to(e.querySelectorAll(".loop-path"),.5,{fill:"#91e600",ease:Linear.easeNone},0),t}(q),Y=function(e){_("loop",i=e),i?(H.play(),v.progress()>=O/100&&(v.target===a&&v.target.seek(u+(l-u)*A/100),a._repeat&&!A&&100===O?v.totalProgress(0,!0):v.progress(A/100,!0),B())):H.reverse()},G=function(){Y(!i)},W=t(".animation-list"),V=t(".animation-label"),K=function(){var e,t,r=be(s&&!1===o.globalSync?s:ke,!0),n=W.children,i=0;for(s&&!1===o.globalSync?r.unshift(s):o.hideGlobalTimeline||r.unshift(ke),t=0;t=O/100?(v.target===a&&v.target.seek(u+(l-u)*A/100),v.progress(A/100,!0).pause()):v.pause(),ue.delayedCall(.01,function(){v.resume()})),Q.innerHTML=t+"x",$.blur&&$.blur()},te=ue.to([t(".gs-bottom"),t(".gs-top")],.3,{autoAlpha:0,y:50,ease:Power2.easeIn,data:"root",paused:!0}),re=!1,ne=function(e){fe.hitTest(e,n)||P.isDragging||R.isDragging||I.isDragging||ae.restart(!0)},ie=function(){re||(te.play(),ae.pause(),re=!0)},oe=function(){ae.pause(),re&&(te.reverse(),re=!1)},ae=ue.delayedCall(1.3,ie).pause(),se=function(e){Re&&!Ie&&(Ie=ke._startTime),c=!e,(s=we(o.animation))&&!s.vars.id&&(s.vars.id="[no id]"),K();var t=we(y("animation"));t&&(t._inProgress=y("in")||0,t._outProgress=y("out")||100),o.paused&&z(),a=null,Z(s||t||ke);var r=o.timeScale||y("timeScale"),n=t===a;r&&(Pe($,r,Q,r+"x"),v.timeScale(r)),100===(A=("inTime"in o?Te(o.inTime,a,0,0):n?t._inProgress:0)||0)&&!o.animation&&t&&(Z(ke),A=Te(o.inTime,a,0,0)||0),A&&(C.style.left=A+"%",C.style.display=k.style.display="block"),(O=("outTime"in o?Te(o.outTime,a,100,A):n?t._outProgress:0)||100)this.duration()&&(this._time=this._duration,this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},ue.onOverwrite=function(e,t,r,n){p.logOverwrites&&(n?console.log("[Overwrite warning] the following properties were overwritten: ",n,"| target:",r,"| overwritten tween: ",e,"| overwriting tween:",t):console.log("[Overwrite warning] the following tween was overwritten:",e,"by",t)),"function"==typeof g&&g(e,t,r,n)},p.create=function(e){return new p(e)},p},!0)}),_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";_gsScope._gsDefine("utils.Draggable",["events.EventDispatcher","TweenLite","plugins.CSSPlugin"],function(r,be,xe){var we,o,Te,S,p,g,M,P,e,t,n,i,a,Se={css:{},data:"_draggable"},Me={css:{},data:"_draggable"},Pe={css:{},data:"_draggable"},Ce={css:{}},ke=_gsScope._gsDefine.globals,s={},u=function(){return!1},l={style:{},appendChild:u,removeChild:u},Ee=_gsScope.document||{createElement:function(){return l}},Ae=Ee.documentElement||{},c=function(e){return Ee.createElementNS?Ee.createElementNS("http://www.w3.org/1999/xhtml",e):Ee.createElement(e)},f=c("div"),Oe=[],Re=180/Math.PI,Ie=999999999999999,De=Date.now||function(){return(new Date).getTime()},Le=!(Ee.addEventListener||!Ee.all),Ne=Ee.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)},C=function(){return null!=window.pageYOffset?window.pageYOffset:null!=Ee.scrollTop?Ee.scrollTop:Ae.scrollTop||Ee.body.scrollTop||0},k=function(){return null!=window.pageXOffset?window.pageXOffset:null!=Ee.scrollLeft?Ee.scrollLeft:Ae.scrollLeft||Ee.body.scrollLeft||0},Ve=function(e,t){lt(e,"scroll",t),Ze(e.parentNode)||Ve(e.parentNode,t)},Ke=function(e,t){ct(e,"scroll",t),Ze(e.parentNode)||Ke(e.parentNode,t)},Ze=function(e){return!(e&&e!==Ae&&e!==Ee&&e!==Ee.body&&e!==window&&e.nodeType&&e.parentNode)},m=function(e,t){var r="x"===t?"Width":"Height",n="scroll"+r,i="client"+r,o=Ee.body;return Math.max(0,Ze(e)?Math.max(Ae[n],o[n])-(window["inner"+r]||Ae[i]||o[i]):e[n]-e[i])},Je=function(e){var t=Ze(e),r=m(e,"x"),n=m(e,"y");t?e=He:Je(e.parentNode),e._gsMaxScrollX=r,e._gsMaxScrollY=n,e._gsScrollX=e.scrollLeft||0,e._gsScrollY=e.scrollTop||0},$e=function(e,t){return e=e||window.event,s.pageX=e.clientX+Ee.body.scrollLeft+Ae.scrollLeft,s.pageY=e.clientY+Ee.body.scrollTop+Ae.scrollTop,t&&(e.returnValue=!1),s},Qe=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))},_="undefined"!=typeof window?window:Ee.defaultView||{getComputedStyle:function(){}},E=function(e,t){return _.getComputedStyle(e instanceof Element?e:e.host||(e.parentNode||{}).host||e,t)},y=/(?: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=y.test(t),s=e,u=f.style,l=r<0;return l&&(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||Ee.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))),l?-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=E(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=Qe(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(!Ee.createElementNS)return S=0,void(p=!1);var e,t,r,n,i=c("div"),o=Ee.createElementNS("http://www.w3.org/2000/svg","svg"),a=c("div"),s=i.style,u=Ee.body||Ae,l="flex"===tt(u,"display",!0);Ee.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()),g=t-r.y<100.1?0:t-r.y-150,i.removeChild(o),u.removeChild(i),u.appendChild(o),l&&(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),l&&(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!==mt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r,n,i,o,a,s,u,l,c,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)===Ee.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=E(e)||{},u=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth)||0,l=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)||0,c=parseFloat(i.width)||0,f=parseFloat(i.height)||0,d.scaleX*=(c-u)/c,d.scaleY*=(f-l)/f),g?(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=E(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!==mt.cacheSVGData&&e._dCache&&e._dCache.lastUpdate===be.ticker.frame)return e._dCache;var t,r=e._dCache=e._dCache||{},n=E(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,l,c,f,h,d,p,g,m,v,_,y=e._dCache||z(e),b=e.parentNode,x=b._dCache||z(b),w=y.computedStyle,T=y.isSVG?x.offsetParent:b.offsetParent;if(o=y.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:y.isSVG&&(l=e._gsTransform)&&(l.xOrigin||l.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])-(l.xOrigin-(l.xOrigin*o[0]+l.yOrigin*o[2])),o[5]=parseFloat(o[5])-(l.yOrigin-(l.xOrigin*o[1]+l.yOrigin*o[3]))),t)if(void 0===S&&A(),s=y.isSVG||y.isSVGRoot?B(e):e,y.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:y.offsetParent}):y.isSVGRoot?(g=parseInt(w.borderTopWidth,10)||0,m=parseInt(w.borderLeftWidth,10)||0,v=(o[0]-S)*m+o[2]*g,_=o[1]*m+(o[3]-S)*g,c=t.x,f=t.y,h=c-(c*o[0]+f*o[2]),d=f-(c*o[1]+f*o[3]),o[4]=parseFloat(o[4])+h,o[5]=parseFloat(o[5])+d,t.x-=h,t.y-=d,c=s.scaleX,f=s.scaleY,i||(t.x*=c,t.y*=f),o[0]*=c,o[1]*=f,o[2]*=c,o[3]*=f,N||(t.x+=v,t.y+=_),T===Ee.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===Ee.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]+=k(),o[5]+=C(),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||y.isSVG||y.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,l,c=ot(e,I),f=ot(e.parentNode,D),h=U(e,c,f,!1,!t);(e=e.parentNode)&&e.parentNode&&e!==Ae;)c=f,f=ot(e.parentNode,c===I?D:I),u=U(e,c,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],l=r*o-n*i,h[0]=o/l,h[1]=-n/l,h[2]=-i/l,h[3]=r/l,h[4]=(i*s-o*a)/l,h[5]=-(r*s-n*a)/l),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=Qe(e)))return null;t=Qe(t);var n,i,o,a,s,u,l,c,f,h,d,p,g,m,v,_,y,b,x,w,T,S,M=e.getBBox&&it(e);if(e===window)a=C(),o=(i=k())+(Ae.clientWidth||e.innerWidth||Ee.body.clientWidth||0),s=a+((e.innerHeight||0)-20t.scrollHeight,a.removeChild(t),e),gt=function(i,o){i=Qe(i),o=o||{};var a,s,u,e,l,c,f=Ee.createElement("div"),h=f.style,t=i.firstChild,d=0,p=0,g=i.scrollTop,m=i.scrollLeft,v=i.scrollWidth,_=i.scrollHeight,y=0,b=0,x=0;w&&!1!==o.force3D?(l="translate3d(",c="px,0px)"):O&&(l="translate(",c="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-m,n=p;if((2n.bottom-Q&&u?(Z=!0,s=Math.min(u,c*(1-Math.max(0,n.bottom-o)/Q)|0)):on.right-$&&u?(Z=!0,a=Math.min(u,c*(1-Math.max(0,n.right-i)/$)|0)):iG?(W.y=o,c+(v-o)*u):c):(I&&(s=e*I[0]+t*I[2]+I[4],t=e*I[1]+t*I[3]+I[5],e=s),(n=t-m)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=c+r*u,o=v+n*u),(k||E||A)&&(W.x!==i||W.y!==o&&!U)?(A&&(qe.x=i,qe.y=o,i=(s=A(qe)).x,o=s.y),k&&(i=k(i)),E&&(o=E(o))):_&&(bo._gsMaxScrollY&&(o.scrollTop=o._gsMaxScrollY),H&&o.scrollLeft>o._gsMaxScrollX&&(o.scrollLeft=o._gsMaxScrollX),i=o;W.isThrowing&&(n||W.endX>b||W.endXw||W.endYa.right||s.righta.bottom||s.bottom=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;",mt},!0)}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(e){"use strict";var t=function(){return(_gsScope.GreenSockGlobals||_gsScope).GSDevTools};"undefined"!=typeof module&&module.exports?(require("../TweenLite.js"),require("../TimelineLite.js"),require("../plugins/CSSPlugin.js"),module.exports=t()):"function"==typeof define&&define.amd&&define(["TweenLite","TimelineLite","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 l=new h(0===a||1===a?0:i,0===a||3===a?0:o,0).transformBy(t);l.x= 2.1.2 < 3" + } + }, + "ignore-walk": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimatch": "^3.0.4" + } + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "bundled": true, + "dev": true, + "optional": true + }, + "ini": { + "version": "1.3.5", + "bundled": true, + "dev": true, + "optional": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "isarray": { + "version": "1.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "minimatch": { + "version": "3.0.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minimist": { + "version": "0.0.8", + "bundled": true, + "dev": true, + "optional": true + }, + "minipass": { + "version": "2.3.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "^5.1.2", + "yallist": "^3.0.0" + } + }, + "minizlib": { + "version": "1.2.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minipass": "^2.2.1" + } + }, + "mkdirp": { + "version": "0.5.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "minimist": "0.0.8" + } + }, + "ms": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "needle": { + "version": "2.2.4", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" + } + }, + "node-pre-gyp": { + "version": "0.10.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.1", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.2.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" + } + }, + "nopt": { + "version": "4.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "abbrev": "1", + "osenv": "^0.1.4" + } + }, + "npm-bundled": { + "version": "1.0.5", + "bundled": true, + "dev": true, + "optional": true + }, + "npm-packlist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" + } + }, + "npmlog": { + "version": "4.1.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" + } + }, + "number-is-nan": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "object-assign": { + "version": "4.1.1", + "bundled": true, + "dev": true, + "optional": true + }, + "once": { + "version": "1.4.0", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "wrappy": "1" + } + }, + "os-homedir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "os-tmpdir": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "osenv": { + "version": "0.1.5", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "process-nextick-args": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "rc": { + "version": "1.2.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "dependencies": { + "minimist": { + "version": "1.2.0", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "readable-stream": { + "version": "2.3.6", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "rimraf": { + "version": "2.6.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "glob": "^7.1.3" + } + }, + "safe-buffer": { + "version": "5.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "dev": true, + "optional": true + }, + "sax": { + "version": "1.2.4", + "bundled": true, + "dev": true, + "optional": true + }, + "semver": { + "version": "5.6.0", + "bundled": true, + "dev": true, + "optional": true + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true, + "dev": true, + "optional": true + }, + "signal-exit": { + "version": "3.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "string-width": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-json-comments": { + "version": "2.0.1", + "bundled": true, + "dev": true, + "optional": true + }, + "tar": { + "version": "4.4.8", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "chownr": "^1.1.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.3.4", + "minizlib": "^1.1.1", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.2", + "yallist": "^3.0.2" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "wide-align": { + "version": "1.1.3", + "bundled": true, + "dev": true, + "optional": true, + "requires": { + "string-width": "^1.0.2 || 2" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true, + "dev": true, + "optional": true + }, + "yallist": { + "version": "3.0.3", + "bundled": true, + "dev": true, + "optional": true + } + } + }, + "function-bind": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", + "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "dev": true + }, + "get-caller-file": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz", + "integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==", + "dev": true + }, + "get-value": { + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/get-value/-/get-value-2.0.6.tgz", + "integrity": "sha1-3BXKHGcjh8p2vTesCjlbogQqLCg=", + "dev": true + }, + "glob": { + "version": "7.1.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.3.tgz", + "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", + "dev": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "glob-parent": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-3.1.0.tgz", + "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", + "dev": true, + "requires": { + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" + }, + "dependencies": { + "is-glob": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-3.1.0.tgz", + "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", + "dev": true, + "requires": { + "is-extglob": "^2.1.0" + } + } + } + }, + "glob-stream": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/glob-stream/-/glob-stream-6.1.0.tgz", + "integrity": "sha1-cEXJlBOz65SIjYOrRtC0BMx73eQ=", + "dev": true, + "requires": { + "extend": "^3.0.0", + "glob": "^7.1.1", + "glob-parent": "^3.1.0", + "is-negated-glob": "^1.0.0", + "ordered-read-streams": "^1.0.0", + "pumpify": "^1.3.5", + "readable-stream": "^2.1.5", + "remove-trailing-separator": "^1.0.1", + "to-absolute-glob": "^2.0.0", + "unique-stream": "^2.0.2" + } + }, + "glob-watcher": { + "version": "5.0.3", + "resolved": "https://registry.npmjs.org/glob-watcher/-/glob-watcher-5.0.3.tgz", + "integrity": "sha512-8tWsULNEPHKQ2MR4zXuzSmqbdyV5PtwwCaWSGQ1WwHsJ07ilNeN1JB8ntxhckbnpSHaf9dXFUHzIWvm1I13dsg==", + "dev": true, + "requires": { + "anymatch": "^2.0.0", + "async-done": "^1.2.0", + "chokidar": "^2.0.0", + "is-negated-glob": "^1.0.0", + "just-debounce": "^1.0.0", + "object.defaults": "^1.1.0" + } + }, + "global-modules": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/global-modules/-/global-modules-1.0.0.tgz", + "integrity": "sha512-sKzpEkf11GpOFuw0Zzjzmt4B4UZwjOcG757PPvrfhxcLFbq0wpsgpOqxpxtxFiCG4DtG93M6XRVbF2oGdev7bg==", + "dev": true, + "requires": { + "global-prefix": "^1.0.1", + "is-windows": "^1.0.1", + "resolve-dir": "^1.0.0" + } + }, + "global-prefix": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/global-prefix/-/global-prefix-1.0.2.tgz", + "integrity": "sha1-2/dDxsFJklk8ZVVoy2btMsASLr4=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.2", + "homedir-polyfill": "^1.0.1", + "ini": "^1.3.4", + "is-windows": "^1.0.1", + "which": "^1.2.14" + } + }, + "glogg": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/glogg/-/glogg-1.0.2.tgz", + "integrity": "sha512-5mwUoSuBk44Y4EshyiqcH95ZntbDdTQqA3QYSrxmzj28Ai0vXBGMH1ApSANH14j2sIRtqCEyg6PfsuP7ElOEDA==", + "dev": true, + "requires": { + "sparkles": "^1.0.0" + } + }, + "graceful-fs": { + "version": "4.1.15", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.1.15.tgz", + "integrity": "sha512-6uHUhOPEBgQ24HM+r6b/QwWfZq+yiFcipKFrOFiBEnWdy5sdzYoi+pJeQaPI5qOLRFqWmAXUPQNsielzdLoecA==", + "dev": true + }, + "gulp": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/gulp/-/gulp-4.0.0.tgz", + "integrity": "sha1-lXZsYB2t5Kd+0+eyttwDiBtZY2Y=", + "dev": true, + "requires": { + "glob-watcher": "^5.0.0", + "gulp-cli": "^2.0.0", + "undertaker": "^1.0.0", + "vinyl-fs": "^3.0.0" + }, + "dependencies": { + "gulp-cli": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/gulp-cli/-/gulp-cli-2.0.1.tgz", + "integrity": "sha512-RxujJJdN8/O6IW2nPugl7YazhmrIEjmiVfPKrWt68r71UCaLKS71Hp0gpKT+F6qOUFtr7KqtifDKaAJPRVvMYQ==", + "dev": true, + "requires": { + "ansi-colors": "^1.0.1", + "archy": "^1.0.0", + "array-sort": "^1.0.0", + "color-support": "^1.1.3", + "concat-stream": "^1.6.0", + "copy-props": "^2.0.1", + "fancy-log": "^1.3.2", + "gulplog": "^1.0.0", + "interpret": "^1.1.0", + "isobject": "^3.0.1", + "liftoff": "^2.5.0", + "matchdep": "^2.0.0", + "mute-stdout": "^1.0.0", + "pretty-hrtime": "^1.0.0", + "replace-homedir": "^1.0.0", + "semver-greatest-satisfied-range": "^1.1.0", + "v8flags": "^3.0.1", + "yargs": "^7.1.0" + } + } + } + }, + "gulp-rename": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-1.4.0.tgz", + "integrity": "sha512-swzbIGb/arEoFK89tPY58vg3Ok1bw+d35PfUNwWqdo7KM4jkmuGA78JiDNqR+JeZFaeeHnRg9N7aihX3YPmsyg==", + "dev": true + }, + "gulp-uglify": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/gulp-uglify/-/gulp-uglify-3.0.2.tgz", + "integrity": "sha512-gk1dhB74AkV2kzqPMQBLA3jPoIAPd/nlNzP2XMDSG8XZrqnlCiDGAqC+rZOumzFvB5zOphlFh6yr3lgcAb/OOg==", + "dev": true, + "requires": { + "array-each": "^1.0.1", + "extend-shallow": "^3.0.2", + "gulplog": "^1.0.0", + "has-gulplog": "^0.1.0", + "isobject": "^3.0.1", + "make-error-cause": "^1.1.1", + "safe-buffer": "^5.1.2", + "through2": "^2.0.0", + "uglify-js": "^3.0.5", + "vinyl-sourcemaps-apply": "^0.2.0" + } + }, + "gulplog": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz", + "integrity": "sha1-4oxNRdBey77YGDY86PnFkmIp/+U=", + "dev": true, + "requires": { + "glogg": "^1.0.0" + } + }, + "has-gulplog": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/has-gulplog/-/has-gulplog-0.1.0.tgz", + "integrity": "sha1-ZBTIKRNpfaUVkDl9r7EvIpZ4Ec4=", + "dev": true, + "requires": { + "sparkles": "^1.0.0" + } + }, + "has-symbols": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.0.tgz", + "integrity": "sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q=", + "dev": true + }, + "has-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-1.0.0.tgz", + "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", + "dev": true, + "requires": { + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "has-values": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-1.0.0.tgz", + "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "kind-of": "^4.0.0" + }, + "dependencies": { + "kind-of": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-4.0.0.tgz", + "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "homedir-polyfill": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/homedir-polyfill/-/homedir-polyfill-1.0.3.tgz", + "integrity": "sha512-eSmmWE5bZTK2Nou4g0AI3zZ9rswp7GRKoKXS1BLUkvPviOqs4YTN1djQIqrXy9k5gEtdLPy86JjRwsNM9tnDcA==", + "dev": true, + "requires": { + "parse-passwd": "^1.0.0" + } + }, + "hosted-git-info": { + "version": "2.7.1", + "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.7.1.tgz", + "integrity": "sha512-7T/BxH19zbcCTa8XkMlbK5lTo1WtgkFi3GvdWEyNuc4Vex7/9Dqbnpsf4JMydcfj9HCg4zUWFTL3Za6lapg5/w==", + "dev": true + }, + "inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", + "dev": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", + "dev": true + }, + "ini": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", + "dev": true + }, + "interpret": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/interpret/-/interpret-1.2.0.tgz", + "integrity": "sha512-mT34yGKMNceBQUoVn7iCDKDntA7SC6gycMAWzGx1z/CMCTV7b2AAtXlo3nRyHZ1FelRkQbQjprHSYGwzLtkVbw==", + "dev": true + }, + "invert-kv": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz", + "integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=", + "dev": true + }, + "is-absolute": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-absolute/-/is-absolute-1.0.0.tgz", + "integrity": "sha512-dOWoqflvcydARa360Gvv18DZ/gRuHKi2NU/wU5X1ZFzdYfH29nkiNZsF3mp4OJ3H4yo9Mx8A/uAGNzpzPN3yBA==", + "dev": true, + "requires": { + "is-relative": "^1.0.0", + "is-windows": "^1.0.1" + } + }, + "is-accessor-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", + "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", + "dev": true + }, + "is-binary-path": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-1.0.1.tgz", + "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", + "dev": true, + "requires": { + "binary-extensions": "^1.0.0" + } + }, + "is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", + "dev": true + }, + "is-data-descriptor": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-0.1.4.tgz", + "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-descriptor": { + "version": "0.1.6", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-0.1.6.tgz", + "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" + }, + "dependencies": { + "kind-of": { + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-5.1.0.tgz", + "integrity": "sha512-NGEErnH6F2vUuXDh+OlbcKW7/wOcfdRHaZ7VWtqCztfHri/++YKmP51OdWeGPuqCOba6kk2OTe5d02VmTB80Pw==", + "dev": true + } + } + }, + "is-extendable": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-0.1.1.tgz", + "integrity": "sha1-YrEQ4omkcUGOPsNqYX1HLjAd/Ik=", + "dev": true + }, + "is-extglob": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", + "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", + "dev": true + }, + "is-fullwidth-code-point": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", + "dev": true, + "requires": { + "number-is-nan": "^1.0.0" + } + }, + "is-glob": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.0.tgz", + "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", + "dev": true, + "requires": { + "is-extglob": "^2.1.1" + } + }, + "is-negated-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-negated-glob/-/is-negated-glob-1.0.0.tgz", + "integrity": "sha1-aRC8pdqMleeEtXUbl2z1oQ/uNtI=", + "dev": true + }, + "is-number": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-3.0.0.tgz", + "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "is-relative": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-relative/-/is-relative-1.0.0.tgz", + "integrity": "sha512-Kw/ReK0iqwKeu0MITLFuj0jbPAmEiOsIwyIXvvbfa6QfmN9pkD1M+8pdk7Rl/dTKbH34/XBFMbgD4iMJhLQbGA==", + "dev": true, + "requires": { + "is-unc-path": "^1.0.0" + } + }, + "is-unc-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-unc-path/-/is-unc-path-1.0.0.tgz", + "integrity": "sha512-mrGpVd0fs7WWLfVsStvgF6iEJnbjDFZh9/emhRDcGWTduTfNHd9CHeUwH3gYIjdbwo4On6hunkztwOaAw0yllQ==", + "dev": true, + "requires": { + "unc-path-regex": "^0.1.2" + } + }, + "is-utf8": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-utf8/-/is-utf8-0.2.1.tgz", + "integrity": "sha1-Sw2hRCEE0bM2NA6AeX6GXPOffXI=", + "dev": true + }, + "is-valid-glob": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-valid-glob/-/is-valid-glob-1.0.0.tgz", + "integrity": "sha1-Kb8+/3Ab4tTTFdusw5vDn+j2Aao=", + "dev": true + }, + "is-windows": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-windows/-/is-windows-1.0.2.tgz", + "integrity": "sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA==", + "dev": true + }, + "isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", + "dev": true + }, + "isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "dev": true + }, + "isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha1-TkMekrEalzFjaqH5yNHMvP2reN8=", + "dev": true + }, + "json-stable-stringify-without-jsonify": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz", + "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", + "dev": true + }, + "just-debounce": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/just-debounce/-/just-debounce-1.0.0.tgz", + "integrity": "sha1-h/zPrv/AtozRnVX2cilD+SnqNeo=", + "dev": true + }, + "kind-of": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.2.tgz", + "integrity": "sha512-s5kLOcnH0XqDO+FvuaLX8DDjZ18CGFk7VygH40QoKPUQhW4e2rvM0rwUq0t8IQDOwYSeLK01U90OjzBTme2QqA==", + "dev": true + }, + "last-run": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/last-run/-/last-run-1.1.1.tgz", + "integrity": "sha1-RblpQsF7HHnHchmCWbqUO+v4yls=", + "dev": true, + "requires": { + "default-resolution": "^2.0.0", + "es6-weak-map": "^2.0.1" + } + }, + "lazystream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lazystream/-/lazystream-1.0.0.tgz", + "integrity": "sha1-9plf4PggOS9hOWvolGJAe7dxaOQ=", + "dev": true, + "requires": { + "readable-stream": "^2.0.5" + } + }, + "lcid": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz", + "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", + "dev": true, + "requires": { + "invert-kv": "^1.0.0" + } + }, + "lead": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/lead/-/lead-1.0.0.tgz", + "integrity": "sha1-bxT5mje+Op3XhPVJVpDlkDRm7kI=", + "dev": true, + "requires": { + "flush-write-stream": "^1.0.2" + } + }, + "liftoff": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/liftoff/-/liftoff-2.5.0.tgz", + "integrity": "sha1-IAkpG7Mc6oYbvxCnwVooyvdcMew=", + "dev": true, + "requires": { + "extend": "^3.0.0", + "findup-sync": "^2.0.0", + "fined": "^1.0.1", + "flagged-respawn": "^1.0.0", + "is-plain-object": "^2.0.4", + "object.map": "^1.0.0", + "rechoir": "^0.6.2", + "resolve": "^1.1.7" + } + }, + "load-json-file": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-1.1.0.tgz", + "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" + } + }, + "make-error": { + "version": "1.3.5", + "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.5.tgz", + "integrity": "sha512-c3sIjNUow0+8swNwVpqoH4YCShKNFkMaw6oH1mNS2haDZQqkeZFlHS3dhoeEbKKmJB4vXpJucU6oH75aDYeE9g==", + "dev": true + }, + "make-error-cause": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/make-error-cause/-/make-error-cause-1.2.2.tgz", + "integrity": "sha1-3wOI/NCzeBbf8KX7gQiTl3fcvJ0=", + "dev": true, + "requires": { + "make-error": "^1.2.0" + } + }, + "make-iterator": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/make-iterator/-/make-iterator-1.0.1.tgz", + "integrity": "sha512-pxiuXh0iVEq7VM7KMIhs5gxsfxCux2URptUQaXo4iZZJxBAzTPOLE2BumO5dbfVYq/hBJFBR/a1mFDmOx5AGmw==", + "dev": true, + "requires": { + "kind-of": "^6.0.2" + } + }, + "map-cache": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/map-cache/-/map-cache-0.2.2.tgz", + "integrity": "sha1-wyq9C9ZSXZsFFkW7TyasXcmKDb8=", + "dev": true + }, + "map-visit": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/map-visit/-/map-visit-1.0.0.tgz", + "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", + "dev": true, + "requires": { + "object-visit": "^1.0.0" + } + }, + "matchdep": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/matchdep/-/matchdep-2.0.0.tgz", + "integrity": "sha1-xvNINKDY28OzfCfui7yyfHd1WC4=", + "dev": true, + "requires": { + "findup-sync": "^2.0.0", + "micromatch": "^3.0.4", + "resolve": "^1.4.0", + "stack-trace": "0.0.10" + } + }, + "micromatch": { + "version": "3.1.10", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-3.1.10.tgz", + "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" + } + }, + "minimatch": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", + "dev": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "mixin-deep": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/mixin-deep/-/mixin-deep-1.3.1.tgz", + "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", + "dev": true, + "requires": { + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" + }, + "dependencies": { + "is-extendable": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-extendable/-/is-extendable-1.0.1.tgz", + "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", + "dev": true, + "requires": { + "is-plain-object": "^2.0.4" + } + } + } + }, + "ms": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", + "dev": true + }, + "mute-stdout": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/mute-stdout/-/mute-stdout-1.0.1.tgz", + "integrity": "sha512-kDcwXR4PS7caBpuRYYBUz9iVixUk3anO3f5OYFiIPwK/20vCzKCHyKoulbiDY1S53zD2bxUpxN/IJ+TnXjfvxg==", + "dev": true + }, + "nan": { + "version": "2.13.1", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.13.1.tgz", + "integrity": "sha512-I6YB/YEuDeUZMmhscXKxGgZlFnhsn5y0hgOZBadkzfTRrZBtJDZeg6eQf7PYMIEclwmorTKK8GztsyOUSVBREA==", + "dev": true, + "optional": true + }, + "nanomatch": { + "version": "1.2.13", + "resolved": "https://registry.npmjs.org/nanomatch/-/nanomatch-1.2.13.tgz", + "integrity": "sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA==", + "dev": true, + "requires": { + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" + } + }, + "next-tick": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.0.0.tgz", + "integrity": "sha1-yobR/ogoFpsBICCOPchCS524NCw=", + "dev": true + }, + "normalize-package-data": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", + "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", + "dev": true, + "requires": { + "hosted-git-info": "^2.1.4", + "resolve": "^1.10.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" + } + }, + "normalize-path": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", + "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", + "dev": true, + "requires": { + "remove-trailing-separator": "^1.0.1" + } + }, + "now-and-later": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/now-and-later/-/now-and-later-2.0.0.tgz", + "integrity": "sha1-vGHLtFbXnLMiB85HygUTb/Ln1u4=", + "dev": true, + "requires": { + "once": "^1.3.2" + } + }, + "number-is-nan": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", + "dev": true + }, + "object-copy": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/object-copy/-/object-copy-0.1.0.tgz", + "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", + "dev": true, + "requires": { + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "object-keys": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.0.tgz", + "integrity": "sha512-6OO5X1+2tYkNyNEx6TsCxEqFfRWaqx6EtMiSbGrw8Ob8v9Ne+Hl8rBAgLBZn5wjEz3s/s6U1WXFUFOcxxAwUpg==", + "dev": true + }, + "object-visit": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object-visit/-/object-visit-1.0.1.tgz", + "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", + "dev": true, + "requires": { + "isobject": "^3.0.0" + } + }, + "object.assign": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/object.assign/-/object.assign-4.1.0.tgz", + "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", + "dev": true, + "requires": { + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" + } + }, + "object.defaults": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/object.defaults/-/object.defaults-1.1.0.tgz", + "integrity": "sha1-On+GgzS0B96gbaFtiNXNKeQ1/s8=", + "dev": true, + "requires": { + "array-each": "^1.0.1", + "array-slice": "^1.0.0", + "for-own": "^1.0.0", + "isobject": "^3.0.0" + } + }, + "object.map": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.map/-/object.map-1.0.1.tgz", + "integrity": "sha1-z4Plncj8wK1fQlDh94s7gb2AHTc=", + "dev": true, + "requires": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + } + }, + "object.pick": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/object.pick/-/object.pick-1.3.0.tgz", + "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", + "dev": true, + "requires": { + "isobject": "^3.0.1" + } + }, + "object.reduce": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/object.reduce/-/object.reduce-1.0.1.tgz", + "integrity": "sha1-b+NI8qx/oPlcpiEiZZkJaCW7A60=", + "dev": true, + "requires": { + "for-own": "^1.0.0", + "make-iterator": "^1.0.0" + } + }, + "once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", + "dev": true, + "requires": { + "wrappy": "1" + } + }, + "ordered-read-streams": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz", + "integrity": "sha1-d8DLN8QVJdZBZtmQ/61+xqDhNj4=", + "dev": true, + "requires": { + "readable-stream": "^2.0.1" + } + }, + "os-locale": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/os-locale/-/os-locale-1.4.0.tgz", + "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", + "dev": true, + "requires": { + "lcid": "^1.0.0" + } + }, + "parse-filepath": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/parse-filepath/-/parse-filepath-1.0.2.tgz", + "integrity": "sha1-pjISf1Oq89FYdvWHLz/6x2PWyJE=", + "dev": true, + "requires": { + "is-absolute": "^1.0.0", + "map-cache": "^0.2.0", + "path-root": "^0.1.1" + } + }, + "parse-json": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-2.2.0.tgz", + "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", + "dev": true, + "requires": { + "error-ex": "^1.2.0" + } + }, + "parse-node-version": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/parse-node-version/-/parse-node-version-1.0.1.tgz", + "integrity": "sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA==", + "dev": true + }, + "parse-passwd": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/parse-passwd/-/parse-passwd-1.0.0.tgz", + "integrity": "sha1-bVuTSkVpk7I9N/QKOC1vFmao5cY=", + "dev": true + }, + "pascalcase": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/pascalcase/-/pascalcase-0.1.1.tgz", + "integrity": "sha1-s2PlXoAGym/iF4TS2yK9FdeRfxQ=", + "dev": true + }, + "path-dirname": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/path-dirname/-/path-dirname-1.0.2.tgz", + "integrity": "sha1-zDPSTVJeCZpTiMAzbG4yuRYGCeA=", + "dev": true + }, + "path-exists": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-2.1.0.tgz", + "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", + "dev": true, + "requires": { + "pinkie-promise": "^2.0.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", + "dev": true + }, + "path-parse": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", + "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", + "dev": true + }, + "path-root": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/path-root/-/path-root-0.1.1.tgz", + "integrity": "sha1-mkpoFMrBwM1zNgqV8yCDyOpHRbc=", + "dev": true, + "requires": { + "path-root-regex": "^0.1.0" + } + }, + "path-root-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/path-root-regex/-/path-root-regex-0.1.2.tgz", + "integrity": "sha1-v8zcjfWxLcUsi0PsONGNcsBLqW0=", + "dev": true + }, + "path-type": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-1.1.0.tgz", + "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", + "dev": true, + "requires": { + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" + } + }, + "pify": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz", + "integrity": "sha1-7RQaasBDqEnqWISY59yosVMw6Qw=", + "dev": true + }, + "pinkie": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/pinkie/-/pinkie-2.0.4.tgz", + "integrity": "sha1-clVrgM+g1IqXToDnckjoDtT3+HA=", + "dev": true + }, + "pinkie-promise": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pinkie-promise/-/pinkie-promise-2.0.1.tgz", + "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", + "dev": true, + "requires": { + "pinkie": "^2.0.0" + } + }, + "posix-character-classes": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/posix-character-classes/-/posix-character-classes-0.1.1.tgz", + "integrity": "sha1-AerA/jta9xoqbAL+q7jB/vfgDqs=", + "dev": true + }, + "pretty-hrtime": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/pretty-hrtime/-/pretty-hrtime-1.0.3.tgz", + "integrity": "sha1-t+PqQkNaTJsnWdmeDyAesZWALuE=", + "dev": true + }, + "process-nextick-args": { + "version": "1.0.7", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-1.0.7.tgz", + "integrity": "sha1-FQ4gt1ZZCtP5EJPyWk8q2L/zC6M=", + "dev": true + }, + "pump": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/pump/-/pump-2.0.1.tgz", + "integrity": "sha512-ruPMNRkN3MHP1cWJc9OWr+T/xDP0jhXYCLfJcBuX54hhfIBnaQmAUMfDcG4DM5UMWByBbJY69QSphm3jtDKIkA==", + "dev": true, + "requires": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "pumpify": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/pumpify/-/pumpify-1.5.1.tgz", + "integrity": "sha512-oClZI37HvuUJJxSKKrC17bZ9Cu0ZYhEAGPsPUy9KlMUmv9dKX2o77RUmq7f3XjIxbwyGwYzbzQ1L2Ks8sIradQ==", + "dev": true, + "requires": { + "duplexify": "^3.6.0", + "inherits": "^2.0.3", + "pump": "^2.0.0" + } + }, + "read-pkg": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-1.1.0.tgz", + "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", + "dev": true, + "requires": { + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" + } + }, + "read-pkg-up": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/read-pkg-up/-/read-pkg-up-1.0.1.tgz", + "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", + "dev": true, + "requires": { + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" + } + }, + "readable-stream": { + "version": "2.3.6", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", + "dev": true, + "requires": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + }, + "dependencies": { + "process-nextick-args": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", + "dev": true + } + } + }, + "readdirp": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-2.2.1.tgz", + "integrity": "sha512-1JU/8q+VgFZyxwrJ+SVIOsh+KywWGpds3NTqikiKpDMZWScmAYyKIgqkO+ARvNWJfXeXR1zxz7aHF4u4CyH6vQ==", + "dev": true, + "requires": { + "graceful-fs": "^4.1.11", + "micromatch": "^3.1.10", + "readable-stream": "^2.0.2" + } + }, + "rechoir": { + "version": "0.6.2", + "resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.6.2.tgz", + "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", + "dev": true, + "requires": { + "resolve": "^1.1.6" + } + }, + "regex-not": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/regex-not/-/regex-not-1.0.2.tgz", + "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" + } + }, + "remove-bom-buffer": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/remove-bom-buffer/-/remove-bom-buffer-3.0.0.tgz", + "integrity": "sha512-8v2rWhaakv18qcvNeli2mZ/TMTL2nEyAKRvzo1WtnZBl15SHyEhrCu2/xKlJyUFKHiHgfXIyuY6g2dObJJycXQ==", + "dev": true, + "requires": { + "is-buffer": "^1.1.5", + "is-utf8": "^0.2.1" + } + }, + "remove-bom-stream": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/remove-bom-stream/-/remove-bom-stream-1.2.0.tgz", + "integrity": "sha1-BfGlk/FuQuH7kOv1nejlaVJflSM=", + "dev": true, + "requires": { + "remove-bom-buffer": "^3.0.0", + "safe-buffer": "^5.1.0", + "through2": "^2.0.3" + } + }, + "remove-trailing-separator": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/remove-trailing-separator/-/remove-trailing-separator-1.1.0.tgz", + "integrity": "sha1-wkvOKig62tW8P1jg1IJJuSN52O8=", + "dev": true + }, + "repeat-element": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/repeat-element/-/repeat-element-1.1.3.tgz", + "integrity": "sha512-ahGq0ZnV5m5XtZLMb+vP76kcAM5nkLqk0lpqAuojSKGgQtn4eRi4ZZGm2olo2zKFH+sMsWaqOCW1dqAnOru72g==", + "dev": true + }, + "repeat-string": { + "version": "1.6.1", + "resolved": "https://registry.npmjs.org/repeat-string/-/repeat-string-1.6.1.tgz", + "integrity": "sha1-jcrkcOHIirwtYA//Sndihtp15jc=", + "dev": true + }, + "replace-ext": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-ext/-/replace-ext-1.0.0.tgz", + "integrity": "sha1-3mMSg3P8v3w8z6TeWkgMRaZ5WOs=", + "dev": true + }, + "replace-homedir": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/replace-homedir/-/replace-homedir-1.0.0.tgz", + "integrity": "sha1-6H9tUTuSjd6AgmDBK+f+xv9ueYw=", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1", + "is-absolute": "^1.0.0", + "remove-trailing-separator": "^1.1.0" + } + }, + "require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "dev": true + }, + "require-main-filename": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz", + "integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=", + "dev": true + }, + "resolve": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.10.0.tgz", + "integrity": "sha512-3sUr9aq5OfSg2S9pNtPA9hL1FVEAjvfOC4leW0SNf/mpnaakz2a9femSd6LqAww2RaFctwyf1lCqnTHuF1rxDg==", + "dev": true, + "requires": { + "path-parse": "^1.0.6" + } + }, + "resolve-dir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/resolve-dir/-/resolve-dir-1.0.1.tgz", + "integrity": "sha1-eaQGRMNivoLybv/nOcm7U4IEb0M=", + "dev": true, + "requires": { + "expand-tilde": "^2.0.0", + "global-modules": "^1.0.0" + } + }, + "resolve-options": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz", + "integrity": "sha1-MrueOcBtZzONyTeMDW1gdFZq0TE=", + "dev": true, + "requires": { + "value-or-function": "^3.0.0" + } + }, + "resolve-url": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/resolve-url/-/resolve-url-0.2.1.tgz", + "integrity": "sha1-LGN/53yJOv0qZj/iGqkIAGjiBSo=", + "dev": true + }, + "ret": { + "version": "0.1.15", + "resolved": "https://registry.npmjs.org/ret/-/ret-0.1.15.tgz", + "integrity": "sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg==", + "dev": true + }, + "safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", + "dev": true + }, + "safe-regex": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/safe-regex/-/safe-regex-1.1.0.tgz", + "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", + "dev": true, + "requires": { + "ret": "~0.1.10" + } + }, + "semver": { + "version": "5.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.6.0.tgz", + "integrity": "sha512-RS9R6R35NYgQn++fkDWaOmqGoj4Ek9gGs+DPxNUZKuwE183xjJroKvyo1IzVFeXvUrvmALy6FWD5xrdJT25gMg==", + "dev": true + }, + "semver-greatest-satisfied-range": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz", + "integrity": "sha1-E+jCZYq5aRywzXEJMkAoDTb3els=", + "dev": true, + "requires": { + "sver-compat": "^1.5.0" + } + }, + "set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", + "dev": true + }, + "set-value": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-2.0.0.tgz", + "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "snapdragon": { + "version": "0.8.2", + "resolved": "https://registry.npmjs.org/snapdragon/-/snapdragon-0.8.2.tgz", + "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", + "dev": true, + "requires": { + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + }, + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + } + } + }, + "snapdragon-node": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/snapdragon-node/-/snapdragon-node-2.1.1.tgz", + "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", + "dev": true, + "requires": { + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" + }, + "dependencies": { + "define-property": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-1.0.0.tgz", + "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", + "dev": true, + "requires": { + "is-descriptor": "^1.0.0" + } + }, + "is-accessor-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-1.0.0.tgz", + "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-data-descriptor": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-data-descriptor/-/is-data-descriptor-1.0.0.tgz", + "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", + "dev": true, + "requires": { + "kind-of": "^6.0.0" + } + }, + "is-descriptor": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/is-descriptor/-/is-descriptor-1.0.2.tgz", + "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", + "dev": true, + "requires": { + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" + } + } + } + }, + "snapdragon-util": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/snapdragon-util/-/snapdragon-util-3.0.1.tgz", + "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", + "dev": true, + "requires": { + "kind-of": "^3.2.0" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "source-map": { + "version": "0.5.7", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", + "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "dev": true + }, + "source-map-resolve": { + "version": "0.5.2", + "resolved": "https://registry.npmjs.org/source-map-resolve/-/source-map-resolve-0.5.2.tgz", + "integrity": "sha512-MjqsvNwyz1s0k81Goz/9vRBe9SZdB09Bdw+/zYyO+3CuPk6fouTaxscHkgtE8jKvf01kVfl8riHzERQ/kefaSA==", + "dev": true, + "requires": { + "atob": "^2.1.1", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" + } + }, + "source-map-url": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/source-map-url/-/source-map-url-0.4.0.tgz", + "integrity": "sha1-PpNdfd1zYxuXZZlW1VEo6HtQhKM=", + "dev": true + }, + "sparkles": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/sparkles/-/sparkles-1.0.1.tgz", + "integrity": "sha512-dSO0DDYUahUt/0/pD/Is3VIm5TGJjludZ0HVymmhYF6eNA53PVLhnUk0znSYbH8IYBuJdCE+1luR22jNLMaQdw==", + "dev": true + }, + "spdx-correct": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.0.tgz", + "integrity": "sha512-lr2EZCctC2BNR7j7WzJ2FpDznxky1sjfxvvYEyzxNyb6lZXHODmEoJeFu4JupYlkfha1KZpJyoqiJ7pgA1qq8Q==", + "dev": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.2.0.tgz", + "integrity": "sha512-2XQACfElKi9SlVb1CYadKDXvoajPgBVPn/gOQLrTvHdElaVhr7ZEbqJaRnJLVNeaI4cMEAgVCeBMKF6MWRDCRA==", + "dev": true + }, + "spdx-expression-parse": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.0.tgz", + "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", + "dev": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.3.tgz", + "integrity": "sha512-uBIcIl3Ih6Phe3XHK1NqboJLdGfwr1UN3k6wSD1dZpmPsIkb8AGNbZYJ1fOBk834+Gxy8rpfDxrS6XLEMZMY2g==", + "dev": true + }, + "split-string": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/split-string/-/split-string-3.1.0.tgz", + "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", + "dev": true, + "requires": { + "extend-shallow": "^3.0.0" + } + }, + "stack-trace": { + "version": "0.0.10", + "resolved": "https://registry.npmjs.org/stack-trace/-/stack-trace-0.0.10.tgz", + "integrity": "sha1-VHxws0fo0ytOEI6hoqFZ5f3eGcA=", + "dev": true + }, + "static-extend": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz", + "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", + "dev": true, + "requires": { + "define-property": "^0.2.5", + "object-copy": "^0.1.0" + }, + "dependencies": { + "define-property": { + "version": "0.2.5", + "resolved": "https://registry.npmjs.org/define-property/-/define-property-0.2.5.tgz", + "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", + "dev": true, + "requires": { + "is-descriptor": "^0.1.0" + } + } + } + }, + "stream-exhaust": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/stream-exhaust/-/stream-exhaust-1.0.2.tgz", + "integrity": "sha512-b/qaq/GlBK5xaq1yrK9/zFcyRSTNxmcZwFLGSTG0mXgZl/4Z6GgiyYOXOvY7N3eEvFRAG1bkDRz5EPGSvPYQlw==", + "dev": true + }, + "stream-shift": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", + "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", + "dev": true + }, + "string-width": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", + "dev": true, + "requires": { + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" + } + }, + "string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dev": true, + "requires": { + "safe-buffer": "~5.1.0" + } + }, + "strip-ansi": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", + "dev": true, + "requires": { + "ansi-regex": "^2.0.0" + } + }, + "strip-bom": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-2.0.0.tgz", + "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", + "dev": true, + "requires": { + "is-utf8": "^0.2.0" + } + }, + "sver-compat": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/sver-compat/-/sver-compat-1.5.0.tgz", + "integrity": "sha1-PPh9/rTQe0o/FIJ7wYaz/QxkXNg=", + "dev": true, + "requires": { + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" + } + }, + "through2": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", + "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", + "dev": true, + "requires": { + "readable-stream": "~2.3.6", + "xtend": "~4.0.1" + } + }, + "through2-filter": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/through2-filter/-/through2-filter-3.0.0.tgz", + "integrity": "sha512-jaRjI2WxN3W1V8/FMZ9HKIBXixtiqs3SQSX4/YGIiP3gL6djW48VoZq9tDqeCWs3MT8YY5wb/zli8VW8snY1CA==", + "dev": true, + "requires": { + "through2": "~2.0.0", + "xtend": "~4.0.0" + } + }, + "time-stamp": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/time-stamp/-/time-stamp-1.1.0.tgz", + "integrity": "sha1-dkpaEa9QVhkhsTPztE5hhofg9cM=", + "dev": true + }, + "to-absolute-glob": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/to-absolute-glob/-/to-absolute-glob-2.0.2.tgz", + "integrity": "sha1-GGX0PZ50sIItufFFt4z/fQ98hJs=", + "dev": true, + "requires": { + "is-absolute": "^1.0.0", + "is-negated-glob": "^1.0.0" + } + }, + "to-object-path": { + "version": "0.3.0", + "resolved": "https://registry.npmjs.org/to-object-path/-/to-object-path-0.3.0.tgz", + "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", + "dev": true, + "requires": { + "kind-of": "^3.0.2" + }, + "dependencies": { + "kind-of": { + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-3.2.2.tgz", + "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", + "dev": true, + "requires": { + "is-buffer": "^1.1.5" + } + } + } + }, + "to-regex": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/to-regex/-/to-regex-3.0.2.tgz", + "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", + "dev": true, + "requires": { + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" + } + }, + "to-regex-range": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-2.1.1.tgz", + "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", + "dev": true, + "requires": { + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" + } + }, + "to-through": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/to-through/-/to-through-2.0.0.tgz", + "integrity": "sha1-/JKtq6ByZHvAtn1rA2ZKoZUJOvY=", + "dev": true, + "requires": { + "through2": "^2.0.3" + } + }, + "typedarray": { + "version": "0.0.6", + "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", + "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", + "dev": true + }, + "uglify-js": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.5.1.tgz", + "integrity": "sha512-kI+3c+KphOAKIikQsZoT2oDsVYH5qvhpTtFObfMCdhPAYnjSvmW4oTWMhvDD4jtAGHJwztlBXQgozGcq3Xw9oQ==", + "dev": true, + "requires": { + "commander": "~2.19.0", + "source-map": "~0.6.1" + }, + "dependencies": { + "source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "dev": true + } + } + }, + "unc-path-regex": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/unc-path-regex/-/unc-path-regex-0.1.2.tgz", + "integrity": "sha1-5z3T17DXxe2G+6xrCufYxqadUPo=", + "dev": true + }, + "undertaker": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/undertaker/-/undertaker-1.2.0.tgz", + "integrity": "sha1-M52kZGJS0ILcN45wgGcpl1DhG0k=", + "dev": true, + "requires": { + "arr-flatten": "^1.0.1", + "arr-map": "^2.0.0", + "bach": "^1.0.0", + "collection-map": "^1.0.0", + "es6-weak-map": "^2.0.1", + "last-run": "^1.1.0", + "object.defaults": "^1.0.0", + "object.reduce": "^1.0.0", + "undertaker-registry": "^1.0.0" + } + }, + "undertaker-registry": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/undertaker-registry/-/undertaker-registry-1.0.1.tgz", + "integrity": "sha1-XkvaMI5KiirlhPm5pDWaSZglzFA=", + "dev": true + }, + "union-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/union-value/-/union-value-1.0.0.tgz", + "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", + "dev": true, + "requires": { + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" + }, + "dependencies": { + "extend-shallow": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/extend-shallow/-/extend-shallow-2.0.1.tgz", + "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", + "dev": true, + "requires": { + "is-extendable": "^0.1.0" + } + }, + "set-value": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz", + "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", + "dev": true, + "requires": { + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" + } + } + } + }, + "unique-stream": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/unique-stream/-/unique-stream-2.3.1.tgz", + "integrity": "sha512-2nY4TnBE70yoxHkDli7DMazpWiP7xMdCYqU2nBRO0UB+ZpEkGsSija7MvmvnZFUeC+mrgiUfcHSr3LmRFIg4+A==", + "dev": true, + "requires": { + "json-stable-stringify-without-jsonify": "^1.0.1", + "through2-filter": "^3.0.0" + } + }, + "unset-value": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/unset-value/-/unset-value-1.0.0.tgz", + "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", + "dev": true, + "requires": { + "has-value": "^0.3.1", + "isobject": "^3.0.0" + }, + "dependencies": { + "has-value": { + "version": "0.3.1", + "resolved": "https://registry.npmjs.org/has-value/-/has-value-0.3.1.tgz", + "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", + "dev": true, + "requires": { + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" + }, + "dependencies": { + "isobject": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-2.1.0.tgz", + "integrity": "sha1-8GVWEJaj8dou9GJy+BXIQNh+DIk=", + "dev": true, + "requires": { + "isarray": "1.0.0" + } + } + } + }, + "has-values": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/has-values/-/has-values-0.1.4.tgz", + "integrity": "sha1-bWHeldkd/Km5oCCJrThL/49it3E=", + "dev": true + } + } + }, + "upath": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/upath/-/upath-1.1.2.tgz", + "integrity": "sha512-kXpym8nmDmlCBr7nKdIx8P2jNBa+pBpIUFRnKJ4dr8htyYGJFokkr2ZvERRtUN+9SY+JqXouNgUPtv6JQva/2Q==", + "dev": true + }, + "urix": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/urix/-/urix-0.1.0.tgz", + "integrity": "sha1-2pN/emLiH+wf0Y1Js1wpNQZ6bHI=", + "dev": true + }, + "use": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/use/-/use-3.1.1.tgz", + "integrity": "sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ==", + "dev": true + }, + "util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", + "dev": true + }, + "v8flags": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/v8flags/-/v8flags-3.1.2.tgz", + "integrity": "sha512-MtivA7GF24yMPte9Rp/BWGCYQNaUj86zeYxV/x2RRJMKagImbbv3u8iJC57lNhWLPcGLJmHcHmFWkNsplbbLWw==", + "dev": true, + "requires": { + "homedir-polyfill": "^1.0.1" + } + }, + "validate-npm-package-license": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", + "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", + "dev": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "value-or-function": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/value-or-function/-/value-or-function-3.0.0.tgz", + "integrity": "sha1-HCQ6ULWVwb5Up1S/7OhWO5/42BM=", + "dev": true + }, + "vinyl": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/vinyl/-/vinyl-2.2.0.tgz", + "integrity": "sha512-MBH+yP0kC/GQ5GwBqrTPTzEfiiLjta7hTtvQtbxBgTeSXsmKQRQecjibMbxIXzVT3Y9KJK+drOz1/k+vsu8Nkg==", + "dev": true, + "requires": { + "clone": "^2.1.1", + "clone-buffer": "^1.0.0", + "clone-stats": "^1.0.0", + "cloneable-readable": "^1.0.0", + "remove-trailing-separator": "^1.0.1", + "replace-ext": "^1.0.0" + } + }, + "vinyl-fs": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-3.0.3.tgz", + "integrity": "sha512-vIu34EkyNyJxmP0jscNzWBSygh7VWhqun6RmqVfXePrOwi9lhvRs//dOaGOTRUQr4tx7/zd26Tk5WeSVZitgng==", + "dev": true, + "requires": { + "fs-mkdirp-stream": "^1.0.0", + "glob-stream": "^6.1.0", + "graceful-fs": "^4.0.0", + "is-valid-glob": "^1.0.0", + "lazystream": "^1.0.0", + "lead": "^1.0.0", + "object.assign": "^4.0.4", + "pumpify": "^1.3.5", + "readable-stream": "^2.3.3", + "remove-bom-buffer": "^3.0.0", + "remove-bom-stream": "^1.2.0", + "resolve-options": "^1.1.0", + "through2": "^2.0.0", + "to-through": "^2.0.0", + "value-or-function": "^3.0.0", + "vinyl": "^2.0.0", + "vinyl-sourcemap": "^1.1.0" + } + }, + "vinyl-sourcemap": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/vinyl-sourcemap/-/vinyl-sourcemap-1.1.0.tgz", + "integrity": "sha1-kqgAWTo4cDqM2xHYswCtS+Y7PhY=", + "dev": true, + "requires": { + "append-buffer": "^1.0.2", + "convert-source-map": "^1.5.0", + "graceful-fs": "^4.1.6", + "normalize-path": "^2.1.1", + "now-and-later": "^2.0.0", + "remove-bom-buffer": "^3.0.0", + "vinyl": "^2.0.0" + } + }, + "vinyl-sourcemaps-apply": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/vinyl-sourcemaps-apply/-/vinyl-sourcemaps-apply-0.2.1.tgz", + "integrity": "sha1-q2VJ1h0XLCsbh75cUI0jnI74dwU=", + "dev": true, + "requires": { + "source-map": "^0.5.1" + } + }, + "which": { + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz", + "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", + "dev": true, + "requires": { + "isexe": "^2.0.0" + } + }, + "which-module": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/which-module/-/which-module-1.0.0.tgz", + "integrity": "sha1-u6Y8qGGUiZT/MHc2CJ47lgJsKk8=", + "dev": true + }, + "wrap-ansi": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz", + "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", + "dev": true, + "requires": { + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" + } + }, + "wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", + "dev": true + }, + "xtend": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", + "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", + "dev": true + }, + "y18n": { + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.1.tgz", + "integrity": "sha1-bRX7qITAhnnA136I53WegR4H+kE=", + "dev": true + }, + "yargs": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-7.1.0.tgz", + "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", + "dev": true, + "requires": { + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.0" + } + }, + "yargs-parser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-5.0.0.tgz", + "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", + "dev": true, + "requires": { + "camelcase": "^3.0.0" + } + } + } } diff --git a/package.json b/package.json index a0583f2..91522c7 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,8 @@ "test": "echo \"Error: no test specified\" && exit 1", "build": "rollup --config ./rollup.config.js", "watch": "rollup --watch --config ./rollup.config.js", - "3rdparty": "python3 ./lib/3rdparty/create_all_js.py" + "3rdparty": "python3 ./lib/3rdparty/create_all_js.py", + "minify": "gulp" }, "repository": { "type": "git", @@ -18,5 +19,9 @@ }, "author": "", "license": "LGPL-3.0-or-later", - "devDependencies": {} + "devDependencies": { + "gulp": "^4.0.0", + "gulp-rename": "^1.4.0", + "gulp-uglify": "^3.0.2" + } }