2 lines
498 KiB
JavaScript
2 lines
498 KiB
JavaScript
if(function(){var t,e=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",r="Invalid `variable` option passed into `_.template`",o="__lodash_hash_undefined__",a=500,s="__lodash_placeholder__",l=1,u=2,c=4,d=1,h=2,f=1,p=2,m=4,g=8,v=16,y=32,b=64,w=128,_=256,x=512,D=30,k="...",C=800,T=16,S=1,$=2,E=1/0,O=9007199254740991,M=1.7976931348623157e308,A=NaN,j=4294967295,N=j-1,I=j>>>1,P=[["ary",w],["bind",f],["bindKey",p],["curry",g],["curryRight",v],["flip",x],["partial",y],["partialRight",b],["rearg",_]],L="[object Arguments]",R="[object Array]",Y="[object AsyncFunction]",H="[object Boolean]",F="[object Date]",U="[object DOMException]",W="[object Error]",q="[object Function]",B="[object GeneratorFunction]",z="[object Map]",V="[object Number]",G="[object Null]",Z="[object Object]",Q="[object Proxy]",K="[object RegExp]",J="[object Set]",X="[object String]",tt="[object Symbol]",et="[object Undefined]",nt="[object WeakMap]",it="[object WeakSet]",rt="[object ArrayBuffer]",ot="[object DataView]",at="[object Float32Array]",st="[object Float64Array]",lt="[object Int8Array]",ut="[object Int16Array]",ct="[object Int32Array]",dt="[object Uint8Array]",ht="[object Uint8ClampedArray]",ft="[object Uint16Array]",pt="[object Uint32Array]",mt=/\b__p \+= '';/g,gt=/\b(__p \+=) '' \+/g,vt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,yt=/&(?:amp|lt|gt|quot|#39);/g,bt=/[&<>"']/g,wt=RegExp(yt.source),_t=RegExp(bt.source),xt=/<%-([\s\S]+?)%>/g,Dt=/<%([\s\S]+?)%>/g,kt=/<%=([\s\S]+?)%>/g,Ct=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Tt=/^\w*$/,St=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$t=/[\\^$.*+?()[\]{}|]/g,Et=RegExp($t.source),Ot=/^\s+/,Mt=/\s/,At=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,jt=/\{\n\/\* \[wrapped with (.+)\] \*/,Nt=/,? & /,It=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Pt=/[()=,{}\[\]\/\s]/,Lt=/\\(\\)?/g,Rt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Yt=/\w*$/,Ht=/^[-+]0x[0-9a-f]+$/i,Ft=/^0b[01]+$/i,Ut=/^\[object .+?Constructor\]$/,Wt=/^0o[0-7]+$/i,qt=/^(?:0|[1-9]\d*)$/,Bt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,zt=/($^)/,Vt=/['\n\r\u2028\u2029\\]/g,Gt="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Zt="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Qt="[\\ud800-\\udfff]",Kt="["+Zt+"]",Jt="["+Gt+"]",Xt="\\d+",te="[\\u2700-\\u27bf]",ee="[a-z\\xdf-\\xf6\\xf8-\\xff]",ne="[^\\ud800-\\udfff"+Zt+Xt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",ie="\\ud83c[\\udffb-\\udfff]",re="[^\\ud800-\\udfff]",oe="(?:\\ud83c[\\udde6-\\uddff]){2}",ae="[\\ud800-\\udbff][\\udc00-\\udfff]",se="[A-Z\\xc0-\\xd6\\xd8-\\xde]",le="(?:"+ee+"|"+ne+")",ue="(?:"+se+"|"+ne+")",ce="(?:"+Jt+"|"+ie+")"+"?",de="[\\ufe0e\\ufe0f]?"+ce+("(?:\\u200d(?:"+[re,oe,ae].join("|")+")[\\ufe0e\\ufe0f]?"+ce+")*"),he="(?:"+[te,oe,ae].join("|")+")"+de,fe="(?:"+[re+Jt+"?",Jt,oe,ae,Qt].join("|")+")",pe=RegExp("['’]","g"),me=RegExp(Jt,"g"),ge=RegExp(ie+"(?="+ie+")|"+fe+de,"g"),ve=RegExp([se+"?"+ee+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[Kt,se,"$"].join("|")+")",ue+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[Kt,se+le,"$"].join("|")+")",se+"?"+le+"+(?:['’](?:d|ll|m|re|s|t|ve))?",se+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xt,he].join("|"),"g"),ye=RegExp("[\\u200d\\ud800-\\udfff"+Gt+"\\ufe0e\\ufe0f]"),be=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,we=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],_e=-1,xe={};xe[at]=xe[st]=xe[lt]=xe[ut]=xe[ct]=xe[dt]=xe[ht]=xe[ft]=xe[pt]=!0,xe[L]=xe[R]=xe[rt]=xe[H]=xe[ot]=xe[F]=xe[W]=xe[q]=xe[z]=xe[V]=xe[Z]=xe[K]=xe[J]=xe[X]=xe[nt]=!1;var De={};De[L]=De[R]=De[rt]=De[ot]=De[H]=De[F]=De[at]=De[st]=De[lt]=De[ut]=De[ct]=De[z]=De[V]=De[Z]=De[K]=De[J]=De[X]=De[tt]=De[dt]=De[ht]=De[ft]=De[pt]=!0,De[W]=De[q]=De[nt]=!1;var ke={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ce=parseFloat,Te=parseInt,Se="object"==typeof global&&global&&global.Object===Object&&global,$e="object"==typeof self&&self&&self.Object===Object&&self,Ee=Se||$e||Function("return this")(),Oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Me=Oe&&"object"==typeof module&&module&&!module.nodeType&&module,Ae=Me&&Me.exports===Oe,je=Ae&&Se.process,Ne=function(){try{var t=Me&&Me.require&&Me.require("util").types;return t||je&&je.binding&&je.binding("util")}catch(t){}}(),Ie=Ne&&Ne.isArrayBuffer,Pe=Ne&&Ne.isDate,Le=Ne&&Ne.isMap,Re=Ne&&Ne.isRegExp,Ye=Ne&&Ne.isSet,He=Ne&&Ne.isTypedArray;function Fe(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}function Ue(t,e,n,i){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];e(i,a,n(a),t)}return i}function We(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););return t}function qe(t,e){for(var n=null==t?0:t.length;n--&&!1!==e(t[n],n,t););return t}function Be(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(!e(t[n],n,t))return!1;return!0}function ze(t,e){for(var n=-1,i=null==t?0:t.length,r=0,o=[];++n<i;){var a=t[n];e(a,n,t)&&(o[r++]=a)}return o}function Ve(t,e){return!!(null==t?0:t.length)&&rn(t,e,0)>-1}function Ge(t,e,n){for(var i=-1,r=null==t?0:t.length;++i<r;)if(n(e,t[i]))return!0;return!1}function Ze(t,e){for(var n=-1,i=null==t?0:t.length,r=Array(i);++n<i;)r[n]=e(t[n],n,t);return r}function Qe(t,e){for(var n=-1,i=e.length,r=t.length;++n<i;)t[r+n]=e[n];return t}function Ke(t,e,n,i){var r=-1,o=null==t?0:t.length;for(i&&o&&(n=t[++r]);++r<o;)n=e(n,t[r],r,t);return n}function Je(t,e,n,i){var r=null==t?0:t.length;for(i&&r&&(n=t[--r]);r--;)n=e(n,t[r],r,t);return n}function Xe(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1}var tn=ln("length");function en(t,e,n){var i;return n(t,function(t,n,r){if(e(t,n,r))return i=n,!1}),i}function nn(t,e,n,i){for(var r=t.length,o=n+(i?1:-1);i?o--:++o<r;)if(e(t[o],o,t))return o;return-1}function rn(t,e,n){return e==e?function(t,e,n){var i=n-1,r=t.length;for(;++i<r;)if(t[i]===e)return i;return-1}(t,e,n):nn(t,an,n)}function on(t,e,n,i){for(var r=n-1,o=t.length;++r<o;)if(i(t[r],e))return r;return-1}function an(t){return t!=t}function sn(t,e){var n=null==t?0:t.length;return n?dn(t,e)/n:A}function ln(e){return function(n){return null==n?t:n[e]}}function un(e){return function(n){return null==e?t:e[n]}}function cn(t,e,n,i,r){return r(t,function(t,r,o){n=i?(i=!1,t):e(n,t,r,o)}),n}function dn(e,n){for(var i,r=-1,o=e.length;++r<o;){var a=n(e[r]);a!==t&&(i=i===t?a:i+a)}return i}function hn(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}function fn(t){return t?t.slice(0,On(t)+1).replace(Ot,""):t}function pn(t){return function(e){return t(e)}}function mn(t,e){return Ze(e,function(e){return t[e]})}function gn(t,e){return t.has(e)}function vn(t,e){for(var n=-1,i=t.length;++n<i&&rn(e,t[n],0)>-1;);return n}function yn(t,e){for(var n=t.length;n--&&rn(e,t[n],0)>-1;);return n}var bn=un({"À":"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":"'n","ſ":"s"}),wn=un({"&":"&","<":"<",">":">",'"':""","'":"'"});function _n(t){return"\\"+ke[t]}function xn(t){return ye.test(t)}function Dn(t){var e=-1,n=Array(t.size);return t.forEach(function(t,i){n[++e]=[i,t]}),n}function kn(t,e){return function(n){return t(e(n))}}function Cn(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n];a!==e&&a!==s||(t[n]=s,o[r++]=n)}return o}function Tn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}function Sn(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=[t,t]}),n}function $n(t){return xn(t)?function(t){var e=ge.lastIndex=0;for(;ge.test(t);)++e;return e}(t):tn(t)}function En(t){return xn(t)?function(t){return t.match(ge)||[]}(t):function(t){return t.split("")}(t)}function On(t){for(var e=t.length;e--&&Mt.test(t.charAt(e)););return e}var Mn=un({"&":"&","<":"<",">":">",""":'"',"'":"'"});var An=function Mt(Gt){var Zt,Qt=(Gt=null==Gt?Ee:An.defaults(Ee.Object(),Gt,An.pick(Ee,we))).Array,Kt=Gt.Date,Jt=Gt.Error,Xt=Gt.Function,te=Gt.Math,ee=Gt.Object,ne=Gt.RegExp,ie=Gt.String,re=Gt.TypeError,oe=Qt.prototype,ae=Xt.prototype,se=ee.prototype,le=Gt["__core-js_shared__"],ue=ae.toString,ce=se.hasOwnProperty,de=0,he=(Zt=/[^.]+$/.exec(le&&le.keys&&le.keys.IE_PROTO||""))?"Symbol(src)_1."+Zt:"",fe=se.toString,ge=ue.call(ee),ye=Ee._,ke=ne("^"+ue.call(ce).replace($t,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Se=Ae?Gt.Buffer:t,$e=Gt.Symbol,Oe=Gt.Uint8Array,Me=Se?Se.allocUnsafe:t,je=kn(ee.getPrototypeOf,ee),Ne=ee.create,tn=se.propertyIsEnumerable,un=oe.splice,jn=$e?$e.isConcatSpreadable:t,Nn=$e?$e.iterator:t,In=$e?$e.toStringTag:t,Pn=function(){try{var t=Fo(ee,"defineProperty");return t({},"",{}),t}catch(t){}}(),Ln=Gt.clearTimeout!==Ee.clearTimeout&&Gt.clearTimeout,Rn=Kt&&Kt.now!==Ee.Date.now&&Kt.now,Yn=Gt.setTimeout!==Ee.setTimeout&&Gt.setTimeout,Hn=te.ceil,Fn=te.floor,Un=ee.getOwnPropertySymbols,Wn=Se?Se.isBuffer:t,qn=Gt.isFinite,Bn=oe.join,zn=kn(ee.keys,ee),Vn=te.max,Gn=te.min,Zn=Kt.now,Qn=Gt.parseInt,Kn=te.random,Jn=oe.reverse,Xn=Fo(Gt,"DataView"),ti=Fo(Gt,"Map"),ei=Fo(Gt,"Promise"),ni=Fo(Gt,"Set"),ii=Fo(Gt,"WeakMap"),ri=Fo(ee,"create"),oi=ii&&new ii,ai={},si=fa(Xn),li=fa(ti),ui=fa(ei),ci=fa(ni),di=fa(ii),hi=$e?$e.prototype:t,fi=hi?hi.valueOf:t,pi=hi?hi.toString:t;function mi(t){if(Os(t)&&!bs(t)&&!(t instanceof bi)){if(t instanceof yi)return t;if(ce.call(t,"__wrapped__"))return pa(t)}return new yi(t)}var gi=function(){function e(){}return function(n){if(!Es(n))return{};if(Ne)return Ne(n);e.prototype=n;var i=new e;return e.prototype=t,i}}();function vi(){}function yi(e,n){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!n,this.__index__=0,this.__values__=t}function bi(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function wi(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function _i(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function xi(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}function Di(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new xi;++e<n;)this.add(t[e])}function ki(t){var e=this.__data__=new _i(t);this.size=e.size}function Ci(t,e){var n=bs(t),i=!n&&ys(t),r=!n&&!i&&Ds(t),o=!n&&!i&&!r&&Rs(t),a=n||i||r||o,s=a?hn(t.length,ie):[],l=s.length;for(var u in t)!e&&!ce.call(t,u)||a&&("length"==u||r&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Go(u,l))||s.push(u);return s}function Ti(e){var n=e.length;return n?e[Dr(0,n-1)]:t}function Si(t,e){return ca(ro(t),Pi(e,0,t.length))}function $i(t){return ca(ro(t))}function Ei(e,n,i){(i===t||ms(e[n],i))&&(i!==t||n in e)||Ni(e,n,i)}function Oi(e,n,i){var r=e[n];ce.call(e,n)&&ms(r,i)&&(i!==t||n in e)||Ni(e,n,i)}function Mi(t,e){for(var n=t.length;n--;)if(ms(t[n][0],e))return n;return-1}function Ai(t,e,n,i){return Fi(t,function(t,r,o){e(i,t,n(t),o)}),i}function ji(t,e){return t&&oo(e,al(e),t)}function Ni(t,e,n){"__proto__"==e&&Pn?Pn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}function Ii(e,n){for(var i=-1,r=n.length,o=Qt(r),a=null==e;++i<r;)o[i]=a?t:el(e,n[i]);return o}function Pi(e,n,i){return e==e&&(i!==t&&(e=e<=i?e:i),n!==t&&(e=e>=n?e:n)),e}function Li(e,n,i,r,o,a){var s,d=n&l,h=n&u,f=n&c;if(i&&(s=o?i(e,r,o,a):i(e)),s!==t)return s;if(!Es(e))return e;var p=bs(e);if(p){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&ce.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!d)return ro(e,s)}else{var m=qo(e),g=m==q||m==B;if(Ds(e))return Jr(e,d);if(m==Z||m==L||g&&!o){if(s=h||g?{}:zo(e),!d)return h?function(t,e){return oo(t,Wo(t),e)}(e,function(t,e){return t&&oo(e,sl(e),t)}(s,e)):function(t,e){return oo(t,Uo(t),e)}(e,ji(s,e))}else{if(!De[m])return o?e:{};s=function(t,e,n){var i,r,o,a=t.constructor;switch(e){case rt:return Xr(t);case H:case F:return new a(+t);case ot:return function(t,e){var n=e?Xr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);case at:case st:case lt:case ut:case ct:case dt:case ht:case ft:case pt:return to(t,n);case z:return new a;case V:case X:return new a(t);case K:return(o=new(r=t).constructor(r.source,Yt.exec(r))).lastIndex=r.lastIndex,o;case J:return new a;case tt:return i=t,fi?ee(fi.call(i)):{}}}(e,m,d)}}a||(a=new ki);var v=a.get(e);if(v)return v;a.set(e,s),Is(e)?e.forEach(function(t){s.add(Li(t,n,i,t,e,a))}):Ms(e)&&e.forEach(function(t,r){s.set(r,Li(t,n,i,r,e,a))});var y=p?t:(f?h?No:jo:h?sl:al)(e);return We(y||e,function(t,r){y&&(t=e[r=t]),Oi(s,r,Li(t,n,i,r,e,a))}),s}function Ri(e,n,i){var r=i.length;if(null==e)return!r;for(e=ee(e);r--;){var o=i[r],a=n[o],s=e[o];if(s===t&&!(o in e)||!a(s))return!1}return!0}function Yi(e,n,r){if("function"!=typeof e)throw new re(i);return aa(function(){e.apply(t,r)},n)}function Hi(t,n,i,r){var o=-1,a=Ve,s=!0,l=t.length,u=[],c=n.length;if(!l)return u;i&&(n=Ze(n,pn(i))),r?(a=Ge,s=!1):n.length>=e&&(a=gn,s=!1,n=new Di(n));t:for(;++o<l;){var d=t[o],h=null==i?d:i(d);if(d=r||0!==d?d:0,s&&h==h){for(var f=c;f--;)if(n[f]===h)continue t;u.push(d)}else a(n,h,r)||u.push(d)}return u}mi.templateSettings={escape:xt,evaluate:Dt,interpolate:kt,variable:"",imports:{_:mi}},mi.prototype=vi.prototype,mi.prototype.constructor=mi,yi.prototype=gi(vi.prototype),yi.prototype.constructor=yi,bi.prototype=gi(vi.prototype),bi.prototype.constructor=bi,wi.prototype.clear=function(){this.__data__=ri?ri(null):{},this.size=0},wi.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},wi.prototype.get=function(e){var n=this.__data__;if(ri){var i=n[e];return i===o?t:i}return ce.call(n,e)?n[e]:t},wi.prototype.has=function(e){var n=this.__data__;return ri?n[e]!==t:ce.call(n,e)},wi.prototype.set=function(e,n){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=ri&&n===t?o:n,this},_i.prototype.clear=function(){this.__data__=[],this.size=0},_i.prototype.delete=function(t){var e=this.__data__,n=Mi(e,t);return!(n<0||(n==e.length-1?e.pop():un.call(e,n,1),--this.size,0))},_i.prototype.get=function(e){var n=this.__data__,i=Mi(n,e);return i<0?t:n[i][1]},_i.prototype.has=function(t){return Mi(this.__data__,t)>-1},_i.prototype.set=function(t,e){var n=this.__data__,i=Mi(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this},xi.prototype.clear=function(){this.size=0,this.__data__={hash:new wi,map:new(ti||_i),string:new wi}},xi.prototype.delete=function(t){var e=Yo(this,t).delete(t);return this.size-=e?1:0,e},xi.prototype.get=function(t){return Yo(this,t).get(t)},xi.prototype.has=function(t){return Yo(this,t).has(t)},xi.prototype.set=function(t,e){var n=Yo(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this},Di.prototype.add=Di.prototype.push=function(t){return this.__data__.set(t,o),this},Di.prototype.has=function(t){return this.__data__.has(t)},ki.prototype.clear=function(){this.__data__=new _i,this.size=0},ki.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},ki.prototype.get=function(t){return this.__data__.get(t)},ki.prototype.has=function(t){return this.__data__.has(t)},ki.prototype.set=function(t,n){var i=this.__data__;if(i instanceof _i){var r=i.__data__;if(!ti||r.length<e-1)return r.push([t,n]),this.size=++i.size,this;i=this.__data__=new xi(r)}return i.set(t,n),this.size=i.size,this};var Fi=lo(Zi),Ui=lo(Qi,!0);function Wi(t,e){var n=!0;return Fi(t,function(t,i,r){return n=!!e(t,i,r)}),n}function qi(e,n,i){for(var r=-1,o=e.length;++r<o;){var a=e[r],s=n(a);if(null!=s&&(l===t?s==s&&!Ls(s):i(s,l)))var l=s,u=a}return u}function Bi(t,e){var n=[];return Fi(t,function(t,i,r){e(t,i,r)&&n.push(t)}),n}function zi(t,e,n,i,r){var o=-1,a=t.length;for(n||(n=Vo),r||(r=[]);++o<a;){var s=t[o];e>0&&n(s)?e>1?zi(s,e-1,n,i,r):Qe(r,s):i||(r[r.length]=s)}return r}var Vi=uo(),Gi=uo(!0);function Zi(t,e){return t&&Vi(t,e,al)}function Qi(t,e){return t&&Gi(t,e,al)}function Ki(t,e){return ze(e,function(e){return Ts(t[e])})}function Ji(e,n){for(var i=0,r=(n=Gr(n,e)).length;null!=e&&i<r;)e=e[ha(n[i++])];return i&&i==r?e:t}function Xi(t,e,n){var i=e(t);return bs(t)?i:Qe(i,n(t))}function tr(e){return null==e?e===t?et:G:In&&In in ee(e)?function(e){var n=ce.call(e,In),i=e[In];try{e[In]=t;var r=!0}catch(t){}var o=fe.call(e);return r&&(n?e[In]=i:delete e[In]),o}(e):function(t){return fe.call(t)}(e)}function er(t,e){return t>e}function nr(t,e){return null!=t&&ce.call(t,e)}function ir(t,e){return null!=t&&e in ee(t)}function rr(e,n,i){for(var r=i?Ge:Ve,o=e[0].length,a=e.length,s=a,l=Qt(a),u=1/0,c=[];s--;){var d=e[s];s&&n&&(d=Ze(d,pn(n))),u=Gn(d.length,u),l[s]=!i&&(n||o>=120&&d.length>=120)?new Di(s&&d):t}d=e[0];var h=-1,f=l[0];t:for(;++h<o&&c.length<u;){var p=d[h],m=n?n(p):p;if(p=i||0!==p?p:0,!(f?gn(f,m):r(c,m,i))){for(s=a;--s;){var g=l[s];if(!(g?gn(g,m):r(e[s],m,i)))continue t}f&&f.push(m),c.push(p)}}return c}function or(e,n,i){var r=null==(e=ia(e,n=Gr(n,e)))?e:e[ha(Ca(n))];return null==r?t:Fe(r,e,i)}function ar(t){return Os(t)&&tr(t)==L}function sr(e,n,i,r,o){return e===n||(null==e||null==n||!Os(e)&&!Os(n)?e!=e&&n!=n:function(e,n,i,r,o,a){var s=bs(e),l=bs(n),u=s?R:qo(e),c=l?R:qo(n),f=(u=u==L?Z:u)==Z,p=(c=c==L?Z:c)==Z,m=u==c;if(m&&Ds(e)){if(!Ds(n))return!1;s=!0,f=!1}if(m&&!f)return a||(a=new ki),s||Rs(e)?Mo(e,n,i,r,o,a):function(t,e,n,i,r,o,a){switch(n){case ot:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case rt:return!(t.byteLength!=e.byteLength||!o(new Oe(t),new Oe(e)));case H:case F:case V:return ms(+t,+e);case W:return t.name==e.name&&t.message==e.message;case K:case X:return t==e+"";case z:var s=Dn;case J:var l=i&d;if(s||(s=Tn),t.size!=e.size&&!l)return!1;var u=a.get(t);if(u)return u==e;i|=h,a.set(t,e);var c=Mo(s(t),s(e),i,r,o,a);return a.delete(t),c;case tt:if(fi)return fi.call(t)==fi.call(e)}return!1}(e,n,u,i,r,o,a);if(!(i&d)){var g=f&&ce.call(e,"__wrapped__"),v=p&&ce.call(n,"__wrapped__");if(g||v){var y=g?e.value():e,b=v?n.value():n;return a||(a=new ki),o(y,b,i,r,a)}}return!!m&&(a||(a=new ki),function(e,n,i,r,o,a){var s=i&d,l=jo(e),u=l.length,c=jo(n).length;if(u!=c&&!s)return!1;for(var h=u;h--;){var f=l[h];if(!(s?f in n:ce.call(n,f)))return!1}var p=a.get(e),m=a.get(n);if(p&&m)return p==n&&m==e;var g=!0;a.set(e,n),a.set(n,e);for(var v=s;++h<u;){f=l[h];var y=e[f],b=n[f];if(r)var w=s?r(b,y,f,n,e,a):r(y,b,f,e,n,a);if(!(w===t?y===b||o(y,b,i,r,a):w)){g=!1;break}v||(v="constructor"==f)}if(g&&!v){var _=e.constructor,x=n.constructor;_!=x&&"constructor"in e&&"constructor"in n&&!("function"==typeof _&&_ instanceof _&&"function"==typeof x&&x instanceof x)&&(g=!1)}return a.delete(e),a.delete(n),g}(e,n,i,r,o,a))}(e,n,i,r,sr,o))}function lr(e,n,i,r){var o=i.length,a=o,s=!r;if(null==e)return!a;for(e=ee(e);o--;){var l=i[o];if(s&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++o<a;){var u=(l=i[o])[0],c=e[u],f=l[1];if(s&&l[2]){if(c===t&&!(u in e))return!1}else{var p=new ki;if(r)var m=r(c,f,u,e,n,p);if(!(m===t?sr(f,c,d|h,r,p):m))return!1}}return!0}function ur(t){return!(!Es(t)||(e=t,he&&he in e))&&(Ts(t)?ke:Ut).test(fa(t));var e}function cr(t){return"function"==typeof t?t:null==t?Al:"object"==typeof t?bs(t)?gr(t[0],t[1]):mr(t):Fl(t)}function dr(t){if(!Xo(t))return zn(t);var e=[];for(var n in ee(t))ce.call(t,n)&&"constructor"!=n&&e.push(n);return e}function hr(t){if(!Es(t))return function(t){var e=[];if(null!=t)for(var n in ee(t))e.push(n);return e}(t);var e=Xo(t),n=[];for(var i in t)("constructor"!=i||!e&&ce.call(t,i))&&n.push(i);return n}function fr(t,e){return t<e}function pr(t,e){var n=-1,i=_s(t)?Qt(t.length):[];return Fi(t,function(t,r,o){i[++n]=e(t,r,o)}),i}function mr(t){var e=Ho(t);return 1==e.length&&e[0][2]?ea(e[0][0],e[0][1]):function(n){return n===t||lr(n,t,e)}}function gr(e,n){return Qo(e)&&ta(n)?ea(ha(e),n):function(i){var r=el(i,e);return r===t&&r===n?nl(i,e):sr(n,r,d|h)}}function vr(e,n,i,r,o){e!==n&&Vi(n,function(a,s){if(o||(o=new ki),Es(a))!function(e,n,i,r,o,a,s){var l=ra(e,i),u=ra(n,i),c=s.get(u);if(c)Ei(e,i,c);else{var d=a?a(l,u,i+"",e,n,s):t,h=d===t;if(h){var f=bs(u),p=!f&&Ds(u),m=!f&&!p&&Rs(u);d=u,f||p||m?bs(l)?d=l:xs(l)?d=ro(l):p?(h=!1,d=Jr(u,!0)):m?(h=!1,d=to(u,!0)):d=[]:js(u)||ys(u)?(d=l,ys(l)?d=zs(l):Es(l)&&!Ts(l)||(d=zo(u))):h=!1}h&&(s.set(u,d),o(d,u,r,a,s),s.delete(u)),Ei(e,i,d)}}(e,n,s,i,vr,r,o);else{var l=r?r(ra(e,s),a,s+"",e,n,o):t;l===t&&(l=a),Ei(e,s,l)}},sl)}function yr(e,n){var i=e.length;if(i)return Go(n+=n<0?i:0,i)?e[n]:t}function br(t,e,n){e=e.length?Ze(e,function(t){return bs(t)?function(e){return Ji(e,1===t.length?t[0]:t)}:t}):[Al];var i=-1;return e=Ze(e,pn(Ro())),function(t,e){var n=t.length;for(t.sort(e);n--;)t[n]=t[n].value;return t}(pr(t,function(t,n,r){return{criteria:Ze(e,function(e){return e(t)}),index:++i,value:t}}),function(t,e){return function(t,e,n){for(var i=-1,r=t.criteria,o=e.criteria,a=r.length,s=n.length;++i<a;){var l=eo(r[i],o[i]);if(l){if(i>=s)return l;var u=n[i];return l*("desc"==u?-1:1)}}return t.index-e.index}(t,e,n)})}function wr(t,e,n){for(var i=-1,r=e.length,o={};++i<r;){var a=e[i],s=Ji(t,a);n(s,a)&&$r(o,Gr(a,t),s)}return o}function _r(t,e,n,i){var r=i?on:rn,o=-1,a=e.length,s=t;for(t===e&&(e=ro(e)),n&&(s=Ze(t,pn(n)));++o<a;)for(var l=0,u=e[o],c=n?n(u):u;(l=r(s,c,l,i))>-1;)s!==t&&un.call(s,l,1),un.call(t,l,1);return t}function xr(t,e){for(var n=t?e.length:0,i=n-1;n--;){var r=e[n];if(n==i||r!==o){var o=r;Go(r)?un.call(t,r,1):Hr(t,r)}}return t}function Dr(t,e){return t+Fn(Kn()*(e-t+1))}function kr(t,e){var n="";if(!t||e<1||e>O)return n;do{e%2&&(n+=t),(e=Fn(e/2))&&(t+=t)}while(e);return n}function Cr(t,e){return sa(na(t,e,Al),t+"")}function Tr(t){return Ti(ml(t))}function Sr(t,e){var n=ml(t);return ca(n,Pi(e,0,n.length))}function $r(e,n,i,r){if(!Es(e))return e;for(var o=-1,a=(n=Gr(n,e)).length,s=a-1,l=e;null!=l&&++o<a;){var u=ha(n[o]),c=i;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(o!=s){var d=l[u];(c=r?r(d,u,l):t)===t&&(c=Es(d)?d:Go(n[o+1])?[]:{})}Oi(l,u,c),l=l[u]}return e}var Er=oi?function(t,e){return oi.set(t,e),t}:Al,Or=Pn?function(t,e){return Pn(t,"toString",{configurable:!0,enumerable:!1,value:El(e),writable:!0})}:Al;function Mr(t){return ca(ml(t))}function Ar(t,e,n){var i=-1,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var o=Qt(r);++i<r;)o[i]=t[i+e];return o}function jr(t,e){var n;return Fi(t,function(t,i,r){return!(n=e(t,i,r))}),!!n}function Nr(t,e,n){var i=0,r=null==t?i:t.length;if("number"==typeof e&&e==e&&r<=I){for(;i<r;){var o=i+r>>>1,a=t[o];null!==a&&!Ls(a)&&(n?a<=e:a<e)?i=o+1:r=o}return r}return Ir(t,e,Al,n)}function Ir(e,n,i,r){var o=0,a=null==e?0:e.length;if(0===a)return 0;for(var s=(n=i(n))!=n,l=null===n,u=Ls(n),c=n===t;o<a;){var d=Fn((o+a)/2),h=i(e[d]),f=h!==t,p=null===h,m=h==h,g=Ls(h);if(s)var v=r||m;else v=c?m&&(r||f):l?m&&f&&(r||!p):u?m&&f&&!p&&(r||!g):!p&&!g&&(r?h<=n:h<n);v?o=d+1:a=d}return Gn(a,N)}function Pr(t,e){for(var n=-1,i=t.length,r=0,o=[];++n<i;){var a=t[n],s=e?e(a):a;if(!n||!ms(s,l)){var l=s;o[r++]=0===a?0:a}}return o}function Lr(t){return"number"==typeof t?t:Ls(t)?A:+t}function Rr(t){if("string"==typeof t)return t;if(bs(t))return Ze(t,Rr)+"";if(Ls(t))return pi?pi.call(t):"";var e=t+"";return"0"==e&&1/t==-E?"-0":e}function Yr(t,n,i){var r=-1,o=Ve,a=t.length,s=!0,l=[],u=l;if(i)s=!1,o=Ge;else if(a>=e){var c=n?null:Co(t);if(c)return Tn(c);s=!1,o=gn,u=new Di}else u=n?[]:l;t:for(;++r<a;){var d=t[r],h=n?n(d):d;if(d=i||0!==d?d:0,s&&h==h){for(var f=u.length;f--;)if(u[f]===h)continue t;n&&u.push(h),l.push(d)}else o(u,h,i)||(u!==l&&u.push(h),l.push(d))}return l}function Hr(t,e){return null==(t=ia(t,e=Gr(e,t)))||delete t[ha(Ca(e))]}function Fr(t,e,n,i){return $r(t,e,n(Ji(t,e)),i)}function Ur(t,e,n,i){for(var r=t.length,o=i?r:-1;(i?o--:++o<r)&&e(t[o],o,t););return n?Ar(t,i?0:o,i?o+1:r):Ar(t,i?o+1:0,i?r:o)}function Wr(t,e){var n=t;return n instanceof bi&&(n=n.value()),Ke(e,function(t,e){return e.func.apply(e.thisArg,Qe([t],e.args))},n)}function qr(t,e,n){var i=t.length;if(i<2)return i?Yr(t[0]):[];for(var r=-1,o=Qt(i);++r<i;)for(var a=t[r],s=-1;++s<i;)s!=r&&(o[r]=Hi(o[r]||a,t[s],e,n));return Yr(zi(o,1),e,n)}function Br(e,n,i){for(var r=-1,o=e.length,a=n.length,s={};++r<o;){var l=r<a?n[r]:t;i(s,e[r],l)}return s}function zr(t){return xs(t)?t:[]}function Vr(t){return"function"==typeof t?t:Al}function Gr(t,e){return bs(t)?t:Qo(t,e)?[t]:da(Vs(t))}var Zr=Cr;function Qr(e,n,i){var r=e.length;return i=i===t?r:i,!n&&i>=r?e:Ar(e,n,i)}var Kr=Ln||function(t){return Ee.clearTimeout(t)};function Jr(t,e){if(e)return t.slice();var n=t.length,i=Me?Me(n):new t.constructor(n);return t.copy(i),i}function Xr(t){var e=new t.constructor(t.byteLength);return new Oe(e).set(new Oe(t)),e}function to(t,e){var n=e?Xr(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}function eo(e,n){if(e!==n){var i=e!==t,r=null===e,o=e==e,a=Ls(e),s=n!==t,l=null===n,u=n==n,c=Ls(n);if(!l&&!c&&!a&&e>n||a&&s&&u&&!l&&!c||r&&s&&u||!i&&u||!o)return 1;if(!r&&!a&&!c&&e<n||c&&i&&o&&!r&&!a||l&&i&&o||!s&&o||!u)return-1}return 0}function no(t,e,n,i){for(var r=-1,o=t.length,a=n.length,s=-1,l=e.length,u=Vn(o-a,0),c=Qt(l+u),d=!i;++s<l;)c[s]=e[s];for(;++r<a;)(d||r<o)&&(c[n[r]]=t[r]);for(;u--;)c[s++]=t[r++];return c}function io(t,e,n,i){for(var r=-1,o=t.length,a=-1,s=n.length,l=-1,u=e.length,c=Vn(o-s,0),d=Qt(c+u),h=!i;++r<c;)d[r]=t[r];for(var f=r;++l<u;)d[f+l]=e[l];for(;++a<s;)(h||r<o)&&(d[f+n[a]]=t[r++]);return d}function ro(t,e){var n=-1,i=t.length;for(e||(e=Qt(i));++n<i;)e[n]=t[n];return e}function oo(e,n,i,r){var o=!i;i||(i={});for(var a=-1,s=n.length;++a<s;){var l=n[a],u=r?r(i[l],e[l],l,i,e):t;u===t&&(u=e[l]),o?Ni(i,l,u):Oi(i,l,u)}return i}function ao(t,e){return function(n,i){var r=bs(n)?Ue:Ai,o=e?e():{};return r(n,t,Ro(i,2),o)}}function so(e){return Cr(function(n,i){var r=-1,o=i.length,a=o>1?i[o-1]:t,s=o>2?i[2]:t;for(a=e.length>3&&"function"==typeof a?(o--,a):t,s&&Zo(i[0],i[1],s)&&(a=o<3?t:a,o=1),n=ee(n);++r<o;){var l=i[r];l&&e(n,l,r,a)}return n})}function lo(t,e){return function(n,i){if(null==n)return n;if(!_s(n))return t(n,i);for(var r=n.length,o=e?r:-1,a=ee(n);(e?o--:++o<r)&&!1!==i(a[o],o,a););return n}}function uo(t){return function(e,n,i){for(var r=-1,o=ee(e),a=i(e),s=a.length;s--;){var l=a[t?s:++r];if(!1===n(o[l],l,o))break}return e}}function co(e){return function(n){var i=xn(n=Vs(n))?En(n):t,r=i?i[0]:n.charAt(0),o=i?Qr(i,1).join(""):n.slice(1);return r[e]()+o}}function ho(t){return function(e){return Ke(Tl(yl(e).replace(pe,"")),t,"")}}function fo(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=gi(t.prototype),i=t.apply(n,e);return Es(i)?i:n}}function po(e){return function(n,i,r){var o=ee(n);if(!_s(n)){var a=Ro(i,3);n=al(n),i=function(t){return a(o[t],t,o)}}var s=e(n,i,r);return s>-1?o[a?n[s]:s]:t}}function mo(e){return Ao(function(n){var r=n.length,o=r,a=yi.prototype.thru;for(e&&n.reverse();o--;){var s=n[o];if("function"!=typeof s)throw new re(i);if(a&&!l&&"wrapper"==Po(s))var l=new yi([],!0)}for(o=l?o:r;++o<r;){var u=Po(s=n[o]),c="wrapper"==u?Io(s):t;l=c&&Ko(c[0])&&c[1]==(w|g|y|_)&&!c[4].length&&1==c[9]?l[Po(c[0])].apply(l,c[3]):1==s.length&&Ko(s)?l[u]():l.thru(s)}return function(){var t=arguments,e=t[0];if(l&&1==t.length&&bs(e))return l.plant(e).value();for(var i=0,o=r?n[i].apply(this,t):e;++i<r;)o=n[i].call(this,o);return o}})}function go(e,n,i,r,o,a,s,l,u,c){var d=n&w,h=n&f,m=n&p,y=n&(g|v),b=n&x,_=m?t:fo(e);return function f(){for(var p=arguments.length,g=Qt(p),v=p;v--;)g[v]=arguments[v];if(y)var w=Lo(f),x=function(t,e){for(var n=t.length,i=0;n--;)t[n]===e&&++i;return i}(g,w);if(r&&(g=no(g,r,o,y)),a&&(g=io(g,a,s,y)),p-=x,y&&p<c){var D=Cn(g,w);return Do(e,n,go,f.placeholder,i,g,D,l,u,c-p)}var k=h?i:this,C=m?k[e]:e;return p=g.length,l?g=function(e,n){for(var i=e.length,r=Gn(n.length,i),o=ro(e);r--;){var a=n[r];e[r]=Go(a,i)?o[a]:t}return e}(g,l):b&&p>1&&g.reverse(),d&&u<p&&(g.length=u),this&&this!==Ee&&this instanceof f&&(C=_||fo(C)),C.apply(k,g)}}function vo(t,e){return function(n,i){return function(t,e,n,i){return Zi(t,function(t,r,o){e(i,n(t),r,o)}),i}(n,t,e(i),{})}}function yo(e,n){return function(i,r){var o;if(i===t&&r===t)return n;if(i!==t&&(o=i),r!==t){if(o===t)return r;"string"==typeof i||"string"==typeof r?(i=Rr(i),r=Rr(r)):(i=Lr(i),r=Lr(r)),o=e(i,r)}return o}}function bo(t){return Ao(function(e){return e=Ze(e,pn(Ro())),Cr(function(n){var i=this;return t(e,function(t){return Fe(t,i,n)})})})}function wo(e,n){var i=(n=n===t?" ":Rr(n)).length;if(i<2)return i?kr(n,e):n;var r=kr(n,Hn(e/$n(n)));return xn(n)?Qr(En(r),0,e).join(""):r.slice(0,e)}function _o(e){return function(n,i,r){return r&&"number"!=typeof r&&Zo(n,i,r)&&(i=r=t),n=Us(n),i===t?(i=n,n=0):i=Us(i),function(t,e,n,i){for(var r=-1,o=Vn(Hn((e-t)/(n||1)),0),a=Qt(o);o--;)a[i?o:++r]=t,t+=n;return a}(n,i,r=r===t?n<i?1:-1:Us(r),e)}}function xo(t){return function(e,n){return"string"==typeof e&&"string"==typeof n||(e=Bs(e),n=Bs(n)),t(e,n)}}function Do(e,n,i,r,o,a,s,l,u,c){var d=n&g;n|=d?y:b,(n&=~(d?b:y))&m||(n&=~(f|p));var h=[e,n,o,d?a:t,d?s:t,d?t:a,d?t:s,l,u,c],v=i.apply(t,h);return Ko(e)&&oa(v,h),v.placeholder=r,la(v,e,n)}function ko(t){var e=te[t];return function(t,n){if(t=Bs(t),(n=null==n?0:Gn(Ws(n),292))&&qn(t)){var i=(Vs(t)+"e").split("e");return+((i=(Vs(e(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return e(t)}}var Co=ni&&1/Tn(new ni([,-0]))[1]==E?function(t){return new ni(t)}:Ll;function To(t){return function(e){var n=qo(e);return n==z?Dn(e):n==J?Sn(e):function(t,e){return Ze(e,function(e){return[e,t[e]]})}(e,t(e))}}function So(e,n,r,o,a,l,u,c){var d=n&p;if(!d&&"function"!=typeof e)throw new re(i);var h=o?o.length:0;if(h||(n&=~(y|b),o=a=t),u=u===t?u:Vn(Ws(u),0),c=c===t?c:Ws(c),h-=a?a.length:0,n&b){var x=o,D=a;o=a=t}var k=d?t:Io(e),C=[e,n,r,o,a,x,D,l,u,c];if(k&&function(t,e){var n=t[1],i=e[1],r=n|i,o=r<(f|p|w),a=i==w&&n==g||i==w&&n==_&&t[7].length<=e[8]||i==(w|_)&&e[7].length<=e[8]&&n==g;if(!o&&!a)return t;i&f&&(t[2]=e[2],r|=n&f?0:m);var l=e[3];if(l){var u=t[3];t[3]=u?no(u,l,e[4]):l,t[4]=u?Cn(t[3],s):e[4]}(l=e[5])&&(u=t[5],t[5]=u?io(u,l,e[6]):l,t[6]=u?Cn(t[5],s):e[6]),(l=e[7])&&(t[7]=l),i&w&&(t[8]=null==t[8]?e[8]:Gn(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=r}(C,k),e=C[0],n=C[1],r=C[2],o=C[3],a=C[4],!(c=C[9]=C[9]===t?d?0:e.length:Vn(C[9]-h,0))&&n&(g|v)&&(n&=~(g|v)),n&&n!=f)T=n==g||n==v?function(e,n,i){var r=fo(e);return function o(){for(var a=arguments.length,s=Qt(a),l=a,u=Lo(o);l--;)s[l]=arguments[l];var c=a<3&&s[0]!==u&&s[a-1]!==u?[]:Cn(s,u);return(a-=c.length)<i?Do(e,n,go,o.placeholder,t,s,c,t,t,i-a):Fe(this&&this!==Ee&&this instanceof o?r:e,this,s)}}(e,n,c):n!=y&&n!=(f|y)||a.length?go.apply(t,C):function(t,e,n,i){var r=e&f,o=fo(t);return function e(){for(var a=-1,s=arguments.length,l=-1,u=i.length,c=Qt(u+s),d=this&&this!==Ee&&this instanceof e?o:t;++l<u;)c[l]=i[l];for(;s--;)c[l++]=arguments[++a];return Fe(d,r?n:this,c)}}(e,n,r,o);else var T=function(t,e,n){var i=e&f,r=fo(t);return function e(){return(this&&this!==Ee&&this instanceof e?r:t).apply(i?n:this,arguments)}}(e,n,r);return la((k?Er:oa)(T,C),e,n)}function $o(e,n,i,r){return e===t||ms(e,se[i])&&!ce.call(r,i)?n:e}function Eo(e,n,i,r,o,a){return Es(e)&&Es(n)&&(a.set(n,e),vr(e,n,t,Eo,a),a.delete(n)),e}function Oo(e){return js(e)?t:e}function Mo(e,n,i,r,o,a){var s=i&d,l=e.length,u=n.length;if(l!=u&&!(s&&u>l))return!1;var c=a.get(e),f=a.get(n);if(c&&f)return c==n&&f==e;var p=-1,m=!0,g=i&h?new Di:t;for(a.set(e,n),a.set(n,e);++p<l;){var v=e[p],y=n[p];if(r)var b=s?r(y,v,p,n,e,a):r(v,y,p,e,n,a);if(b!==t){if(b)continue;m=!1;break}if(g){if(!Xe(n,function(t,e){if(!gn(g,e)&&(v===t||o(v,t,i,r,a)))return g.push(e)})){m=!1;break}}else if(v!==y&&!o(v,y,i,r,a)){m=!1;break}}return a.delete(e),a.delete(n),m}function Ao(e){return sa(na(e,t,wa),e+"")}function jo(t){return Xi(t,al,Uo)}function No(t){return Xi(t,sl,Wo)}var Io=oi?function(t){return oi.get(t)}:Ll;function Po(t){for(var e=t.name+"",n=ai[e],i=ce.call(ai,e)?n.length:0;i--;){var r=n[i],o=r.func;if(null==o||o==t)return r.name}return e}function Lo(t){return(ce.call(mi,"placeholder")?mi:t).placeholder}function Ro(){var t=mi.iteratee||jl;return t=t===jl?cr:t,arguments.length?t(arguments[0],arguments[1]):t}function Yo(t,e){var n,i,r=t.__data__;return("string"==(i=typeof(n=e))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof e?"string":"hash"]:r.map}function Ho(t){for(var e=al(t),n=e.length;n--;){var i=e[n],r=t[i];e[n]=[i,r,ta(r)]}return e}function Fo(e,n){var i=function(e,n){return null==e?t:e[n]}(e,n);return ur(i)?i:t}var Uo=Un?function(t){return null==t?[]:(t=ee(t),ze(Un(t),function(e){return tn.call(t,e)}))}:ql,Wo=Un?function(t){for(var e=[];t;)Qe(e,Uo(t)),t=je(t);return e}:ql,qo=tr;function Bo(t,e,n){for(var i=-1,r=(e=Gr(e,t)).length,o=!1;++i<r;){var a=ha(e[i]);if(!(o=null!=t&&n(t,a)))break;t=t[a]}return o||++i!=r?o:!!(r=null==t?0:t.length)&&$s(r)&&Go(a,r)&&(bs(t)||ys(t))}function zo(t){return"function"!=typeof t.constructor||Xo(t)?{}:gi(je(t))}function Vo(t){return bs(t)||ys(t)||!!(jn&&t&&t[jn])}function Go(t,e){var n=typeof t;return!!(e=null==e?O:e)&&("number"==n||"symbol"!=n&&qt.test(t))&&t>-1&&t%1==0&&t<e}function Zo(t,e,n){if(!Es(n))return!1;var i=typeof e;return!!("number"==i?_s(n)&&Go(e,n.length):"string"==i&&e in n)&&ms(n[e],t)}function Qo(t,e){if(bs(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Ls(t))||Tt.test(t)||!Ct.test(t)||null!=e&&t in ee(e)}function Ko(t){var e=Po(t),n=mi[e];if("function"!=typeof n||!(e in bi.prototype))return!1;if(t===n)return!0;var i=Io(n);return!!i&&t===i[0]}(Xn&&qo(new Xn(new ArrayBuffer(1)))!=ot||ti&&qo(new ti)!=z||ei&&"[object Promise]"!=qo(ei.resolve())||ni&&qo(new ni)!=J||ii&&qo(new ii)!=nt)&&(qo=function(e){var n=tr(e),i=n==Z?e.constructor:t,r=i?fa(i):"";if(r)switch(r){case si:return ot;case li:return z;case ui:return"[object Promise]";case ci:return J;case di:return nt}return n});var Jo=le?Ts:Bl;function Xo(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||se)}function ta(t){return t==t&&!Es(t)}function ea(e,n){return function(i){return null!=i&&i[e]===n&&(n!==t||e in ee(i))}}function na(e,n,i){return n=Vn(n===t?e.length-1:n,0),function(){for(var t=arguments,r=-1,o=Vn(t.length-n,0),a=Qt(o);++r<o;)a[r]=t[n+r];r=-1;for(var s=Qt(n+1);++r<n;)s[r]=t[r];return s[n]=i(a),Fe(e,this,s)}}function ia(t,e){return e.length<2?t:Ji(t,Ar(e,0,-1))}function ra(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}var oa=ua(Er),aa=Yn||function(t,e){return Ee.setTimeout(t,e)},sa=ua(Or);function la(t,e,n){var i=e+"";return sa(t,function(t,e){var n=e.length;if(!n)return t;var i=n-1;return e[i]=(n>1?"& ":"")+e[i],e=e.join(n>2?", ":" "),t.replace(At,"{\n/* [wrapped with "+e+"] */\n")}(i,function(t,e){return We(P,function(n){var i="_."+n[0];e&n[1]&&!Ve(t,i)&&t.push(i)}),t.sort()}(function(t){var e=t.match(jt);return e?e[1].split(Nt):[]}(i),n)))}function ua(e){var n=0,i=0;return function(){var r=Zn(),o=T-(r-i);if(i=r,o>0){if(++n>=C)return arguments[0]}else n=0;return e.apply(t,arguments)}}function ca(e,n){var i=-1,r=e.length,o=r-1;for(n=n===t?r:n;++i<n;){var a=Dr(i,o),s=e[a];e[a]=e[i],e[i]=s}return e.length=n,e}var da=function(t){var e=us(t,function(t){return n.size===a&&n.clear(),t}),n=e.cache;return e}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(St,function(t,n,i,r){e.push(i?r.replace(Lt,"$1"):n||t)}),e});function ha(t){if("string"==typeof t||Ls(t))return t;var e=t+"";return"0"==e&&1/t==-E?"-0":e}function fa(t){if(null!=t){try{return ue.call(t)}catch(t){}try{return t+""}catch(t){}}return""}function pa(t){if(t instanceof bi)return t.clone();var e=new yi(t.__wrapped__,t.__chain__);return e.__actions__=ro(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var ma=Cr(function(t,e){return xs(t)?Hi(t,zi(e,1,xs,!0)):[]}),ga=Cr(function(e,n){var i=Ca(n);return xs(i)&&(i=t),xs(e)?Hi(e,zi(n,1,xs,!0),Ro(i,2)):[]}),va=Cr(function(e,n){var i=Ca(n);return xs(i)&&(i=t),xs(e)?Hi(e,zi(n,1,xs,!0),t,i):[]});function ya(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Ws(n);return r<0&&(r=Vn(i+r,0)),nn(t,Ro(e,3),r)}function ba(e,n,i){var r=null==e?0:e.length;if(!r)return-1;var o=r-1;return i!==t&&(o=Ws(i),o=i<0?Vn(r+o,0):Gn(o,r-1)),nn(e,Ro(n,3),o,!0)}function wa(t){return null!=t&&t.length?zi(t,1):[]}function _a(e){return e&&e.length?e[0]:t}var xa=Cr(function(t){var e=Ze(t,zr);return e.length&&e[0]===t[0]?rr(e):[]}),Da=Cr(function(e){var n=Ca(e),i=Ze(e,zr);return n===Ca(i)?n=t:i.pop(),i.length&&i[0]===e[0]?rr(i,Ro(n,2)):[]}),ka=Cr(function(e){var n=Ca(e),i=Ze(e,zr);return(n="function"==typeof n?n:t)&&i.pop(),i.length&&i[0]===e[0]?rr(i,t,n):[]});function Ca(e){var n=null==e?0:e.length;return n?e[n-1]:t}var Ta=Cr(Sa);function Sa(t,e){return t&&t.length&&e&&e.length?_r(t,e):t}var $a=Ao(function(t,e){var n=null==t?0:t.length,i=Ii(t,e);return xr(t,Ze(e,function(t){return Go(t,n)?+t:t}).sort(eo)),i});function Ea(t){return null==t?t:Jn.call(t)}var Oa=Cr(function(t){return Yr(zi(t,1,xs,!0))}),Ma=Cr(function(e){var n=Ca(e);return xs(n)&&(n=t),Yr(zi(e,1,xs,!0),Ro(n,2))}),Aa=Cr(function(e){var n=Ca(e);return n="function"==typeof n?n:t,Yr(zi(e,1,xs,!0),t,n)});function ja(t){if(!t||!t.length)return[];var e=0;return t=ze(t,function(t){if(xs(t))return e=Vn(t.length,e),!0}),hn(e,function(e){return Ze(t,ln(e))})}function Na(e,n){if(!e||!e.length)return[];var i=ja(e);return null==n?i:Ze(i,function(e){return Fe(n,t,e)})}var Ia=Cr(function(t,e){return xs(t)?Hi(t,e):[]}),Pa=Cr(function(t){return qr(ze(t,xs))}),La=Cr(function(e){var n=Ca(e);return xs(n)&&(n=t),qr(ze(e,xs),Ro(n,2))}),Ra=Cr(function(e){var n=Ca(e);return n="function"==typeof n?n:t,qr(ze(e,xs),t,n)}),Ya=Cr(ja);var Ha=Cr(function(e){var n=e.length,i=n>1?e[n-1]:t;return i="function"==typeof i?(e.pop(),i):t,Na(e,i)});function Fa(t){var e=mi(t);return e.__chain__=!0,e}function Ua(t,e){return e(t)}var Wa=Ao(function(e){var n=e.length,i=n?e[0]:0,r=this.__wrapped__,o=function(t){return Ii(t,e)};return!(n>1||this.__actions__.length)&&r instanceof bi&&Go(i)?((r=r.slice(i,+i+(n?1:0))).__actions__.push({func:Ua,args:[o],thisArg:t}),new yi(r,this.__chain__).thru(function(e){return n&&!e.length&&e.push(t),e})):this.thru(o)});var qa=ao(function(t,e,n){ce.call(t,n)?++t[n]:Ni(t,n,1)});var Ba=po(ya),za=po(ba);function Va(t,e){return(bs(t)?We:Fi)(t,Ro(e,3))}function Ga(t,e){return(bs(t)?qe:Ui)(t,Ro(e,3))}var Za=ao(function(t,e,n){ce.call(t,n)?t[n].push(e):Ni(t,n,[e])});var Qa=Cr(function(t,e,n){var i=-1,r="function"==typeof e,o=_s(t)?Qt(t.length):[];return Fi(t,function(t){o[++i]=r?Fe(e,t,n):or(t,e,n)}),o}),Ka=ao(function(t,e,n){Ni(t,n,e)});function Ja(t,e){return(bs(t)?Ze:pr)(t,Ro(e,3))}var Xa=ao(function(t,e,n){t[n?0:1].push(e)},function(){return[[],[]]});var ts=Cr(function(t,e){if(null==t)return[];var n=e.length;return n>1&&Zo(t,e[0],e[1])?e=[]:n>2&&Zo(e[0],e[1],e[2])&&(e=[e[0]]),br(t,zi(e,1),[])}),es=Rn||function(){return Ee.Date.now()};function ns(e,n,i){return n=i?t:n,n=e&&null==n?e.length:n,So(e,w,t,t,t,t,n)}function is(e,n){var r;if("function"!=typeof n)throw new re(i);return e=Ws(e),function(){return--e>0&&(r=n.apply(this,arguments)),e<=1&&(n=t),r}}var rs=Cr(function(t,e,n){var i=f;if(n.length){var r=Cn(n,Lo(rs));i|=y}return So(t,i,e,n,r)}),os=Cr(function(t,e,n){var i=f|p;if(n.length){var r=Cn(n,Lo(os));i|=y}return So(e,i,t,n,r)});function as(e,n,r){var o,a,s,l,u,c,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new re(i);function m(n){var i=o,r=a;return o=a=t,d=n,l=e.apply(r,i)}function g(e){var i=e-c;return c===t||i>=n||i<0||f&&e-d>=s}function v(){var t=es();if(g(t))return y(t);u=aa(v,function(t){var e=n-(t-c);return f?Gn(e,s-(t-d)):e}(t))}function y(e){return u=t,p&&o?m(e):(o=a=t,l)}function b(){var e=es(),i=g(e);if(o=arguments,a=this,c=e,i){if(u===t)return function(t){return d=t,u=aa(v,n),h?m(t):l}(c);if(f)return Kr(u),u=aa(v,n),m(c)}return u===t&&(u=aa(v,n)),l}return n=Bs(n)||0,Es(r)&&(h=!!r.leading,s=(f="maxWait"in r)?Vn(Bs(r.maxWait)||0,n):s,p="trailing"in r?!!r.trailing:p),b.cancel=function(){u!==t&&Kr(u),d=0,o=c=a=u=t},b.flush=function(){return u===t?l:y(es())},b}var ss=Cr(function(t,e){return Yi(t,1,e)}),ls=Cr(function(t,e,n){return Yi(t,Bs(e)||0,n)});function us(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new re(i);var n=function(){var i=arguments,r=e?e.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=t.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(us.Cache||xi),n}function cs(t){if("function"!=typeof t)throw new re(i);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}us.Cache=xi;var ds=Zr(function(t,e){var n=(e=1==e.length&&bs(e[0])?Ze(e[0],pn(Ro())):Ze(zi(e,1),pn(Ro()))).length;return Cr(function(i){for(var r=-1,o=Gn(i.length,n);++r<o;)i[r]=e[r].call(this,i[r]);return Fe(t,this,i)})}),hs=Cr(function(e,n){var i=Cn(n,Lo(hs));return So(e,y,t,n,i)}),fs=Cr(function(e,n){var i=Cn(n,Lo(fs));return So(e,b,t,n,i)}),ps=Ao(function(e,n){return So(e,_,t,t,t,n)});function ms(t,e){return t===e||t!=t&&e!=e}var gs=xo(er),vs=xo(function(t,e){return t>=e}),ys=ar(function(){return arguments}())?ar:function(t){return Os(t)&&ce.call(t,"callee")&&!tn.call(t,"callee")},bs=Qt.isArray,ws=Ie?pn(Ie):function(t){return Os(t)&&tr(t)==rt};function _s(t){return null!=t&&$s(t.length)&&!Ts(t)}function xs(t){return Os(t)&&_s(t)}var Ds=Wn||Bl,ks=Pe?pn(Pe):function(t){return Os(t)&&tr(t)==F};function Cs(t){if(!Os(t))return!1;var e=tr(t);return e==W||e==U||"string"==typeof t.message&&"string"==typeof t.name&&!js(t)}function Ts(t){if(!Es(t))return!1;var e=tr(t);return e==q||e==B||e==Y||e==Q}function Ss(t){return"number"==typeof t&&t==Ws(t)}function $s(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=O}function Es(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function Os(t){return null!=t&&"object"==typeof t}var Ms=Le?pn(Le):function(t){return Os(t)&&qo(t)==z};function As(t){return"number"==typeof t||Os(t)&&tr(t)==V}function js(t){if(!Os(t)||tr(t)!=Z)return!1;var e=je(t);if(null===e)return!0;var n=ce.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&ue.call(n)==ge}var Ns=Re?pn(Re):function(t){return Os(t)&&tr(t)==K};var Is=Ye?pn(Ye):function(t){return Os(t)&&qo(t)==J};function Ps(t){return"string"==typeof t||!bs(t)&&Os(t)&&tr(t)==X}function Ls(t){return"symbol"==typeof t||Os(t)&&tr(t)==tt}var Rs=He?pn(He):function(t){return Os(t)&&$s(t.length)&&!!xe[tr(t)]};var Ys=xo(fr),Hs=xo(function(t,e){return t<=e});function Fs(t){if(!t)return[];if(_s(t))return Ps(t)?En(t):ro(t);if(Nn&&t[Nn])return function(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}(t[Nn]());var e=qo(t);return(e==z?Dn:e==J?Tn:ml)(t)}function Us(t){return t?(t=Bs(t))===E||t===-E?(t<0?-1:1)*M:t==t?t:0:0===t?t:0}function Ws(t){var e=Us(t),n=e%1;return e==e?n?e-n:e:0}function qs(t){return t?Pi(Ws(t),0,j):0}function Bs(t){if("number"==typeof t)return t;if(Ls(t))return A;if(Es(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Es(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=fn(t);var n=Ft.test(t);return n||Wt.test(t)?Te(t.slice(2),n?2:8):Ht.test(t)?A:+t}function zs(t){return oo(t,sl(t))}function Vs(t){return null==t?"":Rr(t)}var Gs=so(function(t,e){if(Xo(e)||_s(e))oo(e,al(e),t);else for(var n in e)ce.call(e,n)&&Oi(t,n,e[n])}),Zs=so(function(t,e){oo(e,sl(e),t)}),Qs=so(function(t,e,n,i){oo(e,sl(e),t,i)}),Ks=so(function(t,e,n,i){oo(e,al(e),t,i)}),Js=Ao(Ii);var Xs=Cr(function(e,n){e=ee(e);var i=-1,r=n.length,o=r>2?n[2]:t;for(o&&Zo(n[0],n[1],o)&&(r=1);++i<r;)for(var a=n[i],s=sl(a),l=-1,u=s.length;++l<u;){var c=s[l],d=e[c];(d===t||ms(d,se[c])&&!ce.call(e,c))&&(e[c]=a[c])}return e}),tl=Cr(function(e){return e.push(t,Eo),Fe(ul,t,e)});function el(e,n,i){var r=null==e?t:Ji(e,n);return r===t?i:r}function nl(t,e){return null!=t&&Bo(t,e,ir)}var il=vo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),t[e]=n},El(Al)),rl=vo(function(t,e,n){null!=e&&"function"!=typeof e.toString&&(e=fe.call(e)),ce.call(t,e)?t[e].push(n):t[e]=[n]},Ro),ol=Cr(or);function al(t){return _s(t)?Ci(t):dr(t)}function sl(t){return _s(t)?Ci(t,!0):hr(t)}var ll=so(function(t,e,n){vr(t,e,n)}),ul=so(function(t,e,n,i){vr(t,e,n,i)}),cl=Ao(function(t,e){var n={};if(null==t)return n;var i=!1;e=Ze(e,function(e){return e=Gr(e,t),i||(i=e.length>1),e}),oo(t,No(t),n),i&&(n=Li(n,l|u|c,Oo));for(var r=e.length;r--;)Hr(n,e[r]);return n});var dl=Ao(function(t,e){return null==t?{}:function(t,e){return wr(t,e,function(e,n){return nl(t,n)})}(t,e)});function hl(t,e){if(null==t)return{};var n=Ze(No(t),function(t){return[t]});return e=Ro(e),wr(t,n,function(t,n){return e(t,n[0])})}var fl=To(al),pl=To(sl);function ml(t){return null==t?[]:mn(t,al(t))}var gl=ho(function(t,e,n){return e=e.toLowerCase(),t+(n?vl(e):e)});function vl(t){return Cl(Vs(t).toLowerCase())}function yl(t){return(t=Vs(t))&&t.replace(Bt,bn).replace(me,"")}var bl=ho(function(t,e,n){return t+(n?"-":"")+e.toLowerCase()}),wl=ho(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()}),_l=co("toLowerCase");var xl=ho(function(t,e,n){return t+(n?"_":"")+e.toLowerCase()});var Dl=ho(function(t,e,n){return t+(n?" ":"")+Cl(e)});var kl=ho(function(t,e,n){return t+(n?" ":"")+e.toUpperCase()}),Cl=co("toUpperCase");function Tl(e,n,i){return e=Vs(e),(n=i?t:n)===t?function(t){return be.test(t)}(e)?function(t){return t.match(ve)||[]}(e):function(t){return t.match(It)||[]}(e):e.match(n)||[]}var Sl=Cr(function(e,n){try{return Fe(e,t,n)}catch(t){return Cs(t)?t:new Jt(t)}}),$l=Ao(function(t,e){return We(e,function(e){e=ha(e),Ni(t,e,rs(t[e],t))}),t});function El(t){return function(){return t}}var Ol=mo(),Ml=mo(!0);function Al(t){return t}function jl(t){return cr("function"==typeof t?t:Li(t,l))}var Nl=Cr(function(t,e){return function(n){return or(n,t,e)}}),Il=Cr(function(t,e){return function(n){return or(t,n,e)}});function Pl(t,e,n){var i=al(e),r=Ki(e,i);null!=n||Es(e)&&(r.length||!i.length)||(n=e,e=t,t=this,r=Ki(e,al(e)));var o=!(Es(n)&&"chain"in n&&!n.chain),a=Ts(t);return We(r,function(n){var i=e[n];t[n]=i,a&&(t.prototype[n]=function(){var e=this.__chain__;if(o||e){var n=t(this.__wrapped__);return(n.__actions__=ro(this.__actions__)).push({func:i,args:arguments,thisArg:t}),n.__chain__=e,n}return i.apply(t,Qe([this.value()],arguments))})}),t}function Ll(){}var Rl=bo(Ze),Yl=bo(Be),Hl=bo(Xe);function Fl(t){return Qo(t)?ln(ha(t)):function(t){return function(e){return Ji(e,t)}}(t)}var Ul=_o(),Wl=_o(!0);function ql(){return[]}function Bl(){return!1}var zl=yo(function(t,e){return t+e},0),Vl=ko("ceil"),Gl=yo(function(t,e){return t/e},1),Zl=ko("floor");var Ql,Kl=yo(function(t,e){return t*e},1),Jl=ko("round"),Xl=yo(function(t,e){return t-e},0);return mi.after=function(t,e){if("function"!=typeof e)throw new re(i);return t=Ws(t),function(){if(--t<1)return e.apply(this,arguments)}},mi.ary=ns,mi.assign=Gs,mi.assignIn=Zs,mi.assignInWith=Qs,mi.assignWith=Ks,mi.at=Js,mi.before=is,mi.bind=rs,mi.bindAll=$l,mi.bindKey=os,mi.castArray=function(){if(!arguments.length)return[];var t=arguments[0];return bs(t)?t:[t]},mi.chain=Fa,mi.chunk=function(e,n,i){n=(i?Zo(e,n,i):n===t)?1:Vn(Ws(n),0);var r=null==e?0:e.length;if(!r||n<1)return[];for(var o=0,a=0,s=Qt(Hn(r/n));o<r;)s[a++]=Ar(e,o,o+=n);return s},mi.compact=function(t){for(var e=-1,n=null==t?0:t.length,i=0,r=[];++e<n;){var o=t[e];o&&(r[i++]=o)}return r},mi.concat=function(){var t=arguments.length;if(!t)return[];for(var e=Qt(t-1),n=arguments[0],i=t;i--;)e[i-1]=arguments[i];return Qe(bs(n)?ro(n):[n],zi(e,1))},mi.cond=function(t){var e=null==t?0:t.length,n=Ro();return t=e?Ze(t,function(t){if("function"!=typeof t[1])throw new re(i);return[n(t[0]),t[1]]}):[],Cr(function(n){for(var i=-1;++i<e;){var r=t[i];if(Fe(r[0],this,n))return Fe(r[1],this,n)}})},mi.conforms=function(t){return function(t){var e=al(t);return function(n){return Ri(n,t,e)}}(Li(t,l))},mi.constant=El,mi.countBy=qa,mi.create=function(t,e){var n=gi(t);return null==e?n:ji(n,e)},mi.curry=function e(n,i,r){var o=So(n,g,t,t,t,t,t,i=r?t:i);return o.placeholder=e.placeholder,o},mi.curryRight=function e(n,i,r){var o=So(n,v,t,t,t,t,t,i=r?t:i);return o.placeholder=e.placeholder,o},mi.debounce=as,mi.defaults=Xs,mi.defaultsDeep=tl,mi.defer=ss,mi.delay=ls,mi.difference=ma,mi.differenceBy=ga,mi.differenceWith=va,mi.drop=function(e,n,i){var r=null==e?0:e.length;return r?Ar(e,(n=i||n===t?1:Ws(n))<0?0:n,r):[]},mi.dropRight=function(e,n,i){var r=null==e?0:e.length;return r?Ar(e,0,(n=r-(n=i||n===t?1:Ws(n)))<0?0:n):[]},mi.dropRightWhile=function(t,e){return t&&t.length?Ur(t,Ro(e,3),!0,!0):[]},mi.dropWhile=function(t,e){return t&&t.length?Ur(t,Ro(e,3),!0):[]},mi.fill=function(e,n,i,r){var o=null==e?0:e.length;return o?(i&&"number"!=typeof i&&Zo(e,n,i)&&(i=0,r=o),function(e,n,i,r){var o=e.length;for((i=Ws(i))<0&&(i=-i>o?0:o+i),(r=r===t||r>o?o:Ws(r))<0&&(r+=o),r=i>r?0:qs(r);i<r;)e[i++]=n;return e}(e,n,i,r)):[]},mi.filter=function(t,e){return(bs(t)?ze:Bi)(t,Ro(e,3))},mi.flatMap=function(t,e){return zi(Ja(t,e),1)},mi.flatMapDeep=function(t,e){return zi(Ja(t,e),E)},mi.flatMapDepth=function(e,n,i){return i=i===t?1:Ws(i),zi(Ja(e,n),i)},mi.flatten=wa,mi.flattenDeep=function(t){return null!=t&&t.length?zi(t,E):[]},mi.flattenDepth=function(e,n){return null!=e&&e.length?zi(e,n=n===t?1:Ws(n)):[]},mi.flip=function(t){return So(t,x)},mi.flow=Ol,mi.flowRight=Ml,mi.fromPairs=function(t){for(var e=-1,n=null==t?0:t.length,i={};++e<n;){var r=t[e];i[r[0]]=r[1]}return i},mi.functions=function(t){return null==t?[]:Ki(t,al(t))},mi.functionsIn=function(t){return null==t?[]:Ki(t,sl(t))},mi.groupBy=Za,mi.initial=function(t){return null!=t&&t.length?Ar(t,0,-1):[]},mi.intersection=xa,mi.intersectionBy=Da,mi.intersectionWith=ka,mi.invert=il,mi.invertBy=rl,mi.invokeMap=Qa,mi.iteratee=jl,mi.keyBy=Ka,mi.keys=al,mi.keysIn=sl,mi.map=Ja,mi.mapKeys=function(t,e){var n={};return e=Ro(e,3),Zi(t,function(t,i,r){Ni(n,e(t,i,r),t)}),n},mi.mapValues=function(t,e){var n={};return e=Ro(e,3),Zi(t,function(t,i,r){Ni(n,i,e(t,i,r))}),n},mi.matches=function(t){return mr(Li(t,l))},mi.matchesProperty=function(t,e){return gr(t,Li(e,l))},mi.memoize=us,mi.merge=ll,mi.mergeWith=ul,mi.method=Nl,mi.methodOf=Il,mi.mixin=Pl,mi.negate=cs,mi.nthArg=function(t){return t=Ws(t),Cr(function(e){return yr(e,t)})},mi.omit=cl,mi.omitBy=function(t,e){return hl(t,cs(Ro(e)))},mi.once=function(t){return is(2,t)},mi.orderBy=function(e,n,i,r){return null==e?[]:(bs(n)||(n=null==n?[]:[n]),bs(i=r?t:i)||(i=null==i?[]:[i]),br(e,n,i))},mi.over=Rl,mi.overArgs=ds,mi.overEvery=Yl,mi.overSome=Hl,mi.partial=hs,mi.partialRight=fs,mi.partition=Xa,mi.pick=dl,mi.pickBy=hl,mi.property=Fl,mi.propertyOf=function(e){return function(n){return null==e?t:Ji(e,n)}},mi.pull=Ta,mi.pullAll=Sa,mi.pullAllBy=function(t,e,n){return t&&t.length&&e&&e.length?_r(t,e,Ro(n,2)):t},mi.pullAllWith=function(e,n,i){return e&&e.length&&n&&n.length?_r(e,n,t,i):e},mi.pullAt=$a,mi.range=Ul,mi.rangeRight=Wl,mi.rearg=ps,mi.reject=function(t,e){return(bs(t)?ze:Bi)(t,cs(Ro(e,3)))},mi.remove=function(t,e){var n=[];if(!t||!t.length)return n;var i=-1,r=[],o=t.length;for(e=Ro(e,3);++i<o;){var a=t[i];e(a,i,t)&&(n.push(a),r.push(i))}return xr(t,r),n},mi.rest=function(e,n){if("function"!=typeof e)throw new re(i);return Cr(e,n=n===t?n:Ws(n))},mi.reverse=Ea,mi.sampleSize=function(e,n,i){return n=(i?Zo(e,n,i):n===t)?1:Ws(n),(bs(e)?Si:Sr)(e,n)},mi.set=function(t,e,n){return null==t?t:$r(t,e,n)},mi.setWith=function(e,n,i,r){return r="function"==typeof r?r:t,null==e?e:$r(e,n,i,r)},mi.shuffle=function(t){return(bs(t)?$i:Mr)(t)},mi.slice=function(e,n,i){var r=null==e?0:e.length;return r?(i&&"number"!=typeof i&&Zo(e,n,i)?(n=0,i=r):(n=null==n?0:Ws(n),i=i===t?r:Ws(i)),Ar(e,n,i)):[]},mi.sortBy=ts,mi.sortedUniq=function(t){return t&&t.length?Pr(t):[]},mi.sortedUniqBy=function(t,e){return t&&t.length?Pr(t,Ro(e,2)):[]},mi.split=function(e,n,i){return i&&"number"!=typeof i&&Zo(e,n,i)&&(n=i=t),(i=i===t?j:i>>>0)?(e=Vs(e))&&("string"==typeof n||null!=n&&!Ns(n))&&!(n=Rr(n))&&xn(e)?Qr(En(e),0,i):e.split(n,i):[]},mi.spread=function(t,e){if("function"!=typeof t)throw new re(i);return e=null==e?0:Vn(Ws(e),0),Cr(function(n){var i=n[e],r=Qr(n,0,e);return i&&Qe(r,i),Fe(t,this,r)})},mi.tail=function(t){var e=null==t?0:t.length;return e?Ar(t,1,e):[]},mi.take=function(e,n,i){return e&&e.length?Ar(e,0,(n=i||n===t?1:Ws(n))<0?0:n):[]},mi.takeRight=function(e,n,i){var r=null==e?0:e.length;return r?Ar(e,(n=r-(n=i||n===t?1:Ws(n)))<0?0:n,r):[]},mi.takeRightWhile=function(t,e){return t&&t.length?Ur(t,Ro(e,3),!1,!0):[]},mi.takeWhile=function(t,e){return t&&t.length?Ur(t,Ro(e,3)):[]},mi.tap=function(t,e){return e(t),t},mi.throttle=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new re(i);return Es(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),as(t,e,{leading:r,maxWait:e,trailing:o})},mi.thru=Ua,mi.toArray=Fs,mi.toPairs=fl,mi.toPairsIn=pl,mi.toPath=function(t){return bs(t)?Ze(t,ha):Ls(t)?[t]:ro(da(Vs(t)))},mi.toPlainObject=zs,mi.transform=function(t,e,n){var i=bs(t),r=i||Ds(t)||Rs(t);if(e=Ro(e,4),null==n){var o=t&&t.constructor;n=r?i?new o:[]:Es(t)&&Ts(o)?gi(je(t)):{}}return(r?We:Zi)(t,function(t,i,r){return e(n,t,i,r)}),n},mi.unary=function(t){return ns(t,1)},mi.union=Oa,mi.unionBy=Ma,mi.unionWith=Aa,mi.uniq=function(t){return t&&t.length?Yr(t):[]},mi.uniqBy=function(t,e){return t&&t.length?Yr(t,Ro(e,2)):[]},mi.uniqWith=function(e,n){return n="function"==typeof n?n:t,e&&e.length?Yr(e,t,n):[]},mi.unset=function(t,e){return null==t||Hr(t,e)},mi.unzip=ja,mi.unzipWith=Na,mi.update=function(t,e,n){return null==t?t:Fr(t,e,Vr(n))},mi.updateWith=function(e,n,i,r){return r="function"==typeof r?r:t,null==e?e:Fr(e,n,Vr(i),r)},mi.values=ml,mi.valuesIn=function(t){return null==t?[]:mn(t,sl(t))},mi.without=Ia,mi.words=Tl,mi.wrap=function(t,e){return hs(Vr(e),t)},mi.xor=Pa,mi.xorBy=La,mi.xorWith=Ra,mi.zip=Ya,mi.zipObject=function(t,e){return Br(t||[],e||[],Oi)},mi.zipObjectDeep=function(t,e){return Br(t||[],e||[],$r)},mi.zipWith=Ha,mi.entries=fl,mi.entriesIn=pl,mi.extend=Zs,mi.extendWith=Qs,Pl(mi,mi),mi.add=zl,mi.attempt=Sl,mi.camelCase=gl,mi.capitalize=vl,mi.ceil=Vl,mi.clamp=function(e,n,i){return i===t&&(i=n,n=t),i!==t&&(i=(i=Bs(i))==i?i:0),n!==t&&(n=(n=Bs(n))==n?n:0),Pi(Bs(e),n,i)},mi.clone=function(t){return Li(t,c)},mi.cloneDeep=function(t){return Li(t,l|c)},mi.cloneDeepWith=function(e,n){return Li(e,l|c,n="function"==typeof n?n:t)},mi.cloneWith=function(e,n){return Li(e,c,n="function"==typeof n?n:t)},mi.conformsTo=function(t,e){return null==e||Ri(t,e,al(e))},mi.deburr=yl,mi.defaultTo=function(t,e){return null==t||t!=t?e:t},mi.divide=Gl,mi.endsWith=function(e,n,i){e=Vs(e),n=Rr(n);var r=e.length,o=i=i===t?r:Pi(Ws(i),0,r);return(i-=n.length)>=0&&e.slice(i,o)==n},mi.eq=ms,mi.escape=function(t){return(t=Vs(t))&&_t.test(t)?t.replace(bt,wn):t},mi.escapeRegExp=function(t){return(t=Vs(t))&&Et.test(t)?t.replace($t,"\\$&"):t},mi.every=function(e,n,i){var r=bs(e)?Be:Wi;return i&&Zo(e,n,i)&&(n=t),r(e,Ro(n,3))},mi.find=Ba,mi.findIndex=ya,mi.findKey=function(t,e){return en(t,Ro(e,3),Zi)},mi.findLast=za,mi.findLastIndex=ba,mi.findLastKey=function(t,e){return en(t,Ro(e,3),Qi)},mi.floor=Zl,mi.forEach=Va,mi.forEachRight=Ga,mi.forIn=function(t,e){return null==t?t:Vi(t,Ro(e,3),sl)},mi.forInRight=function(t,e){return null==t?t:Gi(t,Ro(e,3),sl)},mi.forOwn=function(t,e){return t&&Zi(t,Ro(e,3))},mi.forOwnRight=function(t,e){return t&&Qi(t,Ro(e,3))},mi.get=el,mi.gt=gs,mi.gte=vs,mi.has=function(t,e){return null!=t&&Bo(t,e,nr)},mi.hasIn=nl,mi.head=_a,mi.identity=Al,mi.includes=function(t,e,n,i){t=_s(t)?t:ml(t),n=n&&!i?Ws(n):0;var r=t.length;return n<0&&(n=Vn(r+n,0)),Ps(t)?n<=r&&t.indexOf(e,n)>-1:!!r&&rn(t,e,n)>-1},mi.indexOf=function(t,e,n){var i=null==t?0:t.length;if(!i)return-1;var r=null==n?0:Ws(n);return r<0&&(r=Vn(i+r,0)),rn(t,e,r)},mi.inRange=function(e,n,i){return n=Us(n),i===t?(i=n,n=0):i=Us(i),function(t,e,n){return t>=Gn(e,n)&&t<Vn(e,n)}(e=Bs(e),n,i)},mi.invoke=ol,mi.isArguments=ys,mi.isArray=bs,mi.isArrayBuffer=ws,mi.isArrayLike=_s,mi.isArrayLikeObject=xs,mi.isBoolean=function(t){return!0===t||!1===t||Os(t)&&tr(t)==H},mi.isBuffer=Ds,mi.isDate=ks,mi.isElement=function(t){return Os(t)&&1===t.nodeType&&!js(t)},mi.isEmpty=function(t){if(null==t)return!0;if(_s(t)&&(bs(t)||"string"==typeof t||"function"==typeof t.splice||Ds(t)||Rs(t)||ys(t)))return!t.length;var e=qo(t);if(e==z||e==J)return!t.size;if(Xo(t))return!dr(t).length;for(var n in t)if(ce.call(t,n))return!1;return!0},mi.isEqual=function(t,e){return sr(t,e)},mi.isEqualWith=function(e,n,i){var r=(i="function"==typeof i?i:t)?i(e,n):t;return r===t?sr(e,n,t,i):!!r},mi.isError=Cs,mi.isFinite=function(t){return"number"==typeof t&&qn(t)},mi.isFunction=Ts,mi.isInteger=Ss,mi.isLength=$s,mi.isMap=Ms,mi.isMatch=function(t,e){return t===e||lr(t,e,Ho(e))},mi.isMatchWith=function(e,n,i){return i="function"==typeof i?i:t,lr(e,n,Ho(n),i)},mi.isNaN=function(t){return As(t)&&t!=+t},mi.isNative=function(t){if(Jo(t))throw new Jt(n);return ur(t)},mi.isNil=function(t){return null==t},mi.isNull=function(t){return null===t},mi.isNumber=As,mi.isObject=Es,mi.isObjectLike=Os,mi.isPlainObject=js,mi.isRegExp=Ns,mi.isSafeInteger=function(t){return Ss(t)&&t>=-O&&t<=O},mi.isSet=Is,mi.isString=Ps,mi.isSymbol=Ls,mi.isTypedArray=Rs,mi.isUndefined=function(e){return e===t},mi.isWeakMap=function(t){return Os(t)&&qo(t)==nt},mi.isWeakSet=function(t){return Os(t)&&tr(t)==it},mi.join=function(t,e){return null==t?"":Bn.call(t,e)},mi.kebabCase=bl,mi.last=Ca,mi.lastIndexOf=function(e,n,i){var r=null==e?0:e.length;if(!r)return-1;var o=r;return i!==t&&(o=(o=Ws(i))<0?Vn(r+o,0):Gn(o,r-1)),n==n?function(t,e,n){for(var i=n+1;i--;)if(t[i]===e)return i;return i}(e,n,o):nn(e,an,o,!0)},mi.lowerCase=wl,mi.lowerFirst=_l,mi.lt=Ys,mi.lte=Hs,mi.max=function(e){return e&&e.length?qi(e,Al,er):t},mi.maxBy=function(e,n){return e&&e.length?qi(e,Ro(n,2),er):t},mi.mean=function(t){return sn(t,Al)},mi.meanBy=function(t,e){return sn(t,Ro(e,2))},mi.min=function(e){return e&&e.length?qi(e,Al,fr):t},mi.minBy=function(e,n){return e&&e.length?qi(e,Ro(n,2),fr):t},mi.stubArray=ql,mi.stubFalse=Bl,mi.stubObject=function(){return{}},mi.stubString=function(){return""},mi.stubTrue=function(){return!0},mi.multiply=Kl,mi.nth=function(e,n){return e&&e.length?yr(e,Ws(n)):t},mi.noConflict=function(){return Ee._===this&&(Ee._=ye),this},mi.noop=Ll,mi.now=es,mi.pad=function(t,e,n){t=Vs(t);var i=(e=Ws(e))?$n(t):0;if(!e||i>=e)return t;var r=(e-i)/2;return wo(Fn(r),n)+t+wo(Hn(r),n)},mi.padEnd=function(t,e,n){t=Vs(t);var i=(e=Ws(e))?$n(t):0;return e&&i<e?t+wo(e-i,n):t},mi.padStart=function(t,e,n){t=Vs(t);var i=(e=Ws(e))?$n(t):0;return e&&i<e?wo(e-i,n)+t:t},mi.parseInt=function(t,e,n){return n||null==e?e=0:e&&(e=+e),Qn(Vs(t).replace(Ot,""),e||0)},mi.random=function(e,n,i){if(i&&"boolean"!=typeof i&&Zo(e,n,i)&&(n=i=t),i===t&&("boolean"==typeof n?(i=n,n=t):"boolean"==typeof e&&(i=e,e=t)),e===t&&n===t?(e=0,n=1):(e=Us(e),n===t?(n=e,e=0):n=Us(n)),e>n){var r=e;e=n,n=r}if(i||e%1||n%1){var o=Kn();return Gn(e+o*(n-e+Ce("1e-"+((o+"").length-1))),n)}return Dr(e,n)},mi.reduce=function(t,e,n){var i=bs(t)?Ke:cn,r=arguments.length<3;return i(t,Ro(e,4),n,r,Fi)},mi.reduceRight=function(t,e,n){var i=bs(t)?Je:cn,r=arguments.length<3;return i(t,Ro(e,4),n,r,Ui)},mi.repeat=function(e,n,i){return n=(i?Zo(e,n,i):n===t)?1:Ws(n),kr(Vs(e),n)},mi.replace=function(){var t=arguments,e=Vs(t[0]);return t.length<3?e:e.replace(t[1],t[2])},mi.result=function(e,n,i){var r=-1,o=(n=Gr(n,e)).length;for(o||(o=1,e=t);++r<o;){var a=null==e?t:e[ha(n[r])];a===t&&(r=o,a=i),e=Ts(a)?a.call(e):a}return e},mi.round=Jl,mi.runInContext=Mt,mi.sample=function(t){return(bs(t)?Ti:Tr)(t)},mi.size=function(t){if(null==t)return 0;if(_s(t))return Ps(t)?$n(t):t.length;var e=qo(t);return e==z||e==J?t.size:dr(t).length},mi.snakeCase=xl,mi.some=function(e,n,i){var r=bs(e)?Xe:jr;return i&&Zo(e,n,i)&&(n=t),r(e,Ro(n,3))},mi.sortedIndex=function(t,e){return Nr(t,e)},mi.sortedIndexBy=function(t,e,n){return Ir(t,e,Ro(n,2))},mi.sortedIndexOf=function(t,e){var n=null==t?0:t.length;if(n){var i=Nr(t,e);if(i<n&&ms(t[i],e))return i}return-1},mi.sortedLastIndex=function(t,e){return Nr(t,e,!0)},mi.sortedLastIndexBy=function(t,e,n){return Ir(t,e,Ro(n,2),!0)},mi.sortedLastIndexOf=function(t,e){if(null!=t&&t.length){var n=Nr(t,e,!0)-1;if(ms(t[n],e))return n}return-1},mi.startCase=Dl,mi.startsWith=function(t,e,n){return t=Vs(t),n=null==n?0:Pi(Ws(n),0,t.length),e=Rr(e),t.slice(n,n+e.length)==e},mi.subtract=Xl,mi.sum=function(t){return t&&t.length?dn(t,Al):0},mi.sumBy=function(t,e){return t&&t.length?dn(t,Ro(e,2)):0},mi.template=function(e,n,i){var o=mi.templateSettings;i&&Zo(e,n,i)&&(n=t),e=Vs(e),n=Qs({},n,o,$o);var a,s,l=Qs({},n.imports,o.imports,$o),u=al(l),c=mn(l,u),d=0,h=n.interpolate||zt,f="__p += '",p=ne((n.escape||zt).source+"|"+h.source+"|"+(h===kt?Rt:zt).source+"|"+(n.evaluate||zt).source+"|$","g"),m="//# sourceURL="+(ce.call(n,"sourceURL")?(n.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++_e+"]")+"\n";e.replace(p,function(t,n,i,r,o,l){return i||(i=r),f+=e.slice(d,l).replace(Vt,_n),n&&(a=!0,f+="' +\n__e("+n+") +\n'"),o&&(s=!0,f+="';\n"+o+";\n__p += '"),i&&(f+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),d=l+t.length,t}),f+="';\n";var g=ce.call(n,"variable")&&n.variable;if(g){if(Pt.test(g))throw new Jt(r)}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(mt,""):f).replace(gt,"$1").replace(vt,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Sl(function(){return Xt(u,m+"return "+f).apply(t,c)});if(v.source=f,Cs(v))throw v;return v},mi.times=function(t,e){if((t=Ws(t))<1||t>O)return[];var n=j,i=Gn(t,j);e=Ro(e),t-=j;for(var r=hn(i,e);++n<t;)e(n);return r},mi.toFinite=Us,mi.toInteger=Ws,mi.toLength=qs,mi.toLower=function(t){return Vs(t).toLowerCase()},mi.toNumber=Bs,mi.toSafeInteger=function(t){return t?Pi(Ws(t),-O,O):0===t?t:0},mi.toString=Vs,mi.toUpper=function(t){return Vs(t).toUpperCase()},mi.trim=function(e,n,i){if((e=Vs(e))&&(i||n===t))return fn(e);if(!e||!(n=Rr(n)))return e;var r=En(e),o=En(n);return Qr(r,vn(r,o),yn(r,o)+1).join("")},mi.trimEnd=function(e,n,i){if((e=Vs(e))&&(i||n===t))return e.slice(0,On(e)+1);if(!e||!(n=Rr(n)))return e;var r=En(e);return Qr(r,0,yn(r,En(n))+1).join("")},mi.trimStart=function(e,n,i){if((e=Vs(e))&&(i||n===t))return e.replace(Ot,"");if(!e||!(n=Rr(n)))return e;var r=En(e);return Qr(r,vn(r,En(n))).join("")},mi.truncate=function(e,n){var i=D,r=k;if(Es(n)){var o="separator"in n?n.separator:o;i="length"in n?Ws(n.length):i,r="omission"in n?Rr(n.omission):r}var a=(e=Vs(e)).length;if(xn(e)){var s=En(e);a=s.length}if(i>=a)return e;var l=i-$n(r);if(l<1)return r;var u=s?Qr(s,0,l).join(""):e.slice(0,l);if(o===t)return u+r;if(s&&(l+=u.length-l),Ns(o)){if(e.slice(l).search(o)){var c,d=u;for(o.global||(o=ne(o.source,Vs(Yt.exec(o))+"g")),o.lastIndex=0;c=o.exec(d);)var h=c.index;u=u.slice(0,h===t?l:h)}}else if(e.indexOf(Rr(o),l)!=l){var f=u.lastIndexOf(o);f>-1&&(u=u.slice(0,f))}return u+r},mi.unescape=function(t){return(t=Vs(t))&&wt.test(t)?t.replace(yt,Mn):t},mi.uniqueId=function(t){var e=++de;return Vs(t)+e},mi.upperCase=kl,mi.upperFirst=Cl,mi.each=Va,mi.eachRight=Ga,mi.first=_a,Pl(mi,(Ql={},Zi(mi,function(t,e){ce.call(mi.prototype,e)||(Ql[e]=t)}),Ql),{chain:!1}),mi.VERSION="4.17.21",We(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){mi[t].placeholder=mi}),We(["drop","take"],function(e,n){bi.prototype[e]=function(i){i=i===t?1:Vn(Ws(i),0);var r=this.__filtered__&&!n?new bi(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(i,r.__takeCount__):r.__views__.push({size:Gn(i,j),type:e+(r.__dir__<0?"Right":"")}),r},bi.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),We(["filter","map","takeWhile"],function(t,e){var n=e+1,i=n==S||3==n;bi.prototype[t]=function(t){var e=this.clone();return e.__iteratees__.push({iteratee:Ro(t,3),type:n}),e.__filtered__=e.__filtered__||i,e}}),We(["head","last"],function(t,e){var n="take"+(e?"Right":"");bi.prototype[t]=function(){return this[n](1).value()[0]}}),We(["initial","tail"],function(t,e){var n="drop"+(e?"":"Right");bi.prototype[t]=function(){return this.__filtered__?new bi(this):this[n](1)}}),bi.prototype.compact=function(){return this.filter(Al)},bi.prototype.find=function(t){return this.filter(t).head()},bi.prototype.findLast=function(t){return this.reverse().find(t)},bi.prototype.invokeMap=Cr(function(t,e){return"function"==typeof t?new bi(this):this.map(function(n){return or(n,t,e)})}),bi.prototype.reject=function(t){return this.filter(cs(Ro(t)))},bi.prototype.slice=function(e,n){e=Ws(e);var i=this;return i.__filtered__&&(e>0||n<0)?new bi(i):(e<0?i=i.takeRight(-e):e&&(i=i.drop(e)),n!==t&&(i=(n=Ws(n))<0?i.dropRight(-n):i.take(n-e)),i)},bi.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},bi.prototype.toArray=function(){return this.take(j)},Zi(bi.prototype,function(e,n){var i=/^(?:filter|find|map|reject)|While$/.test(n),r=/^(?:head|last)$/.test(n),o=mi[r?"take"+("last"==n?"Right":""):n],a=r||/^find/.test(n);o&&(mi.prototype[n]=function(){var n=this.__wrapped__,s=r?[1]:arguments,l=n instanceof bi,u=s[0],c=l||bs(n),d=function(t){var e=o.apply(mi,Qe([t],s));return r&&h?e[0]:e};c&&i&&"function"==typeof u&&1!=u.length&&(l=c=!1);var h=this.__chain__,f=!!this.__actions__.length,p=a&&!h,m=l&&!f;if(!a&&c){n=m?n:new bi(this);var g=e.apply(n,s);return g.__actions__.push({func:Ua,args:[d],thisArg:t}),new yi(g,h)}return p&&m?e.apply(this,s):(g=this.thru(d),p?r?g.value()[0]:g.value():g)})}),We(["pop","push","shift","sort","splice","unshift"],function(t){var e=oe[t],n=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",i=/^(?:pop|shift)$/.test(t);mi.prototype[t]=function(){var t=arguments;if(i&&!this.__chain__){var r=this.value();return e.apply(bs(r)?r:[],t)}return this[n](function(n){return e.apply(bs(n)?n:[],t)})}}),Zi(bi.prototype,function(t,e){var n=mi[e];if(n){var i=n.name+"";ce.call(ai,i)||(ai[i]=[]),ai[i].push({name:e,func:n})}}),ai[go(t,p).name]=[{name:"wrapper",func:t}],bi.prototype.clone=function(){var t=new bi(this.__wrapped__);return t.__actions__=ro(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=ro(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=ro(this.__views__),t},bi.prototype.reverse=function(){if(this.__filtered__){var t=new bi(this);t.__dir__=-1,t.__filtered__=!0}else(t=this.clone()).__dir__*=-1;return t},bi.prototype.value=function(){var t=this.__wrapped__.value(),e=this.__dir__,n=bs(t),i=e<0,r=n?t.length:0,o=function(t,e,n){for(var i=-1,r=n.length;++i<r;){var o=n[i],a=o.size;switch(o.type){case"drop":t+=a;break;case"dropRight":e-=a;break;case"take":e=Gn(e,t+a);break;case"takeRight":t=Vn(t,e-a)}}return{start:t,end:e}}(0,r,this.__views__),a=o.start,s=o.end,l=s-a,u=i?s:a-1,c=this.__iteratees__,d=c.length,h=0,f=Gn(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return Wr(t,this.__actions__);var p=[];t:for(;l--&&h<f;){for(var m=-1,g=t[u+=e];++m<d;){var v=c[m],y=v.iteratee,b=v.type,w=y(g);if(b==$)g=w;else if(!w){if(b==S)continue t;break t}}p[h++]=g}return p},mi.prototype.at=Wa,mi.prototype.chain=function(){return Fa(this)},mi.prototype.commit=function(){return new yi(this.value(),this.__chain__)},mi.prototype.next=function(){this.__values__===t&&(this.__values__=Fs(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?t:this.__values__[this.__index__++]}},mi.prototype.plant=function(e){for(var n,i=this;i instanceof vi;){var r=pa(i);r.__index__=0,r.__values__=t,n?o.__wrapped__=r:n=r;var o=r;i=i.__wrapped__}return o.__wrapped__=e,n},mi.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof bi){var n=e;return this.__actions__.length&&(n=new bi(this)),(n=n.reverse()).__actions__.push({func:Ua,args:[Ea],thisArg:t}),new yi(n,this.__chain__)}return this.thru(Ea)},mi.prototype.toJSON=mi.prototype.valueOf=mi.prototype.value=function(){return Wr(this.__wrapped__,this.__actions__)},mi.prototype.first=mi.prototype.head,Nn&&(mi.prototype[Nn]=function(){return this}),mi}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(Ee._=An,define(function(){return An})):Me?((Me.exports=An)._=An,Oe._=An):Ee._=An}.call(this),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,function(t,e){"use strict";var n=[],i=Object.getPrototypeOf,r=n.slice,o=n.flat?function(t){return n.flat.call(t)}:function(t){return n.concat.apply([],t)},a=n.push,s=n.indexOf,l={},u=l.toString,c=l.hasOwnProperty,d=c.toString,h=d.call(Object),f={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},m=function(t){return null!=t&&t===t.window},g=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,n){var i,r,o=(n=n||g).createElement("script");if(o.text=t,e)for(i in v)(r=e[i]||e.getAttribute&&e.getAttribute(i))&&o.setAttribute(i,r);n.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[u.call(t)]||"object":typeof t}var w=function(t,e){return new w.fn.init(t,e)};function _(t){var e=!!t&&"length"in t&&t.length,n=b(t);return!p(t)&&!m(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}w.fn=w.prototype={jquery:"3.6.0",constructor:w,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=w.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return w.each(this,t)},map:function(t){return this.pushStack(w.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(w.grep(this,function(t,e){return(e+1)%2}))},odd:function(){return this.pushStack(w.grep(this,function(t,e){return e%2}))},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:n.sort,splice:n.splice},w.extend=w.fn.extend=function(){var t,e,n,i,r,o,a=arguments[0]||{},s=1,l=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[s]||{},s++),"object"==typeof a||p(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(t=arguments[s]))for(e in t)i=t[e],"__proto__"!==e&&a!==i&&(u&&i&&(w.isPlainObject(i)||(r=Array.isArray(i)))?(n=a[e],o=r&&!Array.isArray(n)?[]:r||w.isPlainObject(n)?n:{},r=!1,a[e]=w.extend(u,o,i)):void 0!==i&&(a[e]=i));return a},w.extend({expando:"jQuery"+("3.6.0"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==u.call(t))&&(!(e=i(t))||"function"==typeof(n=c.call(e,"constructor")&&e.constructor)&&d.call(n)===h)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,n){y(t,{nonce:e&&e.nonce},n)},each:function(t,e){var n,i=0;if(_(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},makeArray:function(t,e){var n=e||[];return null!=t&&(_(Object(t))?w.merge(n,"string"==typeof t?[t]:t):a.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:s.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,r=t.length;i<n;i++)t[r++]=e[i];return t.length=r,t},grep:function(t,e,n){for(var i=[],r=0,o=t.length,a=!n;r<o;r++)!e(t[r],r)!==a&&i.push(t[r]);return i},map:function(t,e,n){var i,r,a=0,s=[];if(_(t))for(i=t.length;a<i;a++)null!=(r=e(t[a],a,n))&&s.push(r);else for(a in t)null!=(r=e(t[a],a,n))&&s.push(r);return o(s)},guid:1,support:f}),"function"==typeof Symbol&&(w.fn[Symbol.iterator]=n[Symbol.iterator]),w.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){l["[object "+e+"]"]=e.toLowerCase()});var x=function(t){var e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,g,v,y,b,w="sizzle"+1*new Date,_=t.document,x=0,D=0,k=lt(),C=lt(),T=lt(),S=lt(),$=function(t,e){return t===e&&(d=!0),0},E={}.hasOwnProperty,O=[],M=O.pop,A=O.push,j=O.push,N=O.slice,I=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",Y="\\["+L+"*("+R+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+L+"*\\]",H=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+Y+")*)|.*)\\)|)",F=new RegExp(L+"+","g"),U=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),W=new RegExp("^"+L+"*,"+L+"*"),q=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),B=new RegExp(L+"|>"),z=new RegExp(H),V=new RegExp("^"+R+"$"),G={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+Y),PSEUDO:new RegExp("^"+H),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Z=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),nt=function(t,e){var n="0x"+t.slice(1)-65536;return e||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},it=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"<22>":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},ot=function(){h()},at=wt(function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{j.apply(O=N.call(_.childNodes),_.childNodes),O[_.childNodes.length].nodeType}catch(t){j={apply:O.length?function(t,e){A.apply(t,N.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}function st(t,e,i,r){var o,s,u,c,d,p,v,y=e&&e.ownerDocument,_=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return i;if(!r&&(h(e),e=e||f,m)){if(11!==_&&(d=X.exec(t)))if(o=d[1]){if(9===_){if(!(u=e.getElementById(o)))return i;if(u.id===o)return i.push(u),i}else if(y&&(u=y.getElementById(o))&&b(e,u)&&u.id===o)return i.push(u),i}else{if(d[2])return j.apply(i,e.getElementsByTagName(t)),i;if((o=d[3])&&n.getElementsByClassName&&e.getElementsByClassName)return j.apply(i,e.getElementsByClassName(o)),i}if(n.qsa&&!S[t+" "]&&(!g||!g.test(t))&&(1!==_||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===_&&(B.test(t)||q.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&n.scope||((c=e.getAttribute("id"))?c=c.replace(it,rt):e.setAttribute("id",c=w)),s=(p=a(t)).length;s--;)p[s]=(c?"#"+c:":scope")+" "+bt(p[s]);v=p.join(",")}try{return j.apply(i,y.querySelectorAll(v)),i}catch(e){S(t,!0)}finally{c===w&&e.removeAttribute("id")}}}return l(t.replace(U,"$1"),e,i,r)}function lt(){var t=[];return function e(n,r){return t.push(n+" ")>i.cacheLength&&delete e[t.shift()],e[n+" "]=r}}function ut(t){return t[w]=!0,t}function ct(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var n=t.split("|"),r=n.length;r--;)i.attrHandle[n[r]]=e}function ht(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function mt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&at(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function gt(t){return ut(function(e){return e=+e,ut(function(n,i){for(var r,o=t([],n.length,e),a=o.length;a--;)n[r=o[a]]&&(n[r]=!(i[r]=n[r]))})})}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=st.support={},o=st.isXML=function(t){var e=t&&t.namespaceURI,n=t&&(t.ownerDocument||t).documentElement;return!Z.test(e||n&&n.nodeName||"HTML")},h=st.setDocument=function(t){var e,r,a=t?t.ownerDocument||t:_;return a!=f&&9===a.nodeType&&a.documentElement?(p=(f=a).documentElement,m=!o(f),_!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ot,!1):r.attachEvent&&r.attachEvent("onunload",ot)),n.scope=ct(function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length}),n.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ct(function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ct(function(t){return p.appendChild(t).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){return t.getAttribute("id")===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(i.filter.ID=function(t){var e=t.replace(et,nt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},i.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var n,i,r,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(r=e.getElementsByName(t),i=0;o=r[i++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),i.find.TAG=n.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],r=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[r++];)1===n.nodeType&&i.push(n);return i}return o},i.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(n.qsa=J.test(f.querySelectorAll))&&(ct(function(t){var e;p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+L+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+L+"*(?:value|"+P+")"),t.querySelectorAll("[id~="+w+"-]").length||g.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||g.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]"),t.querySelectorAll("\\\f"),g.push("[\\r\\n\\f]")}),ct(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+L+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=J.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ct(function(t){n.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",H)}),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=J.test(p.compareDocumentPosition),b=e||J.test(p.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},$=e?function(t,e){if(t===e)return d=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===i?t==f||t.ownerDocument==_&&b(_,t)?-1:e==f||e.ownerDocument==_&&b(_,e)?1:c?I(c,t)-I(c,e):0:4&i?-1:1)}:function(t,e){if(t===e)return d=!0,0;var n,i=0,r=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!r||!o)return t==f?-1:e==f?1:r?-1:o?1:c?I(c,t)-I(c,e):0;if(r===o)return ht(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[i]===s[i];)i++;return i?ht(a[i],s[i]):a[i]==_?-1:s[i]==_?1:0},f):f},st.matches=function(t,e){return st(t,null,null,e)},st.matchesSelector=function(t,e){if(h(t),n.matchesSelector&&m&&!S[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var i=y.call(t,e);if(i||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){S(e,!0)}return st(e,f,null,[t]).length>0},st.contains=function(t,e){return(t.ownerDocument||t)!=f&&h(t),b(t,e)},st.attr=function(t,e){(t.ownerDocument||t)!=f&&h(t);var r=i.attrHandle[e.toLowerCase()],o=r&&E.call(i.attrHandle,e.toLowerCase())?r(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},st.escape=function(t){return(t+"").replace(it,rt)},st.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},st.uniqueSort=function(t){var e,i=[],r=0,o=0;if(d=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort($),d){for(;e=t[o++];)e===t[o]&&(r=i.push(o));for(;r--;)t.splice(i[r],1)}return c=null,t},r=st.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=r(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=r(e);return n},(i=st.selectors={cacheLength:50,createPseudo:ut,match:G,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,nt),t[3]=(t[3]||t[4]||t[5]||"").replace(et,nt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||st.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&st.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return G.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&z.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,nt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=k[t+" "];return e||(e=new RegExp("(^|"+L+")"+t+"("+L+"|$)"))&&k(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=st.attr(i,t);return null==r?"!="===e:!e||(r+="","="===e?r===n:"!="===e?r!==n:"^="===e?n&&0===r.indexOf(n):"*="===e?n&&r.indexOf(n)>-1:"$="===e?n&&r.slice(-n.length)===n:"~="===e?(" "+r.replace(F," ")+" ").indexOf(n)>-1:"|="===e&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,i,r){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,l){var u,c,d,h,f,p,m=o!==a?"nextSibling":"previousSibling",g=e.parentNode,v=s&&e.nodeName.toLowerCase(),y=!l&&!s,b=!1;if(g){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=m="only"===t&&!p&&"nextSibling"}return!0}if(p=[a?g.firstChild:g.lastChild],a&&y){for(b=(f=(u=(c=(d=(h=g)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&u[1])&&u[2],h=f&&g.childNodes[f];h=++f&&h&&h[m]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){c[t]=[x,f,b];break}}else if(y&&(b=f=(u=(c=(d=(h=e)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&u[1]),!1===b)for(;(h=++f&&h&&h[m]||(b=f=0)||p.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((c=(d=h[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=r)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,e){var n,r=i.pseudos[t]||i.setFilters[t.toLowerCase()]||st.error("unsupported pseudo: "+t);return r[w]?r(e):r.length>1?(n=[t,t,"",e],i.setFilters.hasOwnProperty(t.toLowerCase())?ut(function(t,n){for(var i,o=r(t,e),a=o.length;a--;)t[i=I(t,o[a])]=!(n[i]=o[a])}):function(t){return r(t,0,n)}):r}},pseudos:{not:ut(function(t){var e=[],n=[],i=s(t.replace(U,"$1"));return i[w]?ut(function(t,e,n,r){for(var o,a=i(t,null,r,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,r,o){return e[0]=t,i(e,null,o,n),e[0]=null,!n.pop()}}),has:ut(function(t){return function(e){return st(t,e).length>0}}),contains:ut(function(t){return t=t.replace(et,nt),function(e){return(e.textContent||r(e)).indexOf(t)>-1}}),lang:ut(function(t){return V.test(t||"")||st.error("unsupported lang: "+t),t=t.replace(et,nt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:mt(!1),disabled:mt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!i.pseudos.empty(t)},header:function(t){return K.test(t.nodeName)},input:function(t){return Q.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:gt(function(){return[0]}),last:gt(function(t,e){return[e-1]}),eq:gt(function(t,e,n){return[n<0?n+e:n]}),even:gt(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:gt(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:gt(function(t,e,n){for(var i=n<0?n+e:n>e?e:n;--i>=0;)t.push(i);return t}),gt:gt(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}}).pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[e]=ft(e);for(e in{submit:!0,reset:!0})i.pseudos[e]=pt(e);function yt(){}function bt(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function wt(t,e,n){var i=e.dir,r=e.next,o=r||i,a=n&&"parentNode"===o,s=D++;return e.first?function(e,n,r){for(;e=e[i];)if(1===e.nodeType||a)return t(e,n,r);return!1}:function(e,n,l){var u,c,d,h=[x,s];if(l){for(;e=e[i];)if((1===e.nodeType||a)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||a)if(c=(d=e[w]||(e[w]={}))[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[i]||e;else{if((u=c[o])&&u[0]===x&&u[1]===s)return h[2]=u[2];if(c[o]=h,h[2]=t(e,n,l))return!0}return!1}}function _t(t){return t.length>1?function(e,n,i){for(var r=t.length;r--;)if(!t[r](e,n,i))return!1;return!0}:t[0]}function xt(t,e,n,i,r){for(var o,a=[],s=0,l=t.length,u=null!=e;s<l;s++)(o=t[s])&&(n&&!n(o,i,r)||(a.push(o),u&&e.push(s)));return a}function Dt(t,e,n,i,r,o){return i&&!i[w]&&(i=Dt(i)),r&&!r[w]&&(r=Dt(r,o)),ut(function(o,a,s,l){var u,c,d,h=[],f=[],p=a.length,m=o||function(t,e,n){for(var i=0,r=e.length;i<r;i++)st(t,e[i],n);return n}(e||"*",s.nodeType?[s]:s,[]),g=!t||!o&&e?m:xt(m,h,t,s,l),v=n?r||(o?t:p||i)?[]:a:g;if(n&&n(g,v,s,l),i)for(u=xt(v,f),i(u,[],s,l),c=u.length;c--;)(d=u[c])&&(v[f[c]]=!(g[f[c]]=d));if(o){if(r||t){if(r){for(u=[],c=v.length;c--;)(d=v[c])&&u.push(g[c]=d);r(null,v=[],u,l)}for(c=v.length;c--;)(d=v[c])&&(u=r?I(o,d):h[c])>-1&&(o[u]=!(a[u]=d))}}else v=xt(v===a?v.splice(p,v.length):v),r?r(null,a,v,l):j.apply(a,v)})}function kt(t){for(var e,n,r,o=t.length,a=i.relative[t[0].type],s=a||i.relative[" "],l=a?1:0,c=wt(function(t){return t===e},s,!0),d=wt(function(t){return I(e,t)>-1},s,!0),h=[function(t,n,i){var r=!a&&(i||n!==u)||((e=n).nodeType?c(t,n,i):d(t,n,i));return e=null,r}];l<o;l++)if(n=i.relative[t[l].type])h=[wt(_t(h),n)];else{if((n=i.filter[t[l].type].apply(null,t[l].matches))[w]){for(r=++l;r<o&&!i.relative[t[r].type];r++);return Dt(l>1&&_t(h),l>1&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(U,"$1"),n,l<r&&kt(t.slice(l,r)),r<o&&kt(t=t.slice(r)),r<o&&bt(t))}h.push(n)}return _t(h)}return yt.prototype=i.filters=i.pseudos,i.setFilters=new yt,a=st.tokenize=function(t,e){var n,r,o,a,s,l,u,c=C[t+" "];if(c)return e?0:c.slice(0);for(s=t,l=[],u=i.preFilter;s;){for(a in n&&!(r=W.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(o=[])),n=!1,(r=q.exec(s))&&(n=r.shift(),o.push({value:n,type:r[0].replace(U," ")}),s=s.slice(n.length)),i.filter)!(r=G[a].exec(s))||u[a]&&!(r=u[a](r))||(n=r.shift(),o.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return e?s.length:s?st.error(t):C(t,l).slice(0)},s=st.compile=function(t,e){var n,r=[],o=[],s=T[t+" "];if(!s){for(e||(e=a(t)),n=e.length;n--;)(s=kt(e[n]))[w]?r.push(s):o.push(s);(s=T(t,function(t,e){var n=e.length>0,r=t.length>0,o=function(o,a,s,l,c){var d,p,g,v=0,y="0",b=o&&[],w=[],_=u,D=o||r&&i.find.TAG("*",c),k=x+=null==_?1:Math.random()||.1,C=D.length;for(c&&(u=a==f||a||c);y!==C&&null!=(d=D[y]);y++){if(r&&d){for(p=0,a||d.ownerDocument==f||(h(d),s=!m);g=t[p++];)if(g(d,a||f,s)){l.push(d);break}c&&(x=k)}n&&((d=!g&&d)&&v--,o&&b.push(d))}if(v+=y,n&&y!==v){for(p=0;g=e[p++];)g(b,w,a,s);if(o){if(v>0)for(;y--;)b[y]||w[y]||(w[y]=M.call(l));w=xt(w)}j.apply(l,w),c&&!o&&w.length>0&&v+e.length>1&&st.uniqueSort(l)}return c&&(x=k,u=_),b};return n?ut(o):o}(o,r))).selector=t}return s},l=st.select=function(t,e,n,r){var o,l,u,c,d,h="function"==typeof t&&t,f=!r&&a(t=h.selector||t);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(u=l[0]).type&&9===e.nodeType&&m&&i.relative[l[1].type]){if(!(e=(i.find.ID(u.matches[0].replace(et,nt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=G.needsContext.test(t)?0:l.length;o--&&(u=l[o],!i.relative[c=u.type]);)if((d=i.find[c])&&(r=d(u.matches[0].replace(et,nt),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(o,1),!(t=r.length&&bt(l)))return j.apply(n,r),n;break}}return(h||s(t,f))(r,e,!m,n,!e||tt.test(t)&&vt(e.parentNode)||e),n},n.sortStable=w.split("").sort($).join("")===w,n.detectDuplicates=!!d,h(),n.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))}),ct(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||dt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ct(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||dt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||dt(P,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),st}(t);w.find=x,w.expr=x.selectors,w.expr[":"]=w.expr.pseudos,w.uniqueSort=w.unique=x.uniqueSort,w.text=x.getText,w.isXMLDoc=x.isXML,w.contains=x.contains,w.escapeSelector=x.escape;var D=function(t,e,n){for(var i=[],r=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&w(t).is(n))break;i.push(t)}return i},k=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},C=w.expr.match.needsContext;function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var S=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function $(t,e,n){return p(e)?w.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?w.grep(t,function(t){return t===e!==n}):"string"!=typeof e?w.grep(t,function(t){return s.call(e,t)>-1!==n}):w.filter(e,t,n)}w.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?w.find.matchesSelector(i,t)?[i]:[]:w.find.matches(t,w.grep(e,function(t){return 1===t.nodeType}))},w.fn.extend({find:function(t){var e,n,i=this.length,r=this;if("string"!=typeof t)return this.pushStack(w(t).filter(function(){for(e=0;e<i;e++)if(w.contains(r[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)w.find(t,r[e],n);return i>1?w.uniqueSort(n):n},filter:function(t){return this.pushStack($(this,t||[],!1))},not:function(t){return this.pushStack($(this,t||[],!0))},is:function(t){return!!$(this,"string"==typeof t&&C.test(t)?w(t):t||[],!1).length}});var E,O=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(w.fn.init=function(t,e,n){var i,r;if(!t)return this;if(n=n||E,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:O.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof w?e[0]:e,w.merge(this,w.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:g,!0)),S.test(i[1])&&w.isPlainObject(e))for(i in e)p(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return(r=g.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==n.ready?n.ready(t):t(w):w.makeArray(t,this)}).prototype=w.fn,E=w(g);var M=/^(?:parents|prev(?:Until|All))/,A={children:!0,contents:!0,next:!0,prev:!0};function j(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}w.fn.extend({has:function(t){var e=w(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(w.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,r=this.length,o=[],a="string"!=typeof t&&w(t);if(!C.test(t))for(;i<r;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&w.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?w.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?s.call(w(t),this[0]):s.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(w.uniqueSort(w.merge(this.get(),w(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),w.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return D(t,"parentNode")},parentsUntil:function(t,e,n){return D(t,"parentNode",n)},next:function(t){return j(t,"nextSibling")},prev:function(t){return j(t,"previousSibling")},nextAll:function(t){return D(t,"nextSibling")},prevAll:function(t){return D(t,"previousSibling")},nextUntil:function(t,e,n){return D(t,"nextSibling",n)},prevUntil:function(t,e,n){return D(t,"previousSibling",n)},siblings:function(t){return k((t.parentNode||{}).firstChild,t)},children:function(t){return k(t.firstChild)},contents:function(t){return null!=t.contentDocument&&i(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),w.merge([],t.childNodes))}},function(t,e){w.fn[t]=function(n,i){var r=w.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=w.filter(i,r)),this.length>1&&(A[t]||w.uniqueSort(r),M.test(t)&&r.reverse()),this.pushStack(r)}});var N=/[^\x20\t\r\n\f]+/g;function I(t){return t}function P(t){throw t}function L(t,e,n,i){var r;try{t&&p(r=t.promise)?r.call(t).done(e).fail(n):t&&p(r=t.then)?r.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}w.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return w.each(t.match(N)||[],function(t,n){e[n]=!0}),e}(t):w.extend({},t);var e,n,i,r,o=[],a=[],s=-1,l=function(){for(r=r||t.once,i=e=!0;a.length;s=-1)for(n=a.shift();++s<o.length;)!1===o[s].apply(n[0],n[1])&&t.stopOnFalse&&(s=o.length,n=!1);t.memory||(n=!1),e=!1,r&&(o=n?[]:"")},u={add:function(){return o&&(n&&!e&&(s=o.length-1,a.push(n)),function e(n){w.each(n,function(n,i){p(i)?t.unique&&u.has(i)||o.push(i):i&&i.length&&"string"!==b(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return w.each(arguments,function(t,e){for(var n;(n=w.inArray(e,o,n))>-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?w.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return r=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return r=a=[],n||e||(o=n=""),this},locked:function(){return!!r},fireWith:function(t,n){return r||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!i}};return u},w.extend({Deferred:function(e){var n=[["notify","progress",w.Callbacks("memory"),w.Callbacks("memory"),2],["resolve","done",w.Callbacks("once memory"),w.Callbacks("once memory"),0,"resolved"],["reject","fail",w.Callbacks("once memory"),w.Callbacks("once memory"),1,"rejected"]],i="pending",r={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return w.Deferred(function(e){w.each(n,function(n,i){var r=p(t[i[4]])&&t[i[4]];o[i[1]](function(){var t=r&&r.apply(this,arguments);t&&p(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[i[0]+"With"](this,r?[t]:arguments)})}),t=null}).promise()},then:function(e,i,r){var o=0;function a(e,n,i,r){return function(){var s=this,l=arguments,u=function(){var t,u;if(!(e<o)){if((t=i.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");u=t&&("object"==typeof t||"function"==typeof t)&&t.then,p(u)?r?u.call(t,a(o,n,I,r),a(o,n,P,r)):(o++,u.call(t,a(o,n,I,r),a(o,n,P,r),a(o,n,I,n.notifyWith))):(i!==I&&(s=void 0,l=[t]),(r||n.resolveWith)(s,l))}},c=r?u:function(){try{u()}catch(t){w.Deferred.exceptionHook&&w.Deferred.exceptionHook(t,c.stackTrace),e+1>=o&&(i!==P&&(s=void 0,l=[t]),n.rejectWith(s,l))}};e?c():(w.Deferred.getStackHook&&(c.stackTrace=w.Deferred.getStackHook()),t.setTimeout(c))}}return w.Deferred(function(t){n[0][3].add(a(0,t,p(r)?r:I,t.notifyWith)),n[1][3].add(a(0,t,p(e)?e:I)),n[2][3].add(a(0,t,p(i)?i:P))}).promise()},promise:function(t){return null!=t?w.extend(t,r):r}},o={};return w.each(n,function(t,e){var a=e[2],s=e[5];r[e[1]]=a.add,s&&a.add(function(){i=s},n[3-t][2].disable,n[3-t][3].disable,n[0][2].lock,n[0][3].lock),a.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=a.fireWith}),r.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,n=e,i=Array(n),o=r.call(arguments),a=w.Deferred(),s=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?r.call(arguments):n,--e||a.resolveWith(i,o)}};if(e<=1&&(L(t,a.done(s(n)).resolve,a.reject,!e),"pending"===a.state()||p(o[n]&&o[n].then)))return a.then();for(;n--;)L(o[n],s(n),a.reject);return a.promise()}});var R=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;w.Deferred.exceptionHook=function(e,n){t.console&&t.console.warn&&e&&R.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,n)},w.readyException=function(e){t.setTimeout(function(){throw e})};var Y=w.Deferred();function H(){g.removeEventListener("DOMContentLoaded",H),t.removeEventListener("load",H),w.ready()}w.fn.ready=function(t){return Y.then(t).catch(function(t){w.readyException(t)}),this},w.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--w.readyWait:w.isReady)||(w.isReady=!0,!0!==t&&--w.readyWait>0||Y.resolveWith(g,[w]))}}),w.ready.then=Y.then,"complete"===g.readyState||"loading"!==g.readyState&&!g.documentElement.doScroll?t.setTimeout(w.ready):(g.addEventListener("DOMContentLoaded",H),t.addEventListener("load",H));var F=function(t,e,n,i,r,o,a){var s=0,l=t.length,u=null==n;if("object"===b(n))for(s in r=!0,n)F(t,e,s,n[s],!0,o,a);else if(void 0!==i&&(r=!0,p(i)||(a=!0),u&&(a?(e.call(t,i),e=null):(u=e,e=function(t,e,n){return u.call(w(t),n)})),e))for(;s<l;s++)e(t[s],n,a?i:i.call(t[s],s,e(t[s],n)));return r?t:u?e.call(t):l?e(t[0],n):o},U=/^-ms-/,W=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function B(t){return t.replace(U,"ms-").replace(W,q)}var z=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function V(){this.expando=w.expando+V.uid++}V.uid=1,V.prototype={cache:function(t){var e=t[this.expando];return e||(e={},z(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,r=this.cache(t);if("string"==typeof e)r[B(e)]=n;else for(i in e)r[B(i)]=e[i];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][B(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){n=(e=Array.isArray(e)?e.map(B):(e=B(e))in i?[e]:e.match(N)||[]).length;for(;n--;)delete i[e[n]]}(void 0===e||w.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!w.isEmptyObject(e)}};var G=new V,Z=new V,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,K=/[A-Z]/g;function J(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(K,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Q.test(t)?JSON.parse(t):t)}(n)}catch(t){}Z.set(t,e,n)}else n=void 0;return n}w.extend({hasData:function(t){return Z.hasData(t)||G.hasData(t)},data:function(t,e,n){return Z.access(t,e,n)},removeData:function(t,e){Z.remove(t,e)},_data:function(t,e,n){return G.access(t,e,n)},_removeData:function(t,e){G.remove(t,e)}}),w.fn.extend({data:function(t,e){var n,i,r,o=this[0],a=o&&o.attributes;if(void 0===t){if(this.length&&(r=Z.get(o),1===o.nodeType&&!G.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(i=a[n].name).indexOf("data-")&&(i=B(i.slice(5)),J(o,i,r[i]));G.set(o,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each(function(){Z.set(this,t)}):F(this,function(e){var n;if(o&&void 0===e)return void 0!==(n=Z.get(o,t))?n:void 0!==(n=J(o,t))?n:void 0;this.each(function(){Z.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Z.remove(this,t)})}}),w.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=G.get(t,e),n&&(!i||Array.isArray(n)?i=G.access(t,e,w.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=w.queue(t,e),i=n.length,r=n.shift(),o=w._queueHooks(t,e);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===e&&n.unshift("inprogress"),delete o.stop,r.call(t,function(){w.dequeue(t,e)},o)),!i&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return G.get(t,n)||G.access(t,n,{empty:w.Callbacks("once memory").add(function(){G.remove(t,[e+"queue",n])})})}}),w.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?w.queue(this[0],t):void 0===e?this:this.each(function(){var n=w.queue(this,t,e);w._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&w.dequeue(this,t)})},dequeue:function(t){return this.each(function(){w.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,r=w.Deferred(),o=this,a=this.length,s=function(){--i||r.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";a--;)(n=G.get(o[a],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(s));return s(),r.promise(e)}});var X=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,tt=new RegExp("^(?:([+-])=|)("+X+")([a-z%]*)$","i"),et=["Top","Right","Bottom","Left"],nt=g.documentElement,it=function(t){return w.contains(t.ownerDocument,t)},rt={composed:!0};nt.getRootNode&&(it=function(t){return w.contains(t.ownerDocument,t)||t.getRootNode(rt)===t.ownerDocument});var ot=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&it(t)&&"none"===w.css(t,"display")};function at(t,e,n,i){var r,o,a=20,s=i?function(){return i.cur()}:function(){return w.css(t,e,"")},l=s(),u=n&&n[3]||(w.cssNumber[e]?"":"px"),c=t.nodeType&&(w.cssNumber[e]||"px"!==u&&+l)&&tt.exec(w.css(t,e));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;a--;)w.style(t,e,c+u),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),c/=o;c*=2,w.style(t,e,c+u),n=n||[]}return n&&(c=+c||+l||0,r=n[1]?c+(n[1]+1)*n[2]:+n[2],i&&(i.unit=u,i.start=c,i.end=r)),r}var st={};function lt(t){var e,n=t.ownerDocument,i=t.nodeName,r=st[i];return r||(e=n.body.appendChild(n.createElement(i)),r=w.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),st[i]=r,r)}function ut(t,e){for(var n,i,r=[],o=0,a=t.length;o<a;o++)(i=t[o]).style&&(n=i.style.display,e?("none"===n&&(r[o]=G.get(i,"display")||null,r[o]||(i.style.display="")),""===i.style.display&&ot(i)&&(r[o]=lt(i))):"none"!==n&&(r[o]="none",G.set(i,"display",n)));for(o=0;o<a;o++)null!=r[o]&&(t[o].style.display=r[o]);return t}w.fn.extend({show:function(){return ut(this,!0)},hide:function(){return ut(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){ot(this)?w(this).show():w(this).hide()})}});var ct,dt,ht=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ct=g.createDocumentFragment().appendChild(g.createElement("div")),(dt=g.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ct.appendChild(dt),f.checkClone=ct.cloneNode(!0).cloneNode(!0).lastChild.checked,ct.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ct.cloneNode(!0).lastChild.defaultValue,ct.innerHTML="<option></option>",f.option=!!ct.lastChild;var mt={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 gt(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?w.merge([t],n):n}function vt(t,e){for(var n=0,i=t.length;n<i;n++)G.set(t[n],"globalEval",!e||G.get(e[n],"globalEval"))}mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,f.option||(mt.optgroup=mt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,n,i,r){for(var o,a,s,l,u,c,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((o=t[f])||0===o)if("object"===b(o))w.merge(h,o.nodeType?[o]:o);else if(yt.test(o)){for(a=a||d.appendChild(e.createElement("div")),s=(ft.exec(o)||["",""])[1].toLowerCase(),l=mt[s]||mt._default,a.innerHTML=l[1]+w.htmlPrefilter(o)+l[2],c=l[0];c--;)a=a.lastChild;w.merge(h,a.childNodes),(a=d.firstChild).textContent=""}else h.push(e.createTextNode(o));for(d.textContent="",f=0;o=h[f++];)if(i&&w.inArray(o,i)>-1)r&&r.push(o);else if(u=it(o),a=gt(d.appendChild(o),"script"),u&&vt(a),n)for(c=0;o=a[c++];)pt.test(o.type||"")&&n.push(o);return d}var wt=/^([^.]*)(?:\.(.+)|)/;function _t(){return!0}function xt(){return!1}function Dt(t,e){return t===function(){try{return g.activeElement}catch(t){}}()==("focus"===e)}function kt(t,e,n,i,r,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(i=i||n,n=void 0),e)kt(t,s,n,i,e[s],o);return t}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=xt;else if(!r)return t;return 1===o&&(a=r,(r=function(t){return w().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=w.guid++)),t.each(function(){w.event.add(this,e,r,i,n)})}function Ct(t,e,n){n?(G.set(t,e,!1),w.event.add(t,e,{namespace:!1,handler:function(t){var i,o,a=G.get(this,e);if(1&t.isTrigger&&this[e]){if(a.length)(w.event.special[e]||{}).delegateType&&t.stopPropagation();else if(a=r.call(arguments),G.set(this,e,a),i=n(this,e),this[e](),a!==(o=G.get(this,e))||i?G.set(this,e,!1):o={},a!==o)return t.stopImmediatePropagation(),t.preventDefault(),o&&o.value}else a.length&&(G.set(this,e,{value:w.event.trigger(w.extend(a[0],w.Event.prototype),a.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===G.get(t,e)&&w.event.add(t,e,_t)}w.event={global:{},add:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=G.get(t);if(z(t))for(n.handler&&(n=(o=n).handler,r=o.selector),r&&w.find.matchesSelector(nt,r),n.guid||(n.guid=w.guid++),(l=g.events)||(l=g.events=Object.create(null)),(a=g.handle)||(a=g.handle=function(e){return void 0!==w&&w.event.triggered!==e.type?w.event.dispatch.apply(t,arguments):void 0}),u=(e=(e||"").match(N)||[""]).length;u--;)f=m=(s=wt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f&&(d=w.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=w.event.special[f]||{},c=w.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&w.expr.match.needsContext.test(r),namespace:p.join(".")},o),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,i,p,a)||t.addEventListener&&t.addEventListener(f,a)),d.add&&(d.add.call(t,c),c.handler.guid||(c.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,c):h.push(c),w.event.global[f]=!0)},remove:function(t,e,n,i,r){var o,a,s,l,u,c,d,h,f,p,m,g=G.hasData(t)&&G.get(t);if(g&&(l=g.events)){for(u=(e=(e||"").match(N)||[""]).length;u--;)if(f=m=(s=wt.exec(e[u])||[])[1],p=(s[2]||"").split(".").sort(),f){for(d=w.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)c=h[o],!r&&m!==c.origType||n&&n.guid!==c.guid||s&&!s.test(c.namespace)||i&&i!==c.selector&&("**"!==i||!c.selector)||(h.splice(o,1),c.selector&&h.delegateCount--,d.remove&&d.remove.call(t,c));a&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,g.handle)||w.removeEvent(t,f,g.handle),delete l[f])}else for(f in l)w.event.remove(t,f+e[u],n,i,!0);w.isEmptyObject(l)&&G.remove(t,"handle events")}},dispatch:function(t){var e,n,i,r,o,a,s=new Array(arguments.length),l=w.event.fix(t),u=(G.get(this,"events")||Object.create(null))[l.type]||[],c=w.event.special[l.type]||{};for(s[0]=l,e=1;e<arguments.length;e++)s[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(a=w.event.handlers.call(this,l,u),e=0;(r=a[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(o=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(i=((w.event.special[o.origType]||{}).handle||o.handler).apply(r.elem,s))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var n,i,r,o,a,s=[],l=e.delegateCount,u=t.target;if(l&&u.nodeType&&!("click"===t.type&&t.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==t.type||!0!==u.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[r=(i=e[n]).selector+" "]&&(a[r]=i.needsContext?w(r,this).index(u)>-1:w.find(r,this,null,[u]).length),a[r]&&o.push(i);o.length&&s.push({elem:u,handlers:o})}return u=this,l<e.length&&s.push({elem:u,handlers:e.slice(l)}),s},addProp:function(t,e){Object.defineProperty(w.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[w.expando]?t:new w.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click",_t),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&T(e,"input")&&Ct(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&T(e,"input")&&G.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},w.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},w.Event=function(t,e){if(!(this instanceof w.Event))return new w.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?_t:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&w.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[w.expando]=!0},w.Event.prototype={constructor:w.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=_t,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=_t,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=_t,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},w.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},w.event.addProp),w.each({focus:"focusin",blur:"focusout"},function(t,e){w.event.special[t]={setup:function(){return Ct(this,t,Dt),!1},trigger:function(){return Ct(this,t),!0},_default:function(){return!0},delegateType:e}}),w.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){w.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=t.relatedTarget,r=t.handleObj;return i&&(i===this||w.contains(this,i))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),w.fn.extend({on:function(t,e,n,i){return kt(this,t,e,n,i)},one:function(t,e,n,i){return kt(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,w(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=xt),this.each(function(){w.event.remove(this,t,n,e)})}});var Tt=/<script|<style|<link/i,St=/checked\s*(?:[^=]|=\s*.checked.)/i,$t=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Et(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&w(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Mt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function At(t,e){var n,i,r,o,a,s;if(1===e.nodeType){if(G.hasData(t)&&(s=G.get(t).events))for(r in G.remove(e,"handle events"),s)for(n=0,i=s[r].length;n<i;n++)w.event.add(e,r,s[r][n]);Z.hasData(t)&&(o=Z.access(t),a=w.extend({},o),Z.set(e,a))}}function jt(t,e,n,i){e=o(e);var r,a,s,l,u,c,d=0,h=t.length,m=h-1,g=e[0],v=p(g);if(v||h>1&&"string"==typeof g&&!f.checkClone&&St.test(g))return t.each(function(r){var o=t.eq(r);v&&(e[0]=g.call(this,r,o.html())),jt(o,e,n,i)});if(h&&(a=(r=bt(e,t[0].ownerDocument,!1,t,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(l=(s=w.map(gt(r,"script"),Ot)).length;d<h;d++)u=r,d!==m&&(u=w.clone(u,!0,!0),l&&w.merge(s,gt(u,"script"))),n.call(t[d],u,d);if(l)for(c=s[s.length-1].ownerDocument,w.map(s,Mt),d=0;d<l;d++)u=s[d],pt.test(u.type||"")&&!G.access(u,"globalEval")&&w.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?w._evalUrl&&!u.noModule&&w._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):y(u.textContent.replace($t,""),u,c))}return t}function Nt(t,e,n){for(var i,r=e?w.filter(e,t):t,o=0;null!=(i=r[o]);o++)n||1!==i.nodeType||w.cleanData(gt(i)),i.parentNode&&(n&&it(i)&&vt(gt(i,"script")),i.parentNode.removeChild(i));return t}w.extend({htmlPrefilter:function(t){return t},clone:function(t,e,n){var i,r,o,a,s,l,u,c=t.cloneNode(!0),d=it(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||w.isXMLDoc(t)))for(a=gt(c),i=0,r=(o=gt(t)).length;i<r;i++)s=o[i],l=a[i],u=void 0,"input"===(u=l.nodeName.toLowerCase())&&ht.test(s.type)?l.checked=s.checked:"input"!==u&&"textarea"!==u||(l.defaultValue=s.defaultValue);if(e)if(n)for(o=o||gt(t),a=a||gt(c),i=0,r=o.length;i<r;i++)At(o[i],a[i]);else At(t,c);return(a=gt(c,"script")).length>0&&vt(a,!d&>(t,"script")),c},cleanData:function(t){for(var e,n,i,r=w.event.special,o=0;void 0!==(n=t[o]);o++)if(z(n)){if(e=n[G.expando]){if(e.events)for(i in e.events)r[i]?w.event.remove(n,i):w.removeEvent(n,i,e.handle);n[G.expando]=void 0}n[Z.expando]&&(n[Z.expando]=void 0)}}}),w.fn.extend({detach:function(t){return Nt(this,t,!0)},remove:function(t){return Nt(this,t)},text:function(t){return F(this,function(t){return void 0===t?w.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return jt(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Et(this,t).appendChild(t)})},prepend:function(){return jt(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Et(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return jt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return jt(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(w.cleanData(gt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return w.clone(this,t,e)})},html:function(t){return F(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!Tt.test(t)&&!mt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=w.htmlPrefilter(t);try{for(;n<i;n++)1===(e=this[n]||{}).nodeType&&(w.cleanData(gt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return jt(this,arguments,function(e){var n=this.parentNode;w.inArray(this,t)<0&&(w.cleanData(gt(this)),n&&n.replaceChild(e,this))},t)}}),w.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){w.fn[t]=function(t){for(var n,i=[],r=w(t),o=r.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),w(r[s])[e](n),a.apply(i,n.get());return this.pushStack(i)}});var It=new RegExp("^("+X+")(?!px)[a-z%]+$","i"),Pt=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},Lt=function(t,e,n){var i,r,o={};for(r in e)o[r]=t.style[r],t.style[r]=e[r];for(r in i=n.call(t),e)t.style[r]=o[r];return i},Rt=new RegExp(et.join("|"),"i");function Yt(t,e,n){var i,r,o,a,s=t.style;return(n=n||Pt(t))&&(""!==(a=n.getPropertyValue(e)||n[e])||it(t)||(a=w.style(t,e)),!f.pixelBoxStyles()&&It.test(a)&&Rt.test(e)&&(i=s.width,r=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=i,s.minWidth=r,s.maxWidth=o)),void 0!==a?a+"":a}function Ht(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(u).appendChild(c);var e=t.getComputedStyle(c);i="1%"!==e.top,l=12===n(e.marginLeft),c.style.right="60%",a=36===n(e.right),r=36===n(e.width),c.style.position="absolute",o=12===n(c.offsetWidth/3),nt.removeChild(u),c=null}}function n(t){return Math.round(parseFloat(t))}var i,r,o,a,s,l,u=g.createElement("div"),c=g.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===c.style.backgroundClip,w.extend(f,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,n,i,r;return null==s&&(e=g.createElement("table"),n=g.createElement("tr"),i=g.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",n.style.cssText="border:1px solid",n.style.height="1px",i.style.height="9px",i.style.display="block",nt.appendChild(e).appendChild(n).appendChild(i),r=t.getComputedStyle(n),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===n.offsetHeight,nt.removeChild(e)),s}}))}();var Ft=["Webkit","Moz","ms"],Ut=g.createElement("div").style,Wt={};function qt(t){var e=w.cssProps[t]||Wt[t];return e||(t in Ut?t:Wt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),n=Ft.length;n--;)if((t=Ft[n]+e)in Ut)return t}(t)||t)}var Bt=/^(none|table(?!-c[ea]).+)/,zt=/^--/,Vt={position:"absolute",visibility:"hidden",display:"block"},Gt={letterSpacing:"0",fontWeight:"400"};function Zt(t,e,n){var i=tt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function Qt(t,e,n,i,r,o){var a="width"===e?1:0,s=0,l=0;if(n===(i?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=w.css(t,n+et[a],!0,r)),i?("content"===n&&(l-=w.css(t,"padding"+et[a],!0,r)),"margin"!==n&&(l-=w.css(t,"border"+et[a]+"Width",!0,r))):(l+=w.css(t,"padding"+et[a],!0,r),"padding"!==n?l+=w.css(t,"border"+et[a]+"Width",!0,r):s+=w.css(t,"border"+et[a]+"Width",!0,r));return!i&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-s-.5))||0),l}function Kt(t,e,n){var i=Pt(t),r=(!f.boxSizingReliable()||n)&&"border-box"===w.css(t,"boxSizing",!1,i),o=r,a=Yt(t,e,i),s="offset"+e[0].toUpperCase()+e.slice(1);if(It.test(a)){if(!n)return a;a="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&T(t,"tr")||"auto"===a||!parseFloat(a)&&"inline"===w.css(t,"display",!1,i))&&t.getClientRects().length&&(r="border-box"===w.css(t,"boxSizing",!1,i),(o=s in t)&&(a=t[s])),(a=parseFloat(a)||0)+Qt(t,e,n||(r?"border":"content"),o,i,a)+"px"}function Jt(t,e,n,i,r){return new Jt.prototype.init(t,e,n,i,r)}w.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Yt(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,o,a,s=B(e),l=zt.test(e),u=t.style;if(l||(e=qt(s)),a=w.cssHooks[e]||w.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];"string"===(o=typeof n)&&(r=tt.exec(n))&&r[1]&&(n=at(t,e,r),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=r&&r[3]||(w.cssNumber[s]?"":"px")),f.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(l?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var r,o,a,s=B(e);return zt.test(e)||(e=qt(s)),(a=w.cssHooks[e]||w.cssHooks[s])&&"get"in a&&(r=a.get(t,!0,n)),void 0===r&&(r=Yt(t,e,i)),"normal"===r&&e in Gt&&(r=Gt[e]),""===n||n?(o=parseFloat(r),!0===n||isFinite(o)?o||0:r):r}}),w.each(["height","width"],function(t,e){w.cssHooks[e]={get:function(t,n,i){if(n)return!Bt.test(w.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Kt(t,e,i):Lt(t,Vt,function(){return Kt(t,e,i)})},set:function(t,n,i){var r,o=Pt(t),a=!f.scrollboxSize()&&"absolute"===o.position,s=(a||i)&&"border-box"===w.css(t,"boxSizing",!1,o),l=i?Qt(t,e,i,s,o):0;return s&&a&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Qt(t,e,"border",!1,o)-.5)),l&&(r=tt.exec(n))&&"px"!==(r[3]||"px")&&(t.style[e]=n,n=w.css(t,e)),Zt(0,n,l)}}}),w.cssHooks.marginLeft=Ht(f.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Yt(t,"marginLeft"))||t.getBoundingClientRect().left-Lt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),w.each({margin:"",padding:"",border:"Width"},function(t,e){w.cssHooks[t+e]={expand:function(n){for(var i=0,r={},o="string"==typeof n?n.split(" "):[n];i<4;i++)r[t+et[i]+e]=o[i]||o[i-2]||o[0];return r}},"margin"!==t&&(w.cssHooks[t+e].set=Zt)}),w.fn.extend({css:function(t,e){return F(this,function(t,e,n){var i,r,o={},a=0;if(Array.isArray(e)){for(i=Pt(t),r=e.length;a<r;a++)o[e[a]]=w.css(t,e[a],!1,i);return o}return void 0!==n?w.style(t,e,n):w.css(t,e)},t,e,arguments.length>1)}}),w.Tween=Jt,Jt.prototype={constructor:Jt,init:function(t,e,n,i,r,o){this.elem=t,this.prop=n,this.easing=r||w.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=o||(w.cssNumber[n]?"":"px")},cur:function(){var t=Jt.propHooks[this.prop];return t&&t.get?t.get(this):Jt.propHooks._default.get(this)},run:function(t){var e,n=Jt.propHooks[this.prop];return this.options.duration?this.pos=e=w.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):Jt.propHooks._default.set(this),this}},Jt.prototype.init.prototype=Jt.prototype,Jt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=w.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){w.fx.step[t.prop]?w.fx.step[t.prop](t):1!==t.elem.nodeType||!w.cssHooks[t.prop]&&null==t.elem.style[qt(t.prop)]?t.elem[t.prop]=t.now:w.style(t.elem,t.prop,t.now+t.unit)}}},Jt.propHooks.scrollTop=Jt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},w.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},w.fx=Jt.prototype.init,w.fx.step={};var Xt,te,ee=/^(?:toggle|show|hide)$/,ne=/queueHooks$/;function ie(){te&&(!1===g.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ie):t.setTimeout(ie,w.fx.interval),w.fx.tick())}function re(){return t.setTimeout(function(){Xt=void 0}),Xt=Date.now()}function oe(t,e){var n,i=0,r={height:t};for(e=e?1:0;i<4;i+=2-e)r["margin"+(n=et[i])]=r["padding"+n]=t;return e&&(r.opacity=r.width=t),r}function ae(t,e,n){for(var i,r=(se.tweeners[e]||[]).concat(se.tweeners["*"]),o=0,a=r.length;o<a;o++)if(i=r[o].call(n,e,t))return i}function se(t,e,n){var i,r,o=0,a=se.prefilters.length,s=w.Deferred().always(function(){delete l.elem}),l=function(){if(r)return!1;for(var e=Xt||re(),n=Math.max(0,u.startTime+u.duration-e),i=1-(n/u.duration||0),o=0,a=u.tweens.length;o<a;o++)u.tweens[o].run(i);return s.notifyWith(t,[u,i,n]),i<1&&a?n:(a||s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u]),!1)},u=s.promise({elem:t,props:w.extend({},e),opts:w.extend(!0,{specialEasing:{},easing:w.easing._default},n),originalProperties:e,originalOptions:n,startTime:Xt||re(),duration:n.duration,tweens:[],createTween:function(e,n){var i=w.Tween(t,u.opts,e,n,u.opts.specialEasing[e]||u.opts.easing);return u.tweens.push(i),i},stop:function(e){var n=0,i=e?u.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)u.tweens[n].run(1);return e?(s.notifyWith(t,[u,1,0]),s.resolveWith(t,[u,e])):s.rejectWith(t,[u,e]),this}}),c=u.props;for(!function(t,e){var n,i,r,o,a;for(n in t)if(r=e[i=B(n)],o=t[n],Array.isArray(o)&&(r=o[1],o=t[n]=o[0]),n!==i&&(t[i]=o,delete t[n]),(a=w.cssHooks[i])&&"expand"in a)for(n in o=a.expand(o),delete t[i],o)n in t||(t[n]=o[n],e[n]=r);else e[i]=r}(c,u.opts.specialEasing);o<a;o++)if(i=se.prefilters[o].call(u,t,c,u.opts))return p(i.stop)&&(w._queueHooks(u.elem,u.opts.queue).stop=i.stop.bind(i)),i;return w.map(c,ae,u),p(u.opts.start)&&u.opts.start.call(t,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),w.fx.timer(w.extend(l,{elem:t,anim:u,queue:u.opts.queue})),u}w.Animation=w.extend(se,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return at(n.elem,t,tt.exec(e),n),n}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(N);for(var n,i=0,r=t.length;i<r;i++)n=t[i],se.tweeners[n]=se.tweeners[n]||[],se.tweeners[n].unshift(e)},prefilters:[function(t,e,n){var i,r,o,a,s,l,u,c,d="width"in e||"height"in e,h=this,f={},p=t.style,m=t.nodeType&&ot(t),g=G.get(t,"fxshow");for(i in n.queue||(null==(a=w._queueHooks(t,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,h.always(function(){h.always(function(){a.unqueued--,w.queue(t,"fx").length||a.empty.fire()})})),e)if(r=e[i],ee.test(r)){if(delete e[i],o=o||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||w.style(t,i)}if((l=!w.isEmptyObject(e))||!w.isEmptyObject(f))for(i in d&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(u=g&&g.display)&&(u=G.get(t,"display")),"none"===(c=w.css(t,"display"))&&(u?c=u:(ut([t],!0),u=t.style.display||u,c=w.css(t,"display"),ut([t]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===w.css(t,"float")&&(l||(h.done(function(){p.display=u}),null==u&&(c=p.display,u="none"===c?"":c)),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=G.access(t,"fxshow",{display:u}),o&&(g.hidden=!m),m&&ut([t],!0),h.done(function(){for(i in m||ut([t]),G.remove(t,"fxshow"),f)w.style(t,i,f[i])})),l=ae(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?se.prefilters.unshift(t):se.prefilters.push(t)}}),w.speed=function(t,e,n){var i=t&&"object"==typeof t?w.extend({},t):{complete:n||!n&&e||p(t)&&t,duration:t,easing:n&&e||e&&!p(e)&&e};return w.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in w.fx.speeds?i.duration=w.fx.speeds[i.duration]:i.duration=w.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){p(i.old)&&i.old.call(this),i.queue&&w.dequeue(this,i.queue)},i},w.fn.extend({fadeTo:function(t,e,n,i){return this.filter(ot).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var r=w.isEmptyObject(t),o=w.speed(e,n,i),a=function(){var e=se(this,w.extend({},t),o);(r||G.get(this,"finish"))&&e.stop(!0)};return a.finish=a,r||!1===o.queue?this.each(a):this.queue(o.queue,a)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each(function(){var e=!0,r=null!=t&&t+"queueHooks",o=w.timers,a=G.get(this);if(r)a[r]&&a[r].stop&&i(a[r]);else for(r in a)a[r]&&a[r].stop&&ne.test(r)&&i(a[r]);for(r=o.length;r--;)o[r].elem!==this||null!=t&&o[r].queue!==t||(o[r].anim.stop(n),e=!1,o.splice(r,1));!e&&n||w.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=G.get(this),i=n[t+"queue"],r=n[t+"queueHooks"],o=w.timers,a=i?i.length:0;for(n.finish=!0,w.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<a;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),w.each(["toggle","show","hide"],function(t,e){var n=w.fn[e];w.fn[e]=function(t,i,r){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(oe(e,!0),t,i,r)}}),w.each({slideDown:oe("show"),slideUp:oe("hide"),slideToggle:oe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){w.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),w.timers=[],w.fx.tick=function(){var t,e=0,n=w.timers;for(Xt=Date.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||w.fx.stop(),Xt=void 0},w.fx.timer=function(t){w.timers.push(t),w.fx.start()},w.fx.interval=13,w.fx.start=function(){te||(te=!0,ie())},w.fx.stop=function(){te=null},w.fx.speeds={slow:600,fast:200,_default:400},w.fn.delay=function(e,n){return e=w.fx&&w.fx.speeds[e]||e,n=n||"fx",this.queue(n,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var t=g.createElement("input"),e=g.createElement("select").appendChild(g.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=g.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var le,ue=w.expr.attrHandle;w.fn.extend({attr:function(t,e){return F(this,w.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){w.removeAttr(this,t)})}}),w.extend({attr:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?w.prop(t,e,n):(1===o&&w.isXMLDoc(t)||(r=w.attrHooks[e.toLowerCase()]||(w.expr.match.bool.test(e)?le:void 0)),void 0!==n?null===n?void w.removeAttr(t,e):r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:(t.setAttribute(e,n+""),n):r&&"get"in r&&null!==(i=r.get(t,e))?i:null==(i=w.find.attr(t,e))?void 0:i)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&T(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,r=e&&e.match(N);if(r&&1===t.nodeType)for(;n=r[i++];)t.removeAttribute(n)}}),le={set:function(t,e,n){return!1===e?w.removeAttr(t,n):t.setAttribute(n,n),n}},w.each(w.expr.match.bool.source.match(/\w+/g),function(t,e){var n=ue[e]||w.find.attr;ue[e]=function(t,e,i){var r,o,a=e.toLowerCase();return i||(o=ue[a],ue[a]=r,r=null!=n(t,e,i)?a:null,ue[a]=o),r}});var ce=/^(?:input|select|textarea|button)$/i,de=/^(?:a|area)$/i;function he(t){return(t.match(N)||[]).join(" ")}function fe(t){return t.getAttribute&&t.getAttribute("class")||""}function pe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(N)||[]}w.fn.extend({prop:function(t,e){return F(this,w.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[w.propFix[t]||t]})}}),w.extend({prop:function(t,e,n){var i,r,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&w.isXMLDoc(t)||(e=w.propFix[e]||e,r=w.propHooks[e]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(t,n,e))?i:t[e]=n:r&&"get"in r&&null!==(i=r.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=w.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||de.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(w.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),w.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){w.propFix[this.toLowerCase()]=this}),w.fn.extend({addClass:function(t){var e,n,i,r,o,a,s,l=0;if(p(t))return this.each(function(e){w(this).addClass(t.call(this,e,fe(this)))});if((e=pe(t)).length)for(;n=this[l++];)if(r=fe(n),i=1===n.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)i.indexOf(" "+o+" ")<0&&(i+=o+" ");r!==(s=he(i))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,i,r,o,a,s,l=0;if(p(t))return this.each(function(e){w(this).removeClass(t.call(this,e,fe(this)))});if(!arguments.length)return this.attr("class","");if((e=pe(t)).length)for(;n=this[l++];)if(r=fe(n),i=1===n.nodeType&&" "+he(r)+" "){for(a=0;o=e[a++];)for(;i.indexOf(" "+o+" ")>-1;)i=i.replace(" "+o+" "," ");r!==(s=he(i))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,i="string"===n||Array.isArray(t);return"boolean"==typeof e&&i?e?this.addClass(t):this.removeClass(t):p(t)?this.each(function(n){w(this).toggleClass(t.call(this,n,fe(this),e),e)}):this.each(function(){var e,r,o,a;if(i)for(r=0,o=w(this),a=pe(t);e=a[r++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=fe(this))&&G.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":G.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+he(fe(n))+" ").indexOf(e)>-1)return!0;return!1}});var me=/\r/g;w.fn.extend({val:function(t){var e,n,i,r=this[0];return arguments.length?(i=p(t),this.each(function(n){var r;1===this.nodeType&&(null==(r=i?t.call(this,n,w(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=w.map(r,function(t){return null==t?"":t+""})),(e=w.valHooks[this.type]||w.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))})):r?(e=w.valHooks[r.type]||w.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(me,""):null==n?"":n:void 0}}),w.extend({valHooks:{option:{get:function(t){var e=w.find.attr(t,"value");return null!=e?e:he(w.text(t))}},select:{get:function(t){var e,n,i,r=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],l=a?o+1:r.length;for(i=o<0?l:a?o:0;i<l;i++)if(((n=r[i]).selected||i===o)&&!n.disabled&&(!n.parentNode.disabled||!T(n.parentNode,"optgroup"))){if(e=w(n).val(),a)return e;s.push(e)}return s},set:function(t,e){for(var n,i,r=t.options,o=w.makeArray(e),a=r.length;a--;)((i=r[a]).selected=w.inArray(w.valHooks.option.get(i),o)>-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),w.each(["radio","checkbox"],function(){w.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=w.inArray(w(t).val(),e)>-1}},f.checkOn||(w.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),f.focusin="onfocusin"in t;var ge=/^(?:focusinfocus|focusoutblur)$/,ve=function(t){t.stopPropagation()};w.extend(w.event,{trigger:function(e,n,i,r){var o,a,s,l,u,d,h,f,v=[i||g],y=c.call(e,"type")?e.type:e,b=c.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=i=i||g,3!==i.nodeType&&8!==i.nodeType&&!ge.test(y+w.event.triggered)&&(y.indexOf(".")>-1&&(b=y.split("."),y=b.shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(e=e[w.expando]?e:new w.Event(y,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),n=null==n?[e]:w.makeArray(n,[e]),h=w.event.special[y]||{},r||!h.trigger||!1!==h.trigger.apply(i,n))){if(!r&&!h.noBubble&&!m(i)){for(l=h.delegateType||y,ge.test(l+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),s=a;s===(i.ownerDocument||g)&&v.push(s.defaultView||s.parentWindow||t)}for(o=0;(a=v[o++])&&!e.isPropagationStopped();)f=a,e.type=o>1?l:h.bindType||y,(d=(G.get(a,"events")||Object.create(null))[e.type]&&G.get(a,"handle"))&&d.apply(a,n),(d=u&&a[u])&&d.apply&&z(a)&&(e.result=d.apply(a,n),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),n)||!z(i)||u&&p(i[y])&&!m(i)&&((s=i[u])&&(i[u]=null),w.event.triggered=y,e.isPropagationStopped()&&f.addEventListener(y,ve),i[y](),e.isPropagationStopped()&&f.removeEventListener(y,ve),w.event.triggered=void 0,s&&(i[u]=s)),e.result}},simulate:function(t,e,n){var i=w.extend(new w.Event,n,{type:t,isSimulated:!0});w.event.trigger(i,null,e)}}),w.fn.extend({trigger:function(t,e){return this.each(function(){w.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return w.event.trigger(t,e,n,!0)}}),f.focusin||w.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){w.event.simulate(e,t.target,w.event.fix(t))};w.event.special[e]={setup:function(){var i=this.ownerDocument||this.document||this,r=G.access(i,e);r||i.addEventListener(t,n,!0),G.access(i,e,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=G.access(i,e)-1;r?G.access(i,e,r):(i.removeEventListener(t,n,!0),G.remove(i,e))}}});var ye=t.location,be={guid:Date.now()},we=/\?/;w.parseXML=function(e){var n,i;if(!e||"string"!=typeof e)return null;try{n=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){}return i=n&&n.getElementsByTagName("parsererror")[0],n&&!i||w.error("Invalid XML: "+(i?w.map(i.childNodes,function(t){return t.textContent}).join("\n"):e)),n};var _e=/\[\]$/,xe=/\r?\n/g,De=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Ce(t,e,n,i){var r;if(Array.isArray(e))w.each(e,function(e,r){n||_e.test(t)?i(t,r):Ce(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==b(e))i(t,e);else for(r in e)Ce(t+"["+r+"]",e[r],n,i)}w.param=function(t,e){var n,i=[],r=function(t,e){var n=p(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!w.isPlainObject(t))w.each(t,function(){r(this.name,this.value)});else for(n in t)Ce(n,t[n],e,r);return i.join("&")},w.fn.extend({serialize:function(){return w.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=w.prop(this,"elements");return t?w.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!w(this).is(":disabled")&&ke.test(this.nodeName)&&!De.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var n=w(this).val();return null==n?null:Array.isArray(n)?w.map(n,function(t){return{name:e.name,value:t.replace(xe,"\r\n")}}):{name:e.name,value:n.replace(xe,"\r\n")}}).get()}});var Te=/%20/g,Se=/#.*$/,$e=/([?&])_=[^&]*/,Ee=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:GET|HEAD)$/,Me=/^\/\//,Ae={},je={},Ne="*/".concat("*"),Ie=g.createElement("a");function Pe(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,r=0,o=e.toLowerCase().match(N)||[];if(p(n))for(;i=o[r++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function Le(t,e,n,i){var r={},o=t===je;function a(s){var l;return r[s]=!0,w.each(t[s]||[],function(t,s){var u=s(e,n,i);return"string"!=typeof u||o||r[u]?o?!(l=u):void 0:(e.dataTypes.unshift(u),a(u),!1)}),l}return a(e.dataTypes[0])||!r["*"]&&a("*")}function Re(t,e){var n,i,r=w.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((r[n]?t:i||(i={}))[n]=e[n]);return i&&w.extend(!0,t,i),t}Ie.href=ye.href,w.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ye.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ye.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ne,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":w.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Re(Re(t,w.ajaxSettings),e):Re(w.ajaxSettings,t)},ajaxPrefilter:Pe(Ae),ajaxTransport:Pe(je),ajax:function(e,n){"object"==typeof e&&(n=e,e=void 0),n=n||{};var i,r,o,a,s,l,u,c,d,h,f=w.ajaxSetup({},n),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?w(p):w.event,v=w.Deferred(),y=w.Callbacks("once memory"),b=f.statusCode||{},_={},x={},D="canceled",k={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=Ee.exec(o);)a[e[1].toLowerCase()+" "]=(a[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=a[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)k.always(t[k.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||D;return i&&i.abort(e),C(0,e),this}};if(v.promise(k),f.url=((e||f.url||ye.href)+"").replace(Me,ye.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(N)||[""],null==f.crossDomain){l=g.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ie.protocol+"//"+Ie.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=w.param(f.data,f.traditional)),Le(Ae,f,n,k),u)return k;for(d in(c=w.event&&f.global)&&0==w.active++&&w.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Oe.test(f.type),r=f.url.replace(Se,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Te,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(we.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace($e,"$1"),h=(we.test(r)?"&":"?")+"_="+be.guid+++h),f.url=r+h),f.ifModified&&(w.lastModified[r]&&k.setRequestHeader("If-Modified-Since",w.lastModified[r]),w.etag[r]&&k.setRequestHeader("If-None-Match",w.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||n.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ne+"; q=0.01":""):f.accepts["*"]),f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,k,f)||u))return k.abort();if(D="abort",y.add(f.complete),k.done(f.success),k.fail(f.error),i=Le(je,f,n,k)){if(k.readyState=1,c&&m.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(s=t.setTimeout(function(){k.abort("timeout")},f.timeout));try{u=!1,i.send(_,C)}catch(t){if(u)throw t;C(-1,t)}}else C(-1,"No Transport");function C(e,n,a,l){var d,h,g,_,x,D=n;u||(u=!0,s&&t.clearTimeout(s),i=void 0,o=l||"",k.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(_=function(t,e,n){for(var i,r,o,a,s=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(r in s)if(s[r]&&s[r].test(i)){l.unshift(r);break}if(l[0]in n)o=l[0];else{for(r in n){if(!l[0]||t.converters[r+" "+l[0]]){o=r;break}a||(a=r)}o=o||a}if(o)return o!==l[0]&&l.unshift(o),n[o]}(f,k,a)),!d&&w.inArray("script",f.dataTypes)>-1&&w.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(t,e,n,i){var r,o,a,s,l,u={},c=t.dataTypes.slice();if(c[1])for(a in t.converters)u[a.toLowerCase()]=t.converters[a];for(o=c.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(a=u[l+" "+o]||u["* "+o]))for(r in u)if((s=r.split(" "))[1]===o&&(a=u[l+" "+s[0]]||u["* "+s[0]])){!0===a?a=u[r]:!0!==u[r]&&(o=s[0],c.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,_,k,d),d?(f.ifModified&&((x=k.getResponseHeader("Last-Modified"))&&(w.lastModified[r]=x),(x=k.getResponseHeader("etag"))&&(w.etag[r]=x)),204===e||"HEAD"===f.type?D="nocontent":304===e?D="notmodified":(D=_.state,h=_.data,d=!(g=_.error))):(g=D,!e&&D||(D="error",e<0&&(e=0))),k.status=e,k.statusText=(n||D)+"",d?v.resolveWith(p,[h,D,k]):v.rejectWith(p,[k,D,g]),k.statusCode(b),b=void 0,c&&m.trigger(d?"ajaxSuccess":"ajaxError",[k,f,d?h:g]),y.fireWith(p,[k,D]),c&&(m.trigger("ajaxComplete",[k,f]),--w.active||w.event.trigger("ajaxStop")))}return k},getJSON:function(t,e,n){return w.get(t,e,n,"json")},getScript:function(t,e){return w.get(t,void 0,e,"script")}}),w.each(["get","post"],function(t,e){w[e]=function(t,n,i,r){return p(n)&&(r=r||i,i=n,n=void 0),w.ajax(w.extend({url:t,type:e,dataType:r,data:n,success:i},w.isPlainObject(t)&&t))}}),w.ajaxPrefilter(function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")}),w._evalUrl=function(t,e,n){return w.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){w.globalEval(t,e,n)}})},w.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=w(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return p(t)?this.each(function(e){w(this).wrapInner(t.call(this,e))}):this.each(function(){var e=w(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=p(t);return this.each(function(n){w(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){w(this).replaceWith(this.childNodes)}),this}}),w.expr.pseudos.hidden=function(t){return!w.expr.pseudos.visible(t)},w.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},w.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var Ye={0:200,1223:204},He=w.ajaxSettings.xhr();f.cors=!!He&&"withCredentials"in He,f.ajax=He=!!He,w.ajaxTransport(function(e){var n,i;if(f.cors||He&&!e.crossDomain)return{send:function(r,o){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);n=function(t){return function(){n&&(n=i=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(Ye[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=n(),i=s.onerror=s.ontimeout=n("error"),void 0!==s.onabort?s.onabort=i:s.onreadystatechange=function(){4===s.readyState&&t.setTimeout(function(){n&&i()})},n=n("abort");try{s.send(e.hasContent&&e.data||null)}catch(t){if(n)throw t}},abort:function(){n&&n()}}}),w.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),w.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return w.globalEval(t),t}}}),w.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),w.ajaxTransport("script",function(t){var e,n;if(t.crossDomain||t.scriptAttrs)return{send:function(i,r){e=w("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&r("error"===t.type?404:200,t.type)}),g.head.appendChild(e[0])},abort:function(){n&&n()}}});var Fe,Ue=[],We=/(=)\?(?=&|$)|\?\?/;w.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Ue.pop()||w.expando+"_"+be.guid++;return this[t]=!0,t}}),w.ajaxPrefilter("json jsonp",function(e,n,i){var r,o,a,s=!1!==e.jsonp&&(We.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&We.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=p(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(We,"$1"+r):!1!==e.jsonp&&(e.url+=(we.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||w.error(r+" was not called"),a[0]},e.dataTypes[0]="json",o=t[r],t[r]=function(){a=arguments},i.always(function(){void 0===o?w(t).removeProp(r):t[r]=o,e[r]&&(e.jsonpCallback=n.jsonpCallback,Ue.push(r)),a&&p(o)&&o(a[0]),a=o=void 0}),"script"}),f.createHTMLDocument=((Fe=g.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Fe.childNodes.length),w.parseHTML=function(t,e,n){return"string"!=typeof t?[]:("boolean"==typeof e&&(n=e,e=!1),e||(f.createHTMLDocument?((i=(e=g.implementation.createHTMLDocument("")).createElement("base")).href=g.location.href,e.head.appendChild(i)):e=g),o=!n&&[],(r=S.exec(t))?[e.createElement(r[1])]:(r=bt([t],e,o),o&&o.length&&w(o).remove(),w.merge([],r.childNodes)));var i,r,o},w.fn.load=function(t,e,n){var i,r,o,a=this,s=t.indexOf(" ");return s>-1&&(i=he(t.slice(s)),t=t.slice(0,s)),p(e)?(n=e,e=void 0):e&&"object"==typeof e&&(r="POST"),a.length>0&&w.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){o=arguments,a.html(i?w("<div>").append(w.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,o||[t.responseText,e,t])})}),this},w.expr.pseudos.animated=function(t){return w.grep(w.timers,function(e){return t===e.elem}).length},w.offset={setOffset:function(t,e,n){var i,r,o,a,s,l,u=w.css(t,"position"),c=w(t),d={};"static"===u&&(t.style.position="relative"),s=c.offset(),o=w.css(t,"top"),l=w.css(t,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(a=(i=c.position()).top,r=i.left):(a=parseFloat(o)||0,r=parseFloat(l)||0),p(e)&&(e=e.call(t,n,w.extend({},s))),null!=e.top&&(d.top=e.top-s.top+a),null!=e.left&&(d.left=e.left-s.left+r),"using"in e?e.using.call(t,d):c.css(d)}},w.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){w.offset.setOffset(this,t,e)});var e,n,i=this[0];return i?i.getClientRects().length?(e=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,n,i=this[0],r={top:0,left:0};if("fixed"===w.css(i,"position"))e=i.getBoundingClientRect();else{for(e=this.offset(),n=i.ownerDocument,t=i.offsetParent||n.documentElement;t&&(t===n.body||t===n.documentElement)&&"static"===w.css(t,"position");)t=t.parentNode;t&&t!==i&&1===t.nodeType&&((r=w(t).offset()).top+=w.css(t,"borderTopWidth",!0),r.left+=w.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-w.css(i,"marginTop",!0),left:e.left-r.left-w.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===w.css(t,"position");)t=t.offsetParent;return t||nt})}}),w.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;w.fn[t]=function(i){return F(this,function(t,i,r){var o;if(m(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===r)return o?o[e]:t[i];o?o.scrollTo(n?o.pageXOffset:r,n?r:o.pageYOffset):t[i]=r},t,i,arguments.length)}}),w.each(["top","left"],function(t,e){w.cssHooks[e]=Ht(f.pixelPosition,function(t,n){if(n)return n=Yt(t,e),It.test(n)?w(t).position()[e]+"px":n})}),w.each({Height:"height",Width:"width"},function(t,e){w.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){w.fn[i]=function(r,o){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===o?"margin":"border");return F(this,function(e,n,r){var o;return m(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===r?w.css(e,n,s):w.style(e,n,r,s)},e,a?r:void 0,a)}})}),w.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){w.fn[e]=function(t){return this.on(e,t)}}),w.fn.extend({bind:function(t,e,n){return this.on(t,null,e,n)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,n,i){return this.on(e,t,n,i)},undelegate:function(t,e,n){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",n)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),w.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){w.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}});var qe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;w.proxy=function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),p(t))return i=r.call(arguments,2),(o=function(){return t.apply(e||this,i.concat(r.call(arguments)))}).guid=t.guid=t.guid||w.guid++,o},w.holdReady=function(t){t?w.readyWait++:w.ready(!0)},w.isArray=Array.isArray,w.parseJSON=JSON.parse,w.nodeName=T,w.isFunction=p,w.isWindow=m,w.camelCase=B,w.type=b,w.now=Date.now,w.isNumeric=function(t){var e=w.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},w.trim=function(t){return null==t?"":(t+"").replace(qe,"")},"function"==typeof define&&define.amd&&define("jquery",[],function(){return w});var Be=t.jQuery,ze=t.$;return w.noConflict=function(e){return t.$===w&&(t.$=ze),e&&t.jQuery===w&&(t.jQuery=Be),w},void 0===e&&(t.jQuery=t.$=w),w}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.moment=e()}(this,function(){"use strict";var t,e;function n(){return t.apply(null,arguments)}function i(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function r(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(o(t,e))return!1;return!0}function s(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var n,i=[];for(n=0;n<t.length;++n)i.push(e(t[n],n));return i}function d(t,e){for(var n in e)o(e,n)&&(t[n]=e[n]);return o(e,"toString")&&(t.toString=e.toString),o(e,"valueOf")&&(t.valueOf=e.valueOf),t}function h(t,e,n,i){return Ee(t,e,n,i,!0).utc()}function f(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function p(t){if(null==t._isValid){var n=f(t),i=e.call(n.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&n.overflow<0&&!n.empty&&!n.invalidEra&&!n.invalidMonth&&!n.invalidWeekday&&!n.weekdayMismatch&&!n.nullInput&&!n.invalidFormat&&!n.userInvalidated&&(!n.meridiem||n.meridiem&&i);if(t._strict&&(r=r&&0===n.charsLeftOver&&0===n.unusedTokens.length&&void 0===n.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function m(t){var e=h(NaN);return null!=t?d(f(e),t):f(e).userInvalidated=!0,e}e=Array.prototype.some?Array.prototype.some:function(t){var e,n=Object(this),i=n.length>>>0;for(e=0;e<i;e++)if(e in n&&t.call(this,n[e],e,n))return!0;return!1};var g=n.momentProperties=[],v=!1;function y(t,e){var n,i,r;if(s(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),s(e._i)||(t._i=e._i),s(e._f)||(t._f=e._f),s(e._l)||(t._l=e._l),s(e._strict)||(t._strict=e._strict),s(e._tzm)||(t._tzm=e._tzm),s(e._isUTC)||(t._isUTC=e._isUTC),s(e._offset)||(t._offset=e._offset),s(e._pf)||(t._pf=f(e)),s(e._locale)||(t._locale=e._locale),g.length>0)for(n=0;n<g.length;n++)s(r=e[i=g[n]])||(t[i]=r);return t}function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===v&&(v=!0,n.updateOffset(this),v=!1)}function w(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function _(t){!1===n.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function x(t,e){var i=!0;return d(function(){if(null!=n.deprecationHandler&&n.deprecationHandler(null,t),i){var r,a,s,l=[];for(a=0;a<arguments.length;a++){if(r="","object"==typeof arguments[a]){for(s in r+="\n["+a+"] ",arguments[0])o(arguments[0],s)&&(r+=s+": "+arguments[0][s]+", ");r=r.slice(0,-2)}else r=arguments[a];l.push(r)}_(t+"\nArguments: "+Array.prototype.slice.call(l).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var D,k={};function C(t,e){null!=n.deprecationHandler&&n.deprecationHandler(t,e),k[t]||(_(e),k[t]=!0)}function T(t){return"undefined"!=typeof Function&&t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function S(t,e){var n,i=d({},t);for(n in e)o(e,n)&&(r(t[n])&&r(e[n])?(i[n]={},d(i[n],t[n]),d(i[n],e[n])):null!=e[n]?i[n]=e[n]:delete i[n]);for(n in t)o(t,n)&&!o(e,n)&&r(t[n])&&(i[n]=d({},i[n]));return i}function $(t){null!=t&&this.set(t)}n.suppressDeprecationWarnings=!1,n.deprecationHandler=null,D=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)o(t,e)&&n.push(e);return n};function E(t,e,n){var i=""+Math.abs(t),r=e-i.length;return(t>=0?n?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+i}var O=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,M=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,A={},j={};function N(t,e,n,i){var r=i;"string"==typeof i&&(r=function(){return this[i]()}),t&&(j[t]=r),e&&(j[e[0]]=function(){return E(r.apply(this,arguments),e[1],e[2])}),n&&(j[n]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function I(t,e){return t.isValid()?(e=P(e,t.localeData()),A[e]=A[e]||function(t){var e,n,i,r=t.match(O);for(e=0,n=r.length;e<n;e++)j[r[e]]?r[e]=j[r[e]]:r[e]=(i=r[e]).match(/\[[\s\S]/)?i.replace(/^\[|\]$/g,""):i.replace(/\\/g,"");return function(e){var i,o="";for(i=0;i<n;i++)o+=T(r[i])?r[i].call(e,t):r[i];return o}}(e),A[e](t)):t.localeData().invalidDate()}function P(t,e){var n=5;function i(t){return e.longDateFormat(t)||t}for(M.lastIndex=0;n>=0&&M.test(t);)t=t.replace(M,i),M.lastIndex=0,n-=1;return t}var L={};function R(t,e){var n=t.toLowerCase();L[n]=L[n+"s"]=L[e]=t}function Y(t){return"string"==typeof t?L[t]||L[t.toLowerCase()]:void 0}function H(t){var e,n,i={};for(n in t)o(t,n)&&(e=Y(n))&&(i[e]=t[n]);return i}var F={};function U(t,e){F[t]=e}function W(t){return t%4==0&&t%100!=0||t%400==0}function q(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function B(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=q(e)),n}function z(t,e){return function(i){return null!=i?(G(this,t,i),n.updateOffset(this,e),this):V(this,t)}}function V(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function G(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&W(t.year())&&1===t.month()&&29===t.date()?(n=B(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),Et(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var Z,Q=/\d/,K=/\d\d/,J=/\d{3}/,X=/\d{4}/,tt=/[+-]?\d{6}/,et=/\d\d?/,nt=/\d\d\d\d?/,it=/\d\d\d\d\d\d?/,rt=/\d{1,3}/,ot=/\d{1,4}/,at=/[+-]?\d{1,6}/,st=/\d+/,lt=/[+-]?\d+/,ut=/Z|[+-]\d\d:?\d\d/gi,ct=/Z|[+-]\d\d(?::?\d\d)?/gi,dt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ht(t,e,n){Z[t]=T(e)?e:function(t,i){return t&&n?n:e}}function ft(t,e){return o(Z,t)?Z[t](e._strict,e._locale):new RegExp(pt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,n,i,r){return e||n||i||r})))}function pt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Z={};var mt={};function gt(t,e){var n,i=e;for("string"==typeof t&&(t=[t]),l(e)&&(i=function(t,n){n[e]=B(t)}),n=0;n<t.length;n++)mt[t[n]]=i}function vt(t,e){gt(t,function(t,n,i,r){i._w=i._w||{},e(t,i._w,i,r)})}function yt(t,e,n){null!=e&&o(mt,t)&&mt[t](e,n._a,n,t)}var bt,wt=0,_t=1,xt=2,Dt=3,kt=4,Ct=5,Tt=6,St=7,$t=8;function Et(t,e){if(isNaN(t)||isNaN(e))return NaN;var n,i=(e%(n=12)+n)%n;return t+=(e-i)/12,1===i?W(t)?29:28:31-i%7%2}bt=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},N("M",["MM",2],"Mo",function(){return this.month()+1}),N("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),N("MMMM",0,0,function(t){return this.localeData().months(this,t)}),R("month","M"),U("month",8),ht("M",et),ht("MM",et,K),ht("MMM",function(t,e){return e.monthsShortRegex(t)}),ht("MMMM",function(t,e){return e.monthsRegex(t)}),gt(["M","MM"],function(t,e){e[_t]=B(t)-1}),gt(["MMM","MMMM"],function(t,e,n,i){var r=n._locale.monthsParse(t,i,n._strict);null!=r?e[_t]=r:f(n).invalidMonth=t});var Ot="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Mt="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,jt=dt,Nt=dt;function It(t,e){var n;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=B(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return n=Math.min(t.date(),Et(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,n),t}function Pt(t){return null!=t?(It(this,t),n.updateOffset(this,!0),this):V(this,"Month")}function Lt(){function t(t,e){return e.length-t.length}var e,n,i=[],r=[],o=[];for(e=0;e<12;e++)n=h([2e3,e]),i.push(this.monthsShort(n,"")),r.push(this.months(n,"")),o.push(this.months(n,"")),o.push(this.monthsShort(n,""));for(i.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)i[e]=pt(i[e]),r[e]=pt(r[e]);for(e=0;e<24;e++)o[e]=pt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+i.join("|")+")","i")}function Rt(t){return W(t)?366:365}N("Y",0,0,function(){var t=this.year();return t<=9999?E(t,4):"+"+t}),N(0,["YY",2],0,function(){return this.year()%100}),N(0,["YYYY",4],0,"year"),N(0,["YYYYY",5],0,"year"),N(0,["YYYYYY",6,!0],0,"year"),R("year","y"),U("year",1),ht("Y",lt),ht("YY",et,K),ht("YYYY",ot,X),ht("YYYYY",at,tt),ht("YYYYYY",at,tt),gt(["YYYYY","YYYYYY"],wt),gt("YYYY",function(t,e){e[wt]=2===t.length?n.parseTwoDigitYear(t):B(t)}),gt("YY",function(t,e){e[wt]=n.parseTwoDigitYear(t)}),gt("Y",function(t,e){e[wt]=parseInt(t,10)}),n.parseTwoDigitYear=function(t){return B(t)+(B(t)>68?1900:2e3)};var Yt=z("FullYear",!0);function Ht(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ft(t,e,n){var i=7+e-n;return-((7+Ht(t,0,i).getUTCDay()-e)%7)+i-1}function Ut(t,e,n,i,r){var o,a,s=1+7*(e-1)+(7+n-i)%7+Ft(t,i,r);return s<=0?a=Rt(o=t-1)+s:s>Rt(t)?(o=t+1,a=s-Rt(t)):(o=t,a=s),{year:o,dayOfYear:a}}function Wt(t,e,n){var i,r,o=Ft(t.year(),e,n),a=Math.floor((t.dayOfYear()-o-1)/7)+1;return a<1?i=a+qt(r=t.year()-1,e,n):a>qt(t.year(),e,n)?(i=a-qt(t.year(),e,n),r=t.year()+1):(r=t.year(),i=a),{week:i,year:r}}function qt(t,e,n){var i=Ft(t,e,n),r=Ft(t+1,e,n);return(Rt(t)-i+r)/7}N("w",["ww",2],"wo","week"),N("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),U("week",5),U("isoWeek",5),ht("w",et),ht("ww",et,K),ht("W",et),ht("WW",et,K),vt(["w","ww","W","WW"],function(t,e,n,i){e[i.substr(0,1)]=B(t)});function Bt(t,e){return t.slice(e,7).concat(t.slice(0,e))}N("d",0,"do","day"),N("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),N("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),N("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),N("e",0,0,"weekday"),N("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),U("day",11),U("weekday",11),U("isoWeekday",11),ht("d",et),ht("e",et),ht("E",et),ht("dd",function(t,e){return e.weekdaysMinRegex(t)}),ht("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ht("dddd",function(t,e){return e.weekdaysRegex(t)}),vt(["dd","ddd","dddd"],function(t,e,n,i){var r=n._locale.weekdaysParse(t,i,n._strict);null!=r?e.d=r:f(n).invalidWeekday=t}),vt(["d","e","E"],function(t,e,n,i){e[i]=B(t)});var zt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Gt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Zt=dt,Qt=dt,Kt=dt;function Jt(){function t(t,e){return e.length-t.length}var e,n,i,r,o,a=[],s=[],l=[],u=[];for(e=0;e<7;e++)n=h([2e3,1]).day(e),i=pt(this.weekdaysMin(n,"")),r=pt(this.weekdaysShort(n,"")),o=pt(this.weekdays(n,"")),a.push(i),s.push(r),l.push(o),u.push(i),u.push(r),u.push(o);a.sort(t),s.sort(t),l.sort(t),u.sort(t),this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+a.join("|")+")","i")}function Xt(){return this.hours()%12||12}function te(t,e){N(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ee(t,e){return e._meridiemParse}N("H",["HH",2],0,"hour"),N("h",["hh",2],0,Xt),N("k",["kk",2],0,function(){return this.hours()||24}),N("hmm",0,0,function(){return""+Xt.apply(this)+E(this.minutes(),2)}),N("hmmss",0,0,function(){return""+Xt.apply(this)+E(this.minutes(),2)+E(this.seconds(),2)}),N("Hmm",0,0,function(){return""+this.hours()+E(this.minutes(),2)}),N("Hmmss",0,0,function(){return""+this.hours()+E(this.minutes(),2)+E(this.seconds(),2)}),te("a",!0),te("A",!1),R("hour","h"),U("hour",13),ht("a",ee),ht("A",ee),ht("H",et),ht("h",et),ht("k",et),ht("HH",et,K),ht("hh",et,K),ht("kk",et,K),ht("hmm",nt),ht("hmmss",it),ht("Hmm",nt),ht("Hmmss",it),gt(["H","HH"],Dt),gt(["k","kk"],function(t,e,n){var i=B(t);e[Dt]=24===i?0:i}),gt(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),gt(["h","hh"],function(t,e,n){e[Dt]=B(t),f(n).bigHour=!0}),gt("hmm",function(t,e,n){var i=t.length-2;e[Dt]=B(t.substr(0,i)),e[kt]=B(t.substr(i)),f(n).bigHour=!0}),gt("hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[Dt]=B(t.substr(0,i)),e[kt]=B(t.substr(i,2)),e[Ct]=B(t.substr(r)),f(n).bigHour=!0}),gt("Hmm",function(t,e,n){var i=t.length-2;e[Dt]=B(t.substr(0,i)),e[kt]=B(t.substr(i))}),gt("Hmmss",function(t,e,n){var i=t.length-4,r=t.length-2;e[Dt]=B(t.substr(0,i)),e[kt]=B(t.substr(i,2)),e[Ct]=B(t.substr(r))});var ne=z("Hours",!0);var ie,re={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Ot,monthsShort:Mt,week:{dow:0,doy:6},weekdays:zt,weekdaysMin:Gt,weekdaysShort:Vt,meridiemParse:/[ap]\.?m?\.?/i},oe={},ae={};function se(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n<i;n+=1)if(t[n]!==e[n])return n;return i}function le(t){return t?t.toLowerCase().replace("_","-"):t}function ue(t){var e=null;if(void 0===oe[t]&&"undefined"!=typeof module&&module&&module.exports)try{e=ie._abbr,require("./locale/"+t),ce(e)}catch(e){oe[t]=null}return oe[t]}function ce(t,e){var n;return t&&((n=s(e)?he(t):de(t,e))?ie=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ie._abbr}function de(t,e){if(null!==e){var n,i=re;if(e.abbr=t,null!=oe[t])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=oe[t]._config;else if(null!=e.parentLocale)if(null!=oe[e.parentLocale])i=oe[e.parentLocale]._config;else{if(null==(n=ue(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;i=n._config}return oe[t]=new $(S(i,e)),ae[t]&&ae[t].forEach(function(t){de(t.name,t.config)}),ce(t),oe[t]}return delete oe[t],null}function he(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ie;if(!i(t)){if(e=ue(t))return e;t=[t]}return function(t){for(var e,n,i,r,o=0;o<t.length;){for(e=(r=le(t[o]).split("-")).length,n=(n=le(t[o+1]))?n.split("-"):null;e>0;){if(i=ue(r.slice(0,e).join("-")))return i;if(n&&n.length>=e&&se(r,n)>=e-1)break;e--}o++}return ie}(t)}function fe(t){var e,n=t._a;return n&&-2===f(t).overflow&&(e=n[_t]<0||n[_t]>11?_t:n[xt]<1||n[xt]>Et(n[wt],n[_t])?xt:n[Dt]<0||n[Dt]>24||24===n[Dt]&&(0!==n[kt]||0!==n[Ct]||0!==n[Tt])?Dt:n[kt]<0||n[kt]>59?kt:n[Ct]<0||n[Ct]>59?Ct:n[Tt]<0||n[Tt]>999?Tt:-1,f(t)._overflowDayOfYear&&(e<wt||e>xt)&&(e=xt),f(t)._overflowWeeks&&-1===e&&(e=St),f(t)._overflowWeekday&&-1===e&&(e=$t),f(t).overflow=e),t}var pe=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ge=/Z|[+-]\d\d(?::?\d\d)?/,ve=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],ye=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],be=/^\/?Date\((-?\d+)/i,we=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,_e={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function xe(t){var e,n,i,r,o,a,s=t._i,l=pe.exec(s)||me.exec(s);if(l){for(f(t).iso=!0,e=0,n=ve.length;e<n;e++)if(ve[e][1].exec(l[1])){r=ve[e][0],i=!1!==ve[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,n=ye.length;e<n;e++)if(ye[e][1].exec(l[3])){o=(l[2]||" ")+ye[e][0];break}if(null==o)return void(t._isValid=!1)}if(!i&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ge.exec(l[4]))return void(t._isValid=!1);a="Z"}t._f=r+(o||"")+(a||""),Se(t)}else t._isValid=!1}function De(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function ke(t){var e,n,i,r,o,a,s,l,u=we.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(n=u[4],i=u[3],r=u[2],o=u[5],a=u[6],s=u[7],l=[De(n),Mt.indexOf(i),parseInt(r,10),parseInt(o,10),parseInt(a,10)],s&&l.push(parseInt(s,10)),e=l,!function(t,e,n){return!t||Vt.indexOf(t)===new Date(e[0],e[1],e[2]).getDay()||(f(n).weekdayMismatch=!0,n._isValid=!1,!1)}(u[1],e,t))return;t._a=e,t._tzm=function(t,e,n){if(t)return _e[t];if(e)return 0;var i=parseInt(n,10),r=i%100;return(i-r)/100*60+r}(u[8],u[9],u[10]),t._d=Ht.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),f(t).rfc2822=!0}else t._isValid=!1}function Ce(t,e,n){return null!=t?t:null!=e?e:n}function Te(t){var e,i,r,o,a,s=[];if(!t._d){for(r=function(t){var e=new Date(n.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}(t),t._w&&null==t._a[xt]&&null==t._a[_t]&&function(t){var e,n,i,r,o,a,s,l,u;null!=(e=t._w).GG||null!=e.W||null!=e.E?(o=1,a=4,n=Ce(e.GG,t._a[wt],Wt(Oe(),1,4).year),i=Ce(e.W,1),((r=Ce(e.E,1))<1||r>7)&&(l=!0)):(o=t._locale._week.dow,a=t._locale._week.doy,u=Wt(Oe(),o,a),n=Ce(e.gg,t._a[wt],u.year),i=Ce(e.w,u.week),null!=e.d?((r=e.d)<0||r>6)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||e.e>6)&&(l=!0)):r=o);i<1||i>qt(n,o,a)?f(t)._overflowWeeks=!0:null!=l?f(t)._overflowWeekday=!0:(s=Ut(n,i,r,o,a),t._a[wt]=s.year,t._dayOfYear=s.dayOfYear)}(t),null!=t._dayOfYear&&(a=Ce(t._a[wt],r[wt]),(t._dayOfYear>Rt(a)||0===t._dayOfYear)&&(f(t)._overflowDayOfYear=!0),i=Ht(a,0,t._dayOfYear),t._a[_t]=i.getUTCMonth(),t._a[xt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=s[e]=r[e];for(;e<7;e++)t._a[e]=s[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[Dt]&&0===t._a[kt]&&0===t._a[Ct]&&0===t._a[Tt]&&(t._nextDay=!0,t._a[Dt]=0),t._d=(t._useUTC?Ht:function(t,e,n,i,r,o,a){var s;return t<100&&t>=0?(s=new Date(t+400,e,n,i,r,o,a),isFinite(s.getFullYear())&&s.setFullYear(t)):s=new Date(t,e,n,i,r,o,a),s}).apply(null,s),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[Dt]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(f(t).weekdayMismatch=!0)}}function Se(t){if(t._f!==n.ISO_8601)if(t._f!==n.RFC_2822){t._a=[],f(t).empty=!0;var e,i,r,o,a,s,l=""+t._i,u=l.length,c=0;for(r=P(t._f,t._locale).match(O)||[],e=0;e<r.length;e++)o=r[e],(i=(l.match(ft(o,t))||[])[0])&&((a=l.substr(0,l.indexOf(i))).length>0&&f(t).unusedInput.push(a),l=l.slice(l.indexOf(i)+i.length),c+=i.length),j[o]?(i?f(t).empty=!1:f(t).unusedTokens.push(o),yt(o,i,t)):t._strict&&!i&&f(t).unusedTokens.push(o);f(t).charsLeftOver=u-c,l.length>0&&f(t).unusedInput.push(l),t._a[Dt]<=12&&!0===f(t).bigHour&&t._a[Dt]>0&&(f(t).bigHour=void 0),f(t).parsedDateParts=t._a.slice(0),f(t).meridiem=t._meridiem,t._a[Dt]=function(t,e,n){var i;if(null==n)return e;return null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[Dt],t._meridiem),null!==(s=f(t).era)&&(t._a[wt]=t._locale.erasConvertYear(s,t._a[wt])),Te(t),fe(t)}else ke(t);else xe(t)}function $e(t){var e=t._i,o=t._f;return t._locale=t._locale||he(t._l),null===e||void 0===o&&""===e?m({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),w(e)?new b(fe(e)):(u(e)?t._d=e:i(o)?function(t){var e,n,i,r,o,a,s=!1;if(0===t._f.length)return f(t).invalidFormat=!0,void(t._d=new Date(NaN));for(r=0;r<t._f.length;r++)o=0,a=!1,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Se(e),p(e)&&(a=!0),o+=f(e).charsLeftOver,o+=10*f(e).unusedTokens.length,f(e).score=o,s?o<i&&(i=o,n=e):(null==i||o<i||a)&&(i=o,n=e,a&&(s=!0));d(t,n||e)}(t):o?Se(t):function(t){var e=t._i;s(e)?t._d=new Date(n.now()):u(e)?t._d=new Date(e.valueOf()):"string"==typeof e?function(t){var e=be.exec(t._i);null===e?(xe(t),!1===t._isValid&&(delete t._isValid,ke(t),!1===t._isValid&&(delete t._isValid,t._strict?t._isValid=!1:n.createFromInputFallback(t)))):t._d=new Date(+e[1])}(t):i(e)?(t._a=c(e.slice(0),function(t){return parseInt(t,10)}),Te(t)):r(e)?function(t){if(!t._d){var e=H(t._i),n=void 0===e.day?e.date:e.day;t._a=c([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),Te(t)}}(t):l(e)?t._d=new Date(e):n.createFromInputFallback(t)}(t),p(t)||(t._d=null),t))}function Ee(t,e,n,o,s){var l,u={};return!0!==e&&!1!==e||(o=e,e=void 0),!0!==n&&!1!==n||(o=n,n=void 0),(r(t)&&a(t)||i(t)&&0===t.length)&&(t=void 0),u._isAMomentObject=!0,u._useUTC=u._isUTC=s,u._l=n,u._i=t,u._f=e,u._strict=o,(l=new b(fe($e(u))))._nextDay&&(l.add(1,"d"),l._nextDay=void 0),l}function Oe(t,e,n,i){return Ee(t,e,n,i,!1)}n.createFromInputFallback=x("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),n.ISO_8601=function(){},n.RFC_2822=function(){};var Me=x("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:m()}),Ae=x("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Oe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:m()});function je(t,e){var n,r;if(1===e.length&&i(e[0])&&(e=e[0]),!e.length)return Oe();for(n=e[0],r=1;r<e.length;++r)e[r].isValid()&&!e[r][t](n)||(n=e[r]);return n}var Ne=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Ie(t){var e=H(t),n=e.year||0,i=e.quarter||0,r=e.month||0,a=e.week||e.isoWeek||0,s=e.day||0,l=e.hour||0,u=e.minute||0,c=e.second||0,d=e.millisecond||0;this._isValid=function(t){var e,n,i=!1;for(e in t)if(o(t,e)&&(-1===bt.call(Ne,e)||null!=t[e]&&isNaN(t[e])))return!1;for(n=0;n<Ne.length;++n)if(t[Ne[n]]){if(i)return!1;parseFloat(t[Ne[n]])!==B(t[Ne[n]])&&(i=!0)}return!0}(e),this._milliseconds=+d+1e3*c+6e4*u+1e3*l*60*60,this._days=+s+7*a,this._months=+r+3*i+12*n,this._data={},this._locale=he(),this._bubble()}function Pe(t){return t instanceof Ie}function Le(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function Re(t,e){N(t,0,0,function(){var t=this.utcOffset(),n="+";return t<0&&(t=-t,n="-"),n+E(~~(t/60),2)+e+E(~~t%60,2)})}Re("Z",":"),Re("ZZ",""),ht("Z",ct),ht("ZZ",ct),gt(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=He(ct,t)});var Ye=/([\+\-]|\d\d)/gi;function He(t,e){var n,i,r=(e||"").match(t);return null===r?null:0===(i=60*(n=((r[r.length-1]||[])+"").match(Ye)||["-",0,0])[1]+B(n[2]))?0:"+"===n[0]?i:-i}function Fe(t,e){var i,r;return e._isUTC?(i=e.clone(),r=(w(t)||u(t)?t.valueOf():Oe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+r),n.updateOffset(i,!1),i):Oe(t).local()}function Ue(t){return-Math.round(t._d.getTimezoneOffset())}function We(){return!!this.isValid()&&(this._isUTC&&0===this._offset)}n.updateOffset=function(){};var qe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Be=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function ze(t,e){var n,i,r,a=t,s=null;return Pe(t)?a={ms:t._milliseconds,d:t._days,M:t._months}:l(t)||!isNaN(+t)?(a={},e?a[e]=+t:a.milliseconds=+t):(s=qe.exec(t))?(n="-"===s[1]?-1:1,a={y:0,d:B(s[xt])*n,h:B(s[Dt])*n,m:B(s[kt])*n,s:B(s[Ct])*n,ms:B(Le(1e3*s[Tt]))*n}):(s=Be.exec(t))?(n="-"===s[1]?-1:1,a={y:Ve(s[2],n),M:Ve(s[3],n),w:Ve(s[4],n),d:Ve(s[5],n),h:Ve(s[6],n),m:Ve(s[7],n),s:Ve(s[8],n)}):null==a?a={}:"object"==typeof a&&("from"in a||"to"in a)&&(r=function(t,e){var n;if(!t.isValid()||!e.isValid())return{milliseconds:0,months:0};e=Fe(e,t),t.isBefore(e)?n=Ge(t,e):((n=Ge(e,t)).milliseconds=-n.milliseconds,n.months=-n.months);return n}(Oe(a.from),Oe(a.to)),(a={}).ms=r.milliseconds,a.M=r.months),i=new Ie(a),Pe(t)&&o(t,"_locale")&&(i._locale=t._locale),Pe(t)&&o(t,"_isValid")&&(i._isValid=t._isValid),i}function Ve(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Ge(t,e){var n={};return n.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function Ze(t,e){return function(n,i){var r;return null===i||isNaN(+i)||(C(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=n,n=i,i=r),Qe(this,ze(n,i),t),this}}function Qe(t,e,i,r){var o=e._milliseconds,a=Le(e._days),s=Le(e._months);t.isValid()&&(r=null==r||r,s&&It(t,V(t,"Month")+s*i),a&&G(t,"Date",V(t,"Date")+a*i),o&&t._d.setTime(t._d.valueOf()+o*i),r&&n.updateOffset(t,a||s))}ze.fn=Ie.prototype,ze.invalid=function(){return ze(NaN)};var Ke=Ze(1,"add"),Je=Ze(-1,"subtract");function Xe(t){return"string"==typeof t||t instanceof String}function tn(t){return w(t)||u(t)||Xe(t)||l(t)||function(t){var e=i(t),n=!1;e&&(n=0===t.filter(function(e){return!l(e)&&Xe(t)}).length);return e&&n}(t)||function(t){var e,n,i=r(t)&&!a(t),s=!1,l=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"];for(e=0;e<l.length;e+=1)n=l[e],s=s||o(t,n);return i&&s}(t)||null==t}function en(t,e){if(t.date()<e.date())return-en(e,t);var n=12*(e.year()-t.year())+(e.month()-t.month()),i=t.clone().add(n,"months");return-(n+(e-i<0?(e-i)/(i-t.clone().add(n-1,"months")):(e-i)/(t.clone().add(n+1,"months")-i)))||0}function nn(t){var e;return void 0===t?this._locale._abbr:(null!=(e=he(t))&&(this._locale=e),this)}n.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",n.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var rn=x("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function on(){return this._locale}var an=1e3,sn=60*an,ln=60*sn,un=3506328*ln;function cn(t,e){return(t%e+e)%e}function dn(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-un:new Date(t,e,n).valueOf()}function hn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-un:Date.UTC(t,e,n)}function fn(t,e){return e.erasAbbrRegex(t)}function pn(){var t,e,n=[],i=[],r=[],o=[],a=this.eras();for(t=0,e=a.length;t<e;++t)i.push(pt(a[t].name)),n.push(pt(a[t].abbr)),r.push(pt(a[t].narrow)),o.push(pt(a[t].name)),o.push(pt(a[t].abbr)),o.push(pt(a[t].narrow));this._erasRegex=new RegExp("^("+o.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+i.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+n.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+r.join("|")+")","i")}function mn(t,e){N(0,[t,t.length],0,e)}function gn(t,e,n,i,r){var o;return null==t?Wt(this,i,r).year:(e>(o=qt(t,i,r))&&(e=o),function(t,e,n,i,r){var o=Ut(t,e,n,i,r),a=Ht(o.year,0,o.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}.call(this,t,e,n,i,r))}N("N",0,0,"eraAbbr"),N("NN",0,0,"eraAbbr"),N("NNN",0,0,"eraAbbr"),N("NNNN",0,0,"eraName"),N("NNNNN",0,0,"eraNarrow"),N("y",["y",1],"yo","eraYear"),N("y",["yy",2],0,"eraYear"),N("y",["yyy",3],0,"eraYear"),N("y",["yyyy",4],0,"eraYear"),ht("N",fn),ht("NN",fn),ht("NNN",fn),ht("NNNN",function(t,e){return e.erasNameRegex(t)}),ht("NNNNN",function(t,e){return e.erasNarrowRegex(t)}),gt(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,i){var r=n._locale.erasParse(t,i,n._strict);r?f(n).era=r:f(n).invalidEra=t}),ht("y",st),ht("yy",st),ht("yyy",st),ht("yyyy",st),ht("yo",function(t,e){return e._eraYearOrdinalRegex||st}),gt(["y","yy","yyy","yyyy"],wt),gt(["yo"],function(t,e,n,i){var r;n._locale._eraYearOrdinalRegex&&(r=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[wt]=n._locale.eraYearOrdinalParse(t,r):e[wt]=parseInt(t,10)}),N(0,["gg",2],0,function(){return this.weekYear()%100}),N(0,["GG",2],0,function(){return this.isoWeekYear()%100}),mn("gggg","weekYear"),mn("ggggg","weekYear"),mn("GGGG","isoWeekYear"),mn("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),U("weekYear",1),U("isoWeekYear",1),ht("G",lt),ht("g",lt),ht("GG",et,K),ht("gg",et,K),ht("GGGG",ot,X),ht("gggg",ot,X),ht("GGGGG",at,tt),ht("ggggg",at,tt),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,i){e[i.substr(0,2)]=B(t)}),vt(["gg","GG"],function(t,e,i,r){e[r]=n.parseTwoDigitYear(t)}),N("Q",0,"Qo","quarter"),R("quarter","Q"),U("quarter",7),ht("Q",Q),gt("Q",function(t,e){e[_t]=3*(B(t)-1)}),N("D",["DD",2],"Do","date"),R("date","D"),U("date",9),ht("D",et),ht("DD",et,K),ht("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),gt(["D","DD"],xt),gt("Do",function(t,e){e[xt]=B(t.match(et)[0])});var vn=z("Date",!0);N("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),U("dayOfYear",4),ht("DDD",rt),ht("DDDD",J),gt(["DDD","DDDD"],function(t,e,n){n._dayOfYear=B(t)}),N("m",["mm",2],0,"minute"),R("minute","m"),U("minute",14),ht("m",et),ht("mm",et,K),gt(["m","mm"],kt);var yn=z("Minutes",!1);N("s",["ss",2],0,"second"),R("second","s"),U("second",15),ht("s",et),ht("ss",et,K),gt(["s","ss"],Ct);var bn,wn,_n=z("Seconds",!1);for(N("S",0,0,function(){return~~(this.millisecond()/100)}),N(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),N(0,["SSS",3],0,"millisecond"),N(0,["SSSS",4],0,function(){return 10*this.millisecond()}),N(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),N(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),N(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),N(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),N(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),U("millisecond",16),ht("S",rt,Q),ht("SS",rt,K),ht("SSS",rt,J),bn="SSSS";bn.length<=9;bn+="S")ht(bn,st);function xn(t,e){e[Tt]=B(1e3*("0."+t))}for(bn="S";bn.length<=9;bn+="S")gt(bn,xn);wn=z("Milliseconds",!1),N("z",0,0,"zoneAbbr"),N("zz",0,0,"zoneName");var Dn=b.prototype;function kn(t){return t}Dn.add=Ke,Dn.calendar=function(t,e){1===arguments.length&&(arguments[0]?tn(arguments[0])?(t=arguments[0],e=void 0):function(t){var e,n=r(t)&&!a(t),i=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(e=0;e<s.length;e+=1)i=i||o(t,s[e]);return n&&i}(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var i=t||Oe(),s=Fe(i,this).startOf("day"),l=n.calendarFormat(this,s)||"sameElse",u=e&&(T(e[l])?e[l].call(this,i):e[l]);return this.format(u||this.localeData().calendar(l,this,Oe(i)))},Dn.clone=function(){return new b(this)},Dn.diff=function(t,e,n){var i,r,o;if(!this.isValid())return NaN;if(!(i=Fe(t,this)).isValid())return NaN;switch(r=6e4*(i.utcOffset()-this.utcOffset()),e=Y(e)){case"year":o=en(this,i)/12;break;case"month":o=en(this,i);break;case"quarter":o=en(this,i)/3;break;case"second":o=(this-i)/1e3;break;case"minute":o=(this-i)/6e4;break;case"hour":o=(this-i)/36e5;break;case"day":o=(this-i-r)/864e5;break;case"week":o=(this-i-r)/6048e5;break;default:o=this-i}return n?o:q(o)},Dn.endOf=function(t){var e,i;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?hn:dn,t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=ln-cn(e+(this._isUTC?0:this.utcOffset()*sn),ln)-1;break;case"minute":e=this._d.valueOf(),e+=sn-cn(e,sn)-1;break;case"second":e=this._d.valueOf(),e+=an-cn(e,an)-1}return this._d.setTime(e),n.updateOffset(this,!0),this},Dn.format=function(t){t||(t=this.isUtc()?n.defaultFormatUtc:n.defaultFormat);var e=I(this,t);return this.localeData().postformat(e)},Dn.from=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Oe(t).isValid())?ze({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Dn.fromNow=function(t){return this.from(Oe(),t)},Dn.to=function(t,e){return this.isValid()&&(w(t)&&t.isValid()||Oe(t).isValid())?ze({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},Dn.toNow=function(t){return this.to(Oe(),t)},Dn.get=function(t){return T(this[t=Y(t)])?this[t]():this},Dn.invalidAt=function(){return f(this).overflow},Dn.isAfter=function(t,e){var n=w(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf())},Dn.isBefore=function(t,e){var n=w(t)?t:Oe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf())},Dn.isBetween=function(t,e,n,i){var r=w(t)?t:Oe(t),o=w(e)?e:Oe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(i=i||"()")[0]?this.isAfter(r,n):!this.isBefore(r,n))&&(")"===i[1]?this.isBefore(o,n):!this.isAfter(o,n))},Dn.isSame=function(t,e){var n,i=w(t)?t:Oe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=Y(e)||"millisecond")?this.valueOf()===i.valueOf():(n=i.valueOf(),this.clone().startOf(e).valueOf()<=n&&n<=this.clone().endOf(e).valueOf()))},Dn.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},Dn.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},Dn.isValid=function(){return p(this)},Dn.lang=rn,Dn.locale=nn,Dn.localeData=on,Dn.max=Ae,Dn.min=Me,Dn.parsingFlags=function(){return d({},f(this))},Dn.set=function(t,e){if("object"==typeof t){var n,i=function(t){var e,n=[];for(e in t)o(t,e)&&n.push({unit:e,priority:F[e]});return n.sort(function(t,e){return t.priority-e.priority}),n}(t=H(t));for(n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit])}else if(T(this[t=Y(t)]))return this[t](e);return this},Dn.startOf=function(t){var e,i;if(void 0===(t=Y(t))||"millisecond"===t||!this.isValid())return this;switch(i=this._isUTC?hn:dn,t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=cn(e+(this._isUTC?0:this.utcOffset()*sn),ln);break;case"minute":e=this._d.valueOf(),e-=cn(e,sn);break;case"second":e=this._d.valueOf(),e-=cn(e,an)}return this._d.setTime(e),n.updateOffset(this,!0),this},Dn.subtract=Je,Dn.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},Dn.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},Dn.toDate=function(){return new Date(this.valueOf())},Dn.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?I(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):T(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",I(n,"Z")):I(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},Dn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",r="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=r+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(Dn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Dn.toJSON=function(){return this.isValid()?this.toISOString():null},Dn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},Dn.unix=function(){return Math.floor(this.valueOf()/1e3)},Dn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},Dn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},Dn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].name;if(i[t].until<=n&&n<=i[t].since)return i[t].name}return""},Dn.eraNarrow=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].narrow;if(i[t].until<=n&&n<=i[t].since)return i[t].narrow}return""},Dn.eraAbbr=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;t<e;++t){if(n=this.clone().startOf("day").valueOf(),i[t].since<=n&&n<=i[t].until)return i[t].abbr;if(i[t].until<=n&&n<=i[t].since)return i[t].abbr}return""},Dn.eraYear=function(){var t,e,i,r,o=this.localeData().eras();for(t=0,e=o.length;t<e;++t)if(i=o[t].since<=o[t].until?1:-1,r=this.clone().startOf("day").valueOf(),o[t].since<=r&&r<=o[t].until||o[t].until<=r&&r<=o[t].since)return(this.year()-n(o[t].since).year())*i+o[t].offset;return this.year()},Dn.year=Yt,Dn.isLeapYear=function(){return W(this.year())},Dn.weekYear=function(t){return gn.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},Dn.isoWeekYear=function(t){return gn.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},Dn.quarter=Dn.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},Dn.month=Pt,Dn.daysInMonth=function(){return Et(this.year(),this.month())},Dn.week=Dn.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},Dn.isoWeek=Dn.isoWeeks=function(t){var e=Wt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},Dn.weeksInYear=function(){var t=this.localeData()._week;return qt(this.year(),t.dow,t.doy)},Dn.weeksInWeekYear=function(){var t=this.localeData()._week;return qt(this.weekYear(),t.dow,t.doy)},Dn.isoWeeksInYear=function(){return qt(this.year(),1,4)},Dn.isoWeeksInISOWeekYear=function(){return qt(this.isoWeekYear(),1,4)},Dn.date=vn,Dn.day=Dn.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(t=function(t,e){return"string"!=typeof t?t:isNaN(t)?"number"==typeof(t=e.weekdaysParse(t))?t:null:parseInt(t,10)}(t,this.localeData()),this.add(t-e,"d")):e},Dn.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},Dn.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null!=t){var e=function(t,e){return"string"==typeof t?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}(t,this.localeData());return this.day(this.day()%7?e:e-7)}return this.day()||7},Dn.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},Dn.hour=Dn.hours=ne,Dn.minute=Dn.minutes=yn,Dn.second=Dn.seconds=_n,Dn.millisecond=Dn.milliseconds=wn,Dn.utcOffset=function(t,e,i){var r,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null!=t){if("string"==typeof t){if(null===(t=He(ct,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(r=Ue(this)),this._offset=t,this._isUTC=!0,null!=r&&this.add(r,"m"),o!==t&&(!e||this._changeInProgress?Qe(this,ze(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,n.updateOffset(this,!0),this._changeInProgress=null)),this}return this._isUTC?o:Ue(this)},Dn.utc=function(t){return this.utcOffset(0,t)},Dn.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(Ue(this),"m")),this},Dn.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=He(ut,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},Dn.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Oe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},Dn.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},Dn.isLocal=function(){return!!this.isValid()&&!this._isUTC},Dn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},Dn.isUtc=We,Dn.isUTC=We,Dn.zoneAbbr=function(){return this._isUTC?"UTC":""},Dn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},Dn.dates=x("dates accessor is deprecated. Use date instead.",vn),Dn.months=x("months accessor is deprecated. Use month instead",Pt),Dn.years=x("years accessor is deprecated. Use year instead",Yt),Dn.zone=x("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),Dn.isDSTShifted=x("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!s(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=$e(e))._a?(t=e._isUTC?h(e._a):Oe(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),a=0;for(i=0;i<r;i++)(n&&t[i]!==e[i]||!n&&B(t[i])!==B(e[i]))&&a++;return a+o}(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var Cn=$.prototype;function Tn(t,e,n,i){var r=he(),o=h().set(i,e);return r[n](o,t)}function Sn(t,e,n){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return Tn(t,e,n,"month");var i,r=[];for(i=0;i<12;i++)r[i]=Tn(t,i,n,"month");return r}function $n(t,e,n,i){"boolean"==typeof t?(l(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,l(e)&&(n=e,e=void 0),e=e||"");var r,o=he(),a=t?o._week.dow:0,s=[];if(null!=n)return Tn(e,(n+a)%7,i,"day");for(r=0;r<7;r++)s[r]=Tn(e,(r+a)%7,i,"day");return s}Cn.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return T(i)?i.call(e,n):i},Cn.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(O).map(function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t}).join(""),this._longDateFormat[t])},Cn.invalidDate=function(){return this._invalidDate},Cn.ordinal=function(t){return this._ordinal.replace("%d",t)},Cn.preparse=kn,Cn.postformat=kn,Cn.relativeTime=function(t,e,n,i){var r=this._relativeTime[n];return T(r)?r(t,e,n,i):r.replace(/%d/i,t)},Cn.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return T(n)?n(e):n.replace(/%s/i,e)},Cn.set=function(t){var e,n;for(n in t)o(t,n)&&(T(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},Cn.eras=function(t,e){var i,r,o,a=this._eras||he("en")._eras;for(i=0,r=a.length;i<r;++i){switch(typeof a[i].since){case"string":o=n(a[i].since).startOf("day"),a[i].since=o.valueOf()}switch(typeof a[i].until){case"undefined":a[i].until=1/0;break;case"string":o=n(a[i].until).startOf("day").valueOf(),a[i].until=o.valueOf()}}return a},Cn.erasParse=function(t,e,n){var i,r,o,a,s,l=this.eras();for(t=t.toUpperCase(),i=0,r=l.length;i<r;++i)if(o=l[i].name.toUpperCase(),a=l[i].abbr.toUpperCase(),s=l[i].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(a===t)return l[i];break;case"NNNN":if(o===t)return l[i];break;case"NNNNN":if(s===t)return l[i]}else if([o,a,s].indexOf(t)>=0)return l[i]},Cn.erasConvertYear=function(t,e){var i=t.since<=t.until?1:-1;return void 0===e?n(t.since).year():n(t.since).year()+(e-t.offset)*i},Cn.erasAbbrRegex=function(t){return o(this,"_erasAbbrRegex")||pn.call(this),t?this._erasAbbrRegex:this._erasRegex},Cn.erasNameRegex=function(t){return o(this,"_erasNameRegex")||pn.call(this),t?this._erasNameRegex:this._erasRegex},Cn.erasNarrowRegex=function(t){return o(this,"_erasNarrowRegex")||pn.call(this),t?this._erasNarrowRegex:this._erasRegex},Cn.months=function(t,e){return t?i(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]:i(this._months)?this._months:this._months.standalone},Cn.monthsShort=function(t,e){return t?i(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},Cn.monthsParse=function(t,e,n){var i,r,o;if(this._monthsParseExact)return function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],i=0;i<12;++i)o=h([2e3,i]),this._shortMonthsParse[i]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[i]=this.months(o,"").toLocaleLowerCase();return n?"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,a))?r:null:-1!==(r=bt.call(this._longMonthsParse,a))?r:null:"MMM"===e?-1!==(r=bt.call(this._shortMonthsParse,a))?r:-1!==(r=bt.call(this._longMonthsParse,a))?r:null:-1!==(r=bt.call(this._longMonthsParse,a))?r:-1!==(r=bt.call(this._shortMonthsParse,a))?r:null}.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(r=h([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"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},Cn.monthsRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Lt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(o(this,"_monthsRegex")||(this._monthsRegex=Nt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},Cn.monthsShortRegex=function(t){return this._monthsParseExact?(o(this,"_monthsRegex")||Lt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(o(this,"_monthsShortRegex")||(this._monthsShortRegex=jt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},Cn.week=function(t){return Wt(t,this._week.dow,this._week.doy).week},Cn.firstDayOfYear=function(){return this._week.doy},Cn.firstDayOfWeek=function(){return this._week.dow},Cn.weekdays=function(t,e){var n=i(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Bt(n,this._week.dow):t?n[t.day()]:n},Cn.weekdaysMin=function(t){return!0===t?Bt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},Cn.weekdaysShort=function(t){return!0===t?Bt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},Cn.weekdaysParse=function(t,e,n){var i,r,o;if(this._weekdaysParseExact)return function(t,e,n){var i,r,o,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)o=h([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(o,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,a))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:"dddd"===e?-1!==(r=bt.call(this._weekdaysParse,a))?r:-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:"ddd"===e?-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:-1!==(r=bt.call(this._weekdaysParse,a))?r:-1!==(r=bt.call(this._minWeekdaysParse,a))?r:null:-1!==(r=bt.call(this._minWeekdaysParse,a))?r:-1!==(r=bt.call(this._weekdaysParse,a))?r:-1!==(r=bt.call(this._shortWeekdaysParse,a))?r:null}.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(r=h([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[i]=new RegExp(o.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},Cn.weekdaysRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(o(this,"_weekdaysRegex")||(this._weekdaysRegex=Zt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},Cn.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(o(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Qt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},Cn.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(o(this,"_weekdaysRegex")||Jt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(o(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Kt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},Cn.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},Cn.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},ce("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===B(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),n.lang=x("moment.lang is deprecated. Use moment.locale instead.",ce),n.langData=x("moment.langData is deprecated. Use moment.localeData instead.",he);var En=Math.abs;function On(t,e,n,i){var r=ze(e,n);return t._milliseconds+=i*r._milliseconds,t._days+=i*r._days,t._months+=i*r._months,t._bubble()}function Mn(t){return t<0?Math.floor(t):Math.ceil(t)}function An(t){return 4800*t/146097}function jn(t){return 146097*t/4800}function Nn(t){return function(){return this.as(t)}}var In=Nn("ms"),Pn=Nn("s"),Ln=Nn("m"),Rn=Nn("h"),Yn=Nn("d"),Hn=Nn("w"),Fn=Nn("M"),Un=Nn("Q"),Wn=Nn("y");function qn(t){return function(){return this.isValid()?this._data[t]:NaN}}var Bn=qn("milliseconds"),zn=qn("seconds"),Vn=qn("minutes"),Gn=qn("hours"),Zn=qn("days"),Qn=qn("months"),Kn=qn("years");var Jn=Math.round,Xn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};var ti=Math.abs;function ei(t){return(t>0)-(t<0)||+t}function ni(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,r,o,a,s,l=ti(this._milliseconds)/1e3,u=ti(this._days),c=ti(this._months),d=this.asSeconds();return d?(t=q(l/60),e=q(t/60),l%=60,t%=60,n=q(c/12),c%=12,i=l?l.toFixed(3).replace(/\.?0+$/,""):"",r=d<0?"-":"",o=ei(this._months)!==ei(d)?"-":"",a=ei(this._days)!==ei(d)?"-":"",s=ei(this._milliseconds)!==ei(d)?"-":"",r+"P"+(n?o+n+"Y":"")+(c?o+c+"M":"")+(u?a+u+"D":"")+(e||t||l?"T":"")+(e?s+e+"H":"")+(t?s+t+"M":"")+(l?s+i+"S":"")):"P0D"}var ii=Ie.prototype;return ii.isValid=function(){return this._isValid},ii.abs=function(){var t=this._data;return this._milliseconds=En(this._milliseconds),this._days=En(this._days),this._months=En(this._months),t.milliseconds=En(t.milliseconds),t.seconds=En(t.seconds),t.minutes=En(t.minutes),t.hours=En(t.hours),t.months=En(t.months),t.years=En(t.years),this},ii.add=function(t,e){return On(this,t,e,1)},ii.subtract=function(t,e){return On(this,t,e,-1)},ii.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=Y(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+An(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(jn(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},ii.asMilliseconds=In,ii.asSeconds=Pn,ii.asMinutes=Ln,ii.asHours=Rn,ii.asDays=Yn,ii.asWeeks=Hn,ii.asMonths=Fn,ii.asQuarters=Un,ii.asYears=Wn,ii.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*B(this._months/12):NaN},ii._bubble=function(){var t,e,n,i,r,o=this._milliseconds,a=this._days,s=this._months,l=this._data;return o>=0&&a>=0&&s>=0||o<=0&&a<=0&&s<=0||(o+=864e5*Mn(jn(s)+a),a=0,s=0),l.milliseconds=o%1e3,t=q(o/1e3),l.seconds=t%60,e=q(t/60),l.minutes=e%60,n=q(e/60),l.hours=n%24,a+=q(n/24),s+=r=q(An(a)),a-=Mn(jn(r)),i=q(s/12),s%=12,l.days=a,l.months=s,l.years=i,this},ii.clone=function(){return ze(this)},ii.get=function(t){return t=Y(t),this.isValid()?this[t+"s"]():NaN},ii.milliseconds=Bn,ii.seconds=zn,ii.minutes=Vn,ii.hours=Gn,ii.days=Zn,ii.weeks=function(){return q(this.days()/7)},ii.months=Qn,ii.years=Kn,ii.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,r=!1,o=Xn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(r=t),"object"==typeof e&&(o=Object.assign({},Xn,e),null!=e.s&&null==e.ss&&(o.ss=e.s-1)),i=function(t,e,n,i){var r=ze(t).abs(),o=Jn(r.as("s")),a=Jn(r.as("m")),s=Jn(r.as("h")),l=Jn(r.as("d")),u=Jn(r.as("M")),c=Jn(r.as("w")),d=Jn(r.as("y")),h=o<=n.ss&&["s",o]||o<n.s&&["ss",o]||a<=1&&["m"]||a<n.m&&["mm",a]||s<=1&&["h"]||s<n.h&&["hh",s]||l<=1&&["d"]||l<n.d&&["dd",l];return null!=n.w&&(h=h||c<=1&&["w"]||c<n.w&&["ww",c]),(h=h||u<=1&&["M"]||u<n.M&&["MM",u]||d<=1&&["y"]||["yy",d])[2]=e,h[3]=+t>0,h[4]=i,function(t,e,n,i,r){return r.relativeTime(e||1,!!n,t,i)}.apply(null,h)}(this,!r,o,n=this.localeData()),r&&(i=n.pastFuture(+this,i)),n.postformat(i)},ii.toISOString=ni,ii.toString=ni,ii.toJSON=ni,ii.locale=nn,ii.localeData=on,ii.toIsoString=x("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",ni),ii.lang=rn,N("X",0,0,"unix"),N("x",0,0,"valueOf"),ht("x",lt),ht("X",/[+-]?\d+(\.\d{1,3})?/),gt("X",function(t,e,n){n._d=new Date(1e3*parseFloat(t))}),gt("x",function(t,e,n){n._d=new Date(B(t))}),n.version="2.29.1",t=Oe,n.fn=Dn,n.min=function(){return je("isBefore",[].slice.call(arguments,0))},n.max=function(){return je("isAfter",[].slice.call(arguments,0))},n.now=function(){return Date.now?Date.now():+new Date},n.utc=h,n.unix=function(t){return Oe(1e3*t)},n.months=function(t,e){return Sn(t,e,"months")},n.isDate=u,n.locale=ce,n.invalid=m,n.duration=ze,n.isMoment=w,n.weekdays=function(t,e,n){return $n(t,e,n,"weekdays")},n.parseZone=function(){return Oe.apply(null,arguments).parseZone()},n.localeData=he,n.isDuration=Pe,n.monthsShort=function(t,e){return Sn(t,e,"monthsShort")},n.weekdaysMin=function(t,e,n){return $n(t,e,n,"weekdaysMin")},n.defineLocale=de,n.updateLocale=function(t,e){if(null!=e){var n,i,r=re;null!=oe[t]&&null!=oe[t].parentLocale?oe[t].set(S(oe[t]._config,e)):(null!=(i=ue(t))&&(r=i._config),e=S(r,e),null==i&&(e.abbr=t),(n=new $(e)).parentLocale=oe[t],oe[t]=n),ce(t)}else null!=oe[t]&&(null!=oe[t].parentLocale?(oe[t]=oe[t].parentLocale,t===ce()&&ce(t)):null!=oe[t]&&delete oe[t]);return oe[t]},n.locales=function(){return D(oe)},n.weekdaysShort=function(t,e,n){return $n(t,e,n,"weekdaysShort")},n.normalizeUnits=Y,n.relativeTimeRounding=function(t){return void 0===t?Jn:"function"==typeof t&&(Jn=t,!0)},n.relativeTimeThreshold=function(t,e){return void 0!==Xn[t]&&(void 0===e?Xn[t]:(Xn[t]=e,"s"===t&&(Xn.ss=e-1),!0))},n.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},n.prototype=Dn,n.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},n}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");!function(t){"use strict";var e=jQuery.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t){"use strict";var e='[data-dismiss="alert"]',n=function(n){t(n).on("click",e,this.close)};n.VERSION="3.4.1",n.TRANSITION_DURATION=150,n.prototype.close=function(e){var i=t(this),r=i.attr("data-target");r||(r=(r=i.attr("href"))&&r.replace(/.*(?=#[^\s]*$)/,"")),r="#"===r?[]:r;var o=t(document).find(r);function a(){o.detach().trigger("closed.bs.alert").remove()}e&&e.preventDefault(),o.length||(o=i.closest(".alert")),o.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(o.removeClass("in"),t.support.transition&&o.hasClass("fade")?o.one("bsTransitionEnd",a).emulateTransitionEnd(n.TRANSITION_DURATION):a())};var i=t.fn.alert;t.fn.alert=function(e){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new n(this)),"string"==typeof e&&r[e].call(i)})},t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",e,n.prototype.close)}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.button"),o="object"==typeof n&&n;r||i.data("bs.button",r=new e(this,o)),"toggle"==n?r.toggle():n&&r.setState(n)})}e.VERSION="3.4.1",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var n="disabled",i=this.$element,r=i.is("input")?"val":"html",o=i.data();e+="Text",null==o.resetText&&i.data("resetText",i[r]()),setTimeout(t.proxy(function(){i[r](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,i.addClass(n).attr(n,n).prop(n,!0)):this.isLoading&&(this.isLoading=!1,i.removeClass(n).removeAttr(n).prop(n,!1))},this),0)},e.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var n=this.$element.find("input");"radio"==n.prop("type")?(n.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==n.prop("type")&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var i=t.fn.button;t.fn.button=n,t.fn.button.Constructor=e,t.fn.button.noConflict=function(){return t.fn.button=i,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(e){var i=t(e.target).closest(".btn");n.call(i,"toggle"),t(e.target).is('input[type="radio"], input[type="checkbox"]')||(e.preventDefault(),i.is("input,button")?i.trigger("focus"):i.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.$indicators=this.$element.find(".carousel-indicators"),this.options=n,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.carousel"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n),a="string"==typeof n?n:o.slide;r||i.data("bs.carousel",r=new e(this,o)),"number"==typeof n?r.to(n):a?r[a]():o.interval&&r.pause().cycle()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=600,e.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},e.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},e.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},e.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},e.prototype.getItemForDirection=function(t,e){var n=this.getItemIndex(e);if(("prev"==t&&0===n||"next"==t&&n==this.$items.length-1)&&!this.options.wrap)return e;var i=(n+("prev"==t?-1:1))%this.$items.length;return this.$items.eq(i)},e.prototype.to=function(t){var e=this,n=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1||t<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):n==t?this.pause().cycle():this.slide(t>n?"next":"prev",this.$items.eq(t))},e.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},e.prototype.next=function(){if(!this.sliding)return this.slide("next")},e.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},e.prototype.slide=function(n,i){var r=this.$element.find(".item.active"),o=i||this.getItemForDirection(n,r),a=this.interval,s="next"==n?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var u=o[0],c=t.Event("slide.bs.carousel",{relatedTarget:u,direction:s});if(this.$element.trigger(c),!c.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var d=t(this.$indicators.children()[this.getItemIndex(o)]);d&&d.addClass("active")}var h=t.Event("slid.bs.carousel",{relatedTarget:u,direction:s});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(n),"object"==typeof o&&o.length&&o[0].offsetWidth,r.addClass(s),o.addClass(s),r.one("bsTransitionEnd",function(){o.removeClass([n,s].join(" ")).addClass("active"),r.removeClass(["active",s].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(r.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(h)),a&&this.cycle(),this}};var i=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=i,this};var r=function(e){var i=t(this),r=i.attr("href");r&&(r=r.replace(/.*(?=#[^\s]+$)/,""));var o=i.attr("data-target")||r,a=t(document).find(o);if(a.hasClass("carousel")){var s=t.extend({},a.data(),i.data()),l=i.attr("data-slide-to");l&&(s.interval=!1),n.call(a,s),l&&a.data("bs.carousel").to(l),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function i(n){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!r&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),r||i.data("bs.collapse",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(n=r.data("bs.collapse"))&&n.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),n||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var r=t(i);this.addAriaAndCollapsedClass(n(r),r)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var o=n(r),a=o.data("bs.collapse")?"toggle":r.data();i.call(o,a)})}(jQuery),function(t){"use strict";var e=".dropdown-backdrop",n='[data-toggle="dropdown"]',i=function(e){t(e).on("click.bs.dropdown",this.toggle)};function r(e){var n=e.attr("data-target");n||(n=(n=e.attr("href"))&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i="#"!==n?t(document).find(n):null;return i&&i.length?i:e.parent()}function o(i){i&&3===i.which||(t(e).remove(),t(n).each(function(){var e=t(this),n=r(e),o={relatedTarget:this};n.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(n[0],i.target)||(n.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(e.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))}i.VERSION="3.4.1",i.prototype.toggle=function(e){var n=t(this);if(!n.is(".disabled, :disabled")){var i=r(n),a=i.hasClass("open");if(o(),!a){"ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",o);var s={relatedTarget:this};if(i.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;n.trigger("focus").attr("aria-expanded","true"),i.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))}return!1}},i.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var i=t(this);if(e.preventDefault(),e.stopPropagation(),!i.is(".disabled, :disabled")){var o=r(i),a=o.hasClass("open");if(!a&&27!=e.which||a&&27==e.which)return 27==e.which&&o.find(n).trigger("focus"),i.trigger("click");var s=o.find(".dropdown-menu li:not(.disabled):visible a");if(s.length){var l=s.index(e.target);38==e.which&&l>0&&l--,40==e.which&&l<s.length-1&&l++,~l||(l=0),s.eq(l).trigger("focus")}}}};var a=t.fn.dropdown;t.fn.dropdown=function(e){return this.each(function(){var n=t(this),r=n.data("bs.dropdown");r||n.data("bs.dropdown",r=new i(this)),"string"==typeof e&&r[e].call(n)})},t.fn.dropdown.Constructor=i,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=a,this},t(document).on("click.bs.dropdown.data-api",o).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,i.prototype.toggle).on("keydown.bs.dropdown.data-api",n,i.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",i.prototype.keydown)}(jQuery),function(t){"use strict";var e=function(e,n){this.options=n,this.$body=t(document.body),this.$element=t(e),this.$dialog=this.$element.find(".modal-dialog"),this.$backdrop=null,this.isShown=null,this.originalBodyPad=null,this.scrollbarWidth=0,this.ignoreBackdropClick=!1,this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom",this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};function n(n,i){return this.each(function(){var r=t(this),o=r.data("bs.modal"),a=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);o||r.data("bs.modal",o=new e(this,a)),"string"==typeof n?o[n](i):a.show&&o.show(i)})}e.VERSION="3.4.1",e.TRANSITION_DURATION=300,e.BACKDROP_TRANSITION_DURATION=150,e.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},e.prototype.toggle=function(t){return this.isShown?this.hide():this.show(t)},e.prototype.show=function(n){var i=this,r=t.Event("show.bs.modal",{relatedTarget:n});this.$element.trigger(r),this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.setScrollbar(),this.$body.addClass("modal-open"),this.escape(),this.resize(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',t.proxy(this.hide,this)),this.$dialog.on("mousedown.dismiss.bs.modal",function(){i.$element.one("mouseup.dismiss.bs.modal",function(e){t(e.target).is(i.$element)&&(i.ignoreBackdropClick=!0)})}),this.backdrop(function(){var r=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),r&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var o=t.Event("shown.bs.modal",{relatedTarget:n});r?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(o)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(o)}))},e.prototype.hide=function(n){n&&n.preventDefault(),n=t.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented()&&(this.isShown=!1,this.escape(),this.resize(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(e.TRANSITION_DURATION):this.hideModal())},e.prototype.enforceFocus=function(){t(document).off("focusin.bs.modal").on("focusin.bs.modal",t.proxy(function(t){document===t.target||this.$element[0]===t.target||this.$element.has(t.target).length||this.$element.trigger("focus")},this))},e.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keydown.dismiss.bs.modal",t.proxy(function(t){27==t.which&&this.hide()},this)):this.isShown||this.$element.off("keydown.dismiss.bs.modal")},e.prototype.resize=function(){this.isShown?t(window).on("resize.bs.modal",t.proxy(this.handleUpdate,this)):t(window).off("resize.bs.modal")},e.prototype.hideModal=function(){var t=this;this.$element.hide(),this.backdrop(function(){t.$body.removeClass("modal-open"),t.resetAdjustments(),t.resetScrollbar(),t.$element.trigger("hidden.bs.modal")})},e.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},e.prototype.backdrop=function(n){var i=this,r=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var o=t.support.transition&&r;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+r).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){this.ignoreBackdropClick?this.ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide())},this)),o&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;o?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var a=function(){i.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",a).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):a()}else n&&n()},e.prototype.handleUpdate=function(){this.adjustDialog()},e.prototype.adjustDialog=function(){var t=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},e.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},e.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth<t,this.scrollbarWidth=this.measureScrollbar()},e.prototype.setScrollbar=function(){var e=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"";var n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",e+n),t(this.fixedContent).each(function(e,i){var r=i.style.paddingRight,o=t(i).css("padding-right");t(i).data("padding-right",r).css("padding-right",parseFloat(o)+n+"px")}))},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad),t(this.fixedContent).each(function(e,n){var i=t(n).data("padding-right");t(n).removeData("padding-right"),n.style.paddingRight=i||""})},e.prototype.measureScrollbar=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",this.$body.append(t);var e=t.offsetWidth-t.clientWidth;return this.$body[0].removeChild(t),e};var i=t.fn.modal;t.fn.modal=n,t.fn.modal.Constructor=e,t.fn.modal.noConflict=function(){return t.fn.modal=i,this},t(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(e){var i=t(this),r=i.attr("href"),o=i.attr("data-target")||r&&r.replace(/.*(?=#[^\s]+$)/,""),a=t(document).find(o),s=a.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(r)&&r},a.data(),i.data());i.is("a")&&e.preventDefault(),a.one("show.bs.modal",function(t){t.isDefaultPrevented()||a.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(a,s,this)})}(jQuery),function(t){"use strict";var e=["sanitize","whiteList","sanitizeFn"],n=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],i={"*":["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:[]},r=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^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 a(e,i){var a=e.nodeName.toLowerCase();if(-1!==t.inArray(a,i))return-1===t.inArray(a,n)||Boolean(e.nodeValue.match(r)||e.nodeValue.match(o));for(var s=t(i).filter(function(t,e){return e instanceof RegExp}),l=0,u=s.length;l<u;l++)if(a.match(s[l]))return!0;return!1}function s(e,n,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);if(!document.implementation||!document.implementation.createHTMLDocument)return e;var r=document.implementation.createHTMLDocument("sanitization");r.body.innerHTML=e;for(var o=t.map(n,function(t,e){return e}),s=t(r.body).find("*"),l=0,u=s.length;l<u;l++){var c=s[l],d=c.nodeName.toLowerCase();if(-1!==t.inArray(d,o))for(var h=t.map(c.attributes,function(t){return t}),f=[].concat(n["*"]||[],n[d]||[]),p=0,m=h.length;p<m;p++)a(h[p],f)||c.removeAttribute(h[p].nodeName);else c.parentNode.removeChild(c)}return r.body.innerHTML}var l=function(t,e){this.type=null,this.options=null,this.enabled=null,this.timeout=null,this.hoverState=null,this.$element=null,this.inState=null,this.init("tooltip",t,e)};l.VERSION="3.4.1",l.TRANSITION_DURATION=150,l.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:i},l.prototype.init=function(e,n,i){if(this.enabled=!0,this.type=e,this.$element=t(n),this.options=this.getOptions(i),this.$viewport=this.options.viewport&&t(document).find(t.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var r=this.options.trigger.split(" "),o=r.length;o--;){var a=r[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var s="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},l.prototype.getDefaults=function(){return l.DEFAULTS},l.prototype.getOptions=function(n){var i=this.$element.data();for(var r in i)i.hasOwnProperty(r)&&-1!==t.inArray(r,e)&&delete i[r];return(n=t.extend({},this.getDefaults(),i,n)).delay&&"number"==typeof n.delay&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(n.template=s(n.template,n.whiteList,n.sanitizeFn)),n},l.prototype.getDelegateOptions=function(){var e={},n=this.getDefaults();return this._options&&t.each(this._options,function(t,i){n[t]!=i&&(e[t]=i)}),e},l.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusin"==e.type?"focus":"hover"]=!0),n.tip().hasClass("in")||"in"==n.hoverState)n.hoverState="in";else{if(clearTimeout(n.timeout),n.hoverState="in",!n.options.delay||!n.options.delay.show)return n.show();n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)}},l.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},l.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);if(n||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n)),e instanceof t.Event&&(n.inState["focusout"==e.type?"focus":"hover"]=!1),!n.isInStateTrue()){if(clearTimeout(n.timeout),n.hoverState="out",!n.options.delay||!n.options.delay.hide)return n.hide();n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)}},l.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var i=this,r=this.tip(),o=this.getUID(this.type);this.setContent(),r.attr("id",o),this.$element.attr("aria-describedby",o),this.options.animation&&r.addClass("fade");var a="function"==typeof this.options.placement?this.options.placement.call(this,r[0],this.$element[0]):this.options.placement,s=/\s?auto?\s?/i,u=s.test(a);u&&(a=a.replace(s,"")||"top"),r.detach().css({top:0,left:0,display:"block"}).addClass(a).data("bs."+this.type,this),this.options.container?r.appendTo(t(document).find(this.options.container)):r.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var c=this.getPosition(),d=r[0].offsetWidth,h=r[0].offsetHeight;if(u){var f=a,p=this.getPosition(this.$viewport);a="bottom"==a&&c.bottom+h>p.bottom?"top":"top"==a&&c.top-h<p.top?"bottom":"right"==a&&c.right+d>p.width?"left":"left"==a&&c.left-d<p.left?"right":a,r.removeClass(f).addClass(a)}var m=this.getCalculatedOffset(a,c,d,h);this.applyPlacement(m,a);var g=function(){var t=i.hoverState;i.$element.trigger("shown.bs."+i.type),i.hoverState=null,"out"==t&&i.leave(i)};t.support.transition&&this.$tip.hasClass("fade")?r.one("bsTransitionEnd",g).emulateTransitionEnd(l.TRANSITION_DURATION):g()}},l.prototype.applyPlacement=function(e,n){var i=this.tip(),r=i[0].offsetWidth,o=i[0].offsetHeight,a=parseInt(i.css("margin-top"),10),s=parseInt(i.css("margin-left"),10);isNaN(a)&&(a=0),isNaN(s)&&(s=0),e.top+=a,e.left+=s,t.offset.setOffset(i[0],t.extend({using:function(t){i.css({top:Math.round(t.top),left:Math.round(t.left)})}},e),0),i.addClass("in");var l=i[0].offsetWidth,u=i[0].offsetHeight;"top"==n&&u!=o&&(e.top=e.top+o-u);var c=this.getViewportAdjustedDelta(n,e,l,u);c.left?e.left+=c.left:e.top+=c.top;var d=/top|bottom/.test(n),h=d?2*c.left-r+l:2*c.top-o+u,f=d?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(h,i[0][f],d)},l.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},l.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();this.options.html?(this.options.sanitize&&(e=s(e,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(e)):t.find(".tooltip-inner").text(e),t.removeClass("fade in top bottom left right")},l.prototype.hide=function(e){var n=this,i=t(this.$tip),r=t.Event("hide.bs."+this.type);function o(){"in"!=n.hoverState&&i.detach(),n.$element&&n.$element.removeAttr("aria-describedby").trigger("hidden.bs."+n.type),e&&e()}if(this.$element.trigger(r),!r.isDefaultPrevented())return i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(l.TRANSITION_DURATION):o(),this.hoverState=null,this},l.prototype.fixTitle=function(){var t=this.$element;(t.attr("title")||"string"!=typeof t.attr("data-original-title"))&&t.attr("data-original-title",t.attr("title")||"").attr("title","")},l.prototype.hasContent=function(){return this.getTitle()},l.prototype.getPosition=function(e){var n=(e=e||this.$element)[0],i="BODY"==n.tagName,r=n.getBoundingClientRect();null==r.width&&(r=t.extend({},r,{width:r.right-r.left,height:r.bottom-r.top}));var o=window.SVGElement&&n instanceof window.SVGElement,a=i?{top:0,left:0}:o?null:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},l=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},r,s,l,a)},l.prototype.getCalculatedOffset=function(t,e,n,i){return"bottom"==t?{top:e.top+e.height,left:e.left+e.width/2-n/2}:"top"==t?{top:e.top-i,left:e.left+e.width/2-n/2}:"left"==t?{top:e.top+e.height/2-i/2,left:e.left-n}:{top:e.top+e.height/2-i/2,left:e.left+e.width}},l.prototype.getViewportAdjustedDelta=function(t,e,n,i){var r={top:0,left:0};if(!this.$viewport)return r;var o=this.options.viewport&&this.options.viewport.padding||0,a=this.getPosition(this.$viewport);if(/right|left/.test(t)){var s=e.top-o-a.scroll,l=e.top+o-a.scroll+i;s<a.top?r.top=a.top-s:l>a.top+a.height&&(r.top=a.top+a.height-l)}else{var u=e.left-o,c=e.left+o+n;u<a.left?r.left=a.left-u:c>a.right&&(r.left=a.left+a.width-c)}return r},l.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},l.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},l.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},l.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},l.prototype.enable=function(){this.enabled=!0},l.prototype.disable=function(){this.enabled=!1},l.prototype.toggleEnabled=function(){this.enabled=!this.enabled},l.prototype.toggle=function(e){var n=this;e&&((n=t(e.currentTarget).data("bs."+this.type))||(n=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,n))),e?(n.inState.click=!n.inState.click,n.isInStateTrue()?n.enter(n):n.leave(n)):n.tip().hasClass("in")?n.leave(n):n.enter(n)},l.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null,t.$element=null})},l.prototype.sanitizeHtml=function(t){return s(t,this.options.whiteList,this.options.sanitizeFn)};var u=t.fn.tooltip;t.fn.tooltip=function(e){return this.each(function(){var n=t(this),i=n.data("bs.tooltip"),r="object"==typeof e&&e;!i&&/destroy|hide/.test(e)||(i||n.data("bs.tooltip",i=new l(this,r)),"string"==typeof e&&i[e]())})},t.fn.tooltip.Constructor=l,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=u,this}}(jQuery),function(t){"use strict";var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.4.1",e.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),e.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),e.prototype.constructor=e,e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),n=this.getContent();if(this.options.html){var i=typeof n;this.options.sanitize&&(e=this.sanitizeHtml(e),"string"===i&&(n=this.sanitizeHtml(n))),t.find(".popover-title").html(e),t.find(".popover-content").children().detach().end()["string"===i?"html":"append"](n)}else t.find(".popover-title").text(e),t.find(".popover-content").children().detach().end().text(n);t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},e.prototype.hasContent=function(){return this.getTitle()||this.getContent()},e.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=function(n){return this.each(function(){var i=t(this),r=i.data("bs.popover"),o="object"==typeof n&&n;!r&&/destroy|hide/.test(n)||(r||i.data("bs.popover",r=new e(this,o)),"string"==typeof n&&r[n]())})},t.fn.popover.Constructor=e,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(n,i){this.$body=t(document.body),this.$scrollElement=t(n).is(document.body)?t(window):t(n),this.options=t.extend({},e.DEFAULTS,i),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function n(n){return this.each(function(){var i=t(this),r=i.data("bs.scrollspy"),o="object"==typeof n&&n;r||i.data("bs.scrollspy",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,n="offset",i=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(n="position",i=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),r=e.data("target")||e.attr("href"),o=/^#./.test(r)&&t(r);return o&&o.length&&o.is(":visible")&&[[o[n]().top+i,r]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){var t,e=this.$scrollElement.scrollTop()+this.options.offset,n=this.getScrollHeight(),i=this.options.offset+n-this.$scrollElement.height(),r=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=n&&this.refresh(),e>=i)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e<r[0])return this.activeTarget=null,this.clear();for(t=r.length;t--;)a!=o[t]&&e>=r[t]&&(void 0===r[t+1]||e<r[t+1])&&this.activate(o[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var n=this.selector+'[data-target="'+e+'"],'+this.selector+'[href="'+e+'"]',i=t(n).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active")),i.trigger("activate.bs.scrollspy")},e.prototype.clear=function(){t(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var i=t.fn.scrollspy;t.fn.scrollspy=n,t.fn.scrollspy.Constructor=e,t.fn.scrollspy.noConflict=function(){return t.fn.scrollspy=i,this},t(window).on("load.bs.scrollspy.data-api",function(){t('[data-spy="scroll"]').each(function(){var e=t(this);n.call(e,e.data())})})}(jQuery),function(t){"use strict";var e=function(e){this.element=t(e)};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.tab");r||i.data("bs.tab",r=new e(this)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,n=e.closest("ul:not(.dropdown-menu)"),i=e.data("target");if(i||(i=(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var r=n.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),a=t.Event("show.bs.tab",{relatedTarget:r[0]});if(r.trigger(o),e.trigger(a),!a.isDefaultPrevented()&&!o.isDefaultPrevented()){var s=t(document).find(i);this.activate(e.closest("li"),n),this.activate(s,s.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:r[0]})})}}},e.prototype.activate=function(n,i,r){var o=i.find("> .active"),a=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);function s(){o.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),a?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade"),n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),r&&r()}o.length&&a?o.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),o.removeClass("in")};var i=t.fn.tab;t.fn.tab=n,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=i,this};var r=function(e){e.preventDefault(),n.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',r).on("click.bs.tab.data-api",'[data-toggle="pill"]',r)}(jQuery),function(t){"use strict";var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i);var r=this.options.target===e.DEFAULTS.target?t(this.options.target):t(document).find(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(n),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};function n(n){return this.each(function(){var i=t(this),r=i.data("bs.affix"),o="object"==typeof n&&n;r||i.data("bs.affix",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.RESET="affix affix-top affix-bottom",e.DEFAULTS={offset:0,target:window},e.prototype.getState=function(t,e,n,i){var r=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return r<n&&"top";if("bottom"==this.affixed)return null!=n?!(r+this.unpin<=o.top)&&"bottom":!(r+a<=t-i)&&"bottom";var s=null==this.affixed,l=s?r:o.top;return null!=n&&r<=n?"top":null!=i&&l+(s?a:e)>=t-i&&"bottom"},e.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(e.RESET).addClass("affix");var t=this.$target.scrollTop(),n=this.$element.offset();return this.pinnedOffset=n.top-t},e.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},e.prototype.checkPosition=function(){if(this.$element.is(":visible")){var n=this.$element.height(),i=this.options.offset,r=i.top,o=i.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(o=r=i),"function"==typeof r&&(r=i.top(this.$element)),"function"==typeof o&&(o=i.bottom(this.$element));var s=this.getState(a,n,r,o);if(this.affixed!=s){null!=this.unpin&&this.$element.css("top","");var l="affix"+(s?"-"+s:""),u=t.Event(l+".bs.affix");if(this.$element.trigger(u),u.isDefaultPrevented())return;this.affixed=s,this.unpin="bottom"==s?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==s&&this.$element.offset({top:a-n-o})}};var i=t.fn.affix;t.fn.affix=n,t.fn.affix.Constructor=e,t.fn.affix.noConflict=function(){return t.fn.affix=i,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var e=t(this),i=e.data();i.offset=i.offset||{},null!=i.offsetBottom&&(i.offset.bottom=i.offsetBottom),null!=i.offsetTop&&(i.offset.top=i.offsetTop),n.call(e,i)})})}(jQuery),function(t){"use strict";var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};function n(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(document).find(i)}function i(n){return this.each(function(){var i=t(this),r=i.data("bs.collapse"),o=t.extend({},e.DEFAULTS,i.data(),"object"==typeof n&&n);!r&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),r||i.data("bs.collapse",r=new e(this,o)),"string"==typeof n&&r[n]()})}e.VERSION="3.4.1",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var n,r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(r&&r.length&&(n=r.data("bs.collapse"))&&n.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){r&&r.length&&(i.call(r,"hide"),n||r.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var s=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[a](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var n=t.Event("hide.bs.collapse");if(this.$element.trigger(n),!n.isDefaultPrevented()){var i=this.dimension();this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var r=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};if(!t.support.transition)return r.call(this);this.$element[i](0).one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(e,i){var r=t(i);this.addAriaAndCollapsedClass(n(r),r)},this)).end()},e.prototype.addAriaAndCollapsedClass=function(t,e){var n=t.hasClass("in");t.attr("aria-expanded",n),e.toggleClass("collapsed",!n).attr("aria-expanded",n)};var r=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=e,t.fn.collapse.noConflict=function(){return t.fn.collapse=r,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(e){var r=t(this);r.attr("data-target")||e.preventDefault();var o=n(r),a=o.data("bs.collapse")?"toggle":r.data();i.call(o,a)})}(jQuery),function(t){"use strict";t.fn.emulateTransitionEnd=function(e){var n=!1,i=this;t(this).one("bsTransitionEnd",function(){n=!0});return setTimeout(function(){n||t(i).trigger(t.support.transition.end)},e),this},t(function(){t.support.transition=function(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var n in e)if(void 0!==t.style[n])return{end:e[n]};return!1}(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}})})}(jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";var t="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,e=function(){for(var e=["Edge","Trident","Firefox"],n=0;n<e.length;n+=1)if(t&&navigator.userAgent.indexOf(e[n])>=0)return 1;return 0}();var n=t&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var n=!1;return function(){n||(n=!0,setTimeout(function(){n=!1,t()},e))}};function i(t){return t&&"[object Function]"==={}.toString.call(t)}function r(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function o(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function a(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=r(t),n=e.overflow,i=e.overflowX,s=e.overflowY;return/(auto|scroll|overlay)/.test(n+s+i)?t:a(o(t))}function s(t){return t&&t.referenceNode?t.referenceNode:t}var l=t&&!(!window.MSInputMethodContext||!document.documentMode),u=t&&/MSIE 10/.test(navigator.userAgent);function c(t){return 11===t?l:10===t?u:l||u}function d(t){if(!t)return document.documentElement;for(var e=c(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===r(n,"position")?d(n):n:t?t.ownerDocument.documentElement:document.documentElement}function h(t){return null!==t.parentNode?h(t.parentNode):t}function f(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&d(a.firstElementChild)!==a?d(l):l;var u=h(t);return u.host?f(u.host,e):f(t,h(e).host)}function p(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function m(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function g(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],c(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function v(t){var e=t.body,n=t.documentElement,i=c(10)&&getComputedStyle(n);return{height:g("Height",e,n,i),width:g("Width",e,n,i)}}var y=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},b=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),w=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t},_=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function x(t){return _({},t,{right:t.left+t.width,bottom:t.top+t.height})}function D(t){var e={};try{if(c(10)){e=t.getBoundingClientRect();var n=p(t,"top"),i=p(t,"left");e.top+=n,e.left+=i,e.bottom+=n,e.right+=i}else e=t.getBoundingClientRect()}catch(t){}var o={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},a="HTML"===t.nodeName?v(t.ownerDocument):{},s=a.width||t.clientWidth||o.width,l=a.height||t.clientHeight||o.height,u=t.offsetWidth-s,d=t.offsetHeight-l;if(u||d){var h=r(t);u-=m(h,"x"),d-=m(h,"y"),o.width-=u,o.height-=d}return x(o)}function k(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=c(10),o="HTML"===e.nodeName,s=D(t),l=D(e),u=a(t),d=r(e),h=parseFloat(d.borderTopWidth),f=parseFloat(d.borderLeftWidth);n&&o&&(l.top=Math.max(l.top,0),l.left=Math.max(l.left,0));var m=x({top:s.top-l.top-h,left:s.left-l.left-f,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!i&&o){var g=parseFloat(d.marginTop),v=parseFloat(d.marginLeft);m.top-=h-g,m.bottom-=h-g,m.left-=f-v,m.right-=f-v,m.marginTop=g,m.marginLeft=v}return(i&&!n?e.contains(u):e===u&&"BODY"!==u.nodeName)&&(m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=p(e,"top"),r=p(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(m,e)),m}function C(t){if(!t||!t.parentElement||c())return document.documentElement;for(var e=t.parentElement;e&&"none"===r(e,"transform");)e=e.parentElement;return e||document.documentElement}function T(t,e,n,i){var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],u={top:0,left:0},c=l?C(t):f(t,s(e));if("viewport"===i)u=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=k(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:p(n),s=e?0:p(n,"left");return x({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(c,l);else{var d=void 0;"scrollParent"===i?"BODY"===(d=a(o(e))).nodeName&&(d=t.ownerDocument.documentElement):d="window"===i?t.ownerDocument.documentElement:i;var h=k(d,c,l);if("HTML"!==d.nodeName||function t(e){var n=e.nodeName;if("BODY"===n||"HTML"===n)return!1;if("fixed"===r(e,"position"))return!0;var i=o(e);return!!i&&t(i)}(c))u=h;else{var m=v(t.ownerDocument),g=m.height,y=m.width;u.top+=h.top-h.marginTop,u.bottom=g+h.top,u.left+=h.left-h.marginLeft,u.right=y+h.left}}var b="number"==typeof(n=n||0);return u.left+=b?n:n.left||0,u.top+=b?n:n.top||0,u.right-=b?n:n.right||0,u.bottom-=b?n:n.bottom||0,u}function S(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=T(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return _({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function $(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return k(n,i?C(e):f(e,s(n)),i)}function E(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function O(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function M(t,e,n){n=n.split("-")[0];var i=E(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[u]:e[O(s)],r}function A(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function j(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=A(t,function(t){return t[e]===n});return t.indexOf(i)}(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&i(n)&&(e.offsets.popper=x(e.offsets.popper),e.offsets.reference=x(e.offsets.reference),e=n(e,t))}),e}function N(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function I(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function P(t){var e=t.ownerDocument;return e?e.defaultView:window}function L(t,e,n,i){n.updateBound=i,P(t).addEventListener("resize",n.updateBound,{passive:!0});var r=a(t);return function t(e,n,i,r){var o="BODY"===e.nodeName,s=o?e.ownerDocument.defaultView:e;s.addEventListener(n,i,{passive:!0}),o||t(a(s.parentNode),n,i,r),r.push(s)}(r,"scroll",n.updateBound,n.scrollParents),n.scrollElement=r,n.eventsEnabled=!0,n}function R(){var t,e;this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=(t=this.reference,e=this.state,P(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e))}function Y(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function H(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&Y(e[n])&&(i="px"),t.style[n]=e[n]+i})}var F=t&&/Firefox/i.test(navigator.userAgent);function U(t,e,n){var i=A(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}var W=["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"],q=W.slice(3);function B(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=q.indexOf(t),i=q.slice(n+1).concat(q.slice(0,n));return e?i.reverse():i}var z={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function V(t,e,n,i){var r=[0,0],o=-1!==["right","left"].indexOf(i),a=t.split(/(\+|\-)/).map(function(t){return t.trim()}),s=a.indexOf(A(a,function(t){return-1!==t.search(/,|\s/)}));a[s]&&-1===a[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=-1!==s?[a.slice(0,s).concat([a[s].split(l)[0]]),[a[s].split(l)[1]].concat(a.slice(s+1))]:[a];return(u=u.map(function(t,i){var r=(1===i?!o:o)?"height":"width",a=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,a=!0,t):a?(t[t.length-1]+=e,a=!1,t):t.concat(e)},[]).map(function(t){return function(t,e,n,i){var r=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),o=+r[1],a=r[2];if(!o)return t;if(0===a.indexOf("%")){var s=void 0;switch(a){case"%p":s=n;break;case"%":case"%r":default:s=i}return x(s)[e]/100*o}if("vh"===a||"vw"===a)return("vh"===a?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*o;return o}(t,r,e,n)})})).forEach(function(t,e){t.forEach(function(n,i){Y(n)&&(r[e]+=n*("-"===t[i-1]?-1:1))})}),r}var G={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var r=t.offsets,o=r.reference,a=r.popper,s=-1!==["bottom","top"].indexOf(n),l=s?"left":"top",u=s?"width":"height",c={start:w({},l,o[l]),end:w({},l,o[l]+o[u]-a[u])};t.offsets.popper=_({},a,c[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,r=t.offsets,o=r.popper,a=r.reference,s=i.split("-")[0],l=void 0;return l=Y(+n)?[+n,0]:V(n,o,a,s),"left"===s?(o.top+=l[0],o.left-=l[1]):"right"===s?(o.top+=l[0],o.left+=l[1]):"top"===s?(o.left+=l[0],o.top-=l[1]):"bottom"===s&&(o.left+=l[0],o.top+=l[1]),t.popper=o,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||d(t.instance.popper);t.instance.reference===n&&(n=d(n));var i=I("transform"),r=t.instance.popper.style,o=r.top,a=r.left,s=r[i];r.top="",r.left="",r[i]="";var l=T(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);r.top=o,r.left=a,r[i]=s,e.boundaries=l;var u=e.priority,c=t.offsets.popper,h={primary:function(t){var n=c[t];return c[t]<l[t]&&!e.escapeWithReference&&(n=Math.max(c[t],l[t])),w({},t,n)},secondary:function(t){var n="right"===t?"left":"top",i=c[n];return c[t]>l[t]&&!e.escapeWithReference&&(i=Math.min(c[n],l[t]-("right"===t?c.width:c.height))),w({},n,i)}};return u.forEach(function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";c=_({},c,h[e](t))}),t.offsets.popper=c,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,r=t.placement.split("-")[0],o=Math.floor,a=-1!==["top","bottom"].indexOf(r),s=a?"right":"bottom",l=a?"left":"top",u=a?"width":"height";return n[s]<o(i[l])&&(t.offsets.popper[l]=o(i[l])-n[u]),n[l]>o(i[s])&&(t.offsets.popper[l]=o(i[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!U(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],a=t.offsets,s=a.popper,l=a.reference,u=-1!==["left","right"].indexOf(o),c=u?"height":"width",d=u?"Top":"Left",h=d.toLowerCase(),f=u?"left":"top",p=u?"bottom":"right",m=E(i)[c];l[p]-m<s[h]&&(t.offsets.popper[h]-=s[h]-(l[p]-m)),l[h]+m>s[p]&&(t.offsets.popper[h]+=l[h]+m-s[p]),t.offsets.popper=x(t.offsets.popper);var g=l[h]+l[c]/2-m/2,v=r(t.instance.popper),y=parseFloat(v["margin"+d]),b=parseFloat(v["border"+d+"Width"]),_=g-t.offsets.popper[h]-y-b;return _=Math.max(Math.min(s[c]-m,_),0),t.arrowElement=i,t.offsets.arrow=(w(n={},h,Math.round(_)),w(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(N(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=T(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],r=O(i),o=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case z.FLIP:a=[i,r];break;case z.CLOCKWISE:a=B(i);break;case z.COUNTERCLOCKWISE:a=B(i,!0);break;default:a=e.behavior}return a.forEach(function(s,l){if(i!==s||a.length===l+1)return t;i=t.placement.split("-")[0],r=O(i);var u=t.offsets.popper,c=t.offsets.reference,d=Math.floor,h="left"===i&&d(u.right)>d(c.left)||"right"===i&&d(u.left)<d(c.right)||"top"===i&&d(u.bottom)>d(c.top)||"bottom"===i&&d(u.top)<d(c.bottom),f=d(u.left)<d(n.left),p=d(u.right)>d(n.right),m=d(u.top)<d(n.top),g=d(u.bottom)>d(n.bottom),v="left"===i&&f||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,y=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(y&&"start"===o&&f||y&&"end"===o&&p||!y&&"start"===o&&m||!y&&"end"===o&&g),w=!!e.flipVariationsByContent&&(y&&"start"===o&&p||y&&"end"===o&&f||!y&&"start"===o&&g||!y&&"end"===o&&m),x=b||w;(h||v||x)&&(t.flipped=!0,(h||v)&&(i=a[l+1]),x&&(o=function(t){return"end"===t?"start":"start"===t?"end":t}(o)),t.placement=i+(o?"-"+o:""),t.offsets.popper=_({},t.offsets.popper,M(t.instance.popper,t.offsets.reference,t.placement)),t=j(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,r=i.popper,o=i.reference,a=-1!==["left","right"].indexOf(n),s=-1===["top","left"].indexOf(n);return r[a?"left":"top"]=o[n]-(s?r[a?"width":"height"]:0),t.placement=O(e),t.offsets.popper=x(r),t}},hide:{order:800,enabled:!0,fn:function(t){if(!U(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=A(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<n.top||e.left>n.right||e.top>n.bottom||e.right<n.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var n=e.x,i=e.y,r=t.offsets.popper,o=A(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==o&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var a=void 0!==o?o:e.gpuAcceleration,s=d(t.instance.popper),l=D(s),u={position:r.position},c=function(t,e){var n=t.offsets,i=n.popper,r=n.reference,o=Math.round,a=Math.floor,s=function(t){return t},l=o(r.width),u=o(i.width),c=-1!==["left","right"].indexOf(t.placement),d=-1!==t.placement.indexOf("-"),h=e?c||d||l%2==u%2?o:a:s,f=e?o:s;return{left:h(l%2==1&&u%2==1&&!d&&e?i.left-1:i.left),top:f(i.top),bottom:f(i.bottom),right:h(i.right)}}(t,window.devicePixelRatio<2||!F),h="bottom"===n?"top":"bottom",f="right"===i?"left":"right",p=I("transform"),m=void 0,g=void 0;if(g="bottom"===h?"HTML"===s.nodeName?-s.clientHeight+c.bottom:-l.height+c.bottom:c.top,m="right"===f?"HTML"===s.nodeName?-s.clientWidth+c.right:-l.width+c.right:c.left,a&&p)u[p]="translate3d("+m+"px, "+g+"px, 0)",u[h]=0,u[f]=0,u.willChange="transform";else{var v="bottom"===h?-1:1,y="right"===f?-1:1;u[h]=g*v,u[f]=m*y,u.willChange=h+", "+f}var b={"x-placement":t.placement};return t.attributes=_({},b,t.attributes),t.styles=_({},u,t.styles),t.arrowStyles=_({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){var e,n;return H(t.instance.popper,t.styles),e=t.instance.popper,n=t.attributes,Object.keys(n).forEach(function(t){!1!==n[t]?e.setAttribute(t,n[t]):e.removeAttribute(t)}),t.arrowElement&&Object.keys(t.arrowStyles).length&&H(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,n,i,r){var o=$(r,e,t,n.positionFixed),a=S(n.placement,o,e,t,n.modifiers.flip.boundariesElement,n.modifiers.flip.padding);return e.setAttribute("x-placement",a),H(e,{position:n.positionFixed?"fixed":"absolute"}),n},gpuAcceleration:void 0}}},Z=function(){function t(e,r){var o=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};y(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=n(this.update.bind(this)),this.options=_({},t.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=r&&r.jquery?r[0]:r,this.options.modifiers={},Object.keys(_({},t.Defaults.modifiers,a.modifiers)).forEach(function(e){o.options.modifiers[e]=_({},t.Defaults.modifiers[e]||{},a.modifiers?a.modifiers[e]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return _({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(t){t.enabled&&i(t.onLoad)&&t.onLoad(o.reference,o.popper,o.options,t,o.state)}),this.update();var s=this.options.eventsEnabled;s&&this.enableEventListeners(),this.state.eventsEnabled=s}return b(t,[{key:"update",value:function(){return function(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=$(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=S(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=M(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=j(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}.call(this)}},{key:"destroy",value:function(){return function(){return this.state.isDestroyed=!0,N(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[I("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=L(this.reference,this.options,this.state,this.scheduleUpdate))}.call(this)}},{key:"disableEventListeners",value:function(){return R.call(this)}}]),t}();return Z.Utils=("undefined"!=typeof window?window:global).PopperUtils,Z.placements=W,Z.Defaults=G,Z}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.PopperUtils={})}(this,function(t){"use strict";function e(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function n(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function i(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var r=e(t),o=r.overflow,a=r.overflowX,s=r.overflowY;return/(auto|scroll|overlay)/.test(o+s+a)?t:i(n(t))}function r(t){return t&&t.referenceNode?t.referenceNode:t}var o="undefined"!=typeof window&&"undefined"!=typeof document&&"undefined"!=typeof navigator,a=o&&!(!window.MSInputMethodContext||!document.documentMode),s=o&&/MSIE 10/.test(navigator.userAgent);function l(t){return 11===t?a:10===t?s:a||s}function u(t){if(!t)return document.documentElement;for(var n=l(10)?document.body:null,i=t.offsetParent||null;i===n&&t.nextElementSibling;)i=(t=t.nextElementSibling).offsetParent;var r=i&&i.nodeName;return r&&"BODY"!==r&&"HTML"!==r?-1!==["TH","TD","TABLE"].indexOf(i.nodeName)&&"static"===e(i,"position")?u(i):i:t?t.ownerDocument.documentElement:document.documentElement}function c(t){return null!==t.parentNode?c(t.parentNode):t}function d(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,r=n?e:t,o=document.createRange();o.setStart(i,0),o.setEnd(r,0);var a,s,l=o.commonAncestorContainer;if(t!==l&&e!==l||i.contains(r))return"BODY"===(s=(a=l).nodeName)||"HTML"!==s&&u(a.firstElementChild)!==a?u(l):l;var h=c(t);return h.host?d(h.host,e):d(t,c(e).host)}function h(t){var e="top"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top")?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var i=t.ownerDocument.documentElement;return(t.ownerDocument.scrollingElement||i)[e]}return t[e]}function f(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"])+parseFloat(t["border"+i+"Width"])}function p(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],l(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function m(t){var e=t.body,n=t.documentElement,i=l(10)&&getComputedStyle(n);return{height:p("Height",e,n,i),width:p("Width",e,n,i)}}var g=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t};function v(t){return g({},t,{right:t.left+t.width,bottom:t.top+t.height})}function y(t){var n={};try{if(l(10)){n=t.getBoundingClientRect();var i=h(t,"top"),r=h(t,"left");n.top+=i,n.left+=r,n.bottom+=i,n.right+=r}else n=t.getBoundingClientRect()}catch(t){}var o={left:n.left,top:n.top,width:n.right-n.left,height:n.bottom-n.top},a="HTML"===t.nodeName?m(t.ownerDocument):{},s=a.width||t.clientWidth||o.width,u=a.height||t.clientHeight||o.height,c=t.offsetWidth-s,d=t.offsetHeight-u;if(c||d){var p=e(t);c-=f(p,"x"),d-=f(p,"y"),o.width-=c,o.height-=d}return v(o)}function b(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=l(10),a="HTML"===n.nodeName,s=y(t),u=y(n),c=i(t),d=e(n),f=parseFloat(d.borderTopWidth),p=parseFloat(d.borderLeftWidth);r&&a&&(u.top=Math.max(u.top,0),u.left=Math.max(u.left,0));var m=v({top:s.top-u.top-f,left:s.left-u.left-p,width:s.width,height:s.height});if(m.marginTop=0,m.marginLeft=0,!o&&a){var g=parseFloat(d.marginTop),b=parseFloat(d.marginLeft);m.top-=f-g,m.bottom-=f-g,m.left-=p-b,m.right-=p-b,m.marginTop=g,m.marginLeft=b}return(o&&!r?n.contains(c):n===c&&"BODY"!==c.nodeName)&&(m=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=h(e,"top"),r=h(e,"left"),o=n?-1:1;return t.top+=i*o,t.bottom+=i*o,t.left+=r*o,t.right+=r*o,t}(m,n)),m}function w(t){var i=t.nodeName;if("BODY"===i||"HTML"===i)return!1;if("fixed"===e(t,"position"))return!0;var r=n(t);return!!r&&w(r)}function _(t){if(!t||!t.parentElement||l())return document.documentElement;for(var n=t.parentElement;n&&"none"===e(n,"transform");)n=n.parentElement;return n||document.documentElement}function x(t,e,o,a){var s=arguments.length>4&&void 0!==arguments[4]&&arguments[4],l={top:0,left:0},u=s?_(t):d(t,r(e));if("viewport"===a)l=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=b(t,n),r=Math.max(n.clientWidth,window.innerWidth||0),o=Math.max(n.clientHeight,window.innerHeight||0),a=e?0:h(n),s=e?0:h(n,"left");return v({top:a-i.top+i.marginTop,left:s-i.left+i.marginLeft,width:r,height:o})}(u,s);else{var c=void 0;"scrollParent"===a?"BODY"===(c=i(n(e))).nodeName&&(c=t.ownerDocument.documentElement):c="window"===a?t.ownerDocument.documentElement:a;var f=b(c,u,s);if("HTML"!==c.nodeName||w(u))l=f;else{var p=m(t.ownerDocument),g=p.height,y=p.width;l.top+=f.top-f.marginTop,l.bottom=g+f.top,l.left+=f.left-f.marginLeft,l.right=y+f.left}}var x="number"==typeof(o=o||0);return l.left+=x?o:o.left||0,l.top+=x?o:o.top||0,l.right-=x?o:o.right||0,l.bottom-=x?o:o.bottom||0,l}function D(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=x(n,i,o,r),s={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(s).map(function(t){return g({key:t},s[t],{area:(e=s[t],e.width*e.height)});var e}).sort(function(t,e){return e.area-t.area}),u=l.filter(function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight}),c=u.length>0?u[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}var k=function(){for(var t=["Edge","Trident","Firefox"],e=0;e<t.length;e+=1)if(o&&navigator.userAgent.indexOf(t[e])>=0)return 1;return 0}();var C=o&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,t()}))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},k))}};function T(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function S(t,e,n){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===n});var i=T(t,function(t){return t[e]===n});return t.indexOf(i)}function $(t){var e=void 0;if("HTML"===t.nodeName){var n=m(t.ownerDocument);e={width:n.width,height:n.height,left:0,top:0}}else e={width:t.offsetWidth,height:t.offsetHeight,left:t.offsetLeft,top:t.offsetTop};return v(e)}function E(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function O(t,e,n){n=n.split("-")[0];var i=E(t),r={width:i.width,height:i.height},o=-1!==["right","left"].indexOf(n),a=o?"top":"left",s=o?"left":"top",l=o?"height":"width",u=o?"width":"height";return r[a]=e[a]+e[l]/2-i[l]/2,r[s]=n===s?e[s]-i[u]:e[function(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}(s)],r}function M(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return b(n,i?_(e):d(e,r(n)),i)}function A(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<e.length;i++){var r=e[i],o=r?""+r+n:t;if(void 0!==document.body.style[o])return o}return null}function j(t){return t&&"[object Function]"==={}.toString.call(t)}function N(t,e){return t.some(function(t){var n=t.name;return t.enabled&&n===e})}function I(t,e,n){var i=T(t,function(t){return t.name===e}),r=!!i&&t.some(function(t){return t.name===n&&t.enabled&&t.order<i.order});if(!r){var o="`"+e+"`",a="`"+n+"`";console.warn(a+" modifier is required by "+o+" modifier in order to work, be sure to include it before "+o+"!")}return r}function P(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function L(t){var e=t.ownerDocument;return e?e.defaultView:window}function R(t,e){return L(t).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function Y(t,e,n){return(void 0===n?t:t.slice(0,S(t,"name",n))).forEach(function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&j(n)&&(e.offsets.popper=v(e.offsets.popper),e.offsets.reference=v(e.offsets.reference),e=n(e,t))}),e}function H(t,e){Object.keys(e).forEach(function(n){!1!==e[n]?t.setAttribute(n,e[n]):t.removeAttribute(n)})}function F(t,e){Object.keys(e).forEach(function(n){var i="";-1!==["width","height","top","right","bottom","left"].indexOf(n)&&P(e[n])&&(i="px"),t.style[n]=e[n]+i})}function U(t,e,n,r){n.updateBound=r,L(t).addEventListener("resize",n.updateBound,{passive:!0});var o=i(t);return function t(e,n,r,o){var a="BODY"===e.nodeName,s=a?e.ownerDocument.defaultView:e;s.addEventListener(n,r,{passive:!0}),a||t(i(s.parentNode),n,r,o),o.push(s)}(o,"scroll",n.updateBound,n.scrollParents),n.scrollElement=o,n.eventsEnabled=!0,n}var W={computeAutoPlacement:D,debounce:C,findIndex:S,getBordersSize:f,getBoundaries:x,getBoundingClientRect:y,getClientRect:v,getOffsetParent:u,getOffsetRect:$,getOffsetRectRelativeToArbitraryNode:b,getOuterSizes:E,getParentNode:n,getPopperOffsets:O,getReferenceOffsets:M,getScroll:h,getScrollParent:i,getStyleComputedProperty:e,getSupportedPropertyName:A,getWindowSizes:m,isFixed:w,isFunction:j,isModifierEnabled:N,isModifierRequired:I,isNumeric:P,removeEventListeners:R,runModifiers:Y,setAttributes:H,setStyles:F,setupEventListeners:U};t.computeAutoPlacement=D,t.debounce=C,t.findIndex=S,t.getBordersSize=f,t.getBoundaries=x,t.getBoundingClientRect=y,t.getClientRect=v,t.getOffsetParent=u,t.getOffsetRect=$,t.getOffsetRectRelativeToArbitraryNode=b,t.getOuterSizes=E,t.getParentNode=n,t.getPopperOffsets=O,t.getReferenceOffsets=M,t.getScroll=h,t.getScrollParent=i,t.getStyleComputedProperty=e,t.getSupportedPropertyName=A,t.getWindowSizes=m,t.isFixed=w,t.isFunction=j,t.isModifierEnabled=N,t.isModifierRequired=I,t.isNumeric=P,t.removeEventListeners=R,t.runModifiers=Y,t.setAttributes=H,t.setStyles=F,t.setupEventListeners=U,t.default=W,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,n){return void 0===n&&(n="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(n),n}:t(jQuery)}(function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var n,i,r;return e&&e.requirejs||(e?i=e:e={},function(t){var e,o,a,s,l={},u={},c={},d={},h=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function m(t,e){return h.call(t,e)}function g(t,e){var n,i,r,o,a,s,l,u,d,h,f,m=e&&e.split("/"),g=c.map,v=g&&g["*"]||{};if(t){for(a=(t=t.split("/")).length-1,c.nodeIdCompat&&p.test(t[a])&&(t[a]=t[a].replace(p,"")),"."===t[0].charAt(0)&&m&&(t=m.slice(0,m.length-1).concat(t)),d=0;d<t.length;d++)if("."===(f=t[d]))t.splice(d,1),d-=1;else if(".."===f){if(0===d||1===d&&".."===t[2]||".."===t[d-1])continue;d>0&&(t.splice(d-1,2),d-=2)}t=t.join("/")}if((m||v)&&g){for(d=(n=t.split("/")).length;d>0;d-=1){if(i=n.slice(0,d).join("/"),m)for(h=m.length;h>0;h-=1)if((r=g[m.slice(0,h).join("/")])&&(r=r[i])){o=r,s=d;break}if(o)break;!l&&v&&v[i]&&(l=v[i],u=d)}!o&&l&&(o=l,s=u),o&&(n.splice(0,s,o),t=n.join("/"))}return t}function v(e,n){return function(){var i=f.call(arguments,0);return"string"!=typeof i[0]&&1===i.length&&i.push(null),o.apply(t,i.concat([e,n]))}}function y(t){return function(e){l[t]=e}}function b(n){if(m(u,n)){var i=u[n];delete u[n],d[n]=!0,e.apply(t,i)}if(!m(l,n)&&!m(d,n))throw new Error("No "+n);return l[n]}function w(t){var e,n=t?t.indexOf("!"):-1;return n>-1&&(e=t.substring(0,n),t=t.substring(n+1,t.length)),[e,t]}function _(t){return t?w(t):[]}function x(t){return function(){return c&&c.config&&c.config[t]||{}}}a=function(t,e){var n,i,r=w(t),o=r[0],a=e[1];return t=r[1],o&&(n=b(o=g(o,a))),o?t=n&&n.normalize?n.normalize(t,(i=a,function(t){return g(t,i)})):g(t,a):(o=(r=w(t=g(t,a)))[0],t=r[1],o&&(n=b(o))),{f:o?o+"!"+t:t,n:t,pr:o,p:n}},s={require:function(t){return v(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:x(t)}}},e=function(e,n,i,r){var o,c,h,f,p,g,w,x=[],D=typeof i;if(g=_(r=r||e),"undefined"===D||"function"===D){for(n=!n.length&&i.length?["require","exports","module"]:n,p=0;p<n.length;p+=1)if("require"===(c=(f=a(n[p],g)).f))x[p]=s.require(e);else if("exports"===c)x[p]=s.exports(e),w=!0;else if("module"===c)o=x[p]=s.module(e);else if(m(l,c)||m(u,c)||m(d,c))x[p]=b(c);else{if(!f.p)throw new Error(e+" missing "+c);f.p.load(f.n,v(r,!0),y(c),{}),x[p]=l[c]}h=i?i.apply(l[e],x):void 0,e&&(o&&o.exports!==t&&o.exports!==l[e]?l[e]=o.exports:h===t&&w||(l[e]=h))}else e&&(l[e]=i)},n=i=o=function(n,i,r,l,u){if("string"==typeof n)return s[n]?s[n](i):b(a(n,_(i)).f);if(!n.splice){if((c=n).deps&&o(c.deps,c.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},"function"==typeof r&&(r=l,l=u),l?e(t,n,i,r):setTimeout(function(){e(t,n,i,r)},4),o},o.config=function(t){return o(t)},n._defined=l,(r=function(t,e,n){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(n=e,e=[]),m(l,t)||m(u,t)||(u[t]=[t,e,n])}).amd={jQuery:!0}}(),e.requirejs=n,e.require=i,e.define=r),e.define("almond",function(){}),e.define("jquery",[],function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e}),e.define("select2/utils",["jquery"],function(t){var e={};function n(t){var e=t.prototype,n=[];for(var i in e){"function"==typeof e[i]&&("constructor"!==i&&n.push(i))}return n}e.Extend=function(t,e){var n={}.hasOwnProperty;function i(){this.constructor=t}for(var r in e)n.call(e,r)&&(t[r]=e[r]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},e.Decorate=function(t,e){var i=n(e),r=n(t);function o(){var n=Array.prototype.unshift,i=e.prototype.constructor.length,r=t.prototype.constructor;i>0&&(n.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,o.prototype=new function(){this.constructor=o};for(var a=0;a<r.length;a++){var s=r[a];o.prototype[s]=t.prototype[s]}for(var l=function(t){var n=function(){};t in o.prototype&&(n=o.prototype[t]);var i=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,n),i.apply(this,arguments)}},u=0;u<i.length;u++){var c=i[u];o.prototype[c]=l(c)}return o};var i=function(){this.listeners={}};i.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},i.prototype.trigger=function(t){var e=Array.prototype.slice,n=e.call(arguments,1);this.listeners=this.listeners||{},null==n&&(n=[]),0===n.length&&n.push({}),n[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(t,e){for(var n=0,i=t.length;n<i;n++)t[n].apply(this,e)},e.Observable=i,e.generateChars=function(t){for(var e="",n=0;n<t;n++){e+=Math.floor(36*Math.random()).toString(36)}return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var n=e.split("-"),i=t;if(1!==n.length){for(var r=0;r<n.length;r++){var o=n[r];(o=o.substring(0,1).toLowerCase()+o.substring(1))in i||(i[o]={}),r==n.length-1&&(i[o]=t[e]),i=i[o]}delete t[e]}}return t},e.hasScroll=function(e,n){var i=t(n),r=n.style.overflowX,o=n.style.overflowY;return(r!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===r||"scroll"===o||(i.innerHeight()<n.scrollHeight||i.innerWidth()<n.scrollWidth))},e.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})},e.appendMany=function(e,n){if("1.7"===t.fn.jquery.substr(0,3)){var i=t();t.map(n,function(t){i=i.add(t)}),n=i}e.append(n)},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var e=t.getAttribute("data-select2-id");return null==e&&(t.id?(e=t.id,t.setAttribute("data-select2-id",e)):(t.setAttribute("data-select2-id",++r),e=r.toString())),e},e.StoreData=function(t,n,i){var r=e.GetUniqueElementId(t);e.__cache[r]||(e.__cache[r]={}),e.__cache[r][n]=i},e.GetData=function(n,i){var r=e.GetUniqueElementId(n);return i?e.__cache[r]&&null!=e.__cache[r][i]?e.__cache[r][i]:t(n).data(i):e.__cache[r]},e.RemoveData=function(t){var n=e.GetUniqueElementId(t);null!=e.__cache[n]&&delete e.__cache[n],t.removeAttribute("data-select2-id")},e}),e.define("select2/results",["jquery","./utils"],function(t,e){function n(t,e,i){this.$element=t,this.data=i,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},n.prototype.clear=function(){this.$results.empty()},n.prototype.displayMessage=function(e){var n=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var i=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);i.append(n(r(e.args))),i[0].className+=" select2-results__message",this.$results.append(i)},n.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},n.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var n=0;n<t.results.length;n++){var i=t.results[n],r=this.option(i);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},n.prototype.position=function(t,e){e.find(".select2-results").append(t)},n.prototype.sort=function(t){return this.options.get("sorter")(t)},n.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},n.prototype.setClasses=function(){var n=this;this.data.current(function(i){var r=t.map(i,function(t){return t.id.toString()});n.$results.find(".select2-results__option[aria-selected]").each(function(){var n=t(this),i=e.GetData(this,"data"),o=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(o,r)>-1?n.attr("aria-selected","true"):n.attr("aria-selected","false")})})},n.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},n=this.option(e);n.className+=" loading-results",this.$results.prepend(n)},n.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},n.prototype.option=function(n){var i=document.createElement("li");i.className="select2-results__option";var r={role:"option","aria-selected":"false"},o=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var a in(null!=n.element&&o.call(n.element,":disabled")||null==n.element&&n.disabled)&&(delete r["aria-selected"],r["aria-disabled"]="true"),null==n.id&&delete r["aria-selected"],null!=n._resultId&&(i.id=n._resultId),n.title&&(i.title=n.title),n.children&&(r.role="group",r["aria-label"]=n.text,delete r["aria-selected"]),r){var s=r[a];i.setAttribute(a,s)}if(n.children){var l=t(i),u=document.createElement("strong");u.className="select2-results__group";t(u);this.template(n,u);for(var c=[],d=0;d<n.children.length;d++){var h=n.children[d],f=this.option(h);c.push(f)}var p=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});p.append(c),l.append(u),l.append(p)}else this.template(n,i);return e.StoreData(i,"data",n),i},n.prototype.bind=function(n,i){var r=this,o=n.id+"-results";this.$results.attr("id",o),n.on("results:all",function(t){r.clear(),r.append(t.data),n.isOpen()&&(r.setClasses(),r.highlightFirstItem())}),n.on("results:append",function(t){r.append(t.data),n.isOpen()&&r.setClasses()}),n.on("query",function(t){r.hideMessages(),r.showLoading(t)}),n.on("select",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())}),n.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),n.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")}),n.on("results:select",function(){var t=r.getHighlightedResults();if(0!==t.length){var n=e.GetData(t[0],"data");"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:n})}}),n.on("results:previous",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t);if(!(n<=0)){var i=n-1;0===t.length&&(i=0);var o=e.eq(i);o.trigger("mouseenter");var a=r.$results.offset().top,s=o.offset().top,l=r.$results.scrollTop()+(s-a);0===i?r.$results.scrollTop(0):s-a<0&&r.$results.scrollTop(l)}}),n.on("results:next",function(){var t=r.getHighlightedResults(),e=r.$results.find("[aria-selected]"),n=e.index(t)+1;if(!(n>=e.length)){var i=e.eq(n);i.trigger("mouseenter");var o=r.$results.offset().top+r.$results.outerHeight(!1),a=i.offset().top+i.outerHeight(!1),s=r.$results.scrollTop()+a-o;0===n?r.$results.scrollTop(0):a>o&&r.$results.scrollTop(s)}}),n.on("results:focus",function(t){t.element.addClass("select2-results__option--highlighted")}),n.on("results:message",function(t){r.displayMessage(t)}),t.fn.mousewheel&&this.$results.on("mousewheel",function(t){var e=r.$results.scrollTop(),n=r.$results.get(0).scrollHeight-e+t.deltaY,i=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&n<=r.$results.height();i?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(n){var i=t(this),o=e.GetData(this,"data");"true"!==i.attr("aria-selected")?r.trigger("select",{originalEvent:n,data:o}):r.options.get("multiple")?r.trigger("unselect",{originalEvent:n,data:o}):r.trigger("close",{})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(n){var i=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted"),r.trigger("results:focus",{data:i,element:t(this)})})},n.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},n.prototype.destroy=function(){this.$results.remove()},n.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),n=this.$results.offset().top,i=t.offset().top,r=this.$results.scrollTop()+(i-n),o=i-n;r-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(o>this.$results.outerHeight()||o<0)&&this.$results.scrollTop(r)}},n.prototype.template=function(e,n){var i=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),o=i(e,n);null==o?n.style.display="none":"string"==typeof o?n.innerHTML=r(o):t(n).append(o)},n}),e.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),e.define("select2/selection/base",["jquery","../utils","../keys"],function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var n=t('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),n.attr("title",this.$element.attr("title")),n.attr("tabindex",this._tabindex),n.attr("aria-disabled","false"),this.$selection=n,n},i.prototype.bind=function(t,e){var i=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",function(t){i.trigger("focus",t)}),this.$selection.on("blur",function(t){i._handleBlur(t)}),this.$selection.on("keydown",function(t){i.trigger("keypress",t),t.which===n.SPACE&&t.preventDefault()}),t.on("results:focus",function(t){i.$selection.attr("aria-activedescendant",t.data._resultId)}),t.on("selection:update",function(t){i.update(t.data)}),t.on("open",function(){i.$selection.attr("aria-expanded","true"),i.$selection.attr("aria-owns",r),i._attachCloseHandler(t)}),t.on("close",function(){i.$selection.attr("aria-expanded","false"),i.$selection.removeAttr("aria-activedescendant"),i.$selection.removeAttr("aria-owns"),i.$selection.trigger("focus"),i._detachCloseHandler(t)}),t.on("enable",function(){i.$selection.attr("tabindex",i._tabindex),i.$selection.attr("aria-disabled","false")}),t.on("disable",function(){i.$selection.attr("tabindex","-1"),i.$selection.attr("aria-disabled","true")})},i.prototype._handleBlur=function(e){var n=this;window.setTimeout(function(){document.activeElement==n.$selection[0]||t.contains(n.$selection[0],document.activeElement)||n.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(n){t(document.body).on("mousedown.select2."+n.id,function(n){var i=t(n.target).closest(".select2");t(".select2.select2-container--open").each(function(){this!=i[0]&&e.GetData(this,"element").select2("close")})})},i.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},i.prototype.position=function(t,e){e.find(".selection").append(t)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},i.prototype.isEnabled=function(){return!this.isDisabled()},i.prototype.isDisabled=function(){return this.options.get("disabled")},i}),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(t,e,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var n=this;r.__super__.bind.apply(this,arguments);var i=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",i).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(t){1===t.which&&n.trigger("toggle",{originalEvent:t})}),this.$selection.on("focus",function(t){}),this.$selection.on("blur",function(t){}),t.on("focus",function(e){t.isOpen()||n.$selection.trigger("focus")})},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],n=this.$selection.find(".select2-selection__rendered"),i=this.display(e,n);n.empty().append(i);var r=e.title||e.text;r?n.attr("title",r):n.removeAttr("title")}else this.clear()},r}),e.define("select2/selection/multiple",["jquery","./base","../utils"],function(t,e,n){function i(t,e){i.__super__.constructor.apply(this,arguments)}return n.Extend(i,e),i.prototype.render=function(){var t=i.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},i.prototype.bind=function(e,r){var o=this;i.__super__.bind.apply(this,arguments),this.$selection.on("click",function(t){o.trigger("toggle",{originalEvent:t})}),this.$selection.on("click",".select2-selection__choice__remove",function(e){if(!o.isDisabled()){var i=t(this).parent(),r=n.GetData(i[0],"data");o.trigger("unselect",{originalEvent:e,data:r})}})},i.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},i.prototype.display=function(t,e){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(t,e))},i.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},i.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],i=0;i<t.length;i++){var r=t[i],o=this.selectionContainer(),a=this.display(r,o);o.append(a);var s=r.title||r.text;s&&o.attr("title",s),n.StoreData(o[0],"data",r),e.push(o)}var l=this.$selection.find(".select2-selection__rendered");n.appendMany(l,e)}},i}),e.define("select2/selection/placeholder",["../utils"],function(t){function e(t,e,n){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var n=this.selectionContainer();return n.html(this.display(e)),n.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),n},e.prototype.update=function(t,e){var n=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||n)return t.call(this,e);this.clear();var i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},e}),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(t,e,n){function i(){}return i.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(t){i._handleClear(t)}),e.on("keypress",function(t){i._handleKeyboardClear(t,e)})},i.prototype._handleClear=function(t,e){if(!this.isDisabled()){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();var r=n.GetData(i[0],"data"),o=this.$element.val();this.$element.val(this.placeholder.id);var a={data:r};if(this.trigger("clear",a),a.prevented)this.$element.val(o);else{for(var s=0;s<r.length;s++)if(a={data:r[s]},this.trigger("unselect",a),a.prevented)return void this.$element.val(o);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},i.prototype._handleKeyboardClear=function(t,n,i){i.isOpen()||n.which!=e.DELETE&&n.which!=e.BACKSPACE||this._handleClear(n)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var r=this.options.get("translations").get("removeAllItems"),o=t('<span class="select2-selection__clear" title="'+r()+'">×</span>');n.StoreData(o[0],"data",i),this.$selection.find(".select2-selection__rendered").prepend(o)}},i}),e.define("select2/selection/search",["jquery","../utils","../keys"],function(t,e,n){function i(t,e,n){t.call(this,e,n)}return i.prototype.render=function(e){var n=t('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=n,this.$search=n.find("input");var i=e.call(this);return this._transferTabIndex(),i},i.prototype.bind=function(t,i,r){var o=this,a=i.id+"-results";t.call(this,i,r),i.on("open",function(){o.$search.attr("aria-controls",a),o.$search.trigger("focus")}),i.on("close",function(){o.$search.val(""),o.$search.removeAttr("aria-controls"),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")}),i.on("enable",function(){o.$search.prop("disabled",!1),o._transferTabIndex()}),i.on("disable",function(){o.$search.prop("disabled",!0)}),i.on("focus",function(t){o.$search.trigger("focus")}),i.on("results:focus",function(t){t.data._resultId?o.$search.attr("aria-activedescendant",t.data._resultId):o.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(t){o.trigger("focus",t)}),this.$selection.on("focusout",".select2-search--inline",function(t){o._handleBlur(t)}),this.$selection.on("keydown",".select2-search--inline",function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===n.BACKSPACE&&""===o.$search.val()){var i=o.$searchContainer.prev(".select2-selection__choice");if(i.length>0){var r=e.GetData(i[0],"data");o.searchRemoveChoice(r),t.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(t){o.$search.val()&&t.stopPropagation()});var s=document.documentMode,l=s&&s<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(t){l?o.$selection.off("input.search input.searchcheck"):o.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(t){if(l&&"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=n.SHIFT&&e!=n.CTRL&&e!=n.ALT&&e!=n.TAB&&o.handleSearch(t)}})},i.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},i.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},i.prototype.update=function(t,e){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.trigger("focus")},i.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},i.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},i.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";""!==this.$search.attr("placeholder")?t=this.$selection.find(".select2-selection__rendered").width():t=.75*(this.$search.val().length+1)+"em";this.$search.css("width",t)},i}),e.define("select2/selection/eventRelay",["jquery"],function(t){function e(){}return e.prototype.bind=function(e,n,i){var r=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],a=["opening","closing","selecting","unselecting","clearing"];e.call(this,n,i),n.on("*",function(e,n){if(-1!==t.inArray(e,o)){n=n||{};var i=t.Event("select2:"+e,{params:n});r.$element.trigger(i),-1!==t.inArray(e,a)&&(n.prevented=i.isDefaultPrevented())}})},e}),e.define("select2/translation",["jquery","require"],function(t,e){function n(t){this.dict=t||{}}return n.prototype.all=function(){return this.dict},n.prototype.get=function(t){return this.dict[t]},n.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},n._cache={},n.loadPath=function(t){if(!(t in n._cache)){var i=e(t);n._cache[t]=i}return new n(n._cache[t])},n}),e.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),e.define("select2/data/base",["../utils"],function(t){function e(t,n){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,n){var i=e.id+"-result-";return i+=t.generateChars(4),null!=n.id?i+="-"+n.id.toString():i+="-"+t.generateChars(4),i},e}),e.define("select2/data/select",["./base","../utils","jquery"],function(t,e,n){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,t),i.prototype.current=function(t){var e=[],i=this;this.$element.find(":selected").each(function(){var t=n(this),r=i.item(t);e.push(r)}),t(e)},i.prototype.select=function(t){var e=this;if(t.selected=!0,n(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current(function(i){var r=[];(t=[t]).push.apply(t,i);for(var o=0;o<t.length;o++){var a=t[o].id;-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")});else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},i.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,n(t.element).is("option"))return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current(function(i){for(var r=[],o=0;o<i.length;o++){var a=i[o].id;a!==t.id&&-1===n.inArray(a,r)&&r.push(a)}e.$element.val(r),e.$element.trigger("input").trigger("change")})}},i.prototype.bind=function(t,e){var n=this;this.container=t,t.on("select",function(t){n.select(t.data)}),t.on("unselect",function(t){n.unselect(t.data)})},i.prototype.destroy=function(){this.$element.find("*").each(function(){e.RemoveData(this)})},i.prototype.query=function(t,e){var i=[],r=this;this.$element.children().each(function(){var e=n(this);if(e.is("option")||e.is("optgroup")){var o=r.item(e),a=r.matches(t,o);null!==a&&i.push(a)}}),e({results:i})},i.prototype.addOptions=function(t){e.appendMany(this.$element,t)},i.prototype.option=function(t){var i;t.children?(i=document.createElement("optgroup")).label=t.text:void 0!==(i=document.createElement("option")).textContent?i.textContent=t.text:i.innerText=t.text,void 0!==t.id&&(i.value=t.id),t.disabled&&(i.disabled=!0),t.selected&&(i.selected=!0),t.title&&(i.title=t.title);var r=n(i),o=this._normalizeItem(t);return o.element=i,e.StoreData(i,"data",o),r},i.prototype.item=function(t){var i={};if(null!=(i=e.GetData(t[0],"data")))return i;if(t.is("option"))i={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){i={text:t.prop("label"),children:[],title:t.prop("title")};for(var r=t.children("option"),o=[],a=0;a<r.length;a++){var s=n(r[a]),l=this.item(s);o.push(l)}i.children=o}return(i=this._normalizeItem(i)).element=t[0],e.StoreData(t[0],"data",i),i},i.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});return null!=(t=n.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),n.extend({},{selected:!1,disabled:!1},t)},i.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},i}),e.define("select2/data/array",["./select","../utils","jquery"],function(t,e,n){function i(t,e){this._dataToConvert=e.get("data")||[],i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype.bind=function(t,e){i.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},i.prototype.select=function(t){var e=this.$element.find("option").filter(function(e,n){return n.value==t.id.toString()});0===e.length&&(e=this.option(t),this.addOptions(e)),i.__super__.select.call(this,t)},i.prototype.convertToOptions=function(t){var i=this,r=this.$element.find("option"),o=r.map(function(){return i.item(n(this)).id}).get(),a=[];function s(t){return function(){return n(this).val()==t.id}}for(var l=0;l<t.length;l++){var u=this._normalizeItem(t[l]);if(n.inArray(u.id,o)>=0){var c=r.filter(s(u)),d=this.item(c),h=n.extend(!0,{},u,d),f=this.option(h);c.replaceWith(f)}else{var p=this.option(u);if(u.children){var m=this.convertToOptions(u.children);e.appendMany(p,m)}a.push(p)}}return a},i}),e.define("select2/data/ajax",["./array","../utils","jquery"],function(t,e,n){function i(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),i.__super__.constructor.call(this,t,e)}return e.Extend(i,t),i.prototype._applyDefaults=function(t){var e={data:function(t){return n.extend({},t,{q:t.term})},transport:function(t,e,i){var r=n.ajax(t);return r.then(e),r.fail(i),r}};return n.extend({},e,t,!0)},i.prototype.processResults=function(t){return t},i.prototype.query=function(t,e){var i=this;null!=this._request&&(n.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=n.extend({type:"GET"},this.ajaxOptions);function o(){var o=r.transport(r,function(r){var o=i.processResults(r,t);i.options.get("debug")&&window.console&&console.error&&(o&&o.results&&n.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)},function(){"status"in o&&(0===o.status||"0"===o.status)||i.trigger("results:message",{message:"errorLoading"})});i._request=o}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(o,this.ajaxOptions.delay)):o()},i}),e.define("select2/data/tags",["jquery"],function(t){function e(e,n,i){var r=i.get("tags"),o=i.get("createTag");void 0!==o&&(this.createTag=o);var a=i.get("insertTag");if(void 0!==a&&(this.insertTag=a),e.call(this,n,i),t.isArray(r))for(var s=0;s<r.length;s++){var l=r[s],u=this._normalizeItem(l),c=this.option(u);this.$element.append(c)}}return e.prototype.query=function(t,e,n){var i=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,function t(r,o){for(var a=r.results,s=0;s<a.length;s++){var l=a[s],u=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||u)return!o&&(r.data=a,void n(r))}if(o)return!0;var c=i.createTag(e);if(null!=c){var d=i.option(c);d.attr("data-select2-tag",!0),i.addOptions([d]),i.insertTag(a,c)}r.results=a,n(r)}):t.call(this,e,n)},e.prototype.createTag=function(e,n){var i=t.trim(n.term);return""===i?null:{id:i,text:i}},e.prototype.insertTag=function(t,e,n){e.unshift(n)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each(function(){this.selected||t(this).remove()})},e}),e.define("select2/data/tokenizer",["jquery"],function(t){function e(t,e,n){var i=n.get("tokenizer");void 0!==i&&(this.tokenizer=i),t.call(this,e,n)}return e.prototype.bind=function(t,e,n){t.call(this,e,n),this.$search=e.dropdown.$search||e.selection.$search||n.find(".select2-search__field")},e.prototype.query=function(e,n,i){var r=this;n.term=n.term||"";var o=this.tokenizer(n,this.options,function(e){var n=r._normalizeItem(e);if(!r.$element.find("option").filter(function(){return t(this).val()===n.id}).length){var i=r.option(n);i.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([i])}!function(t){r.trigger("select",{data:t})}(n)});o.term!==n.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.trigger("focus")),n.term=o.term),e.call(this,n,i)},e.prototype.tokenizer=function(e,n,i,r){for(var o=i.get("tokenSeparators")||[],a=n.term,s=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};s<a.length;){var u=a[s];if(-1!==t.inArray(u,o)){var c=a.substr(0,s),d=l(t.extend({},n,{term:c}));null!=d?(r(d),a=a.substr(s+1)||"",s=0):s++}else s++}return{term:a}},e}),e.define("select2/data/minimumInputLength",[],function(){function t(t,e,n){this.minimumInputLength=n.get("minimumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),e.define("select2/data/maximumInputLength",[],function(){function t(t,e,n){this.maximumInputLength=n.get("maximumInputLength"),t.call(this,e,n)}return t.prototype.query=function(t,e,n){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,n)},t}),e.define("select2/data/maximumSelectionLength",[],function(){function t(t,e,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),t.call(this,e,n)}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",function(){i._checkIfMaximumSelected()})},t.prototype.query=function(t,e,n){var i=this;this._checkIfMaximumSelected(function(){t.call(i,e,n)})},t.prototype._checkIfMaximumSelected=function(t,e){var n=this;this.current(function(t){var i=null!=t?t.length:0;n.maximumSelectionLength>0&&i>=n.maximumSelectionLength?n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):e&&e()})},t}),e.define("select2/dropdown",["jquery","./utils"],function(t,e){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},n.prototype.bind=function(){},n.prototype.position=function(t,e){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),e.define("select2/dropdown/search",["jquery","../utils"],function(t,e){function n(){}return n.prototype.render=function(e){var n=e.call(this),i=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=i,this.$search=i.find("input"),n.prepend(i),n},n.prototype.bind=function(e,n,i){var r=this,o=n.id+"-results";e.call(this,n,i),this.$search.on("keydown",function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()}),this.$search.on("input",function(e){t(this).off("keyup")}),this.$search.on("keyup input",function(t){r.handleSearch(t)}),n.on("open",function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",o),r.$search.trigger("focus"),window.setTimeout(function(){r.$search.trigger("focus")},0)}),n.on("close",function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")}),n.on("focus",function(){n.isOpen()||r.$search.trigger("focus")}),n.on("results:all",function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))}),n.on("results:focus",function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")})},n.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},n.prototype.showSearch=function(t,e){return!0},n}),e.define("select2/dropdown/hidePlaceholder",[],function(){function t(t,e,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),t.call(this,e,n,i)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var n=e.slice(0),i=e.length-1;i>=0;i--){var r=e[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},t}),e.define("select2/dropdown/infiniteScroll",["jquery"],function(t){function e(t,e,n,i){this.lastParams={},t.call(this,e,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("query",function(t){i.lastParams=t,i.loading=!0}),e.on("query:append",function(t){i.lastParams=t,i.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&(this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore())},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),n=this.options.get("translations").get("loadingMore");return e.html(n(this.lastParams)),e},e}),e.define("select2/dropdown/attachBody",["jquery","../utils"],function(t,e){function n(e,n,i){this.$dropdownParent=t(i.get("dropdownParent")||document.body),e.call(this,n,i)}return n.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("open",function(){i._showDropdown(),i._attachPositioningHandler(e),i._bindContainerResultHandlers(e)}),e.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(e)}),this.$dropdownContainer.on("mousedown",function(t){t.stopPropagation()})},n.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},n.prototype.position=function(t,e,n){e.attr("class",n.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=n},n.prototype.render=function(e){var n=t("<span></span>"),i=e.call(this);return n.append(i),this.$dropdownContainer=n,n},n.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},n.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var n=this;e.on("results:all",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:append",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("results:message",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("select",function(){n._positionDropdown(),n._resizeDropdown()}),e.on("unselect",function(){n._positionDropdown(),n._resizeDropdown()}),this._containerResultsHandlersBound=!0}},n.prototype._attachPositioningHandler=function(n,i){var r=this,o="scroll.select2."+i.id,a="resize.select2."+i.id,s="orientationchange.select2."+i.id,l=this.$container.parents().filter(e.hasScroll);l.each(function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})}),l.on(o,function(n){var i=e.GetData(this,"select2-scroll-position");t(this).scrollTop(i.y)}),t(window).on(o+" "+a+" "+s,function(t){r._positionDropdown(),r._resizeDropdown()})},n.prototype._detachPositioningHandler=function(n,i){var r="scroll.select2."+i.id,o="resize.select2."+i.id,a="orientationchange.select2."+i.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+o+" "+a)},n.prototype._positionDropdown=function(){var e=t(window),n=this.$dropdown.hasClass("select2-dropdown--above"),i=this.$dropdown.hasClass("select2-dropdown--below"),r=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var a={height:this.$container.outerHeight(!1)};a.top=o.top,a.bottom=o.top+a.height;var s=this.$dropdown.outerHeight(!1),l=e.scrollTop(),u=e.scrollTop()+e.height(),c=l<o.top-s,d=u>o.bottom+s,h={left:o.left,top:a.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(t.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),h.top-=p.top,h.left-=p.left,n||i||(r="below"),d||!c||n?!c&&d&&n&&(r="below"):r="above",("above"==r||n&&"below"!==r)&&(h.top=a.top-p.top-s),null!=r&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(h)},n.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},n.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},n}),e.define("select2/dropdown/minimumResultsForSearch",[],function(){function t(t,e,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,n,i)}return t.prototype.showSearch=function(t,e){return!(function t(e){for(var n=0,i=0;i<e.length;i++){var r=e[i];r.children?n+=t(r.children):n++}return n}(e.data.results)<this.minimumResultsForSearch)&&t.call(this,e)},t}),e.define("select2/dropdown/selectOnClose",["../utils"],function(t){function e(){}return e.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("close",function(t){i._handleSelectOnClose(t)})},e.prototype._handleSelectOnClose=function(e,n){if(n&&null!=n.originalSelect2Event){var i=n.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var o=t.GetData(r[0],"data");null!=o.element&&o.element.selected||null==o.element&&o.selected||this.trigger("select",{data:o})}},e}),e.define("select2/dropdown/closeOnSelect",[],function(){function t(){}return t.prototype.bind=function(t,e,n){var i=this;t.call(this,e,n),e.on("select",function(t){i._selectTriggered(t)}),e.on("unselect",function(t){i._selectTriggered(t)})},t.prototype._selectTriggered=function(t,e){var n=e.originalEvent;n&&(n.ctrlKey||n.metaKey)||this.trigger("close",{originalEvent:n,originalSelect2Event:e})},t}),e.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,n="Please delete "+e+" character";return 1!=e&&(n+="s"),n},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(t,e,n,i,r,o,a,s,l,u,c,d,h,f,p,m,g,v,y,b,w,_,x,D,k,C,T,S,$){function E(){this.reset()}return E.prototype.apply=function(c){if(null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter){if(null!=c.ajax?c.dataAdapter=p:null!=c.data?c.dataAdapter=f:c.dataAdapter=h,c.minimumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,y)),c.maximumSelectionLength>0&&(c.dataAdapter=u.Decorate(c.dataAdapter,b)),c.tags&&(c.dataAdapter=u.Decorate(c.dataAdapter,m)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=u.Decorate(c.dataAdapter,g)),null!=c.query){var d=e(c.amdBase+"compat/query");c.dataAdapter=u.Decorate(c.dataAdapter,d)}if(null!=c.initSelection){var $=e(c.amdBase+"compat/initSelection");c.dataAdapter=u.Decorate(c.dataAdapter,$)}}if(null==c.resultsAdapter&&(c.resultsAdapter=n,null!=c.ajax&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,D)),null!=c.placeholder&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,x)),c.selectOnClose&&(c.resultsAdapter=u.Decorate(c.resultsAdapter,T))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=w;else{var E=u.Decorate(w,_);c.dropdownAdapter=E}if(0!==c.minimumResultsForSearch&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,C)),c.closeOnSelect&&(c.dropdownAdapter=u.Decorate(c.dropdownAdapter,S)),null!=c.dropdownCssClass||null!=c.dropdownCss||null!=c.adaptDropdownCssClass){var O=e(c.amdBase+"compat/dropdownCss");c.dropdownAdapter=u.Decorate(c.dropdownAdapter,O)}c.dropdownAdapter=u.Decorate(c.dropdownAdapter,k)}if(null==c.selectionAdapter){if(c.multiple?c.selectionAdapter=r:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,o)),c.allowClear&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,a)),c.multiple&&(c.selectionAdapter=u.Decorate(c.selectionAdapter,s)),null!=c.containerCssClass||null!=c.containerCss||null!=c.adaptContainerCssClass){var M=e(c.amdBase+"compat/containerCss");c.selectionAdapter=u.Decorate(c.selectionAdapter,M)}c.selectionAdapter=u.Decorate(c.selectionAdapter,l)}c.language=this._resolveLanguage(c.language),c.language.push("en");for(var A=[],j=0;j<c.language.length;j++){var N=c.language[j];-1===A.indexOf(N)&&A.push(N)}return c.language=A,c.translations=this._processTranslations(c.language,c.debug),c},E.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,function(t){return d[t]||t})}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:u.escapeMarkup,language:{},matcher:function n(i,r){if(""===t.trim(i.term))return r;if(r.children&&r.children.length>0){for(var o=t.extend(!0,{},r),a=r.children.length-1;a>=0;a--)null==n(i,r.children[a])&&o.children.splice(a,1);return o.children.length>0?o:n(i,o)}var s=e(r.text).toUpperCase(),l=e(i.term).toUpperCase();return s.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},E.prototype.applyFromElement=function(t,e){var n=t.language,i=this.defaults.language,r=e.prop("lang"),o=e.closest("[lang]").prop("lang"),a=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(n),this._resolveLanguage(i),this._resolveLanguage(o));return t.language=a,t},E.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var n;n=t.isArray(e)?e:[e];for(var i=[],r=0;r<n.length;r++)if(i.push(n[r]),"string"==typeof n[r]&&n[r].indexOf("-")>0){var o=n[r].split("-")[0];i.push(o)}return i},E.prototype._processTranslations=function(e,n){for(var i=new c,r=0;r<e.length;r++){var o=new c,a=e[r];if("string"==typeof a)try{o=c.loadPath(a)}catch(t){try{a=this.defaults.amdLanguageBase+a,o=c.loadPath(a)}catch(t){n&&window.console&&console.warn&&console.warn('Select2: The language file for "'+a+'" could not be automatically loaded. A fallback will be used instead.')}}else o=t.isPlainObject(a)?new c(a):a;i.extend(o)}return i},E.prototype.set=function(e,n){var i={};i[t.camelCase(e)]=n;var r=u._convertData(i);t.extend(!0,this.defaults,r)},new E}),e.define("select2/options",["require","jquery","./defaults","./utils"],function(t,e,n,i){function r(e,r){if(this.options=e,null!=r&&this.fromElement(r),null!=r&&(this.options=n.applyFromElement(this.options,r)),this.options=n.apply(this.options),r&&r.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=i.Decorate(this.options.dataAdapter,o)}}return r.prototype.fromElement=function(t){var n=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),i.GetData(t[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(t[0],"data",i.GetData(t[0],"select2Tags")),i.StoreData(t[0],"tags",!0)),i.GetData(t[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),t.attr("ajax--url",i.GetData(t[0],"ajaxUrl")),i.StoreData(t[0],"ajax-Url",i.GetData(t[0],"ajaxUrl")));var r={};function o(t,e){return e.toUpperCase()}for(var a=0;a<t[0].attributes.length;a++){var s=t[0].attributes[a].name;if("data-"==s.substr(0,"data-".length)){var l=s.substring("data-".length),u=i.GetData(t[0],l);r[l.replace(/-([a-z])/g,o)]=u}}e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset&&(r=e.extend(!0,{},t[0].dataset,r));var c=e.extend(!0,{},i.GetData(t[0]),r);for(var d in c=i._convertData(c))e.inArray(d,n)>-1||(e.isPlainObject(this.options[d])?e.extend(this.options[d],c[d]):this.options[d]=c[d]);return this},r.prototype.get=function(t){return this.options[t]},r.prototype.set=function(t,e){this.options[t]=e},r}),e.define("select2/core",["jquery","./options","./utils","./keys"],function(t,e,n,i){var r=function(t,i){null!=n.GetData(t[0],"select2")&&n.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),r.__super__.constructor.call(this);var o=t.attr("tabindex")||0;n.StoreData(t[0],"old-tabindex",o),t.attr("tabindex","-1");var a=this.options.get("dataAdapter");this.dataAdapter=new a(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var u=this.options.get("dropdownAdapter");this.dropdown=new u(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var d=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(t){d.trigger("selection:update",{data:t})}),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),n.StoreData(t[0],"select2",this),t.data("select2",this)};return n.Extend(r,n.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+n.generateChars(2):n.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var n=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var i=this._resolveWidth(t,"style");return null!=i?i:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var a=o.split(";"),s=0,l=a.length;s<l;s+=1){var u=a[s].replace(/\s/g,"").match(n);if(null!==u&&u.length>=1)return u[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",function(){t.dataAdapter.current(function(e){t.trigger("selection:update",{data:e})})}),this.$element.on("focus.select2",function(e){t.trigger("focus",e)}),this._syncA=n.bind(this._syncAttributes,this),this._syncS=n.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=e?(this._observer=new e(function(e){t._syncA(),t._syncS(null,e)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",t._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",t._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",t._syncS,!1))},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerSelectionEvents=function(){var e=this,n=["toggle","focus"];this.selection.on("toggle",function(){e.toggleDropdown()}),this.selection.on("focus",function(t){e.focus(t)}),this.selection.on("*",function(i,r){-1===t.inArray(i,n)&&e.trigger(i,r)})},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",function(e,n){t.trigger(e,n)})},r.prototype._registerEvents=function(){var t=this;this.on("open",function(){t.$container.addClass("select2-container--open")}),this.on("close",function(){t.$container.removeClass("select2-container--open")}),this.on("enable",function(){t.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){t.$container.addClass("select2-container--disabled")}),this.on("blur",function(){t.$container.removeClass("select2-container--focus")}),this.on("query",function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,function(n){t.trigger("results:all",{data:n,query:e})})}),this.on("query:append",function(e){this.dataAdapter.query(e,function(n){t.trigger("results:append",{data:n,query:e})})}),this.on("keypress",function(e){var n=e.which;t.isOpen()?n===i.ESC||n===i.TAB||n===i.UP&&e.altKey?(t.close(e),e.preventDefault()):n===i.ENTER?(t.trigger("results:select",{}),e.preventDefault()):n===i.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):n===i.UP?(t.trigger("results:previous",{}),e.preventDefault()):n===i.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(n===i.ENTER||n===i.SPACE||n===i.DOWN&&e.altKey)&&(t.open(),e.preventDefault())})},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(e,n){var i=!1,r=this;if(!e||!e.target||"OPTION"===e.target.nodeName||"OPTGROUP"===e.target.nodeName){if(n)if(n.addedNodes&&n.addedNodes.length>0)for(var o=0;o<n.addedNodes.length;o++){n.addedNodes[o].selected&&(i=!0)}else n.removedNodes&&n.removedNodes.length>0?i=!0:t.isArray(n)&&t.each(n,function(t,e){if(r._isChangeMutation(t,e))return i=!0,!1});else i=!0;return i}},r.prototype._syncSubtree=function(t,e){var n=this._isChangeMutation(t,e),i=this;n&&this.dataAdapter.current(function(t){i.trigger("selection:update",{data:t})})},r.prototype.trigger=function(t,e){var n=r.__super__.trigger,i={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in i){var o=i[t],a={prevented:!1,name:t,args:e};if(n.call(this,o,a),a.prevented)return void(e.prevented=!0)}n.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},r.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current(function(e){t=e}),t},r.prototype.val=function(e){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==e||0===e.length)return this.$element.val();var n=e[0];t.isArray(n)&&(n=t.map(n,function(t){return t.toString()})),this.$element.val(n).trigger("input").trigger("change")},r.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",n.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),n.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),n.StoreData(e[0],"element",this.$element),e},r}),e.define("jquery-mousewheel",["jquery"],function(t){return t}),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(t,e,n,i,r){if(null==t.fn.select2){var o=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each(function(){var i=t.extend(!0,{},e);new n(t(this),i)}),this;if("string"==typeof e){var i,a=Array.prototype.slice.call(arguments,1);return this.each(function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),i=t[e].apply(t,a)}),t.inArray(e,o)>-1?this:i}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=i),n}),{define:e.define,require:e.require}}(),n=e.require("jquery.select2");return t.fn.select2.amd=e,n}),function(t){var e="iCheck",n=e+"-helper",i="radio",r="checked",o="un"+r,a="disabled",s="determinate",l="in"+s,u="update",c="type",d="touchbegin.i touchend.i",h="addClass",f="removeClass",p="trigger",m="label",g="cursor",v=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);function y(t,e,n){var o=t[0],d=/er/.test(n)?l:/bl/.test(n)?a:r,h=n==u?{checked:o[r],disabled:o[a],indeterminate:"true"==t.attr(l)||"false"==t.attr(s)}:o[d];if(/^(ch|di|in)/.test(n)&&!h)b(t,d);else if(/^(un|en|de)/.test(n)&&h)w(t,d);else if(n==u)for(var f in h)h[f]?b(t,f,!0):w(t,f,!0);else e&&"toggle"!=n||(e||t[p]("ifClicked"),h?o[c]!==i&&w(t,d):b(t,d))}function b(u,d,p){var m=u[0],v=u.parent(),y=d==r,b=d==l,_=d==a,C=b?s:y?o:"enabled",T=x(u,C+D(m[c])),S=x(u,d+D(m[c]));if(!0!==m[d]){if(!p&&d==r&&m[c]==i&&m.name){var $=u.closest("form"),E='input[name="'+m.name+'"]';(E=$.length?$.find(E):t(E)).each(function(){this!==m&&t(this).data(e)&&w(t(this),d)})}b?(m[d]=!0,m[r]&&w(u,r,"force")):(p||(m[d]=!0),y&&m[l]&&w(u,l,!1)),k(u,y,d,p)}m[a]&&x(u,g,!0)&&v.find("."+n).css(g,"default"),v[h](S||x(u,d)||""),v.attr("role")&&!b&&v.attr("aria-"+(_?a:r),"true"),v[f](T||x(u,C)||"")}function w(t,e,i){var u=t[0],d=t.parent(),p=e==r,m=e==l,v=e==a,y=m?s:p?o:"enabled",b=x(t,y+D(u[c])),w=x(t,e+D(u[c]));!1!==u[e]&&(!m&&i&&"force"!=i||(u[e]=!1),k(t,p,y,i)),!u[a]&&x(t,g,!0)&&d.find("."+n).css(g,"pointer"),d[f](w||x(t,e)||""),d.attr("role")&&!m&&d.attr("aria-"+(v?a:r),"false"),d[h](b||x(t,y)||"")}function _(n,i){n.data(e)&&(n.parent().html(n.attr("style",n.data(e).s||"")),i&&n[p](i),n.off(".i").unwrap(),t(m+'[for="'+n[0].id+'"]').add(n.closest(m)).off(".i"))}function x(t,n,i){if(t.data(e))return t.data(e).o[n+(i?"":"Class")]}function D(t){return t.charAt(0).toUpperCase()+t.slice(1)}function k(t,e,n,i){i||(e&&t[p]("ifToggled"),t[p]("ifChanged")[p]("if"+D(n)))}t.fn[e]=function(o,s){var g='input[type="checkbox"], input[type="'+i+'"]',x=t(),D=function(e){e.each(function(){var e=t(this);x=e.is(g)?x.add(e):x.add(e.find(g))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(o))return o=o.toLowerCase(),D(this),x.each(function(){var e=t(this);"destroy"==o?_(e,"ifDestroyed"):y(e,!0,o),t.isFunction(s)&&s()});if("object"!=typeof o&&o)return this;var k=t.extend({checkedClass:r,disabledClass:a,indeterminateClass:l,labelHover:!0},o),C=k.handle,T=k.hoverClass||"hover",S=k.focusClass||"focus",$=k.activeClass||"active",E=!!k.labelHover,O=k.labelHoverClass||"hover",M=0|(""+k.increaseArea).replace("%","");return"checkbox"!=C&&C!=i||(g='input[type="'+C+'"]'),M<-50&&(M=-50),D(this),x.each(function(){var o=t(this);_(o);var s,l=this,g=l.id,x=-M+"%",D=100+2*M+"%",C={position:"absolute",top:x,left:x,display:"block",width:D,height:D,margin:0,padding:0,background:"#fff",border:0,opacity:0},A=v?{position:"absolute",visibility:"hidden"}:M?C:{position:"absolute",opacity:0},j="checkbox"==l[c]?k.checkboxClass||"icheckbox":k.radioClass||"i"+i,N=t(m+'[for="'+g+'"]').add(o.closest(m)),I=!!k.aria,P=e+"-"+Math.random().toString(36).substr(2,6),L='<div class="'+j+'" '+(I?'role="'+l[c]+'" ':"");I&&N.each(function(){L+='aria-labelledby="',this.id?L+=this.id:(this.id=P,L+=P),L+='"'}),L=o.wrap(L+"/>")[p]("ifCreated").parent().append(k.insert),s=t('<ins class="'+n+'"/>').css(C).appendTo(L),o.data(e,{o:k,s:o.attr("style")}).css(A),k.inheritClass&&L[h](l.className||""),k.inheritID&&g&&L.attr("id",e+"-"+g),"static"==L.css("position")&&L.css("position","relative"),y(o,!0,u),N.length&&N.on("click.i mouseover.i mouseout.i "+d,function(e){var n=e[c],i=t(this);if(!l[a]){if("click"==n){if(t(e.target).is("a"))return;y(o,!1,!0)}else E&&(/ut|nd/.test(n)?(L[f](T),i[f](O)):(L[h](T),i[h](O)));if(!v)return!1;e.stopPropagation()}}),o.on("click.i focus.i blur.i keyup.i keydown.i keypress.i",function(t){var e=t[c],n=t.keyCode;return"click"!=e&&("keydown"==e&&32==n?(l[c]==i&&l[r]||(l[r]?w(o,r):b(o,r)),!1):void("keyup"==e&&l[c]==i?!l[r]&&b(o,r):/us|ur/.test(e)&&L["blur"==e?f:h](S)))}),s.on("click mousedown mouseup mouseover mouseout "+d,function(t){var e=t[c],n=/wn|up/.test(e)?$:T;if(!l[a]){if("click"==e?y(o,!1,!0):(/wn|er|in/.test(e)?L[h](n):L[f](n+" "+$),N.length&&E&&n==T&&N[/ut|nd/.test(e)?f:h](O)),!v)return!1;t.stopPropagation()}})})}}(window.jQuery||window.Zepto),function(t,e){"use strict";var n;if("object"==typeof exports){try{n=require("moment")}catch(t){}module.exports=e(n)}else"function"==typeof define&&define.amd?define(function(t){try{n=t("moment")}catch(t){}return e(n)}):t.Pikaday=e(t.moment)}(this,function(t){"use strict";var e="function"==typeof t,n=!!window.addEventListener,i=window.document,r=window.setTimeout,o=function(t,e,i,r){n?t.addEventListener(e,i,!!r):t.attachEvent("on"+e,i)},a=function(t,e,i,r){n?t.removeEventListener(e,i,!!r):t.detachEvent("on"+e,i)},s=function(t,e){return-1!==(" "+t.className+" ").indexOf(" "+e+" ")},l=function(t,e){s(t,e)||(t.className=""===t.className?e:t.className+" "+e)},u=function(t,e){var n;t.className=(n=(" "+t.className+" ").replace(" "+e+" "," ")).trim?n.trim():n.replace(/^\s+|\s+$/g,"")},c=function(t){return/Array/.test(Object.prototype.toString.call(t))},d=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},h=function(t){var e=t.getDay();return 0===e||6===e},f=function(t){return t%4==0&&t%100!=0||t%400==0},p=function(t,e){return[31,f(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},m=function(t){d(t)&&t.setHours(0,0,0,0)},g=function(t,e){return t.getTime()===e.getTime()},v=function(t,e,n){var i,r;for(i in e)(r=void 0!==t[i])&&"object"==typeof e[i]&&null!==e[i]&&void 0===e[i].nodeName?d(e[i])?n&&(t[i]=new Date(e[i].getTime())):c(e[i])?n&&(t[i]=e[i].slice(0)):t[i]=v({},e[i],n):!n&&r||(t[i]=e[i]);return t},y=function(t,e,n){var r;i.createEvent?((r=i.createEvent("HTMLEvents")).initEvent(e,!0,!1),r=v(r,n),t.dispatchEvent(r)):i.createEventObject&&(r=i.createEventObject(),r=v(r,n),t.fireEvent("on"+e,r))},b=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},w={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},_=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},x=function(t){var e=[],n="false";if(t.isEmpty){if(!t.showDaysInNextAndPreviousMonths)return'<td class="is-empty"></td>';e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled")}return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},D=function(n,i,r,o){var a=new Date(r,i,n);return'<td class="pika-week">'+(e?t(a).isoWeek():function(t,e){t.setHours(0,0,0,0);var n=t.getDate(),i=t.getDay(),r=e,o=r-1,a=function(t){return(t+7-1)%7};t.setDate(n+o-a(i));var s=new Date(t.getFullYear(),0,r),l=(t.getTime()-s.getTime())/864e5;return 1+Math.round((l-o+a(s.getDay()))/7)}(a,o))+"</td>"},k=function(t,e,n,i){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(i?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},C=function(t,e,n,i,r,o){var a,s,l,u,d,h=t._o,f=n===h.minYear,p=n===h.maxYear,m='<div id="'+o+'" class="pika-title" role="heading" aria-live="assertive">',g=!0,v=!0;for(l=[],a=0;a<12;a++)l.push('<option value="'+(n===r?a-e:12+a-e)+'"'+(a===i?' selected="selected"':"")+(f&&a<h.minMonth||p&&a>h.maxMonth?' disabled="disabled"':"")+">"+h.i18n.months[a]+"</option>");for(u='<div class="pika-label">'+h.i18n.months[i]+'<select class="pika-select pika-select-month" tabindex="-1">'+l.join("")+"</select></div>",c(h.yearRange)?(a=h.yearRange[0],s=h.yearRange[1]+1):(a=n-h.yearRange,s=1+n+h.yearRange),l=[];a<s&&a<=h.maxYear;a++)a>=h.minYear&&l.push('<option value="'+a+'"'+(a===n?' selected="selected"':"")+">"+a+"</option>");return d='<div class="pika-label">'+n+h.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+l.join("")+"</select></div>",h.showMonthAfterYear?m+=d+u:m+=u+d,f&&(0===i||h.minMonth>=i)&&(g=!1),p&&(11===i||h.maxMonth<=i)&&(v=!1),0===e&&(m+='<button class="pika-prev'+(g?"":" is-disabled")+'" type="button">'+h.i18n.previousMonth+"</button>"),e===t._o.numberOfMonths-1&&(m+='<button class="pika-next'+(v?"":" is-disabled")+'" type="button">'+h.i18n.nextMonth+"</button>"),m+"</div>"},T=function(t,e,n){return'<table cellpadding="0" cellspacing="0" class="pika-table" role="grid" aria-labelledby="'+n+'">'+function(t){var e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+_(t,e)+'">'+_(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"}(t)+("<tbody>"+e.join("")+"</tbody>")+"</table>"},S=function(a){var l=this,u=l.config(a);l._onMouseDown=function(t){if(l._v){var e=(t=t||window.event).target||t.srcElement;if(e)if(s(e,"is-disabled")||(!s(e,"pika-button")||s(e,"is-empty")||s(e.parentNode,"is-disabled")?s(e,"pika-prev")?l.prevMonth():s(e,"pika-next")&&l.nextMonth():(l.setDate(new Date(e.getAttribute("data-pika-year"),e.getAttribute("data-pika-month"),e.getAttribute("data-pika-day"))),u.bound&&r(function(){l.hide(),u.blurFieldOnSelect&&u.field&&u.field.blur()},100))),s(e,"pika-select"))l._c=!0;else{if(!t.preventDefault)return t.returnValue=!1,!1;t.preventDefault()}}},l._onChange=function(t){var e=(t=t||window.event).target||t.srcElement;e&&(s(e,"pika-select-month")?l.gotoMonth(e.value):s(e,"pika-select-year")&&l.gotoYear(e.value))},l._onKeyChange=function(t){if(t=t||window.event,l.isVisible())switch(t.keyCode){case 13:case 27:u.field&&u.field.blur();break;case 37:l.adjustDate("subtract",1);break;case 38:l.adjustDate("subtract",7);break;case 39:l.adjustDate("add",1);break;case 40:l.adjustDate("add",7);break;case 8:case 46:l.setDate(null)}},l._parseFieldValue=function(){if(u.parse)return u.parse(u.field.value,u.format);if(e){var n=t(u.field.value,u.format,u.formatStrict);return n&&n.isValid()?n.toDate():null}return new Date(Date.parse(u.field.value))},l._onInputChange=function(t){var e;t.firedBy!==l&&(e=l._parseFieldValue(),d(e)&&l.setDate(e),l._v||l.show())},l._onInputFocus=function(){l.show()},l._onInputClick=function(){l.show()},l._onInputBlur=function(){var t=i.activeElement;do{if(s(t,"pika-single"))return}while(t=t.parentNode);l._c||(l._b=r(function(){l.hide()},50)),l._c=!1},l._onClick=function(t){var e=(t=t||window.event).target||t.srcElement,i=e;if(e){!n&&s(e,"pika-select")&&(e.onchange||(e.setAttribute("onchange","return;"),o(e,"change",l._onChange)));do{if(s(i,"pika-single")||i===u.trigger)return}while(i=i.parentNode);l._v&&e!==u.trigger&&i!==u.trigger&&l.hide()}},l.el=i.createElement("div"),l.el.className="pika-single"+(u.isRTL?" is-rtl":"")+(u.theme?" "+u.theme:""),o(l.el,"mousedown",l._onMouseDown,!0),o(l.el,"touchend",l._onMouseDown,!0),o(l.el,"change",l._onChange),u.keyboardInput&&o(i,"keydown",l._onKeyChange),u.field&&(u.container?u.container.appendChild(l.el):u.bound?i.body.appendChild(l.el):u.field.parentNode.insertBefore(l.el,u.field.nextSibling),o(u.field,"change",l._onInputChange),u.defaultDate||(u.defaultDate=l._parseFieldValue(),u.setDefaultDate=!0));var c=u.defaultDate;d(c)?u.setDefaultDate?l.setDate(c,!0):l.gotoDate(c):l.gotoDate(new Date),u.bound?(this.hide(),l.el.className+=" is-bound",o(u.trigger,"click",l._onInputClick),o(u.trigger,"focus",l._onInputFocus),o(u.trigger,"blur",l._onInputBlur)):this.show()};return S.prototype={config:function(t){this._o||(this._o=v({},w,!0));var e=v(this._o,t,!0);e.isRTL=!!e.isRTL,e.field=e.field&&e.field.nodeName?e.field:null,e.theme="string"==typeof e.theme&&e.theme?e.theme:null,e.bound=!!(void 0!==e.bound?e.field&&e.bound:e.field),e.trigger=e.trigger&&e.trigger.nodeName?e.trigger:e.field,e.disableWeekends=!!e.disableWeekends,e.disableDayFn="function"==typeof e.disableDayFn?e.disableDayFn:null;var n=parseInt(e.numberOfMonths,10)||1;if(e.numberOfMonths=n>4?4:n,d(e.minDate)||(e.minDate=!1),d(e.maxDate)||(e.maxDate=!1),e.minDate&&e.maxDate&&e.maxDate<e.minDate&&(e.maxDate=e.minDate=!1),e.minDate&&this.setMinDate(e.minDate),e.maxDate&&this.setMaxDate(e.maxDate),c(e.yearRange)){var i=(new Date).getFullYear()-10;e.yearRange[0]=parseInt(e.yearRange[0],10)||i,e.yearRange[1]=parseInt(e.yearRange[1],10)||i}else e.yearRange=Math.abs(parseInt(e.yearRange,10))||w.yearRange,e.yearRange>100&&(e.yearRange=100);return e},toString:function(n){return n=n||this._o.format,d(this._d)?this._o.toString?this._o.toString(this._d,n):e?t(this._d).format(n):this._d.toDateString():""},getMoment:function(){return e?t(this._d):null},setMoment:function(n,i){e&&t.isMoment(n)&&this.setDate(n.toDate(),i)},getDate:function(){return d(this._d)?new Date(this._d.getTime()):null},setDate:function(t,e){if(!t)return this._d=null,this._o.field&&(this._o.field.value="",y(this._o.field,"change",{firedBy:this})),this.draw();if("string"==typeof t&&(t=new Date(Date.parse(t))),d(t)){var n=this._o.minDate,i=this._o.maxDate;d(n)&&t<n?t=n:d(i)&&t>i&&(t=i),this._d=new Date(t.getTime()),m(this._d),this.gotoDate(this._d),this._o.field&&(this._o.field.value=this.toString(),y(this._o.field,"change",{firedBy:this})),e||"function"!=typeof this._o.onSelect||this._o.onSelect.call(this,this.getDate())}},clear:function(){this.setDate(null)},gotoDate:function(t){var e=!0;if(d(t)){if(this.calendars){var n=new Date(this.calendars[0].year,this.calendars[0].month,1),i=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),r=t.getTime();i.setMonth(i.getMonth()+1),i.setDate(i.getDate()-1),e=r<n.getTime()||i.getTime()<r}e&&(this.calendars=[{month:t.getMonth(),year:t.getFullYear()}],"right"===this._o.mainCalendar&&(this.calendars[0].month+=1-this._o.numberOfMonths)),this.adjustCalendars()}},adjustDate:function(t,e){var n,i=this.getDate()||new Date,r=24*parseInt(e)*60*60*1e3;"add"===t?n=new Date(i.valueOf()+r):"subtract"===t&&(n=new Date(i.valueOf()-r)),this.setDate(n)},adjustCalendars:function(){this.calendars[0]=b(this.calendars[0]);for(var t=1;t<this._o.numberOfMonths;t++)this.calendars[t]=b({month:this.calendars[0].month+t,year:this.calendars[0].year});this.draw()},gotoToday:function(){this.gotoDate(new Date)},gotoMonth:function(t){isNaN(t)||(this.calendars[0].month=parseInt(t,10),this.adjustCalendars())},nextMonth:function(){this.calendars[0].month++,this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--,this.adjustCalendars()},gotoYear:function(t){isNaN(t)||(this.calendars[0].year=parseInt(t,10),this.adjustCalendars())},setMinDate:function(t){t instanceof Date?(m(t),this._o.minDate=t,this._o.minYear=t.getFullYear(),this._o.minMonth=t.getMonth()):(this._o.minDate=w.minDate,this._o.minYear=w.minYear,this._o.minMonth=w.minMonth,this._o.startRange=w.startRange),this.draw()},setMaxDate:function(t){t instanceof Date?(m(t),this._o.maxDate=t,this._o.maxYear=t.getFullYear(),this._o.maxMonth=t.getMonth()):(this._o.maxDate=w.maxDate,this._o.maxYear=w.maxYear,this._o.maxMonth=w.maxMonth,this._o.endRange=w.endRange),this.draw()},setStartRange:function(t){this._o.startRange=t},setEndRange:function(t){this._o.endRange=t},draw:function(t){if(this._v||t){var e,n=this._o,i=n.minYear,o=n.maxYear,a=n.minMonth,s=n.maxMonth,l="";this._y<=i&&(this._y=i,!isNaN(a)&&this._m<a&&(this._m=a)),this._y>=o&&(this._y=o,!isNaN(s)&&this._m>s&&(this._m=s));for(var u=0;u<n.numberOfMonths;u++)e="pika-title-"+Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,2),l+='<div class="pika-lendar">'+C(this,u,this.calendars[u].year,this.calendars[u].month,this.calendars[0].year,e)+this.render(this.calendars[u].year,this.calendars[u].month,e)+"</div>";this.el.innerHTML=l,n.bound&&"hidden"!==n.field.type&&r(function(){n.trigger.focus()},1),"function"==typeof this._o.onDraw&&this._o.onDraw(this),n.bound&&n.field.setAttribute("aria-label",n.ariaLabel)}},adjustPosition:function(){var t,e,n,r,o,a,s,c,d,h,f,p;if(!this._o.container){if(this.el.style.position="absolute",e=t=this._o.trigger,n=this.el.offsetWidth,r=this.el.offsetHeight,o=window.innerWidth||i.documentElement.clientWidth,a=window.innerHeight||i.documentElement.clientHeight,s=window.pageYOffset||i.body.scrollTop||i.documentElement.scrollTop,f=!0,p=!0,"function"==typeof t.getBoundingClientRect)c=(h=t.getBoundingClientRect()).left+window.pageXOffset,d=h.bottom+window.pageYOffset;else for(c=e.offsetLeft,d=e.offsetTop+e.offsetHeight;e=e.offsetParent;)c+=e.offsetLeft,d+=e.offsetTop;(this._o.reposition&&c+n>o||this._o.position.indexOf("right")>-1&&c-n+t.offsetWidth>0)&&(c=c-n+t.offsetWidth,f=!1),(this._o.reposition&&d+r>a+s||this._o.position.indexOf("top")>-1&&d-r-t.offsetHeight>0)&&(d=d-r-t.offsetHeight,p=!1),this.el.style.left=c+"px",this.el.style.top=d+"px",l(this.el,f?"left-aligned":"right-aligned"),l(this.el,p?"bottom-aligned":"top-aligned"),u(this.el,f?"right-aligned":"left-aligned"),u(this.el,p?"top-aligned":"bottom-aligned")}},render:function(t,e,n){var i=this._o,r=new Date,o=p(t,e),a=new Date(t,e,1).getDay(),s=[],l=[];m(r),i.firstDay>0&&(a-=i.firstDay)<0&&(a+=7);for(var u=0===e?11:e-1,c=11===e?0:e+1,f=0===e?t-1:t,v=11===e?t+1:t,y=p(f,u),b=o+a,w=b;w>7;)w-=7;b+=7-w;for(var _=!1,C=0,S=0;C<b;C++){var $=new Date(t,e,C-a+1),E=!!d(this._d)&&g($,this._d),O=g($,r),M=-1!==i.events.indexOf($.toDateString()),A=C<a||C>=o+a,j=C-a+1,N=e,I=t,P=i.startRange&&g(i.startRange,$),L=i.endRange&&g(i.endRange,$),R=i.startRange&&i.endRange&&i.startRange<$&&$<i.endRange;A&&(C<a?(j=y+j,N=u,I=f):(j-=o,N=c,I=v));var Y={day:j,month:N,year:I,hasEvent:M,isSelected:E,isToday:O,isDisabled:i.minDate&&$<i.minDate||i.maxDate&&$>i.maxDate||i.disableWeekends&&h($)||i.disableDayFn&&i.disableDayFn($),isEmpty:A,isStartRange:P,isEndRange:L,isInRange:R,showDaysInNextAndPreviousMonths:i.showDaysInNextAndPreviousMonths,enableSelectionDaysInNextAndPreviousMonths:i.enableSelectionDaysInNextAndPreviousMonths};i.pickWholeWeek&&E&&(_=!0),l.push(x(Y)),7==++S&&(i.showWeekNumber&&l.unshift(D(C-a,e,t,i.firstWeekOfYearMinDays)),s.push(k(l,i.isRTL,i.pickWholeWeek,_)),l=[],S=0,_=!1)}return T(i,s,n)},isVisible:function(){return this._v},show:function(){this.isVisible()||(this._v=!0,this.draw(),u(this.el,"is-hidden"),this._o.bound&&(o(i,"click",this._onClick),this.adjustPosition()),"function"==typeof this._o.onOpen&&this._o.onOpen.call(this))},hide:function(){var t=this._v;!1!==t&&(this._o.bound&&a(i,"click",this._onClick),this._o.container||(this.el.style.position="static",this.el.style.left="auto",this.el.style.top="auto"),l(this.el,"is-hidden"),this._v=!1,void 0!==t&&"function"==typeof this._o.onClose&&this._o.onClose.call(this))},destroy:function(){var t=this._o;this.hide(),a(this.el,"mousedown",this._onMouseDown,!0),a(this.el,"touchend",this._onMouseDown,!0),a(this.el,"change",this._onChange),t.keyboardInput&&a(i,"keydown",this._onKeyChange),t.field&&(a(t.field,"change",this._onInputChange),t.bound&&(a(t.trigger,"click",this._onInputClick),a(t.trigger,"focus",this._onInputFocus),a(t.trigger,"blur",this._onInputBlur))),this.el.parentNode&&this.el.parentNode.removeChild(this.el)}},S}),function(t){"use strict";var e=function(e,n){this.options=t.extend({},t.fn.editableform.defaults,n),this.$div=t(e),this.options.scope||(this.options.scope=this)};e.prototype={constructor:e,initInput:function(){this.input=this.options.input,this.value=this.input.str2value(this.options.value),this.input.prerender()},initTemplate:function(){this.$form=t(t.fn.editableform.template)},initButtons:function(){var e=this.$form.find(".editable-buttons");e.append(t.fn.editableform.buttons),"bottom"===this.options.showbuttons&&e.addClass("editable-buttons-bottom")},render:function(){this.$loading=t(t.fn.editableform.loading),this.$div.empty().append(this.$loading),this.initTemplate(),this.options.showbuttons?this.initButtons():this.$form.find(".editable-buttons").remove(),this.showLoading(),this.isSaving=!1,this.$div.triggerHandler("rendering"),this.initInput(),this.$form.find("div.editable-input").append(this.input.$tpl),this.$div.append(this.$form),t.when(this.input.render()).then(t.proxy(function(){if(this.options.showbuttons||this.input.autosubmit(),this.$form.find(".editable-cancel").click(t.proxy(this.cancel,this)),this.input.error)this.error(this.input.error),this.$form.find(".editable-submit").attr("disabled",!0),this.input.$input.attr("disabled",!0),this.$form.submit(function(t){t.preventDefault()});else{this.error(!1),this.input.$input.removeAttr("disabled"),this.$form.find(".editable-submit").removeAttr("disabled");var e=null===this.value||void 0===this.value||""===this.value?this.options.defaultValue:this.value;this.input.value2input(e),this.$form.submit(t.proxy(this.submit,this))}this.$div.triggerHandler("rendered"),this.showForm(),this.input.postrender&&this.input.postrender()},this))},cancel:function(){this.$div.triggerHandler("cancel")},showLoading:function(){var t,e;this.$form?(t=this.$form.outerWidth(),e=this.$form.outerHeight(),t&&this.$loading.width(t),e&&this.$loading.height(e),this.$form.hide()):(t=this.$loading.parent().width())&&this.$loading.width(t),this.$loading.show()},showForm:function(t){this.$loading.hide(),this.$form.show(),!1!==t&&this.input.activate(),this.$div.triggerHandler("show")},error:function(e){var n,i=this.$form.find(".control-group"),r=this.$form.find(".editable-error-block");if(!1===e)i.removeClass(t.fn.editableform.errorGroupClass),r.removeClass(t.fn.editableform.errorBlockClass).empty().hide();else{if(e){n=(""+e).split("\n");for(var o=0;o<n.length;o++)n[o]=t("<div>").text(n[o]).html();e=n.join("<br>")}i.addClass(t.fn.editableform.errorGroupClass),r.addClass(t.fn.editableform.errorBlockClass).html(e).show()}},submit:function(e){e.stopPropagation(),e.preventDefault();var n=this.input.input2value(),i=this.validate(n);if("object"===t.type(i)&&void 0!==i.newValue){if(n=i.newValue,this.input.value2input(n),"string"==typeof i.msg)return this.error(i.msg),void this.showForm()}else if(i)return this.error(i),void this.showForm();if(this.options.savenochange||this.input.value2str(n)!=this.input.value2str(this.value)){var r=this.input.value2submit(n);this.isSaving=!0,t.when(this.save(r)).done(t.proxy(function(t){this.isSaving=!1;var e="function"==typeof this.options.success?this.options.success.call(this.options.scope,t,n):null;return!1===e?(this.error(!1),void this.showForm(!1)):"string"==typeof e?(this.error(e),void this.showForm()):(e&&"object"==typeof e&&e.hasOwnProperty("newValue")&&(n=e.newValue),this.error(!1),this.value=n,void this.$div.triggerHandler("save",{newValue:n,submitValue:r,response:t}))},this)).fail(t.proxy(function(t){var e;this.isSaving=!1,e="function"==typeof this.options.error?this.options.error.call(this.options.scope,t,n):"string"==typeof t?t:t.responseText||t.statusText||"Unknown error!",this.error(e),this.showForm()},this))}else this.$div.triggerHandler("nochange")},save:function(e){this.options.pk=t.fn.editableutils.tryParseJson(this.options.pk,!0);var n,i="function"==typeof this.options.pk?this.options.pk.call(this.options.scope):this.options.pk;if(!!("function"==typeof this.options.url||this.options.url&&("always"===this.options.send||"auto"===this.options.send&&null!=i)))return this.showLoading(),n={name:this.options.name||"",value:e,pk:i},"function"==typeof this.options.params?n=this.options.params.call(this.options.scope,n):(this.options.params=t.fn.editableutils.tryParseJson(this.options.params,!0),t.extend(n,this.options.params)),"function"==typeof this.options.url?this.options.url.call(this.options.scope,n):t.ajax(t.extend({url:this.options.url,data:n,type:"POST"},this.options.ajaxOptions))},validate:function(t){if(void 0===t&&(t=this.value),"function"==typeof this.options.validate)return this.options.validate.call(this.options.scope,t)},option:function(t,e){t in this.options&&(this.options[t]=e),"value"===t&&this.setValue(e)},setValue:function(t,e){this.value=e?this.input.str2value(t):t,this.$form&&this.$form.is(":visible")&&this.input.value2input(this.value)}},t.fn.editableform=function(n){var i=arguments;return this.each(function(){var r=t(this),o=r.data("editableform"),a="object"==typeof n&&n;o||r.data("editableform",o=new e(this,a)),"string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(i,1))})},t.fn.editableform.Constructor=e,t.fn.editableform.defaults={type:"text",url:null,params:null,name:null,pk:null,value:null,defaultValue:null,send:"auto",validate:null,success:null,error:null,ajaxOptions:null,showbuttons:!0,scope:null,savenochange:!1},t.fn.editableform.template='<form class="form-inline editableform"><div class="control-group"><div><div class="editable-input"></div><div class="editable-buttons"></div></div><div class="editable-error-block"></div></div></form>',t.fn.editableform.loading='<div class="editableform-loading"></div>',t.fn.editableform.buttons='<button type="submit" class="editable-submit">ok</button><button type="button" class="editable-cancel">cancel</button>',t.fn.editableform.errorGroupClass=null,t.fn.editableform.errorBlockClass="editable-error",t.fn.editableform.engine="jquery"}(window.jQuery),function(t){"use strict";t.fn.editableutils={inherit:function(t,e){var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t,t.superclass=e.prototype},setCursorPosition:function(t,e){if(t.setSelectionRange)t.setSelectionRange(e,e);else if(t.createTextRange){var n=t.createTextRange();n.collapse(!0),n.moveEnd("character",e),n.moveStart("character",e),n.select()}},tryParseJson:function(t,e){if("string"==typeof t&&t.length&&t.match(/^[\{\[].*[\}\]]$/))if(e)try{t=new Function("return "+t)()}catch(t){}finally{return t}else t=new Function("return "+t)();return t},sliceObj:function(e,n,i){var r,o,a={};if(!t.isArray(n)||!n.length)return a;for(var s=0;s<n.length;s++)r=n[s],e.hasOwnProperty(r)&&(a[r]=e[r]),!0!==i&&(o=r.toLowerCase(),e.hasOwnProperty(o)&&(a[r]=e[o]));return a},getConfigData:function(e){var n={};return t.each(e.data(),function(t,e){("object"!=typeof e||e&&"object"==typeof e&&(e.constructor===Object||e.constructor===Array))&&(n[t]=e)}),n},objectKeys:function(t){if(Object.keys)return Object.keys(t);if(t!==Object(t))throw new TypeError("Object.keys called on a non-object");var e,n=[];for(e in t)Object.prototype.hasOwnProperty.call(t,e)&&n.push(e);return n},escape:function(e){return t("<div>").text(e).html()},itemsByValue:function(e,n,i){if(!n||null===e)return[];if("function"!=typeof i){var r=i||"value";i=function(t){return t[r]}}var o=t.isArray(e),a=[],s=this;return t.each(n,function(n,r){if(r.children)a=a.concat(s.itemsByValue(e,r.children,i));else if(o)t.grep(e,function(t){return t==(r&&"object"==typeof r?i(r):r)}).length&&a.push(r);else{var l=r&&"object"==typeof r?i(r):r;e==l&&a.push(r)}}),a},createInput:function(e){var n,i=e.type;return"date"===i&&("inline"===e.mode?t.fn.editabletypes.datefield?i="datefield":t.fn.editabletypes.dateuifield&&(i="dateuifield"):t.fn.editabletypes.date?i="date":t.fn.editabletypes.dateui&&(i="dateui"),"date"!==i||t.fn.editabletypes.date||(i="combodate")),"datetime"===i&&"inline"===e.mode&&(i="datetimefield"),"wysihtml5"!==i||t.fn.editabletypes[i]||(i="textarea"),"function"==typeof t.fn.editabletypes[i]?new(n=t.fn.editabletypes[i])(this.sliceObj(e,this.objectKeys(n.defaults))):(t.error("Unknown type: "+i),!1)},supportsTransitions:function(){var t=(document.body||document.documentElement).style,e="transition",n=["Moz","Webkit","Khtml","O","ms"];if("string"==typeof t[e])return!0;e=e.charAt(0).toUpperCase()+e.substr(1);for(var i=0;i<n.length;i++)if("string"==typeof t[n[i]+e])return!0;return!1}}}(window.jQuery),function(t){"use strict";var e=function(t,e){this.init(t,e)},n=function(t,e){this.init(t,e)};e.prototype={containerName:null,containerDataName:null,innerCss:null,containerClass:"editable-container editable-popup",defaults:{},init:function(n,i){this.$element=t(n),this.options=t.extend({},t.fn.editableContainer.defaults,i),this.splitOptions(),this.formOptions.scope=this.$element[0],this.initContainer(),this.delayedHide=!1,this.$element.on("destroyed",t.proxy(function(){this.destroy()},this)),t(document).data("editable-handlers-attached")||(t(document).on("keyup.editable",function(e){27===e.which&&t(".editable-open").editableContainer("hide")}),t(document).on("click.editable",function(n){var i,r=t(n.target),o=[".editable-container",".ui-datepicker-header",".datepicker",".modal-backdrop",".bootstrap-wysihtml5-insert-image-modal",".bootstrap-wysihtml5-insert-link-modal"];if(t.contains(document.documentElement,n.target)&&!r.is(document)){for(i=0;i<o.length;i++)if(r.is(o[i])||r.parents(o[i]).length)return;e.prototype.closeOthers(n.target)}}),t(document).data("editable-handlers-attached",!0))},splitOptions:function(){if(this.containerOptions={},this.formOptions={},!t.fn[this.containerName])throw new Error(this.containerName+" not found. Have you included corresponding js file?");for(var e in this.options)e in this.defaults?this.containerOptions[e]=this.options[e]:this.formOptions[e]=this.options[e]},tip:function(){return this.container()?this.container().$tip:null},container:function(){var t;return this.containerDataName&&(t=this.$element.data(this.containerDataName))?t:t=this.$element.data(this.containerName)},call:function(){this.$element[this.containerName].apply(this.$element,arguments)},initContainer:function(){this.call(this.containerOptions)},renderForm:function(){this.$form.editableform(this.formOptions).on({save:t.proxy(this.save,this),nochange:t.proxy(function(){this.hide("nochange")},this),cancel:t.proxy(function(){this.hide("cancel")},this),show:t.proxy(function(){this.delayedHide?(this.hide(this.delayedHide.reason),this.delayedHide=!1):this.setPosition()},this),rendering:t.proxy(this.setPosition,this),resize:t.proxy(this.setPosition,this),rendered:t.proxy(function(){this.$element.triggerHandler("shown",t(this.options.scope).data("editable"))},this)}).editableform("render")},show:function(e){this.$element.addClass("editable-open"),!1!==e&&this.closeOthers(this.$element[0]),this.innerShow(),this.tip().addClass(this.containerClass),this.$form,this.$form=t("<div>"),this.tip().is(this.innerCss)?this.tip().append(this.$form):this.tip().find(this.innerCss).append(this.$form),this.renderForm()},hide:function(t){this.tip()&&this.tip().is(":visible")&&this.$element.hasClass("editable-open")&&(this.$form.data("editableform").isSaving?this.delayedHide={reason:t}:(this.delayedHide=!1,this.$element.removeClass("editable-open"),this.innerHide(),this.$element.triggerHandler("hidden",t||"manual")))},innerShow:function(){},innerHide:function(){},toggle:function(t){this.container()&&this.tip()&&this.tip().is(":visible")?this.hide():this.show(t)},setPosition:function(){},save:function(t,e){this.$element.triggerHandler("save",e),this.hide("save")},option:function(t,e){this.options[t]=e,t in this.containerOptions?(this.containerOptions[t]=e,this.setContainerOption(t,e)):(this.formOptions[t]=e,this.$form&&this.$form.editableform("option",t,e))},setContainerOption:function(t,e){this.call("option",t,e)},destroy:function(){this.hide(),this.innerDestroy(),this.$element.off("destroyed"),this.$element.removeData("editableContainer")},innerDestroy:function(){},closeOthers:function(e){t(".editable-open").each(function(n,i){if(i!==e&&!t(i).find(e).length){var r=t(i),o=r.data("editableContainer");o&&("cancel"===o.options.onblur?r.data("editableContainer").hide("onblur"):"submit"===o.options.onblur&&r.data("editableContainer").tip().find("form").submit())}})},activate:function(){this.tip&&this.tip().is(":visible")&&this.$form&&this.$form.data("editableform").input.activate()}},t.fn.editableContainer=function(i){var r=arguments;return this.each(function(){var o=t(this),a=o.data("editableContainer"),s="object"==typeof i&&i,l="inline"===s.mode?n:e;a||o.data("editableContainer",a=new l(this,s)),"string"==typeof i&&a[i].apply(a,Array.prototype.slice.call(r,1))})},t.fn.editableContainer.Popup=e,t.fn.editableContainer.Inline=n,t.fn.editableContainer.defaults={value:null,placement:"top",autohide:!0,onblur:"cancel",anim:!1,mode:"popup"},jQuery.event.special.destroyed={remove:function(t){t.handler&&t.handler()}}}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Inline.prototype,t.fn.editableContainer.Popup.prototype,{containerName:"editableform",innerCss:".editable-inline",containerClass:"editable-container editable-inline",initContainer:function(){this.$tip=t("<span></span>"),this.options.anim||(this.options.anim=0)},splitOptions:function(){this.containerOptions={},this.formOptions=this.options},tip:function(){return this.$tip},innerShow:function(){this.$element.hide(),this.tip().insertAfter(this.$element).show()},innerHide:function(){this.$tip.hide(this.options.anim,t.proxy(function(){this.$element.show(),this.innerDestroy()},this))},innerDestroy:function(){this.tip()&&this.tip().empty().remove()}})}(window.jQuery),function(t){"use strict";var e=function(e,n){this.$element=t(e),this.options=t.extend({},t.fn.editable.defaults,n,t.fn.editableutils.getConfigData(this.$element)),this.options.selector?this.initLive():this.init(),this.options.highlight&&!t.fn.editableutils.supportsTransitions()&&(this.options.highlight=!1)};e.prototype={constructor:e,init:function(){var e,n=!1;if(this.options.name=this.options.name||this.$element.attr("id"),this.options.scope=this.$element[0],this.input=t.fn.editableutils.createInput(this.options),this.input){switch(void 0===this.options.value||null===this.options.value?(this.value=this.input.html2value(t.trim(this.$element.html())),n=!0):(this.options.value=t.fn.editableutils.tryParseJson(this.options.value,!0),"string"==typeof this.options.value?this.value=this.input.str2value(this.options.value):this.value=this.options.value),this.$element.addClass("editable"),"textarea"===this.input.type&&this.$element.addClass("editable-pre-wrapped"),"manual"!==this.options.toggle?(this.$element.addClass("editable-click"),this.$element.on(this.options.toggle+".editable",t.proxy(function(t){if(this.options.disabled||t.preventDefault(),"mouseenter"===this.options.toggle)this.show();else{var e="click"!==this.options.toggle;this.toggle(e)}},this))):this.$element.attr("tabindex",-1),"function"==typeof this.options.display&&(this.options.autotext="always"),this.options.autotext){case"always":e=!0;break;case"auto":e=!t.trim(this.$element.text()).length&&null!==this.value&&void 0!==this.value&&!n;break;default:e=!1}t.when(!e||this.render()).then(t.proxy(function(){this.options.disabled?this.disable():this.enable(),this.$element.triggerHandler("init",this)},this))}},initLive:function(){var e=this.options.selector;this.options.selector=!1,this.options.autotext="never",this.$element.on(this.options.toggle+".editable",e,t.proxy(function(e){var n=t(e.target);n.data("editable")||(n.hasClass(this.options.emptyclass)&&n.empty(),n.editable(this.options).trigger(e))},this))},render:function(t){if(!1!==this.options.display)return this.input.value2htmlFinal?this.input.value2html(this.value,this.$element[0],this.options.display,t):"function"==typeof this.options.display?this.options.display.call(this.$element[0],this.value,t):this.input.value2html(this.value,this.$element[0])},enable:function(){this.options.disabled=!1,this.$element.removeClass("editable-disabled"),this.handleEmpty(this.isEmpty),"manual"!==this.options.toggle&&"-1"===this.$element.attr("tabindex")&&this.$element.removeAttr("tabindex")},disable:function(){this.options.disabled=!0,this.hide(),this.$element.addClass("editable-disabled"),this.handleEmpty(this.isEmpty),this.$element.attr("tabindex",-1)},toggleDisabled:function(){this.options.disabled?this.enable():this.disable()},option:function(e,n){if(e&&"object"==typeof e)t.each(e,t.proxy(function(e,n){this.option(t.trim(e),n)},this));else{if(this.options[e]=n,"disabled"===e)return n?this.disable():this.enable();"value"===e&&this.setValue(n),this.container&&this.container.option(e,n),this.input.option&&this.input.option(e,n)}},handleEmpty:function(e){!1!==this.options.display&&(void 0!==e?this.isEmpty=e:"function"==typeof this.input.isEmpty?this.isEmpty=this.input.isEmpty(this.$element):this.isEmpty=""===t.trim(this.$element.html()),this.options.disabled?this.isEmpty&&(this.$element.empty(),this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass)):this.isEmpty?(this.$element.html(this.options.emptytext),this.options.emptyclass&&this.$element.addClass(this.options.emptyclass)):this.options.emptyclass&&this.$element.removeClass(this.options.emptyclass))},show:function(e){if(!this.options.disabled){if(this.container){if(this.container.tip().is(":visible"))return}else{var n=t.extend({},this.options,{value:this.value,input:this.input});this.$element.editableContainer(n),this.$element.on("save.internal",t.proxy(this.save,this)),this.container=this.$element.data("editableContainer")}this.container.show(e)}},hide:function(){this.container&&this.container.hide()},toggle:function(t){this.container&&this.container.tip().is(":visible")?this.hide():this.show(t)},save:function(t,e){if(this.options.unsavedclass){var n=!1;(n=(n=(n=(n=n||"function"==typeof this.options.url)||!1===this.options.display)||void 0!==e.response)||this.options.savenochange&&this.input.value2str(this.value)!==this.input.value2str(e.newValue))?this.$element.removeClass(this.options.unsavedclass):this.$element.addClass(this.options.unsavedclass)}if(this.options.highlight){var i=this.$element,r=i.css("background-color");i.css("background-color",this.options.highlight),setTimeout(function(){"transparent"===r&&(r=""),i.css("background-color",r),i.addClass("editable-bg-transition"),setTimeout(function(){i.removeClass("editable-bg-transition")},1700)},10)}this.setValue(e.newValue,!1,e.response)},validate:function(){if("function"==typeof this.options.validate)return this.options.validate.call(this,this.value)},setValue:function(e,n,i){this.value=n?this.input.str2value(e):e,this.container&&this.container.option("value",this.value),t.when(this.render(i)).then(t.proxy(function(){this.handleEmpty()},this))},activate:function(){this.container&&this.container.activate()},destroy:function(){this.disable(),this.container&&this.container.destroy(),this.input.destroy(),"manual"!==this.options.toggle&&(this.$element.removeClass("editable-click"),this.$element.off(this.options.toggle+".editable")),this.$element.off("save.internal"),this.$element.removeClass("editable editable-open editable-disabled"),this.$element.removeData("editable")}},t.fn.editable=function(n){var i={},r=arguments;switch(n){case"validate":return this.each(function(){var e,n=t(this).data("editable");n&&(e=n.validate())&&(i[n.options.name]=e)}),i;case"getValue":return 2===arguments.length&&!0===arguments[1]?i=this.eq(0).data("editable").value:this.each(function(){var e=t(this).data("editable");e&&void 0!==e.value&&null!==e.value&&(i[e.options.name]=e.input.value2submit(e.value))}),i;case"submit":var o=arguments[1]||{},a=this,s=this.editable("validate");if(t.isEmptyObject(s)){var l={};if(1===a.length){var u=a.data("editable"),c={name:u.options.name||"",value:u.input.value2submit(u.value),pk:"function"==typeof u.options.pk?u.options.pk.call(u.options.scope):u.options.pk};"function"==typeof u.options.params?c=u.options.params.call(u.options.scope,c):(u.options.params=t.fn.editableutils.tryParseJson(u.options.params,!0),t.extend(c,u.options.params)),l={url:u.options.url,data:c,type:"POST"},o.success=o.success||u.options.success,o.error=o.error||u.options.error}else{var d=this.editable("getValue");l={url:o.url,data:d,type:"POST"}}l.success="function"==typeof o.success?function(t){o.success.call(a,t,o)}:t.noop,l.error="function"==typeof o.error?function(){o.error.apply(a,arguments)}:t.noop,o.ajaxOptions&&t.extend(l,o.ajaxOptions),o.data&&t.extend(l.data,o.data),t.ajax(l)}else"function"==typeof o.error&&o.error.call(a,s);return this}return this.each(function(){var i=t(this),o=i.data("editable"),a="object"==typeof n&&n;a&&a.selector?o=new e(this,a):(o||i.data("editable",o=new e(this,a)),"string"==typeof n&&o[n].apply(o,Array.prototype.slice.call(r,1)))})},t.fn.editable.defaults={type:"text",disabled:!1,toggle:"click",emptytext:"Empty",autotext:"auto",value:null,display:null,emptyclass:"editable-empty",unsavedclass:"editable-unsaved",selector:null,highlight:"#FFFF80"}}(window.jQuery),function(t){"use strict";t.fn.editabletypes={};var e=function(){};e.prototype={init:function(e,n,i){this.type=e,this.options=t.extend({},i,n)},prerender:function(){this.$tpl=t(this.options.tpl),this.$input=this.$tpl,this.$clear=null,this.error=null},render:function(){},value2html:function(e,n){t(n)[this.options.escape?"text":"html"](t.trim(e))},html2value:function(e){return t("<div>").html(e).text()},value2str:function(t){return t},str2value:function(t){return t},value2submit:function(t){return t},value2input:function(t){this.$input.val(t)},input2value:function(){return this.$input.val()},activate:function(){this.$input.is(":visible")&&this.$input.focus()},clear:function(){this.$input.val(null)},escape:function(e){return t("<div>").text(e).html()},autosubmit:function(){},destroy:function(){},setClass:function(){this.options.inputclass&&this.$input.addClass(this.options.inputclass)},setAttr:function(t){void 0!==this.options[t]&&null!==this.options[t]&&this.$input.attr(t,this.options[t])},option:function(t,e){this.options[t]=e}},e.defaults={tpl:"",inputclass:null,escape:!0,scope:null,showbuttons:!0},t.extend(t.fn.editabletypes,{abstractinput:e})}(window.jQuery),function(t){"use strict";var e=function(t){};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){var e=t.Deferred();return this.error=null,this.onSourceReady(function(){this.renderList(),e.resolve()},function(){this.error=this.options.sourceError,e.resolve()}),e.promise()},html2value:function(t){return null},value2html:function(e,n,i,r){var o=t.Deferred(),a=function(){"function"==typeof i?i.call(n,e,this.sourceData,r):this.value2htmlFinal(e,n),o.resolve()};return null===e?a.call(this):this.onSourceReady(a,function(){o.resolve()}),o.promise()},onSourceReady:function(e,n){var i;if(t.isFunction(this.options.source)?(i=this.options.source.call(this.options.scope),this.sourceData=null):i=this.options.source,this.options.sourceCache&&t.isArray(this.sourceData))e.call(this);else{try{i=t.fn.editableutils.tryParseJson(i,!1)}catch(t){return void n.call(this)}if("string"==typeof i){if(this.options.sourceCache){var r,o=i;if(t(document).data(o)||t(document).data(o,{}),!1===(r=t(document).data(o)).loading&&r.sourceData)return this.sourceData=r.sourceData,this.doPrepend(),void e.call(this);if(!0===r.loading)return r.callbacks.push(t.proxy(function(){this.sourceData=r.sourceData,this.doPrepend(),e.call(this)},this)),void r.err_callbacks.push(t.proxy(n,this));r.loading=!0,r.callbacks=[],r.err_callbacks=[]}var a=t.extend({url:i,type:"get",cache:!1,dataType:"json",success:t.proxy(function(i){r&&(r.loading=!1),this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(r&&(r.sourceData=this.sourceData,t.each(r.callbacks,function(){this.call()})),this.doPrepend(),e.call(this)):(n.call(this),r&&t.each(r.err_callbacks,function(){this.call()}))},this),error:t.proxy(function(){n.call(this),r&&(r.loading=!1,t.each(r.err_callbacks,function(){this.call()}))},this)},this.options.sourceOptions);t.ajax(a)}else this.sourceData=this.makeArray(i),t.isArray(this.sourceData)?(this.doPrepend(),e.call(this)):n.call(this)}},doPrepend:function(){null!==this.options.prepend&&void 0!==this.options.prepend&&(t.isArray(this.prependData)||(t.isFunction(this.options.prepend)&&(this.options.prepend=this.options.prepend.call(this.options.scope)),this.options.prepend=t.fn.editableutils.tryParseJson(this.options.prepend,!0),"string"==typeof this.options.prepend&&(this.options.prepend={"":this.options.prepend}),this.prependData=this.makeArray(this.options.prepend)),t.isArray(this.prependData)&&t.isArray(this.sourceData)&&(this.sourceData=this.prependData.concat(this.sourceData)))},renderList:function(){},value2htmlFinal:function(t,e){},makeArray:function(e){var n,i,r,o,a=[];if(!e||"string"==typeof e)return null;if(t.isArray(e)){o=function(t,e){if(i={value:t,text:e},n++>=2)return!1};for(var s=0;s<e.length;s++)"object"==typeof(r=e[s])?(n=0,t.each(r,o),1===n?a.push(i):n>1&&(r.children&&(r.children=this.makeArray(r.children)),a.push(r))):a.push({value:r,text:r})}else t.each(e,function(t,e){a.push({value:t,text:e})});return a},option:function(t,e){this.options[t]=e,"source"===t&&(this.sourceData=null),"prepend"===t&&(this.prependData=null)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{source:null,prepend:!1,sourceError:"Error when loading list",sourceCache:!0,sourceOptions:null}),t.fn.editabletypes.list=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("text",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.renderClear(),this.setClass(),this.setAttr("placeholder")},activate:function(){this.$input.is(":visible")&&(this.$input.focus(),t.fn.editableutils.setCursorPosition(this.$input.get(0),this.$input.val().length),this.toggleClear&&this.toggleClear())},renderClear:function(){this.options.clear&&(this.$clear=t('<span class="editable-clear-x"></span>'),this.$input.after(this.$clear).css("padding-right",24).keyup(t.proxy(function(e){if(!~t.inArray(e.keyCode,[40,38,9,13,27])){clearTimeout(this.t);var n=this;this.t=setTimeout(function(){n.toggleClear(e)},100)}},this)).parent().css("position","relative"),this.$clear.click(t.proxy(this.clear,this)))},postrender:function(){},toggleClear:function(t){if(this.$clear){var e=this.$input.val().length,n=this.$clear.is(":visible");e&&!n&&this.$clear.show(),!e&&n&&this.$clear.hide()}},clear:function(){this.$clear.hide(),this.$input.val("").focus()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',placeholder:null,clear:!0}),t.fn.editabletypes.text=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("textarea",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.setAttr("placeholder"),this.setAttr("rows"),this.$input.keydown(function(e){e.ctrlKey&&13===e.which&&t(this).closest("form").submit()})},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:"<textarea></textarea>",inputclass:"input-large",placeholder:null,rows:7}),t.fn.editabletypes.textarea=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("select",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){this.$input.empty();var e=function(n,i){var r;if(t.isArray(i))for(var o=0;o<i.length;o++)r={},i[o].children?(r.label=i[o].text,n.append(e(t("<optgroup>",r),i[o].children))):(r.value=i[o].value,i[o].disabled&&(r.disabled=!0),n.append(t("<option>",r).text(i[o].text)));return n};e(this.$input,this.sourceData),this.setClass(),this.$input.on("keydown.editable",function(e){13===e.which&&t(this).closest("form").submit()})},value2htmlFinal:function(e,n){var i="",r=t.fn.editableutils.itemsByValue(e,this.sourceData);r.length&&(i=r[0].text),t.fn.editabletypes.abstractinput.prototype.value2html.call(this,i,n)},autosubmit:function(){this.$input.off("keydown.editable").on("change.editable",function(){t(this).closest("form").submit()})}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:"<select></select>"}),t.fn.editabletypes.select=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("checklist",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.list),t.extend(e.prototype,{renderList:function(){var e;if(this.$tpl.empty(),t.isArray(this.sourceData)){for(var n=0;n<this.sourceData.length;n++)e=t("<label>").append(t("<input>",{type:"checkbox",value:this.sourceData[n].value})).append(t("<span>").text(" "+this.sourceData[n].text)),t("<div>").append(e).appendTo(this.$tpl);this.$input=this.$tpl.find('input[type="checkbox"]'),this.setClass()}},value2str:function(e){return t.isArray(e)?e.sort().join(t.trim(this.options.separator)):""},str2value:function(e){var n,i=null;return"string"==typeof e&&e.length?(n=new RegExp("\\s*"+t.trim(this.options.separator)+"\\s*"),i=e.split(n)):i=t.isArray(e)?e:[e],i},value2input:function(e){this.$input.prop("checked",!1),t.isArray(e)&&e.length&&this.$input.each(function(n,i){var r=t(i);t.each(e,function(t,e){r.val()==e&&r.prop("checked",!0)})})},input2value:function(){var e=[];return this.$input.filter(":checked").each(function(n,i){e.push(t(i).val())}),e},value2htmlFinal:function(e,n){var i=[],r=t.fn.editableutils.itemsByValue(e,this.sourceData),o=this.options.escape;r.length?(t.each(r,function(e,n){var r=o?t.fn.editableutils.escape(n.text):n.text;i.push(r)}),t(n).html(i.join("<br>"))):t(n).empty()},activate:function(){this.$input.first().focus()},autosubmit:function(){this.$input.on("keydown",function(e){13===e.which&&t(this).closest("form").submit()})}}),e.defaults=t.extend({},t.fn.editabletypes.list.defaults,{tpl:'<div class="editable-checklist"></div>',inputclass:null,separator:","}),t.fn.editabletypes.checklist=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("password",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{value2html:function(e,n){e?t(n).text("[hidden]"):t(n).empty()},html2value:function(t){return null}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="password">'}),t.fn.editabletypes.password=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("email",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="email">'}),t.fn.editabletypes.email=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("url",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="url">'}),t.fn.editabletypes.url=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("tel",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="tel">'}),t.fn.editabletypes.tel=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("number",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.text),t.extend(e.prototype,{render:function(){e.superclass.render.call(this),this.setAttr("min"),this.setAttr("max"),this.setAttr("step")},postrender:function(){this.$clear&&this.$clear.css({right:24})}}),e.defaults=t.extend({},t.fn.editabletypes.text.defaults,{tpl:'<input type="number">',inputclass:"input-mini",min:null,max:null,step:null}),t.fn.editabletypes.number=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("range",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.number),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.filter("input"),this.setClass(),this.setAttr("min"),this.setAttr("max"),this.setAttr("step"),this.$input.on("input",function(){t(this).siblings("output").text(t(this).val())})},activate:function(){this.$input.focus()}}),e.defaults=t.extend({},t.fn.editabletypes.number.defaults,{tpl:'<input type="range"><output style="width: 30px; display: inline-block"></output>',inputclass:"input-medium"}),t.fn.editabletypes.range=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("time",t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass()}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="time">'}),t.fn.editabletypes.time=e}(window.jQuery),function(t){"use strict";var e=function(n){if(this.init("select2",n,e.defaults),n.select2=n.select2||{},this.sourceData=null,n.placeholder&&(n.select2.placeholder=n.placeholder),!n.select2.tags&&n.source){var i=n.source;t.isFunction(n.source)&&(i=n.source.call(n.scope)),"string"==typeof i?(n.select2.ajax=n.select2.ajax||{},n.select2.ajax.data||(n.select2.ajax.data=function(t){return{query:t}}),n.select2.ajax.results||(n.select2.ajax.results=function(t){return{results:t}}),n.select2.ajax.url=i):(this.sourceData=this.convertSource(i),n.select2.data=this.sourceData)}if(this.options.select2=t.extend({},e.defaults.select2,n.select2),this.isMultiple=this.options.select2.tags||this.options.select2.multiple,this.isRemote="ajax"in this.options.select2,this.idFunc=this.options.select2.id,"function"!=typeof this.idFunc){var r=this.idFunc||"id";this.idFunc=function(t){return t[r]}}this.formatSelection=this.options.select2.formatSelection,"function"!=typeof this.formatSelection&&(this.formatSelection=function(t){return t.text})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.setClass(),this.isRemote&&this.$input.on("select2-loaded",t.proxy(function(t){this.sourceData=t.items.results},this)),this.isMultiple&&this.$input.on("change",function(){t(this).closest("form").parent().triggerHandler("resize")})},value2html:function(n,i){var r,o="",a=this;this.options.select2.tags?r=n:this.sourceData&&(r=t.fn.editableutils.itemsByValue(n,this.sourceData,this.idFunc)),t.isArray(r)?(o=[],t.each(r,function(t,e){o.push(e&&"object"==typeof e?a.formatSelection(e):e)})):r&&(o=a.formatSelection(r)),o=t.isArray(o)?o.join(this.options.viewseparator):o,e.superclass.value2html.call(this,o,i)},html2value:function(t){return this.options.select2.tags?this.str2value(t,this.options.viewseparator):null},value2input:function(e){if(t.isArray(e)&&(e=e.join(this.getSeparator())),this.$input.data("select2")?this.$input.val(e).trigger("change",!0):(this.$input.val(e),this.$input.select2(this.options.select2)),this.isRemote&&!this.isMultiple&&!this.options.select2.initSelection){var n=this.options.select2.id,i=this.options.select2.formatSelection;if(!n&&!i){var r=t(this.options.scope);if(!r.data("editable").isEmpty){var o={id:e,text:r.text()};this.$input.select2("data",o)}}}},input2value:function(){return this.$input.select2("val")},str2value:function(e,n){if("string"!=typeof e||!this.isMultiple)return e;var i,r,o;if(n=n||this.getSeparator(),null===e||e.length<1)return null;for(r=0,o=(i=e.split(n)).length;r<o;r+=1)i[r]=t.trim(i[r]);return i},autosubmit:function(){this.$input.on("change",function(e,n){n||t(this).closest("form").submit()})},getSeparator:function(){return this.options.select2.separator||t.fn.select2.defaults.separator},convertSource:function(e){if(t.isArray(e)&&e.length&&void 0!==e[0].value)for(var n=0;n<e.length;n++)void 0!==e[n].value&&(e[n].id=e[n].value,delete e[n].value);return e},destroy:function(){this.$input.data("select2")&&this.$input.select2("destroy")}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="hidden">',select2:null,placeholder:null,source:null,viewseparator:", "}),t.fn.editabletypes.select2=e}(window.jQuery),function(t){var e=function(e,n){this.$element=t(e),this.$element.is("input")?(this.options=t.extend({},t.fn.combodate.defaults,n,this.$element.data()),this.init()):t.error("Combodate should be applied to INPUT element")};e.prototype={constructor:e,init:function(){this.map={day:["D","date"],month:["M","month"],year:["Y","year"],hour:["[Hh]","hours"],minute:["m","minutes"],second:["s","seconds"],ampm:["[Aa]",""]},this.$widget=t('<span class="combodate"></span>').html(this.getTemplate()),this.initCombos(),this.$widget.on("change","select",t.proxy(function(e){this.$element.val(this.getValue()).change(),this.options.smartDays&&(t(e.target).is(".month")||t(e.target).is(".year"))&&this.fillCombo("day")},this)),this.$widget.find("select").css("width","auto"),this.$element.hide().after(this.$widget),this.setValue(this.$element.val()||this.options.value)},getTemplate:function(){var e=this.options.template;return t.each(this.map,function(t,n){n=n[0];var i=new RegExp(n+"+"),r=n.length>1?n.substring(1,2):n;e=e.replace(i,"{"+r+"}")}),e=e.replace(/ /g," "),t.each(this.map,function(t,n){var i=(n=n[0]).length>1?n.substring(1,2):n;e=e.replace("{"+i+"}",'<select class="'+t+'"></select>')}),e},initCombos:function(){for(var t in this.map){var e=this.$widget.find("."+t);this["$"+t]=e.length?e:null,this.fillCombo(t)}},fillCombo:function(t){var e=this["$"+t];if(e){var n=this["fill"+t.charAt(0).toUpperCase()+t.slice(1)](),i=e.val();e.empty();for(var r=0;r<n.length;r++)e.append('<option value="'+n[r][0]+'">'+n[r][1]+"</option>");e.val(i)}},fillCommon:function(t){var e,n=[];if("name"===this.options.firstItem){var i="function"==typeof(e=moment.relativeTime||moment.langData()._relativeTime)[t]?e[t](1,!0,t,!1):e[t];i=i.split(" ").reverse()[0],n.push(["",i])}else"empty"===this.options.firstItem&&n.push(["",""]);return n},fillDay:function(){var t,e,n=this.fillCommon("d"),i=-1!==this.options.template.indexOf("DD"),r=31;if(this.options.smartDays&&this.$month&&this.$year){var o=parseInt(this.$month.val(),10),a=parseInt(this.$year.val(),10);isNaN(o)||isNaN(a)||(r=moment([a,o]).daysInMonth())}for(e=1;e<=r;e++)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillMonth:function(){var t,e,n=this.fillCommon("M"),i=-1!==this.options.template.indexOf("MMMM"),r=-1!==this.options.template.indexOf("MMM"),o=-1!==this.options.template.indexOf("MM");for(e=0;e<=11;e++)t=i?moment().date(1).month(e).format("MMMM"):r?moment().date(1).month(e).format("MMM"):o?this.leadZero(e+1):e+1,n.push([e,t]);return n},fillYear:function(){var t,e,n=[],i=-1!==this.options.template.indexOf("YYYY");for(e=this.options.maxYear;e>=this.options.minYear;e--)t=i?e:(e+"").substring(2),n[this.options.yearDescending?"push":"unshift"]([e,t]);return n=this.fillCommon("y").concat(n)},fillHour:function(){var t,e,n=this.fillCommon("h"),i=-1!==this.options.template.indexOf("h"),r=(this.options.template.indexOf("H"),-1!==this.options.template.toLowerCase().indexOf("hh")),o=i?12:23;for(e=i?1:0;e<=o;e++)t=r?this.leadZero(e):e,n.push([e,t]);return n},fillMinute:function(){var t,e,n=this.fillCommon("m"),i=-1!==this.options.template.indexOf("mm");for(e=0;e<=59;e+=this.options.minuteStep)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillSecond:function(){var t,e,n=this.fillCommon("s"),i=-1!==this.options.template.indexOf("ss");for(e=0;e<=59;e+=this.options.secondStep)t=i?this.leadZero(e):e,n.push([e,t]);return n},fillAmpm:function(){var t=-1!==this.options.template.indexOf("a");this.options.template.indexOf("A");return[["am",t?"am":"AM"],["pm",t?"pm":"PM"]]},getValue:function(e){var n,i={},r=this,o=!1;return t.each(this.map,function(t,e){if("ampm"!==t){var n="day"===t?1:0;return i[t]=r["$"+t]?parseInt(r["$"+t].val(),10):n,isNaN(i[t])?(o=!0,!1):void 0}}),o?"":(this.$ampm&&(12===i.hour?i.hour="am"===this.$ampm.val()?0:12:i.hour="am"===this.$ampm.val()?i.hour:i.hour+12),n=moment([i.year,i.month,i.day,i.hour,i.minute,i.second]),this.highlight(n),null===(e=void 0===e?this.options.format:e)?n.isValid()?n:null:n.isValid()?n.format(e):"")},setValue:function(e){if(e){var n="string"==typeof e?moment(e,this.options.format):moment(e),i=this,r={};n.isValid()&&(t.each(this.map,function(t,e){"ampm"!==t&&(r[t]=n[e[1]]())}),this.$ampm&&(r.hour>=12?(r.ampm="pm",r.hour>12&&(r.hour-=12)):(r.ampm="am",0===r.hour&&(r.hour=12))),t.each(r,function(t,e){i["$"+t]&&("minute"===t&&i.options.minuteStep>1&&i.options.roundTime&&(e=o(i["$"+t],e)),"second"===t&&i.options.secondStep>1&&i.options.roundTime&&(e=o(i["$"+t],e)),i["$"+t].val(e))}),this.options.smartDays&&this.fillCombo("day"),this.$element.val(n.format(this.options.format)).change())}function o(e,n){var i={};return e.children("option").each(function(e,r){var o,a=t(r).attr("value");""!==a&&(o=Math.abs(a-n),(void 0===i.distance||o<i.distance)&&(i={value:a,distance:o}))}),i.value}},highlight:function(t){t.isValid()?this.options.errorClass?this.$widget.removeClass(this.options.errorClass):this.$widget.find("select").css("border-color",this.borderColor):this.options.errorClass?this.$widget.addClass(this.options.errorClass):(this.borderColor||(this.borderColor=this.$widget.find("select").css("border-color")),this.$widget.find("select").css("border-color","red"))},leadZero:function(t){return t<=9?"0"+t:t},destroy:function(){this.$widget.remove(),this.$element.removeData("combodate").show()}},t.fn.combodate=function(n){var i,r=Array.apply(null,arguments);return r.shift(),"getValue"===n&&this.length&&(i=this.eq(0).data("combodate"))?i.getValue.apply(i,r):this.each(function(){var i=t(this),o=i.data("combodate"),a="object"==typeof n&&n;o||i.data("combodate",o=new e(this,a)),"string"==typeof n&&"function"==typeof o[n]&&o[n].apply(o,r)})},t.fn.combodate.defaults={format:"DD-MM-YYYY HH:mm",template:"D / MMM / YYYY H : mm",value:null,minYear:1970,maxYear:2015,yearDescending:!0,minuteStep:5,secondStep:1,firstItem:"empty",errorClass:null,roundTime:!0,smartDays:!1}}(window.jQuery),function(t){"use strict";var e=function(n){this.init("combodate",n,e.defaults),this.options.viewformat||(this.options.viewformat=this.options.format),n.combodate=t.fn.editableutils.tryParseJson(n.combodate,!0),this.options.combodate=t.extend({},e.defaults.combodate,n.combodate,{format:this.options.format,template:this.options.template})};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{render:function(){this.$input.combodate(this.options.combodate),"bs3"===t.fn.editableform.engine&&this.$input.siblings().find("select").addClass("form-control"),this.options.inputclass&&this.$input.siblings().find("select").addClass(this.options.inputclass)},value2html:function(t,n){var i=t?t.format(this.options.viewformat):"";e.superclass.value2html.call(this,i,n)},html2value:function(t){return t?moment(t,this.options.viewformat):null},value2str:function(t){return t?t.format(this.options.format):""},str2value:function(t){return t?moment(t,this.options.format):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.combodate("setValue",t)},input2value:function(){return this.$input.combodate("getValue",null)},activate:function(){this.$input.siblings(".combodate").find("select").eq(0).focus()},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<input type="text">',inputclass:null,format:"YYYY-MM-DD",viewformat:null,template:"D / MMM / YYYY",combodate:null}),t.fn.editabletypes.combodate=e}(window.jQuery),function(t){"use strict";var e=t.fn.editableform.Constructor.prototype.initInput;t.extend(t.fn.editableform.Constructor.prototype,{initTemplate:function(){this.$form=t(t.fn.editableform.template),this.$form.find(".control-group").addClass("form-group"),this.$form.find(".editable-error-block").addClass("help-block")},initInput:function(){e.apply(this);var n=null===this.input.options.inputclass||!1===this.input.options.inputclass,i="text,select,textarea,password,email,url,tel,number,range,time,typeaheadjs".split(",");~t.inArray(this.input.type,i)&&(this.input.$input.addClass("form-control"),n&&(this.input.options.inputclass="input-sm",this.input.$input.addClass("input-sm")));for(var r=this.$form.find(".editable-buttons"),o=n?["input-sm"]:this.input.options.inputclass.split(" "),a=0;a<o.length;a++)"input-lg"===o[a].toLowerCase()&&r.find("button").removeClass("btn-sm").addClass("btn-lg")}}),t.fn.editableform.buttons='<button type="submit" class="btn btn-primary btn-sm editable-submit"><i class="glyphicon glyphicon-ok"></i></button><button type="button" class="btn btn-default btn-sm editable-cancel"><i class="glyphicon glyphicon-remove"></i></button>',t.fn.editableform.errorGroupClass="has-error",t.fn.editableform.errorBlockClass=null,t.fn.editableform.engine="bs3"}(window.jQuery),function(t){"use strict";t.extend(t.fn.editableContainer.Popup.prototype,{containerName:"popover",containerDataName:"bs.popover",innerCss:".popover-content",defaults:t.fn.popover.Constructor.DEFAULTS,initContainer:function(){var e;t.extend(this.containerOptions,{trigger:"manual",selector:!1,content:" ",template:this.defaults.template}),this.$element.data("template")&&(e=this.$element.data("template"),this.$element.removeData("template")),this.call(this.containerOptions),e&&this.$element.data("template",e)},innerShow:function(){this.call("show")},innerHide:function(){this.call("hide")},innerDestroy:function(){this.call("destroy")},setContainerOption:function(t,e){this.container().options[t]=e},setPosition:function(){(function(){var t=this.tip(),e="function"==typeof this.options.placement?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,n=/\s?auto?\s?/i,i=n.test(e);i&&(e=e.replace(n,"")||"top");var r=this.getPosition(),o=t[0].offsetWidth,a=t[0].offsetHeight;if(i){var s=this.$element.parent(),l=e,u=document.documentElement.scrollTop||document.body.scrollTop,c="body"==this.options.container?window.innerWidth:s.outerWidth(),d="body"==this.options.container?window.innerHeight:s.outerHeight(),h="body"==this.options.container?0:s.offset().left;e="bottom"==e&&r.top+r.height+a-u>d?"top":"top"==e&&r.top-u-a<0?"bottom":"right"==e&&r.right+o>c?"left":"left"==e&&r.left-o<h?"right":e,t.removeClass(l).addClass(e)}var f=this.getCalculatedOffset(e,r,o,a);this.applyPlacement(f,e)}).call(this.container())}})}(window.jQuery),function(t){function e(){return new Date(Date.UTC.apply(Date,arguments))}var n=function(e,n){this._process_options(n),this.element=t(e),this.isInline=!1,this.isInput=this.element.is("input"),this.component=!!this.element.is(".date")&&this.element.find(".add-on, .btn"),this.hasInput=this.component&&this.element.find("input").length,this.component&&0===this.component.length&&(this.component=!1),this.picker=t(u.template),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&(this.picker.addClass("datepicker-rtl"),this.picker.find(".prev i, .next i").toggleClass("icon-arrow-left icon-arrow-right")),this.viewMode=this.o.startView,this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(t,e){return parseInt(e)+1}),this._allow_update=!1,this.setStartDate(this.o.startDate),this.setEndDate(this.o.endDate),this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled),this.fillDow(),this.fillMonths(),this._allow_update=!0,this.update(),this.showMode(),this.isInline&&this.show()};n.prototype={constructor:n,_process_options:function(e){this._o=t.extend({},this._o,e);var n=this.o=t.extend({},this._o),i=n.language;switch(l[i]||(i=i.split("-")[0],l[i]||(i=a.language)),n.language=i,n.startView){case 2:case"decade":n.startView=2;break;case 1:case"year":n.startView=1;break;default:n.startView=0}switch(n.minViewMode){case 1:case"months":n.minViewMode=1;break;case 2:case"years":n.minViewMode=2;break;default:n.minViewMode=0}n.startView=Math.max(n.startView,n.minViewMode),n.weekStart%=7,n.weekEnd=(n.weekStart+6)%7;var r=u.parseFormat(n.format);n.startDate!==-1/0&&(n.startDate=u.parseDate(n.startDate,r,n.language)),n.endDate!==1/0&&(n.endDate=u.parseDate(n.endDate,r,n.language)),n.daysOfWeekDisabled=n.daysOfWeekDisabled||[],t.isArray(n.daysOfWeekDisabled)||(n.daysOfWeekDisabled=n.daysOfWeekDisabled.split(/[,\s]*/)),n.daysOfWeekDisabled=t.map(n.daysOfWeekDisabled,function(t){return parseInt(t,10)})},_events:[],_secondaryEvents:[],_applyEvents:function(t){for(var e,n,i=0;i<t.length;i++)e=t[i][0],n=t[i][1],e.on(n)},_unapplyEvents:function(t){for(var e,n,i=0;i<t.length;i++)e=t[i][0],n=t[i][1],e.off(n)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:t.proxy(this.show,this),keyup:t.proxy(this.update,this),keydown:t.proxy(this.keydown,this)}],[this.component,{click:t.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:t.proxy(this.show,this)}]],this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{mousedown:t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).size()||this.picker.is(t.target)||this.picker.find(t.target).size()||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,n){var i=n||this.date,r=new Date(i.getTime()+6e4*i.getTimezoneOffset());this.element.trigger({type:e,date:r,format:t.proxy(function(t){var e=t||this.o.format;return u.formatDate(i,e,this.o.language)},this)})},show:function(t){this.isInline||this.picker.appendTo("body"),this.picker.show(),this.height=this.component?this.component.outerHeight():this.element.outerHeight(),this.place(),this._attachSecondaryEvents(),t&&t.preventDefault(),this._trigger("show")},hide:function(t){this.isInline||this.picker.is(":visible")&&(this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date},getDate:function(){var t=this.getUTCDate();return new Date(t.getTime()+6e4*t.getTimezoneOffset())},getUTCDate:function(){return this.date},setDate:function(t){this.setUTCDate(new Date(t.getTime()-6e4*t.getTimezoneOffset()))},setUTCDate:function(t){this.date=t,this.setValue()},setValue:function(){var t=this.getFormattedDate();this.isInput?this.element.val(t):this.component&&this.element.find("input").val(t)},getFormattedDate:function(t){return void 0===t&&(t=this.o.format),u.formatDate(this.date,t,this.o.language)},setStartDate:function(t){this._process_options({startDate:t}),this.update(),this.updateNavArrows()},setEndDate:function(t){this._process_options({endDate:t}),this.update(),this.updateNavArrows()},setDaysOfWeekDisabled:function(t){this._process_options({daysOfWeekDisabled:t}),this.update(),this.updateNavArrows()},place:function(){if(!this.isInline){var e=parseInt(this.element.parents().filter(function(){return"auto"!=t(this).css("z-index")}).first().css("z-index"))+10,n=this.component?this.component.parent().offset():this.element.offset(),i=this.component?this.component.outerHeight(!0):this.element.outerHeight(!0);this.picker.css({top:n.top+i,left:n.left,zIndex:e})}},_allow_update:!0,update:function(){if(this._allow_update){var t,e=!1;arguments&&arguments.length&&("string"==typeof arguments[0]||arguments[0]instanceof Date)?(t=arguments[0],e=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),delete this.element.data().date),this.date=u.parseDate(t,this.o.format,this.o.language),e&&this.setValue(),this.date<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.date>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=new Date(this.date),this.fill()}},fillDow:function(){var t=this.o.weekStart,e="<tr>";if(this.o.calendarWeeks){var n='<th class="cw"> </th>';e+=n,this.picker.find(".datepicker-days thead tr:first-child").prepend(n)}for(;t<this.o.weekStart+7;)e+='<th class="dow">'+l[this.o.language].daysMin[t++%7]+"</th>";e+="</tr>",this.picker.find(".datepicker-days thead").append(e)},fillMonths:function(){for(var t="",e=0;e<12;)t+='<span class="month">'+l[this.o.language].monthsShort[e++]+"</span>";this.picker.find(".datepicker-months td").html(t)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var n=[],i=this.viewDate.getUTCFullYear(),r=this.viewDate.getUTCMonth(),o=this.date.valueOf(),a=new Date;return e.getUTCFullYear()<i||e.getUTCFullYear()==i&&e.getUTCMonth()<r?n.push("old"):(e.getUTCFullYear()>i||e.getUTCFullYear()==i&&e.getUTCMonth()>r)&&n.push("new"),this.o.todayHighlight&&e.getUTCFullYear()==a.getFullYear()&&e.getUTCMonth()==a.getMonth()&&e.getUTCDate()==a.getDate()&&n.push("today"),o&&e.valueOf()==o&&n.push("active"),(e.valueOf()<this.o.startDate||e.valueOf()>this.o.endDate||-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled))&&n.push("disabled"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&n.push("range"),-1!=t.inArray(e.valueOf(),this.range)&&n.push("selected")),n},fill:function(){var n,i=new Date(this.viewDate),r=i.getUTCFullYear(),o=i.getUTCMonth(),a=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,s=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,c=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0;this.date&&this.date.valueOf();this.picker.find(".datepicker-days thead th.datepicker-switch").text(l[this.o.language].months[o]+" "+r),this.picker.find("tfoot th.today").text(l[this.o.language].today).toggle(!1!==this.o.todayBtn),this.picker.find("tfoot th.clear").text(l[this.o.language].clear).toggle(!1!==this.o.clearBtn),this.updateNavArrows(),this.fillMonths();var h=e(r,o-1,28,0,0,0,0),f=u.getDaysInMonth(h.getUTCFullYear(),h.getUTCMonth());h.setUTCDate(f),h.setUTCDate(f-(h.getUTCDay()-this.o.weekStart+7)%7);var p=new Date(h);p.setUTCDate(p.getUTCDate()+42),p=p.valueOf();for(var m,g=[];h.valueOf()<p;){if(h.getUTCDay()==this.o.weekStart&&(g.push("<tr>"),this.o.calendarWeeks)){var v=new Date(+h+(this.o.weekStart-h.getUTCDay()-7)%7*864e5),y=new Date(+v+(11-v.getUTCDay())%7*864e5),b=new Date(+(b=e(y.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),w=(y-b)/864e5/7+1;g.push('<td class="cw">'+w+"</td>")}(m=this.getClassNames(h)).push("day");var _=this.o.beforeShowDay(h);void 0===_?_={}:"boolean"==typeof _?_={enabled:_}:"string"==typeof _&&(_={classes:_}),!1===_.enabled&&m.push("disabled"),_.classes&&(m=m.concat(_.classes.split(/\s+/))),_.tooltip&&(n=_.tooltip),m=t.unique(m),g.push('<td class="'+m.join(" ")+'"'+(n?' title="'+n+'"':"")+">"+h.getUTCDate()+"</td>"),h.getUTCDay()==this.o.weekEnd&&g.push("</tr>"),h.setUTCDate(h.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").empty().append(g.join(""));var x=this.date&&this.date.getUTCFullYear(),D=this.picker.find(".datepicker-months").find("th:eq(1)").text(r).end().find("span").removeClass("active");x&&x==r&&D.eq(this.date.getUTCMonth()).addClass("active"),(r<a||r>c)&&D.addClass("disabled"),r==a&&D.slice(0,s).addClass("disabled"),r==c&&D.slice(d+1).addClass("disabled"),g="",r=10*parseInt(r/10,10);var k=this.picker.find(".datepicker-years").find("th:eq(1)").text(r+"-"+(r+9)).end().find("td");r-=1;for(var C=-1;C<11;C++)g+='<span class="year'+(-1==C?" old":10==C?" new":"")+(x==r?" active":"")+(r<a||r>c?" disabled":"")+'">'+r+"</span>",r+=1;k.html(g)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),e=t.getUTCFullYear(),n=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()&&n<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()&&n>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-1/0&&e<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"}),this.o.endDate!==1/0&&e>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(n){n.preventDefault();var i=t(n.target).closest("span, td, th");if(1==i.length)switch(i[0].nodeName.toLowerCase()){case"th":switch(i[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":var r=u.modes[this.viewMode].navStep*("prev"==i[0].className?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,r);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,r)}this.fill();break;case"today":var o=new Date;o=e(o.getFullYear(),o.getMonth(),o.getDate(),0,0,0),this.showMode(-2);var a="linked"==this.o.todayBtn?null:"view";this._setDate(o,a);break;case"clear":var s;this.isInput?s=this.element:this.component&&(s=this.element.find("input")),s&&s.val("").change(),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()}break;case"span":if(!i.is(".disabled")){if(this.viewDate.setUTCDate(1),i.is(".month")){var l=1,c=i.parent().find("span").index(i),d=this.viewDate.getUTCFullYear();this.viewDate.setUTCMonth(c),this._trigger("changeMonth",this.viewDate),1===this.o.minViewMode&&this._setDate(e(d,c,l,0,0,0,0))}else{d=parseInt(i.text(),10)||0,l=1,c=0;this.viewDate.setUTCFullYear(d),this._trigger("changeYear",this.viewDate),2===this.o.minViewMode&&this._setDate(e(d,c,l,0,0,0,0))}this.showMode(-1),this.fill()}break;case"td":if(i.is(".day")&&!i.is(".disabled")){l=parseInt(i.text(),10)||1,d=this.viewDate.getUTCFullYear(),c=this.viewDate.getUTCMonth();i.is(".old")?0===c?(c=11,d-=1):c-=1:i.is(".new")&&(11==c?(c=0,d+=1):c+=1),this._setDate(e(d,c,l,0,0,0,0))}}},_setDate:function(t,e){var n;e&&"date"!=e||(this.date=new Date(t)),e&&"view"!=e||(this.viewDate=new Date(t)),this.fill(),this.setValue(),this._trigger("changeDate"),this.isInput?n=this.element:this.component&&(n=this.element.find("input")),n&&(n.change(),!this.o.autoclose||e&&"date"!=e||this.hide())},moveMonth:function(t,e){if(!e)return t;var n,i,r=new Date(t.valueOf()),o=r.getUTCDate(),a=r.getUTCMonth(),s=Math.abs(e);if(e=e>0?1:-1,1==s)i=-1==e?function(){return r.getUTCMonth()==a}:function(){return r.getUTCMonth()!=n},n=a+e,r.setUTCMonth(n),(n<0||n>11)&&(n=(n+12)%12);else{for(var l=0;l<s;l++)r=this.moveMonth(r,e);n=r.getUTCMonth(),r.setUTCDate(o),i=function(){return n!=r.getUTCMonth()}}for(;i();)r.setUTCDate(--o),r.setUTCMonth(n);return r},moveYear:function(t,e){return this.moveMonth(t,12*e)},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(t){if(this.picker.is(":not(:visible)"))27==t.keyCode&&this.show();else{var e,n,i,r,o=!1;switch(t.keyCode){case 27:this.hide(),t.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;e=37==t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.date,e),i=this.moveYear(this.viewDate,e)):t.shiftKey?(n=this.moveMonth(this.date,e),i=this.moveMonth(this.viewDate,e)):((n=new Date(this.date)).setUTCDate(this.date.getUTCDate()+e),(i=new Date(this.viewDate)).setUTCDate(this.viewDate.getUTCDate()+e)),this.dateWithinRange(n)&&(this.date=n,this.viewDate=i,this.setValue(),this.update(),t.preventDefault(),o=!0);break;case 38:case 40:if(!this.o.keyboardNavigation)break;e=38==t.keyCode?-1:1,t.ctrlKey?(n=this.moveYear(this.date,e),i=this.moveYear(this.viewDate,e)):t.shiftKey?(n=this.moveMonth(this.date,e),i=this.moveMonth(this.viewDate,e)):((n=new Date(this.date)).setUTCDate(this.date.getUTCDate()+7*e),(i=new Date(this.viewDate)).setUTCDate(this.viewDate.getUTCDate()+7*e)),this.dateWithinRange(n)&&(this.date=n,this.viewDate=i,this.setValue(),this.update(),t.preventDefault(),o=!0);break;case 13:this.hide(),t.preventDefault();break;case 9:this.hide()}if(o)this._trigger("changeDate"),this.isInput?r=this.element:this.component&&(r=this.element.find("input")),r&&r.change()}},showMode:function(t){t&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+t))),this.picker.find(">div").hide().filter(".datepicker-"+u.modes[this.viewMode].clsName).css("display","block"),this.updateNavArrows()}};var i=function(e,n){this.element=t(e),this.inputs=t.map(n.inputs,function(t){return t.jquery?t[0]:t}),delete n.inputs,t(this.inputs).datepicker(n).bind("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t(e).data("datepicker")}),this.updateDates()};i.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.date}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,n){n.setRange(e)})},dateUpdated:function(e){var n=t(e.target).data("datepicker").getUTCDate(),i=t.inArray(e.target,this.inputs),r=this.inputs.length;if(-1!=i){if(n<this.dates[i])for(;i>=0&&n<this.dates[i];)this.pickers[i--].setUTCDate(n);else if(n>this.dates[i])for(;i<r&&n>this.dates[i];)this.pickers[i++].setUTCDate(n);this.updateDates()}},remove:function(){t.map(this.pickers,function(t){t.remove()}),delete this.element.data().datepicker}};var r=t.fn.datepicker,o=t.fn.datepicker=function(e){var r,o=Array.apply(null,arguments);return o.shift(),this.each(function(){var u=t(this),c=u.data("datepicker"),d="object"==typeof e&&e;if(!c){var h=function(e,n){var i=t(e).data(),r={},o=new RegExp("^"+n.toLowerCase()+"([A-Z])");for(var a in n=new RegExp("^"+n.toLowerCase()),i)n.test(a)&&(r[a.replace(o,function(t,e){return e.toLowerCase()})]=i[a]);return r}(this,"date"),f=function(e){var n={};if(l[e]||(e=e.split("-")[0],l[e])){var i=l[e];return t.each(s,function(t,e){e in i&&(n[e]=i[e])}),n}}(t.extend({},a,h,d).language),p=t.extend({},a,f,h,d);if(u.is(".input-daterange")||p.inputs){var m={inputs:p.inputs||u.find("input").toArray()};u.data("datepicker",c=new i(this,t.extend(p,m)))}else u.data("datepicker",c=new n(this,p))}if("string"==typeof e&&"function"==typeof c[e]&&void 0!==(r=c[e].apply(c,o)))return!1}),void 0!==r?r:this},a=t.fn.datepicker.defaults={autoclose:!1,beforeShowDay:t.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0},s=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=n;var l=t.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}},u={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(t){return t%4==0&&t%100!=0||t%400==0},getDaysInMonth:function(t,e){return[31,u.isLeapYear(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(t){var e=t.replace(this.validParts,"\0").split("\0"),n=t.match(this.validParts);if(!e||!e.length||!n||0===n.length)throw new Error("Invalid date format.");return{separators:e,parts:n}},parseDate:function(i,r,o){if(i instanceof Date)return i;if("string"==typeof r&&(r=u.parseFormat(r)),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(i)){var a,s=/([\-+]\d+)([dmwy])/,c=i.match(/([\-+]\d+)([dmwy])/g);i=new Date;for(var d=0;d<c.length;d++)switch(p=s.exec(c[d]),a=parseInt(p[1]),p[2]){case"d":i.setUTCDate(i.getUTCDate()+a);break;case"m":i=n.prototype.moveMonth.call(n.prototype,i,a);break;case"w":i.setUTCDate(i.getUTCDate()+7*a);break;case"y":i=n.prototype.moveYear.call(n.prototype,i,a)}return e(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate(),0,0,0)}c=i&&i.match(this.nonpunctuation)||[],i=new Date;var h,f,p,m={},g=["yyyy","yy","M","MM","m","mm","d","dd"],v={yyyy:function(t,e){return t.setUTCFullYear(e)},yy:function(t,e){return t.setUTCFullYear(2e3+e)},m:function(t,e){for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!=e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};v.M=v.MM=v.mm=v.m,v.dd=v.d,i=e(i.getFullYear(),i.getMonth(),i.getDate(),0,0,0);var y=r.parts.slice();if(c.length!=y.length&&(y=t(y).filter(function(e,n){return-1!==t.inArray(n,g)}).toArray()),c.length==y.length){d=0;for(var b=y.length;d<b;d++){if(h=parseInt(c[d],10),p=y[d],isNaN(h))switch(p){case"MM":f=t(l[o].months).filter(function(){var t=this.slice(0,c[d].length);return t==c[d].slice(0,t.length)}),h=t.inArray(f[0],l[o].months)+1;break;case"M":f=t(l[o].monthsShort).filter(function(){var t=this.slice(0,c[d].length);return t==c[d].slice(0,t.length)}),h=t.inArray(f[0],l[o].monthsShort)+1}m[p]=h}var w;for(d=0;d<g.length;d++)(w=g[d])in m&&!isNaN(m[w])&&v[w](i,m[w])}return i},formatDate:function(e,n,i){"string"==typeof n&&(n=u.parseFormat(n));var r={d:e.getUTCDate(),D:l[i].daysShort[e.getUTCDay()],DD:l[i].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:l[i].monthsShort[e.getUTCMonth()],MM:l[i].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};r.dd=(r.d<10?"0":"")+r.d,r.mm=(r.m<10?"0":"")+r.m;e=[];for(var o=t.extend([],n.separators),a=0,s=n.parts.length;a<=s;a++)o.length&&e.push(o.shift()),e.push(r[n.parts[a]]);return e.join("")},headTemplate:'<thead><tr><th class="prev"><i class="icon-arrow-left"/></th><th colspan="5" class="datepicker-switch"></th><th class="next"><i class="icon-arrow-right"/></th></tr></thead>',contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};u.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+u.headTemplate+"<tbody></tbody>"+u.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+u.headTemplate+u.contTemplate+u.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+u.headTemplate+u.contTemplate+u.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=u,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=r,this},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var n=t(this);n.data("datepicker")||(e.preventDefault(),o.call(n,"show"))}),t(function(){o.call(t('[data-provide="datepicker-inline"]'))})}(window.jQuery),function(t){"use strict";t.fn.bdatepicker=t.fn.datepicker.noConflict(),t.fn.datepicker||(t.fn.datepicker=t.fn.bdatepicker);var e=function(t){this.init("date",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{initPicker:function(e,n){this.options.viewformat||(this.options.viewformat=this.options.format),e.datepicker=t.fn.editableutils.tryParseJson(e.datepicker,!0),this.options.datepicker=t.extend({},n.datepicker,e.datepicker,{format:this.options.viewformat}),this.options.datepicker.language=this.options.datepicker.language||"en",this.dpg=t.fn.bdatepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat)},render:function(){this.$input.bdatepicker(this.options.datepicker),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,n){var i=t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):"";e.superclass.value2html.call(this,i,n)},html2value:function(t){return this.parseDate(t,this.parsedViewFormat)},value2str:function(t){return t?this.dpg.formatDate(t,this.parsedFormat,this.options.datepicker.language):""},str2value:function(t){return this.parseDate(t,this.parsedFormat)},value2submit:function(t){return this.value2str(t)},value2input:function(t){this.$input.bdatepicker("update",t)},input2value:function(){return this.$input.data("datepicker").date},activate:function(){},clear:function(){this.$input.data("datepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".day",function(e){if(!t(e.currentTarget).is(".old")&&!t(e.currentTarget).is(".new")){var n=t(this).closest("form");setTimeout(function(){n.submit()},200)}})},parseDate:function(t,e){var n=null;return t&&(n=this.dpg.parseDate(t,e,this.options.datepicker.language),"string"==typeof t&&t!==this.dpg.formatDate(n,e,this.options.datepicker.language)&&(n=null)),n}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd",viewformat:null,datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!1},clear:"× clear"}),t.fn.editabletypes.date=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.date),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.bdatepicker(this.options.datepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy(function(){this.$tpl.removeData("date"),this.$tpl.bdatepicker("update")},this))},value2input:function(t){this.$input.val(t?this.dpg.formatDate(t,this.parsedViewFormat,this.options.datepicker.language):""),this.$tpl.bdatepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.date.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-small",datepicker:{weekStart:0,startView:0,minViewMode:0,autoclose:!0}}),t.fn.editabletypes.datefield=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetime",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.abstractinput),t.extend(e.prototype,{initPicker:function(e,n){this.options.viewformat||(this.options.viewformat=this.options.format),e.datetimepicker=t.fn.editableutils.tryParseJson(e.datetimepicker,!0),this.options.datetimepicker=t.extend({},n.datetimepicker,e.datetimepicker,{format:this.options.viewformat}),this.options.datetimepicker.language=this.options.datetimepicker.language||"en",this.dpg=t.fn.datetimepicker.DPGlobal,this.parsedFormat=this.dpg.parseFormat(this.options.format,this.options.formatType),this.parsedViewFormat=this.dpg.parseFormat(this.options.viewformat,this.options.formatType)},render:function(){this.$input.datetimepicker(this.options.datetimepicker),this.$input.on("changeMode",function(e){var n=t(this).closest("form").parent();setTimeout(function(){n.triggerHandler("resize")},0)}),this.options.clear&&(this.$clear=t('<a href="#"></a>').html(this.options.clear).click(t.proxy(function(t){t.preventDefault(),t.stopPropagation(),this.clear()},this)),this.$tpl.parent().append(t('<div class="editable-clear">').append(this.$clear)))},value2html:function(t,n){var i=t?this.dpg.formatDate(this.toUTC(t),this.parsedViewFormat,this.options.datetimepicker.language,this.options.formatType):"";if(!n)return i;e.superclass.value2html.call(this,i,n)},html2value:function(t){var e=this.parseDate(t,this.parsedViewFormat);return e?this.fromUTC(e):null},value2str:function(t){return t?this.dpg.formatDate(this.toUTC(t),this.parsedFormat,this.options.datetimepicker.language,this.options.formatType):""},str2value:function(t){var e=this.parseDate(t,this.parsedFormat);return e?this.fromUTC(e):null},value2submit:function(t){return this.value2str(t)},value2input:function(t){t&&this.$input.data("datetimepicker").setDate(t)},input2value:function(){var t=this.$input.data("datetimepicker");return t.date?t.getDate():null},activate:function(){},clear:function(){this.$input.data("datetimepicker").date=null,this.$input.find(".active").removeClass("active"),this.options.showbuttons||this.$input.closest("form").submit()},autosubmit:function(){this.$input.on("mouseup",".minute",function(e){var n=t(this).closest("form");setTimeout(function(){n.submit()},200)})},toUTC:function(t){return t?new Date(t.valueOf()-6e4*t.getTimezoneOffset()):t},fromUTC:function(t){return t?new Date(t.valueOf()+6e4*t.getTimezoneOffset()):t},parseDate:function(t,e){var n=null;return t&&(n=this.dpg.parseDate(t,e,this.options.datetimepicker.language,this.options.formatType),"string"==typeof t&&t!==this.dpg.formatDate(n,e,this.options.datetimepicker.language,this.options.formatType)&&(n=null)),n}}),e.defaults=t.extend({},t.fn.editabletypes.abstractinput.defaults,{tpl:'<div class="editable-date well"></div>',inputclass:null,format:"yyyy-mm-dd hh:ii",formatType:"standard",viewformat:null,datetimepicker:{todayHighlight:!1,autoclose:!1},clear:"× clear"}),t.fn.editabletypes.datetime=e}(window.jQuery),function(t){"use strict";var e=function(t){this.init("datetimefield",t,e.defaults),this.initPicker(t,e.defaults)};t.fn.editableutils.inherit(e,t.fn.editabletypes.datetime),t.extend(e.prototype,{render:function(){this.$input=this.$tpl.find("input"),this.setClass(),this.setAttr("placeholder"),this.$tpl.datetimepicker(this.options.datetimepicker),this.$input.off("focus keydown"),this.$input.keyup(t.proxy(function(){this.$tpl.removeData("date"),this.$tpl.datetimepicker("update")},this))},value2input:function(t){this.$input.val(this.value2html(t)),this.$tpl.datetimepicker("update")},input2value:function(){return this.html2value(this.$input.val())},activate:function(){t.fn.editabletypes.text.prototype.activate.call(this)},autosubmit:function(){}}),e.defaults=t.extend({},t.fn.editabletypes.datetime.defaults,{tpl:'<div class="input-append date"><input type="text"/><span class="add-on"><i class="icon-th"></i></span></div>',inputclass:"input-medium",datetimepicker:{todayHighlight:!1,autoclose:!0}}),t.fn.editabletypes.datetimefield=e}(window.jQuery),function(t){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],t);else if("object"==typeof exports)module.exports=t(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";t(jQuery,moment)}}(function(t,e){"use strict";if(!e)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var n=function(n,i){var r,o,a,s,l,u,c,d,h,f={},p=!0,m=!1,g=!1,v=0,y=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],b=["days","months","years","decades"],w=["top","bottom","auto"],_=["left","right","auto"],x=["default","top","bottom"],D={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"},k={},C=function(){return void 0!==e.tz&&void 0!==i.timeZone&&null!==i.timeZone&&""!==i.timeZone},T=function(t){var n;return n=null==t?e():e.isDate(t)||e.isMoment(t)?e(t):C()?e.tz(t,u,i.useStrict,i.timeZone):e(t,u,i.useStrict),C()&&n.tz(i.timeZone),n},S=function(t){if("string"!=typeof t||t.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(t){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}},$=function(){return S("h")||S("m")||S("s")},E=function(){return S("y")||S("M")||S("d")},O=function(){var e,n,r,o,a,l,u,c,d,h,f=t("<div>").addClass("bootstrap-datetimepicker-widget dropdown-menu"),p=t("<div>").addClass("datepicker").append((d=t("<thead>").append(t("<tr>").append(t("<th>").addClass("prev").attr("data-action","previous").append(t("<span>").addClass(i.icons.previous))).append(t("<th>").addClass("picker-switch").attr("data-action","pickerSwitch").attr("colspan",i.calendarWeeks?"6":"5")).append(t("<th>").addClass("next").attr("data-action","next").append(t("<span>").addClass(i.icons.next)))),h=t("<tbody>").append(t("<tr>").append(t("<td>").attr("colspan",i.calendarWeeks?"8":"7"))),[t("<div>").addClass("datepicker-days").append(t("<table>").addClass("table-condensed").append(d).append(t("<tbody>"))),t("<div>").addClass("datepicker-months").append(t("<table>").addClass("table-condensed").append(d.clone()).append(h.clone())),t("<div>").addClass("datepicker-years").append(t("<table>").addClass("table-condensed").append(d.clone()).append(h.clone())),t("<div>").addClass("datepicker-decades").append(t("<table>").addClass("table-condensed").append(d.clone()).append(h.clone()))])),m=t("<div>").addClass("timepicker").append((a=t("<div>").addClass("timepicker-hours").append(t("<table>").addClass("table-condensed")),l=t("<div>").addClass("timepicker-minutes").append(t("<table>").addClass("table-condensed")),u=t("<div>").addClass("timepicker-seconds").append(t("<table>").addClass("table-condensed")),c=[(n=t("<tr>"),r=t("<tr>"),o=t("<tr>"),S("h")&&(n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementHour}).addClass("btn").attr("data-action","incrementHours").append(t("<span>").addClass(i.icons.up)))),r.append(t("<td>").append(t("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:i.tooltips.pickHour}).attr("data-action","showHours"))),o.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementHour}).addClass("btn").attr("data-action","decrementHours").append(t("<span>").addClass(i.icons.down))))),S("m")&&(S("h")&&(n.append(t("<td>").addClass("separator")),r.append(t("<td>").addClass("separator").html(":")),o.append(t("<td>").addClass("separator"))),n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementMinute}).addClass("btn").attr("data-action","incrementMinutes").append(t("<span>").addClass(i.icons.up)))),r.append(t("<td>").append(t("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:i.tooltips.pickMinute}).attr("data-action","showMinutes"))),o.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementMinute}).addClass("btn").attr("data-action","decrementMinutes").append(t("<span>").addClass(i.icons.down))))),S("s")&&(S("m")&&(n.append(t("<td>").addClass("separator")),r.append(t("<td>").addClass("separator").html(":")),o.append(t("<td>").addClass("separator"))),n.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(t("<span>").addClass(i.icons.up)))),r.append(t("<td>").append(t("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:i.tooltips.pickSecond}).attr("data-action","showSeconds"))),o.append(t("<td>").append(t("<a>").attr({href:"#",tabindex:"-1",title:i.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(t("<span>").addClass(i.icons.down))))),s||(n.append(t("<td>").addClass("separator")),r.append(t("<td>").append(t("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"-1",title:i.tooltips.togglePeriod}))),o.append(t("<td>").addClass("separator"))),t("<div>").addClass("timepicker-picker").append(t("<table>").addClass("table-condensed").append([n,r,o])))],S("h")&&c.push(a),S("m")&&c.push(l),S("s")&&c.push(u),c)),g=t("<ul>").addClass("list-unstyled"),v=t("<li>").addClass("picker-switch"+(i.collapse?" accordion-toggle":"")).append((e=[],i.showTodayButton&&e.push(t("<td>").append(t("<a>").attr({"data-action":"today",title:i.tooltips.today}).append(t("<span>").addClass(i.icons.today)))),!i.sideBySide&&E()&&$()&&e.push(t("<td>").append(t("<a>").attr({"data-action":"togglePicker",title:i.tooltips.selectTime}).append(t("<span>").addClass(i.icons.time)))),i.showClear&&e.push(t("<td>").append(t("<a>").attr({"data-action":"clear",title:i.tooltips.clear}).append(t("<span>").addClass(i.icons.clear)))),i.showClose&&e.push(t("<td>").append(t("<a>").attr({"data-action":"close",title:i.tooltips.close}).append(t("<span>").addClass(i.icons.close)))),t("<table>").addClass("table-condensed").append(t("<tbody>").append(t("<tr>").append(e)))));return i.inline&&f.removeClass("dropdown-menu"),s&&f.addClass("usetwentyfour"),S("s")&&!s&&f.addClass("wider"),i.sideBySide&&E()&&$()?(f.addClass("timepicker-sbs"),"top"===i.toolbarPlacement&&f.append(v),f.append(t("<div>").addClass("row").append(p.addClass("col-md-6")).append(m.addClass("col-md-6"))),"bottom"===i.toolbarPlacement&&f.append(v),f):("top"===i.toolbarPlacement&&g.append(v),E()&&g.append(t("<li>").addClass(i.collapse&&$()?"collapse in":"").append(p)),"default"===i.toolbarPlacement&&g.append(v),$()&&g.append(t("<li>").addClass(i.collapse&&E()?"collapse":"").append(m)),"bottom"===i.toolbarPlacement&&g.append(v),f.append(g))},M=function(){var e,r=(m||n).position(),o=(m||n).offset(),a=i.widgetPositioning.vertical,s=i.widgetPositioning.horizontal;if(i.widgetParent)e=i.widgetParent.append(g);else if(n.is("input"))e=n.after(g).parent();else{if(i.inline)return void(e=n.append(g));e=n,n.children().first().after(g)}if("auto"===a&&(a=o.top+1.5*g.height()>=t(window).height()+t(window).scrollTop()&&g.height()+n.outerHeight()<o.top?"top":"bottom"),"auto"===s&&(s=e.width()<o.left+g.outerWidth()/2&&o.left+g.outerWidth()>t(window).width()?"right":"left"),"top"===a?g.addClass("top").removeClass("bottom"):g.addClass("bottom").removeClass("top"),"right"===s?g.addClass("pull-right"):g.removeClass("pull-right"),"static"===e.css("position")&&(e=e.parents().filter(function(){return"static"!==t(this).css("position")}).first()),0===e.length)throw new Error("datetimepicker component should be placed within a non-static positioned container");g.css({top:"top"===a?"auto":r.top+n.outerHeight(),bottom:"top"===a?e.outerHeight()-(e===n?0:r.top):"auto",left:"left"===s?e===n?0:r.left:"auto",right:"left"===s?"auto":e.outerWidth()-n.outerWidth()-(e===n?0:r.left)})},A=function(t){"dp.change"===t.type&&(t.date&&t.date.isSame(t.oldDate)||!t.date&&!t.oldDate)||n.trigger(t)},j=function(t){"y"===t&&(t="YYYY"),A({type:"dp.update",change:t,viewDate:o.clone()})},N=function(t){g&&(t&&(c=Math.max(v,Math.min(3,c+t))),g.find(".datepicker > div").hide().filter(".datepicker-"+y[c].clsName).show())},I=function(e,n){if(!e.isValid())return!1;if(i.disabledDates&&"d"===n&&(r=e,!0===i.disabledDates[r.format("YYYY-MM-DD")]))return!1;var r;if(i.enabledDates&&"d"===n&&!function(t){return!0===i.enabledDates[t.format("YYYY-MM-DD")]}(e))return!1;if(i.minDate&&e.isBefore(i.minDate,n))return!1;if(i.maxDate&&e.isAfter(i.maxDate,n))return!1;if(i.daysOfWeekDisabled&&"d"===n&&-1!==i.daysOfWeekDisabled.indexOf(e.day()))return!1;if(i.disabledHours&&("h"===n||"m"===n||"s"===n)&&function(t){return!0===i.disabledHours[t.format("H")]}(e))return!1;if(i.enabledHours&&("h"===n||"m"===n||"s"===n)&&!function(t){return!0===i.enabledHours[t.format("H")]}(e))return!1;if(i.disabledTimeIntervals&&("h"===n||"m"===n||"s"===n)){var o=!1;if(t.each(i.disabledTimeIntervals,function(){if(e.isBetween(this[0],this[1]))return o=!0,!1}),o)return!1}return!0},P=function(){var n,a,s,l=g.find(".datepicker-days"),u=l.find("th"),c=[],d=[];if(E()){for(u.eq(0).find("span").attr("title",i.tooltips.prevMonth),u.eq(1).attr("title",i.tooltips.selectMonth),u.eq(2).find("span").attr("title",i.tooltips.nextMonth),l.find(".disabled").removeClass("disabled"),u.eq(1).text(o.format(i.dayViewHeaderFormat)),I(o.clone().subtract(1,"M"),"M")||u.eq(0).addClass("disabled"),I(o.clone().add(1,"M"),"M")||u.eq(2).addClass("disabled"),n=o.clone().startOf("M").startOf("w").startOf("d"),s=0;s<42;s++)0===n.weekday()&&(a=t("<tr>"),i.calendarWeeks&&a.append('<td class="cw">'+n.week()+"</td>"),c.push(a)),d=["day"],n.isBefore(o,"M")&&d.push("old"),n.isAfter(o,"M")&&d.push("new"),n.isSame(r,"d")&&!p&&d.push("active"),I(n,"d")||d.push("disabled"),n.isSame(T(),"d")&&d.push("today"),0!==n.day()&&6!==n.day()||d.push("weekend"),A({type:"dp.classify",date:n,classNames:d}),a.append('<td data-action="selectDay" data-day="'+n.format("L")+'" class="'+d.join(" ")+'">'+n.date()+"</td>"),n.add(1,"d");var h,f,m;l.find("tbody").empty().append(c),h=g.find(".datepicker-months"),f=h.find("th"),m=h.find("tbody").find("span"),f.eq(0).find("span").attr("title",i.tooltips.prevYear),f.eq(1).attr("title",i.tooltips.selectYear),f.eq(2).find("span").attr("title",i.tooltips.nextYear),h.find(".disabled").removeClass("disabled"),I(o.clone().subtract(1,"y"),"y")||f.eq(0).addClass("disabled"),f.eq(1).text(o.year()),I(o.clone().add(1,"y"),"y")||f.eq(2).addClass("disabled"),m.removeClass("active"),r.isSame(o,"y")&&!p&&m.eq(r.month()).addClass("active"),m.each(function(e){I(o.clone().month(e),"M")||t(this).addClass("disabled")}),function(){var t=g.find(".datepicker-years"),e=t.find("th"),n=o.clone().subtract(5,"y"),a=o.clone().add(6,"y"),s="";for(e.eq(0).find("span").attr("title",i.tooltips.prevDecade),e.eq(1).attr("title",i.tooltips.selectDecade),e.eq(2).find("span").attr("title",i.tooltips.nextDecade),t.find(".disabled").removeClass("disabled"),i.minDate&&i.minDate.isAfter(n,"y")&&e.eq(0).addClass("disabled"),e.eq(1).text(n.year()+"-"+a.year()),i.maxDate&&i.maxDate.isBefore(a,"y")&&e.eq(2).addClass("disabled");!n.isAfter(a,"y");)s+='<span data-action="selectYear" class="year'+(n.isSame(r,"y")&&!p?" active":"")+(I(n,"y")?"":" disabled")+'">'+n.year()+"</span>",n.add(1,"y");t.find("td").html(s)}(),function(){var t,n=g.find(".datepicker-decades"),a=n.find("th"),s=e({y:o.year()-o.year()%100-1}),l=s.clone().add(100,"y"),u=s.clone(),c=!1,d=!1,h="";for(a.eq(0).find("span").attr("title",i.tooltips.prevCentury),a.eq(2).find("span").attr("title",i.tooltips.nextCentury),n.find(".disabled").removeClass("disabled"),(s.isSame(e({y:1900}))||i.minDate&&i.minDate.isAfter(s,"y"))&&a.eq(0).addClass("disabled"),a.eq(1).text(s.year()+"-"+l.year()),(s.isSame(e({y:2e3}))||i.maxDate&&i.maxDate.isBefore(l,"y"))&&a.eq(2).addClass("disabled");!s.isAfter(l,"y");)t=s.year()+12,c=i.minDate&&i.minDate.isAfter(s,"y")&&i.minDate.year()<=t,d=i.maxDate&&i.maxDate.isAfter(s,"y")&&i.maxDate.year()<=t,h+='<span data-action="selectDecade" class="decade'+(r.isAfter(s)&&r.year()<=t?" active":"")+(I(s,"y")||c||d?"":" disabled")+'" data-selection="'+(s.year()+6)+'">'+(s.year()+1)+" - "+(s.year()+12)+"</span>",s.add(12,"y");h+="<span></span><span></span><span></span>",n.find("td").html(h),a.eq(1).text(u.year()+1+"-"+s.year())}()}},L=function(){var e,n,a=g.find(".timepicker span[data-time-component]");s||(e=g.find(".timepicker [data-action=togglePeriod]"),n=r.clone().add(r.hours()>=12?-12:12,"h"),e.text(r.format("A")),I(n,"h")?e.removeClass("disabled"):e.addClass("disabled")),a.filter("[data-time-component=hours]").text(r.format(s?"HH":"hh")),a.filter("[data-time-component=minutes]").text(r.format("mm")),a.filter("[data-time-component=seconds]").text(r.format("ss")),function(){var e=g.find(".timepicker-hours table"),n=o.clone().startOf("d"),i=[],r=t("<tr>");for(o.hour()>11&&!s&&n.hour(12);n.isSame(o,"d")&&(s||o.hour()<12&&n.hour()<12||o.hour()>11);)n.hour()%4==0&&(r=t("<tr>"),i.push(r)),r.append('<td data-action="selectHour" class="hour'+(I(n,"h")?"":" disabled")+'">'+n.format(s?"HH":"hh")+"</td>"),n.add(1,"h");e.empty().append(i)}(),function(){for(var e=g.find(".timepicker-minutes table"),n=o.clone().startOf("h"),r=[],a=t("<tr>"),s=1===i.stepping?5:i.stepping;o.isSame(n,"h");)n.minute()%(4*s)==0&&(a=t("<tr>"),r.push(a)),a.append('<td data-action="selectMinute" class="minute'+(I(n,"m")?"":" disabled")+'">'+n.format("mm")+"</td>"),n.add(s,"m");e.empty().append(r)}(),function(){for(var e=g.find(".timepicker-seconds table"),n=o.clone().startOf("m"),i=[],r=t("<tr>");o.isSame(n,"m");)n.second()%20==0&&(r=t("<tr>"),i.push(r)),r.append('<td data-action="selectSecond" class="second'+(I(n,"s")?"":" disabled")+'">'+n.format("ss")+"</td>"),n.add(5,"s");e.empty().append(i)}()},R=function(){g&&(P(),L())},Y=function(t){var e=p?null:r;if(!t)return p=!0,a.val(""),n.data("date",""),A({type:"dp.change",date:!1,oldDate:e}),void R();if(t=t.clone().locale(i.locale),C()&&t.tz(i.timeZone),1!==i.stepping)for(t.minutes(Math.round(t.minutes()/i.stepping)*i.stepping).seconds(0);i.minDate&&t.isBefore(i.minDate);)t.add(i.stepping,"minutes");I(t)?(o=(r=t).clone(),a.val(r.format(l)),n.data("date",r.format(l)),p=!1,R(),A({type:"dp.change",date:r.clone(),oldDate:e})):(i.keepInvalid?A({type:"dp.change",date:t,oldDate:e}):a.val(p?"":r.format(l)),A({type:"dp.error",date:t,oldDate:e}))},H=function(){var e=!1;return g?(g.find(".collapse").each(function(){var n=t(this).data("collapse");return!n||!n.transitioning||(e=!0,!1)}),e?f:(m&&m.hasClass("btn")&&m.toggleClass("active"),g.hide(),t(window).off("resize",M),g.off("click","[data-action]"),g.off("mousedown",!1),g.remove(),g=!1,A({type:"dp.hide",date:r.clone()}),a.blur(),o=r.clone(),f)):f},F=function(){Y(null)},U=function(t){return void 0===i.parseInputDate?(!e.isMoment(t)||t instanceof Date)&&(t=T(t)):t=i.parseInputDate(t),t},W={next:function(){var t=y[c].navFnc;o.add(y[c].navStep,t),P(),j(t)},previous:function(){var t=y[c].navFnc;o.subtract(y[c].navStep,t),P(),j(t)},pickerSwitch:function(){N(1)},selectMonth:function(e){var n=t(e.target).closest("tbody").find("span").index(t(e.target));o.month(n),c===v?(Y(r.clone().year(o.year()).month(o.month())),i.inline||H()):(N(-1),P()),j("M")},selectYear:function(e){var n=parseInt(t(e.target).text(),10)||0;o.year(n),c===v?(Y(r.clone().year(o.year())),i.inline||H()):(N(-1),P()),j("YYYY")},selectDecade:function(e){var n=parseInt(t(e.target).data("selection"),10)||0;o.year(n),c===v?(Y(r.clone().year(o.year())),i.inline||H()):(N(-1),P()),j("YYYY")},selectDay:function(e){var n=o.clone();t(e.target).is(".old")&&n.subtract(1,"M"),t(e.target).is(".new")&&n.add(1,"M"),Y(n.date(parseInt(t(e.target).text(),10))),$()||i.keepOpen||i.inline||H()},incrementHours:function(){var t=r.clone().add(1,"h");I(t,"h")&&Y(t)},incrementMinutes:function(){var t=r.clone().add(i.stepping,"m");I(t,"m")&&Y(t)},incrementSeconds:function(){var t=r.clone().add(1,"s");I(t,"s")&&Y(t)},decrementHours:function(){var t=r.clone().subtract(1,"h");I(t,"h")&&Y(t)},decrementMinutes:function(){var t=r.clone().subtract(i.stepping,"m");I(t,"m")&&Y(t)},decrementSeconds:function(){var t=r.clone().subtract(1,"s");I(t,"s")&&Y(t)},togglePeriod:function(){Y(r.clone().add(r.hours()>=12?-12:12,"h"))},togglePicker:function(e){var n,r=t(e.target),o=r.closest("ul"),a=o.find(".in"),s=o.find(".collapse:not(.in)");if(a&&a.length){if((n=a.data("collapse"))&&n.transitioning)return;a.collapse?(a.collapse("hide"),s.collapse("show")):(a.removeClass("in"),s.addClass("in")),r.is("span")?r.toggleClass(i.icons.time+" "+i.icons.date):r.find("span").toggleClass(i.icons.time+" "+i.icons.date)}},showPicker:function(){g.find(".timepicker > div:not(.timepicker-picker)").hide(),g.find(".timepicker .timepicker-picker").show()},showHours:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-hours").show()},showMinutes:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){g.find(".timepicker .timepicker-picker").hide(),g.find(".timepicker .timepicker-seconds").show()},selectHour:function(e){var n=parseInt(t(e.target).text(),10);s||(r.hours()>=12?12!==n&&(n+=12):12===n&&(n=0)),Y(r.clone().hours(n)),W.showPicker.call(f)},selectMinute:function(e){Y(r.clone().minutes(parseInt(t(e.target).text(),10))),W.showPicker.call(f)},selectSecond:function(e){Y(r.clone().seconds(parseInt(t(e.target).text(),10))),W.showPicker.call(f)},clear:F,today:function(){var t=T();I(t,"d")&&Y(t)},close:H},q=function(e){return!t(e.currentTarget).is(".disabled")&&(W[t(e.currentTarget).data("action")].apply(f,arguments),!1)},B=function(){var e;return a.prop("disabled")||!i.ignoreReadonly&&a.prop("readonly")||g?f:(void 0!==a.val()&&0!==a.val().trim().length?Y(U(a.val().trim())):p&&i.useCurrent&&(i.inline||a.is("input")&&0===a.val().trim().length)&&(e=T(),"string"==typeof i.useCurrent&&(e={year:function(t){return t.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(t){return t.date(1).hours(0).seconds(0).minutes(0)},day:function(t){return t.hours(0).seconds(0).minutes(0)},hour:function(t){return t.seconds(0).minutes(0)},minute:function(t){return t.seconds(0)}}[i.useCurrent](e)),Y(e)),g=O(),function(){var e=t("<tr>"),n=o.clone().startOf("w").startOf("d");for(!0===i.calendarWeeks&&e.append(t("<th>").addClass("cw").text("#"));n.isBefore(o.clone().endOf("w"));)e.append(t("<th>").addClass("dow").text(n.format("dd"))),n.add(1,"d");g.find(".datepicker-days thead").append(e)}(),function(){for(var e=[],n=o.clone().startOf("y").startOf("d");n.isSame(o,"y");)e.push(t("<span>").attr("data-action","selectMonth").addClass("month").text(n.format("MMM"))),n.add(1,"M");g.find(".datepicker-months td").empty().append(e)}(),g.find(".timepicker-hours").hide(),g.find(".timepicker-minutes").hide(),g.find(".timepicker-seconds").hide(),R(),N(),t(window).on("resize",M),g.on("click","[data-action]",q),g.on("mousedown",!1),m&&m.hasClass("btn")&&m.toggleClass("active"),M(),g.show(),i.focusOnShow&&!a.is(":focus")&&a.focus(),A({type:"dp.show"}),f)},z=function(){return g?H():B()},V=function(t){var e,n,r,o,a=null,s=[],l={},u=t.which;for(e in k[u]="p",k)k.hasOwnProperty(e)&&"p"===k[e]&&(s.push(e),parseInt(e,10)!==u&&(l[e]=!0));for(e in i.keyBinds)if(i.keyBinds.hasOwnProperty(e)&&"function"==typeof i.keyBinds[e]&&(r=e.split(" ")).length===s.length&&D[u]===r[r.length-1]){for(o=!0,n=r.length-2;n>=0;n--)if(!(D[r[n]]in l)){o=!1;break}if(o){a=i.keyBinds[e];break}}a&&(a.call(f,g),t.stopPropagation(),t.preventDefault())},G=function(t){k[t.which]="r",t.stopPropagation(),t.preventDefault()},Z=function(e){var n=t(e.target).val().trim(),i=n?U(n):null;return Y(i),e.stopImmediatePropagation(),!1},Q=function(e){var n={};return t.each(e,function(){var t=U(this);t.isValid()&&(n[t.format("YYYY-MM-DD")]=!0)}),!!Object.keys(n).length&&n},K=function(e){var n={};return t.each(e,function(){n[this]=!0}),!!Object.keys(n).length&&n},J=function(){var t=i.format||"L LT";l=t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return(r.localeData().longDateFormat(t)||t).replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(t){return r.localeData().longDateFormat(t)||t})}),(u=i.extraFormats?i.extraFormats.slice():[]).indexOf(t)<0&&u.indexOf(l)<0&&u.push(l),s=l.toLowerCase().indexOf("a")<1&&l.replace(/\[.*?\]/g,"").indexOf("h")<1,S("y")&&(v=2),S("M")&&(v=1),S("d")&&(v=0),c=Math.max(v,c),p||Y(r)};if(f.destroy=function(){H(),a.off({change:Z,blur:blur,keydown:V,keyup:G,focus:i.allowInputToggle?H:""}),n.is("input")?a.off({focus:B}):m&&(m.off("click",z),m.off("mousedown",!1)),n.removeData("DateTimePicker"),n.removeData("date")},f.toggle=z,f.show=B,f.hide=H,f.disable=function(){return H(),m&&m.hasClass("btn")&&m.addClass("disabled"),a.prop("disabled",!0),f},f.enable=function(){return m&&m.hasClass("btn")&&m.removeClass("disabled"),a.prop("disabled",!1),f},f.ignoreReadonly=function(t){if(0===arguments.length)return i.ignoreReadonly;if("boolean"!=typeof t)throw new TypeError("ignoreReadonly () expects a boolean parameter");return i.ignoreReadonly=t,f},f.options=function(e){if(0===arguments.length)return t.extend(!0,{},i);if(!(e instanceof Object))throw new TypeError("options() options parameter should be an object");return t.extend(!0,i,e),t.each(i,function(t,e){if(void 0===f[t])throw new TypeError("option "+t+" is not recognized!");f[t](e)}),f},f.date=function(t){if(0===arguments.length)return p?null:r.clone();if(!(null===t||"string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return Y(null===t?null:U(t)),f},f.format=function(t){if(0===arguments.length)return i.format;if("string"!=typeof t&&("boolean"!=typeof t||!1!==t))throw new TypeError("format() expects a string or boolean:false parameter "+t);return i.format=t,l&&J(),f},f.timeZone=function(t){if(0===arguments.length)return i.timeZone;if("string"!=typeof t)throw new TypeError("newZone() expects a string parameter");return i.timeZone=t,f},f.dayViewHeaderFormat=function(t){if(0===arguments.length)return i.dayViewHeaderFormat;if("string"!=typeof t)throw new TypeError("dayViewHeaderFormat() expects a string parameter");return i.dayViewHeaderFormat=t,f},f.extraFormats=function(t){if(0===arguments.length)return i.extraFormats;if(!1!==t&&!(t instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return i.extraFormats=t,u&&J(),f},f.disabledDates=function(e){if(0===arguments.length)return i.disabledDates?t.extend({},i.disabledDates):i.disabledDates;if(!e)return i.disabledDates=!1,R(),f;if(!(e instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return i.disabledDates=Q(e),i.enabledDates=!1,R(),f},f.enabledDates=function(e){if(0===arguments.length)return i.enabledDates?t.extend({},i.enabledDates):i.enabledDates;if(!e)return i.enabledDates=!1,R(),f;if(!(e instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return i.enabledDates=Q(e),i.disabledDates=!1,R(),f},f.daysOfWeekDisabled=function(t){if(0===arguments.length)return i.daysOfWeekDisabled.splice(0);if("boolean"==typeof t&&!t)return i.daysOfWeekDisabled=!1,R(),f;if(!(t instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(i.daysOfWeekDisabled=t.reduce(function(t,e){return(e=parseInt(e,10))>6||e<0||isNaN(e)?t:(-1===t.indexOf(e)&&t.push(e),t)},[]).sort(),i.useCurrent&&!i.keepInvalid){for(var e=0;!I(r,"d");){if(r.add(1,"d"),31===e)throw"Tried 31 times to find a valid date";e++}Y(r)}return R(),f},f.maxDate=function(t){if(0===arguments.length)return i.maxDate?i.maxDate.clone():i.maxDate;if("boolean"==typeof t&&!1===t)return i.maxDate=!1,R(),f;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=T()));var e=U(t);if(!e.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+t);if(i.minDate&&e.isBefore(i.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+e.format(l));return i.maxDate=e,i.useCurrent&&!i.keepInvalid&&r.isAfter(t)&&Y(i.maxDate),o.isAfter(e)&&(o=e.clone().subtract(i.stepping,"m")),R(),f},f.minDate=function(t){if(0===arguments.length)return i.minDate?i.minDate.clone():i.minDate;if("boolean"==typeof t&&!1===t)return i.minDate=!1,R(),f;"string"==typeof t&&("now"!==t&&"moment"!==t||(t=T()));var e=U(t);if(!e.isValid())throw new TypeError("minDate() Could not parse date parameter: "+t);if(i.maxDate&&e.isAfter(i.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+e.format(l));return i.minDate=e,i.useCurrent&&!i.keepInvalid&&r.isBefore(t)&&Y(i.minDate),o.isBefore(e)&&(o=e.clone().add(i.stepping,"m")),R(),f},f.defaultDate=function(t){if(0===arguments.length)return i.defaultDate?i.defaultDate.clone():i.defaultDate;if(!t)return i.defaultDate=!1,f;"string"==typeof t&&(t="now"===t||"moment"===t?T():T(t));var e=U(t);if(!e.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+t);if(!I(e))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return i.defaultDate=e,(i.defaultDate&&i.inline||""===a.val().trim())&&Y(i.defaultDate),f},f.locale=function(t){if(0===arguments.length)return i.locale;if(!e.localeData(t))throw new TypeError("locale() locale "+t+" is not loaded from moment locales!");return i.locale=t,r.locale(i.locale),o.locale(i.locale),l&&J(),g&&(H(),B()),f},f.stepping=function(t){return 0===arguments.length?i.stepping:(t=parseInt(t,10),(isNaN(t)||t<1)&&(t=1),i.stepping=t,f)},f.useCurrent=function(t){var e=["year","month","day","hour","minute"];if(0===arguments.length)return i.useCurrent;if("boolean"!=typeof t&&"string"!=typeof t)throw new TypeError("useCurrent() expects a boolean or string parameter");if("string"==typeof t&&-1===e.indexOf(t.toLowerCase()))throw new TypeError("useCurrent() expects a string parameter of "+e.join(", "));return i.useCurrent=t,f},f.collapse=function(t){if(0===arguments.length)return i.collapse;if("boolean"!=typeof t)throw new TypeError("collapse() expects a boolean parameter");return i.collapse===t?f:(i.collapse=t,g&&(H(),B()),f)},f.icons=function(e){if(0===arguments.length)return t.extend({},i.icons);if(!(e instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return t.extend(i.icons,e),g&&(H(),B()),f},f.tooltips=function(e){if(0===arguments.length)return t.extend({},i.tooltips);if(!(e instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return t.extend(i.tooltips,e),g&&(H(),B()),f},f.useStrict=function(t){if(0===arguments.length)return i.useStrict;if("boolean"!=typeof t)throw new TypeError("useStrict() expects a boolean parameter");return i.useStrict=t,f},f.sideBySide=function(t){if(0===arguments.length)return i.sideBySide;if("boolean"!=typeof t)throw new TypeError("sideBySide() expects a boolean parameter");return i.sideBySide=t,g&&(H(),B()),f},f.viewMode=function(t){if(0===arguments.length)return i.viewMode;if("string"!=typeof t)throw new TypeError("viewMode() expects a string parameter");if(-1===b.indexOf(t))throw new TypeError("viewMode() parameter must be one of ("+b.join(", ")+") value");return i.viewMode=t,c=Math.max(b.indexOf(t),v),N(),f},f.toolbarPlacement=function(t){if(0===arguments.length)return i.toolbarPlacement;if("string"!=typeof t)throw new TypeError("toolbarPlacement() expects a string parameter");if(-1===x.indexOf(t))throw new TypeError("toolbarPlacement() parameter must be one of ("+x.join(", ")+") value");return i.toolbarPlacement=t,g&&(H(),B()),f},f.widgetPositioning=function(e){if(0===arguments.length)return t.extend({},i.widgetPositioning);if("[object Object]"!=={}.toString.call(e))throw new TypeError("widgetPositioning() expects an object variable");if(e.horizontal){if("string"!=typeof e.horizontal)throw new TypeError("widgetPositioning() horizontal variable must be a string");if(e.horizontal=e.horizontal.toLowerCase(),-1===_.indexOf(e.horizontal))throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+_.join(", ")+")");i.widgetPositioning.horizontal=e.horizontal}if(e.vertical){if("string"!=typeof e.vertical)throw new TypeError("widgetPositioning() vertical variable must be a string");if(e.vertical=e.vertical.toLowerCase(),-1===w.indexOf(e.vertical))throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+w.join(", ")+")");i.widgetPositioning.vertical=e.vertical}return R(),f},f.calendarWeeks=function(t){if(0===arguments.length)return i.calendarWeeks;if("boolean"!=typeof t)throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return i.calendarWeeks=t,R(),f},f.showTodayButton=function(t){if(0===arguments.length)return i.showTodayButton;if("boolean"!=typeof t)throw new TypeError("showTodayButton() expects a boolean parameter");return i.showTodayButton=t,g&&(H(),B()),f},f.showClear=function(t){if(0===arguments.length)return i.showClear;if("boolean"!=typeof t)throw new TypeError("showClear() expects a boolean parameter");return i.showClear=t,g&&(H(),B()),f},f.widgetParent=function(e){if(0===arguments.length)return i.widgetParent;if("string"==typeof e&&(e=t(e)),null!==e&&"string"!=typeof e&&!(e instanceof t))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return i.widgetParent=e,g&&(H(),B()),f},f.keepOpen=function(t){if(0===arguments.length)return i.keepOpen;if("boolean"!=typeof t)throw new TypeError("keepOpen() expects a boolean parameter");return i.keepOpen=t,f},f.focusOnShow=function(t){if(0===arguments.length)return i.focusOnShow;if("boolean"!=typeof t)throw new TypeError("focusOnShow() expects a boolean parameter");return i.focusOnShow=t,f},f.inline=function(t){if(0===arguments.length)return i.inline;if("boolean"!=typeof t)throw new TypeError("inline() expects a boolean parameter");return i.inline=t,f},f.clear=function(){return F(),f},f.keyBinds=function(t){return 0===arguments.length?i.keyBinds:(i.keyBinds=t,f)},f.getMoment=function(t){return T(t)},f.debug=function(t){if("boolean"!=typeof t)throw new TypeError("debug() expects a boolean parameter");return i.debug=t,f},f.allowInputToggle=function(t){if(0===arguments.length)return i.allowInputToggle;if("boolean"!=typeof t)throw new TypeError("allowInputToggle() expects a boolean parameter");return i.allowInputToggle=t,f},f.showClose=function(t){if(0===arguments.length)return i.showClose;if("boolean"!=typeof t)throw new TypeError("showClose() expects a boolean parameter");return i.showClose=t,f},f.keepInvalid=function(t){if(0===arguments.length)return i.keepInvalid;if("boolean"!=typeof t)throw new TypeError("keepInvalid() expects a boolean parameter");return i.keepInvalid=t,f},f.datepickerInput=function(t){if(0===arguments.length)return i.datepickerInput;if("string"!=typeof t)throw new TypeError("datepickerInput() expects a string parameter");return i.datepickerInput=t,f},f.parseInputDate=function(t){if(0===arguments.length)return i.parseInputDate;if("function"!=typeof t)throw new TypeError("parseInputDate() sholud be as function");return i.parseInputDate=t,f},f.disabledTimeIntervals=function(e){if(0===arguments.length)return i.disabledTimeIntervals?t.extend({},i.disabledTimeIntervals):i.disabledTimeIntervals;if(!e)return i.disabledTimeIntervals=!1,R(),f;if(!(e instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return i.disabledTimeIntervals=e,R(),f},f.disabledHours=function(e){if(0===arguments.length)return i.disabledHours?t.extend({},i.disabledHours):i.disabledHours;if(!e)return i.disabledHours=!1,R(),f;if(!(e instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(i.disabledHours=K(e),i.enabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!I(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Y(r)}return R(),f},f.enabledHours=function(e){if(0===arguments.length)return i.enabledHours?t.extend({},i.enabledHours):i.enabledHours;if(!e)return i.enabledHours=!1,R(),f;if(!(e instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(i.enabledHours=K(e),i.disabledHours=!1,i.useCurrent&&!i.keepInvalid){for(var n=0;!I(r,"h");){if(r.add(1,"h"),24===n)throw"Tried 24 times to find a valid date";n++}Y(r)}return R(),f},f.viewDate=function(t){if(0===arguments.length)return o.clone();if(!t)return o=r.clone(),f;if(!("string"==typeof t||e.isMoment(t)||t instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return o=U(t),j(),f},n.is("input"))a=n;else if(0===(a=n.find(i.datepickerInput)).length)a=n.find("input");else if(!a.is("input"))throw new Error('CSS class "'+i.datepickerInput+'" cannot be applied to non input element');if(n.hasClass("input-group")&&(m=0===n.find(".datepickerbutton").length?n.find(".input-group-addon"):n.find(".datepickerbutton")),!i.inline&&!a.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return r=T(),o=r.clone(),t.extend(!0,i,(h={},(d=n.is("input")||i.inline?n.data():n.find("input").data()).dateOptions&&d.dateOptions instanceof Object&&(h=t.extend(!0,h,d.dateOptions)),t.each(i,function(t){var e="date"+t.charAt(0).toUpperCase()+t.slice(1);void 0!==d[e]&&(h[t]=d[e])}),h)),f.options(i),J(),a.on({change:Z,blur:i.debug?"":H,keydown:V,keyup:G,focus:i.allowInputToggle?B:""}),n.is("input")?a.on({focus:B}):m&&(m.on("click",z),m.on("mousedown",!1)),a.prop("disabled")&&f.disable(),a.is("input")&&0!==a.val().trim().length?Y(U(a.val().trim())):i.defaultDate&&void 0===a.attr("placeholder")&&Y(i.defaultDate),i.inline&&B(),f};return t.fn.datetimepicker=function(e){e=e||{};var i,r=Array.prototype.slice.call(arguments,1),o=!0;if("object"==typeof e)return this.each(function(){var i,r=t(this);r.data("DateTimePicker")||(i=t.extend(!0,{},t.fn.datetimepicker.defaults,e),r.data("DateTimePicker",n(r,i)))});if("string"==typeof e)return this.each(function(){var n=t(this).data("DateTimePicker");if(!n)throw new Error('bootstrap-datetimepicker("'+e+'") method was called on an element that is not using DateTimePicker');i=n[e].apply(n,r),o=i===n}),o||t.inArray(e,["destroy","hide","show","toggle"])>-1?this:i;throw new TypeError("Invalid arguments for DateTimePicker: "+e)},t.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:e.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},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 Period",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(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().subtract(7,"d")):this.date(e.clone().add(this.stepping(),"m"))}},down:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().add(7,"d")):this.date(e.clone().subtract(this.stepping(),"m"))}else this.show()},"control up":function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().subtract(1,"y")):this.date(e.clone().add(1,"h"))}},"control down":function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")?this.date(e.clone().add(1,"y")):this.date(e.clone().subtract(1,"h"))}},left:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"d"))}},right:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"d"))}},pageUp:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().subtract(1,"M"))}},pageDown:function(t){if(t){var e=this.date()||this.getMoment();t.find(".datepicker").is(":visible")&&this.date(e.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(t){t&&t.find(".timepicker").is(":visible")&&t.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},t.fn.datetimepicker}),function(t){function e(e,i,r){return r=y(i,r),this.on("click.pjax",e,function(e){var i=r;i.container||((i=t.extend({},r)).container=t(this).attr("data-pjax")),n(e,i)})}function n(e,n,i){i=y(n,i);var o=e.currentTarget,a=t(o);if("A"!==o.tagName.toUpperCase())throw"$.fn.pjax or $.pjax.click requires an anchor element";if(!(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||location.protocol!==o.protocol||location.hostname!==o.hostname||o.href.indexOf("#")>-1&&v(o)==v(location)||e.isDefaultPrevented())){var s={url:o.href,container:a.attr("data-pjax"),target:o},l=t.extend({},s,i),u=t.Event("pjax:click");a.trigger(u,[l]),u.isDefaultPrevented()||(r(l),e.preventDefault(),a.trigger("pjax:clicked",[l]))}}function i(e,n,i){i=y(n,i);var o=e.currentTarget,a=t(o);if("FORM"!==o.tagName.toUpperCase())throw"$.pjax.submit requires a form element";var s={type:(a.attr("method")||"GET").toUpperCase(),url:a.attr("action"),container:a.attr("data-pjax"),target:o};if("GET"!==s.type&&void 0!==window.FormData)s.data=new FormData(o),s.processData=!1,s.contentType=!1;else{if(a.find(":file").length)return;s.data=a.serializeArray()}r(t.extend({},s,i)),e.preventDefault()}function r(e){e=t.extend(!0,{},t.ajaxSettings,r.defaults,e),t.isFunction(e.url)&&(e.url=e.url());var n=g(e.url).hash,i=t.type(e.container);if("string"!==i)throw"expected string value for 'container' option; got "+i;var o,s=e.context=t(e.container);if(!s.length)throw"the container selector '"+e.container+"' did not match anything";function l(n,i,r){r||(r={}),r.relatedTarget=e.target;var o=t.Event(n,r);return s.trigger(o,i),!o.isDefaultPrevented()}e.data||(e.data={}),t.isArray(e.data)?e.data.push({name:"_pjax",value:e.container}):e.data._pjax=e.container,e.beforeSend=function(t,i){if("GET"!==i.type&&(i.timeout=0),t.setRequestHeader("X-PJAX","true"),t.setRequestHeader("X-PJAX-Container",e.container),!l("pjax:beforeSend",[t,i]))return!1;i.timeout>0&&(o=setTimeout(function(){l("pjax:timeout",[t,e])&&t.abort("timeout")},i.timeout),i.timeout=0);var r=g(i.url);n&&(r.hash=n),e.requestUrl=m(r)},e.complete=function(t,n){o&&clearTimeout(o),l("pjax:complete",[t,n,e]),l("pjax:end",[t,e])},e.error=function(t,n,i){var r=_("",t,e),o=l("pjax:error",[t,n,i,e]);"GET"==e.type&&"abort"!==n&&o&&a(r.url)},e.success=function(i,o,u){var c=r.state,d="function"==typeof t.pjax.defaults.version?t.pjax.defaults.version():t.pjax.defaults.version,h=u.getResponseHeader("X-PJAX-Version"),p=_(i,u,e),m=g(p.url);if(n&&(m.hash=n,p.url=m.href),d&&h&&d!==h)a(p.url);else if(p.contents){if(r.state={id:e.id||f(),url:p.url,title:p.title,container:e.container,fragment:e.fragment,timeout:e.timeout},(e.push||e.replace)&&window.history.replaceState(r.state,p.title,p.url),t.contains(s,document.activeElement))try{document.activeElement.blur()}catch(t){}p.title&&(document.title=p.title),l("pjax:beforeReplace",[p.contents,e],{state:r.state,previousState:c}),s.html(p.contents);var v=s.find("input[autofocus], textarea[autofocus]").last()[0];v&&document.activeElement!==v&&v.focus(),function(e){if(!e)return;var n=t("script[src]");e.each(function(){var e=this.src,i=n.filter(function(){return this.src===e});if(!i.length){var r=document.createElement("script"),o=t(this).attr("type");o&&(r.type=o),r.src=t(this).attr("src"),document.head.appendChild(r)}})}(p.scripts);var y=e.scrollTo;if(n){var b=decodeURIComponent(n.slice(1)),w=document.getElementById(b)||document.getElementsByName(b)[0];w&&(y=t(w).offset().top)}"number"==typeof y&&t(window).scrollTop(y),l("pjax:success",[i,o,u,e])}else a(p.url)},r.state||(r.state={id:f(),url:window.location.href,title:document.title,container:e.container,fragment:e.fragment,timeout:e.timeout},window.history.replaceState(r.state,document.title)),h(r.xhr),r.options=e;var u,c,d=r.xhr=t.ajax(e);return d.readyState>0&&(e.push&&!e.replace&&(u=r.state.id,c=[e.container,p(s)],x[u]=c,k.push(u),C(D,0),C(k,r.defaults.maxCacheLength),window.history.pushState(null,"",e.requestUrl)),l("pjax:start",[d,e]),l("pjax:send",[d,e])),r.xhr}function o(e,n){var i={url:window.location.href,push:!1,replace:!0,scrollTo:!1};return r(t.extend(i,y(e,n)))}function a(t){window.history.replaceState(null,"",r.state.url),window.location.replace(t)}var s=!0,l=window.location.href,u=window.history.state;function c(e){s||h(r.xhr);var n,i=r.state,o=e.state;if(o&&o.container){if(s&&l==o.url)return;if(i){if(i.id===o.id)return;n=i.id<o.id?"forward":"back"}var u=x[o.id]||[],c=u[0]||o.container,d=t(c),f=u[1];if(d.length){i&&function(t,e,n){var i,o;x[e]=n,"forward"===t?(i=k,o=D):(i=D,o=k);i.push(e),(e=o.pop())&&delete x[e];C(i,r.defaults.maxCacheLength)}(n,i.id,[c,p(d)]);var m=t.Event("pjax:popstate",{state:o,direction:n});d.trigger(m);var g={id:o.id,url:o.url,container:c,push:!1,fragment:o.fragment,timeout:o.timeout,scrollTo:!1};if(f){d.trigger("pjax:start",[null,g]),r.state=o,o.title&&(document.title=o.title);var v=t.Event("pjax:beforeReplace",{state:o,previousState:i});d.trigger(v,[f,g]),d.html(f),d.trigger("pjax:end",[null,g])}else r(g);d[0].offsetHeight}else a(location.href)}s=!1}function d(e){var n=t.isFunction(e.url)?e.url():e.url,i=e.type?e.type.toUpperCase():"GET",r=t("<form>",{method:"GET"===i?"GET":"POST",action:n,style:"display:none"});"GET"!==i&&"POST"!==i&&r.append(t("<input>",{type:"hidden",name:"_method",value:i.toLowerCase()}));var o=e.data;if("string"==typeof o)t.each(o.split("&"),function(e,n){var i=n.split("=");r.append(t("<input>",{type:"hidden",name:i[0],value:i[1]}))});else if(t.isArray(o))t.each(o,function(e,n){r.append(t("<input>",{type:"hidden",name:n.name,value:n.value}))});else if("object"==typeof o){var a;for(a in o)r.append(t("<input>",{type:"hidden",name:a,value:o[a]}))}t(document.body).append(r),r.submit()}function h(e){e&&e.readyState<4&&(e.onreadystatechange=t.noop,e.abort())}function f(){return(new Date).getTime()}function p(e){var n=e.clone();return n.find("script").each(function(){this.src||t._data(this,"globalEval",!1)}),n.contents()}function m(t){return t.search=t.search.replace(/([?&])(_pjax|_)=[^&]*/g,"").replace(/^&/,""),t.href.replace(/\?($|#)/,"$1")}function g(t){var e=document.createElement("a");return e.href=t,e}function v(t){return t.href.replace(/#.*/,"")}function y(e,n){return e&&n?((n=t.extend({},n)).container=e,n):t.isPlainObject(e)?e:{container:e}}function b(t,e){return t.filter(e).add(t.find(e))}function w(e){return t.parseHTML(e,document,!0)}function _(e,n,i){var r,o,a={},s=/<html/i.test(e),l=n.getResponseHeader("X-PJAX-URL");if(a.url=l?m(g(l)):i.requestUrl,s){o=t(w(e.match(/<body[^>]*>([\s\S.]*)<\/body>/i)[0]));var u=e.match(/<head[^>]*>([\s\S.]*)<\/head>/i);r=null!=u?t(w(u[0])):o}else r=o=t(w(e));if(0===o.length)return a;if(a.title=b(r,"title").last().text(),i.fragment){var c=o;"body"!==i.fragment&&(c=b(c,i.fragment).first()),c.length&&(a.contents="body"===i.fragment?c:c.contents(),a.title||(a.title=c.attr("title")||c.data("title")))}else s||(a.contents=o);return a.contents&&(a.contents=a.contents.not(function(){return t(this).is("title")}),a.contents.find("title").remove(),a.scripts=b(a.contents,"script[src]").remove(),a.contents=a.contents.not(a.scripts)),a.title&&(a.title=t.trim(a.title)),a}u&&u.container&&(r.state=u),"state"in window.history&&(s=!1);var x={},D=[],k=[];function C(t,e){for(;t.length>e;)delete x[t.shift()]}function T(){return t("meta").filter(function(){var e=t(this).attr("http-equiv");return e&&"X-PJAX-VERSION"===e.toUpperCase()}).attr("content")}function S(){t.fn.pjax=e,t.pjax=r,t.pjax.enable=t.noop,t.pjax.disable=$,t.pjax.click=n,t.pjax.submit=i,t.pjax.reload=o,t.pjax.defaults={timeout:650,push:!0,replace:!1,type:"GET",dataType:"html",scrollTo:0,maxCacheLength:20,version:T},t(window).on("popstate.pjax",c)}function $(){t.fn.pjax=function(){return this},t.pjax=d,t.pjax.enable=S,t.pjax.disable=t.noop,t.pjax.click=t.noop,t.pjax.submit=t.noop,t.pjax.reload=function(){window.location.reload()},t(window).off("popstate.pjax",c)}t.event.props&&t.inArray("state",t.event.props)<0?t.event.props.push("state"):"state"in t.Event.prototype||t.event.addProp("state"),t.support.pjax=window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/),t.support.pjax?S():$()}(jQuery);var fixedTop=!1,navbar_initialized=!1;function debounce(t,e,n){var i;return function(){var r=this,o=arguments;clearTimeout(i),i=setTimeout(function(){i=null,n||t.apply(r,o)},e),n&&!i&&t.apply(r,o)}}$(document).ready(function(){window_width=$(window).width(),window_width<=991&&lbd.initRightMenu(),$('[rel="tooltip"]').tooltip()}),$(window).resize(function(){$(window).width()<=991&&lbd.initRightMenu()}),lbd={misc:{navbar_menu_visible:0},initRightMenu:function(){navbar_initialized||($off_canvas_sidebar=$("nav").find(".navbar-collapse").first().clone(!0),$sidebar=$(".sidebar"),sidebar_bg_color=$sidebar.data("background-color"),sidebar_active_color=$sidebar.data("active-color"),$logo=$sidebar.find(".logo").first(),logo_content=$logo[0].outerHTML,ul_content="",$off_canvas_sidebar.attr("data-background-color",sidebar_bg_color),$off_canvas_sidebar.attr("data-active-color",sidebar_active_color),$off_canvas_sidebar.addClass("off-canvas-sidebar"),$off_canvas_sidebar.children("ul").each(function(){content_buff=$(this).html(),ul_content+=content_buff}),content_buff=$sidebar.find(".nav").html(),ul_content=ul_content+'<li class="divider"></li>'+content_buff,ul_content='<ul class="nav navbar-nav">'+ul_content+"</ul>",navbar_content=logo_content+ul_content,navbar_content='<div class="sidebar-wrapper">'+navbar_content+"</div>",$off_canvas_sidebar.html(navbar_content),$("body").append($off_canvas_sidebar),$toggle=$(".navbar-toggle"),$off_canvas_sidebar.find("a").removeClass("btn btn-round btn-default"),$off_canvas_sidebar.find("button").removeClass("btn-round btn-fill btn-info btn-primary btn-success btn-danger btn-warning btn-neutral"),$off_canvas_sidebar.find("button").addClass("btn-simple btn-block"),$toggle.click(function(){1==lbd.misc.navbar_menu_visible?($("html").removeClass("nav-open"),lbd.misc.navbar_menu_visible=0,$("#bodyClick").remove(),setTimeout(function(){$toggle.removeClass("toggled")},400)):(setTimeout(function(){$toggle.addClass("toggled")},430),div='<div id="bodyClick"></div>',$(div).appendTo("body").click(function(){$("html").removeClass("nav-open"),lbd.misc.navbar_menu_visible=0,$("#bodyClick").remove(),setTimeout(function(){$toggle.removeClass("toggled")},400)}),$("html").addClass("nav-open"),lbd.misc.navbar_menu_visible=1)}),navbar_initialized=!0)}};
|