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)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(w,e){"use strict";var t=[],k=w.document,i=Object.getPrototypeOf,o=t.slice,p=t.concat,d=t.push,s=t.indexOf,n={},r=n.toString,f=n.hasOwnProperty,a=f.toString,l=a.call(Object),g={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},v=function(e){return null!=e&&e===e.window},u={type:!0,src:!0,noModule:!0};function M(e,t,n){var i,s=(t=t||k).createElement("script");if(s.text=e,n)for(i in u)n[i]&&(s[i]=n[i]);t.head.appendChild(s).parentNode.removeChild(s)}function L(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[r.call(e)]||"object":typeof e}var b=function(e,t){return new b.fn.init(e,t)},c=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function h(e){var t=!!e&&"length"in e&&e.length,n=L(e);return!y(e)&&!v(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+A+")"+A+"*"),J=new RegExp("="+A+"*([^\\]'\"]*?)"+A+"*\\]","g"),q=new RegExp(W),U=new RegExp("^"+O+"$"),V={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+A+"*(even|odd|(([+-]|)(\\d*)n|)"+A+"*(?:([+-]|)"+A+"*(\\d+)|))"+A+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+A+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+A+"*((?:-\\d)?\\d*)"+A+"*\\)|)(?=[^-]|$)","i")},G=/^(?:input|select|textarea|button)$/i,B=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,Z=new RegExp("\\\\([\\da-f]{1,6}"+A+"?|("+A+")|.)","ig"),ee=function(e,t,n){var i="0x"+t-65536;return i!=i||n?t:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){Y()},se=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{E.apply(t=C.call(y.childNodes),y.childNodes),t[y.childNodes.length].nodeType}catch(n){E={apply:t.length?function(e,t){j.apply(e,C.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function re(e,t,n,i){var s,r,a,o,d,l,u,c=t&&t.ownerDocument,h=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==h&&9!==h&&11!==h)return n;if(!i&&((t?t.ownerDocument||t:y)!==w&&Y(t),t=t||w,k)){if(11!==h&&(d=Q.exec(e)))if(s=d[1]){if(9===h){if(!(a=t.getElementById(s)))return n;if(a.id===s)return n.push(a),n}else if(c&&(a=c.getElementById(s))&&g(t,a)&&a.id===s)return n.push(a),n}else{if(d[2])return E.apply(n,t.getElementsByTagName(e)),n;if((s=d[3])&&_.getElementsByClassName&&t.getElementsByClassName)return E.apply(n,t.getElementsByClassName(s)),n}if(_.qsa&&!T[e+" "]&&(!f||!f.test(e))){if(1!==h)c=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(te,ne):t.setAttribute("id",o=b),r=(l=m(e)).length;r--;)l[r]="#"+o+" "+ge(l[r]);u=l.join(","),c=X.test(e)&&pe(t.parentNode)||t}if(u)try{return E.apply(n,c.querySelectorAll(u)),n}catch(e){}finally{o===b&&t.removeAttribute("id")}}}return p(e.replace(I,"$1"),t,n,i)}function ae(){var i=[];return function e(t,n){return i.push(t+" ")>M.cacheLength&&delete e[i.shift()],e[t+" "]=n}}function oe(e){return e[b]=!0,e}function de(e){var t=w.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function le(e,t){for(var n=e.split("|"),i=n.length;i--;)M.attrHandle[n[i]]=t}function ue(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 ce(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function _e(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&se(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function me(a){return oe(function(r){return r=+r,oe(function(e,t){for(var n,i=a([],e.length,r),s=i.length;s--;)e[n=i[s]]&&(e[n]=!(t[n]=e[n]))})})}function pe(e){return e&&void 0!==e.getElementsByTagName&&e}for(e in _=re.support={},s=re.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},Y=re.setDocument=function(e){var t,n,i=e?e.ownerDocument||e:y;return i!==w&&9===i.nodeType&&i.documentElement&&(a=(w=i).documentElement,k=!s(w),y!==w&&(n=w.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ie,!1):n.attachEvent&&n.attachEvent("onunload",ie)),_.attributes=de(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=de(function(e){return e.appendChild(w.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=K.test(w.getElementsByClassName),_.getById=de(function(e){return a.appendChild(e).id=b,!w.getElementsByName||!w.getElementsByName(b).length}),_.getById?(M.filter.ID=function(e){var t=e.replace(Z,ee);return function(e){return e.getAttribute("id")===t}},M.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n=t.getElementById(e);return n?[n]:[]}}):(M.filter.ID=function(e){var n=e.replace(Z,ee);return function(e){var t=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},M.find.ID=function(e,t){if(void 0!==t.getElementById&&k){var n,i,s,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(s=t.getElementsByName(e),i=0;r=s[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),M.find.TAG=_.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],s=0,r=t.getElementsByTagName(e);if("*"!==e)return r;for(;n=r[s++];)1===n.nodeType&&i.push(n);return i},M.find.CLASS=_.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&k)return t.getElementsByClassName(e)},o=[],f=[],(_.qsa=K.test(w.querySelectorAll))&&(de(function(e){a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&f.push("[*^$]="+A+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||f.push("\\["+A+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||f.push("~="),e.querySelectorAll(":checked").length||f.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||f.push(".#.+[+~]")}),de(function(e){e.innerHTML="";var t=w.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&f.push("name"+A+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&f.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&f.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),f.push(",.*:")})),(_.matchesSelector=K.test(u=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&de(function(e){_.disconnectedMatch=u.call(e,"*"),u.call(e,"[s!='']:x"),o.push("!=",W)}),f=f.length&&new RegExp(f.join("|")),o=o.length&&new RegExp(o.join("|")),t=K.test(a.compareDocumentPosition),g=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},x=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===w||e.ownerDocument===y&&g(y,e)?-1:t===w||t.ownerDocument===y&&g(y,t)?1:d?$(d,e)-$(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,i=0,s=e.parentNode,r=t.parentNode,a=[e],o=[t];if(!s||!r)return e===w?-1:t===w?1:s?-1:r?1:d?$(d,e)-$(d,t):0;if(s===r)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)o.unshift(n);for(;a[i]===o[i];)i++;return i?ue(a[i],o[i]):a[i]===y?-1:o[i]===y?1:0}),w},re.matches=function(e,t){return re(e,null,null,t)},re.matchesSelector=function(e,t){if((e.ownerDocument||e)!==w&&Y(e),t=t.replace(J,"='$1']"),_.matchesSelector&&k&&!T[t+" "]&&(!o||!o.test(t))&&(!f||!f.test(t)))try{var n=u.call(e,t);if(n||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(Z,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(Z,ee),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||re.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&re.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&q.test(n)&&(t=m(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(Z,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=h[e+" "];return t||(t=new RegExp("(^|"+A+")"+e+"("+A+"|$)"))&&h(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,i,s){return function(e){var t=re.attr(e,n);return null==t?"!="===i:!i||(t+="","="===i?t===s:"!="===i?t!==s:"^="===i?s&&0===t.indexOf(s):"*="===i?s&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function S(e,n,i){return y(n)?b.grep(e,function(e,t){return!!n.call(e,t,e)!==i}):n.nodeType?b.grep(e,function(e){return e===n!==i}):"string"!=typeof n?b.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(b.fn.init=function(e,t,n){var i,s;if(!e)return this;if(n=n||H,"string"!=typeof e)return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(b):b.makeArray(e,this);if(!(i="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:j.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof b?t[0]:t,b.merge(this,b.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:k,!0)),x.test(i[1])&&b.isPlainObject(t))for(i in t)y(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(s=k.getElementById(i[2]))&&(this[0]=s,this.length=1),this}).prototype=b.fn,H=b(k);var E=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}b.fn.extend({has:function(e){var t=b(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]+)/i,ue=/^$|^module$|\/(?:java|ecma)script/i,ce={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function he(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&T(e,t)?b.merge([e],n):n}function _e(e,t){for(var n=0,i=e.length;nx",g.noCloneChecked=!!me.cloneNode(!0).lastChild.defaultValue;var ye=k.documentElement,ve=/^key/,Me=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Le=/^([^.]*)(?:\.(.+)|)/;function Ye(){return!0}function we(){return!1}function ke(){try{return k.activeElement}catch(e){}}function be(e,t,n,i,s,r){var a,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)be(e,o,n,i,t[o],r);return e}if(null==i&&null==s?(s=n,i=n=void 0):null==s&&("string"==typeof n?(s=i,i=void 0):(s=i,i=n,n=void 0)),!1===s)s=we;else if(!s)return e;return 1===r&&(a=s,(s=function(e){return b().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=b.guid++)),e.each(function(){b.event.add(this,t,s,i,n)})}b.event={global:{},add:function(t,e,n,i,s){var r,a,o,d,l,u,c,h,_,m,p,f=B.get(t);if(f)for(n.handler&&(n=(r=n).handler,s=r.selector),s&&b.find.matchesSelector(ye,s),n.guid||(n.guid=b.guid++),(d=f.events)||(d=f.events={}),(a=f.handle)||(a=f.handle=function(e){return void 0!==b&&b.event.triggered!==e.type?b.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(P)||[""]).length;l--;)_=p=(o=Le.exec(e[l])||[])[1],m=(o[2]||"").split(".").sort(),_&&(c=b.event.special[_]||{},_=(s?c.delegateType:c.bindType)||_,c=b.event.special[_]||{},u=b.extend({type:_,origType:p,data:i,handler:n,guid:n.guid,selector:s,needsContext:s&&b.expr.match.needsContext.test(s),namespace:m.join(".")},r),(h=d[_])||((h=d[_]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(t,i,m,a)||t.addEventListener&&t.addEventListener(_,a)),c.add&&(c.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),s?h.splice(h.delegateCount++,0,u):h.push(u),b.event.global[_]=!0)},remove:function(e,t,n,i,s){var r,a,o,d,l,u,c,h,_,m,p,f=B.hasData(e)&&B.get(e);if(f&&(d=f.events)){for(l=(t=(t||"").match(P)||[""]).length;l--;)if(_=p=(o=Le.exec(t[l])||[])[1],m=(o[2]||"").split(".").sort(),_){for(c=b.event.special[_]||{},h=d[_=(i?c.delegateType:c.bindType)||_]||[],o=o[2]&&new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=r=h.length;r--;)u=h[r],!s&&p!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(r,1),u.selector&&h.delegateCount--,c.remove&&c.remove.call(e,u));a&&!h.length&&(c.teardown&&!1!==c.teardown.call(e,m,f.handle)||b.removeEvent(e,_,f.handle),delete d[_])}else for(_ in d)b.event.remove(e,_+t[l],n,i,!0);b.isEmptyObject(d)&&B.remove(e,"handle events")}},dispatch:function(e){var t,n,i,s,r,a,o=b.event.fix(e),d=new Array(arguments.length),l=(B.get(this,"events")||{})[o.type]||[],u=b.event.special[o.type]||{};for(d[0]=o,t=1;t\x20\t\r\n\f]*)[^>]*)\/>/gi,Te=/\s*$/g;function He(e,t){return T(e,"table")&&T(11!==t.nodeType?t:t.firstChild,"tr")&&b(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ee(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ce(e,t){var n,i,s,r,a,o,d,l;if(1===t.nodeType){if(B.hasData(e)&&(r=B.access(e),a=B.set(t,r),l=r.events))for(s in delete a.handle,a.events={},l)for(n=0,i=l[s].length;n")},clone:function(e,t,n){var i,s,r,a,o,d,l,u=e.cloneNode(!0),c=b.contains(e.ownerDocument,e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||b.isXMLDoc(e)))for(a=he(u),i=0,s=(r=he(e)).length;i").prop({charset:n.scriptCharset,src:n.url}).on("load error",s=function(e){i.remove(),s=null,e&&t("error"===e.type?404:200,e.type)}),k.head.appendChild(i[0])},abort:function(){s&&s()}}});var Rt,zt=[],Jt=/(=)\?(?=&|$)|\?\?/;b.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=zt.pop()||b.expando+"_"+Mt++;return this[e]=!0,e}}),b.ajaxPrefilter("json jsonp",function(e,t,n){var i,s,r,a=!1!==e.jsonp&&(Jt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Jt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Jt,"$1"+i):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return r||b.error(i+" was not called"),r[0]},e.dataTypes[0]="json",s=w[i],w[i]=function(){r=arguments},n.always(function(){void 0===s?b(w).removeProp(i):w[i]=s,e[i]&&(e.jsonpCallback=t.jsonpCallback,zt.push(i)),r&&y(s)&&s(r[0]),r=s=void 0}),"script"}),g.createHTMLDocument=((Rt=k.implementation.createHTMLDocument("").body).innerHTML="
",2===Rt.childNodes.length),b.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=k.implementation.createHTMLDocument("")).createElement("base")).href=k.location.href,t.head.appendChild(i)):t=k),r=!n&&[],(s=x.exec(e))?[t.createElement(s[1])]:(s=ge([e],t,r),r&&r.length&&b(r).remove(),b.merge([],s.childNodes)));var i,s,r},b.fn.load=function(e,t,n){var i,s,r,a=this,o=e.indexOf(" ");return-1").append(b.parseHTML(e)).find(i):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,r||[e.responseText,t,e])})}),this},b.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){b.fn[t]=function(e){return this.on(t,e)}}),b.expr.pseudos.animated=function(t){return b.grep(b.timers,function(e){return t===e.elem}).length},b.offset={setOffset:function(e,t,n){var i,s,r,a,o,d,l=b.css(e,"position"),u=b(e),c={};"static"===l&&(e.style.position="relative"),o=u.offset(),r=b.css(e,"top"),d=b.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(r+d).indexOf("auto")?(a=(i=u.position()).top,s=i.left):(a=parseFloat(r)||0,s=parseFloat(d)||0),y(t)&&(t=t.call(e,n,b.extend({},o))),null!=t.top&&(c.top=t.top-o.top+a),null!=t.left&&(c.left=t.left-o.left+s),"using"in t?t.using.call(e,c):u.css(c)}},b.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){b.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.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],s={top:0,left:0};if("fixed"===b.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"===b.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((s=b(e).offset()).top+=b.css(e,"borderTopWidth",!0),s.left+=b.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-b.css(i,"marginTop",!0),left:t.left-s.left-b.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===b.css(e,"position");)e=e.offsetParent;return e||ye})}}),b.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,s){var r="pageYOffset"===s;b.fn[t]=function(e){return R(this,function(e,t,n){var i;if(v(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===n)return i?i[s]:e[t];i?i.scrollTo(r?i.pageXOffset:n,r?n:i.pageYOffset):e[t]=n},t,e,arguments.length)}}),b.each(["top","left"],function(e,n){b.cssHooks[n]=Ne(g.pixelPosition,function(e,t){if(t)return t=We(e,n),Ae.test(t)?b(e).position()[n]+"px":t})}),b.each({Height:"height",Width:"width"},function(a,o){b.each({padding:"inner"+a,content:o,"":"outer"+a},function(i,r){b.fn[r]=function(e,t){var n=arguments.length&&(i||"boolean"!=typeof e),s=i||(!0===e||!0===t?"margin":"border");return R(this,function(e,t,n){var i;return v(e)?0===r.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(i=e.documentElement,Math.max(e.body["scroll"+a],i["scroll"+a],e.body["offset"+a],i["offset"+a],i["client"+a])):void 0===n?b.css(e,t,s):b.style(e,t,n,s)},o,n?e:void 0,n)}})}),b.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){b.fn[n]=function(e,t){return 0this.$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(ndocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&e?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!e?this.scrollbarWidth:""})},o.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},o.prototype.checkScrollbar=function(){var e=window.innerWidth;if(!e){var t=document.documentElement.getBoundingClientRect();e=t.right-Math.abs(t.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},f.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(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(" "),s=i.length;s--;){var r=i[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,p.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",o="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+this.type,this.options.selector,p.proxy(this.enter,this)),this.$element.on(o+"."+this.type,this.options.selector,p.proxy(this.leave,this))}}this.options.selector?this._options=p.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},f.prototype.getDefaults=function(){return f.DEFAULTS},f.prototype.getOptions=function(e){return(e=p.extend({},this.getDefaults(),this.$element.data(),e)).delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},f.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},f.prototype.enter=function(e){var t=e instanceof this.constructor?e:p(e.currentTarget).data("bs."+this.type);return 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?void(t.hoverState="in"):(clearTimeout(t.timeout),t.hoverState="in",t.options.delay&&t.options.delay.show?void(t.timeout=setTimeout(function(){"in"==t.hoverState&&t.show()},t.options.delay.show)):t.show())},f.prototype.isInStateTrue=function(){for(var e in this.inState)if(this.inState[e])return!0;return!1},f.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())return clearTimeout(t.timeout),t.hoverState="out",t.options.delay&&t.options.delay.hide?void(t.timeout=setTimeout(function(){"out"==t.hoverState&&t.hide()},t.options.delay.hide)):t.hide()},f.prototype.show=function(){var e=p.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var t=p.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!t)return;var n=this,i=this.tip(),s=this.getUID(this.type);this.setContent(),i.attr("id",s),this.$element.attr("aria-describedby",s),this.options.animation&&i.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,o=a.test(r);o&&(r=r.replace(a,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var d=this.getPosition(),l=i[0].offsetWidth,u=i[0].offsetHeight;if(o){var c=r,h=this.getPosition(this.$viewport);r="bottom"==r&&d.bottom+u>h.bottom?"top":"top"==r&&d.top-uh.width?"left":"left"==r&&d.left-la.top+a.height&&(s.top=a.top+a.height-d)}else{var l=t.left-r,u=t.left+r+n;la.right&&(s.left=a.left+a.width-u)}return s},f.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)},f.prototype.getUID=function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},f.prototype.tip=function(){if(!this.$tip&&(this.$tip=p(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},f.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},f.prototype.enable=function(){this.enabled=!0},f.prototype.disable=function(){this.enabled=!1},f.prototype.toggleEnabled=function(){this.enabled=!this.enabled},f.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)},f.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})};var e=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 f(this,n)),"string"==typeof i&&t[i]())})},p.fn.tooltip.Constructor=f,p.fn.tooltip.noConflict=function(){return p.fn.tooltip=e,this}}(jQuery),function(s){"use strict";var r=function(e,t){this.init("popover",e,t)};if(!s.fn.tooltip)throw new Error("Popover requires tooltip.js");r.VERSION="3.3.7",r.DEFAULTS=s.extend({},s.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),((r.prototype=s.extend({},s.fn.tooltip.Constructor.prototype)).constructor=r).prototype.getDefaults=function(){return r.DEFAULTS},r.prototype.setContent=function(){var e=this.tip(),t=this.getTitle(),n=this.getContent();e.find(".popover-title")[this.options.html?"html":"text"](t),e.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof n?"html":"append":"text"](n),e.removeClass("fade top bottom left right in"),e.find(".popover-title").html()||e.find(".popover-title").hide()},r.prototype.hasContent=function(){return this.getTitle()||this.getContent()},r.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)},r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var e=s.fn.popover;s.fn.popover=function(i){return this.each(function(){var e=s(this),t=e.data("bs.popover"),n="object"==typeof i&&i;!t&&/destroy|hide/.test(i)||(t||e.data("bs.popover",t=new r(this,n)),"string"==typeof i&&t[i]())})},s.fn.popover.Constructor=r,s.fn.popover.noConflict=function(){return s.fn.popover=e,this}}(jQuery),function(r){"use strict";function s(e,t){this.$body=r(document.body),this.$scrollElement=r(r(e).is(document.body)?window:e),this.options=r.extend({},s.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",r.proxy(this.process,this)),this.refresh(),this.process()}function t(i){return this.each(function(){var e=r(this),t=e.data("bs.scrollspy"),n="object"==typeof i&&i;t||e.data("bs.scrollspy",t=new s(this,n)),"string"==typeof i&&t[i]()})}s.VERSION="3.3.7",s.DEFAULTS={offset:10},s.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},s.prototype.refresh=function(){var e=this,i="offset",s=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),r.isWindow(this.$scrollElement[0])||(i="position",s=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=r(this),t=e.data("target")||e.attr("href"),n=/^#./.test(t)&&r(t);return n&&n.length&&n.is(":visible")&&[[n[i]().top+s,t]]||null}).sort(function(e,t){return e[0]-t[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},s.prototype.process=function(){var e,t=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),s=this.offsets,r=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),i<=t)return a!=(e=r[r.length-1])&&this.activate(e);if(a&&t=s[e]&&(void 0===s[e+1]||t .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),r?(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()}var s=t.find("> .active"),r=n&&o.support.transition&&(s.length&&s.hasClass("fade")||!!t.find("> .fade").length);s.length&&r?s.one("bsTransitionEnd",i).emulateTransitionEnd(a.TRANSITION_DURATION):i(),s.removeClass("in")};var e=o.fn.tab;o.fn.tab=t,o.fn.tab.Constructor=a,o.fn.tab.noConflict=function(){return o.fn.tab=e,this};var n=function(e){e.preventDefault(),t.call(o(this),"show")};o(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',n).on("click.bs.tab.data-api",'[data-toggle="pill"]',n)}(jQuery),function(d){"use strict";function n(i){return this.each(function(){var e=d(this),t=e.data("bs.affix"),n="object"==typeof i&&i;t||e.data("bs.affix",t=new l(this,n)),"string"==typeof i&&t[i]()})}var l=function(e,t){this.options=d.extend({},l.DEFAULTS,t),this.$target=d(this.options.target).on("scroll.bs.affix.data-api",d.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",d.proxy(this.checkPositionWithEventLoop,this)),this.$element=d(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};l.VERSION="3.3.7",l.RESET="affix affix-top affix-bottom",l.DEFAULTS={offset:0,target:window},l.prototype.getState=function(e,t,n,i){var s=this.$target.scrollTop(),r=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return s").replace(/''/g,"'"):""}},EJS.newRequest=function(){for(var e=[function(){return new ActiveXObject("Msxml2.XMLHTTP")},function(){return new XMLHttpRequest},function(){return new ActiveXObject("Microsoft.XMLHTTP")}],t=0;t")},EJS.Helpers.prototype.start_tag_for=function(e,t){return this.tag(e,t)},EJS.Helpers.prototype.submit_tag=function(e,t){return(t=t||{}).type=t.type||"submit",t.value=e||"Submit",this.single_tag_for("input",t)},EJS.Helpers.prototype.tag=function(e,t,n){if(!n)n=">";var i=" ";for(var s in t){if(null!=t[s])var r=t[s].toString();else r="";"Class"==s&&(s="class"),-1!=r.indexOf("'")?i+=s+'="'+r+'" ':i+=s+"='"+r+"' "}return"<"+e+i+n},EJS.Helpers.prototype.tag_end=function(e){return""},EJS.Helpers.prototype.text_area_tag=function(e,t,n){return(n=n||{}).id=n.id||e,n.name=n.name||e,t=t||"",n.size&&(n.cols=n.size.split("x")[0],n.rows=n.size.split("x")[1],delete n.size),n.cols=n.cols||50,n.rows=n.rows||4,this.start_tag_for("textarea",n)+t+this.tag_end("textarea")},EJS.Helpers.prototype.text_tag=EJS.Helpers.prototype.text_area_tag,EJS.Helpers.prototype.text_field_tag=function(e,t,n){return this.input_field_tag(e,t,"text",n)},EJS.Helpers.prototype.url_for=function(e){return'window.location="'+e+'";'},EJS.Helpers.prototype.img_tag=function(e,t,n){return(n=n||{}).src=e,n.alt=t,this.single_tag_for("img",n)},function(t){"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e,document,window,navigator)}):"object"==typeof exports?t(require("jquery"),document,window,navigator):t(jQuery,document,window,navigator)}(function(r,a,o,e,d){var t,n,i=0,s=(t=e.userAgent,n=/msie\s\d+/i,0>>0;if(0===s)return-1;if(n=+t||0,1/0===Math.abs(n)&&(n=0),s<=n)return-1;for(n=Math.max(0<=n?n:s-Math.abs(n),0);n!",s[0]),(s={type:s.data("type"),min:s.data("min"),max:s.data("max"),from:s.data("from"),to:s.data("to"),step:s.data("step"),min_interval:s.data("minInterval"),max_interval:s.data("maxInterval"),drag_interval:s.data("dragInterval"),values:s.data("values"),from_fixed:s.data("fromFixed"),from_min:s.data("fromMin"),from_max:s.data("fromMax"),from_shadow:s.data("fromShadow"),to_fixed:s.data("toFixed"),to_min:s.data("toMin"),to_max:s.data("toMax"),to_shadow:s.data("toShadow"),prettify_enabled:s.data("prettifyEnabled"),prettify_separator:s.data("prettifySeparator"),force_edges:s.data("forceEdges"),keyboard:s.data("keyboard"),keyboard_step:s.data("keyboardStep"),grid:s.data("grid"),grid_margin:s.data("gridMargin"),grid_num:s.data("gridNum"),grid_snap:s.data("gridSnap"),hide_min_max:s.data("hideMinMax"),hide_from_to:s.data("hideFromTo"),prefix:s.data("prefix"),postfix:s.data("postfix"),max_postfix:s.data("maxPostfix"),decorate_both:s.data("decorateBoth"),values_separator:s.data("valuesSeparator"),input_values_separator:s.data("inputValuesSeparator"),disable:s.data("disable")}).values=s.values&&s.values.split(","),s)s.hasOwnProperty(i)&&(s[i]!==d&&""!==s[i]||delete s[i]);e!==d&&""!==e&&((e=e.split(s.input_values_separator||t.input_values_separator||";"))[0]&&e[0]==+e[0]&&(e[0]=+e[0]),e[1]&&e[1]==+e[1]&&(e[1]=+e[1]),t&&t.values&&t.values.length?(n.from=e[0]&&t.values.indexOf(e[0]),n.to=e[1]&&t.values.indexOf(e[1])):(n.from=e[0]&&+e[0],n.to=e[1]&&+e[1])),r.extend(n,t),r.extend(n,s),this.options=n,this.update_check={},this.validate(),this.result={input:this.$cache.input,slider:null,min:this.options.min,max:this.options.max,from:this.options.from,from_percent:0,from_value:null,to:this.options.to,to_percent:0,to_value:null},this.init()};l.prototype={init:function(e){this.no_diapason=!1,this.coords.p_step=this.convertToPercent(this.options.step,!0),this.target="base",this.toggleInput(),this.append(),this.setMinMax(),e?(this.force_redraw=!0,this.calc(!0),this.callOnUpdate()):(this.force_redraw=!0,this.calc(!0),this.callOnStart()),this.updateScene()},append:function(){this.$cache.input.before(''),this.$cache.input.prop("readonly",!0),this.$cache.cont=this.$cache.input.prev(),this.result.slider=this.$cache.cont,this.$cache.cont.html('01000'),this.$cache.rs=this.$cache.cont.find(".irs"),this.$cache.min=this.$cache.cont.find(".irs-min"),this.$cache.max=this.$cache.cont.find(".irs-max"),this.$cache.from=this.$cache.cont.find(".irs-from"),this.$cache.to=this.$cache.cont.find(".irs-to"),this.$cache.single=this.$cache.cont.find(".irs-single"),this.$cache.bar=this.$cache.cont.find(".irs-bar"),this.$cache.line=this.$cache.cont.find(".irs-line"),this.$cache.grid=this.$cache.cont.find(".irs-grid"),"single"===this.options.type?(this.$cache.cont.append(''),this.$cache.edge=this.$cache.cont.find(".irs-bar-edge"),this.$cache.s_single=this.$cache.cont.find(".single"),this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.shad_single=this.$cache.cont.find(".shadow-single")):(this.$cache.cont.append(''),this.$cache.s_from=this.$cache.cont.find(".from"),this.$cache.s_to=this.$cache.cont.find(".to"),this.$cache.shad_from=this.$cache.cont.find(".shadow-from"),this.$cache.shad_to=this.$cache.cont.find(".shadow-to"),this.setTopHandler()),this.options.hide_from_to&&(this.$cache.from[0].style.display="none",this.$cache.to[0].style.display="none",this.$cache.single[0].style.display="none"),this.appendGrid(),this.options.disable?(this.appendDisableMask(),this.$cache.input[0].disabled=!0):(this.$cache.cont.removeClass("irs-disabled"),this.$cache.input[0].disabled=!1,this.bindEvents()),this.options.drag_interval&&(this.$cache.bar[0].style.cursor="ew-resize")},setTopHandler:function(){var e=this.options.max,t=this.options.to;this.options.from>this.options.min&&t===e?this.$cache.s_from.addClass("type_last"):t'),this.$cache.cont.addClass("irs-disabled")},remove:function(){this.$cache.cont.remove(),this.$cache.cont=null,this.$cache.line.off("keydown.irs_"+this.plugin_count),this.$cache.body.off("touchmove.irs_"+this.plugin_count),this.$cache.body.off("mousemove.irs_"+this.plugin_count),this.$cache.win.off("touchend.irs_"+this.plugin_count),this.$cache.win.off("mouseup.irs_"+this.plugin_count),s&&(this.$cache.body.off("mouseup.irs_"+this.plugin_count),this.$cache.body.off("mouseleave.irs_"+this.plugin_count)),this.$cache.grid_labels=[],this.coords.big=[],this.coords.big_w=[],this.coords.big_p=[],this.coords.big_x=[],cancelAnimationFrame(this.raf_id)},bindEvents:function(){this.no_diapason||(this.$cache.body.on("touchmove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.body.on("mousemove.irs_"+this.plugin_count,this.pointerMove.bind(this)),this.$cache.win.on("touchend.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.win.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.line.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.line.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.options.drag_interval&&"double"===this.options.type?(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"both")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"both"))):(this.$cache.bar.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.bar.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),"single"===this.options.type?(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.shad_single.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.s_single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"single")),this.$cache.edge.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_single.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))):(this.$cache.single.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.single.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,null)),this.$cache.from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("touchstart.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("touchstart.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.s_from.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"from")),this.$cache.to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.s_to.on("mousedown.irs_"+this.plugin_count,this.pointerDown.bind(this,"to")),this.$cache.shad_from.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click")),this.$cache.shad_to.on("mousedown.irs_"+this.plugin_count,this.pointerClick.bind(this,"click"))),this.options.keyboard&&this.$cache.line.on("keydown.irs_"+this.plugin_count,this.key.bind(this,"keyboard")),s&&(this.$cache.body.on("mouseup.irs_"+this.plugin_count,this.pointerUp.bind(this)),this.$cache.body.on("mouseleave.irs_"+this.plugin_count,this.pointerUp.bind(this))))},pointerMove:function(e){this.dragging&&(this.coords.x_pointer=(e.pageX||e.originalEvent.touches&&e.originalEvent.touches[0].pageX)-this.coords.x_gap,this.calc())},pointerUp:function(e){this.current_plugin===this.plugin_count&&this.is_active&&(this.is_active=!1,this.$cache.cont.find(".state_hover").removeClass("state_hover"),this.force_redraw=!0,s&&r("*").prop("unselectable",!1),this.updateScene(),this.restoreOriginalMinInterval(),(r.contains(this.$cache.cont[0],e.target)||this.dragging)&&this.callOnFinish(),this.dragging=!1)},pointerDown:function(e,t){t.preventDefault();var n=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;2!==t.button&&("both"===e&&this.setTempMinInterval(),e||(e=this.target||"from"),this.current_plugin=this.plugin_count,this.target=e,this.dragging=this.is_active=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=n-this.coords.x_gap,this.calcPointerPercent(),this.changeLevel(e),s&&r("*").prop("unselectable",!0),this.$cache.line.trigger("focus"),this.updateScene())},pointerClick:function(e,t){t.preventDefault();var n=t.pageX||t.originalEvent.touches&&t.originalEvent.touches[0].pageX;2!==t.button&&(this.current_plugin=this.plugin_count,this.target=e,this.is_click=!0,this.coords.x_gap=this.$cache.rs.offset().left,this.coords.x_pointer=+(n-this.coords.x_gap).toFixed(),this.force_redraw=!0,this.calc(),this.$cache.line.trigger("focus"))},key:function(e,t){if(!(this.current_plugin!==this.plugin_count||t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)){switch(t.which){case 83:case 65:case 40:case 37:t.preventDefault(),this.moveByKey(!1);break;case 87:case 68:case 38:case 39:t.preventDefault(),this.moveByKey(!0)}return!0}},moveByKey:function(e){var t=this.coords.p_pointer;t=e?t+this.options.keyboard_step:t-this.options.keyboard_step;this.coords.x_pointer=this.toFixed(this.coords.w_rs/100*t),this.is_key=!0,this.calc()},setMinMax:function(){this.options&&(this.options.hide_min_max?(this.$cache.min[0].style.display="none",this.$cache.max[0].style.display="none"):(this.options.values.length?(this.$cache.min.html(this.decorate(this.options.p_values[this.options.min])),this.$cache.max.html(this.decorate(this.options.p_values[this.options.max]))):(this.$cache.min.html(this.decorate(this._prettify(this.options.min),this.options.min)),this.$cache.max.html(this.decorate(this._prettify(this.options.max),this.options.max))),this.labels.w_min=this.$cache.min.outerWidth(!1),this.labels.w_max=this.$cache.max.outerWidth(!1)))},setTempMinInterval:function(){var e=this.result.to-this.result.from;null===this.old_min_interval&&(this.old_min_interval=this.options.min_interval),this.options.min_interval=e},restoreOriginalMinInterval:function(){null!==this.old_min_interval&&(this.options.min_interval=this.old_min_interval,this.old_min_interval=null)},calc:function(e){if(this.options&&(this.calc_count++,(10===this.calc_count||e)&&(this.calc_count=0,this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.calcHandlePercent()),this.coords.w_rs)){switch(this.calcPointerPercent(),e=this.getHandleX(),"both"===this.target&&(this.coords.p_gap=0,e=this.getHandleX()),"click"===this.target&&(this.coords.p_gap=this.coords.p_handle/2,e=this.getHandleX(),this.target=this.options.drag_interval?"both_one":this.chooseHandle(e)),this.target){case"base":var t=(this.options.max-this.options.min)/100;e=(this.result.from-this.options.min)/t,t=(this.result.to-this.options.min)/t,this.coords.p_single_real=this.toFixed(e),this.coords.p_from_real=this.toFixed(e),this.coords.p_to_real=this.toFixed(t),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_to_real=this.checkDiapason(this.coords.p_to_real,this.options.to_min,this.options.to_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real),this.coords.p_to_fake=this.convertToFakePercent(this.coords.p_to_real),this.target=null;break;case"single":if(this.options.from_fixed)break;this.coords.p_single_real=this.convertToRealPercent(e),this.coords.p_single_real=this.calcWithStep(this.coords.p_single_real),this.coords.p_single_real=this.checkDiapason(this.coords.p_single_real,this.options.from_min,this.options.from_max),this.coords.p_single_fake=this.convertToFakePercent(this.coords.p_single_real);break;case"from":if(this.options.from_fixed)break;this.coords.p_from_real=this.convertToRealPercent(e),this.coords.p_from_real=this.calcWithStep(this.coords.p_from_real),this.coords.p_from_real>this.coords.p_to_real&&(this.coords.p_from_real=this.coords.p_to_real),this.coords.p_from_real=this.checkDiapason(this.coords.p_from_real,this.options.from_min,this.options.from_max),this.coords.p_from_real=this.checkMinInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_real=this.checkMaxInterval(this.coords.p_from_real,this.coords.p_to_real,"from"),this.coords.p_from_fake=this.convertToFakePercent(this.coords.p_from_real);break;case"to":if(this.options.to_fixed)break;this.coords.p_to_real=this.convertToRealPercent(e),this.coords.p_to_real=this.calcWithStep(this.coords.p_to_real),this.coords.p_to_realthis.coords.w_rs&&(this.coords.x_pointer=this.coords.w_rs),this.coords.p_pointer=this.toFixed(this.coords.x_pointer/this.coords.w_rs*100)):this.coords.p_pointer=0},convertToRealPercent:function(e){return e/(100-this.coords.p_handle)*100},convertToFakePercent:function(e){return e/100*(100-this.coords.p_handle)},getHandleX:function(){var e=100-this.coords.p_handle,t=this.toFixed(this.coords.p_pointer-this.coords.p_gap);return t<0?t=0:e=this.coords.p_from_real+(this.coords.p_to_real-this.coords.p_from_real)/2?this.options.to_fixed?"from":"to":this.options.from_fixed?"to":"from"},calcMinMax:function(){this.coords.w_rs&&(this.labels.p_min=this.labels.w_min/this.coords.w_rs*100,this.labels.p_max=this.labels.w_max/this.coords.w_rs*100)},calcLabels:function(){this.coords.w_rs&&!this.options.hide_from_to&&("single"===this.options.type?(this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=this.coords.p_single_fake+this.coords.p_handle/2-this.labels.p_single_fake/2):(this.labels.w_from=this.$cache.from.outerWidth(!1),this.labels.p_from_fake=this.labels.w_from/this.coords.w_rs*100,this.labels.p_from_left=this.coords.p_from_fake+this.coords.p_handle/2-this.labels.p_from_fake/2,this.labels.p_from_left=this.toFixed(this.labels.p_from_left),this.labels.p_from_left=this.checkEdges(this.labels.p_from_left,this.labels.p_from_fake),this.labels.w_to=this.$cache.to.outerWidth(!1),this.labels.p_to_fake=this.labels.w_to/this.coords.w_rs*100,this.labels.p_to_left=this.coords.p_to_fake+this.coords.p_handle/2-this.labels.p_to_fake/2,this.labels.p_to_left=this.toFixed(this.labels.p_to_left),this.labels.p_to_left=this.checkEdges(this.labels.p_to_left,this.labels.p_to_fake),this.labels.w_single=this.$cache.single.outerWidth(!1),this.labels.p_single_fake=this.labels.w_single/this.coords.w_rs*100,this.labels.p_single_left=(this.labels.p_from_left+this.labels.p_to_left+this.labels.p_to_fake)/2-this.labels.p_single_fake/2,this.labels.p_single_left=this.toFixed(this.labels.p_single_left)),this.labels.p_single_left=this.checkEdges(this.labels.p_single_left,this.labels.p_single_fake))},updateScene:function(){this.raf_id&&(cancelAnimationFrame(this.raf_id),this.raf_id=null),clearTimeout(this.update_tm),this.update_tm=null,this.options&&(this.drawHandles(),this.is_active?this.raf_id=requestAnimationFrame(this.updateScene.bind(this)):this.update_tm=setTimeout(this.updateScene.bind(this),300))},drawHandles:function(){this.coords.w_rs=this.$cache.rs.outerWidth(!1),this.coords.w_rs&&(this.coords.w_rs!==this.coords.w_rs_old&&(this.target="base",this.is_resize=!0),(this.coords.w_rs!==this.coords.w_rs_old||this.force_redraw)&&(this.setMinMax(),this.calc(!0),this.drawLabels(),this.options.grid&&(this.calcGridMargin(),this.calcGridLabels()),this.force_redraw=!0,this.coords.w_rs_old=this.coords.w_rs,this.drawShadow()),this.coords.w_rs&&(this.dragging||this.force_redraw||this.is_key)&&((this.old_from!==this.result.from||this.old_to!==this.result.to||this.force_redraw||this.is_key)&&(this.drawLabels(),this.$cache.bar[0].style.left=this.coords.p_bar_x+"%",this.$cache.bar[0].style.width=this.coords.p_bar_w+"%","single"===this.options.type?this.$cache.s_single[0].style.left=this.coords.p_single_fake+"%":(this.$cache.s_from[0].style.left=this.coords.p_from_fake+"%",this.$cache.s_to[0].style.left=this.coords.p_to_fake+"%",(this.old_from!==this.result.from||this.force_redraw)&&(this.$cache.from[0].style.left=this.labels.p_from_left+"%"),(this.old_to!==this.result.to||this.force_redraw)&&(this.$cache.to[0].style.left=this.labels.p_to_left+"%")),this.$cache.single[0].style.left=this.labels.p_single_left+"%",this.writeToInput(),this.old_from===this.result.from&&this.old_to===this.result.to||this.is_start||(this.$cache.input.trigger("change"),this.$cache.input.trigger("input")),this.old_from=this.result.from,this.old_to=this.result.to,this.is_resize||this.is_update||this.is_start||this.is_finish||this.callOnChange(),(this.is_key||this.is_click||this.is_first_update)&&(this.is_first_update=this.is_click=this.is_key=!1,this.callOnFinish()),this.is_finish=this.is_resize=this.is_update=!1),this.force_redraw=this.is_click=this.is_key=this.is_start=!1))},drawLabels:function(){if(this.options){var e,t=this.options.values.length,n=this.options.p_values;if(!this.options.hide_from_to)if("single"===this.options.type)t=t?this.decorate(n[this.result.from]):this.decorate(this._prettify(this.result.from),this.result.from),this.$cache.single.html(t),this.calcLabels(),this.$cache.min[0].style.visibility=this.labels.p_single_left100-this.labels.p_max-1?"hidden":"visible";else{t?(this.options.decorate_both?(t=this.decorate(n[this.result.from]),t+=this.options.values_separator,t+=this.decorate(n[this.result.to])):t=this.decorate(n[this.result.from]+this.options.values_separator+n[this.result.to]),e=this.decorate(n[this.result.from]),n=this.decorate(n[this.result.to])):(this.options.decorate_both?(t=this.decorate(this._prettify(this.result.from),this.result.from),t+=this.options.values_separator,t+=this.decorate(this._prettify(this.result.to),this.result.to)):t=this.decorate(this._prettify(this.result.from)+this.options.values_separator+this._prettify(this.result.to),this.result.to),e=this.decorate(this._prettify(this.result.from),this.result.from),n=this.decorate(this._prettify(this.result.to),this.result.to)),this.$cache.single.html(t),this.$cache.from.html(e),this.$cache.to.html(n),this.calcLabels(),n=Math.min(this.labels.p_single_left,this.labels.p_from_left),t=this.labels.p_single_left+this.labels.p_single_fake,e=this.labels.p_to_left+this.labels.p_to_fake;var i=Math.max(t,e);this.labels.p_from_left+this.labels.p_from_fake>=this.labels.p_to_left?(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",this.result.from===this.result.to?("from"===this.target?this.$cache.from[0].style.visibility="visible":"to"===this.target?this.$cache.to[0].style.visibility="visible":this.target||(this.$cache.from[0].style.visibility="visible"),this.$cache.single[0].style.visibility="hidden",i=e):(this.$cache.from[0].style.visibility="hidden",this.$cache.to[0].style.visibility="hidden",this.$cache.single[0].style.visibility="visible",i=Math.max(t,e))):(this.$cache.from[0].style.visibility="visible",this.$cache.to[0].style.visibility="visible",this.$cache.single[0].style.visibility="hidden"),this.$cache.min[0].style.visibility=n100-this.labels.p_max-1?"hidden":"visible"}}},drawShadow:function(){var e=this.options,t=this.$cache,n="number"==typeof e.from_min&&!isNaN(e.from_min),i="number"==typeof e.from_max&&!isNaN(e.from_max),s="number"==typeof e.to_min&&!isNaN(e.to_min),r="number"==typeof e.to_max&&!isNaN(e.to_max);"single"===e.type?e.from_shadow&&(n||i)?(n=this.convertToPercent(n?e.from_min:e.min),i=this.convertToPercent(i?e.from_max:e.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,t.shad_single[0].style.display="block",t.shad_single[0].style.left=n+"%",t.shad_single[0].style.width=i+"%"):t.shad_single[0].style.display="none":(e.from_shadow&&(n||i)?(n=this.convertToPercent(n?e.from_min:e.min),i=this.convertToPercent(i?e.from_max:e.max)-n,n=this.toFixed(n-this.coords.p_handle/100*n),i=this.toFixed(i-this.coords.p_handle/100*i),n+=this.coords.p_handle/2,t.shad_from[0].style.display="block",t.shad_from[0].style.left=n+"%",t.shad_from[0].style.width=i+"%"):t.shad_from[0].style.display="none",e.to_shadow&&(s||r)?(s=this.convertToPercent(s?e.to_min:e.min),e=this.convertToPercent(r?e.to_max:e.max)-s,s=this.toFixed(s-this.coords.p_handle/100*s),e=this.toFixed(e-this.coords.p_handle/100*e),s+=this.coords.p_handle/2,t.shad_to[0].style.display="block",t.shad_to[0].style.left=s+"%",t.shad_to[0].style.width=e+"%"):t.shad_to[0].style.display="none")},writeToInput:function(){"single"===this.options.type?(this.options.values.length?this.$cache.input.prop("value",this.result.from_value):this.$cache.input.prop("value",this.result.from),this.$cache.input.data("from",this.result.from)):(this.options.values.length?this.$cache.input.prop("value",this.result.from_value+this.options.input_values_separator+this.result.to_value):this.$cache.input.prop("value",this.result.from+this.options.input_values_separator+this.result.to),this.$cache.input.data("from",this.result.from),this.$cache.input.data("to",this.result.to))},callOnStart:function(){this.writeToInput(),this.options.onStart&&"function"==typeof this.options.onStart&&this.options.onStart(this.result)},callOnChange:function(){this.writeToInput(),this.options.onChange&&"function"==typeof this.options.onChange&&this.options.onChange(this.result)},callOnFinish:function(){this.writeToInput(),this.options.onFinish&&"function"==typeof this.options.onFinish&&this.options.onFinish(this.result)},callOnUpdate:function(){this.writeToInput(),this.options.onUpdate&&"function"==typeof this.options.onUpdate&&this.options.onUpdate(this.result)},toggleInput:function(){this.$cache.input.toggleClass("irs-hidden-input")},convertToPercent:function(e,t){var n=this.options.max-this.options.min;return n?this.toFixed((t?e:e-this.options.min)/(n/100)):(this.no_diapason=!0,0)},convertToValue:function(e){var t,n,i=this.options.min,s=this.options.max,r=i.toString().split(".")[1],a=s.toString().split(".")[1],o=0,d=0;return 0===e?this.options.min:100===e?this.options.max:(r&&(o=t=r.length),a&&(o=n=a.length),t&&n&&(o=n<=t?t:n),i<0&&(i=+(i+(d=Math.abs(i))).toFixed(o),s=+(s+d).toFixed(o)),e=(s-i)/100*e+i,(i=this.options.step.toString().split(".")[1])?e=+e.toFixed(i.length):(e/=this.options.step,e=+(e*=this.options.step).toFixed(0)),d&&(e-=d),(d=i?+e.toFixed(i.length):this.toFixed(e))this.options.max&&(d=this.options.max),d)},calcWithStep:function(e){var t=Math.round(e/this.coords.p_step)*this.coords.p_step;return 100i.max_interval&&(e=t-i.max_interval):e-t>i.max_interval&&(e=t+i.max_interval),this.convertToPercent(e)):e},checkDiapason:function(e,t,n){e=this.convertToValue(e);var i=this.options;return"number"!=typeof t&&(t=i.min),"number"!=typeof n&&(n=i.max),en.max&&(n.from=n.max)):(n.fromn.max&&(n.from=n.max),n.ton.max&&(n.to=n.max),this.update_check.from&&(this.update_check.from!==n.from&&n.from>n.to&&(n.from=n.to),this.update_check.to!==n.to&&n.ton.to&&(n.from=n.to),n.ton.from_max&&(n.from=n.from_max),"number"==typeof n.to_min&&n.ton.to_max&&(n.to=n.to_max),i&&(i.min!==n.min&&(i.min=n.min),i.max!==n.max&&(i.max=n.max),(i.fromi.max)&&(i.from=n.from),(i.toi.max)&&(i.to=n.to)),("number"!=typeof n.min_interval||isNaN(n.min_interval)||!n.min_interval||n.min_interval<0)&&(n.min_interval=0),("number"!=typeof n.max_interval||isNaN(n.max_interval)||!n.max_interval||n.max_interval<0)&&(n.max_interval=0),n.min_interval&&n.min_interval>n.max-n.min&&(n.min_interval=n.max-n.min),n.max_interval&&n.max_interval>n.max-n.min&&(n.max_interval=n.max-n.min)},decorate:function(e,t){var n="",i=this.options;return i.prefix&&(n+=i.prefix),n+=e,i.max_postfix&&(i.values.length&&e===i.p_values[i.max]?(n+=i.max_postfix,i.postfix&&(n+=" ")):t===i.max&&(n+=i.max_postfix,i.postfix&&(n+=" "))),i.postfix&&(n+=i.postfix),n},updateFrom:function(){this.result.from=this.options.from,this.result.from_percent=this.convertToPercent(this.result.from),this.options.values&&(this.result.from_value=this.options.values[this.result.from])},updateTo:function(){this.result.to=this.options.to,this.result.to_percent=this.convertToPercent(this.result.to),this.options.values&&(this.result.to_value=this.options.values[this.result.to])},updateResult:function(){this.result.min=this.options.min,this.result.max=this.options.max,this.updateFrom(),this.updateTo()},appendGrid:function(){if(this.options.grid){var e,t,n=this.options;e=n.max-n.min;var i,s,r,a,o=n.grid_num,d=4,l="";for(this.calcGridMargin(),n.grid_snap?(o=e/n.step,i=this.toFixed(n.step/(e/100))):i=this.toFixed(100/o),4';l+='',t=this.convertToValue(s),l+=''+(t=n.values.length?n.p_values[t]:this._prettify(t))+""}this.coords.big_num=Math.ceil(o+1),this.$cache.cont.addClass("irs-with-grid"),this.$cache.grid.html(l),this.cacheGridLabels()}},cacheGridLabels:function(){var e,t,n=this.coords.big_num;for(t=0;t100+this.coords.grid_gap&&(n[i-1]=100+this.coords.grid_gap,t[i-1]=this.toFixed(n[i-1]-this.coords.big_p[i-1]),this.coords.big_x[i-1]=this.toFixed(this.coords.big_p[i-1]-this.coords.grid_gap))),this.calcGridCollision(2,t,n),this.calcGridCollision(4,t,n),e=0;e>>0,i=0;iAe(e)?(r=e+1,a=o-Ae(e)):(r=e,a=o),{year:r,dayOfYear:a}}function Re(e,t,n){var i,s,r=Ne(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?i=a+ze(s=e.year()-1,t,n):a>ze(e.year(),t,n)?(i=a-ze(e.year(),t,n),s=e.year()+1):(s=e.year(),i=a),{week:i,year:s}}function ze(e,t,n){var i=Ne(e,t,n),s=Ne(e+1,t,n);return(Ae(e)-i+s)/7}q("w",["ww",2],"wo","week"),q("W",["WW",2],"Wo","isoWeek"),E("week","w"),E("isoWeek","W"),A("week",5),A("isoWeek",5),ce("w",Z),ce("ww",Z,B),ce("W",Z),ce("WW",Z,B),fe(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=w(e)});q("d",0,"do","day"),q("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),q("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),q("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),q("e",0,0,"weekday"),q("E",0,0,"isoWeekday"),E("day","d"),E("weekday","e"),E("isoWeekday","E"),A("day",11),A("weekday",11),A("isoWeekday",11),ce("d",Z),ce("e",Z),ce("E",Z),ce("dd",function(e,t){return t.weekdaysMinRegex(e)}),ce("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ce("dddd",function(e,t){return t.weekdaysRegex(e)}),fe(["dd","ddd","dddd"],function(e,t,n,i){var s=n._locale.weekdaysParse(e,i,n._strict);null!=s?t.d=s:f(n).invalidWeekday=e}),fe(["d","e","E"],function(e,t,n,i){t[i]=w(e)});var Je="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");var qe="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");var Ue="Su_Mo_Tu_We_Th_Fr_Sa".split("_");var Ve=le;var Ge=le;var Be=le;function Ke(){function e(e,t){return t.length-e.length}var t,n,i,s,r,a=[],o=[],d=[],l=[];for(t=0;t<7;t++)n=p([2e3,1]).day(t),i=this.weekdaysMin(n,""),s=this.weekdaysShort(n,""),r=this.weekdays(n,""),a.push(i),o.push(s),d.push(r),l.push(i),l.push(s),l.push(r);for(a.sort(e),o.sort(e),d.sort(e),l.sort(e),t=0;t<7;t++)o[t]=_e(o[t]),d[t]=_e(d[t]),l[t]=_e(l[t]);this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+d.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Qe(){return this.hours()%12||12}function Xe(e,t){q(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function Ze(e,t){return t._meridiemParse}q("H",["HH",2],0,"hour"),q("h",["hh",2],0,Qe),q("k",["kk",2],0,function(){return this.hours()||24}),q("hmm",0,0,function(){return""+Qe.apply(this)+N(this.minutes(),2)}),q("hmmss",0,0,function(){return""+Qe.apply(this)+N(this.minutes(),2)+N(this.seconds(),2)}),q("Hmm",0,0,function(){return""+this.hours()+N(this.minutes(),2)}),q("Hmmss",0,0,function(){return""+this.hours()+N(this.minutes(),2)+N(this.seconds(),2)}),Xe("a",!0),Xe("A",!1),E("hour","h"),A("hour",13),ce("a",Ze),ce("A",Ze),ce("H",Z),ce("h",Z),ce("HH",Z,B),ce("hh",Z,B),ce("hmm",ee),ce("hmmss",te),ce("Hmm",ee),ce("Hmmss",te),pe(["H","HH"],Me),pe(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),pe(["h","hh"],function(e,t,n){t[Me]=w(e),f(n).bigHour=!0}),pe("hmm",function(e,t,n){var i=e.length-2;t[Me]=w(e.substr(0,i)),t[Le]=w(e.substr(i)),f(n).bigHour=!0}),pe("hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[Me]=w(e.substr(0,i)),t[Le]=w(e.substr(i,2)),t[Ye]=w(e.substr(s)),f(n).bigHour=!0}),pe("Hmm",function(e,t,n){var i=e.length-2;t[Me]=w(e.substr(0,i)),t[Le]=w(e.substr(i))}),pe("Hmmss",function(e,t,n){var i=e.length-4,s=e.length-2;t[Me]=w(e.substr(0,i)),t[Le]=w(e.substr(i,2)),t[Ye]=w(e.substr(s))});var et,tt=O("Hours",!0),nt={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",ordinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Se,monthsShort:He,week:{dow:0,doy:6},weekdays:Je,weekdaysMin:Ue,weekdaysShort:qe,meridiemParse:/[ap]\.?m?\.?/i},it={},st={};function rt(e){return e?e.toLowerCase().replace("_","-"):e}function at(e){var t=null;if(!it[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=et._abbr,require("./locale/"+e),ot(t)}catch(e){}return it[e]}function ot(e,t){var n;return e&&(n=r(t)?lt(e):dt(e,t))&&(et=n),et._abbr}function dt(e,t){if(null===t)return delete it[e],null;var n=nt;if(t.abbr=e,null!=it[e])D("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=it[e]._config;else if(null!=t.parentLocale){if(null==it[t.parentLocale])return st[t.parentLocale]||(st[t.parentLocale]=[]),st[t.parentLocale].push({name:e,config:t}),null;n=it[t.parentLocale]._config}return it[e]=new S(x(n,t)),st[e]&&st[e].forEach(function(e){dt(e.name,e.config)}),ot(e),it[e]}function lt(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return et;if(!o(e)){if(t=at(e))return t;e=[e]}return function(e){for(var t,n,i,s,r=0;r=t&&k(s,n,!0)>=t-1)break;t--}r++}return null}(e)}function ut(e){var t,n=e._a;return n&&-2===f(e).overflow&&(t=n[ye]<0||11Te(n[ge],n[ye])?ve:n[Me]<0||24ze(n,r,a)?f(e)._overflowWeeks=!0:null!=d?f(e)._overflowWeekday=!0:(o=Ie(n,i,s,r,a),e._a[ge]=o.year,e._dayOfYear=o.dayOfYear)}(e),e._dayOfYear&&(s=yt(e._a[ge],i[ge]),e._dayOfYear>Ae(s)&&(f(e)._overflowDayOfYear=!0),n=We(s,0,e._dayOfYear),e._a[ye]=n.getUTCMonth(),e._a[ve]=n.getUTCDate()),t=0;t<3&&null==e._a[t];++t)e._a[t]=r[t]=i[t];for(;t<7;t++)e._a[t]=r[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[Me]&&0===e._a[Le]&&0===e._a[Ye]&&0===e._a[we]&&(e._nextDay=!0,e._a[Me]=0),e._d=(e._useUTC?We:function(e,t,n,i,s,r,a){var o=new Date(e,t,n,i,s,r,a);return e<100&&0<=e&&isFinite(o.getFullYear())&&o.setFullYear(e),o}).apply(null,r),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Me]=24)}}function Mt(e){if(e._f!==h.ISO_8601){e._a=[],f(e).empty=!0;var t,n,i,s,r,a,o,d,l=""+e._i,u=l.length,c=0;for(i=V(e._f,e._locale).match(I)||[],t=0;tn.valueOf():n.valueOf()this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},nn.isLocal=function(){return!!this.isValid()&&!this._isUTC},nn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},nn.isUtc=Pt,nn.isUTC=Pt,nn.zoneAbbr=function(){return this._isUTC?"UTC":""},nn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},nn.dates=n("dates accessor is deprecated. Use date instead.",Kt),nn.months=n("months accessor is deprecated. Use month instead",Ee),nn.years=n("years accessor is deprecated. Use year instead",Fe),nn.zone=n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),nn.isDSTShifted=n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!r(this._isDSTShifted))return this._isDSTShifted;var e={};if(v(e,this),(e=Lt(e))._a){var t=e._isUTC?p(e._a):wt(e._a);this._isDSTShifted=this.isValid()&&0S.eventLag.sampleCount&&r.shift(),t=m(r),++s>=S.eventLag.minSamples&&tthis.progress&&(this.progress+=this.catchup*e),n=1-Math.pow(this.progress/100,S.easeFactor),this.progress+=n*this.rate*e,this.progress=Math.min(this.lastProgress+S.maxProgressPerFrame,this.progress),this.progress=Math.max(0,this.progress),this.progress=Math.min(100,this.progress),this.lastProgress=this.progress,this.progress},e}(),L=_=F=M=C=O=null,y.running=!1,b=function(){return S.restartOnPushState?y.restart():void 0},null!=window.history.pushState&&(q=window.history.pushState,window.history.pushState=function(){return b(),q.apply(window.history,arguments)}),null!=window.history.replaceState&&(V=window.history.replaceState,window.history.replaceState=function(){return b(),V.apply(window.history,arguments)}),u={ajax:d,elements:t,document:e,eventLag:n},(T=function(){var e,t,n,i,s,r,a,o;for(y.sources=O=[],t=0,i=(r=["ajax","elements","document","eventLag"]).length;t/g,">").replace(/"/g,""")},t={before:function(e,t,n){var i=e[t];e[t]=function(){return n.apply(e,arguments),i.apply(e,arguments)}},after:function(t,e,n){var i=t[e];t[e]=function(){var e=i.apply(t,arguments);return n.apply(t,arguments),e}}},n=function(t,n,e){var i,s=t.trigger,r={};for(i in t.trigger=function(){var e=arguments[0];return-1===n.indexOf(e)?s.apply(t,arguments):void(r[e]=arguments)},e.apply(t,[]),t.trigger=s,r)r.hasOwnProperty(i)&&s.apply(t,r[i])},h=function(e){var t={};if("selectionStart"in e)t.start=e.selectionStart,t.length=e.selectionEnd-t.start;else if(document.selection){e.focus();var n=document.selection.createRange(),i=document.selection.createRange().text.length;n.moveStart("character",-e.value.length),t.start=n.text.length-i,t.length=i}return t},x=function(u){var c=null,e=function(e,t){var n,i,s,r,a,o,d,l;t=t||{},(e=e||window.event||{}).metaKey||e.altKey||(t.force||!1!==u.data("grow"))&&(n=u.val(),e.type&&"keydown"===e.type.toLowerCase()&&(s=97<=(i=e.keyCode)&&i<=122||65<=i&&i<=90||48<=i&&i<=57||32===i,46===i||8===i?(l=h(u[0])).length?n=n.substring(0,l.start)+n.substring(l.start+l.length):8===i&&l.start?n=n.substring(0,l.start-1)+n.substring(l.start+1):46===i&&void 0!==l.start&&(n=n.substring(0,l.start)+n.substring(l.start+1)):s&&(o=e.shiftKey,d=String.fromCharCode(e.keyCode),n+=d=o?d.toUpperCase():d.toLowerCase())),r=u.attr("placeholder"),!n&&r&&(n=r),(a=function(e,t){if(!e)return 0;var n=k("").css({position:"absolute",top:-99999,left:-99999,width:"auto",padding:0,whiteSpace:"pre"}).text(e).appendTo("body");!function(e,t,n){var i,s,r={};if(n)for(i=0,s=n.length;i").addClass(p.wrapperClass).addClass(o).addClass(a),t=k("
").addClass(p.inputClass).addClass("items").appendTo(e),n=k('').appendTo(t).attr("tabindex",v.is(":disabled")?"-1":m.tabIndex),r=k(p.dropdownParent||e),i=k("
").addClass(p.dropdownClass).addClass(a).hide().appendTo(r),s=k("
").addClass(p.dropdownContentClass).appendTo(i),(l=v.attr("id"))&&(n.attr("id",l+"-selectized"),k("label[for='"+l+"']").attr("for",l+"-selectized")),m.settings.copyClassesToDropdown&&i.addClass(o),e.css({width:v[0].style.width}),m.plugins.names.length&&(d="plugin-"+m.plugins.names.join(" plugin-"),e.addClass(d),i.addClass(d)),(null===p.maxItems||1'+e.html+"
"},optgroup_header:function(e,t){return'
'+t(e[i])+"
"},option:function(e,t){return'
'+t(e[n])+"
"},item:function(e,t){return'
'+t(e[n])+"
"},option_create:function(e,t){return'
Add '+t(e.input)+"
"}};this.settings.render=k.extend({},e,this.settings.render)},setupCallbacks:function(){var e,t,n={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(e in n)n.hasOwnProperty(e)&&((t=this.settings[n[e]])&&this.on(e,t))},onClick:function(e){this.isFocused||(this.focus(),e.preventDefault())},onMouseDown:function(e){var t=this,n=e.isDefaultPrevented();if(k(e.target),t.isFocused){if(e.target!==t.$control_input[0])return"single"===t.settings.mode?t.isOpen?t.close():t.open():n||t.setActiveItem(null),!1}else n||window.setTimeout(function(){t.focus()},0)},onChange:function(){this.$input.trigger("change")},onPaste:function(e){var s=this;return s.isFull()||s.isInputHidden||s.isLocked?void e.preventDefault():void(s.settings.splitOn&&setTimeout(function(){var e=s.$control_input.val();if(e.match(s.settings.splitOn))for(var t=k.trim(e).split(s.settings.splitOn),n=0,i=t.length;n=this.settings.maxItems},updateOriginalInput:function(e){var t,n,i,s,r=this;if(e=e||{},1===r.tagType){for(i=[],t=0,n=r.items.length;t'+o(s)+"");i.length||this.$input.attr("multiple")||i.push(''),r.$input.html(i.join(""))}else r.$input.val(r.getValue()),r.$input.attr("value",r.$input.val());r.isSetup&&(e.silent||r.trigger("change",r.$input.val()))},updatePlaceholder:function(){if(this.settings.placeholder){var e=this.$control_input;this.items.length?e.removeAttr("placeholder"):e.attr("placeholder",this.settings.placeholder),e.triggerHandler("update",{force:!0})}},open:function(){var e=this;e.isLocked||e.isOpen||"multi"===e.settings.mode&&e.isFull()||(e.focus(),e.isOpen=!0,e.refreshState(),e.$dropdown.css({visibility:"hidden",display:"block"}),e.positionDropdown(),e.$dropdown.css({visibility:"visible"}),e.trigger("dropdown_open",e.$dropdown))},close:function(){var e=this,t=e.isOpen;"single"===e.settings.mode&&e.items.length&&(e.hideInput(),e.$control_input.blur()),e.isOpen=!1,e.$dropdown.hide(),e.setActiveOption(null),e.refreshState(),t&&e.trigger("dropdown_close",e.$dropdown)},positionDropdown:function(){var e=this.$control,t="body"===this.settings.dropdownParent?e.offset():e.position();t.top+=e.outerHeight(!0),this.$dropdown.css({width:e.outerWidth(),top:t.top,left:t.left})},clear:function(e){var t=this;t.items.length&&(t.$control.children(":not(input)").remove(),t.items=[],t.lastQuery=null,t.setCaret(0),t.setActiveItem(null),t.updatePlaceholder(),t.updateOriginalInput({silent:e}),t.refreshState(),t.showInput(),t.trigger("clear"))},insertAtCaret:function(e){var t=Math.min(this.caretPos,this.items.length);0===t?this.$control.prepend(e):k(this.$control[0].childNodes[t]).before(e),this.setCaret(t+1)},deleteSelection:function(e){var t,n,i,s,r,a,o,d,l,u=this;if(i=e&&8===e.keyCode?-1:1,s=h(u.$control_input[0]),u.$activeOption&&!u.settings.hideSelected&&(o=u.getAdjacentOption(u.$activeOption,-1).attr("data-value")),r=[],u.$activeItems.length){for(l=u.$control.children(".active:"+(0
'+e.title+'×
'}},e),n.setup=(t=n.setup,function(){t.apply(n,arguments),n.$dropdown_header=k(e.html(e)),n.$dropdown.prepend(n.$dropdown_header)})}),y.define("optgroup_columns",function(o){var r,d=this;o=k.extend({equalizeWidth:!0,equalizeHeight:!0},o),this.getAdjacentOption=function(e,t){var n=e.closest("[data-group]").find("[data-selectable]"),i=n.index(e)+t;return 0<=i&&i
',e=e.firstChild,n.body.appendChild(e),t=l.width=e.offsetWidth-e.clientWidth,n.body.removeChild(e)),t},e=function(){var e,t,n,i,s,r,a;if((t=(a=k("[data-group]",d.$dropdown_content)).length)&&d.$dropdown_content.width()){if(o.equalizeHeight){for(e=n=0;e'+i.label+"";n.setup=(s=r.setup,function(){if(i.append){var e=k(r.$input.context).attr("id"),t=(k("#"+e),r.settings.render.item);r.settings.render.item=function(e){return t.apply(n,arguments)+a}}s.apply(n,arguments),n.$control.on("click","."+i.className,function(e){e.preventDefault(),r.isLocked||r.clear()})})}(this,e):(i=r=this,a=''+t.label+"",void(r.setup=(n=i.setup,function(){if(t.append){var s=i.settings.render.item;i.settings.render.item=function(e){return t=s.apply(r,arguments),n=a,i=t.search(/(<\/[^>]+>\s*)$/),t.substring(0,i)+n+t.substring(i);var t,n,i}}n.apply(r,arguments),r.$control.on("click","."+t.className,function(e){if(e.preventDefault(),!i.isLocked){var t=k(e.currentTarget).parent();i.setActiveItem(t),i.deleteSelection()&&i.setCaret(i.items.length)}})})))}),y.define("restore_on_backspace",function(i){var s,e=this;i.text=i.text||function(e){return e[this.settings.labelField]},this.onKeyDown=(s=e.onKeyDown,function(e){var t,n;return 8===e.keyCode&&""===this.$control_input.val()&&!this.$activeItems.length&&0<=(t=this.caretPos-1)&&t