text: !function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(o,r,function(t){return e[t]}.bind(null,r));return o},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=24)}([function(e,t,n){var o;
  /*!
   * jQuery JavaScript Library v3.3.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2018-01-20T17:24Z
   */
  /*!
   * jQuery JavaScript Library v3.3.1
   * https://jquery.com/
   *
   * Includes Sizzle.js
   * https://sizzlejs.com/
   *
   * Copyright JS Foundation and other contributors
   * Released under the MIT license
   * https://jquery.org/license
   *
   * Date: 2018-01-20T17:24Z
   */
  !function(t,n){"use strict";"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(n,r){"use strict";var i=[],s=n.document,a=Object.getPrototypeOf,l=i.slice,u=i.concat,c=i.push,d=i.indexOf,f={},p=f.toString,h=f.hasOwnProperty,g=h.toString,m=g.call(Object),v={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},b=function(e){return null!=e&&e===e.window},w={type:!0,src:!0,noModule:!0};function x(e,t,n){var o,r=(t=t||s).createElement("script");if(r.text=e,n)for(o in w)n[o]&&(r[o]=n[o]);t.head.appendChild(r).parentNode.removeChild(r)}function T(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[p.call(e)]||"object":typeof e}var C=function(e,t){return new C.fn.init(e,t)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=T(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return l.call(this)},get:function(e){return null==e?l.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(l.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},C.extend=C.fn.extend=function(){var e,t,n,o,r,i,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||y(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=s[t],s!==(o=e[t])&&(u&&o&&(C.isPlainObject(o)||(r=Array.isArray(o)))?(r?(r=!1,i=n&&Array.isArray(n)?n:[]):i=n&&C.isPlainObject(n)?n:{},s[t]=C.extend(u,i,o)):void 0!==o&&(s[t]=o));return s},C.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==p.call(e))&&(!(t=a(e))||"function"==typeof(n=h.call(t,"constructor")&&t.constructor)&&g.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){x(e)},each:function(e,t){var n,o=0;if(k(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},trim:function(e){return null==e?"":(e+"").replace(E,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?C.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:d.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,s=!n;r<i;r++)!t(e[r],r)!==s&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,s=[];if(k(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&s.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&s.push(r);return u.apply([],s)},guid:1,support:v}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=i[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()});var O=
  /*!
   * Sizzle CSS Selector Engine v2.3.3
   * https://sizzlejs.com/
   *
   * Copyright jQuery Foundation and other contributors
   * Released under the MIT license
   * http://jquery.org/license
   *
   * Date: 2016-08-08
   */
  	function(e){var t,n,o,r,i,s,a,l,u,c,d,f,p,h,g,m,v,y,b,w="sizzle"+1*new Date,x=e.document,T=0,C=0,E=se(),k=se(),O=se(),S=function(e,t){return e===t&&(d=!0),0},j={}.hasOwnProperty,N=[],L=N.pop,D=N.push,A=N.push,H=N.slice,M=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",q="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+I+"*("+q+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+q+"))|)"+I+"*\\]",_=":("+q+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",B=new RegExp(I+"+","g"),R=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),W=new RegExp("^"+I+"*,"+I+"*"),$=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),X=new RegExp("="+I+"*([^\\]'\"]*?)"+I+"*\\]","g"),U=new RegExp(_),Y=new RegExp("^"+q+"$"),z={ID:new RegExp("^#("+q+")"),CLASS:new RegExp("^\\.("+q+")"),TAG:new RegExp("^("+q+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+_),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+I+"?|("+I+")|.)","ig"),ee=function(e,t,n){var o="0x"+t-65536;return o!=o||n?t:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,1023&o|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){f()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{A.apply(N=H.call(x.childNodes),x.childNodes),N[x.childNodes.length].nodeType}catch(e){A={apply:N.length?function(e,t){D.apply(e,H.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function ie(e,t,o,r){var i,a,u,c,d,h,v,y=t&&t.ownerDocument,T=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==T&&9!==T&&11!==T)return o;if(!r&&((t?t.ownerDocument||t:x)!==p&&f(t),t=t||p,g)){if(11!==T&&(d=K.exec(e)))if(i=d[1]){if(9===T){if(!(u=t.getElementById(i)))return o;if(u.id===i)return o.push(u),o}else if(y&&(u=y.getElementById(i))&&b(t,u)&&u.id===i)return o.push(u),o}else{if(d[2])return A.apply(o,t.getElementsByTagName(e)),o;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return A.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!O[e+" "]&&(!m||!m.test(e))){if(1!==T)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((c=t.getAttribute("id"))?c=c.replace(te,ne):t.setAttribute("id",c=w),a=(h=s(e)).length;a--;)h[a]="#"+c+" "+ve(h[a]);v=h.join(","),y=Q.test(e)&&ge(t.parentNode)||t}if(v)try{return A.apply(o,y.querySelectorAll(v)),o}catch(e){}finally{c===w&&t.removeAttribute("id")}}}return l(e.replace(R,"$1"),t,o,r)}function se(){var e=[];return function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[w]=!0,e}function le(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ue(e,t){for(var n=e.split("|"),r=n.length;r--;)o.attrHandle[n[r]]=t}function ce(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function pe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return ae(function(t){return t=+t,ae(function(n,o){for(var r,i=e([],n.length,t),s=i.length;s--;)n[r=i[s]]&&(n[r]=!(o[r]=n[r]))})})}function ge(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ie.support={},i=ie.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},f=ie.setDocument=function(e){var t,r,s=e?e.ownerDocument||e:x;return s!==p&&9===s.nodeType&&s.documentElement?(h=(p=s).documentElement,g=!i(p),x!==p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",oe,!1):r.attachEvent&&r.attachEvent("onunload",oe)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(p.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=w,!p.getElementsByName||!p.getElementsByName(w).length}),n.getById?(o.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(p.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(n.matchesSelector=J.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",_)}),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(h.compareDocumentPosition),b=t||J.test(h.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},S=t?function(e,t){if(e===t)return d=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e===p||e.ownerDocument===x&&b(x,e)?-1:t===p||t.ownerDocument===x&&b(x,t)?1:c?M(c,e)-M(c,t):0:4&o?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,s=[e],a=[t];if(!r||!i)return e===p?-1:t===p?1:r?-1:i?1:c?M(c,e)-M(c,t):0;if(r===i)return ce(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[o]===a[o];)o++;return o?ce(s[o],a[o]):s[o]===x?-1:a[o]===x?1:0},p):p},ie.matches=function(e,t){return ie(e,null,null,t)},ie.matchesSelector=function(e,t){if((e.ownerDocument||e)!==p&&f(e),t=t.replace(X,"='$1']"),n.matchesSelector&&g&&!O[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var o=y.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){}return ie(t,p,null,[e]).length>0},ie.contains=function(e,t){return(e.ownerDocument||e)!==p&&f(e),b(e,t)},ie.attr=function(e,t){(e.ownerDocument||e)!==p&&f(e);var r=o.attrHandle[t.toLowerCase()],i=r&&j.call(o.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},ie.escape=function(e){return(e+"").replace(te,ne)},ie.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ie.uniqueSort=function(e){var t,o=[],r=0,i=0;if(d=!n.detectDuplicates,c=!n.sortStable&&e.slice(0),e.sort(S),d){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)e.splice(o[r],1)}return c=null,e},r=ie.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},(o=ie.selectors={cacheLength:50,createPseudo:ae,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,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]||ie.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]&&ie.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&U.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(o){var r=ie.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(B," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var u,c,d,f,p,h,g=i!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(i){for(;g;){for(f=t;f=f[g];)if(a?f.nodeName.toLowerCase()===v:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?m.firstChild:m.lastChild],s&&y){for(b=(p=(u=(c=(d=(f=m)[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&u[1])&&u[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(b=p=0)||h.pop();)if(1===f.nodeType&&++b&&f===t){c[e]=[T,p,b];break}}else if(y&&(b=p=(u=(c=(d=(f=t)[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===T&&u[1]),!1===b)for(;(f=++p&&f&&f[g]||(b=p=0)||h.pop())&&((a?f.nodeName.toLowerCase()!==v:1!==f.nodeType)||!++b||(y&&((c=(d=f[w]||(f[w]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[T,b]),f!==t)););return(b-=r)===o||b%o==0&&b/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||ie.error("unsupported pseudo: "+e);return r[w]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var o,i=r(e,t),s=i.length;s--;)e[o=M(e,i[s])]=!(n[o]=i[s])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ae(function(e){var t=[],n=[],o=a(e.replace(R,"$1"));return o[w]?ae(function(e,t,n,r){for(var i,s=o(e,null,r,[]),a=e.length;a--;)(i=s[a])&&(e[a]=!(t[a]=i))}):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return ie(e,t).length>0}}),contains:ae(function(e){return e=e.replace(Z,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ae(function(e){return Y.test(e||"")||ie.error("unsupported lang: "+e),e=e.replace(Z,ee).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:pe(!1),disabled:pe(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var o=n<0?n+t:n;--o>=0;)e.push(o);return e}),gt:he(function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e})}}).pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=fe(t);function me(){}function ve(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function ye(e,t,n){var o=t.dir,r=t.next,i=r||o,s=n&&"parentNode"===i,a=C++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var u,c,d,f=[T,a];if(l){for(;t=t[o];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||s)if(c=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((u=c[i])&&u[0]===T&&u[1]===a)return f[2]=u[2];if(c[i]=f,f[2]=e(t,n,l))return!0}return!1}}function be(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function we(e,t,n,o,r){for(var i,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(i=e[a])&&(n&&!n(i,o,r)||(s.push(i),u&&t.push(a)));return s}function xe(e,t,n,o,r,i){return o&&!o[w]&&(o=xe(o)),r&&!r[w]&&(r=xe(r,i)),ae(function(i,s,a,l){var u,c,d,f=[],p=[],h=s.length,g=i||function(e,t,n){for(var o=0,r=t.length;o<r;o++)ie(e,t[o],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!i&&t?g:we(g,f,e,a,l),v=n?r||(i?e:h||o)?[]:s:m;if(n&&n(m,v,a,l),o)for(u=we(v,p),o(u,[],a,l),c=u.length;c--;)(d=u[c])&&(v[p[c]]=!(m[p[c]]=d));if(i){if(r||e){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(m[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?M(i,d):f[c])>-1&&(i[u]=!(s[u]=d))}}else v=we(v===s?v.splice(h,v.length):v),r?r(null,s,v,l):A.apply(s,v)})}function Te(e){for(var t,n,r,i=e.length,s=o.relative[e[0].type],a=s||o.relative[" "],l=s?1:0,c=ye(function(e){return e===t},a,!0),d=ye(function(e){return M(t,e)>-1},a,!0),f=[function(e,n,o){var r=!s&&(o||n!==u)||((t=n).nodeType?c(e,n,o):d(e,n,o));return t=null,r}];l<i;l++)if(n=o.relative[e[l].type])f=[ye(be(f),n)];else{if((n=o.filter[e[l].type].apply(null,e[l].matches))[w]){for(r=++l;r<i&&!o.relative[e[r].type];r++);return xe(l>1&&be(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(R,"$1"),n,l<r&&Te(e.slice(l,r)),r<i&&Te(e=e.slice(r)),r<i&&ve(e))}f.push(n)}return be(f)}return me.prototype=o.filters=o.pseudos,o.setFilters=new me,s=ie.tokenize=function(e,t){var n,r,i,s,a,l,u,c=k[e+" "];if(c)return t?0:c.slice(0);for(a=e,l=[],u=o.preFilter;a;){for(s in n&&!(r=W.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(i=[])),n=!1,(r=$.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(R," ")}),a=a.slice(n.length)),o.filter)!(r=z[s].exec(a))||u[s]&&!(r=u[s](r))||(n=r.shift(),i.push({value:n,type:s,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ie.error(e):k(e,l).slice(0)},a=ie.compile=function(e,t){var n,r=[],i=[],a=O[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Te(t[n]))[w]?r.push(a):i.push(a);(a=O(e,function(e,t){var n=t.length>0,r=e.length>0,i=function(i,s,a,l,c){var d,h,m,v=0,y="0",b=i&&[],w=[],x=u,C=i||r&&o.find.TAG("*",c),E=T+=null==x?1:Math.random()||.1,k=C.length;for(c&&(u=s===p||s||c);y!==k&&null!=(d=C[y]);y++){if(r&&d){for(h=0,s||d.ownerDocument===p||(f(d),a=!g);m=e[h++];)if(m(d,s||p,a)){l.push(d);break}c&&(T=E)}n&&((d=!m&&d)&&v--,i&&b.push(d))}if(v+=y,n&&y!==v){for(h=0;m=t[h++];)m(b,w,s,a);if(i){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=L.call(l));w=we(w)}A.apply(l,w),c&&!i&&w.length>0&&v+t.length>1&&ie.uniqueSort(l)}return c&&(T=E,u=x),b};return n?ae(i):i}(i,r))).selector=e}return a},l=ie.select=function(e,t,n,r){var i,l,u,c,d,f="function"==typeof e&&e,p=!r&&s(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===t.nodeType&&g&&o.relative[l[1].type]){if(!(t=(o.find.ID(u.matches[0].replace(Z,ee),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=z.needsContext.test(e)?0:l.length;i--&&(u=l[i],!o.relative[c=u.type]);)if((d=o.find[c])&&(r=d(u.matches[0].replace(Z,ee),Q.test(l[0].type)&&ge(t.parentNode)||t))){if(l.splice(i,1),!(e=r.length&&ve(l)))return A.apply(n,r),n;break}}return(f||a(e,p))(r,t,!g,n,!t||Q.test(e)&&ge(t.parentNode)||t),n},n.sortStable=w.split("").sort(S).join("")===w,n.detectDuplicates=!!d,f(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ue("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ue("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ue(P,function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null}),ie}(n);C.find=O,C.expr=O.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=O.uniqueSort,C.text=O.getText,C.isXMLDoc=O.isXML,C.contains=O.contains,C.escapeSelector=O.escape;var S=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&C(e).is(n))break;o.push(e)}return o},j=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},N=C.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(e,t,n){return y(t)?C.grep(e,function(e,o){return!!t.call(e,o,e)!==n}):t.nodeType?C.grep(e,function(e){return e===t!==n}):"string"!=typeof t?C.grep(e,function(e){return d.call(t,e)>-1!==n}):C.filter(t,e,n)}C.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?C.find.matchesSelector(o,e)?[o]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<o;t++)if(C.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<o;t++)C.find(e,r[t],n);return o>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(A(this,e||[],!1))},not:function(e){return this.pushStack(A(this,e||[],!0))},is:function(e){return!!A(this,"string"==typeof e&&N.test(e)?C(e):e||[],!1).length}});var H,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:M.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:s,!0)),D.test(o[1])&&C.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=s.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,H=C(s);var P=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function q(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,o=0,r=this.length,i=[],s="string"!=typeof e&&C(e);if(!N.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?C.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?d.call(C(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return S(e,"parentNode")},parentsUntil:function(e,t,n){return S(e,"parentNode",n)},next:function(e){return q(e,"nextSibling")},prev:function(e){return q(e,"previousSibling")},nextAll:function(e){return S(e,"nextSibling")},prevAll:function(e){return S(e,"previousSibling")},nextUntil:function(e,t,n){return S(e,"nextSibling",n)},prevUntil:function(e,t,n){return S(e,"previousSibling",n)},siblings:function(e){return j((e.parentNode||{}).firstChild,e)},children:function(e){return j(e.firstChild)},contents:function(e){return L(e,"iframe")?e.contentDocument:(L(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(e,t){C.fn[e]=function(n,o){var r=C.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=C.filter(o,r)),this.length>1&&(I[e]||C.uniqueSort(r),P.test(e)&&r.reverse()),this.pushStack(r)}});var F=/[^\x20\t\r\n\f]+/g;function _(e){return e}function B(e){throw e}function R(e,t,n,o){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(F)||[],function(e,n){t[n]=!0}),t}(e):C.extend({},e);var t,n,o,r,i=[],s=[],a=-1,l=function(){for(r=r||e.once,o=t=!0;s.length;a=-1)for(n=s.shift();++a<i.length;)!1===i[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},u={add:function(){return i&&(n&&!t&&(a=i.length-1,s.push(n)),function t(n){C.each(n,function(n,o){y(o)?e.unique&&u.has(o)||i.push(o):o&&o.length&&"string"!==T(o)&&t(o)})}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;(n=C.inArray(t,i,n))>-1;)i.splice(n,1),n<=a&&a--}),this},has:function(e){return e?C.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=s=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=s=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!o}};return u},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return C.Deferred(function(n){C.each(t,function(t,o){var r=y(e[o[4]])&&e[o[4]];i[o[1]](function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(e,o,r){var i=0;function s(e,t,o,r){return function(){var a=this,l=arguments,u=function(){var n,u;if(!(e<i)){if((n=o.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");u=n&&("object"==typeof n||"function"==typeof n)&&n.then,y(u)?r?u.call(n,s(i,t,_,r),s(i,t,B,r)):(i++,u.call(n,s(i,t,_,r),s(i,t,B,r),s(i,t,_,t.notifyWith))):(o!==_&&(a=void 0,l=[n]),(r||t.resolveWith)(a,l))}},c=r?u:function(){try{u()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,c.stackTrace),e+1>=i&&(o!==B&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?c():(C.Deferred.getStackHook&&(c.stackTrace=C.Deferred.getStackHook()),n.setTimeout(c))}}return C.Deferred(function(n){t[0][3].add(s(0,n,y(r)?r:_,n.notifyWith)),t[1][3].add(s(0,n,y(e)?e:_)),t[2][3].add(s(0,n,y(o)?o:B))}).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},i={};return C.each(t,function(e,n){var s=n[2],a=n[5];r[n[1]]=s.add,a&&s.add(function(){o=a},t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(n[3].fire),i[n[0]]=function(){return i[n[0]+"With"](this===i?void 0:this,arguments),this},i[n[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=l.call(arguments),i=C.Deferred(),s=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?l.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(R(e,i.done(s(n)).resolve,i.reject,!t),"pending"===i.state()||y(r[n]&&r[n].then)))return i.then();for(;n--;)R(r[n],s(n),i.reject);return i.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&W.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout(function(){throw e})};var $=C.Deferred();function X(){s.removeEventListener("DOMContentLoaded",X),n.removeEventListener("load",X),C.ready()}C.fn.ready=function(e){return $.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||$.resolveWith(s,[C]))}}),C.ready.then=$.then,"complete"===s.readyState||"loading"!==s.readyState&&!s.documentElement.doScroll?n.setTimeout(C.ready):(s.addEventListener("DOMContentLoaded",X),n.addEventListener("load",X));var U=function(e,t,n,o,r,i,s){var a=0,l=e.length,u=null==n;if("object"===T(n))for(a in r=!0,n)U(e,t,a,n[a],!0,i,s);else if(void 0!==o&&(r=!0,y(o)||(s=!0),u&&(s?(t.call(e,o),t=null):(u=t,t=function(e,t,n){return u.call(C(e),n)})),t))for(;a<l;a++)t(e[a],n,s?o:o.call(e[a],a,t(e[a],n)));return r?e:u?t.call(e):l?t(e[0],n):i},Y=/^-ms-/,z=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function G(e){return e.replace(Y,"ms-").replace(z,V)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=C.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[G(t)]=n;else for(o in t)r[G(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in o?[t]:t.match(F)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||C.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var Q=new K,Z=new K,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Z.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return Z.hasData(e)||Q.hasData(e)},data:function(e,t,n){return Z.access(e,t,n)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,n){return Q.access(e,t,n)},_removeData:function(e,t){Q.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,o,r,i=this[0],s=i&&i.attributes;if(void 0===e){if(this.length&&(r=Z.get(i),1===i.nodeType&&!Q.get(i,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(o=s[n].name).indexOf("data-")&&(o=G(o.slice(5)),ne(i,o,r[o]));Q.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){Z.set(this,e)}):U(this,function(t){var n;if(i&&void 0===t)return void 0!==(n=Z.get(i,e))?n:void 0!==(n=ne(i,e))?n:void 0;this.each(function(){Z.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Z.remove(this,e)})}}),C.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Q.get(e,t),n&&(!o||Array.isArray(n)?o=Q.access(e,t,C.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),o=n.length,r=n.shift(),i=C._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,function(){C.dequeue(e,t)},i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Q.get(e,n)||Q.access(e,n,{empty:C.Callbacks("once memory").add(function(){Q.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each(function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=C.Deferred(),i=this,s=this.length,a=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=Q.get(i[s],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(a));return a(),r.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],se=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&C.contains(e.ownerDocument,e)&&"none"===C.css(e,"display")},ae=function(e,t,n,o){var r,i,s={};for(i in t)s[i]=e.style[i],e.style[i]=t[i];for(i in r=n.apply(e,o||[]),t)e.style[i]=s[i];return r};function le(e,t,n,o){var r,i,s=20,a=o?function(){return o.cur()}:function(){return C.css(e,t,"")},l=a(),u=n&&n[3]||(C.cssNumber[t]?"":"px"),c=(C.cssNumber[t]||"px"!==u&&+l)&&re.exec(C.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)C.style(e,t,c+u),(1-i)*(1-(i=a()/l||.5))<=0&&(s=0),c/=i;c*=2,C.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],o&&(o.unit=u,o.start=c,o.end=r)),r}var ue={};function ce(e){var t,n=e.ownerDocument,o=e.nodeName,r=ue[o];return r||(t=n.body.appendChild(n.createElement(o)),r=C.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ue[o]=r,r)}function de(e,t){for(var n,o,r=[],i=0,s=e.length;i<s;i++)(o=e[i]).style&&(n=o.style.display,t?("none"===n&&(r[i]=Q.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&se(o)&&(r[i]=ce(o))):"none"!==n&&(r[i]="none",Q.set(o,"display",n)));for(i=0;i<s;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}C.fn.extend({show:function(){return de(this,!0)},hide:function(){return de(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){se(this)?C(this).show():C(this).hide()})}});var fe=/^(?:checkbox|radio)$/i,pe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,he=/^$|^module$|\/(?:java|ecma)script/i,ge={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function me(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?C.merge([e],n):n}function ve(e,t){for(var n=0,o=e.length;n<o;n++)Q.set(e[n],"globalEval",!t||Q.get(t[n],"globalEval"))}ge.optgroup=ge.option,ge.tbody=ge.tfoot=ge.colgroup=ge.caption=ge.thead,ge.th=ge.td;var ye=/<|&#?\w+;/;function be(e,t,n,o,r){for(var i,s,a,l,u,c,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===T(i))C.merge(f,i.nodeType?[i]:i);else if(ye.test(i)){for(s=s||d.appendChild(t.createElement("div")),a=(pe.exec(i)||["",""])[1].toLowerCase(),l=ge[a]||ge._default,s.innerHTML=l[1]+C.htmlPrefilter(i)+l[2],c=l[0];c--;)s=s.lastChild;C.merge(f,s.childNodes),(s=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(o&&C.inArray(i,o)>-1)r&&r.push(i);else if(u=C.contains(i.ownerDocument,i),s=me(d.appendChild(i),"script"),u&&ve(s),n)for(c=0;i=s[c++];)he.test(i.type||"")&&n.push(i);return d}!function(){var e=s.createDocumentFragment().appendChild(s.createElement("div")),t=s.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),v.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",v.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var we=s.documentElement,xe=/^key/,Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function ke(){return!1}function Oe(){try{return s.activeElement}catch(e){}}function Se(e,t,n,o,r,i){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(o=o||n,n=void 0),t)Se(e,a,n,o,t[a],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=ke;else if(!r)return e;return 1===i&&(s=r,(r=function(e){return C().off(e),s.apply(this,arguments)}).guid=s.guid||(s.guid=C.guid++)),e.each(function(){C.event.add(this,t,r,o,n)})}C.event={global:{},add:function(e,t,n,o,r){var i,s,a,l,u,c,d,f,p,h,g,m=Q.get(e);if(m)for(n.handler&&(n=(i=n).handler,r=i.selector),r&&C.find.matchesSelector(we,r),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(F)||[""]).length;u--;)p=g=(a=Ce.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),p&&(d=C.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=C.event.special[p]||{},c=C.extend({type:p,origType:g,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&C.expr.match.needsContext.test(r),namespace:h.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,h,s)||e.addEventListener&&e.addEventListener(p,s)),d.add&&(d.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,c):f.push(c),C.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,s,a,l,u,c,d,f,p,h,g,m=Q.hasData(e)&&Q.get(e);if(m&&(l=m.events)){for(u=(t=(t||"").match(F)||[""]).length;u--;)if(p=g=(a=Ce.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),p){for(d=C.event.special[p]||{},f=l[p=(o?d.delegateType:d.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=i=f.length;i--;)c=f[i],!r&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||o&&o!==c.selector&&("**"!==o||!c.selector)||(f.splice(i,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(e,c));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||C.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[u],n,o,!0);C.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,s,a=C.event.fix(e),l=new Array(arguments.length),u=(Q.get(this,"events")||{})[a.type]||[],c=C.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,u),t=0;(r=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(i.namespace)||(a.handleObj=i,a.data=i.data,void 0!==(o=((C.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,l))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,o,r,i,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(i=[],s={},n=0;n<l;n++)void 0===s[r=(o=t[n]).selector+" "]&&(s[r]=o.needsContext?C(r,this).index(u)>-1:C.find(r,this,null,[u]).length),s[r]&&i.push(o);i.length&&a.push({elem:u,handlers:i})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Oe()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Oe()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&L(this,"input"))return this.click(),!1},_default:function(e){return L(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Te.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},C.event.addProp),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=e.relatedTarget,r=e.handleObj;return o&&(o===this||C.contains(this,o))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),C.fn.extend({on:function(e,t,n,o){return Se(this,e,t,n,o)},one:function(e,t,n,o){return Se(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,C(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){C.event.remove(this,e,n,t)})}});var je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ne=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ae(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Me(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Pe(e,t){var n,o,r,i,s,a,l,u;if(1===t.nodeType){if(Q.hasData(e)&&(i=Q.access(e),s=Q.set(t,i),u=i.events))for(r in delete s.handle,s.events={},u)for(n=0,o=u[r].length;n<o;n++)C.event.add(t,r,u[r][n]);Z.hasData(e)&&(a=Z.access(e),l=C.extend({},a),Z.set(t,l))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&fe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function qe(e,t,n,o){t=u.apply([],t);var r,i,s,a,l,c,d=0,f=e.length,p=f-1,h=t[0],g=y(h);if(g||f>1&&"string"==typeof h&&!v.checkClone&&Le.test(h))return e.each(function(r){var i=e.eq(r);g&&(t[0]=h.call(this,r,i.html())),qe(i,t,n,o)});if(f&&(i=(r=be(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(a=(s=C.map(me(r,"script"),He)).length;d<f;d++)l=r,d!==p&&(l=C.clone(l,!0,!0),a&&C.merge(s,me(l,"script"))),n.call(e[d],l,d);if(a)for(c=s[s.length-1].ownerDocument,C.map(s,Me),d=0;d<a;d++)l=s[d],he.test(l.type||"")&&!Q.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&C._evalUrl(l.src):x(l.textContent.replace(De,""),c,l))}return e}function Fe(e,t,n){for(var o,r=t?C.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||C.cleanData(me(o)),o.parentNode&&(n&&C.contains(o.ownerDocument,o)&&ve(me(o,"script")),o.parentNode.removeChild(o));return e}C.extend({htmlPrefilter:function(e){return e.replace(je,"<$1></$2>")},clone:function(e,t,n){var o,r,i,s,a=e.cloneNode(!0),l=C.contains(e.ownerDocument,e);if(!(v.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=me(a),o=0,r=(i=me(e)).length;o<r;o++)Ie(i[o],s[o]);if(t)if(n)for(i=i||me(e),s=s||me(a),o=0,r=i.length;o<r;o++)Pe(i[o],s[o]);else Pe(e,a);return(s=me(a,"script")).length>0&&ve(s,!l&&me(e,"script")),a},cleanData:function(e){for(var t,n,o,r=C.event.special,i=0;void 0!==(n=e[i]);i++)if(J(n)){if(t=n[Q.expando]){if(t.events)for(o in t.events)r[o]?C.event.remove(n,o):C.removeEvent(n,o,t.handle);n[Q.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return U(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return qe(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ae(this,e).appendChild(e)})},prepend:function(){return qe(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ae(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return qe(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(me(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return U(this,function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ne.test(e)&&!ge[(pe.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(me(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return qe(this,arguments,function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(me(this)),n&&n.replaceChild(t,this))},e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){C.fn[e]=function(e){for(var n,o=[],r=C(e),i=r.length-1,s=0;s<=i;s++)n=s===i?this:this.clone(!0),C(r[s])[t](n),c.apply(o,n.get());return this.pushStack(o)}});var _e=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},Re=new RegExp(ie.join("|"),"i");function We(e,t,n){var o,r,i,s,a=e.style;return(n=n||Be(e))&&(""!==(s=n.getPropertyValue(t)||n[t])||C.contains(e.ownerDocument,e)||(s=C.style(e,t)),!v.pixelBoxStyles()&&_e.test(s)&&Re.test(t)&&(o=a.width,r=a.minWidth,i=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=o,a.minWidth=r,a.maxWidth=i)),void 0!==s?s+"":s}function $e(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",we.appendChild(u).appendChild(c);var e=n.getComputedStyle(c);o="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",a=36===t(e.right),r=36===t(e.width),c.style.position="absolute",i=36===c.offsetWidth||"absolute",we.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var o,r,i,a,l,u=s.createElement("div"),c=s.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",v.clearCloneStyle="content-box"===c.style.backgroundClip,C.extend(v,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),o},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i}}))}();var Xe=/^(none|table(?!-c[ea]).+)/,Ue=/^--/,Ye={position:"absolute",visibility:"hidden",display:"block"},ze={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","Moz","ms"],Ge=s.createElement("div").style;function Je(e){var t=C.cssProps[e];return t||(t=C.cssProps[e]=function(e){if(e in Ge)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in Ge)return e}(e)||e),t}function Ke(e,t,n){var o=re.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function Qe(e,t,n,o,r,i){var s="width"===t?1:0,a=0,l=0;if(n===(o?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=C.css(e,n+ie[s],!0,r)),o?("content"===n&&(l-=C.css(e,"padding"+ie[s],!0,r)),"margin"!==n&&(l-=C.css(e,"border"+ie[s]+"Width",!0,r))):(l+=C.css(e,"padding"+ie[s],!0,r),"padding"!==n?l+=C.css(e,"border"+ie[s]+"Width",!0,r):a+=C.css(e,"border"+ie[s]+"Width",!0,r));return!o&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-a-.5))),l}function Ze(e,t,n){var o=Be(e),r=We(e,t,o),i="border-box"===C.css(e,"boxSizing",!1,o),s=i;if(_e.test(r)){if(!n)return r;r="auto"}return s=s&&(v.boxSizingReliable()||r===e.style[t]),("auto"===r||!parseFloat(r)&&"inline"===C.css(e,"display",!1,o))&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)],s=!0),(r=parseFloat(r)||0)+Qe(e,t,n||(i?"border":"content"),s,o,r)+"px"}function et(e,t,n,o,r){return new et.prototype.init(e,t,n,o,r)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=We(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,s,a=G(t),l=Ue.test(t),u=e.style;if(l||(t=Je(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,o))?r:u[t];"string"===(i=typeof n)&&(r=re.exec(n))&&r[1]&&(n=le(e,t,r),i="number"),null!=n&&n==n&&("number"===i&&(n+=r&&r[3]||(C.cssNumber[a]?"":"px")),v.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,o))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,o){var r,i,s,a=G(t);return Ue.test(t)||(t=Je(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=We(e,t,o)),"normal"===r&&t in ze&&(r=ze[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),C.each(["height","width"],function(e,t){C.cssHooks[t]={get:function(e,n,o){if(n)return!Xe.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ze(e,t,o):ae(e,Ye,function(){return Ze(e,t,o)})},set:function(e,n,o){var r,i=Be(e),s="border-box"===C.css(e,"boxSizing",!1,i),a=o&&Qe(e,t,o,s,i);return s&&v.scrollboxSize()===i.position&&(a-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-Qe(e,t,"border",!1,i)-.5)),a&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),Ke(0,n,a)}}}),C.cssHooks.marginLeft=$e(v.reliableMarginLeft,function(e,t){if(t)return(parseFloat(We(e,"marginLeft"))||e.getBoundingClientRect().left-ae(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(e,t){C.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+ie[o]+t]=i[o]||i[o-2]||i[0];return r}},"margin"!==e&&(C.cssHooks[e+t].set=Ke)}),C.fn.extend({css:function(e,t){return U(this,function(e,t,n){var o,r,i={},s=0;if(Array.isArray(t)){for(o=Be(e),r=t.length;s<r;s++)i[t[s]]=C.css(e,t[s],!1,o);return i}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,arguments.length>1)}}),C.Tween=et,et.prototype={constructor:et,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(C.cssNumber[n]?"":"px")},cur:function(){var e=et.propHooks[this.prop];return e&&e.get?e.get(this):et.propHooks._default.get(this)},run:function(e){var t,n=et.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):et.propHooks._default.set(this),this}},et.prototype.init.prototype=et.prototype,et.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[C.cssProps[e.prop]]&&!C.cssHooks[e.prop]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},et.propHooks.scrollTop=et.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=et.prototype.init,C.fx.step={};var tt,nt,ot=/^(?:toggle|show|hide)$/,rt=/queueHooks$/;function it(){nt&&(!1===s.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(it):n.setTimeout(it,C.fx.interval),C.fx.tick())}function st(){return n.setTimeout(function(){tt=void 0}),tt=Date.now()}function at(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=ie[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function lt(e,t,n){for(var o,r=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),i=0,s=r.length;i<s;i++)if(o=r[i].call(n,t,e))return o}function ut(e,t,n){var o,r,i=0,s=ut.prefilters.length,a=C.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=tt||st(),n=Math.max(0,u.startTime+u.duration-t),o=1-(n/u.duration||0),i=0,s=u.tweens.length;i<s;i++)u.tweens[i].run(o);return a.notifyWith(e,[u,o,n]),o<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:tt||st(),duration:n.duration,tweens:[],createTween:function(t,n){var o=C.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(o),o},stop:function(t){var n=0,o=t?u.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,o,r,i,s;for(n in e)if(r=t[o=G(n)],i=e[n],Array.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),(s=C.cssHooks[o])&&"expand"in s)for(n in i=s.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}(c,u.opts.specialEasing);i<s;i++)if(o=ut.prefilters[i].call(u,e,c,u.opts))return y(o.stop)&&(C._queueHooks(u.elem,u.opts.queue).stop=o.stop.bind(o)),o;return C.map(c,lt,u),y(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}C.Animation=C.extend(ut,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return le(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(F);for(var n,o=0,r=e.length;o<r;o++)n=e[o],ut.tweeners[n]=ut.tweeners[n]||[],ut.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,s,a,l,u,c,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&se(e),m=Q.get(e,"fxshow");for(o in n.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,f.always(function(){f.always(function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()})})),t)if(r=t[o],ot.test(r)){if(delete t[o],i=i||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[o])continue;g=!0}p[o]=m&&m[o]||C.style(e,o)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(o in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=m&&m.display)&&(u=Q.get(e,"display")),"none"===(c=C.css(e,"display"))&&(u?c=u:(de([e],!0),u=e.style.display||u,c=C.css(e,"display"),de([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===C.css(e,"float")&&(l||(f.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Q.access(e,"fxshow",{display:u}),i&&(m.hidden=!g),g&&de([e],!0),f.done(function(){for(o in g||de([e]),Q.remove(e,"fxshow"),p)C.style(e,o,p[o])})),l=lt(g?m[o]:0,o,f),o in m||(m[o]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),C.speed=function(e,t,n){var o=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in C.fx.speeds?o.duration=C.fx.speeds[o.duration]:o.duration=C.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&C.dequeue(this,o.queue)},o},C.fn.extend({fadeTo:function(e,t,n,o){return this.filter(se).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=C.isEmptyObject(e),i=C.speed(t,n,o),s=function(){var t=ut(this,C.extend({},e),i);(r||Q.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===i.queue?this.each(s):this.queue(i.queue,s)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",i=C.timers,s=Q.get(this);if(r)s[r]&&s[r].stop&&o(s[r]);else for(r in s)s[r]&&s[r].stop&&rt.test(r)&&o(s[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||C.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Q.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=C.timers,s=o?o.length:0;for(n.finish=!0,C.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<s;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish})}}),C.each(["toggle","show","hide"],function(e,t){var n=C.fn[t];C.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(at(t,!0),e,o,r)}}),C.each({slideDown:at("show"),slideUp:at("hide"),slideToggle:at("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){C.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(tt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),tt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){nt||(nt=!0,it())},C.fx.stop=function(){nt=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,function(t,o){var r=n.setTimeout(t,e);o.stop=function(){n.clearTimeout(r)}})},function(){var e=s.createElement("input"),t=s.createElement("select").appendChild(s.createElement("option"));e.type="checkbox",v.checkOn=""!==e.value,v.optSelected=t.selected,(e=s.createElement("input")).value="t",e.type="radio",v.radioValue="t"===e.value}();var ct,dt=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return U(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?C.prop(e,t,n):(1===i&&C.isXMLDoc(e)||(r=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?ct:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=C.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!v.radioValue&&"radio"===t&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(F);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),ct={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var n=dt[t]||C.find.attr;dt[t]=function(e,t,o){var r,i,s=t.toLowerCase();return o||(i=dt[s],dt[s]=r,r=null!=n(e,t,o)?s:null,dt[s]=i),r}});var ft=/^(?:input|select|textarea|button)$/i,pt=/^(?:a|area)$/i;function ht(e){return(e.match(F)||[]).join(" ")}function gt(e){return e.getAttribute&&e.getAttribute("class")||""}function mt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(F)||[]}C.fn.extend({prop:function(e,t){return U(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&C.isXMLDoc(e)||(t=C.propFix[t]||t,r=C.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):ft.test(e.nodeName)||pt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(e){var t,n,o,r,i,s,a,l=0;if(y(e))return this.each(function(t){C(this).addClass(e.call(this,t,gt(this)))});if((t=mt(e)).length)for(;n=this[l++];)if(r=gt(n),o=1===n.nodeType&&" "+ht(r)+" "){for(s=0;i=t[s++];)o.indexOf(" "+i+" ")<0&&(o+=i+" ");r!==(a=ht(o))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,o,r,i,s,a,l=0;if(y(e))return this.each(function(t){C(this).removeClass(e.call(this,t,gt(this)))});if(!arguments.length)return this.attr("class","");if((t=mt(e)).length)for(;n=this[l++];)if(r=gt(n),o=1===n.nodeType&&" "+ht(r)+" "){for(s=0;i=t[s++];)for(;o.indexOf(" "+i+" ")>-1;)o=o.replace(" "+i+" "," ");r!==(a=ht(o))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e,o="string"===n||Array.isArray(e);return"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):y(e)?this.each(function(n){C(this).toggleClass(e.call(this,n,gt(this),t),t)}):this.each(function(){var t,r,i,s;if(o)for(r=0,i=C(this),s=mt(e);t=s[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else void 0!==e&&"boolean"!==n||((t=gt(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))})},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+ht(gt(n))+" ").indexOf(t)>-1)return!0;return!1}});var vt=/\r/g;C.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=y(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,C(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=C.map(r,function(e){return null==e?"":e+""})),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=C.valHooks[r.type]||C.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(vt,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:ht(C.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?i+1:r.length;for(o=i<0?l:s?i:0;o<l;o++)if(((n=r[o]).selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=C(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,o,r=e.options,i=C.makeArray(t),s=r.length;s--;)((o=r[s]).selected=C.inArray(C.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},v.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),v.focusin="onfocusin"in n;var yt=/^(?:focusinfocus|focusoutblur)$/,bt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,o,r){var i,a,l,u,c,d,f,p,g=[o||s],m=h.call(e,"type")?e.type:e,v=h.call(e,"namespace")?e.namespace.split("."):[];if(a=p=l=o=o||s,3!==o.nodeType&&8!==o.nodeType&&!yt.test(m+C.event.triggered)&&(m.indexOf(".")>-1&&(m=(v=m.split(".")).shift(),v.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[C.expando]?e:new C.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=v.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),t=null==t?[e]:C.makeArray(t,[e]),f=C.event.special[m]||{},r||!f.trigger||!1!==f.trigger.apply(o,t))){if(!r&&!f.noBubble&&!b(o)){for(u=f.delegateType||m,yt.test(u+m)||(a=a.parentNode);a;a=a.parentNode)g.push(a),l=a;l===(o.ownerDocument||s)&&g.push(l.defaultView||l.parentWindow||n)}for(i=0;(a=g[i++])&&!e.isPropagationStopped();)p=a,e.type=i>1?u:f.bindType||m,(d=(Q.get(a,"events")||{})[e.type]&&Q.get(a,"handle"))&&d.apply(a,t),(d=c&&a[c])&&d.apply&&J(a)&&(e.result=d.apply(a,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(g.pop(),t)||!J(o)||c&&y(o[m])&&!b(o)&&((l=o[c])&&(o[c]=null),C.event.triggered=m,e.isPropagationStopped()&&p.addEventListener(m,bt),o[m](),e.isPropagationStopped()&&p.removeEventListener(m,bt),C.event.triggered=void 0,l&&(o[c]=l)),e.result}},simulate:function(e,t,n){var o=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(o,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var o=this.ownerDocument||this,r=Q.access(o,t);r||o.addEventListener(e,n,!0),Q.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this,r=Q.access(o,t)-1;r?Q.access(o,t,r):(o.removeEventListener(e,n,!0),Q.remove(o,t))}}});var wt=n.location,xt=Date.now(),Tt=/\?/;C.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+e),t};var Ct=/\[\]$/,Et=/\r?\n/g,kt=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function St(e,t,n,o){var r;if(Array.isArray(t))C.each(t,function(t,r){n||Ct.test(e)?o(e,r):St(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)});else if(n||"object"!==T(t))o(e,t);else for(r in t)St(e+"["+r+"]",t[r],n,o)}C.param=function(e,t){var n,o=[],r=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){r(this.name,this.value)});else for(n in e)St(n,e[n],t,r);return o.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Ot.test(this.nodeName)&&!kt.test(e)&&(this.checked||!fe.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var jt=/%20/g,Nt=/#.*$/,Lt=/([?&])_=[^&]*/,Dt=/^(.*?):[ \t]*([^\r\n]*)$/gm,At=/^(?:GET|HEAD)$/,Ht=/^\/\//,Mt={},Pt={},It="*/".concat("*"),qt=s.createElement("a");function Ft(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(F)||[];if(y(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function _t(e,t,n,o){var r={},i=e===Pt;function s(a){var l;return r[a]=!0,C.each(e[a]||[],function(e,a){var u=a(t,n,o);return"string"!=typeof u||i||r[u]?i?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)}),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Bt(e,t){var n,o,r=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&C.extend(!0,e,o),e}qt.href=wt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:wt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(wt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":It,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Bt(Bt(e,C.ajaxSettings),t):Bt(C.ajaxSettings,e)},ajaxPrefilter:Ft(Mt),ajaxTransport:Ft(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var o,r,i,a,l,u,c,d,f,p,h=C.ajaxSetup({},t),g=h.context||h,m=h.context&&(g.nodeType||g.jquery)?C(g):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=h.statusCode||{},w={},x={},T="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Dt.exec(i);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(h.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||T;return o&&o.abort(t),k(0,t),this}};if(v.promise(E),h.url=((e||h.url||wt.href)+"").replace(Ht,wt.protocol+"//"),h.type=t.method||t.type||h.method||h.type,h.dataTypes=(h.dataType||"*").toLowerCase().match(F)||[""],null==h.crossDomain){u=s.createElement("a");try{u.href=h.url,u.href=u.href,h.crossDomain=qt.protocol+"//"+qt.host!=u.protocol+"//"+u.host}catch(e){h.crossDomain=!0}}if(h.data&&h.processData&&"string"!=typeof h.data&&(h.data=C.param(h.data,h.traditional)),_t(Mt,h,t,E),c)return E;for(f in(d=C.event&&h.global)&&0==C.active++&&C.event.trigger("ajaxStart"),h.type=h.type.toUpperCase(),h.hasContent=!At.test(h.type),r=h.url.replace(Nt,""),h.hasContent?h.data&&h.processData&&0===(h.contentType||"").indexOf("application/x-www-form-urlencoded")&&(h.data=h.data.replace(jt,"+")):(p=h.url.slice(r.length),h.data&&(h.processData||"string"==typeof h.data)&&(r+=(Tt.test(r)?"&":"?")+h.data,delete h.data),!1===h.cache&&(r=r.replace(Lt,"$1"),p=(Tt.test(r)?"&":"?")+"_="+xt+++p),h.url=r+p),h.ifModified&&(C.lastModified[r]&&E.setRequestHeader("If-Modified-Since",C.lastModified[r]),C.etag[r]&&E.setRequestHeader("If-None-Match",C.etag[r])),(h.data&&h.hasContent&&!1!==h.contentType||t.contentType)&&E.setRequestHeader("Content-Type",h.contentType),E.setRequestHeader("Accept",h.dataTypes[0]&&h.accepts[h.dataTypes[0]]?h.accepts[h.dataTypes[0]]+("*"!==h.dataTypes[0]?", "+It+"; q=0.01":""):h.accepts["*"]),h.headers)E.setRequestHeader(f,h.headers[f]);if(h.beforeSend&&(!1===h.beforeSend.call(g,E,h)||c))return E.abort();if(T="abort",y.add(h.complete),E.done(h.success),E.fail(h.error),o=_t(Pt,h,t,E)){if(E.readyState=1,d&&m.trigger("ajaxSend",[E,h]),c)return E;h.async&&h.timeout>0&&(l=n.setTimeout(function(){E.abort("timeout")},h.timeout));try{c=!1,o.send(w,k)}catch(e){if(c)throw e;k(-1,e)}}else k(-1,"No Transport");function k(e,t,s,a){var u,f,p,w,x,T=t;c||(c=!0,l&&n.clearTimeout(l),o=void 0,i=a||"",E.readyState=e>0?4:0,u=e>=200&&e<300||304===e,s&&(w=function(e,t,n){for(var o,r,i,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in a)if(a[r]&&a[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}s||(s=r)}i=i||s}if(i)return i!==l[0]&&l.unshift(i),n[i]}(h,E,s)),w=function(e,t,n,o){var r,i,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(i=c.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=c.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(s=u[l+" "+i]||u["* "+i]))for(r in u)if((a=r.split(" "))[1]===i&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[r]:!0!==u[r]&&(i=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(h,w,E,u),u?(h.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(C.lastModified[r]=x),(x=E.getResponseHeader("etag"))&&(C.etag[r]=x)),204===e||"HEAD"===h.type?T="nocontent":304===e?T="notmodified":(T=w.state,f=w.data,u=!(p=w.error))):(p=T,!e&&T||(T="error",e<0&&(e=0))),E.status=e,E.statusText=(t||T)+"",u?v.resolveWith(g,[f,T,E]):v.rejectWith(g,[E,T,p]),E.statusCode(b),b=void 0,d&&m.trigger(u?"ajaxSuccess":"ajaxError",[E,h,u?f:p]),y.fireWith(g,[E,T]),d&&(m.trigger("ajaxComplete",[E,h]),--C.active||C.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,t){C[t]=function(e,n,o,r){return y(n)&&(r=r||o,o=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:r,data:n,success:o},C.isPlainObject(e)&&e))}}),C._evalUrl=function(e){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return y(e)?this.each(function(t){C(this).wrapInner(e.call(this,t))}):this.each(function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=y(e);return this.each(function(n){C(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Wt=C.ajaxSettings.xhr();v.cors=!!Wt&&"withCredentials"in Wt,v.ajax=Wt=!!Wt,C.ajaxTransport(function(e){var t,o;if(v.cors||Wt&&!e.crossDomain)return{send:function(r,i){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(s,r[s]);t=function(e){return function(){t&&(t=o=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?i(0,"error"):i(a.status,a.statusText):i(Rt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),o=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=o:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout(function(){t&&o()})},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(o,r){t=C("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),s.head.appendChild(t[0])},abort:function(){n&&n()}}});var $t=[],Xt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=$t.pop()||C.expando+"_"+xt++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,o){var r,i,s,a=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,"$1"+r):!1!==e.jsonp&&(e.url+=(Tt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||C.error(r+" was not called"),s[0]},e.dataTypes[0]="json",i=n[r],n[r]=function(){s=arguments},o.always(function(){void 0===i?C(n).removeProp(r):n[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,$t.push(r)),s&&y(i)&&i(s[0]),s=i=void 0}),"script"}),v.createHTMLDocument=function(){var e=s.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(v.createHTMLDocument?((o=(t=s.implementation.createHTMLDocument("")).createElement("base")).href=s.location.href,t.head.appendChild(o)):t=s),r=D.exec(e),i=!n&&[],r?[t.createElement(r[1])]:(r=be([e],t,i),i&&i.length&&C(i).remove(),C.merge([],r.childNodes)));var o,r,i},C.fn.load=function(e,t,n){var o,r,i,s=this,a=e.indexOf(" ");return a>-1&&(o=ht(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&C.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){i=arguments,s.html(o?C("<div>").append(C.parseHTML(e)).find(o):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,i||[e.responseText,t,e])})}),this},C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.expr.pseudos.animated=function(e){return C.grep(C.timers,function(t){return e===t.elem}).length},C.offset={setOffset:function(e,t,n){var o,r,i,s,a,l,u=C.css(e,"position"),c=C(e),d={};"static"===u&&(e.style.position="relative"),a=c.offset(),i=C.css(e,"top"),l=C.css(e,"left"),("absolute"===u||"fixed"===u)&&(i+l).indexOf("auto")>-1?(s=(o=c.position()).top,r=o.left):(s=parseFloat(i)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(d.top=t.top-a.top+s),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):c.css(d)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){C.offset.setOffset(this,e,t)});var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===C.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),r.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-C.css(o,"marginTop",!0),left:t.left-r.left-C.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||we})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;C.fn[e]=function(o){return U(this,function(e,o,r){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[t]:e[o];i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r},e,o,arguments.length)}}),C.each(["top","left"],function(e,t){C.cssHooks[t]=$e(v.pixelPosition,function(e,n){if(n)return n=We(e,t),_e.test(n)?C(e).position()[t]+"px":n})}),C.each({Height:"height",Width:"width"},function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,o){C.fn[o]=function(r,i){var s=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===i?"margin":"border");return U(this,function(t,n,r){var i;return b(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?C.css(t,n,a):C.style(t,n,r,a)},t,s?r:void 0,s)}})}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),C.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),C.proxy=function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=l.call(arguments,2),(r=function(){return e.apply(t||this,o.concat(l.call(arguments)))}).guid=e.guid=e.guid||C.guid++,r},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=L,C.isFunction=y,C.isWindow=b,C.camelCase=G,C.type=T,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},void 0===(o=function(){return C}.apply(t,[]))||(e.exports=o);var Ut=n.jQuery,Yt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Yt),e&&n.jQuery===C&&(n.jQuery=Ut),C},r||(n.jQuery=n.$=C),C})},function(e,t,n){"use strict";n.r(t),n.d(t,"resizeInput",function(){return b}),n.d(t,"get",function(){return x}),n.d(t,"hide",function(){return T}),n.d(t,"history",function(){return C}),n.d(t,"init",function(){return O}),n.d(t,"isReady",function(){return S}),n.d(t,"prefix",function(){return j}),n.d(t,"scrollOrFocus",function(){return N}),n.d(t,"setDoScroll",function(){return L}),n.d(t,"show",function(){return D});var o=n(3),r=n(7),i=n(10),s=n(2);let a=[],l=0,u="",c=!1,d=!1,f=document.getElementById("lineinput-field"),p=0,h=!1,g=document.getElementById("lineinput-prefix"),m=document.getElementById("lineinput"),v=new CustomEvent("lineinputReady");function y(e){const t=l,n=t-e,o=a.length;t===o&&(u=f.value),n<o&&n>=0?(f.value=a[n],l=n):n===o&&(f.value=u,l=n)}function b(){f.style.width=Object(s.get)(0).clientWidth-p-2+"px"}function w(){const e=Object(s.get)(0),t=Object(s.get)(1),n=function e(t){let n=[];for(t=t.firstChild;t;t=t.nextSibling)3===t.nodeType?n.push(t):n=n.concat(e(t));return n}(e),o=(window.pageYOffset||document.documentElement.scrollTop)-(document.documentElement.clientTop||0),r=/\S/;for(let e=0;e<n.length;++e)if(r.test(n[e].textContent)){let r=n[e].parentNode.getBoundingClientRect().top-window.innerHeight/3;return t&&(r+=t.getBoundingClientRect().height),void(o<r&&window.scrollTo(0,r))}}function x(){return m}function T(){Object(r.setMode)("buffer"),m.parentNode&&m.parentNode.removeChild(m)}const C={add:function(e){return!!e&&(a.push(e),!0)},clear:function(){a=[],l=0},get:function(){return a.slice()},remove:function(e){return 0!==a.length&&("number"!=typeof e?(a.pop(),l>a.length&&(l=a.length),!0):!(e<0||e>=a.length)&&(a.splice(e,1),l>e&&l--,!0))},set:function(e){a=e.slice()}},
  E=[{base:"DZ",letters:"ǱǄ"},{base:"ay",letters:"ꜽ"}],k={};for(let e=0;e<E.length;e++){const t=E[e].letters;for(let n=0;n<t.length;n++)k[t[n]]=E[e].base}function O(e){if(d=!!e.enginePrompt,m.addEventListener("submit",function(t){t.preventDefault(),e.unicode||(f.value=f.value.replace(/[^\u0000-\u007E]/g,function(e){return k[e]||e})),
  	
  f.value!==a[0]&&/\S/.test(f.value)&&C.add(f.value),l=a.length,d||t.detail&&t.detail.silent||function(e,t,n){const o=s.container.get(n),r=document.createElement("div"),i=document.createElement("span"),a=document.createElement("span"),l=document.getElementsByClassName("lineinput last");for(let e=l.length-1;e>=0;--e)l[e].classList.remove("last");r.className="lineinput last",i.className="prompt-prefix",a.className="prompt-input",i.innerHTML=e,a.innerHTML=t,r.appendChild(i),r.appendChild(a),o.appendChild(r)}(j.get(),f.value,0),
  	
  /***** Russian Transliteration ******/
  	
  	f.value=f.value.replace(/[^\u0000-\u007E]/g,function(e){
  		var Russian = 
  			{"А":"A",
  			"Б":"B",
  			"В":"V",
  			"Г":"G",
  			"Д":"D",
  			"Е":"E",
  			"Ё":"E",
  			"Ж":"ZH",
  			"З":"Z",
  			"И":"I",
  			"Й":"J",
  			"К":"K",
  			"Л":"L",
  			"М":"M",
  			"Н":"N",
  			"О":"O",
  			"П":"P",
  			"Р":"R",
  			"С":"S",
  			"Т":"T",
  			"У":"U",
  			"Ф":"F",
  			"Х":"KH",
  			"Ц":"TS",
  			"Ч":"CH",
  			"Ш":"SH",
  			"Щ":"SHCH",
  			"Ъ":"#",
  			"Ы":"Y",
  			"Ь":"&",
  			"Э":"E",
  			"Ю":"YU",
  			"Я":"YA",
  			"а":"a",
  			"б":"b",
  			"в":"v",
  			"г":"g",
  			"д":"d",
  			"е":"e",
  			"ё":"e",
  			"ж":"zh",
  			"з":"z",
  			"и":"i",
  			"й":"j",
  			"к":"k",
  			"л":"l",
  			"м":"m",
  			"н":"n",
  			"о":"o",
  			"п":"p",
  			"р":"r",
  			"с":"s",
  			"т":"t",
  			"у":"u",
  			"ф":"f",
  			"х":"kh",
  			"ц":"ts",
  			"ч":"ch",
  			"ш":"sh",
  			"щ":"shch",
  			"ъ":"#",
  			"ы":"y",
  			"ь":"&",
  			"э":"e",
  			"ю":"yu",
  			"я":"ya"
  		
  	};
  		console.log(Russian[e]||e);
  		return(Russian[e]||e)
  	}),
  	
  /*************************************/	
  	
  Module.ccall("haven_getline","null",["string"],[f.value+"\n"]),f.value="",T()},!1),f.addEventListener("keydown",function(e){const t=e.which||e.keyCode;38===t&&(y(1),e.preventDefault()),40===t&&(y(-1),e.preventDefault())},!1),"ontouchstart"in window){let e=!0;f.addEventListener("focus",function(){e?e=!1:document.body.classList.add("safarifix")}),f.addEventListener("blur",function(){document.body.classList.remove("safarifix")})}window.addEventListener("resize",b,!1),m.parentNode.removeChild(m)}function S(){return"getline"===Object(r.getMode)()}const j={get:function(){return d?"":g.innerHTML},set:function(e){d||(g.innerHTML=e)}};function N(e){const t=document.documentElement,n=(window.pageYOffset||t.scrollTop)-(t.clientTop||0),o=window.getSelection||function(){return document.selection?document.selection.createRange().text:""};let r=window.innerHeight;if(Object(s.get)(1)&&(r=window.innerHeight-haven.window.get(1).getBoundingClientRect().height),!e||!(32===e.keycode||e.keyCode>127||e.altKey||e.ctrlKey||e.metaKey)){if(!e||e.target&&"INPUT"!==e.target.nodeName&&""===o().toString())if(n+window.innerHeight>document.body.clientHeight-40)m.parentNode&&(window.scrollTo(0,9e9),f.focus(),e&&e.stopPropagation&&document.activeElement!==f&&e.stopPropagation());else if(c?(window.scrollTo(0,n+r-40),m.parentNode&&n+r+window.innerHeight-40>=document.body.clientHeight&&f.focus(),e&&e.preventDefault&&e.preventDefault()):w(),e&&"keydown"===e.type&&8===(e.which||e.keyCode))return!1;h=!1}}function L(e){c=e}function D(){Object(r.setMode)("getline"),Object(o.flush)(),Object(s.get)(0).appendChild(m),p=d?f.offsetLeft-Object(s.get)(0).offsetLeft:g.offsetWidth,b(),N(),c=!0,i.autosave.save(),m.dispatchEvent(v)}},function(e,t,n){"use strict";n.r(t),n.d(t,"append",function(){return p}),n.d(t,"clear",function(){return h}),n.d(t,"create",function(){return g}),n.d(t,"container",function(){return m}),n.d(t,"get",function(){return v}),n.d(t,"getUIState",function(){return y}),n.d(t,"measureDimensions",function(){return b}),n.d(t,"position",function(){return w}),n.d(t,"setTitle",function(){return x});var o=n(3),r=n(5),i=n(1),s=n(4);const a=[document.getElementById("window0")],l=document.getElementById("output"),u=[a[0]],c=[];let d=[];function f(e,t,n,o){const r=a[o],i=function e(t){let n=[];for(t=t.firstChild;t;t=t.nextSibling)3===t.nodeType?n.push(t):n=n.concat(e(t));return n}(r),s=document.createRange();let l=1,u=1,c=!1,f=0;if(function(){for(let o=0;o<i.length;++o){let r=i[o].textContent;if(l===e)for(let e=0;e<r.length;++e){if(c){if(++f===n.textContent.length||"\n"===r[e])return s.setEnd(i[o],e),!1}else if(u===t){if(s.setStart(i[o],e),c=!0,e===r.length-1)return s.setEnd(i[o],e),!1}else if("\n"===r[e]){const n=document.createTextNode(Array(t-u+1).join(" ")+"\n");return i[o].textContent=r.substr(0,e)+" ",i[o].parentNode.insertBefore(n,i[o].nextSibling),s.setStart(n,t-u-1),s.setEnd(n,t-u-1),!1}u++}else r.indexOf("\n")>-1&&l++}return!0}())return function(e,t,n){for(let t=0;t<e;++t){const e=document.createElement("span");e.className="font-fixed-width",e.innerHTML="\n",a[n].appendChild(e)}if(t>0){const e=document.createElement("span");e.innerHTML=Array(t).join(" "),e.className="font-fixed-width",a[n].appendChild(e)}w.reset(n)}(d[o].line-l,t,o),void r.appendChild(n);n.textContent.indexOf("\n")>-1?(n.textContent=n.textContent.replace("\n",""),d[o].line++,d[o].col=1):d[o].col+=n.textContent.length,s.deleteContents(),s.insertNode(n),n.nextSibling||(d[o].line=null,d[o].col=null)}function p(e,t){const n=document.createElement("span");d[t]||(d[t]={col:null,line:null}),Object(s.a)(n,t),n.innerHTML=e,null!==d[t].col&&null!==d[t].line?f(d[t].line,d[t].col,n,t):u[t].appendChild(n)}function h(e){if(void 0===e)Object(o.flush)(0),l.innerHTML="",l.appendChild(a[0]),Object(s.a)(a[0],0),Object(s.a)(document.body,0),w.reset();else{if(!a[e])return;Object(o.flush)(e),a[e].innerHTML="",Object(s.a)(a[e],e),0===e&&Object(s.a)(document.body,0),w.reset(e)}}function g(e,t,n,o,i){const s=b(),l=s.char.height,d=v(0).parentNode;let f;if(c[e]={left:t,top:n,right:o,bottom:i},!Object(r.a)("windowing"))return!1;0!==e?(v(e)&&d.removeChild(v(e)),(f=document.createElement("div")).id="window"+e,f.className="havenwindow font-fixed-width",f.style.height=l*(i-n+1)+"px",f.style.top=(n-1)*l+"px",f.style.marginLeft=t-1+"px",f.style.width=(o-t+2)*s.char.width+"px",a[e]=f,u[e]=f,m.append(f,d)):v(0).style.paddingTop=(n-1)*s.char.height+"px"}const m={append:function(e,t){"number"==typeof t?a[t].appendChild(e):t.appendChild(e)},get:function(e){return u[e]},set:function(e,t){u[t]=e}};function v(e){return a[e]}function y(){const e=[],t=Object(i.get)(),n=t.parentNode;n&&n.removeChild(t);let o=a[0].lastChild;a[0].removeChild(o);for(let t=0;t<a.length;++t)e[t]=a[t].innerHTML;a[0].appendChild(o),n&&n.appendChild(t);const r=e[0].lastIndexOf("\n");return e[0]=e[0].substring(0,r)+e[0].substring(r+1),{cmdHistory:i.history.get(),currentColors:s.b.get(),font:s.c.get(),position:d,title:document.title,windowDimensions:c,windowContents:e}}function b(){const e=v(0).parentNode,t={window:{width:parseInt(window.getComputedStyle(e).width,10),height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},line:{},char:{}},n=document.createElement("span"),o=t.window;let r;return n.innerHTML="00000<br>00000<br>00000",n.className="font-fixed-width",n.style.display="inline-block",e.appendChild(n),t.char.width=n.offsetWidth/5,t.line.width=Math.floor((o.width-1)/t.char.width),n.style.display="block",r=n.clientHeight,n.innerHTML+="<br>00000<br>00000",t.char.height=(n.clientHeight-r)/2+3,t.line.height=Math.floor(o.height/t.char.height),n.parentNode.removeChild(n),t}const w={reset:function(e){void 0===e?d=[{col:null,line:null}]:w.set(null,null,e)},restore:function(e){d=e},set:function(e,t,n){d[n]||(d[n]={}),d[n].col=e,d[n].line=t}};function x(e){document.title=e}},function(e,t,n){"use strict";n.r(t),n.d(t,"append",function(){return s}),n.d(t,"flush",function(){return a}),n.d(t,"newline",function(){return l});var o=n(7);const r=[""];function i(e){let t="";for(let n=0;n<e.length;++n)if(e.charCodeAt(n)>127)t+="&#"+e.charCodeAt(n)+";";else switch(e[n]){case"&":t+="&amp;";break;case"<":t+="&lt;";break;case">":t+="&gt;";break;case"\r":t+="\n";break;default:t+=e[n]}return t}function s(e,t){if(r[t]||(r[t]=""),e.indexOf("\n")>-1||e.indexOf("\r")>-1){const n=Math.max(e.lastIndexOf("\n"),e.lastIndexOf("\r"))+1;r[t]+=i(e.substr(0,n)),a(t),r[t]=i(e.substr(n))}else r[t]+=i(e)}function a(e){if(void 0===e)for(var t in r)a(+t);r[e]&&haven.window.get(e)&&(haven.window.append(r[e],e),r[e]="",0===e&&Object(o.textWasPrinted)(!0))}function l(e){r[e]?r[e]+="\n":r[e]="\n",a(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return d}),n.d(t,"c",function(){return f}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return h}),n.d(t,"f",function(){return g});var o=n(3),r=(n(5),n(1));let i=[u(0)],s=[{bold:!1,italic:!1,underline:!1,proportional:!0,original:0}],a=!0,l=!1;function u(e){return 1===e?{text:15,background:1}:{text:7,background:0}}function c(e,t){const n=[],o=Object(r.get)().getElementsByTagName("INPUT")[0],c=0===t;i[t]||(i[t]=u(t)),a&&(n.push("textcolor-"+i[t].text),n.push("bgcolor-"+i[t].background)),e.className=e.className.replace(/\b(text|bg)color-\d+/g,""),e.classList.remove("font-fixed-width"),c&&(o.className=o.className.replace(/\b(text|bg)color-\d+/g,""),o.classList.remove("font-fixed-width")),s[t]||(s[t]={bold:!1,italic:!1,underline:!1,proportional:!0,original:0});for(let r in s[t])l&&"proportional"===r||s[t].hasOwnProperty(r)&&(e.classList.remove("font-"+r),c&&o.classList.remove("font-"+r),s[t][r]&&n.push("font-"+r));l||!s[t].hasOwnProperty("proportional")||s[t].proportional||n.push("font-fixed-width");for(let t=0;t<n.length;++t)e.classList.add(n[t]),c&&o.classList.add(n[t])}const d={get:function(){return i},restore:function(e){i=e},set:function(e,t,n){i[n]||(i[n]=u(n)),i[n][e]!==t&&(Object(o.flush)(n),i[n][e]=t)}},f={get:function(){return s}};function p(e){l=!e.engineFontFamily,a=e.engineColors}function h(e){s=e}function g(e,t,n){Object(o.flush)(n),s[n][e]=t}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return s});const o={autosave:!0,exit_url:"",extra_opcodes:!0,proxy_url:"proxy.php",use_proxy:"auto",windowing:!0};function r(e,t,n){var o,r=new RegExp("[?&]"+e+"=(.*?)(#|&|$)","i").exec(window.location.href);if(null===r||r.length<2)return n;switch(o=decodeURIComponent(r[1].split("+").join(" ")),t){case"boolean":return"true"===o.toLowerCase()||"on"===o||"1"===o||"false"!==o.toLowerCase()&&"off"!==o&&"0"!==o&&n;case"number":return parseFloat(o)+""===o?parseFloat(o):NaN;default:return 0===o.length?n:o}}function i(e){return o[e]}function s(e){let t;for(t in e=e||{})e.hasOwnProperty(t)&&void 0!==e[t]&&(o[t]=e[t]);if(o.lock_story||(o.story=r("story","string",o.story)),!o.lock_options){for(t in o)"story"!==t&&o.hasOwnProperty(t)&&(o[t]=r(t,typeof o[t],o[t]));"false"!==o.exit_url&&"0"!==o.exit_url||(o.exit_url=!1)}}},function(e,t,n){"use strict";function o(e){const t=document.createElement("div"),n=document.getElementById("spinner"),o=document.getElementById("loader");throw t.id="fatal-error",t.innerHTML=e,document.body.appendChild(t),n&&n.parentNode.removeChild(n),o&&(o.className="stopped"),new Error(e)}n.d(t,"a",function(){return o})},function(e,t,n){"use strict";n.r(t),n.d(t,"getMode",function(){return u}),n.d(t,"init",function(){return c}),n.d(t,"keypress",function(){return d}),n.d(t,"setMode",function(){return f}),n.d(t,"textWasPrinted",function(){return p}),n.d(t,"getTextWasPrinted",function(){return h});var o=n(3),r=n(1),i=n(6);let s=null;const a=[];let l=!1;function u(){return s}function c(){document.addEventListener("keydown",d.send,!1),document.addEventListener("click",d.send,!1)}const d={init:function(){s||(s="buffer")},isWaiting:function(){return Object(o.flush)(),l&&Object(r.scrollOrFocus)(),a.length>0},send:function(e){const t=e.keyCode,n=document.documentElement,o=(window.pageYOffset||n.scrollTop)-(n.clientTop||0);if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)){switch(s){case"buffer":a.push(t);break;case"getline":case null:return void Object(r.scrollOrFocus)(e);case"getkey":break;case"endgame":return void(window.location=hugojs_options.exit_url);default:Object(i.a)("Interpreter error: unknown input mode "+s)}s="buffer",o+window.innerHeight<document.body.clientHeight-40?Object(r.scrollOrFocus)(e):Module.ccall("haven_getkey","null",["number"],[t])}},wait:function(){s="getkey",Object(o.flush)(),Object(r.setDoScroll)(),a.length>0&&d.send({keyCode:a.shift()})}};function f(e){s=e}function p(e=!0){l=e}function h(){return p}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"b",function(){return a}),n.d(t,"c",function(){return l});const o=["engine","storyfile"],r=[];let i;function s(e){0===o.length&&setTimeout(e,0),r.push(e)}function a(e){i=e}function l(e){const t=o.indexOf(e);return-1!==t&&(o.splice(t,1),0===o.length&&function(){let e=0;const t=function(){++e<r.length?r[e](t):i&&i()};0!==r.length&&r[0](t)}(),!0)}},function(e,t,n){"use strict";n.r(t),n.d(t,"error",function(){return s}),n.d(t,"log",function(){return a}),n.d(t,"off",function(){return l}),n.d(t,"on",function(){return u}),n.d(t,"status",function(){return c}),n.d(t,"toggle",function(){return d});var o=n(6),r=n(3);let i=!1;function s(e){return console.error(e),Object(o.a)(e),!0}function a(e){return!!i&&(console.log(e),Object(r.append)("["+e+"]\n",0),!0)}function l(){return i=!1,c()}function u(){return i=!0,c()}function c(){return i}function d(){return i=!i,c()}},function(e,t,n){"use strict";n.r(t),n.d(t,"autosave",function(){return l}),n.d(t,"restoreUI",function(){return u});var o=n(5),r=n(1),i=n(2),s=n(4);let a="";const l={remove:function(){try{FS.unlink(a)}catch(e){}try{FS.unlink(a+"_uidata")}catch(e){}},restore:function(){try{FS.stat(a),Module.ccall("hugojs_set_autosave_filename","null",["string"],[a])}catch(e){}},save:function(){if(!Object(o.a)("autosave"))return;Module.ccall("haven_save_autosave","int",["string"],[a])&&FS.writeFile(a+"_uidata",JSON.stringify(haven.window.getUIState()),{encoding:"utf8"})},setName:function(e){a=e}};function u(){const e=function(){try{const e=FS.readFile(a+"_uidata",{encoding:"utf8"});return JSON.parse(e)}catch(e){return null}}();let t;if(e){t=Object(o.a)("windowing")?e.windowContents.length:1,Object(i.clear)();for(let n=0;n<t;++n)Object(i.create)(n,e.windowDimensions[n].left,e.windowDimensions[n].top,e.windowDimensions[n].right,e.windowDimensions[n].bottom);s.b.restore(e.currentColors),Object(s.e)(e.font),i.position.restore(e.position),e.title&&(document.title=e.title);for(let t=0;t<e.windowContents.length;++t)Object(i.get)(t).innerHTML=e.windowContents[t],Object(s.a)(haven.window.get(t),t);Object(s.a)(document.body,0),Module.ccall("hugojs_set_font","null",["int"],[e.font[0].original]),Module.ccall("hugojs_set_colors","null",["int","int"],[e.currentColors[0].text,e.currentColors[0].background]),r.history.set(e.cmdHistory||[]),window.scrollTo(0,9e9),Object(r.setDoScroll)()}}},function(e){e.exports={a:"3.1.0"}},function(e,t,n){var o;e.exports=function e(t,n,r){function i(a,l){if(!n[a]){if(!t[a]){var u="function"==typeof o&&o;if(!l&&u)return o(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof o&&o,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){
  /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
  "document"in window.self&&("classList"in document.createElement("_")&&(!document.createElementNS||"classList"in document.createElementNS("http://www.w3.org/2000/svg","g"))||function(e){"use strict";if("Element"in e){var t=e.Element.prototype,n=Object,o=String.prototype.trim||function(){return this.replace(/^\s+|\s+$/g,"")},r=Array.prototype.indexOf||function(e){for(var t=0,n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1},i=function(e,t){this.name=e,this.code=DOMException[e],this.message=t},s=function(e,t){if(""===t)throw new i("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(t))throw new i("INVALID_CHARACTER_ERR","String contains an invalid character");return r.call(e,t)},a=function(e){for(var t=o.call(e.getAttribute("class")||""),n=t?t.split(/\s+/):[],r=0,i=n.length;r<i;r++)this.push(n[r]);this._updateClassName=function(){e.setAttribute("class",this.toString())}},l=a.prototype=[],u=function(){return new a(this)};if(i.prototype=Error.prototype,l.item=function(e){return this[e]||null},l.contains=function(e){return-1!==s(this,e+="")},l.add=function(){var e,t=arguments,n=0,o=t.length,r=!1;do{e=t[n]+"",-1===s(this,e)&&(this.push(e),r=!0)}while(++n<o);r&&this._updateClassName()},l.remove=function(){var e,t,n=arguments,o=0,r=n.length,i=!1;do{for(e=n[o]+"",t=s(this,e);-1!==t;)this.splice(t,1),i=!0,t=s(this,e)}while(++o<r);i&&this._updateClassName()},l.toggle=function(e,t){e+="";var n=this.contains(e),o=n?!0!==t&&"remove":!1!==t&&"add";return o&&this[o](e),!0===t||!1===t?t:!n},l.toString=function(){return this.join(" ")},n.defineProperty){var c={get:u,enumerable:!0,configurable:!0};try{n.defineProperty(t,"classList",c)}catch(e){void 0!==e.number&&-2146823252!==e.number||(c.enumerable=!1,n.defineProperty(t,"classList",c))}}else n.prototype.__defineGetter__&&t.__defineGetter__("classList",u)}}(window.self),function(){"use strict";var e=document.createElement("_");if(e.classList.add("c1","c2"),!e.classList.contains("c2")){var t=function(e){var t=DOMTokenList.prototype[e];DOMTokenList.prototype[e]=function(e){var n,o=arguments.length;for(n=0;n<o;n++)e=arguments[n],t.call(this,e)}};t("add"),t("remove")}if(e.classList.toggle("c3",!1),e.classList.contains("c3")){var n=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:n.call(this,e)}}e=null}())},{}],2:[function(e,t,n){t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var o=n[1];if("body"==o){var r=t.createElement("html");return r.innerHTML=e,r.removeChild(r.lastChild)}var s=i[o]||i._default,a=s[0],l=s[1],u=s[2];for((r=t.createElement("div")).innerHTML=l+e+u;a--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);for(var c=t.createDocumentFragment();r.firstChild;)c.appendChild(r.removeChild(r.firstChild));return c};var o,r=!1;"undefined"!=typeof document&&((o=document.createElement("div")).innerHTML='  <link/><table></table><a href="/a">a</a><input type="checkbox"/>',r=!o.getElementsByTagName("link").length,o=void 0);var i={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:r?[1,"X<div>","</div>"]:[0,"",""]};i.td=i.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],i.option=i.optgroup=[1,'<select multiple="multiple">',"</select>"],i.thead=i.tbody=i.colgroup=i.caption=i.tfoot=[1,"<table>","</table>"],i.polyline=i.ellipse=i.polygon=i.circle=i.text=i.line=i.path=i.rect=i.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],3:[function(e,t,n){"use strict";function o(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),o=1;o<arguments.length;o++){var r=arguments[o];if(void 0!==r&&null!==r)for(var i=Object.keys(Object(r)),s=0,a=i.length;s<a;s++){var l=i[s],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(n[l]=r[l])}}return n}t.exports={assign:o,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:o})}}},{}],4:[function(e,t,n){e("classlist-polyfill"),e("es6-object-assign").polyfill();var o=e("domify"),r=function(e){if(void 0!==e){var t=document.createElement("div");return t.appendChild(document.createTextNode(e)),t.innerHTML}return""},i=function(e,t){if("string"==typeof t&&0!==t.length)for(var n=t.split(" "),o=0;o<n.length;o++){var r=n[o];r.length&&e.classList.add(r)}},s=function(){var e=document.createElement("div"),t={animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oanimationend",msAnimation:"MSAnimationEnd"};for(var n in t)if(void 0!==e.style[n])return t[n];return!1}(),a={vex:"vex",content:"vex-content",overlay:"vex-overlay",close:"vex-close",closing:"vex-closing",open:"vex-open"},l={},u=1,c=!1,d={open:function(e){var t=function(e){console.warn('The "'+e+'" property is deprecated in vex 3. Use CSS classes and the appropriate "ClassName" options, instead.'),console.warn("See http://github.hubspot.com/vex/api/advanced/#options")};e.css&&t("css"),e.overlayCSS&&t("overlayCSS"),e.contentCSS&&t("contentCSS"),e.closeCSS&&t("closeCSS");var n={};n.id=u++,l[n.id]=n,n.isOpen=!0,n.close=function(){if(!this.isOpen)return!0;var e=this.options;if(c&&!e.escapeButtonCloses)return!1;var t=function(){return!e.beforeClose||e.beforeClose.call(this)}.bind(this)();if(!1===t)return!1;this.isOpen=!1;var n=window.getComputedStyle(this.contentEl);function o(e){return"none"!==n.getPropertyValue(e+"animation-name")&&"0s"!==n.getPropertyValue(e+"animation-duration")}var r=o("")||o("-webkit-")||o("-moz-")||o("-o-"),i=function t(){this.rootEl.parentNode&&(this.rootEl.removeEventListener(s,t),this.overlayEl.removeEventListener(s,t),delete l[this.id],this.rootEl.parentNode.removeChild(this.rootEl),this.bodyEl.removeChild(this.overlayEl),e.afterClose&&e.afterClose.call(this),0===Object.keys(l).length&&document.body.classList.remove(a.open))}.bind(this);return s&&r?(this.rootEl.addEventListener(s,i),this.overlayEl.addEventListener(s,i),this.rootEl.classList.add(a.closing),this.overlayEl.classList.add(a.closing)):i(),!0},"string"==typeof e&&(e={content:e}),e.unsafeContent&&!e.content?e.content=e.unsafeContent:e.content&&(e.content=r(e.content));var f=n.options=Object.assign({},d.defaultOptions,e),p=n.bodyEl=document.getElementsByTagName("body")[0],h=n.rootEl=document.createElement("div");h.classList.add(a.vex),i(h,f.className);var g=n.overlayEl=document.createElement("div");g.classList.add(a.overlay),i(g,f.overlayClassName),f.overlayClosesOnClick&&h.addEventListener("click",function(e){e.target===h&&n.close()}),p.appendChild(g);var m=n.contentEl=document.createElement("div");if(m.classList.add(a.content),i(m,f.contentClassName),m.appendChild(f.content instanceof window.Node?f.content:o(f.content)),h.appendChild(m),f.showCloseButton){var v=n.closeEl=document.createElement("div");v.classList.add(a.close),i(v,f.closeClassName),v.addEventListener("click",n.close.bind(n)),m.appendChild(v)}return document.querySelector(f.appendLocation).appendChild(h),f.afterOpen&&f.afterOpen.call(n),document.body.classList.add(a.open),n},close:function(e){var t;if(e.id)t=e.id;else{if("string"!=typeof e)throw new TypeError("close requires a vex object or id string");t=e}return!!l[t]&&l[t].close()},closeTop:function(){var e=Object.keys(l);return!!e.length&&l[e[e.length-1]].close()},closeAll:function(){for(var e in l)this.close(e);return!0},getAll:function(){return l},getById:function(e){return l[e]}};window.addEventListener("keyup",function(e){27===e.keyCode&&(c=!0,d.closeTop(),c=!1)}),window.addEventListener("popstate",function(){d.defaultOptions.closeAllOnPopState&&d.closeAll()}),d.defaultOptions={content:"",showCloseButton:!0,escapeButtonCloses:!0,overlayClosesOnClick:!0,appendLocation:"body",className:"",overlayClassName:"",contentClassName:"",closeClassName:"",closeAllOnPopState:!0},Object.defineProperty(d,"_escapeHtml",{configurable:!1,enumerable:!1,writable:!1,value:r}),d.registerPlugin=function(e,t){var n=e(d),o=t||n.name;if(d[o])throw new Error("Plugin "+t+" is already registered.");d[o]=n},t.exports=d},{"classlist-polyfill":1,domify:2,"es6-object-assign":3}]},{},[4])(4)},function(e,t,n){"use strict";n.r(t),n.d(t,"hide",function(){return l}),n.d(t,"init",function(){return u}),n.d(t,"queueCommand",function(){return c}),n.d(t,"setPrefix",function(){return d}),n.d(t,"setValue",function(){return f}),n.d(t,"submit",function(){return p}),n.d(t,"unhide",function(){return h});var o=n(0),r=n.n(o),i=n(1);const s=[];function a(){if(s.length>0){const e=s.shift();f(e.cmd),p(e.silent)}}function l(){r()(Object(i.get)()).addClass("force-hidden")}function u(){Object(i.get)().addEventListener("lineinputReady",a)}function c(e,t=!1){s.push({cmd:e,silent:!!t}),haven.prompt.isReady()&&a()}function d(e,t=!1){let n=e;return t||(n=r()("<div>").text(e).html()),i.prefix.set(n),n}function f(e){r()(Object(i.get)()).find("#lineinput-field").val(e)}function p(e=!1){Object(i.get)().dispatchEvent(new CustomEvent("submit",{detail:{silent:!!e}}))}function h(){r()(Object(i.get)()).removeClass("force-hidden"),Object(i.resizeInput)()}},function(e,t,n){var o;!function(){"use strict";
  /**
  	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
  	 *
  	 * @codingstandard ftlabs-jsv2
  	 * @copyright The Financial Times Limited [All Rights Reserved]
  	 * @license MIT License (see LICENSE.txt)
  	 */function r(e,t){var n;if(t=t||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=t.touchBoundary||10,this.layer=e,this.tapDelay=t.tapDelay||200,this.tapTimeout=t.tapTimeout||700,!r.notNeeded(e)){for(var o=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],i=0,a=o.length;i<a;i++)this[o[i]]=l(this[o[i]],this);s&&(e.addEventListener("mouseover",this.onMouse,!0),e.addEventListener("mousedown",this.onMouse,!0),e.addEventListener("mouseup",this.onMouse,!0)),e.addEventListener("click",this.onClick,!0),e.addEventListener("touchstart",this.onTouchStart,!1),e.addEventListener("touchmove",this.onTouchMove,!1),e.addEventListener("touchend",this.onTouchEnd,!1),e.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(e.removeEventListener=function(t,n,o){var r=Node.prototype.removeEventListener;"click"===t?r.call(e,t,n.hijacked||n,o):r.call(e,t,n,o)},e.addEventListener=function(t,n,o){var r=Node.prototype.addEventListener;"click"===t?r.call(e,t,n.hijacked||(n.hijacked=function(e){e.propagationStopped||n(e)}),o):r.call(e,t,n,o)}),"function"==typeof e.onclick&&(n=e.onclick,e.addEventListener("click",function(e){n(e)},!1),e.onclick=null)}function l(e,t){return function(){return e.apply(t,arguments)}}}var i=navigator.userAgent.indexOf("Windows Phone")>=0,s=navigator.userAgent.indexOf("Android")>0&&!i,a=/iP(ad|hone|od)/.test(navigator.userAgent)&&!i,l=a&&/OS 4_\d(_\d)?/.test(navigator.userAgent),u=a&&/OS [6-7]_\d/.test(navigator.userAgent),c=navigator.userAgent.indexOf("BB10")>0;r.prototype.needsClick=function(e){switch(e.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(e.disabled)return!0;break;case"input":if(a&&"file"===e.type||e.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(e.className)},r.prototype.needsFocus=function(e){switch(e.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!s;case"input":switch(e.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!e.disabled&&!e.readOnly;default:return/\bneedsfocus\b/.test(e.className)}},r.prototype.sendClick=function(e,t){var n,o;document.activeElement&&document.activeElement!==e&&document.activeElement.blur(),o=t.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(e),!0,!0,window,1,o.screenX,o.screenY,o.clientX,o.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,e.dispatchEvent(n)},r.prototype.determineEventType=function(e){return s&&"select"===e.tagName.toLowerCase()?"mousedown":"click"},r.prototype.focus=function(e){var t;a&&e.setSelectionRange&&0!==e.type.indexOf("date")&&"time"!==e.type&&"month"!==e.type?(t=e.value.length,e.setSelectionRange(t,t)):e.focus()},r.prototype.updateScrollParent=function(e){var t,n;if(!(t=e.fastClickScrollParent)||!t.contains(e)){n=e;do{if(n.scrollHeight>n.offsetHeight){t=n,e.fastClickScrollParent=n;break}n=n.parentElement}while(n)}t&&(t.fastClickLastScrollTop=t.scrollTop)},r.prototype.getTargetElementFromEventTarget=function(e){return e.nodeType===Node.TEXT_NODE?e.parentNode:e},r.prototype.onTouchStart=function(e){var t,n,o;if(e.targetTouches.length>1)return!0;if(t=this.getTargetElementFromEventTarget(e.target),n=e.targetTouches[0],a){if((o=window.getSelection()).rangeCount&&!o.isCollapsed)return!0;if(!l){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return e.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(t)}}return this.trackingClick=!0,this.trackingClickStart=e.timeStamp,this.targetElement=t,this.touchStartX=n.pageX,this.touchStartY=n.pageY,e.timeStamp-this.lastClickTime<this.tapDelay&&e.preventDefault(),!0},r.prototype.touchHasMoved=function(e){var t=e.changedTouches[0],n=this.touchBoundary;return Math.abs(t.pageX-this.touchStartX)>n||Math.abs(t.pageY-this.touchStartY)>n},r.prototype.onTouchMove=function(e){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(e.target)||this.touchHasMoved(e))&&(this.trackingClick=!1,this.targetElement=null),!0)},r.prototype.findControl=function(e){return void 0!==e.control?e.control:e.htmlFor?document.getElementById(e.htmlFor):e.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},r.prototype.onTouchEnd=function(e){var t,n,o,r,i,c=this.targetElement;if(!this.trackingClick)return!0;if(e.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(e.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=e.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,u&&(i=e.changedTouches[0],(c=document.elementFromPoint(i.pageX-window.pageXOffset,i.pageY-window.pageYOffset)||c).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(o=c.tagName.toLowerCase())){if(t=this.findControl(c)){if(this.focus(c),s)return!1;c=t}}else if(this.needsFocus(c))return e.timeStamp-n>100||a&&window.top!==window&&"input"===o?(this.targetElement=null,!1):(this.focus(c),this.sendClick(c,e),a&&"select"===o||(this.targetElement=null,e.preventDefault()),!1);return!(!a||l||!(r=c.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(c)||(e.preventDefault(),this.sendClick(c,e)),!1)},r.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},r.prototype.onMouse=function(e){return!this.targetElement||(!!e.forwardedTouchEvent||(!e.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(e.stopImmediatePropagation?e.stopImmediatePropagation():e.propagationStopped=!0,e.stopPropagation(),e.preventDefault(),!1))))},r.prototype.onClick=function(e){var t;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===e.target.type&&0===e.detail||((t=this.onMouse(e))||(this.targetElement=null),t)},r.prototype.destroy=function(){var e=this.layer;s&&(e.removeEventListener("mouseover",this.onMouse,!0),e.removeEventListener("mousedown",this.onMouse,!0),e.removeEventListener("mouseup",this.onMouse,!0)),e.removeEventListener("click",this.onClick,!0),e.removeEventListener("touchstart",this.onTouchStart,!1),e.removeEventListener("touchmove",this.onTouchMove,!1),e.removeEventListener("touchend",this.onTouchEnd,!1),e.removeEventListener("touchcancel",this.onTouchCancel,!1)},r.notNeeded=function(e){var t,n,o;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!s)return!0;if(t=document.querySelector("meta[name=viewport]")){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(c&&(o=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&o[2]>=3&&(t=document.querySelector("meta[name=viewport]"))){if(-1!==t.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===e.style.msTouchAction||"manipulation"===e.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(t=document.querySelector("meta[name=viewport]"))&&(-1!==t.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===e.style.touchAction||"manipulation"===e.style.touchAction))},r.attach=function(e,t){return new r(e,t)},void 0===(o=function(){return r}.call(t,n,t,e))||(e.exports=o)}()},function(e,t){try{var n=new window.CustomEvent("test");if(n.preventDefault(),!0!==n.defaultPrevented)throw new Error("Could not prevent default")}catch(e){var o=function(e,t){var n,o;return t=t||{bubbles:!1,cancelable:!1,detail:void 0},(n=document.createEvent("CustomEvent")).initCustomEvent(e,t.bubbles,t.cancelable,t.detail),o=n.preventDefault,n.preventDefault=function(){o.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented=!0}},n};o.prototype=window.Event.prototype,window.CustomEvent=o}},function(e,t,n){"use strict";n.r(t),n.d(t,"defaults",function(){return l}),n.d(t,"clearPlaylist",function(){return c}),n.d(t,"currentMusicPlaying",function(){return d}),n.d(t,"fadeOut",function(){return f}),n.d(t,"isAudioPlaying",function(){return p}),n.d(t,"isEffectPlaying",function(){return h}),n.d(t,"isElementPlaying",function(){return g}),n.d(t,"isMusicPlaying",function(){return m}),n.d(t,"playMusic",function(){return v}),n.d(t,"playSound",function(){return y}),n.d(t,"setPlaylist",function(){return b}),n.d(t,"stopMusic",function(){return w});var o=n(0),r=n.n(o);let i,s=[],a=[];const l={fadeDuration:1e3,pauseBetweenTracks:1e3};function u(){clearTimeout(i),0===s.length&&a.length>0&&(s=a.slice()),0!==s.length&&(r()(".vorple-music").data("stopping",!0),i=setTimeout(function(){const e=s.shift();e&&v(e.url,e.looping)},l.pauseBetweenTracks))}function c(){a=[],s=[]}function d(){const e=r()(".vorple-music");return 0===e.length?null:e.data("stopping")||!m()?s.length>0?s[0].url:a.length>0?a[0].url:null:e.attr("src")}function f(e,t,n){const o=50,i=r()(e),s=i.get(0),a=e=>{e&&i.remove(),"function"==typeof n&&n()};if("number"!=typeof t&&(t=l.fadeDuration),!s||"AUDIO"!==s.tagName)return a(!1),!1;if(t<=0)return a(!0),!0;t=Math.min(t,6e4);const u=o/t;return clearTimeout(i.data("fadeouttimer")),i.data("stopping",!0),function e(t){if(s.volume=Math.max(t,0),t>0){const n=setTimeout(function(){e(t-u)},o);i.data("fadeouttimer",n)}else i.remove(),a(!0)}(s.volume-u),!0}function p(){return h()||m()}function h(){let e=!1;return r()(".vorple-sound").each(function(){if(g(this))return e=!0,!1}),e}function g(e){const t=r()(e).get(0);return!(!t||"AUDIO"!==t.tagName||t.paused)}function m(){const e=r()(".vorple-music");return 0!==e.length&&(s.length>0||(a.length>0||!e.data("stopping")&&g(e)))}function v(e,t={}){const n=r()(".vorple-music"),{looping:o,restart:a}=t;clearTimeout(i),!a&&(n.length>0&&n.attr("src")===e||0===n.length&&s.length>0&&s[0].url===e)?(clearTimeout(n.data("fadeOutTimer")),n.prop("volume",1).data("stopping",!1).prop("loop",!!o).get(0).play()):a&&g(".vorple-music")?(s.unshift({url:e,looping:!!o}),f(n,null,u)):(n.remove(),r()('<audio class="vorple-audio vorple-music">').attr("src",e).prop("loop",!!o).appendTo("body").on("ended",u).get(0).play())}function y(e,t={}){const n=!!t.looping,o=r()('<audio class="vorple-audio vorple-music">').attr("src",e).prop("loop",n).appendTo("body").get(0).play();n||o.on("ended",function(){this.remove()})}function b(e,t={}){if(0===e.length)return s=[],void(a=[]);const{looping:n,restart:o,shuffled:r}=t,i=d(),l=e.map(e=>"string"==typeof e?{url:e,looping:!1}:e);r&&function(e){for(let t=e.length-1;t>0;t--){const n=Math.floor(Math.random()*(t+1));[e[t],e[n]]=[e[n],e[t]]}}(l);const u=o?-1:l.findIndex(e=>e.url===i),c=u<1?0:u;s=l.slice(c+1),n&&(a=l.slice()),i!==l[c].url&&v(l[c].url)}function w(e){const t=r()(".vorple-music");s=[],a=[],t.length>0&&f(t,e,u)}},function(e,t,n){"use strict";n.r(t),n.d(t,"setStyle",function(){return i}),n.d(t,"setStyleHint",function(){return s});var o=n(4);const r=[];function i(e){if(r[e])for(let t in r[e])Object(o.f)(t,r[e][t],0)}function s(e,t,n){r[e]||(r[e]={bold:!1,italic:!1,underline:!1});const o=r[e];switch(t){case 4:o.bold=1===n;break;case 5:o.italic=1===n}}r[0]={bold:!1,italic:!1,underline:!1},r[1]={italic:!0},r[2]={},r[3]={bold:!0},r[4]={bold:!0},window.Module.arguments=["-q","-u","/storyfile.gblorb"]},function(e,t,n){"use strict";n.r(t),n.d(t,"block",function(){return a}),n.d(t,"closeTag",function(){return l}),n.d(t,"focus",function(){return u}),n.d(t,"openTag",function(){return c}),n.d(t,"scrollTo",function(){return d}),n.d(t,"scrollToEnd",function(){return f}),n.d(t,"unblock",function(){return p});var o=n(0),r=n.n(o),i=n(3),s=n(2);function a(){r()(document).on("keydown.vorple.uiblock",function(e){return e.stopImmediatePropagation(),!1}),r()('<div class="uiblock">').on("click.vorple.uiblock",function(e){return e.stopImmediatePropagation(),!1}).appendTo("body")}function l(e=0){const t=s.container.get(e);return"window0"!==t.id&&(Object(i.flush)(e),s.container.set(t.parentNode,e),!0)}function u(e,t=0){const n=r()(e);return 0!==n.length&&(Object(i.flush)(),s.container.set(n.last().get(0),t),!0)}function c(e,t,n=0){const o=document.createElement(e),r=s.container.get(n);return o.className=t,Object(i.flush)(n),s.container.append(o,r),s.container.set(o,n),!0}function d(e){const t=r()(e);if(0===t.length)return!1;const n=r()("body").scrollTop(),o=t.offset().top,i=t.height(),s=r()(window).height(),a=r()(document).height()-s;return!(o>=n+30&&o<=s/2+n&&o+i<=n+s)&&(r()("html, body").stop().animate({scrollTop:Math.min(Math.max(o-30,0),a)},500),!0)}function f(){r()("html, body").stop().animate({scrollTop:r()(document).height()-r()(window).height()},500)}function p(){r()(".uiblock").remove(),r()(document).off("keydown.vorple.uiblock")}},function(e,t,n){var o;e.exports=function e(t,n,r){function i(a,l){if(!n[a]){if(!t[a]){var u="function"==typeof o&&o;if(!l&&u)return o(a,!0);if(s)return s(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return i(n||e)},d,d.exports,e,t,n,r)}return n[a].exports}for(var s="function"==typeof o&&o,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,t,n){"use strict";t.exports=function e(t){if(!t||"object"!=typeof t)return t;if("[object Date]"==Object.prototype.toString.call(t))return new Date(t.getTime());if(Array.isArray(t))return t.map(e);var n={};return Object.keys(t).forEach(function(o){n[o]=e(t[o])}),n}},{}],2:[function(e,t,n){t.exports=function(e,t){if("string"!=typeof e)throw new TypeError("String expected");t||(t=document);var n=/<([\w:]+)/.exec(e);if(!n)return t.createTextNode(e);e=e.replace(/^\s+|\s+$/g,"");var o=n[1];if("body"==o){var r=t.createElement("html");return r.innerHTML=e,r.removeChild(r.lastChild)}var s=i[o]||i._default,a=s[0],l=s[1],u=s[2];for((r=t.createElement("div")).innerHTML=l+e+u;a--;)r=r.lastChild;if(r.firstChild==r.lastChild)return r.removeChild(r.firstChild);for(var c=t.createDocumentFragment();r.firstChild;)c.appendChild(r.removeChild(r.firstChild));return c};var o,r=!1;"undefined"!=typeof document&&((o=document.createElement("div")).innerHTML='  <link/><table></table><a href="/a">a</a><input type="checkbox"/>',r=!o.getElementsByTagName("link").length,o=void 0);var i={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:r?[1,"X<div>","</div>"]:[0,"",""]};i.td=i.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],i.option=i.optgroup=[1,'<select multiple="multiple">',"</select>"],i.thead=i.tbody=i.colgroup=i.caption=i.tfoot=[1,"<table>","</table>"],i.polyline=i.ellipse=i.polygon=i.circle=i.text=i.line=i.path=i.rect=i.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],3:[function(e,t,n){var o=/^(?:submit|button|image|reset|file)$/i,r=/^(?:input|select|textarea|keygen)/i,i=/(\[[^\[\]]*\])/g;function s(e,t,n){var o=t.match(i);if(o){var r=function(e){var t=[],n=new RegExp(i),o=/^([^\[\]]*)/.exec(e);for(o[1]&&t.push(o[1]);null!==(o=n.exec(e));)t.push(o[1]);return t}(t);!function e(t,n,o){if(0===n.length)return t=o;var r=n.shift(),i=r.match(/^\[(.+?)\]$/);if("[]"===r)return t=t||[],Array.isArray(t)?t.push(e(null,n,o)):(t._values=t._values||[],t._values.push(e(null,n,o))),t;if(i){var s=i[1],a=+s;isNaN(a)?(t=t||{})[s]=e(t[s],n,o):(t=t||[])[a]=e(t[a],n,o)}else t[r]=e(t[r],n,o);return t}(e,r,n)}else{var s=e[t];s?(Array.isArray(s)||(e[t]=[s]),e[t].push(n)):e[t]=n}return e}function a(e,t,n){return n=n.replace(/(\r)?\n/g,"\r\n"),n=(n=encodeURIComponent(n)).replace(/%20/g,"+"),e+(e?"&":"")+encodeURIComponent(t)+"="+n}t.exports=function(e,t){"object"!=typeof t?t={hash:!!t}:void 0===t.hash&&(t.hash=!0);for(var n=t.hash?{}:"",i=t.serializer||(t.hash?s:a),l=e&&e.elements?e.elements:[],u=Object.create(null),c=0;c<l.length;++c){var d=l[c];if((t.disabled||!d.disabled)&&d.name&&r.test(d.nodeName)&&!o.test(d.type)){var f=d.name,p=d.value;if("checkbox"!==d.type&&"radio"!==d.type||d.checked||(p=void 0),t.empty){if("checkbox"!==d.type||d.checked||(p=""),"radio"===d.type&&(u[d.name]||d.checked?d.checked&&(u[d.name]=!0):u[d.name]=!1),!p&&"radio"==d.type)continue}else if(!p)continue;if("select-multiple"!==d.type)n=i(n,f,p);else{p=[];for(var h=d.options,g=!1,m=0;m<h.length;++m){var v=h[m],y=t.empty&&!v.value,b=v.value||y;v.selected&&b&&(g=!0,n=t.hash&&"[]"!==f.slice(f.length-2)?i(n,f+"[]",v.value):i(n,f,v.value))}!g&&t.empty&&(n=i(n,f,""))}}}if(t.empty)for(var f in u)u[f]||(n=i(n,f,""));return n}},{}],4:[function(e,t,n){var o=e("domify"),r=e("form-serialize"),i=e("deep-clone-simple");t.exports=function(e){var t={name:"dialog",open:function(t){var n=Object.assign({},i(this.defaultOptions),t);n.unsafeMessage&&!n.message?n.message=n.unsafeMessage:n.message&&(n.message=e._escapeHtml(n.message));var r=n.unsafeContent=function(e){var t=document.createElement("form");t.classList.add("vex-dialog-form");var n=document.createElement("div");n.classList.add("vex-dialog-message"),n.appendChild(e.message instanceof window.Node?e.message:o(e.message));var r=document.createElement("div");return r.classList.add("vex-dialog-input"),r.appendChild(e.input instanceof window.Node?e.input:o(e.input)),t.appendChild(n),t.appendChild(r),t}(n),s=e.open(n);""!==n.yesText&&(n.buttons[0].text=n.yesText),""!==n.noText&&(n.buttons[1].text=n.noText);var a=n.beforeClose&&n.beforeClose.bind(s);if(s.options.beforeClose=function(){var e=!a||a();return e&&n.callback(this.value||!1),e}.bind(s),r.appendChild(function(e){var t=document.createElement("div");t.classList.add("vex-dialog-buttons");for(var n=0;n<e.length;n++){var o=e[n],r=document.createElement("button");r.type=o.type,r.textContent=o.text,r.className=o.className,r.classList.add("vex-dialog-button"),0===n?r.classList.add("vex-first"):n===e.length-1&&r.classList.add("vex-last"),function(e){r.addEventListener("click",function(t){e.click&&e.click.call(this,t)}.bind(this))}.bind(this)(o),t.appendChild(r)}return t}.call(s,n.buttons)),s.form=r,r.addEventListener("submit",n.onSubmit.bind(s)),n.focusFirstInput){var l=s.contentEl.querySelector("button, input, select, textarea");l&&l.focus()}return s},alert:function(e){return"string"==typeof e&&(e={message:e}),e=Object.assign({},i(this.defaultOptions),i(this.defaultAlertOptions),e),this.open(e)},confirm:function(e){if("object"!=typeof e||"function"!=typeof e.callback)throw new Error("dialog.confirm(options) requires options.callback.");return e=Object.assign({},i(this.defaultOptions),i(this.defaultConfirmOptions),e),this.open(e)},prompt:function(t){if("object"!=typeof t||"function"!=typeof t.callback)throw new Error("dialog.prompt(options) requires options.callback.");var n=Object.assign({},i(this.defaultOptions),i(this.defaultPromptOptions)),o={unsafeMessage:'<label for="vex">'+e._escapeHtml(t.label||n.label)+"</label>",input:'<input name="vex" type="text" class="vex-dialog-prompt-input" placeholder="'+e._escapeHtml(t.placeholder||n.placeholder)+'" value="'+e._escapeHtml(t.value||n.value)+'" />'},r=(t=Object.assign(n,o,t)).callback;return t.callback=function(e){if("object"==typeof e){var t=Object.keys(e);e=t.length?e[t[0]]:""}r(e)},this.open(t)},buttons:{YES:{text:"OK",type:"submit",className:"vex-dialog-button-primary",click:function(){this.value=!0}},NO:{text:"Cancel",type:"button",className:"vex-dialog-button-secondary",click:function(){this.value=!1,this.close()}}}};return t.defaultOptions={callback:function(){},afterOpen:function(){},message:"",input:"",yesText:"",noText:"",buttons:[t.buttons.YES,t.buttons.NO],showCloseButton:!1,onSubmit:function(e){return e.preventDefault(),this.options.input&&(this.value=r(this.form,{hash:!0})),this.close()},focusFirstInput:!0},t.defaultAlertOptions={buttons:[t.buttons.YES]},t.defaultPromptOptions={label:"Prompt:",placeholder:"",value:""},t.defaultConfirmOptions={},t}},{"deep-clone-simple":1,domify:2,"form-serialize":3}]},{},[4])(4)},function(e,t,n){var o,r,i;
  /*!
   PowerTip v1.3.1 (2018-04-15)
   https://stevenbenner.github.io/jquery-powertip/
   Copyright (c) 2018 Steven Benner (http://stevenbenner.com/).
   Released under MIT license.
   https://raw.github.com/stevenbenner/jquery-powertip/master/LICENSE.txt
  */r=[n(0)],void 0===(i="function"==typeof(o=function(e){var t=e(document),n=e(window),o=e("body"),r="displayController",i="hasActiveHover",s="forcedOpen",a="hasMouseMove",l="mouseOnToPopup",u="powertip",c="powertipjq",d="powertiptarget",f=".powertip",p=180/Math.PI,h=["click","dblclick","mousedown","mouseup","mousemove","mouseover","mouseout","mouseenter","mouseleave","contextmenu"],g={elements:null,tooltips:null,isTipOpen:!1,isFixedTipOpen:!1,isClosing:!1,tipOpenImminent:!1,activeHover:null,currentX:0,currentY:0,previousX:0,previousY:0,desyncTimeout:null,closeDelayTimeout:null,mouseTrackingActive:!1,delayInProgress:!1,windowWidth:0,windowHeight:0,scrollTop:0,scrollLeft:0},m={none:0,top:1,bottom:2,left:4,right:8};function v(){var t=this;t.top="auto",t.left="auto",t.right="auto",t.bottom="auto",t.set=function(n,o){e.isNumeric(o)&&(t[n]=Math.round(o))}}function y(t){return Boolean(t&&e.inArray(t.type,h)>-1&&"number"==typeof t.pageX)}function b(){g.scrollLeft=n.scrollLeft(),g.scrollTop=n.scrollTop(),g.windowWidth=n.width(),g.windowHeight=n.height()}function w(){g.windowWidth=n.width(),g.windowHeight=n.height()}function x(){var e=n.scrollLeft(),t=n.scrollTop();e!==g.scrollLeft&&(g.currentX+=e-g.scrollLeft,g.scrollLeft=e),t!==g.scrollTop&&(g.currentY+=t-g.scrollTop,g.scrollTop=t)}function T(e){g.currentX=e.pageX,g.currentY=e.pageY}function C(e){var t=e.offset(),n=e[0].getBoundingClientRect(),o=n.right-n.left,r=n.bottom-n.top;return g.currentX>=t.left&&g.currentX<=t.left+o&&g.currentY>=t.top&&g.currentY<=t.top+r}function E(e,t,n){var o=g.scrollTop,r=g.scrollLeft,i=o+g.windowHeight,s=r+g.windowWidth,a=m.none;return(e.top<o||Math.abs(e.bottom-g.windowHeight)-n<o)&&(a|=m.top),(e.top+n>i||Math.abs(e.bottom-g.windowHeight)>i)&&(a|=m.bottom),(e.left<r||e.right+t>s)&&(a|=m.left),(e.left+t>s||e.right<r)&&(a|=m.right),a}return e.fn.powerTip=function(h,k){var O,S,j=this;return j.length?"string"===e.type(h)&&e.powerTip[h]?e.powerTip[h].call(j,j,k):(O=e.extend({},e.fn.powerTip.defaults,h),e.powerTip.destroy(j),S=new function(h){var y=new function(){this.compute=function(e,t,n,o,r){var i,s=t.split("-")[0],a=new v;switch(i=function(e){return Boolean(window.SVGElement&&e[0]instanceof SVGElement)}(e)?function(e,t){var n,o,r,i,s=e.closest("svg")[0],a=e[0],l=s.createSVGPoint(),u=a.getBBox(),c=a.getScreenCTM(),d=u.width/2,f=u.height/2,h=[],m=["nw","n","ne","e","se","s","sw","w"];function v(){h.push(l.matrixTransform(c))}if(l.x=u.x,l.y=u.y,v(),l.x+=d,v(),l.x+=d,v(),l.y+=f,v(),l.y+=f,v(),l.x-=d,v(),l.x-=d,v(),l.y-=f,v(),h[0].y!==h[1].y||h[0].x!==h[7].x)for(o=Math.atan2(c.b,c.a)*p,(r=Math.ceil((o%360-22.5)/45))<1&&(r+=8);r--;)m.push(m.shift());for(i=0;i<h.length;i++)if(m[i]===t){n=h[i];break}return{top:n.y+g.scrollTop,left:n.x+g.scrollLeft}}(e,s):function(e,t){var n,o,r=e.offset(),i=e.outerWidth(),s=e.outerHeight();switch(t){case"n":n=r.left+i/2,o=r.top;break;case"e":n=r.left+i,o=r.top+s/2;break;case"s":n=r.left+i/2,o=r.top+s;break;case"w":n=r.left,o=r.top+s/2;break;case"nw":n=r.left,o=r.top;break;case"ne":n=r.left+i,o=r.top;break;case"sw":n=r.left,o=r.top+s;break;case"se":n=r.left+i,o=r.top+s}return{top:o,left:n}}(e,s),t){case"n":a.set("left",i.left-n/2),a.set("bottom",g.windowHeight-i.top+r);break;case"e":a.set("left",i.left+r),a.set("top",i.top-o/2);break;case"s":a.set("left",i.left-n/2),a.set("top",i.top+r);break;case"w":a.set("top",i.top-o/2),a.set("right",g.windowWidth-i.left+r);break;case"nw":a.set("bottom",g.windowHeight-i.top+r),a.set("right",g.windowWidth-i.left-20);break;case"nw-alt":a.set("left",i.left),a.set("bottom",g.windowHeight-i.top+r);break;case"ne":a.set("left",i.left-20),a.set("bottom",g.windowHeight-i.top+r);break;case"ne-alt":a.set("bottom",g.windowHeight-i.top+r),a.set("right",g.windowWidth-i.left);break;case"sw":a.set("top",i.top+r),a.set("right",g.windowWidth-i.left-20);break;case"sw-alt":a.set("left",i.left),a.set("top",i.top+r);break;case"se":a.set("left",i.left-20),a.set("top",i.top+r);break;case"se-alt":a.set("top",i.top+r),a.set("right",g.windowWidth-i.left)}return a}},b=e("#"+h.popupId);function w(n){var o;if(n.data(i)){if(g.isTipOpen)return g.isClosing||x(g.activeHover),void b.delay(100).queue(function(e){w(n),e()});n.trigger("powerTipPreRender"),(o=function(t){var n,o,r=t.data(u),i=t.data(c),s=t.data(d);return r?(e.isFunction(r)&&(r=r.call(t[0])),o=r):i?(e.isFunction(i)&&(i=i.call(t[0])),i.length>0&&(o=i.clone(!0,!0))):s&&(n=e("#"+s)).length>0&&(o=n.html()),o}(n))&&(b.empty().append(o),n.trigger("powerTipRender"),g.activeHover=n,g.isTipOpen=!0,b.data(l,h.mouseOnToPopup),b.addClass(h.popupClass),!h.followMouse||n.data(s)?(k(n),g.isFixedTipOpen=!0):T(),n.data(s)||h.followMouse||t.on("click"+f,function(t){var o=t.target;o!==n[0]&&(h.mouseOnToPopup&&(o===b[0]||e.contains(b[0],o))||e.powerTip.hide())}),h.mouseOnToPopup&&!h.manual&&(b.on("mouseenter"+f,function(){g.activeHover&&g.activeHover.data(r).cancel()}),b.on("mouseleave"+f,function(){g.activeHover&&g.activeHover.data(r).hide()})),b.fadeIn(h.fadeInTime,function(){g.desyncTimeout||(g.desyncTimeout=setInterval(S,500)),n.trigger("powerTipOpen")}))}}function x(e){g.isClosing=!0,g.isTipOpen=!1,g.desyncTimeout=clearInterval(g.desyncTimeout),e.data(i,!1),e.data(s,!1),t.off("click"+f),b.off(f),b.fadeOut(h.fadeOutTime,function(){var t=new v;g.activeHover=null,g.isClosing=!1,g.isFixedTipOpen=!1,b.removeClass(),t.set("top",g.currentY+h.offset),t.set("left",g.currentX+h.offset),b.css(t),e.trigger("powerTipClose")})}function T(){var e,t,n,o;!g.isFixedTipOpen&&(g.isTipOpen||g.tipOpenImminent&&b.data(a))&&(e=b.outerWidth(),t=b.outerHeight(),(n=new v).set("top",g.currentY+h.offset),n.set("left",g.currentX+h.offset),(o=E(n,e,t))!==m.none&&(1===function(e){for(var t=0;e;)e&=e-1,t++;return t}(o)?o===m.right?n.set("left",g.scrollLeft+g.windowWidth-e):o===m.bottom&&n.set("top",g.scrollTop+g.windowHeight-t):(n.set("left",g.currentX-e-h.offset),n.set("top",g.currentY-t-h.offset))),b.css(n))}function k(t){var n,o;h.smartPlacement||h.followMouse&&t.data(s)?(n=e.fn.powerTip.smartPlacementLists[h.placement],e.each(n,function(e,n){var r=E(O(t,n),b.outerWidth(),b.outerHeight());return o=n,r!==m.none})):(O(t,h.placement),o=h.placement),b.removeClass("w nw sw e ne se n s w se-alt sw-alt ne-alt nw-alt"),b.addClass(o)}function O(e,t){var n,o,r=0,i=new v;i.set("top",0),i.set("left",0),b.css(i);do{n=b.outerWidth(),o=b.outerHeight(),i=y.compute(e,t,n,o,h.offset),b.css(i)}while(++r<=5&&(n!==b.outerWidth()||o!==b.outerHeight()));return i}function S(){var t=!1,n=e.grep(["mouseleave","mouseout","blur","focusout"],function(t){return-1!==e.inArray(t,h.closeEvents)}).length>0;g.isTipOpen&&!g.isClosing&&!g.delayInProgress&&n&&(!1===g.activeHover.data(i)||g.activeHover.is(":disabled")?t=!0:C(g.activeHover)||g.activeHover.is(":focus")||g.activeHover.data(s)||b.data(l)&&C(b)||(t=!0),t&&x(g.activeHover))}0===b.length&&(b=e("<div/>",{id:h.popupId}),0===o.length&&(o=e("body")),o.append(b),g.tooltips=g.tooltips?g.tooltips.add(b):b),h.followMouse&&(b.data(a)||(t.on("mousemove"+f,T),n.on("scroll"+f,T),b.data(a,!0))),this.showTip=function(e){e.data(i,!0),b.queue(function(t){w(e),t()})},this.hideTip=x,this.resetPosition=k}(O),g.mouseTrackingActive||(g.mouseTrackingActive=!0,b(),e(b),t.on("mousemove"+f,T),n.on("resize"+f,w),n.on("scroll"+f,x)),j.each(function(){var t=e(this),n=t.data(u),o=t.data(c),a=t.data(d),l=t.attr("title");n||a||o||!l||(t.data(u,l),t.data("originalTitle",l),t.removeAttr("title")),t.data(r,new function(e,t,n){var o=null,a=null;function l(r,a){u(),e.data(i)?c():r?(a&&e.data(s,!0),d(),n.showTip(e)):(g.tipOpenImminent=!0,o=setTimeout(function(){o=null,function(){var o=Math.abs(g.previousX-g.currentX),r=Math.abs(g.previousY-g.currentY);o+r<t.intentSensitivity?(c(),d(),n.showTip(e)):(g.previousX=g.currentX,g.previousY=g.currentY,l())}()},t.intentPollInterval))}function u(e){o=clearTimeout(o),(g.closeDelayTimeout&&a===g.closeDelayTimeout||e)&&c()}function c(){g.closeDelayTimeout=clearTimeout(g.closeDelayTimeout),g.delayInProgress=!1}function d(){g.delayInProgress&&g.activeHover&&!g.activeHover.is(e)&&g.activeHover.data(r).hide(!0)}this.show=l,this.hide=function(o){a&&(a=g.closeDelayTimeout=clearTimeout(a),g.delayInProgress=!1),u(),g.tipOpenImminent=!1,e.data(i)&&(e.data(s,!1),o?n.hideTip(e):(g.delayInProgress=!0,g.closeDelayTimeout=setTimeout(function(){g.closeDelayTimeout=null,n.hideTip(e),g.delayInProgress=!1,a=null},t.closeDelay),a=g.closeDelayTimeout))},this.cancel=u,this.resetPosition=function(){n.resetPosition(e)}}(t,O,S))}),O.manual||(e.each(O.openEvents,function(t,n){e.inArray(n,O.closeEvents)>-1?j.on(n+f,function(t){e.powerTip.toggle(this,t)}):j.on(n+f,function(t){e.powerTip.show(this,t)})}),e.each(O.closeEvents,function(t,n){e.inArray(n,O.openEvents)<0&&j.on(n+f,function(t){e.powerTip.hide(this,!y(t))})}),j.on("keydown"+f,function(t){27===t.keyCode&&e.powerTip.hide(this,!0)})),g.elements=g.elements?g.elements.add(j):j,j):j},e.fn.powerTip.defaults={fadeInTime:200,fadeOutTime:100,followMouse:!1,popupId:"powerTip",popupClass:null,intentSensitivity:7,intentPollInterval:100,closeDelay:100,placement:"n",smartPlacement:!1,offset:10,mouseOnToPopup:!1,manual:!1,openEvents:["mouseenter","focus"],closeEvents:["mouseleave","blur"]},e.fn.powerTip.smartPlacementLists={n:["n","ne","nw","s"],e:["e","ne","se","w","nw","sw","n","s","e"],s:["s","se","sw","n"],w:["w","nw","sw","e","ne","se","n","s","w"],nw:["nw","w","sw","n","s","se","nw"],ne:["ne","e","se","n","s","sw","ne"],sw:["sw","w","nw","s","n","ne","sw"],se:["se","e","ne","s","n","nw","se"],"nw-alt":["nw-alt","n","ne-alt","sw-alt","s","se-alt","w","e"],"ne-alt":["ne-alt","n","nw-alt","se-alt","s","sw-alt","e","w"],"sw-alt":["sw-alt","s","se-alt","nw-alt","n","ne-alt","w","e"],"se-alt":["se-alt","s","sw-alt","ne-alt","n","nw-alt","e","w"]},e.powerTip={show:function(t,n){return y(n)?(T(n),g.previousX=n.pageX,g.previousY=n.pageY,e(t).data(r).show()):e(t).first().data(r).show(!0,!0),t},reposition:function(t){return e(t).first().data(r).resetPosition(),t},hide:function(t,n){var o;return n=!t||n,t?o=e(t).first().data(r):g.activeHover&&(o=g.activeHover.data(r)),o&&o.hide(n),t},toggle:function(t,n){return g.activeHover&&g.activeHover.is(t)?e.powerTip.hide(t,!y(n)):e.powerTip.show(t,n),t},destroy:function(o){var a=o?e(o):g.elements;return g.elements&&0!==g.elements.length?(g.isTipOpen&&!g.isClosing&&a.filter(g.activeHover).length>0&&(g.delayInProgress&&g.activeHover.data(r).cancel(),e.powerTip.hide(g.activeHover,!0)),a.off(f).each(function(){var t=e(this),n=["originalTitle",r,i,s];t.data("originalTitle")&&(t.attr("title",t.data("originalTitle")),n.push(u)),t.removeData(n)}),g.elements=g.elements.not(a),0===g.elements.length&&(n.off(f),t.off(f),g.mouseTrackingActive=!1,g.tooltips.remove(),g.tooltips=null),o):o}},e.powerTip.showTip=e.powerTip.show,e.powerTip.closeTip=e.powerTip.hide,e.powerTip})?o.apply(t,r):o)||(e.exports=i)},function(e,t,n){var o,r;n(22),o=[n(0)],void 0===(r=function(e){return function(){var t,n,o,r=0,i={error:"error",info:"info",success:"success",warning:"warning"},s={clear:function(n,o){var r=d();t||a(r),l(n,r,o)||function(n){for(var o=t.children(),r=o.length-1;r>=0;r--)l(e(o[r]),n)}(r)},remove:function(n){var o=d();t||a(o),n&&0===e(":focus",n).length?f(n):t.children().length&&t.remove()},error:function(e,t,n){return c({type:i.error,iconClass:d().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:a,info:function(e,t,n){return c({type:i.info,iconClass:d().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return c({type:i.success,iconClass:d().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return c({type:i.warning,iconClass:d().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return s;function a(n,o){return n||(n=d()),(t=e("#"+n.containerId)).length?t:(o&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t)}function l(t,n,o){var r=!(!o||!o.force)&&o.force;return!(!t||!r&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){f(t)}}),0))}function u(e){n&&n(e)}function c(n){var i=d(),s=n.iconClass||i.iconClass;if(void 0!==n.optionsOverride&&(i=e.extend(i,n.optionsOverride),s=n.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===o)return!0;o=t.message}return!1}(i,n)){r++,t=a(i,!0);var l=null,c=e("<div/>"),p=e("<div/>"),h=e("<div/>"),g=e("<div/>"),m=e(i.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:r,state:"visible",startTime:new Date,options:i,map:n};return n.iconClass&&c.addClass(i.toastClass).addClass(s),function(){if(n.title){var e=n.title;i.escapeHtml&&(e=b(n.title)),p.append(e).addClass(i.titleClass),c.append(p)}}(),function(){if(n.message){var e=n.message;i.escapeHtml&&(e=b(n.message)),h.append(e).addClass(i.messageClass),c.append(h)}}(),i.closeButton&&(m.addClass(i.closeClass).attr("role","button"),c.prepend(m)),i.progressBar&&(g.addClass(i.progressClass),c.prepend(g)),i.rtl&&c.addClass("rtl"),i.newestOnTop?t.prepend(c):t.append(c),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}c.attr("aria-live",e)}(),c.hide(),c[i.showMethod]({duration:i.showDuration,easing:i.showEasing,complete:i.onShown}),i.timeOut>0&&(l=setTimeout(w,i.timeOut),v.maxHideTime=parseFloat(i.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,i.progressBar&&(v.intervalId=setInterval(C,10))),i.closeOnHover&&c.hover(T,x),!i.onclick&&i.tapToDismiss&&c.click(w),i.closeButton&&m&&m.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),i.onCloseClick&&i.onCloseClick(e),w(!0)}),i.onclick&&c.click(function(e){i.onclick(e),w()}),u(y),i.debug&&console&&console.log(y),c}function b(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function w(t){var n=t&&!1!==i.closeMethod?i.closeMethod:i.hideMethod,o=t&&!1!==i.closeDuration?i.closeDuration:i.hideDuration,r=t&&!1!==i.closeEasing?i.closeEasing:i.hideEasing;if(!e(":focus",c).length||t)return clearTimeout(v.intervalId),c[n]({duration:o,easing:r,complete:function(){f(c),clearTimeout(l),i.onHidden&&"hidden"!==y.state&&i.onHidden(),y.state="hidden",y.endTime=new Date,u(y)}})}function x(){(i.timeOut>0||i.extendedTimeOut>0)&&(l=setTimeout(w,i.extendedTimeOut),v.maxHideTime=parseFloat(i.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function T(){clearTimeout(l),v.hideEta=0,c.stop(!0,!0)[i.showMethod]({duration:i.showDuration,easing:i.showEasing})}function C(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;g.width(e+"%")}}function d(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},s.options)}function f(e){t||(t=a()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),o=void 0))}}()}.apply(t,o))||(e.exports=r)},function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},function(e,t,n){"use strict";n.r(t);var o={};n.r(o),n.d(o,"init",function(){return v}),n.d(o,"prompt",function(){return y}),n.d(o,"readUIState",function(){return b}),n.d(o,"syncfs",function(){return w});var r=n(8),i=n(6),s=n(7),a=n(5),l=n(1),u=n(10);n(15);let c,d,f,p,h=!1,g=!1;function m(e){document.getElementById("loader").style.display="block",h&&g||(document.getElementById("loader-message").innerHTML=h?"Loading game file":"Loading interpreter"),document.getElementById("loader-message").innerHTML="Starting game",FS.writeFile(p,c,{encoding:"binary"}),f="/gamedata_"+d,FS.analyzePath(f).exists||FS.mkdir(f),FS.mount(IDBFS,{root:"."},f),FS.analyzePath("gamedata").exists||FS.mkdir("gamedata"),FS.mount(IDBFS,{root:"."},"gamedata"),FS.chdir("gamedata"),FS.syncfs(!0,function(){Object(a.a)("autosave")&&(u.autosave.setName("/gamedata_"+d+"/autosave"),u.autosave.restore()),s.keypress.init(),e()})}function v(e){const t=Object(a.a)("story"),n=Object(a.a)("uploadedFile"),o=Object(a.a)("use_proxy");let s,l;const u=function(e){g=!0,c=new Uint8Array(e),d=function(e){const t=e.length;let n=0;for(let o=0;o<t;o++)n=n+((n<<1)+(n<<4)+(n<<7)+(n<<8)+(n<<24)>>>0)^255&e[o];return n>>>0}(c).toString(16),Object(r.c)("storyfile")};if(p=e,n){const e=new FileReader;return e.onload=function(e){const t=document.getElementById("uploadContainer");t&&t.parentNode.removeChild(t),u(e.target.result)},Object(r.a)(m),void e.readAsArrayBuffer(n)}t||Object(i.a)("No story file specified");const f=new XMLHttpRequest;switch(""+o){case"always":case"true":case"1":l=!0;break;case"never":case"false":case"0":l=!1;break;default:l=/^https?:\/\//.test(t)&&0!==t.indexOf(window.location.protocol+"//"+window.location.host),"auto"!==o&&console.warn('Unknown use_proxy option "'+o+'", using "auto"')}s=l?Object(a.a)("proxy_url").split("%s").join(encodeURIComponent(t)):t,Object(r.a)(m),f.onreadystatechange=function(){if(f.readyState==XMLHttpRequest.DONE)switch(f.status){case 200:u(f.response);break;case 404:Object(i.a)("Game file not found");break;case 415:l?Object(i.a)(String.fromCharCode.apply(null,new Uint8Array(f.response))):Object(i.a)("Unsupported Media Type error encountered when loading game file");break;case 0:Object(i.a)("Unspecified error loading game file (possibly cross-origin restriction)");break;default:Object(i.a)("Error loading game file. Server returned status code "+f.status+" ("+f.statusText+")")}},f.open("GET",s,!0),f.responseType="arraybuffer",f.send()}function y(e){let t=window.prompt("Enter filename "+e);t=t&&/\S/.test(t)?f+"/"+t.split("/").join("-"):"",Module.ccall("haven_getfilename","null",["string"],[t+"\n"])}function b(){try{const e=FS.readFile(autosaveFilename+"_haven_uidata",{encoding:"utf8"});return JSON.parse(e)}catch(e){return null}}function w(){FS.syncfs(!1,function(){})}window.onbeforeunload=function(){FS.syncfs(!1,function(){})},document.getElementById("loader-message").innerHTML="Loading interpreter and game file";var x=n(4),T=n(14),C=n.n(T),E=n(3),k=n(2);function O(){_haven_start()}function S(e){const t=new XMLHttpRequest,n=Module.locateFile||function(e){return e};t.open("GET",n("engine.bin"),!0),t.responseType="arraybuffer",t.onload=function(){Module.emterpreterFile=t.response;const e=document.createElement("script");e.src=n("engine.js"),document.body.appendChild(e)},t.send(null),Object(a.b)(e.options),v(e.virtualStoryfile),Object(r.a)(function(e){Object(s.init)(),e()}),Object(l.init)({enginePrompt:!!e.enginePrompt,unicode:!!e.unicode}),Object(x.d)({engineColors:!!e.engineColors,engineFontFamily:!!e.engineFontFamily}),Object(r.a)(function(e){!function(){const e=document.getElementById("loader");e&&e.parentNode.removeChild(e)}(),e()}),Object(r.b)(O),"addEventListener"in document&&document.addEventListener("DOMContentLoaded",function(){C.a.attach(document.body)},!1)}window.haven={buffer:E,file:o,input:s,prompt:l,state:u,window:k};var j=n(9),N=n(13),L=n(11);n.d(t,"fileClosed",function(){return q}),n.d(t,"init",function(){return F}),n.d(t,"requireVersion",function(){return _});const D="VpHndshk",A="VpJSEval",H="VpJSRtrn",M="VpJSType",P=".glkdata";function I(e){return"*"===e.charAt(0)?e.substr(0,e.indexOf("\n")+1):""}function q(e){if(-1!==e.indexOf(D+P))return void function(e){const t=FS.readFile(e,{encoding:"utf8"}),n=I(t),o=t.substr(n.length);"Callooh!"===o?(Object(j.log)("Handshake passed, Vorple story confirmed"),FS.unlink(e),FS.writeFile(e,n+"Callay!",{encoding:"utf8"})):Object(j.log)('Handshake failed, expected "Callooh!" but received "'+o+'" instead')}(e);const t=function(e){try{return JSON.stringify(e)}catch(e){return null}};if(-1!==e.indexOf(A+P)){let n,o=FS.readFile(e,{encoding:"utf8"});const r=I(o);o=o.substr(r.length),Object(j.log)("Evaluating: "+o);let i="nothing";try{n=new Function("'use strict';\n"+o)()}catch(e){Object(j.error)("JavaScript code from story file threw an error: "+e.message+"\n\n"+o)}const s=typeof n;if("undefined"===s)return void Object(j.log)("The code did not return anything");if("string"===s)n='"'+n+'"',i="text";else if("function"===s||"symbol"===s)n=n.toString(),i="function";else if("undefined"!=typeof Set&&n instanceof Set)n=t(Array.from(n)),i="list";else if(n===1/0)n="Infinity",i="infinity";else if(n===-1/0)n="-Infinity",i="infinity";else if(n!=n)n="NaN",i="NaN";else if("boolean"===s)n=String(n),i="truth state";else if("number"===s)n=Math.abs(n)>1e20?function(e){let t;return Math.abs(e)<1?(t=parseInt(e.toString().split("e-")[1]))&&(e*=Math.pow(10,t-1),e="0."+new Array(t).join("0")+e.toString().substring(2)):(t=parseInt(e.toString().split("+")[1]))>20&&(t-=20,e/=Math.pow(10,t),e+=new Array(t+1).join("0")),e}(n):""+n,i="number";else if(n=t(n)){const e=n.charAt(0);"["===e?i="list":"{"===e&&(i="object")}Object(j.log)(`Return value (${i}): ${n}`),FS.writeFile(H+P,r+n,{encoding:"utf8"}),FS.writeFile(M+P,r+i,{encoding:"utf8"})}}function F(){Object(N.init)(),S({enginePrompt:!1,engineFontFamily:!1,options:vorple.options,unicode:!0,virtualStoryfile:"storyfile.gblorb"}),Object(r.a)(function(e){FS.syncfs(!0,function(){FS.writeFile("/gamedata/"+D+P,"");try{FS.unlink("/gamedata/"+A+P)}catch(e){}try{FS.unlink("/gamedata/"+H+P)}catch(e){}FS.syncfs(!1,e)})})}function _(e,t){const n=L.a.split(".").map(e=>Number(e)),o=(""+e).split(".").map(e=>Number(e)),r=t||(t=>{t||Object(j.error)(`Vorple version ${e} was requested, but Vorple is at version ${L.a}`)});return n[0]<o[0]?(r(!1),!1):n[0]>o[0]||1===o.length?(r(!0),!0):n[1]<o[1]?(r(!1),!1):n[1]>o[1]||2===o.length||2===n.length?(r(!0),!0):n[2]<o[2]?(r(!1),!1):(r(!0),!0)}},function(e,t,n){"use strict";n.r(t);var o=n(8),r=n(6);window.Module={arguments:[],preRun:[],postRun:[function(){Object(o.c)("engine")}],print:function(e){Object(r.a)("Unexpected engine output to stdout: "+e)},printErr:function(){console.log(arguments),Object(r.a)(Array.prototype.slice.call(arguments).join(" "))},TOTAL_MEMORY:33554432};var i=n(12),s=n.n(i),a=n(11);window.vorple={...n(23),audio:n(16),debug:n(9),haven:n(17),layout:n(18),prompt:n(13),options:{},version:a.a},window.jQuery=window.$=n(0),s.a.registerPlugin(n(19)),window.vex=s.a,s.a.defaultOptions.className="vex-theme-plain",n(20),window.toastr=n(21)}]);
  //# sourceMappingURL=vorple.min.js.map