Files
yunkong2.admin/www/lib/js/vendor.js
2018-09-14 21:27:03 +08:00

3 lines
988 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(w,e){"use strict";var t=[],_=w.document,n=Object.getPrototypeOf,a=t.slice,p=t.concat,l=t.push,s=t.indexOf,i={},r=i.toString,f=i.hasOwnProperty,o=f.toString,c=o.call(Object),m={};function C(e,t){var i=(t=t||_).createElement("script");i.text=e,t.head.appendChild(i).parentNode.removeChild(i)}var h="3.2.1",x=function(e,t){return new x.fn.init(e,t)},u=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,d=/^-ms-/,g=/-([a-z])/g,A=function(e,t){return t.toUpperCase()};function v(e){var t=!!e&&"length"in e&&e.length,i=x.type(e);return"function"!==i&&!x.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&0<t&&t-1 in e)}x.fn=x.prototype={jquery:h,constructor:x,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(i){return this.pushStack(x.map(this,function(e,t){return i.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(0<=i&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:t.sort,splice:t.splice},x.extend=x.fn.extend=function(){var e,t,i,n,s,r,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||x.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=o[t],o!==(n=e[t])&&(c&&n&&(x.isPlainObject(n)||(s=Array.isArray(n)))?(r=s?(s=!1,i&&Array.isArray(i)?i:[]):i&&x.isPlainObject(i)?i:{},o[t]=x.extend(c,r,n)):void 0!==n&&(o[t]=n));return o},x.extend({expando:"jQuery"+(h+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===x.type(e)},isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==r.call(e)||(t=n(e))&&("function"!=typeof(i=f.call(t,"constructor")&&t.constructor)||o.call(i)!==c))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?i[r.call(e)]||"object":typeof e},globalEval:function(e){C(e)},camelCase:function(e){return e.replace(d,"ms-").replace(g,A)},each:function(e,t){var i,n=0;if(v(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},trim:function(e){return null==e?"":(e+"").replace(u,"")},makeArray:function(e,t){var i=t||[];return null!=e&&(v(Object(e))?x.merge(i,"string"==typeof e?[e]:e):l.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:s.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,r=e.length,o=!i;s<r;s++)!t(e[s],s)!==o&&n.push(e[s]);return n},map:function(e,t,i){var n,s,r=0,o=[];if(v(e))for(n=e.length;r<n;r++)null!=(s=t(e[r],r,i))&&o.push(s);else for(r in e)null!=(s=t(e[r],r,i))&&o.push(s);return p.apply([],o)},guid:1,proxy:function(e,t){var i,n,s;if("string"==typeof t&&(i=e[t],t=e,e=i),x.isFunction(e))return n=a.call(arguments,2),(s=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||x.guid++,s},now:Date.now,support:m}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=t[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){i["[object "+t+"]"]=t.toLowerCase()});var b=function(i){var e,g,b,r,s,f,u,p,y,l,c,I,w,o,_,m,a,h,C,x="sizzle"+1*new Date,A=i.document,k=0,n=0,d=oe(),v=oe(),E=oe(),F=function(e,t){return e===t&&(c=!0),0},D={}.hasOwnProperty,t=[],S=t.pop,T=t.push,B=t.push,$=t.slice,M=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},L="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",R="[\\x20\\t\\r\\n\\f]",N="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",O="\\["+R+"*("+N+")(?:"+R+"*([*^$|!~]?=)"+R+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+R+"*\\]",P=":("+N+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",j=new RegExp(R+"+","g"),H=new RegExp("^"+R+"+|((?:^|[^\\\\])(?:\\\\.)*)"+R+"+$","g"),z=new RegExp("^"+R+"*,"+R+"*"),W=new RegExp("^"+R+"*([>+~]|"+R+")"+R+"*"),V=new RegExp("="+R+"*([^\\]'\"]*?)"+R+"*\\]","g"),U=new RegExp(P),q=new RegExp("^"+N+"$"),K={ID:new RegExp("^#("+N+")"),CLASS:new RegExp("^\\.("+N+")"),TAG:new RegExp("^("+N+"|[*])"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+R+"*(even|odd|(([+-]|)(\\d*)n|)"+R+"*(?:([+-]|)"+R+"*(\\d+)|))"+R+"*\\)|)","i"),bool:new RegExp("^(?:"+L+")$","i"),needsContext:new RegExp("^"+R+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+R+"*((?:-\\d)?\\d*)"+R+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,Q=new RegExp("\\\\([\\da-f]{1,6}"+R+"?|("+R+")|.)","ig"),ee=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"<22>":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ne=function(){I()},se=Ae(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{B.apply(t=$.call(A.childNodes),A.childNodes),t[A.childNodes.length].nodeType}catch(e){B={apply:t.length?function(e,t){T.apply(e,$.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function re(e,t,i,n){var s,r,o,a,l,c,h,u=t&&t.ownerDocument,d=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==d&&9!==d&&11!==d)return i;if(!n&&((t?t.ownerDocument||t:A)!==w&&I(t),t=t||w,_)){if(11!==d&&(l=X.exec(e)))if(s=l[1]){if(9===d){if(!(o=t.getElementById(s)))return i;if(o.id===s)return i.push(o),i}else if(u&&(o=u.getElementById(s))&&C(t,o)&&o.id===s)return i.push(o),i}else{if(l[2])return B.apply(i,t.getElementsByTagName(e)),i;if((s=l[3])&&g.getElementsByClassName&&t.getElementsByClassName)return B.apply(i,t.getElementsByClassName(s)),i}if(g.qsa&&!E[e+" "]&&(!m||!m.test(e))){if(1!==d)u=t,h=e;else if("object"!==t.nodeName.toLowerCase()){for((a=t.getAttribute("id"))?a=a.replace(te,ie):t.setAttribute("id",a=x),r=(c=f(e)).length;r--;)c[r]="#"+a+" "+Ce(c[r]);h=c.join(","),u=Z.test(e)&&pe(t.parentNode)||t}if(h)try{return B.apply(i,u.querySelectorAll(h)),i}catch(e){}finally{a===x&&t.removeAttribute("id")}}}return p(e.replace(H,"$1"),t,i,n)}function oe(){var n=[];return function e(t,i){return n.push(t+" ")>b.cacheLength&&delete e[n.shift()],e[t+" "]=i}}function ae(e){return e[x]=!0,e}function le(e){var t=w.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var i=e.split("|"),n=i.length;n--;)b.attrHandle[i[n]]=t}function he(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function ue(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function de(i){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===i}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function fe(o){return ae(function(r){return r=+r,ae(function(e,t){for(var i,n=o([],e.length,r),s=n.length;s--;)e[i=n[s]]&&(e[i]=!(t[i]=e[i]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in g=re.support={},s=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},I=re.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:A;return n!==w&&9===n.nodeType&&n.documentElement&&(o=(w=n).documentElement,_=!s(w),A!==w&&(i=w.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",ne,!1):i.attachEvent&&i.attachEvent("onunload",ne)),g.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),g.getElementsByTagName=le(function(e){return e.appendChild(w.createComment("")),!e.getElementsByTagName("*").length}),g.getElementsByClassName=J.test(w.getElementsByClassName),g.getById=le(function(e){return o.appendChild(e).id=x,!w.getElementsByName||!w.getElementsByName(x).length}),g.getById?(b.filter.ID=function(e){var t=e.replace(Q,ee);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var i=t.getElementById(e);return i?[i]:[]}}):(b.filter.ID=function(e){var i=e.replace(Q,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===i}},b.find.ID=function(e,t){if(void 0!==t.getElementById&&_){var i,n,s,r=t.getElementById(e);if(r){if((i=r.getAttributeNode("id"))&&i.value===e)return[r];for(s=t.getElementsByName(e),n=0;r=s[n++];)if((i=r.getAttributeNode("id"))&&i.value===e)return[r]}return[]}}),b.find.TAG=g.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):g.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;i=r[s++];)1===i.nodeType&&n.push(i);return n},b.find.CLASS=g.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&_)return t.getElementsByClassName(e)},a=[],m=[],(g.qsa=J.test(w.querySelectorAll))&&(le(function(e){o.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+R+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+R+"*(?:value|"+L+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=w.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+R+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),o.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")})),(g.matchesSelector=J.test(h=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&le(function(e){g.disconnectedMatch=h.call(e,"*"),h.call(e,"[s!='']:x"),a.push("!=",P)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),t=J.test(o.compareDocumentPosition),C=t||J.test(o.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},F=t?function(e,t){if(e===t)return c=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===i?e===w||e.ownerDocument===A&&C(A,e)?-1:t===w||t.ownerDocument===A&&C(A,t)?1:l?M(l,e)-M(l,t):0:4&i?-1:1)}:function(e,t){if(e===t)return c=!0,0;var i,n=0,s=e.parentNode,r=t.parentNode,o=[e],a=[t];if(!s||!r)return e===w?-1:t===w?1:s?-1:r?1:l?M(l,e)-M(l,t):0;if(s===r)return he(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;o[n]===a[n];)n++;return n?he(o[n],a[n]):o[n]===A?-1:a[n]===A?1:0}),w},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&I(e),t=t.replace(V,"='$1']"),g.matchesSelector&&_&&!E[t+" "]&&(!a||!a.test(t))&&(!m||!m.test(t)))try{var i=h.call(e,t);if(i||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return 0<re(t,w,null,[e]).length},re.contains=function(e,t){return(e.ownerDocument||e)!==w&&I(e),C(e,t)},re.attr=function(e,t){(e.ownerDocument||e)!==w&&I(e);var i=b.attrHandle[t.toLowerCase()],n=i&&D.call(b.attrHandle,t.toLowerCase())?i(e,t,!_):void 0;return void 0!==n?n:g.attributes||!_?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},re.escape=function(e){return(e+"").replace(te,ie)},re.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},re.uniqueSort=function(e){var t,i=[],n=0,s=0;if(c=!g.detectDuplicates,l=!g.sortStable&&e.slice(0),e.sort(F),c){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return l=null,e},r=re.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=r(t);return i},(b=re.selectors={cacheLength:50,createPseudo:ae,match:K,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(Q,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Q,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.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]&&re.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return K.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=f(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Q,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=d[e+" "];return t||(t=new RegExp("(^|"+R+")"+e+"("+R+"|$)"))&&d(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(i,n,s){return function(e){var t=re.attr(e,i);return null==t?"!="===n:!n||(t+="","="===n?t===s:"!="===n?t!==s:"^="===n?s&&0===t.indexOf(s):"*="===n?s&&-1<t.indexOf(s):"$="===n?s&&t.slice(-s.length)===s:"~="===n?-1<(" "+t.replace(j," ")+" ").indexOf(s):"|="===n&&(t===s||t.slice(0,s.length+1)===s+"-"))}},CHILD:function(f,e,t,p,m){var C="nth"!==f.slice(0,3),A="last"!==f.slice(-4),v="of-type"===e;return 1===p&&0===m?function(e){return!!e.parentNode}:function(e,t,i){var n,s,r,o,a,l,c=C!==A?"nextSibling":"previousSibling",h=e.parentNode,u=v&&e.nodeName.toLowerCase(),d=!i&&!v,g=!1;if(h){if(C){for(;c;){for(o=e;o=o[c];)if(v?o.nodeName.toLowerCase()===u:1===o.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[A?h.firstChild:h.lastChild],A&&d){for(g=(a=(n=(s=(r=(o=h)[x]||(o[x]={}))[o.uniqueID]||(r[o.uniqueID]={}))[f]||[])[0]===k&&n[1])&&n[2],o=a&&h.childNodes[a];o=++a&&o&&o[c]||(g=a=0)||l.pop();)if(1===o.nodeType&&++g&&o===e){s[f]=[k,a,g];break}}else if(d&&(g=a=(n=(s=(r=(o=e)[x]||(o[x]={}))[o.uniqueID]||(r[o.uniqueID]={}))[f]||[])[0]===k&&n[1]),!1===g)for(;(o=++a&&o&&o[c]||(g=a=0)||l.pop())&&((v?o.nodeName.toLowerCase()!==u:1!==o.nodeType)||!++g||(d&&((s=(r=o[x]||(o[x]={}))[o.uniqueID]||(r[o.uniqueID]={}))[f]=[k,g]),o!==e)););return(g-=m)===p||g%p==0&&0<=g/p}}},PSEUDO:function(e,r){var t,o=b.pseudos[e]||b.setFilters[e.toLowerCase()]||re.error("unsupported pseudo: "+e);return o[x]?o(r):1<o.length?(t=[e,e,"",r],b.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,t){for(var i,n=o(e,r),s=n.length;s--;)e[i=M(e,n[s])]=!(t[i]=n[s])}):function(e){return o(e,0,t)}):o}},pseudos:{not:ae(function(e){var n=[],s=[],a=u(e.replace(H,"$1"));return a[x]?ae(function(e,t,i,n){for(var s,r=a(e,null,n,[]),o=e.length;o--;)(s=r[o])&&(e[o]=!(t[o]=s))}):function(e,t,i){return n[0]=e,a(n,null,i,s),n[0]=null,!s.pop()}}),has:ae(function(t){return function(e){return 0<re(t,e).length}}),contains:ae(function(t){return t=t.replace(Q,ee),function(e){return-1<(e.textContent||e.innerText||r(e)).indexOf(t)}}),lang:ae(function(i){return q.test(i||"")||re.error("unsupported lang: "+i),i=i.replace(Q,ee).toLowerCase(),function(e){var t;do{if(t=_?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===i||0===t.indexOf(i+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===o},focus:function(e){return e===w.activeElement&&(!w.hasFocus||w.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return G.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:fe(function(){return[0]}),last:fe(function(e,t){return[t-1]}),eq:fe(function(e,t,i){return[i<0?i+t:i]}),even:fe(function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e}),odd:fe(function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e}),lt:fe(function(e,t,i){for(var n=i<0?i+t:i;0<=--n;)e.push(n);return e}),gt:fe(function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=ue(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=de(e);function me(){}function Ce(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function Ae(a,e,t){var l=e.dir,c=e.next,h=c||l,u=t&&"parentNode"===h,d=n++;return e.first?function(e,t,i){for(;e=e[l];)if(1===e.nodeType||u)return a(e,t,i);return!1}:function(e,t,i){var n,s,r,o=[k,d];if(i){for(;e=e[l];)if((1===e.nodeType||u)&&a(e,t,i))return!0}else for(;e=e[l];)if(1===e.nodeType||u)if(s=(r=e[x]||(e[x]={}))[e.uniqueID]||(r[e.uniqueID]={}),c&&c===e.nodeName.toLowerCase())e=e[l]||e;else{if((n=s[h])&&n[0]===k&&n[1]===d)return o[2]=n[2];if((s[h]=o)[2]=a(e,t,i))return!0}return!1}}function ve(s){return 1<s.length?function(e,t,i){for(var n=s.length;n--;)if(!s[n](e,t,i))return!1;return!0}:s[0]}function be(e,t,i,n,s){for(var r,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(i&&!i(r,n,s)||(o.push(r),c&&t.push(a)));return o}function ye(g,f,p,m,C,e){return m&&!m[x]&&(m=ye(m)),C&&!C[x]&&(C=ye(C,e)),ae(function(e,t,i,n){var s,r,o,a=[],l=[],c=t.length,h=e||function(e,t,i){for(var n=0,s=t.length;n<s;n++)re(e,t[n],i);return i}(f||"*",i.nodeType?[i]:i,[]),u=!g||!e&&f?h:be(h,a,g,i,n),d=p?C||(e?g:c||m)?[]:t:u;if(p&&p(u,d,i,n),m)for(s=be(d,l),m(s,[],i,n),r=s.length;r--;)(o=s[r])&&(d[l[r]]=!(u[l[r]]=o));if(e){if(C||g){if(C){for(s=[],r=d.length;r--;)(o=d[r])&&s.push(u[r]=o);C(null,d=[],s,n)}for(r=d.length;r--;)(o=d[r])&&-1<(s=C?M(e,o):a[r])&&(e[s]=!(t[s]=o))}}else d=be(d===t?d.splice(c,d.length):d),C?C(null,t,d,n):B.apply(t,d)})}function Ie(e){for(var s,t,i,n=e.length,r=b.relative[e[0].type],o=r||b.relative[" "],a=r?1:0,l=Ae(function(e){return e===s},o,!0),c=Ae(function(e){return-1<M(s,e)},o,!0),h=[function(e,t,i){var n=!r&&(i||t!==y)||((s=t).nodeType?l(e,t,i):c(e,t,i));return s=null,n}];a<n;a++)if(t=b.relative[e[a].type])h=[Ae(ve(h),t)];else{if((t=b.filter[e[a].type].apply(null,e[a].matches))[x]){for(i=++a;i<n&&!b.relative[e[i].type];i++);return ye(1<a&&ve(h),1<a&&Ce(e.slice(0,a-1).concat({value:" "===e[a-2].type?"*":""})).replace(H,"$1"),t,a<i&&Ie(e.slice(a,i)),i<n&&Ie(e=e.slice(i)),i<n&&Ce(e))}h.push(t)}return ve(h)}return me.prototype=b.filters=b.pseudos,b.setFilters=new me,f=re.tokenize=function(e,t){var i,n,s,r,o,a,l,c=v[e+" "];if(c)return t?0:c.slice(0);for(o=e,a=[],l=b.preFilter;o;){for(r in i&&!(n=z.exec(o))||(n&&(o=o.slice(n[0].length)||o),a.push(s=[])),i=!1,(n=W.exec(o))&&(i=n.shift(),s.push({value:i,type:n[0].replace(H," ")}),o=o.slice(i.length)),b.filter)!(n=K[r].exec(o))||l[r]&&!(n=l[r](n))||(i=n.shift(),s.push({value:i,type:r,matches:n}),o=o.slice(i.length));if(!i)break}return t?o.length:o?re.error(e):v(e,a).slice(0)},u=re.compile=function(e,t){var i,m,C,A,v,n,s=[],r=[],o=E[e+" "];if(!o){for(t||(t=f(e)),i=t.length;i--;)(o=Ie(t[i]))[x]?s.push(o):r.push(o);(o=E(e,(m=r,A=0<(C=s).length,v=0<m.length,n=function(e,t,i,n,s){var r,o,a,l=0,c="0",h=e&&[],u=[],d=y,g=e||v&&b.find.TAG("*",s),f=k+=null==d?1:Math.random()||.1,p=g.length;for(s&&(y=t===w||t||s);c!==p&&null!=(r=g[c]);c++){if(v&&r){for(o=0,t||r.ownerDocument===w||(I(r),i=!_);a=m[o++];)if(a(r,t||w,i)){n.push(r);break}s&&(k=f)}A&&((r=!a&&r)&&l--,e&&h.push(r))}if(l+=c,A&&c!==l){for(o=0;a=C[o++];)a(h,u,t,i);if(e){if(0<l)for(;c--;)h[c]||u[c]||(u[c]=S.call(n));u=be(u)}B.apply(n,u),s&&!e&&0<u.length&&1<l+C.length&&re.uniqueSort(n)}return s&&(k=f,y=d),h},A?ae(n):n))).selector=e}return o},p=re.select=function(e,t,i,n){var s,r,o,a,l,c="function"==typeof e&&e,h=!n&&f(e=c.selector||e);if(i=i||[],1===h.length){if(2<(r=h[0]=h[0].slice(0)).length&&"ID"===(o=r[0]).type&&9===t.nodeType&&_&&b.relative[r[1].type]){if(!(t=(b.find.ID(o.matches[0].replace(Q,ee),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(r.shift().value.length)}for(s=K.needsContext.test(e)?0:r.length;s--&&(o=r[s],!b.relative[a=o.type]);)if((l=b.find[a])&&(n=l(o.matches[0].replace(Q,ee),Z.test(r[0].type)&&pe(t.parentNode)||t))){if(r.splice(s,1),!(e=n.length&&Ce(r)))return B.apply(i,n),i;break}}return(c||u(e,h))(n,t,!_,i,!t||Z.test(e)&&pe(t.parentNode)||t),i},g.sortStable=x.split("").sort(F).join("")===x,g.detectDuplicates=!!c,I(),g.sortDetached=le(function(e){return 1&e.compareDocumentPosition(w.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),g.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(L,function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),re}(w);x.find=b,x.expr=b.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=b.uniqueSort,x.text=b.getText,x.isXMLDoc=b.isXML,x.contains=b.contains,x.escapeSelector=b.escape;var y=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&x(e).is(i))break;n.push(e)}return n},I=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},k=x.expr.match.needsContext;function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var F=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function S(e,i,n){return x.isFunction(i)?x.grep(e,function(e,t){return!!i.call(e,t,e)!==n}):i.nodeType?x.grep(e,function(e){return e===i!==n}):"string"!=typeof i?x.grep(e,function(e){return-1<s.call(i,e)!==n}):D.test(i)?x.filter(i,e,n):(i=x.filter(i,e),x.grep(e,function(e){return-1<s.call(i,e)!==n&&1===e.nodeType}))}x.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?x.find.matchesSelector(n,e)?[n]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<n;t++)if(x.contains(s[t],this))return!0}));for(i=this.pushStack([]),t=0;t<n;t++)x.find(e,s[t],i);return 1<n?x.uniqueSort(i):i},filter:function(e){return this.pushStack(S(this,e||[],!1))},not:function(e){return this.pushStack(S(this,e||[],!0))},is:function(e){return!!S(this,"string"==typeof e&&k.test(e)?x(e):e||[],!1).length}});var T,B=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||T,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):x.isFunction(e)?void 0!==i.ready?i.ready(e):e(x):x.makeArray(e,this);if(!(n="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:B.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:_,!0)),F.test(n[1])&&x.isPlainObject(t))for(n in t)x.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=_.getElementById(n[2]))&&(this[0]=s,this.length=1),this}).prototype=x.fn,T=x(_);var $=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function L(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),i=t.length;return this.filter(function(){for(var e=0;e<i;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var i,n=0,s=this.length,r=[],o="string"!=typeof e&&x(e);if(!k.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(o?-1<o.index(i):1===i.nodeType&&x.find.matchesSelector(i,e))){r.push(i);break}return this.pushStack(1<r.length?x.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?s.call(x(e),this[0]):s.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return y(e,"parentNode")},parentsUntil:function(e,t,i){return y(e,"parentNode",i)},next:function(e){return L(e,"nextSibling")},prev:function(e){return L(e,"previousSibling")},nextAll:function(e){return y(e,"nextSibling")},prevAll:function(e){return y(e,"previousSibling")},nextUntil:function(e,t,i){return y(e,"nextSibling",i)},prevUntil:function(e,t,i){return y(e,"previousSibling",i)},siblings:function(e){return I((e.parentNode||{}).firstChild,e)},children:function(e){return I(e.firstChild)},contents:function(e){return E(e,"iframe")?e.contentDocument:(E(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(n,s){x.fn[n]=function(e,t){var i=x.map(this,s,e);return"Until"!==n.slice(-5)&&(t=e),t&&"string"==typeof t&&(i=x.filter(t,i)),1<this.length&&(M[n]||x.uniqueSort(i),$.test(n)&&i.reverse()),this.pushStack(i)}});var R=/[^\x20\t\r\n\f]+/g;function N(e){return e}function O(e){throw e}function P(e,t,i,n){var s;try{e&&x.isFunction(s=e.promise)?s.call(e).done(t).fail(i):e&&x.isFunction(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}x.Callbacks=function(n){var e,i;n="string"==typeof n?(e=n,i={},x.each(e.match(R)||[],function(e,t){i[t]=!0}),i):x.extend({},n);var s,t,r,o,a=[],l=[],c=-1,h=function(){for(o=o||n.once,r=s=!0;l.length;c=-1)for(t=l.shift();++c<a.length;)!1===a[c].apply(t[0],t[1])&&n.stopOnFalse&&(c=a.length,t=!1);n.memory||(t=!1),s=!1,o&&(a=t?[]:"")},u={add:function(){return a&&(t&&!s&&(c=a.length-1,l.push(t)),function i(e){x.each(e,function(e,t){x.isFunction(t)?n.unique&&u.has(t)||a.push(t):t&&t.length&&"string"!==x.type(t)&&i(t)})}(arguments),t&&!s&&h()),this},remove:function(){return x.each(arguments,function(e,t){for(var i;-1<(i=x.inArray(t,a,i));)a.splice(i,1),i<=c&&c--}),this},has:function(e){return e?-1<x.inArray(e,a):0<a.length},empty:function(){return a&&(a=[]),this},disable:function(){return o=l=[],a=t="",this},disabled:function(){return!a},lock:function(){return o=l=[],t||s||(a=t=""),this},locked:function(){return!!o},fireWith:function(e,t){return o||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),s||h()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},x.extend({Deferred:function(e){var r=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],s="pending",o={state:function(){return s},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var s=arguments;return x.Deferred(function(n){x.each(r,function(e,t){var i=x.isFunction(s[t[4]])&&s[t[4]];a[t[1]](function(){var e=i&&i.apply(this,arguments);e&&x.isFunction(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[t[0]+"With"](this,i?[e]:arguments)})}),s=null}).promise()},then:function(t,i,n){var l=0;function c(s,r,o,a){return function(){var i=this,n=arguments,e=function(){var e,t;if(!(s<l)){if((e=o.apply(i,n))===r.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,x.isFunction(t)?a?t.call(e,c(l,r,N,a),c(l,r,O,a)):(l++,t.call(e,c(l,r,N,a),c(l,r,O,a),c(l,r,N,r.notifyWith))):(o!==N&&(i=void 0,n=[e]),(a||r.resolveWith)(i,n))}},t=a?e:function(){try{e()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,t.stackTrace),l<=s+1&&(o!==O&&(i=void 0,n=[e]),r.rejectWith(i,n))}};s?t():(x.Deferred.getStackHook&&(t.stackTrace=x.Deferred.getStackHook()),w.setTimeout(t))}}return x.Deferred(function(e){r[0][3].add(c(0,e,x.isFunction(n)?n:N,e.notifyWith)),r[1][3].add(c(0,e,x.isFunction(t)?t:N)),r[2][3].add(c(0,e,x.isFunction(i)?i:O))}).promise()},promise:function(e){return null!=e?x.extend(e,o):o}},a={};return x.each(r,function(e,t){var i=t[2],n=t[5];o[t[1]]=i.add,n&&i.add(function(){s=n},r[3-e][2].disable,r[0][2].lock),i.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=i.fireWith}),o.promise(a),e&&e.call(a,a),a},when:function(e){var i=arguments.length,t=i,n=Array(t),s=a.call(arguments),r=x.Deferred(),o=function(t){return function(e){n[t]=this,s[t]=1<arguments.length?a.call(arguments):e,--i||r.resolveWith(n,s)}};if(i<=1&&(P(e,r.done(o(t)).resolve,r.reject,!i),"pending"===r.state()||x.isFunction(s[t]&&s[t].then)))return r.then();for(;t--;)P(s[t],o(t),r.reject);return r.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){w.console&&w.console.warn&&e&&j.test(e.name)&&w.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){w.setTimeout(function(){throw e})};var H=x.Deferred();function z(){_.removeEventListener("DOMContentLoaded",z),w.removeEventListener("load",z),x.ready()}x.fn.ready=function(e){return H.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||((x.isReady=!0)!==e&&0<--x.readyWait||H.resolveWith(_,[x]))}}),x.ready.then=H.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?w.setTimeout(x.ready):(_.addEventListener("DOMContentLoaded",z),w.addEventListener("load",z));var W=function(e,t,i,n,s,r,o){var a=0,l=e.length,c=null==i;if("object"===x.type(i))for(a in s=!0,i)W(e,t,a,i[a],!0,r,o);else if(void 0!==n&&(s=!0,x.isFunction(n)||(o=!0),c&&(t=o?(t.call(e,n),null):(c=t,function(e,t,i){return c.call(x(e),i)})),t))for(;a<l;a++)t(e[a],i,o?n:n.call(e[a],a,t(e[a],i)));return s?e:c?t.call(e):l?t(e[0],i):r},V=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function U(){this.expando=x.expando+U.uid++}U.uid=1,U.prototype={cache:function(e){var t=e[this.expando];return t||(t={},V(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[x.camelCase(t)]=i;else for(n in t)s[x.camelCase(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][x.camelCase(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(x.camelCase):(t=x.camelCase(t))in n?[t]:t.match(R)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||x.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var q=new U,K=new U,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Y=/[A-Z]/g;function J(e,t,i){var n,s;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(Y,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i="true"===(s=i)||"false"!==s&&("null"===s?null:s===+s+""?+s:G.test(s)?JSON.parse(s):s)}catch(e){}K.set(e,t,i)}else i=void 0;return i}x.extend({hasData:function(e){return K.hasData(e)||q.hasData(e)},data:function(e,t,i){return K.access(e,t,i)},removeData:function(e,t){K.remove(e,t)},_data:function(e,t,i){return q.access(e,t,i)},_removeData:function(e,t){q.remove(e,t)}}),x.fn.extend({data:function(i,e){var t,n,s,r=this[0],o=r&&r.attributes;if(void 0!==i)return"object"==typeof i?this.each(function(){K.set(this,i)}):W(this,function(e){var t;if(r&&void 0===e){if(void 0!==(t=K.get(r,i)))return t;if(void 0!==(t=J(r,i)))return t}else this.each(function(){K.set(this,i,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(s=K.get(r),1===r.nodeType&&!q.get(r,"hasDataAttrs"))){for(t=o.length;t--;)o[t]&&(0===(n=o[t].name).indexOf("data-")&&(n=x.camelCase(n.slice(5)),J(r,n,s[n])));q.set(r,"hasDataAttrs",!0)}return s},removeData:function(e){return this.each(function(){K.remove(this,e)})}}),x.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=q.get(e,t),i&&(!n||Array.isArray(i)?n=q.access(e,t,x.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=x.queue(e,t),n=i.length,s=i.shift(),r=x._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete r.stop,s.call(e,function(){x.dequeue(e,t)},r)),!n&&r&&r.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return q.get(e,i)||q.access(e,i,{empty:x.Callbacks("once memory").add(function(){q.remove(e,[t+"queue",i])})})}}),x.fn.extend({queue:function(t,i){var e=2;return"string"!=typeof t&&(i=t,t="fx",e--),arguments.length<e?x.queue(this[0],t):void 0===i?this:this.each(function(){var e=x.queue(this,t,i);x._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&x.dequeue(this,t)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=x.Deferred(),r=this,o=this.length,a=function(){--n||s.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(i=q.get(r[o],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(t)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Z=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&x.contains(e.ownerDocument,e)&&"none"===x.css(e,"display")},te=function(e,t,i,n){var s,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in s=i.apply(e,n||[]),t)e.style[r]=o[r];return s};function ie(e,t,i,n){var s,r=1,o=20,a=n?function(){return n.cur()}:function(){return x.css(e,t,"")},l=a(),c=i&&i[3]||(x.cssNumber[t]?"":"px"),h=(x.cssNumber[t]||"px"!==c&&+l)&&Z.exec(x.css(e,t));if(h&&h[3]!==c)for(c=c||h[3],i=i||[],h=+l||1;h/=r=r||".5",x.style(e,t,h+c),r!==(r=a()/l)&&1!==r&&--o;);return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}var ne={};function se(e,t){for(var i,n,s=[],r=0,o=e.length;r<o;r++)(n=e[r]).style&&(i=n.style.display,t?("none"===i&&(s[r]=q.get(n,"display")||null,s[r]||(n.style.display="")),""===n.style.display&&ee(n)&&(s[r]=(u=c=l=void 0,c=(a=n).ownerDocument,h=a.nodeName,(u=ne[h])||(l=c.body.appendChild(c.createElement(h)),u=x.css(l,"display"),l.parentNode.removeChild(l),"none"===u&&(u="block"),ne[h]=u)))):"none"!==i&&(s[r]="none",q.set(n,"display",i)));var a,l,c,h,u;for(r=0;r<o;r++)null!=s[r]&&(e[r].style.display=s[r]);return e}x.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?x(this).show():x(this).hide()})}});var re=/^(?:checkbox|radio)$/i,oe=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ae=/^$|\/(?:java|ecma)script/i,le={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 ce(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?x.merge([e],i):i}function he(e,t){for(var i=0,n=e.length;i<n;i++)q.set(e[i],"globalEval",!t||q.get(t[i],"globalEval"))}le.optgroup=le.option,le.tbody=le.tfoot=le.colgroup=le.caption=le.thead,le.th=le.td;var ue,de,ge=/<|&#?\w+;/;function fe(e,t,i,n,s){for(var r,o,a,l,c,h,u=t.createDocumentFragment(),d=[],g=0,f=e.length;g<f;g++)if((r=e[g])||0===r)if("object"===x.type(r))x.merge(d,r.nodeType?[r]:r);else if(ge.test(r)){for(o=o||u.appendChild(t.createElement("div")),a=(oe.exec(r)||["",""])[1].toLowerCase(),l=le[a]||le._default,o.innerHTML=l[1]+x.htmlPrefilter(r)+l[2],h=l[0];h--;)o=o.lastChild;x.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(t.createTextNode(r));for(u.textContent="",g=0;r=d[g++];)if(n&&-1<x.inArray(r,n))s&&s.push(r);else if(c=x.contains(r.ownerDocument,r),o=ce(u.appendChild(r),"script"),c&&he(o),i)for(h=0;r=o[h++];)ae.test(r.type||"")&&i.push(r);return u}ue=_.createDocumentFragment().appendChild(_.createElement("div")),(de=_.createElement("input")).setAttribute("type","radio"),de.setAttribute("checked","checked"),de.setAttribute("name","t"),ue.appendChild(de),m.checkClone=ue.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!ue.cloneNode(!0).lastChild.defaultValue;var pe=_.documentElement,me=/^key/,Ce=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=/^([^.]*)(?:\.(.+)|)/;function ve(){return!0}function be(){return!1}function ye(){try{return _.activeElement}catch(e){}}function Ie(e,t,i,n,s,r){var o,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Ie(e,a,i,n,t[a],r);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=be;else if(!s)return e;return 1===r&&(o=s,(s=function(e){return x().off(e),o.apply(this,arguments)}).guid=o.guid||(o.guid=x.guid++)),e.each(function(){x.event.add(this,t,s,n,i)})}x.event={global:{},add:function(t,e,i,n,s){var r,o,a,l,c,h,u,d,g,f,p,m=q.get(t);if(m)for(i.handler&&(i=(r=i).handler,s=r.selector),s&&x.find.matchesSelector(pe,s),i.guid||(i.guid=x.guid++),(l=m.events)||(l=m.events={}),(o=m.handle)||(o=m.handle=function(e){return void 0!==x&&x.event.triggered!==e.type?x.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(R)||[""]).length;c--;)g=p=(a=Ae.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),g&&(u=x.event.special[g]||{},g=(s?u.delegateType:u.bindType)||g,u=x.event.special[g]||{},h=x.extend({type:g,origType:p,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&x.expr.match.needsContext.test(s),namespace:f.join(".")},r),(d=l[g])||((d=l[g]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,f,o)||t.addEventListener&&t.addEventListener(g,o)),u.add&&(u.add.call(t,h),h.handler.guid||(h.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,h):d.push(h),x.event.global[g]=!0)},remove:function(e,t,i,n,s){var r,o,a,l,c,h,u,d,g,f,p,m=q.hasData(e)&&q.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(g=p=(a=Ae.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),g){for(u=x.event.special[g]||{},d=l[g=(n?u.delegateType:u.bindType)||g]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=r=d.length;r--;)h=d[r],!s&&p!==h.origType||i&&i.guid!==h.guid||a&&!a.test(h.namespace)||n&&n!==h.selector&&("**"!==n||!h.selector)||(d.splice(r,1),h.selector&&d.delegateCount--,u.remove&&u.remove.call(e,h));o&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||x.removeEvent(e,g,m.handle),delete l[g])}else for(g in l)x.event.remove(e,g+t[c],i,n,!0);x.isEmptyObject(l)&&q.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,r,o,a=x.event.fix(e),l=new Array(arguments.length),c=(q.get(this,"events")||{})[a.type]||[],h=x.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!h.preDispatch||!1!==h.preDispatch.call(this,a)){for(o=x.event.handlers.call(this,a,c),t=0;(s=o[t++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(r=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(n=((x.event.special[r.origType]||{}).handle||r.handler).apply(s.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return h.postDispatch&&h.postDispatch.call(this,a),a.result}},handlers:function(e,t){var i,n,s,r,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(r=[],o={},i=0;i<l;i++)void 0===o[s=(n=t[i]).selector+" "]&&(o[s]=n.needsContext?-1<x(s,this).index(c):x.find(s,this,null,[c]).length),o[s]&&r.push(n);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(x.Event.prototype,t,{enumerable:!0,configurable:!0,get:x.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==ye()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===ye()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E(this,"input"))return this.click(),!1},_default:function(e){return E(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},x.Event=function(e,t){return this instanceof x.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ve:be,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&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||x.now(),void(this[x.expando]=!0)):new x.Event(e,t)},x.Event.prototype={constructor:x.Event,isDefaultPrevented:be,isPropagationStopped:be,isImmediatePropagationStopped:be,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ve,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ve,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ve,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ce.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,s){x.event.special[e]={delegateType:s,bindType:s,handle:function(e){var t,i=e.relatedTarget,n=e.handleObj;return i&&(i===this||x.contains(this,i))||(e.type=n.origType,t=n.handler.apply(this,arguments),e.type=s),t}}}),x.fn.extend({on:function(e,t,i,n){return Ie(this,e,t,i,n)},one:function(e,t,i,n){return Ie(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,x(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=be),this.each(function(){x.event.remove(this,e,i,t)});for(s in e)this.off(s,t,e[s]);return this}});var we=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,_e=/<script|<style|<link/i,xe=/checked\s*(?:[^=]|=\s*.checked.)/i,ke=/^true\/(.*)/,Ee=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Fe(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&x(">tbody",e)[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Se(e){var t=ke.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Te(e,t){var i,n,s,r,o,a,l,c;if(1===t.nodeType){if(q.hasData(e)&&(r=q.access(e),o=q.set(t,r),c=r.events))for(s in delete o.handle,o.events={},c)for(i=0,n=c[s].length;i<n;i++)x.event.add(t,s,c[s][i]);K.hasData(e)&&(a=K.access(e),l=x.extend({},a),K.set(t,l))}}function Be(i,n,s,r){n=p.apply([],n);var e,t,o,a,l,c,h=0,u=i.length,d=u-1,g=n[0],f=x.isFunction(g);if(f||1<u&&"string"==typeof g&&!m.checkClone&&xe.test(g))return i.each(function(e){var t=i.eq(e);f&&(n[0]=g.call(this,e,t.html())),Be(t,n,s,r)});if(u&&(t=(e=fe(n,i[0].ownerDocument,!1,i,r)).firstChild,1===e.childNodes.length&&(e=t),t||r)){for(a=(o=x.map(ce(e,"script"),De)).length;h<u;h++)l=e,h!==d&&(l=x.clone(l,!0,!0),a&&x.merge(o,ce(l,"script"))),s.call(i[h],l,h);if(a)for(c=o[o.length-1].ownerDocument,x.map(o,Se),h=0;h<a;h++)l=o[h],ae.test(l.type||"")&&!q.access(l,"globalEval")&&x.contains(c,l)&&(l.src?x._evalUrl&&x._evalUrl(l.src):C(l.textContent.replace(Ee,""),c))}return i}function $e(e,t,i){for(var n,s=t?x.filter(t,e):e,r=0;null!=(n=s[r]);r++)i||1!==n.nodeType||x.cleanData(ce(n)),n.parentNode&&(i&&x.contains(n.ownerDocument,n)&&he(ce(n,"script")),n.parentNode.removeChild(n));return e}x.extend({htmlPrefilter:function(e){return e.replace(we,"<$1></$2>")},clone:function(e,t,i){var n,s,r,o,a,l,c,h=e.cloneNode(!0),u=x.contains(e.ownerDocument,e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(o=ce(h),n=0,s=(r=ce(e)).length;n<s;n++)a=r[n],l=o[n],void 0,"input"===(c=l.nodeName.toLowerCase())&&re.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(i)for(r=r||ce(e),o=o||ce(h),n=0,s=r.length;n<s;n++)Te(r[n],o[n]);else Te(e,h);return 0<(o=ce(h,"script")).length&&he(o,!u&&ce(e,"script")),h},cleanData:function(e){for(var t,i,n,s=x.event.special,r=0;void 0!==(i=e[r]);r++)if(V(i)){if(t=i[q.expando]){if(t.events)for(n in t.events)s[n]?x.event.remove(i,n):x.removeEvent(i,n,t.handle);i[q.expando]=void 0}i[K.expando]&&(i[K.expando]=void 0)}}}),x.fn.extend({detach:function(e){return $e(this,e,!0)},remove:function(e){return $e(this,e)},text:function(e){return W(this,function(e){return void 0===e?x.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 Be(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)})},prepend:function(){return Be(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Be(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Be(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&&(x.cleanData(ce(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return W(this,function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!_e.test(e)&&!le[(oe.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(x.cleanData(ce(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var i=[];return Be(this,arguments,function(e){var t=this.parentNode;x.inArray(this,i)<0&&(x.cleanData(ce(this)),t&&t.replaceChild(e,this))},i)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,o){x.fn[e]=function(e){for(var t,i=[],n=x(e),s=n.length-1,r=0;r<=s;r++)t=r===s?this:this.clone(!0),x(n[r])[o](t),l.apply(i,t.get());return this.pushStack(i)}});var Me=/^margin/,Le=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Re=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=w),t.getComputedStyle(e)};function Ne(e,t,i){var n,s,r,o,a=e.style;return(i=i||Re(e))&&(""!==(o=i.getPropertyValue(t)||i[t])||x.contains(e.ownerDocument,e)||(o=x.style(e,t)),!m.pixelMarginRight()&&Le.test(o)&&Me.test(t)&&(n=a.width,s=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=i.width,a.width=n,a.minWidth=s,a.maxWidth=r)),void 0!==o?o+"":o}function Oe(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function e(){if(o){o.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",pe.appendChild(r);var e=w.getComputedStyle(o);t="1%"!==e.top,s="2px"===e.marginLeft,i="4px"===e.width,o.style.marginRight="50%",n="4px"===e.marginRight,pe.removeChild(r),o=null}}var t,i,n,s,r=_.createElement("div"),o=_.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,r.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",r.appendChild(o),x.extend(m,{pixelPosition:function(){return e(),t},boxSizingReliable:function(){return e(),i},pixelMarginRight:function(){return e(),n},reliableMarginLeft:function(){return e(),s}}))}();var Pe=/^(none|table(?!-c[ea]).+)/,je=/^--/,He={position:"absolute",visibility:"hidden",display:"block"},ze={letterSpacing:"0",fontWeight:"400"},We=["Webkit","Moz","ms"],Ve=_.createElement("div").style;function Ue(e){var t=x.cssProps[e];return t||(t=x.cssProps[e]=function(e){if(e in Ve)return e;for(var t=e[0].toUpperCase()+e.slice(1),i=We.length;i--;)if((e=We[i]+t)in Ve)return e}(e)||e),t}function qe(e,t,i){var n=Z.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function Ke(e,t,i,n,s){var r,o=0;for(r=i===(n?"border":"content")?4:"width"===t?1:0;r<4;r+=2)"margin"===i&&(o+=x.css(e,i+Q[r],!0,s)),n?("content"===i&&(o-=x.css(e,"padding"+Q[r],!0,s)),"margin"!==i&&(o-=x.css(e,"border"+Q[r]+"Width",!0,s))):(o+=x.css(e,"padding"+Q[r],!0,s),"padding"!==i&&(o+=x.css(e,"border"+Q[r]+"Width",!0,s)));return o}function Ge(e,t,i){var n,s=Re(e),r=Ne(e,t,s),o="border-box"===x.css(e,"boxSizing",!1,s);return Le.test(r)?r:(n=o&&(m.boxSizingReliable()||r===e.style[t]),"auto"===r&&(r=e["offset"+t[0].toUpperCase()+t.slice(1)]),(r=parseFloat(r)||0)+Ke(e,t,i||(o?"border":"content"),n,s)+"px")}function Ye(e,t,i,n,s){return new Ye.prototype.init(e,t,i,n,s)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=Ne(e,"opacity");return""===i?"1":i}}}},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:{float:"cssFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,r,o,a=x.camelCase(t),l=je.test(t),c=e.style;return l||(t=Ue(a)),o=x.cssHooks[t]||x.cssHooks[a],void 0===i?o&&"get"in o&&void 0!==(s=o.get(e,!1,n))?s:c[t]:("string"===(r=typeof i)&&(s=Z.exec(i))&&s[1]&&(i=ie(e,t,s),r="number"),void(null!=i&&i==i&&("number"===r&&(i+=s&&s[3]||(x.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),o&&"set"in o&&void 0===(i=o.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))))}},css:function(e,t,i,n){var s,r,o,a=x.camelCase(t);return je.test(t)||(t=Ue(a)),(o=x.cssHooks[t]||x.cssHooks[a])&&"get"in o&&(s=o.get(e,!0,i)),void 0===s&&(s=Ne(e,t,n)),"normal"===s&&t in ze&&(s=ze[t]),""===i||i?(r=parseFloat(s),!0===i||isFinite(r)?r||0:s):s}}),x.each(["height","width"],function(e,o){x.cssHooks[o]={get:function(e,t,i){if(t)return!Pe.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ge(e,o,i):te(e,He,function(){return Ge(e,o,i)})},set:function(e,t,i){var n,s=i&&Re(e),r=i&&Ke(e,o,i,"border-box"===x.css(e,"boxSizing",!1,s),s);return r&&(n=Z.exec(t))&&"px"!==(n[3]||"px")&&(e.style[o]=t,t=x.css(e,o)),qe(0,t,r)}}}),x.cssHooks.marginLeft=Oe(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ne(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(s,r){x.cssHooks[s+r]={expand:function(e){for(var t=0,i={},n="string"==typeof e?e.split(" "):[e];t<4;t++)i[s+Q[t]+r]=n[t]||n[t-2]||n[0];return i}},Me.test(s)||(x.cssHooks[s+r].set=qe)}),x.fn.extend({css:function(e,t){return W(this,function(e,t,i){var n,s,r={},o=0;if(Array.isArray(t)){for(n=Re(e),s=t.length;o<s;o++)r[t[o]]=x.css(e,t[o],!1,n);return r}return void 0!==i?x.style(e,t,i):x.css(e,t)},e,t,1<arguments.length)}}),((x.Tween=Ye).prototype={constructor:Ye,init:function(e,t,i,n,s,r){this.elem=e,this.prop=i,this.easing=s||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=r||(x.cssNumber[i]?"":"px")},cur:function(){var e=Ye.propHooks[this.prop];return e&&e.get?e.get(this):Ye.propHooks._default.get(this)},run:function(e){var t,i=Ye.propHooks[this.prop];return this.options.duration?this.pos=t=x.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),i&&i.set?i.set(this):Ye.propHooks._default.set(this),this}}).init.prototype=Ye.prototype,(Ye.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=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[x.cssProps[e.prop]]&&!x.cssHooks[e.prop]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=Ye.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=Ye.prototype.init,x.fx.step={};var Je,Xe,Ze,Qe,et=/^(?:toggle|show|hide)$/,tt=/queueHooks$/;function it(){Xe&&(!1===_.hidden&&w.requestAnimationFrame?w.requestAnimationFrame(it):w.setTimeout(it,x.fx.interval),x.fx.tick())}function nt(){return w.setTimeout(function(){Je=void 0}),Je=x.now()}function st(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=Q[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function rt(e,t,i){for(var n,s=(ot.tweeners[t]||[]).concat(ot.tweeners["*"]),r=0,o=s.length;r<o;r++)if(n=s[r].call(i,t,e))return n}function ot(r,e,t){var i,o,n=0,s=ot.prefilters.length,a=x.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=Je||nt(),t=Math.max(0,c.startTime+c.duration-e),i=1-(t/c.duration||0),n=0,s=c.tweens.length;n<s;n++)c.tweens[n].run(i);return a.notifyWith(r,[c,i,t]),i<1&&s?t:(s||a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c]),!1)},c=a.promise({elem:r,props:x.extend({},e),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},t),originalProperties:e,originalOptions:t,startTime:Je||nt(),duration:t.duration,tweens:[],createTween:function(e,t){var i=x.Tween(r,c.opts,e,t,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var t=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;t<i;t++)c.tweens[t].run(1);return e?(a.notifyWith(r,[c,1,0]),a.resolveWith(r,[c,e])):a.rejectWith(r,[c,e]),this}}),h=c.props;for(function(e,t){var i,n,s,r,o;for(i in e)if(s=t[n=x.camelCase(i)],r=e[i],Array.isArray(r)&&(s=r[1],r=e[i]=r[0]),i!==n&&(e[n]=r,delete e[i]),(o=x.cssHooks[n])&&"expand"in o)for(i in r=o.expand(r),delete e[n],r)i in e||(e[i]=r[i],t[i]=s);else t[n]=s}(h,c.opts.specialEasing);n<s;n++)if(i=ot.prefilters[n].call(c,r,h,c.opts))return x.isFunction(i.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=x.proxy(i.stop,i)),i;return x.map(h,rt,c),x.isFunction(c.opts.start)&&c.opts.start.call(r,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:r,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(ot,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return ie(i.elem,e,Z.exec(t),i),i}]},tweener:function(e,t){for(var i,n=0,s=(e=x.isFunction(e)?(t=e,["*"]):e.match(R)).length;n<s;n++)i=e[n],ot.tweeners[i]=ot.tweeners[i]||[],ot.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,r,o,a,l,c,h,u="width"in t||"height"in t,d=this,g={},f=e.style,p=e.nodeType&&ee(e),m=q.get(e,"fxshow");for(n in i.queue||(null==(o=x._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,x.queue(e,"fx").length||o.empty.fire()})})),t)if(s=t[n],et.test(s)){if(delete t[n],r=r||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;p=!0}g[n]=m&&m[n]||x.style(e,n)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(g))for(n in u&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=q.get(e,"display")),"none"===(h=x.css(e,"display"))&&(c?h=c:(se([e],!0),c=e.style.display||c,h=x.css(e,"display"),se([e]))),("inline"===h||"inline-block"===h&&null!=c)&&"none"===x.css(e,"float")&&(l||(d.done(function(){f.display=c}),null==c&&(h=f.display,c="none"===h?"":h)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]})),l=!1,g)l||(m?"hidden"in m&&(p=m.hidden):m=q.access(e,"fxshow",{display:c}),r&&(m.hidden=!p),p&&se([e],!0),d.done(function(){for(n in p||se([e]),q.remove(e,"fxshow"),g)x.style(e,n,g[n])})),l=rt(p?m[n]:0,n,d),n in m||(m[n]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ot.prefilters.unshift(e):ot.prefilters.push(e)}}),x.speed=function(e,t,i){var n=e&&"object"==typeof e?x.extend({},e):{complete:i||!i&&t||x.isFunction(e)&&e,duration:e,easing:i&&t||t&&!x.isFunction(t)&&t};return x.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in x.fx.speeds?n.duration=x.fx.speeds[n.duration]:n.duration=x.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){x.isFunction(n.old)&&n.old.call(this),n.queue&&x.dequeue(this,n.queue)},n},x.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(t,e,i,n){var s=x.isEmptyObject(t),r=x.speed(e,i,n),o=function(){var e=ot(this,x.extend({},t),r);(s||q.get(this,"finish"))&&e.stop(!0)};return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(s,e,r){var o=function(e){var t=e.stop;delete e.stop,t(r)};return"string"!=typeof s&&(r=e,e=s,s=void 0),e&&!1!==s&&this.queue(s||"fx",[]),this.each(function(){var e=!0,t=null!=s&&s+"queueHooks",i=x.timers,n=q.get(this);if(t)n[t]&&n[t].stop&&o(n[t]);else for(t in n)n[t]&&n[t].stop&&tt.test(t)&&o(n[t]);for(t=i.length;t--;)i[t].elem!==this||null!=s&&i[t].queue!==s||(i[t].anim.stop(r),e=!1,i.splice(t,1));!e&&r||x.dequeue(this,s)})},finish:function(o){return!1!==o&&(o=o||"fx"),this.each(function(){var e,t=q.get(this),i=t[o+"queue"],n=t[o+"queueHooks"],s=x.timers,r=i?i.length:0;for(t.finish=!0,x.queue(this,o,[]),n&&n.stop&&n.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===o&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<r;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete t.finish})}}),x.each(["toggle","show","hide"],function(e,n){var s=x.fn[n];x.fn[n]=function(e,t,i){return null==e||"boolean"==typeof e?s.apply(this,arguments):this.animate(st(n,!0),e,t,i)}}),x.each({slideDown:st("show"),slideUp:st("hide"),slideToggle:st("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,n){x.fn[e]=function(e,t,i){return this.animate(n,e,t,i)}}),x.timers=[],x.fx.tick=function(){var e,t=0,i=x.timers;for(Je=x.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||x.fx.stop(),Je=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){Xe||(Xe=!0,it())},x.fx.stop=function(){Xe=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(n,e){return n=x.fx&&x.fx.speeds[n]||n,e=e||"fx",this.queue(e,function(e,t){var i=w.setTimeout(e,n);t.stop=function(){w.clearTimeout(i)}})},Ze=_.createElement("input"),Qe=_.createElement("select").appendChild(_.createElement("option")),Ze.type="checkbox",m.checkOn=""!==Ze.value,m.optSelected=Qe.selected,(Ze=_.createElement("input")).value="t",Ze.type="radio",m.radioValue="t"===Ze.value;var at,lt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return W(this,x.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,i){var n,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?x.prop(e,t,i):(1===r&&x.isXMLDoc(e)||(s=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?at:void 0)),void 0!==i?null===i?void x.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=x.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&E(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(R);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),at={set:function(e,t,i){return!1===t?x.removeAttr(e,i):e.setAttribute(i,i),i}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var o=lt[t]||x.find.attr;lt[t]=function(e,t,i){var n,s,r=t.toLowerCase();return i||(s=lt[r],lt[r]=n,n=null!=o(e,t,i)?r:null,lt[r]=s),n}});var ct=/^(?:input|select|textarea|button)$/i,ht=/^(?:a|area)$/i;function ut(e){return(e.match(R)||[]).join(" ")}function dt(e){return e.getAttribute&&e.getAttribute("class")||""}x.fn.extend({prop:function(e,t){return W(this,x.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,i){var n,s,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&x.isXMLDoc(e)||(t=x.propFix[t]||t,s=x.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):ct.test(e.nodeName)||ht.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(x.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)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(t){var e,i,n,s,r,o,a,l=0;if(x.isFunction(t))return this.each(function(e){x(this).addClass(t.call(this,e,dt(this)))});if("string"==typeof t&&t)for(e=t.match(R)||[];i=this[l++];)if(s=dt(i),n=1===i.nodeType&&" "+ut(s)+" "){for(o=0;r=e[o++];)n.indexOf(" "+r+" ")<0&&(n+=r+" ");s!==(a=ut(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,r,o,a,l=0;if(x.isFunction(t))return this.each(function(e){x(this).removeClass(t.call(this,e,dt(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(R)||[];i=this[l++];)if(s=dt(i),n=1===i.nodeType&&" "+ut(s)+" "){for(o=0;r=e[o++];)for(;-1<n.indexOf(" "+r+" ");)n=n.replace(" "+r+" "," ");s!==(a=ut(n))&&i.setAttribute("class",a)}return this},toggleClass:function(s,t){var r=typeof s;return"boolean"==typeof t&&"string"===r?t?this.addClass(s):this.removeClass(s):x.isFunction(s)?this.each(function(e){x(this).toggleClass(s.call(this,e,dt(this),t),t)}):this.each(function(){var e,t,i,n;if("string"===r)for(t=0,i=x(this),n=s.match(R)||[];e=n[t++];)i.hasClass(e)?i.removeClass(e):i.addClass(e);else void 0!==s&&"boolean"!==r||((e=dt(this))&&q.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===s?"":q.get(this,"__className__")||""))})},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+ut(dt(i))+" ").indexOf(t))return!0;return!1}});var gt=/\r/g;x.fn.extend({val:function(i){var n,e,s,t=this[0];return arguments.length?(s=x.isFunction(i),this.each(function(e){var t;1===this.nodeType&&(null==(t=s?i.call(this,e,x(this).val()):i)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=x.map(t,function(e){return null==e?"":e+""})),(n=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):t?(n=x.valHooks[t.type]||x.valHooks[t.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(gt,""):null==e?"":e:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:ut(x.text(e))}},select:{get:function(e){var t,i,n,s=e.options,r=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?r+1:s.length;for(n=r<0?l:o?r:0;n<l;n++)if(((i=s[n]).selected||n===r)&&!i.disabled&&(!i.parentNode.disabled||!E(i.parentNode,"optgroup"))){if(t=x(i).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var i,n,s=e.options,r=x.makeArray(t),o=s.length;o--;)((n=s[o]).selected=-1<x.inArray(x.valHooks.option.get(n),r))&&(i=!0);return i||(e.selectedIndex=-1),r}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<x.inArray(x(e).val(),t)}},m.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var ft=/^(?:focusinfocus|focusoutblur)$/;x.extend(x.event,{trigger:function(e,t,i,n){var s,r,o,a,l,c,h,u=[i||_],d=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(r=o=i=i||_,3!==i.nodeType&&8!==i.nodeType&&!ft.test(d+x.event.triggered)&&(-1<d.indexOf(".")&&(d=(g=d.split(".")).shift(),g.sort()),l=d.indexOf(":")<0&&"on"+d,(e=e[x.expando]?e:new x.Event(d,"object"==typeof e&&e)).isTrigger=n?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:x.makeArray(t,[e]),h=x.event.special[d]||{},n||!h.trigger||!1!==h.trigger.apply(i,t))){if(!n&&!h.noBubble&&!x.isWindow(i)){for(a=h.delegateType||d,ft.test(a+d)||(r=r.parentNode);r;r=r.parentNode)u.push(r),o=r;o===(i.ownerDocument||_)&&u.push(o.defaultView||o.parentWindow||w)}for(s=0;(r=u[s++])&&!e.isPropagationStopped();)e.type=1<s?a:h.bindType||d,(c=(q.get(r,"events")||{})[e.type]&&q.get(r,"handle"))&&c.apply(r,t),(c=l&&r[l])&&c.apply&&V(r)&&(e.result=c.apply(r,t),!1===e.result&&e.preventDefault());return e.type=d,n||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(u.pop(),t)||!V(i)||l&&x.isFunction(i[d])&&!x.isWindow(i)&&((o=i[l])&&(i[l]=null),i[x.event.triggered=d](),x.event.triggered=void 0,o&&(i[l]=o)),e.result}},simulate:function(e,t,i){var n=x.extend(new x.Event,i,{type:e,isSimulated:!0});x.event.trigger(n,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var i=this[0];if(i)return x.event.trigger(e,t,i,!0)}}),x.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,i){x.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),m.focusin="onfocusin"in w,m.focusin||x.each({focus:"focusin",blur:"focusout"},function(i,n){var s=function(e){x.event.simulate(n,e.target,x.event.fix(e))};x.event.special[n]={setup:function(){var e=this.ownerDocument||this,t=q.access(e,n);t||e.addEventListener(i,s,!0),q.access(e,n,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this,t=q.access(e,n)-1;t?q.access(e,n,t):(e.removeEventListener(i,s,!0),q.remove(e,n))}}});var pt=w.location,mt=x.now(),Ct=/\?/;x.parseXML=function(e){var t;if(!e||"string"!=typeof e)return null;try{t=(new w.DOMParser).parseFromString(e,"text/xml")}catch(e){t=void 0}return t&&!t.getElementsByTagName("parsererror").length||x.error("Invalid XML: "+e),t};var At=/\[\]$/,vt=/\r?\n/g,bt=/^(?:submit|button|image|reset|file)$/i,yt=/^(?:input|select|textarea|keygen)/i;function It(i,e,n,s){var t;if(Array.isArray(e))x.each(e,function(e,t){n||At.test(i)?s(i,t):It(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,n,s)});else if(n||"object"!==x.type(e))s(i,e);else for(t in e)It(i+"["+t+"]",e[t],n,s)}x.param=function(e,t){var i,n=[],s=function(e,t){var i=x.isFunction(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){s(this.name,this.value)});else for(i in e)It(i,e[i],t,s);return n.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&yt.test(this.nodeName)&&!bt.test(e)&&(this.checked||!re.test(e))}).map(function(e,t){var i=x(this).val();return null==i?null:Array.isArray(i)?x.map(i,function(e){return{name:t.name,value:e.replace(vt,"\r\n")}}):{name:t.name,value:i.replace(vt,"\r\n")}}).get()}});var wt=/%20/g,_t=/#.*$/,xt=/([?&])_=[^&]*/,kt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Et=/^(?:GET|HEAD)$/,Ft=/^\/\//,Dt={},St={},Tt="*/".concat("*"),Bt=_.createElement("a");function $t(r){return function(e,t){"string"!=typeof e&&(t=e,e="*");var i,n=0,s=e.toLowerCase().match(R)||[];if(x.isFunction(t))for(;i=s[n++];)"+"===i[0]?(i=i.slice(1)||"*",(r[i]=r[i]||[]).unshift(t)):(r[i]=r[i]||[]).push(t)}}function Mt(t,s,r,o){var a={},l=t===St;function c(e){var n;return a[e]=!0,x.each(t[e]||[],function(e,t){var i=t(s,r,o);return"string"!=typeof i||l||a[i]?l?!(n=i):void 0:(s.dataTypes.unshift(i),c(i),!1)}),n}return c(s.dataTypes[0])||!a["*"]&&c("*")}function Lt(e,t){var i,n,s=x.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&x.extend(!0,e,n),e}Bt.href=pt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(pt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Tt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Lt(Lt(e,x.ajaxSettings),t):Lt(x.ajaxSettings,e)},ajaxPrefilter:$t(Dt),ajaxTransport:$t(St),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var h,u,d,i,g,n,f,p,s,r,m=x.ajaxSetup({},t),C=m.context||m,A=m.context&&(C.nodeType||C.jquery)?x(C):x.event,v=x.Deferred(),b=x.Callbacks("once memory"),y=m.statusCode||{},o={},a={},l="canceled",I={readyState:0,getResponseHeader:function(e){var t;if(f){if(!i)for(i={};t=kt.exec(d);)i[t[1].toLowerCase()]=t[2];t=i[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return f?d:null},setRequestHeader:function(e,t){return null==f&&(e=a[e.toLowerCase()]=a[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==f&&(m.mimeType=e),this},statusCode:function(e){var t;if(e)if(f)I.always(e[I.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||l;return h&&h.abort(t),c(0,t),this}};if(v.promise(I),m.url=((e||m.url||pt.href)+"").replace(Ft,pt.protocol+"//"),m.type=t.method||t.type||m.method||m.type,m.dataTypes=(m.dataType||"*").toLowerCase().match(R)||[""],null==m.crossDomain){n=_.createElement("a");try{n.href=m.url,n.href=n.href,m.crossDomain=Bt.protocol+"//"+Bt.host!=n.protocol+"//"+n.host}catch(e){m.crossDomain=!0}}if(m.data&&m.processData&&"string"!=typeof m.data&&(m.data=x.param(m.data,m.traditional)),Mt(Dt,m,t,I),f)return I;for(s in(p=x.event&&m.global)&&0==x.active++&&x.event.trigger("ajaxStart"),m.type=m.type.toUpperCase(),m.hasContent=!Et.test(m.type),u=m.url.replace(_t,""),m.hasContent?m.data&&m.processData&&0===(m.contentType||"").indexOf("application/x-www-form-urlencoded")&&(m.data=m.data.replace(wt,"+")):(r=m.url.slice(u.length),m.data&&(u+=(Ct.test(u)?"&":"?")+m.data,delete m.data),!1===m.cache&&(u=u.replace(xt,"$1"),r=(Ct.test(u)?"&":"?")+"_="+mt+++r),m.url=u+r),m.ifModified&&(x.lastModified[u]&&I.setRequestHeader("If-Modified-Since",x.lastModified[u]),x.etag[u]&&I.setRequestHeader("If-None-Match",x.etag[u])),(m.data&&m.hasContent&&!1!==m.contentType||t.contentType)&&I.setRequestHeader("Content-Type",m.contentType),I.setRequestHeader("Accept",m.dataTypes[0]&&m.accepts[m.dataTypes[0]]?m.accepts[m.dataTypes[0]]+("*"!==m.dataTypes[0]?", "+Tt+"; q=0.01":""):m.accepts["*"]),m.headers)I.setRequestHeader(s,m.headers[s]);if(m.beforeSend&&(!1===m.beforeSend.call(C,I,m)||f))return I.abort();if(l="abort",b.add(m.complete),I.done(m.success),I.fail(m.error),h=Mt(St,m,t,I)){if(I.readyState=1,p&&A.trigger("ajaxSend",[I,m]),f)return I;m.async&&0<m.timeout&&(g=w.setTimeout(function(){I.abort("timeout")},m.timeout));try{f=!1,h.send(o,c)}catch(e){if(f)throw e;c(-1,e)}}else c(-1,"No Transport");function c(e,t,i,n){var s,r,o,a,l,c=t;f||(f=!0,g&&w.clearTimeout(g),h=void 0,d=n||"",I.readyState=0<e?4:0,s=200<=e&&e<300||304===e,i&&(a=function(e,t,i){for(var n,s,r,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)r=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){r=s;break}o||(o=s)}r=r||o}if(r)return r!==l[0]&&l.unshift(r),i[r]}(m,I,i)),a=function(e,t,i,n){var s,r,o,a,l,c={},h=e.dataTypes.slice();if(h[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(r=h.shift();r;)if(e.responseFields[r]&&(i[e.responseFields[r]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=h.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(o=c[l+" "+r]||c["* "+r]))for(s in c)if((a=s.split(" "))[1]===r&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[s]:!0!==c[s]&&(r=a[0],h.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(m,a,I,s),s?(m.ifModified&&((l=I.getResponseHeader("Last-Modified"))&&(x.lastModified[u]=l),(l=I.getResponseHeader("etag"))&&(x.etag[u]=l)),204===e||"HEAD"===m.type?c="nocontent":304===e?c="notmodified":(c=a.state,r=a.data,s=!(o=a.error))):(o=c,!e&&c||(c="error",e<0&&(e=0))),I.status=e,I.statusText=(t||c)+"",s?v.resolveWith(C,[r,c,I]):v.rejectWith(C,[I,c,o]),I.statusCode(y),y=void 0,p&&A.trigger(s?"ajaxSuccess":"ajaxError",[I,m,s?r:o]),b.fireWith(C,[I,c]),p&&(A.trigger("ajaxComplete",[I,m]),--x.active||x.event.trigger("ajaxStop")))}return I},getJSON:function(e,t,i){return x.get(e,t,i,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],function(e,s){x[s]=function(e,t,i,n){return x.isFunction(t)&&(n=n||i,i=t,t=void 0),x.ajax(x.extend({url:e,type:s,dataType:n,data:t,success:i},x.isPlainObject(e)&&e))}}),x._evalUrl=function(e){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(x.isFunction(e)&&(e=e.call(this[0])),t=x(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(i){return x.isFunction(i)?this.each(function(e){x(this).wrapInner(i.call(this,e))}):this.each(function(){var e=x(this),t=e.contents();t.length?t.wrapAll(i):e.append(i)})},wrap:function(t){var i=x.isFunction(t);return this.each(function(e){x(this).wrapAll(i?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new w.XMLHttpRequest}catch(e){}};var Rt={0:200,1223:204},Nt=x.ajaxSettings.xhr();m.cors=!!Nt&&"withCredentials"in Nt,m.ajax=Nt=!!Nt,x.ajaxTransport(function(s){var r,o;if(m.cors||Nt&&!s.crossDomain)return{send:function(e,t){var i,n=s.xhr();if(n.open(s.type,s.url,s.async,s.username,s.password),s.xhrFields)for(i in s.xhrFields)n[i]=s.xhrFields[i];for(i in s.mimeType&&n.overrideMimeType&&n.overrideMimeType(s.mimeType),s.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)n.setRequestHeader(i,e[i]);r=function(e){return function(){r&&(r=o=n.onload=n.onerror=n.onabort=n.onreadystatechange=null,"abort"===e?n.abort():"error"===e?"number"!=typeof n.status?t(0,"error"):t(n.status,n.statusText):t(Rt[n.status]||n.status,n.statusText,"text"!==(n.responseType||"text")||"string"!=typeof n.responseText?{binary:n.response}:{text:n.responseText},n.getAllResponseHeaders()))}},n.onload=r(),o=n.onerror=r("error"),void 0!==n.onabort?n.onabort=o:n.onreadystatechange=function(){4===n.readyState&&w.setTimeout(function(){r&&o()})},r=r("abort");try{n.send(s.hasContent&&s.data||null)}catch(e){if(r)throw e}},abort:function(){r&&r()}}}),x.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),x.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 x.globalEval(e),e}}}),x.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),x.ajaxTransport("script",function(i){var n,s;if(i.crossDomain)return{send:function(e,t){n=x("<script>").prop({charset:i.scriptCharset,src:i.url}).on("load error",s=function(e){n.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),_.head.appendChild(n[0])},abort:function(){s&&s()}}});var Ot,Pt=[],jt=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||x.expando+"_"+mt++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",function(e,t,i){var n,s,r,o=!1!==e.jsonp&&(jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&jt.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return n=e.jsonpCallback=x.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(jt,"$1"+n):!1!==e.jsonp&&(e.url+=(Ct.test(e.url)?"&":"?")+e.jsonp+"="+n),e.converters["script json"]=function(){return r||x.error(n+" was not called"),r[0]},e.dataTypes[0]="json",s=w[n],w[n]=function(){r=arguments},i.always(function(){void 0===s?x(w).removeProp(n):w[n]=s,e[n]&&(e.jsonpCallback=t.jsonpCallback,Pt.push(n)),r&&x.isFunction(s)&&s(r[0]),r=s=void 0}),"script"}),m.createHTMLDocument=((Ot=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ot.childNodes.length),x.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(m.createHTMLDocument?((n=(t=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,t.head.appendChild(n)):t=_),r=!i&&[],(s=F.exec(e))?[t.createElement(s[1])]:(s=fe([e],t,r),r&&r.length&&x(r).remove(),x.merge([],s.childNodes)));var n,s,r},x.fn.load=function(e,t,i){var n,s,r,o=this,a=e.indexOf(" ");return-1<a&&(n=ut(e.slice(a)),e=e.slice(0,a)),x.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),0<o.length&&x.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done(function(e){r=arguments,o.html(n?x("<div>").append(x.parseHTML(e)).find(n):e)}).always(i&&function(e,t){o.each(function(){i.apply(this,r||[e.responseText,t,e])})}),this},x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){x.fn[t]=function(e){return this.on(t,e)}}),x.expr.pseudos.animated=function(t){return x.grep(x.timers,function(e){return t===e.elem}).length},x.offset={setOffset:function(e,t,i){var n,s,r,o,a,l,c=x.css(e,"position"),h=x(e),u={};"static"===c&&(e.style.position="relative"),a=h.offset(),r=x.css(e,"top"),l=x.css(e,"left"),s=("absolute"===c||"fixed"===c)&&-1<(r+l).indexOf("auto")?(o=(n=h.position()).top,n.left):(o=parseFloat(r)||0,parseFloat(l)||0),x.isFunction(t)&&(t=t.call(e,i,x.extend({},a))),null!=t.top&&(u.top=t.top-a.top+o),null!=t.left&&(u.left=t.left-a.left+s),"using"in t?t.using.call(e,u):h.css(u)}},x.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){x.offset.setOffset(this,t,e)});var e,i,n,s,r=this[0];return r?r.getClientRects().length?(n=r.getBoundingClientRect(),i=(e=r.ownerDocument).documentElement,s=e.defaultView,{top:n.top+s.pageYOffset-i.clientTop,left:n.left+s.pageXOffset-i.clientLeft}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i=this[0],n={top:0,left:0};return"fixed"===x.css(i,"position")?t=i.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),E(e[0],"html")||(n=e.offset()),n={top:n.top+x.css(e[0],"borderTopWidth",!0),left:n.left+x.css(e[0],"borderLeftWidth",!0)}),{top:t.top-n.top-x.css(i,"marginTop",!0),left:t.left-n.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||pe})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var r="pageYOffset"===s;x.fn[t]=function(e){return W(this,function(e,t,i){var n;return x.isWindow(e)?n=e:9===e.nodeType&&(n=e.defaultView),void 0===i?n?n[s]:e[t]:void(n?n.scrollTo(r?n.pageXOffset:i,r?i:n.pageYOffset):e[t]=i)},t,e,arguments.length)}}),x.each(["top","left"],function(e,i){x.cssHooks[i]=Oe(m.pixelPosition,function(e,t){if(t)return t=Ne(e,i),Le.test(t)?x(e).position()[i]+"px":t})}),x.each({Height:"height",Width:"width"},function(o,a){x.each({padding:"inner"+o,content:a,"":"outer"+o},function(n,r){x.fn[r]=function(e,t){var i=arguments.length&&(n||"boolean"!=typeof e),s=n||(!0===e||!0===t?"margin":"border");return W(this,function(e,t,i){var n;return x.isWindow(e)?0===r.indexOf("outer")?e["inner"+o]:e.document.documentElement["client"+o]:9===e.nodeType?(n=e.documentElement,Math.max(e.body["scroll"+o],n["scroll"+o],e.body["offset"+o],n["offset"+o],n["client"+o])):void 0===i?x.css(e,t,s):x.style(e,t,i,s)},a,i?e:void 0,i)}})}),x.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=E,"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var Ht=w.jQuery,zt=w.$;return x.noConflict=function(e){return w.$===x&&(w.$=zt),e&&w.jQuery===x&&(w.jQuery=Ht),x},e||(w.jQuery=w.$=x),x}),function(e){"function"==typeof define&&define.amd?define(["jquery"],window,e):"object"==typeof module&&module.exports?module.exports=e(require("jquery"),window):e(jQuery,window)}(function(a,n){"use strict";a.migrateVersion="3.0.1",n.console&&n.console.log&&(a&&!/^[12]\./.test(a.fn.jquery)||n.console.log("JQMIGRATE: jQuery 3.0.0+ REQUIRED"),a.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"));function e(e,t,i,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return i},set:function(e){i=e}})}function t(e,t,i,n){e[t]=function(){return i.apply(this,arguments)}}a.migrateWarnings=[],void 0===a.migrateTrace&&(a.migrateTrace=!0),a.migrateReset=function(){({}),a.migrateWarnings.length=0},n.document.compatMode;var i,s=a.fn.init,r=a.isNumeric,o=a.find,l=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,c=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g;for(i in a.fn.init=function(e){var t=Array.prototype.slice.call(arguments);return"string"==typeof e&&"#"===e&&(t[0]=[]),s.apply(this,t)},a.fn.init.prototype=a.fn,a.find=function(t){var i=Array.prototype.slice.call(arguments);if("string"==typeof t&&l.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(c,function(e,t,i,n){return"["+t+i+'"'+n+'"]'});try{n.document.querySelector(t),i[0],i[0]=t}catch(e){i[0]}}return o.apply(this,i)},o)Object.prototype.hasOwnProperty.call(o,i)&&(a.find[i]=o[i]);a.fn.size=function(){return this.length},a.parseJSON=function(){return JSON.parse.apply(null,arguments)},a.isNumeric=function(e){r(e);var t,i,n=(i=(t=e)&&t.toString(),!a.isArray(t)&&0<=i-parseFloat(i)+1);return n},t(a,"holdReady",a.holdReady),t(a,"unique",a.uniqueSort),e(a.expr,"filters",a.expr.pseudos),e(a.expr,":",a.expr.pseudos);var h=a.ajax;a.ajax=function(){var e=h.apply(this,arguments);return e.promise&&(t(e,"success",e.done),t(e,"error",e.fail),t(e,"complete",e.always)),e};var u=a.fn.removeAttr,d=a.fn.toggleClass,g=/\S+/g;a.fn.removeAttr=function(e){var i=this;return a.each(e.match(g),function(e,t){a.expr.match.bool.test(t)&&i.prop(t,!1)}),u.apply(this,arguments)};a.fn.toggleClass=function(t){return void 0!==t&&"boolean"!=typeof t?d.apply(this,arguments):this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&a.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":a.data(this,"__className__")||"")})};a.swap&&a.each(["height","width","reliableMarginRight"],function(e,t){var i=a.cssHooks[t]&&a.cssHooks[t].get;i&&(a.cssHooks[t].get=function(){var e;return!0,e=i.apply(this,arguments),!1,e})}),a.swap=function(e,t,i,n){var s,r,o={};for(r in t)o[r]=e.style[r],e.style[r]=t[r];for(r in s=i.apply(e,n||[]),t)e.style[r]=o[r];return s};var f=a.data;a.data=function(e,t,i){var n;if(t&&"object"==typeof t&&2===arguments.length){n=a.hasData(e)&&f.call(this,e);var s={};for(var r in t)r!==a.camelCase(r)?n[r]=t[r]:s[r]=t[r];return f.call(this,e,s),t}return t&&"string"==typeof t&&t!==a.camelCase(t)&&(n=a.hasData(e)&&f.call(this,e))&&t in n?(2<arguments.length&&(n[t]=i),n[t]):f.apply(this,arguments)};var p=a.Tween.prototype.run,m=function(e){return e};a.Tween.prototype.run=function(){1<a.easing[this.easing].length&&(this.easing.toString(),a.easing[this.easing]=m),p.apply(this,arguments)},a.fx.interval=a.fx.interval||13,n.requestAnimationFrame&&e(a.fx,"interval",a.fx.interval);var C=a.fn.load,A=a.event.add,v=a.event.fix;a.event.props=[],a.event.fixHooks={},e(a.event.props,"concat",a.event.props.concat),a.event.fix=function(e){var t,i=e.type,n=this.fixHooks[i],s=a.event.props;if(s.length)for(s.join();s.length;)a.event.addProp(s.pop());if(n&&!n._migrated_&&(n._migrated_=!0,(s=n.props)&&s.length))for(;s.length;)a.event.addProp(s.pop());return t=v.call(this,e),n&&n.filter?n.filter(t,e):t},a.event.add=function(e,t){return e===n&&"load"===t&&n.document.readyState,A.apply(this,arguments)},a.each(["load","unload","error"],function(e,t){a.fn[t]=function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?C.apply(this,e):(e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))}}),a.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,i){a.fn[i]=function(e,t){return 0<arguments.length?this.on(i,null,e,t):this.trigger(i)}}),a(function(){a(n.document).triggerHandler("ready")}),a.event.special.ready={setup:function(){n.document}},a.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}});var b=a.fn.offset;a.fn.offset=function(){var e,t=this[0],i={top:0,left:0};return t&&t.nodeType?(e=(t.ownerDocument||n.document).documentElement,a.contains(e,t)?b.apply(this,arguments):i):i};var y=a.param;a.param=function(e,t){var i=a.ajaxSettings&&a.ajaxSettings.traditional;return void 0===t&&i&&(t=i),y.call(this,e,t)};var I=a.fn.andSelf||a.fn.addBack;a.fn.andSelf=function(){return I.apply(this,arguments)};var w=a.Deferred,_=[["resolve","done",a.Callbacks("once memory"),a.Callbacks("once memory"),"resolved"],["reject","fail",a.Callbacks("once memory"),a.Callbacks("once memory"),"rejected"],["notify","progress",a.Callbacks("memory"),a.Callbacks("memory")]];return a.Deferred=function(e){var r=w(),o=r.promise();return r.pipe=o.pipe=function(){var s=arguments;return a.Deferred(function(n){a.each(_,function(e,t){var i=a.isFunction(s[e])&&s[e];r[t[1]](function(){var e=i&&i.apply(this,arguments);e&&a.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===o?n.promise():this,i?[e]:arguments)})}),s=null}).promise()},e&&e.call(r,r),r},a.Deferred.exceptionHook=w.exceptionHook,a}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(F){function n(e,t){var i,n,s,r=e.nodeName.toLowerCase();return"area"===r?(n=(i=e.parentNode).name,!(!e.href||!n||"map"!==i.nodeName.toLowerCase())&&(!!(s=F("img[usemap='#"+n+"']")[0])&&o(s))):(/^(input|select|textarea|button|object)$/.test(r)?!e.disabled:"a"===r&&e.href||t)&&o(e)}function o(e){return F.expr.filters.visible(e)&&!F(e).parents().addBack().filter(function(){return"hidden"===F.css(this,"visibility")}).length}function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},F.extend(this._defaults,this.regional[""]),this.regional.en=F.extend(!0,{},this.regional[""]),this.regional["en-US"]=F.extend(!0,{},this.regional.en),this.dpDiv=i(F("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(e){var t="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.delegate(t,"mouseout",function(){F(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&F(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&F(this).removeClass("ui-datepicker-next-hover")}).delegate(t,"mouseover",r)}function r(){F.datepicker._isDisabledDatepicker(m.inline?m.dpDiv.parent()[0]:m.input[0])||(F(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),F(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&F(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&F(this).addClass("ui-datepicker-next-hover"))}function u(e,t){for(var i in F.extend(e,t),t)null==t[i]&&(e[i]=t[i]);return e}function t(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}var s,a,l,c;F.ui=F.ui||{},F.extend(F.ui,{version:"1.11.4",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),F.fn.extend({scrollParent:function(e){var t=this.css("position"),i="absolute"===t,n=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=F(this);return(!i||"static"!==e.css("position"))&&n.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==t&&s.length?s:F(this[0].ownerDocument||document)},uniqueId:(c=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++c)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&F(this).removeAttr("id")})}}),F.extend(F.expr[":"],{data:F.expr.createPseudo?F.expr.createPseudo(function(t){return function(e){return!!F.data(e,t)}}):function(e,t,i){return!!F.data(e,i[3])},focusable:function(e){return n(e,!isNaN(F.attr(e,"tabindex")))},tabbable:function(e){var t=F.attr(e,"tabindex"),i=isNaN(t);return(i||0<=t)&&n(e,!i)}}),F("<a>").outerWidth(1).jquery||F.each(["Width","Height"],function(e,i){function n(e,t,i,n){return F.each(s,function(){t-=parseFloat(F.css(e,"padding"+this))||0,i&&(t-=parseFloat(F.css(e,"border"+this+"Width"))||0),n&&(t-=parseFloat(F.css(e,"margin"+this))||0)}),t}var s="Width"===i?["Left","Right"]:["Top","Bottom"],r=i.toLowerCase(),o={innerWidth:F.fn.innerWidth,innerHeight:F.fn.innerHeight,outerWidth:F.fn.outerWidth,outerHeight:F.fn.outerHeight};F.fn["inner"+i]=function(e){return void 0===e?o["inner"+i].call(this):this.each(function(){F(this).css(r,n(this,e)+"px")})},F.fn["outer"+i]=function(e,t){return"number"!=typeof e?o["outer"+i].call(this,e):this.each(function(){F(this).css(r,n(this,e,!0,t)+"px")})}}),F.fn.addBack||(F.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),F("<a>").data("a-b","a").removeData("a-b").data("a-b")&&(F.fn.removeData=(l=F.fn.removeData,function(e){return arguments.length?l.call(this,F.camelCase(e)):l.call(this)})),F.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),F.fn.extend({focus:(a=F.fn.focus,function(t,i){return"number"==typeof t?this.each(function(){var e=this;setTimeout(function(){F(e).focus(),i&&i.call(e)},t)}):a.apply(this,arguments)}),disableSelection:(s="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.bind(s+".ui-disableSelection",function(e){e.preventDefault()})}),enableSelection:function(){return this.unbind(".ui-disableSelection")},zIndex:function(e){if(void 0!==e)return this.css("zIndex",e);if(this.length)for(var t,i,n=F(this[0]);n.length&&n[0]!==document;){if(("absolute"===(t=n.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(n.css("zIndex"),10),!isNaN(i)&&0!==i))return i;n=n.parent()}return 0}}),F.ui.plugin={add:function(e,t,i){var n,s=F.ui[e].prototype;for(n in i)s.plugins[n]=s.plugins[n]||[],s.plugins[n].push([t,i[n]])},call:function(e,t,i,n){var s,r=e.plugins[t];if(r&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;r.length>s;s++)e.options[r[s][0]]&&r[s][1].apply(e.element,i)}};var h,d=0,g=Array.prototype.slice;F.cleanData=(h=F.cleanData,function(e){var t,i,n;for(n=0;null!=(i=e[n]);n++)try{(t=F._data(i,"events"))&&t.remove&&F(i).triggerHandler("remove")}catch(e){}h(e)}),F.widget=function(e,i,t){var n,s,r,o,a={},l=e.split(".")[0];return e=e.split(".")[1],n=l+"-"+e,t||(t=i,i=F.Widget),F.expr[":"][n.toLowerCase()]=function(e){return!!F.data(e,n)},F[l]=F[l]||{},s=F[l][e],r=F[l][e]=function(e,t){return this._createWidget?void(arguments.length&&this._createWidget(e,t)):new r(e,t)},F.extend(r,s,{version:t.version,_proto:F.extend({},t),_childConstructors:[]}),(o=new i).options=F.widget.extend({},o.options),F.each(t,function(t,n){return F.isFunction(n)?void(a[t]=(s=function(){return i.prototype[t].apply(this,arguments)},r=function(e){return i.prototype[t].apply(this,e)},function(){var e,t=this._super,i=this._superApply;return this._super=s,this._superApply=r,e=n.apply(this,arguments),this._super=t,this._superApply=i,e})):void(a[t]=n);var s,r}),r.prototype=F.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||e},a,{constructor:r,namespace:l,widgetName:e,widgetFullName:n}),s?(F.each(s._childConstructors,function(e,t){var i=t.prototype;F.widget(i.namespace+"."+i.widgetName,r,t._proto)}),delete s._childConstructors):i._childConstructors.push(r),F.widget.bridge(e,r),r},F.widget.extend=function(e){for(var t,i,n=g.call(arguments,1),s=0,r=n.length;s<r;s++)for(t in n[s])i=n[s][t],n[s].hasOwnProperty(t)&&void 0!==i&&(e[t]=F.isPlainObject(i)?F.isPlainObject(e[t])?F.widget.extend({},e[t],i):F.widget.extend({},i):i);return e},F.widget.bridge=function(r,t){var o=t.prototype.widgetFullName||r;F.fn[r]=function(i){var e="string"==typeof i,n=g.call(arguments,1),s=this;return e?this.each(function(){var e,t=F.data(this,o);return"instance"===i?(s=t,!1):t?F.isFunction(t[i])&&"_"!==i.charAt(0)?(e=t[i].apply(t,n))!==t&&void 0!==e?(s=e&&e.jquery?s.pushStack(e.get()):e,!1):void 0:F.error("no such method '"+i+"' for "+r+" widget instance"):F.error("cannot call methods on "+r+" prior to initialization; attempted to call method '"+i+"'")}):(n.length&&(i=F.widget.extend.apply(null,[i].concat(n))),this.each(function(){var e=F.data(this,o);e?(e.option(i||{}),e._init&&e._init()):F.data(this,o,new t(i,this))})),s}},F.Widget=function(){},F.Widget._childConstructors=[],F.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(e,t){t=F(t||this.defaultElement||this)[0],this.element=F(t),this.uuid=d++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=F(),this.hoverable=F(),this.focusable=F(),t!==this&&(F.data(t,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===t&&this.destroy()}}),this.document=F(t.style?t.ownerDocument:t.document||t),this.window=F(this.document[0].defaultView||this.document[0].parentWindow)),this.options=F.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:F.noop,_getCreateEventData:F.noop,_create:F.noop,_init:F.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetFullName).removeData(F.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:F.noop,widget:function(){return this.element},option:function(e,t){var i,n,s,r=e;if(0===arguments.length)return F.widget.extend({},this.options);if("string"==typeof e)if(r={},e=(i=e.split(".")).shift(),i.length){for(n=r[e]=F.widget.extend({},this.options[e]),s=0;i.length-1>s;s++)n[i[s]]=n[i[s]]||{},n=n[i[s]];if(e=i.pop(),1===arguments.length)return void 0===n[e]?null:n[e];n[e]=t}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=t}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled",!!t),t&&(this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus"))),this},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_on:function(o,a,e){var l,c=this;"boolean"!=typeof o&&(e=a,a=o,o=!1),e?(a=l=F(a),this.bindings=this.bindings.add(a)):(e=a,a=this.element,l=this.widget()),F.each(e,function(e,t){function i(){return o||!0!==c.options.disabled&&!F(this).hasClass("ui-state-disabled")?("string"==typeof t?c[t]:t).apply(c,arguments):void 0}"string"!=typeof t&&(i.guid=t.guid=t.guid||i.guid||F.guid++);var n=e.match(/^([\w:-]*)\s*(.*)$/),s=n[1]+c.eventNamespace,r=n[2];r?l.delegate(r,s,i):a.bind(s,i)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t),this.bindings=F(this.bindings.not(e).get()),this.focusable=F(this.focusable.not(e).get()),this.hoverable=F(this.hoverable.not(e).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){F(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){F(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){F(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){F(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,t,i){var n,s,r=this.options[e];if(i=i||{},(t=F.Event(t)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),t.target=this.element[0],s=t.originalEvent)for(n in s)n in t||(t[n]=s[n]);return this.element.trigger(t,i),!(F.isFunction(r)&&!1===r.apply(this.element[0],[t].concat(i))||t.isDefaultPrevented())}},F.each({show:"fadeIn",hide:"fadeOut"},function(r,o){F.Widget.prototype["_"+r]=function(t,e,i){"string"==typeof e&&(e={effect:e});var n,s=e?!0===e||"number"==typeof e?o:e.effect||o:r;"number"==typeof(e=e||{})&&(e={duration:e}),n=!F.isEmptyObject(e),e.complete=i,e.delay&&t.delay(e.delay),n&&F.effects&&F.effects.effect[s]?t[r](e):s!==r&&t[s]?t[s](e.duration,e.easing,i):t.queue(function(e){F(this)[r](),i&&i.call(t[0]),e()})}}),F.widget;var f=!1;F(document).mouseup(function(){f=!1}),F.widget("ui.mouse",{version:"1.11.4",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.bind("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).bind("click."+this.widgetName,function(e){return!0===F.data(e.target,t.widgetName+".preventClickEvent")?(F.removeData(e.target,t.widgetName+".preventClickEvent"),e.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!f){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var t=this,i=1===e.which,n=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&F(e.target).closest(this.options.cancel).length;return i&&!n&&this._mouseCapture(e)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){t.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?e.preventDefault():(!0===F.data(e.target,this.widgetName+".preventClickEvent")&&F.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return t._mouseMove(e)},this._mouseUpDelegate=function(e){return t._mouseUp(e)},this.document.bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),f=!0)),!0}},_mouseMove:function(e){if(this._mouseMoved){if(F.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return this.document.unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&F.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),f=!1},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),function(){function I(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function w(e,t){return parseInt(F.css(e,t),10)||0}F.ui=F.ui||{};var s,_,x=Math.max,k=Math.abs,E=Math.round,n=/left|center|right/,r=/top|center|bottom/,o=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=F.fn.position;F.position={scrollbarWidth:function(){if(void 0!==s)return s;var e,t,i=F("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),n=i.children()[0];return F("body").append(i),e=n.offsetWidth,i.css("overflow","scroll"),e===(t=n.offsetWidth)&&(t=i[0].clientWidth),i.remove(),s=e-t},getScrollInfo:function(e){var t=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),i=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),n="scroll"===t||"auto"===t&&e.width<e.element[0].scrollWidth;return{width:"scroll"===i||"auto"===i&&e.height<e.element[0].scrollHeight?F.position.scrollbarWidth():0,height:n?F.position.scrollbarWidth():0}},getWithinInfo:function(e){var t=F(e||window),i=F.isWindow(t[0]),n=!!t[0]&&9===t[0].nodeType;return{element:t,isWindow:i,isDocument:n,offset:t.offset()||{left:0,top:0},scrollLeft:t.scrollLeft(),scrollTop:t.scrollTop(),width:i||n?t.width():t.outerWidth(),height:i||n?t.height():t.outerHeight()}}},F.fn.position=function(u){if(!u||!u.of)return c.apply(this,arguments);u=F.extend({},u);var d,g,f,p,m,e,t,i,C=F(u.of),A=F.position.getWithinInfo(u.within),v=F.position.getScrollInfo(A),b=(u.collision||"flip").split(" "),y={};return e=9===(i=(t=C)[0]).nodeType?{width:t.width(),height:t.height(),offset:{top:0,left:0}}:F.isWindow(i)?{width:t.width(),height:t.height(),offset:{top:t.scrollTop(),left:t.scrollLeft()}}:i.preventDefault?{width:0,height:0,offset:{top:i.pageY,left:i.pageX}}:{width:t.outerWidth(),height:t.outerHeight(),offset:t.offset()},C[0].preventDefault&&(u.at="left top"),g=e.width,f=e.height,p=e.offset,m=F.extend({},p),F.each(["my","at"],function(){var e,t,i=(u[this]||"").split(" ");1===i.length&&(i=n.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]),i[0]=n.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",e=o.exec(i[0]),t=o.exec(i[1]),y[this]=[e?e[0]:0,t?t[0]:0],u[this]=[a.exec(i[0])[0],a.exec(i[1])[0]]}),1===b.length&&(b[1]=b[0]),"right"===u.at[0]?m.left+=g:"center"===u.at[0]&&(m.left+=g/2),"bottom"===u.at[1]?m.top+=f:"center"===u.at[1]&&(m.top+=f/2),d=I(y.at,g,f),m.left+=d[0],m.top+=d[1],this.each(function(){var i,e,o=F(this),a=o.outerWidth(),l=o.outerHeight(),t=w(this,"marginLeft"),n=w(this,"marginTop"),s=a+t+w(this,"marginRight")+v.width,r=l+n+w(this,"marginBottom")+v.height,c=F.extend({},m),h=I(y.my,o.outerWidth(),o.outerHeight());"right"===u.my[0]?c.left-=a:"center"===u.my[0]&&(c.left-=a/2),"bottom"===u.my[1]?c.top-=l:"center"===u.my[1]&&(c.top-=l/2),c.left+=h[0],c.top+=h[1],_||(c.left=E(c.left),c.top=E(c.top)),i={marginLeft:t,marginTop:n},F.each(["left","top"],function(e,t){F.ui.position[b[e]]&&F.ui.position[b[e]][t](c,{targetWidth:g,targetHeight:f,elemWidth:a,elemHeight:l,collisionPosition:i,collisionWidth:s,collisionHeight:r,offset:[d[0]+h[0],d[1]+h[1]],my:u.my,at:u.at,within:A,elem:o})}),u.using&&(e=function(e){var t=p.left-c.left,i=t+g-a,n=p.top-c.top,s=n+f-l,r={target:{element:C,left:p.left,top:p.top,width:g,height:f},element:{element:o,left:c.left,top:c.top,width:a,height:l},horizontal:i<0?"left":0<t?"right":"center",vertical:s<0?"top":0<n?"bottom":"middle"};g<a&&g>k(t+i)&&(r.horizontal="center"),f<l&&f>k(n+s)&&(r.vertical="middle"),r.important=x(k(t),k(i))>x(k(n),k(s))?"horizontal":"vertical",u.using.call(this,e,r)}),o.offset(F.extend(c,{using:e}))})},F.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,r=n.width,o=e.left-t.collisionPosition.marginLeft,a=s-o,l=o+t.collisionWidth-r-s;t.collisionWidth>r?0<a&&l<=0?(i=e.left+a+t.collisionWidth-r-s,e.left+=a-i):e.left=0<l&&a<=0?s:l<a?s+r-t.collisionWidth:s:0<a?e.left+=a:0<l?e.left-=l:e.left=x(e.left-o,e.left)},top:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollTop:n.offset.top,r=t.within.height,o=e.top-t.collisionPosition.marginTop,a=s-o,l=o+t.collisionHeight-r-s;t.collisionHeight>r?0<a&&l<=0?(i=e.top+a+t.collisionHeight-r-s,e.top+=a-i):e.top=0<l&&a<=0?s:l<a?s+r-t.collisionHeight:s:0<a?e.top+=a:0<l?e.top-=l:e.top=x(e.top-o,e.top)}},flip:{left:function(e,t){var i,n,s=t.within,r=s.offset.left+s.scrollLeft,o=s.width,a=s.isWindow?s.scrollLeft:s.offset.left,l=e.left-t.collisionPosition.marginLeft,c=l-a,h=l+t.collisionWidth-o-a,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,d="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,g=-2*t.offset[0];c<0?((i=e.left+u+d+g+t.collisionWidth-o-r)<0||k(c)>i)&&(e.left+=u+d+g):0<h&&((0<(n=e.left-t.collisionPosition.marginLeft+u+d+g-a)||h>k(n))&&(e.left+=u+d+g))},top:function(e,t){var i,n,s=t.within,r=s.offset.top+s.scrollTop,o=s.height,a=s.isWindow?s.scrollTop:s.offset.top,l=e.top-t.collisionPosition.marginTop,c=l-a,h=l+t.collisionHeight-o-a,u="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,d="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,g=-2*t.offset[1];c<0?((n=e.top+u+d+g+t.collisionHeight-o-r)<0||k(c)>n)&&(e.top+=u+d+g):0<h&&((0<(i=e.top-t.collisionPosition.marginTop+u+d+g-a)||h>k(i))&&(e.top+=u+d+g))}},flipfit:{left:function(){F.ui.position.flip.left.apply(this,arguments),F.ui.position.fit.left.apply(this,arguments)},top:function(){F.ui.position.flip.top.apply(this,arguments),F.ui.position.fit.top.apply(this,arguments)}}},function(){var e,t,i,n,s,r=document.getElementsByTagName("body")[0],o=document.createElement("div");for(s in e=document.createElement(r?"div":"body"),i={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},r&&F.extend(i,{position:"absolute",left:"-1000px",top:"-1000px"}),i)e.style[s]=i[s];e.appendChild(o),(t=r||document.documentElement).insertBefore(e,t.firstChild),o.style.cssText="position: absolute; left: 10.7432222px;",n=F(o).offset().left,_=10<n&&n<11,e.innerHTML="",t.removeChild(e)}()}(),F.ui.position,F.widget("ui.draggable",F.ui.mouse,{version:"1.11.4",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var t=this.options;return this._blurActiveElement(e),!(this.helper||t.disabled||0<F(e.target).closest(".ui-resizable-handle").length)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blockFrames(!0===t.iframeFix?"iframe":t.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=F(this);return F("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var t=this.document[0];if(this.handleElement.is(e.target))try{t.activeElement&&"body"!==t.activeElement.nodeName.toLowerCase()&&F(t.activeElement).blur()}catch(e){}},_mouseStart:function(e){var t=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),F.ui.ddmanager&&(F.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter(function(){return"fixed"===F(this).css("position")}).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,t.cursorAt&&this._adjustOffsetFromHelper(t.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),F.ui.ddmanager&&!t.dropBehaviour&&F.ui.ddmanager.prepareOffsets(this,e),this._normalizeRightBottom(),this._mouseDrag(e,!0),F.ui.ddmanager&&F.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(e,t){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!t){var i=this._uiHash();if(!1===this._trigger("drag",e,i))return this._mouseUp({}),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",F.ui.ddmanager&&F.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var t=this,i=!1;return F.ui.ddmanager&&!this.options.dropBehaviour&&(i=F.ui.ddmanager.drop(this,e)),this.dropped&&(i=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!i||"valid"===this.options.revert&&i||!0===this.options.revert||F.isFunction(this.options.revert)&&this.options.revert.call(this.element,i)?F(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==t._trigger("stop",e)&&t._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),F.ui.ddmanager&&F.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.focus(),F.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!F(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this.handleElement.addClass("ui-draggable-handle")},_removeHandleClassName:function(){this.handleElement.removeClass("ui-draggable-handle")},_createHelper:function(e){var t=this.options,i=F.isFunction(t.helper),n=i?F(t.helper.apply(this.element[0],[e])):"clone"===t.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===t.appendTo?this.element[0].parentNode:t.appendTo),i&&n[0]===this.element[0]&&this._setPositionRelative(),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),F.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),t=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==t&&F.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options,s=this.document[0];return this.relativeContainer=null,n.containment?"window"===n.containment?void(this.containment=[F(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,F(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,F(window).scrollLeft()+F(window).width()-this.helperProportions.width-this.margins.left,F(window).scrollTop()+(F(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===n.containment?void(this.containment=[0,0,F(s).width()-this.helperProportions.width-this.margins.left,(F(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):n.containment.constructor===Array?void(this.containment=n.containment):("parent"===n.containment&&(n.containment=this.helper[0].parentNode),void((i=(t=F(n.containment))[0])&&(e=/(scroll|auto)/.test(t.css("overflow")),this.containment=[(parseInt(t.css("borderLeftWidth"),10)||0)+(parseInt(t.css("paddingLeft"),10)||0),(parseInt(t.css("borderTopWidth"),10)||0)+(parseInt(t.css("paddingTop"),10)||0),(e?Math.max(i.scrollWidth,i.offsetWidth):i.offsetWidth)-(parseInt(t.css("borderRightWidth"),10)||0)-(parseInt(t.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(i.scrollHeight,i.offsetHeight):i.offsetHeight)-(parseInt(t.css("borderBottomWidth"),10)||0)-(parseInt(t.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=t))):void(this.containment=null)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,r,o=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(i=this.relativeContainer?(n=this.relativeContainer.offset(),[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),o.grid&&(s=o.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/o.grid[1])*o.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-o.grid[1]:s+o.grid[1]:s,r=o.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/o.grid[0])*o.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-o.grid[0]:r+o.grid[0]:r),"y"===o.axis&&(l=this.originalPageX),"x"===o.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:a?0:this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_normalizeRightBottom:function(){"y"!==this.options.axis&&"auto"!==this.helper.css("right")&&(this.helper.width(this.helper.width()),this.helper.css("right","auto")),"x"!==this.options.axis&&"auto"!==this.helper.css("bottom")&&(this.helper.height(this.helper.height()),this.helper.css("bottom","auto"))},_trigger:function(e,t,i){return i=i||this._uiHash(),F.ui.plugin.call(this,e,[t,i,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),i.offset=this.positionAbs),F.Widget.prototype._trigger.call(this,e,t,i)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),F.ui.plugin.add("draggable","connectToSortable",{start:function(t,e,i){var n=F.extend({},e,{item:i.element});i.sortables=[],F(i.options.connectToSortable).each(function(){var e=F(this).sortable("instance");e&&!e.options.disabled&&(i.sortables.push(e),e.refreshPositions(),e._trigger("activate",t,n))})},stop:function(t,e,i){var n=F.extend({},e,{item:i.element});i.cancelHelperRemoval=!1,F.each(i.sortables,function(){var e=this;e.isOver?(e.isOver=0,i.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,n))})},drag:function(i,n,s){F.each(s.sortables,function(){var e=!1,t=this;t.positionAbs=s.positionAbs,t.helperProportions=s.helperProportions,t.offset.click=s.offset.click,t._intersectsWith(t.containerCache)&&(e=!0,F.each(s.sortables,function(){return this.positionAbs=s.positionAbs,this.helperProportions=s.helperProportions,this.offset.click=s.offset.click,this!==t&&this._intersectsWith(this.containerCache)&&F.contains(t.element[0],this.element[0])&&(e=!1),e})),e?(t.isOver||(t.isOver=1,s._parent=n.helper.parent(),t.currentItem=n.helper.appendTo(t.element).data("ui-sortable-item",!0),t.options._helper=t.options.helper,t.options.helper=function(){return n.helper[0]},i.target=t.currentItem[0],t._mouseCapture(i,!0),t._mouseStart(i,!0,!0),t.offset.click.top=s.offset.click.top,t.offset.click.left=s.offset.click.left,t.offset.parent.left-=s.offset.parent.left-t.offset.parent.left,t.offset.parent.top-=s.offset.parent.top-t.offset.parent.top,s._trigger("toSortable",i),s.dropped=t.element,F.each(s.sortables,function(){this.refreshPositions()}),s.currentItem=s.element,t.fromOutside=s),t.currentItem&&(t._mouseDrag(i),n.position=t.position)):t.isOver&&(t.isOver=0,t.cancelHelperRemoval=!0,t.options._revert=t.options.revert,t.options.revert=!1,t._trigger("out",i,t._uiHash(t)),t._mouseStop(i,!0),t.options.revert=t.options._revert,t.options.helper=t.options._helper,t.placeholder&&t.placeholder.remove(),n.helper.appendTo(s._parent),s._refreshOffsets(i),n.position=s._generatePosition(i,!0),s._trigger("fromSortable",i),s.dropped=!1,F.each(s.sortables,function(){this.refreshPositions()}))})}}),F.ui.plugin.add("draggable","cursor",{start:function(e,t,i){var n=F("body"),s=i.options;n.css("cursor")&&(s._cursor=n.css("cursor")),n.css("cursor",s.cursor)},stop:function(e,t,i){var n=i.options;n._cursor&&F("body").css("cursor",n._cursor)}}),F.ui.plugin.add("draggable","opacity",{start:function(e,t,i){var n=F(t.helper),s=i.options;n.css("opacity")&&(s._opacity=n.css("opacity")),n.css("opacity",s.opacity)},stop:function(e,t,i){var n=i.options;n._opacity&&F(t.helper).css("opacity",n._opacity)}}),F.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,t,i){var n=i.options,s=!1,r=i.scrollParentNotHidden[0],o=i.document[0];r!==o&&"HTML"!==r.tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+r.offsetHeight-e.pageY<n.scrollSensitivity?r.scrollTop=s=r.scrollTop+n.scrollSpeed:e.pageY-i.overflowOffset.top<n.scrollSensitivity&&(r.scrollTop=s=r.scrollTop-n.scrollSpeed)),n.axis&&"y"===n.axis||(i.overflowOffset.left+r.offsetWidth-e.pageX<n.scrollSensitivity?r.scrollLeft=s=r.scrollLeft+n.scrollSpeed:e.pageX-i.overflowOffset.left<n.scrollSensitivity&&(r.scrollLeft=s=r.scrollLeft-n.scrollSpeed))):(n.axis&&"x"===n.axis||(e.pageY-F(o).scrollTop()<n.scrollSensitivity?s=F(o).scrollTop(F(o).scrollTop()-n.scrollSpeed):F(window).height()-(e.pageY-F(o).scrollTop())<n.scrollSensitivity&&(s=F(o).scrollTop(F(o).scrollTop()+n.scrollSpeed))),n.axis&&"y"===n.axis||(e.pageX-F(o).scrollLeft()<n.scrollSensitivity?s=F(o).scrollLeft(F(o).scrollLeft()-n.scrollSpeed):F(window).width()-(e.pageX-F(o).scrollLeft())<n.scrollSensitivity&&(s=F(o).scrollLeft(F(o).scrollLeft()+n.scrollSpeed)))),!1!==s&&F.ui.ddmanager&&!n.dropBehaviour&&F.ui.ddmanager.prepareOffsets(i,e)}}),F.ui.plugin.add("draggable","snap",{start:function(e,t,i){var n=i.options;i.snapElements=[],F(n.snap.constructor!==String?n.snap.items||":data(ui-draggable)":n.snap).each(function(){var e=F(this),t=e.offset();this!==i.element[0]&&i.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:t.top,left:t.left})})},drag:function(e,t,i){var n,s,r,o,a,l,c,h,u,d,g=i.options,f=g.snapTolerance,p=t.offset.left,m=p+i.helperProportions.width,C=t.offset.top,A=C+i.helperProportions.height;for(u=i.snapElements.length-1;0<=u;u--)l=(a=i.snapElements[u].left-i.margins.left)+i.snapElements[u].width,h=(c=i.snapElements[u].top-i.margins.top)+i.snapElements[u].height,m<a-f||l+f<p||A<c-f||h+f<C||!F.contains(i.snapElements[u].item.ownerDocument,i.snapElements[u].item)?(i.snapElements[u].snapping&&i.options.snap.release&&i.options.snap.release.call(i.element,e,F.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=!1):("inner"!==g.snapMode&&(n=f>=Math.abs(c-A),s=f>=Math.abs(h-C),r=f>=Math.abs(a-m),o=f>=Math.abs(l-p),n&&(t.position.top=i._convertPositionTo("relative",{top:c-i.helperProportions.height,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:h,left:0}).top),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:a-i.helperProportions.width}).left),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l}).left)),d=n||s||r||o,"outer"!==g.snapMode&&(n=f>=Math.abs(c-C),s=f>=Math.abs(h-A),r=f>=Math.abs(a-p),o=f>=Math.abs(l-m),n&&(t.position.top=i._convertPositionTo("relative",{top:c,left:0}).top),s&&(t.position.top=i._convertPositionTo("relative",{top:h-i.helperProportions.height,left:0}).top),r&&(t.position.left=i._convertPositionTo("relative",{top:0,left:a}).left),o&&(t.position.left=i._convertPositionTo("relative",{top:0,left:l-i.helperProportions.width}).left)),!i.snapElements[u].snapping&&(n||s||r||o||d)&&i.options.snap.snap&&i.options.snap.snap.call(i.element,e,F.extend(i._uiHash(),{snapItem:i.snapElements[u].item})),i.snapElements[u].snapping=n||s||r||o||d)}}),F.ui.plugin.add("draggable","stack",{start:function(e,t,i){var n,s=i.options,r=F.makeArray(F(s.stack)).sort(function(e,t){return(parseInt(F(e).css("zIndex"),10)||0)-(parseInt(F(t).css("zIndex"),10)||0)});r.length&&(n=parseInt(F(r[0]).css("zIndex"),10)||0,F(r).each(function(e){F(this).css("zIndex",n+e)}),this.css("zIndex",n+r.length))}}),F.ui.plugin.add("draggable","zIndex",{start:function(e,t,i){var n=F(t.helper),s=i.options;n.css("zIndex")&&(s._zIndex=n.css("zIndex")),n.css("zIndex",s.zIndex)},stop:function(e,t,i){var n=i.options;n._zIndex&&F(t.helper).css("zIndex",n._zIndex)}}),F.ui.draggable,F.widget("ui.droppable",{version:"1.11.4",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept=F.isFunction(i)?i:function(e){return e.is(i)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(t.scope),t.addClasses&&this.element.addClass("ui-droppable")},_addToManager:function(e){F.ui.ddmanager.droppables[e]=F.ui.ddmanager.droppables[e]||[],F.ui.ddmanager.droppables[e].push(this)},_splice:function(e){for(var t=0;e.length>t;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var e=F.ui.ddmanager.droppables[this.options.scope];this._splice(e),this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,t){if("accept"===e)this.accept=F.isFunction(t)?t:function(e){return e.is(t)};else if("scope"===e){var i=F.ui.ddmanager.droppables[this.options.scope];this._splice(i),this._addToManager(t)}this._super(e,t)},_activate:function(e){var t=F.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),t&&this._trigger("activate",e,this.ui(t))},_deactivate:function(e){var t=F.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),t&&this._trigger("deactivate",e,this.ui(t))},_over:function(e){var t=F.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(t)))},_out:function(e){var t=F.ui.ddmanager.current;t&&(t.currentItem||t.element)[0]!==this.element[0]&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(t)))},_drop:function(t,e){var i=e||F.ui.ddmanager.current,n=!1;return!(!i||(i.currentItem||i.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var e=F(this).droppable("instance");return e.options.greedy&&!e.options.disabled&&e.options.scope===i.options.scope&&e.accept.call(e.element[0],i.currentItem||i.element)&&F.ui.intersect(i,F.extend(e,{offset:e.element.offset()}),e.options.tolerance,t)?!(n=!0):void 0}),!n&&(!!this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",t,this.ui(i)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}}}),F.ui.intersect=function(){function d(e,t,i){return t<=e&&e<t+i}return function(e,t,i,n){if(!t.offset)return!1;var s=(e.positionAbs||e.position.absolute).left+e.margins.left,r=(e.positionAbs||e.position.absolute).top+e.margins.top,o=s+e.helperProportions.width,a=r+e.helperProportions.height,l=t.offset.left,c=t.offset.top,h=l+t.proportions().width,u=c+t.proportions().height;switch(i){case"fit":return l<=s&&o<=h&&c<=r&&a<=u;case"intersect":return s+e.helperProportions.width/2>l&&h>o-e.helperProportions.width/2&&r+e.helperProportions.height/2>c&&u>a-e.helperProportions.height/2;case"pointer":return d(n.pageY,c,t.proportions().height)&&d(n.pageX,l,t.proportions().width);case"touch":return(c<=r&&r<=u||c<=a&&a<=u||r<c&&u<a)&&(l<=s&&s<=h||l<=o&&o<=h||s<l&&h<o);default:return!1}}}(),F.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,t){var i,n,s=F.ui.ddmanager.droppables[e.options.scope]||[],r=t?t.type:null,o=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();e:for(i=0;s.length>i;i++)if(!(s[i].options.disabled||e&&!s[i].accept.call(s[i].element[0],e.currentItem||e.element))){for(n=0;o.length>n;n++)if(o[n]===s[i].element[0]){s[i].proportions().height=0;continue e}s[i].visible="none"!==s[i].element.css("display"),s[i].visible&&("mousedown"===r&&s[i]._activate.call(s[i],t),s[i].offset=s[i].element.offset(),s[i].proportions({width:s[i].element[0].offsetWidth,height:s[i].element[0].offsetHeight}))}},drop:function(e,t){var i=!1;return F.each((F.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&F.ui.intersect(e,this,this.options.tolerance,t)&&(i=this._drop.call(this,t)||i),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,t)))}),i},dragStart:function(e,t){e.element.parentsUntil("body").bind("scroll.droppable",function(){e.options.refreshPositions||F.ui.ddmanager.prepareOffsets(e,t)})},drag:function(r,o){r.options.refreshPositions&&F.ui.ddmanager.prepareOffsets(r,o),F.each(F.ui.ddmanager.droppables[r.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var e,t,i,n=F.ui.intersect(r,this,this.options.tolerance,o),s=!n&&this.isover?"isout":n&&!this.isover?"isover":null;s&&(this.options.greedy&&(t=this.options.scope,(i=this.element.parents(":data(ui-droppable)").filter(function(){return F(this).droppable("instance").options.scope===t})).length&&((e=F(i[0]).droppable("instance")).greedyChild="isover"===s)),e&&"isover"===s&&(e.isover=!1,e.isout=!0,e._out.call(e,o)),this[s]=!0,this["isout"===s?"isover":"isout"]=!1,this["isover"===s?"_over":"_out"].call(this,o),e&&"isout"===s&&(e.isout=!1,e.isover=!0,e._over.call(e,o)))}})},dragStop:function(e,t){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||F.ui.ddmanager.prepareOffsets(e,t)}},F.ui.droppable,F.widget("ui.resizable",F.ui.mouse,{version:"1.11.4",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseInt(e,10)||0},_isNumber:function(e){return!isNaN(parseInt(e,10))},_hasScroll:function(e,t){if("hidden"===F(e).css("overflow"))return!1;var i=t&&"left"===t?"scrollLeft":"scrollTop",n=!1;return 0<e[i]||(e[i]=1,n=0<e[i],e[i]=0,n)},_create:function(){var e,t,i,n,r=this,s=this.options;if(this.element.addClass("ui-resizable"),F.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(F("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(F(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=F(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},t=0;e.length>t;t++)i=F.trim(e[t]),(n=F("<div class='ui-resizable-handle "+("ui-resizable-"+i)+"'></div>")).css({zIndex:s.zIndex}),"se"===i&&n.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[i]=".ui-resizable-"+i,this.element.append(n);this._renderAxis=function(e){var t,i,n,s;for(t in e=e||this.element,this.handles)this.handles[t].constructor===String?this.handles[t]=this.element.children(this.handles[t]).first().show():(this.handles[t].jquery||this.handles[t].nodeType)&&(this.handles[t]=F(this.handles[t]),this._on(this.handles[t],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(i=F(this.handles[t],this.element),s=/sw|ne|nw|se|n|s/.test(t)?i.outerHeight():i.outerWidth(),n=["padding",/ne|nw|n/.test(t)?"Top":/se|sw|s/.test(t)?"Bottom":/^e$/.test(t)?"Right":"Left"].join(""),e.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[t])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.mouseover(function(){r.resizing||(this.className&&(n=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=n&&n[1]?n[1]:"se")}),s.autoHide&&(this._handles.hide(),F(this.element).addClass("ui-resizable-autohide").mouseenter(function(){s.disabled||(F(this).removeClass("ui-resizable-autohide"),r._handles.show())}).mouseleave(function(){s.disabled||r.resizing||(F(this).addClass("ui-resizable-autohide"),r._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,t=function(e){F(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(t(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),t(this.originalElement),this},_mouseCapture:function(e){var t,i,n=!1;for(t in this.handles)((i=F(this.handles[t])[0])===e.target||F.contains(i,e.target))&&(n=!0);return!this.options.disabled&&n},_mouseStart:function(e){var t,i,n,s=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),t=this._num(this.helper.css("left")),i=this._num(this.helper.css("top")),s.containment&&(t+=F(s.containment).scrollLeft()||0,i+=F(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:t,top:i},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:t,top:i},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,n=F(".ui-resizable-"+this.axis).css("cursor"),F("body").css("cursor","auto"===n?this.axis+"-resize":n),r.addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var t,i,n=this.originalMousePosition,s=this.axis,r=e.pageX-n.left||0,o=e.pageY-n.top||0,a=this._change[s];return this._updatePrevProperties(),a&&(t=a.apply(this,[e,r,o]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(t=this._updateRatio(t,e)),t=this._respectSize(t,e),this._updateCache(t),this._propagate("resize",e),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),F.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var t,i,n,s,r,o,a,l=this.options,c=this;return this._helper&&(n=(i=(t=this._proportionallyResizeElements).length&&/textarea/i.test(t[0].nodeName))&&this._hasScroll(t[0],"left")?0:c.sizeDiff.height,s=i?0:c.sizeDiff.width,r={width:c.helper.width()-s,height:c.helper.height()-n},o=parseInt(c.element.css("left"),10)+(c.position.left-c.originalPosition.left)||null,a=parseInt(c.element.css("top"),10)+(c.position.top-c.originalPosition.top)||null,l.animate||this.element.css(F.extend(r,{top:a,left:o})),c.helper.height(c.size.height),c.helper.width(c.size.width),this._helper&&!l.animate&&this._proportionallyResize()),F("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,r,o=this.options;r={minWidth:this._isNumber(o.minWidth)?o.minWidth:0,maxWidth:this._isNumber(o.maxWidth)?o.maxWidth:1/0,minHeight:this._isNumber(o.minHeight)?o.minHeight:0,maxHeight:this._isNumber(o.maxHeight)?o.maxHeight:1/0},(this._aspectRatio||e)&&(t=r.minHeight*this.aspectRatio,n=r.minWidth/this.aspectRatio,i=r.maxHeight*this.aspectRatio,s=r.maxWidth/this.aspectRatio,t>r.minWidth&&(r.minWidth=t),n>r.minHeight&&(r.minHeight=n),r.maxWidth>i&&(r.maxWidth=i),r.maxHeight>s&&(r.maxHeight=s)),this._vBoundaries=r},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,r=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,o=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.position.top+this.size.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return r&&(e.width=t.minWidth),o&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),r&&c&&(e.left=a-t.minWidth),n&&c&&(e.left=a-t.maxWidth),o&&h&&(e.top=l-t.minHeight),s&&h&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseInt(n[t],10)||0,i[t]+=parseInt(s[t],10)||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;this._proportionallyResizeElements.length>t;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,t=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||F("<div style='overflow:hidden;'></div>"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++t.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(e,t,i){return F.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},sw:function(e,t,i){return F.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,t,i]))},ne:function(e,t,i){return F.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,t,i]))},nw:function(e,t,i){return F.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,t,i]))}},_propagate:function(e,t){F.ui.plugin.call(this,e,[t,this.ui()]),"resize"!==e&&this._trigger(e,t,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),F.ui.plugin.add("resizable","animate",{stop:function(t){var i=F(this).resizable("instance"),e=i.options,n=i._proportionallyResizeElements,s=n.length&&/textarea/i.test(n[0].nodeName),r=s&&i._hasScroll(n[0],"left")?0:i.sizeDiff.height,o=s?0:i.sizeDiff.width,a={width:i.size.width-o,height:i.size.height-r},l=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,c=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(F.extend(a,c&&l?{top:c,left:l}:{}),{duration:e.animateDuration,easing:e.animateEasing,step:function(){var e={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};n&&n.length&&F(n[0]).css({width:e.width,height:e.height}),i._updateCache(e),i._propagate("resize",t)}})}}),F.ui.plugin.add("resizable","containment",{start:function(){var i,n,e,t,s,r,o,a=F(this).resizable("instance"),l=a.options,c=a.element,h=l.containment,u=h instanceof F?h.get(0):/parent/.test(h)?c.parent().get(0):h;u&&(a.containerElement=F(u),/document/.test(h)||h===document?(a.containerOffset={left:0,top:0},a.containerPosition={left:0,top:0},a.parentData={element:F(document),left:0,top:0,width:F(document).width(),height:F(document).height()||document.body.parentNode.scrollHeight}):(i=F(u),n=[],F(["Top","Right","Left","Bottom"]).each(function(e,t){n[e]=a._num(i.css("padding"+t))}),a.containerOffset=i.offset(),a.containerPosition=i.position(),a.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},e=a.containerOffset,t=a.containerSize.height,s=a.containerSize.width,r=a._hasScroll(u,"left")?u.scrollWidth:s,o=a._hasScroll(u)?u.scrollHeight:t,a.parentData={element:u,left:e.left,top:e.top,width:r,height:o}))},resize:function(e){var t,i,n,s,r=F(this).resizable("instance"),o=r.options,a=r.containerOffset,l=r.position,c=r._aspectRatio||e.shiftKey,h={top:0,left:0},u=r.containerElement,d=!0;u[0]!==document&&/static/.test(u.css("position"))&&(h=a),l.left<(r._helper?a.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-a.left:r.position.left-h.left),c&&(r.size.height=r.size.width/r.aspectRatio,d=!1),r.position.left=o.helper?a.left:0),l.top<(r._helper?a.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-a.top:r.position.top),c&&(r.size.width=r.size.height*r.aspectRatio,d=!1),r.position.top=r._helper?a.top:0),n=r.containerElement.get(0)===r.element.parent().get(0),s=/relative|absolute/.test(r.containerElement.css("position")),r.offset.top=n&&s?(r.offset.left=r.parentData.left+r.position.left,r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.element.offset().top),t=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-a.left)),i=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-a.top)),t+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-t,c&&(r.size.height=r.size.width/r.aspectRatio,d=!1)),i+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-i,c&&(r.size.width=r.size.height*r.aspectRatio,d=!1)),d||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var e=F(this).resizable("instance"),t=e.options,i=e.containerOffset,n=e.containerPosition,s=e.containerElement,r=F(e.helper),o=r.offset(),a=r.outerWidth()-e.sizeDiff.width,l=r.outerHeight()-e.sizeDiff.height;e._helper&&!t.animate&&/relative/.test(s.css("position"))&&F(this).css({left:o.left-n.left-i.left,width:a,height:l}),e._helper&&!t.animate&&/static/.test(s.css("position"))&&F(this).css({left:o.left-n.left-i.left,width:a,height:l})}}),F.ui.plugin.add("resizable","alsoResize",{start:function(){var e=F(this).resizable("instance").options;F(e.alsoResize).each(function(){var e=F(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})})},resize:function(e,i){var t=F(this).resizable("instance"),n=t.options,s=t.originalSize,r=t.originalPosition,o={height:t.size.height-s.height||0,width:t.size.width-s.width||0,top:t.position.top-r.top||0,left:t.position.left-r.left||0};F(n.alsoResize).each(function(){var e=F(this),n=F(this).data("ui-resizable-alsoresize"),s={},t=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];F.each(t,function(e,t){var i=(n[t]||0)+(o[t]||0);i&&0<=i&&(s[t]=i||null)}),e.css(s)})},stop:function(){F(this).removeData("resizable-alsoresize")}}),F.ui.plugin.add("resizable","ghost",{start:function(){var e=F(this).resizable("instance"),t=e.options,i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof t.ghost?t.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=F(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=F(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),F.ui.plugin.add("resizable","grid",{resize:function(){var e,t=F(this).resizable("instance"),i=t.options,n=t.size,s=t.originalSize,r=t.originalPosition,o=t.axis,a="number"==typeof i.grid?[i.grid,i.grid]:i.grid,l=a[0]||1,c=a[1]||1,h=Math.round((n.width-s.width)/l)*l,u=Math.round((n.height-s.height)/c)*c,d=s.width+h,g=s.height+u,f=i.maxWidth&&d>i.maxWidth,p=i.maxHeight&&g>i.maxHeight,m=i.minWidth&&i.minWidth>d,C=i.minHeight&&i.minHeight>g;i.grid=a,m&&(d+=l),C&&(g+=c),f&&(d-=l),p&&(g-=c),/^(se|s|e)$/.test(o)?(t.size.width=d,t.size.height=g):/^(ne)$/.test(o)?(t.size.width=d,t.size.height=g,t.position.top=r.top-u):/^(sw)$/.test(o)?(t.size.width=d,t.size.height=g,t.position.left=r.left-h):((g-c<=0||d-l<=0)&&(e=t._getPaddingPlusBorderDimensions(this)),t.position.top=0<g-c?(t.size.height=g,r.top-u):(g=c-e.height,t.size.height=g,r.top+s.height-g),t.position.left=0<d-l?(t.size.width=d,r.left-h):(d=l-e.width,t.size.width=d,r.left+s.width-d))}}),F.ui.resizable,F.widget("ui.selectable",F.ui.mouse,{version:"1.11.4",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,t=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=F(t.options.filter,t.element[0])).addClass("ui-selectee"),e.each(function(){var e=F(this),t=e.offset();F.data(this,"selectable-item",{element:this,$element:e,left:t.left,top:t.top,right:t.left+e.outerWidth(),bottom:t.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})})},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=F("<div class='ui-selectable-helper'></div>")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(i){var n=this,e=this.options;this.opos=[i.pageX,i.pageY],this.options.disabled||(this.selectees=F(e.filter,this.element[0]),this._trigger("start",i),F(e.appendTo).append(this.helper),this.helper.css({left:i.pageX,top:i.pageY,width:0,height:0}),e.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var e=F.data(this,"selectable-item");e.startselected=!0,i.metaKey||i.ctrlKey||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element}))}),F(i.target).parents().addBack().each(function(){var e,t=F.data(this,"selectable-item");return t?(e=!i.metaKey&&!i.ctrlKey||!t.$element.hasClass("ui-selected"),t.$element.removeClass(e?"ui-unselecting":"ui-selected").addClass(e?"ui-selecting":"ui-unselecting"),t.unselecting=!e,t.selecting=e,(t.selected=e)?n._trigger("selecting",i,{selecting:t.element}):n._trigger("unselecting",i,{unselecting:t.element}),!1):void 0}))},_mouseDrag:function(i){if(this.dragged=!0,!this.options.disabled){var e,n=this,s=this.options,r=this.opos[0],o=this.opos[1],a=i.pageX,l=i.pageY;return a<r&&(e=a,a=r,r=e),l<o&&(e=l,l=o,o=e),this.helper.css({left:r,top:o,width:a-r,height:l-o}),this.selectees.each(function(){var e=F.data(this,"selectable-item"),t=!1;e&&e.element!==n.element[0]&&("touch"===s.tolerance?t=!(e.left>a||r>e.right||e.top>l||o>e.bottom):"fit"===s.tolerance&&(t=e.left>r&&a>e.right&&e.top>o&&l>e.bottom),t?(e.selected&&(e.$element.removeClass("ui-selected"),e.selected=!1),e.unselecting&&(e.$element.removeClass("ui-unselecting"),e.unselecting=!1),e.selecting||(e.$element.addClass("ui-selecting"),e.selecting=!0,n._trigger("selecting",i,{selecting:e.element}))):(e.selecting&&((i.metaKey||i.ctrlKey)&&e.startselected?(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.$element.addClass("ui-selected"),e.selected=!0):(e.$element.removeClass("ui-selecting"),e.selecting=!1,e.startselected&&(e.$element.addClass("ui-unselecting"),e.unselecting=!0),n._trigger("unselecting",i,{unselecting:e.element}))),e.selected&&(i.metaKey||i.ctrlKey||e.startselected||(e.$element.removeClass("ui-selected"),e.selected=!1,e.$element.addClass("ui-unselecting"),e.unselecting=!0,n._trigger("unselecting",i,{unselecting:e.element})))))}),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,F(".ui-unselecting",this.element[0]).each(function(){var e=F.data(this,"selectable-item");e.$element.removeClass("ui-unselecting"),e.unselecting=!1,e.startselected=!1,i._trigger("unselected",t,{unselected:e.element})}),F(".ui-selecting",this.element[0]).each(function(){var e=F.data(this,"selectable-item");e.$element.removeClass("ui-selecting").addClass("ui-selected"),e.selecting=!1,e.selected=!0,e.startselected=!0,i._trigger("selected",t,{selected:e.element})}),this._trigger("stop",t),this.helper.remove(),!1}}),F.widget("ui.sortable",F.ui.mouse,{version:"1.11.4",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return t<=e&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this.element.find(".ui-sortable-handle").removeClass("ui-sortable-handle"),F.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled").find(".ui-sortable-handle").removeClass("ui-sortable-handle"),this._mouseDestroy();for(var e=this.items.length-1;0<=e;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,t){var i=null,n=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),F(e.target).parents().each(function(){return F.data(this,s.widgetName+"-item")===s?(i=F(this),!1):void 0}),F.data(e.target,s.widgetName+"-item")===s&&(i=F(e.target)),!!i&&(!(this.options.handle&&!t&&(F(this.options.handle,i).find("*").addBack().each(function(){this===e.target&&(n=!0)}),!n))&&(this.currentItem=i,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,t,i){var n,s,r=this.options;if((this.currentContainer=this).refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},F.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",r.cursor),this.storedStylesheet=F("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(s)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!i)for(n=this.containers.length-1;0<=n;n--)this.containers[n]._trigger("activate",e,this._uiHash(this));return F.ui.ddmanager&&(F.ui.ddmanager.current=this),F.ui.ddmanager&&!r.dropBehaviour&&F.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var t,i,n,s,r=this.options,o=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<r.scrollSensitivity?this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop+r.scrollSpeed:e.pageY-this.overflowOffset.top<r.scrollSensitivity&&(this.scrollParent[0].scrollTop=o=this.scrollParent[0].scrollTop-r.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<r.scrollSensitivity?this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft+r.scrollSpeed:e.pageX-this.overflowOffset.left<r.scrollSensitivity&&(this.scrollParent[0].scrollLeft=o=this.scrollParent[0].scrollLeft-r.scrollSpeed)):(e.pageY-this.document.scrollTop()<r.scrollSensitivity?o=this.document.scrollTop(this.document.scrollTop()-r.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<r.scrollSensitivity&&(o=this.document.scrollTop(this.document.scrollTop()+r.scrollSpeed)),e.pageX-this.document.scrollLeft()<r.scrollSensitivity?o=this.document.scrollLeft(this.document.scrollLeft()-r.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<r.scrollSensitivity&&(o=this.document.scrollLeft(this.document.scrollLeft()+r.scrollSpeed))),!1!==o&&F.ui.ddmanager&&!r.dropBehaviour&&F.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t=this.items.length-1;0<=t;t--)if(n=(i=this.items[t]).item[0],(s=this._intersectsWithPointer(i))&&i.instance===this.currentContainer&&n!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==n&&!F.contains(this.placeholder[0],n)&&("semi-dynamic"!==this.options.type||!F.contains(this.element[0],n))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(i))break;this._rearrange(e,i),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),F.ui.ddmanager&&F.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,t){if(e){if(F.ui.ddmanager&&!this.options.dropBehaviour&&F.ui.ddmanager.drop(this,e),this.options.revert){var i=this,n=this.placeholder.offset(),s=this.options.axis,r={};s&&"x"!==s||(r.left=n.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(r.top=n.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,F(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){i._clear(e)})}else this._clear(e,t);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;0<=e;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),F.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?F(this.domPosition.prev).after(this.currentItem):F(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var e=this._getItemsAsjQuery(t&&t.connected),i=[];return t=t||{},F(e).each(function(){var e=(F(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);e&&i.push((t.key||e[1]+"[]")+"="+(t.key&&t.expression?e[1]:e[2]))}),!i.length&&t.key&&i.push(t.key+"="),i.join("&")},toArray:function(e){var t=this._getItemsAsjQuery(e&&e.connected),i=[];return e=e||{},t.each(function(){i.push(F(e.item||this).attr(e.attribute||"id")||"")}),i},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=e.left,o=r+e.width,a=e.top,l=a+e.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||a<n+c&&n+c<l,d="y"===this.options.axis||r<t+h&&t+h<o,g=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?g:t+this.helperProportions.width/2>r&&o>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>a&&l>s-this.helperProportions.height/2},_intersectsWithPointer:function(e){var t="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),i="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width),n=t&&i,s=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return!!n&&(this.floating?r&&"right"===r||"down"===s?2:1:s&&("down"===s?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(0<e?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(0<e?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(e){function t(){o.push(this)}var i,n,s,r,o=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;0<=i;i--)for(n=(s=F(l[i],this.document[0])).length-1;0<=n;n--)(r=F.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&a.push([F.isFunction(r.options.items)?r.options.items.call(r.element):F(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(a.push([F.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):F(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;0<=i;i--)a[i][0].each(t);return F(o)},_removeCurrentsFromItems:function(){var i=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=F.grep(this.items,function(e){for(var t=0;i.length>t;t++)if(i[t]===e.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var t,i,n,s,r,o,a,l,c=this.items,h=[[F.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):F(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(t=u.length-1;0<=t;t--)for(i=(n=F(u[t],this.document[0])).length-1;0<=i;i--)(s=F.data(n[i],this.widgetFullName))&&s!==this&&!s.options.disabled&&(h.push([F.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):F(s.options.items,s.element),s]),this.containers.push(s));for(t=h.length-1;0<=t;t--)for(r=h[t][1],i=0,l=(o=h[t][0]).length;i<l;i++)(a=F(o[i])).data(this.widgetName+"-item",r),c.push({item:a,instance:r,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var t,i,n,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),t=this.items.length-1;0<=t;t--)(i=this.items[t]).instance!==this.currentContainer&&this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?F(this.options.toleranceElement,i.item):i.item,e||(i.width=n.outerWidth(),i.height=n.outerHeight()),s=n.offset(),i.left=s.left,i.top=s.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;0<=t;t--)s=this.containers[t].element.offset(),this.containers[t].containerCache.left=s.left,this.containers[t].containerCache.top=s.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(i){var n,s=(i=i||this).options;s.placeholder&&s.placeholder.constructor!==String||(n=s.placeholder,s.placeholder={element:function(){var e=i.currentItem[0].nodeName.toLowerCase(),t=F("<"+e+">",i.document[0]).addClass(n||i.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tbody"===e?i._createTrPlaceholder(i.currentItem.find("tr").eq(0),F("<tr>",i.document[0]).appendTo(t)):"tr"===e?i._createTrPlaceholder(i.currentItem,t):"img"===e&&t.attr("src",i.currentItem.attr("src")),n||t.css("visibility","hidden"),t},update:function(e,t){(!n||s.forcePlaceholderSize)&&(t.height()||t.height(i.currentItem.innerHeight()-parseInt(i.currentItem.css("paddingTop")||0,10)-parseInt(i.currentItem.css("paddingBottom")||0,10)),t.width()||t.width(i.currentItem.innerWidth()-parseInt(i.currentItem.css("paddingLeft")||0,10)-parseInt(i.currentItem.css("paddingRight")||0,10)))}}),i.placeholder=F(s.placeholder.element.call(i.element,i.currentItem)),i.currentItem.after(i.placeholder),s.placeholder.update(i,i.placeholder)},_createTrPlaceholder:function(e,t){var i=this;e.children().each(function(){F("<td>&#160;</td>",i.document[0]).attr("colspan",F(this).attr("colspan")||1).appendTo(t)})},_contactContainers:function(e){var t,i,n,s,r,o,a,l,c,h,u=null,d=null;for(t=this.containers.length-1;0<=t;t--)if(!F.contains(this.currentItem[0],this.containers[t].element[0]))if(this._intersectsWith(this.containers[t].containerCache)){if(u&&F.contains(this.containers[t].element[0],u.element[0]))continue;u=this.containers[t],d=t}else this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",e,this._uiHash(this)),this.containers[t].containerCache.over=0);if(u)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,s=null,r=(c=u.floating||this._isFloating(this.currentItem))?"left":"top",o=c?"width":"height",h=c?"clientX":"clientY",i=this.items.length-1;0<=i;i--)F.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(a=this.items[i].item.offset()[r],l=!1,e[h]-a>this.items[i][o]/2&&(l=!0),n>Math.abs(e[h]-a)&&(n=Math.abs(e[h]-a),s=this.items[i],this.direction=l?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[d])return void(this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[d].element,!0),this._trigger("change",e,this._uiHash()),this.containers[d]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1}},_createHelper:function(e){var t=this.options,i=F.isFunction(t.helper)?F(t.helper.apply(this.element[0],[e,this.currentItem])):"clone"===t.helper?this.currentItem.clone():this.currentItem;return i.parents("body").length||F("parent"!==t.appendTo?t.appendTo:this.currentItem[0].parentNode)[0].appendChild(i[0]),i[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!i[0].style.width||t.forceHelperSize)&&i.width(this.currentItem.width()),(!i[0].style.height||t.forceHelperSize)&&i.height(this.currentItem.height()),i},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),F.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&F.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&F.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,t,i,n=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),("document"===n.containment||"window"===n.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.width():this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=F(n.containment)[0],t=F(n.containment).offset(),i="hidden"!==F(e).css("overflow"),this.containment=[t.left+(parseInt(F(e).css("borderLeftWidth"),10)||0)+(parseInt(F(e).css("paddingLeft"),10)||0)-this.margins.left,t.top+(parseInt(F(e).css("borderTopWidth"),10)||0)+(parseInt(F(e).css("paddingTop"),10)||0)-this.margins.top,t.left+(i?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(F(e).css("borderLeftWidth"),10)||0)-(parseInt(F(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,t.top+(i?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(F(e).css("borderTopWidth"),10)||0)-(parseInt(F(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&F.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(n[0].tagName);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:n.scrollTop())*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:n.scrollLeft())*i}},_generatePosition:function(e){var t,i,n=this.options,s=e.pageX,r=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&F.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),n.grid&&(t=this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1],r=this.containment?t-this.offset.click.top>=this.containment[1]&&t-this.offset.click.top<=this.containment[3]?t:t-this.offset.click.top>=this.containment[1]?t-n.grid[1]:t+n.grid[1]:t,i=this.originalPageX+Math.round((s-this.originalPageX)/n.grid[0])*n.grid[0],s=this.containment?i-this.offset.click.left>=this.containment[0]&&i-this.offset.click.left<=this.containment[2]?i:i-this.offset.click.left>=this.containment[0]?i-n.grid[0]:i+n.grid[0]:i)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:o.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){function i(t,i,n){return function(e){n._trigger(t,e,i._uiHash(i))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(s.push(function(e){this._trigger("remove",e,this._uiHash())}),s.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;0<=n;n--)t||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;s.length>n;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===F.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var t=e||this;return{helper:t.helper,placeholder:t.placeholder||F([]),position:t.position,originalPosition:t.originalPosition,offset:t.positionAbs,item:t.currentItem,sender:e?e.element:null}}}),F.widget("ui.accordion",{version:"1.11.4",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=F(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():F()}},_createIcons:function(){var e=this.options.icons;e&&(F("<span>").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").css("display","").removeAttr("role").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){return"active"===e?void this._activate(t):("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons()),void("disabled"===e&&(this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!t))))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var t=F.ui.keyCode,i=this.headers.length,n=this.headers.index(e.target),s=!1;switch(e.keyCode){case t.RIGHT:case t.DOWN:s=this.headers[(n+1)%i];break;case t.LEFT:case t.UP:s=this.headers[(n-1+i)%i];break;case t.SPACE:case t.ENTER:this._eventHandler(e);break;case t.HOME:s=this.headers[0];break;case t.END:s=this.headers[i-1]}s&&(F(e.target).attr("tabIndex",-1),F(s).attr("tabIndex",0),s.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===F.ui.keyCode.UP&&e.ctrlKey&&F(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=F()):!1===e.active?this._activate(0):this.active.length&&!F.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=F()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-state-default ui-corner-all"),this.panels=this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide(),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var i,e=this.options,t=e.heightStyle,n=this.element.parent();this.active=this._findActive(e.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each(function(){var e=F(this),t=e.uniqueId().attr("id"),i=e.next(),n=i.uniqueId().attr("id");e.attr("aria-controls",n),i.attr("aria-labelledby",t)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(e.event),"fill"===t?(i=n.height(),this.element.siblings(":visible").each(function(){var e=F(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.headers.each(function(){i-=F(this).outerHeight(!0)}),this.headers.next().each(function(){F(this).height(Math.max(0,i-F(this).innerHeight()+F(this).height()))}).css("overflow","auto")):"auto"===t&&(i=0,this.headers.next().each(function(){i=Math.max(i,F(this).css("height","").height())}).height(i))},_activate:function(e){var t=this._findActive(e)[0];t!==this.active[0]&&(t=t||this.active[0],this._eventHandler({target:t,currentTarget:t,preventDefault:F.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):F()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&F.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var t=this.options,i=this.active,n=F(e.currentTarget),s=n[0]===i[0],r=s&&t.collapsible,o=r?F():n.next(),a=i.next(),l={oldHeader:i,oldPanel:a,newHeader:r?F():n,newPanel:o};e.preventDefault(),s&&!t.collapsible||!1===this._trigger("beforeActivate",e,l)||(t.active=!r&&this.headers.index(n),this.active=s?F():n,this._toggle(l),i.removeClass("ui-accordion-header-active ui-state-active"),t.icons&&i.children(".ui-accordion-header-icon").removeClass(t.icons.activeHeader).addClass(t.icons.header),s||(n.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),t.icons&&n.children(".ui-accordion-header-icon").removeClass(t.icons.header).addClass(t.icons.activeHeader),n.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var t=e.newPanel,i=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=t,this.prevHide=i,this.options.animate?this._animate(t,i,e):(i.hide(),t.show(),this._toggleComplete(e)),i.attr({"aria-hidden":"true"}),i.prev().attr({"aria-selected":"false","aria-expanded":"false"}),t.length&&i.length?i.prev().attr({tabIndex:-1,"aria-expanded":"false"}):t.length&&this.headers.filter(function(){return 0===parseInt(F(this).attr("tabIndex"),10)}).attr("tabIndex",-1),t.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,i,t){var n,s,r,o=this,a=0,l=e.css("box-sizing"),c=e.length&&(!i.length||e.index()<i.index()),h=this.options.animate||{},u=c&&h.down||h,d=function(){o._toggleComplete(t)};return"number"==typeof u&&(r=u),"string"==typeof u&&(s=u),s=s||u.easing||h.easing,r=r||u.duration||h.duration,i.length?e.length?(n=e.show().outerHeight(),i.animate(this.hideProps,{duration:r,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:r,easing:s,complete:d,step:function(e,t){t.now=Math.round(e),"height"!==t.prop?"content-box"===l&&(a+=t.now):"content"!==o.options.heightStyle&&(t.now=Math.round(n-i.outerHeight()-a),a=0)}})):i.animate(this.hideProps,r,s,d):e.animate(this.showProps,r,s,d)},_toggleComplete:function(e){var t=e.oldPanel;t.removeClass("ui-accordion-content-active").prev().removeClass("ui-corner-top").addClass("ui-corner-all"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),F.widget("ui.menu",{version:"1.11.4",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-carat-1-e"},items:"> *",menus:"ul",position:{my:"left-1 top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().addClass("ui-menu ui-widget ui-widget-content").toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length).attr({role:this.options.role,tabIndex:0}),this.options.disabled&&this.element.addClass("ui-state-disabled").attr("aria-disabled","true"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault()},"click .ui-menu-item":function(e){var t=F(e.target);!this.mouseHandled&&t.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),t.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&F(this.document[0].activeElement).closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var t=F(e.currentTarget);t.siblings(".ui-state-active").removeClass("ui-state-active"),this.focus(e,t)}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this.element.find(this.options.items).eq(0);t||this.focus(e,i)},blur:function(e){this._delay(function(){F.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(e)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e),this.mouseHandled=!1}})},_destroy:function(){this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeClass("ui-menu ui-widget ui-widget-content ui-menu-icons ui-front").removeAttr("role").removeAttr("tabIndex").removeAttr("aria-labelledby").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-disabled").removeUniqueId().show(),this.element.find(".ui-menu-item").removeClass("ui-menu-item").removeAttr("role").removeAttr("aria-disabled").removeUniqueId().removeClass("ui-state-hover").removeAttr("tabIndex").removeAttr("role").removeAttr("aria-haspopup").children().each(function(){var e=F(this);e.data("ui-menu-submenu-carat")&&e.remove()}),this.element.find(".ui-menu-divider").removeClass("ui-menu-divider ui-widget-content")},_keydown:function(e){var t,i,n,s,r=!0;switch(e.keyCode){case F.ui.keyCode.PAGE_UP:this.previousPage(e);break;case F.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case F.ui.keyCode.HOME:this._move("first","first",e);break;case F.ui.keyCode.END:this._move("last","last",e);break;case F.ui.keyCode.UP:this.previous(e);break;case F.ui.keyCode.DOWN:this.next(e);break;case F.ui.keyCode.LEFT:this.collapse(e);break;case F.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case F.ui.keyCode.ENTER:case F.ui.keyCode.SPACE:this._activate(e);break;case F.ui.keyCode.ESCAPE:this.collapse(e);break;default:r=!1,i=this.previousFilter||"",n=String.fromCharCode(e.keyCode),s=!1,clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,t=this._filterMenuItems(n),(t=s&&-1!==t.index(this.active.next())?this.active.nextAll(".ui-menu-item"):t).length||(n=String.fromCharCode(e.keyCode),t=this._filterMenuItems(n)),t.length?(this.focus(e,t),this.previousFilter=n,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}r&&e.preventDefault()},_activate:function(e){this.active.is(".ui-state-disabled")||(this.active.is("[aria-haspopup='true']")?this.expand(e):this.select(e))},refresh:function(){var e,t=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this.element.toggleClass("ui-menu-icons",!!this.element.find(".ui-icon").length),i.filter(":not(.ui-menu)").addClass("ui-menu ui-widget ui-widget-content ui-front").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=F(this),t=e.parent(),i=F("<span>").addClass("ui-menu-icon ui-icon "+n).data("ui-menu-submenu-carat",!0);t.attr("aria-haspopup","true").prepend(i),e.attr("aria-labelledby",t.attr("id"))}),(e=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=F(this);t._isDivider(e)&&e.addClass("ui-widget-content ui-menu-divider")}),e.not(".ui-menu-item, .ui-menu-divider").addClass("ui-menu-item").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!F.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){"icons"===e&&this.element.find(".ui-menu-icon").removeClass(this.options.icons.submenu).addClass(t.submenu),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},focus:function(e,t){var i,n;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.addClass("ui-state-focus").removeClass("ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),this.active.parent().closest(".ui-menu-item").addClass("ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(e){var t,i,n,s,r,o;this._hasScroll()&&(t=parseFloat(F.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(F.css(this.activeMenu[0],"paddingTop"))||0,n=e.offset().top-this.activeMenu.offset().top-t-i,s=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=e.outerHeight(),n<0?this.activeMenu.scrollTop(s+n):r<n+o&&this.activeMenu.scrollTop(s+n-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this.active.removeClass("ui-state-focus"),this.active=null,this._trigger("blur",e,{item:this.active}))},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(e)},this.delay))},_open:function(e){var t=F.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(t)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay(function(){var e=i?this.element:F(t&&t.target).closest(this.element.find(".ui-menu"));e.length||(e=this.element),this._close(e),this.blur(t),this.activeMenu=e},this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false").end().find(".ui-state-active").not(".ui-state-focus").removeClass("ui-state-active")},_closeOnDocumentClick:function(e){return!F(e.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();t&&t.length&&(this._open(t.parent()),this._delay(function(){this.focus(e,t)}))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[e+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[t]()),this.focus(i,n)},nextPage:function(e){var t,i,n;return this.active?void(this.isLastItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return(t=F(this)).offset().top-i-n<0}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var t,i,n;return this.active?void(this.isFirstItem()||(this._hasScroll()?(i=this.active.offset().top,n=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return 0<(t=F(this)).offset().top-i+n}),this.focus(e,t)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||F(e.target).closest(".ui-menu-item");var t={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,t)},_filterMenuItems:function(e){var t=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),i=RegExp("^"+t,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(F.trim(F(this).text()))})}}),F.widget("ui.autocomplete",{version:"1.11.4",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var i,n,s,e=this.element[0].nodeName.toLowerCase(),t="textarea"===e,r="input"===e;this.isMultiLine=!!t||!r&&this.element.prop("isContentEditable"),this.valueMethod=this.element[t||r?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(e){if(this.element.prop("readOnly"))n=s=i=!0;else{n=s=i=!1;var t=F.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:i=!0,this._move("previousPage",e);break;case t.PAGE_DOWN:i=!0,this._move("nextPage",e);break;case t.UP:i=!0,this._keyEvent("previous",e);break;case t.DOWN:i=!0,this._keyEvent("next",e);break;case t.ENTER:this.menu.active&&(i=!0,e.preventDefault(),this.menu.select(e));break;case t.TAB:this.menu.active&&this.menu.select(e);break;case t.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(e),e.preventDefault());break;default:n=!0,this._searchTimeout(e)}}},keypress:function(e){if(i)return i=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&e.preventDefault());if(!n){var t=F.ui.keyCode;switch(e.keyCode){case t.PAGE_UP:this._move("previousPage",e);break;case t.PAGE_DOWN:this._move("nextPage",e);break;case t.UP:this._keyEvent("previous",e);break;case t.DOWN:this._keyEvent("next",e)}}},input:function(e){return s?(s=!1,void e.preventDefault()):void this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(e),void this._change(e))}}),this._initSource(),this.menu=F("<ul>").addClass("ui-autocomplete ui-front").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur});var i=this.menu.element[0];F(e.target).closest(".ui-menu-item").length||this._delay(function(){var t=this;this.document.one("mousedown",function(e){e.target===t.element[0]||e.target===i||F.contains(i,e.target)||t.close()})})},menufocus:function(e,t){var i,n;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){F(e.target).trigger(e.originalEvent)})):(n=t.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:n})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(n.value),void((i=t.item.attr("aria-label")||n.value)&&F.trim(i).length&&(this.liveRegion.children().hide(),F("<div>").text(i).appendTo(this.liveRegion))))},menuselect:function(e,t){var i=t.item.data("ui-autocomplete-item"),n=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.focus(),this.previous=n,this._delay(function(){this.previous=n,this.selectedItem=i})),!1!==this._trigger("select",e,{item:i})&&this._value(i.value),this.term=this._value(),this.close(e),this.selectedItem=i}}),this.liveRegion=F("<span>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?F(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_initSource:function(){var i,n,s=this;F.isArray(this.options.source)?(i=this.options.source,this.source=function(e,t){t(F.ui.autocomplete.filter(i,e.term))}):"string"==typeof this.options.source?(n=this.options.source,this.source=function(e,t){s.xhr&&s.xhr.abort(),s.xhr=F.ajax({url:n,data:e,dataType:"json",success:function(e){t(e)},error:function(){t([])}})}):this.source=this.options.source},_searchTimeout:function(n){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),t=this.menu.element.is(":visible"),i=n.altKey||n.ctrlKey||n.metaKey||n.shiftKey;(!e||e&&!t&&!i)&&(this.selectedItem=null,this.search(null,n))},this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var t=++this.requestIndex;return F.proxy(function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:F.map(e,function(e){return"string"==typeof e?{label:e,value:e}:F.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var t=this.menu.element.empty();this._renderMenu(t,e),this.isNewMenu=!0,this.menu.refresh(),t.show(),this._resizeMenu(),t.position(F.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next()},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(i,e){var n=this;F.each(e,function(e,t){n._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(e,t){return F("<li>").text(t.label).appendTo(e)},_move:function(e,t){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t):void this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(e,t),t.preventDefault())}}),F.extend(F.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,t){var i=RegExp(F.ui.autocomplete.escapeRegex(t),"i");return F.grep(e,function(e){return i.test(e.label||e.value||e)})}}),F.widget("ui.autocomplete",F.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(1<e?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var t;this._superApply(arguments),this.options.disabled||this.cancelSearch||(t=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),F("<div>").text(t).appendTo(this.liveRegion))}}),F.ui.autocomplete;var p,m,C,A="ui-button ui-widget ui-state-default ui-corner-all",v="ui-button-icons-only ui-button-icon-only ui-button-text-icons ui-button-text-icon-primary ui-button-text-icon-secondary ui-button-text-only",b=function(){var e=F(this);setTimeout(function(){e.find(":ui-button").button("refresh")},1)},y=function(e){var t=e.name,i=e.form,n=F([]);return t&&(t=t.replace(/'/g,"\\'"),n=i?F(i).find("[name='"+t+"'][type=radio]"):F("[name='"+t+"'][type=radio]",e.ownerDocument).filter(function(){return!this.form})),n};F.widget("ui.button",{version:"1.11.4",defaultElement:"<button>",options:{disabled:null,text:!0,label:null,icons:{primary:null,secondary:null}},_create:function(){this.element.closest("form").unbind("reset"+this.eventNamespace).bind("reset"+this.eventNamespace,b),"boolean"!=typeof this.options.disabled?this.options.disabled=!!this.element.prop("disabled"):this.element.prop("disabled",this.options.disabled),this._determineButtonType(),this.hasTitle=!!this.buttonElement.attr("title");var t=this,i=this.options,e="checkbox"===this.type||"radio"===this.type,n=e?"":"ui-state-active";null===i.label&&(i.label="input"===this.type?this.buttonElement.val():this.buttonElement.html()),this._hoverable(this.buttonElement),this.buttonElement.addClass(A).attr("role","button").bind("mouseenter"+this.eventNamespace,function(){i.disabled||this===p&&F(this).addClass("ui-state-active")}).bind("mouseleave"+this.eventNamespace,function(){i.disabled||F(this).removeClass(n)}).bind("click"+this.eventNamespace,function(e){i.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}),this._on({focus:function(){this.buttonElement.addClass("ui-state-focus")},blur:function(){this.buttonElement.removeClass("ui-state-focus")}}),e&&this.element.bind("change"+this.eventNamespace,function(){t.refresh()}),"checkbox"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){return!i.disabled&&void 0}):"radio"===this.type?this.buttonElement.bind("click"+this.eventNamespace,function(){if(i.disabled)return!1;F(this).addClass("ui-state-active"),t.buttonElement.attr("aria-pressed","true");var e=t.element[0];y(e).not(e).map(function(){return F(this).button("widget")[0]}).removeClass("ui-state-active").attr("aria-pressed","false")}):(this.buttonElement.bind("mousedown"+this.eventNamespace,function(){return!i.disabled&&(F(this).addClass("ui-state-active"),p=this,void t.document.one("mouseup",function(){p=null}))}).bind("mouseup"+this.eventNamespace,function(){return!i.disabled&&void F(this).removeClass("ui-state-active")}).bind("keydown"+this.eventNamespace,function(e){return!i.disabled&&void((e.keyCode===F.ui.keyCode.SPACE||e.keyCode===F.ui.keyCode.ENTER)&&F(this).addClass("ui-state-active"))}).bind("keyup"+this.eventNamespace+" blur"+this.eventNamespace,function(){F(this).removeClass("ui-state-active")}),this.buttonElement.is("a")&&this.buttonElement.keyup(function(e){e.keyCode===F.ui.keyCode.SPACE&&F(this).click()})),this._setOption("disabled",i.disabled),this._resetButton()},_determineButtonType:function(){var e,t,i;this.type=this.element.is("[type=checkbox]")?"checkbox":this.element.is("[type=radio]")?"radio":this.element.is("input")?"input":"button","checkbox"===this.type||"radio"===this.type?(e=this.element.parents().last(),t="label[for='"+this.element.attr("id")+"']",this.buttonElement=e.find(t),this.buttonElement.length||(e=e.length?e.siblings():this.element.siblings(),this.buttonElement=e.filter(t),this.buttonElement.length||(this.buttonElement=e.find(t))),this.element.addClass("ui-helper-hidden-accessible"),(i=this.element.is(":checked"))&&this.buttonElement.addClass("ui-state-active"),this.buttonElement.prop("aria-pressed",i)):this.buttonElement=this.element},widget:function(){return this.buttonElement},_destroy:function(){this.element.removeClass("ui-helper-hidden-accessible"),this.buttonElement.removeClass(A+" ui-state-active "+v).removeAttr("role").removeAttr("aria-pressed").html(this.buttonElement.find(".ui-button-text").html()),this.hasTitle||this.buttonElement.removeAttr("title")},_setOption:function(e,t){return this._super(e,t),"disabled"===e?(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),void(t&&("checkbox"===this.type||"radio"===this.type?this.buttonElement.removeClass("ui-state-focus"):this.buttonElement.removeClass("ui-state-focus ui-state-active")))):void this._resetButton()},refresh:function(){var e=this.element.is("input, button")?this.element.is(":disabled"):this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOption("disabled",e),"radio"===this.type?y(this.element[0]).each(function(){F(this).is(":checked")?F(this).button("widget").addClass("ui-state-active").attr("aria-pressed","true"):F(this).button("widget").removeClass("ui-state-active").attr("aria-pressed","false")}):"checkbox"===this.type&&(this.element.is(":checked")?this.buttonElement.addClass("ui-state-active").attr("aria-pressed","true"):this.buttonElement.removeClass("ui-state-active").attr("aria-pressed","false"))},_resetButton:function(){if("input"!==this.type){var e=this.buttonElement.removeClass(v),t=F("<span></span>",this.document[0]).addClass("ui-button-text").html(this.options.label).appendTo(e.empty()).text(),i=this.options.icons,n=i.primary&&i.secondary,s=[];i.primary||i.secondary?(this.options.text&&s.push("ui-button-text-icon"+(n?"s":i.primary?"-primary":"-secondary")),i.primary&&e.prepend("<span class='ui-button-icon-primary ui-icon "+i.primary+"'></span>"),i.secondary&&e.append("<span class='ui-button-icon-secondary ui-icon "+i.secondary+"'></span>"),this.options.text||(s.push(n?"ui-button-icons-only":"ui-button-icon-only"),this.hasTitle||e.attr("title",F.trim(t)))):s.push("ui-button-text-only"),e.addClass(s.join(" "))}else this.options.label&&this.element.val(this.options.label)}}),F.widget("ui.buttonset",{version:"1.11.4",options:{items:"button, input[type=button], input[type=submit], input[type=reset], input[type=checkbox], input[type=radio], a, :data(ui-button)"},_create:function(){this.element.addClass("ui-buttonset")},_init:function(){this.refresh()},_setOption:function(e,t){"disabled"===e&&this.buttons.button("option",e,t),this._super(e,t)},refresh:function(){var e="rtl"===this.element.css("direction"),t=this.element.find(this.options.items),i=t.filter(":ui-button");t.not(":ui-button").button(),i.button("refresh"),this.buttons=t.map(function(){return F(this).button("widget")[0]}).removeClass("ui-corner-all ui-corner-left ui-corner-right").filter(":first").addClass(e?"ui-corner-right":"ui-corner-left").end().filter(":last").addClass(e?"ui-corner-left":"ui-corner-right").end().end()},_destroy:function(){this.element.removeClass("ui-buttonset"),this.buttons.map(function(){return F(this).button("widget")[0]}).removeClass("ui-corner-left ui-corner-right").end().button("destroy")}}),F.ui.button,F.extend(F.ui,{datepicker:{version:"1.11.4"}}),F.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return u(this._defaults,e||{}),this},_attachDatepicker:function(e,t){var i,n,s;n="div"===(i=e.nodeName.toLowerCase())||"span"===i,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(F(e),n)).settings=F.extend({},t||{}),"input"===i?this._connectDatepicker(e,s):n&&this._inlineDatepicker(e,s)},_newInst:function(e,t){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:t,dpDiv:t?i(F("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,t){var i=F(e);t.append=F([]),t.trigger=F([]),i.hasClass(this.markerClassName)||(this._attachments(i,t),i.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).keyup(this._doKeyUp),this._autoSize(t),F.data(e,"datepicker",t),t.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,t){var i,n,s,r=this._get(t,"appendText"),o=this._get(t,"isRTL");t.append&&t.append.remove(),r&&(t.append=F("<span class='"+this._appendClass+"'>"+r+"</span>"),e[o?"before":"after"](t.append)),e.unbind("focus",this._showDatepicker),t.trigger&&t.trigger.remove(),("focus"===(i=this._get(t,"showOn"))||"both"===i)&&e.focus(this._showDatepicker),("button"===i||"both"===i)&&(n=this._get(t,"buttonText"),s=this._get(t,"buttonImage"),t.trigger=F(this._get(t,"buttonImageOnly")?F("<img/>").addClass(this._triggerClass).attr({src:s,alt:n,title:n}):F("<button type='button'></button>").addClass(this._triggerClass).html(s?F("<img/>").attr({src:s,alt:n,title:n}):n)),e[o?"before":"after"](t.trigger),t.trigger.click(function(){return F.datepicker._datepickerShowing&&F.datepicker._lastInput===e[0]?F.datepicker._hideDatepicker():(F.datepicker._datepickerShowing&&F.datepicker._lastInput!==e[0]&&F.datepicker._hideDatepicker(),F.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,r=new Date(2009,11,20),o=this._get(e,"dateFormat");o.match(/[DM]/)&&(t=function(e){for(s=n=i=0;e.length>s;s++)e[s].length>i&&(i=e[s].length,n=s);return n},r.setMonth(t(this._get(e,o.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,o.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length)}},_inlineDatepicker:function(e,t){var i=F(e);i.hasClass(this.markerClassName)||(i.addClass(this.markerClassName).append(t.dpDiv),F.data(e,"datepicker",t),this._setDate(t,this._getDefaultDate(t),!0),this._updateDatepicker(t),this._updateAlternate(t),t.settings.disabled&&this._disableDatepicker(e),t.dpDiv.css("display","block"))},_dialogDatepicker:function(e,t,i,n,s){var r,o,a,l,c,h=this._dialogInst;return h||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=F("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.keydown(this._doKeyDown),F("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},F.data(this._dialogInput[0],"datepicker",h)),u(h.settings,n||{}),t=t&&t.constructor===Date?this._formatDate(h,t):t,this._dialogInput.val(t),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(o=document.documentElement.clientWidth,a=document.documentElement.clientHeight,l=document.documentElement.scrollLeft||document.body.scrollLeft,c=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[o/2-100+l,a/2-150+c]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=i,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),F.blockUI&&F.blockUI(this.dpDiv),F.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(e){var t,i=F(e),n=F.data(e,"datepicker");i.hasClass(this.markerClassName)&&(t=e.nodeName.toLowerCase(),F.removeData(e,"datepicker"),"input"===t?(n.append.remove(),n.trigger.remove(),i.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress).unbind("keyup",this._doKeyUp)):("div"===t||"span"===t)&&i.removeClass(this.markerClassName).empty(),m===n&&(m=null))},_enableDatepicker:function(t){var e,i,n=F(t),s=F.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===e||"span"===e)&&((i=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=F.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var e,i,n=F(t),s=F.data(t,"datepicker");n.hasClass(this.markerClassName)&&("input"===(e=t.nodeName.toLowerCase())?(t.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===e||"span"===e)&&((i=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),i.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=F.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;this._disabledInputs.length>t;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(e){try{return F.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,t,i){var n,s,r,o,a=this._getInst(e);return 2===arguments.length&&"string"==typeof t?"defaults"===t?F.extend({},F.datepicker._defaults):a?"all"===t?F.extend({},a.settings):this._get(a,t):null:(n=t||{},"string"==typeof t&&((n={})[t]=i),void(a&&(this._curInst===a&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(a,"min"),o=this._getMinMaxDate(a,"max"),u(a.settings,n),null!==r&&void 0!==n.dateFormat&&void 0===n.minDate&&(a.settings.minDate=this._formatDate(a,r)),null!==o&&void 0!==n.dateFormat&&void 0===n.maxDate&&(a.settings.maxDate=this._formatDate(a,o)),"disabled"in n&&(n.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(F(e),a),this._autoSize(a),this._setDate(a,s),this._updateAlternate(a),this._updateDatepicker(a))))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(e){var t,i,n,s=F.datepicker._getInst(e.target),r=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,F.datepicker._datepickerShowing)switch(e.keyCode){case 9:F.datepicker._hideDatepicker(),r=!1;break;case 13:return(n=F("td."+F.datepicker._dayOverClass+":not(."+F.datepicker._currentClass+")",s.dpDiv))[0]&&F.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,n[0]),(t=F.datepicker._get(s,"onSelect"))?(i=F.datepicker._formatDate(s),t.apply(s.input?s.input[0]:null,[i,s])):F.datepicker._hideDatepicker(),!1;case 27:F.datepicker._hideDatepicker();break;case 33:F.datepicker._adjustDate(e.target,e.ctrlKey?-F.datepicker._get(s,"stepBigMonths"):-F.datepicker._get(s,"stepMonths"),"M");break;case 34:F.datepicker._adjustDate(e.target,e.ctrlKey?+F.datepicker._get(s,"stepBigMonths"):+F.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&F.datepicker._clearDate(e.target),r=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&F.datepicker._gotoToday(e.target),r=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&F.datepicker._adjustDate(e.target,o?1:-1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&F.datepicker._adjustDate(e.target,e.ctrlKey?-F.datepicker._get(s,"stepBigMonths"):-F.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&F.datepicker._adjustDate(e.target,-7,"D"),r=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&F.datepicker._adjustDate(e.target,o?-1:1,"D"),r=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&F.datepicker._adjustDate(e.target,e.ctrlKey?+F.datepicker._get(s,"stepBigMonths"):+F.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&F.datepicker._adjustDate(e.target,7,"D"),r=e.ctrlKey||e.metaKey;break;default:r=!1}else 36===e.keyCode&&e.ctrlKey?F.datepicker._showDatepicker(this):r=!1;r&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var t,i,n=F.datepicker._getInst(e.target);return F.datepicker._get(n,"constrainInput")?(t=F.datepicker._possibleChars(F.datepicker._get(n,"dateFormat")),i=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||i<" "||!t||-1<t.indexOf(i)):void 0},_doKeyUp:function(e){var t=F.datepicker._getInst(e.target);if(t.input.val()!==t.lastVal)try{F.datepicker.parseDate(F.datepicker._get(t,"dateFormat"),t.input?t.input.val():null,F.datepicker._getFormatConfig(t))&&(F.datepicker._setDateFromField(t),F.datepicker._updateAlternate(t),F.datepicker._updateDatepicker(t))}catch(e){}return!0},_showDatepicker:function(e){var t,i,n,s,r,o,a;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=F("input",e.parentNode)[0]),F.datepicker._isDisabledDatepicker(e)||F.datepicker._lastInput===e)||(t=F.datepicker._getInst(e),F.datepicker._curInst&&F.datepicker._curInst!==t&&(F.datepicker._curInst.dpDiv.stop(!0,!0),t&&F.datepicker._datepickerShowing&&F.datepicker._hideDatepicker(F.datepicker._curInst.input[0])),!1!==(n=(i=F.datepicker._get(t,"beforeShow"))?i.apply(e,[e,t]):{})&&(u(t.settings,n),t.lastVal=null,F.datepicker._lastInput=e,F.datepicker._setDateFromField(t),F.datepicker._inDialog&&(e.value=""),F.datepicker._pos||(F.datepicker._pos=F.datepicker._findPos(e),F.datepicker._pos[1]+=e.offsetHeight),s=!1,F(e).parents().each(function(){return!(s|="fixed"===F(this).css("position"))}),r={left:F.datepicker._pos[0],top:F.datepicker._pos[1]},F.datepicker._pos=null,t.dpDiv.empty(),t.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),F.datepicker._updateDatepicker(t),r=F.datepicker._checkOffset(t,r,s),t.dpDiv.css({position:F.datepicker._inDialog&&F.blockUI?"static":s?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),t.inline||(o=F.datepicker._get(t,"showAnim"),a=F.datepicker._get(t,"duration"),t.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(F(e))+1),F.datepicker._datepickerShowing=!0,F.effects&&F.effects.effect[o]?t.dpDiv.show(o,F.datepicker._get(t,"showOptions"),a):t.dpDiv[o||"show"](o?a:null),F.datepicker._shouldFocusInput(t)&&t.input.focus(),F.datepicker._curInst=t)))},_updateDatepicker:function(e){this.maxRows=4,(m=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var t,i=this._getNumberOfMonths(e),n=i[1],s=e.dpDiv.find("."+this._dayOverClass+" a");0<s.length&&r.apply(s.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<n&&e.dpDiv.addClass("ui-datepicker-multi-"+n).css("width",17*n+"em"),e.dpDiv[(1!==i[0]||1!==i[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===F.datepicker._curInst&&F.datepicker._datepickerShowing&&F.datepicker._shouldFocusInput(e)&&e.input.focus(),e.yearshtml&&(t=e.yearshtml,setTimeout(function(){t===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),t=e.yearshtml=null},0))},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(e,t,i){var n=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,a=document.documentElement.clientWidth+(i?0:F(document).scrollLeft()),l=document.documentElement.clientHeight+(i?0:F(document).scrollTop());return t.left-=this._get(e,"isRTL")?n-r:0,t.left-=i&&t.left===e.input.offset().left?F(document).scrollLeft():0,t.top-=i&&t.top===e.input.offset().top+o?F(document).scrollTop():0,t.left-=Math.min(t.left,t.left+n>a&&n<a?Math.abs(t.left+n-a):0),t.top-=Math.min(t.top,t.top+s>l&&s<l?Math.abs(s+o):0),t},_findPos:function(e){for(var t,i=this._getInst(e),n=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||F.expr.filters.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(t=F(e).offset()).left,t.top]},_hideDatepicker:function(e){var t,i,n,s,r=this._curInst;!r||e&&r!==F.data(e,"datepicker")||this._datepickerShowing&&(t=this._get(r,"showAnim"),i=this._get(r,"duration"),n=function(){F.datepicker._tidyDialog(r)},F.effects&&(F.effects.effect[t]||F.effects[t])?r.dpDiv.hide(t,F.datepicker._get(r,"showOptions"),i,n):r.dpDiv["slideDown"===t?"slideUp":"fadeIn"===t?"fadeOut":"hide"](t?i:null,n),t||n(),this._datepickerShowing=!1,(s=this._get(r,"onClose"))&&s.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),F.blockUI&&(F.unblockUI(),F("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(F.datepicker._curInst){var t=F(e.target),i=F.datepicker._getInst(t[0]);(t[0].id!==F.datepicker._mainDivId&&0===t.parents("#"+F.datepicker._mainDivId).length&&!t.hasClass(F.datepicker.markerClassName)&&!t.closest("."+F.datepicker._triggerClass).length&&F.datepicker._datepickerShowing&&(!F.datepicker._inDialog||!F.blockUI)||t.hasClass(F.datepicker.markerClassName)&&F.datepicker._curInst!==i)&&F.datepicker._hideDatepicker()}},_adjustDate:function(e,t,i){var n=F(e),s=this._getInst(n[0]);this._isDisabledDatepicker(n[0])||(this._adjustInstDate(s,t+("M"===i?this._get(s,"showCurrentAtPos"):0),i),this._updateDatepicker(s))},_gotoToday:function(e){var t,i=F(e),n=this._getInst(i[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(t=new Date,n.selectedDay=t.getDate(),n.drawMonth=n.selectedMonth=t.getMonth(),n.drawYear=n.selectedYear=t.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(e,t,i){var n=F(e),s=this._getInst(n[0]);s["selected"+("M"===i?"Month":"Year")]=s["draw"+("M"===i?"Month":"Year")]=parseInt(t.options[t.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(n)},_selectDay:function(e,t,i,n){var s,r=F(e);F(n).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((s=this._getInst(r[0])).selectedDay=s.currentDay=F("a",n).html(),s.selectedMonth=s.currentMonth=t,s.selectedYear=s.currentYear=i,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var t=F(e);this._selectDate(t,"")},_selectDate:function(e,t){var i,n=F(e),s=this._getInst(n[0]);t=null!=t?t:this._formatDate(s),s.input&&s.input.val(t),this._updateAlternate(s),(i=this._get(s,"onSelect"))?i.apply(s.input?s.input[0]:null,[t,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.focus(),this._lastInput=null)},_updateAlternate:function(e){var t,i,n,s=this._get(e,"altField");s&&(t=this._get(e,"altFormat")||this._get(e,"dateFormat"),i=this._getDate(e),n=this.formatDate(t,i,this._getFormatConfig(e)),F(s).each(function(){F(this).val(n)}))},noWeekends:function(e){var t=e.getDay();return[0<t&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(i,r,e){if(null==i||null==r)throw"Invalid arguments";if(""===(r="object"==typeof r?""+r:r+""))return null;var n,t,s,o,a=0,l=(e?e.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof l?l:(new Date).getFullYear()%100+parseInt(l,10),h=(e?e.dayNamesShort:null)||this._defaults.dayNamesShort,u=(e?e.dayNames:null)||this._defaults.dayNames,d=(e?e.monthNamesShort:null)||this._defaults.monthNamesShort,g=(e?e.monthNames:null)||this._defaults.monthNames,f=-1,p=-1,m=-1,C=-1,A=!1,v=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t},b=function(e){var t=v(e),i="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,n=RegExp("^\\d{"+("y"===e?i:1)+","+i+"}"),s=r.substring(a).match(n);if(!s)throw"Missing number at position "+a;return a+=s[0].length,parseInt(s[0],10)},y=function(e,t,i){var n=-1,s=F.map(v(e)?i:t,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(F.each(s,function(e,t){var i=t[1];return r.substr(a,i.length).toLowerCase()===i.toLowerCase()?(n=t[0],a+=i.length,!1):void 0}),-1!==n)return n+1;throw"Unknown name at position "+a},I=function(){if(r.charAt(a)!==i.charAt(n))throw"Unexpected literal at position "+a;a++};for(n=0;i.length>n;n++)if(A)"'"!==i.charAt(n)||v("'")?I():A=!1;else switch(i.charAt(n)){case"d":m=b("d");break;case"D":y("D",h,u);break;case"o":C=b("o");break;case"m":p=b("m");break;case"M":p=y("M",d,g);break;case"y":f=b("y");break;case"@":f=(o=new Date(b("@"))).getFullYear(),p=o.getMonth()+1,m=o.getDate();break;case"!":f=(o=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),p=o.getMonth()+1,m=o.getDate();break;case"'":v("'")?I():A=!0;break;default:I()}if(r.length>a&&(s=r.substr(a),!/^\s+/.test(s)))throw"Extra/unparsed characters found in date: "+s;if(-1===f?f=(new Date).getFullYear():f<100&&(f+=(new Date).getFullYear()-(new Date).getFullYear()%100+(f<=c?0:-100)),-1<C)for(p=1,m=C;!(m<=(t=this._getDaysInMonth(f,p-1)));)p++,m-=t;if((o=this._daylightSavingAdjust(new Date(f,p-1,m))).getFullYear()!==f||o.getMonth()+1!==p||o.getDate()!==m)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(i,e,t){if(!e)return"";var n,s=(t?t.dayNamesShort:null)||this._defaults.dayNamesShort,r=(t?t.dayNames:null)||this._defaults.dayNames,o=(t?t.monthNamesShort:null)||this._defaults.monthNamesShort,a=(t?t.monthNames:null)||this._defaults.monthNames,l=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t},c=function(e,t,i){var n=""+t;if(l(e))for(;i>n.length;)n="0"+n;return n},h=function(e,t,i,n){return l(e)?n[t]:i[t]},u="",d=!1;if(e)for(n=0;i.length>n;n++)if(d)"'"!==i.charAt(n)||l("'")?u+=i.charAt(n):d=!1;else switch(i.charAt(n)){case"d":u+=c("d",e.getDate(),2);break;case"D":u+=h("D",e.getDay(),s,r);break;case"o":u+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",e.getMonth()+1,2);break;case"M":u+=h("M",e.getMonth(),o,a);break;case"y":u+=l("y")?e.getFullYear():(e.getYear()%100<10?"0":"")+e.getYear()%100;break;case"@":u+=e.getTime();break;case"!":u+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=i.charAt(n)}return u},_possibleChars:function(i){var n,e="",t=!1,s=function(e){var t=i.length>n+1&&i.charAt(n+1)===e;return t&&n++,t};for(n=0;i.length>n;n++)if(t)"'"!==i.charAt(n)||s("'")?e+=i.charAt(n):t=!1;else switch(i.charAt(n)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":s("'")?e+="'":t=!0;break;default:e+=i.charAt(n)}return e},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,o=this._getFormatConfig(e);try{r=this.parseDate(i,n,o)||s}catch(e){n=t?"":n}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=n?r.getDate():0,e.currentMonth=n?r.getMonth():0,e.currentYear=n?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(a,e,t){var i,n,s=null==e||""===e?t:"string"==typeof e?function(e){try{return F.datepicker.parseDate(F.datepicker._get(a,"dateFormat"),e,F.datepicker._getFormatConfig(a))}catch(e){}for(var t=(e.toLowerCase().match(/^c/)?F.datepicker._getDate(a):null)||new Date,i=t.getFullYear(),n=t.getMonth(),s=t.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,o=r.exec(e);o;){switch(o[2]||"d"){case"d":case"D":s+=parseInt(o[1],10);break;case"w":case"W":s+=7*parseInt(o[1],10);break;case"m":case"M":n+=parseInt(o[1],10),s=Math.min(s,F.datepicker._getDaysInMonth(i,n));break;case"y":case"Y":i+=parseInt(o[1],10),s=Math.min(s,F.datepicker._getDaysInMonth(i,n))}o=r.exec(e)}return new Date(i,n,s)}(e):"number"==typeof e?isNaN(e)?t:(i=e,(n=new Date).setDate(n.getDate()+i),n):new Date(e.getTime());return(s=s&&"Invalid Date"==""+s?t:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(12<e.getHours()?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,r=e.selectedYear,o=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=o.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=o.getMonth(),e.drawYear=e.selectedYear=e.currentYear=o.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(e){var t=this._get(e,"stepMonths"),i="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){F.datepicker._adjustDate(i,-t,"M")},next:function(){F.datepicker._adjustDate(i,+t,"M")},hide:function(){F.datepicker._hideDatepicker()},today:function(){F.datepicker._gotoToday(i)},selectDay:function(){return F.datepicker._selectDay(i,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return F.datepicker._selectMonthYear(i,this,"M"),!1},selectYear:function(){return F.datepicker._selectMonthYear(i,this,"Y"),!1}};F(this).bind(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var t,i,n,s,r,o,a,l,c,h,u,d,g,f,p,m,C,A,v,b,y,I,w,_,x,k,E,F,D,S,T,B,$,M,L,R,N,O,P,j=new Date,H=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),z=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),V=this._get(e,"hideIfNoPrevNext"),U=this._get(e,"navigationAsDateFormat"),q=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),G=this._get(e,"stepMonths"),Y=1!==q[0]||1!==q[1],J=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),Q=e.drawMonth-K,ee=e.drawYear;if(Q<0&&(Q+=12,ee--),Z)for(t=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-q[0]*q[1]+1,Z.getDate())),t=X&&t<X?X:t;this._daylightSavingAdjust(new Date(ee,Q,1))>t;)--Q<0&&(Q=11,ee--);for(e.drawMonth=Q,e.drawYear=ee,i=this._get(e,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(ee,Q-G,1)),this._getFormatConfig(e)):i,n=this._canAdjustMonth(e,-1,ee,Q)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"e":"w")+"'>"+i+"</span></a>",s=this._get(e,"nextText"),s=U?this.formatDate(s,this._daylightSavingAdjust(new Date(ee,Q+G,1)),this._getFormatConfig(e)):s,r=this._canAdjustMonth(e,1,ee,Q)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+s+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+s+"'><span class='ui-icon ui-icon-circle-triangle-"+(z?"w":"e")+"'>"+s+"</span></a>",o=this._get(e,"currentText"),a=this._get(e,"gotoCurrent")&&e.currentDay?J:H,o=U?this.formatDate(o,a,this._getFormatConfig(e)):o,l=e.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(e,"closeText")+"</button>",c=W?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(z?l:"")+(this._isInRange(e,a)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+o+"</button>":"")+(z?"":l)+"</div>":"",h=parseInt(this._get(e,"firstDay"),10),h=isNaN(h)?0:h,u=this._get(e,"showWeek"),d=this._get(e,"dayNames"),g=this._get(e,"dayNamesMin"),f=this._get(e,"monthNames"),p=this._get(e,"monthNamesShort"),m=this._get(e,"beforeShowDay"),C=this._get(e,"showOtherMonths"),A=this._get(e,"selectOtherMonths"),v=this._getDefaultDate(e),b="",I=0;q[0]>I;I++){for(w="",this.maxRows=4,_=0;q[1]>_;_++){if(x=this._daylightSavingAdjust(new Date(ee,Q,e.selectedDay)),k=" ui-corner-all",E="",Y){if(E+="<div class='ui-datepicker-group",1<q[1])switch(_){case 0:E+=" ui-datepicker-group-first",k=" ui-corner-"+(z?"right":"left");break;case q[1]-1:E+=" ui-datepicker-group-last",k=" ui-corner-"+(z?"left":"right");break;default:E+=" ui-datepicker-group-middle",k=""}E+="'>"}for(E+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+k+"'>"+(/all|left/.test(k)&&0===I?z?r:n:"")+(/all|right/.test(k)&&0===I?z?n:r:"")+this._generateMonthYearHeader(e,Q,ee,X,Z,0<I||0<_,f,p)+"</div><table class='ui-datepicker-calendar'><thead><tr>",F=u?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",y=0;y<7;y++)F+="<th scope='col'"+(5<=(y+h+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+d[D=(y+h)%7]+"'>"+g[D]+"</span></th>";for(E+=F+"</tr></thead><tbody>",S=this._getDaysInMonth(ee,Q),ee===e.selectedYear&&Q===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,S)),T=(this._getFirstDayOfMonth(ee,Q)-h+7)%7,B=Math.ceil((T+S)/7),$=Y&&this.maxRows>B?this.maxRows:B,this.maxRows=$,M=this._daylightSavingAdjust(new Date(ee,Q,1-T)),L=0;L<$;L++){for(E+="<tr>",R=u?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(M)+"</td>":"",y=0;y<7;y++)N=m?m.apply(e.input?e.input[0]:null,[M]):[!0,""],P=(O=M.getMonth()!==Q)&&!A||!N[0]||X&&M<X||Z&&Z<M,R+="<td class='"+(5<=(y+h+6)%7?" ui-datepicker-week-end":"")+(O?" ui-datepicker-other-month":"")+(M.getTime()===x.getTime()&&Q===e.selectedMonth&&e._keyEvent||v.getTime()===M.getTime()&&v.getTime()===x.getTime()?" "+this._dayOverClass:"")+(P?" "+this._unselectableClass+" ui-state-disabled":"")+(O&&!C?"":" "+N[1]+(M.getTime()===J.getTime()?" "+this._currentClass:"")+(M.getTime()===H.getTime()?" ui-datepicker-today":""))+"'"+(O&&!C||!N[2]?"":" title='"+N[2].replace(/'/g,"&#39;")+"'")+(P?"":" data-handler='selectDay' data-event='click' data-month='"+M.getMonth()+"' data-year='"+M.getFullYear()+"'")+">"+(O&&!C?"&#xa0;":P?"<span class='ui-state-default'>"+M.getDate()+"</span>":"<a class='ui-state-default"+(M.getTime()===H.getTime()?" ui-state-highlight":"")+(M.getTime()===J.getTime()?" ui-state-active":"")+(O?" ui-priority-secondary":"")+"' href='#'>"+M.getDate()+"</a>")+"</td>",M.setDate(M.getDate()+1),M=this._daylightSavingAdjust(M);E+=R+"</tr>"}11<++Q&&(Q=0,ee++),w+=E+="</tbody></table>"+(Y?"</div>"+(0<q[0]&&_===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}b+=w}return b+=c,e._keyEvent=!1,b},_generateMonthYearHeader:function(e,t,i,n,s,r,o,a){var l,c,h,u,d,g,f,p,m=this._get(e,"changeMonth"),C=this._get(e,"changeYear"),A=this._get(e,"showMonthAfterYear"),v="<div class='ui-datepicker-title'>",b="";if(r||!m)b+="<span class='ui-datepicker-month'>"+o[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!c||s.getMonth()>=h)&&(b+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+a[h]+"</option>");b+="</select>"}if(A||(v+=b+(!r&&m&&C?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",r||!C)v+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),f=(g=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t})(u[0]),p=Math.max(f,g(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,p=s?Math.min(p,s.getFullYear()):p,e.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";f<=p;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",v+=e.yearshtml,e.yearshtml=null}return v+=this._get(e,"yearSuffix"),A&&(v+=(!r&&m&&C?"":"&#xa0;")+b),v+"</div>"},_adjustInstDate:function(e,t,i){var n=e.drawYear+("Y"===i?t:0),s=e.drawMonth+("M"===i?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),o=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,r)));e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&n<s?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),r=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),o=null,a=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),o=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(o+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||t.getTime()>=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!o||t.getFullYear()>=o)&&(!a||a>=t.getFullYear())},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),F.fn.datepicker=function(e){if(!this.length)return this;F.datepicker.initialized||(F(document).mousedown(F.datepicker._checkExternalClick),F.datepicker.initialized=!0),0===F("#"+F.datepicker._mainDivId).length&&F("body").append(F.datepicker.dpDiv);var t=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?F.datepicker["_"+e+"Datepicker"].apply(F.datepicker,[this[0]].concat(t)):this.each(function(){"string"==typeof e?F.datepicker["_"+e+"Datepicker"].apply(F.datepicker,[this].concat(t)):F.datepicker._attachDatepicker(this,e)}):F.datepicker["_"+e+"Datepicker"].apply(F.datepicker,[this[0]].concat(t))},F.datepicker=new e,F.datepicker.initialized=!1,F.datepicker.uuid=(new Date).getTime(),F.datepicker.version="1.11.4",F.datepicker,F.widget("ui.dialog",{version:"1.11.4",options:{appendTo:"body",autoOpen:!0,buttons:[],closeOnEscape:!0,closeText:"Close",dialogClass:"",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var t=F(this).css(e).offset().top;t<0&&F(this).css("top",e.top-t)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),this.options.title=this.options.title||this.originalTitle,this._createWrapper(),this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(this.uiDialog),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&F.fn.draggable&&this._makeDraggable(),this.options.resizable&&F.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?F(e):this.document.find(e||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().removeClass("ui-dialog-content ui-widget-content").css(this.originalCss).detach(),this.uiDialog.stop(!0,!0).remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:F.noop,enable:F.noop,close:function(e){var t,i=this;if(this._isOpen&&!1!==this._trigger("beforeClose",e)){if(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),!this.opener.filter(":focusable").focus().length)try{(t=this.document[0].activeElement)&&"body"!==t.nodeName.toLowerCase()&&F(t).blur()}catch(e){}this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)})}},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,t){var i=!1,n=this.uiDialog.siblings(".ui-front:visible").map(function(){return+F(this).css("z-index")}).get(),s=Math.max.apply(null,n);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),i=!0),i&&!t&&this._trigger("focus",e),i},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=F(this.document[0].activeElement),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).focus()},_keepFocus:function(e){function t(){var e=this.document[0].activeElement;this.uiDialog[0]===e||F.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),t.call(this),this._delay(t)},_createWrapper:function(){this.uiDialog=F("<div>").addClass("ui-dialog ui-widget ui-widget-content ui-corner-all ui-front "+this.options.dialogClass).hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===F.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===F.ui.keyCode.TAB&&!e.isDefaultPrevented()){var t=this.uiDialog.find(":tabbable"),i=t.filter(":first"),n=t.filter(":last");e.target!==n[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==i[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay(function(){n.focus()}),e.preventDefault()):(this._delay(function(){i.focus()}),e.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=F("<div>").addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(this.uiDialog),this._on(this.uiDialogTitlebar,{mousedown:function(e){F(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.focus()}}),this.uiDialogTitlebarClose=F("<button type='button'></button>").button({label:this.options.closeText,icons:{primary:"ui-icon-closethick"},text:!1}).addClass("ui-dialog-titlebar-close").appendTo(this.uiDialogTitlebar),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),e=F("<span>").uniqueId().addClass("ui-dialog-title").prependTo(this.uiDialogTitlebar),this._title(e),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(e){this.options.title||e.html("&#160;"),e.text(this.options.title)},_createButtonPane:function(){this.uiDialogButtonPane=F("<div>").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix"),this.uiButtonSet=F("<div>").addClass("ui-dialog-buttonset").appendTo(this.uiDialogButtonPane),this._createButtons()},_createButtons:function(){var s=this,e=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),F.isEmptyObject(e)||F.isArray(e)&&!e.length?void this.uiDialog.removeClass("ui-dialog-buttons"):(F.each(e,function(e,t){var i,n;t=F.isFunction(t)?{click:t,text:e}:t,t=F.extend({type:"button"},t),i=t.click,t.click=function(){i.apply(s.element[0],arguments)},n={icons:t.icons,text:t.showText},delete t.icons,delete t.showText,F("<button></button>",t).button(n).appendTo(s.uiButtonSet)}),this.uiDialog.addClass("ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function s(e){return{position:e.position,offset:e.offset}}var r=this,o=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(e,t){F(this).addClass("ui-dialog-dragging"),r._blockFrames(),r._trigger("dragStart",e,s(t))},drag:function(e,t){r._trigger("drag",e,s(t))},stop:function(e,t){var i=t.offset.left-r.document.scrollLeft(),n=t.offset.top-r.document.scrollTop();o.position={my:"left top",at:"left"+(0<=i?"+":"")+i+" top"+(0<=n?"+":"")+n,of:r.window},F(this).removeClass("ui-dialog-dragging"),r._unblockFrames(),r._trigger("dragStop",e,s(t))}})},_makeResizable:function(){function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var o=this,a=this.options,e=a.resizable,t=this.uiDialog.css("position"),i="string"==typeof e?e:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:a.maxWidth,maxHeight:a.maxHeight,minWidth:a.minWidth,minHeight:this._minHeight(),handles:i,start:function(e,t){F(this).addClass("ui-dialog-resizing"),o._blockFrames(),o._trigger("resizeStart",e,r(t))},resize:function(e,t){o._trigger("resize",e,r(t))},stop:function(e,t){var i=o.uiDialog.offset(),n=i.left-o.document.scrollLeft(),s=i.top-o.document.scrollTop();a.height=o.uiDialog.height(),a.width=o.uiDialog.width(),a.position={my:"left top",at:"left"+(0<=n?"+":"")+n+" top"+(0<=s?"+":"")+s,of:o.window},F(this).removeClass("ui-dialog-resizing"),o._unblockFrames(),o._trigger("resizeStop",e,r(t))}}).css("position",t)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=F(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),t=F.inArray(this,e);-1!==t&&e.splice(t,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};F.each(e,function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,t){var i,n,s=this.uiDialog;"dialogClass"===e&&s.removeClass(this.options.dialogClass).addClass(t),"disabled"!==e&&(this._super(e,t),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:""+t}),"draggable"===e&&((i=s.is(":data(ui-draggable)"))&&!t&&s.draggable("destroy"),!i&&t&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((n=s.is(":data(ui-resizable)"))&&!t&&s.resizable("destroy"),n&&"string"==typeof t&&s.resizable("option","handles",t),n||!1===t||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=F(this);return F("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!F(e.target).closest(".ui-dialog").length||!!F(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=!0;this._delay(function(){t=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(e){t||this._allowInteraction(e)||(e.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=F("<div>").addClass("ui-widget-overlay ui-front").appendTo(this._appendTo()),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):this.document.unbind("focusin").removeData("ui-dialog-overlays"),this.overlay.remove(),this.overlay=null}}}),F.widget("ui.progressbar",{version:"1.11.4",options:{max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this.min}),this.valueDiv=F("<div class='ui-progressbar-value ui-widget-header ui-corner-left'></div>").appendTo(this.element),this._refreshValue()},_destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.valueDiv.remove()},value:function(e){return void 0===e?this.options.value:(this.options.value=this._constrainedValue(e),void this._refreshValue())},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t).attr("aria-disabled",t),this._super(e,t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,t=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).toggleClass("ui-corner-right",e===this.options.max).width(t.toFixed(0)+"%"),this.element.toggleClass("ui-progressbar-indeterminate",this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=F("<div class='ui-progressbar-overlay'></div>").appendTo(this.valueDiv))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),F.widget("ui.selectmenu",{version:"1.11.4",defaultElement:"<select>",options:{appendTo:null,disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:null,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this.options.disabled&&this.disable()},_drawButton:function(){var e=this;this.label=F("label[for='"+this.ids.element+"']").attr("for",this.ids.button),this._on(this.label,{click:function(e){this.button.focus(),e.preventDefault()}}),this.element.hide(),this.button=F("<span>",{class:"ui-selectmenu-button ui-widget ui-state-default ui-corner-all",tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true"}).insertAfter(this.element),F("<span>",{class:"ui-icon "+this.options.icons.button}).prependTo(this.button),this.buttonText=F("<span>",{class:"ui-selectmenu-text"}).appendTo(this.button),this._setText(this.buttonText,this.element.find("option:selected").text()),this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){e.menuItems||e._refreshMenu()}),this._hoverable(this.button),this._focusable(this.button)},_drawMenu:function(){var n=this;this.menu=F("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=F("<div>",{class:"ui-selectmenu-menu ui-front"}).append(this.menu).appendTo(this._appendTo()),this.menuInstance=this.menu.menu({role:"listbox",select:function(e,t){e.preventDefault(),n._setSelection(),n._select(t.item.data("ui-selectmenu-item"),e)},focus:function(e,t){var i=t.item.data("ui-selectmenu-item");null!=n.focusIndex&&i.index!==n.focusIndex&&(n._trigger("focus",e,{item:i}),n.isOpen||n._select(i,e)),n.focusIndex=i.index,n.button.attr("aria-activedescendant",n.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menu.addClass("ui-corner-bottom").removeClass("ui-corner-all"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this._setText(this.buttonText,this._getSelectedItem().text()),this.options.width||this._resizeButton()},_refreshMenu:function(){this.menu.empty();var e,t=this.element.find("option");t.length&&(this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup"),e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this.menuItems?(this.menu.find(".ui-state-focus").removeClass("ui-state-focus"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e))},_position:function(){this.menuWrap.position(F.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderMenu:function(i,e){var n=this,s="";F.each(e,function(e,t){t.optgroup!==s&&(F("<li>",{class:"ui-selectmenu-optgroup ui-menu-divider"+(t.element.parent("optgroup").prop("disabled")?" ui-state-disabled":""),text:t.optgroup}).appendTo(i),s=t.optgroup),n._renderItemData(i,t)})},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(e,t){var i=F("<li>");return t.disabled&&i.addClass("ui-state-disabled"),this._setText(i,t.label),i.appendTo(e)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex):(i=this.menuItems.eq(this.element[0].selectedIndex),s+=":not(.ui-state-disabled)"),(n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex)},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(F(e.target).closest(".ui-selectmenu-menu, #"+this.ids.button).length||this.close(e))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(e){var t=!0;switch(e.keyCode){case F.ui.keyCode.TAB:case F.ui.keyCode.ESCAPE:this.close(e),t=!1;break;case F.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case F.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case F.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case F.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case F.ui.keyCode.LEFT:this._move("prev",e);break;case F.ui.keyCode.RIGHT:this._move("next",e);break;case F.ui.keyCode.HOME:case F.ui.keyCode.PAGE_UP:this._move("first",e);break;case F.ui.keyCode.END:case F.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),t=!1}t&&e.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex);t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this._setText(this.buttonText,e.label),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){"icons"===e&&this.button.find("span.ui-icon").removeClass(this.options.icons.button).addClass(t.button),this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"disabled"===e&&(this.menuInstance.option("disabled",t),this.button.toggleClass("ui-state-disabled",t).attr("aria-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)),"width"===e&&this._resizeButton()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?F(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.toggleClass("ui-corner-top",this.isOpen).toggleClass("ui-corner-all",!this.isOpen).attr("aria-expanded",this.isOpen),this.menuWrap.toggleClass("ui-selectmenu-open",this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;e||(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){return{disabled:this.element.prop("disabled")}},_parseOptions:function(e){var s=[];e.each(function(e,t){var i=F(t),n=i.parent("optgroup");s.push({element:i,index:e,value:i.val(),label:i.text(),optgroup:n.attr("label")||"",disabled:n.prop("disabled")||i.prop("disabled")})}),this.items=s},_destroy:function(){this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.label.attr("for",this.ids.element)}}),F.widget("ui.slider",F.ui.mouse,{version:"1.11.4",widgetEventPrefix:"slide",options:{animate:!1,distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this.element.addClass("ui-slider ui-slider-"+this.orientation+" ui-widget ui-widget-content ui-corner-all"),this._refresh(),this._setOption("disabled",this.options.disabled),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,t,i=this.options,n=this.element.find(".ui-slider-handle").addClass("ui-state-default ui-corner-all"),s=[];for(t=i.values&&i.values.length||1,n.length>t&&(n.slice(t).remove(),n=n.slice(0,t)),e=n.length;e<t;e++)s.push("<span class='ui-slider-handle ui-state-default ui-corner-all' tabindex='0'></span>");this.handles=n.add(F(s.join("")).appendTo(this.element)),this.handle=this.handles.eq(0),this.handles.each(function(e){F(this).data("ui-slider-handle-index",e)})},_createRange:function(){var e=this.options,t="";e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:F.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?this.range.removeClass("ui-slider-range-min ui-slider-range-max").css({left:"",bottom:""}):(this.range=F("<div></div>").appendTo(this.element),t="ui-slider-range ui-widget-header ui-corner-all"),this.range.addClass(t+("min"===e.range||"max"===e.range?" ui-slider-range-"+e.range:""))):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-widget ui-widget-content ui-corner-all"),this._mouseDestroy()},_mouseCapture:function(e){var t,i,n,s,r,o,a,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t),n=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var t=Math.abs(i-l.values(e));(t<n||n===t&&(e===l._lastChangedValue||l.values(e)===c.min))&&(n=t,s=F(this),r=e)}),!1!==this._start(e,r)&&(this._mouseSliding=!0,this._handleIndex=r,s.addClass("ui-state-active").focus(),o=s.offset(),a=!F(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:e.pageX-o.left-s.width()/2,top:e.pageY-o.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,r,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this.handles.removeClass("ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s;return 1<(i=("horizontal"===this.orientation?(t=this.elementSize.width,e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/t)&&(i=1),i<0&&(i=0),"vertical"===this.orientation&&(i=1-i),n=this._valueMax()-this._valueMin(),s=this._valueMin()+i*n,this._trimAlignValue(s)},_start:function(e,t){var i={handle:this.handles[t],value:this.value()};return this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("start",e,i)},_slide:function(e,t,i){var n,s,r;this.options.values&&this.options.values.length?(n=this.values(t?0:1),2===this.options.values.length&&!0===this.options.range&&(0===t&&n<i||1===t&&i<n)&&(i=n),i!==this.values(t)&&((s=this.values())[t]=i,r=this._trigger("slide",e,{handle:this.handles[t],value:i,values:s}),n=this.values(t?0:1),!1!==r&&this.values(t,i))):i!==this.value()&&(!1!==(r=this._trigger("slide",e,{handle:this.handles[t],value:i}))&&this.value(i))},_stop:function(e,t){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._trigger("stop",e,i)},_change:function(e,t){if(!this._keySliding&&!this._mouseSliding){var i={handle:this.handles[t],value:this.value()};this.options.values&&this.options.values.length&&(i.value=this.values(t),i.values=this.values()),this._lastChangedValue=t,this._trigger("change",e,i)}},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(1<arguments.length)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!F.isArray(e))return this.options.values&&this.options.values.length?this._values(e):this.value();for(i=this.options.values,n=e,s=0;i.length>s;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),F.isArray(this.options.values)&&(n=this.options.values.length),"disabled"===e&&this.element.toggleClass("ui-state-disabled",!!t),this._super(e,t),e){case"orientation":this._detectOrientation(),this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation),this._refreshValue(),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=0;i<n;i+=1)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this.options.values&&this.options.values.length){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(this._valueMin()>=e)return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=0<this.options.step?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=0<i?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;e=Math.floor(+(e-t).toFixed(this._precision())/i)*i+t,this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshValue:function(){var t,i,e,n,s,r=this.options.range,o=this.options,a=this,l=!this._animateOff&&o.animate,c={};this.options.values&&this.options.values.length?this.handles.each(function(e){i=(a.values(e)-a._valueMin())/(a._valueMax()-a._valueMin())*100,c["horizontal"===a.orientation?"left":"bottom"]=i+"%",F(this).stop(1,1)[l?"animate":"css"](c,o.animate),!0===a.options.range&&("horizontal"===a.orientation?(0===e&&a.range.stop(1,1)[l?"animate":"css"]({left:i+"%"},o.animate),1===e&&a.range[l?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===e&&a.range.stop(1,1)[l?"animate":"css"]({bottom:i+"%"},o.animate),1===e&&a.range[l?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i}):(e=this.value(),n=this._valueMin(),s=this._valueMax(),i=s!==n?(e-n)/(s-n)*100:0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[l?"animate":"css"](c,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range[l?"animate":"css"]({width:100-i+"%"},{queue:!1,duration:o.animate}),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[l?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range[l?"animate":"css"]({height:100-i+"%"},{queue:!1,duration:o.animate}))},_handleEvents:{keydown:function(e){var t,i,n,s=F(e.target).data("ui-slider-handle-index");switch(e.keyCode){case F.ui.keyCode.HOME:case F.ui.keyCode.END:case F.ui.keyCode.PAGE_UP:case F.ui.keyCode.PAGE_DOWN:case F.ui.keyCode.UP:case F.ui.keyCode.RIGHT:case F.ui.keyCode.DOWN:case F.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,F(e.target).addClass("ui-state-active"),!1===this._start(e,s)))return}switch(n=this.options.step,t=i=this.options.values&&this.options.values.length?this.values(s):this.value(),e.keyCode){case F.ui.keyCode.HOME:i=this._valueMin();break;case F.ui.keyCode.END:i=this._valueMax();break;case F.ui.keyCode.PAGE_UP:i=this._trimAlignValue(t+(this._valueMax()-this._valueMin())/this.numPages);break;case F.ui.keyCode.PAGE_DOWN:i=this._trimAlignValue(t-(this._valueMax()-this._valueMin())/this.numPages);break;case F.ui.keyCode.UP:case F.ui.keyCode.RIGHT:if(t===this._valueMax())return;i=this._trimAlignValue(t+n);break;case F.ui.keyCode.DOWN:case F.ui.keyCode.LEFT:if(t===this._valueMin())return;i=this._trimAlignValue(t-n)}this._slide(e,s,i)},keyup:function(e){var t=F(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,t),this._change(e,t),F(e.target).removeClass("ui-state-active"))}}}),F.widget("ui.spinner",{version:"1.11.4",defaultElement:"<input>",widgetEventPrefix:"spin",options:{culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var n={},s=this.element;return F.each(["min","max","step"],function(e,t){var i=s.attr(t);void 0!==i&&i.length&&(n[t]=i)}),n},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",e)))},mousewheel:function(e,t){if(t){if(!this.spinning&&!this._start(e))return!1;this._spin((0<t?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(e)},100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){function t(){this.element[0]===this.document[0].activeElement||(this.element.focus(),this.previous=i,this._delay(function(){this.previous=i}))}var i;i=this.element[0]===this.document[0].activeElement?this.previous:this.element.val(),e.preventDefault(),t.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,t.call(this)}),!1!==this._start(e)&&this._repeat(null,F(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return F(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,F(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_draw:function(){var e=this.uiSpinner=this.element.addClass("ui-spinner-input").attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml());this.element.attr("role","spinbutton"),this.buttons=e.find(".ui-spinner-button").attr("tabIndex",-1).button().removeClass("ui-corner-all"),this.buttons.height()>Math.ceil(.5*e.height())&&0<e.height()&&e.height(e.height()),this.options.disabled&&this.disable()},_keydown:function(e){var t=this.options,i=F.ui.keyCode;switch(e.keyCode){case i.UP:return this._repeat(null,1,e),!0;case i.DOWN:return this._repeat(null,-1,e),!0;case i.PAGE_UP:return this._repeat(null,t.page,e),!0;case i.PAGE_DOWN:return this._repeat(null,-t.page,e),!0}return!1},_uiSpinnerHtml:function(){return"<span class='ui-spinner ui-widget ui-widget-content ui-corner-all'></span>"},_buttonHtml:function(){return"<a class='ui-spinner-button ui-spinner-up ui-corner-tr'><span class='ui-icon "+this.options.icons.up+"'>&#9650;</span></a><a class='ui-spinner-button ui-spinner-down ui-corner-br'><span class='ui-icon "+this.options.icons.down+"'>&#9660;</span></a>"},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,t,i)},e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?F.isFunction(t)?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=""+e,i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return i=e-(t=null!==n.min?n.min:0),e=t+(i=Math.round(i/n.step)*n.step),e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&n.min>e?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){if("culture"===e||"numberFormat"===e){var i=this._parse(this.element.val());return this.options[e]=t,void this.element.val(this._format(i))}("max"===e||"min"===e||"step"===e)&&"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(this.buttons.first().find(".ui-icon").removeClass(this.options.icons.up).addClass(t.up),this.buttons.last().find(".ui-icon").removeClass(this.options.icons.down).addClass(t.down)),this._super(e,t),"disabled"===e&&(this.widget().toggleClass("ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable"))},_setOptions:t(function(e){this._super(e)}),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&(null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i))),this.element.val(e),this._refresh()},_destroy:function(){this.element.removeClass("ui-spinner-input").prop("disabled",!1).removeAttr("autocomplete").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t(function(e){this._stepUp(e)}),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:t(function(e){this._stepDown(e)}),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:t(function(e){this._stepUp((e||1)*this.options.page)}),pageDown:t(function(e){this._stepDown((e||1)*this.options.page)}),value:function(e){return arguments.length?void t(this._value).call(this,e):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}),F.widget("ui.tabs",{version:"1.11.4",delay:300,options:{active:null,collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(C=/#.*$/,function(e){var t,i;t=(e=e.cloneNode(!1)).href.replace(C,""),i=location.href.replace(C,"");try{t=decodeURIComponent(t)}catch(e){}try{i=decodeURIComponent(i)}catch(e){}return 1<e.hash.length&&t===i}),_create:function(){var t=this,e=this.options;this.running=!1,this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all").toggleClass("ui-tabs-collapsible",e.collapsible),this._processTabs(),e.active=this._initialActive(),F.isArray(e.disabled)&&(e.disabled=F.unique(e.disabled.concat(F.map(this.tabs.filter(".ui-state-disabled"),function(e){return t.tabs.index(e)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(e.active):F(),this._refresh(),this.active.length&&this.load(e.active)},_initialActive:function(){var i=this.options.active,e=this.options.collapsible,n=location.hash.substring(1);return null===i&&(n&&this.tabs.each(function(e,t){return F(t).attr("aria-controls")===n?(i=e,!1):void 0}),null===i&&(i=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===i||-1===i)&&(i=!!this.tabs.length&&0)),!1!==i&&(-1===(i=this.tabs.index(this.tabs.eq(i)))&&(i=!e&&0)),!e&&!1===i&&this.anchors.length&&(i=0),i},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):F()}},_tabKeydown:function(e){var t=F(this.document[0].activeElement).closest("li"),i=this.tabs.index(t),n=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case F.ui.keyCode.RIGHT:case F.ui.keyCode.DOWN:i++;break;case F.ui.keyCode.UP:case F.ui.keyCode.LEFT:n=!1,i--;break;case F.ui.keyCode.END:i=this.anchors.length-1;break;case F.ui.keyCode.HOME:i=0;break;case F.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i);case F.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(i!==this.options.active&&i);default:return}e.preventDefault(),clearTimeout(this.activating),i=this._focusNextTab(i,n),e.ctrlKey||e.metaKey||(t.attr("aria-selected","false"),this.tabs.eq(i).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",i)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===F.ui.keyCode.UP&&(e.preventDefault(),this.active.focus())},_handlePageNav:function(e){return e.altKey&&e.keyCode===F.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===F.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,t){for(var i=this.tabs.length-1;-1!==F.inArray((i<e&&(e=0),e<0&&(e=i),e),this.options.disabled);)e=t?e+1:e-1;return e},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).focus(),e},_setOption:function(e,t){return"active"===e?void this._activate(t):"disabled"===e?void this._setupDisabled(t):(this._super(e,t),"collapsible"===e&&(this.element.toggleClass("ui-tabs-collapsible",t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),void("heightStyle"===e&&this._setupHeightStyle(t)))},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,t=this.tablist.children(":has(a[href])");e.disabled=F.map(t.filter(".ui-state-disabled"),function(e){return t.index(e)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!F.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=F()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=F()),this._refresh()},_refresh:function(){this._setupDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.addClass("ui-tabs-active ui-state-active").attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var l=this,e=this.tabs,t=this.anchors,i=this.panels;this.tablist=this._getList().addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").attr("role","tablist").delegate("> li","mousedown"+this.eventNamespace,function(e){F(this).is(".ui-state-disabled")&&e.preventDefault()}).delegate(".ui-tabs-anchor","focus"+this.eventNamespace,function(){F(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").addClass("ui-state-default ui-corner-top").attr({role:"tab",tabIndex:-1}),this.anchors=this.tabs.map(function(){return F("a",this)[0]}).addClass("ui-tabs-anchor").attr({role:"presentation",tabIndex:-1}),this.panels=F(),this.anchors.each(function(e,t){var i,n,s,r=F(t).uniqueId().attr("id"),o=F(t).closest("li"),a=o.attr("aria-controls");l._isLocal(t)?(s=(i=t.hash).substring(1),n=l.element.find(l._sanitizeSelector(i))):(i="#"+(s=o.attr("aria-controls")||F({}).uniqueId()[0].id),(n=l.element.find(i)).length||(n=l._createPanel(s)).insertAfter(l.panels[e-1]||l.tablist),n.attr("aria-live","polite")),n.length&&(l.panels=l.panels.add(n)),a&&o.data("ui-tabs-aria-controls",a),o.attr({"aria-controls":s,"aria-labelledby":r}),n.attr("aria-labelledby",r)}),this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").attr("role","tabpanel"),e&&(this._off(e.not(this.tabs)),this._off(t.not(this.anchors)),this._off(i.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol,ul").eq(0)},_createPanel:function(e){return F("<div>").attr("id",e).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").data("ui-tabs-destroy",!0)},_setupDisabled:function(e){F.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1);for(var t,i=0;t=this.tabs[i];i++)!0===e||-1!==F.inArray(i,e)?F(t).addClass("ui-state-disabled").attr("aria-disabled","true"):F(t).removeClass("ui-state-disabled").removeAttr("aria-disabled");this.options.disabled=e},_setupEvents:function(e){var i={};e&&F.each(e.split(" "),function(e,t){i[t]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,t=this.element.parent();"fill"===e?(i=t.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each(function(){var e=F(this),t=e.css("position");"absolute"!==t&&"fixed"!==t&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=F(this).outerHeight(!0)}),this.panels.each(function(){F(this).height(Math.max(0,i-F(this).innerHeight()+F(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,F(this).height("").height())}).height(i))},_eventHandler:function(e){var t=this.options,i=this.active,n=F(e.currentTarget).closest("li"),s=n[0]===i[0],r=s&&t.collapsible,o=r?F():this._getPanelForTab(n),a=i.length?this._getPanelForTab(i):F(),l={oldTab:i,oldPanel:a,newTab:r?F():n,newPanel:o};e.preventDefault(),n.hasClass("ui-state-disabled")||n.hasClass("ui-tabs-loading")||this.running||s&&!t.collapsible||!1===this._trigger("beforeActivate",e,l)||(t.active=!r&&this.tabs.index(n),this.active=s?F():n,this.xhr&&this.xhr.abort(),a.length||o.length||F.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(n),e),this._toggle(e,l))},_toggle:function(e,t){function i(){s.running=!1,s._trigger("activate",e,t)}function n(){t.newTab.closest("li").addClass("ui-tabs-active ui-state-active"),r.length&&s.options.show?s._show(r,s.options.show,i):(r.show(),i())}var s=this,r=t.newPanel,o=t.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,function(){t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),n()}):(t.oldTab.closest("li").removeClass("ui-tabs-active ui-state-active"),o.hide(),n()),o.attr("aria-hidden","true"),t.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&o.length?t.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter(function(){return 0===F(this).attr("tabIndex")}).attr("tabIndex",-1),r.attr("aria-hidden","false"),t.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var t,i=this._findActive(e);i[0]!==this.active[0]&&(i.length||(i=this.active),t=i.find(".ui-tabs-anchor")[0],this._eventHandler({target:t,currentTarget:t,preventDefault:F.noop}))},_findActive:function(e){return!1===e?F():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+e+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.element.removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible"),this.tablist.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all").removeAttr("role"),this.anchors.removeClass("ui-tabs-anchor").removeAttr("role").removeAttr("tabIndex").removeUniqueId(),this.tablist.unbind(this.eventNamespace),this.tabs.add(this.panels).each(function(){F.data(this,"ui-tabs-destroy")?F(this).remove():F(this).removeClass("ui-state-default ui-state-active ui-state-disabled ui-corner-top ui-corner-bottom ui-widget-content ui-tabs-active ui-tabs-panel").removeAttr("tabIndex").removeAttr("aria-live").removeAttr("aria-busy").removeAttr("aria-selected").removeAttr("aria-labelledby").removeAttr("aria-hidden").removeAttr("aria-expanded").removeAttr("role")}),this.tabs.each(function(){var e=F(this),t=e.data("ui-tabs-aria-controls");t?e.attr("aria-controls",t).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(i){var e=this.options.disabled;!1!==e&&(e=void 0!==i&&(i=this._getIndex(i),F.isArray(e)?F.map(e,function(e){return e!==i?e:null}):F.map(this.tabs,function(e,t){return t!==i?t:null})),this._setupDisabled(e))},disable:function(e){var t=this.options.disabled;if(!0!==t){if(void 0===e)t=!0;else{if(e=this._getIndex(e),-1!==F.inArray(e,t))return;t=F.isArray(t)?F.merge([e],t).sort():[e]}this._setupDisabled(t)}},load:function(e,n){e=this._getIndex(e);var s=this,i=this.tabs.eq(e),t=i.find(".ui-tabs-anchor"),r=this._getPanelForTab(i),o={tab:i,panel:r},a=function(e,t){"abort"===t&&s.panels.stop(!1,!0),i.removeClass("ui-tabs-loading"),r.removeAttr("aria-busy"),e===s.xhr&&delete s.xhr};this._isLocal(t[0])||(this.xhr=F.ajax(this._ajaxSettings(t,n,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(i.addClass("ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done(function(e,t,i){setTimeout(function(){r.html(e),s._trigger("load",n,o),a(i,t)},1)}).fail(function(e,t){setTimeout(function(){a(e,t)},1)})))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href"),beforeSend:function(e,t){return s._trigger("beforeLoad",i,F.extend({jqXHR:e,ajaxSettings:t},n))}}},_getPanelForTab:function(e){var t=F(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+t))}}),F.widget("ui.tooltip",{version:"1.11.4",options:{content:function(){var e=F(this).attr("title")||"";return F("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,tooltipClass:null,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",F.trim(i.join(" ")))},_removeDescribedBy:function(e){var t=e.data("ui-tooltip-id"),i=(e.attr("aria-describedby")||"").split(/\s+/),n=F.inArray(t,i);-1!==n&&i.splice(n,1),e.removeData("ui-tooltip-id"),(i=F.trim(i.join(" ")))?e.attr("aria-describedby",i):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.options.disabled&&this._disable(),this.liveRegion=F("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).addClass("ui-helper-hidden-accessible").appendTo(this.document[0].body)},_setOption:function(e,t){var i=this;return"disabled"===e?(this[t?"_disable":"_enable"](),void(this.options[e]=t)):(this._super(e,t),void("content"===e&&F.each(this.tooltips,function(e,t){i._updateContent(t.element)})))},_disable:function(){var n=this;F.each(this.tooltips,function(e,t){var i=F.Event("blur");i.target=i.currentTarget=t.element[0],n.close(i,!0)}),this.element.find(this.options.items).addBack().each(function(){var e=F(this);e.is("[title]")&&e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})},_enable:function(){this.element.find(this.options.items).addBack().each(function(){var e=F(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})},open:function(e){var i=this,t=F(e?e.target:this.element).closest(this.options.items);t.length&&!t.data("ui-tooltip-id")&&(t.attr("title")&&t.data("ui-tooltip-title",t.attr("title")),t.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&t.parents().each(function(){var e,t=F(this);t.data("ui-tooltip-open")&&((e=F.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),t.attr("title")&&(t.uniqueId(),i.parents[this.id]={element:this,title:t.attr("title")},t.attr("title",""))}),this._registerCloseHandlers(e,t),this._updateContent(t,e))},_updateContent:function(t,i){var e,n=this.options.content,s=this,r=i?i.type:null;return"string"==typeof n?this._open(i,t,n):void((e=n.call(t[0],function(e){s._delay(function(){t.data("ui-tooltip-open")&&(i&&(i.type=r),this._open(i,t,e))})}))&&this._open(i,t,e))},_open:function(e,t,i){function n(e){l.of=e,r.is(":hidden")||r.position(l)}var s,r,o,a,l=F.extend({},this.options.position);if(i){if(s=this._find(t))return void s.tooltip.find(".ui-tooltip-content").html(i);t.is("[title]")&&(e&&"mouseover"===e.type?t.attr("title",""):t.removeAttr("title")),s=this._tooltip(t),r=s.tooltip,this._addDescribedBy(t,r.attr("id")),r.find(".ui-tooltip-content").html(i),this.liveRegion.children().hide(),i.clone?(a=i.clone()).removeAttr("id").find("[id]").removeAttr("id"):a=i,F("<div>").html(a).appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:n}),n(e)):r.position(F.extend({of:t},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval(function(){r.is(":visible")&&(n(l.of),clearInterval(o))},F.fx.interval)),this._trigger("open",e,{tooltip:r})}},_registerCloseHandlers:function(e,i){var t={keyup:function(e){if(e.keyCode===F.ui.keyCode.ESCAPE){var t=F.Event(e);t.currentTarget=i[0],this.close(t,!0)}}};i[0]!==this.element[0]&&(t.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(t.mouseleave="close"),e&&"focusin"!==e.type||(t.focusout="close"),this._on(!0,i,t)},close:function(e){var t,i=this,n=F(e?e.currentTarget:this.element),s=this._find(n);return s?(t=s.tooltip,void(s.closing||(clearInterval(this.delayedShow),n.data("ui-tooltip-title")&&!n.attr("title")&&n.attr("title",n.data("ui-tooltip-title")),this._removeDescribedBy(n),s.hiding=!0,t.stop(!0),this._hide(t,this.options.hide,function(){i._removeTooltip(F(this))}),n.removeData("ui-tooltip-open"),this._off(n,"mouseleave focusout keyup"),n[0]!==this.element[0]&&this._off(n,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&F.each(this.parents,function(e,t){F(t.element).attr("title",t.title),delete i.parents[e]}),s.closing=!0,this._trigger("close",e,{tooltip:t}),s.hiding||(s.closing=!1)))):void n.removeData("ui-tooltip-open")},_tooltip:function(e){var t=F("<div>").attr("role","tooltip").addClass("ui-tooltip ui-widget ui-corner-all ui-widget-content "+(this.options.tooltipClass||"")),i=t.uniqueId().attr("id");return F("<div>").addClass("ui-tooltip-content").appendTo(t),t.appendTo(this.document[0].body),this.tooltips[i]={element:e,tooltip:t}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){e.remove(),delete this.tooltips[e.attr("id")]},_destroy:function(){var s=this;F.each(this.tooltips,function(e,t){var i=F.Event("blur"),n=t.element;i.target=i.currentTarget=n[0],s.close(i,!0),F("#"+e).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}});var I,w="ui-effects-",_=F;F.effects={effect:{}},function(h,u){function d(e,t,i){var n=m[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:e<0?0:e>n.max?n.max:e)}function a(o){var a=f(),l=a._rgba=[];return o=o.toLowerCase(),C(e,function(e,t){var i,n=t.re.exec(o),s=n&&t.parse(n),r=t.space||"rgba";return s?(i=a[r](s),a[p[r].cache]=i[p[r].cache],l=a._rgba=i._rgba,!1):u}),l.length?("0,0,0,0"===l.join()&&h.extend(l,c.transparent),a):c[o]}function l(e,t,i){return 6*(i=(i+1)%1)<1?e+6*(t-e)*i:2*i<1?t:3*i<2?e+6*(t-e)*(2/3-i):e}var c,g=/^([\-+])=\s*(\d+\.?\d*)/,e=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],f=h.Color=function(e,t,i,n){return new h.Color.fn.parse(e,t,i,n)},p={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},m={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},o=f.support={},t=h("<p>")[0],C=h.each;t.style.cssText="background-color:rgba(1,1,1,.5)",o.rgba=-1<t.style.backgroundColor.indexOf("rgba"),C(p,function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}}),f.fn=h.extend(f.prototype,{parse:function(s,e,t,i){if(s===u)return this._rgba=[null,null,null,null],this;(s.jquery||s.nodeType)&&(s=h(s).css(e),e=u);var r=this,n=h.type(s),o=this._rgba=[];return e!==u&&(s=[s,e,t,i],n="array"),"string"===n?this.parse(a(s)||c._default):"array"===n?(C(p.rgba.props,function(e,t){o[t.idx]=d(s[t.idx],t)}),this):"object"===n?(C(p,s instanceof f?function(e,t){s[t.cache]&&(r[t.cache]=s[t.cache].slice())}:function(e,i){var n=i.cache;C(i.props,function(e,t){if(!r[n]&&i.to){if("alpha"===e||null==s[e])return;r[n]=i.to(r._rgba)}r[n][t.idx]=d(s[e],t,!0)}),r[n]&&h.inArray(null,r[n].slice(0,3))<0&&(r[n][3]=1,i.from&&(r._rgba=i.from(r[n])))}),this):u},is:function(e){var s=f(e),r=!0,o=this;return C(p,function(e,t){var i,n=s[t.cache];return n&&(i=o[t.cache]||t.to&&t.to(o._rgba)||[],C(t.props,function(e,t){return null!=n[t.idx]?r=n[t.idx]===i[t.idx]:u})),r}),r},_space:function(){var i=[],n=this;return C(p,function(e,t){n[t.cache]&&i.push(e)}),i.pop()},transition:function(e,o){var a=f(e),t=a._space(),i=p[t],n=0===this.alpha()?f("transparent"):this,l=n[i.cache]||i.to(n._rgba),c=l.slice();return a=a[i.cache],C(i.props,function(e,t){var i=t.idx,n=l[i],s=a[i],r=m[t.type]||{};null!==s&&(c[i]=null===n?s:(r.mod&&(s-n>r.mod/2?n+=r.mod:n-s>r.mod/2&&(n-=r.mod)),d((s-n)*o+n,t)))}),this[t](c)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),i=t.pop(),n=f(e)._rgba;return f(h.map(t,function(e,t){return(1-i)*n[t]+i*e}))},toRgbaString:function(){var e="rgba(",t=h.map(this._rgba,function(e,t){return null==e?2<t?1:0:e});return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=h.map(this.hsla(),function(e,t){return null==e&&(e=2<t?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e});return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),i=t.pop();return e&&t.push(~~(255*i)),"#"+h.map(t,function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),f.fn.parse.prototype=f.fn,p.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,s=e[1]/255,r=e[2]/255,o=e[3],a=Math.max(n,s,r),l=Math.min(n,s,r),c=a-l,h=a+l,u=.5*h;return t=l===a?0:n===a?60*(s-r)/c+360:s===a?60*(r-n)/c+120:60*(n-s)/c+240,i=0===c?0:u<=.5?c/h:c/(2-h),[Math.round(t)%360,i,u,null==o?1:o]},p.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],r=n<=.5?n*(1+i):n+i-n*i,o=2*n-r;return[Math.round(255*l(o,r,t+1/3)),Math.round(255*l(o,r,t)),Math.round(255*l(o,r,t-1/3)),s]},C(p,function(l,e){var i=e.props,o=e.cache,a=e.to,c=e.from;f.fn[l]=function(e){if(a&&!this[o]&&(this[o]=a(this._rgba)),e===u)return this[o].slice();var t,n=h.type(e),s="array"===n||"object"===n?e:arguments,r=this[o].slice();return C(i,function(e,t){var i=s["object"===n?e:t.idx];null==i&&(i=r[t.idx]),r[t.idx]=d(i,t)}),c?((t=f(c(r)))[o]=r,t):f(r)},C(i,function(o,a){f.fn[o]||(f.fn[o]=function(e){var t,i=h.type(e),n="alpha"===o?this._hsla?"hsla":"rgba":l,s=this[n](),r=s[a.idx];return"undefined"===i?r:("function"===i&&(e=e.call(this,r),i=h.type(e)),null==e&&a.empty?this:("string"===i&&((t=g.exec(e))&&(e=r+parseFloat(t[2])*("+"===t[1]?1:-1))),s[a.idx]=e,this[n](s)))})})}),f.hook=function(e){var t=e.split(" ");C(t,function(e,r){h.cssHooks[r]={set:function(e,t){var i,n,s="";if("transparent"!==t&&("string"!==h.type(t)||(i=a(t)))){if(t=f(i||t),!o.rgba&&1!==t._rgba[3]){for(n="backgroundColor"===r?e.parentNode:e;(""===s||"transparent"===s)&&n&&n.style;)try{s=h.css(n,"backgroundColor"),n=n.parentNode}catch(e){}t=t.blend(s&&"transparent"!==s?s:"_default")}t=t.toRgbaString()}try{e.style[r]=t}catch(e){}}},h.fx.step[r]=function(e){e.colorInit||(e.start=f(e.elem,r),e.end=f(e.end),e.colorInit=!0),h.cssHooks[r].set(e.elem,e.start.transition(e.end,e.pos))}})},f.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),h.cssHooks.borderColor={expand:function(i){var n={};return C(["Top","Right","Bottom","Left"],function(e,t){n["border"+t+"Color"]=i}),n}},c=h.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(_),function(){function o(e){var t,i,n=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[t=n[i]]&&(s[F.camelCase(t)]=n[t]);else for(t in n)"string"==typeof n[t]&&(s[t]=n[t]);return s}var r,s,a,l=["add","remove","toggle"],c={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};F.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,t){F.fx.step[t]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(_.style(e.elem,t,e.end),e.setAttr=!0)}}),F.fn.addBack||(F.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),F.effects.animateClass=function(s,e,t,i){var r=F.speed(e,t,i);return this.queue(function(){var e,i=F(this),t=i.attr("class")||"",n=r.children?i.find("*").addBack():i;n=n.map(function(){return{el:F(this),start:o(this)}}),(e=function(){F.each(l,function(e,t){s[t]&&i[t+"Class"](s[t])})})(),n=n.map(function(){return this.end=o(this.el[0]),this.diff=function(e,t){var i,n,s={};for(i in t)n=t[i],e[i]!==n&&(c[i]||(F.fx.step[i]||!isNaN(parseFloat(n)))&&(s[i]=n));return s}(this.start,this.end),this}),i.attr("class",t),n=n.map(function(){var e=this,t=F.Deferred(),i=F.extend({},r,{queue:!1,complete:function(){t.resolve(e)}});return this.el.animate(this.diff,i),t.promise()}),F.when.apply(F,n.get()).done(function(){e(),F.each(arguments,function(){var t=this.el;F.each(this.diff,function(e){t.css(e,"")})}),r.complete.call(i[0])})})},F.fn.extend({addClass:(a=F.fn.addClass,function(e,t,i,n){return t?F.effects.animateClass.call(this,{add:e},t,i,n):a.apply(this,arguments)}),removeClass:(s=F.fn.removeClass,function(e,t,i,n){return 1<arguments.length?F.effects.animateClass.call(this,{remove:e},t,i,n):s.apply(this,arguments)}),toggleClass:(r=F.fn.toggleClass,function(e,t,i,n,s){return"boolean"==typeof t||void 0===t?i?F.effects.animateClass.call(this,t?{add:e}:{remove:e},i,n,s):r.apply(this,arguments):F.effects.animateClass.call(this,{toggle:e},t,i,n)}),switchClass:function(e,t,i,n,s){return F.effects.animateClass.call(this,{add:t,remove:e},i,n,s)}})}(),function(){function n(e,t,i,n){return F.isPlainObject(e)&&(e=(t=e).effect),e={effect:e},null==t&&(t={}),F.isFunction(t)&&(n=t,i=null,t={}),("number"==typeof t||F.fx.speeds[t])&&(n=i,i=t,t={}),F.isFunction(i)&&(n=i,i=null),t&&F.extend(e,t),i=i||t.duration,e.duration=F.fx.off?0:"number"==typeof i?i:i in F.fx.speeds?F.fx.speeds[i]:F.fx.speeds._default,e.complete=n||t.complete,e}function i(e){return!(e&&"number"!=typeof e&&!F.fx.speeds[e])||("string"==typeof e&&!F.effects.effect[e]||(!!F.isFunction(e)||"object"==typeof e&&!e.effect))}var s,r,o;F.extend(F.effects,{version:"1.11.4",save:function(e,t){for(var i=0;t.length>i;i++)null!==t[i]&&e.data(w+t[i],e[0].style[t[i]])},restore:function(e,t){var i,n;for(n=0;t.length>n;n++)null!==t[n]&&(void 0===(i=e.data(w+t[n]))&&(i=""),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createWrapper:function(i){if(i.parent().is(".ui-effects-wrapper"))return i.parent();var n={width:i.outerWidth(!0),height:i.outerHeight(!0),float:i.css("float")},e=F("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),t={width:i.width(),height:i.height()},s=document.activeElement;try{s.id}catch(e){s=document.body}return i.wrap(e),(i[0]===s||F.contains(i[0],s))&&F(s).focus(),e=i.parent(),"static"===i.css("position")?(e.css({position:"relative"}),i.css({position:"relative"})):(F.extend(n,{position:i.css("position"),zIndex:i.css("z-index")}),F.each(["top","left","bottom","right"],function(e,t){n[t]=i.css(t),isNaN(parseInt(n[t],10))&&(n[t]="auto")}),i.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),i.css(t),e.css(n).show()},removeWrapper:function(e){var t=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===t||F.contains(e[0],t))&&F(t).focus()),e},setTransition:function(n,e,s,r){return r=r||{},F.each(e,function(e,t){var i=n.cssUnit(t);0<i[0]&&(r[t]=i[0]*s+i[1])}),r}}),F.fn.extend({effect:function(){function e(e){function t(){F.isFunction(n)&&n.call(i[0]),F.isFunction(e)&&e()}var i=F(this),n=r.complete,s=r.mode;(i.is(":hidden")?"hide"===s:"show"===s)?(i[s](),t()):o.call(i[0],r,t)}var r=n.apply(this,arguments),t=r.mode,i=r.queue,o=F.effects.effect[r.effect];return F.fx.off||!o?t?this[t](r.duration,r.complete):this.each(function(){r.complete&&r.complete.call(this)}):!1===i?this.each(e):this.queue(i||"fx",e)},show:(o=F.fn.show,function(e){if(i(e))return o.apply(this,arguments);var t=n.apply(this,arguments);return t.mode="show",this.effect.call(this,t)}),hide:(r=F.fn.hide,function(e){if(i(e))return r.apply(this,arguments);var t=n.apply(this,arguments);return t.mode="hide",this.effect.call(this,t)}),toggle:(s=F.fn.toggle,function(e){if(i(e)||"boolean"==typeof e)return s.apply(this,arguments);var t=n.apply(this,arguments);return t.mode="toggle",this.effect.call(this,t)}),cssUnit:function(e){var i=this.css(e),n=[];return F.each(["em","px","%","pt"],function(e,t){0<i.indexOf(t)&&(n=[parseFloat(i),t])}),n}})}(),I={},F.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){I[e]=function(e){return Math.pow(e,t+2)}}),F.extend(I,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),F.each(I,function(e,t){F.easing["easeIn"+e]=t,F.easing["easeOut"+e]=function(e){return 1-t(1-e)},F.easing["easeInOut"+e]=function(e){return e<.5?t(2*e)/2:1-t(-2*e+2)/2}}),F.effects,F.effects.effect.blind=function(e,t){var i,n,s,r=F(this),o=["position","top","bottom","left","right","height","width"],a=F.effects.setMode(r,e.mode||"hide"),l=e.direction||"up",c=/up|down|vertical/.test(l),h=c?"height":"width",u=c?"top":"left",d=/up|left|vertical|horizontal/.test(l),g={},f="show"===a;r.parent().is(".ui-effects-wrapper")?F.effects.save(r.parent(),o):F.effects.save(r,o),r.show(),n=(i=F.effects.createWrapper(r).css({overflow:"hidden"}))[h](),s=parseFloat(i.css(u))||0,g[h]=f?n:0,d||(r.css(c?"bottom":"right",0).css(c?"top":"left","auto").css({position:"absolute"}),g[u]=f?s:n+s),f&&(i.css(h,0),d||i.css(u,s+n)),i.animate(g,{duration:e.duration,easing:e.easing,queue:!1,complete:function(){"hide"===a&&r.hide(),F.effects.restore(r,o),F.effects.removeWrapper(r),t()}})},F.effects.effect.bounce=function(e,t){var i,n,s,r=F(this),o=["position","top","bottom","left","right","height","width"],a=F.effects.setMode(r,e.mode||"effect"),l="hide"===a,c="show"===a,h=e.direction||"up",u=e.distance,d=e.times||5,g=2*d+(c||l?1:0),f=e.duration/g,p=e.easing,m="up"===h||"down"===h?"top":"left",C="up"===h||"left"===h,A=r.queue(),v=A.length;for((c||l)&&o.push("opacity"),F.effects.save(r,o),r.show(),F.effects.createWrapper(r),u||(u=r["top"===m?"outerHeight":"outerWidth"]()/3),c&&((s={opacity:1})[m]=0,r.css("opacity",0).css(m,C?2*-u:2*u).animate(s,f,p)),l&&(u/=Math.pow(2,d-1)),i=(s={})[m]=0;i<d;i++)(n={})[m]=(C?"-=":"+=")+u,r.animate(n,f,p).animate(s,f,p),u=l?2*u:u/2;l&&((n={opacity:0})[m]=(C?"-=":"+=")+u,r.animate(n,f,p)),r.queue(function(){l&&r.hide(),F.effects.restore(r,o),F.effects.removeWrapper(r),t()}),1<v&&A.splice.apply(A,[1,0].concat(A.splice(v,g+1))),r.dequeue()},F.effects.effect.clip=function(e,t){var i,n,s,r=F(this),o=["position","top","bottom","left","right","height","width"],a="show"===F.effects.setMode(r,e.mode||"hide"),l="vertical"===(e.direction||"vertical"),c=l?"height":"width",h=l?"top":"left",u={};F.effects.save(r,o),r.show(),i=F.effects.createWrapper(r).css({overflow:"hidden"}),s=(n="IMG"===r[0].tagName?i:r)[c](),a&&(n.css(c,0),n.css(h,s/2)),u[c]=a?s:0,u[h]=a?0:s/2,n.animate(u,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){a||r.hide(),F.effects.restore(r,o),F.effects.removeWrapper(r),t()}})},F.effects.effect.drop=function(e,t){var i,n=F(this),s=["position","top","bottom","left","right","opacity","height","width"],r=F.effects.setMode(n,e.mode||"hide"),o="show"===r,a=e.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a?"pos":"neg",h={opacity:o?1:0};F.effects.save(n,s),n.show(),F.effects.createWrapper(n),i=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0)/2,o&&n.css("opacity",0).css(l,"pos"===c?-i:i),h[l]=(o?"pos"===c?"+=":"-=":"pos"===c?"-=":"+=")+i,n.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&n.hide(),F.effects.restore(n,s),F.effects.removeWrapper(n),t()}})},F.effects.effect.explode=function(e,t){function i(){m.push(this),m.length===c*h&&(u.css({visibility:"visible"}),F(m).remove(),d||u.hide(),t())}var n,s,r,o,a,l,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,h=c,u=F(this),d="show"===F.effects.setMode(u,e.mode||"hide"),g=u.show().css("visibility","hidden").offset(),f=Math.ceil(u.outerWidth()/h),p=Math.ceil(u.outerHeight()/c),m=[];for(n=0;n<c;n++)for(o=g.top+n*p,l=n-(c-1)/2,s=0;s<h;s++)r=g.left+s*f,a=s-(h-1)/2,u.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*f,top:-n*p}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:p,left:r+(d?a*f:0),top:o+(d?l*p:0),opacity:d?0:1}).animate({left:r+(d?0:a*f),top:o+(d?0:l*p),opacity:d?1:0},e.duration||500,e.easing,i)},F.effects.effect.fade=function(e,t){var i=F(this),n=F.effects.setMode(i,e.mode||"toggle");i.animate({opacity:n},{queue:!1,duration:e.duration,easing:e.easing,complete:t})},F.effects.effect.fold=function(e,t){var i,n,s=F(this),r=["position","top","bottom","left","right","height","width"],o=F.effects.setMode(s,e.mode||"hide"),a="show"===o,l="hide"===o,c=e.size||15,h=/([0-9]+)%/.exec(c),u=!!e.horizFirst,d=a!==u,g=d?["width","height"]:["height","width"],f=e.duration/2,p={},m={};F.effects.save(s,r),s.show(),i=F.effects.createWrapper(s).css({overflow:"hidden"}),n=d?[i.width(),i.height()]:[i.height(),i.width()],h&&(c=parseInt(h[1],10)/100*n[l?0:1]),a&&i.css(u?{height:0,width:c}:{height:c,width:0}),p[g[0]]=a?n[0]:c,m[g[1]]=a?n[1]:0,i.animate(p,f,e.easing).animate(m,f,e.easing,function(){l&&s.hide(),F.effects.restore(s,r),F.effects.removeWrapper(s),t()})},F.effects.effect.highlight=function(e,t){var i=F(this),n=["backgroundImage","backgroundColor","opacity"],s=F.effects.setMode(i,e.mode||"show"),r={backgroundColor:i.css("backgroundColor")};"hide"===s&&(r.opacity=0),F.effects.save(i,n),i.show().css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===s&&i.hide(),F.effects.restore(i,n),t()}})},F.effects.effect.size=function(r,e){var t,i,o,a=F(this),n=["position","top","bottom","left","right","width","height","overflow","opacity"],l=["width","height","overflow"],s=["fontSize"],c=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],u=F.effects.setMode(a,r.mode||"effect"),d=r.restore||"effect"!==u,g=r.scale||"both",f=r.origin||["middle","center"],p=a.css("position"),m=d?n:["position","top","bottom","left","right","overflow","opacity"],C={height:0,width:0,outerHeight:0,outerWidth:0};"show"===u&&a.show(),t={height:a.height(),width:a.width(),outerHeight:a.outerHeight(),outerWidth:a.outerWidth()},"toggle"===r.mode&&"show"===u?(a.from=r.to||C,a.to=r.from||t):(a.from=r.from||("show"===u?C:t),a.to=r.to||("hide"===u?C:t)),o={from:{y:a.from.height/t.height,x:a.from.width/t.width},to:{y:a.to.height/t.height,x:a.to.width/t.width}},("box"===g||"both"===g)&&(o.from.y!==o.to.y&&(m=m.concat(c),a.from=F.effects.setTransition(a,c,o.from.y,a.from),a.to=F.effects.setTransition(a,c,o.to.y,a.to)),o.from.x!==o.to.x&&(m=m.concat(h),a.from=F.effects.setTransition(a,h,o.from.x,a.from),a.to=F.effects.setTransition(a,h,o.to.x,a.to))),("content"===g||"both"===g)&&o.from.y!==o.to.y&&(m=m.concat(s).concat(l),a.from=F.effects.setTransition(a,s,o.from.y,a.from),a.to=F.effects.setTransition(a,s,o.to.y,a.to)),F.effects.save(a,m),a.show(),F.effects.createWrapper(a),a.css("overflow","hidden").css(a.from),f&&(i=F.effects.getBaseline(f,t),a.from.top=(t.outerHeight-a.outerHeight())*i.y,a.from.left=(t.outerWidth-a.outerWidth())*i.x,a.to.top=(t.outerHeight-a.to.outerHeight)*i.y,a.to.left=(t.outerWidth-a.to.outerWidth)*i.x),a.css(a.from),("content"===g||"both"===g)&&(c=c.concat(["marginTop","marginBottom"]).concat(s),h=h.concat(["marginLeft","marginRight"]),l=n.concat(c).concat(h),a.find("*[width]").each(function(){var e=F(this),t=e.height(),i=e.width(),n=e.outerHeight(),s=e.outerWidth();d&&F.effects.save(e,l),e.from={height:t*o.from.y,width:i*o.from.x,outerHeight:n*o.from.y,outerWidth:s*o.from.x},e.to={height:t*o.to.y,width:i*o.to.x,outerHeight:t*o.to.y,outerWidth:i*o.to.x},o.from.y!==o.to.y&&(e.from=F.effects.setTransition(e,c,o.from.y,e.from),e.to=F.effects.setTransition(e,c,o.to.y,e.to)),o.from.x!==o.to.x&&(e.from=F.effects.setTransition(e,h,o.from.x,e.from),e.to=F.effects.setTransition(e,h,o.to.x,e.to)),e.css(e.from),e.animate(e.to,r.duration,r.easing,function(){d&&F.effects.restore(e,l)})})),a.animate(a.to,{queue:!1,duration:r.duration,easing:r.easing,complete:function(){0===a.to.opacity&&a.css("opacity",a.from.opacity),"hide"===u&&a.hide(),F.effects.restore(a,m),d||("static"===p?a.css({position:"relative",top:a.to.top,left:a.to.left}):F.each(["top","left"],function(s,e){a.css(e,function(e,t){var i=parseInt(t,10),n=s?a.to.left:a.to.top;return"auto"===t?n+"px":i+n+"px"})})),F.effects.removeWrapper(a),e()}})},F.effects.effect.scale=function(e,t){var i=F(this),n=F.extend(!0,{},e),s=F.effects.setMode(i,e.mode||"effect"),r=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"hide"===s?0:100),o=e.direction||"both",a=e.origin,l={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()},c="horizontal"!==o?r/100:1,h="vertical"!==o?r/100:1;n.effect="size",n.queue=!1,n.complete=t,"effect"!==s&&(n.origin=a||["middle","center"],n.restore=!0),n.from=e.from||("show"===s?{height:0,width:0,outerHeight:0,outerWidth:0}:l),n.to={height:l.height*c,width:l.width*h,outerHeight:l.outerHeight*c,outerWidth:l.outerWidth*h},n.fade&&("show"===s&&(n.from.opacity=0,n.to.opacity=1),"hide"===s&&(n.from.opacity=1,n.to.opacity=0)),i.effect(n)},F.effects.effect.puff=function(e,t){var i=F(this),n=F.effects.setMode(i,e.mode||"hide"),s="hide"===n,r=parseInt(e.percent,10)||150,o=r/100,a={height:i.height(),width:i.width(),outerHeight:i.outerHeight(),outerWidth:i.outerWidth()};F.extend(e,{effect:"scale",queue:!1,fade:!0,mode:n,complete:t,percent:s?r:100,from:s?a:{height:a.height*o,width:a.width*o,outerHeight:a.outerHeight*o,outerWidth:a.outerWidth*o}}),i.effect(e)},F.effects.effect.pulsate=function(e,t){var i,n=F(this),s=F.effects.setMode(n,e.mode||"show"),r="show"===s,o="hide"===s,a=r||"hide"===s,l=2*(e.times||5)+(a?1:0),c=e.duration/l,h=0,u=n.queue(),d=u.length;for((r||!n.is(":visible"))&&(n.css("opacity",0).show(),h=1),i=1;i<l;i++)n.animate({opacity:h},c,e.easing),h=1-h;n.animate({opacity:h},c,e.easing),n.queue(function(){o&&n.hide(),t()}),1<d&&u.splice.apply(u,[1,0].concat(u.splice(d,l+1))),n.dequeue()},F.effects.effect.shake=function(e,t){var i,n=F(this),s=["position","top","bottom","left","right","height","width"],r=F.effects.setMode(n,e.mode||"effect"),o=e.direction||"left",a=e.distance||20,l=e.times||3,c=2*l+1,h=Math.round(e.duration/c),u="up"===o||"down"===o?"top":"left",d="up"===o||"left"===o,g={},f={},p={},m=n.queue(),C=m.length;for(F.effects.save(n,s),n.show(),F.effects.createWrapper(n),g[u]=(d?"-=":"+=")+a,f[u]=(d?"+=":"-=")+2*a,p[u]=(d?"-=":"+=")+2*a,n.animate(g,h,e.easing),i=1;i<l;i++)n.animate(f,h,e.easing).animate(p,h,e.easing);n.animate(f,h,e.easing).animate(g,h/2,e.easing).queue(function(){"hide"===r&&n.hide(),F.effects.restore(n,s),F.effects.removeWrapper(n),t()}),1<C&&m.splice.apply(m,[1,0].concat(m.splice(C,c+1))),n.dequeue()},F.effects.effect.slide=function(e,t){var i,n=F(this),s=["position","top","bottom","left","right","width","height"],r=F.effects.setMode(n,e.mode||"show"),o="show"===r,a=e.direction||"left",l="up"===a||"down"===a?"top":"left",c="up"===a||"left"===a,h={};F.effects.save(n,s),n.show(),i=e.distance||n["top"===l?"outerHeight":"outerWidth"](!0),F.effects.createWrapper(n).css({overflow:"hidden"}),o&&n.css(l,c?isNaN(i)?"-"+i:-i:i),h[l]=(o?c?"+=":"-=":c?"-=":"+=")+i,n.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){"hide"===r&&n.hide(),F.effects.restore(n,s),F.effects.removeWrapper(n),t()}})},F.effects.effect.transfer=function(e,t){var i=F(this),n=F(e.to),s="fixed"===n.css("position"),r=F("body"),o=s?r.scrollTop():0,a=s?r.scrollLeft():0,l=n.offset(),c={top:l.top-o,left:l.left-a,height:n.innerHeight(),width:n.innerWidth()},h=i.offset(),u=F("<div class='ui-effects-transfer'></div>").appendTo(document.body).addClass(e.className).css({top:h.top-o,left:h.left-a,height:i.innerHeight(),width:i.innerWidth(),position:s?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){u.remove(),t()})}}),function(a){var l,c=a(document),h=a("head"),d=null,u={},s=0,g="JColResizer",n="JCLRFlex",r=parseInt,f=Math,o=0<navigator.userAgent.indexOf("Trident/4.0");try{l=sessionStorage}catch(e){}h.append("<style type='text/css'> .JColResizer{table-layout:fixed;} .JColResizer > tbody > tr > td, .JColResizer > tbody > tr > th{overflow:hidden;padding-left:0!important; padding-right:0!important;} .JCLRgrips{ height:0px; position:relative;} .JCLRgrip{margin-left:-5px; position:absolute; z-index:5; } .JCLRgrip .JColResizer{position:absolute;background-color:red;filter:alpha(opacity=1);opacity:0;width:10px;height:100%;cursor: e-resize;top:0px} .JCLRLastGrip{position:absolute; width:1px; } .JCLRgripDrag{ border-left:1px dotted black;\t} .JCLRFlex{width:auto!important;} .JCLRgrip.JCLRdisabledGrip .JColResizer{cursor:default; display:none;}</style>");var p=function(e){var t=e.attr("id");(e=u[t])&&e.is("table")&&(e.removeClass(g+" "+n).gc.remove(),delete u[t])},m=function(s){var e=s.find(">thead>tr:first>th,>thead>tr:first>td");e.length||(e=s.find(">tbody>tr:first>th,>tr:first>th,>tbody>tr:first>td, >tr:first>td")),e=e.filter(":visible"),s.cg=s.find("col"),s.ln=e.length,s.p&&l&&l[s.id]&&C(s,e),e.each(function(e){var t=a(this),i=-1!=s.dc.indexOf(e),n=a(s.gc.append('<div class="JCLRgrip"></div>')[0].lastChild);n.append(i?"":s.opt.gripInnerHtml).append('<div class="'+g+'"></div>'),e==s.ln-1&&(n.addClass("JCLRLastGrip"),s.f&&n.html("")),n.on("touchstart mousedown",w),i?n.addClass("JCLRdisabledGrip"):n.removeClass("JCLRdisabledGrip").on("touchstart mousedown",w),n.t=s,n.i=e,(n.c=t).w=t.width(),s.g.push(n),s.c.push(t),t.width(t.w).removeAttr("width"),n.data(g,{i:e,t:s.attr("id"),last:e==s.ln-1})}),s.cg.removeAttr("width"),s.find("td, th").not(e).not("table th, table td").each(function(){a(this).removeAttr("width")}),s.f||s.removeAttr("width").addClass(n),A(s)},C=function(e,t){var i,n,s=0,r=0,o=[];if(t){if(e.cg.removeAttr("width"),e.opt.flush)return void(l[e.id]="");for(n=(i=l[e.id].split(";"))[e.ln+1],!e.f&&n&&(e.width(n*=1),e.opt.overflow&&(e.css("min-width",n+"px"),e.w=n));r<e.ln;r++)o.push(100*i[r]/i[e.ln]+"%"),t.eq(r).css("width",o[r]);for(r=0;r<e.ln;r++)e.cg.eq(r).css("width",o[r])}else{for(l[e.id]="";r<e.c.length;r++)i=e.c[r].width(),l[e.id]+=i+";",s+=i;l[e.id]+=s,e.f||(l[e.id]+=";"+e.width())}},A=function(e){e.gc.width(e.w);for(var t=0;t<e.ln;t++){var i=e.c[t];e.g[t].css({left:i.offset().left-e.offset().left+i.outerWidth(!1)+e.cs/2+"px",height:e.opt.headerOnly?e.c[0].outerHeight(!1):e.outerHeight(!1)})}},v=function(e,t,i){var n=d.x-d.l,s=e.c[t],r=e.c[t+1],o=s.w+n,a=r.w-n;s.width(o+"px"),e.cg.eq(t).width(o+"px"),e.f?(r.width(a+"px"),e.cg.eq(t+1).width(a+"px")):e.opt.overflow&&e.css("min-width",e.w+n),i&&(s.w=o,r.w=e.f?a:r.w)},b=function(e){var i=a.map(e.c,function(e){return e.width()});e.width(e.w=e.width()).removeClass(n),a.each(e.c,function(e,t){t.width(i[e]).w=i[e]}),e.addClass(n)},y=function(e){if(d){var t=d.t,i=e.originalEvent.touches,n=(i?i[0].pageX:e.pageX)-d.ox+d.l,s=t.opt.minWidth,r=d.i,o=1.5*t.cs+s+t.b,a=r==t.ln-1,l=r?t.g[r-1].position().left+t.cs+s:o,c=t.f?r==t.ln-1?t.w-o:t.g[r+1].position().left-t.cs-s:1/0;if(n=f.max(l,f.min(c,n)),d.x=n,d.css("left",n+"px"),a){var h=t.c[d.i];d.w=h.w+n-d.l}if(t.opt.liveDrag){a?(h.width(d.w),!t.f&&t.opt.overflow?t.css("min-width",t.w+n-d.l):t.w=t.width()):v(t,r),A(t);var u=t.opt.onDrag;u&&(e.currentTarget=t[0],u(e))}return!1}},I=function(e){if(c.off("touchend."+g+" mouseup."+g).off("touchmove."+g+" mousemove."+g),a("head :last-child").remove(),d){if(d.removeClass(d.t.opt.draggingClass),d.x-d.l!=0){var t=d.t,i=t.opt.onResize,n=d.i,s=n==t.ln-1,r=t.g[n].c;s?(r.width(d.w),r.w=d.w):v(t,n,!0),t.f||b(t),A(t),i&&(e.currentTarget=t[0],i(e)),t.p&&l&&C(t)}d=null}},w=function(e){var t=a(this).data(g),i=u[t.t],n=i.g[t.i],s=e.originalEvent.touches;if(n.ox=s?s[0].pageX:e.pageX,n.l=n.position().left,n.x=n.l,c.on("touchmove."+g+" mousemove."+g,y).on("touchend."+g+" mouseup."+g,I),h.append("<style type='text/css'>*{cursor:"+i.opt.dragCursor+"!important}</style>"),n.addClass(i.opt.draggingClass),d=n,i.c[t.i].l)for(var r,o=0;o<i.ln;o++)(r=i.c[o]).l=!1,r.w=r.width();return!1};a(window).on("resize."+g,function(){for(var e in u)if(u.hasOwnProperty(e)){var t,i=0;if((e=u[e]).removeClass(g),e.f){for(e.w=e.width(),t=0;t<e.ln;t++)i+=e.c[t].w;for(t=0;t<e.ln;t++)e.c[t].css("width",f.round(1e3*e.c[t].w/i)/10+"%").l=!0}else b(e),"flex"===e.mode&&e.p&&l&&C(e);A(e.addClass(g))}}),a.fn.extend({colResizable:function(e){switch((e=a.extend({resizeMode:"fit",draggingClass:"JCLRgripDrag",gripInnerHtml:"",liveDrag:!1,minWidth:15,headerOnly:!1,hoverCursor:"e-resize",dragCursor:"e-resize",postbackSafe:!1,flush:!1,marginLeft:null,marginRight:null,disable:!1,partialRefresh:!1,disabledColumns:[],onDrag:null,onResize:null},e)).fixed=!0,e.overflow=!1,e.resizeMode){case"flex":e.fixed=!1;break;case"overflow":e.fixed=!1,e.overflow=!0}return this.each(function(){!function(e,t){var i=a(e);if(i.opt=t,i.mode=t.resizeMode,i.dc=i.opt.disabledColumns,i.opt.disable)return p(i);var n=i.id=i.attr("id")||g+s++;i.p=i.opt.postbackSafe,!i.is("table")||u[n]&&!i.opt.partialRefresh||("e-resize"!==i.opt.hoverCursor&&h.append("<style type='text/css'>.JCLRgrip .JColResizer:hover{cursor:"+i.opt.hoverCursor+"!important}</style>"),i.addClass(g).attr("id",n).before('<div class="JCLRgrips"/>'),i.g=[],i.c=[],i.w=i.width(),i.gc=i.prev(),i.f=i.opt.fixed,t.marginLeft&&i.gc.css("marginLeft",t.marginLeft),t.marginRight&&i.gc.css("marginRight",t.marginRight),i.cs=r(o?e.cellSpacing||e.currentStyle.borderSpacing:i.css("border-spacing"))||2,i.b=r(o?e.border||e.currentStyle.borderLeftWidth:i.css("border-left-width"))||1,u[n]=i,m(i))}(this,e)})}})}(jQuery),function(f){var s=0;f.widget("ech.multiselect",{options:{header:!0,height:175,minWidth:225,classes:"",checkAllText:"Check all",uncheckAllText:"Uncheck all",noneSelectedText:"Select options",selectedText:"# selected",selectedList:0,show:null,hide:null,autoOpen:!1,multiple:!0,position:{}},_create:function(){var e=this.element.hide(),t=this.options;this.speed=f.fx.speeds._default,this._isOpen=!1,e=(this.button=f('<button type="button"><span class="ui-icon ui-icon-triangle-2-n-s"></span></button>')).addClass("ui-multiselect ui-widget ui-state-default ui-corner-all").addClass(t.classes).attr({title:e.attr("title"),"aria-haspopup":!0,tabIndex:e.attr("tabIndex")}).insertAfter(e),(this.buttonlabel=f("<span />")).html(t.noneSelectedText).appendTo(e);e=(this.menu=f("<div />")).addClass("ui-multiselect-menu ui-widget ui-widget-content ui-corner-all").addClass(t.classes).appendTo(document.body);var i=(this.header=f("<div />")).addClass("ui-widget-header ui-corner-all ui-multiselect-header ui-helper-clearfix").appendTo(e);(this.headerLinkContainer=f("<ul />")).addClass("ui-helper-reset").html(function(){return!0===t.header?'<li><a class="ui-multiselect-all" href="#"><span class="ui-icon ui-icon-check"></span><span>'+t.checkAllText+'</span></a></li><li><a class="ui-multiselect-none" href="#"><span class="ui-icon ui-icon-closethick"></span><span>'+t.uncheckAllText+"</span></a></li>":"string"==typeof t.header?"<li>"+t.header+"</li>":""}).append('<li class="ui-multiselect-close"><a href="#" class="ui-multiselect-close"><span class="ui-icon ui-icon-circle-close"></span></a></li>').appendTo(i),(this.checkboxContainer=f("<ul />")).addClass("ui-multiselect-checkboxes ui-helper-reset").appendTo(e),this._bindEvents(),this.refresh(!0),t.multiple||e.addClass("ui-multiselect-single")},_init:function(){!1===this.options.header&&this.header.hide(),this.options.multiple||this.headerLinkContainer.find(".ui-multiselect-all, .ui-multiselect-none").hide(),this.options.autoOpen&&this.open(),this.element.is(":disabled")&&this.disable()},refresh:function(e){var t=this.element,h=this.options,i=this.menu,n=this.checkboxContainer,u=[],d="",g=t.attr("id")||s++;t.find("option").each(function(e){f(this);var t,i=this.parentNode,n=this.innerHTML,s=this.title,r=this.value,o=(e="ui-multiselect-"+(this.id||g+"-option-"+e),this.disabled),a=this.selected,l=["ui-corner-all"],c=(o?"ui-multiselect-disabled ":" ")+this.className;"OPTGROUP"===i.tagName&&(t=i.getAttribute("label"),-1===f.inArray(t,u)&&(d+='<li class="ui-multiselect-optgroup-label '+i.className+'"><a href="#">'+t+"</a></li>",u.push(t))),o&&l.push("ui-state-disabled"),a&&!h.multiple&&l.push("ui-state-active"),d+='<li class="'+c+'">',d+='<label for="'+e+'" title="'+s+'" class="'+l.join(" ")+'">',d+='<input id="'+e+'" name="multiselect_'+g+'" type="'+(h.multiple?"checkbox":"radio")+'" value="'+r+'" title="'+n+'"',a&&(d+=' checked="checked"',d+=' aria-selected="true"'),o&&(d+=' disabled="disabled"',d+=' aria-disabled="true"'),d+=" /><span>"+n+"</span></label></li>"}),n.html(d),this.labels=i.find("label"),this.inputs=this.labels.children("input"),this._setButtonWidth(),this._setMenuWidth(),this.button[0].defaultValue=this.update(),e||this._trigger("refresh")},update:function(){var e=this.options,t=this.inputs,i=t.filter(":checked"),n=i.length;e=0===n?e.noneSelectedText:f.isFunction(e.selectedText)?e.selectedText.call(this,n,t.length,i.get()):/\d/.test(e.selectedList)&&0<e.selectedList&&n<=e.selectedList?i.map(function(){return f(this).next().html()}).get().join(", "):e.selectedText.replace("#",n).replace("#",t.length);return this.buttonlabel.html(e),e},_bindEvents:function(){function e(){return r[r._isOpen?"close":"open"](),!1}var r=this,t=this.button;t.find("span").bind("click.multiselect",e),t.bind({click:e,keypress:function(e){switch(e.which){case 27:case 38:case 37:r.close();break;case 39:case 40:r.open()}},mouseenter:function(){t.hasClass("ui-state-disabled")||f(this).addClass("ui-state-hover")},mouseleave:function(){f(this).removeClass("ui-state-hover")},focus:function(){t.hasClass("ui-state-disabled")||f(this).addClass("ui-state-focus")},blur:function(){f(this).removeClass("ui-state-focus")}}),this.header.delegate("a","click.multiselect",function(e){f(this).hasClass("ui-multiselect-close")?r.close():r[f(this).hasClass("ui-multiselect-all")?"checkAll":"uncheckAll"](),e.preventDefault()}),this.menu.delegate("li.ui-multiselect-optgroup-label a","click.multiselect",function(e){e.preventDefault();var t=(n=f(this)).parent().nextUntil("li.ui-multiselect-optgroup-label").find("input:visible:not(:disabled)"),i=t.get(),n=n.parent().text();!1!==r._trigger("beforeoptgrouptoggle",e,{inputs:i,label:n})&&(r._toggleChecked(t.filter(":checked").length!==t.length,t),r._trigger("optgrouptoggle",e,{inputs:i,label:n,checked:i[0].checked}))}).delegate("label","mouseenter.multiselect",function(){f(this).hasClass("ui-state-disabled")||(r.labels.removeClass("ui-state-hover"),f(this).addClass("ui-state-hover").find("input").focus())}).delegate("label","keydown.multiselect",function(e){switch(e.preventDefault(),e.which){case 9:case 27:r.close();break;case 38:case 40:case 37:case 39:r._traverse(e.which,this);break;case 13:f(this).find("input")[0].click()}}).delegate('input[type="checkbox"], input[type="radio"]',"click.multiselect",function(e){var t=f(this),i=this.value,n=this.checked,s=r.element.find("option");this.disabled||!1===r._trigger("click",e,{value:i,text:this.title,checked:n})?e.preventDefault():(t.focus(),t.attr("aria-selected",n),s.each(function(){this.value===i?this.selected=n:r.options.multiple||(this.selected=!1)}),r.options.multiple||(r.labels.removeClass("ui-state-active"),t.closest("label").toggleClass("ui-state-active",n),r.close()),r.element.trigger("change"),setTimeout(f.proxy(r.update,r),10))}),f(document).bind("mousedown.multiselect",function(e){r._isOpen&&!f.contains(r.menu[0],e.target)&&!f.contains(r.button[0],e.target)&&e.target!==r.button[0]&&r.close()}),f(this.element[0].form).bind("reset.multiselect",function(){setTimeout(f.proxy(r.refresh,r),10)})},_setButtonWidth:function(){var e=this.element.outerWidth(),t=this.options;/\d/.test(t.minWidth)&&e<t.minWidth&&(e=t.minWidth),this.button.width(e)},_setMenuWidth:function(){var e=this.menu,t=this.button.outerWidth()-parseInt(e.css("padding-left"),10)-parseInt(e.css("padding-right"),10)-parseInt(e.css("border-right-width"),10)-parseInt(e.css("border-left-width"),10);e.width(t||this.button.outerWidth())},_traverse:function(e,t){var i,n=38===e||37===e;(i=(i=f(t)).parent()[n?"prevAll":"nextAll"]("li:not(.ui-multiselect-disabled, .ui-multiselect-optgroup-label)")[n?"last":"first"]()).length?i.find("label").trigger("mouseover"):(i=this.menu.find("ul").last(),this.menu.find("label")[n?"last":"first"]().trigger("mouseover"),i.scrollTop(n?i.height():0))},_toggleState:function(e,t){return function(){this.disabled||(this[e]=t),t?this.setAttribute("aria-selected",!0):this.removeAttribute("aria-selected")}},_toggleChecked:function(e,t){var i=t&&t.length?t:this.inputs,n=this;i.each(this._toggleState("checked",e)),i.eq(0).focus(),this.update();var s=i.map(function(){return this.value}).get();this.element.find("option").each(function(){!this.disabled&&-1<f.inArray(this.value,s)&&n._toggleState("selected",e).call(this)}),i.length&&this.element.trigger("change")},_toggleDisabled:function(e){this.button.attr({disabled:e,"aria-disabled":e})[e?"addClass":"removeClass"]("ui-state-disabled");var t=this.menu.find("input");(t=e?t.filter(":enabled").data("ech-multiselect-disabled",!0):t.filter(function(){return!0===f.data(this,"ech-multiselect-disabled")}).removeData("ech-multiselect-disabled")).attr({disabled:e,"arial-disabled":e}).parent()[e?"addClass":"removeClass"]("ui-state-disabled"),this.element.attr({disabled:e,"aria-disabled":e})},open:function(){var e=this.button,t=this.menu,i=this.speed,n=this.options,s=[];if(!1!==this._trigger("beforeopen")&&!e.hasClass("ui-state-disabled")&&!this._isOpen){var r=t.find("ul").last(),o=n.show,a=e.offset();f.isArray(n.show)&&(o=n.show[0],i=n.show[1]||this.speed),o&&(s=[o,i]),r.scrollTop(0).height(n.height),f.ui.position&&!f.isEmptyObject(n.position)?(n.position.of=n.position.of||e,t.show().position(n.position).hide()):t.css({top:a.top+e.outerHeight(),left:a.left}),f.fn.show.apply(t,s),this.labels.eq(0).trigger("mouseover").trigger("mouseenter").find("input").trigger("focus"),e.addClass("ui-state-active"),this._isOpen=!0,this._trigger("open")}},close:function(){if(!1!==this._trigger("beforeclose")){var e=this.options,t=e.hide,i=this.speed,n=[];f.isArray(e.hide)&&(t=e.hide[0],i=e.hide[1]||this.speed),t&&(n=[t,i]),f.fn.hide.apply(this.menu,n),this.button.removeClass("ui-state-active").trigger("blur").trigger("mouseleave"),this._isOpen=!1,this._trigger("close")}},enable:function(){this._toggleDisabled(!1)},disable:function(){this._toggleDisabled(!0)},checkAll:function(){this._toggleChecked(!0),this._trigger("checkAll")},uncheckAll:function(){this._toggleChecked(!1),this._trigger("uncheckAll")},getChecked:function(){return this.menu.find("input").filter(":checked")},destroy:function(){return f.Widget.prototype.destroy.call(this),this.button.remove(),this.menu.remove(),this.element.show(),this},isOpen:function(){return this._isOpen},widget:function(){return this.menu},getButton:function(){return this.button},_setOption:function(e,t){var i=this.menu;switch(e){case"header":i.find("div.ui-multiselect-header")[t?"show":"hide"]();break;case"checkAllText":i.find("a.ui-multiselect-all span").eq(-1).text(t);break;case"uncheckAllText":i.find("a.ui-multiselect-none span").eq(-1).text(t);break;case"height":i.find("ul").last().height(parseInt(t,10));break;case"minWidth":this.options[e]=parseInt(t,10),this._setButtonWidth(),this._setMenuWidth();break;case"selectedText":case"selectedList":case"noneSelectedText":this.options[e]=t,this.update();break;case"classes":i.add(this.button).removeClass(this.options.classes).addClass(t);break;case"multiple":i.toggleClass("ui-multiselect-single",!t),this.options.multiple=t,this.element[0].multiple=t,this.refresh()}f.Widget.prototype._setOption.apply(this,arguments)}})}(jQuery),function(n){"object"==typeof module&&module.exports===n&&(n=module.exports=V),n.SEMVER_SPEC_VERSION="2.0.0";var s=256,r=Number.MAX_SAFE_INTEGER||9007199254740991,l=n.re=[],e=n.src=[],t=0,i=t++;e[i]="0|[1-9]\\d*";var o=t++;e[o]="[0-9]+";var a=t++;e[a]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var c=t++;e[c]="("+e[i]+")\\.("+e[i]+")\\.("+e[i]+")";var h=t++;e[h]="("+e[o]+")\\.("+e[o]+")\\.("+e[o]+")";var u=t++;e[u]="(?:"+e[i]+"|"+e[a]+")";var d=t++;e[d]="(?:"+e[o]+"|"+e[a]+")";var g=t++;e[g]="(?:-("+e[u]+"(?:\\."+e[u]+")*))";var f=t++;e[f]="(?:-?("+e[d]+"(?:\\."+e[d]+")*))";var p=t++;e[p]="[0-9A-Za-z-]+";var m=t++;e[m]="(?:\\+("+e[p]+"(?:\\."+e[p]+")*))";var C=t++,A="v?"+e[c]+e[g]+"?"+e[m]+"?";e[C]="^"+A+"$";var v="[v=\\s]*"+e[h]+e[f]+"?"+e[m]+"?",b=t++;e[b]="^"+v+"$";var y=t++;e[y]="((?:<|>)?=?)";var I=t++;e[I]=e[o]+"|x|X|\\*";var w=t++;e[w]=e[i]+"|x|X|\\*";var _=t++;e[_]="[v=\\s]*("+e[w]+")(?:\\.("+e[w]+")(?:\\.("+e[w]+")(?:"+e[g]+")?"+e[m]+"?)?)?";var x=t++;e[x]="[v=\\s]*("+e[I]+")(?:\\.("+e[I]+")(?:\\.("+e[I]+")(?:"+e[f]+")?"+e[m]+"?)?)?";var k=t++;e[k]="^"+e[y]+"\\s*"+e[_]+"$";var E=t++;e[E]="^"+e[y]+"\\s*"+e[x]+"$";var F=t++;e[F]="(?:~>?)";var D=t++;e[D]="(\\s*)"+e[F]+"\\s+",l[D]=new RegExp(e[D],"g");var S=t++;e[S]="^"+e[F]+e[_]+"$";var T=t++;e[T]="^"+e[F]+e[x]+"$";var B=t++;e[B]="(?:\\^)";var $=t++;e[$]="(\\s*)"+e[B]+"\\s+",l[$]=new RegExp(e[$],"g");var M=t++;e[M]="^"+e[B]+e[_]+"$";var L=t++;e[L]="^"+e[B]+e[x]+"$";var R=t++;e[R]="^"+e[y]+"\\s*("+v+")$|^$";var N=t++;e[N]="^"+e[y]+"\\s*("+A+")$|^$";var O=t++;e[O]="(\\s*)"+e[y]+"\\s*("+v+"|"+e[_]+")",l[O]=new RegExp(e[O],"g");var P=t++;e[P]="^\\s*("+e[_]+")\\s+-\\s+("+e[_]+")\\s*$";var j=t++;e[j]="^\\s*("+e[x]+")\\s+-\\s+("+e[x]+")\\s*$";var H=t++;e[H]="(<|>)?=?\\s*\\*";for(var z=0;z<34;z++)l[z]||(l[z]=new RegExp(e[z]));function W(e,t){if(e instanceof V)return e;if("string"!=typeof e)return null;if(e.length>s)return null;if(!(t?l[b]:l[C]).test(e))return null;try{return new V(e,t)}catch(e){return null}}function V(e,t){if(e instanceof V){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>s)throw new TypeError("version is longer than "+s+" characters");if(!(this instanceof V))return new V(e,t);this.loose=t;var i=e.trim().match(t?l[b]:l[C]);if(!i)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(0<=t&&t<r)return t}return e}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}n.parse=W,n.valid=function(e,t){var i=W(e,t);return i?i.version:null},n.clean=function(e,t){var i=W(e.trim().replace(/^[=v]+/,""),t);return i?i.version:null},(n.SemVer=V).prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},V.prototype.inspect=function(){return'<SemVer "'+this+'">'},V.prototype.toString=function(){return this.version},V.prototype.compare=function(e){return e instanceof V||(e=new V(e,this.loose)),this.compareMain(e)||this.comparePre(e)},V.prototype.compareMain=function(e){return e instanceof V||(e=new V(e,this.loose)),q(this.major,e.major)||q(this.minor,e.minor)||q(this.patch,e.patch)},V.prototype.comparePre=function(e){if(e instanceof V||(e=new V(e,this.loose)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var i=this.prerelease[t],n=e.prerelease[t];if(void 0===i&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(i!==n)return q(i,n)}while(++t)},V.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var i=this.prerelease.length;0<=--i;)"number"==typeof this.prerelease[i]&&(this.prerelease[i]++,i=-2);-1===i&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this},n.inc=function(e,t,i,n){"string"==typeof i&&(n=i,i=void 0);try{return new V(e,i).inc(t,n).version}catch(e){return null}},n.diff=function(e,t){{if(X(e,t))return null;var i=W(e),n=W(t);if(i.prerelease.length||n.prerelease.length){for(var s in i)if(("major"===s||"minor"===s||"patch"===s)&&i[s]!==n[s])return"pre"+s;return"prerelease"}for(var s in i)if(("major"===s||"minor"===s||"patch"===s)&&i[s]!==n[s])return s}},n.compareIdentifiers=q;var U=/^[0-9]+$/;function q(e,t){var i=U.test(e),n=U.test(t);return i&&n&&(e=+e,t=+t),i&&!n?-1:n&&!i?1:e<t?-1:t<e?1:0}function K(e,t,i){return new V(e,i).compare(t)}function G(e,t,i){return K(t,e,i)}function Y(e,t,i){return 0<K(e,t,i)}function J(e,t,i){return K(e,t,i)<0}function X(e,t,i){return 0===K(e,t,i)}function Z(e,t,i){return 0!==K(e,t,i)}function Q(e,t,i){return 0<=K(e,t,i)}function ee(e,t,i){return K(e,t,i)<=0}function te(e,t,i,n){var s;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof i&&(i=i.version),s=e===i;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof i&&(i=i.version),s=e!==i;break;case"":case"=":case"==":s=X(e,i,n);break;case"!=":s=Z(e,i,n);break;case">":s=Y(e,i,n);break;case">=":s=Q(e,i,n);break;case"<":s=J(e,i,n);break;case"<=":s=ee(e,i,n);break;default:throw new TypeError("Invalid operator: "+t)}return s}function ie(e,t){if(e instanceof ie){if(e.loose===t)return e;e=e.value}if(!(this instanceof ie))return new ie(e,t);this.loose=t,this.parse(e),this.semver===ne?this.value="":this.value=this.operator+this.semver.version}n.rcompareIdentifiers=function(e,t){return q(t,e)},n.major=function(e,t){return new V(e,t).major},n.minor=function(e,t){return new V(e,t).minor},n.patch=function(e,t){return new V(e,t).patch},n.compare=K,n.compareLoose=function(e,t){return K(e,t,!0)},n.rcompare=G,n.sort=function(e,i){return e.sort(function(e,t){return n.compare(e,t,i)})},n.rsort=function(e,i){return e.sort(function(e,t){return n.rcompare(e,t,i)})},n.gt=Y,n.lt=J,n.eq=X,n.neq=Z,n.gte=Q,n.lte=ee,n.cmp=te,n.Comparator=ie;var ne={};function se(e,t){if(e instanceof se&&e.loose===t)return e;if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function re(e){return!e||"x"===e.toLowerCase()||"*"===e}function oe(e,t,i,n,s,r,o,a,l,c,h,u,d){return((t=re(i)?"":re(n)?">="+i+".0.0":re(s)?">="+i+"."+n+".0":">="+t)+" "+(a=re(l)?"":re(c)?"<"+(+l+1)+".0.0":re(h)?"<"+l+"."+(+c+1)+".0":u?"<="+l+"."+c+"."+h+"-"+u:"<="+a)).trim()}function ae(e,t){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length){for(i=0;i<e.length;i++)if(e[i].semver!==ne&&0<e[i].semver.prerelease.length){var n=e[i].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch)return!0}return!1}return!0}function le(e,t,i){try{t=new se(t,i)}catch(e){return!1}return t.test(e)}function ce(e,t,i,n){var s,r,o,a,l;switch(e=new V(e,n),t=new se(t,n),i){case">":s=Y,r=ee,o=J,a=">",l=">=";break;case"<":s=J,r=Q,o=Y,a="<",l="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,n))return!1;for(var c=0;c<t.set.length;++c){var h=t.set[c],u=null,d=null;if(h.forEach(function(e){e.semver===ne&&(e=new ie(">=0.0.0")),u=u||e,d=d||e,s(e.semver,u.semver,n)?u=e:o(e.semver,d.semver,n)&&(d=e)}),u.operator===a||u.operator===l)return!1;if((!d.operator||d.operator===a)&&r(e,d.semver))return!1;if(d.operator===l&&o(e,d.semver))return!1}return!0}ie.prototype.parse=function(e){var t=this.loose?l[R]:l[N],i=e.match(t);if(!i)throw new TypeError("Invalid comparator: "+e);this.operator=i[1],"="===this.operator&&(this.operator=""),i[2]?this.semver=new V(i[2],this.loose):this.semver=ne},ie.prototype.inspect=function(){return'<SemVer Comparator "'+this+'">'},ie.prototype.toString=function(){return this.value},ie.prototype.test=function(e){return this.semver===ne||("string"==typeof e&&(e=new V(e,this.loose)),te(e,this.operator,this.semver,this.loose))},(n.Range=se).prototype.inspect=function(){return'<SemVer Range "'+this.range+'">'},se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var a=this.loose;e=e.trim();var t=a?l[j]:l[P];e=(e=(e=(e=(e=e.replace(t,oe)).replace(l[O],"$1$2$3")).replace(l[D],"$1~")).replace(l[$],"$1^")).split(/\s+/).join(" ");var i=a?l[R]:l[N],n=e.split(" ").map(function(e){return o=t=a,s=e.trim().split(/\s+/).map(function(e){return t=e,i=o?l[L]:l[M],t.replace(i,function(e,t,i,n,s){return re(t)?"":re(i)?">="+t+".0.0 <"+(+t+1)+".0.0":re(n)?"0"===t?">="+t+"."+i+".0 <"+t+"."+(+i+1)+".0":">="+t+"."+i+".0 <"+(+t+1)+".0.0":s?("-"!==s.charAt(0)&&(s="-"+s),"0"===t?"0"===i?">="+t+"."+i+"."+n+s+" <"+t+"."+i+"."+(+n+1):">="+t+"."+i+"."+n+s+" <"+t+"."+(+i+1)+".0":">="+t+"."+i+"."+n+s+" <"+(+t+1)+".0.0"):"0"===t?"0"===i?">="+t+"."+i+"."+n+" <"+t+"."+i+"."+(+n+1):">="+t+"."+i+"."+n+" <"+t+"."+(+i+1)+".0":">="+t+"."+i+"."+n+" <"+(+t+1)+".0.0"});var t,i}).join(" "),r=t,i=s.trim().split(/\s+/).map(function(e){return t=e,i=r?l[T]:l[S],t.replace(i,function(e,t,i,n,s){return re(t)?"":re(i)?">="+t+".0.0 <"+(+t+1)+".0.0":re(n)?">="+t+"."+i+".0 <"+t+"."+(+i+1)+".0":s?("-"!==s.charAt(0)&&(s="-"+s),">="+t+"."+i+"."+n+s+" <"+t+"."+(+i+1)+".0"):">="+t+"."+i+"."+n+" <"+t+"."+(+i+1)+".0"});var t,i}).join(" "),n=t,i.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var i=t?l[E]:l[k];return e.replace(i,function(e,t,i,n,s,r){var o=re(i),a=o||re(n),l=a||re(s),c=l;return"="===t&&c&&(t=""),o?e=">"===t||"<"===t?"<0.0.0":"*":t&&c?(a&&(n=0),l&&(s=0),">"===t?(t=">=",a?(i=+i+1,s=n=0):l&&(n=+n+1,s=0)):"<="===t&&(t="<",a?i=+i+1:n=+n+1),e=t+i+"."+n+"."+s):a?e=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(e=">="+i+"."+n+".0 <"+i+"."+(+n+1)+".0"),e})}(e,n)}).join(" ").trim().replace(l[H],"");var t,i,n,s,r,o}).join(" ").split(/\s+/);return this.loose&&(n=n.filter(function(e){return!!e.match(i)})),n=n.map(function(e){return new ie(e,a)})},n.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new V(e,this.loose));for(var t=0;t<this.set.length;t++)if(ae(this.set[t],e))return!0;return!1},n.satisfies=le,n.maxSatisfying=function(e,t,i){return e.filter(function(e){return le(e,t,i)}).sort(function(e,t){return G(e,t,i)})[0]||null},n.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},n.ltr=function(e,t,i){return ce(e,t,"<",i)},n.gtr=function(e,t,i){return ce(e,t,">",i)},n.outside=ce,"function"==typeof define&&define.amd&&define(n)}("object"==typeof exports?exports:"function"==typeof define&&define.amd?{}:semver={}),function(){var e=function(){return this}();if(!e&&"undefined"!=typeof window&&(e=window),"undefined"==typeof requirejs){var r=function(e,t,i){"string"==typeof e?(2==arguments.length&&(i=t),r.modules[e]||(r.payloads[e]=i,r.modules[e]=null)):r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace())};r.modules={},r.payloads={};var t,i,o=function(e,t,i){if("string"==typeof t){var n=c(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],r=0,o=t.length;r<o;++r){var a=c(e,t[r]);if(null==a&&l.original)return;s.push(a)}return i&&i.apply(null,s)||!0}},l=function(e,t){var i=o("",e,t);return null==i&&l.original?l.original.apply(this,arguments):i},a=function(e,t){if(-1!==t.indexOf("!")){var i=t.split("!");return a(e,i[0])+"!"+a(e,i[1])}if("."==t.charAt(0))for(t=e.split("/").slice(0,-1).join("/")+"/"+t;-1!==t.indexOf(".")&&n!=t;){var n=t;t=t.replace(/\/\.\//,"/").replace(/[^\/]+\/\.\.\//,"")}return t},c=function(e,i){i=a(e,i);var t=r.modules[i];if(!t){if("function"==typeof(t=r.payloads[i])){var n={},s={id:i,uri:"",exports:n,packaged:!0};n=t(function(e,t){return o(i,e,t)},n,s)||s.exports,r.modules[i]=n,delete r.payloads[i]}t=r.modules[i]=n||t}return t};i=e,(t="")&&(e[t]||(e[t]={}),i=e[t]),i.define&&i.define.packaged||(r.original=i.define,i.define=r,i.define.packaged=!0),i.require&&i.require.packaged||(l.original=i.require,i.require=l,i.require.packaged=!0)}}(),define("ace/lib/regexp",["require","exports","module"],function(e,t,i){"use strict";var n,o={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},a=void 0===o.exec.call(/()??/,"")[1],l=(n=/^/g,o.test.call(n,""),!n.lastIndex);l&&a||(RegExp.prototype.exec=function(e){var t,i,n,s=o.exec.apply(this,arguments);if("string"==typeof e&&s){if(!a&&1<s.length&&-1<function(e,t,i){if(Array.prototype.indexOf)return e.indexOf(t,i);for(var n=i||0;n<e.length;n++)if(e[n]===t)return n;return-1}(s,"")&&(i=RegExp(this.source,o.replace.call(((n=this).global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.extended?"x":"")+(n.sticky?"y":""),"g","")),o.replace.call(e.slice(s.index),i,function(){for(var e=1;e<arguments.length-2;e++)void 0===arguments[e]&&(s[e]=void 0)})),this._xregexp&&this._xregexp.captureNames)for(var r=1;r<s.length;r++)(t=this._xregexp.captureNames[r-1])&&(s[t]=s[r]);!l&&this.global&&!s[0].length&&this.lastIndex>s.index&&this.lastIndex--}return s},l||(RegExp.prototype.test=function(e){var t=o.exec.call(this,e);return t&&this.global&&!t[0].length&&this.lastIndex>t.index&&this.lastIndex--,!!t}))}),define("ace/lib/es5-shim",["require","exports","module"],function(e,t,i){function r(){}function n(e){try{return Object.defineProperty(e,"sentinel",{}),"sentinel"in e}catch(e){}}function s(e){return(e=+e)!=e?e=0:0!==e&&e!==1/0&&e!==-1/0&&(e=(0<e||-1)*Math.floor(Math.abs(e))),e}Function.prototype.bind||(Function.prototype.bind=function(t){var i=this;if("function"!=typeof i)throw new TypeError("Function.prototype.bind called on incompatible "+i);var n=f.call(arguments,1),s=function(){if(this instanceof s){var e=i.apply(this,n.concat(f.call(arguments)));return Object(e)===e?e:this}return i.apply(t,n.concat(f.call(arguments)))};return i.prototype&&(r.prototype=i.prototype,s.prototype=new r,r.prototype=null),s});var o,a,l,c,h,u=Function.prototype.call,d=Array.prototype,g=Object.prototype,f=d.slice,p=u.bind(g.toString),m=u.bind(g.hasOwnProperty);if((h=m(g,"__defineGetter__"))&&(o=u.bind(g.__defineGetter__),a=u.bind(g.__defineSetter__),l=u.bind(g.__lookupGetter__),c=u.bind(g.__lookupSetter__)),2!=[1,2].splice(0).length)if(function(){function e(e){var t=new Array(e+2);return t[0]=t[1]=0,t}var t,i=[];if(i.splice.apply(i,e(20)),i.splice.apply(i,e(26)),t=i.length,i.splice(5,0,"XXX"),i.length,t+1==i.length)return!0}()){var C=Array.prototype.splice;Array.prototype.splice=function(e,t){return arguments.length?C.apply(this,[void 0===e?0:e,void 0===t?this.length-e:t].concat(f.call(arguments,2))):[]}}else Array.prototype.splice=function(e,t){var i=this.length;0<e?i<e&&(e=i):null==e?e=0:e<0&&(e=Math.max(i+e,0)),e+t<i||(t=i-e);var n=this.slice(e,e+t),s=f.call(arguments,2),r=s.length;if(e===i)r&&this.push.apply(this,s);else{var o=Math.min(t,i-e),a=e+o,l=a+r-o,c=i-a,h=i-o;if(l<a)for(var u=0;u<c;++u)this[l+u]=this[a+u];else if(a<l)for(u=c;u--;)this[l+u]=this[a+u];if(r&&e===h)this.length=h,this.push.apply(this,s);else for(this.length=h+r,u=0;u<r;++u)this[e+u]=s[u]}return n};Array.isArray||(Array.isArray=function(e){return"[object Array]"==p(e)});var A,v,b=Object("a"),y="a"!=b[0]||!(0 in b);if(Array.prototype.forEach||(Array.prototype.forEach=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=arguments[1],s=-1,r=i.length>>>0;if("[object Function]"!=p(e))throw new TypeError;for(;++s<r;)s in i&&e.call(n,i[s],s,t)}),Array.prototype.map||(Array.prototype.map=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=i.length>>>0,s=Array(n),r=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var o=0;o<n;o++)o in i&&(s[o]=e.call(r,i[o],o,t));return s}),Array.prototype.filter||(Array.prototype.filter=function(e){var t,i=B(this),n=y&&"[object String]"==p(this)?this.split(""):i,s=n.length>>>0,r=[],o=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var a=0;a<s;a++)a in n&&(t=n[a],e.call(o,t,a,i)&&r.push(t));return r}),Array.prototype.every||(Array.prototype.every=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=i.length>>>0,s=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var r=0;r<n;r++)if(r in i&&!e.call(s,i[r],r,t))return!1;return!0}),Array.prototype.some||(Array.prototype.some=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=i.length>>>0,s=arguments[1];if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");for(var r=0;r<n;r++)if(r in i&&e.call(s,i[r],r,t))return!0;return!1}),Array.prototype.reduce||(Array.prototype.reduce=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=i.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!n&&1==arguments.length)throw new TypeError("reduce of empty array with no initial value");var s,r=0;if(2<=arguments.length)s=arguments[1];else for(;;){if(r in i){s=i[r++];break}if(++r>=n)throw new TypeError("reduce of empty array with no initial value")}for(;r<n;r++)r in i&&(s=e.call(void 0,s,i[r],r,t));return s}),Array.prototype.reduceRight||(Array.prototype.reduceRight=function(e){var t=B(this),i=y&&"[object String]"==p(this)?this.split(""):t,n=i.length>>>0;if("[object Function]"!=p(e))throw new TypeError(e+" is not a function");if(!n&&1==arguments.length)throw new TypeError("reduceRight of empty array with no initial value");var s,r=n-1;if(2<=arguments.length)s=arguments[1];else for(;;){if(r in i){s=i[r--];break}if(--r<0)throw new TypeError("reduceRight of empty array with no initial value")}for(;r in this&&(s=e.call(void 0,s,i[r],r,t)),r--;);return s}),Array.prototype.indexOf&&-1==[0,1].indexOf(1,2)||(Array.prototype.indexOf=function(e){var t=y&&"[object String]"==p(this)?this.split(""):B(this),i=t.length>>>0;if(!i)return-1;var n=0;for(1<arguments.length&&(n=s(arguments[1])),n=0<=n?n:Math.max(0,i+n);n<i;n++)if(n in t&&t[n]===e)return n;return-1}),Array.prototype.lastIndexOf&&-1==[0,1].lastIndexOf(0,-3)||(Array.prototype.lastIndexOf=function(e){var t=y&&"[object String]"==p(this)?this.split(""):B(this),i=t.length>>>0;if(!i)return-1;var n=i-1;for(1<arguments.length&&(n=Math.min(n,s(arguments[1]))),n=0<=n?n:i-Math.abs(n);0<=n;n--)if(n in t&&e===t[n])return n;return-1}),Object.getPrototypeOf||(Object.getPrototypeOf=function(e){return e.__proto__||(e.constructor?e.constructor.prototype:g)}),!Object.getOwnPropertyDescriptor){Object.getOwnPropertyDescriptor=function(e,t){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.getOwnPropertyDescriptor called on a non-object: "+e);if(m(e,t)){var i;if(i={enumerable:!0,configurable:!0},h){var n=e.__proto__;e.__proto__=g;var s=l(e,t),r=c(e,t);if(e.__proto__=n,s||r)return s&&(i.get=s),r&&(i.set=r),i}return i.value=e[t],i}}}(Object.getOwnPropertyNames||(Object.getOwnPropertyNames=function(e){return Object.keys(e)}),Object.create)||(A=null===Object.prototype.__proto__?function(){return{__proto__:null}}:function(){var e={};for(var t in e)e[t]=null;return e.constructor=e.hasOwnProperty=e.propertyIsEnumerable=e.isPrototypeOf=e.toLocaleString=e.toString=e.valueOf=e.__proto__=null,e},Object.create=function(e,t){var i;if(null===e)i=A();else{if("object"!=typeof e)throw new TypeError("typeof prototype["+typeof e+"] != 'object'");var n=function(){};n.prototype=e,(i=new n).__proto__=e}return void 0!==t&&Object.defineProperties(i,t),i});if(Object.defineProperty){var I=n({}),w="undefined"==typeof document||n(document.createElement("div"));if(!I||!w)var _=Object.defineProperty}if(!Object.defineProperty||_){Object.defineProperty=function(e,t,i){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.defineProperty called on non-object: "+e);if("object"!=typeof i&&"function"!=typeof i||null===i)throw new TypeError("Property description must be an object: "+i);if(_)try{return _.call(Object,e,t,i)}catch(e){}if(m(i,"value"))if(h&&(l(e,t)||c(e,t))){var n=e.__proto__;e.__proto__=g,delete e[t],e[t]=i.value,e.__proto__=n}else e[t]=i.value;else{if(!h)throw new TypeError("getters & setters can not be defined on this javascript engine");m(i,"get")&&o(e,t,i.get),m(i,"set")&&a(e,t,i.set)}return e}}Object.defineProperties||(Object.defineProperties=function(e,t){for(var i in t)m(t,i)&&Object.defineProperty(e,i,t[i]);return e}),Object.seal||(Object.seal=function(e){return e}),Object.freeze||(Object.freeze=function(e){return e});try{Object.freeze(function(){})}catch(e){Object.freeze=(v=Object.freeze,function(e){return"function"==typeof e?e:v(e)})}if(Object.preventExtensions||(Object.preventExtensions=function(e){return e}),Object.isSealed||(Object.isSealed=function(e){return!1}),Object.isFrozen||(Object.isFrozen=function(e){return!1}),Object.isExtensible||(Object.isExtensible=function(e){if(Object(e)===e)throw new TypeError;for(var t="";m(e,t);)t+="?";e[t]=!0;var i=m(e,t);return delete e[t],i}),!Object.keys){var x=!0,k=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],E=k.length;for(var F in{toString:null})x=!1;Object.keys=function(e){if("object"!=typeof e&&"function"!=typeof e||null===e)throw new TypeError("Object.keys called on a non-object");var t=[];for(var i in e)m(e,i)&&t.push(i);if(x)for(var n=0,s=E;n<s;n++){var r=k[n];m(e,r)&&t.push(r)}return t}}Date.now||(Date.now=function(){return(new Date).getTime()});var D="\t\n\v\f\r    \u2028\u2029\ufeff";if(!String.prototype.trim||D.trim()){D="["+D+"]";var S=new RegExp("^"+D+D+"*"),T=new RegExp(D+D+"*$");String.prototype.trim=function(){return String(this).replace(S,"").replace(T,"")}}var B=function(e){if(null==e)throw new TypeError("can't convert "+e+" to object");return Object(e)}}),define("ace/lib/fixoldbrowsers",["require","exports","module","ace/lib/regexp","ace/lib/es5-shim"],function(e,t,i){"use strict";e("./regexp"),e("./es5-shim")}),define("ace/lib/dom",["require","exports","module"],function(e,a,t){"use strict";var s="http://www.w3.org/1999/xhtml";a.getDocumentHead=function(e){return e||(e=document),e.head||e.getElementsByTagName("head")[0]||e.documentElement},a.createElement=function(e,t){return document.createElementNS?document.createElementNS(t||s,e):document.createElement(e)},a.hasCssClass=function(e,t){return-1!==(e.className||"").split(/\s+/g).indexOf(t)},a.addCssClass=function(e,t){a.hasCssClass(e,t)||(e.className+=" "+t)},a.removeCssClass=function(e,t){for(var i=e.className.split(/\s+/g);;){var n=i.indexOf(t);if(-1==n)break;i.splice(n,1)}e.className=i.join(" ")},a.toggleCssClass=function(e,t){for(var i=e.className.split(/\s+/g),n=!0;;){var s=i.indexOf(t);if(-1==s)break;n=!1,i.splice(s,1)}return n&&i.push(t),e.className=i.join(" "),n},a.setCssClass=function(e,t,i){i?a.addCssClass(e,t):a.removeCssClass(e,t)},a.hasCssString=function(e,t){var i,n=0;if((t=t||document).createStyleSheet&&(i=t.styleSheets)){for(;n<i.length;)if(i[n++].owningElement.id===e)return!0}else if(i=t.getElementsByTagName("style"))for(;n<i.length;)if(i[n++].id===e)return!0;return!1},a.importCssString=function(e,t,i){if(i=i||document,t&&a.hasCssString(t,i))return null;var n;t&&(e+="\n/*# sourceURL=ace/css/"+t+" */"),i.createStyleSheet?((n=i.createStyleSheet()).cssText=e,t&&(n.owningElement.id=t)):((n=i.createElementNS?i.createElementNS(s,"style"):i.createElement("style")).appendChild(i.createTextNode(e)),t&&(n.id=t),a.getDocumentHead(i).appendChild(n))},a.importCssStylsheet=function(e,t){if(t.createStyleSheet)t.createStyleSheet(e);else{var i=a.createElement("link");i.rel="stylesheet",i.href=e,a.getDocumentHead(t).appendChild(i)}},a.getInnerWidth=function(e){return parseInt(a.computedStyle(e,"paddingLeft"),10)+parseInt(a.computedStyle(e,"paddingRight"),10)+e.clientWidth},a.getInnerHeight=function(e){return parseInt(a.computedStyle(e,"paddingTop"),10)+parseInt(a.computedStyle(e,"paddingBottom"),10)+e.clientHeight},a.scrollbarWidth=function(e){var t=a.createElement("ace_inner");t.style.width="100%",t.style.minWidth="0px",t.style.height="200px",t.style.display="block";var i=a.createElement("ace_outer"),n=i.style;n.position="absolute",n.left="-10000px",n.overflow="hidden",n.width="200px",n.minWidth="0px",n.height="150px",n.display="block",i.appendChild(t);var s=e.documentElement;s.appendChild(i);var r=t.offsetWidth;n.overflow="scroll";var o=t.offsetWidth;return r==o&&(o=i.clientWidth),s.removeChild(i),r-o},"undefined"!=typeof document?(void 0!==window.pageYOffset?(a.getPageScrollTop=function(){return window.pageYOffset},a.getPageScrollLeft=function(){return window.pageXOffset}):(a.getPageScrollTop=function(){return document.body.scrollTop},a.getPageScrollLeft=function(){return document.body.scrollLeft}),window.getComputedStyle?a.computedStyle=function(e,t){return t?(window.getComputedStyle(e,"")||{})[t]||"":window.getComputedStyle(e,"")||{}}:a.computedStyle=function(e,t){return t?e.currentStyle[t]:e.currentStyle},a.setInnerHtml=function(e,t){var i=e.cloneNode(!1);return i.innerHTML=t,e.parentNode.replaceChild(i,e),i},"textContent"in document.documentElement?(a.setInnerText=function(e,t){e.textContent=t},a.getInnerText=function(e){return e.textContent}):(a.setInnerText=function(e,t){e.innerText=t},a.getInnerText=function(e){return e.innerText}),a.getParentWindow=function(e){return e.defaultView||e.parentWindow}):a.importCssString=function(){}}),define("ace/lib/oop",["require","exports","module"],function(e,i,t){"use strict";i.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},i.mixin=function(e,t){for(var i in t)e[i]=t[i];return e},i.implement=function(e,t){i.mixin(e,t)}}),define("ace/lib/keys",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop"],function(e,t,i){"use strict";e("./fixoldbrowsers");var n=e("./oop"),s=function(){var e,t,i={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"}};for(t in i.FUNCTION_KEYS)e=i.FUNCTION_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);for(t in i.PRINTABLE_KEYS)e=i.PRINTABLE_KEYS[t].toLowerCase(),i[e]=parseInt(t,10);return n.mixin(i,i.MODIFIER_KEYS),n.mixin(i,i.PRINTABLE_KEYS),n.mixin(i,i.FUNCTION_KEYS),i.enter=i.return,i.escape=i.esc,i.del=i.delete,i[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)i.KEY_MODS[t]=e.filter(function(e){return t&i.KEY_MODS[e]}).join("-")+"-"}(),i.KEY_MODS[0]="",i.KEY_MODS[-1]="input-",i}();n.mixin(t,s),t.keyCodeToString=function(e){var t=s[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),define("ace/lib/useragent",["require","exports","module"],function(e,t,i){"use strict";if(t.OS={LINUX:"LINUX",MAC:"MAC",WINDOWS:"WINDOWS"},t.getOS=function(){return t.isMac?t.OS.MAC:t.isLinux?t.OS.LINUX:t.OS.WINDOWS},"object"==typeof navigator){var n=(navigator.platform.match(/mac|win|linux/i)||["other"])[0].toLowerCase(),s=navigator.userAgent;t.isWin="win"==n,t.isMac="mac"==n,t.isLinux="linux"==n,t.isIE="Microsoft Internet Explorer"==navigator.appName||0<=navigator.appName.indexOf("MSAppHost")?parseFloat((s.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((s.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=(window.Controllers||window.controllers)&&"Gecko"===window.navigator.product,t.isOldGecko=t.isGecko&&parseInt((s.match(/rv\:(\d+)/)||[])[1],10)<4,t.isOpera=window.opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(s.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(s.split(" Chrome/")[1])||void 0,t.isAIR=0<=s.indexOf("AdobeAIR"),t.isIPad=0<=s.indexOf("iPad"),t.isTouchPad=0<=s.indexOf("TouchPad"),t.isChromeOS=0<=s.indexOf(" CrOS ")}}),define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,h,t){"use strict";function r(e,t,i){var n=l(t);if(!u.isMac&&c){if((c[91]||c[92])&&(n|=8),c.altGr){if(3==(3&n))return;c.altGr=0}if(18===i||17===i){var s="location"in t?t.location:t.keyLocation;if(17===i&&1===s)1==c[i]&&(d=t.timeStamp);else if(18===i&&3===n&&2===s){t.timeStamp-d<50&&(c.altGr=!0)}}}if((i in a.MODIFIER_KEYS&&(i=-1),8&n&&(91===i||93===i)&&(i=-1),!n&&13===i)&&(3===(s="location"in t?t.location:t.keyLocation)&&(e(t,n,-i),t.defaultPrevented)))return;if(u.isChromeOS&&8&n){if(e(t,n,i),t.defaultPrevented)return;n&=-9}return!!(n||i in a.FUNCTION_KEYS||i in a.PRINTABLE_KEYS)&&e(t,n,i)}function o(e){c=Object.create(null)}var a=e("./keys"),u=e("./useragent");h.addListener=function(e,t,i){if(e.addEventListener)return e.addEventListener(t,i,!1);if(e.attachEvent){var n=function(){i.call(e,window.event)};i._wrapper=n,e.attachEvent("on"+t,n)}},h.removeListener=function(e,t,i){if(e.removeEventListener)return e.removeEventListener(t,i,!1);e.detachEvent&&e.detachEvent("on"+t,i._wrapper||i)},h.stopEvent=function(e){return h.stopPropagation(e),h.preventDefault(e),!1},h.stopPropagation=function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},h.preventDefault=function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},h.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||u.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.preventDefault?e.button:{1:0,2:2,4:1}[e.button]},h.capture=function(e,t,i){function n(e){t&&t(e),i&&i(e),h.removeListener(document,"mousemove",t,!0),h.removeListener(document,"mouseup",n,!0),h.removeListener(document,"dragstart",n,!0)}return h.addListener(document,"mousemove",t,!0),h.addListener(document,"mouseup",n,!0),h.addListener(document,"dragstart",n,!0),n},h.addTouchMoveListener=function(e,i){var n,s;"ontouchmove"in e&&(h.addListener(e,"touchstart",function(e){var t=e.changedTouches[0];n=t.clientX,s=t.clientY}),h.addListener(e,"touchmove",function(e){var t=e.changedTouches[0];e.wheelX=-(t.clientX-n)/1,e.wheelY=-(t.clientY-s)/1,n=t.clientX,s=t.clientY,i(e)}))},h.addMouseWheelListener=function(e,t){"onmousewheel"in e?h.addListener(e,"mousewheel",function(e){void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/8,e.wheelY=-e.wheelDeltaY/8):(e.wheelX=0,e.wheelY=-e.wheelDelta/8),t(e)}):"onwheel"in e?h.addListener(e,"wheel",function(e){switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=.35*e.deltaX||0,e.wheelY=.35*e.deltaY||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0)}t(e)}):h.addListener(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)})},h.addMultiMouseDownListener=function(e,i,n,s){var r,o,a,l=0,c={2:"dblclick",3:"tripleclick",4:"quadclick"};h.addListener(e,"mousedown",function(e){if(0!==h.getButton(e)?l=0:1<e.detail?4<++l&&(l=1):l=1,u.isIE){var t=5<Math.abs(e.clientX-r)||5<Math.abs(e.clientY-o);a&&!t||(l=1),a&&clearTimeout(a),a=setTimeout(function(){a=null},i[l-1]||600),1==l&&(r=e.clientX,o=e.clientY)}if(e._clicks=l,n[s]("mousedown",e),4<l)l=0;else if(1<l)return n[s](c[l],e)}),u.isOldIE&&h.addListener(e,"dblclick",function(e){l=2,a&&clearTimeout(a),a=setTimeout(function(){a=null},i[l-1]||600),n[s]("mousedown",e),n[s](c[l],e)})};var l=!u.isMac||!u.isOpera||"KeyboardEvent"in window?function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)}:function(e){return 0|(e.metaKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.ctrlKey?8:0)};h.getModifierString=function(e){return a.KEY_MODS[l(e)]};var c=null,d=0;if(h.addCommandKeyListener=function(e,i){var t=h.addListener;if(u.isOldGecko||u.isOpera&&!("KeyboardEvent"in window)){var n=null;t(e,"keydown",function(e){n=e.keyCode}),t(e,"keypress",function(e){return r(i,e,n)})}else{var s=null;t(e,"keydown",function(e){c[e.keyCode]=(c[e.keyCode]||0)+1;var t=r(i,e,e.keyCode);return s=e.defaultPrevented,t}),t(e,"keypress",function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(h.stopEvent(e),s=null)}),t(e,"keyup",function(e){c[e.keyCode]=null}),c||(o(),t(window,"focus",o))}},"object"==typeof window&&window.postMessage&&!u.isOldIE){h.nextTick=function(i,n){n=n||window;var s="zero-timeout-message-1";h.addListener(n,"message",function e(t){t.data==s&&(h.stopPropagation(t),h.removeListener(n,"message",e),i())}),n.postMessage(s,"*")}}h.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),h.nextFrame?h.nextFrame=h.nextFrame.bind(window):h.nextFrame=function(e){setTimeout(e,17)}}),define("ace/lib/lang",["require","exports","module"],function(e,t,i){"use strict";t.last=function(e){return e[e.length-1]},t.stringReverse=function(e){return e.split("").reverse().join("")},t.stringRepeat=function(e,t){for(var i="";0<t;)1&t&&(i+=e),(t>>=1)&&(e+=e);return i};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(s,"")},t.copyObject=function(e){var t={};for(var i in e)t[i]=e[i];return t},t.copyArray=function(e){for(var t=[],i=0,n=e.length;i<n;i++)e[i]&&"object"==typeof e[i]?t[i]=this.copyObject(e[i]):t[i]=e[i];return t},t.deepCopy=function e(t){if("object"!=typeof t||!t)return t;var i;if(Array.isArray(t)){i=[];for(var n=0;n<t.length;n++)i[n]=e(t[n]);return i}var s=t.constructor;if(s===RegExp)return t;for(var n in i=s(),t)i[n]=e(t[n]);return i},t.arrayToMap=function(e){for(var t={},i=0;i<e.length;i++)t[e[i]]=1;return t},t.createMap=function(e){var t=Object.create(null);for(var i in e)t[i]=e[i];return t},t.arrayRemove=function(e,t){for(var i=0;i<=e.length;i++)t===e[i]&&e.splice(i,1)},t.escapeRegExp=function(e){return e.replace(/([.*+?^${}()|[\]\/\\])/g,"\\$1")},t.escapeHTML=function(e){return e.replace(/&/g,"&#38;").replace(/"/g,"&#34;").replace(/'/g,"&#39;").replace(/</g,"&#60;")},t.getMatchOffsets=function(e,t){var i=[];return e.replace(t,function(e){i.push({offset:arguments[arguments.length-2],length:e.length})}),i},t.deferredCall=function(e){var t=null,i=function(){t=null,e()},n=function(e){return n.cancel(),t=setTimeout(i,e||0),n};return(n.schedule=n).call=function(){return this.cancel(),e(),n},n.cancel=function(){return clearTimeout(t),t=null,n},n.isPending=function(){return t},n},t.delayedCall=function(e,t){var i=null,n=function(){i=null,e()},s=function(e){null==i&&(i=setTimeout(n,e||t))};return s.delay=function(e){i&&clearTimeout(i),i=setTimeout(n,e||t)},(s.schedule=s).call=function(){this.cancel(),e()},s.cancel=function(){i&&clearTimeout(i),i=null},s.isPending=function(){return i},s}}),define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang"],function(e,t,i){"use strict";var M=e("../lib/event"),L=e("../lib/useragent"),R=e("../lib/dom"),N=e("../lib/lang"),O=L.isChrome<18,P=L.isIE;t.TextInput=function(e,l){function n(e){if(!a){if(a=!0,b)t=0,i=e?0:h.value.length-1;else var t=e?2:1,i=2;try{h.setSelectionRange(t,i)}catch(e){}a=!1}}function s(){a||(h.value=i,L.isWebKit&&f.schedule())}function c(){clearTimeout(B),B=setTimeout(function(){u&&(h.style.cssText=u,u=""),null==l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=!0,l.renderer.$moveTextAreaToCursor())},L.isOldIE?200:0)}var h=R.createElement("textarea");h.className="ace_text-input",L.isTouchPad&&h.setAttribute("x-palm-disable-auto-cap",!0),h.setAttribute("wrap","off"),h.setAttribute("autocorrect","off"),h.setAttribute("autocapitalize","off"),h.setAttribute("spellcheck",!1),h.style.opacity="0",L.isOldIE&&(h.style.top="-1000px"),e.insertBefore(h,e.firstChild);var i="",r=!1,o=!1,a=!1,u="",t=!0;try{var d=document.activeElement===h}catch(e){}M.addListener(h,"blur",function(e){l.onBlur(e),d=!1}),M.addListener(h,"focus",function(e){d=!0,l.onFocus(e),n()}),this.focus=function(){if(u)return h.focus();var e=h.style.top;h.style.position="fixed",h.style.top="-1000px",h.focus(),setTimeout(function(){h.style.position="","-1000px"==h.style.top&&(h.style.top=e)},0)},this.blur=function(){h.blur()},this.isFocused=function(){return d};var g=N.delayedCall(function(){d&&n(t)}),f=N.delayedCall(function(){a||(h.value=i,d&&n())});L.isWebKit||l.addEventListener("changeSelection",function(){l.selection.isEmpty()!=t&&(t=!t,g.schedule())}),s(),d&&l.onFocus();var p=function(e){return 0===e.selectionStart&&e.selectionEnd===e.value.length};if(!h.setSelectionRange&&h.createTextRange&&(h.setSelectionRange=function(e,t){var i=this.createTextRange();i.collapse(!0),i.moveStart("character",e),i.moveEnd("character",t),i.select()},p=function(e){try{var t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&t.text==e.value}),L.isOldIE){var m=!1,C=function(e){if(!m){var t=h.value;if(!a&&t&&t!=i)return e&&t==i[0]?A.schedule():(I(t),m=!0,s(),void(m=!1))}},A=N.delayedCall(C);M.addListener(h,"propertychange",C);var v={13:1,27:1};M.addListener(h,"keyup",function(e){if(a&&(!h.value||v[e.keyCode])&&setTimeout(S,0),(h.value.charCodeAt(0)||0)<129)return A.call();a?D():F()}),M.addListener(h,"keydown",function(e){A.schedule(50)})}var b=null;this.setInputHandler=function(e){b=e};var y=(this.getInputHandler=function(){return b},!1),I=function(e){b&&(e=b(e),b=null),o?(n(),e&&l.onPaste(e),o=!1):e==i.charAt(0)?y?l.execCommand("del",{source:"ace"}):l.execCommand("backspace",{source:"ace"}):(e.substring(0,2)==i?e=e.substr(2):e.charAt(0)==i.charAt(0)?e=e.substr(1):e.charAt(e.length-1)==i.charAt(0)&&(e=e.slice(0,-1)),e.charAt(e.length-1)==i.charAt(0)&&(e=e.slice(0,-1)),e&&l.onTextInput(e)),y&&(y=!1)},w=function(e,t){var i=e.clipboardData||window.clipboardData;if(i&&!O){var n=P?"Text":"text/plain";return t?!1!==i.setData(n,t):i.getData(n)}},_=function(e,t){var i=l.getCopyText();if(!i)return M.preventDefault(e);w(e,i)?(t?l.onCut():l.onCopy(),M.preventDefault(e)):(r=!0,h.value=i,h.select(),setTimeout(function(){r=!1,s(),n(),t?l.onCut():l.onCopy()}))},x=function(e){_(e,!0)},k=function(e){_(e,!1)},E=function(e){var t=w(e);"string"==typeof t?(t&&l.onPaste(t,e),L.isIE&&setTimeout(n),M.preventDefault(e)):(h.value="",o=!0)};M.addCommandKeyListener(h,l.onCommandKey.bind(l)),M.addListener(h,"select",function(e){r?r=!1:p(h)?(l.selectAll(),n()):b&&n(l.selection.isEmpty())}),M.addListener(h,"input",function(e){if(!a){var t=h.value;I(t),s()}}),M.addListener(h,"cut",x),M.addListener(h,"copy",k),M.addListener(h,"paste",E),(!("oncut"in h)||!("oncopy"in h)||!("onpaste"in h))&&M.addListener(e,"keydown",function(e){if((!L.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:k(e);break;case 86:E(e);break;case 88:x(e)}});var F=function(e){a||!l.onCompositionStart||l.$readOnly||(a={},l.onCompositionStart(),setTimeout(D,0),l.on("mousedown",S),l.selection.isEmpty()||(l.insert(""),l.session.markUndoGroup(),l.selection.clearSelection()),l.session.markUndoGroup())},D=function(){if(a&&l.onCompositionUpdate&&!l.$readOnly){var e=h.value.replace(/\x01/g,"");if(a.lastValue!==e&&(l.onCompositionUpdate(e),a.lastValue&&l.undo(),a.lastValue=e,a.lastValue)){var t=l.selection.getRange();l.insert(a.lastValue),l.session.markUndoGroup(),a.range=l.selection.getRange(),l.selection.setRange(t),l.selection.clearSelection()}}},S=function(e){if(l.onCompositionEnd&&!l.$readOnly){var t=a;a=!1;var i=setTimeout(function(){i=null;var e=h.value.replace(/\x01/g,"");a||(e==t.lastValue?s():!t.lastValue&&e&&(s(),I(e)))});b=function(e){return i&&clearTimeout(i),(e=e.replace(/\x01/g,""))==t.lastValue?"":(t.lastValue&&i&&l.undo(),e)},l.onCompositionEnd(),l.removeListener("mousedown",S),"compositionend"==e.type&&t.range&&l.selection.setRange(t.range)}},T=N.delayedCall(D,50);M.addListener(h,"compositionstart",F),L.isGecko?M.addListener(h,"text",function(){T.schedule()}):(M.addListener(h,"keyup",function(){T.schedule()}),M.addListener(h,"keydown",function(){T.schedule()})),M.addListener(h,"compositionend",S),this.getElement=function(){return h},this.setReadOnly=function(e){h.readOnly=e},this.onContextMenu=function(e){y=!0,n(l.selection.isEmpty()),l._emit("nativecontextmenu",{target:l,domEvent:e}),this.moveToMouse(e,!0)},this.moveToMouse=function(e,t){if(t||!L.isOldIE){u||(u=h.style.cssText),h.style.cssText=(t?"z-index:100000;":"")+"height:"+h.style.height+";"+(L.isIE?"opacity:0.1;":"");var i=l.container.getBoundingClientRect(),n=R.computedStyle(l.container),s=i.top+(parseInt(n.borderTopWidth)||0),r=i.left+(parseInt(i.borderLeftWidth)||0),o=i.bottom-s-h.clientHeight-2,a=function(e){h.style.left=e.clientX-r-2+"px",h.style.top=Math.min(e.clientY-s-2,o)+"px"};a(e),"mousedown"==e.type&&(l.renderer.$keepTextAreaAtCursor&&(l.renderer.$keepTextAreaAtCursor=null),L.isWin&&!L.isOldIE&&M.capture(l.container,a,c))}},this.onContextMenuClose=c;var B,$=function(e){l.textInput.onContextMenu(e),c()};M.addListener(l.renderer.scroller,"contextmenu",$),M.addListener(h,"contextmenu",$)}}),define("ace/mouse/default_handlers",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){t.$clickSelection=null;var e=t.editor;e.setDefaultHandler("mousedown",this.onMouseDown.bind(t)),e.setDefaultHandler("dblclick",this.onDoubleClick.bind(t)),e.setDefaultHandler("tripleclick",this.onTripleClick.bind(t)),e.setDefaultHandler("quadclick",this.onQuadClick.bind(t)),e.setDefaultHandler("mousewheel",this.onMouseWheel.bind(t)),e.setDefaultHandler("touchmove",this.onTouchMove.bind(t));["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"].forEach(function(e){t[e]=this[e]},this),t.selectByLines=this.extendSelectionBy.bind(t,"getLineRange"),t.selectByWords=this.extendSelectionBy.bind(t,"getWordRange")}function l(e,t){if(e.start.row==e.end.row)var i=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)i=2*t.row-e.start.row-e.end.row;else var i=t.column-4;return i<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}e("../lib/dom"),e("../lib/event"),e("../lib/useragent");(function(){this.onMouseDown=function(e){var t=e.inSelection(),i=e.getDocumentPosition();this.mousedownEvent=e;var n=this.editor;if(0===e.getButton())return this.mousedownEvent.time=Date.now(),!t||n.isFocused()||(n.focus(),!this.$focusTimout||this.$clickSelection||n.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(i,1<e.domEvent._clicks),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e));var s=n.getSelectionRange().isEmpty();return n.$blockScrolling++,s&&n.selection.moveToPosition(i),n.$blockScrolling--,void n.textInput.onContextMenu(e.domEvent)},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var i=this.editor;i.$blockScrolling++,this.mousedownEvent.getShiftKey()?i.selection.selectToPosition(e):t||i.selection.moveToPosition(e),t||this.select(),i.renderer.scroller.setCapture&&i.renderer.scroller.setCapture(),i.setStyle("ace_selecting"),this.setState("select"),i.$blockScrolling--},this.select=function(){var e,t=this.editor,i=t.renderer.screenToTextCoordinates(this.x,this.y);if(t.$blockScrolling++,this.$clickSelection){var n=this.$clickSelection.comparePoint(i);if(-1==n)e=this.$clickSelection.end;else if(1==n)e=this.$clickSelection.start;else{var s=l(this.$clickSelection,i);i=s.cursor,e=s.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(i),t.$blockScrolling--,t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,i=this.editor,n=i.renderer.screenToTextCoordinates(this.x,this.y),s=i.selection[e](n.row,n.column);if(i.$blockScrolling++,this.$clickSelection){var r=this.$clickSelection.comparePoint(s.start),o=this.$clickSelection.comparePoint(s.end);if(-1==r&&o<=0)t=this.$clickSelection.end,s.end.row==n.row&&s.end.column==n.column||(n=s.start);else if(1==o&&0<=r)t=this.$clickSelection.start,s.start.row==n.row&&s.start.column==n.column||(n=s.end);else if(-1==r&&1==o)n=s.end,t=s.start;else{var a=l(this.$clickSelection,n);n=a.cursor,t=a.anchor}i.selection.setSelectionAnchor(t.row,t.column)}i.selection.selectToPosition(n),i.$blockScrolling--,i.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e,t,i,n,s=(e=this.mousedownEvent.x,t=this.mousedownEvent.y,i=this.x,n=this.y,Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))),r=Date.now();(0<s||r-this.mousedownEvent.time>this.$focusTimout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),i=this.editor,n=i.session.getBracketRange(t);n?(n.isEmpty()&&(n.start.column--,n.end.column++),this.setState("select")):(n=i.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=n,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),i=this.editor;this.setState("selectByLines");var n=i.getSelectionRange();n.isMultiLine()&&n.contains(t.row,t.column)?(this.$clickSelection=i.selection.getLineRange(n.start.row),this.$clickSelection.end=i.selection.getLineRange(n.end.row).end):this.$clickSelection=i.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=e.domEvent.timeStamp,i=t-(this.$lastScrollTime||0),n=this.editor;return n.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||i<200?(this.$lastScrollTime=t,n.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}},this.onTouchMove=function(e){var t=e.domEvent.timeStamp,i=t-(this.$lastScrollTime||0),n=this.editor;if(n.renderer.isScrollableBy(e.wheelX*e.speed,e.wheelY*e.speed)||i<200)return this.$lastScrollTime=t,n.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()}}).call(n.prototype),t.DefaultHandlers=n}),define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var s=e("./lib/dom");(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){s.setInnerText(this.getElement(),e)},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){s.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth}}).call(n.prototype),t.Tooltip=n}),define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function n(e){o.call(this,e)}var s=e("../lib/dom"),r=e("../lib/oop"),f=e("../lib/event"),o=e("../tooltip").Tooltip;r.inherits(n,o),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),r=this.getHeight();i<(e+=15)+s&&(e-=e+s-i),n<(t+=15)+r&&(t-=20+r),o.prototype.setPosition.call(this,e,t)}}.call(n.prototype),t.GutterHandler=function(o){function a(){i&&(i=clearTimeout(i)),h&&(g.hide(),h=null,u.removeEventListener("mousewheel",a))}function l(e){g.setPosition(e.x,e.y)}var i,c,h,u=o.editor,d=u.renderer.$gutterLayer,g=new n(u.container);o.editor.setDefaultHandler("guttermousedown",function(e){if(u.isFocused()&&0==e.getButton()&&"foldWidgets"!=d.getRegion(e)){var t=e.getDocumentPosition().row,i=u.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return u.selectAll(),e.preventDefault();o.$clickSelection=u.selection.getLineRange(t)}return o.setState("selectByLines"),o.captureMouse(e),e.preventDefault()}}),o.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(s.hasCssClass(t,"ace_fold-widget"))return a();h&&o.$tooltipFollowsMouse&&l(e),c=e,i||(i=setTimeout(function(){i=null,c&&!o.isMousePressed?function(){var e=c.getDocumentPosition().row,t=d.$annotations[e];if(!t)return a();if(e==u.session.getLength()){var i=u.renderer.pixelToScreenCoordinates(0,c.y).row,n=c.$pos;if(i>u.session.documentToScreenRow(n.row,n.column))return a()}if(h!=t)if(h=t.text.join("<br/>"),g.setHtml(h),g.show(),u.on("mousewheel",a),o.$tooltipFollowsMouse)l(c);else{var s=d.$cells[u.session.documentToScreenRow(e,0)].element.getBoundingClientRect(),r=g.getElement().style;r.left=s.right+"px",r.top=s.bottom+"px"}}():a()},50))}),f.addListener(u.renderer.$gutter,"mouseout",function(e){c=null,h&&!i&&(i=setTimeout(function(){i=null,a()},50))}),u.on("changeSession",a)}}),define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),r=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY)),this.$pos},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor.getSelectionRange();if(e.isEmpty())this.$inSelection=!1;else{var t=this.getDocumentPosition();this.$inSelection=e.contains(t.row,t.column)}return this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(r.prototype)}),define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,s,r=u;u=g.renderer.screenToTextCoordinates(f,p),e=u,t=r,i=Date.now(),n=!t||e.row!=t.row,s=!t||e.column!=t.column,!A||n||s?(g.$blockScrolling+=1,g.moveCursorToPosition(e),g.$blockScrolling-=1,A=i,v={x:f,y:p}):5<w(v.x,v.y,f,p)?A=null:200<=i-A&&(g.renderer.scrollCursorIntoView(),A=null),function(e,t){var i=Date.now(),n=g.renderer.layerConfig.lineHeight,s=g.renderer.layerConfig.characterWidth,r=g.renderer.scroller.getBoundingClientRect(),o={x:{left:f-r.left,right:r.right-f},y:{top:p-r.top,bottom:r.bottom-p}},a=Math.min(o.x.left,o.x.right),l=Math.min(o.y.top,o.y.bottom),c={row:e.row,column:e.column};a/s<=2&&(c.column+=o.x.left<o.x.right?-3:2),l/n<=1&&(c.row+=o.y.top<o.y.bottom?-1:1);var h=e.row!=c.row,u=e.column!=c.column,d=!t||e.row!=t.row;h||u&&!d?C?200<=i-C&&g.renderer.scrollCursorIntoView(c):C=i:C=null}(u,r)}function i(){h=g.selection.toOrientedRange(),l=g.session.addMarker(h,"ace_selection",g.getSelectionStyle()),g.clearSelection(),g.isFocused()&&g.renderer.$cursorLayer.setBlinking(!1),clearInterval(c),e(),c=setInterval(e,20),y=0,x.addListener(document,"mousemove",s)}function n(){clearInterval(c),g.session.removeMarker(l),l=null,g.$blockScrolling+=1,g.selection.fromOrientedRange(h),g.$blockScrolling-=1,g.isFocused()&&!m&&g.renderer.$cursorLayer.setBlinking(!g.getReadOnly()),y=0,A=C=u=h=null,x.removeListener(document,"mousemove",s)}function s(){null==I&&(I=setTimeout(function(){null!=I&&l&&n()},20))}function r(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function o(e){var t=["copy","copymove","all","uninitialized"],i=k.isMac?e.altKey:e.ctrlKey,n="uninitialized";try{n=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var s="none";return i&&0<=t.indexOf(n)?s="copy":0<=["move","copymove","linkmove","all","uninitialized"].indexOf(n)?s="move":0<=t.indexOf(n)&&(s="copy"),s}var g=t.editor,a=_.createElement("img");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",k.isOpera&&(a.style.cssText="width:1px;height:1px;position:fixed;top:0;left:0;z-index:2147483647;opacity:0;");["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"].forEach(function(e){t[e]=this[e]},this),g.addEventListener("mousedown",this.onMouseDown.bind(t));var l,f,p,c,h,u,d,m,C,A,v,b=g.container,y=0;this.onDragStart=function(e){if(this.cancelDrag||!b.draggable){var t=this;return setTimeout(function(){t.startSelect(),t.captureMouse(e)},0),e.preventDefault()}h=g.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=g.getReadOnly()?"copy":"copyMove",k.isOpera&&(g.container.appendChild(a),a.scrollTop=0),i.setDragImage&&i.setDragImage(a,0,0),k.isOpera&&g.container.removeChild(a),i.clearData(),i.setData("Text",g.session.getTextRange()),m=!0,this.setState("drag")},this.onDragEnd=function(e){if(b.draggable=!1,m=!1,this.setState(null),!g.getReadOnly()){var t=e.dataTransfer.dropEffect;!d&&"move"==t&&g.session.remove(g.getSelectionRange()),g.renderer.$cursorLayer.setBlinking(!0)}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!g.getReadOnly()&&r(e.dataTransfer))return f=e.clientX,p=e.clientY,l||i(),y++,e.dataTransfer.dropEffect=d=o(e),x.preventDefault(e)},this.onDragOver=function(e){if(!g.getReadOnly()&&r(e.dataTransfer))return f=e.clientX,p=e.clientY,l||(i(),y++),null!==I&&(I=null),e.dataTransfer.dropEffect=d=o(e),x.preventDefault(e)},this.onDragLeave=function(e){if(--y<=0&&l)return n(),d=null,x.preventDefault(e)},this.onDrop=function(e){if(u){var t=e.dataTransfer;if(m)switch(d){case"move":h=h.contains(u.row,u.column)?{start:u,end:u}:g.moveText(h,u);break;case"copy":h=g.moveText(h,u,!0)}else{var i=t.getData("Text");h={start:u,end:g.session.insert(u,i)},g.focus(),d=null}return n(),x.preventDefault(e)}},x.addListener(b,"dragstart",this.onDragStart.bind(t)),x.addListener(b,"dragend",this.onDragEnd.bind(t)),x.addListener(b,"dragenter",this.onDragEnter.bind(t)),x.addListener(b,"dragover",this.onDragOver.bind(t)),x.addListener(b,"dragleave",this.onDragLeave.bind(t)),x.addListener(b,"drop",this.onDrop.bind(t));var I=null}function w(e,t,i,n){return Math.sqrt(Math.pow(i-e,2)+Math.pow(n-t,2))}var _=e("../lib/dom"),x=e("../lib/event"),k=e("../lib/useragent");(function(){this.dragWait=function(){Date.now()-this.mousedownEvent.time>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.renderer.$cursorLayer.setBlinking(!this.editor.getReadOnly()),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor;e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var t=k.isWin?"default":"move";e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;k.isIE&&"dragReady"==this.state&&(3<w(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&t.dragDrop());"dragWait"===this.state&&(0<w(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y)&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition())))},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,i=e.inSelection(),n=e.getButton();if(1===(e.domEvent.detail||1)&&0===n&&i){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var s=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in s&&(s.unselectable="on"),t.getDragDelay()){if(k.isWebKit)this.cancelDrag=!0,t.container.draggable=!0;this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(n.prototype),t.DragdropHandler=n}),define("ace/lib/net",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var s=e("./dom");t.get=function(e,t){var i=new XMLHttpRequest;i.open("GET",e,!0),i.onreadystatechange=function(){4===i.readyState&&t(i.responseText)},i.send(null)},t.loadScript=function(e,i){var t=s.getDocumentHead(),n=document.createElement("script");n.src=e,t.appendChild(n),n.onload=n.onreadystatechange=function(e,t){!t&&n.readyState&&"loaded"!=n.readyState&&"complete"!=n.readyState||(n=n.onload=n.onreadystatechange=null,t||i())}},t.qualifyURL=function(e){var t=document.createElement("a");return t.href=e,t.href}}),define("ace/lib/event_emitter",["require","exports","module"],function(e,t,i){"use strict";var n={},r=function(){this.propagationStopped=!0},o=function(){this.defaultPrevented=!0};n._emit=n._dispatchEvent=function(e,t){this._eventRegistry||(this._eventRegistry={}),this._defaultHandlers||(this._defaultHandlers={});var i=this._eventRegistry[e]||[],n=this._defaultHandlers[e];if(i.length||n){"object"==typeof t&&t||(t={}),t.type||(t.type=e),t.stopPropagation||(t.stopPropagation=r),t.preventDefault||(t.preventDefault=o),i=i.slice();for(var s=0;s<i.length&&(i[s](t,this),!t.propagationStopped);s++);return n&&!t.defaultPrevented?n(t,this):void 0}},n._signal=function(e,t){var i=(this._eventRegistry||{})[e];if(i){i=i.slice();for(var n=0;n<i.length;n++)i[n](t,this)}},n.once=function(t,i){var n=this;i&&this.addEventListener(t,function e(){n.removeEventListener(t,e),i.apply(null,arguments)})},n.setDefaultHandler=function(e,t){var i=this._defaultHandlers;if(i||(i=this._defaultHandlers={_disabled_:{}}),i[e]){var n=i[e],s=i._disabled_[e];s||(i._disabled_[e]=s=[]),s.push(n);var r=s.indexOf(t);-1!=r&&s.splice(r,1)}i[e]=t},n.removeDefaultHandler=function(e,t){var i=this._defaultHandlers;if(i){var n=i._disabled_[e];if(i[e]==t){i[e];n&&this.setDefaultHandler(e,n.pop())}else if(n){var s=n.indexOf(t);-1!=s&&n.splice(s,1)}}},n.on=n.addEventListener=function(e,t,i){this._eventRegistry=this._eventRegistry||{};var n=this._eventRegistry[e];return n||(n=this._eventRegistry[e]=[]),-1==n.indexOf(t)&&n[i?"unshift":"push"](t),t},n.off=n.removeListener=n.removeEventListener=function(e,t){this._eventRegistry=this._eventRegistry||{};var i=this._eventRegistry[e];if(i){var n=i.indexOf(t);-1!==n&&i.splice(n,1)}},n.removeAllListeners=function(e){this._eventRegistry&&(this._eventRegistry[e]=[])},t.EventEmitter=n}),define("ace/lib/app_config",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){function n(e){"undefined"!=typeof console&&console.warn&&console.warn.apply(console,arguments)}function s(e,t){var i=new Error(e);i.data=t,"object"==typeof console&&console.error&&console.error(i),setTimeout(function(){throw i})}var r=e("./oop"),o=e("./event_emitter").EventEmitter,a={setOptions:function(t){Object.keys(t).forEach(function(e){this.setOption(e,t[e])},this)},getOptions:function(e){var t={};return e?Array.isArray(e)||(t=e,e=Object.keys(t)):e=Object.keys(this.$options),e.forEach(function(e){t[e]=this.getOption(e)},this),t},setOption:function(e,t){if(this["$"+e]!==t){var i=this.$options[e];return i?i.forwardTo?this[i.forwardTo]&&this[i.forwardTo].setOption(e,t):(i.handlesSet||(this["$"+e]=t),void(i&&i.set&&i.set.call(this,t))):n('misspelled option "'+e+'"')}},getOption:function(e){var t=this.$options[e];return t?t.forwardTo?this[t.forwardTo]&&this[t.forwardTo].getOption(e):t&&t.get?t.get.call(this):this["$"+e]:n('misspelled option "'+e+'"')}},l=function(){this.$defaultOptions={}};(function(){r.implement(this,o),this.defineOptions=function(i,e,n){return i.$options||(this.$defaultOptions[e]=i.$options={}),Object.keys(n).forEach(function(e){var t=n[e];"string"==typeof t&&(t={forwardTo:t}),t.name||(t.name=e),"initialValue"in(i.$options[t.name]=t)&&(i["$"+t.name]=t.initialValue)}),r.implement(i,a),this},this.resetOptions=function(i){Object.keys(i.$options).forEach(function(e){var t=i.$options[e];"value"in t&&i.setOption(e,t.value)})},this.setDefaultValue=function(e,t,i){var n=this.$defaultOptions[e]||(this.$defaultOptions[e]={});n[t]&&(n.forwardTo?this.setDefaultValue(n.forwardTo,t,i):n[t].value=i)},this.setDefaultValues=function(t,i){Object.keys(i).forEach(function(e){this.setDefaultValue(t,e,i[e])},this)},this.warn=n,this.reportError=s}).call(l.prototype),t.AppConfig=l}),define("ace/config",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/lib/net","ace/lib/app_config"],function(p,m,C){var e=p("./lib/lang"),r=(p("./lib/oop"),p("./lib/net")),t=p("./lib/app_config").AppConfig;C.exports=m=new t;var A=function(){return this||"undefined"!=typeof window&&window}(),v={packaged:!1,workerPath:null,modePath:null,themePath:null,basePath:"",suffix:".js",$moduleUrls:{}};m.get=function(e){if(!v.hasOwnProperty(e))throw new Error("Unknown config key: "+e);return v[e]},m.set=function(e,t){if(!v.hasOwnProperty(e))throw new Error("Unknown config key: "+e);v[e]=t},m.all=function(){return e.copyObject(v)},m.moduleUrl=function(e,t){if(v.$moduleUrls[e])return v.$moduleUrls[e];var i=e.split("/"),n="snippets"==(t=t||i[i.length-2]||"")?"/":"-",s=i[i.length-1];if("worker"==t&&"-"==n){var r=new RegExp("^"+t+"[\\-_]|[\\-_]"+t+"$","g");s=s.replace(r,"")}(!s||s==t)&&1<i.length&&(s=i[i.length-2]);var o=v[t+"Path"];return null==o?o=v.basePath:"/"==n&&(t=n=""),o&&"/"!=o.slice(-1)&&(o+="/"),o+t+n+s+this.get("suffix")},m.setModuleUrl=function(e,t){return v.$moduleUrls[e]=t},m.$loading={},m.loadModule=function(i,e){var t,n;Array.isArray(i)&&(n=i[0],i=i[1]);try{t=p(i)}catch(e){}if(t&&!m.$loading[i])return e&&e(t);if(m.$loading[i]||(m.$loading[i]=[]),m.$loading[i].push(e),!(1<m.$loading[i].length)){var s=function(){p([i],function(t){m._emit("load.module",{name:i,module:t});var e=m.$loading[i];m.$loading[i]=null,e.forEach(function(e){e&&e(t)})})};if(!m.get("packaged"))return s();r.loadScript(m.moduleUrl(i,n),s)}},m.init=function(e){if(v.packaged=e||p.packaged||C.packaged||A.define&&define.packaged,!A.document)return"";for(var t,i={},n="",s=document.currentScript||document._currentScript,r=(s&&s.ownerDocument||document).getElementsByTagName("script"),o=0;o<r.length;o++){var a=r[o],l=a.src||a.getAttribute("src");if(l){for(var c=a.attributes,h=0,u=c.length;h<u;h++){var d=c[h];0===d.name.indexOf("data-ace-")&&(i[(t=d.name.replace(/^data-ace-/,""),t.replace(/-(.)/g,function(e,t){return t.toUpperCase()}))]=d.value)}var g=l.match(/^(.*)\/ace(\-\w+)?\.js(\?|$)/);g&&(n=g[1])}}for(var f in n&&(i.base=i.base||n,i.packaged=!0),i.basePath=i.base,i.workerPath=i.workerPath||i.base,i.modePath=i.modePath||i.base,i.themePath=i.themePath||i.base,delete i.base,i)void 0!==i[f]&&m.set(f,i[f])}}),define("ace/mouse/mouse_handler",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/mouse/default_handlers","ace/mouse/default_gutter_handler","ace/mouse/mouse_event","ace/mouse/dragdrop_handler","ace/config"],function(e,t,i){"use strict";var l=e("../lib/event"),c=e("../lib/useragent"),n=e("./default_handlers").DefaultHandlers,o=e("./default_gutter_handler").GutterHandler,h=e("./mouse_event").MouseEvent,a=e("./dragdrop_handler").DragdropHandler,s=e("../config"),r=function(s){var r=this;this.editor=s,new n(this),new o(this),new a(this);var e=function(e){(!document.hasFocus||!document.hasFocus())&&window.focus(),s.focus()},t=s.renderer.getMouseEventTarget();l.addListener(t,"click",this.onMouseEvent.bind(this,"click")),l.addListener(t,"mousemove",this.onMouseMove.bind(this,"mousemove")),l.addMultiMouseDownListener(t,[400,300,250],this,"onMouseEvent"),s.renderer.scrollBarV&&(l.addMultiMouseDownListener(s.renderer.scrollBarV.inner,[400,300,250],this,"onMouseEvent"),l.addMultiMouseDownListener(s.renderer.scrollBarH.inner,[400,300,250],this,"onMouseEvent"),c.isIE&&(l.addListener(s.renderer.scrollBarV.element,"mousedown",e),l.addListener(s.renderer.scrollBarH.element,"mousedown",e))),l.addMouseWheelListener(s.container,this.onMouseWheel.bind(this,"mousewheel")),l.addTouchMoveListener(s.container,this.onTouchMove.bind(this,"touchmove"));var i=s.renderer.$gutter;l.addListener(i,"mousedown",this.onMouseEvent.bind(this,"guttermousedown")),l.addListener(i,"click",this.onMouseEvent.bind(this,"gutterclick")),l.addListener(i,"dblclick",this.onMouseEvent.bind(this,"gutterdblclick")),l.addListener(i,"mousemove",this.onMouseEvent.bind(this,"guttermousemove")),l.addListener(t,"mousedown",e),l.addListener(i,"mousedown",function(e){return s.focus(),l.preventDefault(e)}),s.on("mousemove",function(e){if(!r.state&&!r.$dragDelay&&r.$dragEnabled){var t=s.renderer.screenToTextCoordinates(e.x,e.y),i=s.session.selection.getRange(),n=s.renderer;!i.isEmpty()&&i.insideStart(t.row,t.column)?n.setCursorStyle("default"):n.setCursorStyle("")}})};(function(){this.onMouseEvent=function(e,t){this.editor._emit(e,new h(t,this.editor))},this.onMouseMove=function(e,t){var i=this.editor._eventRegistry&&this.editor._eventRegistry.mousemove;i&&i.length&&this.editor._emit(e,new h(t,this.editor))},this.onMouseWheel=function(e,t){var i=new h(t,this.editor);i.speed=2*this.$scrollSpeed,i.wheelX=t.wheelX,i.wheelY=t.wheelY,this.editor._emit(e,i)},this.onTouchMove=function(e,t){var i=new h(t,this.editor);i.speed=1,i.wheelX=t.wheelX,i.wheelY=t.wheelY,this.editor._emit(e,i)},this.setState=function(e){this.state=e},this.captureMouse=function(e,t){this.x=e.x,this.y=e.y,this.isMousePressed=!0;var i=this.editor.renderer;i.$keepTextAreaAtCursor&&(i.$keepTextAreaAtCursor=null);var n=this,s=function(e){if(e)return c.isWebKit&&!e.which&&n.releaseMouse?n.releaseMouse():(n.x=e.clientX,n.y=e.clientY,t&&t(e),n.mouseEvent=new h(e,n.editor),void(n.$mouseMoved=!0))},r=function(e){clearInterval(a),o(),n[n.state+"End"]&&n[n.state+"End"](e),n.state="",null==i.$keepTextAreaAtCursor&&(i.$keepTextAreaAtCursor=!0,i.$moveTextAreaToCursor()),n.isMousePressed=!1,n.$onCaptureMouseMove=n.releaseMouse=null,e&&n.onMouseEvent("mouseup",e)},o=function(){n[n.state]&&n[n.state](),n.$mouseMoved=!1};if(c.isOldIE&&"dblclick"==e.domEvent.type)return setTimeout(function(){r(e)});n.$onCaptureMouseMove=s,n.releaseMouse=l.capture(this.editor.container,s,r);var a=setInterval(o,20)},this.releaseMouse=null,this.cancelContextMenu=function(){var t=function(e){e&&e.domEvent&&"contextmenu"!=e.domEvent.type||(this.editor.off("nativecontextmenu",t),e&&e.domEvent&&l.stopEvent(e.domEvent))}.bind(this);setTimeout(t,10),this.editor.on("nativecontextmenu",t)}}).call(r.prototype),s.defineOptions(r.prototype,"mouseHandler",{scrollSpeed:{initialValue:2},dragDelay:{initialValue:c.isMac?150:0},dragEnabled:{initialValue:!0},focusTimout:{initialValue:0},tooltipFollowsMouse:{initialValue:!0}}),t.MouseHandler=r}),define("ace/mouse/fold_handler",["require","exports","module"],function(e,t,i){"use strict";t.FoldHandler=function(o){o.on("click",function(e){var t=e.getDocumentPosition(),i=o.session,n=i.getFoldAt(t.row,t.column,1);n&&(e.getAccelKey()?i.removeFold(n):i.expandFold(n),e.stop())}),o.on("gutterclick",function(e){if("foldWidgets"==o.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,i=o.session;i.foldWidgets&&i.foldWidgets[t]&&o.session.onFoldWidgetClick(t,e),o.isFocused()||o.focus(),e.stop()}}),o.on("gutterdblclick",function(e){if("foldWidgets"==o.renderer.$gutterLayer.getRegion(e)){var t=e.getDocumentPosition().row,i=o.session,n=i.getParentFoldRangeData(t,!0),s=n.range||n.firstRange;if(s){t=s.start.row;var r=i.getFoldAt(t,i.getLine(t).length,1);r?i.removeFold(r):(i.addFold("...",s),o.renderer.scrollCursorIntoView({row:s.start.row,column:0}))}e.stop()}})}}),define("ace/keyboard/keybinding",["require","exports","module","ace/lib/keys","ace/lib/event"],function(e,t,i){"use strict";var s=e("../lib/keys"),l=e("../lib/event"),n=function(e){this.$editor=e,this.$data={editor:e},this.$handlers=[],this.setDefaultHandler(e.commands)};(function(){this.setDefaultHandler=function(e){this.removeKeyboardHandler(this.$defaultHandler),this.$defaultHandler=e,this.addKeyboardHandler(e,0)},this.setKeyboardHandler=function(e){var t=this.$handlers;if(t[t.length-1]!=e){for(;t[t.length-1]&&t[t.length-1]!=this.$defaultHandler;)this.removeKeyboardHandler(t[t.length-1]);this.addKeyboardHandler(e,1)}},this.addKeyboardHandler=function(e,t){if(e){"function"==typeof e&&!e.handleKeyboard&&(e.handleKeyboard=e);var i=this.$handlers.indexOf(e);-1!=i&&this.$handlers.splice(i,1),null==t?this.$handlers.push(e):this.$handlers.splice(t,0,e),-1==i&&e.attach&&e.attach(this.$editor)}},this.removeKeyboardHandler=function(e){var t=this.$handlers.indexOf(e);return-1!=t&&(this.$handlers.splice(t,1),e.detach&&e.detach(this.$editor),!0)},this.getKeyboardHandler=function(){return this.$handlers[this.$handlers.length-1]},this.getStatusText=function(){var t=this.$data,i=t.editor;return this.$handlers.map(function(e){return e.getStatusText&&e.getStatusText(i,t)||""}).filter(Boolean).join(" ")},this.$callKeyboardHandlers=function(e,t,i,n){for(var s,r=!1,o=this.$editor.commands,a=this.$handlers.length;a--&&!((s=this.$handlers[a].handleKeyboard(this.$data,e,t,i,n))&&s.command&&((r="null"==s.command||o.exec(s.command,this.$editor,s.args,n))&&n&&-1!=e&&1!=s.passEvent&&1!=s.command.passEvent&&l.stopEvent(n),r)););return r},this.onCommandKey=function(e,t,i){var n=s.keyCodeToString(i);this.$callKeyboardHandlers(t,n,i,e)},this.onTextInput=function(e){this.$callKeyboardHandlers(-1,e)||this.$editor.commands.exec("insertstring",this.$editor,e)}}).call(n.prototype),t.KeyBinding=n}),define("ace/range",["require","exports","module"],function(e,t,i){"use strict";var r=function(e,t,i,n){this.start={row:e,column:t},this.end={row:i,column:n}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,i=e.end,n=e.start;return 1==(t=this.compare(i.row,i.column))?1==(t=this.compare(n.row,n.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(n.row,n.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?e<this.start.row?-1:e>this.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:t<this.start.column?-1:t>this.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var i={row:t+1,column:0};else if(this.end.row<e)i={row:e,column:0};if(this.start.row>t)var n={row:t+1,column:0};else if(this.start.row<e)n={row:e,column:0};return r.fromPoints(n||this.start,i||this.end)},this.extend=function(e,t){var i=this.compare(e,t);if(0==i)return this;if(-1==i)var n={row:e,column:t};else var s={row:e,column:t};return r.fromPoints(n||this.start,s||this.end)},this.isEmpty=function(){return this.start.row===this.end.row&&this.start.column===this.end.column},this.isMultiLine=function(){return this.start.row!==this.end.row},this.clone=function(){return r.fromPoints(this.start,this.end)},this.collapseRows=function(){return 0==this.end.column?new r(this.start.row,0,Math.max(this.start.row,this.end.row-1),0):new r(this.start.row,0,this.end.row,0)},this.toScreenRange=function(e){var t=e.documentToScreenPosition(this.start),i=e.documentToScreenPosition(this.end);return new r(t.row,t.column,i.row,i.column)},this.moveBy=function(e,t){this.start.row+=e,this.start.column+=t,this.end.row+=e,this.end.column+=t}}).call(r.prototype),r.fromPoints=function(e,t){return new r(e.row,e.column,t.row,t.column)},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},r.comparePoints=function(e,t){return e.row-t.row||e.column-t.column},t.Range=r}),define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,i){"use strict";var n=e("./lib/oop"),o=e("./lib/lang"),s=e("./lib/event_emitter").EventEmitter,r=e("./range").Range,a=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.lead=this.selectionLead=this.doc.createAnchor(0,0),this.anchor=this.selectionAnchor=this.doc.createAnchor(0,0);var t=this;this.lead.on("change",function(e){t._emit("changeCursor"),t.$isEmpty||t._emit("changeSelection"),!t.$keepDesiredColumnOnChange&&e.old.column!=e.value.column&&(t.$desiredColumn=null)}),this.selectionAnchor.on("change",function(){t.$isEmpty||t._emit("changeSelection")})};(function(){n.implement(this,s),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.isEmpty()&&this.getRange().isMultiLine()},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.anchor.setPosition(e,t),this.$isEmpty&&(this.$isEmpty=!1,this._emit("changeSelection"))},this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.shiftSelection=function(e){if(this.$isEmpty)this.moveCursorTo(this.lead.row,this.lead.column+e);else{var t=this.getSelectionAnchor(),i=this.getSelectionLead(),n=this.isBackwards();(!n||0!==t.column)&&this.setSelectionAnchor(t.row,t.column+e),(n||0!==i.column)&&this.$moveSelection(function(){this.moveCursorTo(i.row,i.column+e)})}},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.isEmpty()?r.fromPoints(t,t):this.isBackwards()?r.fromPoints(t,e):r.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){var e=this.doc.getLength()-1;this.setSelectionAnchor(0,0),this.moveCursorTo(e,this.doc.getLine(e).length)},this.setRange=this.setSelectionRange=function(e,t){t?(this.setSelectionAnchor(e.end.row,e.end.column),this.selectTo(e.start.row,e.start.column)):(this.setSelectionAnchor(e.start.row,e.start.column),this.selectTo(e.end.row,e.end.column)),this.getRange().isEmpty()&&(this.$isEmpty=!0),this.$desiredColumn=null},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if(void 0===t){var i=e||this.lead;e=i.row,t=i.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var i,n="number"==typeof e?e:this.lead.row,s=this.session.getFoldLine(n);return i=s?(n=s.start.row,s.end.row):n,!0===t?new r(n,0,i,this.session.getLine(i).length):new r(n,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)0<t.row&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var i=this.session.getTabSize();this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column-i,t.column).split(" ").length-1==i?this.moveCursorBy(0,-i):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row<this.doc.getLength()-1&&this.moveCursorTo(this.lead.row+1,0);else{var i=this.session.getTabSize();t=this.lead;this.session.isTabStop(t)&&this.doc.getLine(t.row).slice(t.column,t.column+i).split(" ").length-1==i?this.moveCursorBy(0,i):this.moveCursorBy(0,1)}},this.moveCursorLineStart=function(){var e=this.lead.row,t=this.lead.column,i=this.session.documentToScreenRow(e,t),n=this.session.screenToDocumentPosition(i,0),s=this.session.getDisplayLine(e,null,n.row,n.column).match(/^\s*/);s[0].length!=t&&!this.session.$useEmacsStyleLineStart&&(n.column+=s[0].length),this.moveCursorToPosition(n)},this.moveCursorLineEnd=function(){var e=this.lead,t=this.session.getDocumentLastRowColumnPosition(e.row,e.column);if(this.lead.column==t.column){var i=this.session.getLine(t.row);if(t.column==i.length){var n=i.search(/\s+$/);0<n&&(t.column=n)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var s=this.session.getFoldAt(e,t,1);if(s)this.moveCursorTo(s.end.row,s.end.column);else{if(this.session.nonTokenRe.exec(n)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,n=i.substring(t)),t>=i.length)return this.moveCursorTo(e,i.length),this.moveCursorRight(),void(e<this.doc.getLength()-1&&this.moveCursorWordRight());this.session.tokenRe.exec(n)&&(t+=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(e,t)}},this.moveCursorLongWordLeft=function(){var e,t=this.lead.row,i=this.lead.column;if(e=this.session.getFoldAt(t,i,-1))this.moveCursorTo(e.start.row,e.start.column);else{var n=this.session.getFoldStringAt(t,i,-1);null==n&&(n=this.doc.getLine(t).substring(0,i));var s=o.stringReverse(n);if(this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0,this.session.nonTokenRe.exec(s)&&(i-=this.session.nonTokenRe.lastIndex,s=s.slice(this.session.nonTokenRe.lastIndex),this.session.nonTokenRe.lastIndex=0),i<=0)return this.moveCursorTo(t,0),this.moveCursorLeft(),void(0<t&&this.moveCursorWordLeft());this.session.tokenRe.exec(s)&&(i-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,i)}},this.$shortWordEndIndex=function(e){var t,i=0,n=/\s/,s=this.session.tokenRe;if(s.lastIndex=0,this.session.tokenRe.exec(e))i=this.session.tokenRe.lastIndex;else{for(;(t=e[i])&&n.test(t);)i++;if(i<1)for(s.lastIndex=0;(t=e[i])&&!s.test(t);)if(s.lastIndex=0,i++,n.test(t)){if(2<i){i--;break}for(;(t=e[i])&&n.test(t);)i++;if(2<i)break}}return s.lastIndex=0,i},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,i=this.doc.getLine(e),n=i.substring(t),s=this.session.getFoldAt(e,t,1);if(s)return this.moveCursorTo(s.end.row,s.end.column);if(t==i.length){for(var r=this.doc.getLength();e++,n=this.doc.getLine(e),e<r&&/^\s*$/.test(n););/^\s+/.test(n)||(n=""),t=0}var o=this.$shortWordEndIndex(n);this.moveCursorTo(e,t+o)},this.moveCursorShortWordLeft=function(){var e,t=this.lead.row,i=this.lead.column;if(e=this.session.getFoldAt(t,i,-1))return this.moveCursorTo(e.start.row,e.start.column);var n=this.session.getLine(t).substring(0,i);if(0===i){for(;t--,n=this.doc.getLine(t),0<t&&/^\s*$/.test(n););i=n.length,/\s+$/.test(n)||(n="")}var s=o.stringReverse(n),r=this.$shortWordEndIndex(s);return this.moveCursorTo(t,i-r)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var i=this.session.documentToScreenPosition(this.lead.row,this.lead.column);0===t&&(this.$desiredColumn?i.column=this.$desiredColumn:this.$desiredColumn=i.column);var n=this.session.screenToDocumentPosition(i.row+e,i.column);0!==e&&0===t&&n.row===this.lead.row&&n.column===this.lead.column&&this.session.lineWidgets&&this.session.lineWidgets[n.row]&&n.row++,this.moveCursorTo(n.row,n.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,i){var n=this.session.getFoldAt(e,t,1);n&&(e=n.start.row,t=n.start.column),this.$keepDesiredColumnOnChange=!0,this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,i||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,i){var n=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(n.row,n.column,i)},this.detach=function(){this.lead.detach(),this.anchor.detach(),this.session=this.doc=null},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e.call(null,this);var i=this.getCursor();return r.fromPoints(t,i)}catch(e){return r.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else(e=this.getRange()).isBackwards=this.isBackwards();return e},this.fromJSON=function(e){if(null==e.start){if(this.rangeList){this.toSingleRange(e[0]);for(var t=e.length;t--;){var i=r.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(i.cursor=i.start),this.addRange(i,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(a.prototype),t.Selection=a}),define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,i){"use strict";var n=e("./config"),A=2e3,s=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var i=this.states[t],n=[],s=0,r=this.matchMappings[t]={defaultToken:"text"},o="g",a=[],l=0;l<i.length;l++){var c=i[l];if(c.defaultToken&&(r.defaultToken=c.defaultToken),c.caseInsensitive&&(o="gi"),null!=c.regex){c.regex instanceof RegExp&&(c.regex=c.regex.toString().slice(1,-1));var h=c.regex,u=new RegExp("(?:("+h+")|(.))").exec("a").length-2;Array.isArray(c.token)?1==c.token.length||1==u?c.token=c.token[0]:u-1!=c.token.length?(this.reportError("number of classes and regexp groups doesn't match",{rule:c,groupCount:u-1}),c.token=c.token[0]):(c.tokenArray=c.token,c.token=null,c.onMatch=this.$arrayTokens):"function"==typeof c.token&&!c.onMatch&&(c.onMatch=1<u?this.$applyToken:c.token),1<u&&(h=/\\\d/.test(c.regex)?c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+s+1)}):(u=1,this.removeCapturingGroups(c.regex)),!c.splitRegex&&"string"!=typeof c.token&&a.push(c)),r[s]=l,s+=u,n.push(h),c.onMatch||(c.onMatch=null)}}n.length||(r[0]=0,n.push("$")),a.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,o)},this),this.regExps[t]=new RegExp("("+n.join(")|(")+")|($)",o)}};(function(){this.$setMaxTokenCount=function(e){A=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),i=this.token.apply(this,t);if("string"==typeof i)return[{type:i,value:e}];for(var n=[],s=0,r=i.length;s<r;s++)t[s]&&(n[n.length]={type:i[s],value:t[s]});return n},this.$arrayTokens=function(e){if(!e)return[];var t=this.splitRegex.exec(e);if(!t)return"text";for(var i=[],n=this.tokenArray,s=0,r=n.length;s<r;s++)t[s+1]&&(i[i.length]={type:n[s],value:t[s+1]});return i},this.removeCapturingGroups=function(e){return e.replace(/\[(?:\\.|[^\]])*?\]|\\.|\(\?[:=!]|(\()/g,function(e,t){return t?"(?:":e})},this.createSplitterRegexp=function(e,t){if(-1!=e.indexOf("(?=")){var o=0,a=!1,l={};e.replace(/(\\.)|(\((?:\?[=!])?)|(\))|([\[\]])/g,function(e,t,i,n,s,r){return a?a="]"!=s:s?a=!0:n?(o==l.stack&&(l.end=r+1,l.stack=-1),o--):i&&(o++,1!=i.length&&(l.stack=o,l.start=r)),e}),null!=l.end&&/^\)*$/.test(e.substr(l.end))&&(e=e.substring(0,l.start)+e.substr(l.end))}return new RegExp(e,(t||"").replace("g",""))},this.getLineTokens=function(e,t){if(t&&"string"!=typeof t)"#tmp"===(t=(i=t.slice(0))[0])&&(i.shift(),t=i.shift());else var i=[];var n=t||"start",s=this.states[n];s||(n="start",s=this.states[n]);for(var r,o=this.matchMappings[n],a=this.regExps[n],l=[],c=a.lastIndex=0,h=0,u={type:null,value:""};r=a.exec(e);){var d=o.defaultToken,g=null,f=r[0],p=a.lastIndex;if(p-f.length>c){var m=e.substring(c,p-f.length);u.type==d?u.value+=m:(u.type&&l.push(u),u={type:d,value:m})}for(var C=0;C<r.length-2;C++)if(void 0!==r[C+1]){d=(g=s[o[C]]).onMatch?g.onMatch(f,n,i):g.token,g.next&&(n="string"==typeof g.next?g.next:g.next(n,i),(s=this.states[n])||(this.reportError("state doesn't exist",n),n="start",s=this.states[n]),o=this.matchMappings[n],c=p,(a=this.regExps[n]).lastIndex=p);break}if(f)if("string"==typeof d)g&&!1===g.merge||u.type!==d?(u.type&&l.push(u),u={type:d,value:f}):u.value+=f;else if(d){u.type&&l.push(u),u={type:null,value:""};for(C=0;C<d.length;C++)l.push(d[C])}if(c==e.length)break;if(c=p,h++>A){for(h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});c<e.length;)u.type&&l.push(u),u={value:e.substring(c,c+=2e3),type:"overflow"};n="start",i=[];break}}return u.type&&l.push(u),1<i.length&&i[0]!==n&&i.unshift("#tmp",n),{tokens:l,state:i.length?i:n}},this.reportError=n.reportError}).call(s.prototype),t.Tokenizer=s}),define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,i){"use strict";var c=e("../lib/lang"),n=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var i in e){for(var n=e[i],s=0;s<n.length;s++){var r=n[s];(r.next||r.onMatch)&&("string"!=typeof r.next?r.nextState&&0!==r.nextState.indexOf(t)&&(r.nextState=t+r.nextState):0!==r.next.indexOf(t)&&(r.next=t+r.next))}this.$rules[t+i]=n}else for(var i in e)this.$rules[i]=e[i]},this.getRules=function(){return this.$rules},this.embedRules=function(e,t,i,n,s){var r="function"==typeof e?(new e).getRules():e;if(n)for(var o=0;o<n.length;o++)n[o]=t+n[o];else for(var a in n=[],r)n.push(t+a);if(this.addRules(r,t),i){var l=Array.prototype[s?"push":"unshift"];for(o=0;o<n.length;o++)l.apply(this.$rules[n[o]],c.deepCopy(i))}this.$embeds||(this.$embeds=[]),this.$embeds.push(t)},this.getEmbeds=function(){return this.$embeds};var g=function(e,t){return("start"!=e||t.length)&&t.unshift(this.nextState,e),this.nextState},f=function(e,t){return t.shift(),t.shift()||"start"};this.normalizeRules=function(){var u=0,d=this.$rules;Object.keys(d).forEach(function e(t){var i=d[t];i.processed=!0;for(var n=0;n<i.length;n++){var s=i[n];!s.regex&&s.start&&(s.regex=s.start,s.next||(s.next=[]),s.next.push({defaultToken:s.token},{token:s.token+".end",regex:s.end||s.start,next:"pop"}),s.token=s.token+".start",s.push=!0);var r=s.next||s.push;if(r&&Array.isArray(r)){var o=s.stateName;o||("string"!=typeof(o=s.token)&&(o=o[0]||""),d[o]&&(o+=u++)),d[o]=r,e(s.next=o)}else"pop"==r&&(s.next=f);if(s.push&&(s.nextState=s.next||s.push,s.next=g,delete s.push),s.rules)for(var a in s.rules)d[a]?d[a].push&&d[a].push.apply(d[a],s.rules[a]):d[a]=s.rules[a];if(s.include||"string"==typeof s)var l=s.include||s,c=d[l];else Array.isArray(s)&&(c=s);if(c){var h=[n,1].concat(c);s.noEscape&&(h=h.filter(function(e){return!e.next})),i.splice.apply(i,h),n--,c=null}s.keywordMap&&(s.token=this.createKeywordMapper(s.keywordMap,s.defaultToken||"text",s.caseInsensitive),delete s.defaultToken)}},this)},this.createKeywordMapper=function(s,t,r,o){var a=Object.create(null);return Object.keys(s).forEach(function(e){var t=s[e];r&&(t=t.toLowerCase());for(var i=t.split(o||"|"),n=i.length;n--;)a[i[n]]=e}),Object.getPrototypeOf(a)&&(a.__proto__=null),this.$keywordList=Object.keys(a),s=null,r?function(e){return a[e.toLowerCase()]||t}:function(e){return a[e]||t}},this.getKeywords=function(){return this.$keywords}}).call(n.prototype),t.TextHighlightRules=n}),define("ace/mode/behaviour",["require","exports","module"],function(e,t,i){"use strict";var n=function(){this.$behaviours={}};(function(){this.add=function(e,t,i){switch(void 0){case this.$behaviours:this.$behaviours={};case this.$behaviours[e]:this.$behaviours[e]={}}this.$behaviours[e][t]=i},this.addBehaviours=function(e){for(var t in e)for(var i in e[t])this.add(t,i,e[t][i])},this.remove=function(e){this.$behaviours&&this.$behaviours[e]&&delete this.$behaviours[e]},this.inherit=function(e,t){if("function"==typeof e)var i=(new e).getBehaviours(t);else i=e.getBehaviours(t);this.addBehaviours(i)},this.getBehaviours=function(e){if(!e)return this.$behaviours;for(var t={},i=0;i<e.length;i++)this.$behaviours[e[i]]&&(t[e[i]]=this.$behaviours[e[i]]);return t}}).call(n.prototype),t.Behaviour=n}),define("ace/unicode",["require","exports","module"],function(e,n,t){"use strict";n.packages={},function(e){var t=/\w{4}/g;for(var i in e)n.packages[i]=e[i].replace(t,"\\u$&")}({L:"0041-005A0061-007A00AA00B500BA00C0-00D600D8-00F600F8-02C102C6-02D102E0-02E402EC02EE0370-037403760377037A-037D03860388-038A038C038E-03A103A3-03F503F7-0481048A-05250531-055605590561-058705D0-05EA05F0-05F20621-064A066E066F0671-06D306D506E506E606EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA07F407F507FA0800-0815081A082408280904-0939093D09500958-0961097109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E460E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EC60EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10A0-10C510D0-10FA10FC1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317D717DC1820-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541AA71B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C7D1CE9-1CEC1CEE-1CF11D00-1DBF1E00-1F151F18-1F1D1F20-1F451F48-1F4D1F50-1F571F591F5B1F5D1F5F-1F7D1F80-1FB41FB6-1FBC1FBE1FC2-1FC41FC6-1FCC1FD0-1FD31FD6-1FDB1FE0-1FEC1FF2-1FF41FF6-1FFC2071207F2090-209421022107210A-211321152119-211D212421262128212A-212D212F-2139213C-213F2145-2149214E218321842C00-2C2E2C30-2C5E2C60-2CE42CEB-2CEE2D00-2D252D30-2D652D6F2D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE2E2F300530063031-3035303B303C3041-3096309D-309F30A1-30FA30FC-30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A48CA4D0-A4FDA500-A60CA610-A61FA62AA62BA640-A65FA662-A66EA67F-A697A6A0-A6E5A717-A71FA722-A788A78BA78CA7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2A9CFAA00-AA28AA40-AA42AA44-AA4BAA60-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADB-AADDABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB00-FB06FB13-FB17FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF21-FF3AFF41-FF5AFF66-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",Ll:"0061-007A00AA00B500BA00DF-00F600F8-00FF01010103010501070109010B010D010F01110113011501170119011B011D011F01210123012501270129012B012D012F01310133013501370138013A013C013E014001420144014601480149014B014D014F01510153015501570159015B015D015F01610163016501670169016B016D016F0171017301750177017A017C017E-0180018301850188018C018D019201950199-019B019E01A101A301A501A801AA01AB01AD01B001B401B601B901BA01BD-01BF01C601C901CC01CE01D001D201D401D601D801DA01DC01DD01DF01E101E301E501E701E901EB01ED01EF01F001F301F501F901FB01FD01FF02010203020502070209020B020D020F02110213021502170219021B021D021F02210223022502270229022B022D022F02310233-0239023C023F0240024202470249024B024D024F-02930295-02AF037103730377037B-037D039003AC-03CE03D003D103D5-03D703D903DB03DD03DF03E103E303E503E703E903EB03ED03EF-03F303F503F803FB03FC0430-045F04610463046504670469046B046D046F04710473047504770479047B047D047F0481048B048D048F04910493049504970499049B049D049F04A104A304A504A704A904AB04AD04AF04B104B304B504B704B904BB04BD04BF04C204C404C604C804CA04CC04CE04CF04D104D304D504D704D904DB04DD04DF04E104E304E504E704E904EB04ED04EF04F104F304F504F704F904FB04FD04FF05010503050505070509050B050D050F05110513051505170519051B051D051F0521052305250561-05871D00-1D2B1D62-1D771D79-1D9A1E011E031E051E071E091E0B1E0D1E0F1E111E131E151E171E191E1B1E1D1E1F1E211E231E251E271E291E2B1E2D1E2F1E311E331E351E371E391E3B1E3D1E3F1E411E431E451E471E491E4B1E4D1E4F1E511E531E551E571E591E5B1E5D1E5F1E611E631E651E671E691E6B1E6D1E6F1E711E731E751E771E791E7B1E7D1E7F1E811E831E851E871E891E8B1E8D1E8F1E911E931E95-1E9D1E9F1EA11EA31EA51EA71EA91EAB1EAD1EAF1EB11EB31EB51EB71EB91EBB1EBD1EBF1EC11EC31EC51EC71EC91ECB1ECD1ECF1ED11ED31ED51ED71ED91EDB1EDD1EDF1EE11EE31EE51EE71EE91EEB1EED1EEF1EF11EF31EF51EF71EF91EFB1EFD1EFF-1F071F10-1F151F20-1F271F30-1F371F40-1F451F50-1F571F60-1F671F70-1F7D1F80-1F871F90-1F971FA0-1FA71FB0-1FB41FB61FB71FBE1FC2-1FC41FC61FC71FD0-1FD31FD61FD71FE0-1FE71FF2-1FF41FF61FF7210A210E210F2113212F21342139213C213D2146-2149214E21842C30-2C5E2C612C652C662C682C6A2C6C2C712C732C742C76-2C7C2C812C832C852C872C892C8B2C8D2C8F2C912C932C952C972C992C9B2C9D2C9F2CA12CA32CA52CA72CA92CAB2CAD2CAF2CB12CB32CB52CB72CB92CBB2CBD2CBF2CC12CC32CC52CC72CC92CCB2CCD2CCF2CD12CD32CD52CD72CD92CDB2CDD2CDF2CE12CE32CE42CEC2CEE2D00-2D25A641A643A645A647A649A64BA64DA64FA651A653A655A657A659A65BA65DA65FA663A665A667A669A66BA66DA681A683A685A687A689A68BA68DA68FA691A693A695A697A723A725A727A729A72BA72DA72F-A731A733A735A737A739A73BA73DA73FA741A743A745A747A749A74BA74DA74FA751A753A755A757A759A75BA75DA75FA761A763A765A767A769A76BA76DA76FA771-A778A77AA77CA77FA781A783A785A787A78CFB00-FB06FB13-FB17FF41-FF5A",Lu:"0041-005A00C0-00D600D8-00DE01000102010401060108010A010C010E01100112011401160118011A011C011E01200122012401260128012A012C012E01300132013401360139013B013D013F0141014301450147014A014C014E01500152015401560158015A015C015E01600162016401660168016A016C016E017001720174017601780179017B017D018101820184018601870189-018B018E-0191019301940196-0198019C019D019F01A001A201A401A601A701A901AC01AE01AF01B1-01B301B501B701B801BC01C401C701CA01CD01CF01D101D301D501D701D901DB01DE01E001E201E401E601E801EA01EC01EE01F101F401F6-01F801FA01FC01FE02000202020402060208020A020C020E02100212021402160218021A021C021E02200222022402260228022A022C022E02300232023A023B023D023E02410243-02460248024A024C024E03700372037603860388-038A038C038E038F0391-03A103A3-03AB03CF03D2-03D403D803DA03DC03DE03E003E203E403E603E803EA03EC03EE03F403F703F903FA03FD-042F04600462046404660468046A046C046E04700472047404760478047A047C047E0480048A048C048E04900492049404960498049A049C049E04A004A204A404A604A804AA04AC04AE04B004B204B404B604B804BA04BC04BE04C004C104C304C504C704C904CB04CD04D004D204D404D604D804DA04DC04DE04E004E204E404E604E804EA04EC04EE04F004F204F404F604F804FA04FC04FE05000502050405060508050A050C050E05100512051405160518051A051C051E0520052205240531-055610A0-10C51E001E021E041E061E081E0A1E0C1E0E1E101E121E141E161E181E1A1E1C1E1E1E201E221E241E261E281E2A1E2C1E2E1E301E321E341E361E381E3A1E3C1E3E1E401E421E441E461E481E4A1E4C1E4E1E501E521E541E561E581E5A1E5C1E5E1E601E621E641E661E681E6A1E6C1E6E1E701E721E741E761E781E7A1E7C1E7E1E801E821E841E861E881E8A1E8C1E8E1E901E921E941E9E1EA01EA21EA41EA61EA81EAA1EAC1EAE1EB01EB21EB41EB61EB81EBA1EBC1EBE1EC01EC21EC41EC61EC81ECA1ECC1ECE1ED01ED21ED41ED61ED81EDA1EDC1EDE1EE01EE21EE41EE61EE81EEA1EEC1EEE1EF01EF21EF41EF61EF81EFA1EFC1EFE1F08-1F0F1F18-1F1D1F28-1F2F1F38-1F3F1F48-1F4D1F591F5B1F5D1F5F1F68-1F6F1FB8-1FBB1FC8-1FCB1FD8-1FDB1FE8-1FEC1FF8-1FFB21022107210B-210D2110-211221152119-211D212421262128212A-212D2130-2133213E213F214521832C00-2C2E2C602C62-2C642C672C692C6B2C6D-2C702C722C752C7E-2C802C822C842C862C882C8A2C8C2C8E2C902C922C942C962C982C9A2C9C2C9E2CA02CA22CA42CA62CA82CAA2CAC2CAE2CB02CB22CB42CB62CB82CBA2CBC2CBE2CC02CC22CC42CC62CC82CCA2CCC2CCE2CD02CD22CD42CD62CD82CDA2CDC2CDE2CE02CE22CEB2CEDA640A642A644A646A648A64AA64CA64EA650A652A654A656A658A65AA65CA65EA662A664A666A668A66AA66CA680A682A684A686A688A68AA68CA68EA690A692A694A696A722A724A726A728A72AA72CA72EA732A734A736A738A73AA73CA73EA740A742A744A746A748A74AA74CA74EA750A752A754A756A758A75AA75CA75EA760A762A764A766A768A76AA76CA76EA779A77BA77DA77EA780A782A784A786A78BFF21-FF3A",Lt:"01C501C801CB01F21F88-1F8F1F98-1F9F1FA8-1FAF1FBC1FCC1FFC",Lm:"02B0-02C102C6-02D102E0-02E402EC02EE0374037A0559064006E506E607F407F507FA081A0824082809710E460EC610FC17D718431AA71C78-1C7D1D2C-1D611D781D9B-1DBF2071207F2090-20942C7D2D6F2E2F30053031-3035303B309D309E30FC-30FEA015A4F8-A4FDA60CA67FA717-A71FA770A788A9CFAA70AADDFF70FF9EFF9F",Lo:"01BB01C0-01C3029405D0-05EA05F0-05F20621-063F0641-064A066E066F0671-06D306D506EE06EF06FA-06FC06FF07100712-072F074D-07A507B107CA-07EA0800-08150904-0939093D09500958-096109720979-097F0985-098C098F09900993-09A809AA-09B009B209B6-09B909BD09CE09DC09DD09DF-09E109F009F10A05-0A0A0A0F0A100A13-0A280A2A-0A300A320A330A350A360A380A390A59-0A5C0A5E0A72-0A740A85-0A8D0A8F-0A910A93-0AA80AAA-0AB00AB20AB30AB5-0AB90ABD0AD00AE00AE10B05-0B0C0B0F0B100B13-0B280B2A-0B300B320B330B35-0B390B3D0B5C0B5D0B5F-0B610B710B830B85-0B8A0B8E-0B900B92-0B950B990B9A0B9C0B9E0B9F0BA30BA40BA8-0BAA0BAE-0BB90BD00C05-0C0C0C0E-0C100C12-0C280C2A-0C330C35-0C390C3D0C580C590C600C610C85-0C8C0C8E-0C900C92-0CA80CAA-0CB30CB5-0CB90CBD0CDE0CE00CE10D05-0D0C0D0E-0D100D12-0D280D2A-0D390D3D0D600D610D7A-0D7F0D85-0D960D9A-0DB10DB3-0DBB0DBD0DC0-0DC60E01-0E300E320E330E40-0E450E810E820E840E870E880E8A0E8D0E94-0E970E99-0E9F0EA1-0EA30EA50EA70EAA0EAB0EAD-0EB00EB20EB30EBD0EC0-0EC40EDC0EDD0F000F40-0F470F49-0F6C0F88-0F8B1000-102A103F1050-1055105A-105D106110651066106E-10701075-1081108E10D0-10FA1100-1248124A-124D1250-12561258125A-125D1260-1288128A-128D1290-12B012B2-12B512B8-12BE12C012C2-12C512C8-12D612D8-13101312-13151318-135A1380-138F13A0-13F41401-166C166F-167F1681-169A16A0-16EA1700-170C170E-17111720-17311740-17511760-176C176E-17701780-17B317DC1820-18421844-18771880-18A818AA18B0-18F51900-191C1950-196D1970-19741980-19AB19C1-19C71A00-1A161A20-1A541B05-1B331B45-1B4B1B83-1BA01BAE1BAF1C00-1C231C4D-1C4F1C5A-1C771CE9-1CEC1CEE-1CF12135-21382D30-2D652D80-2D962DA0-2DA62DA8-2DAE2DB0-2DB62DB8-2DBE2DC0-2DC62DC8-2DCE2DD0-2DD62DD8-2DDE3006303C3041-3096309F30A1-30FA30FF3105-312D3131-318E31A0-31B731F0-31FF3400-4DB54E00-9FCBA000-A014A016-A48CA4D0-A4F7A500-A60BA610-A61FA62AA62BA66EA6A0-A6E5A7FB-A801A803-A805A807-A80AA80C-A822A840-A873A882-A8B3A8F2-A8F7A8FBA90A-A925A930-A946A960-A97CA984-A9B2AA00-AA28AA40-AA42AA44-AA4BAA60-AA6FAA71-AA76AA7AAA80-AAAFAAB1AAB5AAB6AAB9-AABDAAC0AAC2AADBAADCABC0-ABE2AC00-D7A3D7B0-D7C6D7CB-D7FBF900-FA2DFA30-FA6DFA70-FAD9FB1DFB1F-FB28FB2A-FB36FB38-FB3CFB3EFB40FB41FB43FB44FB46-FBB1FBD3-FD3DFD50-FD8FFD92-FDC7FDF0-FDFBFE70-FE74FE76-FEFCFF66-FF6FFF71-FF9DFFA0-FFBEFFC2-FFC7FFCA-FFCFFFD2-FFD7FFDA-FFDC",M:"0300-036F0483-04890591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DE-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0903093C093E-094E0951-0955096209630981-098309BC09BE-09C409C709C809CB-09CD09D709E209E30A01-0A030A3C0A3E-0A420A470A480A4B-0A4D0A510A700A710A750A81-0A830ABC0ABE-0AC50AC7-0AC90ACB-0ACD0AE20AE30B01-0B030B3C0B3E-0B440B470B480B4B-0B4D0B560B570B620B630B820BBE-0BC20BC6-0BC80BCA-0BCD0BD70C01-0C030C3E-0C440C46-0C480C4A-0C4D0C550C560C620C630C820C830CBC0CBE-0CC40CC6-0CC80CCA-0CCD0CD50CD60CE20CE30D020D030D3E-0D440D46-0D480D4A-0D4D0D570D620D630D820D830DCA0DCF-0DD40DD60DD8-0DDF0DF20DF30E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F3E0F3F0F71-0F840F860F870F90-0F970F99-0FBC0FC6102B-103E1056-1059105E-10601062-10641067-106D1071-10741082-108D108F109A-109D135F1712-17141732-1734175217531772177317B6-17D317DD180B-180D18A91920-192B1930-193B19B0-19C019C819C91A17-1A1B1A55-1A5E1A60-1A7C1A7F1B00-1B041B34-1B441B6B-1B731B80-1B821BA1-1BAA1C24-1C371CD0-1CD21CD4-1CE81CED1CF21DC0-1DE61DFD-1DFF20D0-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66F-A672A67CA67DA6F0A6F1A802A806A80BA823-A827A880A881A8B4-A8C4A8E0-A8F1A926-A92DA947-A953A980-A983A9B3-A9C0AA29-AA36AA43AA4CAA4DAA7BAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE3-ABEAABECABEDFB1EFE00-FE0FFE20-FE26",Mn:"0300-036F0483-04870591-05BD05BF05C105C205C405C505C70610-061A064B-065E067006D6-06DC06DF-06E406E706E806EA-06ED07110730-074A07A6-07B007EB-07F30816-0819081B-08230825-08270829-082D0900-0902093C0941-0948094D0951-095509620963098109BC09C1-09C409CD09E209E30A010A020A3C0A410A420A470A480A4B-0A4D0A510A700A710A750A810A820ABC0AC1-0AC50AC70AC80ACD0AE20AE30B010B3C0B3F0B41-0B440B4D0B560B620B630B820BC00BCD0C3E-0C400C46-0C480C4A-0C4D0C550C560C620C630CBC0CBF0CC60CCC0CCD0CE20CE30D41-0D440D4D0D620D630DCA0DD2-0DD40DD60E310E34-0E3A0E47-0E4E0EB10EB4-0EB90EBB0EBC0EC8-0ECD0F180F190F350F370F390F71-0F7E0F80-0F840F860F870F90-0F970F99-0FBC0FC6102D-10301032-10371039103A103D103E10581059105E-10601071-1074108210851086108D109D135F1712-17141732-1734175217531772177317B7-17BD17C617C9-17D317DD180B-180D18A91920-19221927192819321939-193B1A171A181A561A58-1A5E1A601A621A65-1A6C1A73-1A7C1A7F1B00-1B031B341B36-1B3A1B3C1B421B6B-1B731B801B811BA2-1BA51BA81BA91C2C-1C331C361C371CD0-1CD21CD4-1CE01CE2-1CE81CED1DC0-1DE61DFD-1DFF20D0-20DC20E120E5-20F02CEF-2CF12DE0-2DFF302A-302F3099309AA66FA67CA67DA6F0A6F1A802A806A80BA825A826A8C4A8E0-A8F1A926-A92DA947-A951A980-A982A9B3A9B6-A9B9A9BCAA29-AA2EAA31AA32AA35AA36AA43AA4CAAB0AAB2-AAB4AAB7AAB8AABEAABFAAC1ABE5ABE8ABEDFB1EFE00-FE0FFE20-FE26",Mc:"0903093E-09400949-094C094E0982098309BE-09C009C709C809CB09CC09D70A030A3E-0A400A830ABE-0AC00AC90ACB0ACC0B020B030B3E0B400B470B480B4B0B4C0B570BBE0BBF0BC10BC20BC6-0BC80BCA-0BCC0BD70C01-0C030C41-0C440C820C830CBE0CC0-0CC40CC70CC80CCA0CCB0CD50CD60D020D030D3E-0D400D46-0D480D4A-0D4C0D570D820D830DCF-0DD10DD8-0DDF0DF20DF30F3E0F3F0F7F102B102C10311038103B103C105610571062-10641067-106D108310841087-108C108F109A-109C17B617BE-17C517C717C81923-19261929-192B193019311933-193819B0-19C019C819C91A19-1A1B1A551A571A611A631A641A6D-1A721B041B351B3B1B3D-1B411B431B441B821BA11BA61BA71BAA1C24-1C2B1C341C351CE11CF2A823A824A827A880A881A8B4-A8C3A952A953A983A9B4A9B5A9BAA9BBA9BD-A9C0AA2FAA30AA33AA34AA4DAA7BABE3ABE4ABE6ABE7ABE9ABEAABEC",Me:"0488048906DE20DD-20E020E2-20E4A670-A672",N:"0030-003900B200B300B900BC-00BE0660-066906F0-06F907C0-07C90966-096F09E6-09EF09F4-09F90A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BF20C66-0C6F0C78-0C7E0CE6-0CEF0D66-0D750E50-0E590ED0-0ED90F20-0F331040-10491090-10991369-137C16EE-16F017E0-17E917F0-17F91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C5920702074-20792080-20892150-21822185-21892460-249B24EA-24FF2776-27932CFD30073021-30293038-303A3192-31953220-32293251-325F3280-328932B1-32BFA620-A629A6E6-A6EFA830-A835A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nd:"0030-00390660-066906F0-06F907C0-07C90966-096F09E6-09EF0A66-0A6F0AE6-0AEF0B66-0B6F0BE6-0BEF0C66-0C6F0CE6-0CEF0D66-0D6F0E50-0E590ED0-0ED90F20-0F291040-10491090-109917E0-17E91810-18191946-194F19D0-19DA1A80-1A891A90-1A991B50-1B591BB0-1BB91C40-1C491C50-1C59A620-A629A8D0-A8D9A900-A909A9D0-A9D9AA50-AA59ABF0-ABF9FF10-FF19",Nl:"16EE-16F02160-21822185-218830073021-30293038-303AA6E6-A6EF",No:"00B200B300B900BC-00BE09F4-09F90BF0-0BF20C78-0C7E0D70-0D750F2A-0F331369-137C17F0-17F920702074-20792080-20892150-215F21892460-249B24EA-24FF2776-27932CFD3192-31953220-32293251-325F3280-328932B1-32BFA830-A835",P:"0021-00230025-002A002C-002F003A003B003F0040005B-005D005F007B007D00A100AB00B700BB00BF037E0387055A-055F0589058A05BE05C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F3A-0F3D0F850FD0-0FD4104A-104F10FB1361-13681400166D166E169B169C16EB-16ED1735173617D4-17D617D8-17DA1800-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD32010-20272030-20432045-20512053-205E207D207E208D208E2329232A2768-277527C527C627E6-27EF2983-299829D8-29DB29FC29FD2CF9-2CFC2CFE2CFF2E00-2E2E2E302E313001-30033008-30113014-301F3030303D30A030FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFD3EFD3FFE10-FE19FE30-FE52FE54-FE61FE63FE68FE6AFE6BFF01-FF03FF05-FF0AFF0C-FF0FFF1AFF1BFF1FFF20FF3B-FF3DFF3FFF5BFF5DFF5F-FF65",Pd:"002D058A05BE140018062010-20152E172E1A301C303030A0FE31FE32FE58FE63FF0D",Ps:"0028005B007B0F3A0F3C169B201A201E2045207D208D23292768276A276C276E27702772277427C527E627E827EA27EC27EE2983298529872989298B298D298F299129932995299729D829DA29FC2E222E242E262E283008300A300C300E3010301430163018301A301DFD3EFE17FE35FE37FE39FE3BFE3DFE3FFE41FE43FE47FE59FE5BFE5DFF08FF3BFF5BFF5FFF62",Pe:"0029005D007D0F3B0F3D169C2046207E208E232A2769276B276D276F27712773277527C627E727E927EB27ED27EF298429862988298A298C298E2990299229942996299829D929DB29FD2E232E252E272E293009300B300D300F3011301530173019301B301E301FFD3FFE18FE36FE38FE3AFE3CFE3EFE40FE42FE44FE48FE5AFE5CFE5EFF09FF3DFF5DFF60FF63",Pi:"00AB2018201B201C201F20392E022E042E092E0C2E1C2E20",Pf:"00BB2019201D203A2E032E052E0A2E0D2E1D2E21",Pc:"005F203F20402054FE33FE34FE4D-FE4FFF3F",Po:"0021-00230025-0027002A002C002E002F003A003B003F0040005C00A100B700BF037E0387055A-055F058905C005C305C605F305F40609060A060C060D061B061E061F066A-066D06D40700-070D07F7-07F90830-083E0964096509700DF40E4F0E5A0E5B0F04-0F120F850FD0-0FD4104A-104F10FB1361-1368166D166E16EB-16ED1735173617D4-17D617D8-17DA1800-18051807-180A1944194519DE19DF1A1E1A1F1AA0-1AA61AA8-1AAD1B5A-1B601C3B-1C3F1C7E1C7F1CD3201620172020-20272030-2038203B-203E2041-20432047-205120532055-205E2CF9-2CFC2CFE2CFF2E002E012E06-2E082E0B2E0E-2E162E182E192E1B2E1E2E1F2E2A-2E2E2E302E313001-3003303D30FBA4FEA4FFA60D-A60FA673A67EA6F2-A6F7A874-A877A8CEA8CFA8F8-A8FAA92EA92FA95FA9C1-A9CDA9DEA9DFAA5C-AA5FAADEAADFABEBFE10-FE16FE19FE30FE45FE46FE49-FE4CFE50-FE52FE54-FE57FE5F-FE61FE68FE6AFE6BFF01-FF03FF05-FF07FF0AFF0CFF0EFF0FFF1AFF1BFF1FFF20FF3CFF61FF64FF65",S:"0024002B003C-003E005E0060007C007E00A2-00A900AC00AE-00B100B400B600B800D700F702C2-02C502D2-02DF02E5-02EB02ED02EF-02FF03750384038503F604820606-0608060B060E060F06E906FD06FE07F609F209F309FA09FB0AF10B700BF3-0BFA0C7F0CF10CF20D790E3F0F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-139917DB194019E0-19FF1B61-1B6A1B74-1B7C1FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE20442052207A-207C208A-208C20A0-20B8210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B2140-2144214A-214D214F2190-2328232B-23E82400-24262440-244A249C-24E92500-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE27C0-27C427C7-27CA27CC27D0-27E527F0-29822999-29D729DC-29FB29FE-2B4C2B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F309B309C319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A700-A716A720A721A789A78AA828-A82BA836-A839AA77-AA79FB29FDFCFDFDFE62FE64-FE66FE69FF04FF0BFF1C-FF1EFF3EFF40FF5CFF5EFFE0-FFE6FFE8-FFEEFFFCFFFD",Sm:"002B003C-003E007C007E00AC00B100D700F703F60606-060820442052207A-207C208A-208C2140-2144214B2190-2194219A219B21A021A321A621AE21CE21CF21D221D421F4-22FF2308-230B23202321237C239B-23B323DC-23E125B725C125F8-25FF266F27C0-27C427C7-27CA27CC27D0-27E527F0-27FF2900-29822999-29D729DC-29FB29FE-2AFF2B30-2B442B47-2B4CFB29FE62FE64-FE66FF0BFF1C-FF1EFF5CFF5EFFE2FFE9-FFEC",Sc:"002400A2-00A5060B09F209F309FB0AF10BF90E3F17DB20A0-20B8A838FDFCFE69FF04FFE0FFE1FFE5FFE6",Sk:"005E006000A800AF00B400B802C2-02C502D2-02DF02E5-02EB02ED02EF-02FF0375038403851FBD1FBF-1FC11FCD-1FCF1FDD-1FDF1FED-1FEF1FFD1FFE309B309CA700-A716A720A721A789A78AFF3EFF40FFE3",So:"00A600A700A900AE00B000B60482060E060F06E906FD06FE07F609FA0B700BF3-0BF80BFA0C7F0CF10CF20D790F01-0F030F13-0F170F1A-0F1F0F340F360F380FBE-0FC50FC7-0FCC0FCE0FCF0FD5-0FD8109E109F13601390-1399194019E0-19FF1B61-1B6A1B74-1B7C210021012103-21062108210921142116-2118211E-2123212521272129212E213A213B214A214C214D214F2195-2199219C-219F21A121A221A421A521A7-21AD21AF-21CD21D021D121D321D5-21F32300-2307230C-231F2322-2328232B-237B237D-239A23B4-23DB23E2-23E82400-24262440-244A249C-24E92500-25B625B8-25C025C2-25F72600-266E2670-26CD26CF-26E126E326E8-26FF2701-27042706-2709270C-27272729-274B274D274F-27522756-275E2761-276727942798-27AF27B1-27BE2800-28FF2B00-2B2F2B452B462B50-2B592CE5-2CEA2E80-2E992E9B-2EF32F00-2FD52FF0-2FFB300430123013302030363037303E303F319031913196-319F31C0-31E33200-321E322A-32503260-327F328A-32B032C0-32FE3300-33FF4DC0-4DFFA490-A4C6A828-A82BA836A837A839AA77-AA79FDFDFFE4FFE8FFEDFFEEFFFCFFFD",Z:"002000A01680180E2000-200A20282029202F205F3000",Zs:"002000A01680180E2000-200A202F205F3000",Zl:"2028",Zp:"2029",C:"0000-001F007F-009F00AD03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-0605061C061D0620065F06DD070E070F074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17B417B517DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF200B-200F202A-202E2060-206F20722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-F8FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFD-FF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFFBFFFEFFFF",Cc:"0000-001F007F-009F",Cf:"00AD0600-060306DD070F17B417B5200B-200F202A-202E2060-2064206A-206FFEFFFFF9-FFFB",Co:"E000-F8FF",Cs:"D800-DFFF",Cn:"03780379037F-0383038B038D03A20526-05300557055805600588058B-059005C8-05CF05EB-05EF05F5-05FF06040605061C061D0620065F070E074B074C07B2-07BF07FB-07FF082E082F083F-08FF093A093B094F095609570973-097809800984098D098E0991099209A909B109B3-09B509BA09BB09C509C609C909CA09CF-09D609D8-09DB09DE09E409E509FC-0A000A040A0B-0A0E0A110A120A290A310A340A370A3A0A3B0A3D0A43-0A460A490A4A0A4E-0A500A52-0A580A5D0A5F-0A650A76-0A800A840A8E0A920AA90AB10AB40ABA0ABB0AC60ACA0ACE0ACF0AD1-0ADF0AE40AE50AF00AF2-0B000B040B0D0B0E0B110B120B290B310B340B3A0B3B0B450B460B490B4A0B4E-0B550B58-0B5B0B5E0B640B650B72-0B810B840B8B-0B8D0B910B96-0B980B9B0B9D0BA0-0BA20BA5-0BA70BAB-0BAD0BBA-0BBD0BC3-0BC50BC90BCE0BCF0BD1-0BD60BD8-0BE50BFB-0C000C040C0D0C110C290C340C3A-0C3C0C450C490C4E-0C540C570C5A-0C5F0C640C650C70-0C770C800C810C840C8D0C910CA90CB40CBA0CBB0CC50CC90CCE-0CD40CD7-0CDD0CDF0CE40CE50CF00CF3-0D010D040D0D0D110D290D3A-0D3C0D450D490D4E-0D560D58-0D5F0D640D650D76-0D780D800D810D840D97-0D990DB20DBC0DBE0DBF0DC7-0DC90DCB-0DCE0DD50DD70DE0-0DF10DF5-0E000E3B-0E3E0E5C-0E800E830E850E860E890E8B0E8C0E8E-0E930E980EA00EA40EA60EA80EA90EAC0EBA0EBE0EBF0EC50EC70ECE0ECF0EDA0EDB0EDE-0EFF0F480F6D-0F700F8C-0F8F0F980FBD0FCD0FD9-0FFF10C6-10CF10FD-10FF1249124E124F12571259125E125F1289128E128F12B112B612B712BF12C112C612C712D7131113161317135B-135E137D-137F139A-139F13F5-13FF169D-169F16F1-16FF170D1715-171F1737-173F1754-175F176D17711774-177F17DE17DF17EA-17EF17FA-17FF180F181A-181F1878-187F18AB-18AF18F6-18FF191D-191F192C-192F193C-193F1941-1943196E196F1975-197F19AC-19AF19CA-19CF19DB-19DD1A1C1A1D1A5F1A7D1A7E1A8A-1A8F1A9A-1A9F1AAE-1AFF1B4C-1B4F1B7D-1B7F1BAB-1BAD1BBA-1BFF1C38-1C3A1C4A-1C4C1C80-1CCF1CF3-1CFF1DE7-1DFC1F161F171F1E1F1F1F461F471F4E1F4F1F581F5A1F5C1F5E1F7E1F7F1FB51FC51FD41FD51FDC1FF01FF11FF51FFF2065-206920722073208F2095-209F20B9-20CF20F1-20FF218A-218F23E9-23FF2427-243F244B-245F26CE26E226E4-26E727002705270A270B2728274C274E2753-2755275F27602795-279727B027BF27CB27CD-27CF2B4D-2B4F2B5A-2BFF2C2F2C5F2CF2-2CF82D26-2D2F2D66-2D6E2D70-2D7F2D97-2D9F2DA72DAF2DB72DBF2DC72DCF2DD72DDF2E32-2E7F2E9A2EF4-2EFF2FD6-2FEF2FFC-2FFF3040309730983100-3104312E-3130318F31B8-31BF31E4-31EF321F32FF4DB6-4DBF9FCC-9FFFA48D-A48FA4C7-A4CFA62C-A63FA660A661A674-A67BA698-A69FA6F8-A6FFA78D-A7FAA82C-A82FA83A-A83FA878-A87FA8C5-A8CDA8DA-A8DFA8FC-A8FFA954-A95EA97D-A97FA9CEA9DA-A9DDA9E0-A9FFAA37-AA3FAA4EAA4FAA5AAA5BAA7C-AA7FAAC3-AADAAAE0-ABBFABEEABEFABFA-ABFFD7A4-D7AFD7C7-D7CAD7FC-D7FFFA2EFA2FFA6EFA6FFADA-FAFFFB07-FB12FB18-FB1CFB37FB3DFB3FFB42FB45FBB2-FBD2FD40-FD4FFD90FD91FDC8-FDEFFDFEFDFFFE1A-FE1FFE27-FE2FFE53FE67FE6C-FE6FFE75FEFDFEFEFF00FFBF-FFC1FFC8FFC9FFD0FFD1FFD8FFD9FFDD-FFDFFFE7FFEF-FFF8FFFEFFFF"})}),define("ace/token_iterator",["require","exports","module"],function(e,t,i){"use strict";var n=function(e,t,i){this.$session=e,this.$row=t,this.$rowTokens=e.getTokens(t);var n=e.getTokenAt(t,i);this.$tokenIndex=n?n.index:-1};(function(){this.stepBackward=function(){for(this.$tokenIndex-=1;this.$tokenIndex<0;){if(this.$row-=1,this.$row<0)return this.$row=0,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=this.$rowTokens.length-1}return this.$rowTokens[this.$tokenIndex]},this.stepForward=function(){var e;for(this.$tokenIndex+=1;this.$tokenIndex>=this.$rowTokens.length;){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0!==i)return i;for(i=0;0<t;)i+=e[t-=1].value.length;return i},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}}}).call(n.prototype),t.TokenIterator=n}),define("ace/mode/text",["require","exports","module","ace/tokenizer","ace/mode/text_highlight_rules","ace/mode/behaviour","ace/unicode","ace/lib/lang","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var n=e("../tokenizer").Tokenizer,s=e("./text_highlight_rules").TextHighlightRules,r=e("./behaviour").Behaviour,o=e("../unicode"),y=e("../lib/lang"),p=e("../token_iterator").TokenIterator,m=e("../range").Range,a=function(){this.HighlightRules=s,this.$behaviour=new r};(function(){this.tokenRe=new RegExp("^["+o.packages.L+o.packages.Mn+o.packages.Mc+o.packages.Nd+o.packages.Pc+"\\$_]+","g"),this.nonTokenRe=new RegExp("^(?:[^"+o.packages.L+o.packages.Mn+o.packages.Mc+o.packages.Nd+o.packages.Pc+"\\$_]|\\s])+","g"),this.getTokenizer=function(){return this.$tokenizer||(this.$highlightRules=this.$highlightRules||new this.HighlightRules,this.$tokenizer=new n(this.$highlightRules.getRules())),this.$tokenizer},this.lineCommentStart="",this.blockComment="",this.toggleCommentLines=function(e,s,i,n){function t(e){for(var t=i;t<=n;t++)e(r.getLine(t),t)}var r=s.doc,o=!0,a=!0,l=1/0,c=s.getTabSize(),h=!1;if(this.lineCommentStart){if(Array.isArray(this.lineCommentStart))p=this.lineCommentStart.map(y.escapeRegExp).join("|"),g=this.lineCommentStart[0];else p=y.escapeRegExp(this.lineCommentStart),g=this.lineCommentStart;p=new RegExp("^(\\s*)(?:"+p+") ?"),h=s.getUseSoftTabs();A=function(e,t){var i=e.match(p);if(i){var n=i[1].length,s=i[0].length;!d(e,n,s)&&" "==i[0][s-1]&&s--,r.removeInLine(t,n,s)}};var u=g+" ",d=(C=function(e,t){o&&!/\S/.test(e)||(d(e,l,l)?r.insertInLine({row:t,column:l},u):r.insertInLine({row:t,column:l},g))},v=function(e,t){return p.test(e)},function(e,t,i){for(var n=0;t--&&" "==e.charAt(t);)n++;if(n%c!=0)return!1;for(n=0;" "==e.charAt(i++);)n++;return 2<c?n%c!=c-1:n%c==0})}else{if(!this.blockComment)return!1;var g=this.blockComment.start,f=this.blockComment.end,p=new RegExp("^(\\s*)(?:"+y.escapeRegExp(g)+")"),m=new RegExp("(?:"+y.escapeRegExp(f)+")\\s*$"),C=function(e,t){v(e,t)||o&&!/\S/.test(e)||(r.insertInLine({row:t,column:e.length},f),r.insertInLine({row:t,column:l},g))},A=function(e,t){var i;(i=e.match(m))&&r.removeInLine(t,e.length-i[0].length,e.length),(i=e.match(p))&&r.removeInLine(t,i[1].length,i[0].length)},v=function(e,t){if(p.test(e))return!0;for(var i=s.getTokens(t),n=0;n<i.length;n++)if("comment"===i[n].type)return!0}}var b=1/0;t(function(e,t){var i=e.search(/\S/);-1!==i?(i<l&&(l=i),a&&!v(e,t)&&(a=!1)):b>e.length&&(b=e.length)}),l==1/0&&(l=b,a=o=!1),h&&l%c!=0&&(l=Math.floor(l/c)*c),t(a?A:C)},this.toggleBlockComment=function(e,t,i,n){var s=this.blockComment;if(s){!s.start&&s[0]&&(s=s[0]);var r,o,a=(g=new p(t,n.row,n.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(var c,h;a&&/comment/.test(a.type);){if(-1!=(f=a.value.indexOf(s.start))){var u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+f;c=new m(u,d,u,d+s.start.length);break}a=g.stepBackward()}var g;for(a=(g=new p(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){var f;if(-1!=(f=a.value.indexOf(s.end))){u=g.getCurrentTokenRow(),d=g.getCurrentTokenColumn()+f;h=new m(u,d,u,d+s.end.length);break}a=g.stepForward()}h&&t.remove(h),c&&(t.remove(c),r=c.start.row,o=-s.start.length)}else o=s.start.length,r=i.start.row,t.insert(i.end,s.end),t.insert(i.start,s.start);l.start.row==r&&(l.start.column+=o),l.end.row==r&&(l.end.column+=o),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e)e[n]&&(this.$embeds.push(n),this.$modes[n]=new e[n]);var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(n=0;n<s.length;n++)!function(e){var t=s[n],i=e[t];e[s[n]]=function(){return this.$delegator(t,arguments,i)}}(this)},this.$delegator=function(e,t,i){var n=t[0];"string"!=typeof n&&(n=n[0]);for(var s=0;s<this.$embeds.length;s++)if(this.$modes[this.$embeds[s]]){var r=n.split(this.$embeds[s]);if(!r[0]&&r[1]){t[0]=r[1];var o=this.$modes[this.$embeds[s]];return o[e].apply(o,t)}}var a=i.apply(this,t);return i?a:void 0},this.transformAction=function(e,t,i,n,s){if(this.$behaviour){var r=this.$behaviour.getBehaviours();for(var o in r)if(r[o][t]){var a=r[o][t].apply(this,arguments);if(a)return a}}},this.getKeywords=function(e){if(!this.completionKeywords){var t=this.$tokenizer.rules,i=[];for(var n in t)for(var s=t[n],r=0,o=s.length;r<o;r++)if("string"==typeof s[r].token)/keyword|support|storage/.test(s[r].token)&&i.push(s[r].regex);else if("object"==typeof s[r].token)for(var a=0,l=s[r].token.length;a<l;a++)if(/keyword|support|storage/.test(s[r].token[a])){n=s[r].regex.match(/\(.+?\)/g)[a];i.push(n.substr(1,n.length-2))}this.completionKeywords=i}return e?i.concat(this.$keywordList||[]):this.$keywordList},this.$createKeywordList=function(){return this.$highlightRules||this.getTokenizer(),this.$keywordList=this.$highlightRules.$keywordList||[]},this.getCompletions=function(e,t,i,n){return(this.$keywordList||this.$createKeywordList()).map(function(e){return{name:e,value:e,score:0,meta:"keyword"}})},this.$id="ace/mode/text"}).call(a.prototype),t.Mode=a}),define("ace/apply_delta",["require","exports","module"],function(e,t,i){"use strict";t.applyDelta=function(e,t,i){var n=t.start.row,s=t.start.column,r=e[n]||"";switch(t.action){case"insert":if(1===t.lines.length)e[n]=r.substring(0,s)+t.lines[0]+r.substring(s);else{var o=[n,1].concat(t.lines);e.splice.apply(e,o),e[n]=r.substring(0,s)+e[n],e[n+t.lines.length-1]+=r.substring(s)}break;case"remove":var a=t.end.column,l=t.end.row;n===l?e[n]=r.substring(0,s)+r.substring(a):e.splice(n,l-n+1,r.substring(0,s)+e[l].substring(a))}}}),define("ace/anchor",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,r=t.Anchor=function(e,t,i){this.$onChange=this.onChange.bind(this),this.attach(e),void 0===i?this.setPosition(t.row,t.column):this.setPosition(t,i)};(function(){function h(e,t,i){var n=i?e.column<=t.column:e.column<t.column;return e.row<t.row||e.row==t.row&&n}n.implement(this,s),this.getPosition=function(){return this.$clipPositionToDocument(this.row,this.column)},this.getDocument=function(){return this.document},this.$insertRight=!1,this.onChange=function(e){if(!(e.start.row==e.end.row&&e.start.row!=this.row||e.start.row>this.row)){var t,i,n,s,r,o,a,l,c=(t=e,i={row:this.row,column:this.column},n=this.$insertRight,s="insert"==t.action,r=(s?1:-1)*(t.end.row-t.start.row),o=(s?1:-1)*(t.end.column-t.start.column),a=t.start,l=s?a:t.end,h(i,a,n)?{row:i.row,column:i.column}:h(l,i,!n)?{row:i.row+r,column:i.column+(i.row==l.row?o:0)}:{row:a.row,column:a.column});this.setPosition(c.row,c.column,!0)}},this.setPosition=function(e,t,i){var n;if(n=i?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=n.row||this.column!=n.column){var s={row:this.row,column:this.column};this.row=n.row,this.column=n.column,this._signal("change",{old:s,value:n})}},this.detach=function(){this.document.removeEventListener("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):i.column=e<0?i.row=0:(i.row=e,Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}).call(r.prototype)}),define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,h=e("./range").Range,o=e("./anchor").Anchor,a=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){n.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new h(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new o(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{(t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column);var i=t.length-1;e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),n=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:n,action:"insert",lines:[t]},!0),this.clonePos(n)},this.clippedPos=function(e,t){var i=this.getLength();void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0);var n=this.getLine(e);return null==t&&(t=n.length),{row:e,column:t=Math.min(Math.max(t,0),n.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0;i=(e=Math.min(Math.max(e,0),this.getLength()))<this.getLength()?(t=t.concat([""]),0):(t=[""].concat(t),e--,this.$lines[e].length),this.insertMergedLines({row:e,column:i},t)},this.insertMergedLines=function(e,t){var i=this.clippedPos(e.row,e.column),n={row:i.row+t.length-1,column:(1==t.length?i.column:0)+t[t.length-1].length};return this.applyDelta({start:i,end:n,action:"insert",lines:t}),this.clonePos(n)},this.remove=function(e){var t=this.clippedPos(e.start.row,e.start.column),i=this.clippedPos(e.end.row,e.end.column);return this.applyDelta({start:t,end:i,action:"remove",lines:this.getLinesForRange({start:t,end:i})}),this.clonePos(t)},this.removeInLine=function(e,t,i){var n=this.clippedPos(e,t),s=this.clippedPos(e,i);return this.applyDelta({start:n,end:s,action:"remove",lines:this.getLinesForRange({start:n,end:s})},!0),this.clonePos(n)},this.removeFullLines=function(e,t){e=Math.min(Math.max(0,e),this.getLength()-1);var i=(t=Math.min(Math.max(0,t),this.getLength()-1))==this.getLength()-1&&0<e,n=t<this.getLength()-1,s=i?e-1:e,r=i?this.getLine(s).length:0,o=n?t+1:t,a=n?0:this.getLine(o).length,l=new h(s,r,o,a),c=this.$lines.slice(e,t+1);return this.applyDelta({start:l.start,end:l.end,action:"remove",lines:this.getLinesForRange(l)}),c},this.removeNewLine=function(e){e<this.getLength()-1&&0<=e&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return!e instanceof h&&(e=h.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),t?this.insert(e.start,t):e.start)},this.applyDeltas=function(e){for(var t=0;t<e.length;t++)this.applyDelta(e[t])},this.revertDeltas=function(e){for(var t=e.length-1;0<=t;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var i="insert"==e.action;(i?e.lines.length<=1&&!e.lines[0]:!h.comparePoints(e.start,e.end))||(i&&2e4<e.lines.length&&this.$splitAndapplyLargeDelta(e,2e4),s(this.$lines,e,t),this._signal("change",e))},this.$splitAndapplyLargeDelta=function(e,t){for(var i=e.lines,n=i.length,s=e.start.row,r=e.start.column,o=0,a=0;;){o=a,a+=t-1;var l=i.slice(o,a);if(n<a){e.lines=l,e.start.row=s+o,e.start.column=r;break}l.push(""),this.applyDelta({start:this.pos(s+o,r),end:this.pos(s+a,r=0),action:e.action,lines:l},!0)}},this.revertDelta=function(e){this.applyDelta({start:this.clonePos(e.start),end:this.clonePos(e.end),action:"insert"==e.action?"remove":"insert",lines:e.lines.slice()})},this.indexToPosition=function(e,t){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,s=t||0,r=i.length;s<r;s++)if((e-=i[s].length+n)<0)return{row:s,column:e+i[s].length+n};return{row:r-1,column:i[r-1].length}},this.positionToIndex=function(e,t){for(var i=this.$lines||this.getAllLines(),n=this.getNewLineCharacter().length,s=0,r=Math.min(e.row,i.length),o=t||0;o<r;++o)s+=i[o].length+n;return s+e.column}}).call(a.prototype),t.Document=a}),define("ace/background_tokenizer",["require","exports","module","ace/lib/oop","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/event_emitter").EventEmitter,r=function(e,t){this.running=!1,this.lines=[],this.states=[],this.currentLine=0,this.tokenizer=e;var a=this;this.$worker=function(){if(a.running){for(var e=new Date,t=a.currentLine,i=-1,n=a.doc,s=t;a.lines[t];)t++;var r=n.getLength(),o=0;for(a.running=!1;t<r;){for(a.$tokenizeRow(t),i=t;t++,a.lines[t];);if(++o%5==0&&20<new Date-e){a.running=setTimeout(a.$worker,20);break}}a.currentLine=t,s<=i&&a.fireUpdateEvent(s,i)}}};(function(){n.implement(this,s),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var i={first:e,last:t};this._signal("update",{data:i})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,i+1,null),this.states.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.lines.splice.apply(this.lines,n),this.states.splice.apply(this.states,n)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),i=this.states[e-1],n=this.tokenizer.getLineTokens(t,i,e);return this.states[e]+""!=n.state+""?(this.states[e]=n.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=n.tokens}}).call(r.prototype),t.BackgroundTokenizer=r}),define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";var c=e("./lib/lang"),h=(e("./lib/oop"),e("./range").Range),n=function(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var s=n.firstRow,r=n.lastRow,o=s;o<=r;o++){var a=this.cache[o];null==a&&((a=c.getMatchOffsets(i.getLine(o),this.regExp)).length>this.MAX_RANGES&&(a=a.slice(0,this.MAX_RANGES)),a=a.map(function(e){return new h(o,e.offset,o,e.offset+e.length)}),this.cache[o]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function c(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var i=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,i.end.row,i.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.row<this.startRow||e.endRow>this.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0<this.range.compareEnd(e.start.row,e.start.column)?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,s,r=0,o=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var l=0;l<o.length;l++){if(-1==(s=(n=o[l]).range.compareStart(t,i)))return void e(null,t,i,r,a);if(!e(null,n.start.row,n.start.column,r,a)&&e(n.placeholder,n.start.row,n.start.column,r)||0===s)return;a=!n.sameRow,r=n.end.column}e(null,t,i,r,a)},this.getNextFoldTo=function(e,t){for(var i,n,s=0;s<this.folds.length;s++){if(-1==(n=(i=this.folds[s]).range.compareEnd(e,t)))return{fold:i,kind:"after"};if(0===n)return{fold:i,kind:"inside"}}return null},this.addRemoveChars=function(e,t,i){var n,s,r=this.getNextFoldTo(e,t);if(r)if(n=r.fold,"inside"==r.kind&&n.start.column!=t&&n.start.row!=e)window.console&&window.console.log(e,t,n);else if(n.start.row==e){var o=(s=this.folds).indexOf(n);for(0===o&&(this.start.column+=i);o<s.length;o++){if((n=s[o]).start.column+=i,!n.sameRow)return;n.end.column+=i}this.end.column+=i}},this.split=function(e,t){var i=this.getNextFoldTo(e,t);if(!i||"inside"==i.kind)return null;var n=i.fold,s=this.folds,r=this.foldData,o=s.indexOf(n),a=s[o-1];this.end.row=a.end.row,this.end.column=a.end.column;var l=new c(r,s=s.splice(o,s.length-o));return r.splice(r.indexOf(this)+1,0,l),l},this.merge=function(e){for(var t=e.folds,i=0;i<t.length;i++)this.addFold(t[i]);var n=this.foldData;n.splice(n.indexOf(e),1)},this.toString=function(){var t=[this.range.toString()+": ["];return this.folds.forEach(function(e){t.push(" "+e.toString())}),t.push("]"),t.join("\n")},this.idxToPosition=function(e){for(var t=0,i=0;i<this.folds.length;i++){var n=this.folds[i];if((e-=n.start.column-t)<0)return{row:n.start.row,column:n.start.column+e};if((e-=n.placeholder.length)<0)return n.start;t=n.end.column}return{row:this.end.row,column:this.end.column+e}}}).call(c.prototype),t.FoldLine=c}),define("ace/range_list",["require","exports","module","ace/range"],function(e,t,i){"use strict";var l=e("./range").Range.comparePoints,n=function(){this.ranges=[]};(function(){this.comparePoints=l,this.pointIndex=function(e,t,i){for(var n=this.ranges,s=i||0;s<n.length;s++){var r=n[s],o=l(e,r.end);if(!(0<o)){var a=l(e,r.start);return 0===o?t&&0!==a?-s-2:s:0<a||0===a&&!t?s:-s-1}}return-s-1},this.add=function(e){var t=!e.isEmpty(),i=this.pointIndex(e.start,t);i<0&&(i=-i-1);var n=this.pointIndex(e.end,t,i);return n<0?n=-n-1:n++,this.ranges.splice(i,n-i,e)},this.addList=function(e){for(var t=[],i=e.length;i--;)t.push.call(t,this.add(e[i]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges.splice(t,1)},this.merge=function(){for(var e,t=[],i=this.ranges,n=(i=i.sort(function(e,t){return l(e.start,t.start)}))[0],s=1;s<i.length;s++){e=n,n=i[s];var r=l(e.end,n.start);r<0||(0!=r||e.isEmpty()||n.isEmpty())&&(l(e.end,n.end)<0&&(e.end.row=n.end.row,e.end.column=n.end.column),i.splice(s,1),t.push(n),n=e,s--)}return this.ranges=i,t},this.contains=function(e,t){return 0<=this.pointIndex({row:e,column:t})},this.containsPoint=function(e){return 0<=this.pointIndex(e)},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(0<=t)return this.ranges[t]},this.clipRows=function(e,t){var i=this.ranges;if(i[0].start.row>t||i[i.length-1].start.row<e)return[];var n=this.pointIndex({row:e,column:0});n<0&&(n=-n-1);var s=this.pointIndex({row:t,column:0},n);s<0&&(s=-s-1);for(var r=[],o=n;o<s;o++)r.push(i[o]);return r},this.removeAll=function(){return this.ranges.splice(0,this.ranges.length)},this.attach=function(e){this.session&&this.detach(),this.session=e,this.onChange=this.$onChange.bind(this),this.session.on("change",this.onChange)},this.detach=function(){this.session&&(this.session.removeListener("change",this.onChange),this.session=null)},this.$onChange=function(e){if("insert"==e.action)var t=e.start,i=e.end;else i=e.start,t=e.end;for(var n=t.row,s=i.row-n,r=-t.column+i.column,o=this.ranges,a=0,l=o.length;a<l;a++){if(!((c=o[a]).end.row<n)){if(c.start.row>n)break;if(c.start.row==n&&c.start.column>=t.column&&(c.start.column!=t.column||!this.$insertRight)&&(c.start.column+=r,c.start.row+=s),c.end.row==n&&c.end.column>=t.column){if(c.end.column==t.column&&this.$insertRight)continue;c.end.column==t.column&&0<r&&a<l-1&&c.end.column>c.start.column&&c.end.column==o[a+1].start.column&&(c.end.column-=r),c.end.column+=r,c.end.row+=s}}}if(0!=s&&a<l)for(;a<l;a++){var c;(c=o[a]).start.row+=s,c.end.row+=s}}}).call(n.prototype),t.RangeList=n}),define("ace/edit_session/fold",["require","exports","module","ace/range","ace/range_list","ace/lib/oop"],function(e,t,i){"use strict";function c(e,t){e.row-=t.row,0==e.row&&(e.column-=t.column)}function n(e,t){0==e.row&&(e.column+=t.column),e.row+=t.row}e("../range").Range;var s=e("../range_list").RangeList,r=e("../lib/oop"),o=t.Fold=function(e,t){this.foldLine=null,this.placeholder=t,this.range=e,this.start=e.start,this.end=e.end,this.sameRow=e.start.row==e.end.row,this.subFolds=this.ranges=[]};r.inherits(o,s),function(){this.toString=function(){return'"'+this.placeholder+'" '+this.range.toString()},this.setFoldLine=function(t){this.foldLine=t,this.subFolds.forEach(function(e){e.setFoldLine(t)})},this.clone=function(){var e=this.range.clone(),t=new o(e,this.placeholder);return this.subFolds.forEach(function(e){t.subFolds.push(e.clone())}),t.collapseChildren=this.collapseChildren,t},this.addSubFold=function(e){if(!this.range.isEqual(e)){if(!this.range.containsRange(e))throw new Error("A fold can't intersect already existing fold"+e.range+this.range);var t,i;t=e,i=this.start,c(t.start,i),c(t.end,i);for(var n=e.start.row,s=e.start.column,r=0,o=-1;r<this.subFolds.length&&1==(o=this.subFolds[r].range.compare(n,s));r++);var a=this.subFolds[r];if(0==o)return a.addSubFold(e);n=e.range.end.row,s=e.range.end.column;var l=r;for(o=-1;l<this.subFolds.length&&1==(o=this.subFolds[l].range.compare(n,s));l++);this.subFolds[l];if(0==o)throw new Error("A fold can't intersect already existing fold"+e.range+this.range);this.subFolds.splice(r,l-r,e);return e.setFoldLine(this.foldLine),e}},this.restoreRange=function(e){return t=e,i=this.start,n(t.start,i),void n(t.end,i);var t,i}}.call(o.prototype)}),define("ace/edit_session/folding",["require","exports","module","ace/range","ace/edit_session/fold_line","ace/edit_session/fold","ace/token_iterator"],function(e,t,i){"use strict";var a=e("../range").Range,p=e("./fold_line").FoldLine,m=e("./fold").Fold,l=e("../token_iterator").TokenIterator;t.Folding=function(){this.getFoldAt=function(e,t,i){var n=this.getFoldLine(e);if(!n)return null;for(var s=n.folds,r=0;r<s.length;r++){var o=s[r];if(o.range.contains(e,t)){if(1==i&&o.range.isEnd(e,t))continue;if(-1==i&&o.range.isStart(e,t))continue;return o}}},this.getFoldsInRange=function(e){var t=e.start,i=e.end,n=this.$foldData,s=[];t.column+=1,i.column-=1;for(var r=0;r<n.length;r++){var o=n[r].range.compareRange(e);if(2!=o){if(-2==o)break;for(var a=n[r].folds,l=0;l<a.length;l++){var c=a[l];if(-2==(o=c.range.compareRange(e)))break;if(2!=o){if(42==o)break;s.push(c)}}}}return t.column-=1,i.column+=1,s},this.getFoldsInRangeList=function(e){if(Array.isArray(e)){var t=[];e.forEach(function(e){t=t.concat(this.getFoldsInRange(e))},this)}else t=this.getFoldsInRange(e);return t},this.getAllFolds=function(){for(var e=[],t=this.$foldData,i=0;i<t.length;i++)for(var n=0;n<t[i].folds.length;n++)e.push(t[i].folds[n]);return e},this.getFoldStringAt=function(e,t,i,n){if(!(n=n||this.getFoldLine(e)))return null;for(var s,r,o={end:{column:0}},a=0;a<n.folds.length;a++){var l=(r=n.folds[a]).range.compareEnd(e,t);if(-1==l){s=this.getLine(r.start.row).substring(o.end.column,r.start.column);break}if(0===l)return null;o=r}return s||(s=this.getLine(r.start.row).substring(o.end.column)),-1==i?s.substring(0,t-o.end.column):1==i?s.substring(t-o.end.column):s},this.getFoldLine=function(e,t){var i=this.$foldData,n=0;for(t&&(n=i.indexOf(t)),-1==n&&(n=0);n<i.length;n++){var s=i[n];if(s.start.row<=e&&s.end.row>=e)return s;if(s.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(t&&(n=i.indexOf(t)),-1==n&&(n=0);n<i.length;n++){var s=i[n];if(s.end.row>=e)return s}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,s=0;s<i.length;s++){var r=i[s],o=r.end.row,a=r.start.row;if(t<=o){a<t&&(e<=a?n-=t-a:n=0);break}e<=o&&(n-=e<=a?o-a:o-e+1)}return n},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var i,n=this.$foldData,s=!1;e instanceof m?i=e:(i=new m(t,e)).collapseChildren=t.collapseChildren,this.$clipRangeToDocument(i.range);var r=i.start.row,o=i.start.column,a=i.end.row,l=i.end.column;if(r<a||r==a&&o<=l-2){var c=this.getFoldAt(r,o,1),h=this.getFoldAt(a,l,-1);if(c&&h==c)return c.addSubFold(i);c&&!c.range.isStart(r,o)&&this.removeFold(c),h&&!h.range.isEnd(a,l)&&this.removeFold(h);var u=this.getFoldsInRange(i.range);0<u.length&&(this.removeFolds(u),u.forEach(function(e){i.addSubFold(e)}));for(var d=0;d<n.length;d++){var g=n[d];if(a==g.start.row){g.addFold(i),s=!0;break}if(r==g.end.row){if(g.addFold(i),s=!0,!i.sameRow){var f=n[d+1];if(f&&f.start.row==a){g.merge(f);break}}break}if(a<=g.start.row)break}return s||(g=this.$addFoldLine(new p(this.$foldData,i))),this.$useWrapMode?this.$updateWrapData(g.start.row,g.start.row):this.$updateRowLengthCache(g.start.row,g.start.row),this.$modified=!0,this._emit("changeFold",{data:i,action:"add"}),i}throw new Error("The range has to be at least 2 characters width")},this.addFolds=function(e){e.forEach(function(e){this.addFold(e)},this)},this.removeFold=function(e){var t=e.foldLine,i=t.start.row,n=t.end.row,s=this.$foldData,r=t.folds;if(1==r.length)s.splice(s.indexOf(t),1);else if(t.range.isEnd(e.end.row,e.end.column))r.pop(),t.end.row=r[r.length-1].end.row,t.end.column=r[r.length-1].end.column;else if(t.range.isStart(e.start.row,e.start.column))r.shift(),t.start.row=r[0].start.row,t.start.column=r[0].start.column;else if(e.sameRow)r.splice(r.indexOf(e),1);else{var o=t.split(e.start.row,e.start.column);(r=o.folds).shift(),o.start.row=r[0].start.row,o.start.column=r[0].start.column}this.$updating||(this.$useWrapMode?this.$updateWrapData(i,n):this.$updateRowLengthCache(i,n)),this.$modified=!0,this._emit("changeFold",{data:e,action:"remove"})},this.removeFolds=function(e){for(var t=[],i=0;i<e.length;i++)t.push(e[i]);t.forEach(function(e){this.removeFold(e)},this),this.$modified=!0},this.expandFold=function(t){this.removeFold(t),t.subFolds.forEach(function(e){t.restoreRange(e),this.addFold(e)},this),0<t.collapseChildren&&this.foldAll(t.start.row+1,t.end.row,t.collapseChildren-1),t.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var i,n;if(null==e?(i=new a(0,0,this.getLength(),0),t=!0):i="number"==typeof e?new a(e,0,e,this.getLine(e).length):"row"in e?a.fromPoints(e,e):e,n=this.getFoldsInRangeList(i),t)this.removeFolds(n);else for(var s=n;s.length;)this.expandFolds(s),s=this.getFoldsInRangeList(i);if(n.length)return n},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var i=this.getFoldLine(e,t);return i?i.end.row:e},this.getRowFoldStart=function(e,t){var i=this.getFoldLine(e,t);return i?i.start.row:e},this.getFoldDisplayLine=function(e,t,i,s,r){null==s&&(s=e.start.row),null==r&&(r=0),null==t&&(t=e.end.row),null==i&&(i=this.getLine(t).length);var o=this.doc,a="";return e.walk(function(e,t,i,n){if(!(t<s)){if(t==s){if(i<r)return;n=Math.max(r,n)}a+=null!=e?e:o.getLine(t).substring(n,i)}},t,i),a},this.getDisplayLine=function(e,t,i,n){var s,r=this.getFoldLine(e);return r?this.getFoldDisplayLine(r,e,t,i,n):(s=this.doc.getLine(e)).substring(n||0,t||s.length)},this.$cloneFoldData=function(){var i=[];return i=this.$foldData.map(function(e){var t=e.folds.map(function(e){return e.clone()});return new p(i,t)})},this.toggleFold=function(e){var t,i,n=this.selection.getRange();if(n.isEmpty()){var s=n.start;if(t=this.getFoldAt(s.row,s.column))return void this.expandFold(t);(i=this.findMatchingBracket(s))?1==n.comparePoint(i)?n.end=i:(n.start=i,n.start.column++,n.end.column--):(i=this.findMatchingBracket({row:s.row,column:s.column+1}))?(1==n.comparePoint(i)?n.end=i:n.start=i,n.start.column++):n=this.getCommentFoldRange(s.row,s.column)||n}else{var r=this.getFoldsInRange(n);if(e&&r.length)return void this.expandFolds(r);1==r.length&&(t=r[0])}if(t||(t=this.getFoldAt(n.start.row,n.start.column)),t&&t.range.toString()==n.toString())this.expandFold(t);else{var o="...";if(!n.isMultiLine()){if((o=this.getTextRange(n)).length<4)return;o=o.trim().substring(0,2)+".."}this.addFold(o,n)}},this.getCommentFoldRange=function(e,t,i){var n=new l(this,e,t),s=n.getCurrentToken();if(s&&/^comment|string/.test(s.type)){var r=new a,o=new RegExp(s.type.replace(/\..*/,"\\."));if(1!=i){for(;(s=n.stepBackward())&&o.test(s.type););n.stepForward()}if(r.start.row=n.getCurrentTokenRow(),r.start.column=n.getCurrentTokenColumn()+2,n=new l(this,e,t),-1!=i){for(;(s=n.stepForward())&&o.test(s.type););s=n.stepBackward()}else s=n.getCurrentToken();return r.end.row=n.getCurrentTokenRow(),r.end.column=n.getCurrentTokenColumn()+s.value.length-2,r}},this.foldAll=function(e,t,i){null==i&&(i=1e5);var n=this.foldWidgets;if(n){t=t||this.getLength();for(var s=e=e||0;s<t;s++)if(null==n[s]&&(n[s]=this.getFoldWidget(s)),"start"==n[s]){var r=this.getFoldWidgetRange(s);if(r&&r.isMultiLine()&&r.end.row<=t&&r.start.row>=e){s=r.end.row;try{var o=this.addFold("...",r);o&&(o.collapseChildren=i)}catch(e){}}}}},this.$foldStyles={manual:1,markbegin:1,markbeginend:1},this.$foldStyle="markbegin",this.setFoldStyle=function(e){if(!this.$foldStyles[e])throw new Error("invalid fold style: "+e+"["+Object.keys(this.$foldStyles).join(", ")+"]");if(this.$foldStyle!=e){"manual"==(this.$foldStyle=e)&&this.unfold();var t=this.$foldMode;this.$setFolding(null),this.$setFolding(t)}},this.$setFolding=function(e){this.$foldMode!=e&&(this.$foldMode=e,this.off("change",this.$updateFoldWidgets),this.off("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets),this._emit("changeAnnotation"),e&&"manual"!=this.$foldStyle?(this.foldWidgets=[],this.getFoldWidget=e.getFoldWidget.bind(e,this,this.$foldStyle),this.getFoldWidgetRange=e.getFoldWidgetRange.bind(e,this,this.$foldStyle),this.$updateFoldWidgets=this.updateFoldWidgets.bind(this),this.$tokenizerUpdateFoldWidgets=this.tokenizerUpdateFoldWidgets.bind(this),this.on("change",this.$updateFoldWidgets),this.on("tokenizerUpdate",this.$tokenizerUpdateFoldWidgets)):this.foldWidgets=null)},this.getParentFoldRangeData=function(e,t){var i=this.foldWidgets;if(!i||t&&i[e])return{};for(var n,s=e-1;0<=s;){var r=i[s];if(null==r&&(r=i[s]=this.getFoldWidget(s)),"start"==r){var o=this.getFoldWidgetRange(s);if(n||(n=o),o&&o.end.row>=e)break}s--}return{range:-1!==s&&o,firstRange:n}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};if(!this.$toggleFoldWidget(e,i)){var n=t.target||t.srcElement;n&&/ace_fold-widget/.test(n.className)&&(n.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var i=this.getFoldWidget(e),n=this.getLine(e),s="end"===i?-1:1,r=this.getFoldAt(e,-1===s?0:n.length,s);if(r)t.children||t.all?this.removeFold(r):this.expandFold(r);else{var o=this.getFoldWidgetRange(e,!0);if(!o||o.isMultiLine()||!(r=this.getFoldAt(o.start.row,o.start.column,1))||!o.isEqual(r.range)){if(t.siblings){var a=this.getParentFoldRangeData(e);if(a.range)var l=a.range.start.row+1,c=a.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=o?o.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):o&&(t.all&&(o.collapseChildren=1e4),this.addFold("...",o));return o}this.removeFold(r)}}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var i=this.$toggleFoldWidget(t,{});if(!i){var n=this.getParentFoldRangeData(t,!0);if(i=n.range||n.firstRange){t=i.start.row;var s=this.getFoldAt(t,this.getLine(t).length,1);s?this.removeFold(s):this.addFold("...",i)}}},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;if(0===i)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,i+1,null);else{var n=Array(i+1);n.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,n)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}}),define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var u=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var i=t||this.getLine(e.row).charAt(e.column-1);if(""==i)return null;var n=i.match(/([\(\[\{])|([\)\]\}])/);return n?n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e):null},this.getBracketRange=function(e){var t,i=this.getLine(e.row),n=!0,s=i.charAt(e.column-1),r=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(r||(s=i.charAt(e.column),e={row:e.row,column:e.column+1},r=s&&s.match(/([\(\[\{])|([\)\]\}])/),n=!1),!r)return null;if(r[1]){if(!(o=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,o),n||(t.end.column++,t.start.column--),t.cursor=t.end}else{var o;if(!(o=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(o,e),n||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],s=1,r=new u(this,t.row,t.column),o=r.getCurrentToken();if(o||(o=r.stepForward()),o){i||(i=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn()-2,l=o.value;;){for(;0<=a;){var c=l.charAt(a);if(c==n){if(0==(s-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else c==e&&(s+=1);a-=1}for(;(o=r.stepBackward())&&!i.test(o.type););if(null==o)break;a=(l=o.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],s=1,r=new u(this,t.row,t.column),o=r.getCurrentToken();if(o||(o=r.stepForward()),o){i||(i=new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));for(var a=t.column-r.getCurrentTokenColumn();;){for(var l=o.value,c=l.length;a<c;){var h=l.charAt(a);if(h==n){if(0==(s-=1))return{row:r.getCurrentTokenRow(),column:a+r.getCurrentTokenColumn()}}else h==e&&(s+=1);a+=1}for(;(o=r.stepForward())&&!i.test(o.type););if(null==o)break;a=0}return null}}}}),define("ace/edit_session",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/config","ace/lib/event_emitter","ace/selection","ace/mode/text","ace/range","ace/document","ace/background_tokenizer","ace/search_highlight","ace/edit_session/folding","ace/edit_session/bracket_match"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/lang"),r=e("./config"),o=e("./lib/event_emitter").EventEmitter,a=e("./selection").Selection,l=e("./mode/text").Mode,h=e("./range").Range,c=e("./document").Document,u=e("./background_tokenizer").BackgroundTokenizer,d=e("./search_highlight").SearchHighlight,g=function(e,t){this.$breakpoints=[],this.$decorations=[],this.$frontMarkers={},this.$backMarkers={},this.$markerId=1,this.$undoSelect=!0,this.$foldData=[],this.$foldData.toString=function(){return this.join("\n")},this.on("changeFold",this.onChangeFold.bind(this)),this.$onChange=this.onChange.bind(this),"object"==typeof e&&e.getLine||(e=new c(e)),this.setDocument(e),this.selection=new a(this),r.resetOptions(this),this.setMode(t),r._signal("session",this)};(function(){function a(e){return!(e<4352)&&(4352<=e&&e<=4447||4515<=e&&e<=4519||4602<=e&&e<=4607||9001<=e&&e<=9002||11904<=e&&e<=11929||11931<=e&&e<=12019||12032<=e&&e<=12245||12272<=e&&e<=12283||12288<=e&&e<=12350||12353<=e&&e<=12438||12441<=e&&e<=12543||12549<=e&&e<=12589||12593<=e&&e<=12686||12688<=e&&e<=12730||12736<=e&&e<=12771||12784<=e&&e<=12830||12832<=e&&e<=12871||12880<=e&&e<=13054||13056<=e&&e<=19903||19968<=e&&e<=42124||42128<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||55216<=e&&e<=55238||55243<=e&&e<=55291||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65106||65108<=e&&e<=65126||65128<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510)}n.implement(this,o),this.setDocument=function(e){this.doc&&this.doc.removeListener("change",this.$onChange),(this.doc=e).on("change",this.$onChange),this.bgTokenizer&&this.bgTokenizer.setDocument(this.getDocument()),this.resetCaches()},this.getDocument=function(){return this.doc},this.$resetRowCache=function(e){if(!e)return this.$docRowCache=[],void(this.$screenRowCache=[]);var t=this.$docRowCache.length,i=this.$getRowCacheIndex(this.$docRowCache,e)+1;i<t&&(this.$docRowCache.splice(i,t),this.$screenRowCache.splice(i,t))},this.$getRowCacheIndex=function(e,t){for(var i=0,n=e.length-1;i<=n;){var s=i+n>>1,r=e[s];if(r<t)i=s+1;else{if(!(t<r))return s;n=s-1}}return i-1},this.resetCaches=function(){this.$modified=!0,this.$wrapData=[],this.$rowLengthCache=[],this.$resetRowCache(0),this.bgTokenizer&&this.bgTokenizer.start(0)},this.onChangeFold=function(e){var t=e.data;this.$resetRowCache(t.start.row)},this.onChange=function(e){this.$modified=!0,this.$resetRowCache(e.start.row);var t=this.$updateInternalDataOnChange(e);!this.$fromUndo&&this.$undoManager&&!e.ignore&&(this.$deltasDoc.push(e),t&&0!=t.length&&this.$deltasFold.push({action:"removeFolds",folds:t}),this.$informUndoManager.schedule()),this.bgTokenizer&&this.bgTokenizer.$updateOnChange(e),this._signal("change",e)},this.setValue=function(e){this.doc.setValue(e),this.selection.moveTo(0,0),this.$resetRowCache(0),this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.setUndoManager(this.$undoManager),this.getUndoManager().reset()},this.getValue=this.toString=function(){return this.doc.getValue()},this.getSelection=function(){return this.selection},this.getState=function(e){return this.bgTokenizer.getState(e)},this.getTokens=function(e){return this.bgTokenizer.getTokens(e)},this.getTokenAt=function(e,t){var i,n=this.bgTokenizer.getTokens(e),s=0;if(null==t)r=n.length-1,s=this.getLine(e).length;else for(var r=0;r<n.length&&!(t<=(s+=n[r].value.length));r++);return(i=n[r])?(i.index=r,i.start=s-i.value.length,i):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$deltas=[],this.$deltasDoc=[],this.$deltasFold=[],this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.$deltasFold.length&&(t.$deltas.push({group:"fold",deltas:t.$deltasFold}),t.$deltasFold=[]),t.$deltasDoc.length&&(t.$deltas.push({group:"doc",deltas:t.$deltasDoc}),t.$deltasDoc=[]),0<t.$deltas.length&&e.execute({action:"aceupdate",args:[t.$deltas,t],merge:t.mergeUndoDeltas}),t.mergeUndoDeltas=!1,t.$deltas=[]},this.$informUndoManager=s.delayedCall(this.$syncInformUndoManager)}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},reset:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?s.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize==0},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t<e.length;t++)this.$breakpoints[e[t]]="ace_breakpoint";this._signal("changeBreakpoint",{})},this.clearBreakpoints=function(){this.$breakpoints=[],this._signal("changeBreakpoint",{})},this.setBreakpoint=function(e,t){void 0===t&&(t="ace_breakpoint"),t?this.$breakpoints[e]=t:delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.clearBreakpoint=function(e){delete this.$breakpoints[e],this._signal("changeBreakpoint",{})},this.addMarker=function(e,t,i,n){var s=this.$markerId++,r={range:e,type:i||"line",renderer:"function"==typeof i?i:null,clazz:t,inFront:!!n,id:s};return n?(this.$frontMarkers[s]=r,this._signal("changeFrontMarker")):(this.$backMarkers[s]=r,this._signal("changeBackMarker")),s},this.addDynamicMarker=function(e,t){if(e.update){var i=this.$markerId++;return e.id=i,e.inFront=!!t,t?(this.$frontMarkers[i]=e,this._signal("changeFrontMarker")):(this.$backMarkers[i]=e,this._signal("changeBackMarker")),e}},this.removeMarker=function(e){var t=this.$frontMarkers[e]||this.$backMarkers[e];if(t){var i=t.inFront?this.$frontMarkers:this.$backMarkers;t&&(delete i[e],this._signal(t.inFront?"changeFrontMarker":"changeBackMarker"))}},this.getMarkers=function(e){return e?this.$frontMarkers:this.$backMarkers},this.highlight=function(e){if(!this.$searchHighlight){var t=new d(null,"ace_selected-word","text");this.$searchHighlight=this.addDynamicMarker(t)}this.$searchHighlight.setRegexp(e)},this.highlightLines=function(e,t,i,n){"number"!=typeof t&&(i=t,t=e),i||(i="ace_step");var s=new h(e,0,t,1/0);return s.id=this.addMarker(s,i,"fullLine",n),s},this.setAnnotations=function(e){this.$annotations=e,this._signal("changeAnnotation",{})},this.getAnnotations=function(){return this.$annotations||[]},this.clearAnnotations=function(){this.setAnnotations([])},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r?\n)/m);this.$autoNewLine=t?t[1]:"\n"},this.getWordRange=function(e,t){var i=this.getLine(e),n=!1;if(0<t&&(n=!!i.charAt(t-1).match(this.tokenRe)),n||(n=!!i.charAt(t).match(this.tokenRe)),n)var s=this.tokenRe;else if(/^\s+$/.test(i.slice(t-1,t+1)))s=/\s/;else s=this.nonTokenRe;var r=t;if(0<r){for(;0<=--r&&i.charAt(r).match(s););r++}for(var o=t;o<i.length&&i.charAt(o).match(s);)o++;return new h(e,r,e,o)},this.getAWordRange=function(e,t){for(var i=this.getWordRange(e,t),n=this.getLine(i.end.row);n.charAt(i.end.column).match(/[ \t]/);)i.end.column+=1;return i},this.setNewLineMode=function(e){this.doc.setNewLineMode(e)},this.getNewLineMode=function(){return this.doc.getNewLineMode()},this.setUseWorker=function(e){this.setOption("useWorker",e)},this.getUseWorker=function(){return this.$useWorker},this.onReloadTokenizer=function(e){var t=e.data;this.bgTokenizer.start(t.first),this._signal("tokenizerUpdate",e)},this.$modes={},this.$mode=null,this.$modeId=null,this.setMode=function(e,t){if(e&&"object"==typeof e){if(e.getTokenizer)return this.$onChangeMode(e);var i=e,n=i.path}else n=e||"ace/mode/text";if(this.$modes["ace/mode/text"]||(this.$modes["ace/mode/text"]=new l),this.$modes[n]&&!i)return this.$onChangeMode(this.$modes[n]),void(t&&t());this.$modeId=n,r.loadModule(["mode",n],function(e){if(this.$modeId!==n)return t&&t();this.$modes[n]&&!i?this.$onChangeMode(this.$modes[n]):e&&e.Mode&&(e=new e.Mode(i),i||((this.$modes[n]=e).$id=n),this.$onChangeMode(e)),t&&t()}.bind(this)),this.$mode||this.$onChangeMode(this.$modes["ace/mode/text"],!0)},this.$onChangeMode=function(e,t){if(t||(this.$modeId=e.$id),this.$mode!==e){this.$mode=e,this.$stopWorker(),this.$useWorker&&this.$startWorker();var i=e.getTokenizer();if(void 0!==i.addEventListener){var n=this.onReloadTokenizer.bind(this);i.addEventListener("update",n)}if(this.bgTokenizer)this.bgTokenizer.setTokenizer(i);else{this.bgTokenizer=new u(i);var s=this;this.bgTokenizer.addEventListener("update",function(e){s._signal("tokenizerUpdate",e)})}this.bgTokenizer.setDocument(this.getDocument()),this.tokenRe=e.tokenRe,this.nonTokenRe=e.nonTokenRe,t||(e.attachToSession&&e.attachToSession(this),this.$options.wrapMethod.set.call(this,this.$wrapMethod),this.$setFolding(e.foldingRules),this.bgTokenizer.start(0),this._emit("changeMode"))}},this.$stopWorker=function(){this.$worker&&(this.$worker.terminate(),this.$worker=null)},this.$startWorker=function(){try{this.$worker=this.$mode.createWorker(this)}catch(e){r.warn("Could not load worker",e),this.$worker=null}},this.getMode=function(){return this.$mode},this.$scrollTop=0,this.setScrollTop=function(e){this.$scrollTop===e||isNaN(e)||(this.$scrollTop=e,this._signal("changeScrollTop",e))},this.getScrollTop=function(){return this.$scrollTop},this.$scrollLeft=0,this.setScrollLeft=function(e){this.$scrollLeft===e||isNaN(e)||(this.$scrollLeft=e,this._signal("changeScrollLeft",e))},this.getScrollLeft=function(){return this.$scrollLeft},this.getScreenWidth=function(){return this.$computeWidth(),this.lineWidgets?Math.max(this.getLineWidgetMaxWidth(),this.screenWidth):this.screenWidth},this.getLineWidgetMaxWidth=function(){if(null!=this.lineWidgetsWidth)return this.lineWidgetsWidth;var t=0;return this.lineWidgets.forEach(function(e){e&&e.screenWidth>t&&(t=e.screenWidth)}),this.lineWidgetWidth=t},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,s=0,r=this.$foldData[s],o=r?r.start.row:1/0,a=t.length,l=0;l<a;l++){if(o<l){if(a<=(l=r.end.row+1))break;o=(r=this.$foldData[s++])?r.start.row:1/0}null==i[l]&&(i[l]=this.$getStringScreenWidth(t[l])[0]),i[l]>n&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=null,n=e.length-1;-1!=n;n--){var s=e[n];"doc"==s.group?(this.doc.revertDeltas(s.deltas),i=this.$getUndoSelection(s.deltas,!0,i)):s.deltas.forEach(function(e){this.addFolds(e.folds)},this)}return this.$fromUndo=!1,i&&this.$undoSelect&&!t&&this.selection.setSelectionRange(i),i}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=null,n=0;n<e.length;n++){var s=e[n];"doc"==s.group&&(this.doc.applyDeltas(s.deltas),i=this.$getUndoSelection(s.deltas,!1,i))}return this.$fromUndo=!1,i&&this.$undoSelect&&!t&&this.selection.setSelectionRange(i),i}},this.setUndoSelect=function(e){this.$undoSelect=e},this.$getUndoSelection=function(e,t,i){function n(e){return t?"insert"!==e.action:"insert"===e.action}var s,r,o=e[0];n(o)?s=h.fromPoints(o.start,o.end):s=h.fromPoints(o.start,o.start);for(var a=1;a<e.length;a++)n(o=e[a])?(r=o.start,-1==s.compare(r.row,r.column)&&s.setStart(r),r=o.end,1==s.compare(r.row,r.column)&&s.setEnd(r),!0):(r=o.start,-1==s.compare(r.row,r.column)&&(s=h.fromPoints(o.start,o.start)),!1);if(null!=i){0===h.comparePoints(i.start,s.start)&&(i.start.column+=s.end.column-s.start.column,i.end.column+=s.end.column-s.start.column);var l=i.compareRange(s);1==l?s.setStart(i.start):-1==l&&s.setEnd(i.end)}return s},this.replace=function(e,t){return this.doc.replace(e,t)},this.moveText=function(e,t,i){var n=this.getTextRange(e),s=this.getFoldsInRange(e),r=h.fromPoints(t,t);if(!i){this.remove(e);var o=e.start.row-e.end.row;(c=o?-e.end.column:e.start.column-e.end.column)&&(r.start.row==e.end.row&&r.start.column>e.end.column&&(r.start.column+=c),r.end.row==e.end.row&&r.end.column>e.end.column&&(r.end.column+=c)),o&&r.start.row>=e.end.row&&(r.start.row+=o,r.end.row+=o)}if(r.end=this.insert(r.start,n),s.length){var a=e.start,l=r.start,c=(o=l.row-a.row,l.column-a.column);this.addFolds(s.map(function(e){return(e=e.clone()).start.row==a.row&&(e.start.column+=c),e.end.row==a.row&&(e.end.column+=c),e.start.row+=o,e.end.row+=o,e}))}return r},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new h(0,0,0,0),n=this.getTabSize(),s=t.start.row;s<=t.end.row;++s){var r=this.getLine(s);i.start.row=s,i.end.row=s;for(var o=0;o<n&&" "==r.charAt(o);++o);o<n&&"\t"==r.charAt(o)?(i.start.column=o,i.end.column=o+1):(i.start.column=0,i.end.column=o),this.remove(i)}},this.$moveLines=function(e,t,i){if(e=this.getRowFoldStart(e),t=this.getRowFoldEnd(t),i<0){if((s=this.getRowFoldStart(e+i))<0)return 0;var n=s-e}else if(0<i){var s;if((s=this.getRowFoldEnd(t+i))>this.doc.getLength()-1)return 0;n=s-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var r=new h(e,0,t,Number.MAX_VALUE),o=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),a=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,a),o.length&&this.addFolds(o),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)t=e=0;else{var i=this.doc.getLength();t=i<=e?(e=i-1,this.doc.getLine(i-1).length):Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange;i.max<0&&(i={min:t,max:t});var n=this.$constrainWrapLimit(e,i.min,i.max);return n!=this.$wrapLimit&&1<n&&(this.$wrapLimit=n,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,i){return t&&(e=Math.max(t,e)),i&&(e=Math.min(i,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,i=e.action,n=e.start,s=e.end,r=n.row,o=s.row,a=o-r,l=null;if(this.$updating=!0,0!=a)if("remove"===i){this[t?"$wrapData":"$rowLengthCache"].splice(r,a);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var h=0;if(p=this.getFoldLine(s.row)){p.addRemoveChars(s.row,s.column,n.column-s.column),p.shiftRow(-a);var u=this.getFoldLine(r);u&&u!==p&&(u.merge(p),p=u),h=c.indexOf(p)+1}for(;h<c.length;h++){(p=c[h]).start.row>=s.row&&p.shiftRow(-a)}o=r}else{var d=Array(a);d.unshift(r,0);var g=t?this.$wrapData:this.$rowLengthCache;g.splice.apply(g,d);c=this.$foldData,h=0;if(p=this.getFoldLine(r)){var f=p.range.compareInside(n.row,n.column);0==f?(p=p.split(n.row,n.column))&&(p.shiftRow(a),p.addRemoveChars(o,0,s.column-n.column)):-1==f&&(p.addRemoveChars(r,0,s.column-n.column),p.shiftRow(a)),h=c.indexOf(p)+1}for(;h<c.length;h++){var p;(p=c[h]).start.row>=r&&p.shiftRow(a)}}else a=Math.abs(e.start.column-e.end.column),"remove"===i&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(p=this.getFoldLine(r))&&p.addRemoveChars(r,n.column,a);return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(r,o):this.$updateRowLengthCache(r,o),l},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var o,i,a=this.doc.getAllLines(),n=this.getTabSize(),s=this.$wrapData,r=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(i=this.getFoldLine(l,i))?(o=[],i.walk(function(e,t,i,n){var s;if(null!=e){(s=this.$getDisplayTokens(e,o.length))[0]=f;for(var r=1;r<s.length;r++)s[r]=p}else s=this.$getDisplayTokens(a[t].substring(n,i),o.length);o=o.concat(s)}.bind(this),i.end.row,a[i.end.row].length+1),s[i.start.row]=this.$computeWrapSplits(o,r,n),l=i.end.row+1):(o=this.$getDisplayTokens(a[l]),s[l]=this.$computeWrapSplits(o,r,n),l++)};var f=3,p=4;this.$computeWrapSplits=function(n,e,s){function t(e){var t=n.slice(o,e),i=t.length;t.join("").replace(/12/g,function(){i-=1}).replace(/2/g,function(){i-=1}),r.length||(u=function(){var e=0;if(0===h)return e;if(c)for(var t=0;t<n.length;t++){var i=n[t];if(10==i)e+=1;else{if(11!=i){if(12==i)continue;break}e+=s}}return l&&!1!==c&&(e+=s),Math.min(e,h)}(),r.indent=u),a+=i,r.push(a),o=e}if(0==n.length)return[];for(var r=[],i=n.length,o=0,a=0,l=this.$wrapAsCode,c=this.$indentedSoftWrap,h=e<=Math.max(2*s,8)||!1===c?0:Math.floor(e/2),u=0;e-u<i-o;){var d=o+e-u;if(10<=n[d-1]&&10<=n[d])t(d);else if(n[d]!=f&&n[d]!=p){for(var g=Math.max(d-(e-(e>>2)),o-1);g<d&&n[d]<f;)d--;if(l){for(;g<d&&n[d]<f;)d--;for(;g<d&&9==n[d];)d--}else for(;g<d&&n[d]<10;)d--;g<d?t(++d):(2==n[d=o+e]&&d--,t(d-u))}else{for(;d!=o-1&&n[d]!=f;d--);if(o<d){t(d);continue}for(d=o+e;d<n.length&&n[d]==p;d++);if(d==n.length)break;t(d)}}return r},this.$getDisplayTokens=function(e,t){var i,n=[];t=t||0;for(var s=0;s<e.length;s++){var r=e.charCodeAt(s);if(9==r){i=this.getScreenTabSize(n.length+t),n.push(11);for(var o=1;o<i;o++)n.push(12)}else 32==r?n.push(10):39<r&&r<48||57<r&&r<64?n.push(9):4352<=r&&a(r)?n.push(1,2):n.push(1)}return n},this.$getStringScreenWidth=function(e,t,i){if(0==t)return[0,0];var n,s;for(null==t&&(t=1/0),i=i||0,s=0;s<e.length&&(9==(n=e.charCodeAt(s))?i+=this.getScreenTabSize(i):4352<=n&&a(n)?i+=2:i+=1,!(t<i));s++);return[i,s]},this.lineWidgets=null,this.getRowLength=function(e){if(this.lineWidgets)var t=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;else t=0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),i=this.$wrapData[t.row];return i.length&&i[0]<t.column?i.indent:0}return 0},this.getScreenLastRowColumn=function(e){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE);return this.documentToScreenColumn(t.row,t.column)},this.getDocumentLastRowColumn=function(e,t){var i=this.documentToScreenRow(e,t);return this.getScreenLastRowColumn(i)},this.getDocumentLastRowColumnPosition=function(e,t){var i=this.documentToScreenRow(e,t);return this.screenToDocumentPosition(i,Number.MAX_VALUE/10)},this.getRowSplitData=function(e){return this.$useWrapMode?this.$wrapData[e]:void 0},this.getScreenTabSize=function(e){return this.$tabSize-e%this.$tabSize},this.screenToDocumentRow=function(e,t){return this.screenToDocumentPosition(e,t).row},this.screenToDocumentColumn=function(e,t){return this.screenToDocumentPosition(e,t).column},this.screenToDocumentPosition=function(e,t){if(e<0)return{row:0,column:0};var i,n,s=0,r=0,o=0,a=0,l=this.$screenRowCache,c=this.$getRowCacheIndex(l,e),h=l.length;if(h&&0<=c){o=l[c],s=this.$docRowCache[c];var u=e>l[h-1]}else u=!h;for(var d=this.getLength()-1,g=this.getNextFoldLine(s),f=g?g.start.row:1/0;o<=e&&!(e<o+(a=this.getRowLength(s))||d<=s);)o+=a,f<++s&&(s=g.end.row+1,f=(g=this.getNextFoldLine(s,g))?g.start.row:1/0),u&&(this.$docRowCache.push(s),this.$screenRowCache.push(o));if(g&&g.start.row<=s)i=this.getFoldDisplayLine(g),s=g.start.row;else{if(o+a<=e||d<s)return{row:d,column:this.getLine(d).length};i=this.getLine(s),g=null}var p=0;if(this.$useWrapMode){var m=this.$wrapData[s];if(m){var C=Math.floor(e-o);n=m[C],0<C&&m.length&&(p=m.indent,r=m[C-1]||m[m.length-1],i=i.substring(r))}}return r+=this.$getStringScreenWidth(i,t-p)[1],this.$useWrapMode&&n<=r&&(r=n-1),g?g.idxToPosition(r):{row:s,column:r}},this.documentToScreenPosition=function(e,t){if(void 0===t)var i=this.$clipPositionToDocument(e.row,e.column);else i=this.$clipPositionToDocument(e,t);e=i.row,t=i.column;var n,s=0,r=null;(n=this.getFoldAt(e,t,1))&&(e=n.start.row,t=n.start.column);var o,a=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),h=l.length;if(h&&0<=c){a=l[c],s=this.$screenRowCache[c];var u=e>l[h-1]}else u=!h;for(var d=this.getNextFoldLine(a),g=d?d.start.row:1/0;a<e;){if(g<=a){if(e<(o=d.end.row+1))break;g=(d=this.getNextFoldLine(o,d))?d.start.row:1/0}else o=a+1;s+=this.getRowLength(a),a=o,u&&(this.$docRowCache.push(a),this.$screenRowCache.push(s))}var f="";r=d&&g<=a?(f=this.getFoldDisplayLine(d,e,t),d.start.row):(f=this.getLine(e).substring(0,t),e);var p=0;if(this.$useWrapMode){var m=this.$wrapData[r];if(m){for(var C=0;f.length>=m[C];)s++,C++;f=f.substring(m[C-1]||0,f.length),p=0<C?m.indent:0}}return{row:s,column:p+this.$getStringScreenWidth(f)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode)for(var i=this.$wrapData.length,n=0,s=(a=0,(t=this.$foldData[a++])?t.start.row:1/0);n<i;){var r=this.$wrapData[n];e+=r?r.length+1:1,s<++n&&(n=t.end.row+1,s=(t=this.$foldData[a++])?t.start.row:1/0)}else{e=this.getLength();for(var o=this.$foldData,a=0;a<o.length;a++)e-=(t=o[a]).end.row-t.start.row}return this.lineWidgets&&(e+=this.$getWidgetScreenLength()),e},this.$setFontMetrics=function(e){},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker()}}).call(g.prototype),e("./edit_session/folding").Folding.call(g.prototype),e("./edit_session/bracket_match").BracketMatch.call(g.prototype),r.defineOptions(g.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){(e="auto"==e?"text"!=this.$mode.type:"text"!=e)!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$modified=!0,this.$resetRowCache(0),this.$updateWrapData(0,this.getLength()-1)))},initialValue:"auto"},indentedSoftWrap:{initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){isNaN(e)||this.$tabSize===e||(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId}}}),t.EditSession=g}),define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";var b=e("./lib/lang"),n=e("./lib/oop"),y=e("./range").Range,s=function(){this.$options={}};(function(){this.set=function(e){return n.mixin(this.$options,e),this},this.getOptions=function(){return b.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var s=this.$options,t=this.$matchIterator(e,s);if(!t)return!1;var r=null;return t.forEach(function(e,t,i){if(e.start)r=e;else{var n=e.offset+(i||0);if(r=new y(t,n,t,n+e.length),!e.length&&s.start&&s.start.start&&0!=s.skipCurrent&&r.isEqual(s.start))return r=null,!1}return!0}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var i=t.range,n=i?e.getLines(i.start.row,i.end.row):e.doc.getAllLines(),s=[],r=t.re;if(t.$isMultiLine){var o,a=r.length,l=n.length-a;e:for(var c=r.offset||0;c<=l;c++){for(var h=0;h<a;h++)if(-1==n[c+h].search(r[h]))continue e;var u=n[c],d=n[c+a-1],g=u.length-u.match(r[0])[0].length,f=d.match(r[a-1])[0].length;o&&o.end.row===c&&o.end.column>g||(s.push(o=new y(c,g,c+a-1,f)),2<a&&(c=c+a-2))}}else for(var p=0;p<n.length;p++){var m=b.getMatchOffsets(n[p],r);for(h=0;h<m.length;h++){var C=m[h];s.push(new y(p,C.offset,p,C.offset+C.length))}}if(i){var A=i.start.column,v=i.start.column;for(p=0,h=s.length-1;p<h&&s[p].start.column<A&&s[p].start.row==i.start.row;)p++;for(;p<h&&s[h].end.column>v&&s[h].end.row==i.end.row;)h--;for(s=s.slice(p,h+1),p=0,h=s.length;p<h;p++)s[p].start.row+=i.start.row,s[p].end.row+=i.start.row}return s},this.replace=function(e,t){var i=this.$options,n=this.$assembleRegExp(i);if(i.$isMultiLine)return t;if(n){var s=n.exec(e);if(!s||s[0].length!=e.length)return null;if(t=e.replace(n,t),i.preserveCase){t=t.split("");for(var r=Math.min(e.length,e.length);r--;){var o=e[r];o&&o.toLowerCase()!=o?t[r]=t[r].toUpperCase():t[r]=t[r].toLowerCase()}t=t.join("")}return t}},this.$matchIterator=function(a,e){var l,c=this.$assembleRegExp(e);if(!c)return!1;if(e.$isMultiLine)var h=c.length,t=function(e,t,i){var n=e.search(c[0]);if(-1!=n){for(var s=1;s<h;s++)if(-1==(e=a.getLine(t+s)).search(c[s]))return;var r=e.match(c[h-1])[0].length,o=new y(t,n,t+h-1,r);return 1==c.offset?(o.start.row--,o.start.column=Number.MAX_VALUE):i&&(o.start.column+=i),!!l(o)||void 0}};else if(e.backwards)t=function(e,t,i){for(var n=b.getMatchOffsets(e,c),s=n.length-1;0<=s;s--)if(l(n[s],t,i))return!0};else t=function(e,t,i){for(var n=b.getMatchOffsets(e,c),s=0;s<n.length;s++)if(l(n[s],t,i))return!0};var i=this.$lineIterator(a,e);return{forEach:function(e){l=e,i.forEach(t)}}},this.$assembleRegExp=function(e,t){if(e.needle instanceof RegExp)return e.re=e.needle;var i=e.needle;if(!e.needle)return e.re=!1;e.regExp||(i=b.escapeRegExp(i)),e.wholeWord&&(i="\\b"+i+"\\b");var n=e.caseSensitive?"gm":"gmi";if(e.$isMultiLine=!t&&/[\n\r]/.test(i),e.$isMultiLine)return e.re=this.$assembleMultilineRegExp(i,n);try{var s=new RegExp(i,n)}catch(e){s=!1}return e.re=s},this.$assembleMultilineRegExp=function(e,t){for(var i=e.replace(/\r\n|\r|\n/g,"$\n^").split("\n"),n=[],s=0;s<i.length;s++)try{n.push(new RegExp(i[s],t))}catch(e){return!1}return""==i[0]?(n.shift(),n.offset=1):n.offset=0,n},this.$lineIterator=function(i,n){var e=1==n.backwards,t=0!=n.skipCurrent,s=n.range,r=n.start;r||(r=s?s[e?"end":"start"]:i.selection.getRange()),r.start&&(r=r[t!=e?"end":"start"]);var o=s?s.start.row:0,a=s?s.end.row:i.getLength()-1;return{forEach:e?function(e){var t=r.row;if(!e(i.getLine(t).substring(0,r.column),t)){for(t--;o<=t;t--)if(e(i.getLine(t),t))return;if(0!=n.wrap)for(t=a,o=r.row;o<=t;t--)if(e(i.getLine(t),t))return}}:function(e){var t=r.row;if(!e(i.getLine(t).substr(r.column),t,r.column)){for(t+=1;t<=a;t++)if(e(i.getLine(t),t))return;if(0!=n.wrap)for(t=o,a=r.row;t<=a;t++)if(e(i.getLine(t),t))return}}}}}).call(s.prototype),t.Search=s}),define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(r.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),r=e("../lib/useragent"),l=a.KEY_MODS;s.prototype=n.prototype,function(){function o(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||0}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i=e&&("string"==typeof e?e:e.name);e=this.commands[i],t||delete this.commands[i];var n=this.commandKeyBinding;for(var s in n){var r=n[s];if(r==e)delete n[s];else if(Array.isArray(r)){var o=r.indexOf(e);-1!=o&&(r.splice(o,1),1==r.length&&(n[s]=r[0]))}}},this.bindKey=function(e,r,o){if("object"==typeof e&&(null==o&&(o=e.position),e=e[this.platform]),e)return"function"==typeof r?this.addCommand({exec:r,bindKey:e,name:r.name||e}):void e.split("|").forEach(function(e){var n="";if(-1!=e.indexOf(" ")){var t=e.split(/\s+/);e=t.pop(),t.forEach(function(e){var t=this.parseKeys(e),i=l[t.hashId]+t.key;n+=(n?" ":"")+i,this._addCommandToBinding(n,"chainKeys")},this),n+=" "}var i=this.parseKeys(e),s=l[i.hashId]+i.key;this._addCommandToBinding(n+s,r,o)},this)},this._addCommandToBinding=function(e,t,i){var n,s=this.commandKeyBinding;if(t)if(!s[e]||this.$singleCommand)s[e]=t;else{Array.isArray(s[e])?-1!=(n=s[e].indexOf(t))&&s[e].splice(n,1):s[e]=[s[e]],"number"!=typeof i&&(i=i||t.isDefault?-100:o(t));var r=s[e];for(n=0;n<r.length;n++){if(i<o(r[n]))break}r.splice(n,0,t)}else delete s[e]},this.addCommands=function(i){i&&Object.keys(i).forEach(function(e){var t=i[e];if(t){if("string"==typeof t)return this.bindKey(t,e);"function"==typeof t&&(t={exec:t}),"object"==typeof t&&(t.name||(t.name=e),this.addCommand(t))}},this)},this.removeCommands=function(t){Object.keys(t).forEach(function(e){this.removeCommand(t[e])},this)},this.bindKeys=function(t){Object.keys(t).forEach(function(e){this.bindKey(e,t[e])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),i=t.pop(),n=a[i];if(a.FUNCTION_KEYS[n])i=a.FUNCTION_KEYS[n].toLowerCase();else{if(!t.length)return{key:i,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:i.toUpperCase(),hashId:-1}}for(var s=0,r=t.length;r--;){var o=a.KEY_MODS[t[r]];if(null==o)return"undefined"!=typeof console&&console.error("invalid modifier "+t[r]+" in "+e),!1;s|=o}return{key:i,hashId:s}},this.findKeyCommand=function(e,t){var i=l[e]+t;return this.commandKeyBinding[i]},this.handleKeyboard=function(e,t,i,n){var s=l[t]+i,r=this.commandKeyBinding[s];return e.$keyChain&&(e.$keyChain+=" "+s,r=this.commandKeyBinding[e.$keyChain]||r),!r||"chainKeys"!=r&&"chainKeys"!=r[r.length-1]?(e.$keyChain&&(t&&4!=t||1!=i.length?(-1==t||0<n)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-s.length-1)),{command:r}):(e.$keyChain=e.$keyChain||s,{command:"null"})},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(n.prototype),t.HashHandler=n,t.MultiHashHandler=s}),define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("../lib/oop"),s=e("../keyboard/hash_handler").MultiHashHandler,r=e("../lib/event_emitter").EventEmitter,o=function(e,t){s.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};n.inherits(o,s),function(){n.implement(this,r),this.exec=function(e,t,i){if(Array.isArray(e)){for(var n=e.length;n--;)if(this.exec(e[n],t,i))return!0;return!1}if("string"==typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;var s={editor:t,command:e,args:i};return s.returnValue=this._emit("exec",s),this._signal("afterExec",s),!1!==s.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.removeEventListener("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(t){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(t);try{this.$inReplay=!0,this.macro.forEach(function(e){"string"==typeof e?this.exec(e,t):this.exec(e[0],t,e[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(o.prototype),t.CommandManager=o}),define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,i){"use strict";function n(e,t){return{win:e,mac:t}}var c=e("../lib/lang"),s=e("../config"),h=e("../range").Range;t.commands=[{name:"showSettingsMenu",bindKey:n("Ctrl-,","Command-,"),exec:function(t){s.loadModule("ace/ext/settings_menu",function(e){e.init(t),t.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",bindKey:n("Alt-E","Ctrl-E"),exec:function(t){s.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",bindKey:n("Alt-Shift-E","Ctrl-Shift-E"),exec:function(t){s.loadModule("ace/ext/error_marker",function(e){e.showErrorMarker(t,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",bindKey:n("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",bindKey:n(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",bindKey:n("Ctrl-L","Command-L"),exec:function(e){var t=parseInt(prompt("Enter line number:"),10);isNaN(t)||e.gotoLine(t)},readOnly:!0},{name:"fold",bindKey:n("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:n("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",bindKey:n("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",bindKey:n("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",bindKey:n(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",bindKey:n("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",bindKey:n("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",bindKey:n("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",bindKey:n("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",bindKey:n("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",bindKey:n("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",bindKey:n("Ctrl-F","Command-F"),exec:function(t){s.loadModule("ace/ext/searchbox",function(e){e.Search(t)})},readOnly:!0},{name:"overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",bindKey:n("Ctrl-Shift-Home","Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",bindKey:n("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",bindKey:n("Shift-Up","Shift-Up"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",bindKey:n("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",bindKey:n("Ctrl-Shift-End","Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",bindKey:n("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",bindKey:n("Shift-Down","Shift-Down"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",bindKey:n("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",bindKey:n("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",bindKey:n("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",bindKey:n("Alt-Shift-Left","Command-Shift-Left"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",bindKey:n("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",bindKey:n("Shift-Left","Shift-Left"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",bindKey:n("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",bindKey:n("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",bindKey:n("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",bindKey:n("Alt-Shift-Right","Command-Shift-Right"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",bindKey:n("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",bindKey:n("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",bindKey:n("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",bindKey:n(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",bindKey:n("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",bindKey:n(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",bindKey:n("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",bindKey:n("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",bindKey:n("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",bindKey:n("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",bindKey:n("Ctrl-P","Ctrl-P"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",bindKey:n("Ctrl-Shift-P","Ctrl-Shift-P"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",bindKey:n("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",bindKey:n(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",exec:function(e){},readOnly:!0},{name:"cut",exec:function(e){var t=e.getSelectionRange();e._emit("cut",t),e.selection.isEmpty()||(e.session.remove(t),e.clearSelection())},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",bindKey:n("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",bindKey:n("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",bindKey:n("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",bindKey:n("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",bindKey:n("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",bindKey:n("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",bindKey:n("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",bindKey:n("Ctrl-H","Command-Option-F"),exec:function(t){s.loadModule("ace/ext/searchbox",function(e){e.Search(t,!0)})}},{name:"undo",bindKey:n("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",bindKey:n("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",bindKey:n("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",bindKey:n("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",bindKey:n("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",bindKey:n("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",bindKey:n("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",bindKey:n("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",bindKey:n("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",bindKey:n("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",bindKey:n("Alt-Delete","Ctrl-K"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",bindKey:n("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",bindKey:n("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",bindKey:n("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",bindKey:n("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",bindKey:n("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",bindKey:n("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",exec:function(e,t){e.insert(c.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",bindKey:n(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",bindKey:n("Ctrl-T","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",bindKey:n("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",bindKey:n("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"expandtoline",bindKey:n("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",bindKey:n(null,null),exec:function(e){for(var t=e.selection.isBackwards(),i=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),n=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),s=e.session.doc.getLine(i.row).length,r=e.session.doc.getTextRange(e.selection.getRange()).replace(/\n\s*/," ").length,o=e.session.doc.getLine(i.row),a=i.row+1;a<=n.row+1;a++){var l=c.stringTrimLeft(c.stringTrimRight(e.session.doc.getLine(a)));0!==l.length&&(l=" "+l),o+=l}n.row+1<e.session.doc.getLength()-1&&(o+=e.session.doc.getNewLineCharacter()),e.clearSelection(),e.session.doc.replace(new h(i.row,0,n.row+2,0),o),0<r?(e.selection.moveCursorTo(i.row,i.column),e.selection.selectTo(i.row,i.column+r)):(s=e.session.doc.getLine(i.row).length>s?s+1:s,e.selection.moveCursorTo(i.row,s))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,s=[];n.length<1&&(n=[e.selection.getRange()]);for(var r=0;r<n.length;r++)r==n.length-1&&(n[r].end.row!==t||n[r].end.column!==i)&&s.push(new h(n[r].end.row,n[r].end.column,t,i)),0===r?(0!==n[r].start.row||0!==n[r].start.column)&&s.push(new h(0,0,n[r].start.row,n[r].start.column)):s.push(new h(n[r-1].end.row,n[r-1].end.column,n[r].start.row,n[r].start.column));e.exitMultiSelectMode(),e.clearSelection();for(r=0;r<s.length;r++)e.selection.addRange(s[r],!1)},readOnly:!0,scrollIntoView:"none"}]}),define("ace/editor",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/keyboard/textinput","ace/mouse/mouse_handler","ace/mouse/fold_handler","ace/keyboard/keybinding","ace/edit_session","ace/search","ace/range","ace/lib/event_emitter","ace/commands/command_manager","ace/commands/default_commands","ace/config","ace/token_iterator"],function(e,t,i){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/oop"),n=e("./lib/dom"),h=e("./lib/lang"),s=e("./lib/useragent"),o=e("./keyboard/textinput").TextInput,a=e("./mouse/mouse_handler").MouseHandler,l=e("./mouse/fold_handler").FoldHandler,c=e("./keyboard/keybinding").KeyBinding,u=e("./edit_session").EditSession,d=e("./search").Search,p=e("./range").Range,g=e("./lib/event_emitter").EventEmitter,f=e("./commands/command_manager").CommandManager,m=e("./commands/default_commands").commands,C=e("./config"),A=e("./token_iterator").TokenIterator,v=function(e,t){var i=e.getContainerElement();this.container=i,this.renderer=e,this.commands=new f(s.isMac?"mac":"win",m),this.textInput=new o(e.getTextAreaContainer(),this),this.renderer.textarea=this.textInput.getElement(),this.keyBinding=new c(this),this.$mouseHandler=new a(this),new l(this),this.$blockScrolling=0,this.$search=(new d).set({wrap:!0}),this.$historyTracker=this.$historyTracker.bind(this),this.commands.on("exec",this.$historyTracker),this.$initOperationListeners(),this._$emitInputEvent=h.delayedCall(function(){this._signal("input",{}),this.session&&this.session.bgTokenizer&&this.session.bgTokenizer.scheduleStart()}.bind(this)),this.on("change",function(e,t){t._$emitInputEvent.schedule(31)}),this.setSession(t||new u("")),C.resetOptions(this),C._signal("editor",this)};(function(){r.implement(this,g),this.$initOperationListeners=function(){this.selections=[],this.commands.on("exec",this.startOperation.bind(this),!0),this.commands.on("afterExec",this.endOperation.bind(this),!0),this.$opResetTimer=h.delayedCall(this.endOperation.bind(this)),this.on("change",function(){this.curOp||this.startOperation(),this.curOp.docChanged=!0}.bind(this),!0),this.on("changeSelection",function(){this.curOp||this.startOperation(),this.curOp.selectionChanged=!0}.bind(this),!0)},this.curOp=null,this.prevOp={},this.startOperation=function(e){if(this.curOp){if(!e||this.curOp.command)return;this.prevOp=this.curOp}e||(this.previousCommand=null,e={}),this.$opResetTimer.schedule(),this.curOp={command:e.command||{},args:e.args,scrollTop:this.renderer.scrollTop},this.curOp.command.name&&void 0!==this.curOp.command.scrollIntoView&&this.$blockScrolling++},this.endOperation=function(e){if(this.curOp){if(e&&!1===e.returnValue)return this.curOp=null;this._signal("beforeEndOperation");var t=this.curOp.command;t.name&&0<this.$blockScrolling&&this.$blockScrolling--;var i=t&&t.scrollIntoView;if(i){switch(i){case"center-animate":i="animate";case"center":this.renderer.scrollCursorIntoView(null,.5);break;case"animate":case"cursor":this.renderer.scrollCursorIntoView();break;case"selectionPart":var n=this.selection.getRange(),s=this.renderer.layerConfig;(n.start.row>=s.lastRow||n.end.row<=s.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==i&&this.renderer.animateScrolling(this.curOp.scrollTop)}this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var s=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(s)||/\s/.test(t.args)),this.mergeNextCommand=!0}else n=n&&-1!==i.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&2e3<Date.now()-this.sequenceStartTime&&(n=!1),n?this.session.mergeUndoDeltas=!0:-1!==i.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(t,i){if(t&&"string"==typeof t){this.$keybindingId=t;var n=this;C.loadModule(["keybinding",t],function(e){n.$keybindingId==t&&n.keyBinding.setKeyboardHandler(e&&e.handler),i&&i()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(t),i&&i()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.removeEventListener("change",this.$onDocumentChange),this.session.removeEventListener("changeMode",this.$onChangeMode),this.session.removeEventListener("tokenizerUpdate",this.$onTokenizerUpdate),this.session.removeEventListener("changeTabSize",this.$onChangeTabSize),this.session.removeEventListener("changeWrapLimit",this.$onChangeWrapLimit),this.session.removeEventListener("changeWrapMode",this.$onChangeWrapMode),this.session.removeEventListener("onChangeFold",this.$onChangeFold),this.session.removeEventListener("changeFrontMarker",this.$onChangeFrontMarker),this.session.removeEventListener("changeBackMarker",this.$onChangeBackMarker),this.session.removeEventListener("changeBreakpoint",this.$onChangeBreakpoint),this.session.removeEventListener("changeAnnotation",this.$onChangeAnnotation),this.session.removeEventListener("changeOverwrite",this.$onCursorChange),this.session.removeEventListener("changeScrollTop",this.$onScrollTopChange),this.session.removeEventListener("changeScrollLeft",this.$onScrollLeftChange);var i=this.session.getSelection();i.removeEventListener("changeCursor",this.$onCursorChange),i.removeEventListener("changeSelection",this.$onSelectionChange)}(this.session=e)?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.addEventListener("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.addEventListener("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.addEventListener("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.addEventListener("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.addEventListener("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.addEventListener("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.addEventListener("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.addEventListener("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.addEventListener("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.addEventListener("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.addEventListener("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.addEventListener("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.addEventListener("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.addEventListener("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.addEventListener("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.addEventListener("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.$blockScrolling+=1,this.onCursorChange(),this.$blockScrolling-=1,this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this})}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||n.computedStyle(this.container,"fontSize")},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(this.session.$bracketHighlight&&(this.session.removeMarker(this.session.$bracketHighlight),this.session.$bracketHighlight=null),!this.$highlightPending){var n=this;this.$highlightPending=!0,setTimeout(function(){n.$highlightPending=!1;var e=n.session;if(e&&e.bgTokenizer){var t=e.findMatchingBracket(n.getCursorPosition());if(t)var i=new p(t.row,t.column,t.row,t.column+1);else if(e.$mode.getMatching)i=e.$mode.getMatching(n.session);i&&(e.$bracketHighlight=e.addMarker(i,"ace_bracket","text"))}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var h=this;this.$highlightTagPending=!0,setTimeout(function(){h.$highlightTagPending=!1;var e=h.session;if(e&&e.bgTokenizer){var t=h.getCursorPosition(),i=new A(h.session,t.row,t.column),n=i.getCurrentToken();if(!n||!/\b(?:tag-open|tag-name)/.test(n.type))return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);if(-1==n.type.indexOf("tag-open")||(n=i.stepForward())){var s=n.value,r=0,o=i.stepBackward();if("<"==o.value)for(;o=n,(n=i.stepForward())&&n.value===s&&-1!==n.type.indexOf("tag-name")&&("<"===o.value?r++:"</"===o.value&&r--),n&&0<=r;);else{for(;n=o,o=i.stepBackward(),n&&n.value===s&&-1!==n.type.indexOf("tag-name")&&("<"===o.value?r++:"</"===o.value&&r--),o&&r<=0;);i.stepForward()}if(!n)return e.removeMarker(e.$tagHighlight),void(e.$tagHighlight=null);var a=i.getCurrentTokenRow(),l=i.getCurrentTokenColumn(),c=new p(a,l,a,l+n.value.length);e.$tagHighlight&&0!==c.compareRange(e.$backMarkers[e.$tagHighlight].range)&&(e.removeMarker(e.$tagHighlight),e.$tagHighlight=null),c&&!e.$tagHighlight&&(e.$tagHighlight=e.addMarker(c,"ace_bracket","text"))}}},50)}},this.focus=function(){var e=this;setTimeout(function(){e.textInput.focus()}),this.textInput.focus()},this.isFocused=function(){return this.textInput.isFocused()},this.blur=function(){this.textInput.blur()},this.onFocus=function(e){this.$isFocused||(this.$isFocused=!0,this.renderer.showCursor(),this.renderer.visualizeFocus(),this._emit("focus",e))},this.onBlur=function(e){this.$isFocused&&(this.$isFocused=!1,this.renderer.hideCursor(),this.renderer.visualizeBlur(),this._emit("blur",e))},this.$cursorChange=function(){this.renderer.updateCursor()},this.onDocumentChange=function(e){var t=this.session.$useWrapMode,i=e.start.row==e.end.row?e.end.row:1/0;this.renderer.updateLines(e.start.row,i,t),this._signal("change",e),this.$cursorChange(),this.$updateHighlightActiveLine()},this.onTokenizerUpdate=function(e){var t=e.data;this.renderer.updateLines(t.first,t.last)},this.onScrollTopChange=function(){this.renderer.scrollToY(this.session.getScrollTop())},this.onScrollLeftChange=function(){this.renderer.scrollToX(this.session.getScrollLeft())},this.onCursorChange=function(){this.$cursorChange(),this.$blockScrolling||(C.warn("Automatically scrolling cursor into view after selection change","this will be disabled in the next version","set editor.$blockScrolling = Infinity to disable this message"),this.renderer.scrollCursorIntoView()),this.$highlightBrackets(),this.$highlightTags(),this.$updateHighlightActiveLine(),this._signal("changeSelection")},this.$updateHighlightActiveLine=function(){var e,t=this.getSession();if(this.$highlightActiveLine&&("line"==this.$selectionStyle&&this.selection.isMultiLine()||(e=this.getCursorPosition()),this.renderer.$maxLines&&1===this.session.getLength()&&!(1<this.renderer.$minLines)&&(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var i=new p(e.row,e.column,e.row,1/0);i.id=t.addMarker(i,"ace_active-line","screenLine"),t.$highlightLineMarker=i}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var i=this.selection.getRange(),n=this.getSelectionStyle();t.$selectionMarker=t.addMarker(i,"ace_selection",n)}var s=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(s),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var i=t.start.column-1,n=t.end.column+1,s=e.getLine(t.start.row),r=s.length,o=s.substring(Math.max(i,0),Math.min(n,r));if(!(0<=i&&/^[\w\d]/.test(o)||n<=r&&/[\w\d]$/.test(o)))if(o=s.substring(t.start.column,t.end.column),/^[\w\d]+$/.test(o))return this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o})}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText();return this._signal("copy",e),e},this.onCopy=function(){this.commands.exec("copy",this)},this.onCut=function(){this.commands.exec("cut",this)},this.onPaste=function(e,t){var i={text:e,event:t};this.commands.exec("paste",this,i)},this.$handlePaste=function(e){"string"==typeof e&&(e={text:e}),this._signal("paste",e);var t=e.text;if(!this.inMultiSelectMode||this.inVirtualSelectionMode)this.insert(t);else{var i=t.split(/\r\n|\r|\n/),n=this.selection.rangeList.ranges;if(i.length>n.length||i.length<2||!i[1])return this.commands.exec("insertstring",this,t);for(var s=n.length;s--;){var r=n[s];r.isEmpty()||this.session.remove(r),this.session.insert(r.start,i[s])}}},this.execCommand=function(e,t){return this.commands.exec(e,this,t)},this.insert=function(e,t){var i=this.session,n=i.getMode(),s=this.getCursorPosition();if(this.getBehavioursEnabled()&&!t){var r=n.transformAction(i.getState(s.row),"insertion",this,i,e);r&&(e!==r.text&&(this.session.mergeUndoDeltas=!1,this.$mergeNextCommand=!1),e=r.text)}if("\t"==e&&(e=this.session.getTabString()),this.selection.isEmpty()){if(this.session.getOverwrite()){(o=new p.fromPoints(s,s)).end.column+=e.length,this.session.remove(o)}}else{var o=this.getSelectionRange();s=this.session.remove(o),this.clearSelection()}if("\n"==e||"\r\n"==e){var a=i.getLine(s.row);if(s.column>a.search(/\S|$/)){var l=a.substr(s.column).search(/\S|$/);i.doc.removeInLine(s.row,s.column,s.column+l)}}this.clearSelection();var c=s.column,h=i.getState(s.row),u=(a=i.getLine(s.row),n.checkOutdent(h,a,e));i.insert(s,e);if(r&&r.selection&&(2==r.selection.length?this.selection.setSelectionRange(new p(s.row,c+r.selection[0],s.row,c+r.selection[1])):this.selection.setSelectionRange(new p(s.row+r.selection[0],r.selection[1],s.row+r.selection[2],r.selection[3]))),i.getDocument().isNewLine(e)){var d=n.getNextLineIndent(h,a.slice(0,s.column),i.getTabString());i.insert({row:s.row+1,column:0},d)}u&&n.autoOutdent(h,i,s.row)},this.onTextInput=function(e){this.keyBinding.onTextInput(e)},this.onCommandKey=function(e,t,i){this.keyBinding.onCommandKey(e,t,i)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var i=this.session,n=i.getState(t.start.row),s=i.getMode().transformAction(n,"deletion",this,i,t);if(0===t.end.column){var r=i.getTextRange(t);if("\n"==r[r.length-1]){var o=i.getLine(t.end.row);/^\s+$/.test(o)&&(t.end.column=o.length)}}s&&(t=s)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var i,n,s=this.session.getLine(e.row);n=t<s.length?(i=s.charAt(t)+s.charAt(t-1),new p(e.row,t-1,e.row,t+1)):(i=s.charAt(t-1)+s.charAt(t-2),new p(e.row,t-2,e.row,t)),this.session.replace(n,i)}}},this.toLowerCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),i=this.session.getTextRange(t);this.session.replace(t,i.toLowerCase()),this.selection.setSelectionRange(e)},this.toUpperCase=function(){var e=this.getSelectionRange();this.selection.isEmpty()&&this.selection.selectWord();var t=this.getSelectionRange(),i=this.session.getTextRange(t);this.session.replace(t,i.toUpperCase()),this.selection.setSelectionRange(e)},this.indent=function(){var e=this.session,t=this.getSelectionRange();if(!(t.start.row<t.end.row)){if(t.start.column<t.end.column){var i=e.getTextRange(t);if(!/^\s+$/.test(i)){c=this.$getSelectedRows();return void e.indentRows(c.first,c.last,"\t")}}var n=e.getLine(t.start.row),s=t.start,r=e.getTabSize(),o=e.documentToScreenColumn(s.row,s.column);if(this.session.getUseSoftTabs())var a=r-o%r,l=h.stringRepeat(" ",a);else{for(a=o%r;" "==n[t.start.column]&&a;)t.start.column--,a--;this.selection.setSelectionRange(t),l="\t"}return this.insert(l)}var c=this.$getSelectedRows();e.indentRows(c.first,c.last,"\t")},this.blockIndent=function(){var e=this.$getSelectedRows();this.session.indentRows(e.first,e.last,"\t")},this.blockOutdent=function(){var e=this.session.getSelection();this.session.outdentRows(e.getRange())},this.sortLines=function(){var e=this.$getSelectedRows(),t=this.session,i=[];for(s=e.first;s<=e.last;s++)i.push(t.getLine(s));i.sort(function(e,t){return e.toLowerCase()<t.toLowerCase()?-1:e.toLowerCase()>t.toLowerCase()?1:0});for(var n=new p(0,0,0,0),s=e.first;s<=e.last;s++){var r=t.getLine(s);n.start.row=s,n.end.row=s,n.end.column=r.length,t.replace(n,i[s-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g;i.lastIndex=0;for(var n=this.session.getLine(e);i.lastIndex<t;){var s=i.exec(n);if(s.index<=t&&s.index+s[0].length>=t)return{value:s[0],start:s.index,end:s.index+s[0].length}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,i=this.selection.getCursor().column,n=new p(t,i-1,t,i),s=this.session.getTextRange(n);if(!isNaN(parseFloat(s))&&isFinite(s)){var r=this.getNumberAt(t,i);if(r){var o=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,a=r.start+r.value.length-o,l=parseFloat(r.value);l*=Math.pow(10,a),o!==r.end&&i<o?e*=Math.pow(10,r.end-i-1):e*=Math.pow(10,r.end-i),l+=e;var c=(l/=Math.pow(10,a)).toFixed(a),h=new p(t,r.start,t,r.end);this.session.replace(h,c),this.moveCursorTo(t,Math.max(r.start+1,i+c.length-r.value.length))}}},this.removeLines=function(){var e=this.$getSelectedRows();this.session.removeFullLines(e.first,e.last),this.clearSelection()},this.duplicateSelection=function(){var e=this.selection,t=this.session,i=e.getRange(),n=e.isBackwards();if(i.isEmpty()){var s=i.start.row;t.duplicateLines(s,s)}else{var r=n?i.start:i.end,o=t.insert(r,t.getTextRange(i),!1);i.start=r,i.end=o,e.setSelectionRange(i,n)}},this.moveLinesDown=function(){this.$moveLines(1,!1)},this.moveLinesUp=function(){this.$moveLines(-1,!1)},this.moveText=function(e,t,i){return this.session.moveText(e,t,i)},this.copyLinesUp=function(){this.$moveLines(-1,!0)},this.copyLinesDown=function(){this.$moveLines(1,!0)},this.$moveLines=function(e,t){var i,n,s=this.selection;if(!s.inMultiSelectMode||this.inVirtualSelectionMode){var r=s.toOrientedRange();i=this.$getSelectedRows(r),n=this.session.$moveLines(i.first,i.last,t?0:e),t&&-1==e&&(n=0),r.moveBy(n,0),s.fromOrientedRange(r)}else{var o=s.rangeList.ranges;s.rangeList.detach(this.session),this.inVirtualSelectionMode=!0;for(var a=0,l=0,c=o.length,h=0;h<c;h++){var u=h;o[h].moveBy(a,0);for(var d=(i=this.$getSelectedRows(o[h])).first,g=i.last;++h<c;){l&&o[h].moveBy(l,0);var f=this.$getSelectedRows(o[h]);if(t&&f.first!=g)break;if(!t&&f.first>g+1)break;g=f.last}for(h--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(u=h+1);u<=h;)o[u].moveBy(a,0),u++;t||(a=0),l+=a}s.fromOrientedRange(s.ranges[0]),s.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(this.getCursorPosition())},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,s=e*Math.floor(n.height/n.lineHeight);this.$blockScrolling++,!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(s,0)}):!1===t&&(this.selection.moveCursorBy(s,0),this.selection.clearSelection()),this.$blockScrolling--;var r=i.scrollTop;i.scrollBy(0,s*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(r)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.$blockScrolling+=1,this.selection.selectAll(),this.$blockScrolling-=1},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new A(this.session,i.row,i.column),s=n.getCurrentToken(),r=s||n.stepForward();if(r){var o,a,l=!1,c={},h=i.column-r.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(r.value.match(/[{}()\[\]]/g)){for(;h<r.value.length&&!l;h++)if(u[r.value[h]])switch(a=u[r.value[h]]+"."+r.type.replace("rparen","lparen"),isNaN(c[a])&&(c[a]=0),r.value[h]){case"(":case"[":case"{":c[a]++;break;case")":case"]":case"}":c[a]--,-1===c[a]&&(o="bracket",l=!0)}}else r&&-1!==r.type.indexOf("tag-name")&&(isNaN(c[r.value])&&(c[r.value]=0),"<"===s.value?c[r.value]++:"</"===s.value&&c[r.value]--,-1===c[r.value]&&(o="tag",l=!0));l||(s=r,r=n.stepForward(),h=0)}while(r&&!l);if(o){var d,g;if("bracket"===o)(d=this.session.getBracketRange(i))||(g=(d=new p(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+h-1,n.getCurrentTokenRow(),n.getCurrentTokenColumn()+h-1)).start,(t||g.row===i.row&&Math.abs(g.column-i.column)<2)&&(d=this.session.getBracketRange(g)));else if("tag"===o){if(!r||-1===r.type.indexOf("tag-name"))return;var f=r.value;if(0===(d=new p(n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2,n.getCurrentTokenRow(),n.getCurrentTokenColumn()-2)).compare(i.row,i.column))for(l=!1;r=s,(s=n.stepBackward())&&(-1!==s.type.indexOf("tag-close")&&d.setEnd(n.getCurrentTokenRow(),n.getCurrentTokenColumn()+1),r.value===f&&-1!==r.type.indexOf("tag-name")&&("<"===s.value?c[f]++:"</"===s.value&&c[f]--,0===c[f]&&(l=!0))),s&&!l;);r&&r.type.indexOf("tag-name")&&((g=d.start).row==i.row&&Math.abs(g.column-i.column)<2&&(g=d.end))}(g=d&&d.cursor||g)&&(e?d&&t?this.selection.setRange(d):d&&d.isEqual(this.getSelectionRange())?this.clearSelection():this.selection.selectTo(g.row,g.column):this.selection.moveTo(g.row,g.column))}}},this.gotoLine=function(e,t,i){this.selection.clearSelection(),this.session.unfold({row:e-1,column:t||0}),this.$blockScrolling+=1,this.exitMultiSelectMode&&this.exitMultiSelectMode(),this.moveCursorTo(e-1,t||0),this.$blockScrolling-=1,this.isRowFullyVisible(e-1)||this.scrollToLine(e-1,!0,i)},this.navigateTo=function(e,t){this.selection.moveTo(e,t)},this.navigateUp=function(e){if(this.selection.isMultiLine()&&!this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(-e||-1,0)},this.navigateDown=function(e){if(this.selection.isMultiLine()&&this.selection.isBackwards()){var t=this.selection.anchor.getPosition();return this.moveCursorToPosition(t)}this.selection.clearSelection(),this.selection.moveCursorBy(e||1,0)},this.navigateLeft=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorLeft();else{var t=this.getSelectionRange().start;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateRight=function(e){if(this.selection.isEmpty())for(e=e||1;e--;)this.selection.moveCursorRight();else{var t=this.getSelectionRange().end;this.moveCursorToPosition(t)}this.clearSelection()},this.navigateLineStart=function(){this.selection.moveCursorLineStart(),this.clearSelection()},this.navigateLineEnd=function(){this.selection.moveCursorLineEnd(),this.clearSelection()},this.navigateFileEnd=function(){this.selection.moveCursorFileEnd(),this.clearSelection()},this.navigateFileStart=function(){this.selection.moveCursorFileStart(),this.clearSelection()},this.navigateWordRight=function(){this.selection.moveCursorWordRight(),this.clearSelection()},this.navigateWordLeft=function(){this.selection.moveCursorWordLeft(),this.clearSelection()},this.replace=function(e,t){t&&this.$search.set(t);var i=this.$search.find(this.session),n=0;return i&&(this.$tryReplace(i,e)&&(n=1),null!==i&&(this.selection.setSelectionRange(i),this.renderer.scrollSelectionIntoView(i.start,i.end))),n},this.replaceAll=function(e,t){t&&this.$search.set(t);var i=this.$search.findAll(this.session),n=0;if(!i.length)return n;this.$blockScrolling+=1;var s=this.getSelectionRange();this.selection.moveTo(0,0);for(var r=i.length-1;0<=r;--r)this.$tryReplace(i[r],e)&&n++;return this.selection.setSelectionRange(s),this.$blockScrolling-=1,n},this.$tryReplace=function(e,t){var i=this.session.getTextRange(e);return null!==(t=this.$search.replace(i,t))?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,i){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var n=this.selection.getRange();null==t.needle&&((e=this.session.getTextRange(n)||this.$search.$options.needle)||(n=this.session.getWordRange(n.start.row,n.start.column),e=this.session.getTextRange(n)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:n});var s=this.$search.find(this.session);return t.preventScroll?s:s?(this.revealRange(s,i),s):(t.backwards?n.start=n.end:n.end=n.start,void this.selection.setRange(n))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.$blockScrolling+=1,this.session.unfold(e),this.selection.setSelectionRange(e),this.$blockScrolling-=1;var i=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(i)},this.undo=function(){this.$blockScrolling++,this.session.getUndoManager().undo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.$blockScrolling++,this.session.getUndoManager().redo(),this.$blockScrolling--,this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy()},this.setAutoScrollEditorIntoView=function(e){if(e){var s,r=this,o=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var a=this.$scrollAnchor;a.style.cssText="position:absolute",this.container.insertBefore(a,this.container.firstChild);var t=this.on("changeSelection",function(){o=!0}),i=this.renderer.on("beforeRender",function(){o&&(s=r.renderer.container.getBoundingClientRect())}),n=this.renderer.on("afterRender",function(){if(o&&s&&(r.isFocused()||r.searchBox&&r.searchBox.isFocused())){var e=r.renderer,t=e.$cursorLayer.$pixelPos,i=e.layerConfig,n=t.top-i.offset;null!=(o=0<=t.top&&n+s.top<0||!(t.top<i.height&&t.top+s.top+i.lineHeight>window.innerHeight)&&null)&&(a.style.top=n+"px",a.style.left=t.left+"px",a.style.height=i.lineHeight+"px",a.scrollIntoView(o)),o=s=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.removeEventListener("changeSelection",t),this.renderer.removeEventListener("afterRender",n),this.renderer.removeEventListener("beforeRender",i))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))}}).call(v.prototype),C.defineOptions(v.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.$resetCursorStyle()},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",showLineNumbers:"renderer",showGutter:"renderer",displayIndentGuides:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),t.Editor=v}),define("ace/undomanager",["require","exports","module"],function(e,t,i){"use strict";var n=function(){this.reset()};(function(){function t(e){return{action:e.action,start:e.start,end:e.end,lines:1==e.lines.length?null:e.lines,text:1==e.lines.length?e.lines[0]:null}}function i(e){return{action:e.action,start:e.start,end:e.end,lines:e.lines||[e.text]}}function n(e,t){for(var i=new Array(e.length),n=0;n<e.length;n++){for(var s=e[n],r={group:s.group,deltas:new Array(s.length)},o=0;o<s.deltas.length;o++){var a=s.deltas[o];r.deltas[o]=t(a)}i[n]=r}return i}this.execute=function(e){var t=e.args[0];this.$doc=e.args[1],e.merge&&this.hasUndo()&&(this.dirtyCounter--,t=this.$undoStack.pop().concat(t)),this.$undoStack.push(t),this.$redoStack=[],this.dirtyCounter<0&&(this.dirtyCounter=NaN),this.dirtyCounter++},this.undo=function(e){var t=this.$undoStack.pop(),i=null;return t&&(i=this.$doc.undoChanges(this.$deserializeDeltas(t),e),this.$redoStack.push(t),this.dirtyCounter--),i},this.redo=function(e){var t=this.$redoStack.pop(),i=null;return t&&(i=this.$doc.redoChanges(this.$deserializeDeltas(t),e),this.$undoStack.push(t),this.dirtyCounter++),i},this.reset=function(){this.$undoStack=[],this.$redoStack=[],this.dirtyCounter=0},this.hasUndo=function(){return 0<this.$undoStack.length},this.hasRedo=function(){return 0<this.$redoStack.length},this.markClean=function(){this.dirtyCounter=0},this.isClean=function(){return 0===this.dirtyCounter},this.$serializeDeltas=function(e){return n(e,t)},this.$deserializeDeltas=function(e){return n(e,i)}}).call(n.prototype),t.UndoManager=n}),define("ace/layer/gutter",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter"],function(e,t,i){"use strict";var y=e("../lib/dom"),n=e("../lib/oop"),a=e("../lib/lang"),s=e("../lib/event_emitter").EventEmitter,r=function(e){this.element=y.createElement("div"),this.element.className="ace_layer ace_gutter-layer",e.appendChild(this.element),this.setShowFoldWidgets(this.$showFoldWidgets),this.gutterWidth=0,this.$annotations=[],this.$updateAnnotations=this.$updateAnnotations.bind(this),this.$cells=[]};(function(){n.implement(this,s),this.setSession=function(e){this.session&&this.session.removeEventListener("change",this.$updateAnnotations),(this.session=e)&&e.on("change",this.$updateAnnotations)},this.addGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.addGutterDecoration"),this.session.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){window.console&&console.warn&&console.warn("deprecated use session.removeGutterDecoration"),this.session.removeGutterDecoration(e,t)},this.setAnnotations=function(e){this.$annotations=[];for(var t=0;t<e.length;t++){var i=e[t],n=i.row,s=this.$annotations[n];s||(s=this.$annotations[n]={text:[]});var r=i.text;r=r?a.escapeHTML(r):i.html||"",-1===s.text.indexOf(r)&&s.text.push(r);var o=i.type;"error"==o?s.className=" ace_error":"warning"==o&&" ace_error"!=s.className?s.className=" ace_warning":"info"==o&&!s.className&&(s.className=" ace_info")}},this.$updateAnnotations=function(e){if(this.$annotations.length){var t=e.start.row,i=e.end.row-t;if(0!==i)if("remove"==e.action)this.$annotations.splice(t,i+1,null);else{var n=new Array(i+1);n.unshift(t,1),this.$annotations.splice.apply(this.$annotations,n)}}},this.update=function(e){for(var t=this.session,i=e.firstRow,n=Math.min(e.lastRow+e.gutterOffset,t.getLength()-1),s=t.getNextFoldLine(i),r=s?s.start.row:1/0,o=this.$showFoldWidgets&&t.foldWidgets,a=t.$breakpoints,l=t.$decorations,c=t.$firstLineNumber,h=0,u=t.gutterRenderer||this.$renderer,d=null,g=-1,f=i;;){if(r<f&&(f=s.end.row+1,r=(s=t.getNextFoldLine(f,s))?s.start.row:1/0),n<f){for(;this.$cells.length>g+1;)d=this.$cells.pop(),this.element.removeChild(d.element);break}(d=this.$cells[++g])||((d={element:null,textNode:null,foldWidget:null}).element=y.createElement("div"),d.textNode=document.createTextNode(""),d.element.appendChild(d.textNode),this.element.appendChild(d.element),this.$cells[g]=d);var p="ace_gutter-cell ";if(a[f]&&(p+=a[f]),l[f]&&(p+=l[f]),this.$annotations[f]&&(p+=this.$annotations[f].className),d.element.className!=p&&(d.element.className=p),(C=t.getRowLength(f)*e.lineHeight+"px")!=d.element.style.height&&(d.element.style.height=C),o){var m=o[f];null==m&&(m=o[f]=t.getFoldWidget(f))}if(m){d.foldWidget||(d.foldWidget=y.createElement("span"),d.element.appendChild(d.foldWidget));p="ace_fold-widget ace_"+m;"start"==m&&f==r&&f<s.end.row?p+=" ace_closed":p+=" ace_open",d.foldWidget.className!=p&&(d.foldWidget.className=p);var C=e.lineHeight+"px";d.foldWidget.style.height!=C&&(d.foldWidget.style.height=C)}else d.foldWidget&&(d.element.removeChild(d.foldWidget),d.foldWidget=null);var A=h=u?u.getText(t,f):f+c;A!=d.textNode.data&&(d.textNode.data=A),f++}this.element.style.height=e.minHeight+"px",(this.$fixedWidth||t.$useWrapMode)&&(h=t.getLength()+c);var v=u?u.getWidth(t,h,e):h.toString().length*e.characterWidth,b=this.$padding||this.$computePadding();(v+=b.left+b.right)!==this.gutterWidth&&!isNaN(v)&&(this.gutterWidth=v,this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._emit("changeGutterWidth",v))},this.$fixedWidth=!1,this.$showLineNumbers=!0,this.$renderer="",this.setShowLineNumbers=function(e){this.$renderer=!e&&{getWidth:function(){return""},getText:function(){return""}}},this.getShowLineNumbers=function(){return this.$showLineNumbers},this.$showFoldWidgets=!0,this.setShowFoldWidgets=function(e){e?y.addCssClass(this.element,"ace_folding-enabled"):y.removeCssClass(this.element,"ace_folding-enabled"),this.$showFoldWidgets=e,this.$padding=null},this.getShowFoldWidgets=function(){return this.$showFoldWidgets},this.$computePadding=function(){if(!this.element.firstChild)return{left:0,right:0};var e=y.computedStyle(this.element.firstChild);return this.$padding={},this.$padding.left=parseInt(e.paddingLeft)+1||0,this.$padding.right=parseInt(e.paddingRight)||0,this.$padding},this.getRegion=function(e){var t=this.$padding||this.$computePadding(),i=this.element.getBoundingClientRect();return e.x<t.left+i.left?"markers":this.$showFoldWidgets&&e.x>i.right-t.right?"foldWidgets":void 0}}).call(r.prototype),t.Gutter=r}),define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";var g=e("../range").Range,n=e("../lib/dom"),s=function(e){this.element=n.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.update=function(e){if(e=e||this.config){this.config=e;var t=[];for(var i in this.markers){var n=this.markers[i];if(n.range){var s=n.range.clipRows(e.firstRow,e.lastRow);if(!s.isEmpty())if(s=s.toScreenRange(this.session),n.renderer){var r=this.$getTop(s.start.row,e),o=this.$padding+s.start.column*e.characterWidth;n.renderer(t,s,o,r,e)}else"fullLine"==n.type?this.drawFullLineMarker(t,s,n.clazz,e):"screenLine"==n.type?this.drawScreenLineMarker(t,s,n.clazz,e):s.isMultiLine()?"text"==n.type?this.drawTextMarker(t,s,n.clazz,e):this.drawMultiLineMarker(t,s,n.clazz,e):this.drawSingleLineMarker(t,s,n.clazz+" ace_start ace_br15",e)}else n.update(t,this,this.session,e)}this.element.innerHTML=t.join("")}},this.$getTop=function(e,t){return(e-t.firstRowScreen)*t.lineHeight},this.drawTextMarker=function(e,t,i,n,s){for(var r=this.session,o=t.start.row,a=t.end.row,l=o,c=0,h=0,u=r.getScreenLastRowColumn(l),d=new g(l,t.start.column,l,h);l<=a;l++)d.start.row=d.end.row=l,d.start.column=l==o?t.start.column:r.getRowWrapIndent(l),c=h,h=d.end.column=u,u=l+1<a?r.getScreenLastRowColumn(l+1):l==a?0:t.end.column,this.drawSingleLineMarker(e,d,i+(l==o?" ace_start":"")+" ace_br"+((l==o||l==o+1&&t.start.column?1:0)|(c<h?2:0)|(u<h?4:0)|(l==a?8:0)),n,l==a?0:1,s)},this.drawMultiLineMarker=function(e,t,i,n,s){var r=this.$padding,o=n.lineHeight,a=this.$getTop(t.start.row,n),l=r+t.start.column*n.characterWidth;s=s||"",e.push("<div class='",i," ace_br1 ace_start' style='","height:",o,"px;","right:0;","top:",a,"px;","left:",l,"px;",s,"'></div>"),a=this.$getTop(t.end.row,n);var c=t.end.column*n.characterWidth;if(e.push("<div class='",i," ace_br12' style='","height:",o,"px;","width:",c,"px;","top:",a,"px;","left:",r,"px;",s,"'></div>"),!((o=(t.end.row-t.start.row-1)*n.lineHeight)<=0)){a=this.$getTop(t.start.row+1,n);var h=(t.start.column?1:0)|(t.end.column?0:8);e.push("<div class='",i,h?" ace_br"+h:"","' style='","height:",o,"px;","right:0;","top:",a,"px;","left:",r,"px;",s,"'></div>")}},this.drawSingleLineMarker=function(e,t,i,n,s,r){var o=n.lineHeight,a=(t.end.column+(s||0)-t.start.column)*n.characterWidth,l=this.$getTop(t.start.row,n),c=this.$padding+t.start.column*n.characterWidth;e.push("<div class='",i,"' style='","height:",o,"px;","width:",a,"px;","top:",l,"px;","left:",c,"px;",r||"","'></div>")},this.drawFullLineMarker=function(e,t,i,n,s){var r=this.$getTop(t.start.row,n),o=n.lineHeight;t.start.row!=t.end.row&&(o+=this.$getTop(t.end.row,n)-r),e.push("<div class='",i,"' style='","height:",o,"px;","top:",r,"px;","left:0;right:0;",s||"","'></div>")},this.drawScreenLineMarker=function(e,t,i,n,s){var r=this.$getTop(t.start.row,n),o=n.lineHeight;e.push("<div class='",i,"' style='","height:",o,"px;","top:",r,"px;","left:0;right:0;",s||"","'></div>")}}).call(s.prototype),t.Marker=s}),define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("../lib/oop"),c=e("../lib/dom"),u=e("../lib/lang"),s=(e("../lib/useragent"),e("../lib/event_emitter").EventEmitter),r=function(e){this.element=c.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this)};(function(){n.implement(this,s),this.EOF_CHAR="¶",this.EOL_CHAR_LF="¬",this.EOL_CHAR_CRLF="¤",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="—",this.SPACE_CHAR="·",this.$padding=0,this.$updateEolChar=function(){var e="\n"==this.session.doc.getNewLineCharacter()?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=e)return this.EOL_CHAR=e,!0},this.setPadding=function(e){this.$padding=e,this.element.style.padding="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){(this.session=e)&&this.$computeTabString()},this.showInvisibles=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],i=1;i<e+1;i++)this.showInvisibles?t.push("<span class='ace_invisible ace_invisible_tab'>"+u.stringRepeat(this.TAB_CHAR,i)+"</span>"):t.push(u.stringRepeat(" ",i));if(this.displayIndentGuides){this.$indentGuideRe=/\s\S| \t|\t |\s$/;var n="ace_indent-guide",s="",r="";if(this.showInvisibles){n+=" ace_invisible",s=" ace_invisible_space",r=" ace_invisible_tab";var o=u.stringRepeat(this.SPACE_CHAR,this.tabSize),a=u.stringRepeat(this.TAB_CHAR,this.tabSize)}else a=o=u.stringRepeat(" ",this.tabSize);this.$tabStrings[" "]="<span class='"+n+s+"'>"+o+"</span>",this.$tabStrings["\t"]="<span class='"+n+r+"'>"+a+"</span>"}},this.updateLines=function(e,t,i){(this.config.lastRow!=e.lastRow||this.config.firstRow!=e.firstRow)&&this.scrollLines(e),this.config=e;for(var n=Math.max(t,e.firstRow),s=Math.min(i,e.lastRow),r=this.element.childNodes,o=0,a=e.firstRow;a<n;a++){if(l=this.session.getFoldLine(a)){if(l.containsRow(n)){n=l.start.row;break}a=l.end.row}o++}a=n;for(var l,c=(l=this.session.getNextFoldLine(a))?l.start.row:1/0;c<a&&(a=l.end.row+1,c=(l=this.session.getNextFoldLine(a,l))?l.start.row:1/0),!(s<a);){var h=r[o++];if(h){var u=[];this.$renderLine(u,a,!this.$useLineGroups(),a==c&&l),h.style.height=e.lineHeight*this.session.getRowLength(a)+"px",h.innerHTML=u.join("")}a++}},this.scrollLines=function(e){var t=this.config;if(this.config=e,!t||t.lastRow<e.firstRow)return this.update(e);if(e.lastRow<t.firstRow)return this.update(e);var i=this.element;if(t.firstRow<e.firstRow)for(var n=this.session.getFoldedRowCount(t.firstRow,e.firstRow-1);0<n;n--)i.removeChild(i.firstChild);if(t.lastRow>e.lastRow)for(n=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0<n;n--)i.removeChild(i.lastChild);if(e.firstRow<t.firstRow){var s=this.$renderLinesFragment(e,e.firstRow,t.firstRow-1);i.firstChild?i.insertBefore(s,i.firstChild):i.appendChild(s)}if(e.lastRow>t.lastRow){s=this.$renderLinesFragment(e,t.lastRow+1,e.lastRow);i.appendChild(s)}},this.$renderLinesFragment=function(e,t,i){for(var n=this.element.ownerDocument.createDocumentFragment(),s=t,r=this.session.getNextFoldLine(s),o=r?r.start.row:1/0;o<s&&(s=r.end.row+1,o=(r=this.session.getNextFoldLine(s,r))?r.start.row:1/0),!(i<s);){var a=c.createElement("div"),l=[];if(this.$renderLine(l,s,!1,s==o&&r),a.innerHTML=l.join(""),this.$useLineGroups())a.className="ace_line_group",n.appendChild(a),a.style.height=e.lineHeight*this.session.getRowLength(s)+"px";else for(;a.firstChild;)n.appendChild(a.firstChild);s++}return n},this.update=function(e){for(var t=[],i=(this.config=e).firstRow,n=e.lastRow,s=i,r=this.session.getNextFoldLine(s),o=r?r.start.row:1/0;o<s&&(s=r.end.row+1,o=(r=this.session.getNextFoldLine(s,r))?r.start.row:1/0),!(n<s);)this.$useLineGroups()&&t.push("<div class='ace_line_group' style='height:",e.lineHeight*this.session.getRowLength(s),"px'>"),this.$renderLine(t,s,!1,s==o&&r),this.$useLineGroups()&&t.push("</div>"),s++;this.element.innerHTML=t.join("")},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,l,t,i){var c=this,n=i.replace(/\t|&|<|>|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\u3000\uFEFF])|[\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3000-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]/g,function(e,t,i,n,s){if(t)return c.showInvisibles?"<span class='ace_invisible ace_invisible_space'>"+u.stringRepeat(c.SPACE_CHAR,e.length)+"</span>":e;if("&"==e)return"&#38;";if("<"==e)return"&#60;";if(">"==e)return"&#62;";if("\t"==e){var r=c.session.getScreenTabSize(l+n);return l+=r-1,c.$tabStrings[r]}if(" "!=e)return i?"<span class='ace_invisible ace_invisible_space ace_invalid'>"+c.SPACE_CHAR+"</span>":(l+=1,"<span class='ace_cjk' style='width:"+2*c.config.characterWidth+"px'>"+e+"</span>");var o=c.showInvisibles?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",a=c.showInvisibles?c.SPACE_CHAR:"";return l+=1,"<span class='"+o+"' style='width:"+2*c.config.characterWidth+"px'>"+a+"</span>"});if(this.$textToken[t.type])e.push(n);else{var s="ace_"+t.type.replace(/\./g," ace_"),r="";"fold"==t.type&&(r=" style='width:"+t.value.length*this.config.characterWidth+"px;' "),e.push("<span class='",s,"'",r,">",n,"</span>")}return l+i.length},this.renderIndentGuide=function(e,t,i){var n=t.search(this.$indentGuideRe);return n<=0||i<=n?t:" "==t[0]?(n-=n%this.tabSize,e.push(u.stringRepeat(this.$tabStrings[" "],n/this.tabSize)),t.substr(n)):"\t"==t[0]?(e.push(u.stringRepeat(this.$tabStrings["\t"],n)),t.substr(n)):t},this.$renderWrappedLine=function(e,t,i,n){for(var s=0,r=0,o=i[0],a=0,l=0;l<t.length;l++){var c=t[l],h=c.value;if(0==l&&this.displayIndentGuides){if(s=h.length,!(h=this.renderIndentGuide(e,h,o)))continue;s-=h.length}if(s+h.length<o)a=this.$renderToken(e,a,c,h),s+=h.length;else{for(;s+h.length>=o;)a=this.$renderToken(e,a,c,h.substring(0,o-s)),h=h.substring(o-s),s=o,n||e.push("</div>","<div class='ace_line' style='height:",this.config.lineHeight,"px'>"),e.push(u.stringRepeat(" ",i.indent)),a=0,o=i[++r]||Number.MAX_VALUE;0!=h.length&&(s+=h.length,a=this.$renderToken(e,a,c,h))}}},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],s=n.value;this.displayIndentGuides&&(s=this.renderIndentGuide(e,s)),s&&(i=this.$renderToken(e,i,n,s));for(var r=1;r<t.length;r++)s=(n=t[r]).value,i=this.$renderToken(e,i,n,s)},this.$renderLine=function(e,t,i,n){if(!n&&0!=n&&(n=this.session.getFoldLine(t)),n)var s=this.$getFoldLineTokens(t,n);else s=this.session.getTokens(t);if(i||e.push("<div class='ace_line' style='height:",this.config.lineHeight*(this.$useLineGroups()?1:this.session.getRowLength(t)),"px'>"),s.length){var r=this.session.getRowSplitData(t);r&&r.length?this.$renderWrappedLine(e,s,r,i):this.$renderSimpleLine(e,s)}this.showInvisibles&&(n&&(t=n.end.row),e.push("<span class='ace_invisible ace_invisible_eol'>",t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,"</span>")),i||e.push("</div>")},this.$getFoldLineTokens=function(e,t){var r=this.session,o=[],a=r.getTokens(e);return t.walk(function(e,t,i,n,s){null!=e?o.push({type:"fold",value:e}):(s&&(a=r.getTokens(t)),a.length&&function(e,t,i){for(var n=0,s=0;s+e[n].value.length<t;)if(s+=e[n].value.length,++n==e.length)return;for(s!=t&&((r=e[n].value.substring(t-s)).length>i-t&&(r=r.substring(0,i-t)),o.push({type:e[n].type,value:r}),s=t+r.length,n+=1);s<i&&n<e.length;){var r;(r=e[n].value).length+s>i?o.push({type:e[n].type,value:r.substring(0,i-s)}):o.push(e[n]),s+=r.length,n+=1}}(a,n,i))},t.end.row,this.session.getLine(t.end.row).length),o},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$measureNode&&this.$measureNode.parentNode.removeChild(this.$measureNode),delete this.$measureNode}}).call(r.prototype),t.Text=r}),define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";var n,s=e("../lib/dom"),r=function(e){this.element=s.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),void 0===n&&(n=!("opacity"in this.element.style)),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),s.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=(n?this.$updateVisibility:this.$updateOpacity).bind(this)};(function(){this.$updateVisibility=function(e){for(var t=this.cursors,i=t.length;i--;)t[i].style.visibility=e?"":"hidden"},this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)t[i].style.opacity=e?"":"0"},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&!n&&(this.smoothBlinking=e,s.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.$updateCursors=this.$updateOpacity.bind(this),this.restartTimer())},this.addCursor=function(){var e=s.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(1<this.cursors.length){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,s.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,s.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.smoothBlinking&&s.removeCssClass(this.element,"ace_smooth-blinking"),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible){this.smoothBlinking&&setTimeout(function(){s.addCssClass(this.element,"ace_smooth-blinking")}.bind(this));var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var i=this.session.documentToScreenPosition(e);return{left:this.$padding+i.column*this.config.characterWidth,top:(i.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight}},this.update=function(e){this.config=e;var t=this.session.$selectionMarkers,i=0,n=0;void 0!==t&&0!==t.length||(t=[{cursor:null}]);i=0;for(var s=t.length;i<s;i++){var r=this.getPixelPosition(t[i].cursor,!0);if(!((r.top>e.height+e.offset||r.top<0)&&1<i)){var o=(this.cursors[n++]||this.addCursor()).style;this.drawCursor?this.drawCursor(o,r,e,t[i],this.session):(o.left=r.left+"px",o.top=r.top+"px",o.width=e.characterWidth+"px",o.height=e.lineHeight+"px")}}for(;this.cursors.length>n;)this.removeCursor();var a=this.session.getOverwrite();this.$setOverwrite(a),this.$pixelPos=r,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?s.addCssClass(this.element,"ace_overwrite-cursors"):s.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(r.prototype),t.Cursor=r}),define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),s=e("./lib/dom"),r=e("./lib/event"),o=e("./lib/event_emitter").EventEmitter,a=function(e){this.element=s.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=s.createElement("div"),this.inner.className="ace_scrollbar-inner",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,r.addListener(this.element,"scroll",this.onScroll.bind(this)),r.addListener(this.element,"mousedown",r.preventDefault)};(function(){n.implement(this,o),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e}}).call(a.prototype);var l=function(e,t){a.call(this,e),this.scrollTop=0,t.$scrollbarWidth=this.width=s.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px"};n.inherits(l,a),function(){this.classSuffix="-v",this.onScroll=function(){this.skipEvent||(this.scrollTop=this.element.scrollTop,this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return this.isVisible?this.width:0},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=function(e){this.inner.style.height=e+"px"},this.setScrollHeight=function(e){this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=this.element.scrollTop=e)}}.call(l.prototype);var c=function(e,t){a.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};n.inherits(c,a),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(c.prototype),t.ScrollBar=l,t.ScrollBarV=l,t.ScrollBarH=c,t.VScrollBar=l,t.HScrollBar=c}),define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";var n=e("./lib/event"),s=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.window=t||window};(function(){this.schedule=function(e){if(this.changes=this.changes|e,!this.pending&&this.changes){this.pending=!0;var t=this;n.nextFrame(function(){var e;for(t.pending=!1;e=t.changes;)t.changes=0,t.onRender(e)},this.window)}}}).call(s.prototype),t.RenderLoop=s}),define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),s=e("../lib/dom"),r=e("../lib/lang"),o=e("../lib/useragent"),a=e("../lib/event_emitter").EventEmitter,l=0,c=t.FontMetrics=function(e,t){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),l||this.$testFractionalRect(),this.$measureNode.innerHTML=r.stringRepeat("X",l),this.$characterSize={width:0,height:0},this.checkForSizeChanges()};(function(){n.implement(this,a),this.$characterSize={width:0,height:0},this.$testFractionalRect=function(){var e=s.createElement("div");this.$setMeasureNodeStyles(e.style),e.style.width="0.2px",document.documentElement.appendChild(e);var t=e.getBoundingClientRect().width;l=0<t&&t<1?50:100,e.parentNode.removeChild(e)},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",o.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(){var e=this.$measureSizes();if(e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=setInterval(function(){e.checkForSizeChanges()},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(){if(50===l){var t=null;try{t=this.$measureNode.getBoundingClientRect()}catch(e){t={width:0,height:0}}var e={height:t.height,width:t.width/l}}else e={height:this.$measureNode.clientHeight,width:this.$measureNode.clientWidth/l};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.innerHTML=r.stringRepeat(e,l),this.$main.getBoundingClientRect().width/l},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)}}).call(c.prototype)}),define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/lib/useragent","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter"],function(e,t,i){"use strict";var n=e("./lib/oop"),r=e("./lib/dom"),o=e("./config"),s=e("./lib/useragent"),a=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,c=e("./layer/text").Text,h=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,g=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter;r.importCssString('.ace_editor {position: relative;overflow: hidden;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;min-width: 100%;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;text-indent: -1em;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: inherit;color: inherit;z-index: 1000;opacity: 1;text-indent: 0;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;}.ace_text-layer {font: inherit !important;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_smooth-blinking .ace_cursor {-webkit-transition: opacity 0.18s;transition: opacity 0.18s;}.ace_editor.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;}.ace_line .ace_fold {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: -webkit-linear-gradient(top, transparent, rgba(0, 0, 0, 0.1));background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {-moz-box-sizing: border-box;-webkit-box-sizing: border-box;box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {-webkit-transition: opacity 0.4s ease 0.05s;transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {-webkit-transition: opacity 0.05s ease 0.05s;transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}',"ace_editor.css");var m=function(e,t){var i=this;this.container=e||r.createElement("div"),this.$keepTextAreaAtCursor=!s.isOldIE,r.addCssClass(this.container,"ace_editor"),this.setTheme(t),this.$gutter=r.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.scroller=r.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=r.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content);var n=this.$textLayer=new c(this.content);this.canvas=n.element,this.$markerFront=new l(this.content),this.$cursorLayer=new h(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.addEventListener("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.addEventListener("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container,500),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.addEventListener("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._emit("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,n.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin()},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRow<t&&(this.$changedLines.lastRow=t)):this.$changedLines={firstRow:e,lastRow:t},this.$changedLines.lastRow<this.layerConfig.firstRow){if(!i)return;this.$changedLines.lastRow=this.layerConfig.lastRow}this.$changedLines.firstRow>this.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar()},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2<this.resizing)){0<this.resizing?this.resizing++:this.resizing=e?1:0;var s=this.container;n||(n=s.clientHeight||s.scrollHeight),i||(i=s.clientWidth||s.scrollWidth);var r=this.$updateCachedSize(e,t,i,n);if(!this.$size.scrollerHeight||!i&&!n)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(r|this.$changes,!0):this.$loop.schedule(r|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarV.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,i,n){n-=this.$extraHeight||0;var s=0,r=this.$size,o={width:r.width,height:r.height,scrollerHeight:r.scrollerHeight,scrollerWidth:r.scrollerWidth};return n&&(e||r.height!=n)&&(r.height=n,s|=this.CHANGE_SIZE,r.scrollerHeight=r.height,this.$horizScroll&&(r.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",s|=this.CHANGE_SCROLL),i&&(e||r.width!=i)&&(s|=this.CHANGE_SIZE,r.width=i,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,this.scrollBarH.element.style.left=this.scroller.style.left=t+"px",r.scrollerWidth=Math.max(0,i-t-this.scrollBarV.getWidth()),this.scrollBarH.element.style.right=this.scroller.style.right=this.scrollBarV.getWidth()+"px",this.scroller.style.bottom=this.scrollBarH.getHeight()+"px",(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(s|=this.CHANGE_FULL)),r.$dirty=!i||!n,s&&this._signal("resize",o),s},this.onGutterResize=function(){var e=this.$showGutter?this.$gutter.offsetWidth:0;e!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,e,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):(this.$computeLayerConfig(),this.$loop.schedule(this.CHANGE_MARKER))},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updateGutterLineHighlight=function(){var e=this.$cursorLayer.$pixelPos,t=this.layerConfig.lineHeight;if(this.session.getUseWrapMode()){var i=this.session.selection.getCursor();i.column=0,e=this.$cursorLayer.getPixelPosition(i,!0),t*=this.session.getRowLength(i.row)}this.$gutterLineHighlight.style.top=e.top-this.layerConfig.offset+"px",this.$gutterLineHighlight.style.height=t+"px"},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=r.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=r.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=this.characterWidth*this.$printMarginColumn+this.$padding+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(this.$keepTextAreaAtCursor){var e=this.layerConfig,t=this.$cursorLayer.$pixelPos.top,i=this.$cursorLayer.$pixelPos.left;t-=e.offset;var n=this.textarea.style,s=this.lineHeight;if(t<0||t>e.height-s)n.top=n.left="0";else{var r=this.characterWidth;if(this.$composition){var o=this.textarea.value.replace(/^\x01+/,"");r*=this.session.$getStringScreenWidth(o)[0]+2,s+=2}(i-=this.scrollLeft)>this.$size.scrollerWidth-r&&(i=this.$size.scrollerWidth-r),i+=this.gutterWidth,n.height=s+"px",n.width=r+"px",n.left=Math.min(i,this.$size.scrollerWidth-r)+"px",n.top=Math.min(t,this.$size.height-s)+"px"}}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=Math.floor((this.layerConfig.height+this.layerConfig.offset)/this.layerConfig.lineHeight);return this.layerConfig.firstRow-1+e},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var s=this.scrollMargin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,s.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-s.top),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender");var i=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig(),i.firstRow!=this.layerConfig.firstRow&&i.firstRowScreen==this.layerConfig.firstRowScreen){var n=this.scrollTop+(i.firstRow-this.layerConfig.firstRow)*this.lineHeight;0<n&&(this.scrollTop=n,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig())}i=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),this.$gutterLayer.element.style.marginTop=-i.offset+"px",this.content.style.marginTop=-i.offset+"px",this.content.style.width=i.width+2*this.$padding+"px",this.content.style.height=i.minHeight+"px"}return e&this.CHANGE_H_SCROLL&&(this.content.style.marginLeft=-this.scrollLeft+"px",this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()):e&this.CHANGE_SCROLL?(e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(i):this.$textLayer.scrollLines(i),this.$showGutter&&this.$gutterLayer.update(i),this.$markerBack.update(i),this.$markerFront.update(i),this.$cursorLayer.update(i),this.$highlightGutterLine&&this.$updateGutterLineHighlight(),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$textLayer.update(i),this.$showGutter&&this.$gutterLayer.update(i)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(i):(e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER)&&this.$showGutter&&this.$gutterLayer.update(i),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(i),this.$moveTextAreaToCursor(),this.$highlightGutterLine&&this.$updateGutterLineHighlight()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(i),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(i)),void this._signal("afterRender")}this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.max((this.$minLines||1)*this.lineHeight,Math.min(t,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());var n=t<e;if(i!=this.desiredHeight||this.$size.height!=this.desiredHeight||n!=this.$vScroll){n!=this.$vScroll&&(this.$vScroll=n,this.scrollBarV.setVisible(n));var s=this.container.clientWidth;this.container.style.height=i+"px",this.$updateCachedSize(!0,this.$gutterWidth,s,i),this.desiredHeight=i,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,i=t.height<=2*this.lineHeight,n=this.session.getScreenLength()*this.lineHeight,s=this.$getLongestLine(),r=!i&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-s-2*this.$padding<0),o=this.$horizScroll!==r;o&&(this.$horizScroll=r,this.scrollBarH.setVisible(r));var a=this.$vScroll;this.$maxLines&&1<this.lineHeight&&this.$autosize();var l=this.scrollTop%this.lineHeight,c=t.scrollerHeight+this.lineHeight,h=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;n+=h;var u=this.scrollMargin;this.session.setScrollTop(Math.max(-u.top,Math.min(this.scrollTop,n-t.scrollerHeight+u.bottom))),this.session.setScrollLeft(Math.max(-u.left,Math.min(this.scrollLeft,s+2*this.$padding-t.scrollerWidth+u.right)));var d=!i&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-n+h<0||this.scrollTop>u.top),g=a!==d;g&&(this.$vScroll=d,this.scrollBarV.setVisible(d));var f,p,m=Math.ceil(c/this.lineHeight)-1,C=Math.max(0,Math.round((this.scrollTop-l)/this.lineHeight)),A=C+m,v=this.lineHeight;C=e.screenToDocumentRow(C,0);var b=e.getFoldLine(C);b&&(C=b.start.row),f=e.documentToScreenRow(C,0),p=e.getRowLength(C)*v,A=Math.min(e.screenToDocumentRow(A,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(A)*v+p,l=this.scrollTop-f*v;var y=0;return this.layerConfig.width!=s&&(y=this.CHANGE_H_SCROLL),(o||g)&&(y=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),g&&(s=this.$getLongestLine())),this.layerConfig={width:s,padding:this.$padding,firstRow:C,firstRowScreen:f,lastRow:A,lineHeight:v,characterWidth:this.characterWidth,minHeight:c,maxHeight:n,offset:l,gutterOffset:Math.max(0,Math.ceil((l+t.height-t.scrollerHeight)/v)),height:this.$size.scrollerHeight},y},this.$updateLines=function(){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var i=this.layerConfig;if(!(e>i.lastRow+1||t<i.firstRow))return t===1/0?(this.$showGutter&&this.$gutterLayer.update(i),void this.$textLayer.update(i)):(this.$textLayer.updateLines(i,e,t),!0)},this.$getLongestLine=function(){var e=this.session.getScreenWidth();return this.showInvisibles&&!this.session.$useWrapMode&&(e+=1),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){if(0!==this.$size.scrollerHeight){var n=this.$cursorLayer.getPixelPosition(e),s=n.left,r=n.top,o=i&&i.top||0,a=i&&i.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;r<l+o?(t&&(r-=t*this.$size.scrollerHeight),0===r&&(r=-this.scrollMargin.top),this.session.setScrollTop(r)):l+this.$size.scrollerHeight-a<r+this.lineHeight&&(t&&(r+=t*this.$size.scrollerHeight),this.session.setScrollTop(r+this.lineHeight-this.$size.scrollerHeight));var c=this.scrollLeft;s<c?(s<this.$padding+2*this.layerConfig.characterWidth&&(s=-this.scrollMargin.left),this.session.setScrollLeft(s)):c+this.$size.scrollerWidth<s+this.characterWidth?this.session.setScrollLeft(Math.round(s+this.characterWidth-this.$size.scrollerWidth)):c<=this.$padding&&s-c<this.characterWidth&&this.session.setScrollLeft(0)}},this.getScrollTop=function(){return this.session.getScrollTop()},this.getScrollLeft=function(){return this.session.getScrollLeft()},this.getScrollTopRow=function(){return this.scrollTop/this.lineHeight},this.getScrollBottomRow=function(){return Math.max(0,Math.floor((this.scrollTop+this.$size.scrollerHeight)/this.lineHeight)-1)},this.scrollToRow=function(e){this.session.setScrollTop(e*this.lineHeight)},this.alignCursor=function(e,t){"number"==typeof e&&(e={row:e,column:0});var i=this.$cursorLayer.getPixelPosition(e),n=this.$size.scrollerHeight-this.lineHeight,s=i.top-n*(t||0);return this.session.setScrollTop(s),s},this.STEPS=8,this.$calcSteps=function(e,t){var i,n,s=0,r=this.STEPS,o=[];for(s=0;s<r;++s)o.push((i=s/this.STEPS,(t-(n=e))*(Math.pow(i-1,3)+1)+n));return o},this.scrollToLine=function(e,t,i,n){var s=this.$cursorLayer.getPixelPosition({row:e,column:0}).top;t&&(s-=this.$size.scrollerHeight/2);var r=this.scrollTop;this.session.setScrollTop(s),!1!==i&&this.animateScrolling(r,n)},this.animateScrolling=function(e,t){var i=this.scrollTop;if(this.$animatedScroll){var n=this;if(e!=i){if(this.$scrollAnimation){var s=this.$scrollAnimation.steps;if(s.length&&(e=s[0])==i)return}var r=n.$calcSteps(e,i);this.$scrollAnimation={from:e,to:i,steps:r},clearInterval(this.$timer),n.session.setScrollTop(r.shift()),n.session.$scrollTop=i,this.$timer=setInterval(function(){r.length?(n.session.setScrollTop(r.shift()),n.session.$scrollTop=i):null!=i?(n.session.$scrollTop=-1,n.session.setScrollTop(i),i=null):(n.$timer=clearInterval(n.$timer),n.$scrollAnimation=null,t&&t())},10)}}},this.scrollToY=function(e){this.scrollTop!==e&&(this.$loop.schedule(this.CHANGE_SCROLL),this.scrollTop=e)},this.scrollToX=function(e){this.scrollLeft!==e&&(this.scrollLeft=e),this.$loop.schedule(this.CHANGE_H_SCROLL)},this.scrollTo=function(e,t){this.session.setScrollTop(t),this.session.setScrollLeft(t)},this.scrollBy=function(e,t){t&&this.session.setScrollTop(this.session.getScrollTop()+t),e&&this.session.setScrollLeft(this.session.getScrollLeft()+e)},this.isScrollableBy=function(e,t){return t<0&&this.session.getScrollTop()>=1-this.scrollMargin.top||(0<t&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(0<e&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=(e+this.scrollLeft-i.left-this.$padding)/this.characterWidth,s=Math.floor((t+this.scrollTop-i.top)/this.lineHeight),r=Math.round(n);return{row:s,column:r,side:0<n-r?1:-1}},this.screenToTextCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=Math.round((e+this.scrollLeft-i.left-this.$padding)/this.characterWidth),s=(t+this.scrollTop-i.top)/this.lineHeight;return this.session.screenToDocumentPosition(s,Math.max(n,0))},this.textToScreenCoordinates=function(e,t){var i=this.scroller.getBoundingClientRect(),n=this.session.documentToScreenPosition(e,t),s=this.$padding+Math.round(n.column*this.characterWidth),r=n.row*this.lineHeight;return{pageX:i.left+s-this.scrollLeft,pageY:i.top+r-this.scrollTop}},this.visualizeFocus=function(){r.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){r.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition||(this.$composition={keepTextAreaAtCursor:this.$keepTextAreaAtCursor,cssText:this.textarea.style.cssText}),this.$keepTextAreaAtCursor=!0,r.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor()},this.setCompositionText=function(e){this.$moveTextAreaToCursor()},this.hideComposition=function(){this.$composition&&(r.removeCssClass(this.textarea,"ace_composition"),this.$keepTextAreaAtCursor=this.$composition.keepTextAreaAtCursor,this.textarea.style.cssText=this.$composition.cssText,this.$composition=null)},this.setTheme=function(i,n){function e(e){if(s.$themeId!=i)return n&&n();if(e.cssClass){r.importCssString(e.cssText,e.cssClass,s.container.ownerDocument),s.theme&&r.removeCssClass(s.container,s.theme.cssClass);var t="padding"in e?e.padding:"padding"in(s.theme||{})?4:s.$padding;s.$padding&&t!=s.$padding&&s.setPadding(t),s.$theme=e.cssClass,s.theme=e,r.addCssClass(s.container,e.cssClass),r.setCssClass(s.container,"ace_dark",e.isDark),s.$size&&(s.$size.width=0,s.$updateSizeAsync()),s._dispatchEvent("themeLoaded",{theme:e}),n&&n()}}var s=this;if(this.$themeId=i,s._dispatchEvent("themeChange",{theme:i}),i&&"string"!=typeof i)e(i);else{var t=i||this.$options.theme.initialValue;o.loadModule(["theme",t],e)}},this.getTheme=function(){return this.$themeId},this.setStyle=function(e,t){r.setCssClass(this.container,e,!1!==t)},this.unsetStyle=function(e){r.removeCssClass(this.container,e)},this.setCursorStyle=function(e){this.scroller.style.cursor!=e&&(this.scroller.style.cursor=e)},this.setMouseCursor=function(e){this.scroller.style.cursor=e},this.destroy=function(){this.$textLayer.destroy(),this.$cursorLayer.destroy()}}).call(m.prototype),o.defineOptions(m.prototype,"renderer",{animatedScroll:{initialValue:!1},showInvisibles:{set:function(e){this.$textLayer.setShowInvisibles(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!1},showPrintMargin:{set:function(){this.$updatePrintMargin()},initialValue:!0},printMarginColumn:{set:function(){this.$updatePrintMargin()},initialValue:80},printMargin:{set:function(e){"number"==typeof e&&(this.$printMarginColumn=e),this.$showPrintMargin=!!e,this.$updatePrintMargin()},get:function(){return this.$showPrintMargin&&this.$printMarginColumn}},showGutter:{set:function(e){this.$gutter.style.display=e?"block":"none",this.$loop.schedule(this.CHANGE_FULL),this.onGutterResize()},initialValue:!0},fadeFoldWidgets:{set:function(e){r.setCssClass(this.$gutter,"ace_fade-fold-widgets",e)},initialValue:!1},showFoldWidgets:{set:function(e){this.$gutterLayer.setShowFoldWidgets(e)},initialValue:!0},showLineNumbers:{set:function(e){this.$gutterLayer.setShowLineNumbers(e),this.$loop.schedule(this.CHANGE_GUTTER)},initialValue:!0},displayIndentGuides:{set:function(e){this.$textLayer.setDisplayIndentGuides(e)&&this.$loop.schedule(this.CHANGE_TEXT)},initialValue:!0},highlightGutterLine:{set:function(e){if(!this.$gutterLineHighlight)return this.$gutterLineHighlight=r.createElement("div"),this.$gutterLineHighlight.className="ace_gutter-active-line",void this.$gutter.appendChild(this.$gutterLineHighlight);this.$gutterLineHighlight.style.display=e?"":"none",this.$cursorLayer.$pixelPos&&this.$updateGutterLineHighlight()},initialValue:!1,value:!0},hScrollBarAlwaysVisible:{set:function(e){(!this.$hScrollBarAlwaysVisible||!this.$horizScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},vScrollBarAlwaysVisible:{set:function(e){(!this.$vScrollBarAlwaysVisible||!this.$vScroll)&&this.$loop.schedule(this.CHANGE_SCROLL)},initialValue:!1},fontSize:{set:function(e){"number"==typeof e&&(e+="px"),this.container.style.fontSize=e,this.updateFontSize()},initialValue:12},fontFamily:{set:function(e){this.container.style.fontFamily=e,this.updateFontSize()}},maxLines:{set:function(e){this.updateFull()}},minLines:{set:function(e){this.updateFull()}},scrollPastEnd:{set:function(e){e=+e||0,this.$scrollPastEnd!=e&&(this.$scrollPastEnd=e,this.$loop.schedule(this.CHANGE_SCROLL))},initialValue:0,handlesSet:!0},fixedWidthGutter:{set:function(e){this.$gutterLayer.$fixedWidth=!!e,this.$loop.schedule(this.CHANGE_GUTTER)}},theme:{set:function(e){this.setTheme(e)},get:function(){return this.$themeId||this.theme},initialValue:"./theme/textmate",handlesSet:!0}}),t.VirtualRenderer=m}),define("ace/worker/worker_client",["require","exports","module","ace/lib/oop","ace/lib/net","ace/lib/event_emitter","ace/config"],function(c,e,t){"use strict";var i=c("../lib/oop"),n=c("../lib/net"),l=c("../lib/event_emitter").EventEmitter,h=c("../config"),s=function(e,t,i,n){if(this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.onMessage=this.onMessage.bind(this),c.nameToUrl&&!c.toUrl&&(c.toUrl=c.nameToUrl),h.get("packaged")||!c.toUrl)n=n||h.moduleUrl(t,"worker");else{var s=this.$normalizePath;n=n||s(c.toUrl("ace/worker/worker.js",null,"_"));var r={};e.forEach(function(e){r[e]=s(c.toUrl(e,null,"_").replace(/(\.js)?(\?.*)?$/,""))})}try{this.$worker=new Worker(n)}catch(e){if(!(e instanceof window.DOMException))throw e;var o=this.$workerBlob(n),a=window.URL||window.webkitURL,l=a.createObjectURL(o);this.$worker=new Worker(l),a.revokeObjectURL(l)}this.$worker.postMessage({init:!0,tlns:r,module:t,classname:i}),this.callbackId=1,this.callbacks={},this.$worker.onmessage=this.onMessage};(function(){i.implement(this,l),this.onMessage=function(e){var t=e.data;switch(t.type){case"event":this._signal(t.name,{data:t.data});break;case"call":var i=this.callbacks[t.id];i&&(i(t.data),delete this.callbacks[t.id]);break;case"error":this.reportError(t.data);break;case"log":window.console&&console.log&&console.log.apply(console,t.data)}},this.reportError=function(e){window.console&&console.error&&console.error(e)},this.$normalizePath=function(e){return n.qualifyURL(e)},this.terminate=function(){this._signal("terminate",{}),this.deltaQueue=null,this.$worker.terminate(),this.$worker=null,this.$doc&&this.$doc.off("change",this.changeListener),this.$doc=null},this.send=function(e,t){this.$worker.postMessage({command:e,args:t})},this.call=function(e,t,i){if(i){var n=this.callbackId++;this.callbacks[n]=i,t.push(n)}this.send(e,t)},this.emit=function(e,t){try{this.$worker.postMessage({event:e,data:{data:t.data}})}catch(e){console.error(e.stack)}},this.attachToDocument=function(e){this.$doc&&this.terminate(),this.$doc=e,this.call("setValue",[e.getValue()]),e.on("change",this.changeListener)},this.changeListener=function(e){this.deltaQueue||(this.deltaQueue=[],setTimeout(this.$sendDeltaQueue,0)),"insert"==e.action?this.deltaQueue.push(e.start,e.lines):this.deltaQueue.push(e.start,e.end)},this.$sendDeltaQueue=function(){var e=this.deltaQueue;e&&(this.deltaQueue=null,50<e.length&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))},this.$workerBlob=function(e){var t="importScripts('"+n.qualifyURL(e)+"');";try{return new Blob([t],{type:"application/javascript"})}catch(e){var i=new(window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder);return i.append(t),i.getBlob("application/javascript")}}}).call(s.prototype);var r=function(e,t,i){this.$sendDeltaQueue=this.$sendDeltaQueue.bind(this),this.changeListener=this.changeListener.bind(this),this.callbackId=1,this.callbacks={},this.messageBuffer=[];var n=null,s=!1,r=Object.create(l),o=this;this.$worker={},this.$worker.terminate=function(){},this.$worker.postMessage=function(e){o.messageBuffer.push(e),n&&(s?setTimeout(a):a())},this.setEmitSync=function(e){s=e};var a=function(){var e=o.messageBuffer.shift();e.command?n[e.command].apply(n,e.args):e.event&&r._signal(e.event,e.data)};r.postMessage=function(e){o.onMessage({data:e})},r.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},r.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},h.loadModule(["worker",t],function(e){for(n=new e[i](r);o.messageBuffer.length;)a()})};r.prototype=s.prototype,e.UIWorkerClient=r,e.WorkerClient=s}),define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";var a=e("./range").Range,n=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop"),r=function(e,t,i,n,s,r){var o=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=s,this.othersClass=r,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=i;var a=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=a.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){s.implement(this,n),this.setup=function(){var i=this,n=this.doc,t=this.session,e=this.$pos;this.selectionBefore=t.selection.toJSON(),t.selection.inMultiSelectMode&&t.selection.toSingleRange(),this.pos=n.createAnchor(e.row,e.column),this.markerId=t.addMarker(new a(e.row,e.column,e.row,e.column+this.length),this.mainClass,null,!1),this.pos.on("change",function(e){t.removeMarker(i.markerId),i.markerId=t.addMarker(new a(e.value.row,e.value.column,e.value.row,e.value.column+i.length),i.mainClass,null,!1)}),this.others=[],this.$others.forEach(function(e){var t=n.createAnchor(e.row,e.column);i.others.push(t)}),t.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var i=this.session,n=this;this.othersActive=!0,this.others.forEach(function(t){t.markerId=i.addMarker(new a(t.row,t.column,t.row,t.column+n.length),n.othersClass,null,!1),t.on("change",function(e){i.removeMarker(t.markerId),t.markerId=i.addMarker(new a(e.value.row,e.value.column,e.value.row,e.value.column+n.length),n.othersClass,null,!1)})})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e<this.others.length;e++)this.session.removeMarker(this.others[e].markerId)}},this.onUpdate=function(e){var n=e;if(n.start.row===n.end.row&&n.start.row===this.pos.row&&!this.$updating){this.$updating=!0;var s="insert"===e.action?n.end.column-n.start.column:n.start.column-n.end.column;if(n.start.column>=this.pos.column&&n.start.column<=this.pos.column+this.length+1){var t=n.start.column-this.pos.column;if(this.length+=s,!this.session.$fromUndo){if("insert"===e.action)for(var i=this.others.length-1;0<=i;i--){var r={row:(o=this.others[i]).row,column:o.column+t};o.row===n.start.row&&n.start.column<o.column&&(r.column+=s),this.doc.insertMergedLines(r,e.lines)}else if("remove"===e.action)for(i=this.others.length-1;0<=i;i--){var o;r={row:(o=this.others[i]).row,column:o.column+t};o.row===n.start.row&&n.start.column<o.column&&(r.column+=s),this.doc.remove(new a(r.row,r.column,r.row,r.column-s))}n.start.column===this.pos.column&&"insert"===e.action?setTimeout(function(){this.pos.setPosition(this.pos.row,this.pos.column-s);for(var e=0;e<this.others.length;e++){var t=this.others[e],i={row:t.row,column:t.column-s};t.row===n.start.row&&n.start.column<t.column&&(i.column+=s),t.setPosition(i.row,i.column)}}.bind(this),0):n.start.column===this.pos.column&&"remove"===e.action&&setTimeout(function(){for(var e=0;e<this.others.length;e++){var t=this.others[e];t.row===n.start.row&&n.start.column<t.column&&t.setPosition(t.row,t.column-s)}}.bind(this),0)}this.pos._emit("change",{value:this.pos});for(i=0;i<this.others.length;i++)this.others[i]._emit("change",{value:this.others[i]})}this.$updating=!1}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.markerId),this.hideOtherMarkers(),this.doc.removeEventListener("change",this.$onUpdate),this.session.selection.removeEventListener("changeCursor",this.$onCursorChange),this.pos.detach();for(var e=0;e<this.others.length;e++)this.others[e].detach();this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1===this.$undoStackDepth)throw Error("Canceling placeholders only supported with undo manager attached to session.");for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;i<t;i++)e.undo(!0);this.selectionBefore&&this.session.selection.fromJSON(this.selectionBefore)}}).call(r.prototype),t.PlaceHolder=r}),define("ace/mouse/multi_select_handler",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){function x(e,t){return e.row==t.row&&e.column==t.column}var k=e("../lib/event"),E=e("../lib/useragent");t.onMouseDown=function(e){var t=e.domEvent,i=t.altKey,n=t.shiftKey,s=t.ctrlKey,r=e.getAccelKey(),o=e.getButton();if(s&&E.isMac&&(o=t.button),e.editor.inMultiSelectMode&&2==o)e.editor.textInput.onContextMenu(e.domEvent);else if(s||i||r){if(0===o){var a,l=e.editor,c=l.selection,h=l.inMultiSelectMode,u=e.getDocumentPosition(),d=c.getCursor(),g=e.inSelection()||c.isEmpty()&&x(u,d),f=e.x,p=e.y,m=l.session,C=l.renderer.pixelToScreenCoordinates(f,p),A=C;if(l.$mouseHandler.$enableJumpToDef)s&&i||r&&i?a=n?"block":"add":i&&l.$blockSelectEnabled&&(a="block");else if(r&&!i){if(a="add",!h&&n)return}else i&&l.$blockSelectEnabled&&(a="block");if(a&&E.isMac&&t.ctrlKey&&l.$mouseHandler.cancelContextMenu(),"add"==a){if(!h&&g)return;if(!h){var v=c.toOrientedRange();l.addSelectionMarker(v)}var b=c.rangeList.rangeAtPoint(u);l.$blockScrolling++,l.inVirtualSelectionMode=!0,n&&(b=null,v=c.ranges[0]||v,l.removeSelectionMarker(v)),l.once("mouseup",function(){var e=c.toOrientedRange();b&&e.isEmpty()&&x(b.cursor,e.cursor)?c.substractPoint(e.cursor):(n?c.substractPoint(v.cursor):v&&(l.removeSelectionMarker(v),c.addRange(v)),c.addRange(e)),l.$blockScrolling--,l.inVirtualSelectionMode=!1})}else if("block"==a){e.stop(),l.inVirtualSelectionMode=!0;var y,I=[];l.$blockScrolling++,h&&!r?c.toSingleRange():!h&&r&&(y=c.toOrientedRange(),l.addSelectionMarker(y)),n?C=m.documentToScreenPosition(c.lead):c.moveToPosition(u),l.$blockScrolling--,A={row:-1,column:-1};var w=function(){var e=l.renderer.pixelToScreenCoordinates(f,p),t=m.screenToDocumentPosition(e.row,e.column);x(A,e)&&x(t,c.lead)||(A=e,l.$blockScrolling++,l.selection.moveToPosition(t),l.renderer.scrollCursorIntoView(),l.removeSelectionMarkers(I),I=c.rectangularRangeBlock(A,C),l.$mouseHandler.$clickSelection&&1==I.length&&I[0].isEmpty()&&(I[0]=l.$mouseHandler.$clickSelection.clone()),I.forEach(l.addSelectionMarker,l),l.updateSelectionMarkers(),l.$blockScrolling--)};k.capture(l.container,function(e){f=e.clientX,p=e.clientY},function(e){clearInterval(_),l.removeSelectionMarkers(I),I.length||(I=[c.toOrientedRange()]),l.$blockScrolling++,y&&(l.removeSelectionMarker(y),c.toSingleRange(y));for(var t=0;t<I.length;t++)c.addRange(I[t]);l.inVirtualSelectionMode=!1,l.$mouseHandler.$clickSelection=null,l.$blockScrolling--});var _=setInterval(function(){w()},20);return e.preventDefault()}}}else 0===o&&e.editor.inMultiSelectMode&&e.editor.exitMultiSelectMode()}}),define("ace/commands/multi_select_commands",["require","exports","module","ace/keyboard/hash_handler"],function(e,t,i){t.defaultCommands=[{name:"addCursorAbove",exec:function(e){e.selectMoreLines(-1)},bindKey:{win:"Ctrl-Alt-Up",mac:"Ctrl-Alt-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelow",exec:function(e){e.selectMoreLines(1)},bindKey:{win:"Ctrl-Alt-Down",mac:"Ctrl-Alt-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorAboveSkipCurrent",exec:function(e){e.selectMoreLines(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Up",mac:"Ctrl-Alt-Shift-Up"},scrollIntoView:"cursor",readOnly:!0},{name:"addCursorBelowSkipCurrent",exec:function(e){e.selectMoreLines(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Down",mac:"Ctrl-Alt-Shift-Down"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreBefore",exec:function(e){e.selectMore(-1)},bindKey:{win:"Ctrl-Alt-Left",mac:"Ctrl-Alt-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectMoreAfter",exec:function(e){e.selectMore(1)},bindKey:{win:"Ctrl-Alt-Right",mac:"Ctrl-Alt-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextBefore",exec:function(e){e.selectMore(-1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Left",mac:"Ctrl-Alt-Shift-Left"},scrollIntoView:"cursor",readOnly:!0},{name:"selectNextAfter",exec:function(e){e.selectMore(1,!0)},bindKey:{win:"Ctrl-Alt-Shift-Right",mac:"Ctrl-Alt-Shift-Right"},scrollIntoView:"cursor",readOnly:!0},{name:"splitIntoLines",exec:function(e){e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"alignCursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var n=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new n(t.multiSelectCommands)}),define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,i){function n(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",r),e.commands.addCommands(a.defaultCommands),function(i){function n(e){s&&(i.renderer.setMouseCursor(""),s=!1)}var e=i.textInput.getElement(),s=!1;o.addListener(e,"keydown",function(e){var t=18==e.keyCode&&!(e.ctrlKey||e.shiftKey||e.metaKey);i.$blockSelectEnabled&&t?s||(i.renderer.setMouseCursor("crosshair"),s=!0):s&&n()}),o.addListener(e,"keyup",n),o.addListener(e,"blur",n)}(e))}var s=e("./range_list").RangeList,A=e("./range").Range,p=e("./selection").Selection,r=e("./mouse/multi_select_handler").onMouseDown,o=e("./lib/event"),m=e("./lib/lang"),a=e("./commands/multi_select_commands");t.commands=a.defaultCommands.concat(a.multiSelectCommands);var h=new(e("./search").Search),l=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(l.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var i=this.toOrientedRange();if(this.rangeList.add(i),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(i),this.$onAddRange(i)}e.cursor||(e.cursor=e.end);var n=this.rangeList.add(e);return this.$onAddRange(e),n.length&&this.$onRemoveRange(n),1<this.rangeCount&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length?this.$onRemoveRange(e):this.ranges[0]&&this.fromOrientedRange(this.ranges[0])},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var i=e.length;i--;){var n=this.ranges.indexOf(e[i]);this.ranges.splice(n,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),(t=t||this.ranges[0])&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new s,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],i=A.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{i=this.getRange();var n=this.isBackwards(),s=i.start.row,r=i.end.row;if(s==r){if(n)var o=i.end,a=i.start;else o=i.start,a=i.end;return this.addRange(A.fromPoints(a,a)),void this.addRange(A.fromPoints(o,o))}var l=[],c=this.getLineRange(s,!0);c.start.column=i.start.column,l.push(c);for(var h=s+1;h<r;h++)l.push(this.getLineRange(h,!0));(c=this.getLineRange(r,!0)).end.column=i.end.column,l.push(c),l.forEach(this.addRange,this)}},this.toggleBlockSelection=function(){if(1<this.rangeCount){var e=this.rangeList.ranges,t=e[e.length-1],i=A.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(i,t.cursor==t.start)}else{var n=this.session.documentToScreenPosition(this.selectionLead),s=this.session.documentToScreenPosition(this.selectionAnchor);this.rectangularRangeBlock(n,s).forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,i){var n=[],s=e.column<t.column;if(s)var r=e.column,o=t.column;else r=t.column,o=e.column;var a,l,c=e.row<t.row;if(c)var h=e.row,u=t.row;else h=t.row,u=e.row;r<0&&(r=0),h<0&&(h=0),h==u&&(i=!0);for(var d=h;d<=u;d++){var g=A.fromPoints(this.session.screenToDocumentPosition(d,r),this.session.screenToDocumentPosition(d,o));if(g.isEmpty()){if(f&&(a=g.end,l=f,a.row==l.row&&a.column==l.column))break;var f=g.end}g.cursor=s?g.start:g.end,n.push(g)}if(c&&n.reverse(),!i){for(var p=n.length-1;n[p].isEmpty()&&0<p;)p--;if(0<p)for(var m=0;n[m].isEmpty();)m++;for(var C=p;m<=C;C--)n[C].isEmpty()&&n.splice(C,1)}return n}}.call(p.prototype);var c=e("./editor").Editor;(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,i=e.length;i--;){var n=e[i];if(n.marker){this.session.removeMarker(n.marker);var s=t.indexOf(n);-1!=s&&t.splice(s,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(a.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(a.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,i=e.editor;if(i.multiSelect){if(t.multiSelectAction)n="forEach"==t.multiSelectAction?i.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?i.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(i.exitMultiSelectMode(),t.exec(i,e.args||{})):t.multiSelectAction(i,e.args||{});else{var n=t.exec(i,e.args||{});i.multiSelect.addRange(i.multiSelect.toOrientedRange()),i.multiSelect.mergeOverlappingRanges()}return n}},this.forEachSelection=function(e,t,i){if(!this.inVirtualSelectionMode){var n,s=i&&i.keepOrder,r=1==i||i&&i.$byLines,o=this.session,a=this.selection,l=a.rangeList,c=(s?a:l).ranges;if(!c.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=a._eventRegistry;a._eventRegistry={};var u=new p(o);this.inVirtualSelectionMode=!0;for(var d=c.length;d--;){if(r)for(;0<d&&c[d].start.row==c[d-1].end.row;)d--;u.fromOrientedRange(c[d]),u.index=d,this.selection=o.selection=u;var g=e.exec?e.exec(this,t||{}):e(this,t||{});!n&&void 0!==g&&(n=g),u.toOrientedRange(c[d])}u.detach(),this.selection=o.selection=a,this.inVirtualSelectionMode=!1,a._eventRegistry=h,a.mergeOverlappingRanges();var f=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),f&&f.from==f.to&&this.renderer.animateScrolling(f.from),n}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,i=[],n=0;n<t.length;n++)i.push(this.session.getTextRange(t[n]));var s=this.session.getDocument().getNewLineCharacter();(e=i.join(s)).length==(i.length-1)*s.length&&(e="")}else this.selection.isEmpty()||(e=this.session.getTextRange(this.getSelectionRange()));return e},this.$checkMultiselectChange=function(e,t){if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){var i=this.multiSelect.ranges[0];if(this.multiSelect.isEmpty()&&t==this.multiSelect.anchor)return;var n=t==this.multiSelect.anchor?i.cursor==i.start?i.end:i.start:i.cursor;(n.row!=t.row||this.session.$clipPositionToDocument(n.row,n.column).column!=t.column)&&this.multiSelect.toSingleRange(this.multiSelect.toOrientedRange())}},this.findAll=function(e,t,i){if((t=t||{}).needle=e||t.needle,null==t.needle){var n=this.selection.isEmpty()?this.selection.getWordRange():this.selection.getRange();t.needle=this.session.getTextRange(n)}this.$search.set(t);var s=this.$search.findAll(this.session);if(!s.length)return 0;this.$blockScrolling+=1;var r=this.multiSelect;i||r.toSingleRange(s[0]);for(var o=s.length;o--;)r.addRange(s[o],!0);return n&&r.rangeList.rangeAtPoint(n.start)&&r.addRange(n,!0),this.$blockScrolling-=1,s.length},this.selectMoreLines=function(e,t){var i=this.selection.toOrientedRange(),n=i.cursor==i.end,s=this.session.documentToScreenPosition(i.cursor);this.selection.$desiredColumn&&(s.column=this.selection.$desiredColumn);var r,o=this.session.screenToDocumentPosition(s.row+e,s.column);if(i.isEmpty())l=o;else var a=this.session.documentToScreenPosition(n?i.end:i.start),l=this.session.screenToDocumentPosition(a.row+e,a.column);n?(r=A.fromPoints(o,l)).cursor=r.start:(r=A.fromPoints(l,o)).cursor=r.end;if(r.desiredColumn=s.column,this.selection.inMultiSelectMode){if(t)var c=i.cursor}else this.selection.addRange(i);this.selection.addRange(r),c&&this.selection.substractPoint(c)},this.transposeSelections=function(e){for(var t=this.session,i=t.multiSelect,n=i.ranges,s=n.length;s--;){if((a=n[s]).isEmpty()){var r=t.getWordRange(a.start.row,a.start.column);a.start.row=r.start.row,a.start.column=r.start.column,a.end.row=r.end.row,a.end.column=r.end.column}}i.mergeOverlappingRanges();var o=[];for(s=n.length;s--;){var a=n[s];o.unshift(t.getTextRange(a))}e<0?o.unshift(o.pop()):o.push(o.shift());for(s=n.length;s--;){r=(a=n[s]).clone();t.replace(a,o[s]),a.start.row=r.start.row,a.start.column=r.start.column}},this.selectMore=function(e,t,i){var n=this.session,s=n.multiSelect.toOrientedRange();if(!s.isEmpty()||((s=n.getWordRange(s.start.row,s.start.column)).cursor=-1==e?s.start:s.end,this.multiSelect.addRange(s),!i)){var r,o,a,l=n.getTextRange(s),c=(r=n,o=l,a=e,h.$options.wrap=!0,h.$options.needle=o,h.$options.backwards=-1==a,h.find(r));c&&(c.cursor=-1==e?c.start:c.end,this.$blockScrolling+=1,this.session.unfold(c),this.multiSelect.addRange(c),this.$blockScrolling-=1,this.renderer.scrollCursorIntoView(null,.5)),t&&this.multiSelect.substractPoint(s.cursor)}},this.alignCursors=function(){var r=this.session,t=r.multiSelect,e=t.ranges,i=-1,n=e.filter(function(e){if(e.cursor.row==i)return!0;i=e.cursor.row});if(e.length&&n.length!=e.length-1){n.forEach(function(e){t.substractPoint(e.cursor)});var o=0,a=1/0,l=e.map(function(e){var t=e.cursor,i=r.getLine(t.row).substr(t.column).search(/\S/g);return-1==i&&(i=0),t.column>o&&(o=t.column),i<a&&(a=i),i});e.forEach(function(e,t){var i=e.cursor,n=o-i.column,s=l[t]-a;s<n?r.insert(i,m.stringRepeat(" ",n-s)):r.remove(new A(i.row,i.column,i.row,i.column-n+s)),e.start.column=e.end.column=o,e.start.row=e.end.row=i.row,e.cursor=e.end}),t.fromOrientedRange(e[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var s=this.selection.getRange(),c=s.start.row,h=s.end.row,u=c==h;if(u){for(var d,g=this.session.getLength();d=this.session.getLine(h),/[=:]/.test(d)&&++h<g;);for(;d=this.session.getLine(c),/[=:]/.test(d)&&0<--c;);c<0&&(c=0),g<=h&&(h=g-1)}var f=this.session.removeFullLines(c,h);f=this.$reAlignText(f,u),this.session.insert({row:c,column:0},f.join("\n")+"\n"),u||(s.start.column=0,s.end.column=f[f.length-1].length),this.selection.setRange(s)}},this.$reAlignText=function(e,t){function i(e){return m.stringRepeat(" ",e)}function n(e){return e[2]?i(s)+e[2]+i(r-e[2].length+o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}var s,r,o,a=!0,l=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?(null==s?(s=t[1].length,r=t[2].length,o=t[3].length):(s+r+o!=t[1].length+t[2].length+t[3].length&&(l=!1),s!=t[1].length&&(a=!1),s>t[1].length&&(s=t[1].length),r<t[2].length&&(r=t[2].length),o>t[3].length&&(o=t[3].length)),t):[e]}).map(t?n:a?l?function(e){return e[2]?i(s+r-e[2].length)+e[2]+i(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(s)+e[2]+i(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(c.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var i=e.oldSession;i&&(i.multiSelect.off("addRange",this.$onAddRange),i.multiSelect.off("removeRange",this.$onRemoveRange),i.multiSelect.off("multiSelect",this.$onMultiSelect),i.multiSelect.off("singleSelect",this.$onSingleSelect),i.multiSelect.lead.off("change",this.$checkMultiselectChange),i.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=n,e("./config").defineOptions(c.prototype,"editor",{enableMultiselect:{set:function(e){n(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",r)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",r))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var d=e("../../range").Range,n=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){var n=e.getLine(i);return this.foldingStartMarker.test(n)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(n)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,s=e.getLine(t),r=s.search(n);if(-1!=r){for(var o=i||s.length,a=e.getLength(),l=t,c=t;++t<a;){var h=e.getLine(t).search(n);if(-1!=h){if(h<=r)break;c=t}}if(l<c){var u=e.getLine(c).length;return new d(l,o,c,u)}}},this.openingBracketBlock=function(e,t,i,n,s){var r={row:i,column:n+1},o=e.$findClosingBracket(t,r,s);if(o){var a=e.foldWidgets[o.row];return null==a&&(a=e.getFoldWidget(o.row)),"start"==a&&o.row>r.row&&(o.row--,o.column=e.getLine(o.row).length),d.fromPoints(r,o)}},this.closingBracketBlock=function(e,t,i,n,s){var r={row:i,column:n},o=e.$findOpeningBracket(t,r);if(o)return o.column++,r.column--,d.fromPoints(o,r)}}).call(n.prototype)}),define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',e("../lib/dom").importCssString(t.cssText,t.cssClass)}),define("ace/line_widgets",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/range"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeEditor",this.$onChangeEditor)}e("./lib/oop");var s=e("./lib/dom");e("./range").Range;(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),(this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var i=this.session.lineWidgets;i&&i.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnChange=function(e){var t=this.session.lineWidgets;if(t){var i=e.start.row,n=e.end.row-i;if(0!==n)if("remove"==e.action){t.splice(i+1,n).forEach(function(e){e&&this.removeLineWidget(e)},this),this.$updateRows()}else{var s=new Array(n);s.unshift(i,0),t.splice.apply(t,s),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var i=!0;e.forEach(function(e,t){e&&(i=!1,e.row=t)}),i&&(this.session.lineWidgets=null)}},this.addLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength())),this.session.lineWidgets[e.row]=e;var t=this.editor.renderer;return e.html&&!e.el&&(e.el=s.createElement("div"),e.el.innerHTML=e.html),e.el&&(s.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0),e.coverGutter||(e.el.style.zIndex=3),e.pixelHeight||(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}this.session.lineWidgets&&(this.session.lineWidgets[e.row]=void 0),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var s=1/0,r=0;r<i.length;r++){var o=i[r];o._inDocument||(o._inDocument=!0,t.container.appendChild(o.el)),o.h=o.el.offsetHeight,o.fixedWidth||(o.w=o.el.offsetWidth,o.screenWidth=Math.ceil(o.w/n.characterWidth));var a=o.h/n.lineHeight;o.coverLine&&((a-=this.session.getRowLineCount(o.row))<0&&(a=0)),o.rowCount!=a&&(o.rowCount=a,o.row<s&&(s=o.row))}s!=1/0&&(this.session._emit("changeFold",{data:{start:{row:s}}}),this.session.lineWidgetWidth=null),this.session._changedWidgets=[]}},this.renderWidgets=function(e,t){var i=t.layerConfig,n=this.session.lineWidgets;if(n){for(var s=Math.min(this.firstRow,i.firstRow),r=Math.max(this.lastRow,i.lastRow,n.length);0<s&&!n[s];)s--;this.firstRow=i.firstRow,this.lastRow=i.lastRow,t.$cursorLayer.config=i;for(var o=s;o<=r;o++){var a=n[o];if(a&&a.el){a._inDocument||(a._inDocument=!0,t.container.appendChild(a.el));var l=t.$cursorLayer.getPixelPosition({row:o,column:0},!0).top;a.coverLine||(l+=i.lineHeight*this.session.getRowLineCount(a.row)),a.el.style.top=l-i.offset+"px";var c=a.coverGutter?0:t.gutterWidth;a.fixedWidth||(c-=t.scrollLeft),a.el.style.left=c+"px",a.fixedWidth?a.el.style.right=t.scrollBar.getWidth()+"px":a.el.style.right=""}}}}}).call(n.prototype),t.LineWidgets=n}),define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,i){"use strict";var f=e("../line_widgets").LineWidgets,p=e("../lib/dom"),m=e("../range").Range;t.showErrorMarker=function(e,t){var i=e.session;i.widgetManager||(i.widgetManager=new f(i),i.widgetManager.attach(e));var n=e.getCursorPosition(),s=n.row,r=i.lineWidgets&&i.lineWidgets[s];r?r.destroy():s-=t;var o,a=function(e,t,i){var n=e.getAnnotations().sort(m.comparePoints);if(n.length){var s=function(e,t,i){for(var n=0,s=e.length-1;n<=s;){var r=n+s>>1,o=i(t,e[r]);if(0<o)n=r+1;else{if(!(o<0))return r;s=r-1}}return-(n+1)}(n,{row:t,column:-1},m.comparePoints);s<0&&(s=-s-1),s>=n.length?s=0<i?0:n.length-1:0===s&&i<0&&(s=n.length-1);var r=n[s];if(r&&i){if(r.row===t){for(;(r=n[s+=i])&&r.row===t;);if(!r)return n.slice()}var o=[];for(t=r.row;o[i<0?"unshift":"push"](r),(r=n[s+=i])&&r.row==t;);return o.length&&o}}}(i,s,t);if(a){var l=a[0];n.column=(l.pos&&"number"!=typeof l.column?l.pos.sc:l.column)||0,n.row=l.row,o=e.renderer.$gutterLayer.$annotations[n.row]}else{if(r)return;o={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(n.row),e.selection.moveToPosition(n);var c={row:n.row,fixedWidth:!0,coverGutter:!0,el:p.createElement("div")},h=c.el.appendChild(p.createElement("div")),u=c.el.appendChild(p.createElement("div"));u.className="error_widget_arrow "+o.className;var d=e.renderer.$cursorLayer.getPixelPosition(n).left;u.style.left=d+e.renderer.gutterWidth-5+"px",c.el.className="error_widget_wrapper",h.className="error_widget "+o.className,h.innerHTML=o.text.join("<br>"),h.appendChild(p.createElement("div"));var g=function(e,t,i){if(0===t&&("esc"===i||"return"===i))return c.destroy(),{command:"null"}};c.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),i.widgetManager.removeLineWidget(c),e.off("changeSelection",c.destroy),e.off("changeSession",c.destroy),e.off("mouseup",c.destroy),e.off("change",c.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",c.destroy),e.on("changeSession",c.destroy),e.on("mouseup",c.destroy),e.on("change",c.destroy),e.session.widgetManager.addLineWidget(c),c.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:c.el.offsetHeight})},p.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,a,t){"use strict";e("./lib/fixoldbrowsers");var l=e("./lib/dom"),c=e("./lib/event"),h=e("./editor").Editor,n=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),a.config=e("./config"),a.require=e,a.edit=function(e){if("string"==typeof e){var t=e;if(!(e=document.getElementById(t)))throw new Error("ace.edit can't find div #"+t)}if(e&&e.env&&e.env.editor instanceof h)return e.env.editor;var i="";if(e&&/input|textarea/i.test(e.tagName)){var n=e;i=n.value,e=l.createElement("pre"),n.parentNode.replaceChild(e,n)}else e&&(i=l.getInnerText(e),e.innerHTML="");var s=a.createEditSession(i),r=new h(new u(e));r.setSession(s);var o={document:s,editor:r,onResize:r.resize.bind(r,null)};return n&&(o.textarea=n),c.addListener(window,"resize",o.onResize),r.on("destroy",function(){c.removeListener(window,"resize",o.onResize),o.editor.container.env=null}),r.container.env=r.env=o,r},a.createEditSession=function(e,t){var i=new n(e,t);return i.setUndoManager(new s),i},a.EditSession=n,a.UndoManager=s}),window.require(["ace/ace"],function(e){for(var t in e&&e.config.init(!0),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t])}),function(t,a){var l={isArray:Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},isPlainObj:function(e){return e===Object(e)},toArray:function(e){return Array.prototype.slice.call(e)},prepareArgs:function(e,t){return(e=l.toArray(e)).unshift(t),e},getObjKeyByValue:function(e,t){for(var i in e)if(e.hasOwnProperty(i)&&e[i]===t)return i},prepareReturn:function(e){return t[l.getObjKeyByValue(s,e)]},retrieve:function(e,t){return e==a?t:e},serialize:function(e){return JSON.stringify(e)},unserialize:function(e){return e==a?a:JSON.parse(e)}},n=function(){return n.get.apply(this,arguments)},e={storage:function(){return storage.get.apply(storage,arguments)},session:function(){return session.get.apply(session,arguments)}};n.set=function(e,t,i){if(l.isPlainObj(t))for(var n in t)t.hasOwnProperty(n)&&e.setItem(n,l.serialize(t[n]));else e.setItem(t,l.serialize(i));return l.prepareReturn(e)},n.invert=function(e,t){return this.set(e,t,!this.get(e,t))},n.add=function(e,t,i){return this.set(e,t,this.get(e,t)+parseInt(i,10))},n.increase=function(e,t,i){return this.add(e,t,l.retrieve(i,1))},n.decrease=function(e,t,i){return this.add(e,t,-l.retrieve(i,1))},n.concat=function(e,t,i){return this.set(e,t,this.get(e,t)+i)},n.push=function(e,t,i){var n=l.toArray(arguments),s=this.get(e,t,[]);return n.splice(0,2),s.push.apply(s,n),this.set(e,t,s)},n.extend=function(e,t,i,n){var s=this.get(e,t,{});if(l.isPlainObj(i))for(var r in i)i.hasOwnProperty(r)&&(s[r]=i[r]);else s[i]=n;return this.set(e,t,s)},n.remove=function(e,t){for(var i=0,n=(t=l.isArray(t)?t:l.toArray(arguments)).length;i<n;i++)delete e[t[i]];return l.prepareReturn(e)},n.empty=function(e){return e.clear(),l.prepareReturn(e)},n.get=function(e,t,i){if(i=i||a,l.isArray(t)){for(var n={},s=0,r=t.length;s<r;s++){var o=t[s];n[o]=this.get(e,o,i)}return n}return l.retrieve(l.unserialize(e.getItem(t)),i)},n.all=function(e){for(var t={},i=0,n=e.length;i<n;i++){var s=e.key(i);t[s]=l.unserialize(e.getItem(s))}return t};for(var i="set invert add increase decrease concat push extend remove empty get all".split(" "),s={storage:localStorage,session:sessionStorage},r=0,o=i.length;r<o;r++){var c=i[r];for(var h in s)if(s.hasOwnProperty(h)){var u=s[h];e[h][c]=function(t,i){return function(){var e=l.prepareArgs(arguments,i);return n[t].apply(n,e)}}(c,u)}}var d={storage:e.storage,session:e.session};"function"==typeof define&&define.amd?define(function(){return d}):"undefined"!=typeof exports?module.exports=d:(t.storage=e.storage,t.session=e.session)}(window);var systemLang="en",systemDictionary={};function translateWord(e,t,i){if(!e)return"";if(t=t||systemLang,(i=i||systemDictionary)[e=e.toString()]){var n=i[e][t];if(n)return n;if("en"!==t&&(n=i[e].en))return n}else"string"!=typeof e||e.match(/_tooltip$/)?"string"!=typeof e&&console.warn("Trying to translate non-text:"+e):console.log('"'+e+'": {"en": "'+e+'", "de": "'+e+'", "ru": "'+e+'", "pt": "'+e+'", "nl": "'+e+'", "fr": "'+e+'"},');return e}function translateAll(n,s){n=n||systemLang,s=s||systemDictionary,$(".translate").each(function(e){var t=$(this).attr("data-lang");t||(t=$(this).html(),$(this).attr("data-lang",t));var i=translateWord(t,n,s);i&&$(this).html(i)}),$(".translateV").each(function(e){var t=$(this).attr("data-lang");t||(t=$(this).attr("value"),$(this).attr("data-lang",t));var i=translateWord(t,n,s);i&&$(this).attr("value",i)}),$(".translateB").each(function(e){var t=$(this).attr("data-lang");t||((t=$(this).html().match(/\>([\w ]+)\</))&&1<t.length?t=t[1]:(t=$(this).html(),$(this).attr("data-lang-pure",!0)),$(this).attr("data-lang",t));var i=translateWord(t,n,s);i&&($(this).attr("data-lang-pure")?$(this).html(i):$(this).html($(this).html().replace(/>[\w ]+</,">"+i+"<")))}),$(".translateT").each(function(e){var t=$(this).attr("data-lang");t||(t=$(this).attr("title"),$(this).attr("data-lang",t));var i=translateWord(t,n,s);i&&$(this).attr("title",i)})}var _=function(e,t,i,n){var s=(e=translateWord(e)).indexOf("%s");return-1===s||-1===(s=(e=e.replace("%s",t)).indexOf("%s"))||-1!==(s=(e=e.replace("%s",i)).indexOf("%s"))&&(e=e.replace("%s",n)),e};!function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree.ui-deps"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree.ui-deps"),module.exports=e(require("jquery"))):e(jQuery)}(function(y){"use strict";if(!y.ui||!y.ui.fancytree){var r,e,p=null,m=new RegExp(/\.|\//),t=/[&<>"'\/]/g,i=/[<>"'\/]/g,h="$recursive_request",n={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},s={16:!0,17:!0,18:!0},f={8:"backspace",9:"tab",10:"return",13:"return",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",59:";",61:"=",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},o={0:"",1:"left",2:"middle",3:"right"},C="active expanded focus folder lazy radiogroup selected unselectable unselectableIgnore".split(" "),A={},u="columns types".split(" "),v="checkbox expanded extraClasses folder icon iconTooltip key lazy radiogroup refKey selected statusNodeType title tooltip type unselectable unselectableIgnore unselectableStatus".split(" "),a={},b={},l={active:!0,children:!0,data:!0,focus:!0};for(r=0;r<C.length;r++)A[C[r]]=!0;for(r=0;r<v.length;r++)e=v[r],a[e]=!0,e!==e.toLowerCase()&&(b[e.toLowerCase()]=e);return I(y.ui,"Fancytree requires jQuery UI (http://jqueryui.com)"),D.prototype={_findDirectChild:function(e){var t,i,n=this.children;if(n)if("string"==typeof e){for(t=0,i=n.length;t<i;t++)if(n[t].key===e)return n[t]}else{if("number"==typeof e)return this.children[e];if(e.parent===this)return e}return null},_setChildren:function(e){I(e&&(!this.children||0===this.children.length),"only init supported"),this.children=[];for(var t=0,i=e.length;t<i;t++)this.children.push(new D(this,e[t]))},addChildren:function(e,t){var i,n,s,r,o=this.getFirstChild(),a=this.getLastChild(),l=[];for(y.isPlainObject(e)&&(e=[e]),this.children||(this.children=[]),i=0,n=e.length;i<n;i++)l.push(new D(this,e[i]));if(r=l[0],null==t?this.children=this.children.concat(l):(t=this._findDirectChild(t),I(0<=(s=y.inArray(t,this.children)),"insertBefore must be an existing child"),this.children.splice.apply(this.children,[s,0].concat(l))),o&&!t){for(i=0,n=l.length;i<n;i++)l[i].render();o!==this.getFirstChild()&&o.renderStatus(),a!==this.getLastChild()&&a.renderStatus()}else(!this.parent||this.parent.ul||this.tr)&&this.render();return 3===this.tree.options.selectMode&&this.fixSelection3FromEndNodes(),this.triggerModifyChild("add",1===l.length?l[0]:null),r},addClass:function(e){return this.toggleClass(e,!0)},addNode:function(e,t){switch(void 0!==t&&"over"!==t||(t="child"),t){case"after":return this.getParent().addChildren(e,this.getNextSibling());case"before":return this.getParent().addChildren(e,this);case"firstChild":var i=this.children?this.children[0]:null;return this.addChildren(e,i);case"child":case"over":return this.addChildren(e)}I(!1,"Invalid mode: "+t)},addPagingNode:function(e,t){var i,n;if(t=t||"child",!1!==e)return e=y.extend({title:this.tree.options.strings.moreData,statusNodeType:"paging",icon:!1},e),this.partload=!0,this.addNode(e,t);for(i=this.children.length-1;0<=i;i--)"paging"===(n=this.children[i]).statusNodeType&&this.removeChild(n);this.partload=!1},appendSibling:function(e){return this.addNode(e,"after")},applyPatch:function(e){if(null===e)return this.remove(),w(this);var t,i,n={children:!0,expanded:!0,parent:!0};for(t in e)i=e[t],n[t]||y.isFunction(i)||(a[t]?this[t]=i:this.data[t]=i);return e.hasOwnProperty("children")&&(this.removeChildren(),e.children&&this._setChildren(e.children)),this.isVisible()&&(this.renderTitle(),this.renderStatus()),e.hasOwnProperty("expanded")?this.setExpanded(e.expanded):w(this)},collapseSiblings:function(){return this.tree._callHook("nodeCollapseSiblings",this)},copyTo:function(e,t,i){return e.addNode(this.toDict(!0,i),t)},countChildren:function(e){var t,i,n,s=this.children;if(!s)return 0;if(n=s.length,!1!==e)for(t=0,i=n;t<i;t++)n+=s[t].countChildren();return n},debug:function(e){2<=this.tree.options.debugLevel&&(Array.prototype.unshift.call(arguments,this.toString()),c("log",arguments))},discard:function(){return this.warn("FancytreeNode.discard() is deprecated since 2014-02-16. Use .resetLazy() instead."),this.resetLazy()},discardMarkup:function(e){var t=e?"nodeRemoveMarkup":"nodeRemoveChildMarkup";this.tree._callHook(t,this)},findAll:function(t){t=y.isFunction(t)?t:F(t);var i=[];return this.visit(function(e){t(e)&&i.push(e)}),i},findFirst:function(t){t=y.isFunction(t)?t:F(t);var i=null;return this.visit(function(e){if(t(e))return i=e,!1}),i},_changeSelectStatusAttrs:function(e){var t=!1,i=this.tree.options,n=p.evalOption("unselectable",this,this,i,!1),s=p.evalOption("unselectableStatus",this,this,i,void 0);switch(n&&null!=s&&(e=s),e){case!1:t=this.selected||this.partsel,this.selected=!1,this.partsel=!1;break;case!0:t=!this.selected||!this.partsel,this.selected=!0,this.partsel=!0;break;case void 0:t=this.selected||!this.partsel,this.selected=!1,this.partsel=!0;break;default:I(!1,"invalid state: "+e)}return t&&this.renderStatus(),t},fixSelection3AfterClick:function(e){var t=this.isSelected();this.visit(function(e){e._changeSelectStatusAttrs(t)}),this.fixSelection3FromEndNodes(e)},fixSelection3FromEndNodes:function(e){var u=this.tree.options;I(3===u.selectMode,"expected selectMode 3"),function e(t){var i,n,s,r,o,a,l,c,h=t.children;if(h&&h.length){for(l=!(a=!0),i=0,n=h.length;i<n;i++)r=e(s=h[i]),p.evalOption("unselectableIgnore",s,s,u,!1)||(!1!==r&&(l=!0),!0!==r&&(a=!1));o=!!a||!!l&&void 0}else o=null==(c=p.evalOption("unselectableStatus",t,t,u,void 0))?!!t.selected:!!c;return t._changeSelectStatusAttrs(o),o}(this),this.visitParents(function(e){var t,i,n,s,r,o=e.children,a=!0,l=!1;for(t=0,i=o.length;t<i;t++)n=o[t],p.evalOption("unselectableIgnore",n,n,u,!1)||(((s=null==(r=p.evalOption("unselectableStatus",n,n,u,void 0))?!!n.selected:!!r)||n.partsel)&&(l=!0),s||(a=!1));s=!!a||!!l&&void 0,e._changeSelectStatusAttrs(s)})},fromDict:function(e){for(var t in e)a[t]?this[t]=e[t]:"data"===t?y.extend(this.data,e.data):y.isFunction(e[t])||l[t]||(this.data[t]=e[t]);e.children&&(this.removeChildren(),this.addChildren(e.children)),this.renderTitle()},getChildren:function(){if(void 0!==this.hasChildren())return this.children},getFirstChild:function(){return this.children?this.children[0]:null},getIndex:function(){return y.inArray(this,this.parent.children)},getIndexHier:function(e,i){e=e||".";var n,s=[];return y.each(this.getParentList(!1,!0),function(e,t){n=""+(t.getIndex()+1),i&&(n=("0000000"+n).substr(-i)),s.push(n)}),s.join(e)},getKeyPath:function(e){var t=[],i=this.tree.options.keyPathSeparator;return this.visitParents(function(e){e.parent&&t.unshift(e.key)},!e),i+t.join(i)},getLastChild:function(){return this.children?this.children[this.children.length-1]:null},getLevel:function(){for(var e=0,t=this.parent;t;)e++,t=t.parent;return e},getNextSibling:function(){if(this.parent){var e,t,i=this.parent.children;for(e=0,t=i.length-1;e<t;e++)if(i[e]===this)return i[e+1]}return null},getParent:function(){return this.parent},getParentList:function(e,t){for(var i=[],n=t?this:this.parent;n;)(e||n.parent)&&i.unshift(n),n=n.parent;return i},getPrevSibling:function(){if(this.parent){var e,t,i=this.parent.children;for(e=1,t=i.length;e<t;e++)if(i[e]===this)return i[e-1]}return null},getSelectedNodes:function(t){var i=[];return this.visit(function(e){if(e.selected&&(i.push(e),!0===t))return"skip"}),i},hasChildren:function(){if(this.lazy){if(null==this.children)return;if(0===this.children.length)return!1;if(1===this.children.length&&this.children[0].isStatusNode())return;return!0}return!(!this.children||!this.children.length)},hasFocus:function(){return this.tree.hasFocus()&&this.tree.focusNode===this},info:function(e){1<=this.tree.options.debugLevel&&(Array.prototype.unshift.call(arguments,this.toString()),c("info",arguments))},isActive:function(){return this.tree.activeNode===this},isChildOf:function(e){return this.parent&&this.parent===e},isDescendantOf:function(e){if(!e||e.tree!==this.tree)return!1;for(var t=this.parent;t;){if(t===e)return!0;t===t.parent&&y.error("Recursive parent link: "+t),t=t.parent}return!1},isExpanded:function(){return!!this.expanded},isFirstSibling:function(){var e=this.parent;return!e||e.children[0]===this},isFolder:function(){return!!this.folder},isLastSibling:function(){var e=this.parent;return!e||e.children[e.children.length-1]===this},isLazy:function(){return!!this.lazy},isLoaded:function(){return!this.lazy||void 0!==this.hasChildren()},isLoading:function(){return!!this._isLoading},isRoot:function(){return this.isRootNode()},isPartsel:function(){return!this.selected&&!!this.partsel},isPartload:function(){return!!this.partload},isRootNode:function(){return this.tree.rootNode===this},isSelected:function(){return!!this.selected},isStatusNode:function(){return!!this.statusNodeType},isPagingNode:function(){return"paging"===this.statusNodeType},isTopLevel:function(){return this.tree.rootNode===this.parent},isUndefined:function(){return void 0===this.hasChildren()},isVisible:function(){var e,t,i=this.getParentList(!1,!1);for(e=0,t=i.length;e<t;e++)if(!i[e].expanded)return!1;return!0},lazyLoad:function(e){return this.warn("FancytreeNode.lazyLoad() is deprecated since 2014-02-16. Use .load() instead."),this.load(e)},load:function(e){var t,i,n=this,s=this.isExpanded();return I(this.isLazy(),"load() requires a lazy node"),e||this.isUndefined()?(this.isLoaded()&&this.resetLazy(),!1===(i=this.tree._triggerNodeEvent("lazyLoad",this))?w(this):(I("boolean"!=typeof i,"lazyLoad event must return source in data.result"),t=this.tree._callHook("nodeLoadChildren",this,i),s?(this.expanded=!0,t.always(function(){n.render()})):t.always(function(){n.renderStatus()}),t)):w(this)},makeVisible:function(e){var t,i=this,n=[],s=new y.Deferred,r=this.getParentList(!1,!1),o=r.length,a=!(e&&!0===e.noAnimation),l=!(e&&!1===e.scrollIntoView);for(t=o-1;0<=t;t--)n.push(r[t].setExpanded(!0,e));return y.when.apply(y,n).done(function(){l?i.scrollIntoView(a).done(function(){s.resolve()}):s.resolve()}),s.promise()},moveTo:function(t,e,i){void 0===e||"over"===e?e="child":"firstChild"===e&&(t.children&&t.children.length?(e="before",t=t.children[0]):e="child");var n,s=this.parent,r="child"===e?t:t.parent;if(this!==t){if(this.parent?r.isDescendantOf(this)&&y.error("Cannot move a node to its own descendant"):y.error("Cannot move system root"),r!==s&&s.triggerModifyChild("remove",this),1===this.parent.children.length){if(this.parent===r)return;this.parent.children=this.parent.lazy?[]:null,this.parent.expanded=!1}else I(0<=(n=y.inArray(this,this.parent.children)),"invalid source parent"),this.parent.children.splice(n,1);if((this.parent=r).hasChildren())switch(e){case"child":r.children.push(this);break;case"before":I(0<=(n=y.inArray(t,r.children)),"invalid target parent"),r.children.splice(n,0,this);break;case"after":I(0<=(n=y.inArray(t,r.children)),"invalid target parent"),r.children.splice(n+1,0,this);break;default:y.error("Invalid mode "+e)}else r.children=[this];i&&t.visit(i,!0),r===s?r.triggerModifyChild("move",this):r.triggerModifyChild("add",this),this.tree!==t.tree&&(this.warn("Cross-tree moveTo is experimantal!"),this.visit(function(e){e.tree=t.tree},!0)),s.isDescendantOf(r)||s.render(),r.isDescendantOf(s)||r===s||r.render()}},navigate:function(t,i){var e,n,s,r=y.ui.keyCode,o=null;function a(e){if(e){try{e.makeVisible({scrollIntoView:!1})}catch(e){}return y(e.span).is(":visible")?!1===i?e.setFocus():e.setActive():(e.debug("Navigate: skipping hidden node"),void e.navigate(t,i))}}switch(t){case r.BACKSPACE:this.parent&&this.parent.parent&&(s=a(this.parent));break;case r.HOME:this.tree.visit(function(e){if(y(e.span).is(":visible"))return s=a(e),!1});break;case r.END:this.tree.visit(function(e){y(e.span).is(":visible")&&(s=e)}),s&&(s=a(s));break;case r.LEFT:this.expanded?(this.setExpanded(!1),s=a(this)):this.parent&&this.parent.parent&&(s=a(this.parent));break;case r.RIGHT:this.expanded||!this.children&&!this.lazy?this.children&&this.children.length&&(s=a(this.children[0])):(this.setExpanded(),s=a(this));break;case r.UP:for(o=this.getPrevSibling();o&&!y(o.span).is(":visible");)o=o.getPrevSibling();for(;o&&o.expanded&&o.children&&o.children.length;)o=o.children[o.children.length-1];!o&&this.parent&&this.parent.parent&&(o=this.parent),s=a(o);break;case r.DOWN:if(this.expanded&&this.children&&this.children.length)o=this.children[0];else for(e=(n=this.getParentList(!1,!0)).length-1;0<=e;e--){for(o=n[e].getNextSibling();o&&!y(o.span).is(":visible");)o=o.getNextSibling();if(o)break}s=a(o);break;default:!1}return s||w()},remove:function(){return this.parent.removeChild(this)},removeChild:function(e){return this.tree._callHook("nodeRemoveChild",this,e)},removeChildren:function(){return this.tree._callHook("nodeRemoveChildren",this)},removeClass:function(e){return this.toggleClass(e,!1)},render:function(e,t){return this.tree._callHook("nodeRender",this,e,t)},renderTitle:function(){return this.tree._callHook("nodeRenderTitle",this)},renderStatus:function(){return this.tree._callHook("nodeRenderStatus",this)},replaceWith:function(e){var t,i=this.parent,n=y.inArray(this,i.children),s=this;return I(this.isPagingNode(),"replaceWith() currently requires a paging status node"),(t=this.tree._callHook("nodeLoadChildren",this,e)).done(function(e){var t=s.children;for(r=0;r<t.length;r++)t[r].parent=i;i.children.splice.apply(i.children,[n+1,0].concat(t)),s.children=null,s.remove(),i.render()}).fail(function(){s.setExpanded()}),t},resetLazy:function(){this.removeChildren(),this.expanded=!1,this.lazy=!0,this.children=void 0,this.renderStatus()},scheduleAction:function(e,t){this.tree.timer&&clearTimeout(this.tree.timer),this.tree.timer=null;var i=this;switch(e){case"cancel":break;case"expand":this.tree.timer=setTimeout(function(){i.tree.debug("setTimeout: trigger expand"),i.setExpanded(!0)},t);break;case"activate":this.tree.timer=setTimeout(function(){i.tree.debug("setTimeout: trigger activate"),i.setActive(!0)},t);break;default:y.error("Invalid mode "+e)}},scrollIntoView:function(e,t){var i;void 0!==t&&((i=t).tree&&void 0!==i.statusNodeType)&&(this.warn("scrollIntoView() with 'topNode' option is deprecated since 2014-05-08. Use 'options.topNode' instead."),t={topNode:t});var n,s,r,o=y.extend({effects:!0===e?{duration:200,queue:!1}:e,scrollOfs:this.tree.options.scrollOfs,scrollParent:this.tree.options.scrollParent||this.tree.$container,topNode:null},t),a=new y.Deferred,l=this,c=y(this.span).height(),h=y(o.scrollParent),u=o.scrollOfs.top||0,d=o.scrollOfs.bottom||0,g=h.height(),f=h.scrollTop(),p=h,m=h[0]===window,C=o.topNode||null,A=null;return y(this.span).is(":visible")?(m?(s=y(this.span).offset().top,n=C&&C.span?y(C.span).offset().top:0,p=y("html,body")):(I(h[0]!==document&&h[0]!==document.body,"scrollParent should be a simple element or `window`, not document or body."),r=h.offset().top,s=y(this.span).offset().top-r+f,n=C?y(C.span).offset().top-r+f:0,g-=Math.max(0,h.innerHeight()-h[0].clientHeight)),s<f+u?A=s-u:f+g-d<s+c&&(A=s+c-g+d,C&&(I(C.isRootNode()||y(C.span).is(":visible"),"topNode must be visible"),n<A&&(A=n-u))),null!==A?o.effects?(o.effects.complete=function(){a.resolveWith(l)},p.stop(!0).animate({scrollTop:A},o.effects)):(p[0].scrollTop=A,a.resolveWith(this)):a.resolveWith(this),a.promise()):(this.warn("scrollIntoView(): node is invisible."),w())},setActive:function(e,t){return this.tree._callHook("nodeSetActive",this,e,t)},setExpanded:function(e,t){return this.tree._callHook("nodeSetExpanded",this,e,t)},setFocus:function(e){return this.tree._callHook("nodeSetFocus",this,e)},setSelected:function(e,t){return this.tree._callHook("nodeSetSelected",this,e,t)},setStatus:function(e,t,i){return this.tree._callHook("nodeSetStatus",this,e,t,i)},setTitle:function(e){this.title=e,this.renderTitle(),this.triggerModify("rename")},sortChildren:function(e,t){var i,n,s=this.children;if(s){if(e=e||function(e,t){var i=e.title.toLowerCase(),n=t.title.toLowerCase();return i===n?0:n<i?1:-1},s.sort(e),t)for(i=0,n=s.length;i<n;i++)s[i].children&&s[i].sortChildren(e,"$norender$");"$norender$"!==t&&this.render(),this.triggerModifyChild("sort")}},toDict:function(e,t){var i,n,s,r={},o=this;if(y.each(v,function(e,t){(o[t]||!1===o[t])&&(r[t]=o[t])}),y.isEmptyObject(this.data)||(r.data=y.extend({},this.data),y.isEmptyObject(r.data)&&delete r.data),t&&t(r,o),e&&this.hasChildren())for(r.children=[],i=0,n=this.children.length;i<n;i++)(s=this.children[i]).isStatusNode()||r.children.push(s.toDict(!0,t));return r},toggleClass:function(e,t){var i,n,s=e.match(/\S+/g)||[],r=0,o=!1,a=this[this.tree.statusClassPropName],l=" "+(this.extraClasses||"")+" ";for(a&&y(a).toggleClass(e,t);i=s[r++];)if(n=0<=l.indexOf(" "+i+" "),t=void 0===t?!n:!!t)n||(l+=i+" ",o=!0);else for(;-1<l.indexOf(" "+i+" ");)l=l.replace(" "+i+" "," ");return this.extraClasses=y.trim(l),o},toggleExpanded:function(){return this.tree._callHook("nodeToggleExpanded",this)},toggleSelected:function(){return this.tree._callHook("nodeToggleSelected",this)},toString:function(){return"FancytreeNode@"+this.key+"[title='"+this.title+"']"},triggerModifyChild:function(e,t,i){var n,s=this.tree.options.modifyChild;s&&(t&&t.parent!==this&&y.error("childNode "+t+" is not a child of "+this),n={node:this,tree:this.tree,operation:e,childNode:t||null},i&&y.extend(n,i),s({type:"modifyChild"},n))},triggerModify:function(e,t){this.parent.triggerModifyChild(e,this,t)},visit:function(e,t){var i,n,s=!0,r=this.children;if(!0===t&&(!1===(s=e(this))||"skip"===s))return s;if(r)for(i=0,n=r.length;i<n&&!1!==(s=r[i].visit(e,!0));i++);return s},visitAndLoad:function(i,e,t){var n,s,r,o=this;return!i||!0!==e||!1!==(s=i(o))&&"skip"!==s?o.children||o.lazy?(n=new y.Deferred,r=[],o.load().done(function(){for(var e=0,t=o.children.length;e<t;e++){if(!1===(s=o.children[e].visitAndLoad(i,!0,!0))){n.reject();break}"skip"!==s&&r.push(s)}y.when.apply(this,r).then(function(){n.resolve()})}),n.promise()):w():t?s:w()},visitParents:function(e,t){if(t&&!1===e(this))return!1;for(var i=this.parent;i;){if(!1===e(i))return!1;i=i.parent}return!0},visitSiblings:function(e,t){var i,n,s,r=this.parent.children;for(i=0,n=r.length;i<n;i++)if(s=r[i],(t||s!==this)&&!1===e(s))return!1;return!0},warn:function(e){Array.prototype.unshift.call(arguments,this.toString()),c("warn",arguments)}},S.prototype={_makeHookContext:function(e,t,i){var n,s;return void 0!==e.node?(t&&e.originalEvent!==t&&y.error("invalid args"),n=e):e.tree?n={node:e,tree:s=e.tree,widget:s.widget,options:s.widget.options,originalEvent:t,typeInfo:s.types[e.type]||{}}:e.widget?n={node:null,tree:e,widget:e.widget,options:e.widget.options,originalEvent:t}:y.error("invalid args"),i&&y.extend(n,i),n},_callHook:function(e,t,i){var n=this._makeHookContext(t),s=this[e],r=Array.prototype.slice.call(arguments,2);return y.isFunction(s)||y.error("_callHook('"+e+"') is not a function"),r.unshift(n),s.apply(this,r)},_setExpiringValue:function(e,t,i){this._tempCache[e]={value:t,expire:Date.now()+(+i||50)}},_getExpiringValue:function(e){var t=this._tempCache[e];return t&&t.expire>Date.now()?t.value:(delete this._tempCache[e],null)},_requireExtension:function(e,t,i,n){i=!!i;var s=this._local.name,r=this.options.extensions,o=y.inArray(e,r)<y.inArray(s,r),a=t&&null==this.ext[e],l=!a&&null!=i&&i!==o;return I(s&&s!==e,"invalid or same name"),!a&&!l||(n||(a||t?(n="'"+s+"' extension requires '"+e+"'",l&&(n+=" to be registered "+(i?"before":"after")+" itself")):n="If used together, `"+e+"` must be registered "+(i?"before":"after")+" `"+s+"`"),y.error(n),!1)},activateKey:function(e){var t=this.getNodeByKey(e);return t?t.setActive():this.activeNode&&this.activeNode.setActive(!1),t},addPagingNode:function(e,t){return this.rootNode.addPagingNode(e,t)},applyPatch:function(e){var t,i,n,s,r,o,a=e.length,l=[];for(i=0;i<a;i++)I(2===(n=e[i]).length,"patchList must be an array of length-2-arrays"),s=n[0],r=n[1],(o=null===s?this.rootNode:this.getNodeByKey(s))?(t=new y.Deferred,l.push(t),o.applyPatch(r).always(x(t,o))):this.warn("could not find node with key '"+s+"'");return y.when.apply(y,l).promise()},clear:function(e){this._callHook("treeClear",this)},count:function(){return this.rootNode.countChildren()},debug:function(e){2<=this.options.debugLevel&&(Array.prototype.unshift.call(arguments,this.toString()),c("log",arguments))},enableUpdate:function(e){return e=!1!==e,!!this._enableUpdate==!!e?e:((this._enableUpdate=e)?(this.debug("enableUpdate(true): redraw "),this.render()):this.debug("enableUpdate(false)..."),!e)},error:function(e){Array.prototype.unshift.call(arguments,this.toString()),c("error",arguments)},findAll:function(e){return this.rootNode.findAll(e)},findFirst:function(e){return this.rootNode.findFirst(e)},findNextNode:function(t,i,e){var n;t="string"==typeof t?(n=new RegExp("^"+t,"i"),function(e){return n.test(e.title)}):t,i=i||this.getFirstChild();var s=null,r=i.parent.children,o=null,l=function(e,t,i){var n,s,r=e.children,o=r.length,a=r[t];if(a&&!1===i(a))return!1;if(a&&a.children&&a.expanded&&!1===l(a,0,i))return!1;for(n=t+1;n<o;n++)if(!1===l(e,n,i))return!1;return(s=e.parent)?l(s,s.children.indexOf(e)+1,i):l(e,0,i)};return l(i.parent,r.indexOf(i),function(e){return e!==s&&(s=s||e,y(e.span).is(":visible")?(!t(e)||(o=e)===i)&&void 0:void e.debug("quicksearch: skipping hidden node"))}),o},generateFormElements:function(e,t,i){i=i||{};var n,s="string"==typeof e?e:"ft_"+this._id+"[]",r="string"==typeof t?t:"ft_"+this._id+"_active",o="fancytree_result_"+this._id,a=y("#"+o),l=3===this.options.selectMode&&!1!==i.stopOnParents;function c(e){a.append(y("<input>",{type:"checkbox",name:s,value:e.key,checked:!0}))}a.length?a.empty():a=y("<div>",{id:o}).hide().insertAfter(this.$container),!1!==t&&this.activeNode&&a.append(y("<input>",{type:"radio",name:r,value:this.activeNode.key,checked:!0})),i.filter?this.visit(function(e){var t=i.filter(e);if("skip"===t)return t;!1!==t&&c(e)}):!1!==e&&(n=this.getSelectedNodes(l),y.each(n,function(e,t){c(t)}))},getActiveNode:function(){return this.activeNode},getFirstChild:function(){return this.rootNode.getFirstChild()},getFocusNode:function(){return this.focusNode},getNodeByKey:function(t,e){var i,n;return!e&&(i=document.getElementById(this.options.idPrefix+t))?i.ftnode?i.ftnode:null:(e=e||this.rootNode,n=null,e.visit(function(e){if(e.key===t)return n=e,!1},!0),n)},getRootNode:function(){return this.rootNode},getSelectedNodes:function(e){return this.rootNode.getSelectedNodes(e)},hasFocus:function(){return!!this._hasFocus},info:function(e){1<=this.options.debugLevel&&(Array.prototype.unshift.call(arguments,this.toString()),c("info",arguments))},loadKeyPath:function(e,t){var n,i,s,r=this,o=new y.Deferred,a=this.getRootNode(),l=this.options.keyPathSeparator,c=[],h=y.extend({},t);for("function"==typeof t?n=t:t&&t.callback&&(n=t.callback),h.callback=function(e,t,i){n&&n.call(e,t,i),o.notifyWith(e,[{node:t,status:i}])},null==h.matchKey&&(h.matchKey=function(e,t){return e.key===t}),y.isArray(e)||(e=[e]),i=0;i<e.length;i++)(s=e[i]).charAt(0)===l&&(s=s.substr(1)),c.push(s.split(l));return setTimeout(function(){r._loadKeyPathImpl(o,h,a,c).done(function(){o.resolve()})},0),o.promise()},_loadKeyPathImpl:function(e,r,t,i){var n,s,o,a,l,c,h,u,d=this;function g(e,t){var i,n,s=e.children;if(s)for(i=0,n=s.length;i<n;i++)if(r.matchKey(s[i],t))return s[i];return null}for(l={},s=0;s<i.length;s++)for(h=i[s],c=t;h.length;){if(o=h.shift(),!(a=g(c,o))){this.warn("loadKeyPath: key not found: "+o+" (parent: "+c+")"),r.callback(this,o,"error");break}if(0===h.length){r.callback(this,a,"ok");break}if(a.lazy&&void 0===a.hasChildren()){r.callback(this,a,"loaded"),l[o=a.key]?l[o].pathSegList.push(h):l[o]={parent:a,pathSegList:[h]};break}r.callback(this,a,"loaded"),c=a}function f(t,i,e){r.callback(d,i,"loading"),i.load().done(function(){d._loadKeyPathImpl.call(d,t,r,i,e).always(x(t,d))}).fail(function(e){d.warn("loadKeyPath: error loading lazy "+i),r.callback(d,a,"error"),t.rejectWith(d)})}for(var p in n=[],l){var m=l[p];u=new y.Deferred,n.push(u),f(u,m.parent,m.pathSegList)}return y.when.apply(y,n).promise()},reactivate:function(e){var t,i=this.activeNode;return i?(this.activeNode=null,t=i.setActive(!0,{noFocus:!0}),e&&i.setFocus(),t):w()},reload:function(e){return this._callHook("treeClear",this),this._callHook("treeLoad",this,e)},render:function(e,t){return this.rootNode.render(e,t)},setFocus:function(e){return this._callHook("treeSetFocus",this,e)},toDict:function(e,t){var i=this.rootNode.toDict(!0,t);return e?i:i.children},toString:function(){return"Fancytree@"+this._id},_triggerNodeEvent:function(e,t,i,n){var s=this._makeHookContext(t,i,n),r=this.widget._trigger(e,i,s);return!1!==r&&void 0!==s.result?s.result:r},_triggerTreeEvent:function(e,t,i){var n=this._makeHookContext(this,t,i),s=this.widget._trigger(e,t,n);return!1!==s&&void 0!==n.result?n.result:s},visit:function(e){return this.rootNode.visit(e,!1)},warn:function(e){Array.prototype.unshift.call(arguments,this.toString()),c("warn",arguments)}},y.extend(S.prototype,{nodeClick:function(e){var t,i,n=e.targetType,s=e.node;if("expander"===n){if(s.isLoading())return void s.debug("Got 2nd click while loading: ignored");this._callHook("nodeToggleExpanded",e)}else if("checkbox"===n)this._callHook("nodeToggleSelected",e),e.options.focusOnSelect&&this._callHook("nodeSetFocus",e,!0);else{if(t=!(i=!1),s.folder)switch(e.options.clickFolderMode){case 2:t=!(i=!0);break;case 3:i=t=!0}t&&(this.nodeSetFocus(e),this._callHook("nodeSetActive",e,!0)),i&&this._callHook("nodeToggleExpanded",e)}},nodeCollapseSiblings:function(e,t){var i,n,s,r=e.node;if(r.parent)for(n=0,s=(i=r.parent.children).length;n<s;n++)i[n]!==r&&i[n].expanded&&this._callHook("nodeSetExpanded",i[n],!1,t)},nodeDblclick:function(e){"title"===e.targetType&&4===e.options.clickFolderMode&&this._callHook("nodeToggleExpanded",e),"title"===e.targetType&&e.originalEvent.preventDefault()},nodeKeydown:function(e){var t,i,n,s=e.originalEvent,r=e.node,o=e.tree,a=e.options,l=s.which,c=String.fromCharCode(l),h=!(s.altKey||s.ctrlKey||s.metaKey||s.shiftKey),u=y(s.target),d=!0,g=!(s.ctrlKey||!a.autoActivate);if(r||(n=this.getActiveNode()||this.getFirstChild())&&(n.setFocus(),(r=e.node=this.focusNode).debug("Keydown force focus on active node")),a.quicksearch&&h&&/\w/.test(c)&&!f[l]&&!u.is(":input:enabled"))return 500<(i=(new Date).getTime())-o.lastQuicksearchTime&&(o.lastQuicksearchTerm=""),o.lastQuicksearchTime=i,o.lastQuicksearchTerm+=c,(t=o.findNextNode(o.lastQuicksearchTerm,o.getActiveNode()))&&t.setActive(),void s.preventDefault();switch(p.eventToString(s)){case"+":case"=":o.nodeSetExpanded(e,!0);break;case"-":o.nodeSetExpanded(e,!1);break;case"space":r.isPagingNode()?o._triggerNodeEvent("clickPaging",e,s):p.evalOption("checkbox",r,r,a,!1)?o.nodeToggleSelected(e):o.nodeSetActive(e,!0);break;case"return":o.nodeSetActive(e,!0);break;case"home":case"end":case"backspace":case"left":case"right":case"up":case"down":r.navigate(s.which,g,!0);break;default:d=!1}d&&s.preventDefault()},nodeLoadChildren:function(r,o){var t,i,e,a=r.tree,l=r.node,c=(new Date).getTime();if(y.isFunction(o)&&(o=o.call(a,{type:"source"},r),I(!y.isFunction(o),"source callback must not return another function")),o.url&&(l._requestId&&l.warn("Recursive load request #"+c+" while #"+l._requestId+" is pending."),t=y.extend({},r.options.ajax,o),l._requestId=c,e=t.debugDelay?(i=t.debugDelay,y.isArray(i)&&(i=i[0]+Math.random()*(i[1]-i[0])),l.warn("nodeLoadChildren waiting debugDelay "+Math.round(i)+" ms ..."),t.debugDelay=!1,y.Deferred(function(e){setTimeout(function(){y.ajax(t).done(function(){e.resolveWith(this,arguments)}).fail(function(){e.rejectWith(this,arguments)})},i)})):y.ajax(t),o=new y.Deferred,e.done(function(e,t,i){var n,s;if("json"!==this.dataType&&"jsonp"!==this.dataType||"string"!=typeof e||y.error("Ajax request returned a string (did you get the JSON dataType wrong?)."),l._requestId&&l._requestId>c)o.rejectWith(this,[h]);else{if(r.options.postProcess){try{s=a._triggerNodeEvent("postProcess",r,r.originalEvent,{response:e,error:null,dataType:this.dataType})}catch(e){s={error:e,message:""+e,details:"postProcess failed"}}if(s.error)return n=y.isPlainObject(s.error)?s.error:{message:s.error},n=a._makeHookContext(l,null,n),void o.rejectWith(this,[n]);e=y.isArray(s)?s:e}else e&&e.hasOwnProperty("d")&&r.options.enableAspx&&(e="string"==typeof e.d?y.parseJSON(e.d):e.d);o.resolveWith(this,[e])}}).fail(function(e,t,i){var n=a._makeHookContext(l,null,{error:e,args:Array.prototype.slice.call(arguments),message:i,details:e.status+": "+i});o.rejectWith(this,[n])})),y.isFunction(o.then)&&y.isFunction(o.catch)&&(e=o,o=new y.Deferred,e.then(function(e){o.resolve(e)},function(e){o.reject(e)})),y.isFunction(o.promise))a.nodeSetStatus(r,"loading"),o.done(function(e){a.nodeSetStatus(r,"ok"),l._requestId=null}).fail(function(e){var t;e!==h?(e.node&&e.error&&e.message?t=e:"[object Object]"===(t=a._makeHookContext(l,null,{error:e,args:Array.prototype.slice.call(arguments),message:e?e.message||e.toString():""})).message&&(t.message=""),l.warn("Load children failed ("+t.message+")",t),!1!==a._triggerNodeEvent("loadError",t,null)&&a.nodeSetStatus(r,"error",t.message,t.details)):l.warn("Ignored response for obsolete load request #"+c+" (expected #"+l._requestId+")")});else if(r.options.postProcess){var n=a._triggerNodeEvent("postProcess",r,r.originalEvent,{response:o,error:null,dataType:typeof o});o=y.isArray(n)?n:o}return y.when(o).done(function(e){var i;y.isPlainObject(e)&&(I(l.isRootNode(),"source may only be an object for root nodes (expecting an array of child objects otherwise)"),I(y.isArray(e.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),e=(i=e).children,delete i.children,y.each(u,function(e,t){void 0!==i[t]&&(a[t]=i[t],delete i[t])}),y.extend(a.data,i)),I(y.isArray(e),"expected array of children"),l._setChildren(e),a._triggerNodeEvent("loadChildren",l)})},nodeLoadKeyPath:function(e,t){},nodeRemoveChild:function(e,t){var i,n=e.node,s=y.extend({},e,{node:t}),r=n.children;if(1===r.length)return I(t===r[0],"invalid single child"),this.nodeRemoveChildren(e);this.activeNode&&(t===this.activeNode||this.activeNode.isDescendantOf(t))&&this.activeNode.setActive(!1),this.focusNode&&(t===this.focusNode||this.focusNode.isDescendantOf(t))&&(this.focusNode=null),this.nodeRemoveMarkup(s),this.nodeRemoveChildren(s),I(0<=(i=y.inArray(t,r)),"invalid child"),n.triggerModifyChild("remove",t),t.visit(function(e){e.parent=null},!0),this._callHook("treeRegisterNode",this,!1,t),r.splice(i,1)},nodeRemoveChildMarkup:function(e){var t=e.node;t.ul&&(t.isRootNode()?y(t.ul).empty():(y(t.ul).remove(),t.ul=null),t.visit(function(e){e.li=e.ul=null}))},nodeRemoveChildren:function(e){var t=e.tree,i=e.node;i.children&&(this.activeNode&&this.activeNode.isDescendantOf(i)&&this.activeNode.setActive(!1),this.focusNode&&this.focusNode.isDescendantOf(i)&&(this.focusNode=null),this.nodeRemoveChildMarkup(e),y.extend({},e),i.triggerModifyChild("remove",null),i.visit(function(e){e.parent=null,t._callHook("treeRegisterNode",t,!1,e)}),i.lazy?i.children=[]:i.children=null,i.isRootNode()||(i.expanded=!1),this.nodeRenderStatus(e))},nodeRemoveMarkup:function(e){var t=e.node;t.li&&(y(t.li).remove(),t.li=null),this.nodeRemoveChildMarkup(e)},nodeRender:function(e,t,i,n,s){var r,o,a,l,c,h,u,d=e.node,g=e.tree,f=e.options,p=f.aria,m=!1,C=d.parent,A=!C,v=d.children,b=null;if(!1!==g._enableUpdate&&(A||C.ul)){if(I(A||C.ul,"parent UL must exist"),A||(d.li&&(t||d.li.parentNode!==d.parent.ul)&&(d.li.parentNode===d.parent.ul?b=d.li.nextSibling:this.debug("Unlinking "+d+" (must be child of "+d.parent+")"),this.nodeRemoveMarkup(e)),d.li?this.nodeRenderStatus(e):(m=!0,d.li=document.createElement("li"),(d.li.ftnode=d).key&&f.generateIds&&(d.li.id=f.idPrefix+d.key),d.span=document.createElement("span"),d.span.className="fancytree-node",p&&!d.tr&&y(d.li).attr("role","treeitem"),d.li.appendChild(d.span),this.nodeRenderTitle(e),f.createNode&&f.createNode.call(g,{type:"createNode"},e)),f.renderNode&&f.renderNode.call(g,{type:"renderNode"},e)),v){if(A||d.expanded||!0===i){for(d.ul||(d.ul=document.createElement("ul"),(!0!==n||s)&&d.expanded||(d.ul.style.display="none"),p&&y(d.ul).attr("role","group"),d.li?d.li.appendChild(d.ul):d.tree.$div.append(d.ul)),l=0,c=v.length;l<c;l++)u=y.extend({},e,{node:v[l]}),this.nodeRender(u,t,i,!1,!0);for(r=d.ul.firstChild;r;)r=(a=r.ftnode)&&a.parent!==d?(d.debug("_fixParent: remove missing "+a,r),h=r.nextSibling,r.parentNode.removeChild(r),h):r.nextSibling;for(r=d.ul.firstChild,l=0,c=v.length-1;l<c;l++)(o=v[l])!==(a=r.ftnode)?d.ul.insertBefore(o.li,a.li):r=r.nextSibling}}else d.ul&&(this.warn("remove child markup for "+d),this.nodeRemoveChildMarkup(e));A||m&&C.ul.insertBefore(d.li,b)}},nodeRenderTitle:function(e,t){var i,n,s,r,o,a,l,c=e.node,h=e.tree,u=e.options,d=u.aria,g=c.getLevel(),f=[];void 0!==t&&(c.title=t),c.span&&!1!==h._enableUpdate&&(o=d&&!1!==c.hasChildren()?" role='button'":"",g<u.minExpandLevel?(c.lazy||(c.expanded=!0),1<g&&f.push("<span "+o+" class='fancytree-expander fancytree-expander-fixed'></span>")):f.push("<span "+o+" class='fancytree-expander'></span>"),(i=p.evalOption("checkbox",c,c,u,!1))&&!c.isStatusNode()&&(o=d?" role='checkbox'":"",n="fancytree-checkbox",("radio"===i||c.parent&&c.parent.radiogroup)&&(n+=" fancytree-radio"),f.push("<span "+o+" class='"+n+"'></span>")),void 0!==c.data.iconClass&&(c.icon?y.error("'iconClass' node option is deprecated since v2.14.0: use 'icon' only instead"):(c.warn("'iconClass' node option is deprecated since v2.14.0: use 'icon' instead"),c.icon=c.data.iconClass)),!1!==(s=p.evalOption("icon",c,c,u,!0))&&(o=d?" role='presentation'":"",l=(l=p.evalOption("iconTooltip",c,c,u,null))?" title='"+E(l)+"'":"","string"==typeof s?m.test(s)?(s="/"===s.charAt(0)?s:(u.imagePath||"")+s,f.push("<img src='"+s+"' class='fancytree-icon'"+l+" alt='' />")):f.push("<span "+o+" class='fancytree-custom-icon "+s+"'"+l+"></span>"):s.text?f.push("<span "+o+" class='fancytree-custom-icon "+(s.addClass||"")+"'"+l+">"+s.text+"</span>"):f.push("<span "+o+" class='fancytree-icon'"+l+"></span>")),r="",u.renderTitle&&(r=u.renderTitle.call(h,{type:"renderTitle"},e)||""),r||(!0===(a=p.evalOption("tooltip",c,c,u,null))&&(a=c.title),r="<span class='fancytree-title'"+(a=a?" title='"+E(a)+"'":"")+(u.titlesTabbable?" tabindex='0'":"")+">"+(u.escapeTitles?p.escapeHtml(c.title):c.title)+"</span>"),f.push(r),c.span.innerHTML=f.join(""),this.nodeRenderStatus(e),u.enhanceTitle&&(e.$title=y(">span.fancytree-title",c.span),r=u.enhanceTitle.call(h,{type:"enhanceTitle"},e)||""))},nodeRenderStatus:function(e){var t,i=e.node,n=e.tree,s=e.options,r=i.hasChildren(),o=i.isLastSibling(),a=s.aria,l=s._classNames,c=[],h=i[n.statusClassPropName];h&&!1!==n._enableUpdate&&(a&&(t=y(i.tr||i.li)),c.push(l.node),n.activeNode===i&&c.push(l.active),n.focusNode===i&&c.push(l.focused),i.expanded&&c.push(l.expanded),a&&(!1!==r?t.attr("aria-expanded",Boolean(i.expanded)):t.removeAttr("aria-expanded")),i.folder&&c.push(l.folder),!1!==r&&c.push(l.hasChildren),o&&c.push(l.lastsib),i.lazy&&null==i.children&&c.push(l.lazy),i.partload&&c.push(l.partload),i.partsel&&c.push(l.partsel),p.evalOption("unselectable",i,i,s,!1)&&c.push(l.unselectable),i._isLoading&&c.push(l.loading),i._error&&c.push(l.error),i.statusNodeType&&c.push(l.statusNodePrefix+i.statusNodeType),i.selected?(c.push(l.selected),a&&t.attr("aria-selected",!0)):a&&t.attr("aria-selected",!1),i.extraClasses&&c.push(i.extraClasses),!1===r?c.push(l.combinedExpanderPrefix+"n"+(o?"l":"")):c.push(l.combinedExpanderPrefix+(i.expanded?"e":"c")+(i.lazy&&null==i.children?"d":"")+(o?"l":"")),c.push(l.combinedIconPrefix+(i.expanded?"e":"c")+(i.folder?"f":"")),h.className=c.join(" "),i.li&&y(i.li).toggleClass(l.lastsib,o))},nodeSetActive:function(e,t,i){i=i||{};var n,s=e.node,r=e.tree,o=e.options,a=!0===i.noEvents,l=!0===i.noFocus;return s===r.activeNode===(t=!1!==t)?w(s):t&&!a&&!1===this._triggerNodeEvent("beforeActivate",s,e.originalEvent)?_(s,["rejected"]):(t?(r.activeNode&&(I(r.activeNode!==s,"node was active (inconsistency)"),n=y.extend({},e,{node:r.activeNode}),r.nodeSetActive(n,!1),I(null===r.activeNode,"deactivate was out of sync?")),o.activeVisible&&s.makeVisible({scrollIntoView:l&&null==r.focusNode}),r.activeNode=s,r.nodeRenderStatus(e),l||r.nodeSetFocus(e),a||r._triggerNodeEvent("activate",s,e.originalEvent)):(I(r.activeNode===s,"node was not active (inconsistency)"),r.activeNode=null,this.nodeRenderStatus(e),a||e.tree._triggerNodeEvent("deactivate",s,e.originalEvent)),w(s))},nodeSetExpanded:function(n,s,e){e=e||{};var t,i,r,o,a,l,c=n.node,h=n.tree,u=n.options,d=!0===e.noAnimation,g=!0===e.noEvents;if(s=!1!==s,c.expanded&&s||!c.expanded&&!s)return w(c);if(s&&!c.lazy&&!c.hasChildren())return w(c);if(!s&&c.getLevel()<u.minExpandLevel)return _(c,["locked"]);if(!1===this._triggerNodeEvent("beforeExpand",c,n.originalEvent))return _(c,["rejected"]);if(d||c.isVisible()||(d=e.noAnimation=!0),i=new y.Deferred,s&&!c.expanded&&u.autoCollapse){a=c.getParentList(!1,!0),l=u.autoCollapse;try{for(u.autoCollapse=!1,r=0,o=a.length;r<o;r++)this._callHook("nodeCollapseSiblings",a[r],e)}finally{u.autoCollapse=l}}return i.done(function(){var e=c.getLastChild();s&&u.autoScroll&&!d&&e?e.scrollIntoView(!0,{topNode:c}).always(function(){g||n.tree._triggerNodeEvent(s?"expand":"collapse",n)}):g||n.tree._triggerNodeEvent(s?"expand":"collapse",n)}),t=function(e){var t=u._classNames,i=u.toggleEffect;if(c.expanded=s,h._callHook("nodeRender",n,!1,!1,!0),c.ul)if("none"!==c.ul.style.display===!!c.expanded)c.warn("nodeSetExpanded: UL.style.display already set");else{if(i&&!d)return y(c.li).addClass(t.animating),void y(c.ul).addClass(t.animating).toggle(i.effect,i.options,i.duration,function(){y(this).removeClass(t.animating),y(c.li).removeClass(t.animating),e()});c.ul.style.display=c.expanded||!parent?"":"none"}e()},s&&c.lazy&&void 0===c.hasChildren()?c.load().done(function(){i.notifyWith&&i.notifyWith(c,["loaded"]),t(function(){i.resolveWith(c)})}).fail(function(e){t(function(){i.rejectWith(c,["load failed ("+e+")"])})}):t(function(){i.resolveWith(c)}),i.promise()},nodeSetFocus:function(e,t){var i,n=e.tree,s=e.node,r=n.options,o=!!e.originalEvent&&y(e.originalEvent.target).is(":input");if(t=!1!==t,n.focusNode){if(n.focusNode===s&&t)return;i=y.extend({},e,{node:n.focusNode}),n.focusNode=null,this._triggerNodeEvent("blur",i),this._callHook("nodeRenderStatus",i)}t&&(this.hasFocus()||(s.debug("nodeSetFocus: forcing container focus"),this._callHook("treeSetFocus",e,!0,{calledByNode:!0})),s.makeVisible({scrollIntoView:!1}),n.focusNode=s,r.titlesTabbable?o||y(s.span).find(".fancytree-title").focus():0===y(document.activeElement).closest(".fancytree-container").length&&y(n.$container).focus(),r.aria&&y(n.$container).attr("aria-activedescendant",y(s.tr||s.li).uniqueId().attr("id")),this._triggerNodeEvent("focus",e),r.autoScroll&&s.scrollIntoView(),this._callHook("nodeRenderStatus",e))},nodeSetSelected:function(e,t,i){i=i||{};var n=e.node,s=e.tree,r=e.options,o=!0===i.noEvents,a=n.parent;if(t=!1!==t,!p.evalOption("unselectable",n,n,r,!1)){if(n._lastSelectIntent=t,!!n.selected===t&&(3!==r.selectMode||!n.partsel||t))return t;if(!o&&!1===this._triggerNodeEvent("beforeSelect",n,e.originalEvent))return!!n.selected;t&&1===r.selectMode?(s.lastSelectedNode&&s.lastSelectedNode.setSelected(!1),n.selected=t):3!==r.selectMode||!a||a.radiogroup||n.radiogroup?a&&a.radiogroup?n.visitSiblings(function(e){e._changeSelectStatusAttrs(t&&e===n)},!0):n.selected=t:(n.selected=t,n.fixSelection3AfterClick(i)),this.nodeRenderStatus(e),s.lastSelectedNode=t?n:null,o||s._triggerNodeEvent("select",e)}},nodeSetStatus:function(e,t,i,n){var s=e.node,r=e.tree;function o(e,t){var i=s.children?s.children[0]:null;return i&&i.isStatusNode()?(y.extend(i,e),i.statusNodeType=t,r._callHook("nodeRenderTitle",i)):(s._setChildren([e]),s.children[0].statusNodeType=t,r.render()),s.children[0]}switch(t){case"ok":!function(){var e=s.children?s.children[0]:null;if(e&&e.isStatusNode()){try{s.ul&&(s.ul.removeChild(e.li),e.li=null)}catch(e){}1===s.children.length?s.children=[]:s.children.shift()}}(),s._isLoading=!1,s._error=null,s.renderStatus();break;case"loading":s.parent||o({title:r.options.strings.loading+(i?" ("+i+")":""),checkbox:!1,tooltip:n},t),s._isLoading=!0,s._error=null,s.renderStatus();break;case"error":o({title:r.options.strings.loadError+(i?" ("+i+")":""),checkbox:!1,tooltip:n},t),s._isLoading=!1,s._error={message:i,details:n},s.renderStatus();break;case"nodata":o({title:r.options.strings.noData,checkbox:!1,tooltip:n},t),s._isLoading=!1,s._error=null,s.renderStatus();break;default:y.error("invalid node status "+t)}},nodeToggleExpanded:function(e){return this.nodeSetExpanded(e,!e.node.expanded)},nodeToggleSelected:function(e){var t=e.node,i=!t.selected;return t.partsel&&!t.selected&&!0===t._lastSelectIntent&&(i=!1,t.selected=!0),t._lastSelectIntent=i,this.nodeSetSelected(e,i)},treeClear:function(e){var t=e.tree;t.activeNode=null,t.focusNode=null,t.$div.find(">ul.fancytree-container").empty(),t.rootNode.children=null},treeCreate:function(e){},treeDestroy:function(e){this.$div.find(">ul.fancytree-container").remove(),this.$source&&this.$source.removeClass("ui-helper-hidden")},treeInit:function(e){var i=e.tree,n=i.options;i.$container.attr("tabindex",n.tabindex),y.each(u,function(e,t){void 0!==n[t]&&(i.info("Move option "+t+" to tree"),i[t]=n[t],delete n[t])}),n.rtl?i.$container.attr("DIR","RTL").addClass("fancytree-rtl"):i.$container.removeAttr("DIR").removeClass("fancytree-rtl"),n.aria&&(i.$container.attr("role","tree"),1!==n.selectMode&&i.$container.attr("aria-multiselectable",!0)),this.treeLoad(e)},treeLoad:function(e,t){var i,n,s,r=e.tree,o=e.widget.element,a=y.extend({},e,{node:this.rootNode});if(r.rootNode.children&&this.treeClear(e),t=t||this.options.source)"string"==typeof t&&y.error("Not implemented");else switch(n=o.data("type")||"html"){case"html":(s=o.find(">ul:first")).addClass("ui-fancytree-source ui-helper-hidden"),t=y.ui.fancytree.parseHtml(s),this.data=y.extend(this.data,k(s));break;case"json":t=y.parseJSON(o.text()),o.contents().filter(function(){return 3===this.nodeType}).remove(),y.isPlainObject(t)&&(I(y.isArray(t.children),"if an object is passed as source, it must contain a 'children' array (all other properties are added to 'tree.data')"),t=(i=t).children,delete i.children,y.each(u,function(e,t){void 0!==i[t]&&(r[t]=i[t],delete i[t])}),y.extend(r.data,i));break;default:y.error("Invalid data-type: "+n)}return this.nodeLoadChildren(a,t).done(function(){r.render(),3===e.options.selectMode&&r.rootNode.fixSelection3FromEndNodes(),r.activeNode&&r.options.activeVisible&&r.activeNode.makeVisible(),r._triggerTreeEvent("init",null,{status:!0})}).fail(function(){r.render(),r._triggerTreeEvent("init",null,{status:!1})})},treeRegisterNode:function(e,t,i){},treeSetFocus:function(e,t,i){var n;(t=!1!==t)!==this.hasFocus()&&(!(this._hasFocus=t)&&this.focusNode?this.focusNode.setFocus(!1):!t||i&&i.calledByNode||y(this.$container).focus(),this.$container.toggleClass("fancytree-treefocus",t),this._triggerTreeEvent(t?"focusTree":"blurTree"),t&&!this.activeNode&&(n=this._lastMousedownNode||this.getFirstChild())&&n.setFocus())},treeSetOption:function(e,t,i){var n=e.tree,s=!0,r=!1,o=!1;switch(t){case"aria":case"checkbox":case"icon":case"minExpandLevel":case"tabindex":o=r=!0;break;case"escapeTitles":case"tooltip":o=!0;break;case"rtl":!1===i?n.$container.removeAttr("DIR").removeClass("fancytree-rtl"):n.$container.attr("DIR","RTL").addClass("fancytree-rtl"),o=!0;break;case"source":s=!1,n._callHook("treeLoad",n,i),o=!0}n.debug("set option "+t+"="+i+" <"+typeof i+">"),s&&(this.widget._super?this.widget._super.call(this.widget,t,i):y.Widget.prototype._setOption.call(this.widget,t,i)),r&&n._callHook("treeCreate",n),o&&n.render(!0,!1)}}),y.widget("ui.fancytree",{options:{activeVisible:!0,ajax:{type:"GET",cache:!1,dataType:"json"},aria:!0,autoActivate:!0,autoCollapse:!1,autoScroll:!1,checkbox:!1,clickFolderMode:4,debugLevel:null,disabled:!1,enableAspx:!0,escapeTitles:!1,extensions:[],toggleEffect:{effect:"blind",options:{direction:"vertical",scale:"box"},duration:200},generateIds:!1,icon:!0,idPrefix:"ft_",focusOnSelect:!1,keyboard:!0,keyPathSeparator:"/",minExpandLevel:1,quicksearch:!1,rtl:!1,scrollOfs:{top:0,bottom:0},scrollParent:null,selectMode:2,strings:{loading:"Loading...",loadError:"Load error!",moreData:"More...",noData:"No data."},tabindex:"0",titlesTabbable:!1,tooltip:!1,_classNames:{node:"fancytree-node",folder:"fancytree-folder",animating:"fancytree-animating",combinedExpanderPrefix:"fancytree-exp-",combinedIconPrefix:"fancytree-ico-",hasChildren:"fancytree-has-children",active:"fancytree-active",selected:"fancytree-selected",expanded:"fancytree-expanded",lazy:"fancytree-lazy",focused:"fancytree-focused",partload:"fancytree-partload",partsel:"fancytree-partsel",radio:"fancytree-radio",unselectable:"fancytree-unselectable",lastsib:"fancytree-lastsib",loading:"fancytree-loading",error:"fancytree-error",statusNodePrefix:"fancytree-statusnode-"},lazyLoad:null,postProcess:null},_create:function(){this.tree=new S(this),this.$source=this.source||"json"===this.element.data("type")?this.element:this.element.find(">ul:first");var e,t,i,n=this.options,s=n.extensions;this.tree;for(i=0;i<s.length;i++)t=s[i],(e=y.ui.fancytree._extensions[t])||y.error("Could not apply extension '"+t+"' (it is not registered, did you forget to include it?)"),this.tree.options[t]=y.extend(!0,{},e.options,this.tree.options[t]),I(void 0===this.tree.ext[t],"Extension name must not exist as Fancytree.ext attribute: '"+t+"'"),this.tree.ext[t]={},g(this.tree,0,e,t),e;void 0!==n.icons&&(!0!==n.icon?y.error("'icons' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'icons' tree option is deprecated since v2.14.0: use 'icon' instead"),n.icon=n.icons)),void 0!==n.iconClass&&(n.icon?y.error("'iconClass' tree option is deprecated since v2.14.0: use 'icon' only instead"):(this.tree.warn("'iconClass' tree option is deprecated since v2.14.0: use 'icon' instead"),n.icon=n.iconClass)),void 0!==n.tabbable&&(n.tabindex=n.tabbable?"0":"-1",this.tree.warn("'tabbable' tree option is deprecated since v2.17.0: use 'tabindex='"+n.tabindex+"' instead")),this.tree._callHook("treeCreate",this.tree)},_init:function(){this.tree._callHook("treeInit",this.tree),this._bind()},_setOption:function(e,t){return this.tree._callHook("treeSetOption",this.tree,e,t)},destroy:function(){this._unbind(),this.tree._callHook("treeDestroy",this.tree),y.Widget.prototype.destroy.call(this)},_unbind:function(){var e=this.tree._ns;this.element.off(e),this.tree.$container.off(e),y(document).off(e)},_bind:function(){var o=this,a=this.options,r=this.tree,e=r._ns;this._unbind(),r.$container.on("focusin"+e+" focusout"+e,function(e){var t=p.getNode(e),i="focusin"===e.type;i&&r._getExpiringValue("focusin")?p.info("Ignored double focusin."):(r._setExpiringValue("focusin",!0,50),i&&!t&&(t=r._getExpiringValue("mouseDownNode"))&&p.info("Reconstruct mouse target for focusin from recent event."),t?r._callHook("nodeSetFocus",r._makeHookContext(t,e),i):r.tbody&&y(e.target).parents("table.fancytree-container > thead").length?r.debug("Ignore focus event outside table body.",e):r._callHook("treeSetFocus",r,i))}).on("selectstart"+e,"span.fancytree-title",function(e){e.preventDefault()}).on("keydown"+e,function(e){if(a.disabled||!1===a.keyboard)return!0;var t,i=r.focusNode,n=r._makeHookContext(i||r,e),s=r.phase;try{return r.phase="userEvent","preventNav"===(t=i?r._triggerNodeEvent("keydown",i,e):r._triggerTreeEvent("keydown",e))?t=!0:!1!==t&&(t=r._callHook("nodeKeydown",n)),t}finally{r.phase=s}}).on("mousedown"+e,function(e){var t=p.getEventTarget(e);r._lastMousedownNode=t?t.node:null,r._setExpiringValue("mouseDownNode",r._lastMousedownNode)}).on("click"+e+" dblclick"+e,function(e){if(a.disabled)return!0;var t,i=p.getEventTarget(e),n=i.node,s=o.tree,r=s.phase;if(!n)return!0;t=s._makeHookContext(n,e);try{switch(s.phase="userEvent",e.type){case"click":return t.targetType=i.type,n.isPagingNode()?!0===s._triggerNodeEvent("clickPaging",t,e):!1!==s._triggerNodeEvent("click",t,e)&&s._callHook("nodeClick",t);case"dblclick":return t.targetType=i.type,!1!==s._triggerNodeEvent("dblclick",t,e)&&s._callHook("nodeDblclick",t)}}finally{s.phase=r}})},getActiveNode:function(){return this.tree.activeNode},getNodeByKey:function(e){return this.tree.getNodeByKey(e)},getRootNode:function(){return this.tree.rootNode},getTree:function(){return this.tree}}),p=y.ui.fancytree,y.extend(y.ui.fancytree,{version:"2.27.0",buildType:"production",debugLevel:1,_nextId:1,_nextNodeKey:1,_extensions:{},_FancytreeClass:S,_FancytreeNodeClass:D,jquerySupports:{positionMyOfs:function(e,t,i,n){var s,r,o,a=y.map(y.trim(e).split("."),function(e){return parseInt(e,10)}),l=y.map(Array.prototype.slice.call(arguments,1),function(e){return parseInt(e,10)});for(s=0;s<l.length;s++)if((r=a[s]||0)!==(o=l[s]||0))return o<r;return!0}(y.ui.version,1,9)},assert:function(e,t){return I(e,t)},createTree:function(e,t){return y(e).fancytree(t).fancytree("getTree")},debounce:function(t,i,n,s){var r;return 3===arguments.length&&"boolean"!=typeof n&&(s=n,n=!1),function(){var e=arguments;s=s||this,n&&!r&&i.apply(s,e),clearTimeout(r),r=setTimeout(function(){n||i.apply(s,e),r=null},t)}},debug:function(e){2<=y.ui.fancytree.debugLevel&&c("log",arguments)},error:function(e){c("error",arguments)},escapeHtml:function(e){return(""+e).replace(t,function(e){return n[e]})},fixPositionOptions:function(e){if((e.offset||0<=(""+e.my+e.at).indexOf("%"))&&y.error("expected new position syntax (but '%' is not supported)"),!y.ui.fancytree.jquerySupports.positionMyOfs){var t=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(e.my),i=/(\w+)([+-]?\d+)?\s+(\w+)([+-]?\d+)?/.exec(e.at),n=(t[2]?+t[2]:0)+(i[2]?+i[2]:0),s=(t[4]?+t[4]:0)+(i[4]?+i[4]:0);e=y.extend({},e,{my:t[1]+" "+t[3],at:i[1]+" "+i[3]}),(n||s)&&(e.offset=n+" "+s)}return e},getEventTarget:function(e){var t=e&&e.target?e.target.className:"",i={node:this.getNode(e.target),type:void 0};return/\bfancytree-title\b/.test(t)?i.type="title":/\bfancytree-expander\b/.test(t)?i.type=!1===i.node.hasChildren()?"prefix":"expander":/\bfancytree-checkbox\b/.test(t)?i.type="checkbox":/\bfancytree(-custom)?-icon\b/.test(t)?i.type="icon":/\bfancytree-node\b/.test(t)?i.type="title":e&&y(e.target).is("ul[role=group]")?(p.info("Ignoring click on outer UL."),i.node=null):e&&e.target&&y(e.target).closest(".fancytree-title").length&&(i.type="title"),i},getEventTargetType:function(e){return this.getEventTarget(e).type},getNode:function(e){if(e instanceof D)return e;for(e instanceof y?e=e[0]:void 0!==e.originalEvent&&(e=e.target);e;){if(e.ftnode)return e.ftnode;e=e.parentNode}return null},getTree:function(e){var t;return e instanceof S?e:(void 0===e&&(e=0),"number"==typeof e?e=y(".fancytree-container").eq(e):"string"==typeof e?e=y(e).eq(0):void 0!==e.selector?e=e.eq(0):void 0!==e.originalEvent&&(e=y(e.target)),(t=(e=e.closest(":ui-fancytree")).data("ui-fancytree")||e.data("fancytree"))?t.tree:null)},evalOption:function(e,t,i,n,s){var r,o,a=t.tree,l=n[e],c=i[e];return y.isFunction(l)?(r={node:t,tree:a,widget:a.widget,options:a.widget.options,typeInfo:a.types[t.type]||{}},null==(o=l.call(a,{type:e},r))&&(o=c)):o=null!=c?c:l,null==o&&(o=s),o},setSpanIcon:function(e,t,i){var n=y(e);"string"==typeof i?n.attr("class",t+" "+i):(i.text&&n.text(""+i.text),n.attr("class",t+" "+(i.addClass||"")))},eventToString:function(e){var t=e.which,i=e.type,n=[];return e.altKey&&n.push("alt"),e.ctrlKey&&n.push("ctrl"),e.metaKey&&n.push("meta"),e.shiftKey&&n.push("shift"),"click"===i||"dblclick"===i?n.push(o[e.button]+i):s[t]||n.push(f[t]||String.fromCharCode(t).toLowerCase()),n.join("+")},info:function(e){1<=y.ui.fancytree.debugLevel&&c("info",arguments)},keyEventToString:function(e){return this.warn("keyEventToString() is deprecated: use eventToString()"),this.eventToString(e)},overrideMethod:function(e,t,i){var n,s=e[t]||y.noop;e[t]=function(){try{return n=this._super,this._super=s,i.apply(this,arguments)}finally{this._super=n}}},parseHtml:function(o){var a,l,c,h,u,d,g,f,e=o.find(">li"),p=[];return e.each(function(){var e,t,i=y(this),n=i.find(">span:first",this),s=n.length?null:i.find(">a:first"),r={tooltip:null,data:{}};for(n.length?r.title=n.html():s&&s.length?(r.title=s.html(),r.data.href=s.attr("href"),r.data.target=s.attr("target"),r.tooltip=s.attr("title")):(r.title=i.html(),0<=(u=r.title.search(/<ul/i))&&(r.title=r.title.substring(0,u))),r.title=y.trim(r.title),h=0,d=C.length;h<d;h++)r[C[h]]=void 0;for(a=this.className.split(" "),c=[],h=0,d=a.length;h<d;h++)l=a[h],A[l]?r[l]=!0:c.push(l);if(r.extraClasses=c.join(" "),(g=i.attr("title"))&&(r.tooltip=g),(g=i.attr("id"))&&(r.key=g),i.attr("hideCheckbox")&&(r.checkbox=!1),(e=k(i))&&!y.isEmptyObject(e)){for(t in b)e.hasOwnProperty(t)&&(e[b[t]]=e[t],delete e[t]);for(h=0,d=v.length;h<d;h++)g=v[h],null!=(f=e[g])&&(delete e[g],r[g]=f);y.extend(r.data,e)}(o=i.find(">ul:first")).length?r.children=y.ui.fancytree.parseHtml(o):r.children=r.lazy?void 0:null,p.push(r)}),p},registerExtension:function(e){I(null!=e.name,"extensions must have a `name` property."),I(null!=e.version,"extensions must have a `version` property."),y.ui.fancytree._extensions[e.name]=e},unescapeHtml:function(e){var t=document.createElement("div");return t.innerHTML=e,0===t.childNodes.length?"":t.childNodes[0].nodeValue},warn:function(e){c("warn",arguments)}}),y.ui.fancytree}function I(e,t){e||(t=t?": "+t:"",y.error("Fancytree assertion failed"+t))}function c(e,t){var i,n,s=window.console?window.console[e]:null;if(s)try{s.apply(window.console,t)}catch(e){for(n="",i=0;i<t.length;i++)n+=t[i];s(n)}}function d(e,n,t,i,s){var r,o,a,l,c;return r=n[e],o=i[e],a=n.ext[s],l=function(){return r.apply(n,arguments)},c=function(e){return r.apply(n,e)},function(){var e=n._local,t=n._super,i=n._superApply;try{return n._local=a,n._super=l,n._superApply=c,o.apply(n,arguments)}finally{n._local=e,n._super=t,n._superApply=i}}}function g(e,t,i,n){for(var s in i)"function"==typeof i[s]?"function"==typeof e[s]?e[s]=d(s,e,0,i,n):"_"===s.charAt(0)?e.ext[n][s]=d(s,e,0,i,n):y.error("Could not override tree."+s+". Use prefix '_' to create tree."+n+"._"+s):"options"!==s&&(e.ext[n][s]=i[s])}function w(e,t){return void 0===e?y.Deferred(function(){this.resolve()}).promise():y.Deferred(function(){this.resolveWith(e,t)}).promise()}function _(e,t){return void 0===e?y.Deferred(function(){this.reject()}).promise():y.Deferred(function(){this.rejectWith(e,t)}).promise()}function x(e,t){return function(){e.resolveWith(t)}}function k(e){var t=y.extend({},e.data()),i=t.json;return delete t.fancytree,delete t.uiFancytree,i&&(delete t.json,t=y.extend(t,i)),t}function E(e){return(""+e).replace(i,function(e){return n[e]})}function F(t){return t=t.toLowerCase(),function(e){return 0<=e.title.toLowerCase().indexOf(t)}}function D(e,t){var i,n,s,r;for(this.parent=e,this.tree=e.tree,this.ul=null,this.li=null,this.statusNodeType=null,this._isLoading=!1,this._error=null,this.data={},i=0,n=v.length;i<n;i++)this[s=v[i]]=t[s];for(s in null==this.unselectableIgnore&&null==this.unselectableStatus||(this.unselectable=!0),t.hideCheckbox&&y.error("'hideCheckbox' node option was removed in v2.23.0: use 'checkbox: false'"),t.data&&y.extend(this.data,t.data),t)a[s]||y.isFunction(t[s])||l[s]||(this.data[s]=t[s]);null==this.key?this.tree.options.defaultKey?(this.key=this.tree.options.defaultKey(this),I(this.key,"defaultKey() must return a unique key")):this.key="_"+p._nextNodeKey++:this.key=""+this.key,t.active&&(I(null===this.tree.activeNode,"only one active node allowed"),this.tree.activeNode=this),t.selected&&(this.tree.lastSelectedNode=this),(r=t.children)?r.length?this._setChildren(r):this.children=this.lazy?[]:null:this.children=null,this.tree._callHook("treeRegisterNode",this.tree,!0,this)}function S(e){this.widget=e,this.$div=e.element,this.options=e.options,this.options&&(y.isFunction(this.options.lazyload)&&!y.isFunction(this.options.lazyLoad)&&(this.options.lazyLoad=function(){return p.warn("The 'lazyload' event is deprecated since 2014-02-25. Use 'lazyLoad' (with uppercase L) instead."),e.options.lazyload.apply(this,arguments)}),y.isFunction(this.options.loaderror)&&y.error("The 'loaderror' event was renamed since 2014-07-03. Use 'loadError' (with uppercase E) instead."),void 0!==this.options.fx&&p.warn("The 'fx' option was replaced by 'toggleEffect' since 2014-11-30."),void 0!==this.options.removeNode&&y.error("The 'removeNode' event was replaced by 'modifyChild' since 2.20 (2016-09-10).")),this.ext={},this.types={},this.columns={},this.data=k(this.$div),this._id=y.ui.fancytree._nextId++,this._ns=".fancytree-"+this._id,this.activeNode=null,this.focusNode=null,this._hasFocus=null,this._tempCache={},this._lastMousedownNode=null,this._enableUpdate=!0,this.lastSelectedNode=null,this.systemFocusElement=null,this.lastQuicksearchTerm="",this.lastQuicksearchTime=0,this.statusClassPropName="span",this.ariaPropName="li",this.nodeContainerAttrName="li",this.$div.find(">ul.fancytree-container").remove();var t,i={tree:this};this.rootNode=new D(i,{title:"root",key:"root_"+this._id,children:null,expanded:!0}),this.rootNode.parent=null,t=y("<ul>",{class:"ui-fancytree fancytree-container fancytree-plain"}).appendTo(this.$div),this.$container=t,this.rootNode.ul=t[0],null==this.options.debugLevel&&(this.options.debugLevel=p.debugLevel)}y.ui.fancytree.warn("Fancytree: ignored duplicate include")}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(r){"use strict";return r.ui.fancytree._FancytreeClass.prototype.countSelected=function(e){this.options;return this.getSelectedNodes(e).length},r.ui.fancytree._FancytreeNodeClass.prototype.updateCounters=function(){var e=r("span.fancytree-childcounter",this.span),t=this.tree.options.childcounter,i=this.countChildren(t.deep);!(this.data.childCounter=i)&&t.hideZeros||this.isExpanded()&&t.hideExpanded?e.remove():(e.length||(e=r("<span class='fancytree-childcounter'/>").appendTo(r("span.fancytree-icon",this.span))),e.text(i)),!t.deep||this.isTopLevel()||this.isRoot()||this.parent.updateCounters()},r.ui.fancytree.prototype.widgetMethod1=function(e){this.tree;return e},r.ui.fancytree.registerExtension({name:"childcounter",version:"2.27.0",options:{deep:!0,hideZeros:!0,hideExpanded:!1},foo:42,_appendCounter:function(e){},treeInit:function(e){e.options,e.options.childcounter;this._superApply(arguments),this.$container.addClass("fancytree-ext-childcounter")},treeDestroy:function(e){this._superApply(arguments)},nodeRenderTitle:function(e,t){var i=e.node,n=e.options.childcounter,s=null==i.data.childCounter?i.countChildren(n.deep):+i.data.childCounter;this._super(e,t),!s&&n.hideZeros||i.isExpanded()&&n.hideExpanded||r("span.fancytree-icon",i.span).append(r("<span class='fancytree-childcounter'/>").text(s))},nodeSetExpanded:function(e,t,i){var n=e.tree;e.node;return this._superApply(arguments).always(function(){n.nodeRenderTitle(e)})}}),r.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(h){"use strict";function u(e,t){e||(t=t?": "+t:"",h.error("Assertion failed"+t))}return h.ui.fancytree._FancytreeNodeClass.prototype.getCloneList=function(e){var t,i=this.tree,n=i.refMap[this.refKey]||null,s=i.keyMap;return n&&(t=this.key,e?n=h.map(n,function(e){return s[e]}):(n=h.map(n,function(e){return e===t?null:s[e]})).length<1&&(n=null)),n},h.ui.fancytree._FancytreeNodeClass.prototype.isClone=function(){var e=this.refKey||null,t=e&&this.tree.refMap[e]||null;return!!(t&&1<t.length)},h.ui.fancytree._FancytreeNodeClass.prototype.reRegister=function(t,e){t=null==t?null:""+t,e=null==e?null:""+e;var i=this.tree,n=this.key,s=this.refKey,r=i.keyMap,o=i.refMap,a=o[s]||null,l=!1;return null!=t&&t!==this.key&&(r[t]&&h.error("[ext-clones] reRegister("+t+"): already exists: "+this),delete r[n],r[t]=this,a&&(o[s]=h.map(a,function(e){return e===n?t:e})),this.key=t,l=!0),null!=e&&e!==this.refKey&&(a&&(1===a.length?delete o[s]:o[s]=h.map(a,function(e){return e===n?null:e})),o[e]?o[e].append(t):o[e]=[this.key],this.refKey=e,l=!0),l},h.ui.fancytree._FancytreeNodeClass.prototype.setRefKey=function(e){return this.reRegister(null,e)},h.ui.fancytree._FancytreeClass.prototype.getNodesByRef=function(e,i){var n=this.keyMap,t=this.refMap[e]||null;return t&&(t=i?h.map(t,function(e){var t=n[e];return t.isDescendantOf(i)?t:null}):h.map(t,function(e){return n[e]})).length<1&&(t=null),t},h.ui.fancytree._FancytreeClass.prototype.changeRefKey=function(e,t){var i,n=this.keyMap,s=this.refMap[e]||null;if(s){for(i=0;i<s.length;i++)n[s[i]].refKey=t;delete this.refMap[e],this.refMap[t]=s}},h.ui.fancytree.registerExtension({name:"clones",version:"2.27.0",options:{highlightActiveClones:!0,highlightClones:!1},treeCreate:function(e){this._superApply(arguments),e.tree.refMap={},e.tree.keyMap={}},treeInit:function(e){this.$container.addClass("fancytree-ext-clones"),u(null==e.options.defaultKey),e.options.defaultKey=function(e){return t=e,"id_"+function(e,t,i){for(var n,s,r=3&e.length,o=e.length-r,a=i,l=3432918353,c=461845907,h=0;h<o;)s=255&e.charCodeAt(h)|(255&e.charCodeAt(++h))<<8|(255&e.charCodeAt(++h))<<16|(255&e.charCodeAt(++h))<<24,++h,a=27492+(65535&(n=5*(65535&(a=(a^=s=(65535&(s=(s=(65535&s)*l+(((s>>>16)*l&65535)<<16)&4294967295)<<15|s>>>17))*c+(((s>>>16)*c&65535)<<16)&4294967295)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)&4294967295))+((58964+(n>>>16)&65535)<<16);switch(s=0,r){case 3:s^=(255&e.charCodeAt(h+2))<<16;case 2:s^=(255&e.charCodeAt(h+1))<<8;case 1:a^=s=(65535&(s=(s=(65535&(s^=255&e.charCodeAt(h)))*l+(((s>>>16)*l&65535)<<16)&4294967295)<<15|s>>>17))*c+(((s>>>16)*c&65535)<<16)&4294967295}return a^=e.length,a=2246822507*(65535&(a^=a>>>16))+((2246822507*(a>>>16)&65535)<<16)&4294967295,a=3266489909*(65535&(a^=a>>>13))+((3266489909*(a>>>16)&65535)<<16)&4294967295,a^=a>>>16,t?("0000000"+(a>>>0).toString(16)).substr(-8):a>>>0}(h.map(t.getParentList(!1,!0),function(e){return e.refKey||e.key}).join("/"),!0);var t},this._superApply(arguments)},treeClear:function(e){return e.tree.refMap={},e.tree.keyMap={},this._superApply(arguments)},treeRegisterNode:function(e,t,i){var n,s,r=e.tree,o=r.keyMap,a=r.refMap,l=i.key,c=i&&null!=i.refKey?""+i.refKey:null;return i.isStatusNode()||(t?(null!=o[i.key]&&h.error("clones.treeRegisterNode: node.key already exists: "+i),o[l]=i,c&&((n=a[c])?(n.push(l),2===n.length&&e.options.clones.highlightClones&&o[n[0]].renderStatus()):a[c]=[l])):(null==o[l]&&h.error("clones.treeRegisterNode: node.key not registered: "+i.key),delete o[l],c&&(n=a[c])&&((s=n.length)<=1?(u(1===s),u(n[0]===l),delete a[c]):(!function(e,t){var i;for(i=e.length-1;0<=i;i--)if(e[i]===t)return e.splice(i,1)}(n,l),2===s&&e.options.clones.highlightClones&&o[n[0]].renderStatus())))),this._super(e,t,i)},nodeRenderStatus:function(e){var t,i,n=e.node;return i=this._super(e),e.options.clones.highlightClones&&(t=h(n[e.tree.statusClassPropName])).length&&n.isClone()&&t.addClass("fancytree-clone"),i},nodeSetActive:function(e,i,t){var n,s=e.tree.statusClassPropName,r=e.node;return n=this._superApply(arguments),e.options.clones.highlightActiveClones&&r.isClone()&&h.each(r.getCloneList(!0),function(e,t){h(t[s]).toggleClass("fancytree-active-clone",!1!==i)}),n}}),h.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-ui/ui/widgets/draggable","jquery-ui/ui/widgets/droppable","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(b){"use strict";var i=!1,f="fancytree-drop-accept",p="fancytree-drop-after",m="fancytree-drop-before",C="fancytree-drop-reject";function t(e){var t=e.options.dnd||null,r=e.options.glyph||null;t&&(i||(b.ui.plugin.add("draggable","connectToFancytree",{start:function(e,t){var i=b(this).data("ui-draggable")||b(this).data("draggable"),n=t.helper.data("ftSourceNode")||null;if(n)return i.offset.click.top=-2,i.offset.click.left=16,n.tree.ext.dnd._onDragEvent("start",n,null,e,t,i)},drag:function(e,t){var i,n=b(this).data("ui-draggable")||b(this).data("draggable"),s=t.helper.data("ftSourceNode")||null,r=t.helper.data("ftTargetNode")||null,o=b.ui.fancytree.getNode(e.target),a=s&&s.tree.options.dnd;e.target&&!o&&0<b(e.target).closest("div.fancytree-drag-helper,#fancytree-drop-marker").length?(s||r||b.ui.fancytree).debug("Drag event over helper: ignored."):(t.helper.data("ftTargetNode",o),a&&a.updateHelper&&(i=s.tree._makeHookContext(s,e,{otherNode:o,ui:t,draggable:n,dropMarker:b("#fancytree-drop-marker")}),a.updateHelper.call(s.tree,s,i)),r&&r!==o&&r.tree.ext.dnd._onDragEvent("leave",r,s,e,t,n),o&&o.tree.options.dnd.dragDrop&&(o===r||o.tree.ext.dnd._onDragEvent("enter",o,s,e,t,n),o.tree.ext.dnd._onDragEvent("over",o,s,e,t,n)))},stop:function(e,t){var i=b(this).data("ui-draggable")||b(this).data("draggable"),n=t.helper.data("ftSourceNode")||null,s=t.helper.data("ftTargetNode")||null,r="mouseup"===e.type&&1===e.which;r||(n||s||b.ui.fancytree).debug("Drag was cancelled"),s&&(r&&s.tree.ext.dnd._onDragEvent("drop",s,n,e,t,i),s.tree.ext.dnd._onDragEvent("leave",s,n,e,t,i)),n&&n.tree.ext.dnd._onDragEvent("stop",n,null,e,t,i)}}),i=!0)),t&&t.dragStart&&e.widget.element.draggable(b.extend({addClasses:!1,appendTo:e.$container,containment:!1,delay:0,distance:4,revert:!1,scroll:!0,scrollSpeed:7,scrollSensitivity:10,connectToFancytree:!0,helper:function(e){var t,i,n,s=b.ui.fancytree.getNode(e.target);return s?(n=s.tree.options.dnd,i=b(s.span),(t=b("<div class='fancytree-drag-helper'><span class='fancytree-drag-helper-img' /></div>").css({zIndex:3,position:"relative"}).append(i.find("span.fancytree-title").clone())).data("ftSourceNode",s),r&&t.find(".fancytree-drag-helper-img").addClass(r.map._addClass+" "+r.map.dragHelper),n.initHelper&&n.initHelper.call(s.tree,s,{node:s,tree:s.tree,originalEvent:e,ui:{helper:t}}),t):"<div>ERROR?: helper requested but sourceNode not found</div>"},start:function(e,t){return!!t.helper.data("ftSourceNode")}},e.options.dnd.draggable)),t&&t.dragDrop&&e.widget.element.droppable(b.extend({addClasses:!1,tolerance:"intersect",greedy:!1},e.options.dnd.droppable))}return b.ui.fancytree.registerExtension({name:"dnd",version:"2.27.0",options:{autoExpandMS:1e3,draggable:null,droppable:null,focusOnClick:!1,preventVoidMoves:!0,preventRecursiveMoves:!0,smartRevert:!0,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragStop:null,initHelper:null,updateHelper:null,dragEnter:null,dragOver:null,dragExpand:null,dragDrop:null,dragLeave:null},treeInit:function(i){var e=i.tree;this._superApply(arguments),e.options.dnd.dragStart&&e.$container.on("mousedown",function(e){if(i.options.dnd.focusOnClick){var t=b.ui.fancytree.getNode(e);t&&t.debug("Re-enable focus that was prevented by jQuery UI draggable."),setTimeout(function(){b(e.target).closest(":tabbable").focus()},10)}}),t(e)},_setDndStatus:function(e,t,i,n,s){var r,o,a="center",l=this._local,c=this.options.dnd,h=this.options.glyph,u=e?b(e.span):null,d=b(t.span),g=d.find("span.fancytree-title");if(l.$dropMarker||(l.$dropMarker=b("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3}).prependTo(b(this.$div).parent()),h&&l.$dropMarker.addClass(h.map._addClass+" "+h.map.dropMarker)),"after"===n||"before"===n||"over"===n){switch(r=c.dropMarkerOffsetX||0,n){case"before":a="top",r+=c.dropMarkerInsertOffsetX||0;break;case"after":a="bottom",r+=c.dropMarkerInsertOffsetX||0}l.$dropMarker.toggleClass(p,"after"===n).toggleClass("fancytree-drop-over","over"===n).toggleClass(m,"before"===n).show().position(b.ui.fancytree.fixPositionOptions({my:"left"+(o=r,0===o?"":0<o?"+"+o:""+o)+" center",at:"left "+a,of:g}))}else l.$dropMarker.hide();u&&u.toggleClass(f,!0===s).toggleClass(C,!1===s),d.toggleClass("fancytree-drop-target","after"===n||"before"===n||"over"===n).toggleClass(p,"after"===n).toggleClass(m,"before"===n).toggleClass(f,!0===s).toggleClass(C,!1===s),i.toggleClass(f,!0===s).toggleClass(C,!1===s)},_onDragEvent:function(e,t,i,n,s,r){var o,a,l,c,h,u,d,g,f,p=this.options.dnd,m=this._makeHookContext(t,n,{otherNode:i,ui:s,draggable:r}),C=null,A=this,v=b(t.span);switch(p.smartRevert&&(r.options.revert="invalid"),e){case"start":t.isStatusNode()?C=!1:p.dragStart&&(C=p.dragStart(t,m)),!1===C?(this.debug("tree.dragStart() cancelled"),s.helper.trigger("mouseup").hide()):(p.smartRevert&&(c=t[m.tree.nodeContainerAttrName].getBoundingClientRect(),l=b(r.options.appendTo)[0].getBoundingClientRect(),r.originalPosition.left=Math.max(0,c.left-l.left),r.originalPosition.top=Math.max(0,c.top-l.top)),v.addClass("fancytree-drag-source"),b(document).on("keydown.fancytree-dnd,mousedown.fancytree-dnd",function(e){"keydown"===e.type&&e.which===b.ui.keyCode.ESCAPE?A.ext.dnd._cancelDrag():"mousedown"===e.type&&A.ext.dnd._cancelDrag()}));break;case"enter":C=!!(f=(!p.preventRecursiveMoves||!t.isDescendantOf(i))&&(p.dragEnter?p.dragEnter(t,m):null))&&(b.isArray(f)?{over:0<=b.inArray("over",f),before:0<=b.inArray("before",f),after:0<=b.inArray("after",f)}:{over:!0===f||"over"===f,before:!0===f||"before"===f,after:!0===f||"after"===f}),s.helper.data("enterResponse",C);break;case"over":g=null,!1===(d=s.helper.data("enterResponse"))||("string"==typeof d?g=d:(a=v.offset(),u={x:(h={x:n.pageX-a.left,y:n.pageY-a.top}).x/v.width(),y:h.y/v.height()},d.after&&.75<u.y?g="after":!d.over&&d.after&&.5<u.y?g="after":d.before&&u.y<=.25?g="before":!d.over&&d.before&&u.y<=.5?g="before":d.over&&(g="over"),p.preventVoidMoves&&(t===i?(this.debug(" drop over source node prevented"),g=null):"before"===g&&i&&t===i.getNextSibling()?(this.debug(" drop after source node prevented"),g=null):"after"===g&&i&&t===i.getPrevSibling()?(this.debug(" drop before source node prevented"),g=null):"over"===g&&i&&i.parent===t&&i.isLastSibling()&&(this.debug(" drop last child over own parent prevented"),g=null)),s.helper.data("hitMode",g))),"before"===g||"after"===g||!p.autoExpandMS||!1===t.hasChildren()||t.expanded||p.dragExpand&&!1===p.dragExpand(t,m)||t.scheduleAction("expand",p.autoExpandMS),g&&p.dragOver&&(m.hitMode=g,C=p.dragOver(t,m)),o=!1!==C&&null!==g,p.smartRevert&&(r.options.revert=!o),this._local._setDndStatus(i,t,s.helper,g,o);break;case"drop":(g=s.helper.data("hitMode"))&&p.dragDrop&&(m.hitMode=g,p.dragDrop(t,m));break;case"leave":t.scheduleAction("cancel"),s.helper.data("enterResponse",null),s.helper.data("hitMode",null),this._local._setDndStatus(i,t,s.helper,"out",void 0),p.dragLeave&&p.dragLeave(t,m);break;case"stop":v.removeClass("fancytree-drag-source"),b(document).off(".fancytree-dnd"),p.dragStop&&p.dragStop(t,m);break;default:b.error("Unsupported drag event: "+e)}return C},_cancelDrag:function(){var e=b.ui.ddmanager.current;e&&e.cancel()}}),b.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(w){"use strict";var _=w.ui.fancytree,a="fancytree-drag-source",l="fancytree-drag-remove",x="fancytree-drop-accept",k="fancytree-drop-after",E="fancytree-drop-before",F="fancytree-drop-over",D="fancytree-drop-reject",f="application/x-fancytree-node",S=null,p=null,T=null,B=null;function m(e,t){var i,n,s,r,o,a,l,c,h;if(t.options.dnd5.scroll&&(i=t.tree,n=e,o=i.options.dnd5,a=i.$scrollParent[0],l=o.scrollSensitivity,c=o.scrollSpeed,h=0,a!==document&&"HTML"!==a.tagName?(s=i.$scrollParent.offset(),r=a.scrollTop,s.top+a.offsetHeight-n.pageY<l?0<a.scrollHeight-i.$scrollParent.innerHeight()-r&&(a.scrollTop=h=r+c):0<r&&n.pageY-s.top<l&&(a.scrollTop=h=r-c)):0<(r=w(document).scrollTop())&&n.pageY-r<l?(h=r-c,w(document).scrollTop(h)):w(window).height()-(n.pageY-r)<l&&(h=r+c,w(document).scrollTop(h)),h&&i.debug("autoScroll: "+h+"px")),!t.node)return t.tree.warn("Ignore dragover for non-node"),B;var u,d,g,f,p=null,m=t.tree,C=m.options.dnd5,A=t.node,v=t.otherNode,b="center",y=w(A.span),I=y.find("span.fancytree-title");if(!1===T)return m.info("Ignore dragover, since dragenter returned false"),!1;if("string"==typeof T?w.error("assert failed: dragenter returned string"):(d=y.offset(),g=(e.pageY-d.top)/y.height(),T.after&&.75<g?p="after":!T.over&&T.after&&.5<g?p="after":T.before&&g<=.25?p="before":!T.over&&T.before&&g<=.5?p="before":T.over&&(p="over"),C.preventVoidMoves&&(A===v?(A.debug("drop over source node prevented"),p=null):"before"===p&&v&&A===v.getNextSibling()?(A.debug("drop after source node prevented"),p=null):"after"===p&&v&&A===v.getPrevSibling()?(A.debug("drop before source node prevented"),p=null):"over"===p&&v&&v.parent===A&&v.isLastSibling()&&(A.debug("drop last child over own parent prevented"),p=null))),(t.hitMode=p)&&C.dragOver&&(C.dragOver(A,t),p=t.hitMode),"after"===(B=p)||"before"===p||"over"===p){switch(u=C.dropMarkerOffsetX||0,p){case"before":b="top",u+=C.dropMarkerInsertOffsetX||0;break;case"after":b="bottom",u+=C.dropMarkerInsertOffsetX||0}S.toggleClass(k,"after"===p).toggleClass(F,"over"===p).toggleClass(E,"before"===p).show().position(_.fixPositionOptions({my:"left"+(f=u,0===f?"":0<f?"+"+f:""+f)+" center",at:"left "+b,of:I}))}else S.hide();return w(A.span).toggleClass("fancytree-drop-target","after"===p||"before"===p||"over"===p).toggleClass(k,"after"===p).toggleClass(E,"before"===p).toggleClass(x,"over"===p).toggleClass(D,!1===p),p}return w.ui.fancytree.registerExtension({name:"dnd5",version:"2.27.0",options:{autoExpandMS:1500,setTextTypeJson:!1,preventForeignNodes:!1,preventNonNodes:!1,preventRecursiveMoves:!0,preventVoidMoves:!0,scroll:!0,scrollSensitivity:20,scrollSpeed:5,dropMarkerOffsetX:-24,dropMarkerInsertOffsetX:-16,dragStart:null,dragDrag:w.noop,dragEnd:w.noop,dragEnter:null,dragOver:w.noop,dragExpand:w.noop,dragDrop:w.noop,dragLeave:w.noop},treeInit:function(e){var t,u=e.tree,i=e.options,n=i.glyph||null,d=i.dnd5,g=_.getNode;0<=w.inArray("dnd",i.extensions)&&w.error("Extensions 'dnd' and 'dnd5' are mutually exclusive."),d.dragStop&&w.error("dragStop is not used by ext-dnd5. Use dragEnd instead."),d.dragStart&&_.overrideMethod(e.options,"createNode",function(e,t){this._super.apply(this,arguments),t.node.span.draggable=!0}),this._superApply(arguments),this.$container.addClass("fancytree-ext-dnd5"),t=w("<span>").appendTo(this.$container),this.$scrollParent=t.scrollParent(),t.remove(),(S=w("#fancytree-drop-marker")).length||(S=w("<div id='fancytree-drop-marker'></div>").hide().css({"z-index":1e3,"pointer-events":"none"}).prependTo("body"),n&&_.setSpanIcon(S[0],n.map._addClass,n.map.dropMarker)),d.dragStart&&u.$container.on("dragstart drag dragend",function(e){var t,i=g(e),n=e.dataTransfer||e.originalEvent.dataTransfer,s="move"===n.dropEffect,r=i?w(i.span):null,o={node:i,tree:u,options:u.options,originalEvent:e,dataTransfer:n,isCancelled:void 0};switch(e.type){case"dragstart":w(i.span).addClass(a),p=i,t=JSON.stringify(i.toDict());try{n.setData(f,t),n.setData("text/html",w(i.span).html()),n.setData("text/plain",i.title)}catch(e){u.warn("Could not set data (IE only accepts 'text') - "+e)}return d.setTextTypeJson?n.setData("text",t):n.setData("text",i.title),n.effectAllowed="all",n.setDragImage&&n.setDragImage(w(i.span).find(".fancytree-title")[0],-10,-10),!1!==d.dragStart(i,o);case"drag":r.toggleClass(l,s),d.dragDrag(i,o);break;case"dragend":w(i.span).removeClass(a+" "+l),T=p=null,o.isCancelled="none"===n.dropEffect,S.hide(),d.dragEnd(i,o)}}),d.dragEnter&&u.$container.on("dragenter dragover dragleave drop",function(e){var t,i,n,s,r,o,a=null,l=g(e),c=e.dataTransfer||e.originalEvent.dataTransfer,h={node:l,tree:u,options:u.options,hitMode:T,originalEvent:e,dataTransfer:c,otherNode:p||null,otherNodeData:null,dropEffect:void 0,isCancelled:void 0};switch(e.type){case"dragenter":if(!l){u.debug("Ignore non-node "+e.type+": "+e.target.tagName+"."+e.target.className),T=!1;break}if(w(l.span).addClass(F).removeClass(x+" "+D),d.preventNonNodes&&!i){l.debug("Reject dropping a non-node"),T=!1;break}if(d.preventForeignNodes&&(!p||p.tree!==l.tree)){l.debug("Reject dropping a foreign node"),T=!1;break}setTimeout(function(){!d.autoExpandMS||!1===l.hasChildren()||l.expanded||d.dragExpand&&!1===d.dragExpand(l,h)||l.scheduleAction("expand",d.autoExpandMS)},0),S.show(),s=(!d.preventRecursiveMoves||!l.isDescendantOf(h.otherNode))&&(n=d.dragEnter(l,h),!!(r=n)&&(o=w.isPlainObject(r)?{over:!!r.over,before:!!r.before,after:!!r.after}:w.isArray(r)?{over:0<=w.inArray("over",r),before:0<=w.inArray("before",r),after:0<=w.inArray("after",r)}:{over:!0===r||"over"===r,before:!0===r||"before"===r,after:!0===r||"after"===r},0!==Object.keys(o).length&&o)),a=(T=s)&&(s.over||s.before||s.after);break;case"dragover":a=!!(B=m(e,h));break;case"dragleave":if(!l){u.debug("Ignore non-node "+e.type+": "+e.target.tagName+"."+e.target.className);break}if(!w(l.span).hasClass(F)){l.debug("Ignore dragleave (multi)");break}w(l.span).removeClass(F+" "+x+" "+D),l.scheduleAction("cancel"),d.dragLeave(l,h),S.hide();break;case"drop":if(0<=w.inArray(f,c.types)&&(i=c.getData(f),u.info(e.type+": getData('application/x-fancytree-node'): '"+i+"'")),i||(i=c.getData("text"),u.info(e.type+": getData('text'): '"+i+"'")),i)try{void 0!==(t=JSON.parse(i)).title&&(h.otherNodeData=t)}catch(e){}u.debug(e.type+": nodeData: '"+i+"', otherNodeData: ",h.otherNodeData),w(l.span).removeClass(F+" "+x+" "+D),S.hide(),h.hitMode=B,h.dropEffect=c.dropEffect,h.isCancelled="none"===h.dropEffect,d.dragDrop(l,h),e.preventDefault()}if(a)return e.preventDefault(),!1})}}),w.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(c){"use strict";var t=/Mac/.test(navigator.platform),h=c.ui.fancytree.escapeHtml,a=c.ui.fancytree.unescapeHtml;return c.ui.fancytree._FancytreeNodeClass.prototype.editStart=function(){var t,i=this,e=this.tree,n=e.ext.edit,s=e.options.edit,r=c(".fancytree-title",i.span),o={node:i,tree:e,options:e.options,isNew:c(i[e.statusClassPropName]).hasClass("fancytree-edit-new"),orgTitle:i.title,input:null,dirty:!1};if(!1===s.beforeEdit.call(i,{type:"beforeEdit"},o))return!1;c.ui.fancytree.assert(!n.currentNode,"recursive edit"),n.currentNode=this,n.eventData=o,e.widget._unbind(),c(document).on("mousedown.fancytree-edit",function(e){c(e.target).hasClass("fancytree-edit-input")||i.editEnd(!0,e)}),t=c("<input />",{class:"fancytree-edit-input",type:"text",value:e.options.escapeTitles?o.orgTitle:a(o.orgTitle)}),n.eventData.input=t,null!=s.adjustWidthOfs&&t.width(r.width()+s.adjustWidthOfs),null!=s.inputCss&&t.css(s.inputCss),r.html(t),t.focus().change(function(e){t.addClass("fancytree-edit-dirty")}).keydown(function(e){switch(e.which){case c.ui.keyCode.ESCAPE:i.editEnd(!1,e);break;case c.ui.keyCode.ENTER:return i.editEnd(!0,e),!1}e.stopPropagation()}).blur(function(e){return i.editEnd(!0,e)}),s.edit.call(i,{type:"edit"},o)},c.ui.fancytree._FancytreeNodeClass.prototype.editEnd=function(e,t){var i,n=this,s=this.tree,r=s.ext.edit,o=r.eventData,a=s.options.edit,l=c(".fancytree-title",n.span).find("input.fancytree-edit-input");return a.trim&&l.val(c.trim(l.val())),i=l.val(),o.dirty=i!==n.title,o.originalEvent=t,!1===e?o.save=!1:o.isNew?o.save=""!==i:o.save=o.dirty&&""!==i,!1!==a.beforeClose.call(n,{type:"beforeClose"},o)&&((!o.save||!1!==a.save.call(n,{type:"save"},o))&&(l.removeClass("fancytree-edit-dirty").off(),c(document).off(".fancytree-edit"),o.save?(n.setTitle(s.options.escapeTitles?i:h(i)),n.setFocus()):o.isNew?(n.remove(),n=o.node=null,r.relatedNode.setFocus()):(n.renderTitle(),n.setFocus()),r.eventData=null,r.currentNode=null,r.relatedNode=null,s.widget._bind(),c(s.$container).focus(),o.input=null,a.close.call(n,{type:"close"},o),!0))},c.ui.fancytree._FancytreeNodeClass.prototype.editCreateNode=function(e,t){var i,n=this.tree,s=this;e=e||"child",null==t?t={title:""}:"string"==typeof t?t={title:t}:c.ui.fancytree.assert(c.isPlainObject(t)),"child"!==e||this.isExpanded()||!1===this.hasChildren()?((i=this.addNode(t,e)).match=!0,c(i[n.statusClassPropName]).removeClass("fancytree-hide").addClass("fancytree-match"),i.makeVisible().done(function(){c(i[n.statusClassPropName]).addClass("fancytree-edit-new"),s.tree.ext.edit.relatedNode=s,i.editStart()})):this.setExpanded().done(function(){s.editCreateNode(e,t)})},c.ui.fancytree._FancytreeClass.prototype.isEditing=function(){return this.ext.edit?this.ext.edit.currentNode:null},c.ui.fancytree._FancytreeNodeClass.prototype.isEditing=function(){return!!this.tree.ext.edit&&this.tree.ext.edit.currentNode===this},c.ui.fancytree.registerExtension({name:"edit",version:"2.27.0",options:{adjustWidthOfs:4,allowEmpty:!1,inputCss:{minWidth:"3em"},triggerStart:["f2","mac+enter","shift+click"],trim:!0,beforeClose:c.noop,beforeEdit:c.noop,close:c.noop,edit:c.noop,save:c.noop},currentNode:null,treeInit:function(e){this._superApply(arguments),this.$container.addClass("fancytree-ext-edit")},nodeClick:function(e){return 0<=c.inArray("shift+click",e.options.edit.triggerStart)&&e.originalEvent.shiftKey?(e.node.editStart(),!1):0<=c.inArray("clickActive",e.options.edit.triggerStart)&&e.node.isActive()&&!e.node.isEditing()&&c(e.originalEvent.target).hasClass("fancytree-title")?(e.node.editStart(),!1):this._superApply(arguments)},nodeDblclick:function(e){return 0<=c.inArray("dblclick",e.options.edit.triggerStart)?(e.node.editStart(),!1):this._superApply(arguments)},nodeKeydown:function(e){switch(e.originalEvent.which){case 113:if(0<=c.inArray("f2",e.options.edit.triggerStart))return e.node.editStart(),!1;break;case c.ui.keyCode.ENTER:if(0<=c.inArray("mac+enter",e.options.edit.triggerStart)&&t)return e.node.editStart(),!1}return this._superApply(arguments)}}),c.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(p){"use strict";var m="__not_found__",C=p.ui.fancytree.escapeHtml;function A(e){return(e+"").replace(/([.?*+\^\$\[\]\\(){}|-])/g,"\\$1")}return p.ui.fancytree._FancytreeClass.prototype._applyFilterImpl=function(n,s,e){var t,i,r,o,a,l=0,c=this.options,h=c.escapeTitles,u=c.autoCollapse,d=p.extend({},c.filter,e),g="hide"===d.mode,f=!!d.leavesOnly&&!s;if("string"==typeof n){if(""===n)return this.warn("Fancytree passing an empty string as a filter is handled as clearFilter()."),void this.clearFilter();t=d.fuzzy?n.split("").reduce(function(e,t){return e+"[^"+t+"]*"+t}):A(n),r=new RegExp(".*"+t+".*","i"),o=new RegExp(A(n),"gi"),n=function(e){var t,i=h?e.title:0<=(t=e.title).indexOf(">")?p("<div/>").html(t).text():t,n=!!r.test(i);return n&&d.highlight&&(e.titleWithHighlight=h?(a=i.replace(o,function(e){return""+e+""}),C(a).replace(/\uFFF7/g,"<mark>").replace(/\uFFF8/g,"</mark>")):i.replace(o,function(e){return"<mark>"+e+"</mark>"})),n}}return this.enableFilter=!0,this.lastFilterArgs=arguments,this.$div.addClass("fancytree-ext-filter"),g?this.$div.addClass("fancytree-ext-filter-hide"):this.$div.addClass("fancytree-ext-filter-dimm"),this.$div.toggleClass("fancytree-ext-filter-hide-expanders",!!d.hideExpanders),this.visit(function(e){delete e.match,delete e.titleWithHighlight,e.subMatchCount=0}),(i=this.getRootNode()._findDirectChild(m))&&i.remove(),c.autoCollapse=!1,this.visit(function(e){if(!f||null==e.children){var t=n(e),i=!1;if("skip"===t)return e.visit(function(e){e.match=!1},!0),"skip";t||!s&&"branch"!==t||!e.parent.match||(i=t=!0),t&&(l++,e.match=!0,e.visitParents(function(e){e.subMatchCount+=1,!d.autoExpand||i||e.expanded||(e.setExpanded(!0,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),e._filterAutoExpanded=!0)}))}}),c.autoCollapse=u,0===l&&d.nodata&&g&&(i=d.nodata,p.isFunction(i)&&(i=i()),!0===i?i={}:"string"==typeof i&&(i={title:i}),i=p.extend({statusNodeType:"nodata",key:m,title:this.options.strings.noData},i),this.getRootNode().addNode(i).match=!0),this.render(),l},p.ui.fancytree._FancytreeClass.prototype.filterNodes=function(e,t){return"boolean"==typeof t&&(t={leavesOnly:t},this.warn("Fancytree.filterNodes() leavesOnly option is deprecated since 2.9.0 / 2015-04-19. Use opts.leavesOnly instead.")),this._applyFilterImpl(e,!1,t)},p.ui.fancytree._FancytreeClass.prototype.applyFilter=function(e){return this.warn("Fancytree.applyFilter() is deprecated since 2.1.0 / 2014-05-29. Use .filterNodes() instead."),this.filterNodes.apply(this,arguments)},p.ui.fancytree._FancytreeClass.prototype.filterBranches=function(e,t){return this._applyFilterImpl(e,!0,t)},p.ui.fancytree._FancytreeClass.prototype.clearFilter=function(){var t,e=this.getRootNode()._findDirectChild(m),i=this.options.escapeTitles,n=this.options.enhanceTitle;e&&e.remove(),this.visit(function(e){e.match&&e.span&&(t=p(e.span).find(">span.fancytree-title"),i?t.text(e.title):t.html(e.title),n&&n({type:"enhanceTitle"},{node:e,$title:t})),delete e.match,delete e.subMatchCount,delete e.titleWithHighlight,e.$subMatchBadge&&(e.$subMatchBadge.remove(),delete e.$subMatchBadge),e._filterAutoExpanded&&e.expanded&&e.setExpanded(!1,{noAnimation:!0,noEvents:!0,scrollIntoView:!1}),delete e._filterAutoExpanded}),this.enableFilter=!1,this.lastFilterArgs=null,this.$div.removeClass("fancytree-ext-filter fancytree-ext-filter-dimm fancytree-ext-filter-hide"),this.render()},p.ui.fancytree._FancytreeClass.prototype.isFilterActive=function(){return!!this.enableFilter},p.ui.fancytree._FancytreeNodeClass.prototype.isMatched=function(){return!(this.tree.enableFilter&&!this.match)},p.ui.fancytree.registerExtension({name:"filter",version:"2.27.0",options:{autoApply:!0,autoExpand:!1,counter:!0,fuzzy:!1,hideExpandedCounter:!0,hideExpanders:!1,highlight:!0,leavesOnly:!1,nodata:!0,mode:"dimm"},nodeLoadChildren:function(e,t){return this._superApply(arguments).done(function(){e.tree.enableFilter&&e.tree.lastFilterArgs&&e.options.filter.autoApply&&e.tree._applyFilterImpl.apply(e.tree,e.tree.lastFilterArgs)})},nodeSetExpanded:function(e,t,i){return delete e.node._filterAutoExpanded,!t&&e.options.filter.hideExpandedCounter&&e.node.$subMatchBadge&&e.node.$subMatchBadge.show(),this._superApply(arguments)},nodeRenderStatus:function(e){var t,i=e.node,n=e.tree,s=e.options.filter,r=p(i.span).find("span.fancytree-title"),o=p(i[n.statusClassPropName]),a=e.options.enhanceTitle,l=e.options.escapeTitles;return t=this._super(e),o.length&&n.enableFilter&&(o.toggleClass("fancytree-match",!!i.match).toggleClass("fancytree-submatch",!!i.subMatchCount).toggleClass("fancytree-hide",!(i.match||i.subMatchCount)),!s.counter||!i.subMatchCount||i.isExpanded()&&s.hideExpandedCounter?i.$subMatchBadge&&i.$subMatchBadge.hide():(i.$subMatchBadge||(i.$subMatchBadge=p("<span class='fancytree-childcounter'/>"),p("span.fancytree-icon, span.fancytree-custom-icon",i.span).append(i.$subMatchBadge)),i.$subMatchBadge.show().text(i.subMatchCount)),!i.span||i.isEditing&&i.isEditing.call(i)||(i.titleWithHighlight?r.html(i.titleWithHighlight):l?r.text(i.title):r.html(i.title),a&&a({type:"enhanceTitle"},{node:i,$title:r}))),t}}),p.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(l){"use strict";var a=l.ui.fancytree,n={awesome3:{_addClass:"",checkbox:"icon-check-empty",checkboxSelected:"icon-check",checkboxUnknown:"icon-check icon-muted",dragHelper:"icon-caret-right",dropMarker:"icon-caret-right",error:"icon-exclamation-sign",expanderClosed:"icon-caret-right",expanderLazy:"icon-angle-right",expanderOpen:"icon-caret-down",loading:"icon-refresh icon-spin",nodata:"icon-meh",noExpander:"",radio:"icon-circle-blank",radioSelected:"icon-circle",doc:"icon-file-alt",docOpen:"icon-file-alt",folder:"icon-folder-close-alt",folderOpen:"icon-folder-open-alt"},awesome4:{_addClass:"fa",checkbox:"fa-square-o",checkboxSelected:"fa-check-square-o",checkboxUnknown:"fa-square",dragHelper:"fa-arrow-right",dropMarker:"fa-long-arrow-right",error:"fa-warning",expanderClosed:"fa-caret-right",expanderLazy:"fa-angle-right",expanderOpen:"fa-caret-down",loading:"fa-spinner fa-pulse",nodata:"fa-meh-o",noExpander:"",radio:"fa-circle-thin",radioSelected:"fa-circle",doc:"fa-file-o",docOpen:"fa-file-o",folder:"fa-folder-o",folderOpen:"fa-folder-open-o"},bootstrap3:{_addClass:"glyphicon",checkbox:"glyphicon-unchecked",checkboxSelected:"glyphicon-check",checkboxUnknown:"glyphicon-expand",dragHelper:"glyphicon-play",dropMarker:"glyphicon-arrow-right",error:"glyphicon-warning-sign",expanderClosed:"glyphicon-menu-right",expanderLazy:"glyphicon-menu-right",expanderOpen:"glyphicon-menu-down",loading:"glyphicon-refresh glyphicon-spin",nodata:"glyphicon-info-sign",noExpander:"",radio:"glyphicon-remove-circle",radioSelected:"glyphicon-ok-circle",doc:"glyphicon-file",docOpen:"glyphicon-file",folder:"glyphicon-folder-close",folderOpen:"glyphicon-folder-open"},material:{_addClass:"material-icons",checkbox:{text:"check_box_outline_blank"},checkboxSelected:{text:"check_box"},checkboxUnknown:{text:"indeterminate_check_box"},dragHelper:{text:"play_arrow"},dropMarker:{text:"arrow-forward"},error:{text:"warning"},expanderClosed:{text:"chevron_right"},expanderLazy:{text:"last_page"},expanderOpen:{text:"expand_more"},loading:{text:"autorenew",addClass:"glyphicon-spin"},nodata:{text:"info"},noExpander:{text:""},radio:{text:"radio_button_unchecked"},radioSelected:{text:"radio_button_checked"},doc:{text:"insert_drive_file"},docOpen:{text:"insert_drive_file"},folder:{text:"folder"},folderOpen:{text:"folder_open"}}};function c(e,t,i,n){var s=i.map,r=s[n],o=l(e),a=t+" "+(s._addClass||"");"string"==typeof r?o.attr("class",a+" "+r):(r.text&&o.text(""+r.text),o.attr("class",a+" "+(r.addClass||"")))}return l.ui.fancytree.registerExtension({name:"glyph",version:"2.27.0",options:{preset:null,map:{}},treeInit:function(e){var t=e.tree,i=e.options.glyph;i.preset?(a.assert(!!n[i.preset],"Invalid value for `options.glyph.preset`: "+i.preset),i.map=l.extend({},n[i.preset],i.map)):t.warn("ext-glyph: missing `preset` option."),this._superApply(arguments),t.$container.addClass("fancytree-ext-glyph")},nodeRenderStatus:function(e){var t,i,n,s=e.node,r=l(s.span),o=e.options.glyph;return i=this._super(e),s.isRoot()||((n=r.children("span.fancytree-expander").get(0))&&c(n,"fancytree-expander",o,s.expanded&&s.hasChildren()?"expanderOpen":s.isUndefined()?"expanderLazy":s.hasChildren()?"expanderClosed":"noExpander"),(n=s.tr?l("td",s.tr).find("span.fancytree-checkbox").get(0):r.children("span.fancytree-checkbox").get(0))&&(t=a.evalOption("checkbox",s,s,o,!1),s.parent&&s.parent.radiogroup||"radio"===t?c(n,"fancytree-checkbox fancytree-radio",o,s.selected?"radioSelected":"radio"):c(n,"fancytree-checkbox",o,s.selected?"checkboxSelected":s.partsel?"checkboxUnknown":"checkbox")),(n=r.children("span.fancytree-icon").get(0))&&c(n,"fancytree-icon",o,s.statusNodeType?s.statusNodeType:s.folder?s.expanded&&s.hasChildren()?"folderOpen":"folder":s.expanded?"docOpen":"doc")),i},nodeSetStatus:function(e,t,i,n){var s,r,o=e.options.glyph,a=e.node;return s=this._superApply(arguments),"error"!==t&&"loading"!==t&&"nodata"!==t||(a.parent?(r=l("span.fancytree-expander",a.span).get(0))&&c(r,"fancytree-expander",o,t):(r=l(".fancytree-statusnode-"+t,a[this.nodeContainerAttrName]).find("span.fancytree-icon").get(0))&&c(r,"fancytree-icon",o,t)),s}}),l.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree","./jquery.fancytree.table"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree.table"),module.exports=e(require("jquery"))):e(jQuery)}(function(h){"use strict";var u=h.ui.keyCode,a={text:[u.UP,u.DOWN],checkbox:[u.UP,u.DOWN,u.LEFT,u.RIGHT],link:[u.UP,u.DOWN,u.LEFT,u.RIGHT],radiobutton:[u.UP,u.DOWN,u.LEFT,u.RIGHT],"select-one":[u.LEFT,u.RIGHT],"select-multiple":[u.LEFT,u.RIGHT]};function d(e,t){var i,n=null,s=0;return e.children().each(function(){if(t<=s)return n=h(this),!1;i=h(this).prop("colspan"),s+=i||1}),n}function l(e,t){var i,n,s,r,o,a,l=e.closest("td"),c=null;switch(t){case u.LEFT:c=l.prev();break;case u.RIGHT:c=l.next();break;case u.UP:case u.DOWN:for(i=l.parent(),s=i,o=l.get(0),a=0,s.children().each(function(){if(this===o)return!1;r=h(this).prop("colspan"),a+=r||1}),n=a;(i=t===u.UP?i.prev():i.next()).length&&(i.is(":hidden")||!(c=d(i,n))||!c.find(":input,a").length););}return c}return h.ui.fancytree.registerExtension({name:"gridnav",version:"2.27.0",options:{autofocusInput:!1,handleCursorKeys:!0},treeInit:function(n){this._requireExtension("table",!0,!0),this._superApply(arguments),this.$container.addClass("fancytree-ext-gridnav"),this.$container.on("focusin",function(e){var t,i=h.ui.fancytree.getNode(e.target);i&&!i.isActive()&&(t=n.tree._makeHookContext(i,e),n.tree._callHook("nodeSetActive",t,!0))})},nodeSetActive:function(e,t,i){var n=e.options.gridnav,s=e.node,r=e.originalEvent||{},o=h(r.target).is(":input");t=!1!==t,this._superApply(arguments),t&&(e.options.titlesTabbable?(o||(h(s.span).find("span.fancytree-title").focus(),s.setFocus()),e.tree.$container.attr("tabindex","-1")):n.autofocusInput&&!o&&h(s.tr||s.span).find(":input:enabled:first").focus())},nodeKeydown:function(e){var t,i,n,s=e.options.gridnav,r=e.originalEvent,o=h(r.target);return o.is(":input:enabled")?t=o.prop("type"):o.is("a")&&(t="link"),t&&s.handleCursorKeys?!((i=a[t])&&0<=h.inArray(r.which,i)&&(n=l(o,r.which))&&n.length)||(n.find(":input:enabled,a").focus(),!1):this._superApply(arguments)}}),h.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(f){"use strict";var t=null,i=window.localStorage?{get:function(e){return window.localStorage.getItem(e)},set:function(e,t){window.localStorage.setItem(e,t)},remove:function(e){window.localStorage.removeItem(e)}}:null,n=window.sessionStorage?{get:function(e){return window.sessionStorage.getItem(e)},set:function(e,t){window.sessionStorage.setItem(e,t)},remove:function(e){window.sessionStorage.removeItem(e)}}:null,s=f.ui.fancytree.assert,u="active",p="expanded",d="focus",g="selected";return"function"==typeof Cookies?t={get:Cookies.get,set:function(e,t){Cookies.set(e,t,this.options.persist.cookie)},remove:Cookies.remove}:f&&"function"==typeof f.cookie&&(t={get:f.cookie,set:function(e,t){f.cookie.set(e,t,this.options.persist.cookie)},remove:f.removeCookie}),f.ui.fancytree._FancytreeClass.prototype.clearData=function(e){var t=this.ext.persist,i=t.cookiePrefix;0<=(e=e||"active expanded focus selected").indexOf(u)&&t._data(i+u,null),0<=e.indexOf(p)&&t._data(i+p,null),0<=e.indexOf(d)&&t._data(i+d,null),0<=e.indexOf(g)&&t._data(i+g,null)},f.ui.fancytree._FancytreeClass.prototype.clearCookies=function(e){return this.warn("'tree.clearCookies()' is deprecated since v2.27.0: use 'clearData()' instead."),this.clearData(e)},f.ui.fancytree._FancytreeClass.prototype.getPersistData=function(){var e=this.ext.persist,t=e.cookiePrefix,i=e.cookieDelimiter,n={};return n[u]=e._data(t+u),n[p]=(e._data(t+p)||"").split(i),n[g]=(e._data(t+g)||"").split(i),n[d]=e._data(t+d),n},f.ui.fancytree.registerExtension({name:"persist",version:"2.27.0",options:{cookieDelimiter:"~",cookiePrefix:void 0,cookie:{raw:!1,expires:"",path:"",domain:"",secure:!1},expandLazy:!1,expandOpts:void 0,fireActivate:!0,overrideSource:!0,store:"auto",types:"active expanded focus selected"},_data:function(e,t){var i=this._local.store;if(void 0===t)return i.get.call(this,e);null===t?i.remove.call(this,e):i.set.call(this,e,t)},_appendKey:function(e,t,i){t=""+t;var n=this._local,s=this.options.persist.cookieDelimiter,r=n.cookiePrefix+e,o=n._data(r),a=o?o.split(s):[],l=f.inArray(t,a);0<=l&&a.splice(l,1),i&&a.push(t),n._data(r,a.join(s))},treeInit:function(e){var a=e.tree,l=e.options,c=this._local,h=this.options.persist;return c.cookiePrefix=h.cookiePrefix||"fancytree-"+a._id+"-",c.storeActive=0<=h.types.indexOf(u),c.storeExpanded=0<=h.types.indexOf(p),c.storeSelected=0<=h.types.indexOf(g),c.storeFocus=0<=h.types.indexOf(d),c.store=null,"auto"===h.store&&(h.store=i?"local":"cookie"),f.isPlainObject(h.store)?c.store=h.store:"cookie"===h.store?c.store=t:"local"===h.store?c.store="local"===h.store?i:n:"session"===h.store&&(c.store="local"===h.store?i:n),s(c.store,"Need a valid store."),a.$div.on("fancytreeinit",function(e){if(!1!==a._triggerTreeEvent("beforeRestore",null,{})){var t,i,n,s,r=c._data(c.cookiePrefix+d),o=!1===h.fireActivate;t=c._data(c.cookiePrefix+p),n=t&&t.split(h.cookieDelimiter),(c.storeExpanded?function e(t,i,n,s,r){var o,a,l,c,h=!1,u=t.options.persist.expandOpts,d=[],g=[];for(n=n||[],r=r||f.Deferred(),o=0,l=n.length;o<l;o++)a=n[o],(c=t.getNodeByKey(a))?s&&c.isUndefined()?(h=!0,t.debug("_loadLazyNodes: "+c+" is lazy: loading..."),"expand"===s?d.push(c.setExpanded(!0,u)):d.push(c.load())):(t.debug("_loadLazyNodes: "+c+" already loaded."),c.setExpanded(!0,u)):(g.push(a),t.debug("_loadLazyNodes: "+c+" was not yet found."));return f.when.apply(f,d).always(function(){if(h&&0<g.length)e(t,i,g,s,r);else{if(g.length)for(t.warn("_loadLazyNodes: could not load those keys: ",g),o=0,l=g.length;o<l;o++)a=n[o],i._appendKey(p,n[o],!1);r.resolve()}}),r}(a,c,n,!!h.expandLazy&&"expand",null):(new f.Deferred).resolve()).done(function(){if(c.storeSelected){if(t=c._data(c.cookiePrefix+g))for(n=t.split(h.cookieDelimiter),i=0;i<n.length;i++)(s=a.getNodeByKey(n[i]))?(void 0===s.selected||h.overrideSource&&!1===s.selected)&&(s.selected=!0,s.renderStatus()):c._appendKey(g,n[i],!1);3===a.options.selectMode&&a.visit(function(e){if(e.selected)return e.fixSelection3AfterClick(),"skip"})}c.storeActive&&(!(t=c._data(c.cookiePrefix+u))||!l.persist.overrideSource&&a.activeNode||(s=a.getNodeByKey(t))&&(s.debug("persist: set active",t),s.setActive(!0,{noFocus:!0,noEvents:o}))),c.storeFocus&&r&&(s=a.getNodeByKey(r))&&(a.options.titlesTabbable?f(s.span).find(".fancytree-title").focus():f(a.$container).focus()),a._triggerTreeEvent("restore",null,{})})}}),this._superApply(arguments)},nodeSetActive:function(e,t,i){var n,s=this._local;return t=!1!==t,n=this._superApply(arguments),s.storeActive&&s._data(s.cookiePrefix+u,this.activeNode?this.activeNode.key:null),n},nodeSetExpanded:function(e,t,i){var n,s=e.node,r=this._local;return t=!1!==t,n=this._superApply(arguments),r.storeExpanded&&r._appendKey(p,s.key,t),n},nodeSetFocus:function(e,t){var i,n=this._local;return t=!1!==t,i=this._superApply(arguments),n.storeFocus&&n._data(n.cookiePrefix+d,this.focusNode?this.focusNode.key:null),i},nodeSetSelected:function(e,t,i){var n,s,r=e.tree,o=e.node,a=this._local;return t=!1!==t,n=this._superApply(arguments),a.storeSelected&&(3===r.options.selectMode?(s=(s=f.map(r.getSelectedNodes(!0),function(e){return e.key})).join(e.options.persist.cookieDelimiter),a._data(a.cookiePrefix+g,s)):a._appendKey(g,o.key,o.selected)),n}}),f.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(y){"use strict";function I(e,t){t=t||"",e||y.error("Assertion failed "+t)}function w(e,i){e.visit(function(e){var t=e.tr;if(t&&(t.style.display=e.hide||!i?"none":""),!e.expanded)return"skip"})}return y.ui.fancytree.registerExtension({name:"table",version:"2.27.0",options:{checkboxColumnIdx:null,indentation:16,nodeColumnIdx:0},treeInit:function(e){var t,i,n,s,r,o=e.tree,a=e.options,l=a.table,c=o.widget.element;if(null!=l.customStatus&&(null!=a.renderStatusColumns?y.error("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' only instead."):(o.warn("The 'customStatus' option is deprecated since v2.15.0. Use 'renderStatusColumns' instead."),a.renderStatusColumns=l.customStatus)),a.renderStatusColumns&&!0===a.renderStatusColumns&&(a.renderStatusColumns=a.renderColumns),c.addClass("fancytree-container fancytree-ext-table"),(r=c.find(">tbody")).length||(c.find(">tr").length&&y.error("Expected table > tbody > tr. If you see this please open an issue."),r=y("<tbody>").appendTo(c)),o.tbody=r[0],i=y("thead >tr:last >th",c).length,(s=r.children("tr:first")).length)n=s.children("td").length,i&&n!==i&&(o.warn("Column count mismatch between thead ("+i+") and tbody ("+n+"): using tbody."),i=n),s=s.clone();else for(I(1<=i,"Need either <thead> or <tbody> with <td> elements to determine column count."),s=y("<tr />"),t=0;t<i;t++)s.append("<td />");s.find(">td").eq(l.nodeColumnIdx).html("<span class='fancytree-node' />"),a.aria&&(s.attr("role","row"),s.find("td").attr("role","gridcell")),o.rowFragment=document.createDocumentFragment(),o.rowFragment.appendChild(s.get(0)),r.empty(),o.statusClassPropName="tr",o.ariaPropName="tr",this.nodeContainerAttrName="tr",o.$container=c,this._superApply(arguments),y(o.rootNode.ul).remove(),o.rootNode.ul=null,this.$container.attr("tabindex",a.tabindex),a.aria&&o.$container.attr("role","treegrid").attr("aria-readonly",!0)},nodeRemoveChildMarkup:function(e){e.node.visit(function(e){e.tr&&(y(e.tr).remove(),e.tr=null)})},nodeRemoveMarkup:function(e){var t=e.node;t.tr&&(y(t.tr).remove(),t.tr=null),this.nodeRemoveChildMarkup(e)},nodeRender:function(e,t,i,n,s){var r,o,a,l,c,h,u,d,g=e.tree,f=e.node,p=e.options,m=!f.parent;if(!1!==g._enableUpdate){if(s||(e.hasCollapsedParents=f.parent&&!f.parent.expanded),!m)if(f.tr&&t&&this.nodeRemoveMarkup(e),f.tr)t?this.nodeRenderTitle(e):this.nodeRenderStatus(e);else{if(e.hasCollapsedParents&&!i)return;c=g.rowFragment.firstChild.cloneNode(!0),I(h=function(e){var t,i,n=e.parent,s=n?n.children:null;if(s&&1<s.length&&s[0]!==e)for(I((i=s[y.inArray(e,s)-1]).tr);i.children&&i.children.length&&(t=i.children[i.children.length-1]).tr;)i=t;else i=n;return i}(f)),!0===n&&s?c.style.display="none":i&&e.hasCollapsedParents&&(c.style.display="none"),h.tr?(C=h.tr,A=c,C.parentNode.insertBefore(A,C.nextSibling)):(I(!h.parent,"prev. row must have a tr, or be system root"),v=g.tbody,b=c,v.insertBefore(b,v.firstChild)),f.tr=c,f.key&&p.generateIds&&(f.tr.id=p.idPrefix+f.key),(f.tr.ftnode=f).span=y("span.fancytree-node",f.tr).get(0),this.nodeRenderTitle(e),p.createNode&&p.createNode.call(g,{type:"createNode"},e)}var C,A,v,b;if(p.renderNode&&p.renderNode.call(g,{type:"renderNode"},e),(r=f.children)&&(m||i||f.expanded))for(a=0,l=r.length;a<l;a++)(d=y.extend({},e,{node:r[a]})).hasCollapsedParents=d.hasCollapsedParents||!f.expanded,this.nodeRender(d,t,i,n,!0);r&&!s&&(u=f.tr||null,o=g.tbody.firstChild,f.visit(function(e){if(e.tr){if(e.parent.expanded||"none"===e.tr.style.display||(e.tr.style.display="none",w(e,!1)),e.tr.previousSibling!==u){f.debug("_fixOrder: mismatch at node: "+e);var t=u?u.nextSibling:o;g.tbody.insertBefore(e.tr,t)}u=e.tr}}))}},nodeRenderTitle:function(e,t){var i,n,s=e.node,r=e.options,o=s.isStatusNode();return n=this._super(e,t),s.isRootNode()||(r.checkbox&&!o&&null!=r.table.checkboxColumnIdx&&(i=y("span.fancytree-checkbox",s.span),y(s.tr).find("td").eq(+r.table.checkboxColumnIdx).html(i)),this.nodeRenderStatus(e),o?r.renderStatusColumns&&r.renderStatusColumns.call(e.tree,{type:"renderStatusColumns"},e):r.renderColumns&&r.renderColumns.call(e.tree,{type:"renderColumns"},e)),n},nodeRenderStatus:function(e){var t,i=e.node,n=e.options;this._super(e),y(i.tr).removeClass("fancytree-node"),t=(i.getLevel()-1)*n.table.indentation,y(i.span).css({paddingLeft:t+"px"})},nodeSetExpanded:function(t,i,n){if(i=!1!==i,t.node.expanded&&i||!t.node.expanded&&!i)return this._superApply(arguments);var s=new y.Deferred,e=y.extend({},n,{noEvents:!0,noAnimation:!0});function r(e){w(t.node,i),e?i&&t.options.autoScroll&&!n.noAnimation&&t.node.hasChildren()?t.node.getLastChild().scrollIntoView(!0,{topNode:t.node}).always(function(){n.noEvents||t.tree._triggerNodeEvent(i?"expand":"collapse",t),s.resolveWith(t.node)}):(n.noEvents||t.tree._triggerNodeEvent(i?"expand":"collapse",t),s.resolveWith(t.node)):(n.noEvents||t.tree._triggerNodeEvent(i?"expand":"collapse",t),s.rejectWith(t.node))}return n=n||{},this._super(t,i,e).done(function(){r(!0)}).fail(function(){r(!1)}),s.promise()},nodeSetStatus:function(e,t,i,n){if("ok"===t){var s=e.node,r=s.children?s.children[0]:null;r&&r.isStatusNode()&&y(r.tr).remove()}return this._superApply(arguments)},treeClear:function(e){return this.nodeRemoveChildMarkup(this._makeHookContext(this.rootNode)),this._superApply(arguments)},treeDestroy:function(e){return this.$container.find("tbody").empty(),this.$source&&this.$source.removeClass("ui-helper-hidden"),this._superApply(arguments)}}),y.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(r){"use strict";return r.ui.fancytree.registerExtension({name:"themeroller",version:"2.27.0",options:{activeClass:"ui-state-active",addClass:"ui-corner-all",focusClass:"ui-state-focus",hoverClass:"ui-state-hover",selectedClass:"ui-state-highlight"},treeInit:function(e){var t=e.widget.element,n=e.options.themeroller;this._superApply(arguments),"TABLE"===t[0].nodeName?(t.addClass("ui-widget ui-corner-all"),t.find(">thead tr").addClass("ui-widget-header"),t.find(">tbody").addClass("ui-widget-conent")):t.addClass("ui-widget ui-widget-content ui-corner-all"),t.delegate(".fancytree-node","mouseenter mouseleave",function(e){var t=r.ui.fancytree.getNode(e.target),i="mouseenter"===e.type;r(t.tr?t.tr:t.span).toggleClass(n.hoverClass+" "+n.addClass,i)})},treeDestroy:function(e){this._superApply(arguments),e.widget.element.removeClass("ui-widget ui-widget-content ui-corner-all")},nodeRenderStatus:function(e){var t={},i=e.node,n=r(i.tr?i.tr:i.span),s=e.options.themeroller;this._super(e),t[s.activeClass]=!1,t[s.focusClass]=!1,t[s.selectedClass]=!1,i.isActive()&&(t[s.activeClass]=!0),i.hasFocus()&&(t[s.focusClass]=!0),i.isSelected()&&!i.isActive()&&(t[s.selectedClass]=!0),n.toggleClass(s.activeClass,t[s.activeClass]),n.toggleClass(s.focusClass,t[s.focusClass]),n.toggleClass(s.selectedClass,t[s.selectedClass]),n.addClass(s.addClass)}}),r.ui.fancytree}),function(e){"function"==typeof define&&define.amd?define(["jquery","./jquery.fancytree"],e):"object"==typeof module&&module.exports?(require("./jquery.fancytree"),module.exports=e(require("jquery"))):e(jQuery)}(function(f){"use strict";var p=/^([+-]?(?:\d+|\d*\.\d+))([a-z]*|%)$/;function m(e,t){var i=f("#"+(e="fancytree-style-"+e));if(!t)return i.remove(),null;i.length||(i=f("<style />").attr("id",e).addClass("fancytree-style").prop("type","text/css").appendTo("head"));try{i.html(t)}catch(e){i[0].styleSheet.cssText=t}return i}function C(e,t,i,n,s,r){var o,a="#"+e+" span.fancytree-level-",l=[];for(o=0;o<t;o++)l.push(a+(o+1)+" span.fancytree-title { padding-left: "+(o*i+n)+r+"; }");return l.push("#"+e+" div.ui-effects-wrapper ul li span.fancytree-title, #"+e+" li.fancytree-animating span.fancytree-title { padding-left: "+s+r+"; position: static; width: auto; }"),l.join("\n")}return f.ui.fancytree.registerExtension({name:"wide",version:"2.27.0",options:{iconWidth:null,iconSpacing:null,labelSpacing:null,levelOfs:null},treeCreate:function(e){this._superApply(arguments),this.$container.addClass("fancytree-ext-wide");var t,i,n,s,r,o=e.options.wide,a=f("<li id='fancytreeTemp'><span class='fancytree-node'><span class='fancytree-icon' /><span class='fancytree-title' /></span><ul />").appendTo(e.tree.$container),l=a.find(".fancytree-icon"),c=a.find("ul"),h=o.iconSpacing||l.css("margin-left"),u=o.iconWidth||l.css("width"),d=o.labelSpacing||"3px",g=o.levelOfs||c.css("padding-left");a.remove(),i=h.match(p)[2],h=parseFloat(h,10),n=d.match(p)[2],d=parseFloat(d,10),s=u.match(p)[2],u=parseFloat(u,10),r=g.match(p)[2],i===s&&r===s&&n===s||f.error("iconWidth, iconSpacing, and levelOfs must have the same css measure unit"),this._local.measureUnit=s,this._local.levelOfs=parseFloat(g),this._local.lineOfs=(1+(e.options.checkbox?1:0)+(!1===e.options.icon?0:1))*(u+h)+h,this._local.labelOfs=d,this._local.maxDepth=10,m(t=this.$container.uniqueId().attr("id"),C(t,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelOfs,this._local.measureUnit))},treeDestroy:function(e){return m(this.$container.attr("id"),null),this._superApply(arguments)},nodeRenderStatus:function(e){var t,i,n=e.node,s=n.getLevel();return i=this._super(e),s>this._local.maxDepth&&(t=this.$container.attr("id"),this._local.maxDepth*=2,n.debug("Define global ext-wide css up to level "+this._local.maxDepth),m(t,C(t,this._local.maxDepth,this._local.levelOfs,this._local.lineOfs,this._local.labelSpacing,this._local.measureUnit))),f(n.span).addClass("fancytree-level-"+s),i}}),f.ui.fancytree}),function(o){var s,r,t;s=function(){function e(e,t,i){var n;this.row=e,this.tree=t,this.settings=i,this.id=this.row.data(this.settings.nodeIdAttr),null!=(n=this.row.data(this.settings.parentIdAttr))&&""!==n&&(this.parentId=n),this.treeCell=o(this.row.children(this.settings.columnElType)[this.settings.column]),this.expander=o(this.settings.expanderTemplate),this.indenter=o(this.settings.indenterTemplate),this.children=[],this.initialized=!1,this.treeCell.prepend(this.indenter)}return e.prototype.addChild=function(e){return this.children.push(e)},e.prototype.ancestors=function(){var e,t;for(t=this,e=[];t=t.parentNode();)e.push(t);return e},e.prototype.collapse=function(){return this.collapsed()||(this.row.removeClass("expanded").addClass("collapsed"),this._hideChildren(),this.expander.attr("title",this.settings.stringExpand),this.initialized&&null!=this.settings.onNodeCollapse&&this.settings.onNodeCollapse.apply(this)),this},e.prototype.collapsed=function(){return this.row.hasClass("collapsed")},e.prototype.expand=function(){return this.expanded()||(this.row.removeClass("collapsed").addClass("expanded"),this.initialized&&null!=this.settings.onNodeExpand&&this.settings.onNodeExpand.apply(this),o(this.row).is(":visible")&&this._showChildren(),this.expander.attr("title",this.settings.stringCollapse)),this},e.prototype.expanded=function(){return this.row.hasClass("expanded")},e.prototype.hide=function(){return this._hideChildren(),this.row.hide(),this},e.prototype.isBranchNode=function(){return 0<this.children.length||!0===this.row.data(this.settings.branchAttr)},e.prototype.updateBranchLeafClass=function(){this.row.removeClass("branch"),this.row.removeClass("leaf"),this.row.addClass(this.isBranchNode()?"branch":"leaf")},e.prototype.level=function(){return this.ancestors().length},e.prototype.parentNode=function(){return null!=this.parentId?this.tree[this.parentId]:null},e.prototype.removeChild=function(e){var t=o.inArray(e,this.children);return this.children.splice(t,1)},e.prototype.render=function(){var t,e,i=this.settings;return!0===i.expandable&&this.isBranchNode()&&(t=function(e){return o(this).parents("table").treetable("node",o(this).parents("tr").data(i.nodeIdAttr)).toggle(),e.preventDefault()},this.indenter.html(this.expander),(e=!0===i.clickableNodeNames?this.treeCell:this.expander).off("click.treetable").on("click.treetable",t),e.off("keydown.treetable").on("keydown.treetable",function(e){13==e.keyCode&&t.apply(this,[e])})),this.indenter[0].style.marginLeft=this.level()*i.indent+"px",this},e.prototype.reveal=function(){return null!=this.parentId&&this.parentNode().reveal(),this.expand()},e.prototype.setParent=function(e){return null!=this.parentId&&this.tree[this.parentId].removeChild(this),this.parentId=e.id,this.row.data(this.settings.parentIdAttr,e.id),e.addChild(this)},e.prototype.show=function(){return this.initialized||this._initialize(),this.row.show(),this.expanded()&&this._showChildren(),this},e.prototype.toggle=function(){return this.expanded()?this.collapse():this.expand(),this},e.prototype._hideChildren=function(){var e,t,i,n,s;for(s=[],t=0,i=(n=this.children).length;t<i;t++)e=n[t],s.push(e.hide());return s},e.prototype._initialize=function(){var e=this.settings;return this.render(),!0===e.expandable&&"collapsed"===e.initialState?this.collapse():this.expand(),null!=e.onNodeInitialized&&e.onNodeInitialized.apply(this),this.initialized=!0},e.prototype._showChildren=function(){var e,t,i,n,s;for(s=[],t=0,i=(n=this.children).length;t<i;t++)e=n[t],s.push(e.show());return s},e}(),r=function(){function e(e,t){this.table=e,this.settings=t,this.tree={},this.nodes=[],this.roots=[]}return e.prototype.collapseAll=function(){var e,t,i,n,s;for(s=[],t=0,i=(n=this.nodes).length;t<i;t++)e=n[t],s.push(e.collapse());return s},e.prototype.expandAll=function(){var e,t,i,n,s;for(s=[],t=0,i=(n=this.nodes).length;t<i;t++)e=n[t],s.push(e.expand());return s},e.prototype.findLastNode=function(e){return 0<e.children.length?this.findLastNode(e.children[e.children.length-1]):e},e.prototype.loadRows=function(e){var t,i,n;if(null!=e)for(n=0;n<e.length;n++)null!=(i=o(e[n])).data(this.settings.nodeIdAttr)&&(t=new s(i,this.tree,this.settings),this.nodes.push(t),null!=(this.tree[t.id]=t).parentId&&this.tree[t.parentId]?this.tree[t.parentId].addChild(t):this.roots.push(t));for(n=0;n<this.nodes.length;n++)t=this.nodes[n].updateBranchLeafClass();return this},e.prototype.move=function(e,t){var i=e.parentNode();return e!==t&&t.id!==e.parentId&&-1===o.inArray(e,t.ancestors())&&(e.setParent(t),this._moveRows(e,t),1===e.parentNode().children.length&&e.parentNode().render()),i&&i.updateBranchLeafClass(),e.parentNode()&&e.parentNode().updateBranchLeafClass(),e.updateBranchLeafClass(),this},e.prototype.removeNode=function(e){return this.unloadBranch(e),e.row.remove(),null!=e.parentId&&e.parentNode().removeChild(e),delete this.tree[e.id],this.nodes.splice(o.inArray(e,this.nodes),1),this},e.prototype.render=function(){var e,t,i;for(e=0,t=(i=this.roots).length;e<t;e++)i[e].show();return this},e.prototype.sortBranch=function(e,t){return e.children.sort(t),this._sortChildRows(e),this},e.prototype.unloadBranch=function(e){var t,i=e.children.slice(0);for(t=0;t<i.length;t++)this.removeNode(i[t]);return e.children=[],e.updateBranchLeafClass(),this},e.prototype._moveRows=function(e,t){var i,n=e.children;for(e.row.insertAfter(t.row),e.render(),i=n.length-1;0<=i;i--)this._moveRows(n[i],e)},e.prototype._sortChildRows=function(e){return this._moveRows(e,e)},e}(),t={init:function(e,i){var n;return n=o.extend({branchAttr:"ttBranch",clickableNodeNames:!1,column:0,columnElType:"td",expandable:!1,expanderTemplate:"<a href='#'>&nbsp;</a>",indent:19,indenterTemplate:"<span class='indenter'></span>",initialState:"collapsed",nodeIdAttr:"ttId",parentIdAttr:"ttParentId",stringExpand:"Expand",stringCollapse:"Collapse",onInitialized:null,onNodeCollapse:null,onNodeExpand:null,onNodeInitialized:null},e),this.each(function(){var e,t=o(this);return(i||void 0===t.data("treetable"))&&((e=new r(this,n)).loadRows(this.rows).render(),t.addClass("treetable").data("treetable",e),null!=n.onInitialized&&n.onInitialized.apply(e)),t})},destroy:function(){return this.each(function(){return o(this).removeData("treetable").removeClass("treetable")})},collapseAll:function(){return this.data("treetable").collapseAll(),this},collapseNode:function(e){var t=this.data("treetable").tree[e];if(!t)throw new Error("Unknown node '"+e+"'");return t.collapse(),this},expandAll:function(){return this.data("treetable").expandAll(),this},expandNode:function(e){var t=this.data("treetable").tree[e];if(!t)throw new Error("Unknown node '"+e+"'");return t.initialized||t._initialize(),t.expand(),this},loadBranch:function(e,t){var i=this.data("treetable").settings,n=this.data("treetable").tree;if(t=o(t),null==e)this.append(t);else{var s=this.data("treetable").findLastNode(e);t.insertAfter(s.row)}return this.data("treetable").loadRows(t),t.filter("tr").each(function(){n[o(this).data(i.nodeIdAttr)].show()}),null!=e&&e.render().expand(),this},move:function(e,t){var i,n;return n=this.data("treetable").tree[e],i=this.data("treetable").tree[t],this.data("treetable").move(n,i),this},node:function(e){return this.data("treetable").tree[e]},removeNode:function(e){var t=this.data("treetable").tree[e];if(!t)throw new Error("Unknown node '"+e+"'");return this.data("treetable").removeNode(t),this},reveal:function(e){var t=this.data("treetable").tree[e];if(!t)throw new Error("Unknown node '"+e+"'");return t.reveal(),this},sortBranch:function(e,r){var t,i=this.data("treetable").settings;return t=r=r||i.column,o.isNumeric(r)&&(t=function(e,t){var i,n,s;return(n=(i=function(e){var t=e.row.find("td:eq("+r+")").text();return o.trim(t).toUpperCase()})(e))<(s=i(t))?-1:s<n?1:0}),this.data("treetable").sortBranch(e,t),this},unloadBranch:function(e){return this.data("treetable").unloadBranch(e),this}},o.fn.treetable=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?o.error("Method "+e+" does not exist on jQuery.treetable"):t.init.apply(this,arguments)},this.TreeTable||(this.TreeTable={}),this.TreeTable.Node=s,this.TreeTable.Tree=r}(jQuery),function(e){function t(e,t){if(!(1<e.originalEvent.touches.length)){e.preventDefault();var i=e.originalEvent.changedTouches[0],n=document.createEvent("MouseEvents");n.initMouseEvent(t,!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(n)}}if(e.support.touch="ontouchend"in document,e.support.touch){var i,n=e.ui.mouse.prototype,s=n._mouseInit,r=n._mouseDestroy;n._touchStart=function(e){!i&&this._mouseCapture(e.originalEvent.changedTouches[0])&&(i=!0,this._touchMoved=!1,t(e,"mouseover"),t(e,"mousemove"),t(e,"mousedown"))},n._touchMove=function(e){i&&(this._touchMoved=!0,t(e,"mousemove"))},n._touchEnd=function(e){i&&(t(e,"mouseup"),t(e,"mouseout"),this._touchMoved||t(e,"click"),i=!1)},n._mouseInit=function(){this.element.bind({touchstart:e.proxy(this,"_touchStart"),touchmove:e.proxy(this,"_touchMove"),touchend:e.proxy(this,"_touchEnd")}),s.call(this)},n._mouseDestroy=function(){this.element.unbind({touchstart:e.proxy(this,"_touchStart"),touchmove:e.proxy(this,"_touchMove"),touchend:e.proxy(this,"_touchEnd")}),r.call(this)}}}(jQuery);var addAll2FilterCombobox=!1;function tdp(e,t){return isNaN(e)?"":e.toFixed(t||0).replace(".",",").replace(/\B(?=(\d{3})+(?!\d))/g,".")}function removeImageFromSettings(e){if(e&&e.columns){var t=e.columns.indexOf("image");0<=t&&e.columns.splice(t,1)}}var lineIndent="5px";function span(e,t){var i="padding-left: "+lineIndent+";";return t&&(i+=t),'<span style="'+i+'">'+e+"</span>"}function filterChanged(e){var t=$(e),i=t.val(),n=t.parent();i?n.addClass("filter-active"):n.removeClass("filter-active")}!function(P){"use strict";if(!P.fn.selectId){var j,t={init:function(e){j="undefined"!=typeof M;var t=P.extend({currentId:"",objects:null,states:null,filter:null,imgPath:"lib/css/fancytree/",connCfg:null,onSuccess:null,onChange:null,zindex:null,list:!1,name:null,sortConfig:{statesFirst:!0,ignoreSortOrder:!1},columns:["name","type","role","enum","room","function","value","button"]},e);t.texts=t.texts||{},t.texts=P.extend({select:"Select",cancel:"Cancel",all:"All",id:"ID",name:"Name",role:"Role",type:"Type",room:"Room",function:"Function",enum:"Members",value:"Value",selectid:"Select ID",from:"From",quality:"Quality",lc:"Last changed",ts:"Time stamp",ack:"Acknowledged",expand:"Expand all nodes",collapse:"Collapse all nodes",refresh:"Rebuild tree",edit:"Edit",ok:"Ok",push:"Trigger event",wait:"Processing...",list:"Show list view",tree:"Show tree view",selectAll:"Select all",unselectAll:"Unselect all",invertSelection:"Invert selection",copyToClipboard:"Copy to clipboard",expertMode:"Toggle expert mode",button:"Settings",noData:"No data",Objects:"Objects",States:"States",toggleValues:"Toggle states view"},t.texts);for(var i=this,n=0;n<this.length;n++){var s=this[n],r=P(s),o=r.data("selectId");if(o||(o={tree:{title:"",children:[],count:0,root:!0},roomEnums:[],rooms:{},roomsColored:{},funcEnums:[],funcs:{},funcsColored:{},roles:[],histories:[],types:[],regexSystemAdapter:new RegExp("^system\\.adapter\\."),regexSystemHost:new RegExp("^system\\.host\\."),regexEnumRooms:new RegExp("^enum\\.rooms\\."),regexEnumFuncs:new RegExp("^enum\\.functions\\."),inited:!1,filterPresets:{}},r.data("selectId",o)),o.inited)if((o.filter&&!t.filter&&void 0!==t.filter||!o.filter&&t.filter||o.filter&&t.filter&&JSON.stringify(o.filter)!==JSON.stringify(t.filter))&&(o.inited=!1),o.inited&&void 0!==t.currentId&&o.currentId!==t.currentId)o.$tree.fancytree("getTree").visit(function(e){if(e.key===o.currentId)return e.setActive(!1),!1});if((o=P.extend(o,t)).rootExp=o.root?new RegExp("^"+o.root.replace(".","\\.")):null,o.selectedID=o.currentId,o.filter=JSON.parse(JSON.stringify(o.filter)),!o.objects&&o.connCfg){o.socketURL="",o.socketSESSION="",void 0!==o.connCfg.socketUrl&&(o.socketURL=o.connCfg.socketUrl,o.socketURL&&":"===o.socketURL[0]&&(o.socketURL=location.protocol+"//"+location.hostname+o.socketURL),o.socketSESSION=o.connCfg.socketSession,o.socketUPGRADE=o.connCfg.upgrade,o.socketRememberUpgrade=o.connCfg.rememberUpgrade,o.socketTransports=o.connCfg.transports);var a=setTimeout(function(){var e=P("#select-id-dialog");e.length||(P("body").append('<div id="select-id-dialog"><span class="ui-icon ui-icon-alert"></span><span>'+(o.texts.noconnection||"No connection to server")+"</span></div>"),e=P("#select-id-dialog")),"undefined"!=typeof M?e.modal():e.dialog({modal:!0,open:function(e){P(e.target).parent().find(".ui-dialog-titlebar-close .ui-button-text").html("")}})},5e3);o.socket=io.connect(o.socketURL,{query:"key="+o.socketSESSION,"reconnection limit":1e4,"max reconnection attempts":1/0,upgrade:o.socketUPGRADE,rememberUpgrade:o.socketRememberUpgrade,transports:o.socketTransports}),o.socket.on("connect",function(){a&&clearTimeout(a),this.emit("name",o.connCfg.socketName||"selectId"),this.emit("getObjects",function(e,t){o.objects=t,o.socket.emit("getStates",function(e,t){o.states=t,o.readyCallback&&o.readyCallback(e,o.objects,o.states)})})}),o.socket.on("stateChange",function(e,t){i.selectId("state",e,t)}),o.socket.on("objectChange",function(e,t){i.selectId("object",e,t)})}r.data("selectId",o)}return this},show:function(e,t,i){"function"==typeof t&&(i=t,t=void 0),"function"==typeof e&&(i=e,e=void 0);for(var n=0;n<this.length;n++){var s=this[n],r=P(s),o=r.data("selectId");if(o){if(o.inited)if((o.filter&&!t&&void 0!==t||!o.filter&&t||o.filter&&t&&JSON.stringify(o.filter)!==JSON.stringify(t))&&(o.inited=!1),o.inited&&void 0!==e&&o.currentId!==e)o.$tree.fancytree("getTree").visit(function(e){if(e.key===o.currentId)return e.setActive(!1),!1});if(void 0!==e&&(o.currentId=e),void 0!==t&&(o.filter=JSON.parse(JSON.stringify(t))),void 0!==i&&(o.onSuccess=i,o.$tree=r.find(".objects-list-table"),o.$tree[0]&&(o.$tree[0]._onSuccess=o.onSuccess)),o.selectedID=o.currentId,o.inited&&o.noDialog){if(o.selectedID)o.$tree.fancytree("getTree").visit(function(e){if(e.key===o.selectedID)return e.setActive(),e.makeVisible({scrollIntoView:!1}),!1})}else B(o.$dlg=r);o.noDialog?r.show():"undefined"!=typeof M?(o.currentId?(r.find(".title").text(o.texts.selectid+" - "+H(o.objects[o.currentId],o.currentId)),r.find(".btn-set").removeClass("disabled")):(r.find(".title").text(o.texts.selectid),r.find(".btn-set").addClass("disabled")),r.show().modal("open")):(o.currentId?(r.dialog("option","title",o.texts.selectid+" - "+H(o.objects[o.currentId],o.currentId)),r.find("#button-ok").removeClass("ui-state-disabled")):(r.dialog("option","title",o.texts.selectid),r.find("#button-ok").addClass("ui-state-disabled")),r.dialog("open")),k(r,!0)}}return this},hide:function(){for(var e=0;e<this.length;e++){var t=this[e],i=P(t),n=i.data("selectId");n&&!n.noDialog?i.dialog("hide"):i.hide()}return this},clear:function(){for(var e=0;e<this.length;e++){var t=this[e],i=P(t).data("selectId");i&&(i.tree={title:"",children:[],count:0,root:!0},i.rooms={},i.roomEnums=[],i.funcs={},i.funcEnums=[],i.roles=[],i.types=[],i.histories=[])}return this},getInfo:function(e){for(var t=0;t<this.length;t++){var i=this[t],n=P(i).data("selectId");if(n&&n.objects)return n.objects[e]}return null},getTreeInfo:function(e){for(var t=0;t<this.length;t++){var i=this[t],n=P(i).data("selectId");if(n&&n.$tree){var s=n.$tree.fancytree("getTree"),r=s&&s.getNodeByKey(e),o={id:e,parent:r&&r.parent&&r.parent.parent?r.parent.key:null,children:null,obj:n.objects?n.objects[e]:null};if(r&&r.children){o.children=[];for(var a=0;a<r.children.length;a++)o.children.push(r.children[a].key);o.children.length||delete o.children}return o}}return null},destroy:function(){for(var e=0;e<this.length;e++){var t=P(this[e]);t.data("selectId")&&(t.data("selectId",null),t.find(".dialog-select-container").remove())}return this},reinit:function(){for(var e=0;e<this.length;e++){var t=this[e],i=P(t).data("selectId");i&&(i.inited=!1,B(i.$dlg))}return this},state:function(e,t){for(var i=0;i<this.length;i++){var n=this[i],s=P(n).data("selectId");if(s&&s.states&&s.$tree){s.states[e]=t;var r=s.$tree.fancytree("getTree").getNodeByKey(e);r&&r.render(!0)}}return this},object:function(e,t,i){for(var n=0,s=this.length;n<s;n++){var r=this[n],o=P(r).data("selectId");if(o&&o.$tree&&o.objects){e.match(/^enum\.rooms/)&&(o.rooms={},o.roomsColored={}),e.match(/^enum\.functions/)&&(o.funcs={},o.funcsColored={});var a=o.$tree.fancytree("getTree"),l=a.getNodeByKey(e);if(!l&&t){"object"==typeof o.stats&&"add"===i&&(o.stats.objs++,"state"===t.type&&o.stats.states++,A(o)),o.objects[e]=t;var c=[];if(!I(o,e))return;if(o.ids.length){for(var h=0;o.ids[h]<e;)h++;o.ids.splice(h,0,e)}x(o,e,!1,c);for(var u=0;u<c.length;u++)if((l=c[u].parent.root?o.$tree.fancytree("getRootNode"):a.getNodeByKey(c[u].parent.key)).children&&l.children.length){var d;for(d=0;d<l.children.length&&!(l.children[d].key>c[u].key);d++);d!==l.children.length?(l.addChildren(c[u],l.children[d]),l.children[d].match=!0):(l.addChildren(c[u]),l.children[l.children.length-1].match=!0),l.render(!0)}else l.addChildren(c[u]),l.folder=!0,l.expanded=!1,l.render(!0),l.children[0].match=!0}else if(t)l&&l.render(!0);else{if("object"==typeof o.stats&&"delete"===i&&(o.stats.objs--,o.objects[e]&&"state"===o.objects[e].type&&o.stats.states--,A(o)),delete o.objects[e],C(o,e),o.ids.length){var g=o.ids.indexOf(e);-1!==g&&o.ids.splice(g,1)}if(l){var f=l.getPrevSibling(),p=l.parent;for(l.removeChildren(),l.remove(),f&&f.setActive();p&&(!p.children||!p.children.length);){var m=p.parent;p.remove(),m&&m.setActive(),p=m}o.ids.length&&v(p,o)}}}}return this},option:function(e,t){for(var i=0;i<this.length;i++){var n=this[i],s=P(n).data("selectId");s&&(void 0!==s[e]?s[e]=t:console.error("Unknown options for selectID: "+e))}},objectAll:function(e,t){P(".select-id-dialog-marker").selectId("object",e,t)},stateAll:function(e,t){P(".select-id-dialog-marker").selectId("state",e,t)},getFilteredIds:function(){for(var e=0;e<this.length;e++){var t=this[e],i=P(t).data("selectId");if(i&&i.$tree&&i.objects){var n=i.$tree.fancytree("getTree"),s=[];return n.visit(function(e){e.match&&s.push(e.key)}),s}}return null},getActual:function(){var e=this[0],t=P(e).data("selectId");return t?t.selectedID:null}};P.fn.selectId=function(e){return t[e]?t[e].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof e&&e?void P.error('Method "'+e+'" not found in jQuery.selectId'):t.init.apply(this,arguments)}}function H(e,t){return e&&e.common?W(e.common.name||(t||"").split(".").pop()):(t||"").split(".").pop()}function z(e){if(!e)return"";var t=e.getFullYear(),i=e.getMonth()+1;return t+=i<10?"-0"+i:"-"+i,t+=(i=e.getDate())<10?"-0"+i:"-"+i,t+=(i=e.getHours())<10?" 0"+i:" "+i,t+=(i=e.getMinutes())<10?":0"+i:":"+i,t+=(i=e.getSeconds())<10?":0"+i:":"+i,t+=(i=e.getMilliseconds())<10?".00"+i:i<100?".0"+i:"."+i}function I(e,t){if(e.rootExp&&!e.rootExp.test(t))return!1;if(e.expertModeRegEx&&!e.expertMode&&e.expertModeRegEx.test(t))return!1;if(e.expertMode||!e.objects[t]||!e.objects[t].common||!e.objects[t].common.expert){if(e.filter){if(e.filter.type&&e.filter.type!==e.objects[t].type)return!1;if(e.filter.common&&e.filter.common.custom){if(!e.objects[t].common)return!1;var i=e.objects[t].common.custom||e.objects[t].common.history;if(!i)return!1;if(!0===e.filter.common.custom)return!0;if(!i[e.filter.common.custom])return!1}}return!0}}function w(c){var h,u=c.objects;switch(c.sortConfig.statesFirst){case void 0:h=function(){return 0};break;case!0:h=function(e,t){return~~t.folder-~~e.folder};break;case!1:h=function(e,t){return~~e.folder-~~t.folder}}function e(e,t){var i=h(e,t);if(i)return i;if(!c.sortConfig.ignoreSortOrder){var n=u[e.key],s=u[t.key];if(n&&s){var r=n.common,o=s.common;if(r&&o&&r.sortOrder&&o.sortOrder)return r.sortOrder>o.sortOrder?1:r.sortOrder<o.sortOrder?-1:0}}return e.key>t.key?1:e.key<t.key?-1:0}var n=c.sort?function(e,t){var i=h(e,t);if(i)return i;var n=u[e.key],s=u[t.key];if(n&&s){var r=n.common,o=s.common;if(r&&o){if(!c.sortConfig.ignoreSortOrder&&r.sortOrder&&o.sortOrder)return r.sortOrder>o.sortOrder?1:r.sortOrder<o.sortOrder?-1:0;var a,l;if(a=r.name?"object"==typeof(a=r.name)?(a[systemLang]||a.en).toLowerCase():a.toLowerCase():e.key,(l=o.name?"object"==typeof(l=o.name)?(l[systemLang]||l.en).toLowerCase():l.toLowerCase():e.key)<a)return 1;if(a<l)return-1}}return e.key>t.key?1:e.key<t.key?-1:0}:e,s=e;return function e(t){if(t&&t.children){try{t.sortChildren(s)}catch(e){console.log(e)}s=n;for(var i=t.children.length-1;0<=i;i--)e(t.children[i])}}(c.$tree.fancytree("getRootNode"))}function C(e,t,i){var s,n=(s=t,function e(t){if(t.children){for(var i=t.children.length-1;0<=i;i--){var n=t.children[i];if(s===n.key)return n;if(s.startsWith(n.key+"."))return e(n)}return null}}(e.tree));n?function e(t,i){if(t.parent){i&&t.id&&i.push(t);var n=t.parent;if(n.children.length<=1)e(t.parent);else for(var s=0;s<n.children.length;s++)if(t.key===n.children[s].key){n.children.splice(s,1);break}}}(n,i):console.log("deleteTree: Id "+t+" not found")}function x(e,t,i,n){return function e(t,i,n,s,r,o,a){s=s||0;if(!i)return void console.error("Empty object ID!");var l=-1;var c;for(c=0;c<t.children.length;c++)if(t.children[c].title===i[s]){l=c;break}if(-1===l){t.folder=!0,t.expanded=r;for(var h="",u=0;u<=s;u++)h+=(h?".":"")+i[u];var d={key:(a.root||"")+h,children:[],title:i[s],folder:!1,expanded:!1,parent:t};c===t.children.length?(l=t.children.length,t.children.push(d)):(l=c,t.children.splice(l,0,d)),o&&o.push(t.children[l])}i.length-1===s?t.children[l].id=n:(t.children[l].expanded=t.children[l].expanded||r,e(t.children[l],i,n,s+1,r,o,a))}(e.tree,e.list?[t]:function(e,t){if(!t)return null;e.root&&(t=t.substring(e.root.length));var i=t.split(".");return e.regexSystemAdapter.test(t)?3<i.length?(i[0]="system.adapter."+i[2]+"."+i[3],i.splice(1,3)):(i[0]="system.adapter."+i[2],i.splice(1,2)):e.regexSystemHost.test(t)?(i[0]="system.host."+i[2],i.splice(1,2)):1<i.length&&!e.root&&(i[0]=i[0]+"."+i[1],i.splice(1,1)),i}(e,t),t,0,i,n,e)}function k(e,t){var i=e.data("selectId");i.selectedID&&i.$tree.fancytree("getTree").visit(function(e){if(e.key===i.selectedID){try{e.setActive(),e.makeVisible({scrollIntoView:t||!1})}catch(e){console.error(e)}return!1}})}function E(e){var t=e.data("selectId");if(t)for(var i,n,s=e.find(".main-header-table").find(">tbody>tr>th"),r=t.$tree.find(">tbody>tr>td"),o=0;o<s.length-1;o++)(i=P(r[o]).width())&&(P(s[o]).attr("width",i),(n=P(r[o+1]).offset().left)&&(n-=P(s[o+1]).offset().left)&&P(s[o]).attr("width",i+n))}function W(e){return e&&"object"==typeof e?e[systemLang]||e.en:e||""}function V(e,t,i,n){if(!t)return[];n=n||[];for(var s=0;s<e.roomEnums.length;s++){var r=e.objects[e.roomEnums[s]]&&e.objects[e.roomEnums[s]].common,o=W(r.name);r.members&&-1!==r.members.indexOf(t)&&-1===n.indexOf(o)&&(i?n.push({name:o,origin:t}):n.push(o))}var a=t.split(".");return a.pop(),t=a.join("."),e.objects[t]&&V(e,t,i,n),n}function U(e,t,i,n){if(!t)return[];n=n||[];for(var s=0;s<e.funcEnums.length;s++){var r=e.objects[e.funcEnums[s]]&&e.objects[e.funcEnums[s]].common,o=W(r.name);r&&r.members&&-1!==r.members.indexOf(t)&&-1===n.indexOf(o)&&(i?n.push({name:o,origin:t}):n.push(o))}var a=t.split(".");return a.pop(),t=a.join("."),e.objects[t]&&U(e,t,i,n),n}function s(e){var t=P("<input>");P(this).append(t),t.val(P(this).parent().data("clippy")),t.trigger("select"),document.execCommand("copy"),t.remove(),e.preventDefault(),e.stopPropagation()}function r(){var i=P(this).data("data"),n=P(this).parent(),s=n.data("clippy"),r=n.data("id"),o=P("#dialog-value-edit");"undefined"!=typeof M&&o.length?(o.find("textarea").val(s),o.find('input[type="checkbox"]').prop("checked",!1),o.find('input[type="checkbox"]+span').off("click").on("click",function(){var e=P(this).prev();e.prop("disabled")||e.prop("checked",!e.prop("checked")).trigger("change")}),o.find(".btn-set").off("click").on("click",function(){var e=o.find("textarea").val(),t=o.find('input[type="checkbox"]').prop("checked");(e!==s||t)&&(i.quickEditCallback(r,"value",e,s,t),s='<span style="color: darkviolet; width: 100%;">'+s+"</span>",n.html(s)),o.modal("close")}),o.modal().modal("open")):P('<div style="position: absolute;left: 5px; top: 5px; right: 5px; bottom: 5px; border: 1px solid #CCC;"><textarea style="margin: 0; border: 0;background: white; width: 100%; height: calc(100% - 50px); resize: none;" ></textarea><br><input type="checkbox" /><span>'+_("ack")+"</span></div>").dialog({autoOpen:!0,modal:!0,title:i.texts.edit,width:"50%",height:200,open:function(e){P(this).find("textarea").val(s),P(this).find('input[type="checkbox"]').prop("checked",!1),P(e.target).parent().find(".ui-dialog-titlebar-close .ui-button-text").html("")},buttons:[{text:i.texts.select,click:function(){var e=P(this).find("textarea").val(),t=P(this).find('input[type="checkbox"]').prop("checked");(e!==s||t)&&(i.quickEditCallback(r,"value",e,s,t),s='<span style="color: darkviolet; width: 100%;">'+s+"</span>",n.html(s)),P(this).dialog("close").dialog("destroy").remove()}},{text:i.texts.cancel,click:function(){P(this).dialog("close").dialog("destroy").remove()}}]})}function o(){var s=P(this).data("data"),r=P(this).parent(),o=r.data("id"),a=r.data("old-value"),l=P("#dialog-enum-edit"),c=r.data("name");if("undefined"!=typeof M&&l.length){var e=[],t="";l.find(".name").html(H(s.objects[o],o));for(var i="function"===c?s.funcEnums:s.roomEnums,n=0;n<i.length;n++){var h=s.objects[i[n]]&&s.objects[i[n]].common,u=W(h.name);if(-1===e.indexOf(u)){e.push(u);var d=h&&h.members&&-1!==h.members.indexOf(o);t+='<li class="collection-item">'+q(s,s.objects[i[n]])+' <span class="title">'+u+'<span class="dialog-enum-list-id">'+i[n]+'</span></span> <label class="secondary-content"> <input class="filled-in" type="checkbox" '+(d?"checked":"")+' data-id="'+i[n]+'" data-name="'+u+'"/> <span></span> </label></li>'}}l.find(".collection").html(t),l.find('input[type="checkbox"]').off("click").on("click",function(){var e=P(this).prev();e.prop("disabled")||e.prop("checked",!e.prop("checked")).trigger("change")}),l.find(".btn-set").off("click").on("click",function(){var e=l.find('input[type="checkbox"]'),t=[],i=[];if(e.each(function(){P(this).prop("checked")&&(t.push(P(this).data("id")),i.push(P(this).data("name")))}),JSON.stringify(a)!==JSON.stringify(t)){s.quickEditCallback(o,c,t,a);var n='<span style="color: darkviolet; width: 100%;">'+i.join(", ")+"</span>";r.html(n)}l.modal("close")}),l.modal().modal("open")}}function q(e,t,i){var n="",s="",r="system.adapter."+i;if(i&&e.objects[r]&&e.objects[r].common&&e.objects[r].common.icon)if(e.objects[r].common.icon.match(/^data:image\//))n=e.objects[r].common.icon;else{if(-1===e.objects[r].common.icon.indexOf("."))return'<i class="material-icons iob-list-icon">'+e.objects[r].common.icon+"</i>";n="/adapter/"+e.objects[r].common.name+"/"+e.objects[r].common.icon}else if(t&&t.common)if(t.common.icon)if(t.common.icon.match(/^data:image\//))n=t.common.icon;else{if(-1===t.common.icon.indexOf("."))return'<i class="material-icons iob-list-icon">'+t.common.icon+"</i>";var o;n="instance"===t.type?"/adapter/"+t.common.name+"/"+t.common.icon:i&&i.match(/^system\.adapter\./)?(o=i.split(".",3),"/"===t.common.icon[0]?o[2]+=t.common.icon:o[2]+="/"+t.common.icon,"/adapter/"+o[2]):(o=i.split(".",2),"/"===t.common.icon[0]?o[0]+=t.common.icon:o[0]+="/"+t.common.icon,"/adapter/"+o[0])}else"device"===t.type?(n=e.imgPath+"device.png",s="device"):"channel"===t.type?(n=e.imgPath+"channel.png",s="channel"):"state"===t.type&&(n=e.imgPath+"state.png",s="state");return n?'<img class="iob-list-icon" src="'+n+'" alt="'+s+'"/>':""}function F(e){var t,i;P(this).hasClass("clippy")&&!P(this).find(".clippy-button").length&&(t='<button class="clippy-button ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only td-button m" role="button" title="'+(i=i||P(this).data("data")).texts.copyToClipboard+'">',"undefined"!=typeof M?t+='<i class="material-icons tiny">content_copy</i>':t+='<span class="ui-button-icon-primary ui-icon ui-icon-clipboard"></span>',t+="</button>",P(this).append(t),P(this).find(".clippy-button").on("click",s));if(P(this).hasClass("edit-dialog")&&!P(this).find(".edit-dialog-button").length){t='<button class="edit-dialog-button ui-button ui-widget ui-state-default ui-corner-all ui-button-icon-only td-button m" role="button" title="'+((i=i||P(this).data("data")).texts.editDialog||"")+'">',"undefined"!=typeof M?t+='<i class="material-icons tiny">edit</i>':t+='<span class="ui-button-icon-primary ui-icon ui-icon-pencil"></span>',t+="</button>",P(this).append(t);var n=P(this).data("name");"function"===n||"room"===n?P(this).find(".edit-dialog-button").on("click",o).data("data",i):P(this).find(".edit-dialog-button").on("click",r).data("data",i)}}function D(e){P(this).find(".clippy-button").remove(),P(this).find(".edit-dialog-button").remove()}function K(e,t){var i;if(e.objects[t]&&e.objects[t].common&&e.objects[t].common.states&&(i=e.objects[t].common.states),i)if("string"==typeof i&&"{"===i[0])try{i=JSON.parse(i)}catch(e){console.error("Cannot parse states: "+i),i=null}else if("string"==typeof i){var n=i.split(";");i={};for(var s=0;s<n.length;s++){var r=n[s].split(":");i[r[0]]=r[1]}}return i}function S(e,t,i){t&&e.$dlg.find('.filter[data-index="'+t+'"]').val(i).trigger("change")}function G(e){var t,i=P(this),n=i.data("id"),s=i.data("name"),r=i.data("selectId"),o=i.data("type"),a=this.innerHTML,l=P(e.currentTarget).parent(),c=i.parent(),h=c.hasClass("clippy"),u=c.hasClass("edit-dialog"),d=i.data("options"),g=i.data("old-value"),f=null;h&&(c.removeClass("clippy"),c.find(".clippy-button").remove()),u&&(c.removeClass("edit-dialog"),c.find(".edit-dialog-button").remove()),c.css({overflow:"visible"}),i.css({overflow:"visible"}),i.closest("td").css({overflow:"visible"}),i.off("click").removeClass("select-id-quick-edit").css("position","relative");var p=o="boolean"===o?"checkbox":"text";switch(r.editing=!0,s){case"value":if(f=K(r,n)){for(var m in t='<select style="width: calc(100% - 50px); z-index: 2">',f)f.hasOwnProperty(m)&&"string"==typeof f[m]&&(t+='<option value="'+m+'">'+f[m]+"</option>");t+="</select>",p="select"}break;case"room":f=function(e,t,i){if(!t)return[];i=i||[];for(var n=0;n<e.roomEnums.length;n++){var s=e.objects[e.roomEnums[n]]&&e.objects[e.roomEnums[n]].common;s&&s.members&&-1!==s.members.indexOf(t)&&-1===i.indexOf(e.roomEnums[n])&&i.push(e.roomEnums[n])}return i}(r,n)||[],t='<select style="width: calc(100% - 50px); z-index: 2" multiple="multiple">';for(var C=0;C<r.roomEnums.length;C++){var A,v=r.objects[r.roomEnums[C]];A=v&&v.common&&v.common.name?W(v.common.name):r.roomEnums[C].split(".").pop(),t+='<option value="'+r.roomEnums[C]+'" '+(-1!==f.indexOf(r.roomEnums[C])?"selected":"")+">"+A+"</option>"}t+="</select>",p="select";break;case"function":f=function(e,t,i){if(!t)return[];i=i||[];for(var n=0;n<e.funcEnums.length;n++){var s=e.objects[e.funcEnums[n]]&&e.objects[e.funcEnums[n]].common;s&&s.members&&-1!==s.members.indexOf(t)&&-1===i.indexOf(e.funcEnums[n])&&i.push(e.funcEnums[n])}return i}(r,n)||[],t='<select style="width: calc(100% - 50px); z-index: 2" multiple="multiple">';for(var b=0;b<r.funcEnums.length;b++){var y,I=r.objects[r.funcEnums[b]];y=I&&I.common&&I.common.name?W(I.common.name):r.funcEnums[b].split(".").pop(),t+='<option value="'+r.funcEnums[b]+'" '+(-1!==f.indexOf(r.funcEnums[b])?"selected":"")+">"+y+"</option>"}t+="</select>",p="select";break;default:if(d)if(f="function"==typeof d?d(n,s):d){for(var w in t='<select style="width: calc(100% - 50px); z-index: 2">',f)f.hasOwnProperty(w)&&(t+='<option value="'+w+'">'+f[w]+"</option>");t+="</select>",p="select"}else if(!1===f)return}t=t||'<input style="z-index: 2" type="'+o+'"'+("checkbox"!==o?'class="objects-inline-edit"':"")+"/>";var _=null;"room"!==s&&"function"!==s&&"role"!==s||(p="select");var x=i.css("padding-left"),k=i.css("width"),E=i.is(".objects-name-coll-title");i.html(t+'<div class="select-id-quick-edit-buttons m '+p+'"> <div class="ui-icon ui-icon-check select-id-quick-edit-ok"></div> <div class="cancel ui-icon ui-icon-close select-id-quick-edit-cancel" title="'+r.texts.cancel+'"></div></div>'),i.css({"padding-left":2,width:E?"calc(100% - 28px)":"100%"});var F="function"===s||"room"===s||f?i.find("select"):i.find("input");if("room"===s||"function"===s?F.multiselect({autoOpen:!0,close:function(){F.trigger("blur")}}):"role"===s&&F.autocomplete({minLength:0,source:r.roles}).on("focus",function(){P(this).autocomplete("search","")}),"select"===p&&F.width()>i.width()-34){var D=Math.max(F.width()-(i.width()-34),34);F.css({"padding-right":D})}function S(e){void 0===e&&(e=a),a=null,h&&c.addClass("clippy"),u&&c.addClass("edit-dialog"),c.css({overflow:"hidden"}),i.css({overflow:"hidden"}),i.closest("td").css({overflow:"hidden"}),i.css({"padding-left":x,width:k||null}),i.html(e).off("click").on("click",G).addClass("select-id-quick-edit"),setTimeout(function(){l.trigger("click")},50),r.editing=!1,l.focus().trigger("select")}function T(e){_&&(clearTimeout(_),_=null),e.preventDefault(),e.stopPropagation(),S()}i.find(".select-id-quick-edit-cancel").on("click",T).on("mousedown",function(e){T(e)}),i.find(".select-id-quick-edit-ok").on("click",function(){("function"===s||"room"===s||f?i.find("select"):i.find("input")).trigger("blur")}),"checkbox"===o?F.prop("checked",g):"room"!==s&&"function"!==s&&F.val(g),F.blur(function(){_&&clearTimeout(_),_=setTimeout(function(){var e=i.data("old-value"),t="checkbox"===P(this).attr("type")?P(this).prop("checked"):P(this).val();"room"!==s&&"function"!==s||t||(t=[]),"value"!==s&&JSON.stringify(t)===JSON.stringify(e)||(r.quickEditCallback(n,s,t,e),e='<span style="color: rgb(192, 0, 1); width: 100%;">'+e+"</span>"),S(e)}.bind(this),100)}).keyup(function(e){13===e.which&&P(this).trigger("blur"),27===e.which&&T(e)}),"object"==typeof e&&(e.preventDefault(),e.stopPropagation()),setTimeout(function(){F.focus().trigger("select")},100)}function Y(e){if(!e)return"ok";var t=4294901760&e,i="";return 64&e&&(i+="device"),128&e&&(i+="sensor"),1&e&&(i+=" bad"),2&e&&(i+=" not connected"),4&e&&(i+=" error"),i+(t?"|0x"+(t>>16).toString(16).toUpperCase():"")+" [0x"+e.toString(16).toUpperCase()+"]"}function T(e,t){for(var i=0;i<e.columns.length;i++){var n=e.columns[i];"object"==typeof n&&(n.hasOwnProperty("name")?n=n.name:n.hasOwnProperty("en")&&(n=n[systemLang]||n.en)),t(n,i)}}function B(o){var e;o.addClass("dialog-select-object-ids"),"dialog-select-member"!==o.attr("id")&&"dialog-select-members"!==o.attr("id")?o.css({height:"100%",width:"100%"}):o.css({height:"calc(100% - 110px)",width:"calc(100% - 20px)"});var N=o.data("selectId");if(N){var r=!N.noDialog&&!N.noMultiselect;"undefined"!=typeof Storage&&N.name&&(N.expertModeRegEx&&(N.expertMode=window.localStorage.getItem(N.name+"-expert"),N.expertMode=!0===N.expertMode||"true"===N.expertMode),N.sort=window.localStorage.getItem(N.name+"-sort"),N.sort=!0===N.sort||"true"===N.sort,N.useValues&&(N.valuesActive=window.localStorage.getItem(N.name+"-values"),N.valuesActive=!0===N.valuesActive||"true"===N.valuesActive)),N.useValues&&N.valuesActive?(N._columns=N._columns||N.columns,N.columns=!0===N.useValues?["ID","name","value.from","value.q","value.ts","value.lc","value.val","button"]:N.useValues):N._columns&&(N.columns=N._columns),N.columns&&"ID"!==N.columns[0]&&(N.columns.unshift("ID"),N.widths&&N.widths.unshift("200px")),removeImageFromSettings(N);var t=function(e){if(!e.$tree)return null;var r={};return function e(t){if(Array.isArray(t.children))for(var i=0,n=t.children.length;i<n;i++){var s=t.children[i];s.expanded&&(r[s.key]=!0),e(s)}}(e.$tree.fancytree("getRootNode")),r}(N);!function(e){var t=e.stats?{objs:0,states:0}:null,i=e.objects,n=-1!==e.columns.indexOf("type"),s=-1!==e.columns.indexOf("room"),r=-1!==e.columns.indexOf("function"),o=-1!==e.columns.indexOf("role"),a=-1!==e.columns.indexOf("button");for(var l in e.tree={title:"",children:[],count:0,root:!0},e.roomEnums=[],e.funcEnums=[],e.ids=[],i)if(i.hasOwnProperty(l))if(l){if(t&&t.objs++,"state"===i[l].type)t&&t.states++;else if(e.valuesActive)continue;if(s&&("enum"===i[l].type&&e.regexEnumRooms.test(l)&&-1===e.roomEnums.indexOf(l)&&e.roomEnums.push(l),i[l].enums))for(var c in i[l].enums)e.regexEnumRooms.test(c)&&-1===e.roomEnums.indexOf(c)&&e.roomEnums.push(c),e.objects[c]=e.objects[c]||{_id:c,common:{name:i[l].enums[c],members:[l]}},e.objects[c].common.members=e.objects[c].common.members||[],-1===e.objects[c].common.members.indexOf(l)&&e.objects[c].common.members.push(l);if(r&&("enum"===i[l].type&&e.regexEnumFuncs.test(l)&&-1===e.funcEnums.indexOf(l)&&e.funcEnums.push(l),i[l].enums))for(var c in i[l].enums)e.regexEnumFuncs.test(c)&&-1===e.funcEnums.indexOf(c)&&e.funcEnums.push(c),e.objects[c]=e.objects[c]||{_id:c,common:{name:i[l].enums[c],members:[l]}},e.objects[c].common.members=e.objects[c].common.members||[],-1===e.objects[c].common.members.indexOf(l)&&e.objects[c].common.members.push(l);if(n&&i[l].type&&-1===e.types.indexOf(i[l].type)&&e.types.push(i[l].type),o&&i[l].common&&i[l].common.role)try{for(var h=i[l].common.role.split("."),u="",d=0;d<h.length;d++)u+=(u?".":"")+h[d],-1===e.roles.indexOf(u)&&e.roles.push(u)}catch(c){console.error('Cannot parse role "'+i[l].common.role+'" by '+l)}if(a&&"instance"===i[l].type&&("storage"===i[l].common.type||i[l].common.supportCustoms)){var g=l.substring("system.adapter.".length);-1===e.histories.indexOf(g)&&e.histories.push(g)}if(I(e,l)){if(x(e,l,e.currentId===l),i[l].enums)for(var f in i[l].enums)i[l].enums.hasOwnProperty(f)&&i[f]&&i[f].common&&i[f].common.members&&-1===i[f].common.members.indexOf(l)&&i[f].common.members.push(l);e.expertMode&&e.ids.push(l)}}else console.error("Invalid empty ID found! Please fix it");e.inited=!0,e.roles.sort(),e.types.sort(),e.roomEnums.sort(),e.funcEnums.sort(),e.histories.sort(),e.ids.sort(),t&&(e.stats=t)}(N),N.noDialog||N.buttonsDlg||("undefined"!=typeof M?(N.buttonsDlg=!0,o.find(".btn-set").off("click").on("click",function(){var e=o.data("selectId");e&&e.onSuccess&&e.onSuccess(e.selectedID,e.currentId,e.objects[e.selectedID]),e.currentId=e.selectedID,$(e)}),o.find(".btn-close").off("click").on("click",function(){$(o.data("selectId"))}),o.modal({dismissible:!1})):(N.buttonsDlg=[{id:"button-ok",text:N.texts.select,click:function(){var e=o.data("selectId");e&&e.onSuccess&&e.onSuccess(e.selectedID,e.currentId,e.objects[e.selectedID]),e.currentId=e.selectedID,$(e),o.dialog("close")}},{text:N.texts.cancel,click:function(){$(o.data("selectId")),P(this).dialog("close")}}],o.dialog({autoOpen:!1,modal:!0,resizable:!1,width:"90%",open:function(e){P(e.target).parent().find(".ui-dialog-titlebar-close .ui-button-text").html("")},close:function(){$(N)},buttons:N.buttonsDlg}),null!==N.zindex&&P('div[aria-describedby="'+o.attr("id")+'"]').css({"z-index":N.zindex})));var i={};T(N,function(e){i[e]=o.find('.filter[data-index="'+e+'"]').val()});var n='<button class="ui-button-icon-only panel-button btn-refresh"></button>\n<button class="panel-button btn-list"></button>\n<button class="panel-button btn-collapse"></button>\n<button class="panel-button btn-expand"></button>\n<div class="select-id-custom-buttons"></div>\n';if(N.useValues&&(n+='<button class="panel-button btn-values"></button>\n'),N.filter&&"state"===N.filter.type&&r&&(n+='<div class="iob-toolbar-sep"></div>\n<button class="panel-button btn-select-all"></button>\n<button class="panel-button btn-unselect-all"></button>\n<button class="panel-button btn-invert-selection"></button>\n'),N.expertModeRegEx&&(n+='<div class="iob-toolbar-sep"></div><button class="panel-button btn-expert"></button>'),n+='<button class="panel-button btn-sort"></button>',N.panelButtons)for(n+='<div class="iob-toolbar-sep"></div>\n',e=0;e<N.panelButtons.length;e++)n+='<button class="panel-button btn-custom-'+e+'"></button>\n';N.useHistory&&(n+='<button class="panel-button btn-history"></button>\n'),"object"==typeof N.stats&&(n+='<div class="objects-info"><span class="objects-title">'+N.texts.Objects+': </span><span class="objects-val-objs">'+N.stats.objs+'</span>, <span class="objects-title">'+N.texts.States+': </span><span class="objects-val-states">'+N.stats.states+"</span></div>");var s="100%";N.noDialog||j||(s=Math.round(.6*window.innerHeight)+"px");var a='<div class="dialog-select-container'+(j?" material":" old-style")+'" style="width: 100%; height: '+s+'">\n <div class="main-toolbar-table m">'+n+'</div>\n <table class="main-header-table">\n';a+=" <tbody>\n",a+=" <tr>\n",T(N,function(e){var t,i;a+="<th>","ID"===e||"name"===e||"enum"===e?a+=(t=e,void 0===i&&(i=N.texts[t.toLowerCase()]||""),'<input data-index="'+t+'" placeholder="'+i+'" class="filter"><button data-index="'+t+'" class="filter-btn"></button>\n'):"type"===e||"role"===e||"room"===e||"function"===e?a+=b(e):"button"===e?N.customButtonFilter?a+=b(e):a+='<span style="padding-left: '+lineIndent+'"></span>':a+='<span style="padding-left: '+lineIndent+'">'+_(e)+"</span>",a+="</th>"}),a+=" </tr>\n",a+=" </tbody>\n",a+=" </table>\n",a+='<div class="'+(N.buttons?"grid-main-wh-div":"grid-main-wob-div")+'">\n',a+=' <table class="iob-list-font objects-list-table" cellspacing="0" cellpadding="0">\n',a+=" <colgroup>\n";var l='<thead class="grid-objects-head"><tr>\n',c={ID:N.firstMinWidth?N.firstMinWidth:"20%",name:"20%",type:"6%",role:"10%",room:"10%",function:"10%",value:"10%",button:"9%",enum:"2%","value.val":"10%","value.ts":"15%","value.lc":"15%","value.from":"10%","value.q":"10%","value.ack":"2%"};if(T(N,function(e,t){var i=N.widths?N.widths[t]:c[e]||"2%";a+='<col width="'+i+'"/>',l+='<th style="width: '+i+';"></th>'}),a+=" </colgroup>\n",a+=l+"</tr>\n</thead>\n",a+=" <tbody>\n",a+=" </tbody>\n",a+=" </table>\n</div>\n",a+=j?'<div class="objects-list-running loader"><svg class="spinner" width="100%" height="100%" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg">\n <circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle>\n</svg></div>\n':'<div class="objects-list-running" style="display: none;">'+N.texts.wait+"</div>\n",a+="</div>\n","undefined"==typeof M||N.noDialog&&!N.buttonsDlg)o.html(a);else{var h=o.find(".dialog-content");if(!h.length&&(o.html('<div class="modal-content">\n <div class="row">\n <div class="col s12 title"></div>\n </div>\n <div class="row">\n <div class="col s12 dialog-content">\n </div>\n </div>\n </div>\n <div class="modal-footer">\n <a class="modal-action modal-close waves-effect waves-green btn btn-set" ><i class="large material-icons">check</i><span class="translate">Select</span></a>\n <a class="modal-action modal-close waves-effect waves-green btn btn-close"><i class="large material-icons">close</i><span class="translate">Cancel</span></a>\n </div>'),h=o.find(".dialog-content"),!o.closest(".m").length)){var u=P("body");u.append('<div class="m material-dialogs"></div>'),o.appendTo(u.find(".material-dialogs"))}h.html(a)}N.$tree=o.find(".objects-list-table"),N.$tree.length,N.$tree[0]._onChange=N.onSuccess||N.onChange;var d,g,f,p={titlesTabbable:!0,quicksearch:!0,source:N.tree.children,extensions:["table","gridnav","filter","themeroller"],strings:{noData:N.texts.noData},themeroller:{addClass:"",selectedClass:"iob-state-active"},checkbox:r,table:{indentation:9,nodeColumnIdx:0},gridnav:{autofocusInput:!1,handleCursorKeys:!0},filter:{mode:"hide",autoApply:!0,counter:!1},activate:function(e,t){if(!r){var i=o.data("selectId"),n=t.node.key;if(i.onChange&&i.onChange(n,i.selectedID,i.objects[n]),i.selectedID=n,!i.noDialog){var s=i.texts.selectid+" - "+H(i.objects[n],n);"undefined"!=typeof M?o.find(".title").text(s):o.dialog("option","title",s),i.objects[n]?(o.find("#button-ok").removeClass("ui-state-disabled"),o.find(".btn-set").removeClass("disabled")):(o.find("#button-ok").addClass("ui-state-disabled"),o.find(".btn-set").addClass("disabled"))}}},select:function(e,t){for(var i=o.data("selectId"),n=[],s=t.tree.getSelectedNodes(),r=0;r<s.length;r++)n.push(s[r].key);i.onChange&&i.onChange(n,i.selectedID),0<(i.selectedID=n).length?(o.find("#button-ok").removeClass("ui-state-disabled"),o.find(".btn-set").removeClass("disabled")):(o.find("#button-ok").addClass("ui-state-disabled"),o.find(".btn-set").addClass("disabled"))},renderColumns:function(e,t){var i=t.node,n=i.key,s=N.objects[n],r=P(i.tr),o=r.find(">td"),a=s&&s.common,l=o.eq(0);l.css({overflow:"hidden"});var c=J(n,N);a&&s.type?(r.addClass("fancytree-type-"+s.type+(N.draggable&&-1!==N.draggable.indexOf(s.type)?" fancytree-type-draggable":" fancytree-type-not-draggable")),N.draggable&&-1===N.draggable.indexOf(s.type)&&r.attr("data-nodrag","true")):r.attr("data-nodrag","true"),r.attr("data-id",n);var h=l.find(".select-id-cnt");c?h.length?h.text("#"+c):l.append('<span class="select-id-cnt">#'+c+"</span>"):h.remove();var u,d=0;!N.filter||"state"!==N.filter.type||s&&"state"===s.type||l.find(".fancytree-checkbox").hide(),s&&(n.match(/^script\.js\./)||n.match(/^enum\.[\w\d_-]+$/))&&"script"!==s.type&&("script.js.global"!==i.key?l.find(".fancytree-title").css({"font-weight":"bold",color:"#000080"}):l.find(".fancytree-title").css({"font-weight":"bold",color:"#078a0c"}),l.addClass("fancytree-force-folder")),N.noCopyToClipboard||O(l,i.key),N.useNameAsId&&l.find(".fancytree-title").html(H(s,n));for(var g=0;g<N.columns.length;g++){var f=N.columns[g];u=o.eq(d);var p=function(e){u.html(span(e))};switch("object"==typeof f&&(f=f.hasOwnProperty("name")?f.name:f[systemLang]||f.en),f){case"id":case"ID":break;case"name":var m=q(N,s,n),C=a?W(s.common.name||""):"";u.html('<span style="padding-left: '+(m?lineIndent:0)+'; height: 100%; width: 100%">'+(m?'<span class="objects-name-coll-icon" style="vertical-align: middle">'+m+"</span>":"")+'<div class="objects-name-coll-title iob-ellipsis" style="border:0;">'+C+"</div></span>");var A=u.find(".objects-name-coll-title");C||A.css({"vertical-align":"middle"}),A.attr("title",C),N.quickEdit&&s&&-1!==N.quickEdit.indexOf("name")&&(A.data("old-value",C),A.on("click",G).data("id",i.key).data("name","name").data("selectId",N).addClass("select-id-quick-edit"));break;case"type":p(s&&s.type||"");break;case"role":p(b=a&&s.common.role||""),N.quickEdit&&s&&-1!==N.quickEdit.indexOf("role")&&(u.data("old-value",b),u.on("click",G).data("id",i.key).data("name","role").data("selectId",N).addClass("select-id-quick-edit"));break;case"room":if(N.roomsColored){var v=N.roomsColored[i.key];v||(v=N.roomsColored[i.key]=V(N,i.key,!0)),b=v.map(function(e){return W(e.name)}).join(", "),v.length&&v[0].origin!==i.key?u.css({color:"gray"}).attr("title",v[0].origin):u.css({color:"inherit"}).attr("title",null)}else b="";p(b),N.quickEdit&&s&&-1!==N.quickEdit.indexOf("room")&&(u.data("old-value",b).data("id",i.key).data("name","room").data("selectId",N),O(u,b,s&&N.quickEditCallback?n:void 0));break;case"function":N.funcsColored?(N.funcsColored[i.key]||(N.funcsColored[i.key]=U(N,i.key,!0)),b=N.funcsColored[i.key].map(function(e){return W(e.name)}).join(", "),N.funcsColored[i.key].length&&N.funcsColored[i.key][0].origin!==i.key?u.css({color:"gray"}).attr("title",N.funcsColored[i.key][0].origin):u.css({color:"inherit"}).attr("title",null)):b="",p(b),N.quickEdit&&s&&-1!==N.quickEdit.indexOf("function")&&(u.data("old-value",b).data("id",i.key).data("name","function").data("selectId",N),O(u,b,s&&N.quickEditCallback?n:void 0));break;case"value.ts":if(N.states&&s&&"state"===s.type)b=void 0===(b=(w=(w=N.states[i.key])||{ts:N.states[i.key+".ts"]}).ts)?"&nbsp;":b?z(new Date(b)):"",u.html('<span class="highlight select-value">'+b+"</span>");else u.text("");break;case"value.lc":if(N.states&&s&&"state"===s.type)b=void 0===(b=(w=(w=N.states[i.key]||{})||{lc:N.states[i.key+".lc"]}).lc)?"&nbsp;":b?z(new Date(b)):"",u.html('<span class="highlight select-value">'+b+"</span>");else u.text("");break;case"value.from":if(N.states&&s&&"state"===s.type)b=void 0===(b=(w=(w=N.states[i.key]||{})||{from:N.states[i.key+".from"],user:N.states[i.key+".user"]}).from)?"&nbsp;":b?b.replace(/^system\.adapter\.|^system\./,""):"",w.user&&(b+="/"+w.user.replace("system.user.","")),u.html('<span class="highlight select-value">'+b+"</span>");else u.text("");break;case"value.q":if(N.states&&s&&"state"===s.type)b=void 0===(b=R=(w=(w=N.states[i.key]||{})||{q:N.states[i.key+".q"]}).q)?"&nbsp;":Y(b),u.html('<span class="highlight select-value" style="'+(R?"orange":"")+'">'+b+"</span>");else u.text("");break;case"value.val":if(N.states&&s&&"state"===s.type){(w=N.states[i.key]||{})||(w={val:N.states[i.key+".val"],ack:void 0===N.states[i.key+".ack"]?"":N.states[i.key+".ack"]});var b=w.val,y=w.ack,I=K(N,i.key);a&&a.role&&a.role.match(/^value\.time|^date/)&&(b=b?new Date(b).toString():b),I&&void 0!==I[b]&&(b=I[b]+"("+b+")"),void 0===b?b="&nbsp;":null!==b&&""!==b||(b="&nbsp;"),"string"==typeof b&&"$nbsp;"!==b&&(b=b.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u.html('<span class="highlight select-value" style="'+(y?"":"#c00000")+'">'+b+"</span>"),s&&"state"===s.type&&a&&"file"!==a.type&&O(u,void 0===w.val||null===w.val?"":w.val.toString(),s&&N.quickEditCallback&&"state"===s.type&&(N.expertMode||!1!==a.write)?n:void 0)}else u.text("").removeClass("clippy");if(u.dblclick(function(e){e.preventDefault()}),N.quickEdit&&a&&"state"===s.type&&-1!==N.quickEdit.indexOf("value")&&(N.expertMode||!1!==a.write)){if(a.role&&a.role.match(/^button/)&&!N.expertMode)u.html('<button data-id="'+i.key+'" class="select-button-push"></button>');else if(!a||"file"!==a.type){k=(k=N.states[i.key])?k.val:"",(E=u.find("span")).data("old-value",k).data("type",a.type||typeof k),E.on("click",G).data("id",i.key).data("name","value").data("selectId",N).addClass("select-id-quick-edit")}(F=r.find('.select-button-push[data-id="'+i.key+'"]')).on("click",function(){var e=P(this).data("id");N.quickEditCallback(e,"value",!0)}).attr("title",N.texts.push),j?F.prepend('<i class="material-icons">room_service</i>'):F.button({text:!1,icons:{primary:"ui-icon-arrowthickstop-1-s"}})}a&&"file"===a.type&&(N.webServer=N.webServer||window.location.protocol+"//"+window.location.hostname+":8082",u.html('<a href="'+N.webServer+"/state/"+encodeURIComponent(i.key)+'" target="_blank">'+N.webServer+"/state/"+i.key+"</a>").attr("title",N.texts.linkToFile));break;case"value":var w;if(N.states&&s&&"state"===s.type){w=N.states[i.key];I=K(N,i.key);w=w?Object.assign({},w):{val:N.states[i.key+".val"],ts:N.states[i.key+".ts"],lc:N.states[i.key+".lc"],from:N.states[i.key+".from"],user:N.states[i.key+".user"],ack:void 0===N.states[i.key+".ack"]?"":N.states[i.key+".ack"],q:void 0===N.states[i.key+".q"]?0:N.states[i.key+".q"]},a&&a.role&&a.role.match(/^value\.time|^date/)&&(w.val=w.val?new Date(w.val).toString():w.val);var _,x=w.val;I&&void 0!==I[w.val]&&(w.val=I[w.val]+"("+w.val+")"),void 0===w.val?w.val="&nbsp;":(w.ts<9466812e5&&(w.ts*=1e3),w.lc<9466812e5&&(w.lc*=1e3),a&&a.unit&&(w.val+=" "+a.unit),_=N.texts.value+": "+w.val,_+="\n"+N.texts.ack+": "+w.ack,_+="\n"+N.texts.ts+": "+(w.ts?z(new Date(w.ts)):""),_+="\n"+N.texts.lc+": "+(w.lc?z(new Date(w.lc)):""),_+="\n"+N.texts.from+": "+(w.from||""),w.user&&(_+="\n"+N.texts.user+": "+(w.user||"")),_+="\n"+N.texts.quality+": "+Y(w.q||0)),null!==w.val&&""!==w.val||(w.val="&nbsp;"),"string"==typeof w.val&&"&nbsp;"!==w.val&&(w.val=w.val.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),u.html('<span class="highlight select-value">'+w.val+"</span>").attr("title",_),u.find("span").css({color:w.ack?w.q?"orange":"":"#c00000"}),s&&"state"===s.type&&a&&"file"!==a.type&&O(u,null==x?"":x.toString(),s&&N.quickEditCallback&&"state"===s.type&&(N.expertMode||!1!==a.write)?n:void 0)}else u.text("").attr("title","").removeClass("clippy");if(u.dblclick(function(e){e.preventDefault()}),N.quickEdit&&a&&"state"===s.type&&-1!==N.quickEdit.indexOf("value")&&(N.expertMode||!1!==a.write)){if(a.role&&a.role.match(/^button/)&&!N.expertMode)u.html('<button data-id="'+i.key+'" class="select-button-push"></button>');else if(!a||"file"!==a.type){var k,E;k=(k=N.states[i.key])?k.val:"",(E=u.find("span")).data("old-value",k).data("type",a.type||typeof k),E.on("click",G).data("id",i.key).data("name","value").data("selectId",N).addClass("select-id-quick-edit")}var F;(F=r.find('.select-button-push[data-id="'+i.key+'"]')).on("click",function(){var e=P(this).data("id");N.quickEditCallback(e,"value",!0)}).attr("title",N.texts.push),j?F.prepend('<i class="material-icons">room_service</i>'):F.button({text:!1,icons:{primary:"ui-icon-arrowthickstop-1-s"}})}a&&"file"===a.type&&(N.webServer=N.webServer||window.location.protocol+"//"+window.location.hostname+":8082",u.html('<a href="'+N.webServer+"/state/"+encodeURIComponent(i.key)+'" target="_blank">'+N.webServer+"/state/"+i.key+"</a>").attr("title",N.texts.linkToFile));break;case"button":var D;if(N.buttons)if(s||N.showButtonsForNotExistingObjects){D="",N.editEnd&&(D+='<button data-id="'+i.key+'" class="m select-button-edit"></button><button data-id="'+i.key+'" class="m select-button-ok"></button><button data-id="'+i.key+'" class="m select-button-cancel"></button>');for(var S=0;S<N.buttons.length;S++)D+='<button data-id="'+i.key+'" class="m select-button-'+S+' select-button-custom td-button"></button>';p(D);for(var T=0;T<N.buttons.length;T++){var B=r.find(".select-button-"+T+'[data-id="'+i.key+'"]');0!==B.length&&(B.on("click",function(){var e=P(this).data("callback");e&&e.call(P(this),P(this).data("id"))}).data("callback",N.buttons[T].click).attr("title",N.buttons[T].title||""),N.buttons[T].match&&N.buttons[T].match.call(B,i.key),j?B.addClass("custom-obj-btn").prepend('<i class="material-icons">'+N.buttons[T]["material-icon"]+"</i>"):B.button(N.buttons[T]))}}else u.text("");else N.editEnd&&(D='<button data-id="'+i.key+'" class="m select-button-edit"></button><button data-id="'+i.key+'" class="m select-button-ok"></button><button data-id="'+i.key+'" class="m select-button-cancel"></button>');if(N.editEnd){var $=r.find('.select-button-edit[data-id="'+i.key+'"]');$.on("click",function(){P(this).data("node").editStart()}).attr("title",N.texts.edit).data("node",i),j?$.prepend('<i class="material-icons">edit</i>'):$.button({text:!1,icons:{primary:"ui-icon-pencil"}}),($=r.find('.select-button-ok[data-id="'+i.key+'"]')).on("click",function(){var e=P(this).data("node");e.editFinished=!0,e.editEnd(!0)}).attr("title",N.texts.ok).data("node",i).hide(),j?$.prepend('<i class="material-icons">done</i>'):$.button({text:!1,icons:{primary:"ui-icon-check"}}),($=r.find('.select-button-cancel[data-id="'+i.key+'"]')).on("click",function(){var e=P(this).data("node");e.editFinished=!0,e.editEnd(!1)}).attr("title",N.texts.cancel).data("node",i).hide(),j?$.prepend('<i class="material-icons">close</i>'):$.button({text:!1,icons:{primary:"ui-icon-close"}})}break;case"enum":var M;if(a&&s.common.members&&0<s.common.members.length)M=s.common.members.length<4?"#"+s.common.members.length+" "+s.common.members.join(", "):"#"+s.common.members.length,u.html('<div class="iob-ellipsis">'+M+"</div>"),u.attr("title",s.common.members.join("\n"));else u.text(""),u.attr("title","");break;default:if("function"==typeof N.columns[g].data){b=N.columns[g].data(i.key,N.columns[g].name);var L="";if(N.columns[g].title&&(L=N.columns[g].title(i.key,N.columns[g].name)),u.html(b).attr("title",L),N.quickEdit&&s)for(var R=0;R<N.quickEdit.length;R++)if(N.quickEdit[R]===N.columns[g].name||N.quickEdit[R].name===N.columns[g].name){u.data("old-value",b).data("type",typeof b),u.on("click",G).data("id",i.key).data("name",N.columns[g].name).data("selectId",N).data("options",N.quickEdit[R].options).addClass("select-id-quick-edit");break}}}d++}},dblclick:function(e,t){if(N.buttonsDlg&&!N.quickEditCallback)t&&t.node&&!t.node.folder&&("undefined"!=typeof M?(o.find(".btn-set").trigger("click"),o.modal("close")):P("#button-ok").trigger("click"));else if(N.dblclick){var i=N.$tree.fancytree("getTree").getActiveNode();i&&N.dblclick(i.key)}},beforeExpand:function(e,t){if(N.expandedCallback&&t&&t.node)if(t.node.expanded)N.collapsedCallback(t.node.key);else{var i=0,n=!1,s=[];t.node.children&&(i=t.node.children.length,function e(t,i){if(t&&t.children){for(var n=!1,s=!1,r=0;r<t.children.length;r++)if(t.children[r].expanded)s=!0;else if(N.objects[t.children[r].data.id]&&"state"===N.objects[t.children[r].data.id].type){n=!0;break}if(n)i.push(t.data.id||t.key);else if(s)for(var o=0;o<t.children.length;o++)t.children[o].expanded&&e(t.children[o],i)}}(t.node,s),s.length&&(n=!0)),s.length||s.push(t.node.key),N.expandedCallback(s,i,n)}},collapse:function(e,t){}};N.editEnd&&(p.extensions.push("edit"),p.edit={triggerStart:["f2","dblclick","shift+click","mac+enter"],triggerStop:["esc"],beforeEdit:function(e,t){if(!N.objects[t.node.key])return!1},edit:function(e,i){o.find('.select-button-edit[data-id="'+i.node.key+'"]').hide(),o.find('.select-button-cancel[data-id="'+i.node.key+'"]').show(),o.find('.select-button-ok[data-id="'+i.node.key+'"]').show(),o.find('.select-button-custom[data-id="'+i.node.key+'"]').hide();var t=i.node,n=P(t.tr).find(">td"),s={id:i.input};for(var r in T(N,function(e,t){"name"===e&&(s[e]=P('<input type="text" data-name="'+e+'" class="select-edit" value="'+N.objects[i.node.key].common[e]+'" style="width: 100%"/>'),n.eq(t).html(s[e]))}),s)s[r].keyup(function(e){var t;13===e.which?((t=P(this).data("node")).editFinished=!0,t.editEnd(!0)):27===e.which&&((t=P(this).data("node")).editFinished=!0,t.editEnd(!1))}).data("node",t);N.editStart&&N.editStart(i.node.key,s),t.editFinished=!1},beforeClose:function(e,t){return t.node.editFinished},save:function(e,t){var i={id:t.input.val()};return T(N,function(e){"name"===e&&(i[e]=o.find('.select-edit[data-name="'+e+'"]').val())}),N.editEnd&&N.editEnd(t.node.key,i),t.node.render(!0),!0},close:function(e,t){o.find('.select-button-edit[data-id="'+t.node.key+'"]').show(),o.find('.select-button-cancel[data-id="'+t.node.key+'"]').hide(),o.find('.select-button-ok[data-id="'+t.node.key+'"]').hide(),o.find('.select-button-custom[data-id="'+t.node.key+'"]').show(),void 0!==t.node.editFinished&&delete t.node.editFinished,N.save&&P(N.node.span).addClass("pending")}}),N.$tree.fancytree(p).on("nodeCommand",function(e,t){var i,n=P(this).fancytree("getTree").getActiveNode();switch(t.cmd){case"moveUp":n.moveTo(n.getPrevSibling(),"before"),n.setActive();break;case"moveDown":n.moveTo(n.getNextSibling(),"after"),n.setActive();break;case"indent":i=n.getPrevSibling(),n.moveTo(i,"child"),i.setExpanded(),n.setActive();break;case"outdent":n.moveTo(n.getParent(),"after"),n.setActive();break;case"delete":var s=P(n.tr).find(".select-button-1");s&&s.length&&s.trigger("click");break;case"rename":var r=P(n.tr).find(".objects-name-coll-title");r&&r.length&&r.trigger("click");break;default:return void alert("Unhandled command: "+t.cmd)}}).on("keydown",function(e){if(!N.editing){var t=null;if(e.ctrlKey)switch(e.which){case"c":t="copy";break;case P.ui.keyCode.UP:t="moveUp";break;case P.ui.keyCode.DOWN:t="moveDown";break;case P.ui.keyCode.RIGHT:t="indent";break;case P.ui.keyCode.LEFT:t="outdent"}else switch(e.which){case P.ui.keyCode.DELETE:t="delete";break;case 113:t="rename"}return t?(P(this).trigger("nodeCommand",{cmd:t}),!1):void 0}}),d=N,(g=t)&&d.$tree&&(function e(t){if(Array.isArray(t.children))for(var i=0,n=t.children.length;i<n;i++){var s=t.children[i];if(g[s.key])try{s.setExpanded()}catch(e){console.log("Cannot expand: "+e)}e(s)}}(d.$tree.fancytree("getRootNode")),g=null),P(window).on("resize",function(){f&&clearTimeout(f),f=setTimeout(function(){E(o)},100)}),o.trigger("resize"),o.find(".filter").change(function(e){N.filterVals=null,e&&e.target&&filterChanged(e.target);var t=o.find(".objects-list-running");t.show(),N.$tree.fancytree("getTree").filterNodes(y,!1),t.hide()}).keyup(function(){var e=N.$tree[0];e._timer&&(e._timer=clearTimeout(e._timer));var t=this;e._timer=setTimeout(function(){P(t).trigger("change")},200)});var m=o.find(".filter-btn");for(var C in m.on("click",function(){o.find('.filter[data-index="'+P(this).data("index")+'"]').val("").trigger("change")}),j?m.prepend('<i class="material-icons">close</i>'):m.button({icons:{primary:"ui-icon-close"},text:!1}),(m=o.find(".btn-collapse")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.$tree.fancytree("getRootNode").visit(function(e){(!N.filterVals.length||e.match||e.subMatchCount)&&e.setExpanded(!1)}),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.collapse),j?m.prepend('<i class="material-icons">folder</i>'):m.button({icons:{primary:"ui-icon-folder-collapsed"},text:!1}),(m=o.find(".btn-expand")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.$tree.fancytree("getRootNode").visit(function(e){(!N.filterVals.length||e.match||e.subMatchCount)&&e.setExpanded(!0)}),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.expand),j?m.prepend('<i class="material-icons">folder_open</i>'):m.button({icons:{primary:"ui-icon-folder-open"},text:!1}),(m=o.find(".btn-list")).on("click",function(){o.find(".objects-list-running").show(),N.list=!N.list,N.list?(o.find(".btn-list").addClass("ui-state-error red lighten-3"),o.find(".btn-collapse").hide(),P(this).attr("title",N.texts.list)):(o.find(".btn-list").removeClass("ui-state-error red lighten-3"),o.find(".btn-expand").show(),o.find(".btn-collapse").show(),P(this).attr("title",N.texts.tree)),o.find(".objects-list-running").show(),setTimeout(function(){N.inited=!1,B(N.$dlg),o.find(".objects-list-running").hide()},200)}).attr("title",N.texts.tree),j?m.prepend('<i class="material-icons">format_list_bulleted</i>'):m.button({icons:{primary:"ui-icon-grip-dotted-horizontal"},text:!1}),N.list&&(o.find(".btn-list").addClass("ui-state-error red lighten-3").attr("title",N.texts.list),o.find(".btn-expand").hide(),o.find(".btn-collapse").hide()),(m=o.find(".btn-refresh")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.inited=!1,N.getObjects?N.getObjects(function(e,t){N.objects=t,B(N.$dlg),o.find(".objects-list-running").hide()}):(B(N.$dlg),o.find(".objects-list-running").hide())},100)}).attr("title",N.texts.refresh),j?m.prepend('<i class="material-icons">refresh</i>'):m.button({icons:{primary:"ui-icon-refresh"},text:!1}),(m=o.find(".btn-sort")).on("click",function(){o.find(".objects-list-running").show(),N.sort=!N.sort,N.sort?o.find(".btn-sort").addClass("ui-state-error red lighten-3"):o.find(".btn-sort").removeClass("ui-state-error red lighten-3"),$(N,!0),setTimeout(function(){N.inited=!1,w(N),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.sort),N.sort&&o.find(".btn-sort").addClass("ui-state-error red lighten-3"),j?m.prepend('<i class="material-icons">sort_by_alpha</i>'):m.button({icons:{primary:"ui-icon-bookmark"},text:!1}),(m=o.find(".btn-history")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.customButtonFilter.callback(),o.find(".objects-list-running").hide()},1)}).attr("title",N.texts.history),j?m.prepend('<i class="material-icons">build</i>'):m.button({icons:{primary:"ui-icon-gear"},text:!1}),(m=o.find(".btn-select-all")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.$tree.fancytree("getRootNode").visit(function(e){(!N.filterVals.length||e.match||e.subMatchCount)&&N.objects[e.key]&&"state"===N.objects[e.key].type&&e.setSelected(!0)}),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.selectAll),j?m.prepend('<i class="material-icons">playlist_add_check</i>'):m.button({icons:{primary:"ui-icon-circle-check"},text:!1}),N.expertModeRegEx&&((m=o.find(".btn-expert")).on("click",function(){o.find(".objects-list-running").show(),N.expertMode=!N.expertMode,N.expertMode?o.find(".btn-expert").addClass("ui-state-error red lighten-3"):o.find(".btn-expert").removeClass("ui-state-error red lighten-3"),$(N,!0),setTimeout(function(){N.inited=!1,B(N.$dlg),o.find(".objects-list-running").hide()},200)}).attr("title",N.texts.expertMode),N.expertMode&&o.find(".btn-expert").addClass("ui-state-error red lighten-3"),j?m.prepend('<i class="material-icons">assignment_ind</i>'):m.button({icons:{primary:"ui-icon-person"},text:!1})),(m=o.find(".btn-unselectall")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.$tree.fancytree("getRootNode").visit(function(e){e.setSelected(!1)}),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.unselectAll),j?m.prepend('<i class="material-icons">cancel</i>'):m.button({icons:{primary:"ui-icon-circle-close"},text:!1}),(m=o.find(".btn-invert-selection")).on("click",function(){o.find(".objects-list-running").show(),setTimeout(function(){N.$tree.fancytree("getRootNode").visit(function(e){(!N.filterVals.length||e.match||e.subMatchCount)&&N.objects[e.key]&&"state"===N.objects[e.key].type&&e.toggleSelected()}),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.invertSelection),j?m.prepend('<i class="material-icons">invert_colors</i>'):m.button({icons:{primary:"ui-icon-transferthick-e-w"},text:!1}),N.useValues&&((m=o.find(".btn-values")).on("click",function(){N.valuesActive=!N.valuesActive,L(N),window.localStorage&&window.localStorage.setItem(N.name+"-values",N.valuesActive?"true":"false"),o.find(".objects-list-running").show(),setTimeout(function(){N.inited=!1,B(N.$dlg),o.find(".objects-list-running").hide()},100)}).attr("title",N.texts.toggleValues),L(N)),j?m.prepend('<i class="material-icons">looks_one</i>'):m.button({icons:{primary:"ui-icon-tag"},text:!1}),i)try{C&&S(N,C,i[C])}catch(e){console.error("Cannot apply filter: "+e)}if(N.panelButtons)for(var A=0;A<N.panelButtons.length;A++)(m=o.find(".btn-custom-"+A)).attr("title",N.panelButtons[A].title||""),m.on("click",N.panelButtons[A].click),j?m.addClass("custom-toolbar-btn").prepend('<i class="material-icons">'+N.panelButtons[A]["material-icon"]+"</i>"):m.button(N.panelButtons[A]);for(var v in k(o),function e(t,i){!t.noColumnResize&&P.fn.colResizable&&(t.$tree.is(":visible")?(t.$tree.colResizable({liveDrag:!0,resizeMode:"fit",minWidth:50,partialRefresh:!0,marginLeft:5,postbackSafe:!0,onResize:function(){E(i)}}),E(i)):setTimeout(function(){e(t,i)},400))}(N,o),function(e){if("undefined"!=typeof Storage&&e.name){var t=window.localStorage.getItem(e.name+"-filter");if(t)try{for(var i in removeImageFromSettings(t=JSON.parse(t)),t)t.hasOwnProperty(i)&&"length"!==i&&(e.filterPresets[i]||S(e,i,t[i]))}catch(e){console.error("Cannot parse settings: "+e)}else e.filter||S(e,"type","state")}}(N),"dialog-select-member"!==o.attr("id")&&"dialog-select-members"!==o.attr("id")?setTimeout(function(){o.css({height:"100%"})},500):o.attr("id"),N.filterPresets)N.filterPresets.hasOwnProperty(v)&&N.filterPresets[v]&&("object"==typeof N.filterPresets[v]?S(N,v,N.filterPresets[v][0]):S(N,v,N.filterPresets[v]));w(N)}function b(e,t){var i="";if(-1!==N.columns.indexOf(e)){void 0===t&&(t=N.texts[e.toLowerCase()]||"");var n=function(e){var t,i=[];switch(e){case"room":for(t=0;t<N.roomEnums.length;t++)i.push(H(N.objects[N.roomEnums[t]],N.roomEnums[t]));return i;case"function":for(t=0;t<N.funcEnums.length;t++)i.push(H(N.objects[N.funcEnums[t]],N.funcEnums[t]));return i;case"role":for(var n=0;n<N.roles.length;n++)i.push(N.roles[n]);return i;case"type":for(var s=0;s<N.types.length;s++)i.push(N.types[s]);return i;case"button":i.push([N.texts.all,""]),i.push([N.texts.with,"true"]),i.push([N.texts.without,"false"]);for(var r=0;r<N.histories.length;r++)i.push(N.histories[r]);return i}return i}(e),s='<select data-index="'+e+'" class="filter">',r=function(e,t){Array.isArray(e)?(t=e[0],e=e[1]):void 0===t&&(t=e),s+='<option value="'+e+'">'+t+"</option>"};r("",void 0!==addAll2FilterCombobox&&addAll2FilterCombobox?t+" ("+N.texts.all+")":t);for(var o=0,a=n.length;o<a;o++)r(n[o]);i=(s+="</select>")+'<button data-index="'+e+'" class="filter-btn"></button>\n'}else"room"===e?(N.rooms&&delete N.rooms,N.roomsColored&&delete N.roomsColored):"function"===e&&(N.funcs&&delete N.funcs,N.funcsColored&&delete N.funcsColored);return i}function O(e,t,i){if(!N.noCopyToClipboard){var n=e.data("name");"function"===n||"room"===n?e.addClass("edit-enum edit-dialog"):e.addClass("clippy"+(i?" edit-dialog":"")),void 0!==t&&e.data("clippy",t),i&&e.data("id",i),e.css({position:"relative"}).data("data",N).mouseenter(F).mouseleave(D)}}function y(e){if(e.parent&&e.parent.match)return!0;var t;null===N.filterVals&&(N.filterVals={length:0},T(N,function(e){t=o.find('.filter[data-index="'+e+'"]').val(),"role"!==e&&"type"!==e&&"room"!==e&&"function"!==e&&t&&(t=t.toLowerCase()),t&&(N.filterVals[e]=t,N.filterVals.length++)}),N.noDialog&&$(N));var i,n=N.objects[e.key],s=n&&n.common;for(var r in N.filterVals)if(N.filterVals.hasOwnProperty(r))switch(r){case"length":continue;case"ID":if(-1===e.key.toLowerCase().indexOf(N.filterVals[r]))return!1;break;case"name":case"enum":if(!s||void 0===n.common[r])return!1;if("object"==typeof(i=n.common[r])&&(i=i[systemLang]||i.en||""),-1===(i||"").toLowerCase().indexOf(N.filterVals[r]))return!1;break;case"role":if(N.roleExactly){if(!s||void 0===n.common[r]||n.common[r]!==N.filterVals[r])return!1}else if(!s||void 0===n.common[r]||-1===n.common[r].indexOf(N.filterVals[r]))return!1;break;case"type":if(!n||void 0===n[r]||n[r]!==N.filterVals[r])return!1;break;case"button":if("true"===N.filterVals[r]){if(!s||!n.common.custom||!1===n.common.custom.enabled)return!1}else if("false"===N.filterVals[r]){if(!s||"state"!==n.type||n.common.custom)return!1}else if(N.filterVals[r]&&(!s||!n.common.custom||!n.common.custom[N.filterVals[r]]))return!1;break;case"room":if(!n||!N.rooms)return!1;if(N.rooms[e.key]||(N.rooms[e.key]=V(N,e.key)),-1===N.rooms[e.key].indexOf(N.filterVals[r]))return!1;break;case"function":if(!n||!N.funcs)return!1;if(N.funcs[e.key]||(N.funcs[e.key]=U(N,e.key)),-1===N.funcs[e.key].indexOf(N.filterVals[r]))return!1}return!0}}function $(e,t){"undefined"!=typeof Storage&&e.name&&(e.timer&&clearTimeout(e.timer),e.timer=t?(window.localStorage.setItem(e.name+"-filter",JSON.stringify(e.filterVals)),window.localStorage.setItem(e.name+"-expert",JSON.stringify(e.expertMode)),window.localStorage.setItem(e.name+"-sort",JSON.stringify(e.sort)),window.localStorage.setItem(e.name+"-values",e.valuesActive?"true":"false"),null):setTimeout(function(){window.localStorage.setItem(e.name+"-filter",JSON.stringify(e.filterVals)),window.localStorage.setItem(e.name+"-expert",JSON.stringify(e.expertMode)),window.localStorage.setItem(e.name+"-sort",JSON.stringify(e.sort)),window.localStorage.setItem(e.name+"-values",e.valuesActive?"true":"false")},500))}function L(e){e.valuesActive?e.$dlg.find(".btn-values").addClass("ui-state-error red lighten-3"):e.$dlg.find(".btn-values").removeClass("ui-state-error red lighten-3")}function J(e,t){var i=t.ids.indexOf(e),n=t.ids.length,s=0;if(-1===e.indexOf(".")||t.objects[e]&&("state"===t.objects[e].type||"adapter"===t.objects[e].type))return s;if(-1===i){for(i=0;i<n&&t.ids[i]<e;)i++;i--}if(-1!==i)for(i++;i<n&&t.ids[i].startsWith(e+".");)i++,s++;return s}function A(e){e.$dlg.find(".objects-info .objects-val-objs").html('<span class="highlight">'+e.stats.objs+"</span>"),e.$dlg.find(".objects-info .objects-val-states").html('<span class="highlight">'+e.stats.states+"</span>")}function v(e,t){var i=e.key,n=P(e.tr).find(">td").eq(0),s=J(i,t);if(s){var r=n.find(".select-id-cnt");r.length?r.text("#"+s):n.append('<span class="select-id-cnt">#'+s+"</span>")}else n.find(".select-id-cnt").remove();if(e.children&&e.children.length)for(var o=0;o<e.children.length;o++)v(e.children[o],t)}}(jQuery);var JQUERY_CRON_LOCALE={en:{ORDINALS:{th:"th",st:"st",nd:"nd",rd:"rd"},MONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],DOW:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],Every:"Every",and:"and","every day":"every day","minute past the":"minute past the",hour:"hour",minute:"minute","minute of":"minute of",second:"second","second in minute":"second in minute","second of every":"second of every","minute every hour":"minute every hour","on the":"on the","of every month":"of every month","and every":"and every",At:"At",on:"on",in:"in"},de:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],DOW:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],Every:"Jede(r)",and:"und","every day":"jeden Tag","minute past the":"Minuten nach",hour:"Stunde",minute:"Minute","minute of":"Minuten von",second:"Sekunde","second in minute":"Sekunde in der Minute","second of every":"Sekunde in","minute every hour":"Minute jede Stunde","on the":"am","of every month":"im jeden Monat","and every":"und am jeden",At:"Um",on:"am",in:"im"},ru:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Январе","Феврале","Марте","Апреле","Майе","Июне","Июле","Августе","Сентябре","Октябре","Ноябре","Декабре"],DOW:["воскресение","понедельник","вторник","среду","четверг","пятницу","субботу"],Every:"Каждую(ый)",and:"и","every day":"каждый день","minute past the":"минуту в",hour:"часа(ов)",minute:"минуту","minute of":"минут(у) в",second:"секунду","second in minute":"секунду в минуте","second of every":"секунду каждой(го)","minute every hour":"минуту каждый час","on the":"","of every month":"числа каждого месяца","and every":"и каждый",At:"В",on:"в",in:"в"},fr:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["janv.","févr.","mars","avr.","mai","juin","juill.","août","sept.","oct.","nov.","déc."],DOW:["dim.","lun.","mar.","mer.","jeu.","ven.","samm"],Every:"Chaque",and:"et","every day":"tous les jours","minute past the":"minute après le",hour:"heure",minute:"minute","minute of":"minute de",second:"seconde","second in minute":"seconde de la minute","second of every":"deuxième de tous","minute every hour":"minute toutes les heures","on the":"sur le","of every month":"de chaque mois","and every":"et tous",At:"À",on:"sur",in:"dans"},it:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Jan","Feb","Mar","Apr","Pot","Giu","Lug","Aug","Sep","Oct","Nov","Dic"],DOW:["Dom","Mon","Mar","Mer","Gio","Ve","Sat"],Every:"Ogni",and:"e","every day":"ogni giorno","minute past the":"minuto dopo",hour:"ora",minute:"Minuto","minute of":"minuto di",second:"secondo","second in minute":"secondo in minuto","second of every":"secondo di ogni","minute every hour":"minuto ogni ora","on the":"sul","of every month":"di ogni mese","and every":"e ogni",At:"A",on:"sopra",in:"in"},pt:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Jan","Feb","Mar","Abr","Pod","Jun","Jul","Ago","Sep","Oct","Nov","Dec"],DOW:["Dom","Seg","Ter","Qua","Qui","Sex","Sen"],Every:"Cada",and:"e","every day":"todo dia","minute past the":"minuto após o",hour:"hora",minute:"minuto","minute of":"minuto de",second:"segundo","second in minute":"segundo em minuto","second of every":"segundo de cada","minute every hour":"minuto a cada hora","on the":"no","of every month":"de todos os meses","and every":"e todos",At:"At",on:"em",in:"dentro"},es:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Ene","Feb","Mar","Abr","Mayo","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],DOW:["Sol","Lun","Mar","Mie","Jue","Vie","Sab"],Every:"Cada",and:"y","every day":"cada día","minute past the":"minuto pasado el",hour:"hora",minute:"minuto","minute of":"minuto de",second:"segundo","second in minute":"segundo en minuto","second of every":"segundo de cada","minute every hour":"minuto cada hora","on the":"sobre el","of every month":"de cada mes","and every":"y cada",At:"A",on:"en",in:"en"},nl:{ORDINALS:{th:"",st:"",nd:"",rd:""},MONTH:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Aug","Sep","Okt","Nov","Dec"],DOW:["Zon","Mon","Di","Wo","Don","Vrij","Za"],Every:"Elke",and:"en","every day":"elke dag","minute past the":"minuut voorbij de",hour:"uur",minute:"minuut","minute of":"minuut van",second:"tweede","second in minute":"tweede in minuut","second of every":"tweede van alles","minute every hour":"minuut elk uur","on the":"op de","of every month":"van elke maand","and every":"en elke",At:"Op",on:"op",in:"in"}},jQueryCronWords={April:{en:"April",de:"April",ru:"Апр",pt:"Abril",nl:"April",fr:"Avril",it:"Aprile",es:"Abril"},Aug:{en:"Aug",de:"Aug",ru:"Авг",pt:"Ago",nl:"Augustus",fr:"Août",it:"Agosto",es:"Ago"},"CRON Every":{en:"Every",de:"Alle",ru:"Каждые",pt:"Cada",nl:"Elk",fr:"Chaque",it:"Ogni",es:"Cada"},"CRON Every day":{en:"Every day",de:"Jeden Tag",ru:"Каждый день",pt:"Todo dia",nl:"Elke dag",fr:"Tous les jours",it:"Ogni giorno",es:"Cada día"},"CRON Every hour":{en:"Every hour",de:"Jede Stunde",ru:"Каждый час",pt:"Toda hora",nl:"Elk uur",fr:"Toutes les heures",it:"Ogni ora",es:"Cada hora"},"CRON Every minute":{en:"Every minute",de:"Jede Minute",ru:"Каждую минуту",pt:"Todo minuto",nl:"Elke minuut",fr:"Chaque minute",it:"Ogni minuto",es:"Cada minuto"},"CRON Every month":{en:"Every month",de:"Jeden Monat",ru:"Каждый месяц",pt:"Todo mês",nl:"Elke maand",fr:"Chaque mois",it:"Ogni mese",es:"Cada mes"},"CRON Every second":{en:"Every second",de:"Jede Sekunde",ru:"Каждую секунду",pt:"Todo segundo",nl:"Elke seconde",fr:"Chaque seconde",it:"Ogni secondo",es:"Cada segundo"},"CRON Every week day":{en:"Every week day",de:"Jeden Wochentag",ru:"Каждый день недели",pt:"Todos os dias da semana",nl:"Elke weekdag",fr:"Tous les jours de la semaine",it:"Ogni giorno della settimana",es:"Todos los días de la semana"},"CRON day":{en:"day",de:"Tag",ru:"день",pt:"dia",nl:"dag",fr:"jour",it:"giorno",es:"día"},"CRON days":{en:"days",de:"Tage",ru:"дней",pt:"dias",nl:"Dagen",fr:"jours",it:"giorni",es:"dias"},"CRON hour":{en:"hour",de:"Stunde",ru:"час",pt:"hora",nl:"uur",fr:"heure",it:"ora",es:"hora"},"CRON hours":{en:"hours",de:"Stunden",ru:"часа(ов)",pt:"horas",nl:"Uren",fr:"heures",it:"ore",es:"horas"},"CRON minute":{en:"minute",de:"Minute",ru:"минуту",pt:"minuto",nl:"minuut",fr:"minute",it:"Minuto",es:"minuto"},"CRON minutes":{en:"minutes",de:"Minuten",ru:"минут(ы)",pt:"minutos",nl:"notulen",fr:"minutes",it:"minuti",es:"minutos"},"CRON month":{en:"month",de:"Monat",ru:"месяц",pt:"mês",nl:"maand",fr:"mois",it:"mese",es:"mes"},"CRON months":{en:"months",de:"Monate",ru:"месяца",pt:"meses",nl:"maanden",fr:"mois",it:"mesi",es:"meses"},"CRON second":{en:"second",de:"Sekunde",ru:"секунду",pt:"segundo",nl:"tweede",fr:"seconde",it:"secondo",es:"segundo"},"CRON seconds":{en:"seconds",de:"Sekunden",ru:"секунд(ы)",pt:"segundos",nl:"Seconden",fr:"secondes",it:"secondi",es:"segundos"},"CRON Clear":{en:"Clear",de:"Löschen",ru:"Clear",pt:"Limpar",nl:"Duidelijk",fr:"Effacer",it:"Pulito",es:"Limpio"},"CRON Day of Month":{en:"Day of Month",de:"Monatstag",ru:"День месяца",pt:"Dia do mês",nl:"Dag van de maand",fr:"Jour du mois",it:"Giorno del mese",es:"Dia del mes"},"CRON Day of Week":{en:"Day of Week",de:"Wochentag",ru:"Дни недели",pt:"Dia da semana",nl:"Dag van de week",fr:"Jour de la semaine",it:"Giorno della settimana",es:"Día de la semana"},"CRON dialog":{en:"CRON dialog",de:"CRON Dialog",ru:"CRON диалог",pt:"CRON diálogo",nl:"CRON dialoog",fr:"Dialogue CRON",it:"CRON dialogo",es:"CRON diálogo"},"CRON Type":{en:"Type",de:"Art",ru:"Тип",pt:"Tipo",nl:"Type",fr:"Type",it:"Genere",es:"Tipo"},"CRON Apply":{en:"Apply",de:"Anwenden",ru:"Перенять",pt:"Aplique",nl:"Toepassen",fr:"Appliquer",it:"Applicare",es:"Aplicar"},"CRON Cancel":{en:"Cancel",de:"Abbrechen",ru:"Отмена",pt:"Cancelar",nl:"Annuleer",fr:"Annuler",it:"Annulla",es:"Cancelar"},Dec:{en:"Dec",de:"Dez",ru:"Дек",pt:"Dec",nl:"DEC",fr:"Déc.",it:"Dec",es:"Dic"},"Each day":{en:"Each Day",de:"Jeden Tag",ru:"Каждый день",pt:"Cada dia",nl:"Elke dag",fr:"Chaque jour",it:"Ogni giorno",es:"Cada día"},"Each month":{en:"Each Month",de:"Jeden Monat",ru:"Каждый месяц",pt:"Cada mês",nl:"Elke maand",fr:"Chaque mois",it:"Ogni mese",es:"Cada mes"},"CRON Each selected day":{en:"Each selected Day",de:"Jeden ausgewählten Tag",ru:"Каждый выбранный день",pt:"Cada dia selecionado",nl:"Elke geselecteerde dag",fr:"Chaque jour sélectionné",it:"Ogni giorno selezionato",es:"Cada día seleccionado"},"CRON Each selected hour":{en:"Each Selected Hour",de:"Jede ausgewählte Stunde",ru:"Каждый выбранный час",pt:"Cada Hora Selecionada",nl:"Elk geselecteerd uur",fr:"Chaque heure sélectionnée",it:"Ogni ora selezionata",es:"Cada hora seleccionada"},"CRON Each selected minute":{en:"Each selected minute",de:"Jede ausgewählte Minute",ru:"Каждую выбранную минуту",pt:"Cada minuto selecionado",nl:"Elke geselecteerde minuut",fr:"Chaque minute sélectionnée",it:"Ogni minuto selezionato",es:"Cada minuto seleccionado"},"CRON Each selected month":{en:"Each selected month",de:"Jeden ausgewählten Monat",ru:"Каждый выбранный месяц",pt:"Cada mês selecionado",nl:"Elke geselecteerde maand",fr:"Chaque mois sélectionné",it:"Ogni mese selezionato",es:"Cada mes seleccionado"},"CRON Each selected second":{en:"Each selected second",de:"Jede ausgewählte Sekunde",ru:"Каждую выбранную секунду",pt:"Cada segundo selecionado",nl:"Elke geselecteerde seconde",fr:"Chaque seconde sélectionnée",it:"Ogni secondo selezionato",es:"Cada segundo seleccionado"},"CRON Each selected week day":{en:"Each selected week day",de:"Jeden ausgewählten Wochentag",ru:"Каждый выбранный день недели",pt:"Cada dia da semana selecionado",nl:"Elke geselecteerde weekdag",fr:"Chaque jour de la semaine sélectionné",it:"Ogni giorno della settimana selezionato",es:"Cada día de la semana seleccionado"},"CRON Every %s seconds":{en:"Every %s seconds",de:"Alle %s Sekunden",ru:"Каждые %s секунд(ы)",pt:"Todos os %s segundos",nl:"Elke% s seconden",fr:"Chaque %s seconde",it:"Ogni %s secondi",es:"Cada %s segundos"},"CRON Every n hours":{en:"Every n Hours",de:"Alle N Stunden",ru:"Каждые N часов",pt:"Todas as horas",nl:"Every n Hours",fr:"Toutes les n heures",it:"Ogni n ore",es:"Cada n horas"},"CRON Every n minutes":{en:"Every n minutes",de:"Alle N Minuten",ru:"Каждые N минут",pt:"A cada n minutos",nl:"Elke n minuten",fr:"Toutes les n minutes",it:"Ogni n minuti",es:"Cada n minutos"},"CRON Every n seconds":{en:"Every n seconds",de:"Alle N Sekunden",ru:"Каждые N секунд",pt:"Cada n segundos",nl:"Elke n seconden",fr:"Toutes les n secondes",it:"Ogni n secondi",es:"Cada n segundos"},Feb:{en:"Feb",de:"Feb",ru:"Фев",pt:"Feb",nl:"Februari",fr:"Févr.",it:"Febbraio",es:"Feb"},Friday:{en:"Friday",de:"Freitag",ru:"Пятница",pt:"Sexta-feira",nl:"Vrijdag",fr:"Vendredi",it:"Venerdì",es:"Viernes"},"CRON Hour":{en:"Hour",de:"Stunden",ru:"Часы",pt:"Hora",nl:"Uur",fr:"Heure",it:"Ora",es:"Hora"},Jan:{en:"Jan",de:"Jan",ru:"Янв",pt:"Jan",nl:"Jan",fr:"Janv.",it:"Jan",es:"Ene"},July:{en:"July",de:"Juli",ru:"Июль",pt:"Julho",nl:"Juli",fr:"Juillet",it:"Luglio",es:"Julio"},June:{en:"June",de:"Juni",ru:"Июнь",pt:"Junho",nl:"Juni",fr:"Juin",it:"Giugno",es:"Junio"},March:{en:"March",de:"März",ru:"Март",pt:"Marcha",nl:"Maart",fr:"Mars",it:"Marzo",es:"Marzo"},May:{en:"May",de:"Mai",ru:"Mай",pt:"Maio",nl:"Mei",fr:"Mai",it:"Maggio",es:"Mayo"},"CRON Minute":{en:"Minute",de:"Minuten",ru:"Минуты",pt:"Minuto",nl:"Minuut",fr:"Minute",it:"Minuto",es:"Minuto"},Monday:{en:"Monday",de:"Montag",ru:"Понедельник",pt:"Segunda-feira",nl:"Maandag",fr:"Lundi",it:"Lunedi",es:"Lunes"},"CRON Month":{en:"Month",de:"Monate",ru:"Месяцы",pt:"Mês",nl:"Maand",fr:"Mois",it:"Mese",es:"Mes"},Nov:{en:"Nov",de:"Nov",ru:"Ноя",pt:"Nov",nl:"November",fr:"Nov.",it:"Novembre",es:"Nov"},Oct:{en:"Oct",de:"Okt",ru:"Окт",pt:"Oct",nl:"Oct",fr:"Oct.",it:"Ottobre",es:"Oct"},Saturday:{en:"Saturday",de:"Samstag",ru:"Суббота",pt:"Sábado",nl:"Zaterdag",fr:"Samedi",it:"Sabato",es:"Sábado"},"CRON Second":{en:"Second",de:"Sekunden",ru:"Секунды",pt:"Segundo",nl:"Tweede",fr:"Seconde",it:"Secondo",es:"Segundo"},Sept:{en:"Sept",de:"Sept",ru:"Сен",pt:"Sept",nl:"September",fr:"Sept.",it:"Settembre",es:"Sept"},Sunday:{en:"Sunday",de:"Sonntag",ru:"Воскресение",pt:"Domingo",nl:"Zondag",fr:"Dimanche",it:"Domenica",es:"Domingo"},Thursday:{en:"Thursday",de:"Donnerstag",ru:"Четверг",pt:"Quinta-feira",nl:"Donderdag",fr:"Jeudi",it:"Giovedi",es:"Jueves"},Tuesday:{en:"Tuesday",de:"Dienstag",ru:"Вторник",pt:"Terça",nl:"Dinsdag",fr:"Mardi",it:"Martedì",es:"Martes"},"CRON Use seconds":{en:"Use seconds",de:"Benutzen Sekunden",ru:"Задействовать секунды",pt:"Use segundos",nl:"Gebruik seconden",fr:"Utiliser les secondes",it:"Usa secondi",es:"Usar segundos"},Wednesday:{en:"Wednesday",de:"Mittwoch",ru:"Среда",pt:"Quarta-feira",nl:"Woensdag",fr:"Mercredi",it:"Mercoledì",es:"Miércoles"},never:{en:"Never",de:"Nie",ru:"Никогда",pt:"Nunca",nl:"Nooit",fr:"Jamais",it:"Mai",es:"Nunca"}};function translateCron(){if(void 0!==systemDictionary&&!systemDictionary["CRON Every %s seconds"])for(var e in jQueryCronWords)jQueryCronWords.hasOwnProperty(e)&&(systemDictionary[e]=jQueryCronWords[e])}function setupCron(e,t){var h=$("#dialog-cron"),r=h.find(".cron-input"),s=h.find(".cron-checkbox-seconds");h.data("callback",t),void 0!==e&&r.val(e),h.find(".btn-clear").off("click").click(function(e){e.stopPropagation(),e.preventDefault(),r.val("").trigger("change")}),h.find(".btn-apply").off("click").click(function(){var e=h.data("callback");h.data("callback",null),e(r.val())}),h.find(".btn-cancel").off("click").click(function(){var e=h.data("callback");h.data("callback",null),e()});var o,u=["second","minute","hour","day","month","week"],a=!1;(e=r.val())?5===(o=e.split(" ")).length?(s.prop("checked",!1),o.unshift("*")):s.prop("checked",!0):(s.prop("checked",!1),o=null);var l={second:b,minute:y,hour:I,day:w,month:x,week:k};function i(e){void 0===e&&(e=s.prop("checked")),e?h.find(".cron-tab-second").show():(h.find(".cron-tab-second").hide(),"cron-tabs-second"===M.Tabs.getInstance(h.find(".tabs")).$activeTabLink.attr("href").replace(/^#/,"")&&h.find(".tabs").mtabs("select","cron-tabs-minute"))}function n(e){if(void 0===e&&(e=r.val()),!(e=e.trim()))return i(!1),null;var t=e.split(" ");return 5===t.length?(t.unshift("*"),i(!1)):i(!0),t}function c(){var e=function(e){if(e||(e=o),!e)return"";e=JSON.parse(JSON.stringify(e||["*","*","*","*","*","*"])),s.prop("checked")||e.shift();for(var t=0;t<e.length;t++)"*/1"===e[t]&&(e[t]="*");return e.join(" ")}();r.val(e),d(e)}function d(e){if(e){var t,i=s.prop("checked"),n=cronToText(e,i,JQUERY_CRON_LOCALE[systemLang]);t=n,i&&o[0],n=t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("Каждую(ый) минуту","Каждую минуту")).replace("Каждую(ый) минут(у)","Каждую минуту")).replace("Каждую(ый) час","Каждый час")).replace("Каждую(ый) секунду","Каждую секунду")).replace(/ (\d{1,2}) числа/," $1го числа")).replace(/ (\d{1,2}) в Январе/," $1го числа в Январе")).replace(/ (\d{1,2}) в Феврале/," $1го числа в Феврале")).replace(/ (\d{1,2}) в Марте/," $1го числа в Марте")).replace(/ (\d{1,2}) в Апреле/," $1го числа в Апреле")).replace(/ (\d{1,2}) в Майе/," $1го числа в Майе")).replace(/ (\d{1,2}) в Июне/," $1го числа в Июне")).replace(/ (\d{1,2}) в Июле/," $1го числа в Июле")).replace(/ (\d{1,2}) в Августе/," $1го числа в Августе")).replace(/ (\d{1,2}) в Сентябре/," $1го числа в Сентябре")).replace(/ (\d{1,2}) в Октябре/," $1го числа в Октябре")).replace(/ (\d{1,2}) в Ноябре/," $1го числа в Ноябре")).replace(/ (\d{1,2}) в Декабре/," $1го числа в Декабре")).replace("Каждую(ый) 0 минуту","Каждые ноль минут")).replace(/Каждую\(ый\) ([\d\sи,]+) минуту/,"Каждую $1 минуту")).replace(/каждой\(го\) ([\d\sи,]+) минуту/,"каждой $1 минуты")).replace("каждой(го) минут(у)","каждой минуты")).replace(" 0 часа(ов)"," 0 часов")).replace(" 1 часа(ов)"," 1 час")).replace(" 2 часа(ов)"," 2 часа")).replace(" 3 часа(ов)"," 3 часа")).replace(" 4 часа(ов)"," 4 часа")).replace(/ (\d{1,2}) часа\(ов\)/," $1 часов")).replace("Jede(r) Sekunde","Jede Sekunde")).replace(/Jede\(r\) ([\d\sund,]+) Sekunde/,"Jede $1 Sekunde")).replace("Jede(r) Minute","Jede Minute")).replace("Jede Minuten","Jede Minute")).replace("Jede Stunde","Jede Stunde")).replace("Jede(r) Stunde","Jede Stunde")).replace(/Jede\(r\) ([\d\sund,]+) Minute/,"Jede $1 Minute")).replace("Jede Sekunde in Minuten","Jede Sekunde in jeder Minute"),h.find(".cron-text").html(n)}else h.find(".cron-text").html(_("never"))}function g(e){a=!0,o=n(e);for(var t=0;t<(o?o.length:6);t++)p(o,t);d(e),a=!1}function f(e){for(var t=e.toString().split(","),i=0;i<t.length;i++){var n=t[i].trim().split("-");if(1<n.length){t[i]=[];for(var s=parseInt(n[0],10);s<=parseInt(n[1],10);s++)t[i].push(s);t[i]=t[i].join(",")}}var r=(e=t.join(",")).split(",");for(r.sort(function(e,t){return(e=parseInt(e,10))-(t=parseInt(t,10))}),i=r.length-1;0<=i;i--)r[i]===r[i+1]&&r.splice(i+1,1);return r.join(",")}function p(e,t){var i=h.find('.page[data-type="'+u[t]+'"]');if(!e)return"every"!==i.find(".cron-type-selector").val()?(i.find(".cron-type-selector").val("every"),console.log(i.find(".n").length),i.find(".n").hide(),i.find(".each").hide(),n=!0):(i.find(".n").hide(),i.find(".each").hide()),void i.find(".cron-slider").val(1);e[t]=e[t]||"*";var n=!0,s=i.find(".cron-type-selector"),r=s.val();if(-1!==e[t].indexOf("/")){var o=e[t].split("/"),a=parseInt(o[1],10)||1;i.find(".cron-slider").val()!==a.toString()&&(i.find(".cron-slider").val(a),n=!0),"n"!==r&&(s.val("n"),n=!0),m(u[t],a)}else if(-1!==e[t].indexOf("*"))i.find(".cron-slider").val(1),"every"!==s.val()&&(s.val("every"),n=!0);else{i.find(".cron-slider").val(1);var l=f(e[t]).split(",");"each"!==s.val()&&(s.val("each"),n=!0);var c=!1;i.find(".cron-number").each(function(){var e=$(this).data("index").toString(),t=-1!==l.indexOf(e.toString());t&&!$(this).hasClass("selected")?($(this).addClass("selected"),n=!0):!t&&$(this).hasClass("selected")&&($(this).removeClass("selected"),n=!0),t&&(c=!0)}),c||"every"!==s.val()&&(s.val("every"),n=!0),n&&h.find(".tabs").mtabs("select","cron-tabs-"+u[t])}"n"===(r=s.val())?(i.find(".n").show(),i.find(".each").hide()):"each"===r?(i.find(".n").hide(),i.find(".each").show()):(i.find(".n").hide(),i.find(".each").hide()),s.select()}function m(e,t){var i=h.find('.page[data-type="'+e+'"] .cron-type-selector');i.find('option[value="n"]').html(1===t?_("CRON Every "+e):_("CRON Every")+" "+t+" "+_("CRON "+e+"s")),i.select()}function C(){var e;e=$(this).hasClass("selected")?($(this).removeClass("selected"),!1):($(this).addClass("selected"),!0);var t=$(this).data("index").toString(),i=$(this).data("arg");if(o||(o=["*","*","*","*","*","*"]),"*"===o[i])o[i]=t;else{var n=f(o[i]).split(","),s=n.indexOf(t);e?-1===s&&(o[i]=o[i]+","+t):(-1!==s&&n.splice(s,1),o[i]=n.join(",")),o[i]=function(e){for(var t=(e=f(e)).split(","),i=[],n=t[0],s=t[0],r=1;r<t.length;r++)t[r]-1!==parseInt(t[r-1],10)&&(n===s?i.push(n):s-1==n?i.push(n+","+s):i.push(n+"-"+s),n=t[r]),s=t[r];return n===s?i.push(n):s-1==n?i.push(n+","+s):i.push(n+"-"+s),i.join(",")}(o[i]),""===o[i]&&(o[i]="*")}c()}function A(e){return e="string"==typeof e&&1===e.length?"0"+e:e<10?"0"+e:e.toString()}function v(e,t){var i=h.find('.page[data-type="'+e+'"] .cron-tabs-format');i.html(t()),o||(o=["*","*","*","*","*","*"]);var n=u.indexOf(e),s=f(o[n]).split(",");i.find(".cron-number").off("click").click(C).each(function(){-1!==s.indexOf($(this).data("index").toString())&&$(this).addClass("selected")})}function b(){v("second",function(){for(var e="",t=0;t<60;t++)e+='<div data-index="'+t+'" data-type="second" data-arg="0" class="cron-number">'+A(t)+"</div>",0!==t&&(t+1)%10==0&&(e+="<br/>");return e})}function y(){v("minute",function(){for(var e="",t=0;t<60;t++)e+='<div data-index="'+t+'" data-type="minute" data-arg="1" class="cron-number">'+A(t)+"</div>",0!==t&&(t+1)%10==0&&(e+="<br/>");return e})}function I(){v("hour",function(){for(var e="",t=0;t<24;t++)e+='<div data-index="'+t+'" data-type="hour" data-arg="2" class="cron-number">'+A(t)+"</div>",0!==t&&(t+1)%12==0&&(e+="<br/>");return e})}function w(){v("day",function(){for(var e="",t=1;t<36;t++)e+=31<t?'<div class="cron-number-empty">&nbsp;</div>':'<div data-index="'+t+'" data-type="day" data-arg="3" class="cron-number">'+A(t)+"</div>",0!==t&&t%7==0&&(e+="<br/>");return e})}function x(){v("month",function(){for(var e="",t=["Jan","Feb","March","April","May","June","July","Aug","Sept","Oct","Nov","Dec"],i=0;i<t.length;i++)e+='<div data-index="'+(i+1)+'" data-type="month" data-arg="4" class="cron-number">'+_(t[i])+"</div>";return e})}function k(){v("week",function(){for(var e="",t=[{id:1,name:"Monday"},{id:2,name:"Tuesday"},{id:3,name:"Wednesday"},{id:4,name:"Thursday"},{id:5,name:"Friday"},{id:6,name:"Saturday"},{id:0,name:"Sunday"}],i=0;i<t.length;i++)e+='<div data-index="'+t[i].id+'" data-type="week" data-arg="5" class="cron-number">'+_(t[i].name)+"</div>";return e})}h.find(".tabs").mtabs(),h.find(".cron-type-selector").select().off("change").change(function(){if(!r.is(":focus")&&!a){o=o||["*","*","*","*","*","*"];var e,t=$(this).data("type"),i=$(this).val(),n=h.find('.page[data-type="'+t+'"]');if("every"===i)e="*",n.find(".n").hide(),n.find(".each").hide();else if("n"===i){var s=n.find(".cron-slider").val();e="*/"+s,n.find(".n").show(),n.find(".each").hide(),m(t,s)}else"each"===i&&(n.find(".n").hide(),n.find(".each").show(),l[t](),e="*");o[u.indexOf(t)]=e,c()}}),h.find(".cron-slider").change(function(){var e=$(this).data("arg"),t=$(this).data("type"),i=$(this).val();o||(o=["*","*","*","*","*","*"]);o[e]="*/"+i,m(t,i),c()}),M.Range.init(h.find(".cron-slider")),h.find(".cron-checkbox-seconds+span").off("click").click(function(){var e=$(this).prev();e.prop("disabled")||e.prop("checked",!e.prop("checked")).trigger("change")}),s.off("change").change(function(){i($(this).prop("checked")),c()}),i(),r.off("change").change(function(){$(this).focus(),o=n($(this).val()),g($(this).val())}).off("keyup").keyup(function(){$(this).trigger("change")}),b(),y(),I(),w(),x(),k(),c(),g(r.val()),h.modal({dismissible:!1}).modal("open")}function cronToText(e,t,l){"use strict";var p={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12,SUN:1,MON:2,TUE:3,WED:4,THU:5,FRI:6,SAT:7},i={"* * * * * *":"0/1 * * * * *","@YEARLY":"0 0 1 1 *","@ANNUALLY":"0 0 1 1 *","@MONTHLY":"0 0 1 * *","@WEEKLY":"0 0 * * 0","@DAILY":"0 0 * * *","@HOURLY":"0 * * * *"},c={s:[0,0,59],m:[1,0,59],h:[2,0,23],D:[3,1,31],M:[4,1,12],Y:[6,1970,2099],d:[5,1,7,1]};function m(e){var t=arguments.length<=1||void 0===arguments[1]?0:arguments[1],i=arguments.length<=2||void 0===arguments[2]?9999:arguments[2];return isNaN(e)?p[e]||null:Math.min(+e+t,i)}function C(e,t,i,n){var s=arguments.length<=4||void 0===arguments[4]?0:arguments[4],r=i;for(e[t]||(e[t]=[]);r<=n;)e[t].indexOf(r)<0&&e[t].push(r),r+=s||1;e[t].sort(function(e,t){return e-t})}function A(e,t,i,n){(t.d&&!t.dc||t.dc&&t.dc.indexOf(n)<0)&&(e.push(function(e){var t,i={};for(t in e)"dc"!==t&&"d"!==t&&(i[t]=e[t].slice(0));return i}(t)),t=e[e.length-1]),C(t,"d",i,i),C(t,"dc",n,n)}function h(e,t,i,n,s,r){var o,a,l,c,h,u,d,g=t.schedules,f=g[g.length-1];"L"===e&&(e=(n-1).toString(10)),null!==(o=m(e,r,s))?C(f,i,o,o):null!==(o=m(e.replace("W",""),r,s))?(l=t,c=f,u={},d={},1===(h=o)?(C(c,"D",1,3),C(c,"d",p.MON,p.FRI),C(u,"D",2,2),C(u,"d",p.TUE,p.FRI),C(d,"D",3,3)):(C(c,"D",h-1,h+1),C(c,"d",p.MON,p.FRI),C(u,"D",h-1,h-1),C(u,"d",p.MON,p.THU),C(d,"D",h+1,h+1)),C(d,"d",p.TUE,p.FRI),l.exceptions.push(u),l.exceptions.push(d)):null!==(o=m(e.replace("L",""),r,s))?A(g,f,o,n-1):2===(a=e.split("#")).length?A(g,f,o=m(a[0],r,s),m(a[1])):function(e,t,i,n,s,r){var o=e.split("/"),a=+o[1],l=o[0];if("*"!==l&&"0"!==l){var c=l.split("-");n=m(c[0],r,s),s=m(c[1],r,s)||s}C(t,i,n,s,a)}(e,f,i,n,s,r)}function n(e){return-1<e.indexOf("#")||0<e.indexOf("L")}function u(e,t){return n(e)&&!n(t)?1:e-t}var s,r,o,a=(s=t,r=e.toUpperCase(),o=i[r]||r,function(e){var t,i,n,s,r={schedules:[{}],exceptions:[]},o=e.replace(/(\s)+/g," ").split(" ");for(t in c)if((n=o[(i=c[t])[0]])&&"*"!==n&&"?"!==n){var a,l=(s=n.split(",").sort(u)).length;for(a=0;a<l;a++)h(s[a],r,t,i[1],i[2],i[3])}return r}(s?o:"0 "+o));function d(e){var t,i=+e,n=0;return 0!==i&&isFinite(i)&&(n=(t=i)<0?Math.ceil(t):Math.floor(t)),n}function g(e){var t=e%10;return e+(1===d(e%100/10)?l.ORDINALS.th:1===t?l.ORDINALS.st:2===t?l.ORDINALS.nd:3===t?l.ORDINALS.rd:l.ORDINALS.th)}function f(e){if(e.length<2)return g(e);var t=e.pop();return e.join(", ")+" "+l.and+" "+g(t)}function v(e,t){return"dow"===t?l.DOW[e-1]:"mon"===t?l.MONTH[e-1]:void 0}function b(e,t){if(e.length<2)return v(""+e[0],t);for(var i,n=""+e.pop(),s="",r=0;i=e[r];r++)0<s.length&&(s+=", "),s+=v(i,t);return s+" "+l.and+" "+v(n,t)}function y(e){return e<10?"0"+e:e}return l=l||LOCALE,function(e,t){var i=l.Every+" ";if(e.h&&e.m&&e.h.length<=2&&e.m.length<=2&&t&&e.s&&e.s.length<=2){for(var n=[],s=0;s<e.h.length;s++)for(var r=0;r<e.m.length;r++)for(var o=0;o<e.s.length;o++)n.push(y(e.h[s])+":"+y(e.m[r])+":"+y(e.s[o]));if(n.length<2)i=l.At+" "+n[0];else{var a=n.pop();i=l.At+" "+n.join(", ")+" "+l.and+" "+a}e.d||e.D||(i+=" "+l["every day"]+" ")}else if(e.h&&e.m&&e.h.length<=2&&e.m.length<=2){for(n=[],s=0;s<e.h.length;s++)for(r=0;r<e.m.length;r++)n.push(y(e.h[s])+":"+y(e.m[r]));i=n.length<2?l.At+" "+n[0]:(a=n.pop(),l.At+" "+n.join(", ")+" "+l.and+" "+a),e.d||e.D||(i+=" "+l["every day"]+" ")}else e.h?e.m?t?e.s&&60!==e.s.length?i+=f(e.s)+" "+l["second of every"]+" "+f(e.m)+" "+l["minute past the"]+" "+f(e.h)+" "+l.hour:i+=l["second of every"]+" "+f(e.m)+" "+l["minute past the"]+" "+f(e.h)+" "+l.hour:i+=f(e.m)+" "+l["minute past the"]+" "+f(e.h)+" "+l.hour:t?e.s&&60!==e.s.length?i+=f(e.s)+" "+l["second of every"]+" "+l["minute of"]+" "+f(e.h)+" "+l.hour:i+=l["second of every"]+" "+l["minute of"]+" "+f(e.h)+" "+l.hour:i+=l["minute of"]+" "+f(e.h)+" "+l.hour:e.m?t?e.s&&60!==e.s.length?i+=f(e.s)+" "+l["second of every"]+" "+f(e.m)+" "+l["minute every hour"]:i+=l["second of every"]+" "+f(e.m)+" "+l["minute every hour"]:i+=f(e.m)+" "+l["minute every hour"]:t?e.s&&60!==e.s.length?i+=f(e.s)+" "+l.second:i+=l.second:i+=l.minute;return e.D&&(i+=(l["on the"]?" "+l["on the"]+" ":" ")+f(e.D),e.M||(i+=" "+l["of every month"])),e.d&&(e.D?i+=" "+l["and every"]+" ":i+=" "+l.on+" ",i+=b(e.d,"dow")),e.M&&(i+=" "+l.in+" "+b(e.M,"mon")),i}(a.schedules[0],t)}(function(){function n(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var i={};for(var n in t)t.hasOwnProperty(n)&&(i[n]=t[n].defaultValue);return i}function u(e,t){"use strict";var i=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};A.helper.isArray(e)||(e=[e]);for(var s=0;s<e.length;++s){var r=i+" sub-extension "+s+": ",o=e[s];if("object"!=typeof o)return n.valid=!1,n.error=r+"must be an object, but "+typeof o+" given",n;if(!A.helper.isString(o.type))return n.valid=!1,n.error=r+'property "type" must be a string, but '+typeof o.type+" given",n;var a=o.type=o.type.toLowerCase();if("language"===a&&(a=o.type="lang"),"html"===a&&(a=o.type="output"),"lang"!==a&&"output"!==a&&"listener"!==a)return n.valid=!1,n.error=r+"type "+a+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',n;if("listener"===a){if(A.helper.isUndefined(o.listeners))return n.valid=!1,n.error=r+'. Extensions of type "listener" must have a property called "listeners"',n}else if(A.helper.isUndefined(o.filter)&&A.helper.isUndefined(o.regex))return n.valid=!1,n.error=r+a+' extensions must define either a "regex" property or a "filter" method',n;if(o.listeners){if("object"!=typeof o.listeners)return n.valid=!1,n.error=r+'"listeners" property must be an object but '+typeof o.listeners+" given",n;for(var l in o.listeners)if(o.listeners.hasOwnProperty(l)&&"function"!=typeof o.listeners[l])return n.valid=!1,n.error=r+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+l+" must be a function but "+typeof o.listeners[l]+" given",n}if(o.filter){if("function"!=typeof o.filter)return n.valid=!1,n.error=r+'"filter" must be a function, but '+typeof o.filter+" given",n}else if(o.regex){if(A.helper.isString(o.regex)&&(o.regex=new RegExp(o.regex,"g")),!(o.regex instanceof RegExp))return n.valid=!1,n.error=r+'"regex" property must either be a string or a RegExp object, but '+typeof o.regex+" given",n;if(A.helper.isUndefined(o.replace))return n.valid=!1,n.error=r+'"regex" extensions must implement a replace string or function',n}}return n}function r(e,t){"use strict";return"¨E"+t.charCodeAt(0)+"E"}var A={},i={},d={},g=n(!0),f="vanilla",p={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:n(!0),allOn:function(){"use strict";var e=n(!0),t={};for(var i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}()};A.helper={},A.extensions={},A.setOption=function(e,t){"use strict";return g[e]=t,this},A.getOption=function(e){"use strict";return g[e]},A.getOptions=function(){"use strict";return g},A.resetOptions=function(){"use strict";g=n(!0)},A.setFlavor=function(e){"use strict";if(!p.hasOwnProperty(e))throw Error(e+" flavor was not found");A.resetOptions();var t=p[e];for(var i in f=e,t)t.hasOwnProperty(i)&&(g[i]=t[i])},A.getFlavor=function(){"use strict";return f},A.getFlavorOptions=function(e){"use strict";if(p.hasOwnProperty(e))return p[e]},A.getDefaultOptions=function(e){"use strict";return n(e)},A.subParser=function(e,t){"use strict";if(A.helper.isString(e)){if(void 0===t){if(i.hasOwnProperty(e))return i[e];throw Error("SubParser named "+e+" not registered!")}i[e]=t}},A.extension=function(e,t){"use strict";if(!A.helper.isString(e))throw Error("Extension 'name' must be a string");if(e=A.helper.stdExtName(e),A.helper.isUndefined(t)){if(!d.hasOwnProperty(e))throw Error("Extension named "+e+" is not registered!");return d[e]}"function"==typeof t&&(t=t()),A.helper.isArray(t)||(t=[t]);var i=u(t,e);if(!i.valid)throw Error(i.error);d[e]=t},A.getAllExtensions=function(){"use strict";return d},A.removeExtension=function(e){"use strict";delete d[e]},A.resetExtensions=function(){"use strict";d={}},A.validateExtension=function(e){"use strict";var t=u(e,null);return!!t.valid||(console.warn(t.error),!1)},A.hasOwnProperty("helper")||(A.helper={}),A.helper.isString=function(e){"use strict";return"string"==typeof e||e instanceof String},A.helper.isFunction=function(e){"use strict";return e&&"[object Function]"==={}.toString.call(e)},A.helper.isArray=function(e){"use strict";return Array.isArray(e)},A.helper.isUndefined=function(e){"use strict";return void 0===e},A.helper.forEach=function(e,t){"use strict";if(A.helper.isUndefined(e))throw new Error("obj param is required");if(A.helper.isUndefined(t))throw new Error("callback param is required");if(!A.helper.isFunction(t))throw new Error("callback param must be a function/closure");if("function"==typeof e.forEach)e.forEach(t);else if(A.helper.isArray(e))for(var i=0;i<e.length;i++)t(e[i],i,e);else{if("object"!=typeof e)throw new Error("obj does not seem to be an array or an iterable object");for(var n in e)e.hasOwnProperty(n)&&t(e[n],n,e)}},A.helper.stdExtName=function(e){"use strict";return e.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()},A.helper.escapeCharactersCallback=r,A.helper.escapeCharacters=function(e,t,i){"use strict";var n="(["+t.replace(/([\[\]\\])/g,"\\$1")+"])";i&&(n="\\\\"+n);var s=new RegExp(n,"g");return e.replace(s,r)};var m=function(e,t,i,n){"use strict";var s,r,o,a,l,c=n||"",h=-1<c.indexOf("g"),u=new RegExp(t+"|"+i,"g"+c.replace(/g/g,"")),d=new RegExp(t,c.replace(/g/g,"")),g=[];do{for(s=0;o=u.exec(e);)if(d.test(o[0]))s++||(a=(r=u.lastIndex)-o[0].length);else if(s&&!--s){l=o.index+o[0].length;var f={left:{start:a,end:r},match:{start:r,end:o.index},right:{start:o.index,end:l},wholeMatch:{start:a,end:l}};if(g.push(f),!h)return g}}while(s&&(u.lastIndex=r));return g};A.helper.matchRecursiveRegExp=function(e,t,i,n){"use strict";for(var s=m(e,t,i,n),r=[],o=0;o<s.length;++o)r.push([e.slice(s[o].wholeMatch.start,s[o].wholeMatch.end),e.slice(s[o].match.start,s[o].match.end),e.slice(s[o].left.start,s[o].left.end),e.slice(s[o].right.start,s[o].right.end)]);return r},A.helper.replaceRecursiveRegExp=function(e,t,i,n,s){"use strict";if(!A.helper.isFunction(t)){var r=t;t=function(){return r}}var o=m(e,i,n,s),a=e,l=o.length;if(0<l){var c=[];0!==o[0].wholeMatch.start&&c.push(e.slice(0,o[0].wholeMatch.start));for(var h=0;h<l;++h)c.push(t(e.slice(o[h].wholeMatch.start,o[h].wholeMatch.end),e.slice(o[h].match.start,o[h].match.end),e.slice(o[h].left.start,o[h].left.end),e.slice(o[h].right.start,o[h].right.end))),h<l-1&&c.push(e.slice(o[h].wholeMatch.end,o[h+1].wholeMatch.start));o[l-1].wholeMatch.end<e.length&&c.push(e.slice(o[l-1].wholeMatch.end)),a=c.join("")}return a},A.helper.regexIndexOf=function(e,t,i){"use strict";if(!A.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(t instanceof RegExp==0)throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var n=e.substring(i||0).search(t);return 0<=n?n+(i||0):n},A.helper.splitAtIndex=function(e,t){"use strict";if(!A.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},A.helper.encodeEmailAddress=function(e){"use strict";var i=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e.replace(/./g,function(e){if("@"===e)e=i[Math.floor(2*Math.random())](e);else{var t=Math.random();e=.9<t?i[2](e):.45<t?i[1](e):i[0](e)}return e})},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),A.helper.regexes={asteriskDashAndColon:/([*_:~])/g},A.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️&zwj;♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴&zwj;♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱&zwj;♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇&zwj;♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷&zwj;♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨&zwj;❤️&zwj;👨",couple_with_heart_woman_woman:"👩&zwj;❤️&zwj;👩",couplekiss_man_man:"👨&zwj;❤️&zwj;💋&zwj;👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩&zwj;❤️&zwj;💋&zwj;👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯&zwj;♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁&zwj;🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨&zwj;👦",family_man_boy_boy:"👨&zwj;👦&zwj;👦",family_man_girl:"👨&zwj;👧",family_man_girl_boy:"👨&zwj;👧&zwj;👦",family_man_girl_girl:"👨&zwj;👧&zwj;👧",family_man_man_boy:"👨&zwj;👨&zwj;👦",family_man_man_boy_boy:"👨&zwj;👨&zwj;👦&zwj;👦",family_man_man_girl:"👨&zwj;👨&zwj;👧",family_man_man_girl_boy:"👨&zwj;👨&zwj;👧&zwj;👦",family_man_man_girl_girl:"👨&zwj;👨&zwj;👧&zwj;👧",family_man_woman_boy_boy:"👨&zwj;👩&zwj;👦&zwj;👦",family_man_woman_girl:"👨&zwj;👩&zwj;👧",family_man_woman_girl_boy:"👨&zwj;👩&zwj;👧&zwj;👦",family_man_woman_girl_girl:"👨&zwj;👩&zwj;👧&zwj;👧",family_woman_boy:"👩&zwj;👦",family_woman_boy_boy:"👩&zwj;👦&zwj;👦",family_woman_girl:"👩&zwj;👧",family_woman_girl_boy:"👩&zwj;👧&zwj;👦",family_woman_girl_girl:"👩&zwj;👧&zwj;👧",family_woman_woman_boy:"👩&zwj;👩&zwj;👦",family_woman_woman_boy_boy:"👩&zwj;👩&zwj;👦&zwj;👦",family_woman_woman_girl:"👩&zwj;👩&zwj;👧",family_woman_woman_girl_boy:"👩&zwj;👩&zwj;👧&zwj;👦",family_woman_woman_girl_girl:"👩&zwj;👩&zwj;👧&zwj;👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️&zwj;♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍&zwj;♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️&zwj;♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂&zwj;♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇&zwj;♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"",heavy_multiplication_x:"✖️",heavy_plus_sign:"",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨&zwj;🎨",man_astronaut:"👨&zwj;🚀",man_cartwheeling:"🤸&zwj;♂️",man_cook:"👨&zwj;🍳",man_dancing:"🕺",man_facepalming:"🤦&zwj;♂️",man_factory_worker:"👨&zwj;🏭",man_farmer:"👨&zwj;🌾",man_firefighter:"👨&zwj;🚒",man_health_worker:"👨&zwj;⚕️",man_in_tuxedo:"🤵",man_judge:"👨&zwj;⚖️",man_juggling:"🤹&zwj;♂️",man_mechanic:"👨&zwj;🔧",man_office_worker:"👨&zwj;💼",man_pilot:"👨&zwj;✈️",man_playing_handball:"🤾&zwj;♂️",man_playing_water_polo:"🤽&zwj;♂️",man_scientist:"👨&zwj;🔬",man_shrugging:"🤷&zwj;♂️",man_singer:"👨&zwj;🎤",man_student:"👨&zwj;🎓",man_teacher:"👨&zwj;🏫",man_technologist:"👨&zwj;💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆&zwj;♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼&zwj;♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵&zwj;♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅&zwj;♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆&zwj;♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮&zwj;♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎&zwj;♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️&zwj;🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋&zwj;♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣&zwj;♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃&zwj;♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄&zwj;♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊&zwj;♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁&zwj;♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶&zwj;♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️&zwj;♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩&zwj;🎨",woman_astronaut:"👩&zwj;🚀",woman_cartwheeling:"🤸&zwj;♀️",woman_cook:"👩&zwj;🍳",woman_facepalming:"🤦&zwj;♀️",woman_factory_worker:"👩&zwj;🏭",woman_farmer:"👩&zwj;🌾",woman_firefighter:"👩&zwj;🚒",woman_health_worker:"👩&zwj;⚕️",woman_judge:"👩&zwj;⚖️",woman_juggling:"🤹&zwj;♀️",woman_mechanic:"👩&zwj;🔧",woman_office_worker:"👩&zwj;💼",woman_pilot:"👩&zwj;✈️",woman_playing_handball:"🤾&zwj;♀️",woman_playing_water_polo:"🤽&zwj;♀️",woman_scientist:"👩&zwj;🔬",woman_shrugging:"🤷&zwj;♀️",woman_singer:"👩&zwj;🎤",woman_student:"👩&zwj;🎓",woman_teacher:"👩&zwj;🏫",woman_technologist:"👩&zwj;💻",woman_with_turban:"👳&zwj;♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼&zwj;♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:'<img width="20" height="20" align="absmiddle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAOwUlEQVR42uVbCVyO6RbPmn0sw9gZS0aZO4y5GTEUE2ObxjZjrbHEJVy3sWS5pkaWxjLEkCVDSbSgFLdESaWSLIVUSIi4kvb9f895vi/zbbR+yZ339/tbnu99n/ec/3Oe85xznufV0CjDBaAdwZqwnzCJ0FXjHV70/i8J5oQDhCFV8cJdq1atwqxZs+Ds7Iz4+HhqwgXCLELNKlK6G2Ej4e6lS5ewZcsWzJgxA+fOnWNZFqvzxT1v3boF/qcsBg0ahP3796OwsJAFWKYuIqjfPoS9cXFxWL58Obp06SInh5aWFr//jjoJWLlu3TolAorRuXNn7Ny5k4W4Spgj81xrgj5hLmED4RDhlNRygglBhADCSakpWxFMCHoETUJTwrYHDx7A1NT0je9nPHz4kN/fXl0EeI0aNeqtAjB69+4NPz8/FsSdlXvy5An8/f1hZ2cHCwsLGBsbY/To0cJy9PT0MGDAAAwePBhGRkbClNesWYODBw8iODgYOTk53M/d9evXo27duiW++8iRI3z/ZHURENOjR48ShSjGuHHjhHJ16tQp9TOKaNWqlZKpvw1MHluQOpSvk5eXh5YtW5ZbmarAvHnzmIBd6iCgXnZ2Npo1a1atCWAfwY5SHQTUKCoqQocOHao1AebmHBJgi7p8QBDP6epMwKFDvMDAWF0ELLS1ta3WBNy9e5cJMFIXAdvt7e2rNQHDhw9nAv5D+KKylV9y8+bNCi1pVYWZM2cyCfaVTcDdsqzH7xpBQRxcwqyylLdi5/K+KM/Q0dFhAqIri4Bn1T0AUgVpdmhYUeVHnD59+r1TnjF27Fgm4HhFCThoYmLyXhLQoEGD4mRKsyIE3OrZs+d7SQCDCyZcNSqv8k1evXoFTU3NUr+wzUcfYqRBf8yb/C2WzfoBFoTF08fBdMIITDD8CsP1+kL30x7Q6dYZH7drjfZ0f4fWLdG1Q1t81qMLBvTRwejB/TBl1BDMnzQGS2dMxKo5k7Fs9iSY/jAaBvR8Pc26pZaH02quLZSXgO6xsbGlelGnli1wZKcVMqN8gKcRwItrf+K/VB95doXaLwOJIVSzOU/+2Re5kV7IuuyJrIhTyLt6mmztLBBPNZLHoUAy9fE8UvJ8ikxfj8PwJPQErJeYlkquTZs2MQFLykuANgc/Jb2kn3Z3ZMaQUrmxwO1zyAo7gfRAJ6RfOIyMEFdkXj5F8BTK5lzxQv610yi8QcFatI8gQoCIK7x+hojwRnaE5H4JTiEj9Pjr/rJDqcZyn9b4ovu45LYbdWvXeqtsXMHiSlZ5CegRExPz1hd83PYj5POo0QinXyLFg48hnZTOiQ1Dzr1IZEaeQRoJn0HKZIR7lA2kfHrQUerXHTlx4ZL+rnjjFRGRGeYB5MUj2GnbW+XbuJFrp1heXgI6JCYmvvUFN1x3Aek3SWkapRAXMeJFGS8ge2Xfuog0toaykED3Mpk8+shOk+sv68Y50V9WuKewBKt5094o39atW/mRf5WXgIYZGRlo3Lixys4nj6A6Z1YMcqRCpwU4ouDlUyHk/QA/hNttR25Wlvh/ZthJUsil9ATQ/axkYbqEzDgfL0Ts/x35+aLyTES7IY36Q6w/+Q4/tP6wuUoZ9+7dy7ebVmQZjO/atavKzn32rAdeXkd6KCkXdAxZ13yFcLFnvPD73zrDVrsdTs6eggKSuSjjORHkUGoC0i86Iyc6QPQX7eqMnTodYNuzHU4vnosiaitMSUSavwMy6d3IvEUrzViVMrq5uXEX4ytCgL++vr5Sx7Vr1cIDX0dKkQJfj37Rs3jw1sBxkwlwGD4Ax3+ciN1faCHW76xQRFgAOcjSEMBkIe0x8nLzcez7kTg8Rh/uxuOxR/cTJISFSfq7eATpZCk8CAfXLVFJwIULXHnHoIoQYLtw4UKljps2aogXQcQuef/XAiMDKY+S4DhyEFwpDnCj9f+Afl8EbbWRTANaAdihlYoAMn8aZzyNuYODX/eD29TvRH/7v+qN8H27JdOAyWQfQQ74xPafVRLAPox9WUlK6hIGEgx4f00Kg2JcvHhRqeP6FIwknXemyen/2gLIIeC/CYk49M0AuE4xgtu0sThg8AUCN62TEuBdRgJo2Y+Kxh9D/k59SQiwH9QHobt3SAk4KSGA4oWjm1YqyVi8U6Soj4yOrHM/jTAyKVby/PnzIoNi8L+L4eXlpXoFcLcTgc1rAlISkJeXDxeK2A6P1hdTwI6mQPTJE+WbAlnJyE7PhNO3Q3BkrKGYWtxfHMkkmQLO0ilwA7+vXqAkn66urtBLUZ9iHfm30NBQaPAf165dA0d9vP2UlJSEp0+f4vHjx3j06JH4e+rUqUovcNmyGkiNEkLwklXsBG+ecMUOnfbYod1emG5uboFKJ8jPFVD0l0dBUHqoPDHpQeQEb0qc4FUHe3KAbYUT9JgzDbwOFL5MfN0fXkXhJ5PxSvLt2LFD1Ah5u4z1YJ14l4qnBe8v3rhxAzz4PAVG8nLHivIP0dHRiIiIQGRkpEgmrl69ClW1QBMjQ7LDW8hmU+RRI69ckJIkhL7jfRJBm62R+TJVYq6h0jhBRslsivqenT2MF/7OyI70VmkFhWnPJaS6OyPkt43IycqR9EfWlH7JDQUUTuNhCHR7Ke9YcRp/5coVoQPrcvnyZURFRYmBZlLS0kR8MVLD29sbnp6e8PHxQUBAgCgn8YO8E3z79m3BGKeVc+bMkXuBZt06SA12F/F5Go0gR4C8HBalPZMPXKL8lQKhPAqF+f97KXFyNx6HQsoPsshJ/kmAp2TKkJLISpXvjyxNhMYcDVLOEO+lPDi8B5mamipkZx1YF9YpJCRErAy+vr5CZ9ZdWABhDGEYYTBhAOFz3g4nfMJelNCbkNCpUye5F034mvxIPi1/FM+zQCw0k5B9O0iEr5kRXkqhMJOVf9NXIHjtT7hmaymSoBzKETimkAuFpaF1dkwI9RcmIYaXv3BJXoGCuyIgk5WpefPmKCgoYK46SmX/RKoL69Sfl0WuFEl1HlmWJXE5z6WmTZvKJxxmxkIQ3AuU5APk6NICj4hRT6eITTEEzqWk55HHPjz3cxJhNF5cxeNT9kj2cRDTQjEkzpDtjyyCic5l5fEA7uSHFEefR5pPsahrb2B9QkICFHeJ51HunkdLIg0VLY0BFKdLwllVHp4dHyvst3QuEiiju21vA/+VZkiluIKt4I3RIfWXQ4QgKUxkni47LJWUP3PmjHo2RxVI+CebmKJP6EiFDVurxUgmExe5PHlnPAkn8w4QqW62NCVmYopozid5H0CI9RKE21ggJeAYEeMnfitOnRn5XCfgeJ+VTosWQU8MOc6ZE0cqnUm4fv165SrPBVHCfMI4TowUfmOfsIcdJh92kBWmUcP6GDt8EDZbzIffH5tx3/ewSFjw5LKk0MEFEkZenDBjgew7Yiog5brkt+QrknvJmhIp4Apw/A1bVpjhG/0v5d7Vrl07bNu2TelUSqUoz8uI3Z49OEtBAy+TdP1CqKtwHzvQUxxgTJs2TeX5gdq1a0ObSmCjh+jB+NuvRamL1+3ls77HCip1rTSdJP5eNnMizKndjMLoH42G4bthX+FzHS3UVVEC69evH3799VeKMXJZrlWKclUGAZ5jxoxB02ZNsNlxH74aagBHZyex986HlVTczyGmI58h4CjL2toa48ePFxsUPEotWrQoc0GT0/C2bduiY8eO4ISMcxLeoOFYhS6qm2EpoZG65jmbv+dPSyRZlt5QfVjvtX19AOFNL+aDFNI4m0eFc9Ho5ORkaGtrl5kAVp6DMOk88efEjLe++ZhclZwHTJHEHbs4YOCmLj2645fdvwnTK42zoXtaEHwNDQ3LXdZm5yad3/2r+gQmDsRnIF5KAldX6zdsgG/GG8F44Vzcu3eP2y1K6GPr2rVrK1zbnz59Or/LoaoJCPZ4kCZsjw9GECL79OmDj9q2wb+320C3/5fgPQO6Vrzh+fpcDqxXr16lbHBwgkZXm6okYJr0ECMrX5vraiJ1lArEjrEnzWuOqemiYj9spGd2ee478XkiPsJakmJ83qA05/8qXNurJFLiunXrhpo1a6LxB02wyHIFZpovgOHwYfjZ0hK2lH5u2rwZ5suWYv5ycyUlmjRpgl69eimlrFy3kwuoyOvXr19frm3RokVMwPZ3TYC57E6xVq+e6KzVDSaL/oEp82Zh8IhhWLjGAp/p9oX5ujVKBNjY2MDV1VWuzd3dXaTesm2biUQuZ8u28elSPmKr8a4vdog8GnJpcT1N1KHUuBbt0jSgWuGbzJh3mVhh2TYHBwdxjFa2jVcZnvPVlQBOLXdZWlqW2ZFxNYYVlm07fPgwAgMD5dr4OD5HeHLFFxM+O42DGtXhIkFaMQlcUjIzM0P37t1Ro0YNpZPjPJcVK7SOjo5ybU5OTqIAo0gAh97VlgAZIj4l8Pn4WFaO64ocuXG6zJtDbMqySnC7IgF8uptLVrJtq1evFuWqak+A4j4i4TNpltiJ8LPiNFFFwNGjRyWFyfedAFUny/joekkEuLi4KK0CfykCeFnkiu1flgBeFtl3/D8SsMbKykpOifv37ysRcPz4cVHKUiSA8wwNdR9/VTMBSh9Y8S4Nf2qnSICiBbDzVCRg9uzZTMC+94kAv6FDh8opwRsVHPjItnl4eEDxHNLKlStFXV+2javQ/M1SpZe+1KA4L4G7WDG57fSm/OUbXiqG0ewAFYOeYcN4fwZhvLkp2y4tftrxcltdlf/w+fPn4qNGxTCYU2m6nrRu3VqunT/EoiuZvw6TTZHpyuNNmEaNGsndP3fu3OJAq1N1JOAHDmyKheVtNP4OkE2crULRAW7fvl20EyyLy24a8p+/7WISFixYIMLt4t82bNhQYjXqXREgPq3j74mlX3AmSL8E1eOPIBXnuVT5OsVZpuLnOMeOHeN7vifwiYhYzhC5IpwlOXj1QXWdBmy/XWU/X+UqMZfKBw4cKAobHPlJlZe9h6tOu+7cuSN2dg0MDMSSyZUpmXvaSD+crq/xvl0k9BTCRa7qEPq+5T4t6ffF52WVV+f1P6zyLG30bsU4AAAAAElFTkSuQmCC">',showdown:'<img width="20" height="20" align="absmiddle" src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKT2lDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVNnVFPpFj333vRCS4iAlEtvUhUIIFJCi4AUkSYqIQkQSoghodkVUcERRUUEG8igiAOOjoCMFVEsDIoK2AfkIaKOg6OIisr74Xuja9a89+bN/rXXPues852zzwfACAyWSDNRNYAMqUIeEeCDx8TG4eQuQIEKJHAAEAizZCFz/SMBAPh+PDwrIsAHvgABeNMLCADATZvAMByH/w/qQplcAYCEAcB0kThLCIAUAEB6jkKmAEBGAYCdmCZTAKAEAGDLY2LjAFAtAGAnf+bTAICd+Jl7AQBblCEVAaCRACATZYhEAGg7AKzPVopFAFgwABRmS8Q5ANgtADBJV2ZIALC3AMDOEAuyAAgMADBRiIUpAAR7AGDIIyN4AISZABRG8lc88SuuEOcqAAB4mbI8uSQ5RYFbCC1xB1dXLh4ozkkXKxQ2YQJhmkAuwnmZGTKBNA/g88wAAKCRFRHgg/P9eM4Ors7ONo62Dl8t6r8G/yJiYuP+5c+rcEAAAOF0ftH+LC+zGoA7BoBt/qIl7gRoXgugdfeLZrIPQLUAoOnaV/Nw+H48PEWhkLnZ2eXk5NhKxEJbYcpXff5nwl/AV/1s+X48/Pf14L7iJIEyXYFHBPjgwsz0TKUcz5IJhGLc5o9H/LcL//wd0yLESWK5WCoU41EScY5EmozzMqUiiUKSKcUl0v9k4t8s+wM+3zUAsGo+AXuRLahdYwP2SycQWHTA4vcAAPK7b8HUKAgDgGiD4c93/+8//UegJQCAZkmScQAAXkQkLlTKsz/HCAAARKCBKrBBG/TBGCzABhzBBdzBC/xgNoRCJMTCQhBCCmSAHHJgKayCQiiGzbAdKmAv1EAdNMBRaIaTcA4uwlW4Dj1wD/phCJ7BKLyBCQRByAgTYSHaiAFiilgjjggXmYX4IcFIBBKLJCDJiBRRIkuRNUgxUopUIFVIHfI9cgI5h1xGupE7yAAygvyGvEcxlIGyUT3UDLVDuag3GoRGogvQZHQxmo8WoJvQcrQaPYw2oefQq2gP2o8+Q8cwwOgYBzPEbDAuxsNCsTgsCZNjy7EirAyrxhqwVqwDu4n1Y8+xdwQSgUXACTYEd0IgYR5BSFhMWE7YSKggHCQ0EdoJNwkDhFHCJyKTqEu0JroR+cQYYjIxh1hILCPWEo8TLxB7iEPENyQSiUMyJ7mQAkmxpFTSEtJG0m5SI+ksqZs0SBojk8naZGuyBzmULCAryIXkneTD5DPkG+Qh8lsKnWJAcaT4U+IoUspqShnlEOU05QZlmDJBVaOaUt2ooVQRNY9aQq2htlKvUYeoEzR1mjnNgxZJS6WtopXTGmgXaPdpr+h0uhHdlR5Ol9BX0svpR+iX6AP0dwwNhhWDx4hnKBmbGAcYZxl3GK+YTKYZ04sZx1QwNzHrmOeZD5lvVVgqtip8FZHKCpVKlSaVGyovVKmqpqreqgtV81XLVI+pXlN9rkZVM1PjqQnUlqtVqp1Q61MbU2epO6iHqmeob1Q/pH5Z/YkGWcNMw09DpFGgsV/jvMYgC2MZs3gsIWsNq4Z1gTXEJrHN2Xx2KruY/R27iz2qqaE5QzNKM1ezUvOUZj8H45hx+Jx0TgnnKKeX836K3hTvKeIpG6Y0TLkxZVxrqpaXllirSKtRq0frvTau7aedpr1Fu1n7gQ5Bx0onXCdHZ4/OBZ3nU9lT3acKpxZNPTr1ri6qa6UbobtEd79up+6Ynr5egJ5Mb6feeb3n+hx9L/1U/W36p/VHDFgGswwkBtsMzhg8xTVxbzwdL8fb8VFDXcNAQ6VhlWGX4YSRudE8o9VGjUYPjGnGXOMk423GbcajJgYmISZLTepN7ppSTbmmKaY7TDtMx83MzaLN1pk1mz0x1zLnm+eb15vft2BaeFostqi2uGVJsuRaplnutrxuhVo5WaVYVVpds0atna0l1rutu6cRp7lOk06rntZnw7Dxtsm2qbcZsOXYBtuutm22fWFnYhdnt8Wuw+6TvZN9un2N/T0HDYfZDqsdWh1+c7RyFDpWOt6azpzuP33F9JbpL2dYzxDP2DPjthPLKcRpnVOb00dnF2e5c4PziIuJS4LLLpc+Lpsbxt3IveRKdPVxXeF60vWdm7Obwu2o26/uNu5p7ofcn8w0nymeWTNz0MPIQ+BR5dE/C5+VMGvfrH5PQ0+BZ7XnIy9jL5FXrdewt6V3qvdh7xc+9j5yn+M+4zw33jLeWV/MN8C3yLfLT8Nvnl+F30N/I/9k/3r/0QCngCUBZwOJgUGBWwL7+Hp8Ib+OPzrbZfay2e1BjKC5QRVBj4KtguXBrSFoyOyQrSH355jOkc5pDoVQfujW0Adh5mGLw34MJ4WHhVeGP45wiFga0TGXNXfR3ENz30T6RJZE3ptnMU85ry1KNSo+qi5qPNo3ujS6P8YuZlnM1VidWElsSxw5LiquNm5svt/87fOH4p3iC+N7F5gvyF1weaHOwvSFpxapLhIsOpZATIhOOJTwQRAqqBaMJfITdyWOCnnCHcJnIi/RNtGI2ENcKh5O8kgqTXqS7JG8NXkkxTOlLOW5hCepkLxMDUzdmzqeFpp2IG0yPTq9MYOSkZBxQqohTZO2Z+pn5mZ2y6xlhbL+xW6Lty8elQfJa7OQrAVZLQq2QqboVFoo1yoHsmdlV2a/zYnKOZarnivN7cyzytuQN5zvn//tEsIS4ZK2pYZLVy0dWOa9rGo5sjxxedsK4xUFK4ZWBqw8uIq2Km3VT6vtV5eufr0mek1rgV7ByoLBtQFr6wtVCuWFfevc1+1dT1gvWd+1YfqGnRs+FYmKrhTbF5cVf9go3HjlG4dvyr+Z3JS0qavEuWTPZtJm6ebeLZ5bDpaql+aXDm4N2dq0Dd9WtO319kXbL5fNKNu7g7ZDuaO/PLi8ZafJzs07P1SkVPRU+lQ27tLdtWHX+G7R7ht7vPY07NXbW7z3/T7JvttVAVVN1WbVZftJ+7P3P66Jqun4lvttXa1ObXHtxwPSA/0HIw6217nU1R3SPVRSj9Yr60cOxx++/p3vdy0NNg1VjZzG4iNwRHnk6fcJ3/ceDTradox7rOEH0x92HWcdL2pCmvKaRptTmvtbYlu6T8w+0dbq3nr8R9sfD5w0PFl5SvNUyWna6YLTk2fyz4ydlZ19fi753GDborZ752PO32oPb++6EHTh0kX/i+c7vDvOXPK4dPKy2+UTV7hXmq86X23qdOo8/pPTT8e7nLuarrlca7nuer21e2b36RueN87d9L158Rb/1tWeOT3dvfN6b/fF9/XfFt1+cif9zsu72Xcn7q28T7xf9EDtQdlD3YfVP1v+3Njv3H9qwHeg89HcR/cGhYPP/pH1jw9DBY+Zj8uGDYbrnjg+OTniP3L96fynQ89kzyaeF/6i/suuFxYvfvjV69fO0ZjRoZfyl5O/bXyl/erA6xmv28bCxh6+yXgzMV70VvvtwXfcdx3vo98PT+R8IH8o/2j5sfVT0Kf7kxmTk/8EA5jz/GMzLdsAAECtaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/Pgo8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjYtYzA2NyA3OS4xNTc3NDcsIDIwMTUvMDMvMzAtMjM6NDA6NDIgICAgICAgICI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyIKICAgICAgICAgICAgeG1sbnM6cGhvdG9zaG9wPSJodHRwOi8vbnMuYWRvYmUuY29tL3Bob3Rvc2hvcC8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTUtMDEtMTVUMjE6MDE6MTlaPC94bXA6Q3JlYXRlRGF0ZT4KICAgICAgICAgPHhtcDpNZXRhZGF0YURhdGU+MjAxNy0xMC0yNFQxMzozMTozMCswMTowMDwveG1wOk1ldGFkYXRhRGF0ZT4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTctMTAtMjRUMTM6MzE6MzArMDE6MDA8L3htcDpNb2RpZnlEYXRlPgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8cGhvdG9zaG9wOklDQ1Byb2ZpbGU+c1JHQiBJRUM2MTk2Ni0yLjE8L3Bob3Rvc2hvcDpJQ0NQcm9maWxlPgogICAgICAgICA8cGhvdG9zaG9wOlRleHRMYXllcnM+CiAgICAgICAgICAgIDxyZGY6QmFnPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHBob3Rvc2hvcDpMYXllck5hbWU+UyAtPC9waG90b3Nob3A6TGF5ZXJOYW1lPgogICAgICAgICAgICAgICAgICA8cGhvdG9zaG9wOkxheWVyVGV4dD5TIC08L3Bob3Rvc2hvcDpMYXllclRleHQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICA8L3JkZjpCYWc+CiAgICAgICAgIDwvcGhvdG9zaG9wOlRleHRMYXllcnM+CiAgICAgICAgIDxkYzpmb3JtYXQ+aW1hZ2UvcG5nPC9kYzpmb3JtYXQ+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6N2NkMzQxNzctOWYyZi0yNDRiLWEyYjQtMzU1MzJkY2Y1MWJiPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6M2E1YzgxYmYtYjhiNy0xMWU3LTk0NDktYTQ2MzdlZjJkNjMzPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NjBDNUFFNjVGNjlDRTQxMTk0NUE4NTVFM0JDQTdFRUI8L3htcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPHhtcE1NOkhpc3Rvcnk+CiAgICAgICAgICAgIDxyZGY6U2VxPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jcmVhdGVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6NjBDNUFFNjVGNjlDRTQxMTk0NUE4NTVFM0JDQTdFRUI8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTUtMDEtMTVUMjE6MDE6MTlaPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ1M2IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPnNhdmVkPC9zdEV2dDphY3Rpb24+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDppbnN0YW5jZUlEPnhtcC5paWQ6ODZjNjBkMGQtOGY0Yy01ZTRlLWEwMjQtODI4ZWQyNTIwZDc3PC9zdEV2dDppbnN0YW5jZUlEPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6d2hlbj4yMDE3LTEwLTI0VDEzOjMxOjMwKzAxOjAwPC9zdEV2dDp3aGVuPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6c29mdHdhcmVBZ2VudD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNSAoV2luZG93cyk8L3N0RXZ0OnNvZnR3YXJlQWdlbnQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpjaGFuZ2VkPi88L3N0RXZ0OmNoYW5nZWQ+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5jb252ZXJ0ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+ZnJvbSBhcHBsaWNhdGlvbi92bmQuYWRvYmUucGhvdG9zaG9wIHRvIGltYWdlL3BuZzwvc3RFdnQ6cGFyYW1ldGVycz4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgICAgIDxyZGY6bGkgcmRmOnBhcnNlVHlwZT0iUmVzb3VyY2UiPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6YWN0aW9uPmRlcml2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnBhcmFtZXRlcnM+Y29udmVydGVkIGZyb20gYXBwbGljYXRpb24vdm5kLmFkb2JlLnBob3Rvc2hvcCB0byBpbWFnZS9wbmc8L3N0RXZ0OnBhcmFtZXRlcnM+CiAgICAgICAgICAgICAgIDwvcmRmOmxpPgogICAgICAgICAgICAgICA8cmRmOmxpIHJkZjpwYXJzZVR5cGU9IlJlc291cmNlIj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmFjdGlvbj5zYXZlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjdjZDM0MTc3LTlmMmYtMjQ0Yi1hMmI0LTM1NTMyZGNmNTFiYjwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxNy0xMC0yNFQxMzozMTozMCswMTowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICAgICA8c3RFdnQ6Y2hhbmdlZD4vPC9zdEV2dDpjaGFuZ2VkPgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgPC9yZGY6U2VxPgogICAgICAgICA8L3htcE1NOkhpc3Rvcnk+CiAgICAgICAgIDx4bXBNTTpEZXJpdmVkRnJvbSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgIDxzdFJlZjppbnN0YW5jZUlEPnhtcC5paWQ6ODZjNjBkMGQtOGY0Yy01ZTRlLWEwMjQtODI4ZWQyNTIwZDc3PC9zdFJlZjppbnN0YW5jZUlEPgogICAgICAgICAgICA8c3RSZWY6ZG9jdW1lbnRJRD54bXAuZGlkOjYwQzVBRTY1RjY5Q0U0MTE5NDVBODU1RTNCQ0E3RUVCPC9zdFJlZjpkb2N1bWVudElEPgogICAgICAgICAgICA8c3RSZWY6b3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NjBDNUFFNjVGNjlDRTQxMTk0NUE4NTVFM0JDQTdFRUI8L3N0UmVmOm9yaWdpbmFsRG9jdW1lbnRJRD4KICAgICAgICAgPC94bXBNTTpEZXJpdmVkRnJvbT4KICAgICAgICAgPHRpZmY6T3JpZW50YXRpb24+MTwvdGlmZjpPcmllbnRhdGlvbj4KICAgICAgICAgPHRpZmY6WFJlc29sdXRpb24+NzIwMDAwLzEwMDAwPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WVJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+NjQ8L2V4aWY6UGl4ZWxYRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFlEaW1lbnNpb24+NjQ8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAKPD94cGFja2V0IGVuZD0idyI/Pse7bzcAAAAgY0hSTQAAeiUAAICDAAD5/wAAgOkAAHUwAADqYAAAOpgAABdvkl/FRgAAA1JJREFUeNrsm1+OmlAUhz+aeS9dwZggJn1AnRUMO6jpBgZXULuC2hWUWUGZBTSxKyiuoA4mfUBMnB04K5g+9DihRBHlyh/lJLwIXLgf99xzzu9etZeXFy7Z3nDh1gBoAFy4XeVtQNO0zNcapmUDfUBPnFoBfhQGq6IBaHmjwD4Ahmk5wAD4kKG5J8CNwsAFaHe6DvA9cc0wCgOv8gDka3vA9RHNPgo0D7hNnJtGYWBXxgV2dH4MfMnRRA+Y1WIO2NJ5F/ikoKm3tYsChmkNFHW+fmHQMC1dfHaXPQP3wM1yMdc2B/AOGALTWobBmI1Shu0UGCwX83XyRBQGawHntTtdG5gUNfxVu4CTNqNv6/wWGL7kCc+1AmCYVisl3I2ydD4GYZUCs7IjoLXrxHIx9w9tLAqDCfBwDrXAY457x+cAoCfuwRGjYFUnAGk+PsjR7s8Dn1VeLWCYVlpDw+VivjVHSHt+u9PVJbzGzZXQWTkAkz0V31fATUaEsjVJlQBs4FeGcteLgzgbAALBA+4y3voAeJL8nA0AHfClnM1qm1HhnYUidCSE+KzvSSJUTwAxCOMcpfETMFYpfRUKIAbCFhC3OTJJJwqDWS0BxED0JZ4Pjix1P2+E0loCSMBwyK4S/xc1ojBwag8gMU84cvTKGgmlAYhngu1O9xAXuVE5J1QCQCz3bwHuHvdQui5QKQAxEO6eEKpsFCgTRSXkvdoxSlBMCxhJJbgrrbZRtHCiShN0pRB6PeQ3ckBw2K0oKXMBVYJIP+Nvh9qulFivGoBt1lLQxowT2ykBXCfnhZIglgYACWmqXQv+baioBYCeiCQHm+QEg1O7RhF7hO4OhSAhcJKSFU7qBGADwZeqMMuXn6TUBw8qlaMrirNb4LdhWlP+SWD+cjFfxTpuS2GUpik+o3jFSEkqbJiWn0P0OMSGqlWiOu0TvD+FRHZKAE+oW+cfRmEwqlsesJJEJs8y91QqP+9UL6lqEtz2gpuNEY5sm9sIHln2DRa2aFKGJtiXkZEMiWtgVvRKUSUFkSKt2S7fAGgAXLYpmQQXf36MUChTZdUa2u8/rkvPA6Tz30r4eH3ybcBS5gJ6SaNXb+aABkA1AMxKenclBZLW/He4cYEGwEXb3wEASelexk6LIIIAAAAASUVORK5CYII=">'},A.Converter=function(i){"use strict";function n(e,t){if(t=t||null,A.helper.isString(e)){if(t=e=A.helper.stdExtName(e),A.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new A.Converter)),A.helper.isArray(e)||(e=[e]);var i=u(e,t);if(!i.valid)throw Error(i.error);for(var n=0;n<e.length;++n)switch(e[n].type){case"lang":a.push(e[n]);break;case"output":l.push(e[n]);break;default:throw Error("Extension loader error: Type unrecognized!!!")}}(A.extensions[e],e);if(A.helper.isUndefined(d[e]))throw Error('Extension "'+e+'" could not be loaded. It was either not found or is not a valid extension.');e=d[e]}"function"==typeof e&&(e=e()),A.helper.isArray(e)||(e=[e]);var i=u(e,t);if(!i.valid)throw Error(i.error);for(var n=0;n<e.length;++n){switch(e[n].type){case"lang":a.push(e[n]);break;case"output":l.push(e[n])}if(e[n].hasOwnProperty("listeners"))for(var s in e[n].listeners)e[n].listeners.hasOwnProperty(s)&&r(s,e[n].listeners[s])}}function r(e,t){if(!A.helper.isString(e))throw Error("Invalid argument in converter.listen() method: name must be a string, but "+typeof e+" given");if("function"!=typeof t)throw Error("Invalid argument in converter.listen() method: callback must be a function, but "+typeof t+" given");c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}var o={},a=[],l=[],c={},s=f,h={parsed:{},raw:"",format:""};!function(){for(var e in i=i||{},g)g.hasOwnProperty(e)&&(o[e]=g[e]);if("object"!=typeof i)throw Error("Converter expects the passed parameter to be an object, but "+typeof i+" was passed instead.");for(var t in i)i.hasOwnProperty(t)&&(o[t]=i[t]);o.extensions&&A.helper.forEach(o.extensions,n)}(),this._dispatch=function(e,t,i,n){if(c.hasOwnProperty(e))for(var s=0;s<c[e].length;++s){var r=c[e][s](e,t,this,i,n);r&&void 0!==r&&(t=r)}return t},this.listen=function(e,t){return r(e,t),this},this.makeHtml=function(t){if(!t)return t;var e,i,n,s={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},langExtensions:a,outputModifiers:l,converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return t=(t=(t=(t=(t=t.replace(/¨/g,"¨T")).replace(/\$/g,"¨D")).replace(/\r\n/g,"\n")).replace(/\r/g,"\n")).replace(/\u00A0/g," "),o.smartIndentationFix&&(i=(e=t).match(/^\s*/)[0].length,n=new RegExp("^\\s{0,"+i+"}","gm"),t=e.replace(n,"")),t="\n\n"+t+"\n\n",t=(t=A.subParser("detab")(t,o,s)).replace(/^[ \t]+$/gm,""),A.helper.forEach(a,function(e){t=A.subParser("runExtension")(e,t,o,s)}),t=A.subParser("metadata")(t,o,s),t=A.subParser("hashPreCodeTags")(t,o,s),t=A.subParser("githubCodeBlocks")(t,o,s),t=A.subParser("hashHTMLBlocks")(t,o,s),t=A.subParser("hashCodeTags")(t,o,s),t=A.subParser("stripLinkDefinitions")(t,o,s),t=A.subParser("blockGamut")(t,o,s),t=A.subParser("unhashHTMLSpans")(t,o,s),t=(t=(t=A.subParser("unescapeSpecialChars")(t,o,s)).replace(/¨D/g,"$$")).replace(/¨T/g,"¨"),t=A.subParser("completeHTMLDocument")(t,o,s),A.helper.forEach(l,function(e){t=A.subParser("runExtension")(e,t,o,s)}),h=s.metadata,t},this.setOption=function(e,t){o[e]=t},this.getOption=function(e){return o[e]},this.getOptions=function(){return o},this.addExtension=function(e,t){n(e,t=t||null)},this.useExtension=function(e){n(e)},this.setFlavor=function(e){if(!p.hasOwnProperty(e))throw Error(e+" flavor was not found");var t=p[e];for(var i in s=e,t)t.hasOwnProperty(i)&&(o[i]=t[i])},this.getFlavor=function(){return s},this.removeExtension=function(e){A.helper.isArray(e)||(e=[e]);for(var t=0;t<e.length;++t){for(var i=e[t],n=0;n<a.length;++n)a[n]===i&&a[n].splice(n,1);for(;0<l.length;++n)l[0]===i&&l[0].splice(n,1)}},this.getAllExtensions=function(){return{language:a,output:l}},this.getMetadata=function(e){return e?h.raw:h.parsed},this.getMetadataFormat=function(){return h.format},this._setMetadataPair=function(e,t){h.parsed[e]=t},this._setMetadataFormat=function(e){h.format=e},this._setMetadataRaw=function(e){h.raw=e}},A.subParser("anchors",function(e,l,c){"use strict";var t=function(e,t,i,n,s,r,o){if(A.helper.isUndefined(o)&&(o=""),i=i.toLowerCase(),-1<e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m))n="";else if(!n){if(i||(i=t.toLowerCase().replace(/ ?\n/g," ")),n="#"+i,A.helper.isUndefined(c.gUrls[i]))return e;n=c.gUrls[i],A.helper.isUndefined(c.gTitles[i])||(o=c.gTitles[i])}var a='<a href="'+(n=n.replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback))+'"';return""!==o&&null!==o&&(a+=' title="'+(o=(o=o.replace(/"/g,"&quot;")).replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback))+'"'),l.openLinksInNewWindow&&!/^#/.test(n)&&(a+=' target="¨E95Eblank"'),a+">"+t+"</a>"};return e=(e=(e=(e=(e=c.converter._dispatch("anchors.before",e,l,c)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,t)).replace(/\[([^\[\]]+)]()()()()()/g,t),l.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d\-]+))(?=[.!?;,[\]()]|\s|$)/gim,function(e,t,i,n,s){if("\\"===i)return t+n;if(!A.helper.isString(l.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var r=l.ghMentionsLink.replace(/\{u}/g,s),o="";return l.openLinksInNewWindow&&(o=' target="¨E95Eblank"'),t+'<a href="'+r+'"'+o+">"+n+"</a>"})),c.converter._dispatch("anchors.after",e,l,c)});var s=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,o=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,a=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,l=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,c=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,h=function(d){"use strict";return function(e,t,i,n,s,r,o){var a=i=i.replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback),l="",c="",h=t||"",u=o||"";return/^www\./i.test(i)&&(i=i.replace(/^www\./i,"http://www.")),d.excludeTrailingPunctuationFromURLs&&r&&(l=r),d.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),h+'<a href="'+i+'"'+c+">"+a+"</a>"+l+u}},C=function(s,r){"use strict";return function(e,t,i){var n="mailto:";return t=t||"",i=A.subParser("unescapeSpecialChars")(i,s,r),s.encodeEmails?(n=A.helper.encodeEmailAddress(n+i),i=A.helper.encodeEmailAddress(i)):n+=i,t+'<a href="'+n+'">'+i+"</a>"}};A.subParser("autoLinks",function(e,t,i){"use strict";return e=(e=(e=i.converter._dispatch("autoLinks.before",e,t,i)).replace(a,h(t))).replace(c,C(t,i)),i.converter._dispatch("autoLinks.after",e,t,i)}),A.subParser("simplifiedAutoLinks",function(e,t,i){"use strict";return t.simplifiedAutoLink?(e=i.converter._dispatch("simplifiedAutoLinks.before",e,t,i),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(o,h(t)):e.replace(s,h(t))).replace(l,C(t,i)),e=i.converter._dispatch("simplifiedAutoLinks.after",e,t,i)):e}),A.subParser("blockGamut",function(e,t,i){"use strict";return e=i.converter._dispatch("blockGamut.before",e,t,i),e=A.subParser("blockQuotes")(e,t,i),e=A.subParser("headers")(e,t,i),e=A.subParser("horizontalRule")(e,t,i),e=A.subParser("lists")(e,t,i),e=A.subParser("codeBlocks")(e,t,i),e=A.subParser("tables")(e,t,i),e=A.subParser("hashHTMLBlocks")(e,t,i),e=A.subParser("paragraphs")(e,t,i),i.converter._dispatch("blockGamut.after",e,t,i)}),A.subParser("blockQuotes",function(e,t,i){"use strict";e=i.converter._dispatch("blockQuotes.before",e,t,i),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=A.subParser("githubCodeBlocks")(e,t,i),e=(e=(e=A.subParser("blockGamut")(e,t,i)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*<pre>[^\r]+?<\/pre>)/gm,function(e,t){var i=t;return(i=i.replace(/^ /gm,"¨0")).replace(/¨0/g,"")}),A.subParser("hashBlock")("<blockquote>\n"+e+"\n</blockquote>",t,i)}),i.converter._dispatch("blockQuotes.after",e,t,i)}),A.subParser("codeBlocks",function(e,o,a){"use strict";return e=a.converter._dispatch("codeBlocks.before",e,o,a),e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,t,i){var n=t,s=i,r="\n";return n=A.subParser("outdent")(n,o,a),n=A.subParser("encodeCode")(n,o,a),n=(n=(n=A.subParser("detab")(n,o,a)).replace(/^\n+/g,"")).replace(/\n+$/g,""),o.omitExtraWLInCodeBlocks&&(r=""),n="<pre><code>"+n+r+"</code></pre>",A.subParser("hashBlock")(n,o,a)+s})).replace(/¨0/,""),a.converter._dispatch("codeBlocks.after",e,o,a)}),A.subParser("codeSpans",function(e,r,o){"use strict";return void 0===(e=o.converter._dispatch("codeSpans.before",e,r,o))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,t,i,n){var s=n;return s=(s=s.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),s=t+"<code>"+(s=A.subParser("encodeCode")(s,r,o))+"</code>",A.subParser("hashHTMLSpans")(s,r,o)}),o.converter._dispatch("codeSpans.after",e,r,o)}),A.subParser("completeHTMLDocument",function(e,t,i){"use strict";if(!t.completeHTMLDocument)return e;e=i.converter._dispatch("completeHTMLDocument.before",e,t,i);var n="html",s="<!DOCTYPE HTML>\n",r="",o='<meta charset="utf-8">\n',a="",l="";for(var c in void 0!==i.metadata.parsed.doctype&&(s="<!DOCTYPE "+i.metadata.parsed.doctype+">\n","html"!==(n=i.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(o='<meta charset="utf-8">')),i.metadata.parsed)if(i.metadata.parsed.hasOwnProperty(c))switch(c.toLowerCase()){case"doctype":break;case"title":r="<title>"+i.metadata.parsed.title+"</title>\n";break;case"charset":o="html"===n||"html5"===n?'<meta charset="'+i.metadata.parsed.charset+'">\n':'<meta name="charset" content="'+i.metadata.parsed.charset+'">\n';break;case"language":case"lang":a=' lang="'+i.metadata.parsed[c]+'"',l+='<meta name="'+c+'" content="'+i.metadata.parsed[c]+'">\n';break;default:l+='<meta name="'+c+'" content="'+i.metadata.parsed[c]+'">\n'}return e=s+"<html"+a+">\n<head>\n"+r+o+l+"</head>\n<body>\n"+e.trim()+"\n</body>\n</html>",i.converter._dispatch("completeHTMLDocument.after",e,t,i)}),A.subParser("detab",function(e,t,i){"use strict";return e=(e=(e=(e=(e=(e=i.converter._dispatch("detab.before",e,t,i)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var i=t,n=4-i.length%4,s=0;s<n;s++)i+=" ";return i})).replace(/¨A/g," ")).replace(/¨B/g,""),i.converter._dispatch("detab.after",e,t,i)}),A.subParser("ellipsis",function(e,t,i){"use strict";return e=(e=i.converter._dispatch("ellipsis.before",e,t,i)).replace(/\.\.\./g,"…"),i.converter._dispatch("ellipsis.after",e,t,i)}),A.subParser("emoji",function(e,t,i){"use strict";return t.emoji?(e=(e=i.converter._dispatch("emoji.before",e,t,i)).replace(/:([\S]+?):/g,function(e,t){return A.helper.emojis.hasOwnProperty(t)?A.helper.emojis[t]:e}),i.converter._dispatch("emoji.after",e,t,i)):e}),A.subParser("encodeAmpsAndAngles",function(e,t,i){"use strict";return e=(e=(e=(e=(e=i.converter._dispatch("encodeAmpsAndAngles.before",e,t,i)).replace(/&(?!#?[xX]?(?:[0-9a-fA-F]+|\w+);)/g,"&amp;")).replace(/<(?![a-z\/?$!])/gi,"&lt;")).replace(/</g,"&lt;")).replace(/>/g,"&gt;"),i.converter._dispatch("encodeAmpsAndAngles.after",e,t,i)}),A.subParser("encodeBackslashEscapes",function(e,t,i){"use strict";return e=(e=(e=i.converter._dispatch("encodeBackslashEscapes.before",e,t,i)).replace(/\\(\\)/g,A.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,A.helper.escapeCharactersCallback),i.converter._dispatch("encodeBackslashEscapes.after",e,t,i)}),A.subParser("encodeCode",function(e,t,i){"use strict";return e=(e=i.converter._dispatch("encodeCode.before",e,t,i)).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/([*_{}\[\]\\=~-])/g,A.helper.escapeCharactersCallback),i.converter._dispatch("encodeCode.after",e,t,i)}),A.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,i){"use strict";return e=(e=(e=i.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,i)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,A.helper.escapeCharactersCallback)})).replace(/<!(--(?:(?:[^>-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,A.helper.escapeCharactersCallback)}),i.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,i)}),A.subParser("githubCodeBlocks",function(e,r,o){"use strict";return r.ghCodeBlocks?(e=o.converter._dispatch("githubCodeBlocks.before",e,r,o),e=(e=(e+="¨0").replace(/(?:^|\n)(```+|~~~+)([^\s`~]*)\n([\s\S]*?)\n\1/g,function(e,t,i,n){var s=r.omitExtraWLInCodeBlocks?"":"\n";return n=A.subParser("encodeCode")(n,r,o),n="<pre><code"+(i?' class="'+i+" language-"+i+'"':"")+">"+(n=(n=(n=A.subParser("detab")(n,r,o)).replace(/^\n+/g,"")).replace(/\n+$/g,""))+s+"</code></pre>",n=A.subParser("hashBlock")(n,r,o),"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:n})-1)+"G\n\n"})).replace(/¨0/,""),o.converter._dispatch("githubCodeBlocks.after",e,r,o)):e}),A.subParser("hashBlock",function(e,t,i){"use strict";return e=(e=i.converter._dispatch("hashBlock.before",e,t,i)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(i.gHtmlBlocks.push(e)-1)+"K\n\n",i.converter._dispatch("hashBlock.after",e,t,i)}),A.subParser("hashCodeTags",function(e,r,o){"use strict";return e=o.converter._dispatch("hashCodeTags.before",e,r,o),e=A.helper.replaceRecursiveRegExp(e,function(e,t,i,n){var s=i+A.subParser("encodeCode")(t,r,o)+n;return"¨C"+(o.gHtmlSpans.push(s)-1)+"C"},"<code\\b[^>]*>","</code>","gim"),o.converter._dispatch("hashCodeTags.after",e,r,o)}),A.subParser("hashElement",function(e,t,n){"use strict";return function(e,t){var i=t;return i=(i=(i=i.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),"\n\n¨K"+(n.gHtmlBlocks.push(i)-1)+"K\n\n"}}),A.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var i=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],n=function(e,t,i,n){var s=e;return-1!==i.search(/\bmarkdown\b/)&&(s=i+r.converter.makeHtml(t)+n),"\n\n¨K"+(r.gHtmlBlocks.push(s)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"&lt;"+t+"&gt;"}));for(var s=0;s<i.length;++s)for(var o,a=new RegExp("^ {0,3}(<"+i[s]+"\\b[^>]*>)","im"),l="<"+i[s]+"\\b[^>]*>",c="</"+i[s]+">";-1!==(o=A.helper.regexIndexOf(e,a));){var h=A.helper.splitAtIndex(e,o),u=A.helper.replaceRecursiveRegExp(h[1],n,l,c,"im");if(u===h[1])break;e=h[0].concat(u)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,A.subParser("hashElement")(e,t,r)),e=(e=A.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,A.subParser("hashElement")(e,t,r)),r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),A.subParser("hashHTMLSpans",function(e,t,i){"use strict";function n(e){return"¨C"+(i.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=i.converter._dispatch("hashHTMLSpans.before",e,t,i)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),i.converter._dispatch("hashHTMLSpans.after",e,t,i)}),A.subParser("unhashHTMLSpans",function(e,t,i){"use strict";e=i.converter._dispatch("unhashHTMLSpans.before",e,t,i);for(var n=0;n<i.gHtmlSpans.length;++n){for(var s=i.gHtmlSpans[n],r=0;/¨C(\d+)C/.test(s);){var o=RegExp.$1;if(s=s.replace("¨C"+o+"C",i.gHtmlSpans[o]),10===r){console.error("maximum nesting of 10 spans reached!!!");break}++r}e=e.replace("¨C"+n+"C",s)}return i.converter._dispatch("unhashHTMLSpans.after",e,t,i)}),A.subParser("hashPreCodeTags",function(e,r,o){"use strict";return e=o.converter._dispatch("hashPreCodeTags.before",e,r,o),e=A.helper.replaceRecursiveRegExp(e,function(e,t,i,n){var s=i+A.subParser("encodeCode")(t,r,o)+n;return"\n\n¨G"+(o.ghCodeBlocks.push({text:e,codeblock:s})-1)+"G\n\n"},"^ {0,3}<pre\\b[^>]*>\\s*<code\\b[^>]*>","^ {0,3}</code>\\s*</pre>","gim"),o.converter._dispatch("hashPreCodeTags.after",e,r,o)}),A.subParser("headers",function(e,l,c){"use strict";function h(e){var t,i;if(l.customizedHeaderId){var n=e.match(/\{([^{]+?)}\s*$/);n&&n[1]&&(e=n[1])}return t=e,i=A.helper.isString(l.prefixHeaderId)?l.prefixHeaderId:!0===l.prefixHeaderId?"section-":"",l.rawPrefixHeaderId||(t=i+t),t=l.ghCompatibleHeaderId?t.replace(/ /g,"-").replace(/&amp;/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():l.rawHeaderId?t.replace(/ /g,"-").replace(/&amp;/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():t.replace(/[^\w]/g,"").toLowerCase(),l.rawPrefixHeaderId&&(t=i+t),c.hashLinkCounts[t]?t=t+"-"+c.hashLinkCounts[t]++:c.hashLinkCounts[t]=1,t}e=c.converter._dispatch("headers.before",e,l,c);var u=isNaN(parseInt(l.headerLevelStart))?1:parseInt(l.headerLevelStart),t=l.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=l.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(t,function(e,t){var i=A.subParser("spanGamut")(t,l,c),n=l.noHeaderId?"":' id="'+h(t)+'"',s="<h"+u+n+">"+i+"</h"+u+">";return A.subParser("hashBlock")(s,l,c)})).replace(i,function(e,t){var i=A.subParser("spanGamut")(t,l,c),n=l.noHeaderId?"":' id="'+h(t)+'"',s=u+1,r="<h"+s+n+">"+i+"</h"+s+">";return A.subParser("hashBlock")(r,l,c)});var n=l.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;return e=e.replace(n,function(e,t,i){var n=i;l.customizedHeaderId&&(n=i.replace(/\s?\{([^{]+?)}\s*$/,""));var s=A.subParser("spanGamut")(n,l,c),r=l.noHeaderId?"":' id="'+h(i)+'"',o=u-1+t.length,a="<h"+o+r+">"+s+"</h"+o+">";return A.subParser("hashBlock")(a,l,c)}),c.converter._dispatch("headers.after",e,l,c)}),A.subParser("horizontalRule",function(e,t,i){"use strict";e=i.converter._dispatch("horizontalRule.before",e,t,i);var n=A.subParser("hashBlock")("<hr />",t,i);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),i.converter._dispatch("horizontalRule.after",e,t,i)}),A.subParser("images",function(e,t,d){"use strict";function l(e,t,i,n,s,r,o,a){var l=d.gUrls,c=d.gTitles,h=d.gDimensions;if(i=i.toLowerCase(),a||(a=""),-1<e.search(/\(<?\s*>? ?(['"].*['"])?\)$/m))n="";else if(""===n||null===n){if(""!==i&&null!==i||(i=t.toLowerCase().replace(/ ?\n/g," ")),n="#"+i,A.helper.isUndefined(l[i]))return e;n=l[i],A.helper.isUndefined(c[i])||(a=c[i]),A.helper.isUndefined(h[i])||(s=h[i].width,r=h[i].height)}t=t.replace(/"/g,"&quot;").replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback);var u='<img src="'+(n=n.replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback))+'" alt="'+t+'"';return a&&(u+=' title="'+(a=a.replace(/"/g,"&quot;").replace(A.helper.regexes.asteriskDashAndColon,A.helper.escapeCharactersCallback))+'"'),s&&r&&(u+=' width="'+(s="*"===s?"auto":s)+'"',u+=' height="'+(r="*"===r?"auto":r)+'"'),u+" />"}return e=(e=(e=(e=(e=(e=d.converter._dispatch("images.before",e,t,d)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,i,n,s,r,o,a){return l(e,t,i,n=n.replace(/\s/g,""),s,r,0,a)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,l)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<?([\S]+?(?:\([\S]*?\)[\S]*?)?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,l)).replace(/!\[([^\[\]]+)]()()()()()/g,l),d.converter._dispatch("images.after",e,t,d)}),A.subParser("italicsAndBold",function(e,t,i){"use strict";function n(e,t,i){return t+e+i}return e=i.converter._dispatch("italicsAndBold.before",e,t,i),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*)___\b/g,function(e,t){return n(t,"<strong><em>","</em></strong>")})).replace(/\b__(\S[\s\S]*)__\b/g,function(e,t){return n(t,"<strong>","</strong>")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"<em>","</em>")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]+?)\*\*\*\B(?!\*)/g,function(e,t,i){return n(i,t+"<strong><em>","</em></strong>")})).replace(/([^*]|^)\B\*\*(\S[\s\S]+?)\*\*\B(?!\*)/g,function(e,t,i){return n(i,t+"<strong>","</strong>")})).replace(/([^*]|^)\B\*(\S[\s\S]+?)\*\B(?!\*)/g,function(e,t,i){return n(i,t+"<em>","</em>")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"<strong><em>","</em></strong>"):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"<strong>","</strong>"):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"<em>","</em>"):e}),i.converter._dispatch("italicsAndBold.after",e,t,i)}),A.subParser("lists",function(e,u,h){"use strict";function d(e,t){h.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,c=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return u.disableForced4SpacesIndentedSublists&&(i=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(i,function(e,t,i,n,s,r,o){o=o&&""!==o.trim();var a=A.subParser("outdent")(s,u,h),l="";return r&&u.tasklists&&(l=' class="task-list-item" style="list-style-type: none;"',a=a.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='<input type="checkbox" disabled style="margin: 0px 0.35em 0.25em -1.6em; vertical-align: middle;"';return o&&(e+=" checked"),e+">"})),a=a.replace(/^([-*+]|\d\.)[ \t]+[\S\n ]*/g,function(e){return"¨A"+e}),"<li"+l+">"+(a=(a=t||-1<a.search(/\n{2,}/)?(a=A.subParser("githubCodeBlocks")(a,u,h),A.subParser("blockGamut")(a,u,h)):(a=(a=A.subParser("lists")(a,u,h)).replace(/\n$/,""),a=(a=A.subParser("hashHTMLBlocks")(a,u,h)).replace(/\n\n+/g,"\n\n"),c?A.subParser("paragraphs")(a,u,h):A.subParser("spanGamut")(a,u,h))).replace("¨A",""))+"</li>\n"})).replace(/¨0/g,""),h.gListLevel--,t&&(e=e.replace(/\s+$/,"")),e}function g(e,t){if("ol"===t){var i=e.match(/^ *(\d+)\./);if(i&&"1"!==i[1])return' start="'+i[1]+'"'}return""}function s(s,r,o){var a=u.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,l=u.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,c="ul"===r?a:l,h="";if(-1!==s.search(c))!function e(t){var i=t.search(c),n=g(s,r);-1!==i?(h+="\n\n<"+r+n+">\n"+d(t.slice(0,i),!!o)+"</"+r+">\n",c="ul"==(r="ul"===r?"ol":"ul")?a:l,e(t.slice(i))):h+="\n\n<"+r+n+">\n"+d(t,!!o)+"</"+r+">\n"}(s);else{var e=g(s,r);h="\n\n<"+r+e+">\n"+d(s,!!o)+"</"+r+">\n"}return h}return e=h.converter._dispatch("lists.before",e,u,h),e+="¨0",e=(e=h.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,i){return s(t,-1<i.search(/[*+-]/g)?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,i,n){return s(i,-1<n.search(/[*+-]/g)?"ul":"ol",!1)})).replace(/¨0/,""),h.converter._dispatch("lists.after",e,u,h)}),A.subParser("metadata",function(e,t,n){"use strict";function s(e){(e=(e=(n.metadata.raw=e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,i){return n.metadata.parsed[t]=i,""})}return t.metadata?(e=(e=(e=(e=n.converter._dispatch("metadata.before",e,t,n)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,i){return s(i),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,i){return t&&(n.metadata.format=t),s(i),"¨M"})).replace(/¨M/g,""),e=n.converter._dispatch("metadata.after",e,t,n)):e}),A.subParser("outdent",function(e,t,i){"use strict";return e=(e=(e=i.converter._dispatch("outdent.before",e,t,i)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),i.converter._dispatch("outdent.after",e,t,i)}),A.subParser("paragraphs",function(e,t,i){"use strict";for(var n=(e=(e=(e=i.converter._dispatch("paragraphs.before",e,t,i)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),s=[],r=n.length,o=0;o<r;o++){var a=n[o];0<=a.search(/¨(K|G)(\d+)\1/g)?s.push(a):0<=a.search(/\S/)&&(a=(a=A.subParser("spanGamut")(a,t,i)).replace(/^([ \t]*)/g,"<p>"),a+="</p>",s.push(a))}for(r=s.length,o=0;o<r;o++){for(var l="",c=s[o],h=!1;/¨(K|G)(\d+)\1/.test(c);){var u=RegExp.$1,d=RegExp.$2;l=(l="K"===u?i.gHtmlBlocks[d]:h?A.subParser("encodeCode")(i.ghCodeBlocks[d].text,t,i):i.ghCodeBlocks[d].codeblock).replace(/\$/g,"$$$$"),c=c.replace(/(\n\n)?¨(K|G)\d+\2(\n\n)?/,l),/^<pre\b[^>]*>\s*<code\b[^>]*>/.test(c)&&(h=!0)}s[o]=c}return e=(e=(e=s.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),i.converter._dispatch("paragraphs.after",e,t,i)}),A.subParser("runExtension",function(e,t,i,n){"use strict";if(e.filter)t=e.filter(t,n.converter,i);else if(e.regex){var s=e.regex;s instanceof RegExp||(s=new RegExp(s,"g")),t=t.replace(s,e.replace)}return t}),A.subParser("spanGamut",function(e,t,i){"use strict";return e=i.converter._dispatch("spanGamut.before",e,t,i),e=A.subParser("codeSpans")(e,t,i),e=A.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,i),e=A.subParser("encodeBackslashEscapes")(e,t,i),e=A.subParser("images")(e,t,i),e=A.subParser("anchors")(e,t,i),e=A.subParser("autoLinks")(e,t,i),e=A.subParser("simplifiedAutoLinks")(e,t,i),e=A.subParser("emoji")(e,t,i),e=A.subParser("underline")(e,t,i),e=A.subParser("italicsAndBold")(e,t,i),e=A.subParser("strikethrough")(e,t,i),e=A.subParser("ellipsis")(e,t,i),e=A.subParser("hashHTMLSpans")(e,t,i),e=A.subParser("encodeAmpsAndAngles")(e,t,i),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"<br />\n")):e=e.replace(/ +\n/g,"<br />\n"),i.converter._dispatch("spanGamut.after",e,t,i)}),A.subParser("strikethrough",function(e,n,s){"use strict";return n.strikethrough&&(e=(e=s.converter._dispatch("strikethrough.before",e,n,s)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,t){return i=t,n.simplifiedAutoLink&&(i=A.subParser("simplifiedAutoLinks")(i,n,s)),"<del>"+i+"</del>";var i}),e=s.converter._dispatch("strikethrough.after",e,n,s)),e}),A.subParser("stripLinkDefinitions",function(e,a,l){"use strict";var t=function(e,t,i,n,s,r,o){return t=t.toLowerCase(),i.match(/^data:.+?\/.+?;base64,/)?l.gUrls[t]=i.replace(/\s/g,""):l.gUrls[t]=A.subParser("encodeAmpsAndAngles")(i,a,l),r?r+o:(o&&(l.gTitles[t]=o.replace(/"|'/g,"&quot;")),a.parseImgDimensions&&n&&s&&(l.gDimensions[t]={width:n,height:s}),"")};return(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?(data:.+?\/.+?;base64,[A-Za-z0-9+/=\n]+?)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,t)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*<?([^>\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,t)).replace(/¨0/,"")}),A.subParser("tables",function(e,m,C){"use strict";function t(e){var t,i=e.split("\n");for(t=0;t<i.length;++t)/^ {0,3}\|/.test(i[t])&&(i[t]=i[t].replace(/^ {0,3}\|/,"")),/\|[ \t]*$/.test(i[t])&&(i[t]=i[t].replace(/\|[ \t]*$/,"")),i[t]=A.subParser("codeSpans")(i[t],m,C);var n,s,r,o,a,l=i[0].split("|").map(function(e){return e.trim()}),c=i[1].split("|").map(function(e){return e.trim()}),h=[],u=[],d=[],g=[];for(i.shift(),i.shift(),t=0;t<i.length;++t)""!==i[t].trim()&&h.push(i[t].split("|").map(function(e){return e.trim()}));if(l.length<c.length)return e;for(t=0;t<c.length;++t)d.push((n=c[t],/^:[ \t]*--*$/.test(n)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(n)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(n)?' style="text-align:center;"':""));for(t=0;t<l.length;++t)A.helper.isUndefined(d[t])&&(d[t]=""),u.push((s=l[t],r=d[t],o=void 0,o="",s=s.trim(),(m.tablesHeaderId||m.tableHeaderId)&&(o=' id="'+s.replace(/ /g,"_").toLowerCase()+'"'),"<th"+o+r+">"+(s=A.subParser("spanGamut")(s,m,C))+"</th>\n"));for(t=0;t<h.length;++t){for(var f=[],p=0;p<u.length;++p)A.helper.isUndefined(h[t][p]),f.push((a=h[t][p],"<td"+d[p]+">"+A.subParser("spanGamut")(a,m,C)+"</td>\n"));g.push(f)}return function(e,t){for(var i="<table>\n<thead>\n<tr>\n",n=e.length,s=0;s<n;++s)i+=e[s];for(i+="</tr>\n</thead>\n<tbody>\n",s=0;s<t.length;++s){i+="<tr>\n";for(var r=0;r<n;++r)i+=t[s][r];i+="</tr>\n"}return i+"</tbody>\n</table>\n"}(u,g)}return m.tables?(e=(e=(e=(e=C.converter._dispatch("tables.before",e,m,C)).replace(/\\(\|)/g,A.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,t)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,t),C.converter._dispatch("tables.after",e,m,C)):e}),A.subParser("underline",function(e,t,i){"use strict";return t.underline?(e=i.converter._dispatch("underline.before",e,t,i),e=(e=t.literalMidWordUnderscores?e.replace(/\b_?__(\S[\s\S]*)___?\b/g,function(e,t){return"<u>"+t+"</u>"}):e.replace(/_?__(\S[\s\S]*?)___?/g,function(e,t){return/\S$/.test(t)?"<u>"+t+"</u>":e})).replace(/(_)/g,A.helper.escapeCharactersCallback),e=i.converter._dispatch("underline.after",e,t,i)):e}),A.subParser("unescapeSpecialChars",function(e,t,i){"use strict";return e=(e=i.converter._dispatch("unescapeSpecialChars.before",e,t,i)).replace(/¨E(\d+)E/g,function(e,t){var i=parseInt(t);return String.fromCharCode(i)}),i.converter._dispatch("unescapeSpecialChars.after",e,t,i)}),"function"==typeof define&&define.amd?define(function(){"use strict";return A}):"undefined"!=typeof module&&module.exports?module.exports=A:this.showdown=A}).call(this);
//# sourceMappingURL=vendor.js.map