!function(f,c,h){function a(t,e){return typeof t===e}function p(t,e,n){var i,o;return"getComputedStyle"in f?(i=getComputedStyle.call(f,t,e),o=f.console,null!==i?n&&(i=i.getPropertyValue(n)):o&&o[o.error?"error":"log"].call(o,"getComputedStyle returning null, its possible modernizr test results are inaccurate")):i=!e&&t.currentStyle&&t.currentStyle[n],i}function o(t,e){return t-1===e||t===e||t+1===e}function g(t){return"function"!=typeof c.createElement?c.createElement(t):x?c.createElementNS.call(c,"http://www.w3.org/2000/svg",t):c.createElement.apply(c,arguments)}function m(t){return t.replace(/([a-z])-([a-z])/g,function(t,e,n){return e+n.toUpperCase()}).replace(/^-/,"")}function v(t,e,n,i){var o,r,s,a="modernizr",l=g("div"),u=((s=c.body)||((s=g(x?"svg":"body")).fake=!0),s);if(parseInt(n,10))for(;n--;)(o=g("div")).id=i?i[n]:a+(n+1),l.appendChild(o);return(s=g("style")).type="text/css",s.id="s"+a,(u.fake?u:l).appendChild(s),u.appendChild(l),s.styleSheet?s.styleSheet.cssText=t:s.appendChild(c.createTextNode(t)),l.id=a,u.fake&&(u.style.background="",u.style.overflow="hidden",r=T.style.overflow,T.style.overflow="hidden",T.appendChild(u)),t=e(l,t),u.fake?(u.parentNode.removeChild(u),T.style.overflow=r,T.offsetHeight):l.parentNode.removeChild(l),!!t}function l(t,e,n){var i,o;for(o in t)if(t[o]in e)return!1===n?t[o]:(i=e[t[o]],a(i,"function")?function(t,e){return function(){return t.apply(e,arguments)}}(i,n||e):i);return!1}function y(t){return t.replace(/([A-Z])/g,function(t,e){return"-"+e.toLowerCase()}).replace(/^ms-/,"-ms-")}function u(t,e,n,i){function o(){s&&(delete C.style,delete C.modElem)}if(i=void 0!==i&&i,void 0!==n){var r=function(t,e){var n=t.length;if("CSS"in f&&"supports"in f.CSS){for(;n--;)if(f.CSS.supports(y(t[n]),e))return!0;return!1}if("CSSSupportsRule"in f){for(var i=[];n--;)i.push("("+y(t[n])+":"+e+")");return v("@supports ("+(i=i.join(" or "))+") { #modernizr { position: absolute; } }",function(t){return"absolute"==p(t,null,"position")})}return h}(t,n);if(void 0!==r)return r}for(var s,a,l,u,c,d=["modernizr","tspan","samp"];!C.style&&d.length;)s=!0,C.modElem=g(d.shift()),C.style=C.modElem.style;for(l=t.length,a=0;a<l;a++)if(u=t[a],c=C.style[u],~(""+u).indexOf("-")&&(u=m(u)),C.style[u]!==h){if(i||void 0===n)return o(),"pfx"!=e||u;try{C.style[u]=n}catch(t){}if(C.style[u]!=c)return o(),"pfx"!=e||u}return o(),!1}function i(t,e,n,i,o){var r=t.charAt(0).toUpperCase()+t.slice(1),s=(t+" "+_.join(r+" ")+r).split(" ");return a(e,"string")||void 0===e?u(s,e,i,o):l(s=(t+" "+E.join(r+" ")+r).split(" "),e,n)}function t(t,e,n){return i(t,h,h,e,n)}var d=[],b=[],e={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(t,e){var n=this;setTimeout(function(){e(n[t])},0)},addTest:function(t,e,n){b.push({name:t,fn:e,options:n})},addAsyncTest:function(t){b.push({name:null,fn:t})}},w=function(){};w.prototype=e,(w=new w).addTest("svg",!!c.createElementNS&&!!c.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect);var T=c.documentElement;w.addTest("cssall","all"in T.style);var x="svg"===T.nodeName.toLowerCase();w.addTest("inlinesvg",function(){var t=g("div");return t.innerHTML="<svg/>","http://www.w3.org/2000/svg"==("undefined"!=typeof SVGRect&&t.firstChild&&t.firstChild.namespaceURI)}),w.addTest("cssremunit",function(){var t=g("a").style;try{t.fontSize="3rem"}catch(t){}return/rem/.test(t.fontSize)}),(n=e.testStyles=v)("#modernizr { height: 50vh; }",function(t){var e=parseInt(f.innerHeight/2,10),t=parseInt(p(t,null,"height"),10);w.addTest("cssvhunit",o(t,e))}),n("#modernizr1{width: 50vmax}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var e=t.childNodes[2],n=t.childNodes[1],i=t.childNodes[0],t=parseInt((n.offsetWidth-n.clientWidth)/2,10),n=i.clientWidth/100,i=i.clientHeight/100,i=parseInt(50*Math.max(n,i),10),e=parseInt(p(e,null,"width"),10);w.addTest("cssvmaxunit",o(i,e)||o(i,e-t))},3),n("#modernizr1{width: 50vm;width:50vmin}#modernizr2{width:50px;height:50px;overflow:scroll}#modernizr3{position:fixed;top:0;left:0;bottom:0;right:0}",function(t){var e=t.childNodes[2],n=t.childNodes[1],i=t.childNodes[0],t=parseInt((n.offsetWidth-n.clientWidth)/2,10),n=i.clientWidth/100,i=i.clientHeight/100,i=parseInt(50*Math.min(n,i),10),e=parseInt(p(e,null,"width"),10);w.addTest("cssvminunit",o(i,e)||o(i,e-t))},3),n("#modernizr { width: 50vw; }",function(t){var e=parseInt(f.innerWidth/2,10),t=parseInt(p(t,null,"width"),10);w.addTest("cssvwunit",o(t,e))});var n="Moz O ms Webkit",_=e._config.usePrefixes?n.split(" "):[];function r(t){var e,n=prefixes.length,i=f.CSSRule;if(void 0===i)return h;if(!t)return!1;if((e=(t=t.replace(/^@/,"")).replace(/-/g,"_").toUpperCase()+"_RULE")in i)return"@"+t;for(var o=0;o<n;o++){var r=prefixes[o];if(r.toUpperCase()+"_"+e in i)return"@-"+r.toLowerCase()+"-"+t}return!1}e._cssomPrefixes=_,e.atRule=r;var E=e._config.usePrefixes?n.toLowerCase().split(" "):[];e._domPrefixes=E;var s={elem:g("modernizr")};w._q.push(function(){delete s.elem});var C={style:s.elem.style};w._q.unshift(function(){delete C.style}),e.testAllProps=i,e.testAllProps=t,w.addTest("cssgridlegacy",t("grid-columns","10px",!0)),w.addTest("cssgrid",t("grid-template-rows","none",!0)),w.addTest("flexbox",t("flexBasis","1px",!0));var S,D,O,n=e.prefixed=function(t,e,n){return 0===t.indexOf("@")?r(t):(-1!=t.indexOf("-")&&(t=m(t)),e?i(t,e,n):i(t,"pfx"))};w.addTest("objectfit",!!n("objectFit"),{aliases:["object-fit"]}),function(){var t,e,n,i,o,r,s;for(s in b)if(b.hasOwnProperty(s)){if(t=[],(e=b[s]).name&&(t.push(e.name.toLowerCase()),e.options&&e.options.aliases&&e.options.aliases.length))for(n=0;n<e.options.aliases.length;n++)t.push(e.options.aliases[n].toLowerCase());for(i=a(e.fn,"function")?e.fn():e.fn,o=0;o<t.length;o++)1===(r=t[o].split(".")).length?w[r[0]]=i:(!w[r[0]]||w[r[0]]instanceof Boolean||(w[r[0]]=new Boolean(w[r[0]])),w[r[0]][r[1]]=i),d.push((i?"":"no-")+r.join("-"))}}(),S=d,D=T.className,O=w._config.classPrefix||"",x&&(D=D.baseVal),w._config.enableJSClass&&(n=new RegExp("(^|\\s)"+O+"no-js(\\s|$)"),D=D.replace(n,"$1"+O+"js$2")),w._config.enableClasses&&(D+=" "+O+S.join(" "+O),x?T.className.baseVal=D:T.className=D),delete e.addTest,delete e.addAsyncTest;for(var A=0;A<w._q.length;A++)w._q[A]();f.Modernizr=w}(window,document),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(x,t){"use strict";function g(t){return null!=t&&t===t.window}var e=[],_=x.document,n=Object.getPrototypeOf,a=e.slice,m=e.concat,l=e.push,o=e.indexOf,i={},r=i.toString,v=i.hasOwnProperty,s=v.toString,u=s.call(Object),y={},b=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},c={type:!0,src:!0,noModule:!0};function w(t,e,n){var i,o=(e=e||_).createElement("script");if(o.text=t,n)for(i in c)n[i]&&(o[i]=n[i]);e.head.appendChild(o).parentNode.removeChild(o)}function p(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?i[r.call(t)]||"object":typeof t}var E=function(t,e){return new E.fn.init(t,e)},d=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function f(t){var e=!!t&&"length"in t&&t.length,n=p(t);return!b(t)&&!g(t)&&("array"===n||0===e||"number"==typeof e&&0<e&&e-1 in t)}E.fn=E.prototype={jquery:"3.3.1",constructor:E,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){t=E.merge(this.constructor(),t);return t.prevObject=this,t},each:function(t){return E.each(this,t)},map:function(n){return this.pushStack(E.map(this,function(t,e){return n.call(t,e,t)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,t=+t+(t<0?e:0);return this.pushStack(0<=t&&t<e?[this[t]]:[])},end:function(){return this.prevObject||this.constructor()},push:l,sort:e.sort,splice:e.splice},E.extend=E.fn.extend=function(){var t,e,n,i,o,r=arguments[0]||{},s=1,a=arguments.length,l=!1;for("boolean"==typeof r&&(l=r,r=arguments[s]||{},s++),"object"==typeof r||b(r)||(r={}),s===a&&(r=this,s--);s<a;s++)if(null!=(t=arguments[s]))for(e in t)o=r[e],r!==(n=t[e])&&(l&&n&&(E.isPlainObject(n)||(i=Array.isArray(n)))?(o=i?(i=!1,o&&Array.isArray(o)?o:[]):o&&E.isPlainObject(o)?o:{},r[e]=E.extend(l,o,n)):void 0!==n&&(r[e]=n));return r},E.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){return!(!t||"[object Object]"!==r.call(t)||(t=n(t))&&("function"!=typeof(t=v.call(t,"constructor")&&t.constructor)||s.call(t)!==u))},isEmptyObject:function(t){for(var e in t)return!1;return!0},globalEval:function(t){w(t)},each:function(t,e){var n,i=0;if(f(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(d,"")},makeArray:function(t,e){e=e||[];return null!=t&&(f(Object(t))?E.merge(e,"string"==typeof t?[t]:t):l.call(e,t)),e},inArray:function(t,e,n){return null==e?-1:o.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!=s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(f(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return m.apply([],s)},guid:1,support:y}),"function"==typeof Symbol&&(E.fn[Symbol.iterator]=e[Symbol.iterator]),E.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){i["[object "+e+"]"]=e.toLowerCase()});var h=function(n){function d(t,e,n){var i="0x"+e-65536;return i!=i||n?e:i<0?String.fromCharCode(65536+i):String.fromCharCode(i>>10|55296,1023&i|56320)}function i(){x()}var t,h,w,r,o,p,f,g,T,l,u,x,_,s,E,m,a,c,v,C="sizzle"+ +new Date,y=n.document,S=0,b=0,D=st(),O=st(),A=st(),k=function(t,e){return t===e&&(u=!0),0},N={}.hasOwnProperty,e=[],I=e.pop,L=e.push,M=e.push,j=e.slice,P=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},q="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",H="[\\x20\\t\\r\\n\\f]",R="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",W="\\["+H+"*("+R+")(?:"+H+"*([*^$|!~]?=)"+H+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+H+"*\\]",F=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+W+")*)|.*)\\)|)",B=new RegExp(H+"+","g"),V=new RegExp("^"+H+"+|((?:^|[^\\\\])(?:\\\\.)*)"+H+"+$","g"),U=new RegExp("^"+H+"*,"+H+"*"),z=new RegExp("^"+H+"*([>+~]|"+H+")"+H+"*"),$=new RegExp("="+H+"*([^\\]'\"]*?)"+H+"*\\]","g"),K=new RegExp(F),Q=new RegExp("^"+R+"$"),Y={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+H+"*(even|odd|(([+-]|)(\\d*)n|)"+H+"*(?:([+-]|)"+H+"*(\\d+)|))"+H+"*\\)|)","i"),bool:new RegExp("^(?:"+q+")$","i"),needsContext:new RegExp("^"+H+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+H+"*((?:-\\d)?\\d*)"+H+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\([\\da-f]{1,6}"+H+"?|("+H+")|.)","ig"),nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=mt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{M.apply(e=j.call(y.childNodes),y.childNodes),e[y.childNodes.length].nodeType}catch(n){M={apply:e.length?function(t,e){L.apply(t,j.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function rt(t,e,n,i){var o,r,s,a,l,u,c,d=e&&e.ownerDocument,f=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==f&&9!==f&&11!==f)return n;if(!i&&((e?e.ownerDocument||e:y)!==_&&x(e),e=e||_,E)){if(11!==f&&(l=Z.exec(t)))if(o=l[1]){if(9===f){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(d&&(s=d.getElementById(o))&&v(e,s)&&s.id===o)return n.push(s),n}else{if(l[2])return M.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&h.getElementsByClassName&&e.getElementsByClassName)return M.apply(n,e.getElementsByClassName(o)),n}if(h.qsa&&!A[t+" "]&&(!m||!m.test(t))){if(1!==f)d=e,c=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(nt,it):e.setAttribute("id",a=C),r=(u=p(t)).length;r--;)u[r]="#"+a+" "+gt(u[r]);c=u.join(","),d=tt.test(t)&&ht(e.parentNode)||e}if(c)try{return M.apply(n,d.querySelectorAll(c)),n}catch(t){}finally{a===C&&e.removeAttribute("id")}}}return g(t.replace(V,"$1"),e,n,i)}function st(){var n=[];function i(t,e){return n.push(t+" ")>w.cacheLength&&delete i[n.shift()],i[t+" "]=e}return i}function at(t){return t[C]=!0,t}function lt(t){var e=_.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ut(t,e){for(var n=t.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=e}function ct(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function dt(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ot(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function ft(s){return at(function(r){return r=+r,at(function(t,e){for(var n,i=s([],t.length,r),o=i.length;o--;)t[n=i[o]]&&(t[n]=!(e[n]=t[n]))})})}function ht(t){return t&&void 0!==t.getElementsByTagName&&t}for(t in h=rt.support={},o=rt.isXML=function(t){t=t&&(t.ownerDocument||t).documentElement;return!!t&&"HTML"!==t.nodeName},x=rt.setDocument=function(t){var e,t=t?t.ownerDocument||t:y;return t!==_&&9===t.nodeType&&t.documentElement&&(s=(_=t).documentElement,E=!o(_),y!==_&&(e=_.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",i,!1):e.attachEvent&&e.attachEvent("onunload",i)),h.attributes=lt(function(t){return t.className="i",!t.getAttribute("className")}),h.getElementsByTagName=lt(function(t){return t.appendChild(_.createComment("")),!t.getElementsByTagName("*").length}),h.getElementsByClassName=J.test(_.getElementsByClassName),h.getById=lt(function(t){return s.appendChild(t).id=C,!_.getElementsByName||!_.getElementsByName(C).length}),h.getById?(w.filter.ID=function(t){var e=t.replace(et,d);return function(t){return t.getAttribute("id")===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&E){t=e.getElementById(t);return t?[t]:[]}}):(w.filter.ID=function(t){var e=t.replace(et,d);return function(t){t=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return t&&t.value===e}},w.find.ID=function(t,e){if(void 0!==e.getElementById&&E){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),w.find.TAG=h.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):h.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"!==t)return r;for(;n=r[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&E)return e.getElementsByClassName(t)},a=[],m=[],(h.qsa=J.test(_.querySelectorAll))&&(lt(function(t){s.appendChild(t).innerHTML="<a id='"+C+"'></a><select id='"+C+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+H+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+H+"*(?:value|"+q+")"),t.querySelectorAll("[id~="+C+"-]").length||m.push("~="),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+C+"+*").length||m.push(".#.+[+~]")}),lt(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=_.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+H+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),s.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")})),(h.matchesSelector=J.test(c=s.matches||s.webkitMatchesSelector||s.mozMatchesSelector||s.oMatchesSelector||s.msMatchesSelector))&&lt(function(t){h.disconnectedMatch=c.call(t,"*"),c.call(t,"[s!='']:x"),a.push("!=",F)}),m=m.length&&new RegExp(m.join("|")),a=a.length&&new RegExp(a.join("|")),e=J.test(s.compareDocumentPosition),v=e||J.test(s.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,e=e&&e.parentNode;return t===e||!(!e||1!==e.nodeType||!(n.contains?n.contains(e):t.compareDocumentPosition&&16&t.compareDocumentPosition(e)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return u=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!h.sortDetached&&e.compareDocumentPosition(t)===n?t===_||t.ownerDocument===y&&v(y,t)?-1:e===_||e.ownerDocument===y&&v(y,e)?1:l?P(l,t)-P(l,e):0:4&n?-1:1)}:function(t,e){if(t===e)return u=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,s=[t],a=[e];if(!o||!r)return t===_?-1:e===_?1:o?-1:r?1:l?P(l,t)-P(l,e):0;if(o===r)return ct(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?ct(s[i],a[i]):s[i]===y?-1:a[i]===y?1:0}),_},rt.matches=function(t,e){return rt(t,null,null,e)},rt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==_&&x(t),e=e.replace($,"='$1']"),h.matchesSelector&&E&&!A[e+" "]&&(!a||!a.test(e))&&(!m||!m.test(e)))try{var n=c.call(t,e);if(n||h.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return 0<rt(e,_,null,[t]).length},rt.contains=function(t,e){return(t.ownerDocument||t)!==_&&x(t),v(t,e)},rt.attr=function(t,e){(t.ownerDocument||t)!==_&&x(t);var n=w.attrHandle[e.toLowerCase()],n=n&&N.call(w.attrHandle,e.toLowerCase())?n(t,e,!E):void 0;return void 0!==n?n:h.attributes||!E?t.getAttribute(e):(n=t.getAttributeNode(e))&&n.specified?n.value:null},rt.escape=function(t){return(t+"").replace(nt,it)},rt.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},rt.uniqueSort=function(t){var e,n=[],i=0,o=0;if(u=!h.detectDuplicates,l=!h.sortStable&&t.slice(0),t.sort(k),u){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return l=null,t},r=rt.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(w=rt.selectors={cacheLength:50,createPseudo:at,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,d),t[3]=(t[3]||t[4]||t[5]||"").replace(et,d),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||rt.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&rt.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&K.test(n)&&(e=p(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,d).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=D[t+" "];return e||(e=new RegExp("(^|"+H+")"+t+"("+H+"|$)"))&&D(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(e,n,i){return function(t){t=rt.attr(t,e);return null==t?"!="===n:!n||(t+="","="===n?t===i:"!="===n?t!==i:"^="===n?i&&0===t.indexOf(i):"*="===n?i&&-1<t.indexOf(i):"$="===n?i&&t.slice(-i.length)===i:"~="===n?-1<(" "+t.replace(B," ")+" ").indexOf(i):"|="===n&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(p,t,e,g,m){var v="nth"!==p.slice(0,3),y="last"!==p.slice(-4),b="of-type"===t;return 1===g&&0===m?function(t){return!!t.parentNode}:function(t,e,n){var i,o,r,s,a,l,u=v!=y?"nextSibling":"previousSibling",c=t.parentNode,d=b&&t.nodeName.toLowerCase(),f=!n&&!b,h=!1;if(c){if(v){for(;u;){for(s=t;s=s[u];)if(b?s.nodeName.toLowerCase()===d:1===s.nodeType)return!1;l=u="only"===p&&!l&&"nextSibling"}return!0}if(l=[y?c.firstChild:c.lastChild],y&&f){for(h=(a=(i=(o=(r=(s=c)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===S&&i[1])&&i[2],s=a&&c.childNodes[a];s=++a&&s&&s[u]||(h=a=0)||l.pop();)if(1===s.nodeType&&++h&&s===t){o[p]=[S,a,h];break}}else if(f&&(h=a=(i=(o=(r=(s=t)[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]||[])[0]===S&&i[1]),!1===h)for(;(s=++a&&s&&s[u]||(h=a=0)||l.pop())&&((b?s.nodeName.toLowerCase()!==d:1!==s.nodeType)||!++h||(f&&((o=(r=s[C]||(s[C]={}))[s.uniqueID]||(r[s.uniqueID]={}))[p]=[S,h]),s!==t)););return(h-=m)===g||h%g==0&&0<=h/g}}},PSEUDO:function(t,r){var e,s=w.pseudos[t]||w.setFilters[t.toLowerCase()]||rt.error("unsupported pseudo: "+t);return s[C]?s(r):1<s.length?(e=[t,t,"",r],w.setFilters.hasOwnProperty(t.toLowerCase())?at(function(t,e){for(var n,i=s(t,r),o=i.length;o--;)t[n=P(t,i[o])]=!(e[n]=i[o])}):function(t){return s(t,0,e)}):s}},pseudos:{not:at(function(t){var i=[],o=[],a=f(t.replace(V,"$1"));return a[C]?at(function(t,e,n,i){for(var o,r=a(t,null,i,[]),s=t.length;s--;)(o=r[s])&&(t[s]=!(e[s]=o))}):function(t,e,n){return i[0]=t,a(i,null,n,o),i[0]=null,!o.pop()}}),has:at(function(e){return function(t){return 0<rt(e,t).length}}),contains:at(function(e){return e=e.replace(et,d),function(t){return-1<(t.textContent||t.innerText||r(t)).indexOf(e)}}),lang:at(function(n){return Q.test(n||"")||rt.error("unsupported lang: "+n),n=n.replace(et,d).toLowerCase(),function(t){var e;do{if(e=E?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(e=e.toLowerCase())===n||0===e.indexOf(n+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===s},focus:function(t){return t===_.activeElement&&(!_.hasFocus||_.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!w.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(t=t.getAttribute("type"))||"text"===t.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,n){return[n<0?n+e:n]}),even:ft(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:ft(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:ft(function(t,e,n){for(var i=n<0?n+e:n;0<=--i;)t.push(i);return t}),gt:ft(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[t]=function(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}(t);for(t in{submit:!0,reset:!0})w.pseudos[t]=function(n){return function(t){var e=t.nodeName.toLowerCase();return("input"===e||"button"===e)&&t.type===n}}(t);function pt(){}function gt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function mt(s,t,e){var a=t.dir,l=t.next,u=l||a,c=e&&"parentNode"===u,d=b++;return t.first?function(t,e,n){for(;t=t[a];)if(1===t.nodeType||c)return s(t,e,n);return!1}:function(t,e,n){var i,o,r=[S,d];if(n){for(;t=t[a];)if((1===t.nodeType||c)&&s(t,e,n))return!0}else for(;t=t[a];)if(1===t.nodeType||c)if(i=(o=t[C]||(t[C]={}))[t.uniqueID]||(o[t.uniqueID]={}),l&&l===t.nodeName.toLowerCase())t=t[a]||t;else{if((o=i[u])&&o[0]===S&&o[1]===d)return r[2]=o[2];if((i[u]=r)[2]=s(t,e,n))return!0}return!1}}function vt(o){return 1<o.length?function(t,e,n){for(var i=o.length;i--;)if(!o[i](t,e,n))return!1;return!0}:o[0]}function yt(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,u=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),u&&e.push(a)));return s}function bt(h,p,g,m,v,t){return m&&!m[C]&&(m=bt(m)),v&&!v[C]&&(v=bt(v,t)),at(function(t,e,n,i){var o,r,s,a=[],l=[],u=e.length,c=t||function(t,e,n){for(var i=0,o=e.length;i<o;i++)rt(t,e[i],n);return n}(p||"*",n.nodeType?[n]:n,[]),d=!h||!t&&p?c:yt(c,a,h,n,i),f=g?v||(t?h:u||m)?[]:e:d;if(g&&g(d,f,n,i),m)for(o=yt(f,l),m(o,[],n,i),r=o.length;r--;)(s=o[r])&&(f[l[r]]=!(d[l[r]]=s));if(t){if(v||h){if(v){for(o=[],r=f.length;r--;)(s=f[r])&&o.push(d[r]=s);v(null,f=[],o,i)}for(r=f.length;r--;)(s=f[r])&&-1<(o=v?P(t,s):a[r])&&(t[o]=!(e[o]=s))}}else f=yt(f===e?f.splice(u,f.length):f),v?v(null,e,f,i):M.apply(e,f)})}function wt(m,v){function t(t,e,n,i,o){var r,s,a,l=0,u="0",c=t&&[],d=[],f=T,h=t||b&&w.find.TAG("*",o),p=S+=null==f?1:Math.random()||.1,g=h.length;for(o&&(T=e===_||e||o);u!==g&&null!=(r=h[u]);u++){if(b&&r){for(s=0,e||r.ownerDocument===_||(x(r),n=!E);a=m[s++];)if(a(r,e||_,n)){i.push(r);break}o&&(S=p)}y&&((r=!a&&r)&&l--,t&&c.push(r))}if(l+=u,y&&u!==l){for(s=0;a=v[s++];)a(c,d,e,n);if(t){if(0<l)for(;u--;)c[u]||d[u]||(d[u]=I.call(i));d=yt(d)}M.apply(i,d),o&&!t&&0<d.length&&1<l+v.length&&rt.uniqueSort(i)}return o&&(S=p,T=f),c}var y=0<v.length,b=0<m.length;return y?at(t):t}return pt.prototype=w.filters=w.pseudos,w.setFilters=new pt,p=rt.tokenize=function(t,e){var n,i,o,r,s,a,l,u=O[t+" "];if(u)return e?0:u.slice(0);for(s=t,a=[],l=w.preFilter;s;){for(r in n&&!(i=U.exec(s))||(i&&(s=s.slice(i[0].length)||s),a.push(o=[])),n=!1,(i=z.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(V," ")}),s=s.slice(n.length)),w.filter)!(i=Y[r].exec(s))||l[r]&&!(i=l[r](i))||(n=i.shift(),o.push({value:n,type:r,matches:i}),s=s.slice(n.length));if(!n)break}return e?s.length:s?rt.error(t):O(t,a).slice(0)},f=rt.compile=function(t,e){var n,i=[],o=[],r=A[t+" "];if(!r){for(n=(e=e||p(t)).length;n--;)((r=function t(e){for(var i,n,o,r=e.length,s=w.relative[e[0].type],a=s||w.relative[" "],l=s?1:0,u=mt(function(t){return t===i},a,!0),c=mt(function(t){return-1<P(i,t)},a,!0),d=[function(t,e,n){return n=!s&&(n||e!==T)||((i=e).nodeType?u:c)(t,e,n),i=null,n}];l<r;l++)if(n=w.relative[e[l].type])d=[mt(vt(d),n)];else{if((n=w.filter[e[l].type].apply(null,e[l].matches))[C]){for(o=++l;o<r&&!w.relative[e[o].type];o++);return bt(1<l&&vt(d),1<l&&gt(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(V,"$1"),n,l<o&&t(e.slice(l,o)),o<r&&t(e=e.slice(o)),o<r&&gt(e))}d.push(n)}return vt(d)}(e[n]))[C]?i:o).push(r);(r=A(t,wt(o,i))).selector=t}return r},g=rt.select=function(t,e,n,i){var o,r,s,a,l,u="function"==typeof t&&t,c=!i&&p(t=u.selector||t);if(n=n||[],1===c.length){if(2<(r=c[0]=c[0].slice(0)).length&&"ID"===(s=r[0]).type&&9===e.nodeType&&E&&w.relative[r[1].type]){if(!(e=(w.find.ID(s.matches[0].replace(et,d),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=Y.needsContext.test(t)?0:r.length;o--&&(s=r[o],!w.relative[a=s.type]);)if((l=w.find[a])&&(i=l(s.matches[0].replace(et,d),tt.test(r[0].type)&&ht(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&gt(r)))return M.apply(n,i),n;break}}return(u||f(t,c))(i,e,!E,n,!e||tt.test(t)&&ht(e.parentNode)||e),n},h.sortStable=C.split("").sort(k).join("")===C,h.detectDuplicates=!!u,x(),h.sortDetached=lt(function(t){return 1&t.compareDocumentPosition(_.createElement("fieldset"))}),lt(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||ut("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),h.attributes&&lt(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||ut("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),lt(function(t){return null==t.getAttribute("disabled")})||ut(q,function(t,e,n){if(!n)return!0===t[e]?e.toLowerCase():(e=t.getAttributeNode(e))&&e.specified?e.value:null}),rt}(x);E.find=h,E.expr=h.selectors,E.expr[":"]=E.expr.pseudos,E.uniqueSort=E.unique=h.uniqueSort,E.text=h.getText,E.isXMLDoc=h.isXML,E.contains=h.contains,E.escapeSelector=h.escape;function T(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&E(t).is(n))break;i.push(t)}return i}function C(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}var S=E.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var O=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,n,i){return b(n)?E.grep(t,function(t,e){return!!n.call(t,e,t)!==i}):n.nodeType?E.grep(t,function(t){return t===n!==i}):"string"!=typeof n?E.grep(t,function(t){return-1<o.call(n,t)!==i}):E.filter(n,t,i)}E.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?E.find.matchesSelector(i,t)?[i]:[]:E.find.matches(t,E.grep(e,function(t){return 1===t.nodeType}))},E.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(E(t).filter(function(){for(e=0;e<i;e++)if(E.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)E.find(t,o[e],n);return 1<i?E.uniqueSort(n):n},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&S.test(t)?E(t):t||[],!1).length}});var k,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(E.fn.init=function(t,e,n){if(!t)return this;if(n=n||k,"string"!=typeof t)return t.nodeType?(this[0]=t,this.length=1,this):b(t)?void 0!==n.ready?n.ready(t):t(E):E.makeArray(t,this);if(!(i="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:N.exec(t))||!i[1]&&e)return(!e||e.jquery?e||n:this.constructor(e)).find(t);if(i[1]){if(e=e instanceof E?e[0]:e,E.merge(this,E.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:_,!0)),O.test(i[1])&&E.isPlainObject(e))for(var i in e)b(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(t=_.getElementById(i[2]))&&(this[0]=t,this.length=1),this}).prototype=E.fn,k=E(_);var I=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function M(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}E.fn.extend({has:function(t){var e=E(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(E.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&E(t);if(!S.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?-1<s.index(n):1===n.nodeType&&E.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(1<r.length?E.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?o.call(E(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(E.uniqueSort(E.merge(this.get(),E(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),E.each({parent:function(t){t=t.parentNode;return t&&11!==t.nodeType?t:null},parents:function(t){return T(t,"parentNode")},parentsUntil:function(t,e,n){return T(t,"parentNode",n)},next:function(t){return M(t,"nextSibling")},prev:function(t){return M(t,"previousSibling")},nextAll:function(t){return T(t,"nextSibling")},prevAll:function(t){return T(t,"previousSibling")},nextUntil:function(t,e,n){return T(t,"nextSibling",n)},prevUntil:function(t,e,n){return T(t,"previousSibling",n)},siblings:function(t){return C((t.parentNode||{}).firstChild,t)},children:function(t){return C(t.firstChild)},contents:function(t){return D(t,"iframe")?t.contentDocument:(D(t,"template")&&(t=t.content||t),E.merge([],t.childNodes))}},function(i,o){E.fn[i]=function(t,e){var n=E.map(this,o,t);return"Until"!==i.slice(-5)&&(e=t),e&&"string"==typeof e&&(n=E.filter(e,n)),1<this.length&&(L[i]||E.uniqueSort(n),I.test(i)&&n.reverse()),this.pushStack(n)}});var j=/[^\x20\t\r\n\f]+/g;function P(t){return t}function q(t){throw t}function H(t,e,n,i){var o;try{t&&b(o=t.promise)?o.call(t).done(e).fail(n):t&&b(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}E.Callbacks=function(i){var t,n;i="string"==typeof i?(t=i,n={},E.each(t.match(j)||[],function(t,e){n[e]=!0}),n):E.extend({},i);function o(){for(a=a||i.once,s=r=!0;u.length;c=-1)for(e=u.shift();++c<l.length;)!1===l[c].apply(e[0],e[1])&&i.stopOnFalse&&(c=l.length,e=!1);i.memory||(e=!1),r=!1,a&&(l=e?[]:"")}var r,e,s,a,l=[],u=[],c=-1,d={add:function(){return l&&(e&&!r&&(c=l.length-1,u.push(e)),function n(t){E.each(t,function(t,e){b(e)?i.unique&&d.has(e)||l.push(e):e&&e.length&&"string"!==p(e)&&n(e)})}(arguments),e&&!r&&o()),this},remove:function(){return E.each(arguments,function(t,e){for(var n;-1<(n=E.inArray(e,l,n));)l.splice(n,1),n<=c&&c--}),this},has:function(t){return t?-1<E.inArray(t,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=u=[],l=e="",this},disabled:function(){return!l},lock:function(){return a=u=[],e||r||(l=e=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],u.push(e),r||o()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!s}};return d},E.extend({Deferred:function(t){var r=[["notify","progress",E.Callbacks("memory"),E.Callbacks("memory"),2],["resolve","done",E.Callbacks("once memory"),E.Callbacks("once memory"),0,"resolved"],["reject","fail",E.Callbacks("once memory"),E.Callbacks("once memory"),1,"rejected"]],o="pending",s={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var o=arguments;return E.Deferred(function(i){E.each(r,function(t,e){var n=b(o[e[4]])&&o[e[4]];a[e[1]](function(){var t=n&&n.apply(this,arguments);t&&b(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[e[0]+"With"](this,n?[t]:arguments)})}),o=null}).promise()},then:function(e,n,i){var l=0;function u(o,r,s,a){return function(){function t(){var t,e;if(!(o<l)){if((t=s.apply(n,i))===r.promise())throw new TypeError("Thenable self-resolution");e=t&&("object"==typeof t||"function"==typeof t)&&t.then,b(e)?a?e.call(t,u(l,r,P,a),u(l,r,q,a)):(l++,e.call(t,u(l,r,P,a),u(l,r,q,a),u(l,r,P,r.notifyWith))):(s!==P&&(n=void 0,i=[t]),(a||r.resolveWith)(n,i))}}var n=this,i=arguments,e=a?t:function(){try{t()}catch(t){E.Deferred.exceptionHook&&E.Deferred.exceptionHook(t,e.stackTrace),l<=o+1&&(s!==q&&(n=void 0,i=[t]),r.rejectWith(n,i))}};o?e():(E.Deferred.getStackHook&&(e.stackTrace=E.Deferred.getStackHook()),x.setTimeout(e))}}return E.Deferred(function(t){r[0][3].add(u(0,t,b(i)?i:P,t.notifyWith)),r[1][3].add(u(0,t,b(e)?e:P)),r[2][3].add(u(0,t,b(n)?n:q))}).promise()},promise:function(t){return null!=t?E.extend(t,s):s}},a={};return E.each(r,function(t,e){var n=e[2],i=e[5];s[e[1]]=n.add,i&&n.add(function(){o=i},r[3-t][2].disable,r[3-t][3].disable,r[0][2].lock,r[0][3].lock),n.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=n.fireWith}),s.promise(a),t&&t.call(a,a),a},when:function(t){function e(e){return function(t){o[e]=this,r[e]=1<arguments.length?a.call(arguments):t,--n||s.resolveWith(o,r)}}var n=arguments.length,i=n,o=Array(i),r=a.call(arguments),s=E.Deferred();if(n<=1&&(H(t,s.done(e(i)).resolve,s.reject,!n),"pending"===s.state()||b(r[i]&&r[i].then)))return s.then();for(;i--;)H(r[i],e(i),s.reject);return s.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;E.Deferred.exceptionHook=function(t,e){x.console&&x.console.warn&&t&&R.test(t.name)&&x.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},E.readyException=function(t){x.setTimeout(function(){throw t})};var W=E.Deferred();function F(){_.removeEventListener("DOMContentLoaded",F),x.removeEventListener("load",F),E.ready()}E.fn.ready=function(t){return W.then(t).catch(function(t){E.readyException(t)}),this},E.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--E.readyWait:E.isReady)||((E.isReady=!0)!==t&&0<--E.readyWait||W.resolveWith(_,[E]))}}),E.ready.then=W.then,"complete"===_.readyState||"loading"!==_.readyState&&!_.documentElement.doScroll?x.setTimeout(E.ready):(_.addEventListener("DOMContentLoaded",F),x.addEventListener("load",F));var B=function(t,e,n,i,o,r,s){var a=0,l=t.length,u=null==n;if("object"===p(n))for(a in o=!0,n)B(t,e,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,b(i)||(s=!0),u&&(e=s?(e.call(t,i),null):(u=e,function(t,e,n){return u.call(E(t),n)})),e))for(;a<l;a++)e(t[a],n,s?i:i.call(t[a],a,e(t[a],n)));return o?t:u?e.call(t):l?e(t[0],n):r},V=/^-ms-/,U=/-([a-z])/g;function z(t,e){return e.toUpperCase()}function $(t){return t.replace(V,"ms-").replace(U,z)}function K(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType}function Q(){this.expando=E.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(t){var e=t[this.expando];return e||(e={},K(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[$(e)]=n;else for(i in e)o[$(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][$(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map($):(e=$(e))in i?[e]:e.match(j)||[]).length;for(;n--;)delete i[e[n]]}void 0!==e&&!E.isEmptyObject(i)||(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){t=t[this.expando];return void 0!==t&&!E.isEmptyObject(t)}};var Y=new Q,X=new Q,G=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function Z(t,e,n){var i,o;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(J,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:G.test(o)?JSON.parse(o):o)}catch(t){}X.set(t,e,n)}else n=void 0;return n}E.extend({hasData:function(t){return X.hasData(t)||Y.hasData(t)},data:function(t,e,n){return X.access(t,e,n)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,n){return Y.access(t,e,n)},_removeData:function(t,e){Y.remove(t,e)}}),E.fn.extend({data:function(n,t){var e,i,o,r=this[0],s=r&&r.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){X.set(this,n)}):B(this,function(t){var e;return r&&void 0===t?void 0!==(e=X.get(r,n))||void 0!==(e=Z(r,n))?e:void 0:void this.each(function(){X.set(this,n,t)})},null,t,1<arguments.length,null,!0);if(this.length&&(o=X.get(r),1===r.nodeType&&!Y.get(r,"hasDataAttrs"))){for(e=s.length;e--;)s[e]&&0===(i=s[e].name).indexOf("data-")&&(i=$(i.slice(5)),Z(r,i,o[i]));Y.set(r,"hasDataAttrs",!0)}return o},removeData:function(t){return this.each(function(){X.remove(this,t)})}}),E.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Y.get(t,e),n&&(!i||Array.isArray(n)?i=Y.access(t,e,E.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=E.queue(t,e),i=n.length,o=n.shift(),r=E._queueHooks(t,e);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,function(){E.dequeue(t,e)},r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Y.get(t,n)||Y.access(t,n,{empty:E.Callbacks("once memory").add(function(){Y.remove(t,[e+"queue",n])})})}}),E.fn.extend({queue:function(e,n){var t=2;return"string"!=typeof e&&(n=e,e="fx",t--),arguments.length<t?E.queue(this[0],e):void 0===n?this:this.each(function(){var t=E.queue(this,e,n);E._queueHooks(this,e),"fx"===e&&"inprogress"!==t[0]&&E.dequeue(this,e)})},dequeue:function(t){return this.each(function(){E.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){function n(){--o||r.resolveWith(s,[s])}var i,o=1,r=E.Deferred(),s=this,a=this.length;for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(i=Y.get(s[a],t+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),r.promise(e)}});function tt(t,e,n,i){var o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in i=n.apply(t,i||[]),e)t.style[o]=r[o];return i}var et=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,nt=new RegExp("^(?:([+-])=|)("+et+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],ot=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&E.contains(t.ownerDocument,t)&&"none"===E.css(t,"display")};function rt(t,e,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return E.css(t,e,"")},l=a(),u=n&&n[3]||(E.cssNumber[e]?"":"px"),c=(E.cssNumber[e]||"px"!==u&&+l)&&nt.exec(E.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)E.style(t,e,c+u),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),c/=r;c*=2,E.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,o=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=o)),o}var st={};function at(t,e){for(var n,i,o,r,s,a=[],l=0,u=t.length;l<u;l++)(i=t[l]).style&&(n=i.style.display,e?("none"===n&&(a[l]=Y.get(i,"display")||null,a[l]||(i.style.display="")),""===i.style.display&&ot(i)&&(a[l]=(s=r=void 0,r=(o=i).ownerDocument,s=o.nodeName,(o=st[s])||(r=r.body.appendChild(r.createElement(s)),o=E.css(r,"display"),r.parentNode.removeChild(r),"none"===o&&(o="block"),st[s]=o)))):"none"!==n&&(a[l]="none",Y.set(i,"display",n)));for(l=0;l<u;l++)null!=a[l]&&(t[l].style.display=a[l]);return t}E.fn.extend({show:function(){return at(this,!0)},hide:function(){return at(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?E(this).show():E(this).hide()})}});var lt=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ct=/^$|^module$|\/(?:java|ecma)script/i,dt={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 ft(t,e){var n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[];return void 0===e||e&&D(t,e)?E.merge([t],n):n}function ht(t,e){for(var n=0,i=t.length;n<i;n++)Y.set(t[n],"globalEval",!e||Y.get(e[n],"globalEval"))}dt.optgroup=dt.option,dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td;var pt=/<|&#?\w+;/;function gt(t,e,n,i,o){for(var r,s,a,l,u,c=e.createDocumentFragment(),d=[],f=0,h=t.length;f<h;f++)if((r=t[f])||0===r)if("object"===p(r))E.merge(d,r.nodeType?[r]:r);else if(pt.test(r)){for(s=s||c.appendChild(e.createElement("div")),a=(ut.exec(r)||["",""])[1].toLowerCase(),a=dt[a]||dt._default,s.innerHTML=a[1]+E.htmlPrefilter(r)+a[2],u=a[0];u--;)s=s.lastChild;E.merge(d,s.childNodes),(s=c.firstChild).textContent=""}else d.push(e.createTextNode(r));for(c.textContent="",f=0;r=d[f++];)if(i&&-1<E.inArray(r,i))o&&o.push(r);else if(l=E.contains(r.ownerDocument,r),s=ft(c.appendChild(r),"script"),l&&ht(s),n)for(u=0;r=s[u++];)ct.test(r.type||"")&&n.push(r);return c}e=_.createDocumentFragment().appendChild(_.createElement("div")),(h=_.createElement("input")).setAttribute("type","radio"),h.setAttribute("checked","checked"),h.setAttribute("name","t"),e.appendChild(h),y.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",y.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue;var mt=_.documentElement,vt=/^key/,yt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,bt=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function Tt(){return!1}function xt(){try{return _.activeElement}catch(t){}}function _t(t,e,n,i,o,r){var s,a;if("object"==typeof e){for(a in"string"!=typeof n&&(i=i||n,n=void 0),e)_t(t,a,n,i,e[a],r);return t}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Tt;else if(!o)return t;return 1===r&&(s=o,(o=function(t){return E().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=E.guid++)),t.each(function(){E.event.add(this,e,o,i,n)})}E.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,u,c,d,f,h,p=Y.get(e);if(p)for(n.handler&&(n=(r=n).handler,o=r.selector),o&&E.find.matchesSelector(mt,o),n.guid||(n.guid=E.guid++),(a=p.events)||(a=p.events={}),(s=p.handle)||(s=p.handle=function(t){return void 0!==E&&E.event.triggered!==t.type?E.event.dispatch.apply(e,arguments):void 0}),l=(t=(t||"").match(j)||[""]).length;l--;)d=h=(u=bt.exec(t[l])||[])[1],f=(u[2]||"").split(".").sort(),d&&(c=E.event.special[d]||{},d=(o?c.delegateType:c.bindType)||d,c=E.event.special[d]||{},u=E.extend({type:d,origType:h,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&E.expr.match.needsContext.test(o),namespace:f.join(".")},r),(h=a[d])||((h=a[d]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,i,f,s)||e.addEventListener&&e.addEventListener(d,s)),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?h.splice(h.delegateCount++,0,u):h.push(u),E.event.global[d]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,u,c,d,f,h,p,g,m=Y.hasData(t)&&Y.get(t);if(m&&(l=m.events)){for(u=(e=(e||"").match(j)||[""]).length;u--;)if(h=g=(a=bt.exec(e[u])||[])[1],p=(a[2]||"").split(".").sort(),h){for(d=E.event.special[h]||{},f=l[h=(i?d.delegateType:d.bindType)||h]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=f.length;r--;)c=f[r],!o&&g!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(f.splice(r,1),c.selector&&f.delegateCount--,d.remove&&d.remove.call(t,c));s&&!f.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||E.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)E.event.remove(t,h+e[u],n,i,!0);E.isEmptyObject(l)&&Y.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s=E.event.fix(t),a=new Array(arguments.length),l=(Y.get(this,"events")||{})[s.type]||[],t=E.event.special[s.type]||{};for(a[0]=s,e=1;e<arguments.length;e++)a[e]=arguments[e];if(s.delegateTarget=this,!t.preDispatch||!1!==t.preDispatch.call(this,s)){for(r=E.event.handlers.call(this,s,l),e=0;(i=r[e++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(o=((E.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(s.result=o)&&(s.preventDefault(),s.stopPropagation()));return t.postDispatch&&t.postDispatch.call(this,s),s.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&1<=t.button))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=e[n]).selector+" "]&&(s[o]=i.needsContext?-1<E(o,this).index(u):E.find(o,this,null,[u]).length),s[o]&&r.push(i);r.length&&a.push({elem:u,handlers:r})}return u=this,l<e.length&&a.push({elem:u,handlers:e.slice(l)}),a},addProp:function(e,t){Object.defineProperty(E.Event.prototype,e,{enumerable:!0,configurable:!0,get:b(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(t){return t[E.expando]?t:new E.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==xt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===xt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&D(this,"input"))return this.click(),!1},_default:function(t){return D(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},E.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},E.Event=function(t,e){if(!(this instanceof E.Event))return new E.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:Tt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&E.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[E.expando]=!0},E.Event.prototype={constructor:E.Event,isDefaultPrevented:Tt,isPropagationStopped:Tt,isImmediatePropagationStopped:Tt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},E.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,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(t){var e=t.button;return null==t.which&&vt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&yt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},E.event.addProp),E.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,o){E.event.special[t]={delegateType:o,bindType:o,handle:function(t){var e,n=t.relatedTarget,i=t.handleObj;return n&&(n===this||E.contains(this,n))||(t.type=i.origType,e=i.handler.apply(this,arguments),t.type=o),e}}}),E.fn.extend({on:function(t,e,n,i){return _t(this,t,e,n,i)},one:function(t,e,n,i){return _t(this,t,e,n,i,1)},off:function(t,e,n){var i,o;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,E(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof t)return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=Tt),this.each(function(){E.event.remove(this,t,n,e)});for(o in t)this.off(o,e,t[o]);return this}});var Et=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ct=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ot(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&E(t).children("tbody")[0]||t}function At(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function kt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Nt(t,e){var n,i,o,r,s,a;if(1===e.nodeType){if(Y.hasData(t)&&(r=Y.access(t),s=Y.set(e,r),a=r.events))for(o in delete s.handle,s.events={},a)for(n=0,i=a[o].length;n<i;n++)E.event.add(e,o,a[o][n]);X.hasData(t)&&(t=X.access(t),t=E.extend({},t),X.set(e,t))}}function It(n,i,o,r){i=m.apply([],i);var t,e,s,a,l,u,c=0,d=n.length,f=d-1,h=i[0],p=b(h);if(p||1<d&&"string"==typeof h&&!y.checkClone&&St.test(h))return n.each(function(t){var e=n.eq(t);p&&(i[0]=h.call(this,t,e.html())),It(e,i,o,r)});if(d&&(e=(t=gt(i,n[0].ownerDocument,!1,n,r)).firstChild,1===t.childNodes.length&&(t=e),e||r)){for(a=(s=E.map(ft(t,"script"),At)).length;c<d;c++)l=t,c!==f&&(l=E.clone(l,!0,!0),a&&E.merge(s,ft(l,"script"))),o.call(n[c],l,c);if(a)for(u=s[s.length-1].ownerDocument,E.map(s,kt),c=0;c<a;c++)l=s[c],ct.test(l.type||"")&&!Y.access(l,"globalEval")&&E.contains(u,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?E._evalUrl&&E._evalUrl(l.src):w(l.textContent.replace(Dt,""),u,l))}return n}function Lt(t,e,n){for(var i,o=e?E.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||E.cleanData(ft(i)),i.parentNode&&(n&&E.contains(i.ownerDocument,i)&&ht(ft(i,"script")),i.parentNode.removeChild(i));return t}E.extend({htmlPrefilter:function(t){return t.replace(Et,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a,l,u,c=t.cloneNode(!0),d=E.contains(t.ownerDocument,t);if(!(y.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||E.isXMLDoc(t)))for(s=ft(c),i=0,o=(r=ft(t)).length;i<o;i++)a=r[i],l=s[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&lt.test(a.type)?l.checked=a.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=a.defaultValue);if(e)if(n)for(r=r||ft(t),s=s||ft(c),i=0,o=r.length;i<o;i++)Nt(r[i],s[i]);else Nt(t,c);return 0<(s=ft(c,"script")).length&&ht(s,!d&&ft(t,"script")),c},cleanData:function(t){for(var e,n,i,o=E.event.special,r=0;void 0!==(n=t[r]);r++)if(K(n)){if(e=n[Y.expando]){if(e.events)for(i in e.events)o[i]?E.event.remove(n,i):E.removeEvent(n,i,e.handle);n[Y.expando]=void 0}n[X.expando]&&(n[X.expando]=void 0)}}}),E.fn.extend({detach:function(t){return Lt(this,t,!0)},remove:function(t){return Lt(this,t)},text:function(t){return B(this,function(t){return void 0===t?E.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return It(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ot(this,t).appendChild(t)})},prepend:function(){return It(this,arguments,function(t){var e;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(e=Ot(this,t)).insertBefore(t,e.firstChild)})},before:function(){return It(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return It(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(E.cleanData(ft(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return E.clone(this,t,e)})},html:function(t){return B(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Ct.test(t)&&!dt[(ut.exec(t)||["",""])[1].toLowerCase()]){t=E.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(E.cleanData(ft(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var n=[];return It(this,arguments,function(t){var e=this.parentNode;E.inArray(this,n)<0&&(E.cleanData(ft(this)),e&&e.replaceChild(t,this))},n)}}),E.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,s){E.fn[t]=function(t){for(var e,n=[],i=E(t),o=i.length-1,r=0;r<=o;r++)e=r===o?this:this.clone(!0),E(i[r])[s](e),l.apply(n,e.get());return this.pushStack(n)}});var Mt,jt,Pt,qt,Ht,Rt,Wt,Ft=new RegExp("^("+et+")(?!px)[a-z%]+$","i"),Bt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=x),e.getComputedStyle(t)},Vt=new RegExp(it.join("|"),"i");function Ut(){var t;Wt&&(Rt.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",Wt.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",mt.appendChild(Rt).appendChild(Wt),t=x.getComputedStyle(Wt),Mt="1%"!==t.top,Ht=12===zt(t.marginLeft),Wt.style.right="60%",qt=36===zt(t.right),jt=36===zt(t.width),Wt.style.position="absolute",Pt=36===Wt.offsetWidth||"absolute",mt.removeChild(Rt),Wt=null)}function zt(t){return Math.round(parseFloat(t))}function $t(t,e,n){var i,o,r=t.style;return(n=n||Bt(t))&&(""!==(o=n.getPropertyValue(e)||n[e])||E.contains(t.ownerDocument,t)||(o=E.style(t,e)),!y.pixelBoxStyles()&&Ft.test(o)&&Vt.test(e)&&(i=r.width,t=r.minWidth,e=r.maxWidth,r.minWidth=r.maxWidth=r.width=o,o=n.width,r.width=i,r.minWidth=t,r.maxWidth=e)),void 0!==o?o+"":o}function Kt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}Rt=_.createElement("div"),(Wt=_.createElement("div")).style&&(Wt.style.backgroundClip="content-box",Wt.cloneNode(!0).style.backgroundClip="",y.clearCloneStyle="content-box"===Wt.style.backgroundClip,E.extend(y,{boxSizingReliable:function(){return Ut(),jt},pixelBoxStyles:function(){return Ut(),qt},pixelPosition:function(){return Ut(),Mt},reliableMarginLeft:function(){return Ut(),Ht},scrollboxSize:function(){return Ut(),Pt}}));var Qt=/^(none|table(?!-c[ea]).+)/,Yt=/^--/,Xt={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"},Jt=["Webkit","Moz","ms"],Zt=_.createElement("div").style;function te(t){return E.cssProps[t]||(E.cssProps[t]=function(t){if(t in Zt)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=Jt.length;n--;)if((t=Jt[n]+e)in Zt)return t}(t)||t)}function ee(t,e,n){var i=nt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function ne(t,e,n,i,o,r){var s="width"===e?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=E.css(t,n+it[s],!0,o)),i?("content"===n&&(l-=E.css(t,"padding"+it[s],!0,o)),"margin"!==n&&(l-=E.css(t,"border"+it[s]+"Width",!0,o))):(l+=E.css(t,"padding"+it[s],!0,o),"padding"!==n?l+=E.css(t,"border"+it[s]+"Width",!0,o):a+=E.css(t,"border"+it[s]+"Width",!0,o));return!i&&0<=r&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-r-l-a-.5))),l}function ie(t,e,n){var i=Bt(t),o=$t(t,e,i),r="border-box"===E.css(t,"boxSizing",!1,i),s=r;if(Ft.test(o)){if(!n)return o;o="auto"}return s=s&&(y.boxSizingReliable()||o===t.style[e]),"auto"!==o&&(parseFloat(o)||"inline"!==E.css(t,"display",!1,i))||(o=t["offset"+e[0].toUpperCase()+e.slice(1)],s=!0),(o=parseFloat(o)||0)+ne(t,e,n||(r?"border":"content"),s,i,o)+"px"}function oe(t,e,n,i,o){return new oe.prototype.init(t,e,n,i,o)}E.extend({cssHooks:{opacity:{get:function(t,e){if(e){t=$t(t,"opacity");return""===t?"1":t}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var o,r,s,a=$(e),l=Yt.test(e),u=t.style;if(l||(e=te(a)),s=E.cssHooks[e]||E.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(t,!1,i))?o:u[e];"string"==(r=typeof n)&&(o=nt.exec(n))&&o[1]&&(n=rt(t,e,o),r="number"),null!=n&&n==n&&("number"===r&&(n+=o&&o[3]||(E.cssNumber[a]?"":"px")),y.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),s&&"set"in s&&void 0===(n=s.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r=$(e);return Yt.test(e)||(e=te(r)),(r=E.cssHooks[e]||E.cssHooks[r])&&"get"in r&&(o=r.get(t,!0,n)),void 0===o&&(o=$t(t,e,i)),"normal"===o&&e in Gt&&(o=Gt[e]),""===n||n?(e=parseFloat(o),!0===n||isFinite(e)?e||0:o):o}}),E.each(["height","width"],function(t,s){E.cssHooks[s]={get:function(t,e,n){if(e)return!Qt.test(E.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ie(t,s,n):tt(t,Xt,function(){return ie(t,s,n)})},set:function(t,e,n){var i,o=Bt(t),r="border-box"===E.css(t,"boxSizing",!1,o),n=n&&ne(t,s,n,r,o);return r&&y.scrollboxSize()===o.position&&(n-=Math.ceil(t["offset"+s[0].toUpperCase()+s.slice(1)]-parseFloat(o[s])-ne(t,s,"border",!1,o)-.5)),n&&(i=nt.exec(e))&&"px"!==(i[3]||"px")&&(t.style[s]=e,e=E.css(t,s)),ee(0,e,n)}}}),E.cssHooks.marginLeft=Kt(y.reliableMarginLeft,function(t,e){if(e)return(parseFloat($t(t,"marginLeft"))||t.getBoundingClientRect().left-tt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),E.each({margin:"",padding:"",border:"Width"},function(o,r){E.cssHooks[o+r]={expand:function(t){for(var e=0,n={},i="string"==typeof t?t.split(" "):[t];e<4;e++)n[o+it[e]+r]=i[e]||i[e-2]||i[0];return n}},"margin"!==o&&(E.cssHooks[o+r].set=ee)}),E.fn.extend({css:function(t,e){return B(this,function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=Bt(t),o=e.length;s<o;s++)r[e[s]]=E.css(t,e[s],!1,i);return r}return void 0!==n?E.style(t,e,n):E.css(t,e)},t,e,1<arguments.length)}}),(E.Tween=oe).prototype={constructor:oe,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||E.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(E.cssNumber[n]?"":"px")},cur:function(){var t=oe.propHooks[this.prop];return(t&&t.get?t:oe.propHooks._default).get(this)},run:function(t){var e,n=oe.propHooks[this.prop];return this.options.duration?this.pos=e=E.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:oe.propHooks._default).set(this),this}},oe.prototype.init.prototype=oe.prototype,oe.propHooks={_default:{get:function(t){return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(t=E.css(t.elem,t.prop,""))&&"auto"!==t?t:0},set:function(t){E.fx.step[t.prop]?E.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[E.cssProps[t.prop]]&&!E.cssHooks[t.prop]?t.elem[t.prop]=t.now:E.style(t.elem,t.prop,t.now+t.unit)}}},oe.propHooks.scrollTop=oe.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},E.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},E.fx=oe.prototype.init,E.fx.step={};var re,se,ae=/^(?:toggle|show|hide)$/,le=/queueHooks$/;function ue(){se&&(!1===_.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(ue):x.setTimeout(ue,E.fx.interval),E.fx.tick())}function ce(){return x.setTimeout(function(){re=void 0}),re=Date.now()}function de(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)o["margin"+(n=it[i])]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function fe(t,e,n){for(var i,o=(he.tweeners[e]||[]).concat(he.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function he(o,t,e){var n,r,i=0,s=he.prefilters.length,a=E.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=re||ce(),t=Math.max(0,u.startTime+u.duration-t),e=1-(t/u.duration||0),n=0,i=u.tweens.length;n<i;n++)u.tweens[n].run(e);return a.notifyWith(o,[u,e,t]),e<1&&i?t:(i||a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u]),!1)},u=a.promise({elem:o,props:E.extend({},t),opts:E.extend(!0,{specialEasing:{},easing:E.easing._default},e),originalProperties:t,originalOptions:e,startTime:re||ce(),duration:e.duration,tweens:[],createTween:function(t,e){t=E.Tween(o,u.opts,t,e,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(t),t},stop:function(t){var e=0,n=t?u.tweens.length:0;if(r)return this;for(r=!0;e<n;e++)u.tweens[e].run(1);return t?(a.notifyWith(o,[u,1,0]),a.resolveWith(o,[u,t])):a.rejectWith(o,[u,t]),this}}),c=u.props;for(function(t,e){var n,i,o,r,s;for(n in t)if(i=$(n),o=e[i],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=E.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete t[i],r)n in t||(t[n]=r[n],e[n]=o);else e[i]=o}(c,u.opts.specialEasing);i<s;i++)if(n=he.prefilters[i].call(u,o,c,u.opts))return b(n.stop)&&(E._queueHooks(u.elem,u.opts.queue).stop=n.stop.bind(n)),n;return E.map(c,fe,u),b(u.opts.start)&&u.opts.start.call(o,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),E.fx.timer(E.extend(l,{elem:o,anim:u,queue:u.opts.queue})),u}E.Animation=E.extend(he,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return rt(n.elem,t,nt.exec(e),n),n}]},tweener:function(t,e){for(var n,i=0,o=(t=b(t)?(e=t,["*"]):t.match(j)).length;i<o;i++)n=t[i],he.tweeners[n]=he.tweeners[n]||[],he.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,o,r,s,a,l,u,c="width"in e||"height"in e,d=this,f={},h=t.style,p=t.nodeType&&ot(t),g=Y.get(t,"fxshow");for(i in n.queue||(null==(s=E._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,E.queue(t,"fx").length||s.empty.fire()})})),e)if(o=e[i],ae.test(o)){if(delete e[i],r=r||"toggle"===o,o===(p?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;p=!0}f[i]=g&&g[i]||E.style(t,i)}if((l=!E.isEmptyObject(e))||!E.isEmptyObject(f))for(i in c&&1===t.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=Y.get(t,"display")),"none"===(c=E.css(t,"display"))&&(u?c=u:(at([t],!0),u=t.style.display||u,c=E.css(t,"display"),at([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===E.css(t,"float")&&(l||(d.done(function(){h.display=u}),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(p=g.hidden):g=Y.access(t,"fxshow",{display:u}),r&&(g.hidden=!p),p&&at([t],!0),d.done(function(){for(i in p||at([t]),Y.remove(t,"fxshow"),f)E.style(t,i,f[i])})),l=fe(p?g[i]:0,i,d),i in g||(g[i]=l.start,p&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?he.prefilters.unshift(t):he.prefilters.push(t)}}),E.speed=function(t,e,n){var i=t&&"object"==typeof t?E.extend({},t):{complete:n||!n&&e||b(t)&&t,duration:t,easing:n&&e||e&&!b(e)&&e};return E.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in E.fx.speeds?i.duration=E.fx.speeds[i.duration]:i.duration=E.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){b(i.old)&&i.old.call(this),i.queue&&E.dequeue(this,i.queue)},i},E.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(e,t,n,i){var o=E.isEmptyObject(e),r=E.speed(t,n,i),i=function(){var t=he(this,E.extend({},e),r);(o||Y.get(this,"finish"))&&t.stop(!0)};return i.finish=i,o||!1===r.queue?this.each(i):this.queue(r.queue,i)},stop:function(o,t,r){function s(t){var e=t.stop;delete t.stop,e(r)}return"string"!=typeof o&&(r=t,t=o,o=void 0),t&&!1!==o&&this.queue(o||"fx",[]),this.each(function(){var t=!0,e=null!=o&&o+"queueHooks",n=E.timers,i=Y.get(this);if(e)i[e]&&i[e].stop&&s(i[e]);else for(e in i)i[e]&&i[e].stop&&le.test(e)&&s(i[e]);for(e=n.length;e--;)n[e].elem!==this||null!=o&&n[e].queue!==o||(n[e].anim.stop(r),t=!1,n.splice(e,1));!t&&r||E.dequeue(this,o)})},finish:function(s){return!1!==s&&(s=s||"fx"),this.each(function(){var t,e=Y.get(this),n=e[s+"queue"],i=e[s+"queueHooks"],o=E.timers,r=n?n.length:0;for(e.finish=!0,E.queue(this,s,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===s&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete e.finish})}}),E.each(["toggle","show","hide"],function(t,i){var o=E.fn[i];E.fn[i]=function(t,e,n){return null==t||"boolean"==typeof t?o.apply(this,arguments):this.animate(de(i,!0),t,e,n)}}),E.each({slideDown:de("show"),slideUp:de("hide"),slideToggle:de("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,i){E.fn[t]=function(t,e,n){return this.animate(i,t,e,n)}}),E.timers=[],E.fx.tick=function(){var t,e=0,n=E.timers;for(re=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||E.fx.stop(),re=void 0},E.fx.timer=function(t){E.timers.push(t),E.fx.start()},E.fx.interval=13,E.fx.start=function(){se||(se=!0,ue())},E.fx.stop=function(){se=null},E.fx.speeds={slow:600,fast:200,_default:400},E.fn.delay=function(i,t){return i=E.fx&&E.fx.speeds[i]||i,t=t||"fx",this.queue(t,function(t,e){var n=x.setTimeout(t,i);e.stop=function(){x.clearTimeout(n)}})},e=_.createElement("input"),et=_.createElement("select").appendChild(_.createElement("option")),e.type="checkbox",y.checkOn=""!==e.value,y.optSelected=et.selected,(e=_.createElement("input")).value="t",e.type="radio",y.radioValue="t"===e.value;var pe,ge=E.expr.attrHandle;E.fn.extend({attr:function(t,e){return B(this,E.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each(function(){E.removeAttr(this,t)})}}),E.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?E.prop(t,e,n):(1===r&&E.isXMLDoc(t)||(o=E.attrHooks[e.toLowerCase()]||(E.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void E.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):!(o&&"get"in o&&null!==(i=o.get(t,e)))&&null==(i=E.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!y.radioValue&&"radio"===e&&D(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(j);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?E.removeAttr(t,n):t.setAttribute(n,n),n}},E.each(E.expr.match.bool.source.match(/\w+/g),function(t,e){var s=ge[e]||E.find.attr;ge[e]=function(t,e,n){var i,o,r=e.toLowerCase();return n||(o=ge[r],ge[r]=i,i=null!=s(t,e,n)?r:null,ge[r]=o),i}});var me=/^(?:input|select|textarea|button)$/i,ve=/^(?:a|area)$/i;function ye(t){return(t.match(j)||[]).join(" ")}function be(t){return t.getAttribute&&t.getAttribute("class")||""}function we(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(j)||[]}E.fn.extend({prop:function(t,e){return B(this,E.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each(function(){delete this[E.propFix[t]||t]})}}),E.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&E.isXMLDoc(t)||(e=E.propFix[e]||e,o=E.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=E.find.attr(t,"tabindex");return e?parseInt(e,10):me.test(t.nodeName)||ve.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),y.optSelected||(E.propHooks.selected={get:function(t){t=t.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(t){t=t.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),E.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){E.propFix[this.toLowerCase()]=this}),E.fn.extend({addClass:function(e){var t,n,i,o,r,s,a=0;if(b(e))return this.each(function(t){E(this).addClass(e.call(this,t,be(this)))});if((t=we(e)).length)for(;n=this[a++];)if(s=be(n),i=1===n.nodeType&&" "+ye(s)+" "){for(r=0;o=t[r++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");s!==(s=ye(i))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,i,o,r,s,a=0;if(b(e))return this.each(function(t){E(this).removeClass(e.call(this,t,be(this)))});if(!arguments.length)return this.attr("class","");if((t=we(e)).length)for(;n=this[a++];)if(s=be(n),i=1===n.nodeType&&" "+ye(s)+" "){for(r=0;o=t[r++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");s!==(s=ye(i))&&n.setAttribute("class",s)}return this},toggleClass:function(o,e){var r=typeof o,s="string"==r||Array.isArray(o);return"boolean"==typeof e&&s?e?this.addClass(o):this.removeClass(o):b(o)?this.each(function(t){E(this).toggleClass(o.call(this,t,be(this),e),e)}):this.each(function(){var t,e,n,i;if(s)for(e=0,n=E(this),i=we(o);t=i[e++];)n.hasClass(t)?n.removeClass(t):n.addClass(t);else void 0!==o&&"boolean"!=r||((t=be(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",!t&&!1!==o&&Y.get(this,"__className__")||""))})},hasClass:function(t){for(var e,n=0,i=" "+t+" ";e=this[n++];)if(1===e.nodeType&&-1<(" "+ye(be(e))+" ").indexOf(i))return!0;return!1}});var Te=/\r/g;E.fn.extend({val:function(e){var n,t,i,o=this[0];return arguments.length?(i=b(e),this.each(function(t){1===this.nodeType&&(null==(t=i?e.call(this,t,E(this).val()):e)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=E.map(t,function(t){return null==t?"":t+""})),(n=E.valHooks[this.type]||E.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,t,"value")||(this.value=t))})):o?(n=E.valHooks[o.type]||E.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(t=n.get(o,"value"))?t:"string"==typeof(t=o.value)?t.replace(Te,""):null==t?"":t:void 0}}),E.extend({valHooks:{option:{get:function(t){var e=E.find.attr(t,"value");return null!=e?e:ye(E.text(t))}},select:{get:function(t){for(var e,n=t.options,i=t.selectedIndex,o="select-one"===t.type,r=o?null:[],s=o?i+1:n.length,a=i<0?s:o?i:0;a<s;a++)if(((e=n[a]).selected||a===i)&&!e.disabled&&(!e.parentNode.disabled||!D(e.parentNode,"optgroup"))){if(e=E(e).val(),o)return e;r.push(e)}return r},set:function(t,e){for(var n,i,o=t.options,r=E.makeArray(e),s=o.length;s--;)((i=o[s]).selected=-1<E.inArray(E.valHooks.option.get(i),r))&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),E.each(["radio","checkbox"],function(){E.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<E.inArray(E(t).val(),e)}},y.checkOn||(E.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),y.focusin="onfocusin"in x;function xe(t){t.stopPropagation()}var _e=/^(?:focusinfocus|focusoutblur)$/;E.extend(E.event,{trigger:function(t,e,n,i){var o,r,s,a,l,u,c,d=[n||_],f=v.call(t,"type")?t.type:t,h=v.call(t,"namespace")?t.namespace.split("."):[],p=c=r=n=n||_;if(3!==n.nodeType&&8!==n.nodeType&&!_e.test(f+E.event.triggered)&&(-1<f.indexOf(".")&&(f=(h=f.split(".")).shift(),h.sort()),a=f.indexOf(":")<0&&"on"+f,(t=t[E.expando]?t:new E.Event(f,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=h.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:E.makeArray(e,[t]),u=E.event.special[f]||{},i||!u.trigger||!1!==u.trigger.apply(n,e))){if(!i&&!u.noBubble&&!g(n)){for(s=u.delegateType||f,_e.test(s+f)||(p=p.parentNode);p;p=p.parentNode)d.push(p),r=p;r===(n.ownerDocument||_)&&d.push(r.defaultView||r.parentWindow||x)}for(o=0;(p=d[o++])&&!t.isPropagationStopped();)c=p,t.type=1<o?s:u.bindType||f,(l=(Y.get(p,"events")||{})[t.type]&&Y.get(p,"handle"))&&l.apply(p,e),(l=a&&p[a])&&l.apply&&K(p)&&(t.result=l.apply(p,e),!1===t.result&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(d.pop(),e)||!K(n)||a&&b(n[f])&&!g(n)&&((r=n[a])&&(n[a]=null),E.event.triggered=f,t.isPropagationStopped()&&c.addEventListener(f,xe),n[f](),t.isPropagationStopped()&&c.removeEventListener(f,xe),E.event.triggered=void 0,r&&(n[a]=r)),t.result}},simulate:function(t,e,n){t=E.extend(new E.Event,n,{type:t,isSimulated:!0});E.event.trigger(t,null,e)}}),E.fn.extend({trigger:function(t,e){return this.each(function(){E.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return E.event.trigger(t,e,n,!0)}}),y.focusin||E.each({focus:"focusin",blur:"focusout"},function(n,i){function o(t){E.event.simulate(i,t.target,E.event.fix(t))}E.event.special[i]={setup:function(){var t=this.ownerDocument||this,e=Y.access(t,i);e||t.addEventListener(n,o,!0),Y.access(t,i,(e||0)+1)},teardown:function(){var t=this.ownerDocument||this,e=Y.access(t,i)-1;e?Y.access(t,i,e):(t.removeEventListener(n,o,!0),Y.remove(t,i))}}});var Ee=x.location,Ce=Date.now(),Se=/\?/;E.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new x.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||E.error("Invalid XML: "+t),e};var De=/\[\]$/,Oe=/\r?\n/g,Ae=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;E.param=function(t,e){function n(t,e){e=b(e)?e():e,o[o.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==e?"":e)}var i,o=[];if(Array.isArray(t)||t.jquery&&!E.isPlainObject(t))E.each(t,function(){n(this.name,this.value)});else for(i in t)!function n(i,t,o,r){if(Array.isArray(t))E.each(t,function(t,e){o||De.test(i)?r(i,e):n(i+"["+("object"==typeof e&&null!=e?t:"")+"]",e,o,r)});else if(o||"object"!==p(t))r(i,t);else for(var e in t)n(i+"["+e+"]",t[e],o,r)}(i,t[i],e,n);return o.join("&")},E.fn.extend({serialize:function(){return E.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=E.prop(this,"elements");return t?E.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!E(this).is(":disabled")&&ke.test(this.nodeName)&&!Ae.test(t)&&(this.checked||!lt.test(t))}).map(function(t,e){var n=E(this).val();return null==n?null:Array.isArray(n)?E.map(n,function(t){return{name:e.name,value:t.replace(Oe,"\r\n")}}):{name:e.name,value:n.replace(Oe,"\r\n")}}).get()}});var Ne=/%20/g,Ie=/#.*$/,Le=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,je=/^(?:GET|HEAD)$/,Pe=/^\/\//,qe={},He={},Re="*/".concat("*"),We=_.createElement("a");function Fe(r){return function(t,e){"string"!=typeof t&&(e=t,t="*");var n,i=0,o=t.toLowerCase().match(j)||[];if(b(e))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(r[n]=r[n]||[]).unshift(e)):(r[n]=r[n]||[]).push(e)}}function Be(e,i,o,r){var s={},a=e===He;function l(t){var n;return s[t]=!0,E.each(e[t]||[],function(t,e){e=e(i,o,r);return"string"!=typeof e||a||s[e]?a?!(n=e):void 0:(i.dataTypes.unshift(e),l(e),!1)}),n}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Ve(t,e){var n,i,o=E.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i=i||{})[n]=e[n]);return i&&E.extend(!0,t,i),t}We.href=Ee.href,E.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ee.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ee.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Re,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":E.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ve(Ve(t,E.ajaxSettings),e):Ve(E.ajaxSettings,t)},ajaxPrefilter:Fe(qe),ajaxTransport:Fe(He),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var l,u,c,n,d,i,f,h,o,p=E.ajaxSetup({},e),g=p.context||p,m=p.context&&(g.nodeType||g.jquery)?E(g):E.event,v=E.Deferred(),y=E.Callbacks("once memory"),b=p.statusCode||{},r={},s={},a="canceled",w={readyState:0,getResponseHeader:function(t){var e;if(f){if(!n)for(n={};e=Me.exec(c);)n[e[1].toLowerCase()]=e[2];e=n[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return f?c:null},setRequestHeader:function(t,e){return null==f&&(t=s[t.toLowerCase()]=s[t.toLowerCase()]||t,r[t]=e),this},overrideMimeType:function(t){return null==f&&(p.mimeType=t),this},statusCode:function(t){if(t)if(f)w.always(t[w.status]);else for(var e in t)b[e]=[b[e],t[e]];return this},abort:function(t){t=t||a;return l&&l.abort(t),T(0,t),this}};if(v.promise(w),p.url=((t||p.url||Ee.href)+"").replace(Pe,Ee.protocol+"//"),p.type=e.method||e.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){i=_.createElement("a");try{i.href=p.url,i.href=i.href,p.crossDomain=We.protocol+"//"+We.host!=i.protocol+"//"+i.host}catch(t){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=E.param(p.data,p.traditional)),Be(qe,p,e,w),f)return w;for(o in(h=E.event&&p.global)&&0==E.active++&&E.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!je.test(p.type),u=p.url.replace(Ie,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ne,"+")):(t=p.url.slice(u.length),p.data&&(p.processData||"string"==typeof p.data)&&(u+=(Se.test(u)?"&":"?")+p.data,delete p.data),!1===p.cache&&(u=u.replace(Le,"$1"),t=(Se.test(u)?"&":"?")+"_="+Ce+++t),p.url=u+t),p.ifModified&&(E.lastModified[u]&&w.setRequestHeader("If-Modified-Since",E.lastModified[u]),E.etag[u]&&w.setRequestHeader("If-None-Match",E.etag[u])),(p.data&&p.hasContent&&!1!==p.contentType||e.contentType)&&w.setRequestHeader("Content-Type",p.contentType),w.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Re+"; q=0.01":""):p.accepts["*"]),p.headers)w.setRequestHeader(o,p.headers[o]);if(p.beforeSend&&(!1===p.beforeSend.call(g,w,p)||f))return w.abort();if(a="abort",y.add(p.complete),w.done(p.success),w.fail(p.error),l=Be(He,p,e,w)){if(w.readyState=1,h&&m.trigger("ajaxSend",[w,p]),f)return w;p.async&&0<p.timeout&&(d=x.setTimeout(function(){w.abort("timeout")},p.timeout));try{f=!1,l.send(r,T)}catch(t){if(f)throw t;T(-1,t)}}else T(-1,"No Transport");function T(t,e,n,i){var o,r,s,a=e;f||(f=!0,d&&x.clearTimeout(d),l=void 0,c=i||"",w.readyState=0<t?4:0,i=200<=t&&t<300||304===t,n&&(s=function(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s=s||o}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(p,w,n)),s=function(t,e,n,i){var o,r,s,a,l,u={},c=t.dataTypes.slice();if(c[1])for(s in t.converters)u[s.toLowerCase()]=t.converters[s];for(r=c.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=c.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=u[l+" "+r]||u["* "+r]))for(o in u)if((a=o.split(" "))[1]===r&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[o]:!0!==u[o]&&(r=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}(p,s,w,i),i?(p.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(E.lastModified[u]=n),(n=w.getResponseHeader("etag"))&&(E.etag[u]=n)),204===t||"HEAD"===p.type?a="nocontent":304===t?a="notmodified":(a=s.state,o=s.data,i=!(r=s.error))):(r=a,!t&&a||(a="error",t<0&&(t=0))),w.status=t,w.statusText=(e||a)+"",i?v.resolveWith(g,[o,a,w]):v.rejectWith(g,[w,a,r]),w.statusCode(b),b=void 0,h&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,p,i?o:r]),y.fireWith(g,[w,a]),h&&(m.trigger("ajaxComplete",[w,p]),--E.active||E.event.trigger("ajaxStop")))}return w},getJSON:function(t,e,n){return E.get(t,e,n,"json")},getScript:function(t,e){return E.get(t,void 0,e,"script")}}),E.each(["get","post"],function(t,o){E[o]=function(t,e,n,i){return b(e)&&(i=i||n,n=e,e=void 0),E.ajax(E.extend({url:t,type:o,dataType:i,data:e,success:n},E.isPlainObject(t)&&t))}}),E._evalUrl=function(t){return E.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},E.fn.extend({wrapAll:function(t){return this[0]&&(b(t)&&(t=t.call(this[0])),t=E(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(n){return b(n)?this.each(function(t){E(this).wrapInner(n.call(this,t))}):this.each(function(){var t=E(this),e=t.contents();e.length?e.wrapAll(n):t.append(n)})},wrap:function(e){var n=b(e);return this.each(function(t){E(this).wrapAll(n?e.call(this,t):e)})},unwrap:function(t){return this.parent(t).not("body").each(function(){E(this).replaceWith(this.childNodes)}),this}}),E.expr.pseudos.hidden=function(t){return!E.expr.pseudos.visible(t)},E.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},E.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(t){}};var Ue={0:200,1223:204},ze=E.ajaxSettings.xhr();y.cors=!!ze&&"withCredentials"in ze,y.ajax=ze=!!ze,E.ajaxTransport(function(o){var r,s;if(y.cors||ze&&!o.crossDomain)return{send:function(t,e){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||t["X-Requested-With"]||(t["X-Requested-With"]="XMLHttpRequest"),t)i.setRequestHeader(n,t[n]);r=function(t){return function(){r&&(r=s=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===t?i.abort():"error"===t?"number"!=typeof i.status?e(0,"error"):e(i.status,i.statusText):e(Ue[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=r(),s=i.onerror=i.ontimeout=r("error"),void 0!==i.onabort?i.onabort=s:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){r&&s()})},r=r("abort");try{i.send(o.hasContent&&o.data||null)}catch(t){if(r)throw t}},abort:function(){r&&r()}}}),E.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),E.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return E.globalEval(t),t}}}),E.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),E.ajaxTransport("script",function(n){var i,o;if(n.crossDomain)return{send:function(t,e){i=E("<script>").prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(t){i.remove(),o=null,t&&e("error"===t.type?404:200,t.type)}),_.head.appendChild(i[0])},abort:function(){o&&o()}}});var $e=[],Ke=/(=)\?(?=&|$)|\?\?/;E.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=$e.pop()||E.expando+"_"+Ce++;return this[t]=!0,t}}),E.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,r,s=!1!==t.jsonp&&(Ke.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Ke.test(t.data)&&"data");if(s||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=b(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,s?t[s]=t[s].replace(Ke,"$1"+i):!1!==t.jsonp&&(t.url+=(Se.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return r||E.error(i+" was not called"),r[0]},t.dataTypes[0]="json",o=x[i],x[i]=function(){r=arguments},n.always(function(){void 0===o?E(x).removeProp(i):x[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,$e.push(i)),r&&b(o)&&o(r[0]),r=o=void 0}),"script"}),y.createHTMLDocument=((e=_.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),E.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(y.createHTMLDocument?((i=(e=_.implementation.createHTMLDocument("")).createElement("base")).href=_.location.href,e.head.appendChild(i)):e=_),i=!n&&[],(n=O.exec(t))?[e.createElement(n[1])]:(n=gt([t],e,i),i&&i.length&&E(i).remove(),E.merge([],n.childNodes)));var i},E.fn.load=function(t,e,n){var i,o,r,s=this,a=t.indexOf(" ");return-1<a&&(i=ye(t.slice(a)),t=t.slice(0,a)),b(e)?(n=e,e=void 0):e&&"object"==typeof e&&(o="POST"),0<s.length&&E.ajax({url:t,type:o||"GET",dataType:"html",data:e}).done(function(t){r=arguments,s.html(i?E("<div>").append(E.parseHTML(t)).find(i):t)}).always(n&&function(t,e){s.each(function(){n.apply(this,r||[t.responseText,e,t])})}),this},E.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){E.fn[e]=function(t){return this.on(e,t)}}),E.expr.pseudos.animated=function(e){return E.grep(E.timers,function(t){return e===t.elem}).length},E.offset={setOffset:function(t,e,n){var i,o,r,s,a=E.css(t,"position"),l=E(t),u={};"static"===a&&(t.style.position="relative"),r=l.offset(),i=E.css(t,"top"),s=E.css(t,"left"),s=("absolute"===a||"fixed"===a)&&-1<(i+s).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(s)||0),b(e)&&(e=e.call(t,n,E.extend({},r))),null!=e.top&&(u.top=e.top-r.top+o),null!=e.left&&(u.left=e.left-r.left+s),"using"in e?e.using.call(t,u):l.css(u)}},E.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){E.offset.setOffset(this,e,t)});var t,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),n=n.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],o={top:0,left:0};if("fixed"===E.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===E.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((o=E(t).offset()).top+=E.css(t,"borderTopWidth",!0),o.left+=E.css(t,"borderLeftWidth",!0))}return{top:e.top-o.top-E.css(i,"marginTop",!0),left:e.left-o.left-E.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===E.css(t,"position");)t=t.offsetParent;return t||mt})}}),E.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,o){var r="pageYOffset"===o;E.fn[e]=function(t){return B(this,function(t,e,n){var i;return g(t)?i=t:9===t.nodeType&&(i=t.defaultView),void 0===n?i?i[o]:t[e]:void(i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):t[e]=n)},e,t,arguments.length)}}),E.each(["top","left"],function(t,n){E.cssHooks[n]=Kt(y.pixelPosition,function(t,e){if(e)return e=$t(t,n),Ft.test(e)?E(t).position()[n]+"px":e})}),E.each({Height:"height",Width:"width"},function(s,a){E.each({padding:"inner"+s,content:a,"":"outer"+s},function(i,r){E.fn[r]=function(t,e){var n=arguments.length&&(i||"boolean"!=typeof t),o=i||(!0===t||!0===e?"margin":"border");return B(this,function(t,e,n){var i;return g(t)?0===r.indexOf("outer")?t["inner"+s]:t.document.documentElement["client"+s]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+s],i["scroll"+s],t.body["offset"+s],i["offset"+s],i["client"+s])):void 0===n?E.css(t,e,o):E.style(t,e,n,o)},a,n?t:void 0,n)}})}),E.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,n){E.fn[n]=function(t,e){return 0<arguments.length?this.on(n,null,t,e):this.trigger(n)}}),E.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),E.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)}}),E.proxy=function(t,e){var n,i;if("string"==typeof e&&(i=t[e],e=t,t=i),b(t))return n=a.call(arguments,2),(i=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||E.guid++,i},E.holdReady=function(t){t?E.readyWait++:E.ready(!0)},E.isArray=Array.isArray,E.parseJSON=JSON.parse,E.nodeName=D,E.isFunction=b,E.isWindow=g,E.camelCase=$,E.type=p,E.now=Date.now,E.isNumeric=function(t){var e=E.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return E});var Qe=x.jQuery,Ye=x.$;return E.noConflict=function(t){return x.$===E&&(x.$=Ye),t&&x.jQuery===E&&(x.jQuery=Qe),E},t||(x.jQuery=x.$=E),E}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function o(t){return t&&"[object Function]"==={}.toString.call(t)}function d(t,e){if(1!==t.nodeType)return[];t=getComputedStyle(t,null);return e?t[e]:t}function l(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function c(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=d(t),n=e.overflow,i=e.overflowX,e=e.overflowY;return/(auto|scroll|overlay)/.test(n+e+i)?t:c(l(t))}function f(t){return 11===t?U:10!==t&&U||z}function h(t){if(!t)return document.documentElement;for(var e=f(10)?document.body:null,n=t.offsetParent;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TD","TABLE"].indexOf(n.nodeName)&&"static"===d(n,"position")?h(n):n:(t?t.ownerDocument:document).documentElement}function r(t){return null===t.parentNode?t:r(t.parentNode)}function u(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,n=document.createRange();n.setStart(i,0),n.setEnd(o,0);n=n.commonAncestorContainer;if(t!==n&&e!==n||i.contains(o))return"BODY"===(o=(i=n).nodeName)||"HTML"!==o&&h(i.firstElementChild)!==i?h(n):n;n=r(t);return n.host?u(n.host,e):u(t,r(e).host)}function p(t,e){var n="top"===(1<arguments.length&&void 0!==e?e:"top")?"scrollTop":"scrollLeft",e=t.nodeName;if("BODY"!==e&&"HTML"!==e)return t[n];e=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||e)[n]}function g(t,e){var n="x"===e?"Left":"Top",e="Left"==n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+e+"Width"],10)}function i(t,e,n,i){return q(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],f(10)?n["offset"+t]+i["margin"+("Height"===t?"Top":"Left")]+i["margin"+("Height"===t?"Bottom":"Right")]:0)}function m(){var t=document.body,e=document.documentElement,n=f(10)&&getComputedStyle(e);return{height:i("Height",t,e,n),width:i("Width",t,e,n)}}function v(t){return Q({},t,{right:t.left+t.width,bottom:t.top+t.height})}function y(t){var e,n,i={};try{f(10)?(i=t.getBoundingClientRect(),e=p(t,"top"),n=p(t,"left"),i.top+=e,i.left+=n,i.bottom+=e,i.right+=n):i=t.getBoundingClientRect()}catch(t){}var o={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},r="HTML"===t.nodeName?m():{},s=r.width||t.clientWidth||o.right-o.left,a=r.height||t.clientHeight||o.bottom-o.top,r=t.offsetWidth-s,s=t.offsetHeight-a;return(r||s)&&(r-=g(a=d(t),"x"),s-=g(a,"y"),o.width-=r,o.height-=s),v(o)}function b(t,e,n){var i=2<arguments.length&&void 0!==n&&n,o=f(10),r="HTML"===e.nodeName,s=y(t),a=y(e),l=c(t),u=d(e),n=parseFloat(u.borderTopWidth,10),t=parseFloat(u.borderLeftWidth,10);i&&"HTML"===e.nodeName&&(a.top=q(a.top,0),a.left=q(a.left,0));s=v({top:s.top-a.top-n,left:s.left-a.left-t,width:s.width,height:s.height});return s.marginTop=0,s.marginLeft=0,!o&&r&&(r=parseFloat(u.marginTop,10),u=parseFloat(u.marginLeft,10),s.top-=n-r,s.bottom-=n-r,s.left-=t-u,s.right-=t-u,s.marginTop=r,s.marginLeft=u),(o&&!i?e.contains(l):e===l&&"BODY"!==l.nodeName)&&(s=function(t,e,n){var i=2<arguments.length&&void 0!==n&&n,n=p(e,"top"),e=p(e,"left"),i=i?-1:1;return t.top+=n*i,t.bottom+=n*i,t.left+=e*i,t.right+=e*i,t}(s,e)),s}function w(t){if(!t||!t.parentElement||f())return document.documentElement;for(var e=t.parentElement;e&&"none"===d(e,"transform");)e=e.parentElement;return e||document.documentElement}function T(t,e,n,i,o){var r,s=4<arguments.length&&void 0!==o&&o,a={top:0,left:0},o=s?w(t):u(t,e);return"viewport"===i?a=function(t,e){var n=1<arguments.length&&void 0!==e&&e,i=t.ownerDocument.documentElement,o=b(t,i),r=q(i.clientWidth,window.innerWidth||0),e=q(i.clientHeight,window.innerHeight||0),t=n?0:p(i),i=n?0:p(i,"left");return v({top:t-o.top+o.marginTop,left:i-o.left+o.marginLeft,width:r,height:e})}(o,s):("scrollParent"===i?"BODY"===(r=c(l(e))).nodeName&&(r=t.ownerDocument.documentElement):r="window"===i?t.ownerDocument.documentElement:i,s=b(r,o,s),"HTML"!==r.nodeName||function t(e){var n=e.nodeName;return"BODY"!==n&&"HTML"!==n&&("fixed"===d(e,"position")||t(l(e)))}(o)?a=s:(o=(r=m()).height,r=r.width,a.top+=s.top-s.marginTop,a.bottom=o+s.top,a.left+=s.left-s.marginLeft,a.right=r+s.left)),a.left+=n,a.top+=n,a.right-=n,a.bottom-=n,a}function s(t,e,n,i,o,r){r=5<arguments.length&&void 0!==r?r:0;if(-1===t.indexOf("auto"))return t;var o=T(n,i,r,o),s={top:{width:o.width,height:e.top-o.top},right:{width:o.right-e.right,height:o.height},bottom:{width:o.width,height:o.bottom-e.bottom},left:{width:e.left-o.left,height:o.height}},e=Object.keys(s).map(function(t){return Q({key:t},s[t],{area:(t=s[t]).width*t.height})}).sort(function(t,e){return e.area-t.area}),o=e.filter(function(t){var e=t.width,t=t.height;return e>=n.clientWidth&&t>=n.clientHeight}),e=(0<o.length?o:e)[0].key,t=t.split("-")[1];return e+(t?"-"+t:"")}function a(t,e,n,i){i=3<arguments.length&&void 0!==i?i:null;return b(n,i?w(e):u(e,n),i)}function x(t){var e=getComputedStyle(t),n=parseFloat(e.marginTop)+parseFloat(e.marginBottom),e=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+e,height:t.offsetHeight+n}}function _(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function E(t,e,n){n=n.split("-")[0];var i=x(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",t=r?"height":"width",r=r?"width":"height";return o[s]=e[s]+e[t]/2-i[t]/2,o[a]=n===a?e[a]-i[r]:e[_(a)],o}function C(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function S(t,n,e){return(void 0===e?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=C(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",e))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var e=t.function||t.fn;t.enabled&&o(e)&&(n.offsets.popper=v(n.offsets.popper),n.offsets.reference=v(n.offsets.reference),n=e(n,t))}),n}function t(t,n){return t.some(function(t){var e=t.name;return t.enabled&&e===n})}function D(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var o=e[i],o=o?""+o+n:t;if(void 0!==document.body.style[o])return o}return null}function O(t){t=t.ownerDocument;return t?t.defaultView:window}function e(t,e,n,i){n.updateBound=i,O(t).addEventListener("resize",n.updateBound,{passive:!0});t=c(t);return function t(e,n,i,o){var r="BODY"===e.nodeName,e=r?e.ownerDocument.defaultView:e;e.addEventListener(n,i,{passive:!0}),r||t(c(e.parentNode),n,i,o),o.push(e)}(t,"scroll",n.updateBound,n.scrollParents),n.scrollElement=t,n.eventsEnabled=!0,n}function n(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,O(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function A(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function k(n,i){Object.keys(i).forEach(function(t){var e="";-1!==["width","height","top","right","bottom","left"].indexOf(t)&&A(i[t])&&(e="px"),n.style[t]=i[t]+e})}function N(t,e,n){var i=C(t,function(t){return t.name===e}),o=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});return o||(t="`"+e+"`",console.warn("`"+n+"` modifier is required by "+t+" modifier in order to work, be sure to include it before "+t+"!")),o}function I(t,e){e=1<arguments.length&&void 0!==e&&e,t=X.indexOf(t),t=X.slice(t+1).concat(X.slice(0,t));return e?t.reverse():t}function L(t,o,r,e){var s=[0,0],a=-1!==["right","left"].indexOf(e),n=t.split(/(\+|\-)/).map(function(t){return t.trim()}),e=n.indexOf(C(n,function(t){return-1!==t.search(/,|\s/)}));n[e]&&-1===n[e].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");t=/\s*,\s*|\s+/;return(-1===e?[n]:[n.slice(0,e).concat([n[e].split(t)[0]]),[n[e].split(t)[1]].concat(n.slice(e+1))]).map(function(t,e){var n=(1===e?!a:a)?"height":"width",i=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,i=!0,t):i?(t[t.length-1]+=e,i=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var o,r=+(s=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],s=s[2];if(!r)return t;if(0!==s.indexOf("%"))return"vh"!==s&&"vw"!==s?r:("vh"===s?q(document.documentElement.clientHeight,window.innerHeight||0):q(document.documentElement.clientWidth,window.innerWidth||0))/100*r;switch(s){case"%p":o=n;break;case"%":case"%r":default:o=i}return v(o)[e]/100*r}(t,n,o,r)})}).forEach(function(n,i){n.forEach(function(t,e){A(t)&&(s[i]+=t*("-"===n[e-1]?-1:1))})}),s}for(var M=Math.min,j=Math.round,P=Math.floor,q=Math.max,H="undefined"!=typeof window&&"undefined"!=typeof document,R=["Edge","Trident","Firefox"],W=0,F=0;F<R.length;F+=1)if(H&&0<=navigator.userAgent.indexOf(R[F])){W=1;break}function B(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var V=H&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},W))}},U=H&&!(!window.MSInputMethodContext||!document.documentMode),z=H&&/MSIE 10/.test(navigator.userAgent),$=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},K=function(t,e,n){return e&&et(t.prototype,e),n&&et(t,n),t},Q=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},Y=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],X=Y.slice(3),G="flip",J="clockwise",Z="counterclockwise",K=(K(tt,[{key:"update",value:function(){return function(){var t;this.state.isDestroyed||((t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}}).offsets.reference=a(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=s(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=E(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=S(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t)))}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,t(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[D("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=e(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return n.call(this)}}]),tt);function tt(t,e){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};$(this,tt),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=V(this.update.bind(this)),this.options=Q({},tt.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=t&&t.jquery?t[0]:t,this.popper=e&&e.jquery?e[0]:e,this.options.modifiers={},Object.keys(Q({},tt.Defaults.modifiers,i.modifiers)).forEach(function(t){n.options.modifiers[t]=Q({},tt.Defaults.modifiers[t]||{},i.modifiers?i.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Q({name:t},n.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&o(t.onLoad)&&t.onLoad(n.reference,n.popper,n.options,t,n.state)}),this.update();e=this.options.eventsEnabled;e&&this.enableEventListeners(),this.state.eventsEnabled=e}function et(t,e){for(var n,i=0;i<e.length;i++)(n=e[i]).enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return K.Utils=("undefined"==typeof window?global:window).PopperUtils,K.placements=Y,K.Defaults={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e,n,i=t.placement,o=i.split("-")[0],r=i.split("-")[1];return r&&(e=(n=t.offsets).reference,i=n.popper,o=(n=-1!==["bottom","top"].indexOf(o))?"width":"height",o={start:B({},n=n?"left":"top",e[n]),end:B({},n,e[n]+e[o]-i[o])},t.offsets.popper=Q({},i,o[r])),t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,e=(o=t.offsets).popper,o=o.reference,i=i.split("-")[0],o=A(+n)?[+n,0]:L(n,e,o,i);return"left"===i?(e.top+=o[0],e.left-=o[1]):"right"===i?(e.top+=o[0],e.left+=o[1]):"top"===i?(e.left+=o[0],e.top-=o[1]):"bottom"===i&&(e.left+=o[0],e.top+=o[1]),t.popper=e,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,i){var e=i.boundariesElement||h(t.instance.popper);t.instance.reference===e&&(e=h(e));var n=D("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[n];o.top="",o.left="",o[n]="";var l=T(t.instance.popper,t.instance.reference,i.padding,e,t.positionFixed);o.top=r,o.left=s,o[n]=a,i.boundaries=l;var a=i.priority,u=t.offsets.popper,c={primary:function(t){var e=u[t];return u[t]<l[t]&&!i.escapeWithReference&&(e=q(u[t],l[t])),B({},t,e)},secondary:function(t){var e="right"===t?"left":"top",n=u[e];return u[t]>l[t]&&!i.escapeWithReference&&(n=M(u[e],l[t]-("right"===t?u.width:u.height))),B({},e,n)}};return a.forEach(function(t){var e=-1===["left","top"].indexOf(t)?"secondary":"primary";u=Q({},u,c[e](t))}),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=P,s=-1!==["top","bottom"].indexOf(o),e=s?"right":"bottom",o=s?"left":"top",s=s?"width":"height";return n[e]<r(i[o])&&(t.offsets.popper[o]=r(i[o])-n[s]),n[o]>r(i[e])&&(t.offsets.popper[o]=r(i[e])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){if(!N(t.instance.modifiers,"arrow","keepTogether"))return t;var n=e.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var i=t.placement.split("-")[0],o=t.offsets,r=o.popper,s=o.reference,a=-1!==["left","right"].indexOf(i),l=a?"height":"width",u=a?"Top":"Left",c=u.toLowerCase(),e=a?"left":"top",o=a?"bottom":"right",i=x(n)[l];s[o]-i<r[c]&&(t.offsets.popper[c]-=r[c]-(s[o]-i)),s[c]+i>r[o]&&(t.offsets.popper[c]+=s[c]+i-r[o]),t.offsets.popper=v(t.offsets.popper);a=s[c]+s[l]/2-i/2,o=d(t.instance.popper),s=parseFloat(o["margin"+u],10),u=parseFloat(o["border"+u+"Width"],10),u=a-t.offsets.popper[c]-s-u,u=q(M(r[l]-i,u),0);return t.arrowElement=n,t.offsets.arrow=(B(n={},c,j(u)),B(n,e,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(l,u){if(t(l.instance.modifiers,"inner"))return l;if(l.flipped&&l.placement===l.originalPlacement)return l;var c=T(l.instance.popper,l.instance.reference,u.padding,u.boundariesElement,l.positionFixed),d=l.placement.split("-")[0],f=_(d),h=l.placement.split("-")[1]||"",p=[];switch(u.behavior){case G:p=[d,f];break;case J:p=I(d);break;case Z:p=I(d,!0);break;default:p=u.behavior}return p.forEach(function(t,e){if(d!==t||p.length===e+1)return l;d=l.placement.split("-")[0],f=_(d);var n=l.offsets.popper,i=l.offsets.reference,o=P,r="left"===d&&o(n.right)>o(i.left)||"right"===d&&o(n.left)<o(i.right)||"top"===d&&o(n.bottom)>o(i.top)||"bottom"===d&&o(n.top)<o(i.bottom),s=o(n.left)<o(c.left),a=o(n.right)>o(c.right),t=o(n.top)<o(c.top),i=o(n.bottom)>o(c.bottom),n="left"===d&&s||"right"===d&&a||"top"===d&&t||"bottom"===d&&i,o=-1!==["top","bottom"].indexOf(d),i=!!u.flipVariations&&(o&&"start"===h&&s||o&&"end"===h&&a||!o&&"start"===h&&t||!o&&"end"===h&&i);(r||n||i)&&(l.flipped=!0,(r||n)&&(d=p[e+1]),i&&(h="end"===(i=h)?"start":"start"===i?"end":i),l.placement=d+(h?"-"+h:""),l.offsets.popper=Q({},l.offsets.popper,E(l.instance.popper,l.offsets.reference,l.placement)),l=S(l.instance.modifiers,l,"flip"))}),l},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),i=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(i?o[s?"width":"height"]:0),t.placement=_(e),t.offsets.popper=v(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!N(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=C(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,o=t.offsets.popper,r=C(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==r&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=void 0===r?e.gpuAcceleration:r,a=y(h(t.instance.popper)),l={position:o.position},e={left:P(o.left),top:j(o.top),bottom:j(o.bottom),right:P(o.right)},r="bottom"===n?"top":"bottom",o="right"===i?"left":"right",n=D("transform"),i="bottom"==r?-a.height+e.bottom:e.top,e="right"==o?-a.width+e.right:e.left;s&&n?(l[n]="translate3d("+e+"px, "+i+"px, 0)",l[r]=0,l[o]=0,l.willChange="transform"):(s="bottom"==r?-1:1,n="right"==o?-1:1,l[r]=i*s,l[o]=e*n,l.willChange=r+", "+o);o={"x-placement":t.placement};return t.attributes=Q({},o,t.attributes),t.styles=Q({},l,t.styles),t.arrowStyles=Q({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return k(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1===n[t]?e.removeAttribute(t):e.setAttribute(t,n[t])}),t.arrowElement&&Object.keys(t.arrowStyles).length&&k(t.arrowElement,t.arrowStyles),t;var e,n},onLoad:function(t,e,n,i,o){o=a(o,e,t,n.positionFixed),t=s(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",t),k(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},K}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Tagify=e()}(this,function(){"use strict";function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e,n,i){return t=""+t,e=""+e,i&&(t=t.trim(),e=e.trim()),n?t==e:t.toLowerCase()==e.toLowerCase()}function d(t){var e=document.createElement("div");return t.replace(/\&#?[0-9a-z]+;/gi,function(t){return e.innerHTML=t,e.innerText})}function f(t,e){for(e=e||"previous";t=t[e+"Sibling"];)if(3==t.nodeType)return t}function o(t){return t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/`|'/g,"&#039;")}function p(t){var e=Object.prototype.toString.call(t).split(" ")[1].slice(0,-1);return t===Object(t)&&"Array"!=e&&"Function"!=e&&"RegExp"!=e&&"HTMLUnknownElement"!=e}function h(t,e,n){function i(t,e){for(var n in e)if(e.hasOwnProperty(n)){if(p(e[n])){p(t[n])?i(t[n],e[n]):t[n]=Object.assign({},e[n]);continue}if(e[n]instanceof Array){t[n]=Object.assign([],e[n]);continue}t[n]=e[n]}}return t instanceof Object||(t={}),i(t,e),n&&i(t,n),t}function g(t){return String.prototype.normalize?"string"==typeof t?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):void 0:t}var m=/(?=.*chrome)(?=.*android)/i.test(navigator.userAgent),e={delimiters:",",pattern:null,tagTextProp:"value",maxTags:1/0,callbacks:{},addTagOnBlur:!0,duplicates:!1,whitelist:[],blacklist:[],enforceWhitelist:!1,keepInvalidTags:!1,mixTagsAllowedAfter:/,|\.|\:|\s/,mixTagsInterpolator:["[[","]]"],backspace:!0,skipInvalid:!1,editTags:{clicks:2,keepInvalid:!0},transformTag:function(){},trim:!0,mixMode:{insertAfterTag:" "},autoComplete:{enabled:!0,rightKey:!1},classNames:{namespace:"tagify",input:"tagify__input",focus:"tagify--focus",tag:"tagify__tag",tagNoAnimation:"tagify--noAnim",tagInvalid:"tagify--invalid",tagNotAllowed:"tagify--notAllowed",inputInvalid:"tagify__input--invalid",tagX:"tagify__tag__removeBtn",tagText:"tagify__tag-text",dropdown:"tagify__dropdown",dropdownWrapper:"tagify__dropdown__wrapper",dropdownItem:"tagify__dropdown__item",dropdownItemActive:"tagify__dropdown__item--active",dropdownInital:"tagify__dropdown--initial",scopeLoading:"tagify--loading",tagLoading:"tagify__tag--loading",tagEditing:"tagify__tag--editable",tagFlash:"tagify__tag--flash",tagHide:"tagify__tag--hide",hasMaxTags:"tagify--hasMaxTags",hasNoTags:"tagify--noTags",empty:"tagify--empty"},dropdown:{classname:"",enabled:2,maxItems:10,searchKeys:["value","searchBy"],fuzzySearch:!0,caseSensitive:!1,accentedSearch:!0,highlightFirst:!1,closeOnSelect:!0,clearOnSelect:!0,position:"all",appendTarget:null},hooks:{beforeRemoveTag:function(){return Promise.resolve()},suggestionClick:function(){return Promise.resolve()}}};function t(t,e){return t?t.previousElementSibling&&t.previousElementSibling.classList.contains("tagify")?(console.warn("Tagify: ","input element is already Tagified",t),this):(h(this,(r=this,s=document.createTextNode(""),{off:function(t,e){return n("remove",t,e),this},on:function(t,e){return e&&"function"==typeof e&&n("add",t,e),this},trigger:function(t,e){var n;if(t)if(r.settings.isJQueryPlugin)"remove"==t&&(t="removeTag"),jQuery(r.DOM.originalInput).triggerHandler(t,[e]);else{try{var i=h({},"object"===a(e)?e:{value:e});if(i.tagify=this,e instanceof Object)for(var o in e)e[o]instanceof HTMLElement&&(i[o]=e[o]);n=new CustomEvent(t,{detail:i})}catch(t){console.warn(t)}s.dispatchEvent(n)}}})),this.isFirefox="undefined"!=typeof InstallTrigger,this.isIE=window.document.documentMode,this.applySettings(t,e||{}),this.state={inputText:"",editing:!1,actions:{},mixMode:{},dropdown:{},flaggedTags:{}},this.value=[],this.listeners={},this.DOM={},this.build(t),this.getCSSVars(),this.loadOriginalValues(),this.events.customBinding.call(this),this.events.binding.call(this),void(t.autofocus&&this.DOM.input.focus())):(console.warn("Tagify: ","input element not found",t),this);function n(e,t,n){n&&t.split(/\s+/g).forEach(function(t){return s[e+"EventListener"].call(s,t,n)})}var r,s}return(t.prototype={dropdown:{init:function(){this.DOM.dropdown=this.parseTemplate("dropdown",[this.settings]),this.DOM.dropdown.content=this.DOM.dropdown.querySelector("."+this.settings.classNames.dropdownWrapper)},show:function(t){var e,n=this,i=this.settings,o=window.getSelection(),r="mix"==i.mode&&!i.enforceWhitelist,s=!i.whitelist||!i.whitelist.length,a="manual"==i.dropdown.position;if(t=void 0===t?this.state.inputText:t,(!s||r||i.templates.dropdownItemNoMatch)&&!1!==i.dropdown.enable&&!this.state.isLoading){if(clearTimeout(this.dropdownHide__bindEventsTimeout),this.suggestedListItems=this.dropdown.filterListItems.call(this,t),t&&!this.suggestedListItems.length&&(this.trigger("dropdown:noMatch",t),i.templates.dropdownItemNoMatch&&(e=i.templates.dropdownItemNoMatch.call(this,{value:t}))),!e){if(this.suggestedListItems.length)t&&r&&!this.state.editing.scope&&!l(this.suggestedListItems[0].value,t)&&this.suggestedListItems.unshift({value:t});else{if(!t||!r||this.state.editing.scope)return this.input.autocomplete.suggest.call(this),void this.dropdown.hide.call(this);this.suggestedListItems=[{value:t}]}r=""+(p(s=this.suggestedListItems[0])?s.value:s),i.autoComplete&&r&&0==r.indexOf(t)&&this.input.autocomplete.suggest.call(this,s)}this.dropdown.fill.call(this,e),i.dropdown.highlightFirst&&this.dropdown.highlightOption.call(this,this.DOM.dropdown.content.children[0]),this.state.dropdown.visible||setTimeout(this.dropdown.events.binding.bind(this)),this.state.dropdown.visible=t||!0,this.state.dropdown.query=t,this.state.selection={anchorOffset:o.anchorOffset,anchorNode:o.anchorNode},a||setTimeout(function(){n.dropdown.position.call(n),n.dropdown.render.call(n)}),setTimeout(function(){n.trigger("dropdown:show",n.DOM.dropdown)})}},hide:function(t){var e=this,n=this.DOM,i=n.scope,n=n.dropdown,t="manual"==this.settings.dropdown.position&&!t;if(n&&document.body.contains(n)&&!t)return window.removeEventListener("resize",this.dropdown.position),this.dropdown.events.binding.call(this,!1),i.setAttribute("aria-expanded",!1),n.parentNode.removeChild(n),setTimeout(function(){e.state.dropdown.visible=!1},100),this.state.dropdown.query=this.state.ddItemData=this.state.ddItemElm=this.state.selection=null,this.state.tag&&this.state.tag.value.length&&(this.state.flaggedTags[this.state.tag.baseOffset]=this.state.tag),this.trigger("dropdown:hide",n),this},render:function(){var t,e=this,n=((t=this.DOM.dropdown.cloneNode(!0)).style.cssText="position:fixed; top:-9999px; opacity:0",document.body.appendChild(t),n=t.clientHeight,t.parentNode.removeChild(t),n),i=this.settings;return this.DOM.scope.setAttribute("aria-expanded",!0),document.body.contains(this.DOM.dropdown)||(this.DOM.dropdown.classList.add(i.classNames.dropdownInital),this.dropdown.position.call(this,n),i.dropdown.appendTarget.appendChild(this.DOM.dropdown),setTimeout(function(){return e.DOM.dropdown.classList.remove(i.classNames.dropdownInital)})),this},fill:function(t){t="string"==typeof t?t:this.dropdown.createListHTML.call(this,t||this.suggestedListItems),this.DOM.dropdown.content.innerHTML=t?t.replace(/\>[\r\n ]+\</g,"><").replace(/(<.*?>)|\s+/g,function(t,e){return e||" "}):""},refilter:function(t){t=t||this.state.dropdown.query||"",this.suggestedListItems=this.dropdown.filterListItems.call(this,t),(this.suggestedListItems.length?this.dropdown.fill:this.dropdown.hide).call(this),this.trigger("dropdown:updated",this.DOM.dropdown)},position:function(t){var e,n,i,o,r,s,a,l,u;"manual"!=this.settings.dropdown.position&&(s=this.DOM.dropdown,a=document.documentElement.clientHeight,l=480<Math.max(document.documentElement.clientWidth||0,window.innerWidth||0)?this.settings.dropdown.position:"all",u=this.DOM["input"==l?"input":"scope"],t=t||s.clientHeight,this.state.dropdown.visible&&(r="text"==l?(i=(e=this.getCaretGlobalPosition()).bottom,n=e.top,o=e.left,"auto"):(r=function(t){for(var e=0,n=0;t;)e+=t.offsetLeft||0,n+=t.offsetTop||0,t=t.parentNode;return{left:e,top:n}}(this.settings.dropdown.appendTarget),n=(e=u.getBoundingClientRect()).top+2-r.top,i=e.bottom-1-r.top,o=e.left-r.left,e.width+"px"),n=Math.floor(n),i=Math.ceil(i),t=a-e.bottom<t,s.style.cssText="left:"+(o+window.pageXOffset)+"px; width:"+r+";"+(t?"top: "+(n+window.pageYOffset)+"px":"top: "+(i+window.pageYOffset)+"px"),s.setAttribute("placement",t?"top":"bottom"),s.setAttribute("position",l)))},events:{binding:function(){var t=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],e=this.dropdown.events.callbacks,e=this.listeners.dropdown=this.listeners.dropdown||{position:this.dropdown.position.bind(this),onKeyDown:e.onKeyDown.bind(this),onMouseOver:e.onMouseOver.bind(this),onMouseLeave:e.onMouseLeave.bind(this),onClick:e.onClick.bind(this),onScroll:e.onScroll.bind(this)},t=t?"addEventListener":"removeEventListener";"manual"!=this.settings.dropdown.position&&(window[t]("resize",e.position),window[t]("keydown",e.onKeyDown)),this.DOM.dropdown[t]("mouseover",e.onMouseOver),this.DOM.dropdown[t]("mouseleave",e.onMouseLeave),this.DOM.dropdown[t]("mousedown",e.onClick),this.DOM.dropdown.content[t]("scroll",e.onScroll)},callbacks:{onKeyDown:function(t){var e,n=this.DOM.dropdown.querySelector("."+this.settings.classNames.dropdownItemActive),i=n;switch(t.key){case"ArrowDown":case"ArrowUp":case"Down":case"Up":t.preventDefault(),i=(i=i&&i[("ArrowUp"==t.key||"Up"==t.key?"previous":"next")+"ElementSibling"])||(e=this.DOM.dropdown.content.children)["ArrowUp"==t.key||"Up"==t.key?e.length-1:0],this.dropdown.highlightOption.call(this,i,!0);break;case"Escape":case"Esc":this.dropdown.hide.call(this);break;case"ArrowRight":if(this.state.actions.ArrowLeft)return;case"Tab":if("mix"==this.settings.mode||!i||this.settings.autoComplete.rightKey||this.state.editing)return!0;t.preventDefault();var o=i.getAttribute("tagifySuggestionIdx"),o=o?this.suggestedListItems[+o]:"";return this.input.autocomplete.set.call(this,o.value||o),!1;case"Enter":t.preventDefault(),this.dropdown.selectOption.call(this,n);break;case"Backspace":if("mix"==this.settings.mode||this.state.editing.scope)return;o=this.state.inputText.trim();""!=o&&8203!=o.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0))}},onMouseOver:function(t){t=t.target.closest("."+this.settings.classNames.dropdownItem);t&&this.dropdown.highlightOption.call(this,t)},onMouseLeave:function(t){this.dropdown.highlightOption.call(this)},onClick:function(t){var e,n=this;0==t.button&&t.target!=this.DOM.dropdown&&(e=t.target.closest("."+this.settings.classNames.dropdownItem),this.state.actions.selectOption=!0,setTimeout(function(){return n.state.actions.selectOption=!1},50),this.settings.hooks.suggestionClick(t,{tagify:this,suggestionElm:e}).then(function(){e?n.dropdown.selectOption.call(n,e):n.dropdown.hide.call(n)}).catch(function(t){return t}))},onScroll:function(t){t=t.target,t=t.scrollTop/(t.scrollHeight-t.parentNode.clientHeight)*100;this.trigger("dropdown:scroll",{percentage:Math.round(t)})}}},highlightOption:function(t,e){var n,i=this.settings.classNames.dropdownItemActive;if(this.state.ddItemElm&&(this.state.ddItemElm.classList.remove(i),this.state.ddItemElm.removeAttribute("aria-selected")),!t)return this.state.ddItemData=null,this.state.ddItemElm=null,void this.input.autocomplete.suggest.call(this);n=this.suggestedListItems[this.getNodeIndex(t)],this.state.ddItemData=n,(this.state.ddItemElm=t).classList.add(i),t.setAttribute("aria-selected",!0),e&&(t.parentNode.scrollTop=t.clientHeight+t.offsetTop-t.parentNode.clientHeight),this.settings.autoComplete&&(this.input.autocomplete.suggest.call(this,n),this.dropdown.position.call(this))},selectOption:function(t){var e=this,n=this.settings.dropdown,i=n.clearOnSelect,o=n.closeOnSelect;if(!t)return this.addTags(this.state.inputText,!0),void(o&&this.dropdown.hide.call(this));var r=t.getAttribute("tagifySuggestionIdx"),n=this.suggestedListItems[+r];if(this.trigger("dropdown:select",{data:n,elm:t}),r&&n){if(this.state.editing?this.onEditTagDone(null,h({__isValid:!0},n)):this["mix"==this.settings.mode?"addMixTags":"addTags"]([n],i),setTimeout(function(){e.DOM.input.focus(),e.toggleFocusClass(!0)}),o)return this.dropdown.hide.call(this);this.dropdown.refilter.call(this)}else this.dropdown.hide.call(this)},selectAll:function(){return this.suggestedListItems.length=0,this.dropdown.hide.call(this),this.addTags(this.dropdown.filterListItems.call(this,""),!0),this},filterListItems:function(t,e){var n,i,o,r,s=this,a=this.settings,l=a.dropdown,u=(e=e||{},[]),c=a.whitelist,d=l.maxItems||1/0,f=l.searchKeys,h=0;if(!t||!f.length)return(a.duplicates?c:c.filter(function(t){return!s.isTagDuplicate(p(t)?t.value:t)})).slice(0,d);for(r=l.caseSensitive?""+t:(""+t).toLowerCase();h<c.length&&(n=c[h]instanceof Object?c[h]:{value:c[h]},i=l.fuzzySearch&&!e.exact?(o=f.reduce(function(t,e){return t+" "+(n[e]||"")},"").toLowerCase(),l.accentedSearch&&(o=g(o),r=g(r)),function(e,t){return t.toLowerCase().split(" ").every(function(t){return e.includes(t.toLowerCase())})}(o,r)):f.some(function(t){t=""+(n[t]||"");return l.accentedSearch&&(t=g(t),r=g(r)),l.caseSensitive||(t=t.toLowerCase()),e.exact?t==r:0==t.indexOf(r)}),o=!a.duplicates&&this.isTagDuplicate(p(n)?n.value:n),i&&!o&&d--&&u.push(n),0!=d);h++);return u},createListHTML:function(t){var i=this;return h([],t).map(function(t,e){"string"!=typeof t&&"number"!=typeof t||(t={value:t});var n=i.settings.dropdown.mapValueTo,n=n?"function"==typeof n?n(t):t[n]||t.value:t.value;t.value=n&&"string"==typeof n?o(n):n;t=i.settings.templates.dropdownItem.call(i,t);return t.replace(/\s*tagifySuggestionIdx=(["'])(.*?)\1/gim,"").replace(">",' tagifySuggestionIdx="'.concat(e,'">'))}).join("")}},TEXTS:{empty:"empty",exceed:"number of tags exceeded",pattern:"pattern mismatch",duplicate:"already exists",notAllowed:"not allowed"},customEventsList:["change","add","remove","invalid","input","click","keydown","focus","blur","edit:input","edit:updated","edit:start","edit:keydown","dropdown:show","dropdown:hide","dropdown:select","dropdown:updated","dropdown:noMatch"],trim:function(t){return this.settings.trim&&t&&"string"==typeof t?t.trim():t},parseHTML:function(t){return(new DOMParser).parseFromString(t.trim(),"text/html").body.firstElementChild},templates:{wrapper:function(t,e){return'<tags class="'.concat(e.classNames.namespace," ").concat(e.mode?"".concat(e.classNames.namespace,"--").concat(e.mode):""," ").concat(t.className,'"\n                    ').concat(e.readonly?"readonly":"","\n                    ").concat(e.required?"required":"",'\n                    tabIndex="-1">\n            <span ').concat(e.readonly&&"mix"==e.mode?"":"contenteditable",' data-placeholder="').concat(e.placeholder||"&#8203;",'" aria-placeholder="').concat(e.placeholder||"",'"\n                class="').concat(e.classNames.input,'"\n                role="textbox"\n                aria-autocomplete="both"\n                aria-multiline="').concat("mix"==e.mode,'"></span>\n        </tags>')},tag:function(t){return'<tag title="'.concat(t.title||t.value,"\"\n                    contenteditable='false'\n                    spellcheck='false'\n                    tabIndex=\"-1\"\n                    class=\"").concat(this.settings.classNames.tag," ").concat(t.class||"",'"\n                    ').concat(this.getAttributes(t),">\n            <x title='' class=\"").concat(this.settings.classNames.tagX,"\" role='button' aria-label='remove tag'></x>\n            <div>\n                <span class=\"").concat(this.settings.classNames.tagText,'">').concat(t[this.settings.tagTextProp]||t.value,"</span>\n            </div>\n        </tag>")},dropdown:function(t){var e=t.dropdown,n="manual"==e.position,i="".concat(t.classNames.dropdown);return'<div class="'.concat(n?"":i," ").concat(e.classname,'" role="listbox" aria-labelledby="dropdown">\n                    <div class="').concat(t.classNames.dropdownWrapper,'"></div>\n                </div>')},dropdownItem:function(t){return"<div ".concat(this.getAttributes(t),"\n                    class='").concat(this.settings.classNames.dropdownItem," ").concat(t.class||"",'\'\n                    tabindex="0"\n                    role="option">').concat(t.value,"</div>")},dropdownItemNoMatch:null},parseTemplate:function(t,e){return t=this.settings.templates[t]||t,this.parseHTML(t.apply(this,e))},applySettings:function(n,t){e.templates=this.templates;var i=this.settings=h({},e,t);if(i.readonly=n.hasAttribute("readonly"),i.placeholder=n.getAttribute("placeholder")||i.placeholder||"",i.required=n.hasAttribute("required"),this.isIE&&(i.autoComplete=!1),["whitelist","blacklist"].forEach(function(t){var e=n.getAttribute("data-"+t);e&&(e=e.split(i.delimiters))instanceof Array&&(i[t]=e)}),"autoComplete"in t&&!p(t.autoComplete)&&(i.autoComplete=e.autoComplete,i.autoComplete.enabled=t.autoComplete),"mix"==i.mode&&(i.autoComplete.rightKey=!0,i.delimiters=t.delimiters||null,i.tagTextProp&&!i.dropdown.searchKeys.includes(i.tagTextProp)&&i.dropdown.searchKeys.push(i.tagTextProp)),n.pattern)try{i.pattern=new RegExp(n.pattern)}catch(n){}if(this.settings.delimiters)try{i.delimiters=new RegExp(this.settings.delimiters,"g")}catch(n){}"select"==i.mode&&(i.dropdown.enabled=0),i.dropdown.appendTarget=t.dropdown&&t.dropdown.appendTarget?t.dropdown.appendTarget:document.body},getAttributes:function(t){if("[object Object]"!=Object.prototype.toString.call(t))return"";for(var e,n=Object.keys(t),i="",o=n.length;o--;)"class"!=(e=n[o])&&t.hasOwnProperty(e)&&void 0!==t[e]&&(i+=" "+e+(void 0!==t[e]?'="'.concat(t[e],'"'):""));return i},setStateSelection:function(){var t=window.getSelection(),t={anchorOffset:t.anchorOffset,anchorNode:t.anchorNode,range:t.getRangeAt&&t.rangeCount&&t.getRangeAt(0)};return this.state.selection=t},getCaretGlobalPosition:function(){var t=document.getSelection();if(t.rangeCount){var e=t.getRangeAt(0),n=e.startContainer,t=e.startOffset;if(0<t)return(e=document.createRange()).setStart(n,t-1),e.setEnd(n,t),{left:(e=e.getBoundingClientRect()).right,top:e.top,bottom:e.bottom};if(n.getBoundingClientRect)return n.getBoundingClientRect()}return{left:-9999,top:-9999}},getCSSVars:function(){var t,e=getComputedStyle(this.DOM.scope,null);this.CSSVars={tagHideTransition:(t=function(t){if(!t)return{};var e=(t=t.trim().split(" ")[0]).split(/\d+/g).filter(function(t){return t}).pop().trim();return{value:+t.split(e).filter(function(t){return t})[0].trim(),unit:e}}(e.getPropertyValue("--tag-hide-transition")),e=t.value,"s"==t.unit?1e3*e:e)}},build:function(t){var e=this.DOM;this.settings.mixMode.integrated?(e.originalInput=null,e.scope=t,e.input=t):(e.originalInput=t,e.scope=this.parseTemplate("wrapper",[t,this.settings]),e.input=e.scope.querySelector("."+this.settings.classNames.input),t.parentNode.insertBefore(e.scope,t)),0<=this.settings.dropdown.enabled&&this.dropdown.init.call(this)},destroy:function(){this.DOM.scope.parentNode.removeChild(this.DOM.scope),this.dropdown.hide.call(this,!0),clearTimeout(this.dropdownHide__bindEventsTimeout)},loadOriginalValues:function(t){var e,n=this.settings;if(t=t||(n.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value))if(this.removeAllTags(),"mix"==n.mode)this.parseMixTags(t.trim()),(e=this.DOM.input.lastChild)&&"BR"==e.tagName||this.DOM.input.insertAdjacentHTML("beforeend","<br>");else{try{JSON.parse(t)instanceof Array&&(t=JSON.parse(t))}catch(t){}this.addTags(t).forEach(function(t){return t&&t.classList.add(n.classNames.tagNoAnimation)})}else this.postUpdate();this.state.lastOriginalValueReported=n.mixMode.integrated?"":this.DOM.originalInput.value,this.state.loadedOriginalValues=!0},cloneEvent:function(t){var e,n={};for(e in t)n[e]=t[e];return n},loading:function(t){return this.state.isLoading=t,this.DOM.scope.classList[t?"add":"remove"](this.settings.classNames.scopeLoading),this},tagLoading:function(t,e){return t&&t.classList[e?"add":"remove"](this.settings.classNames.tagLoading),this},toggleClass:function(t,e){"string"==typeof t&&this.DOM.scope.classList.toggle(t,e)},toggleFocusClass:function(t){this.toggleClass(this.settings.classNames.focus,!!t)},triggerChangeEvent:function(){var t,e,n;this.settings.mixMode.integrated||(t=this.DOM.originalInput,e=this.state.lastOriginalValueReported!==t.value,n=new CustomEvent("change",{bubbles:!0}),e&&(this.state.lastOriginalValueReported=t.value,n.simulated=!0,t._valueTracker&&t._valueTracker.setValue(Math.random()),t.dispatchEvent(n),this.trigger("change",this.state.lastOriginalValueReported),t.value=this.state.lastOriginalValueReported))},events:{customBinding:function(){var e=this;this.customEventsList.forEach(function(t){e.on(t,e.settings.callbacks[t])})},binding:function(){var t,e=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],n=this.events.callbacks,i=e?"addEventListener":"removeEventListener";if(!this.state.mainEvents||!e)for(var o in(this.state.mainEvents=e)&&!this.listeners.main&&(this.DOM.input.addEventListener(this.isIE?"keydown":"input",n[this.isIE?"onInputIE":"onInput"].bind(this)),this.settings.isJQueryPlugin&&jQuery(this.DOM.originalInput).on("tagify.removeAllTags",this.removeAllTags.bind(this))),t=this.listeners.main=this.listeners.main||{focus:["input",n.onFocusBlur.bind(this)],blur:["input",n.onFocusBlur.bind(this)],keydown:["input",n.onKeydown.bind(this)],click:["scope",n.onClickScope.bind(this)],dblclick:["scope",n.onDoubleClickScope.bind(this)],paste:["input",n.onPaste.bind(this)]})"blur"==o&&!e||this.DOM[t[o][0]][i](o,t[o][1])},callbacks:{onFocusBlur:function(t){var e=t.target?this.trim(t.target.textContent):"",n=this.settings,i=t.type,o=0<=n.dropdown.enabled,r={relatedTarget:t.relatedTarget},s=this.state.actions.selectOption&&(o||!n.dropdown.closeOnSelect),o=this.state.actions.addNew&&o;if("blur"==i){if(t.relatedTarget===this.DOM.scope)return this.dropdown.hide.call(this),void this.DOM.input.focus();this.postUpdate(),this.triggerChangeEvent()}if(!s&&!o)if(this.state.hasFocus="focus"==i&&+new Date,this.toggleFocusClass(this.state.hasFocus),"mix"!=n.mode){if("focus"==i)return this.trigger("focus",r),void(0===n.dropdown.enabled&&this.dropdown.show.call(this));"blur"==i&&(this.trigger("blur",r),this.loading(!1),("select"==this.settings.mode?!this.value.length||this.value[0].value!=e:e&&!this.state.actions.selectOption&&n.addTagOnBlur)&&this.addTags(e,!0)),this.DOM.input.removeAttribute("style"),this.dropdown.hide.call(this)}else"focus"==i?this.trigger("focus",r):"blur"==t.type&&(this.trigger("blur",r),this.loading(!1),this.dropdown.hide.call(this),this.state.dropdown.visible=void 0,this.setStateSelection())},onKeydown:function(t){var i=this,e=this.trim(t.target.textContent);if(this.trigger("keydown",{originalEvent:this.cloneEvent(t)}),"mix"==this.settings.mode){switch(t.key){case"Left":case"ArrowLeft":this.state.actions.ArrowLeft=!0;break;case"Delete":case"Backspace":if(this.state.editing)return;var n,o,r=document.getSelection(),s="Delete"==t.key&&r.anchorOffset==(r.anchorNode.length||0),a=1==r.anchorNode.nodeType||!r.anchorOffset&&r.anchorNode.previousElementSibling,l=d(this.DOM.input.innerHTML),u=this.getTagElms();if(m&&a)return o=f(a),a.hasAttribute("readonly")||a.remove(),this.DOM.input.focus(),void setTimeout(function(){i.placeCaretAfterNode(o),i.DOM.input.click()});if("BR"==r.anchorNode.nodeName)return;if((s||a)&&1==r.anchorNode.nodeType?n=0==r.anchorOffset?s?u[0]:null:u[r.anchorOffset-1]:s?n=r.anchorNode.nextElementSibling:a&&(n=a),3==r.anchorNode.nodeType&&!r.anchorNode.nodeValue&&r.anchorNode.previousElementSibling&&t.preventDefault(),(a||s)&&!this.settings.backspace)return void t.preventDefault();if("Range"!=r.type&&!r.anchorOffset&&r.anchorNode==this.DOM.input&&"Delete"!=t.key)return void t.preventDefault();if("Range"!=r.type&&n&&n.hasAttribute("readonly"))return void this.placeCaretAfterNode(f(n));this.isFirefox&&1==r.anchorNode.nodeType&&0!=r.anchorOffset&&(this.removeTags(),this.placeCaretAfterNode(this.setRangeAtStartEnd())),setTimeout(function(){var t=document.getSelection(),e=d(i.DOM.input.innerHTML),t=t.anchorNode.previousElementSibling;if(!m&&e.length>=l.length&&t&&!t.hasAttribute("readonly")&&(i.removeTags(t),i.fixFirefoxLastTagNoCaret(),2==i.DOM.input.children.length&&"BR"==i.DOM.input.children[1].tagName))return i.DOM.input.innerHTML="",!(i.value.length=0);i.value=[].map.call(u,function(t,e){var n=i.tagData(t);if(t.parentNode||n.readonly)return n;i.trigger("remove",{tag:t,index:e,data:n})}).filter(function(t){return t})},50)}return!0}switch(t.key){case"Backspace":this.state.dropdown.visible&&"manual"!=this.settings.dropdown.position||""!=e&&8203!=e.charCodeAt(0)||(!0===this.settings.backspace?this.removeTags():"edit"==this.settings.backspace&&setTimeout(this.editTag.bind(this),0));break;case"Esc":case"Escape":if(this.state.dropdown.visible)return;t.target.blur();break;case"Down":case"ArrowDown":this.state.dropdown.visible||this.dropdown.show.call(this);break;case"ArrowRight":var c=this.state.inputSuggestion||this.state.ddItemData;if(c&&this.settings.autoComplete.rightKey)return void this.addTags([c],!0);break;case"Tab":if(e&&t.preventDefault(),!e||"select"==this.settings.mode)return!0;case"Enter":if(this.state.dropdown.visible||229==t.keyCode)return;t.preventDefault(),setTimeout(function(){i.state.actions.selectOption||i.addTags(e,!0)})}},onInput:function(t){if("mix"==this.settings.mode)return this.events.callbacks.onMixTagsInput.call(this,t);var e=this.input.normalize.call(this),n=e.length>=this.settings.dropdown.enabled,t={value:e,inputElm:this.DOM.input};t.isValid=this.validateTag({value:e}),this.trigger("input",t),this.state.inputText!=e&&(this.input.set.call(this,e,!1),-1!=e.search(this.settings.delimiters)?this.addTags(e)&&this.input.set.call(this):0<=this.settings.dropdown.enabled&&this.dropdown[n?"show":"hide"].call(this,e))},onMixTagsInput:function(t){var e,n,i,o,r=this,s=this.settings,a=this.value.length,l=this.getTagElms(),u=document.createDocumentFragment(),c=window.getSelection().getRangeAt(0),d=[].map.call(l,function(t){return r.tagData(t).value});if("deleteContentBackward"==t.inputType&&m&&this.events.callbacks.onKeydown.call(this,{target:t.target,key:"Backspace"}),this.value.slice().forEach(function(t){t.readonly&&!d.includes(t.value)&&u.appendChild(r.createTagElem(t))}),u.childNodes.length&&(c.insertNode(u),this.setRangeAtStartEnd(!1,u.lastChild)),l.length!=a)return this.value=[].map.call(this.getTagElms(),function(t){return r.tagData(t)}),void this.update({withoutChangeEvent:!0});if(this.hasMaxTags())return!0;if(window.getSelection&&0<(o=window.getSelection()).rangeCount&&3==o.anchorNode.nodeType){if((c=o.getRangeAt(0).cloneRange()).collapse(!0),c.setStart(o.focusNode,0),a=(l=c.toString().slice(0,c.endOffset)).split(s.pattern).length-1,(c=l.match(s.pattern))&&(e=l.slice(l.lastIndexOf(c[c.length-1]))),e){if(this.state.actions.ArrowLeft=!1,this.state.tag={prefix:e.match(s.pattern)[0],value:e.replace(s.pattern,"")},this.state.tag.baseOffset=o.baseOffset-this.state.tag.value.length,o=this.state.tag.value.match(s.delimiters))return this.state.tag.value=this.state.tag.value.replace(s.delimiters,""),this.state.tag.delimiters=o[0],this.addTags(this.state.tag.value,s.dropdown.clearOnSelect),void this.dropdown.hide.call(this);n=this.state.tag.value.length>=s.dropdown.enabled;try{i=(i=this.state.flaggedTags[this.state.tag.baseOffset]).prefix==this.state.tag.prefix&&i.value[0]==this.state.tag.value[0],this.state.flaggedTags[this.state.tag.baseOffset]&&!this.state.tag.value&&delete this.state.flaggedTags[this.state.tag.baseOffset]}catch(t){}(i||a<this.state.mixMode.matchedPatternCount)&&(n=!1)}else this.state.flaggedTags={};this.state.mixMode.matchedPatternCount=a}setTimeout(function(){r.update({withoutChangeEvent:!0}),r.trigger("input",h({},r.state.tag,{textContent:r.DOM.input.textContent})),r.state.tag&&r.dropdown[n?"show":"hide"].call(r,r.state.tag.value)},10)},onInputIE:function(t){var e=this;setTimeout(function(){e.events.callbacks.onInput.call(e,t)})},onClickScope:function(t){var e=this.settings,n=t.target.closest("."+e.classNames.tag),i=+new Date-this.state.hasFocus;if(t.target!=this.DOM.scope){if(!t.target.classList.contains(e.classNames.tagX))return n?(this.trigger("click",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n),originalEvent:this.cloneEvent(t)}),void(1!==e.editTags&&1!==e.editTags.clicks||this.events.callbacks.onDoubleClickScope.call(this,t))):void(t.target==this.DOM.input&&("mix"==e.mode&&this.fixFirefoxLastTagNoCaret(),500<i)?this.state.dropdown.visible?this.dropdown.hide.call(this):0===e.dropdown.enabled&&"mix"!=e.mode&&this.dropdown.show.call(this):"select"!=e.mode||this.state.dropdown.visible||this.dropdown.show.call(this));this.removeTags(t.target.parentNode)}else this.state.hasFocus||this.DOM.input.focus()},onPaste:function(t){t.preventDefault(),this.settings.readonly||(t=(t.clipboardData||window.clipboardData).getData("Text"),this.injectAtCaret(t,window.getSelection().getRangeAt(0)),"mix"!=this.settings.mode&&this.addTags(this.DOM.input.textContent,!0))},onEditTagInput:function(t,e){var n=t.closest("."+this.settings.classNames.tag),i=this.getNodeIndex(n),o=this.tagData(n),r=this.input.normalize.call(this,t),s=n.innerHTML!=n.__tagifyTagData.__originalHTML,a=this.validateTag(c({},this.settings.tagTextProp,r));s||!0!==t.originalIsValid||(a=!0),n.classList.toggle(this.settings.classNames.tagInvalid,!0!==a),o.__isValid=a,n.title=!0===a?o.title||o.value:a,r.length>=this.settings.dropdown.enabled&&(this.state.editing&&(this.state.editing.value=r),this.dropdown.show.call(this,r)),this.trigger("edit:input",{tag:n,index:i,data:h({},this.value[i],{newValue:r}),originalEvent:this.cloneEvent(e)})},onEditTagFocus:function(t){this.state.editing={scope:t,input:t.querySelector("[contenteditable]")}},onEditTagBlur:function(t){if(this.state.hasFocus||this.toggleFocusClass(),this.DOM.scope.contains(t)){var e,n=this.settings,i=t.closest("."+n.classNames.tag),o=this.input.normalize.call(this,t),r=this.tagData(i).__originalData,s=i.innerHTML!=i.__tagifyTagData.__originalHTML,t=this.validateTag(c({},n.tagTextProp,o));if(o)if(s){if(e=this.getWhitelistItem(o)||(c(e={},n.tagTextProp,o),c(e,"value",o),e),n.transformTag.call(this,e,r),!0!==(t=this.validateTag(c({},n.tagTextProp,e[n.tagTextProp])))){if(this.trigger("invalid",{data:e,tag:i,message:t}),n.editTags.keepInvalid)return;n.keepInvalidTags?e.__isValid=t:e=r}this.onEditTagDone(i,e)}else this.onEditTagDone(i,r);else this.onEditTagDone(i)}},onEditTagkeydown:function(t,e){switch(this.trigger("edit:keydown",{originalEvent:this.cloneEvent(t)}),t.key){case"Esc":case"Escape":e.innerHTML=e.__tagifyTagData.__originalHTML;case"Enter":case"Tab":t.preventDefault(),t.target.blur()}},onDoubleClickScope:function(t){var e,n=t.target.closest("."+this.settings.classNames.tag),i=this.settings;n&&(e=n.classList.contains(this.settings.classNames.tagEditing),t=n.hasAttribute("readonly"),"select"==i.mode||i.readonly||e||t||!this.settings.editTags||this.editTag(n),this.toggleFocusClass(!0),this.trigger("dblclick",{tag:n,index:this.getNodeIndex(n),data:this.tagData(n)}))}}},fixFirefoxLastTagNoCaret:function(){},placeCaretAfterNode:function(t){var e,n,i;t&&(e=t.nextSibling,i=(n=window.getSelection()).getRangeAt(0),n.rangeCount&&(i.setStartBefore(e||t),i.setEndBefore(e||t),n.removeAllRanges(),n.addRange(i)))},insertAfterTag:function(t,e){if(e=e||this.settings.mixMode.insertAfterTag,t&&e)return e="string"==typeof e?document.createTextNode(e):e,t.parentNode.insertBefore(e,t.nextSibling),e},editTag:function(e,t){var n=this;e=e||this.getLastTag(),t=t||{},this.dropdown.hide.call(this);var i=this.settings;function o(){return e.querySelector("."+i.classNames.tagText)}var r=o(),s=this.getNodeIndex(e),a=this.tagData(e),l=this.events.callbacks,u=this,c=!0;if(r){if(!(a instanceof Object&&"editable"in a)||a.editable)return r.setAttribute("contenteditable",!0),e.classList.add(i.classNames.tagEditing),this.tagData(e,{__originalData:h({},a),__originalHTML:e.innerHTML}),r.addEventListener("focus",l.onEditTagFocus.bind(this,e)),r.addEventListener("blur",function(){setTimeout(function(){return l.onEditTagBlur.call(u,o())})}),r.addEventListener("input",l.onEditTagInput.bind(this,r)),r.addEventListener("keydown",function(t){return l.onEditTagkeydown.call(n,t,e)}),r.focus(),this.setRangeAtStartEnd(!1,r),t.skipValidation||(c=this.editTagToggleValidity(e,a.value)),r.originalIsValid=c,this.trigger("edit:start",{tag:e,index:s,data:a,isValid:c}),this}else console.warn("Cannot find element in Tag template: .",i.classNames.tagText)},editTagToggleValidity:function(t,e){var n,i=this.tagData(t);if(i)return n=!(!i.__isValid||1==i.__isValid),t.classList.toggle(this.settings.classNames.tagInvalid,n),i.__isValid;console.warn("tag has no data: ",t,i)},onEditTagDone:function(t,e){e=e||{};var n={tag:t=t||this.state.editing.scope,index:this.getNodeIndex(t),previousData:this.tagData(t),data:e};this.trigger("edit:beforeUpdate",n),this.state.editing=!1,delete e.__originalData,delete e.__originalHTML,t&&e[this.settings.tagTextProp]?(this.editTagToggleValidity(t),this.replaceTag(t,e)):t&&this.removeTags(t),this.trigger("edit:updated",n),this.dropdown.hide.call(this),this.settings.keepInvalidTags&&this.reCheckInvalidTags()},replaceTag:function(t,e){e&&e.value||(e=t.__tagifyTagData),e.__isValid&&1!=e.__isValid&&h(e,this.getInvalidTagAttrs(e,e.__isValid));e=this.createTagElem(e);t.parentNode.replaceChild(e,t),this.updateValueByDOMTags()},updateValueByDOMTags:function(){var e=this;this.value.length=0,[].forEach.call(this.getTagElms(),function(t){t.classList.contains(e.settings.classNames.tagNotAllowed)||e.value.push(e.tagData(t))}),this.update()},setRangeAtStartEnd:function(e,n){e="number"==typeof e?e:!!e,n=(n=n||this.DOM.input).lastChild||n;var i=document.getSelection();try{1<=i.rangeCount&&["Start","End"].forEach(function(t){return i.getRangeAt(0)["set"+t](n,e||n.length)})}catch(e){console.warn("Tagify: ",e)}},injectAtCaret:function(t,e){if(e=e||this.state.selection.range)return"string"==typeof t&&(t=document.createTextNode(t)),e.deleteContents(),e.insertNode(t),this.setRangeAtStartEnd(!1,t),this.updateValueByDOMTags(),this.update(),this},input:{set:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"",e=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],n=this.settings.dropdown.closeOnSelect;this.state.inputText=t,e&&(this.DOM.input.innerHTML=t),!t&&n&&this.dropdown.hide.bind(this),this.input.autocomplete.suggest.call(this),this.input.validate.call(this)},validate:function(){var t=!this.state.inputText||!0===this.validateTag({value:this.state.inputText});return this.DOM.input.classList.toggle(this.settings.classNames.inputInvalid,!t),t},normalize:function(t){var e=t||this.DOM.input,n=[];e.childNodes.forEach(function(t){return 3==t.nodeType&&n.push(t.nodeValue)}),n=n.join("\n");try{n=n.replace(/(?:\r\n|\r|\n)/g,this.settings.delimiters.source.charAt(0))}catch(t){}return n=n.replace(/\s/g," "),this.settings.trim&&(n=n.replace(/^\s+/,"")),n},autocomplete:{suggest:function(t){var e,n,i;this.settings.autoComplete.enabled&&("string"==typeof(t=t||{})&&(t={value:t}),n=(e=t.value?""+t.value:"").substr(0,this.state.inputText.length).toLowerCase(),i=e.substring(this.state.inputText.length),e&&this.state.inputText&&n==this.state.inputText.toLowerCase()?(this.DOM.input.setAttribute("data-suggest",i),this.state.inputSuggestion=t):(this.DOM.input.removeAttribute("data-suggest"),delete this.state.inputSuggestion))},set:function(t){var e=this.DOM.input.getAttribute("data-suggest"),e=t||(e?this.state.inputText+e:null);return!!e&&("mix"==this.settings.mode?this.replaceTextWithNode(document.createTextNode(this.state.tag.prefix+e)):(this.input.set.call(this,e),this.setRangeAtStartEnd()),this.input.autocomplete.suggest.call(this),this.dropdown.hide.call(this),!0)}}},getTagIdx:function(e){return this.value.findIndex(function(t){return t.value==e.value})},getNodeIndex:function(t){var e=0;if(t)for(;t=t.previousElementSibling;)e++;return e},getTagElms:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=["."+this.settings.classNames.tag].concat(e).join(".");return[].slice.call(this.DOM.scope.querySelectorAll(i))},getLastTag:function(){var t=this.DOM.scope.querySelectorAll(".".concat(this.settings.classNames.tag,":not(.").concat(this.settings.classNames.tagHide,"):not([readonly])"));return t[t.length-1]},tagData:function(t,e,n){return t?(e&&(t.__tagifyTagData=n?e:h({},t.__tagifyTagData||{},e)),t.__tagifyTagData):(console.warn("tag elment doesn't exist",t,e),e)},isTagDuplicate:function(n,i){var o=this,r=this.settings;return"select"!=r.mode&&this.value.reduce(function(t,e){return l(o.trim(""+n),e.value,i||r.dropdown.caseSensitive)?t+1:t},0)},getTagIndexByValue:function(n){var i=this,o=[];return this.getTagElms().forEach(function(t,e){l(i.trim(t.textContent),n,i.settings.dropdown.caseSensitive)&&o.push(e)}),o},getTagElmByValue:function(t){t=this.getTagIndexByValue(t)[0];return this.getTagElms()[t]},flashTag:function(t){var e=this;t&&(t.classList.add(this.settings.classNames.tagFlash),setTimeout(function(){t.classList.remove(e.settings.classNames.tagFlash)},100))},isTagBlacklisted:function(e){return e=this.trim(e.toLowerCase()),this.settings.blacklist.filter(function(t){return(""+t).toLowerCase()==e}).length},isTagWhitelisted:function(t){return!!this.getWhitelistItem(t)},getWhitelistItem:function(n,i,t){i=i||"value";var o,r=this.settings;return(t=t||r.whitelist).some(function(t){var e="string"==typeof t?t:t[i]||t.value;if(l(e,n,r.dropdown.caseSensitive,r.trim))return o="string"==typeof t?{value:t}:t,!0}),o||"value"!=i||"value"==r.tagTextProp||(o=this.getWhitelistItem(n,r.tagTextProp,t)),o},validateTag:function(t){var e=this.settings,n="value"in t?"value":e.tagTextProp,i=this.trim(t[n]+"");return(t[n]+"").trim()?e.pattern&&e.pattern instanceof RegExp&&!e.pattern.test(i)?this.TEXTS.pattern:!e.duplicates&&this.isTagDuplicate(i,this.state.editing)?this.TEXTS.duplicate:this.isTagBlacklisted(i)||e.enforceWhitelist&&!this.isTagWhitelisted(i)?this.TEXTS.notAllowed:!e.validate||e.validate(t):this.TEXTS.empty},getInvalidTagAttrs:function(t,e){return{"aria-invalid":!0,class:"".concat(t.class||""," ").concat(this.settings.classNames.tagNotAllowed).trim(),title:e}},hasMaxTags:function(){return this.value.length>=this.settings.maxTags&&this.TEXTS.exceed},setReadonly:function(t){var e=this.settings;document.activeElement.blur(),e.readonly=t,this.DOM.scope[(t?"set":"remove")+"Attribute"]("readonly",!0),"mix"==e.mode&&(this.DOM.input.contentEditable=!t)},normalizeTags:function(t){function e(t){return(t+"").split(r).filter(function(t){return t}).map(function(t){return c({},a,i.trim(t))})}var i=this,n=this.settings,o=n.whitelist,r=n.delimiters,s=n.mode,a=n.tagTextProp,l=n.enforceWhitelist,u=[],n=!!o&&o[0]instanceof Object,o=t instanceof Array;if("number"==typeof t&&(t=t.toString()),"string"==typeof t){if(!t.trim())return[];t=e(t)}else o&&(t=(o=[]).concat.apply(o,function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(o=t.map(function(t){return t.value?t:e(t)}))||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()));return n&&(t.forEach(function(t){var e=u.map(function(t){return t.value}),n=i.dropdown.filterListItems.call(i,t[a],{exact:!0}).filter(function(t){return!e.includes(t.value)}),n=1<n.length?i.getWhitelistItem(t[a],a,n):n[0];n&&n instanceof Object?u.push(n):"mix"==s||l||(null==t.value&&(t.value=t[a]),u.push(t))}),t=u),t},parseMixTags:function(t){var s=this,e=this.settings,a=e.mixTagsInterpolator,l=e.duplicates,u=e.transformTag,c=e.enforceWhitelist,d=e.maxTags,f=e.tagTextProp,h=[];return t=t.split(a[0]).map(function(t,e){var n,i=t.split(a[1]),o=i[0],r=h.length==d;try{if(o==+o)throw Error;n=JSON.parse(o)}catch(t){n=s.normalizeTags(o)[0]||{value:o}}if(r||!(1<i.length)||c&&!s.isTagWhitelisted(n.value)||!l&&s.isTagDuplicate(n.value)){if(t)return e?a[0]+t:t}else u.call(s,n),n[e=n[f]?f:"value"]=s.trim(n[e]),e=s.createTagElem(n),h.push(n),e.classList.add(s.settings.classNames.tagNoAnimation),i[0]=e.outerHTML,s.value.push(n);return i.join("")}).join(""),this.DOM.input.innerHTML=t,this.DOM.input.appendChild(document.createTextNode("")),this.DOM.input.normalize(),this.getTagElms().forEach(function(t,e){return s.tagData(t,h[e])}),this.update({withoutChangeEvent:!0}),t},replaceTextWithNode:function(t,e){if(this.state.tag||e){e=e||this.state.tag.prefix+this.state.tag.value;var n=window.getSelection(),i=n.anchorNode,o=this.state.tag.delimiters?this.state.tag.delimiters.length:0;return i.splitText(n.anchorOffset-o),e=i.nodeValue.lastIndexOf(e),e=i.splitText(e),t&&i.parentNode.replaceChild(t,e),!0}},selectTag:function(t,e){if(!this.settings.enforceWhitelist||this.isTagWhitelisted(e.value))return this.input.set.call(this,e.value,!0),this.state.actions.selectOption&&setTimeout(this.setRangeAtStartEnd.bind(this)),this.getLastTag()?this.replaceTag(this.getLastTag(),e):this.appendTag(t),this.value[0]=e,this.trigger("add",{tag:t,data:e}),this.update(),[t]},addEmptyTag:function(t){var e=h({value:""},t||{}),t=this.createTagElem(e);this.tagData(t,e),this.appendTag(t),this.editTag(t,{skipValidation:!0})},addTags:function(t,e){var o=this,r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this.settings.skipInvalid,s=[],a=this.settings;return t&&0!=t.length?(t=this.normalizeTags(t),"mix"==a.mode?this.addMixTags(t):("select"==a.mode&&(e=!1),this.DOM.input.removeAttribute("style"),t.forEach(function(t){var e,n={},i=Object.assign({},t,{value:t.value+""});if((t=Object.assign({},i)).__isValid=o.hasMaxTags()||o.validateTag(t),a.transformTag.call(o,t),!0!==t.__isValid){if(r)return;h(n,o.getInvalidTagAttrs(t,t.__isValid),{__preInvalidData:i}),t.__isValid==o.TEXTS.duplicate&&o.flashTag(o.getTagElmByValue(t.value))}if(t.readonly&&(n["aria-readonly"]=!0),e=o.createTagElem(h({},t,n)),s.push(e),"select"==a.mode)return o.selectTag(e,t);o.appendTag(e),t.__isValid&&!0===t.__isValid?(o.value.push(t),o.update(),o.trigger("add",{tag:e,index:o.value.length-1,data:t})):(o.trigger("invalid",{data:t,index:o.value.length,tag:e,message:t.__isValid}),a.keepInvalidTags||setTimeout(function(){return o.removeTags(e,!0)},1e3)),o.dropdown.position.call(o)}),t.length&&e&&this.input.set.call(this),this.dropdown.refilter.call(this),s)):("select"==a.mode&&this.removeAllTags(),s)},addMixTags:function(t){var e,n,i=this;t[0].prefix||this.state.tag?this.prefixedTextToTag(t[0]):("string"==typeof t&&(t=[{value:t}]),e=!!this.state.selection,n=document.createDocumentFragment(),t.forEach(function(t){t=i.createTagElem(t);n.appendChild(t),i.insertAfterTag(t)}),e?this.injectAtCaret(n):(this.DOM.input.focus(),(e=this.setStateSelection()).range.setStart(this.DOM.input,e.range.endOffset),e.range.setEnd(this.DOM.input,e.range.endOffset),this.DOM.input.appendChild(n),this.updateValueByDOMTags(),this.update()))},prefixedTextToTag:function(t){var e,n=this,i=this.settings,o=this.state.tag.delimiters;return i.transformTag.call(this,t),t.prefix=t.prefix||this.state.tag?this.state.tag.prefix:(i.pattern.source||i.pattern)[0],e=this.createTagElem(t),this.replaceTextWithNode(e)||this.DOM.input.appendChild(e),setTimeout(function(){return e.classList.add(n.settings.classNames.tagNoAnimation)},300),this.value.push(t),this.update(),o||setTimeout(function(){var t=n.insertAfterTag(e)||e;n.placeCaretAfterNode(t)},this.isFirefox?100:0),this.state.tag=null,this.trigger("add",h({},{tag:e},{data:t})),e},appendTag:function(t){var e=this.DOM.scope.lastElementChild;e===this.DOM.input?this.DOM.scope.insertBefore(t,e):this.DOM.scope.appendChild(t)},createTagElem:function(t){var e=h({},t,{value:o(t.value+"")});return function(t){for(var e,n=document.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);e=n.nextNode();)e.textContent.trim()||e.parentNode.removeChild(e)}(e=this.parseTemplate("tag",[e])),this.tagData(e,t),e},reCheckInvalidTags:function(){var o=this,t=this.settings,t=".".concat(t.classNames.tag,".").concat(t.classNames.tagNotAllowed),t=this.DOM.scope.querySelectorAll(t);[].forEach.call(t,function(t){var e=o.tagData(t),n=t.getAttribute("title")==o.TEXTS.duplicate,i=!0===o.validateTag(e);n&&i&&(e=e.__preInvalidData||{value:e.value},o.replaceTag(t,e))})},removeTags:function(t,n,i){var o,r=this;t=t&&t instanceof HTMLElement?[t]:t instanceof Array?t:t?[t]:[this.getLastTag()],o=t.reduce(function(t,e){return e&&"string"==typeof e&&(e=r.getTagElmByValue(e)),e&&t.push({node:e,idx:r.getTagIdx(r.tagData(e)),data:r.tagData(e,{__removed:!0})}),t},[]),i="number"==typeof i?i:this.CSSVars.tagHideTransition,"select"==this.settings.mode&&(i=0,this.input.set.call(this)),1==o.length&&o[0].node.classList.contains(this.settings.classNames.tagNotAllowed)&&(n=!0),o.length&&this.settings.hooks.beforeRemoveTag(o,{tagify:this}).then(function(){function e(t){t.node.parentNode&&(t.node.parentNode.removeChild(t.node),n?this.settings.keepInvalidTags&&this.trigger("remove",{tag:t.node,index:t.idx}):(this.trigger("remove",{tag:t.node,index:t.idx,data:t.data}),this.dropdown.refilter.call(this),this.dropdown.position.call(this),this.DOM.input.normalize(),this.settings.keepInvalidTags&&this.reCheckInvalidTags()))}i&&10<i&&1==o.length?function(t){t.node.style.width=parseFloat(window.getComputedStyle(t.node).width)+"px",document.body.clientTop,t.node.classList.add(this.settings.classNames.tagHide),setTimeout(e.bind(this),i,t)}.call(r,o[0]):o.forEach(e.bind(r)),n||(o.forEach(function(t){t=Object.assign({},t.data);delete t.__removed;t=r.getTagIdx(t);-1<t&&r.value.splice(t,1)}),r.update())}).catch(function(t){})},removeAllTags:function(){this.value=[],"mix"==this.settings.mode?this.DOM.input.innerHTML="":Array.prototype.slice.call(this.getTagElms()).forEach(function(t){return t.parentNode.removeChild(t)}),this.dropdown.position.call(this),"select"==this.settings.mode&&this.input.set.call(this),this.update()},postUpdate:function(){var t=this.settings.classNames,e="mix"==this.settings.mode?this.settings.mixMode.integrated?this.DOM.input.textContent:this.DOM.originalInput.value:this.value.length;this.toggleClass(t.hasMaxTags,this.value.length>=this.settings.maxTags),this.toggleClass(t.hasNoTags,!this.value.length),this.toggleClass(t.empty,!e)},update:function(t){var i,e=this.DOM.originalInput,n=(t||{}).withoutChangeEvent,t=(t=this.value,i=["__isValid","__removed"],t.map(function(t){var e,n={};for(e in t)i.indexOf(e)<0&&(n[e]=t[e]);return n}));this.settings.mixMode.integrated||(e.value="mix"==this.settings.mode?this.getMixedTagsAsString(t):t.length?this.settings.originalInputValueFormat?this.settings.originalInputValueFormat(t):JSON.stringify(t):""),this.postUpdate(),!n&&this.state.loadedOriginalValues&&this.triggerChangeEvent()},getMixedTagsAsString:function(){var n="",i=this,o=this.settings.mixTagsInterpolator;return function e(t){t.childNodes.forEach(function(t){if(1==t.nodeType){if(t.classList.contains(i.settings.classNames.tag)&&i.tagData(t))return i.tagData(t).__removed?void 0:void(n+=o[0]+JSON.stringify(t.__tagifyTagData)+o[1]);"BR"!=t.tagName||t.parentNode!=i.DOM.input&&1!=t.parentNode.childNodes.length?"DIV"!=t.tagName&&"P"!=t.tagName||(n+="\r\n",e(t)):n+="\r\n"}else n+=t.textContent})}(this.DOM.input),n}}).removeTag=t.prototype.removeTags,t}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):t.Util=e(t.jQuery)}(this,function(t){"use strict";var i,e,a;function n(t){var e=this,n=!1;return i(this).one(a.TRANSITION_END,function(){n=!0}),setTimeout(function(){n||a.triggerTransitionEnd(e)},t),this}return t=t&&t.hasOwnProperty("default")?t.default:t,e="transitionend",a={TRANSITION_END:"bsTransitionEnd",getUID:function(t){for(;t+=~~(1e6*Math.random()),document.getElementById(t););return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");e&&"#"!==e||(e=t.getAttribute("href")||"");try{return document.querySelector(e)?e:null}catch(t){return null}},getTransitionDurationFromElement:function(t){if(!t)return 0;t=i(t).css("transition-duration");return parseFloat(t)?(t=t.split(",")[0],1e3*parseFloat(t)):0},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){i(t).trigger(e)},supportsTransitionEnd:function(){return Boolean(e)},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var o=n[i],r=e[i],s=r&&a.isElement(r)?"element":(s=r,{}.toString.call(s).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(o).test(s))throw new Error(t.toUpperCase()+': Option "'+i+'" provided type "'+s+'" but expected type "'+o+'".')}var s}},(i=t).fn.emulateTransitionEnd=n,i.event.special[a.TRANSITION_END]={bindType:e,delegateType:e,handle:function(t){if(i(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}},a}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define(["jquery"],e):t.Button=e(t.jQuery)}(this,function(t){"use strict";function g(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(r){var t="button",o="bs.button",e="."+o,n=".data-api",i=r.fn[t],s="active",a="btn",l="focus",u='[data-toggle^="button"]',c='[data-toggle="buttons"]',d="input",f=".active",h=".btn",n={CLICK_DATA_API:"click"+e+n,FOCUS_BLUR_DATA_API:"focus"+e+n+" blur"+e+n},p=function(){function n(t){this._element=t}var t,e,i=n.prototype;return i.toggle=function(){var t=!0,e=!0,n=r(this._element).closest(c)[0];if(n){var i,o=this._element.querySelector(d);if(o){if("radio"===o.type&&(o.checked&&this._element.classList.contains(s)?t=!1:(i=n.querySelector(f))&&r(i).removeClass(s)),t){if(o.hasAttribute("disabled")||n.hasAttribute("disabled")||o.classList.contains("disabled")||n.classList.contains("disabled"))return;o.checked=!this._element.classList.contains(s),r(o).trigger("change")}o.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(s)),t&&r(this._element).toggleClass(s)},i.dispose=function(){r.removeData(this._element,o),this._element=null},n._jQueryInterface=function(e){return this.each(function(){var t=r(this).data(o);t||(t=new n(this),r(this).data(o,t)),"toggle"===e&&t[e]()})},t=n,e=[{key:"VERSION",get:function(){return"4.1.3"}}],(i=null)&&g(t.prototype,i),e&&g(t,e),n}();return r(document).on(n.CLICK_DATA_API,u,function(t){t.preventDefault();t=t.target;r(t).hasClass(a)||(t=r(t).closest(h)),p._jQueryInterface.call(r(t),"toggle")}).on(n.FOCUS_BLUR_DATA_API,u,function(t){var e=r(t.target).closest(h)[0];r(e).toggleClass(l,/^focus(in)?$/.test(t.type))}),r.fn[t]=p._jQueryInterface,r.fn[t].Constructor=p,r.fn[t].noConflict=function(){return r.fn[t]=i,p._jQueryInterface},p}(t=t&&t.hasOwnProperty("default")?t.default:t)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],e):t.Collapse=e(t.jQuery,t.Util)}(this,function(t,y){"use strict";function b(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function w(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n;e=i,t=o[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t})}return i}return t=t&&t.hasOwnProperty("default")?t.default:t,y=y&&y.hasOwnProperty("default")?y.default:y,function(l){var i="collapse",s="bs.collapse",t="."+s,e=l.fn[i],o={toggle:!0,parent:""},a={toggle:"boolean",parent:"(string|element)"},u={SHOW:"show"+t,SHOWN:"shown"+t,HIDE:"hide"+t,HIDDEN:"hidden"+t,CLICK_DATA_API:"click"+t+".data-api"},c="show",d="collapse",f="collapsing",h="collapsed",p="width",g="height",m=".show, .collapsing",v='[data-toggle="collapse"]',r=function(){function r(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=l.makeArray(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(v)),i=0,o=n.length;i<o;i++){var r=n[i],s=y.getSelectorFromElement(r),a=[].slice.call(document.querySelectorAll(s)).filter(function(t){return t===e});null!==s&&0<a.length&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t,e,n=r.prototype;return n.toggle=function(){l(this._element).hasClass(c)?this.hide():this.show()},n.show=function(){var t,e,n,i,o=this;this._isTransitioning||l(this._element).hasClass(c)||(this._parent&&0===(i=[].slice.call(this._parent.querySelectorAll(m)).filter(function(t){return t.getAttribute("data-parent")===o._config.parent})).length&&(i=null),i&&(n=l(i).not(this._selector).data(s))&&n._isTransitioning||(t=l.Event(u.SHOW),l(this._element).trigger(t),t.isDefaultPrevented()||(i&&(r._jQueryInterface.call(l(i).not(this._selector),"hide"),n||l(i).data(s,null)),e=this._getDimension(),l(this._element).removeClass(d).addClass(f),this._element.style[e]=0,this._triggerArray.length&&l(this._triggerArray).removeClass(h).attr("aria-expanded",!0),this.setTransitioning(!0),n="scroll"+(e[0].toUpperCase()+e.slice(1)),i=y.getTransitionDurationFromElement(this._element),l(this._element).one(y.TRANSITION_END,function(){l(o._element).removeClass(f).addClass(d).addClass(c),o._element.style[e]="",o.setTransitioning(!1),l(o._element).trigger(u.SHOWN)}).emulateTransitionEnd(i),this._element.style[e]=this._element[n]+"px")))},n.hide=function(){var t=this;if(!this._isTransitioning&&l(this._element).hasClass(c)){var e=l.Event(u.HIDE);if(l(this._element).trigger(e),!e.isDefaultPrevented()){e=this._getDimension();this._element.style[e]=this._element.getBoundingClientRect()[e]+"px",y.reflow(this._element),l(this._element).addClass(f).removeClass(d).removeClass(c);var n=this._triggerArray.length;if(0<n)for(var i=0;i<n;i++){var o=this._triggerArray[i],r=y.getSelectorFromElement(o);null!==r&&(l([].slice.call(document.querySelectorAll(r))).hasClass(c)||l(o).addClass(h).attr("aria-expanded",!1))}this.setTransitioning(!0);this._element.style[e]="";e=y.getTransitionDurationFromElement(this._element);l(this._element).one(y.TRANSITION_END,function(){t.setTransitioning(!1),l(t._element).removeClass(f).addClass(d).trigger(u.HIDDEN)}).emulateTransitionEnd(e)}}},n.setTransitioning=function(t){this._isTransitioning=t},n.dispose=function(){l.removeData(this._element,s),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(t){return(t=w({},o,t)).toggle=Boolean(t.toggle),y.typeCheckConfig(i,t,a),t},n._getDimension=function(){return l(this._element).hasClass(p)?p:g},n._getParent=function(){var n=this,t=null;y.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var e='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',e=[].slice.call(t.querySelectorAll(e));return l(e).each(function(t,e){n._addAriaAndCollapsedClass(r._getTargetFromElement(e),[e])}),t},n._addAriaAndCollapsedClass=function(t,e){t&&(t=l(t).hasClass(c),e.length&&l(e).toggleClass(h,!t).attr("aria-expanded",t))},r._getTargetFromElement=function(t){t=y.getSelectorFromElement(t);return t?document.querySelector(t):null},r._jQueryInterface=function(i){return this.each(function(){var t=l(this),e=t.data(s),n=w({},o,t.data(),"object"==typeof i&&i?i:{});if(!e&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),e||(e=new r(this,n),t.data(s,e)),"string"==typeof i){if(void 0===e[i])throw new TypeError('No method named "'+i+'"');e[i]()}})},t=r,e=[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return o}}],(n=null)&&b(t.prototype,n),e&&b(t,e),r}();return l(document).on(u.CLICK_DATA_API,v,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var n=l(this),t=y.getSelectorFromElement(this),t=[].slice.call(document.querySelectorAll(t));l(t).each(function(){var t=l(this),e=t.data(s)?"toggle":n.data();r._jQueryInterface.call(t,e)})}),l.fn[i]=r._jQueryInterface,l.fn[i].Constructor=r,l.fn[i].noConflict=function(){return l.fn[i]=e,r._jQueryInterface},r}(t)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],e):t.Dropdown=e(t.jQuery,t.Popper,t.Util)}(this,function(t,A,k){"use strict";function N(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function I(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n;e=i,t=o[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t})}return i}return t=t&&t.hasOwnProperty("default")?t.default:t,A=A&&A.hasOwnProperty("default")?A.default:A,k=k&&k.hasOwnProperty("default")?k.default:k,function(u){var i="dropdown",c="bs.dropdown",o="."+c,t=".data-api",e=u.fn[i],r=new RegExp("38|40|27"),d={HIDE:"hide"+o,HIDDEN:"hidden"+o,SHOW:"show"+o,SHOWN:"shown"+o,CLICK:"click"+o,CLICK_DATA_API:"click"+o+t,KEYDOWN_DATA_API:"keydown"+o+t,KEYUP_DATA_API:"keyup"+o+t},s="disabled",f="show",a="dropup",h="dropright",p="dropleft",g="dropdown-menu-right",m="position-static",v='[data-toggle="dropdown"]',t=".dropdown form",y=".dropdown-menu",b=".navbar-nav",w=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",T="top-start",x="top-end",_="bottom-start",E="bottom-end",C="right-start",S="left-start",D={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic"},O={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string"},n=function(){function l(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var t,e,n=l.prototype;return n.toggle=function(){if(!this._element.disabled&&!u(this._element).hasClass(s)){var t=l._getParentFromElement(this._element),e=u(this._menu).hasClass(f);if(l._clearMenus(),!e){var n={relatedTarget:this._element},e=u.Event(d.SHOW,n);if(u(t).trigger(e),!e.isDefaultPrevented()){if(!this._inNavbar){if(void 0===A)throw new TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");e=this._element;"parent"===this._config.reference?e=t:k.isElement(this._config.reference)&&(e=this._config.reference,void 0!==this._config.reference.jquery&&(e=this._config.reference[0])),"scrollParent"!==this._config.boundary&&u(t).addClass(m),this._popper=new A(e,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===u(t).closest(b).length&&u(document.body).children().on("mouseover",null,u.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),u(this._menu).toggleClass(f),u(t).toggleClass(f).trigger(u.Event(d.SHOWN,n))}}}},n.dispose=function(){u.removeData(this._element,c),u(this._element).off(o),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;u(this._element).on(d.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(t){return t=I({},this.constructor.Default,u(this._element).data(),t),k.typeCheckConfig(i,t,this.constructor.DefaultType),t},n._getMenuElement=function(){var t;return this._menu||(t=l._getParentFromElement(this._element))&&(this._menu=t.querySelector(y)),this._menu},n._getPlacement=function(){var t=u(this._element.parentNode),e=_;return t.hasClass(a)?(e=T,u(this._menu).hasClass(g)&&(e=x)):t.hasClass(h)?e=C:t.hasClass(p)?e=S:u(this._menu).hasClass(g)&&(e=E),e},n._detectNavbar=function(){return 0<u(this._element).closest(".navbar").length},n._getPopperConfig=function(){var e=this,t={};"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=I({},t.offsets,e._config.offset(t.offsets)||{}),t}:t.offset=this._config.offset;t={placement:this._getPlacement(),modifiers:{offset:t,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),t},l._jQueryInterface=function(e){return this.each(function(){var t=u(this).data(c);if(t||(t=new l(this,"object"==typeof e?e:null),u(this).data(c,t)),"string"==typeof e){if(void 0===t[e])throw new TypeError('No method named "'+e+'"');t[e]()}})},l._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var e=[].slice.call(document.querySelectorAll(v)),n=0,i=e.length;n<i;n++){var o,r=l._getParentFromElement(e[n]),s=u(e[n]).data(c),a={relatedTarget:e[n]};t&&"click"===t.type&&(a.clickEvent=t),s&&(o=s._menu,u(r).hasClass(f)&&(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&u.contains(r,t.target)||(s=u.Event(d.HIDE,a),u(r).trigger(s),s.isDefaultPrevented()||("ontouchstart"in document.documentElement&&u(document.body).children().off("mouseover",null,u.noop),e[n].setAttribute("aria-expanded","false"),u(o).removeClass(f),u(r).removeClass(f).trigger(u.Event(d.HIDDEN,a))))))}},l._getParentFromElement=function(t){var e,n=k.getSelectorFromElement(t);return n&&(e=document.querySelector(n)),e||t.parentNode},l._dataApiKeydownHandler=function(t){if((/input|textarea/i.test(t.target.tagName)?!(32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||u(t.target).closest(y).length)):r.test(t.which))&&(t.preventDefault(),t.stopPropagation(),!this.disabled&&!u(this).hasClass(s))){var e=l._getParentFromElement(this),n=u(e).hasClass(f);if(!n&&(27!==t.which||32!==t.which)||n&&(27===t.which||32===t.which))return 27===t.which&&(i=e.querySelector(v),u(i).trigger("focus")),void u(this).trigger("click");var i=[].slice.call(e.querySelectorAll(w));0!==i.length&&(e=i.indexOf(t.target),38===t.which&&0<e&&e--,40===t.which&&e<i.length-1&&e++,e<0&&(e=0),i[e].focus())}},t=l,e=[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return D}},{key:"DefaultType",get:function(){return O}}],(n=null)&&N(t.prototype,n),e&&N(t,e),l}();return u(document).on(d.KEYDOWN_DATA_API,v,n._dataApiKeydownHandler).on(d.KEYDOWN_DATA_API,y,n._dataApiKeydownHandler).on(d.CLICK_DATA_API+" "+d.KEYUP_DATA_API,n._clearMenus).on(d.CLICK_DATA_API,v,function(t){t.preventDefault(),t.stopPropagation(),n._jQueryInterface.call(u(this),"toggle")}).on(d.CLICK_DATA_API,t,function(t){t.stopPropagation()}),u.fn[i]=n._jQueryInterface,u.fn[i].Constructor=n,u.fn[i].noConflict=function(){return u.fn[i]=e,n._jQueryInterface},n}(t)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","./util.js"],e):t.Modal=e(t.jQuery,t.Util)}(this,function(t,T){"use strict";function x(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n;e=i,t=o[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t})}return i}return t=t&&t.hasOwnProperty("default")?t.default:t,T=T&&T.hasOwnProperty("default")?T.default:T,function(r){var i="modal",s="bs.modal",a="."+s,t=r.fn[i],l={backdrop:!0,keyboard:!0,focus:!0,show:!0},u={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},c={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,FOCUSIN:"focusin"+a,RESIZE:"resize"+a,CLICK_DISMISS:"click.dismiss"+a,KEYDOWN_DISMISS:"keydown.dismiss"+a,MOUSEUP_DISMISS:"mouseup.dismiss"+a,MOUSEDOWN_DISMISS:"mousedown.dismiss"+a,CLICK_DATA_API:"click"+a+".data-api"},d="modal-scrollbar-measure",f="modal-backdrop",h="modal-open",p="fade",g="show",m=".modal-dialog",e='[data-toggle="modal"]',v='[data-dismiss="modal"]',y=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",b=".sticky-top",w=function(){function o(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=t.querySelector(m),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._scrollbarWidth=0}var t,e,n=o.prototype;return n.toggle=function(t){return this._isShown?this.hide():this.show(t)},n.show=function(t){var e,n=this;this._isTransitioning||this._isShown||(r(this._element).hasClass(p)&&(this._isTransitioning=!0),e=r.Event(c.SHOW,{relatedTarget:t}),r(this._element).trigger(e),this._isShown||e.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),r(document.body).addClass(h),this._setEscapeEvent(),this._setResizeEvent(),r(this._element).on(c.CLICK_DISMISS,v,function(t){return n.hide(t)}),r(this._dialog).on(c.MOUSEDOWN_DISMISS,function(){r(n._element).one(c.MOUSEUP_DISMISS,function(t){r(t.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(t)})))},n.hide=function(t){var e=this;t&&t.preventDefault(),!this._isTransitioning&&this._isShown&&(t=r.Event(c.HIDE),r(this._element).trigger(t),this._isShown&&!t.isDefaultPrevented()&&(this._isShown=!1,(t=r(this._element).hasClass(p))&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),r(document).off(c.FOCUSIN),r(this._element).removeClass(g),r(this._element).off(c.CLICK_DISMISS),r(this._dialog).off(c.MOUSEDOWN_DISMISS),t?(t=T.getTransitionDurationFromElement(this._element),r(this._element).one(T.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(t)):this._hideModal()))},n.dispose=function(){r.removeData(this._element,s),r(window,document,this._element,this._backdrop).off(a),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(t){return t=_({},l,t),T.typeCheckConfig(i,t,u),t},n._showElement=function(t){var e=this,n=r(this._element).hasClass(p);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,n&&T.reflow(this._element),r(this._element).addClass(g),this._config.focus&&this._enforceFocus();var i=r.Event(c.SHOWN,{relatedTarget:t}),t=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,r(e._element).trigger(i)};n?(n=T.getTransitionDurationFromElement(this._element),r(this._dialog).one(T.TRANSITION_END,t).emulateTransitionEnd(n)):t()},n._enforceFocus=function(){var e=this;r(document).off(c.FOCUSIN).on(c.FOCUSIN,function(t){document!==t.target&&e._element!==t.target&&0===r(e._element).has(t.target).length&&e._element.focus()})},n._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?r(this._element).on(c.KEYDOWN_DISMISS,function(t){27===t.which&&(t.preventDefault(),e.hide())}):this._isShown||r(this._element).off(c.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var e=this;this._isShown?r(window).on(c.RESIZE,function(t){return e.handleUpdate(t)}):r(window).off(c.RESIZE)},n._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){r(document.body).removeClass(h),t._resetAdjustments(),t._resetScrollbar(),r(t._element).trigger(c.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(r(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(t){var e,n=this,i=r(this._element).hasClass(p)?p:"";this._isShown&&this._config.backdrop?(this._backdrop=document.createElement("div"),this._backdrop.className=f,i&&this._backdrop.classList.add(i),r(this._backdrop).appendTo(document.body),r(this._element).on(c.CLICK_DISMISS,function(t){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),i&&T.reflow(this._backdrop),r(this._backdrop).addClass(g),t&&(i?(e=T.getTransitionDurationFromElement(this._backdrop),r(this._backdrop).one(T.TRANSITION_END,t).emulateTransitionEnd(e)):t())):!this._isShown&&this._backdrop?(r(this._backdrop).removeClass(g),i=function(){n._removeBackdrop(),t&&t()},r(this._element).hasClass(p)?(e=T.getTransitionDurationFromElement(this._backdrop),r(this._backdrop).one(T.TRANSITION_END,i).emulateTransitionEnd(e)):i()):t&&t()},n._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var t,e,o=this;this._isBodyOverflowing&&(t=[].slice.call(document.querySelectorAll(y)),e=[].slice.call(document.querySelectorAll(b)),r(t).each(function(t,e){var n=e.style.paddingRight,i=r(e).css("padding-right");r(e).data("padding-right",n).css("padding-right",parseFloat(i)+o._scrollbarWidth+"px")}),r(e).each(function(t,e){var n=e.style.marginRight,i=r(e).css("margin-right");r(e).data("margin-right",n).css("margin-right",parseFloat(i)-o._scrollbarWidth+"px")}),t=document.body.style.paddingRight,e=r(document.body).css("padding-right"),r(document.body).data("padding-right",t).css("padding-right",parseFloat(e)+this._scrollbarWidth+"px"))},n._resetScrollbar=function(){var t=[].slice.call(document.querySelectorAll(y));r(t).each(function(t,e){var n=r(e).data("padding-right");r(e).removeData("padding-right"),e.style.paddingRight=n||""});t=[].slice.call(document.querySelectorAll(""+b));r(t).each(function(t,e){var n=r(e).data("margin-right");void 0!==n&&r(e).css("margin-right",n).removeData("margin-right")});t=r(document.body).data("padding-right");r(document.body).removeData("padding-right"),document.body.style.paddingRight=t||""},n._getScrollbarWidth=function(){var t=document.createElement("div");t.className=d,document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},o._jQueryInterface=function(n,i){return this.each(function(){var t=r(this).data(s),e=_({},l,r(this).data(),"object"==typeof n&&n?n:{});if(t||(t=new o(this,e),r(this).data(s,t)),"string"==typeof n){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n](i)}else e.show&&t.show(i)})},t=o,e=[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return l}}],(n=null)&&x(t.prototype,n),e&&x(t,e),o}();return r(document).on(c.CLICK_DATA_API,e,function(t){var e,n=this,i=T.getSelectorFromElement(this);i&&(e=document.querySelector(i));i=r(e).data(s)?"toggle":_({},r(e).data(),r(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var o=r(e).one(c.SHOW,function(t){t.isDefaultPrevented()||o.one(c.HIDDEN,function(){r(n).is(":visible")&&n.focus()})});w._jQueryInterface.call(r(e),i,this)}),r.fn[i]=w._jQueryInterface,r.fn[i].Constructor=w,r.fn[i].noConflict=function(){return r.fn[i]=t,w._jQueryInterface},w}(t)}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e(require("jquery"),require("popper.js"),require("./util.js")):"function"==typeof define&&define.amd?define(["jquery","popper.js","./util.js"],e):t.Tooltip=e(t.jQuery,t.Popper,t.Util)}(this,function(t,E,C){"use strict";function S(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function D(i){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{},e=Object.keys(o);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(o).filter(function(t){return Object.getOwnPropertyDescriptor(o,t).enumerable}))),e.forEach(function(t){var e,n;e=i,t=o[n=t],n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t})}return i}return t=t&&t.hasOwnProperty("default")?t.default:t,E=E&&E.hasOwnProperty("default")?E.default:E,C=C&&C.hasOwnProperty("default")?C.default:C,function(r){var o="tooltip",s="bs.tooltip",a="."+s,t=r.fn[o],l="bs-tooltip",u=new RegExp("(^|\\s)"+l+"\\S+","g"),c={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},d={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},f={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},h="show",p="out",g={HIDE:"hide"+a,HIDDEN:"hidden"+a,SHOW:"show"+a,SHOWN:"shown"+a,INSERTED:"inserted"+a,CLICK:"click"+a,FOCUSIN:"focusin"+a,FOCUSOUT:"focusout"+a,MOUSEENTER:"mouseenter"+a,MOUSELEAVE:"mouseleave"+a},m="fade",v="show",y=".tooltip-inner",b=".arrow",w="hover",T="focus",x="click",_="manual",e=function(){function i(t,e){if(void 0===E)throw new TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var t,e,n=i.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){var e,n;this._isEnabled&&(t?(e=this.constructor.DATA_KEY,(n=r(t.currentTarget).data(e))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(e,n)),n._activeTrigger.click=!n._activeTrigger.click,n._isWithActiveTrigger()?n._enter(null,n):n._leave(null,n)):r(this.getTipElement()).hasClass(v)?this._leave(null,this):this._enter(null,this))},n.dispose=function(){clearTimeout(this._timeout),r.removeData(this.element,this.constructor.DATA_KEY),r(this.element).off(this.constructor.EVENT_KEY),r(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&r(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,(this._activeTrigger=null)!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===r(this.element).css("display"))throw new Error("Please use show on visible elements");var t,n,i=r.Event(this.constructor.Event.SHOW);this.isWithContent()&&this._isEnabled&&(r(this.element).trigger(i),t=r.contains(this.element.ownerDocument.documentElement,this.element),!i.isDefaultPrevented()&&t&&(n=this.getTipElement(),i=C.getUID(this.constructor.NAME),n.setAttribute("id",i),this.element.setAttribute("aria-describedby",i),this.setContent(),this.config.animation&&r(n).addClass(m),t="function"==typeof this.config.placement?this.config.placement.call(this,n,this.element):this.config.placement,i=this._getAttachment(t),this.addAttachmentClass(i),t=!1===this.config.container?document.body:r(document).find(this.config.container),r(n).data(this.constructor.DATA_KEY,this),r.contains(this.element.ownerDocument.documentElement,this.tip)||r(n).appendTo(t),r(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new E(this.element,n,{placement:i,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:b},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),r(n).addClass(v),"ontouchstart"in document.documentElement&&r(document.body).children().on("mouseover",null,r.noop),i=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,r(e.element).trigger(e.constructor.Event.SHOWN),t===p&&e._leave(null,e)},r(this.tip).hasClass(m)?(n=C.getTransitionDurationFromElement(this.tip),r(this.tip).one(C.TRANSITION_END,i).emulateTransitionEnd(n)):i()))},n.hide=function(t){function e(){n._hoverState!==h&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),r(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()}var n=this,i=this.getTipElement(),o=r.Event(this.constructor.Event.HIDE);r(this.element).trigger(o),o.isDefaultPrevented()||(r(i).removeClass(v),"ontouchstart"in document.documentElement&&r(document.body).children().off("mouseover",null,r.noop),this._activeTrigger[x]=!1,this._activeTrigger[T]=!1,this._activeTrigger[w]=!1,r(this.tip).hasClass(m)?(o=C.getTransitionDurationFromElement(i),r(i).one(C.TRANSITION_END,e).emulateTransitionEnd(o)):e(),this._hoverState="")},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){r(this.getTipElement()).addClass(l+"-"+t)},n.getTipElement=function(){return this.tip=this.tip||r(this.config.template)[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(r(t.querySelectorAll(y)),this.getTitle()),r(t).removeClass(m+" "+v)},n.setElementContent=function(t,e){var n=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?n?r(e).parent().is(t)||t.empty().append(e):t.text(r(e).text()):t[n?"html":"text"](e)},n.getTitle=function(){return this.element.getAttribute("data-original-title")||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getAttachment=function(t){return d[t.toUpperCase()]},n._setListeners=function(){var n=this;this.config.trigger.split(" ").forEach(function(t){var e;"click"===t?r(n.element).on(n.constructor.Event.CLICK,n.config.selector,function(t){return n.toggle(t)}):t!==_&&(e=t===w?n.constructor.Event.MOUSEENTER:n.constructor.Event.FOCUSIN,t=t===w?n.constructor.Event.MOUSELEAVE:n.constructor.Event.FOCUSOUT,r(n.element).on(e,n.config.selector,function(t){return n._enter(t)}).on(t,n.config.selector,function(t){return n._leave(t)})),r(n.element).closest(".modal").on("hide.bs.modal",function(){return n.hide()})}),this.config.selector?this.config=D({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==t||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusin"===t.type?T:w]=!0),r(e.getTipElement()).hasClass(v)||e._hoverState===h?e._hoverState=h:(clearTimeout(e._timeout),e._hoverState=h,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===h&&e.show()},e.config.delay.show):e.show())},n._leave=function(t,e){var n=this.constructor.DATA_KEY;(e=e||r(t.currentTarget).data(n))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),r(t.currentTarget).data(n,e)),t&&(e._activeTrigger["focusout"===t.type?T:w]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState=p,e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){e._hoverState===p&&e.hide()},e.config.delay.hide):e.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){return"number"==typeof(t=D({},this.constructor.Default,r(this.element).data(),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),C.typeCheckConfig(o,t,this.constructor.DefaultType),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=r(this.getTipElement()),e=t.attr("class").match(u);null!==e&&e.length&&t.removeClass(e.join(""))},n._handlePopperPlacementChange=function(t){var e=t.instance;this.tip=e.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},n._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(r(t).removeClass(m),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},i._jQueryInterface=function(n){return this.each(function(){var t=r(this).data(s),e="object"==typeof n&&n;if((t||!/dispose|hide/.test(n))&&(t||(t=new i(this,e),r(this).data(s,t)),"string"==typeof n)){if(void 0===t[n])throw new TypeError('No method named "'+n+'"');t[n]()}})},t=i,e=[{key:"VERSION",get:function(){return"4.1.3"}},{key:"Default",get:function(){return f}},{key:"NAME",get:function(){return o}},{key:"DATA_KEY",get:function(){return s}},{key:"Event",get:function(){return g}},{key:"EVENT_KEY",get:function(){return a}},{key:"DefaultType",get:function(){return c}}],(n=null)&&S(t.prototype,n),e&&S(t,e),i}();return r.fn[o]=e._jQueryInterface,r.fn[o].Constructor=e,r.fn[o].noConflict=function(){return r.fn[o]=t,e._jQueryInterface},e}(t)}),function(t){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");if((t=t.fn.jquery.split(" ")[0].split("."))[0]<2&&t[1]<9||1===t[0]&&9===t[1]&&t[2]<1||4<=t[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}($),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Noty",[],e):"object"==typeof exports?exports.Noty=e():t.Noty=e()}(this,function(){return o={},i.m=n=[function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.css=e.deepExtend=e.animationEndEvents=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.inArray=function(t,e,n){var i=void 0;if(n){for(i in e)if(e.hasOwnProperty(i)&&e[i]===t)return!0}else for(i in e)if(e.hasOwnProperty(i)&&e[i]===t)return!0;return!1},e.stopPropagation=function(t){void 0!==(t=t||window.event).stopPropagation?t.stopPropagation():t.cancelBubble=!0},e.generateID=function(){var t="noty_"+(0<arguments.length&&void 0!==arguments[0]?arguments[0]:"")+"_";return t+="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},e.outerHeight=function(t){var e=t.offsetHeight,t=window.getComputedStyle(t);return e+=parseInt(t.marginTop)+parseInt(t.marginBottom)},e.addListener=u,e.hasClass=c,e.addClass=function(t,e){var n=f(t),i=n+e;if(c(n,e))return;t.className=i.substring(1)},e.removeClass=function(t,e){var n=f(t),i=void 0;if(!c(t,e))return;i=n.replace(" "+e+" "," "),t.className=i.substring(1,i.length-1)},e.remove=d,e.classList=f,e.visibilityChangeFlow=function(){var t=void 0,e=void 0;void 0!==document.hidden?(t="hidden",e="visibilitychange"):void 0!==document.msHidden?(t="msHidden",e="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",e="webkitvisibilitychange");function n(){i.PageHidden?setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].stop()})},100):setTimeout(function(){Object.keys(i.Store).forEach(function(t){i.Store.hasOwnProperty(t)&&i.Store[t].options.visibilityControl&&i.Store[t].resume()}),i.queueRenderAll()},100)}e&&u(document,e,function(){i.PageHidden=document[t],n()});u(window,"blur",function(){i.PageHidden=!0,n()}),u(window,"focus",function(){i.PageHidden=!1,n()})},e.createAudioElements=function(t){{var n;t.hasSound&&(n=document.createElement("audio"),t.options.sounds.sources.forEach(function(t){var e=document.createElement("source");e.src=t,e.type="audio/"+t.match(/\.([^.]+)$/)[1],n.appendChild(e)}),(t.barDom||document.querySelector("body")).appendChild(n),n.volume=t.options.sounds.volume,t.soundPlayed||(n.play(),t.soundPlayed=!0),n.onended=function(){d(n)})}};var i=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}}(n(1));e.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";e.deepExtend=function t(e){e=e||{};for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var o in i)i.hasOwnProperty(o)&&(!Array.isArray(i[o])&&"object"===r(i[o])&&null!==i[o]?e[o]=t(e[o],i[o]):e[o]=i[o])}return e};var s,o;e.css=(s=["Webkit","O","Moz","ms"],o={},function(t,e){var n,i=arguments,o=void 0;if(2===i.length)for(o in e)e.hasOwnProperty(o)&&void 0!==(n=e[o])&&e.hasOwnProperty(o)&&l(t,o,n);else l(t,i[1],i[2])});function a(t){return t=t.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(t,e){return e.toUpperCase()}),o[t]||(o[t]=function(t){var e=document.body.style;if(t in e)return t;for(var n,i=s.length,o=t.charAt(0).toUpperCase()+t.slice(1);i--;)if((n=s[i]+o)in e)return n;return t}(t))}function l(t,e,n){e=a(e),t.style[e]=n}function u(t,e,n){var i=3<arguments.length&&void 0!==arguments[3]&&arguments[3];e=e.split(" ");for(var o=0;o<e.length;o++)document.addEventListener?t.addEventListener(e[o],n,i):document.attachEvent&&t.attachEvent("on"+e[o],n)}function c(t,e){return 0<=("string"==typeof t?t:f(t)).indexOf(" "+e+" ")}function d(t){t.parentNode&&t.parentNode.removeChild(t)}function f(t){return(" "+(t&&t.className||"")+" ").replace(/\s+/gi," ")}},function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.Defaults=n.Store=n.Queues=n.DefaultMaxVisible=n.docTitle=n.DocModalCount=n.PageHidden=void 0,n.getQueueCounts=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"global",n=0,t=a;l.hasOwnProperty(e)&&(t=l[e].maxVisible,Object.keys(u).forEach(function(t){u[t].options.queue!==e||u[t].closed||n++}));return{current:n,maxVisible:t}},n.addToQueue=function(t){l.hasOwnProperty(t.options.queue)||(l[t.options.queue]={maxVisible:a,queue:[]});l[t.options.queue].queue.push(t)},n.removeFromQueue=function(e){{var n;l.hasOwnProperty(e.options.queue)&&(n=[],Object.keys(l[e.options.queue].queue).forEach(function(t){l[e.options.queue].queue[t].id!==e.id&&n.push(l[e.options.queue].queue[t])}),l[e.options.queue].queue=n)}},n.queueRender=c,n.queueRenderAll=function(){Object.keys(l).forEach(function(t){c(t)})},n.ghostFix=function(t){var e=i.generateID("ghost"),n=document.createElement("div");n.setAttribute("id",e),i.css(n,{height:i.outerHeight(t.barDom)+"px"}),t.barDom.insertAdjacentHTML("afterend",n.outerHTML),i.remove(t.barDom),n=document.getElementById(e),i.addClass(n,"noty_fix_effects_height"),i.addListener(n,i.animationEndEvents,function(){i.remove(n)})},n.build=function(t){!function(t){if(t.options.container)return t.layoutDom=document.querySelector(t.options.container);var e="noty_layout__"+t.options.layout;t.layoutDom=document.querySelector("div#"+e),t.layoutDom||(t.layoutDom=document.createElement("div"),t.layoutDom.setAttribute("id",e),t.layoutDom.setAttribute("role","alert"),t.layoutDom.setAttribute("aria-live","polite"),i.addClass(t.layoutDom,"noty_layout"),document.querySelector("body").appendChild(t.layoutDom))}(t);var e='<div class="noty_body">'+t.options.text+"</div>"+function(e){if(d(e)){var n=document.createElement("div");return i.addClass(n,"noty_buttons"),Object.keys(e.options.buttons).forEach(function(t){n.appendChild(e.options.buttons[t].dom)}),e.options.buttons.forEach(function(t){n.appendChild(t.dom)}),n.outerHTML}return""}(t)+'<div class="noty_progressbar"></div>';t.barDom=document.createElement("div"),t.barDom.setAttribute("id",t.id),i.addClass(t.barDom,"noty_bar noty_type__"+t.options.type+" noty_theme__"+t.options.theme),t.barDom.innerHTML=e,p(t,"onTemplate")},n.hasButtons=d,n.handleModal=function(t){t.options.modal&&(0===o&&function(){var t=document.querySelector("body"),e=document.createElement("div");i.addClass(e,"noty_modal"),t.insertBefore(e,t.firstChild),i.addClass(e,"noty_modal_open"),i.addListener(e,i.animationEndEvents,function(){i.removeClass(e,"noty_modal_open")})}(),n.DocModalCount=o+=1)},n.handleModalClose=function(t){{var e;t.options.modal&&0<o&&(n.DocModalCount=--o,o<=0&&((e=document.querySelector(".noty_modal"))&&(i.removeClass(e,"noty_modal_open"),i.addClass(e,"noty_modal_close"),i.addListener(e,i.animationEndEvents,function(){i.remove(e)}))))}},n.queueClose=f,n.dequeueClose=h,n.fire=p,n.openFlow=function(t){p(t,"afterShow"),f(t),i.addListener(t.barDom,"mouseenter",function(){h(t)}),i.addListener(t.barDom,"mouseleave",function(){f(t)})},n.closeFlow=function(t){delete u[t.id],t.closing=!1,p(t,"afterClose"),i.remove(t.barDom),0!==t.layoutDom.querySelectorAll(".noty_bar").length||t.options.container||i.remove(t.layoutDom);(i.inArray("docVisible",t.options.titleCount.conditions)||i.inArray("docHidden",t.options.titleCount.conditions))&&s.decrement();c(t.options.queue)};var i=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}}(e(0));n.PageHidden=!1;var o=n.DocModalCount=0,r={originalTitle:null,count:0,changed:!1,timer:-1},s=n.docTitle={increment:function(){r.count++,s._update()},decrement:function(){r.count--,r.count<=0?s._clear():s._update()},_update:function(){var t=document.title;r.changed?document.title="("+r.count+") "+r.originalTitle:(r.originalTitle=t,document.title="("+r.count+") "+t,r.changed=!0)},_clear:function(){r.changed&&(r.count=0,document.title=r.originalTitle,r.changed=!1)}},a=n.DefaultMaxVisible=5,l=n.Queues={global:{maxVisible:a,queue:[]}},u=n.Store={};n.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1};function c(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"global";!l.hasOwnProperty(t)||(t=l[t].queue.shift())&&t.show()}function d(t){return!(!t.options.buttons||!Object.keys(t.options.buttons).length)}function f(t){t.options.timeout&&(t.options.progressBar&&t.progressDom&&i.css(t.progressDom,{transition:"width "+t.options.timeout+"ms linear",width:"0%"}),clearTimeout(t.closeTimer),t.closeTimer=setTimeout(function(){t.close()},t.options.timeout))}function h(t){t.options.timeout&&t.closeTimer&&(clearTimeout(t.closeTimer),t.closeTimer=-1,t.options.progressBar&&t.progressDom&&i.css(t.progressDom,{transition:"width 0ms linear",width:"100%"}))}function p(e,t){e.listeners.hasOwnProperty(t)&&e.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(e)})}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.NotyButton=void 0;var s=function(t){{if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}}(n(0));e.NotyButton=function e(t,n,i){var o=this,r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return function(t){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.dom=document.createElement("button"),this.dom.innerHTML=t,this.id=r.id=r.id||s.generateID("button"),this.cb=i,Object.keys(r).forEach(function(t){o.dom.setAttribute(t,r[t])}),s.addClass(this.dom,n||"noty_btn"),this}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}e.Push=(i(r,[{key:"on",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"fire",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(t)&&this.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(e,n)})}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var t=!1;try{t=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(t){}return t}},{key:"getPermissionStatus",value:function(){var t="default";if(window.Notification&&window.Notification.permissionLevel)t=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:t="default";break;case 0:t="granted";break;default:t="denied"}else window.Notification&&window.Notification.permission?t=window.Notification.permission:navigator.mozNotification?t="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(t=window.external.msIsSiteMode()?"granted":"default");return t.toString().toLowerCase()}},{key:"getEndpoint",value:function(t){var e=t.endpoint,t=t.subscriptionId;return t&&-1===e.indexOf(t)&&(e+="/"+t),e}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(t){return!1}}},{key:"unregisterWorker",value:function(){var s=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(t){var e=!0,n=!1,i=void 0;try{for(var o,r=t[Symbol.iterator]();!(e=(o=r.next()).done);e=!0)o.value.unregister(),s.fire("onSubscriptionCancel")}catch(t){n=!0,i=t}finally{try{!e&&r.return&&r.return()}finally{if(n)throw i}}})}},{key:"requestSubscription",value:function(){function t(t){"granted"===t?(e.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(e.workerPath).then(function(){navigator.serviceWorker.ready.then(function(t){i.fire("onWorkerSuccess"),t.pushManager.subscribe({userVisibleOnly:n}).then(function(t){var e=t.getKey("p256dh"),n=t.getKey("auth");i.subData={endpoint:i.getEndpoint(t),p256dh:e?window.btoa(String.fromCharCode.apply(null,new Uint8Array(e))):null,auth:n?window.btoa(String.fromCharCode.apply(null,new Uint8Array(n))):null},i.fire("onSubscriptionSuccess",[i.subData])}).catch(function(t){i.fire("onWorkerError",[t])})})}):i.fire("onWorkerNotSupported")):"denied"===t&&(e.fire("onPermissionDenied"),e.unregisterWorker())}var e=this,n=!(0<arguments.length&&void 0!==arguments[0])||arguments[0],i=this,o=this.getPermissionStatus();"default"===o?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(t):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(t):t(o)}}]),r);function r(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return function(t){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}(this),this.subData={},this.workerPath=t,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}},function(e,t,U){(function(B,V){var t;t=function(){"use strict";function u(t){return"function"==typeof t}var n=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)},i=0,e=void 0,o=void 0,a=function(t,e){d[i]=t,d[i+1]=e,2===(i+=2)&&(o?o(f):v())};var t="undefined"!=typeof window?window:void 0,r=t||{},s=r.MutationObserver||r.WebKitMutationObserver,l="undefined"==typeof self&&void 0!==B&&"[object process]"==={}.toString.call(B),r="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function c(){var t=setTimeout;return function(){return t(f,1)}}var d=new Array(1e3);function f(){for(var t=0;t<i;t+=2)(0,d[t])(d[t+1]),d[t]=void 0,d[t+1]=void 0;i=0}var h,p,g,m,v=void 0;function y(t,e){var n=arguments,i=this,o=new this.constructor(T);void 0===o[w]&&R(o);var r,s=i._state;return s?(r=n[s-1],a(function(){return q(s,o,r,i._result)})):L(i,o,t,e),o}function b(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(T);return A(e,t),e}v=l?function(){return B.nextTick(f)}:s?(p=0,g=new s(f),m=document.createTextNode(""),g.observe(m,{characterData:!0}),function(){m.data=p=++p%2}):r?((h=new MessageChannel).port1.onmessage=f,function(){return h.port2.postMessage(0)}):(void 0===t?function(){try{var t=U(9);return void 0!==(e=t.runOnLoop||t.runOnContext)?function(){e(f)}:c()}catch(t){return c()}}:c)();var w=Math.random().toString(36).substring(16);function T(){}var x=void 0,_=1,E=2,C=new j;function S(t){try{return t.then}catch(t){return C.error=t,C}}function D(t,i,o){a(function(e){var n=!1,t=function(t,e,n,i){try{t.call(e,n,i)}catch(t){return t}}(o,i,function(t){n||(n=!0,(i!==t?A:N)(e,t))},function(t){n||(n=!0,I(e,t))},e._label);!n&&t&&(n=!0,I(e,t))},t)}function O(t,e,n){var i,o;e.constructor===t.constructor&&n===y&&e.constructor.resolve===b?(i=t,(o=e)._state===_?N(i,o._result):o._state===E?I(i,o._result):L(o,void 0,function(t){return A(i,t)},function(t){return I(i,t)})):n===C?(I(t,C.error),C.error=null):void 0!==n&&u(n)?D(t,e,n):N(t,e)}function A(t,e){var n,i;t===e?I(t,new TypeError("You cannot resolve a promise with itself")):(i=typeof(n=e),null===n||"object"!=i&&"function"!=i?N(t,e):O(t,e,S(e)))}function k(t){t._onerror&&t._onerror(t._result),M(t)}function N(t,e){t._state===x&&(t._result=e,t._state=_,0!==t._subscribers.length&&a(M,t))}function I(t,e){t._state===x&&(t._state=E,t._result=e,a(k,t))}function L(t,e,n,i){var o=t._subscribers,r=o.length;t._onerror=null,o[r]=e,o[r+_]=n,o[r+E]=i,0===r&&t._state&&a(M,t)}function M(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var i,o=void 0,r=t._result,s=0;s<e.length;s+=3)i=e[s],o=e[s+n],i?q(n,i,o,r):o(r);t._subscribers.length=0}}function j(){this.error=null}var P=new j;function q(t,e,n,i){var o=u(n),r=void 0,s=void 0,a=void 0,l=void 0;if(o){if((r=function(t,e){try{return t(e)}catch(t){return P.error=t,P}}(n,i))===P?(l=!0,s=r.error,r.error=null):a=!0,e===r)return void I(e,new TypeError("A promises callback cannot return that same promise."))}else r=i,a=!0;e._state!==x||(o&&a?A(e,r):l?I(e,s):t===_?N(e,r):t===E&&I(e,r))}var H=0;function R(t){t[w]=H++,t._state=void 0,t._result=void 0,t._subscribers=[]}function W(t,e){this._instanceConstructor=t,this.promise=new t(T),this.promise[w]||R(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?N(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&N(this.promise,this._result))):I(this.promise,new Error("Array Methods must be provided an Array"))}function F(t){this[w]=H++,this._result=this._state=void 0,this._subscribers=[],T!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof F?function(e,t){try{t(function(t){A(e,t)},function(t){I(e,t)})}catch(t){I(e,t)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return W.prototype._enumerate=function(t){for(var e=0;this._state===x&&e<t.length;e++)this._eachEntry(t[e],e)},W.prototype._eachEntry=function(e,t){var n,i,o=this._instanceConstructor,r=o.resolve;r===b?(n=S(e))===y&&e._state!==x?this._settledAt(e._state,t,e._result):"function"!=typeof n?(this._remaining--,this._result[t]=e):o===F?(O(i=new o(T),e,n),this._willSettleAt(i,t)):this._willSettleAt(new o(function(t){return t(e)}),t):this._willSettleAt(r(e),t)},W.prototype._settledAt=function(t,e,n){var i=this.promise;i._state===x&&(this._remaining--,t===E?I(i,n):this._result[e]=n),0===this._remaining&&N(i,this._result)},W.prototype._willSettleAt=function(t,e){var n=this;L(t,void 0,function(t){return n._settledAt(_,e,t)},function(t){return n._settledAt(E,e,t)})},F.all=function(t){return new W(this,t).promise},F.race=function(o){var r=this;return n(o)?new r(function(t,e){for(var n=o.length,i=0;i<n;i++)r.resolve(o[i]).then(t,e)}):new r(function(t,e){return e(new TypeError("You must pass an array to race."))})},F.resolve=b,F.reject=function(t){var e=new this(T);return I(e,t),e},F._setScheduler=function(t){o=t},F._setAsap=function(t){a=t},F._asap=a,F.prototype={constructor:F,then:y,catch:function(t){return this.then(null,t)}},F.polyfill=function(){var t=void 0;if(void 0!==V)t=V;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=F},F.Promise=F},e.exports=t()}).call(t,U(7),U(8))},function(t,e){},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t};function o(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}n(5);var r,s=n(4),a=(r=s)&&r.__esModule?r:{default:r},l=f(n(0)),u=f(n(1)),c=n(2),d=n(3);function f(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}var h,i=(i(p,[{key:"on",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof e&&this.listeners.hasOwnProperty(t)&&this.listeners[t].push(e),this}},{key:"show",value:function(){var n=this;if(this.showing||this.shown)return this;!0===this.options.killer?p.closeAll():"string"==typeof this.options.killer&&p.closeAll(this.options.killer);var t=u.getQueueCounts(this.options.queue);return t.current>=t.maxVisible||u.PageHidden&&this.options.visibilityControl?(u.addToQueue(this),u.PageHidden&&this.hasSound&&l.inArray("docHidden",this.options.sounds.conditions)&&l.createAudioElements(this),u.PageHidden&&l.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this):(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing?this.showing=!1:(u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&l.inArray("docVisible",this.options.sounds.conditions)&&l.createAudioElements(this),l.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach(function(e){var t=n.barDom.querySelector("#"+n.options.buttons[e].id);l.addListener(t,"click",function(t){l.stopPropagation(t),n.options.buttons[e].cb(n)})}),this.progressDom=this.barDom.querySelector(".noty_progressbar"),l.inArray("click",this.options.closeWith)&&(l.addClass(this.barDom,"noty_close_with_click"),l.addListener(this.barDom,"click",function(t){l.stopPropagation(t),u.fire(n,"onClick"),n.close()},!1)),l.addListener(this.barDom,"mouseenter",function(){u.fire(n,"onHover")},!1),this.options.timeout&&l.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&l.addClass(this.barDom,"noty_has_progressbar"),l.inArray("button",this.options.closeWith)&&(l.addClass(this.barDom,"noty_close_with_button"),t=document.createElement("div"),l.addClass(t,"noty_close_button"),t.innerHTML="×",this.barDom.appendChild(t),l.addListener(t,"click",function(t){l.stopPropagation(t),n.close()},!1)),u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new a.default(function(t){t()}):"function"==typeof this.options.animation.open?this.promises.show=new a.default(this.options.animation.open.bind(this)):(l.addClass(this.barDom,this.options.animation.open),this.promises.show=new a.default(function(t){l.addListener(n.barDom,l.animationEndEvents,function(){l.removeClass(n.barDom,n.options.animation.open),t()})})),this.promises.show.then(function(){var t=n;setTimeout(function(){u.openFlow(t)},100)})),this)}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:(h=function(t){var e;return this.stop(),this.options.timeout=t,this.barDom&&(this.options.timeout?l.addClass(this.barDom,"noty_has_timeout"):l.removeClass(this.barDom,"noty_has_timeout"),e=this,setTimeout(function(){e.resume()},100)),this},g.toString=function(){return h.toString()},g)},{key:"setText",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=t),e&&(this.options.text=t),this}},{key:"setType",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(l.classList(this.barDom).split(" ").forEach(function(t){"noty_type__"===t.substring(0,11)&&l.removeClass(e.barDom,t)}),l.addClass(this.barDom,"noty_type__"+t)),n&&(this.options.type=t),this}},{key:"setTheme",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(l.classList(this.barDom).split(" ").forEach(function(t){"noty_theme__"===t.substring(0,12)&&l.removeClass(e.barDom,t)}),l.addClass(this.barDom,"noty_theme__"+t)),n&&(this.options.theme=t),this}},{key:"close",value:function(){var e=this;return this.closed||(this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close||!1===this.options.animation.close?this.promises.close=new a.default(function(t){t()}):"function"==typeof this.options.animation.close?this.promises.close=new a.default(this.options.animation.close.bind(this)):(l.addClass(this.barDom,this.options.animation.close),this.promises.close=new a.default(function(t){l.addListener(e.barDom,l.animationEndEvents,function(){e.options.force?l.remove(e.barDom):u.ghostFix(e),t()})})),this.promises.close.then(function(){u.closeFlow(e),u.handleModalClose(e)}),this.closed=!0):u.removeFromQueue(this)),this}}],[{key:"closeAll",value:function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach(function(t){e?u.Store[t].options.queue===e&&u.Store[t].killable&&u.Store[t].close():u.Store[t].killable&&u.Store[t].close()}),this}},{key:"clearQueue",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"global";return u.Queues.hasOwnProperty(t)&&(u.Queues[t].queue=[]),this}},{key:"overrideDefaults",value:function(t){return u.Defaults=l.deepExtend({},u.Defaults,t),this}},{key:"setMaxVisible",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(e)||(u.Queues[e]={maxVisible:t,queue:[]}),u.Queues[e].maxVisible=t,this}},{key:"button",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null,n=arguments[2],i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return new c.NotyButton(t,e,n,i)}},{key:"version",value:function(){return"3.2.0-beta"}},{key:"Push",value:function(t){return new d.Push(t)}},{key:"Queues",get:function(){return u.Queues}},{key:"PageHidden",get:function(){return u.PageHidden}}]),p);function p(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};return function(t){if(!(t instanceof p))throw new TypeError("Cannot call a class as a function")}(this),this.options=l.deepExtend({},u.Defaults,t),u.Store[this.options.id]||(this.id=this.options.id||l.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||0<this.options.closeWith.length,this.hasSound=0<this.options.sounds.sources.length,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this)}function g(t){return h.apply(this,arguments)}e.default=i,"undefined"!=typeof window&&l.visibilityChangeFlow(),t.exports=e.default},function(t,e){var n,i,t=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:r}catch(t){i=r}}();var a,l=[],u=!1,c=-1;function d(){u&&a&&(u=!1,a.length?l=a.concat(l):c=-1,l.length&&f())}function f(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(a=l,l=[];++c<e;)a&&a[c].run();c=-1,e=l.length}a=null,u=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===r||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(t)}}function h(t,e){this.fun=t,this.array=e}function p(){}t.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new h(t,e)),1!==l.length||u||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=p,t.addListener=p,t.once=p,t.off=p,t.removeListener=p,t.removeAllListeners=p,t.emit=p,t.prependListener=p,t.prependOnceListener=p,t.listeners=function(t){return[]},t.binding=function(t){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(t){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(t,e){var n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e){}],i.c=o,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=6);function i(t){if(o[t])return o[t].exports;var e=o[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,i),e.l=!0,e.exports}var n,o});var sidebarMethods={open:function(){$('[data-sidebar="sidebar"]').addClass("sidebar-opened")},close:function(){$('[data-sidebar="sidebar"]').removeClass("sidebar-opened")},toggle:function(){$('[data-sidebar="sidebar"]').toggleClass("sidebar-opened")}};function formatPrice(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return(t=t.toString()).length<=6&&1!==t.length?t=t.slice(0,-3)+",000":t.length<=9&&1!==t.length&&(t=t.slice(0,-6)+","+t.substr(t.length-6,t.length-4)+",000"),t}function _toConsumableArray(t){return _arrayWithoutHoles(t)||_iterableToArray(t)||_unsupportedIterableToArray(t)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(t,e){if(t){if("string"==typeof t)return _arrayLikeToArray(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(t,e):void 0}}function _iterableToArray(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function _arrayWithoutHoles(t){if(Array.isArray(t))return _arrayLikeToArray(t)}function _arrayLikeToArray(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function createMasonryLayout(t,r){var e=Array.from(t.getElementsByClassName("grid-item"));t.style.position="relative";var s=Array(r).fill(0);e.forEach(function(t,e){t.classList.remove("one-column","two-columns"),1===r?t.classList.add("one-column"):2===r&&t.classList.add("two-columns");var n=s.indexOf(Math.min.apply(Math,_toConsumableArray(s))),i=n*(t.offsetWidth+10),o=s[n];t.style.position="absolute",t.style.transform="translate(".concat(i,"px, ").concat(o,"px)"),s[n]+=t.offsetHeight+10}),t.style.height=Math.max.apply(Math,_toConsumableArray(s))+"px"}function updateMasonryLayout(t){var e=document.querySelector(t);e&&(t=3,window.innerWidth<=800?t=1:window.innerWidth<=1200&&(t=2),createMasonryLayout(e,t))}function initializeMasonryLayout(t){t&&document.querySelector(t)&&(updateMasonryLayout(t),window.addEventListener("resize",function(){updateMasonryLayout(t)}))}$(document).on("click",'[data-sidebar="close"], [data-sidebar="open"]',function(){"close"==$(this).data("sidebar")?sidebarMethods.close():"open"==$(this).data("sidebar")&&sidebarMethods.open(),$(document).on("click",function(t){0===$(t.target).closest('[data-sidebar="sidebar"]').length&&0===$(t.target).closest('[data-sidebar="open"]').length&&$('[data-sidebar="sidebar"]').removeClass("sidebar-opened")})}),$(document).on("click","a[data-scroll]",function(t){var i=$(".navbar-main").outerHeight()||0,e=this.hash,o=$(e);$("html, body").stop().animate({scrollTop:o.offset().top-(i-1)},{duration:500,step:function(t,e){var n=o.offset().top;e.end!==n&&(e.end=n-(i+25))}},"swing"),$(this).hasClass("sidebar-link")&&sidebarMethods.close()}),Noty.overrideDefaults({theme:"default",layout:"bottomLeft",timeout:6e3}),$(function(){$('[data-toggle="tooltip"]').tooltip()});