/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}function fe(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}ce.fn=ce.prototype={jquery:t,constructor:ce,length:0,toArray:function(){return ae.call(this)},get:function(e){return null==e?ae.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=ce.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return ce.each(this,e)},map:function(n){return this.pushStack(ce.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(ae.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(ce.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(ce.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(0<=n&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:oe.sort,splice:oe.splice},ce.extend=ce.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||v(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(e=arguments[s]))for(t in e)r=e[t],"__proto__"!==t&&a!==r&&(l&&r&&(ce.isPlainObject(r)||(i=Array.isArray(r)))?(n=a[t],o=i&&!Array.isArray(n)?[]:i||ce.isPlainObject(n)?n:{},i=!1,a[t]=ce.extend(l,o,r)):void 0!==r&&(a[t]=r));return a},ce.extend({expando:"jQuery"+(t+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==i.call(e))&&(!(t=r(e))||"function"==typeof(n=ue.call(t,"constructor")&&t.constructor)&&o.call(n)===a)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){m(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(c(e)){for(n=e.length;r<n;r++)if(!1===t.call(e[r],r,e[r]))break}else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)while(t=e[r++])n+=ce.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(c(Object(e))?ce.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:se.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!l.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,a=[];if(c(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&a.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&a.push(i);return g(a)},guid:1,support:le}),"function"==typeof Symbol&&(ce.fn[Symbol.iterator]=oe[Symbol.iterator]),ce.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){n["[object "+t+"]"]=t.toLowerCase()});var pe=oe.pop,de=oe.sort,he=oe.splice,ge="[\\x20\\t\\r\\n\\f]",ve=new RegExp("^"+ge+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ge+"+$","g");ce.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var f=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function p(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}ce.escapeSelector=function(e){return(e+"").replace(f,p)};var ye=C,me=s;!function(){var e,b,w,o,a,T,r,C,d,i,k=me,S=ce.expando,E=0,n=0,s=W(),c=W(),u=W(),h=W(),l=function(e,t){return e===t&&(a=!0),0},f="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",t="(?:\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",p="\\["+ge+"*("+t+")(?:"+ge+"*([*^$|!~]?=)"+ge+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+t+"))|)"+ge+"*\\]",g=":("+t+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+p+")*)|.*)\\)|)",v=new RegExp(ge+"+","g"),y=new RegExp("^"+ge+"*,"+ge+"*"),m=new RegExp("^"+ge+"*([>+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="<a id='"+S+"' href='' disabled='disabled'></a><select id='"+S+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0<I(t,T,null,[e]).length},I.contains=function(e,t){return(e.ownerDocument||e)!=T&&V(e),ce.contains(e,t)},I.attr=function(e,t){(e.ownerDocument||e)!=T&&V(e);var n=b.attrHandle[t.toLowerCase()],r=n&&ue.call(b.attrHandle,t.toLowerCase())?n(e,t,!C):void 0;return void 0!==r?r:e.getAttribute(t)},I.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ce.uniqueSort=function(e){var t,n=[],r=0,i=0;if(a=!le.sortStable,o=!le.sortStable&&ae.call(e,0),de.call(e,l),a){while(t=e[i++])t===e[i]&&(r=n.push(i));while(r--)he.call(e,n[r],1)}return o=null,e},ce.fn.uniqueSort=function(){return this.pushStack(ce.uniqueSort(ae.apply(this)))},(b=ce.expr={cacheLength:50,createPseudo:F,match:D,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1<t.indexOf(i):"$="===r?i&&t.slice(-i.length)===i:"~="===r?-1<(" "+t.replace(v," ")+" ").indexOf(i):"|="===r&&(t===i||t.slice(0,i.length+1)===i+"-"))}},CHILD:function(d,e,t,h,g){var v="nth"!==d.slice(0,3),y="last"!==d.slice(-4),m="of-type"===e;return 1===h&&0===g?function(e){return!!e.parentNode}:function(e,t,n){var r,i,o,a,s,u=v!==y?"nextSibling":"previousSibling",l=e.parentNode,c=m&&e.nodeName.toLowerCase(),f=!n&&!m,p=!1;if(l){if(v){while(u){o=e;while(o=o[u])if(m?fe(o,c):1===o.nodeType)return!1;s=u="only"===d&&!s&&"nextSibling"}return!0}if(s=[y?l.firstChild:l.lastChild],y&&f){p=(a=(r=(i=l[S]||(l[S]={}))[d]||[])[0]===E&&r[1])&&r[2],o=a&&l.childNodes[a];while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if(1===o.nodeType&&++p&&o===e){i[d]=[E,a,p];break}}else if(f&&(p=a=(r=(i=e[S]||(e[S]={}))[d]||[])[0]===E&&r[1]),!1===p)while(o=++a&&o&&o[u]||(p=a=0)||s.pop())if((m?fe(o,c):1===o.nodeType)&&++p&&(f&&((i=o[S]||(o[S]={}))[d]=[E,p]),o===e))break;return(p-=g)===h||p%h==0&&0<=p/h}}},PSEUDO:function(e,o){var t,a=b.pseudos[e]||b.setFilters[e.toLowerCase()]||I.error("unsupported pseudo: "+e);return a[S]?a(o):1<a.length?(t=[e,e,"",o],b.setFilters.hasOwnProperty(e.toLowerCase())?F(function(e,t){var n,r=a(e,o),i=r.length;while(i--)e[n=se.call(e,r[i])]=!(t[n]=r[i])}):function(e){return a(e,0,t)}):a}},pseudos:{not:F(function(e){var r=[],i=[],s=ne(e.replace(ve,"$1"));return s[S]?F(function(e,t,n,r){var i,o=s(e,null,r,[]),a=e.length;while(a--)(i=o[a])&&(e[a]=!(t[a]=i))}):function(e,t,n){return r[0]=e,s(r,null,n,i),r[0]=null,!i.pop()}}),has:F(function(t){return function(e){return 0<I(t,e).length}}),contains:F(function(t){return t=t.replace(O,P),function(e){return-1<(e.textContent||ce.text(e)).indexOf(t)}}),lang:F(function(n){return A.test(n||"")||I.error("unsupported lang: "+n),n=n.replace(O,P).toLowerCase(),function(e){var t;do{if(t=C?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(t=t.toLowerCase())===n||0===t.indexOf(n+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var t=ie.location&&ie.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===r},focus:function(e){return e===function(){try{return T.activeElement}catch(e){}}()&&T.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:z(!1),disabled:z(!0),checked:function(e){return fe(e,"input")&&!!e.checked||fe(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!b.pseudos.empty(e)},header:function(e){return q.test(e.nodeName)},input:function(e){return N.test(e.nodeName)},button:function(e){return fe(e,"input")&&"button"===e.type||fe(e,"button")},text:function(e){var t;return fe(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:X(function(){return[0]}),last:X(function(e,t){return[t-1]}),eq:X(function(e,t,n){return[n<0?n+t:n]}),even:X(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:X(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:X(function(e,t,n){var r;for(r=n<0?n+t:t<n?t:n;0<=--r;)e.push(r);return e}),gt:X(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=b.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})b.pseudos[e]=B(e);for(e in{submit:!0,reset:!0})b.pseudos[e]=_(e);function G(){}function Y(e,t){var n,r,i,o,a,s,u,l=c[e+" "];if(l)return t?0:l.slice(0);a=e,s=[],u=b.preFilter;while(a){for(o in n&&!(r=y.exec(a))||(r&&(a=a.slice(r[0].length)||a),s.push(i=[])),n=!1,(r=m.exec(a))&&(n=r.shift(),i.push({value:n,type:r[0].replace(ve," ")}),a=a.slice(n.length)),b.filter)!(r=D[o].exec(a))||u[o]&&!(r=u[o](r))||(n=r.shift(),i.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?I.error(e):c(e,s).slice(0)}function Q(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function J(a,e,t){var s=e.dir,u=e.next,l=u||s,c=t&&"parentNode"===l,f=n++;return e.first?function(e,t,n){while(e=e[s])if(1===e.nodeType||c)return a(e,t,n);return!1}:function(e,t,n){var r,i,o=[E,f];if(n){while(e=e[s])if((1===e.nodeType||c)&&a(e,t,n))return!0}else while(e=e[s])if(1===e.nodeType||c)if(i=e[S]||(e[S]={}),u&&fe(e,u))e=e[s]||e;else{if((r=i[l])&&r[0]===E&&r[1]===f)return o[2]=r[2];if((i[l]=o)[2]=a(e,t,n))return!0}return!1}}function K(i){return 1<i.length?function(e,t,n){var r=i.length;while(r--)if(!i[r](e,t,n))return!1;return!0}:i[0]}function Z(e,t,n,r,i){for(var o,a=[],s=0,u=e.length,l=null!=t;s<u;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),l&&t.push(s)));return a}function ee(d,h,g,v,y,e){return v&&!v[S]&&(v=ee(v)),y&&!y[S]&&(y=ee(y,e)),F(function(e,t,n,r){var i,o,a,s,u=[],l=[],c=t.length,f=e||function(e,t,n){for(var r=0,i=t.length;r<i;r++)I(e,t[r],n);return n}(h||"*",n.nodeType?[n]:n,[]),p=!d||!e&&h?f:Z(f,u,d,n,r);if(g?g(p,s=y||(e?d:c||v)?[]:t,n,r):s=p,v){i=Z(s,l),v(i,[],n,r),o=i.length;while(o--)(a=i[o])&&(s[l[o]]=!(p[l[o]]=a))}if(e){if(y||d){if(y){i=[],o=s.length;while(o--)(a=s[o])&&i.push(p[o]=a);y(null,s=[],i,r)}o=s.length;while(o--)(a=s[o])&&-1<(i=y?se.call(e,a):u[o])&&(e[i]=!(t[i]=a))}}else s=Z(s===t?s.splice(c,s.length):s),y?y(null,t,s,r):k.apply(t,s)})}function te(e){for(var i,t,n,r=e.length,o=b.relative[e[0].type],a=o||b.relative[" "],s=o?1:0,u=J(function(e){return e===i},a,!0),l=J(function(e){return-1<se.call(i,e)},a,!0),c=[function(e,t,n){var r=!o&&(n||t!=w)||((i=t).nodeType?u(e,t,n):l(e,t,n));return i=null,r}];s<r;s++)if(t=b.relative[e[s].type])c=[J(K(c),t)];else{if((t=b.filter[e[s].type].apply(null,e[s].matches))[S]){for(n=++s;n<r;n++)if(b.relative[e[n].type])break;return ee(1<s&&K(c),1<s&&Q(e.slice(0,s-1).concat({value:" "===e[s-2].type?"*":""})).replace(ve,"$1"),t,s<n&&te(e.slice(s,n)),n<r&&te(e=e.slice(n)),n<r&&Q(e))}c.push(t)}return K(c)}function ne(e,t){var n,v,y,m,x,r,i=[],o=[],a=u[e+" "];if(!a){t||(t=Y(e)),n=t.length;while(n--)(a=te(t[n]))[S]?i.push(a):o.push(a);(a=u(e,(v=o,m=0<(y=i).length,x=0<v.length,r=function(e,t,n,r,i){var o,a,s,u=0,l="0",c=e&&[],f=[],p=w,d=e||x&&b.find.TAG("*",i),h=E+=null==p?1:Math.random()||.1,g=d.length;for(i&&(w=t==T||t||i);l!==g&&null!=(o=d[l]);l++){if(x&&o){a=0,t||o.ownerDocument==T||(V(o),n=!C);while(s=v[a++])if(s(o,t||T,n)){k.call(r,o);break}i&&(E=h)}m&&((o=!s&&o)&&u--,e&&c.push(o))}if(u+=l,m&&l!==u){a=0;while(s=y[a++])s(c,f,t,n);if(e){if(0<u)while(l--)c[l]||f[l]||(f[l]=pe.call(r));f=Z(f)}k.apply(r,f),i&&!e&&0<f.length&&1<u+y.length&&ce.uniqueSort(r)}return i&&(E=h,w=p),c},m?F(r):r))).selector=e}return a}function re(e,t,n,r){var i,o,a,s,u,l="function"==typeof e&&e,c=!r&&Y(e=l.selector||e);if(n=n||[],1===c.length){if(2<(o=c[0]=c[0].slice(0)).length&&"ID"===(a=o[0]).type&&9===t.nodeType&&C&&b.relative[o[1].type]){if(!(t=(b.find.ID(a.matches[0].replace(O,P),t)||[])[0]))return n;l&&(t=t.parentNode),e=e.slice(o.shift().value.length)}i=D.needsContext.test(e)?0:o.length;while(i--){if(a=o[i],b.relative[s=a.type])break;if((u=b.find[s])&&(r=u(a.matches[0].replace(O,P),H.test(o[0].type)&&U(t.parentNode)||t))){if(o.splice(i,1),!(e=r.length&&Q(o)))return k.apply(n,r),n;break}}}return(l||ne(e,c))(r,t,!C,n,!t||H.test(e)&&U(t.parentNode)||t),n}G.prototype=b.filters=b.pseudos,b.setFilters=new G,le.sortStable=S.split("").sort(l).join("")===S,V(),le.sortDetached=$(function(e){return 1&e.compareDocumentPosition(T.createElement("fieldset"))}),ce.find=I,ce.expr[":"]=ce.expr.pseudos,ce.unique=ce.uniqueSort,I.compile=ne,I.select=re,I.setDocument=V,I.tokenize=Y,I.escape=ce.escapeSelector,I.getText=ce.text,I.isXML=ce.isXMLDoc,I.selectors=ce.expr,I.support=ce.support,I.uniqueSort=ce.uniqueSort}();var d=function(e,t,n){var r=[],i=void 0!==n;while((e=e[t])&&9!==e.nodeType)if(1===e.nodeType){if(i&&ce(e).is(n))break;r.push(e)}return r},h=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},b=ce.expr.match.needsContext,w=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1<se.call(n,e)!==r}):ce.filter(n,e,r)}ce.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?ce.find.matchesSelector(r,e)?[r]:[]:ce.find.matches(e,ce.grep(t,function(e){return 1===e.nodeType}))},ce.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(ce(e).filter(function(){for(t=0;t<r;t++)if(ce.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)ce.find(e,i[t],n);return 1<r?ce.uniqueSort(n):n},filter:function(e){return this.pushStack(T(this,e||[],!1))},not:function(e){return this.pushStack(T(this,e||[],!0))},is:function(e){return!!T(this,"string"==typeof e&&b.test(e)?ce(e):e||[],!1).length}});var k,S=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(ce.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&ce(e);if(!b.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?-1<a.index(n):1===n.nodeType&&ce.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(1<o.length?ce.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?se.call(ce(e),this[0]):se.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(ce.uniqueSort(ce.merge(this.get(),ce(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),ce.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return d(e,"parentNode")},parentsUntil:function(e,t,n){return d(e,"parentNode",n)},next:function(e){return A(e,"nextSibling")},prev:function(e){return A(e,"previousSibling")},nextAll:function(e){return d(e,"nextSibling")},prevAll:function(e){return d(e,"previousSibling")},nextUntil:function(e,t,n){return d(e,"nextSibling",n)},prevUntil:function(e,t,n){return d(e,"previousSibling",n)},siblings:function(e){return h((e.parentNode||{}).firstChild,e)},children:function(e){return h(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(fe(e,"template")&&(e=e.content||e),ce.merge([],e.childNodes))}},function(r,i){ce.fn[r]=function(e,t){var n=ce.map(this,i,e);return"Until"!==r.slice(-5)&&(t=e),t&&"string"==typeof t&&(n=ce.filter(t,n)),1<this.length&&(j[r]||ce.uniqueSort(n),E.test(r)&&n.reverse()),this.pushStack(n)}});var D=/[^\x20\t\r\n\f]+/g;function N(e){return e}function q(e){throw e}function L(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}ce.Callbacks=function(r){var e,n;r="string"==typeof r?(e=r,n={},ce.each(e.match(D)||[],function(e,t){n[t]=!0}),n):ce.extend({},r);var i,t,o,a,s=[],u=[],l=-1,c=function(){for(a=a||r.once,o=i=!0;u.length;l=-1){t=u.shift();while(++l<s.length)!1===s[l].apply(t[0],t[1])&&r.stopOnFalse&&(l=s.length,t=!1)}r.memory||(t=!1),i=!1,a&&(s=t?[]:"")},f={add:function(){return s&&(t&&!i&&(l=s.length-1,u.push(t)),function n(e){ce.each(e,function(e,t){v(t)?r.unique&&f.has(t)||s.push(t):t&&t.length&&"string"!==x(t)&&n(t)})}(arguments),t&&!i&&c()),this},remove:function(){return ce.each(arguments,function(e,t){var n;while(-1<(n=ce.inArray(t,s,n)))s.splice(n,1),n<=l&&l--}),this},has:function(e){return e?-1<ce.inArray(e,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=u=[],s=t="",this},disabled:function(){return!s},lock:function(){return a=u=[],t||i||(s=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],u.push(t),i||c()),this},fire:function(){return f.fireWith(this,arguments),this},fired:function(){return!!o}};return f},ce.extend({Deferred:function(e){var o=[["notify","progress",ce.Callbacks("memory"),ce.Callbacks("memory"),2],["resolve","done",ce.Callbacks("once memory"),ce.Callbacks("once memory"),0,"resolved"],["reject","fail",ce.Callbacks("once memory"),ce.Callbacks("once memory"),1,"rejected"]],i="pending",a={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},"catch":function(e){return a.then(null,e)},pipe:function(){var i=arguments;return ce.Deferred(function(r){ce.each(o,function(e,t){var n=v(i[t[4]])&&i[t[4]];s[t[1]](function(){var e=n&&n.apply(this,arguments);e&&v(e.promise)?e.promise().progress(r.notify).done(r.resolve).fail(r.reject):r[t[0]+"With"](this,n?[e]:arguments)})}),i=null}).promise()},then:function(t,n,r){var u=0;function l(i,o,a,s){return function(){var n=this,r=arguments,e=function(){var e,t;if(!(i<u)){if((e=a.apply(n,r))===o.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,v(t)?s?t.call(e,l(u,o,N,s),l(u,o,q,s)):(u++,t.call(e,l(u,o,N,s),l(u,o,q,s),l(u,o,N,o.notifyWith))):(a!==N&&(n=void 0,r=[e]),(s||o.resolveWith)(n,r))}},t=s?e:function(){try{e()}catch(e){ce.Deferred.exceptionHook&&ce.Deferred.exceptionHook(e,t.error),u<=i+1&&(a!==q&&(n=void 0,r=[e]),o.rejectWith(n,r))}};i?t():(ce.Deferred.getErrorHook?t.error=ce.Deferred.getErrorHook():ce.Deferred.getStackHook&&(t.error=ce.Deferred.getStackHook()),ie.setTimeout(t))}}return ce.Deferred(function(e){o[0][3].add(l(0,e,v(r)?r:N,e.notifyWith)),o[1][3].add(l(0,e,v(t)?t:N)),o[2][3].add(l(0,e,v(n)?n:q))}).promise()},promise:function(e){return null!=e?ce.extend(e,a):a}},s={};return ce.each(o,function(e,t){var n=t[2],r=t[5];a[t[1]]=n.add,r&&n.add(function(){i=r},o[3-e][2].disable,o[3-e][3].disable,o[0][2].lock,o[0][3].lock),n.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=n.fireWith}),a.promise(s),e&&e.call(s,s),s},when:function(e){var n=arguments.length,t=n,r=Array(t),i=ae.call(arguments),o=ce.Deferred(),a=function(t){return function(e){r[t]=this,i[t]=1<arguments.length?ae.call(arguments):e,--n||o.resolveWith(r,i)}};if(n<=1&&(L(e,o.done(a(t)).resolve,o.reject,!n),"pending"===o.state()||v(i[t]&&i[t].then)))return o.then();while(t--)L(i[t],a(t),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;ce.Deferred.exceptionHook=function(e,t){ie.console&&ie.console.warn&&e&&H.test(e.name)&&ie.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},ce.readyException=function(e){ie.setTimeout(function(){throw e})};var O=ce.Deferred();function P(){C.removeEventListener("DOMContentLoaded",P),ie.removeEventListener("load",P),ce.ready()}ce.fn.ready=function(e){return O.then(e)["catch"](function(e){ce.readyException(e)}),this},ce.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--ce.readyWait:ce.isReady)||(ce.isReady=!0)!==e&&0<--ce.readyWait||O.resolveWith(C,[ce])}}),ce.ready.then=O.then,"complete"===C.readyState||"loading"!==C.readyState&&!C.documentElement.doScroll?ie.setTimeout(ce.ready):(C.addEventListener("DOMContentLoaded",P),ie.addEventListener("load",P));var M=function(e,t,n,r,i,o,a){var s=0,u=e.length,l=null==n;if("object"===x(n))for(s in i=!0,n)M(e,t,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,v(r)||(a=!0),l&&(a?(t.call(e,r),t=null):(l=t,t=function(e,t,n){return l.call(ce(e),n)})),t))for(;s<u;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:l?t.call(e):u?t(e[0],n):o},R=/^-ms-/,I=/-([a-z])/g;function W(e,t){return t.toUpperCase()}function F(e){return e.replace(R,"ms-").replace(I,W)}var $=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function B(){this.expando=ce.expando+B.uid++}B.uid=1,B.prototype={cache:function(e){var t=e[this.expando];return t||(t={},$(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[F(t)]=n;else for(r in t)i[F(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][F(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(F):(t=F(t))in r?[t]:t.match(D)||[]).length;while(n--)delete r[t[n]]}(void 0===t||ce.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!ce.isEmptyObject(t)}};var _=new B,z=new B,X=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,U=/[A-Z]/g;function V(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(U,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:X.test(i)?JSON.parse(i):i)}catch(e){}z.set(e,t,n)}else n=void 0;return n}ce.extend({hasData:function(e){return z.hasData(e)||_.hasData(e)},data:function(e,t,n){return z.access(e,t,n)},removeData:function(e,t){z.remove(e,t)},_data:function(e,t,n){return _.access(e,t,n)},_removeData:function(e,t){_.remove(e,t)}}),ce.fn.extend({data:function(n,e){var t,r,i,o=this[0],a=o&&o.attributes;if(void 0===n){if(this.length&&(i=z.get(o),1===o.nodeType&&!_.get(o,"hasDataAttrs"))){t=a.length;while(t--)a[t]&&0===(r=a[t].name).indexOf("data-")&&(r=F(r.slice(5)),V(o,r,i[r]));_.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof n?this.each(function(){z.set(this,n)}):M(this,function(e){var t;if(o&&void 0===e)return void 0!==(t=z.get(o,n))?t:void 0!==(t=V(o,n))?t:void 0;this.each(function(){z.set(this,n,e)})},null,e,1<arguments.length,null,!0)},removeData:function(e){return this.each(function(){z.remove(this,e)})}}),ce.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=_.get(e,t),n&&(!r||Array.isArray(n)?r=_.access(e,t,ce.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=ce.queue(e,t),r=n.length,i=n.shift(),o=ce._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){ce.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return _.get(e,n)||_.access(e,n,{empty:ce.Callbacks("once memory").add(function(){_.remove(e,[t+"queue",n])})})}}),ce.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?ce.queue(this[0],t):void 0===n?this:this.each(function(){var e=ce.queue(this,t,n);ce._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&ce.dequeue(this,t)})},dequeue:function(e){return this.each(function(){ce.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=ce.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};"string"!=typeof e&&(t=e,e=void 0),e=e||"fx";while(a--)(n=_.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var G=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Y=new RegExp("^(?:([+-])=|)("+G+")([a-z%]*)$","i"),Q=["Top","Right","Bottom","Left"],J=C.documentElement,K=function(e){return ce.contains(e.ownerDocument,e)},Z={composed:!0};J.getRootNode&&(K=function(e){return ce.contains(e.ownerDocument,e)||e.getRootNode(Z)===e.ownerDocument});var ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&K(e)&&"none"===ce.css(e,"display")};function te(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return ce.css(e,t,"")},u=s(),l=n&&n[3]||(ce.cssNumber[t]?"":"px"),c=e.nodeType&&(ce.cssNumber[t]||"px"!==l&&+u)&&Y.exec(ce.css(e,t));if(c&&c[3]!==l){u/=2,l=l||c[3],c=+u||1;while(a--)ce.style(e,t,c+l),(1-o)*(1-(o=s()/u||.5))<=0&&(a=0),c/=o;c*=2,ce.style(e,t,c+l),n=n||[]}return n&&(c=+c||+u||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=l,r.start=c,r.end=i)),i}var ne={};function re(e,t){for(var n,r,i,o,a,s,u,l=[],c=0,f=e.length;c<f;c++)(r=e[c]).style&&(n=r.style.display,t?("none"===n&&(l[c]=_.get(r,"display")||null,l[c]||(r.style.display="")),""===r.style.display&&ee(r)&&(l[c]=(u=a=o=void 0,a=(i=r).ownerDocument,s=i.nodeName,(u=ne[s])||(o=a.body.appendChild(a.createElement(s)),u=ce.css(o,"display"),o.parentNode.removeChild(o),"none"===u&&(u="block"),ne[s]=u)))):"none"!==n&&(l[c]="none",_.set(r,"display",n)));for(c=0;c<f;c++)null!=l[c]&&(e[c].style.display=l[c]);return e}ce.fn.extend({show:function(){return re(this,!0)},hide:function(){return re(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?ce(this).show():ce(this).hide()})}});var xe,be,we=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="<textarea>x</textarea>",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="<option></option>",le.option=!!xe.lastChild;var ke={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 Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n<r;n++)_.set(e[n],"globalEval",!t||_.get(t[n],"globalEval"))}ke.tbody=ke.tfoot=ke.colgroup=ke.caption=ke.thead,ke.th=ke.td,le.option||(ke.optgroup=ke.option=[1,"<select multiple='multiple'>","</select>"]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d<h;d++)if((o=e[d])||0===o)if("object"===x(o))ce.merge(p,o.nodeType?[o]:o);else if(je.test(o)){a=a||f.appendChild(t.createElement("div")),s=(Te.exec(o)||["",""])[1].toLowerCase(),u=ke[s]||ke._default,a.innerHTML=u[1]+ce.htmlPrefilter(o)+u[2],c=u[0];while(c--)a=a.lastChild;ce.merge(p,a.childNodes),(a=f.firstChild).textContent=""}else p.push(t.createTextNode(o));f.textContent="",d=0;while(o=p[d++])if(r&&-1<ce.inArray(o,r))i&&i.push(o);else if(l=K(o),a=Se(f.appendChild(o),"script"),l&&Ee(a),n){c=0;while(o=a[c++])Ce.test(o.type||"")&&n.push(o)}return f}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function qe(){return!1}function Le(e,t,n,r,i,o){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(r=r||n,n=void 0),t)Le(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=qe;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return ce().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=ce.guid++)),e.each(function(){ce.event.add(this,t,i,r,n)})}function He(e,r,t){t?(_.set(e,r,!1),ce.event.add(e,r,{namespace:!1,handler:function(e){var t,n=_.get(this,r);if(1&e.isTrigger&&this[r]){if(n)(ce.event.special[r]||{}).delegateType&&e.stopPropagation();else if(n=ae.call(arguments),_.set(this,r,n),this[r](),t=_.get(this,r),_.set(this,r,!1),n!==t)return e.stopImmediatePropagation(),e.preventDefault(),t}else n&&(_.set(this,r,ce.event.trigger(n[0],n.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===_.get(e,r)&&ce.event.add(e,r,Ne)}ce.event={global:{},add:function(t,e,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.get(t);if($(t)){n.handler&&(n=(o=n).handler,i=o.selector),i&&ce.find.matchesSelector(J,i),n.guid||(n.guid=ce.guid++),(u=v.events)||(u=v.events=Object.create(null)),(a=v.handle)||(a=v.handle=function(e){return"undefined"!=typeof ce&&ce.event.triggered!==e.type?ce.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(D)||[""]).length;while(l--)d=g=(s=De.exec(e[l])||[])[1],h=(s[2]||"").split(".").sort(),d&&(f=ce.event.special[d]||{},d=(i?f.delegateType:f.bindType)||d,f=ce.event.special[d]||{},c=ce.extend({type:d,origType:g,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&ce.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=u[d])||((p=u[d]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(t,r,h,a)||t.addEventListener&&t.addEventListener(d,a)),f.add&&(f.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,c):p.push(c),ce.event.global[d]=!0)}},remove:function(e,t,n,r,i){var o,a,s,u,l,c,f,p,d,h,g,v=_.hasData(e)&&_.get(e);if(v&&(u=v.events)){l=(t=(t||"").match(D)||[""]).length;while(l--)if(d=g=(s=De.exec(t[l])||[])[1],h=(s[2]||"").split(".").sort(),d){f=ce.event.special[d]||{},p=u[d=(r?f.delegateType:f.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;while(o--)c=p[o],!i&&g!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(p.splice(o,1),c.selector&&p.delegateCount--,f.remove&&f.remove.call(e,c));a&&!p.length&&(f.teardown&&!1!==f.teardown.call(e,h,v.handle)||ce.removeEvent(e,d,v.handle),delete u[d])}else for(d in u)ce.event.remove(e,d+t[l],n,r,!0);ce.isEmptyObject(u)&&_.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=new Array(arguments.length),u=ce.event.fix(e),l=(_.get(this,"events")||Object.create(null))[u.type]||[],c=ce.event.special[u.type]||{};for(s[0]=u,t=1;t<arguments.length;t++)s[t]=arguments[t];if(u.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,u)){a=ce.event.handlers.call(this,u,l),t=0;while((i=a[t++])&&!u.isPropagationStopped()){u.currentTarget=i.elem,n=0;while((o=i.handlers[n++])&&!u.isImmediatePropagationStopped())u.rnamespace&&!1!==o.namespace&&!u.rnamespace.test(o.namespace)||(u.handleObj=o,u.data=o.data,void 0!==(r=((ce.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,s))&&!1===(u.result=r)&&(u.preventDefault(),u.stopPropagation()))}return c.postDispatch&&c.postDispatch.call(this,u),u.result}},handlers:function(e,t){var n,r,i,o,a,s=[],u=t.delegateCount,l=e.target;if(u&&l.nodeType&&!("click"===e.type&&1<=e.button))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==e.type||!0!==l.disabled)){for(o=[],a={},n=0;n<u;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?-1<ce(i,this).index(l):ce.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,u<t.length&&s.push({elem:l,handlers:t.slice(u)}),s},addProp:function(t,e){Object.defineProperty(ce.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(e){return e[ce.expando]?e:new ce.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click",!0),!1},trigger:function(e){var t=this||e;return we.test(t.type)&&t.click&&fe(t,"input")&&He(t,"click"),!0},_default:function(e){var t=e.target;return we.test(t.type)&&t.click&&fe(t,"input")&&_.get(t,"click")||fe(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},ce.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},ce.Event=function(e,t){if(!(this instanceof ce.Event))return new ce.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:qe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&ce.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[ce.expando]=!0},ce.Event.prototype={constructor:ce.Event,isDefaultPrevented:qe,isPropagationStopped:qe,isImmediatePropagationStopped:qe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},ce.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,code:!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:!0},ce.event.addProp),ce.each({focus:"focusin",blur:"focusout"},function(r,i){function o(e){if(C.documentMode){var t=_.get(this,"handle"),n=ce.event.fix(e);n.type="focusin"===e.type?"focus":"blur",n.isSimulated=!0,t(e),n.target===n.currentTarget&&t(n)}else ce.event.simulate(i,e.target,ce.event.fix(e))}ce.event.special[r]={setup:function(){var e;if(He(this,r,!0),!C.documentMode)return!1;(e=_.get(this,i))||this.addEventListener(i,o),_.set(this,i,(e||0)+1)},trigger:function(){return He(this,r),!0},teardown:function(){var e;if(!C.documentMode)return!1;(e=_.get(this,i)-1)?_.set(this,i,e):(this.removeEventListener(i,o),_.remove(this,i))},_default:function(e){return _.get(e.target,r)},delegateType:i},ce.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i);n||(C.documentMode?this.addEventListener(i,o):e.addEventListener(r,o,!0)),_.set(t,i,(n||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=C.documentMode?this:e,n=_.get(t,i)-1;n?_.set(t,i,n):(C.documentMode?this.removeEventListener(i,o):e.removeEventListener(r,o,!0),_.remove(t,i))}}}),ce.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,i){ce.event.special[e]={delegateType:i,bindType:i,handle:function(e){var t,n=e.relatedTarget,r=e.handleObj;return n&&(n===this||ce.contains(this,n))||(e.type=r.origType,t=r.handler.apply(this,arguments),e.type=i),t}}}),ce.fn.extend({on:function(e,t,n,r){return Le(this,e,t,n,r)},one:function(e,t,n,r){return Le(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,ce(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=qe),this.each(function(){ce.event.remove(this,e,n,t)})}});var Oe=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,Me=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n<r;n++)ce.event.add(t,i,s[i][n]);z.hasData(e)&&(o=z.access(e),a=ce.extend({},o),z.set(t,a))}}function $e(n,r,i,o){r=g(r);var e,t,a,s,u,l,c=0,f=n.length,p=f-1,d=r[0],h=v(d);if(h||1<f&&"string"==typeof d&&!le.checkClone&&Pe.test(d))return n.each(function(e){var t=n.eq(e);h&&(r[0]=d.call(this,e,t.html())),$e(t,r,i,o)});if(f&&(t=(e=Ae(r,n[0].ownerDocument,!1,n,o)).firstChild,1===e.childNodes.length&&(e=t),t||o)){for(s=(a=ce.map(Se(e,"script"),Ie)).length;c<f;c++)u=e,c!==p&&(u=ce.clone(u,!0,!0),s&&ce.merge(a,Se(u,"script"))),i.call(n[c],u,c);if(s)for(l=a[a.length-1].ownerDocument,ce.map(a,We),c=0;c<s;c++)u=a[c],Ce.test(u.type||"")&&!_.access(u,"globalEval")&&ce.contains(l,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?ce._evalUrl&&!u.noModule&&ce._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},l):m(u.textContent.replace(Me,""),u,l))}return n}function Be(e,t,n){for(var r,i=t?ce.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ce.cleanData(Se(r)),r.parentNode&&(n&&K(r)&&Ee(Se(r,"script")),r.parentNode.removeChild(r));return e}ce.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,a,s,u,l,c=e.cloneNode(!0),f=K(e);if(!(le.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||ce.isXMLDoc(e)))for(a=Se(c),r=0,i=(o=Se(e)).length;r<i;r++)s=o[r],u=a[r],void 0,"input"===(l=u.nodeName.toLowerCase())&&we.test(s.type)?u.checked=s.checked:"input"!==l&&"textarea"!==l||(u.defaultValue=s.defaultValue);if(t)if(n)for(o=o||Se(e),a=a||Se(c),r=0,i=o.length;r<i;r++)Fe(o[r],a[r]);else Fe(e,c);return 0<(a=Se(c,"script")).length&&Ee(a,!f&&Se(e,"script")),c},cleanData:function(e){for(var t,n,r,i=ce.event.special,o=0;void 0!==(n=e[o]);o++)if($(n)){if(t=n[_.expando]){if(t.events)for(r in t.events)i[r]?ce.event.remove(n,r):ce.removeEvent(n,r,t.handle);n[_.expando]=void 0}n[z.expando]&&(n[z.expando]=void 0)}}}),ce.fn.extend({detach:function(e){return Be(this,e,!0)},remove:function(e){return Be(this,e)},text:function(e){return M(this,function(e){return void 0===e?ce.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return $e(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Re(this,e).appendChild(e)})},prepend:function(){return $e(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Re(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return $e(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(ce.cleanData(Se(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return ce.clone(this,e,t)})},html:function(e){return M(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!ke[(Te.exec(e)||["",""])[1].toLowerCase()]){e=ce.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(ce.cleanData(Se(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var n=[];return $e(this,arguments,function(e){var t=this.parentNode;ce.inArray(this,n)<0&&(ce.cleanData(Se(this)),t&&t.replaceChild(e,this))},n)}}),ce.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,a){ce.fn[e]=function(e){for(var t,n=[],r=ce(e),i=r.length-1,o=0;o<=i;o++)t=o===i?this:this.clone(!0),ce(r[o])[a](t),s.apply(n,t.get());return this.pushStack(n)}});var _e=new RegExp("^("+G+")(?!px)[a-z%]+$","i"),ze=/^--/,Xe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=ie),t.getComputedStyle(e)},Ue=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ve=new RegExp(Q.join("|"),"i");function Ge(e,t,n){var r,i,o,a,s=ze.test(t),u=e.style;return(n=n||Xe(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(ve,"$1")||void 0),""!==a||K(e)||(a=ce.style(e,t)),!le.pixelBoxStyles()&&_e.test(a)&&Ve.test(t)&&(r=u.width,i=u.minWidth,o=u.maxWidth,u.minWidth=u.maxWidth=u.width=a,a=n.width,u.width=r,u.minWidth=i,u.maxWidth=o)),void 0!==a?a+"":a}function Ye(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(l){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",l.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",J.appendChild(u).appendChild(l);var e=ie.getComputedStyle(l);n="1%"!==e.top,s=12===t(e.marginLeft),l.style.right="60%",o=36===t(e.right),r=36===t(e.width),l.style.position="absolute",i=12===t(l.offsetWidth/3),J.removeChild(u),l=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,o,a,s,u=C.createElement("div"),l=C.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",le.clearCloneStyle="content-box"===l.style.backgroundClip,ce.extend(le,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),o},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),s},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==a&&(e=C.createElement("table"),t=C.createElement("tr"),n=C.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",J.appendChild(e).appendChild(t).appendChild(n),r=ie.getComputedStyle(t),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,J.removeChild(e)),a}}))}();var Qe=["Webkit","Moz","ms"],Je=C.createElement("div").style,Ke={};function Ze(e){var t=ce.cssProps[e]||Ke[e];return t||(e in Je?e:Ke[e]=function(e){var t=e[0].toUpperCase()+e.slice(1),n=Qe.length;while(n--)if((e=Qe[n]+t)in Je)return e}(e)||e)}var et=/^(none|table(?!-c[ea]).+)/,tt={position:"absolute",visibility:"hidden",display:"block"},nt={letterSpacing:"0",fontWeight:"400"};function rt(e,t,n){var r=Y.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function it(e,t,n,r,i,o){var a="width"===t?1:0,s=0,u=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=ce.css(e,n+Q[a],!0,i)),r?("content"===n&&(u-=ce.css(e,"padding"+Q[a],!0,i)),"margin"!==n&&(u-=ce.css(e,"border"+Q[a]+"Width",!0,i))):(u+=ce.css(e,"padding"+Q[a],!0,i),"padding"!==n?u+=ce.css(e,"border"+Q[a]+"Width",!0,i):s+=ce.css(e,"border"+Q[a]+"Width",!0,i));return!r&&0<=o&&(u+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-u-s-.5))||0),u+l}function ot(e,t,n){var r=Xe(e),i=(!le.boxSizingReliable()||n)&&"border-box"===ce.css(e,"boxSizing",!1,r),o=i,a=Ge(e,t,r),s="offset"+t[0].toUpperCase()+t.slice(1);if(_e.test(a)){if(!n)return a;a="auto"}return(!le.boxSizingReliable()&&i||!le.reliableTrDimensions()&&fe(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===ce.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===ce.css(e,"boxSizing",!1,r),(o=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+it(e,t,n||(i?"border":"content"),o,r,a)+"px"}function at(e,t,n,r,i){return new at.prototype.init(e,t,n,r,i)}ce.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ge(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=F(t),u=ze.test(t),l=e.style;if(u||(t=Ze(s)),a=ce.cssHooks[t]||ce.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:l[t];"string"===(o=typeof n)&&(i=Y.exec(n))&&i[1]&&(n=te(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||u||(n+=i&&i[3]||(ce.cssNumber[s]?"":"px")),le.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(u?l.setProperty(t,n):l[t]=n))}},css:function(e,t,n,r){var i,o,a,s=F(t);return ze.test(t)||(t=Ze(s)),(a=ce.cssHooks[t]||ce.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=Ge(e,t,r)),"normal"===i&&t in nt&&(i=nt[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),ce.each(["height","width"],function(e,u){ce.cssHooks[u]={get:function(e,t,n){if(t)return!et.test(ce.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,u,n):Ue(e,tt,function(){return ot(e,u,n)})},set:function(e,t,n){var r,i=Xe(e),o=!le.scrollboxSize()&&"absolute"===i.position,a=(o||n)&&"border-box"===ce.css(e,"boxSizing",!1,i),s=n?it(e,u,n,a,i):0;return a&&o&&(s-=Math.ceil(e["offset"+u[0].toUpperCase()+u.slice(1)]-parseFloat(i[u])-it(e,u,"border",!1,i)-.5)),s&&(r=Y.exec(t))&&"px"!==(r[3]||"px")&&(e.style[u]=t,t=ce.css(e,u)),rt(0,t,s)}}}),ce.cssHooks.marginLeft=Ye(le.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ge(e,"marginLeft"))||e.getBoundingClientRect().left-Ue(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),ce.each({margin:"",padding:"",border:"Width"},function(i,o){ce.cssHooks[i+o]={expand:function(e){for(var t=0,n={},r="string"==typeof e?e.split(" "):[e];t<4;t++)n[i+Q[t]+o]=r[t]||r[t-2]||r[0];return n}},"margin"!==i&&(ce.cssHooks[i+o].set=rt)}),ce.fn.extend({css:function(e,t){return M(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Xe(e),i=t.length;a<i;a++)o[t[a]]=ce.css(e,t[a],!1,r);return o}return void 0!==n?ce.style(e,t,n):ce.css(e,t)},e,t,1<arguments.length)}}),((ce.Tween=at).prototype={constructor:at,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||ce.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(ce.cssNumber[n]?"":"px")},cur:function(){var e=at.propHooks[this.prop];return e&&e.get?e.get(this):at.propHooks._default.get(this)},run:function(e){var t,n=at.propHooks[this.prop];return this.options.duration?this.pos=t=ce.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):at.propHooks._default.set(this),this}}).init.prototype=at.prototype,(at.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=ce.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){ce.fx.step[e.prop]?ce.fx.step[e.prop](e):1!==e.elem.nodeType||!ce.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:ce.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=at.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},ce.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},ce.fx=at.prototype.init,ce.fx.step={};var st,ut,lt,ct,ft=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function dt(){ut&&(!1===C.hidden&&ie.requestAnimationFrame?ie.requestAnimationFrame(dt):ie.setTimeout(dt,ce.fx.interval),ce.fx.tick())}function ht(){return ie.setTimeout(function(){st=void 0}),st=Date.now()}function gt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=Q[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function vt(e,t,n){for(var r,i=(yt.tweeners[t]||[]).concat(yt.tweeners["*"]),o=0,a=i.length;o<a;o++)if(r=i[o].call(n,t,e))return r}function yt(o,e,t){var n,a,r=0,i=yt.prefilters.length,s=ce.Deferred().always(function(){delete u.elem}),u=function(){if(a)return!1;for(var e=st||ht(),t=Math.max(0,l.startTime+l.duration-e),n=1-(t/l.duration||0),r=0,i=l.tweens.length;r<i;r++)l.tweens[r].run(n);return s.notifyWith(o,[l,n,t]),n<1&&i?t:(i||s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l]),!1)},l=s.promise({elem:o,props:ce.extend({},e),opts:ce.extend(!0,{specialEasing:{},easing:ce.easing._default},t),originalProperties:e,originalOptions:t,startTime:st||ht(),duration:t.duration,tweens:[],createTween:function(e,t){var n=ce.Tween(o,l.opts,e,t,l.opts.specialEasing[e]||l.opts.easing);return l.tweens.push(n),n},stop:function(e){var t=0,n=e?l.tweens.length:0;if(a)return this;for(a=!0;t<n;t++)l.tweens[t].run(1);return e?(s.notifyWith(o,[l,1,0]),s.resolveWith(o,[l,e])):s.rejectWith(o,[l,e]),this}}),c=l.props;for(!function(e,t){var n,r,i,o,a;for(n in e)if(i=t[r=F(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(a=ce.cssHooks[r])&&"expand"in a)for(n in o=a.expand(o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,l.opts.specialEasing);r<i;r++)if(n=yt.prefilters[r].call(l,o,c,l.opts))return v(n.stop)&&(ce._queueHooks(l.elem,l.opts.queue).stop=n.stop.bind(n)),n;return ce.map(c,vt,l),v(l.opts.start)&&l.opts.start.call(o,l),l.progress(l.opts.progress).done(l.opts.done,l.opts.complete).fail(l.opts.fail).always(l.opts.always),ce.fx.timer(ce.extend(u,{elem:o,anim:l,queue:l.opts.queue})),l}ce.Animation=ce.extend(yt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return te(n.elem,e,Y.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(D);for(var n,r=0,i=e.length;r<i;r++)n=e[r],yt.tweeners[n]=yt.tweeners[n]||[],yt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,a,s,u,l,c,f="width"in t||"height"in t,p=this,d={},h=e.style,g=e.nodeType&&ee(e),v=_.get(e,"fxshow");for(r in n.queue||(null==(a=ce._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,p.always(function(){p.always(function(){a.unqueued--,ce.queue(e,"fx").length||a.empty.fire()})})),t)if(i=t[r],ft.test(i)){if(delete t[r],o=o||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!v||void 0===v[r])continue;g=!0}d[r]=v&&v[r]||ce.style(e,r)}if((u=!ce.isEmptyObject(t))||!ce.isEmptyObject(d))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(l=v&&v.display)&&(l=_.get(e,"display")),"none"===(c=ce.css(e,"display"))&&(l?c=l:(re([e],!0),l=e.style.display||l,c=ce.css(e,"display"),re([e]))),("inline"===c||"inline-block"===c&&null!=l)&&"none"===ce.css(e,"float")&&(u||(p.done(function(){h.display=l}),null==l&&(c=h.display,l="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",p.always(function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]})),u=!1,d)u||(v?"hidden"in v&&(g=v.hidden):v=_.access(e,"fxshow",{display:l}),o&&(v.hidden=!g),g&&re([e],!0),p.done(function(){for(r in g||re([e]),_.remove(e,"fxshow"),d)ce.style(e,r,d[r])})),u=vt(g?v[r]:0,r,p),r in v||(v[r]=u.start,g&&(u.end=u.start,u.start=0))}],prefilter:function(e,t){t?yt.prefilters.unshift(e):yt.prefilters.push(e)}}),ce.speed=function(e,t,n){var r=e&&"object"==typeof e?ce.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return ce.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in ce.fx.speeds?r.duration=ce.fx.speeds[r.duration]:r.duration=ce.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&ce.dequeue(this,r.queue)},r},ce.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(t,e,n,r){var i=ce.isEmptyObject(t),o=ce.speed(e,n,r),a=function(){var e=yt(this,ce.extend({},t),o);(i||_.get(this,"finish"))&&e.stop(!0)};return a.finish=a,i||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(i,e,o){var a=function(e){var t=e.stop;delete e.stop,t(o)};return"string"!=typeof i&&(o=e,e=i,i=void 0),e&&this.queue(i||"fx",[]),this.each(function(){var e=!0,t=null!=i&&i+"queueHooks",n=ce.timers,r=_.get(this);if(t)r[t]&&r[t].stop&&a(r[t]);else for(t in r)r[t]&&r[t].stop&&pt.test(t)&&a(r[t]);for(t=n.length;t--;)n[t].elem!==this||null!=i&&n[t].queue!==i||(n[t].anim.stop(o),e=!1,n.splice(t,1));!e&&o||ce.dequeue(this,i)})},finish:function(a){return!1!==a&&(a=a||"fx"),this.each(function(){var e,t=_.get(this),n=t[a+"queue"],r=t[a+"queueHooks"],i=ce.timers,o=n?n.length:0;for(t.finish=!0,ce.queue(this,a,[]),r&&r.stop&&r.stop.call(this,!0),e=i.length;e--;)i[e].elem===this&&i[e].queue===a&&(i[e].anim.stop(!0),i.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),ce.each(["toggle","show","hide"],function(e,r){var i=ce.fn[r];ce.fn[r]=function(e,t,n){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(gt(r,!0),e,t,n)}}),ce.each({slideDown:gt("show"),slideUp:gt("hide"),slideToggle:gt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,r){ce.fn[e]=function(e,t,n){return this.animate(r,e,t,n)}}),ce.timers=[],ce.fx.tick=function(){var e,t=0,n=ce.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||ce.fx.stop(),st=void 0},ce.fx.timer=function(e){ce.timers.push(e),ce.fx.start()},ce.fx.interval=13,ce.fx.start=function(){ut||(ut=!0,dt())},ce.fx.stop=function(){ut=null},ce.fx.speeds={slow:600,fast:200,_default:400},ce.fn.delay=function(r,e){return r=ce.fx&&ce.fx.speeds[r]||r,e=e||"fx",this.queue(e,function(e,t){var n=ie.setTimeout(e,r);t.stop=function(){ie.clearTimeout(n)}})},lt=C.createElement("input"),ct=C.createElement("select").appendChild(C.createElement("option")),lt.type="checkbox",le.checkOn=""!==lt.value,le.optSelected=ct.selected,(lt=C.createElement("input")).value="t",lt.type="radio",le.radioValue="t"===lt.value;var mt,xt=ce.expr.attrHandle;ce.fn.extend({attr:function(e,t){return M(this,ce.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){ce.removeAttr(this,e)})}}),ce.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof e.getAttribute?ce.prop(e,t,n):(1===o&&ce.isXMLDoc(e)||(i=ce.attrHooks[t.toLowerCase()]||(ce.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void ce.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=ce.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!le.radioValue&&"radio"===t&&fe(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(D);if(i&&1===e.nodeType)while(n=i[r++])e.removeAttribute(n)}}),mt={set:function(e,t,n){return!1===t?ce.removeAttr(e,n):e.setAttribute(n,n),n}},ce.each(ce.expr.match.bool.source.match(/\w+/g),function(e,t){var a=xt[t]||ce.find.attr;xt[t]=function(e,t,n){var r,i,o=t.toLowerCase();return n||(i=xt[o],xt[o]=r,r=null!=a(e,t,n)?o:null,xt[o]=i),r}});var bt=/^(?:input|select|textarea|button)$/i,wt=/^(?:a|area)$/i;function Tt(e){return(e.match(D)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function kt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(D)||[]}ce.fn.extend({prop:function(e,t){return M(this,ce.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[ce.propFix[e]||e]})}}),ce.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&ce.isXMLDoc(e)||(t=ce.propFix[t]||t,i=ce.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=ce.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||wt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),le.optSelected||(ce.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),ce.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){ce.propFix[this.toLowerCase()]=this}),ce.fn.extend({addClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).addClass(t.call(this,e,Ct(this)))}):(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++)i=e[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this},removeClass:function(t){var e,n,r,i,o,a;return v(t)?this.each(function(e){ce(this).removeClass(t.call(this,e,Ct(this)))}):arguments.length?(e=kt(t)).length?this.each(function(){if(r=Ct(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<e.length;o++){i=e[o];while(-1<n.indexOf(" "+i+" "))n=n.replace(" "+i+" "," ")}a=Tt(n),r!==a&&this.setAttribute("class",a)}}):this:this.attr("class","")},toggleClass:function(t,n){var e,r,i,o,a=typeof t,s="string"===a||Array.isArray(t);return v(t)?this.each(function(e){ce(this).toggleClass(t.call(this,e,Ct(this),n),n)}):"boolean"==typeof n&&s?n?this.addClass(t):this.removeClass(t):(e=kt(t),this.each(function(){if(s)for(o=ce(this),i=0;i<e.length;i++)r=e[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==t&&"boolean"!==a||((r=Ct(this))&&_.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===t?"":_.get(this,"__className__")||""))}))},hasClass:function(e){var t,n,r=0;t=" "+e+" ";while(n=this[r++])if(1===n.nodeType&&-1<(" "+Tt(Ct(n))+" ").indexOf(t))return!0;return!1}});var St=/\r/g;ce.fn.extend({val:function(n){var r,e,i,t=this[0];return arguments.length?(i=v(n),this.each(function(e){var t;1===this.nodeType&&(null==(t=i?n.call(this,e,ce(this).val()):n)?t="":"number"==typeof t?t+="":Array.isArray(t)&&(t=ce.map(t,function(e){return null==e?"":e+""})),(r=ce.valHooks[this.type]||ce.valHooks[this.nodeName.toLowerCase()])&&"set"in r&&void 0!==r.set(this,t,"value")||(this.value=t))})):t?(r=ce.valHooks[t.type]||ce.valHooks[t.nodeName.toLowerCase()])&&"get"in r&&void 0!==(e=r.get(t,"value"))?e:"string"==typeof(e=t.value)?e.replace(St,""):null==e?"":e:void 0}}),ce.extend({valHooks:{option:{get:function(e){var t=ce.find.attr(e,"value");return null!=t?t:Tt(ce.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],u=a?o+1:i.length;for(r=o<0?u:a?o:0;r<u;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!fe(n.parentNode,"optgroup"))){if(t=ce(n).val(),a)return t;s.push(t)}return s},set:function(e,t){var n,r,i=e.options,o=ce.makeArray(t),a=i.length;while(a--)((r=i[a]).selected=-1<ce.inArray(ce.valHooks.option.get(r),o))&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),ce.each(["radio","checkbox"],function(){ce.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<ce.inArray(ce(e).val(),t)}},le.checkOn||(ce.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var Et=ie.location,jt={guid:Date.now()},At=/\?/;ce.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new ie.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||ce.error("Invalid XML: "+(n?ce.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t};var Dt=/^(?:focusinfocus|focusoutblur)$/,Nt=function(e){e.stopPropagation()};ce.extend(ce.event,{trigger:function(e,t,n,r){var i,o,a,s,u,l,c,f,p=[n||C],d=ue.call(e,"type")?e.type:e,h=ue.call(e,"namespace")?e.namespace.split("."):[];if(o=f=a=n=n||C,3!==n.nodeType&&8!==n.nodeType&&!Dt.test(d+ce.event.triggered)&&(-1<d.indexOf(".")&&(d=(h=d.split(".")).shift(),h.sort()),u=d.indexOf(":")<0&&"on"+d,(e=e[ce.expando]?e:new ce.Event(d,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=h.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:ce.makeArray(t,[e]),c=ce.event.special[d]||{},r||!c.trigger||!1!==c.trigger.apply(n,t))){if(!r&&!c.noBubble&&!y(n)){for(s=c.delegateType||d,Dt.test(s+d)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(n.ownerDocument||C)&&p.push(a.defaultView||a.parentWindow||ie)}i=0;while((o=p[i++])&&!e.isPropagationStopped())f=o,e.type=1<i?s:c.bindType||d,(l=(_.get(o,"events")||Object.create(null))[e.type]&&_.get(o,"handle"))&&l.apply(o,t),(l=u&&o[u])&&l.apply&&$(o)&&(e.result=l.apply(o,t),!1===e.result&&e.preventDefault());return e.type=d,r||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(p.pop(),t)||!$(n)||u&&v(n[d])&&!y(n)&&((a=n[u])&&(n[u]=null),ce.event.triggered=d,e.isPropagationStopped()&&f.addEventListener(d,Nt),n[d](),e.isPropagationStopped()&&f.removeEventListener(d,Nt),ce.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=ce.extend(new ce.Event,n,{type:e,isSimulated:!0});ce.event.trigger(r,null,t)}}),ce.fn.extend({trigger:function(e,t){return this.each(function(){ce.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return ce.event.trigger(e,t,n,!0)}});var qt=/\[\]$/,Lt=/\r?\n/g,Ht=/^(?:submit|button|image|reset|file)$/i,Ot=/^(?:input|select|textarea|keygen)/i;function Pt(n,e,r,i){var t;if(Array.isArray(e))ce.each(e,function(e,t){r||qt.test(n)?i(n,t):Pt(n+"["+("object"==typeof t&&null!=t?e:"")+"]",t,r,i)});else if(r||"object"!==x(e))i(n,e);else for(t in e)Pt(n+"["+t+"]",e[t],r,i)}ce.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!ce.isPlainObject(e))ce.each(e,function(){i(this.name,this.value)});else for(n in e)Pt(n,e[n],t,i);return r.join("&")},ce.fn.extend({serialize:function(){return ce.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=ce.prop(this,"elements");return e?ce.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!ce(this).is(":disabled")&&Ot.test(this.nodeName)&&!Ht.test(e)&&(this.checked||!we.test(e))}).map(function(e,t){var n=ce(this).val();return null==n?null:Array.isArray(n)?ce.map(n,function(e){return{name:t.name,value:e.replace(Lt,"\r\n")}}):{name:t.name,value:n.replace(Lt,"\r\n")}}).get()}});var Mt=/%20/g,Rt=/#.*$/,It=/([?&])_=[^&]*/,Wt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,$t=/^\/\//,Bt={},_t={},zt="*/".concat("*"),Xt=C.createElement("a");function Ut(o){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,r=0,i=e.toLowerCase().match(D)||[];if(v(t))while(n=i[r++])"+"===n[0]?(n=n.slice(1)||"*",(o[n]=o[n]||[]).unshift(t)):(o[n]=o[n]||[]).push(t)}}function Vt(t,i,o,a){var s={},u=t===_t;function l(e){var r;return s[e]=!0,ce.each(t[e]||[],function(e,t){var n=t(i,o,a);return"string"!=typeof n||u||s[n]?u?!(r=n):void 0:(i.dataTypes.unshift(n),l(n),!1)}),r}return l(i.dataTypes[0])||!s["*"]&&l("*")}function Gt(e,t){var n,r,i=ce.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&ce.extend(!0,e,r),e}Xt.href=Et.href,ce.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Et.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Et.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":zt,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":ce.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Gt(Gt(e,ce.ajaxSettings),t):Gt(ce.ajaxSettings,e)},ajaxPrefilter:Ut(Bt),ajaxTransport:Ut(_t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var c,f,p,n,d,r,h,g,i,o,v=ce.ajaxSetup({},t),y=v.context||v,m=v.context&&(y.nodeType||y.jquery)?ce(y):ce.event,x=ce.Deferred(),b=ce.Callbacks("once memory"),w=v.statusCode||{},a={},s={},u="canceled",T={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n){n={};while(t=Wt.exec(p))n[t[1].toLowerCase()+" "]=(n[t[1].toLowerCase()+" "]||[]).concat(t[2])}t=n[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return h?p:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,a[e]=t),this},overrideMimeType:function(e){return null==h&&(v.mimeType=e),this},statusCode:function(e){var t;if(e)if(h)T.always(e[T.status]);else for(t in e)w[t]=[w[t],e[t]];return this},abort:function(e){var t=e||u;return c&&c.abort(t),l(0,t),this}};if(x.promise(T),v.url=((e||v.url||Et.href)+"").replace($t,Et.protocol+"//"),v.type=t.method||t.type||v.method||v.type,v.dataTypes=(v.dataType||"*").toLowerCase().match(D)||[""],null==v.crossDomain){r=C.createElement("a");try{r.href=v.url,r.href=r.href,v.crossDomain=Xt.protocol+"//"+Xt.host!=r.protocol+"//"+r.host}catch(e){v.crossDomain=!0}}if(v.data&&v.processData&&"string"!=typeof v.data&&(v.data=ce.param(v.data,v.traditional)),Vt(Bt,v,t,T),h)return T;for(i in(g=ce.event&&v.global)&&0==ce.active++&&ce.event.trigger("ajaxStart"),v.type=v.type.toUpperCase(),v.hasContent=!Ft.test(v.type),f=v.url.replace(Rt,""),v.hasContent?v.data&&v.processData&&0===(v.contentType||"").indexOf("application/x-www-form-urlencoded")&&(v.data=v.data.replace(Mt,"+")):(o=v.url.slice(f.length),v.data&&(v.processData||"string"==typeof v.data)&&(f+=(At.test(f)?"&":"?")+v.data,delete v.data),!1===v.cache&&(f=f.replace(It,"$1"),o=(At.test(f)?"&":"?")+"_="+jt.guid+++o),v.url=f+o),v.ifModified&&(ce.lastModified[f]&&T.setRequestHeader("If-Modified-Since",ce.lastModified[f]),ce.etag[f]&&T.setRequestHeader("If-None-Match",ce.etag[f])),(v.data&&v.hasContent&&!1!==v.contentType||t.contentType)&&T.setRequestHeader("Content-Type",v.contentType),T.setRequestHeader("Accept",v.dataTypes[0]&&v.accepts[v.dataTypes[0]]?v.accepts[v.dataTypes[0]]+("*"!==v.dataTypes[0]?", "+zt+"; q=0.01":""):v.accepts["*"]),v.headers)T.setRequestHeader(i,v.headers[i]);if(v.beforeSend&&(!1===v.beforeSend.call(y,T,v)||h))return T.abort();if(u="abort",b.add(v.complete),T.done(v.success),T.fail(v.error),c=Vt(_t,v,t,T)){if(T.readyState=1,g&&m.trigger("ajaxSend",[T,v]),h)return T;v.async&&0<v.timeout&&(d=ie.setTimeout(function(){T.abort("timeout")},v.timeout));try{h=!1,c.send(a,l)}catch(e){if(h)throw e;l(-1,e)}}else l(-1,"No Transport");function l(e,t,n,r){var i,o,a,s,u,l=t;h||(h=!0,d&&ie.clearTimeout(d),c=void 0,p=r||"",T.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(s=function(e,t,n){var r,i,o,a,s=e.contents,u=e.dataTypes;while("*"===u[0])u.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){u.unshift(i);break}if(u[0]in n)o=u[0];else{for(i in n){if(!u[0]||e.converters[i+" "+u[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==u[0]&&u.unshift(o),n[o]}(v,T,n)),!i&&-1<ce.inArray("script",v.dataTypes)&&ce.inArray("json",v.dataTypes)<0&&(v.converters["text script"]=function(){}),s=function(e,t,n,r){var i,o,a,s,u,l={},c=e.dataTypes.slice();if(c[1])for(a in e.converters)l[a.toLowerCase()]=e.converters[a];o=c.shift();while(o)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!u&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),u=o,o=c.shift())if("*"===o)o=u;else if("*"!==u&&u!==o){if(!(a=l[u+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[u+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&e["throws"])t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+u+" to "+o}}}return{state:"success",data:t}}(v,s,T,i),i?(v.ifModified&&((u=T.getResponseHeader("Last-Modified"))&&(ce.lastModified[f]=u),(u=T.getResponseHeader("etag"))&&(ce.etag[f]=u)),204===e||"HEAD"===v.type?l="nocontent":304===e?l="notmodified":(l=s.state,o=s.data,i=!(a=s.error))):(a=l,!e&&l||(l="error",e<0&&(e=0))),T.status=e,T.statusText=(t||l)+"",i?x.resolveWith(y,[o,l,T]):x.rejectWith(y,[T,l,a]),T.statusCode(w),w=void 0,g&&m.trigger(i?"ajaxSuccess":"ajaxError",[T,v,i?o:a]),b.fireWith(y,[T,l]),g&&(m.trigger("ajaxComplete",[T,v]),--ce.active||ce.event.trigger("ajaxStop")))}return T},getJSON:function(e,t,n){return ce.get(e,t,n,"json")},getScript:function(e,t){return ce.get(e,void 0,t,"script")}}),ce.each(["get","post"],function(e,i){ce[i]=function(e,t,n,r){return v(t)&&(r=r||n,n=t,t=void 0),ce.ajax(ce.extend({url:e,type:i,dataType:r,data:t,success:n},ce.isPlainObject(e)&&e))}}),ce.ajaxPrefilter(function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),ce._evalUrl=function(e,t,n){return ce.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){ce.globalEval(e,t,n)}})},ce.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=ce(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){var e=this;while(e.firstElementChild)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return v(n)?this.each(function(e){ce(this).wrapInner(n.call(this,e))}):this.each(function(){var e=ce(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=v(t);return this.each(function(e){ce(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){ce(this).replaceWith(this.childNodes)}),this}}),ce.expr.pseudos.hidden=function(e){return!ce.expr.pseudos.visible(e)},ce.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},ce.ajaxSettings.xhr=function(){try{return new ie.XMLHttpRequest}catch(e){}};var Yt={0:200,1223:204},Qt=ce.ajaxSettings.xhr();le.cors=!!Qt&&"withCredentials"in Qt,le.ajax=Qt=!!Qt,ce.ajaxTransport(function(i){var o,a;if(le.cors||Qt&&!i.crossDomain)return{send:function(e,t){var n,r=i.xhr();if(r.open(i.type,i.url,i.async,i.username,i.password),i.xhrFields)for(n in i.xhrFields)r[n]=i.xhrFields[n];for(n in i.mimeType&&r.overrideMimeType&&r.overrideMimeType(i.mimeType),i.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)r.setRequestHeader(n,e[n]);o=function(e){return function(){o&&(o=a=r.onload=r.onerror=r.onabort=r.ontimeout=r.onreadystatechange=null,"abort"===e?r.abort():"error"===e?"number"!=typeof r.status?t(0,"error"):t(r.status,r.statusText):t(Yt[r.status]||r.status,r.statusText,"text"!==(r.responseType||"text")||"string"!=typeof r.responseText?{binary:r.response}:{text:r.responseText},r.getAllResponseHeaders()))}},r.onload=o(),a=r.onerror=r.ontimeout=o("error"),void 0!==r.onabort?r.onabort=a:r.onreadystatechange=function(){4===r.readyState&&ie.setTimeout(function(){o&&a()})},o=o("abort");try{r.send(i.hasContent&&i.data||null)}catch(e){if(o)throw e}},abort:function(){o&&o()}}}),ce.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),ce.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return ce.globalEval(e),e}}}),ce.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),ce.ajaxTransport("script",function(n){var r,i;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){r=ce("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1<s&&(r=Tt(e.slice(s)),e=e.slice(0,s)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),0<a.length&&ce.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){o=arguments,a.html(r?ce("<div>").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}});var en=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;ce.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=ae.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(ae.call(arguments)))}).guid=e.guid=e.guid||ce.guid++,i},ce.holdReady=function(e){e?ce.readyWait++:ce.ready(!0)},ce.isArray=Array.isArray,ce.parseJSON=JSON.parse,ce.nodeName=fe,ce.isFunction=v,ce.isWindow=y,ce.camelCase=F,ce.type=x,ce.now=Date.now,ce.isNumeric=function(e){var t=ce.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},ce.trim=function(e){return null==e?"":(e+"").replace(en,"$1")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return ce});var tn=ie.jQuery,nn=ie.$;return ce.noConflict=function(e){return ie.$===ce&&(ie.$=nn),e&&ie.jQuery===ce&&(ie.jQuery=tn),ce},"undefined"==typeof e&&(ie.jQuery=ie.$=ce),ce});
jQuery.noConflict();
/*! jQuery Migrate v3.4.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */
"undefined"==typeof jQuery.migrateMute&&(jQuery.migrateMute=!0),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,window)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery"),window):t(jQuery,window)}(function(s,n){"use strict";function e(e){return 0<=function(e,t){for(var r=/^(\d+)\.(\d+)\.(\d+)/,n=r.exec(e)||[],o=r.exec(t)||[],a=1;a<=3;a++){if(+o[a]<+n[a])return 1;if(+n[a]<+o[a])return-1}return 0}(s.fn.jquery,e)}s.migrateVersion="3.4.1";var t=Object.create(null);s.migrateDisablePatches=function(){for(var e=0;e<arguments.length;e++)t[arguments[e]]=!0},s.migrateEnablePatches=function(){for(var e=0;e<arguments.length;e++)delete t[arguments[e]]},s.migrateIsPatchEnabled=function(e){return!t[e]},n.console&&n.console.log&&(s&&e("3.0.0")&&!e("5.0.0")||n.console.log("JQMIGRATE: jQuery 3.x-4.x REQUIRED"),s.migrateWarnings&&n.console.log("JQMIGRATE: Migrate plugin loaded multiple times"),n.console.log("JQMIGRATE: Migrate is installed"+(s.migrateMute?"":" with logging active")+", version "+s.migrateVersion));var o={};function u(e,t){var r=n.console;!s.migrateIsPatchEnabled(e)||s.migrateDeduplicateWarnings&&o[t]||(o[t]=!0,s.migrateWarnings.push(t+" ["+e+"]"),r&&r.warn&&!s.migrateMute&&(r.warn("JQMIGRATE: "+t),s.migrateTrace&&r.trace&&r.trace()))}function r(e,t,r,n,o){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){return u(n,o),r},set:function(e){u(n,o),r=e}})}function a(e,t,r,n,o){var a=e[t];e[t]=function(){return o&&u(n,o),(s.migrateIsPatchEnabled(n)?r:a||s.noop).apply(this,arguments)}}function c(e,t,r,n,o){if(!o)throw new Error("No warning message provided");return a(e,t,r,n,o),0}function i(e,t,r,n){return a(e,t,r,n),0}s.migrateDeduplicateWarnings=!0,s.migrateWarnings=[],void 0===s.migrateTrace&&(s.migrateTrace=!0),s.migrateReset=function(){o={},s.migrateWarnings.length=0},"BackCompat"===n.document.compatMode&&u("quirks","jQuery is not compatible with Quirks Mode");var d,l,p,f={},m=s.fn.init,y=s.find,h=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/,g=/\[(\s*[-\w]+\s*)([~|^$*]?=)\s*([-\w#]*?#[-\w#]*)\s*\]/g,v=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;for(d in i(s.fn,"init",function(e){var t=Array.prototype.slice.call(arguments);return s.migrateIsPatchEnabled("selector-empty-id")&&"string"==typeof e&&"#"===e&&(u("selector-empty-id","jQuery( '#' ) is not a valid selector"),t[0]=[]),m.apply(this,t)},"selector-empty-id"),s.fn.init.prototype=s.fn,i(s,"find",function(t){var r=Array.prototype.slice.call(arguments);if("string"==typeof t&&h.test(t))try{n.document.querySelector(t)}catch(e){t=t.replace(g,function(e,t,r,n){return"["+t+r+'"'+n+'"]'});try{n.document.querySelector(t),u("selector-hash","Attribute selector with '#' must be quoted: "+r[0]),r[0]=t}catch(e){u("selector-hash","Attribute selector with '#' was not fixed: "+r[0])}}return y.apply(this,r)},"selector-hash"),y)Object.prototype.hasOwnProperty.call(y,d)&&(s.find[d]=y[d]);c(s.fn,"size",function(){return this.length},"size","jQuery.fn.size() is deprecated and removed; use the .length property"),c(s,"parseJSON",function(){return JSON.parse.apply(null,arguments)},"parseJSON","jQuery.parseJSON is deprecated; use JSON.parse"),c(s,"holdReady",s.holdReady,"holdReady","jQuery.holdReady is deprecated"),c(s,"unique",s.uniqueSort,"unique","jQuery.unique is deprecated; use jQuery.uniqueSort"),r(s.expr,"filters",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr.filters is deprecated; use jQuery.expr.pseudos"),r(s.expr,":",s.expr.pseudos,"expr-pre-pseudos","jQuery.expr[':'] is deprecated; use jQuery.expr.pseudos"),e("3.1.1")&&c(s,"trim",function(e){return null==e?"":(e+"").replace(v,"$1")},"trim","jQuery.trim is deprecated; use String.prototype.trim"),e("3.2.0")&&(c(s,"nodeName",function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},"nodeName","jQuery.nodeName is deprecated"),c(s,"isArray",Array.isArray,"isArray","jQuery.isArray is deprecated; use Array.isArray")),e("3.3.0")&&(c(s,"isNumeric",function(e){var t=typeof e;return("number"==t||"string"==t)&&!isNaN(e-parseFloat(e))},"isNumeric","jQuery.isNumeric() is deprecated"),s.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){f["[object "+t+"]"]=t.toLowerCase()}),c(s,"type",function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[Object.prototype.toString.call(e)]||"object":typeof e},"type","jQuery.type is deprecated"),c(s,"isFunction",function(e){return"function"==typeof e},"isFunction","jQuery.isFunction() is deprecated"),c(s,"isWindow",function(e){return null!=e&&e===e.window},"isWindow","jQuery.isWindow() is deprecated")),s.ajax&&(l=s.ajax,p=/(=)\?(?=&|$)|\?\?/,i(s,"ajax",function(){var e=l.apply(this,arguments);return e.promise&&(c(e,"success",e.done,"jqXHR-methods","jQXHR.success is deprecated and removed"),c(e,"error",e.fail,"jqXHR-methods","jQXHR.error is deprecated and removed"),c(e,"complete",e.always,"jqXHR-methods","jQXHR.complete is deprecated and removed")),e},"jqXHR-methods"),e("4.0.0")||s.ajaxPrefilter("+json",function(e){!1!==e.jsonp&&(p.test(e.url)||"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&p.test(e.data))&&u("jsonp-promotion","JSON-to-JSONP auto-promotion is deprecated")}));var j=s.fn.removeAttr,b=s.fn.toggleClass,w=/\S+/g;function x(e){return e.replace(/-([a-z])/g,function(e,t){return t.toUpperCase()})}i(s.fn,"removeAttr",function(e){var r=this,n=!1;return s.each(e.match(w),function(e,t){s.expr.match.bool.test(t)&&r.each(function(){if(!1!==s(this).prop(t))return!(n=!0)}),n&&(u("removeAttr-bool","jQuery.fn.removeAttr no longer sets boolean properties: "+t),r.prop(t,!1))}),j.apply(this,arguments)},"removeAttr-bool"),i(s.fn,"toggleClass",function(t){return void 0!==t&&"boolean"!=typeof t?b.apply(this,arguments):(u("toggleClass-bool","jQuery.fn.toggleClass( boolean ) is deprecated"),this.each(function(){var e=this.getAttribute&&this.getAttribute("class")||"";e&&s.data(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==t&&s.data(this,"__className__")||"")}))},"toggleClass-bool");var Q,A,R=!1,C=/^[a-z]/,N=/^(?:Border(?:Top|Right|Bottom|Left)?(?:Width|)|(?:Margin|Padding)?(?:Top|Right|Bottom|Left)?|(?:Min|Max)?(?:Width|Height))$/;s.swap&&s.each(["height","width","reliableMarginRight"],function(e,t){var r=s.cssHooks[t]&&s.cssHooks[t].get;r&&(s.cssHooks[t].get=function(){var e;return R=!0,e=r.apply(this,arguments),R=!1,e})}),i(s,"swap",function(e,t,r,n){var o,a,i={};for(a in R||u("swap","jQuery.swap() is undocumented and deprecated"),t)i[a]=e.style[a],e.style[a]=t[a];for(a in o=r.apply(e,n||[]),t)e.style[a]=i[a];return o},"swap"),e("3.4.0")&&"undefined"!=typeof Proxy&&(s.cssProps=new Proxy(s.cssProps||{},{set:function(){return u("cssProps","jQuery.cssProps is deprecated"),Reflect.set.apply(this,arguments)}})),e("4.0.0")?(A={animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},"undefined"!=typeof Proxy?s.cssNumber=new Proxy(A,{get:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.get.apply(this,arguments)},set:function(){return u("css-number","jQuery.cssNumber is deprecated"),Reflect.set.apply(this,arguments)}}):s.cssNumber=A):A=s.cssNumber,Q=s.fn.css,i(s.fn,"css",function(e,t){var r,n,o=this;return e&&"object"==typeof e&&!Array.isArray(e)?(s.each(e,function(e,t){s.fn.css.call(o,e,t)}),this):("number"==typeof t&&(r=x(e),n=r,C.test(n)&&N.test(n[0].toUpperCase()+n.slice(1))||A[r]||u("css-number",'Number-typed values are deprecated for jQuery.fn.css( "'+e+'", value )')),Q.apply(this,arguments))},"css-number");var S,P,k,H,E=s.data;i(s,"data",function(e,t,r){var n,o,a;if(t&&"object"==typeof t&&2===arguments.length){for(a in n=s.hasData(e)&&E.call(this,e),o={},t)a!==x(a)?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+a),n[a]=t[a]):o[a]=t[a];return E.call(this,e,o),t}return t&&"string"==typeof t&&t!==x(t)&&(n=s.hasData(e)&&E.call(this,e))&&t in n?(u("data-camelCase","jQuery.data() always sets/gets camelCased names: "+t),2<arguments.length&&(n[t]=r),n[t]):E.apply(this,arguments)},"data-camelCase"),s.fx&&(k=s.Tween.prototype.run,H=function(e){return e},i(s.Tween.prototype,"run",function(){1<s.easing[this.easing].length&&(u("easing-one-arg","'jQuery.easing."+this.easing.toString()+"' should use only one argument"),s.easing[this.easing]=H),k.apply(this,arguments)},"easing-one-arg"),S=s.fx.interval,P="jQuery.fx.interval is deprecated",n.requestAnimationFrame&&Object.defineProperty(s.fx,"interval",{configurable:!0,enumerable:!0,get:function(){return n.document.hidden||u("fx-interval",P),s.migrateIsPatchEnabled("fx-interval")&&void 0===S?13:S},set:function(e){u("fx-interval",P),S=e}}));var M=s.fn.load,q=s.event.add,O=s.event.fix;s.event.props=[],s.event.fixHooks={},r(s.event.props,"concat",s.event.props.concat,"event-old-patch","jQuery.event.props.concat() is deprecated and removed"),i(s.event,"fix",function(e){var t,r=e.type,n=this.fixHooks[r],o=s.event.props;if(o.length){u("event-old-patch","jQuery.event.props are deprecated and removed: "+o.join());while(o.length)s.event.addProp(o.pop())}if(n&&!n._migrated_&&(n._migrated_=!0,u("event-old-patch","jQuery.event.fixHooks are deprecated and removed: "+r),(o=n.props)&&o.length))while(o.length)s.event.addProp(o.pop());return t=O.call(this,e),n&&n.filter?n.filter(t,e):t},"event-old-patch"),i(s.event,"add",function(e,t){return e===n&&"load"===t&&"complete"===n.document.readyState&&u("load-after-event","jQuery(window).on('load'...) called after load event occurred"),q.apply(this,arguments)},"load-after-event"),s.each(["load","unload","error"],function(e,t){i(s.fn,t,function(){var e=Array.prototype.slice.call(arguments,0);return"load"===t&&"string"==typeof e[0]?M.apply(this,e):(u("shorthand-removed-v3","jQuery.fn."+t+"() is deprecated"),e.splice(0,0,t),arguments.length?this.on.apply(this,e):(this.triggerHandler.apply(this,e),this))},"shorthand-removed-v3")}),s.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,r){c(s.fn,r,function(e,t){return 0<arguments.length?this.on(r,null,e,t):this.trigger(r)},"shorthand-deprecated-v3","jQuery.fn."+r+"() event shorthand is deprecated")}),s(function(){s(n.document).triggerHandler("ready")}),s.event.special.ready={setup:function(){this===n.document&&u("ready-event","'ready' event is deprecated")}},c(s.fn,"bind",function(e,t,r){return this.on(e,null,t,r)},"pre-on-methods","jQuery.fn.bind() is deprecated"),c(s.fn,"unbind",function(e,t){return this.off(e,null,t)},"pre-on-methods","jQuery.fn.unbind() is deprecated"),c(s.fn,"delegate",function(e,t,r,n){return this.on(t,e,r,n)},"pre-on-methods","jQuery.fn.delegate() is deprecated"),c(s.fn,"undelegate",function(e,t,r){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",r)},"pre-on-methods","jQuery.fn.undelegate() is deprecated"),c(s.fn,"hover",function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)},"pre-on-methods","jQuery.fn.hover() is deprecated");function T(e){var t=n.document.implementation.createHTMLDocument("");return t.body.innerHTML=e,t.body&&t.body.innerHTML}var F=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi;s.UNSAFE_restoreLegacyHtmlPrefilter=function(){s.migrateEnablePatches("self-closed-tags")},i(s,"htmlPrefilter",function(e){var t,r;return(r=(t=e).replace(F,"<$1></$2>"))!==t&&T(t)!==T(r)&&u("self-closed-tags","HTML tags must be properly nested and closed: "+t),e.replace(F,"<$1></$2>")},"self-closed-tags"),s.migrateDisablePatches("self-closed-tags");var D,W,_,I=s.fn.offset;return i(s.fn,"offset",function(){var e=this[0];return!e||e.nodeType&&e.getBoundingClientRect?I.apply(this,arguments):(u("offset-valid-elem","jQuery.fn.offset() requires a valid DOM element"),arguments.length?this:void 0)},"offset-valid-elem"),s.ajax&&(D=s.param,i(s,"param",function(e,t){var r=s.ajaxSettings&&s.ajaxSettings.traditional;return void 0===t&&r&&(u("param-ajax-traditional","jQuery.param() no longer uses jQuery.ajaxSettings.traditional"),t=r),D.call(this,e,t)},"param-ajax-traditional")),c(s.fn,"andSelf",s.fn.addBack,"andSelf","jQuery.fn.andSelf() is deprecated and removed, use jQuery.fn.addBack()"),s.Deferred&&(W=s.Deferred,_=[["resolve","done",s.Callbacks("once memory"),s.Callbacks("once memory"),"resolved"],["reject","fail",s.Callbacks("once memory"),s.Callbacks("once memory"),"rejected"],["notify","progress",s.Callbacks("memory"),s.Callbacks("memory")]],i(s,"Deferred",function(e){var a=W(),i=a.promise();function t(){var o=arguments;return s.Deferred(function(n){s.each(_,function(e,t){var r="function"==typeof o[e]&&o[e];a[t[1]](function(){var e=r&&r.apply(this,arguments);e&&"function"==typeof e.promise?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[t[0]+"With"](this===i?n.promise():this,r?[e]:arguments)})}),o=null}).promise()}return c(a,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),c(i,"pipe",t,"deferred-pipe","deferred.pipe() is deprecated"),e&&e.call(a,a),a},"deferred-pipe"),s.Deferred.exceptionHook=W.exceptionHook),s});

/*! Select2 4.1.0-rc.0 | https://github.com/select2/select2/blob/master/LICENSE.md */
!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof module&&module.exports?module.exports=function(e,t){return void 0===t&&(t="undefined"!=typeof window?require("jquery"):require("jquery")(e)),n(t),t}:n(jQuery)}(function(t){(u=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:u)&&u.requirejs||(u?e=u:u={},g={},m={},y={},v={},n=Object.prototype.hasOwnProperty,s=[].slice,_=/\.js$/,h=function(e,t){var n,s,i=c(e),o=i[0],t=t[1];return e=i[1],o&&(n=x(o=l(o,t))),o?e=n&&n.normalize?n.normalize(e,(s=t,function(e){return l(e,s)})):l(e,t):(o=(i=c(e=l(e,t)))[0],e=i[1],o&&(n=x(o))),{f:o?o+"!"+e:e,n:e,pr:o,p:n}},f={require:function(e){return w(e)},exports:function(e){var t=g[e];return void 0!==t?t:g[e]={}},module:function(e){return{id:e,uri:"",exports:g[e],config:(t=e,function(){return y&&y.config&&y.config[t]||{}})};var t}},o=function(e,t,n,s){var i,o,r,a,l,c=[],u=typeof n,d=A(s=s||e);if("undefined"==u||"function"==u){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(o=(r=h(t[a],d)).f))c[a]=f.require(e);else if("exports"===o)c[a]=f.exports(e),l=!0;else if("module"===o)i=c[a]=f.module(e);else if(b(g,o)||b(m,o)||b(v,o))c[a]=x(o);else{if(!r.p)throw new Error(e+" missing "+o);r.p.load(r.n,w(s,!0),function(t){return function(e){g[t]=e}}(o),{}),c[a]=g[o]}u=n?n.apply(g[e],c):void 0,e&&(i&&i.exports!==p&&i.exports!==g[e]?g[e]=i.exports:u===p&&l||(g[e]=u))}else e&&(g[e]=n)},i=e=r=function(e,t,n,s,i){if("string"==typeof e)return f[e]?f[e](t):x(h(e,A(t)).f);if(!e.splice){if((y=e).deps&&r(y.deps,y.callback),!t)return;t.splice?(e=t,t=n,n=null):e=p}return t=t||function(){},"function"==typeof n&&(n=s,s=i),s?o(p,e,t,n):setTimeout(function(){o(p,e,t,n)},4),r},r.config=function(e){return r(e)},i._defined=g,(a=function(e,t,n){if("string"!=typeof e)throw new Error("See almond README: incorrect module build, no module name");t.splice||(n=t,t=[]),b(g,e)||b(m,e)||(m[e]=[e,t,n])}).amd={jQuery:!0},u.requirejs=i,u.require=e,u.define=a),u.define("almond",function(){}),u.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),u.define("select2/utils",["jquery"],function(o){var s={};function c(e){var t,n=e.prototype,s=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&s.push(t);return s}s.Extend=function(e,t){var n,s={}.hasOwnProperty;function i(){this.constructor=e}for(n in t)s.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},s.Decorate=function(s,i){var e=c(i),t=c(s);function o(){var e=Array.prototype.unshift,t=i.prototype.constructor.length,n=s.prototype.constructor;0<t&&(e.call(arguments,s.prototype.constructor),n=i.prototype.constructor),n.apply(this,arguments)}i.displayName=s.displayName,o.prototype=new function(){this.constructor=o};for(var n=0;n<t.length;n++){var r=t[n];o.prototype[r]=s.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];o.prototype[l]=function(e){var t=function(){},n=(e in o.prototype&&(t=o.prototype[e]),i.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return o};function e(){this.listeners={}}e.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},e.prototype.trigger=function(e){var t=Array.prototype.slice,n=t.call(arguments,1);this.listeners=this.listeners||{},0===(n=null==n?[]:n).length&&n.push({}),(n[0]._type=e)in this.listeners&&this.invoke(this.listeners[e],t.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},e.prototype.invoke=function(e,t){for(var n=0,s=e.length;n<s;n++)e[n].apply(this,t)},s.Observable=e,s.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},s.bind=function(e,t){return function(){e.apply(t,arguments)}},s._convertData=function(e){for(var t in e){var n=t.split("-"),s=e;if(1!==n.length){for(var i=0;i<n.length;i++){var o=n[i];(o=o.substring(0,1).toLowerCase()+o.substring(1))in s||(s[o]={}),i==n.length-1&&(s[o]=e[t]),s=s[o]}delete e[t]}}return e},s.hasScroll=function(e,t){var n=o(t),s=t.style.overflowX,i=t.style.overflowY;return(s!==i||"hidden"!==i&&"visible"!==i)&&("scroll"===s||"scroll"===i||n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth)},s.escapeMarkup=function(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},s.__cache={};var n=0;return s.GetUniqueElementId=function(e){var t=e.getAttribute("data-select2-id");return null==t&&(t=e.id?"select2-data-"+e.id:"select2-data-"+(++n).toString()+"-"+s.generateChars(4),e.setAttribute("data-select2-id",t)),t},s.StoreData=function(e,t,n){e=s.GetUniqueElementId(e);s.__cache[e]||(s.__cache[e]={}),s.__cache[e][t]=n},s.GetData=function(e,t){var n=s.GetUniqueElementId(e);return t?s.__cache[n]&&null!=s.__cache[n][t]?s.__cache[n][t]:o(e).data(t):s.__cache[n]},s.RemoveData=function(e){var t=s.GetUniqueElementId(e);null!=s.__cache[t]&&delete s.__cache[t],e.removeAttribute("data-select2-id")},s.copyNonInternalCssClasses=function(e,t){var n=(n=e.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0===e.indexOf("select2-")}),t=(t=t.getAttribute("class").trim().split(/\s+/)).filter(function(e){return 0!==e.indexOf("select2-")}),n=n.concat(t);e.setAttribute("class",n.join(" "))},s}),u.define("select2/results",["jquery","./utils"],function(u,d){function s(e,t,n){this.$element=e,this.data=n,this.options=t,s.__super__.constructor.call(this)}return d.Extend(s,d.Observable),s.prototype.render=function(){var e=u('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="alert" aria-live="assertive" class="select2-results__option"></li>')),s=this.options.get("translations").get(e.message);n.append(t(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(e){this.hideLoading();var t=[];if(null==e.results||0===e.results.length)0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"});else{e.results=this.sort(e.results);for(var n=0;n<e.results.length;n++){var s=e.results[n],s=this.option(s);t.push(s)}this.$results.append(t)}},s.prototype.position=function(e,t){t.find(".select2-results").append(e)},s.prototype.sort=function(e){return this.options.get("sorter")(e)},s.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option--selectable"),t=e.filter(".select2-results__option--selected");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},s.prototype.setClasses=function(){var t=this;this.data.current(function(e){var s=e.map(function(e){return e.id.toString()});t.$results.find(".select2-results__option--selectable").each(function(){var e=u(this),t=d.GetData(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<s.indexOf(n)?(this.classList.add("select2-results__option--selected"),e.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),e.attr("aria-selected","false"))})})},s.prototype.showLoading=function(e){this.hideLoading();e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(e)},e=this.option(e);e.className+=" loading-results",this.$results.prepend(e)},s.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},s.prototype.option=function(e){var t,n=document.createElement("li"),s=(n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable"),{role:"option"}),i=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(t in(null!=e.element&&i.call(e.element,":disabled")||null==e.element&&e.disabled)&&(s["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==e.id&&n.classList.remove("select2-results__option--selectable"),null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(s.role="group",s["aria-label"]=e.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),s)n.setAttribute(t,s[t]);if(e.children){for(var i=u(n),o=document.createElement("strong"),r=(o.className="select2-results__group",this.template(e,o),[]),a=0;a<e.children.length;a++){var l=e.children[a],l=this.option(l);r.push(l)}var c=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});c.append(r),i.append(o),i.append(c)}else this.template(e,n);return d.StoreData(n,"data",e),n},s.prototype.bind=function(t,e){var i=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){i.clear(),i.append(e.data),t.isOpen()&&(i.setClasses(),i.highlightFirstItem())}),t.on("results:append",function(e){i.append(e.data),t.isOpen()&&i.setClasses()}),t.on("query",function(e){i.hideMessages(),i.showLoading(e)}),t.on("select",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("unselect",function(){t.isOpen()&&(i.setClasses(),i.options.get("scrollAfterSelect"))&&i.highlightFirstItem()}),t.on("open",function(){i.$results.attr("aria-expanded","true"),i.$results.attr("aria-hidden","false"),i.setClasses(),i.ensureHighlightVisible()}),t.on("close",function(){i.$results.attr("aria-expanded","false"),i.$results.attr("aria-hidden","true"),i.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=i.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=i.getHighlightedResults();0!==t.length&&(e=d.GetData(t[0],"data"),t.hasClass("select2-results__option--selected")?i.trigger("close",{}):i.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=i.getHighlightedResults(),n=i.$results.find(".select2-results__option--selectable"),s=n.index(t);s<=0||(s=s-1,0===t.length&&(s=0),(t=n.eq(s)).trigger("mouseenter"),n=i.$results.offset().top,t=t.offset().top,e=i.$results.scrollTop()+(t-n),0===s?i.$results.scrollTop(0):t-n<0&&i.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=i.getHighlightedResults(),s=i.$results.find(".select2-results__option--selectable"),n=s.index(n)+1;n>=s.length||((s=s.eq(n)).trigger("mouseenter"),e=i.$results.offset().top+i.$results.outerHeight(!1),s=s.offset().top+s.outerHeight(!1),t=i.$results.scrollTop()+s-e,0===n?i.$results.scrollTop(0):e<s&&i.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element[0].classList.add("select2-results__option--highlighted"),e.element[0].setAttribute("aria-selected","true")}),t.on("results:message",function(e){i.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=i.$results.scrollTop(),n=i.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=i.$results.height();t?(i.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(i.$results.scrollTop(i.$results.get(0).scrollHeight-i.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option--selectable",function(e){var t=u(this),n=d.GetData(this,"data");t.hasClass("select2-results__option--selected")?i.options.get("multiple")?i.trigger("unselect",{originalEvent:e,data:n}):i.trigger("close",{originalEvent:e,data:n}):i.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option--selectable",function(e){var t=d.GetData(this,"data");i.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),i.trigger("results:focus",{data:t,element:u(this)})})},s.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},s.prototype.destroy=function(){this.$results.remove()},s.prototype.ensureHighlightVisible=function(){var e,t,n,s,i=this.getHighlightedResults();0!==i.length&&(e=this.$results.find(".select2-results__option--selectable").index(i),t=this.$results.offset().top,s=i.offset().top,n=this.$results.scrollTop()+(s-t),s=s-t,n-=2*i.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(n))},s.prototype.template=function(e,t){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=s(n):u(t).append(n)},s}),u.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),u.define("select2/selection/base",["jquery","../utils","../keys"],function(n,s,i){function o(e,t){this.$element=e,this.options=t,o.__super__.constructor.call(this)}return s.Extend(o,s.Observable),o.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=s.GetData(this.$element[0],"old-tabindex")?this._tabindex=s.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),e.attr("aria-disabled","false"),this.$selection=e},o.prototype.bind=function(e,t){var n=this,s=e.id+"-results";this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===i.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",s),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")}),e.on("disable",function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")})},o.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},o.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.select2."+e.id,function(e){var t=n(e.target).closest(".select2");n(".select2.select2-container--open").each(function(){this!=t[0]&&s.GetData(this,"element").select2("close")})})},o.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},o.prototype.position=function(e,t){t.find(".selection").append(e)},o.prototype.destroy=function(){this._detachCloseHandler(this.container)},o.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},o.prototype.isEnabled=function(){return!this.isDisabled()},o.prototype.isDisabled=function(){return this.options.get("disabled")},o}),u.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,s){function i(){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,t),i.prototype.render=function(){var e=i.__super__.render.call(this);return e[0].classList.add("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},i.prototype.bind=function(t,e){var n=this,s=(i.__super__.bind.apply(this,arguments),t.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",s),this.$selection.attr("aria-controls",s),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},i.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},i.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},i.prototype.selectionContainer=function(){return e("<span></span>")},i.prototype.update=function(e){var t,n;0===e.length?this.clear():(e=e[0],t=this.$selection.find(".select2-selection__rendered"),n=this.display(e,t),t.empty().append(n),(n=e.title||e.text)?t.attr("title",n):t.removeAttr("title"))},i}),u.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,c){function o(e,t){o.__super__.constructor.apply(this,arguments)}return c.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e[0].classList.add("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this,s=(o.__super__.bind.apply(this,arguments),e.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",s),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.isDisabled()||(t=i(this).parent(),t=c.GetData(t[0],"data"),n.trigger("unselect",{originalEvent:e,data:t}))}),this.$selection.on("keydown",".select2-selection__choice__remove",function(e){n.isDisabled()||e.stopPropagation()})},o.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},o.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},o.prototype.selectionContainer=function(){return i('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",s=0;s<e.length;s++){var i=e[s],o=this.selectionContainer(),r=this.display(i,o),a=n+c.generateChars(4)+"-",r=(i.id?a+=i.id:a+=c.generateChars(4),o.find(".select2-selection__choice__display").append(r).attr("id",a),i.title||i.text),r=(r&&o.attr("title",r),this.options.get("translations").get("removeItem")),l=o.find(".select2-selection__choice__remove");l.attr("title",r()),l.attr("aria-label",r()),l.attr("aria-describedby",a),c.StoreData(o[0],"data",i),t.push(o)}this.$selection.find(".select2-selection__rendered").append(t)}},o}),u.define("select2/selection/placeholder",[],function(){function e(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer(),t=(n.html(this.display(t)),n[0].classList.add("select2-selection__placeholder"),n[0].classList.remove("select2-selection__choice"),t.title||t.text||n.text());return this.$selection.find(".select2-selection__rendered").attr("title",t),n},e.prototype.update=function(e,t){var n=1==t.length&&t[0].id!=this.placeholder.id;if(1<t.length||n)return e.call(this,t);this.clear();n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e}),u.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(i,s,a){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(e){s._handleClear(e)}),t.on("keypress",function(e){s._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();var s=a.GetData(n[0],"data"),i=this.$element.val(),o=(this.$element.val(this.placeholder.id),{data:s});if(this.trigger("clear",o),o.prevented)this.$element.val(i);else{for(var r=0;r<s.length;r++)if(o={data:s[r]},this.trigger("unselect",o),o.prevented)return void this.$element.val(i);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=s.DELETE&&t.which!=s.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){var n,s;e.call(this,t),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||(e=this.$selection.find(".select2-selection__rendered").attr("id"),n=this.options.get("translations").get("removeAllItems"),(s=i('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>')).attr("title",n()),s.attr("aria-label",n()),s.attr("aria-describedby",e),a.StoreData(s[0],"data",t),this.$selection.prepend(s),this.$selection[0].classList.add("select2-selection--clearable"))},e}),u.define("select2/selection/search",["jquery","../utils","../keys"],function(s,a,l){function e(e,t,n){e.call(this,t,n)}return e.prototype.render=function(e){var t=this.options.get("translations").get("search"),n=s('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>'),n=(this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.call(this));return this._transferTabIndex(),n.append(this.$searchContainer),n},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results",o=t.id+"-container",e=(e.call(this,t,n),s.$search.attr("aria-describedby",o),t.on("open",function(){s.$search.attr("aria-controls",i),s.$search.trigger("focus")}),t.on("close",function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")}),t.on("enable",function(){s.$search.prop("disabled",!1),s._transferTabIndex()}),t.on("disable",function(){s.$search.prop("disabled",!0)}),t.on("focus",function(e){s.$search.trigger("focus")}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(e){s.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){s._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented(),e.which===l.BACKSPACE&&""===s.$search.val()&&0<(t=s.$selection.find(".select2-selection__choice").last()).length&&(t=a.GetData(t[0],"data"),s.searchRemoveChoice(t),e.preventDefault())}),this.$selection.on("click",".select2-search--inline",function(e){s.$search.val()&&e.stopPropagation()}),document.documentMode),r=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){r?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;r&&"input"===e.type?s.$selection.off("input.search input.searchcheck"):(t=e.which)!=l.SHIFT&&t!=l.CTRL&&t!=l.ALT&&t!=l.TAB&&s.handleSearch(e)})},e.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},e.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},e.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.resizeSearch(),n&&this.$search.trigger("focus")},e.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},e.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},e.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="100%";""===this.$search.attr("placeholder")&&(e=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",e)},e}),u.define("select2/selection/selectionCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("selectionCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),u.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var s=this,i=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==i.indexOf(e)&&(n=r.Event("select2:"+e,{params:t=t||{}}),s.$element.trigger(n),-1!==o.indexOf(e))&&(t.prevented=n.isDefaultPrevented())})},e}),u.define("select2/translation",["jquery","require"],function(t,n){function s(e){this.dict=e||{}}return s.prototype.all=function(){return this.dict},s.prototype.get=function(e){return this.dict[e]},s.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},s._cache={},s.loadPath=function(e){var t;return e in s._cache||(t=n(e),s._cache[e]=t),new s(s._cache[e])},s}),u.define("select2/diacritics",[],function(){return{"Ⓐ":"A","Ａ":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","Ｂ":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","Ｃ":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","Ｄ":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","Ǳ":"DZ","Ǆ":"DZ","ǲ":"Dz","ǅ":"Dz","Ⓔ":"E","Ｅ":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","Ｆ":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","Ｇ":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","Ｈ":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","Ｉ":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","Ｊ":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","Ｋ":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","Ｌ":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","Ǉ":"LJ","ǈ":"Lj","Ⓜ":"M","Ｍ":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","Ｎ":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","Ǌ":"NJ","ǋ":"Nj","Ⓞ":"O","Ｏ":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","Ｐ":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Ｑ":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","Ｒ":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","Ｓ":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","Ｔ":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","Ｕ":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","Ｖ":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","Ｗ":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","Ｘ":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Ｙ":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Ｚ":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","ａ":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","ｂ":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","ｃ":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","ｄ":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","ǳ":"dz","ǆ":"dz","ⓔ":"e","ｅ":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","ｆ":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","ｇ":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","ｈ":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","ｉ":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","ｊ":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","ｋ":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","ｌ":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","ǉ":"lj","ⓜ":"m","ｍ":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","ｎ":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ŉ":"n","ꞑ":"n","ꞥ":"n","ǌ":"nj","ⓞ":"o","ｏ":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","ｐ":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","ｑ":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","ｒ":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","ｓ":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","ｔ":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","ｕ":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","ｖ":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","ｗ":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","ｘ":"x","ẋ":"x","ẍ":"x","ⓨ":"y","ｙ":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","ｚ":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),u.define("select2/data/base",["../utils"],function(n){function s(e,t){s.__super__.constructor.call(this)}return n.Extend(s,n.Observable),s.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},s.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},s.prototype.bind=function(e,t){},s.prototype.destroy=function(){},s.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},s}),u.define("select2/data/select",["./base","../utils","jquery"],function(e,a,l){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return a.Extend(n,e),n.prototype.current=function(e){var t=this;e(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),function(e){return t.item(l(e))}))},n.prototype.select=function(i){var e,o=this;i.selected=!0,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!0,this.$element.trigger("input").trigger("change")):this.$element.prop("multiple")?this.current(function(e){var t=[];(i=[i]).push.apply(i,e);for(var n=0;n<i.length;n++){var s=i[n].id;-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}):(e=i.id,this.$element.val(e),this.$element.trigger("input").trigger("change"))},n.prototype.unselect=function(i){var o=this;this.$element.prop("multiple")&&(i.selected=!1,null!=i.element&&"option"===i.element.tagName.toLowerCase()?(i.element.selected=!1,this.$element.trigger("input").trigger("change")):this.current(function(e){for(var t=[],n=0;n<e.length;n++){var s=e[n].id;s!==i.id&&-1===t.indexOf(s)&&t.push(s)}o.$element.val(t),o.$element.trigger("input").trigger("change")}))},n.prototype.bind=function(e,t){var n=this;(this.container=e).on("select",function(e){n.select(e.data)}),e.on("unselect",function(e){n.unselect(e.data)})},n.prototype.destroy=function(){this.$element.find("*").each(function(){a.RemoveData(this)})},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each(function(){var e;"option"!==this.tagName.toLowerCase()&&"optgroup"!==this.tagName.toLowerCase()||(e=l(this),e=s.item(e),null!==(e=s.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){this.$element.append(e)},n.prototype.option=function(e){e.children?(t=document.createElement("optgroup")).label=e.text:void 0!==(t=document.createElement("option")).textContent?t.textContent=e.text:t.innerText=e.text,void 0!==e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,e=this._normalizeItem(e);return e.element=t,a.StoreData(t,"data",e),l(t)},n.prototype.item=function(e){var t={};if(null==(t=a.GetData(e[0],"data"))){var n=e[0];if("option"===n.tagName.toLowerCase())t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if("optgroup"===n.tagName.toLowerCase()){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},s=e.children("option"),i=[],o=0;o<s.length;o++){var r=l(s[o]),r=this.item(r);i.push(r)}t.children=i}(t=this._normalizeItem(t)).element=e[0],a.StoreData(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){e!==Object(e)&&(e={id:e,text:e});return null!=(e=l.extend({},{text:""},e)).id&&(e.id=e.id.toString()),null!=e.text&&(e.text=e.text.toString()),null==e._resultId&&e.id&&null!=this.container&&(e._resultId=this.generateResultId(this.container,e)),l.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),u.define("select2/data/array",["./select","../utils","jquery"],function(e,t,c){function s(e,t){this._dataToConvert=t.get("data")||[],s.__super__.constructor.call(this,e,t)}return t.Extend(s,e),s.prototype.bind=function(e,t){s.__super__.bind.call(this,e,t),this.addOptions(this.convertToOptions(this._dataToConvert))},s.prototype.select=function(n){var e;0===this.$element.find("option").filter(function(e,t){return t.value==n.id.toString()}).length&&(e=this.option(n),this.addOptions(e)),s.__super__.select.call(this,n)},s.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),s=n.map(function(){return t.item(c(this)).id}).get(),i=[];for(var o=0;o<e.length;o++){var r,a,l=this._normalizeItem(e[o]);0<=s.indexOf(l.id)?(r=n.filter(function(e){return function(){return c(this).val()==e.id}}(l)),a=this.item(r),a=c.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(r=this.option(l),l.children&&(a=this.convertToOptions(l.children),r.append(a)),i.push(r))}return i},s}),u.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,o){function n(e,t){this.ajaxOptions=this._applyDefaults(t.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,e,t)}return t.Extend(n,e),n.prototype._applyDefaults=function(e){return o.extend({},{data:function(e){return o.extend({},e,{q:e.term})},transport:function(e,t,n){e=o.ajax(e);return e.then(t),e.fail(n),e}},e,!0)},n.prototype.processResults=function(e){return e},n.prototype.query=function(t,n){var s=this,i=(null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null),o.extend({type:"GET"},this.ajaxOptions));function e(){var e=i.transport(i,function(e){e=s.processResults(e,t);s.options.get("debug")&&window.console&&console.error&&(e&&e.results&&Array.isArray(e.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),n(e)},function(){e&&"status"in e&&(0===e.status||"0"===e.status)||s.trigger("results:message",{message:"errorLoading"})});s._request=e}"function"==typeof i.url&&(i.url=i.url.call(this.$element,t)),"function"==typeof i.data&&(i.data=i.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(e,this.ajaxOptions.delay)):e()},n}),u.define("select2/data/tags",["jquery"],function(t){function e(e,t,n){var s=n.get("tags"),i=n.get("createTag"),i=(void 0!==i&&(this.createTag=i),n.get("insertTag"));if(void 0!==i&&(this.insertTag=i),e.call(this,t,n),Array.isArray(s))for(var o=0;o<s.length;o++){var r=s[o],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,u){var d=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,u):e.call(this,c,function e(t,n){for(var s=t.results,i=0;i<s.length;i++){var o=s[i],r=null!=o.children&&!e({results:o.children},!0);if((o.text||"").toUpperCase()===(c.term||"").toUpperCase()||r)return!n&&(t.data=s,void u(t))}if(n)return!0;var a,l=d.createTag(c);null!=l&&((a=d.option(l)).attr("data-select2-tag","true"),d.addOptions([a]),d.insertTag(s,l)),t.results=s,u(t)})},e.prototype.createTag=function(e,t){return null==t.term||""===(t=t.term.trim())?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),u.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var s=n.get("tokenizer");void 0!==s&&(this.tokenizer=s),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){e.call(this,t,n),this.$search=t.dropdown.$search||t.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,t,n){var s=this;t.term=t.term||"";var i=this.tokenizer(t,this.options,function(e){var t=s._normalizeItem(e);s.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=s.option(t)).attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([e])),s.trigger("select",{data:t})});i.term!==t.term&&(this.$search.length&&(this.$search.val(i.term),this.$search.trigger("focus")),t.term=i.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,s){for(var i=n.get("tokenSeparators")||[],o=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<o.length;){var l=o[r];-1===i.indexOf(l)?r++:(l=o.substr(0,r),null==(l=a(c.extend({},t,{term:l})))?r++:(s(l),o=o.substr(r+1)||"",r=0))}return{term:o}},e}),u.define("select2/data/minimumInputLength",[],function(){function e(e,t,n){this.minimumInputLength=n.get("minimumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",t.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumInputLength",[],function(){function e(e,t,n){this.maximumInputLength=n.get("maximumInputLength"),e.call(this,t,n)}return e.prototype.query=function(e,t,n){t.term=t.term||"",0<this.maximumInputLength&&t.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),u.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(){s._checkIfMaximumSelected()})},e.prototype.query=function(e,t,n){var s=this;this._checkIfMaximumSelected(function(){e.call(s,t,n)})},e.prototype._checkIfMaximumSelected=function(e,t){var n=this;this.current(function(e){e=null!=e?e.length:0;0<n.maximumSelectionLength&&e>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):t&&t()})},e}),u.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),u.define("select2/dropdown/search",["jquery"],function(o){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("translations").get("search"),n=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",t()),e.prepend(n),e},e.prototype.bind=function(e,t,n){var s=this,i=t.id+"-results";e.call(this,t,n),this.$search.on("keydown",function(e){s.trigger("keypress",e),s._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){s.handleSearch(e)}),t.on("open",function(){s.$search.attr("tabindex",0),s.$search.attr("aria-controls",i),s.$search.trigger("focus"),window.setTimeout(function(){s.$search.trigger("focus")},0)}),t.on("close",function(){s.$search.attr("tabindex",-1),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.val(""),s.$search.trigger("blur")}),t.on("focus",function(){t.isOpen()||s.$search.trigger("focus")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(s.showSearch(e)?s.$searchContainer[0].classList.remove("select2-search--hide"):s.$searchContainer[0].classList.add("select2-search--hide"))}),t.on("results:focus",function(e){e.data._resultId?s.$search.attr("aria-activedescendant",e.data._resultId):s.$search.removeAttr("aria-activedescendant")})},e.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},e.prototype.showSearch=function(e,t){return!0},e}),u.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,s){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,s)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),s=t.length-1;0<=s;s--){var i=t[s];this.placeholder.id===i.id&&n.splice(s,1)}return n},e}),u.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function e(e,t,n,s){this.lastParams={},e.call(this,t,n,s),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("query",function(e){s.lastParams=e,s.loading=!0}),t.on("query:append",function(e){s.lastParams=e,s.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=n.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(e=this.$results.offset().top+this.$results.outerHeight(!1),this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)<=e+50)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=n.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=n('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),u.define("select2/dropdown/attachBody",["jquery","../utils"],function(u,r){function e(e,t,n){this.$dropdownParent=u(n.get("dropdownParent")||document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("open",function(){s._showDropdown(),s._attachPositioningHandler(t),s._bindContainerResultHandlers(t)}),t.on("close",function(){s._hideDropdown(),s._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t[0].classList.remove("select2"),t[0].classList.add("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._bindContainerResultHandlers=function(e,t){var n;this._containerResultsHandlersBound||(n=this,t.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),t.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0)},e.prototype._attachPositioningHandler=function(e,t){var n=this,s="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id,o=this.$container.parents().filter(r.hasScroll);o.each(function(){r.StoreData(this,"select2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),o.on(s,function(e){var t=r.GetData(this,"select2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(s+" "+i+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,s="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),u(window).off(n+" "+s+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),s=null,i=this.$container.offset(),o=(i.bottom=i.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});o.top=i.top,o.bottom=i.top+o.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),e=e.scrollTop()+e.height(),a=a<i.top-r,e=e>i.bottom+r,i={left:i.left,top:o.bottom},l=this.$dropdownParent,c=("static"===l.css("position")&&(l=l.offsetParent()),{top:0,left:0});(u.contains(document.body,l[0])||l[0].isConnected)&&(c=l.offset()),i.top-=c.top,i.left-=c.left,t||n||(s="below"),e||!a||t?!a&&e&&t&&(s="below"):s="above",("above"==s||t&&"below"!==s)&&(i.top=o.top-c.top-r),null!=s&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+s),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+s)),this.$dropdownContainer.css(i)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.position="relative",e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),u.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,s){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,s)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,s=0;s<t.length;s++){var i=t[s];i.children?n+=e(i.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),u.define("select2/dropdown/selectOnClose",["../utils"],function(n){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("close",function(e){s._handleSelectOnClose(e)})},e.prototype._handleSelectOnClose=function(e,t){if(t&&null!=t.originalSelect2Event){t=t.originalSelect2Event;if("select"===t._type||"unselect"===t._type)return}var t=this.getHighlightedResults();t.length<1||null!=(t=n.GetData(t[0],"data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t})},e}),u.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var s=this;e.call(this,t,n),t.on("select",function(e){s._selectTriggered(e)}),t.on("unselect",function(e){s._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),u.define("select2/dropdown/dropdownCss",["../utils"],function(n){function e(){}return e.prototype.render=function(e){var e=e.call(this),t=this.options.get("dropdownCssClass")||"";return-1!==t.indexOf(":all:")&&(t=t.replace(":all:",""),n.copyNonInternalCssClasses(e[0],this.$element[0])),e.addClass(t),e},e}),u.define("select2/dropdown/tagsSearchHighlight",["../utils"],function(s){function e(){}return e.prototype.highlightFirstItem=function(e){var t=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(0<t.length){var t=t.first(),n=s.GetData(t[0],"data").element;if(n&&n.getAttribute&&"true"===n.getAttribute("data-select2-tag"))return void t.trigger("mouseenter")}e.call(this)},e}),u.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){var e=e.input.length-e.maximum,t="Please delete "+e+" character";return 1!=e&&(t+="s"),t},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var t="You can only select "+e.maximum+" item";return 1!=e.maximum&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}}),u.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],function(l,o,r,a,c,u,d,p,h,f,g,t,m,y,v,_,b,w,$,x,A,D,S,O,L,E,C,T,q,I,e){function n(){this.reset()}return n.prototype.apply=function(e){null==(e=l.extend(!0,{},this.defaults,e)).dataAdapter&&(null!=e.ajax?e.dataAdapter=v:null!=e.data?e.dataAdapter=y:e.dataAdapter=m,0<e.minimumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,w)),0<e.maximumInputLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,$)),0<e.maximumSelectionLength&&(e.dataAdapter=f.Decorate(e.dataAdapter,x)),e.tags&&(e.dataAdapter=f.Decorate(e.dataAdapter,_)),null==e.tokenSeparators&&null==e.tokenizer||(e.dataAdapter=f.Decorate(e.dataAdapter,b))),null==e.resultsAdapter&&(e.resultsAdapter=o,null!=e.ajax&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,O)),null!=e.placeholder&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,S)),e.selectOnClose&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,C)),e.tags)&&(e.resultsAdapter=f.Decorate(e.resultsAdapter,I)),null==e.dropdownAdapter&&(e.multiple?e.dropdownAdapter=A:(t=f.Decorate(A,D),e.dropdownAdapter=t),0!==e.minimumResultsForSearch&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,E)),e.closeOnSelect&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,T)),null!=e.dropdownCssClass&&(e.dropdownAdapter=f.Decorate(e.dropdownAdapter,q)),e.dropdownAdapter=f.Decorate(e.dropdownAdapter,L)),null==e.selectionAdapter&&(e.multiple?e.selectionAdapter=a:e.selectionAdapter=r,null!=e.placeholder&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,c)),e.allowClear&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,u)),e.multiple&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,d)),null!=e.selectionCssClass&&(e.selectionAdapter=f.Decorate(e.selectionAdapter,p)),e.selectionAdapter=f.Decorate(e.selectionAdapter,h)),e.language=this._resolveLanguage(e.language),e.language.push("en");for(var t,n=[],s=0;s<e.language.length;s++){var i=e.language[s];-1===n.indexOf(i)&&n.push(i)}return e.language=n,e.translations=this._processTranslations(e.language,e.debug),e},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:f.escapeMarkup,language:{},matcher:function e(t,n){if(null==t.term||""===t.term.trim())return n;if(n.children&&0<n.children.length){for(var s=l.extend(!0,{},n),i=n.children.length-1;0<=i;i--)null==e(t,n.children[i])&&s.children.splice(i,1);return 0<s.children.length?s:e(t,s)}var o=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<o.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.applyFromElement=function(e,t){var n=e.language,s=this.defaults.language,i=t.prop("lang"),t=t.closest("[lang]").prop("lang"),i=Array.prototype.concat.call(this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s),this._resolveLanguage(t));return e.language=i,e},n.prototype._resolveLanguage=function(e){if(!e)return[];if(l.isEmptyObject(e))return[];if(l.isPlainObject(e))return[e];for(var t,n=Array.isArray(e)?e:[e],s=[],i=0;i<n.length;i++)s.push(n[i]),"string"==typeof n[i]&&0<n[i].indexOf("-")&&(t=n[i].split("-")[0],s.push(t));return s},n.prototype._processTranslations=function(e,t){for(var n=new g,s=0;s<e.length;s++){var i=new g,o=e[s];if("string"==typeof o)try{i=g.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,i=g.loadPath(o)}catch(e){t&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else i=l.isPlainObject(o)?new g(o):o;n.extend(i)}return n},n.prototype.set=function(e,t){var n={},e=(n[l.camelCase(e)]=t,f._convertData(n));l.extend(!0,this.defaults,e)},new n}),u.define("select2/options",["jquery","./defaults","./utils"],function(c,n,u){function e(e,t){this.options=e,null!=t&&this.fromElement(t),null!=t&&(this.options=n.applyFromElement(this.options,t)),this.options=n.apply(this.options)}return e.prototype.fromElement=function(e){var t=["select2"],n=(null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),u.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),u.StoreData(e[0],"data",u.GetData(e[0],"select2Tags")),u.StoreData(e[0],"tags",!0)),u.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",u.GetData(e[0],"ajaxUrl")),u.StoreData(e[0],"ajax-Url",u.GetData(e[0],"ajaxUrl"))),{});function s(e,t){return t.toUpperCase()}for(var i=0;i<e[0].attributes.length;i++){var o=e[0].attributes[i].name,r="data-";o.substr(0,r.length)==r&&(o=o.substring(r.length),r=u.GetData(e[0],o),n[o.replace(/-([a-z])/g,s)]=r)}c.fn.jquery&&"1."==c.fn.jquery.substr(0,2)&&e[0].dataset&&(n=c.extend(!0,{},e[0].dataset,n));var a,l=c.extend(!0,{},u.GetData(e[0]),n);for(a in l=u._convertData(l))-1<t.indexOf(a)||(c.isPlainObject(this.options[a])?c.extend(this.options[a],l[a]):this.options[a]=l[a]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),u.define("select2/core",["jquery","./options","./utils","./keys"],function(t,i,o,s){function r(e,t){null!=o.GetData(e[0],"select2")&&o.GetData(e[0],"select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new i(t=t||{},e),r.__super__.constructor.call(this);var t=e.attr("tabindex")||0,t=(o.StoreData(e[0],"old-tabindex",t),e.attr("tabindex","-1"),this.options.get("dataAdapter")),t=(this.dataAdapter=new t(e,this.options),this.render()),n=(this._placeContainer(t),this.options.get("selectionAdapter")),n=(this.selection=new n(e,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,t),this.options.get("dropdownAdapter")),n=(this.dropdown=new n(e,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,t),this.options.get("resultsAdapter")),s=(this.results=new n(e,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown),this);this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(e){s.trigger("selection:update",{data:e})}),e[0].classList.add("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),o.StoreData(e[0],"select2",this),e.data("select2",this)}return o.Extend(r,o.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+o.generateChars(2):o.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(e){e.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));null!=t&&e.css("width",t)},r.prototype._resolveWidth=function(e,t){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==t)return null!=(s=this._resolveWidth(e,"style"))?s:this._resolveWidth(e,"element");if("element"==t)return(s=e.outerWidth(!1))<=0?"auto":s+"px";if("style"!=t)return"computedstyle"==t?window.getComputedStyle(e[0]).width:t;var s=e.attr("style");if("string"==typeof s)for(var i=s.split(";"),o=0,r=i.length;o<r;o+=1){var a=i[o].replace(/\s/g,"").match(n);if(null!==a&&1<=a.length)return a[1]}return null},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=o.bind(this._syncAttributes,this),this._syncS=o.bind(this._syncSubtree,this),this._observer=new window.MutationObserver(function(e){t._syncA(),t._syncS(e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerSelectionEvents=function(){var n=this,s=["toggle","focus"];this.selection.on("toggle",function(){n.toggleDropdown()}),this.selection.on("focus",function(e){n.focus(e)}),this.selection.on("*",function(e,t){-1===s.indexOf(e)&&n.trigger(e,t)})},r.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(e,t){n.trigger(e,t)})},r.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container[0].classList.add("select2-container--open")}),this.on("close",function(){n.$container[0].classList.remove("select2-container--open")}),this.on("enable",function(){n.$container[0].classList.remove("select2-container--disabled")}),this.on("disable",function(){n.$container[0].classList.add("select2-container--disabled")}),this.on("blur",function(){n.$container[0].classList.remove("select2-container--focus")}),this.on("query",function(t){n.isOpen()||n.trigger("open",{}),this.dataAdapter.query(t,function(e){n.trigger("results:all",{data:e,query:t})})}),this.on("query:append",function(t){this.dataAdapter.query(t,function(e){n.trigger("results:append",{data:e,query:t})})}),this.on("keypress",function(e){var t=e.which;n.isOpen()?t===s.ESC||t===s.UP&&e.altKey?(n.close(e),e.preventDefault()):t===s.ENTER||t===s.TAB?(n.trigger("results:select",{}),e.preventDefault()):t===s.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===s.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===s.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===s.ENTER||t===s.SPACE||t===s.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e){var t=this;if(e.addedNodes&&0<e.addedNodes.length){for(var n=0;n<e.addedNodes.length;n++)if(e.addedNodes[n].selected)return!0}else{if(e.removedNodes&&0<e.removedNodes.length)return!0;if(Array.isArray(e))return e.some(function(e){return t._isChangeMutation(e)})}return!1},r.prototype._syncSubtree=function(e){var e=this._isChangeMutation(e),t=this;e&&this.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,s={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===t&&(t={}),e in s){var i={prevented:!1,name:e,args:t};if(n.call(this,s[e],i),i.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(e){this.isOpen()&&this.trigger("close",{originalEvent:e})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(e){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');e=!(e=null!=e&&0!==e.length?e:[!0])[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();e=e[0];Array.isArray(e)&&(e=e.map(function(e){return e.toString()})),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){o.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",o.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),o.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),o.StoreData(e[0],"element",this.$element),e},r}),u.define("select2/dropdown/attachContainer",[],function(){function e(e,t,n){e.call(this,t,n)}return e.prototype.position=function(e,t,n){n.find(".dropdown-wrapper").append(t),t[0].classList.add("select2-dropdown--below"),n[0].classList.add("select2-container--below")},e}),u.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),u.define("select2/selection/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,t,n){e.call(this,t,n);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),function(e){e.stopPropagation()})},e}),i=function(c){var u,d,e=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],t="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],p=Array.prototype.slice;if(c.event.fixHooks)for(var n=e.length;n;)c.event.fixHooks[e[--n]]=c.event.mouseHooks;var h=c.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var e=t.length;e;)this.addEventListener(t[--e],s,!1);else this.onmousewheel=s;c.data(this,"mousewheel-line-height",h.getLineHeight(this)),c.data(this,"mousewheel-page-height",h.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var e=t.length;e;)this.removeEventListener(t[--e],s,!1);else this.onmousewheel=null;c.removeData(this,"mousewheel-line-height"),c.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var e=c(e),t=e["offsetParent"in c.fn?"offsetParent":"parent"]();return t.length||(t=c("body")),parseInt(t.css("fontSize"),10)||parseInt(e.css("fontSize"),10)||16},getPageHeight:function(e){return c(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function s(e){var t,n=e||window.event,s=p.call(arguments,1),i=0,o=0,r=0,a=0,l=0;if((e=c.event.fix(n)).type="mousewheel","detail"in n&&(r=-1*n.detail),"wheelDelta"in n&&(r=n.wheelDelta),"wheelDeltaY"in n&&(r=n.wheelDeltaY),"wheelDeltaX"in n&&(o=-1*n.wheelDeltaX),"axis"in n&&n.axis===n.HORIZONTAL_AXIS&&(o=-1*r,r=0),i=0===r?o:r,"deltaY"in n&&(i=r=-1*n.deltaY),"deltaX"in n&&(o=n.deltaX,0===r)&&(i=-1*o),0!==r||0!==o)return 1===n.deltaMode?(i*=t=c.data(this,"mousewheel-line-height"),r*=t,o*=t):2===n.deltaMode&&(i*=t=c.data(this,"mousewheel-page-height"),r*=t,o*=t),t=Math.max(Math.abs(r),Math.abs(o)),(!d||t<d)&&g(n,d=t)&&(d/=40),g(n,t)&&(i/=40,o/=40,r/=40),i=Math[1<=i?"floor":"ceil"](i/d),o=Math[1<=o?"floor":"ceil"](o/d),r=Math[1<=r?"floor":"ceil"](r/d),h.settings.normalizeOffset&&this.getBoundingClientRect&&(n=this.getBoundingClientRect(),a=e.clientX-n.left,l=e.clientY-n.top),e.deltaX=o,e.deltaY=r,e.deltaFactor=d,e.offsetX=a,e.offsetY=l,e.deltaMode=0,s.unshift(e,i,o,r),u&&clearTimeout(u),u=setTimeout(f,200),(c.event.dispatch||c.event.handle).apply(this,s)}function f(){d=null}function g(e,t){return h.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}c.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})},"function"==typeof u.define&&u.define.amd?u.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t),u.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(i,e,o,t,r){var a;return null==i.fn.select2&&(a=["open","close","destroy"],i.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=i.extend(!0,{},t);new o(i(this),e)}),this;var n,s;if("string"==typeof t)return s=Array.prototype.slice.call(arguments,1),this.each(function(){var e=r.GetData(this,"select2");null==e&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2."),n=e[t].apply(e,s)}),-1<a.indexOf(t)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==i.fn.select2.defaults&&(i.fn.select2.defaults=t),o});var e,p,o,r,h,f,g,m,y,v,n,s,_,i,a={define:u.define,require:u.require};function b(e,t){return n.call(e,t)}function l(e,t){var n,s,i,o,r,a,l,c,u,d,p=t&&t.split("/"),h=y.map,f=h&&h["*"]||{};if(e){for(t=(e=e.split("/")).length-1,y.nodeIdCompat&&_.test(e[t])&&(e[t]=e[t].replace(_,"")),"."===e[0].charAt(0)&&p&&(e=p.slice(0,p.length-1).concat(e)),c=0;c<e.length;c++)"."===(d=e[c])?(e.splice(c,1),--c):".."!==d||0===c||1===c&&".."===e[2]||".."===e[c-1]||0<c&&(e.splice(c-1,2),c-=2);e=e.join("/")}if((p||f)&&h){for(c=(n=e.split("/")).length;0<c;--c){if(s=n.slice(0,c).join("/"),p)for(u=p.length;0<u;--u)if(i=(i=h[p.slice(0,u).join("/")])&&i[s]){o=i,r=c;break}if(o)break;!a&&f&&f[s]&&(a=f[s],l=c)}!o&&a&&(o=a,r=l),o&&(n.splice(0,r,o),e=n.join("/"))}return e}function w(t,n){return function(){var e=s.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(p,e.concat([t,n]))}}function x(e){var t;if(b(m,e)&&(t=m[e],delete m[e],v[e]=!0,o.apply(p,t)),b(g,e)||b(v,e))return g[e];throw new Error("No "+e)}function c(e){var t,n=e?e.indexOf("!"):-1;return-1<n&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function A(e){return e?c(e):[]}var u=a.require("jquery.select2");return t.fn.select2.amd=a,u});
(function(){"use strict"})();
var bookie_overview_card=jQuery(".home .bookie_review_comparison");bookie_overview_card.click(function(e){var r=jQuery(this).find("a");if(r.attr("target")=="_blank"){window.open(r.attr("href"))}else{window.location.href=r.attr("href")}e.preventDefault()});
(function(){function e(e){if(document.readyState==="loading"){document.addEventListener("DOMContentLoaded",e)}else{e()}}e(function(){var e=o();var t=a(e,"utm_source")&&e.utm_source==="promo";if(t&&a(e,"utm_campaign")){sessionStorage.setItem("utm_campaign",e.utm_campaign)}n()});function n(){var n=sessionStorage.getItem("utm_campaign");if(n!==null){Array.prototype.forEach.call(document.querySelectorAll('a[href*="/go/"]'),function(t){t.addEventListener("click",function(){if(!t.getAttribute("data-campaign")){var e=t.href;if(/\?/.test(e)){e+="&"}else{e+="?"}e=decodeURIComponent(e).replace(/\bweak\[[^\]]*\]=[^&]+/,"");e+="weak[]="+encodeURIComponent(n);t.setAttribute("data-campaign",n);t.href=e}})})}}function a(e,t){return typeof e[t]!=="undefined"}function o(){var e={utm_source:null,utm_campaign:null,utm_medium:null};for(var t in e){e[t]=r(t)}return e}function r(e){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var t=new RegExp("[\\?&]"+e+"=([^&#]*)");var n=t.exec(location.search);if(n!==null){n=decodeURIComponent(n[1].replace(/\+/g," "))}return n}})();
(function(){"use strict";var e="(Chrome-Lighthouse|Googlebot|Page Speed Insights)";var t=new RegExp(e,"i");if(t.test(navigator.userAgent)){document.cookie="cookie_notice_accepted=true"}})();
(function(){"use strict";var o="(Chrome-Lighthouse|Googlebot|Page Speed Insights)";var e=new RegExp(o,"i");if(e.test(navigator.userAgent)){document.cookie="cmplz_choice=set";document.cookie="cmplz_consent_status=allow";document.cookie="cmplz_functional=allow";document.cookie='cmplz_id=""';document.cookie="cmplz_marketing=allow";document.cookie="cmplz_policy=1";document.cookie="cmplz_preferences=allow";document.cookie="cmplz_statistics=allow";document.cookie="cmplz_statistics-anonymous=allow"}})();
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Siema",[],t):"object"==typeof exports?exports.Siema=t():e.Siema=t()}("undefined"!=typeof self?self:this,function(){return function(e){function t(r){if(i[r])return i[r].exports;var n=i[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,t),n.l=!0,n.exports}var i={};return t.m=e,t.c=i,t.d=function(e,i,r){t.o(e,i)||Object.defineProperty(e,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(i,"a",i),i},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,i){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,i,r){return i&&e(t.prototype,i),r&&e(t,r),t}}(),l=function(){function e(t){var i=this;if(r(this,e),this.config=e.mergeSettings(t),this.selector="string"==typeof this.config.selector?document.querySelector(this.config.selector):this.config.selector,null===this.selector)throw new Error("Something wrong with your selector 😭");this.resolveSlidesNumber(),this.selectorWidth=this.selector.offsetWidth,this.innerElements=[].slice.call(this.selector.children),this.currentSlide=this.config.loop?this.config.startIndex%this.innerElements.length:Math.max(0,Math.min(this.config.startIndex,this.innerElements.length-this.perPage)),this.transformProperty=e.webkitOrNot(),["resizeHandler","touchstartHandler","touchendHandler","touchmoveHandler","mousedownHandler","mouseupHandler","mouseleaveHandler","mousemoveHandler","clickHandler"].forEach(function(e){i[e]=i[e].bind(i)}),this.init()}return s(e,[{key:"attachEvents",value:function(){window.addEventListener("resize",this.resizeHandler),this.config.draggable&&(this.pointerDown=!1,this.isDragging=!1,this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:!1},this.selector.addEventListener("touchstart",this.touchstartHandler),this.selector.addEventListener("touchend",this.touchendHandler),this.selector.addEventListener("touchmove",this.touchmoveHandler),this.selector.addEventListener("mousedown",this.mousedownHandler),this.selector.addEventListener("mouseup",this.mouseupHandler),this.selector.addEventListener("mouseleave",this.mouseleaveHandler),this.selector.addEventListener("mousemove",this.mousemoveHandler),this.selector.addEventListener("click",this.clickHandler))}},{key:"detachEvents",value:function(){window.removeEventListener("resize",this.resizeHandler),this.selector.removeEventListener("touchstart",this.touchstartHandler),this.selector.removeEventListener("touchend",this.touchendHandler),this.selector.removeEventListener("touchmove",this.touchmoveHandler),this.selector.removeEventListener("mousedown",this.mousedownHandler),this.selector.removeEventListener("mouseup",this.mouseupHandler),this.selector.removeEventListener("mouseleave",this.mouseleaveHandler),this.selector.removeEventListener("mousemove",this.mousemoveHandler),this.selector.removeEventListener("click",this.clickHandler)}},{key:"init",value:function(){this.attachEvents(),this.selector.style.overflow="hidden",this.selector.style.direction=this.config.rtl?"rtl":"ltr",this.buildSliderFrame(),this.config.onInit.call(this)}},{key:"buildSliderFrame",value:function(){var e=this.selectorWidth/this.perPage,t=this.config.loop?this.innerElements.length+2*this.perPage:this.innerElements.length;this.sliderFrame=document.createElement("div"),this.sliderFrame.style.width=e*t+"px",this.enableTransition(),this.config.draggable&&(this.selector.style.cursor="-webkit-grab");var i=document.createDocumentFragment();if(this.config.loop)for(var r=this.innerElements.length-this.perPage;r<this.innerElements.length;r++){var n=this.buildSliderFrameItem(this.innerElements[r].cloneNode(!0));i.appendChild(n)}for(var s=0;s<this.innerElements.length;s++){var l=this.buildSliderFrameItem(this.innerElements[s]);i.appendChild(l)}if(this.config.loop)for(var o=0;o<this.perPage;o++){var a=this.buildSliderFrameItem(this.innerElements[o].cloneNode(!0));i.appendChild(a)}this.sliderFrame.appendChild(i),this.selector.innerHTML="",this.selector.appendChild(this.sliderFrame),this.slideToCurrent()}},{key:"buildSliderFrameItem",value:function(e){var t=document.createElement("div");return t.style.cssFloat=this.config.rtl?"right":"left",t.style.float=this.config.rtl?"right":"left",t.style.width=(this.config.loop?100/(this.innerElements.length+2*this.perPage):100/this.innerElements.length)+"%",t.appendChild(e),t}},{key:"resolveSlidesNumber",value:function(){if("number"==typeof this.config.perPage)this.perPage=this.config.perPage;else if("object"===n(this.config.perPage)){this.perPage=1;for(var e in this.config.perPage)window.innerWidth>=e&&(this.perPage=this.config.perPage[e])}}},{key:"prev",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide-e<0){this.disableTransition();var r=this.currentSlide+this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r-e}else this.currentSlide=this.currentSlide-e}else this.currentSlide=Math.max(this.currentSlide-e,0);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"next",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t=arguments[1];if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;if(this.config.loop){if(this.currentSlide+e>this.innerElements.length-this.perPage){this.disableTransition();var r=this.currentSlide-this.innerElements.length,n=this.perPage,s=r+n,l=(this.config.rtl?1:-1)*s*(this.selectorWidth/this.perPage),o=this.config.draggable?this.drag.endX-this.drag.startX:0;this.sliderFrame.style[this.transformProperty]="translate3d("+(l+o)+"px, 0, 0)",this.currentSlide=r+e}else this.currentSlide=this.currentSlide+e}else this.currentSlide=Math.min(this.currentSlide+e,this.innerElements.length-this.perPage);i!==this.currentSlide&&(this.slideToCurrent(this.config.loop),this.config.onChange.call(this),t&&t.call(this))}}},{key:"disableTransition",value:function(){this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing}},{key:"enableTransition",value:function(){this.sliderFrame.style.webkitTransition="all "+this.config.duration+"ms "+this.config.easing,this.sliderFrame.style.transition="all "+this.config.duration+"ms "+this.config.easing}},{key:"goTo",value:function(e,t){if(!(this.innerElements.length<=this.perPage)){var i=this.currentSlide;this.currentSlide=this.config.loop?e%this.innerElements.length:Math.min(Math.max(e,0),this.innerElements.length-this.perPage),i!==this.currentSlide&&(this.slideToCurrent(),this.config.onChange.call(this),t&&t.call(this))}}},{key:"slideToCurrent",value:function(e){var t=this,i=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,r=(this.config.rtl?1:-1)*i*(this.selectorWidth/this.perPage);e?requestAnimationFrame(function(){requestAnimationFrame(function(){t.enableTransition(),t.sliderFrame.style[t.transformProperty]="translate3d("+r+"px, 0, 0)"})}):this.sliderFrame.style[this.transformProperty]="translate3d("+r+"px, 0, 0)"}},{key:"updateAfterDrag",value:function(){var e=(this.config.rtl?-1:1)*(this.drag.endX-this.drag.startX),t=Math.abs(e),i=this.config.multipleDrag?Math.ceil(t/(this.selectorWidth/this.perPage)):1,r=e>0&&this.currentSlide-i<0,n=e<0&&this.currentSlide+i>this.innerElements.length-this.perPage;e>0&&t>this.config.threshold&&this.innerElements.length>this.perPage?this.prev(i):e<0&&t>this.config.threshold&&this.innerElements.length>this.perPage&&this.next(i),this.slideToCurrent(r||n)}},{key:"resizeHandler",value:function(){this.resolveSlidesNumber(),this.currentSlide+this.perPage>this.innerElements.length&&(this.currentSlide=this.innerElements.length<=this.perPage?0:this.innerElements.length-this.perPage),this.selectorWidth=this.selector.offsetWidth,this.buildSliderFrame()}},{key:"clearDrag",value:function(){this.drag={startX:0,endX:0,startY:0,letItGo:null,preventClick:this.drag.preventClick}}},{key:"touchstartHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.stopPropagation(),this.isDragging=!0,this.pointerDown=!0,this.drag.startX=e.touches[0].pageX,this.drag.startY=e.touches[0].pageY)}},{key:"touchendHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.isDragging=!1,this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"touchmoveHandler",value:function(e){if(e.stopPropagation(),null===this.drag.letItGo&&(this.drag.letItGo=Math.abs(this.drag.startY-e.touches[0].pageY)<Math.abs(this.drag.startX-e.touches[0].pageX)),this.pointerDown&&this.drag.letItGo){e.preventDefault(),this.drag.endX=e.touches[0].pageX,this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=t*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?i+r:i-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mousedownHandler",value:function(e){-1!==["TEXTAREA","OPTION","INPUT","SELECT"].indexOf(e.target.nodeName)||(e.preventDefault(),e.stopPropagation(),this.pointerDown=!0,this.drag.startX=e.pageX)}},{key:"mouseupHandler",value:function(e){e.stopPropagation(),this.pointerDown=!1,this.isDragging=!1,this.selector.style.cursor="-webkit-grab",this.enableTransition(),this.drag.endX&&this.updateAfterDrag(),this.clearDrag()}},{key:"mousemoveHandler",value:function(e){if(e.preventDefault(),this.pointerDown&&(this.isDragging||e.pageX!==this.drag.startX)){"A"===e.target.nodeName&&(this.drag.preventClick=!0),this.isDragging=!0,this.drag.endX=e.pageX,this.selector.style.cursor="-webkit-grabbing",this.sliderFrame.style.webkitTransition="all 0ms "+this.config.easing,this.sliderFrame.style.transition="all 0ms "+this.config.easing;var t=this.config.loop?this.currentSlide+this.perPage:this.currentSlide,i=t*(this.selectorWidth/this.perPage),r=this.drag.endX-this.drag.startX,n=this.config.rtl?i+r:i-r;this.sliderFrame.style[this.transformProperty]="translate3d("+(this.config.rtl?1:-1)*n+"px, 0, 0)"}}},{key:"mouseleaveHandler",value:function(e){this.pointerDown&&(this.pointerDown=!1,this.isDragging=!1,this.selector.style.cursor="-webkit-grab",this.drag.endX=e.pageX,this.drag.preventClick=!1,this.enableTransition(),this.updateAfterDrag(),this.clearDrag())}},{key:"clickHandler",value:function(e){this.drag.preventClick&&e.preventDefault(),this.drag.preventClick=!1}},{key:"remove",value:function(e,t){if(e<0||e>=this.innerElements.length)throw new Error("Item to remove doesn't exist 😭");var i=e<this.currentSlide,r=this.currentSlide+this.perPage-1===e;(i||r)&&this.currentSlide--,this.innerElements.splice(e,1),this.buildSliderFrame(),t&&t.call(this)}},{key:"insert",value:function(e,t,i){if(t<0||t>this.innerElements.length+1)throw new Error("Unable to inset it at this index 😭");if(-1!==this.innerElements.indexOf(e))throw new Error("The same item in a carousel? Really? Nope 😭");var r=t<=this.currentSlide>0&&this.innerElements.length;this.currentSlide=r?this.currentSlide+1:this.currentSlide,this.innerElements.splice(t,0,e),this.buildSliderFrame(),i&&i.call(this)}},{key:"prepend",value:function(e,t){this.insert(e,0),t&&t.call(this)}},{key:"append",value:function(e,t){this.insert(e,this.innerElements.length+1),t&&t.call(this)}},{key:"destroy",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments[1];if(this.detachEvents(),this.selector.style.cursor="auto",e){for(var i=document.createDocumentFragment(),r=0;r<this.innerElements.length;r++)i.appendChild(this.innerElements[r]);this.selector.innerHTML="",this.selector.appendChild(i),this.selector.removeAttribute("style")}t&&t.call(this)}}],[{key:"mergeSettings",value:function(e){var t={selector:".siema",duration:200,easing:"ease-out",perPage:1,startIndex:0,draggable:!0,multipleDrag:!0,threshold:20,loop:!1,rtl:!1,onInit:function(){},onChange:function(){}},i=e;for(var r in i)t[r]=i[r];return t}},{key:"webkitOrNot",value:function(){return"string"==typeof document.documentElement.style.transform?"transform":"WebkitTransform"}}]),e}();t.default=l,e.exports=t.default}])});

(function(r){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],function(e){return r(e,window,document)})}else if(typeof exports==="object"){module.exports=function(e,t){if(!e){e=window}if(!t){t=typeof window!=="undefined"?require("jquery"):require("jquery")(e)}return r(t,e,e.document)}}else{r(jQuery,window,document)}})(function(V,R,m,X){"use strict";var P=function(A){this.$=function(e,t){return this.api(true).$(e,t)};this._=function(e,t){return this.api(true).rows(e,t).data()};this.api=function(e){return e?new S(vt(this[p.iApiIndex])):new S(this)};this.fnAddData=function(e,t){var r=this.api(true);var a=V.isArray(e)&&(V.isArray(e[0])||V.isPlainObject(e[0]))?r.rows.add(e):r.row.add(e);if(t===X||t){r.draw()}return a.flatten().toArray()};this.fnAdjustColumnSizing=function(e){var t=this.api(true).columns.adjust();var r=t.settings()[0];var a=r.oScroll;if(e===X||e){t.draw(false)}else if(a.sX!==""||a.sY!==""){et(r)}};this.fnClearTable=function(e){var t=this.api(true).clear();if(e===X||e){t.draw()}};this.fnClose=function(e){this.api(true).row(e).child.hide()};this.fnDeleteRow=function(e,t,r){var a=this.api(true);var n=a.rows(e);var i=n.settings()[0];var l=i.aoData[n[0][0]];n.remove();if(t){t.call(this,i,l)}if(r===X||r){a.draw()}return l};this.fnDestroy=function(e){this.api(true).destroy(e)};this.fnDraw=function(e){this.api(true).draw(e)};this.fnFilter=function(e,t,r,a,n,i){var l=this.api(true);if(t===null||t===X){l.search(e,r,a,i)}else{l.column(t).search(e,r,a,i)}l.draw()};this.fnGetData=function(e,t){var r=this.api(true);if(e!==X){var a=e.nodeName?e.nodeName.toLowerCase():"";return t!==X||a=="td"||a=="th"?r.cell(e,t).data():r.row(e).data()||null}return r.data().toArray()};this.fnGetNodes=function(e){var t=this.api(true);return e!==X?t.row(e).node():t.rows().nodes().flatten().toArray()};this.fnGetPosition=function(e){var t=this.api(true);var r=e.nodeName.toUpperCase();if(r=="TR"){return t.row(e).index()}else if(r=="TD"||r=="TH"){var a=t.cell(e).index();return[a.row,a.columnVisible,a.column]}return null};this.fnIsOpen=function(e){return this.api(true).row(e).child.isShown()};this.fnOpen=function(e,t,r){return this.api(true).row(e).child(t,r).show().child()[0]};this.fnPageChange=function(e,t){var r=this.api(true).page(e);if(t===X||t){r.draw(false)}};this.fnSetColumnVis=function(e,t,r){var a=this.api(true).column(e).visible(t);if(r===X||r){a.columns.adjust().draw()}};this.fnSettings=function(){return vt(this[p.iApiIndex])};this.fnSort=function(e){this.api(true).order(e).draw()};this.fnSortListener=function(e,t,r){this.api(true).order.listener(e,t,r)};this.fnUpdate=function(e,t,r,a,n){var i=this.api(true);if(r===X||r===null){i.row(t).data(e)}else{i.cell(t,r).data(e)}if(n===X||n){i.columns.adjust()}if(a===X||a){i.draw()}return 0};this.fnVersionCheck=p.fnVersionCheck;var F=this;var L=A===X;var R=this.length;if(L){A={}}this.oApi=this.internal=p.internal;for(var e in P.ext.internal){if(e){this[e]=qt(e)}}this.each(function(){var e={};var i=R>1?gt(e,A,true):A;var l=0,o,t,r,a,n;var s=this.getAttribute("id");var u=false;var f=P.defaults;var c=V(this);if(this.nodeName.toLowerCase()!="table"){Y(null,0,"Non-table node initialisation ("+this.nodeName+")",2);return}Q(f);ee(f.column);j(f,f,true);j(f.column,f.column,true);j(f,V.extend(i,c.data()));var d=P.settings;for(l=0,o=d.length;l<o;l++){var h=d[l];if(h.nTable==this||h.nTHead&&h.nTHead.parentNode==this||h.nTFoot&&h.nTFoot.parentNode==this){var p=i.bRetrieve!==X?i.bRetrieve:f.bRetrieve;var v=i.bDestroy!==X?i.bDestroy:f.bDestroy;if(L||p){return h.oInstance}else if(v){h.oInstance.fnDestroy();break}else{Y(h,0,"Cannot reinitialise DataTable",3);return}}if(h.sTableId==this.id){d.splice(l,1);break}}if(s===null||s===""){s="DataTables_Table_"+P.ext._unique++;this.id=s}var g=V.extend(true,{},P.models.oSettings,{sDestroyWidth:c[0].style.width,sInstance:s,sTableId:s});g.nTable=this;g.oApi=F.internal;g.oInit=i;d.push(g);g.oInstance=F.length===1?F:c.dataTable();Q(i);K(i.oLanguage);if(i.aLengthMenu&&!i.iDisplayLength){i.iDisplayLength=V.isArray(i.aLengthMenu[0])?i.aLengthMenu[0][0]:i.aLengthMenu[0]}i=gt(V.extend(true,{},f),i);k(g.oFeatures,i,["bPaginate","bLengthChange","bFilter","bSort","bSortMulti","bInfo","bProcessing","bAutoWidth","bSortClasses","bServerSide","bDeferRender"]);k(g,i,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"]]);k(g.oScroll,i,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);k(g.oLanguage,i,"fnInfoCallback");M(g,"aoDrawCallback",i.fnDrawCallback,"user");M(g,"aoServerParams",i.fnServerParams,"user");M(g,"aoStateSaveParams",i.fnStateSaveParams,"user");M(g,"aoStateLoadParams",i.fnStateLoadParams,"user");M(g,"aoStateLoaded",i.fnStateLoaded,"user");M(g,"aoRowCallback",i.fnRowCallback,"user");M(g,"aoRowCreatedCallback",i.fnCreatedRow,"user");M(g,"aoHeaderCallback",i.fnHeaderCallback,"user");M(g,"aoFooterCallback",i.fnFooterCallback,"user");M(g,"aoInitComplete",i.fnInitComplete,"user");M(g,"aoPreDrawCallback",i.fnPreDrawCallback,"user");g.rowIdFn=H(i.rowId);te(g);var b=g.oClasses;V.extend(b,P.ext.classes,i.oClasses);c.addClass(b.sTable);if(g.iInitDisplayStart===X){g.iInitDisplayStart=i.iDisplayStart;g._iDisplayStart=i.iDisplayStart}if(i.iDeferLoading!==null){g.bDeferLoading=true;var S=V.isArray(i.iDeferLoading);g._iRecordsDisplay=S?i.iDeferLoading[0]:i.iDeferLoading;g._iRecordsTotal=S?i.iDeferLoading[1]:i.iDeferLoading}var m=g.oLanguage;V.extend(true,m,i.oLanguage);if(m.sUrl){V.ajax({dataType:"json",url:m.sUrl,success:function(e){K(e);j(f.oLanguage,e);V.extend(true,m,e);qe(g)},error:function(){qe(g)}});u=true}if(i.asStripeClasses===null){g.asStripeClasses=[b.sStripeOdd,b.sStripeEven]}var D=g.asStripeClasses;var y=c.children("tbody").find("tr").eq(0);if(V.inArray(true,V.map(D,function(e,t){return y.hasClass(e)}))!==-1){V("tbody tr",this).removeClass(D.join(" "));g.asDestroyStripes=D.slice()}var _=[];var w;var C=this.getElementsByTagName("thead");if(C.length!==0){Ce(g.aoHeader,C[0]);_=Te(g)}if(i.aoColumns===null){w=[];for(l=0,o=_.length;l<o;l++){w.push(null)}}else{w=i.aoColumns}for(l=0,o=w.length;l<o;l++){ae(g,_?_[l]:null)}oe(g,i.aoColumnDefs,w,function(e,t){ne(g,e,t)});if(y.length){var T=function(e,t){return e.getAttribute("data-"+t)!==null?t:null};V(y[0]).children("th, td").each(function(e,t){var r=g.aoColumns[e];if(r.mData===e){var a=T(t,"sort")||T(t,"order");var n=T(t,"filter")||T(t,"search");if(a!==null||n!==null){r.mData={_:e+".display",sort:a!==null?e+".@data-"+a:X,type:a!==null?e+".@data-"+a:X,filter:n!==null?e+".@data-"+n:X};ne(g,e)}}})}var x=g.oFeatures;var I=function(){if(i.aaSorting===X){var e=g.aaSorting;for(l=0,o=e.length;l<o;l++){e[l][1]=g.aoColumns[l].asSorting[0]}}ct(g);if(x.bSort){M(g,"aoDrawCallback",function(){if(g.bSorted){var e=O(g);var r={};V.each(e,function(e,t){r[t.src]=t.dir});W(g,null,"order",[g,e,r]);st(g)}})}M(g,"aoDrawCallback",function(){if(g.bSorted||E(g)==="ssp"||x.bDeferRender){ct(g)}},"sc");var t=c.children("caption").each(function(){this._captionSide=V(this).css("caption-side")});var r=c.children("thead");if(r.length===0){r=V("<thead/>").appendTo(c)}g.nTHead=r[0];var a=c.children("tbody");if(a.length===0){a=V("<tbody/>").appendTo(c)}g.nTBody=a[0];var n=c.children("tfoot");if(n.length===0&&t.length>0&&(g.oScroll.sX!==""||g.oScroll.sY!=="")){n=V("<tfoot/>").appendTo(c)}if(n.length===0||n.children().length===0){c.addClass(b.sNoFooter)}else if(n.length>0){g.nTFoot=n[0];Ce(g.aoFooter,g.nTFoot)}if(i.aaData){for(l=0;l<i.aaData.length;l++){N(g,i.aaData[l])}}else if(g.bDeferLoading||E(g)=="dom"){se(g,V(g.nTBody).children("tr"))}g.aiDisplay=g.aiDisplayMaster.slice();g.bInitialised=true;if(u===false){qe(g)}};if(i.bStateSave){x.bStateSave=true;M(g,"aoDrawCallback",ht,"state_save");pt(g,i,I)}else{I()}});F=null;return this};var p;var S;var t;var e;var r={};var a=/[\r\n]/g;var s=/<.*?>/g;var u=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/;var d=new RegExp("(\\"+["/",".","*","+","?","|","(",")","[","]","{","}","\\","$","^","-"].join("|\\")+")","g");var _=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi;var n=function(e){return!e||e===true||e==="-"?true:false};var w=function(e){var t=parseInt(e,10);return!isNaN(t)&&isFinite(e)?t:null};var C=function(e,t){if(!r[t]){r[t]=new RegExp(ke(t),"g")}return typeof e==="string"&&t!=="."?e.replace(/\./g,"").replace(r[t],"."):e};var x=function(e,t,r){var a=typeof e==="string";if(n(e)){return true}if(t&&a){e=C(e,t)}if(r&&a){e=e.replace(_,"")}return!isNaN(parseFloat(e))&&isFinite(e)};var I=function(e){return n(e)||typeof e==="string"};var A=function(e,t,r){if(n(e)){return true}var a=I(e);return!a?null:x(B(e),t,r)?true:null};var J=function(e,t,r){var a=[];var n=0,i=e.length;if(r!==X){for(;n<i;n++){if(e[n]&&e[n][t]){a.push(e[n][t][r])}}}else{for(;n<i;n++){if(e[n]){a.push(e[n][t])}}}return a};var g=function(e,t,r,a){var n=[];var i=0,l=t.length;if(a!==X){for(;i<l;i++){if(e[t[i]][r]){n.push(e[t[i]][r][a])}}}else{for(;i<l;i++){n.push(e[t[i]][r])}}return n};var h=function(e,t){var r=[];var a;if(t===X){t=0;a=e}else{a=t;t=e}for(var n=t;n<a;n++){r.push(n)}return r};var F=function(e){var t=[];for(var r=0,a=e.length;r<a;r++){if(e[r]){t.push(e[r])}}return t};var B=function(e){return e.replace(s,"")};var U=function(e){if(e.length<2){return true}var t=e.slice().sort();var r=t[0];for(var a=1,n=t.length;a<n;a++){if(t[a]===r){return false}r=t[a]}return true};var Z=function(e){if(U(e)){return e.slice()}var t=[],r,a,n=e.length,i,l=0;e:for(a=0;a<n;a++){r=e[a];for(i=0;i<l;i++){if(t[i]===r){continue e}}t.push(r);l++}return t};P.util={throttle:function(a,e){var n=e!==X?e:200,i,l;return function(){var e=this,t=+new Date,r=arguments;if(i&&t<i+n){clearTimeout(l);l=setTimeout(function(){i=X;a.apply(e,r)},n)}else{i=t;a.apply(e,r)}}},escapeRegex:function(e){return e.replace(d,"\\$1")}};function o(r){var a="a aa ai ao as b fn i m o s ",n,i,l={};V.each(r,function(e,t){n=e.match(/^([^A-Z]+?)([A-Z])/);if(n&&a.indexOf(n[1]+" ")!==-1){i=e.replace(n[0],n[2].toLowerCase());l[i]=e;if(n[1]==="o"){o(r[e])}}});r._hungarianMap=l}function j(r,a,n){if(!r._hungarianMap){o(r)}var i;V.each(a,function(e,t){i=r._hungarianMap[e];if(i!==X&&(n||a[i]===X)){if(i.charAt(0)==="o"){if(!a[i]){a[i]={}}V.extend(true,a[i],a[e]);j(r[i],a[i],n)}else{a[i]=a[e]}}})}function K(e){var t=P.defaults.oLanguage;var r=t.sDecimal;if(r){Xt(r)}if(e){var a=e.sZeroRecords;if(!e.sEmptyTable&&a&&t.sEmptyTable==="No data available in table"){k(e,e,"sZeroRecords","sEmptyTable")}if(!e.sLoadingRecords&&a&&t.sLoadingRecords==="Loading..."){k(e,e,"sZeroRecords","sLoadingRecords")}if(e.sInfoThousands){e.sThousands=e.sInfoThousands}var n=e.sDecimal;if(n&&r!==n){Xt(n)}}}var i=function(e,t,r){if(e[t]!==X){e[r]=e[t]}};function Q(e){i(e,"ordering","bSort");i(e,"orderMulti","bSortMulti");i(e,"orderClasses","bSortClasses");i(e,"orderCellsTop","bSortCellsTop");i(e,"order","aaSorting");i(e,"orderFixed","aaSortingFixed");i(e,"paging","bPaginate");i(e,"pagingType","sPaginationType");i(e,"pageLength","iDisplayLength");i(e,"searching","bFilter");if(typeof e.sScrollX==="boolean"){e.sScrollX=e.sScrollX?"100%":""}if(typeof e.scrollX==="boolean"){e.scrollX=e.scrollX?"100%":""}var t=e.aoSearchCols;if(t){for(var r=0,a=t.length;r<a;r++){if(t[r]){j(P.models.oSearch,t[r])}}}}function ee(e){i(e,"orderable","bSortable");i(e,"orderData","aDataSort");i(e,"orderSequence","asSorting");i(e,"orderDataType","sortDataType");var t=e.aDataSort;if(typeof t==="number"&&!V.isArray(t)){e.aDataSort=[t]}}function te(e){if(!P.__browser){var t={};P.__browser=t;var r=V("<div/>").css({position:"fixed",top:0,left:V(R).scrollLeft()*-1,height:1,width:1,overflow:"hidden"}).append(V("<div/>").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(V("<div/>").css({width:"100%",height:10}))).appendTo("body");var a=r.children();var n=a.children();t.barWidth=a[0].offsetWidth-a[0].clientWidth;t.bScrollOversize=n[0].offsetWidth===100&&a[0].clientWidth!==100;t.bScrollbarLeft=Math.round(n.offset().left)!==1;t.bBounding=r[0].getBoundingClientRect().width?true:false;r.remove()}V.extend(e.oBrowser,P.__browser);e.oScroll.iBarWidth=P.__browser.barWidth}function re(e,t,r,a,n,i){var l=a,o,s=false;if(r!==X){o=r;s=true}while(l!==n){if(!e.hasOwnProperty(l)){continue}o=s?t(o,e[l],l,e):e[l];s=true;l+=i}return o}function ae(e,t){var r=P.defaults.column;var a=e.aoColumns.length;var n=V.extend({},P.models.oColumn,r,{nTh:t?t:m.createElement("th"),sTitle:r.sTitle?r.sTitle:t?t.innerHTML:"",aDataSort:r.aDataSort?r.aDataSort:[a],mData:r.mData?r.mData:a,idx:a});e.aoColumns.push(n);var i=e.aoPreSearchCols;i[a]=V.extend({},P.models.oSearch,i[a]);ne(e,a,V(t).data())}function ne(e,t,r){var a=e.aoColumns[t];var n=e.oClasses;var i=V(a.nTh);if(!a.sWidthOrig){a.sWidthOrig=i.attr("width")||null;var l=(i.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);if(l){a.sWidthOrig=l[1]}}if(r!==X&&r!==null){ee(r);j(P.defaults.column,r);if(r.mDataProp!==X&&!r.mData){r.mData=r.mDataProp}if(r.sType){a._sManualType=r.sType}if(r.className&&!r.sClass){r.sClass=r.className}if(r.sClass){i.addClass(r.sClass)}V.extend(a,r);k(a,r,"sWidth","sWidthOrig");if(r.iDataSort!==X){a.aDataSort=[r.iDataSort]}k(a,r,"aDataSort")}var o=a.mData;var s=H(o);var u=a.mRender?H(a.mRender):null;var f=function(e){return typeof e==="string"&&e.indexOf("@")!==-1};a._bAttrSrc=V.isPlainObject(o)&&(f(o.sort)||f(o.type)||f(o.filter));a._setter=null;a.fnGetData=function(e,t,r){var a=s(e,t,X,r);return u&&t?u(a,t,e,r):a};a.fnSetData=function(e,t,r){return D(o)(e,t,r)};if(typeof o!=="number"){e._rowReadObject=true}if(!e.oFeatures.bSort){a.bSortable=false;i.addClass(n.sSortableNone)}var c=V.inArray("asc",a.asSorting)!==-1;var d=V.inArray("desc",a.asSorting)!==-1;if(!a.bSortable||!c&&!d){a.sSortingClass=n.sSortableNone;a.sSortingClassJUI=""}else if(c&&!d){a.sSortingClass=n.sSortableAsc;a.sSortingClassJUI=n.sSortJUIAscAllowed}else if(!c&&d){a.sSortingClass=n.sSortableDesc;a.sSortingClassJUI=n.sSortJUIDescAllowed}else{a.sSortingClass=n.sSortable;a.sSortingClassJUI=n.sSortJUI}}function q(e){if(e.oFeatures.bAutoWidth!==false){var t=e.aoColumns;rt(e);for(var r=0,a=t.length;r<a;r++){t[r].nTh.style.width=t[r].sWidth}}var n=e.oScroll;if(n.sY!==""||n.sX!==""){et(e)}W(e,null,"column-sizing",[e])}function G(e,t){var r=ie(e,"bVisible");return typeof r[t]==="number"?r[t]:null}function f(e,t){var r=ie(e,"bVisible");var a=V.inArray(t,r);return a!==-1?a:null}function L(e){var r=0;V.each(e.aoColumns,function(e,t){if(t.bVisible&&V(t.nTh).css("display")!=="none"){r++}});return r}function ie(e,r){var a=[];V.map(e.aoColumns,function(e,t){if(e[r]){a.push(t)}});return a}function le(e){var t=e.aoColumns;var r=e.aoData;var a=P.ext.type.detect;var n,i,l,o,s,u;var f,c,d,h;for(n=0,i=t.length;n<i;n++){f=t[n];h=[];if(!f.sType&&f._sManualType){f.sType=f._sManualType}else if(!f.sType){for(l=0,o=a.length;l<o;l++){for(s=0,u=r.length;s<u;s++){if(h[s]===X){h[s]=b(e,s,n,"type")}d=a[l](h[s],e);if(!d&&l!==a.length-1){break}if(d==="html"){break}}if(d){f.sType=d;break}}if(!f.sType){f.sType="string"}}}}function oe(e,t,r,a){var n,i,l,o,s,u,f;var c=e.aoColumns;if(t){for(n=t.length-1;n>=0;n--){f=t[n];var d=f.targets!==X?f.targets:f.aTargets;if(!V.isArray(d)){d=[d]}for(l=0,o=d.length;l<o;l++){if(typeof d[l]==="number"&&d[l]>=0){while(c.length<=d[l]){ae(e)}a(d[l],f)}else if(typeof d[l]==="number"&&d[l]<0){a(c.length+d[l],f)}else if(typeof d[l]==="string"){for(s=0,u=c.length;s<u;s++){if(d[l]=="_all"||V(c[s].nTh).hasClass(d[l])){a(s,f)}}}}}}if(r){for(n=0,i=r.length;n<i;n++){a(n,r[n])}}}function N(e,t,r,a){var n=e.aoData.length;var i=V.extend(true,{},P.models.oRow,{src:r?"dom":"data",idx:n});i._aData=t;e.aoData.push(i);var l,o;var s=e.aoColumns;for(var u=0,f=s.length;u<f;u++){s[u].sType=null}e.aiDisplayMaster.push(n);var c=e.rowIdFn(t);if(c!==X){e.aIds[c]=i}if(r||!e.oFeatures.bDeferRender){me(e,n,r,a)}return n}function se(r,e){var a;if(!(e instanceof V)){e=V(e)}return e.map(function(e,t){a=Se(r,t);return N(r,a.data,t,a.cells)})}function ue(e,t){return t._DT_RowIndex!==X?t._DT_RowIndex:null}function fe(e,t,r){return V.inArray(r,e.aoData[t].anCells)}function b(e,t,r,a){var n=e.iDraw;var i=e.aoColumns[r];var l=e.aoData[t]._aData;var o=i.sDefaultContent;var s=i.fnGetData(l,a,{settings:e,row:t,col:r});if(s===X){if(e.iDrawError!=n&&o===null){Y(e,0,"Requested unknown parameter "+(typeof i.mData=="function"?"{function}":"'"+i.mData+"'")+" for row "+t+", column "+r,4);e.iDrawError=n}return o}if((s===l||s===null)&&o!==null&&a!==X){s=o}else if(typeof s==="function"){return s.call(l)}if(s===null&&a=="display"){return""}return s}function ce(e,t,r,a){var n=e.aoColumns[r];var i=e.aoData[t]._aData;n.fnSetData(i,a,{settings:e,row:t,col:r})}var de=/\[.*?\]$/;var v=/\(\)$/;function he(e){return V.map(e.match(/(\\.|[^\.])+/g)||[""],function(e){return e.replace(/\\\./g,".")})}function H(n){if(V.isPlainObject(n)){var i={};V.each(n,function(e,t){if(t){i[e]=H(t)}});return function(e,t,r,a){var n=i[t]||i._;return n!==X?n(e,t,r,a):e}}else if(n===null){return function(e){return e}}else if(typeof n==="function"){return function(e,t,r,a){return n(e,t,r,a)}}else if(typeof n==="string"&&(n.indexOf(".")!==-1||n.indexOf("[")!==-1||n.indexOf("(")!==-1)){var h=function(e,t,r){var a,n,i,l;if(r!==""){var o=he(r);for(var s=0,u=o.length;s<u;s++){a=o[s].match(de);n=o[s].match(v);if(a){o[s]=o[s].replace(de,"");if(o[s]!==""){e=e[o[s]]}i=[];o.splice(0,s+1);l=o.join(".");if(V.isArray(e)){for(var f=0,c=e.length;f<c;f++){i.push(h(e[f],t,l))}}var d=a[0].substring(1,a[0].length-1);e=d===""?i:i.join(d);break}else if(n){o[s]=o[s].replace(v,"");e=e[o[s]]();continue}if(e===null||e[o[s]]===X){return X}e=e[o[s]]}}return e};return function(e,t){return h(e,t,n)}}else{return function(e,t){return e[n]}}}function D(a){if(V.isPlainObject(a)){return D(a._)}else if(a===null){return function(){}}else if(typeof a==="function"){return function(e,t,r){a(e,"set",t,r)}}else if(typeof a==="string"&&(a.indexOf(".")!==-1||a.indexOf("[")!==-1||a.indexOf("(")!==-1)){var p=function(e,t,r){var a=he(r),n;var i=a[a.length-1];var l,o,s,u;for(var f=0,c=a.length-1;f<c;f++){l=a[f].match(de);o=a[f].match(v);if(l){a[f]=a[f].replace(de,"");e[a[f]]=[];n=a.slice();n.splice(0,f+1);u=n.join(".");if(V.isArray(t)){for(var d=0,h=t.length;d<h;d++){s={};p(s,t[d],u);e[a[f]].push(s)}}else{e[a[f]]=t}return}else if(o){a[f]=a[f].replace(v,"");e=e[a[f]](t)}if(e[a[f]]===null||e[a[f]]===X){e[a[f]]={}}e=e[a[f]]}if(i.match(v)){e=e[i.replace(v,"")](t)}else{e[i.replace(de,"")]=t}};return function(e,t){return p(e,t,a)}}else{return function(e,t){e[a]=t}}}function pe(e){return J(e.aoData,"_aData")}function ve(e){e.aoData.length=0;e.aiDisplayMaster.length=0;e.aiDisplay.length=0;e.aIds={}}function ge(e,t,r){var a=-1;for(var n=0,i=e.length;n<i;n++){if(e[n]==t){a=n}else if(e[n]>t){e[n]--}}if(a!=-1&&r===X){e.splice(a,1)}}function be(r,a,e,t){var n=r.aoData[a];var i,l;var o=function(e,t){while(e.childNodes.length){e.removeChild(e.firstChild)}e.innerHTML=b(r,a,t,"display")};if(e==="dom"||(!e||e==="auto")&&n.src==="dom"){n._aData=Se(r,n,t,t===X?X:n._aData).data}else{var s=n.anCells;if(s){if(t!==X){o(s[t],t)}else{for(i=0,l=s.length;i<l;i++){o(s[i],i)}}}}n._aSortData=null;n._aFilterData=null;var u=r.aoColumns;if(t!==X){u[t].sType=null}else{for(i=0,l=u.length;i<l;i++){u[i].sType=null}De(r,n)}}function Se(e,t,r,i){var a=[],n=t.firstChild,l,o,s,u=0,f,c=e.aoColumns,d=e._rowReadObject;i=i!==X?i:d?{}:[];var h=function(e,t){if(typeof e==="string"){var r=e.indexOf("@");if(r!==-1){var a=e.substring(r+1);var n=D(e);n(i,t.getAttribute(a))}}};var p=function(e){if(r===X||r===u){o=c[u];f=V.trim(e.innerHTML);if(o&&o._bAttrSrc){var t=D(o.mData._);t(i,f);h(o.mData.sort,e);h(o.mData.type,e);h(o.mData.filter,e)}else{if(d){if(!o._setter){o._setter=D(o.mData)}o._setter(i,f)}else{i[u]=f}}}u++};if(n){while(n){l=n.nodeName.toUpperCase();if(l=="TD"||l=="TH"){p(n);a.push(n)}n=n.nextSibling}}else{a=t.anCells;for(var v=0,g=a.length;v<g;v++){p(a[v])}}var b=t.firstChild?t:t.nTr;if(b){var S=b.getAttribute("id");if(S){D(e.rowId)(i,S)}}return{data:i,cells:a}}function me(e,t,r,a){var n=e.aoData[t],i=n._aData,l=[],o,s,u,f,c;if(n.nTr===null){o=r||m.createElement("tr");n.nTr=o;n.anCells=l;o._DT_RowIndex=t;De(e,n);for(f=0,c=e.aoColumns.length;f<c;f++){u=e.aoColumns[f];s=r?a[f]:m.createElement(u.sCellType);s._DT_CellIndex={row:t,column:f};l.push(s);if((!r||u.mRender||u.mData!==f)&&(!V.isPlainObject(u.mData)||u.mData._!==f+".display")){s.innerHTML=b(e,t,f,"display")}if(u.sClass){s.className+=" "+u.sClass}if(u.bVisible&&!r){o.appendChild(s)}else if(!u.bVisible&&r){s.parentNode.removeChild(s)}if(u.fnCreatedCell){u.fnCreatedCell.call(e.oInstance,s,b(e,t,f),i,t,f)}}W(e,"aoRowCreatedCallback",null,[o,i,t,l])}n.nTr.setAttribute("role","row")}function De(e,t){var r=t.nTr;var a=t._aData;if(r){var n=e.rowIdFn(a);if(n){r.id=n}if(a.DT_RowClass){var i=a.DT_RowClass.split(" ");t.__rowc=t.__rowc?Z(t.__rowc.concat(i)):i;V(r).removeClass(t.__rowc.join(" ")).addClass(a.DT_RowClass)}if(a.DT_RowAttr){V(r).attr(a.DT_RowAttr)}if(a.DT_RowData){V(r).data(a.DT_RowData)}}}function ye(e){var t,r,a,n,i;var l=e.nTHead;var o=e.nTFoot;var s=V("th, td",l).length===0;var u=e.oClasses;var f=e.aoColumns;if(s){n=V("<tr/>").appendTo(l)}for(t=0,r=f.length;t<r;t++){i=f[t];a=V(i.nTh).addClass(i.sClass);if(s){a.appendTo(n)}if(e.oFeatures.bSort){a.addClass(i.sSortingClass);if(i.bSortable!==false){a.attr("tabindex",e.iTabIndex).attr("aria-controls",e.sTableId);ft(e,i.nTh,t)}}if(i.sTitle!=a[0].innerHTML){a.html(i.sTitle)}mt(e,"header")(e,a,i,u)}if(s){Ce(e.aoHeader,l)}V(l).find(">tr").attr("role","row");V(l).find(">tr>th, >tr>td").addClass(u.sHeaderTH);V(o).find(">tr>th, >tr>td").addClass(u.sFooterTH);if(o!==null){var c=e.aoFooter[0];for(t=0,r=c.length;t<r;t++){i=f[t];i.nTf=c[t].cell;if(i.sClass){V(i.nTf).addClass(i.sClass)}}}}function _e(e,t,r){var a,n,i,l,o,s,u,f;var c=[];var d=[];var h=e.aoColumns.length;var p,v;if(!t){return}if(r===X){r=false}for(a=0,n=t.length;a<n;a++){c[a]=t[a].slice();c[a].nTr=t[a].nTr;for(i=h-1;i>=0;i--){if(!e.aoColumns[i].bVisible&&!r){c[a].splice(i,1)}}d.push([])}for(a=0,n=c.length;a<n;a++){f=c[a].nTr;if(f){while(u=f.firstChild){f.removeChild(u)}}for(i=0,l=c[a].length;i<l;i++){p=1;v=1;if(d[a][i]===X){f.appendChild(c[a][i].cell);d[a][i]=1;while(c[a+p]!==X&&c[a][i].cell==c[a+p][i].cell){d[a+p][i]=1;p++}while(c[a][i+v]!==X&&c[a][i].cell==c[a][i+v].cell){for(o=0;o<p;o++){d[a+o][i+v]=1}v++}V(c[a][i].cell).attr("rowspan",p).attr("colspan",v)}}}}function y(e){var t=W(e,"aoPreDrawCallback","preDraw",[e]);if(V.inArray(false,t)!==-1){T(e,false);return}var r,a,n;var i=[];var l=0;var o=e.asStripeClasses;var s=o.length;var u=e.aoOpenRows.length;var f=e.oLanguage;var c=e.iInitDisplayStart;var d=E(e)=="ssp";var h=e.aiDisplay;e.bDrawing=true;if(c!==X&&c!==-1){e._iDisplayStart=d?c:c>=e.fnRecordsDisplay()?0:c;e.iInitDisplayStart=-1}var p=e._iDisplayStart;var v=e.fnDisplayEnd();if(e.bDeferLoading){e.bDeferLoading=false;e.iDraw++;T(e,false)}else if(!d){e.iDraw++}else if(!e.bDestroying&&!Ie(e)){return}if(h.length!==0){var g=d?0:p;var b=d?e.aoData.length:v;for(var S=g;S<b;S++){var m=h[S];var D=e.aoData[m];if(D.nTr===null){me(e,m)}var y=D.nTr;if(s!==0){var _=o[l%s];if(D._sRowStripe!=_){V(y).removeClass(D._sRowStripe).addClass(_);D._sRowStripe=_}}W(e,"aoRowCallback",null,[y,D._aData,l,S,m]);i.push(y);l++}}else{var w=f.sZeroRecords;if(e.iDraw==1&&E(e)=="ajax"){w=f.sLoadingRecords}else if(f.sEmptyTable&&e.fnRecordsTotal()===0){w=f.sEmptyTable}i[0]=V("<tr/>",{class:s?o[0]:""}).append(V("<td />",{valign:"top",colSpan:L(e),class:e.oClasses.sRowEmpty}).html(w))[0]}W(e,"aoHeaderCallback","header",[V(e.nTHead).children("tr")[0],pe(e),p,v,h]);W(e,"aoFooterCallback","footer",[V(e.nTFoot).children("tr")[0],pe(e),p,v,h]);var C=V(e.nTBody);C.children().detach();C.append(V(i));W(e,"aoDrawCallback","draw",[e]);e.bSorted=false;e.bFiltered=false;e.bDrawing=false}function c(e,t){var r=e.oFeatures,a=r.bSort,n=r.bFilter;if(a){ot(e)}if(n){Pe(e,e.oPreviousSearch)}else{e.aiDisplay=e.aiDisplayMaster.slice()}if(t!==true){e._iDisplayStart=0}e._drawHold=t;y(e);e._drawHold=false}function we(e){var t=e.oClasses;var r=V(e.nTable);var a=V("<div/>").insertBefore(r);var n=e.oFeatures;var i=V("<div/>",{id:e.sTableId+"_wrapper",class:t.sWrapper+(e.nTFoot?"":" "+t.sNoFooter)});e.nHolding=a[0];e.nTableWrapper=i[0];e.nTableReinsertBefore=e.nTable.nextSibling;var l=e.sDom.split("");var o,s,u,f,c,d;for(var h=0;h<l.length;h++){o=null;s=l[h];if(s=="<"){u=V("<div/>")[0];f=l[h+1];if(f=="'"||f=='"'){c="";d=2;while(l[h+d]!=f){c+=l[h+d];d++}if(c=="H"){c=t.sJUIHeader}else if(c=="F"){c=t.sJUIFooter}if(c.indexOf(".")!=-1){var p=c.split(".");u.id=p[0].substr(1,p[0].length-1);u.className=p[1]}else if(c.charAt(0)=="#"){u.id=c.substr(1,c.length-1)}else{u.className=c}h+=d}i.append(u);i=V(u)}else if(s==">"){i=i.parent()}else if(s=="l"&&n.bPaginate&&n.bLengthChange){o=ze(e)}else if(s=="f"&&n.bFilter){o=Re(e)}else if(s=="r"&&n.bProcessing){o=Ke(e)}else if(s=="t"){o=Qe(e)}else if(s=="i"&&n.bInfo){o=Ve(e)}else if(s=="p"&&n.bPaginate){o=Ye(e)}else if(P.ext.feature.length!==0){var v=P.ext.feature;for(var g=0,b=v.length;g<b;g++){if(s==v[g].cFeature){o=v[g].fnInit(e);break}}}if(o){var S=e.aanFeatures;if(!S[s]){S[s]=[]}S[s].push(o);i.append(o)}}a.replaceWith(i);e.nHolding=null}function Ce(e,t){var r=V(t).children("tr");var a,n;var i,l,o,s,u,f,c,d,h;var p;var v=function(e,t,r){var a=e[t];while(a[r]){r++}return r};e.splice(0,e.length);for(i=0,s=r.length;i<s;i++){e.push([])}for(i=0,s=r.length;i<s;i++){a=r[i];c=0;n=a.firstChild;while(n){if(n.nodeName.toUpperCase()=="TD"||n.nodeName.toUpperCase()=="TH"){d=n.getAttribute("colspan")*1;h=n.getAttribute("rowspan")*1;d=!d||d===0||d===1?1:d;h=!h||h===0||h===1?1:h;f=v(e,i,c);p=d===1?true:false;for(o=0;o<d;o++){for(l=0;l<h;l++){e[i+l][f+o]={cell:n,unique:p};e[i+l].nTr=a}}}n=n.nextSibling}}}function Te(e,t,r){var a=[];if(!r){r=e.aoHeader;if(t){r=[];Ce(r,t)}}for(var n=0,i=r.length;n<i;n++){for(var l=0,o=r[n].length;l<o;l++){if(r[n][l].unique&&(!a[l]||!e.bSortCellsTop)){a[l]=r[n][l].cell}}}return a}function xe(n,e,t){W(n,"aoServerParams","serverParams",[e]);if(e&&V.isArray(e)){var i={};var l=/(.*?)\[\]$/;V.each(e,function(e,t){var r=t.name.match(l);if(r){var a=r[0];if(!i[a]){i[a]=[]}i[a].push(t.value)}else{i[t.name]=t.value}});e=i}var r;var a=n.ajax;var o=n.oInstance;var s=function(e){W(n,null,"xhr",[n,e,n.jqXHR]);t(e)};if(V.isPlainObject(a)&&a.data){r=a.data;var u=typeof r==="function"?r(e,n):r;e=typeof r==="function"&&u?u:V.extend(true,e,u);delete a.data}var f={data:e,success:function(e){var t=e.error||e.sError;if(t){Y(n,0,t)}n.json=e;s(e)},dataType:"json",cache:false,type:n.sServerMethod,error:function(e,t,r){var a=W(n,null,"xhr",[n,null,n.jqXHR]);if(V.inArray(true,a)===-1){if(t=="parsererror"){Y(n,0,"Invalid JSON response",1)}else if(e.readyState===4){Y(n,0,"Ajax error",7)}}T(n,false)}};n.oAjaxData=e;W(n,null,"preXhr",[n,e]);if(n.fnServerData){n.fnServerData.call(o,n.sAjaxSource,V.map(e,function(e,t){return{name:t,value:e}}),s,n)}else if(n.sAjaxSource||typeof a==="string"){n.jqXHR=V.ajax(V.extend(f,{url:a||n.sAjaxSource}))}else if(typeof a==="function"){n.jqXHR=a.call(o,e,s,n)}else{n.jqXHR=V.ajax(V.extend(f,a));a.data=r}}function Ie(t){if(t.bAjaxDataGet){t.iDraw++;T(t,true);xe(t,Ae(t),function(e){Fe(t,e)});return false}return true}function Ae(e){var t=e.aoColumns,r=t.length,a=e.oFeatures,n=e.oPreviousSearch,i=e.aoPreSearchCols,l,o=[],s,u,f,c=O(e),d=e._iDisplayStart,h=a.bPaginate!==false?e._iDisplayLength:-1;var p=function(e,t){o.push({name:e,value:t})};p("sEcho",e.iDraw);p("iColumns",r);p("sColumns",J(t,"sName").join(","));p("iDisplayStart",d);p("iDisplayLength",h);var v={draw:e.iDraw,columns:[],order:[],start:d,length:h,search:{value:n.sSearch,regex:n.bRegex}};for(l=0;l<r;l++){u=t[l];f=i[l];s=typeof u.mData=="function"?"function":u.mData;v.columns.push({data:s,name:u.sName,searchable:u.bSearchable,orderable:u.bSortable,search:{value:f.sSearch,regex:f.bRegex}});p("mDataProp_"+l,s);if(a.bFilter){p("sSearch_"+l,f.sSearch);p("bRegex_"+l,f.bRegex);p("bSearchable_"+l,u.bSearchable)}if(a.bSort){p("bSortable_"+l,u.bSortable)}}if(a.bFilter){p("sSearch",n.sSearch);p("bRegex",n.bRegex)}if(a.bSort){V.each(c,function(e,t){v.order.push({column:t.col,dir:t.dir});p("iSortCol_"+e,t.col);p("sSortDir_"+e,t.dir)});p("iSortingCols",c.length)}var g=P.ext.legacy.ajax;if(g===null){return e.sAjaxSource?o:v}return g?o:v}function Fe(e,r){var t=function(e,t){return r[e]!==X?r[e]:r[t]};var a=Le(e,r);var n=t("sEcho","draw");var i=t("iTotalRecords","recordsTotal");var l=t("iTotalDisplayRecords","recordsFiltered");if(n){if(n*1<e.iDraw){return}e.iDraw=n*1}ve(e);e._iRecordsTotal=parseInt(i,10);e._iRecordsDisplay=parseInt(l,10);for(var o=0,s=a.length;o<s;o++){N(e,a[o])}e.aiDisplay=e.aiDisplayMaster.slice();e.bAjaxDataGet=false;y(e);if(!e._bInitComplete){Ge(e,r)}e.bAjaxDataGet=true;T(e,false)}function Le(e,t){var r=V.isPlainObject(e.ajax)&&e.ajax.dataSrc!==X?e.ajax.dataSrc:e.sAjaxDataProp;if(r==="data"){return t.aaData||t[r]}return r!==""?H(r)(t):t}function Re(r){var e=r.oClasses;var t=r.sTableId;var a=r.oLanguage;var n=r.oPreviousSearch;var i=r.aanFeatures;var l='<input type="search" class="'+e.sFilterInput+'"/>';var o=a.sSearch;o=o.match(/_INPUT_/)?o.replace("_INPUT_",l):o+l;var s=V("<div/>",{id:!i.f?t+"_filter":null,class:e.sFilter}).append(V("<label/>").append(o));var u=function(){var e=i.f;var t=!this.value?"":this.value;if(t!=n.sSearch){Pe(r,{sSearch:t,bRegex:n.bRegex,bSmart:n.bSmart,bCaseInsensitive:n.bCaseInsensitive});r._iDisplayStart=0;y(r)}};var f=r.searchDelay!==null?r.searchDelay:E(r)==="ssp"?400:0;var c=V("input",s).val(n.sSearch).attr("placeholder",a.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",f?at(u,f):u).on("keypress.DT",function(e){if(e.keyCode==13){return false}}).attr("aria-controls",t);V(r.nTable).on("search.dt.DT",function(e,t){if(r===t){try{if(c[0]!==m.activeElement){c.val(n.sSearch)}}catch(e){}}});return s[0]}function Pe(e,t,r){var a=e.oPreviousSearch;var n=e.aoPreSearchCols;var i=function(e){a.sSearch=e.sSearch;a.bRegex=e.bRegex;a.bSmart=e.bSmart;a.bCaseInsensitive=e.bCaseInsensitive};var l=function(e){return e.bEscapeRegex!==X?!e.bEscapeRegex:e.bRegex};le(e);if(E(e)!="ssp"){He(e,t.sSearch,r,l(t),t.bSmart,t.bCaseInsensitive);i(t);for(var o=0;o<n.length;o++){Ne(e,n[o].sSearch,o,l(n[o]),n[o].bSmart,n[o].bCaseInsensitive)}je(e)}else{i(t)}e.bFiltered=true;W(e,null,"search",[e])}function je(e){var t=P.ext.search;var r=e.aiDisplay;var a,n;for(var i=0,l=t.length;i<l;i++){var o=[];for(var s=0,u=r.length;s<u;s++){n=r[s];a=e.aoData[n];if(t[i](e,a._aFilterData,n,a._aData,s)){o.push(n)}}r.length=0;V.merge(r,o)}}function Ne(e,t,r,a,n,i){if(t===""){return}var l;var o=[];var s=e.aiDisplay;var u=Oe(t,a,n,i);for(var f=0;f<s.length;f++){l=e.aoData[s[f]]._aFilterData[r];if(u.test(l)){o.push(s[f])}}e.aiDisplay=o}function He(e,t,r,a,n,i){var l=Oe(t,a,n,i);var o=e.oPreviousSearch.sSearch;var s=e.aiDisplayMaster;var u,f,c;var d=[];if(P.ext.search.length!==0){r=true}f=Ee(e);if(t.length<=0){e.aiDisplay=s.slice()}else{if(f||r||o.length>t.length||t.indexOf(o)!==0||e.bSorted){e.aiDisplay=s.slice()}u=e.aiDisplay;for(c=0;c<u.length;c++){if(l.test(e.aoData[u[c]]._sFilterRow)){d.push(u[c])}}e.aiDisplay=d}}function Oe(e,t,r,a){e=t?e:ke(e);if(r){var n=V.map(e.match(/"[^"]+"|[^ ]+/g)||[""],function(e){if(e.charAt(0)==='"'){var t=e.match(/^"(.*)"$/);e=t?t[1]:e}return e.replace('"',"")});e="^(?=.*?"+n.join(")(?=.*?")+").*$"}return new RegExp(e,a?"i":"")}var ke=P.util.escapeRegex;var Me=V("<div>")[0];var We=Me.textContent!==X;function Ee(e){var t=e.aoColumns;var r;var a,n,i,l,o,s,u;var f=P.ext.type.search;var c=false;for(a=0,i=e.aoData.length;a<i;a++){u=e.aoData[a];if(!u._aFilterData){o=[];for(n=0,l=t.length;n<l;n++){r=t[n];if(r.bSearchable){s=b(e,a,n,"filter");if(f[r.sType]){s=f[r.sType](s)}if(s===null){s=""}if(typeof s!=="string"&&s.toString){s=s.toString()}}else{s=""}if(s.indexOf&&s.indexOf("&")!==-1){Me.innerHTML=s;s=We?Me.textContent:Me.innerText}if(s.replace){s=s.replace(/[\r\n]/g,"")}o.push(s)}u._aFilterData=o;u._sFilterRow=o.join("  ");c=true}}return c}function Be(e){return{search:e.sSearch,smart:e.bSmart,regex:e.bRegex,caseInsensitive:e.bCaseInsensitive}}function Ue(e){return{sSearch:e.search,bSmart:e.smart,bRegex:e.regex,bCaseInsensitive:e.caseInsensitive}}function Ve(e){var t=e.sTableId,r=e.aanFeatures.i,a=V("<div/>",{class:e.oClasses.sInfo,id:!r?t+"_info":null});if(!r){e.aoDrawCallback.push({fn:Xe,sName:"information"});a.attr("role","status").attr("aria-live","polite");V(e.nTable).attr("aria-describedby",t+"_info")}return a[0]}function Xe(e){var t=e.aanFeatures.i;if(t.length===0){return}var r=e.oLanguage,a=e._iDisplayStart+1,n=e.fnDisplayEnd(),i=e.fnRecordsTotal(),l=e.fnRecordsDisplay(),o=l?r.sInfo:r.sInfoEmpty;if(l!==i){o+=" "+r.sInfoFiltered}o+=r.sInfoPostFix;o=Je(e,o);var s=r.fnInfoCallback;if(s!==null){o=s.call(e.oInstance,e,a,n,i,l,o)}V(t).html(o)}function Je(e,t){var r=e.fnFormatNumber,a=e._iDisplayStart+1,n=e._iDisplayLength,i=e.fnRecordsDisplay(),l=n===-1;return t.replace(/_START_/g,r.call(e,a)).replace(/_END_/g,r.call(e,e.fnDisplayEnd())).replace(/_MAX_/g,r.call(e,e.fnRecordsTotal())).replace(/_TOTAL_/g,r.call(e,i)).replace(/_PAGE_/g,r.call(e,l?1:Math.ceil(a/n))).replace(/_PAGES_/g,r.call(e,l?1:Math.ceil(i/n)))}function qe(r){var a,e,n=r.iInitDisplayStart;var t=r.aoColumns,i;var l=r.oFeatures;var o=r.bDeferLoading;if(!r.bInitialised){setTimeout(function(){qe(r)},200);return}we(r);ye(r);_e(r,r.aoHeader);_e(r,r.aoFooter);T(r,true);if(l.bAutoWidth){rt(r)}for(a=0,e=t.length;a<e;a++){i=t[a];if(i.sWidth){i.nTh.style.width=z(i.sWidth)}}W(r,null,"preInit",[r]);c(r);var s=E(r);if(s!="ssp"||o){if(s=="ajax"){xe(r,[],function(e){var t=Le(r,e);for(a=0;a<t.length;a++){N(r,t[a])}r.iInitDisplayStart=n;c(r);T(r,false);Ge(r,e)},r)}else{T(r,false);Ge(r)}}}function Ge(e,t){e._bInitComplete=true;if(t||e.oInit.aaData){q(e)}W(e,null,"plugin-init",[e,t]);W(e,"aoInitComplete","init",[e,t])}function $e(e,t){var r=parseInt(t,10);e._iDisplayLength=r;St(e);W(e,null,"length",[e,r])}function ze(a){var e=a.oClasses,t=a.sTableId,r=a.aLengthMenu,n=V.isArray(r[0]),i=n?r[0]:r,l=n?r[1]:r;var o=V("<select/>",{name:t+"_length","aria-controls":t,class:e.sLengthSelect});for(var s=0,u=i.length;s<u;s++){o[0][s]=new Option(typeof l[s]==="number"?a.fnFormatNumber(l[s]):l[s],i[s])}var f=V("<div><label/></div>").addClass(e.sLength);if(!a.aanFeatures.l){f[0].id=t+"_length"}f.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",o[0].outerHTML));V("select",f).val(a._iDisplayLength).on("change.DT",function(e){$e(a,V(this).val());y(a)});V(a.nTable).on("length.dt.DT",function(e,t,r){if(a===t){V("select",f).val(r)}});return f[0]}function Ye(e){var t=e.sPaginationType,f=P.ext.pager[t],c=typeof f==="function",d=function(e){y(e)},r=V("<div/>").addClass(e.oClasses.sPaging+t)[0],h=e.aanFeatures;if(!c){f.fnInit(e,r,d)}if(!h.p){r.id=e.sTableId+"_paginate";e.aoDrawCallback.push({fn:function(e){if(c){var t=e._iDisplayStart,r=e._iDisplayLength,a=e.fnRecordsDisplay(),n=r===-1,i=n?0:Math.ceil(t/r),l=n?1:Math.ceil(a/r),o=f(i,l),s,u;for(s=0,u=h.p.length;s<u;s++){mt(e,"pageButton")(e,h.p[s],s,o,i,l)}}else{f.fnUpdate(e,d)}},sName:"pagination"})}return r}function Ze(e,t,r){var a=e._iDisplayStart,n=e._iDisplayLength,i=e.fnRecordsDisplay();if(i===0||n===-1){a=0}else if(typeof t==="number"){a=t*n;if(a>i){a=0}}else if(t=="first"){a=0}else if(t=="previous"){a=n>=0?a-n:0;if(a<0){a=0}}else if(t=="next"){if(a+n<i){a+=n}}else if(t=="last"){a=Math.floor((i-1)/n)*n}else{Y(e,0,"Unknown paging action: "+t,5)}var l=e._iDisplayStart!==a;e._iDisplayStart=a;if(l){W(e,null,"page",[e]);if(r){y(e)}}return l}function Ke(e){return V("<div/>",{id:!e.aanFeatures.r?e.sTableId+"_processing":null,class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function T(e,t){if(e.oFeatures.bProcessing){V(e.aanFeatures.r).css("display",t?"block":"none")}W(e,null,"processing",[e,t])}function Qe(e){var t=V(e.nTable);t.attr("role","grid");var r=e.oScroll;if(r.sX===""&&r.sY===""){return e.nTable}var a=r.sX;var n=r.sY;var i=e.oClasses;var l=t.children("caption");var o=l.length?l[0]._captionSide:null;var s=V(t[0].cloneNode(false));var u=V(t[0].cloneNode(false));var f=t.children("tfoot");var c="<div/>";var d=function(e){return!e?null:z(e)};if(!f.length){f=null}var h=V(c,{class:i.sScrollWrapper}).append(V(c,{class:i.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:a?d(a):"100%"}).append(V(c,{class:i.sScrollHeadInner}).css({"box-sizing":"content-box",width:r.sXInner||"100%"}).append(s.removeAttr("id").css("margin-left",0).append(o==="top"?l:null).append(t.children("thead"))))).append(V(c,{class:i.sScrollBody}).css({position:"relative",overflow:"auto",width:d(a)}).append(t));if(f){h.append(V(c,{class:i.sScrollFoot}).css({overflow:"hidden",border:0,width:a?d(a):"100%"}).append(V(c,{class:i.sScrollFootInner}).append(u.removeAttr("id").css("margin-left",0).append(o==="bottom"?l:null).append(t.children("tfoot")))))}var p=h.children();var v=p[0];var g=p[1];var b=f?p[2]:null;if(a){V(g).on("scroll.DT",function(e){var t=this.scrollLeft;v.scrollLeft=t;if(f){b.scrollLeft=t}})}V(g).css(n&&r.bCollapse?"max-height":"height",n);e.nScrollHead=v;e.nScrollBody=g;e.nScrollFoot=b;e.aoDrawCallback.push({fn:et,sName:"scrolling"});return h[0]}function et(r){var e=r.oScroll,t=e.sX,a=e.sXInner,O=e.sY,n=e.iBarWidth,i=V(r.nScrollHead),k=i[0].style,l=i.children("div"),o=l[0].style,M=l.children("table"),s=r.nScrollBody,u=V(s),f=s.style,W=V(r.nScrollFoot),c=W.children("div"),E=c.children("table"),d=V(r.nTHead),h=V(r.nTable),p=h[0],v=p.style,g=r.nTFoot?V(r.nTFoot):null,b=r.oBrowser,S=b.bScrollOversize,B=J(r.aoColumns,"nTh"),m,D,y,_,w,C,T=[],x=[],I=[],A=[],F,L,R,P=function(e){var t=e.style;t.paddingTop="0";t.paddingBottom="0";t.borderTopWidth="0";t.borderBottomWidth="0";t.height=0};var j=s.scrollHeight>s.clientHeight;if(r.scrollBarVis!==j&&r.scrollBarVis!==X){r.scrollBarVis=j;q(r);return}else{r.scrollBarVis=j}h.children("thead, tfoot").remove();if(g){C=g.clone().prependTo(h);D=g.find("tr");_=C.find("tr")}w=d.clone().prependTo(h);m=d.find("tr");y=w.find("tr");w.find("th, td").removeAttr("tabindex");if(!t){f.width="100%";i[0].style.width="100%"}V.each(Te(r,w),function(e,t){F=G(r,e);t.style.width=r.aoColumns[F].sWidth});if(g){$(function(e){e.style.width=""},_)}R=h.outerWidth();if(t===""){v.width="100%";if(S&&(h.find("tbody").height()>s.offsetHeight||u.css("overflow-y")=="scroll")){v.width=z(h.outerWidth()-n)}R=h.outerWidth()}else if(a!==""){v.width=z(a);R=h.outerWidth()}$(P,y);$(function(e){I.push(e.innerHTML);T.push(z(V(e).css("width")))},y);$(function(e,t){if(V.inArray(e,B)!==-1){e.style.width=T[t]}},m);V(y).height(0);if(g){$(P,_);$(function(e){A.push(e.innerHTML);x.push(z(V(e).css("width")))},_);$(function(e,t){e.style.width=x[t]},D);V(_).height(0)}$(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+I[t]+"</div>";e.childNodes[0].style.height="0";e.childNodes[0].style.overflow="hidden";e.style.width=T[t]},y);if(g){$(function(e,t){e.innerHTML='<div class="dataTables_sizing">'+A[t]+"</div>";e.childNodes[0].style.height="0";e.childNodes[0].style.overflow="hidden";e.style.width=x[t]},_)}if(h.outerWidth()<R){L=s.scrollHeight>s.offsetHeight||u.css("overflow-y")=="scroll"?R+n:R;if(S&&(s.scrollHeight>s.offsetHeight||u.css("overflow-y")=="scroll")){v.width=z(L-n)}if(t===""||a!==""){Y(r,1,"Possible column misalignment",6)}}else{L="100%"}f.width=z(L);k.width=z(L);if(g){r.nScrollFoot.style.width=z(L)}if(!O){if(S){f.height=z(p.offsetHeight+n)}}var N=h.outerWidth();M[0].style.width=z(N);o.width=z(N);var H=h.height()>s.clientHeight||u.css("overflow-y")=="scroll";var U="padding"+(b.bScrollbarLeft?"Left":"Right");o[U]=H?n+"px":"0px";if(g){E[0].style.width=z(N);c[0].style.width=z(N);c[0].style[U]=H?n+"px":"0px"}h.children("colgroup").insertBefore(h.children("thead"));u.scroll();if((r.bSorted||r.bFiltered)&&!r._drawHold){s.scrollTop=0}}function $(e,t,r){var a=0,n=0,i=t.length;var l,o;while(n<i){l=t[n].firstChild;o=r?r[n].firstChild:null;while(l){if(l.nodeType===1){if(r){e(l,o,a)}else{e(l,a)}a++}l=l.nextSibling;o=r?o.nextSibling:null}n++}}var tt=/<.*?>/g;function rt(e){var t=e.nTable,r=e.aoColumns,a=e.oScroll,n=a.sY,i=a.sX,l=a.sXInner,o=r.length,s=ie(e,"bVisible"),u=V("th",e.nTHead),f=t.getAttribute("width"),c=t.parentNode,d=false,h,p,v,g,b,S=e.oBrowser,m=S.bScrollOversize;var D=t.style.width;if(D&&D.indexOf("%")!==-1){f=D}for(h=0;h<s.length;h++){p=r[s[h]];if(p.sWidth!==null){p.sWidth=nt(p.sWidthOrig,c);d=true}}if(m||!d&&!i&&!n&&o==L(e)&&o==u.length){for(h=0;h<o;h++){var y=G(e,h);if(y!==null){r[y].sWidth=z(u.eq(h).width())}}}else{var _=V(t).clone().css("visibility","hidden").removeAttr("id");_.find("tbody tr").remove();var w=V("<tr/>").appendTo(_.find("tbody"));_.find("thead, tfoot").remove();_.append(V(e.nTHead).clone()).append(V(e.nTFoot).clone());_.find("tfoot th, tfoot td").css("width","");u=Te(e,_.find("thead")[0]);for(h=0;h<s.length;h++){p=r[s[h]];u[h].style.width=p.sWidthOrig!==null&&p.sWidthOrig!==""?z(p.sWidthOrig):"";if(p.sWidthOrig&&i){V(u[h]).append(V("<div/>").css({width:p.sWidthOrig,margin:0,padding:0,border:0,height:1}))}}if(e.aoData.length){for(h=0;h<s.length;h++){v=s[h];p=r[v];V(it(e,v)).clone(false).append(p.sContentPadding).appendTo(w)}}V("[name]",_).removeAttr("name");var C=V("<div/>").css(i||n?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(_).appendTo(c);if(i&&l){_.width(l)}else if(i){_.css("width","auto");_.removeAttr("width");if(_.width()<c.clientWidth&&f){_.width(c.clientWidth)}}else if(n){_.width(c.clientWidth)}else if(f){_.width(f)}var T=0;for(h=0;h<s.length;h++){var x=V(u[h]);var I=x.outerWidth()-x.width();var A=S.bBounding?Math.ceil(u[h].getBoundingClientRect().width):x.outerWidth();T+=A;r[s[h]].sWidth=z(A-I)}t.style.width=z(T);C.remove()}if(f){t.style.width=z(f)}if((f||i)&&!e._reszEvt){var F=function(){V(R).on("resize.DT-"+e.sInstance,at(function(){q(e)}))};if(m){setTimeout(F,1e3)}else{F()}e._reszEvt=true}}var at=P.util.throttle;function nt(e,t){if(!e){return 0}var r=V("<div/>").css("width",z(e)).appendTo(t||m.body);var a=r[0].offsetWidth;r.remove();return a}function it(e,t){var r=lt(e,t);if(r<0){return null}var a=e.aoData[r];return!a.nTr?V("<td/>").html(b(e,r,t,"display"))[0]:a.anCells[t]}function lt(e,t){var r,a=-1,n=-1;for(var i=0,l=e.aoData.length;i<l;i++){r=b(e,i,t,"display")+"";r=r.replace(tt,"");r=r.replace(/&nbsp;/g," ");if(r.length>a){a=r.length;n=i}}return n}function z(e){if(e===null){return"0px"}if(typeof e=="number"){return e<0?"0px":e+"px"}return e.match(/\d$/)?e+"px":e}function O(e){var t,r,a,n,i=[],l=[],o=e.aoColumns,s,u,f,c,d=e.aaSortingFixed,h=V.isPlainObject(d),p=[],v=function(e){if(e.length&&!V.isArray(e[0])){p.push(e)}else{V.merge(p,e)}};if(V.isArray(d)){v(d)}if(h&&d.pre){v(d.pre)}v(e.aaSorting);if(h&&d.post){v(d.post)}for(t=0;t<p.length;t++){c=p[t][0];s=o[c].aDataSort;for(a=0,n=s.length;a<n;a++){u=s[a];f=o[u].sType||"string";if(p[t]._idx===X){p[t]._idx=V.inArray(p[t][1],o[u].asSorting)}i.push({src:c,col:u,dir:p[t][1],index:p[t]._idx,type:f,formatter:P.ext.type.order[f+"-pre"]})}}return i}function ot(e){var t,r,a,n,i,l,o,s,u,d=[],h=P.ext.type.order,p=e.aoData,f=e.aoColumns,c,v,g,b,S,m=0,D,y=e.aiDisplayMaster,_;le(e);_=O(e);for(t=0,r=_.length;t<r;t++){D=_[t];if(D.formatter){m++}dt(e,D.col)}if(E(e)!="ssp"&&_.length!==0){for(t=0,a=y.length;t<a;t++){d[y[t]]=t}if(m===_.length){y.sort(function(e,t){var r,a,n,i,l,o=_.length,s=p[e]._aSortData,u=p[t]._aSortData;for(n=0;n<o;n++){l=_[n];r=s[l.col];a=u[l.col];i=r<a?-1:r>a?1:0;if(i!==0){return l.dir==="asc"?i:-i}}r=d[e];a=d[t];return r<a?-1:r>a?1:0})}else{y.sort(function(e,t){var r,a,n,i,l,o,s,u=_.length,f=p[e]._aSortData,c=p[t]._aSortData;for(n=0;n<u;n++){o=_[n];r=f[o.col];a=c[o.col];s=h[o.type+"-"+o.dir]||h["string-"+o.dir];l=s(r,a);if(l!==0){return l}}r=d[e];a=d[t];return r<a?-1:r>a?1:0})}}e.bSorted=true}function st(e){var t;var r;var a=e.aoColumns;var n=O(e);var i=e.oLanguage.oAria;for(var l=0,o=a.length;l<o;l++){var s=a[l];var u=s.asSorting;var f=s.sTitle.replace(/<.*?>/g,"");var c=s.nTh;c.removeAttribute("aria-sort");if(s.bSortable){if(n.length>0&&n[0].col==l){c.setAttribute("aria-sort",n[0].dir=="asc"?"ascending":"descending");r=u[n[0].index+1]||u[0]}else{r=u[0]}t=f+(r==="asc"?i.sSortAscending:i.sSortDescending)}else{t=f}c.setAttribute("aria-label",t)}}function ut(e,t,r,a){var n=e.aoColumns[t];var i=e.aaSorting;var l=n.asSorting;var o;var s=function(e,t){var r=e._idx;if(r===X){r=V.inArray(e[1],l)}return r+1<l.length?r+1:t?null:0};if(typeof i[0]==="number"){i=e.aaSorting=[i]}if(r&&e.oFeatures.bSortMulti){var u=V.inArray(t,J(i,"0"));if(u!==-1){o=s(i[u],true);if(o===null&&i.length===1){o=0}if(o===null){i.splice(u,1)}else{i[u][1]=l[o];i[u]._idx=o}}else{i.push([t,l[0],0]);i[i.length-1]._idx=0}}else if(i.length&&i[0][0]==t){o=s(i[0]);i.length=1;i[0][1]=l[o];i[0]._idx=o}else{i.length=0;i.push([t,l[0]]);i[0]._idx=0}c(e);if(typeof a=="function"){a(e)}}function ft(t,e,r,a){var n=t.aoColumns[r];bt(e,{},function(e){if(n.bSortable===false){return}if(t.oFeatures.bProcessing){T(t,true);setTimeout(function(){ut(t,r,e.shiftKey,a);if(E(t)!=="ssp"){T(t,false)}},0)}else{ut(t,r,e.shiftKey,a)}})}function ct(e){var t=e.aLastSort;var r=e.oClasses.sSortColumn;var a=O(e);var n=e.oFeatures;var i,l,o;if(n.bSort&&n.bSortClasses){for(i=0,l=t.length;i<l;i++){o=t[i].src;V(J(e.aoData,"anCells",o)).removeClass(r+(i<2?i+1:3))}for(i=0,l=a.length;i<l;i++){o=a[i].src;V(J(e.aoData,"anCells",o)).addClass(r+(i<2?i+1:3))}}e.aLastSort=a}function dt(e,t){var r=e.aoColumns[t];var a=P.ext.order[r.sSortDataType];var n;if(a){n=a.call(e.oInstance,e,t,f(e,t))}var i,l;var o=P.ext.type.order[r.sType+"-pre"];for(var s=0,u=e.aoData.length;s<u;s++){i=e.aoData[s];if(!i._aSortData){i._aSortData=[]}if(!i._aSortData[t]||a){l=a?n[s]:b(e,s,t,"sort");i._aSortData[t]=o?o(l):l}}}function ht(r){if(!r.oFeatures.bStateSave||r.bDestroying){return}var e={time:+new Date,start:r._iDisplayStart,length:r._iDisplayLength,order:V.extend(true,[],r.aaSorting),search:Be(r.oPreviousSearch),columns:V.map(r.aoColumns,function(e,t){return{visible:e.bVisible,search:Be(r.aoPreSearchCols[t])}})};W(r,"aoStateSaveParams","stateSaveParams",[r,e]);r.oSavedState=e;r.fnStateSaveCallback.call(r.oInstance,r,e)}function pt(n,e,i){var l,o;var s=n.aoColumns;var t=function(e){if(!e||!e.time){i();return}var t=W(n,"aoStateLoadParams","stateLoadParams",[n,e]);if(V.inArray(false,t)!==-1){i();return}var r=n.iStateDuration;if(r>0&&e.time<+new Date-r*1e3){i();return}if(e.columns&&s.length!==e.columns.length){i();return}n.oLoadedState=V.extend(true,{},e);if(e.start!==X){n._iDisplayStart=e.start;n.iInitDisplayStart=e.start}if(e.length!==X){n._iDisplayLength=e.length}if(e.order!==X){n.aaSorting=[];V.each(e.order,function(e,t){n.aaSorting.push(t[0]>=s.length?[0,t[1]]:t)})}if(e.search!==X){V.extend(n.oPreviousSearch,Ue(e.search))}if(e.columns){for(l=0,o=e.columns.length;l<o;l++){var a=e.columns[l];if(a.visible!==X){s[l].bVisible=a.visible}if(a.search!==X){V.extend(n.aoPreSearchCols[l],Ue(a.search))}}}W(n,"aoStateLoaded","stateLoaded",[n,e]);i()};if(!n.oFeatures.bStateSave){i();return}var r=n.fnStateLoadCallback.call(n.oInstance,n,t);if(r!==X){t(r)}}function vt(e){var t=P.settings;var r=V.inArray(e,J(t,"nTable"));return r!==-1?t[r]:null}function Y(e,t,r,a){r="DataTables warning: "+(e?"table id="+e.sTableId+" - ":"")+r;if(a){r+=". For more information about this error, please see "+"http://datatables.net/tn/"+a}if(!t){var n=P.ext;var i=n.sErrMode||n.errMode;if(e){W(e,null,"error",[e,a,r])}if(i=="alert"){alert(r)}else if(i=="throw"){throw new Error(r)}else if(typeof i=="function"){i(e,a,r)}}else if(R.console&&console.log){console.log(r)}}function k(r,a,e,t){if(V.isArray(e)){V.each(e,function(e,t){if(V.isArray(t)){k(r,a,t[0],t[1])}else{k(r,a,t)}});return}if(t===X){t=e}if(a[e]!==X){r[t]=a[e]}}function gt(e,t,r){var a;for(var n in t){if(t.hasOwnProperty(n)){a=t[n];if(V.isPlainObject(a)){if(!V.isPlainObject(e[n])){e[n]={}}V.extend(true,e[n],a)}else if(r&&n!=="data"&&n!=="aaData"&&V.isArray(a)){e[n]=a.slice()}else{e[n]=a}}}return e}function bt(t,e,r){V(t).on("click.DT",e,function(e){V(t).blur();r(e)}).on("keypress.DT",e,function(e){if(e.which===13){e.preventDefault();r(e)}}).on("selectstart.DT",function(){return false})}function M(e,t,r,a){if(r){e[t].push({fn:r,sName:a})}}function W(r,e,t,a){var n=[];if(e){n=V.map(r[e].slice().reverse(),function(e,t){return e.fn.apply(r.oInstance,a)})}if(t!==null){var i=V.Event(t+".dt");V(r.nTable).trigger(i,a);n.push(i.result)}return n}function St(e){var t=e._iDisplayStart,r=e.fnDisplayEnd(),a=e._iDisplayLength;if(t>=r){t=r-a}t-=t%a;if(a===-1||t<0){t=0}e._iDisplayStart=t}function mt(e,t){var r=e.renderer;var a=P.ext.renderer[t];if(V.isPlainObject(r)&&r[t]){return a[r[t]]||a._}else if(typeof r==="string"){return a[r]||a._}return a._}function E(e){if(e.oFeatures.bServerSide){return"ssp"}else if(e.ajax||e.sAjaxSource){return"ajax"}return"dom"}var Dt=[];var l=Array.prototype;var yt=function(e){var t,r;var a=P.settings;var n=V.map(a,function(e,t){return e.nTable});if(!e){return[]}else if(e.nTable&&e.oApi){return[e]}else if(e.nodeName&&e.nodeName.toLowerCase()==="table"){t=V.inArray(e,n);return t!==-1?[a[t]]:null}else if(e&&typeof e.settings==="function"){return e.settings().toArray()}else if(typeof e==="string"){r=V(e)}else if(e instanceof V){r=e}if(r){return r.map(function(e){t=V.inArray(this,n);return t!==-1?a[t]:null}).toArray()}};S=function(e,t){if(!(this instanceof S)){return new S(e,t)}var r=[];var a=function(e){var t=yt(e);if(t){r=r.concat(t)}};if(V.isArray(e)){for(var n=0,i=e.length;n<i;n++){a(e[n])}}else{a(e)}this.context=Z(r);if(t){V.merge(this,t)}this.selector={rows:null,cols:null,opts:null};S.extend(this,this,Dt)};P.Api=S;V.extend(S.prototype,{any:function(){return this.count()!==0},concat:l.concat,context:[],count:function(){return this.flatten().length},each:function(e){for(var t=0,r=this.length;t<r;t++){e.call(this,this[t],t,this)}return this},eq:function(e){var t=this.context;return t.length>e?new S(t[e],this[e]):null},filter:function(e){var t=[];if(l.filter){t=l.filter.call(this,e,this)}else{for(var r=0,a=this.length;r<a;r++){if(e.call(this,this[r],r,this)){t.push(this[r])}}}return new S(this.context,t)},flatten:function(){var e=[];return new S(this.context,e.concat.apply(e,this.toArray()))},join:l.join,indexOf:l.indexOf||function(e,t){for(var r=t||0,a=this.length;r<a;r++){if(this[r]===e){return r}}return-1},iterator:function(e,t,r,a){var n=[],i,l,o,s,u,f=this.context,c,d,h,p=this.selector;if(typeof e==="string"){a=r;r=t;t=e;e=false}for(l=0,o=f.length;l<o;l++){var v=new S(f[l]);if(t==="table"){i=r.call(v,f[l],l);if(i!==X){n.push(i)}}else if(t==="columns"||t==="rows"){i=r.call(v,f[l],this[l],l);if(i!==X){n.push(i)}}else if(t==="column"||t==="column-rows"||t==="row"||t==="cell"){d=this[l];if(t==="column-rows"){c=It(f[l],p.opts)}for(s=0,u=d.length;s<u;s++){h=d[s];if(t==="cell"){i=r.call(v,f[l],h.row,h.column,l,s)}else{i=r.call(v,f[l],h,l,s,c)}if(i!==X){n.push(i)}}}}if(n.length||a){var g=new S(f,e?n.concat.apply([],n):n);var b=g.selector;b.rows=p.rows;b.cols=p.cols;b.opts=p.opts;return g}return this},lastIndexOf:l.lastIndexOf||function(e,t){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(e){var t=[];if(l.map){t=l.map.call(this,e,this)}else{for(var r=0,a=this.length;r<a;r++){t.push(e.call(this,this[r],r))}}return new S(this.context,t)},pluck:function(t){return this.map(function(e){return e[t]})},pop:l.pop,push:l.push,reduce:l.reduce||function(e,t){return re(this,e,t,0,this.length,1)},reduceRight:l.reduceRight||function(e,t){return re(this,e,t,this.length-1,-1,-1)},reverse:l.reverse,selector:null,shift:l.shift,slice:function(){return new S(this.context,this)},sort:l.sort,splice:l.splice,toArray:function(){return l.slice.call(this)},to$:function(){return V(this)},toJQuery:function(){return V(this)},unique:function(){return new S(this.context,Z(this))},unshift:l.unshift});S.extend=function(e,t,r){if(!r.length||!t||!(t instanceof S)&&!t.__dt_wrapper){return}var a,n,i,l,o,s,u=function(t,r,a){return function(){var e=r.apply(t,arguments);S.extend(e,e,a.methodExt);return e}};for(a=0,n=r.length;a<n;a++){o=r[a];t[o.name]=typeof o.val==="function"?u(e,o.val,o):V.isPlainObject(o.val)?{}:o.val;t[o.name].__dt_wrapper=true;S.extend(e,t[o.name],o.propExt)}};S.register=t=function(e,t){if(V.isArray(e)){for(var r=0,a=e.length;r<a;r++){S.register(e[r],t)}return}var n,i,l=e.split("."),o=Dt,s,u;var f=function(e,t){for(var r=0,a=e.length;r<a;r++){if(e[r].name===t){return e[r]}}return null};for(n=0,i=l.length;n<i;n++){u=l[n].indexOf("()")!==-1;s=u?l[n].replace("()",""):l[n];var c=f(o,s);if(!c){c={name:s,val:{},methodExt:[],propExt:[]};o.push(c)}if(n===i-1){c.val=t}else{o=u?c.methodExt:c.propExt}}};S.registerPlural=e=function(e,t,r){S.register(e,r);S.register(t,function(){var e=r.apply(this,arguments);if(e===this){return this}else if(e instanceof S){return e.length?V.isArray(e[0])?new S(e.context,e[0]):e[0]:X}return e})};var _t=function(e,r){if(typeof e==="number"){return[r[e]]}var a=V.map(r,function(e,t){return e.nTable});return V(a).filter(e).map(function(e){var t=V.inArray(this,a);return r[t]}).toArray()};t("tables()",function(e){return e?new S(_t(e,this.context)):this});t("table()",function(e){var t=this.tables(e);var r=t.context;return r.length?new S(r[0]):t});e("tables().nodes()","table().node()",function(){return this.iterator("table",function(e){return e.nTable},1)});e("tables().body()","table().body()",function(){return this.iterator("table",function(e){return e.nTBody},1)});e("tables().header()","table().header()",function(){return this.iterator("table",function(e){return e.nTHead},1)});e("tables().footer()","table().footer()",function(){return this.iterator("table",function(e){return e.nTFoot},1)});e("tables().containers()","table().container()",function(){return this.iterator("table",function(e){return e.nTableWrapper},1)});t("draw()",function(t){return this.iterator("table",function(e){if(t==="page"){y(e)}else{if(typeof t==="string"){t=t==="full-hold"?false:true}c(e,t===false)}})});t("page()",function(t){if(t===X){return this.page.info().page}return this.iterator("table",function(e){Ze(e,t)})});t("page.info()",function(e){if(this.context.length===0){return X}var t=this.context[0],r=t._iDisplayStart,a=t.oFeatures.bPaginate?t._iDisplayLength:-1,n=t.fnRecordsDisplay(),i=a===-1;return{page:i?0:Math.floor(r/a),pages:i?1:Math.ceil(n/a),start:r,end:t.fnDisplayEnd(),length:a,recordsTotal:t.fnRecordsTotal(),recordsDisplay:n,serverSide:E(t)==="ssp"}});t("page.len()",function(t){if(t===X){return this.context.length!==0?this.context[0]._iDisplayLength:X}return this.iterator("table",function(e){$e(e,t)})});var wt=function(n,i,e){if(e){var t=new S(n);t.one("draw",function(){e(t.ajax.json())})}if(E(n)=="ssp"){c(n,i)}else{T(n,true);var r=n.jqXHR;if(r&&r.readyState!==4){r.abort()}xe(n,[],function(e){ve(n);var t=Le(n,e);for(var r=0,a=t.length;r<a;r++){N(n,t[r])}c(n,i);T(n,false)})}};t("ajax.json()",function(){var e=this.context;if(e.length>0){return e[0].json}});t("ajax.params()",function(){var e=this.context;if(e.length>0){return e[0].oAjaxData}});t("ajax.reload()",function(t,r){return this.iterator("table",function(e){wt(e,r===false,t)})});t("ajax.url()",function(t){var e=this.context;if(t===X){if(e.length===0){return X}e=e[0];return e.ajax?V.isPlainObject(e.ajax)?e.ajax.url:e.ajax:e.sAjaxSource}return this.iterator("table",function(e){if(V.isPlainObject(e.ajax)){e.ajax.url=t}else{e.ajax=t}})});t("ajax.url().load()",function(t,r){return this.iterator("table",function(e){wt(e,r===false,t)})});var Ct=function(e,t,r,a,n){var i=[],l,o,s,u,f,c,d=typeof t;if(!t||d==="string"||d==="function"||t.length===X){t=[t]}for(s=0,u=t.length;s<u;s++){o=t[s]&&t[s].split&&!t[s].match(/[\[\(:]/)?t[s].split(","):[t[s]];for(f=0,c=o.length;f<c;f++){l=r(typeof o[f]==="string"?V.trim(o[f]):o[f]);if(l&&l.length){i=i.concat(l)}}}var h=p.selector[e];if(h.length){for(s=0,u=h.length;s<u;s++){i=h[s](a,n,i)}}return Z(i)};var Tt=function(e){if(!e){e={}}if(e.filter&&e.search===X){e.search=e.filter}return V.extend({search:"none",order:"current",page:"all"},e)};var xt=function(e){for(var t=0,r=e.length;t<r;t++){if(e[t].length>0){e[0]=e[t];e[0].length=1;e.length=1;e.context=[e.context[t]];return e}}e.length=0;return e};var It=function(e,t){var r,a,n,i=[],l=e.aiDisplay,o=e.aiDisplayMaster;var s=t.search,u=t.order,f=t.page;if(E(e)=="ssp"){return s==="removed"?[]:h(0,o.length)}else if(f=="current"){for(r=e._iDisplayStart,a=e.fnDisplayEnd();r<a;r++){i.push(l[r])}}else if(u=="current"||u=="applied"){if(s=="none"){i=o.slice()}else if(s=="applied"){i=l.slice()}else if(s=="removed"){var c={};for(var r=0,a=l.length;r<a;r++){c[l[r]]=null}i=V.map(o,function(e){return!c.hasOwnProperty(e)?e:null})}}else if(u=="index"||u=="original"){for(r=0,a=e.aoData.length;r<a;r++){if(s=="none"){i.push(r)}else{n=V.inArray(r,l);if(n===-1&&s=="removed"||n>=0&&s=="applied"){i.push(r)}}}}return i};var At=function(f,e,c){var d;var t=function(r){var e=w(r);var t,a;var n=f.aoData;if(e!==null&&!c){return[e]}if(!d){d=It(f,c)}if(e!==null&&V.inArray(e,d)!==-1){return[e]}else if(r===null||r===X||r===""){return d}if(typeof r==="function"){return V.map(d,function(e){var t=n[e];return r(e,t._aData,t.nTr)?e:null})}if(r.nodeName){var i=r._DT_RowIndex;var l=r._DT_CellIndex;if(i!==X){return n[i]&&n[i].nTr===r?[i]:[]}else if(l){return n[l.row]&&n[l.row].nTr===r?[l.row]:[]}else{var o=V(r).closest("*[data-dt-row]");return o.length?[o.data("dt-row")]:[]}}if(typeof r==="string"&&r.charAt(0)==="#"){var s=f.aIds[r.replace(/^#/,"")];if(s!==X){return[s.idx]}}var u=F(g(f.aoData,d,"nTr"));return V(u).filter(r).map(function(){return this._DT_RowIndex}).toArray()};return Ct("row",e,t,f,c)};t("rows()",function(t,r){if(t===X){t=""}else if(V.isPlainObject(t)){r=t;t=""}r=Tt(r);var e=this.iterator("table",function(e){return At(e,t,r)},1);e.selector.rows=t;e.selector.opts=r;return e});t("rows().nodes()",function(){return this.iterator("row",function(e,t){return e.aoData[t].nTr||X},1)});t("rows().data()",function(){return this.iterator(true,"rows",function(e,t){return g(e.aoData,t,"_aData")},1)});e("rows().cache()","row().cache()",function(a){return this.iterator("row",function(e,t){var r=e.aoData[t];return a==="search"?r._aFilterData:r._aSortData},1)});e("rows().invalidate()","row().invalidate()",function(r){return this.iterator("row",function(e,t){be(e,t,r)})});e("rows().indexes()","row().index()",function(){return this.iterator("row",function(e,t){return t},1)});e("rows().ids()","row().id()",function(e){var t=[];var r=this.context;for(var a=0,n=r.length;a<n;a++){for(var i=0,l=this[a].length;i<l;i++){var o=r[a].rowIdFn(r[a].aoData[this[a][i]]._aData);t.push((e===true?"#":"")+o)}}return new S(r,t)});e("rows().remove()","row().remove()",function(){var d=this;this.iterator("row",function(e,t,r){var a=e.aoData;var n=a[t];var i,l,o,s;var u,f;a.splice(t,1);for(i=0,l=a.length;i<l;i++){u=a[i];f=u.anCells;if(u.nTr!==null){u.nTr._DT_RowIndex=i}if(f!==null){for(o=0,s=f.length;o<s;o++){f[o]._DT_CellIndex.row=i}}}ge(e.aiDisplayMaster,t);ge(e.aiDisplay,t);ge(d[r],t,false);if(e._iRecordsDisplay>0){e._iRecordsDisplay--}St(e);var c=e.rowIdFn(n._aData);if(c!==X){delete e.aIds[c]}});this.iterator("table",function(e){for(var t=0,r=e.aoData.length;t<r;t++){e.aoData[t].idx=t}});return this});t("rows.add()",function(i){var e=this.iterator("table",function(e){var t,r,a;var n=[];for(r=0,a=i.length;r<a;r++){t=i[r];if(t.nodeName&&t.nodeName.toUpperCase()==="TR"){n.push(se(e,t)[0])}else{n.push(N(e,t))}}return n},1);var t=this.rows(-1);t.pop();V.merge(t,e);return t});t("row()",function(e,t){return xt(this.rows(e,t))});t("row().data()",function(e){var t=this.context;if(e===X){return t.length&&this.length?t[0].aoData[this[0]]._aData:X}var r=t[0].aoData[this[0]];r._aData=e;if(V.isArray(e)&&r.nTr.id){D(t[0].rowId)(e,r.nTr.id)}be(t[0],this[0],"data");return this});t("row().node()",function(){var e=this.context;return e.length&&this.length?e[0].aoData[this[0]].nTr||null:null});t("row.add()",function(t){if(t instanceof V&&t.length){t=t[0]}var e=this.iterator("table",function(e){if(t.nodeName&&t.nodeName.toUpperCase()==="TR"){return se(e,t)[0]}return N(e,t)});return this.row(e[0])});var Ft=function(i,e,t,r){var l=[];var o=function(e,t){if(V.isArray(e)||e instanceof V){for(var r=0,a=e.length;r<a;r++){o(e[r],t)}return}if(e.nodeName&&e.nodeName.toLowerCase()==="tr"){l.push(e)}else{var n=V("<tr><td/></tr>").addClass(t);V("td",n).addClass(t).html(e)[0].colSpan=L(i);l.push(n[0])}};o(t,r);if(e._details){e._details.detach()}e._details=V(l);if(e._detailsShow){e._details.insertAfter(e.nTr)}};var Lt=function(e,t){var r=e.context;if(r.length){var a=r[0].aoData[t!==X?t:e[0]];if(a&&a._details){a._details.remove();a._detailsShow=X;a._details=X}}};var Rt=function(e,t){var r=e.context;if(r.length&&e.length){var a=r[0].aoData[e[0]];if(a._details){a._detailsShow=t;if(t){a._details.insertAfter(a.nTr)}else{a._details.detach()}Pt(r[0])}}};var Pt=function(s){var n=new S(s);var e=".dt.DT_details";var t="draw"+e;var r="column-visibility"+e;var a="destroy"+e;var u=s.aoData;n.off(t+" "+r+" "+a);if(J(u,"_details").length>0){n.on(t,function(e,t){if(s!==t){return}n.rows({page:"current"}).eq(0).each(function(e){var t=u[e];if(t._detailsShow){t._details.insertAfter(t.nTr)}})});n.on(r,function(e,t,r,a){if(s!==t){return}var n,i=L(t);for(var l=0,o=u.length;l<o;l++){n=u[l];if(n._details){n._details.children("td[colspan]").attr("colspan",i)}}});n.on(a,function(e,t){if(s!==t){return}for(var r=0,a=u.length;r<a;r++){if(u[r]._details){Lt(n,r)}}})}};var jt="";var Nt=jt+"row().child";var Ht=Nt+"()";t(Ht,function(e,t){var r=this.context;if(e===X){return r.length&&this.length?r[0].aoData[this[0]]._details:X}else if(e===true){this.child.show()}else if(e===false){Lt(this)}else if(r.length&&this.length){Ft(r[0],r[0].aoData[this[0]],e,t)}return this});t([Nt+".show()",Ht+".show()"],function(e){Rt(this,true);return this});t([Nt+".hide()",Ht+".hide()"],function(){Rt(this,false);return this});t([Nt+".remove()",Ht+".remove()"],function(){Lt(this);return this});t(Nt+".isShown()",function(){var e=this.context;if(e.length&&this.length){return e[0].aoData[this[0]]._detailsShow||false}return false});var Ot=/^([^:]+):(name|visIdx|visible)$/;var kt=function(e,t,r,a,n){var i=[];for(var l=0,o=n.length;l<o;l++){i.push(b(e,n[l],t))}return i};var Mt=function(s,e,u){var f=s.aoColumns,c=J(f,"sName"),d=J(f,"nTh");var t=function(r){var e=w(r);if(r===""){return h(f.length)}if(e!==null){return[e>=0?e:f.length+e]}if(typeof r==="function"){var a=It(s,u);return V.map(f,function(e,t){return r(t,kt(s,t,0,0,a),d[t])?t:null})}var n=typeof r==="string"?r.match(Ot):"";if(n){switch(n[2]){case"visIdx":case"visible":var t=parseInt(n[1],10);if(t<0){var i=V.map(f,function(e,t){return e.bVisible?t:null});return[i[i.length+t]]}return[G(s,t)];case"name":return V.map(c,function(e,t){return e===n[1]?t:null});default:return[]}}if(r.nodeName&&r._DT_CellIndex){return[r._DT_CellIndex.column]}var l=V(d).filter(r).map(function(){return V.inArray(this,d)}).toArray();if(l.length||!r.nodeName){return l}var o=V(r).closest("*[data-dt-column]");return o.length?[o.data("dt-column")]:[]};return Ct("column",e,t,s,u)};var Wt=function(e,t,r){var a=e.aoColumns,n=a[t],i=e.aoData,l,o,s,u,f;if(r===X){return n.bVisible}if(n.bVisible===r){return}if(r){var c=V.inArray(true,J(a,"bVisible"),t+1);for(s=0,u=i.length;s<u;s++){f=i[s].nTr;o=i[s].anCells;if(f){f.insertBefore(o[t],o[c]||null)}}}else{V(J(e.aoData,"anCells",t)).detach()}n.bVisible=r;_e(e,e.aoHeader);_e(e,e.aoFooter);if(!e.aiDisplay.length){V(e.nTBody).find("td[colspan]").attr("colspan",L(e))}ht(e)};t("columns()",function(t,r){if(t===X){t=""}else if(V.isPlainObject(t)){r=t;t=""}r=Tt(r);var e=this.iterator("table",function(e){return Mt(e,t,r)},1);e.selector.cols=t;e.selector.opts=r;return e});e("columns().header()","column().header()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTh},1)});e("columns().footer()","column().footer()",function(e,t){return this.iterator("column",function(e,t){return e.aoColumns[t].nTf},1)});e("columns().data()","column().data()",function(){return this.iterator("column-rows",kt,1)});e("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(e,t){return e.aoColumns[t].mData},1)});e("columns().cache()","column().cache()",function(i){return this.iterator("column-rows",function(e,t,r,a,n){return g(e.aoData,n,i==="search"?"_aFilterData":"_aSortData",t)},1)});e("columns().nodes()","column().nodes()",function(){return this.iterator("column-rows",function(e,t,r,a,n){return g(e.aoData,n,"anCells",t)},1)});e("columns().visible()","column().visible()",function(r,a){var e=this.iterator("column",function(e,t){if(r===X){return e.aoColumns[t].bVisible}Wt(e,t,r)});if(r!==X){this.iterator("column",function(e,t){W(e,null,"column-visibility",[e,t,r,a])});if(a===X||a){this.columns.adjust()}}return e});e("columns().indexes()","column().index()",function(r){return this.iterator("column",function(e,t){return r==="visible"?f(e,t):t},1)});t("columns.adjust()",function(){return this.iterator("table",function(e){q(e)},1)});t("column.index()",function(e,t){if(this.context.length!==0){var r=this.context[0];if(e==="fromVisible"||e==="toData"){return G(r,t)}else if(e==="fromData"||e==="toVisible"){return f(r,t)}}});t("column()",function(e,t){return xt(this.columns(e,t))});var Et=function(a,e,t){var n=a.aoData;var i=It(a,t);var r=F(g(n,i,"anCells"));var l=V([].concat.apply([],r));var o;var s=a.aoColumns.length;var u,f,c,d,h,p;var v=function(e){var t=typeof e==="function";if(e===null||e===X||t){u=[];for(f=0,c=i.length;f<c;f++){o=i[f];for(d=0;d<s;d++){h={row:o,column:d};if(t){p=n[o];if(e(h,b(a,o,d),p.anCells?p.anCells[d]:null)){u.push(h)}}else{u.push(h)}}}return u}if(V.isPlainObject(e)){return e.column!==X&&e.row!==X&&V.inArray(e.row,i)!==-1?[e]:[]}var r=l.filter(e).map(function(e,t){return{row:t._DT_CellIndex.row,column:t._DT_CellIndex.column}}).toArray();if(r.length||!e.nodeName){return r}p=V(e).closest("*[data-dt-row]");return p.length?[{row:p.data("dt-row"),column:p.data("dt-column")}]:[]};return Ct("cell",e,v,a,t)};t("cells()",function(t,e,r){if(V.isPlainObject(t)){if(t.row===X){r=t;t=null}else{r=e;e=null}}if(V.isPlainObject(e)){r=e;e=null}if(e===null||e===X){return this.iterator("table",function(e){return Et(e,t,Tt(r))})}var a=this.columns(e);var n=this.rows(t);var i,l,o,s,u;this.iterator("table",function(e,t){i=[];for(l=0,o=n[t].length;l<o;l++){for(s=0,u=a[t].length;s<u;s++){i.push({row:n[t][l],column:a[t][s]})}}},1);var f=this.cells(i,r);V.extend(f.selector,{cols:e,rows:t,opts:r});return f});e("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(e,t,r){var a=e.aoData[t];return a&&a.anCells?a.anCells[r]:X},1)});t("cells().data()",function(){return this.iterator("cell",function(e,t,r){return b(e,t,r)},1)});e("cells().cache()","cell().cache()",function(a){a=a==="search"?"_aFilterData":"_aSortData";return this.iterator("cell",function(e,t,r){return e.aoData[t][a][r]},1)});e("cells().render()","cell().render()",function(a){return this.iterator("cell",function(e,t,r){return b(e,t,r,a)},1)});e("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(e,t,r){return{row:t,column:r,columnVisible:f(e,r)}},1)});e("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(e,t,r){be(e,t,a,r)})});t("cell()",function(e,t,r){return xt(this.cells(e,t,r))});t("cell().data()",function(e){var t=this.context;var r=this[0];if(e===X){return t.length&&r.length?b(t[0],r[0].row,r[0].column):X}ce(t[0],r[0].row,r[0].column,e);be(t[0],r[0].row,"data",r[0].column);return this});t("order()",function(t,e){var r=this.context;if(t===X){return r.length!==0?r[0].aaSorting:X}if(typeof t==="number"){t=[[t,e]]}else if(t.length&&!V.isArray(t[0])){t=Array.prototype.slice.call(arguments)}return this.iterator("table",function(e){e.aaSorting=t.slice()})});t("order.listener()",function(t,r,a){return this.iterator("table",function(e){ft(e,t,r,a)})});t("order.fixed()",function(t){if(!t){var e=this.context;var r=e.length?e[0].aaSortingFixed:X;return V.isArray(r)?{pre:r}:r}return this.iterator("table",function(e){e.aaSortingFixed=V.extend(true,{},t)})});t(["columns().order()","column().order()"],function(a){var n=this;return this.iterator("table",function(e,t){var r=[];V.each(n[t],function(e,t){r.push([t,a])});e.aaSorting=r})});t("search()",function(t,r,a,n){var e=this.context;if(t===X){return e.length!==0?e[0].oPreviousSearch.sSearch:X}return this.iterator("table",function(e){if(!e.oFeatures.bFilter){return}Pe(e,V.extend({},e.oPreviousSearch,{sSearch:t+"",bRegex:r===null?false:r,bSmart:a===null?true:a,bCaseInsensitive:n===null?true:n}),1)})});e("columns().search()","column().search()",function(a,n,i,l){return this.iterator("column",function(e,t){var r=e.aoPreSearchCols;if(a===X){return r[t].sSearch}if(!e.oFeatures.bFilter){return}V.extend(r[t],{sSearch:a+"",bRegex:n===null?false:n,bSmart:i===null?true:i,bCaseInsensitive:l===null?true:l});Pe(e,e.oPreviousSearch,1)})});t("state()",function(){return this.context.length?this.context[0].oSavedState:null});t("state.clear()",function(){return this.iterator("table",function(e){e.fnStateSaveCallback.call(e.oInstance,e,{})})});t("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});t("state.save()",function(){return this.iterator("table",function(e){ht(e)})});P.versionCheck=P.fnVersionCheck=function(e){var t=P.version.split(".");var r=e.split(".");var a,n;for(var i=0,l=r.length;i<l;i++){a=parseInt(t[i],10)||0;n=parseInt(r[i],10)||0;if(a===n){continue}return a>n}return true};P.isDataTable=P.fnIsDataTable=function(e){var n=V(e).get(0);var i=false;if(e instanceof P.Api){return true}V.each(P.settings,function(e,t){var r=t.nScrollHead?V("table",t.nScrollHead)[0]:null;var a=t.nScrollFoot?V("table",t.nScrollFoot)[0]:null;if(t.nTable===n||r===n||a===n){i=true}});return i};P.tables=P.fnTables=function(t){var e=false;if(V.isPlainObject(t)){e=t.api;t=t.visible}var r=V.map(P.settings,function(e){if(!t||t&&V(e.nTable).is(":visible")){return e.nTable}});return e?new S(r):r};P.camelToHungarian=j;t("$()",function(e,t){var r=this.rows(t).nodes(),a=V(r);return V([].concat(a.filter(e).toArray(),a.find(e).toArray()))});V.each(["on","one","off"],function(e,r){t(r+"()",function(){var e=Array.prototype.slice.call(arguments);e[0]=V.map(e[0].split(/\s/),function(e){return!e.match(/\.dt\b/)?e+".dt":e}).join(" ");var t=V(this.tables().nodes());t[r].apply(t,e);return this})});t("clear()",function(){return this.iterator("table",function(e){ve(e)})});t("settings()",function(){return new S(this.context,this.context)});t("init()",function(){var e=this.context;return e.length?e[0].oInit:null});t("data()",function(){return this.iterator("table",function(e){return J(e.aoData,"_aData")}).flatten()});t("destroy()",function(v){v=v||false;return this.iterator("table",function(t){var e=t.nTableWrapper.parentNode;var r=t.oClasses;var a=t.nTable;var n=t.nTBody;var i=t.nTHead;var l=t.nTFoot;var o=V(a);var s=V(n);var u=V(t.nTableWrapper);var f=V.map(t.aoData,function(e){return e.nTr});var c,d;t.bDestroying=true;W(t,"aoDestroyCallback","destroy",[t]);if(!v){new S(t).columns().visible(true)}u.off(".DT").find(":not(tbody *)").off(".DT");V(R).off(".DT-"+t.sInstance);if(a!=i.parentNode){o.children("thead").detach();o.append(i)}if(l&&a!=l.parentNode){o.children("tfoot").detach();o.append(l)}t.aaSorting=[];t.aaSortingFixed=[];ct(t);V(f).removeClass(t.asStripeClasses.join(" "));V("th, td",i).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone);s.children().detach();s.append(f);var h=v?"remove":"detach";o[h]();u[h]();if(!v&&e){e.insertBefore(a,t.nTableReinsertBefore);o.css("width",t.sDestroyWidth).removeClass(r.sTable);d=t.asDestroyStripes.length;if(d){s.children().each(function(e){V(this).addClass(t.asDestroyStripes[e%d])})}}var p=V.inArray(t,P.settings);if(p!==-1){P.settings.splice(p,1)}})});V.each(["column","row","cell"],function(e,s){t(s+"s().every()",function(i){var l=this.selector.opts;var o=this;return this.iterator(s,function(e,t,r,a,n){i.call(o[s](t,s==="cell"?r:l,s==="cell"?l:X),t,r,a,n)})})});t("i18n()",function(e,t,r){var a=this.context[0];var n=H(e)(a.oLanguage);if(n===X){n=t}if(r!==X&&V.isPlainObject(n)){n=n[r]!==X?n[r]:n._}return n.replace("%d",r)});P.version="1.10.18";P.settings=[];P.models={};P.models.oSearch={bCaseInsensitive:true,sSearch:"",bRegex:false,bSmart:true};P.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};P.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:false,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};P.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:true,bDeferRender:false,bDestroy:false,bFilter:true,bInfo:true,bLengthChange:true,bPaginate:true,bProcessing:false,bRetrieve:false,bScrollCollapse:false,bServerSide:false,bSort:true,bSortMulti:true,bSortCellsTop:false,bSortClasses:true,bStateSave:false,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(e){try{return JSON.parse((e.iStateDuration===-1?sessionStorage:localStorage).getItem("DataTables_"+e.sInstance+"_"+location.pathname))}catch(e){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(e,t){try{(e.iStateDuration===-1?sessionStorage:localStorage).setItem("DataTables_"+e.sInstance+"_"+location.pathname,JSON.stringify(t))}catch(e){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:V.extend({},P.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};o(P.defaults);P.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:true,bSortable:true,bVisible:true,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};o(P.defaults.column);P.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:false,bScrollbarLeft:false,bBounding:false,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:false,bInitialised:false,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:true,jqXHR:null,json:X,oAjaxData:X,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:false,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:false,bSorted:false,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return E(this)=="ssp"?this._iRecordsTotal*1:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return E(this)=="ssp"?this._iRecordsDisplay*1:this.aiDisplay.length},fnDisplayEnd:function(){var e=this._iDisplayLength,t=this._iDisplayStart,r=t+e,a=this.aiDisplay.length,n=this.oFeatures,i=n.bPaginate;if(n.bServerSide){return i===false||e===-1?t+a:Math.min(t+e,this._iRecordsDisplay)}else{return!i||r>a||e===-1?a:r}},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};P.ext=p={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:P.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:P.version};V.extend(p,{afnFiltering:p.search,aTypes:p.type.detect,ofnSearch:p.type.search,oSort:p.type.order,afnSortData:p.order,aoFeatures:p.feature,oApi:p.internal,oStdClasses:p.classes,oPagination:p.pager});V.extend(P.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Bt=P.ext.pager;function Ut(e,t){var r=[],a=Bt.numbers_length,n=Math.floor(a/2),i=1;if(t<=a){r=h(0,t)}else if(e<=n){r=h(0,a-2);r.push("ellipsis");r.push(t-1)}else if(e>=t-1-n){r=h(t-(a-2),t);r.splice(0,0,"ellipsis");r.splice(0,0,0)}else{r=h(e-n+2,e+n-1);r.push("ellipsis");r.push(t-1);r.splice(0,0,"ellipsis");r.splice(0,0,0)}r.DT_el="span";return r}V.extend(Bt,{simple:function(e,t){return["previous","next"]},full:function(e,t){return["first","previous","next","last"]},numbers:function(e,t){return[Ut(e,t)]},simple_numbers:function(e,t){return["previous",Ut(e,t),"next"]},full_numbers:function(e,t){return["first","previous",Ut(e,t),"next","last"]},first_last_numbers:function(e,t){return["first",Ut(e,t),"last"]},_numbers:Ut,numbers_length:7});V.extend(true,P.ext.renderer,{pageButton:{_:function(s,e,u,t,f,c){var d=s.oClasses;var h=s.oLanguage.oPaginate;var p=s.oLanguage.oAria.paginate||{};var v,g,b=0;var S=function(e,t){var r,a,n,i;var l=function(e){Ze(s,e.data.action,true)};for(r=0,a=t.length;r<a;r++){i=t[r];if(V.isArray(i)){var o=V("<"+(i.DT_el||"div")+"/>").appendTo(e);S(o,i)}else{v=null;g="";switch(i){case"ellipsis":e.append('<span class="ellipsis">&#x2026;</span>');break;case"first":v=h.sFirst;g=i+(f>0?"":" "+d.sPageButtonDisabled);break;case"previous":v=h.sPrevious;g=i+(f>0?"":" "+d.sPageButtonDisabled);break;case"next":v=h.sNext;g=i+(f<c-1?"":" "+d.sPageButtonDisabled);break;case"last":v=h.sLast;g=i+(f<c-1?"":" "+d.sPageButtonDisabled);break;default:v=i+1;g=f===i?d.sPageButtonActive:"";break}if(v!==null){n=V("<a>",{class:d.sPageButton+" "+g,"aria-controls":s.sTableId,"aria-label":p[i],"data-dt-idx":b,tabindex:s.iTabIndex,id:u===0&&typeof i==="string"?s.sTableId+"_"+i:null}).html(v).appendTo(e);bt(n,{action:i},l);b++}}}};var r;try{r=V(e).find(m.activeElement).data("dt-idx")}catch(e){}S(V(e).empty(),t);if(r!==X){V(e).find("[data-dt-idx="+r+"]").focus()}}}});V.extend(P.ext.type.detect,[function(e,t){var r=t.oLanguage.sDecimal;return x(e,r)?"num"+r:null},function(e,t){if(e&&!(e instanceof Date)&&!u.test(e)){return null}var r=Date.parse(e);return r!==null&&!isNaN(r)||n(e)?"date":null},function(e,t){var r=t.oLanguage.sDecimal;return x(e,r,true)?"num-fmt"+r:null},function(e,t){var r=t.oLanguage.sDecimal;return A(e,r)?"html-num"+r:null},function(e,t){var r=t.oLanguage.sDecimal;return A(e,r,true)?"html-num-fmt"+r:null},function(e,t){return n(e)||typeof e==="string"&&e.indexOf("<")!==-1?"html":null}]);V.extend(P.ext.type.search,{html:function(e){return n(e)?e:typeof e==="string"?e.replace(a," ").replace(s,""):""},string:function(e){return n(e)?e:typeof e==="string"?e.replace(a," "):e}});var Vt=function(e,t,r,a){if(e!==0&&(!e||e==="-")){return-Infinity}if(t){e=C(e,t)}if(e.replace){if(r){e=e.replace(r,"")}if(a){e=e.replace(a,"")}}return e*1};function Xt(r){V.each({num:function(e){return Vt(e,r)},"num-fmt":function(e){return Vt(e,r,_)},"html-num":function(e){return Vt(e,r,s)},"html-num-fmt":function(e){return Vt(e,r,s,_)}},function(e,t){p.type.order[e+r+"-pre"]=t;if(e.match(/^html\-/)){p.type.search[e+r]=p.type.search.html}})}V.extend(p.type.order,{"date-pre":function(e){var t=Date.parse(e);return isNaN(t)?-Infinity:t},"html-pre":function(e){return n(e)?"":e.replace?e.replace(/<.*?>/g,"").toLowerCase():e+""},"string-pre":function(e){return n(e)?"":typeof e==="string"?e.toLowerCase():!e.toString?"":e.toString()},"string-asc":function(e,t){return e<t?-1:e>t?1:0},"string-desc":function(e,t){return e<t?1:e>t?-1:0}});Xt("");V.extend(true,P.ext.renderer,{header:{_:function(i,l,o,s){V(i.nTable).on("order.dt.DT",function(e,t,r,a){if(i!==t){return}var n=o.idx;l.removeClass(o.sSortingClass+" "+s.sSortAsc+" "+s.sSortDesc).addClass(a[n]=="asc"?s.sSortAsc:a[n]=="desc"?s.sSortDesc:o.sSortingClass)})},jqueryui:function(i,l,o,s){V("<div/>").addClass(s.sSortJUIWrapper).append(l.contents()).append(V("<span/>").addClass(s.sSortIcon+" "+o.sSortingClassJUI)).appendTo(l);V(i.nTable).on("order.dt.DT",function(e,t,r,a){if(i!==t){return}var n=o.idx;l.removeClass(s.sSortAsc+" "+s.sSortDesc).addClass(a[n]=="asc"?s.sSortAsc:a[n]=="desc"?s.sSortDesc:o.sSortingClass);l.find("span."+s.sSortIcon).removeClass(s.sSortJUIAsc+" "+s.sSortJUIDesc+" "+s.sSortJUI+" "+s.sSortJUIAscAllowed+" "+s.sSortJUIDescAllowed).addClass(a[n]=="asc"?s.sSortJUIAsc:a[n]=="desc"?s.sSortJUIDesc:o.sSortingClassJUI)})}}});var Jt=function(e){return typeof e==="string"?e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"):e};P.render={number:function(i,l,o,s,u){return{display:function(e){if(typeof e!=="number"&&typeof e!=="string"){return e}var t=e<0?"-":"";var r=parseFloat(e);if(isNaN(r)){return Jt(e)}r=r.toFixed(o);e=Math.abs(r);var a=parseInt(e,10);var n=o?l+(e-a).toFixed(o).substring(2):"";return t+(s||"")+a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,i)+n+(u||"")}}},text:function(){return{display:Jt}}};function qt(t){return function(){var e=[vt(this[P.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return P.ext.internal[t].apply(this,e)}}V.extend(P.ext.internal,{_fnExternApiFunc:qt,_fnBuildAjax:xe,_fnAjaxUpdate:Ie,_fnAjaxParameters:Ae,_fnAjaxUpdateDraw:Fe,_fnAjaxDataSrc:Le,_fnAddColumn:ae,_fnColumnOptions:ne,_fnAdjustColumnSizing:q,_fnVisibleToColumnIndex:G,_fnColumnIndexToVisible:f,_fnVisbleColumns:L,_fnGetColumns:ie,_fnColumnTypes:le,_fnApplyColumnDefs:oe,_fnHungarianMap:o,_fnCamelToHungarian:j,_fnLanguageCompat:K,_fnBrowserDetect:te,_fnAddData:N,_fnAddTr:se,_fnNodeToDataIndex:ue,_fnNodeToColumnIndex:fe,_fnGetCellData:b,_fnSetCellData:ce,_fnSplitObjNotation:he,_fnGetObjectDataFn:H,_fnSetObjectDataFn:D,_fnGetDataMaster:pe,_fnClearTable:ve,_fnDeleteIndex:ge,_fnInvalidate:be,_fnGetRowElements:Se,_fnCreateTr:me,_fnBuildHead:ye,_fnDrawHead:_e,_fnDraw:y,_fnReDraw:c,_fnAddOptionsHtml:we,_fnDetectHeader:Ce,_fnGetUniqueThs:Te,_fnFeatureHtmlFilter:Re,_fnFilterComplete:Pe,_fnFilterCustom:je,_fnFilterColumn:Ne,_fnFilter:He,_fnFilterCreateSearch:Oe,_fnEscapeRegex:ke,_fnFilterData:Ee,_fnFeatureHtmlInfo:Ve,_fnUpdateInfo:Xe,_fnInfoMacros:Je,_fnInitialise:qe,_fnInitComplete:Ge,_fnLengthChange:$e,_fnFeatureHtmlLength:ze,_fnFeatureHtmlPaginate:Ye,_fnPageChange:Ze,_fnFeatureHtmlProcessing:Ke,_fnProcessingDisplay:T,_fnFeatureHtmlTable:Qe,_fnScrollDraw:et,_fnApplyToChildren:$,_fnCalculateColumnWidths:rt,_fnThrottle:at,_fnConvertToWidth:nt,_fnGetWidestNode:it,_fnGetMaxLenString:lt,_fnStringToCss:z,_fnSortFlatten:O,_fnSort:ot,_fnSortAria:st,_fnSortListener:ut,_fnSortAttachListener:ft,_fnSortingClasses:ct,_fnSortData:dt,_fnSaveState:ht,_fnLoadState:pt,_fnSettingsFromNode:vt,_fnLog:Y,_fnMap:k,_fnBindAction:bt,_fnCallbackReg:M,_fnCallbackFire:W,_fnLengthOverflow:St,_fnRenderer:mt,_fnDataSource:E,_fnRowAttributes:De,_fnExtend:gt,_fnCalculateEnd:function(){}});V.fn.dataTable=P;P.$=V;V.fn.dataTableSettings=P.settings;V.fn.dataTableExt=P.ext;V.fn.DataTable=function(e){return V(this).dataTable(e).api()};V.each(P,function(e,t){V.fn.DataTable[e]=t});return V.fn.dataTable});
(function(c){"use strict";var n=c("#bonuses_comparison_table"),e=n.find("tbody tr").length,t=e,o=false,r=n.attr("data-page-length"),a=n.find(".column_head.rating").index()>0?n.find(".column_head.rating").index():n.find("th").length-2,i=n.attr("data-decimal-separator"),u=n.attr("data-thousands-separator"),s=n.attr("data-no-results");if(r!==""){t=parseInt(r);if(r<e){o=true}}var l=[];if(n.attr("data-sort-dropdown")==="1"){l.push({orderable:false,targets:"_all"})}var d;if(n.attr("data-sort-dropdown")==="0"){c(".dataTable th:visible").each(function(e,t){var n=c(t).attr("data-sort_direction");if(n){if("asc"===n){d=["asc","desc"]}else{d=["desc","asc"]}l.push({orderSequence:d,targets:[e]})}else{l.push({orderable:false,targets:[e]})}})}else{c("#bonuses_comparison_table_sort_grid_container").on("click","#sorting-dropdown-content span",E);c("#bonuses_comparison_table_sort_grid_container").on("change","#bonuses_comparison_table_sort_dropdown",E);document.body.addEventListener("hasHashFilterTag",function(){E()})}var f=n.DataTable({sDom:"lrtip",aoColumnDefs:l,pageLength:t,paging:o,sort:true,ordering:true,lengthChange:false,searching:true,language:{zeroRecords:s},order:[[a,"desc"]]});var b=n.find("tbody tr");b.click(function(e){sendClickEvents("click_bonus");if(e.target.nodeName!="A"){var t=c(this).find("a");if(t.attr("target")=="_blank"){window.open(t.attr("href"))}else{window.location.href=t.attr("href")}e.preventDefault()}}).hover(function(){c(this).toggleClass("hover")});var p=c("div.sportscube-api-bonus-overview");p.click(function(e){sendClickEvents("click_bonus");var t=c(this).find("a");if(t.attr("target")=="_blank"){window.open(t.attr("href"))}else{window.location.href=t.attr("href")}e.preventDefault()});var m="#max_bonus_filter";var v="#rating_filter";var _=c("span#rating_value").text();var g=c("input#max_bonus_filter").attr("min");var h="general";var w="#bonus_exclusive_filter_column";var y;var x;function k(e,t){var n="#"+t+"_column";f.columns(n).search(e).draw()}function C(n,e,o){var r=[];var t=f.column(e).data();t.each(function(e){var t=Number(e);if(n<=t){if(o){r.push("^"+e+"$")}else{r.push(e)}}});f.columns(e).search(r.join("|"),true,false,true).draw()}function S(e,t){var n=c(t).attr("id");var o;if(false===y){o=c(t).val()}else{o=c(t).find('option[selected="selected"]').val()||c(t).attr("data-default")}k(o,n)}function L(e,t){var n=c(t).attr("id");var o=n+"_column";var r;if("rating_filter"===n){if(false===y){r=this.valueAsNumber}else{r=_.valueAsNumber}C(r,"#"+o,true)}else{if(false===y){r=parseInt(c(t).val())}else{r=parseInt(g)}C(r,"#"+o,false)}}function E(){var e=c("#bonuses_comparison_table_sort_dropdown option:selected");var t=e.attr("data-column-id");var n=c(".column_head");var o=n.filter("#"+t);var r=n.index(o);var a=e.attr("data-sort-dropdown");var i=[[r,a],[15,"desc"],[13,"asc"]];f.order(i).draw();sessionStorage.setItem("tableSortingValue",e.val())}function I(){sessionStorage.setItem("bonusFilterValue",c(m).val());sessionStorage.setItem("ratingFilterValue",c(v).val());sessionStorage.setItem("countryFilterValue",c("#countries_filter").val());sessionStorage.setItem("tableSortingValue",c("#bonuses_comparison_table_sort_dropdown").val());sessionStorage.setItem("exclusivesCheckValue",c("#bonus_exclusive_filter").is(":checked")?"yes":"no")}function T(){sessionStorage.removeItem("bonusFilterValue");sessionStorage.removeItem("ratingFilterValue");sessionStorage.removeItem("countryFilterValue");sessionStorage.removeItem("tableSortingValue");sessionStorage.removeItem("exclusivesCheckValue")}function j(e){if(c(e).find("tbody > tr").length<4&&c(".bonuses_comparison_table_container").attr("data-table-view")=="mixed"){c(e).find("thead").addClass("hidden")}else{c(e).find("thead").removeClass("hidden")}}function Q(){var e;var t=[];c(".bet-price").each(function(){t.push(c(this).attr("data-currency"))});if(t.indexOf(window.formatter_settings.user.currency)>-1){e=window.formatter_settings.user.currency}else if(t.length===0||t.indexOf(window.formatter_settings.defaults.currency)>-1){e=window.formatter_settings.defaults.currency}else{var n={};t.forEach(function(e){n[e]=(n[e]||0)+1});var o=Object.keys(n).sort(function(e,t){return n[t]-n[e]});e=o[0]}return JSON.parse(c("span#max_bonus_value").attr("data-currency-"+e.toLowerCase()))}function A(e){var t=2;x=x||Q();var n=x.value.match(/\d+/)[0];var o=Math.round(parseFloat(x.rate)*e);var r=x.useLimitation&&o==x.maxBonusLimit+Number(c(m).attr("step"));var a=r?"+":"";o=o.toString();var i="";for(var s=0;s<o.length-t;s++){i+="0"}var l=Number(o.substr(t))===0||r?0:1;o=Number(o.substring(0,t))+l+i;o+=a;if(Number(o)>=1e3){o=o.replace(/\B(?=(\d{3})+(?!\d))/g,u)}c("span#max_bonus_value").html(x.value.replace(n,o))}if(c(m).length){x=x||Q();if(x.useLimitation){c(m).attr("max",x.maxBonusLimit+Number(c(m).attr("step")))}}c(document).on("gridChanged",function(){j(n)});c(m).on("input change",function(){var e=parseFloat(this.value);A(e)});c(v).on("input change",function(){var e=this.value;var t;if(i!=="."){t=e.replace(".",i)}else{t=e}c("span#rating_value").text(t)});c(window).unload(function(){if(n.attr("data-sort-dropdown")==="1"){c("#bonuses_comparison_table_sort_dropdown option").remove()}});var N=c("#bonuses_comparison_table_filters");N.on("submit",function(e){e.preventDefault();y=false;var t=c("#bonus_exclusive_filter").is(":checked")?"exclusive":h;f.columns(w).search(t).draw();c(".bonuses_comparison_table_dropdown_filters").each(S);c(".bonuses_comparison_table_range_filters").each(L);I();j(n)});N.on("reset",function(){y=true;c("span#rating_value").text(_);A(g);f.columns(w).search(h).draw();c(".bonuses_comparison_table_dropdown_filters").each(S);c(".bonuses_comparison_table_range_filters").each(L);T();j(n)});(function e(){var t=sessionStorage.getItem("bonusFilterValue")||0;c(m).val(t).trigger("change");var n=sessionStorage.getItem("ratingFilterValue")||0;c(v).val(n).trigger("change");var o=c("#countries_filter");var r=o.val()!=="all_countries"?o.val():"all_countries";var a=sessionStorage.getItem("countryFilterValue")?sessionStorage.getItem("countryFilterValue"):r;if(a&&c("#countries_filter option[value='"+a+"']").length!==0){o.val(a).trigger("change")}var i=sessionStorage.getItem("tableSortingValue")||"Best Rating";c("#bonuses_comparison_table_sort_dropdown").val(i).trigger("change");var s=sessionStorage.getItem("exclusivesCheckValue")||"no";c("#bonus_exclusive_filter").prop("checked",s==="yes");if(t||n||s==="yes"||a!=="all_countries"){N.trigger("submit")}})()})(jQuery);jQuery(function(t){function e(){var e=document.querySelector(".bonuses_comparison_table_container").getBoundingClientRect();if(e.top<window.innerHeight/2&&e.bottom>=window.innerHeight/2){t(".bonuses_comparison_table_show_filters_wrapper").css({opacity:"1","z-index":"10"})}else{t(".bonuses_comparison_table_show_filters_wrapper").css({opacity:"","z-index":""})}}var n=document.querySelector(".bonuses_comparison_table_container");if(n){e();t(document).on("scroll",function(){e()})}});var GridView=function(o){var r=null;var a=null;var i=null;var s="";var l="";function c(e){var t=e.substring(1);var n=parseInt(t.substr(0,2),16);var o=parseInt(t.substr(2,2),16);var r=parseInt(t.substr(4,2),16);var a=(n*299+o*587+r*114)/1e3;return a>=128?"black":"white"}function u(){if(i==="grid"){f()}else if(i==="list"){f(0,null)}else if(i==="mixed"){f(3,null)}}function n(e,t){o(e).removeClass("active");o(t).addClass("active")}function e(e){if(!e.controls||!o(e.controls).length)return false;if(!e.table)throw new Error("Setup Table!");r=o(e.table);a=o(e.table+"_wrapper");o(".btn-list").bind("click",function(){d("list")});o(".btn-grid").bind("click",function(){d("grid")});o(".btn-mixed").bind("click",function(){d("mixed")});o("#bonuses_comparison_table_filters").on("submit reset",u);o("#bonuses_comparison_table_sort_grid_container").on("click","#sorting-dropdown-content span",u);var t=sessionStorage.getItem("view");if(t){var n=o(".btn-"+t);if(!n.length){n=o(".bonuses_comparison_table_grid_container > div")}n.eq(0).trigger("click")}else{o(".btn-view.default").trigger("click")}}function d(e){var t;if(o(window).innerWidth()<1030){if(i!=="list"){e="list"}}switch(e){case"list":t=0;break;case"mixed":t=3;break;case"grid":t=null;break}n(".btn-view",".btn-"+e);jQuery(".bonuses_comparison_table_container").attr("data-table-view",e);f(t,e);o(document).trigger("gridChanged")}function f(t,e){var n="";if(e){i=e;sessionStorage.setItem("view",e)}if(!o(".bonus_comparison_grid").length){a.prepend('<div class="bonus_comparison_grid"></div>')}o(".bonus_comparison_grid").empty();r.DataTable().draw();o("tbody tr",r).removeClass("hidden");o("tbody tr",r).each(function(e){if(!o("tbody tr > td ",r).hasClass("dataTables_empty")){if(t!==null){if(e===t){return false}}n=o(this).find(".sports_cube_bonus_exclusive").text()?"exclusive":"";o('<div class="bonus_comparison_row row-'+e+" "+n+'"></div>').appendTo(o(".bonus_comparison_grid"));o("td.bookie,td.percentageMaxBonusExclusive,td.minAmountMinOdd,td.conditionsShort,td.rating,td.detailsLink",this).each(function(){s=o(this).attr("data-bookie-bg")?'data-bookie-bg="'+o(this).data("bookie-bg")+'"':"";o(".bonus_comparison_grid .row-"+e).append("<div "+s+' class="'+o(this).attr("class")+'">'+o(this).html()+"</div>")});if(o(".bonuses_comparison_table_container").attr("data-table-view")!="mixed"){o("tbody tr",r).eq(e).addClass("hidden")}}});o(".bonus_comparison_row").each(function(){l=o(".bookie",this).data("bookie-bg");o(".bookie,.rating",this).wrapAll('<div class="comparison_header '+c(l)+'" style="background-color:'+l+';"></div>');o(".percentageMaxBonusExclusive,.minAmountMinOdd,.conditionsShort",this).wrapAll('<div class="comparison_main"></div>');o(".detailsLink",this).wrapAll('<div class="comparison_link_section"></div>')})}return{init:e}}(jQuery);GridView.init({controls:".bonuses_comparison_table_grid_container",table:"#bonuses_comparison_table"});function sendClickEvents(e){if(typeof ga!=="undefined"){ga("send",{hitType:"event",eventCategory:"Bonus Comparison Table Track",eventAction:e,eventLabel:"Bonus Comparison Table"})}}jQuery(function(){jQuery("#bonuses_comparison_table_show_filters").on("click",function(){jQuery("body").addClass("comparison-filter");setTimeout(function(){jQuery("body").addClass("comparison-filter-effect")},10)});var e=jQuery("#pushNotificationButton");function t(){setTimeout(function(){if(jQuery("#bonuses_comparison_table .dataTables_empty").length===1){e.addClass("show");e.removeClass("hidden")}else{e.removeClass("show");e.addClass("hidden")}},50)}function o(){if(e.length){t()}}o();jQuery(".custom_table").each(function(){if(!jQuery(this).parent().hasClass("scrollable")){jQuery(this).wrap('<div class="scrollable"></div>')}});function r(e,t,n){var o=jQuery(e);var r=jQuery(t).innerHeight();jQuery("html, body").stop().animate({scrollTop:o.offset().top-r-n<=50?0:o.offset().top-r-n},900,"swing",function(){})}jQuery("#bonuses_comparison_table_hide_filters, "+"#bonuses_comparison_table_filter_reset, "+"#bonuses_comparison_lightbox_background, "+"#bonuses_comparison_table_filter_submit").on("click",function(e){var t=e.currentTarget.id==="bonuses_comparison_table_filter_reset";var n=e.currentTarget.id==="bonuses_comparison_table_filter_submit";if(t||n){o()}if(!t){jQuery("body").removeClass("comparison-filter-effect");setTimeout(function(){jQuery("body").removeClass("comparison-filter")},500)}if(jQuery("body").hasClass("v-mobile")){if(!t){r("#bonuses_comparison_table_sort_grid_container","#spHeaderWrapper",0)}}else{r("#bonuses_comparison_table_filters","#js-sticky-header",10)}});jQuery("div.bonus_comparison_grid").on("click","div.bonus-page-link a",function(e){sendClickEvents("click_bonus")}).on("click","a.sportscube-api-bonus-bonus_link",function(e){sendClickEvents("click_bonus")})});jQuery(function(){jQuery("div.bonus_comparison_grid").on("click","div.bonus_comparison_row",function(e){sendClickEvents("click_bonus");if(e.target.nodeName!="A"){var t=jQuery(this).find("a");if(t.attr("target")=="_blank"){window.open(t.attr("href"))}else{window.location.href=t.attr("href")}e.preventDefault()}});(function(){jQuery(".couponTextCopyButton").each(function(e,t){var n=jQuery(t);n.html(n.attr("data-msg-copy"))});var e=new Clipboard(".couponTextCopyButton",{text:function(e){return e.getAttribute("data-coupon-code")}});if(Clipboard.isSupported()){e.on("success",function(e){e.trigger.classList.add("active");e.trigger.innerText=e.trigger.getAttribute("data-msg-copied");window.setTimeout(function(){e.trigger.classList.remove("active");e.trigger.innerText=e.trigger.getAttribute("data-msg-copy")},15e3);e.clearSelection()})}else{jQuery(".couponTextCopyButton").remove()}})()});function rangeColor(e,t){var n=document.getElementById(e);if(!navigator.userAgent.match(/Firefox/g)&&!navigator.userAgent.match(/Trident/g)&&!navigator.userAgent.match(/MSIE/g)&&!!n){var o=document.createElement("div"),r=document.createElement("p"),a=Number(n.min),i=Number(n.max),s=i-a;function l(){var e=Number(n.clientWidth);return~~(e*(Number(n.value)-a)/s)}function c(){r.style.width=l()+"px"}o.className="range-bar-wrapper";r.className="range-bar-element";n.parentNode.replaceChild(o,n);o.appendChild(n);o.appendChild(r);n.addEventListener("input",function(){c()});var u={attributes:true,attributeFilter:["class"],childList:false,characterData:false};var d=new MutationObserver(c);d.observe(document.body,u);window.addEventListener("resize",function(){c()});document.getElementById(t).addEventListener("click",function(){r.style.width="0px"});c()}}function getCustomDropdown(i,e,o,s,t){var n=document.querySelector(e);if(!!n){var r=document.createElement("div");r.id=i+"-dropdown";r.classList.add("custom-dropdown");r.classList.add(i+"-dropdown");r.innerHTML='<span id="dropbtn-'+i+'" class="dropbtn-custom dropbtn-'+i+'"><span id="selected-'+i+'"></span></span>'+'<div id="'+i+'-dropdown-content" class="dropdown-content '+i+'-dropdown-content"></div>';n.appendChild(r);var l=n.querySelector("SELECT")}function a(){var e=document.getElementById("selected-"+i);var t=l.selectedIndex<0?0:l.selectedIndex;var n=l.options[t].text;if(s){if(l.options[l.selectedIndex]){var o=l.options[l.selectedIndex].getAttribute("data-icon")}if(o){e.innerHTML='<i style="background-image: url('+o+');"></i>'+n}else{e.innerHTML='<i class="globe"></i>'+n}}else{e.innerHTML=n}}function c(e){l.options.selectedIndex=e;a()}if(!!l){a();(function(){var e=document.getElementById(i+"-dropdown-content");var t=[];for(var n=0;n<l.length;n++){t.push(l.options[n].getAttribute("data-column-id"));var o=l.options[n].text;var r;if(l.options[n].getAttribute("value").indexOf("http")>-1){r=document.createElement("a");r.setAttribute("href",l.options[n].getAttribute("value"))}else{r=document.createElement("span")}r.onclick=function(){c(Array.from(this.parentElement.children).indexOf(this))};if(s){var a=l.options[n].getAttribute("data-icon");if(a){r.innerHTML='<i style="background-image: url('+a+');"></i>'+o}else{r.innerHTML='<i class="globe"></i>'+o}}else{r.innerHTML=o}e.appendChild(r)}t.forEach(function(e){if(window.location.href.indexOf(e)>-1){var t=document.querySelector("#bonuses_comparison_table_sort_dropdown option[data-column-id="+e+"]");c(Array.from(t.parentElement.children).indexOf(t));var n=new Event("hasHashFilterTag");document.body.dispatchEvent(n)}})})();function u(e){document.querySelector(e).addEventListener("click",function(){document.getElementById("dropbtn-"+i).classList.toggle("showed");document.getElementById(i+"-dropdown-content").classList.toggle("show")})}u("#dropbtn-"+i);if(o){u(o)}}window.addEventListener("click",function(e){if(!!l){if(!e.target.matches("[class^=dropbtn-]")&&!e.target.matches("[id^=selected-]")&&!e.target.matches(o)){var t=document.querySelectorAll(".showed");for(var n=0;n<t.length;n++){t[n].classList.remove("showed");t[n].nextSibling.classList.remove("show")}}}});if(t&&!!document.querySelector(t)){document.querySelector(t).addEventListener("click",function(){if(!!l.querySelector('option[selected="selected"]')){c(l.querySelector('option[selected="selected"]').index)}else{c(l.options.length===2?1:0)}})}(function(){if(!!l&&l.options.length===2){c(1);r.classList.add("dropdown-disabled")}})()}(function(){rangeColor("rating_filter","bonuses_comparison_table_filter_reset");rangeColor("max_bonus_filter","bonuses_comparison_table_filter_reset");getCustomDropdown("country",".countries_filter_select_wrapper",null,true,"#bonuses_comparison_table_filter_reset");getCustomDropdown("sorting",".bonuses_comparison_table_sort_container",".bonuses_comparison_table_sort_container label",false,false)})();jQuery(function(o){var t;var n;var r=-1;var a="";o(".dropbtn-custom").on("click",function(){t=o(this);u()});o(document).on("keydown",function(e){if(t&&t.hasClass("showed")){n=t.next();i(e,n[0].childNodes)}});o(".dropdown-content").on("mouseover",function(){o(".dropdown-content.show .selected").removeClass("selected");u()});function i(e,t){var n=e.key;if(t[r]){t[r].classList.remove("selected")}if(n.indexOf("Down")>-1){r++;e.preventDefault()}else if(n.indexOf("Up")>-1){r--;e.preventDefault()}else if(/^[A-Za-z\s]+$/.test(n)&&n.indexOf("Enter")<0){s(n,t)}if(r>=t.length){r=0}else if(r<0){r=t.length-1}t[r].classList.add("selected");l(t[r]);if(n.indexOf("Enter")>-1){o(t[r]).trigger("click");c(t[r])}}function s(e,t){a=e;o(t).each(function(e){if(o(this).text().toLowerCase().match("^"+a)){r=e;return false}else{r=0}})}function l(e){t[0].childNodes[0].innerHTML=e.innerHTML}function c(e){o(".dropbtn-custom.showed").removeClass("showed");o(".dropdown-content.show").removeClass("show");e.classList.remove("selected");u()}function u(){r=-1;a=""}});
/*!
 * clipboard.js v1.7.1
 * https://zenorocha.github.io/clipboard.js
 *
 * Licensed MIT © Zeno Rocha
 */
!function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.Clipboard=t()}}(function(){var t,e,n;return function t(e,n,o){function i(a,c){if(!n[a]){if(!e[a]){var l="function"==typeof require&&require;if(!c&&l)return l(a,!0);if(r)return r(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var u=n[a]={exports:{}};e[a][0].call(u.exports,function(t){var n=e[a][1][t];return i(n||t)},u,u.exports,t,e,n,o)}return n[a].exports}for(var r="function"==typeof require&&require,a=0;a<o.length;a++)i(o[a]);return i}({1:[function(t,e,n){function o(t,e){for(;t&&t.nodeType!==i;){if("function"==typeof t.matches&&t.matches(e))return t;t=t.parentNode}}var i=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=o},{}],2:[function(t,e,n){function o(t,e,n,o,r){var a=i.apply(this,arguments);return t.addEventListener(n,a,r),{destroy:function(){t.removeEventListener(n,a,r)}}}function i(t,e,n,o){return function(n){n.delegateTarget=r(n.target,e),n.delegateTarget&&o.call(t,n)}}var r=t("./closest");e.exports=o},{"./closest":1}],3:[function(t,e,n){n.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},n.nodeList=function(t){var e=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===e||"[object HTMLCollection]"===e)&&"length"in t&&(0===t.length||n.node(t[0]))},n.string=function(t){return"string"==typeof t||t instanceof String},n.fn=function(t){return"[object Function]"===Object.prototype.toString.call(t)}},{}],4:[function(t,e,n){function o(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!c.string(e))throw new TypeError("Second argument must be a String");if(!c.fn(n))throw new TypeError("Third argument must be a Function");if(c.node(t))return i(t,e,n);if(c.nodeList(t))return r(t,e,n);if(c.string(t))return a(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function i(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function r(t,e,n){return Array.prototype.forEach.call(t,function(t){t.addEventListener(e,n)}),{destroy:function(){Array.prototype.forEach.call(t,function(t){t.removeEventListener(e,n)})}}}function a(t,e,n){return l(document.body,t,e,n)}var c=t("./is"),l=t("delegate");e.exports=o},{"./is":3,delegate:2}],5:[function(t,e,n){function o(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}e.exports=o},{}],6:[function(t,e,n){function o(){}o.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){function o(){i.off(t,o),e.apply(n,arguments)}var i=this;return o._=e,this.on(t,o,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},e.exports=o},{}],7:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","select"],r);else if(void 0!==o)r(n,e("select"));else{var a={exports:{}};r(a,i.select),i.clipboardAction=a.exports}}(this,function(t,e){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var i=n(e),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},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),c=function(){function t(e){o(this,t),this.resolveOptions(e),this.initSelection()}return a(t,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function t(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function t(){var e=this,n="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[n?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=o+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,i.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function t(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function t(){this.selectedText=(0,i.default)(this.target),this.copyText()}},{key:"copyText",value:function t(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function t(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function t(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function t(){this.removeFake()}},{key:"action",set:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function t(){return this._action}},{key:"target",set:function t(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":r(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function t(){return this._target}}]),t}();t.exports=c})},{select:5}],8:[function(e,n,o){!function(i,r){if("function"==typeof t&&t.amd)t(["module","./clipboard-action","tiny-emitter","good-listener"],r);else if(void 0!==o)r(n,e("./clipboard-action"),e("tiny-emitter"),e("good-listener"));else{var a={exports:{}};r(a,i.clipboardAction,i.tinyEmitter,i.goodListener),i.clipboard=a.exports}}(this,function(t,e,n,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function l(t,e){var n="data-clipboard-"+t;if(e.hasAttribute(n))return e.getAttribute(n)}var s=i(e),u=i(n),f=i(o),d="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},h=function(){function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,n,o){return n&&t(e.prototype,n),o&&t(e,o),e}}(),p=function(t){function e(t,n){r(this,e);var o=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this));return o.resolveOptions(n),o.listenClick(t),o}return c(e,t),h(e,[{key:"resolveOptions",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===d(e.container)?e.container:document.body}},{key:"listenClick",value:function t(e){var n=this;this.listener=(0,f.default)(e,"click",function(t){return n.onClick(t)})}},{key:"onClick",value:function t(e){var n=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new s.default({action:this.action(n),target:this.target(n),text:this.text(n),container:this.container,trigger:n,emitter:this})}},{key:"defaultAction",value:function t(e){return l("action",e)}},{key:"defaultTarget",value:function t(e){var n=l("target",e);if(n)return document.querySelector(n)}},{key:"defaultText",value:function t(e){return l("text",e)}},{key:"destroy",value:function t(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],n="string"==typeof e?[e]:e,o=!!document.queryCommandSupported;return n.forEach(function(t){o=o&&!!document.queryCommandSupported(t)}),o}}]),e}(u.default);t.exports=p})},{"./clipboard-action":7,"good-listener":4,"tiny-emitter":6}]},{},[8])(8)});
(function(){"use strict"})();
(function(h){"use strict";h(function(){var t=h("div[data-valid-until]");t.each(function(t,o){e(o)});function m(t){var o=new Date;var e=o.getTime();var r=new Date(t);var i=r.getTime();var n=i-e;var a=Math.floor(n/1e3%60);var s=Math.floor(n/1e3/60%60);var p=Math.floor(n/(1e3*60*60));return{total:n,hours:p,minutes:s,seconds:a}}function e(o){var e=3600*24*7*1e3;var r=h(o).attr("data-valid-until");var i=h(o).parent().parent();var t='<div class="sportscube-api-promotion-count-down-date">'+i.attr("data-translation-ends-in")+"</div>";var n=i.attr("data-translation-expired");var a='<div class="sportscube-api-promotion-expired">'+n+"</div>";var s=i.attr("data-translation-far-future-expiry");var p='<div class="sportscube-api-promotion-far-future">'+t+s+"</div>";var c=i.attr("data-translation-no-expiry");var u='<div class="sportscube-api-promotion-no-expiry">'+c+"</div>";var d=h(o).parent().find(".sportscube-api-promotion-count-down")[0];var v=d.querySelector(".sportscube-api-promotion-hours");var l=d.querySelector(".sportscube-api-promotion-minutes");var f=d.querySelector(".sportscube-api-promotion-seconds");function b(){var t=false;if(r!==""){t=m(r)}v.innerHTML=t.hours<100?("0"+t.hours).slice(-2):t.hours;l.innerHTML=("0"+t.minutes).slice(-2);f.innerHTML=("0"+t.seconds).slice(-2);if(t===false){i.prepend(u);h(o).parent().hide()}else if(t.total>0&&t.total<e){window.setTimeout(b,1e3)}else if(t.total>e){i.prepend(p);h(o).parent().hide()}else{i.prepend(a);h(o).parent().hide()}}b()}h("div.entry-content div.sportscube-api-promotion-section, div.sportscube-promotion div.sportscube-api-promotion-section").click(function(t){var o=h(this).find("a");if(o.attr("target")==="_blank"){window.open(o.attr("href"))}else{window.location=o.attr("href")}t.preventDefault()})})})(jQuery);jQuery(function(o){o(".sportscube-api-promotion-section").each(function(){var t=o(".sportscube-api-promotion-count-down-container",this);if(o(".sportscube-api-promotion-expired",t).length){o(this).addClass("expired")}});o(".entry-content > .sportscube-api-promotion-section").not(".sportscube-api-promotion-section + .sportscube-api-promotion-section").each(function(){o(this).nextUntil(":not(.sportscube-api-promotion-section)").addBack().wrapAll('<div class="sportscube-promotion-wrap sportscube-promotion-default-view" />')});o(".entry-content > .sportscube-api-bonus-overview").not(".sportscube-api-bonus-overview + .sportscube-api-bonus-overview").each(function(){o(this).nextUntil(":not(.sportscube-api-bonus-overview)").addBack().wrapAll('<div class="sportscube-promotion-wrap sportscube-promotion-default-view" />')})});
window.addEventListener("beforeinstallprompt",function(e){if(typeof ga!=="undefined"){ga("send",{hitType:"event",eventCategory:"Add to homescreen",eventAction:"displayed"})}e.userChoice.then(function(e){if(e.outcome=="dismissed"){if(typeof ga!=="undefined"){ga("send",{hitType:"event",eventCategory:"Add to homescreen",eventAction:"cancelled"})}}else{if(typeof ga!=="undefined"){ga("send",{hitType:"event",eventCategory:"Add to homescreen",eventAction:"install"})}}})});
"use strict";(function(){function e(){let i=0;document.addEventListener("scroll",function(){i=window.scrollY;const e=document.getElementsByTagName("body")[0];const t=document.getElementById("site");let n=0;if(e.classList.contains("home")){n=300}if(i>n){t.classList.add("fixed-header")}else{t.classList.remove("fixed-header")}})}function t(){var e=document.getElementById("lang-switcher");e.addEventListener("change",function(e){const t=this.options[this.selectedIndex].getAttribute("data-lang");if(t){const n=["ltp_lang="+t,"path=/","max-age=31536000"];document.cookie=n.join(";")}window.location=e.target.value})}function n(){const e=document.querySelector("#navigation-main-mobile ul li.more a");if(e){e.addEventListener("click",function(e){e.preventDefault();const t=document.querySelector("#navigation-main-mobile ul li.more ul");if(t){if(t.classList.contains("visible")){t.classList.remove("visible")}else{t.classList.add("visible")}}})}}function i(){if(document.getElementById("betting-tips-league-selector-wrapper")){window.addEventListener("scroll",function(){o("betting-tips-league-selector-mobile-btn")})}}function o(e){var t=document.querySelector("#site-footer");var n=t.getBoundingClientRect();var i=window.innerHeight;if(n.top<i&&n.bottom>=0){document.getElementById(e).style.opacity=0}else{document.getElementById(e).style.opacity=1}}function c(e){if(document.attachEvent?document.readyState==="complete":document.readyState!=="loading"){e()}else{document.addEventListener("DOMContentLoaded",e)}}c(()=>{t();e();n();i()})})();
var donutPie=function(){var a={uniqueId:0,donutCss:".donut-bg{fill:#fff;}.donut-ring{stroke:#e5e5e5;}.donut-segment,.donut-ring{transition:all .5s ease;fill:transparent;stroke-width:5px;}",donutHTML:'<div class="donut-svg"><div class="text-value"></div><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="44" height="44" viewBox="0 0 44 44" class="donut"><defs>#linear_gradient</defs><circle class="donut-bg" cx="22" cy="22" r="20"></circle><circle class="donut-ring" cx="22" cy="22" r="15.91549430918954"></circle><circle class="donut-segment" cx="22" cy="22" r="15.91549430918954" stroke-dasharray="0 100" stroke-dashoffset="25"  style="stroke:url(#gradient);"></circle></svg></div>',gradientItems:{0:{svgLinearGadient:'<linearGradient x1="29.53358%" y1="35.404333%" x2="94.1996961%" y2="111.911975%" id="gradient_1"><stop stop-color="#FA4141" offset="0%"></stop><stop stop-color="#D50F07" offset="100%"></stop></linearGradient>',hexTextColor:"#C30016"},1:{svgLinearGadient:'<linearGradient x1="29.53358%" y1="35.404333%" x2="94.1996961%" y2="111.911975%" id="gradient_1"><stop stop-color="#FA4141" offset="0%"></stop><stop stop-color="#D50F07" offset="100%"></stop></linearGradient>',hexTextColor:"#C30016"},2:{svgLinearGadient:'<linearGradient x1="29.53358%" y1="35.404333%" x2="94.1996961%" y2="111.911975%" id="gradient_2"><stop stop-color="#FA4141" offset="0%"></stop><stop stop-color="#D50F07" offset="100%"></stop></linearGradient>',hexTextColor:"#C30016"},3:{svgLinearGadient:'<linearGradient x1="94.1996961%" y1="111.911975%" x2="29.53358%" y2="35.404333%" id="gradient_3"><stop stop-color="#FA4141" offset="0%"></stop><stop stop-color="#D50F07" offset="100%"></stop></linearGradient>',hexTextColor:"#C30016"},4:{svgLinearGadient:'<linearGradient x1="23.6128171%" y1="105.991212%" x2="100.120459%" y2="41.3250958%" id="gradient_4"><stop stop-color="#FCBE12" offset="0%"></stop><stop stop-color="#FF6B00" offset="100%"></stop></linearGradient>',hexTextColor:"#F1961C"},5:{svgLinearGadient:'<linearGradient x1="23.6128171%" y1="105.991212%" x2="100.120459%" y2="41.3250958%" id="gradient_5"><stop stop-color="#FCBE12" offset="0%"></stop><stop stop-color="#FF6B00" offset="100%"></stop></linearGradient>',hexTextColor:"#F1961C"},6:{svgLinearGadient:'<linearGradient x1="23.6128171%" y1="105.991212%" x2="100.120459%" y2="41.3250958%" id="gradient_6"><stop stop-color="#FCBE12" offset="0%"></stop><stop stop-color="#FF6B00" offset="100%"></stop></linearGradient>',hexTextColor:"#F1961C"},7:{svgLinearGadient:'<linearGradient x1="94.283004%" y1="110.918784%" x2="30.5267707%" y2="35.4876409%" id="gradient_7"><stop stop-color="#FCBE12" offset="0%"></stop><stop stop-color="#FF6B00" offset="100%"></stop></linearGradient>',hexTextColor:"#F1961C"},8:{svgLinearGadient:'<linearGradient x1="29.53358%" y1="35.404333%" x2="94.1996961%" y2="111.911975%" id="gradient_8"><stop stop-color="#44C134" offset="0%"></stop><stop stop-color="#A2EA36" offset="100%"></stop></linearGradient>',hexTextColor:"#47C234"},9:{svgLinearGadient:'<linearGradient x1="29.53358%" y1="35.404333%" x2="94.1996961%" y2="111.911975%" id="gradient_9"><stop stop-color="#44C134" offset="0%"></stop><stop stop-color="#A2EA36" offset="100%"></stop></linearGradient>',hexTextColor:"#47C234"},10:{svgLinearGadient:'<linearGradient x1="23.6128171%" y1="105.991212%" x2="100.120459%" y2="41.3250958%" id="gradient_10"><stop stop-color="#44C134" offset="0%"></stop><stop stop-color="#A2EA36" offset="100%"></stop></linearGradient>',hexTextColor:"#47C234"}},donutItem:0,countDonutValues:function(e){e.TextObj.prop("counter",0).animate({counter:e.TextObj.text()},{duration:400,easing:"swing",step:function(t){e.TextObj.text(Math.round(t))}})},drawDonutGraph:function(t){var e=this;setTimeout(function(){t.TextObj.prepend(t.TextValue);e.countDonutValues(t);t.drawhObj.css({"stroke-dasharray":t.drawValue});jQuery(t.TextObj).css({color:e.gradientItems[Number(t.TextValue)].hexTextColor})},300)},donutSetup:function(t){var e=t.attr("data-value"),o=0;if(!t.hasClass("donut-pie")){t.addClass("donut-pie")}if(typeof e!==typeof undefined&&e!==false){o=Number(t.attr("data-value"))}var r=o*10;var n=(10-o)*10;var s=this.gradientItems[Number(o)].svgLinearGadient.replace("gradient_"+o,this.uniqueId+"_gradient_"+o);t.prepend(this.donutHTML.replace("#linear_gradient",s).replace("#gradient","#"+this.uniqueId+"_gradient_"+o));this.uniqueId++;var i={donutObj:t,item:a.donutItem+=1,drawhObj:t.find(".donut-segment"),drawValue:r+", "+n,TextObj:t.find(".text-value"),TextValue:o};this.drawDonutGraph(i)},donutCssInjected:false,donutPrepare:function(){if(!this.donutCssInjected){var t=document.createElement("style");t.id="donut-css";t.type="text/css";t.innerHTML=this.donutCss;document.body.appendChild(t);this.donutCssInjected=true}}};return{donutInit:function(t){var e=jQuery(t);if(!e.length){return}a.donutPrepare();e.each(function(t,e){jQuery(e).html("");jQuery(e).removeClass("donut-pie");a.donutSetup(jQuery(this))})}}}();
donutPie.donutInit(".donut-rating");jQuery("#bonuses_comparison_table_filters").on("submit reset",function(){donutPie.donutInit(".donut-rating")});jQuery(".bonuses_comparison_table_grid_container > div").on("click",function(){donutPie.donutInit(".donut-rating")});
(function(){"use strict";var a={collapseWrapClass:"module-mobile-collapse",collapseActiveHeadlineCSS:"active-collapse",collapseIconCssClass:"icon-collapse",collapseActiveCssClass:"active"};function e(){s(function(e){t(e,function(e){c(e,a.collapseActiveHeadlineCSS);var s=document.createElement("DIV");c(s,a.collapseIconCssClass);e.insertBefore(s,e.firstChild)})});l()}function s(e){var s=document.getElementsByClassName(a.collapseWrapClass);for(var t=0;t<s.length;t++){e(s[t])}}function t(e,s){var t=e.previousElementSibling;if(t&&String(t.tagName).match(/^H[0-9]$/)){s(e.previousElementSibling)}}function n(e){c(e.target,a.collapseActiveCssClass);c(e.target.parentNode.nextElementSibling,a.collapseActiveCssClass)}function l(){s(function(e){t(e,function(e){var s=e.getElementsByClassName(a.collapseIconCssClass);for(var t=0;t<s.length;t++){s[t].addEventListener("click",n)}})})}function c(e,s){if(e.classList){e.classList.toggle(s)}else{var t=e.className.split(" ");var a=-1;for(var n=t.length;n--;){if(t[n]===s){a=n}}if(a>=0){t.splice(a,1)}else{t.push(s)}e.className=t.join(" ")}}function i(e){if(document.readyState!=="loading"){e()}else if(document.addEventListener){document.addEventListener("DOMContentLoaded",e)}else{document.attachEvent("onreadystatechange",function(){if(document.readyState!=="loading"){e()}})}}i(e)})();
(function(r){r.color={},r.color.make=function(t,i,e,o){var n={};return n.r=t||0,n.g=i||0,n.b=e||0,n.a=o!=null?o:1,n.add=function(t,i){for(var e=0;e<t.length;++e)n[t.charAt(e)]+=i;return n.normalize()},n.scale=function(t,i){for(var e=0;e<t.length;++e)n[t.charAt(e)]*=i;return n.normalize()},n.toString=function(){return n.a>=1?"rgb("+[n.r,n.g,n.b].join(",")+")":"rgba("+[n.r,n.g,n.b,n.a].join(",")+")"},n.normalize=function(){function t(t,i,e){return i<t?t:i>e?e:i}return n.r=t(0,parseInt(n.r),255),n.g=t(0,parseInt(n.g),255),n.b=t(0,parseInt(n.b),255),n.a=t(0,n.a,1),n},n.clone=function(){return r.color.make(n.r,n.b,n.g,n.a)},n.normalize()},r.color.extract=function(t,i){var e;do{e=t.css(i).toLowerCase();if(e!=""&&e!="transparent")break;t=t.parent()}while(!r.nodeName(t.get(0),"body"));return e=="rgba(0, 0, 0, 0)"&&(e="transparent"),r.color.parse(e)},r.color.parse=function(t){var i,e=r.color.make;if(i=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(t))return e(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10));if(i=/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))return e(parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3],10),parseFloat(i[4]));if(i=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(t))return e(parseFloat(i[1])*2.55,parseFloat(i[2])*2.55,parseFloat(i[3])*2.55);if(i=/rgba\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\s*\)/.exec(t))return e(parseFloat(i[1])*2.55,parseFloat(i[2])*2.55,parseFloat(i[3])*2.55,parseFloat(i[4]));if(i=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(t))return e(parseInt(i[1],16),parseInt(i[2],16),parseInt(i[3],16));if(i=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(t))return e(parseInt(i[1]+i[1],16),parseInt(i[2]+i[2],16),parseInt(i[3]+i[3],16));var o=r.trim(t).toLowerCase();return o=="transparent"?e(255,255,255,0):(i=n[o]||[0,0,0],e(i[0],i[1],i[2]))};var n={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0]}})(jQuery),function(xt){function gt(t,i){var e=i.children("."+t)[0];if(e==null){e=document.createElement("canvas"),e.className=t,xt(e).css({direction:"ltr",position:"absolute",left:0,top:0}).appendTo(i);if(!e.getContext){if(!window.G_vmlCanvasManager)throw new Error("Canvas is not available. If you're using IE with a fall-back such as Excanvas, then there's either a mistake in your conditional include, or the page has no DOCTYPE and is rendering in Quirks Mode.");e=window.G_vmlCanvasManager.initElement(e)}}this.element=e;var o=this.context=e.getContext("2d"),n=window.devicePixelRatio||1,r=o.webkitBackingStorePixelRatio||o.mozBackingStorePixelRatio||o.msBackingStorePixelRatio||o.oBackingStorePixelRatio||o.backingStorePixelRatio||1;this.pixelRatio=n/r,this.resize(i.width(),i.height()),this.textContainer=null,this.text={},this._textCache={}}function n(x,O,E,o){function z(t,i){i=[N].concat(i);for(var e=0;e<t.length;++e)t[e].apply(this,i)}function R(){var t={Canvas:gt};for(var i=0;i<o.length;++i){var e=o[i];e.init(N,t),e.options&&xt.extend(!0,S,e.options)}}function j(t){xt.extend(!0,S,t),t&&t.colors&&(S.colors=t.colors),S.xaxis.color==null&&(S.xaxis.color=xt.color.parse(S.grid.color).scale("a",.22).toString()),S.yaxis.color==null&&(S.yaxis.color=xt.color.parse(S.grid.color).scale("a",.22).toString()),S.xaxis.tickColor==null&&(S.xaxis.tickColor=S.grid.tickColor||S.xaxis.color),S.yaxis.tickColor==null&&(S.yaxis.tickColor=S.grid.tickColor||S.yaxis.color),S.grid.borderColor==null&&(S.grid.borderColor=S.grid.color),S.grid.tickColor==null&&(S.grid.tickColor=xt.color.parse(S.grid.color).scale("a",.22).toString());var i,e,o,n={style:x.css("font-style"),size:Math.round(.8*(+x.css("font-size").replace("px","")||13)),variant:x.css("font-variant"),weight:x.css("font-weight"),family:x.css("font-family")};n.lineHeight=n.size*1.15,o=S.xaxes.length||1;for(i=0;i<o;++i)e=S.xaxes[i],e&&!e.tickColor&&(e.tickColor=e.color),e=xt.extend(!0,{},S.xaxis,e),S.xaxes[i]=e,e.font&&(e.font=xt.extend({},n,e.font),e.font.color||(e.font.color=e.color));o=S.yaxes.length||1;for(i=0;i<o;++i)e=S.yaxes[i],e&&!e.tickColor&&(e.tickColor=e.color),e=xt.extend(!0,{},S.yaxis,e),S.yaxes[i]=e,e.font&&(e.font=xt.extend({},n,e.font),e.font.color||(e.font.color=e.color));S.xaxis.noTicks&&S.xaxis.ticks==null&&(S.xaxis.ticks=S.xaxis.noTicks),S.yaxis.noTicks&&S.yaxis.ticks==null&&(S.yaxis.ticks=S.yaxis.noTicks),S.x2axis&&(S.xaxes[1]=xt.extend(!0,{},S.xaxis,S.x2axis),S.xaxes[1].position="top"),S.y2axis&&(S.yaxes[1]=xt.extend(!0,{},S.yaxis,S.y2axis),S.yaxes[1].position="right"),S.grid.coloredAreas&&(S.grid.markings=S.grid.coloredAreas),S.grid.coloredAreasColor&&(S.grid.markingsColor=S.grid.coloredAreasColor),S.lines&&xt.extend(!0,S.series.lines,S.lines),S.points&&xt.extend(!0,S.series.points,S.points),S.bars&&xt.extend(!0,S.series.bars,S.bars),S.shadowSize!=null&&(S.series.shadowSize=S.shadowSize),S.highlightColor!=null&&(S.series.highlightColor=S.highlightColor);for(i=0;i<S.xaxes.length;++i)p(T,i+1).options=S.xaxes[i];for(i=0;i<S.yaxes.length;++i)p(M,i+1).options=S.yaxes[i];for(var r in F)S.hooks[r]&&S.hooks[r].length&&(F[r]=F[r].concat(S.hooks[r]));z(F.processOptions,[S])}function t(t){A=B(t),G(),_()}function B(t){var i=[];for(var e=0;e<t.length;++e){var o=xt.extend(!0,{},S.series);t[e].data!=null?(o.data=t[e].data,delete t[e].data,xt.extend(!0,o,t[e]),t[e].data=o.data):o.data=t[e],i.push(o)}return i}function d(t,i){var e=t[i+"axis"];return typeof e=="object"&&(e=e.n),typeof e!="number"&&(e=1),e}function I(){return xt.grep(T.concat(M),function(t){return t})}function f(t){var i={},e,o;for(e=0;e<T.length;++e)o=T[e],o&&o.used&&(i["x"+o.n]=o.c2p(t.left));for(e=0;e<M.length;++e)o=M[e],o&&o.used&&(i["y"+o.n]=o.c2p(t.top));return i.x1!==undefined&&(i.x=i.x1),i.y1!==undefined&&(i.y=i.y1),i}function H(t){var i={},e,o,n;for(e=0;e<T.length;++e){o=T[e];if(o&&o.used){n="x"+o.n,t[n]==null&&o.n==1&&(n="x");if(t[n]!=null){i.left=o.p2c(t[n]);break}}}for(e=0;e<M.length;++e){o=M[e];if(o&&o.used){n="y"+o.n,t[n]==null&&o.n==1&&(n="y");if(t[n]!=null){i.top=o.p2c(t[n]);break}}}return i}function p(t,i){return t[i-1]||(t[i-1]={n:i,direction:t==T?"x":"y",options:xt.extend(!0,{},t==T?S.xaxis:S.yaxis)}),t[i-1]}function G(){var t=A.length,i=-1,e;for(e=0;e<A.length;++e){var o=A[e].color;o!=null&&(t--,typeof o=="number"&&o>i&&(i=o))}t<=i&&(t=i+1);var n,r=[],a=S.colors,l=a.length,s=0;for(e=0;e<t;e++)n=xt.color.parse(a[e%l]||"#666"),e%l==0&&e&&(s>=0?s<.5?s=-s-.2:s=0:s=-s),r[e]=n.scale("rgb",1+s);var c=0,f;for(e=0;e<A.length;++e){f=A[e],f.color==null?(f.color=r[c].toString(),++c):typeof f.color=="number"&&(f.color=r[f.color].toString());if(f.lines.show==null){var h,u=!0;for(h in f)if(f[h]&&f[h].show){u=!1;break}u&&(f.lines.show=!0)}f.lines.zero==null&&(f.lines.zero=!!f.lines.fill),f.xaxis=p(T,d(f,"x")),f.yaxis=p(M,d(f,"y"))}}function _(){function t(t,i,e){i<t.datamin&&i!=-n&&(t.datamin=i),e>t.datamax&&e!=n&&(t.datamax=e)}var e=Number.POSITIVE_INFINITY,o=Number.NEGATIVE_INFINITY,n=Number.MAX_VALUE,i,r,a,l,s,c,f,h,u,d,p,m,x,g,v,b;xt.each(I(),function(t,i){i.datamin=e,i.datamax=o,i.used=!1});for(i=0;i<A.length;++i)c=A[i],c.datapoints={points:[]},z(F.processRawData,[c,c.data,c.datapoints]);for(i=0;i<A.length;++i){c=A[i],v=c.data,b=c.datapoints.format;if(!b){b=[],b.push({x:!0,number:!0,required:!0}),b.push({y:!0,number:!0,required:!0});if(c.bars.show||c.lines.show&&c.lines.fill){var k=!!(c.bars.show&&c.bars.zero||c.lines.show&&c.lines.zero);b.push({y:!0,number:!0,required:!1,defaultValue:0,autoscale:k}),c.bars.horizontal&&(delete b[b.length-1].y,b[b.length-1].x=!0)}c.datapoints.format=b}if(c.datapoints.pointsize!=null)continue;c.datapoints.pointsize=b.length,h=c.datapoints.pointsize,f=c.datapoints.points;var y=c.lines.show&&c.lines.steps;c.xaxis.used=c.yaxis.used=!0;for(r=a=0;r<v.length;++r,a+=h){g=v[r];var w=g==null;if(!w)for(l=0;l<h;++l)m=g[l],x=b[l],x&&(x.number&&m!=null&&(m=+m,isNaN(m)?m=null:m==Infinity?m=n:m==-Infinity&&(m=-n)),m==null&&(x.required&&(w=!0),x.defaultValue!=null&&(m=x.defaultValue))),f[a+l]=m;if(w)for(l=0;l<h;++l)m=f[a+l],m!=null&&(x=b[l],x.autoscale&&(x.x&&t(c.xaxis,m,m),x.y&&t(c.yaxis,m,m))),f[a+l]=null;else if(y&&a>0&&f[a-h]!=null&&f[a-h]!=f[a]&&f[a-h+1]!=f[a+1]){for(l=0;l<h;++l)f[a+h+l]=f[a+l];f[a+1]=f[a-h+1],a+=h}}}for(i=0;i<A.length;++i)c=A[i],z(F.processDatapoints,[c,c.datapoints]);for(i=0;i<A.length;++i){c=A[i],f=c.datapoints.points,h=c.datapoints.pointsize,b=c.datapoints.format;var T=e,M=e,C=o,S=o;for(r=0;r<f.length;r+=h){if(f[r]==null)continue;for(l=0;l<h;++l){m=f[r+l],x=b[l];if(!x||x.autoscale===!1||m==n||m==-n)continue;x.x&&(m<T&&(T=m),m>C&&(C=m)),x.y&&(m<M&&(M=m),m>S&&(S=m))}}if(c.bars.show){var W;switch(c.bars.align){case"left":W=0;break;case"right":W=-c.bars.barWidth;break;case"center":W=-c.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+c.bars.align)}c.bars.horizontal?(M+=W,S+=W+c.bars.barWidth):(T+=W,C+=W+c.bars.barWidth)}t(c.xaxis,T,C),t(c.yaxis,M,S)}xt.each(I(),function(t,i){i.datamin==e&&(i.datamin=null),i.datamax==o&&(i.datamax=null)})}function V(){x.css("padding",0).children(":not(.flot-base,.flot-overlay)").remove(),x.css("position")=="static"&&x.css("position","relative"),v=new gt("flot-base",x),b=new gt("flot-overlay",x),y=v.context,w=b.context,k=xt(b.element).unbind();var t=x.data("plot");t&&(t.shutdown(),b.clear()),x.data("plot",N)}function X(){S.grid.hoverable&&(k.mousemove(r),k.bind("mouseleave",a)),S.grid.clickable&&k.click(s),z(F.bindEvents,[k])}function Y(){L&&clearTimeout(L),k.unbind("mousemove",r),k.unbind("mouseleave",a),k.unbind("click",s),z(F.shutdown,[k])}function q(t){function i(t){return t}var e,o,n=t.options.transform||i,r=t.options.inverseTransform;t.direction=="x"?(e=t.scale=W/Math.abs(n(t.max)-n(t.min)),o=Math.min(n(t.max),n(t.min))):(e=t.scale=P/Math.abs(n(t.max)-n(t.min)),e=-e,o=Math.max(n(t.max),n(t.min))),n==i?t.p2c=function(t){return(t-o)*e}:t.p2c=function(t){return(n(t)-o)*e},r?t.c2p=function(t){return r(o+t/e)}:t.c2p=function(t){return o+t/e}}function Q(t){var i=t.options,e=t.ticks||[],o=i.labelWidth||0,n=i.labelHeight||0,r=o||t.direction=="x"?Math.floor(v.width/(e.length||1)):null;legacyStyles=t.direction+"Axis "+t.direction+t.n+"Axis",layer="flot-"+t.direction+"-axis flot-"+t.direction+t.n+"-axis "+legacyStyles,font=i.font||"flot-tick-label tickLabel";for(var a=0;a<e.length;++a){var l=e[a];if(!l.label)continue;var s=v.getTextInfo(layer,l.label,font,null,r);o=Math.max(o,s.width),n=Math.max(n,s.height)}t.labelWidth=i.labelWidth||o,t.labelHeight=i.labelHeight||n}function U(t){var i=t.labelWidth,e=t.labelHeight,o=t.options.position,n=t.options.tickLength,r=S.grid.axisMargin,a=S.grid.labelMargin,l=t.direction=="x"?T:M,s,c,f=xt.grep(l,function(t){return t&&t.options.position==o&&t.reserveSpace});xt.inArray(t,f)==f.length-1&&(r=0);if(n==null){var h=xt.grep(l,function(t){return t&&t.reserveSpace});c=xt.inArray(t,h)==0,c?n="full":n=5}isNaN(+n)||(a+=+n),t.direction=="x"?(e+=a,o=="bottom"?(C.bottom+=e+r,t.box={top:v.height-C.bottom,height:e}):(t.box={top:C.top+r,height:e},C.top+=e+r)):(i+=a,o=="left"?(t.box={left:C.left+r,width:i},C.left+=i+r):(C.right+=i+r,t.box={left:v.width-C.right,width:i})),t.position=o,t.tickLength=n,t.box.padding=a,t.innermost=c}function J(t){t.direction=="x"?(t.box.left=C.left-t.labelWidth/2,t.box.width=v.width-C.left-C.right+t.labelWidth):(t.box.top=C.top-t.labelHeight/2,t.box.height=v.height-C.bottom-C.top+t.labelHeight)}function $(){var t=S.grid.minBorderMargin,o={x:0,y:0},i,e;if(t==null){t=0;for(i=0;i<A.length;++i)t=Math.max(t,2*(A[i].points.radius+A[i].points.lineWidth/2))}o.x=o.y=Math.ceil(t),xt.each(I(),function(t,i){var e=i.direction;i.reserveSpace&&(o[e]=Math.ceil(Math.max(o[e],(e=="x"?i.labelWidth:i.labelHeight)/2)))}),C.left=Math.max(o.x,C.left),C.right=Math.max(o.x,C.right),C.top=Math.max(o.y,C.top),C.bottom=Math.max(o.y,C.bottom)}function i(){var t,i=I(),e=S.grid.show;for(var o in C){var n=S.grid.margin||0;C[o]=typeof n=="number"?n:n[o]||0}z(F.processOffset,[C]);for(var o in C)typeof S.grid.borderWidth=="object"?C[o]+=e?S.grid.borderWidth[o]:0:C[o]+=e?S.grid.borderWidth:0;xt.each(i,function(t,i){i.show=i.options.show,i.show==null&&(i.show=i.used),i.reserveSpace=i.show||i.options.reserveSpace,K(i)});if(e){var r=xt.grep(i,function(t){return t.reserveSpace});xt.each(r,function(t,i){Z(i),tt(i),it(i,i.ticks),Q(i)});for(t=r.length-1;t>=0;--t)U(r[t]);$(),xt.each(r,function(t,i){J(i)})}W=v.width-C.left-C.right,P=v.height-C.bottom-C.top,xt.each(i,function(t,i){q(i)}),e&&ot(),st()}function K(t){var i=t.options,e=+(i.min!=null?i.min:t.datamin),o=+(i.max!=null?i.max:t.datamax),n=o-e;if(n==0){var r=o==0?1:.01;i.min==null&&(e-=r);if(i.max==null||i.min!=null)o+=r}else{var a=i.autoscaleMargin;a!=null&&(i.min==null&&(e-=n*a,e<0&&t.datamin!=null&&t.datamin>=0&&(e=0)),i.max==null&&(o+=n*a,o>0&&t.datamax!=null&&t.datamax<=0&&(o=0)))}t.min=e,t.max=o}function Z(t){var e=t.options,i;typeof e.ticks=="number"&&e.ticks>0?i=e.ticks:i=.3*Math.sqrt(t.direction=="x"?v.width:v.height);var o=(t.max-t.min)/i,n=-Math.floor(Math.log(o)/Math.LN10),r=e.tickDecimals;r!=null&&n>r&&(n=r);var a=Math.pow(10,-n),l=o/a,s;l<1.5?s=1:l<3?(s=2,l>2.25&&(r==null||n+1<=r)&&(s=2.5,++n)):l<7.5?s=5:s=10,s*=a,e.minTickSize!=null&&s<e.minTickSize&&(s=e.minTickSize),t.delta=o,t.tickDecimals=Math.max(0,r!=null?r:n),t.tickSize=e.tickSize||s;if(e.mode=="time"&&!t.tickGenerator)throw new Error("Time mode requires the flot.time plugin.");t.tickGenerator||(t.tickGenerator=function(t){var i=[],e=vt(t.min,t.tickSize),o=0,n=Number.NaN,r;do{r=n,n=e+o*t.tickSize,i.push(n),++o}while(n<t.max&&n!=r);return i},t.tickFormatter=function(t,i){var e=i.tickDecimals?Math.pow(10,i.tickDecimals):1,o=""+Math.round(t*e)/e;if(i.tickDecimals!=null){var n=o.indexOf("."),r=n==-1?0:o.length-n-1;if(r<i.tickDecimals)return(r?o:o+".")+(""+e).substr(1,i.tickDecimals-r)}return o}),xt.isFunction(e.tickFormatter)&&(t.tickFormatter=function(t,i){return""+e.tickFormatter(t,i)});if(e.alignTicksWithAxis!=null){var c=(t.direction=="x"?T:M)[e.alignTicksWithAxis-1];if(c&&c.used&&c!=t){var f=t.tickGenerator(t);f.length>0&&(e.min==null&&(t.min=Math.min(t.min,f[0])),e.max==null&&f.length>1&&(t.max=Math.max(t.max,f[f.length-1]))),t.tickGenerator=function(t){var i=[],e,o;for(o=0;o<c.ticks.length;++o)e=(c.ticks[o].v-c.min)/(c.max-c.min),e=t.min+e*(t.max-t.min),i.push(e);return i};if(!t.mode&&e.tickDecimals==null){var h=Math.max(0,-Math.floor(Math.log(t.delta)/Math.LN10)+1),u=t.tickGenerator(t);u.length>1&&/\..*0$/.test((u[1]-u[0]).toFixed(h))||(t.tickDecimals=h)}}}}function tt(t){var i=t.options.ticks,e=[];i==null||typeof i=="number"&&i>0?e=t.tickGenerator(t):i&&(xt.isFunction(i)?e=i(t):e=i);var o,n;t.ticks=[];for(o=0;o<e.length;++o){var r=null,a=e[o];typeof a=="object"?(n=+a[0],a.length>1&&(r=a[1])):n=+a,r==null&&(r=t.tickFormatter(n,t)),isNaN(n)||t.ticks.push({v:n,label:r})}}function it(t,i){t.options.autoscaleMargin&&i.length>0&&(t.options.min==null&&(t.min=Math.min(t.min,i[0].v)),t.options.max==null&&i.length>1&&(t.max=Math.max(t.max,i[i.length-1].v)))}function e(){v.clear(),z(F.drawBackground,[y]);var t=S.grid;t.show&&t.backgroundColor&&et(),t.show&&!t.aboveData&&n();for(var i=0;i<A.length;++i)z(F.drawSeries,[y,A[i]]),nt(A[i]);z(F.draw,[y]),t.show&&t.aboveData&&n(),v.render(),u()}function g(t,i){var e,o,n,r,a=I();for(var l=0;l<a.length;++l){e=a[l];if(e.direction==i){r=i+e.n+"axis",!t[r]&&e.n==1&&(r=i+"axis");if(t[r]){o=t[r].from,n=t[r].to;break}}}t[r]||(e=i=="x"?T[0]:M[0],o=t[i+"1"],n=t[i+"2"]);if(o!=null&&n!=null&&o>n){var s=o;o=n,n=s}return{from:o,to:n,axis:e}}function et(){y.save(),y.translate(C.left,C.top),y.fillStyle=mt(S.grid.backgroundColor,P,0,"rgba(255, 255, 255, 0)"),y.fillRect(0,0,W,P),y.restore()}function n(){var t,i,e,o;y.save(),y.translate(C.left,C.top);var n=S.grid.markings;if(n){xt.isFunction(n)&&(i=N.getAxes(),i.xmin=i.xaxis.min,i.xmax=i.xaxis.max,i.ymin=i.yaxis.min,i.ymax=i.yaxis.max,n=n(i));for(t=0;t<n.length;++t){var r=n[t],a=g(r,"x"),l=g(r,"y");a.from==null&&(a.from=a.axis.min),a.to==null&&(a.to=a.axis.max),l.from==null&&(l.from=l.axis.min),l.to==null&&(l.to=l.axis.max);if(a.to<a.axis.min||a.from>a.axis.max||l.to<l.axis.min||l.from>l.axis.max)continue;a.from=Math.max(a.from,a.axis.min),a.to=Math.min(a.to,a.axis.max),l.from=Math.max(l.from,l.axis.min),l.to=Math.min(l.to,l.axis.max);if(a.from==a.to&&l.from==l.to)continue;a.from=a.axis.p2c(a.from),a.to=a.axis.p2c(a.to),l.from=l.axis.p2c(l.from),l.to=l.axis.p2c(l.to),a.from==a.to||l.from==l.to?(y.beginPath(),y.strokeStyle=r.color||S.grid.markingsColor,y.lineWidth=r.lineWidth||S.grid.markingsLineWidth,y.moveTo(a.from,l.from),y.lineTo(a.to,l.to),y.stroke()):(y.fillStyle=r.color||S.grid.markingsColor,y.fillRect(a.from,l.to,a.to-a.from,l.from-l.to))}}i=I(),e=S.grid.borderWidth;for(var s=0;s<i.length;++s){var c=i[s],f=c.box,h=c.tickLength,u,d,p,m;if(!c.show||c.ticks.length==0)continue;y.lineWidth=1,c.direction=="x"?(u=0,h=="full"?d=c.position=="top"?0:P:d=f.top-C.top+(c.position=="top"?f.height:0)):(d=0,h=="full"?u=c.position=="left"?0:W:u=f.left-C.left+(c.position=="left"?f.width:0)),c.innermost||(y.strokeStyle=c.options.color,y.beginPath(),p=m=0,c.direction=="x"?p=W+1:m=P+1,y.lineWidth==1&&(c.direction=="x"?d=Math.floor(d)+.5:u=Math.floor(u)+.5),y.moveTo(u,d),y.lineTo(u+p,d+m),y.stroke()),y.strokeStyle=c.options.tickColor,y.beginPath();for(t=0;t<c.ticks.length;++t){var x=c.ticks[t].v;p=m=0;if(isNaN(x)||x<c.min||x>c.max||h=="full"&&(typeof e=="object"&&e[c.position]>0||e>0)&&(x==c.min||x==c.max))continue;c.direction=="x"?(u=c.p2c(x),m=h=="full"?-P:h,c.position=="top"&&(m=-m)):(d=c.p2c(x),p=h=="full"?-W:h,c.position=="left"&&(p=-p)),y.lineWidth==1&&(c.direction=="x"?u=Math.floor(u)+.5:d=Math.floor(d)+.5),y.moveTo(u,d),y.lineTo(u+p,d+m)}y.stroke()}e&&(o=S.grid.borderColor,typeof e=="object"||typeof o=="object"?(typeof e!="object"&&(e={top:e,right:e,bottom:e,left:e}),typeof o!="object"&&(o={top:o,right:o,bottom:o,left:o}),e.top>0&&(y.strokeStyle=o.top,y.lineWidth=e.top,y.beginPath(),y.moveTo(0-e.left,0-e.top/2),y.lineTo(W,0-e.top/2),y.stroke()),e.right>0&&(y.strokeStyle=o.right,y.lineWidth=e.right,y.beginPath(),y.moveTo(W+e.right/2,0-e.top),y.lineTo(W+e.right/2,P),y.stroke()),e.bottom>0&&(y.strokeStyle=o.bottom,y.lineWidth=e.bottom,y.beginPath(),y.moveTo(W+e.right,P+e.bottom/2),y.lineTo(0,P+e.bottom/2),y.stroke()),e.left>0&&(y.strokeStyle=o.left,y.lineWidth=e.left,y.beginPath(),y.moveTo(0-e.left/2,P+e.bottom),y.lineTo(0-e.left/2,0),y.stroke())):(y.lineWidth=e,y.strokeStyle=S.grid.borderColor,y.strokeRect(-e/2,-e/2,W+e,P+e))),y.restore()}function ot(){xt.each(I(),function(t,i){if(!i.show||i.ticks.length==0)return;var e=i.box,o=i.direction+"Axis "+i.direction+i.n+"Axis",n="flot-"+i.direction+"-axis flot-"+i.direction+i.n+"-axis "+o,r=i.options.font||"flot-tick-label tickLabel",a,l,s,c,f;v.removeText(n);for(var h=0;h<i.ticks.length;++h){a=i.ticks[h];if(!a.label||a.v<i.min||a.v>i.max)continue;i.direction=="x"?(c="center",l=C.left+i.p2c(a.v),i.position=="bottom"?s=e.top+e.padding:(s=e.top+e.height-e.padding,f="bottom")):(f="middle",s=C.top+i.p2c(a.v),i.position=="left"?(l=e.left+e.width-e.padding,c="right"):l=e.left+e.padding),v.addText(n,l,s,a.label,r,null,null,c,f)}})}function nt(t){t.lines.show&&rt(t),t.bars.show&&lt(t),t.points.show&&at(t)}function rt(t){function i(t,i,e,o,n){var r=t.points,a=t.pointsize,l=null,s=null;y.beginPath();for(var c=a;c<r.length;c+=a){var f=r[c-a],h=r[c-a+1],u=r[c],d=r[c+1];if(f==null||u==null)continue;if(h<=d&&h<n.min){if(d<n.min)continue;f=(n.min-h)/(d-h)*(u-f)+f,h=n.min}else if(d<=h&&d<n.min){if(h<n.min)continue;u=(n.min-h)/(d-h)*(u-f)+f,d=n.min}if(h>=d&&h>n.max){if(d>n.max)continue;f=(n.max-h)/(d-h)*(u-f)+f,h=n.max}else if(d>=h&&d>n.max){if(h>n.max)continue;u=(n.max-h)/(d-h)*(u-f)+f,d=n.max}if(f<=u&&f<o.min){if(u<o.min)continue;h=(o.min-f)/(u-f)*(d-h)+h,f=o.min}else if(u<=f&&u<o.min){if(f<o.min)continue;d=(o.min-f)/(u-f)*(d-h)+h,u=o.min}if(f>=u&&f>o.max){if(u>o.max)continue;h=(o.max-f)/(u-f)*(d-h)+h,f=o.max}else if(u>=f&&u>o.max){if(f>o.max)continue;d=(o.max-f)/(u-f)*(d-h)+h,u=o.max}(f!=l||h!=s)&&y.moveTo(o.p2c(f)+i,n.p2c(h)+e),l=u,s=d,y.lineTo(o.p2c(u)+i,n.p2c(d)+e)}y.stroke()}function e(t,i,e){var o=t.points,n=t.pointsize,r=Math.min(Math.max(0,e.min),e.max),a=0,l,s=!1,c=1,f=0,h=0;for(;;){if(n>0&&a>o.length+n)break;a+=n;var u=o[a-n],d=o[a-n+c],p=o[a],m=o[a+c];if(s){if(n>0&&u!=null&&p==null){h=a,n=-n,c=2;continue}if(n<0&&a==f+n){y.fill(),s=!1,n=-n,c=1,a=f=h+n;continue}}if(u==null||p==null)continue;if(u<=p&&u<i.min){if(p<i.min)continue;d=(i.min-u)/(p-u)*(m-d)+d,u=i.min}else if(p<=u&&p<i.min){if(u<i.min)continue;m=(i.min-u)/(p-u)*(m-d)+d,p=i.min}if(u>=p&&u>i.max){if(p>i.max)continue;d=(i.max-u)/(p-u)*(m-d)+d,u=i.max}else if(p>=u&&p>i.max){if(u>i.max)continue;m=(i.max-u)/(p-u)*(m-d)+d,p=i.max}s||(y.beginPath(),y.moveTo(i.p2c(u),e.p2c(r)),s=!0);if(d>=e.max&&m>=e.max){y.lineTo(i.p2c(u),e.p2c(e.max)),y.lineTo(i.p2c(p),e.p2c(e.max));continue}if(d<=e.min&&m<=e.min){y.lineTo(i.p2c(u),e.p2c(e.min)),y.lineTo(i.p2c(p),e.p2c(e.min));continue}var x=u,g=p;d<=m&&d<e.min&&m>=e.min?(u=(e.min-d)/(m-d)*(p-u)+u,d=e.min):m<=d&&m<e.min&&d>=e.min&&(p=(e.min-d)/(m-d)*(p-u)+u,m=e.min),d>=m&&d>e.max&&m<=e.max?(u=(e.max-d)/(m-d)*(p-u)+u,d=e.max):m>=d&&m>e.max&&d<=e.max&&(p=(e.max-d)/(m-d)*(p-u)+u,m=e.max),u!=x&&y.lineTo(i.p2c(x),e.p2c(d)),y.lineTo(i.p2c(u),e.p2c(d)),y.lineTo(i.p2c(p),e.p2c(m)),p!=g&&(y.lineTo(i.p2c(p),e.p2c(m)),y.lineTo(i.p2c(g),e.p2c(m)))}}y.save(),y.translate(C.left,C.top),y.lineJoin="round";var o=t.lines.lineWidth,n=t.shadowSize;if(o>0&&n>0){y.lineWidth=n,y.strokeStyle="rgba(0,0,0,0.1)";var r=Math.PI/18;i(t.datapoints,Math.sin(r)*(o/2+n/2),Math.cos(r)*(o/2+n/2),t.xaxis,t.yaxis),y.lineWidth=n/2,i(t.datapoints,Math.sin(r)*(o/2+n/4),Math.cos(r)*(o/2+n/4),t.xaxis,t.yaxis)}y.lineWidth=o,y.strokeStyle=t.color;var a=l(t.lines,t.color,0,P);a&&(y.fillStyle=a,e(t.datapoints,t.xaxis,t.yaxis)),o>0&&i(t.datapoints,0,0,t.xaxis,t.yaxis),y.restore()}function at(t){function i(t,i,e,o,n,r,a,l){var s=t.points,c=t.pointsize;for(var f=0;f<s.length;f+=c){var h=s[f],u=s[f+1];if(h==null||h<r.min||h>r.max||u<a.min||u>a.max)continue;y.beginPath(),h=r.p2c(h),u=a.p2c(u)+o,l=="circle"?y.arc(h,u,i,0,n?Math.PI:Math.PI*2,!1):l(y,h,u,i,n),y.closePath(),e&&(y.fillStyle=e,y.fill()),y.stroke()}}y.save(),y.translate(C.left,C.top);var e=t.points.lineWidth,o=t.shadowSize,n=t.points.radius,r=t.points.symbol;e==0&&(e=1e-4);if(e>0&&o>0){var a=o/2;y.lineWidth=a,y.strokeStyle="rgba(0,0,0,0.1)",i(t.datapoints,n,null,a+a/2,!0,t.xaxis,t.yaxis,r),y.strokeStyle="rgba(0,0,0,0.2)",i(t.datapoints,n,null,a/2,!0,t.xaxis,t.yaxis,r)}y.lineWidth=e,y.strokeStyle=t.color,i(t.datapoints,n,l(t.points,t.color),0,!1,t.xaxis,t.yaxis,r),y.restore()}function h(t,i,e,o,n,r,a,l,s,c,f,h){var u,d,p,m,x,g,v,b,k;f?(b=g=v=!0,x=!1,u=e,d=t,m=i+o,p=i+n,d<u&&(k=d,d=u,u=k,x=!0,g=!1)):(x=g=v=!0,b=!1,u=t+o,d=t+n,p=e,m=i,m<p&&(k=m,m=p,p=k,b=!0,v=!1));if(d<l.min||u>l.max||m<s.min||p>s.max)return;u<l.min&&(u=l.min,x=!1),d>l.max&&(d=l.max,g=!1),p<s.min&&(p=s.min,b=!1),m>s.max&&(m=s.max,v=!1),u=l.p2c(u),p=s.p2c(p),d=l.p2c(d),m=s.p2c(m),a&&(c.beginPath(),c.moveTo(u,p),c.lineTo(u,m),c.lineTo(d,m),c.lineTo(d,p),c.fillStyle=a(p,m),c.fill()),h>0&&(x||g||v||b)&&(c.beginPath(),c.moveTo(u,p+r),x?c.lineTo(u,m+r):c.moveTo(u,m+r),v?c.lineTo(d,m+r):c.moveTo(d,m+r),g?c.lineTo(d,p+r):c.moveTo(d,p+r),b?c.lineTo(u,p+r):c.moveTo(u,p+r),c.stroke())}function lt(f){function t(t,i,e,o,n,r,a){var l=t.points,s=t.pointsize;for(var c=0;c<l.length;c+=s){if(l[c]==null)continue;h(l[c],l[c+1],l[c+2],i,e,o,n,r,a,y,f.bars.horizontal,f.bars.lineWidth)}}y.save(),y.translate(C.left,C.top),y.lineWidth=f.bars.lineWidth,y.strokeStyle=f.color;var i;switch(f.bars.align){case"left":i=0;break;case"right":i=-f.bars.barWidth;break;case"center":i=-f.bars.barWidth/2;break;default:throw new Error("Invalid bar alignment: "+f.bars.align)}var e=f.bars.fill?function(t,i){return l(f.bars,f.color,t,i)}:null;t(f.datapoints,i,i+f.bars.barWidth,0,e,f.xaxis,f.yaxis),y.restore()}function l(t,i,e,o){var n=t.fill;if(!n)return null;if(t.fillColor)return mt(t.fillColor,e,o,i);var r=xt.color.parse(i);return r.a=typeof n=="number"?n:.4,r.normalize(),r.toString()}function st(){x.find(".legend").remove();if(!S.legend.show)return;var t=[],i=[],e=!1,o=S.legend.labelFormatter,n,r;for(var a=0;a<A.length;++a)n=A[a],n.label&&(r=o?o(n.label,n):n.label,r&&i.push({label:r,color:n.color}));if(S.legend.sorted)if(xt.isFunction(S.legend.sorted))i.sort(S.legend.sorted);else if(S.legend.sorted=="reverse")i.reverse();else{var l=S.legend.sorted!="descending";i.sort(function(t,i){return t.label==i.label?0:t.label<i.label!=l?1:-1})}for(var a=0;a<i.length;++a){var s=i[a];a%S.legend.noColumns==0&&(e&&t.push("</tr>"),t.push("<tr>"),e=!0),t.push('<td class="legendColorBox"><div style="border:1px solid '+S.legend.labelBoxBorderColor+';padding:1px"><div style="width:4px;height:0;border:5px solid '+s.color+';overflow:hidden"></div></div></td>'+'<td class="legendLabel">'+s.label+"</td>")}e&&t.push("</tr>");if(t.length==0)return;var c='<table style="font-size:smaller;color:'+S.grid.color+'">'+t.join("")+"</table>";if(S.legend.container!=null)xt(S.legend.container).html(c);else{var f="",h=S.legend.position,u=S.legend.margin;u[0]==null&&(u=[u,u]),h.charAt(0)=="n"?f+="top:"+(u[1]+C.top)+"px;":h.charAt(0)=="s"&&(f+="bottom:"+(u[1]+C.bottom)+"px;"),h.charAt(1)=="e"?f+="right:"+(u[0]+C.right)+"px;":h.charAt(1)=="w"&&(f+="left:"+(u[0]+C.left)+"px;");var d=xt('<div class="legend">'+c.replace('style="','style="position:absolute;'+f+";")+"</div>").appendTo(x);if(S.legend.backgroundOpacity!=0){var p=S.legend.backgroundColor;p==null&&(p=S.grid.backgroundColor,p&&typeof p=="string"?p=xt.color.parse(p):p=xt.color.extract(d,"background-color"),p.a=1,p=p.toString());var m=d.children();xt('<div style="position:absolute;width:'+m.width()+"px;height:"+m.height()+"px;"+f+"background-color:"+p+';"> </div>').prependTo(d).css("opacity",S.legend.backgroundOpacity)}}}function ct(t,i,e){var o=S.grid.mouseActiveRadius,n=o*o+1,r=null,a=!1,l,s,c;for(l=A.length-1;l>=0;--l){if(!e(A[l]))continue;var f=A[l],h=f.xaxis,u=f.yaxis,d=f.datapoints.points,p=h.c2p(t),m=u.c2p(i),x=o/h.scale,g=o/u.scale;c=f.datapoints.pointsize,h.options.inverseTransform&&(x=Number.MAX_VALUE),u.options.inverseTransform&&(g=Number.MAX_VALUE);if(f.lines.show||f.points.show)for(s=0;s<d.length;s+=c){var v=d[s],b=d[s+1];if(v==null)continue;if(v-p>x||v-p<-x||b-m>g||b-m<-g)continue;var k=Math.abs(h.p2c(v)-t),y=Math.abs(u.p2c(b)-i),w=k*k+y*y;w<n&&(n=w,r=[l,s/c])}if(f.bars.show&&!r){var T=f.bars.align=="left"?0:-f.bars.barWidth/2,M=T+f.bars.barWidth;for(s=0;s<d.length;s+=c){var v=d[s],b=d[s+1],C=d[s+2];if(v==null)continue;if(A[l].bars.horizontal?p<=Math.max(C,v)&&p>=Math.min(C,v)&&m>=b+T&&m<=b+M:p>=v+T&&p<=v+M&&m>=Math.min(C,b)&&m<=Math.max(C,b))r=[l,s/c]}}}return r?(l=r[0],s=r[1],c=A[l].datapoints.pointsize,{datapoint:A[l].datapoints.points.slice(s*c,(s+1)*c),dataIndex:s,series:A[l],seriesIndex:l}):null}function r(t){S.grid.hoverable&&c("plothover",t,function(t){return t["hoverable"]!=0})}function a(t){S.grid.hoverable&&c("plothover",t,function(t){return!1})}function s(t){c("plotclick",t,function(t){return t["clickable"]!=0})}function c(t,i,e){var o=k.offset(),n=i.pageX-o.left-C.left,r=i.pageY-o.top-C.top,a=f({left:n,top:r});a.pageX=i.pageX,a.pageY=i.pageY;var l=ct(n,r,e);l&&(l.pageX=parseInt(l.series.xaxis.p2c(l.datapoint[0])+o.left+C.left,10),l.pageY=parseInt(l.series.yaxis.p2c(l.datapoint[1])+o.top+C.top,10));if(S.grid.autoHighlight){for(var s=0;s<D.length;++s){var c=D[s];c.auto==t&&(!l||c.series!=l.series||c.point[0]!=l.datapoint[0]||c.point[1]!=l.datapoint[1])&&ht(c.series,c.point)}l&&ft(l.series,l.datapoint,t)}x.trigger(t,[a,l])}function u(){var t=S.interaction.redrawOverlayInterval;if(t==-1){m();return}L||(L=setTimeout(m,t))}function m(){L=null,w.save(),b.clear(),w.translate(C.left,C.top);var t,i;for(t=0;t<D.length;++t)i=D[t],i.series.bars.show?pt(i.series,i.point):dt(i.series,i.point);w.restore(),z(F.drawOverlay,[w])}function ft(t,i,e){typeof t=="number"&&(t=A[t]);if(typeof i=="number"){var o=t.datapoints.pointsize;i=t.datapoints.points.slice(o*i,o*(i+1))}var n=ut(t,i);n==-1?(D.push({series:t,point:i,auto:e}),u()):e||(D[n].auto=!1)}function ht(t,i){if(t==null&&i==null){D=[],u();return}typeof t=="number"&&(t=A[t]);if(typeof i=="number"){var e=t.datapoints.pointsize;i=t.datapoints.points.slice(e*i,e*(i+1))}var o=ut(t,i);o!=-1&&(D.splice(o,1),u())}function ut(t,i){for(var e=0;e<D.length;++e){var o=D[e];if(o.series==t&&o.point[0]==i[0]&&o.point[1]==i[1])return e}return-1}function dt(t,i){var e=i[0],o=i[1],n=t.xaxis,r=t.yaxis,a=typeof t.highlightColor=="string"?t.highlightColor:xt.color.parse(t.color).scale("a",.5).toString();if(e<n.min||e>n.max||o<r.min||o>r.max)return;var l=t.points.radius+t.points.lineWidth/2;w.lineWidth=l,w.strokeStyle=a;var s=1.5*l;e=n.p2c(e),o=r.p2c(o),w.beginPath(),t.points.symbol=="circle"?w.arc(e,o,s,0,2*Math.PI,!1):t.points.symbol(w,e,o,s,!1),w.closePath(),w.stroke()}function pt(t,i){var e=typeof t.highlightColor=="string"?t.highlightColor:xt.color.parse(t.color).scale("a",.5).toString(),o=e,n=t.bars.align=="left"?0:-t.bars.barWidth/2;w.lineWidth=t.bars.lineWidth,w.strokeStyle=e,h(i[0],i[1],i[2]||0,n,n+t.bars.barWidth,0,function(){return o},t.xaxis,t.yaxis,w,t.bars.horizontal,t.bars.lineWidth)}function mt(t,i,e,o){if(typeof t=="string")return t;var n=y.createLinearGradient(0,e,0,i);for(var r=0,a=t.colors.length;r<a;++r){var l=t.colors[r];if(typeof l!="string"){var s=xt.color.parse(o);l.brightness!=null&&(s=s.scale("rgb",l.brightness)),l.opacity!=null&&(s.a*=l.opacity),l=s.toString()}n.addColorStop(r/(a-1),l)}return n}var A=[],S={colors:["#edc240","#afd8f8","#cb4b4b","#4da74d","#9440ed"],legend:{show:!0,noColumns:1,labelFormatter:null,labelBoxBorderColor:"#ccc",container:null,position:"ne",margin:5,backgroundColor:null,backgroundOpacity:.85,sorted:null},xaxis:{show:null,position:"bottom",mode:null,font:null,color:null,tickColor:null,transform:null,inverseTransform:null,min:null,max:null,autoscaleMargin:null,ticks:null,tickFormatter:null,labelWidth:null,labelHeight:null,reserveSpace:null,tickLength:null,alignTicksWithAxis:null,tickDecimals:null,tickSize:null,minTickSize:null},yaxis:{autoscaleMargin:.02,position:"left"},xaxes:[],yaxes:[],series:{points:{show:!1,radius:3,lineWidth:2,fill:!0,fillColor:"#ffffff",symbol:"circle"},lines:{lineWidth:2,fill:!1,fillColor:null,steps:!1},bars:{show:!1,lineWidth:2,barWidth:1,fill:!0,fillColor:null,align:"left",horizontal:!1,zero:!0},shadowSize:3,highlightColor:null},grid:{show:!0,aboveData:!1,color:"#545454",backgroundColor:null,borderColor:null,tickColor:null,margin:0,labelMargin:5,axisMargin:8,borderWidth:2,minBorderMargin:null,markings:null,markingsColor:"#f4f4f4",markingsLineWidth:2,clickable:!1,hoverable:!1,autoHighlight:!0,mouseActiveRadius:10},interaction:{redrawOverlayInterval:1e3/60},hooks:{}},v=null,b=null,k=null,y=null,w=null,T=[],M=[],C={left:0,right:0,top:0,bottom:0},W=0,P=0,F={processOptions:[],processRawData:[],processDatapoints:[],processOffset:[],drawBackground:[],drawSeries:[],draw:[],bindEvents:[],drawOverlay:[],shutdown:[]},N=this;N.setData=t,N.setupGrid=i,N.draw=e,N.getPlaceholder=function(){return x},N.getCanvas=function(){return v.element},N.getPlotOffset=function(){return C},N.width=function(){return W},N.height=function(){return P},N.offset=function(){var t=k.offset();return t.left+=C.left,t.top+=C.top,t},N.getData=function(){return A},N.getAxes=function(){var e={},t;return xt.each(T.concat(M),function(t,i){i&&(e[i.direction+(i.n!=1?i.n:"")+"axis"]=i)}),e},N.getXAxes=function(){return T},N.getYAxes=function(){return M},N.c2p=f,N.p2c=H,N.getOptions=function(){return S},N.highlight=ft,N.unhighlight=ht,N.triggerRedrawOverlay=u,N.pointOffset=function(t){return{left:parseInt(T[d(t,"x")-1].p2c(+t.x)+C.left,10),top:parseInt(M[d(t,"y")-1].p2c(+t.y)+C.top,10)}},N.shutdown=Y,N.resize=function(){var t=x.width(),i=x.height();v.resize(t,i),b.resize(t,i)},N.hooks=F,R(N),j(E),V(),t(O),i(),e(),X();var D=[],L=null}function vt(t,i){return i*Math.floor(t/i)}var d=Object.prototype.hasOwnProperty;gt.prototype.resize=function(t,i){if(t<=0||i<=0)throw new Error("Invalid dimensions for plot, width = "+t+", height = "+i);var e=this.element,o=this.context,n=this.pixelRatio;this.width!=t&&(e.width=t*n,e.style.width=t+"px",this.width=t),this.height!=i&&(e.height=i*n,e.style.height=i+"px",this.height=i),o.restore(),o.save(),o.scale(n,n)},gt.prototype.clear=function(){this.context.clearRect(0,0,this.width,this.height)},gt.prototype.render=function(){var t=this._textCache;for(var i in t)if(d.call(t,i)){var e=this.getTextLayer(i),o=t[i];e.hide();for(var n in o)if(d.call(o,n)){var r=o[n];for(var a in r)if(d.call(r,a)){var l=r[a].positions;for(var s=0,c;c=l[s];s++)c.active?c.rendered||(e.append(c.element),c.rendered=!0):(l.splice(s--,1),c.rendered&&c.element.detach());l.length==0&&delete r[a]}}e.show()}},gt.prototype.getTextLayer=function(t){var i=this.text[t];return i==null&&(this.textContainer==null&&(this.textContainer=xt("<div class='flot-text'></div>").css({position:"absolute",top:0,left:0,bottom:0,right:0,"font-size":"smaller",color:"#545454"}).insertAfter(this.element)),i=this.text[t]=xt("<div></div>").addClass(t).css({position:"absolute",top:0,left:0,bottom:0,right:0}).appendTo(this.textContainer)),i},gt.prototype.getTextInfo=function(t,i,e,o,n){var r,a,l,s;i=""+i,typeof e=="object"?r=e.style+" "+e.variant+" "+e.weight+" "+e.size+"px/"+e.lineHeight+"px "+e.family:r=e,a=this._textCache[t],a==null&&(a=this._textCache[t]={}),l=a[r],l==null&&(l=a[r]={}),s=l[i];if(s==null){var c=xt("<div></div>").html(i).css({position:"absolute","max-width":n,top:-9999}).appendTo(this.getTextLayer(t));typeof e=="object"?c.css({font:r,color:e.color}):typeof e=="string"&&c.addClass(e),s=l[i]={width:c.outerWidth(!0),height:c.outerHeight(!0),element:c,positions:[]},c.detach()}return s},gt.prototype.addText=function(t,i,e,o,n,r,a,l,s){var c=this.getTextInfo(t,o,n,r,a),f=c.positions;l=="center"?i-=c.width/2:l=="right"&&(i-=c.width),s=="middle"?e-=c.height/2:s=="bottom"&&(e-=c.height);for(var h=0,u;u=f[h];h++)if(u.x==i&&u.y==e){u.active=!0;return}u={active:!0,rendered:!1,element:f.length?c.element.clone():c.element,x:i,y:e},f.push(u),u.element.css({top:Math.round(e),left:Math.round(i),"text-align":l})},gt.prototype.removeText=function(t,i,e,o,n,r){if(o==null){var a=this._textCache[t];if(a!=null)for(var l in a)if(d.call(a,l)){var s=a[l];for(var c in s)if(d.call(s,c)){var f=s[c].positions;for(var h=0,u;u=f[h];h++)u.active=!1}}}else{var f=this.getTextInfo(t,o,n,r).positions;for(var h=0,u;u=f[h];h++)u.x==i&&u.y==e&&(u.active=!1)}},xt.plot=function(t,i,e){var o=new n(xt(t),i,e,xt.plot.plugins);return o},xt.plot.version="0.8.1",xt.plot.plugins=[],xt.fn.plot=function(t,i){return this.each(function(){xt.plot(this,t,i)})}}(jQuery);
if(!document.createElement("canvas").getContext){(function(){var P=Math;var w=P.round;var v=P.sin;var _=P.cos;var T=P.abs;var R=P.sqrt;var O=10;var p=O/2;var B=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function M(){return this.context_||(this.context_=new x(this))}var a=Array.prototype.slice;function I(e,t,i){var r=a.call(arguments,2);return function(){return e.apply(t,r.concat(a.call(arguments)))}}function g(e){return String(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;")}function i(e,t,i){if(!e.namespaces[t]){e.namespaces.add(t,i,"#default#VML")}}function r(e){i(e,"g_vml_","urn:schemas-microsoft-com:vml");i(e,"g_o_","urn:schemas-microsoft-com:office:office");if(!e.styleSheets.ex_canvas_){var t=e.createStyleSheet();t.owningElement.id="ex_canvas_";t.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}r(document);var e={init:function(e){var t=e||document;t.createElement("canvas");t.attachEvent("onreadystatechange",I(this.init_,this,t))},init_:function(e){var t=e.getElementsByTagName("canvas");for(var i=0;i<t.length;i++){this.initElement(t[i])}},initElement:function(e){if(!e.getContext){e.getContext=M;r(e.ownerDocument);e.innerHTML="";e.attachEvent("onpropertychange",z);e.attachEvent("onresize",H);var t=e.attributes;if(t.width&&t.width.specified){e.style.width=t.width.nodeValue+"px"}else{e.width=e.clientWidth}if(t.height&&t.height.specified){e.style.height=t.height.nodeValue+"px"}else{e.height=e.clientHeight}}return e}};function z(e){var t=e.srcElement;switch(e.propertyName){case"width":t.getContext().clearRect();t.style.width=t.attributes.width.nodeValue+"px";t.firstChild.style.width=t.clientWidth+"px";break;case"height":t.getContext().clearRect();t.style.height=t.attributes.height.nodeValue+"px";t.firstChild.style.height=t.clientHeight+"px";break}}function H(e){var t=e.srcElement;if(t.firstChild){t.firstChild.style.width=t.clientWidth+"px";t.firstChild.style.height=t.clientHeight+"px"}}e.init();var h=[];for(var t=0;t<16;t++){for(var n=0;n<16;n++){h[t*16+n]=t.toString(16)+n.toString(16)}}function l(){return[[1,0,0],[0,1,0],[0,0,1]]}function o(e,t){var i=l();for(var r=0;r<3;r++){for(var a=0;a<3;a++){var n=0;for(var s=0;s<3;s++){n+=e[r][s]*t[s][a]}i[r][a]=n}}return i}function s(e,t){t.fillStyle=e.fillStyle;t.lineCap=e.lineCap;t.lineJoin=e.lineJoin;t.lineWidth=e.lineWidth;t.miterLimit=e.miterLimit;t.shadowBlur=e.shadowBlur;t.shadowColor=e.shadowColor;t.shadowOffsetX=e.shadowOffsetX;t.shadowOffsetY=e.shadowOffsetY;t.strokeStyle=e.strokeStyle;t.globalAlpha=e.globalAlpha;t.font=e.font;t.textAlign=e.textAlign;t.textBaseline=e.textBaseline;t.arcScaleX_=e.arcScaleX_;t.arcScaleY_=e.arcScaleY_;t.lineScale_=e.lineScale_}var W={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function c(e){var t=e.indexOf("(",3);var i=e.indexOf(")",t+1);var r=e.substring(t+1,i).split(",");if(r.length!=4||e.charAt(3)!="a"){r[3]=1}return r}function u(e){return parseFloat(e)/100}function f(e,t,i){return Math.min(i,Math.max(t,e))}function q(e){var t,i,r,a,n,s;a=parseFloat(e[0])/360%360;if(a<0){a++}n=f(u(e[1]),0,1);s=f(u(e[2]),0,1);if(n==0){t=i=r=s}else{var l=s<.5?s*(1+n):s+n-s*n;var o=2*s-l;t=d(o,l,a+1/3);i=d(o,l,a);r=d(o,l,a-1/3)}return"#"+h[Math.floor(t*255)]+h[Math.floor(i*255)]+h[Math.floor(r*255)]}function d(e,t,i){if(i<0){i++}if(i>1){i--}if(6*i<1){return e+(t-e)*6*i}else{if(2*i<1){return t}else{if(3*i<2){return e+(t-e)*(2/3-i)*6}else{return e}}}}var y={};function N(e){if(e in y){return y[e]}var t,i=1;e=String(e);if(e.charAt(0)=="#"){t=e}else{if(/^rgb/.test(e)){var r=c(e);var t="#",a;for(var n=0;n<3;n++){if(r[n].indexOf("%")!=-1){a=Math.floor(u(r[n])*255)}else{a=+r[n]}t+=h[f(a,0,255)]}i=+r[3]}else{if(/^hsl/.test(e)){var r=c(e);t=q(r);i=r[3]}else{t=W[e]||e}}}return y[e]={color:t,alpha:i}}var m={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var F={};function V(e){if(F[e]){return F[e]}var t=document.createElement("div");var i=t.style;try{i.font=e}catch(e){}return F[e]={style:i.fontStyle||m.style,variant:i.fontVariant||m.variant,weight:i.fontWeight||m.weight,size:i.fontSize||m.size,family:i.fontFamily||m.family}}function j(e,t){var i={};for(var r in e){i[r]=e[r]}var a=parseFloat(t.currentStyle.fontSize),n=parseFloat(e.size);if(typeof e.size=="number"){i.size=e.size}else{if(e.size.indexOf("px")!=-1){i.size=n}else{if(e.size.indexOf("em")!=-1){i.size=a*n}else{if(e.size.indexOf("%")!=-1){i.size=a/100*n}else{if(e.size.indexOf("pt")!=-1){i.size=n/.75}else{i.size=a}}}}}i.size*=.981;return i}function G(e){return e.style+" "+e.variant+" "+e.weight+" "+e.size+"px "+e.family}var U={butt:"flat",round:"round"};function J(e){return U[e]||"square"}function x(e){this.m_=l();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=O*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=e;var t="width:"+e.clientWidth+"px;height:"+e.clientHeight+"px;overflow:hidden;position:absolute";var i=e.ownerDocument.createElement("div");i.style.cssText=t;e.appendChild(i);var r=i.cloneNode(false);r.style.backgroundColor="red";r.style.filter="alpha(opacity=0)";e.appendChild(r);this.element_=i;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var E=x.prototype;E.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};E.beginPath=function(){this.currentPath_=[]};E.moveTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"moveTo",x:i.x,y:i.y});this.currentX_=i.x;this.currentY_=i.y};E.lineTo=function(e,t){var i=L(this,e,t);this.currentPath_.push({type:"lineTo",x:i.x,y:i.y});this.currentX_=i.x;this.currentY_=i.y};E.bezierCurveTo=function(e,t,i,r,a,n){var s=L(this,a,n);var l=L(this,e,t);var o=L(this,i,r);A(this,l,o,s)};function A(e,t,i,r){e.currentPath_.push({type:"bezierCurveTo",cp1x:t.x,cp1y:t.y,cp2x:i.x,cp2y:i.y,x:r.x,y:r.y});e.currentX_=r.x;e.currentY_=r.y}E.quadraticCurveTo=function(e,t,i,r){var a=L(this,e,t);var n=L(this,i,r);var s={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};var l={x:s.x+(n.x-this.currentX_)/3,y:s.y+(n.y-this.currentY_)/3};A(this,s,l,n)};E.arc=function(e,t,i,r,a,n){i*=O;var s=n?"at":"wa";var l=e+_(r)*i-p;var o=t+v(r)*i-p;var h=e+_(a)*i-p;var c=t+v(a)*i-p;if(l==h&&!n){l+=.125}var u=L(this,e,t);var f=L(this,l,o);var d=L(this,h,c);this.currentPath_.push({type:s,x:u.x,y:u.y,radius:i,xStart:f.x,yStart:f.y,xEnd:d.x,yEnd:d.y})};E.rect=function(e,t,i,r){this.moveTo(e,t);this.lineTo(e+i,t);this.lineTo(e+i,t+r);this.lineTo(e,t+r);this.closePath()};E.strokeRect=function(e,t,i,r){var a=this.currentPath_;this.beginPath();this.moveTo(e,t);this.lineTo(e+i,t);this.lineTo(e+i,t+r);this.lineTo(e,t+r);this.closePath();this.stroke();this.currentPath_=a};E.fillRect=function(e,t,i,r){var a=this.currentPath_;this.beginPath();this.moveTo(e,t);this.lineTo(e+i,t);this.lineTo(e+i,t+r);this.lineTo(e,t+r);this.closePath();this.fill();this.currentPath_=a};E.createLinearGradient=function(e,t,i,r){var a=new Y("gradient");a.x0_=e;a.y0_=t;a.x1_=i;a.y1_=r;return a};E.createRadialGradient=function(e,t,i,r,a,n){var s=new Y("gradientradial");s.x0_=e;s.y0_=t;s.r0_=i;s.x1_=r;s.y1_=a;s.r1_=n;return s};E.drawImage=function(e,t){var i,r,a,n,s,l,o,h;var c=e.runtimeStyle.width;var u=e.runtimeStyle.height;e.runtimeStyle.width="auto";e.runtimeStyle.height="auto";var f=e.width;var d=e.height;e.runtimeStyle.width=c;e.runtimeStyle.height=u;if(arguments.length==3){i=arguments[1];r=arguments[2];s=l=0;o=a=f;h=n=d}else{if(arguments.length==5){i=arguments[1];r=arguments[2];a=arguments[3];n=arguments[4];s=l=0;o=f;h=d}else{if(arguments.length==9){s=arguments[1];l=arguments[2];o=arguments[3];h=arguments[4];i=arguments[5];r=arguments[6];a=arguments[7];n=arguments[8]}else{throw Error("Invalid number of arguments")}}}var v=L(this,i,r);var _=o/2;var p=h/2;var y=[];var g=10;var m=10;y.push(" <g_vml_:group",' coordsize="',O*g,",",O*m,'"',' coordorigin="0,0"',' style="width:',g,"px;height:",m,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var F=[];F.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",w(v.x/O),",","Dy=",w(v.y/O),"");var x=v;var E=L(this,i+a,r);var A=L(this,i,r+n);var b=L(this,i+a,r+n);x.x=P.max(x.x,E.x,A.x,b.x);x.y=P.max(x.y,E.y,A.y,b.y);y.push("padding:0 ",w(x.x/O),"px ",w(x.y/O),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",F.join(""),", sizingmethod='clip');")}else{y.push("top:",w(v.y/O),"px;left:",w(v.x/O),"px;")}y.push(' ">','<g_vml_:image src="',e.src,'"',' style="width:',O*a,"px;"," height:",O*n,'px"',' cropleft="',s/f,'"',' croptop="',l/d,'"',' cropright="',(f-s-o)/f,'"',' cropbottom="',(d-l-h)/d,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",y.join(""))};E.stroke=function(e){var t=10;var i=10;var r=5e3;var a={x:null,y:null};var n={x:null,y:null};for(var s=0;s<this.currentPath_.length;s+=r){var l=[];var o=false;l.push("<g_vml_:shape",' filled="',!!e,'"',' style="position:absolute;width:',t,"px;height:",i,'px;"',' coordorigin="0,0"',' coordsize="',O*t,",",O*i,'"',' stroked="',!e,'"',' path="');var h=false;for(var c=s;c<Math.min(s+r,this.currentPath_.length);c++){if(c%r==0&&c>0){l.push(" m ",w(this.currentPath_[c-1].x),",",w(this.currentPath_[c-1].y))}var u=this.currentPath_[c];var f;switch(u.type){case"moveTo":f=u;l.push(" m ",w(u.x),",",w(u.y));break;case"lineTo":l.push(" l ",w(u.x),",",w(u.y));break;case"close":l.push(" x ");u=null;break;case"bezierCurveTo":l.push(" c ",w(u.cp1x),",",w(u.cp1y),",",w(u.cp2x),",",w(u.cp2y),",",w(u.x),",",w(u.y));break;case"at":case"wa":l.push(" ",u.type," ",w(u.x-this.arcScaleX_*u.radius),",",w(u.y-this.arcScaleY_*u.radius)," ",w(u.x+this.arcScaleX_*u.radius),",",w(u.y+this.arcScaleY_*u.radius)," ",w(u.xStart),",",w(u.yStart)," ",w(u.xEnd),",",w(u.yEnd));break}if(u){if(a.x==null||u.x<a.x){a.x=u.x}if(n.x==null||u.x>n.x){n.x=u.x}if(a.y==null||u.y<a.y){a.y=u.y}if(n.y==null||u.y>n.y){n.y=u.y}}}l.push(' ">');if(!e){b(this,l)}else{Z(this,l,a,n)}l.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",l.join(""))}};function b(e,t){var i=N(e.strokeStyle);var r=i.color;var a=i.alpha*e.globalAlpha;var n=e.lineScale_*e.lineWidth;if(n<1){a*=n}t.push("<g_vml_:stroke",' opacity="',a,'"',' joinstyle="',e.lineJoin,'"',' miterlimit="',e.miterLimit,'"',' endcap="',J(e.lineCap),'"',' weight="',n,'px"',' color="',r,'" />')}function Z(e,t,i,r){var a=e.fillStyle;var n=e.arcScaleX_;var s=e.arcScaleY_;var l=r.x-i.x;var o=r.y-i.y;if(a instanceof Y){var h=0;var c={x:0,y:0};var u=0;var f=1;if(a.type_=="gradient"){var d=a.x0_/n;var v=a.y0_/s;var _=a.x1_/n;var p=a.y1_/s;var y=L(e,d,v);var g=L(e,_,p);var m=g.x-y.x;var F=g.y-y.y;h=Math.atan2(m,F)*180/Math.PI;if(h<0){h+=360}if(h<1e-6){h=0}}else{var y=L(e,a.x0_,a.y0_);c={x:(y.x-i.x)/l,y:(y.y-i.y)/o};l/=n*O;o/=s*O;var x=P.max(l,o);u=2*a.r0_/x;f=2*a.r1_/x-u}var E=a.colors_;E.sort(function(e,t){return e.offset-t.offset});var A=E.length;var b=E[0].color;var w=E[A-1].color;var C=E[0].alpha*e.globalAlpha;var D=E[A-1].alpha*e.globalAlpha;var S=[];for(var k=0;k<A;k++){var T=E[k];S.push(T.offset*f+u+" "+T.color)}t.push('<g_vml_:fill type="',a.type_,'"',' method="none" focus="100%"',' color="',b,'"',' color2="',w,'"',' colors="',S.join(","),'"',' opacity="',D,'"',' g_o_:opacity2="',C,'"',' angle="',h,'"',' focusposition="',c.x,",",c.y,'" />')}else{if(a instanceof X){if(l&&o){var R=-i.x;var B=-i.y;t.push("<g_vml_:fill",' position="',R/l*n*n,",",B/o*s*s,'"',' type="tile"',' src="',a.src_,'" />')}}else{var M=N(e.fillStyle);var I=M.color;var z=M.alpha*e.globalAlpha;t.push('<g_vml_:fill color="',I,'" opacity="',z,'" />')}}}E.fill=function(){this.stroke(true)};E.closePath=function(){this.currentPath_.push({type:"close"})};function L(e,t,i){var r=e.m_;return{x:O*(t*r[0][0]+i*r[1][0]+r[2][0])-p,y:O*(t*r[0][1]+i*r[1][1]+r[2][1])-p}}E.save=function(){var e={};s(this,e);this.aStack_.push(e);this.mStack_.push(this.m_);this.m_=o(l(),this.m_)};E.restore=function(){if(this.aStack_.length){s(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function Q(e){return isFinite(e[0][0])&&isFinite(e[0][1])&&isFinite(e[1][0])&&isFinite(e[1][1])&&isFinite(e[2][0])&&isFinite(e[2][1])}function C(e,t,i){if(!Q(t)){return}e.m_=t;if(i){var r=t[0][0]*t[1][1]-t[0][1]*t[1][0];e.lineScale_=R(T(r))}}E.translate=function(e,t){var i=[[1,0,0],[0,1,0],[e,t,1]];C(this,o(i,this.m_),false)};E.rotate=function(e){var t=_(e);var i=v(e);var r=[[t,i,0],[-i,t,0],[0,0,1]];C(this,o(r,this.m_),false)};E.scale=function(e,t){this.arcScaleX_*=e;this.arcScaleY_*=t;var i=[[e,0,0],[0,t,0],[0,0,1]];C(this,o(i,this.m_),true)};E.transform=function(e,t,i,r,a,n){var s=[[e,t,0],[i,r,0],[a,n,1]];C(this,o(s,this.m_),true)};E.setTransform=function(e,t,i,r,a,n){var s=[[e,t,0],[i,r,0],[a,n,1]];C(this,s,true)};E.drawText_=function(e,t,i,r,a){var n=this.m_,s=1e3,l=0,o=s,h={x:0,y:0},c=[];var u=j(V(this.font),this.element_);var f=G(u);var d=this.element_.currentStyle;var v=this.textAlign.toLowerCase();switch(v){case"left":case"center":case"right":break;case"end":v=d.direction=="ltr"?"right":"left";break;case"start":v=d.direction=="rtl"?"right":"left";break;default:v="left"}switch(this.textBaseline){case"hanging":case"top":h.y=u.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":h.y=-u.size/2.25;break}switch(v){case"right":l=s;o=.05;break;case"center":l=o=s/2;break}var _=L(this,t+h.x,i+h.y);c.push('<g_vml_:line from="',-l,' 0" to="',o,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!a,'" stroked="',!!a,'" style="position:absolute;width:1px;height:1px;">');if(a){b(this,c)}else{Z(this,c,{x:-l,y:0},{x:o,y:u.size})}var p=n[0][0].toFixed(3)+","+n[1][0].toFixed(3)+","+n[0][1].toFixed(3)+","+n[1][1].toFixed(3)+",0,0";var y=w(_.x/O)+","+w(_.y/O);c.push('<g_vml_:skew on="t" matrix="',p,'" ',' offset="',y,'" origin="',l,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',g(e),'" style="v-text-align:',v,";font:",g(f),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",c.join(""))};E.fillText=function(e,t,i,r){this.drawText_(e,t,i,r,false)};E.strokeText=function(e,t,i,r){this.drawText_(e,t,i,r,true)};E.measureText=function(e){if(!this.textMeasureEl_){var t='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",t);this.textMeasureEl_=this.element_.lastChild}var i=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(i.createTextNode(e));return{width:this.textMeasureEl_.offsetWidth}};E.clip=function(){};E.arcTo=function(){};E.createPattern=function(e,t){return new X(e,t)};function Y(e){this.type_=e;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}Y.prototype.addColorStop=function(e,t){t=N(t);this.colors_.push({offset:e,color:t.color,alpha:t.alpha})};function X(e,t){K(e);switch(t){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=t;break;default:D("SYNTAX_ERR")}this.src_=e.src;this.width_=e.width;this.height_=e.height}function D(e){throw new S(e)}function K(e){if(!e||e.nodeType!=1||e.tagName!="IMG"){D("TYPE_MISMATCH_ERR")}if(e.readyState!="complete"){D("INVALID_STATE_ERR")}}function S(e){this.code=this[e];this.message=e+": DOM Exception "+this.code}var k=S.prototype=new Error;k.INDEX_SIZE_ERR=1;k.DOMSTRING_SIZE_ERR=2;k.HIERARCHY_REQUEST_ERR=3;k.WRONG_DOCUMENT_ERR=4;k.INVALID_CHARACTER_ERR=5;k.NO_DATA_ALLOWED_ERR=6;k.NO_MODIFICATION_ALLOWED_ERR=7;k.NOT_FOUND_ERR=8;k.NOT_SUPPORTED_ERR=9;k.INUSE_ATTRIBUTE_ERR=10;k.INVALID_STATE_ERR=11;k.SYNTAX_ERR=12;k.INVALID_MODIFICATION_ERR=13;k.NAMESPACE_ERR=14;k.INVALID_ACCESS_ERR=15;k.VALIDATION_ERR=16;k.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=e;CanvasRenderingContext2D=x;CanvasGradient=Y;CanvasPattern=X;DOMException=S})()}
jQuery(function(t){if(t("#betting-tips-league-selector-wrapper").length){t('a[href*="#anchor-competition"]').on("click",function(e){e.preventDefault();i();t("html,body").animate({scrollTop:t(t(this).attr("href")).offset().top-100},500,"linear")});t("#betting-tips-league-selector-mobile-btn").on("click",function(e){e.preventDefault();o()});t("#betting-tips-league-selector-close-btn").on("click",function(e){e.preventDefault();i()});t("#betting-tips-league-selector_lightbox_background").on("click",function(e){e.preventDefault();if(t(this).css("opacity")>0){i()}});t(window).on("resize",function(){if(t(this).width()>991){i()}});function o(){if(!t("#betting-tips-league-selector-wrapper").hasClass("modal")){t("#betting-tips-league-selector-wrapper").addClass("modal")}if(!t("body").hasClass("no-scrolling")){t("body").addClass("no-scrolling")}}function i(){if(t("#betting-tips-league-selector-wrapper").hasClass("modal")){t("#betting-tips-league-selector-wrapper").removeClass("modal")}if(t("body").hasClass("no-scrolling")){t("body").removeClass("no-scrolling")}}}});
jQuery(function(){Object.keys(window.matchFromCurve||{}).forEach(function(e){const t=window.matchFromCurve[e];function o(o){"use strict";if(typeof window.orientation!=="undefined"){jQuery(window).on("orientationchange",function(){if(window.orientation===0){o("portrait")}else{o("landscape")}})}else if(window.matchMedia){var e=window.matchMedia("(orientation: portrait)");e.addListener(function(e){if(e.matches){o("portrait")}else{o("landscape")}})}else{console.info("Sry, your browser does not support ScreenRotation API, nor matchMedia. Please consider upgrading.")}}const i=jQuery(e);const n=jQuery(".betting-tips-form-curve-container",i);const r=jQuery(".betting-tips-form-curve-tooltip",i);let s;const a={2:"#2ecc71",1:"#898989",0:"#ed1c49"};let c=t.dataPoints;s=[{points:{show:false},data:c}];for(let e in c){s.push({color:a[c[e][1]],data:[c[e]]})}o(l);setTimeout(function(){l()},500);n.bind("plothover",function(e,o,t){return;if(t){const e=jQuery(".betting-tips-form-curve-tooltip-"+(t.seriesIndex-1),i);if(e.hasClass("none")){e.css({position:"absolute",top:t.pageY+"px",left:t.pageX+"px"}).removeClass("none").tooltipster("reposition")}e.tooltipster("show")}else{jQuery(".betting-tips-form-curve-tooltip").tooltipster("hide")}});function l(e){var o=t.maxValue;if(n.height()>0){jQuery.plot(n,s,{colors:["#ccc"],yaxis:{min:0,max:2,ticks:[[0,t.loseAcronym],[1,""],[2,t.winAcronym]],clickable:true},xaxis:{show:false,min:0,max:t.maxValue,clickable:true},series:{lines:{show:true},points:{show:true,lineWidth:3,radius:5,fillColor:"#fff"},shadowSize:0},lines:{lineWidth:3},grid:{borderColor:"#e0e0e0",borderWidth:{top:0,left:1,bottom:0,right:0},hoverable:true,mouseActiveRadius:10,color:"#888"}})}else{console.warn("Skipped rendering form curve due to invalid height on chart-ctr");setTimeout(function(){l(e)},500)}}})});
function sortStandingTable(s,e){let t,a,n,r,i,o,l,c,g=0,T="";t=document.getElementById(e);const f=t.getElementsByTagName("TH");for(let e=0;e<f.length;e++){const m=f[e];if(m.classList.contains("sorting_asc")){m.classList.remove("sorting_asc");T="sorting_desc"}else if(m.classList.contains("sorting_desc")){m.classList.remove("sorting_desc");T="sorting_asc"}}t.getElementsByTagName("TH")[s].classList.add(T);n=true;c="asc";while(n){n=false;a=t.rows;for(r=1;r<a.length-1;r++){let e=a[r].getElementsByTagName("TH")[s];l=false;i=a[r].getElementsByTagName("TD")[s];o=a[r+1].getElementsByTagName("TD")[s];if(c=="asc"){if(i.innerHTML.toLowerCase()>o.innerHTML.toLowerCase()){l=true;break}}else if(c=="desc"){if(i.innerHTML.toLowerCase()<o.innerHTML.toLowerCase()){l=true;break}}}if(l){a[r].parentNode.insertBefore(a[r+1],a[r]);n=true;g++}else{if(g==0&&c=="asc"){c="desc";n=true}}}}