1/*! jQuery v3.1.1 | (c) jQuery Foundation | jquery.org/license */ 2function getResults(e,t,n,i,r,s,o){var a=$(i),l=$(r);$.ajax({url:e,type:t||"get",data:n,beforeSend:function(){l.show(),a.addClass("pending")},complete:function(){l.hide(),a.removeClass("pending")},error:function(){a.html('<span class="text-muted">Data currently unavailable.</span>')},success:function(l){a.html(l),s&&history.pushState({url:e,method:t,method:t,data:n,target:i,loader:r,source:o?"filter":"pager"},"",s)}})}function strip(e,t){return e.length>t?e.substring(0,t-3)+"...":e}function formatPrice(e,t){return t=null==t||t<0?2:t,e.toLocaleString("sv-SE",{minimumFractionDigits:t,maximumFractionDigits:t})}function htmlEscape(e){return e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/")}function createCookie(e,t,n){var i="";if(n)if(i="; expires=",n instanceof Date)i+=n.toUTCString();else{var r=new Date;r.setTime(r.getTime()+24*n*60*60*1e3),i+=r.toUTCString()}document.cookie=e+"="+t+i+"; path=/; SameSite=Lax"}function getCookie(e){for(var t=e+"=",n=decodeURIComponent(document.cookie).split(";"),i=0;i<n.length;i++){for(var r=n[i];" "==r.charAt(0);)r=r.substring(1);if(0==r.indexOf(t))return r.substring(t.length,r.length)}return""}function getParameterByName(e,t){t||(t=window.location.href),t=t.toLowerCase(),e=e.replace(/[\[\]]/g,"\\$&").toLowerCase();var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}function htmlDecode(e){return(new DOMParser).parseFromString(e,"text/html").documentElement.textContent}!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(e,t){"use strict";var n=[],i=e.document,r=Object.getPrototypeOf,s=n.slice,o=n.concat,a=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,h=d.toString,f=h.call(Object),p={};function m(e,t){var n=(t=t||i).createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}var g="3.1.1",v=function(e,t){return new v.fn.init(e,t)},y=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,_=/^-ms-/,b=/-([a-z])/g,w=function(e,t){return t.toUpperCase()};function x(e){var t=!!e&&"length"in e&&e.length,n=v.type(e);return"function"!==n&&!v.isWindow(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}v.fn=v.prototype={jquery:g,constructor:v,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=v.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return v.each(this,e)},map:function(e){return this.pushStack(v.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},v.extend=v.fn.extend=function(){var e,t,n,i,r,s,o=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof o&&(c=o,o=arguments[a]||{},a++),"object"==typeof o||v.isFunction(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=o[t],o!==(i=e[t])&&(c&&i&&(v.isPlainObject(i)||(r=v.isArray(i)))?(r?(r=!1,s=n&&v.isArray(n)?n:[]):s=n&&v.isPlainObject(n)?n:{},o[t]=v.extend(c,s,i)):void 0!==i&&(o[t]=i));return o},v.extend({expando:"jQuery"+(g+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===v.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=v.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e)||(t=r(e))&&(n=d.call(t,"constructor")&&t.constructor,"function"!=typeof n||h.call(n)!==f))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e},globalEval:function(e){m(e)}
vendor: 33,963 bytes, line 2
2,camelCase:function(e){return e.replace(_,"ms-").replace(b,w)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(x(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},trim:function(e){return null==e?"":(e+"").replace(y,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(x(Object(e))?v.merge(n,"string"==typeof e?[e]:e):a.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,s=e.length,o=!n;r<s;r++)!t(e[r],r)!==o&&i.push(e[r]);return i},map:function(e,t,n){var i,r,s=0,a=[];if(x(e))for(i=e.length;s<i;s++)null!=(r=t(e[s],s,n))&&a.push(r);else for(s in e)null!=(r=t(e[s],s,n))&&a.push(r);return o.apply([],a)},guid:1,proxy:function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v.isFunction(e))return i=s.call(arguments,2),r=function(){return e.apply(t||this,i.concat(s.call(arguments)))},r.guid=e.guid=e.guid||v.guid++,r},now:Date.now,support:p}),"function"==typeof Symbol&&(v.fn[Symbol.iterator]=n[Symbol.iterator]),v.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var C=function(e){var t,n,i,r,s,o,a,l,c,u,d,h,f,p,m,g,v,y,_,b="sizzle"+1*new Date,w=e.document,x=0,C=0,E=oe(),S=oe(),k=oe(),T=function(e,t){return e===t&&(d=!0),0},D={}.hasOwnProperty,I=[],O=I.pop,A=I.push,N=I.push,M=I.slice,L=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",j="[\\x20\\t\\r\\n\\f]",H="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",F="\\["+j+"*("+H+")(?:"+j+"*([*^$|!~]?=)"+j+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+H+"))|)"+j+"*\\]",$=":("+H+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",R=new RegExp(j+"+","g"),q=new RegExp("^"+j+"+|((?:^|[^\\\\])(?:\\\\.)*)"+j+"+$","g"),z=new RegExp("^"+j+"*,"+j+"*"),B=new RegExp("^"+j+"*([>+~]|"+j+")"+j+"*"),W=new RegExp("="+j+"*([^\\]'\"]*?)"+j+"*\\]","g"),U=new RegExp($),Y=new RegExp("^"+H+"$"),V={ID:new RegExp("^#("+H+")"),CLASS:new RegExp("^\\.("+H+")"),TAG:new RegExp("^("+H+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+$),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+j+"*(even|odd|(([+-]|)(\\d*)n|)"+j+"*(?:([+-]|)"+j+"*(\\d+)|))"+j+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+j+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+j+"*((?:-\\d)?\\d*)"+j+"*\\)|)(?=[^-]|$)","i")},Q=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,X=/^[^{]+\{\s*\[native \w/,K=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Z=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+j+"?|("+j+")|.)","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(){h()},re=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{N.apply(I=M.call(w.childNodes),w.childNodes),I[w.childNodes.length].nodeType}catch(e){N={apply:I.length?function(e,t){A.apply(e,M.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function se(e,t,i,r){var s,a,c,u,d,p,v,y=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!r&&((t?t.ownerDocument||t:w)!==f&&h(t),t=t||f,m)){if(11!==x&&(d=K.exec(e)))if(s=d[1]){if(9===x){if(!(c=t.getElementById(s)))return i;if(c.id===s)return i.push(c),i}else if(y&&(c=y.getElementById(s))&&_(t,c)&&c.id===s)return i.push(c),i}else{if(d[2])return N.apply(i,t.getElementsByTagName(e)),i;if((s=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(s)),i}if(n.qsa&&!k[e+" "]&&(!g||!g.test(e))){if(1!==x)y=t,v=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=b),a=(p=o(e)).length;a--;)p[a]="#"+u+" "+ve(p[a]);v=p.join(","),y=Z.test(e)&&me(t.parentNode)||t}if(v)try{return N.apply(i,y.querySelectorAll(v)),i}catch(e){}finally{u===b&&t.removeAttribute("id")}}}return l(e.replace(q,"$1"),t,i,r)}function oe(){var e=[];return function t(n,r){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ae(e){return e[b]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=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 de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function pe(e){return ae(function(t){return t=+t,ae(function(n,i){for(var r,s=e([],n.length,t),o=s.length;o--;)n[r=s[o]]&&(n[r]=!(i[r]=n[r]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},s=se.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},h=se.setDocument=function(e){var t,r,o=e?e.ownerDocument||e:w;return o!==f&&9===o.nodeType&&o.documentElement?(p=(f=o).documentElement,m=!s(f),w!==f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=X.test(f.getElementsByClassName),n.getById=le(function(e){return p.appendChild(e).id=b,!f.getElementsByName||!f.getElementsByName(b).length}),n.getById?(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,i,r,s=t.getElementById(e);if(s){if((n=s.getAttributeNode("id"))&&n.value===e)return[s];for(r=t.getElementsByName(e),i=0;s=r[i++];)if((n=s.getAttributeNode("id"))&&n.value===e)return[s]}return[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],r=0,s=t.getElementsByTagName(e);if("*"===e){for(;n=s[r++];)1===n.nodeType&&i.push(n);return i}return s},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},v=[],g=[],(n.qsa=X.test(f.querySelectorAll))&&(le(function(e){p.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+j+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+j+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+b+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+j+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=X.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),v.push("!=",$)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),t=X.test(p.compareDocumentPosition),_=t||X.test(p.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},T=t?function(e,t){if(e===t)return d=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e===f||e.ownerDocument===w&&_(w,e)?-1:t===f||t.ownerDocument===w&&_(w,t)?1:u?L(u,e)-L(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,i=0,r=e.parentNode,s=t.parentNode,o=[e],a=[t];if(!r||!s)return e===f?-1:t===f?1:r?-1:s?1:u?L(u,e)-L(u,t):0;if(r===s)return ue(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;o[i]===a[i];)i++;return i?ue(o[i],a[i]):o[i]===w?-1:a[i]===w?1:0},f):f},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&h(e),t=t.replace(W,"='$1']"),n.matchesSelector&&m&&!k[t+" "]&&(!v||!v.test(t))&&(!g||!g.test(t)))try{var i=y.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){}return se(t,f,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!==f&&h(e),_(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!==f&&h(e);var r=i.attrHandle[t.toLowerCase()],s=r&&D.call(i.attrHandle,t.toLowerCase())?r(e,t,!m):void 0;return void 0!==s?s:n.attributes||!m?e.getAttribute(t):(s=e.getAttributeNode(t))&&s.specified?s.value:null},se.escape=function(e){return(e+"").replace(te,ne)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,i=[],r=0,s=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(T),d){for(;t=e[s++];)t===e[s]&&(r=i.push(s));for(;r--;)e.splice(i[r],1)}return u=null,e},r=se.getText=function(e){var t,n="",i=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[i++];)n+=r(t);return n},i=se.selectors={cacheLength:50,createPseudo:ae,match:V,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(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,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]||se.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]&&se.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&&U.test(n)&&(t=o(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(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+j+")"+e+"("+j+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(i){var r=se.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(R," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var s="nth"!==e.slice(0,3),o="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p,m=s!==o?"nextSibling":"previousSibling",g=t.parentNode,v=a&&t.nodeName.toLowerCase(),y=!l&&!a,_=!1;if(g){if(s){for(;m;){for(h=t;h=h[m];)if(a?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===e&&!p&&"nextSibling"}return!0}if(p=[o?g.firstChild:g.lastChild],o&&y){for(_=(f=(c=(u=(d=(h=g)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(_=f=0)||p.pop();)if(1===h.nodeType&&++_&&h===t){u[e]=[x,f,_];break}}else if(y&&(_=f=(c=(u=(d=(h=t)[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===_)for(;(h=++f&&h&&h[m]||(_=f=0)||p.pop())&&((a?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++_||(y&&((u=(d=h[b]||(h[b]={}))[h.uniqueID]||(d[h.uniqueID]={}))[e]=[x,_]),h!==t)););return(_-=r)===i||_%i===0&&_/i>=0}}},PSEUDO:function(e,t){var n,r=i.pseudos[e]||i.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[b]?r(t):r.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ae(function(e,n){for(var i,s=r(e,t),o=s.length;o--;)e[i=L(e,s[o])]=!(n[i]=s[o])}):function(e){return r(e,0,n)}):r}},pseudos:{not:ae(function(e){var t=[],n=[],i=a(e.replace(q,"$1"));return i[b]?ae(function(e,t,n,r){for(var s,o=i(e,null,r,[]),a=e.length;a--;)(s=o[a])&&(e[a]=!(t[a]=s))}):function(e,r,s){return t[0]=e,i(t,null,s,n),t[0]=null,!n.pop()}}),has:ae(function(e){return function(t){return se(e,t).length>0}}),contains:ae(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||r(t)).indexOf(e)>-1}}),lang:ae(function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!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!i.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return Q.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:pe(function(){return[0]}),last:pe(function(e,t){return[t-1]}),eq:pe(function(e,t,n){return[n<0?n+t:n]}),even:pe(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:pe(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:pe(function(e,t,n){for(var i=n<0?n+t:n;--i>=0;)e.push(i);return e}),gt:pe(function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e})}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=he(t);function ge(){}function ve(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function ye(e,t,n){var i=t.dir,r=t.next,s=r||i,o=n&&"parentNode"===s,a=C++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||o)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,h=[x,a];if(l){for(;t=t[i];)if((1===t.nodeType||o)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||o)if(u=(d=t[b]||(t[b]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[s])&&c[0]===x&&c[1]===a)return h[2]=c[2];if(u[s]=h,h[2]=e(t,n,l))return!0}return!1}}function _e(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function be(e,t,n,i,r){for(var s,o=[],a=0,l=e.length,c=null!=t;a<l;a++)(s=e[a])&&(n&&!n(s,i,r)||(o.push(s),c&&t.push(a)));return o}function we(e,t,n,i,r,s){return i&&!i[b]&&(i=we(i)),r&&!r[b]&&(r=we(r,s)),ae(function(s,o,a,l){var c,u,d,h=[],f=[],p=o.length,m=s||function(e,t,n){for(var i=0,r=t.length;i<r;i++)se(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),g=!e||!s&&t?m:be(m,h,e,a,l),v=n?r||(s?e:p||i)?[]:o:g;if(n&&n(g,v,a,l),i)for(c=be(v,f),i(c,[],a,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(g[f[u]]=d));if(s){if(r||e){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(g[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&(c=r?L(s,d):h[u])>-1&&(s[c]=!(o[c]=d))}}else v=be(v===o?v.splice(p,v.length):v),r?r(null,o,v,l):N.apply(o,v)})}function xe(e){for(var t,n,r,s=e.length,o=i.relative[e[0].type],a=o||i.relative[" "],l=o?1:0,u=ye(function(e){return e===t},a,!0),d=ye(function(e){return L(t,e)>-1},a,!0),h=[function(e,n,i){var r=!o&&(i||n!==c)||((t=n).nodeType?u(e,n,i):d(e,n,i));return t=null,r}];l<s;l++)if(n=i.relative[e[l].type])h=[ye(_e(h),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[b]){for(r=++l;r<s&&!i.relative[e[r].type];r++);return we(l>1&&_e(h),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(q,"$1"),n,l<r&&xe(e.slice(l,r)),r<s&&xe(e=e.slice(r)),r<s&&ve(e))}h.push(n)}return _e(h)}function Ce(e,t){var n=t.length>0,r=e.length>0,s=function(s,o,a,l,u){var d,p,g,v=0,y="0",_=s&&[],b=[],w=c,C=s||r&&i.find.TAG("*",u),E=x+=null==w?1:Math.random()||.1,S=C.length;for(u&&(c=o===f||o||u);y!==S&&null!=(d=C[y]);y++){if(r&&d){for(p=0,o||d.ownerDocument===f||(h(d),a=!m);g=e[p++];)if(g(d,o||f,a)){l.push(d);break}u&&(x=E)}n&&((d=!g&&d)&&v--,s&&_.push(d))}if(v+=y,n&&y!==v){for(p=0;g=t[p++];)g(_,b,o,a);if(s){if(v>0)for(;y--;)_[y]||b[y]||(b[y]=O.call(l));b=be(b)}N.apply(l,b),u&&!s&&b.length>0&&v+t.length>1&&se.uniqueSort(l)}return u&&(x=E,c=w),_};return n?ae(s):s}return ge.prototype=i.filters=i.pseudos,i.setFilters=new ge,o=se.tokenize=function(e,t){var n,r,s,o,a,l,c,u=S[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(o in n&&!(r=z.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=B.exec(a))&&(n=r.shift(),s.push({value:n,type:r[0].replace(q," ")}),a=a.slice(n.length)),i.filter)!(r=V[o].exec(a))||c[o]&&!(r=c[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return t?a.length:a?se.error(e):S(e,l).slice(0)},a=se.compile=function(e,t){var n,i=[],r=[],s=k[e+" "];if(!s){for(t||(t=o(e)),n=t.length;n--;)(s=xe(t[n]))[b]?i.push(s):r.push(s);(s=k(e,Ce(r,i))).selector=e}return s},l=se.select=function(e,t,n,r){var s,l,c,u,d,h="function"==typeof e&&e,f=!r&&o(e=h.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;h&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(s=V.needsContext.test(e)?0:l.length;s--&&(c=l[s],!i.relative[u=c.type]);)if((d=i.find[u])&&(r=d(c.matches[0].replace(J,ee),Z.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(s,1),!(e=r.length&&ve(l)))return N.apply(n,r),n;break}}return(h||a(e,f))(r,t,!m,n,!t||Z.test(e)&&me(t.parentNode)||t),n},n.sortStable=b.split("").sort(T).join("")===b,n.detectDuplicates=!!d,h(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(P,function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null}),se}(e);v.find=C,v.expr=C.selectors,v.expr[":"]=v.expr.pseudos,v.uniqueSort=v.unique=C.uniqueSort,v.text=C.getText,v.isXMLDoc=C.isXML,v.contains=C.contains,v.escapeSelector=C.escape;var E=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&v(e).is(n))break;i.push(e)}return i},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=v.expr.match.needsContext,T=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,D=/^.[^:#\[\.,]*$/;function I(e,t,n){return v.isFunction(t)?v.grep(e,function(e,i){return!!t.call(e,i,e)!==n}):t.nodeType?v.grep(e,function(e){return e===t!==n}):"string"!=typeof t?v.grep(e,function(e){return l.call(t,e)>-1!==n}):D.test(t)?v.filter(t,e,n):(t=v.filter(t,e),v.grep(e,function(e){return l.call(t,e)>-1!==n&&1===e.nodeType}))}v.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?v.find.matchesSelector(i,e)?[i]:[]:v.find.matches(e,v.grep(t,function(e){return 1===e.nodeType}))},v.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(v(e).filter(function(){for(t=0;t<i;t++)if(v.contains(r[t],this))return!0}));for(n=this.pushStack([]),t=0;t<i;t++)v.find(e,r[t],n);return i>1?v.uniqueSort(n):n},filter:function(e){return this.pushStack(I(this,e||[],!1))},not:function(e){return this.pushStack(I(this,e||[],!0))},is:function(e){return!!I(this,"string"==typeof e&&k.test(e)?v(e):e||[],!1).length}});var O,A=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,N=v.fn.init=function(e,t,n){var r,s;if(!e)return this;if(n=n||O,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:A.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof v?t[0]:t,v.merge(this,v.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:i,!0)),T.test(r[1])&&v.isPlainObject(t))for(r in t)v.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(s=i.getElementById(r[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v.isFunction(e)?void 0!==n.ready?n.ready(e):e(v):v.makeArray(e,this)};N.prototype=v.fn,O=v(i);var M=/^(?:parents|prev(?:Until|All))/,L={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}v.fn.extend({has:function(e){var t=v(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(v.contains(this,t[e]))return!0})},closest:function(e,t){var n,i=0,r=this.length,s=[],o="string"!=typeof e&&v(e);if(!k.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(o?o.index(n)>-1:1===n.nodeType&&v.find.matchesSelector(n,e))){s.push(n);break}return this.pushStack(s.length>1?v.uniqueSort(s):s)},index:function(e){return e?"string"==typeof e?l.call(v(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(v.uniqueSort(v.merge(this.get(),v(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),v.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return E(e,"parentNode")},parentsUntil:function(e,t,n){return E(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return E(e,"nextSibling")},prevAll:function(e){return E(e,"previousSibling")},nextUntil:function(e,t,n){return E(e,"nextSibling",n)},prevUntil:function(e,t,n){return E(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return e.contentDocument||v.merge([],e.childNodes)}},function(e,t){v.fn[e]=function(n,i){var r=v.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=v.filter(i,r)),this.length>1&&(L[e]||v.uniqueSort(r),M.test(e)&&r.reverse()),this.pushStack(r)}});var j=/[^\x20\t\r\n\f]+/g;function H(e){return e}function F(e){throw e}function $(e,t,n){var i;try{e&&v.isFunction(i=e.promise)?i.call(e).done(t).fail(n):e&&v.isFunction(i=e.then)?i.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}v.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return v.each(e.match(j)||[],function(e,n){t[n]=!0}),t}(e):v.extend({},e);var t,n,i,r,s=[],o=[],a=-1,l=function(){for(r=e.once,i=t=!0;o.length;a=-1)for(n=o.shift();++a<s.length;)!1===s[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=s.length,n=!1);e.memory||(n=!1),t=!1,r&&(s=n?[]:"")},c={add:function(){return s&&(n&&!t&&(a=s.length-1,o.push(n)),function t(n){v.each(n,function(n,i){v.isFunction(i)?e.unique&&c.has(i)||s.push(i):i&&i.length&&"string"!==v.type(i)&&t(i)})}(arguments),n&&!t&&l()),this},remove:function(){return v.each(arguments,function(e,t){for(var n;(n=v.inArray(t,s,n))>-1;)s.splice(n,1),n<=a&&a--}),this},has:function(e){return e?v.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return r=o=[],n||t||(s=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],o.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},v.extend({Deferred:function(t){var n=[["notify","progress",v.Callbacks("memory"),v.Callbacks("memory"),2],["resolve","done",v.Callbacks("once memory"),v.Callbacks("once memory"),0,"resolved"],["reject","fail",v.Callbacks("once memory"),v.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return v.Deferred(function(t){v.each(n,function(n,i){var r=v.isFunction(e[i[4]])&&e[i[4]];s[i[1]](function(){var e=r&&r.apply(this,arguments);e&&v.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[i[0]+"With"](this,r?[e]:arguments)})}),e=null}).promise()},then:function(t,i,r){var s=0;function o(t,n,i,r){return function(){var a=this,l=arguments,c=function(){var e,c;if(!(t<s)){if((e=i.apply(a,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,v.isFunction(c)?r?c.call(e,o(s,n,H,r),o(s,n,F,r)):(s++,c.call(e,o(s,n,H,r),o(s,n,F,r),o(s,n,H,n.notifyWith))):(i!==H&&(a=void 0,l=[e]),(r||n.resolveWith)(a,l))}},u=r?c:function(){try{c()}catch(e){v.Deferred.exceptionHook&&v.Deferred.exceptionHook(e,u.stackTrace),t+1>=s&&(i!==F&&(a=void 0,l=[e]),n.rejectWith(a,l))}};t?u():(v.Deferred.getStackHook&&(u.stackTrace=v.Deferred.getStackHook()),e.setTimeout(u))}}return v.Deferred(function(e){n[0][3].add(o(0,e,v.isFunction(r)?r:H,e.notifyWith)),n[1][3].add(o(0,e,v.isFunction(t)?t:H)),n[2][3].add(o(0,e,v.isFunction(i)?i:F))}).promise()},promise:function(e){return null!=e?v.extend(e,r):r}},s={};return v.each(n,function(e,t){var o=t[2],a=t[5];r[t[1]]=o.add,a&&o.add(function(){i=a},n[3-e][2].disable,n[0][2].lock),o.add(t[3].fire),s[t[0]]=function(){return s[t[0]+"With"](this===s?void 0:this,arguments),this},s[t[0]+"With"]=o.fireWith}),r.promise(s),t&&t.call(s,s),s},when:function(e){var t=arguments.length,n=t,i=Array(n),r=s.call(arguments),o=v.Deferred(),a=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||o.resolveWith(i,r)}};if(t<=1&&($(e,o.done(a(n)).resolve,o.reject),"pending"===o.state()||v.isFunction(r[n]&&r[n].then)))return o.then();for(;n--;)$(r[n],a(n),o.reject);return o.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;v.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&R.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},v.readyException=function(t){e.setTimeout(function(){throw t})};var q=v.Deferred();function z(){i.removeEventListener("DOMContentLoaded",z),e.removeEventListener("load",z),v.ready()}v.fn.ready=function(e){return q.then(e).catch(function(e){v.readyException(e)}),this},v.extend({isReady:!1,readyWait:1,holdReady:function(e){e?v.readyWait++:v.ready(!0)},ready:function(e){(!0===e?--v.readyWait:v.isReady)||(v.isReady=!0,!0!==e&&--v.readyWait>0||q.resolveWith(i,[v]))}}),v.ready.then=q.then,"complete"===i.readyState||"loading"!==i.readyState&&!i.documentElement.doScroll?e.setTimeout(v.ready):(i.addEventListener("DOMContentLoaded",z),e.addEventListener("load",z));var B=function(e,t,n,i,r,s,o){var a=0,l=e.length,c=null==n;if("object"===v.type(n))for(a in r=!0,n)B(e,t,a,n[a],!0,s,o);else if(void 0!==i&&(r=!0,v.isFunction(i)||(o=!0),c&&(o?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(v(e),n)})),t))for(;a<l;a++)t(e[a],n,o?i:i.call(e[a],a,t(e[a],n)));return r?e:c?t.call(e):l?t(e[0],n):s},W=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function U(){this.expando=v.expando+U.uid++}U.uid=1,U.prototype={cache:function(e){var t=e[this.expando];return t||(t={},W(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[v.camelCase(t)]=n;else for(i in t)r[v.camelCase(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][v.camelCase(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){v.isArray(t)?t=t.map(v.camelCase):t=(t=v.camelCase(t))in i?[t]:t.match(j)||[],n=t.length;for(;n--;)delete i[t[n]]}(void 0===t||v.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!v.isEmptyObject(t)}};var Y=new U,V=new U,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,G=/[A-Z]/g;function X(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(G,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:Q.test(e)?JSON.parse(e):e)}(n)}catch(e){}V.set(e,t,n)}else n=void 0;return n}v.extend({hasData:function(e){return V.hasData(e)||Y.hasData(e)},data:function(e,t,n){return V.access(e,t,n)},removeData:function(e,t){V.remove(e,t)},_data:function(e,t,n){return Y.access(e,t,n)},_removeData:function(e,t){Y.remove(e,t)}}),v.fn.extend({data:function(e,t){var n,i,r,s=this[0],o=s&&s.attributes;if(void 0===e){if(this.length&&(r=V.get(s),1===s.nodeType&&!Y.get(s,"hasDataAttrs"))){for(n=o.length;n--;)o[n]&&(0===(i=o[n].name).indexOf("data-")&&(i=v.camelCase(i.slice(5)),X(s,i,r[i])));Y.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each(function(){V.set(this,e)}):B(this,function(t){var n;if(s&&void 0===t){if(void 0!==(n=V.get(s,e)))return n;if(void 0!==(n=X(s,e)))return n}else this.each(function(){V.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){V.remove(this,e)})}}),v.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=Y.get(e,t),n&&(!i||v.isArray(n)?i=Y.access(e,t,v.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=v.queue(e,t),i=n.length,r=n.shift(),s=v._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete s.stop,r.call(e,function(){v.dequeue(e,t)},s)),!i&&s&&s.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Y.get(e,n)||Y.access(e,n,{empty:v.Callbacks("once memory").add(function(){Y.remove(e,[t+"queue",n])})})}}),v.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?v.queue(this[0],e):void 0===t?this:this.each(function(){var n=v.queue(this,e,t);v._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&v.dequeue(this,e)})},dequeue:function(e){return this.each(function(){v.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=v.Deferred(),s=this,o=this.length,a=function(){--i||r.resolveWith(s,[s])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";o--;)(n=Y.get(s[o],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),r.promise(t)}});var K=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Z=new RegExp("^(?:([+-])=|)("+K+")([a-z%]*)$","i"),J=["Top","Right","Bottom","Left"],ee=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&v.contains(e.ownerDocument,e)&&"none"===v.css(e,"display")},te=function(e,t,n,i){var r,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];for(s in r=n.apply(e,i||[]),t)e.style[s]=o[s];return r};function ne(e,t,n,i){var r,s=1,o=20,a=i?function(){return i.cur()}:function(){return v.css(e,t,"")},l=a(),c=n&&n[3]||(v.cssNumber[t]?"":"px"),u=(v.cssNumber[t]||"px"!==c&&+l)&&Z.exec(v.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{u/=s=s||".5",v.style(e,t,u+c)}while(s!==(s=a()/l)&&1!==s&&--o)}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var ie={};function re(e){var t,n=e.ownerDocument,i=e.nodeName,r=ie[i];
vendor: 5,169 bytes, line 2
2return r||(t=n.body.appendChild(n.createElement(i)),r=v.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),ie[i]=r,r)}function se(e,t){for(var n,i,r=[],s=0,o=e.length;s<o;s++)(i=e[s]).style&&(n=i.style.display,t?("none"===n&&(r[s]=Y.get(i,"display")||null,r[s]||(i.style.display="")),""===i.style.display&&ee(i)&&(r[s]=re(i))):"none"!==n&&(r[s]="none",Y.set(i,"display",n)));for(s=0;s<o;s++)null!=r[s]&&(e[s].style.display=r[s]);return e}v.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ee(this)?v(this).show():v(this).hide()})}});var oe=/^(?:checkbox|radio)$/i,ae=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,le=/^$|\/(?:java|ecma)script/i,ce={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function ue(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&v.nodeName(e,t)?v.merge([e],n):n}function de(e,t){for(var n=0,i=e.length;n<i;n++)Y.set(e[n],"globalEval",!t||Y.get(t[n],"globalEval"))}ce.optgroup=ce.option,ce.tbody=ce.tfoot=ce.colgroup=ce.caption=ce.thead,ce.th=ce.td;var he=/<|&#?\w+;/;function fe(e,t,n,i,r){for(var s,o,a,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((s=e[f])||0===s)if("object"===v.type(s))v.merge(h,s.nodeType?[s]:s);else if(he.test(s)){for(o=o||d.appendChild(t.createElement("div")),a=(ae.exec(s)||["",""])[1].toLowerCase(),l=ce[a]||ce._default,o.innerHTML=l[1]+v.htmlPrefilter(s)+l[2],u=l[0];u--;)o=o.lastChild;v.merge(h,o.childNodes),(o=d.firstChild).textContent=""}else h.push(t.createTextNode(s));for(d.textContent="",f=0;s=h[f++];)if(i&&v.inArray(s,i)>-1)r&&r.push(s);else if(c=v.contains(s.ownerDocument,s),o=ue(d.appendChild(s),"script"),c&&de(o),n)for(u=0;s=o[u++];)le.test(s.type||"")&&n.push(s);return d}!function(){var e=i.createDocumentFragment().appendChild(i.createElement("div")),t=i.createElement("input");t.setAttribute("type","radio"),t.setAttribute("checked","checked"),t.setAttribute("name","t"),e.appendChild(t),p.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",p.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var pe=i.documentElement,me=/^key/,ge=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ve=/^([^.]*)(?:\.(.+)|)/;function ye(){return!0}function _e(){return!1}function be(){try{return i.activeElement}catch(e){}}function we(e,t,n,i,r,s){var o,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)we(e,a,n,i,t[a],s);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=_e;else if(!r)return e;return 1===s&&(o=r,r=function(e){return v().off(e),o.apply(this,arguments)},r.guid=o.guid||(o.guid=v.guid++)),e.each(function(){v.event.add(this,t,r,i,n)})}v.event={global:{},add:function(e,t,n,i,r){var s,o,a,l,c,u,d,h,f,p,m,g=Y.get(e);if(g)for(n.handler&&(n=(s=n).handler,r=s.selector),r&&v.find.matchesSelector(pe,r),n.guid||(n.guid=v.guid++),(l=g.events)||(l=g.events={}),(o=g.handle)||(o=g.handle=function(t){return void 0!==v&&v.event.triggered!==t.type?v.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(j)||[""]).length;c--;)f=m=(a=ve.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(d=v.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=v.event.special[f]||{},u=v.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&v.expr.match.needsContext.test(r),namespace:p.join(".")},s),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,o)||e.addEventListener&&e.addEventListener(f,o)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),v.event.global[f]=!0)},remove:function(e,t,n,i,r){var s,o,a,l,c,u,d,h,f,p,m,g=Y.hasData(e)&&Y.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(j)||[""]).length;c--;)if(f=m=(a=ve.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(d=v.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=h.length;s--;)u=h[s],!r&&m!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(s,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));o&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||v.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)v.event.remove(e,f+t[c],n,i,!0);v.isEmptyObject(l)&&Y.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,s,o,a=v.event.fix(e),l=new Array(arguments.length),c=(Y.get(this,"events")||{})[a.type]||[],u=v.event.special[a.type]||{};for(l[0]=a,t=1;t<arguments.length;t++)l[t]=arguments[t];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(o=v.event.handlers.call(this,a,c),t=0;(r=o[t++])&&!a.isPropagationStopped();
vendor: 3,427 bytes, line 2
2)for(a.currentTarget=r.elem,n=0;(s=r.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(s.namespace)||(a.handleObj=s,a.data=s.data,void 0!==(i=((v.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(e,t){var n,i,r,s,o,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(s=[],o={},n=0;n<l;n++)void 0===o[r=(i=t[n]).selector+" "]&&(o[r]=i.needsContext?v(r,this).index(c)>-1:v.find(r,this,null,[c]).length),o[r]&&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(e,t){Object.defineProperty(v.Event.prototype,e,{enumerable:!0,configurable:!0,get:v.isFunction(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[v.expando]?e:new v.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==be()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===be()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&v.nodeName(this,"input"))return this.click(),!1},_default:function(e){return v.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},v.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},v.Event=function(e,t){return this instanceof v.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?ye:_e,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&&v.extend(this,t),this.timeStamp=e&&e.timeStamp||v.now(),void(this[v.expando]=!0)):new v.Event(e,t)},v.Event.prototype={constructor:v.Event,isDefaultPrevented:_e,isPropagationStopped:_e,isImmediatePropagationStopped:_e,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=ye,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=ye,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=ye,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},v.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&me.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&ge.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},v.event.addProp),v.each({mouseenter:"mouseover",mouseleave:"mou
2seout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){v.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,r=e.handleObj;return i&&(i===this||v.contains(this,i))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}}),v.fn.extend({on:function(e,t,n,i){return we(this,e,t,n,i)},one:function(e,t,n,i){return we(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,v(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=_e),this.each(function(){v.event.remove(this,e,n,t)})}});var xe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ce=/<script|<style|<link/i,Ee=/checked\s*(?:[^=]|=\s*.checked.)/i,Se=/^true\/(.*)/,ke=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Te(e,t){return v.nodeName(e,"table")&&v.nodeName(11!==t.nodeType?t:t.firstChild,"tr")&&e.getElementsByTagName("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ie(e){var t=Se.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function Oe(e,t){var n,i,r,s,o,a,l,c;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.access(e),o=Y.set(t,s),c=s.events))for(r in delete o.handle,o.events={},c)for(n=0,i=c[r].length;n<i;n++)v.event.add(t,r,c[r][n]);V.hasData(e)&&(a=V.access(e),l=v.extend({},a),V.set(t,l))}}function Ae(e,t){var n=t.nodeName.toLowerCase();"input"===n&&oe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Ne(e,t,n,i){t=o.apply([],t);var r,s,a,l,c,u,d=0,h=e.length,f=h-1,g=t[0],y=v.isFunction(g);if(y||h>1&&"string"==typeof g&&!p.checkClone&&Ee.test(g))return e.each(function(r){var s=e.eq(r);y&&(t[0]=g.call(this,r,s.html())),Ne(s,t,n,i)});if(h&&(s=(r=fe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=s),s||i)){for(l=(a=v.map(ue(r,"script"),De)).length;d<h;d++)c=r,d!==f&&(c=v.clone(c,!0,!0),l&&v.merge(a,ue(c,"script"))),n.call(e[d],c,d);if(l)for(u=a[a.length-1].ownerDocument,v.map(a,Ie),d=0;d<l;d++)c=a[d],le.test(c.type||"")&&!Y.access(c,"globalEval")&&v.contains(u,c)&&(c.src?v._evalUrl&&v._evalUrl(c.src):m(c.textContent.replace(ke,""),u))}return e}function Me(e,t,n){for(var i,r=t?v.filter(t,e):e,s=0;null!=(i=r[s]);s++)n||1!==i.nodeType||v.cleanData(ue(i)),i.parentNode&&(n&&v.contains(i.ownerDocument,i)&&de(ue(i,"script")),i.parentNode.removeChild(i));return e}v.extend({htmlPrefilter:function(e){return e.replace(xe,"<$1></$2>")},clone:function(e,t,n){var i,r,s,o,a=e.cloneNode(!0),l=v.contains(e.ownerDocument,e);if(!(p.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||v.isXMLDoc(e)))for(o=ue(a),i=0,r=(s=ue(e)).length;i<r;i++)Ae(s[i],o[i]);if(t)if(n)for(s=s||ue(e),o=o||ue(a),i=0,r=s.length;i<r;i++)Oe(s[i],o[i]);else Oe(e,a);return(o=ue(a,"script")).length>0&&de(o,!l&&ue(e,"script")),a},cleanData:function(e){for(var t,n,i,r=v.event.special,s=0;void 0!==(n=e[s]);s++)if(W(n)){if(t=n[Y.expando]){if(t.events)for(i in t.events)r[i]?v.event.remove(n,i):v.removeEvent(n,i,t.handle);n[Y.expando]=void 0}n[V.expando]&&(n[V.expando]=void 0)}}}),v.fn.extend({detach:function(e){return Me(this,e,!0)},remove:function(e){return Me(this,e)},text:function(e){return B(this,function(e){return void 0===e?v.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 Ne(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Te(this,e).appendChild(e)})},prepend:function(){return Ne(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Te(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Ne(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Ne(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&&(v.cleanData(ue(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return v.clone(this,e,t)})},html:function(e){return B(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&&!Ce.test(e)&&!ce[(ae.exec(e)||["",""])[1].toLowerCase()]){e=v.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(v.cleanData(ue(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Ne(this,arguments,function(t){var n=this.parentNode;v.inArray(this,e)<0&&(v.cleanData(ue(this)),n&&n.replaceChild(t,this))},e)}}),v.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){v.fn[e]=function(e){for(var n,i=[],r=v(e),s=r.length-1,o=0;o<=s;o++)n=o===s?this:this.clone(!0),v(r[o])[t](n),a.apply(i,n.get());return this.pushStack(i)}});var Le=/^margin/,Pe=new RegExp("^("+K+")(?!px)[a-z%]+$","i"),je=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};function He(e,t,n){var i,r,s,o,a=e.style;return(n=n||je(e))&&(""!==(o=n.getPropertyValue(t)||n[t])||v.contains(e.ownerDocument,e)||(o=v.style(e,t)),!p.pixelMarginRight()&&Pe.test(o)&&Le.test(t)&&(i=a.width,r=a.minWidth,s=a.maxWidth,a.minWidth=a.maxWidth=a.width=o,o=n.width,a.width=i,a.minWidth=r,a.maxWidth=s)),void 0!==o?o+"":o}function Fe(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}!function(){function t(){if(l){l.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",l.innerHTML="",pe.appendChild(a);var t=e.getComputedStyle(l);
vendor: 6,400 bytes, line 2
2n="1%"!==t.top,o="2px"===t.marginLeft,r="4px"===t.width,l.style.marginRight="50%",s="4px"===t.marginRight,pe.removeChild(a),l=null}}var n,r,s,o,a=i.createElement("div"),l=i.createElement("div");l.style&&(l.style.backgroundClip="content-box",l.cloneNode(!0).style.backgroundClip="",p.clearCloneStyle="content-box"===l.style.backgroundClip,a.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",a.appendChild(l),v.extend(p,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),s},reliableMarginLeft:function(){return t(),o}}))}();var $e=/^(none|table(?!-c[ea]).+)/,Re={position:"absolute",visibility:"hidden",display:"block"},qe={letterSpacing:"0",fontWeight:"400"},ze=["Webkit","Moz","ms"],Be=i.createElement("div").style;function We(e){if(e in Be)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ze.length;n--;)if((e=ze[n]+t)in Be)return e}function Ue(e,t,n){var i=Z.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function Ye(e,t,n,i,r){var s,o=0;for(s=n===(i?"border":"content")?4:"width"===t?1:0;s<4;s+=2)"margin"===n&&(o+=v.css(e,n+J[s],!0,r)),i?("content"===n&&(o-=v.css(e,"padding"+J[s],!0,r)),"margin"!==n&&(o-=v.css(e,"border"+J[s]+"Width",!0,r))):(o+=v.css(e,"padding"+J[s],!0,r),"padding"!==n&&(o+=v.css(e,"border"+J[s]+"Width",!0,r)));return o}function Ve(e,t,n){var i,r=!0,s=je(e),o="border-box"===v.css(e,"boxSizing",!1,s);if(e.getClientRects().length&&(i=e.getBoundingClientRect()[t]),i<=0||null==i){if(((i=He(e,t,s))<0||null==i)&&(i=e.style[t]),Pe.test(i))return i;r=o&&(p.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+Ye(e,t,n||(o?"border":"content"),r,s)+"px"}function Qe(e,t,n,i,r){return new Qe.prototype.init(e,t,n,i,r)}v.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=He(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:"cssFloat"},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,s,o,a=v.camelCase(t),l=e.style;return t=v.cssProps[a]||(v.cssProps[a]=We(a)||a),o=v.cssHooks[t]||v.cssHooks[a],void 0===n?o&&"get"in o&&void 0!==(r=o.get(e,!1,i))?r:l[t]:("string"===(s=typeof n)&&(r=Z.exec(n))&&r[1]&&(n=ne(e,t,r),s="number"),void(null!=n&&n==n&&("number"===s&&(n+=r&&r[3]||(v.cssNumber[a]?"":"px")),p.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),o&&"set"in o&&void 0===(n=o.set(e,n,i))||(l[t]=n))))}},css:function(e,t,n,i){var r,s,o,a=v.camelCase(t);return t=v.cssProps[a]||(v.cssProps[a]=We(a)||a),(o=v.cssHooks[t]||v.cssHooks[a])&&"get"in o&&(r=o.get(e,!0,n)),void 0===r&&(r=He(e,t,i)),"normal"===r&&t in qe&&(r=qe[t]),""===n||n?(s=parseFloat(r),!0===n||isFinite(s)?s||0:r):r}}),v.each(["height","width"],function(e,t){v.cssHooks[t]={get:function(e,n,i){if(n)return!$e.test(v.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ve(e,t,i):te(e,Re,function(){return Ve(e,t,i)})},set:function(e,n,i){var r,s=i&&je(e),o=i&&Ye(e,t,i,"border-box"===v.css(e,"boxSizing",!1,s),s);return o&&(r=Z.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=v.css(e,t)),Ue(0,n,o)}}}),v.cssHooks.marginLeft=Fe(p.reliableMarginLeft,function(e,t){if(t)return(parseFloat(He(e,"marginLeft"))||e.getBoundingClientRect().left-te(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),v.each({margin:"",padding:"",border:"Width"},function(e,t){v.cssHooks[e+t]={expand:function(n){for(var i=0,r={},s="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+J[i]+t]=s[i]||s[i-2]||s[0];return r}},Le.test(e)||(v.cssHooks[e+t].set=Ue)}),v.fn.extend({css:function(e,t){return B(this,function(e,t,n){var i,r,s={},o=0;if(v.isArray(t)){for(i=je(e),r=t.length;o<r;o++)s[t[o]]=v.css(e,t[o],!1,i);return s}return void 0!==n?v.style(e,t,n):v.css(e,t)},e,t,arguments.length>1)}}),v.Tween=Qe,Qe.prototype={constructor:Qe,init:function(e,t,n,i,r,s){this.elem=e,this.prop=n,this.easing=r||v.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=s||(v.cssNumber[n]?"":"px")},cur:function(){var e=Qe.propHooks[this.prop];return e&&e.get?e.get(this):Qe.propHooks._default.get(this)},run:function(e){var t,n=Qe.propHooks[this.prop];return this.options.duration?this.pos=t=v.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Qe.propHooks._default.set(this),this}},Qe.prototype.init.prototype=Qe.prototype,Qe.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=v.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){v.fx.step[e.prop]?v.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[v.cssProps[e.prop]]&&!v.cssHooks[e.prop]?e.elem[e.prop]=e.now:v.style(e.elem,e.prop,e.now+e.unit)}}},Qe.propHooks.scrollTop=Qe.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},v.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},v.fx=Qe.prototype.init,v.fx.step={};var Ge,Xe,Ke=/^(?:toggle|show|hide)$/,Ze=/queueHooks$/;function Je(){Xe&&(e.requestAnimationFrame(Je),v.fx.tick())}function et(){return e.setTimeout(function(){Ge=void 0}),Ge=v.now()}function tt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=J[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function nt(e,t,n){for(var i,r=(it.tweeners[t]||[]).concat(it.tweeners["*"]),s=0,o=r.length;s<o;s++)if(i=r[s].call(n,t,e))return i}function it(e,t,n){var i,r,s=0,o=it.prefilters.length,a=v.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var t=Ge||et(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),s=0,o=c.tweens.length;s<o;s++)c.tweens[s].run(i);return a.notifyWith(e,[c,i,n]),i<1&&o?n:(a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:v.extend({},t),opts:v.extend(!0,{specialEasing:{},easing:v.easing._default},n),originalProperties:t,originalOptions:n,startTime:Ge||et(),duration:n.duration,tweens:[],createTween:function(t,n){var i=v.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||
vendor: 23,354 bytes, line 2
2c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(function(e,t){var n,i,r,s,o;for(n in e)if(r=t[i=v.camelCase(n)],s=e[n],v.isArray(s)&&(r=s[1],s=e[n]=s[0]),n!==i&&(e[i]=s,delete e[n]),(o=v.cssHooks[i])&&"expand"in o)for(n in s=o.expand(s),delete e[i],s)n in e||(e[n]=s[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);s<o;s++)if(i=it.prefilters[s].call(c,e,u,c.opts))return v.isFunction(i.stop)&&(v._queueHooks(c.elem,c.opts.queue).stop=v.proxy(i.stop,i)),i;return v.map(u,nt,c),v.isFunction(c.opts.start)&&c.opts.start.call(e,c),v.fx.timer(v.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}v.Animation=v.extend(it,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ne(n.elem,e,Z.exec(t),n),n}]},tweener:function(e,t){v.isFunction(e)?(t=e,e=["*"]):e=e.match(j);for(var n,i=0,r=e.length;i<r;i++)n=e[i],it.tweeners[n]=it.tweeners[n]||[],it.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,s,o,a,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ee(e),g=Y.get(e,"fxshow");for(i in n.queue||(null==(o=v._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,h.always(function(){h.always(function(){o.unqueued--,v.queue(e,"fx").length||o.empty.fire()})})),t)if(r=t[i],Ke.test(r)){if(delete t[i],s=s||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||v.style(e,i)}if((l=!v.isEmptyObject(t))||!v.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=Y.get(e,"display")),"none"===(u=v.css(e,"display"))&&(c?u=c:(se([e],!0),c=e.style.display||c,u=v.css(e,"display"),se([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===v.css(e,"float")&&(l||(h.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=Y.access(e,"fxshow",{display:c}),s&&(g.hidden=!m),m&&se([e],!0),h.done(function(){for(i in m||se([e]),Y.remove(e,"fxshow"),f)v.style(e,i,f[i])})),l=nt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?it.prefilters.unshift(e):it.prefilters.push(e)}}),v.speed=function(e,t,n){var r=e&&"object"==typeof e?v.extend({},e):{complete:n||!n&&t||v.isFunction(e)&&e,duration:e,easing:n&&t||t&&!v.isFunction(t)&&t};return v.fx.off||i.hidden?r.duration=0:"number"!=typeof r.duration&&(r.duration in v.fx.speeds?r.duration=v.fx.speeds[r.duration]:r.duration=v.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v.isFunction(r.old)&&r.old.call(this),r.queue&&v.dequeue(this,r.queue)},r},v.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ee).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=v.isEmptyObject(e),s=v.speed(t,n,i),o=function(){var t=it(this,v.extend({},e),s);(r||Y.get(this,"finish"))&&t.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each(function(){var t=!0,r=null!=e&&e+"queueHooks",s=v.timers,o=Y.get(this);if(r)o[r]&&o[r].stop&&i(o[r]);else for(r in o)o[r]&&o[r].stop&&Ze.test(r)&&i(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=e&&s[r].queue!==e||(s[r].anim.stop(n),t=!1,s.splice(r,1));!t&&n||v.dequeue(this,e)})},finish:function(e){return!1!==e&&(e=e||"fx"),this.each(function(){var t,n=Y.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],s=v.timers,o=i?i.length:0;for(n.finish=!0,v.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=s.length;t--;)s[t].elem===this&&s[t].queue===e&&(s[t].anim.stop(!0),s.splice(t,1));for(t=0;t<o;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish})}}),v.each(["toggle","show","hide"],function(e,t){var n=v.fn[t];v.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(tt(t,!0),e,i,r)}}),v.each({slideDown:tt("show"),slideUp:tt("hide"),slideToggle:tt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){v.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}}),v.timers=[],v.fx.tick=function(){var e,t=0,n=v.timers;for(Ge=v.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||v.fx.stop(),Ge=void 0},v.fx.timer=function(e){v.timers.push(e),e()?v.fx.start():v.timers.pop()},v.fx.interval=13,v.fx.start=function(){Xe||(Xe=e.requestAnimationFrame?e.requestAnimationFrame(Je):e.setInterval(v.fx.tick,v.fx.interval))},v.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(Xe):e.clearInterval(Xe),Xe=null},v.fx.speeds={slow:600,fast:200,_default:400},v.fn.delay=function(t,n){return t=v.fx&&v.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,i){var r=e.setTimeout(n,t);i.stop=function(){e.clearTimeout(r)}})},function(){var e=i.createElement("input"),t=i.createElement("select").appendChild(i.createElement("option"));e.type="checkbox",p.checkOn=""!==e.value,p.optSelected=t.selected,(e=i.createElement("input")).value="t",e.type="radio",p.radioValue="t"===e.value}();var rt,st=v.expr.attrHandle;v.fn.extend({attr:function(e,t){return B(this,v.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){v.removeAttr(this,e)})}}),v.extend({attr:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===e.getAttribute?v.prop(e,t,n):(1===s&&v.isXMLDoc(e)||(r=v.attrHooks[t.toLowerCase()]||(v.expr.match.bool.test(t)?rt:void 0)),void 0!==n?null===n?void v.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=v.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!p.radioValue&&"radio"===t&&v.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(j);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),rt={set:function(e,t,n){return!1===t?v.removeAttr(e,n):e.setAttribute(n,n),n}},v.each(v.expr.match.bool.source.match(/\w+/g),function(e,t){var n=st[t]||v.find.attr;st[t]=function(e,t,i){var r,s,o=t.toLowerCase();return i||(s=st[o],st[o]=r,r=null!=n(e,t,i)?o:null,st[o]=s),r}});var ot=/^(?:input|select|textarea|button)$/i,at=/^(?:a|area)$/i;function lt(e){return(e.match(j)||[]).join(" ")}function ct(e){return e.getAttribute&&e.getAttribute("class")||""}v.fn.extend({prop:function(e,t){return B(this,v.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[v.propFix[e]||e]})}}),v.extend({prop:function(e,t,n){var i,r,s=e.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&v.isXMLDoc(e)||(t=v.propFix[t]||t,r=v.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=v.find.attr(e,"tabindex");return t?parseInt(t,10):ot.test(e.nodeName)||at.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),p.optSelected||(v.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),v.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){v.propFix[this.toLowerCase()]=this}),v.fn.extend({addClass:function(e){var t,n,i,r,s,o,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).addClass(e.call(this,t,ct(this)))});if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=ct(n),i=1===n.nodeType&&" "+lt(r)+" "){for(o=0;s=t[o++];)i.indexOf(" "+s+" ")<0&&(i+=s+" ");r!==(a=lt(i))&&n.setAttribute("class",a)}return this},removeClass:function(e){var t,n,i,r,s,o,a,l=0;if(v.isFunction(e))return this.each(function(t){v(this).removeClass(e.call(this,t,ct(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(j)||[];n=this[l++];)if(r=ct(n),i=1===n.nodeType&&" "+lt(r)+" "){for(o=0;s=t[o++];)for(;i.indexOf(" "+s+" ")>-1;)i=i.replace(" "+s+" "," ");r!==(a=lt(i))&&n.setAttribute("class",a)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):v.isFunction(e)?this.each(function(n){v(this).toggleClass(e.call(this,n,ct(this),t),t)}):this.each(function(){var t,i,r,s;if("string"===n)for(i=0,r=v(this),s=e.match(j)||[];t=s[i++];)r.hasClass(t)?r.removeClass(t):r.addClass(t);else void 0!==e&&"boolean"!==n||((t=ct(this))&&Y.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Y.get(this,"__className__")||""))})},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+lt(ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var ut=/\r/g;v.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v.isFunction(e),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,v(this).val()):e)?r="":"number"==typeof r?r+="":v.isArray(r)&&(r=v.map(r,function(e){return null==e?"":e+""})),(t=v.valHooks[this.type]||v.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))})):r?(t=v.valHooks[r.type]||v.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(ut,""):null==n?"":n:void 0}}),v.extend({valHooks:{option:{get:function(e){var t=v.find.attr(e,"value");return null!=t?t:lt(v.text(e))}},select:{get:function(e){var t,n,i,r=e.options,s=e.selectedIndex,o="select-one"===e.type,a=o?null:[],l=o?s+1:r.length;for(i=s<0?l:o?s:0;i<l;i++)if(((n=r[i]).selected||i===s)&&!n.disabled&&(!n.parentNode.disabled||!v.nodeName(n.parentNode,"optgroup"))){if(t=v(n).val(),o)return t;a.push(t)}return a},set:function(e,t){for(var n,i,r=e.options,s=v.makeArray(t),o=r.length;o--;)((i=r[o]).selected=v.inArray(v.valHooks.option.get(i),s)>-1)&&(n=!0);return n||(e.selectedIndex=-1),s}}}}),v.each(["radio","checkbox"],function(){v.valHooks[this]={set:function(e,t){if(v.isArray(t))return e.checked=v.inArray(v(e).val(),t)>-1}},p.checkOn||(v.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var dt=/^(?:focusinfocus|focusoutblur)$/;v.extend(v.event,{trigger:function(t,n,r,s){var o,a,l,c,u,h,f,p=[r||i],m=d.call(t,"type")?t.type:t,g=d.call(t,"namespace")?t.namespace.split("."):[];if(a=l=r=r||i,3!==r.nodeType&&8!==r.nodeType&&!dt.test(m+v.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(t=t[v.expando]?t:new v.Event(m,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:v.makeArray(n,[t]),f=v.event.special[m]||{},s||!f.trigger||!1!==f.trigger.apply(r,n))){if(!s&&!f.noBubble&&!v.isWindow(r)){for(c=f.delegateType||m,dt.test(c+m)||(a=a.parentNode);a;a=a.parentNode)p.push(a),l=a;l===(r.ownerDocument||i)&&p.push(l.defaultView||l.parentWindow||e)}for(o=0;(a=p[o++])&&!t.isPropagationStopped();)t.type=o>1?c:f.bindType||m,(h=(Y.get(a,"events")||{})[t.type]&&Y.get(a,"handle"))&&h.apply(a,n),(h=u&&a[u])&&h.apply&&W(a)&&(t.result=h.apply(a,n),!1===t.result&&t.preventDefault());return t.type=m,s||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(p.pop(),n)||!W(r)||u&&v.isFunction(r[m])&&!v.isWindow(r)&&((l=r[u])&&(r[u]=null),v.event.triggered=m,r[m](),v.event.triggered=void 0,l&&(r[u]=l)),t.result}},simulate:function(e,t,n){var i=v.extend(new v.Event,n,{type:e,isSimulated:!0});v.event.trigger(i,null,t)}}),v.fn.extend({trigger:function(e,t){return this.each(function(){v.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return v.event.trigger(e,t,n,!0)}}),v.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,t){v.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),v.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),p.focusin="onfocusin"in e,p.focusin||v.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){v.event.simulate(t,e.target,v.event.fix(e))};v.event.special[t]={setup:function(){var i=this.ownerDocument||this,r=Y.access(i,t);r||i.addEventListener(e,n,!0),Y.access(i,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this,r=Y.access(i,t)-1;r?Y.access(i,t,r):(i.removeEventListener(e,n,!0),Y.remove(i,t))}}});var ht=e.location,ft=v.now(),pt=/\?/;v.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(e){n=void 0}return n&&!n.getElementsByTagName("parsererror").length||v.error("Invalid XML: "+t),n};var mt=/\[\]$/,gt=/\r?\n/g,vt=/^(?:submit|button|image|reset|file)$/i,yt=/^(?:input|select|textarea|keygen)/i;function _t(e,t,n,i){var r;if(v.isArray(t))v.each(t,function(t,r){n||mt.test(e)?i(e,r):_t(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)});else if(n||"object"!==v.type(t))i(e,t);else for(r in t)_t(e+"["+r+"]",t[r],n,i)}v.param=function(e,t){var n,i=[],r=function(e,t){var n=v.isFunction(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(v.isArray(e)||e.jquery&&!v.isPlainObject(e))v.each(e,function(){r(this.name,this.value)});else for(n in e)_t(n,e[n],t,r);return i.join("&")},v.fn.extend({serialize:function(){return v.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=v.prop(this,"elements");return e?v.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!v(this).is(":disabled")&&yt.test(this.nodeName)&&!vt.test(e)&&(this.checked||!oe.test(e))}).map(function(e,t){var n=v(this).val();return null==n?null:v.isArray(n)?v.map(n,function(e){return{name:t.name,value:e.replace(gt,"\r\n")}}):{name:t.name,value:n.replace(gt,"\r\n")}}).get()}});var bt=/%20/g,wt=/#.*$/,xt=/([?&])_=[^&]*/,Ct=/^(.*?):[ \t]*([^\r\n]*)$/gm,Et=/^(?:GET|HEAD)$/,St=/^\/\//,kt={},Tt={},Dt="*/".concat("*"),It=i.createElement("a");function Ot(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,s=t.toLowerCase().match(j)||[];if(v.isFunction(n))for(;i=s[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function At(e,t,n,i){var r={},s=e===Tt;function o(a){var l;return r[a]=!0,v.each(e[a]||[],function(e,a){var c=a(t,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),o(c),!1)}),l}return o(t.dataTypes[0])||!r["*"]&&o("*")}function Nt(e,t){var n,i,r=v.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&v.extend(!0,e,i),e}It.href=ht.href,v.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ht.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ht.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Dt,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":v.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Nt(Nt(e,v.ajaxSettings),t):Nt(v.ajaxSettings,e)},ajaxPrefilter:Ot(kt),ajaxTransport:Ot(Tt),ajax:function(t,n){"object"==typeof t&&(n=t,t=void 0),n=n||{};var r,s,o,a,l,c,u,d,h,f,p=v.ajaxSetup({},n),m=p.context||p,g=p.context&&(m.nodeType||m.jquery)?v(m):v.event,y=v.Deferred(),_=v.Callbacks("once memory"),b=p.statusCode||{},w={},x={},C="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(u){if(!a)for(a={};t=Ct.exec(o);)a[t[1].toLowerCase()]=t[2];t=a[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)E.always(e[E.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||C;return r&&r.abort(t),S(0,t),this}};if(y.promise(E),p.url=((t||p.url||ht.href)+"").replace(St,ht.protocol+"//"),p.type=n.method||n.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(j)||[""],null==p.crossDomain){c=i.createElement("a");try{c.href=p.url,c.href=c.href,p.crossDomain=It.protocol+"//"+It.host!=c.protocol+"//"+c.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=v.param(p.data,p.traditional)),At(kt,p,n,E),u)return E;for(h in(d=v.event&&p.global)&&0===v.active++&&v.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Et.test(p.type),s=p.url.replace(wt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(bt,"+")):(f=p.url.slice(s.length),p.data&&(s+=(pt.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(xt,"$1"),f=(pt.test(s)?"&":"?")+"_="+ft+++f),p.url=s+f),p.ifModified&&(v.lastModified[s]&&E.setRequestHeader("If-Modified-Since",v.lastModified[s]),v.etag[s]&&E.setRequestHeader("If-None-Match",v.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||n.contentType)&&E.setRequestHeader("Content-Type",p.contentType),E.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Dt+"; q=0.01":""):p.accepts["*"]),p.headers)E.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(m,E,p)||u))return E.abort();if(C="abort",_.add(p.complete),E.done(p.success),E.fail(p.error),r=At(Tt,p,n,E)){if(E.readyState=1,d&&g.trigger("ajaxSend",[E,p]),u)return E;p.async&&p.timeout>0&&(l=e.setTimeout(function(){E.abort("timeout")},p.timeout));try{u=!1,r.send(w,S)}catch(e){if(u)throw e;S(-1,e)}}else S(-1,"No Transport");function S(t,n,i,a){var c,h,f,w,x,C=n;u||(u=!0,l&&e.clearTimeout(l),r=void 0,o=a||"",E.readyState=t>0?4:0,c=t>=200&&t<300||304===t,i&&(w=function(e,t,n){for(var i,r,s,o,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in a)if(a[r]&&a[r].test(i)){l.unshift(r);break}if(l[0]in n)s=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),n[s]}(p,E,i)),w=function(e,t,n,i){var r,s,o,a,l,c={},u=e.dataTypes.slice();if(u[1])for(o in e.converters)c[o.toLowerCase()]=e.converters[o];for(s=u.shift();s;)if(e.responseFields[s]&&(n[e.responseFields[s]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=s,s=u.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=c[l+" "+s]||c["* "+s]))for(r in c)if((a=r.split(" "))[1]===s&&(o=c[l+" "+a[0]]||c["* "+a[0]])){!0===o?o=c[r]:!0!==c[r]&&(s=a[0],u.unshift(a[1]));break}if(!0!==o)if(o&&e.throws)t=o(t);else try{t=o(t)}catch(e){return{state:"parsererror",error:o?e:"No conversion from "+l+" to "+s}}}return{state:"success",data:t}}(p,w,E,c),c?(p.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(v.lastModified[s]=x),(x=E.getResponseHeader("etag"))&&(v.etag[s]=x)),204===t||"HEAD"===p.type?C="nocontent":304===t?C="notmodified":(C=w.state,h=w.data,c=!(f=w.error))):(f=C,!t&&C||(C="error",t<0&&(t=0))),E.status=t,E.statusText=(n||C)+"",c?y.resolveWith(m,[h,C,E]):y.rejectWith(m,[E,C,f]),E.statusCode(b),b=void 0,d&&g.trigger(c?"ajaxSuccess":"ajaxError",[E,p,c?h:f]),_.fireWith(m,[E,C]),d&&(g.trigger("ajaxComplete",[E,p]),--v.active||v.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return v.get(e,t,n,"json")},getScript:function(e,t){return v.get(e,void 0,t,"script")}}),v.each(["get","post"],function(e,t){v[t]=function(e,n,i,r){return v.isFunction(n)&&(r=r||i,i=n,n=void 0),v.ajax(v.extend({url:e,type:t,dataType:r,data:n,success:i},v.isPlainObject(e)&&e))}}),v._evalUrl=function(e){return v.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},v.fn.extend({wrapAll:function(e){var t;return this[0]&&(v.isFunction(e)&&(e=e.call(this[0])),t=v(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return v.isFunction(e)?this.each(function(t){v(this).wrapInner(e.call(this,t))}):this.each(function(){var t=v(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=v.isFunction(e);return this.each(function(n){v(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){v(this).replaceWith(this.childNodes)}),this}}),v.expr.pseudos.hidden=function(e){return!v.expr.pseudos.visible(e)},v.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},v.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(e){}};var Mt={0:200,1223:204},Lt=v.ajaxSettings.xhr();p.cors=!!Lt&&"withCredentials"in Lt,p.ajax=Lt=!!Lt,v.ajaxTransport(function(t){var n,i;if(p.cors||Lt&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);n=function(e){return function(){n&&(n=i=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Mt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=n(),i=a.onerror=n("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&e.setTimeout(function(){n&&i()})},n=n("abort");try{a.send(t.hasContent&&t.data||null)}catch(e){if(n)throw e}},abort:function(){n&&n()}}}),v.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),v.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 v.globalEval(e),e}}}),v.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),v.ajaxTransport("script",function(e){var t,n;if(e.crossDomain)return{send:function(r,s){t=v("<script>
2").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&s("error"===e.type?404:200,e.type)}),i.head.appendChild(t[0])},abort:function(){n&&n()}}});var Pt=[],jt=/(=)\?(?=&|$)|\?\?/;function Ht(e){return v.isWindow(e)?e:9===e.nodeType&&e.defaultView}v.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Pt.pop()||v.expando+"_"+ft++;return this[e]=!0,e}}),v.ajaxPrefilter("json jsonp",function(t,n,i){var r,s,o,a=!1!==t.jsonp&&(jt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&jt.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(jt,"$1"+r):!1!==t.jsonp&&(t.url+=(pt.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||v.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=e[r],e[r]=function(){o=arguments},i.always(function(){void 0===s?v(e).removeProp(r):e[r]=s,t[r]&&(t.jsonpCallback=n.jsonpCallback,Pt.push(r)),o&&v.isFunction(s)&&s(o[0]),o=s=void 0}),"script"}),p.createHTMLDocument=function(){var e=i.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),v.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(p.createHTMLDocument?((r=(t=i.implementation.createHTMLDocument("")).createElement("base")).href=i.location.href,t.head.appendChild(r)):t=i),o=!n&&[],(s=T.exec(e))?[t.createElement(s[1])]:(s=fe([e],t,o),o&&o.length&&v(o).remove(),v.merge([],s.childNodes)));var r,s,o},v.fn.load=function(e,t,n){var i,r,s,o=this,a=e.indexOf(" ");return a>-1&&(i=lt(e.slice(a)),e=e.slice(0,a)),v.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),o.length>0&&v.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done(function(e){s=arguments,o.html(i?v("<div>").append(v.parseHTML(e)).find(i):e)}).always(n&&function(e,t){o.each(function(){n.apply(this,s||[e.responseText,t,e])})}),this},v.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){v.fn[t]=function(e){return this.on(t,e)}}),v.expr.pseudos.animated=function(e){return v.grep(v.timers,function(t){return e===t.elem}).length},v.offset={setOffset:function(e,t,n){var i,r,s,o,a,l,c=v.css(e,"position"),u=v(e),d={};"static"===c&&(e.style.position="relative"),a=u.offset(),s=v.css(e,"top"),l=v.css(e,"left"),("absolute"===c||"fixed"===c)&&(s+l).indexOf("auto")>-1?(o=(i=u.position()).top,r=i.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v.isFunction(t)&&(t=t.call(e,n,v.extend({},a))),null!=t.top&&(d.top=t.top-a.top+o),null!=t.left&&(d.left=t.left-a.left+r),"using"in t?t.using.call(e,d):u.css(d)}},v.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){v.offset.setOffset(this,e,t)});var t,n,i,r,s=this[0];return s?s.getClientRects().length?(i=s.getBoundingClientRect()).width||i.height?(n=Ht(r=s.ownerDocument),t=r.documentElement,{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i:{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n=this[0],i={top:0,left:0};return"fixed"===v.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),v.nodeName(e[0],"html")||(i=e.offset()),i={top:i.top+v.css(e[0],"borderTopWidth",!0),left:i.left+v.css(e[0],"borderLeftWidth",!0)}),{top:t.top-i.top-v.css(n,"marginTop",!0),left:t.left-i.left-v.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===v.css(e,"position");)e=e.offsetParent;return e||pe})}}),v.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;v.fn[e]=function(i){return B(this,function(e,i,r){var s=Ht(e);return void 0===r?s?s[t]:e[i]:void(s?s.scrollTo(n?s.pageXOffset:r,n?r:s.pageYOffset):e[i]=r)},e,i,arguments.length)}}),v.each(["top","left"],function(e,t){v.cssHooks[t]=Fe(p.pixelPosition,function(e,n){if(n)return n=He(e,t),Pe.test(n)?v(e).position()[t]+"px":n})}),v.each({Height:"height",Width:"width"},function(e,t){v.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,i){v.fn[i]=function(r,s){var o=arguments.length&&(n||"boolean"!=typeof r),a=n||(!0===r||!0===s?"margin":"border");return B(this,function(t,n,r){var s;return v.isWindow(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===r?v.css(t,n,a):v.style(t,n,r,a)},t,o?r:void 0,o)}})}),v.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)}}),v.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return v});var Ft=e.jQuery,$t=e.$;return v.noConflict=function(t){return e.$===v&&(e.$=$t),t&&e.jQuery===v&&(e.jQuery=Ft),v},t||(e.jQuery=e.$=v),v}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,t,n,i,r){return jQuery.easing[jQuery.easing.def](e,t,n,i,r)},easeInQuad:function(e,t,n,i,r){return i*(t/=r)*t+n},easeOutQuad:function(e,t,n,i,r){return-i*(t/=r)*(t-2)+n},easeInOutQuad:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t+n:-i/2*(--t*(t-2)-1)+n},easeInCubic:function(e,t,n,i,r){return i*(t/=r)*t*t+n},easeOutCubic:function(e,t,n,i,r){return i*((t=t/r-1)*t*t+1)+n},easeInOutCubic:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t+n:i/2*((t-=2)*t*t+2)+n},easeInQuart:function(e,t,n,i,r){return i*(t/=r)*t*t*t+n},easeOutQuart:function(e,t,n,i,r){return-i*((t=t/r-1)*t*t*t-1)+n},easeInOutQuart:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t+n:-i/2*((t-=2)*t*t*t-2)+n},easeInQuint:function(e,t,n,i,r){return i*(t/=r)*t*t*t*t+n},easeOutQuint:function(e,t,n,i,r){return i*((t=t/r-1)*t*t*t*t+1)+n},easeInOutQuint:function(e,t,n,i,r){return(t/=r/2)<1?i/2*t*t*t*t*t+n:i/2*((t-=2)*t*t*t*t+2)+n},easeInSine:function(e,t,n,i,r){return-i*Math.cos(t/r*(Math.PI/2))+i+n},easeOutSine:function(e,t,n,i,r){return i*Math.sin(t/r*(Math.PI/2))+n},easeInOutSine:function(e,t,n,i,r){return-i/2*(Math.cos(Math.PI*t/r)-1)+n},easeInExpo:function(e,t,n,i,r){return 0==t?n:i*Math.pow(2,10*(t/r-1))+n},easeOutExpo:function(e,t,n,i,r){return t==r?n+i:i*(1-Math.pow(2,-10*t/r))+n},easeInOutExpo:function(e,t,n,i,r){return 0==t?n:t==r?n+i:(t/=r/2)<1?i/2*Math.pow(2,10*(t-1))+n:i/2*(2-Math.pow(2,-10*--t))+n},easeInCirc:function(e,t,n,i,r){return-i*(Math.sqrt(1-(t/=r)*t)-1)+n},easeOutCirc:function(e,t,n,i,r){return i*Math.sqrt(1-(t=t/r-1)*t)+n},easeInOutCirc:function(e,t,n,i,r){return(t/=r/2)<1?-i/2*(Math.sqrt(1-t*t)-1)+n:i/2*(Math.sqrt(1-(t-=2)*t)+1)+n},easeInElastic:function(e,t,n,i,r){var s=1.70158,o=0,a=i;if(0==t)return n;if(1==(t/=r))return n+i;if(o||(o=.3*r),a<Math.abs(i)){a=i;s=o/4}else s=o/(2*Math.PI)*Math.asin(i/a);
2return-a*Math.pow(2,10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/o)+n},easeOutElastic:function(e,t,n,i,r){var s=1.70158,o=0,a=i;if(0==t)return n;if(1==(t/=r))return n+i;if(o||(o=.3*r),a<Math.abs(i)){a=i;s=o/4}else s=o/(2*Math.PI)*Math.asin(i/a);return a*Math.pow(2,-10*t)*Math.sin((t*r-s)*(2*Math.PI)/o)+i+n},easeInOutElastic:function(e,t,n,i,r){var s=1.70158,o=0,a=i;if(0==t)return n;if(2==(t/=r/2))return n+i;if(o||(o=r*(.3*1.5)),a<Math.abs(i)){a=i;s=o/4}else s=o/(2*Math.PI)*Math.asin(i/a);return t<1?a*Math.pow(2,10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/o)*-.5+n:a*Math.pow(2,-10*(t-=1))*Math.sin((t*r-s)*(2*Math.PI)/o)*.5+i+n},easeInBack:function(e,t,n,i,r,s){return null==s&&(s=1.70158),i*(t/=r)*t*((s+1)*t-s)+n},easeOutBack:function(e,t,n,i,r,s){return null==s&&(s=1.70158),i*((t=t/r-1)*t*((s+1)*t+s)+1)+n},easeInOutBack:function(e,t,n,i,r,s){return null==s&&(s=1.70158),(t/=r/2)<1?i/2*(t*t*((1+(s*=1.525))*t-s))+n:i/2*((t-=2)*t*((1+(s*=1.525))*t+s)+2)+n},easeInBounce:function(e,t,n,i,r){return i-jQuery.easing.easeOutBounce(e,r-t,0,i,r)+n},easeOutBounce:function(e,t,n,i,r){return(t/=r)<1/2.75?i*(7.5625*t*t)+n:t<2/2.75?i*(7.5625*(t-=1.5/2.75)*t+.75)+n:t<2.5/2.75?i*(7.5625*(t-=2.25/2.75)*t+.9375)+n:i*(7.5625*(t-=2.625/2.75)*t+.984375)+n},easeInOutBounce:function(e,t,n,i,r){return t<r/2?.5*jQuery.easing.easeInBounce(e,2*t,0,i,r)+n:.5*jQuery.easing.easeOutBounce(e,2*t-r,0,i,r)+.5*i+n}}),function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(jQuery)}(function(e){e.extend(e.fn,{validate:function(t){if(this.length){var n=e.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new e.validator(t,this[0]),e.data(this[0],"validator",n),n.settings.onsubmit&&(this.on("click.validate",":submit",function(t){n.settings.submitHandler&&(n.submitButton=t.target),e(this).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(n.cancelSubmit=!0)}),this.on("submit.validate",function(t){function i(){var i,r;return!n.settings.submitHandler||(n.submitButton&&(i=e("<input type='hidden'/>").attr("name",n.submitButton.name).val(e(n.submitButton).val()).appendTo(n.currentForm)),r=n.settings.submitHandler.call(n,n.currentForm,t),n.submitButton&&i.remove(),void 0!==r&&r)}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,i()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):i():(n.focusInvalid(),!1)})),n)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,n,i;return e(this[0]).is("form")?t=this.validate().form():(i=[],t=!0,n=e(this[0].form).validate(),this.each(function(){(t=n.element(this)&&t)||(i=i.concat(n.errorList))}),n.errorList=i),t},rules:function(t,n){var i,r,s,o,a,l,c=this[0];if(null!=c&&null!=c.form){if(t)switch(i=e.data(c.form,"validator").settings,r=i.rules,s=e.validator.staticRules(c),t){case"add":e.extend(s,e.validator.normalizeRule(n)),delete s.messages,r[c.name]=s,n.messages&&(i.messages[c.name]=e.extend(i.messages[c.name],n.messages));break;case"remove":return n?(l={},e.each(n.split(/\s/),function(t,n){l[n]=s[n],delete s[n],"required"===n&&e(c).removeAttr("aria-required")}),l):(delete r[c.name],s)}return(o=e.validator.normalizeRules(e.extend({},e.validator.classRules(c),e.validator.attributeRules(c),e.validator.dataRules(c),e.validator.staticRules(c)),c)).required&&(a=o.required,delete o.required,o=e.extend({required:a},o),e(c).attr("aria-required","true")),o.remote&&(a=o.remote,delete o.remote,o=e.extend(o,{remote:a})),o}}}),e.extend(e.expr.pseudos||e.expr[":"],{blank:function(t){return!e.trim(""+e(t).val())},filled:function(t){var n=e(t).val();return null!==n&&!!e.trim(""+n)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,n){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=n,this.init()},e.validator.format=function(t,n){return 1===arguments.length?function(){var n=e.makeArray(arguments);return n.unshift(t),e.validator.format.apply(this,n)}:(void 0===n||(arguments.length>2&&n.constructor!==Array&&(n=e.makeArray(arguments).slice(1)),n.constructor!==Array&&(n=[n]),e.each(n,function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","g"),function(){return n})})),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
2idClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,n){9===n.which&&""===this.elementValue(t)||-1!==e.inArray(n.keyCode,[16,17,18,20,35,36,37,38,39,40,45,144,225])||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,n,i){"radio"===t.type?this.findByName(t.name).addClass(n).removeClass(i):e(t).addClass(n).removeClass(i)},unhighlight:function(t,n,i){"radio"===t.type?this.findByName(t.name).removeClass(n).addClass(i):e(t).removeClass(n).addClass(i)}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){function t(t){!this.form&&this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0]);var n=e.data(this.form,"validator"),i="on"+t.type.replace(/^validate/,""),r=n.settings;r[i]&&!e(this).is(r.ignore)&&r[i].call(n,this,t)}this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var n,i=this.groups={};e.each(this.settings.groups,function(t,n){"string"==typeof n&&(n=n.split(/\s/)),e.each(n,function(e,n){i[n]=t})}),n=this.settings.rules,e.each(n,function(t,i){n[t]=e.validator.normalizeRule(i)}),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",t).on("click.validate","select, option, [type='radio'], [type='checkbox']",t),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),e(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var n,i,r=this.clean(t),s=this.validationTargetFor(r),o=this,a=!0;return void 0===s?delete this.invalid[r.name]:(this.prepareElement(s),this.currentElements=e(s),(i=this.groups[s.name])&&e.each(this.groups,function(e,t){t===i&&e!==s.name&&((r=o.validationTargetFor(o.clean(o.findByName(e))))&&r.name in o.invalid&&(o.currentElements.push(r),a=o.check(r)&&a))}),n=!1!==this.check(s),a=a&&n,this.invalid[s.name]=!n,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),e(t).attr("aria-invalid",!n)),a},showErrors:function(t){if(t){var n=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,function(e,t){return{message:e,element:n.findByName(t)[0]}}),this.successList=e.grep(this.successList,function(e){return!(e.name in t)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.val
2idClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)e[t]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,function(e){return e.element.name===t.name}).length&&t},elements:function(){var t=this,n={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var i=this.name||e(this).attr("name");return!i&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),this.hasAttribute("contenteditable")&&(this.form=e(this).closest("form")[0]),!(i in n||!t.objectLength(e(this).rules())||(n[i]=!0,0))})},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var n,i,r=e(t),s=t.type;return"radio"===s||"checkbox"===s?this.findByName(t.name).filter(":checked").val():"number"===s&&void 0!==t.validity?t.validity.badInput?"NaN":r.val():(n=t.hasAttribute("contenteditable")?r.text():r.val(),"file"===s?"C:\\fakepath\\"===n.substr(0,12)?n.substr(12):(i=n.lastIndexOf("/"))>=0?n.substr(i+1):(i=n.lastIndexOf("\\"))>=0?n.substr(i+1):n:"string"==typeof n?n.replace(/\r/g,""):n)},check:function(t){t=this.validationTargetFor(this.clean(t));var n,i,r,s=e(t).rules(),o=e.map(s,function(e,t){return t}).length,a=!1,l=this.elementValue(t);if("function"==typeof s.normalizer){if("string"!=typeof(l=s.normalizer.call(t,l)))throw new TypeError("The normalizer should return a string value.");delete s.normalizer}for(i in s){r={method:i,parameters:s[i]};try{if("dependency-mismatch"===(n=e.validator.methods[i].call(this,l,t,r.parameters))&&1===o){a=!0;continue}if(a=!1,"pending"===n)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!n)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),e}}if(!a)return this.objectLength(s)&&this.successList.push(t),!0},customDataMessage:function(t,n){return e(t).data("msg"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,n){"string"==typeof n&&(n={method:n});var i=this.findDefined(this.customMessage(t.name,n.method),this.customDataMessage(t,n.method),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[n.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,n.parameters,t):r.test(i)&&(i=e.validator.format(i.replace(r,"{$1}"),n.parameters)),i},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.val
vendor: 6,894 bytes, line 2
2idClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map(function(){return this.element})},showLabel:function(t,n){var i,r,s,o,a=this.errorsFor(t),l=this.idOrName(t),c=e(t).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(n)):(i=a=e("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(n||""),this.settings.wrapper&&(i=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,e(t)):i.insertAfter(t),a.is("label")?a.attr("for",l):0===a.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(s=a.attr("id"),c?c.match(new RegExp("\\b"+this.escapeCssMeta(s)+"\\b"))||(c+=" "+s):c=s,e(t).attr("aria-describedby",c),(r=this.groups[t.name])&&(o=this,e.each(o.groups,function(t,n){n===r&&e("[name='"+o.escapeCssMeta(t)+"']",o.currentForm).attr("aria-describedby",a.attr("id"))})))),!n&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,t)),this.toShow=this.toShow.add(a)},errorsFor:function(t){var n=this.escapeCssMeta(this.idOrName(t)),i=e(t).attr("aria-describedby"),r="label[for='"+n+"'], label[for='"+n+"'] *";return i&&(r=r+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(e){return e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,n){switch(n.nodeName.toLowerCase()){case"select":return e("option:selected",n).length;case"input":if(this.checkable(n))return this.findByName(n.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,n){return!!e(t,n.form).length},function:function(e,t){return e(t)}},optional:function(t){var n=this.elementValue(t);return!e.validator.methods.required.call(this,n,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,n){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),n&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(e(this.currentForm).submit(),this.formSubmitted=!1):!n&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,n){return n="string"==typeof n&&n||"remote",e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:n})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,n){t.constructor===String?this.classRuleSettings[t]=n:e.extend(this.classRuleSettings,t)},classRules:function(t){var n={},i=e(t).attr("class");return i&&e.each(i.split(" "),function(){this in e.validator.classRuleSettings&&e.extend(n,e.validator.classRuleSettings[this])}),n},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e[n]=!0)},attributeRules:function(t){var n,i,r={},s=e(t),o=t.getAttribute("type");for(n in e.validator.methods)"required"===n?(""===(i=t.getAttribute(n))&&(i=!0),i=!!i):i=s.attr(n),this.normalizeAttributeRule(r,o,n,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var n,i,r={},s=e(t),o=t.getAttribute("type");for(n in e.validator.methods)i=s.data("rule"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()),this.normalizeAttributeRule(r,o,n,i);return r},staticRules:function(t){var n={},i=e.data(t.form,"validator");return i.settings.rules&&(n=e.validator.normalizeRule(i.settings.rules[t.name])||{}),n},normalizeRules:function(t,n){return e.each(t,function(i,r){if(!1!==r){if(r.param||r.depends){var s=!0;switch(typeof r.depends){case"string":s=!!e(r.depends,n.form).length;break;case"function":s=r.depends.call(n,n)}s?t[i]=void 0===r.param||r.param:(e.data(n.form,"validator").resetElements(e(n)),delete t[i])}}else delete t[i]}),e.each(t,function(i,r){t[i]=e.isFunction(r)&&"normalizer"!==i?r(n):r}),e.each(["minlength","maxlength"],function(){t[this]&&(t[this]=Number(t[this]))}),e.each(["rangelength","range"],function(){var n;t[this]&&(e.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(n=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(n[0]),Number(n[1])]))}),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var n={};e.each(t.split(/\s/),function(){n[this]=!0}),t=n}return t},addMethod:function(t,n,i){e.validator.methods[t]=n,e.validator.messages[t]=void 0!==i?i:e.validator.messages[t],n.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,n,i){if(!this.depend(i,n))return"dependency-mismatch";if("select"===n.nodeName.toLowerCase()){var r=e(n).val();return r&&r.length>0}return this.checkable(n)?this.getLength(t,n)>0:t.length>0},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)}
2,url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:function(e,t){return this.optional(t)||!/Invalid|NaN/.test(new Date(e).toString())},dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(t,n,i){var r=e.isArray(t)?t.length:this.getLength(t,n);return this.optional(n)||r>=i},maxlength:function(t,n,i){var r=e.isArray(t)?t.length:this.getLength(t,n);return this.optional(n)||r<=i},rangelength:function(t,n,i){var r=e.isArray(t)?t.length:this.getLength(t,n);return this.optional(n)||r>=i[0]&&r<=i[1]},min:function(e,t,n){return this.optional(t)||e>=n},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(t,n,i){var r,s=e(n).attr("type"),o="Step attribute on input type "+s+" is not supported.",a=new RegExp("\\b"+s+"\\b"),l=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},c=function(e){return Math.round(e*Math.pow(10,r))},u=!0;if(s&&!a.test(["text","number","range"].join()))throw new Error(o);return r=l(i),(l(t)>r||c(t)%c(i)!==0)&&(u=!1),this.optional(n)||u},equalTo:function(t,n,i){var r=e(i);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){e(n).valid()}),t===r.val()},remote:function(t,n,i,r){if(this.optional(n))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var s,o,a,l=this.previousValue(n,r);return this.settings.messages[n.name]||(this.settings.messages[n.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[n.name][r],this.settings.messages[n.name][r]=l.message,i="string"==typeof i&&{url:i}||i,a=e.param(e.extend({data:t},i.data)),l.old===a?l.valid:(l.old=a,s=this,this.startRequest(n),(o={})[n.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+n.name,dataType:"json",data:o,context:s.currentForm,success:function(e){var i,o,a,c=!0===e||"true"===e;s.settings.messages[n.name][r]=l.originalMessage,c?(a=s.formSubmitted,s.resetInternals(),s.toHide=s.errorsFor(n),s.formSubmitted=a,s.successList.push(n),s.invalid[n.name]=!1,s.showErrors()):(i={},o=e||s.defaultMessage(n,{method:r,parameters:t}),i[n.name]=l.message=o,s.invalid[n.name]=!0,s.showErrors(i)),l.valid=c,s.stopRequest(n,c)}},i)),"pending")}}});var t,n={};return e.ajaxPrefilter?e.ajaxPrefilter(function(e,t,i){var r=e.port;"abort"===e.mode&&(n[r]&&n[r].abort(),n[r]=i)}):(t=e.ajax,e.ajax=function(i){var r=("mode"in i?i:e.ajaxSettings).mode,s=("port"in i?i:e.ajaxSettings).port;return"abort"===r?(n[s]&&n[s].abort(),n[s]=t.apply(this,arguments),n[s]):t.apply(this,arguments)}),e}),function(e){function t(e,t,n){e.rules[t]=n,e.message&&(e.messages[t]=e.message)}function n(e){return e.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1")}function i(e){return e.substr(0,e.lastIndexOf(".")+1)}function r(e,t){return 0===e.indexOf("*.")&&(e=e.replace("*.",t)),e}function s(t,i){var r=e(this).find("[data-valmsg-for='"+n(i[0].name)+"']"),s=r.attr("data-valmsg-replace"),o=s?!1!==e.parseJSON(s):null;r.removeClass("field-validation-valid").addClass("field-validation-error"),t.data("unobtrusiveContainer",r),o?(r.empty(),t.removeClass("input-validation-error").appendTo(r)):t.hide()}function o(t,n){var i=e(this).find("[data-valmsg-summary=true]"),r=i.find("ul");r&&r.length&&n.errorList.length&&(r.empty(),i.addClass("validation-summary-errors").removeClass("validation-summary-valid"),e.each(n.errorList,function(){e("<li />").html(this.message).appendTo(r)}))}function a(t){var n=t.data("unobtrusiveContainer");if(n){var i=n.attr("data-valmsg-replace"),r=i?e.parseJSON(i):null;n.addClass("field-validation-valid").removeClass("field-validation-error"),t.removeData("unobtrusiveContainer"),r&&n.empty()}}function l(t){var n=e(this),i="__jquery_unobtrusive_validation_form_reset";if(!n.data(i)){n.data(i,!0);try{n.data("validator").resetForm()}finally{n.removeData(i)}
2n.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors"),n.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer")}}function c(t){var n=e(t),i=n.data(h),r=e.proxy(l,t),c=d.unobtrusive.options||{},u=function(n,i){var r=c[n];r&&e.isFunction(r)&&r.apply(t,i)};return i||(i={options:{errorClass:c.errorClass||"input-validation-error",errorElement:c.errorElement||"span",errorPlacement:function(){s.apply(t,arguments),u("errorPlacement",arguments)},invalidHandler:function(){o.apply(t,arguments),u("invalidHandler",arguments)},messages:{},rules:{},success:function(){a.apply(t,arguments),u("success",arguments)}},attachValidation:function(){n.off("reset."+h,r).on("reset."+h,r).validate(this.options)},validate:function(){return n.validate(),n.valid()}},n.data(h,i)),i}var u,d=e.validator,h="unobtrusiveValidation";d.unobtrusive={adapters:[],parseElement:function(t,n){var i,r,s,o=e(t),a=o.parents("form")[0];a&&((i=c(a)).options.rules[t.name]=r={},i.options.messages[t.name]=s={},e.each(this.adapters,function(){var n="data-val-"+this.name,i=o.attr(n),l={};void 0!==i&&(n+="-",e.each(this.params,function(){l[this]=o.attr(n+this)}),this.adapt({element:t,form:a,message:i,params:l,rules:r,messages:s}))}),e.extend(r,{__dummy__:!0}),n||i.attachValidation())},parse:function(t){var n=e(t),i=n.parents().addBack().filter("form").add(n.find("form")).has("[data-val=true]");n.find("[data-val=true]").each(function(){d.unobtrusive.parseElement(this,!0)}),i.each(function(){var e=c(this);e&&e.attachValidation()})}},(u=d.unobtrusive.adapters).add=function(e,t,n){return n||(n=t,t=[]),this.push({name:e,params:t,adapt:n}),this},u.addBool=function(e,n){return this.add(e,function(i){t(i,n||e,!0)})},u.addMinMax=function(e,n,i,r,s,o){return this.add(e,[s||"min",o||"max"],function(e){var s=e.params.min,o=e.params.max;s&&o?t(e,r,[s,o]):s?t(e,n,s):o&&t(e,i,o)})},u.addSingleVal=function(e,n,i){return this.add(e,[n||"val"],function(r){t(r,i||e,r.params[n])})},d.addMethod("__dummy__",function(e,t,n){return!0}),d.addMethod("regex",function(e,t,n){var i;return!!this.optional(t)||(i=new RegExp(n).exec(e))&&0===i.index&&i[0].length===e.length}),d.addMethod("nonalphamin",function(e,t,n){var i;return n&&(i=(i=e.match(/\W/g))&&i.length>=n),i}),d.methods.extension?(u.addSingleVal("accept","mimtype"),u.addSingleVal("extension","extension")):u.addSingleVal("extension","extension","accept"),u.addSingleVal("regex","pattern"),u.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url"),u.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range"),u.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength"),u.add("equalto",["other"],function(s){var o=i(s.element.name),a=r(s.params.other,o);t(s,"equalTo",e(s.form).find(":input").filter("[name='"+n(a)+"']")[0])}),u.add("required",function(e){("INPUT"!==e.element.tagName.toUpperCase()||"CHECKBOX"!==e.element.type.toUpperCase())&&t(e,"required",!0)}),u.add("remote",["url","type","additionalfields"],function(s){var o={url:s.params.url,type:s.params.type||"GET",data:{}},a=i(s.element.name);e.each(function(e){return e.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g)}(s.params.additionalfields||s.element.name),function(t,i){var l=r(i,a);o.data[l]=function(){var t=e(s.form).find(":input").filter("[name='"+n(l)+"']");return t.is(":checkbox")?t.filter(":checked").val()||t.filter(":hidden").val()||"":t.is(":radio")?t.filter(":checked").val()||"":t.val()}}),t(s,"remote",o)}),u.add("password",["min","nonalphamin","regex"],function(e){e.params.min&&t(e,"minlength",e.params.min),e.params.nonalphamin&&t(e,"nonalphamin",e.params.nonalphamin),e.params.regex&&t(e,"regex",e.params.regex)}),e(function(){d.unobtrusive.parse(document)})}(jQuery),$.validator.addMethod("requiredif",function(e,t,n){var i="#"+n.dependentproperty,r=n.targetvalue;r=(null==r?"":r).toString();var s,o=$(i),a=o.prop("type");return s="checkbox"==a?o.prop("checked").toString():"radio"==a?void 0===(s=$('input[name="'+o.prop("name")+'"]:checked').val())?"":s:o.val(),r.toLowerCase()!==s.toLowerCase()||$.validator.methods.required.call(this,e,t,n)}),$.validator.unobtrusive.adapters.add("requiredif",["dependentproperty","targetvalue"],function(e){e.rules.requiredif={dependentproperty:e.params.dependentproperty,targetvalue:e.params.targetvalue},e.messages.requiredif=e.message}),$.validator.addMethod("requiredtrue",function(e,t,n){return t.checked}),$.validator.unobtrusive.adapters.addBool("requiredtrue"),$.validator.addMethod("filesize",function(e,t,n){return t.files.length<1||(!t.files||!t.files[0].size||t.files[0].size<n.maxsize)}),$.validator.unobtrusive.adapters.add("filesize",["maxsize"],function(e){e.rules.filesize=e.params,e.message&&(e.messages.filesize=e.message)}),$.validator.addMethod("fileextension",function(e,t,n){if(t.files.length<1)return!0;
2if(!t.files||!t.files[0].size)return!0;var i=/[.]/.exec(e)?/[^.]+$/.exec(e):void 0;return null!=i&&(i=i[0]),-1!==$.inArray(i,n.validextensions.split(","))}),$.validator.unobtrusive.adapters.add("fileextension",["validextensions"],function(e){e.rules.fileextension=e.params,e.message&&(e.messages.fileextension=e.message)}), 3/*! 4 * jQuery UI Widget 1.10.4+amd 5 * https://github.com/blueimp/jQuery-File-Upload 6 * 7 * Copyright 2014 jQuery Foundation and other contributors 8 * Released under the MIT license. 9 * http://jquery.org/license 10 * 11 * http://api.jqueryui.com/jQuery.widget/ 12 */ 13function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}(function(e,t){var n=0,i=Array.prototype.slice,r=e.cleanData;e.cleanData=function(t){for(var n,i=0;null!=(n=t[i]);i++)try{e(n).triggerHandler("remove")}catch(e){}r(t)},e.widget=function(t,n,i){var r,s,o,a,l={},c=t.split(".")[0];t=t.split(".")[1],r=c+"-"+t,i||(i=n,n=e.Widget),e.expr[":"][r.toLowerCase()]=function(t){return!!e.data(t,r)},e[c]=e[c]||{},s=e[c][t],o=e[c][t]=function(e,t){if(!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:i.version,_proto:e.extend({},i),_childConstructors:[]}),(a=new n).options=e.widget.extend({},a.options),e.each(i,function(t,i){var r,s;e.isFunction(i)?l[t]=(r=function(){return n.prototype[t].apply(this,arguments)},s=function(e){return n.prototype[t].apply(this,e)},function(){var e,t=this._super,n=this._superApply;return this._super=r,this._superApply=s,e=i.apply(this,arguments),this._super=t,this._superApply=n,e}):l[t]=i}),o.prototype=e.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||t},l,{constructor:o,namespace:c,widgetName:t,widgetFullName:r}),s?(e.each(s._childConstructors,function(t,n){var i=n.prototype;e.widget(i.namespace+"."+i.widgetName,o,n._proto)}),delete s._childConstructors):n._childConstructors.push(o),e.widget.bridge(t,o)},e.widget.extend=function(n){for(var r,s,o=i.call(arguments,1),a=0,l=o.length;a<l;a++)for(r in o[a])s=o[a][r],o[a].hasOwnProperty(r)&&s!==t&&(e.isPlainObject(s)?n[r]=e.isPlainObject(n[r])?e.widget.extend({},n[r],s):e.widget.extend({},s):n[r]=s);return n},e.widget.bridge=function(n,r){var s=r.prototype.widgetFullName||n;e.fn[n]=function(o){var a="string"==typeof o,l=i.call(arguments,1),c=this;return o=!a&&l.length?e.widget.extend.apply(null,[o].concat(l)):o,a?this.each(function(){var i,r=e.data(this,s);return r?e.isFunction(r[o])&&"_"!==o.charAt(0)?(i=r[o].apply(r,l))!==r&&i!==t?(c=i&&i.jquery?c.pushStack(i.get()):i,!1):void 0:e.error("no such method '"+o+"' for "+n+" widget instance"):e.error("cannot call methods on "+n+" prior to initialization; attempted to call method '"+o+"'")}):this.each(function(){var t=e.data(this,s);t?t.option(o||{})._init():e.data(this,s,new r(o,this))}),c}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{disabled:!1,create:null},_createWidget:function(t,i){i=e(i||this.defaultElement||this)[0],this.element=e(i),this.uuid=n++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this.bindings=e(),this.hoverable=e(),this.focusable=e(),i!==this&&(e.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===i&&this.destroy()}}),this.document=e(i.style?i.ownerDocument:i.document||i),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:e.noop,_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(e.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:e.noop,widget:function(){return this.element},option:function(n,i){var r,s,o,a=n;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof n)if(a={},r=n.split("."),n=r.shift(),r.length){for(s=a[n]=e.widget.extend({},this.options[n]),o=0;o<r.length-1;o++)s[r[o]]=s[r[o]]||{},s=s[r[o]];if(n=r.pop(),1===arguments.length)return s[n]===t?null:s[n];s[n]=i}else{if(1===arguments.length)return this.options[n]===t?null:this.options[n];a[n]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return this.options[e]=t,"disabled"===e&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!t).attr("aria-disabled",t),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(t,n,i){var r,s=this;"boolean"!=typeof t&&(i=n,n=t,t=!1),i?(n=r=e(n),this.bindings=this.bindings.add(n)):(i=n,n=this.element,r=this.widget()),e.each(i,function(i,o){function a(){if(t||!0!==s.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof o?s[o]:o).apply(s,arguments)}"string"!=typeof o&&(a.guid=o.guid=o.guid||a.guid||e.guid++);var l=i.match(/^(\w+)\s*(.*)$/),c=l[1]+s.eventNamespace,u=l[2];u?r.delegate(u,c,a):n.bind(c,a)})},_off:function(e,t){t=(t||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.unbind(t).undelegate(t)},_delay:function(e,t){var n=this;return setTimeout(function(){return("string"==typeof e?n[e]:e).apply(n,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){e(t.currentTarget).addClass("ui-state-hover")},mouseleave:function(t){e(t.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){e(t.currentTarget).addClass("ui-state-focus")},focusout:function(t){e(t.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(t,n,i){var r,s,o=this.options[t];if(i=i||{},(n=e.Event(n)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),n.target=this.element[0],s=n.originalEvent)for(r in s)r in n||(n[r]=s[r]);return this.element.trigger(n,i),!(e.isFunction(o)&&!1===o.apply(this.element[0],[n].concat(i))||n.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,n){e.Widget.prototype["_"+t]=function(i,r,s){"string"==typeof r&&(r={effect:r});var o,a=r?!0===r||"number"==typeof r?n:r.effect||n:t;"number"==typeof(r=r||{})&&(r={duration:r}),o=!e.isEmptyObject(r),r.complete=s,r.delay&&i.delay(r.delay),o&&e.effects&&e.effects.effect[a]?i[t](r):a!==t&&i[a]?i[a](r.duration,r.easing,s):i.queue(function(n){e(this)[t](),s&&s.call(i[0]),n()})}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(window.jQuery)}(function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(n){if(n.async){var i,r,s,o=n.initialIframeSrc||"javascript:false;";return{send:function(a,l){(i=e('<form style="display:none;"></form>')).attr("accept-charset",n.formAcceptCharset),s=/\?/.test(n.url)?"&":"?","DELETE"===n.type?(n.url=n.url+s+"_method=DELETE",n.type="POST"):"PUT"===n.type?(n.url=n.url+s+"_method=PUT",n.type="POST"):"PATCH"===n.type&&(n.url=n.url+s+"_method=PATCH",n.type="POST"),r=e('<iframe src="'+o+'" name="iframe-transport-'+(t+=1)+'"></iframe>').bind("load",function(){var t,s=e.isArray(n.paramName)?n.paramName:[n.paramName];r.unbind("load").bind("load",function(){var t;try{if(!(t=r.contents()).length||!t[0].firstChild)throw new Error}catch(e){t=void 0}l(200,"success",{iframe:t}),e('<iframe src="'+o+'"></iframe>').appendTo(i),window.setTimeout(function(){i.remove()},0)}),i.prop("target",r.prop("name")).prop("action",n.url).prop("method",n.type),n.formData&&e.each(n.formData,function(t,n){e('<input type="hidden"/>').prop("name",n.name).val(n.value).appendTo(i)}),n.fileInput&&n.fileInput.length&&"POST"===n.type&&(t=n.fileInput.clone(),n.fileInput.after(function(e){return t[e]}),n.paramName&&n.fileInput.each(function(t){e(this).prop("name",s[t]||n.paramName)}),i.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data"),n.fileInput.removeAttr("form")),i.submit(),t&&t.length&&n.fileInput.each(function(n,i){var r=e(t[n]);e(i).prop("name",r.prop("name")).attr("form",r.attr("form")),r.replaceWith(i)})}),i.append(r).appendTo(document.body)},abort:function(){r&&r.unbind("load").prop("src",o),i&&i.remove()}}}}),e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe xml":function(t){var n=t&&t[0];return n&&e.isXMLDoc(n)?n:e.parseXML(n.XMLDocument&&n.XMLDocument.xml||e(n.body).html())},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","jquery.ui.widget"],e):e(window.jQuery)}(function(e){"use strict";e.support.fileInput=!(new RegExp("(Android (1\\.[0156]|2\\.[01]))|(Windows Phone (OS 7|8\\.0))|(XBLWP)|(ZuneWP)|(WPDesktop)|(w(eb)?OSBrowser)|(webOS)|(Kindle/(1\\.0|2\\.[05]|3\\.0))").test(window.navigator.userAgent)||e('<input type="file">').prop("disabled")),e.support.xhrFileUpload=!(!window.ProgressEvent||!window.FileReader),e.support.xhrFormDataFileUpload=!!window.FormData,e.support.blobSlice=window.Blob&&(Blob.prototype.slice||Blob.prototype.webkitSlice||Blob.prototype.mozSlice),e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:void 0,replaceFileInput:!0,paramName:void 0,singleFileUploads:!0,limitMultiFileUploads:void 0,limitMultiFileUploadSize:void 0,limitMultiFileUploadSizeOverhead:512,sequentialUploads:!1,limitConcurrentUploads:void 0,forceIframeTransport:!1,redirect:void 0,redirectParamName:void 0,postMessage:void 0,multipart:!0,maxChunkSize:void 0,uploadedBytes:void 0,recalculateProgress:!0,progressInterval:100,bitrateInterval:500,autoUpload:!0,messages:{uploadedBytes:"Uploaded bytes exceed file size"},i18n:function(t,n){return t=this.messages[t]||t.toString(),n&&e.each(n,function(e,n){t=t.replace("{"+e+"}",n)}),t},formData:function(e){return e.serializeArray()},add:function(t,n){if(t.isDefaultPrevented())return!1;(n.autoUpload||!1!==n.autoUpload&&e(this).fileupload("option","autoUpload"))&&n.process().done(function(){n.submit()})},processData:!1,contentType:!1,cache:!1},_specialOptions:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_blobSlice:e.support.blobSlice&&function(){return(this.slice||this.webkitSlice||this.mozSlice).apply(this,arguments)},_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime(),this.loaded=0,this.bitrate=0,this.getBitrate=function(e,t,n){var i=e-this.timestamp;return(!this.bitrate||!n||i>n)&&(this.bitrate=(t-this.loaded)*(1e3/i)*8,this.loaded=t,this.timestamp=e),this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var n;return"function"===e.type(t.formData)?t.formData(t.form):e.isArray(t.formData)?t.formData:"object"===e.type(t.formData)?(n=[],e.each(t.formData,function(e,t){n.push({name:e,value:t})}),n):[]},_getTotal:function(t){var n=0;return e.each(t,function(e,t){n+=t.size||1}),n},_initProgressObject:function(t){var n={loaded:0,total:0,bitrate:0};t._progress?e.extend(t._progress,n):t._progress=n},_initResponseObject:function(e){var t;if(e._response)for(t in e._response)e._response.hasOwnProperty(t)&&delete e._response[t];else e._response={}},_onProgress:function(t,n){if(t.lengthComputable){var i,r=Date.now?Date.now():(new Date).getTime();if(n._time&&n.progressInterval&&r-n._time<n.progressInterval&&t.loaded!==t.total)return;n._time=r,i=Math.floor(t.loaded/t.total*(n.chunkSize||n._progress.total))+(n.uploadedBytes||0),this._progress.loaded+=i-n._progress.loaded,this._progress.bitrate=this._bitrateTimer.getBitrate(r,this._progress.loaded,n.bitrateInterval),n._progress.loaded=n.loaded=i,n._progress.bitrate=n.bitrate=n._bitrateTimer.getBitrate(r,i,n.bitrateInterval),this._trigger("progress",e.Event("progress",{delegatedEvent:t}),n),this._trigger("progressall",e.Event("progressall",{delegatedEvent:t}),this._progress)}},_initProgressListener:function(t){var n=this,i=t.xhr?t.xhr():e.ajaxSettings.xhr();i.upload&&(e(i.upload).bind("progress",function(e){var i=e.originalEvent;e.lengthComputable=i.lengthComputable,e.loaded=i.loaded,e.total=i.total,n._onProgress(e,t)}),t.xhr=function(){return i})},_isInstanceOf:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"},_initXHRData:function(t){var n,i=this,r=t.files[0],s=t.multipart||!e.support.xhrFileUpload,o="array"===e.type(t.paramName)?t.paramName[0]:t.paramName;t.headers=e.extend({},t.headers),t.contentRange&&(t.headers["Content-Range"]=t.contentRange),s&&!t.blob&&this._isInstanceOf("File",r)||(t.headers["Content-Disposition"]='attachment;
13 filename="'+encodeURI(r.name)+'"'),s?e.support.xhrFormDataFileUpload&&(t.postMessage?(n=this._getFormData(t),t.blob?n.push({name:o,value:t.blob}):e.each(t.files,function(i,r){n.push({name:"array"===e.type(t.paramName)&&t.paramName[i]||o,value:r})})):(i._isInstanceOf("FormData",t.formData)?n=t.formData:(n=new FormData,e.each(this._getFormData(t),function(e,t){n.append(t.name,t.value)})),t.blob?n.append(o,t.blob,r.name):e.each(t.files,function(r,s){(i._isInstanceOf("File",s)||i._isInstanceOf("Blob",s))&&n.append("array"===e.type(t.paramName)&&t.paramName[r]||o,s,s.uploadName||s.name)})),t.data=n):(t.contentType=r.type||"application/octet-stream",t.data=t.blob||r),t.blob=null},_initIframeSettings:function(t){var n=e("<a></a>").prop("href",t.url).prop("host");t.dataType="iframe "+(t.dataType||""),t.formData=this._getFormData(t),t.redirect&&n&&n!==location.host&&t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})},_initDataSettings:function(e){this._isXHRUpload(e)?(this._chunkedUpload(e,!0)||(e.data||this._initXHRData(e),this._initProgressListener(e)),e.postMessage&&(e.dataType="postmessage "+(e.dataType||""))):this._initIframeSettings(e)},_getParamName:function(t){var n=e(t.fileInput),i=t.paramName;return i?e.isArray(i)||(i=[i]):(i=[],n.each(function(){for(var t=e(this),n=t.prop("name")||"files[]",r=(t.prop("files")||[1]).length;r;)i.push(n),r-=1}),i.length||(i=[n.prop("name")||"files[]"])),i},_initFormSettings:function(t){t.form&&t.form.length||(t.form=e(t.fileInput.prop("form")),t.form.length||(t.form=e(this.options.fileInput.prop("form")))),t.paramName=this._getParamName(t),t.url||(t.url=t.form.prop("action")||location.href),t.type=(t.type||"string"===e.type(t.form.prop("method"))&&t.form.prop("method")||"").toUpperCase(),"POST"!==t.type&&"PUT"!==t.type&&"PATCH"!==t.type&&(t.type="POST"),t.formAcceptCharset||(t.formAcceptCharset=t.form.attr("accept-charset"))},_getAJAXSettings:function(t){var n=e.extend({},this.options,t);return this._initFormSettings(n),this._initDataSettings(n),n},_getDeferredState:function(e){return e.state?e.state():e.isResolved()?"resolved":e.isRejected()?"rejected":"pending"},_enhancePromise:function(e){return e.success=e.done,e.error=e.fail,e.complete=e.always,e},_getXHRPromise:function(t,n,i){var r=e.Deferred(),s=r.promise();return n=n||this.options.context||s,!0===t?r.resolveWith(n,i):!1===t&&r.rejectWith(n,i),s.abort=r.promise,this._enhancePromise(s)},_addConvenienceMethods:function(t,n){var i=this,r=function(t){return e.Deferred().resolveWith(i,t).promise()};n.process=function(t,s){return(t||s)&&(n._processQueue=this._processQueue=(this._processQueue||r([this])).pipe(function(){return n.errorThrown?e.Deferred().rejectWith(i,[n]).promise():r(arguments)}).pipe(t,s)),this._processQueue||r([this])},n.submit=function(){return"pending"!==this.state()&&(n.jqXHR=this.jqXHR=!1!==i._trigger("submit",e.Event("submit",{delegatedEvent:t}),this)&&i._onSend(t,this)),this.jqXHR||i._getXHRPromise()},n.abort=function(){return this.jqXHR?this.jqXHR.abort():(this.errorThrown="abort",i._trigger("fail",null,this),i._getXHRPromise(!1))},n.state=function(){return this.jqXHR?i._getDeferredState(this.jqXHR):this._processQueue?i._getDeferredState(this._processQueue):void 0},n.processing=function(){return!this.jqXHR&&this._processQueue&&"pending"===i._getDeferredState(this._processQueue)},n.progress=function(){return this._progress},n.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),n=t&&t.split("-"),i=n&&n.length>1&&parseInt(n[1],10);return i&&i+1},_chunkedUpload:function(t,n){t.uploadedBytes=t.uploadedBytes||0;var i,r,s=this,o=t.files[0],a=o.size,l=t.uploadedBytes,c=t.maxChunkSize||a,u=this._blobSlice,d=e.Deferred(),h=d.promise();return!(!(this._isXHRUpload(t)&&u&&(l||c<a))||t.data)&&(!!n||(l>=a?(o.error=t.i18n("uploadedBytes"),this._getXHRPromise(!1,t.context,[null,"error",o.error])):(r=function(){var n=e.extend({},t),h=n._progress.loaded;n.blob=u.call(o,l,l+c,o.type),n.chunkSize=n.blob.size,n.contentRange="bytes "+l+"-"+(l+n.chunkSize-1)+"/"+a,s._initXHRData(n),s._initProgressListener(n),i=(!1!==s._trigger("chunkse
13nd",null,n)&&e.ajax(n)||s._getXHRPromise(!1,n.context)).done(function(i,o,c){l=s._getUploadedBytes(c)||l+n.chunkSize,h+n.chunkSize-n._progress.loaded&&s._onProgress(e.Event("progress",{lengthComputable:!0,loaded:l-n.uploadedBytes,total:l-n.uploadedBytes}),n),t.uploadedBytes=n.uploadedBytes=l,n.result=i,n.textStatus=o,n.jqXHR=c,s._trigger("chunkdone",null,n),s._trigger("chunkalways",null,n),l<a?r():d.resolveWith(n.context,[i,o,c])}).fail(function(e,t,i){n.jqXHR=e,n.textStatus=t,n.errorThrown=i,s._trigger("chunkfail",null,n),s._trigger("chunkalways",null,n),d.rejectWith(n.context,[e,t,i])})},this._enhancePromise(h),h.abort=function(){return i.abort()},r(),h)))},_beforeSend:function(e,t){0===this._active&&(this._trigger("start"),this._bitrateTimer=new this._BitrateTimer,this._progress.loaded=this._progress.total=0,this._progress.bitrate=0),this._initResponseObject(t),this._initProgressObject(t),t._progress.loaded=t.loaded=t.uploadedBytes||0,t._progress.total=t.total=this._getTotal(t.files)||1,t._progress.bitrate=t.bitrate=0,this._active+=1,this._progress.loaded+=t.loaded,this._progress.total+=t.total},_onDone:function(t,n,i,r){var s=r._progress.total,o=r._response;r._progress.loaded<s&&this._onProgress(e.Event("progress",{lengthComputable:!0,loaded:s,total:s}),r),o.result=r.result=t,o.textStatus=r.textStatus=n,o.jqXHR=r.jqXHR=i,this._trigger("done",null,r)},_onFail:function(e,t,n,i){var r=i._response;i.recalculateProgress&&(this._progress.loaded-=i._progress.loaded,this._progress.total-=i._progress.total),r.jqXHR=i.jqXHR=e,r.textStatus=i.textStatus=t,r.errorThrown=i.errorThrown=n,this._trigger("fail",null,i)},_onAlways:function(e,t,n,i){this._trigger("always",null,i)},_onSend:function(t,n){n.submit||this._addConvenienceMethods(t,n);var i,r,s,o,a=this,l=a._getAJAXSettings(n),c=function(){return a._sending+=1,l._bitrateTimer=new a._BitrateTimer,i=i||((r||!1===a._trigger("send",e.Event("send",{delegatedEvent:t}),l))&&a._getXHRPromise(!1,l.context,r)||a._chunkedUpload(l)||e.ajax(l)).done(function(e,t,n){a._onDone(e,t,n,l)}).fail(function(e,t,n){a._onFail(e,t,n,l)}).always(function(e,t,n){if(a._onAlways(e,t,n,l),a._sending-=1,a._active-=1,l.limitConcurrentUploads&&l.limitConcurrentUploads>a._sending)for(var i=a._slots.shift();i;){if("pending"===a._getDeferredState(i)){i.resolve();break}i=a._slots.shift()}0===a._active&&a._trigger("stop")})};return this._beforeSend(t,l),this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending?(this.options.limitConcurrentUploads>1?(s=e.Deferred(),this._slots.push(s),o=s.pipe(c)):(this._sequence=this._sequence.pipe(c,c),o=this._sequence),o.abort=function(){return r=[void 0,"abort","abort"],i?i.abort():(s&&s.rejectWith(l.context,r),c())},this._enhancePromise(o)):c()},_onAdd:function(t,n){var i,r,s,o,a=this,l=!0,c=e.extend({},this.options,n),u=n.files,d=u.length,h=c.limitMultiFileUploads,f=c.limitMultiFileUploadSize,p=c.limitMultiFileUploadSizeOverhead,m=0,g=this._getParamName(c),v=0;if(!f||d&&void 0!==u[0].size||(f=void 0),(c.singleFileUploads||h||f)&&this._isXHRUpload(c))if(c.singleFileUploads||f||!h)if(!c.singleFileUploads&&f)for(s=[],i=[],o=0;o<d;o+=1)m+=u[o].size+p,(o+1===d||m+u[o+1].size+p>f||h&&o+1-v>=h)&&(s.push(u.slice(v,o+1)),(r=g.slice(v,o+1)).length||(r=g),i.push(r),v=o+1,m=0);else i=g;else for(s=[],i=[],o=0;o<d;o+=h)s.push(u.slice(o,o+h)),(r=g.slice(o,o+h)).length||(r=g),i.push(r);else s=[u],i=[g];return n.originalFiles=u,e.each(s||u,function(r,o){var c=e.extend({},n);return c.files=s?o:[o],c.paramName=i[r],a._initResponseObject(c),a._initProgressObject(c),a._addConvenienceMethods(t,c),l=a._trigger("add",e.Event("add",{delegatedEvent:t}),c)}),l},_replaceFileInput:function(t){var n=t.clone(!0);e("<form></form>").append(n)[0].reset(),t.after(n).detach(),e.cleanData(t.unbind("remove")),this.options.fileInput=this.options.fileInput.map(function(e,i){return i===t[0]?n[0]:i}),t[0]===this.element[0]&&(this.element=n)},_handleFileTreeEntry:function(t,n){var i=this,r=e.Deferred(),s=function(e){e&&!e.entry&&(e.entry=t),r.resolve([e])};return n=n||"",t.isFile?t._file?(t._file.relativePath=n,r.resolve(t._file)):t.file(function(e){e.relativePath=n,r.resolve(e)},s):t.isDirectory?t.createReader().readEntries(function(e){i._handleFileTreeEntries(e,n+t.name+"/").done(function(e){r.resolve(e)}).fail(s)},s):r.resolve([]),r.promise()},_handleFileTreeEntries:function(t,n){var i=this;return e.when.apply(e,e.map(t,function(e){return i._handleFileTreeEntry(e,n)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){var n=(t=t||{}).items;return n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)?this._handleFileTreeEntries(e.map(n,function(e){var t;return e.webkitGetAsEntry?((t=e.webkitGetAsEntry())&&(t._file=e.getAsFile()),t):e.getAsEntry()})):e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){var n,i,r=(t=e(t)).prop("webkitEntries")||t.prop("entr
13ies");if(r&&r.length)return this._handleFileTreeEntries(r);if((n=e.makeArray(t.prop("files"))).length)void 0===n[0].name&&n[0].fileName&&e.each(n,function(e,t){t.name=t.fileName,t.size=t.fileSize});else{if(!(i=t.prop("value")))return e.Deferred().resolve([]).promise();n=[{name:i.replace(/^.*\\/,"")}]}return e.Deferred().resolve(n).promise()},_getFileInputFiles:function(t){return t instanceof e&&1!==t.length?e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)}):this._getSingleFileInputFiles(t)},_onChange:function(t){var n=this,i={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(i.fileInput).always(function(r){i.files=r,n.options.replaceFileInput&&n._replaceFileInput(i.fileInput),!1!==n._trigger("change",e.Event("change",{delegatedEvent:t}),i)&&n._onAdd(t,i)})},_onPaste:function(t){var n=t.originalEvent&&t.originalEvent.clipboardData&&t.originalEvent.clipboardData.items,i={files:[]};n&&n.length&&(e.each(n,function(e,t){var n=t.getAsFile&&t.getAsFile();n&&i.files.push(n)}),!1!==this._trigger("paste",e.Event("paste",{delegatedEvent:t}),i)&&this._onAdd(t,i))},_onDrop:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var n=this,i=t.dataTransfer,r={};i&&i.files&&i.files.length&&(t.preventDefault(),this._getDroppedFiles(i).always(function(i){r.files=i,!1!==n._trigger("drop",e.Event("drop",{delegatedEvent:t}),r)&&n._onAdd(t,r)}))},_onDragOver:function(t){t.dataTransfer=t.originalEvent&&t.originalEvent.dataTransfer;var n=t.dataTransfer;n&&-1!==e.inArray("Files",n.types)&&!1!==this._trigger("dragover",e.Event("dragover",{delegatedEvent:t}))&&(t.preventDefault(),n.dropEffect="copy")},_initEventHandlers:function(){this._isXHRUpload(this.options)&&(this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop}),this._on(this.options.pasteZone,{paste:this._onPaste})),e.support.fileInput&&this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop"),this._off(this.options.pasteZone,"paste"),this._off(this.options.fileInput,"change")},_setOption:function(t,n){var i=-1!==e.inArray(t,this._specialOptions);i&&this._destroyEventHandlers(),this._super(t,n),i&&(this._initSpecialOptions(),this._initEventHandlers())},_initSpecialOptions:function(){var t=this.options;void 0===t.fileInput?t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]'):t.fileInput instanceof e||(t.fileInput=e(t.fileInput)),t.dropZone instanceof e||(t.dropZone=e(t.dropZone)),t.pasteZone instanceof e||(t.pasteZone=e(t.pasteZone))},_getRegExp:function(e){var t=e.split("/"),n=t.pop();return t.shift(),new RegExp(t.join("/"),n)},_isRegExpOption:function(t,n){return"url"!==t&&"string"===e.type(n)&&/^\/.*\/[igm]{0,3}$/.test(n)},_initDataAttributes:function(){var t=this,n=this.options,i=e(this.element[0].cloneNode(!1));e.each(i.data(),function(e,r){var s="data-"+e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();i.attr(s)&&(t._isRegExpOption(e,r)&&(r=t._getRegExp(r)),n[e]=r)})},_create:function(){this._initDataAttributes(),this._initSpecialOptions(),this._slots=[],this._sequence=this._getXHRPromise(!0),this._sending=this._active=0,this._initProgressObject(this),this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var n=this;t&&!this.options.disabled&&(t.fileInput&&!t.files?this._getFileInputFiles(t.fileInput).always(function(e){t.files=e,n._onAdd(null,t)}):(t.files=e.makeArray(t.files),this._onAdd(null,t)))},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var n,i,r=this,s=e.Deferred(),o=s.promise();return o.abort=function(){return i=!0,n?n.abort():(s.reject(null,"abort","abort"),o)},this._getFileInputFiles(t.fileInput).always(function(e){i||(e.length?(t.files=e,n=r._onSend(null,t).then(function(e,t,n){s.resolve(e,t,n)},function(e,t,n){s.reject(e,t,n)})):s.reject())}),this._enhancePromise(o)}if(t.files=e.makeArray(t.files),t.files.length)return this._onSend(null,t)}return this._getXHRPromise(!1,t&&t.context)}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload"],e):e(window.jQuery)}(function(e){"use strict";var t=e.blueimp.fileupload.prototype.options.add;e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{processQueue:[],add:function(n,i){var r=e(this);i.process(function(){return r.fileupload("process",i)}),t.call(this,n,i)}},processActions:{},_processFile:function(t,n){var i=this,r=e.Deferred().resolveWith(i,[t]).promise();return this._trigger("process",null,t),e.each(t.processQueue,function(t,s){var o=function(t){return n.errorThrown?e.Deferred().rejectWith(i,[n]).promise():i.processActions[s.action].call(i,t,s)};r=r.pipe(o,s.always&&o)}),r.done(function(){i._trigger("processdone",null,t),i._trigger("processalways",null,t)}).fail(function(){i._trigger("processfail",null,t),i._trigger("processalways",null,t)}),r},_transformProcessQueue:function(t){var n=[];e.each(t.processQueue,function(){var i={},r=this.action,s=!0===this.prefix?r:this.prefix;e.each(this,function(n,r){"string"===e.type(r)&&"@"===r.charAt(0)?i[n]=t[r.slice(1)||(s?s+n.charAt(0).toUpperCase()+n.slice(1):n)]:i[n]=r}),n.push(i)}),t.processQueue=n},processing:function(){return this._processing},process:function(t){var n=this,i=e.extend({},this.options,t);return i.processQueue&&i.processQueue.length&&(this._transformProcessQueue(i),0===this._processing&&this._trigger("processstart"),e.each(t.files,function(r){var s=r?e.extend({},i):i,o=function(){return t.errorThrown?e.Deferred().rejectWith(n,[t]).promise():n._processFile(s,t)};s.index=r,n._processing+=1,n._processingQueue=n._processingQueue.pipe(o,o).always(function(){n._processing-=1,0===n._processing&&n._trigger("processstop")})})),this._processingQueue},_create:function(){this._super(),this._processing=0,this._processingQueue=e.Deferred().resolveWith(this).promise()}})}),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery.fileupload-process"],e):e(window.jQuery)}(function(e){"use strict";e.blueimp.fileupload.prototype.options.processQueue.push({action:"validate",always:!0,acceptFileTypes:"@",maxFileSize:"@",minFileSize:"@",maxNumberOfFiles:"@",disabled:"@disableValidation"}),e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{getNumberOfFiles:e.noop,messages:{maxNumberOfFiles:"Maximum number of files exceeded",acceptFileTypes:"File type not allowed",maxFileSize:"File is too large",minFileSize:"File is too small"}},processActions:{validate:function(t,n){if(n.disabled)return t;var i,r=e.Deferred(),s=this.options,o=t.files[t.index];return(n.minFileSize||n.maxFileSize)&&(i=o.size),"number"===e.type(n.maxNumberOfFiles)&&(s.getNumberOfFiles()||0)+t.files.length>n.maxNumberOfFiles?o.error=s.i18n("maxNumberOfFiles"):!n.acceptFileTypes||n.acceptFileTypes.test(o.type)||n.acceptFileTypes.test(o.name)?i>n.maxFileSize?o.error=s.i18n("maxFileSize"):"number"===e.type(i)&&i<n.minFileSize?o.error=s.i18n("minFileSize"):delete o.error:o.error=s.i18n("acceptFileTypes"),o.error||t.files.error?(t.files.error=!0,r.rejectWith(this,[t])):r.resolveWith(this,[t]),r.promise()}}})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).bsCustomFileInput=t()}(this,function(){"use strict";var e='.custom-file input[type="file"]',t=".custom-file-label",n="form",i="input",r=function(e){if(0<e.childNodes.length)for(var t=[].slice.call(e.childNodes),n=0;n<t.length;n++){var i=t[n];if(3!==i.nodeType)return i}return e},s=function(e){var n=e.bsCustomFileInput.defaultText,i=e.parentNode.querySelector(t);i&&(r(i).textContent=n)},o=!!window.File,a=function(e){if(e.hasAttribute("multiple")&&o)return[].slice.call(e.files).map(function(e){return e.name}).join(", ");
13if(-1===e.value.indexOf("fakepath"))return e.value;var t=e.value.split("\\");return t[t.length-1]};function l(){var e=this.parentNode.querySelector(t);if(e){var n=r(e),i=a(this);i.length?n.textContent=i:s(this)}}function c(){for(var e=[].slice.call(this.querySelectorAll(i)).filter(function(e){return!!e.bsCustomFileInput}),t=0,n=e.length;t<n;t++)s(e[t])}var u="bsCustomFileInput",d="reset",h="change";return{init:function(i,r){void 0===i&&(i=e),void 0===r&&(r=n);for(var s,o,a=[].slice.call(document.querySelectorAll(i)),f=[].slice.call(document.querySelectorAll(r)),p=0,m=a.length;p<m;p++){var g=a[p];Object.defineProperty(g,u,{value:{defaultText:(s=void 0,s="",(o=g.parentNode.querySelector(t))&&(s=o.textContent),s)},writable:!0}),l.call(g),g.addEventListener(h,l)}for(var v=0,y=f.length;v<y;v++)f[v].addEventListener(d,c),Object.defineProperty(f[v],u,{value:!0,writable:!0})},destroy:function(){for(var e=[].slice.call(document.querySelectorAll(n)).filter(function(e){return!!e.bsCustomFileInput}),t=[].slice.call(document.querySelectorAll(i)).filter(function(e){return!!e.bsCustomFileInput}),r=0,o=t.length;r<o;r++){var a=t[r];s(a),a[u]=void 0,a.removeEventListener(h,l)}for(var f=0,p=e.length;f<p;f++)e[f].removeEventListener(d,c),e[f][u]=void 0}}}),function(e,t){"function"==typeof define&&define.amd?define([],function(){return e.Chartist=t()}):"object"==typeof exports?module.exports=t():e.Chartist=t()}(this,function(){var e={version:"0.9.5"};return function(e,t,n){"use strict";n.noop=function(e){return e},n.alphaNumerate=function(e){return String.fromCharCode(97+e%26)},n.extend=function(e){return e=e||{},Array.prototype.slice.call(arguments,1).forEach(function(t){for(var i in t)"object"!=typeof t[i]||null===t[i]||t[i]instanceof Array?e[i]=t[i]:e[i]=n.extend({},e[i],t[i])}),e},n.replaceAll=function(e,t,n){return e.replace(new RegExp(t,"g"),n)},n.ensureUnit=function(e,t){return"number"==typeof e&&(e+=t),e},n.quantity=function(e){if("string"==typeof e){var t=/^(\d+)\s*(.*)$/g.exec(e);return{value:+t[1],unit:t[2]||void 0}}return{value:e}},n.querySelector=function(e){return e instanceof Node?e:t.querySelector(e)},n.times=function(e){return Array.apply(null,new Array(e))},n.sum=function(e,t){return e+(t||0)},n.mapMultiply=function(e){return function(t){return t*e}},n.mapAdd=function(e){return function(t){return t+e}},n.serialMap=function(e,t){var i=[],r=Math.max.apply(null,e.map(function(e){return e.length}));return n.times(r).forEach(function(n,r){var s=e.map(function(e){return e[r]});i[r]=t.apply(null,s)}),i},n.roundWithPrecision=function(e,t){var i=Math.pow(10,t||n.precision);return Math.round(e*i)/i},n.precision=8,n.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},n.serialize=function(e){return null==e?e:("number"==typeof e?e=""+e:"object"==typeof e&&(e=JSON.stringify({data:e})),Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,t,n.escapingMap[t])},e))},n.deserialize=function(e){if("string"!=typeof e)return e;e=Object.keys(n.escapingMap).reduce(function(e,t){return n.replaceAll(e,n.escapingMap[t],t)},e);try{e=void 0!==(e=JSON.parse(e)).data?e.data:e}catch(e){}return e},n.createSvg=function(e,t,i,r){var s;return t=t||"100%",i=i||"100%",Array.prototype.slice.call(e.querySelectorAll("svg")).filter(function(e){return e.getAttributeNS("http://www.w3.org/2000/xmlns/",n.xmlNs.prefix)}).forEach(function(t){e.removeChild(t)}),s=new n.Svg("svg").attr({width:t,height:i}).addClass(r).attr({style:"width: "+t+"; height: "+i+";"}),e.appendChild(s._node),s},n.reverseData=function(e){e.labels.reverse(),e.series.reverse();for(var t=0;t<e.series.length;t++)"object"==typeof e.series[t]&&void 0!==e.series[t].data?e.series[t].data.reverse():e.series[t]instanceof Array&&e.series[t].reverse()},n.getDataArray=function(e,t,i){return(t&&!e.reversed||!t&&e.reversed)&&(n.reverseData(e),e.reversed=!e.reversed),e.series.map(function e(t){if(!n.isFalseyButZero(t)){if((t.data||t)instanceof Array)return(t.data||t).map(e);if(t.hasOwnProperty("value"))return e(t.value);if(i){var r={};return"string"==typeof i?r[i]=n.getNumberOrUndefined(t):r.y=n.getNumberOrUndefined(t),r.x=t.hasOwnProperty("x")?n.getNumberOrUndefined(t.x):r.x,r.y=t.hasOwnProperty("y")?n.getNumberOrUndefined(t.y):r.y,r}return n.getNumberOrUndefined(t)}})},n.normalizePadding=function(e,t){return t=t||0,"number"==typeof e?{top:e,right:e,bottom:e,left:e}:{top:"number"==typeof e.top?e.top:t,right:"number"==typeof e.right?e.right:t,bottom:"number"==typeof e.bottom?e.bottom:t,left:"number"==typeof e.left?e.left:t}},n.getMetaData=function(e,t){var i=e.data?e.data[t]:e[t];return i?n.serialize(i.meta):void 0},n.orderOfMagnitude=function(e){return Math.floor(Math.log(Math.abs(e))/Math.LN10)},n.projectLength=function(e,t,n){return t/n.range*e},n.getAvailableHeight=function(e,t){return Math.max((n.quantity(t.height).value||e.height())-(t.chartPadding.top+t.chartPadding.bottom)-t.axisX.offset,0)},n.getHighLow=function(e,t,i){var r={high:void 0===(t=n.extend({},t,i?t["axis"+i.toUpperCase()]:{})).high?-Number.MAX_VALUE:+t.high,low:void 0===t.low?Number.MAX_VALUE:+t.low},s=void 0===t.high,o=void 0===t.low;return(s||o)&&function e(t){if(void 0!==t)if(t instanceof Array)for(var n=0;n<t.length;n++)e(t[n]);else{var a=i?+t[i]:+t;s&&a>r.high&&(r.high=a),o&&a<r.low&&(r.low=a)}}(e),(t.referenceValue||0===t.referenceValue)&&(r.high=Math.max(t.referenceValue,r.high),r.low=Math.min(t.referenceValue,r.low)),r.high<=r.low&&(0===r.low?r.high=1:r.low<0?r.high=0:r.low=0),r},n.isNum=function(e){return!isNaN(e)&&isFinite(e)},n.isFalseyButZero=function(e){return!e&&0!==e},n.getNumberOrUndefined=function(e){return isNaN(+e)?void 0:+e}
13,n.getMultiValue=function(e,t){return n.isNum(e)?+e:e&&e[t||"y"]||0},n.rho=function(e){function t(e,n){return e%n===0?n:t(n,e%n)}function n(e){return e*e+1}if(1===e)return e;var i,r=2,s=2;if(e%2==0)return 2;do{r=n(r)%e,s=n(n(s))%e,i=t(Math.abs(r-s),e)}while(1===i);return i},n.getBounds=function(e,t,i,r){var s,o,a,l=0,c={high:t.high,low:t.low};c.valueRange=c.high-c.low,c.oom=n.orderOfMagnitude(c.valueRange),c.step=Math.pow(10,c.oom),c.min=Math.floor(c.low/c.step)*c.step,c.max=Math.ceil(c.high/c.step)*c.step,c.range=c.max-c.min,c.numberOfSteps=Math.round(c.range/c.step);var u=i>n.projectLength(e,c.step,c),d=r?n.rho(c.range):0;if(r&&n.projectLength(e,1,c)>=i)c.step=1;else if(r&&d<c.step&&n.projectLength(e,d,c)>=i)c.step=d;else for(;;){if(u&&n.projectLength(e,c.step,c)<=i)c.step*=2;else{if(u||!(n.projectLength(e,c.step/2,c)>=i))break;if(c.step/=2,r&&c.step%1!=0){c.step*=2;break}}if(l++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}for(o=c.min,a=c.max;o+c.step<=c.low;)o+=c.step;for(;a-c.step>=c.high;)a-=c.step;for(c.min=o,c.max=a,c.range=c.max-c.min,c.values=[],s=c.min;s<=c.max;s+=c.step)c.values.push(n.roundWithPrecision(s));return c},n.polarToCartesian=function(e,t,n,i){var r=(i-90)*Math.PI/180;return{x:e+n*Math.cos(r),y:t+n*Math.sin(r)}},n.createChartRect=function(e,t,i){var r=!(!t.axisX&&!t.axisY),s=r?t.axisY.offset:0,o=r?t.axisX.offset:0,a=e.width()||n.quantity(t.width).value||0,l=e.height()||n.quantity(t.height).value||0,c=n.normalizePadding(t.chartPadding,i);a=Math.max(a,s+c.left+c.right),l=Math.max(l,o+c.top+c.bottom);var u={padding:c,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return r?("start"===t.axisX.position?(u.y2=c.top+o,u.y1=Math.max(l-c.bottom,u.y2+1)):(u.y2=c.top,u.y1=Math.max(l-c.bottom-o,u.y2+1)),"start"===t.axisY.position?(u.x1=c.left+s,u.x2=Math.max(a-c.right,u.x1+1)):(u.x1=c.left,u.x2=Math.max(a-c.right-s,u.x1+1))):(u.x1=c.left,u.x2=Math.max(a-c.right,u.x1+1),u.y2=c.top,u.y1=Math.max(l-c.bottom,u.y2+1)),u},n.createGrid=function(e,t,i,r,s,o,a,l){var c={};c[i.units.pos+"1"]=e,c[i.units.pos+"2"]=e,c[i.counterUnits.pos+"1"]=r,c[i.counterUnits.pos+"2"]=r+s;var u=o.elem("line",c,a.join(" "));l.emit("draw",n.extend({type:"grid",axis:i,index:t,group:o,element:u},c))},n.createLabel=function(e,t,i,r,s,o,a,l,c,u,d){var h,f={};if(f[s.units.pos]=e+a[s.units.pos],f[s.counterUnits.pos]=a[s.counterUnits.pos],f[s.units.len]=t,f[s.counterUnits.len]=o-10,u){var p='<span class="'+c.join(" ")+'" style="'+s.units.len+": "+Math.round(f[s.units.len])+"px; "+s.counterUnits.len+": "+Math.round(f[s.counterUnits.len])+'px">'+r[i]+"</span>";h=l.foreignObject(p,n.extend({style:"overflow: visible;"},f))}else h=l.elem("text",f,c.join(" ")).text(r[i]);d.emit("draw",n.extend({type:"label",axis:s,index:i,group:l,element:h,text:r[i]},f))},n.getSeriesOption=function(e,t,n){if(e.name&&t.series&&t.series[e.name]){var i=t.series[e.name];return i.hasOwnProperty(n)?i[n]:t[n]}return t[n]},n.optionsProvider=function(t,i,r){function s(t){var s=o;if(o=n.extend({},l),i)for(a=0;a<i.length;a++){e.matchMedia(i[a][0]).matches&&(o=n.extend(o,i[a][1]))}r&&!t&&r.emit("optionsChanged",{previousOptions:s,currentOptions:o})}var o,a,l=n.extend({},t),c=[];
13if(!e.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(i)for(a=0;a<i.length;a++){var u=e.matchMedia(i[a][0]);u.addListener(s),c.push(u)}return s(!0),{removeMediaQueryListeners:function(){c.forEach(function(e){e.removeListener(s)})},getCurrentOptions:function(){return n.extend({},o)}}}}(window,document,e),function(e,t,n){"use strict";n.Interpolation={},n.Interpolation.none=function(e){return e=n.extend({},{fillHoles:!1},e),function(t,i){for(var r=new n.Svg.Path,s=!0,o=0;o<t.length;o+=2){var a=t[o],l=t[o+1],c=i[o/2];void 0!==c.value?(s?r.move(a,l,!1,c):r.line(a,l,!1,c),s=!1):e.fillHoles||(s=!0)}return r}},n.Interpolation.simple=function(e){e=n.extend({},{divisor:2,fillHoles:!1},e);var t=1/Math.max(1,e.divisor);return function(i,r){for(var s,o,a,l=new n.Svg.Path,c=0;c<i.length;c+=2){var u=i[c],d=i[c+1],h=(u-s)*t,f=r[c/2];void 0!==f.value?(void 0===a?l.move(u,d,!1,f):l.curve(s+h,o,u-h,d,u,d,!1,f),s=u,o=d,a=f):e.fillHoles||(s=u=a=void 0)}return l}},n.Interpolation.cardinal=function(e){function t(t,n){for(var i=[],r=!0,s=0;s<t.length;s+=2)void 0===n[s/2].value?e.fillHoles||(r=!0):(r&&(i.push({pathCoordinates:[],valueData:[]}),r=!1),i[i.length-1].pathCoordinates.push(t[s],t[s+1]),i[i.length-1].valueData.push(n[s/2]));return i}e=n.extend({},{tension:1,fillHoles:!1},e);var i=Math.min(1,Math.max(0,e.tension)),r=1-i;return function e(s,o){var a=t(s,o);if(a.length>1){var l=[];return a.forEach(function(t){l.push(e(t.pathCoordinates,t.valueData))}),n.Svg.Path.join(l)}if(s=a[0].pathCoordinates,o=a[0].valueData,s.length<=4)return n.Interpolation.none()(s,o);for(var c=(new n.Svg.Path).move(s[0],s[1],!1,o[0]),u=0,d=s.length;d-2>u;u+=2){var h=[{x:+s[u-2],y:+s[u-1]},{x:+s[u],y:+s[u+1]},{x:+s[u+2],y:+s[u+3]},{x:+s[u+4],y:+s[u+5]}];d-4===u?h[3]=h[2]:u||(h[0]={x:+s[u],y:+s[u+1]}),c.curve(i*(-h[0].x+6*h[1].x+h[2].x)/6+r*h[2].x,i*(-h[0].y+6*h[1].y+h[2].y)/6+r*h[2].y,i*(h[1].x+6*h[2].x-h[3].x)/6+r*h[2].x,i*(h[1].y+6*h[2].y-h[3].y)/6+r*h[2].y,h[2].x,h[2].y,!1,o[(u+2)/2])}return c}},n.Interpolation.step=function(e){return e=n.extend({},{postpone:!0,fillHoles:!1},e),function(t,i){for(var r,s,o,a=new n.Svg.Path,l=0;l<t.length;l+=2){var c=t[l],u=t[l+1],d=i[l/2];void 0!==d.value?(void 0===o?a.move(c,u,!1,d):(e.postpone?a.line(c,s,!1,o):a.line(r,u,!1,d),a.line(c,u,!1,d)),r=c,s=u,o=d):e.fillHoles||(r=s=o=void 0)}return a}}}(window,document,e),function(e,t,n){"use strict";n.EventEmitter=function(){var e=[];return{addEventHandler:function(t,n){e[t]=e[t]||[],e[t].push(n)},removeEventHandler:function(t,n){e[t]&&(n?(e[t].splice(e[t].indexOf(n),1),0===e[t].length&&delete e[t]):delete e[t])},emit:function(t,n){e[t]&&e[t].forEach(function(e){e(n)}),e["*"]&&e["*"].forEach(function(e){e(t,n)})}}}}(window,document,e),function(e,t,n){"use strict";n.Class={extend:function(e,t){var i=t||this.prototype||n.Class,r=Object.create(i);n.Class.cloneDefinitions(r,e);var s=function(){var e,t=r.constructor||function(){};return e=this===n?Object.create(r):this,t.apply(e,Array.prototype.slice.call(arguments,0)),e};return s.prototype=r,s.super=i,s.extend=this.extend,s},cloneDefinitions:function(){var e=function(e){var t=[];if(e.length)for(var n=0;n<e.length;n++)t.push(e[n]);return t}(arguments),t=e[0];return e.splice(1,e.length-1).forEach(function(e){Object.getOwnPropertyNames(e).forEach(function(n){delete t[n],Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}),t}}}(window,document,e),function(e,t,n){"use strict";function i(){e.addEventListener("resize",this.resizeListener),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(e){e instanceof Array?e[0](this,e[1]):e(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}n.Base=n.Class.extend({constructor:function(e,t,r,s,o){this.container=n.querySelector(e),this.data=t,this.defaultOptions=r,this.options=s,this.responsiveOptions=o,this.eventEmitter=n.EventEmitter(),this.supportsForeignObject=n.Svg.isSupported("Extensibility"),this.supportsAnimations=n.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(i.bind(this),0)},optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:function(e,t,i){return e&&(this.data=e,this.eventEmitter.emit("data",{type:"update",data:this.data})),t&&(this.options=n.extend({},i?this.options:this.defaultOptions,t),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=n.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this},detach:function(){return this.initializeTimeoutId?e.clearTimeout(this.initializeTimeoutId):(e.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this},on:function(e,t){return this.eventEmitter.addEventHandler(e,t),this},off:function(e,t){return this.eventEmitter.removeEventHandler(e,t),this},version:n.version,supportsForeignObject:!1})}(window,document,e),function(e,t,n){"use strict";function i(e,t){try{return e.getBBox()[t]}catch(e){}return 0}
13var r="http://www.w3.org/2000/svg",s="http://www.w3.org/2000/xmlns/",o="http://www.w3.org/1999/xhtml";n.xmlNs={qualifiedName:"xmlns:ct",prefix:"ct",uri:"http://gionkunz.github.com/chartist-js/ct"},n.Svg=n.Class.extend({constructor:function(e,i,o,a,l){e instanceof Element?this._node=e:(this._node=t.createElementNS(r,e),"svg"===e&&this._node.setAttributeNS(s,n.xmlNs.qualifiedName,n.xmlNs.uri)),i&&this.attr(i),o&&this.addClass(o),a&&(l&&a._node.firstChild?a._node.insertBefore(this._node,a._node.firstChild):a._node.appendChild(this._node))},attr:function(e,t){return"string"==typeof e?t?this._node.getAttributeNS(t,e):this._node.getAttribute(e):(Object.keys(e).forEach(function(i){void 0!==e[i]&&(t?this._node.setAttributeNS(t,[n.xmlNs.prefix,":",i].join(""),e[i]):this._node.setAttribute(i,e[i]))}.bind(this)),this)},elem:function(e,t,i,r){return new n.Svg(e,t,i,this,r)},parent:function(){return this._node.parentNode instanceof SVGElement?new n.Svg(this._node.parentNode):null},root:function(){for(var e=this._node;"svg"!==e.nodeName;)e=e.parentNode;return new n.Svg(e)},querySelector:function(e){var t=this._node.querySelector(e);return t?new n.Svg(t):null},querySelectorAll:function(e){var t=this._node.querySelectorAll(e);return t.length?new n.Svg.List(t):null},foreignObject:function(e,n,i,r){if("string"==typeof e){var s=t.createElement("div");s.innerHTML=e,e=s.firstChild}e.setAttribute("xmlns",o);var a=this.elem("foreignObject",n,i,r);return a._node.appendChild(e),a},text:function(e){return this._node.appendChild(t.createTextNode(e)),this},empty:function(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this},remove:function(){return this._node.parentNode.removeChild(this._node),this.parent()},replace:function(e){return this._node.parentNode.replaceChild(e._node,this._node),e},append:function(e,t){return t&&this._node.firstChild?this._node.insertBefore(e._node,this._node.firstChild):this._node.appendChild(e._node),this},classes:function(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]},addClass:function(e){return this._node.setAttribute("class",this.classes(this._node).concat(e.trim().split(/\s+/)).filter(function(e,t,n){return n.indexOf(e)===t}).join(" ")),this},removeClass:function(e){var t=e.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(e){return-1===t.indexOf(e)}).join(" ")),this},removeAllClasses:function(){return this._node.setAttribute("class",""),this},height:function(){return this._node.clientHeight||Math.round(i(this._node,"height"))||this._node.parentNode.clientHeight},width:function(){return this._node.clientWidth||Math.round(i(this._node,"width"))||this._node.parentNode.clientWidth},animate:function(e,t,i){return void 0===t&&(t=!0),Object.keys(e).forEach(function(r){function s(e,t){var s,o,a,l={};e.easing&&(a=e.easing instanceof Array?e.easing:n.Svg.Easing[e.easing],delete e.easing),e.begin=n.ensureUnit(e.begin,"ms"),e.dur=n.ensureUnit(e.dur,"ms"),a&&(e.calcMode="spline",e.keySplines=a.join(" "),e.keyTimes="0;1"),t&&(e.fill="freeze",l[r]=e.from,this.attr(l),o=n.quantity(e.begin||0).value,e.begin="indefinite"),s=this.elem("animate",n.extend({attributeName:r},e)),t&&setTimeout(function(){try{s._node.beginElement()}catch(t){l[r]=e.to,this.attr(l),s.remove()}}.bind(this),o),i&&s._node.addEventListener("beginEvent",function(){i.emit("animationBegin",{element:this,animate:s._node,params:e})}.bind(this)),s._node.addEventListener("endEvent",function(){i&&i.emit("animationEnd",{element:this,animate:s._node,params:e}),t&&(l[r]=e.to,this.attr(l),s.remove())}.bind(this))}e[r]instanceof Array?e[r].forEach(function(e){s.bind(this)(e,!1)}.bind(this)):s.bind(this)(e[r],t)}.bind(this)),this}}),n.Svg.isSupported=function(e){return t.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+e,"1.1")};n.Svg.Easing={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]},n.Svg.List=n.Class.extend({constructor:function(e){var t=this;this.svgElements=[];for(var i=0;i<e.length;i++)this.svgElements.push(new n.Svg(e[i]));Object.keys(n.Svg.prototype).filter(function(e){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(e)}
13).forEach(function(e){t[e]=function(){var i=Array.prototype.slice.call(arguments,0);return t.svgElements.forEach(function(t){n.Svg.prototype[e].apply(t,i)}),t}})}})}(window,document,e),function(e,t,n){"use strict";function i(e,t,i,r,s,o){var a=n.extend({command:s?e.toLowerCase():e.toUpperCase()},t,o?{data:o}:{});i.splice(r,0,a)}function r(e,t){e.forEach(function(n,i){s[n.command.toLowerCase()].forEach(function(r,s){t(n,r,i,s,e)})})}var s={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},o={accuracy:3};n.Svg.Path=n.Class.extend({constructor:function(e,t){this.pathElements=[],this.pos=0,this.close=e,this.options=n.extend({},o,t)},position:function(e){return void 0!==e?(this.pos=Math.max(0,Math.min(this.pathElements.length,e)),this):this.pos},remove:function(e){return this.pathElements.splice(this.pos,e),this},move:function(e,t,n,r){return i("M",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this},line:function(e,t,n,r){return i("L",{x:+e,y:+t},this.pathElements,this.pos++,n,r),this},curve:function(e,t,n,r,s,o,a,l){return i("C",{x1:+e,y1:+t,x2:+n,y2:+r,x:+s,y:+o},this.pathElements,this.pos++,a,l),this},arc:function(e,t,n,r,s,o,a,l,c){return i("A",{rx:+e,ry:+t,xAr:+n,lAf:+r,sf:+s,x:+o,y:+a},this.pathElements,this.pos++,l,c),this},scale:function(e,t){return r(this.pathElements,function(n,i){n[i]*="x"===i[0]?e:t}),this},translate:function(e,t){return r(this.pathElements,function(n,i){n[i]+="x"===i[0]?e:t}),this},transform:function(e){return r(this.pathElements,function(t,n,i,r,s){var o=e(t,n,i,r,s);(o||0===o)&&(t[n]=o)}),this},parse:function(e){var t=e.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(e,t){return t.match(/[A-Za-z]/)&&e.push([]),e[e.length-1].push(t),e},[]);"Z"===t[t.length-1][0].toUpperCase()&&t.pop();var i=t.map(function(e){var t=e.shift(),i=s[t.toLowerCase()];return n.extend({command:t},i.reduce(function(t,n,i){return t[n]=+e[i],t},{}))}),r=[this.pos,0];return Array.prototype.push.apply(r,i),Array.prototype.splice.apply(this.pathElements,r),this.pos+=i.length,this},stringify:function(){var e=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(t,n){var i=s[n.command.toLowerCase()].map(function(t){return this.options.accuracy?Math.round(n[t]*e)/e:n[t]}.bind(this));return t+n.command+i.join(",")}.bind(this),"")+(this.close?"Z":"")},clone:function(e){var t=new n.Svg.Path(e||this.close);return t.pos=this.pos,t.pathElements=this.pathElements.slice().map(function(e){return n.extend({},e)}),t.options=n.extend({},this.options),t},splitByCommand:function(e){var t=[new n.Svg.Path];return this.pathElements.forEach(function(i){i.command===e.toUpperCase()&&0!==t[t.length-1].pathElements.length&&t.push(new n.Svg.Path),t[t.length-1].pathElements.push(i)}),t}}),n.Svg.Path.elementDescriptions=s,n.Svg.Path.join=function(e,t,i){for(var r=new n.Svg.Path(t,i),s=0;s<e.length;s++)for(var o=e[s],a=0;a<o.pathElements.length;a++)r.pathElements.push(o.pathElements[a]);return r}}(window,document,e),function(e,t,n){"use strict";var i={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};n.Axis=n.Class.extend({constructor:function(e,t,n,r){this.units=e,this.counterUnits=e===i.x?i.y:i.x,this.chartRect=t,this.axisLength=t[e.rectEnd]-t[e.rectStart],this.gridOffset=t[e.rectOffset],this.ticks=n,this.options=r},createGridAndLabels:function(e,t,i,r,s){var o=r["axis"+this.units.pos.toUpperCase()],a=this.ticks.map(this.projectValue.bind(this)),l=this.ticks.map(o.labelInterpolationFnc);a.forEach(function(c,u){var d,h={x:0,y:0};d=a[u+1]?a[u+1]-c:Math.max(this.axisLength-c,30),(l[u]||0===l[u])&&("x"===this.units.pos?(c=this.chartRect.x1+c,h.x=r.axisX.labelOffset.x,"start"===r.axisX.position?h.y=this.chartRect.padding.top+r.axisX.labelOffset.y+(i?5:20):h.y=this.chartRect.y1+r.axisX.labelOffset.y+(i?5:20)):(c=this.chartRect.y1-c,h.y=r.axisY.labelOffset.y-(i?d:0),"start"===r.axisY.position?h.x=i?this.chartRect.padding.left+r.axisY.labelOffset.x:this.chartRect.x1-10:h.x=this.chartRect.x2+r.axisY.labelOffset.x+10),o.showGrid&&n.createGrid(c,u,this,this.gridOffset,this.chartRect[this.counterUnits.len](),e,[r.classNames.grid,r.classNames[this.units.dir]],s),o.showLabel&&n.createLabel(c,d,u,l,this,o.offset,h,t,[r.classNames.label,r.classNames[this.units.dir],r.classNames[o.position]],i,s))}.bind(this))}
13,projectValue:function(e,t,n){throw new Error("Base axis can't be instantiated!")}}),n.Axis.units=i}(window,document,e),function(e,t,n){"use strict";n.AutoScaleAxis=n.Axis.extend({constructor:function(e,t,i,r){var s=r.highLow||n.getHighLow(t.normalized,r,e.pos);this.bounds=n.getBounds(i[e.rectEnd]-i[e.rectStart],s,r.scaleMinSpace||20,r.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},n.AutoScaleAxis.super.constructor.call(this,e,i,this.bounds.values,r)},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.bounds.min)/this.bounds.range}})}(window,document,e),function(e,t,n){"use strict";n.FixedScaleAxis=n.Axis.extend({constructor:function(e,t,i,r){var s=r.highLow||n.getHighLow(t.normalized,r,e.pos);this.divisor=r.divisor||1,this.ticks=r.ticks||n.times(this.divisor).map(function(e,t){return s.low+(s.high-s.low)/this.divisor*t}.bind(this)),this.ticks.sort(function(e,t){return e-t}),this.range={min:s.low,max:s.high},n.FixedScaleAxis.super.constructor.call(this,e,i,this.ticks,r),this.stepLength=this.axisLength/this.divisor},projectValue:function(e){return this.axisLength*(+n.getMultiValue(e,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}})}(window,document,e),function(e,t,n){"use strict";n.StepAxis=n.Axis.extend({constructor:function(e,t,i,r){n.StepAxis.super.constructor.call(this,e,i,r.ticks,r),this.stepLength=this.axisLength/(r.ticks.length-(r.stretch?1:0))},projectValue:function(e,t){return this.stepLength*t}})}(window,document,e),function(e,t,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Line=n.Base.extend({constructor:function(e,t,r,s){n.Line.super.constructor.call(this,e,t,i,n.extend({},i,r),s)},createChart:function(e){var t={raw:this.data,normalized:n.getDataArray(this.data,e.reverseData,!0)};this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart);var r,s,o=this.svg.elem("g").addClass(e.classNames.gridGroup),a=this.svg.elem("g"),l=this.svg.elem("g").addClass(e.classNames.labelGroup),c=n.createChartRect(this.svg,e,i.padding);r=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,t,c,n.extend({},e.axisX,{ticks:t.raw.labels,stretch:e.fullWidth})):e.axisX.type.call(n,n.Axis.units.x,t,c,e.axisX),s=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,t,c,n.extend({},e.axisY,{high:n.isNum(e.high)?e.high:e.axisY.high,low:n.isNum(e.low)?e.low:e.axisY.low})):e.axisY.type.call(n,n.Axis.units.y,t,c,e.axisY),r.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),s.createGridAndLabels(o,l,this.supportsForeignObject,e,this.eventEmitter),t.raw.series.forEach(function(i,o){var l=a.elem("g");l.attr({"series-name":i.name,meta:n.serialize(i.meta)},n.xmlNs.uri),l.addClass([e.classNames.series,i.className||e.classNames.series+"-"+n.alphaNumerate(o)].join(" "));var u=[],d=[];t.normalized[o].forEach(function(e,a){var l={x:c.x1+r.projectValue(e,a,t.normalized[o]),y:c.y1-s.projectValue(e,a,t.normalized[o])};u.push(l.x,l.y),d.push({value:e,valueIndex:a,meta:n.getMetaData(i,a)})}.bind(this));var h={lineSmooth:n.getSeriesOption(i,e,"lineSmooth"),showPoint:n.getSeriesOption(i,e,"showPoint"),showLine:n.getSeriesOption(i,e,"showLine"),showArea:n.getSeriesOption(i,e,"showArea"),areaBase:n.getSeriesOption(i,e,"areaBase")},f=("function"==typeof h.lineSmooth?h.lineSmooth:h.lineSmooth?n.Interpolation.cardinal():n.Interpolation.none())(u,d);
13if(h.showPoint&&f.pathElements.forEach(function(t){var a=l.elem("line",{x1:t.x,y1:t.y,x2:t.x+.01,y2:t.y},e.classNames.point).attr({value:[t.data.value.x,t.data.value.y].filter(function(e){return e}).join(","),meta:t.data.meta},n.xmlNs.uri);this.eventEmitter.emit("draw",{type:"point",value:t.data.value,index:t.data.valueIndex,meta:t.data.meta,series:i,seriesIndex:o,axisX:r,axisY:s,group:l,element:a,x:t.x,y:t.y})}.bind(this)),h.showLine){var p=l.elem("path",{d:f.stringify()},e.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:t.normalized[o],path:f.clone(),chartRect:c,index:o,series:i,seriesIndex:o,axisX:r,axisY:s,group:l,element:p})}if(h.showArea&&s.range){var m=Math.max(Math.min(h.areaBase,s.range.max),s.range.min),g=c.y1-s.projectValue(m);f.splitByCommand("M").filter(function(e){return e.pathElements.length>1}).map(function(e){var t=e.pathElements[0],n=e.pathElements[e.pathElements.length-1];return e.clone(!0).position(0).remove(1).move(t.x,g).line(t.x,t.y).position(e.pathElements.length+1).line(n.x,g)}).forEach(function(a){var u=l.elem("path",{d:a.stringify()},e.classNames.area,!0).attr({values:t.normalized[o]},n.xmlNs.uri);this.eventEmitter.emit("draw",{type:"area",values:t.normalized[o],path:a.clone(),series:i,seriesIndex:o,axisX:r,axisY:s,chartRect:c,index:o,group:l,element:u})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:s.bounds,chartRect:c,axisX:r,axisY:s,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";var i={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:n.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,onlyInteger:!1,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,stackMode:"accumulate",horizontalBars:!1,distributeSeries:!1,reverseData:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};n.Bar=n.Base.extend({constructor:function(e,t,r,s){n.Bar.super.constructor.call(this,e,t,i,n.extend({},i,r),s)},createChart:function(e){var t,r={raw:this.data,normalized:e.distributeSeries?n.getDataArray(this.data,e.reverseData,e.horizontalBars?"x":"y").map(function(e){return[e]}):n.getDataArray(this.data,e.reverseData,e.horizontalBars?"x":"y")};this.svg=n.createSvg(this.container,e.width,e.height,e.classNames.chart+(e.horizontalBars?" "+e.classNames.horizontalBars:""));var s=this.svg.elem("g").addClass(e.classNames.gridGroup),o=this.svg.elem("g"),a=this.svg.elem("g").addClass(e.classNames.labelGroup);if(e.stackBars){var l=n.serialMap(r.normalized,function(){return Array.prototype.slice.call(arguments).map(function(e){return e}).reduce(function(e,t){return{x:e.x+t.x||0,y:e.y+t.y||0}},{x:0,y:0})});t=n.getHighLow([l],n.extend({},e,{referenceValue:0}),e.horizontalBars?"x":"y")}else t=n.getHighLow(r.normalized,n.extend({},e,{referenceValue:0}),e.horizontalBars?"x":"y");t.high=+e.high||(0===e.high?0:t.high),t.low=+e.low||(0===e.low?0:t.low);var c,u,d,h,f,p=n.createChartRect(this.svg,e,i.padding);u=e.distributeSeries&&e.stackBars?r.raw.labels.slice(0,1):r.raw.labels,e.horizontalBars?(c=h=void 0===e.axisX.type?new n.AutoScaleAxis(n.Axis.units.x,r,p,n.extend({},e.axisX,{highLow:t,referenceValue:0})):e.axisX.type.call(n,n.Axis.units.x,r,p,n.extend({},e.axisX,{highLow:t,referenceValue:0})),d=f=void 0===e.axisY.type?new n.StepAxis(n.Axis.units.y,r,p,{ticks:u}):e.axisY.type.call(n,n.Axis.units.y,r,p,e.axisY)):(d=h=void 0===e.axisX.type?new n.StepAxis(n.Axis.units.x,r,p,{ticks:u}):e.axisX.type.call(n,n.Axis.units.x,r,p,e.axisX),c=f=void 0===e.axisY.type?new n.AutoScaleAxis(n.Axis.units.y,r,p,n.extend({},e.axisY,{highLow:t,referenceValue:0})):e.axisY.type.call(n,n.Axis.units.y,r,p,n.extend({},e.axisY,{highLow:t,referenceValue:0})));
13var m=e.horizontalBars?p.x1+c.projectValue(0):p.y1-c.projectValue(0),g=[];d.createGridAndLabels(s,a,this.supportsForeignObject,e,this.eventEmitter),c.createGridAndLabels(s,a,this.supportsForeignObject,e,this.eventEmitter),r.raw.series.forEach(function(t,i){var s,a,l=i-(r.raw.series.length-1)/2;s=e.distributeSeries&&!e.stackBars?d.axisLength/r.normalized.length/2:e.distributeSeries&&e.stackBars?d.axisLength/2:d.axisLength/r.normalized[i].length/2,(a=o.elem("g")).attr({"series-name":t.name,meta:n.serialize(t.meta)},n.xmlNs.uri),a.addClass([e.classNames.series,t.className||e.classNames.series+"-"+n.alphaNumerate(i)].join(" ")),r.normalized[i].forEach(function(o,u){var v,y,_,b;if(b=e.distributeSeries&&!e.stackBars?i:e.distributeSeries&&e.stackBars?0:u,v=e.horizontalBars?{x:p.x1+c.projectValue(o&&o.x?o.x:0,u,r.normalized[i]),y:p.y1-d.projectValue(o&&o.y?o.y:0,b,r.normalized[i])}:{x:p.x1+d.projectValue(o&&o.x?o.x:0,b,r.normalized[i]),y:p.y1-c.projectValue(o&&o.y?o.y:0,u,r.normalized[i])},d instanceof n.StepAxis&&(d.options.stretch||(v[d.units.pos]+=s*(e.horizontalBars?-1:1)),v[d.units.pos]+=e.stackBars||e.distributeSeries?0:l*e.seriesBarDistance*(e.horizontalBars?-1:1)),_=g[u]||m,g[u]=_-(m-v[d.counterUnits.pos]),void 0!==o){var w={};w[d.units.pos+"1"]=v[d.units.pos],w[d.units.pos+"2"]=v[d.units.pos],!e.stackBars||"accumulate"!==e.stackMode&&e.stackMode?(w[d.counterUnits.pos+"1"]=m,w[d.counterUnits.pos+"2"]=v[d.counterUnits.pos]):(w[d.counterUnits.pos+"1"]=_,w[d.counterUnits.pos+"2"]=g[u]),w.x1=Math.min(Math.max(w.x1,p.x1),p.x2),w.x2=Math.min(Math.max(w.x2,p.x1),p.x2),w.y1=Math.min(Math.max(w.y1,p.y2),p.y1),w.y2=Math.min(Math.max(w.y2,p.y2),p.y1),y=a.elem("line",w,e.classNames.bar).attr({value:[o.x,o.y].filter(function(e){return e}).join(","),meta:n.getMetaData(t,u)},n.xmlNs.uri),this.eventEmitter.emit("draw",n.extend({type:"bar",value:o,index:u,meta:n.getMetaData(t,u),series:t,seriesIndex:i,axisX:h,axisY:f,chartRect:p,group:a,element:y},w))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:c.bounds,chartRect:p,axisX:h,axisY:f,svg:this.svg,options:e})}})}(window,document,e),function(e,t,n){"use strict";function i(e,t,n){var i=t.x>e.x;return i&&"explode"===n||!i&&"implode"===n?"start":i&&"implode"===n||!i&&"explode"===n?"end":"middle"}var r={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:n.noop,labelDirection:"neutral",reverseData:!1};n.Pie=n.Base.extend({constructor:function(e,t,i,s){n.Pie.super.constructor.call(this,e,t,r,n.extend({},r,i),s)},createChart:function(e){var t,s,o,a,l,c=[],u=e.startAngle,d=n.getDataArray(this.data,e.reverseData);this.svg=n.createSvg(this.container,e.width,e.height,e.donut?e.classNames.chartDonut:e.classNames.chartPie),s=n.createChartRect(this.svg,e,r.padding),o=Math.min(s.width()/2,s.height()/2),l=e.total||d.reduce(function(e,t){return e+t},0);var h=n.quantity(e.donutWidth);"%"===h.unit&&(h.value*=o/100),o-=e.donut?h.value/2:0,a="outside"===e.labelPosition||e.donut?o:"center"===e.labelPosition?0:o/2,a+=e.labelOffset;var f={x:s.x1+s.width()/2,y:s.y2+s.height()/2},p=1===this.data.series.filter(function(e){return e.hasOwnProperty("value")?0!==e.value:0!==e}).length;e.showLabel&&(t=this.svg.elem("g",null,null,!0));for(var m=0;m<this.data.series.length;m++){var g=this.data.series[m];c[m]=this.svg.elem("g",null,null,!0),c[m].attr({"series-name":g.name},n.xmlNs.uri),c[m].addClass([e.classNames.series,g.className||e.classNames.series+"-"+n.alphaNumerate(m)].join(" "));var v=u+d[m]/l*360;v-u===360&&(v-=.01);var y=n.polarToCartesian(f.x,f.y,o,u-(0===m||p?0:.2)),_=n.polarToCartesian(f.x,f.y,o,v),b=new n.Svg.Path(!e.donut).move(_.x,_.y).arc(o,o,0,v-u>180,0,y.x,y.y);e.donut||b.line(f.x,f.y);var w=c[m].elem("path",{d:b.stringify()},e.donut?e.classNames.sliceDonut:e.classNames.slicePie);if(w.attr({value:d[m],meta:n.serialize(g.meta)},n.xmlNs.uri),e.donut&&w.attr({style:"stroke-width: "+h.value+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:d[m],totalDataSum:l,index:m,meta:g.meta,series:g,group:c[m],element:w,path:b.clone(),center:f,radius:o,startAngle:u,endAngle:v}),e.showLabel){var x=n.polarToCartesian(f.x,f.y,a,u+(v-u)/2),C=e.labelInterpolationFnc(this.data.labels?this.data.labels[m]:d[m],m);if(C||0===C){var E=t.elem("text",{dx:x.x,dy:x.y,"text-anchor":i(f,x,e.labelDirection)},e.classNames.label).text(""+C);this.eventEmitter.emit("draw",{type:"label",index:m,group:t,element:E,text:""+C,x:x.x,y:x.y})}}u=v}this.eventEmitter.emit("created",{chartRect:s,svg:this.svg,options:e})},determineAnchorPosition:i})}(window,document,e),e}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],t):t((e=e||self).bootstrap={},e.jQuery)}(this,function(e,t){"use strict";function n(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function i(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
13t%2?r(Object(n),!0).forEach(function(t){var i,r,s;i=e,s=n[r=t],r in i?Object.defineProperty(i,r,{value:s,enumerable:!0,configurable:!0,writable:!0}):i[r]=s}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}t=t&&t.hasOwnProperty("default")?t.default:t;var o="transitionend";var a={TRANSITION_END:"bsTransitionEnd",getUID:function(e){for(;e+=~~(1e6*Math.random()),document.getElementById(e););return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var n=e.getAttribute("href");t=n&&"#"!==n?n.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var n=t(e).css("transition-duration"),i=t(e).css("transition-delay"),r=parseFloat(n),s=parseFloat(i);return r||s?(n=n.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(n)+parseFloat(i))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(o)},supportsTransitionEnd:function(){return Boolean(o)},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,n){for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){var r=n[i],s=t[i],o=s&&a.isElement(s)?"element":(l=s,{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase());if(!new RegExp(r).test(o))throw new Error(e.toUpperCase()+': Option "'+i+'" provided type "'+o+'" but expected type "'+r+'".')}var l},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"!=typeof e.getRootNode)return e instanceof ShadowRoot?e:e.parentNode?a.findShadowRoot(e.parentNode):null;var t=e.getRootNode();return t instanceof ShadowRoot?t:null},jQueryDetection:function(){if(void 0===t)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||4<=e[0])throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};a.jQueryDetection(),t.fn.emulateTransitionEnd=function(e){var n=this,i=!1;return t(this).one(a.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||a.triggerTransitionEnd(n)},e),this},t.event.special[a.TRANSITION_END]={bindType:o,delegateType:o,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var l="alert",c="bs.alert",u="."+c,d=t.fn[l],h={CLOSE:"close"+u,CLOSED:"closed"+u,CLICK_DATA_API:"click"+u+".data-api"},f=function(){function e(e){this._element=e}var n=e.prototype;return n.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},n.dispose=function(){t.removeData(this._element,c),this._element=null},n._getRootElement=function(e){var n=a.getSelectorFromElement(e),i=!1;return n&&(i=document.querySelector(n)),i||t(e).closest(".alert")[0]},n._triggerCloseEvent=function(e){var n=t.Event(h.CLOSE);return t(e).trigger(n),n},n._removeElement=function(e){var n=this;if(t(e).removeClass("show"),t(e).hasClass("fade")){var i=a.getTransitionDurationFromElement(e);t(e).one(a.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(i)}else this._destroyElement(e)},n._destroyElement=function(e){t(e).detach().trigger(h.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data(c);r||(r=new e(this),i.data(c,r)),"close"===n&&r[n](this)})},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(h.CLICK_DATA_API,'[data-dismiss="alert"]',f._handleDismiss(new f)),t.fn[l]=f._jQueryInterface,t.fn[l].Constructor=f,t.fn[l].noConflict=function(){return t.fn[l]=d,f._jQueryInterface};var p="button",m="bs.button",g="."+m,v=".data-api",y=t.fn[p],_="active",b='[data-toggle^="button"]',w='input:not([type="hidden"])',x=".btn",C={CLICK_DATA_API:"click"+g+v,FOCUS_BLUR_DATA_API:"focus"+g+v+" blur"+g+v,LOAD_DATA_API:"load"+g+v},E=function(){function e(e){this._element=e}var n=e.prototype;return n.toggle=function(){var e=!0,n=!0,i=t(this._element).closest('[data-toggle="buttons"]')[0];if(i){var r=this._element.querySelector(w);if(r){if("radio"===r.type)if(r.checked&&this._element.classList.contains(_))e=!1;else{var s=i.querySelector(".active");s&&t(s).removeClass(_)}else"checkbox"===r.type?"LABEL"===this._element.tagName&&r.checked===this._element.classList.contains(_)&&(e=!1):e=!1;e&&(r.checked=!this._element.classList.contains(_),t(r).trigger("change")),r.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains(_)),e&&t(this._element).toggleClass(_))},n.dispose=function(){t.removeData(this._element,m),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(m);i||(i=new e(this),t(this).data(m,i)),"toggle"===n&&i[n]()})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(C.CLICK_DATA_API,b,function(e){var n=e.target;if(t(n).hasClass("btn")||(n=t(n).closest(x)[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))e.preventDefault();else{var i=n.querySelector(w);if(i&&(i.hasAttribute("disabled")||i.classList.contains("disabled")))return void e.preventDefault();E._jQueryInterface.call(t(n),"toggle")}}).on(C.FOCUS_BLUR_DATA_API,b,function(e){var n=t(e.target).closest(x)[0];t(n).toggleClass("focus",/^focus(in)?$/.test(e.type))}),t(window).on(C.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,n=e.length;t<n;t++){var i=e[t],r=i.querySelector(w);r.checked||r.hasAttribute("checked")?i.classList.add(_):i.classList.remove(_)}for(var s=0,o=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;s<o;s++){var a=e[s];"true"===a.getAttribute("aria-pressed")?a.classList.add(_):a.classList.remove(_)}}
13),t.fn[p]=E._jQueryInterface,t.fn[p].Constructor=E,t.fn[p].noConflict=function(){return t.fn[p]=y,E._jQueryInterface};var S="carousel",k="bs.carousel",T="."+k,D=".data-api",I=t.fn[S],O={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},A={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},N="next",M="prev",L={SLIDE:"slide"+T,SLID:"slid"+T,KEYDOWN:"keydown"+T,MOUSEENTER:"mouseenter"+T,MOUSELEAVE:"mouseleave"+T,TOUCHSTART:"touchstart"+T,TOUCHMOVE:"touchmove"+T,TOUCHEND:"touchend"+T,POINTERDOWN:"pointerdown"+T,POINTERUP:"pointerup"+T,DRAG_START:"dragstart"+T,LOAD_DATA_API:"load"+T+D,CLICK_DATA_API:"click"+T+D},P="active",j=".active.carousel-item",H={TOUCH:"touch",PEN:"pen"},F=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||0<navigator.maxTouchPoints,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=e.prototype;return n.next=function(){this._isSliding||this._slide(N)},n.nextWhenVisible=function(){!document.hidden&&t(this._element).is(":visible")&&"hidden"!==t(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide(M)},n.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(a.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(e){var n=this;this._activeElement=this._element.querySelector(j);var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)t(this._element).one(L.SLID,function(){return n.to(e)});else{if(i===e)return this.pause(),void this.cycle();var r=i<e?N:M;this._slide(r,this._items[e])}},n.dispose=function(){t(this._element).off(T),t.removeData(this._element,k),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(e){return e=s({},O,{},e),a.typeCheckConfig(S,e,A),e},n._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;(this.touchDeltaX=0)<t&&this.prev(),t<0&&this.next()}},n._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(L.KEYDOWN,function(t){return e._keydown(t)}),"hover"===this._config.pause&&t(this._element).on(L.MOUSEENTER,function(t){return e.pause(t)}).on(L.MOUSELEAVE,function(t){return e.cycle(t)}),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var n=function(t){e._pointerEvent&&H[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){e._pointerEvent&&H[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout(function(t){return e.cycle(t)},500+e._config.interval))};t(this._element.querySelectorAll(".carousel-item img")).on(L.DRAG_START,function(e){return e.preventDefault()}),this._pointerEvent?(t(this._element).on(L.POINTERDOWN,function(e){return n(e)}),t(this._element).on(L.POINTERUP,function(e){return i(e)}),this._element.classList.add("pointer-event")):(t(this._element).on(L.TOUCHSTART,function(e){return n(e)}),t(this._element).on(L.TOUCHMOVE,function(t){return function(t){t.originalEvent.touches&&1<t.originalEvent.touches.length?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)}),t(this._element).on(L.TOUCHEND,function(e){return i(e)}))}},n._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},n._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},n._getItemByDirection=function(e,t){var n=e===N,i=e===M,r=this._getItemIndex(t),s=this._items.length-1;if((i&&0===r||n&&r===s)&&!this._config.wrap)return t;var o=(r+(e===M?-1:1))%this._items.length;return-1==o?this._items[this._items.length-1]:this._items[o]},n._triggerSlideEvent=function(e,n){var i=this._getItemIndex(e),r=this._getItemIndex(this._element.querySelector(j)),s=t.Event(L.SLIDE,{relatedTarget:e,direction:n,from:r,to:i});return t(this._element).trigger(s),s},n._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));t(n).removeClass(P);var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&t(i).addClass(P)}},n._slide=function(e,n){var i,r,s,o=this,l=this._element.querySelector(j),c=this._getItemIndex(l),u=n||l&&this._getItemByDirection(e,l),d=this._getItemIndex(u),h=Boolean(this._interval);if(s=e===N?(i="carousel-item-left",r="carousel-item-next","left"):(i="carousel-item-right",r="carousel-item-prev","right"),u&&t(u).hasClass(P))this._isSliding=!1;else if(!this._triggerSlideEvent(u,s).isDefaultPrevented()&&l&&u){this._isSliding=!0,h&&this.pause(),this._setActiveIndicatorElement(u);var f=t.Event(L.SLID,{relatedTarget:u,direction:s,from:c,to:d});if(t(this._element).hasClass("slide")){t(u).addClass(r),a.reflow(u),t(l).addClass(i),t(u).addClass(i);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=a.getTransitionDurationFromElement(l);t(l).one(a.TRANSITION_END,function(){t(u).removeClass(i+" "+r).addClass(P),t(l).removeClass(P+" "+r+" "+i),o._isSliding=!1,setTimeout(function(){return t(o._element).trigger(f)},0)}).emulateTransitionEnd(m)}else t(l).removeClass(P),t(u).addClass(P),this._isSliding=!1,t(this._element).trigger(f);h&&this.cycle()}},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(k),r=s({},O,{},t(this).data());"object"==typeof n&&(r=s({},r,{},n));var o="string"==typeof n?n:r.slide;if(i||(i=new e(this,r),t(this).data(k,i)),"number"==typeof n)i.to(n);else if("string"==typeof o){if(void 0===i[o])throw new TypeError('No method n
13amed "'+o+'"');i[o]()}else r.interval&&r.ride&&(i.pause(),i.cycle())})},e._dataApiClickHandler=function(n){var i=a.getSelectorFromElement(this);if(i){var r=t(i)[0];if(r&&t(r).hasClass("carousel")){var o=s({},t(r).data(),{},t(this).data()),l=this.getAttribute("data-slide-to");l&&(o.interval=!1),e._jQueryInterface.call(t(r),o),l&&t(r).data(k).to(l),n.preventDefault()}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return O}}]),e}();t(document).on(L.CLICK_DATA_API,"[data-slide], [data-slide-to]",F._dataApiClickHandler),t(window).on(L.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=e.length;n<i;n++){var r=t(e[n]);F._jQueryInterface.call(r,r.data())}}),t.fn[S]=F._jQueryInterface,t.fn[S].Constructor=F,t.fn[S].noConflict=function(){return t.fn[S]=I,F._jQueryInterface};var $="collapse",R="bs.collapse",q="."+R,z=t.fn[$],B={toggle:!0,parent:""},W={toggle:"boolean",parent:"(string|element)"},U={SHOW:"show"+q,SHOWN:"shown"+q,HIDE:"hide"+q,HIDDEN:"hidden"+q,CLICK_DATA_API:"click"+q+".data-api"},Y="show",V="collapse",Q="collapsing",G="collapsed",X="width",K='[data-toggle="collapse"]',Z=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var n=[].slice.call(document.querySelectorAll(K)),i=0,r=n.length;i<r;i++){var s=n[i],o=a.getSelectorFromElement(s),l=[].slice.call(document.querySelectorAll(o)).filter(function(t){return t===e});null!==o&&0<l.length&&(this._selector=o,this._triggerArray.push(s))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=e.prototype;return n.toggle=function(){t(this._element).hasClass(Y)?this.hide():this.show()},n.show=function(){var n,i,r=this;if(!(this._isTransitioning||t(this._element).hasClass(Y)||(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter(function(e){return"string"==typeof r._config.parent?e.getAttribute("data-parent")===r._config.parent:e.classList.contains(V)})).length&&(n=null),n&&(i=t(n).not(this._selector).data(R))&&i._isTransitioning))){var s=t.Event(U.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){n&&(e._jQueryInterface.call(t(n).not(this._selector),"hide"),i||t(n).data(R,null));var o=this._getDimension();t(this._element).removeClass(V).addClass(Q),this._element.style[o]=0,this._triggerArray.length&&t(this._triggerArray).removeClass(G).attr("aria-expanded",!0),this.setTransitioning(!0);var l="scroll"+(o[0].toUpperCase()+o.slice(1)),c=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,function(){t(r._element).removeClass(Q).addClass(V).addClass(Y),r._element.style[o]="",r.setTransitioning(!1),t(r._element).trigger(U.SHOWN)}).emulateTransitionEnd(c),this._element.style[o]=this._element[l]+"px"}}},n.hide=function(){var e=this;if(!this._isTransitioning&&t(this._element).hasClass(Y)){var n=t.Event(U.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",a.reflow(this._element),t(this._element).addClass(Q).removeClass(V).removeClass(Y);var r=this._triggerArray.length;if(0<r)for(var s=0;s<r;s++){var o=this._triggerArray[s],l=a.getSelectorFromElement(o);null!==l&&(t([].slice.call(document.querySelectorAll(l))).hasClass(Y)||t(o).addClass(G).attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var c=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,function(){e.setTransitioning(!1),t(e._element).removeClass(Q).addClass(V).trigger(U.HIDDEN)}).emulateTransitionEnd(c)}}},n.setTransitioning=function(e){this._isTransitioning=e},n.dispose=function(){t.removeData(this._element,R),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},n._getConfig=function(e){return(e=s({},B,{},e)).toggle=Boolean(e.toggle),a.typeCheckConfig($,e,W),e},n._getDimension=function(){return t(this._element).hasClass(X)?X:"height"},n._getParent=function(){var n,i=this;a.isElement(this._config.parent)?(n=this._config.parent,void 0!==this._config.parent.jquery&&(n=this._config.parent[0])):n=document.querySelector(this._config.parent);var r='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(n.querySelectorAll(r));return t(s).each(function(t,n){i._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])}),n},n._addAriaAndCollapsedClass=function(e,n){var i=t(e).hasClass(Y);n.length&&t(n).toggleClass(G,!i).attr("aria-expanded",i)},e._getTargetFromElement=function(e){var t=a.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data(R),o=s({},B,{},i.data(),{},"object"==typeof n&&n?n:{});if(!r&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),r||(r=new e(this,o),i.data(R,r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method n
13amed "'+n+'"');r[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return B}}]),e}();t(document).on(U.CLICK_DATA_API,K,function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var n=t(this),i=a.getSelectorFromElement(this),r=[].slice.call(document.querySelectorAll(i));t(r).each(function(){var e=t(this),i=e.data(R)?"toggle":n.data();Z._jQueryInterface.call(e,i)})}),t.fn[$]=Z._jQueryInterface,t.fn[$].Constructor=Z,t.fn[$].noConflict=function(){return t.fn[$]=z,Z._jQueryInterface};var J="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,ee=function(){for(var e=["Edge","Trident","Firefox"],t=0;t<e.length;t+=1)if(J&&0<=navigator.userAgent.indexOf(e[t]))return 1;return 0}(),te=J&&window.Promise?function(e){var t=!1;return function(){t||(t=!0,window.Promise.resolve().then(function(){t=!1,e()}))}}:function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},ee))}};function ne(e){return e&&"[object Function]"==={}.toString.call(e)}function ie(e,t){if(1!==e.nodeType)return[];var n=e.ownerDocument.defaultView.getComputedStyle(e,null);return t?n[t]:n}function re(e){return"HTML"===e.nodeName?e:e.parentNode||e.host}function se(e){if(!e)return document.body;switch(e.nodeName){case"HTML":case"BODY":return e.ownerDocument.body;case"#document":return e.body}var t=ie(e),n=t.overflow,i=t.overflowX,r=t.overflowY;return/(auto|scroll|overlay)/.test(n+r+i)?e:se(re(e))}function oe(e){return e&&e.referenceNode?e.referenceNode:e}var ae=J&&!(!window.MSInputMethodContext||!document.documentMode),le=J&&/MSIE 10/.test(navigator.userAgent);function ce(e){return 11===e?ae:10===e?le:ae||le}function ue(e){if(!e)return document.documentElement;for(var t=ce(10)?document.body:null,n=e.offsetParent||null;n===t&&e.nextElementSibling;)n=(e=e.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===ie(n,"position")?ue(n):n:e?e.ownerDocument.documentElement:document.documentElement}function de(e){return null!==e.parentNode?de(e.parentNode):e}function he(e,t){if(!(e&&e.nodeType&&t&&t.nodeType))return document.documentElement;var n=e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?e:t,r=n?t:e,s=document.createRange();s.setStart(i,0),s.setEnd(r,0);var o=s.commonAncestorContainer;if(e!==o&&t!==o||i.contains(r))return function(e){var t=e.nodeName;return"BODY"!==t&&("HTML"===t||ue(e.firstElementChild)===e)}(o)?o:ue(o);var a=de(e);return a.host?he(a.host,t):he(e,de(t).host)}function fe(e,t){var n="top"===(1<arguments.length&&void 0!==t?t:"top")?"scrollTop":"scrollLeft",i=e.nodeName;if("BODY"!==i&&"HTML"!==i)return e[n];var r=e.ownerDocument.documentElement;return(e.ownerDocument.scrollingElement||r)[n]}function pe(e,t){var n="x"===t?"Left":"Top",i="Left"==n?"Right":"Bottom";return parseFloat(e["border"+n+"Width"],10)+parseFloat(e["border"+i+"Width"],10)}function me(e,t,n,i){return Math.max(t["offset"+e],t["scroll"+e],n["client"+e],n["offset"+e],n["scroll"+e],ce(10)?parseInt(n["offset"+e])+parseInt(i["margin"+("Height"===e?"Top":"Left")])+parseInt(i["margin"+("Height"===e?"Bottom":"Right")]):0)}function ge(e){var t=e.body,n=e.documentElement,i=ce(10)&&getComputedStyle(n);return{height:me("Height",t,n,i),width:me("Width",t,n,i)}}function ve(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ye(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e};function be(e){return _e({},e,{right:e.left+e.width,bottom:e.top+e.height})}function we(e){var t={};try{if(ce(10)){t=e.getBoundingClientRect();var n=fe(e,"top"),i=fe(e,"left");t.top+=n,t.left+=i,t.bottom+=n,t.right+=i}else t=e.getBoundingClientRect()}catch(e){}var r={left:t.left,top:t.top,width:t.right-t.left,height:t.bottom-t.top}
vendor: 16,389 bytes, line 13
13,s="HTML"===e.nodeName?ge(e.ownerDocument):{},o=s.width||e.clientWidth||r.width,a=s.height||e.clientHeight||r.height,l=e.offsetWidth-o,c=e.offsetHeight-a;if(l||c){var u=ie(e);l-=pe(u,"x"),c-=pe(u,"y"),r.width-=l,r.height-=c}return be(r)}function xe(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=ce(10),s="HTML"===t.nodeName,o=we(e),a=we(t),l=se(e),c=ie(t),u=parseFloat(c.borderTopWidth,10),d=parseFloat(c.borderLeftWidth,10);i&&s&&(a.top=Math.max(a.top,0),a.left=Math.max(a.left,0));var h=be({top:o.top-a.top-u,left:o.left-a.left-d,width:o.width,height:o.height});if(h.marginTop=0,h.marginLeft=0,!r&&s){var f=parseFloat(c.marginTop,10),p=parseFloat(c.marginLeft,10);h.top-=u-f,h.bottom-=u-f,h.left-=d-p,h.right-=d-p,h.marginTop=f,h.marginLeft=p}return(r&&!i?t.contains(l):t===l&&"BODY"!==l.nodeName)&&(h=function(e,t,n){var i=2<arguments.length&&void 0!==n&&n,r=fe(t,"top"),s=fe(t,"left"),o=i?-1:1;return e.top+=r*o,e.bottom+=r*o,e.left+=s*o,e.right+=s*o,e}(h,t)),h}function Ce(e){if(!e||!e.parentElement||ce())return document.documentElement;for(var t=e.parentElement;t&&"none"===ie(t,"transform");)t=t.parentElement;return t||document.documentElement}function Ee(e,t,n,i,r){var s=4<arguments.length&&void 0!==r&&r,o={top:0,left:0},a=s?Ce(e):he(e,oe(t));if("viewport"===i)o=function(e,t){var n=1<arguments.length&&void 0!==t&&t,i=e.ownerDocument.documentElement,r=xe(e,i),s=Math.max(i.clientWidth,window.innerWidth||0),o=Math.max(i.clientHeight,window.innerHeight||0),a=n?0:fe(i),l=n?0:fe(i,"left");return be({top:a-r.top+r.marginTop,left:l-r.left+r.marginLeft,width:s,height:o})}(a,s);else{var l=void 0;"scrollParent"===i?"BODY"===(l=se(re(t))).nodeName&&(l=e.ownerDocument.documentElement):l="window"===i?e.ownerDocument.documentElement:i;var c=xe(l,a,s);if("HTML"!==l.nodeName||function e(t){var n=t.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===ie(t,"position"))return!0;var i=re(t);return!!i&&e(i)}(a))o=c;else{var u=ge(e.ownerDocument),d=u.height,h=u.width;o.top+=c.top-c.marginTop,o.bottom=d+c.top,o.left+=c.left-c.marginLeft,o.right=h+c.left}}var f="number"==typeof(n=n||0);return o.left+=f?n:n.left||0,o.top+=f?n:n.top||0,o.right-=f?n:n.right||0,o.bottom-=f?n:n.bottom||0,o}function Se(e,t,n,i,r,s){var o=5<arguments.length&&void 0!==s?s:0;if(-1===e.indexOf("auto"))return e;var a=Ee(n,i,o,r),l={top:{width:a.width,height:t.top-a.top},right:{width:a.right-t.right,height:a.height},bottom:{width:a.width,height:a.bottom-t.bottom},left:{width:t.left-a.left,height:a.height}},c=Object.keys(l).map(function(e){return _e({key:e},l[e],{area:function(e){return e.width*e.height}(l[e])})}).sort(function(e,t){return t.area-e.area}),u=c.filter(function(e){var t=e.width,i=e.height;return t>=n.clientWidth&&i>=n.clientHeight}),d=0<u.length?u[0].key:c[0].key,h=e.split("-")[1];return d+(h?"-"+h:"")}function ke(e,t,n,i){var r=3<arguments.length&&void 0!==i?i:null;return xe(n,r?Ce(t):he(t,oe(n)),r)}function Te(e){var t=e.ownerDocument.defaultView.getComputedStyle(e),n=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),i=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0);return{width:e.offsetWidth+i,height:e.offsetHeight+n}}function De(e){var t={left:"right",right:"left",bottom:"top",top:"bottom"};return e.replace(/left|right|bottom|top/g,function(e){return t[e]})}function Ie(e,t,n){n=n.split("-")[0];var i=Te(e),r={width:i.width,height:i.height},s=-1!==["right","left"].indexOf(n),o=s?"top":"left",a=s?"left":"top",l=s?"height":"width",c=s?"width":"height";return r[o]=t[o]+t[l]/2-i[l]/2,r[a]=n===a?t[a]-i[c]:t[De(a)],r}function Oe(e,t){return Array.prototype.find?e.find(t):e.filter(t)[0]}function Ae(e,t,n){return(void 0===n?e:e.slice(0,function(e,t,n){if(Array.prototype.findIndex)return e.findIndex(function(e){return e[t]===n});var i=Oe(e,function(e){return e[t]===n});return e.indexOf(i)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&ne(n)&&(t.offsets.popper=be(t.offsets.popper),t.offsets.reference=be(t.offsets.reference),t=n(t,e))}),t}function Ne(e,t){return e.some(function(e){var n=e.name;return e.enabled&&n===t})}function Me(e){for(var t=[!1,"ms","Webkit","Moz","O"],n=e.charAt(0).toUpperCase()+e.slice(1),i=0;i<t.length;i++){var r=t[i],s=r?""+r+n:e;if(void 0!==document.body.style[s])return s}return null}function Le(e){var t=e.ownerDocument;return t?t.defaultView:window}function Pe(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=function(e,t){return Le(e).removeEventListener("resize",t.updateBound),t.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t}(this.reference,this.state))}function je(e){return""!==e&&!isNaN(parseFloat(e))&&isFinite(e)}function He(e,t){Object.keys(t).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&je(t[n])&&(i="px"),e.style[n]=t[n]+i})}var Fe=J&&/Firefox/i.test(navigator.userAgent);function $e(e,t,n){var i=Oe(e,function(e){return e.name===t}),r=!!i&&e.some(function(e){return e.name===n&&e.enabled&&e.order<i.order});if(!r){var s="`"+t+"`",o="`"+n+"`";console.warn(o+" modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return r}var Re=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],qe=Re.slice(3);function ze(e,t){var n=1<arguments.length&&void 0!==t&&t,i=qe.indexOf(e),r=qe.slice(i+1).concat(qe.slice(0,i));return n?r.reverse():r}var Be={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(e){var t=e.placement,n=t.split("-")[0],i=t.split("-")[1];if(i){var r=e.offsets,s=r.reference,o=r.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:ye({},l,s[l]),end:ye({},l,s[l]+s[c]-o[c])};e.offsets.popper=_e({},o,u[i])}return e}},offset:{order:200,enabled:!0,fn:function(e,t){var n,i=t.offset,r=e.placement,s=e.offsets,o=s.popper,a=s.reference,l=r.split("-")[0];return n=je(+i)?[+i,0]:function(e,t,n,i){var r=[0,0],s=-1!==["right","left"].indexOf(i),o=e.split(/(\+|\-)/).map(function(e){return e.trim()}),a=o.indexOf(Oe(o,function(e){return-1!==e.search(/,|\s/)}));o[a]&&-1===o[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[o.slice(0,a).concat([o[a].split(l)[0]]),[o[a].split(l)[1]].concat(o.slice(a+1))]:[o];return(c=c.map(function(e,i){var r=(1===i?!s:s)?"height":"width",o=!1;return e.reduce(function(e,t){return""===e[e.length-1]&&-1!==["+","-"].indexOf(t)?(e[e.length-1]=t,o=!0,e):o?(e[e.length-1]+=t,o=!1,e):e.concat(t)},[]).map(function(e){return function(e,t,n,i){var r=e.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),s=+r[1],o=r[2];if(!s)return e;if(0!==o.indexOf("%"))return"vh"!==o&&"vw"!==o?s:("vh"===o?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*s;return be("%p"===o?n:i)[t]/100*s}(e,r,t,n)})})).forEach(function(e,t){e.forEach(function(n,i){je(n)&&(r[t]+=n*("-"===e[i-1]?-1:1))})}),r}(i,o,a,l),"left"===l?(o.top+=n[0],o.left-=n[1]):"right"===l?(o.top+=n[0],o.left+=n[1]):"top"===l?(o.left+=n[0],o.top-=n[1]):"bottom"===l&&(o.left+=n[0],o.top+=n[1]),e.popper=o,e},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(e,t){var n=t.boundariesElement||ue(e.instance.popper);e.instance.reference===n&&(n=ue(n));var i=Me("transform"),r=e.instance.popper.style,s=r.top,o=r.left,a=r[i];r.top="",r.left="",r[i]="";var l=Ee(e.instance.popper,e.instance.reference,t.padding,n,e.positionFixed);r.top=s,r.left=o,r[i]=a,t.boundaries=l;var c=t.priority,u=e.offsets.popper,d={primary:function(e){var n=u[e];return u[e]<l[e]&&!t.escapeWithReference&&(n=Math.max(u[e],l[e])),ye({},e,n)},secondary:function(e){var n="right"===e?"left":"top",i=u[n];return u[e]>l[e]&&!t.escapeWithReference&&(i=Math.min(u[n],l[e]-("right"===e?u.width:u.height))),ye({},n,i)}};return c.forEach(function(e){var t=-1!==["left","top"].indexOf(e)?"primary":"secondary";u=_e({},u,d[t](e))}),e.offsets.popper=u,e},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(e){var t=e.offsets,n=t.popper,i=t.reference,r=e.placement.split("-")[0],s=Math.floor,o=-1!==["top","bottom"].indexOf(r),a=o?"right":"bottom",l=o?"left":"top",c=o?"width":"height";return n[a]<s(i[l])&&(e.offsets.popper[l]=s(i[l])-n[c]),n[l]>s(i[a])&&(e.offsets.popper[l]=s(i[a])),e}},arrow:{order:500,enabled:!0,fn:function(e,t){var n;if(!$e(e.instance.modifiers,"arrow","keepTogether"))return e;var i=t.element;if("string"==typeof i){if(!(i=e.instance.popper.querySelector(i)))return e}else if(!e.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),e;var r=e.placement.split("-")[0],s=e.offsets,o=s.popper,a=s.reference,l=-1!==["left","right"].indexOf(r),c=l?"height":"width",u=l?"Top":"Left",d=u.toLowerCase(),h=l?"left":"top",f=l?"bottom":"right",p=Te(i)[c];a[f]-p<o[d]&&(e.offsets.popper[d]-=o[d]-(a[f]-p)),a[d]+p>o[f]&&(e.offsets.popper[d]+=a[d]+p-o[f]),e.offsets.popper=be(e.offsets.popper);var m=a[d]+a[c]/2-p/2,g=ie(e.instance.popper),v=parseFloat(g["margin"+u],10),y=parseFloat(g["border"+u+"Width"],10),_=m-e.offsets.popper[d]-v-y;return _=Math.max(Math.min(o[c]-p,_),0),e.arrowElement=i,e.offsets.arrow=(ye(n={},d,Math.round(_)),ye(n,h,""),n),e},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(e,t){if(Ne(e.instance.modifiers,"inner"))return e;if(e.flipped&&e.placement===e.originalPlacement)return e;var n=Ee(e.instance.popper,e.instance.reference,t.padding,t.boundariesElement,e.positionFixed),i=e.placement.split("-")[0],r=De(i),s=e.placement.split("-")[1]||"",o=[];switch(t.behavior){case"flip":o=[i,r];break;case"clockwise":o=ze(i);break;case"counterclockwise":o=ze(i,!0);break;default:o=t.behavior}return o.forEach(function(a,l){if(i!==a||o.length===l+1)return e;i=e.placement.split("-")[0],r=De(i);var c=e.offsets.popper,u=e.offsets.reference,d=Math.floor,h="left"===i&&d(c.right)>d(u.left)||"right"===i&&d(c.left)<d(u.right)||"top"===i&&d(c.bottom)>d(u.top)||"bottom"===i&&d(c.top)<d(u.bottom),f=d(c.left)<d(n.left),p=d(c.right)>d(n.right),m=d(c.top)<d(n.top),g=d(c.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),_=!!t.flipVariations&&(y&&"start"===s&&f||y&&"end"===s&&p||!y&&"start"===s&&m||!y&&"end"===s&&g),b=!!t.flipVariationsByContent&&(y&&"start"===s&&p||y&&"end"===s&&f||!y&&"start"===s&&g||!y&&"end"===s&&m),w=_||b;(h||v||w)&&(e.flipped=!0,(h||v)&&(i=o[l+1]),w&&(s=function(e){return"end"===e?"start":"start"===e?"end":e}(s)),e.placement=i+(s?"-"+s:""),e.offsets.popper=_e({},e.offsets.popper,Ie(e.instance.popper,e.offsets.reference,e.placement)),e=Ae(e.instance.modifiers,e,"flip"))}),e},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(e){var t=e.placement,n=t.split("-")[0],i=e.offsets,r=i.popper,s=i.reference,o=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return r[o?"left":"top"]=s[n]-(a?r[o?"width":"height"]:0),e.placement=De(t),e.offsets.popper=be(r),e}},hide:{order:800,enabled:!0,fn:function(e){if(!$e(e.instance.modifiers,"hide","preventOverflow"))return e;var t=e.offsets.reference,n=Oe(e.instance.modifiers,function(e){return"preventOverflow"===e.name}).boundaries;if(t.bottom<n.top||t.left>n.right||t.top>n.bottom||t.right<n.left){if(!0===e.hide)return e;e.hide=!0,e.attributes["x-out-of-boundaries"]=""}else{if(!1===e.hide)return e;e.hide=!1,e.attributes["x-out-of-boundaries"]=!1}return e}},computeStyle:{order:850,enabled:!0,fn:function(e,t){var n=t.x,i=t.y,r=e.offsets.popper,s=Oe(e.instance.modifiers,function(e){return"applyStyle"===e.name}).gpuAcceleration;void 0!==s&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var o,a,l=void 0!==s?s:t.gpuAcceleration,c=ue(e.instance.popper),u=we(c),d={position:r.position},h=function(e,t){function n(e){return e}var i=e.offsets,r=i.popper,s=i.reference,o=Math.round,a=Math.floor,l=o(s.width),c=o(r.width),u=-1!==["left","right"].indexOf(e.placement),d=-1!==e.placement.indexOf("-"),h=t?u||d||l%2==c%2?o:a:n,f=t?o:n;return{left:h(l%2==1&&c%2==1&&!d&&t?r.left-1:r.left),top:f(r.top),bottom:f(r.bottom),right:h(r.right)}}(e,window.devicePixelRatio<2||!Fe),f="bottom"===n?"top":"bottom",p="right"===i?"left":"right",m=Me("transform");if(a="bottom"==f?"HTML"===c.nodeName?-c.clientHeight+h.bottom:-u.height+h.bottom:h.top,o="right"==p?"HTML"===c.nodeName?-c.clientWidth+h.right:-u.width+h.right:h.left,l&&m)d[m]="translate3d("+o+"px, "+a+"px, 0)",d[f]=0,d[p]=0,d.willChange="transform";else{var g="bottom"==f?-1:1,v="right"==p?-1:1;d[f]=a*g,d[p]=o*v,d.willChange=f+", "+p}var y={"x-placement":e.placement};return e.attributes=_e({},y,e.attributes),e.styles=_e({},d,e.styles),e.arrowStyles=_e({},e.offsets.arrow,e.arrowStyles),e},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(e){return He(e.instance.popper,e.styles),function(e,t){Object.keys(t).forEach(function(n){!1!==t[n]?e.setAttribute(n,t[n]):e.removeAttribute(n)})}(e.instance.popper,e.attributes),e.arrowElement&&Object.keys(e.arrowStyles).length&&He(e.arrowElement,e.arrowStyles),e},onLoad:function(e,t,n,i,r){var s=ke(r,t,e,n.positionFixed),o=Se(n.placement,s,t,e,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return t.setAttribute("x-placement",o),He(t,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},We=(function(e,t,n){t&&ve(e.prototype,t),n&&ve(e,n)}(Ue,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var e={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};e.offsets.reference=ke(this.state,this.popper,this.reference,this.options.positionFixed),e.placement=Se(this.options.placement,e.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),e.originalPlacement=e.placement,e.positionFixed=this.options.positionFixed,e.offsets.popper=Ie(this.popper,e.offsets.reference,e.placement),e.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",e=Ae(this.modifiers,e),this.state.isCreated?this.options.onUpdate(e):(this.state.isCreated=!0,this.options.onCreate(e))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,Ne(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[Me("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}.call(this)}},{key:"enableEventListeners",value:function(){return function(){this.state.eventsEnabled||(this.state=function(e,t,n,i){n.updateBound=i,Le(e).addEventListener("resize",n.updateBound,{passive:!0});var r=se(e);return function e(t,n,i,r){var s="BODY"===t.nodeName,o=s?t.ownerDocument.defaultView:t;o.addEventListener(n,i,{passive:!0}),s||e(se(o.parentNode),n,i,r),r.push(o)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return Pe.call(this)}}]),Ue);function Ue(e,t){var n=this,i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,Ue),this.scheduleUpdate=function(){return requestAnimationFrame(n.update)},this.update=te(this.update.bind(this)),this.options=_e({},Ue.Defaults,i),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(_e({}
13,Ue.Defaults.modifiers,i.modifiers)).forEach(function(e){n.options.modifiers[e]=_e({},Ue.Defaults.modifiers[e]||{},i.modifiers?i.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(e){return _e({name:e},n.options.modifiers[e])}).sort(function(e,t){return e.order-t.order}),this.modifiers.forEach(function(e){e.enabled&&ne(e.onLoad)&&e.onLoad(n.reference,n.popper,n.options,e,n.state)}),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}We.Utils=("undefined"!=typeof window?window:global).PopperUtils,We.placements=Re,We.Defaults=Be;var Ye="dropdown",Ve="bs.dropdown",Qe="."+Ve,Ge=".data-api",Xe=t.fn[Ye],Ke=new RegExp("38|40|27"),Ze={HIDE:"hide"+Qe,HIDDEN:"hidden"+Qe,SHOW:"show"+Qe,SHOWN:"shown"+Qe,CLICK:"click"+Qe,CLICK_DATA_API:"click"+Qe+Ge,KEYDOWN_DATA_API:"keydown"+Qe+Ge,KEYUP_DATA_API:"keyup"+Qe+Ge},Je="disabled",et="show",tt="dropdown-menu-right",nt='[data-toggle="dropdown"]',it=".dropdown-menu",rt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},st={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},ot=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=e.prototype;return n.toggle=function(){if(!this._element.disabled&&!t(this._element).hasClass(Je)){var n=t(this._menu).hasClass(et);e._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||t(this._element).hasClass(Je)||t(this._menu).hasClass(et))){var i={relatedTarget:this._element},r=t.Event(Ze.SHOW,i),s=e._getParentFromElement(this._element);if(t(s).trigger(r),!r.isDefaultPrevented()){if(!this._inNavbar&&n){if(void 0===We)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var o=this._element;"parent"===this._config.reference?o=s:a.isElement(this._config.reference)&&(o=this._config.reference,void 0!==this._config.reference.jquery&&(o=this._config.reference[0])),"scrollParent"!==this._config.boundary&&t(s).addClass("position-static"),this._popper=new We(o,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===t(s).closest(".navbar-nav").length&&t(document.body).children().on("mouseover",null,t.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),t(this._menu).toggleClass(et),t(s).toggleClass(et).trigger(t.Event(Ze.SHOWN,i))}}},n.hide=function(){if(!this._element.disabled&&!t(this._element).hasClass(Je)&&t(this._menu).hasClass(et)){var n={relatedTarget:this._element},i=t.Event(Ze.HIDE,n),r=e._getParentFromElement(this._element);t(r).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),t(this._menu).toggleClass(et),t(r).toggleClass(et).trigger(t.Event(Ze.HIDDEN,n)))}},n.dispose=function(){t.removeData(this._element,Ve),t(this._element).off(Qe),this._element=null,(this._menu=null)!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var e=this;t(this._element).on(Ze.CLICK,function(t){t.preventDefault(),t.stopPropagation(),e.toggle()})},n._getConfig=function(e){return e=s({},this.constructor.Default,{},t(this._element).data(),{},e),a.typeCheckConfig(Ye,e,this.constructor.DefaultType),e},n._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(it))}return this._menu},n._getPlacement=function(){var e=t(this._element.parentNode),n="bottom-start";return e.hasClass("dropup")?(n="top-start",t(this._menu).hasClass(tt)&&(n="top-end")):e.hasClass("dropright")?n="right-start":e.hasClass("dropleft")?n="left-start":t(this._menu).hasClass(tt)&&(n="bottom-end"),n},n._detectNavbar=function(){return 0<t(this._element).closest(".navbar").length},n._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},n._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip}
13,preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),s({},e,{},this._config.popperConfig)},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(Ve);if(i||(i=new e(this,"object"==typeof n?n:null),t(this).data(Ve,i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},e._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll(nt)),r=0,s=i.length;r<s;r++){var o=e._getParentFromElement(i[r]),a=t(i[r]).data(Ve),l={relatedTarget:i[r]};if(n&&"click"===n.type&&(l.clickEvent=n),a){var c=a._menu;if(t(o).hasClass(et)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"keyup"===n.type&&9===n.which)&&t.contains(o,n.target))){var u=t.Event(Ze.HIDE,l);t(o).trigger(u),u.isDefaultPrevented()||("ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),i[r].setAttribute("aria-expanded","false"),a._popper&&a._popper.destroy(),t(c).removeClass(et),t(o).removeClass(et).trigger(t.Event(Ze.HIDDEN,l)))}}}},e._getParentFromElement=function(e){var t,n=a.getSelectorFromElement(e);return n&&(t=document.querySelector(n)),t||e.parentNode},e._dataApiKeydownHandler=function(n){if((/input|textarea/i.test(n.target.tagName)?!(32===n.which||27!==n.which&&(40!==n.which&&38!==n.which||t(n.target).closest(it).length)):Ke.test(n.which))&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(Je))){var i=e._getParentFromElement(this),r=t(i).hasClass(et);if(r||27!==n.which)if(r&&(!r||27!==n.which&&32!==n.which)){var s=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter(function(e){return t(e).is(":visible")});if(0!==s.length){var o=s.indexOf(n.target);38===n.which&&0<o&&o--,40===n.which&&o<s.length-1&&o++,o<0&&(o=0),s[o].focus()}}else{if(27===n.which){var a=i.querySelector(nt);t(a).trigger("focus")}t(this).trigger("click")}}},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return rt}},{key:"DefaultType",get:function(){return st}}]),e}();t(document).on(Ze.KEYDOWN_DATA_API,nt,ot._dataApiKeydownHandler).on(Ze.KEYDOWN_DATA_API,it,ot._dataApiKeydownHandler).on(Ze.CLICK_DATA_API+" "+Ze.KEYUP_DATA_API,ot._clearMenus).on(Ze.CLICK_DATA_API,nt,function(e){e.preventDefault(),e.stopPropagation(),ot._jQueryInterface.call(t(this),"toggle")}).on(Ze.CLICK_DATA_API,".dropdown form",function(e){e.stopPropagation()}),t.fn[Ye]=ot._jQueryInterface,t.fn[Ye].Constructor=ot,t.fn[Ye].noConflict=function(){return t.fn[Ye]=Xe,ot._jQueryInterface};var at="modal",lt="bs.modal",ct="."+lt,ut=t.fn[at],dt={backdrop:!0,keyboard:!0,focus:!0,show:!0},ht={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},ft={HIDE:"hide"+ct,HIDE_PREVENTED:"hidePrevented"+ct,HIDDEN:"hidden"+ct,SHOW:"show"+ct,SHOWN:"shown"+ct,FOCUSIN:"focusin"+ct,RESIZE:"resize"+ct,CLICK_DISMISS:"click.dismiss"+ct,KEYDOWN_DISMISS:"keydown.dismiss"+ct,MOUSEUP_DISMISS:"mouseup.dismiss"+ct,MOUSEDOWN_DISMISS:"mousedown.dismiss"+ct,CLICK_DATA_API:"click"+ct+".data-api"},pt="modal-open",mt="fade",gt="show",vt="modal-static",yt=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",_t=".sticky-top",bt=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var n=e.prototype;return n.toggle=function(e){return this._isShown?this.hide():this.show(e)},n.show=function(e){var n=this;if(!this._isShown&&!this._isTransitioning){t(this._element).hasClass(mt)&&(this._isTransitioning=!0);var i=t.Event(ft.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(ft.CLICK_DISMISS,'[data-dismiss="modal"]',function(e){return n.hide(e)}),t(this._dialog).on(ft.MOUSEDOWN_DISMISS,function(){t(n._element).one(ft.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))}},n.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var i=t.Event(ft.HIDE);if(t(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var r=t(this._element).hasClass(mt);if(r&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),t(document).off(ft.FOCUSIN),t(this._element).removeClass(gt),t(this._element).off(ft.CLICK_DISMISS),t(this._dialog).off(ft.MOUSEDOWN_DISMISS),r){var s=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,function(e){return n._hideModal(e)}).emulateTransitionEnd(s)}else this._hideModal()}}},n.dispose=function(){[window,this._element,this._dialog].forEach(function(e){return t(e).off(ct)}),t(document).off(ft.FOCUSIN),t.removeData(this._element,lt),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},n.handleUpdate=function(){this._adjustDialog()},n._getConfig=function(e){return e=s({},dt,{},e),a.typeCheckConfig(at,e,ht),e},n._triggerBackdropTransition=function(){var e=this;if("static"===this._config.backdrop){var n=t.Event(ft.HIDE_PREVENTED);if(t(this._element).trigger(n),n.defaultPrevented)return;this._element.classList.add(vt);var i=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,function(){e._element.classList.remove(vt)}).emulateTransitionEnd(i),this._element.focus()}else this.hide()},n._showElement=function(e){var n=this,i=t(this._element).hasClass(mt),r=this._dialog?this._dialog.querySelector(".modal-body"):null;function s(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)}this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),t(this._dialog).hasClass("modal-dialog-scrollable")&&r?r.scrollTop=0:this._element.scrollTop=0,i&&a.reflow(this._element),t(this._element).addClass(gt),this._config.focus&&this._enforceFocus();var o=t.Event(ft.SHOWN,{relatedTarget:e});if(i){var l=a.getTransitionDurationFromElement(this._dialog);t(this._dialog).one(a.TRANSITION_END,s).emulateTransitionEnd(l)}else s()},n._enforceFocus=function(){var e=this;t(document).off(ft.FOCUSIN).on(ft.FOCUSIN,function(n){document!==n.target&&e._element!==n.target&&0===t(e._element).has(n.target).length&&e._element.focus()})},n._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(ft.KEYDOWN_DISMISS,function(t){27===t.which&&e._triggerBackdropTransition()}):this._isShown||t(this._element).off(ft.KEYDOWN_DISMISS)},n._setResizeEvent=function(){var e=this;this._isShown?t(window).on(ft.RESIZE,function(t){return e.handleUpdate(t)}):t(window).off(ft.RESIZE)},n._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(pt),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(ft.HIDDEN)})},n._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},n._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(mt)?mt:"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),t(this._backdrop).appendTo(document.body),t(this._element).on(ft.CLICK_DISMISS,function(e){n._ignoreBackdropClick?n._ignoreBackdropClick=!1:e.target===e.currentTarget&&n._triggerBackdropTransition()}),i&&a.reflow(this._backdrop),t(this._backdrop).addClass(gt),!e)return;if(!i)return void e();var r=a.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(a.TRANSITION_END,e).emulateTransitionEnd(r)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(gt);var s=function(){n._removeBackdrop(),e&&e()};if(t(this._element).hasClass(mt)){var o=a.getTransitionDurationFromElement(this._backdrop);t(this._backdrop).one(a.TRANSITION_END,s).emulateTransitionEnd(o)}else s()}else e&&e()},n._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=e.left+e.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},n._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var n=[].slice.call(document.querySelectorAll(yt)),i=[].slice.call(document.querySelectorAll(_t));t(n).each(function(n,i){var r=i.style.paddingRight,s=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(s)+e._scrollbarWidth+"px")}),t(i).each(function(n,i){var r=i.style.marginRight,s=t(i).css("margin-right");t(i).data("margin-right",r).css("margin-right",parseFloat(s)-e._scrollbarWidth+"px")});var r=document.body.style.paddingRight,s=t(document.body).css("padding-right");t(document.body).data("padding-right",r).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}t(document.body).addClass(pt)},n._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(yt));t(e).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""});var n=[].slice.call(document.querySelectorAll(""+_t));t(n).each(function(e,n){var i=t(n).data("margin-right");void 0!==i&&t(n).css("margin-right",i).removeData("margin-right")});var i=t(document.body).data("padding-right");t(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},n._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(n,i){return this.each(function(){var r=t(this).data(lt),o=s({},dt,{},t(this).data(),{},"object"==typeof n&&n?n:{});if(r||(r=new e(this,o),t(this).data(lt,r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method n
13amed "'+n+'"');r[n](i)}else o.show&&r.show(i)})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return dt}}]),e}();t(document).on(ft.CLICK_DATA_API,'[data-toggle="modal"]',function(e){var n,i=this,r=a.getSelectorFromElement(this);r&&(n=document.querySelector(r));var o=t(n).data(lt)?"toggle":s({},t(n).data(),{},t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var l=t(n).one(ft.SHOW,function(e){e.isDefaultPrevented()||l.one(ft.HIDDEN,function(){t(i).is(":visible")&&i.focus()})});bt._jQueryInterface.call(t(n),o,this)}),t.fn[at]=bt._jQueryInterface,t.fn[at].Constructor=bt,t.fn[at].noConflict=function(){return t.fn[at]=ut,bt._jQueryInterface};var wt=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],xt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ct=/^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 Et(e,t,n){if(0===e.length)return e;if(n&&"function"==typeof n)return n(e);for(var i=(new window.DOMParser).parseFromString(e,"text/html"),r=Object.keys(t),s=[].slice.call(i.body.querySelectorAll("*")),o=function(e){var n=s[e],i=n.nodeName.toLowerCase();if(-1===r.indexOf(n.nodeName.toLowerCase()))return n.parentNode.removeChild(n),"continue";var o=[].slice.call(n.attributes),a=[].concat(t["*"]||[],t[i]||[]);o.forEach(function(e){!function(e,t){var n=e.nodeName.toLowerCase();if(-1!==t.indexOf(n))return-1===wt.indexOf(n)||Boolean(e.nodeValue.match(xt)||e.nodeValue.match(Ct));for(var i=t.filter(function(e){return e instanceof RegExp}),r=0,s=i.length;r<s;r++)if(n.match(i[r]))return!0;return!1}(e,a)&&n.removeAttribute(e.nodeName)})},a=0,l=s.length;a<l;a++)o(a);return i.body.innerHTML}var St="tooltip",kt="bs.tooltip",Tt="."+kt,Dt=t.fn[St],It="bs-tooltip",Ot=new RegExp("(^|\\s)"+It+"\\S+","g"),At=["sanitize","whiteList","sanitizeFn"],Nt={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},Mt={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},Lt={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:{"*":["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:[]},popperConfig:null},Pt="show",jt="out",Ht={HIDE:"hide"+Tt,HIDDEN:"hidden"+Tt,SHOW:"show"+Tt,SHOWN:"shown"+Tt,INSERTED:"inserted"+Tt,CLICK:"click"+Tt,FOCUSIN:"focusin"+Tt,FOCUSOUT:"focusout"+Tt,MOUSEENTER:"mouseenter"+Tt,MOUSELEAVE:"mouseleave"+Tt},Ft="fade",$t="show",Rt="hover",qt="focus",zt=function(){function e(e,t){if(void 0===We)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var n=e.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(e){if(this._isEnabled)if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass($t))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var e=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var n=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){t(this.element).trigger(n);var i=a.findShadowRoot(this.element),r=t.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!r)return;var s=this.getTipElement(),o=a.getUID(this.constructor.NAME);s.setAttribute("id",o),this.element.setAttribute("aria-describedby",o),this.setContent(),this.config.animation&&t(s).addClass(Ft);var l="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,c=this._getAttachment(l);this.addAttachmentClass(c);var u=this._getContainer();t(s).data(this.constructor.DATA_KEY,this),t.contains(this.element.ownerDocument.documentElement,this.tip)||t(s).appendTo(u),t(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new We(this.element,s,this._getPopperConfig(c)),t(s).addClass($t),"ontouchstart"in document.documentElement&&t(document.body).children().on("mouseover",null,t.noop);var d=function(){e.config.animation&&e._fixTransition();var n=e._hoverState;e._hoverState=null,t(e.element).trigger(e.constructor.Event.SHOWN),n===jt&&e._leave(null,e)};if(t(this.tip).hasClass(Ft)){var h=a.getTransitionDurationFromElement(this.tip);t(this.tip).one(a.TRANSITION_END,d).emulateTransitionEnd(h)}else d()}},n.hide=function(e){function n(){i._hoverState!==Pt&&r.parentNode&&r.parentNode.removeChild(r),i._cleanTipClass(),i.element.removeAttribute("aria-describedby"),t(i.element).trigger(i.constructor.Event.HIDDEN),null!==i._popper&&i._popper.destroy(),e&&e()}var i=this,r=this.getTipElement(),s=t.Event(this.constructor.Event.HIDE);
13if(t(this.element).trigger(s),!s.isDefaultPrevented()){if(t(r).removeClass($t),"ontouchstart"in document.documentElement&&t(document.body).children().off("mouseover",null,t.noop),this._activeTrigger.click=!1,this._activeTrigger[qt]=!1,this._activeTrigger[Rt]=!1,t(this.tip).hasClass(Ft)){var o=a.getTransitionDurationFromElement(r);t(r).one(a.TRANSITION_END,n).emulateTransitionEnd(o)}else n();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(e){t(this.getTipElement()).addClass(It+"-"+e)},n.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},n.setContent=function(){var e=this.getTipElement();this.setElementContent(t(e.querySelectorAll(".tooltip-inner")),this.getTitle()),t(e).removeClass(Ft+" "+$t)},n.setElementContent=function(e,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Et(n,this.config.whiteList,this.config.sanitizeFn)),e.html(n)):e.text(n):this.config.html?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text())},n.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||("function"==typeof this.config.title?this.config.title.call(this.element):this.config.title)},n._getPopperConfig=function(e){var t=this;return s({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},{},this.config.popperConfig)},n._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=s({},t.offsets,{},e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},n._getContainer=function(){return!1===this.config.container?document.body:a.isElement(this.config.container)?t(this.config.container):t(document).find(this.config.container)},n._getAttachment=function(e){return Mt[e.toUpperCase()]},n._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if("manual"!==n){var i=n===Rt?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,r=n===Rt?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(r,e.config.selector,function(t){return e._leave(t)})}}),this._hideModalHandler=function(){e.element&&e.hide()},t(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");!this.element.getAttribute("title")&&"string"==e||(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?qt:Rt]=!0),t(n.getTipElement()).hasClass($t)||n._hoverState===Pt?n._hoverState=Pt:(clearTimeout(n._timeout),n._hoverState=Pt,n.config.delay&&n.config.delay.show?n._timeout=setTimeout(function(){n._hoverState===Pt&&n.show()},n.config.delay.show):n.show())},n._leave=function(e,n){var i=this.constructor.DATA_KEY;(n=n||t(e.currentTarget).data(i))||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?qt:Rt]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState=jt,n.config.delay&&n.config.delay.hide?n._timeout=setTimeout(function(){n._hoverState===jt&&n.hide()},n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},n._getConfig=function(e){var n=t(this.element).data();
13return Object.keys(n).forEach(function(e){-1!==At.indexOf(e)&&delete n[e]}),"number"==typeof(e=s({},this.constructor.Default,{},n,{},"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),a.typeCheckConfig(St,e,this.constructor.DefaultType),e.sanitize&&(e.template=Et(e.template,e.whiteList,e.sanitizeFn)),e},n._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},n._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Ot);null!==n&&n.length&&e.removeClass(n.join(""))},n._handlePopperPlacementChange=function(e){var t=e.instance;this.tip=t.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},n._fixTransition=function(){var e=this.getTipElement(),n=this.config.animation;null===e.getAttribute("x-placement")&&(t(e).removeClass(Ft),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(kt),r="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new e(this,r),t(this).data(kt,i)),"string"==typeof n)){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Lt}},{key:"NAME",get:function(){return St}},{key:"DATA_KEY",get:function(){return kt}},{key:"Event",get:function(){return Ht}},{key:"EVENT_KEY",get:function(){return Tt}},{key:"DefaultType",get:function(){return Nt}}]),e}();t.fn[St]=zt._jQueryInterface,t.fn[St].Constructor=zt,t.fn[St].noConflict=function(){return t.fn[St]=Dt,zt._jQueryInterface};var Bt="popover",Wt="bs.popover",Ut="."+Wt,Yt=t.fn[Bt],Vt="bs-popover",Qt=new RegExp("(^|\\s)"+Vt+"\\S+","g"),Gt=s({},zt.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),Xt=s({},zt.DefaultType,{content:"(string|element|function)"}),Kt={HIDE:"hide"+Ut,HIDDEN:"hidden"+Ut,SHOW:"show"+Ut,SHOWN:"shown"+Ut,INSERTED:"inserted"+Ut,CLICK:"click"+Ut,FOCUSIN:"focusin"+Ut,FOCUSOUT:"focusout"+Ut,MOUSEENTER:"mouseenter"+Ut,MOUSELEAVE:"mouseleave"+Ut},Zt=function(e){function n(){return e.apply(this,arguments)||this}!function(e,t){e.prototype=Object.create(t.prototype),(e.prototype.constructor=e).__proto__=t}(n,e);var r=n.prototype;return r.isWithContent=function(){return this.getTitle()||this._getContent()},r.addAttachmentClass=function(e){t(this.getTipElement()).addClass(Vt+"-"+e)},r.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0],this.tip},r.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(e.find(".popover-body"),n),e.removeClass("fade show")},r._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},r._cleanTipClass=function(){var e=t(this.getTipElement()),n=e.attr("class").match(Qt);null!==n&&0<n.length&&e.removeClass(n.join(""))},n._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(Wt),r="object"==typeof e?e:null;if((i||!/dispose|hide/.test(e))&&(i||(i=new n(this,r),t(this).data(Wt,i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}})},i(n,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return Gt}},{key:"NAME",get:function(){return Bt}},{key:"DATA_KEY",get:function(){return Wt}},{key:"Event",get:function(){return Kt}},{key:"EVENT_KEY",get:function(){return Ut}},{key:"DefaultType",get:function(){return Xt}}]),n}(zt);t.fn[Bt]=Zt._jQueryInterface,t.fn[Bt].Constructor=Zt,t.fn[Bt].noConflict=function(){return t.fn[Bt]=Yt,Zt._jQueryInterface};var Jt="scrollspy",en="bs.scrollspy",tn="."+en,nn=t.fn[Jt],rn={offset:10,method:"auto",target:""},sn={offset:"number",method:"string",target:"(string|element)"},on={ACTIVATE:"activate"+tn,SCROLL:"scroll"+tn,LOAD_DATA_API:"load"+tn+".data-api"},an="active",ln=".nav, .list-group",cn=".nav-link",un=".list-group-item",dn="position",hn=function(){function e(e,n){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(n),this._selector=this._config.target+" "+cn+","+this._config.target+" "+un+","+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(on.SCROLL,function(e){return i._process(e)}),this.refresh(),this._process()}var n=e.prototype;return n.refresh=function(){var e=this,n=this._scrollElement===this._scrollElement.window?"offset":dn,i="auto"===this._config.method?n:this._config.method,r=i===dn?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map(function(e){var n,s=a.getSelectorFromElement(e);
13if(s&&(n=document.querySelector(s)),n){var o=n.getBoundingClientRect();if(o.width||o.height)return[t(n)[i]().top+r,s]}return null}).filter(function(e){return e}).sort(function(e,t){return e[0]-t[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.dispose=function(){t.removeData(this._element,en),t(this._scrollElement).off(tn),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(e){if("string"!=typeof(e=s({},rn,{},"object"==typeof e&&e?e:{})).target){var n=t(e.target).attr("id");n||(n=a.getUID(Jt),t(e.target).attr("id",n)),e.target="#"+n}return a.typeCheckConfig(Jt,e,sn),e},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),n=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),n<=e){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&e<this._offsets[0]&&0<this._offsets[0])return this._activeTarget=null,void this._clear();for(var r=this._offsets.length;r--;)this._activeTarget!==this._targets[r]&&e>=this._offsets[r]&&(void 0===this._offsets[r+1]||e<this._offsets[r+1])&&this._activate(this._targets[r])}},n._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",").map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'}),i=t([].slice.call(document.querySelectorAll(n.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass(an),i.addClass(an)):(i.addClass(an),i.parents(ln).prev(cn+", "+un).addClass(an),i.parents(ln).prev(".nav-item").children(cn).addClass(an)),t(this._scrollElement).trigger(on.ACTIVATE,{relatedTarget:e})},n._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter(function(e){return e.classList.contains(an)}).forEach(function(e){return e.classList.remove(an)})},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data(en);if(i||(i=new e(this,"object"==typeof n&&n),t(this).data(en,i)),"string"==typeof n){if(void 0===i[n])throw new TypeError('No method named "'+n+'"');i[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"Default",get:function(){return rn}}]),e}();t(window).on(on.LOAD_DATA_API,function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),n=e.length;n--;){var i=t(e[n]);hn._jQueryInterface.call(i,i.data())}}),t.fn[Jt]=hn._jQueryInterface,t.fn[Jt].Constructor=hn,t.fn[Jt].noConflict=function(){return t.fn[Jt]=nn,hn._jQueryInterface};var fn="bs.tab",pn="."+fn,mn=t.fn.tab,gn={HIDE:"hide"+pn,HIDDEN:"hidden"+pn,SHOW:"show"+pn,SHOWN:"shown"+pn,CLICK_DATA_API:"click"+pn+".data-api"},vn="active",yn="fade",_n="show",bn=".active",wn="> li > .active",xn=function(){function e(e){this._element=e}var n=e.prototype;return n.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(vn)||t(this._element).hasClass("disabled"))){var n,i,r=t(this._element).closest(".nav, .list-group")[0],s=a.getSelectorFromElement(this._element);if(r){var o="UL"===r.nodeName||"OL"===r.nodeName?wn:bn;i=(i=t.makeArray(t(r).find(o)))[i.length-1]}var l=t.Event(gn.HIDE,{relatedTarget:this._element}),c=t.Event(gn.SHOW,{relatedTarget:i});if(i&&t(i).trigger(l),t(this._element).trigger(c),!c.isDefaultPrevented()&&!l.isDefaultPrevented()){s&&(n=document.querySelector(s)),this._activate(this._element,r);var u=function(){var n=t.Event(gn.HIDDEN,{relatedTarget:e._element}),r=t.Event(gn.SHOWN,{relatedTarget:i});t(i).trigger(n),t(e._element).trigger(r)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){t.removeData(this._element,fn),this._element=null},n._activate=function(e,n,i){function r(){return s._transitionComplete(e,o,i)}var s=this,o=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?t(n).children(bn):t(n).find(wn))[0],l=i&&o&&t(o).hasClass(yn);if(o&&l){var c=a.getTransitionDurationFromElement(o);t(o).removeClass(_n).one(a.TRANSITION_END,r).emulateTransitionEnd(c)}else r()},n._transitionComplete=function(e,n,i){if(n){t(n).removeClass(vn);var r=t(n.parentNode).find("> .dropdown-menu .active")[0];r&&t(r).removeClass(vn),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(t(e).addClass(vn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),a.reflow(e),e.classList.contains(yn)&&e.classList.add(_n),e.parentNode&&t(e.parentNode).hasClass("dropdown-menu")){var s=t(e).closest(".dropdown")[0];if(s){var o=[].slice.call(s.querySelectorAll(".dropdown-toggle"));t(o).addClass(vn)}e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data(fn);if(r||(r=new e(this),i.data(fn,r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method n
13amed "'+n+'"');r[n]()}})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}}]),e}();t(document).on(gn.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(e){e.preventDefault(),xn._jQueryInterface.call(t(this),"show")}),t.fn.tab=xn._jQueryInterface,t.fn.tab.Constructor=xn,t.fn.tab.noConflict=function(){return t.fn.tab=mn,xn._jQueryInterface};var Cn="toast",En="bs.toast",Sn="."+En,kn=t.fn[Cn],Tn={CLICK_DISMISS:"click.dismiss"+Sn,HIDE:"hide"+Sn,HIDDEN:"hidden"+Sn,SHOW:"show"+Sn,SHOWN:"shown"+Sn},Dn="hide",In="show",On="showing",An={animation:"boolean",autohide:"boolean",delay:"number"},Nn={animation:!0,autohide:!0,delay:500},Mn=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var n=e.prototype;return n.show=function(){var e=this,n=t.Event(Tn.SHOW);if(t(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){e._element.classList.remove(On),e._element.classList.add(In),t(e._element).trigger(Tn.SHOWN),e._config.autohide&&(e._timeout=setTimeout(function(){e.hide()},e._config.delay))};if(this._element.classList.remove(Dn),a.reflow(this._element),this._element.classList.add(On),this._config.animation){var r=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,i).emulateTransitionEnd(r)}else i()}},n.hide=function(){if(this._element.classList.contains(In)){var e=t.Event(Tn.HIDE);t(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains(In)&&this._element.classList.remove(In),t(this._element).off(Tn.CLICK_DISMISS),t.removeData(this._element,En),this._element=null,this._config=null},n._getConfig=function(e){return e=s({},Nn,{},t(this._element).data(),{},"object"==typeof e&&e?e:{}),a.typeCheckConfig(Cn,e,this.constructor.DefaultType),e},n._setListeners=function(){var e=this;t(this._element).on(Tn.CLICK_DISMISS,'[data-dismiss="toast"]',function(){return e.hide()})},n._close=function(){function e(){n._element.classList.add(Dn),t(n._element).trigger(Tn.HIDDEN)}var n=this;if(this._element.classList.remove(In),this._config.animation){var i=a.getTransitionDurationFromElement(this._element);t(this._element).one(a.TRANSITION_END,e).emulateTransitionEnd(i)}else e()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),r=i.data(En);if(r||(r=new e(this,"object"==typeof n&&n),i.data(En,r)),"string"==typeof n){if(void 0===r[n])throw new TypeError('No method named "'+n+'"');r[n](this)}})},i(e,null,[{key:"VERSION",get:function(){return"4.4.1"}},{key:"DefaultType",get:function(){return An}},{key:"Default",get:function(){return Nn}}]),e}();t.fn[Cn]=Mn._jQueryInterface,t.fn[Cn].Constructor=Mn,t.fn[Cn].noConflict=function(){return t.fn[Cn]=kn,Mn._jQueryInterface},e.Alert=f,e.Button=E,e.Carousel=F,e.Collapse=Z,e.Dropdown=ot,e.Modal=bt,e.Popover=Zt,e.Scrollspy=hn,e.Tab=xn,e.Toast=Mn,e.Tooltip=zt,e.Util=a,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.moment=t()}(this,function(){"use strict";function e(){return Pe.apply(null,arguments)}function t(e){return"[object Array]"===Object.prototype.toString.call(e)}function n(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e,t){for(var n in t)i(t,n)&&(e[n]=t[n]);return i(t,"toString")&&(e.toString=t.toString),i(t,"valueOf")&&(e.valueOf=t.valueOf),e}function s(e,t,n,i){return te(e,t,n,i,!0).utc()}function o(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}),e._pf}function a(e){if(null==e._isValid){var t=o(e);e._isValid=!(isNaN(e._d.getTime())||!(t.overflow<0)||t.empty||t.invalidMonth||t.invalidWeekday||t.nullInput||t.invalidFormat||t.userInvalidated),e._strict&&(e._isValid=e._isValid&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)}return e._isValid}function l(e){var t=s(NaN);return null!=e?r(o(t),e):o(t).userInvalidated=!0,t}function c(e,t){var n,i,r;if(void 0!==t._isAMomentObject&&(e._isAMomentObject=t._isAMomentObject),void 0!==t._i&&(e._i=t._i),void 0!==t._f&&(e._f=t._f),void 0!==t._l&&(e._l=t._l),void 0!==t._strict&&(e._strict=t._strict),void 0!==t._tzm&&(e._tzm=t._tzm),void 0!==t._isUTC&&(e._isUTC=t._isUTC),void 0!==t._offset&&(e._offset=t._offset),void 0!==t._pf&&(e._pf=o(t)),void 0!==t._locale&&(e._locale=t._locale),He.length>0)for(n in He)void 0!==(r=t[i=He[n]])&&(e[i]=r);return e}function u(t){c(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),!1===Fe&&(Fe=!0,e.updateOffset(this),Fe=!1)}function d(e){return e instanceof u||null!=e&&null!=e._isAMomentObject}function h(e){return 0>e?Math.ceil(e):Math.floor(e)}function f(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=h(t)),n}function p(e,t,n){var i,r=Math.min(e.length,t.length),s=Math.abs(e.length-t.length),o=0;for(i=0;r>i;i++)(n&&e[i]!==t[i]||!n&&f(e[i])!==f(t[i]))&&o++;return o+s}function m(){}function g(e){return e?e.toLowerCase().replace("_","-"):e}function v(e){var t=null;if(!$e[e]&&"undefined"!=typeof module&&module&&module.exports)try{t=je._abbr,require("./locale/"+e),y(t)}catch(e){}return $e[e]}function y(e,t){var n;return e&&((n=void 0===t?b(e):_(e,t))&&(je=n)),je._abbr}function _(e,t){return null!==t?(t.abbr=e,$e[e]=$e[e]||new m,$e[e].set(t),y(e),$e[e]):(delete $e[e],null)}function b(e){var n;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return je;if(!t(e)){if(n=v(e))return n;e=[e]}return function(e){for(var t,n,i,r,s=0;s<e.length;
13){for(t=(r=g(e[s]).split("-")).length,n=(n=g(e[s+1]))?n.split("-"):null;t>0;){if(i=v(r.slice(0,t).join("-")))return i;if(n&&n.length>=t&&p(r,n,!0)>=t-1)break;t--}s++}return null}(e)}function w(e,t){var n=e.toLowerCase();Re[n]=Re[n+"s"]=Re[t]=e}function x(e){return"string"==typeof e?Re[e]||Re[e.toLowerCase()]:void 0}function C(e){var t,n,r={};for(n in e)i(e,n)&&((t=x(n))&&(r[t]=e[n]));return r}function E(t,n){return function(i){return null!=i?(k(this,t,i),e.updateOffset(this,n),this):S(this,t)}}function S(e,t){return e._d["get"+(e._isUTC?"UTC":"")+t]()}function k(e,t,n){return e._d["set"+(e._isUTC?"UTC":"")+t](n)}function T(e,t){var n;if("object"==typeof e)for(n in e)this.set(n,e[n]);else if("function"==typeof this[e=x(e)])return this[e](t);return this}function D(e,t,n){var i=""+Math.abs(e),r=t-i.length;return(e>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}function I(e,t,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),e&&(We[e]=r),t&&(We[t[0]]=function(){return D(r.apply(this,arguments),t[1],t[2])}),n&&(We[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),e)})}function O(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function A(e,t){return e.isValid()?(t=N(t,e.localeData()),Be[t]=Be[t]||function(e){var t,n,i=e.match(qe);for(t=0,n=i.length;n>t;t++)We[i[t]]?i[t]=We[i[t]]:i[t]=O(i[t]);return function(r){var s="";for(t=0;n>t;t++)s+=i[t]instanceof Function?i[t].call(r,e):i[t];return s}}(t),Be[t](e)):e.localeData().invalidDate()}function N(e,t){function n(e){return t.longDateFormat(e)||e}var i=5;for(ze.lastIndex=0;i>=0&&ze.test(e);)e=e.replace(ze,n),ze.lastIndex=0,i-=1;return e}function M(e,t,n){rt[e]=function(e){return"function"==typeof e&&"[object Function]"===Object.prototype.toString.call(e)}(t)?t:function(e){return e&&n?n:t}}function L(e,t){return i(rt,e)?rt[e](t._strict,t._locale):new RegExp(function(e){return e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,n,i,r){return t||n||i||r}).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}(e))}function P(e,t){var n,i=t;for("string"==typeof e&&(e=[e]),"number"==typeof t&&(i=function(e,n){
13n[t]=f(e)}),n=0;n<e.length;n++)st[e[n]]=i}function j(e,t){P(e,function(e,n,i,r){i._w=i._w||{},t(e,i._w,i,r)})}function H(e,t,n){null!=t&&i(st,e)&&st[e](t,n._a,n,e)}function F(e,t){return new Date(Date.UTC(e,t+1,0)).getUTCDate()}function $(e,t){var n;return"string"==typeof t&&"number"!=typeof(t=e.localeData().monthsParse(t))||(n=Math.min(e.date(),F(e.year(),t)),e._d["set"+(e._isUTC?"UTC":"")+"Month"](t,n)),e}function R(t){return null!=t?($(this,t),e.updateOffset(this,!0),this):S(this,"Month")}function q(e){var t,n=e._a;return n&&-2===o(e).overflow&&(t=n[at]<0||n[at]>11?at:n[lt]<1||n[lt]>F(n[ot],n[at])?lt:n[ct]<0||n[ct]>24||24===n[ct]&&(0!==n[ut]||0!==n[dt]||0!==n[ht])?ct:n[ut]<0||n[ut]>59?ut:n[dt]<0||n[dt]>59?dt:n[ht]<0||n[ht]>999?ht:-1,o(e)._overflowDayOfYear&&(ot>t||t>lt)&&(t=lt),o(e).overflow=t),e}function z(t){!1===e.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function B(e,t){var n=!0;return r(function(){return n&&(z(e+"\n"+(new Error).stack),n=!1),t.apply(this,arguments)},t)}function W(e){var t,n,i=e._i,r=gt.exec(i);if(r){for(o(e).iso=!0,t=0,n=vt.length;n>t;t++)if(vt[t][1].exec(i)){e._f=vt[t][0];break}for(t=0,n=yt.length;n>t;t++)if(yt[t][1].exec(i)){e._f+=(r[6]||" ")+yt[t][0];break}i.match(nt)&&(e._f+="Z"),Z(e)}else e._isValid=!1}function U(e,t,n,i,r,s,o){var a=new Date(e,t,n,i,r,s,o);return 1970>e&&a.setFullYear(e),a}function Y(e){var t=new Date(Date.UTC.apply(null,arguments));return 1970>e&&t.setUTCFullYear(e),t}function V(e){return Q(e)?366:365}function Q(e){return e%4==0&&e%100!=0||e%400==0}function G(e,t,n){var i,r=n-t,s=n-e.day();return s>r&&(s-=7),r-7>s&&(s+=7),i=ne(e).add(s,"d"),{week:Math.ceil(i.dayOfYear()/7),year:i.year()}}function X(e,t,n){return null!=e?e:null!=t?t:n}function K(e){var t,n,i,r,s=[];if(!e._d){for(i=function(e){var t=new Date;return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}(e),e._w&&null==e._a[lt]&&null==e._a[at]&&function(e){var t,n,i,r,s,o,a;t=e._w,null!=t.GG||null!=t.W||null!=t.E?(s=1,o=4,n=X(t.GG,e._a[ot],G(ne(),1,4).year),i=X(t.W,1),r=X(t.E,1)):(s=e._locale._week.dow,o=e._locale._week.doy,n=X(t.gg,e._a[ot],G(ne(),s,o).year),i=X(t.w,1),null!=t.d?(r=t.d,s>r&&++i):r=null!=t.e?t.e+s:s),a=function(e,t,n,i,r){var s,o=6+r-i,a=Y(e,0,1+o).getUTCDay();return r>a&&(a+=7),{year:(s=1+o+7*(t-1)-a+(n=null!=n?1*n:r))>0?e:e-1,dayOfYear:s>0?s:V(e-1)+s}}(n,i,r,o,s),e._a[ot]=a.year,e._dayOfYear=a.dayOfYear}(e),e._dayOfYear&&(r=X(e._a[ot],i[ot]),e._dayOfYear>V(r)&&(o(e)._overflowDayOfYear=!0),n=Y(r,0,e._dayOfYear),e._a[at]=n.getUTCMonth(),e._a[lt]=n.getUTCDate()),t=0;3>t&&null==e._a[t];++t)e._a[t]=s[t]=i[t];for(;7>t;t++)e._a[t]=s[t]=null==e._a[t]?2===t?1:0:e._a[t];24===e._a[ct]&&0===e._a[ut]&&0===e._a[dt]&&0===e._a[ht]&&(e._nextDay=!0,e._a[ct]=0),e._d=(e._useUTC?Y:U).apply(null,s),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[ct]=24)}}function Z(t){if(t._f!==e.ISO_8601){t._a=[],o(t).empty=!0;var n,i,r,s,a,l=""+t._i,c=l.length,u=0;for(r=N(t._f,t._locale).match(qe)||[],n=0;n<r.length;n++)s=r[n],(i=(l.match(L(s,t))||[])[0])&&((a=l.substr(0,l.indexOf(i))).length>0&&o(t).unusedInput.push(a),l=l.slice(l.indexOf(i)+i.length),u+=i.length),We[s]?(i?o(t).empty=!1:o(t).unusedTokens.push(s),H(s,i,t)):t._strict&&!i&&o(t).unusedTokens.push(s);o(t).charsLeftOver=c-u,l.length>0&&o(t).unusedInput.push(l),!0===o(t).bigHour&&t._a[ct]<=12&&t._a[ct]>0&&(o(t).bigHour=void 0),t._a[ct]=function(e,t,n){var i;return null==n?t:null!=e.meridiemHour?e.meridiemHour(t,n):null!=e.isPM?(i=e.isPM(n),i&&12>t&&(t+=12),i||12!==t||(t=0),t):t}(t._locale,t._a[ct],t._meridiem),K(t),q(t)}else W(t)}function J(e){var i=e._i,s=e._f;return e._locale=e._locale||b(e._l),null===i||void 0===s&&""===i?l({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),d(i)?new u(q(i)):(t(s)?function(e){var t,n,i,s,l;if(0===e._f.length)return o(e).invalidFormat=!0,void(e._d=new Date(NaN));for(s=0;s<e._f.length;s++)l=0,t=c({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[s],Z(t),a(t)&&(l+=o(t).charsLeftOver,l+=10*o(t).unusedTokens.length,o(t).score=l,(null==i||i>l)&&(i=l,n=t));r(e,n||t)}(e):s?Z(e):n(i)?e._d=i:ee(e),e))}function ee(i){var r=i._i;void 0===r?i._d=new Date:n(r)?i._d=new Date(+r):"string"==typeof r?function(t){var n=_t.exec(t._i);
13null!==n?t._d=new Date(+n[1]):(W(t),!1===t._isValid&&(delete t._isValid,e.createFromInputFallback(t)))}(i):t(r)?(i._a=function(e,t){var n,i=[];for(n=0;n<e.length;++n)i.push(t(e[n],n));return i}(r.slice(0),function(e){return parseInt(e,10)}),K(i)):"object"==typeof r?function(e){if(!e._d){var t=C(e._i);e._a=[t.year,t.month,t.day||t.date,t.hour,t.minute,t.second,t.millisecond],K(e)}}(i):"number"==typeof r?i._d=new Date(r):e.createFromInputFallback(i)}function te(e,t,n,i,r){var s={};return"boolean"==typeof n&&(i=n,n=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=r,s._l=n,s._i=e,s._f=t,s._strict=i,function(e){var t=new u(q(J(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}(s)}function ne(e,t,n,i){return te(e,t,n,i,!1)}function ie(e,n){var i,r;if(1===n.length&&t(n[0])&&(n=n[0]),!n.length)return ne();for(i=n[0],r=1;r<n.length;++r)(!n[r].isValid()||n[r][e](i))&&(i=n[r]);return i}function re(e){var t=C(e),n=t.year||0,i=t.quarter||0,r=t.month||0,s=t.week||0,o=t.day||0,a=t.hour||0,l=t.minute||0,c=t.second||0,u=t.millisecond||0;this._milliseconds=+u+1e3*c+6e4*l+36e5*a,this._days=+o+7*s,this._months=+r+3*i+12*n,this._data={},this._locale=b(),this._bubble()}function se(e){return e instanceof re}function oe(e,t){I(e,0,0,function(){var e=this.utcOffset(),n="+";return 0>e&&(e=-e,n="-"),n+D(~~(e/60),2)+t+D(~~e%60,2)})}function ae(e){var t=(e||"").match(nt)||[],n=((t[t.length-1]||[])+"").match(Ct)||["-",0,0],i=60*n[1]+f(n[2]);return"+"===n[0]?i:-i}function le(t,i){var r,s;return i._isUTC?(r=i.clone(),s=(d(t)||n(t)?+t:+ne(t))-+r,r._d.setTime(+r._d+s),e.updateOffset(r,!1),r):ne(t).local()}function ce(e){return 15*-Math.round(e._d.getTimezoneOffset()/15)}function ue(){return this._isUTC&&0===this._offset}function de(e,t){var n,r,s,o=e,a=null;return se(e)?o={ms:e._milliseconds,d:e._days,M:e._months}:"number"==typeof e?(o={},t?o[t]=e:o.milliseconds=e):(a=Et.exec(e))?(n="-"===a[1]?-1:1,o={y:0,d:f(a[lt])*n,h:f(a[ct])*n,m:f(a[ut])*n,s:f(a[dt])*n,ms:f(a[ht])*n}):(a=St.exec(e))?(n="-"===a[1]?-1:1,o={y:he(a[2],n),M:he(a[3],n),d:he(a[4],n),h:he(a[5],n),m:he(a[6],n),s:he(a[7],n),w:he(a[8],n)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(s=function(e,t){var n;return t=le(t,e),e.isBefore(t)?n=fe(e,t):(n=fe(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n}(ne(o.from),ne(o.to)),(o={}).ms=s.milliseconds,o.M=s.months),r=new re(o),se(e)&&i(e,"_locale")&&(r._locale=e._locale),r}function he(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function fe(e,t){var n={milliseconds:0,months:0};return n.months=t.month()-e.month()+12*(t.year()-e.year()),e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function pe(e,t){return function(n,i){var r;return null===i||isNaN(+i)||(function(e,t){mt[e]||(z(t),mt[e]=!0)}(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period)."),r=n,n=i,i=r),me(this,de(n="string"==typeof n?+n:n,i),e),this}}function me(t,n,i,r){var s=n._milliseconds,o=n._days,a=n._months;r=null==r||r,s&&t._d.setTime(+t._d+s*i),o&&k(t,"Date",S(t,"Date")+o*i),a&&$(t,S(t,"Month")+a*i),r&&e.updateOffset(t,o||a)}function ge(){var e=this.clone().utc();return 0<e.year()&&e.year()<=9999?"function"==typeof Date.prototype.toISOString?this.toDate().toISOString():A(e,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):A(e,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")}function ve(e){var t;return void 0===e?this._locale._abbr:(null!=(t=b(e))&&(this._locale=t),this)}function ye(){return this._locale}function _e(e,t){I(0,[e,e.length],0,t)}function be(e,t,n){return G(ne([e,11,31+t-n]),t,n).week}function we(e,t){I(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function xe(e,t){return t._meridiemParse}function Ce(e,t){t[ht]=f(1e3*("0."+e))}function Ee(e){return e}function Se(e,t,n,i){var r=b(),o=s().set(i,t);return r[n](o,e)}function ke(e,t,n,i,r){if("number"==typeof e&&(t=e,e=void 0),e=e||"",null!=t)return Se(e,t,n,r);var s,o=[];for(s=0;i>s;s++)o[s]=Se(e,s,n,r);return o}function Te(e,t,n,i){var r=de(t,n);return e._milliseconds+=i*r._milliseconds,e._days+=i*r._days,e._months+=i*r._months,e._bubble()}function De(e){return 0>e?Math.floor(e):Math.ceil(e)}function Ie(e){return 4800*e/146097}function Oe(e){return 146097*e/4800}function Ae(e){return function(){return this.as(e)}}function Ne(e){return function(){return this._data[e]}}function Me(e,t,n,i,r){return r.relativeTime(t||1,!!n,e,i)}function Le(){var e,t,n=on(this._milliseconds)/1e3,i=on(this._days),r=on(this._months);e=h(n/60),t=h(e/60),n%=60,e%=60;var s=h(r/12),o=r%=12,a=i,l=t,c=e,u=n,d=this.asSeconds();return d?(0>
vendor: 1,310 bytes, line 13
13d?"-":"")+"P"+(s?s+"Y":"")+(o?o+"M":"")+(a?a+"D":"")+(l||c||u?"T":"")+(l?l+"H":"")+(c?c+"M":"")+(u?u+"S":""):"P0D"}var Pe,je,He=e.momentProperties=[],Fe=!1,$e={},Re={},qe=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,ze=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Be={},We={},Ue=/\d/,Ye=/\d\d/,Ve=/\d{3}/,Qe=/\d{4}/,Ge=/[+-]?\d{6}/,Xe=/\d\d?/,Ke=/\d{1,3}/,Ze=/\d{1,4}/,Je=/[+-]?\d{1,6}/,et=/\d+/,tt=/[+-]?\d+/,nt=/Z|[+-]\d\d:?\d\d/gi,it=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,rt={},st={},ot=0,at=1,lt=2,ct=3,ut=4,dt=5,ht=6;I("M",["MM",2],"Mo",function(){return this.month()+1}),I("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),I("MMMM",0,0,function(e){return this.localeData().months(this,e)}),w("month","M"),M("M",Xe),M("MM",Xe,Ye),M("MMM",it),M("MMMM",it),P(["M","MM"],function(e,t){t[at]=f(e)-1}),P(["MMM","MMMM"],function(e,t,n,i){var r=n._locale.monthsParse(e,i,n._strict);null!=r?t[at]=r:o(n).invalidMonth=e});var ft="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mt={};
13e.suppressDeprecationWarnings=!1;var gt=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,vt=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],yt=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],_t=/^\/?Date\((\-?\d+)/i;e.createFromInputFallback=B("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),I(0,["YY",2],0,function(){return this.year()%100}),I(0,["YYYY",4],0,"year"),I(0,["YYYYY",5],0,"year"),I(0,["YYYYYY",6,!0],0,"year"),w("year","y"),M("Y",tt),M("YY",Xe,Ye),M("YYYY",Ze,Qe),M("YYYYY",Je,Ge),M("YYYYYY",Je,Ge),P(["YYYYY","YYYYYY"],ot),P("YYYY",function(t,n){n[ot]=2===t.length?e.parseTwoDigitYear(t):f(t)}),P("YY",function(t,n){n[ot]=e.parseTwoDigitYear(t)}),e.parseTwoDigitYear=function(e){return f(e)+(f(e)>68?1900:2e3)};var bt=E("FullYear",!1);I("w",["ww",2],"wo","week"),I("W",["WW",2],"Wo","isoWeek"),w("week","w"),w("isoWeek","W"),M("w",Xe),M("ww",Xe,Ye),M("W",Xe),M("WW",Xe,Ye),j(["w","ww","W","WW"],function(e,t,n,i){t[i.substr(0,1)]=f(e)});I("DDD",["DDDD",3],"DDDo","dayOfYear"),w("dayOfYear","DDD"),M("DDD",Ke),M("DDDD",Ve),P(["DDD","DDDD"],function(e,t,n){n._dayOfYear=f(e)}),e.ISO_8601=function(){};var wt=B("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(){var e=ne.apply(null,arguments);return this>e?this:e}),xt=B("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(){var e=ne.apply(null,arguments);return e>this?this:e});oe("Z",":"),oe("ZZ",""),M("Z",nt),M("ZZ",nt),P(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=ae(e)});var Ct=/([\+\-]|\d\d)/gi;e.updateOffset=function(){};var Et=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,St=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/;de.fn=re.prototype;var kt=pe(1,"add"),Tt=pe(-1,"subtract");e.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";var Dt=B("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});I(0,["gg",2],0,function(){return this.weekYear()%100}),I(0,["GG",2],0,function(){return this.isoWeekYear()%100}),_e("gggg","weekYear"),_e("ggggg","weekYear"),_e("GGGG","isoWeekYear"),_e("GGGGG","isoWeekYear"),w("weekYear","gg"),w("isoWeekYear","GG"),M("G",tt),M("g",tt),M("GG",Xe,Ye),M("gg",Xe,Ye),M("GGGG",Ze,Qe),M("gggg",Ze,Qe),M("GGGGG",Je,Ge),M("ggggg",Je,Ge),j(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,i){t[i.substr(0,2)]=f(e)}),j(["gg","GG"],function(t,n,i,r){n[r]=e.parseTwoDigitYear(t)}),I("Q",0,0,"quarter"),w("quarter","Q"),M("Q",Ue),P("Q",function(e,t){t[at]=3*(f(e)-1)}),I("D",["DD",2],"Do","date"),w("date","D"),M("D",Xe),M("DD",Xe,Ye),M("Do",function(e,t){return e?t._ordinalParse:t._ordinalParseLenient}),P(["D","DD"],lt),P("Do",function(e,t){t[lt]=f(e.match(Xe)[0])});var It=E("Date",!0);I("d",0,"do","day"),I("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),I("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),I("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),I("e",0,0,"weekday"),I("E",0,0,"isoWeekday"),w("day","d"),w("weekday","e"),w("isoWeekday","E"),M("d",Xe),M("e",Xe),M("E",Xe),M("dd",it),M("ddd",it),M("dddd",it),j(["dd","ddd","dddd"],function(e,t,n){var i=n._locale.weekdaysParse(e);null!=i?t.d=i:o(n).invalidWeekday=e}),j(["d","e","E"],function(e,t,n,i){t[i]=f(e)});var Ot="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),At="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Nt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");I("H",["HH",2],0,"hour"),I("h",["hh",2],0,function(){return this.hours()%12||12}),we("a",!0),we("A",!1),w("hour","h"),M("a",xe),M("A",xe),M("H",Xe),M("h",Xe),M("HH",Xe,Ye),M("hh",Xe,Ye),P(["H","HH"],ct),P(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),P(["h","hh"],function(e,t,n){t[ct]=f(e),o(n).bigHour=!0});var Mt=E("Hours",!0);I("m",["mm",2],0,"minute"),w("minute","m"),M("m",Xe),M("mm",Xe,Ye),P(["m","mm"],ut);var Lt=E("Minutes",!1);I("s",["ss",2],0,"second"),w("second","s"),M("s",Xe),M("ss",Xe,Ye),P(["s","ss"],dt);var Pt,jt=E("Seconds",!1);for(I("S",0,0,function(){return~~(this.millisecond()/100)}),I(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),I(0,["SSS",3],0,"millisecond"),I(0,["SSSS",4],0,function(){return 10*this.millisecond()}),I(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),I(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),I(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),I(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),I(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),w("millisecond","ms"),M("S",Ke,Ue),M("SS",Ke,Ye),M("SSS",Ke,Ve),Pt="SSSS";Pt.length<=9;Pt+="S")M(Pt,et);for(Pt="S";Pt.length<=9;Pt+="S")P(Pt,Ce);var Ht=E("Milliseconds",!1);I("z",0,0,"zoneAbbr"),I("zz",0,0,"zoneName");var Ft=u.prototype;Ft.add=kt,Ft.calendar=function(e,t){var n=e||ne(),i=le(n,this).startOf("day"),r=this.diff(i,"days",!0),s=-6>r?"sameElse":-1>r?"lastWeek":0>r?"lastDay":1>r?"sameDay":2>r?"nextDay":7>r?"nextWeek":"sameElse";return this.format(t&&t[s]||this.localeData().calendar(s,this,ne(n)))},Ft.clone=function(){return new u(this)},Ft.diff=function(e,t,n){var i,r,s=le(e,this),o=6e4*(s.utcOffset()-this.utcOffset());return"year"===(t=x(t))||"month"===t||"quarter"===t?(r=function(e,t){var n,i,r=12*(t.year()-e.year())+(t.month()-e.month()),s=e.clone().add(r,"months");return 0>t-s?(n=e.clone().add(r-1,"months"),i=(t-s)/(s-n)):(n=e.clone().add(r+1,"months"),i=(t-s)/(n-s)),-(r+i)}(this,s),"quarter"===t?r/=3:"year"===t&&(r/=12)):(i=this-s,r="second"===t?i/1e3:"minute"===t?i/6e4:"hour"===t?i/36e5:"day"===t?(i-o)/864e5:"week"===t?(i-o)/6048e5:i),n?r:h(r)},Ft.endOf=function(e){return void 0===(e=x(e))||"millisecond"===e?this:this.startOf(e).add(1,"isoWeek"===e?"week":e).subtract(1,"ms")},Ft.format=function(t){var n=A(this,t||e.defaultFormat);return this.localeData().postformat(n)},Ft.from=function(e,t){return this.isValid()?de({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ft.fromNow=function(e){return this.from(ne(),e)},Ft.to=function(e,t){return this.isValid()?de({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},Ft.toNow=function(e){return this.to(ne(),e)}
13,Ft.get=T,Ft.invalidAt=function(){return o(this).overflow},Ft.isAfter=function(e,t){return"millisecond"===(t=x(void 0!==t?t:"millisecond"))?+this>+(e=d(e)?e:ne(e)):(d(e)?+e:+ne(e))<+this.clone().startOf(t)},Ft.isBefore=function(e,t){var n;return"millisecond"===(t=x(void 0!==t?t:"millisecond"))?+(e=d(e)?e:ne(e))>+this:(n=d(e)?+e:+ne(e),+this.clone().endOf(t)<n)},Ft.isBetween=function(e,t,n){return this.isAfter(e,n)&&this.isBefore(t,n)},Ft.isSame=function(e,t){var n;return"millisecond"===(t=x(t||"millisecond"))?+this===+(e=d(e)?e:ne(e)):(n=+ne(e),+this.clone().startOf(t)<=n&&n<=+this.clone().endOf(t))},Ft.isValid=function(){return a(this)},Ft.lang=Dt,Ft.locale=ve,Ft.localeData=ye,Ft.max=xt,Ft.min=wt,Ft.parsingFlags=function(){return r({},o(this))},Ft.set=T,Ft.startOf=function(e){switch(e=x(e)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===e&&this.weekday(0),"isoWeek"===e&&this.isoWeekday(1),"quarter"===e&&this.month(3*Math.floor(this.month()/3)),this},Ft.subtract=Tt,Ft.toArray=function(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]},Ft.toObject=function(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}},Ft.toDate=function(){return this._offset?new Date(+this):this._d},Ft.toISOString=ge,Ft.toJSON=ge,Ft.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Ft.unix=function(){return Math.floor(+this/1e3)},Ft.valueOf=function(){return+this._d-6e4*(this._offset||0)},Ft.year=bt,Ft.isLeapYear=function(){return Q(this.year())},Ft.weekYear=function(e){var t=G(this,this.localeData()._week.dow,this.localeData()._week.doy).year;return null==e?t:this.add(e-t,"y")},Ft.isoWeekYear=function(e){var t=G(this,1,4).year;return null==e?t:this.add(e-t,"y")},Ft.quarter=Ft.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month(3*(e-1)+this.month()%3)},Ft.month=R,Ft.daysInMonth=function(){return F(this.year(),this.month())},Ft.week=Ft.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add(7*(e-t),"d")},Ft.isoWeek=Ft.isoWeeks=function(e){var t=G(this,1,4).week;return null==e?t:this.add(7*(e-t),"d")},Ft.weeksInYear=function(){var e=this.localeData()._week;return be(this.year(),e.dow,e.doy)},Ft.isoWeeksInYear=function(){return be(this.year(),1,4)},Ft.date=It,Ft.day=Ft.days=function(e){var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=e?(e=function(e,t){return"string"!=typeof e?e:isNaN(e)?"number"==typeof(e=t.weekdaysParse(e))?e:null:parseInt(e,10)}(e,this.localeData()),this.add(e-t,"d")):t},Ft.weekday=function(e){var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},Ft.isoWeekday=function(e){return null==e?this.day()||7:this.day(this.day()%7?e:e-7)},Ft.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},Ft.hour=Ft.hours=Mt,Ft.minute=Ft.minutes=Lt,Ft.second=Ft.seconds=jt,Ft.millisecond=Ft.milliseconds=Ht,Ft.utcOffset=function(t,n){var i,r=this._offset||0;return null!=t?("string"==typeof t&&(t=ae(t)),Math.abs(t)<16&&(t*=60),!this._isUTC&&n&&(i=ce(this)),this._offset=t,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==t&&(!n||this._changeInProgress?me(this,de(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,e.updateOffset(this,!0),this._changeInProgress=null)),this):this._isUTC?r:ce(this)},Ft.utc=function(e){return this.utcOffset(0,e)},Ft.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(ce(this),"m")),this},Ft.parseZone=function(){return this._tzm?this.utcOffset(this._tzm):"string"==typeof this._i&&this.utcOffset(ae(this._i)),this},Ft.hasAlignedHourOffset=function(e){return e=e?ne(e).utcOffset():0,(this.utcOffset()-e)%60==0},Ft.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Ft.isDSTShifted=function(){if(void 0!==this._isDSTShifted)return this._isDSTShifted;var e={};if(c(e,this),(e=J(e))._a){var t=e._isUTC?s(e._a):ne(e._a);this._isDSTShifted=this.isValid()&&p(e._a,t.toArray())>0}else this._isDSTShifted=!1;return this._isDSTShifted},Ft.isLocal=function(){return!this._isUTC},Ft.isUtcOffset=function(){return this._isUTC},Ft.isUtc=ue,Ft.isUTC=ue,Ft.zoneAbbr=function(){return this._isUTC?"UTC":""},Ft.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Ft.dates=B("dates accessor is deprecated. Use date instead.",It),Ft.months=B("months accessor is deprecated. Use month instead",R),Ft.years=B("years accessor is deprecated. Use year instead",bt),Ft.zone=B("moment().zone is deprecated, use moment().utcOffset instead. https://github.com/moment/moment/issues/1779",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()});var $t=Ft,Rt=m.prototype;Rt._calendar={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},Rt.calendar=function(e,t,n){var i=this._calendar[e];return"function"==typeof i?i.call(t,n):i},Rt._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"},Rt.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.replace(/MMMM|MM|DD|dddd/g,function(e){return e.slice(1)}),this._longDateFormat[e])}
13,Rt._invalidDate="Invalid date",Rt.invalidDate=function(){return this._invalidDate},Rt._ordinal="%d",Rt.ordinal=function(e){return this._ordinal.replace("%d",e)},Rt._ordinalParse=/\d{1,2}/,Rt.preparse=Ee,Rt.postformat=Ee,Rt._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"},Rt.relativeTime=function(e,t,n,i){var r=this._relativeTime[n];return"function"==typeof r?r(e,t,n,i):r.replace(/%d/i,e)},Rt.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return"function"==typeof n?n(t):n.replace(/%s/i,t)},Rt.set=function(e){var t,n;for(n in e)"function"==typeof(t=e[n])?this[n]=t:this["_"+n]=t;this._ordinalParseLenient=new RegExp(this._ordinalParse.source+"|"+/\d{1,2}/.source)},Rt.months=function(e){return this._months[e.month()]},Rt._months=ft,Rt.monthsShort=function(e){return this._monthsShort[e.month()]},Rt._monthsShort=pt,Rt.monthsParse=function(e,t,n){var i,r,o;for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;12>i;i++){if(r=s([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[i]=new RegExp(o.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[i].test(e))return i;if(n&&"MMM"===t&&this._shortMonthsParse[i].test(e))return i;if(!n&&this._monthsParse[i].test(e))return i}},Rt.week=function(e){return G(e,this._week.dow,this._week.doy).week},Rt._week={dow:0,doy:6},Rt.firstDayOfYear=function(){return this._week.doy},Rt.firstDayOfWeek=function(){return this._week.dow},Rt.weekdays=function(e){return this._weekdays[e.day()]},Rt._weekdays=Ot,Rt.weekdaysMin=function(e){return this._weekdaysMin[e.day()]},Rt._weekdaysMin=Nt,Rt.weekdaysShort=function(e){return this._weekdaysShort[e.day()]},Rt._weekdaysShort=At,Rt.weekdaysParse=function(e){var t,n,i;for(this._weekdaysParse=this._weekdaysParse||[],t=0;7>t;t++)if(this._weekdaysParse[t]||(n=ne([2e3,1]).day(t),i="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[t]=new RegExp(i.replace(".",""),"i")),this._weekdaysParse[t].test(e))return t},Rt.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},Rt._meridiemParse=/[ap]\.?m?\.?/i,Rt.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},y("en",{ordinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10;return e+(1===f(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th")}}),e.lang=B("moment.lang is deprecated. Use moment.locale instead.",y),e.langData=B("moment.langData is deprecated. Use moment.localeData instead.",b);var qt=Math.abs,zt=Ae("ms"),Bt=Ae("s"),Wt=Ae("m"),Ut=Ae("h"),Yt=Ae("d"),Vt=Ae("w"),Qt=Ae("M"),Gt=Ae("y"),Xt=Ne("milliseconds"),Kt=Ne("seconds"),Zt=Ne("minutes"),Jt=Ne("hours"),en=Ne("days"),tn=Ne("months"),nn=Ne("years"),rn=Math.round,sn={s:45,m:45,h:22,d:26,M:11},on=Math.abs,an=re.prototype;return an.abs=function(){var e=this._data;return this._milliseconds=qt(this._milliseconds),this._days=qt(this._days),this._months=qt(this._months),e.milliseconds=qt(e.milliseconds),e.seconds=qt(e.seconds),e.minutes=qt(e.minutes),e.hours=qt(e.hours),e.months=qt(e.months),e.years=qt(e.years),this},an.add=function(e,t){return Te(this,e,t,1)},an.subtract=function(e,t){return Te(this,e,t,-1)},an.as=function(e){var t,n,i=this._milliseconds;if("month"===(e=x(e))||"year"===e)return t=this._days+i/864e5,n=this._months+Ie(t),"month"===e?n:n/12;switch(t=this._days+Math.round(Oe(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return 24*t+i/36e5;case"minute":return 1440*t+i/6e4;case"second":return 86400*t+i/1e3;case"millisecond":return Math.floor(864e5*t)+i;default:throw new Error("Unknown unit "+e)}},an.asMilliseconds=zt,an.asSeconds=Bt,an.asMinutes=Wt,an.asHours=Ut,an.asDays=Yt,an.asWeeks=Vt,an.asMonths=Qt,an.asYears=Gt,an.valueOf=function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*f(this._months/12)},an._bubble=function(){var e,t,n,i,r,s=this._milliseconds,o=this._days,a=this._months,l=this._data;return s>=0&&o>=0&&a>=0||0>
13=s&&0>=o&&0>=a||(s+=864e5*De(Oe(a)+o),o=0,a=0),l.milliseconds=s%1e3,e=h(s/1e3),l.seconds=e%60,t=h(e/60),l.minutes=t%60,n=h(t/60),l.hours=n%24,o+=h(n/24),a+=r=h(Ie(o)),o-=De(Oe(r)),i=h(a/12),a%=12,l.days=o,l.months=a,l.years=i,this},an.get=function(e){return this[(e=x(e))+"s"]()},an.milliseconds=Xt,an.seconds=Kt,an.minutes=Zt,an.hours=Jt,an.days=en,an.weeks=function(){return h(this.days()/7)},an.months=tn,an.years=nn,an.humanize=function(e){var t=this.localeData(),n=function(e,t,n){var i=de(e).abs(),r=rn(i.as("s")),s=rn(i.as("m")),o=rn(i.as("h")),a=rn(i.as("d")),l=rn(i.as("M")),c=rn(i.as("y")),u=r<sn.s&&["s",r]||1===s&&["m"]||s<sn.m&&["mm",s]||1===o&&["h"]||o<sn.h&&["hh",o]||1===a&&["d"]||a<sn.d&&["dd",a]||1===l&&["M"]||l<sn.M&&["MM",l]||1===c&&["y"]||["yy",c];return u[2]=t,u[3]=+e>0,u[4]=n,Me.apply(null,u)}(this,!e,t);return e&&(n=t.pastFuture(+this,n)),t.postformat(n)},an.toISOString=Le,an.toString=Le,an.toJSON=Le,an.locale=ve,an.localeData=ye,an.toIsoString=B("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Le),an.lang=Dt,I("X",0,0,"unix"),I("x",0,0,"valueOf"),M("x",tt),M("X",/[+-]?\d+(\.\d{1,3})?/),P("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e,10))}),P("x",function(e,t,n){n._d=new Date(f(e))}),e.version="2.10.6",function(e){Pe=e}(ne),e.fn=$t,e.min=function(){return ie("isBefore",[].slice.call(arguments,0))},e.max=function(){return ie("isAfter",[].slice.call(arguments,0))},e.utc=s,e.unix=function(e){return ne(1e3*e)},e.months=function(e,t){return ke(e,t,"months",12,"month")},e.isDate=n,e.locale=y,e.invalid=l,e.duration=de,e.isMoment=d,e.weekdays=function(e,t){return ke(e,t,"weekdays",7,"day")},e.parseZone=function(){return ne.apply(null,arguments).parseZone()},e.localeData=b,e.isDuration=se,e.monthsShort=function(e,t){return ke(e,t,"monthsShort",12,"month")},e.weekdaysMin=function(e,t){return ke(e,t,"weekdaysMin",7,"day")},e.defineLocale=_,e.weekdaysShort=function(e,t){return ke(e,t,"weekdaysShort",7,"day")},e.normalizeUnits=x,e.relativeTimeThreshold=function(e,t){return void 0!==sn[e]&&(void 0===t?sn[e]:(sn[e]=t,!0))},e}),function(e){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],e);else if("object"==typeof exports)module.exports=e(require("jquery"),require("moment"));else{if("undefined"==typeof jQuery)throw"bootstrap-datetimepicker requires jQuery to be loaded first";if("undefined"==typeof moment)throw"bootstrap-datetimepicker requires Moment.js to be loaded first";e(jQuery,moment)}}(function(e,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var r,s,o,a,l,c,u,d={},h=!0,f=!1,p=!1,m=0,g=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],v=["days","months","years","decades"],y=["top","bottom","auto"],_=["left","right","auto"],b=["default","top","bottom"],w={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",space:32,32:"space",t:84,84:"t",delete:46,46:"delete"},x={},C=function(){return void 0!==t.tz&&void 0!==i.timeZone&&null!==i.timeZone&&""!==i.timeZone},E=function(e){var n;return n=null==e?t():t.isDate(e)||t.isMoment(e)?t(e):C()?t.tz(e,c,i.useStrict,i.timeZone):t(e,c,i.useStrict),C()&&n.tz(i.timeZone),n},S=function(e){if("string"!=typeof e||e.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(e){case"y":return-1!==l.indexOf("Y");case"M":return-1!==l.indexOf("M");case"d":return-1!==l.toLowerCase().indexOf("d");case"h":case"H":return-1!==l.toLowerCase().indexOf("h");case"m":return-1!==l.indexOf("m");case"s":return-1!==l.indexOf("s");default:return!1}},k=function(){return S("h")||S("m")||S("s")},T=function(){return S("y")||S("M")||S("d")},D=function(){var t=e("<tr>"),n=e("<tr>"),r=e("<tr>");return S("h")&&(t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:i.tooltips.pickHour}
vendor: 5,391 bytes, line 13
13).attr("data-action","showHours"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(e("<span>").addClass(i.icons.down))))),S("m")&&(S("h")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:i.tooltips.pickMinute}).attr("data-action","showMinutes"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(e("<span>").addClass(i.icons.down))))),S("s")&&(S("m")&&(t.append(e("<td>").addClass("separator")),n.append(e("<td>").addClass("separator").html(":")),r.append(e("<td>").addClass("separator"))),t.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(e("<span>").addClass(i.icons.up)))),n.append(e("<td>").append(e("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:i.tooltips.pickSecond}).attr("data-action","showSeconds"))),r.append(e("<td>").append(e("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(e("<span>").addClass(i.icons.down))))),a||(t.append(e("<td>").addClass("separator")),n.append(e("<td>").append(e("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:i.tooltips.togglePeriod}))),r.append(e("<td>").addClass("separator"))),e("<div>").addClass("timepicker-picker").append(e("<table>").addClass("table-sm").append([t,n,r]))},I=function(){var t=e("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),n=e("<div>").addClass("datepicker").append(function(){var t=e("<thead>").append(e("<tr>").append(e("<th>").addClass("prev").attr("data-action","previous").append(e("<span>").addClass(i.icons.previous))).append(e("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(e("<th>").addClass("next").attr("data-action","next").append(e("<span>").addClass(i.icons.next)))),n=e("<tbody>").append(e("<tr>").append(e("<td>").attr("colspan",i.calendarWeeks?"8":"7")));return[e("<div>").addClass("datepicker-days").append(e("<table>").addClass("table-sm").append(t).append(e("<tbody>"))),e("<div>").addClass("datepicker-months").append(e("<table>").addClass("table-sm").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-years").append(e("<table>").addClass("table-sm").append(t.clone()).append(n.clone())),e("<div>").addClass("datepicker-decades").append(e("<table>").addClass("table-sm").append(t.clone()).append(n.clone()))]}()),r=e("<div>").addClass("timepicker").append(function(){var t=e("<div>").addClass("timepicker-hours").append(e("<table>").addClass("table-sm")),n=e("<div>").addClass("timepicker-minutes").append(e("<table>").addClass("table-sm")),i=e("<div>").addClass("timepicker-seconds").append(e("<table>").addClass("table-sm")),r=[D()];return S("h")&&r.push(t),S("m")&&r.push(n),S("s")&&r.push(i),r}()),s=e("<ul>").addClass("list-unstyled"),o=e("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append(function(){var t=[];return i.showTodayButton&&t.push(e("<td>").append(e("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(e("<span>").addClass(i.icons.today)))),!i.sideBySide&&T()&&k()&&t.push(e("<td>").append(e("<a>").attr({"data-action":"togglePicker",title:i.tooltips.selectTime}).append(e("<span>").addClass(i.icons.time)))),i.showClear&&t.push(e("<td>").append(e("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(e("<span>").addClass(i.icons.clear)))),i.showClose&&t.push(e("<td>").append(e("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(e("<span>").addClass(i.icons.close)))),e("<table>").addClass("table-sm").append(e("<tbody>").append(e("<tr>").append(t)))}());return i.inline&&t.removeClass("dropdown-menu"),a&&t.addClass("usetwentyfour"),S("s")&&!a&&t.addClass("wider"),i.sideBySide&&T()&&k()?(t.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&t.append(o),t.append(e("<div>").addClass("row").append(n.addClass("col-lg-6")).append(r.addClass("col-lg-6"))),"bottom"===i.toolbarPlacement&&t.append(o),t):("top"===i.toolbarPlacement&&s.append(o),T()&&s.append(e("<li>").addClass(i.collapse&&k()?"collapse show":"").append(n)),"default"===i.toolbarPlacement&&s.append(o),k()&&s.append(e("<li>").addClass(i.collapse&&T()?"collapse":"").append(r)),"bottom"===i.toolbarPlacement&&s.append(o),t.append(s))},O=function(){var t,r=(f||n).position(),s=(f||n).offset(),o=i.widgetPositioning.vertical,a=i.widgetPositioning.horizontal;if(i.widgetParent)t=i.widgetParent.append(p);else if(n.is("input"))t=n.after(p).parent();else{if(i.inline)return void(t=n.append(p));t=n,n.children().first().after(p)}if("auto"===o&&(o=s.top+1.5*p.height()>=e(window).height()+e(window).scrollTop()&&p.height()+n.outerHeight()<s.top?"to
13p":"bottom"),"auto"===a&&(a=t.width()<s.left+p.outerWidth()/2&&s.left+p.outerWidth()>e(window).width()?"right":"left"),"top"===o?p.addClass("top").removeClass("bottom"):p.addClass("bottom").removeClass("top"),"right"===a?p.addClass("float-right"):p.removeClass("float-right"),"static"===t.css("position")&&(t=t.parents().filter(function(){return"static"!==e(this).css("position")}).first()),0===t.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");p.css({top:"top"===o?"auto":r.top+n.outerHeight(),bottom:"top"===o?t.outerHeight()-(t===n?0:r.top):"auto",left:"left"===a?t===n?0:r.left:"auto",right:"left"===a?"auto":t.outerWidth()-n.outerWidth()-(t===n?0:r.left)})},A=function(e){"dp.change"===e.type&&(e.date&&e.date.isSame(e.oldDate)||!e.date&&!e.oldDate)||n.trigger(e)},N=function(e){"y"===e&&(e="YYYY"),A({type:"dp.update",change:e,viewDate:s.clone()})},M=function(e){p&&(e&&(u=Math.max(m,Math.min(3,u+e))),p.find(".datepicker > div").hide().filter(".datepicker-"+g[u].clsName).show())},L=function(t,n){if(!t.isValid())return!1;if(i.disabledDates&&"d"===n&&function(e){return!0===i.disabledDates[e.format("YYYY-MM-DD")]}(t))return!1;if(i.enabledDates&&"d"===n&&!function(e){return!0===i.enabledDates[e.format("YYYY-MM-DD")]}(t))return!1;if(i.minDate&&t.isBefore(i.minDate,n))return!1;if(i.maxDate&&t.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(t.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&function(e){return!0===i.disabledHours[e.format("H")]}(t))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!function(e){return!0===i.enabledHours[e.format("H")]}(t))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var r=!1;if(e.each(i.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return r=!0,!1}),r)return!1}return!0},P=function(){var e,n=p.find(".datepicker-decades"),o=n.find("th"),a=t({y:s.year()-s.year()%100-1}),l=a.clone().add(100,"y"),c=a.clone(),u=!1,d=!1,h="";for(o.eq(0).find("span").attr("title",i.tooltips.prevCentury),o.eq(2).find("span").attr("title",i.tooltips.nextCentury),n.find(".disabled").removeClass("disabled"),(a.isSame(t({y:1900}))||i.minDate&&i.minDate.isAfter(a,"y"))&&o.eq(0).addClass("disabled"),o.eq(1).text(a.year()+"-"+l.year()),(a.isSame(t({y:2e3}))||i.maxDate&&i.maxDate.isBefore(l,"y"))&&o.eq(2).addClass("disabled");!a.isAfter(l,"y");)e=a.year()+12,u=i.minDate&&i.minDate.isAfter(a,"y")&&i.minDate.year()<=e,d=i.maxDate&&i.maxDate.isAfter(a,"y")&&i.maxDate.year()<=e,h+='<span data-action="selectDecade" class="decade'+(r.isAfter(a)&&r.year()<=e?" active":"")+(L(a,"y")||u||d?"":" disabled")+'" data-selection="'+(a.year()+6)+'">'+(a.year()+1)+" - "+(a.year()+12)+"</span>",a.add(12,"y");h+="<span></span><span></span><span></span>",n.find("td").html(h),o.eq(1).text(c.year()+1+"-"+a.year())},j=function(){var t,n,o,a=p.find(".datepicker-days"),l=a.find("th"),c=[],u=[];if(T()){for(l.eq(0).find("span").attr("title",i.tooltips.prevMonth),l.eq(1).attr("title",i.tooltips.selectMonth),l.eq(2).find("span").attr("title",i.tooltips.nextMonth),a.find(".disabled").removeClass("disabled"),l.eq(1).text(s.format(i.dayViewHeaderFormat)),L(s.clone().subtract(1,"M"),"M")||l.eq(0).addClass("disabled"),L(s.clone().add(1,"M"),"M")||l.eq(2).addClass("disabled"),t=s.clone().startOf("M").startOf("w").startOf("d"),o=0;o<42;o++)0===t.weekday()&&(n=e("<tr>"),i.calendarWeeks&&n.append('<td class="cw">'+t.week()+"</td>"),c.push(n)),u=["day"],t.isBefore(s,"M")&&u.push("old"),t.isAfter(s,"M")&&u.push("new"),t.isSame(r,"d")&&!h&&u.push("active"),L(t,"d")||u.push("disabled"),t.isSame(E(),"d")&&u.push("today"),0!==t.day()&&6!==t.day()||u.push("weekend"),A({type:"dp.classify",date:t,classNames:u}),n.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="'+u.join(" ")+'">'+t.date()+"</td>"),t.add(1,"d");a.find("tbody").empty().append(c),function(){var t=p.find(".datepicker-months"),n=t.find("th"),o=t.find("tbody").find("span");n.eq(0).find("span").attr("title",i.tooltips.prevYear),n.eq(1).attr("title",i.tooltips.selectYear),n.eq(2).find("span").attr("title",i.tooltips.nextYear),t.find(".disabled").removeClass("disabled"),L(s.clone().subtract(1,"y"),"y")||n.eq(0).addClass("disabled"),n.eq(1).text(s.year()),L(s.clone().add(1,"y"),"y")||n.eq(2).addClass("disabled"),o.removeClass("active"),r.isSame(s,"y")&&!h&&o.eq(r.month()).addClass("active"),o.each(function(t){L(s.clone().month(t),"M")||e(this).addClass("disabled")})}(),function(){var e=p.find(".datepicker-years"),t=e.find("th"),n=s.clone().subtract(5,"y"),o=s.clone().add(6,"y"),a="";for(t.eq(0).find("span").attr("title",i.tooltips.prevDecade),t.eq(1).attr("title",i.tooltips.selectDecade),t.eq(2).find("span").attr("title",i.tooltips.nextDecade),e.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled"),t.eq(1).text(n.year()+"-"+o.year()),i.maxDate&&i.maxDate.isBefore(o,"y")&&t.eq(2).addClass("disabled");!n.isAfter(o,"y");)a+='<span data-action="selectYear" class="year'+(n.isSame(r,"y")&&!h?" active":"")+(L(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");e.find("td").html(a)}(),P()}},H=function(){var t=p.find(".timepicker-hours table"),n=s.clone().startOf("d"),i=[],r=e("<tr>");for(s.hour()>11&&!a&&n.hour(12);n.isSame(s,"d")&&(a||s.hour()<12&&n.hour()<12||s.hour()>11);
vendor: 11,351 bytes, line 13
13)n.hour()%4==0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectHour" class="hour'+(L(n,"h")?"":" disabled")+'">'+n.format(a?"HH":"hh")+"</td>"),n.add(1,"h");t.empty().append(i)},F=function(){for(var t=p.find(".timepicker-minutes table"),n=s.clone().startOf("h"),r=[],o=e("<tr>"),a=1===i.stepping?5:i.stepping;s.isSame(n,"h");)n.minute()%(4*a)==0&&(o=e("<tr>"),r.push(o)),o.append('<td data-action="selectMinute" class="minute'+(L(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(a,"m");t.empty().append(r)},$=function(){for(var t=p.find(".timepicker-seconds table"),n=s.clone().startOf("m"),i=[],r=e("<tr>");s.isSame(n,"m");)n.second()%20==0&&(r=e("<tr>"),i.push(r)),r.append('<td data-action="selectSecond" class="second'+(L(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");t.empty().append(i)},R=function(){p&&(j(),function(){var e,t,n=p.find(".timepicker span[data-time-component]");a||(e=p.find(".timepicker [data-action=togglePeriod]"),t=r.clone().add(r.hours()>=12?-12:12,"h"),e.text(r.format("A")),L(t,"h")?e.removeClass("disabled"):e.addClass("disabled")),n.filter("[data-time-component=hours]").text(r.format(a?"HH":"hh")),n.filter("[data-time-component=minutes]").text(r.format("mm")),n.filter("[data-time-component=seconds]").text(r.format("ss")),H(),F(),$()}())},q=function(e){var t=h?null:r;if(!e)return h=!0,o.val(""),n.data("date",""),A({type:"dp.change",date:!1,oldDate:t}),void R();if(e=e.clone().locale(i.locale),C()&&e.tz(i.timeZone),1!==i.stepping)for(e.minutes(Math.round(e.minutes()/i.stepping)*i.stepping).seconds(0);i.minDate&&e.isBefore(i.minDate);)e.add(i.stepping,"minutes");L(e)?(s=(r=e).clone(),o.val(r.format(l)),n.data("date",r.format(l)),h=!1,R(),A({type:"dp.change",date:r.clone(),oldDate:t})):(i.keepInvalid?A({type:"dp.change",date:e,oldDate:t}):o.val(h?"":r.format(l)),A({type:"dp.error",date:e,oldDate:t}))},z=function(){var t=!1;return p?(p.find(".collapse").each(function(){var n=e(this).data("collapse");return!n||!n.transitioning||(t=!0,!1)}),t||(f&&f.hasClass("btn")&&f.toggleClass("active"),p.hide(),e(window).off("resize",O),p.off("click","[data-action]"),p.off("mousedown",!1),p.remove(),p=!1,A({type:"dp.hide",date:r.clone()}),o.blur(),s=r.clone()),d):d},B=function(){q(null)},W=function(e){return void 0===i.parseInputDate?(!t.isMoment(e)||e instanceof Date)&&(e=E(e)):e=i.parseInputDate(e),e},U={next:function(){var e=g[u].navFnc;s.add(g[u].navStep,e),j(),N(e)},previous:function(){var e=g[u].navFnc;s.subtract(g[u].navStep,e),j(),N(e)},pickerSwitch:function(){M(1)},selectMonth:function(t){var n=e(t.target).closest("tbody").find("span").index(e(t.target));s.month(n),u===m?(q(r.clone().year(s.year()).month(s.month())),i.inline||z()):(M(-1),j()),N("M")},selectYear:function(t){var n=parseInt(e(t.target).text(),10)||0;s.year(n),u===m?(q(r.clone().year(s.year())),i.inline||z()):(M(-1),j()),N("YYYY")},selectDecade:function(t){var n=parseInt(e(t.target).data("selection"),10)||0;s.year(n),u===m?(q(r.clone().year(s.year())),i.inline||z()):(M(-1),j()),N("YYYY")},selectDay:function(t){var n=s.clone();e(t.target).is(".old")&&n.subtract(1,"M"),e(t.target).is(".new")&&n.add(1,"M"),q(n.date(parseInt(e(t.target).text(),10))),k()||i.keepOpen||i.inline||z()},incrementHours:function(){var e=r.clone().add(1,"h");L(e,"h")&&q(e)},incrementMinutes:function(){var e=r.clone().add(i.stepping,"m");L(e,"m")&&q(e)},incrementSeconds:function(){var e=r.clone().add(1,"s");L(e,"s")&&q(e)},decrementHours:function(){var e=r.clone().subtract(1,"h");L(e,"h")&&q(e)},decrementMinutes:function(){var e=r.clone().subtract(i.stepping,"m");L(e,"m")&&q(e)},decrementSeconds:function(){var e=r.clone().subtract(1,"s");L(e,"s")&&q(e)},togglePeriod:function(){q(r.clone().add(r.hours()>=12?-12:12,"h"))},togglePicker:function(t){var n,r=e(t.target),s=r.closest("ul"),o=s.find(".show"),a=s.find(".collapse:not(.show)");if(o&&o.length){if((n=o.data("collapse"))&&n.transitioning)return;o.collapse?(o.collapse("hide"),a.collapse("show")):(o.removeClass("show"),a.addClass("show")),r.is("span")?r.toggleClass(i.icons.time+" "+i.icons.date):r.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){p.find(".timepicker > div:not(.timepicker-picker)").hide(),p.find(".timepicker .timepicker-picker").show()},showHours:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-hours").show()},showMinutes:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){p.find(".timepicker .timepicker-picker").hide(),p.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var n=parseInt(e(t.target).text(),10);a||(r.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),q(r.clone().hours(n)),U.showPicker.call(d)},selectMinute:function(t){q(r.clone().minutes(parseInt(e(t.target).text(),10))),U.showPicker.call(d)},selectSecond:function(t){q(r.clone().seconds(parseInt(e(t.target).text(),10))),U.showPicker.call(d)},clear:B,today:function(){var e=E();L(e,"d")&&q(e)},close:z},Y=function(t){return!e(t.currentTarget).is(".disabled")&&(U[e(t.currentTarget).data("action")].apply(d,arguments),!1)},V=function(){var t;return o.prop("disabled")||!i.ignoreReadonly&&o.prop("readonly")||p||(void 0!==o.val()&&0!==o.val().trim().length?q(W(o.val().trim())):h&&i.useCurrent&&(i.inline||o.is("input")&&0===o.val().trim().length)&&(t=E(),"string"==typeof i.useCurrent&&(t={year:function(e){return e.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(e){return e.date(1).hours(0).seconds(0).minutes(0)},day:function(e){return e.hours(0).seconds(0).minutes(0)},hour:function(e){return e.seconds(0).minutes(0)},minute:function(e){return e.seconds(0)}}[i.useCurrent](t)),q(t)),p=I(),function(){var t=e("<tr>"),n=s.clone().startOf("w").startOf("d");for(!0===i.calendarWeeks&&t.append(e("<th>").addClass("cw").text("#"));n.isBefore(s.clone().endOf("w"));)t.append(e("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");p.find(".datepicker-days thead").append(t)}(),function(){for(var t=[],n=s.clone().startOf("y").startOf("d");n.isSame(s,"y");)t.push(e("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");p.find(".datepicker-months td").empty().append(t)}(),p.find(".timepicker-hours").hide(),p.find(".timepicker-minutes").hide(),p.find(".timepicker-seconds").hide(),R(),M(),e(window).on("resize",O),p.on("click","[data-action]",Y),p.on("mousedown",!1),f&&f.hasClass("btn")&&f.toggleClass("active"),O(),p.show(),i.focusOnShow&&!o.is(":focus")&&o.focus(),A({type:"dp.show"})),d},Q=function(){return p?z():V()},G=function(e){var t,n,r,s,o=null,a=[],l={},c=e.which;for(t in x[c]="p",x)x.hasOwnProperty(t)&&"p"===x[t]&&(a.push(t),parseInt(t,10)!==c&&(l[t]=!0));for(t in i.keyBinds)if(i.keyBinds.hasOwnProperty(t)&&"function"==typeof i.keyBinds[t]&&((r=t.split(" ")).length===a.length&&w[c]===r[r.length-1])){for(s=!0,n=r.length-2;n>=0;n--)if(!(w[r[n]]in l)){s=!1;break}if(s){o=i.keyBinds[t];break}}o&&(o.call(d,p),e.stopPropagation(),e.preventDefault())},X=function(e){x[e.which]="r",e.stopPropagation(),e.preventDefault()},K=function(t){var n=e(t.target).val().trim(),i=n?W(n):null;return q(i),t.stopImmediatePropagation(),!1},Z=function(t){var n={};return e.each(t,function(){var e=W(this);e.isValid()&&(n[e.format("YYYY-MM-DD")]=!0)}),!!Object.keys(n).length&&n},J=function(t){var n={};return e.each(t,function(){n[this]=!0}),!!Object.keys(n).length&&n},ee=function(){var e=i.format||"L LT";l=e.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return(r.localeData().longDateFormat(e)||e).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(e){return r.localeData().longDateFormat(e)||e})}),(c=i.extraFormats?i.extraFormats.slice():[]).indexOf(e)<0&&c.indexOf(l)<0&&c.push(l),a=l.toLowerCase().indexOf("a")<1&&l.replace(/\[.*?\]/g,"").indexOf("h")<1,S("y")&&(m=2),S("M")&&(m=1),S("d")&&(m=0),u=Math.max(m,u),h||q(r)};if(d.destroy=function(){z(),o.off({change:K,blur:blur,keydown:G,keyup:X,focus:i.allowInputToggle?z:""}),n.is("input")?o.off({focus:V}):f&&(f.off("click",Q),f.off("mousedown",!1)),n.removeData("DateTimePicker"),n.removeData("date")},d.toggle=Q,d.show=V,d.hide=z,d.disable=function(){return z(),f&&f.hasClass("btn")&&f.addClass("disabled"),o.prop("disabled",!0),d},d.enable=function(){return f&&f.hasClass("btn")&&f.removeClass("disabled"),o.prop("disabled",!1),d},d.ignoreReadonly=function(e){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof e)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=e,d},d.options=function(t){if(0===arguments.length)return e.extend(!0,{},i);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return e.extend(!0,i,t),e.each(i,function(e,t){if(void 0===d[e])throw new TypeError("option "+e+" is not recognized!");d[e](t)}),d},d.date=function(e){if(0===arguments.length)return h?null:r.clone();if(!(null===e||"string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return q(null===e?null:W(e)),d},d.format=function(e){if(0===arguments.length)return i.format;if("string"!=typeof e&&("boolean"!=typeof e||!1!==e))throw new TypeError("format() expects a string or boolean:false parameter "+e);return i.format=e,l&&ee(),d},d.timeZone=function(e){if(0===arguments.length)return i.timeZone;if("string"!=typeof e)throw new TypeError("newZone() expects a string parameter");return i.timeZone=e,d},d.dayViewHeaderFormat=function(e){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof e)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=e,d},d.extraFormats=function(e){if(0===arguments.length)return i.extraFormats;if(!1!==e&&!(e instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=e,c&&ee(),d},d.disabledDates=function(t){if(0===arguments.length)return i.disabledDates?e.extend({},i.disabledDates):i.disabledDates;if(!t)return i.disabledDates=!1,R(),d;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=Z(t),i.enabledDates=!1,R(),d},d.enabledDates=function(t){if(0===arguments.length)return i.enabledDates?e.extend({},i.enabledDates):i.enabledDates;if(!t)return i.enabledDates=!1,R(),d;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=Z(t),i.disabledDates=!1,R(),d},d.daysOfWeekDisabled=function(e){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof e&&!e)return i.daysOfWeekDisabled=!1,R(),d;if(!(e instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=e.reduce(function(e,t){return(t=parseInt(t,10))>6||t<0||isNaN(t)||-1===e.indexOf(t)&&e.push(t),e},[]).sort(),i.useCurrent&&!i.keepInvalid){for(var t=0;!L(r,"d");){if(r.add(1,"d"),31===t)throw"Tried 31 times to find a valid date";t++}q(r)}return R(),d},d.maxDate=function(e){if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof e&&!1===e)return i.maxDate=!1,R(),d;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=E()));var t=W(e);
vendor: 6,574 bytes, line 13
13if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+e);if(i.minDate&&t.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(l));return i.maxDate=t,i.useCurrent&&!i.keepInvalid&&r.isAfter(e)&&q(i.maxDate),s.isAfter(t)&&(s=t.clone().subtract(i.stepping,"m")),R(),d},d.minDate=function(e){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof e&&!1===e)return i.minDate=!1,R(),d;"string"==typeof e&&("now"!==e&&"moment"!==e||(e=E()));var t=W(e);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+e);if(i.maxDate&&t.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(l));return i.minDate=t,i.useCurrent&&!i.keepInvalid&&r.isBefore(e)&&q(i.minDate),s.isBefore(t)&&(s=t.clone().add(i.stepping,"m")),R(),d},d.defaultDate=function(e){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!e)return i.defaultDate=!1,d;"string"==typeof e&&(e="now"===e||"moment"===e?E():E(e));var t=W(e);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+e);if(!L(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=t,(i.defaultDate&&i.inline||""===o.val().trim())&&q(i.defaultDate),d},d.locale=function(e){if(0===arguments.length)return i.locale;if(!t.localeData(e))throw new TypeError("locale() locale "+e+" is not loaded from moment locales!");return i.locale=e,r.locale(i.locale),s.locale(i.locale),l&&ee(),p&&(z(),V()),d},d.stepping=function(e){return 0===arguments.length?i.stepping:(e=parseInt(e,10),(isNaN(e)||e<1)&&(e=1),i.stepping=e,d)},d.useCurrent=function(e){var t=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof e&&"string"!=typeof e)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof e&&-1===t.indexOf(e.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return i.useCurrent=e,d},d.collapse=function(e){if(0===arguments.length)return i.collapse;if("boolean"!=typeof e)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===e||(i.collapse=e,p&&(z(),V())),d},d.icons=function(t){if(0===arguments.length)return e.extend({},i.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return e.extend(i.icons,t),p&&(z(),V()),d},d.tooltips=function(t){if(0===arguments.length)return e.extend({},i.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return e.extend(i.tooltips,t),p&&(z(),V()),d},d.useStrict=function(e){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof e)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=e,d},d.sideBySide=function(e){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof e)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=e,p&&(z(),V()),d},d.viewMode=function(e){if(0===arguments.length)return i.viewMode;if("string"!=typeof e)throw new TypeError("viewMode() expects a string parameter");if(-1===v.indexOf(e))throw new TypeError("viewMode() parameter must be one of ("+v.join(", ")+") value");return i.viewMode=e,u=Math.max(v.indexOf(e),m),M(),d},d.toolbarPlacement=function(e){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof e)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===b.indexOf(e))throw new TypeError("toolbarPlacement() parameter must be one of ("+b.join(", ")+") value");return i.toolbarPlacement=e,p&&(z(),V()),d},d.widgetPositioning=function(t){if(0===arguments.length)return e.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(t))throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if("string"!=typeof t.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),-1===_.indexOf(t.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+_.join(", ")+")");i.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if("string"!=typeof t.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),-1===y.indexOf(t.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+y.join(", ")+")");i.widgetPositioning.vertical=t.vertical}return R(),d},d.calendarWeeks=function(e){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof e)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=e,R(),d},d.showTodayButton=function(e){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof e)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=e,p&&(z(),V()),d},d.showClear=function(e){if(0===arguments.length)return i.showClear;if("boolean"!=typeof e)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=e,p&&(z(),V()),d},d.widgetParent=function(t){if(0===arguments.length)return i.widgetParent;if("string"==typeof t&&(t=e(t)),null!==t&&"string"!=typeof t&&!(t instanceof e))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=t,p&&(z(),V()),d},d.keepOpen=function(e){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof e)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=e,d},d.focusOnShow=function(e){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof e)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=e,d},d.inline=function(e){if(0===arguments.length)return i.inline;if("boolean"!=typeof e)throw new TypeError("inline() expects a boolean parameter");return i.inline=e,d},d.clear=function(){return B(),d},d.keyBinds=function(e){return 0===arguments.length?i.keyBinds:(i.keyBinds=e,d)},d.getMoment=function(e){return E(e)},d.debug=function(e){if("boolean"!=typeof e)throw new TypeError("debug() expects a boolean parameter");return i.debug=e,d},d.allowInputToggle=function(e){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof e)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=e,d}
vendor: 5,055 bytes, line 13
13,d.showClose=function(e){if(0===arguments.length)return i.showClose;if("boolean"!=typeof e)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=e,d},d.keepInvalid=function(e){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof e)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=e,d},d.datepickerInput=function(e){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof e)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=e,d},d.parseInputDate=function(e){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof e)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=e,d},d.disabledTimeIntervals=function(t){if(0===arguments.length)return i.disabledTimeIntervals?e.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!t)return i.disabledTimeIntervals=!1,R(),d;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=t,R(),d},d.disabledHours=function(t){if(0===arguments.length)return i.disabledHours?e.extend({},i.disabledHours):i.disabledHours;if(!t)return i.disabledHours=!1,R(),d;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=J(t),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!L(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}q(r)}return R(),d},d.enabledHours=function(t){if(0===arguments.length)return i.enabledHours?e.extend({},i.enabledHours):i.enabledHours;if(!t)return i.enabledHours=!1,R(),d;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=J(t),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!L(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}q(r)}return R(),d},d.viewDate=function(e){if(0===arguments.length)return s.clone();if(!e)return s=r.clone(),d;if(!("string"==typeof e||t.isMoment(e)||e instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return s=W(e),N(),d},n.is("input"))o=n;else if(0===(o=n.find(i.datepickerInput)).length)o=n.find("input");else if(!o.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(f=0===n.find(".datepickerbutton").length?n.find(".input-group-append"):n.find(".datepickerbutton")),!i.inline&&!o.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return r=E(),s=r.clone(),e.extend(!0,i,function(){var t,r={};return(t=n.is("input")||i.inline?n.data():n.find("input").data()).dateOptions&&t.dateOptions instanceof Object&&(r=e.extend(!0,r,t.dateOptions)),e.each(i,function(e){var n="date"+e.charAt(0).toUpperCase()+e.slice(1);void 0!==t[n]&&(r[e]=t[n])}),r}()),d.options(i),ee(),o.on({change:K,blur:i.debug?"":z,keydown:G,keyup:X,focus:i.allowInputToggle?V:""}),n.is("input")?o.on({focus:V}):f&&(f.on("click",Q),f.on("mousedown",!1)),o.prop("disabled")&&d.disable(),o.is("input")&&0!==o.val().trim().length?q(W(o.val().trim())):i.defaultDate&&void 0===o.attr("placeholder")&&q(i.defaultDate),i.inline&&V(),d};return e.fn.datetimepicker=function(t){t=t||{};var i,r=Array.prototype.slice.call(arguments,1),s=!0;if("object"==typeof t)return this.each(function(){var i,r=e(this);r.data("DateTimePicker")||(i=e.extend(!0,{},e.fn.datetimepicker.defaults,t),r.data("DateTimePicker",n(r,i)))});if("string"==typeof t)return this.each(function(){var n=e(this).data("DateTimePicker");if(!n)throw new Error('bootstrap-datetimepicker("'+t+'") method was called on an element that is not using DateTimePicker');i=n[t].apply(n,r),s=i===n}),s||e.inArray(t,["destroy","hide","show","toggle"])>-1?this:i;throw new TypeError("Invalid arguments for DateTimePicker: "+t)},e.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"ion-android-time",date:"ion-calendar",up:"ion-chevron-up",down:"ion-chevron-down",previous:"ion-chevron-left",next:"ion-chevron-right",today:"ion-pinpoint",clear:"ion-trash-b",close:"ion-android-close"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Pick Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Pick Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Perio
13d",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!1,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))}else this.show()},"control up":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(e){if(e){var t=this.date()||this.getMoment();e.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(e){e&&e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},delete:function(){this.clear()}},debug:!1,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1},e.fn.datetimepicker}),function(e,t){void 0===e&&void 0!==window&&(e=window),"function"==typeof define&&define.amd?define(["jquery"],function(e){return t(e)}):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,function(e){!function(e){"use strict";var t=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,r=/^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 s(t,s){var o=t.nodeName.toLowerCase();if(-1!==e.inArray(o,s))return-1===e.inArray(o,n)||Boolean(t.nodeValue.match(i)||t.nodeValue.match(r));for(var a=e(s).filter(function(e,t){return t instanceof RegExp}),l=0,c=a.length;l<c;l++)if(o.match(a[l]))return!0;return!1}function o(e,t,n){if(n&&"function"==typeof n)return n(e);for(var i=Object.keys(t),r=0,o=e.length;r<o;r++)for(var a=e[r].querySelectorAll("*"),l=0,c=a.length;l<c;l++){var u=a[l],d=u.nodeName.toLowerCase();if(-1!==i.indexOf(d))for(var h=[].slice.call(u.attributes),f=[].concat(t["*"]||[],t[d]||[]),p=0,m=h.length;p<m;p++){var g=h[p];s(g,f)||u.removeAttribute(g.nodeName)}else u.parentNode.removeChild(u)}}"classList"in document.createElement("_")||function(t){if("Element"in t){var n="classList",i="prototype",r=t.Element[i],s=Object,o=function(){var t=e(this);return{add:function(e){return e=Array.prototype.slice.call(arguments).join(" "),t.addClass(e)},remove:function(e){return e=Array.prototype.slice.call(arguments).join(" "),t.removeClass(e)},toggle:function(e,n){return t.toggleClass(e,n)},contains:function(e){return t.hasClass(e)}}};if(s.defineProperty){var a={get:o,enumerable:!0,configurable:!0};try{s.defineProperty(r,n,a)}catch(t){void 0!==t.number&&-2146823252!==t.number||(a.enumerable=!1,s.defineProperty(r,n,a))}}else s[i].__defineGetter__&&r.__defineGetter__(n,o)}}(window);var a,l,c=document.createElement("_");if(c.classList.add("c1","c2"),!c.classList.contains("c2")){var u=DOMTokenList.prototype.add,d=DOMTokenList.prototype.remove;DOMTokenList.prototype.add=function(){Array.prototype.forEach.call(arguments,u.bind(this))},DOMTokenList.prototype.remove=function(){Array.prototype.forEach.call(arguments,d.bind(this))}}if(c.classList.toggle("c3",!1),c.classList.contains("c3")){var h=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return 1 in arguments&&!this.contains(e)==!t?t:h.call(this,e)}}function f(e){if(null==this)throw new TypeError;var t=String(this);if(e&&"[object RegExp]"==l.call(e))throw new TypeError;var n=t.length,i=String(e),r=i.length,s=1<arguments.length?arguments[1]:void 0,o=s?Number(s):0;o!=o&&(o=0);var a=Math.min(Math.max(o,0),n);if(n<r+a)return!1;for(var c=-1;++c<r;)if(t.charCodeAt(a+c)!=i.charCodeAt(c))return!1;return!0}function p(e,t){var n,i=e.selectedOptions,r=[];if(t){for(var s=0,o=i.length;s<o;s++)(n=i[s]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||r.push(n);return r}return i}function m(e,t){for(var n,i=[],r=t||e.selectedOptions,s=0,o=r.length;s<o;s++)(n=r[s]).disabled||"OPTGROUP"===n.parentNode.tagName&&n.parentNode.disabled||i.push(n.value);return e.multiple?i:i.length?i[0]:null}c=null,String.prototype.startsWith||(a=function(){try{var e={},t=Object.defineProperty,n=t(e,e,e)&&t}catch(e){}return n}(),l={}.toString,a?a(String.prototype,"startsWith",{value:f,configurable:!0,writable:!0}):String.prototype.startsWith=f),Object.keys||(Object.keys=function(e,t,n){for(t in n=[],e)n.hasOwnProperty.call(e,t)&&n.push(t);return n}),HTMLSelectElement&&!HTMLSelectElement.prototype.hasOwnProperty("selectedOptions")&&Object.defineProperty(HTMLSelectElement.prototype,"selectedOptions",{get:function(){return this.querySelectorAll(":checked")}});var g={useDefault:!1,_set:e.valHooks.select.set};e.valHooks.select.set=function(t,n){return n&&!g.useDefault&&e(t).data("selected",!0),g._set.apply(this,arguments)};var v=null,y=function(){try{return new Event("change"),!0}catch(e){return!1}}();function _(e,t,n,i){for(var r=["display","subtext","tokens"],s=!1,o=0;o<r.length;o++){var a=r[o],l=e[a];if(l&&(l=l.toString(),"display"===a&&(l=l.replace(/<[^>]+>/g,"")),i&&(l=S(l)),l=l.toUpperCase(),s="contains"===n?0<=l.indexOf(t):l.startsWith(t)))break}return s}function b(e){return parseInt(e,10)||0}e.fn.triggerNative=function(e){var t,n=this[0];n.dispatchEvent?(y?t=new Event(e,{bubbles:!0}):(t=document.createEvent("Event")).initEvent(e,!0,!1),n.dispatchEvent(t)):n.fireEvent?((t=document.createEventObject()).eventType=e,n.fireEvent("on"+e,t)):this.trigger(e)};var w=
vendor: 1,721 bytes, line 13
13{"Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã":"A","Ã
":"A","à ":"a","á":"a","â":"a","ã":"a","ä":"a","Ã¥":"a","Ã":"C","ç":"c","Ã":"D","ð":"d","Ã":"E","Ã":"E","Ã":"E","Ã":"E","è":"e","é":"e","ê":"e","ë":"e","Ã":"I","Ã":"I","Ã":"I","Ã":"I","ì":"i","Ã":"i","î":"i","ï":"i","Ã":"N","ñ":"n","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","Ã":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ã":"U","Ã":"U","Ã":"U","Ã":"U","ù":"u","ú":"u","û":"u","ü":"u","Ã":"Y","ý":"y","ÿ":"y","Ã":"Ae","æ":"ae","Ã":"Th","þ":"th","Ã":"ss","Ä":"A","Ä":"A","Ä":"A","Ä":"a","Ä":"a","Ä
":"a","Ä":"C","Ä":"C","Ä":"C","Ä":"C","Ä":"c","Ä":"c","Ä":"c","Ä":"c","Ä":"D","Ä":"D","Ä":"d","Ä":"d","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"E","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"e","Ä":"G","Ä":"G","Ä ":"G","Ä¢":"G","Ä":"g","Ä":"g","Ä¡":"g","Ä£":"g","Ĥ":"H","Ħ":"H","Ä¥":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Ä®":"I","İ":"I","Ä©":"i","Ä«":"i","Ä":"i","į":"i","ı":"i","Ä´":"J","ĵ":"j","Ķ":"K","Ä·":"k","ĸ":"k","Ĺ":"L","Ä»":"L","Ľ":"L","Ä¿":"L","Å":"L","ĺ":"l","ļ":"l","ľ":"l","Å":"l","Å":"l","Å":"N","Å
":"N","Å":"N","Å":"N","Å":"n","Å":"n","Å":"n","Å":"n","Å":"O","Å":"O","Å":"O","Å":"o","Å":"o","Å":"o","Å":"R","Å":"R","Å":"R","Å":"r","Å":"r","Å":"r","Å":"S","Å":"S","Å":"S","Å ":"S","Å":"s","Å":"s","Å":"s","Å¡":"s","Å¢":"T","Ť":"T","Ŧ":"T","Å£":"t","Å¥":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Å®":"U","Ű":"U","Ų":"U","Å©":"u","Å«":"u","Å":"u","ů":"u","ű":"u","ų":"u","Å´":"W","ŵ":"w","Ŷ":"Y","Å·":"y","Ÿ":"Y","Ź":"Z","Å»":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Å":"Oe","Å":"oe","Å":"'n","Å¿":"s"}
vendor: 46,544 bytes, line 13
13,x=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,C=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\u1ab0-\\u1aff\\u1dc0-\\u1dff]","g");function E(e){return w[e]}function S(e){return(e=e.toString())&&e.replace(x,E).replace(C,"")}var k,T,D,I,O=(k={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},T="(?:"+Object.keys(k).join("|")+")",D=RegExp(T),I=RegExp(T,"g"),function(e){return e=null==e?"":""+e,D.test(e)?e.replace(I,A):e});function A(e){return k[e]}var N={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"A",66:"B",67:"C",68:"D",69:"E",70:"F",71:"G",72:"H",73:"I",74:"J",75:"K",76:"L",77:"M",78:"N",79:"O",80:"P",81:"Q",82:"R",83:"S",84:"T",85:"U",86:"V",87:"W",88:"X",89:"Y",90:"Z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},M={success:!1,major:"3"};try{M.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split("."),M.major=M.full[0],M.success=!0}catch(e){}var L=0,P=".bs.select",j={DISABLED:"disabled",DIVIDER:"divider",SHOW:"open",DROPUP:"dropup",MENU:"dropdown-menu",MENURIGHT:"dropdown-menu-right",MENULEFT:"dropdown-menu-left",BUTTONCLASS:"btn-default",POPOVERHEADER:"popover-title",ICONBASE:"glyphicon",TICKICON:"glyphicon-ok"},H={MENU:"."+j.MENU},F={div:document.createElement("div"),span:document.createElement("span"),i:document.createElement("i"),subtext:document.createElement("small"),a:document.createElement("a"),li:document.createElement("li"),whitespace:document.createTextNode("Â "),fragment:document.createDocumentFragment()};F.noResults=F.li.cloneNode(!1),F.noResults.className="no-results",F.a.setAttribute("role","option"),F.a.className="dropdown-item",F.subtext.className="text-muted",F.text=F.span.cloneNode(!1),F.text.className="text",F.checkMark=F.span.cloneNode(!1);var $=new RegExp("38|40"),R=new RegExp("^9$|27"),q={li:function(e,t,n){var i=F.li.cloneNode(!1);return e&&(1===e.nodeType||11===e.nodeType?i.appendChild(e):i.innerHTML=e),void 0!==t&&""!==t&&(i.className=t),null!=n&&i.classList.add("optgroup-"+n),i},a:function(e,t,n){var i=F.a.cloneNode(!0);return e&&(11===e.nodeType?i.appendChild(e):i.insertAdjacentHTML("beforeend",e)),void 0!==t&&""!==t&&i.classList.add.apply(i.classList,t.split(/\s+/)),n&&i.setAttribute("style",n),i},text:function(e,t){var n,i,r=F.text.cloneNode(!1);if(e.content)r.innerHTML=e.content;else{if(r.textContent=e.text,e.icon){var s=F.whitespace.cloneNode(!1);(i=(!0===t?F.i:F.span).cloneNode(!1)).className=this.options.iconBase+" "+e.icon,F.fragment.appendChild(i),F.fragment.appendChild(s)}e.subtext&&((n=F.subtext.cloneNode(!1)).textContent=e.subtext,r.appendChild(n))}if(!0===t)for(;0<r.childNodes.length;)F.fragment.appendChild(r.childNodes[0]);else F.fragment.appendChild(r);return F.fragment},label:function(e){var t,n,i=F.text.cloneNode(!1);if(i.innerHTML=e.display,e.icon){var r=F.whitespace.cloneNode(!1);(n=F.span.cloneNode(!1)).className=this.options.iconBase+" "+e.icon,F.fragment.appendChild(n),F.fragment.appendChild(r)}return e.subtext&&((t=F.subtext.cloneNode(!1)).textContent=e.subtext,i.appendChild(t)),F.fragment.appendChild(i),F.fragment}},z=function(t,n){var i=this;g.useDefault||(e.valHooks.select.set=g._set,g.useDefault=!0),this.$element=e(t),this.$newElement=null,this.$button=null,this.$menu=null,this.options=n,this.selectpicker={main:{},search:{},current:{},view:{},isSearching:!1,keydown:{keyHistory:"",resetKeyHistory:{start:function(){return setTimeout(function(){i.selectpicker.keydown.keyHistory=""},800)}}}},this.sizeInfo={},null===this.options.title&&(this.options.title=this.$element.attr("title"));var r=this.options.windowPadding;"number"==typeof r&&(this.options.windowPadding=[r,r,r,r]),this.val=z.prototype.val,this.render=z.prototype.render,this.refresh=z.prototype.refresh,this.setStyle=z.prototype.setStyle,this.selectAll=z.prototype.selectAll,this.deselectAll=z.prototype.deselectAll,this.destroy=z.prototype.destroy,this.remove=z.prototype.remove,this.show=z.prototype.show,this.hide=z.prototype.hide,this.init()};function B(n){var i,r=arguments,s=n;if([].shift.apply(r),!M.success){try{M.full=(e.fn.dropdown.Constructor.VERSION||"").split(" ")[0].split(".")}catch(n){z.BootstrapVersion?M.full=z.BootstrapVersion.split(" ")[0].split("."):(M.full=[M.major,"0","0"],console.warn("There was an issue retrieving Bootstrap's version. Ensure Bootstrap is being loaded before bootstrap-select and there is no namespace collision. If loading Bootstrap asynchronously, the version may need to be manually specified via $.fn.selectpicker.Constructor.BootstrapVersion.",n))}M.major=M.full[0],M.success=!0}if("4"===M.major){var o=[];z.DEFAULTS.style===j.BUTTONCLASS&&o.push({name:"style",className:"BUTTONCLASS"}),z.DEFAULTS.iconBase===j.ICONBASE&&o.push({name:"iconBase",className:"ICONBASE"}),z.DEFAULTS.tickIcon===j.TICKICON&&o.push({name:"tickIcon",className:"TICKICON"}),j.DIVIDER="dropdown-divider",j.SHOW="show",j.BUTTONCLASS="btn-light",j.POPOVERHEADER="popover-header",j.ICONBASE="",j.TICKICON="bs-ok-default";for(var a=0;a<o.length;a++)n=o[a],z.DEFAULTS[n.name]=j[n.className]}var l=this.each(function(){var n=e(this);if(n.is("select")){var o=n.data("selectpicker"),a="object"==typeof s&&s;if(o){if(a)for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(o.options[l]=a[l])}else{var c=n.data();for(var u in c)Object.prototype.hasOwnProperty.call(c,u)&&-1!==e.inArray(u,t)&&delete c[u];var d=e.extend({},z.DEFAULTS,e.fn.selectpicker.defaults||{},c,a);d.template=e.extend({},z.DEFAULTS.template,e.fn.selectpicker.defaults?e.fn.selectpicker.defaults.template:{},c.template,a.template),n.data("selectpicker",o=new z(this,d))}"string"==typeof s&&(i=o[s]instanceof Function?o[s].apply(o,r):o.options[s])}});return void 0!==i?i:l}z.VERSION="1.13.18",z.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(e,t){return 1==e?"{0} item selected":"{0} items selected"},maxOptionsText:function(e,t){return[1==e?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:j.BUTTONCLASS,size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:j.ICONBASE,tickIcon:j.TICKICON,showTick:!1,template:{caret:'<span class="caret"></span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,windowPadding:0,virtualScroll:600,display:!1,sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role","tabindex","style",/^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:[]}},z.prototype={constructor:z,init:function(){var e=this,t=this.$element.attr("id"),n=this.$element[0],i=n.form;L++,this.selectId="bs-select-"+L,n.classList.add("bs-select-hidden"),this.multiple=this.$element.prop("multiple"),this.autofocus=this.$element.prop("autofocus"),n.classList.contains("show-tick")&&(this.options.showTick=!0),this.$newElement=this.createDropdown(),this.buildData(),this.$element.after(this.$newElement).prependTo(this.$newElement),i&&null===n.form&&(i.id||(i.id="form-"+this.selectId),n.setAttribute("form",i.id)),this.$button=this.$newElement.children("button"),this.$menu=this.$newElement.children(H.MENU),this.$menuInner=this.$menu.children(".inner"),this.$searchbox=this.$menu.find("input"),n.classList.remove("bs-select-hidden"),!0===this.options.dropdownAlignRight&&this.$menu[0].classList.add(j.MENURIGHT),void 0!==t&&this.$button.attr("data-id",t),this.checkDisabled(),this.clickListener(),this.options.liveSearch?(this.liveSearchListener(),this.focusedParent=this.$searchbox[0]):this.focusedParent=this.$menuInner[0],this.setStyle(),this.render(),this.setWidth(),this.options.container?this.selectPosition():this.$element.on("hide"+P,function(){if(e.isVirtual()){var t=e.$menuInner[0],n=t.firstChild.cloneNode(!1);t.replaceChild(n,t.firstChild),t.scrollTop=0}}),this.$menu.data("this",this),this.$newElement.data("this",this),this.options.mobile&&this.mobile(),this.$newElement.on({"hide.bs.dropdown":function(t){e.$element.trigger("hide"+P,t)},"hidden.bs.dropdown":function(t){e.$element.trigger("hidden"+P,t)},"show.bs.dropdown":function(t){e.$element.trigger("show"+P,t)},"shown.bs.dropdown":function(t){e.$element.trigger("shown"+P,t)}}),n.hasAttribute("required")&&this.$element.on("invalid"+P,function(){e.$button[0].classList.add("bs-invalid"),e.$element.on("shown"+P+".invalid",function(){e.$element.val(e.$element.val()).off("shown"+P+".invalid")}).on("rendered"+P,function(){this.validity.valid&&e.$button[0].classList.remove("bs-invalid"),e.$element.off("rendered"+P)}),e.$button.on("blur"+P,function(){e.$element.trigger("focus").trigger("blur"),e.$button.off("blur"+P)})}),setTimeout(function(){e.buildList(),e.$element.trigger("loaded"+P)})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",n=this.multiple?' aria-multiselectable="true"':"",i="",r=this.autofocus?" autofocus":"";M.major<4&&this.$element.parent().hasClass("input-group")&&(i=" input-group-btn");var s,o="",a="",l="",c="";return this.options.header&&(o='<div class="'+j.POPOVERHEADER+'"><button type="button" class="close" aria-hidden="true">×</button>'+this.options.header+"</div>"),this.options.liveSearch&&(a='<div class="bs-searchbox"><input type="search" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+O(this.options.liveSearchPlaceholder)+'"')+' role="combobox" aria-label="Search" aria-controls="'+this.selectId+'" aria-autocomplete="list"></div>'),this.multiple&&this.options.actionsBox&&(l='<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn '+j.BUTTONCLASS+'">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn '+j.BUTTONCLASS+'">'+this.options.deselectAllText+"</button></div></div>"),this.multiple&&this.options.doneButton&&(c='<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm '+j.BUTTONCLASS+'">'+this.options.doneButtonText+"</button></div></div>"),s='<div class="dropdown bootstrap-select'+t+i+'"><button type="button" tabindex="-1" class="'+this.options.styleBase+' dropdown-toggle" '+("static"===this.options.display?'data-display="static"':"")+'data-toggle="dropdown"'+r+' role="combobox" aria-owns="'+this.selectId+'" aria-haspopup="listbox" aria-expanded="false"><div class="filter-option"><div class="filter-option-inner"><div class="filter-option-inner-inner"></div></div> </div>'+("4"===M.major?"":'<span class="bs-caret">'+this.options.template.caret+"</span>")+'</button><div class="'+j.MENU+" "+("4"===M.major?"":j.SHOW)+'">'+o+a+l+'<div class="inner '+j.SHOW+'" role="listbox" id="'+this.selectId+'" tabindex="-1" '+n+'><ul class="'+j.MENU+" inner "+("4"===M.major?j.SHOW:"")+'" role="presentation"></ul></div>'+c+"</div></div>",e(s)},setPositionData:function(){this.selectpicker.view.canHighlight=[],this.selectpicker.view.size=0,this.selectpicker.view.firstHighlightIndex=!1;for(var e=0;e<this.selectpicker.current.data.length;e++){var t=this.selectpicker.current.data[e],n=!0;"divider"===t.type?(n=!1,t.height=this.sizeInfo.dividerHeight):"optgroup-label"===t.type?(n=!1,t.height=this.sizeInfo.dropdownHeaderHeight):t.height=this.sizeInfo.liHeight,t.disabled&&(n=!1),this.selectpicker.view.canHighlight.push(n),n&&(this.selectpicker.view.size++,t.posinset=this.selectpicker.view.size,!1===this.selectpicker.view.firstHighlightIndex&&(this.selectpicker.view.firstHighlightIndex=e)),t.position=(0===e?0:this.selectpicker.current.data[e-1].position)+t.height}},isVirtual:function(){return!1!==this.options.virtualScroll&&this.selectpicker.main.elements.length>=this.options.virtualScroll||!0===this.options.virtualScroll},createView:function(t,n,i){var r,s,a=this,l=0,c=[];if(this.selectpicker.isSearching=t,this.selectpicker.current=t?this.selectpicker.search:this.selectpicker.main,this.setPositionData(),n)if(i)l=this.$menuInner[0].scrollTop;else if(!a.multiple){var u=a.$element[0],d=(u.options[u.selectedIndex]||{}).liIndex;if("number"==typeof d&&!1!==a.options.size){var h=a.selectpicker.main.data[d],f=h&&h.position;f&&(l=f-(a.sizeInfo.menuInnerHeight+a.sizeInfo.liHeight)/2)}}function p(e,n){var i,l,u,d,h,f,p,m,g=a.selectpicker.current.elements.length,v=[],y=!0,_=a.isVirtual();a.selectpicker.view.scrollTop=e,i=Math.ceil(a.sizeInfo.menuInnerHeight/a.sizeInfo.liHeight*1.5),l=Math.round(g/i)||1;for(var b=0;b<l;b++){var w=(b+1)*i;if(b===l-1&&(w=g),v[b]=[b*i+(b?1:0),w],!g)break;void 0===h&&e-1<=a.selectpicker.current.data[w-1].position-a.sizeInfo.menuInnerHeight&&(h=b)}if(void 0===h&&(h=0),f=[a.selectpicker.view.position0,a.selectpicker.view.position1],u=Math.max(0,h-1),d=Math.min(l-1,h+1),a.selectpicker.view.position0=!1===_?0:Math.max(0,v[u][0])||0,a.selectpicker.view.position1=!1===_?g:Math.min(g,v[d][1])||0,p=f[0]!==a.selectpicker.view.position0||f[1]!==a.selectpicker.view.position1,void 0!==a.activeIndex&&(s=a.selectpicker.main.elements[a.prevActiveIndex],c=a.selectpicker.main.elements[a.activeIndex],r=a.selectpicker.main.elements[a.selectedIndex],n&&(a.activeIndex!==a.selectedIndex&&a.defocusItem(c),a.activeIndex=void 0),a.activeIndex&&a.activeIndex!==a.selectedIndex&&a.defocusItem(r)),void 0!==a.prevActiveIndex&&a.prevActiveIndex!==a.activeIndex&&a.prevActiveIndex!==a.selectedIndex&&a.defocusItem(s),(n||p)&&(m=a.selectpicker.view.visibleElements?a.selectpicker.view.visibleElements.slice():[],a.selectpicker.view.visibleElements=!1===_?a.selectpicker.current.elements:a.selectpicker.current.elements.slice(a.selectpicker.view.position0,a.selectpicker.view.position1),a.setOptionStatus(),(t||!1===_&&n)&&(y=!function(e,t){return e.length===t.length&&e.every(function(e,n){return e===t[n]})}(m,a.selectpicker.view.visibleElements)),(n||!0===_)&&y)){var x,C,E=a.$menuInner[0],S=document.createDocumentFragment(),k=E.firstChild.cloneNode(!1),T=a.selectpicker.view.visibleElements,D=[];E.replaceChild(k,E.firstChild),b=0;for(var I=T.length;b<I;b++){var O,A,N=T[b];a.options.sanitize&&(O=N.lastChild)&&(A=a.selectpicker.current.data[b+a.selectpicker.view.position0])&&A.content&&!A.sanitized&&(D.push(O),A.sanitized=!0),S.appendChild(N)}if(a.options.sanitize&&D.length&&o(D,a.options.whiteList,a.options.sanitizeFn),!0===_?(x=0===a.selectpicker.view.position0?0:a.selectpicker.current.data[a.selectpicker.view.position0-1].position,C=a.selectpicker.view.position1>g-1?0:a.selectpicker.current.data[g-1].position-a.selectpicker.current.data[a.selectpicker.view.position1-1].position,E.firstChild.style.marginTop=x+"px",E.firstChild.style.marginBottom=C+"px"):(E.firstChild.style.marginTop=0,E.firstChild.style.marginBottom=0),E.firstChild.appendChild(S),!0===_&&a.sizeInfo.hasScrollBar){var M=E.firstChild.offsetWidth;if(n&&M<a.sizeInfo.menuInnerInnerWidth&&a.sizeInfo.totalMenuWidth>a.sizeInfo.selectWidth)E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px";else if(M>a.sizeInfo.menuInnerInnerWidth){a.$menu[0].style.minWidth=0;var L=E.firstChild.offsetWidth;L>a.sizeInfo.menuInnerInnerWidth&&(a.sizeInfo.menuInnerInnerWidth=L,E.firstChild.style.minWidth=a.sizeInfo.menuInnerInnerWidth+"px"),a.$menu[0].style.minWidth=""}}}if(a.prevActiveIndex=a.activeIndex,a.options.liveSearch){if(t&&n){var P,j=0;a.selectpicker.view.canHighlight[j]||(j=1+a.selectpicker.view.canHighlight.slice(1).indexOf(!0)),P=a.selectpicker.view.visibleElements[j],a.defocusItem(a.selectpicker.view.currentActive),a.activeIndex=(a.selectpicker.current.data[j]||{}).index,a.focusItem(P)}}else a.$menuInner.trigger("focus")}p(l,!0),this.$menuInner.off("scroll.createView").on("scroll.createView",function(e,t){a.noScroll||p(this.scrollTop,t),a.noScroll=!1}),e(window).off("resize"+P+"."+this.selectId+".createView").on("resize"+P+"."+this.selectId+".createView",function(){a.$newElement.hasClass(j.SHOW)&&p(a.$menuInner[0].scrollTop)})},focusItem:function(e,t,n){if(e){t=t||this.selectpicker.main.data[this.activeIndex];var i=e.firstChild;i&&(i.setAttribute("aria-setsize",this.selectpicker.view.size),i.setAttribute("aria-posinset",t.posinset),!0!==n&&(this.focusedParent.setAttribute("aria-activedescendant",i.id),e.classList.add("active"),i.classList.add("active")))}},defocusItem:function(e){e&&(e.classList.remove("active"),e.firstChild&&e.firstChild.classList.remove("active"))},setPlaceholder:function(){var e=this,t=!1;if(this.options.title&&!this.multiple){this.selectpicker.view.titleOption||(this.selectpicker.view.titleOption=document.createElement("option")),t=!0;var n=this.$element[0],i=!1,r=!this.selectpicker.view.titleOption.parentNode,s=n.selectedIndex,o=n.options[s],a=window.performance&&window.performance.getEntriesByType("navigation"),l=a&&a.length?"back_forward"!==a[0].type:2!==window.performance.navigation.type;r&&(this.selectpicker.view.titleOption.className="bs-title-option",this.selectpicker.view.titleOption.value="",i=!o||0===s&&!1===o.defaultSelected&&void 0===this.$element.data("selected")),!r&&0===this.selectpicker.view.titleOption.index||n.insertBefore(this.selectpicker.view.titleOption,n.firstChild),i&&l?n.selectedIndex=0:"complete"!==document.readyState&&window.addEventListener("pageshow",function(){e.selectpicker.view.displayedValue!==n.value&&e.render()})}return t},buildData:function(){var e=':not([hidden]):not([data-hidden="true"])',t=[],n=0,i=this.setPlaceholder()?1:0;this.options.hideDisabled&&(e+=":not(:disabled)");var r=this.$element[0].querySelectorAll("select > *"+e);function s(e){var n=t[t.length-1];n&&"divider"===n.type&&(n.optID||e.optID)||((e=e||{}).type="divider",t.push(e))}function o(e,n){if((n=n||{}).divider="true"===e.getAttribute("data-divider"),n.divider)s({optID:n.optID});else{var i=t.length,r=e.style.cssText,o=r?O(r):"",a=(e.className||"")+(n.optgroupClass||"");n.optID&&(a="opt "+a),n.optionClass=a.trim(),n.inlineStyle=o,n.text=e.textContent,n.content=e.getAttribute("data-content"),n.tokens=e.getAttribute("data-tokens"),n.subtext=e.getAttribute("data-subtext"),n.icon=e.getAttribute("data-icon"),e.liIndex=i,n.display=n.content||n.text,n.type="option",n.index=i,n.option=e,n.selected=!!e.selected,n.disabled=n.disabled||!!e.disabled,t.push(n)}}function a(r,a){var l=a[r],c=!(r-1<i)&&a[r-1],u=a[r+1],d=l.querySelectorAll("option"+e);if(d.length){var h,f,p={display:O(l.label),subtext:l.getAttribute("data-subtext"),icon:l.getAttribute("data-icon"),type:"optgroup-label",optgroupClass:" "+(l.className||"")};n++,c&&s({optID:n}),p.optID=n,t.push(p);for(var m=0,g=d.length;m<g;m++){var v=d[m];0===m&&(f=(h=t.length-1)+g),o(v,{headerIndex:h,lastIndex:f,optID:p.optID,optgroupClass:p.optgroupClass,disabled:l.disabled})}u&&s({optID:n})}}for(var l=r.length,c=i;c<l;c++){var u=r[c];"OPTGROUP"!==u.tagName?o(u,{}):a(c,r)}this.selectpicker.main.data=this.selectpicker.current.data=t},buildList:function(){var e=this,t=this.selectpicker.main.data,n=[],i=0;function r(t){var r,s=0;switch(t.type){case"divider":r=q.li(!1,j.DIVIDER,t.optID?t.optID+"div":void 0);break;case"option":(r=q.li(q.a(q.text.call(e,t),t.optionClass,t.inlineStyle),"",t.optID)).firstChild&&(r.firstChild.id=e.selectId+"-"+t.index);break;case"optgroup-label":r=q.li(q.label.call(e,t),"dropdown-header"+t.optgroupClass,t.optID)}t.element=r,n.push(r),t.display&&(s+=t.display.length),t.subtext&&(s+=t.subtext.length),t.icon&&(s+=1),i<s&&(i=s,e.selectpicker.view.widestOption=n[n.length-1])}!e.options.showTick&&!e.multiple||F.checkMark.parentNode||(F.checkMark.className=this.options.iconBase+" "+e.options.tickIcon+" check-mark",F.a.appendChild(F.checkMark));for(var s=t.length,o=0;o<s;o++)r(t[o]);this.selectpicker.main.elements=this.selectpicker.current.elements=n},findLis:function(){return this.$menuInner.find(".inner > li")},render:function(){var e,t=this,n=this.$element[0],i=this.setPlaceholder()&&0===n.selectedIndex,r=p(n,this.options.hideDisabled),s=r.length,a=this.$button[0],l=a.querySelector(".filter-option-inner-inner"),c=document.createTextNode(this.options.multipleSeparator),u=F.fragment.cloneNode(!1),d=!1;if(a.classList.toggle("bs-placeholder",t.multiple?!s:!m(n,r)),t.multiple||1!==r.length||(t.selectpicker.view.displayedValue=m(n,r)),"static"===this.options.selectedTextFormat)u=q.text.call(this,{text:this.options.title},!0);else if(!1===(this.multiple&&-1!==this.options.selectedTextFormat.indexOf("count")&&1<s&&(1<(e=this.options.selectedTextFormat.split(">")).length&&s>e[1]||1===e.length&&2<=s))){if(!i){for(var h=0;h<s&&h<50;h++){var f=r[h],g=this.selectpicker.main.data[f.liIndex],v={};this.multiple&&0<h&&u.appendChild(c.cloneNode(!1)),f.title?v.text=f.title:g&&(g.content&&t.options.showContent?(v.content=g.content.toString(),d=!0):(t.options.showIcon&&(v.icon=g.icon),t.options.showSubtext&&!t.multiple&&g.subtext&&(v.subtext=" "+g.subtext),v.text=f.textContent.trim())),u.appendChild(q.text.call(this,v,!0))}49<s&&u.appendChild(document.createTextNode("..."))}}else{var y=':not([hidden]):not([data-hidden="true"]):not([data-divider="true"])';this.options.hideDisabled&&(y+=":not(:disabled)");var _=this.$element[0].querySelectorAll("select > option"+y+", optgroup"+y+" option"+y).length,b="function"==typeof this.options.countSelectedText?this.options.countSelectedText(s,_):this.options.countSelectedText;u=q.text.call(this,{text:b.replace("{0}",s.toString()).replace("{1}",_.toString())},!0)}if(null==this.options.title&&(this.options.title=this.$element.attr("title")),u.childNodes.length||(u=q.text.call(this,{text:void 0!==this.options.title?this.options.title:this.options.noneSelectedText},!0)),a.title=u.textContent.replace(/<[^>]*>?/g,"").trim(),this.options.sanitize&&d&&o([u],t.options.whiteList,t.options.sanitizeFn),l.innerHTML="",l.appendChild(u),M.major<4&&this.$newElement[0].classList.contains("bs3-has-addon")){var w=a.querySelector(".filter-expand"),x=l.cloneNode(!0);x.className="filter-expand",w?a.replaceChild(x,w):a.appendChild(x)}this.$element.trigger("rendered"+P)},setStyle:function(e,t){var n,i=this.$button[0],r=this.$newElement[0],s=this.options.style.trim();this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,"")),M.major<4&&(r.classList.add("bs3"),r.parentNode.classList&&r.parentNode.classList.contains("input-group")&&(r.previousElementSibling||r.nextElementSibling)&&(r.previousElementSibling||r.nextElementSibling).classList.contains("input-group-addon")&&r.classList.add("bs3-has-addon")),n=e?e.trim():s,"add"==t?n&&i.classList.add.apply(i.classList,n.split(" ")):"remove"==t?n&&i.classList.remove.apply(i.classList,n.split(" ")):(s&&i.classList.remove.apply(i.classList,s.split(" ")),n&&i.classList.add.apply(i.classList,n.split(" ")))},liHeight:function(t){if(t||!1!==this.options.size&&!Object.keys(this.sizeInfo).length){var n,i=F.div.cloneNode(!1),r=F.div.cloneNode(!1),s=F.div.cloneNode(!1),o=document.createElement("ul"),a=F.li.cloneNode(!1),l=F.li.cloneNode(!1),c=F.a.cloneNode(!1),u=F.span.cloneNode(!1),d=this.options.header&&0<this.$menu.find("."+j.POPOVERHEADER).length?this.$menu.find("."+j.POPOVERHEADER)[0].cloneNode(!0):null,h=this.options.liveSearch?F.div.cloneNode(!1):null,f=this.options.actionsBox&&this.multiple&&0<this.$menu.find(".bs-actionsbox").length?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,p=this.options.doneButton&&this.multiple&&0<this.$menu.find(".bs-donebutton").length?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null,m=this.$element.find("option")[0];if(this.sizeInfo.selectWidth=this.$newElement[0].offsetWidth,u.className="text",c.className="dropdown-item "+(m?m.className:""),i.className=this.$menu[0].parentNode.className+" "+j.SHOW,i.style.width=0,"auto"===this.options.width&&(r.style.minWidth=0),r.className=j.MENU+" "+j.SHOW,s.className="inner "+j.SHOW,o.className=j.MENU+" inner "+("4"===M.major?j.SHOW:""),a.className=j.DIVIDER,l.className="dropdown-header",u.appendChild(document.createTextNode("â")),this.selectpicker.current.data.length)for(var g=0;g<this.selectpicker.current.data.length;g++){var v=this.selectpicker.current.data[g];if("option"===v.type){n=v.element;break}}else n=F.li.cloneNode(!1),c.appendChild(u),n.appendChild(c);if(l.appendChild(u.cloneNode(!0)),this.selectpicker.view.widestOption&&o.appendChild(this.selectpicker.view.widestOption.cloneNode(!0)),o.appendChild(n),o.appendChild(a),o.appendChild(l),d&&r.appendChild(d),h){var y=document.createElement("input");h.className="bs-searchbox",y.className="form-control",h.appendChild(y),r.appendChild(h)}f&&r.appendChild(f),s.appendChild(o),r.appendChild(s),p&&r.appendChild(p),i.appendChild(r),document.body.appendChild(i);var _,w=n.offsetHeight,x=l?l.offsetHeight:0,C=d?d.offsetHeight:0,E=h?h.offsetHeight:0,S=f?f.offsetHeight:0,k=p?p.offsetHeight:0,T=e(a).outerHeight(!0),D=!!window.getComputedStyle&&window.getComputedStyle(r),I=r.offsetWidth,O=D?null:e(r),A={vert:b(D?D.paddingTop:O.css("paddingTop"))+b(D?D.paddingBottom:O.css("paddingBottom"))+b(D?D.borderTopWidth:O.css("borderTopWidth"))+b(D?D.borderBottomWidth:O.css("borderBottomWidth")),horiz:b(D?D.paddingLeft:O.css("paddingLeft"))+b(D?D.paddingRight:O.css("paddingRight"))+b(D?D.borderLeftWidth:O.css("borderLeftWidth"))+b(D?D.borderRightWidth:O.css("borderRightWidth"))},N={vert:A.vert+b(D?D.marginTop:O.css("marginTop"))+b(D?D.marginBottom:O.css("marginBottom"))+2,horiz:A.horiz+b(D?D.marginLeft:O.css("marginLeft"))+b(D?D.marginRight:O.css("marginRight"))+2};s.style.overflowY="scroll",_=r.offsetWidth-I,document.body.removeChild(i),this.sizeInfo.liHeight=w,this.sizeInfo.dropdownHeaderHeight=x,this.sizeInfo.headerHeight=C,this.sizeInfo.searchHeight=E,this.sizeInfo.actionsHeight=S,this.sizeInfo.doneButtonHeight=k,this.sizeInfo.dividerHeight=T,this.sizeInfo.menuPadding=A,this.sizeInfo.menuExtras=N,this.sizeInfo.menuWidth=I,this.sizeInfo.menuInnerInnerWidth=I-A.horiz,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth,this.sizeInfo.scrollBarWidth=_,this.sizeInfo.selectHeight=this.$newElement[0].offsetHeight,this.setPositionData()}},getSelectPosition:function(){var t,n=e(window),i=this.$newElement.offset(),r=e(this.options.container);this.options.container&&r.length&&!r.is("body")?((t=r.offset()).top+=parseInt(r.css("borderTopWidth")),t.left+=parseInt(r.css("borderLeftWidth"))):t={top:0,left:0};var s=this.options.windowPadding;this.sizeInfo.selectOffsetTop=i.top-t.top-n.scrollTop(),this.sizeInfo.selectOffsetBot=n.height()-this.sizeInfo.selectOffsetTop-this.sizeInfo.selectHeight-t.top-s[2],this.sizeInfo.selectOffsetLeft=i.left-t.left-n.scrollLeft(),this.sizeInfo.selectOffsetRight=n.width()-this.sizeInfo.selectOffsetLeft-this.sizeInfo.selectWidth-t.left-s[1],this.sizeInfo.selectOffsetTop-=s[0],this.sizeInfo.selectOffsetLeft-=s[3]},setMenuSize:function(e){this.getSelectPosition();var t,n,i,r,s,o,a,l,c=this.sizeInfo.selectWidth,u=this.sizeInfo.liHeight,d=this.sizeInfo.headerHeight,h=this.sizeInfo.searchHeight,f=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,m=this.sizeInfo.dividerHeight,g=this.sizeInfo.menuPadding,v=0;if(this.options.dropupAuto&&(a=u*this.selectpicker.current.elements.length+g.vert,l=this.sizeInfo.selectOffsetTop-this.sizeInfo.selectOffsetBot>this.sizeInfo.menuExtras.vert&&a+this.sizeInfo.menuExtras.vert+50>this.sizeInfo.selectOffsetBot,!0===this.selectpicker.isSearching&&(l=this.selectpicker.dropup),this.$newElement.toggleClass(j.DROPUP,l),this.selectpicker.dropup=l),"auto"===this.options.size)r=3<this.selectpicker.current.elements.length?3*this.sizeInfo.liHeight+this.sizeInfo.menuExtras.vert-2:0,n=this.sizeInfo.selectOffsetBot-this.sizeInfo.menuExtras.vert,i=r+d+h+f+p,o=Math.max(r-g.vert,0),this.$newElement.hasClass(j.DROPUP)&&(n=this.sizeInfo.selectOffsetTop-this.sizeInfo.menuExtras.vert),t=(s=n)-d-h-f-p-g.vert;else if(this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size){for(var y=0;y<this.options.size;y++)"divider"===this.selectpicker.current.data[y].type&&v++;t=(n=u*this.options.size+v*m+g.vert)-g.vert,s=n+d+h+f+p,i=o=""}this.$menu.css({"max-height":s+"px",overflow:"hidden","min-height":i+"px"}),this.$menuInner.css({"max-height":t+"px","overflow-y":"auto","min-height":o+"px"}),this.sizeInfo.menuInnerHeight=Math.max(t,1),this.selectpicker.current.data.length&&this.selectpicker.current.data[this.selectpicker.current.data.length-1].position>this.sizeInfo.menuInnerHeight&&(this.sizeInfo.hasScrollBar=!0,this.sizeInfo.totalMenuWidth=this.sizeInfo.menuWidth+this.sizeInfo.scrollBarWidth),"auto"===this.options.dropdownAlignRight&&this.$menu.toggleClass(j.MENURIGHT,this.sizeInfo.selectOffsetLeft>this.sizeInfo.selectOffsetRight&&this.sizeInfo.selectOffsetRight<this.sizeInfo.totalMenuWidth-c),this.dropdown&&this.dropdown._popper&&this.dropdown._popper.update()},setSize:function(t){if(this.liHeight(t),this.options.header&&this.$menu.css("padding-top",0),!1!==this.options.size){var n=this,i=e(window);this.setMenuSize(),this.options.liveSearch&&this.$searchbox.off("input.setMenuSize propertychange.setMenuSize").on("input.setMenuSize propertychange.setMenuSize",function(){return n.setMenuSize()}),"auto"===this.options.size?i.off("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize").on("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize",function(){return n.setMenuSize()}):this.options.size&&"auto"!=this.options.size&&this.selectpicker.current.elements.length>this.options.size&&i.off("resize"+P+"."+this.selectId+".setMenuSize scroll"+P+"."+this.selectId+".setMenuSize")}this.createView(!1,!0,t)},setWidth:function(){var e=this;"auto"===this.options.width?requestAnimationFrame(function(){e.$menu.css("min-width","0"),e.$element.on("loaded"+P,function(){e.liHeight(),e.setMenuSize();var t=e.$newElement.clone().appendTo("body"),n=t.css("width","auto").children("button").outerWidth();t.remove(),e.sizeInfo.selectWidth=Math.max(e.sizeInfo.totalMenuWidth,n),e.$newElement.css("width",e.sizeInfo.selectWidth+"px")})}):"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width","")),this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement[0].classList.remove("fit-width")},selectPosition:function(){function t(t){var a={},l=s.options.display||!!e.fn.dropdown.Constructor.Default&&e.fn.dropdown.Constructor.Default.display;s.$bsContainer.addClass(t.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass(j.DROPUP,t.hasClass(j.DROPUP)),n=t.offset(),o.is("body")?i={top:0,left:0}:((i=o.offset()).top+=parseInt(o.css("borderTopWidth"))-o.scrollTop(),i.left+=parseInt(o.css("borderLeftWidth"))-o.scrollLeft()),r=t.hasClass(j.DROPUP)?0:t[0].offsetHeight,(M.major<4||"static"===l)&&(a.top=n.top-i.top+r,a.left=n.left-i.left),a.width=t[0].offsetWidth,s.$bsContainer.css(a)}this.$bsContainer=e('<div class="bs-container" />');var n,i,r,s=this,o=e(this.options.container);this.$button.on("click.bs.dropdown.data-api",function(){s.isDisabled()||(t(s.$newElement),s.$bsContainer.appendTo(s.options.container).toggleClass(j.SHOW,!s.$button.hasClass(j.SHOW)).append(s.$menu))}),e(window).off("resize"+P+"."+this.selectId+" scroll"+P+"."+this.selectId).on("resize"+P+"."+this.selectId+" scroll"+P+"."+this.selectId,function(){s.$newElement.hasClass(j.SHOW)&&t(s.$newElement)}),this.$element.on("hide"+P,function(){s.$menu.data("height",s.$menu.height()),s.$bsContainer.detach()})},setOptionStatus:function(e){var t=this;if(t.noScroll=!1,t.selectpicker.view.visibleElements&&t.selectpicker.view.visibleElements.length)for(var n=0;n<t.selectpicker.view.visibleElements.length;n++){var i=t.selectpicker.current.data[n+t.selectpicker.view.position0],r=i.option;r&&(!0!==e&&t.setDisabled(i.index,i.disabled),t.setSelected(i.index,r.selected))}},setSelected:function(e,t){var n,i,r=this.selectpicker.main.elements[e],s=this.selectpicker.main.data[e],o=void 0!==this.activeIndex,a=this.activeIndex===e||t&&!this.multiple&&!o;s.selected=t,i=r.firstChild,t&&(this.selectedIndex=e),r.classList.toggle("selected",t),a?(this.focusItem(r,s),this.selectpicker.view.currentActive=r,this.activeIndex=e):this.defocusItem(r),i&&(i.classList.toggle("selected",t),t?i.setAttribute("aria-selected",!0):this.multiple?i.setAttribute("aria-selected",!1):i.removeAttribute("aria-selected")),a||o||!t||void 0===this.prevActiveIndex||(n=this.selectpicker.main.elements[this.prevActiveIndex],this.defocusItem(n))},setDisabled:function(e,t){var n,i=this.selectpicker.main.elements[e];this.selectpicker.main.data[e].disabled=t,n=i.firstChild,i.classList.toggle(j.DISABLED,t),n&&("4"===M.major&&n.classList.toggle(j.DISABLED,t),t?(n.setAttribute("aria-disabled",t),n.setAttribute("tabindex",-1)):(n.removeAttribute("aria-disabled"),n.setAttribute("tabindex",0)))},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){this.isDisabled()?(this.$newElement[0].classList.add(j.DISABLED),this.$button.addClass(j.DISABLED).attr("aria-disabled",!0)):this.$button[0].classList.contains(j.DISABLED)&&(this.$newElement[0].classList.remove(j.DISABLED),this.$button.removeClass(j.DISABLED).attr("aria-disabled",!1))},clickListener:function(){var t=this,n=e(document);function i(){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$menuInner.trigger("focus")}function r(){t.dropdown&&t.dropdown._popper&&t.dropdown._popper.state.isCreated?i():requestAnimationFrame(r)}n.data("spaceSelect",!1),this.$button.on("keyup",function(e){/(32)/.test(e.keyCode.toString(10))&&n.data("spaceSelect")&&(e.preventDefault(),n.data("spaceSelect",!1))}),this.$newElement.on("show.bs.dropdown",function(){3<M.major&&!t.dropdown&&(t.dropdown=t.$button.data("bs.dropdown"),t.dropdown._menu=t.$menu[0])}),this.$button.on("click.bs.dropdown.data-api",function(){t.$newElement.hasClass(j.SHOW)||t.setSize()}),this.$element.on("shown"+P,function(){t.$menuInner[0].scrollTop!==t.selectpicker.view.scrollTop&&(t.$menuInner[0].scrollTop=t.selectpicker.view.scrollTop),3<M.major?requestAnimationFrame(r):i()}),this.$menuInner.on("mouseenter","li a",function(e){var n=this.parentElement,i=t.isVirtual()?t.selectpicker.view.position0:0,r=Array.prototype.indexOf.call(n.parentElement.children,n),s=t.selectpicker.current.data[r+i];t.focusItem(n,s,!0)}),this.$menuInner.on("click","li a",function(n,i){var r=e(this),s=t.$element[0],o=t.isVirtual()?t.selectpicker.view.position0:0,a=t.selectpicker.current.data[r.parent().index()+o],l=a.index,c=m(s),u=s.selectedIndex,d=s.options[u],h=!0;if(t.multiple&&1!==t.options.maxOptions&&n.stopPropagation(),n.preventDefault(),!t.isDisabled()&&!r.parent().hasClass(j.DISABLED)){var f=a.option,g=e(f),y=f.selected,_=g.parent("optgroup"),b=_.find("option"),w=t.options.maxOptions,x=_.data("maxOptions")||!1;if(l===t.activeIndex&&(i=!0),i||(t.prevActiveIndex=t.activeIndex,t.activeIndex=void 0),t.multiple){if(f.selected=!y,t.setSelected(l,!y),t.focusedParent.focus(),!1!==w||!1!==x){var C=w<p(s).length,E=x<_.find("option:selected").length;if(w&&C||x&&E)if(w&&1==w)s.selectedIndex=-1,f.selected=!0,t.setOptionStatus(!0);else if(x&&1==x){for(var S=0;S<b.length;S++){var k=b[S];k.selected=!1,t.setSelected(k.liIndex,!1)}f.selected=!0,t.setSelected(l,!0)}else{var T="string"==typeof t.options.maxOptionsText?[t.options.maxOptionsText,t.options.maxOptionsText]:t.options.maxOptionsText,D="function"==typeof T?T(w,x):T,I=D[0].replace("{n}",w),O=D[1].replace("{n}",x),A=e('<div class="notify"></div>');D[2]&&(I=I.replace("{var}",D[2][1<w?0:1]),O=O.replace("{var}",D[2][1<x?0:1])),f.selected=!1,t.$menu.append(A),w&&C&&(A.append(e("<div>"+I+"</div>")),h=!1,t.$element.trigger("maxReached"+P)),x&&E&&(A.append(e("<div>"+O+"</div>")),h=!1,t.$element.trigger("maxReachedGrp"+P)),setTimeout(function(){t.setSelected(l,!1)},10),A[0].classList.add("fadeOut"),setTimeout(function(){A.remove()},1050)}}}else d&&(d.selected=!1),f.selected=!0,t.setSelected(l,!0);!t.multiple||t.multiple&&1===t.options.maxOptions?t.$button.trigger("focus"):t.options.liveSearch&&t.$searchbox.trigger("focus"),h&&(!t.multiple&&u===s.selectedIndex||(v=[f.index,g.prop("selected"),c],t.$element.triggerNative("change")))}}),this.$menu.on("click","li."+j.DISABLED+" a, ."+j.POPOVERHEADER+", ."+j.POPOVERHEADER+" :not(.close)",function(n){n.currentTarget==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch&&!e(n.target).hasClass("close")?t.$searchbox.trigger("focus"):t.$button.trigger("focus"))}),this.$menuInner.on("click",".divider, .dropdown-header",function(e){e.preventDefault(),e.stopPropagation(),t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus")}),this.$menu.on("click","."+j.POPOVERHEADER+" .close",function(){t.$button.trigger("click")}),this.$searchbox.on("click",function(e){e.stopPropagation()}),this.$menu.on("click",".actions-btn",function(n){t.options.liveSearch?t.$searchbox.trigger("focus"):t.$button.trigger("focus"),n.preventDefault(),n.stopPropagation(),e(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()}),this.$button.on("focus"+P,function(e){var n=t.$element[0].getAttribute("tabindex");void 0!==n&&e.originalEvent&&e.originalEvent.isTrusted&&(this.setAttribute("tabindex",n),t.$element[0].setAttribute("tabindex",-1),t.selectpicker.view.tabindex=n)}).on("blur"+P,function(e){void 0!==t.selectpicker.view.tabindex&&e.originalEvent&&e.originalEvent.isTrusted&&(t.$element[0].setAttribute("tabindex",t.selectpicker.view.tabindex),this.setAttribute("tabindex",-1),t.selectpicker.view.tabindex=void 0)}),this.$element.on("change"+P,function(){t.render(),t.$element.trigger("changed"+P,v),v=null}).on("focus"+P,function(){t.options.mobile||t.$button[0].focus()})},liveSearchListener:function(){var e=this;this.$button.on("click.bs.dropdown.data-api",function(){e.$searchbox.val()&&(e.$searchbox.val(""),e.selectpicker.search.previousValue=void 0)}),this.$searchbox.on("click.bs.dropdown.data-api focus.bs.dropdown.data-api touchend.bs.dropdown.data-api",function(e){e.stopPropagation()}),this.$searchbox.on("input propertychange",function(){var t=e.$searchbox[0].value;if(e.selectpicker.search.elements=[],e.selectpicker.search.data=[],t){var n=[],i=t.toUpperCase(),r={},s=[],o=e._searchStyle(),a=e.options.liveSearchNormalize;a&&(i=S(i));for(var l=0;l<e.selectpicker.main.data.length;l++){var c=e.selectpicker.main.data[l];r[l]||(r[l]=_(c,i,o,a)),r[l]&&void 0!==c.headerIndex&&-1===s.indexOf(c.headerIndex)&&(0<c.headerIndex&&(r[c.headerIndex-1]=!0,s.push(c.headerIndex-1)),r[c.headerIndex]=!0,s.push(c.headerIndex),r[c.lastIndex+1]=!0),r[l]&&"optgroup-label"!==c.type&&s.push(l)}l=0;for(var u=s.length;l<u;l++){var d=s[l],h=s[l-1],f=(c=e.selectpicker.main.data[d],e.selectpicker.main.data[h]);("divider"!==c.type||"divider"===c.type&&f&&"divider"!==f.type&&u-1!==l)&&(e.selectpicker.search.data.push(c),n.push(e.selectpicker.main.elements[d]))}e.activeIndex=void 0,e.noScroll=!0,e.$menuInner.scrollTop(0),e.selectpicker.search.elements=n,e.createView(!0),function(e,t){e.length||(F.noResults.innerHTML=this.options.noneResultsText.replace("{0}",'"'+O(t)+'"'),this.$menuInner[0].firstChild.appendChild(F.noResults))}.call(e,n,t)}else e.selectpicker.search.previousValue&&(e.$menuInner.scrollTop(0),e.createView(!1));e.selectpicker.search.previousValue=t})},_searchStyle:function(){return this.options.liveSearchStyle||"contains"},val:function(e){var t=this.$element[0];if(void 0===e)return this.$element.val();var n=m(t);if(v=[null,null,n],this.$element.val(e).trigger("changed"+P,v),this.$newElement.hasClass(j.SHOW))if(this.multiple)this.setOptionStatus(!0);else{var i=(t.options[t.selectedIndex]||{}).liIndex;"number"==typeof i&&(this.setSelected(this.selectedIndex,!1),this.setSelected(i,!0))}return this.render(),v=null,this.$element},changeAll:function(e){if(this.multiple){void 0===e&&(e=!0);var t=this.$element[0],n=0,i=0,r=m(t);t.classList.add("bs-select-hidden");for(var s=0,o=this.selectpicker.current.data,a=o.length;s<a;s++){var l=o[s],c=l.option;c&&!l.disabled&&"divider"!==l.type&&(l.selected&&n++,!0===(c.selected=e)&&i++)}t.classList.remove("bs-select-hidden"),n!==i&&(this.setOptionStatus(),v=[null,null,r],this.$element.triggerNative("change"))}},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(e){(e=e||window.event)&&e.stopPropagation(),this.$button.trigger("click.bs.dropdown.data-api")},keydown:function(t){var n,i,r,s,o,a=e(this),l=a.hasClass("dropdown-toggle"),c=(l?a.closest(".dropdown"):a.closest(H.MENU)).data("this"),u=c.findLis(),d=!1,h=9===t.which&&!l&&!c.options.selectOnTab,f=$.test(t.which)||h,p=c.$menuInner[0].scrollTop,m=!0===c.isVirtual()?c.selectpicker.view.position0:0;if(!(112<=t.which&&t.which<=123))if(!(i=c.$newElement.hasClass(j.SHOW))&&(f||48<=t.which&&t.which<=57||96<=t.which&&t.which<=105||65<=t.which&&t.which<=90)&&(c.$button.trigger("click.bs.dropdown.data-api"),c.options.liveSearch))c.$searchbox.trigger("focus");else{if(27===t.which&&i&&(t.preventDefault(),c.$button.trigger("click.bs.dropdown.data-api").trigger("focus")),f){if(!u.length)return;-1!==(n=(r=c.selectpicker.main.elements[c.activeIndex])?Array.prototype.indexOf.call(r.parentElement.children,r):-1)&&c.defocusItem(r),38===t.which?(-1!==n&&n--,n+m<0&&(n+=u.length),c.selectpicker.view.canHighlight[n+m]||-1===(n=c.selectpicker.view.canHighlight.slice(0,n+m).lastIndexOf(!0)-m)&&(n=u.length-1)):40!==t.which&&!h||(++n+m>=c.selectpicker.view.canHighlight.length&&(n=c.selectpicker.view.firstHighlightIndex),c.selectpicker.view.canHighlight[n+m]||(n=n+1+c.selectpicker.view.canHighlight.slice(n+m+1).indexOf(!0))),t.preventDefault();var g=m+n;38===t.which?0===m&&n===u.length-1?(c.$menuInner[0].scrollTop=c.$menuInner[0].scrollHeight,g=c.selectpicker.current.elements.length-1):d=(o=(s=c.selectpicker.current.data[g]).position-s.height)<p:40!==t.which&&!h||(n===c.selectpicker.view.firstHighlightIndex?(c.$menuInner[0].scrollTop=0,g=c.selectpicker.view.firstHighlightIndex):d=p<(o=(s=c.selectpicker.current.data[g]).position-c.sizeInfo.menuInnerHeight)),r=c.selectpicker.current.elements[g],c.activeIndex=c.selectpicker.current.data[g].index,c.focusItem(r),c.selectpicker.view.currentActive=r,d&&(c.$menuInner[0].scrollTop=o),c.options.liveSearch?c.$searchbox.trigger("focus"):a.trigger("focus")}else if(!a.is("input")&&!R.test(t.which)||32===t.which&&c.selectpicker.keydown.keyHistory){var v,y,b=[];t.preventDefault(),c.selectpicker.keydown.keyHistory+=N[t.which],c.selectpicker.keydown.resetKeyHistory.cancel&&clearTimeout(c.selectpicker.keydown.resetKeyHistory.cancel),c.selectpicker.keydown.resetKeyHistory.cancel=c.selectpicker.keydown.resetKeyHistory.start(),y=c.selectpicker.keydown.keyHistory,/^(.)\1+$/.test(y)&&(y=y.charAt(0));for(var w=0;w<c.selectpicker.current.data.length;w++){var x=c.selectpicker.current.data[w];_(x,y,"startsWith",!0)&&c.selectpicker.view.canHighlight[w]&&b.push(x.index)}if(b.length){var C=0;u.removeClass("active").find("a").removeClass("active"),1===y.length&&(-1===(C=b.indexOf(c.activeIndex))||C===b.length-1?C=0:C++),v=b[C],d=0<p-(s=c.selectpicker.main.data[v]).position?(o=s.position-s.height,!0):(o=s.position-c.sizeInfo.menuInnerHeight,s.position>p+c.sizeInfo.menuInnerHeight),r=c.selectpicker.main.elements[v],c.activeIndex=b[C],c.focusItem(r),r&&r.firstChild.focus(),d&&(c.$menuInner[0].scrollTop=o),a.trigger("focus")}}i&&(32===t.which&&!c.selectpicker.keydown.keyHistory||13===t.which||9===t.which&&c.options.selectOnTab)&&(32!==t.which&&t.preventDefault(),c.options.liveSearch&&32===t.which||(c.$menuInner.find(".active a").trigger("click",!0),a.trigger("focus"),c.options.liveSearch||(t.preventDefault(),e(document).data("spaceSelect",!0))))}},mobile:function(){this.options.mobile=!0,this.$element[0].classList.add("mobile-device")},refresh:function(){var t=e.extend({},this.options,this.$element.data());this.options=t,this.checkDisabled(),this.buildData(),this.setStyle(),this.render(),this.buildList(),this.setWidth(),this.setSize(!0),this.$element.trigger("refreshed"+P)},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove(),this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove(),this.$bsContainer?this.$bsContainer.remove():this.$menu.remove(),this.selectpicker.view.titleOption&&this.selectpicker.view.titleOption.parentNode&&this.selectpicker.view.titleOption.parentNode.removeChild(this.selectpicker.view.titleOption),this.$element.off(P).removeData("selectpicker").removeClass("bs-select-hidden selectpicker"),e(window).off(P+"."+this.selectId)}};var W=e.fn.selectpicker;function U(){if(e.fn.dropdown)return(e.fn.dropdown.Constructor._dataApiKeydownHandler||e.fn.dropdown.Constructor.prototype.keydown).apply(this,arguments)}e.fn.selectpicker=B,e.fn.selectpicker.Constructor=z,e.fn.selectpicker.noConflict=function(){return e.fn.selectpicker=W,this},e(document).off("keydown.bs.dropdown.data-api").on("keydown.bs.dropdown.data-api",':not(.bootstrap-select) > [data-toggle="dropdown"]',U).on("keydown.bs.dropdown.data-api",":not(.bootstrap-select) > .dropdown-menu",U).on("keydown"+P,'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',z.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle="dropdown"], .bootstrap-select [role="listbox"], .bootstrap-select .bs-searchbox input',function(e){e.stopPropagation()}),e(window).on("load"+P+".data-api",function(){e(".selectpicker").each(function(){var t=e(this);B.call(t,t.data())})})}(e)}),function(e){"use strict";var t={tagClass:function(e){return"label label-info"},focusClass:"focus",itemValue:function(e){return e?e.toString():e},itemText:function(e){return this.itemValue(e)},itemTitle:function(e){return null}
vendor: 4,125 bytes, line 13
13,freeInput:!0,addOnBlur:!0,maxTags:void 0,maxChars:void 0,confirmKeys:[13,44],delimiter:",",delimiterRegex:null,cancelConfirmKeysOnEmpty:!1,onTagExists:function(e,t){t.hide().fadeIn()},trimValue:!1,allowDuplicates:!1,triggerChange:!0};function n(t,n){this.isInit=!0,this.itemsArray=[],this.$element=e(t),this.$element.hide(),this.isSelect="SELECT"===t.tagName,this.multiple=this.isSelect&&t.hasAttribute("multiple"),this.objectItems=n&&n.itemValue,this.placeholderText=t.hasAttribute("placeholder")?this.$element.attr("placeholder"):"",this.inputSize=Math.max(1,this.placeholderText.length),this.$container=e('<div class="bootstrap-tagsinput form-control"></div>'),this.$input=e('<input type="text" placeholder="'+this.placeholderText+'"/>').appendTo(this.$container),this.$element.before(this.$container),this.build(n),this.isInit=!1}function i(e,t){if("function"!=typeof e[t]){var n=e[t];e[t]=function(e){return e[n]}}}function r(e,t){if("function"!=typeof e[t]){var n=e[t];e[t]=function(){return n}}}n.prototype={constructor:n,add:function(t,n,i){var r=this;if(!(r.options.maxTags&&r.itemsArray.length>=r.options.maxTags)&&(!1===t||t)){if("string"==typeof t&&r.options.trimValue&&(t=e.trim(t)),"object"==typeof t&&!r.objectItems)throw"Can't add objects when itemValue option is not set";if(!t.toString().match(/^\s*$/)){if(r.isSelect&&!r.multiple&&r.itemsArray.length>0&&r.remove(r.itemsArray[0]),"string"==typeof t&&"INPUT"===this.$element[0].tagName){var s=r.options.delimiterRegex?r.options.delimiterRegex:r.options.delimiter,a=t.split(s);if(a.length>1){for(var l=0;l<a.length;l++)this.add(a[l],!0);return void(n||r.pushVal(r.options.triggerChange))}}var c=r.options.itemValue(t),u=r.options.itemText(t),d=r.options.tagClass(t),h=r.options.itemTitle(t),f=e.grep(r.itemsArray,function(e){return r.options.itemValue(e)===c})[0];if(!f||r.options.allowDuplicates){if(!(r.items().toString().length+t.length+1>r.options.maxInputLength)){var p=e.Event("beforeItemAdd",{item:t,cancel:!1,options:i});if(r.$element.trigger(p),!p.cancel){r.itemsArray.push(t);var m=e('<span class="tag '+o(d)+(null!==h?'" title="'+h:"")+'">'+o(u)+'<span data-role="remove"></span></span>');m.data("item",t),r.findInputWrapper().before(m),m.after(" ");var g=e('option[value="'+encodeURIComponent(c)+'"]',r.$element).length||e('option[value="'+o(c)+'"]',r.$element).length;if(r.isSelect&&!g){var v=e("<option selected>"+o(u)+"</option>");v.data("item",t),v.attr("value",c),r.$element.append(v)}n||r.pushVal(r.options.triggerChange),r.options.maxTags!==r.itemsArray.length&&r.items().toString().length!==r.options.maxInputLength||r.$container.addClass("bootstrap-tagsinput-max"),e(".typeahead, .twitter-typeahead",r.$container).length&&r.$input.typeahead("val",""),this.isInit?r.$element.trigger(e.Event("itemAddedOnInit",{item:t,options:i})):r.$element.trigger(e.Event("itemAdded",{item:t,options:i}))}}}else if(r.options.onTagExists){var y=e(".tag",r.$container).filter(function(){return e(this).data("item")===f});r.options.onTagExists(t,y)}}}},remove:function(t,n,i){var r=this;if(r.objectItems&&(t=(t="object"==typeof t?e.grep(r.itemsArray,function(e){return r.options.itemValue(e)==r.options.itemValue(t)}):e.grep(r.itemsArray,function(e){return r.options.itemValue(e)==t}))[t.length-1]),t){var s=e.Event("beforeItemRemove",{item:t,cancel:!1,options:i});if(r.$element.trigger(s),s.cancel)return;e(".tag",r.$container).filter(function(){return e(this).data("item")===t}).remove(),e("option",r.$element).filter(function(){return e(this).data("item")===t}).remove(),-1!==e.inArray(t,r.itemsArray)&&r.itemsArray.splice(e.inArray(t,r.itemsArray),1)}n||r.pushVal(r.options.triggerChange),r.options.maxTags>r.itemsArray.length&&r.$container.removeClass("bootstrap-tagsinput-max"),r.$element.trigger(e.Event("itemRemoved",{item:t,options:i}))},removeAll:function(){var t=this;for(e(".tag",t.$container).remove(),e("option",t.$element).remove();t.itemsArray.length>0;)t.itemsArray.pop();t.pushVal(t.options.triggerChange)},refresh:function(){var t=this;e(".tag",t.$container).each(function(){var n=e(this),i=n.data("item"),r=t.options.itemValue(i),s=t.o
13ptions.itemText(i),a=t.options.tagClass(i);(n.attr("class",null),n.addClass("tag "+o(a)),n.contents().filter(function(){return 3==this.nodeType})[0].nodeValue=o(s),t.isSelect)&&e("option",t.$element).filter(function(){return e(this).data("item")===i}).attr("value",r)})},items:function(){return this.itemsArray},pushVal:function(){var t=this,n=e.map(t.items(),function(e){return t.options.itemValue(e).toString()});t.$element.val(n,!0),t.options.triggerChange&&t.$element.trigger("change")},build:function(n){var s=this;if(s.options=e.extend({},t,n),s.objectItems&&(s.options.freeInput=!1),i(s.options,"itemValue"),i(s.options,"itemText"),r(s.options,"tagClass"),s.options.typeahead){var o=s.options.typeahead||{};r(o,"source"),s.$input.typeahead(e.extend({},o,{source:function(t,n){function i(e){for(var t=[],i=0;i<e.length;i++){var o=s.options.itemText(e[i]);r[o]=e[i],t.push(o)}n(t)}this.map={};var r=this.map,a=o.source(t);e.isFunction(a.success)?a.success(i):e.isFunction(a.then)?a.then(i):e.when(a).then(i)},updater:function(e){return s.add(this.map[e]),this.map[e]},matcher:function(e){return-1!==e.toLowerCase().indexOf(this.query.trim().toLowerCase())},sorter:function(e){return e.sort()},highlighter:function(e){var t=new RegExp("("+this.query+")","gi");return e.replace(t,"<strong>$1</strong>")}}))}if(s.options.typeaheadjs){var l=s.options.typeaheadjs;e.isArray(l)||(l=[null,l]);var c=l[1].valueKey,u=c?function(e){return e[c]}:function(e){return e};e.fn.typeahead.apply(s.$input,l).on("typeahead:selected",e.proxy(function(e,t){s.add(u(t)),s.$input.typeahead("val","")},s))}s.$container.on("click",e.proxy(function(e){s.$element.attr("disabled")||s.$input.removeAttr("disabled"),s.$input.focus()},s)),s.options.addOnBlur&&s.options.freeInput&&s.$input.on("focusout",e.proxy(function(t){0===e(".typeahead, .twitter-typeahead",s.$container).length&&(s.add(s.$input.val()),s.$input.val(""))},s)),s.$container.on({focusin:function(){s.$container.addClass(s.options.focusClass)},focusout:function(){s.$container.removeClass(s.options.focusClass)}}),s.$container.on("keydown","input",e.proxy(function(t){var n=e(t.target),i=s.findInputWrapper();if(s.$element.attr("disabled"))s.$input.attr("disabled","disabled");else{switch(t.which){case 8:if(0===a(n[0])){var r=i.prev();r.length&&s.remove(r.data("item"))}break;case 46:if(0===a(n[0])){var o=i.next();o.length&&s.remove(o.data("item"))}break;case 37:var l=i.prev();0===n.val().length&&l[0]&&(l.before(i),n.focus());break;case 39:var c=i.next();0===n.val().length&&c[0]&&(c.after(i),n.focus())}var u=n.val().length;Math.ceil(u/5);n.attr("size",Math.max(this.inputSize,n.val().length))}},s)),s.$container.on("keypress","input",e.proxy(function(t){var n=e(t.target);if(s.$element.attr("disabled"))s.$input.attr("disabled","disabled");else{var i,r,o,a=n.val(),l=s.options.maxChars&&a.length>=s.options.maxChars;s.options.freeInput&&(i=t,r=s.options.confirmKeys,o=!1,e.each(r,function(e,t){if("number"==typeof t&&i.which===t)return o=!0,!1;if(i.which===t.which){var n=!t.hasOwnProperty("altKey")||i.altKey===t.altKey,r=!t.hasOwnProperty("shiftKey")||i.shiftKey===t.shiftKey,s=!t.hasOwnProperty("ctrlKey")||i.ctrlKey===t.ctrlKey;if(n&&r&&s)return o=!0,!1}}),o||l)&&(0!==a.length&&(s.add(l?a.substr(0,s.options.maxChars):a),n.val("")),!1===s.options.cancelConfirmKeysOnEmpty&&t.preventDefault());var c=n.val().length;Math.ceil(c/5);n.attr("size",Math.max(this.inputSize,n.val().length))}},s)),s.$container.on("click","[data-role=remove]",e.proxy(function(t){s.$element.attr("disabled")||s.remove(e(t.target).closest(".tag").data("item"))},s)),s.options.itemValue===t.itemValue&&("INPUT"===s.$element[0].tagName?s.add(s.$element.val()):e("option",s.$element).each(function(){s.add(e(this).attr("value"),!0)}))},destroy:function(){var e=this;e.$container.off("keypress","input"),e.$container.off("click","[role=remove]"),e.$container.remove(),e.$element.removeData("tagsinput"),e.$element.show()},focus:function(){this.$input.focus()},input:function(){return this.$input},findInputWrapper:function(){for(var t=this.$input[0],n=this.$container[0];t&&t.parentNode!==n;)t=t.parentNode;return e(t)}},e.fn.tagsinput=function(t,i,r){var s=[];return this.each(function(){var o=e(this).data("tagsinput");if(o)if(t||i){if(void 0!==o[t]){if(3===o[t].length&&void 0!==r)var a=o[t](i,null,r);else a=o[t](i);void 0!==a&&s.push(a)}}else s.push(o);else o=new n(this,t),e(this).data("tagsinput",o),s.push(o),"SELECT"===this.tagName&&e("option",e(this)).attr("selected","selected"),e(this).val(e(this).val())}),"string"==typeof t?s.length>1?s:s[0]:s},e.fn.tagsinput.Constructor=n;var s=e("<div />");function o(e){return e?s.text(e).html():""}function a(e){var t=0;if(document.selection){e.focus();var n=document.selection.createRange();n.moveStart("character",-e.value.length),t=n.text.length}else(e.selectionStart||"0"==e.selectionStart)&&(t=e.selectionStart);return t}e(function(){e("input[data-role=tagsinput], select[multiple][data-role=tagsinput]").tagsinput()})}(window.jQuery),function(){var e,t,n,i,r={}.hasOwnProperty;(i=function(){function e(){this.options_index=0,this.parsed=[]}return e.prototype.add_node=function(e){return"OPTGROUP"===e.nodeName.toUpperCase()?this.add_group(e):this.add_option(e)},e.prototype.add_group=function(e){var t,n,i,r,s,o;for(t=this.parsed.length,this.parsed.push({array_index:t,group:!0,label:e.label,title:e.title?e.title:void 0,children:0,disabled:e.disabled,classes:e.className}),o=[],n=0,i=(s=e.childNodes).length;n<i;n++)r=s[n],o.push(this.add_option(r,t,e.disabled));return o},e.prototype.add_option=function(e,t,n){if("OPTION"===e.nodeName.toUpperCase())return""!==e.text?(null!=t&&(this.parsed[t].children+=1),this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,value:e.value,text:e.text,html:e.innerHTML,title:e.title?e.title:void 0,selected:e.selected,disabled:!0===n?n:e.disabled,group_array_index:t,group_label:null!=t?this.parsed[t].label:null,classes:e.className,style:e.style.cssText})):this.parsed.push({array_index:this.parsed.length,options_index:this.options_index,empty:!0}),this.options_index+=1},e}()).select_to_array=function(e){var t,n,r,s,o;for(s=new i,n=0,r=(o=e.childNodes).length;n<r;n++)t=o[n],s.add_node(t);return s.parsed},t=function(){function e(t,n){this.form_field=t,this.options=null!=n?n:{},this.label_click_handler=function(e,t){return function(){return e.apply(t,arguments)}}(this.label_click_handler,this),e.browser_is_supported()&&(this.is_multiple=this.form_field.multiple,this.set_default_text(),this.set_default_values(),this.setup(),this.set_up_html(),this.register_observers(),this.on_ready())}return e.prototype.set_default_values=function(){return this.click_test_action=function(e){return function(t){return e.test_active_click(t)}}(this),this.activate_action=function(e){return function(t){return e.activate_field(t)}}(this),this.active_field=!1,this.mouse_on_container=!1,this.results_showing=!1,this.result_highlighted=null,this.is_rtl=this.options.rtl||/\bchosen-rtl\b/.test(this.form_field.className),this.allow_single_deselect=null!=this.options.allow_single_deselect&&null!=this.form_field.options[0]&&""===this.form_field.options[0].text&&this.options.allow_single_deselect,this.disable_search_threshold=this.options.disable_search_threshold||0,this.disable_search=this.options.disable_search||!1,this.enable_split_word_search=null==this.options.enable_split_word_search||this.options.enable_split_word_search,this.group_search=null==this.options.group_search||this.options.group_search,this.search_contains=this.options.search_contains||!1,this.single_backstroke_delete=null==this.options.single_backstroke_delete||this.options.single_backstroke_delete,this.max_selected_options=this.options.max_selected_options||1/0,this.inherit_select_classes=this.options.inherit_select_classes||!1,this.display_selected_options=null==this.options.display_selected_options||this.options.display_selected_options,this.display_disabled_options=null==this.options.display_disabled_options||this.options.display_disabled_options,this.include_group_label_in_selected=this.options.include_group_label_in_selected||!1,this.max_shown_results=this.options.max_shown_results||Number.POSITIVE_INFINITY,this.case_sensitive_search=this.options.case_sensitive_search||!1,this.hide_results_on_select=null==this.options.hide_results_on_select||this.options.hide_results_on_select},e.prototype.set_default_text=function(){return this.form_field.getAttribute("data-placeholder")?this.default_text=this.form_field.getAttribute("data-placeholder"):this.is_multiple?this.default_text=this.options.placeholder_text_multiple||this.options.placeholder_text||e.default_multiple_text:this.default_text=this.options.placeholder_text_single||this.options.placeholder_text||e.default_single_text,this.default_text=this.escape_html(this.default_text),this.results_none_found=this.form_field.getAttribute("data-no_results_text")||this.options.no_results_text||e.default_no_result_text},e.prototype.choice_label=function(e){return this.include_group_label_in_selected&&null!=e.group_label?"<b class='group-name'>"+this.escape_html(e.group_label)+"</b>"+e.html:e.html},e.prototype.mouse_enter=function(){return this.mouse_on_container=!0},e.prototype.mouse_leave=function(){return this.mouse_on_container=!1},e.prototype.input_focus=function(e){if(this.is_multiple){if(!this.active_field)return setTimeout(function(e){return function(){return e.container_mousedown()}}(this),50)}else if(!this.active_field)return this.activate_field()},e.prototype.input_blur=function(e){if(!this.mouse_on_container)return this.active_field=!1,setTimeout(function(e){return function(){return e.blur_test()}}(this),100)},e.prototype.label_click_handler=function(e){return this.is_multiple?this.container_mousedown(e):this.activate_field()},e.prototype.results_option_build=function(e){var t,n,i,r,s,o,a;for(t="",a=0,r=0,s=(o=this.results_data).length;r<s&&("",""!==(i=(n=o[r]).group?this.result_add_group(n):this.result_add_option(n))&&(a++,t+=i),(null!=e?e.first:void 0)&&(n.selected&&this.is_multiple?this.choice_build(n):n.selected&&!this.is_multiple&&this.single_set_selected_text(this.choice_label(n))),!(a>=this.max_shown_results));r++);return t},e.prototype.result_add_option=function(e){var t,n;return e.search_match&&this.include_option_in_results(e)?(t=[],e.disabled||e.selected&&this.is_multiple||t.push("active-result"),!e.disabled||e.selected&&this.is_multiple||t.push("disabled-result"),e.selected&&t.push("result-selected"),null!=e.group_array_index&&t.push("group-option"),""!==e.classes&&t.pu
vendor: 11,295 bytes, line 13
13sh(e.classes),(n=document.createElement("li")).className=t.join(" "),e.style&&(n.style.cssText=e.style),n.setAttribute("data-option-array-index",e.array_index),n.innerHTML=e.highlighted_html||e.html,e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.result_add_group=function(e){var t,n;return(e.search_match||e.group_match)&&e.active_options>0?((t=[]).push("group-result"),e.classes&&t.push(e.classes),(n=document.createElement("li")).className=t.join(" "),n.innerHTML=e.highlighted_html||this.escape_html(e.label),e.title&&(n.title=e.title),this.outerHTML(n)):""},e.prototype.results_update_field=function(){if(this.set_default_text(),this.is_multiple||this.results_reset_cleanup(),this.result_clear_highlight(),this.results_build(),this.results_showing)return this.winnow_results()},e.prototype.reset_single_select_options=function(){var e,t,n,i,r;for(r=[],e=0,t=(n=this.results_data).length;e<t;e++)(i=n[e]).selected?r.push(i.selected=!1):r.push(void 0);return r},e.prototype.results_toggle=function(){return this.results_showing?this.results_hide():this.results_show()},e.prototype.results_search=function(e){return this.results_showing?this.winnow_results():this.results_show()},e.prototype.winnow_results=function(e){var t,n,i,r,s,o,a,l,c,u,d,h,f,p,m;for(this.no_results_clear(),u=0,t=(a=this.get_search_text()).replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),c=this.get_search_regex(t),i=0,r=(l=this.results_data).length;i<r;i++)(s=l[i]).search_match=!1,d=null,h=null,s.highlighted_html="",this.include_option_in_results(s)&&(s.group&&(s.group_match=!1,s.active_options=0),null!=s.group_array_index&&this.results_data[s.group_array_index]&&(0===(d=this.results_data[s.group_array_index]).active_options&&d.search_match&&(u+=1),d.active_options+=1),m=s.group?s.label:s.text,s.group&&!this.group_search||(h=this.search_string_match(m,c),s.search_match=null!=h,s.search_match&&!s.group&&(u+=1),s.search_match?(a.length&&(f=h.index,o=m.slice(0,f),n=m.slice(f,f+a.length),p=m.slice(f+a.length),s.highlighted_html=this.escape_html(o)+"<em>"+this.escape_html(n)+"</em>"+this.escape_html(p)),null!=d&&(d.group_match=!0)):null!=s.group_array_index&&this.results_data[s.group_array_index].search_match&&(s.search_match=!0)));return this.result_clear_highlight(),u<1&&a.length?(this.update_results_content(""),this.no_results(a)):(this.update_results_content(this.results_option_build()),(null!=e?e.skip_highlight:void 0)?void 0:this.winnow_results_set_highlight())},e.prototype.get_search_regex=function(e){var t,n;return n=this.search_contains?e:"(^|\\s|\\b)"+e+"[^\\s]*",this.enable_split_word_search||this.search_contains||(n="^"+n),t=this.case_sensitive_search?"":"i",new RegExp(n,t)},e.prototype.search_string_match=function(e,t){var n;return n=t.exec(e),!this.search_contains&&(null!=n?n[1]:void 0)&&(n.index+=1),n},e.prototype.choices_count=function(){var e,t,n;if(null!=this.selected_option_count)return this.selected_option_count;for(this.selected_option_count=0,e=0,t=(n=this.form_field.options).length;e<t;e++)n[e].selected&&(this.selected_option_count+=1);return this.selected_option_count},e.prototype.choices_click=function(e){if(e.preventDefault(),this.activate_field(),!this.results_showing&&!this.is_disabled)return this.results_show()},e.prototype.keydown_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),8!==n&&this.pending_backstroke&&this.clear_backstroke(),n){case 8:this.backstroke_length=this.get_search_field_value().length;break;case 9:this.results_showing&&!this.is_multiple&&this.result_select(e),this.mouse_on_container=!1;break;case 13:case 27:this.results_showing&&e.preventDefault();break;case 32:this.disable_search&&e.preventDefault();break;case 38:e.preventDefault(),this.keyup_arrow();break;case 40:e.preventDefault(),this.keydown_arrow()}},e.prototype.keyup_checker=function(e){var t,n;switch(n=null!=(t=e.which)?t:e.keyCode,this.search_field_scale(),n){case 8:this.is_multiple&&this.backstroke_length<1&&this.choices_count()>0?this.keydown_backstroke():this.pending_backstroke||(this.result_clear_highlight(),this.results_search());break;case 13:e.preventDefault(),this.results_showing&&this.result_select(e);break;case 27:this.results_showing&&this.results_hide();break;case 9:case 16:case 17:case 18:case 38:case 40:case 91:break;default:this.results_search()}},e.prototype.clipboard_event_checker=function(e){if(!this.is_disabled)return setTimeout(function(e){return function(){return e.results_search()}}(this),50)},e.prototype.container_width=function(){return null!=this.options.width?this.options.width:this.form_field.offsetWidth+"px"},e.prototype.include_option_in_results=function(e){return!(this.is_multiple&&!this.display_selected_options&&e.selected||!this.display_disabled_options&&e.disabled||e.empty)},e.prototype.search_results_touchstart=function(e){return this.touch_started=!0,this.search_results_mouseover(e)},e.prototype.search_results_touchmove=function(e){return this.touch_started=!1,this.search_results_mouseout(e)},e.prototype.search_results_touchend=function(e){if(this.touch_started)return this.search_results_mouseup(e)},e.prototype.outerHTML=function(e){var t;return e.outerHTML?e.outerHTML:((t=document.createElement("div")).appendChild(e),t.innerHTML)},e.prototype.get_single_html=function(){return'<a class="chosen-single chosen-default">\n <span>'+this.default_text+'</span>\n <div><b></b></div>\n</a>\n<div class="chosen-drop">\n <div class="chosen-search">\n <input class="chosen-search-input" type="text" autocomplete="off" />\n </div>\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_multi_html=function(){return'<ul class="chosen-choices">\n <li class="search-field">\n <input class="chosen-search-input" type="text" autocomplete="off" value="'+this.default_text+'" />\n </li>\n</ul>\n<div class="chosen-drop">\n <ul class="chosen-results"></ul>\n</div>'},e.prototype.get_no_results_html=function(e){return'<li class="no-results">\n '+this.results_none_found+" <span>"+this.escape_html(e)+"</span>\n</li>"},e.browser_is_supported=function(){return"Microsoft Internet Explorer"===window.navigator.appName?document.documentMode>=8:!(/iP(od|hone)/i.test(window.navigator.userAgent)||/IEMobile/i.test(window.navigator.userAgent)||/Windows Phone/i.test(window.navigator.userAgent)||/BlackBerry/i.test(window.navigator.userAgent)||/BB10/i.test(window.navigator.userAgent)||/Android.*Mobile/i.test(window.navigator.userAgent))},e.default_multiple_text="Select Some Options",e.default_single_text="Select an Option",e.default_no_result_text="No results match",e}(),(e=jQuery).fn.extend({chosen:function(i){return t.browser_is_supported()?this.each(function(t){var r,s;s=(r=e(this)).data("chosen"),"destroy"!==i?s instanceof n||r.data("chosen",new n(this,i)):s instanceof n&&s.destroy()}):this}}),n=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return function(e,t){function n(){this.constructor=e}for(var i in t)r.call(t,i)&&(e[i]=t[i]);n.prototype=t.prototype,e.prototype=new n,e.__super__=t.prototype}(n,t),n.prototype.setup=function(){return this.form_field_jq=e(this.form_field),this.current_selectedIndex=this.form_field.selectedIndex},n.prototype.set_up_html=function(){var t,n;return(t=["chosen-container"]).push("chosen-container-"+(this.is_multiple?"multi":"single")),this.inherit_select_classes&&this.form_field.className&&t.push(this.form_field.className),this.is_rtl&&t.push("chosen-rtl"),n={class:t.join(" "),title:this.form_field.title},this.form_field.id.length&&(n.id=this.form_field.id.replace(/[^\w]/g,"_")+"_chosen"),this.container=e("<div />",n),this.container.width(this.container_width()),this.is_multiple?this.container.html(this.get_multi_html()):this.container.html(this.get_single_html()),this.form_field_jq.hide().after(this.container),this.dropdown=this.container.find("div.chosen-drop").first(),this.search_field=this.container.find("input").first(),this.search_results=this.container.find("ul.chosen-results").first(),this.search_field_scale(),this.search_no_results=this.container.find("li.no-results").first(),this.is_multiple?(this.search_choices=this.container.find("ul.chosen-choices").first(),this.search_container=this.container.find("li.search-field").first()):(this.search_container=this.container.find("div.chosen-search").first(),this.selected_item=this.container.find(".chosen-single").first()),this.results_build(),this.set_tab_index(),this.set_label_behavior()},n.prototype.on_ready=function(){return this.form_field_jq.trigger("chosen:ready",{chosen:this})},n.prototype.register_observers=function(){return this.container.on("touchstart.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("touchend.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mousedown.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.container.on("mouseup.chosen",function(e){return function(t){e.container_mouseup(t)}}(this)),this.container.on("mouseenter.chosen",function(e){return function(t){e.mouse_enter(t)}}(this)),this.container.on("mouseleave.chosen",function(e){return function(t){e.mouse_leave(t)}}(this)),this.search_results.on("mouseup.chosen",function(e){return function(t){e.search_results_mouseup(t)}}(this)),this.search_results.on("mouseover.chosen",function(e){return function(t){e.search_results_mouseover(t)}}(this)),this.search_results.on("mouseout.chosen",function(e){return function(t){e.search_results_mouseout(t)}}(this)),this.search_results.on("mousewheel.chosen DOMMouseScroll.chosen",function(e){return function(t){e.search_results_mousewheel(t)}}(this)),this.search_results.on("touchstart.chosen",function(e){return function(t){e.search_results_touchstart(t)}}(this)),this.search_results.on("touchmove.chosen",function(e){return function(t){e.search_results_touchmove(t)}}(this)),this.search_results.on("touchend.chosen",function(e){return function(t){e.search_results_touchend(t)}}(this)),this.form_field_jq.on("chosen:updated.chosen",function(e){return function(t){e.results_update_field(t)}}(this)),this.form_field_jq.on("chosen:activate.chosen",function(e){return function(t){e.activate_field(t)}}(this)),this.form_field_jq.on("chosen:open.chosen",function(e){return function(t){e.container_mousedown(t)}}(this)),this.form_field_jq.on("chosen:close.chosen",function(e){return function(t){e.close_field(t)}}(this)),this.search_field.on("blur.chosen",function(e){return function(t){e.input_blur(t)}}(this)),this.search_field.on("keyup.chosen",function(e){return function(t){e.keyup_checker(t)}}(this)),this.search_field.on("keydown.chosen",function(e){return function(t){e.keydown_checker(t)}}(this)),this.search_field.on("focus.chosen",function(e){return function(t){e.input_focus(t)}}(this)),this.search_field.on("cut.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.search_field.on("paste.chosen",function(e){return function(t){e.clipboard_event_checker(t)}}(this)),this.is_multiple?this.search_choices.on("click.chosen",function(e){return function(t){e.choices_click(t)}}(this)):this.container.on("click.chosen",function(e){e.preventDefault()})},n.prototype.destroy=function(){return e(this.container[0].ownerDocument).off("
13click.chosen",this.click_test_action),this.form_field_label.length>0&&this.form_field_label.off("click.chosen"),this.search_field[0].tabIndex&&(this.form_field_jq[0].tabIndex=this.search_field[0].tabIndex),this.container.remove(),this.form_field_jq.removeData("chosen"),this.form_field_jq.show()},n.prototype.search_field_disabled=function(){return this.is_disabled=this.form_field.disabled||this.form_field_jq.parents("fieldset").is(":disabled"),this.container.toggleClass("chosen-disabled",this.is_disabled),this.search_field[0].disabled=this.is_disabled,this.is_multiple||this.selected_item.off("focus.chosen",this.activate_field),this.is_disabled?this.close_field():this.is_multiple?void 0:this.selected_item.on("focus.chosen",this.activate_field)},n.prototype.container_mousedown=function(t){var n;if(!this.is_disabled)return!t||"mousedown"!==(n=t.type)&&"touchstart"!==n||this.results_showing||t.preventDefault(),null!=t&&e(t.target).hasClass("search-choice-close")?void 0:(this.active_field?this.is_multiple||!t||e(t.target)[0]!==this.selected_item[0]&&!e(t.target).parents("a.chosen-single").length||(t.preventDefault(),this.results_toggle()):(this.is_multiple&&this.search_field.val(""),e(this.container[0].ownerDocument).on("click.chosen",this.click_test_action),this.results_show()),this.activate_field())},n.prototype.container_mouseup=function(e){if("ABBR"===e.target.nodeName&&!this.is_disabled)return this.results_reset(e)},n.prototype.search_results_mousewheel=function(e){var t;if(e.originalEvent&&(t=e.originalEvent.deltaY||-e.originalEvent.wheelDelta||e.originalEvent.detail),null!=t)return e.preventDefault(),"DOMMouseScroll"===e.type&&(t*=40),this.search_results.scrollTop(t+this.search_results.scrollTop())},n.prototype.blur_test=function(e){if(!this.active_field&&this.container.hasClass("chosen-container-active"))return this.close_field()},n.prototype.close_field=function(){return e(this.container[0].ownerDocument).off("click.chosen",this.click_test_action),this.active_field=!1,this.results_hide(),this.container.removeClass("chosen-container-active"),this.clear_backstroke(),this.show_search_field_default(),this.search_field_scale(),this.search_field.blur()},n.prototype.activate_field=function(){if(!this.is_disabled)return this.container.addClass("chosen-container-active"),this.active_field=!0,this.search_field.val(this.search_field.val()),this.search_field.focus()},n.prototype.test_active_click=function(t){var n;return(n=e(t.target).closest(".chosen-container")).length&&this.container[0]===n[0]?this.active_field=!0:this.close_field()},n.prototype.results_build=function(){return this.parsing=!0,this.selected_option_count=null,this.results_data=i.select_to_array(this.form_field),this.is_multiple?this.search_choices.find("li.search-choice").remove():(this.single_set_selected_text(),this.disable_search||this.form_field.options.length<=this.disable_search_threshold?(this.search_field[0].readOnly=!0,this.container.addClass("chosen-container-single-nosearch")):(this.search_field[0].readOnly=!1,this.container.removeClass("chosen-container-single-nosearch"))),this.update_results_content(this.results_option_build({first:!0})),this.search_field_disabled(),this.show_search_field_default(),this.search_field_scale(),this.parsing=!1},n.prototype.result_do_highlight=function(e){var t,n,i,r,s;if(e.length){if(this.result_clear_highlight(),this.result_highlight=e,this.result_highlight.addClass("highlighted"),r=(i=parseInt(this.search_results.css("maxHeight"),10))+(s=this.search_results.scrollTop()),(t=(n=this.result_highlight.position().top+this.search_results.scrollTop())+this.result_highlight.outerHeight())>=r)return this.search_results.scrollTop(t-i>0?t-i:0);if(n<s)return this.search_results.scrollTop(n)}},n.prototype.result_clear_highlight=function(){return this.result_highlight&&this.result_highlight.removeClass("highlighted"),this.result_highlight=null},n.prototype.results_show=function(){return this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.container.addClass("chosen-with-drop"),this.results_showing=!0,this.search_field.focus(),this.search_field.val(this.get_search_field_value()),this.winnow_results(),this.form_field_jq.trigger("chosen:showing_dropdown",{chosen:this}))},n.prototype.update_results_content=function(e){return this.search_results.html(e)},n.prototype.results_hide=function(){return this.results_showing&&(this.result_clear_highlight(),this.container.removeClass("chosen-with-drop"),this.form_field_jq.trigger("chosen:hiding_dropdown",{chosen:this})),this.results_showing=!1},n.prototype.set_tab_index=function(e){var t;if(this.form_field.tabIndex)return t=this.form_field.tabIndex,this.form_field.tabIndex=-1,this.search_field[0].tabIndex=t},n.prototype.set_label_behavior=function(){if(this.form_field_label=this.form_field_jq.parents("label"),!this.form_field_label.length&&this.form_field.id.length&&(this.form_field_label=e("label[for='"+this.form_field.id+"']")),this.form_field_label.length>0)return this.form_field_label.on("click.chosen",this.label_click_handler)},n.prototype.show_search_field_default=function(){return this.is_multiple&&this.choices_count()<1&&!this.active_field?(this.search_field.val(this.default_text),this.search_field.addClass("default")):(this.search_field.val(""),this.search_field.removeClass("default"))},n.prototype.search_results_mouseup=function(t){var n;if((n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first()).length)return this.result_highlight=n,this.result_select(t),this.search_field.focus()},n.prototype.search_results_mouseover=function(t){var n;if(n=e(t.target).hasClass("active-result")?e(t.target):e(t.target).parents(".active-result").first())return this.result_do_highlight(n)},n.prototype.search_results_mouseout=function(t){if(e(t.target).hasClass("active-result")||e(t.target).parents(".active-result").first())return this.result_clear_highlight()},n.prototype.choice_build=function(t){var n,i;return n=e("<li />",{class:"search-choice"}).html("<span>"+this.choice_label(t)+"</span>"),t.disabled?n.addClass("search-choice-disabled"):((i=e("<a />",{class:"search-choice-close","data-option-array-index":t.array_index})).on("click.chosen",function(e){return function(t){return e.choice_destroy_link_click(t)}}(this)),n.append(i)),this.search_container.before(n)},n.prototype.choice_destroy_link_click=function(t){if(t.preventDefault(),t.stopPropagation(),!this.is_disabled)return this.choice_destroy(e(t.target))},n.prototype.choice_destroy=function(e){if(this.result_deselect(e[0].getAttribute("data-option-array-index")))return this.active_field?this.search_field.focus():this.show_search_field_default(),this.is_multiple&&this.choices_count()>0&&this.get_search_field_value().length<1&&this.results_hide(),e.parents("li").first().remove(),this.search_field_scale()},n.prototype.results_reset=function(){if(this.reset_single_select_options(),this.form_field.options[0].selected=!0,this.single_set_selected_text(),this.show_search_field_default(),this.results_reset_cleanup(),this.trigger_form_field_change(),this.active_field)return this.results_hide()},n.prototype.results_reset_cleanup=function(){return this.current_selectedIndex=this.form_field.selectedIndex,this.selected_item.find("abbr").remove()},n.prototype.result_select=function(e){var t,n;if(this.result_highlight)return t=this.result_highlight,this.result_clear_highlight(),this.is_multiple&&this.max_selected_options<=this.choices_count()?(this.form_field_jq.trigger("chosen:maxselected",{chosen:this}),!1):(this.is_multiple?t.removeClass("active-result"):this.reset_single_select_options(),t.addClass("result-selected"),(n=this.results_data[t[0].getAttribute("data-option-array-index")]).selected=!0,this.form_field.options[n.options_index].selected=!0,this.selected_option_count=null,this.is_multiple?this.choice_build(n):this.single_set_selected_text(this.choice_label(n)),this.is_multiple&&(!this.hide_results_on_select||e.metaKey||e.ctrlKey)?e.metaKey||e.ctrlKey?this.winnow_results({skip_highlight:!0}):(this.search_field.val(""),this.winnow_results()):(this.results_hide(),this.show_search_field_default()),(this.is_multiple||this.form_field.selectedIndex!==this.current_selectedIndex)&&this.trigger_form_field_change({selected:this.form_field.options[n.options_index].value}),this.current_selectedIndex=this.form_field.selectedIndex,e.preventDefault(),this.search_field_scale())},n.prototype.single_set_selected_text=function(e){return null==e&&(e=this.default_text),e===this.default_text?this.selected_item.addClass("chosen-default"):(this.single_deselect_control_build(),this.selected_item.removeClass("chosen-default")),this.selected_item.find("span").html(e)},n.prototype.result_deselect=function(e){var t;return t=this.results_data[e],!this.form_field.options[t.options_index].disabled&&(t.selected=!1,this.form_field.options[t.options_index].selected=!1,this.selected_option_count=null,this.result_clear_highlight(),this.results_showing&&this.winnow_results(),this.trigger_form_field_change({deselected:this.form_field.options[t.options_index].value}),this.search_field_scale(),!0)},n.prototype.single_deselect_control_build=function(){if(this.allow_single_deselect)return this.selected_item.find("abbr").length||this.selected_item.find("span").first().after('<abbr class="search-choice-close"></abbr>'),this.selected_item.addClass("chosen-single-with-deselect")},n.prototype.get_search_field_value=function(){return this.search_field.val()},n.prototype.get_search_text=function(){return e.trim(this.get_search_field_value())},n.prototype.escape_html=function(t){return e("<div/>").text(t).html()},n.prototype.winnow_results_set_highlight=function(){var e,t;if(null!=(e=(t=this.is_multiple?[]:this.search_results.find(".result-selected.active-result")).length?t.first():this.search_results.find(".active-result").first()))return this.result_do_highlight(e)},n.prototype.no_results=function(e){var t;return t=this.get_no_results_html(e),this.search_results.append(t),this.form_field_jq.trigger("chosen:no_results",{chosen:this})},n.prototype.no_results_clear=function(){return this.search_results.find(".no-results").remove()},n.prototype.keydown_arrow=function(){var e;return this.results_showing&&this.result_highlight?(e=this.result_highlight.nextAll("li.active-result").first())?this.result_do_highlight(e):void 0:this.results_show()},n.prototype.keyup_arrow=function(){var e;return this.results_showing||this.is_multiple?this.result_highlight?(e=this.result_highlight.prevAll("li.active-result")).length?this.result_do_highlight(e.first()):(this.choices_count()>0&&this.results_hide(),this.result_clear_highlight()):void 0:this.results_show()},n.prototype.keydown_backstroke=function(){var e;return this.pending_backstroke?(this.choice_destroy(this.pending_backstroke.find("a").first()),this.clear_backstroke()):(e=this.search_container.siblings("li.search-choice").last()).length&&!e.hasClass("search-choice-disabled")?(this.pending_backstroke=e,this.single_backstroke_delete?this.keydown_backstroke():this.pending_backstroke.addClass("search-choice-focus")):void 0},n.prototype.clear_backstroke=function(){return this.pending_backstroke&&this.pending_backstroke.removeClass("search-choice-focus"),this.pending_backstroke=null},n.prototype.search_field_scale=function(){var t,n,i,r,s,o,a;if(this.is_multiple){for(s={position:"absolute",left:"-1000px",top:"-1000px",display:"none",whiteSpace:"pre"},n=0,i=(o=["fontSize","fontStyle","fontWeight","fontFamily","lineHeight","textTransform","letterSpacing"]).length;n<i;n++)s[r=o[n]]=this.search_field.css(r);return(t=e("<div />").css(s)).text(this.get_search_field_value()),e("body").append(t),a=t.width()+25,t.remove(),this.container.is(":visible")&&(a=Math.min(this.container.outerWidth()-10,a)),this.search_field.width(a)}},n.prototype.trigger_form_field_change=function(e){return this.form_field_jq.trigger("input",e),this.form_field_jq.trigger("change",e)},n}()}
13.call(this),function(e){e.fn.updateValidation=function(){return this.each(function(){var t=e(this).removeData("validator").removeData("unobtrusiveValidation");e.validator.unobtrusive.parse(t)})},e.fn.resetValidation=function(){var e=this.closest("form");return e.validate().resetForm(),e.find("[data-valmsg-summary=true]").removeClass("validation-summary-errors").addClass("validation-summary-valid").find("ul").empty(),e.find("[data-valmsg-replace]").removeClass("field-validation-error").addClass("field-validation-valid").empty(),e.find(".is-invalid").removeClass("is-invalid"),e};var t={highlight:function(t){var n=e(t),i=n.closest(".form-group").find(".col-form-label, .input-group, .custom-file, .custom-file-control, .chosen-choices, .chosen-container");n.hasClass("form-check-input")&&n.is(":radio")||(i=i.add(n)),i.removeClass("is-valid").addClass("is-invalid")},unhighlight:function(t){var n=e(t).closest(".form-group").find(".col-form-label, .input-group, .custom-file, .custom-file-control, .chosen-choices, .chosen-container");e(t).add(n).removeClass("is-invalid")},errorClass:"invalid-feedback",errorPlacement:function(t,n){var i=n.parent();i.is(".input-group, .custom-file, .star-rating, .form-check-input")?t.insertAfter(i):i.parent().is(".btn-group")?t.insertAfter(i.parent()):i.is(".form-check")?t.insertAfter(e(n).is(":radio")?i.parent():i):i.is(".custom-switch")?t.appendTo(i):e(n).is(".chosen")?t.insertAfter(e(n).next()):e(n).is(".form-check-input")?t.insertBefore(i):t.insertAfter(n)}};e.validator.setDefaults(t),e.validator.unobtrusive.options=t;var n=e.validator.methods.range;e.validator.methods.range=function(e,t,i){return"checkbox"===t.type?t.checked:n.call(this,e,t,i)},e.fn.obfsEmail=function(){return this.each(function(){var t=e(this);t.html(t.html().replace("(at)","@").replace(/\(dot\)/g,"."));var n=t.prop("href");void 0!==n&&!1!==n&&t.prop("href",n.replace("(at)","@").replace(/\(dot\)/g,"."))})},e.fn.cleanFormAction=function(){return this.each(function(){var t=e(this),n=t.attr("action");if(n){var i=n.indexOf("?");i>0&&(n=n.substring(0,i+1)+n.substring(i+1).replace(/&ufprt(=[^&]*)?|^ufprt(=[^&]*)?&?/,""),t.attr("action",n))}})},e(document).ajaxSend(function(t,n,i){if("POST"===i.type){var r=e("#anti-forgery-form");r.length>0&&n.setRequestHeader("RequestVerificationToken",r.find("input[name=__RequestVerificationToken]").first().val())}})}(jQuery),function(e){e.sessionTimeout=function(t,n){var i,r,s,o={logoutUrl:"/logout",keepAliveUrl:"/continuesession"},a=e(t),l=this;l.settings={},l.init=function(){l.settings=e.extend({},o,n),e("#session-reactive-btn").on("click",function(){f()}),c(),u()};var c=function(){window.clearTimeout(r),window.clearTimeout(s)},u=function(){r=window.setTimeout(d,33e5)},d=function(){window.focus(),i=300,h(),a.modal("show")},h=function(){var t=Math.floor(i/60),n=i%60;n<10&&(n="0"+n),e("#session-countdown").html(t+":"+n),i>0?(i--,s=window.setTimeout(h,1e3)):window.location=l.settings.logoutUrl+"?se=1&ReturnUrl="+location.pathname+location.search},f=function(){e("#modal-session-timeout").modal("hide"),c(),e.get(l.settings.keepAliveUrl),u()};l.init()},e.fn.sessionTimeout=function(t){return this.each(function(){if(void 0===e(this).data("sessionTimeout")){var n=new e.sessionTimeout(this,t);e(this).data("sessionTimeout",n)}})}}(jQuery),function(e){e.toast=function(t){var n=e("#toast-container");t.container&&1===t.container.length&&(n=t.container);var i="toast-"+(e(".toast").length+1),r="",s=t.title||"Notice!",o=t.content||"",a=t.delay||5e3,l=t.icon,
13c=t.pause_on_hover||!1,u=!1,d="";!1!==c?(d='data-autohide="false"',c='data-hide-timestamp="'+(Math.floor(Date.now()/1e3)+a/1e3)+'"'):d=-1===a?'data-autohide="false"':'data-delay="'+a+'"';r='<div id="'+i+'" class="toast" role="alert" aria-live="assertive" aria-atomic="true" '+d+" "+c+">",r+='<div class="toast-header">',void 0!==l&&(r+='<span class="'+l+' mr-2"></span>'),r+='<strong class="mr-auto">'+s+"</strong>",r+='<button type="button" class="ml-2 mb-1 close" data-dismiss="toast" aria-label="Close">',r+='<span aria-hidden="true">×</span>',r+="</button>",r+="</div>",""!==o&&(r+='<div class="toast-body">',r+=o,r+="</div>"),r+="</div>",n.append(r),n.find(".toast:last").toast("show"),!1!==c&&(setTimeout(function(){u||e("#"+i).toast("hide")},a),e(document).on("mouseover","#"+i,function(){u=!0}),e(document).on("mouseleave","#"+i,function(){var t=Math.floor(Date.now()/1e3),n=parseInt(e(this).data("hide-timestamp"));u=!1,t>=n&&e(this).toast("hide")}))}}(jQuery),$(function(){$(document).on("shown.bs.modal",".modal",function(){$(this).find("input,select,textarea").filter(":visible:not([readonly]):first").trigger("focus")}),$(document).on("click",function(e){$('[data-toggle="popover"],[data-original-title]').each(function(){$(this).is(e.target)||0!==$(this).has(e.target).length||0!==$(".popover").has(e.target).length||((($(this).popover("hide").data("bs.popover")||{}).inState||{}).click=!1)})}),$(document).on("click",'tbody[data-row="click"] > tr',function(e){if(!window.getSelection().toString()&&!$(e.target).is("a")){var t=$(this).find("a[href]:first");t.length&&(window.location=t.prop("href"))}});var e=document.location.hash,t="tab-";e&&setTimeout(function(){$('.nav-pills:not(.wizard-steps) a[href="'+e.replace(t,"")+'"]').tab("show")},1),$(".nav-pills:not(.wizard-steps) a").on("shown.bs.tab",function(e){window.location.hash=e.target.hash.replace("#","#"+t)}),$("div.form-group").has("span.field-validation-error").each(function(){$(this).find(".col-form-label, input, select, textarea, .input-group, .custom-file, .custom-file-control, .chosen-choices").addClass("is-invalid"),$(this).find("span.field-validation-error").addClass("invalid-feedback")}),$(".navbar .navbar-nav > .dropdown > a[href]").on("click touchend",function(e){var t=$(this),n=t.next(".dropdown-menu");if("touchend"===e.type)t.data("touch-open",n.hasClass("show"));else if((0==n.length||"none"!==n.css("display"))&&(void 0===t.data("touch-open")||t.data("touch-open"))&&this.href){if(e.ctrlKey)return void window.open(this.href,"_blank");if("undefined"!=typeof clTargetIsDirty&&clTargetIsDirty)return;location.href=this.href}}),$(".nav-md-secondary-menu a[data-target]").on("click",function(){$($(this).data("target")).toggleClass("d-flex d-none"),$(this).children(":first-child").toggleClass("ion-chevron-up ion-chevron-down")}),$($(".hamburger").parent().attr("data-target")).on("hide.bs.collapse",function(){$(this).parent().find(".hamburger").removeClass("hamburger--close")}),$($(".hamburger").parent().attr("data-target")).on("show.bs.collapse",function(){$(this).parent().find(".hamburger").addClass("hamburger--close")}),$(".email-obfs").obfsEmail(),$('form[method="post"]').cleanFormAction(),$('form[data-ajax="true"]').on("submit",function(e){if(e.isDefaultPrevented())return;e.preventDefault();var t=$(this).attr("action").split("?")[0],n=$(this).attr("method");target=$(this).attr("data-target"),loader=$(this).attr("data-loader");var i=new FormData(document.querySelector("#"+$(this).attr("id")));let r=new URL(location).searchParams;r.has("sortby")&&i.append("sortby",r.get("sortby")),r.has("sortdesc")&&i.append("sortdesc",r.get("sortdesc"));var s=new URLSearchParams(i).toString();r=new URLSearchParams(i),r.delete("ufprt"),historyUrl="false"!=$(this).attr("data-history")&&r.size>0?document.URL.split("?")[0]+"?"+r.toString():null,getResults(t,n,s,target,loader,historyUrl,!0)}),$(document).on("click","a[data-ajax=true]",function(e){e.preventDefault();var t=$(this).attr("href"),n={ufprt:$(this).attr("data-ufprt")},i=$(this).attr("data-target"),r=$(this).attr("data-loader"),s="false"!=$(this).attr("data-history")?document.URL.split("?")[0]+t.substring(t.indexOf("?")):null;getResults(t,"get",n,i,r,s)}),$(window).on("popstate",function(e){null!=(e=e.originalEvent).state&&("filter"===e.state.source?window.location.href=window.location.href:"pager"===e.state.source&&getResults(e.state.url,e.
13state.method,e.state.data,e.state.target,e.state.loader))})});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.