Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahoppppppp / assets / js / | server ip : 172.67.156.115 your ip : 172.70.127.104 H O M E |
Filename | /var/www/html/sman1baleendahoppppppp/assets/js/backend.min.js |
Size | 286.74 kb |
Permission | rw-r--r-- |
Owner | root : root |
Create time | 04-May-2025 17:23 |
Last modified | 04-May-2025 17:23 |
Last accessed | 07-Jul-2025 03:09 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
if(!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(e.document)return t(e);throw new Error("jQuery requires a window with a document")}:t(e)}("undefined"!=typeof window?window:this,function(x,I){"use strict";function y(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item}function g(e){return null!=e&&e===e.window}var t=[],H=Object.getPrototypeOf,a=t.slice,L=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},R=t.push,P=t.indexOf,q={},F=q.toString,B=q.hasOwnProperty,z=B.toString,V=z.call(Object),m={},T=x.document,W={type:!0,src:!0,nonce:!0,noModule:!0};function Y(e,t,n){var i,o,s=(n=n||T).createElement("script");if(s.text=e,t)for(i in W)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&s.setAttribute(i,o);n.head.appendChild(s).parentNode.removeChild(s)}function f(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?q[F.call(e)]||"object":typeof e}var e="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function Q(e){var t=!!e&&"length"in e&&e.length,n=f(e);return!y(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&0<t&&t-1 in e)}C.fn=C.prototype={jquery:e,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){e=C.merge(this.constructor(),e);return e.prevObject=this,e},each:function(e){return C.each(this,e)},map:function(n){return this.pushStack(C.map(this,function(e,t){return n.call(e,t,e)}))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,function(e,t){return(t+1)%2}))},odd:function(){return this.pushStack(C.grep(this,function(e,t){return t%2}))},eq:function(e){var t=this.length,e=+e+(e<0?t:0);return this.pushStack(0<=e&&e<t?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:R,sort:t.sort,splice:t.splice},C.extend=C.fn.extend=function(){var e,t,n,i,o,s=arguments[0]||{},r=1,a=arguments.length,l=!1;for("boolean"==typeof s&&(l=s,s=arguments[r]||{},r++),"object"==typeof s||y(s)||(s={}),r===a&&(s=this,r--);r<a;r++)if(null!=(e=arguments[r]))for(t in e)n=e[t],"__proto__"!==t&&s!==n&&(l&&n&&(C.isPlainObject(n)||(i=Array.isArray(n)))?(o=s[t],o=i&&!Array.isArray(o)?[]:i||C.isPlainObject(o)?o:{},i=!1,s[t]=C.extend(l,o,n)):void 0!==n&&(s[t]=n));return s},C.extend({expando:"jQuery"+(e+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){return!(!e||"[object Object]"!==F.call(e))&&(!(e=H(e))||"function"==typeof(e=B.call(e,"constructor")&&e.constructor)&&z.call(e)===V)},isEmptyObject:function(e){for(var t in e)return!1;return!0},globalEval:function(e,t,n){Y(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(Q(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},makeArray:function(e,t){t=t||[];return null!=e&&(Q(Object(e))?C.merge(t,"string"==typeof e?[e]:e):R.call(t,e)),t},inArray:function(e,t,n){return null==t?-1:P.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,s=e.length,r=!n;o<s;o++)!t(e[o],o)!=r&&i.push(e[o]);return i},map:function(e,t,n){var i,o,s=0,r=[];if(Q(e))for(i=e.length;s<i;s++)null!=(o=t(e[s],s,n))&&r.push(o);else for(s in e)null!=(o=t(e[s],s,n))&&r.push(o);return L(r)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=t[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){q["[object "+t+"]"]=t.toLowerCase()});function i(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(n))break;i.push(e)}return i}function K(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}var e=function(I){function u(e,t){return e="0x"+e.slice(1)-65536,t||(e<0?String.fromCharCode(65536+e):String.fromCharCode(e>>10|55296,1023&e|56320))}function H(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}function L(){T()}var e,h,w,s,R,p,P,q,x,l,c,T,C,n,k,f,i,o,g,D="sizzle"+ +new Date,d=I.document,_=0,F=0,B=O(),z=O(),V=O(),m=O(),W=function(e,t){return e===t&&(c=!0),0},Y={}.hasOwnProperty,t=[],Q=t.pop,K=t.push,S=t.push,G=t.slice,y=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},X="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",a="(?:\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Z="\\["+r+"*("+a+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+a+"))|)"+r+"*\\]",J=":("+a+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Z+")*)|.*)\\)|)",ee=new RegExp(r+"+","g"),v=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),te=new RegExp("^"+r+"*,"+r+"*"),ne=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),ie=new RegExp(r+"|>"),oe=new RegExp(J),se=new RegExp("^"+a+"$"),b={ID:new RegExp("^#("+a+")"),CLASS:new RegExp("^\\.("+a+")"),TAG:new RegExp("^("+a+"|[*])"),ATTR:new RegExp("^"+Z),PSEUDO:new RegExp("^"+J),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+X+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},re=/HTML$/i,ae=/^(?:input|select|textarea|button)$/i,le=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,ce=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,de=/[+~]/,A=new RegExp("\\\\[\\da-fA-F]{1,6}"+r+"?|\\\\([^\\r\\n\\f])","g"),ue=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,he=ye(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{S.apply(t=G.call(d.childNodes),d.childNodes),t[d.childNodes.length].nodeType}catch(e){S={apply:t.length?function(e,t){K.apply(e,G.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function E(t,e,n,i){var o,s,r,a,l,c,d=e&&e.ownerDocument,u=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==u&&9!==u&&11!==u)return n;if(!i&&(T(e),e=e||C,k)){if(11!==u&&(a=ce.exec(t)))if(o=a[1]){if(9===u){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(d&&(c=d.getElementById(o))&&g(e,c)&&c.id===o)return n.push(c),n}else{if(a[2])return S.apply(n,e.getElementsByTagName(t)),n;if((o=a[3])&&h.getElementsByClassName&&e.getElementsByClassName)return S.apply(n,e.getElementsByClassName(o)),n}if(h.qsa&&!m[t+" "]&&(!f||!f.test(t))&&(1!==u||"object"!==e.nodeName.toLowerCase())){if(c=t,d=e,1===u&&(ie.test(t)||ne.test(t))){for((d=de.test(t)&&me(e.parentNode)||e)===e&&h.scope||((r=e.getAttribute("id"))?r=r.replace(ue,H):e.setAttribute("id",r=D)),s=(l=p(t)).length;s--;)l[s]=(r?"#"+r:":scope")+" "+U(l[s]);c=l.join(",")}try{return S.apply(n,d.querySelectorAll(c)),n}catch(e){m(t,!0)}finally{r===D&&e.removeAttribute("id")}}}return q(t.replace(v,"$1"),e,n,i)}function O(){var n=[];function i(e,t){return n.push(e+" ")>w.cacheLength&&delete i[n.shift()],i[e+" "]=t}return i}function M(e){return e[D]=!0,e}function j(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t)}}function pe(e,t){for(var n=e.split("|"),i=n.length;i--;)w.attrHandle[n[i]]=t}function fe(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&he(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function N(r){return M(function(s){return s=+s,M(function(e,t){for(var n,i=r([],e.length,s),o=i.length;o--;)e[n=i[o]]&&(e[n]=!(t[n]=e[n]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in h=E.support={},R=E.isXML=function(e){var t=e&&e.namespaceURI,e=e&&(e.ownerDocument||e).documentElement;return!re.test(t||e&&e.nodeName||"HTML")},T=E.setDocument=function(e){var e=e?e.ownerDocument||e:d;return e!=C&&9===e.nodeType&&e.documentElement&&(n=(C=e).documentElement,k=!R(C),d!=C&&(e=C.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",L,!1):e.attachEvent&&e.attachEvent("onunload",L)),h.scope=j(function(e){return n.appendChild(e).appendChild(C.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),h.attributes=j(function(e){return e.className="i",!e.getAttribute("className")}),h.getElementsByTagName=j(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),h.getElementsByClassName=$.test(C.getElementsByClassName),h.getById=j(function(e){return n.appendChild(e).id=D,!C.getElementsByName||!C.getElementsByName(D).length}),h.getById?(w.filter.ID=function(e){var t=e.replace(A,u);return function(e){return e.getAttribute("id")===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k)return(t=t.getElementById(e))?[t]:[]}):(w.filter.ID=function(e){var t=e.replace(A,u);return function(e){e=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return e&&e.value===t}},w.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,i,o,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(o=t.getElementsByName(e),i=0;s=o[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),w.find.TAG=h.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):h.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,s=t.getElementsByTagName(e);if("*"!==e)return s;for(;n=s[o++];)1===n.nodeType&&i.push(n);return i},w.find.CLASS=h.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},i=[],f=[],(h.qsa=$.test(C.querySelectorAll))&&(j(function(e){var t;n.appendChild(e).innerHTML="<a id='"+D+"'></a><select id='"+D+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+r+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+r+"*(?:value|"+X+")"),e.querySelectorAll("[id~="+D+"-]").length||f.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||f.push("\\["+r+"*name"+r+"*="+r+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+D+"+*").length||f.push(".#.+[+~]"),e.querySelectorAll("\\\f"),f.push("[\\r\\n\\f]")}),j(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+r+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),n.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(h.matchesSelector=$.test(o=n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.oMatchesSelector||n.msMatchesSelector))&&j(function(e){h.disconnectedMatch=o.call(e,"*"),o.call(e,"[s!='']:x"),i.push("!=",J)}),f=f.length&&new RegExp(f.join("|")),i=i.length&&new RegExp(i.join("|")),e=$.test(n.compareDocumentPosition),g=e||$.test(n.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,t=t&&t.parentNode;return e===t||!(!t||1!==t.nodeType||!(n.contains?n.contains(t):e.compareDocumentPosition&&16&e.compareDocumentPosition(t)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},W=e?function(e,t){if(e===t)return c=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!h.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==d&&g(d,e)?-1:t==C||t.ownerDocument==d&&g(d,t)?1:l?y(l,e)-y(l,t):0:4&n?-1:1)}:function(e,t){if(e===t)return c=!0,0;var n,i=0,o=e.parentNode,s=t.parentNode,r=[e],a=[t];if(!o||!s)return e==C?-1:t==C?1:o?-1:s?1:l?y(l,e)-y(l,t):0;if(o===s)return fe(e,t);for(n=e;n=n.parentNode;)r.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;r[i]===a[i];)i++;return i?fe(r[i],a[i]):r[i]==d?-1:a[i]==d?1:0}),C},E.matches=function(e,t){return E(e,null,null,t)},E.matchesSelector=function(e,t){if(T(e),h.matchesSelector&&k&&!m[t+" "]&&(!i||!i.test(t))&&(!f||!f.test(t)))try{var n=o.call(e,t);if(n||h.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){m(t,!0)}return 0<E(t,C,null,[e]).length},E.contains=function(e,t){return(e.ownerDocument||e)!=C&&T(e),g(e,t)},E.attr=function(e,t){(e.ownerDocument||e)!=C&&T(e);var n=w.attrHandle[t.toLowerCase()],n=n&&Y.call(w.attrHandle,t.toLowerCase())?n(e,t,!k):void 0;return void 0!==n?n:h.attributes||!k?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},E.escape=function(e){return(e+"").replace(ue,H)},E.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},E.uniqueSort=function(e){var t,n=[],i=0,o=0;if(c=!h.detectDuplicates,l=!h.sortStable&&e.slice(0),e.sort(W),c){for(;t=e[o++];)t===e[o]&&(i=n.push(o));for(;i--;)e.splice(n[i],1)}return l=null,e},s=E.getText=function(e){var t,n="",i=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=s(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[i++];)n+=s(t);return n},(w=E.selectors={cacheLength:50,createPseudo:M,match:b,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(A,u),e[3]=(e[3]||e[4]||e[5]||"").replace(A,u),"~="===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]||E.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]&&E.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return b.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&oe.test(n)&&(t=p(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(A,u).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+r+")"+e+"("+r+"|$)"))&&B(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(e){e=E.attr(e,t);return null==e?"!="===n:!n||(e+="","="===n?e===i:"!="===n?e!==i:"^="===n?i&&0===e.indexOf(i):"*="===n?i&&-1<e.indexOf(i):"$="===n?i&&e.slice(-i.length)===i:"~="===n?-1<(" "+e.replace(ee," ")+" ").indexOf(i):"|="===n&&(e===i||e.slice(0,i.length+1)===i+"-"))}},CHILD:function(f,e,t,g,m){var v="nth"!==f.slice(0,3),y="last"!==f.slice(-4),b="of-type"===e;return 1===g&&0===m?function(e){return!!e.parentNode}:function(e,t,n){var i,o,s,r,a,l,c=v!=y?"nextSibling":"previousSibling",d=e.parentNode,u=b&&e.nodeName.toLowerCase(),h=!n&&!b,p=!1;if(d){if(v){for(;c;){for(r=e;r=r[c];)if(b?r.nodeName.toLowerCase()===u:1===r.nodeType)return!1;l=c="only"===f&&!l&&"nextSibling"}return!0}if(l=[y?d.firstChild:d.lastChild],y&&h){for(p=(a=(i=(o=(s=(r=d)[D]||(r[D]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===_&&i[1])&&i[2],r=a&&d.childNodes[a];r=++a&&r&&r[c]||(p=a=0)||l.pop();)if(1===r.nodeType&&++p&&r===e){o[f]=[_,a,p];break}}else if(!1===(p=h?a=(i=(o=(s=(r=e)[D]||(r[D]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]||[])[0]===_&&i[1]:p))for(;(r=++a&&r&&r[c]||(p=a=0)||l.pop())&&((b?r.nodeName.toLowerCase()!==u:1!==r.nodeType)||!++p||(h&&((o=(s=r[D]||(r[D]={}))[r.uniqueID]||(s[r.uniqueID]={}))[f]=[_,p]),r!==e)););return(p-=m)===g||p%g==0&&0<=p/g}}},PSEUDO:function(e,s){var t,r=w.pseudos[e]||w.setFilters[e.toLowerCase()]||E.error("unsupported pseudo: "+e);return r[D]?r(s):1<r.length?(t=[e,e,"",s],w.setFilters.hasOwnProperty(e.toLowerCase())?M(function(e,t){for(var n,i=r(e,s),o=i.length;o--;)e[n=y(e,i[o])]=!(t[n]=i[o])}):function(e){return r(e,0,t)}):r}},pseudos:{not:M(function(e){var i=[],o=[],a=P(e.replace(v,"$1"));return a[D]?M(function(e,t,n,i){for(var o,s=a(e,null,i,[]),r=e.length;r--;)(o=s[r])&&(e[r]=!(t[r]=o))}):function(e,t,n){return i[0]=e,a(i,null,n,o),i[0]=null,!o.pop()}}),has:M(function(t){return function(e){return 0<E(t,e).length}}),contains:M(function(t){return t=t.replace(A,u),function(e){return-1<(e.textContent||s(e)).indexOf(t)}}),lang:M(function(n){return se.test(n||"")||E.error("unsupported lang: "+n),n=n.replace(A,u).toLowerCase(),function(e){var t;do{if(t=k?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=I.location&&I.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===n},focus:function(e){return e===C.activeElement&&(!C.hasFocus||C.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!w.pseudos.empty(e)},header:function(e){return le.test(e.nodeName)},input:function(e){return ae.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(e=e.getAttribute("type"))||"text"===e.toLowerCase())},first:N(function(){return[0]}),last:N(function(e,t){return[t-1]}),eq:N(function(e,t,n){return[n<0?n+t:n]}),even:N(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:N(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:N(function(e,t,n){for(var i=n<0?n+t:t<n?t:n;0<=--i;)e.push(i);return e}),gt:N(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}}).pseudos.nth=w.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})w.pseudos[e]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(e);for(e in{submit:!0,reset:!0})w.pseudos[e]=function(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}(e);function ve(){}function U(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(r,e,t){var a=e.dir,l=e.next,c=l||a,d=t&&"parentNode"===c,u=F++;return e.first?function(e,t,n){for(;e=e[a];)if(1===e.nodeType||d)return r(e,t,n);return!1}:function(e,t,n){var i,o,s=[_,u];if(n){for(;e=e[a];)if((1===e.nodeType||d)&&r(e,t,n))return!0}else for(;e=e[a];)if(1===e.nodeType||d)if(o=(o=e[D]||(e[D]={}))[e.uniqueID]||(o[e.uniqueID]={}),l&&l===e.nodeName.toLowerCase())e=e[a]||e;else{if((i=o[c])&&i[0]===_&&i[1]===u)return s[2]=i[2];if((o[c]=s)[2]=r(e,t,n))return!0}return!1}}function be(o){return 1<o.length?function(e,t,n){for(var i=o.length;i--;)if(!o[i](e,t,n))return!1;return!0}:o[0]}function we(e,t,n,i,o){for(var s,r=[],a=0,l=e.length,c=null!=t;a<l;a++)!(s=e[a])||n&&!n(s,i,o)||(r.push(s),c&&t.push(a));return r}function xe(p,f,g,m,v,e){return m&&!m[D]&&(m=xe(m)),v&&!v[D]&&(v=xe(v,e)),M(function(e,t,n,i){var o,s,r,a=[],l=[],c=t.length,d=e||function(e,t,n){for(var i=0,o=t.length;i<o;i++)E(e,t[i],n);return n}(f||"*",n.nodeType?[n]:n,[]),u=!p||!e&&f?d:we(d,a,p,n,i),h=g?v||(e?p:c||m)?[]:t:u;if(g&&g(u,h,n,i),m)for(o=we(h,l),m(o,[],n,i),s=o.length;s--;)(r=o[s])&&(h[l[s]]=!(u[l[s]]=r));if(e){if(v||p){if(v){for(o=[],s=h.length;s--;)(r=h[s])&&o.push(u[s]=r);v(null,h=[],o,i)}for(s=h.length;s--;)(r=h[s])&&-1<(o=v?y(e,r):a[s])&&(e[o]=!(t[o]=r))}}else h=we(h===t?h.splice(c,h.length):h),v?v(null,t,h,i):S.apply(t,h)})}function Te(m,v){function e(e,t,n,i,o){var s,r,a,l=0,c="0",d=e&&[],u=[],h=x,p=e||b&&w.find.TAG("*",o),f=_+=null==h?1:Math.random()||.1,g=p.length;for(o&&(x=t==C||t||o);c!==g&&null!=(s=p[c]);c++){if(b&&s){for(r=0,t||s.ownerDocument==C||(T(s),n=!k);a=m[r++];)if(a(s,t||C,n)){i.push(s);break}o&&(_=f)}y&&((s=!a&&s)&&l--,e&&d.push(s))}if(l+=c,y&&c!==l){for(r=0;a=v[r++];)a(d,u,t,n);if(e){if(0<l)for(;c--;)d[c]||u[c]||(u[c]=Q.call(i));u=we(u)}S.apply(i,u),o&&!e&&0<u.length&&1<l+v.length&&E.uniqueSort(i)}return o&&(_=f,x=h),d}var y=0<v.length,b=0<m.length;return y?M(e):e}return ve.prototype=w.filters=w.pseudos,w.setFilters=new ve,p=E.tokenize=function(e,t){var n,i,o,s,r,a,l,c=z[e+" "];if(c)return t?0:c.slice(0);for(r=e,a=[],l=w.preFilter;r;){for(s in n&&!(i=te.exec(r))||(i&&(r=r.slice(i[0].length)||r),a.push(o=[])),n=!1,(i=ne.exec(r))&&(n=i.shift(),o.push({value:n,type:i[0].replace(v," ")}),r=r.slice(n.length)),w.filter)!(i=b[s].exec(r))||l[s]&&!(i=l[s](i))||(n=i.shift(),o.push({value:n,type:s,matches:i}),r=r.slice(n.length));if(!n)break}return t?r.length:r?E.error(e):z(e,a).slice(0)},P=E.compile=function(e,t){var n,i=[],o=[],s=V[e+" "];if(!s){for(n=(t=t||p(e)).length;n--;)((s=function e(t){for(var i,n,o,s=t.length,r=w.relative[t[0].type],a=r||w.relative[" "],l=r?1:0,c=ye(function(e){return e===i},a,!0),d=ye(function(e){return-1<y(i,e)},a,!0),u=[function(e,t,n){return e=!r&&(n||t!==x)||((i=t).nodeType?c:d)(e,t,n),i=null,e}];l<s;l++)if(n=w.relative[t[l].type])u=[ye(be(u),n)];else{if((n=w.filter[t[l].type].apply(null,t[l].matches))[D]){for(o=++l;o<s&&!w.relative[t[o].type];o++);return xe(1<l&&be(u),1<l&&U(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(v,"$1"),n,l<o&&e(t.slice(l,o)),o<s&&e(t=t.slice(o)),o<s&&U(t))}u.push(n)}return be(u)}(t[n]))[D]?i:o).push(s);(s=V(e,Te(o,i))).selector=e}return s},q=E.select=function(e,t,n,i){var o,s,r,a,l,c="function"==typeof e&&e,d=!i&&p(e=c.selector||e);if(n=n||[],1===d.length){if(2<(s=d[0]=d[0].slice(0)).length&&"ID"===(r=s[0]).type&&9===t.nodeType&&k&&w.relative[s[1].type]){if(!(t=(w.find.ID(r.matches[0].replace(A,u),t)||[])[0]))return n;c&&(t=t.parentNode),e=e.slice(s.shift().value.length)}for(o=b.needsContext.test(e)?0:s.length;o--&&(r=s[o],!w.relative[a=r.type]);)if((l=w.find[a])&&(i=l(r.matches[0].replace(A,u),de.test(s[0].type)&&me(t.parentNode)||t))){if(s.splice(o,1),e=i.length&&U(s))break;return S.apply(n,i),n}}return(c||P(e,d))(i,t,!k,n,!t||de.test(e)&&me(t.parentNode)||t),n},h.sortStable=D.split("").sort(W).join("")===D,h.detectDuplicates=!!c,T(),h.sortDetached=j(function(e){return 1&e.compareDocumentPosition(C.createElement("fieldset"))}),j(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||pe("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),h.attributes&&j(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||pe("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),j(function(e){return null==e.getAttribute("disabled")})||pe(X,function(e,t,n){if(!n)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null}),E}(x),G=(C.find=e,C.expr=e.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=e.uniqueSort,C.text=e.getText,C.isXMLDoc=e.isXML,C.contains=e.contains,C.escapeSelector=e.escape,C.expr.match.needsContext);function l(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var X=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Z(e,n,i){return y(n)?C.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?C.grep(e,function(e){return e===n!==i}):"string"!=typeof n?C.grep(e,function(e){return-1<P.call(n,e)!==i}):C.filter(n,e,i)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,function(e){return 1===e.nodeType}))},C.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter(function(){for(t=0;t<i;t++)if(C.contains(o[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,o[t],n);return 1<i?C.uniqueSort(n):n},filter:function(e){return this.pushStack(Z(this,e||[],!1))},not:function(e){return this.pushStack(Z(this,e||[],!0))},is:function(e){return!!Z(this,"string"==typeof e&&G.test(e)?C(e):e||[],!1).length}});var J,ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,te=((C.fn.init=function(e,t,n){if(!e)return this;if(n=n||J,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:ee.exec(e))||!i[1]&&t)return(!t||t.jquery?t||n:this.constructor(t)).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:T,!0)),X.test(i[1])&&C.isPlainObject(t))for(var i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(n=T.getElementById(i[2]))&&(this[0]=n,this.length=1),this}).prototype=C.fn,J=C(T),/^(?:parents|prev(?:Until|All))/),ne={children:!0,contents:!0,next:!0,prev:!0};function ie(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,o=this.length,s=[],r="string"!=typeof e&&C(e);if(!G.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(r?-1<r.index(n):1===n.nodeType&&C.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(1<s.length?C.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?P.call(C(e),this[0]):P.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){e=e.parentNode;return e&&11!==e.nodeType?e:null},parents:function(e){return i(e,"parentNode")},parentsUntil:function(e,t,n){return i(e,"parentNode",n)},next:function(e){return ie(e,"nextSibling")},prev:function(e){return ie(e,"previousSibling")},nextAll:function(e){return i(e,"nextSibling")},prevAll:function(e){return i(e,"previousSibling")},nextUntil:function(e,t,n){return i(e,"nextSibling",n)},prevUntil:function(e,t,n){return i(e,"previousSibling",n)},siblings:function(e){return K((e.parentNode||{}).firstChild,e)},children:function(e){return K(e.firstChild)},contents:function(e){return null!=e.contentDocument&&H(e.contentDocument)?e.contentDocument:(l(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},function(i,o){C.fn[i]=function(e,t){var n=C.map(this,o,e);return(t="Until"!==i.slice(-5)?e:t)&&"string"==typeof t&&(n=C.filter(t,n)),1<this.length&&(ne[i]||C.uniqueSort(n),te.test(i)&&n.reverse()),this.pushStack(n)}});var k=/[^\x20\t\r\n\f]+/g;function d(e){return e}function oe(e){throw e}function se(e,t,n,i){var o;try{e&&y(o=e.promise)?o.call(e).done(t).fail(n):e&&y(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(i){var e,n;i="string"==typeof i?(e=i,n={},C.each(e.match(k)||[],function(e,t){n[t]=!0}),n):C.extend({},i);function o(){for(a=a||i.once,r=s=!0;c.length;d=-1)for(t=c.shift();++d<l.length;)!1===l[d].apply(t[0],t[1])&&i.stopOnFalse&&(d=l.length,t=!1);i.memory||(t=!1),s=!1,a&&(l=t?[]:"")}var s,t,r,a,l=[],c=[],d=-1,u={add:function(){return l&&(t&&!s&&(d=l.length-1,c.push(t)),function n(e){C.each(e,function(e,t){y(t)?i.unique&&u.has(t)||l.push(t):t&&t.length&&"string"!==f(t)&&n(t)})}(arguments),t&&!s&&o()),this},remove:function(){return C.each(arguments,function(e,t){for(var n;-1<(n=C.inArray(t,l,n));)l.splice(n,1),n<=d&&d--}),this},has:function(e){return e?-1<C.inArray(e,l):0<l.length},empty:function(){return l=l&&[],this},disable:function(){return a=c=[],l=t="",this},disabled:function(){return!l},lock:function(){return a=c=[],t||s||(l=t=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],c.push(t),s||o()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},C.extend({Deferred:function(e){var s=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],o="pending",r={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var o=arguments;return C.Deferred(function(i){C.each(s,function(e,t){var n=y(o[t[4]])&&o[t[4]];a[t[1]](function(){var e=n&&n.apply(this,arguments);e&&y(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[t[0]+"With"](this,n?[e]:arguments)})}),o=null}).promise()},then:function(t,n,i){var l=0;function c(o,s,r,a){return function(){function e(){var e,t;if(!(o<l)){if((e=r.apply(n,i))===s.promise())throw new TypeError("Thenable self-resolution");t=e&&("object"==typeof e||"function"==typeof e)&&e.then,y(t)?a?t.call(e,c(l,s,d,a),c(l,s,oe,a)):(l++,t.call(e,c(l,s,d,a),c(l,s,oe,a),c(l,s,d,s.notifyWith))):(r!==d&&(n=void 0,i=[e]),(a||s.resolveWith)(n,i))}}var n=this,i=arguments,t=a?e:function(){try{e()}catch(e){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(e,t.stackTrace),l<=o+1&&(r!==oe&&(n=void 0,i=[e]),s.rejectWith(n,i))}};o?t():(C.Deferred.getStackHook&&(t.stackTrace=C.Deferred.getStackHook()),x.setTimeout(t))}}return C.Deferred(function(e){s[0][3].add(c(0,e,y(i)?i:d,e.notifyWith)),s[1][3].add(c(0,e,y(t)?t:d)),s[2][3].add(c(0,e,y(n)?n:oe))}).promise()},promise:function(e){return null!=e?C.extend(e,r):r}},a={};return C.each(s,function(e,t){var n=t[2],i=t[5];r[t[1]]=n.add,i&&n.add(function(){o=i},s[3-e][2].disable,s[3-e][3].disable,s[0][2].lock,s[0][3].lock),n.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=n.fireWith}),r.promise(a),e&&e.call(a,a),a},when:function(e){function t(t){return function(e){o[t]=this,s[t]=1<arguments.length?a.call(arguments):e,--n||r.resolveWith(o,s)}}var n=arguments.length,i=n,o=Array(i),s=a.call(arguments),r=C.Deferred();if(n<=1&&(se(e,r.done(t(i)).resolve,r.reject,!n),"pending"===r.state()||y(s[i]&&s[i].then)))return r.then();for(;i--;)se(s[i],t(i),r.reject);return r.promise()}});var re=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/,ae=(C.Deferred.exceptionHook=function(e,t){x.console&&x.console.warn&&e&&re.test(e.name)&&x.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){x.setTimeout(function(){throw e})},C.Deferred());function le(){T.removeEventListener("DOMContentLoaded",le),x.removeEventListener("load",le),C.ready()}C.fn.ready=function(e){return ae.then(e).catch(function(e){C.readyException(e)}),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0)!==e&&0<--C.readyWait||ae.resolveWith(T,[C])}}),C.ready.then=ae.then,"complete"===T.readyState||"loading"!==T.readyState&&!T.documentElement.doScroll?x.setTimeout(C.ready):(T.addEventListener("DOMContentLoaded",le),x.addEventListener("load",le));function u(e,t,n,i,o,s,r){var a=0,l=e.length,c=null==n;if("object"===f(n))for(a in o=!0,n)u(e,t,a,n[a],!0,s,r);else if(void 0!==i&&(o=!0,y(i)||(r=!0),t=c?r?(t.call(e,i),null):(c=t,function(e,t,n){return c.call(C(e),n)}):t))for(;a<l;a++)t(e[a],n,r?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):s}var ce=/^-ms-/,de=/-([a-z])/g;function ue(e,t){return t.toUpperCase()}function b(e){return e.replace(ce,"ms-").replace(de,ue)}function v(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType}function he(){this.expando=C.expando+he.uid++}he.uid=1,he.prototype={cache:function(e){var t=e[this.expando];return t||(t={},v(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[b(t)]=n;else for(i in t)o[b(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][b(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,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(b):(t=b(t))in i?[t]:t.match(k)||[]).length;for(;n--;)delete i[t[n]]}void 0!==t&&!C.isEmptyObject(i)||(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){e=e[this.expando];return void 0!==e&&!C.isEmptyObject(e)}};var w=new he,c=new he,pe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,fe=/[A-Z]/g;function ge(e,t,n){var i,o;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(fe,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n="true"===(o=n)||"false"!==o&&("null"===o?null:o===+o+""?+o:pe.test(o)?JSON.parse(o):o)}catch(e){}c.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return c.hasData(e)||w.hasData(e)},data:function(e,t,n){return c.access(e,t,n)},removeData:function(e,t){c.remove(e,t)},_data:function(e,t,n){return w.access(e,t,n)},_removeData:function(e,t){w.remove(e,t)}}),C.fn.extend({data:function(n,e){var t,i,o,s=this[0],r=s&&s.attributes;if(void 0!==n)return"object"==typeof n?this.each(function(){c.set(this,n)}):u(this,function(e){var t;if(s&&void 0===e)return void 0!==(t=c.get(s,n))||void 0!==(t=ge(s,n))?t:void 0;this.each(function(){c.set(this,n,e)})},null,e,1<arguments.length,null,!0);if(this.length&&(o=c.get(s),1===s.nodeType&&!w.get(s,"hasDataAttrs"))){for(t=r.length;t--;)r[t]&&0===(i=r[t].name).indexOf("data-")&&(i=b(i.slice(5)),ge(s,i,o[i]));w.set(s,"hasDataAttrs",!0)}return o},removeData:function(e){return this.each(function(){c.remove(this,e)})}}),C.extend({queue:function(e,t,n){var i;if(e)return i=w.get(e,t=(t||"fx")+"queue"),n&&(!i||Array.isArray(n)?i=w.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,o=n.shift(),s=C._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete s.stop,o.call(e,function(){C.dequeue(e,t)},s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return w.get(e,n)||w.access(e,n,{empty:C.Callbacks("once memory").add(function(){w.remove(e,[t+"queue",n])})})}}),C.fn.extend({queue:function(t,n){var e=2;return"string"!=typeof t&&(n=t,t="fx",e--),arguments.length<e?C.queue(this[0],t):void 0===n?this:this.each(function(){var e=C.queue(this,t,n);C._queueHooks(this,t),"fx"===t&&"inprogress"!==e[0]&&C.dequeue(this,t)})},dequeue:function(e){return this.each(function(){C.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){function n(){--o||s.resolveWith(r,[r])}var i,o=1,s=C.Deferred(),r=this,a=this.length;for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(i=w.get(r[a],e+"queueHooks"))&&i.empty&&(o++,i.empty.add(n));return n(),s.promise(t)}});function me(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&_(e)&&"none"===C.css(e,"display")}var e=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ve=new RegExp("^(?:([+-])=|)("+e+")([a-z%]*)$","i"),h=["Top","Right","Bottom","Left"],D=T.documentElement,_=function(e){return C.contains(e.ownerDocument,e)},ye={composed:!0};D.getRootNode&&(_=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ye)===e.ownerDocument});function be(e,t,n,i){var o,s,r=20,a=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=a(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),d=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&ve.exec(C.css(e,t));if(d&&d[3]!==c){for(c=c||d[3],d=+(l/=2)||1;r--;)C.style(e,t,d+c),(1-s)*(1-(s=a()/l||.5))<=0&&(r=0),d/=s;C.style(e,t,(d*=2)+c),n=n||[]}return n&&(d=+d||+l||0,o=n[1]?d+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=d,i.end=o)),o}var we={};function S(e,t){for(var n,i,o,s,r,a=[],l=0,c=e.length;l<c;l++)(i=e[l]).style&&(n=i.style.display,t?("none"===n&&(a[l]=w.get(i,"display")||null,a[l]||(i.style.display="")),""===i.style.display&&me(i)&&(a[l]=(r=s=void 0,s=(o=i).ownerDocument,o=o.nodeName,(r=we[o])||(s=s.body.appendChild(s.createElement(o)),r=C.css(s,"display"),s.parentNode.removeChild(s),we[o]=r="none"===r?"block":r),r))):"none"!==n&&(a[l]="none",w.set(i,"display",n)));for(l=0;l<c;l++)null!=a[l]&&(e[l].style.display=a[l]);return e}C.fn.extend({show:function(){return S(this,!0)},hide:function(){return S(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){me(this)?C(this).show():C(this).hide()})}});var xe=/^(?:checkbox|radio)$/i,Te=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i,$=(M=T.createDocumentFragment().appendChild(T.createElement("div")),(r=T.createElement("input")).setAttribute("type","radio"),r.setAttribute("checked","checked"),r.setAttribute("name","t"),M.appendChild(r),m.checkClone=M.cloneNode(!0).cloneNode(!0).lastChild.checked,M.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!M.cloneNode(!0).lastChild.defaultValue,M.innerHTML="<option></option>",m.option=!!M.lastChild,{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 A(e,t){var n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&l(e,t)?C.merge([e],n):n}function ke(e,t){for(var n=0,i=e.length;n<i;n++)w.set(e[n],"globalEval",!t||w.get(t[n],"globalEval"))}$.tbody=$.tfoot=$.colgroup=$.caption=$.thead,$.th=$.td,m.option||($.optgroup=$.option=[1,"<select multiple='multiple'>","</select>"]);var De=/<|&#?\w+;/;function _e(e,t,n,i,o){for(var s,r,a,l,c,d=t.createDocumentFragment(),u=[],h=0,p=e.length;h<p;h++)if((s=e[h])||0===s)if("object"===f(s))C.merge(u,s.nodeType?[s]:s);else if(De.test(s)){for(r=r||d.appendChild(t.createElement("div")),a=(Te.exec(s)||["",""])[1].toLowerCase(),a=$[a]||$._default,r.innerHTML=a[1]+C.htmlPrefilter(s)+a[2],c=a[0];c--;)r=r.lastChild;C.merge(u,r.childNodes),(r=d.firstChild).textContent=""}else u.push(t.createTextNode(s));for(d.textContent="",h=0;s=u[h++];)if(i&&-1<C.inArray(s,i))o&&o.push(s);else if(l=_(s),r=A(d.appendChild(s),"script"),l&&ke(r),n)for(c=0;s=r[c++];)Ce.test(s.type||"")&&n.push(s);return d}var Se=/^([^.]*)(?:\.(.+)|)/;function n(){return!0}function p(){return!1}function $e(e,t){return e===function(){try{return T.activeElement}catch(e){}}()==("focus"===t)}function Ae(e,t,n,i,o,s){var r,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Ae(e,a,n,i,t[a],s);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=p;else if(!o)return e;return 1===s&&(r=o,(o=function(e){return C().off(e),r.apply(this,arguments)}).guid=r.guid||(r.guid=C.guid++)),e.each(function(){C.event.add(this,t,o,i,n)})}function Ee(e,o,s){s?(w.set(e,o,!1),C.event.add(e,o,{namespace:!1,handler:function(e){var t,n,i=w.get(this,o);if(1&e.isTrigger&&this[o]){if(i.length)(C.event.special[o]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),w.set(this,o,i),t=s(this,o),this[o](),i!==(n=w.get(this,o))||t?w.set(this,o,!1):n={},i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n&&n.value}else i.length&&(w.set(this,o,{value:C.event.trigger(C.extend(i[0],C.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===w.get(e,o)&&C.event.add(e,o,n)}C.event={global:{},add:function(t,e,n,i,o){var s,r,a,l,c,d,u,h,p,f=w.get(t);if(v(t))for(n.handler&&(n=(s=n).handler,o=s.selector),o&&C.find.matchesSelector(D,o),n.guid||(n.guid=C.guid++),(a=f.events)||(a=f.events=Object.create(null)),(r=f.handle)||(r=f.handle=function(e){return void 0!==C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(k)||[""]).length;l--;)u=p=(h=Se.exec(e[l])||[])[1],h=(h[2]||"").split(".").sort(),u&&(c=C.event.special[u]||{},u=(o?c.delegateType:c.bindType)||u,c=C.event.special[u]||{},p=C.extend({type:u,origType:p,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:h.join(".")},s),(d=a[u])||((d=a[u]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,h,r)||t.addEventListener&&t.addEventListener(u,r)),c.add&&(c.add.call(t,p),p.handler.guid||(p.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,p):d.push(p),C.event.global[u]=!0)},remove:function(e,t,n,i,o){var s,r,a,l,c,d,u,h,p,f,g,m=w.hasData(e)&&w.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(k)||[""]).length;c--;)if(p=g=(a=Se.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(u=C.event.special[p]||{},h=l[p=(i?u.delegateType:u.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=s=h.length;s--;)d=h[s],!o&&g!==d.origType||n&&n.guid!==d.guid||a&&!a.test(d.namespace)||i&&i!==d.selector&&("**"!==i||!d.selector)||(h.splice(s,1),d.selector&&h.delegateCount--,u.remove&&u.remove.call(e,d));r&&!h.length&&(u.teardown&&!1!==u.teardown.call(e,f,m.handle)||C.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[c],n,i,!0);C.isEmptyObject(l)&&w.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,s,r=new Array(arguments.length),a=C.event.fix(e),e=(w.get(this,"events")||Object.create(null))[a.type]||[],l=C.event.special[a.type]||{};for(r[0]=a,t=1;t<arguments.length;t++)r[t]=arguments[t];if(a.delegateTarget=this,!l.preDispatch||!1!==l.preDispatch.call(this,a)){for(s=C.event.handlers.call(this,a,e),t=0;(i=s[t++])&&!a.isPropagationStopped();)for(a.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!1!==o.namespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(o=((C.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,r))&&!1===(a.result=o)&&(a.preventDefault(),a.stopPropagation()));return l.postDispatch&&l.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,o,s,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&1<=e.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],r={},n=0;n<l;n++)void 0===r[o=(i=t[n]).selector+" "]&&(r[o]=i.needsContext?-1<C(o,this).index(c):C.find(o,this,null,[c]).length),r[o]&&s.push(i);s.length&&a.push({elem:c,handlers:s})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(t,e){Object.defineProperty(C.Event.prototype,t,{enumerable:!0,configurable:!0,get:y(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[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){e=this||e;return xe.test(e.type)&&e.click&&l(e,"input")&&Ee(e,"click",n),!1},trigger:function(e){e=this||e;return xe.test(e.type)&&e.click&&l(e,"input")&&Ee(e,"click"),!0},_default:function(e){e=e.target;return xe.test(e.type)&&e.click&&l(e,"input")&&w.get(e,"click")||l(e,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?n:p,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:p,isPropagationStopped:p,isImmediatePropagationStopped:p,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=n,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=n,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=n,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},function(e,t){C.event.special[e]={setup:function(){return Ee(this,e,$e),!1},trigger:function(){return Ee(this,e),!0},_default:function(){return!0},delegateType:t}}),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,o){C.event.special[e]={delegateType:o,bindType:o,handle:function(e){var t,n=e.relatedTarget,i=e.handleObj;return n&&(n===this||C.contains(this,n))||(e.type=i.origType,t=i.handler.apply(this,arguments),e.type=o),t}}}),C.fn.extend({on:function(e,t,n,i){return Ae(this,e,t,n,i)},one:function(e,t,n,i){return Ae(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"!=typeof e)return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=p),this.each(function(){C.event.remove(this,e,n,t)});for(o in e)this.off(o,t,e[o]);return this}});var Oe=/<script|<style|<link/i,Me=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ne(e,t){return l(e,"table")&&l(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ue(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var n,i,o,s;if(1===t.nodeType){if(w.hasData(e)&&(s=w.get(e).events))for(o in w.remove(t,"handle events"),s)for(n=0,i=s[o].length;n<i;n++)C.event.add(t,o,s[o][n]);c.hasData(e)&&(e=c.access(e),e=C.extend({},e),c.set(t,e))}}function E(n,i,o,s){i=L(i);var e,t,r,a,l,c,d=0,u=n.length,h=u-1,p=i[0],f=y(p);if(f||1<u&&"string"==typeof p&&!m.checkClone&&Me.test(p))return n.each(function(e){var t=n.eq(e);f&&(i[0]=p.call(this,e,t.html())),E(t,i,o,s)});if(u&&(t=(e=_e(i,n[0].ownerDocument,!1,n,s)).firstChild,1===e.childNodes.length&&(e=t),t||s)){for(a=(r=C.map(A(e,"script"),Ue)).length;d<u;d++)l=e,d!==h&&(l=C.clone(l,!0,!0),a&&C.merge(r,A(l,"script"))),o.call(n[d],l,d);if(a)for(c=r[r.length-1].ownerDocument,C.map(r,Ie),d=0;d<a;d++)l=r[d],Ce.test(l.type||"")&&!w.access(l,"globalEval")&&C.contains(c,l)&&(l.src&&"module"!==(l.type||"").toLowerCase()?C._evalUrl&&!l.noModule&&C._evalUrl(l.src,{nonce:l.nonce||l.getAttribute("nonce")},c):Y(l.textContent.replace(je,""),l,c))}return n}function Le(e,t,n){for(var i,o=t?C.filter(t,e):e,s=0;null!=(i=o[s]);s++)n||1!==i.nodeType||C.cleanData(A(i)),i.parentNode&&(n&&_(i)&&ke(A(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,s,r,a,l,c,d=e.cloneNode(!0),u=_(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=A(d),i=0,o=(s=A(e)).length;i<o;i++)a=s[i],l=r[i],c=void 0,"input"===(c=l.nodeName.toLowerCase())&&xe.test(a.type)?l.checked=a.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=a.defaultValue);if(t)if(n)for(s=s||A(e),r=r||A(d),i=0,o=s.length;i<o;i++)He(s[i],r[i]);else He(e,d);return 0<(r=A(d,"script")).length&&ke(r,!u&&A(e,"script")),d},cleanData:function(e){for(var t,n,i,o=C.event.special,s=0;void 0!==(n=e[s]);s++)if(v(n)){if(t=n[w.expando]){if(t.events)for(i in t.events)o[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[w.expando]=void 0}n[c.expando]&&(n[c.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Le(this,e,!0)},remove:function(e){return Le(this,e)},text:function(e){return u(this,function(e){return void 0===e?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)})},null,e,arguments.length)},append:function(){return E(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)})},prepend:function(){return E(this,arguments,function(e){var t;1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(t=Ne(this,e)).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&&(C.cleanData(A(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return C.clone(this,e,t)})},html:function(e){return u(this,function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Oe.test(e)&&!$[(Te.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(A(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;C.inArray(this,n)<0&&(C.cleanData(A(this)),t&&t.replaceChild(e,this))},n)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,r){C.fn[e]=function(e){for(var t,n=[],i=C(e),o=i.length-1,s=0;s<=o;s++)t=s===o?this:this.clone(!0),C(i[s])[r](t),R.apply(n,t.get());return this.pushStack(n)}});function Re(e){var t=e.ownerDocument.defaultView;return(t=t&&t.opener?t:x).getComputedStyle(e)}function Pe(e,t,n){var i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in n=n.call(e),t)e.style[i]=o[i];return n}var qe,Fe,Be,ze,Ve,We,Ye,o,Qe=new RegExp("^("+e+")(?!px)[a-z%]+$","i"),Ke=new RegExp(h.join("|"),"i");function Ge(){var e;o&&(Ye.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",o.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",D.appendChild(Ye).appendChild(o),e=x.getComputedStyle(o),qe="1%"!==e.top,We=12===Xe(e.marginLeft),o.style.right="60%",ze=36===Xe(e.right),Fe=36===Xe(e.width),o.style.position="absolute",Be=12===Xe(o.offsetWidth/3),D.removeChild(Ye),o=null)}function Xe(e){return Math.round(parseFloat(e))}function Ze(e,t,n){var i,o,s=e.style;return(n=n||Re(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||_(e)||(o=C.style(e,t)),!m.pixelBoxStyles()&&Qe.test(o)&&Ke.test(t)&&(e=s.width,t=s.minWidth,i=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=n.width,s.width=e,s.minWidth=t,s.maxWidth=i)),void 0!==o?o+"":o}function Je(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}Ye=T.createElement("div"),(o=T.createElement("div")).style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===o.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return Ge(),Fe},pixelBoxStyles:function(){return Ge(),ze},pixelPosition:function(){return Ge(),qe},reliableMarginLeft:function(){return Ge(),We},scrollboxSize:function(){return Ge(),Be},reliableTrDimensions:function(){var e,t,n;return null==Ve&&(e=T.createElement("table"),t=T.createElement("tr"),n=T.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",D.appendChild(e).appendChild(t).appendChild(n),n=x.getComputedStyle(t),Ve=parseInt(n.height,10)+parseInt(n.borderTopWidth,10)+parseInt(n.borderBottomWidth,10)===t.offsetHeight,D.removeChild(e)),Ve}}));var et=["Webkit","Moz","ms"],tt=T.createElement("div").style,nt={};function it(e){var t=C.cssProps[e]||nt[e];return t||(e in tt?e:nt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=et.length;n--;)if((e=et[n]+t)in tt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st=/^--/,rt={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=ve.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,o,s){var r="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;r<4;r+=2)"margin"===n&&(l+=C.css(e,n+h[r],!0,o)),i?("content"===n&&(l-=C.css(e,"padding"+h[r],!0,o)),"margin"!==n&&(l-=C.css(e,"border"+h[r]+"Width",!0,o))):(l+=C.css(e,"padding"+h[r],!0,o),"padding"!==n?l+=C.css(e,"border"+h[r]+"Width",!0,o):a+=C.css(e,"border"+h[r]+"Width",!0,o));return!i&&0<=s&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-s-l-a-.5))||0),l}function dt(e,t,n){var i=Re(e),o=(!m.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),s=o,r=Ze(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Qe.test(r)){if(!n)return r;r="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&l(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,i),(s=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+ct(e,t,n||(o?"border":"content"),s,i,r)+"px"}function s(e,t,n,i,o){return new s.prototype.init(e,t,n,i,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t)return""===(t=Ze(e,"opacity"))?"1":t}}},cssNumber:{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},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,s,r,a=b(t),l=st.test(t),c=e.style;if(l||(t=it(a)),r=C.cssHooks[t]||C.cssHooks[a],void 0===n)return r&&"get"in r&&void 0!==(o=r.get(e,!1,i))?o:c[t];"string"===(s=typeof n)&&(o=ve.exec(n))&&o[1]&&(n=be(e,t,o),s="number"),null!=n&&n==n&&("number"!==s||l||(n+=o&&o[3]||(C.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(n=r.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,s=b(t);return st.test(t)||(t=it(s)),"normal"===(o=void 0===(o=(s=C.cssHooks[t]||C.cssHooks[s])&&"get"in s?s.get(e,!0,n):o)?Ze(e,t,i):o)&&t in at&&(o=at[t]),""===n||n?(s=parseFloat(o),!0===n||isFinite(s)?s||0:o):o}}),C.each(["height","width"],function(e,r){C.cssHooks[r]={get:function(e,t,n){if(t)return!ot.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?dt(e,r,n):Pe(e,rt,function(){return dt(e,r,n)})},set:function(e,t,n){var i=Re(e),o=!m.scrollboxSize()&&"absolute"===i.position,s=(o||n)&&"border-box"===C.css(e,"boxSizing",!1,i),n=n?ct(e,r,n,s,i):0;return s&&o&&(n-=Math.ceil(e["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(i[r])-ct(e,r,"border",!1,i)-.5)),n&&(s=ve.exec(t))&&"px"!==(s[3]||"px")&&(e.style[r]=t,t=C.css(e,r)),lt(0,t,n)}}}),C.cssHooks.marginLeft=Je(m.reliableMarginLeft,function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Pe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(o,s){C.cssHooks[o+s]={expand:function(e){for(var t=0,n={},i="string"==typeof e?e.split(" "):[e];t<4;t++)n[o+h[t]+s]=i[t]||i[t-2]||i[0];return n}},"margin"!==o&&(C.cssHooks[o+s].set=lt)}),C.fn.extend({css:function(e,t){return u(this,function(e,t,n){var i,o,s={},r=0;if(Array.isArray(t)){for(i=Re(e),o=t.length;r<o;r++)s[t[r]]=C.css(e,t[r],!1,i);return s}return void 0!==n?C.style(e,t,n):C.css(e,t)},e,t,1<arguments.length)}}),((C.Tween=s).prototype={constructor:s,init:function(e,t,n,i,o,s){this.elem=e,this.prop=n,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(C.cssNumber[n]?"":"px")},cur:function(){var e=s.propHooks[this.prop];return(e&&e.get?e:s.propHooks._default).get(this)},run:function(e){var t,n=s.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),(n&&n.set?n:s.propHooks._default).set(this),this}}).init.prototype=s.prototype,(s.propHooks={_default:{get:function(e){return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(e=C.css(e.elem,e.prop,""))&&"auto"!==e?e:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}}).scrollTop=s.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=s.prototype.init,C.fx.step={};var O,ut,r,M,ht=/^(?:toggle|show|hide)$/,pt=/queueHooks$/;function ft(){ut&&(!1===T.hidden&&x.requestAnimationFrame?x.requestAnimationFrame(ft):x.setTimeout(ft,C.fx.interval),C.fx.tick())}function gt(){return x.setTimeout(function(){O=void 0}),O=Date.now()}function mt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=h[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function vt(e,t,n){for(var i,o=(j.tweeners[t]||[]).concat(j.tweeners["*"]),s=0,r=o.length;s<r;s++)if(i=o[s].call(n,t,e))return i}function j(o,e,t){var n,s,i,r,a,l,c,d=0,u=j.prefilters.length,h=C.Deferred().always(function(){delete p.elem}),p=function(){if(!s){for(var e=O||gt(),e=Math.max(0,f.startTime+f.duration-e),t=1-(e/f.duration||0),n=0,i=f.tweens.length;n<i;n++)f.tweens[n].run(t);if(h.notifyWith(o,[f,t,e]),t<1&&i)return e;i||h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f])}return!1},f=h.promise({elem:o,props:C.extend({},e),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},t),originalProperties:e,originalOptions:t,startTime:O||gt(),duration:t.duration,tweens:[],createTween:function(e,t){t=C.Tween(o,f.opts,e,t,f.opts.specialEasing[e]||f.opts.easing);return f.tweens.push(t),t},stop:function(e){var t=0,n=e?f.tweens.length:0;if(!s){for(s=!0;t<n;t++)f.tweens[t].run(1);e?(h.notifyWith(o,[f,1,0]),h.resolveWith(o,[f,e])):h.rejectWith(o,[f,e])}return this}}),g=f.props,m=g,v=f.opts.specialEasing;for(i in m)if(a=v[r=b(i)],l=m[i],Array.isArray(l)&&(a=l[1],l=m[i]=l[0]),i!==r&&(m[r]=l,delete m[i]),(c=C.cssHooks[r])&&"expand"in c)for(i in l=c.expand(l),delete m[r],l)i in m||(m[i]=l[i],v[i]=a);else v[r]=a;for(;d<u;d++)if(n=j.prefilters[d].call(f,o,g,f.opts))return y(n.stop)&&(C._queueHooks(f.elem,f.opts.queue).stop=n.stop.bind(n)),n;return C.map(g,vt,f),y(f.opts.start)&&f.opts.start.call(o,f),f.progress(f.opts.progress).done(f.opts.done,f.opts.complete).fail(f.opts.fail).always(f.opts.always),C.fx.timer(C.extend(p,{elem:o,anim:f,queue:f.opts.queue})),f}C.Animation=C.extend(j,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,ve.exec(t),n),n}]},tweener:function(e,t){for(var n,i=0,o=(e=y(e)?(t=e,["*"]):e.match(k)).length;i<o;i++)n=e[i],j.tweeners[n]=j.tweeners[n]||[],j.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,s,r,a,l,c,d="width"in t||"height"in t,u=this,h={},p=e.style,f=e.nodeType&&me(e),g=w.get(e,"fxshow");for(i in n.queue||(null==(r=C._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always(function(){u.always(function(){r.unqueued--,C.queue(e,"fx").length||r.empty.fire()})})),t)if(o=t[i],ht.test(o)){if(delete t[i],s=s||"toggle"===o,o===(f?"hide":"show")){if("show"!==o||!g||void 0===g[i])continue;f=!0}h[i]=g&&g[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(h))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=w.get(e,"display")),"none"===(d=C.css(e,"display"))&&(c?d=c:(S([e],!0),c=e.style.display||c,d=C.css(e,"display"),S([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===C.css(e,"float")&&(l||(u.done(function(){p.display=c}),null==c&&(d=p.display,c="none"===d?"":d)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",u.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,h)l||(g?"hidden"in g&&(f=g.hidden):g=w.access(e,"fxshow",{display:c}),s&&(g.hidden=!f),f&&S([e],!0),u.done(function(){for(i in f||S([e]),w.remove(e,"fxshow"),h)C.style(e,i,h[i])})),l=vt(f?g[i]:0,i,u),i in g||(g[i]=l.start,f&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?j.prefilters.unshift(e):j.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){y(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(me).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(t,e,n,i){function o(){var e=j(this,C.extend({},t),r);(s||w.get(this,"finish"))&&e.stop(!0)}var s=C.isEmptyObject(t),r=C.speed(e,n,i);return o.finish=o,s||!1===r.queue?this.each(o):this.queue(r.queue,o)},stop:function(o,e,s){function r(e){var t=e.stop;delete e.stop,t(s)}return"string"!=typeof o&&(s=e,e=o,o=void 0),e&&this.queue(o||"fx",[]),this.each(function(){var e=!0,t=null!=o&&o+"queueHooks",n=C.timers,i=w.get(this);if(t)i[t]&&i[t].stop&&r(i[t]);else for(t in i)i[t]&&i[t].stop&&pt.test(t)&&r(i[t]);for(t=n.length;t--;)n[t].elem!==this||null!=o&&n[t].queue!==o||(n[t].anim.stop(s),e=!1,n.splice(t,1));!e&&s||C.dequeue(this,o)})},finish:function(r){return!1!==r&&(r=r||"fx"),this.each(function(){var e,t=w.get(this),n=t[r+"queue"],i=t[r+"queueHooks"],o=C.timers,s=n?n.length:0;for(t.finish=!0,C.queue(this,r,[]),i&&i.stop&&i.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===r&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete t.finish})}}),C.each(["toggle","show","hide"],function(e,i){var o=C.fn[i];C.fn[i]=function(e,t,n){return null==e||"boolean"==typeof e?o.apply(this,arguments):this.animate(mt(i,!0),e,t,n)}}),C.each({slideDown:mt("show"),slideUp:mt("hide"),slideToggle:mt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,i){C.fn[e]=function(e,t,n){return this.animate(i,e,t,n)}}),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(O=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),O=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ut||(ut=!0,ft())},C.fx.stop=function(){ut=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(i,e){return i=C.fx&&C.fx.speeds[i]||i,this.queue(e=e||"fx",function(e,t){var n=x.setTimeout(e,i);t.stop=function(){x.clearTimeout(n)}})},r=T.createElement("input"),M=T.createElement("select").appendChild(T.createElement("option")),r.type="checkbox",m.checkOn=""!==r.value,m.optSelected=M.selected,(r=T.createElement("input")).value="t",r.type="radio",m.radioValue="t"===r.value;var yt,bt=C.expr.attrHandle,wt=(C.fn.extend({attr:function(e,t){return u(this,C.attr,e,t,1<arguments.length)},removeAttr:function(e){return this.each(function(){C.removeAttr(this,e)})}}),C.extend({attr:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?C.prop(e,t,n):(1===s&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?yt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):!(o&&"get"in o&&null!==(i=o.get(e,t)))&&null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){var n;if(!m.radioValue&&"radio"===t&&l(e,"input"))return n=e.value,e.setAttribute("type",t),n&&(e.value=n),t}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(k);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),yt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(e,t){var r=bt[t]||C.find.attr;bt[t]=function(e,t,n){var i,o,s=t.toLowerCase();return n||(o=bt[s],bt[s]=i,i=null!=r(e,t,n)?s:null,bt[s]=o),i}}),/^(?:input|select|textarea|button)$/i),xt=/^(?:a|area)$/i;function N(e){return(e.match(k)||[]).join(" ")}function U(e){return e.getAttribute&&e.getAttribute("class")||""}function Tt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(k)||[]}C.fn.extend({prop:function(e,t){return u(this,C.prop,e,t,1<arguments.length)},removeProp:function(e){return this.each(function(){delete this[C.propFix[e]||e]})}}),C.extend({prop:function(e,t,n){var i,o,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||xt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(e){e=e.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(e){e=e.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,i,o,s,r,a=0;if(y(t))return this.each(function(e){C(this).addClass(t.call(this,e,U(this)))});if((e=Tt(t)).length)for(;n=this[a++];)if(r=U(n),i=1===n.nodeType&&" "+N(r)+" "){for(s=0;o=e[s++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(r=N(i))&&n.setAttribute("class",r)}return this},removeClass:function(t){var e,n,i,o,s,r,a=0;if(y(t))return this.each(function(e){C(this).removeClass(t.call(this,e,U(this)))});if(!arguments.length)return this.attr("class","");if((e=Tt(t)).length)for(;n=this[a++];)if(r=U(n),i=1===n.nodeType&&" "+N(r)+" "){for(s=0;o=e[s++];)for(;-1<i.indexOf(" "+o+" ");)i=i.replace(" "+o+" "," ");r!==(r=N(i))&&n.setAttribute("class",r)}return this},toggleClass:function(o,t){var s=typeof o,r="string"==s||Array.isArray(o);return"boolean"==typeof t&&r?t?this.addClass(o):this.removeClass(o):y(o)?this.each(function(e){C(this).toggleClass(o.call(this,e,U(this),t),t)}):this.each(function(){var e,t,n,i;if(r)for(t=0,n=C(this),i=Tt(o);e=i[t++];)n.hasClass(e)?n.removeClass(e):n.addClass(e);else void 0!==o&&"boolean"!=s||((e=U(this))&&w.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",!e&&!1!==o&&w.get(this,"__className__")||""))})},hasClass:function(e){for(var t,n=0,i=" "+e+" ";t=this[n++];)if(1===t.nodeType&&-1<(" "+N(U(t))+" ").indexOf(i))return!0;return!1}});function Ct(e){e.stopPropagation()}var kt=/\r/g,Dt=(C.fn.extend({val:function(t){var n,e,i,o=this[0];return arguments.length?(i=y(t),this.each(function(e){1===this.nodeType&&(null==(e=i?t.call(this,e,C(this).val()):t)?e="":"number"==typeof e?e+="":Array.isArray(e)&&(e=C.map(e,function(e){return null==e?"":e+""})),(n=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in n&&void 0!==n.set(this,e,"value")||(this.value=e))})):o?(n=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in n&&void 0!==(e=n.get(o,"value"))?e:"string"==typeof(e=o.value)?e.replace(kt,""):null==e?"":e:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:N(C.text(e))}},select:{get:function(e){for(var t,n=e.options,i=e.selectedIndex,o="select-one"===e.type,s=o?null:[],r=o?i+1:n.length,a=i<0?r:o?i:0;a<r;a++)if(((t=n[a]).selected||a===i)&&!t.disabled&&(!t.parentNode.disabled||!l(t.parentNode,"optgroup"))){if(t=C(t).val(),o)return t;s.push(t)}return s},set:function(e,t){for(var n,i,o=e.options,s=C.makeArray(t),r=o.length;r--;)((i=o[r]).selected=-1<C.inArray(C.valHooks.option.get(i),s))&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=-1<C.inArray(C(e).val(),t)}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),m.focusin="onfocusin"in x,/^(?:focusinfocus|focusoutblur)$/),_t=(C.extend(C.event,{trigger:function(e,t,n,i){var o,s,r,a,l,c,d,u=[n||T],h=B.call(e,"type")?e.type:e,p=B.call(e,"namespace")?e.namespace.split("."):[],f=d=s=n=n||T;if(3!==n.nodeType&&8!==n.nodeType&&!Dt.test(h+C.event.triggered)&&(-1<h.indexOf(".")&&(h=(p=h.split(".")).shift(),p.sort()),a=h.indexOf(":")<0&&"on"+h,(e=e[C.expando]?e:new C.Event(h,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:C.makeArray(t,[e]),c=C.event.special[h]||{},i||!c.trigger||!1!==c.trigger.apply(n,t))){if(!i&&!c.noBubble&&!g(n)){for(r=c.delegateType||h,Dt.test(r+h)||(f=f.parentNode);f;f=f.parentNode)u.push(f),s=f;s===(n.ownerDocument||T)&&u.push(s.defaultView||s.parentWindow||x)}for(o=0;(f=u[o++])&&!e.isPropagationStopped();)d=f,e.type=1<o?r:c.bindType||h,(l=(w.get(f,"events")||Object.create(null))[e.type]&&w.get(f,"handle"))&&l.apply(f,t),(l=a&&f[a])&&l.apply&&v(f)&&(e.result=l.apply(f,t),!1===e.result&&e.preventDefault());return e.type=h,i||e.isDefaultPrevented()||c._default&&!1!==c._default.apply(u.pop(),t)||!v(n)||a&&y(n[h])&&!g(n)&&((s=n[a])&&(n[a]=null),C.event.triggered=h,e.isPropagationStopped()&&d.addEventListener(h,Ct),n[h](),e.isPropagationStopped()&&d.removeEventListener(h,Ct),C.event.triggered=void 0,s&&(n[a]=s)),e.result}},simulate:function(e,t,n){n=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(n,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each(function(){C.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},function(n,i){function o(e){C.event.simulate(i,e.target,C.event.fix(e))}C.event.special[i]={setup:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i);t||e.addEventListener(n,o,!0),w.access(e,i,(t||0)+1)},teardown:function(){var e=this.ownerDocument||this.document||this,t=w.access(e,i)-1;t?w.access(e,i,t):(e.removeEventListener(n,o,!0),w.remove(e,i))}}}),x.location),St={guid:Date.now()},$t=/\?/,At=(C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new x.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,function(e){return e.textContent}).join("\n"):e)),t},/\[\]$/),Et=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,Mt=/^(?:input|select|textarea|keygen)/i;C.param=function(e,t){function n(e,t){t=y(t)?t():t,o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==t?"":t)}var i,o=[];if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,function(){n(this.name,this.value)});else for(i in e)!function n(i,e,o,s){if(Array.isArray(e))C.each(e,function(e,t){o||At.test(i)?s(i,t):n(i+"["+("object"==typeof t&&null!=t?e:"")+"]",t,o,s)});else if(o||"object"!==f(e))s(i,e);else for(var t in e)n(i+"["+t+"]",e[t],o,s)}(i,e[i],t,n);return o.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&Mt.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!xe.test(e))}).map(function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(e){return{name:t.name,value:e.replace(Et,"\r\n")}}):{name:t.name,value:n.replace(Et,"\r\n")}}).get()}});var jt=/%20/g,Nt=/#.*$/,Ut=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ht=/^(?:GET|HEAD)$/,Lt=/^\/\//,Rt={},Pt={},qt="*/".concat("*"),Ft=T.createElement("a");function Bt(s){return function(e,t){"string"!=typeof e&&(t=e,e="*");var n,i=0,o=e.toLowerCase().match(k)||[];if(y(t))for(;n=o[i++];)"+"===n[0]?(n=n.slice(1)||"*",(s[n]=s[n]||[]).unshift(t)):(s[n]=s[n]||[]).push(t)}}function zt(t,i,o,s){var r={},a=t===Pt;function l(e){var n;return r[e]=!0,C.each(t[e]||[],function(e,t){t=t(i,o,s);return"string"!=typeof t||a||r[t]?a?!(n=t):void 0:(i.dataTypes.unshift(t),l(t),!1)}),n}return l(i.dataTypes[0])||!r["*"]&&l("*")}function Vt(e,t){var n,i,o=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i=i||{})[n]=t[n]);return i&&C.extend(!0,e,i),e}Ft.href=_t.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:_t.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(_t.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":qt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Vt(Vt(e,C.ajaxSettings),t):Vt(C.ajaxSettings,e)},ajaxPrefilter:Bt(Rt),ajaxTransport:Bt(Pt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0);var l,c,d,n,u,h,p,i,f=C.ajaxSetup({},t=t||{}),g=f.context||f,m=f.context&&(g.nodeType||g.jquery)?C(g):C.event,v=C.Deferred(),y=C.Callbacks("once memory"),b=f.statusCode||{},o={},s={},r="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(h){if(!n)for(n={};t=It.exec(d);)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?d:null},setRequestHeader:function(e,t){return null==h&&(e=s[e.toLowerCase()]=s[e.toLowerCase()]||e,o[e]=t),this},overrideMimeType:function(e){return null==h&&(f.mimeType=e),this},statusCode:function(e){if(e)if(h)w.always(e[w.status]);else for(var t in e)b[t]=[b[t],e[t]];return this},abort:function(e){e=e||r;return l&&l.abort(e),a(0,e),this}};if(v.promise(w),f.url=((e||f.url||_t.href)+"").replace(Lt,_t.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(k)||[""],null==f.crossDomain){e=T.createElement("a");try{e.href=f.url,e.href=e.href,f.crossDomain=Ft.protocol+"//"+Ft.host!=e.protocol+"//"+e.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),zt(Rt,f,t,w),!h){for(i in(p=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ht.test(f.type),c=f.url.replace(Nt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(e=f.url.slice(c.length),f.data&&(f.processData||"string"==typeof f.data)&&(c+=($t.test(c)?"&":"?")+f.data,delete f.data),!1===f.cache&&(c=c.replace(Ut,"$1"),e=($t.test(c)?"&":"?")+"_="+St.guid+++e),f.url=c+e),f.ifModified&&(C.lastModified[c]&&w.setRequestHeader("If-Modified-Since",C.lastModified[c]),C.etag[c]&&w.setRequestHeader("If-None-Match",C.etag[c])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+qt+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(i,f.headers[i]);if(f.beforeSend&&(!1===f.beforeSend.call(g,w,f)||h))return w.abort();if(r="abort",y.add(f.complete),w.done(f.success),w.fail(f.error),l=zt(Pt,f,t,w)){if(w.readyState=1,p&&m.trigger("ajaxSend",[w,f]),h)return w;f.async&&0<f.timeout&&(u=x.setTimeout(function(){w.abort("timeout")},f.timeout));try{h=!1,l.send(o,a)}catch(e){if(h)throw e;a(-1,e)}}else a(-1,"No Transport")}return w;function a(e,t,n,i){var o,s,r,a=t;h||(h=!0,u&&x.clearTimeout(u),l=void 0,d=i||"",w.readyState=0<e?4:0,i=200<=e&&e<300||304===e,n&&(r=function(e,t,n){for(var i,o,s,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)s=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){s=o;break}r=r||o}s=s||r}if(s)return s!==l[0]&&l.unshift(s),n[s]}(f,w,n)),!i&&-1<C.inArray("script",f.dataTypes)&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),r=function(e,t,n,i){var o,s,r,a,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(s=d.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=d.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(r=c[l+" "+s]||c["* "+s]))for(o in c)if((a=o.split(" "))[1]===s&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[o]:!0!==c[o]&&(s=a[0],d.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(f,r,w,i),i?(f.ifModified&&((n=w.getResponseHeader("Last-Modified"))&&(C.lastModified[c]=n),(n=w.getResponseHeader("etag"))&&(C.etag[c]=n)),204===e||"HEAD"===f.type?a="nocontent":304===e?a="notmodified":(a=r.state,o=r.data,i=!(s=r.error))):(s=a,!e&&a||(a="error",e<0&&(e=0))),w.status=e,w.statusText=(t||a)+"",i?v.resolveWith(g,[o,a,w]):v.rejectWith(g,[w,a,s]),w.statusCode(b),b=void 0,p&&m.trigger(i?"ajaxSuccess":"ajaxError",[w,f,i?o:s]),y.fireWith(g,[w,a]),p&&(m.trigger("ajaxComplete",[w,f]),--C.active||C.event.trigger("ajaxStop")))}},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],function(e,o){C[o]=function(e,t,n,i){return y(t)&&(i=i||n,n=t,t=void 0),C.ajax(C.extend({url:e,type:o,dataType:i,data:t,success:n},C.isPlainObject(e)&&e))}}),C.ajaxPrefilter(function(e){for(var t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")}),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){return this[0]&&(y(e)&&(e=e.call(this[0])),e=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(n){return y(n)?this.each(function(e){C(this).wrapInner(n.call(this,e))}):this.each(function(){var e=C(this),t=e.contents();t.length?t.wrapAll(n):e.append(n)})},wrap:function(t){var n=y(t);return this.each(function(e){C(this).wrapAll(n?t.call(this,e):t)})},unwrap:function(e){return this.parent(e).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new x.XMLHttpRequest}catch(e){}};var Wt={0:200,1223:204},Yt=C.ajaxSettings.xhr(),Qt=(m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,C.ajaxTransport(function(o){var s,r;if(m.cors||Yt&&!o.crossDomain)return{send:function(e,t){var n,i=o.xhr();if(i.open(o.type,o.url,o.async,o.username,o.password),o.xhrFields)for(n in o.xhrFields)i[n]=o.xhrFields[n];for(n in o.mimeType&&i.overrideMimeType&&i.overrideMimeType(o.mimeType),o.crossDomain||e["X-Requested-With"]||(e["X-Requested-With"]="XMLHttpRequest"),e)i.setRequestHeader(n,e[n]);s=function(e){return function(){s&&(s=r=i.onload=i.onerror=i.onabort=i.ontimeout=i.onreadystatechange=null,"abort"===e?i.abort():"error"===e?"number"!=typeof i.status?t(0,"error"):t(i.status,i.statusText):t(Wt[i.status]||i.status,i.statusText,"text"!==(i.responseType||"text")||"string"!=typeof i.responseText?{binary:i.response}:{text:i.responseText},i.getAllResponseHeaders()))}},i.onload=s(),r=i.onerror=i.ontimeout=s("error"),void 0!==i.onabort?i.onabort=r:i.onreadystatechange=function(){4===i.readyState&&x.setTimeout(function(){s&&r()})},s=s("abort");try{i.send(o.hasContent&&o.data||null)}catch(e){if(s)throw e}},abort:function(){s&&s()}}}),C.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),C.ajaxTransport("script",function(n){var i,o;if(n.crossDomain||n.scriptAttrs)return{send:function(e,t){i=C("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",o=function(e){i.remove(),o=null,e&&t("error"===e.type?404:200,e.type)}),T.head.appendChild(i[0])},abort:function(){o&&o()}}}),[]),Kt=/(=)\?(?=&|$)|\?\?/,Gt=(C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Qt.pop()||C.expando+"_"+St.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",function(e,t,n){var i,o,s,r=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(r||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,r?e[r]=e[r].replace(Kt,"$1"+i):!1!==e.jsonp&&(e.url+=($t.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||C.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=x[i],x[i]=function(){s=arguments},n.always(function(){void 0===o?C(x).removeProp(i):x[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,Qt.push(i)),s&&y(o)&&o(s[0]),s=o=void 0}),"script"}),m.createHTMLDocument=((e=T.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===e.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=T.implementation.createHTMLDocument("")).createElement("base")).href=T.location.href,t.head.appendChild(i)):t=T),i=!n&&[],(n=X.exec(e))?[t.createElement(n[1])]:(n=_e([e],t,i),i&&i.length&&C(i).remove(),C.merge([],n.childNodes)));var i},C.fn.load=function(e,t,n){var i,o,s,r=this,a=e.indexOf(" ");return-1<a&&(i=N(e.slice(a)),e=e.slice(0,a)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),0<r.length&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done(function(e){s=arguments,r.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)}).always(n&&function(e,t){r.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},C.expr.pseudos.animated=function(t){return C.grep(C.timers,function(e){return t===e.elem}).length},C.offset={setOffset:function(e,t,n){var i,o,s,r,a=C.css(e,"position"),l=C(e),c={};"static"===a&&(e.style.position="relative"),s=l.offset(),i=C.css(e,"top"),r=C.css(e,"left"),a=("absolute"===a||"fixed"===a)&&-1<(i+r).indexOf("auto")?(o=(a=l.position()).top,a.left):(o=parseFloat(i)||0,parseFloat(r)||0),null!=(t=y(t)?t.call(e,n,C.extend({},s)):t).top&&(c.top=t.top-s.top+o),null!=t.left&&(c.left=t.left-s.left+a),"using"in t?t.using.call(e,c):l.css(c)}},C.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){C.offset.setOffset(this,t,e)});var e,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),n=n.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,i=this[0],o={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(i,"marginTop",!0),left:t.left-o.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||D})}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,o){var s="pageYOffset"===o;C.fn[t]=function(e){return u(this,function(e,t,n){var i;if(g(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[o]:e[t];i?i.scrollTo(s?i.pageXOffset:n,s?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),C.each(["top","left"],function(e,n){C.cssHooks[n]=Je(m.pixelPosition,function(e,t){if(t)return t=Ze(e,n),Qe.test(t)?C(e).position()[n]+"px":t})}),C.each({Height:"height",Width:"width"},function(r,a){C.each({padding:"inner"+r,content:a,"":"outer"+r},function(i,s){C.fn[s]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),o=i||(!0===e||!0===t?"margin":"border");return u(this,function(e,t,n){var i;return g(e)?0===s.indexOf("outer")?e["inner"+r]:e.document.documentElement["client"+r]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+r],i["scroll"+r],e.body["offset"+r],i["offset"+r],i["client"+r])):void 0===n?C.css(e,t,o):C.style(e,t,n,o)},a,n?e:void 0,n)}})}),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){C.fn[t]=function(e){return this.on(t,e)}}),C.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){C.fn[n]=function(e,t){return 0<arguments.length?this.on(n,null,e,t):this.trigger(n)}}),/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g),Xt=(C.proxy=function(e,t){var n,i;if("string"==typeof t&&(i=e[t],t=e,e=i),y(e))return n=a.call(arguments,2),(i=function(){return e.apply(t||this,n.concat(a.call(arguments)))}).guid=e.guid=e.guid||C.guid++,i},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=l,C.isFunction=y,C.isWindow=g,C.camelCase=b,C.type=f,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Gt,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return C}),x.jQuery),Zt=x.$;return C.noConflict=function(e){return x.$===C&&(x.$=Zt),e&&x.jQuery===C&&(x.jQuery=Xt),C},void 0===I&&(x.jQuery=x.$=C),C}),"undefined"==typeof jQuery)throw new Error("AdminLTE requires jQuery");if(!function(o){"use strict";function s(e,t){if(this.element=e,this.options=t,this.$overlay=o(t.overlayTemplate),""===t.source)throw new Error("Source url was not defined. Please specify a url in your BoxRefresh source option.");this._setUpListeners(),this.load()}var r="lte.boxrefresh",a={source:"",params:{},trigger:".refresh-btn",content:".box-body",loadInContent:!0,responseType:"",overlayTemplate:'<div class="overlay"><div class="fa fa-refresh fa-spin"></div></div>',onLoadStart:function(){},onLoadDone:function(e){return e}},e='[data-widget="box-refresh"]';function t(i){return this.each(function(){var e,t=o(this),n=t.data(r);if(n||(e=o.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new s(t,e))),"string"==typeof n){if(void 0===n[i])throw new Error("No method named "+i);n[i]()}})}s.prototype.load=function(){this._addOverlay(),this.options.onLoadStart.call(o(this)),o.get(this.options.source,this.options.params,function(e){this.options.loadInContent&&o(this.element).find(this.options.content).html(e),this.options.onLoadDone.call(o(this),e),this._removeOverlay()}.bind(this),""!==this.options.responseType&&this.options.responseType)},s.prototype._setUpListeners=function(){o(this.element).on("click",this.options.trigger,function(e){e&&e.preventDefault(),this.load()}.bind(this))},s.prototype._addOverlay=function(){o(this.element).append(this.$overlay)},s.prototype._removeOverlay=function(){o(this.$overlay).remove()};var n=o.fn.boxRefresh;o.fn.boxRefresh=t,o.fn.boxRefresh.Constructor=s,o.fn.boxRefresh.noConflict=function(){return o.fn.boxRefresh=n,this},o(window).on("load",function(){o(e).each(function(){t.call(o(this))})})}(jQuery),!function(o){"use strict";function s(e,t){this.element=e,this.options=t,this._setUpListeners()}var r="lte.boxwidget",a={animationSpeed:500,collapseTrigger:'[data-widget="collapse"]',removeTrigger:'[data-widget="remove"]',collapseIcon:"fa-minus",expandIcon:"fa-plus",removeIcon:"fa-times"},e=".box",t=".collapsed-box",l=".box-header",c=".box-body",d=".box-footer",u=".box-tools",h="collapsed-box",p="collapsing.boxwidget",f="collapsed.boxwidget",g="expanding.boxwidget",m="expanded.boxwidget",n="removing.boxwidget",i="removed.boxwidget";function v(i){return this.each(function(){var e,t=o(this),n=t.data(r);if(n||(e=o.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new s(t,e))),"string"==typeof i){if(void 0===n[i])throw new Error("No method named "+i);n[i]()}})}s.prototype.toggle=function(){!o(this.element).is(t)?this.collapse():this.expand()},s.prototype.expand=function(){var e=o.Event(m),t=o.Event(g),n=this.options.collapseIcon,i=this.options.expandIcon;o(this.element).removeClass(h),o(this.element).children(l+", "+c+", "+d).children(u).find("."+i).removeClass(i).addClass(n),o(this.element).children(c+", "+d).slideDown(this.options.animationSpeed,function(){o(this.element).trigger(e)}.bind(this)).trigger(t)},s.prototype.collapse=function(){var e=o.Event(f),t=o.Event(p),n=this.options.collapseIcon,i=this.options.expandIcon;o(this.element).children(l+", "+c+", "+d).children(u).find("."+n).removeClass(n).addClass(i),o(this.element).children(c+", "+d).slideUp(this.options.animationSpeed,function(){o(this.element).addClass(h),o(this.element).trigger(e)}.bind(this)).trigger(t)},s.prototype.remove=function(){var e=o.Event(i),t=o.Event(n);o(this.element).slideUp(this.options.animationSpeed,function(){o(this.element).trigger(e),o(this.element).remove()}.bind(this)).trigger(t)},s.prototype._setUpListeners=function(){var t=this;o(this.element).on("click",this.options.collapseTrigger,function(e){return e&&e.preventDefault(),t.toggle(o(this)),!1}),o(this.element).on("click",this.options.removeTrigger,function(e){return e&&e.preventDefault(),t.remove(o(this)),!1})};var y=o.fn.boxWidget;o.fn.boxWidget=v,o.fn.boxWidget.Constructor=s,o.fn.boxWidget.noConflict=function(){return o.fn.boxWidget=y,this},o(window).on("load",function(){o(e).each(function(){v.call(o(this))})})}(jQuery),!function(o){"use strict";function s(e,t){this.element=e,this.options=t,this.hasBindedResize=!1,this.init()}var r="lte.controlsidebar",a={controlsidebarSlide:!0},t=".control-sidebar",e='[data-toggle="control-sidebar"]',n=".control-sidebar-open",i=".control-sidebar-bg",l=".wrapper",c=".layout-boxed",d="control-sidebar-open",u="control-sidebar-hold-transition",h="collapsed.controlsidebar",p="expanded.controlsidebar";function f(i){return this.each(function(){var e,t=o(this),n=t.data(r);n||(e=o.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new s(t,e))),"string"==typeof i&&n.toggle()})}s.prototype.init=function(){o(this.element).is(e)||o(this).on("click",this.toggle),this.fix(),o(window).resize(function(){this.fix()}.bind(this))},s.prototype.toggle=function(e){e&&e.preventDefault(),this.fix(),o(t).is(n)||o("body").is(n)?this.collapse():this.expand()},s.prototype.expand=function(){o(t).show(),this.options.controlsidebarSlide?o(t).addClass(d):o("body").addClass(u).addClass(d).delay(50).queue(function(){o("body").removeClass(u),o(this).dequeue()}),o(this.element).trigger(o.Event(p))},s.prototype.collapse=function(){this.options.controlsidebarSlide?o(t).removeClass(d):o("body").addClass(u).removeClass(d).delay(50).queue(function(){o("body").removeClass(u),o(this).dequeue()}),o(t).fadeOut(),o(this.element).trigger(o.Event(h))},s.prototype.fix=function(){o("body").is(c)&&this._fixForBoxed(o(i))},s.prototype._fixForBoxed=function(e){e.css({position:"absolute",height:o(l).height()})};var g=o.fn.controlSidebar;o.fn.controlSidebar=f,o.fn.controlSidebar.Constructor=s,o.fn.controlSidebar.noConflict=function(){return o.fn.controlSidebar=g,this},o(document).on("click",e,function(e){e&&e.preventDefault(),f.call(o(this),"toggle")})}(jQuery),!function(i){"use strict";function o(e){this.element=e}var s="lte.directchat",e='[data-widget="chat-pane-toggle"]',t=".direct-chat",n="direct-chat-contacts-open";function r(n){return this.each(function(){var e=i(this),t=e.data(s);t||e.data(s,t=new o(e)),"string"==typeof n&&t.toggle(e)})}o.prototype.toggle=function(e){e.parents(t).first().toggleClass(n)};var a=i.fn.directChat;i.fn.directChat=r,i.fn.directChat.Constructor=o,i.fn.directChat.noConflict=function(){return i.fn.directChat=a,this},i(document).on("click",e,function(e){e&&e.preventDefault(),r.call(i(this),"toggle")})}(jQuery),!function(o){"use strict";function s(e){this.options=e,this.init()}var r="lte.pushmenu",a={collapseScreenSize:767,expandOnHover:!1,expandTransitionDelay:200},e=".sidebar-collapse",t=".main-sidebar",n=".content-wrapper",i=".sidebar-form .form-control",l='[data-toggle="push-menu"]',c=".sidebar-mini",d=".sidebar-expanded-on-hover",u=".fixed",h="sidebar-collapse",p="sidebar-open",f="sidebar-expanded-on-hover",g="sidebar-mini-expand-feature",m="expanded.pushMenu",v="collapsed.pushMenu";function y(i){return this.each(function(){var e,t=o(this),n=t.data(r);n||(e=o.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new s(e))),"toggle"===i&&n.toggle()})}s.prototype.init=function(){(this.options.expandOnHover||o("body").is(c+u))&&(this.expandOnHover(),o("body").addClass(g)),o(n).click(function(){o(window).width()<=this.options.collapseScreenSize&&o("body").hasClass(p)&&this.close()}.bind(this)),o(i).click(function(e){e.stopPropagation()})},s.prototype.toggle=function(){var e=o(window).width(),t=!o("body").hasClass(h);(t=e<=this.options.collapseScreenSize?o("body").hasClass(p):t)?this.close():this.open()},s.prototype.open=function(){(o(window).width()>this.options.collapseScreenSize?o("body").removeClass(h):o("body").addClass(p)).trigger(o.Event(m))},s.prototype.close=function(){(o(window).width()>this.options.collapseScreenSize?o("body").addClass(h):o("body").removeClass(p+" "+h)).trigger(o.Event(v))},s.prototype.expandOnHover=function(){o(t).hover(function(){o("body").is(c+e)&&o(window).width()>this.options.collapseScreenSize&&this.expand()}.bind(this),function(){o("body").is(d)&&this.collapse()}.bind(this))},s.prototype.expand=function(){setTimeout(function(){o("body").removeClass(h).addClass(f)},this.options.expandTransitionDelay)},s.prototype.collapse=function(){setTimeout(function(){o("body").removeClass(f).addClass(h)},this.options.expandTransitionDelay)};var b=o.fn.pushMenu;o.fn.pushMenu=y,o.fn.pushMenu.Constructor=s,o.fn.pushMenu.noConflict=function(){return o.fn.pushMenu=b,this},o(document).on("click",l,function(e){e.preventDefault(),y.call(o(this),"toggle")}),o(window).on("load",function(){y.call(o(l))})}(jQuery),!function(o){"use strict";function s(e,t){this.element=e,this.options=t,this._setUpListeners()}var r="lte.todolist",a={onCheck:function(e){return e},onUnCheck:function(e){return e}},t={data:'[data-widget="todo-list"]'},n="done";function e(i){return this.each(function(){var e,t=o(this),n=t.data(r);if(n||(e=o.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new s(t,e))),"string"==typeof n){if(void 0===n[i])throw new Error("No method named "+i);n[i]()}})}s.prototype.toggle=function(e){e.parents(t.li).first().toggleClass(n),e.prop("checked")?this.check(e):this.unCheck(e)},s.prototype.check=function(e){this.options.onCheck.call(e)},s.prototype.unCheck=function(e){this.options.onUnCheck.call(e)},s.prototype._setUpListeners=function(){var e=this;o(this.element).on("change ifChanged","input:checkbox",function(){e.toggle(o(this))})};var i=o.fn.todoList;o.fn.todoList=e,o.fn.todoList.Constructor=s,o.fn.todoList.noConflict=function(){return o.fn.todoList=i,this},o(window).on("load",function(){o(t.data).each(function(){e.call(o(this))})})}(jQuery),!function(s){"use strict";function i(e,t){this.element=e,this.options=t,s(this.element).addClass(u),s(a+n,this.element).addClass(d),this._setUpListeners()}var o="lte.tree",r={animationSpeed:10,accordion:!0,followLink:!1,trigger:".treeview a"},a=".treeview",l=".treeview-menu",c=".menu-open, .active",e='[data-widget="tree"]',n=".active",d="menu-open",u="tree",h="collapsed.tree",p="expanded.tree";function t(n){return this.each(function(){var e,t=s(this);t.data(o)||(e=s.extend({},r,t.data(),"object"==typeof n&&n),t.data(o,new i(t,e)))})}i.prototype.toggle=function(e,t){var n=e.next(l),i=e.parent(),o=i.hasClass(d);i.is(a)&&(this.options.followLink&&"#"!==e.attr("href")||t.preventDefault(),o?this.collapse(n,i):this.expand(n,i))},i.prototype.expand=function(e,t){var n,i,o=s.Event(p);this.options.accordion&&(i=(n=t.siblings(c)).children(l),this.collapse(i,n)),t.addClass(d),e.stop().slideDown(this.options.animationSpeed,function(){s(this.element).trigger(o),t.height("auto")}.bind(this))},i.prototype.collapse=function(e,t){var n=s.Event(h);t.removeClass(d),e.stop().slideUp(this.options.animationSpeed,function(){s(this.element).trigger(n),t.find(a).removeClass(d).find(l).hide()}.bind(this))},i.prototype._setUpListeners=function(){var t=this;s(this.element).on("click",this.options.trigger,function(e){t.toggle(s(this),e)})};var f=s.fn.tree;s.fn.tree=t,s.fn.tree.Constructor=i,s.fn.tree.noConflict=function(){return s.fn.tree=f,this},s(window).on("load",function(){s(e).each(function(){t.call(s(this))})})}(jQuery),!function(s){"use strict";function o(e){this.options=e,this.bindedResize=!1,this.activate()}var r="lte.layout",a={slimscroll:!0,resetHeight:!0},l=".wrapper",c=".content-wrapper",d=".layout-boxed",u=".main-footer",h=".main-header",e=".main-sidebar",t="slimScrollDiv",p=".sidebar",f=".control-sidebar",n=".sidebar-menu",i=".main-header .logo",g="fixed",m="hold-transition";function v(i){return this.each(function(){var e,t=s(this),n=t.data(r);if(n||(e=s.extend({},a,t.data(),"object"==typeof i&&i),t.data(r,n=new o(e))),"string"==typeof i){if(void 0===n[i])throw new Error("No method named "+i);n[i]()}})}o.prototype.activate=function(){this.fix(),this.fixSidebar(),s("body").removeClass(m),this.options.resetHeight&&s("body, html, "+l).css({height:"auto","min-height":"100%"}),this.bindedResize||(s(window).resize(function(){this.fix(),this.fixSidebar(),s(i+", "+p).one("webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend",function(){this.fix(),this.fixSidebar()}.bind(this))}.bind(this)),this.bindedResize=!0),s(n).on("expanded.tree",function(){this.fix(),this.fixSidebar()}.bind(this)),s(n).on("collapsed.tree",function(){this.fix(),this.fixSidebar()}.bind(this))},o.prototype.fix=function(){s(d+" > "+l).css("overflow","hidden");var e=s(u).outerHeight()||0,t=s(h).outerHeight()||0,n=t+e,i=s(window).height(),o=s(p).outerHeight()||0;s("body").hasClass(g)?s(c).css("min-height",i-e):(e=o+t<=i?(s(c).css("min-height",i-n),i-n):(s(c).css("min-height",o),o),void 0!==(t=s(f))&&t.height()>e&&s(c).css("min-height",t.height()))},o.prototype.fixSidebar=function(){s("body").hasClass(g)?this.options.slimscroll&&void 0!==s.fn.slimScroll&&0===s(e).find(t).length&&s(p).slimScroll({height:s(window).height()-s(h).height()+"px"}):void 0!==s.fn.slimScroll&&s(p).slimScroll({destroy:!0}).height("auto")};var y=s.fn.layout;s.fn.layout=v,s.fn.layout.Constuctor=o,s.fn.layout.noConflict=function(){return s.fn.layout=y,this},s(window).on("load",function(){v.call(s("body"))})}(jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||3<e[0])throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),!function(i){"use strict";i.fn.emulateTransitionEnd=function(e){var t=!1,n=this;i(this).one("bsTransitionEnd",function(){t=!0});return setTimeout(function(){t||i(n).trigger(i.support.transition.end)},e),this},i(function(){i.support.transition=function(){var e,t=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(e in n)if(void 0!==t.style[e])return{end:n[e]};return!1}(),i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(e){if(i(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),!function(s){"use strict";function r(e){s(e).on("click",t,this.close)}var t='[data-dismiss="alert"]';r.VERSION="3.4.1",r.TRANSITION_DURATION=150,r.prototype.close=function(e){var t=s(this),n=t.attr("data-target"),i=(n="#"===(n=n||(n=t.attr("href"))&&n.replace(/.*(?=#[^\s]*$)/,""))?[]:n,s(document).find(n));function o(){i.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),(i=i.length?i:t.closest(".alert")).trigger(e=s.Event("close.bs.alert")),e.isDefaultPrevented()||(i.removeClass("in"),s.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(r.TRANSITION_DURATION):o())};var e=s.fn.alert;s.fn.alert=function(n){return this.each(function(){var e=s(this),t=e.data("bs.alert");t||e.data("bs.alert",t=new r(this)),"string"==typeof n&&t[n].call(e)})},s.fn.alert.Constructor=r,s.fn.alert.noConflict=function(){return s.fn.alert=e,this},s(document).on("click.bs.alert.data-api",t,r.prototype.close)}(jQuery),!function(s){"use strict";function i(e,t){this.$element=s(e),this.options=s.extend({},i.DEFAULTS,t),this.isLoading=!1}function n(n){return this.each(function(){var e=s(this),t=e.data("bs.button");t||e.data("bs.button",t=new i(this,"object"==typeof n&&n)),"toggle"==n?t.toggle():n&&t.setState(n)})}i.VERSION="3.4.1",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var t="disabled",n=this.$element,i=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[i]()),setTimeout(s.proxy(function(){n[i]((null==o[e]?this.options:o)[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(t).attr(t,t).prop(t,!0)):this.isLoading&&(this.isLoading=!1,n.removeClass(t).removeAttr(t).prop(t,!1))},this),0)},i.prototype.toggle=function(){var e,t=!0,n=this.$element.closest('[data-toggle="buttons"]');n.length?("radio"==(e=this.$element.find("input")).prop("type")?(e.prop("checked")&&(t=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==e.prop("type")&&(e.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),e.prop("checked",this.$element.hasClass("active")),t&&e.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};var e=s.fn.button;s.fn.button=n,s.fn.button.Constructor=i,s.fn.button.noConflict=function(){return s.fn.button=e,this},s(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var t=s(e.target).closest(".btn");n.call(t,"toggle"),s(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),(t.is("input,button")?t:t.find("input:visible,button:visible").first()).trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){s(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),!function(c){"use strict";function d(e,t){this.$element=c(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=t,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",c.proxy(this.keydown,this)),"hover"!=this.options.pause||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",c.proxy(this.pause,this)).on("mouseleave.bs.carousel",c.proxy(this.cycle,this))}function o(o){return this.each(function(){var e=c(this),t=e.data("bs.carousel"),n=c.extend({},d.DEFAULTS,e.data(),"object"==typeof o&&o),i="string"==typeof o?o:n.slide;t||e.data("bs.carousel",t=new d(this,n)),"number"==typeof o?t.to(o):i?t[i]():n.interval&&t.pause().cycle()})}d.VERSION="3.4.1",d.TRANSITION_DURATION=600,d.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},d.prototype.keydown=function(e){if(!/input|textarea/i.test(e.target.tagName)){switch(e.which){case 37:this.prev();break;case 39:this.next();break;default:return}e.preventDefault()}},d.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(c.proxy(this.next,this),this.options.interval)),this},d.prototype.getItemIndex=function(e){return this.$items=e.parent().children(".item"),this.$items.index(e||this.$active)},d.prototype.getItemForDirection=function(e,t){var n=this.getItemIndex(t);if(("prev"==e&&0===n||"next"==e&&n==this.$items.length-1)&&!this.options.wrap)return t;t=(n+("prev"==e?-1:1))%this.$items.length;return this.$items.eq(t)},d.prototype.to=function(e){var t=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(e>this.$items.length-1||e<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){t.to(e)}):n==e?this.pause().cycle():this.slide(n<e?"next":"prev",this.$items.eq(e))},d.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&c.support.transition&&(this.$element.trigger(c.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){if(!this.sliding)return this.slide("next")},d.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},d.prototype.slide=function(e,t){var n=this.$element.find(".item.active"),i=t||this.getItemForDirection(e,n),t=this.interval,o="next"==e?"left":"right",s=this;if(i.hasClass("active"))return this.sliding=!1;var r,a=i[0],l=c.Event("slide.bs.carousel",{relatedTarget:a,direction:o});if(this.$element.trigger(l),!l.isDefaultPrevented())return this.sliding=!0,t&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),(l=c(this.$indicators.children()[this.getItemIndex(i)]))&&l.addClass("active")),r=c.Event("slid.bs.carousel",{relatedTarget:a,direction:o}),c.support.transition&&this.$element.hasClass("slide")?(i.addClass(e),"object"==typeof i&&i.length&&i[0].offsetWidth,n.addClass(o),i.addClass(o),n.one("bsTransitionEnd",function(){i.removeClass([e,o].join(" ")).addClass("active"),n.removeClass(["active",o].join(" ")),s.sliding=!1,setTimeout(function(){s.$element.trigger(r)},0)}).emulateTransitionEnd(d.TRANSITION_DURATION)):(n.removeClass("active"),i.addClass("active"),this.sliding=!1,this.$element.trigger(r)),t&&this.cycle(),this};function e(e){var t,n=c(this),i=(i=n.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""),i=n.attr("data-target")||i;(i=c(document).find(i)).hasClass("carousel")&&(t=c.extend({},i.data(),n.data()),(n=n.attr("data-slide-to"))&&(t.interval=!1),o.call(i,t),n&&i.data("bs.carousel").to(n),e.preventDefault())}var t=c.fn.carousel;c.fn.carousel=o,c.fn.carousel.Constructor=d,c.fn.carousel.noConflict=function(){return c.fn.carousel=t,this};c(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),c(window).on("load",function(){c('[data-ride="carousel"]').each(function(){var e=c(this);o.call(e,e.data())})})}(jQuery),!function(o){"use strict";function s(e,t){this.$element=o(e),this.options=o.extend({},s.DEFAULTS,t),this.$trigger=o('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()}function n(e){e=e.attr("data-target")||(e=e.attr("href"))&&e.replace(/.*(?=#[^\s]+$)/,"");return o(document).find(e)}function r(i){return this.each(function(){var e=o(this),t=e.data("bs.collapse"),n=o.extend({},s.DEFAULTS,e.data(),"object"==typeof i&&i);!t&&n.toggle&&/show|hide/.test(i)&&(n.toggle=!1),t||e.data("bs.collapse",t=new s(this,n)),"string"==typeof i&&t[i]()})}s.VERSION="3.4.1",s.TRANSITION_DURATION=350,s.DEFAULTS={toggle:!0},s.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},s.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(i=e.data("bs.collapse"))&&i.transitioning)){var t=o.Event("show.bs.collapse");if(this.$element.trigger(t),!t.isDefaultPrevented()){e&&e.length&&(r.call(e,"hide"),i||e.data("bs.collapse",null));var n=this.dimension(),t=(this.$element.removeClass("collapse").addClass("collapsing")[n](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,function(){this.$element.removeClass("collapsing").addClass("collapse in")[n](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")});if(!o.support.transition)return t.call(this);var i=o.camelCase(["scroll",n].join("-"));this.$element.one("bsTransitionEnd",o.proxy(t,this)).emulateTransitionEnd(s.TRANSITION_DURATION)[n](this.$element[0][i])}}}},s.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=o.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var e=this.dimension(),t=(this.$element[e](this.$element[e]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")});if(!o.support.transition)return t.call(this);this.$element[e](0).one("bsTransitionEnd",o.proxy(t,this)).emulateTransitionEnd(s.TRANSITION_DURATION)}}},s.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},s.prototype.getParent=function(){return o(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(o.proxy(function(e,t){t=o(t);this.addAriaAndCollapsedClass(n(t),t)},this)).end()},s.prototype.addAriaAndCollapsedClass=function(e,t){var n=e.hasClass("in");e.attr("aria-expanded",n),t.toggleClass("collapsed",!n).attr("aria-expanded",n)};var e=o.fn.collapse;o.fn.collapse=r,o.fn.collapse.Constructor=s,o.fn.collapse.noConflict=function(){return o.fn.collapse=e,this},o(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var t=o(this),e=(t.attr("data-target")||e.preventDefault(),n(t)),t=e.data("bs.collapse")?"toggle":t.data();r.call(e,t)})}(jQuery),!function(o){"use strict";function i(e){o(e).on("click.bs.dropdown",this.toggle)}var s='[data-toggle="dropdown"]';function r(e){var t=e.attr("data-target"),t="#"!==(t=t||(t=e.attr("href"))&&/#[A-Za-z]/.test(t)&&t.replace(/.*(?=#[^\s]*$)/,""))?o(document).find(t):null;return t&&t.length?t:e.parent()}function a(i){i&&3===i.which||(o(".dropdown-backdrop").remove(),o(s).each(function(){var e=o(this),t=r(e),n={relatedTarget:this};!t.hasClass("open")||i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&o.contains(t[0],i.target)||(t.trigger(i=o.Event("hide.bs.dropdown",n)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),t.removeClass("open").trigger(o.Event("hidden.bs.dropdown",n))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(e){var t=o(this);if(!t.is(".disabled, :disabled")){var n=r(t),i=n.hasClass("open");if(a(),!i){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&o(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(o(this)).on("click",a);i={relatedTarget:this};if(n.trigger(e=o.Event("show.bs.dropdown",i)),e.isDefaultPrevented())return;t.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(o.Event("shown.bs.dropdown",i))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var t=o(this);if(e.preventDefault(),e.stopPropagation(),!t.is(".disabled, :disabled")){var n=r(t),i=n.hasClass("open");if(!i&&27!=e.which||i&&27==e.which)return 27==e.which&&n.find(s).trigger("focus"),t.trigger("click");i=n.find(".dropdown-menu li:not(.disabled):visible a");i.length&&(t=i.index(e.target),38==e.which&&0<t&&t--,40==e.which&&t<i.length-1&&t++,i.eq(t=~t?t:0).trigger("focus"))}}};var e=o.fn.dropdown;o.fn.dropdown=function(n){return this.each(function(){var e=o(this),t=e.data("bs.dropdown");t||e.data("bs.dropdown",t=new i(this)),"string"==typeof n&&t[n].call(e)})},o.fn.dropdown.Constructor=i,o.fn.dropdown.noConflict=function(){return o.fn.dropdown=e,this},o(document).on("click.bs.dropdown.data-api",a).on("click.bs.dropdown.data-api",".dropdown form",function(e){e.stopPropagation()}).on("click.bs.dropdown.data-api",s,i.prototype.toggle).on("keydown.bs.dropdown.data-api",s,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),!function(s){"use strict";function r(e,t){this.options=t,this.$body=s(document.body),this.$element=s(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,s.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))}function a(i,o){return this.each(function(){var e=s(this),t=e.data("bs.modal"),n=s.extend({},r.DEFAULTS,e.data(),"object"==typeof i&&i);t||e.data("bs.modal",t=new r(this,n)),"string"==typeof i?t[i](o):n.show&&t.show(o)})}r.VERSION="3.4.1",r.TRANSITION_DURATION=300,r.BACKDROP_TRANSITION_DURATION=150,r.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},r.prototype.toggle=function(e){return this.isShown?this.hide():this.show(e)},r.prototype.show=function(n){var i=this,e=s.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(e),this.isShown||e.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',s.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){s(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var e=s.support.transition&&i.$element.hasClass("fade"),t=(i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),e&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus(),s.Event("shown.bs.modal",{relatedTarget:n}));e?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(t)}).emulateTransitionEnd(r.TRANSITION_DURATION):i.$element.trigger("focus").trigger(t)}))},r.prototype.hide=function(e){e&&e.preventDefault(),e=s.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),s(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),s.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",s.proxy(this.hideModal,this)).emulateTransitionEnd(r.TRANSITION_DURATION):this.hideModal())},r.prototype.enforceFocus=function(){s(document).off("focusin.bs.modal").on("focusin.bs.modal",s.proxy(function(e){document===e.target||this.$element[0]===e.target||this.$element.has(e.target).length||this.$element.trigger("focus")},this))},r.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",s.proxy(function(e){27==e.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},r.prototype.resize=function(){this.isShown?s(window).on("resize.bs.modal",s.proxy(this.handleUpdate,this)):s(window).off("resize.bs.modal")},r.prototype.hideModal=function(){var e=this;this.$element.hide(),this.backdrop(function(){e.$body.removeClass("modal-open"),e.resetAdjustments(),e.resetScrollbar(),e.$element.trigger("hidden.bs.modal")})},r.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},r.prototype.backdrop=function(e){var t,n=this,i=this.$element.hasClass("fade")?"fade":"";this.isShown&&this.options.backdrop?(t=s.support.transition&&i,this.$backdrop=s(document.createElement("div")).addClass("modal-backdrop "+i).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",s.proxy(function(e){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),t&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),e&&(t?this.$backdrop.one("bsTransitionEnd",e).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):e())):!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),i=function(){n.removeBackdrop(),e&&e()},s.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(r.BACKDROP_TRANSITION_DURATION):i()):e&&e()},r.prototype.handleUpdate=function(){this.adjustDialog()},r.prototype.adjustDialog=function(){var e=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},r.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},r.prototype.checkScrollbar=function(){var e,t=window.innerWidth;t||(t=(e=document.documentElement.getBoundingClientRect()).right-Math.abs(e.left)),this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},r.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10),o=(this.originalBodyPad=document.body.style.paddingRight||"",this.scrollbarWidth);this.bodyIsOverflowing&&(this.$body.css("padding-right",e+o),s(this.fixedContent).each(function(e,t){var n=t.style.paddingRight,i=s(t).css("padding-right");s(t).data("padding-right",n).css("padding-right",parseFloat(i)+o+"px")}))},r.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),s(this.fixedContent).each(function(e,t){var n=s(t).data("padding-right");s(t).removeData("padding-right"),t.style.paddingRight=n||""})},r.prototype.measureScrollbar=function(){var e=document.createElement("div"),t=(e.className="modal-scrollbar-measure",this.$body.append(e),e.offsetWidth-e.clientWidth);return this.$body[0].removeChild(e),t};var e=s.fn.modal;s.fn.modal=a,s.fn.modal.Constructor=r,s.fn.modal.noConflict=function(){return s.fn.modal=e,this},s(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var t=s(this),n=t.attr("href"),i=t.attr("data-target")||n&&n.replace(/.*(?=#[^\s]+$)/,""),o=s(document).find(i),i=o.data("bs.modal")?"toggle":s.extend({remote:!/#/.test(n)&&n},o.data(),t.data());t.is("a")&&e.preventDefault(),o.one("show.bs.modal",function(e){e.isDefaultPrevented()||o.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})}),a.call(o,i,this)})}(jQuery),!function(p){"use strict";var i=["sanitize","whiteList","sanitizeFn"],f=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],e={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},g=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,m=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;function o(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;for(var n=document.implementation.createHTMLDocument("sanitization"),i=(n.body.innerHTML=e,p.map(t,function(e,t){return t})),o=p(n.body).find("*"),s=0,r=o.length;s<r;s++){var a=o[s],l=a.nodeName.toLowerCase();if(-1===p.inArray(l,i))a.parentNode.removeChild(a);else for(var c=p.map(a.attributes,function(e){return e}),d=[].concat(t["*"]||[],t[l]||[]),u=0,h=c.length;u<h;u++)!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==p.inArray(n,t))return-1===p.inArray(n,f)||Boolean(e.nodeValue.match(g)||e.nodeValue.match(m));for(var i=p(t).filter(function(e,t){return t instanceof RegExp}),o=0,s=i.length;o<s;o++)if(n.match(i[o]))return 1}(c[u],d)&&a.removeAttribute(c[u].nodeName)}return n.body.innerHTML}function l(e,t){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",e,t)}l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:e},l.prototype.init=function(e,t,n){if(this.enabled=!0,this.type=e,this.$element=p(t),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&p(document).find(p.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var i=this.options.trigger.split(" "),o=i.length;o--;){var s,r=i[o];"click"==r?this.$element.on("click."+this.type,this.options.selector,p.proxy(this.toggle,this)):"manual"!=r&&(s="hover"==r?"mouseleave":"focusout",this.$element.on(("hover"==r?"mouseenter":"focusin")+"."+this.type,this.options.selector,p.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,p.proxy(this.leave,this)))}this.options.selector?this._options=p.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(e){var t,n=this.$element.data();for(t in n)n.hasOwnProperty(t)&&-1!==p.inArray(t,i)&&delete n[t];return(e=p.extend({},this.getDefaults(),n,e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e.sanitize&&(e.template=o(e.template,e.whiteList,e.sanitizeFn)),e},l.prototype.getDelegateOptions=function(){var n={},i=this.getDefaults();return this._options&&p.each(this._options,function(e,t){i[e]!=t&&(n[e]=t)}),n},l.prototype.enter=function(e){var t=e instanceof this.constructor?e:p(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),p(e.currentTarget).data("bs."+this.type,t)),e instanceof p.Event&&(t.inState["focusin"==e.type?"focus":"hover"]=!0),t.tip().hasClass("in")||"in"==t.hoverState)t.hoverState="in";else{if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},l.prototype.leave=function(e){var t=e instanceof this.constructor?e:p(e.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),p(e.currentTarget).data("bs."+this.type,t)),e instanceof p.Event&&(t.inState["focusout"==e.type?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)}},l.prototype.show=function(){var t,e,n,i,o,s,r,a=p.Event("show.bs."+this.type);this.hasContent()&&this.enabled&&(this.$element.trigger(a),o=p.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),!a.isDefaultPrevented()&&o&&(a=(t=this).tip(),o=this.getUID(this.type),this.setContent(),a.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&a.addClass("fade"),o="function"==typeof this.options.placement?this.options.placement.call(this,a[0],this.$element[0]):this.options.placement,(r=(e=/\s?auto?\s?/i).test(o))&&(o=o.replace(e,"")||"top"),a.detach().css({top:0,left:0,display:"block"}).addClass(o).data("bs."+this.type,this),this.options.container?a.appendTo(p(document).find(this.options.container)):a.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type),e=this.getPosition(),n=a[0].offsetWidth,i=a[0].offsetHeight,r&&(r=o,s=this.getPosition(this.$viewport),o="bottom"==o&&e.bottom+i>s.bottom?"top":"top"==o&&e.top-i<s.top?"bottom":"right"==o&&e.right+n>s.width?"left":"left"==o&&e.left-n<s.left?"right":o,a.removeClass(r).addClass(o)),s=this.getCalculatedOffset(o,e,n,i),this.applyPlacement(s,o),r=function(){var e=t.hoverState;t.$element.trigger("shown.bs."+t.type),t.hoverState=null,"out"==e&&t.leave(t)},p.support.transition&&this.$tip.hasClass("fade")?a.one("bsTransitionEnd",r).emulateTransitionEnd(l.TRANSITION_DURATION):r()))},l.prototype.applyPlacement=function(e,t){var n=this.tip(),i=n[0].offsetWidth,o=n[0].offsetHeight,s=parseInt(n.css("margin-top"),10),r=parseInt(n.css("margin-left"),10),s=(isNaN(s)&&(s=0),isNaN(r)&&(r=0),e.top+=s,e.left+=r,p.offset.setOffset(n[0],p.extend({using:function(e){n.css({top:Math.round(e.top),left:Math.round(e.left)})}},e),0),n.addClass("in"),n[0].offsetWidth),r=n[0].offsetHeight,a=("top"==t&&r!=o&&(e.top=e.top+o-r),this.getViewportAdjustedDelta(t,e,s,r)),t=(a.left?e.left+=a.left:e.top+=a.top,/top|bottom/.test(t)),i=t?2*a.left-i+s:2*a.top-o+r,s=t?"offsetWidth":"offsetHeight";n.offset(e),this.replaceArrow(i,n[0][s],t)},l.prototype.replaceArrow=function(e,t,n){this.arrow().css(n?"left":"top",50*(1-e/t)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var e=this.tip(),t=this.getTitle();this.options.html?(this.options.sanitize&&(t=o(t,this.options.whiteList,this.options.sanitizeFn)),e.find(".tooltip-inner").html(t)):e.find(".tooltip-inner").text(t),e.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var t=this,n=p(this.$tip),i=p.Event("hide.bs."+this.type);function o(){"in"!=t.hoverState&&n.detach(),t.$element&&t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type),e&&e()}if(this.$element.trigger(i),!i.isDefaultPrevented())return n.removeClass("in"),p.support.transition&&n.hasClass("fade")?n.one("bsTransitionEnd",o).emulateTransitionEnd(l.TRANSITION_DURATION):o(),this.hoverState=null,this},l.prototype.fixTitle=function(){var e=this.$element;!e.attr("title")&&"string"==typeof e.attr("data-original-title")||e.attr("data-original-title",e.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var t=(e=e||this.$element)[0],n="BODY"==t.tagName,i=t.getBoundingClientRect(),t=(null==i.width&&(i=p.extend({},i,{width:i.right-i.left,height:i.bottom-i.top})),window.SVGElement&&t instanceof window.SVGElement),t=n?{top:0,left:0}:t?null:e.offset(),e={scroll:n?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},n=n?{width:p(window).width(),height:p(window).height()}:null;return p.extend({},i,e,n,t)},l.prototype.getCalculatedOffset=function(e,t,n,i){return"bottom"==e?{top:t.top+t.height,left:t.left+t.width/2-n/2}:"top"==e?{top:t.top-i,left:t.left+t.width/2-n/2}:"left"==e?{top:t.top+t.height/2-i/2,left:t.left-n}:{top:t.top+t.height/2-i/2,left:t.left+t.width}},l.prototype.getViewportAdjustedDelta=function(e,t,n,i){var o,s,r={top:0,left:0};return this.$viewport&&(o=this.options.viewport&&this.options.viewport.padding||0,s=this.getPosition(this.$viewport),/right|left/.test(e)?(e=t.top-o-s.scroll,i=t.top+o-s.scroll+i,e<s.top?r.top=s.top-e:i>s.top+s.height&&(r.top=s.top+s.height-i)):(e=t.left-o,i=t.left+o+n,e<s.left?r.left=s.left-e:i>s.right&&(r.left=s.left+s.width-i))),r},l.prototype.getTitle=function(){var e=this.$element,t=this.options;return e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},l.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},l.prototype.tip=function(){if(this.$tip||(this.$tip=p(this.options.template),1==this.$tip.length))return this.$tip;throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!")},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var t=this;e&&!(t=p(e.currentTarget).data("bs."+this.type))&&(t=new this.constructor(e.currentTarget,this.getDelegateOptions()),p(e.currentTarget).data("bs."+this.type,t)),e?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)},l.prototype.destroy=function(){var e=this;clearTimeout(this.timeout),this.hide(function(){e.$element.off("."+e.type).removeData("bs."+e.type),e.$tip&&e.$tip.detach(),e.$tip=null,e.$arrow=null,e.$viewport=null,e.$element=null})},l.prototype.sanitizeHtml=function(e){return o(e,this.options.whiteList,this.options.sanitizeFn)};var t=p.fn.tooltip;p.fn.tooltip=function(i){return this.each(function(){var e=p(this),t=e.data("bs.tooltip"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.tooltip",t=new l(this,n)),"string"==typeof i&&t[i]())})},p.fn.tooltip.Constructor=l,p.fn.tooltip.noConflict=function(){return p.fn.tooltip=t,this}}(jQuery),!function(o){"use strict";function s(e,t){this.init("popover",e,t)}if(!o.fn.tooltip)throw new Error("Popover requires tooltip.js");s.VERSION="3.4.1",s.DEFAULTS=o.extend({},o.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),((s.prototype=o.extend({},o.fn.tooltip.Constructor.prototype)).constructor=s).prototype.getDefaults=function(){return s.DEFAULTS},s.prototype.setContent=function(){var e,t=this.tip(),n=this.getTitle(),i=this.getContent();this.options.html?(e=typeof i,this.options.sanitize&&(n=this.sanitizeHtml(n),"string"==e&&(i=this.sanitizeHtml(i))),t.find(".popover-title").html(n),t.find(".popover-content").children().detach().end()["string"==e?"html":"append"](i)):(t.find(".popover-title").text(n),t.find(".popover-content").children().detach().end().text(i)),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},s.prototype.hasContent=function(){return this.getTitle()||this.getContent()},s.prototype.getContent=function(){var e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},s.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=o.fn.popover;o.fn.popover=function(i){return this.each(function(){var e=o(this),t=e.data("bs.popover"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.popover",t=new s(this,n)),"string"==typeof i&&t[i]())})},o.fn.popover.Constructor=s,o.fn.popover.noConflict=function(){return o.fn.popover=e,this}}(jQuery),!function(o){"use strict";function i(e,t){this.$body=o(document.body),this.$scrollElement=o(e).is(document.body)?o(window):o(e),this.options=o.extend({},i.DEFAULTS,t),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",o.proxy(this.process,this)),this.refresh(),this.process()}function t(n){return this.each(function(){var e=o(this),t=e.data("bs.scrollspy");t||e.data("bs.scrollspy",t=new i(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})}i.VERSION="3.4.1",i.DEFAULTS={offset:10},i.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},i.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),o.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=o(this),e=e.data("target")||e.attr("href"),t=/^#./.test(e)&&o(e);return t&&t.length&&t.is(":visible")?[[t[n]().top+i,e]]:null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},i.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),o=this.offsets,s=this.targets,r=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return r!=(e=s[s.length-1])&&this.activate(e);if(r&&t<o[0])return this.activeTarget=null,this.clear();for(e=o.length;e--;)r!=s[e]&&t>=o[e]&&(void 0===o[e+1]||t<o[e+1])&&this.activate(s[e])},i.prototype.activate=function(e){this.activeTarget=e,this.clear();e=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',e=o(e).parents("li").addClass("active");(e=e.parent(".dropdown-menu").length?e.closest("li.dropdown").addClass("active"):e).trigger("activate.bs.scrollspy")},i.prototype.clear=function(){o(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var e=o.fn.scrollspy;o.fn.scrollspy=t,o.fn.scrollspy.Constructor=i,o.fn.scrollspy.noConflict=function(){return o.fn.scrollspy=e,this},o(window).on("load.bs.scrollspy.data-api",function(){o('[data-spy="scroll"]').each(function(){var e=o(this);t.call(e,e.data())})})}(jQuery),!function(r){"use strict";function a(e){this.element=r(e)}function t(n){return this.each(function(){var e=r(this),t=e.data("bs.tab");t||e.data("bs.tab",t=new a(this)),"string"==typeof n&&t[n]()})}a.VERSION="3.4.1",a.TRANSITION_DURATION=150,a.prototype.show=function(){var e,t,n,i=this.element,o=i.closest("ul:not(.dropdown-menu)"),s=(s=i.data("target"))||(s=i.attr("href"))&&s.replace(/.*(?=#[^\s]*$)/,"");i.parent("li").hasClass("active")||(e=o.find(".active:last a"),t=r.Event("hide.bs.tab",{relatedTarget:i[0]}),n=r.Event("show.bs.tab",{relatedTarget:e[0]}),e.trigger(t),i.trigger(n),n.isDefaultPrevented()||t.isDefaultPrevented()||(n=r(document).find(s),this.activate(i.closest("li"),o),this.activate(n,n.parent(),function(){e.trigger({type:"hidden.bs.tab",relatedTarget:i[0]}),i.trigger({type:"shown.bs.tab",relatedTarget:e[0]})})))},a.prototype.activate=function(e,t,n){var i=t.find("> .active"),o=n&&r.support.transition&&(i.length&&i.hasClass("fade")||!!t.find("> .fade").length);function s(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),o?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),n&&n()}i.length&&o?i.one("bsTransitionEnd",s).emulateTransitionEnd(a.TRANSITION_DURATION):s(),i.removeClass("in")};function e(e){e.preventDefault(),t.call(r(this),"show")}var n=r.fn.tab;r.fn.tab=t,r.fn.tab.Constructor=a,r.fn.tab.noConflict=function(){return r.fn.tab=n,this};r(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),!function(r){"use strict";function a(e,t){this.options=r.extend({},a.DEFAULTS,t),t=this.options.target===a.DEFAULTS.target?r(this.options.target):r(document).find(this.options.target),this.$target=t.on("scroll.bs.affix.data-api",r.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",r.proxy(this.checkPositionWithEventLoop,this)),this.$element=r(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()}function n(n){return this.each(function(){var e=r(this),t=e.data("bs.affix");t||e.data("bs.affix",t=new a(this,"object"==typeof n&&n)),"string"==typeof n&&t[n]()})}a.VERSION="3.4.1",a.RESET="affix affix-top affix-bottom",a.DEFAULTS={offset:0,target:window},a.prototype.getState=function(e,t,n,i){var o=this.$target.scrollTop(),s=this.$element.offset(),r=this.$target.height();if(null!=n&&"top"==this.affixed)return o<n&&"top";if("bottom"==this.affixed)return null!=n?!(o+this.unpin<=s.top)&&"bottom":!(o+r<=e-i)&&"bottom";var a=null==this.affixed,s=a?o:s.top;return null!=n&&o<=n?"top":null!=i&&e-i<=s+(a?r:t)&&"bottom"},a.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(a.RESET).addClass("affix");var e=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-e},a.prototype.checkPositionWithEventLoop=function(){setTimeout(r.proxy(this.checkPosition,this),1)},a.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),t=this.options.offset,n=t.top,i=t.bottom,o=Math.max(r(document).height(),r(document.body).height()),t=("object"!=typeof t&&(i=n=t),"function"==typeof n&&(n=t.top(this.$element)),"function"==typeof i&&(i=t.bottom(this.$element)),this.getState(o,e,n,i));if(this.affixed!=t){null!=this.unpin&&this.$element.css("top","");var n="affix"+(t?"-"+t:""),s=r.Event(n+".bs.affix");if(this.$element.trigger(s),s.isDefaultPrevented())return;this.affixed=t,this.unpin="bottom"==t?this.getPinnedOffset():null,this.$element.removeClass(a.RESET).addClass(n).trigger(n.replace("affix","affixed")+".bs.affix")}"bottom"==t&&this.$element.offset({top:o-e-i})}};var e=r.fn.affix;r.fn.affix=n,r.fn.affix.Constructor=a,r.fn.affix.noConflict=function(){return r.fn.affix=e,this},r(window).on("load",function(){r('[data-spy="affix"]').each(function(){var e=r(this),t=e.data();t.offset=t.offset||{},null!=t.offsetBottom&&(t.offset.bottom=t.offsetBottom),null!=t.offsetTop&&(t.offset.top=t.offsetTop),n.call(e,t)})})}(jQuery),!function(p){"use strict";function f(e,t){var n;this.createTextRange?((n=this.createTextRange()).collapse(!0),n.moveStart("character",e),n.moveEnd("character",t-e),n.select()):this.setSelectionRange&&(this.focus(),this.setSelectionRange(e,t))}function g(e){var t,n,i=this.value.length;return e="start"==e.toLowerCase()?"Start":"End",document.selection?((n=(t=document.selection.createRange()).duplicate()).expand("textedit"),n.setEndPoint("EndToEnd",t),t=(n=n.text.length-t.text.length)+t.text.length,"Start"==e?n:t):void 0!==this["selection"+e]?this["selection"+e]:i}var m={codes:{46:127,188:44,109:45,190:46,191:47,192:96,220:92,222:39,221:93,219:91,173:45,187:61,186:59,189:45,110:46},shifts:{96:"~",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",48:")",45:"_",61:"+",91:"{",93:"}",92:"|",59:":",39:'"',44:"<",46:">",47:"?"}},n=(p.fn.number=function(e,d,u,h){h=void 0===h?",":h,d=void 0===d?0:d;var t="\\u"+("0000"+(u=void 0===u?".":u).charCodeAt(0).toString(16)).slice(-4),n=new RegExp("[^"+t+"0-9]","g"),i=new RegExp(t,"g");return!0===e?this.is("input:text")?this.on({"keydown.format":function(e){var t,n=p(this),i=n.data("numFormat"),o=e.keyCode||e.which,s="",r=g.apply(this,["start"]),a=g.apply(this,["end"]),l="",c=!1;if(m.codes.hasOwnProperty(o)&&(o=m.codes[o]),!e.shiftKey&&65<=o&&o<=90?o+=32:!e.shiftKey&&69<=o&&o<=105?o-=48:e.shiftKey&&m.shifts.hasOwnProperty(o)&&(s=m.shifts[o]),""==s&&(s=String.fromCharCode(o)),8!=o&&45!=o&&127!=o&&s!=u&&!s.match(/[0-9]/))return 46==(t=e.keyCode||e.which)||8==t||127==t||9==t||27==t||13==t||(65==t||82==t||80==t||83==t||70==t||72==t||66==t||74==t||84==t||90==t||61==t||173==t||48==t)&&!0===(e.ctrlKey||e.metaKey)||(86==t||67==t||88==t)&&!0===(e.ctrlKey||e.metaKey)||35<=t&&t<=39||112<=t&&t<=123?void 0:(e.preventDefault(),!1);if(0==r&&a==this.value.length?8==o?(r=a=1,this.value="",i.init=0<d?-1:0,i.c=0<d?-(d+1):0,f.apply(this,[0,0])):s==u?(r=a=1,this.value="0"+u+new Array(d+1).join("0"),i.init=0<d?1:0,i.c=0<d?-(d+1):0):45==o?(r=a=2,this.value="-0"+u+new Array(d+1).join("0"),i.init=0<d?1:0,i.c=0<d?-(d+1):0,f.apply(this,[2,2])):(i.init=0<d?-1:0,i.c=0<d?-d:0):i.c=a-this.value.length,i.isPartialSelection=r!=a,0<d&&s==u&&r==this.value.length-d-1)i.c++,i.init=Math.max(0,i.init),e.preventDefault(),c=this.value.length+i.c;else if(45!=o||0==r&&0!=this.value.indexOf("-"))if(s==u)i.init=Math.max(0,i.init),e.preventDefault();else if(0<d&&127==o&&r==this.value.length-d-1)e.preventDefault();else if(0<d&&8==o&&r==this.value.length-d)e.preventDefault(),i.c--,c=this.value.length+i.c;else if(0<d&&127==o&&r>this.value.length-d-1){if(""===this.value)return;"0"!=this.value.slice(r,r+1)&&(l=this.value.slice(0,r)+"0"+this.value.slice(r+1),n.val(l)),e.preventDefault(),c=this.value.length+i.c}else if(0<d&&8==o&&r>this.value.length-d){if(""===this.value)return;"0"!=this.value.slice(r-1,r)&&(l=this.value.slice(0,r-1)+"0"+this.value.slice(r),n.val(l)),e.preventDefault(),i.c--,c=this.value.length+i.c}else 127==o&&this.value.slice(r,r+1)==h?e.preventDefault():8==o&&this.value.slice(r-1,r)==h?(e.preventDefault(),i.c--,c=this.value.length+i.c):0<d&&r==a&&this.value.length>d+1&&r>this.value.length-d-1&&isFinite(+s)&&!e.metaKey&&!e.ctrlKey&&!e.altKey&&1===s.length&&(l=a===this.value.length?this.value.slice(0,r-1):this.value.slice(0,r)+this.value.slice(r+1),this.value=l,c=r);else e.preventDefault();!1!==c&&f.apply(this,[c,c]),n.data("numFormat",i)},"keyup.format":function(e){var t,n=p(this),i=n.data("numFormat"),e=e.keyCode||e.which,o=g.apply(this,["start"]),s=g.apply(this,["end"]);0!==o||0!==s||189!==e&&109!==e||(n.val("-"+n.val()),i.c=(o=1)-this.value.length,i.init=1,n.data("numFormat",i),t=this.value.length+i.c,f.apply(this,[t,t])),""===this.value||(e<48||57<e)&&(e<96||105<e)&&8!==e&&46!==e&&110!==e||(n.val(n.val()),0<d&&(i.init<1?(o=this.value.length-d-(i.init<0?1:0),i.c=o-this.value.length,i.init=1,n.data("numFormat",i)):o>this.value.length-d&&8!=e&&(i.c++,n.data("numFormat",i))),46!=e||i.isPartialSelection||(i.c++,n.data("numFormat",i)),t=this.value.length+i.c,f.apply(this,[t,t]))},"paste.format":function(e){var t=p(this),n=e.originalEvent,i=null;return window.clipboardData&&window.clipboardData.getData?i=window.clipboardData.getData("Text"):n.clipboardData&&n.clipboardData.getData&&(i=n.clipboardData.getData("text/plain")),t.val(i),e.preventDefault(),!1}}).each(function(){var e=p(this).data("numFormat",{c:-(d+1),decimals:d,thousands_sep:h,dec_point:u,regex_dec_num:n,regex_dec:i,init:!!this.value.indexOf(".")});""!==this.value&&e.val(e.val())}):this.each(function(){var e=p(this),t=+e.text().replace(n,"").replace(i,".");e.number(isFinite(t)?t:0,d,u,h)}):this.text(p.number.apply(window,arguments))},null),i=null;p.isPlainObject(p.valHooks.text)?(p.isFunction(p.valHooks.text.get)&&(n=p.valHooks.text.get),p.isFunction(p.valHooks.text.set)&&(i=p.valHooks.text.set)):p.valHooks.text={},p.valHooks.text.get=function(e){var t=p(e).data("numFormat");return t?""===e.value?"":(t=+e.value.replace(t.regex_dec_num,"").replace(t.regex_dec,"."),(0===e.value.indexOf("-")?"-":"")+(isFinite(t)?t:0)):p.isFunction(n)?n(e):void 0},p.valHooks.text.set=function(e,t){var n=p(e).data("numFormat");return n?(n=p.number(t,n.decimals,n.dec_point,n.thousands_sep),p.isFunction(i)?i(e,n):e.value=n):p.isFunction(i)?i(e,t):void 0},p.number=function(e,t,n,i){i=void 0===i?"1000"!==new Number(1e3).toLocaleString()?new Number(1e3).toLocaleString().charAt(1):"":i,n=void 0===n?new Number(.1).toLocaleString().charAt(1):n,t=isFinite(+t)?Math.abs(t):0;var o,s="\\u"+("0000"+n.charCodeAt(0).toString(16)).slice(-4),r="\\u"+("0000"+i.charCodeAt(0).toString(16)).slice(-4),r=(e=(e+"").replace(".",n).replace(new RegExp(r,"g"),"").replace(new RegExp(s,"g"),".").replace(new RegExp("[^0-9+-Ee.]","g"),""),isFinite(+e)?+e:0),s="";return 3<(s=(t?(e=r,o=t,""+ +(Math.round(0<(""+e).indexOf("e")?e:e+"e+"+o)+"e-"+o)):""+Math.round(r)).split("."))[0].length&&(s[0]=s[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,i)),(s[1]||"").length<t&&(s[1]=s[1]||"",s[1]+=new Array(t-s[1].length+1).join("0")),s.join(n)}}(jQuery),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(k,r){function D(){return new Date(Date.UTC.apply(Date,arguments))}"indexOf"in Array.prototype||(Array.prototype.indexOf=function(e,t){(t=t===r?0:t)<0&&(t+=this.length),t<0&&(t=0);for(var n=this.length;t<n;t++)if(t in this&&this[t]===e)return t;return-1});function y(e,s){for(var t=this,n=(this.element=k(e),this.container=s.container||"body",this.language=s.language||this.element.data("date-language")||"en",this.language=this.language in S?this.language:this.language.split("-")[0],this.language=this.language in S?this.language:"en",this.isRTL=S[this.language].rtl||!1,this.formatType=s.formatType||this.element.data("format-type")||"standard",this.format=$.parseFormat(s.format||this.element.data("date-format")||S[this.language].format||$.getDefaultFormat(this.formatType,"input"),this.formatType),this.isInline=!1,this.isVisible=!1,this.isInput=this.element.is("input"),this.fontAwesome=s.fontAwesome||this.element.data("font-awesome")||!1,this.bootcssVer=s.bootcssVer||(this.isInput?this.element.is(".form-control")?3:2:this.bootcssVer=this.element.is(".input-group")?3:2),this.component=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o"):this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o")).parent(),this.componentReset=!!this.element.is(".date")&&(3===this.bootcssVer?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times"):this.element.find(".add-on .icon-remove, .add-on .fa-times")).parent(),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.linkField=s.linkField||this.element.data("link-field")||!1,this.linkFormat=$.parseFormat(s.linkFormat||this.element.data("link-format")||$.getDefaultFormat(this.formatType,"link"),this.formatType),this.minuteStep=s.minuteStep||this.element.data("minute-step")||5,this.pickerPosition=s.pickerPosition||this.element.data("picker-position")||"bottom-right",this.showMeridian=s.showMeridian||this.element.data("show-meridian")||!1,this.initialDate=s.initialDate||new Date,this.zIndex=s.zIndex||this.element.data("z-index")||r,this.title=void 0!==s.title&&s.title,this.timezone=s.timezone||function(){var e,t,n=(new Date).toString(),i=(null!=(t=n.split("(")[1])?t.slice(0,-1):0)||n.split(" ");if(i instanceof Array){for(var o=[],s=0,r=i.length;s<r;s++)(e=null!==(t=i[s].match(/\b[A-Z]+\b/)))&&t[0]&&o.push(e);i=o.pop()}return i}(),this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":3===this.bootcssVer?"glyphicon-arrow-left":"icon-arrow-left",rightArrow:this.fontAwesome?"fa-arrow-right":3===this.bootcssVer?"glyphicon-arrow-right":"icon-arrow-right"},this.icontype=this.fontAwesome?"fa":"glyphicon",this._attachEvents(),this.clickedOutside=function(e){0===k(e.target).closest(".datetimepicker").length&&t.hide()},this.formatViewType="datetime","formatViewType"in s?this.formatViewType=s.formatViewType:"formatViewType"in this.element.data()&&(this.formatViewType=this.element.data("formatViewType")),this.minView=0,"minView"in s?this.minView=s.minView:"minView"in this.element.data()&&(this.minView=this.element.data("min-view")),this.minView=$.convertViewMode(this.minView),this.maxView=$.modes.length-1,"maxView"in s?this.maxView=s.maxView:"maxView"in this.element.data()&&(this.maxView=this.element.data("max-view")),this.maxView=$.convertViewMode(this.maxView),this.wheelViewModeNavigation=!1,"wheelViewModeNavigation"in s?this.wheelViewModeNavigation=s.wheelViewModeNavigation:"wheelViewModeNavigation"in this.element.data()&&(this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")),this.wheelViewModeNavigationInverseDirection=!1,"wheelViewModeNavigationInverseDirection"in s?this.wheelViewModeNavigationInverseDirection=s.wheelViewModeNavigationInverseDirection:"wheelViewModeNavigationInverseDirection"in this.element.data()&&(this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")),this.wheelViewModeNavigationDelay=100,"wheelViewModeNavigationDelay"in s?this.wheelViewModeNavigationDelay=s.wheelViewModeNavigationDelay:"wheelViewModeNavigationDelay"in this.element.data()&&(this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")),this.startViewMode=2,"startView"in s?this.startViewMode=s.startView:"startView"in this.element.data()&&(this.startViewMode=this.element.data("start-view")),this.startViewMode=$.convertViewMode(this.startViewMode),this.viewMode=this.startViewMode,this.viewSelect=this.minView,"viewSelect"in s?this.viewSelect=s.viewSelect:"viewSelect"in this.element.data()&&(this.viewSelect=this.element.data("view-select")),this.viewSelect=$.convertViewMode(this.viewSelect),this.forceParse=!0,"forceParse"in s?this.forceParse=s.forceParse:"dateForceParse"in this.element.data()&&(this.forceParse=this.element.data("date-force-parse")),3===this.bootcssVer?$.templateV3:$.template);-1!==n.indexOf("{iconType}");)n=n.replace("{iconType}",this.icontype);for(;-1!==n.indexOf("{leftArrow}");)n=n.replace("{leftArrow}",this.icons.leftArrow);for(;-1!==n.indexOf("{rightArrow}");)n=n.replace("{rightArrow}",this.icons.rightArrow);this.picker=k(n).appendTo(this.isInline?this.element:this.container).on({click:k.proxy(this.click,this),mousedown:k.proxy(this.mousedown,this)}),this.wheelViewModeNavigation&&(k.fn.mousewheel?this.picker.on({mousewheel:k.proxy(this.mousewheel,this)}):console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")),this.isInline?this.picker.addClass("datetimepicker-inline"):this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu"),this.isRTL&&(this.picker.addClass("datetimepicker-rtl"),e=3===this.bootcssVer?".prev span, .next span":".prev i, .next i",this.picker.find(e).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow)),k(document).on("mousedown touchend",this.clickedOutside),this.autoclose=!1,"autoclose"in s?this.autoclose=s.autoclose:"dateAutoclose"in this.element.data()&&(this.autoclose=this.element.data("date-autoclose")),this.keyboardNavigation=!0,"keyboardNavigation"in s?this.keyboardNavigation=s.keyboardNavigation:"dateKeyboardNavigation"in this.element.data()&&(this.keyboardNavigation=this.element.data("date-keyboard-navigation")),this.todayBtn=s.todayBtn||this.element.data("date-today-btn")||!1,this.clearBtn=s.clearBtn||this.element.data("date-clear-btn")||!1,this.todayHighlight=s.todayHighlight||this.element.data("date-today-highlight")||!1,void(this.weekStart=0)!==s.weekStart?this.weekStart=s.weekStart:void 0!==this.element.data("date-weekstart")?this.weekStart=this.element.data("date-weekstart"):void 0!==S[this.language].weekStart&&(this.weekStart=S[this.language].weekStart),this.weekStart=this.weekStart%7,this.weekEnd=(this.weekStart+6)%7,this.onRenderDay=function(e){e=(s.onRenderDay||function(){return[]})(e);return["day"].concat((e="string"==typeof e?[e]:e)||[])},this.onRenderHour=function(e){e=(s.onRenderHour||function(){return[]})(e);return["hour"].concat((e="string"==typeof e?[e]:e)||[])},this.onRenderMinute=function(e){var t=(s.onRenderMinute||function(){return[]})(e),n=["minute"];return"string"==typeof t&&(t=[t]),e<this.startDate||e>this.endDate?n.push("disabled"):Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(e.getUTCMinutes()/this.minuteStep)&&n.push("active"),n.concat(t||[])},this.onRenderYear=function(e){var t=(s.onRenderYear||function(){return[]})(e),n=["year"],i=("string"==typeof t&&(t=[t]),this.date.getUTCFullYear()===e.getUTCFullYear()&&n.push("active"),e.getUTCFullYear()),o=this.endDate.getUTCFullYear();return(e<this.startDate||o<i)&&n.push("disabled"),n.concat(t||[])},this.onRenderMonth=function(e){e=(s.onRenderMonth||function(){return[]})(e);return["month"].concat((e="string"==typeof e?[e]:e)||[])},this.startDate=new Date(-8639968443048e3),this.endDate=new Date(8639968443048e3),this.datesDisabled=[],this.daysOfWeekDisabled=[],this.setStartDate(s.startDate||this.element.data("date-startdate")),this.setEndDate(s.endDate||this.element.data("date-enddate")),this.setDatesDisabled(s.datesDisabled||this.element.data("date-dates-disabled")),this.setDaysOfWeekDisabled(s.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled")),this.setMinutesDisabled(s.minutesDisabled||this.element.data("date-minute-disabled")),this.setHoursDisabled(s.hoursDisabled||this.element.data("date-hour-disabled")),this.fillDow(),this.fillMonths(),this.update(),this.showMode(),this.isInline&&this.show()}y.prototype={constructor:y,_events:[],_attachEvents:function(){this._detachEvents(),this.isInput?this._events=[[this.element,{focus:k.proxy(this.show,this),keyup:k.proxy(this.update,this),keydown:k.proxy(this.keydown,this)}]]:this.component&&this.hasInput?(this._events=[[this.element.find("input"),{focus:k.proxy(this.show,this),keyup:k.proxy(this.update,this),keydown:k.proxy(this.keydown,this)}],[this.component,{click:k.proxy(this.show,this)}]],this.componentReset&&this._events.push([this.componentReset,{click:k.proxy(this.reset,this)}])):this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:k.proxy(this.show,this)}]];for(var e,t,n=0;n<this._events.length;n++)e=this._events[n][0],t=this._events[n][1],e.on(t)},_detachEvents:function(){for(var e,t,n=0;n<this._events.length;n++)e=this._events[n][0],t=this._events[n][1],e.off(t);this._events=[]},show:function(e){this.picker.show(),this.height=(this.component||this.element).outerHeight(),this.forceParse&&this.update(),this.place(),k(window).on("resize",k.proxy(this.place,this)),e&&(e.stopPropagation(),e.preventDefault()),this.isVisible=!0,this.element.trigger({type:"show",date:this.date})},hide:function(){!this.isVisible||this.isInline||(this.picker.hide(),k(window).off("resize",this.place),this.viewMode=this.startViewMode,this.showMode(),this.isInput||k(document).off("mousedown",this.hide),this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this.isVisible=!1,this.element.trigger({type:"hide",date:this.date}))},remove:function(){this._detachEvents(),k(document).off("mousedown",this.clickedOutside),this.picker.remove(),delete this.picker,delete this.element.data().datetimepicker},getDate:function(){var e=this.getUTCDate();return null===e?null:new Date(e.getTime()+6e4*e.getTimezoneOffset())},getUTCDate:function(){return this.date},getInitialDate:function(){return this.initialDate},setInitialDate:function(e){this.initialDate=e},setDate:function(e){this.setUTCDate(new Date(e.getTime()-6e4*e.getTimezoneOffset()))},setUTCDate:function(e){e>=this.startDate&&e<=this.endDate?(this.date=e,this.setValue(),this.viewDate=this.date,this.fill()):this.element.trigger({type:"outOfRange",date:e,startDate:this.startDate,endDate:this.endDate})},setFormat:function(e){var t;this.format=$.parseFormat(e,this.formatType),this.isInput?t=this.element:this.component&&(t=this.element.find("input")),t&&t.val()&&this.setValue()},setValue:function(){var e=this.getFormattedDate();this.isInput?this.element.val(e):(this.component&&this.element.find("input").val(e),this.element.data("date",e)),this.linkField&&k("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))},getFormattedDate:function(e){return e=e||this.format,$.formatDate(this.date,e,this.language,this.formatType,this.timezone)},setStartDate:function(e){this.startDate=e||this.startDate,8639968443048e3!==this.startDate.valueOf()&&(this.startDate=$.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setEndDate:function(e){this.endDate=e||this.endDate,8639968443048e3!==this.endDate.valueOf()&&(this.endDate=$.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)),this.update(),this.updateNavArrows()},setDatesDisabled:function(e){this.datesDisabled=e||[],k.isArray(this.datesDisabled)||(this.datesDisabled=this.datesDisabled.split(/,\s*/));var t=this;this.datesDisabled=k.map(this.datesDisabled,function(e){return $.parseDate(e,t.format,t.language,t.formatType,t.timezone).toDateString()}),this.update(),this.updateNavArrows()},setTitle:function(e,t){return this.picker.find(e).find("th:eq(1)").text(!1===this.title?t:this.title)},setDaysOfWeekDisabled:function(e){this.daysOfWeekDisabled=e||[],k.isArray(this.daysOfWeekDisabled)||(this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)),this.daysOfWeekDisabled=k.map(this.daysOfWeekDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},setMinutesDisabled:function(e){this.minutesDisabled=e||[],k.isArray(this.minutesDisabled)||(this.minutesDisabled=this.minutesDisabled.split(/,\s*/)),this.minutesDisabled=k.map(this.minutesDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},setHoursDisabled:function(e){this.hoursDisabled=e||[],k.isArray(this.hoursDisabled)||(this.hoursDisabled=this.hoursDisabled.split(/,\s*/)),this.hoursDisabled=k.map(this.hoursDisabled,function(e){return parseInt(e,10)}),this.update(),this.updateNavArrows()},place:function(){var t,e,n,i,o;this.isInline||(this.zIndex||(t=0,k("div").each(function(){var e=parseInt(k(this).css("zIndex"),10);t<e&&(t=e)}),this.zIndex=t+10),i=(this.container instanceof k?this.container:k(this.container)).offset(),this.component?(n=(e=this.component.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(n+=this.component.outerWidth()-this.picker.outerWidth())):(n=(e=this.element.offset()).left,"bottom-left"!==this.pickerPosition&&"top-left"!==this.pickerPosition||(n+=this.element.outerWidth()-this.picker.outerWidth())),(o=document.body.clientWidth||window.innerWidth)<n+220&&(n=o-220),o="top-left"===this.pickerPosition||"top-right"===this.pickerPosition?e.top-this.picker.outerHeight():e.top+this.height,o-=i.top,n-=i.left,this.picker.css({top:o,left:n,zIndex:this.zIndex}))},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var e,t=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(e=arguments[0],t=!0):"string"==typeof(e=(this.isInput?this.element:this.element.find("input")).val()||this.element.data("date")||this.initialDate)&&(e=e.replace(/^\s+|\s+$/g,"")),e||(e=new Date,t=!1),"string"==typeof e&&(new RegExp(this.hour_minute).test(e)||new RegExp(this.hour_minute+":[0-5][0-9]").test(e))&&(e=this.getDate()),this.date=$.parseDate(e,this.format,this.language,this.formatType,this.timezone),t&&this.setValue(),this.date<this.startDate?this.viewDate=new Date(this.startDate):this.date>this.endDate?this.viewDate=new Date(this.endDate):this.viewDate=new Date(this.date),this.fill()},fillDow:function(){for(var e=this.weekStart,t="<tr>";e<this.weekStart+7;)t+='<th class="dow">'+S[this.language].daysMin[e++%7]+"</th>";t+="</tr>",this.picker.find(".datetimepicker-days thead").append(t)},fillMonths:function(){for(var e="",t=new Date(this.viewDate),n=0;n<12;n++)t.setUTCMonth(n),e+='<span class="'+this.onRenderMonth(t).join(" ")+'">'+S[this.language].monthsShort[n]+"</span>";this.picker.find(".datetimepicker-months td").html(e)},fill:function(){if(this.date&&this.viewDate){for(var e,t=(b=new Date(this.viewDate)).getUTCFullYear(),n=b.getUTCMonth(),i=b.getUTCDate(),o=b.getUTCHours(),s=this.startDate.getUTCFullYear(),r=this.startDate.getUTCMonth(),a=this.endDate.getUTCFullYear(),l=this.endDate.getUTCMonth()+1,c=new D(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate()).valueOf(),d=new Date,u=(this.setTitle(".datetimepicker-days",S[this.language].months[n]+" "+t),"time"===this.formatViewType?(h=this.getFormattedDate(),this.setTitle(".datetimepicker-hours",h),this.setTitle(".datetimepicker-minutes",h)):(this.setTitle(".datetimepicker-hours",i+" "+S[this.language].months[n]+" "+t),this.setTitle(".datetimepicker-minutes",i+" "+S[this.language].months[n]+" "+t)),this.picker.find("tfoot th.today").text(S[this.language].today||S.en.today).toggle(!1!==this.todayBtn),this.picker.find("tfoot th.clear").text(S[this.language].clear||S.en.clear).toggle(!1!==this.clearBtn),this.updateNavArrows(),this.fillMonths(),D(t,n-1,28,0,0,0,0)),h=$.getDaysInMonth(u.getUTCFullYear(),u.getUTCMonth()),p=(u.setUTCDate(h),u.setUTCDate(h-(u.getUTCDay()-this.weekStart+7)%7),new Date(u)),f=(p.setUTCDate(p.getUTCDate()+42),p=p.valueOf(),[]);u.valueOf()<p;)u.getUTCDay()===this.weekStart&&f.push("<tr>"),e=this.onRenderDay(u),u.getUTCFullYear()<t||u.getUTCFullYear()===t&&u.getUTCMonth()<n?e.push("old"):(u.getUTCFullYear()>t||u.getUTCFullYear()===t&&u.getUTCMonth()>n)&&e.push("new"),this.todayHighlight&&u.getUTCFullYear()===d.getFullYear()&&u.getUTCMonth()===d.getMonth()&&u.getUTCDate()===d.getDate()&&e.push("today"),u.valueOf()===c&&e.push("active"),(u.valueOf()+864e5<=this.startDate||u.valueOf()>this.endDate||-1!==k.inArray(u.getUTCDay(),this.daysOfWeekDisabled)||-1!==k.inArray(u.toDateString(),this.datesDisabled))&&e.push("disabled"),f.push('<td class="'+e.join(" ")+'">'+u.getUTCDate()+"</td>"),u.getUTCDay()===this.weekEnd&&f.push("</tr>"),u.setUTCDate(u.getUTCDate()+1);this.picker.find(".datetimepicker-days tbody").empty().append(f.join(""));for(var f=[],g="",m="",v="",y=this.hoursDisabled||[],b=new Date(this.viewDate),w=0;w<24;w++){b.setUTCHours(w),e=this.onRenderHour(b),-1!==y.indexOf(w)&&e.push("disabled");var x=D(t,n,i,w);x.valueOf()+36e5<=this.startDate||x.valueOf()>this.endDate?e.push("disabled"):o===w&&e.push("active"),this.showMeridian&&2===S[this.language].meridiem.length?((m=w<12?S[this.language].meridiem[0]:S[this.language].meridiem[1])!==v&&(""!==v&&f.push("</fieldset>"),f.push('<fieldset class="hour"><legend>'+m.toUpperCase()+"</legend>")),v=m,g=w%12||12,w<12?e.push("hour_am"):e.push("hour_pm"),f.push('<span class="'+e.join(" ")+'">'+g+"</span>"),23===w&&f.push("</fieldset>")):(g=w+":00",f.push('<span class="'+e.join(" ")+'">'+g+"</span>"))}this.picker.find(".datetimepicker-hours td").html(f.join("")),f=[];var g="",m="",v="",T=this.minutesDisabled||[];b=new Date(this.viewDate);for(w=0;w<60;w+=this.minuteStep)-1===T.indexOf(w)&&(b.setUTCMinutes(w),b.setUTCSeconds(0),e=this.onRenderMinute(b),this.showMeridian&&2===S[this.language].meridiem.length?((m=o<12?S[this.language].meridiem[0]:S[this.language].meridiem[1])!==v&&(""!==v&&f.push("</fieldset>"),f.push('<fieldset class="minute"><legend>'+m.toUpperCase()+"</legend>")),v=m,g=o%12||12,f.push('<span class="'+e.join(" ")+'">'+g+":"+(w<10?"0"+w:w)+"</span>"),59===w&&f.push("</fieldset>")):(g=w+":00",f.push('<span class="'+e.join(" ")+'">'+o+":"+(w<10?"0"+w:w)+"</span>")));this.picker.find(".datetimepicker-minutes td").html(f.join(""));var h=this.date.getUTCFullYear(),C=this.setTitle(".datetimepicker-months",t).end().find(".month").removeClass("active"),h=(h===t&&C.eq(this.date.getUTCMonth()).addClass("active"),(t<s||a<t)&&C.addClass("disabled"),t===s&&C.slice(0,r).addClass("disabled"),t===a&&C.slice(l).addClass("disabled"),f="",t=10*parseInt(t/10,10),this.setTitle(".datetimepicker-years",t+"-"+(t+9)).end().find("td"));--t,b=new Date(this.viewDate);for(w=-1;w<11;w++)b.setUTCFullYear(t),e=this.onRenderYear(b),-1!==w&&10!==w||e.push(_),f+='<span class="'+e.join(" ")+'">'+t+"</span>",t+=1;h.html(f),this.place()}},updateNavArrows:function(){var e=new Date(this.viewDate),t=e.getUTCFullYear(),n=e.getUTCMonth(),i=e.getUTCDate(),o=e.getUTCHours();switch(this.viewMode){case 0:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()&&i<=this.startDate.getUTCDate()&&o<=this.startDate.getUTCHours()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()&&i>=this.endDate.getUTCDate()&&o>=this.endDate.getUTCHours()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()&&i<=this.startDate.getUTCDate()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()&&i>=this.endDate.getUTCDate()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 2:t<=this.startDate.getUTCFullYear()&&n<=this.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()&&n>=this.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 3:case 4:t<=this.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),t>=this.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}},mousewheel:function(e){e.preventDefault(),e.stopPropagation(),this.wheelPause||(this.wheelPause=!0,e=0<(e=e.originalEvent.wheelDelta)?1:0===e?0:-1,this.wheelViewModeNavigationInverseDirection&&(e=-e),this.showMode(e),setTimeout(k.proxy(function(){this.wheelPause=!1},this),this.wheelViewModeNavigationDelay))},click:function(e){e.stopPropagation(),e.preventDefault();var t=k(e.target).closest("span, td, th, legend");if(1===(t=t.is("."+this.icontype)?k(t).parent().closest("span, td, th, legend"):t).length)if(t.is(".disabled"))this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});else switch(t[0].nodeName.toLowerCase()){case"th":switch(t[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var n=$.modes[this.viewMode].navStep*("prev"===t[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,n);break;case 1:this.viewDate=this.moveDate(this.viewDate,n);break;case 2:this.viewDate=this.moveMonth(this.viewDate,n);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,n)}this.fill(),this.element.trigger({type:t[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset(),this.autoclose&&this.hide();break;case"today":var i=new Date;(i=D(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),0))<this.startDate?i=this.startDate:i>this.endDate&&(i=this.endDate),this.viewMode=this.startViewMode,this.showMode(0),this._setDate(i),this.fill(),this.autoclose&&this.hide()}break;case"span":t.is(".disabled")||(s=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),o=this.viewDate.getUTCDate(),a=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),c=this.viewDate.getUTCSeconds(),t.is(".month")?(this.viewDate.setUTCDate(1),r=t.parent().find("span").index(t),o=this.viewDate.getUTCDate(),this.viewDate.setUTCMonth(r),this.element.trigger({type:"changeMonth",date:this.viewDate}),3<=this.viewSelect&&this._setDate(D(s,r,o,a,l,c,0))):t.is(".year")?(this.viewDate.setUTCDate(1),s=parseInt(t.text(),10)||0,this.viewDate.setUTCFullYear(s),this.element.trigger({type:"changeYear",date:this.viewDate}),4<=this.viewSelect&&this._setDate(D(s,r,o,a,l,c,0))):t.is(".hour")?(a=parseInt(t.text(),10)||0,(t.hasClass("hour_am")||t.hasClass("hour_pm"))&&(12===a&&t.hasClass("hour_am")?a=0:12!==a&&t.hasClass("hour_pm")&&(a+=12)),this.viewDate.setUTCHours(a),this.element.trigger({type:"changeHour",date:this.viewDate}),1<=this.viewSelect&&this._setDate(D(s,r,o,a,l,c,0))):t.is(".minute")&&(l=parseInt(t.text().substr(t.text().indexOf(":")+1),10)||0,this.viewDate.setUTCMinutes(l),this.element.trigger({type:"changeMinute",date:this.viewDate}),0<=this.viewSelect&&this._setDate(D(s,r,o,a,l,c,0))),0!==this.viewMode?(d=this.viewMode,this.showMode(-1),this.fill(),d===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()));break;case"td":t.is(".day")&&!t.is(".disabled")&&(o=parseInt(t.text(),10)||1,s=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),a=this.viewDate.getUTCHours(),l=this.viewDate.getUTCMinutes(),c=this.viewDate.getUTCSeconds(),t.is(".old")?0===r?(r=11,--s):--r:t.is(".new")&&(11===r?(r=0,s+=1):r+=1),this.viewDate.setUTCFullYear(s),this.viewDate.setUTCMonth(r,o),this.element.trigger({type:"changeDay",date:this.viewDate}),2<=this.viewSelect&&this._setDate(D(s,r,o,a,l,c,0)));var o,s,r,a,l,c,d=this.viewMode;this.showMode(-1),this.fill(),d===this.viewMode&&this.autoclose&&this.hide()}},_setDate:function(e,t){var n;t&&"date"!==t||(this.date=e),t&&"view"!==t||(this.viewDate=e),this.fill(),this.setValue(),this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&n.change(),this.element.trigger({type:"changeDate",date:this.getDate()}),null===e&&(this.date=this.viewDate)},moveMinute:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCMinutes(e.getUTCMinutes()+t*this.minuteStep),e},moveHour:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCHours(e.getUTCHours()+t),e},moveDate:function(e,t){if(!t)return e;e=new Date(e.valueOf());return e.setUTCDate(e.getUTCDate()+t),e},moveMonth:function(e,t){if(!t)return e;var n,i,o=new Date(e.valueOf()),s=o.getUTCDate(),r=o.getUTCMonth(),a=Math.abs(t);if(t=0<t?1:-1,1===a)i=-1===t?function(){return o.getUTCMonth()===r}:function(){return o.getUTCMonth()!==n},n=r+t,o.setUTCMonth(n),(n<0||11<n)&&(n=(n+12)%12);else{for(var l=0;l<a;l++)o=this.moveMonth(o,t);n=o.getUTCMonth(),o.setUTCDate(s),i=function(){return n!==o.getUTCMonth()}}for(;i();)o.setUTCDate(--s),o.setUTCMonth(n);return o},moveYear:function(e,t){return this.moveMonth(e,12*t)},dateWithinRange:function(e){return e>=this.startDate&&e<=this.endDate},keydown:function(e){if(this.picker.is(":not(:visible)"))27===e.keyCode&&this.show();else{var t,n,i,o=!1;switch(e.keyCode){case 27:this.hide(),e.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation)break;var s=37===e.keyCode?-1:1,r=this.viewMode;e.ctrlKey?r+=2:e.shiftKey&&(r+=1),4===r?(t=this.moveYear(this.date,s),n=this.moveYear(this.viewDate,s)):3===r?(t=this.moveMonth(this.date,s),n=this.moveMonth(this.viewDate,s)):2===r?(t=this.moveDate(this.date,s),n=this.moveDate(this.viewDate,s)):1===r?(t=this.moveHour(this.date,s),n=this.moveHour(this.viewDate,s)):0===r&&(t=this.moveMinute(this.date,s),n=this.moveMinute(this.viewDate,s)),this.dateWithinRange(t)&&(this.date=t,this.viewDate=n,this.setValue(),this.update(),e.preventDefault(),o=!0);break;case 38:case 40:if(!this.keyboardNavigation)break;s=38===e.keyCode?-1:1,r=this.viewMode,e.ctrlKey?r+=2:e.shiftKey&&(r+=1),4===r?(t=this.moveYear(this.date,s),n=this.moveYear(this.viewDate,s)):3===r?(t=this.moveMonth(this.date,s),n=this.moveMonth(this.viewDate,s)):2===r?(t=this.moveDate(this.date,7*s),n=this.moveDate(this.viewDate,7*s)):1===r?n=this.showMeridian?(t=this.moveHour(this.date,6*s),this.moveHour(this.viewDate,6*s)):(t=this.moveHour(this.date,4*s),this.moveHour(this.viewDate,4*s)):0===r&&(t=this.moveMinute(this.date,4*s),n=this.moveMinute(this.viewDate,4*s)),this.dateWithinRange(t)&&(this.date=t,this.viewDate=n,this.setValue(),this.update(),e.preventDefault(),o=!0);break;case 13:0!==this.viewMode?(r=this.viewMode,this.showMode(-1),this.fill(),r===this.viewMode&&this.autoclose&&this.hide()):(this.fill(),this.autoclose&&this.hide()),e.preventDefault();break;case 9:this.hide()}o&&(this.isInput?i=this.element:this.component&&(i=this.element.find("input")),i&&i.change(),this.element.trigger({type:"changeDate",date:this.getDate()}))}},showMode:function(e){e&&(e=Math.max(0,Math.min($.modes.length-1,this.viewMode+e)))>=this.minView&&e<=this.maxView&&(this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:e}),this.viewMode=e),this.picker.find(">div").hide().filter(".datetimepicker-"+$.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(e){switch(e){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var _=k.fn.datetimepicker,S=(k.fn.datetimepicker=function(i){var o,s=Array.apply(null,arguments);return s.shift(),this.each(function(){var e=k(this),t=e.data("datetimepicker"),n="object"==typeof i&&i;if(t||e.data("datetimepicker",t=new y(this,k.extend({},k.fn.datetimepicker.defaults,n))),"string"==typeof i&&"function"==typeof t[i]&&(o=t[i].apply(t,s))!==r)return!1}),o!==r?o:this},k.fn.datetimepicker.defaults={},k.fn.datetimepicker.Constructor=y,k.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}}),$={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(e){return e%4==0&&e%100!=0||e%400==0},getDaysInMonth:function(e,t){return[31,$.isLeapYear(e)?29:28,31,30,31,30,31,31,30,31,30,31][t]},getDefaultFormat:function(e,t){if("standard"===e)return"input"===t?"yyyy-mm-dd hh:ii":"yyyy-mm-dd hh:ii:ss";if("php"===e)return"input"===t?"Y-m-d H:i":"Y-m-d H:i:s";throw new Error("Invalid format type.")},validParts:function(e){if("standard"===e)return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g;if("php"===e)return/[dDjlNwzFmMnStyYaABgGhHis]/g;throw new Error("Invalid format type.")},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(e,t){var n=e.replace(this.validParts(t),"\0").split("\0"),e=e.match(this.validParts(t));if(n&&n.length&&e&&0!==e.length)return{separators:n,parts:e};throw new Error("Invalid date format.")},parseDate:function(e,t,n,i,o){var s;if(e instanceof Date)return(s=new Date(e.valueOf()-6e4*e.getTimezoneOffset())).setMilliseconds(0),s;if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd",i)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd hh:ii",i)),/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(e)&&(t=this.parseFormat("yyyy-mm-dd hh:ii:ss",i)),/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(e)){var r,a=/([-+]\d+)([dmwy])/,l=e.match(/([-+]\d+)([dmwy])/g);e=new Date;for(var c=0;c<l.length;c++)switch(h=a.exec(l[c]),r=parseInt(h[1]),h[2]){case"d":e.setUTCDate(e.getUTCDate()+r);break;case"m":e=y.prototype.moveMonth.call(y.prototype,e,r);break;case"w":e.setUTCDate(e.getUTCDate()+7*r);break;case"y":e=y.prototype.moveYear.call(y.prototype,e,r)}return D(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),0)}var d,u,h,l=e&&e.toString().match(this.nonpunctuation)||[],e=new Date(0,0,0,0,0,0,0),p={},f=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],g={hh:function(e,t){return e.setUTCHours(t)},h:function(e,t){return e.setUTCHours(t)},HH:function(e,t){return e.setUTCHours(12===t?0:t)},H:function(e,t){return e.setUTCHours(12===t?0:t)},ii:function(e,t){return e.setUTCMinutes(t)},i:function(e,t){return e.setUTCMinutes(t)},ss:function(e,t){return e.setUTCSeconds(t)},s:function(e,t){return e.setUTCSeconds(t)},yyyy:function(e,t){return e.setUTCFullYear(t)},yy:function(e,t){return e.setUTCFullYear(2e3+t)},m:function(e,t){for(--t;t<0;)t+=12;for(e.setUTCMonth(t%=12);e.getUTCMonth()!==t;){if(isNaN(e.getUTCMonth()))return e;e.setUTCDate(e.getUTCDate()-1)}return e},d:function(e,t){return e.setUTCDate(t)},p:function(e,t){return e.setUTCHours(1===t?e.getUTCHours()+12:e.getUTCHours())},z:function(){return o}};if(g.M=g.MM=g.mm=g.m,g.dd=g.d,g.P=g.p,g.Z=g.z,e=D(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()),l.length===t.parts.length){for(var c=0,m=t.parts.length;c<m;c++){if(d=parseInt(l[c],10),h=t.parts[c],isNaN(d))switch(h){case"MM":u=k(S[n].months).filter(function(){var e=this.slice(0,l[c].length);return e===l[c].slice(0,e.length)}),d=k.inArray(u[0],S[n].months)+1;break;case"M":u=k(S[n].monthsShort).filter(function(){var e=this.slice(0,l[c].length),t=l[c].slice(0,e.length);return e.toLowerCase()===t.toLowerCase()}),d=k.inArray(u[0],S[n].monthsShort)+1;break;case"p":case"P":d=k.inArray(l[c].toLowerCase(),S[n].meridiem)}p[h]=d}for(var v,c=0;c<f.length;c++)(v=f[c])in p&&!isNaN(p[v])&&g[v](e,p[v])}return e},formatDate:function(e,t,n,i,o){if(null===e)return"";var s;if("standard"===i)s={t:e.getTime(),yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear(),m:e.getUTCMonth()+1,M:S[n].monthsShort[e.getUTCMonth()],MM:S[n].months[e.getUTCMonth()],d:e.getUTCDate(),D:S[n].daysShort[e.getUTCDay()],DD:S[n].days[e.getUTCDay()],p:2===S[n].meridiem.length?S[n].meridiem[e.getUTCHours()<12?0:1]:"",h:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds(),z:o},2===S[n].meridiem.length?s.H=s.h%12==0?12:s.h%12:s.H=s.h,s.HH=(s.H<10?"0":"")+s.H,s.P=s.p.toUpperCase(),s.Z=s.z,s.hh=(s.h<10?"0":"")+s.h,s.ii=(s.i<10?"0":"")+s.i,s.ss=(s.s<10?"0":"")+s.s,s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m;else{if("php"!==i)throw new Error("Invalid format type.");(s={y:e.getUTCFullYear().toString().substring(2),Y:e.getUTCFullYear(),F:S[n].months[e.getUTCMonth()],M:S[n].monthsShort[e.getUTCMonth()],n:e.getUTCMonth()+1,t:$.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),j:e.getUTCDate(),l:S[n].days[e.getUTCDay()],D:S[n].daysShort[e.getUTCDay()],w:e.getUTCDay(),N:0===e.getUTCDay()?7:e.getUTCDay(),S:e.getUTCDate()%10<=S[n].suffix.length?S[n].suffix[e.getUTCDate()%10-1]:"",a:2===S[n].meridiem.length?S[n].meridiem[e.getUTCHours()<12?0:1]:"",g:e.getUTCHours()%12==0?12:e.getUTCHours()%12,G:e.getUTCHours(),i:e.getUTCMinutes(),s:e.getUTCSeconds()}).m=(s.n<10?"0":"")+s.n,s.d=(s.j<10?"0":"")+s.j,s.A=s.a.toString().toUpperCase(),s.h=(s.g<10?"0":"")+s.g,s.H=(s.G<10?"0":"")+s.G,s.i=(s.i<10?"0":"")+s.i,s.s=(s.s<10?"0":"")+s.s}for(var e=[],r=k.extend([],t.separators),a=0,l=t.parts.length;a<l;a++)r.length&&e.push(r.shift()),e.push(s[t.parts[a]]);return r.length&&e.push(r.shift()),e.join("")},convertViewMode:function(e){switch(e){case 4:case"decade":e=4;break;case 3:case"year":e=3;break;case 2:case"month":e=2;break;case 1:case"day":e=1;break;case 0:case"hour":e=0}return e},headTemplate:'<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{iconType} {rightArrow}"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};$.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+$.headTemplate+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+$.headTemplate+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+$.headTemplate+"<tbody></tbody>"+$.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+$.headTemplate+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+$.headTemplate+$.contTemplate+$.footTemplate+"</table></div></div>",$.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+$.headTemplateV3+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+$.headTemplateV3+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+$.headTemplateV3+"<tbody></tbody>"+$.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+$.headTemplateV3+$.contTemplate+$.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+$.headTemplateV3+$.contTemplate+$.footTemplate+"</table></div></div>",k.fn.datetimepicker.DPGlobal=$,k.fn.datetimepicker.noConflict=function(){return k.fn.datetimepicker=_,this},k(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(e){var t=k(this);t.data("datetimepicker")||(e.preventDefault(),t.datetimepicker("show"))}),k(function(){k('[data-provide="datetimepicker-inline"]').datetimepicker()})}),(typeof define==="function"&&define.amd?define:function(e,t){if(typeof module!=="undefined"&&module.exports)module.exports=t(require("jquery"));else window["toastr"]=t(window["jQuery"])})(["jquery"],function(T){return function(){var g,t,m,v=0,i="error",o="info",s="success",r="warning",e={clear:function(e,t){var n=w();g||y(n);a(e,n,t)||!function(e){for(var t=g.children(),n=t.length-1;0<=n;n--)a(T(t[n]),e)}(n)},remove:function(e){var t=w();g||y(t);e&&0===T(":focus",e).length?x(e):g.children().length&&g.remove()},error:function(e,t,n){return l({type:i,iconClass:w().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:y,info:function(e,t,n){return l({type:o,iconClass:w().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){t=e},success:function(e,t,n){return l({type:s,iconClass:w().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.1",warning:function(e,t,n){return l({type:r,iconClass:w().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return e;function y(e,t){return e=e||w(),(g=T("#"+e.containerId)).length||t&&(t=e,(g=T("<div/>").attr("id",t.containerId).addClass(t.positionClass).attr("aria-live","polite").attr("role","alert")).appendTo(T(t.target))),g}function a(e,t,n){n=!(!n||!n.force)&&n.force;return e&&(n||0===T(":focus",e).length)&&(e[t.hideMethod]({duration:t.hideDuration,easing:t.hideEasing,complete:function(){x(e)}}),1)}function b(e){t&&t(e)}function l(e){var t,n,i,o,s,r,a,l,c=w(),d=e.iconClass||c.iconClass;if(void 0!==e.optionsOverride&&(c=T.extend(c,e.optionsOverride),d=e.optionsOverride.iconClass||d),!function(e,t){if(e.preventDuplicates){if(t.message===m)return 1;m=t.message}return}(c,e))return v++,g=y(c,!0),t=null,n=T("<div/>"),i=T("<div/>"),o=T("<div/>"),s=T("<div/>"),r=T(c.closeHtml),a={intervalId:null,hideEta:null,maxHideTime:null},l={toastId:v,state:"visible",startTime:new Date,options:c,map:e},e.iconClass&&n.addClass(c.toastClass).addClass(d),e.title&&(i.append(e.title).addClass(c.titleClass),n.append(i)),e.message&&(o.append(e.message).addClass(c.messageClass),n.append(o)),c.closeButton&&(r.addClass("toast-close-button").attr("role","button"),n.prepend(r)),c.progressBar&&(s.addClass("toast-progress"),n.prepend(s)),c.newestOnTop?g.prepend(n):g.append(n),n.hide(),n[c.showMethod]({duration:c.showDuration,easing:c.showEasing,complete:c.onShown}),0<c.timeOut&&(t=setTimeout(u,c.timeOut),a.maxHideTime=parseFloat(c.timeOut),a.hideEta=(new Date).getTime()+a.maxHideTime,c.progressBar&&(a.intervalId=setInterval(f,10))),n.hover(p,h),!c.onclick&&c.tapToDismiss&&n.click(u),c.closeButton&&r&&r.click(function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),u(!0)}),c.onclick&&n.click(function(){c.onclick(),u()}),b(l),c.debug&&console&&console.log(l),n;function u(e){if(!T(":focus",n).length||e)return clearTimeout(a.intervalId),n[c.hideMethod]({duration:c.hideDuration,easing:c.hideEasing,complete:function(){x(n),c.onHidden&&"hidden"!==l.state&&c.onHidden(),l.state="hidden",l.endTime=new Date,b(l)}})}function h(){(0<c.timeOut||0<c.extendedTimeOut)&&(t=setTimeout(u,c.extendedTimeOut),a.maxHideTime=parseFloat(c.extendedTimeOut),a.hideEta=(new Date).getTime()+a.maxHideTime)}function p(){clearTimeout(t),a.hideEta=0,n.stop(!0,!0)[c.showMethod]({duration:c.showDuration,easing:c.showEasing})}function f(){var e=(a.hideEta-(new Date).getTime())/a.maxHideTime*100;s.width(e+"%")}}function w(){return T.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",target:"body",closeHtml:'<button type="button">×</button>',newestOnTop:!0,preventDuplicates:!1,progressBar:!1},e.options)}function x(e){g=g||y(),e.is(":visible")||(e.remove(),e=null,0===g.children().length&&(g.remove(),m=void 0))}}()}),(typeof define=="function"&&define.amd?define:function(e,t){this.eModal=typeof module!="undefined"&&module.exports?t(require(e[0],{}),module.exports):t(window.$)})(["jquery"],function(l,e){var c,t="recycle-bin",d="<div>",u="",h="click",n="hide",r="shown.bs.modal",p="submit",f="eFooter",a=n+".bs.modal",g="input",m={OK:"Cancel",True:"False",Yes:"No"},v={},y="modal-body",b=".modal-dialog",w={},x="modal-rec",s={sm:"sm",lg:"lg",xl:"xl"},T="modal-tmp",C={allowContentRecycle:!0,confirmLabel:Object.keys(m)[0],labels:m,loadingHtml:'<h5>Loading...</h5><div class=progress><div class="progress-bar progress-bar-striped active" style="width: 100%"></div></div>',size:u,title:"Attention",autofocus:!1};return(e=e||{}).addLabel=function(e,t){m[e]=t},e.ajax=function(n,e){var i=k();"object"==typeof n&&A(n);var o={async:!0,deferred:i,xhrFields:{withCredentials:!1},loading:!0,title:e||C.title,url:n.url||n,dataType:n.dataType||"text"};n.url&&l.extend(o,n);return l.ajax(o).done(function(e){return c.find("."+y).html(n.success?n.success(e):e),i.resolve(c)}).fail(function(e,t){t=n.error?n.error(e,t,o):'<div class="alert alert-danger"><strong>XHR Fail: </strong>URL [ '+o.url+"] load fail.</div>";return c.find("."+y).html(t),i.reject(e)}),$(o,e)},e.alert=$,e.close=E,e.confirm=function(e,t){var n=k();"object"==typeof e&&A(e);return $({async:!0,buttons:[{close:!0,click:i,text:m[e.label]||m[C.confirmLabel],style:e.style&&e.style[0]||"danger"},{close:!0,click:i,text:m[e.label]?e.label:C.confirmLabel,style:e.style&&e.style[1]}],deferred:n,message:e.message||e,onHide:i,size:e.size,title:e.title||t});function i(e){E();e=l(e.currentTarget).html();return m[e]?n.resolve():n.reject()}},e.emptyBin=function(){return l("#"+t+" > *").remove()},e.iframe=function(t,e){var n=k();"object"==typeof data&&A(data);var i=t.data?Object.keys(t.data).map(function(e){return e+'="'+t.data[e]+'"'}).join(" "):"",i='<div class=modal-body style="position: absolute;width: 100%;background-color: rgba(255,255,255,0.8);height: 100%;">%1%</div><iframe class="embed-responsive-item" frameborder=0 src="%0%" %2% style="width:100%;height:75vh;display:block;"/>'.replace("%0%",t.message||t.url||t).replace("%1%",C.loadingHtml).replace("%2%",i),i=function(e){var t=l.fn.jquery.split("."),e=e.split("."),n=t[0],i=t[1],t=t[2],o=e[0],s=e[1],e=e[2];return!(n<o||o===n&&i<s||o===n&&s===i&&t<e)}("3.0.0")?l(i).on("load",o):l(i).load(o);return $({async:!0,buttons:t.buttons||!1,deferred:n,message:i,size:t.size||s.xl,title:t.title||e});function o(){return l(this).parent().find("div."+T).fadeOut(function(){l(this).remove()}),n.resolve()}},e.prompt=function(e,t){var n=k();"object"==typeof e&&A(e);var i,o={deferred:n};"object"==typeof e?l.extend(o,e):(o.message=e,o.title=t);if(o.async=!0,o.buttons)for(var s=0,r=o.buttons.length;s<r;s++)(i=o.buttons[s]).style=(i.style||"default")+" pull-left",i.type=i.type||"button";e=D([{close:!0,type:"reset",text:m.OK,style:"danger"},{close:!1,type:p,text:C.confirmLabel}].concat(o.buttons||[]));return o.buttons=!1,o.onHide=a,o.message=l('<form role=form style="margin-bottom:0;"><div class=modal-body><label for=prompt-input class=control-label>'+(o.message||u)+'</label><input type=text class=form-control required autocomplete="on" value="'+(o.value||u)+(o.pattern?'" pattern="'+o.pattern:u)+'"></div></form>').append(e).on(p,a),$(o);function a(e){var t=c.find(g).val();return E(),e.type!==p?n.reject(t):n.resolve(t),!1}},e.setId=function(e){_(!0).find(b).prop("id",e)},e.setEModalOptions=A,e.setModalOptions=function(e){return c&&c.remove(),l.extend(w,e)},e.size=s,e.version="1.2.67",e;function k(){var e,t;try{t=require("Q")}catch(e){t=window.Q}return t?e=t.defer():(e=l.Deferred()).promise=e.promise(),e.promise.element=_(!0).find(b),e}function D(e){if(!1===e)return u;var t=l(d).addClass("modal-footer").prop("id",f);if(e)for(var n=0,i=e.length;n<i;n++){var o,s=e[n],r=l("<button>").addClass("btn btn-"+(s.style||"primary"));for(o in s)if(s.hasOwnProperty(o))switch(o){case"close":s[o]&&r.attr("data-dismiss","modal").addClass("x");break;case h:var a=s.click.bind(_(!0).find(".modal-content"));r.click(a);break;case"text":r.html(s[o]);break;default:r.attr(o,s[o])}t.append(r)}else t.append('<button class="x btn btn-primary" data-dismiss=modal type=button>Close</button>');return t}function _(e){return c||(l("#"+t).length||l("body").append(l(d).prop("id",t).hide()),c=l('<div class="modal fade" tabindex="-1"><style>.modal-xl{width:96%;}.modal-body{max-height: calc(100vh - 145px);overflow-y: auto;}</style><div class=modal-dialog><div class=modal-content> <div class=modal-header><button type=button class="x close" data-dismiss=modal aria-label="Close"><span aria-hidden=true>×</span></button><h5 class=modal-title></h5></div></div></div></div>').on("hidden.bs.modal",S).on(h,"button.x",function(e){e=l(e.currentTarget);if(e.prop("type")!==p)return c.modal(n);try{if(e.closest("form")[0].checkValidity())return E()}catch(e){return E()}return c})),e&&c||C.autofocus&&c.on(r,function(){l(this).find(g).first().focus()}),c}function S(){var e;c&&(e=c.find("."+x).removeClass(x).appendTo("#"+t),c.off(a).off(r).find(".modal-content > div:not(:first-child)").remove(),C.allowContentRecycle&&!v.clone||e.remove())}function $(e,t){var n=e;if(!n)throw new Error("Invalid parameters!");S(),v=n;var i,o=_(),s="modal-"+(n.size||C.size),s=(o.find(b).removeClass("modal-sm modal-lg modal-xl").addClass(n.size||C.size?s:null),o.find(".modal-title").html((n.title||t||C.title)+" ").append(l("<small>").html(n.subtitle||u)),o.on(a,n.onHide),e.deferred||k()),n=("object"==typeof e&&A(e),l(d).append(((o=(t=e).loading?C.loadingHtml:t.message||t).on||o.onclick?(i=!0===t.clone?l(o).clone():l(o)).addClass(t.useBin&&!t.loading?x:T):i=l(d).attr("style","position:relative;word-wrap:break-word;").addClass(y).html(o),t.css&&t.css!==i.css&&i.css(t.css),i),D(e.buttons)));return o=n,c.modal(w).find(".modal-content").append(o),e.async||c.on(r,s.resolve),s.promise}function A(e){return l.extend(C,e)}function E(){return c&&c.off(a).modal(n),c}}),!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?e(require("jquery")):e(jQuery)}(function(t){(e=t&&t.fn&&t.fn.select2&&t.fn.select2.amd?t.fn.select2.amd:e)&&e.requirejs||(e?n=e:e={},f={},g={},m={},v={},i=Object.prototype.hasOwnProperty,o=[].slice,y=/\.js$/,h=function(e,t){var n,i,o=c(e),s=o[0];return e=o[1],s&&(n=x(s=l(s,t))),s?e=n&&n.normalize?n.normalize(e,(i=t,function(e){return l(e,i)})):l(e,t):(s=(o=c(e=l(e,t)))[0],e=o[1],s&&(n=x(s))),{f:s?s+"!"+e:e,n:e,pr:s,p:n}},p={require:function(e){return w(e)},exports:function(e){var t=f[e];return void 0!==t?t:f[e]={}},module:function(e){return{id:e,uri:"",exports:f[e],config:(t=e,function(){return m&&m.config&&m.config[t]||{}})};var t}},s=function(e,t,n,i){var o,s,r,a,l,c=[],d=typeof n;if(i=i||e,"undefined"==d||"function"==d){for(t=!t.length&&n.length?["require","exports","module"]:t,a=0;a<t.length;a+=1)if("require"===(s=(r=h(t[a],i)).f))c[a]=p.require(e);else if("exports"===s)c[a]=p.exports(e),l=!0;else if("module"===s)o=c[a]=p.module(e);else if(b(f,s)||b(g,s)||b(v,s))c[a]=x(s);else{if(!r.p)throw new Error(e+" missing "+s);r.p.load(r.n,w(i,!0),function(t){return function(e){f[t]=e}}(s),{}),c[a]=f[s]}d=n?n.apply(f[e],c):void 0,e&&(o&&o.exports!==u&&o.exports!==f[e]?f[e]=o.exports:d===u&&l||(f[e]=d))}else e&&(f[e]=n)},a=n=r=function(e,t,n,i,o){if("string"==typeof e)return p[e]?p[e](t):x(h(e,t).f);if(!e.splice){if((m=e).deps&&r(m.deps,m.callback),!t)return;t.splice?(e=t,t=n,n=null):e=u}return t=t||function(){},"function"==typeof n&&(n=i,i=o),i?s(u,e,t,n):setTimeout(function(){s(u,e,t,n)},4),r},r.config=function(e){return r(e)},a._defined=f,(d=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(f,e)||b(g,e)||(g[e]=[e,t,n])}).amd={jQuery:!0},e.requirejs=a,e.require=n,e.define=d),e.define("almond",function(){}),e.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}),e.define("select2/utils",["jquery"],function(s){var e={};function c(e){var t,n=e.prototype,i=[];for(t in n)"function"==typeof n[t]&&"constructor"!==t&&i.push(t);return i}e.Extend=function(e,t){var n,i={}.hasOwnProperty;function o(){this.constructor=e}for(n in t)i.call(t,n)&&(e[n]=t[n]);return o.prototype=t.prototype,e.prototype=new o,e.__super__=t.prototype,e},e.Decorate=function(i,o){var e=c(o),t=c(i);function s(){var e=Array.prototype.unshift,t=o.prototype.constructor.length,n=i.prototype.constructor;0<t&&(e.call(arguments,i.prototype.constructor),n=o.prototype.constructor),n.apply(this,arguments)}o.displayName=i.displayName,s.prototype=new function(){this.constructor=s};for(var n=0;n<t.length;n++){var r=t[n];s.prototype[r]=i.prototype[r]}for(var a=0;a<e.length;a++){var l=e[a];s.prototype[l]=function(e){var t=function(){},n=(e in s.prototype&&(t=s.prototype[e]),o.prototype[e]);return function(){return Array.prototype.unshift.call(arguments,t),n.apply(this,arguments)}}(l)}return s};function t(){this.listeners={}}return t.prototype.on=function(e,t){this.listeners=this.listeners||{},e in this.listeners?this.listeners[e].push(t):this.listeners[e]=[t]},t.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)},t.prototype.invoke=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n].apply(this,t)},e.Observable=t,e.generateChars=function(e){for(var t="",n=0;n<e;n++)t+=Math.floor(36*Math.random()).toString(36);return t},e.bind=function(e,t){return function(){e.apply(t,arguments)}},e._convertData=function(e){for(var t in e){var n=t.split("-"),i=e;if(1!==n.length){for(var o=0;o<n.length;o++){var s=n[o];(s=s.substring(0,1).toLowerCase()+s.substring(1))in i||(i[s]={}),o==n.length-1&&(i[s]=e[t]),i=i[s]}delete e[t]}}return e},e.hasScroll=function(e,t){var n=s(t),i=t.style.overflowX,o=t.style.overflowY;return(i!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===i||"scroll"===o||(n.innerHeight()<t.scrollHeight||n.innerWidth()<t.scrollWidth))},e.escapeMarkup=function(e){var t={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){var n;"1.7"===s.fn.jquery.substr(0,3)&&(n=s(),s.map(t,function(e){n=n.add(e)}),t=n),e.append(t)},e}),e.define("select2/results",["jquery","./utils"],function(u,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=u('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup"),n=(this.clear(),this.hideLoading(),u('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>')),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.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 i=e.results[n],i=this.option(i);t.push(i)}this.$results.append(t)}},i.prototype.position=function(e,t){t.find(".select2-results").append(e)},i.prototype.sort=function(e){return this.options.get("sorter")(e)},i.prototype.highlightFirstItem=function(){var e=this.$results.find(".select2-results__option[aria-selected]"),t=e.filter("[aria-selected=true]");(0<t.length?t:e).first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var t=this;this.data.current(function(e){var i=u.map(e,function(e){return e.id.toString()});t.$results.find(".select2-results__option[aria-selected]").each(function(){var e=u(this),t=u.data(this,"data"),n=""+t.id;null!=t.element&&t.element.selected||null==t.element&&-1<u.inArray(n,i)?e.attr("aria-selected","true"):e.attr("aria-selected","false")})})},i.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)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var t,n=document.createElement("li"),i=(n.className="select2-results__option",{role:"treeitem","aria-selected":"false"});for(t in e.disabled&&(delete i["aria-selected"],i["aria-disabled"]="true"),null==e.id&&delete i["aria-selected"],null!=e._resultId&&(n.id=e._resultId),e.title&&(n.title=e.title),e.children&&(i.role="group",i["aria-label"]=e.text,delete i["aria-selected"]),i){var o=i[t];n.setAttribute(t,o)}if(e.children){for(var s=u(n),r=document.createElement("strong"),a=(r.className="select2-results__group",u(r),this.template(e,r),[]),l=0;l<e.children.length;l++){var c=e.children[l],c=this.option(c);a.push(c)}var d=u("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});d.append(a),s.append(r),s.append(d)}else this.template(e,n);return u.data(n,"data",e),n},i.prototype.bind=function(t,e){var o=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){o.clear(),o.append(e.data),t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("results:append",function(e){o.append(e.data),t.isOpen()&&o.setClasses()}),t.on("query",function(e){o.hideMessages(),o.showLoading(e)}),t.on("select",function(){t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("unselect",function(){t.isOpen()&&(o.setClasses(),o.highlightFirstItem())}),t.on("open",function(){o.$results.attr("aria-expanded","true"),o.$results.attr("aria-hidden","false"),o.setClasses(),o.ensureHighlightVisible()}),t.on("close",function(){o.$results.attr("aria-expanded","false"),o.$results.attr("aria-hidden","true"),o.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=o.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=o.getHighlightedResults();0!==t.length&&(e=t.data("data"),"true"==t.attr("aria-selected")?o.trigger("close",{}):o.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=o.getHighlightedResults(),n=o.$results.find("[aria-selected]"),i=n.index(t);0!==i&&(i=i-1,0===t.length&&(i=0),(t=n.eq(i)).trigger("mouseenter"),n=o.$results.offset().top,t=t.offset().top,e=o.$results.scrollTop()+(t-n),0===i?o.$results.scrollTop(0):t-n<0&&o.$results.scrollTop(e))}),t.on("results:next",function(){var e,t,n=o.getHighlightedResults(),i=o.$results.find("[aria-selected]"),n=i.index(n)+1;n>=i.length||((i=i.eq(n)).trigger("mouseenter"),e=o.$results.offset().top+o.$results.outerHeight(!1),i=i.offset().top+i.outerHeight(!1),t=o.$results.scrollTop()+i-e,0===n?o.$results.scrollTop(0):e<i&&o.$results.scrollTop(t))}),t.on("results:focus",function(e){e.element.addClass("select2-results__option--highlighted")}),t.on("results:message",function(e){o.displayMessage(e)}),u.fn.mousewheel&&this.$results.on("mousewheel",function(e){var t=o.$results.scrollTop(),n=o.$results.get(0).scrollHeight-t+e.deltaY,t=0<e.deltaY&&t-e.deltaY<=0,n=e.deltaY<0&&n<=o.$results.height();t?(o.$results.scrollTop(0),e.preventDefault(),e.stopPropagation()):n&&(o.$results.scrollTop(o.$results.get(0).scrollHeight-o.$results.height()),e.preventDefault(),e.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(e){var t=u(this),n=t.data("data");"true"===t.attr("aria-selected")?o.options.get("multiple")?o.trigger("unselect",{originalEvent:e,data:n}):o.trigger("close",{}):o.trigger("select",{originalEvent:e,data:n})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(e){var t=u(this).data("data");o.getHighlightedResults().removeClass("select2-results__option--highlighted"),o.trigger("results:focus",{data:t,element:u(this)})})},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var e,t,n,i,o=this.getHighlightedResults();0!==o.length&&(e=this.$results.find("[aria-selected]").index(o),t=this.$results.offset().top,i=o.offset().top,n=this.$results.scrollTop()+(i-t),i=i-t,n-=2*o.outerHeight(!1),e<=2?this.$results.scrollTop(0):(i>this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),n=n(e,t);null==n?t.style.display="none":"string"==typeof n?t.innerHTML=i(n):u(t).append(n)},i}),e.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}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(n,e,o){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=this.$element.data("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),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,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===o.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",i),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.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.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)},i.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(){var e=n(this);this!=t[0]&&e.data("element").select2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function o(){o.__super__.constructor.apply(this,arguments)}return n.Extend(o,t),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),e},o.prototype.bind=function(t,e){var n=this,i=(o.__super__.bind.apply(this,arguments),t.id+"-container");this.$selection.find(".select2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),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.focus()}),t.on("selection:update",function(e){n.update(e.data)})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},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 e("<span></span>")},o.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),t.prop("title",e.title||e.text))},o}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function o(e,t){o.__super__.constructor.apply(this,arguments)}return a.Extend(o,e),o.prototype.render=function(){var e=o.__super__.render.call(this);return e.addClass("select2-selection--multiple"),e.html('<ul class="select2-selection__rendered"></ul>'),e},o.prototype.bind=function(e,t){var n=this;o.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){var t;n.options.get("disabled")||(t=i(this).parent().data("data"),n.trigger("unselect",{originalEvent:e,data:t}))})},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},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"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},o.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n<e.length;n++){var i=e[n],o=this.selectionContainer(),s=this.display(i,o);o.append(s),o.prop("title",i.title||i.text),o.data("data",i),t.push(o)}var r=this.$selection.find(".select2-selection__rendered");a.appendMany(r,t)}},o}),e.define("select2/selection/placeholder",["../utils"],function(e){function t(e,t,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n)}return t.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},t.prototype.createPlaceholder=function(e,t){var n=this.selectionContainer();return n.html(this.display(t)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},t.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)},t}),e.define("select2/selection/allowClear",["jquery","../keys"],function(n,i){function e(){}return e.prototype.bind=function(e,t,n){var i=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){i._handleClear(e)}),t.on("keypress",function(e){i._handleKeyboardClear(e,t)})},e.prototype._handleClear=function(e,t){if(!this.options.get("disabled")){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){t.stopPropagation();for(var i=n.data("data"),o=0;o<i.length;o++){var s={data:i[o]};if(this.trigger("unselect",s),s.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},e.prototype._handleKeyboardClear=function(e,t,n){n.isOpen()||t.which!=i.DELETE&&t.which!=i.BACKSPACE||this._handleClear(t)},e.prototype.update=function(e,t){e.call(this,t),0<this.$selection.find(".select2-selection__placeholder").length||0===t.length||((e=n('<span class="select2-selection__clear">×</span>')).data("data",t),this.$selection.find(".select2-selection__rendered").prepend(e))},e}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(n,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=n('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>'),t=(this.$searchContainer=t,this.$search=t.find("input"),e.call(this));return this._transferTabIndex(),t},t.prototype.bind=function(e,t,n){var i=this,e=(e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".select2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".select2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".select2-search--inline",function(e){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which===s.BACKSPACE&&""===i.$search.val()&&0<(t=i.$searchContainer.prev(".select2-selection__choice")).length&&(t=t.data("data"),i.searchRemoveChoice(t),e.preventDefault())}),document.documentMode),o=e&&e<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(e){o?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(e){var t;o&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},t}),e.define("select2/selection/eventRelay",["jquery"],function(r){function e(){}return e.prototype.bind=function(e,t,n){var i=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==r.inArray(e,o)&&(n=r.Event("select2:"+e,{params:t=t||{}}),i.$element.trigger(n),-1!==r.inArray(e,s)&&(t.prevented=n.isDefaultPrevented()))})},e}),e.define("select2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),e.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","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","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","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"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","Ꝼ":"F","Ⓖ":"G","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","Ⓘ":"I","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","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","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","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","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","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","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","Ꝣ":"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","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","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","ꝺ":"d","dz":"dz","dž":"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","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","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","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","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","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"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","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","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","ẛ":"s","ⓣ":"t","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","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","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","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),e.define("select2/data/base",["../utils"],function(n){function i(e,t){i.__super__.constructor.call(this)}return n.Extend(i,n.Observable),i.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(e,t){},i.prototype.destroy=function(){},i.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},i}),e.define("select2/data/select",["./base","../utils","jquery"],function(e,t,r){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=r(this),e=n.item(e);t.push(e)}),e(t)},n.prototype.select=function(o){var e,s=this;if(o.selected=!0,r(o.element).is("option"))return o.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(o=[o]).push.apply(o,e);for(var n=0;n<o.length;n++){var i=o[n].id;-1===r.inArray(i,t)&&t.push(i)}s.$element.val(t),s.$element.trigger("change")}):(e=o.id,this.$element.val(e),this.$element.trigger("change"))},n.prototype.unselect=function(o){var s=this;if(this.$element.prop("multiple")){if(o.selected=!1,r(o.element).is("option"))return o.element.selected=!1,void this.$element.trigger("change");this.current(function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n].id;i!==o.id&&-1===r.inArray(i,t)&&t.push(i)}s.$element.val(t),s.$element.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(){r.removeData(this,"data")})},n.prototype.query=function(t,e){var n=[],i=this;this.$element.children().each(function(){var e=r(this);(e.is("option")||e.is("optgroup"))&&(e=i.item(e),null!==(e=i.matches(t,e))&&n.push(e))}),e({results:n})},n.prototype.addOptions=function(e){t.appendMany(this.$element,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,e.id&&(t.value=e.id),e.disabled&&(t.disabled=!0),e.selected&&(t.selected=!0),e.title&&(t.title=e.title);var t,n=r(t),e=this._normalizeItem(e);return e.element=t,r.data(t,"data",e),n},n.prototype.item=function(e){var t={};if(null==(t=r.data(e[0],"data"))){if(e.is("option"))t={id:e.val(),text:e.text(),disabled:e.prop("disabled"),selected:e.prop("selected"),title:e.prop("title")};else if(e.is("optgroup")){for(var t={text:e.prop("label"),children:[],title:e.prop("title")},n=e.children("option"),i=[],o=0;o<n.length;o++){var s=r(n[o]),s=this.item(s);i.push(s)}t.children=i}(t=this._normalizeItem(t)).element=e[0],r.data(e[0],"data",t)}return t},n.prototype._normalizeItem=function(e){r.isPlainObject(e)||(e={id:e,text:e});return null!=(e=r.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)),r.extend({},{selected:!1,disabled:!1},e)},n.prototype.matches=function(e,t){return this.options.get("matcher")(e,t)},n}),e.define("select2/data/array",["./select","../utils","jquery"],function(e,c,d){function i(e,t){var n=t.get("data")||[];i.__super__.constructor.call(this,e,t),this.addOptions(this.convertToOptions(n))}return c.Extend(i,e),i.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)),i.__super__.select.call(this,n)},i.prototype.convertToOptions=function(e){var t=this,n=this.$element.find("option"),i=n.map(function(){return t.item(d(this)).id}).get(),o=[];for(var s=0;s<e.length;s++){var r,a,l=this._normalizeItem(e[s]);0<=d.inArray(l.id,i)?(r=n.filter(function(e){return function(){return d(this).val()==e.id}}(l)),a=this.item(r),a=d.extend(!0,{},l,a),a=this.option(a),r.replaceWith(a)):(r=this.option(l),l.children&&(a=this.convertToOptions(l.children),c.appendMany(r,a)),o.push(r))}return o},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(e,t,s){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 s.extend({},{data:function(e){return s.extend({},e,{q:e.term})},transport:function(e,t,n){e=s.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 i=this,o=(null!=this._request&&(s.isFunction(this._request.abort)&&this._request.abort(),this._request=null),s.extend({type:"GET"},this.ajaxOptions));function e(){var e=o.transport(o,function(e){e=i.processResults(e,t);i.options.get("debug")&&window.console&&console.error&&(e&&e.results&&s.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&&"0"===e.status||i.trigger("results:message",{message:"errorLoading"})});i._request=e}"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.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}),e.define("select2/data/tags",["jquery"],function(a){function e(e,t,n){var i=n.get("tags"),o=n.get("createTag"),o=(void 0!==o&&(this.createTag=o),n.get("insertTag"));if(void 0!==o&&(this.insertTag=o),e.call(this,t,n),a.isArray(i))for(var s=0;s<i.length;s++){var r=i[s],r=this._normalizeItem(r),r=this.option(r);this.$element.append(r)}}return e.prototype.query=function(e,c,d){var u=this;this._removeOldTags(),null==c.term||null!=c.page?e.call(this,c,d):e.call(this,c,function e(t,n){for(var i=t.results,o=0;o<i.length;o++){var s=i[o],r=null!=s.children&&!e({results:s.children},!0);if(s.text===c.term||r)return!n&&(t.data=i,void d(t))}if(n)return!0;var a,l=u.createTag(c);null!=l&&((a=u.option(l)).attr("data-select2-tag",!0),u.addOptions([a]),u.insertTag(i,l)),t.results=i,d(t)})},e.prototype.createTag=function(e,t){t=a.trim(t.term);return""===t?null:{id:t,text:t}},e.prototype.insertTag=function(e,t,n){t.unshift(n)},e.prototype._removeOldTags=function(e){this._lastTag;this.$element.find("option[data-select2-tag]").each(function(){this.selected||a(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(c){function e(e,t,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),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 i=this;t.term=t.term||"";var o=this.tokenizer(t,this.options,function(e){var t=i._normalizeItem(e);i.$element.find("option").filter(function(){return c(this).val()===t.id}).length||((e=i.option(t)).attr("data-select2-tag",!0),i._removeOldTags(),i.addOptions([e])),i.trigger("select",{data:t})});o.term!==t.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),t.term=o.term),e.call(this,t,n)},e.prototype.tokenizer=function(e,t,n,i){for(var o=n.get("tokenSeparators")||[],s=t.term,r=0,a=this.createTag||function(e){return{id:e.term,text:e.term}};r<s.length;){var l=s[r];-1===c.inArray(l,o)?r++:(l=s.substr(0,r),null==(l=a(c.extend({},t,{term:l})))?r++:(i(l),s=s.substr(r+1)||"",r=0))}return{term:s}},e}),e.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}),e.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}),e.define("select2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(t,n,i){var o=this;this.current(function(e){e=null!=e?e.length:0;0<o.maximumSelectionLength&&e>=o.maximumSelectionLength?o.trigger("results:message",{message:"maximumSelected",args:{maximum:o.maximumSelectionLength}}):t.call(o,n,i)})},e}),e.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}),e.define("select2/dropdown/search",["jquery","../utils"],function(o,e){function t(){}return t.prototype.render=function(e){var e=e.call(this),t=o('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=t,this.$search=t.find("input"),e.prepend(t),e},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){o(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("focus",function(){t.isOpen()&&i.$search.focus()}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("select2-search--hide"):i.$searchContainer.addClass("select2-search--hide"))})},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),e.define("select2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}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),i=t.length-1;0<=i;i--){var o=t[i];this.placeholder.id===o.id&&n.splice(i,1)}return n},e}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),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)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=o.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&(e=i.$results.offset().top+i.$results.outerHeight(!1),i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=e+50&&i.loadMore())})},e.prototype.loadMore=function(){this.loading=!0;var e=o.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=o('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(c,r){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||c(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,o=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),o||(o=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._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.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=c("<span></span>"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.select2."+t.id,o="resize.select2."+t.id,t="orientationchange.select2."+t.id,s=this.$container.parents().filter(r.hasScroll);s.each(function(){c(this).data("select2-scroll-position",{x:c(this).scrollLeft(),y:c(this).scrollTop()})}),s.on(i,function(e){var t=c(this).data("select2-scroll-position");c(this).scrollTop(t.y)}),c(window).on(i+" "+o+" "+t,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.select2."+t.id,i="resize.select2."+t.id,t="orientationchange.select2."+t.id;this.$container.parents().filter(r.hasScroll).off(n),c(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=c(window),t=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),i=null,o=this.$container.offset(),s=(o.bottom=o.top+this.$container.outerHeight(!1),{height:this.$container.outerHeight(!1)});s.top=o.top,s.bottom=o.top+s.height;var r=this.$dropdown.outerHeight(!1),a=e.scrollTop(),e=e.scrollTop()+e.height(),a=a<o.top-r,e=e>o.bottom+r,o={left:o.left,top:s.bottom},l=this.$dropdownParent,l=(l="static"===l.css("position")?l.offsetParent():l).offset();o.top-=l.top,o.left-=l.left,t||n||(i="below"),e||!a||t?!a&&e&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(o.top=s.top-l.top-r),null!=i&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+i),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+i)),this.$dropdownContainer.css(o)},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}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i<t.length;i++){var o=t[i];o.children?n+=e(o.children):n++}return n}(t.data.results)<this.minimumResultsForSearch)&&e.call(this,t)},e}),e.define("select2/dropdown/selectOnClose",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("close",function(e){i._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=t.data("data")).element&&t.element.selected||null==t.element&&t.selected||this.trigger("select",{data:t}))},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function e(){}return e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("select",function(e){i._selectTriggered(e)}),t.on("unselect",function(e){i._selectTriggered(e)})},e.prototype._selectTriggered=function(e,t){var n=t.originalEvent;n&&n.ctrlKey||this.trigger("close",{originalEvent:n,originalSelect2Event:t})},e}),e.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…"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./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","./i18n/en"],function(l,c,d,u,h,p,f,g,m,v,y,t,b,w,x,T,C,k,D,_,S,$,A,E,O,M,j,N,e){function n(){this.reset()}return n.prototype.apply=function(t){if(null==(t=l.extend(!0,{},this.defaults,t)).dataAdapter&&(null!=t.ajax?t.dataAdapter=x:null!=t.data?t.dataAdapter=w:t.dataAdapter=b,0<t.minimumInputLength&&(t.dataAdapter=v.Decorate(t.dataAdapter,k)),0<t.maximumInputLength&&(t.dataAdapter=v.Decorate(t.dataAdapter,D)),0<t.maximumSelectionLength&&(t.dataAdapter=v.Decorate(t.dataAdapter,_)),t.tags&&(t.dataAdapter=v.Decorate(t.dataAdapter,T)),null==t.tokenSeparators&&null==t.tokenizer||(t.dataAdapter=v.Decorate(t.dataAdapter,C)),null!=t.query&&(r=c(t.amdBase+"compat/query"),t.dataAdapter=v.Decorate(t.dataAdapter,r)),null!=t.initSelection&&(r=c(t.amdBase+"compat/initSelection"),t.dataAdapter=v.Decorate(t.dataAdapter,r))),null==t.resultsAdapter&&(t.resultsAdapter=d,null!=t.ajax&&(t.resultsAdapter=v.Decorate(t.resultsAdapter,E)),null!=t.placeholder&&(t.resultsAdapter=v.Decorate(t.resultsAdapter,A)),t.selectOnClose&&(t.resultsAdapter=v.Decorate(t.resultsAdapter,j))),null==t.dropdownAdapter&&(t.multiple?t.dropdownAdapter=S:(r=v.Decorate(S,$),t.dropdownAdapter=r),0!==t.minimumResultsForSearch&&(t.dropdownAdapter=v.Decorate(t.dropdownAdapter,M)),t.closeOnSelect&&(t.dropdownAdapter=v.Decorate(t.dropdownAdapter,N)),null==t.dropdownCssClass&&null==t.dropdownCss&&null==t.adaptDropdownCssClass||(r=c(t.amdBase+"compat/dropdownCss"),t.dropdownAdapter=v.Decorate(t.dropdownAdapter,r)),t.dropdownAdapter=v.Decorate(t.dropdownAdapter,O)),null==t.selectionAdapter&&(t.multiple?t.selectionAdapter=h:t.selectionAdapter=u,null!=t.placeholder&&(t.selectionAdapter=v.Decorate(t.selectionAdapter,p)),t.allowClear&&(t.selectionAdapter=v.Decorate(t.selectionAdapter,f)),t.multiple&&(t.selectionAdapter=v.Decorate(t.selectionAdapter,g)),null==t.containerCssClass&&null==t.containerCss&&null==t.adaptContainerCssClass||(r=c(t.amdBase+"compat/containerCss"),t.selectionAdapter=v.Decorate(t.selectionAdapter,r)),t.selectionAdapter=v.Decorate(t.selectionAdapter,m)),"string"==typeof t.language&&(0<t.language.indexOf("-")?(r=t.language.split("-")[0],t.language=[t.language,r]):t.language=[t.language]),l.isArray(t.language)){for(var e=new y,n=(t.language.push("en"),t.language),i=0;i<n.length;i++){var o=n[i],s={};try{s=y.loadPath(o)}catch(e){try{o=this.defaults.amdLanguageBase+o,s=y.loadPath(o)}catch(e){t.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.');continue}}e.extend(s)}t.translations=e}else{var r=y.loadPath(this.defaults.amdLanguageBase+"en"),a=new y(t.language);a.extend(r),t.translations=a}return t},n.prototype.reset=function(){function a(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return t[e]||e})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:v.escapeMarkup,language:e,matcher:function e(t,n){if(""===l.trim(t.term))return n;if(n.children&&0<n.children.length){for(var i=l.extend(!0,{},n),o=n.children.length-1;0<=o;o--)null==e(t,n.children[o])&&i.children.splice(o,1);return 0<i.children.length?i:e(t,i)}var s=a(n.text).toUpperCase(),r=a(t.term).toUpperCase();return-1<s.indexOf(r)?n:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(e){return e},templateResult:function(e){return e.text},templateSelection:function(e){return e.text},theme:"default",width:"resolve"}},n.prototype.set=function(e,t){var n={},e=(n[l.camelCase(e)]=t,v._convertData(n));l.extend(this.defaults,e)},new n}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(n,s,i,r){function e(e,t){this.options=e,null!=t&&this.fromElement(t),this.options=i.apply(this.options),t&&t.is("input")&&(e=n(this.get("amdBase")+"compat/inputData"),this.options.dataAdapter=r.Decorate(this.options.dataAdapter,e))}return e.prototype.fromElement=function(e){var t,n=["select2"],i=(null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.language&&(e.prop("lang")?this.options.language=e.prop("lang").toLowerCase():e.closest("[lang]").prop("lang")&&(this.options.language=e.closest("[lang]").prop("lang"))),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),e.data("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.'),e.data("data",e.data("select2Tags")),e.data("tags",!0)),e.data("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",e.data("ajaxUrl")),e.data("ajax--url",e.data("ajaxUrl"))),{}),i=s.fn.jquery&&"1."==s.fn.jquery.substr(0,2)&&e[0].dataset?s.extend(!0,{},e[0].dataset,e.data()):e.data(),o=s.extend(!0,{},i);for(t in o=r._convertData(o))-1<s.inArray(t,n)||(s.isPlainObject(this.options[t])?s.extend(this.options[t],o[t]):this.options[t]=o[t]);return this},e.prototype.get=function(e){return this.options[e]},e.prototype.set=function(e,t){this.options[e]=t},e}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(o,s,n,i){function r(e,t){null!=e.data("select2")&&e.data("select2").destroy(),this.$element=e,this.id=this._generateId(e),this.options=new s(t=t||{},e),r.__super__.constructor.call(this);var t=e.attr("tabindex")||0,t=(e.data("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")),i=(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){i.trigger("selection:update",{data:e})}),e.addClass("select2-hidden-accessible"),e.attr("aria-hidden","true"),this._syncAttributes(),e.data("select2",this)}return n.Extend(r,n.Observable),r.prototype._generateId=function(e){return"select2-"+(null!=e.attr("id")?e.attr("id"):null!=e.attr("name")?e.attr("name")+"-"+n.generateChars(2):n.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!=(i=this._resolveWidth(e,"style"))?i:this._resolveWidth(e,"element");if("element"==t)return(i=e.outerWidth(!1))<=0?"auto":i+"px";if("style"!=t)return t;var i=e.attr("style");if("string"==typeof i)for(var o=i.split(";"),s=0,r=o.length;s<r;s+=1){var a=o[s].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,e=(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=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA),window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver);null!=e?(this._observer=new e(function(e){o.each(e,t._syncA),o.each(e,t._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!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,i=["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===o.inArray(e,i)&&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.addClass("select2-container--open")}),this.on("close",function(){n.$container.removeClass("select2-container--open")}),this.on("enable",function(){n.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){n.$container.addClass("select2-container--disabled")}),this.on("blur",function(){n.$container.removeClass("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===i.ESC||t===i.TAB||t===i.UP&&e.altKey?(n.close(),e.preventDefault()):t===i.ENTER?(n.trigger("results:select",{}),e.preventDefault()):t===i.SPACE&&e.ctrlKey?(n.trigger("results:toggle",{}),e.preventDefault()):t===i.UP?(n.trigger("results:previous",{}),e.preventDefault()):t===i.DOWN&&(n.trigger("results:next",{}),e.preventDefault()):(t===i.ENTER||t===i.SPACE||t===i.DOWN&&e.altKey)&&(n.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._syncSubtree=function(e,t){var n=!1,i=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(t)if(t.addedNodes&&0<t.addedNodes.length)for(var o=0;o<t.addedNodes.length;o++)t.addedNodes[o].selected&&(n=!0);else t.removedNodes&&0<t.removedNodes.length&&(n=!0);else n=!0;n&&this.dataAdapter.current(function(e){i.trigger("selection:update",{data:e})})}},r.prototype.trigger=function(e,t){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===t&&(t={}),e in i){var o={prevented:!1,name:e,args:t};if(n.call(this,i[e],o),o.prevented)return void(t.prevented=!0)}n.call(this,e,t)},r.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.trigger("query",{})},r.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(e){this.hasFocus()||(this.$container.addClass("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];o.isArray(e)&&(e=o.map(e,function(e){return e.toString()})),this.$element.val(e).trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",this.$element.data("old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),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=o('<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.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(e){return e}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],function(o,e,s,t){var r;return null==o.fn.select2&&(r=["open","close","destroy"],o.fn.select2=function(t){if("object"==typeof(t=t||{}))return this.each(function(){var e=o.extend(!0,{},t);new s(o(this),e)}),this;var n,i;if("string"==typeof t)return i=Array.prototype.slice.call(arguments,1),this.each(function(){var e=o(this).data("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,i)}),-1<o.inArray(t,r)?this:n;throw new Error("Invalid arguments for Select2: "+t)}),null==o.fn.select2.defaults&&(o.fn.select2.defaults=t),s});var e,n,u,s,r,h,p,f,g,m,v,i,o,y,a={define:e.define,require:e.require};function b(e,t){return i.call(e,t)}function l(e,t){var n,i,o,s,r,a,l,c,d,u,h=t&&t.split("/"),p=m.map,f=p&&p["*"]||{};if(e&&"."===e.charAt(0))if(t){for(t=(e=e.split("/")).length-1,m.nodeIdCompat&&y.test(e[t])&&(e[t]=e[t].replace(y,"")),e=h.slice(0,h.length-1).concat(e),c=0;c<e.length;c+=1)if("."===(u=e[c]))e.splice(c,1),--c;else if(".."===u){if(1===c&&(".."===e[2]||".."===e[0]))break;0<c&&(e.splice(c-1,2),c-=2)}e=e.join("/")}else 0===e.indexOf("./")&&(e=e.substring(2));if((h||f)&&p){for(c=(n=e.split("/")).length;0<c;--c){if(i=n.slice(0,c).join("/"),h)for(d=h.length;0<d;--d)if(o=(o=p[h.slice(0,d).join("/")])&&o[i]){s=o,r=c;break}if(s)break;!a&&f&&f[i]&&(a=f[i],l=c)}!s&&a&&(s=a,r=l),s&&(n.splice(0,r,s),e=n.join("/"))}return e}function w(t,n){return function(){var e=o.call(arguments,0);return"string"!=typeof e[0]&&1===e.length&&e.push(null),r.apply(u,e.concat([t,n]))}}function x(e){var t;if(b(g,e)&&(t=g[e],delete g[e],v[e]=!0,s.apply(u,t)),b(f,e)||b(v,e))return f[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]}var d=a.require("jquery.select2");return t.fn.select2.amd=a,d}),!function(r){var s=new Array,a=new Array,l=(r.fn.doAutosize=function(e){var t=r(this).data("minwidth"),n=r(this).data("maxwidth"),i="",o=r(this),s=r("#"+r(this).data("tester_id"));""!==(i=o.val())&&(i=i.replace(/&/g,"&").replace(/\s/g," ").replace(/</g,"<").replace(/>/g,">"),s.html(i),((s=(i=s.width())+e.comfortZone>=t?i+e.comfortZone:t)<o.width()&&t<=s||t<s&&s<n)&&o.width(s))},r.fn.resetAutosize=function(e){var t=r(this).data("minwidth")||e.minInputWidth||r(this).width(),e=r(this).data("maxwidth")||e.maxInputWidth||r(this).closest(".tagsinput").width()-e.inputPadding,n=r(this),i=r("<tester/>").css({position:"absolute",top:-9999,left:-9999,width:"auto",fontSize:n.css("fontSize"),fontFamily:n.css("fontFamily"),fontWeight:n.css("fontWeight"),letterSpacing:n.css("letterSpacing"),whiteSpace:"nowrap"}),o=r(this).attr("id")+"_autosize_tester";0<!r("#"+o).length&&(i.attr("id",o),i.appendTo("body")),n.data("minwidth",t),n.data("maxwidth",e),n.data("tester_id",o),n.css("width",t)},r.fn.addTag=function(i,o){return o=jQuery.extend({focus:!1,callback:!0},o),this.each(function(){var e,t=r(this).attr("id"),n=r(this).val().split(s[t]);""==n[0]&&(n=new Array),i=jQuery.trim(i),o.unique?1==(e=r(this).tagExist(i))&&r("#"+t+"_tag").addClass("not_valid"):e=!1,""!=i&&1!=e&&(r("<span>").addClass("tag").append(r("<span>").text(i).append(" "),r("<a>",{href:"#",title:"Removing tag",text:"x"}).click(function(){return r("#"+t).removeTag(escape(i))})).insertBefore("#"+t+"_addTag"),n.push(i),r("#"+t+"_tag").val(""),o.focus?r("#"+t+"_tag").focus():r("#"+t+"_tag").blur(),r.fn.tagsInput.updateTagsField(this,n),o.callback&&a[t]&&a[t].onAddTag&&a[t].onAddTag.call(this,i),a[t]&&a[t].onChange&&(e=n.length,a[t].onChange.call(this,r(this),n[e-1])))}),!1},r.fn.removeTag=function(n){return n=unescape(n),this.each(function(){var e=r(this).attr("id"),t=r(this).val().split(s[e]);for(r("#"+e+"_tagsinput .tag").remove(),str="",i=0;i<t.length;i++)t[i]!=n&&(str=str+s[e]+t[i]);r.fn.tagsInput.importTags(this,str),a[e]&&a[e].onRemoveTag&&a[e].onRemoveTag.call(this,n)}),!1},r.fn.tagExist=function(e){var t=r(this).attr("id"),t=r(this).val().split(s[t]);return 0<=jQuery.inArray(e,t)},r.fn.importTags=function(e){var t=r(this).attr("id");r("#"+t+"_tagsinput .tag").remove(),r.fn.tagsInput.importTags(this,e)},r.fn.tagsInput=function(e){var o=jQuery.extend({interactive:!0,defaultText:"add a tag",minChars:0,width:"300px",height:"100px",autocomplete:{selectFirst:!1},hide:!0,delimiter:",",unique:!0,removeWithBackspace:!0,placeholderColor:"#666666",autosize:!0,comfortZone:20,inputPadding:12},e),n=0;return this.each(function(){if(void 0===r(this).attr("data-tagsinput-init")){r(this).attr("data-tagsinput-init",!0),o.hide&&r(this).hide();var i=r(this).attr("id"),e=(i&&!s[r(this).attr("id")]||(i=r(this).attr("id","tags"+(new Date).getTime()+n++).attr("id")),jQuery.extend({pid:i,real_input:"#"+i,holder:"#"+i+"_tagsinput",input_wrapper:"#"+i+"_addTag",fake_input:"#"+i+"_tag"},o)),t=(s[i]=e.delimiter,(o.onAddTag||o.onRemoveTag||o.onChange)&&(a[i]=new Array,a[i].onAddTag=o.onAddTag,a[i].onRemoveTag=o.onRemoveTag,a[i].onChange=o.onChange),'<div id="'+i+'_tagsinput" class="tagsinput"><div id="'+i+'_addTag">');if(o.interactive&&(t=t+'<input id="'+i+'_tag" value="" data-default="'+o.defaultText+'" />'),r(t+='</div><div class="tags_clear"></div></div>').insertAfter(this),r(e.holder).css("width",o.width),r(e.holder).css("min-height",o.height),r(e.holder).css("height",o.height),""!=r(e.real_input).val()&&r.fn.tagsInput.importTags(r(e.real_input),r(e.real_input).val()),o.interactive){if(r(e.fake_input).val(r(e.fake_input).attr("data-default")),r(e.fake_input).css("color",o.placeholderColor),r(e.fake_input).resetAutosize(o),r(e.holder).bind("click",e,function(e){r(e.data.fake_input).focus()}),r(e.fake_input).bind("focus",e,function(e){r(e.data.fake_input).val()==r(e.data.fake_input).attr("data-default")&&r(e.data.fake_input).val(""),r(e.data.fake_input).css("color","#000000")}),null!=o.autocomplete_url){for(attrname in autocomplete_options={source:o.autocomplete_url},o.autocomplete)autocomplete_options[attrname]=o.autocomplete[attrname];void 0!==jQuery.Autocompleter?(r(e.fake_input).autocomplete(o.autocomplete_url,o.autocomplete),r(e.fake_input).bind("result",e,function(e,t,n){t&&r("#"+i).addTag(t[0]+"",{focus:!0,unique:o.unique})})):void 0!==jQuery.ui.autocomplete&&(r(e.fake_input).autocomplete(autocomplete_options),r(e.fake_input).bind("autocompleteselect",e,function(e,t){return r(e.data.real_input).addTag(t.item.value,{focus:!0,unique:o.unique}),!1}))}else r(e.fake_input).bind("blur",e,function(e){var t=r(this).attr("data-default");return""!=r(e.data.fake_input).val()&&r(e.data.fake_input).val()!=t?e.data.minChars<=r(e.data.fake_input).val().length&&(!e.data.maxChars||e.data.maxChars>=r(e.data.fake_input).val().length)&&r(e.data.real_input).addTag(r(e.data.fake_input).val(),{focus:!0,unique:o.unique}):(r(e.data.fake_input).val(r(e.data.fake_input).attr("data-default")),r(e.data.fake_input).css("color",o.placeholderColor)),!1});r(e.fake_input).bind("keypress",e,function(e){if(l(e))return e.preventDefault(),e.data.minChars<=r(e.data.fake_input).val().length&&(!e.data.maxChars||e.data.maxChars>=r(e.data.fake_input).val().length)&&r(e.data.real_input).addTag(r(e.data.fake_input).val(),{focus:!0,unique:o.unique}),r(e.data.fake_input).resetAutosize(o),!1;e.data.autosize&&r(e.data.fake_input).doAutosize(o)}),e.removeWithBackspace&&r(e.fake_input).bind("keydown",function(e){var t;8==e.keyCode&&""==r(this).val()&&(e.preventDefault(),e=r(this).closest(".tagsinput").find(".tag:last").text(),t=r(this).attr("id").replace(/_tag$/,""),e=e.replace(/[\s]+x$/,""),r("#"+t).removeTag(escape(e)),r(this).trigger("focus"))}),r(e.fake_input).blur(),e.unique&&r(e.fake_input).keydown(function(e){8!=e.keyCode&&!String.fromCharCode(e.which).match(/\w+|[áéíóúÁÉÍÓÚñÑ,/]+/)||r(this).removeClass("not_valid")})}}}),this},r.fn.tagsInput.updateTagsField=function(e,t){var n=r(e).attr("id");r(e).val(t.join(s[n]))},r.fn.tagsInput.importTags=function(e,t){r(e).val("");var n=r(e).attr("id"),o=t.split(s[n]);for(i=0;i<o.length;i++)r(e).addTag(o[i],{focus:!1,callback:!1});a[n]&&a[n].onChange&&a[n].onChange.call(e,e,o[i])},function(n){var i=!1;return 13==n.which||("string"==typeof n.data.delimiter?n.which==n.data.delimiter.charCodeAt(0)&&(i=!0):r.each(n.data.delimiter,function(e,t){n.which==t.charCodeAt(0)&&(i=!0)}),i)})}(jQuery);var DS=DS||{};function TDc(e){return'<td style="text-align:center;">'+e+"</td>"}function TDnum(e){return'<td style="text-align:right;">'+e+"</td>"}function THc(e,t){return"<th "+(t=void 0!==t?'width="'+t+'"':"")+' style="text-align:center;">'+e+"</th>"}function A(e,t,n){return'<a href="javascript:void(0)" onclick="'+e+'" title="'+(t=t||"")+'">'+(n=n||'<i class="fa fa-edit"></i>')+"</a>"}function Ahref(e,t,n,i){return'<a href="'+e+'" title="'+(t=t||"")+'" target="'+(i=i||"_self")+'">'+(n=n||'<i class="fa fa-edit"></i>')+"</a>"}function CHECKBOX(e,t){if(void 0===e)throw"ID is not initialize";if(void 0===t)throw"Name is not initialize";return'<input type="checkbox" id="checkbox_'+e+'" class="checkbox" name="'+t+'[]" value="'+e+'">'}function CHECKALL(){return'<input type="checkbox" class="check-all">'}function UPLOAD(e,t,n){if("image"!==t&&"file"!==t)throw"Not initialize type or type must image or file";return'<a href="javascript:void(0)" onclick="'+e+'" title="'+(n=n||"")+'"><i class="fa '+("image"==t?"fa-file-image-o":"fa-upload")+'"></i></a>'}function ATTR(e,t){return" "+e+"="+Z(t)+" "}function Z(e){return e?'"'+(e=""+e).replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")+'"':'""'}DS.PublishDraft={publish:"Diterbitkan",draft:"Konsep"},DS.Visibility={public:"Publik",private:"Private"},DS.AdmissionFormVisibility={public:"Ya",private:"Tidak"},DS.TrueFalse={true:"Ya",false:"Tidak"},DS.OpenClose={open:"Dibuka",close:"Ditutup"},DS.IsAlumni={true:"Ya",false:"Tidak",unverified:"Belum Diverifikasi"},DS.SortDirection={asc:"Ascending",desc:"Descending"},DS.CommentStatus={approved:"Komentar Diizinkan",unapproved:"Tidak Disetujui",spam:"Spam"},DS.Gender={M:"Laki-laki",F:"Perempuan"},DS.Citizenship={WNI:"WNI",WNA:"WNA"},DS.SchoolStatus={1:"Negeri",2:"Swasta"},DS.LinkTarget={_self:"Self",_blank:"Blank",_parent:"Parent",_top:"Top"},DS.CommentStatus={approved:"Approved",unapproved:"Unapproved",spam:"Spam"},toastr.options={closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!0,positionClass:"toast-top-right",preventDuplicates:!1,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},Number.prototype.to_money=function(e,t){t="\\d(?=(\\d{"+(t||3)+"})+"+(0<e?"\\.":"$")+")";return this.toFixed(Math.max(0,~~e)).replace(new RegExp(t,"g"),"$&.")};var _H=_H||{};if(_H.StrToObject=function(v){if("object"==typeof v)return v;if("string"!=typeof v)throw console.log(v),"cannot parse non-json-string";return""==v?v:eval("("+v+")")},_H.Notify=function(e,t){switch(e){case"success":toastr.success(t,"Sukses");break;case"info":toastr.info(t,"Info");break;case"warning":toastr.warning(t,"Peringatan");break;default:toastr.error(t,"Terjadi Kesalahan")}},_H.Month=function(e){var t={"01":"Januari","02":"Februari","03":"Maret","04":"April","05":"Mei","06":"Juni","07":"Juli","08":"Agustus","09":"September",10:"Oktober",11:"Nopember",12:"Desember"};return void 0===e?t:t[e]},_H.IsValidDate=function(e){if(!/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(e))return!1;var e=e.split("-"),t=parseInt(e[2],10),n=parseInt(e[1],10),e=parseInt(e[0],10);if(e<1e3||3e3<e||0==n||12<n)return!1;var i=[31,28,31,30,31,30,31,31,30,31,30,31];return(e%400==0||e%100!=0&&e%4==0)&&(i[1]=29),0<t&&t<=i[n-1]},_H.DayName=function(e){_H.IsValidDate(e)||console.error(e+" is not valid date");return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][new Date(e).getDay()]},_H.ToIndonesianDate=function(e){var t,n;if(null!=e)return e=e.split("-"),t=e[0],n=e[1],e[2]+" "+_H.Month(n)+" "+t},_H.FormatBytes=function(e,t){if(0==e)return"0 Byte";var t=t+1||3,n=Math.floor(Math.log(e)/Math.log(1e3));return(e/Math.pow(1e3,n)).toPrecision(t)+" "+["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][n]},_H.Message=function(e){var t="";switch(e){case"created":t="Data Anda telah disimpan !";break;case"not_created":t="Terjadi kesalahan dalam menyimpan data Anda !";break;case"updated":t="Data Anda telah diperbaharui !";break;case"not_updated":t="Data Anda tidak dapat diperbaharui !";break;case"404":t="Halaman tidak ditemukan !";break;case"deleted":t="Data Anda telah dihapus !";break;case"not_deleted":t="Terjadi kesalahan dalam menghapus data Anda !";break;case"restored":t="Data Anda telah dikembalikan !";break;case"not_restored":t="Terjadi kesalahan dalam mengembalikan data Anda !";break;case"not_selected":t="Tidak ada item terpilih !";break;case"existed":t="Data sudah tersedia !";break;case"empty":t="Data tidak tersedia !";break;case"required":t="Field harus diisi !";break;case"not_numeric":t="ID bukan tipe angka";break;case"keyword_empty":t="Kata kunci pencarian tidak boleh kosong, dan minimal 3 karakter !";break;case"no_changed":t="Tidak ada data yang berubah !";break;case"logged_in":t="Log In berhasil. Halaman akan dialihkan dalam 2 detik. Jika tidak dialihkan, silahkan refresh browser Anda!</a>";break;case"not_logged_in":t="Log In gagal. Nama akun dan/atau kata sandi yang Anda masukan salah.";break;case"forbidden":t="Akses ditolak!";break;case"extracted":t="Tema berhasil diextract";break;case"not_extracted":t="Tema gagal diextract";break;default:t=e}return t},String.prototype.ucwords=function(){return this.toLowerCase().replace(/(^([a-zA-Z\p{M}]))|([ -][a-zA-Z\p{M}])/g,function(e){return e.toUpperCase()})},_H.Loading=function(e){var t=$("body");e?t.append('<div id="loader-wrapper"><div id="loader"></div><div class="loader-section section-left"></div><div class="loader-section section-right"></div></div>'):t.find("#loader-wrapper").remove()},_H.Preview=function(e){var t;e.files&&e.files[0]&&((t=new FileReader).onload=function(e){$("#preview").attr("src",e.target.result)},t.readAsDataURL(e.files[0]))},_H.ExportToExcel=function(e,t,n){n=n||"xlsx",t=t+"-"+(new Date).toISOString().replace(/[\-\:\.]/g,"")+"."+n;_H.ConvertHTML(e,n,t),$("#"+e).remove()},_H.ConvertHTML=function(t,e,n){t=XLSX.utils.table_to_book(document.getElementById(t),{sheet:"Sheet1"}),t=XLSX.write(t,{bookType:e,bookSST:!0,type:"binary"}),n=n||"test."+e;try{saveAs(new Blob([_H.StringToArrayBuffered(t)],{type:"application/octet-stream"}),n)}catch(e){console.log(e,t)}return t},_H.StringToArrayBuffered=function(e){if("undefined"!=typeof ArrayBuffer)for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);else for(t=new Array(e.length),i=0;i!=e.length;++i)t[i]=255&e.charCodeAt(i);return t},_H.SidebarCollapse=function(){$.post(_BASE_URL+"dashboard/sidebar_collapse")},toastr.options={closeButton:!0,debug:!1,newestOnTop:!1,progressBar:!0,positionClass:"toast-top-right",preventDuplicates:!0,showDuration:"300",hideDuration:"1000",timeOut:"5000",extendedTimeOut:"1000",showEasing:"swing",hideEasing:"linear",showMethod:"fadeIn",hideMethod:"fadeOut"},$(document).ready(function(){$(document).find(".select2").select2({width:"100%"}),$(document).find("input.date:enabled").datetimepicker({format:"yyyy-mm-dd",weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:2,minView:2,forceParse:0,fontAwesome:!0});var e=$("#return-to-top");$(window).scroll(function(){50<=$(this).scrollTop()?e.fadeIn(200):e.fadeOut(200)}),e.click(function(){$("body,html").animate({scrollTop:0},500)})}),"undefined"==typeof jQuery)throw new Error("GridBuilder's JavaScript requires jQuery");function GridBuilder(e,t){var n=this;if(window[e]=n,!t.controller)throw new Error('GridBuilder requires "controller" object key on the 2nd parameter');if(!t.fields)throw new Error('GridBuilder requires "fields" object on the 2nd parameter');n.options=$.extend({name:e,controller:null,extra_params:{},pagination_action:"pagination",delete_action:"delete",restore_action:"restore",per_page:10,per_page_options:[10,20,50,100,0],page_number:0,total_page:0,total_rows:0,keyword:"",fields:[],rows:[],can_reload:!0,can_add:!0,can_delete:!0,can_restore:!0,can_search:!0,to_excel:!0,sort_field:"",sort_type:"ASC",resize_column:3,extra_buttons:""},t),$(document).ready(function(){n._init()})}if($(document).keydown(function(e){27===(e.keyCode||e.which)&&setTimeout(function(){$(".keyword").focus().val(""),$(".search-info").empty(),window[_grid].options.keyword="",window[_grid].options.page_number=0,window[_grid].Reload()},200)}),!function(){this._init=function(){var e=this.options;this.BuildButtons(),this.HeaderTable(),this.FooterTable(),this.GetData(),this.ResizeColumn(),$(".check-all").click(function(){$("input:checkbox").not(this).prop("checked",this.checked)}),$(".keyword").attr("onkeypress",e.name+".Search(event)"),$(".keyword").focus()},this.Reload=function(){this.GetData()},this.BuildButtons=function(){var e=this.options,t="";e.extra_buttons&&(t+=e.extra_buttons),e.can_add&&(t+='<button title="Add New" onclick="'+e.name+'_FORM.OnShow()" class="btn btn-default btn-flat rounded-0 add" data-toggle="tooltip" data-placement="top" title="Add"><i class="fa fa-plus"></i></button>'),e.can_delete&&(t+='<button title="Delete" onclick="'+e.name+'.Delete()" class="btn btn-default btn-flat rounded-0 delete" data-toggle="tooltip" data-placement="top" title="Delete"><i class="fa fa-trash"></i></button>'),e.can_restore&&(t+='<button title="Restore" onclick="'+e.name+'.Restore()" class="btn btn-default btn-flat rounded-0 restore" data-toggle="tooltip" data-placement="top" title="Restore"><i class="fa fa-mail-reply-all"></i></button>'),e.to_excel&&(t+='<button title="Save as Excel" onclick="'+e.name+'.ExportExcel()" class="btn btn-default btn-flat rounded-0" data-toggle="tooltip" data-placement="top" title="Save as Excel"><i class="fa fa-file-excel-o"></i></button>'),e.can_search||$("input.keyword").hide(),e.can_reload&&(t+='<button title="Reload" onclick="'+e.name+'.OnReload()" class="btn btn-default btn-flat rounded-0 reload" data-toggle="tooltip" data-placement="top" title="Reload"><i class="fa fa-refresh"></i></button>'),$(".grid-button").html(t)},this.HeaderTable=function(){var e=this.options.fields,t=this.TH("NO");if(e.length)for(var n in e){var i=!0===e[n].exclude_excel,o=!1!==e[n].sorting,s=e[n].header;t+=this.TH(s,e[n].sort_field||e[n].renderer,i,o)}$(".thead").html(this.TR(t))},this.GetData=function(){var i=this,t=i.options;try{var e={page_number:t.page_number,per_page:t.per_page,keyword:t.keyword};if(0<Object.keys(t.extra_params).length)for(var n in t.extra_params)e[n]=t.extra_params[n];_H.Loading(!0),$.post(_BASE_URL+t.controller+"/"+t.pagination_action,e,function(e){_H.Loading(!1);e=_H.StrToObject(e);t.total_page=e.total_page,t.total_rows=e.total_rows,t.rows=e.rows,i.RenderTable(t.rows)}).fail(function(e,t,n){_H.Loading(!1),e.textStatus=t,e.errorThrown=n,i.Notify("error",t+" "+(n=n||"Unable to load resource, network connection or server is down?")+"<br/>"+e.responseText)})}catch(e){i.Notify("error",e)}},this.RenderTable=function(e){var r,a=this,l=a.options;0<l.total_rows?(l.total_rows<=l.per_page&&$(".next").prop("disabled",!0),r="",$.each(e,function(e,t){var n,e=l.page_number*l.per_page+(e+1),i="";for(n in i+=a.TD(e+"."),l.fields){var o=!1,s=(l.fields[n].exclude_excel&&(o=!0),a.TransformCell(t,l.fields[n]));i+=a.TD(s,o)}r+=a.TRid(t.id,t.is_deleted,i)}),$(".tbody").html(r)):($(".tbody").empty(),a.Notify("info",a.Message("empty"))),a.PaginationInfo(),a.PaginationButton(l.total_page),""!==$(".keyword").val()&&a.SearchInfo()},this.FooterTable=function(){var e,t=this.options,n="";for(e in t.per_page_options)n+='<option value="'+t.per_page_options[e]+'">'+(0==t.per_page_options[e]?"All":t.per_page_options[e])+"</option>";$(".per-page").append(n)},this.PaginationButton=function(){var e=this.options;$(".next").attr("onclick",e.name+".NextPage()"),$(".previous").attr("onclick",e.name+".PrevPage()"),$(".first").attr("onclick",e.name+".FirstPage()"),$(".last").attr("onclick",e.name+".LastPage()"),$(".per-page").attr("onchange",e.name+".SetPerPage()"),$(".previous, .first").prop("disabled",0==e.page_number),$(".next, .last").prop("disabled",0==e.total_page||e.page_number==e.total_page-1)},this.PaginationInfo=function(){var e=this.options,t="Page "+(0==e.total_rows?0:e.page_number+1),t=(t+=" of "+e.total_page.to_money())+(" ⋅ Total : "+e.total_rows.to_money()+" Rows.");$(".page-info").html(t)},this.SearchInfo=function(){var e=this.options,t=1<e.total_rows?"s":"",n=(n=' Your search for <strong>"'+e.keyword+'"</strong>')+(" returned "+e.total_rows.to_money()+" result"+t)+'. <b style="color:red;">Press escape to clear</b>';$(".search-info").html(n)},this.ResizeColumn=function(){for(var e=this.options,t=1;t<=e.resize_column;t++)$("tr th:nth-child("+t+")").attr({width:"30px"})},this.TransformCell=function(e,t){var n=t.renderer,i="";switch(typeof n){case"string":i=e[n];break;case"function":i=n(e)||" ";break;default:console.error("invalid renderer, renderer must be a string or function",n)}return i},this.Delete=function(){var s=this,r=s.options,e=0,a=$("input.checkbox:checked");a.each(function(){e++}),0<e?eModal.confirm("Apakah anda yakin data akan dihapus ?","Konfirmasi").then(function(){var e,t=_BASE_URL+r.controller+"/"+r.delete_action,n=[],i=0,o=0;a.each(function(){var e=$(this).val();$("#tr_"+e).hasClass("delete")||(n[i]=e,i++,o++)}),0<o?((e={}).id=n.join(","),_H.Loading(!0),$.post(t,e,function(e){_H.Loading(!1);e=_H.StrToObject(e);s.Notify(e.status,s.Message(e.message)),$("input[type='checkbox']:checked").prop("checked",!1),"delete_permanently"==e.action?s.Reload():$.each(e.id,function(e,t){$("#tr_"+t).hasClass("delete")||$("#tr_"+t).addClass("delete")})}).fail(function(e,t,n){_H.Loading(!1),e.textStatus=t,e.errorThrown=n,s.Notify("error",t+" "+(n=n||"Unable to load resource, network connection or server is down?")+"<br/>"+e.responseText)})):s.Notify("warning",s.Message("not_deleted"))}):s.Notify("info",s.Message("not_selected"))},this.Restore=function(){var s=this,r=s.options,e=0,a=$("input.checkbox:checked");a.each(function(){e++}),0<e?eModal.confirm("Apakah anda yakin data akan dikembalikan ?","Konfirmasi").then(function(){var e,t=_BASE_URL+r.controller+"/"+r.restore_action,n=[],i=0,o=0;a.each(function(){var e=$(this).val();$("#tr_"+e).hasClass("delete")&&(n[i]=e,i++,o++)}),0<o?((e={}).id=n.join(","),_H.Loading(!0),$.post(t,e,function(e){_H.Loading(!1);e=_H.StrToObject(e);s.Notify(e.status,s.Message(e.message)),$("input[type='checkbox']:checked").prop("checked",!1),$.each(e.id,function(e,t){$("#tr_"+t).hasClass("delete")&&$("#tr_"+t).removeClass("delete")})}).fail(function(e,t,n){_H.Loading(!1),e.textStatus=t,e.errorThrown=n,s.Notify("error",t+" "+(n=n||"Unable to load resource, network connection or server is down?")+"<br/>"+e.responseText)})):s.Notify("warning",s.Message("not_restored"))}):s.Notify("info",s.Message("not_selected"))},this.NextPage=function(){var e=this.options;this.CursorFocused(),e.page_number++,this.Reload()},this.PrevPage=function(){var e=this.options;this.CursorFocused(),e.page_number--,this.Reload()},this.FirstPage=function(){var e=this.options;this.CursorFocused(),e.page_number=0,this.Reload()},this.LastPage=function(){var e=this.options;this.CursorFocused(),e.page_number=e.total_page-1,this.Reload()},this.SetPerPage=function(){var e=this.options;this.CursorFocused(),e.page_number=0,e.per_page=$(".per-page option:selected").val(),this.Reload()},this.OnReload=function(){this.CursorFocused(),this.Reload()},this.Search=function(e){13===(e.keyCode||e.which)&&(this.options.keyword=$(".keyword").val(),this.options.page_number=0,this.Reload())},this.CursorFocused=function(){$("input.keyword").focus()},this.TR=function(e){return"<tr>"+e+"</tr>"},this.TRid=function(e,t,n){return"true"==t?'<tr id="tr_'+e+'" class="delete highlight">'+n+"</tr>":'<tr id="tr_'+e+'">'+n+"</tr>"},this.TH=function(e,t,n,i){var o="",s="",r=[];return"string"==typeof t&&r.push("field_"+t),n&&r.push("exclude_excel"),i&&(r.push("sorting"),r.push("sort_both")),"<th "+(s=r.length?'class="'+r.join(" ")+'"':s)+" "+(o=i?'onclick="'+(this.options.name+".Sorting("+(t="'"+t+"'")+")")+'"':o)+' data-sort="ASC">'+e+"</th>"},this.Sorting=function(e){var t=this.options,n=$("th.field_"+e),i=n.attr("data-sort");$($(".table").find("th.sorting")).removeClass("sort_asc sort_desc").addClass("sort_both"),"ASC"==i?($(n).attr("data-sort","DESC"),$(n).removeClass("sort_both sort_desc").addClass("sort_asc")):($(n).attr("data-sort","ASC"),$(n).removeClass("sort_both sort_asc").addClass("sort_desc")),t.rows.sort(this.SortTable(e,i)),this.RenderTable(t.rows)},this.SortTable=function(i,o){return function(e,t){if(!e.hasOwnProperty(i)||!t.hasOwnProperty(i))return 0;var e="string"==typeof e[i]?e[i].toUpperCase():e[i],t="string"==typeof t[i]?t[i].toUpperCase():t[i],n=0;return t<e?n=1:e<t&&(n=-1),"DESC"==o?-1*n:n}},this.TD=function(e,t){return"<td "+(t?'class="exclude_excel"':"")+">"+e+"</td>"},this.Notify=function(e,t){switch(e){case"success":toastr.success(t,"Sukses");break;case"info":toastr.info(t,"Informasi");break;case"warning":toastr.warning(t,"Peringatan");break;case"error":toastr.error(t,"Terjadi kesalahan");break;default:toastr.error("Tipe kesalahan tidak diketahui.")}},this.Message=function(e){var t;switch(e){case"not_selected":t="Tidak ada item yang terpilih!";break;case"restored":t="Data berhasil dikembalikan!";break;case"not_restored":t="Terjadi kesalahan. Data tidak berhasil dikembalikan!";break;case"deleted":t="Data berhasil dihapus!";break;case"not_deleted":t="Terjadi kesalahan. Data tidak berhasil dihapus!";break;case"empty":t="Data tidak ditemukan!";break;default:t=e}return t},this.ExportExcel=function(e){var e=e||"xlsx",t="table-renderer",n=($('<div id="table-renderer" style="display: none;"></div>').appendTo(document.body),$(".data-table-renderer").html()),n=($("#"+t).html(n),$(".table-header").text()+"-"+(new Date).toISOString().replace(/[\-\:\.]/g,"")+"."+e);this.ConvertHTML(t,e,n),$("#"+t).remove()},this.ConvertHTML=function(t,e,n){t=XLSX.utils.table_to_book(document.getElementById(t),{sheet:"Sheet1"}),t=XLSX.write(t,{bookType:e,bookSST:!0,type:"binary"}),n=n||"test."+e;try{saveAs(new Blob([this.StringToArrayBuffered(t)],{type:"application/octet-stream"}),n)}catch(e){console.log(e,t)}return t},this.StringToArrayBuffered=function(e){if("undefined"!=typeof ArrayBuffer)for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),i=0;i!=e.length;++i)n[i]=255&e.charCodeAt(i);else for(t=new Array(e.length),i=0;i!=e.length;++i)t[i]=255&e.charCodeAt(i);return t}}.call(GridBuilder.prototype),"undefined"==typeof jQuery)throw new Error("FormBuilder's JavaScript requires jQuery");function FormBuilder(e,t){if(window[e]=this,!t.controller)throw new Error('FormBuilder requires "controller" object key on the 2nd parameter');if(!t.fields)throw new Error('FormBuilder requires "fields" object on the 2nd parameter');this.options=$.extend({id:0,name:e,controller:null,extra_params:{},save_action:"save",form_action:"find_id",upload_action:"upload",fields:[]},t)}!function(){this.OnEdit=function(e){var i=this,s=i.options;s.id=e||0,i.RenderForm(),$(".modal-form").modal({show:!0,backdrop:"static"}),_H.Loading(!0),$.post(_BASE_URL+s.controller+"/"+s.form_action,{id:e},function(e){_H.Loading(!1);var t,n=_H.StrToObject(e);for(t in s.fields){var i=s.fields[t],o=$("#"+i.name);if(o.val(""),"password"!==i.type)switch(i.type){case"number":case"float":o.val(n[i.name]||0);break;case"select":o.val(n[i.name]).trigger("change");break;default:o.val(n[i.name])}}}).fail(function(e,t,n){_H.Loading(!1),e.textStatus=t,e.errorThrown=n,i.Notify("error",t+" "+(n=n||"Unable to load resource, network connection or server is down?")+"<br/>"+e.responseText)}),$(".modal-dialog").addClass("modal-lg"),$(".reset").hide(),$(".submit").show().html('<i class="fa fa-save"></i> UPDATE'),$(".submit").attr("onclick",s.name+".Submit(event)"),$(".form-horizontal").removeAttr("id enctype")},this.Submit=function(e){e.preventDefault();var i=this,t=i.options,n=$(".form-fields").find(":input").serializeArray(),o={};for(s in o.id=t.id,n)o[n[s].name]=n[s].value;if(0<Object.keys(t.extra_params).length)for(var s in t.extra_params)o[s]=t.extra_params[s];e=$(".form-fields").find('input[type="checkbox"]');e.length&&e.each(function(){o[this.name]=this.checked.toString()}),_H.Loading(!0),$.post(_BASE_URL+t.controller+"/"+t.save_action,o,function(e){_H.Loading(!1);var e=_H.StrToObject(e);i.Notify(e.status,i.Message(e.message)),"success"==e.status&&(e=t.name.split("_FORM"),window[e[0]].Reload(),$(".modal-form").modal("hide"))}).fail(function(e,t,n){_H.Loading(!1),e.textStatus=t,e.errorThrown=n,i.Notify("error",t+" "+(n=n||"Unable to load resource, network connection or server is down ?")+"<br/>"+e.responseText)})},this.OnShow=function(){var e,t=this.options;for(e in t.id=0,this.RenderForm(),$(".modal-form").modal({show:!0,backdrop:"static"}),t.fields){var n=t.fields[e];"number"!==n.type&&"float"!==n.type||$("#"+n.name).val(0)}$(".modal-dialog").addClass("modal-lg"),$(".reset").show(),$(".submit").show().html('<i class="fa fa-save"></i> SAVE'),$(".submit").attr("onclick",t.name+".Submit(event)"),$(".form-horizontal").removeAttr("id enctype")},this.OnUpload=function(e){var t=this.options;t.id=e||0,0<e&&(this.RenderFormUpload(),$(".modal-dialog").removeClass("modal-lg"),$(".reset").hide(),$(".submit").show().html('<i class="fa fa-upload"></i> UPLOAD'),$(".submit").attr("onclick",t.name+".Upload(event)"),$(".modal-form").modal({show:!0,backdrop:"static"}))},this.Upload=function(e){e.preventDefault();var t=this,n=t.options,e=new FormData;e.append("id",n.id),e.append("file",$('input[type="file"]')[0].files[0]),_H.Loading(!0),$.ajax({url:_BASE_URL+n.controller+"/"+n.upload_action,type:"POST",data:e,contentType:!1,processData:!1,success:function(e){_H.Loading(!1);e=_H.StrToObject(e),"error"==e.action?t.Notify(e.status,e.message):t.Notify(e.status,t.Message(e.message)),e=n.name.split("_FORM");window[e[0]].Reload(),$(".modal-form").modal("hide")},error:function(){_H.Loading(!1)}})},this.RenderForm=function(){var e,t=this.options,n="";for(e in t.fields)n+=this.RenderField(t.fields[e]);$(".form-fields").empty().html(n),$(document).find("input.date:enabled").datetimepicker({format:"yyyy-mm-dd",weekStart:1,todayBtn:1,autoclose:1,todayHighlight:1,startView:2,minView:2,forceParse:0,fontAwesome:!0}),$(document).find("input.datetime:enabled").datetimepicker({format:"yyyy-mm-dd hh:ii:ss",todayBtn:!0,minDate:"0001-01-01",setDate:new Date,todayHighlight:!0,autoclose:!0,minuteStep:5,startView:2,fontAwesome:!0}),$(document).find("input.time:enabled").datetimepicker({format:"hh:ii:ss",weekStart:1,autoclose:1,startView:1,minView:0,maxView:1,forceParse:0,fontAwesome:!0}),$(document).find(".select2:enabled").select2(),$(".number").number(!0,0),$(".float").number(!0,2)},this.RenderFormUpload=function(){var e=this.RenderField({name:"file",type:"file",label:""});$(".form-fields").empty().html(e)},this.RenderField=function(e){var t=(t='<div class="form-group">')+('<label class="col-sm-4 control-label" for="'+e.name+'">'+e.label+"</label>")+'<div class="col-sm-8">';switch(e.type){case"number":t+='<input type="text" '+(e.required?"required":"")+' class="form-control input-sm number" style="text-align:right;" id="'+e.name+'" name="'+e.name+'">';break;case"float":t+='<input type="text" '+(e.required?"required":"")+' class="form-control input-sm float" style="text-align:right;" id="'+e.name+'" name="'+e.name+'">';break;case"email":t=(t=t+'<div class="input-group">'+('<input type="text" '+(e.required?"required":"")+' class="form-control input-sm" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'))+'<div class="input-group-addon input-sm"><i class="fa fa-envelope-o"></i></div>'+"</div>";break;case"textarea":t+='<textarea rows="5" class="form-control input-sm" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'"></textarea>';break;case"select":if(t+='<select style="width:100%" class="form-control select2" '+(e.required?"required":"")+' id="'+e.name+'" name="'+e.name+'">',Object.keys(e.datasource).length)for(var n in e.datasource)t+='<option value="'+n+'">'+e.datasource[n]+"</option>";t+="</select>";break;case"password":t=(t=t+'<div class="input-group">'+('<input autocomplete="off" type="password" '+(e.required?"required":"")+' class="form-control input-sm" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'))+'<div class="input-group-addon input-sm"><i class="fa fa-key"></i></div>'+"</div>";break;case"file":t+='<input id="'+e.name+'" type="file" name="'+e.name+'" style="margin-top:8px;">';break;case"image":t=t+('<input onchange="'+this.Preview(this)+'" type="file" '+(e.required?"required":"")+' id="'+e.name+'" name="'+e.name+'" style="margin-top:8px;">')+'<img id="preview" style="margin:10px 0; max-width:450px;">';break;case"checkbox":t+='<input type="checkbox" '+(e.required?"required":"")+' id="'+e.name+'" name="'+e.name+'" style="margin-top:8px;width:20px;height:20px;">';break;case"date":t=(t=t+'<div class="input-group date">'+('<input type="text" '+(e.required?"required":"")+' class="form-control input-sm date" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'))+'<div class="input-group-addon input-sm"><i class="fa fa-calendar"></i></div>'+"</div>";break;case"time":t=(t=t+'<div class="input-group">'+('<input type="text" class="form-control time input-sm" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'))+'<div class="input-group-addon input-sm"><i class="fa fa-clock-o"></i></div>'+"</div>";break;case"datetime":t=(t=t+'<div class="input-group">'+('<input type="text" '+(e.required?"required":"")+' class="form-control input-sm datetime" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'))+'<div class="input-group-addon input-sm"><i class="fa fa-calendar"></i></div>'+"</div>";break;default:t+='<input type="text" '+(e.required?"required":"")+' class="form-control input-sm" id="'+e.name+'" name="'+e.name+'" placeholder="'+(e.placeholder||"")+'">'}return t+="</div></div>"},this.Preview=function(e){var t;e.files&&e.files[0]&&((t=new FileReader).onload=function(e){$("#preview").attr("src",e.target.result)},t.readAsDataURL(e.files[0]))},this.Notify=function(e,t){switch(e){case"success":toastr.success(t,"Sukses");break;case"info":toastr.info(t,"Informasi");break;case"warning":toastr.warning(t,"Peringatan");break;case"error":toastr.error(t,"Terjadi kesalahan");break;default:toastr.error("Tipe kesalahan tidak diketahui.")}},this.Message=function(e){var t;switch(e){case"created":t="Data berhasil disimpan.";break;case"not_created":t="Data gagal tersimpan.";break;case"updated":t="Data berhasil diperbaharui.";break;case"not_updated":t="Data gagal diperbaharui.";break;case"uploaded":t="File berhasil diunggah.";break;case"not_uploaded":t="File gagal diunggal.";break;case"email_send":t="Email berhasil dikirim";break;case"email_not_send":t="Email tidak berhasil dikirim";break;default:t=e}return t}}.call(FormBuilder.prototype);