!function(t,e){"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){var f=[],r=t.document,p=f.slice,Bt=f.concat,ot=f.push,Wt=f.indexOf,H={},ln=H.toString,T=H.hasOwnProperty,i={},Vt="1.12.3",n=function(t,e){return new n.fn.init(t,e)},cn=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,un=/^-ms-/,fn=/-([\da-z])/gi,dn=function(t,e){return e.toUpperCase()};n.fn=n.prototype={jquery:Vt,constructor:n,selector:"",length:0,toArray:function(){return p.call(this)},get:function(t){return null!=t?0>t?this[t+this.length]:this[t]:p.call(this)},pushStack:function(t){var e=n.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t){return n.each(this,t)},map:function(t){return this.pushStack(n.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(p.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var n=this.length,e=+t+(0>t?n:0);return this.pushStack(e>=0&&n>e?[this[e]]:[])},end:function(){return this.prevObject||this.constructor()},push:ot,sort:f.sort,splice:f.splice},n.extend=n.fn.extend=function(){var i,s,e,o,a,l,t=arguments[0]||{},r=1,u=arguments.length,c=!1;for("boolean"==typeof t&&(c=t,t=arguments[r]||{},r++),"object"==typeof t||n.isFunction(t)||(t={}),r===u&&(t=this,r--);u>r;r++)if(null!=(a=arguments[r]))for(o in a)i=t[o],e=a[o],t!==e&&(c&&e&&(n.isPlainObject(e)||(s=n.isArray(e)))?(s?(s=!1,l=i&&n.isArray(i)?i:[]):l=i&&n.isPlainObject(i)?i:{},t[o]=n.extend(c,l,e)):void 0!==e&&(t[o]=e));return t},n.extend({expando:"jQuery"+(Vt+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===n.type(t)},isArray:Array.isArray||function(t){return"array"===n.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){var e=t&&t.toString();return!n.isArray(t)&&e-parseFloat(e)+1>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var r;if(!t||"object"!==n.type(t)||t.nodeType||n.isWindow(t))return!1;try{if(t.constructor&&!T.call(t,"constructor")&&!T.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1};if(!i.ownFirst)for(r in t)return T.call(t,r);for(r in t);return void 0===r||T.call(t,r)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?H[ln.call(t)]||"object":typeof t},globalEval:function(e){e&&n.trim(e)&&(t.execScript||function(e){t.eval.call(t,e)})(e)},camelCase:function(t){return t.replace(un,"ms-").replace(fn,dn)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e){var i,n=0;if(st(t)){for(i=t.length;i>n;n++)if(e.call(t[n],n,t[n])===!1)break}
else for(n in t)if(e.call(t[n],n,t[n])===!1)break;return t},trim:function(t){return null==t?"":(t+"").replace(cn,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(st(Object(t))?n.merge(i,"string"==typeof t?[t]:t):ot.call(i,t)),i},inArray:function(t,e,n){var i;if(e){if(Wt)return Wt.call(e,t,n);for(i=e.length,n=n?0>n?Math.max(0,i+n):n:0;i>n;n++)if(n in e&&e[n]===t)return n};return-1},merge:function(t,e){var i=+e.length,n=0,r=t.length;while(i>n)t[r++]=e[n++];if(i!==i)while(void 0!==e[n])t[r++]=e[n++];return t.length=r,t},grep:function(t,e,n){for(var r,o=[],i=0,s=t.length,a=!n;s>i;i++)r=!e(t[i],i),r!==a&&o.push(t[i]);return o},map:function(t,e,n){var s,r,i=0,o=[];if(st(t))for(s=t.length;s>i;i++)r=e(t[i],i,n),null!=r&&o.push(r);else for(i in t)r=e(t[i],i,n),null!=r&&o.push(r);return Bt.apply([],o)},guid:1,proxy:function(t,e){var r,i,o;return"string"==typeof e&&(o=t[e],e=t,t=o),n.isFunction(t)?(r=p.call(arguments,2),i=function(){return t.apply(e||this,r.concat(p.call(arguments)))},i.guid=t.guid=t.guid||n.guid++,i):void 0},now:function(){return+new Date},support:i}),"function"==typeof Symbol&&(n.fn[Symbol.iterator]=f[Symbol.iterator]),n.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){H["[object "+e+"]"]=e.toLowerCase()});function st(t){var e=!!t&&"length"in t&&t.length,i=n.type(t);return"function"===i||n.isWindow(t)?!1:"array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t};var S=function(t){var S,s,n,N,Z,A,F,J,D,v,T,y,i,c,u,l,w,P,I,a="sizzle"+1*new Date,f=t.document,p=0,ct=0,tt=U(),et=U(),j=U(),q=function(t,e){return t===e&&(T=!0),0},nt=1<<31,ut={}.hasOwnProperty,x=[],ft=x.pop,dt=x.push,b=x.push,it=x.slice,C=function(t,e){for(var n=0,i=t.length;i>n;n++)if(t[n]===e)return n;return-1},B="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",r="[\\x20\\t\\r\\n\\f]",k="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",rt="\\["+r+"*("+k+")(?:"+r+"*([*^$|!~]?=)"+r+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+k+"))|)"+r+"*\\]",W=":("+k+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+rt+")*)|.*)\\)|)",ht=new RegExp(r+"+","g"),M=new RegExp("^"+r+"+|((?:^|[^\\\\])(?:\\\\.)*)"+r+"+$","g"),pt=new RegExp("^"+r+"*,"+r+"*"),mt=new RegExp("^"+r+"*([>+~]|"+r+")"+r+"*"),gt=new RegExp("="+r+"*([^\\]'\"]*?)"+r+"*\\]","g"),vt=new RegExp(W),ot=new RegExp("^"+k+"$"),R={ID:new RegExp("^#("+k+")"),CLASS:new RegExp("^\\.("+k+")"),TAG:new RegExp("^("+k+"|[*])"),ATTR:new RegExp("^"+rt),PSEUDO:new RegExp("^"+W),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+r+"*(even|odd|(([+-]|)(\\d*)n|)"+r+"*(?:([+-]|)"+r+"*(\\d+)|))"+r+"*\\)|)","i"),bool:new RegExp("^(?:"+B+")$","i"),needsContext:new RegExp("^"+r+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+r+"*((?:-\\d)?\\d*)"+r+"*\\)|)(?=[^-]|$)","i")},yt=/^(?:input|select|textarea|button)$/i,bt=/^h\d$/i,O=/^[^{]+\{\s*\[native \w/,wt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,V=/[+~]/,xt=/'|\\/g,m=new RegExp("\\\\([\\da-f]{1,6}"+r+"?|("+r+")|.)","ig"),g=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:0>i?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},st=function(){y()};try{b.apply(x=it.call(f.childNodes),f.childNodes),x[f.childNodes.length].nodeType}catch(e){b={apply:x.length?function(t,e){dt.apply(t,it.call(e))}:function(t,e){var n=t.length,i=0;while(t[n++]=e[i++]);t.length=n-1}}};function o(t,e,n,r){var d,v,h,c,C,w,m,x,g=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&((e?e.ownerDocument||e:f)!==i&&y(e),e=e||i,u)){if(11!==p&&(w=wt.exec(t)))if(d=w[1]){if(9===p){if(!(h=e.getElementById(d)))return n;if(h.id===d)return n.push(h),n}
else if(g&&(h=g.getElementById(d))&&I(e,h)&&h.id===d)return n.push(h),n}
else{if(w[2])return b.apply(n,e.getElementsByTagName(t)),n;if((d=w[3])&&s.getElementsByClassName&&e.getElementsByClassName)return b.apply(n,e.getElementsByClassName(d)),n};if(s.qsa&&!j[t+" "]&&(!l||!l.test(t))){if(1!==p)g=e,x=t;else if("object"!==e.nodeName.toLowerCase()){(c=e.getAttribute("id"))?c=c.replace(xt,"\\$&"):e.setAttribute("id",c=a),m=A(t),v=m.length,C=ot.test(c)?"#"+c:"[id='"+c+"']";while(v--)m[v]=C+" "+L(m[v]);x=m.join(","),g=V.test(t)&&K(e.parentNode)||e};if(x)try{return b.apply(n,g.querySelectorAll(x)),n}catch(o){}finally{c===a&&e.removeAttribute("id")}}};return J(t.replace(M,"$1"),e,n,r)};function U(){var e=[];function t(i,r){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=r};return t};function d(t){return t[a]=!0,t};function h(t){var n=i.createElement("div");try{return!!t(n)}catch(e){return!1}finally{n.parentNode&&n.parentNode.removeChild(n),n=null}};function z(t,e){var i=t.split("|"),r=i.length;while(r--)n.attrHandle[i[r]]=e};function at(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||nt)-(~t.sourceIndex||nt);if(i)return i;if(n)while(n=n.nextSibling)if(n===e)return-1;return t?1:-1};function Ct(t){return function(e){var n=e.nodeName.toLowerCase();return"input"===n&&e.type===t}};function kt(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}};function E(t){return d(function(e){return e=+e,d(function(n,i){var r,o=t([],n.length,e),s=o.length;while(s--)n[r=o[s]]&&(n[r]=!(i[r]=n[r]))})})};function K(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t};s=o.support={},Z=o.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return e?"HTML"!==e.nodeName:!1},y=o.setDocument=function(t){var d,e,o=t?t.ownerDocument||t:f;return o!==i&&9===o.nodeType&&o.documentElement?(i=o,c=i.documentElement,u=!Z(i),(e=i.defaultView)&&e.top!==e&&(e.addEventListener?e.addEventListener("unload",st,!1):e.attachEvent&&e.attachEvent("onunload",st)),s.attributes=h(function(t){return t.className="i",!t.getAttribute("className")}),s.getElementsByTagName=h(function(t){return t.appendChild(i.createComment("")),!t.getElementsByTagName("*").length}),s.getElementsByClassName=O.test(i.getElementsByClassName),s.getById=h(function(t){return c.appendChild(t).id=a,!i.getElementsByName||!i.getElementsByName(a).length}),s.getById?(n.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&u){var n=e.getElementById(t);return n?[n]:[]}},n.filter.ID=function(t){var e=t.replace(m,g);return function(t){return t.getAttribute("id")===e}}):(delete n.find.ID,n.filter.ID=function(t){var e=t.replace(m,g);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}}),n.find.TAG=s.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):s.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){while(n=r[o++])1===n.nodeType&&i.push(n);return i};return r},n.find.CLASS=s.getElementsByClassName&&function(t,e){return"undefined"!=typeof e.getElementsByClassName&&u?e.getElementsByClassName(t):void 0},w=[],l=[],(s.qsa=O.test(i.querySelectorAll))&&(h(function(t){c.appendChild(t).innerHTML="<a id='"+a+"'></a><select id='"+a+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&l.push("[*^$]="+r+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||l.push("\\["+r+"*(?:value|"+B+")"),t.querySelectorAll("[id~="+a+"-]").length||l.push("~="),t.querySelectorAll(":checked").length||l.push(":checked"),t.querySelectorAll("a#"+a+"+*").length||l.push(".#.+[+~]")}),h(function(t){var e=i.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&l.push("name"+r+"*[*^$|!~]?="),t.querySelectorAll(":enabled").length||l.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),l.push(",.*:")})),(s.matchesSelector=O.test(P=c.matches||c.webkitMatchesSelector||c.mozMatchesSelector||c.oMatchesSelector||c.msMatchesSelector))&&h(function(t){s.disconnectedMatch=P.call(t,"div"),P.call(t,"[s!='']:x"),w.push("!=",W)}),l=l.length&&new RegExp(l.join("|")),w=w.length&&new RegExp(w.join("|")),d=O.test(c.compareDocumentPosition),I=d||O.test(c.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)while(e=e.parentNode)if(e===t)return!0;return!1},q=d?function(t,e){if(t===e)return T=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n?n:(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!s.sortDetached&&e.compareDocumentPosition(t)===n?t===i||t.ownerDocument===f&&I(f,t)?-1:e===i||e.ownerDocument===f&&I(f,e)?1:v?C(v,t)-C(v,e):0:4&n?-1:1)}:function(t,e){if(t===e)return T=!0,0;var n,r=0,a=t.parentNode,l=e.parentNode,o=[t],s=[e];if(!a||!l)return t===i?-1:e===i?1:a?-1:l?1:v?C(v,t)-C(v,e):0;if(a===l)return at(t,e);n=t;while(n=n.parentNode)o.unshift(n);n=e;while(n=n.parentNode)s.unshift(n);while(o[r]===s[r])r++;return r?at(o[r],s[r]):o[r]===f?-1:s[r]===f?1:0},i):i},o.matches=function(t,e){return o(t,null,null,e)},o.matchesSelector=function(t,e){if((t.ownerDocument||t)!==i&&y(t),e=e.replace(gt,"='$1']"),s.matchesSelector&&u&&!j[e+" "]&&(!w||!w.test(e))&&(!l||!l.test(e)))try{var r=P.call(t,e);if(r||s.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(n){};return o(e,i,null,[t]).length>0},o.contains=function(t,e){return(t.ownerDocument||t)!==i&&y(t),I(t,e)},o.attr=function(t,e){(t.ownerDocument||t)!==i&&y(t);var o=n.attrHandle[e.toLowerCase()],r=o&&ut.call(n.attrHandle,e.toLowerCase())?o(t,e,!u):void 0;return void 0!==r?r:s.attributes||!u?t.getAttribute(e):(r=t.getAttributeNode(e))&&r.specified?r.value:null},o.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},o.uniqueSort=function(t){var i,r=[],e=0,n=0;if(T=!s.detectDuplicates,v=!s.sortStable&&t.slice(0),t.sort(q),T){while(i=t[n++])i===t[n]&&(e=r.push(n));while(e--)t.splice(r[e],1)};return v=null,t},N=o.getText=function(t){var i,n="",r=0,e=t.nodeType;if(e){if(1===e||9===e||11===e){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=N(t)}
else if(3===e||4===e)return t.nodeValue}
else while(i=t[r++])n+=N(i);return n},n=o.selectors={cacheLength:50,createPseudo:d,match:R,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(m,g),t[3]=(t[3]||t[4]||t[5]||"").replace(m,g),"~="===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]||o.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]&&o.error(t[0]),t},PSEUDO:function(t){var n,e=!t[6]&&t[2];return R.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":e&&vt.test(e)&&(n=A(e,!0))&&(n=e.indexOf(")",e.length-n)-e.length)&&(t[0]=t[0].slice(0,n),t[2]=e.slice(0,n)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(m,g).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=tt[t+" "];return e||(e=new RegExp("(^|"+r+")"+t+"("+r+"|$)"))&&tt(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(i){var r=o.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(ht," ")+" ").indexOf(n)>-1:"|="===e?r===n||r.slice(0,n.length+1)===n+"-":!1):!0}},CHILD:function(t,e,n,i,r){var l="nth"!==t.slice(0,3),s="last"!==t.slice(-4),o="of-type"===e;return 1===i&&0===r?function(t){return!!t.parentNode}:function(e,n,c){var m,g,h,u,d,v,y=l!==s?"nextSibling":"previousSibling",b=e.parentNode,x=o&&e.nodeName.toLowerCase(),w=!c&&!o,f=!1;if(b){if(l){while(y){u=e;while(u=u[y])if(o?u.nodeName.toLowerCase()===x:1===u.nodeType)return!1;v=y="only"===t&&!v&&"nextSibling"};return!0};if(v=[s?b.firstChild:b.lastChild],s&&w){u=b,h=u[a]||(u[a]={}),g=h[u.uniqueID]||(h[u.uniqueID]={}),m=g[t]||[],d=m[0]===p&&m[1],f=d&&m[2],u=d&&b.childNodes[d];while(u=++d&&u&&u[y]||(f=d=0)||v.pop())if(1===u.nodeType&&++f&&u===e){g[t]=[p,d,f];break}}
else if(w&&(u=e,h=u[a]||(u[a]={}),g=h[u.uniqueID]||(h[u.uniqueID]={}),m=g[t]||[],d=m[0]===p&&m[1],f=d),f===!1)while(u=++d&&u&&u[y]||(f=d=0)||v.pop())if((o?u.nodeName.toLowerCase()===x:1===u.nodeType)&&++f&&(w&&(h=u[a]||(u[a]={}),g=h[u.uniqueID]||(h[u.uniqueID]={}),g[t]=[p,f]),u===e))break;return f-=r,f===i||f%i===0&&f/i>=0}}},PSEUDO:function(t,e){var r,i=n.pseudos[t]||n.setFilters[t.toLowerCase()]||o.error("unsupported pseudo: "+t);return i[a]?i(e):i.length>1?(r=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?d(function(t,n){var r,o=i(t,e),s=o.length;while(s--)r=C(t,o[s]),t[r]=!(n[r]=o[s])}):function(t){return i(t,0,r)}):i}},pseudos:{not:d(function(t){var e=[],i=[],n=F(t.replace(M,"$1"));return n[a]?d(function(t,e,i,r){var s,a=n(t,null,r,[]),o=t.length;while(o--)(s=a[o])&&(t[o]=!(e[o]=s))}):function(t,r,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}}),has:d(function(t){return function(e){return o(t,e).length>0}}),contains:d(function(t){return t=t.replace(m,g),function(e){return(e.textContent||e.innerText||N(e)).indexOf(t)>-1}}),lang:d(function(t){return ot.test(t||"")||o.error("unsupported lang: "+t),t=t.replace(m,g).toLowerCase(),function(e){var n;do if(n=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return n=n.toLowerCase(),n===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===c},focus:function(t){return t===i.activeElement&&(!i.hasFocus||i.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return t.disabled===!1},disabled:function(t){return t.disabled===!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,t.selected===!0},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return bt.test(t.nodeName)},input:function(t){return yt.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:E(function(){return[0]}),last:E(function(t,e){return[e-1]}),eq:E(function(t,e,n){return[0>n?n+e:n]}),even:E(function(t,e){for(var n=0;e>n;n+=2)t.push(n);return t}),odd:E(function(t,e){for(var n=1;e>n;n+=2)t.push(n);return t}),lt:E(function(t,e,n){for(var i=0>n?n+e:n;--i>=0;)t.push(i);return t}),gt:E(function(t,e,n){for(var i=0>n?n+e:n;++i<e;)t.push(i);return t})}},n.pseudos.nth=n.pseudos.eq;for(S in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[S]=Ct(S);for(S in{submit:!0,reset:!0})n.pseudos[S]=kt(S);function lt(){};lt.prototype=n.filters=n.pseudos,n.setFilters=new lt,A=o.tokenize=function(t,e){var s,r,l,a,i,c,u,f=et[t+" "];if(f)return e?0:f.slice(0);i=t,c=[],u=n.preFilter;while(i){s&&!(r=pt.exec(i))||(r&&(i=i.slice(r[0].length)||i),c.push(l=[])),s=!1,(r=mt.exec(i))&&(s=r.shift(),l.push({value:s,type:r[0].replace(M," ")}),i=i.slice(s.length));for(a in n.filter)!(r=R[a].exec(i))||u[a]&&!(r=u[a](r))||(s=r.shift(),l.push({value:s,type:a,matches:r}),i=i.slice(s.length));if(!s)break};return e?i.length:i?o.error(t):et(t,c).slice(0)};function L(t){for(var e=0,i=t.length,n="";i>e;e++)n+=t[e].value;return n};function G(t,e,n){var i=e.dir,r=n&&"parentNode"===i,o=ct++;return e.first?function(e,n,o){while(e=e[i])if(1===e.nodeType||r)return t(e,n,o)}:function(e,n,s){var l,c,u,f=[p,o];if(s){while(e=e[i])if((1===e.nodeType||r)&&t(e,n,s))return!0}
else while(e=e[i])if(1===e.nodeType||r){if(u=e[a]||(e[a]={}),c=u[e.uniqueID]||(u[e.uniqueID]={}),(l=c[i])&&l[0]===p&&l[1]===o)return f[2]=l[2];if(c[i]=f,f[2]=t(e,n,s))return!0}}};function X(t){return t.length>1?function(e,n,i){var r=t.length;while(r--)if(!t[r](e,n,i))return!1;return!0}:t[0]};function Et(t,e,n){for(var i=0,r=e.length;r>i;i++)o(t,e[i],n);return n};function H(t,e,n,i,r){for(var s,a=[],o=0,l=t.length,c=null!=e;l>o;o++)(s=t[o])&&(n&&!n(s,i,r)||(a.push(s),c&&e.push(o)));return a};function Y(t,e,n,i,r,o){return i&&!i[a]&&(i=Y(i)),r&&!r[a]&&(r=Y(r,o)),d(function(o,s,a,l){var f,u,d,m=[],p=[],g=s.length,v=o||Et(e||"*",a.nodeType?[a]:a,[]),h=!t||!o&&e?v:H(v,m,t,a,l),c=n?r||(o?t:g||i)?[]:s:h;if(n&&n(h,c,a,l),i){f=H(c,p),i(f,[],a,l),u=f.length;while(u--)(d=f[u])&&(c[p[u]]=!(h[p[u]]=d))};if(o){if(r||t){if(r){f=[],u=c.length;while(u--)(d=c[u])&&f.push(h[u]=d);r(null,c=[],f,l)};u=c.length;while(u--)(d=c[u])&&(f=r?C(o,d):m[u])>-1&&(o[f]=!(s[f]=d))}}
else c=H(c===s?c.splice(g,c.length):c),r?r(null,s,c,l):b.apply(s,c)})};function Q(t){for(var s,r,i,l=t.length,c=n.relative[t[0].type],u=c||n.relative[" "],e=c?1:0,f=G(function(t){return t===s},u,!0),d=G(function(t){return C(s,t)>-1},u,!0),o=[function(t,e,n){var i=!c&&(n||e!==D)||((s=e).nodeType?f(t,e,n):d(t,e,n));return s=null,i}];l>e;e++)if(r=n.relative[t[e].type])o=[G(X(o),r)];else{if(r=n.filter[t[e].type].apply(null,t[e].matches),r[a]){for(i=++e;l>i;i++)if(n.relative[t[i].type])break;return Y(e>1&&X(o),e>1&&L(t.slice(0,e-1).concat({value:" "===t[e-2].type?"*":""})).replace(M,"$1"),r,i>e&&Q(t.slice(e,i)),l>i&&Q(t=t.slice(i)),l>i&&L(t))};o.push(r)};return X(o)};function St(t,e){var r=e.length>0,s=t.length>0,a=function(a,l,c,f,d){var h,x,v,w=0,m="0",C=a&&[],g=[],k=D,E=a||s&&n.find.TAG("*",d),S=p+=null==k?1:Math.random()||.1,T=E.length;for(d&&(D=l===i||l||d);m!==T&&null!=(h=E[m]);m++){if(s&&h){x=0,l||h.ownerDocument===i||(y(h),c=!u);while(v=t[x++])if(v(h,l||i,c)){f.push(h);break};d&&(p=S)};r&&((h=!v&&h)&&w--,a&&C.push(h))};if(w+=m,r&&m!==w){x=0;while(v=e[x++])v(C,g,l,c);if(a){if(w>0)while(m--)C[m]||g[m]||(g[m]=ft.call(f));g=H(g)};b.apply(f,g),d&&!a&&g.length>0&&w+e.length>1&&o.uniqueSort(f)};return d&&(p=S,D=k),C};return r?d(a):a};return F=o.compile=function(t,e){var i,r=[],o=[],n=j[t+" "];if(!n){e||(e=A(t)),i=e.length;while(i--)n=Q(e[i]),n[a]?r.push(n):o.push(n);n=j(t,St(o,r)),n.selector=t};return n},J=o.select=function(t,e,i,r){var l,o,a,d,h,f="function"==typeof t&&t,c=!r&&A(t=f.selector||t);if(i=i||[],1===c.length){if(o=c[0]=c[0].slice(0),o.length>2&&"ID"===(a=o[0]).type&&s.getById&&9===e.nodeType&&u&&n.relative[o[1].type]){if(e=(n.find.ID(a.matches[0].replace(m,g),e)||[])[0],!e)return i;f&&(e=e.parentNode),t=t.slice(o.shift().value.length)};l=R.needsContext.test(t)?0:o.length;while(l--){if(a=o[l],n.relative[d=a.type])break;if((h=n.find[d])&&(r=h(a.matches[0].replace(m,g),V.test(o[0].type)&&K(e.parentNode)||e))){if(o.splice(l,1),t=r.length&&L(o),!t)return b.apply(i,r),i;break}}};return(f||F(t,c))(r,e,!u,i,!e||V.test(t)&&K(e.parentNode)||e),i},s.sortStable=a.split("").sort(q).join("")===a,s.detectDuplicates=!!T,y(),s.sortDetached=h(function(t){return 1&t.compareDocumentPosition(i.createElement("div"))}),h(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||z("type|href|height|width",function(t,e,n){return n?void 0:t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),s.attributes&&h(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||z("value",function(t,e,n){return n||"input"!==t.nodeName.toLowerCase()?void 0:t.defaultValue}),h(function(t){return null==t.getAttribute("disabled")})||z(B,function(t,e,n){var i;return n?void 0:t[e]===!0?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),o}(t);n.find=S,n.expr=S.selectors,n.expr[":"]=n.expr.pseudos,n.uniqueSort=n.unique=S.uniqueSort,n.text=S.getText,n.isXMLDoc=S.isXML,n.contains=S.contains;var E=function(t,e,i){var r=[],o=void 0!==i;while((t=t[e])&&9!==t.nodeType)if(1===t.nodeType){if(o&&n(t).is(i))break;r.push(t)};return r},Ht=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},Ft=n.expr.match.needsContext,qt=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,an=/^.[^:#\[\.,]*$/;function at(t,e,i){if(n.isFunction(e))return n.grep(t,function(t,n){return!!e.call(t,n,t)!==i});if(e.nodeType)return n.grep(t,function(t){return t===e!==i});if("string"==typeof e){if(an.test(e))return n.filter(e,t,i);e=n.filter(e,t)};return n.grep(t,function(t){return n.inArray(t,e)>-1!==i})};n.filter=function(t,e,i){var r=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?n.find.matchesSelector(r,t)?[r]:[]:n.find.matches(t,n.grep(e,function(t){return 1===t.nodeType}))},n.fn.extend({find:function(t){var e,i=[],r=this,o=r.length;if("string"!=typeof t)return this.pushStack(n(t).filter(function(){for(e=0;o>e;e++)if(n.contains(r[e],this))return!0}));for(e=0;o>e;e++)n.find(t,r[e],i);return i=this.pushStack(o>1?n.unique(i):i),i.selector=this.selector?this.selector+" "+t:t,i},filter:function(t){return this.pushStack(at(this,t||[],!1))},not:function(t){return this.pushStack(at(this,t||[],!0))},is:function(t){return!!at(this,"string"==typeof t&&Ft.test(t)?n(t):t||[],!1).length}});var rt,on=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,sn=n.fn.init=function(t,e,i){var o,s;if(!t)return this;if(i=i||rt,"string"==typeof t){if(o="<"===t.charAt(0)&&">"===t.charAt(t.length-1)&&t.length>=3?[null,t,null]:on.exec(t),!o||!o[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(o[1]){if(e=e instanceof n?e[0]:e,n.merge(this,n.parseHTML(o[1],e&&e.nodeType?e.ownerDocument||e:r,!0)),qt.test(o[1])&&n.isPlainObject(e))for(o in e)n.isFunction(this[o])?this[o](e[o]):this.attr(o,e[o]);return this};if(s=r.getElementById(o[2]),s&&s.parentNode){if(s.id!==o[2])return rt.find(t);this.length=1,this[0]=s};return this.context=r,this.selector=t,this};return t.nodeType?(this.context=this[0]=t,this.length=1,this):n.isFunction(t)?"undefined"!=typeof i.ready?i.ready(t):t(n):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),n.makeArray(t,this))};sn.prototype=n.fn,rt=n(r);var nn=/^(?:parents|prev(?:Until|All))/,rn={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({has:function(t){var e,i=n(t,this),r=i.length;return this.filter(function(){for(e=0;r>e;e++)if(n.contains(this,i[e]))return!0})},closest:function(t,e){for(var i,o=0,a=this.length,r=[],s=Ft.test(t)||"string"!=typeof t?n(t,e||this.context):0;a>o;o++)for(i=this[o];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?s.index(i)>-1:1===i.nodeType&&n.find.matchesSelector(i,t))){r.push(i);break};return this.pushStack(r.length>1?n.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?n.inArray(this[0],n(t)):n.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(n.uniqueSort(n.merge(this.get(),n(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}});function Ut(t,e){do t=t[e];while(t&&1!==t.nodeType);return t};n.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return E(t,"parentNode")},parentsUntil:function(t,e,n){return E(t,"parentNode",n)},next:function(t){return Ut(t,"nextSibling")},prev:function(t){return Ut(t,"previousSibling")},nextAll:function(t){return E(t,"nextSibling")},prevAll:function(t){return E(t,"previousSibling")},nextUntil:function(t,e,n){return E(t,"nextSibling",n)},prevUntil:function(t,e,n){return E(t,"previousSibling",n)},siblings:function(t){return Ht((t.parentNode||{}).firstChild,t)},children:function(t){return Ht(t.firstChild)},contents:function(t){return n.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:n.merge([],t.childNodes)}},function(t,e){n.fn[t]=function(i,r){var o=n.map(this,e,i);return"Until"!==t.slice(-5)&&(r=i),r&&"string"==typeof r&&(o=n.filter(r,o)),this.length>1&&(rn[t]||(o=n.uniqueSort(o)),nn.test(t)&&(o=o.reverse())),this.pushStack(o)}});var c=/\S+/g;function hn(t){var e={};return n.each(t.match(c)||[],function(t,n){e[n]=!0}),e};n.Callbacks=function(t){t="string"==typeof t?hn(t):n.extend({},t);var s,i,c,o,e=[],a=[],r=-1,u=function(){for(o=t.once,c=s=!0;a.length;r=-1){i=a.shift();while(++r<e.length)e[r].apply(i[0],i[1])===!1&&t.stopOnFalse&&(r=e.length,i=!1)};t.memory||(i=!1),s=!1,o&&(e=i?[]:"")},l={add:function(){return e&&(i&&!s&&(r=e.length-1,a.push(i)),function o(i){n.each(i,function(i,r){n.isFunction(r)?t.unique&&l.has(r)||e.push(r):r&&r.length&&"string"!==n.type(r)&&o(r)})}(arguments),i&&!s&&u()),this},remove:function(){return n.each(arguments,function(t,i){var o;while((o=n.inArray(i,e,o))>-1)e.splice(o,1),r>=o&&r--}),this},has:function(t){return t?n.inArray(t,e)>-1:e.length>0},empty:function(){return e&&(e=[]),this},disable:function(){return o=a=[],e=i="",this},disabled:function(){return!e},lock:function(){return o=!0,i||l.disable(),this},locked:function(){return!!o},fireWith:function(t,e){return o||(e=e||[],e=[t,e.slice?e.slice():e],a.push(e),s||u()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!c}};return l},n.extend({Deferred:function(t){var r=[["resolve","done",n.Callbacks("once memory"),"resolved"],["reject","fail",n.Callbacks("once memory"),"rejected"],["notify","progress",n.Callbacks("memory")]],o="pending",i={state:function(){return o},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var t=arguments;return n.Deferred(function(o){n.each(r,function(r,s){var a=n.isFunction(t[r])&&t[r];e[s[1]](function(){var t=a&&a.apply(this,arguments);t&&n.isFunction(t.promise)?t.promise().progress(o.notify).done(o.resolve).fail(o.reject):o[s[0]+"With"](this===i?o.promise():this,a?[t]:arguments)})}),t=null}).promise()},promise:function(t){return null!=t?n.extend(t,i):i}},e={};return i.pipe=i.then,n.each(r,function(t,n){var s=n[2],a=n[3];i[n[1]]=s.add,a&&s.add(function(){o=a},r[1^t][2].disable,r[2][2].lock),e[n[0]]=function(){return e[n[0]+"With"](this===e?i:this,arguments),this},e[n[0]+"With"]=s.fireWith}),i.promise(e),t&&t.call(e,e),e},when:function(t){var e=0,r=p.call(arguments),i=r.length,s=1!==i||t&&n.isFunction(t.promise)?i:0,o=1===s?t:n.Deferred(),c=function(t,e,n){return function(i){e[t]=this,n[t]=arguments.length>1?p.call(arguments):i,n===a?o.notifyWith(e,n):--s||o.resolveWith(e,n)}},a,u,l;if(i>1)for(a=new Array(i),u=new Array(i),l=new Array(i);i>e;e++)r[e]&&n.isFunction(r[e].promise)?r[e].promise().progress(c(e,u,a)).done(c(e,l,r)).fail(o.reject):--s;return s||o.resolveWith(l,r),o.promise()}});var L;n.fn.ready=function(t){return n.ready.promise().done(t),this},n.extend({isReady:!1,readyWait:1,holdReady:function(t){t?n.readyWait++:n.ready(!0)},ready:function(t){(t===!0?--n.readyWait:n.isReady)||(n.isReady=!0,t!==!0&&--n.readyWait>0||(L.resolveWith(r,[n]),n.fn.triggerHandler&&(n(r).triggerHandler("ready"),n(r).off("ready"))))}});function zt(){r.addEventListener?(r.removeEventListener("DOMContentLoaded",m),t.removeEventListener("load",m)):(r.detachEvent("onreadystatechange",m),t.detachEvent("onload",m))};function m(){(r.addEventListener||"load"===t.event.type||"complete"===r.readyState)&&(zt(),n.ready())};n.ready.promise=function(e){if(!L)if(L=n.Deferred(),"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll)t.setTimeout(n.ready);else if(r.addEventListener)r.addEventListener("DOMContentLoaded",m),t.addEventListener("load",m);else{r.attachEvent("onreadystatechange",m),t.attachEvent("onload",m);var o=!1;try{o=null==t.frameElement&&r.documentElement}catch(i){};o&&o.doScroll&&!function s(){if(!n.isReady){try{o.doScroll("left")}catch(e){return t.setTimeout(s,50)};zt(),n.ready()}}()};return L.promise(e)},n.ready.promise();var Lt;for(Lt in n(i))break;i.ownFirst="0"===Lt,i.inlineBlockNeedsLayout=!1,n(function(){var o,e,t,n;t=r.getElementsByTagName("body")[0],t&&t.style&&(e=r.createElement("div"),n=r.createElement("div"),n.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(n).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",i.inlineBlockNeedsLayout=o=3===e.offsetWidth,o&&(t.style.zoom=1)),t.removeChild(n))}),function(){var e=r.createElement("div");i.deleteExpando=!0;try{delete e.test}catch(t){i.deleteExpando=!1};e=null}();var D=function(t){var e=n.noData[(t.nodeName+" ").toLowerCase()],i=+t.nodeType||1;return 1!==i&&9!==i?!1:!e||e!==!0&&t.getAttribute("classid")===e},tn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,en=/([A-Z])/g;function Kt(t,e,i){if(void 0===i&&1===t.nodeType){var o="data-"+e.replace(en,"-$1").toLowerCase();if(i=t.getAttribute(o),"string"==typeof i){try{i="true"===i?!0:"false"===i?!1:"null"===i?null:+i+""===i?+i:tn.test(i)?n.parseJSON(i):i}catch(r){};n.data(t,e,i)}
else i=void 0};return i};function lt(t){var e;for(e in t)if(("data"!==e||!n.isEmptyObject(t[e]))&&"toJSON"!==e)return!1;return!0};function Gt(t,e,i,r){if(D(t)){var l,s,c=n.expando,u=t.nodeType,a=u?n.cache:t,o=u?t[c]:t[c]&&c;if(o&&a[o]&&(r||a[o].data)||void 0!==i||"string"!=typeof e)return o||(o=u?t[c]=f.pop()||n.guid++:c),a[o]||(a[o]=u?{}:{toJSON:n.noop}),"object"!=typeof e&&"function"!=typeof e||(r?a[o]=n.extend(a[o],e):a[o].data=n.extend(a[o].data,e)),s=a[o],r||(s.data||(s.data={}),s=s.data),void 0!==i&&(s[n.camelCase(e)]=i),"string"==typeof e?(l=s[e],null==l&&(l=s[n.camelCase(e)])):l=s,l}};function Xt(t,e,r){if(D(t)){var a,l,c=t.nodeType,o=c?n.cache:t,s=c?t[n.expando]:n.expando;if(o[s]){if(e&&(a=r?o[s]:o[s].data)){n.isArray(e)?e=e.concat(n.map(e,n.camelCase)):e in a?e=[e]:(e=n.camelCase(e),e=e in a?[e]:e.split(" ")),l=e.length;while(l--)delete a[e[l]];if(r?!lt(a):!n.isEmptyObject(a))return}(r||(delete o[s].data,lt(o[s])))&&(c?n.cleanData([t],!0):i.deleteExpando||o!=o.window?delete o[s]:o[s]=void 0)}}};n.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(t){return t=t.nodeType?n.cache[t[n.expando]]:t[n.expando],!!t&&!lt(t)},data:function(t,e,n){return Gt(t,e,n)},removeData:function(t,e){return Xt(t,e)},_data:function(t,e,n){return Gt(t,e,n,!0)},_removeData:function(t,e){return Xt(t,e,!0)}}),n.fn.extend({data:function(t,e){var o,r,s,i=this[0],a=i&&i.attributes;if(void 0===t){if(this.length&&(s=n.data(i),1===i.nodeType&&!n._data(i,"parsedAttrs"))){o=a.length;while(o--)a[o]&&(r=a[o].name,0===r.indexOf("data-")&&(r=n.camelCase(r.slice(5)),Kt(i,r,s[r])));n._data(i,"parsedAttrs",!0)};return s};return"object"==typeof t?this.each(function(){n.data(this,t)}):arguments.length>1?this.each(function(){n.data(this,t,e)}):i?Kt(i,t,n.data(i,t)):void 0},removeData:function(t){return this.each(function(){n.removeData(this,t)})}}),n.extend({queue:function(t,e,i){var r;return t?(e=(e||"fx")+"queue",r=n._data(t,e),i&&(!r||n.isArray(i)?r=n._data(t,e,n.makeArray(i)):r.push(i)),r||[]):void 0},dequeue:function(t,e){e=e||"fx";var i=n.queue(t,e),s=i.length,r=i.shift(),o=n._queueHooks(t,e),a=function(){n.dequeue(t,e)};"inprogress"===r&&(r=i.shift(),s--),r&&("fx"===e&&i.unshift("inprogress"),delete o.stop,r.call(t,a,o)),!s&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return n._data(t,i)||n._data(t,i,{empty:n.Callbacks("once memory").add(function(){n._removeData(t,e+"queue"),n._removeData(t,i)})})}}),n.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?n.queue(this[0],t):void 0===e?this:this.each(function(){var i=n.queue(this,t,e);n._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&n.dequeue(this,t)})},dequeue:function(t){return this.each(function(){n.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,o=1,s=n.Deferred(),r=this,a=this.length,l=function(){--o||s.resolveWith(r,[r])};"string"!=typeof t&&(e=t,t=void 0),t=t||"fx";while(a--)i=n._data(r[a],t+"queueHooks"),i&&i.empty&&(o++,i.empty.add(l));return l(),s.promise(e)}}),function(){var t;i.shrinkWrapBlocks=function(){if(null!=t)return t;t=!1;var e,n,i;return n=r.getElementsByTagName("body")[0],n&&n.style?(e=r.createElement("div"),i=r.createElement("div"),i.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",n.appendChild(i).appendChild(e),"undefined"!=typeof e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(r.createElement("div")).style.width="5px",t=3!==e.offsetWidth),n.removeChild(i),t):void 0}}();var nt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,it=new RegExp("^(?:([+-])=|)("+nt+")([a-z%]*)$","i"),y=["Top","Right","Bottom","Left"],N=function(t,e){return t=e||t,"none"===n.css(t,"display")||!n.contains(t.ownerDocument,t)};function Yt(t,e,i,r){var c,s=1,f=20,u=r?function(){return r.cur()}:function(){return n.css(t,e,"")},l=u(),a=i&&i[3]||(n.cssNumber[e]?"":"px"),o=(n.cssNumber[e]||"px"!==a&&+l)&&it.exec(n.css(t,e));if(o&&o[3]!==a){a=a||o[3],i=i||[],o=+l||1;do s=s||".5",o/=s,n.style(t,e,o+a);while(s!==(s=u()/l)&&1!==s&&--f)};return i&&(o=+o||+l||0,c=i[1]?o+(i[1]+1)*i[2]:+i[2],r&&(r.unit=a,r.start=o,r.end=c)),c};var h=function(t,e,i,r,o,s,a){var l=0,u=t.length,c=null==i;if("object"===n.type(i)){o=!0;for(l in i)h(t,e,l,i[l],!0,s,a)}
else if(void 0!==r&&(o=!0,n.isFunction(r)||(a=!0),c&&(a?(e.call(t,r),e=null):(c=e,e=function(t,e,i){return c.call(n(t),i)})),e))for(;u>l;l++)e(t[l],i,a?r:r.call(t[l],l,e(t[l],i)));return o?t:c?e.call(t):u?e(t[0],i):s},tt=/^(?:checkbox|radio)$/i,jt=/<([\w:-]+)/,Mt=/^$|\/(?:java|ecma)script/i,et=/^\s+/,Rt="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";function Qt(t){var n=Rt.split("|"),e=t.createDocumentFragment();if(e.createElement)while(n.length)e.createElement(n.pop());return e};!function(){var t=r.createElement("div"),o=r.createDocumentFragment(),e=r.createElement("input");t.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",i.leadingWhitespace=3===t.firstChild.nodeType,i.tbody=!t.getElementsByTagName("tbody").length,i.htmlSerialize=!!t.getElementsByTagName("link").length,i.html5Clone="<:nav></:nav>"!==r.createElement("nav").cloneNode(!0).outerHTML,e.type="checkbox",e.checked=!0,o.appendChild(e),i.appendChecked=e.checked,t.innerHTML="<textarea>x</textarea>",i.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue,o.appendChild(t),e=r.createElement("input"),e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),i.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,i.noCloneEvent=!!t.addEventListener,t[n.expando]=1,i.attributes=!t.getAttribute(n.expando)}();var a={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:i.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};a.optgroup=a.option,a.tbody=a.tfoot=a.colgroup=a.caption=a.thead,a.th=a.td;function o(t,e){var s,r,a=0,i="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):void 0;if(!i)for(i=[],s=t.childNodes||t;null!=(r=s[a]);a++)!e||n.nodeName(r,e)?i.push(r):n.merge(i,o(r,e));return void 0===e||e&&n.nodeName(t,e)?n.merge([t],i):i};function ct(t,e){for(var r,i=0;null!=(r=t[i]);i++)n._data(r,"globalEval",!e||n._data(e[i],"globalEval"))};var Je=/<|&#?\w+;/,Pt=/<tbody/i;function pn(t){tt.test(t.type)&&(t.defaultChecked=t.checked)};function Zt(t,e,r,s,l){for(var f,c,y,u,g,v,h,b=t.length,p=Qt(e),d=[],m=0;b>m;m++)if(c=t[m],c||0===c)if("object"===n.type(c))n.merge(d,c.nodeType?[c]:c);else if(Je.test(c)){u=u||p.appendChild(e.createElement("div")),g=(jt.exec(c)||["",""])[1].toLowerCase(),h=a[g]||a._default,u.innerHTML=h[1]+n.htmlPrefilter(c)+h[2],f=h[0];while(f--)u=u.lastChild;if(!i.leadingWhitespace&&et.test(c)&&d.push(e.createTextNode(et.exec(c)[0])),!i.tbody){c="table"!==g||Pt.test(c)?"<table>"!==h[1]||Pt.test(c)?0:u:u.firstChild,f=c&&c.childNodes.length;while(f--)n.nodeName(v=c.childNodes[f],"tbody")&&!v.childNodes.length&&c.removeChild(v)};n.merge(d,u.childNodes),u.textContent="";while(u.firstChild)u.removeChild(u.firstChild);u=p.lastChild}
else d.push(e.createTextNode(c));u&&p.removeChild(u),i.appendChecked||n.grep(o(d,"input"),pn),m=0;while(c=d[m++])if(s&&n.inArray(c,s)>-1)l&&l.push(c);else if(y=n.contains(c.ownerDocument,c),u=o(p.appendChild(c),"script"),y&&ct(u),r){f=0;while(c=u[f++])Mt.test(c.type||"")&&r.push(c)};return u=null,p};!function(){var e,n,o=r.createElement("div");for(e in{submit:!0,change:!0,focusin:!0})n="on"+e,(i[e]=n in t)||(o.setAttribute(n,"t"),i[e]=o.attributes[n].expando===!1);o=null}();var J=/^(?:input|select|textarea)$/i,Qe=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Nt=/^(?:focusinfocus|focusoutblur)$/,Dt=/^([^.]*)(?:\.(.+)|)/;function F(){return!0};function A(){return!1};function Jt(){try{return r.activeElement}catch(t){}};function ut(t,e,i,r,o,s){var a,l;if("object"==typeof e){"string"!=typeof i&&(r=r||i,i=void 0);for(l in e)ut(t,l,i,r,e[l],s);return t};if(null==r&&null==o?(o=i,r=i=void 0):null==o&&("string"==typeof i?(o=r,r=void 0):(o=r,r=i,i=void 0)),o===!1)o=A;else if(!o)return t;return 1===s&&(a=o,o=function(t){return n().off(t),a.apply(this,arguments)},o.guid=a.guid||(a.guid=n.guid++)),t.each(function(){n.event.add(this,e,o,r,i)})};n.event={global:{},add:function(t,e,i,r,o){var m,h,g,p,a,l,u,f,s,v,y,d=n._data(t);if(d){i.handler&&(p=i,i=p.handler,o=p.selector),i.guid||(i.guid=n.guid++),(h=d.events)||(h=d.events={}),(l=d.handle)||(l=d.handle=function(t){return"undefined"==typeof n||t&&n.event.triggered===t.type?void 0:n.event.dispatch.apply(l.elem,arguments)},l.elem=t),e=(e||"").match(c)||[""],g=e.length;while(g--)m=Dt.exec(e[g])||[],s=y=m[1],v=(m[2]||"").split(".").sort(),s&&(a=n.event.special[s]||{},s=(o?a.delegateType:a.bindType)||s,a=n.event.special[s]||{},u=n.extend({type:s,origType:y,data:r,handler:i,guid:i.guid,selector:o,needsContext:o&&n.expr.match.needsContext.test(o),namespace:v.join(".")},p),(f=h[s])||(f=h[s]=[],f.delegateCount=0,a.setup&&a.setup.call(t,r,v,l)!==!1||(t.addEventListener?t.addEventListener(s,l,!1):t.attachEvent&&t.attachEvent("on"+s,l))),a.add&&(a.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),o?f.splice(f.delegateCount++,0,u):f.push(u),n.event.global[s]=!0);t=null}},remove:function(t,e,i,r,o){var p,a,l,v,m,d,u,f,s,g,y,h=n.hasData(t)&&n._data(t);if(h&&(d=h.events)){e=(e||"").match(c)||[""],m=e.length;while(m--)if(l=Dt.exec(e[m])||[],s=y=l[1],g=(l[2]||"").split(".").sort(),s){u=n.event.special[s]||{},s=(r?u.delegateType:u.bindType)||s,f=d[s]||[],l=l[2]&&new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"),v=p=f.length;while(p--)a=f[p],!o&&y!==a.origType||i&&i.guid!==a.guid||l&&!l.test(a.namespace)||r&&r!==a.selector&&("**"!==r||!a.selector)||(f.splice(p,1),a.selector&&f.delegateCount--,u.remove&&u.remove.call(t,a));v&&!f.length&&(u.teardown&&u.teardown.call(t,g,h.handle)!==!1||n.removeEvent(t,s,h.handle),delete d[s])}
else for(s in d)n.event.remove(t,s+e[m],i,r,!0);n.isEmptyObject(d)&&(delete h.handle,n._removeData(t,"events"))}},trigger:function(e,i,o,s){var d,h,l,g,f,u,v,m=[o||r],c=T.call(e,"type")?e.type:e,p=T.call(e,"namespace")?e.namespace.split("."):[];if(l=u=o=o||r,3!==o.nodeType&&8!==o.nodeType&&!Nt.test(c+n.event.triggered)&&(c.indexOf(".")>-1&&(p=c.split("."),c=p.shift(),p.sort()),h=c.indexOf(":")<0&&"on"+c,e=e[n.expando]?e:new n.Event(c,"object"==typeof e&&e),e.isTrigger=s?2:3,e.namespace=p.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=o),i=null==i?[e]:n.makeArray(i,[e]),f=n.event.special[c]||{},s||!f.trigger||f.trigger.apply(o,i)!==!1)){if(!s&&!f.noBubble&&!n.isWindow(o)){for(g=f.delegateType||c,Nt.test(g+c)||(l=l.parentNode);l;l=l.parentNode)m.push(l),u=l;u===(o.ownerDocument||r)&&m.push(u.defaultView||u.parentWindow||t)};v=0;while((l=m[v++])&&!e.isPropagationStopped())e.type=v>1?g:f.bindType||c,d=(n._data(l,"events")||{})[e.type]&&n._data(l,"handle"),d&&d.apply(l,i),d=h&&l[h],d&&d.apply&&D(l)&&(e.result=d.apply(l,i),e.result===!1&&e.preventDefault());if(e.type=c,!s&&!e.isDefaultPrevented()&&(!f._default||f._default.apply(m.pop(),i)===!1)&&D(o)&&h&&o[c]&&!n.isWindow(o)){u=o[h],u&&(o[h]=null),n.event.triggered=c;try{o[c]()}catch(a){};n.event.triggered=void 0,u&&(o[h]=u)};return e.result}},dispatch:function(t){t=n.event.fix(t);var s,a,o,i,e,l=[],c=p.call(arguments),u=(n._data(this,"events")||{})[t.type]||[],r=n.event.special[t.type]||{};if(c[0]=t,t.delegateTarget=this,!r.preDispatch||r.preDispatch.call(this,t)!==!1){l=n.event.handlers.call(this,t,u),s=0;while((i=l[s++])&&!t.isPropagationStopped()){t.currentTarget=i.elem,a=0;while((e=i.handlers[a++])&&!t.isImmediatePropagationStopped())t.rnamespace&&!t.rnamespace.test(e.namespace)||(t.handleObj=e,t.data=e.data,o=((n.event.special[e.origType]||{}).handle||e.handler).apply(i.elem,c),void 0!==o&&(t.result=o)===!1&&(t.preventDefault(),t.stopPropagation()))};return r.postDispatch&&r.postDispatch.call(this,t),t.result}},handlers:function(t,e){var s,r,o,a,c=[],l=e.delegateCount,i=t.target;if(l&&i.nodeType&&("click"!==t.type||isNaN(t.button)||t.button<1))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==t.type)){for(r=[],s=0;l>s;s++)a=e[s],o=a.selector+" ",void 0===r[o]&&(r[o]=a.needsContext?n(o,this).index(i)>-1:n.find(o,this,null,[i]).length),r[o]&&r.push(a);r.length&&c.push({elem:i,handlers:r})};return l<e.length&&c.push({elem:this,handlers:e.slice(l)}),c},fix:function(t){if(t[n.expando])return t;var s,a,l,i=t.type,o=t,e=this.fixHooks[i];e||(this.fixHooks[i]=e=Ze.test(i)?this.mouseHooks:Qe.test(i)?this.keyHooks:{}),l=e.props?this.props.concat(e.props):this.props,t=new n.Event(o),s=l.length;while(s--)a=l[s],t[a]=o[a];return t.target||(t.target=o.srcElement||r),3===t.target.nodeType&&(t.target=t.target.parentNode),t.metaKey=!!t.metaKey,e.filter?e.filter(t,o):t},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,e){return null==t.which&&(t.which=null!=e.charCode?e.charCode:e.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(t,e){var n,s,i,o=e.button,a=e.fromElement;return null==t.pageX&&null!=e.clientX&&(s=t.target.ownerDocument||r,i=s.documentElement,n=s.body,t.pageX=e.clientX+(i&&i.scrollLeft||n&&n.scrollLeft||0)-(i&&i.clientLeft||n&&n.clientLeft||0),t.pageY=e.clientY+(i&&i.scrollTop||n&&n.scrollTop||0)-(i&&i.clientTop||n&&n.clientTop||0)),!t.relatedTarget&&a&&(t.relatedTarget=a===t.target?e.toElement:a),t.which||void 0===o||(t.which=1&o?1:2&o?3:4&o?2:0),t}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Jt()&&this.focus)try{return this.focus(),!1}catch(t){}},delegateType:"focusin"},blur:{trigger:function(){return this===Jt()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return n.nodeName(this,"input")&&"checkbox"===this.type&&this.click?(this.click(),!1):void 0},_default:function(t){return n.nodeName(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}},simulate:function(t,e,i){var r=n.extend(new n.Event,i,{type:t,isSimulated:!0});n.event.trigger(r,null,e),r.isDefaultPrevented()&&i.preventDefault()}},n.removeEvent=r.removeEventListener?function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)}:function(t,e,n){var i="on"+e;t.detachEvent&&("undefined"==typeof t[i]&&(t[i]=null),t.detachEvent(i,n))},n.Event=function(t,e){return this instanceof n.Event?(t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&t.returnValue===!1?F:A):this.type=t,e&&n.extend(this,e),this.timeStamp=t&&t.timeStamp||n.now(),void(this[n.expando]=!0)):new n.Event(t,e)},n.Event.prototype={constructor:n.Event,isDefaultPrevented:A,isPropagationStopped:A,isImmediatePropagationStopped:A,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=F,t&&(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=F,t&&!this.isSimulated&&(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=F,t&&t.stopImmediatePropagation&&t.stopImmediatePropagation(),this.stopPropagation()}},n.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){n.event.special[t]={delegateType:e,bindType:e,handle:function(t){var r,o=this,i=t.relatedTarget,s=t.handleObj;return i&&(i===o||n.contains(o,i))||(t.type=s.origType,r=s.handler.apply(this,arguments),t.type=e),r}}}),i.submit||(n.event.special.submit={setup:function(){return n.nodeName(this,"form")?!1:void n.event.add(this,"click._submit keypress._submit",function(t){var i=t.target,e=n.nodeName(i,"input")||n.nodeName(i,"button")?n.prop(i,"form"):void 0;e&&!n._data(e,"submit")&&(n.event.add(e,"submit._submit",function(t){t._submitBubble=!0}),n._data(e,"submit",!0))})},postDispatch:function(t){t._submitBubble&&(delete t._submitBubble,this.parentNode&&!t.isTrigger&&n.event.simulate("submit",this.parentNode,t))},teardown:function(){return n.nodeName(this,"form")?!1:void n.event.remove(this,"._submit")}}),i.change||(n.event.special.change={setup:function(){return J.test(this.nodeName)?("checkbox"!==this.type&&"radio"!==this.type||(n.event.add(this,"propertychange._change",function(t){"checked"===t.originalEvent.propertyName&&(this._justChanged=!0)}),n.event.add(this,"click._change",function(t){this._justChanged&&!t.isTrigger&&(this._justChanged=!1),n.event.simulate("change",this,t)})),!1):void n.event.add(this,"beforeactivate._change",function(t){var e=t.target;J.test(e.nodeName)&&!n._data(e,"change")&&(n.event.add(e,"change._change",function(t){!this.parentNode||t.isSimulated||t.isTrigger||n.event.simulate("change",this.parentNode,t)}),n._data(e,"change",!0))})},handle:function(t){var e=t.target;return this!==e||t.isSimulated||t.isTrigger||"radio"!==e.type&&"checkbox"!==e.type?t.handleObj.handler.apply(this,arguments):void 0},teardown:function(){return n.event.remove(this,"._change"),!J.test(this.nodeName)}}),i.focusin||n.each({focus:"focusin",blur:"focusout"},function(t,e){var i=function(t){n.event.simulate(e,t.target,n.event.fix(t))};n.event.special[e]={setup:function(){var r=this.ownerDocument||this,o=n._data(r,e);o||r.addEventListener(t,i,!0),n._data(r,e,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this,o=n._data(r,e)-1;o?n._data(r,e,o):(r.removeEventListener(t,i,!0),n._removeData(r,e))}}}),n.fn.extend({on:function(t,e,n,i){return ut(this,t,e,n,i)},one:function(t,e,n,i){return ut(this,t,e,n,i,1)},off:function(t,e,i){var r,o;if(t&&t.preventDefault&&t.handleObj)return r=t.handleObj,n(t.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof t){for(o in t)this.off(o,e,t[o]);return this};return e!==!1&&"function"!=typeof e||(i=e,e=void 0),i===!1&&(i=A),this.each(function(){n.event.remove(this,t,i,e)})},trigger:function(t,e){return this.each(function(){n.event.trigger(t,e,this)})},triggerHandler:function(t,e){var i=this[0];return i?n.event.trigger(t,e,i,!0):void 0}});var Ve=/ jQuery\d+="(?:null|\d+)"/g,Ot=new RegExp("<(?:"+Rt+")[\\s/>]","i"),Ue=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,ze=/<script|<style|<link/i,Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,Ge=/^true\/(.*)/,Xe=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ye=Qt(r),Z=Ye.appendChild(r.createElement("div"));function te(t,e){return n.nodeName(t,"table")&&n.nodeName(11!==e.nodeType?e:e.firstChild,"tr")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t};function ee(t){return t.type=(null!==n.find.attr(t,"type"))+"/"+t.type,t};function ne(t){var e=Ge.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t};function ie(t,e){if(1===e.nodeType&&n.hasData(t)){var r,o,a,l=n._data(t),i=n._data(e,l),s=l.events;if(s){delete i.handle,i.events={};for(r in s)for(o=0,a=s[r].length;a>o;o++)n.event.add(e,r,s[r][o])};i.data&&(i.data=n.extend({},i.data))}};function mn(t,e){var r,s,o;if(1===e.nodeType){if(r=e.nodeName.toLowerCase(),!i.noCloneEvent&&e[n.expando]){o=n._data(e);for(s in o.events)n.removeEvent(e,s,o.handle);e.removeAttribute(n.expando)};"script"===r&&e.text!==t.text?(ee(e).text=t.text,ne(e)):"object"===r?(e.parentNode&&(e.outerHTML=t.outerHTML),i.html5Clone&&t.innerHTML&&!n.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):"input"===r&&tt.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):"option"===r?e.defaultSelected=e.selected=t.defaultSelected:"input"!==r&&"textarea"!==r||(e.defaultValue=t.defaultValue)}};function b(t,e,r,s){e=Bt.apply([],e);var f,a,d,c,m,u,l=0,h=t.length,v=h-1,p=e[0],g=n.isFunction(p);if(g||h>1&&"string"==typeof p&&!i.checkClone&&Ke.test(p))return t.each(function(n){var i=t.eq(n);g&&(e[0]=p.call(this,n,i.html())),b(i,e,r,s)});if(h&&(u=Zt(e,t[0].ownerDocument,!1,t,s),f=u.firstChild,1===u.childNodes.length&&(u=f),f||s)){for(c=n.map(o(u,"script"),ee),d=c.length;h>l;l++)a=u,l!==v&&(a=n.clone(a,!0,!0),d&&n.merge(c,o(a,"script"))),r.call(t[l],a,l);if(d)for(m=c[c.length-1].ownerDocument,n.map(c,ne),l=0;d>l;l++)a=c[l],Mt.test(a.type||"")&&!n._data(a,"globalEval")&&n.contains(m,a)&&(a.src?n._evalUrl&&n._evalUrl(a.src):n.globalEval((a.text||a.textContent||a.innerHTML||"").replace(Xe,"")));u=f=null};return t};function re(t,e,i){for(var r,a=e?n.filter(e,t):t,s=0;null!=(r=a[s]);s++)i||1!==r.nodeType||n.cleanData(o(r)),r.parentNode&&(i&&n.contains(r.ownerDocument,r)&&ct(o(r,"script")),r.parentNode.removeChild(r));return t};n.extend({htmlPrefilter:function(t){return t.replace(Ue,"<$1></$2>")},clone:function(t,e,r){var s,u,l,a,c,f=n.contains(t.ownerDocument,t);if(i.html5Clone||n.isXMLDoc(t)||!Ot.test("<"+t.nodeName+">")?l=t.cloneNode(!0):(Z.innerHTML=t.outerHTML,Z.removeChild(l=Z.firstChild)),!(i.noCloneEvent&&i.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||n.isXMLDoc(t)))for(s=o(l),c=o(t),a=0;null!=(u=c[a]);++a)s[a]&&mn(u,s[a]);if(e)if(r)for(c=c||o(t),s=s||o(l),a=0;null!=(u=c[a]);a++)ie(u,s[a]);else ie(t,l);return s=o(l,"script"),s.length>0&&ct(s,!f&&o(t,"script")),s=c=u=null,l},cleanData:function(t,e){for(var r,s,o,a,u=0,l=n.expando,c=n.cache,d=i.attributes,h=n.event.special;null!=(r=t[u]);u++)if((e||D(r))&&(o=r[l],a=o&&c[o])){if(a.events)for(s in a.events)h[s]?n.event.remove(r,s):n.removeEvent(r,s,a.handle);c[o]&&(delete c[o],d||"undefined"==typeof r.removeAttribute?r[l]=void 0:r.removeAttribute(l),f.push(o))}}}),n.fn.extend({domManip:b,detach:function(t){return re(this,t,!0)},remove:function(t){return re(this,t)},text:function(t){return h(this,function(t){return void 0===t?n.text(this):this.empty().append((this[0]&&this[0].ownerDocument||r).createTextNode(t))},null,t,arguments.length)},append:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=te(this,t);e.appendChild(t)}})},prepend:function(){return b(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=te(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return b(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return b(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&&n.cleanData(o(t,!1));while(t.firstChild)t.removeChild(t.firstChild);t.options&&n.nodeName(t,"select")&&(t.options.length=0)};return this},clone:function(t,e){return t=null==t?!1:t,e=null==e?t:e,this.map(function(){return n.clone(this,t,e)})},html:function(t){return h(this,function(t){var r=this[0]||{},s=0,l=this.length;if(void 0===t)return 1===r.nodeType?r.innerHTML.replace(Ve,""):void 0;if("string"==typeof t&&!ze.test(t)&&(i.htmlSerialize||!Ot.test(t))&&(i.leadingWhitespace||!et.test(t))&&!a[(jt.exec(t)||["",""])[1].toLowerCase()]){t=n.htmlPrefilter(t);try{for(;l>s;s++)r=this[s]||{},1===r.nodeType&&(n.cleanData(o(r,!1)),r.innerHTML=t);r=0}catch(e){}};r&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return b(this,arguments,function(e){var i=this.parentNode;n.inArray(this,t)<0&&(n.cleanData(o(this)),i&&i.replaceChild(e,this))},t)}}),n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){n.fn[t]=function(t){for(var r,i=0,o=[],s=n(t),a=s.length-1;a>=i;i++)r=i===a?this:this.clone(!0),n(s[i])[e](r),ot.apply(o,r.get());return this.pushStack(o)}});var O,It={HTML:"block",BODY:"block"};function oe(t,e){var i=n(e.createElement(t)).appendTo(e.body),r=n.css(i[0],"display");return i.detach(),r};function q(t){var i=r,e=It[t];return e||(e=oe(t,i),"none"!==e&&e||(O=(O||n("<iframe frameborder='0' width='0' height='0'/>")).appendTo(i.documentElement),i=(O[0].contentWindow||O[0].contentDocument).document,i.write(),i.close(),e=oe(t,i),O.detach()),It[t]=e),e};var Tt=/^margin/,R=new RegExp("^("+nt+")(?!px)[a-z%]+$","i"),Q=function(t,e,n,i){var o,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];o=n.apply(t,i||[]);for(r in e)t.style[r]=s[r];return o},At=r.documentElement;!function(){var o,c,u,s,f,d,l=r.createElement("div"),e=r.createElement("div");if(e.style){e.style.cssText="float:left;opacity:.5",i.opacity="0.5"===e.style.opacity,i.cssFloat=!!e.style.cssFloat,e.style.backgroundClip="content-box",e.cloneNode(!0).style.backgroundClip="",i.clearCloneStyle="content-box"===e.style.backgroundClip,l=r.createElement("div"),l.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",e.innerHTML="",l.appendChild(e),i.boxSizing=""===e.style.boxSizing||""===e.style.MozBoxSizing||""===e.style.WebkitBoxSizing,n.extend(i,{reliableHiddenOffsets:function(){return null==o&&a(),s},boxSizingReliable:function(){return null==o&&a(),u},pixelMarginRight:function(){return null==o&&a(),c},pixelPosition:function(){return null==o&&a(),o},reliableMarginRight:function(){return null==o&&a(),f},reliableMarginLeft:function(){return null==o&&a(),d}});function a(){var n,i,a=r.documentElement;a.appendChild(l),e.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o=u=d=!1,c=f=!0,t.getComputedStyle&&(i=t.getComputedStyle(e),o="1%"!==(i||{}).top,d="2px"===(i||{}).marginLeft,u="4px"===(i||{width:"4px"}).width,e.style.marginRight="50%",c="4px"===(i||{marginRight:"4px"}).marginRight,n=e.appendChild(r.createElement("div")),n.style.cssText=e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",e.style.width="1px",f=!parseFloat((t.getComputedStyle(n)||{}).marginRight),e.removeChild(n)),e.style.display="none",s=0===e.getClientRects().length,s&&(e.style.display="",e.innerHTML="<table><tr><td></td><td>t</td></tr></table>",n=e.getElementsByTagName("td"),n[0].style.cssText="margin:0;border:0;padding:0;display:none",s=0===n[0].offsetHeight,s&&(n[0].style.display="",n[1].style.display="none",s=0===n[0].offsetHeight)),a.removeChild(l)}}}();var v,d,We=/^(top|right|bottom|left)$/;t.getComputedStyle?(v=function(e){var n=e.ownerDocument.defaultView;return n&&n.opener||(n=t),n.getComputedStyle(e)},d=function(t,e,r){var a,l,c,o,s=t.style;return r=r||v(t),o=r?r.getPropertyValue(e)||r[e]:void 0,""!==o&&void 0!==o||n.contains(t.ownerDocument,t)||(o=n.style(t,e)),r&&!i.pixelMarginRight()&&R.test(o)&&Tt.test(e)&&(a=s.width,l=s.minWidth,c=s.maxWidth,s.minWidth=s.maxWidth=s.width=o,o=r.width,s.width=a,s.minWidth=l,s.maxWidth=c),void 0===o?o:o+""}):At.currentStyle&&(v=function(t){return t.currentStyle},d=function(t,e,n){var a,o,s,i,r=t.style;return n=n||v(t),i=n?n[e]:void 0,null==i&&r&&r[e]&&(i=r[e]),R.test(i)&&!We.test(e)&&(a=r.left,o=t.runtimeStyle,s=o&&o.left,s&&(o.left=t.currentStyle.left),r.left="fontSize"===e?"1em":i,i=r.pixelLeft+"px",r.left=a,s&&(o.left=s)),void 0===i?i:i+""||"auto"});function ft(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}};var Y=/alpha\([^)]*\)/i,He=/opacity\s*=\s*([^)]*)/i,Fe=/^(none|table(?!-c[ea]).+)/,qe=new RegExp("^("+nt+")(.*)$","i"),Be={position:"absolute",visibility:"hidden",display:"block"},kt={letterSpacing:"0",fontWeight:"400"},Et=["Webkit","O","Moz","ms"],St=r.createElement("div").style;function se(t){if(t in St)return t;var n=t.charAt(0).toUpperCase()+t.slice(1),e=Et.length;while(e--)if(t=Et[e]+n,t in St)return t};function ae(t,e){for(var o,i,a,s=[],r=0,l=t.length;l>r;r++)i=t[r],i.style&&(s[r]=n._data(i,"olddisplay"),o=i.style.display,e?(s[r]||"none"!==o||(i.style.display=""),""===i.style.display&&N(i)&&(s[r]=n._data(i,"olddisplay",q(i.nodeName)))):(a=N(i),(o&&"none"!==o||!a)&&n._data(i,"olddisplay",a?o:n.css(i,"display"))));for(r=0;l>r;r++)i=t[r],i.style&&(e&&"none"!==i.style.display&&""!==i.style.display||(i.style.display=e?s[r]||"":"none"));return t};function le(t,e,n){var i=qe.exec(e);return i?Math.max(0,i[1]-(n||0))+(i[2]||"px"):e};function ce(t,e,i,r,o){for(var s=i===(r?"border":"content")?4:"width"===e?1:0,a=0;4>s;s+=2)"margin"===i&&(a+=n.css(t,i+y[s],!0,o)),r?("content"===i&&(a-=n.css(t,"padding"+y[s],!0,o)),"margin"!==i&&(a-=n.css(t,"border"+y[s]+"Width",!0,o))):(a+=n.css(t,"padding"+y[s],!0,o),"padding"!==i&&(a+=n.css(t,"border"+y[s]+"Width",!0,o)));return a};function ue(e,o,s){var c=!0,a="width"===o?e.offsetWidth:e.offsetHeight,l=v(e),u=i.boxSizing&&"border-box"===n.css(e,"boxSizing",!1,l);if(r.msFullscreenElement&&t.top!==t&&e.getClientRects().length&&(a=Math.round(100*e.getBoundingClientRect()[o])),0>=a||null==a){if(a=d(e,o,l),(0>a||null==a)&&(a=e.style[o]),R.test(a))return a;c=u&&(i.boxSizingReliable()||a===e.style[o]),a=parseFloat(a)||0};return a+ce(e,o,s||(u?"border":"content"),c,l)+"px"};n.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=d(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":i.cssFloat?"cssFloat":"styleFloat"},style:function(t,e,r,o){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var a,u,l,c=n.camelCase(e),f=t.style;if(e=n.cssProps[c]||(n.cssProps[c]=se(c)||c),l=n.cssHooks[e]||n.cssHooks[c],void 0===r)return l&&"get"in l&&void 0!==(a=l.get(t,!1,o))?a:f[e];if(u=typeof r,"string"===u&&(a=it.exec(r))&&a[1]&&(r=Yt(t,e,a),u="number"),null!=r&&r===r&&("number"===u&&(r+=a&&a[3]||(n.cssNumber[c]?"":"px")),i.clearCloneStyle||""!==r||0!==e.indexOf("background")||(f[e]="inherit"),!(l&&"set"in l&&void 0===(r=l.set(t,r,o)))))try{f[e]=r}catch(s){}}},css:function(t,e,i,r){var l,o,a,s=n.camelCase(e);return e=n.cssProps[s]||(n.cssProps[s]=se(s)||s),a=n.cssHooks[e]||n.cssHooks[s],a&&"get"in a&&(o=a.get(t,!0,i)),void 0===o&&(o=d(t,e,r)),"normal"===o&&e in kt&&(o=kt[e]),""===i||i?(l=parseFloat(o),i===!0||isFinite(l)?l||0:o):o}}),n.each(["height","width"],function(t,e){n.cssHooks[e]={get:function(t,i,r){return i?Fe.test(n.css(t,"display"))&&0===t.offsetWidth?Q(t,Be,function(){return ue(t,e,r)}):ue(t,e,r):void 0},set:function(t,r,o){var s=o&&v(t);return le(t,r,o?ce(t,e,o,i.boxSizing&&"border-box"===n.css(t,"boxSizing",!1,s),s):0)}}}),i.opacity||(n.cssHooks.opacity={get:function(t,e){return He.test((e&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":e?"1":""},set:function(t,e){var i=t.style,r=t.currentStyle,s=n.isNumeric(e)?"alpha(opacity="+100*e+")":"",o=r&&r.filter||i.filter||"";i.zoom=1,(e>=1||""===e)&&""===n.trim(o.replace(Y,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===e||r&&!r.filter)||(i.filter=Y.test(o)?o.replace(Y,s):o+" "+s)}}),n.cssHooks.marginRight=ft(i.reliableMarginRight,function(t,e){return e?Q(t,{display:"inline-block"},d,[t,"marginRight"]):void 0}),n.cssHooks.marginLeft=ft(i.reliableMarginLeft,function(t,e){return e?(parseFloat(d(t,"marginLeft"))||(n.contains(t.ownerDocument,t)?t.getBoundingClientRect().left-Q(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}):0))+"px":void 0}),n.each({margin:"",padding:"",border:"Width"},function(t,e){n.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];4>i;i++)o[t+y[i]+e]=r[i]||r[i-2]||r[0];return o}},Tt.test(t)||(n.cssHooks[t+e].set=le)}),n.fn.extend({css:function(t,e){return h(this,function(t,e,i){var o,s,a={},r=0;if(n.isArray(e)){for(o=v(t),s=e.length;s>r;r++)a[e[r]]=n.css(t,e[r],!1,o);return a};return void 0!==i?n.style(t,e,i):n.css(t,e)},t,e,arguments.length>1)},show:function(){return ae(this,!0)},hide:function(){return ae(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){N(this)?n(this).show():n(this).hide()})}});function s(t,e,n,i,r){return new s.prototype.init(t,e,n,i,r)};n.Tween=s,s.prototype={constructor:s,init:function(t,e,i,r,o,s){this.elem=t,this.prop=i,this.easing=o||n.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=s||(n.cssNumber[i]?"":"px")},cur:function(){var t=s.propHooks[this.prop];return t&&t.get?t.get(this):s.propHooks._default.get(this)},run:function(t){var e,i=s.propHooks[this.prop];return this.options.duration?this.pos=e=n.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),i&&i.set?i.set(this):s.propHooks._default.set(this),this}},s.prototype.init.prototype=s.prototype,s.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=n.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){n.fx.step[t.prop]?n.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[n.cssProps[t.prop]]&&!n.cssHooks[t.prop]?t.elem[t.prop]=t.now:n.style(t.elem,t.prop,t.now+t.unit)}}},s.propHooks.scrollTop=s.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},n.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},n.fx=s.prototype.init,n.fx.step={};var k,M,Re=/^(?:toggle|show|hide)$/,Le=/queueHooks$/;function fe(){return t.setTimeout(function(){k=void 0}),k=n.now()};function B(t,e){var i,n={height:t},r=0;for(e=e?1:0;4>r;r+=2-e)i=y[r],n["margin"+i]=n["padding"+i]=t;return e&&(n.opacity=n.width=t),n};function de(t,e,n){for(var r,o=(l.tweeners[e]||[]).concat(l.tweeners["*"]),i=0,s=o.length;s>i;i++)if(r=o[i].call(n,e,t))return r};function gn(t,e,r){var o,d,m,h,l,g,c,v,f=this,p={},a=t.style,u=t.nodeType&&N(t),s=n._data(t,"fxshow");r.queue||(l=n._queueHooks(t,"fx"),null==l.unqueued&&(l.unqueued=0,g=l.empty.fire,l.empty.fire=function(){l.unqueued||g()}),l.unqueued++,f.always(function(){f.always(function(){l.unqueued--,n.queue(t,"fx").length||l.empty.fire()})})),1===t.nodeType&&("height"in e||"width"in e)&&(r.overflow=[a.overflow,a.overflowX,a.overflowY],c=n.css(t,"display"),v="none"===c?n._data(t,"olddisplay")||q(t.nodeName):c,"inline"===v&&"none"===n.css(t,"float")&&(i.inlineBlockNeedsLayout&&"inline"!==q(t.nodeName)?a.zoom=1:a.display="inline-block")),r.overflow&&(a.overflow="hidden",i.shrinkWrapBlocks()||f.always(function(){a.overflow=r.overflow[0],a.overflowX=r.overflow[1],a.overflowY=r.overflow[2]}));for(o in e)if(d=e[o],Re.exec(d)){if(delete e[o],m=m||"toggle"===d,d===(u?"hide":"show")){if("show"!==d||!s||void 0===s[o])continue;u=!0};p[o]=s&&s[o]||n.style(t,o)}
else c=void 0;if(n.isEmptyObject(p))"inline"===("none"===c?q(t.nodeName):c)&&(a.display=c);else{s?"hidden"in s&&(u=s.hidden):s=n._data(t,"fxshow",{}),m&&(s.hidden=!u),u?n(t).show():f.done(function(){n(t).hide()}),f.done(function(){var e;n._removeData(t,"fxshow");for(e in p)n.style(t,e,p[e])});for(o in p)h=de(u?s[o]:0,o,f),o in s||(s[o]=h.start,u&&(h.end=h.start,h.start="width"===o||"height"===o?1:0))}};function vn(t,e){var i,o,s,r,a;for(i in t)if(o=n.camelCase(i),s=e[o],r=t[i],n.isArray(r)&&(s=r[1],r=t[i]=r[0]),i!==o&&(t[o]=r,delete t[i]),a=n.cssHooks[o],a&&"expand"in a){r=a.expand(r),delete t[o];for(i in r)i in t||(t[i]=r[i],e[i]=s)}
else e[o]=s};function l(t,e,i){var s,a,c=0,d=l.prefilters.length,o=n.Deferred().always(function(){delete f.elem}),f=function(){if(a)return!1;for(var l=k||fe(),e=Math.max(0,r.startTime+r.duration-l),c=e/r.duration||0,n=1-c,i=0,s=r.tweens.length;s>i;i++)r.tweens[i].run(n);return o.notifyWith(t,[r,n,e]),1>n&&s?e:(o.resolveWith(t,[r]),!1)},r=o.promise({elem:t,props:n.extend({},e),opts:n.extend(!0,{specialEasing:{},easing:n.easing._default},i),originalProperties:e,originalOptions:i,startTime:k||fe(),duration:i.duration,tweens:[],createTween:function(e,i){var o=n.Tween(t,r.opts,e,i,r.opts.specialEasing[e]||r.opts.easing);return r.tweens.push(o),o},stop:function(e){var n=0,i=e?r.tweens.length:0;if(a)return this;for(a=!0;i>n;n++)r.tweens[n].run(1);return e?(o.notifyWith(t,[r,1,0]),o.resolveWith(t,[r,e])):o.rejectWith(t,[r,e]),this}}),u=r.props;for(vn(u,r.opts.specialEasing);d>c;c++)if(s=l.prefilters[c].call(r,t,u,r.opts))return n.isFunction(s.stop)&&(n._queueHooks(r.elem,r.opts.queue).stop=n.proxy(s.stop,s)),s;return n.map(u,de,r),n.isFunction(r.opts.start)&&r.opts.start.call(t,r),n.fx.timer(n.extend(f,{elem:t,anim:r,queue:r.opts.queue})),r.progress(r.opts.progress).done(r.opts.done,r.opts.complete).fail(r.opts.fail).always(r.opts.always)};n.Animation=n.extend(l,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return Yt(n.elem,t,it.exec(e),n),n}]},tweener:function(t,e){n.isFunction(t)?(e=t,t=["*"]):t=t.match(c);for(var i,r=0,o=t.length;o>r;r++)i=t[r],l.tweeners[i]=l.tweeners[i]||[],l.tweeners[i].unshift(e)},prefilters:[gn],prefilter:function(t,e){e?l.prefilters.unshift(t):l.prefilters.push(t)}}),n.speed=function(t,e,i){var r=t&&"object"==typeof t?n.extend({},t):{complete:i||!i&&e||n.isFunction(t)&&t,duration:t,easing:i&&e||e&&!n.isFunction(e)&&e};return r.duration=n.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in n.fx.speeds?n.fx.speeds[r.duration]:n.fx.speeds._default,null!=r.queue&&r.queue!==!0||(r.queue="fx"),r.old=r.complete,r.complete=function(){n.isFunction(r.old)&&r.old.call(this),r.queue&&n.dequeue(this,r.queue)},r},n.fn.extend({fadeTo:function(t,e,n,i){return this.filter(N).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,i,r){var a=n.isEmptyObject(t),s=n.speed(e,i,r),o=function(){var e=l(this,n.extend({},t),s);(a||n._data(this,"finish"))&&e.stop(!0)};return o.finish=o,a||s.queue===!1?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var r=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){var a=!0,e=null!=t&&t+"queueHooks",s=n.timers,o=n._data(this);if(e)o[e]&&o[e].stop&&r(o[e]);else for(e in o)o[e]&&o[e].stop&&Le.test(e)&&r(o[e]);for(e=s.length;e--;)s[e].elem!==this||null!=t&&s[e].queue!==t||(s[e].anim.stop(i),a=!1,s.splice(e,1));!a&&i||n.dequeue(this,t)})},finish:function(t){return t!==!1&&(t=t||"fx"),this.each(function(){var e,o=n._data(this),i=o[t+"queue"],s=o[t+"queueHooks"],r=n.timers,a=i?i.length:0;for(o.finish=!0,n.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=r.length;e--;)r[e].elem===this&&r[e].queue===t&&(r[e].anim.stop(!0),r.splice(e,1));for(e=0;a>e;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete o.finish})}}),n.each(["toggle","show","hide"],function(t,e){var i=n.fn[e];n.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(B(e,!0),t,n,r)}}),n.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){n.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),n.timers=[],n.fx.tick=function(){var i,t=n.timers,e=0;for(k=n.now();e<t.length;e++)i=t[e],i()||t[e]!==i||t.splice(e--,1);t.length||n.fx.stop(),k=void 0},n.fx.timer=function(t){n.timers.push(t),t()?n.fx.start():n.timers.pop()},n.fx.interval=13,n.fx.start=function(){M||(M=t.setInterval(n.fx.tick,n.fx.interval))},n.fx.stop=function(){t.clearInterval(M),M=null},n.fx.speeds={slow:600,fast:200,_default:400},n.fn.delay=function(e,i){return e=n.fx?n.fx.speeds[e]||e:e,i=i||"fx",this.queue(i,function(n,i){var r=t.setTimeout(n,e);i.stop=function(){t.clearTimeout(r)}})},function(){var n,t=r.createElement("input"),e=r.createElement("div"),o=r.createElement("select"),s=o.appendChild(r.createElement("option"));e=r.createElement("div"),e.setAttribute("className","t"),e.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",n=e.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),e.appendChild(t),n=e.getElementsByTagName("a")[0],n.style.cssText="top:1px",i.getSetAttribute="t"!==e.className,i.style=/top/.test(n.getAttribute("style")),i.hrefNormalized="/a"===n.getAttribute("href"),i.checkOn=!!t.value,i.optSelected=s.selected,i.enctype=!!r.createElement("form").enctype,o.disabled=!0,i.optDisabled=!s.disabled,t=r.createElement("input"),t.setAttribute("value",""),i.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),i.radioValue="t"===t.value}();var je=/\r/g,Me=/[\x20\t\r\n\f]+/g;n.fn.extend({val:function(t){var e,i,o,r=this[0];{if(arguments.length)return o=n.isFunction(t),this.each(function(i){var r;1===this.nodeType&&(r=o?t.call(this,i,n(this).val()):t,null==r?r="":"number"==typeof r?r+="":n.isArray(r)&&(r=n.map(r,function(t){return null==t?"":t+""})),e=n.valHooks[this.type]||n.valHooks[this.nodeName.toLowerCase()],e&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))});if(r)return e=n.valHooks[r.type]||n.valHooks[r.nodeName.toLowerCase()],e&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:(i=r.value,"string"==typeof i?i.replace(je,""):null==i?"":i)}}}),n.extend({valHooks:{option:{get:function(t){var e=n.find.attr(t,"value");return null!=e?e:n.trim(n.text(t)).replace(Me," ")}},select:{get:function(t){for(var a,e,l=t.options,r=t.selectedIndex,o="select-one"===t.type||0>r,c=o?null:[],u=o?r+1:l.length,s=0>r?u:o?r:0;u>s;s++)if(e=l[s],(e.selected||s===r)&&(i.optDisabled?!e.disabled:null===e.getAttribute("disabled"))&&(!e.parentNode.disabled||!n.nodeName(e.parentNode,"optgroup"))){if(a=n(e).val(),o)return a;c.push(a)};return c},set:function(t,e){var s,r,o=t.options,l=n.makeArray(e),a=o.length;while(a--)if(r=o[a],n.inArray(n.valHooks.option.get(r),l)>-1)try{r.selected=s=!0}catch(i){r.scrollHeight}
else r.selected=!1;return s||(t.selectedIndex=-1),o}}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]={set:function(t,e){return n.isArray(e)?t.checked=n.inArray(n(t).val(),e)>-1:void 0}},i.checkOn||(n.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var C,Ct,u=n.expr.attrHandle,X=/^(?:checked|selected)$/i,g=i.getSetAttribute,j=i.input;n.fn.extend({attr:function(t,e){return h(this,n.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){n.removeAttr(this,t)})}}),n.extend({attr:function(t,e,i){var r,o,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return"undefined"==typeof t.getAttribute?n.prop(t,e,i):(1===s&&n.isXMLDoc(t)||(e=e.toLowerCase(),o=n.attrHooks[e]||(n.expr.match.bool.test(e)?Ct:C)),void 0!==i?null===i?void n.removeAttr(t,e):o&&"set"in o&&void 0!==(r=o.set(t,i,e))?r:(t.setAttribute(e,i+""),i):o&&"get"in o&&null!==(r=o.get(t,e))?r:(r=n.find.attr(t,e),null==r?void 0:r))},attrHooks:{type:{set:function(t,e){if(!i.radioValue&&"radio"===e&&n.nodeName(t,"input")){var r=t.value;return t.setAttribute("type",e),r&&(t.value=r),e}}}},removeAttr:function(t,e){var i,r,s=0,o=e&&e.match(c);if(o&&1===t.nodeType)while(i=o[s++])r=n.propFix[i]||i,n.expr.match.bool.test(i)?j&&g||!X.test(i)?t[r]=!1:t[n.camelCase("default-"+i)]=t[r]=!1:n.attr(t,i,""),t.removeAttribute(g?i:r)}}),Ct={set:function(t,e,i){return e===!1?n.removeAttr(t,i):j&&g||!X.test(i)?t.setAttribute(!g&&n.propFix[i]||i,i):t[n.camelCase("default-"+i)]=t[i]=!0,i}},n.each(n.expr.match.bool.source.match(/\w+/g),function(t,e){var i=u[e]||n.find.attr;j&&g||!X.test(e)?u[e]=function(t,e,n){var r,o;return n||(o=u[e],u[e]=r,r=null!=i(t,e,n)?e.toLowerCase():null,u[e]=o),r}:u[e]=function(t,e,i){return i?void 0:t[n.camelCase("default-"+e)]?e.toLowerCase():null}}),j&&g||(n.attrHooks.value={set:function(t,e,i){return n.nodeName(t,"input")?void(t.defaultValue=e):C&&C.set(t,e,i)}}),g||(C={set:function(t,e,n){var i=t.getAttributeNode(n);return i||t.setAttributeNode(i=t.ownerDocument.createAttribute(n)),i.value=e+="","value"===n||e===t.getAttribute(n)?e:void 0}},u.id=u.name=u.coords=function(t,e,n){var i;return n?void 0:(i=t.getAttributeNode(e))&&""!==i.value?i.value:null},n.valHooks.button={get:function(t,e){var n=t.getAttributeNode(e);return n&&n.specified?n.value:void 0},set:C.set},n.attrHooks.contenteditable={set:function(t,e,n){C.set(t,""===e?!1:e,n)}},n.each(["width","height"],function(t,e){n.attrHooks[e]={set:function(t,n){return""===n?(t.setAttribute(e,"auto"),n):void 0}}})),i.style||(n.attrHooks.style={get:function(t){return t.style.cssText||void 0},set:function(t,e){return t.style.cssText=e+""}});var De=/^(?:input|select|textarea|button|object)$/i,Pe=/^(?:a|area)$/i;n.fn.extend({prop:function(t,e){return h(this,n.prop,t,e,arguments.length>1)},removeProp:function(t){return t=n.propFix[t]||t,this.each(function(){try{this[t]=void 0,delete this[t]}catch(e){}})}}),n.extend({prop:function(t,e,i){var o,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&n.isXMLDoc(t)||(e=n.propFix[e]||e,r=n.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(o=r.set(t,i,e))?o:t[e]=i:r&&"get"in r&&null!==(o=r.get(t,e))?o:t[e]},propHooks:{tabIndex:{get:function(t){var e=n.find.attr(t,"tabindex");return e?parseInt(e,10):De.test(t.nodeName)||Pe.test(t.nodeName)&&t.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),i.hrefNormalized||n.each(["href","src"],function(t,e){n.propHooks[e]={get:function(t){return t.getAttribute(e,4)}}}),i.optSelected||(n.propHooks.selected={get:function(t){var e=t.parentNode;return e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex),null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),n.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){n.propFix[this.toLowerCase()]=this}),i.enctype||(n.propFix.enctype="encoding");var G=/[\t\r\n\f]/g;function w(t){return n.attr(t,"class")||""};n.fn.extend({addClass:function(t){var a,e,i,r,o,l,s,u=0;if(n.isFunction(t))return this.each(function(e){n(this).addClass(t.call(this,e,w(this)))});if("string"==typeof t&&t){a=t.match(c)||[];while(e=this[u++])if(r=w(e),i=1===e.nodeType&&(" "+r+" ").replace(G," ")){l=0;while(o=a[l++])i.indexOf(" "+o+" ")<0&&(i+=o+" ");s=n.trim(i),r!==s&&n.attr(e,"class",s)}};return this},removeClass:function(t){var a,i,e,r,o,l,s,u=0;if(n.isFunction(t))return this.each(function(e){n(this).removeClass(t.call(this,e,w(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t){a=t.match(c)||[];while(i=this[u++])if(r=w(i),e=1===i.nodeType&&(" "+r+" ").replace(G," ")){l=0;while(o=a[l++])while(e.indexOf(" "+o+" ")>-1)e=e.replace(" "+o+" "," ");s=n.trim(e),r!==s&&n.attr(i,"class",s)}};return this},toggleClass:function(t,e){var i=typeof t;return"boolean"==typeof e&&"string"===i?e?this.addClass(t):this.removeClass(t):n.isFunction(t)?this.each(function(i){n(this).toggleClass(t.call(this,i,w(this),e),e)}):this.each(function(){var e,o,r,s;if("string"===i){o=0,r=n(this),s=t.match(c)||[];while(e=s[o++])r.hasClass(e)?r.removeClass(e):r.addClass(e)}
else void 0!==t&&"boolean"!==i||(e=w(this),e&&n._data(this,"__className__",e),n.attr(this,"class",e||t===!1?"":n._data(this,"__className__")||""))})},hasClass:function(t){var n,e,i=0;n=" "+t+" ";while(e=this[i++])if(1===e.nodeType&&(" "+w(e)+" ").replace(G," ").indexOf(n)>-1)return!0;return!1}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,e){n.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),n.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}});var Oe=t.location,z=n.now(),K=/\?/,Ne=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;n.parseJSON=function(e){if(t.JSON&&t.JSON.parse)return t.JSON.parse(e+"");var o,i=null,r=n.trim(e+"");return r&&!n.trim(r.replace(Ne,function(t,e,n,r){return o&&e&&(i=0),0===i?t:(o=n||e,i+=!r-!n,"")}))?Function("return "+r)():n.error("Invalid JSON: "+e)},n.parseXML=function(e){var r,o;if(!e||"string"!=typeof e)return null;try{t.DOMParser?(o=new t.DOMParser,r=o.parseFromString(e,"text/xml")):(r=new t.ActiveXObject("Microsoft.XMLDOM"),r.async="false",r.loadXML(e))}catch(i){r=void 0};return r&&r.documentElement&&!r.getElementsByTagName("parsererror").length||n.error("Invalid XML: "+e),r};var Ee=/#.*$/,yt=/([?&])_=[^&]*/,Se=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Te=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ae=/^(?:GET|HEAD)$/,Ie=/^\/\//,bt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,wt={},V={},xt="*/".concat("*"),U=Oe.href,x=bt.exec(U.toLowerCase())||[];function he(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var r,o=0,s=e.toLowerCase().match(c)||[];if(n.isFunction(i))while(r=s[o++])"+"===r.charAt(0)?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(i)):(t[r]=t[r]||[]).push(i)}};function pe(t,e,i,r){var o={},a=t===V;function s(l){var c;return o[l]=!0,n.each(t[l]||[],function(t,n){var l=n(e,i,r);return"string"!=typeof l||a||o[l]?a?!(c=l):void 0:(e.dataTypes.unshift(l),s(l),!1)}),c};return s(e.dataTypes[0])||!o["*"]&&s("*")};function dt(t,e){var r,i,o=n.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((o[i]?t:r||(r={}))[i]=e[i]);return r&&n.extend(!0,t,r),t};function yn(t,e,n){var a,s,r,o,l=t.contents,i=t.dataTypes;while("*"===i[0])i.shift(),void 0===s&&(s=t.mimeType||e.getResponseHeader("Content-Type"));if(s)for(o in l)if(l[o]&&l[o].test(s)){i.unshift(o);break};if(i[0]in n)r=i[0];else{for(o in n){if(!i[0]||t.converters[o+" "+i[0]]){r=o;break};a||(a=o)};r=r||a};return r?(r!==i[0]&&i.unshift(r),n[r]):void 0};function bn(t,e,n,i){var u,o,s,c,a,l={},f=t.dataTypes.slice();if(f[1])for(s in t.converters)l[s.toLowerCase()]=t.converters[s];o=f.shift();while(o)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!a&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),a=o,o=f.shift())if("*"===o)o=a;else if("*"!==a&&a!==o){if(s=l[a+" "+o]||l["* "+o],!s)for(u in l)if(c=u.split(" "),c[1]===o&&(s=l[a+" "+c[0]]||l["* "+c[0]])){s===!0?s=l[u]:l[u]!==!0&&(o=c[0],f.unshift(c[1]));break};if(s!==!0)if(s&&t["throws"])e=s(e);else try{e=s(e)}catch(r){return{state:"parsererror",error:s?r:"No conversion from "+a+" to "+o}}};return{state:"success",data:e}};n.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:U,type:"GET",isLocal:Te.test(x[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xt,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":n.parseJSON,"text xml":n.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?dt(dt(t,n.ajaxSettings),e):dt(n.ajaxSettings,t)},ajaxPrefilter:he(wt),ajaxTransport:he(V),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var f,d,a,y,b,h,p,m,r=n.ajaxSetup({},i),u=r.context||r,w=r.context&&(u.nodeType||u.jquery)?n(u):n.event,C=n.Deferred(),k=n.Callbacks("once memory"),g=r.statusCode||{},E={},S={},l=0,T="canceled",s={readyState:0,getResponseHeader:function(t){var e;if(2===l){if(!m){m={};while(e=Se.exec(y))m[e[1].toLowerCase()]=e[2]};e=m[t.toLowerCase()]};return null==e?null:e},getAllResponseHeaders:function(){return 2===l?y:null},setRequestHeader:function(t,e){var n=t.toLowerCase();return l||(t=S[n]=S[n]||t,E[t]=e),this},overrideMimeType:function(t){return l||(r.mimeType=t),this},statusCode:function(t){var e;if(t)if(2>l)for(e in t)g[e]=[g[e],t[e]];else s.always(t[s.status]);return this},abort:function(t){var e=t||T;return p&&p.abort(e),v(0,e),this}};if(C.promise(s).complete=k.add,s.success=s.done,s.error=s.fail,r.url=((e||r.url||U)+"").replace(Ee,"").replace(Ie,x[1]+"//"),r.type=i.method||i.type||r.method||r.type,r.dataTypes=n.trim(r.dataType||"*").toLowerCase().match(c)||[""],null==r.crossDomain&&(f=bt.exec(r.url.toLowerCase()),r.crossDomain=!(!f||f[1]===x[1]&&f[2]===x[2]&&(f[3]||("http:"===f[1]?"80":"443"))===(x[3]||("http:"===x[1]?"80":"443")))),r.data&&r.processData&&"string"!=typeof r.data&&(r.data=n.param(r.data,r.traditional)),pe(wt,r,i,s),2===l)return s;h=n.event&&r.global,h&&0===n.active++&&n.event.trigger("ajaxStart"),r.type=r.type.toUpperCase(),r.hasContent=!Ae.test(r.type),a=r.url,r.hasContent||(r.data&&(a=r.url+=(K.test(a)?"&":"?")+r.data,delete r.data),r.cache===!1&&(r.url=yt.test(a)?a.replace(yt,"$1_="+z++):a+(K.test(a)?"&":"?")+"_="+z++)),r.ifModified&&(n.lastModified[a]&&s.setRequestHeader("If-Modified-Since",n.lastModified[a]),n.etag[a]&&s.setRequestHeader("If-None-Match",n.etag[a])),(r.data&&r.hasContent&&r.contentType!==!1||i.contentType)&&s.setRequestHeader("Content-Type",r.contentType),s.setRequestHeader("Accept",r.dataTypes[0]&&r.accepts[r.dataTypes[0]]?r.accepts[r.dataTypes[0]]+("*"!==r.dataTypes[0]?", "+xt+"; q=0.01":""):r.accepts["*"]);for(d in r.headers)s.setRequestHeader(d,r.headers[d]);if(r.beforeSend&&(r.beforeSend.call(u,s,r)===!1||2===l))return s.abort();T="abort";for(d in{success:1,error:1,complete:1})s[d](r[d]);if(p=pe(V,r,i,s)){if(s.readyState=1,h&&w.trigger("ajaxSend",[s,r]),2===l)return s;r.async&&r.timeout>0&&(b=t.setTimeout(function(){s.abort("timeout")},r.timeout));try{l=1,p.send(E,v)}catch(o){if(!(2>l))throw o;v(-1,o)}}
else v(-1,"No Transport");function v(e,i,o,c){var d,E,x,m,v,f=i;2!==l&&(l=2,b&&t.clearTimeout(b),p=void 0,y=c||"",s.readyState=e>0?4:0,d=e>=200&&300>e||304===e,o&&(m=yn(r,s,o)),m=bn(r,m,s,d),d?(r.ifModified&&(v=s.getResponseHeader("Last-Modified"),v&&(n.lastModified[a]=v),v=s.getResponseHeader("etag"),v&&(n.etag[a]=v)),204===e||"HEAD"===r.type?f="nocontent":304===e?f="notmodified":(f=m.state,E=m.data,x=m.error,d=!x)):(x=f,!e&&f||(f="error",0>e&&(e=0))),s.status=e,s.statusText=(i||f)+"",d?C.resolveWith(u,[E,f,s]):C.rejectWith(u,[s,f,x]),s.statusCode(g),g=void 0,h&&w.trigger(d?"ajaxSuccess":"ajaxError",[s,r,d?E:x]),k.fireWith(u,[s,f]),h&&(w.trigger("ajaxComplete",[s,r]),--n.active||n.event.trigger("ajaxStop")))};return s},getJSON:function(t,e,i){return n.get(t,e,i,"json")},getScript:function(t,e){return n.get(t,void 0,e,"script")}}),n.each(["get","post"],function(t,e){n[e]=function(t,i,r,o){return n.isFunction(i)&&(o=o||r,r=i,i=void 0),n.ajax(n.extend({url:t,type:e,dataType:o,data:i,success:r},n.isPlainObject(t)&&t))}}),n._evalUrl=function(t){return n.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},n.fn.extend({wrapAll:function(t){if(n.isFunction(t))return this.each(function(e){n(this).wrapAll(t.call(this,e))});if(this[0]){var e=n(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){var t=this;while(t.firstChild&&1===t.firstChild.nodeType)t=t.firstChild;return t}).append(this)};return this},wrapInner:function(t){return n.isFunction(t)?this.each(function(e){n(this).wrapInner(t.call(this,e))}):this.each(function(){var e=n(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)})},wrap:function(t){var e=n.isFunction(t);return this.each(function(i){n(this).wrapAll(e?t.call(this,i):t)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()}});function wn(t){return t.style&&t.style.display||n.css(t,"display")};function xn(t){while(t&&1===t.nodeType){if("none"===wn(t)||"hidden"===t.type)return!0;t=t.parentNode};return!1};n.expr.filters.hidden=function(t){return i.reliableHiddenOffsets()?t.offsetWidth<=0&&t.offsetHeight<=0&&!t.getClientRects().length:xn(t)},n.expr.filters.visible=function(t){return!n.expr.filters.hidden(t)};var we=/%20/g,xe=/\[\]$/,vt=/\r?\n/g,Ce=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function ht(t,e,i,r){var o;if(n.isArray(e))n.each(e,function(e,n){i||xe.test(t)?r(t,n):ht(t+"["+("object"==typeof n&&null!=n?e:"")+"]",n,i,r)});else if(i||"object"!==n.type(e))r(t,e);else for(o in e)ht(t+"["+o+"]",e[o],i,r)};n.param=function(t,e){var i,r=[],o=function(t,e){e=n.isFunction(e)?e():null==e?"":e,r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(e)};if(void 0===e&&(e=n.ajaxSettings&&n.ajaxSettings.traditional),n.isArray(t)||t.jquery&&!n.isPlainObject(t))n.each(t,function(){o(this.name,this.value)});else for(i in t)ht(i,t[i],e,o);return r.join("&").replace(we,"+")},n.fn.extend({serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=n.prop(this,"elements");return t?n.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!n(this).is(":disabled")&&ke.test(this.nodeName)&&!Ce.test(t)&&(this.checked||!tt.test(t))}).map(function(t,e){var i=n(this).val();return null==i?null:n.isArray(i)?n.map(i,function(t){return{name:e.name,value:t.replace(vt,"\r\n")}}):{name:e.name,value:i.replace(vt,"\r\n")}}).get()}}),n.ajaxSettings.xhr=void 0!==t.ActiveXObject?function(){return this.isLocal?me():r.documentMode>8?pt():/^(get|post|head|put|delete|options)$/i.test(this.type)&&pt()||me()}:pt;var be=0,P={},I=n.ajaxSettings.xhr();t.attachEvent&&t.attachEvent("onunload",function(){for(var t in P)P[t](void 0,!0)}),i.cors=!!I&&"withCredentials"in I,I=i.ajax=!!I,I&&n.ajaxTransport(function(e){if(!e.crossDomain||i.cors){var r;return{send:function(i,o){var a,s=e.xhr(),l=++be;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];e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(a in i)void 0!==i[a]&&s.setRequestHeader(a,i[a]+"");s.send(e.hasContent&&e.data||null),r=function(t,i){var c,f,u;if(r&&(i||4===s.readyState))if(delete P[l],r=void 0,s.onreadystatechange=n.noop,i)4!==s.readyState&&s.abort();else{u={},c=s.status,"string"==typeof s.responseText&&(u.text=s.responseText);try{f=s.statusText}catch(a){f=""};c||!e.isLocal||e.crossDomain?1223===c&&(c=204):c=u.text?200:404};u&&o(c,f,u,s.getAllResponseHeaders())},e.async?4===s.readyState?t.setTimeout(r):s.onreadystatechange=P[l]=r:r()},abort:function(){r&&r(void 0,!0)}}}});function pt(){try{return new t.XMLHttpRequest}catch(e){}};function me(){try{return new t.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}};n.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 n.globalEval(t),t}}}),n.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),n.ajaxTransport("script",function(t){if(t.crossDomain){var e,i=r.head||n("head")[0]||r.documentElement;return{send:function(n,o){e=r.createElement("script"),e.async=!0,t.scriptCharset&&(e.charset=t.scriptCharset),e.src=t.url,e.onload=e.onreadystatechange=function(t,n){(n||!e.readyState||/loaded|complete/.test(e.readyState))&&(e.onload=e.onreadystatechange=null,e.parentNode&&e.parentNode.removeChild(e),e=null,n||o(200,"success"))},i.insertBefore(e,i.firstChild)},abort:function(){e&&e.onload(void 0,!0)}}}});var gt=[],W=/(=)\?(?=&|$)|\?\?/;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=gt.pop()||n.expando+"_"+z++;return this[t]=!0,t}}),n.ajaxPrefilter("json jsonp",function(e,i,r){var o,s,a,l=e.jsonp!==!1&&(W.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&W.test(e.data)&&"data");return l||"jsonp"===e.dataTypes[0]?(o=e.jsonpCallback=n.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,l?e[l]=e[l].replace(W,"$1"+o):e.jsonp!==!1&&(e.url+=(K.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return a||n.error(o+" was not called"),a[0]},e.dataTypes[0]="json",s=t[o],t[o]=function(){a=arguments},r.always(function(){void 0===s?n(t).removeProp(o):t[o]=s,e[o]&&(e.jsonpCallback=i.jsonpCallback,gt.push(o)),a&&n.isFunction(s)&&s(a[0]),a=s=void 0}),"script"):void 0}),n.parseHTML=function(t,e,i){if(!t||"string"!=typeof t)return null;"boolean"==typeof e&&(i=e,e=!1),e=e||r;var o=qt.exec(t),s=!i&&[];return o?[e.createElement(o[1])]:(o=Zt([t],e,s),s&&s.length&&n(s).remove(),n.merge([],o.childNodes))};var mt=n.fn.load;n.fn.load=function(t,e,i){if("string"!=typeof t&&mt)return mt.apply(this,arguments);var r,a,l,o=this,s=t.indexOf(" ");return s>-1&&(r=n.trim(t.slice(s,t.length)),t=t.slice(0,s)),n.isFunction(e)?(i=e,e=void 0):e&&"object"==typeof e&&(a="POST"),o.length>0&&n.ajax({url:t,type:a||"GET",dataType:"html",data:e}).done(function(t){l=arguments,o.html(r?n("<div>").append(n.parseHTML(t)).find(r):t)}).always(i&&function(t,e){o.each(function(){i.apply(this,l||[t.responseText,e,t])})}),this},n.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){n.fn[e]=function(t){return this.on(e,t)}}),n.expr.filters.animated=function(t){return n.grep(n.timers,function(e){return t===e.elem}).length};function ge(t){return n.isWindow(t)?t:9===t.nodeType?t.defaultView||t.parentWindow:!1};n.offset={setOffset:function(t,e,i){var s,a,l,c,r,u,h,f=n.css(t,"position"),d=n(t),o={};"static"===f&&(t.style.position="relative"),r=d.offset(),l=n.css(t,"top"),u=n.css(t,"left"),h=("absolute"===f||"fixed"===f)&&n.inArray("auto",[l,u])>-1,h?(s=d.position(),c=s.top,a=s.left):(c=parseFloat(l)||0,a=parseFloat(u)||0),n.isFunction(e)&&(e=e.call(t,i,n.extend({},r))),null!=e.top&&(o.top=e.top-r.top+c),null!=e.left&&(o.left=e.left-r.left+a),"using"in e?e.using.call(t,o):d.css(o)}},n.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){n.offset.setOffset(this,t,e)});var e,o,r={top:0,left:0},i=this[0],s=i&&i.ownerDocument;if(s)return e=s.documentElement,n.contains(e,i)?("undefined"!=typeof i.getBoundingClientRect&&(r=i.getBoundingClientRect()),o=ge(s),{top:r.top+(o.pageYOffset||e.scrollTop)-(e.clientTop||0),left:r.left+(o.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}):r},position:function(){if(this[0]){var t,i,e={top:0,left:0},r=this[0];return"fixed"===n.css(r,"position")?i=r.getBoundingClientRect():(t=this.offsetParent(),i=this.offset(),n.nodeName(t[0],"html")||(e=t.offset()),e.top+=n.css(t[0],"borderTopWidth",!0),e.left+=n.css(t[0],"borderLeftWidth",!0)),{top:i.top-e.top-n.css(r,"marginTop",!0),left:i.left-e.left-n.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var t=this.offsetParent;while(t&&!n.nodeName(t,"html")&&"static"===n.css(t,"position"))t=t.offsetParent;return t||At})}}),n.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var i=/Y/.test(e);n.fn[t]=function(r){return h(this,function(t,r,o){var s=ge(t);return void 0===o?s?e in s?s[e]:s.document.documentElement[r]:t[r]:void(s?s.scrollTo(i?n(s).scrollLeft():o,i?o:n(s).scrollTop()):t[r]=o)},t,r,arguments.length,null)}}),n.each(["top","left"],function(t,e){n.cssHooks[e]=ft(i.pixelPosition,function(t,i){return i?(i=d(t,e),R.test(i)?n(t).position()[e]+"px":i):void 0})}),n.each({Height:"height",Width:"width"},function(t,e){n.each({padding:"inner"+t,content:e,"":"outer"+t},function(i,r){n.fn[r]=function(r,o){var s=arguments.length&&(i||"boolean"!=typeof r),a=i||(r===!0||o===!0?"margin":"border");return h(this,function(e,i,r){var o;return n.isWindow(e)?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?n.css(e,i,a):n.style(e,i,r,a)},e,s?r:void 0,s,null)}})}),n.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)}}),n.fn.size=function(){return this.length},n.fn.andSelf=n.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return n});var ve=t.jQuery,ye=t.$;return n.noConflict=function(e){return t.$===n&&(t.$=ye),e&&t.jQuery===n&&(t.jQuery=ve),n},e||(t.jQuery=t.$=n),n});transliterate=(function(){var t="щ   ш  ч  ц  ю  я  ё  ж  ъ  ы  э  а б в г д е з и й к л м н о п р с т у ф х ь".split(/ +/g),e="shh sh ch cz yu ya yo zh `` y' e` a b v g d e z i j k l m n o p r s t u f x `".split(/ +/g);return function(n,i){var r;for(r=0;r<t.length;r++){n=n.split(i?e[r]:t[r]).join(i?t[r]:e[r]);n=n.split(i?e[r].toUpperCase():t[r].toUpperCase()).join(i?t[r].toUpperCase():e[r].toUpperCase())};return n}})();function onlylettersandnumbers(t){t=t.replace(/\s/g,"_");return t.replace(/[^\d\w_]/g,"")};function get_cookie(t){var e=document.cookie.match("(^|;) ?"+t+"=([^;]*)(;|$)");if(e)return(unescape(e[2]));else return null};function set_cookie(t,e){document.cookie=t+"="+e};function smsphone(t){while(t.value.match(/[^0-9_]/)){t.value=t.value.replace(/[^0-9]/,"")};return!0};function smsname(t){while(t.value.match(/[^\d\sA-Zа-яА-Я]/gi)){t.value=t.value.replace(/[^\d\sA-Zа-яА-Я]/gi,"")};return!0};$.fn.serializeObject=function(){var t={};var e=this.serializeArray();$.each(e,function(){if(t[this.name]!==undefined){if(!t[this.name].push){t[this.name]=[t[this.name]]};t[this.name].push(this.value||"")}
else{t[this.name]=this.value||""}});return t};(function(t,e,n){"use strict";function p(t,e){e=e||Error;return function(){var r=arguments[0],s="["+(t?t+":":"")+r+"] ",a=arguments[1],o=arguments,n,i;n=s+a.replace(/\{\d+\}/g,function(t){var e=+t.slice(1,-1),n;if(e+2<o.length){return xn(o[e+2])};return t});n=n+"\nhttp://errors.angularjs.org/1.3.16/"+(t?t+"/":"")+r;for(i=2;i<arguments.length;i++){n=n+(i==2?"?":"&")+"p"+(i-2)+"="+encodeURIComponent(xn(arguments[i]))};return new e(n)}};var jr=/^\/(.+)\/([a-z]*)$/,Mr="validity",h=function(t){return f(t)?t.toLowerCase():t},ln=Object.prototype.hasOwnProperty,ht=function(t){return f(t)?t.toUpperCase():t},Rr=function(t){return f(t)?t.replace(/[A-Z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)|32)}):t},Lr=function(t){return f(t)?t.replace(/[a-z]/g,function(t){return String.fromCharCode(t.charCodeAt(0)&~32)}):t};if("i"!=="I".toLowerCase()){h=Rr;ht=Lr};var J,o,A,ue=[].slice,Nr=[].splice,Dr=[].push,U=Object.prototype.toString,tt=p("ng"),x=t.angular||(t.angular={}),dt,Pr=0;J=e.documentMode;function pt(t){if(t==null||gt(t)){return!1};var e="length" in Object(t)&&t.length;if(t.nodeType===P&&e){return!0};return f(t)||a(t)||e===0||typeof e==="number"&&e>0&&(e-1)in t};function i(t,e,n){var r,o;if(t){if(u(t)){for(r in t){if(r!="prototype"&&r!="length"&&r!="name"&&(!t.hasOwnProperty||t.hasOwnProperty(r))){e.call(n,t[r],r,t)}}}
else if(a(t)||pt(t)){var s=typeof t!=="object";for(r=0,o=t.length;r<o;r++){if(s||r in t){e.call(n,t[r],r,t)}}}
else if(t.forEach&&t.forEach!==i){t.forEach(e,n,t)}
else{for(r in t){if(t.hasOwnProperty(r)){e.call(n,t[r],r,t)}}}};return t};function cn(t){return Object.keys(t).sort()};function Hr(t,e,n){var r=cn(t);for(var i=0;i<r.length;i++){e.call(n,t[r[i]],r[i])};return r};function un(t){return function(e,n){t(n,e)}};function Ht(){return++Pr};function fn(t,e){if(e){t.$$hashKey=e}
else{delete t.$$hashKey}};function d(t){var l=t.$$hashKey;for(var i=1,a=arguments.length;i<a;i++){var n=arguments[i];if(n){var o=Object.keys(n);for(var e=0,s=o.length;e<s;e++){var r=o[e];t[r]=n[r]}}};fn(t,l);return t};function int(t){return parseInt(t,10)};function fe(t,e){return d(Object.create(t),e)};function l(){};l.$inject=[];function j(t){return t};j.$inject=[];function k(t){return function(){return t}};function s(t){return typeof t==="undefined"};function r(t){return typeof t!=="undefined"};function c(t){return t!==null&&typeof t==="object"};function f(t){return typeof t==="string"};function y(t){return typeof t==="number"};function I(t){return U.call(t)==="[object Date]"};var a=Array.isArray;function u(t){return typeof t==="function"};function mt(t){return U.call(t)==="[object RegExp]"};function gt(t){return t&&t.window===t};function vt(t){return t&&t.$evalAsync&&t.$watch};function Fr(t){return U.call(t)==="[object File]"};function qr(t){return U.call(t)==="[object FormData]"};function Br(t){return U.call(t)==="[object Blob]"};function yt(t){return typeof t==="boolean"};function Ft(t){return t&&u(t.then)};var m=function(t){return f(t)?t.trim():t},an=function(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};function dn(t){return!!(t&&(t.nodeName||(t.prop&&t.attr&&t.find)))};function Wr(t){var n={},i=t.split(","),e;for(e=0;e<i.length;e++)n[i[e]]=!0;return n};function L(t){return h(t.nodeName||(t[0]&&t[0].nodeName))};function ls(t,e){return Array.prototype.indexOf.call(t,e)!=-1};function bt(t,e){var n=t.indexOf(e);if(n>=0)t.splice(n,1);return e};function z(t,e,n,r){if(gt(t)||vt(t)){throw tt("cpws","Can't copy! Making copies of Window or Scope instances is not supported.")};if(!e){e=t;if(t){if(a(t)){e=z(t,[],n,r)}
else if(I(t)){e=new Date(t.getTime())}
else if(mt(t)){e=new RegExp(t.source,t.toString().match(/[^\/]*$/)[0]);e.lastIndex=t.lastIndex}
else if(c(t)){var d=Object.create(Object.getPrototypeOf(t));e=z(t,d,n,r)}}}
else{if(t===e)throw tt("cpi","Can't copy! Source and destination are identical.");n=n||[];r=r||[];if(c(t)){var u=n.indexOf(t);if(u!==-1)return r[u];n.push(t);r.push(e)};var o;if(a(t)){e.length=0;for(var l=0;l<t.length;l++){o=z(t[l],null,n,r);if(c(t[l])){n.push(t[l]);r.push(o)};e.push(o)}}
else{var f=e.$$hashKey;if(a(e)){e.length=0}
else{i(e,function(t,n){delete e[n]})};for(var s in t){if(t.hasOwnProperty(s)){o=z(t[s],null,n,r);if(c(t[s])){n.push(t[s]);r.push(o)};e[s]=o}};fn(e,f)}};return e};function M(t,e){if(a(t)){e=e||[];for(var i=0,r=t.length;i<r;i++){e[i]=t[i]}}
else if(c(t)){e=e||{};for(var n in t){if(!(n.charAt(0)==="$"&&n.charAt(1)==="$")){e[n]=t[n]}}};return e||t};function O(t,e){if(t===e)return!0;if(t===null||e===null)return!1;if(t!==t&&e!==e)return!0;var o=typeof t,l=typeof e,s,i,r;if(o==l){if(o=="object"){if(a(t)){if(!a(e))return!1;if((s=t.length)==e.length){for(i=0;i<s;i++){if(!O(t[i],e[i]))return!1};return!0}}
else if(I(t)){if(!I(e))return!1;return O(t.getTime(),e.getTime())}
else if(mt(t)){return mt(e)?t.toString()==e.toString():!1}
else{if(vt(t)||vt(e)||gt(t)||gt(e)||a(e)||I(e)||mt(e))return!1;r={};for(i in t){if(i.charAt(0)==="$"||u(t[i]))continue;if(!O(t[i],e[i]))return!1;r[i]=!0};for(i in e){if(!r.hasOwnProperty(i)&&i.charAt(0)!=="$"&&e[i]!==n&&!u(e[i]))return!1};return!0}}};return!1};var ft=function(){if(r(ft.isActive_))return ft.isActive_;var n=!!(e.querySelector("[ng-csp]")||e.querySelector("[data-ng-csp]"));if(!n){try{new Function("")}catch(t){n=!0}};return(ft.isActive_=n)};function wt(t,e,n){return t.concat(ue.call(e,n))};function de(t,e){return ue.call(t,e||0)};function hn(t,e){var n=arguments.length>2?de(arguments,2):[];if(u(e)&&!(e instanceof RegExp)){return n.length?function(){return arguments.length?e.apply(t,wt(n,arguments,0)):e.apply(t,n)}:function(){return arguments.length?e.apply(t,arguments):e.call(t)}}
else{return e}};function pn(t,i){var r=i;if(typeof t==="string"&&t.charAt(0)==="$"&&t.charAt(1)==="$"){r=n}
else if(gt(i)){r="$WINDOW"}
else if(i&&e===i){r="$DOCUMENT"}
else if(vt(i)){r="$SCOPE"};return r};function xt(t,e){if(typeof t==="undefined")return n;if(!y(e)){e=e?2:null};return JSON.stringify(t,pn,e)};function mn(t){return f(t)?JSON.parse(t):t};function H(t){t=o(t).clone();try{t.empty()}catch(e){};var n=o("<div>").append(t).html();try{return t[0].nodeType===ut?h(n):n.match(/^(<[^>]+>)/)[1].replace(/^<([\w\-]+)/,function(t,e){return"<"+h(e)})}catch(e){return h(n)}};function gn(t){try{return decodeURIComponent(t)}catch(e){}};function vn(t){var n={},o,e;i((t||"").split("&"),function(t){if(t){o=t.replace(/\+/g,"%20").split("=");e=gn(o[0]);if(r(e)){var i=r(o[1])?gn(o[1]):!0;if(!ln.call(n,e)){n[e]=i}
else if(a(n[e])){n[e].push(i)}
else{n[e]=[n[e],i]}}}});return n};function he(t){var e=[];i(t,function(t,n){if(a(t)){i(t,function(t){e.push(K(n,!0)+(t===!0?"":"="+K(t,!0)))})}
else{e.push(K(n,!0)+(t===!0?"":"="+K(t,!0)))}});return e.length?e.join("&"):""};function qt(t){return K(t,!0).replace(/%26/gi,"&").replace(/%3D/gi,"=").replace(/%2B/gi,"+")};function K(t,e){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%20/g,(e?"%20":"+"))};var Lt=["ng-","data-ng-","ng:","x-ng-"];function Vr(t,e){var n,i,r=Lt.length;t=o(t);for(i=0;i<r;++i){n=Lt[i]+e;if(f(n=t.attr(n))){return n}};return null};function Ur(t,e){var n,r,o={};i(Lt,function(e){var i=e+"app";if(!n&&t.hasAttribute&&t.hasAttribute(i)){n=t;r=t.getAttribute(i)}});i(Lt,function(e){var o=e+"app",i;if(!n&&(i=t.querySelector("["+o.replace(":","\\:")+"]"))){n=i;r=i.getAttribute(o)}});if(n){o.strictDi=Vr(n,"strict-di")!==null;e(n,r?[r]:[],o)}};function yn(n,r,s){if(!c(s))s={};var h={strictDi:!1};s=d(h,s);var a=function(){n=o(n);if(n.injector()){var i=(n[0]===e)?"document":H(n);throw tt("btstrpd","App Already Bootstrapped with this Element '{0}'",i.replace(/</,"&lt;").replace(/>/,"&gt;"))};r=r||[];r.unshift(["$provide",function(t){t.value("$rootElement",n)}]);if(s.debugInfoEnabled){r.push(["$compileProvider",function(t){t.debugInfoEnabled(!0)}])};r.unshift("ng");var t=Et(r,s.strictDi);t.invoke(["$rootScope","$rootElement","$compile","$injector",function(t,e,n,i){t.$apply(function(){e.data("$injector",i);n(e)(t)})}]);return t},l=/^NG_ENABLE_DEBUG_INFO!/,f=/^NG_DEFER_BOOTSTRAP!/;if(t&&l.test(t.name)){s.debugInfoEnabled=!0;t.name=t.name.replace(l,"")};if(t&&!f.test(t.name)){return a()};t.name=t.name.replace(f,"");x.resumeBootstrap=function(t){i(t,function(t){r.push(t)});return a()};if(u(x.resumeDeferredBootstrap)){x.resumeDeferredBootstrap()}};function zr(){t.name="NG_ENABLE_DEBUG_INFO!"+t.name;t.location.reload()};function Kr(t){var e=x.element(t).injector();if(!e){throw tt("test","no injector found for element argument to getTestability")};return e.get("$$testability")};var Or=/[A-Z]/g;function bn(t,e){e=e||"_";return t.replace(Or,function(t,n){return(n?e:"")+t.toLowerCase()})};var sn=!1,ce;function Gr(){var e;if(sn){return};A=t.jQuery;if(A&&A.fn.on){o=A;d(A.fn,{scope:Z.scope,isolateScope:Z.isolateScope,controller:Z.controller,injector:Z.injector,inheritedData:Z.inheritedData});e=A.cleanData;A.cleanData=function(t){var i;if(!ce){for(var r=0,n;(n=t[r])!=null;r++){i=A._data(n,"events");if(i&&i.$destroy){A(n).triggerHandler("$destroy")}}}
else{ce=!1};e(t)}}
else{o=g};x.element=o;sn=!0};function pe(t,e,n){if(!t){throw tt("areq","Argument '{0}' is {1}",(e||"?"),(n||"required"))};return t};function et(t,e,n){if(n&&a(t)){t=t[t.length-1]};pe(u(t),e,"not a function, got "+(t&&typeof t==="object"?t.constructor.name||"Object":typeof t));return t};function nt(t,e){if(t==="hasOwnProperty"){throw tt("badname","hasOwnProperty is not a valid {0} name",e)}};function wn(t,e,n){if(!e)return t;var r=e.split("."),o,s=t,a=r.length;for(var i=0;i<a;i++){o=r[i];if(t){t=(s=t)[o]}};if(!n&&u(t)){return hn(s,t)};return t};function Bt(t){var e=t[0],i=t[t.length-1],n=[e];do{e=e.nextSibling;if(!e)break;n.push(e)}
while(e!==i);return o(n)};function N(){return Object.create(null)};var P=1,Ir=2,ut=3,ae=8,on=9,le=11;function Xr(t){var i=p("$injector"),r=p("ng");function n(t,e,n){return t[e]||(t[e]=n())};var e=n(t,"angular",Object);e.$$minErr=e.$$minErr||p;return n(e,"module",function(){var t={};return function(e,o,s){var a=function(t,e){if(t==="hasOwnProperty"){throw r("badname","hasOwnProperty is not a valid {0} name",e)}};a(e,"module");if(o&&t.hasOwnProperty(e)){t[e]=null};return n(t,e,function(){if(!o){throw i("nomod","Module '{0}' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.",e)};var n=[],r=[],a=[],l=t("$injector","invoke","push",r),c={_invokeQueue:n,_configBlocks:r,_runBlocks:a,requires:o,name:e,provider:t("$provide","provider"),factory:t("$provide","factory"),service:t("$provide","service"),value:t("$provide","value"),constant:t("$provide","constant","unshift"),animation:t("$animateProvider","register"),filter:t("$filterProvider","register"),controller:t("$controllerProvider","register"),directive:t("$compileProvider","directive"),config:l,run:function(t){a.push(t);return this}};if(s){l(s)};return c;function t(t,e,i,r){if(!r)r=n;return function(){r[i||"push"]([t,e,arguments]);return c}}})}})};function Yr(t){var e=[];return JSON.stringify(t,function(t,n){n=pn(t,n);if(c(n)){if(e.indexOf(n)>=0)return"<<already seen>>";e.push(n)};return n})};function xn(t){if(typeof t==="function"){return t.toString().replace(/ \{[\s\S]*$/,"")}
else if(typeof t==="undefined"){return"undefined"}
else if(typeof t!=="string"){return Yr(t)};return t};var Ar={full:"1.3.16",major:1,minor:3,dot:16,codeName:"cookie-oatmealification"};function Qr(e){d(e,{"bootstrap":yn,"copy":z,"extend":d,"equals":O,"element":o,"forEach":i,"injector":Et,"noop":l,"bind":hn,"toJson":xt,"fromJson":mn,"identity":j,"isUndefined":s,"isDefined":r,"isString":f,"isFunction":u,"isObject":c,"isNumber":y,"isElement":dn,"isArray":a,"version":Ar,"isDate":I,"lowercase":h,"uppercase":ht,"callbacks":{counter:0},"getTestability":Kr,"$$minErr":p,"$$csp":ft,"reloadWithDebugInfo":zr});dt=Xr(t);try{dt("ngLocale")}catch(n){dt("ngLocale",[]).provider("$locale",ko)};dt("ng",["ngLocale"],["$provide",function(t){t.provider({$$sanitizeUri:Ro});t.provider("$compile",On).directive({a:Xi,input:Be,textarea:Be,form:Wi,script:ai,select:ri,style:si,option:oi,ngBind:Hi,ngBindHtml:qi,ngBindTemplate:Fi,ngClass:Di,ngClassEven:ji,ngClassOdd:Pi,ngCloak:Mi,ngController:Ni,ngForm:Vi,ngHide:mi,ngIf:Si,ngInclude:Ti,ngInit:Ii,ngNonBindable:bi,ngPluralize:di,ngRepeat:hi,ngShow:pi,ngStyle:gi,ngSwitch:vi,ngSwitchWhen:yi,ngSwitchDefault:fi,ngOptions:ci,ngTransclude:ui,ngModel:Ci,ngList:wi,ngChange:Bi,pattern:De,ngPattern:De,required:Ne,ngRequired:Ne,minlength:je,ngMinlength:je,maxlength:Pe,ngMaxlength:Pe,ngValue:Li,ngModelOptions:Ei}).directive({ngInclude:Ai}).directive(Dt).directive(qe);t.provider({$anchorScroll:so,$animate:gr,$browser:co,$cacheFactory:uo,$controller:ho,$document:po,$exceptionHandler:mo,$filter:Un,$interpolate:xo,$interval:Co,$http:vo,$httpBackend:bo,$location:So,$log:To,$parse:No,$rootScope:Mo,$q:Do,$$q:Po,$sce:Fo,$sceDelegate:Ho,$sniffer:qo,$templateCache:fo,$templateRequest:Bo,$$testability:Wo,$timeout:Vo,$window:Uo,$$rAF:jo,$$asyncCallback:ao,$$jqLite:io})}])};g.expando="ng339";var Mt=g.cache={},Tr=1,Rt=function(t,e,n){t.addEventListener(e,n,!1)},ct=function(t,e,n){t.removeEventListener(e,n,!1)};g._data=function(t){return this.cache[t[this.expando]]||{}};function Zr(){return++Tr};var kr=/([\:\-\_]+(.))/g,Er=/^moz([A-Z])/,Sr={mouseleave:"mouseout",mouseenter:"mouseover"};var se=p("jqLite");function Ct(t){return t.replace(kr,function(t,e,n,i){return i?n.toUpperCase():n}).replace(Er,"Moz$1")};var br=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,wr=/<|&#?\w+;/,xr=/<([\w:]+)/,Cr=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,T={"option":[1,"<select multiple=\"multiple\">","</select>"],"thead":[1,"<table>","</table>"],"col":[2,"<table><colgroup>","</colgroup></table>"],"tr":[2,"<table><tbody>","</tbody></table>"],"td":[3,"<table><tbody><tr>","</tr></tbody></table>"],"_default":[0,"",""]};T.optgroup=T.option;T.tbody=T.tfoot=T.colgroup=T.caption=T.thead;T.th=T.td;function me(t){return!wr.test(t)};function Cn(t){var e=t.nodeType;return e===P||!e||e===on};function kn(t,e){var n,a,o,r=e.createDocumentFragment(),s=[],l;if(me(t)){s.push(e.createTextNode(t))}
else{n=n||r.appendChild(e.createElement("div"));a=(xr.exec(t)||["",""])[1].toLowerCase();o=T[a]||T._default;n.innerHTML=o[1]+t.replace(Cr,"<$1></$2>")+o[2];l=o[0];while(l--){n=n.lastChild};s=wt(s,n.childNodes);n=r.firstChild;n.textContent=""};r.textContent="";r.innerHTML="";i(s,function(t){r.appendChild(t)});return r};function Jr(t,n){n=n||e;var i;if((i=br.exec(t))){return[n.createElement(i[1])]};if((i=kn(t,n))){return i.childNodes};return[]};function g(t){if(t instanceof g){return t};var e;if(f(t)){t=m(t);e=!0};if(!(this instanceof g)){if(e&&t.charAt(0)!="<"){throw se("nosel","Looking up elements via selectors is not supported by jqLite! See: http://docs.angularjs.org/api/angular.element")};return new g(t)};if(e){ye(this,Jr(t))}
else{ye(this,t)}};function ge(t){return t.cloneNode(!0)};function Wt(t,e){if(!e)Vt(t);if(t.querySelectorAll){var i=t.querySelectorAll("*");for(var n=0,r=i.length;n<r;n++){Vt(i[n])}}};function En(t,e,n,o){if(r(o))throw se("offargs","jqLite#off() does not support the `selector` argument");var s=Ut(t),a=s&&s.events,l=s&&s.handle;if(!l)return;if(!e){for(e in a){if(e!=="$destroy"){ct(t,e,l)};delete a[e]}}
else{i(e.split(" "),function(e){if(r(n)){var i=a[e];bt(i||[],n);if(i&&i.length>0){return}};ct(t,e,l);delete a[e]})}};function Vt(t,e){var r=t.ng339,i=r&&Mt[r];if(i){if(e){delete i.data[e];return};if(i.handle){if(i.events.$destroy){i.handle({},"$destroy")};En(t)};delete Mt[r];t.ng339=n}};function Ut(t,e){var i=t.ng339,r=i&&Mt[i];if(e&&!r){t.ng339=i=Zr();r=Mt[i]={events:{},data:{},handle:n}};return r};function ve(t,e,n){if(Cn(t)){var o=r(n),s=!o&&e&&!c(e),l=!e,a=Ut(t,!s),i=a&&a.data;if(o){i[e]=n}
else{if(l){return i}
else{if(s){return i&&i[e]}
else{d(i,e)}}}}};function zt(t,e){if(!t.getAttribute)return!1;return((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").indexOf(" "+e+" ")>-1)};function Kt(t,e){if(e&&t.setAttribute){i(e.split(" "),function(e){t.setAttribute("class",m((" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ").replace(" "+m(e)+" "," ")))})}};function Gt(t,e){if(e&&t.setAttribute){var n=(" "+(t.getAttribute("class")||"")+" ").replace(/[\n\t]/g," ");i(e.split(" "),function(t){t=m(t);if(n.indexOf(" "+t+" ")===-1){n+=t+" "}});t.setAttribute("class",m(n))}};function ye(t,e){if(e){if(e.nodeType){t[t.length++]=e}
else{var i=e.length;if(typeof i==="number"&&e.window!==e){if(i){for(var n=0;n<i;n++){t[t.length++]=e[n]}}}
else{t[t.length++]=e}}}};function Sn(t,e){return Xt(t,"$"+(e||"ngController")+"Controller")};function Xt(t,e,i){if(t.nodeType==on){t=t.documentElement};var s=a(e)?e:[e];while(t){for(var r=0,l=s.length;r<l;r++){if((i=o.data(t,s[r]))!==n)return i};t=t.parentNode||(t.nodeType===le&&t.host)}};function Tn(t){Wt(t,!0);while(t.firstChild){t.removeChild(t.firstChild)}};function An(t,e){if(!e)Wt(t);var n=t.parentNode;if(n)n.removeChild(t)};function to(e,n){n=n||t;if(n.document.readyState==="complete"){n.setTimeout(e)}
else{o(n).on("load",e)}};var Z=g.prototype={ready:function(n){var r=!1;function i(){if(r)return;r=!0;n()};if(e.readyState==="complete"){setTimeout(i)}
else{this.on("DOMContentLoaded",i);g(t).on("load",i)}},toString:function(){var t=[];i(this,function(e){t.push(""+e)});return"["+t.join(", ")+"]"},eq:function(t){return(t>=0)?o(this[t]):o(this[this.length+t])},length:0,push:Dr,sort:[].sort,splice:[].splice};var jt={};i("multiple,selected,checked,disabled,readOnly,required,open".split(","),function(t){jt[h(t)]=t});var rn={};i("input,select,option,textarea,button,form,details".split(","),function(t){rn[t]=!0});var nn={"ngMinlength":"minlength","ngMaxlength":"maxlength","ngMin":"min","ngMax":"max","ngPattern":"pattern"};function In(t,e){var n=jt[e.toLowerCase()];return n&&rn[L(t)]&&n};function eo(t,e){var n=t.nodeName;return(n==="INPUT"||n==="TEXTAREA")&&nn[e]};i({data:ve,removeData:Vt},function(t,e){g[e]=t});i({data:ve,inheritedData:Xt,scope:function(t){return o.data(t,"$scope")||Xt(t.parentNode||t,["$isolateScope","$scope"])},isolateScope:function(t){return o.data(t,"$isolateScope")||o.data(t,"$isolateScopeNoTemplate")},controller:Sn,injector:function(t){return Xt(t,"$injector")},removeAttr:function(t,e){t.removeAttribute(e)},hasClass:zt,css:function(t,e,n){e=Ct(e);if(r(n)){t.style[e]=n}
else{return t.style[e]}},attr:function(t,e,i){var s=t.nodeType;if(s===ut||s===Ir||s===ae){return};var o=h(e);if(jt[o]){if(r(i)){if(!!i){t[e]=!0;t.setAttribute(e,o)}
else{t[e]=!1;t.removeAttribute(o)}}
else{return(t[e]||(t.attributes.getNamedItem(e)||l).specified)?o:n}}
else if(r(i)){t.setAttribute(e,i)}
else if(t.getAttribute){var a=t.getAttribute(e,2);return a===null?n:a}},prop:function(t,e,n){if(r(n)){t[e]=n}
else{return t[e]}},text:(function(){t.$dv="";return t;function t(t,e){if(s(e)){var n=t.nodeType;return(n===P||n===ut)?t.textContent:""};t.textContent=e}})(),val:function(t,e){if(s(e)){if(t.multiple&&L(t)==="select"){var n=[];i(t.options,function(t){if(t.selected){n.push(t.value||t.text)}});return n.length===0?null:n};return t.value};t.value=e},html:function(t,e){if(s(e)){return t.innerHTML};Wt(t,!0);t.innerHTML=e},empty:Tn},function(t,e){g.prototype[e]=function(e,i){var r,l,s=this.length;if(t!==Tn&&(((t.length==2&&(t!==zt&&t!==Sn))?e:i)===n)){if(c(e)){for(r=0;r<s;r++){if(t===ve){t(this[r],e)}
else{for(l in e){t(this[r],l,e[l])}}};return this}
else{var o=t.$dv,f=(o===n)?Math.min(s,1):s;for(var a=0;a<f;a++){var u=t(this[a],e,i);o=o?o+u:u};return o}}
else{for(r=0;r<s;r++){t(this[r],e,i)};return this}}});function no(t,e){var n=function(n,i){n.isDefaultPrevented=function(){return n.defaultPrevented};var r=e[i||n.type],a=r?r.length:0;if(!a)return;if(s(n.immediatePropagationStopped)){var l=n.stopImmediatePropagation;n.stopImmediatePropagation=function(){n.immediatePropagationStopped=!0;if(n.stopPropagation){n.stopPropagation()};if(l){l.call(n)}}};n.isImmediatePropagationStopped=function(){return n.immediatePropagationStopped===!0};if((a>1)){r=M(r)};for(var o=0;o<a;o++){if(!n.isImmediatePropagationStopped()){r[o].call(t,n)}}};n.elem=t;return n};i({removeData:Vt,on:function fs(t,e,n,i){if(r(i))throw se("onargs","jqLite#on() does not support the `selector` or `eventData` parameters");if(!Cn(t)){return};var l=Ut(t,!0),o=l.events,s=l.handle;if(!s){s=l.handle=no(t,o)};var c=e.indexOf(" ")>=0?e.split(" "):[e],u=c.length;while(u--){e=c[u];var a=o[e];if(!a){o[e]=[];if(e==="mouseenter"||e==="mouseleave"){fs(t,Sr[e],function(t){var i=this,n=t.relatedTarget;if(!n||(n!==i&&!i.contains(n))){s(t,e)}})}
else{if(e!=="$destroy"){Rt(t,e,s)}};a=o[e]};a.push(n)}},off:En,one:function(t,e,n){t=o(t);t.on(e,function i(){t.off(e,n);t.off(e,i)});t.on(e,n)},replaceWith:function(t,e){var n,r=t.parentNode;Wt(t);i(new g(e),function(e){if(n){r.insertBefore(e,n.nextSibling)}
else{r.replaceChild(e,t)};n=e})},children:function(t){var e=[];i(t.childNodes,function(t){if(t.nodeType===P)e.push(t)});return e},contents:function(t){return t.contentDocument||t.childNodes||[]},append:function(t,e){var i=t.nodeType;if(i!==P&&i!==le)return;e=new g(e);for(var n=0,o=e.length;n<o;n++){var r=e[n];t.appendChild(r)}},prepend:function(t,e){if(t.nodeType===P){var n=t.firstChild;i(new g(e),function(e){t.insertBefore(e,n)})}},wrap:function(t,e){e=o(e).eq(0).clone()[0];var n=t.parentNode;if(n){n.replaceChild(e,t)};e.appendChild(t)},remove:An,detach:function(t){An(t,!0)},after:function(t,e){var r=t,s=t.parentNode;e=new g(e);for(var n=0,o=e.length;n<o;n++){var i=e[n];s.insertBefore(i,r.nextSibling);r=i}},addClass:Gt,removeClass:Kt,toggleClass:function(t,e,n){if(e){i(e.split(" "),function(e){var i=n;if(s(i)){i=!zt(t,e)}(i?Gt:Kt)(t,e)})}},parent:function(t){var e=t.parentNode;return e&&e.nodeType!==le?e:null},next:function(t){return t.nextElementSibling},find:function(t,e){if(t.getElementsByTagName){return t.getElementsByTagName(e)}
else{return[]}},clone:ge,triggerHandler:function(t,e,n){var r,o,s,a=e.type||e,c=Ut(t),u=c&&c.events,f=u&&u[a];if(f){r={preventDefault:function(){this.defaultPrevented=!0},isDefaultPrevented:function(){return this.defaultPrevented===!0},stopImmediatePropagation:function(){this.immediatePropagationStopped=!0},isImmediatePropagationStopped:function(){return this.immediatePropagationStopped===!0},stopPropagation:l,type:a,target:t};if(e.type){r=d(r,e)};o=M(f);s=n?[r].concat(n):[r];i(o,function(e){if(!r.isImmediatePropagationStopped()){e.apply(t,s)}})}}},function(t,e){g.prototype[e]=function(e,n,i){var a;for(var l=0,c=this.length;l<c;l++){if(s(a)){a=t(this[l],e,n,i);if(r(a)){a=o(a)}}
else{ye(a,t(this[l],e,n,i))}};return r(a)?a:this};g.prototype.bind=g.prototype.on;g.prototype.unbind=g.prototype.off});function io(){this.$get=function(){return d(g,{hasClass:function(t,e){if(t.attr)t=t[0];return zt(t,e)},addClass:function(t,e){if(t.attr)t=t[0];return Gt(t,e)},removeClass:function(t,e){if(t.attr)t=t[0];return Kt(t,e)}})}};function it(t,e){var n=t&&t.$$hashKey;if(n){if(typeof n==="function"){n=t.$$hashKey()};return n};var i=typeof t;if(i=="function"||(i=="object"&&t!==null)){n=t.$$hashKey=i+":"+(e||Ht)()}
else{n=i+":"+t};return n};function kt(t,e){if(e){var n=0;this.nextUid=function(){return++n}};i(t,this.put,this)};kt.prototype={put:function(t,e){this[it(t,this.nextUid)]=e},get:function(t){return this[it(t,this.nextUid)]},remove:function(t){var e=this[t=it(t,this.nextUid)];delete this[t];return e}};var tn=/^function\s*[^\(]*\(\s*([^\)]*)\)/m,vr=/,/,yr=/^\s*(_?)(\S+?)\1\s*$/,en=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg,V=p("$injector");function ro(t){var n=t.toString().replace(en,""),e=n.match(tn);if(e){return"function("+(e[1]||"").replace(/[\s\r\n]+/," ")+")"};return"fn"};function oo(t,e,n){var r,s,l,o;if(typeof t==="function"){if(!(r=t.$inject)){r=[];if(t.length){if(e){if(!f(n)||!n){n=t.name||ro(t)};throw V("strictdi","{0} is not using explicit annotation and cannot be invoked in strict mode",n)};s=t.toString().replace(en,"");l=s.match(tn);i(l[1].split(vr),function(t){t.replace(yr,function(t,e,n){r.push(n)})})};t.$inject=r}}
else if(a(t)){o=t.length-1;et(t[o],"fn");r=t.slice(0,o)}
else{et(t,"fn",!0)};return r};function Et(t,e){e=(e===!0);var g={},m="Provider",d=[],b=new kt([],!0),h={$provide:{provider:p(w),factory:p(y),service:p(T),value:p(A),constant:p(I),decorator:O}},r=(h.$injector=E(h,function(t,e){if(x.isString(e)){d.push(e)};throw V("unpr","Unknown provider: {0}",d.join(" <- "))})),v={},o=(v.$injector=E(v,function(t,e){var i=r.get(t+m,e);return o.invoke(i.$get,i,n,t)}));i(C(t),function(t){o.invoke(t||l)});return o;function p(t){return function(e,n){if(c(e)){i(e,un(t))}
else{return t(e,n)}}};function w(t,e){nt(t,"service");if(u(e)||a(e)){e=r.instantiate(e)};if(!e.$get){throw V("pget","Provider '{0}' must define $get factory method.",t)};return h[t+m]=e};function S(t,e){return function(){var n=o.invoke(e,this);if(s(n)){throw V("undef","Provider '{0}' must return a value from $get factory method.",t)};return n}};function y(t,e,n){return w(t,{$get:n!==!1?S(t,e):e})};function T(t,e){return y(t,["$injector",function(t){return t.instantiate(e)}])};function A(t,e){return y(t,k(e),!1)};function I(t,e){nt(t,"constant");h[t]=e;v[t]=e};function O(t,e){var n=r.get(t+m),i=n.$get;n.$get=function(){var t=o.invoke(i,n);return o.invoke(e,null,{$delegate:t})}};function C(t){var e=[],n;i(t,function(t){if(b.get(t))return;b.put(t,!0);function o(t){var e,o;for(e=0,o=t.length;e<o;e++){var n=t[e],i=r.get(n[0]);i[n[1]].apply(i,n[2])}};try{if(f(t)){n=dt(t);e=e.concat(C(n.requires)).concat(n._runBlocks);o(n._invokeQueue);o(n._configBlocks)}
else if(u(t)){e.push(r.invoke(t))}
else if(a(t)){e.push(r.invoke(t))}
else{et(t,"module")}}catch(i){if(a(t)){t=t[t.length-1]};if(i.message&&i.stack&&i.stack.indexOf(i.message)==-1){i=i.message+"\n"+i.stack};throw V("modulerr","Failed to instantiate module {0} due to:\n{1}",t,i.stack||i.message||i)}});return e};function E(t,n){function i(e,i){if(t.hasOwnProperty(e)){if(t[e]===g){throw V("cdep","Circular dependency found: {0}",e+" <- "+d.join(" <- "))};return t[e]}
else{try{d.unshift(e);t[e]=g;return t[e]=n(e,i)}catch(r){if(t[e]===g){delete t[e]};throw r}finally{d.shift()}}};function r(t,n,r,o){if(typeof r==="string"){o=r;r=null};var u=[],f=Et.$$annotate(t,e,o),c,l,s;for(l=0,c=f.length;l<c;l++){s=f[l];if(typeof s!=="string"){throw V("itkn","Incorrect injection token! Expected service name as string, got {0}",s)};u.push(r&&r.hasOwnProperty(s)?r[s]:i(s,o))};if(a(t)){t=t[c]};return t.apply(n,u)};function o(t,e,n){var o=Object.create((a(t)?t[t.length-1]:t).prototype||null),i=r(t,o,e,n);return c(i)||u(i)?i:o};return{invoke:r,instantiate:o,get:i,annotate:Et.$$annotate,has:function(e){return h.hasOwnProperty(e+m)||t.hasOwnProperty(e)}}}};Et.$$annotate=oo;function so(){var t=!0;this.disableAutoScrolling=function(){t=!1};this.$get=["$window","$location","$rootScope",function(e,n,i){var s=e.document;function a(t){var e=null;Array.prototype.some.call(t,function(t){if(L(t)==="a"){e=t;return!0}});return e};function l(){var t=o.yOffset;if(u(t)){t=t()}
else if(dn(t)){var n=t[0],i=e.getComputedStyle(n);if(i.position!=="fixed"){t=0}
else{t=n.getBoundingClientRect().bottom}}
else if(!y(t)){t=0};return t};function r(t){if(t){t.scrollIntoView();var n=l();if(n){var i=t.getBoundingClientRect().top;e.scrollBy(0,i-n)}}
else{e.scrollTo(0,0)}};function o(){var t=n.hash(),e;if(!t)r(null);else if((e=s.getElementById(t)))r(e);else if((e=a(s.getElementsByName(t))))r(e);else if(t==="top")r(null)};if(t){i.$watch(function(){return n.hash()},function(t,e){if(t===e&&t==="")return;to(function(){i.$evalAsync(o)})})};return o}]};var mr=p("$animate"),gr=["$provide",function(t){this.$$selectors={};this.register=function(e,n){var i=e+"-animation";if(e&&e.charAt(0)!=".")throw mr("notcsel","Expecting class selector starting with '.' got '{0}'.",e);this.$$selectors[e.substr(1)]=i;t.factory(i,n)};this.classNameFilter=function(t){if(arguments.length===1){this.$$classNameFilter=(t instanceof RegExp)?t:null};return this.$$classNameFilter};this.$get=["$$q","$$asyncCallback","$rootScope",function(t,e,n){var c;function h(e){var i,r=t.defer();r.promise.$$cancelFn=function(){i&&i()};n.$$postDigest(function(){i=e(function(){r.resolve()})});return r.promise};function p(t,e){var n=[],r=[],o=N();i((t.attr("class")||"").split(/\s+/),function(t){o[t]=!0});i(e,function(t,e){var i=o[e];if(t===!1&&i){r.push(e)}
else if(t===!0&&!i){n.push(e)}});return(n.length+r.length)>0&&[n.length?n:null,r.length?r:null]};function u(t,e,n){for(var i=0,o=e.length;i<o;++i){var r=e[i];t[r]=n}};function r(){if(!c){c=t.defer();e(function(){c.resolve();c=null})};return c.promise};function s(t,e){if(x.isObject(e)){var n=d(e.from||{},e.to||{});t.css(n)}};return{animate:function(t,e,n){s(t,{from:e,to:n});return r()},enter:function(t,e,n,i){s(t,i);n?n.after(t):e.prepend(t);return r()},leave:function(t,e){s(t,e);t.remove();return r()},move:function(t,e,n,i){return this.enter(t,e,n,i)},addClass:function(t,e,n){return this.setClass(t,e,[],n)},$$addClassImmediately:function(t,e,n){t=o(t);e=!f(e)?(a(e)?e.join(" "):""):e;i(t,function(t){Gt(t,e)});s(t,n);return r()},removeClass:function(t,e,n){return this.setClass(t,[],e,n)},$$removeClassImmediately:function(t,e,n){t=o(t);e=!f(e)?(a(e)?e.join(" "):""):e;i(t,function(t){Kt(t,e)});s(t,n);return r()},setClass:function(t,e,n,i){var f=this,s="$$animateClasses",c=!1;t=o(t);var r=t.data(s);if(!r){r={classes:{},options:i};c=!0}
else if(i&&r.options){r.options=x.extend(r.options||{},i)};var l=r.classes;e=a(e)?e:e.split(" ");n=a(n)?n:n.split(" ");u(l,e,!0);u(l,n,!1);if(c){r.promise=h(function(e){var i=t.data(s);t.removeData(s);if(i){var n=p(t,i.classes);if(n){f.$$setClassImmediately(t,n[0],n[1],i.options)}};e()});t.data(s,r)};return r.promise},$$setClassImmediately:function(t,e,n,i){e&&this.$$addClassImmediately(t,e);n&&this.$$removeClassImmediately(t,n);s(t,i);return r()},enabled:l,cancel:l}}]}];function ao(){this.$get=["$$rAF","$timeout",function(t,e){return t.supported?function(e){return t(e)}:function(t){return e(t,0,!1)}}]};function lo(t,e,r,a){var c=this,v=e[0],d=t.location,y=t.history,P=t.setTimeout,H=t.clearTimeout,b={};c.isMock=!1;var m=0,k=[];c.$$completeOutstandingRequest=E;c.$$incOutstandingRequestCount=function(){m++};function E(t){try{t.apply(null,de(arguments,1))}finally{m--;if(m===0){while(k.length){try{k.pop()()}catch(e){r.error(e)}}}}};function F(t){var e=t.indexOf("#");return e===-1?"":t.substr(e+1)};c.notifyWhenNoOutstandingRequests=function(t){i(C,function(t){t()});if(m===0){t()}
else{k.push(t)}};var C=[],D;c.addPollFn=function(t){if(s(D))q(100,P);C.push(t);return t};function q(t,e){(function n(){i(C,function(t){t()});D=e(n,t)})()};var u,h,p=d.href,L=e.find("base"),N=null;S();h=u;c.url=function(e,n,i){if(s(i)){i=null};if(d!==t.location)d=t.location;if(y!==t.history)y=t.history;if(e){var o=h===i;if(p===e&&(!a.history||o)){return c};var r=p&&G(p)===G(e);p=e;h=i;if(a.history&&(!r||!o)){y[n?"replaceState":"pushState"](i,"",e);S();h=u}
else{if(!r){N=e};if(n){d.replace(e)}
else if(!r){d.href=e}
else{d.hash=F(e)}};return c}
else{return N||d.href.replace(/%27/g,"'")}};c.state=function(){return u};var A=[],I=!1;function j(){S();M()};function B(){try{return y.state}catch(t){}};var x=null;function S(){u=B();u=s(u)?null:u;if(O(u,x)){u=x};x=u};function M(){if(p===c.url()&&h===u){return};p=c.url();h=u;i(A,function(t){t(c.url(),u)})};c.onUrlChange=function(e){if(!I){if(a.history)o(t).on("popstate",j);o(t).on("hashchange",j);I=!0};A.push(e);return e};c.$$checkUrlChange=M;c.baseHref=function(){var t=L.attr("href");return t?t.replace(/^(https?\:)?\/\/[^\/]*/,""):""};var g={};var w="",T=c.baseHref();function R(t){try{return decodeURIComponent(t)}catch(e){return t}};c.cookies=function(t,e){var a,l,i,o,s;if(t){if(e===n){v.cookie=encodeURIComponent(t)+"=;path="+T+";expires=Thu, 01 Jan 1970 00:00:00 GMT"}
else{if(f(e)){a=(v.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+";path="+T).length+1;if(a>4096){r.warn("Cookie '"+t+"' possibly not set or overflowed because it was too large ("+a+" > 4096 bytes)!")}}}}
else{if(v.cookie!==w){w=v.cookie;l=w.split("; ");g={};for(o=0;o<l.length;o++){i=l[o];s=i.indexOf("=");if(s>0){t=R(i.substring(0,s));if(g[t]===n){g[t]=R(i.substring(s+1))}}}};return g}};c.defer=function(t,e){var n;m++;n=P(function(){delete b[n];E(t)},e||0);b[n]=!0;return n};c.defer.cancel=function(t){if(b[t]){delete b[t];H(t);E(l);return!0};return!1}};function co(){this.$get=["$window","$log","$sniffer","$document",function(t,e,n,i){return new lo(t,i,e,n)}]};function uo(){this.$get=function(){var t={};function e(e,n){if(e in t){throw p("$cacheFactory")("iid","CacheId '{0}' is already taken!",e)};var l=0,f=d({},n,{id:e}),a={},c=(n&&n.capacity)||Number.MAX_VALUE,r={},o=null,i=null;return t[e]={put:function(t,e){if(c<Number.MAX_VALUE){var n=r[t]||(r[t]={key:t});h(n)};if(s(e))return;if(!(t in a))l++;a[t]=e;if(l>c){this.remove(i.key)};return e},get:function(t){if(c<Number.MAX_VALUE){var e=r[t];if(!e)return;h(e)};return a[t]},remove:function(t){if(c<Number.MAX_VALUE){var e=r[t];if(!e)return;if(e==o)o=e.p;if(e==i)i=e.n;u(e.n,e.p);delete r[t]};delete a[t];l--},removeAll:function(){a={};l=0;r={};o=i=null},destroy:function(){a=null;f=null;r=null;delete t[e]},info:function(){return d({},f,{size:l})}};function h(t){if(t!=o){if(!i){i=t}
else if(i==t){i=t.n};u(t.n,t.p);u(t,o);o=t;o.n=null}};function u(t,e){if(t!=e){if(t)t.p=e;if(e)e.n=t}}};e.info=function(){var e={};i(t,function(t,n){e[n]=t.info()});return e};e.get=function(e){return t[e]};return e}};function fo(){this.$get=["$cacheFactory",function(t){return t("templates")}]};var C=p("$compile");On.$inject=["$provide","$$sanitizeUriProvider"];function On(t,s){var g={},v="Directive",b=/^\s*directive\:\s*([\w\-]+)\s+(.*)$/,w=/(([\w\-]+)(?:\:([^;]+))?;?)/,x=Wr("ngSrc,ngSrcset,src,srcset"),E=/^(?:(\^\^?)?(\?)?(\^\^?)?)?/;var y=/^(on[a-z]+|formaction)$/;function S(t,e){var r=/^\s*([@&]|=(\*?))(\??)\s*(\w*)\s*$/,n={};i(t,function(t,i){var o=t.match(r);if(!o){throw C("iscp","Invalid isolate scope definition for directive '{0}'. Definition: {... {1}: '{2}' ...}",e,i,t)};n[i]={mode:o[1][0],collection:o[2]==="*",optional:o[3]==="?",attrName:o[4]||i}});return n};function T(t){var e=t.charAt(0);if(!e||e!==h(e)){throw C("baddir","Directive name '{0}' is invalid. The first character must be a lowercase letter",t)};return t};this.directive=function I(e,n){nt(e,"directive");if(f(e)){T(e);pe(n,"directiveFactory");if(!g.hasOwnProperty(e)){g[e]=[];t.factory(e+v,["$injector","$exceptionHandler",function(t,n){var r=[];i(g[e],function(i,o){try{var a=t.invoke(i);if(u(a)){a={compile:k(a)}}
else if(!a.compile&&a.link){a.compile=k(a.link)};a.priority=a.priority||0;a.index=o;a.name=a.name||e;a.require=a.require||(a.controller&&a.name);a.restrict=a.restrict||"EA";if(c(a.scope)){a.$$isolateBindings=S(a.scope,a.name)};r.push(a)}catch(s){n(s)}});return r}])};g[e].push(n)}
else{i(e,un(I))};return this};this.aHrefSanitizationWhitelist=function(t){if(r(t)){s.aHrefSanitizationWhitelist(t);return this}
else{return s.aHrefSanitizationWhitelist()}};this.imgSrcSanitizationWhitelist=function(t){if(r(t)){s.imgSrcSanitizationWhitelist(t);return this}
else{return s.imgSrcSanitizationWhitelist()}};var p=!0;this.debugInfoEnabled=function(t){if(r(t)){p=t;return this};return p};this.$get=["$injector","$interpolate","$exceptionHandler","$templateRequest","$parse","$controller","$rootScope","$document","$sce","$animate","$$sanitizeUri",function(t,r,s,k,S,T,D,M,q,B,K){var G=function(t,e){if(e){var r=Object.keys(e),n,o,i;for(n=0,o=r.length;n<o;n++){i=r[n];this[i]=e[i]}}
else{this.$attr={}};this.$$element=t};G.prototype={$normalize:F,$addClass:function(t){if(t&&t.length>0){B.addClass(this.$$element,t)}},$removeClass:function(t){if(t&&t.length>0){B.removeClass(this.$$element,t)}},$updateClass:function(t,e){var i=Nn(t,e);if(i&&i.length){B.addClass(this.$$element,i)};var n=Nn(e,t);if(n&&n.length){B.removeClass(this.$$element,n)}},$set:function(t,e,r,o){var v=this.$$element[0],y=In(v,t),d=eo(v,t),b=t,u;if(y){this.$$element.prop(t,e);o=y}
else if(d){this[d]=e;b=d};this[t]=e;if(o){this.$attr[t]=o}
else{o=this.$attr[t];if(!o){this.$attr[t]=o=bn(t,"-")}};u=L(this.$$element);if((u==="a"&&t==="href")||(u==="img"&&t==="src")){this[t]=e=K(e,t==="src")}
else if(u==="img"&&t==="srcset"){var a="",g=m(e),w=/(\s+\d+x\s*,|\s+\d+w\s*,|\s+,|,\s+)/,x=/\s/.test(g)?w:/(,)/,c=g.split(x),C=Math.floor(c.length/2);for(var l=0;l<C;l++){var p=l*2;a+=K(m(c[p]),!0);a+=(" "+m(c[p+1]))};var f=m(c[l*2]).split(/\s/);a+=K(m(f[0]),!0);if(f.length===2){a+=(" "+m(f[1]))};this[t]=e=a};if(r!==!1){if(e===null||e===n){this.$$element.removeAttr(o)}
else{this.$$element.attr(o,e)}};var h=this.$$observers;h&&i(h[b],function(t){try{t(e)}catch(n){s(n)}})},$observe:function(t,e){var n=this,r=(n.$$observers||(n.$$observers=N())),i=(r[t]||(r[t]=[]));i.push(e);D.$evalAsync(function(){if(!i.$$inter&&n.hasOwnProperty(t)){e(n[t])}});return function(){bt(i,e)}}};function W(t,e){try{t.addClass(e)}catch(n){}};var J=r.startSymbol(),tt=r.endSymbol(),et=(J=="{{"||tt=="}}")?j:function(t){return t.replace(/\{\{/g,J).replace(/}}/g,tt)},ct=/^ngAttr[A-Z]/;I.$$addBindingInfo=p?function(t,e){var n=t.data("$binding")||[];if(a(e)){n=n.concat(e)}
else{n.push(e)};t.data("$binding",n)}:l;I.$$addBindingClass=p?function(t){W(t,"ng-binding")}:l;I.$$addScopeInfo=p?function(t,e,n,i){var r=n?(i?"$isolateScopeNoTemplate":"$isolateScope"):"$scope";t.data(r,e)}:l;I.$$addScopeClass=p?function(t,e){W(t,e?"ng-isolate-scope":"ng-scope")}:l;return I;function I(t,e,n,r,s){if(!(t instanceof o)){t=o(t)};i(t,function(e,n){if(e.nodeType==ut&&e.nodeValue.match(/\S+/)){t[n]=o(e).wrap("<span></span>").parent()[0]}});var l=X(t,e,t,n,r,s);I.$$addScopeClass(t);var a=null;return function(e,n,i){pe(e,"scope");i=i||{};var s=i.parentBoundTranscludeFn,c=i.transcludeControllers,f=i.futureParentElement;if(s&&s.$$boundTransclude){s=s.$$boundTransclude};if(!a){a=ft(f)};var r;if(a!=="html"){r=o(Q(a,o("<div>").append(t).html()))}
else if(n){r=Z.clone.call(t)}
else{r=t};if(c){for(var u in c){r.data("$"+u+"Controller",c[u].instance)}};I.$$addScopeInfo(r,e);if(n)n(r,e);if(l)l(e,r,r,s);return r}};function ft(t){var e=t&&t[0];if(!e){return"html"}
else{return L(e)!=="foreignobject"&&e.toString().match(/SVG/)?"svg":"html"}};function X(t,e,i,r,s,a){var u=[],f,d,l,h,p,g,m;for(var c=0;c<t.length;c++){f=new G();d=Y(t[c],[],f,c===0?r:n,s);l=(d.length)?rt(d,t[c],f,e,i,null,[],[],a):null;if(l&&l.scope){I.$$addScopeClass(f.$$element)};p=(l&&l.terminal||!(h=t[c].childNodes)||!h.length)?null:X(h,l?((l.transcludeOnThisElement||!l.templateOnThisElement)&&l.transclude):e);if(l||p){u.push(c,l,p);g=!0;m=m||l};a=null};return g?v:null;function v(t,i,r,s){var l,f,d,h,a,v,g,c,p;if(m){var y=i.length;p=new Array(y);for(a=0;a<u.length;a+=3){g=u[a];p[g]=i[g]}}
else{p=i};for(a=0,v=u.length;a<v;){d=p[u[a++]];l=u[a++];f=u[a++];if(l){if(l.scope){h=t.$new();I.$$addScopeInfo(o(d),h)}
else{h=t};if(l.transcludeOnThisElement){c=V(t,l.transclude,s,l.elementTranscludeOnThisElement)}
else if(!l.templateOnThisElement&&s){c=s}
else if(!s&&e){c=V(t,e)}
else{c=null};l(f,h,d,r,c)}
else if(f){f(t,d.childNodes,n,s)}}}};function V(t,e,n,i){var r=function(i,r,o,s,a){if(!i){i=t.$new(!1,a);i.$$transcluded=!0};return e(i,r,{parentBoundTranscludeFn:n,transcludeControllers:o,futureParentElement:s})};return r};function Y(t,e,n,i,o){var S=t.nodeType,T=n.$attr,l,u;switch(S){case P:U(e,F(L(t)),"E",i,o);for(var h,a,s,d,p,g,v=t.attributes,y=0,E=v&&v.length;y<E;y++){var C=!1,k=!1;h=v[y];a=h.name;p=m(h.value);d=F(a);if(g=ct.test(d)){a=a.replace(Je,"").substr(8).replace(/_(.)/g,function(t,e){return e.toUpperCase()})};var x=d.replace(/(Start|End)$/,"");if(dt(x)){if(d===x+"Start"){C=a;k=a.substr(0,a.length-5)+"end";a=a.substr(0,a.length-6)}};s=F(a.toLowerCase());T[s]=a;if(g||!n.hasOwnProperty(s)){n[s]=p;if(In(t,s)){n[s]=!0}};yt(t,e,p,s,g);U(e,s,"A",i,o,C,k)};u=t.className;if(c(u)){u=u.animVal};if(f(u)&&u!==""){while(l=w.exec(u)){s=F(l[2]);if(U(e,s,"C",i,o)){n[s]=m(l[3])};u=u.substr(l.index+l[0].length)}};break;case ut:mt(e,t.nodeValue);break;case ae:try{l=b.exec(t.nodeValue);if(l){s=F(l[1]);if(U(e,s,"M",i,o)){n[s]=m(l[2])}}}catch(r){};break};e.sort(pt);return e};function nt(t,e,n){var i=[],r=0;if(e&&t.hasAttribute&&t.hasAttribute(e)){do{if(!t){throw C("uterdir","Unterminated attribute, found '{0}' but no matching '{1}' found.",e,n)};if(t.nodeType==P){if(t.hasAttribute(e))r++;if(t.hasAttribute(n))r--};i.push(t);t=t.nextSibling}
while(r>0);}
else{i.push(t)};return o(i)};function it(t,e,n){return function(i,r,o,s,a){r=nt(r[0],e,n);return t(i,r,o,s,a)}};function rt(t,l,d,h,g,y,x,A,N){N=N||{};var U=-Number.MAX_VALUE,K,q=N.controllerDirectives,B,b=N.newIsolateScopeDirective,M=N.templateDirective,J=N.nonTlbTranscludeDirective,ut=!1,ft=!1,W=N.hasElementTranscludeDirective,w=d.$$element=o(l),v,j,D,tt=y,X=h,V,k;for(var F=0,ct=t.length;F<ct;F++){v=t[F];var Z=v.$$start,rt=v.$$end;if(Z){w=nt(l,Z,rt)};D=n;if(U>v.priority){break};if(k=v.scope){if(!v.templateUrl){if(c(k)){R("new/isolated scope",b||K,v,w);b=v}
else{R("new/isolated scope",b,v,w)}};K=K||v};j=v.name;if(!v.templateUrl&&v.controller){k=v.controller;q=q||{};R("'"+j+"' controller",q[j],v,w);q[j]=v};if(k=v.transclude){ut=!0;if(!v.$$tlb){R("transclusion",J,v,w);J=v};if(k=="element"){W=!0;U=v.priority;D=w;w=d.$$element=o(e.createComment(" "+j+": "+d[j]+" "));l=w[0];z(g,de(D),l);X=I(D,h,U,tt&&tt.name,{nonTlbTranscludeDirective:J})}
else{D=o(ge(l)).contents();w.empty();X=I(D,h)}};if(v.template){ft=!0;R("template",M,v,w);M=v;k=(u(v.template))?v.template(w,d):v.template;k=et(k);if(v.replace){tt=v;if(me(k)){D=[]}
else{D=Dn(Q(v.templateNamespace,m(k)))};l=D[0];if(D.length!=1||l.nodeType!==P){throw C("tplrt","Template for directive '{0}' must have exactly one root element. {1}",j,"")};z(g,w,l);var mt={$attr:{}};var pt=Y(l,[],mt),yt=t.splice(F+1,t.length-(F+1));if(b){ot(pt)};t=t.concat(pt).concat(yt);st(d,mt);ct=t.length}
else{w.html(k)}};if(v.templateUrl){ft=!0;R("template",M,v,w);M=v;if(v.replace){tt=v};L=ht(t.splice(F,t.length-F),w,d,g,ut&&X,x,A,{controllerDirectives:q,newIsolateScopeDirective:b,templateDirective:M,nonTlbTranscludeDirective:J});ct=t.length}
else if(v.compile){try{V=v.compile(w,d,X);if(u(V)){gt(null,V,Z,rt)}
else if(V){gt(V.pre,V.post,Z,rt)}}catch(p){s(p,H(w))}};if(v.terminal){L.terminal=!0;U=Math.max(U,v.priority)}};L.scope=K&&K.scope===!0;L.transcludeOnThisElement=ut;L.elementTranscludeOnThisElement=W;L.templateOnThisElement=ft;L.transclude=X;N.hasElementTranscludeDirective=W;return L;function gt(t,e,n,i){if(t){if(n)t=it(t,n,i);t.require=v.require;t.directiveName=j;if(b===v||v.$$isolateScope){t=at(t,{isolateScope:!0})};x.push(t)};if(e){if(n)e=it(e,n,i);e.require=v.require;e.directiveName=j;if(b===v||v.$$isolateScope){e=at(e,{isolateScope:!0})};A.push(e)}};function dt(t,e,n,r){var o,l="data",c=!1,u=n,s;if(f(e)){s=e.match(E);e=e.substring(s[0].length);if(s[3]){if(s[1])s[3]=null;else s[1]=s[3]};if(s[1]==="^"){l="inheritedData"}
else if(s[1]==="^^"){l="inheritedData";u=n.parent()};if(s[2]==="?"){c=!0};o=null;if(r&&l==="data"){if(o=r[e]){o=o.instance}};o=o||u[l]("$"+e+"Controller");if(!o&&!c){throw C("ctreq","Controller '{0}', required by directive '{1}', can't be found!",e,t)};return o||null}
else if(a(e)){o=[];i(e,function(e){o.push(dt(t,e,n,r))})};return o};function L(t,e,s,a,c){var g,N,h,w,m,v,y,f,u;if(l===s){u=d;f=d.$$element}
else{f=o(s);u=new G(f,d)};if(b){m=e.$new(!0)};if(c){y=D;y.$$boundTransclude=c};if(q){B={};v={};i(q,function(t){var i={$scope:t===b||t.$$isolateScope?m:e,$element:f,$attrs:u,$transclude:y},n;w=t.controller;if(w=="@"){w=u[t.name]};n=T(w,i,!0,t.controllerAs);v[t.name]=n;if(!W){f.data("$"+t.name+"Controller",n.instance)};B[t.name]=n})};if(b){I.$$addScopeInfo(f,m,!0,!(M&&(M===b||M===b.$$originalDirective)));I.$$addScopeClass(f,!0);var E=B&&B[b.name],p=m;if(E&&E.identifier&&b.bindToController===!0){p=E.instance};i(m.$$isolateBindings=b.$$isolateBindings,function(t,n){var i=t.attrName,d=t.optional,h=t.mode,s,o,f,a;switch(h){case"@":u.$observe(i,function(t){p[n]=t});u.$$observers[i].$$scope=e;if(u[i]){p[n]=r(u[i])(e)};break;case"=":if(d&&!u[i]){return};o=S(u[i]);if(o.literal){a=O}
else{a=function(t,e){return t===e||(t!==t&&e!==e)}};f=o.assign||function(){s=p[n]=o(e);throw C("nonassign","Expression '{0}' used with directive '{1}' is non-assignable!",u[i],b.name)};s=p[n]=o(e);var c=function(t){if(!a(t,p[n])){if(!a(t,s)){p[n]=t}
else{f(e,t=p[n])}};return s=t};c.$stateful=!0;var l;if(t.collection){l=e.$watchCollection(u[i],c)}
else{l=e.$watch(S(u[i],c),null,o.literal)};m.$on("$destroy",l);break;case"&":o=S(u[i]);p[n]=function(t){return o(e,t)};break}})};if(B){i(B,function(t){t()});B=null};for(g=0,N=x.length;g<N;g++){h=x[g];lt(h,h.isolateScope?m:e,f,u,h.require&&dt(h.directiveName,h.require,f,v),y)};var k=e;if(b&&(b.template||b.templateUrl===null)){k=m};t&&t(k,s.childNodes,n,c);for(g=A.length-1;g>=0;g--){h=A[g];lt(h,h.isolateScope?m:e,f,u,h.require&&dt(h.directiveName,h.require,f,v),y)};function D(t,e,i){var r;if(!vt(t)){i=e;e=t;t=n};if(W){r=v};if(!i){i=W?f.parent():f};return c(t,e,r,i,k)}}};function ot(t){for(var e=0,n=t.length;e<n;e++){t[e]=fe(t[e],{$$isolateScope:!0})}};function U(e,i,r,o,l,c,u){if(i===l)return null;var p=null;if(g.hasOwnProperty(i)){for(var f,h=t.get(i+v),d=0,m=h.length;d<m;d++){try{f=h[d];if((o===n||o>f.priority)&&f.restrict.indexOf(r)!=-1){if(c){f=fe(f,{$$start:c,$$end:u})};e.push(f);p=f}}catch(a){s(a)}}};return p};function dt(e){if(g.hasOwnProperty(e)){for(var i,r=t.get(e+v),n=0,o=r.length;n<o;n++){i=r[n];if(i.multiElement){return!0}}};return!1};function st(t,e){var r=e.$attr,o=t.$attr,n=t.$$element;i(t,function(n,i){if(i.charAt(0)!="$"){if(e[i]&&e[i]!==n){n+=(i==="style"?";":" ")+e[i]};t.$set(i,n,!0,r[i])}});i(e,function(e,i){if(i=="class"){W(n,e);t["class"]=(t["class"]?t["class"]+" ":"")+e}
else if(i=="style"){n.attr("style",n.attr("style")+";"+e);t["style"]=(t["style"]?t["style"]+";":"")+e}
else if(i.charAt(0)!="$"&&!t.hasOwnProperty(i)){t[i]=e;o[i]=r[i]}})};function ht(t,e,n,r,s,a,l,d){var h=[],p,g,v=e[0],f=t.shift(),b=fe(f,{templateUrl:null,transclude:null,replace:null,$$originalDirective:f}),y=(u(f.templateUrl))?f.templateUrl(e,n):f.templateUrl,w=f.templateNamespace;e.empty();k(q.getTrustedResourceUrl(y)).then(function(u){var x,A,E,I;u=et(u);if(f.replace){if(me(u)){E=[]}
else{E=Dn(Q(w,m(u)))};x=E[0];if(E.length!=1||x.nodeType!==P){throw C("tplrt","Template for directive '{0}' must have exactly one root element. {1}",f.name,y)};A={$attr:{}};z(r,e,x);var N=Y(x,[],A);if(c(f.scope)){ot(N)};t=N.concat(t);st(n,A)}
else{x=v;e.html(u)};t.unshift(b);p=rt(t,x,n,s,e,f,a,l,d);i(r,function(t,n){if(t==x){r[n]=e[0]}});g=X(e[0].childNodes,s);while(h.length){var S=h.shift(),T=h.shift(),j=h.shift(),O=h.shift(),k=e[0];if(S.$$destroyed)continue;if(T!==v){var D=T.className;if(!(d.hasElementTranscludeDirective&&f.replace)){k=ge(x)};z(j,o(T),k);W(o(k),D)};if(p.transcludeOnThisElement){I=V(S,p.transclude,O)}
else{I=O};p(g,S,k,r,I)};h=null});return function(t,e,n,i,r){var o=r;if(e.$$destroyed)return;if(h){h.push(e,n,i,o)}
else{if(p.transcludeOnThisElement){o=V(e,p.transclude,r)};p(g,e,n,i,o)}}};function pt(t,e){var n=e.priority-t.priority;if(n!==0)return n;if(t.name!==e.name)return(t.name<e.name)?-1:1;return t.index-e.index};function R(t,e,n,i){if(e){throw C("multidir","Multiple directives [{0}, {1}] asking for {2} on: {3}",e.name,n.name,t,H(i))}};function mt(t,e){var n=r(e,!0);if(n){t.push({priority:0,compile:function(t){var e=t.parent(),i=!!e.length;if(i)I.$$addBindingClass(e);return function(t,e){var r=e.parent();if(!i)I.$$addBindingClass(r);I.$$addBindingInfo(r,n.expressions);t.$watch(n,function(t){e[0].nodeValue=t})}}})}};function Q(t,n){t=h(t||"html");switch(t){case"svg":case"math":var i=e.createElement("div");i.innerHTML="<"+t+">"+n+"</"+t+">";return i.childNodes[0].childNodes;default:return n}};function gt(t,e){if(e=="srcdoc"){return q.HTML};var n=L(t);if(e=="xlinkHref"||(n=="form"&&e=="action")||(n!="img"&&(e=="src"||e=="ngSrc"))){return q.RESOURCE_URL}};function yt(t,e,n,i,o){var a=gt(t,i);o=x[i]||o;var s=r(n,!0,a,o);if(!s)return;if(i==="multiple"&&L(t)==="select"){throw C("selmulti","Binding to the 'multiple' attribute is not supported. Element: {0}",H(t))};e.push({priority:100,compile:function(){return{pre:function(t,e,l){var u=(l.$$observers||(l.$$observers={}));if(y.test(i)){throw C("nodomevents","Interpolations for HTML DOM event attributes are disallowed.  Please use the ng- versions (such as ng-click instead of onclick) instead.")};var c=l[i];if(c!==n){s=c&&r(c,!0,a,o);n=c};if(!s)return;l[i]=s(t);(u[i]||(u[i]=[])).$$inter=!0;(l.$$observers&&l.$$observers[i].$$scope||t).$watch(s,function(t,e){if(i==="class"&&t!=e){l.$updateClass(t,e)}
else{l.$set(i,t)}})}}}})};function z(t,n,i){var r=n[0],h=n.length,p=r.parentNode,s,m;if(t){for(s=0,m=t.length;s<m;s++){if(t[s]==r){t[s++]=i;for(var a=s,c=a+h-1,d=t.length;a<d;a++,c++){if(c<d){t[a]=t[c]}
else{delete t[a]}};t.length-=h-1;if(t.context===r){t.context=i};break}}};if(p){p.replaceChild(i,r)};var f=e.createDocumentFragment();f.appendChild(r);o(i).data(o(r).data());if(!A){delete o.cache[r[o.expando]]}
else{ce=!0;A.cleanData([r])};for(var l=1,g=n.length;l<g;l++){var u=n[l];o(u).remove();f.appendChild(u);delete n[l]};n[0]=i;n.length=1};function at(t,e){return d(function(){return t.apply(null,arguments)},t,e)};function lt(t,e,n,i,o,a){try{t(e,n,i,o,a)}catch(r){s(r,H(n))}}}]};var Je=/^((?:x|data)[\:\-_])/i;function F(t){return Ct(t.replace(Je,""))};function cs(t,e,n,i){};function us(t,e,n,i,r){};function Nn(t,e){var r="",s=t.split(/\s+/),a=e.split(/\s+/);outer:for(var i=0;i<s.length;i++){var o=s[i];for(var n=0;n<a.length;n++){if(o==a[n])continue;outer};r+=(r.length>0?" ":"")+o};return r};function Dn(t){t=o(t);var e=t.length;if(e<=1){return t}
while(e--){var n=t[e];if(n.nodeType===ae){Nr.call(t,e,1)}};return t};var pr=p("$controller");function ho(){var t={},e=!1,i=/^(\S+)(\s+as\s+(\w+))?$/;this.register=function(e,n){nt(e,"controller");if(c(e)){d(t,e)}
else{t[e]=n}};this.allowGlobals=function(){e=!0};this.$get=["$injector","$window",function(r,o){return function(l,c,u,h){var m,v,p,g;u=u===!0;if(h&&f(h)){g=h};if(f(l)){v=l.match(i);if(!v){throw pr("ctrlfmt","Badly formed controller string '{0}'. Must match `__name__ as __id__` or `__name__`.",l)};p=v[1],g=g||v[3];l=t.hasOwnProperty(p)?t[p]:wn(c.$scope,p,!0)||(e?wn(o,p,!0):n);et(l,p,!0)};if(u){var y=(a(l)?l[l.length-1]:l).prototype;m=Object.create(y||null);if(g){s(c,g,m,p||l.name)};return d(function(){r.invoke(l,m,c,p);return m},{instance:m,identifier:g})};m=r.instantiate(l,c,p);if(g){s(c,g,m,p||l.name)};return m};function s(t,e,n,i){if(!(t&&c(t.$scope))){throw p("$controller")("noscp","Cannot export controller '{0}' as '{1}'! No $scope object provided via `locals`.",i,e)};t.$scope[e]=n}}]};function po(){this.$get=["$window",function(t){return o(t.document)}]};function mo(){this.$get=["$log",function(t){return function(e,n){t.error.apply(t,arguments)}}]};var Ze="application/json",oe={"Content-Type":Ze+";charset=utf-8"};var dr=/^\[|^\{(?!\{)/,hr={"[":/]$/,"{":/}$/};var fr=/^\)\]\}',?\n/;function be(t,e){if(f(t)){var n=t.replace(fr,"").trim();if(n){var i=e("Content-Type");if((i&&(i.indexOf(Ze)===0))||go(n)){t=mn(n)}}};return t};function go(t){var e=t.match(dr);return e&&hr[e[0]].test(t)};function Pn(t){var e=N(),n,r,o;if(!t)return e;i(t.split("\n"),function(t){o=t.indexOf(":");n=h(m(t.substr(0,o)));r=m(t.substr(o+1));if(n){e[n]=e[n]?e[n]+", "+r:r}});return e};function jn(t){var e=c(t)?t:n;return function(n){if(!e)e=Pn(t);if(n){var i=e[h(n)];if(i===void 0){i=null};return i};return e}};function Mn(t,e,n,r){if(u(r))return r(t,e,n);i(r,function(i){t=i(t,e,n)});return t};function we(t){return 200<=t&&t<300};function vo(){var t=this.defaults={transformResponse:[be],transformRequest:[function(t){return c(t)&&!Fr(t)&&!Br(t)&&!qr(t)?xt(t):t}],headers:{common:{"Accept":"application/json, text/plain, */*"},post:M(oe),put:M(oe),patch:M(oe)},xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN"};var e=!1;this.useApplyAsync=function(t){if(r(t)){e=!!t;return this};return e};var o=this.interceptors=[];this.$get=["$httpBackend","$browser","$cacheFactory","$rootScope","$q","$injector",function(l,m,g,v,y,b){var k=g("$http"),C=[];i(o,function(t){C.unshift(f(t)?b.get(t):b.invoke(t))});function w(e){if(!x.isObject(e)){throw p("$http")("badreq","Http request configuration must be an object.  Received: {0}",e)};var o=d({method:"get",transformRequest:t.transformRequest,transformResponse:t.transformResponse},e);o.headers=v(e);o.method=ht(o.method);var m=function(e){var r=e.headers,o=Mn(e.data,jn(r),n,e.transformRequest);if(s(o)){i(r,function(t,e){if(h(e)==="content-type"){delete r[e]}})};if(s(e.withCredentials)&&!s(t.withCredentials)){e.withCredentials=t.withCredentials};return T(e,o).then(l,l)},a=[m,n],r=y.when(o);i(C,function(t){if(t.request||t.requestError){a.unshift(t.request,t.requestError)};if(t.response||t.responseError){a.push(t.response,t.responseError)}});while(a.length){var c=a.shift(),f=a.shift();r=r.then(c,f)};r.success=function(t){et(t,"fn");r.then(function(e){t(e.data,e.status,e.headers,o)});return r};r.error=function(t){et(t,"fn");r.then(null,function(e){t(e.data,e.status,e.headers,o)});return r};return r;function l(t){var e=d({},t);if(!t.data){e.data=t.data}
else{e.data=Mn(t.data,t.headers,t.status,o.transformResponse)};return(we(t.status))?e:y.reject(e)};function g(t){var e,n={};i(t,function(t,i){if(u(t)){e=t();if(e!=null){n[i]=e}}
else{n[i]=t}});return n};function v(e){var n=t.headers,r=d({},e.headers),i,o,s;n=d({},n.common,n[h(e.method)]);defaultHeadersIteration:for(i in n){o=h(i);for(s in r){if(h(s)===o){continue;defaultHeadersIteration}};r[i]=n[i]};return g(r)}};w.pendingRequests=[];E("get","delete","head","jsonp");S("post","put","patch");w.defaults=t;return w;function E(t){i(arguments,function(t){w[t]=function(e,n){return w(d(n||{},{method:t,url:e}))}})};function S(t){i(arguments,function(t){w[t]=function(e,n,i){return w(d(i||{},{method:t,url:e,data:n}))}})};function T(i,o){var p=y.defer(),g=p.promise,f,u,x=i.headers,d=A(i.url,i.params);w.pendingRequests.push(i);g.then(E,E);if((i.cache||t.cache)&&i.cache!==!1&&(i.method==="GET"||i.method==="JSONP")){f=c(i.cache)?i.cache:c(t.cache)?t.cache:k};if(f){u=f.get(d);if(r(u)){if(Ft(u)){u.then(C,C)}
else{if(a(u)){h(u[1],u[0],M(u[2]),u[3])}
else{h(u,200,{},"OK")}}}
else{f.put(d,g)}};if(s(u)){var b=Vn(i.url)?m.cookies()[i.xsrfCookieName||t.xsrfCookieName]:n;if(b){x[(i.xsrfHeaderName||t.xsrfHeaderName)]=b};l(i.method,d,o,S,x,i.timeout,i.withCredentials,i.responseType)};return g;function S(t,n,i,r){if(f){if(we(t)){f.put(d,[t,n,Pn(i),r])}
else{f.remove(d)}};function o(){h(n,t,i,r)};if(e){v.$applyAsync(o)}
else{o();if(!v.$$phase)v.$apply()}};function h(t,e,n,r){e=Math.max(e,0);(we(e)?p.resolve:p.reject)({data:t,status:e,headers:jn(n),config:i,statusText:r})};function C(t){h(t.data,t.status,M(t.headers()),t.statusText)};function E(){var t=w.pendingRequests.indexOf(i);if(t!==-1)w.pendingRequests.splice(t,1)}};function A(t,e){if(!e)return t;var n=[];Hr(e,function(t,e){if(t===null||s(t))return;if(!a(t))t=[t];i(t,function(t){if(c(t)){if(I(t)){t=t.toISOString()}
else{t=xt(t)}};n.push(K(e)+"="+K(t))})});if(n.length>0){t+=((t.indexOf("?")==-1)?"?":"&")+n.join("&")};return t}}]};function yo(){return new t.XMLHttpRequest()};function bo(){this.$get=["$browser","$window","$document",function(t,e,n){return wo(t,yo,t.defer,e.angular.callbacks,n[0])}]};function wo(t,e,o,s,a){return function(a,u,f,d,m,g,y,b){t.$$incOutstandingRequestCount();u=u||t.url();if(h(a)=="jsonp"){var w="_"+(s.counter++).toString(36);s[w]=function(t){s[w].data=t;s[w].called=!0};var x=c(u.replace("JSON_CALLBACK","angular.callbacks."+w),w,function(t,e){C(d,t,s[w].data,"",e);s[w]=l})}
else{var v=e();v.open(a,u,!0);i(m,function(t,e){if(r(t)){v.setRequestHeader(e,t)}});v.onload=function(){var n=v.statusText||"",e=("response" in v)?v.response:v.responseText,t=v.status===1223?204:v.status;if(t===0){t=e?200:W(u).protocol=="file"?404:0};C(d,t,e,v.getAllResponseHeaders(),n)};var E=function(){C(d,-1,null,null,"")};v.onerror=E;v.onabort=E;if(y){v.withCredentials=!0};if(b){try{v.responseType=b}catch(p){if(b!=="json"){throw p}}};v.send(f||null)};if(g>0){var k=o(S,g)}
else if(Ft(g)){g.then(S)};function S(){x&&x();v&&v.abort()};function C(e,i,r,s,a){if(k!==n){o.cancel(k)};x=v=null;e(i,r,s,a);t.$$completeOutstandingRequest(l)}};function c(t,e,n){var i=a.createElement("script"),r=null;i.type="text/javascript";i.src=t;i.async=!0;r=function(t){ct(i,"load",r);ct(i,"error",r);a.body.removeChild(i);i=null;var o=-1,l="unknown";if(t){if(t.type==="load"&&!s[e].called){t={type:"error"}};l=t.type;o=t.type==="error"?404:200};if(n){n(o,l)}};Rt(i,"load",r);Rt(i,"error",r);a.body.appendChild(i);return r}};var re=p("$interpolate");function xo(){var t="{{",e="}}";this.startSymbol=function(e){if(e){t=e;return this}
else{return t}};this.endSymbol=function(t){if(t){e=t;return this}
else{return e}};this.$get=["$parse","$exceptionHandler","$sce",function(n,i,o){var l=t.length,f=e.length,h=new RegExp(t.replace(/./g,c),"g"),p=new RegExp(e.replace(/./g,c),"g");function c(t){return"\\\\\\"+t};function a(a,c,m,g){g=!!g;var b,x,v=0,w=[],C=[],S=a.length,k,y=[],T=[];while(v<S){if(((b=a.indexOf(t,v))!=-1)&&((x=a.indexOf(e,b+l))!=-1)){if(v!==b){y.push(A(a.substring(v,b)))};k=a.substring(b+l,x);w.push(k);C.push(n(k,N));v=x+f;T.push(y.length);y.push("")}
else{if(v!==S){y.push(A(a.substring(v)))};break}};if(m&&y.length>1){throw re("noconcat","Error while interpolating: {0}\nStrict Contextual Escaping disallows interpolations that concatenate multiple expressions when a trusted value is required.  See http://docs.angularjs.org/api/ng.$sce",a)};if(!c||w.length){var E=function(t){for(var e=0,n=w.length;e<n;e++){if(g&&s(t[e]))return;y[T[e]]=t[e]};return y.join("")},I=function(t){return m?o.getTrusted(m,t):o.valueOf(t)},O=function(t){if(t==null){return""};switch(typeof t){case"string":break;case"number":t=""+t;break;default:t=xt(t)};return t};return d(function(t){var n=0,r=w.length,o=new Array(r);try{for(;n<r;n++){o[n]=C[n](t)};return E(o)}catch(e){var s=re("interr","Can't interpolate: {0}\n{1}",a,e.toString());i(s)}},{exp:a,expressions:w,$$watchDelegate:function(t,e,n){var i;return t.$watchGroup(C,function(n,r){var o=E(n);if(u(e)){e.call(this,o,n!==r?i:o,t)};i=o},n)}})};function A(n){return n.replace(h,t).replace(p,e)};function N(t){try{t=I(t);return g&&!r(t)?t:O(t)}catch(e){var n=re("interr","Can't interpolate: {0}\n{1}",a,e.toString());i(n)}}};a.startSymbol=function(){return t};a.endSymbol=function(){return e};return a}]};function Co(){this.$get=["$rootScope","$window","$q","$$q",function(t,e,n,i){var o={};function s(s,a,l,c){var p=e.setInterval,m=e.clearInterval,d=0,h=(r(c)&&!c),f=(h?i:n).defer(),u=f.promise;l=r(l)?l:0;u.then(null,null,s);u.$$intervalId=p(function(){f.notify(d++);if(l>0&&d>=l){f.resolve(d);m(u.$$intervalId);delete o[u.$$intervalId]};if(!h)t.$apply()},a);o[u.$$intervalId]=f;return u};s.cancel=function(t){if(t&&t.$$intervalId in o){o[t.$$intervalId].reject("canceled");e.clearInterval(t.$$intervalId);delete o[t.$$intervalId];return!0};return!1};return s}]};function ko(){this.$get=function(){return{id:"en-us",NUMBER_FORMATS:{DECIMAL_SEP:".",GROUP_SEP:",",PATTERNS:[{minInt:1,minFrac:0,maxFrac:3,posPre:"",posSuf:"",negPre:"-",negSuf:"",gSize:3,lgSize:3},{minInt:1,minFrac:2,maxFrac:2,posPre:"\u00A4",posSuf:"",negPre:"(\u00A4",negSuf:")",gSize:3,lgSize:3}],CURRENCY_SYM:"$"},DATETIME_FORMATS:{MONTH:"January,February,March,April,May,June,July,August,September,October,November,December".split(","),SHORTMONTH:"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec".split(","),DAY:"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday".split(","),SHORTDAY:"Sun,Mon,Tue,Wed,Thu,Fri,Sat".split(","),AMPMS:["AM","PM"],medium:"MMM d, y h:mm:ss a","short":"M/d/yy h:mm a",fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",mediumDate:"MMM d, y",shortDate:"M/d/yy",mediumTime:"h:mm:ss a",shortTime:"h:mm a",ERANAMES:["Before Christ","Anno Domini"],ERAS:["BC","AD"]},pluralCat:function(t){if(t===1){return"one"};return"other"}}}};var cr=/^([^\?#]*)(\?([^#]*))?(#(.*))?$/,ur={"http":80,"https":443,"ftp":21};var Pt=p("$location");function xe(t){var e=t.split("/"),n=e.length;while(n--){e[n]=qt(e[n])};return e.join("/")};function Rn(t,e){var n=W(t);e.$$protocol=n.protocol;e.$$host=n.hostname;e.$$port=int(n.port)||ur[n.protocol]||null};function Ln(t,e){var i=(t.charAt(0)!=="/");if(i){t="/"+t};var n=W(t);e.$$path=decodeURIComponent(i&&n.pathname.charAt(0)==="/"?n.pathname.substring(1):n.pathname);e.$$search=vn(n.search);e.$$hash=decodeURIComponent(n.hash);if(e.$$path&&e.$$path.charAt(0)!="/"){e.$$path="/"+e.$$path}};function q(t,e){if(e.indexOf(t)===0){return e.substr(t.length)}};function G(t){var e=t.indexOf("#");return e==-1?t:t.substr(0,e)};function Yt(t){return t.replace(/(#.+)|#$/,"$1")};function Ce(t){return t.substr(0,G(t).lastIndexOf("/")+1)};function Eo(t){return t.substring(0,t.indexOf("/",t.indexOf("//")+2))};function ke(t,e){this.$$html5=!0;e=e||"";var i=Ce(t);Rn(t,this);this.$$parse=function(t){var e=q(i,t);if(!f(e)){throw Pt("ipthprfx","Invalid url \"{0}\", missing path prefix \"{1}\".",t,i)};Ln(e,this);if(!this.$$path){this.$$path="/"};this.$$compose()};this.$$compose=function(){var t=he(this.$$search),e=this.$$hash?"#"+qt(this.$$hash):"";this.$$url=xe(this.$$path)+(t?"?"+t:"")+e;this.$$absUrl=i+this.$$url.substr(1)};this.$$parseLinkUrl=function(r,o){if(o&&o[0]==="#"){this.hash(o.slice(1));return!0};var s,l,a;if((s=q(t,r))!==n){l=s;if((s=q(e,s))!==n){a=i+(q("/",s)||s)}
else{a=t+l}}
else if((s=q(i,r))!==n){a=i+s}
else if(i==r+"/"){a=i};if(a){this.$$parse(a)};return!!a}};function Ee(t,e){var n=Ce(t);Rn(t,this);this.$$parse=function(i){var o=q(t,i)||q(n,i),r;if(o.charAt(0)==="#"){r=q(e,o);if(s(r)){r=o}}
else{r=this.$$html5?o:""};Ln(r,this);this.$$path=a(this.$$path,r,t);this.$$compose();function a(t,e,n){var r=/^\/[A-Z]:(\/.*)/,i;if(e.indexOf(n)===0){e=e.replace(n,"")};if(r.exec(e)){return t};i=r.exec(t);return i?i[1]:t}};this.$$compose=function(){var n=he(this.$$search),i=this.$$hash?"#"+qt(this.$$hash):"";this.$$url=xe(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+(this.$$url?e+this.$$url:"")};this.$$parseLinkUrl=function(e,n){if(G(t)==G(e)){this.$$parse(e);return!0};return!1}};function Hn(t,e){this.$$html5=!0;Ee.apply(this,arguments);var n=Ce(t);this.$$parseLinkUrl=function(i,r){if(r&&r[0]==="#"){this.hash(r.slice(1));return!0};var o,s;if(t==G(i)){o=i}
else if((s=q(n,i))){o=t+e+s}
else if(n===i+"/"){o=n};if(o){this.$$parse(o)};return!!o};this.$$compose=function(){var n=he(this.$$search),i=this.$$hash?"#"+qt(this.$$hash):"";this.$$url=xe(this.$$path)+(n?"?"+n:"")+i;this.$$absUrl=t+e+this.$$url}};var lr={$$html5:!1,$$replace:!1,absUrl:Qt("$$absUrl"),url:function(t){if(s(t))return this.$$url;var e=cr.exec(t);if(e[1]||t==="")this.path(decodeURIComponent(e[1]));if(e[2]||e[1]||t==="")this.search(e[3]||"");this.hash(e[5]||"");return this},protocol:Qt("$$protocol"),host:Qt("$$host"),port:Qt("$$port"),path:Fn("$$path",function(t){t=t!==null?t.toString():"";return t.charAt(0)=="/"?t:"/"+t}),search:function(t,e){switch(arguments.length){case 0:return this.$$search;case 1:if(f(t)||y(t)){t=t.toString();this.$$search=vn(t)}
else if(c(t)){t=z(t,{});i(t,function(e,n){if(e==null)delete t[n]});this.$$search=t}
else{throw Pt("isrcharg","The first argument of the `$location#search()` call must be a string or an object.")};break;default:if(s(e)||e===null){delete this.$$search[t]}
else{this.$$search[t]=e}};this.$$compose();return this},hash:Fn("$$hash",function(t){return t!==null?t.toString():""}),replace:function(){this.$$replace=!0;return this}};i([Hn,Ee,ke],function(t){t.prototype=Object.create(lr);t.prototype.state=function(e){if(!arguments.length)return this.$$state;if(t!==ke||!this.$$html5){throw Pt("nostate","History API state support is available only in HTML5 mode and only in browsers supporting HTML5 History API")};this.$$state=s(e)?null:e;return this}});function Qt(t){return function(){return this[t]}};function Fn(t,e){return function(n){if(s(n))return this[t];this[t]=e(n);this.$$compose();return this}};function So(){var e="",t={enabled:!1,requireBase:!0,rewriteLinks:!0};this.hashPrefix=function(t){if(r(t)){e=t;return this}
else{return e}};this.html5Mode=function(e){if(yt(e)){t.enabled=e;return this}
else if(c(e)){if(yt(e.enabled)){t.enabled=e.enabled};if(yt(e.requireBase)){t.requireBase=e.requireBase};if(yt(e.rewriteLinks)){t.rewriteLinks=e.rewriteLinks};return this}
else{return t}};this.$get=["$rootScope","$browser","$sniffer","$rootElement","$window",function(n,i,r,s,a){var l,d,p=i.baseHref(),u=i.url(),h;if(t.enabled){if(!p&&t.requireBase){throw Pt("nobase","$location in HTML5 mode requires a <base> tag to be present!")};h=Eo(u)+(p||"/");d=r.history?ke:Hn}
else{h=G(u);d=Ee};l=new d(h,"#"+e);l.$$parseLinkUrl(u,u);l.$$state=i.state();var v=/^\s*(javascript|mailto):/i;function m(t,e,n){var o=l.url(),s=l.$$state;try{i.url(t,e,n);l.$$state=i.state()}catch(r){l.url(o);l.$$state=s;throw r}};s.on("click",function(e){if(!t.rewriteLinks||e.ctrlKey||e.metaKey||e.shiftKey||e.which==2||e.button==2)return;var r=o(e.target);while(L(r[0])!=="a"){if(r[0]===s[0]||!(r=r.parent())[0])return};var u=r.prop("href"),f=r.attr("href")||r.attr("xlink:href");if(c(u)&&u.toString()==="[object SVGAnimatedString]"){u=W(u.animVal).href};if(v.test(u))return;if(u&&!r.attr("target")&&!e.isDefaultPrevented()){if(l.$$parseLinkUrl(u,f)){e.preventDefault();if(l.absUrl()!=i.url()){n.$apply();a.angular["ff-684208-preventDefault"]=!0}}}});if(Yt(l.absUrl())!=Yt(u)){i.url(l.absUrl(),!0)};var f=!0;i.onUrlChange(function(t,e){n.$evalAsync(function(){var i=l.absUrl(),r=l.$$state,o;l.$$parse(t);l.$$state=e;o=n.$broadcast("$locationChangeStart",t,i,e,r).defaultPrevented;if(l.absUrl()!==t)return;if(o){l.$$parse(i);l.$$state=r;m(i,!1,r)}
else{f=!1;g(i,r)}});if(!n.$$phase)n.$digest()});n.$watch(function(){var e=Yt(i.url()),s=Yt(l.absUrl()),t=i.state(),a=l.$$replace,o=e!==s||(l.$$html5&&r.history&&t!==l.$$state);if(f||o){f=!1;n.$evalAsync(function(){var i=l.absUrl(),r=n.$broadcast("$locationChangeStart",i,e,l.$$state,t).defaultPrevented;if(l.absUrl()!==i)return;if(r){l.$$parse(e);l.$$state=t}
else{if(o){m(i,a,t===l.$$state?null:l.$$state)};g(e,t)}})};l.$$replace=!1});return l;function g(t,e){n.$broadcast("$locationChangeSuccess",l.absUrl(),t,l.$$state,e)}}]};function To(){var t=!0,e=this;this.debugEnabled=function(e){if(r(e)){t=e;return this}
else{return t}};this.$get=["$window",function(n){return{log:r("log"),info:r("info"),warn:r("warn"),error:r("error"),debug:(function(){var n=r("debug");return function(){if(t){n.apply(e,arguments)}}}())};function o(t){if(t instanceof Error){if(t.stack){t=(t.message&&t.stack.indexOf(t.message)===-1)?"Error: "+t.message+"\n"+t.stack:t.stack}
else if(t.sourceURL){t=t.message+"\n"+t.sourceURL+":"+t.line}};return t};function r(t){var r=n.console||{},s=r[t]||r.log||l,a=!1;try{a=!!s.apply}catch(e){};if(a){return function(){var t=[];i(arguments,function(e){t.push(o(e))});return s.apply(r,t)}};return function(t,e){s(t,e==null?"":e)}}}]};var S=p("$parse");function R(t,e){if(t==="__defineGetter__"||t==="__defineSetter__"||t==="__lookupGetter__"||t==="__lookupSetter__"||t==="__proto__"){throw S("isecfld","Attempting to access a disallowed field in Angular expressions! Expression: {0}",e)};return t};function D(t,e){if(t){if(t.constructor===t){throw S("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e)}
else if(t.window===t){throw S("isecwindow","Referencing the Window in Angular expressions is disallowed! Expression: {0}",e)}
else if(t.children&&(t.nodeName||(t.prop&&t.attr&&t.find))){throw S("isecdom","Referencing DOM nodes in Angular expressions is disallowed! Expression: {0}",e)}
else if(t===Object){throw S("isecobj","Referencing Object in Angular expressions is disallowed! Expression: {0}",e)}};return t};var or=Function.prototype.call,sr=Function.prototype.apply,ar=Function.prototype.bind;function Ao(t,e){if(t){if(t.constructor===t){throw S("isecfn","Referencing Function in Angular expressions is disallowed! Expression: {0}",e)}
else if(t===or||t===sr||t===ar){throw S("isecff","Referencing call, apply or bind in Angular expressions is disallowed! Expression: {0}",e)}}};var lt=N();i({"null":function(){return null},"true":function(){return!0},"false":function(){return!1},"undefined":function(){}},function(t,e){t.constant=t.literal=t.sharedGetter=!0;lt[e]=t});lt["this"]=function(t){return t};lt["this"].sharedGetter=!0;var at=d(N(),{"+":function(t,e,i,o){i=i(t,e);o=o(t,e);if(r(i)){if(r(o)){return i+o};return i};return r(o)?o:n},"-":function(t,e,n,i){n=n(t,e);i=i(t,e);return(r(n)?n:0)-(r(i)?i:0)},"*":function(t,e,n,i){return n(t,e)*i(t,e)},"/":function(t,e,n,i){return n(t,e)/i(t,e)},"%":function(t,e,n,i){return n(t,e)%i(t,e)},"===":function(t,e,n,i){return n(t,e)===i(t,e)},"!==":function(t,e,n,i){return n(t,e)!==i(t,e)},"==":function(t,e,n,i){return n(t,e)==i(t,e)},"!=":function(t,e,n,i){return n(t,e)!=i(t,e)},"<":function(t,e,n,i){return n(t,e)<i(t,e)},">":function(t,e,n,i){return n(t,e)>i(t,e)},"<=":function(t,e,n,i){return n(t,e)<=i(t,e)},">=":function(t,e,n,i){return n(t,e)>=i(t,e)},"&&":function(t,e,n,i){return n(t,e)&&i(t,e)},"||":function(t,e,n,i){return n(t,e)||i(t,e)},"!":function(t,e,n){return!n(t,e)},"=":!0,"|":!0});var rr={"n":"\n","f":"\f","r":"\r","t":"\t","v":"\v","'":"'","\"":"\""};var ie=function(t){this.options=t};ie.prototype={constructor:ie,lex:function(t){this.text=t;this.index=0;this.tokens=[];while(this.index<this.text.length){var e=this.text.charAt(this.index);if(e==="\""||e==="'"){this.readString(e)}
else if(this.isNumber(e)||e==="."&&this.isNumber(this.peek())){this.readNumber()}
else if(this.isIdent(e)){this.readIdent()}
else if(this.is(e,"(){}[].,;:?")){this.tokens.push({index:this.index,text:e});this.index++}
else if(this.isWhitespace(e)){this.index++}
else{var n=e+this.peek(),r=n+this.peek(2),a=at[e],o=at[n],s=at[r];if(a||o||s){var i=s?r:(o?n:e);this.tokens.push({index:this.index,text:i,operator:!0});this.index+=i.length}
else{this.throwError("Unexpected next character ",this.index,this.index+1)}}};return this.tokens},is:function(t,e){return e.indexOf(t)!==-1},peek:function(t){var e=t||1;return(this.index+e<this.text.length)?this.text.charAt(this.index+e):!1},isNumber:function(t){return("0"<=t&&t<="9")&&typeof t==="string"},isWhitespace:function(t){return(t===" "||t==="\r"||t==="\t"||t==="\n"||t==="\v"||t==="\u00A0")},isIdent:function(t){return("a"<=t&&t<="z"||"A"<=t&&t<="Z"||"_"===t||t==="$")},isExpOperator:function(t){return(t==="-"||t==="+"||this.isNumber(t))},throwError:function(t,e,n){n=n||this.index;var i=(r(e)?"s "+e+"-"+this.index+" ["+this.text.substring(e,n)+"]":" "+n);throw S("lexerr","Lexer Error: {0} at column{1} in expression [{2}].",t,i,this.text)},readNumber:function(){var t="",i=this.index;while(this.index<this.text.length){var e=h(this.text.charAt(this.index));if(e=="."||this.isNumber(e)){t+=e}
else{var n=this.peek();if(e=="e"&&this.isExpOperator(n)){t+=e}
else if(this.isExpOperator(e)&&n&&this.isNumber(n)&&t.charAt(t.length-1)=="e"){t+=e}
else if(this.isExpOperator(e)&&(!n||!this.isNumber(n))&&t.charAt(t.length-1)=="e"){this.throwError("Invalid exponent")}
else{break}};this.index++};this.tokens.push({index:i,text:t,constant:!0,value:Number(t)})},readIdent:function(){var e=this.index;while(this.index<this.text.length){var t=this.text.charAt(this.index);if(!(this.isIdent(t)||this.isNumber(t))){break};this.index++};this.tokens.push({index:e,text:this.text.slice(e,this.index),identifier:!0})},readString:function(t){var s=this.index;this.index++;var n="",o=t,r=!1;while(this.index<this.text.length){var e=this.text.charAt(this.index);o+=e;if(r){if(e==="u"){var i=this.text.substring(this.index+1,this.index+5);if(!i.match(/[\da-f]{4}/i))this.throwError("Invalid unicode escape [\\u"+i+"]");this.index+=4;n+=String.fromCharCode(parseInt(i,16))}
else{var a=rr[e];n=n+(a||e)};r=!1}
else if(e==="\\"){r=!0}
else if(e===t){this.index++;this.tokens.push({index:s,text:o,constant:!0,value:n});return}
else{n+=e};this.index++};this.throwError("Unterminated quote",s)}};function Se(t){return t.constant};var st=function(t,e,n){this.lexer=t;this.$filter=e;this.options=n};st.ZERO=d(function(){return 0},{sharedGetter:!0,constant:!0});st.prototype={constructor:st,parse:function(t){this.text=t;this.tokens=this.lexer.lex(t);var e=this.statements();if(this.tokens.length!==0){this.throwError("is an unexpected token",this.tokens[0])};e.literal=!!e.literal;e.constant=!!e.constant;return e},primary:function(){var t;if(this.expect("(")){t=this.filterChain();this.consume(")")}
else if(this.expect("[")){t=this.arrayDeclaration()}
else if(this.expect("{")){t=this.object()}
else if(this.peek().identifier&&this.peek().text in lt){t=lt[this.consume().text]}
else if(this.peek().identifier){t=this.identifier()}
else if(this.peek().constant){t=this.constant()}
else{this.throwError("not a primary expression",this.peek())};var e,n;while((e=this.expect("(","[","."))){if(e.text==="("){t=this.functionCall(t,n);n=null}
else if(e.text==="["){n=t;t=this.objectIndex(t)}
else if(e.text==="."){n=t;t=this.fieldAccess(t)}
else{this.throwError("IMPOSSIBLE")}};return t},throwError:function(t,e){throw S("syntax","Syntax Error: Token '{0}' {1} at column {2} of the expression [{3}] starting at [{4}].",e.text,t,(e.index+1),this.text,this.text.substring(e.index))},peekToken:function(){if(this.tokens.length===0)throw S("ueoe","Unexpected end of expression: {0}",this.text);return this.tokens[0]},peek:function(t,e,n,i){return this.peekAhead(0,t,e,n,i)},peekAhead:function(t,e,n,i,r){if(this.tokens.length>t){var s=this.tokens[t],o=s.text;if(o===e||o===n||o===i||o===r||(!e&&!n&&!i&&!r)){return s}};return!1},expect:function(t,e,n,i){var r=this.peek(t,e,n,i);if(r){this.tokens.shift();return r};return!1},consume:function(t){if(this.tokens.length===0){throw S("ueoe","Unexpected end of expression: {0}",this.text)};var e=this.expect(t);if(!e){this.throwError("is unexpected, expecting ["+t+"]",this.peek())};return e},unaryFn:function(t,e){var n=at[t];return d(function(t,i){return n(t,i,e)},{constant:e.constant,inputs:[e]})},binaryFn:function(t,e,n,i){var r=at[e];return d(function(e,i){return r(e,i,t,n)},{constant:t.constant&&n.constant,inputs:!i&&[t,n]})},identifier:function(){var t=this.consume().text;while(this.peek(".")&&this.peekAhead(1).identifier&&!this.peekAhead(2,"(")){t+=this.consume().text+this.consume().text};return Oo(t,this.options,this.text)},constant:function(){var t=this.consume().value;return d(function(){return t},{constant:!0,literal:!0})},statements:function(){var t=[];while(!0){if(this.tokens.length>0&&!this.peek("}",")",";","]"))t.push(this.filterChain());if(!this.expect(";")){return(t.length===1)?t[0]:function(e,n){var r;for(var i=0,o=t.length;i<o;i++){r=t[i](e,n)};return r}}}},filterChain:function(){var t=this.expression(),e;while((e=this.expect("|"))){t=this.filter(t)};return t},filter:function(t){var r=this.$filter(this.consume().text),e,i;if(this.peek(":")){e=[];i=[];while(this.expect(":")){e.push(this.expression())}};var o=[t].concat(e||[]);return d(function(o,s){var l=t(o,s);if(i){i[0]=l;var a=e.length;while(a--){i[a+1]=e[a](o,s)};return r.apply(n,i)};return r(l)},{constant:!r.$stateful&&o.every(Se),inputs:!r.$stateful&&o})},expression:function(){return this.assignment()},assignment:function(){var t=this.ternary(),e,n;if((n=this.expect("="))){if(!t.assign){this.throwError("implies assignment but ["+this.text.substring(0,n.index)+"] can not be assigned to",n)};e=this.ternary();return d(function(n,i){return t.assign(n,e(n,i),i)},{inputs:[t,e]})};return t},ternary:function(){var t=this.logicalOR(),e,i;if((i=this.expect("?"))){e=this.assignment();if(this.consume(":")){var n=this.assignment();return d(function(i,r){return t(i,r)?e(i,r):n(i,r)},{constant:t.constant&&e.constant&&n.constant})}};return t},logicalOR:function(){var t=this.logicalAND(),e;while((e=this.expect("||"))){t=this.binaryFn(t,e.text,this.logicalAND(),!0)};return t},logicalAND:function(){var t=this.equality(),e;while((e=this.expect("&&"))){t=this.binaryFn(t,e.text,this.equality(),!0)};return t},equality:function(){var t=this.relational(),e;while((e=this.expect("==","!=","===","!=="))){t=this.binaryFn(t,e.text,this.relational())};return t},relational:function(){var t=this.additive(),e;while((e=this.expect("<",">","<=",">="))){t=this.binaryFn(t,e.text,this.additive())};return t},additive:function(){var t=this.multiplicative(),e;while((e=this.expect("+","-"))){t=this.binaryFn(t,e.text,this.multiplicative())};return t},multiplicative:function(){var t=this.unary(),e;while((e=this.expect("*","/","%"))){t=this.binaryFn(t,e.text,this.unary())};return t},unary:function(){var t;if(this.expect("+")){return this.primary()}
else if((t=this.expect("-"))){return this.binaryFn(st.ZERO,t.text,this.unary())}
else if((t=this.expect("!"))){return this.unaryFn(t.text,this.unary())}
else{return this.primary()}},fieldAccess:function(t){var e=this.identifier();return d(function(i,r,o){var s=o||t(i,r);return(s==null)?n:e(s)},{assign:function(n,i,r){var o=t(n,r);if(!o)t.assign(n,o={},r);return e.assign(o,i)}})},objectIndex:function(t){var e=this.text,i=this.expression();this.consume("]");return d(function(r,o){var s=t(r,o),a=i(r,o),l;R(a,e);if(!s)return n;l=D(s[a],e);return l},{assign:function(n,r,o){var a=R(i(n,o),e),s=D(t(n,o),e);if(!s)t.assign(n,s={},o);return s[a]=r}})},functionCall:function(t,e){var s=[];if(this.peekToken().text!==")"){do{s.push(this.expression())}
while(this.expect(","));};this.consume(")");var o=this.text,i=s.length?[]:null;return function(a,c){var d=e?e(a,c):r(e)?n:a,u=t(a,c,d)||l;if(i){var f=s.length;while(f--){i[f]=D(s[f](a,c),o)}};D(d,o);Ao(u,o);var h=u.apply?u.apply(d,i):u(i[0],i[1],i[2],i[3],i[4]);if(i){i.length=0};return D(h,o)}},arrayDeclaration:function(){var t=[];if(this.peekToken().text!=="]"){do{if(this.peek("]")){break};t.push(this.expression())}
while(this.expect(","));};this.consume("]");return d(function(e,n){var r=[];for(var i=0,o=t.length;i<o;i++){r.push(t[i](e,n))};return r},{literal:!0,constant:t.every(Se),inputs:t})},object:function(){var n=[],e=[];if(this.peekToken().text!=="}"){do{if(this.peek("}")){break};var t=this.consume();if(t.constant){n.push(t.value)}
else if(t.identifier){n.push(t.text)}
else{this.throwError("invalid key",t)};this.consume(":");e.push(this.expression())}
while(this.expect(","));};this.consume("}");return d(function(t,i){var o={};for(var r=0,s=e.length;r<s;r++){o[n[r]]=e[r](t,i)};return o},{literal:!0,constant:e.every(Se),inputs:e})}};function St(t,e,n,i,r){D(t,r);D(e,r);var a=n.split("."),o;for(var l=0;a.length>1;l++){o=R(a.shift(),r);var s=(l===0&&e&&e[o])||t[o];if(!s){s={};t[o]=s};t=D(s,r)};o=R(a.shift(),r);D(t[o],r);t[o]=i;return i};var nr=N(),ir=N();function rt(t){return t=="constructor"};function qn(t,e,i,r,o,s,a){R(t,s);R(e,s);R(i,s);R(r,s);R(o,s);var l=function(t){return D(t,s)},c=(a||rt(t))?l:j,u=(a||rt(e))?l:j,f=(a||rt(i))?l:j,d=(a||rt(r))?l:j,h=(a||rt(o))?l:j;return function(s,a){var l=(a&&a.hasOwnProperty(t))?a:s;if(l==null)return l;l=c(l[t]);if(!e)return l;if(l==null)return n;l=u(l[e]);if(!i)return l;if(l==null)return n;l=f(l[i]);if(!r)return l;if(l==null)return n;l=d(l[r]);if(!o)return l;if(l==null)return n;l=h(l[o]);return l}};function Io(t,e){return function(n,i){return t(n,i,D,e)}};function Oo(t,e,r){var a=e.expensiveChecks,d=(a?ir:nr),s=d[t];if(s)return s;var o=t.split("."),f=o.length;if(e.csp){if(f<6){s=qn(o[0],o[1],o[2],o[3],o[4],r,a)}
else{s=function(t,e){var i=0,s;do{s=qn(o[i++],o[i++],o[i++],o[i++],o[i++],r,a)(t,e);e=n;t=s}
while(i<f);return s}}}
else{var l="";if(a){l+="s = eso(s, fe);\nl = eso(l, fe);\n"};var u=a;i(o,function(t,e){R(t,r);var n=(e?"s":"((l&&l.hasOwnProperty(\""+t+"\"))?l:s)")+"."+t;if(a||rt(t)){n="eso("+n+", fe)";u=!0};l+="if(s == null) return undefined;\ns="+n+";\n"});l+="return s;";var c=new Function("s","l","eso","fe",l);c.toString=k(l);if(u){c=Io(c,r)};s=c};s.sharedGetter=!0;s.assign=function(e,n,i){return St(e,i,t,n,t)};d[t]=s;return s};var er=Object.prototype.valueOf;function Te(t){return u(t.valueOf)?t.valueOf():er.call(t)};function No(){var t=N(),e=N();this.$get=["$filter","$sniffer",function(n,o){var p={csp:o.csp,expensiveChecks:!1},m={csp:o.csp,expensiveChecks:!0};function g(t){var e=t;if(t.sharedGetter){e=function(e,n){return t(e,n)};e.literal=t.literal;e.constant=t.constant;e.assign=t.assign};return e};return function(i,r,o){var s,b,u;switch(typeof i){case"string":u=i=i.trim();var y=(o?e:t);s=y[u];if(!s){if(i.charAt(0)===":"&&i.charAt(1)===":"){b=!0;i=i.substring(2)};var f=o?m:p,w=new ie(f),x=new st(w,n,f);s=x.parse(i);if(s.constant){s.$$watchDelegate=v}
else if(b){s=g(s);s.$$watchDelegate=s.literal?h:d}
else if(s.inputs){s.$$watchDelegate=a};y[u]=s};return c(s,r);case"function":return c(i,r);default:return c(l,r)}};function f(t,e){for(var i=0,r=t.length;i<r;i++){var n=t[i];if(!n.constant){if(n.inputs){f(n.inputs,e)}
else if(e.indexOf(n)===-1){e.push(n)}}};return e};function s(t,e){if(t==null||e==null){return t===e};if(typeof t==="object"){t=Te(t);if(typeof t==="object"){return!1}};return t===e||(t!==t&&e!==e)};function a(t,e,n,i){var r=i.$$inputs||(i.$$inputs=f(i.inputs,[])),o;if(r.length===1){var c=s;r=r[0];return t.$watch(function(t){var e=r(t);if(!s(e,c)){o=i(t);c=e&&Te(e)};return o},e,n)};var l=[];for(var a=0,u=r.length;a<u;a++){l[a]=s};return t.$watch(function(t){var a=!1;for(var e=0,c=r.length;e<c;e++){var n=r[e](t);if(a||(a=!s(n,l[e]))){l[e]=n&&Te(n)}};if(a){o=i(t)};return o},e,n)};function d(t,e,n,i){var o,s;return o=t.$watch(function(t){return i(t)},function(t,n,i){s=t;if(u(e)){e.apply(this,arguments)};if(r(t)){i.$$postDigest(function(){if(r(s)){o()}})}},n)};function h(t,e,n,o){var s,a;return s=t.$watch(function(t){return o(t)},function(t,n,i){a=t;if(u(e)){e.call(this,t,n,i)};if(l(t)){i.$$postDigest(function(){if(l(a))s()})}},n);function l(t){var e=!0;i(t,function(t){if(!r(t))e=!1});return e}};function v(t,e,n,i){var r;return r=t.$watch(function(t){return i(t)},function(t,n,i){if(u(e)){e.apply(this,arguments)};r()},n)};function c(t,e){if(!e)return t;var i=t.$$watchDelegate,o=i!==h&&i!==d,n=o?function(n,i){var r=t(n,i);return e(r,n,i)}:function(n,i){var o=t(n,i),s=e(o,n,i);return r(o)?s:o};if(t.$$watchDelegate&&t.$$watchDelegate!==a){n.$$watchDelegate=t.$$watchDelegate}
else if(!e.$stateful){n.$$watchDelegate=a;n.inputs=[t]};return n}}]};function Do(){this.$get=["$rootScope","$exceptionHandler",function(t,e){return Bn(function(e){t.$evalAsync(e)},e)}]};function Po(){this.$get=["$browser","$exceptionHandler",function(t,e){return Bn(function(e){t.defer(e)},e)}]};function Bn(t,e){var m=p("$q",TypeError);function b(t,e,n){var i=!1;function r(e){return function(n){if(i)return;i=!0;e.call(t,n)}};return[r(e),r(n)]};var y=function(){return new r()};function g(){this.$$state={status:0}};g.prototype={then:function(t,e,n){var i=new r();this.$$state.pending=this.$$state.pending||[];this.$$state.pending.push([i,t,e,n]);if(this.$$state.status>0)f(this.$$state);return i.promise},"catch":function(t){return this.then(null,t)},"finally":function(t,e){return this.then(function(e){return d(e,!0,t)},function(e){return d(e,!1,t)},e)}};function l(t,e){return function(n){e.call(t,n)}};function w(t){var a,r,s;s=t.pending;t.processScheduled=!1;t.pending=n;for(var o=0,l=s.length;o<l;++o){r=s[o][0];a=s[o][t.status];try{if(u(a)){r.resolve(a(t.value))}
else if(t.status===1){r.resolve(t.value)}
else{r.reject(t.value)}}catch(i){r.reject(i);e(i)}}};function f(e){if(e.processScheduled||!e.pending)return;e.processScheduled=!0;t(function(){w(e)})};function r(){this.promise=new g();this.resolve=l(this,this.resolve);this.reject=l(this,this.reject);this.notify=l(this,this.notify)};r.prototype={resolve:function(t){if(this.promise.$$state.status)return;if(t===this.promise){this.$$reject(m("qcycle","Expected promise to be resolved with value other than itself '{0}'",t))}
else{this.$$resolve(t)}},$$resolve:function(t){var r,i;i=b(this,this.$$resolve,this.$$reject);try{if((c(t)||u(t)))r=t&&t.then;if(u(r)){this.promise.$$state.status=-1;r.call(t,i[0],i[1],this.notify)}
else{this.promise.$$state.value=t;this.promise.$$state.status=1;f(this.promise.$$state)}}catch(n){i[1](n);e(n)}},reject:function(t){if(this.promise.$$state.status)return;this.$$reject(t)},$$reject:function(t){this.promise.$$state.value=t;this.promise.$$state.status=2;f(this.promise.$$state)},notify:function(n){var i=this.promise.$$state.pending;if((this.promise.$$state.status<=0)&&i&&i.length){t(function(){var o,s;for(var r=0,a=i.length;r<a;r++){s=i[r][0];o=i[r][3];try{s.notify(u(o)?o(n):n)}catch(t){e(t)}}})}}};var v=function(t){var e=new r();e.reject(t);return e.promise},s=function(t,e){var n=new r();if(e){n.resolve(t)}
else{n.reject(t)};return n.promise},d=function(t,e,n){var r=null;try{if(u(n))r=n()}catch(i){return s(i,!1)};if(Ft(r)){return r.then(function(){return s(t,e)},function(t){return s(t,!1)})}
else{return s(t,e)}},h=function(t,e,n,i){var o=new r();o.resolve(t);return o.promise.then(e,n,i)};function x(t){var n=new r(),o=0,e=a(t)?[]:{};i(t,function(t,i){o++;h(t).then(function(t){if(e.hasOwnProperty(i))return;e[i]=t;if(!(--o))n.resolve(e)},function(t){if(e.hasOwnProperty(i))return;n.reject(t)})});if(o===0){n.resolve(e)};return n.promise};var o=function C(t){if(!u(t)){throw m("norslvr","Expected resolverFn, got '{0}'",t)};if(!(this instanceof C)){return new C(t)};var e=new r();function n(t){e.resolve(t)};function i(t){e.reject(t)};t(n,i);return e.promise};o.defer=y;o.reject=v;o.when=h;o.all=x;return o};function jo(){this.$get=["$window","$timeout",function(t,e){var o=t.requestAnimationFrame||t.webkitRequestAnimationFrame,l=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.webkitCancelRequestAnimationFrame,s=!!o,c=s?function(t){var e=o(t);return function(){l(e)}}:function(t){var n=e(t,16.66,!1);return function(){e.cancel(n)}};a.supported=s;var i,r=0,n=[];return a;function u(){for(var t=0;t<n.length;t++){var e=n[t];if(e){n[t]=null;e()}};r=n.length=0};function a(t){var e=n.length;r++;n.push(t);if(e===0){i=c(u)};return function(){if(e>=0){n[e]=null;e=null;if(--r===0&&i){i();i=null;n.length=0}}}}}]};function Mo(){var n=10,r=p("$rootScope"),t=null,e=null;this.digestTtl=function(t){if(arguments.length){n=t};return n};function o(t){function e(){this.$$watchers=this.$$nextSibling=this.$$childHead=this.$$childTail=null;this.$$listeners={};this.$$listenerCount={};this.$id=Ht();this.$$ChildScope=null};e.prototype=t;return e};this.$get=["$injector","$exceptionHandler","$parse","$browser",function(a,f,d,h){function E(t){t.currentScope.$$destroyed=!0};function g(){this.$id=Ht();this.$$phase=this.$parent=this.$$watchers=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=null;this.$root=this;this.$$destroyed=!1;this.$$listeners={};this.$$listenerCount={};this.$$isolateBindings=null};g.prototype={constructor:g,$new:function(t,e){var n;e=e||this;if(t){n=new g();n.$root=this.$root}
else{if(!this.$$ChildScope){this.$$ChildScope=o(this)};n=new this.$$ChildScope()};n.$parent=e;n.$$prevSibling=e.$$childTail;if(e.$$childHead){e.$$childTail.$$nextSibling=n;e.$$childTail=n}
else{e.$$childHead=e.$$childTail=n};if(t||e!=this)n.$on("$destroy",E);return n},$watch:function(e,n,i){var o=d(e);if(o.$$watchDelegate){return o.$$watchDelegate(this,n,i,o)};var a=this,r=a.$$watchers,s={fn:n,last:C,get:o,exp:e,eq:!!i};t=null;if(!u(n)){s.fn=l};if(!r){r=a.$$watchers=[]};r.unshift(s);return function(){bt(r,s);t=null}},$watchGroup:function(t,e){var o=new Array(t.length),n=new Array(t.length),s=[],r=this,a=!1,c=!0;if(!t.length){var l=!0;r.$evalAsync(function(){if(l)e(n,n,r)});return function(){l=!1}};if(t.length===1){return this.$watch(t[0],function(t,i,r){n[0]=t;o[0]=i;e(n,(t===i)?n:o,r)})};i(t,function(t,e){var i=r.$watch(t,function(t,i){n[e]=t;o[e]=i;if(!a){a=!0;r.$evalAsync(u)}});s.push(i)});function u(){a=!1;if(c){c=!1;e(n,n,r)}
else{e(n,o,r)}};return function(){while(s.length){s.shift()()}}},$watchCollection:function(t,e){p.$stateful=!0;var u=this,n,i,a,m=(e.length>1),r=0,g=d(t,p),f=[],h={};var l=!0,o=0;function p(t){n=t;var u,a,p,e,l;if(s(n))return;if(!c(n)){if(i!==n){i=n;r++}}
else if(pt(n)){if(i!==f){i=f;o=i.length=0;r++};u=n.length;if(o!==u){r++;i.length=o=u};for(var d=0;d<u;d++){l=i[d];e=n[d];p=(l!==l)&&(e!==e);if(!p&&(l!==e)){r++;i[d]=e}}}
else{if(i!==h){i=h={};o=0;r++};u=0;for(a in n){if(n.hasOwnProperty(a)){u++;e=n[a];l=i[a];if(a in i){p=(l!==l)&&(e!==e);if(!p&&(l!==e)){r++;i[a]=e}}
else{o++;i[a]=e;r++}}};if(o>u){r++;for(a in i){if(!n.hasOwnProperty(a)){o--;delete i[a]}}}};return r};function v(){if(l){l=!1;e(n,n,u)}
else{e(n,a,u)};if(m){if(!c(n)){a=n}
else if(pt(n)){a=new Array(n.length);for(var t=0;t<n.length;t++){a[t]=n[t]}}
else{a={};for(var i in n){if(ln.call(n,i)){a[i]=n[i]}}}}};return this.$watch(g,v)},$digest:function(){var o,a,l,x,E,c,S=n,T,s,A=this,d=[],g,I,y;w("$digest");h.$$checkUrlChange();if(this===p&&e!==null){h.defer.cancel(e);k()};t=null;do{c=!1;s=A;while(m.length){try{y=m.shift();y.scope.$eval(y.expression,y.locals)}catch(i){f(i)};t=null};traverseScopesLoop:do{if((x=s.$$watchers)){E=x.length;while(E--){try{o=x[E];if(o){if((a=o.get(s))!==(l=o.last)&&!(o.eq?O(a,l):(typeof a==="number"&&typeof l==="number"&&isNaN(a)&&isNaN(l)))){c=!0;t=o;o.last=o.eq?z(a,null):a;o.fn(a,((l===C)?a:l),s);if(S<5){g=4-S;if(!d[g])d[g]=[];d[g].push({msg:u(o.exp)?"fn: "+(o.exp.name||o.exp.toString()):o.exp,newVal:a,oldVal:l})}}
else if(o===t){c=!1;break traverseScopesLoop}}}catch(i){f(i)}}};if(!(T=(s.$$childHead||(s!==A&&s.$$nextSibling)))){while(s!==A&&!(T=s.$$nextSibling)){s=s.$parent}}}
while((s=T));if((c||m.length)&&!(S--)){b();throw r("infdig","{0} $digest() iterations reached. Aborting!\nWatchers fired in the last 5 iterations: {1}",n,d)}}
while(c||m.length);b();while(v.length){try{v.shift()()}catch(i){f(i)}}},$destroy:function(){if(this.$$destroyed)return;var t=this.$parent;this.$broadcast("$destroy");this.$$destroyed=!0;if(this===p)return;for(var e in this.$$listenerCount){x(this,this.$$listenerCount[e],e)};if(t.$$childHead==this)t.$$childHead=this.$$nextSibling;if(t.$$childTail==this)t.$$childTail=this.$$prevSibling;if(this.$$prevSibling)this.$$prevSibling.$$nextSibling=this.$$nextSibling;if(this.$$nextSibling)this.$$nextSibling.$$prevSibling=this.$$prevSibling;this.$destroy=this.$digest=this.$apply=this.$evalAsync=this.$applyAsync=l;this.$on=this.$watch=this.$watchGroup=function(){return l};this.$$listeners={};this.$parent=this.$$nextSibling=this.$$prevSibling=this.$$childHead=this.$$childTail=this.$root=this.$$watchers=null},$eval:function(t,e){return d(t)(this,e)},$evalAsync:function(t,e){if(!p.$$phase&&!m.length){h.defer(function(){if(m.length){p.$digest()}})};m.push({scope:this,expression:t,locals:e})},$$postDigest:function(t){v.push(t)},$apply:function(t){try{w("$apply");return this.$eval(t)}catch(e){f(e)}finally{b();try{p.$digest()}catch(e){f(e);throw e}}},$applyAsync:function(t){var e=this;t&&y.push(n);S();function n(){e.$eval(t)}},$on:function(t,e){var i=this.$$listeners[t];if(!i){this.$$listeners[t]=i=[]};i.push(e);var n=this;do{if(!n.$$listenerCount[t]){n.$$listenerCount[t]=0};n.$$listenerCount[t]++}
while((n=n.$parent));var r=this;return function(){var n=i.indexOf(e);if(n!==-1){i[n]=null;x(r,1,t)}}},$emit:function(t,e){var c=[],s,o=this,l=!1,i={name:t,targetScope:o,stopPropagation:function(){l=!0},preventDefault:function(){i.defaultPrevented=!0},defaultPrevented:!1},u=wt([i],arguments,1),r,a;do{s=o.$$listeners[t]||c;i.currentScope=o;for(r=0,a=s.length;r<a;r++){if(!s[r]){s.splice(r,1);r--;a--;continue};try{s[r].apply(null,u)}catch(n){f(n)}};if(l){i.currentScope=null;return i};o=o.$parent}
while(o);i.currentScope=null;return i},$broadcast:function(t,e){var o=this,i=o,c=o,s={name:t,targetScope:o,preventDefault:function(){s.defaultPrevented=!0},defaultPrevented:!1};if(!o.$$listenerCount[t])return s;var u=wt([s],arguments,1),a,r,l;while((i=c)){s.currentScope=i;a=i.$$listeners[t]||[];for(r=0,l=a.length;r<l;r++){if(!a[r]){a.splice(r,1);r--;l--;continue};try{a[r].apply(null,u)}catch(n){f(n)}};if(!(c=((i.$$listenerCount[t]&&i.$$childHead)||(i!==o&&i.$$nextSibling)))){while(i!==o&&!(c=i.$$nextSibling)){i=i.$parent}}};s.currentScope=null;return s}};var p=new g(),m=p.$$asyncQueue=[],v=p.$$postDigestQueue=[],y=p.$$applyAsyncQueue=[];return p;function w(t){if(p.$$phase){throw r("inprog","{0} already in progress",p.$$phase)};p.$$phase=t};function b(){p.$$phase=null};function x(t,e,n){do{t.$$listenerCount[n]-=e;if(t.$$listenerCount[n]===0){delete t.$$listenerCount[n]}}
while((t=t.$parent));};function C(){};function k(){while(y.length){try{y.shift()()}catch(t){f(t)}};e=null};function S(){if(e===null){e=h.defer(function(){p.$apply(k)})}}}]};function Ro(){var t=/^\s*(https?|ftp|mailto|tel|file):/,e=/^\s*((https?|ftp|file|blob):|data:image\/)/;this.aHrefSanitizationWhitelist=function(e){if(r(e)){t=e;return this};return t};this.imgSrcSanitizationWhitelist=function(t){if(r(t)){e=t;return this};return e};this.$get=function(){return function(n,i){var o=i?e:t,r;r=W(n).href;if(r!==""&&!r.match(o)){return"unsafe:"+r};return n}}};var B=p("$sce"),E={HTML:"html",CSS:"css",URL:"url",RESOURCE_URL:"resourceUrl",JS:"js"};function Lo(t){if(t==="self"){return t}
else if(f(t)){if(t.indexOf("***")>-1){throw B("iwcard","Illegal sequence *** in string matcher.  String: {0}",t)};t=an(t).replace("\\*\\*",".*").replace("\\*","[^:/.?&;]*");return new RegExp("^"+t+"$")}
else if(mt(t)){return new RegExp("^"+t.source+"$")}
else{throw B("imatcher","Matchers may only be \"self\", string patterns or RegExp objects")}};function Wn(t){var e=[];if(r(t)){i(t,function(t){e.push(Lo(t))})};return e};function Ho(){this.SCE_CONTEXTS=E;var t=["self"],e=[];this.resourceUrlWhitelist=function(e){if(arguments.length){t=Wn(e)};return t};this.resourceUrlBlacklist=function(t){if(arguments.length){e=Wn(t)};return e};this.$get=["$injector",function(i){var a=function(t){throw B("unsafe","Attempting to use an unsafe value in a safe context.")};if(i.has("$sanitize")){a=i.get("$sanitize")};function l(t,e){if(t==="self"){return Vn(e)}
else{return!!t.exec(e.href)}};function c(n){var s=W(n.toString()),i,r,o=!1;for(i=0,r=t.length;i<r;i++){if(l(t[i],s)){o=!0;break}};if(o){for(i=0,r=e.length;i<r;i++){if(l(e[i],s)){o=!1;break}}};return o};function o(t){var e=function(t){this.$$unwrapTrustedValue=function(){return t}};if(t){e.prototype=new t()};e.prototype.valueOf=function(){return this.$$unwrapTrustedValue()};e.prototype.toString=function(){return this.$$unwrapTrustedValue().toString()};return e};var s=o(),r={};r[E.HTML]=o(s);r[E.CSS]=o(s);r[E.URL]=o(s);r[E.JS]=o(s);r[E.RESOURCE_URL]=o(r[E.URL]);function u(t,e){var i=(r.hasOwnProperty(t)?r[t]:null);if(!i){throw B("icontext","Attempted to trust a value in invalid context. Context: {0}; Value: {1}",t,e)};if(e===null||e===n||e===""){return e};if(typeof e!=="string"){throw B("itype","Attempted to trust a non-string value in a content requiring a string: Context: {0}",t)};return new i(e)};function f(t){if(t instanceof s){return t.$$unwrapTrustedValue()}
else{return t}};function d(t,e){if(e===null||e===n||e===""){return e};var i=(r.hasOwnProperty(t)?r[t]:null);if(i&&e instanceof i){return e.$$unwrapTrustedValue()};if(t===E.RESOURCE_URL){if(c(e)){return e}
else{throw B("insecurl","Blocked loading resource from url not allowed by $sceDelegate policy.  URL: {0}",e.toString())}}
else if(t===E.HTML){return a(e)};throw B("unsafe","Attempting to use an unsafe value in a safe context.")};return{trustAs:u,getTrusted:d,valueOf:f}}]};function Fo(){var t=!0;this.enabled=function(e){if(arguments.length){t=!!e};return t};this.$get=["$parse","$sceDelegate",function(e,n){if(t&&J<8){throw B("iequirks","Strict Contextual Escaping does not support Internet Explorer version < 11 in quirks mode.  You can fix this by adding the text <!doctype html> to the top of your HTML document.  See http://docs.angularjs.org/api/ng.$sce for more information.")};var r=M(E);r.isEnabled=function(){return t};r.trustAs=n.trustAs;r.getTrusted=n.getTrusted;r.valueOf=n.valueOf;if(!t){r.trustAs=r.getTrusted=function(t,e){return e};r.valueOf=j};r.parseAs=function(t,n){var i=e(n);if(i.literal&&i.constant){return i}
else{return e(n,function(e){return r.getTrusted(t,e)})}};var o=r.parseAs,s=r.getTrusted,a=r.trustAs;i(E,function(t,e){var n=h(e);r[Ct("parse_as_"+n)]=function(e){return o(t,e)};r[Ct("get_trusted_"+n)]=function(e){return s(t,e)};r[Ct("trust_as_"+n)]=function(e){return a(t,e)}});return r}]};function qo(){this.$get=["$window","$document",function(t,e){var l={},c=int((/android (\d+)/.exec(h((t.navigator||{}).userAgent))||[])[1]),p=/Boxee/i.test((t.navigator||{}).userAgent),r=e[0]||{},n,m=/^(Moz|webkit|ms)(?=[A-Z])/,i=r.body&&r.body.style,o=!1,a=!1,u;if(i){for(var d in i){if(u=m.exec(d)){n=u[0];n=n.substr(0,1).toUpperCase()+n.substr(1);break}};if(!n){n=("WebkitOpacity" in i)&&"webkit"};o=!!(("transition" in i)||(n+"Transition" in i));a=!!(("animation" in i)||(n+"Animation" in i));if(c&&(!o||!a)){o=f(r.body.style.webkitTransition);a=f(r.body.style.webkitAnimation)}};return{history:!!(t.history&&t.history.pushState&&!(c<4)&&!p),hasEvent:function(t){if(t==="input"&&J<=11)return!1;if(s(l[t])){var e=r.createElement("div");l[t]="on"+t in e};return l[t]},csp:ft(),vendorPrefix:n,transitions:o,animations:a,android:c}}]};var C=p("$compile");function Bo(){this.$get=["$templateCache","$http","$q",function(t,e,n){function i(r,o){i.totalPendingRequests++;var s=e.defaults&&e.defaults.transformResponse;if(a(s)){s=s.filter(function(t){return t!==be})}
else if(s===be){s=null};var l={cache:t,transformResponse:s};return e.get(r,l)["finally"](function(){i.totalPendingRequests--}).then(function(t){return t.data},c);function c(t){if(!o){throw C("tpload","Failed to load template: {0}",r)};return n.reject(t)}};i.totalPendingRequests=0;return i}]};function Wo(){this.$get=["$rootScope","$browser","$location",function(t,e,n){var r={};r.findBindings=function(t,e,n){var o=t.getElementsByClassName("ng-binding"),r=[];i(o,function(t){var o=x.element(t).data("$binding");if(o){i(o,function(i){if(n){var o=new RegExp("(^|\\s)"+an(e)+"(\\s|\\||$)");if(o.test(i)){r.push(t)}}
else{if(i.indexOf(e)!=-1){r.push(t)}}})}});return r};r.findModels=function(t,e,n){var o=["ng-","data-ng-","ng\\:"];for(var i=0;i<o.length;++i){var s=n?"=":"*=",a="["+o[i]+"model"+s+"\""+e+"\"]",r=t.querySelectorAll(a);if(r.length){return r}}};r.getLocation=function(){return n.url()};r.setLocation=function(e){if(e!==n.url()){n.url(e);t.$digest()}};r.whenStable=function(t){e.notifyWhenNoOutstandingRequests(t)};return r}]};function Vo(){this.$get=["$rootScope","$browser","$q","$$q","$exceptionHandler",function(t,e,n,i,o){var s={};function a(a,l,c){var h=(r(c)&&!c),u=(h?i:n).defer(),f=u.promise,d;d=e.defer(function(){try{u.resolve(a())}catch(e){u.reject(e);o(e)}finally{delete s[f.$$timeoutId]};if(!h)t.$apply()},l);f.$$timeoutId=d;s[d]=u;return f};a.cancel=function(t){if(t&&t.$$timeoutId in s){s[t.$$timeoutId].reject("canceled");delete s[t.$$timeoutId];return e.defer.cancel(t.$$timeoutId)};return!1};return a}]};var v=e.createElement("a"),Qe=W(t.location.href);function W(t){var e=t;if(J){v.setAttribute("href",e);e=v.href};v.setAttribute("href",e);return{href:v.href,protocol:v.protocol?v.protocol.replace(/:$/,""):"",host:v.host,search:v.search?v.search.replace(/^\?/,""):"",hash:v.hash?v.hash.replace(/^#/,""):"",hostname:v.hostname,port:v.port,pathname:(v.pathname.charAt(0)==="/")?v.pathname:"/"+v.pathname}};function Vn(t){var e=(f(t))?W(t):t;return(e.protocol===Qe.protocol&&e.host===Qe.host)};function Uo(){this.$get=k(t)};Un.$inject=["$provide"];function Un(t){var n="Filter";function e(r,o){if(c(r)){var s={};i(r,function(t,n){s[n]=e(n,t)});return s}
else{return t.factory(r+n,o)}};this.register=e;this.$get=["$injector",function(t){return function(e){return t.get(e+n)}}];e("currency",zn);e("date",Qn);e("filter",zo);e("json",Zo);e("limitTo",Jo);e("lowercase",Yi);e("number",Kn);e("orderBy",Zn);e("uppercase",Qi)};function zo(){return function(t,e,n){if(!a(t))return t;var o=(e!==null)?typeof e:"null",i,r;switch(o){case"function":i=e;break;case"boolean":case"null":case"number":case"string":r=!0;case"object":i=Ko(e,n,r);break;default:return t};return t.filter(i)}};function Ko(t,e,n){var r=c(t)&&("$" in t),i;if(e===!0){e=O}
else if(!u(e)){e=function(t,e){if(s(t)){return!1};if((t===null)||(e===null)){return t===e};if(c(t)||c(e)){return!1};t=h(""+t);e=h(""+e);return t.indexOf(e)!==-1}};i=function(i){if(r&&!c(i)){return X(i,t.$,e,!1)};return X(i,t,e,n)};return i};function X(t,e,n,i,r){var h=(t!==null)?typeof t:"null",f=(e!==null)?typeof e:"null";if((f==="string")&&(e.charAt(0)==="!")){return!X(t,e.substring(1),n,i)}
else if(a(t)){return t.some(function(t){return X(t,e,n,i)})};switch(h){case"object":var o;if(i){for(o in t){if((o.charAt(0)!=="$")&&X(t[o],e,n,!0)){return!0}};return r?!1:X(t,e,n,!1)}
else if(f==="object"){for(o in e){var c=e[o];if(u(c)||s(c)){continue};var l=o==="$",d=l?t:t[o];if(!X(d,c,n,l,l)){return!1}};return!0}
else{return n(t,e)};break;case"function":return!1;default:return n(t,e)}};zn.$inject=["$locale"];function zn(t){var e=t.NUMBER_FORMATS;return function(t,n,i){if(s(n)){n=e.CURRENCY_SYM};if(s(i)){i=e.PATTERNS[1].maxFrac};return(t==null)?t:Gn(t,e.PATTERNS[1],e.GROUP_SEP,e.DECIMAL_SEP,i).replace(/\u00A4/g,n)}};Kn.$inject=["$locale"];function Kn(t){var e=t.NUMBER_FORMATS;return function(t,n){return(t==null)?t:Gn(t,e.PATTERNS[0],e.GROUP_SEP,e.DECIMAL_SEP,n)}};var Ye=".";function Gn(t,e,n,i,r){if(!isFinite(t)||c(t))return"";var m=t<0;t=Math.abs(t);var d=t+"",a="",v=[],y=!1;if(d.indexOf("e")!==-1){var p=d.match(/([\d\.]+)e(-?)(\d+)/);if(p&&p[2]=="-"&&p[3]>r+1){t=0}
else{a=d;y=!0}};if(!y){var b=(d.split(Ye)[1]||"").length;if(s(r)){r=Math.min(Math.max(e.minFrac,b),e.maxFrac)};t=+(Math.round(+(t.toString()+"e"+r)).toString()+"e"+-r);var l=(""+t).split(Ye),u=l[0];l=l[1]||"";var o,f=0,h=e.lgSize,g=e.gSize;if(u.length>=(h+g)){f=u.length-h;for(o=0;o<f;o++){if((f-o)%g===0&&o!==0){a+=n};a+=u.charAt(o)}};for(o=f;o<u.length;o++){if((u.length-o)%h===0&&o!==0){a+=n};a+=u.charAt(o)}
while(l.length<r){l+="0"};if(r&&r!=="0")a+=i+l.substr(0,r)}
else{if(r>0&&t<1){a=t.toFixed(r);t=parseFloat(a)}};if(t===0){m=!1};v.push(m?e.negPre:e.posPre,a,m?e.negSuf:e.posSuf);return v.join("")};function Zt(t,e,n){var i="";if(t<0){i="-";t=-t};t=""+t;while(t.length<e)t="0"+t;if(n)t=t.substr(t.length-e);return i+t};function b(t,e,n,i){n=n||0;return function(r){var o=r["get"+t]();if(n>0||o>-n)o+=n;if(o===0&&n==-12)o=12;return Zt(o,e,i)}};function Jt(t,e){return function(n,i){var r=n["get"+t](),o=ht(e?("SHORT"+t):t);return i[o][r]}};function Go(t){var e=-1*t.getTimezoneOffset(),n=(e>=0)?"+":"";n+=Zt(Math[e>0?"floor":"ceil"](e/60),2)+Zt(Math.abs(e%60),2);return n};function Xn(t){var e=(new Date(t,0,1)).getDay();return new Date(t,0,((e<=4)?5:12)-e)};function Xo(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))};function Yn(t){return function(e){var n=Xn(e.getFullYear()),i=Xo(e),r=+i-+n,o=1+Math.round(r/6.048e8);return Zt(o,t)}};function Yo(t,e){return t.getHours()<12?e.AMPMS[0]:e.AMPMS[1]};function Ae(t,e){return t.getFullYear()<=0?e.ERAS[0]:e.ERAS[1]};function Qo(t,e){return t.getFullYear()<=0?e.ERANAMES[0]:e.ERANAMES[1]};var tr={yyyy:b("FullYear",4),yy:b("FullYear",2,0,!0),y:b("FullYear",1),MMMM:Jt("Month"),MMM:Jt("Month",!0),MM:b("Month",2,1),M:b("Month",1,1),dd:b("Date",2),d:b("Date",1),HH:b("Hours",2),H:b("Hours",1),hh:b("Hours",2,-12),h:b("Hours",1,-12),mm:b("Minutes",2),m:b("Minutes",1),ss:b("Seconds",2),s:b("Seconds",1),sss:b("Milliseconds",3),EEEE:Jt("Day"),EEE:Jt("Day",!0),a:Yo,Z:Go,ww:Yn(2),w:Yn(1),G:Ae,GG:Ae,GGG:Ae,GGGG:Qo};var Zi=/((?:[^yMdHhmsaZEwG']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d+|H+|h+|m+|s+|a|Z|G+|w+))(.*)/,Ji=/^\-?\d+$/;Qn.$inject=["$locale"];function Qn(t){var e=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;function n(t){var n;if(n=t.match(e)){var i=new Date(0),r=0,o=0,u=n[8]?i.setUTCFullYear:i.setFullYear,f=n[8]?i.setUTCHours:i.setHours;if(n[9]){r=int(n[9]+n[10]);o=int(n[9]+n[11])};u.call(i,int(n[1]),int(n[2])-1,int(n[3]));var s=int(n[4]||0)-r,a=int(n[5]||0)-o,l=int(n[6]||0),c=Math.round(parseFloat("0."+(n[7]||0))*1000);f.call(i,s,a,l,c);return i};return t};return function(e,r,o){var c="",s=[],a,l;r=r||"mediumDate";r=t.DATETIME_FORMATS[r]||r;if(f(e)){e=Ji.test(e)?int(e):n(e)};if(y(e)){e=new Date(e)};if(!I(e)){return e}
while(r){l=Zi.exec(r);if(l){s=wt(s,l,1);r=s.pop()}
else{s.push(r);r=null}};if(o&&o==="UTC"){e=new Date(e.getTime());e.setMinutes(e.getMinutes()+e.getTimezoneOffset())};i(s,function(n){a=tr[n];c+=a?a(e,t.DATETIME_FORMATS):n.replace(/(^'|'$)/g,"").replace(/''/g,"'")});return c}};function Zo(){return function(t,e){if(s(e)){e=2};return xt(t,e)}};var Yi=k(h),Qi=k(ht);function Jo(){return function(t,e){if(y(t))t=t.toString();if(!a(t)&&!f(t))return t;if(Math.abs(Number(e))===Infinity){e=Number(e)}
else{e=int(e)};if(e){return e>0?t.slice(0,e):t.slice(e)}
else{return f(t)?"":[]}}};Zn.$inject=["$parse"];function Zn(t){return function(e,n,i){if(!(pt(e)))return e;n=a(n)?n:[n];if(n.length===0){n=["+"]};n=n.map(function(e){var i=!1,n=e||j;if(f(e)){if((e.charAt(0)=="+"||e.charAt(0)=="-")){i=e.charAt(0)=="-";e=e.substring(1)};if(e===""){return r(o,i)};n=t(e);if(n.constant){var s=n();return r(function(t,e){return o(t[s],e[s])},i)}};return r(function(t,e){return o(n(t),n(e))},i)});return ue.call(e).sort(r(c,i));function c(t,e){for(var i=0;i<n.length;i++){var r=n[i](t,e);if(r!==0)return r};return 0};function r(t,e){return e?function(e,n){return t(n,e)}:t};function s(t){switch(typeof t){case"number":case"boolean":case"string":return!0;default:return!1}};function l(t){if(t===null)return"null";if(typeof t.valueOf==="function"){t=t.valueOf();if(s(t))return t};if(typeof t.toString==="function"){t=t.toString();if(s(t))return t};return""};function o(t,e){var n=typeof t,i=typeof e;if(n===i&&n==="object"){t=l(t);e=l(e)};if(n===i){if(n==="string"){t=t.toLowerCase();e=e.toLowerCase()};if(t===e)return 0;return t<e?-1:1}
else{return n<i?-1:1}}}};function Y(t){if(u(t)){t={link:t}};t.restrict=t.restrict||"AC";return k(t)};var Xi=k({restrict:"E",compile:function(t,e){if(!e.href&&!e.xlinkHref&&!e.name){return function(t,e){if(e[0].nodeName.toLowerCase()!=="a")return;var n=U.call(e.prop("href"))==="[object SVGAnimatedString]"?"xlink:href":"href";e.on("click",function(t){if(!e.attr(n)){t.preventDefault()}})}}}});var Dt={};i(jt,function(t,e){if(t=="multiple")return;var n=F("ng-"+e);Dt[n]=function(){return{restrict:"A",priority:100,link:function(t,i,r){t.$watch(r[n],function(t){r.$set(e,!!t)})}}}});i(nn,function(t,e){Dt[e]=function(){return{priority:100,link:function(t,n,i){if(e==="ngPattern"&&i.ngPattern.charAt(0)=="/"){var r=i.ngPattern.match(jr);if(r){i.$set("ngPattern",new RegExp(r[1],r[2]));return}};t.$watch(i[e],function(t){i.$set(e,t)})}}}});i(["src","srcset","href"],function(t){var e=F("ng-"+t);Dt[e]=function(){return{priority:99,link:function(n,i,r){var s=t,o=t;if(t==="href"&&U.call(i.prop("href"))==="[object SVGAnimatedString]"){o="xlinkHref";r.$attr[o]="xlink:href";s=null};r.$observe(e,function(e){if(!e){if(t==="href"){r.$set(o,null)};return};r.$set(o,e);if(J&&s)i.prop(s,r[o])})}}}});var Nt={$addControl:l,$$renameControl:ts,$removeControl:l,$setValidity:l,$setDirty:l,$setPristine:l,$setSubmitted:l},Xe="ng-submitted";function ts(t,e){t.$name=e};Jn.$inject=["$element","$attrs","$scope","$animate","$interpolate"];function Jn(t,e,r,o,s){var a=this,l=[],c=a.$$parentForm=t.parent().controller("form")||Nt;a.$error={};a.$$success={};a.$pending=n;a.$name=s(e.name||e.ngForm||"")(r);a.$dirty=!1;a.$pristine=!0;a.$valid=!0;a.$invalid=!1;a.$submitted=!1;c.$addControl(a);a.$rollbackViewValue=function(){i(l,function(t){t.$rollbackViewValue()})};a.$commitViewValue=function(){i(l,function(t){t.$commitViewValue()})};a.$addControl=function(t){nt(t.$name,"input");l.push(t);if(t.$name){a[t.$name]=t}};a.$$renameControl=function(t,e){var n=t.$name;if(a[n]===t){delete a[n]};a[e]=t;t.$name=e};a.$removeControl=function(t){if(t.$name&&a[t.$name]===t){delete a[t.$name]};i(a.$pending,function(e,n){a.$setValidity(n,null,t)});i(a.$error,function(e,n){a.$setValidity(n,null,t)});i(a.$$success,function(e,n){a.$setValidity(n,null,t)});bt(l,t)};ni({ctrl:this,$element:t,set:function(t,e,n){var i=t[e];if(!i){t[e]=[n]}
else{var r=i.indexOf(n);if(r===-1){i.push(n)}}},unset:function(t,e,n){var i=t[e];if(!i){return};bt(i,n);if(i.length===0){delete t[e]}},parentForm:c,$animate:o});a.$setDirty=function(){o.removeClass(t,Q);o.addClass(t,It);a.$dirty=!0;a.$pristine=!1;c.$setDirty()};a.$setPristine=function(){o.setClass(t,Q,It+" "+Xe);a.$dirty=!1;a.$pristine=!0;a.$submitted=!1;i(l,function(t){t.$setPristine()})};a.$setUntouched=function(){i(l,function(t){t.$setUntouched()})};a.$setSubmitted=function(){o.addClass(t,Xe);a.$submitted=!0;c.$setSubmitted()}};var We=function(t){return["$timeout",function(e){var i={name:"form",restrict:t?"EAC":"E",controller:Jn,compile:function(i,r){i.addClass(Q).addClass(ot);var o=r.name?"name":(t&&r.ngForm?"ngForm":!1);return{pre:function(t,i,r,s){if(!("action" in r)){var l=function(e){t.$apply(function(){s.$commitViewValue();s.$setSubmitted()});e.preventDefault()};Rt(i[0],"submit",l);i.on("$destroy",function(){e(function(){ct(i[0],"submit",l)},0,!1)})};var a=s.$$parentForm;if(o){St(t,null,s.$name,s,s.$name);r.$observe(o,function(e){if(s.$name===e)return;St(t,null,s.$name,n,s.$name);a.$$renameControl(s,e);St(t,null,s.$name,s,s.$name)})};i.on("$destroy",function(){a.$removeControl(s);if(o){St(t,null,r[o],n,s.$name)};d(s,Nt)})}}}};return i}]},Wi=We(),Vi=We(!0),Ui=/\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z)/,zi=/^(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?$/,Ki=/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i,Gi=/^\s*(\-|\+)?(\d+|(\d*(\.\d*)))\s*$/,Ve=/^(\d{4})-(\d{2})-(\d{2})$/,Ue=/^(\d{4})-(\d\d)-(\d\d)T(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,ne=/^(\d{4})-W(\d\d)$/,ze=/^(\d{4})-(\d\d)$/,Ke=/^(\d\d):(\d\d)(?::(\d\d)(\.\d{1,3})?)?$/,Ge={"text":es,"date":At("date",Ve,te(Ve,["yyyy","MM","dd"]),"yyyy-MM-dd"),"datetime-local":At("datetimelocal",Ue,te(Ue,["yyyy","MM","dd","HH","mm","ss","sss"]),"yyyy-MM-ddTHH:mm:ss.sss"),"time":At("time",Ke,te(Ke,["HH","mm","ss","sss"]),"HH:mm:ss.sss"),"week":At("week",ne,ns,"yyyy-Www"),"month":At("month",ze,te(ze,["yyyy","MM"]),"yyyy-MM"),"number":is,"url":rs,"email":os,"radio":ss,"checkbox":as,"hidden":l,"button":l,"submit":l,"reset":l,"file":l};function Ie(t){t.$formatters.push(function(e){return t.$isEmpty(e)?e:e.toString()})};function es(t,e,n,i,r,o){Tt(t,e,n,i,r,o);Ie(i)};function Tt(t,e,n,i,r,o){var u=h(e[0].type);if(!r.android){var l=!1;e.on("compositionstart",function(t){l=!0});e.on("compositionend",function(){l=!1;a()})};var a=function(t){if(s){o.defer.cancel(s);s=null};if(l)return;var r=e.val(),a=t&&t.type;if(u!=="password"&&(!n.ngTrim||n.ngTrim!=="false")){r=m(r)};if(i.$viewValue!==r||(r===""&&i.$$hasNativeValidators)){i.$setViewValue(r,a)}};if(r.hasEvent("input")){e.on("input",a)}
else{var s,c=function(t,e,n){if(!s){s=o.defer(function(){s=null;if(!e||e.value!==n){a(t)}})}};e.on("keydown",function(t){var e=t.keyCode;if(e===91||(15<e&&e<19)||(37<=e&&e<=40))return;c(t,this,this.value)});if(r.hasEvent("paste")){e.on("paste cut",c)}};e.on("change",a);i.$render=function(){e.val(i.$isEmpty(i.$viewValue)?"":i.$viewValue)}};function ns(t,e){if(I(t)){return t};if(f(t)){ne.lastIndex=0;var n=ne.exec(t);if(n){var i=+n[1],l=+n[2],r=0,o=0,s=0,a=0,c=Xn(i),u=(l-1)*7;if(e){r=e.getHours();o=e.getMinutes();s=e.getSeconds();a=e.getMilliseconds()};return new Date(i,0,c.getDate()+u,r,o,s,a)}};return NaN};function te(t,e){return function(n,r){var s,o;if(I(n)){return n};if(f(n)){if(n.charAt(0)=="\""&&n.charAt(n.length-1)=="\""){n=n.substring(1,n.length-1)};if(Ui.test(n)){return new Date(n)};t.lastIndex=0;s=t.exec(n);if(s){s.shift();if(r){o={yyyy:r.getFullYear(),MM:r.getMonth()+1,dd:r.getDate(),HH:r.getHours(),mm:r.getMinutes(),ss:r.getSeconds(),sss:r.getMilliseconds()/1000}}
else{o={yyyy:1970,MM:1,dd:1,HH:0,mm:0,ss:0,sss:0}};i(s,function(t,n){if(n<e.length){o[e[n]]=+t}});return new Date(o.yyyy,o.MM-1,o.dd,o.HH,o.mm,o.ss||0,o.sss*1000||0)}};return NaN}};function At(t,e,i,o){return function(a,l,c,u,f,d,h){ti(a,l,c,u);Tt(a,l,c,u,f,d);var v=u&&u.$options&&u.$options.timezone,p;u.$$parserName=t;u.$parsers.push(function(t){if(u.$isEmpty(t))return null;if(e.test(t)){var r=i(t,p);if(v==="UTC"){r.setMinutes(r.getMinutes()-r.getTimezoneOffset())};return r};return n});u.$formatters.push(function(t){if(t&&!I(t)){throw Ot("datefmt","Expected `{0}` to be a date",t)};if(y(t)){p=t;if(p&&v==="UTC"){var e=60000*p.getTimezoneOffset();p=new Date(p.getTime()+e)};return h("date")(t,o,v)}
else{p=null;return""}});if(r(c.min)||c.ngMin){var g;u.$validators.min=function(t){return!y(t)||s(g)||i(t)>=g};c.$observe("min",function(t){g=b(t);u.$validate()})};if(r(c.max)||c.ngMax){var m;u.$validators.max=function(t){return!y(t)||s(m)||i(t)<=m};c.$observe("max",function(t){m=b(t);u.$validate()})};function y(t){return t&&!(t.getTime&&t.getTime()!==t.getTime())};function b(t){return r(t)?(I(t)?t:i(t)):n}}};function ti(t,e,i,r){var o=e[0],s=r.$$hasNativeValidators=c(o.validity);if(s){r.$parsers.push(function(t){var i=e.prop(Mr)||{};return i.badInput&&!i.typeMismatch?n:t})}};function is(t,e,i,o,a,l){ti(t,e,i,o);Tt(t,e,i,o,a,l);o.$$parserName="number";o.$parsers.push(function(t){if(o.$isEmpty(t))return null;if(Gi.test(t))return parseFloat(t);return n});o.$formatters.push(function(t){if(!o.$isEmpty(t)){if(!y(t)){throw Ot("numfmt","Expected `{0}` to be a number",t)};t=t.toString()};return t});if(r(i.min)||i.ngMin){var u;o.$validators.min=function(t){return o.$isEmpty(t)||s(u)||t>=u};i.$observe("min",function(t){if(r(t)&&!y(t)){t=parseFloat(t,10)};u=y(t)&&!isNaN(t)?t:n;o.$validate()})};if(r(i.max)||i.ngMax){var c;o.$validators.max=function(t){return o.$isEmpty(t)||s(c)||t<=c};i.$observe("max",function(t){if(r(t)&&!y(t)){t=parseFloat(t,10)};c=y(t)&&!isNaN(t)?t:n;o.$validate()})}};function rs(t,e,n,i,r,o){Tt(t,e,n,i,r,o);Ie(i);i.$$parserName="url";i.$validators.url=function(t,e){var n=t||e;return i.$isEmpty(n)||zi.test(n)}};function os(t,e,n,i,r,o){Tt(t,e,n,i,r,o);Ie(i);i.$$parserName="email";i.$validators.email=function(t,e){var n=t||e;return i.$isEmpty(n)||Ki.test(n)}};function ss(t,e,n,i){if(s(n.name)){e.attr("name",Ht())};var r=function(t){if(e[0].checked){i.$setViewValue(n.value,t&&t.type)}};e.on("click",r);i.$render=function(){var t=n.value;e[0].checked=(t==i.$viewValue)};n.$observe("value",i.$render)};function ei(t,e,n,i,o){var s;if(r(i)){s=t(i);if(!s.constant){throw p("ngModel")("constexpr","Expected constant expression for `{0}`, but saw `{1}`.",n,i)};return s(e)};return o};function as(t,e,n,i,r,o,s,a){var l=ei(a,t,"ngTrueValue",n.ngTrueValue,!0),c=ei(a,t,"ngFalseValue",n.ngFalseValue,!1),u=function(t){i.$setViewValue(e[0].checked,t&&t.type)};e.on("click",u);i.$render=function(){e[0].checked=i.$viewValue};i.$isEmpty=function(t){return t===!1};i.$formatters.push(function(t){return O(t,l)});i.$parsers.push(function(t){return t?l:c})};var Be=["$browser","$sniffer","$filter","$parse",function(t,e,n,i){return{restrict:"E",require:["?ngModel"],link:{pre:function(r,o,s,a){if(a[0]){(Ge[h(s.type)]||Ge.text)(r,o,s,a[0],e,t,n,i)}}}}}],Ri=/^(true|false|\d+)$/,Li=function(){return{restrict:"A",priority:100,compile:function(t,e){if(Ri.test(e.ngValue)){return function(t,e,n){n.$set("value",t.$eval(n.ngValue))}}
else{return function(t,e,n){t.$watch(n.ngValue,function(t){n.$set("value",t)})}}}}},Hi=["$compile",function(t){return{restrict:"AC",compile:function(e){t.$$addBindingClass(e);return function(e,i,r){t.$$addBindingInfo(i,r.ngBind);i=i[0];e.$watch(r.ngBind,function(t){i.textContent=t===n?"":t})}}}}],Fi=["$interpolate","$compile",function(t,e){return{compile:function(i){e.$$addBindingClass(i);return function(i,r,o){var s=t(r.attr(o.$attr.ngBindTemplate));e.$$addBindingInfo(r,s.expressions);r=r[0];o.$observe("ngBindTemplate",function(t){r.textContent=t===n?"":t})}}}}],qi=["$sce","$parse","$compile",function(t,e,n){return{restrict:"A",compile:function(i,r){var o=e(r.ngBindHtml),s=e(r.ngBindHtml,function(t){return(t||"").toString()});n.$$addBindingClass(i);return function(e,i,r){n.$$addBindingInfo(i,r.ngBindHtml);e.$watch(s,function(){i.html(t.getTrustedHtml(o(e))||"")})}}}}],Bi=k({restrict:"A",require:"ngModel",link:function(t,e,n,i){i.$viewChangeListeners.push(function(){t.$eval(n.ngChange)})}});function Oe(t,e){t="ngClass"+t;return["$animate",function(n){return{restrict:"AC",link:function(s,a,l){var c;s.$watch(l[t],d,!0);l.$observe("class",function(e){d(s.$eval(l[t]))});if(t!=="ngClass"){s.$watch("$index",function(n,i){var a=n&1;if(a!==(i&1)){var o=r(s.$eval(l[t]));a===e?f(o):h(o)}})};function f(t){var e=u(t,1);l.$addClass(e)};function h(t){var e=u(t,-1);l.$removeClass(e)};function u(t,e){var n=a.data("$classCounts")||{};var r=[];i(t,function(t){if(e>0||n[t]){n[t]=(n[t]||0)+e;if(n[t]===+(e>0)){r.push(t)}}});a.data("$classCounts",n);return r.join(" ")};function p(t,e){var i=o(e,t),r=o(t,e);i=u(i,1);r=u(r,-1);if(i&&i.length){n.addClass(a,i)};if(r&&r.length){n.removeClass(a,r)}};function d(t){if(e===!0||s.$index%2===e){var n=r(t||[]);if(!c){f(n)}
else if(!O(t,c)){var i=r(c);p(i,n)}};c=M(t)}}};function o(t,e){var o=[];outer:for(var i=0;i<t.length;i++){var r=t[i];for(var n=0;n<e.length;n++){if(r==e[n])continue;outer};o.push(r)};return o};function r(t){if(a(t)){return t}
else if(f(t)){return t.split(" ")}
else if(c(t)){var e=[];i(t,function(t,n){if(t){e=e.concat(n.split(" "))}});return e};return t}}]};var Di=Oe("",!0),Pi=Oe("Odd",0),ji=Oe("Even",1),Mi=Y({compile:function(t,e){e.$set("ngCloak",n);t.removeClass("ng-cloak")}});var Ni=[function(){return{restrict:"A",scope:!0,controller:"@",priority:500}}],qe={};var Oi={"blur":!0,"focus":!0};i("click dblclick mousedown mouseup mouseover mouseout mousemove mouseenter mouseleave keydown keyup keypress submit focus blur copy cut paste".split(" "),function(t){var e=F("ng-"+t);qe[e]=["$parse","$rootScope",function(n,i){return{restrict:"A",compile:function(r,o){var s=n(o[e],null,!0);return function(e,n){n.on(t,function(n){var r=function(){s(e,{$event:n})};if(Oi[t]&&i.$$phase){e.$evalAsync(r)}
else{e.$apply(r)}})}}}}]});var Si=["$animate",function(t){return{multiElement:!0,transclude:"element",priority:600,terminal:!0,restrict:"A",$$tlb:!0,link:function(n,i,r,o,s){var c,l,a;n.$watch(r.ngIf,function(n){if(n){if(!l){s(function(n,o){l=o;n[n.length++]=e.createComment(" end ngIf: "+r.ngIf+" ");c={clone:n};t.enter(n,i.parent(),i)})}}
else{if(a){a.remove();a=null};if(l){l.$destroy();l=null};if(c){a=Bt(c.clone);t.leave(a).then(function(){a=null});c=null}}})}}}],Ti=["$templateRequest","$anchorScroll","$animate","$sce",function(t,e,n,i){return{restrict:"ECA",priority:400,terminal:!0,transclude:"element",controller:x.noop,compile:function(o,s){var l=s.ngInclude||s.src,c=s.onload||"",a=s.autoscroll;return function(o,s,u,f,d){var g=0,h,p,m,v=function(){if(p){p.remove();p=null};if(h){h.$destroy();h=null};if(m){n.leave(m).then(function(){p=null});p=m;m=null}};o.$watch(i.parseAsResourceUrl(l),function(i){var u=function(){if(r(a)&&(!a||o.$eval(a))){e()}},l=++g;if(i){t(i,!0).then(function(t){if(l!==g)return;var e=o.$new();f.template=t;var r=d(e,function(t){v();n.enter(t,null,s).then(u)});h=e;m=r;h.$emit("$includeContentLoaded",i);o.$eval(c)},function(){if(l===g){v();o.$emit("$includeContentError",i)}});o.$emit("$includeContentRequested",i)}
else{v();f.template=null}})}}}}],Ai=["$compile",function(t){return{restrict:"ECA",priority:-400,require:"ngInclude",link:function(n,i,r,o){if(/SVG/.test(i[0].toString())){i.empty();t(kn(o.template,e).childNodes)(n,function(t){i.append(t)},{futureParentElement:i});return};i.html(o.template);t(i.contents())(n)}}}],Ii=Y({priority:450,compile:function(){return{pre:function(t,e,n){t.$eval(n.ngInit)}}}});var wi=function(){return{restrict:"A",priority:100,require:"ngModel",link:function(t,e,r,o){var l=e.attr(r.$attr.ngList)||", ",c=r.ngTrim!=="false",u=c?m(l):l,f=function(t){if(s(t))return;var e=[];if(t){i(t.split(u),function(t){if(t)e.push(c?m(t):t)})};return e};o.$parsers.push(f);o.$formatters.push(function(t){if(a(t)){return t.join(l)};return n});o.$isEmpty=function(t){return!t||!t.length}}}},ot="ng-valid",Le="ng-invalid",Q="ng-pristine",It="ng-dirty",ee="ng-untouched",He="ng-touched",Fe="ng-pending",Ot=new p("ngModel"),xi=["$scope","$exceptionHandler","$attrs","$element","$parse","$animate","$timeout","$rootScope","$q","$interpolate",function(t,e,o,a,f,d,h,m,w,C){this.$viewValue=Number.NaN;this.$modelValue=Number.NaN;this.$$rawModelValue=n;this.$validators={};this.$asyncValidators={};this.$parsers=[];this.$formatters=[];this.$viewChangeListeners=[];this.$untouched=!0;this.$touched=!1;this.$pristine=!0;this.$dirty=!1;this.$valid=!0;this.$invalid=!1;this.$error={};this.$$success={};this.$pending=n;this.$name=C(o.name||"",!1)(t);var g=f(o.ngModel),E=g.assign,x=g,S=E,b=null,p,c=this;this.$$setOptions=function(t){c.$options=t;if(t&&t.getterSetter){var e=f(o.ngModel+"()"),n=f(o.ngModel+"($$$p)");x=function(t){var n=g(t);if(u(n)){n=e(t)};return n};S=function(t,e){if(u(g(t))){n(t,{$$$p:c.$modelValue})}
else{E(t,c.$modelValue)}}}
else if(!g.assign){throw Ot("nonassign","Expression '{0}' is non-assignable. Element: {1}",o.ngModel,H(a))}};this.$render=l;this.$isEmpty=function(t){return s(t)||t===""||t===null||t!==t};var k=a.inheritedData("$formController")||Nt,v=0;ni({ctrl:this,$element:a,set:function(t,e){t[e]=!0},unset:function(t,e){delete t[e]},parentForm:k,$animate:d});this.$setPristine=function(){c.$dirty=!1;c.$pristine=!0;d.removeClass(a,It);d.addClass(a,Q)};this.$setDirty=function(){c.$dirty=!0;c.$pristine=!1;d.removeClass(a,Q);d.addClass(a,It);k.$setDirty()};this.$setUntouched=function(){c.$touched=!1;c.$untouched=!0;d.setClass(a,ee,He)};this.$setTouched=function(){c.$touched=!0;c.$untouched=!1;d.setClass(a,He,ee)};this.$rollbackViewValue=function(){h.cancel(b);c.$viewValue=c.$$lastCommittedViewValue;c.$render()};this.$validate=function(){if(y(c.$modelValue)&&isNaN(c.$modelValue)){return};var e=c.$$lastCommittedViewValue,t=c.$$rawModelValue,i=c.$valid,r=c.$modelValue,o=c.$options&&c.$options.allowInvalid;c.$$runValidators(t,e,function(e){if(!o&&i!==e){c.$modelValue=e?t:n;if(c.$modelValue!==r){c.$$writeModelToScope()}}})};this.$$runValidators=function(t,e,r){v++;var a=v;if(!u()){s(!1);return};if(!f()){s(!1);return};d();function u(){var t=c.$$parserName||"parse";if(p===n){o(t,null)}
else{if(!p){i(c.$validators,function(t,e){o(e,null)});i(c.$asyncValidators,function(t,e){o(e,null)})};o(t,p);return p};return!0};function f(){var n=!0;i(c.$validators,function(i,r){var s=i(t,e);n=n&&s;o(r,s)});if(!n){i(c.$asyncValidators,function(t,e){o(e,null)});return!1};return!0};function d(){var r=[],a=!0;i(c.$asyncValidators,function(i,s){var l=i(t,e);if(!Ft(l)){throw Ot("$asyncValidators","Expected asynchronous validator to return a promise but got '{0}' instead.",l)};o(s,n);r.push(l.then(function(){o(s,!0)},function(t){a=!1;o(s,!1)}))});if(!r.length){s(!0)}
else{w.all(r).then(function(){s(a)},l)}};function o(t,e){if(a===v){c.$setValidity(t,e)}};function s(t){if(a===v){r(t)}}};this.$commitViewValue=function(){var t=c.$viewValue;h.cancel(b);if(c.$$lastCommittedViewValue===t&&(t!==""||!c.$$hasNativeValidators)){return};c.$$lastCommittedViewValue=t;if(c.$pristine){this.$setDirty()};this.$$parseAndValidate()};this.$$parseAndValidate=function(){var l=c.$$lastCommittedViewValue,e=l;p=s(e)?n:!0;if(p){for(var i=0;i<c.$parsers.length;i++){e=c.$parsers[i](e);if(s(e)){p=!1;break}}};if(y(c.$modelValue)&&isNaN(c.$modelValue)){c.$modelValue=x(t)};var a=c.$modelValue,r=c.$options&&c.$options.allowInvalid;c.$$rawModelValue=e;if(r){c.$modelValue=e;o()};c.$$runValidators(e,c.$$lastCommittedViewValue,function(t){if(!r){c.$modelValue=t?e:n;o()}});function o(){if(c.$modelValue!==a){c.$$writeModelToScope()}}};this.$$writeModelToScope=function(){S(t,c.$modelValue);i(c.$viewChangeListeners,function(t){try{t()}catch(n){e(n)}})};this.$setViewValue=function(t,e){c.$viewValue=t;if(!c.$options||c.$options.updateOnDefault){c.$$debounceViewValueCommit(e)}};this.$$debounceViewValueCommit=function(e){var i=0,o=c.$options,n;if(o&&r(o.debounce)){n=o.debounce;if(y(n)){i=n}
else if(y(n[e])){i=n[e]}
else if(y(n["default"])){i=n["default"]}};h.cancel(b);if(i){b=h(function(){c.$commitViewValue()},i)}
else if(m.$$phase){c.$commitViewValue()}
else{t.$apply(function(){c.$commitViewValue()})}};t.$watch(function(){var e=x(t);if(e!==c.$modelValue&&(c.$modelValue===c.$modelValue||e===e)){c.$modelValue=c.$$rawModelValue=e;p=n;var r=c.$formatters,o=r.length,i=e;while(o--){i=r[o](i)};if(c.$viewValue!==i){c.$viewValue=c.$$lastCommittedViewValue=i;c.$render();c.$$runValidators(e,i,l)}};return e})}],Ci=["$rootScope",function(t){return{restrict:"A",require:["ngModel","^?form","^?ngModelOptions"],controller:xi,priority:1,compile:function(e){e.addClass(Q).addClass(ee).addClass(ot);return{pre:function(t,e,n,i){var r=i[0],o=i[1]||Nt;r.$$setOptions(i[2]&&i[2].$options);o.$addControl(r);n.$observe("name",function(t){if(r.$name!==t){o.$$renameControl(r,t)}});t.$on("$destroy",function(){o.$removeControl(r)})},post:function(e,n,i,r){var o=r[0];if(o.$options&&o.$options.updateOn){n.on(o.$options.updateOn,function(t){o.$$debounceViewValueCommit(t&&t.type)})};n.on("blur",function(n){if(o.$touched)return;if(t.$$phase){e.$evalAsync(o.$setTouched)}
else{e.$apply(o.$setTouched)}})}}}}}],ki=/(\s+|^)default(\s+|$)/,Ei=function(){return{restrict:"A",controller:["$scope","$attrs",function(t,e){var i=this;this.$options=t.$eval(e.ngModelOptions);if(this.$options.updateOn!==n){this.$options.updateOnDefault=!1;this.$options.updateOn=m(this.$options.updateOn.replace(ki,function(){i.$options.updateOnDefault=!0;return" "}))}
else{this.$options.updateOnDefault=!0}}]}};function ni(t){var e=t.ctrl,s=t.$element,i={},a=t.set,r=t.unset,u=t.parentForm,c=t.$animate;i[Le]=!(i[ot]=s.hasClass(ot));e.$setValidity=f;function f(t,i,s){if(i===n){d("$pending",t,s)}
else{h("$pending",t,s)};if(!yt(i)){r(e.$error,t,s);r(e.$$success,t,s)}
else{if(i){r(e.$error,t,s);a(e.$$success,t,s)}
else{a(e.$error,t,s);r(e.$$success,t,s)}};if(e.$pending){o(Fe,!0);e.$valid=e.$invalid=n;l("",null)}
else{o(Fe,!1);e.$valid=ii(e.$error);e.$invalid=!e.$valid;l("",e.$valid)};var c;if(e.$pending&&e.$pending[t]){c=n}
else if(e.$error[t]){c=!1}
else if(e.$$success[t]){c=!0}
else{c=null};l(t,c);u.$setValidity(t,c,e)};function d(t,n,i){if(!e[t]){e[t]={}};a(e[t],n,i)};function h(t,i,o){if(e[t]){r(e[t],i,o)};if(ii(e[t])){e[t]=n}};function o(t,e){if(e&&!i[t]){c.addClass(s,t);i[t]=!0}
else if(!e&&i[t]){c.removeClass(s,t);i[t]=!1}};function l(t,e){t=t?"-"+bn(t,"-"):"";o(ot+t,e===!0);o(Le+t,e===!1)}};function ii(t){if(t){for(var e in t){return!1}};return!0};var bi=Y({terminal:!0,priority:1000});var di=["$locale","$interpolate",function(t,e){var n=/{}/g,r=/^when(Minus)?(.+)$/;return{restrict:"EA",link:function(o,s,a){var u=a.count,m=a.$attr.when&&s.attr(a.$attr.when),f=a.offset||0,l=o.$eval(m)||{},d={},g=e.startSymbol(),v=e.endSymbol(),y=g+u+"-"+f+v,p=x.noop,c;i(a,function(t,e){var n=r.exec(e);if(n){var i=(n[1]?"-":"")+h(n[2]);l[i]=s.attr(a.$attr[e])}});i(l,function(t,i){d[i]=e(t.replace(n,y))});o.$watch(u,function(e){var n=parseFloat(e),i=isNaN(n);if(!i&&!(n in l)){n=t.pluralCat(n-f)};if((n!==c)&&!(i&&isNaN(c))){p();p=o.$watch(d[n],b);c=n}});function b(t){s.text(t||"")}}}}],hi=["$parse","$animate",function(t,r){var a="$$NG_REMOVED",s=p("ngRepeat"),l=function(t,e,n,i,r,o,s){t[n]=i;if(r)t[r]=o;t.$index=e;t.$first=(e===0);t.$last=(e===(s-1));t.$middle=!(t.$first||t.$last);t.$odd=!(t.$even=(e&1)===0)},c=function(t){return t.clone[0]},u=function(t){return t.clone[t.clone.length-1]};return{restrict:"A",multiElement:!0,transclude:"element",priority:1000,terminal:!0,$$tlb:!0,compile:function(f,d){var v=d.ngRepeat,T=e.createComment(" end ngRepeat: "+v+" "),h=v.match(/^\s*([\s\S]+?)\s+in\s+([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+track\s+by\s+([\s\S]+?))?\s*$/);if(!h){throw s("iexp","Expected expression in form of '_item_ in _collection_[ track by _id_]' but got '{0}'.",v)};var k=h[1],S=h[2],p=h[3],E=h[4];h=k.match(/^(?:(\s*[\$\w]+)|\(\s*([\$\w]+)\s*,\s*([\$\w]+)\s*\))$/);if(!h){throw s("iidexp","'_item_' in '_item_ in _collection_' should be an identifier or '(_key_, _value_)' expression, but got '{0}'.",k)};var w=h[3]||h[1],g=h[2];if(p&&(!/^[$a-zA-Z_][$a-zA-Z0-9_]*$/.test(p)||/^(null|undefined|this|\$index|\$first|\$middle|\$last|\$even|\$odd|\$parent|\$root|\$id)$/.test(p))){throw s("badident","alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.",p)};var y,b,x,C,m={$id:it};if(E){y=t(E)}
else{x=function(t,e){return it(e)};C=function(t){return t}};return function(t,e,f,d,h){if(y){b=function(e,n,i){if(g)m[g]=e;m[w]=n;m.$index=i;return y(t,m)}};var k=N();t.$watchCollection(S,function(f){var d,H,D=e[0],A,P=N(),I,S,O,y,L,E,m,j,M;if(p){t[p]=f};if(pt(f)){E=f;L=b||x}
else{L=b||C;E=[];for(var R in f){if(f.hasOwnProperty(R)&&R.charAt(0)!="$"){E.push(R)}};E.sort()};I=E.length;j=new Array(I);for(d=0;d<I;d++){S=(f===E)?d:E[d];O=f[S];y=L(S,O,d);if(k[y]){m=k[y];delete k[y];P[y]=m;j[d]=m}
else if(P[y]){i(j,function(t){if(t&&t.scope)k[t.id]=t});throw s("dupes","Duplicates in a repeater are not allowed. Use 'track by' expression to specify unique keys. Repeater: {0}, Duplicate key: {1}, Duplicate value: {2}",v,y,O)}
else{j[d]={id:y,scope:n,clone:n};P[y]=!0}};for(var F in k){m=k[F];M=Bt(m.clone);r.leave(M);if(M[0].parentNode){for(d=0,H=M.length;d<H;d++){M[d][a]=!0}};m.scope.$destroy()};for(d=0;d<I;d++){S=(f===E)?d:E[d];O=f[S];m=j[d];if(m.scope){A=D;do{A=A.nextSibling}
while(A&&A[a]);if(c(m)!=A){r.move(Bt(m.clone),null,o(D))};D=u(m);l(m.scope,d,w,O,g,S,I)}
else{h(function(t,e){m.scope=e;var n=T.cloneNode(!1);t[t.length++]=n;r.enter(t,null,o(D));D=n;m.clone=t;P[m.id]=m;l(m.scope,d,w,O,g,S,I)})}};k=P})}}}}],Me="ng-hide",Re="ng-hide-animate",pi=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngShow,function(e){t[e?"removeClass":"addClass"](n,Me,{tempClasses:Re})})}}}],mi=["$animate",function(t){return{restrict:"A",multiElement:!0,link:function(e,n,i){e.$watch(i.ngHide,function(e){t[e?"addClass":"removeClass"](n,Me,{tempClasses:Re})})}}}],gi=Y(function(t,e,n){t.$watch(n.ngStyle,function(t,n){if(n&&(t!==n)){i(n,function(t,n){e.css(n,"")})};if(t)e.css(t)},!0)}),vi=["$animate",function(t){return{restrict:"EA",require:"ngSwitch",controller:["$scope",function(){this.cases={}}],link:function(n,r,o,s){var f=o.ngSwitch||o.on,u=[],c=[],a=[],l=[],d=function(t,e){return function(){t.splice(e,1)}};n.$watch(f,function(n){var r,o;for(r=0,o=a.length;r<o;++r){t.cancel(a[r])};a.length=0;for(r=0,o=l.length;r<o;++r){var h=Bt(c[r].clone);l[r].$destroy();var f=a[r]=t.leave(h);f.then(d(a,r))};c.length=0;l.length=0;if((u=s.cases["!"+n]||s.cases["?"])){i(u,function(n){n.transclude(function(i,r){l.push(r);var o=n.element;i[i.length++]=e.createComment(" end ngSwitchWhen: ");var s={clone:i};c.push(s);t.enter(i,o.parent(),o)})})}})}}}],yi=Y({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["!"+n.ngSwitchWhen]=(i.cases["!"+n.ngSwitchWhen]||[]);i.cases["!"+n.ngSwitchWhen].push({transclude:r,element:e})}});var fi=Y({transclude:"element",priority:1200,require:"^ngSwitch",multiElement:!0,link:function(t,e,n,i,r){i.cases["?"]=(i.cases["?"]||[]);i.cases["?"].push({transclude:r,element:e})}});var ui=Y({restrict:"EAC",link:function(t,e,n,i,r){if(!r){throw p("ngTransclude")("orphan","Illegal use of ngTransclude directive in the template! No parent directive that requires a transclusion found. Element: {0}",H(e))};r(function(t){e.empty();e.append(t)})}});var ai=["$templateCache",function(t){return{restrict:"E",terminal:!0,compile:function(e,n){if(n.type=="text/ng-template"){var i=n.id,r=e[0].text;t.put(i,r)}}}}],li=p("ngOptions"),ci=k({restrict:"A",terminal:!0});var ri=["$compile","$parse",function(t,s){var c=/^\s*([\s\S]+?)(?:\s+as\s+([\s\S]+?))?(?:\s+group\s+by\s+([\s\S]+?))?\s+for\s+(?:([\$\w][\$\w]*)|(?:\(\s*([\$\w][\$\w]*)\s*,\s*([\$\w][\$\w]*)\s*\)))\s+in\s+([\s\S]+?)(?:\s+track\s+by\s+([\s\S]+?))?$/,u={$setViewValue:l};return{restrict:"E",require:["select","?ngModel"],controller:["$element","$scope","$attrs",function(t,e,n){var i=this,o={},s=u,a,r;i.databound=n.ngModel;i.init=function(t,e,n){s=t;a=e;r=n};i.addOption=function(e,n){nt(e,"\"option value\"");o[e]=!0;if(s.$viewValue==e){t.val(e);if(r.parent())r.remove()};if(n&&n[0].hasAttribute("selected")){n[0].selected=!0}};i.removeOption=function(t){if(this.hasOption(t)){delete o[t];if(s.$viewValue===t){this.renderUnknownOption(t)}}};i.renderUnknownOption=function(e){var n="? "+it(e)+" ?";r.val(n);t.prepend(r);t.val(n);r.prop("selected",!0)};i.hasOption=function(t){return o.hasOwnProperty(t)};e.$on("$destroy",function(){i.renderUnknownOption=l})}],link:function(l,u,f,d){if(!d[1])return;var y=d[0],m=d[1],p=f.multiple,w=f.ngOptions,h=!1,x,C=!1,k=o(e.createElement("option")),S=o(e.createElement("optgroup")),g=k.clone();for(var v=0,b=u.children(),E=b.length;v<E;v++){if(b[v].value===""){x=h=b.eq(v);break}};y.init(m,h,g);if(p){m.$isEmpty=function(t){return!t||t.length===0}};if(w)I(l,u,m);else if(p)A(l,u,m);else T(l,u,m,y);function T(t,e,n,i){n.$render=function(){var t=n.$viewValue;if(i.hasOption(t)){if(g.parent())g.remove();e.val(t);if(t==="")x.prop("selected",!0)}
else{if(t==null&&x){e.val("")}
else{i.renderUnknownOption(t)}}};e.on("change",function(){t.$apply(function(){if(g.parent())g.remove();n.$setViewValue(e.val())})})};function A(t,e,n){var o;n.$render=function(){var t=new kt(n.$viewValue);i(e.find("option"),function(e){e.selected=r(t.get(e.value))})};t.$watch(function(){if(!O(o,n.$viewValue)){o=M(n.$viewValue);n.$render()}});e.on("change",function(){t.$apply(function(){var t=[];i(e.find("option"),function(e){if(e.selected){t.push(e.value)}});n.$setViewValue(t)})})};function I(e,o,l){var u;if(!(u=w.match(c))){throw li("iexp","Expected expression in form of '_select_ (as _label_)? for (_key_,)?_value_ in _collection_' but got '{0}'. Element: {1}",w,H(o))};var A=s(u[2]||u[1]),N=u[4]||u[6],D=/ as /.test(u[0])&&u[1],b=D?s(D):null,m=u[5],M=s(u[3]||""),P=s(u[2]?u[1]:N),x=s(u[7]),R=u[8],f=R?s(u[8]):null,E={},g=[[{element:o,label:""}]],T={};if(h){t(h)(e);h.removeClass("ng-scope");h.remove()};o.empty();o.on("change",L);l.$render=O;e.$watchCollection(x,I);e.$watchCollection(F,I);if(p){e.$watchCollection(function(){return l.$modelValue},I)};function d(t,n,i){T[N]=i;if(m)T[m]=n;return t(e,T)};function L(){e.$apply(function(){var r=x(e)||[],t;if(p){t=[];i(o.val(),function(e){e=f?E[e]:e;t.push(j(e,r[e]))})}
else{var n=f?E[o.val()]:o.val();t=j(n,r[n])};l.$setViewValue(t);O()})};function j(t,e){if(t==="?"){return n}
else if(t===""){return null}
else{var i=b?b:P;return d(i,t,e)}};function F(){var t=x(e),n;if(t&&a(t)){n=new Array(t.length);for(var i=0,o=t.length;i<o;i++){n[i]=d(A,i,t[i])};return n}
else if(t){n={};for(var r in t){if(t.hasOwnProperty(r)){n[r]=d(A,r,t[r])}}};return n};function q(t){var e;if(p){if(f&&a(t)){e=new kt([]);for(var n=0;n<t.length;n++){e.put(d(f,null,t[n]),!0)}}
else{e=new kt(t)}}
else if(f){t=d(f,null,t)};return function(n,i){var o;if(f){o=f}
else if(b){o=b}
else{o=P};if(p){return r(e.remove(d(o,n,i)))}
else{return t===d(o,n,i)}}};function I(){if(!C){e.$$postDigest(O);C=!0}};function v(t,e,n){t[e]=t[e]||0;t[e]+=(n?1:-1)};function O(){C=!1;var P={"":[]},F=[""],u,s,t,b,w,a,z=l.$viewValue,B=x(e)||[],W=m?cn(B):B,I,R,K,L,O,n,N={},V,G=q(z),H=!1,c,D,j,U;E={};for(n=0;L=W.length,n<L;n++){I=n;if(m){I=W[n];if(I.charAt(0)==="$")continue};R=B[I];u=d(M,I,R)||"";if(!(s=P[u])){s=P[u]=[];F.push(u)};V=G(I,R);H=H||V;j=d(A,I,R);j=r(j)?j:"";U=f?f(e,T):(m?W[n]:n);if(f){E[U]=I};s.push({id:U,label:j,selected:V})};if(!p){if(h||z===null){P[""].unshift({id:"",label:"",selected:!H})}
else if(!H){P[""].unshift({id:"?",label:"",selected:!0})}};for(O=0,K=F.length;O<K;O++){u=F[O];s=P[u];if(g.length<=O){b={element:S.clone().attr("label",u),label:s.label};w=[b];g.push(w);o.append(b.element)}
else{w=g[O];b=w[0];if(b.label!=u){b.element.attr("label",b.label=u)}};c=null;for(n=0,L=s.length;n<L;n++){t=s[n];if((a=w[n+1])){c=a.element;if(a.label!==t.label){v(N,a.label,!1);v(N,t.label,!0);c.text(a.label=t.label);c.prop("label",a.label)};if(a.id!==t.id){c.val(a.id=t.id)};if(c[0].selected!==t.selected){c.prop("selected",(a.selected=t.selected));if(J){c.prop("selected",a.selected)}}}
else{if(t.id===""&&h){D=h}
else{(D=k.clone()).val(t.id).prop("selected",t.selected).attr("selected",t.selected).prop("label",t.label).text(t.label)};w.push(a={element:D,label:t.label,id:t.id,selected:t.selected});v(N,t.label,!0);if(c){c.after(D)}
else{b.element.append(D)};c=D}};n++;while(w.length>n){t=w.pop();v(N,t.label,!1);t.element.remove()}}
while(g.length>O){s=g.pop();for(n=1;n<s.length;++n){v(N,s[n].label,!1)};s[0].element.remove()};i(N,function(t,e){if(t>0){y.addOption(e)}
else if(t<0){y.removeOption(e)}})}}}}}],oi=["$interpolate",function(t){var e={addOption:l,removeOption:l};return{restrict:"E",priority:100,compile:function(n,i){if(s(i.value)){var r=t(n.text(),!0);if(!r){i.$set("value",n.text())}};return function(t,n,i){var s="$selectController",a=n.parent(),o=a.data(s)||a.parent().data(s);if(!o||!o.databound){o=e};if(r){t.$watch(r,function(t,e){i.$set("value",t);if(e!==t){o.removeOption(e)};o.addOption(t,n)})}
else{o.addOption(i.value,n)};n.on("$destroy",function(){o.removeOption(i.value)})}}}}],si=k({restrict:"E",terminal:!1});var Ne=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(!i)return;n.required=!0;i.$validators.required=function(t,e){return!n.required||!i.$isEmpty(e)};n.$observe("required",function(){i.$validate()})}}},De=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,i,r){if(!r)return;var o,a=i.ngPattern||i.pattern;i.$observe("pattern",function(t){if(f(t)&&t.length>0){t=new RegExp("^"+t+"$")};if(t&&!t.test){throw p("ngPattern")("noregexp","Expected {0} to be a RegExp but was {1}. Element: {2}",a,t,H(e))};o=t||n;r.$validate()});r.$validators.pattern=function(t){return r.$isEmpty(t)||s(o)||o.test(t)}}}},Pe=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(!i)return;var r=-1;n.$observe("maxlength",function(t){var e=int(t);r=isNaN(e)?-1:e;i.$validate()});i.$validators.maxlength=function(t,e){return(r<0)||i.$isEmpty(e)||(e.length<=r)}}}},je=function(){return{restrict:"A",require:"?ngModel",link:function(t,e,n,i){if(!i)return;var r=0;n.$observe("minlength",function(t){r=int(t)||0;i.$validate()});i.$validators.minlength=function(t,e){return i.$isEmpty(e)||e.length>=r}}}};if(t.angular.bootstrap){console.log("WARNING: Tried to load angular more than once.");return};Gr();Qr(x);o(e).ready(function(){Ur(e,yn)})})(window,document);!window.angular.$$csp()&&window.angular.element(document).find("head").prepend("<style type=\"text/css\">@charset \"UTF-8\";[ng\\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none !important;}ng\\:form{display:block;}</style>");!function(){"use strict";function t(t,e,n){return{restrict:"EA",replace:!0,scope:{videoId:"=?",playlist:"=?",ratio:"=?",loop:"=?",mute:"=?",start:"=?",end:"=?",contentZIndex:"=?",allowClickEvents:"=?",mobileImage:"=?",playerCallback:"&?"},transclude:!0,template:"<div><div></div><div ng-transclude></div></div>",link:function(i,r){function T(t,e){var n;return function(){var i=this,r=arguments,o=function(){n=null,t.apply(i,r)};clearTimeout(n),n=setTimeout(o,e)}};function h(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),r=t.indexOf("Trident/"),n=t.indexOf("Edge/");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(r>0){var i=t.indexOf("rv:");return parseInt(t.substring(i+3,t.indexOf(".",i)),10)};return n>0?parseInt(t.substring(n+5,t.indexOf(".",n)),10):!1};function A(t,e){var n=["top","right","bottom","left"],i=function(n,i){return n[i]=parseInt(e.call(f,t+"-"+i),10),n};return n.reduce(i,{})};function I(t,e){function n(){var t,r=Array.prototype.slice.call(arguments),i=0,o=function(e,n){return t[n]?e+t[n]:e};for(var n in e)e.hasOwnProperty(n)&&(t=e[n],i+=r.reduce(o,0));return i};return{width:t.width+n("left","right"),height:h()&&h()<12?t.height:t.height+n("top","bottom")}};function O(){var t=r.children().eq(1),o=!!t.children().length,e=Array.prototype.slice.call(r.parent().children());if(r.parent().css({position:"relative",overflow:"hidden"}),!o){r.css({position:"absolute",left:"0",top:"0"});var n=e.indexOf(r[0]);n>-1&&e.splice(n,1),t=angular.element(e)};t.css({position:"relative",zIndex:i.contentZIndex||99})};function N(){f=t.getComputedStyle(r.parent()[0]);var n=["width","height"],e=["border","margin"];return h()&&h()<12&&e.push("padding"),n=n.reduce(function(t,e){return t[e]=parseInt(f.getPropertyValue(e),10),t},{}),e=e.reduce(function(t,e){return t[e]=A(e,f.getPropertyValue),t},{}),I(n,e)};function D(){var t=parseInt(s.width/i.ratio,10),n=parseInt(s.height*i.ratio,10),e=s.height<t;return{width:e?s.width:n,height:e?t:s.height}};function C(){O(),s=N(),a=D()};function k(){var t={zIndex:1,position:"absolute",width:a.width+"px",height:a.height+"px",left:parseInt((s.width-a.width)/2,10)+"px",top:parseInt((s.height-a.height)/2,10)+"px"};i.allowClickEvents||(t.pointerEvents="none"),l.css(t)};function m(t){t=t||i,o.seekTo(t.start||0)};function E(t){var e,n;t=t||i,e=t.end?t.end-(t.start||0):i.start?o.getDuration()-t.start:o.getDuration(),n=1e3*e,c=setTimeout(function(){i.playlist?o.nextVideo():m(t)},n)};function P(){var t=i.playlist[o.getPlaylistIndex()];E(t)};function j(){x&&n(function(){x({player:o})}),i.playlist&&(o.loadPlaylist(d),i.loop&&o.setLoop(!0)),i.mute&&!o.isMuted()?o.mute():o.isMuted()&&o.unMute(),m(),i.$on("$destroy",function(){c&&clearTimeout(c),angular.element(t).off("resize",w),o.destroy()})};function M(t){if(t.data===YT.PlayerState.PLAYING&&(l.css("display","block"),!i.playlist&&i.loop&&E(),i.playlist&&i.loop&&P()),t.data===YT.PlayerState.UNSTARTED&&i.playlist){var e=i.playlist[o.getPlaylistIndex()],n=void 0===e.mute?i.mute:e.mute;u=e.mobileImage||i.mobileImage||"//img.youtube.com/vi/"+e.videoId+"/maxresdefault.jpg",g(u),l.css("display","none"),m(e),n||n&&i.mute?o.isMuted()||o.mute():n&&i.mute||o.isMuted()&&o.unMute()}};function R(){C();var t={autoplay:1,controls:0,iv_load_policy:3,cc_load_policy:0,modestbranding:1,playsinline:1,rel:0,showinfo:0,playlist:i.videoId};o=new YT.Player(p,{width:a.width,height:a.height,videoId:i.videoId,playerVars:t,events:{onReady:j,onStateChange:M}}),l=r.children().eq(0),l.css("display","none"),k()};function g(t){r.parent().css({backgroundImage:"url("+t+")",backgroundSize:"cover",backgroundPosition:"center center"})};var f,p,o,s,a,d,c,S=document.querySelector("script[src=\"//www.youtube.com/iframe_api\"]"),l=r.children().eq(0),x=i.playerCallback,u=i.mobileImage||"//img.youtube.com/vi/"+i.videoId+"/maxresdefault.jpg";if(p="player"+Array.prototype.slice.call(document.querySelectorAll("div[video-id]")).indexOf(r[0]),l.attr("id",p),i.ratio=i.ratio||16/9,i.loop=void 0===i.loop?!0:i.loop,i.mute=void 0===i.mute?!0:i.mute,!i.videoId&&!i.playlist)throw new Error("Either video-id or playlist must be defined.");if(i.videoId&&i.playlist)throw new Error("Both video-id and playlist cannot be defined, please choose one or the other.");i.playlist&&(d=i.playlist.map(function(t){return t.videoId}));var w=T(function(){C(),k()},300);if(g(u),!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)){if(!t.youTubeIframeAPIReady){var b=e.defer();t.youTubeIframeAPIReady=b.promise,t.onYouTubeIframeAPIReady=function(){b.resolve()}};if(!S){var y=document.createElement("script");y.src="//www.youtube.com/iframe_api";var v=document.getElementsByTagName("script")[0];v.parentNode.insertBefore(y,v)};t.youTubeIframeAPIReady.then(R),angular.element(t).on("resize",w)};i.$watch("videoId",function(t,e){t&&e&&t!==e&&(clearTimeout(c),u=i.mobileImage||"//img.youtube.com/vi/"+t+"/maxresdefault.jpg",g(u),l.css("display","none"),o.loadVideoById(t))}),i.$watchCollection("playlist",function(t,e){t&&e&&t!==e&&(clearTimeout(c),d=t.map(function(t){return t.videoId}),o.loadPlaylist(d),i.loop&&o.setLoop(!0))})}}};angular.module("angularVideoBg",[]),angular.module("angularVideoBg").directive("videoBg",t),t.$inject=["$window","$q","$timeout"]}();if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1||e[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQuery),+function(t){"use strict";function e(){var n=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in e)if(void 0!==n.style[t])return{end:e[t]};return!1};t.fn.emulateTransitionEnd=function(e){var n=!1,r=this;t(this).one("bsTransitionEnd",function(){n=!0});var i=function(){n||t(r).trigger(t.support.transition.end)};return setTimeout(i,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(t){"use strict";function r(n){return this.each(function(){var i=t(this),r=i.data("bs.alert");r||i.data("bs.alert",r=new e(this)),"string"==typeof n&&r[n].call(i)})};var n="[data-dismiss=\"alert\"]",e=function(e){t(e).on("click",n,this.close)};e.VERSION="3.3.6",e.TRANSITION_DURATION=150,e.prototype.close=function(n){function s(){i.detach().trigger("closed.bs.alert").remove()};var o=t(this),r=o.attr("data-target");r||(r=o.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));var i=t(r);n&&n.preventDefault(),i.length||(i=o.closest(".alert")),i.trigger(n=t.Event("close.bs.alert")),n.isDefaultPrevented()||(i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s())};var i=t.fn.alert;t.fn.alert=r,t.fn.alert.Constructor=e,t.fn.alert.noConflict=function(){return t.fn.alert=i,this},t(document).on("click.bs.alert.data-api",n,e.prototype.close)}(jQuery),+function(t){"use strict";function n(n){return this.each(function(){var r=t(this),i=r.data("bs.button"),o="object"==typeof n&&n;i||r.data("bs.button",i=new e(this,o)),"toggle"==n?i.toggle():n&&i.setState(n)})};var e=function(n,i){this.$element=t(n),this.options=t.extend({},e.DEFAULTS,i),this.isLoading=!1};e.VERSION="3.3.6",e.DEFAULTS={loadingText:"loading..."},e.prototype.setState=function(e){var i="disabled",n=this.$element,o=n.is("input")?"val":"html",r=n.data();e+="Text",null==r.resetText&&n.data("resetText",n[o]()),setTimeout(t.proxy(function(){n[o](null==r[e]?this.options[e]:r[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},e.prototype.toggle=function(){var e=!0,n=this.$element.closest("[data-toggle=\"buttons\"]");if(n.length){var t=this.$element.find("input");"radio"==t.prop("type")?(t.prop("checked")&&(e=!1),n.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==t.prop("type")&&(t.prop("checked")!==this.$element.hasClass("active")&&(e=!1),this.$element.toggleClass("active")),t.prop("checked",this.$element.hasClass("active")),e&&t.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);i.hasClass("btn")||(i=i.closest(".btn")),n.call(i,"toggle"),t(e.target).is("input[type=\"radio\"]")||t(e.target).is("input[type=\"checkbox\"]")||e.preventDefault()}).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";function n(n){return this.each(function(){var r=t(this),i=r.data("bs.carousel"),o=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n),s="string"==typeof n?n:o.slide;i||r.data("bs.carousel",i=new e(this,o)),"number"==typeof n?i.to(n):s?i[s]():o.interval&&i.pause().cycle()})};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))};e.VERSION="3.3.6",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),o="prev"==t&&0===n||"next"==t&&n==this.$items.length-1;if(o&&!this.options.wrap)return e;var i="prev"==t?-1:1,r=(n+i)%this.$items.length;return this.$items.eq(r)},e.prototype.to=function(t){var n=this,e=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){n.to(t)}):e==t?this.pause().cycle():this.slide(t>e?"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(){return this.sliding?void 0:this.slide("next")},e.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},e.prototype.slide=function(n,i){var s=this.$element.find(".item.active"),r=i||this.getItemForDirection(n,s),f=this.interval,o="next"==n?"left":"right",d=this;if(r.hasClass("active"))return this.sliding=!1;var c=r[0],u=t.Event("slide.bs.carousel",{relatedTarget:c,direction:o});if(this.$element.trigger(u),!u.isDefaultPrevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=t(this.$indicators.children()[this.getItemIndex(r)]);l&&l.addClass("active")};var a=t.Event("slid.bs.carousel",{relatedTarget:c,direction:o});return t.support.transition&&this.$element.hasClass("slide")?(r.addClass(n),r[0].offsetWidth,s.addClass(o),r.addClass(o),s.one("bsTransitionEnd",function(){r.removeClass([n,o].join(" ")).addClass("active"),s.removeClass(["active",o].join(" ")),d.sliding=!1,setTimeout(function(){d.$element.trigger(a)},0)}).emulateTransitionEnd(e.TRANSITION_DURATION)):(s.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(a)),f&&this.cycle(),this}};var r=t.fn.carousel;t.fn.carousel=n,t.fn.carousel.Constructor=e,t.fn.carousel.noConflict=function(){return t.fn.carousel=r,this};var i=function(e){var a,i=t(this),r=t(i.attr("data-target")||(a=i.attr("href"))&&a.replace(/.*(?=#[^\s]+$)/,""));if(r.hasClass("carousel")){var s=t.extend({},r.data(),i.data()),o=i.attr("data-slide-to");o&&(s.interval=!1),n.call(r,s),o&&r.data("bs.carousel").to(o),e.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",i).on("click.bs.carousel.data-api","[data-slide-to]",i),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";function i(e){var n,i=e.attr("data-target")||(n=e.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,"");return t(i)};function n(n){return this.each(function(){var r=t(this),i=r.data("bs.collapse"),o=t.extend({},e.DEFAULTS,r.data(),"object"==typeof n&&n);!i&&o.toggle&&/show|hide/.test(n)&&(o.toggle=!1),i||r.data("bs.collapse",i=new e(this,o)),"string"==typeof n&&i[n]()})};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()};e.VERSION="3.3.6",e.TRANSITION_DURATION=350,e.DEFAULTS={toggle:!0},e.prototype.dimension=function(){var t=this.$element.hasClass("width");return t?"width":"height"},e.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var o,i=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(i&&i.length&&(o=i.data("bs.collapse"),o&&o.transitioning))){var a=t.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){i&&i.length&&(n.call(i,"hide"),o||i.data("bs.collapse",null));var r=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[r](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")[r](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return s.call(this);var l=t.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[r](this.$element[0][l])}}}},e.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var r=t.Event("hide.bs.collapse");if(this.$element.trigger(r),!r.isDefaultPrevented()){var n=this.dimension();this.$element[n](this.$element[n]())[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 i=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[n](0).one("bsTransitionEnd",t.proxy(i,this)).emulateTransitionEnd(e.TRANSITION_DURATION):i.call(this)}}},e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},e.prototype.getParent=function(){return t(this.options.parent).find("[data-toggle=\"collapse\"][data-parent=\""+this.options.parent+"\"]").each(t.proxy(function(e,n){var r=t(n);this.addAriaAndCollapsedClass(i(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=n,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=i(r),s=o.data("bs.collapse"),a=s?"toggle":r.data();n.call(o,a)})}(jQuery),+function(t){"use strict";function i(e){var n=e.attr("data-target");n||(n=e.attr("href"),n=n&&/#[A-Za-z]/.test(n)&&n.replace(/.*(?=#[^\s]*$)/,""));var i=n&&t(n);return i&&i.length?i:e.parent()};function r(e){e&&3===e.which||(t(s).remove(),t(n).each(function(){var r=t(this),n=i(r),o={relatedTarget:this};n.hasClass("open")&&(e&&"click"==e.type&&/input|textarea/i.test(e.target.tagName)&&t.contains(n[0],e.target)||(n.trigger(e=t.Event("hide.bs.dropdown",o)),e.isDefaultPrevented()||(r.attr("aria-expanded","false"),n.removeClass("open").trigger(t.Event("hidden.bs.dropdown",o)))))}))};function a(n){return this.each(function(){var i=t(this),r=i.data("bs.dropdown");r||i.data("bs.dropdown",r=new e(this)),"string"==typeof n&&r[n].call(i)})};var s=".dropdown-backdrop",n="[data-toggle=\"dropdown\"]",e=function(e){t(e).on("click.bs.dropdown",this.toggle)};e.VERSION="3.3.6",e.prototype.toggle=function(e){var o=t(this);if(!o.is(".disabled, :disabled")){var n=i(o),a=n.hasClass("open");if(r(),!a){"ontouchstart"in document.documentElement&&!n.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",r);var s={relatedTarget:this};if(n.trigger(e=t.Event("show.bs.dropdown",s)),e.isDefaultPrevented())return;o.trigger("focus").attr("aria-expanded","true"),n.toggleClass("open").trigger(t.Event("shown.bs.dropdown",s))};return!1}},e.prototype.keydown=function(e){if(/(38|40|27|32)/.test(e.which)&&!/input|textarea/i.test(e.target.tagName)){var a=t(this);if(e.preventDefault(),e.stopPropagation(),!a.is(".disabled, :disabled")){var s=i(a),l=s.hasClass("open");if(!l&&27!=e.which||l&&27==e.which)return 27==e.which&&s.find(n).trigger("focus"),a.trigger("click");var c=" li:not(.disabled):visible a",o=s.find(".dropdown-menu"+c);if(o.length){var r=o.index(e.target);38==e.which&&r>0&&r--,40==e.which&&r<o.length-1&&r++,~r||(r=0),o.eq(r).trigger("focus")}}}};var o=t.fn.dropdown;t.fn.dropdown=a,t.fn.dropdown.Constructor=e,t.fn.dropdown.noConflict=function(){return t.fn.dropdown=o,this},t(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(t){t.stopPropagation()}).on("click.bs.dropdown.data-api",n,e.prototype.toggle).on("keydown.bs.dropdown.data-api",n,e.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",e.prototype.keydown)}(jQuery),+function(t){"use strict";function n(n,i){return this.each(function(){var o=t(this),r=o.data("bs.modal"),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof n&&n);r||o.data("bs.modal",r=new e(this,s)),"string"==typeof n?r[n](i):s.show&&r.show(i)})};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.options.remote&&this.$element.find(".modal-content").load(this.options.remote,t.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};e.VERSION="3.3.6",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 o=t.support.transition&&i.$element.hasClass("fade");i.$element.parent().length||i.$element.appendTo(i.$body),i.$element.show().scrollTop(0),i.adjustDialog(),o&&i.$element[0].offsetWidth,i.$element.addClass("in"),i.enforceFocus();var r=t.Event("shown.bs.modal",{relatedTarget:n});o?i.$dialog.one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(e.TRANSITION_DURATION):i.$element.trigger("focus").trigger(r)}))},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){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 s=this,o=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var r=t.support.transition&&o;if(this.$backdrop=t(document.createElement("div")).addClass("modal-backdrop "+o).appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",t.proxy(function(t){return this.ignoreBackdropClick?void(this.ignoreBackdropClick=!1):void(t.target===t.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus():this.hide()))},this)),r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;r?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):n()}
else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var i=function(){s.removeBackdrop(),n&&n()};t.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION):i()}
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 t=parseInt(this.$body.css("padding-right")||0,10);this.originalBodyPad=document.body.style.paddingRight||"",this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},e.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad)},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),o=i.attr("href"),r=t(i.attr("data-target")||o&&o.replace(/.*(?=#[^\s]+$)/,"")),s=r.data("bs.modal")?"toggle":t.extend({remote:!/#/.test(o)&&o},r.data(),i.data());i.is("a")&&e.preventDefault(),r.one("show.bs.modal",function(t){t.isDefaultPrevented()||r.one("hidden.bs.modal",function(){i.is(":visible")&&i.trigger("focus")})}),n.call(r,s,this)})}(jQuery),+function(t){"use strict";function i(n){return this.each(function(){var r=t(this),i=r.data("bs.tooltip"),o="object"==typeof n&&n;(i||!/destroy|hide/.test(n))&&(i||r.data("bs.tooltip",i=new e(this,o)),"string"==typeof n&&i[n]())})};var e=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)};e.VERSION="3.3.6",e.TRANSITION_DURATION=150,e.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}},e.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(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 o=this.options.trigger.split(" "),s=o.length;s--;){var r=o[s];if("click"==r)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=r){var a="hover"==r?"mouseenter":"focusin",l="hover"==r?"mouseleave":"focusout";this.$element.on(a+"."+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()},e.prototype.getDefaults=function(){return e.DEFAULTS},e.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},e.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},e.prototype.enter=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return 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?void(n.hoverState="in"):(clearTimeout(n.timeout),n.hoverState="in",n.options.delay&&n.options.delay.show?void(n.timeout=setTimeout(function(){"in"==n.hoverState&&n.show()},n.options.delay.show)):n.show())},e.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},e.prototype.leave=function(e){var n=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return 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()?void 0:(clearTimeout(n.timeout),n.hoverState="out",n.options.delay&&n.options.delay.hide?void(n.timeout=setTimeout(function(){"out"==n.hoverState&&n.hide()},n.options.delay.hide)):n.hide())},e.prototype.show=function(){var h=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(h);var g=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(h.isDefaultPrevented()||!g)return;var r=this,i=this.tip(),d=this.getUID(this.type);this.setContent(),i.attr("id",d),this.$element.attr("aria-describedby",d),this.options.animation&&i.addClass("fade");var n="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,u=/\s?auto?\s?/i,f=u.test(n);f&&(n=n.replace(u,"")||"top"),i.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this),this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var o=this.getPosition(),a=i[0].offsetWidth,l=i[0].offsetHeight;if(f){var m=n,s=this.getPosition(this.$viewport);n="bottom"==n&&o.bottom+l>s.bottom?"top":"top"==n&&o.top-l<s.top?"bottom":"right"==n&&o.right+a>s.width?"left":"left"==n&&o.left-a<s.left?"right":n,i.removeClass(m).addClass(n)};var p=this.getCalculatedOffset(n,o,a,l);this.applyPlacement(p,n);var c=function(){var t=r.hoverState;r.$element.trigger("shown.bs."+r.type),r.hoverState=null,"out"==t&&r.leave(r)};t.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",c).emulateTransitionEnd(e.TRANSITION_DURATION):c()}},e.prototype.applyPlacement=function(e,n){var i=this.tip(),h=i[0].offsetWidth,a=i[0].offsetHeight,l=parseInt(i.css("margin-top"),10),c=parseInt(i.css("margin-left"),10);isNaN(l)&&(l=0),isNaN(c)&&(c=0),e.top+=l,e.left+=c,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 u=i[0].offsetWidth,o=i[0].offsetHeight;"top"==n&&o!=a&&(e.top=e.top+a-o);var r=this.getViewportAdjustedDelta(n,e,u,o);r.left?e.left+=r.left:e.top+=r.top;var s=/top|bottom/.test(n),f=s?2*r.left-h+u:2*r.top-a+o,d=s?"offsetWidth":"offsetHeight";i.offset(e),this.replaceArrow(f,i[0][d],s)},e.prototype.replaceArrow=function(t,e,n){this.arrow().css(n?"left":"top",50*(1-t/e)+"%").css(n?"top":"left","")},e.prototype.setContent=function(){var t=this.tip(),e=this.getTitle();t.find(".tooltip-inner")[this.options.html?"html":"text"](e),t.removeClass("fade in top bottom left right")},e.prototype.hide=function(n){function s(){"in"!=r.hoverState&&i.detach(),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type),n&&n()};var r=this,i=t(this.$tip),o=t.Event("hide.bs."+this.type);return this.$element.trigger(o),o.isDefaultPrevented()?void 0:(i.removeClass("in"),t.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(e.TRANSITION_DURATION):s(),this.hoverState=null,this)},e.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","")},e.prototype.hasContent=function(){return this.getTitle()},e.prototype.getPosition=function(e){e=e||this.$element;var r=e[0],i="BODY"==r.tagName,n=r.getBoundingClientRect();null==n.width&&(n=t.extend({},n,{width:n.right-n.left,height:n.bottom-n.top}));var o=i?{top:0,left:0}:e.offset(),s={scroll:i?document.documentElement.scrollTop||document.body.scrollTop:e.scrollTop()},a=i?{width:t(window).width(),height:t(window).height()}:null;return t.extend({},n,s,a,o)},e.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}},e.prototype.getViewportAdjustedDelta=function(t,e,n,i){var o={top:0,left:0};if(!this.$viewport)return o;var s=this.options.viewport&&this.options.viewport.padding||0,r=this.getPosition(this.$viewport);if(/right|left/.test(t)){var c=e.top-s-r.scroll,u=e.top+s-r.scroll+i;c<r.top?o.top=r.top-c:u>r.top+r.height&&(o.top=r.top+r.height-u)}
else{var a=e.left-s,l=e.left+s+n;a<r.left?o.left=r.left-a:l>r.right&&(o.left=r.left+r.width-l)};return o},e.prototype.getTitle=function(){var n,e=this.$element,t=this.options;return n=e.attr("data-original-title")||("function"==typeof t.title?t.title.call(e[0]):t.title)},e.prototype.getUID=function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},e.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},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},e.prototype.enable=function(){this.enabled=!0},e.prototype.disable=function(){this.enabled=!1},e.prototype.toggleEnabled=function(){this.enabled=!this.enabled},e.prototype.toggle=function(e){var n=this;e&&(n=t(e.currentTarget).data("bs."+this.type),n||(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)},e.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})};var n=t.fn.tooltip;t.fn.tooltip=i,t.fn.tooltip.Constructor=e,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),+function(t){"use strict";function i(n){return this.each(function(){var r=t(this),i=r.data("bs.popover"),o="object"==typeof n&&n;(i||!/destroy|hide/.test(n))&&(i||r.data("bs.popover",i=new e(this,o)),"string"==typeof n&&i[n]())})};var e=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");e.VERSION="3.3.6",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(),n=this.getTitle(),e=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](n),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof e?"html":"append":"text"](e),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 e=this.$element,t=this.options;return e.attr("data-content")||("function"==typeof t.content?t.content.call(e[0]):t.content)},e.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=i,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(t(n).is(document.body)?window: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 r=t(this),i=r.data("bs.scrollspy"),o="object"==typeof n&&n;i||r.data("bs.scrollspy",i=new e(this,o)),"string"==typeof n&&i[n]()})};e.VERSION="3.3.6",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 o=t(this),r=o.data("target")||o.attr("href"),e=/^#./.test(r)&&t(r);return e&&e.length&&e.is(":visible")&&[[e[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,n=this.$scrollElement.scrollTop()+this.options.offset,o=this.getScrollHeight(),s=this.options.offset+o-this.$scrollElement.height(),e=this.offsets,i=this.targets,r=this.activeTarget;if(this.scrollHeight!=o&&this.refresh(),n>=s)return r!=(t=i[i.length-1])&&this.activate(t);if(r&&n<e[0])return this.activeTarget=null,this.clear();for(t=e.length;t--;)r!=i[t]&&n>=e[t]&&(void 0===e[t+1]||n<e[t+1])&&this.activate(i[t])},e.prototype.activate=function(e){this.activeTarget=e,this.clear();var i=this.selector+"[data-target=\""+e+"\"],"+this.selector+"[href=\""+e+"\"]",n=t(i).parents("li").addClass("active");n.parent(".dropdown-menu").length&&(n=n.closest("li.dropdown").addClass("active")),n.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";function i(n){return this.each(function(){var r=t(this),i=r.data("bs.tab");i||r.data("bs.tab",i=new e(this)),"string"==typeof n&&i[n]()})};var e=function(e){this.element=t(e)};e.VERSION="3.3.6",e.TRANSITION_DURATION=150,e.prototype.show=function(){var e=this.element,a=e.closest("ul:not(.dropdown-menu)"),n=e.data("target");if(n||(n=e.attr("href"),n=n&&n.replace(/.*(?=#[^\s]*$)/,"")),!e.parent("li").hasClass("active")){var i=a.find(".active:last a"),o=t.Event("hide.bs.tab",{relatedTarget:e[0]}),s=t.Event("show.bs.tab",{relatedTarget:i[0]});if(i.trigger(o),e.trigger(s),!s.isDefaultPrevented()&&!o.isDefaultPrevented()){var r=t(n);this.activate(e.closest("li"),a),this.activate(r,r.parent(),function(){i.trigger({type:"hidden.bs.tab",relatedTarget:e[0]}),e.trigger({type:"shown.bs.tab",relatedTarget:i[0]})})}}},e.prototype.activate=function(n,i,r){function a(){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),s?(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()};var o=i.find("> .active"),s=r&&t.support.transition&&(o.length&&o.hasClass("fade")||!!i.find("> .fade").length);o.length&&s?o.one("bsTransitionEnd",a).emulateTransitionEnd(e.TRANSITION_DURATION):a(),o.removeClass("in")};var r=t.fn.tab;t.fn.tab=i,t.fn.tab.Constructor=e,t.fn.tab.noConflict=function(){return t.fn.tab=r,this};var n=function(e){e.preventDefault(),i.call(t(this),"show")};t(document).on("click.bs.tab.data-api","[data-toggle=\"tab\"]",n).on("click.bs.tab.data-api","[data-toggle=\"pill\"]",n)}(jQuery),+function(t){"use strict";function n(n){return this.each(function(){var r=t(this),i=r.data("bs.affix"),o="object"==typeof n&&n;i||r.data("bs.affix",i=new e(this,o)),"string"==typeof n&&i[n]()})};var e=function(n,i){this.options=t.extend({},e.DEFAULTS,i),this.$target=t(this.options.target).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()};e.VERSION="3.3.6",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(),s=this.$element.offset(),a=this.$target.height();if(null!=n&&"top"==this.affixed)return n>r?"top":!1;if("bottom"==this.affixed)return null!=n?r+this.unpin<=s.top?!1:"bottom":t-i>=r+a?!1:"bottom";var o=null==this.affixed,l=o?r:s.top,c=o?a:e;return null!=n&&n>=r?"top":null!=i&&l+c>=t-i?"bottom":!1},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 l=this.$element.height(),i=this.options.offset,o=i.top,r=i.bottom,c=Math.max(t(document).height(),t(document.body).height());"object"!=typeof i&&(r=o=i),"function"==typeof o&&(o=i.top(this.$element)),"function"==typeof r&&(r=i.bottom(this.$element));var n=this.getState(c,l,o,r);if(this.affixed!=n){null!=this.unpin&&this.$element.css("top","");var s="affix"+(n?"-"+n:""),a=t.Event(s+".bs.affix");if(this.$element.trigger(a),a.isDefaultPrevented())return;this.affixed=n,this.unpin="bottom"==n?this.getPinnedOffset():null,this.$element.removeClass(e.RESET).addClass(s).trigger(s.replace("affix","affixed")+".bs.affix")};"bottom"==n&&this.$element.offset({top:c-l-r})}};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 i=t(this),e=i.data();e.offset=e.offset||{},null!=e.offsetBottom&&(e.offset.bottom=e.offsetBottom),null!=e.offsetTop&&(e.offset.top=e.offsetTop),n.call(i,e)})})}(jQuery);(function(t,e,n,r){"use strict";var m=n("html"),s=n(t),a=n(e),i=n.fancybox=function(){i.open.apply(this,arguments)},p=navigator.userAgent.match(/msie/i),h=null,l=e.createTouch!==r,d=function(t){return t&&t.hasOwnProperty&&t instanceof n},u=function(t){return t&&n.type(t)==="string"},f=function(t){return u(t)&&t.indexOf("%")>0},g=function(t){return(t&&!(t.style.overflow&&t.style.overflow==="hidden")&&((t.clientWidth&&t.scrollWidth>t.clientWidth)||(t.clientHeight&&t.scrollHeight>t.clientHeight)))},o=function(t,e){var n=parseInt(t,10)||0;if(e&&f(t)){n=i.getViewport()[e]/100*n};return Math.ceil(n)},c=function(t,e){return o(t,e)+"px"};n.extend(i,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!l,fitToView:!0,aspectRatio:!1,topRatio:0.5,leftRatio:0.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!1,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3000,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:"<div class=\"fancybox-wrap\" tabIndex=\"-1\"><div class=\"fancybox-skin\"><div class=\"fancybox-outer\"><div class=\"fancybox-inner\"></div></div></div></div>",image:"<img class=\"fancybox-image\" src=\"{href}\" alt=\"\" />",iframe:"<iframe id=\"fancybox-frame{rnd}\" name=\"fancybox-frame{rnd}\" class=\"fancybox-iframe\" frameborder=\"0\" vspace=\"0\" hspace=\"0\" webkitAllowFullScreen mozallowfullscreen allowFullScreen"+(p?" allowtransparency=\"true\"":"")+"></iframe>",error:"<p class=\"fancybox-error\">The requested content cannot be loaded.<br/>Please try again later.</p>",closeBtn:"<a title=\"Close\" class=\"fancybox-item fancybox-close\" href=\"javascript:;\"></a>",next:"<a title=\"Next\" class=\"fancybox-nav fancybox-next\" href=\"javascript:;\"><span></span></a>",prev:"<a title=\"Previous\" class=\"fancybox-nav fancybox-prev\" href=\"javascript:;\"><span></span></a>"},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0},onCancel:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeChange:n.noop,beforeClose:n.noop,afterClose:n.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(!t){return};if(!n.isPlainObject(e)){e={}};if(!1===i.close(!0)){return};if(!n.isArray(t)){t=d(t)?n(t).get():[t]};n.each(t,function(o,s){var c={},l,m,f,a,h,p,g;if(n.type(s)==="object"){if(s.nodeType){s=n(s)};if(d(s)){c={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s};if(n.metadata){n.extend(!0,c,s.metadata())}}
else{c=s}};l=e.href||c.href||(u(s)?s:null);m=e.title!==r?e.title:c.title||"";f=e.content||c.content;a=f?"html":(e.type||c.type);if(!a&&c.isDom){a=s.data("fancybox-type");if(!a){h=s.prop("class").match(/fancybox\.(\w+)/);a=h?h[1]:null}};if(u(l)){if(!a){if(i.isImage(l)){a="image"}
else if(i.isSWF(l)){a="swf"}
else if(l.charAt(0)==="#"){a="inline"}
else if(u(s)){a="html";f=s}};if(a==="ajax"){p=l.split(/\s+/,2);l=p.shift();g=p.shift()}};if(!f){if(a==="inline"){if(l){f=n(u(l)?l.replace(/.*(?=#[^\s]+$)/,""):l)}
else if(c.isDom){f=s}}
else if(a==="html"){f=l}
else if(!a&&!l&&c.isDom){a="inline";f=s}};n.extend(c,{href:l,type:a,content:f,title:m,selector:g});t[o]=c});i.opts=n.extend(!0,{},i.defaults,e);if(e.keys!==r){i.opts.keys=e.keys?n.extend({},i.defaults.keys,e.keys):!1};i.group=t;return i._start(i.opts.index)},cancel:function(){var t=i.coming;if(!t||!1===i.trigger("onCancel")){return};i.hideLoading();if(i.ajaxLoad){i.ajaxLoad.abort()};i.ajaxLoad=null;if(i.imgPreload){i.imgPreload.onload=i.imgPreload.onerror=null};if(t.wrap){t.wrap.stop(!0,!0).trigger("onReset").remove()};i.coming=null;if(!i.current){i._afterZoomOut(t)}},close:function(t){i.cancel();if(!1===i.trigger("beforeClose")){return};i.unbindEvents();if(!i.isActive){return};if(!i.isOpen||t===!0){n(".fancybox-wrap").stop(!0).trigger("onReset").remove();i._afterZoomOut()}
else{i.isOpen=i.isOpened=!1;i.isClosing=!0;n(".fancybox-item, .fancybox-nav").remove();i.wrap.stop(!0,!0).removeClass("fancybox-opened");i.transitions[i.current.closeMethod]()}},play:function(t){var e=function(){clearTimeout(i.player.timer)},n=function(){e();if(i.current&&i.player.isActive){i.player.timer=setTimeout(i.next,i.current.playSpeed)}},r=function(){e();a.unbind(".player");i.player.isActive=!1;i.trigger("onPlayEnd")},o=function(){if(i.current&&(i.current.loop||i.current.index<i.group.length-1)){i.player.isActive=!0;a.bind({"onCancel.player beforeClose.player":r,"onUpdate.player":n,"beforeLoad.player":e});n();i.trigger("onPlayStart")}};if(t===!0||(!i.player.isActive&&t!==!1)){o()}
else{r()}},next:function(t){var e=i.current;if(e){if(!u(t)){t=e.direction.next};i.jumpto(e.index+1,t,"next")}},prev:function(t){var e=i.current;if(e){if(!u(t)){t=e.direction.prev};i.jumpto(e.index-1,t,"prev")}},jumpto:function(t,e,n){var s=i.current;if(!s){return};t=o(t);i.direction=e||s.direction[(t>=s.index?"next":"prev")];i.router=n||"jumpto";if(s.loop){if(t<0){t=s.group.length+(t%s.group.length)};t=t%s.group.length};if(s.group[t]!==r){i.cancel();i._start(t)}},reposition:function(t,e){var o=i.current,s=o?o.wrap:null,r;if(s){r=i._getPosition(e);if(t&&t.type==="scroll"){delete r.position;s.stop(!0,!0).animate(r,200)}
else{s.css(r);o.pos=n.extend({},o.dim,r)}}},update:function(t){var e=(t&&t.type),n=!e||e==="orientationchange";if(n){clearTimeout(h);h=null};if(!i.isOpen||h){return};h=setTimeout(function(){var r=i.current;if(!r||i.isClosing){return};i.wrap.removeClass("fancybox-tmp");if(n||e==="load"||(e==="resize"&&r.autoResize)){i._setDimension()};if(!(e==="scroll"&&r.canShrink)){i.reposition(t)};i.trigger("onUpdate");h=null},(n&&!l?0:300))},toggle:function(t){if(i.isOpen){i.current.fitToView=n.type(t)==="boolean"?t:!i.current.fitToView;if(l){i.wrap.removeAttr("style").addClass("fancybox-tmp");i.trigger("onUpdate")};i.update()}},hideLoading:function(){a.unbind(".loading");n("#fancybox-loading").remove()},showLoading:function(){var e,t;i.hideLoading();e=n("<div id=\"fancybox-loading\"><div></div></div>").click(i.cancel).appendTo("body");a.bind("keydown.loading",function(t){if((t.which||t.keyCode)===27){t.preventDefault();i.cancel()}});if(!i.defaults.fixed){t=i.getViewport();e.css({position:"absolute",top:(t.h*0.5)+t.y,left:(t.w*0.5)+t.x})}},getViewport:function(){var n=(i.current&&i.current.locked)||!1,e={x:s.scrollLeft(),y:s.scrollTop()};if(n){e.w=n[0].clientWidth;e.h=n[0].clientHeight}
else{e.w=l&&t.innerWidth?t.innerWidth:s.width();e.h=l&&t.innerHeight?t.innerHeight:s.height()};return e},unbindEvents:function(){if(i.wrap&&d(i.wrap)){i.wrap.unbind(".fb")};a.unbind(".fb");s.unbind(".fb")},bindEvents:function(){var t=i.current,e;if(!t){return};s.bind("orientationchange.fb"+(l?"":" resize.fb")+(t.autoCenter&&!t.locked?" scroll.fb":""),i.update);e=t.keys;if(e){a.bind("keydown.fb",function(o){var s=o.which||o.keyCode,a=o.target||o.srcElement;if(s===27&&i.coming){return!1};if(!o.ctrlKey&&!o.altKey&&!o.shiftKey&&!o.metaKey&&!(a&&(a.type||n(a).is("[contenteditable]")))){n.each(e,function(e,a){if(t.group.length>1&&a[s]!==r){i[e](a[s]);o.preventDefault();return!1};if(n.inArray(s,a)>-1){i[e]();o.preventDefault();return!1}})}})};if(n.fn.mousewheel&&t.mouseWheel){i.wrap.bind("mousewheel.fb",function(e,r,o,s){var c=e.target||null,a=n(c),l=!1;while(a.length){if(l||a.is(".fancybox-skin")||a.is(".fancybox-wrap")){break};l=g(a[0]);a=n(a).parent()};if(r!==0&&!l){if(i.group.length>1&&!t.canShrink){if(s>0||o>0){i.prev(s>0?"down":"left")}
else if(s<0||o<0){i.next(s<0?"up":"right")};e.preventDefault()}}})}},trigger:function(t,e){var o,r=e||i.coming||i.current;if(!r){return};if(n.isFunction(r[t])){o=r[t].apply(r,Array.prototype.slice.call(arguments,1))};if(o===!1){return!1};if(r.helpers){n.each(r.helpers,function(e,o){if(o&&i.helpers[e]&&n.isFunction(i.helpers[e][t])){i.helpers[e][t](n.extend(!0,{},i.helpers[e].defaults,o),r)}})};a.trigger(t)},isImage:function(t){return u(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return u(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e={},u,f,r,s,a;t=o(t);u=i.group[t]||null;if(!u){return!1};e=n.extend(!0,{},i.opts,u);s=e.margin;a=e.padding;if(n.type(s)==="number"){e.margin=[s,s,s,s]};if(n.type(a)==="number"){e.padding=[a,a,a,a]};if(e.modal){n.extend(!0,e,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}})};if(e.autoSize){e.autoWidth=e.autoHeight=!0};if(e.width==="auto"){e.autoWidth=!0};if(e.height==="auto"){e.autoHeight=!0};e.group=i.group;e.index=t;i.coming=e;if(!1===i.trigger("beforeLoad")){i.coming=null;return};r=e.type;f=e.href;if(!r){i.coming=null;if(i.current&&i.router&&i.router!=="jumpto"){i.current.index=t;return i[i.router](i.direction)};return!1};i.isActive=!0;if(r==="image"||r==="swf"){e.autoHeight=e.autoWidth=!1;e.scrolling="visible"};if(r==="image"){e.aspectRatio=!0};if(r==="iframe"&&l){e.scrolling="scroll"};e.wrap=n(e.tpl.wrap).addClass("fancybox-"+(l?"mobile":"desktop")+" fancybox-type-"+r+" fancybox-tmp "+e.wrapCSS).appendTo(e.parent||"body");n.extend(e,{skin:n(".fancybox-skin",e.wrap),outer:n(".fancybox-outer",e.wrap),inner:n(".fancybox-inner",e.wrap)});n.each(["Top","Right","Bottom","Left"],function(t,n){e.skin.css("padding"+n,c(e.padding[t]))});i.trigger("onReady");if(r==="inline"||r==="html"){if(!e.content||!e.content.length){return i._error("content")}}
else if(!f){return i._error("href")};if(r==="image"){i._loadImage()}
else if(r==="ajax"){i._loadAjax()}
else if(r==="iframe"){i._loadIframe()}
else{i._afterLoad()}},_error:function(t){n.extend(i.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:i.coming.tpl.error});i._afterLoad()},_loadImage:function(){var t=i.imgPreload=new Image();t.onload=function(){this.onload=this.onerror=null;i.coming.width=this.width/i.opts.pixelRatio;i.coming.height=this.height/i.opts.pixelRatio;i._afterLoad()};t.onerror=function(){this.onload=this.onerror=null;i._error("image")};t.src=i.coming.href;if(t.complete!==!0){i.showLoading()}},_loadAjax:function(){var t=i.coming;i.showLoading();i.ajaxLoad=n.ajax(n.extend({},t.ajax,{url:t.href,error:function(t,e){if(i.coming&&e!=="abort"){i._error("ajax",t)}
else{i.hideLoading()}},success:function(e,n){if(n==="success"){t.content=e;i._afterLoad()}}}))},_loadIframe:function(){var t=i.coming,e=n(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",l?"auto":t.iframe.scrolling).attr("src",t.href);n(t.wrap).bind("onReset",function(){try{n(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}});if(t.iframe.preload){i.showLoading();e.one("load",function(){n(this).data("ready",1);if(!l){n(this).bind("load.fb",i.update)};n(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show();i._afterLoad()})};t.content=e.appendTo(t.inner);if(!t.iframe.preload){i._afterLoad()}},_preloadImages:function(){var r=i.group,n=i.current,o=r.length,s=n.preload?Math.min(n.preload,o-1):0,t,e;for(e=1;e<=s;e+=1){t=r[(n.index+e)%o];if(t.type==="image"&&t.href){new Image().src=t.href}}},_afterLoad:function(){var r=i.coming,o=i.current,s="fancybox-placeholder",e,t,u,a,l,c;i.hideLoading();if(!r||i.isActive===!1){return};if(!1===i.trigger("afterLoad",r,o)){r.wrap.stop(!0).trigger("onReset").remove();i.coming=null;return};if(o){i.trigger("beforeChange",o);o.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()};i.unbindEvents();e=r;t=r.content;u=r.type;a=r.scrolling;n.extend(i,{wrap:e.wrap,skin:e.skin,outer:e.outer,inner:e.inner,current:e,previous:o});l=e.href;switch(u){case"inline":case"ajax":case"html":if(e.selector){t=n("<div>").html(t).find(e.selector)}
else if(d(t)){if(!t.data(s)){t.data(s,n("<div class=\""+s+"\"></div>").insertAfter(t).hide())};t=t.show().detach();e.wrap.bind("onReset",function(){if(n(this).find(t).length){t.hide().replaceAll(t.data(s)).data(s,!1)}})};break;case"image":t=e.tpl.image.replace("{href}",l);break;case"swf":t="<object id=\"fancybox-swf\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\"100%\" height=\"100%\"><param name=\"movie\" value=\""+l+"\"></param>";c="";n.each(e.swf,function(e,n){t+="<param name=\""+e+"\" value=\""+n+"\"></param>";c+=" "+e+"=\""+n+"\""});t+="<embed src=\""+l+"\" type=\"application/x-shockwave-flash\" width=\"100%\" height=\"100%\""+c+"></embed></object>";break};if(!(d(t)&&t.parent().is(e.inner))){e.inner.append(t)};i.trigger("beforeShow");e.inner.css("overflow",a==="yes"?"scroll":(a==="no"?"hidden":a));i._setDimension();i.reposition();i.isOpen=!1;i.coming=null;i.bindEvents();if(!i.isOpened){n(".fancybox-wrap").not(e.wrap).stop(!0).trigger("onReset").remove()}
else if(o.prevMethod){i.transitions[o.prevMethod]()};i.transitions[i.isOpened?e.nextMethod:e.openMethod]();i._preloadImages()},_setDimension:function(){var C=i.getViewport(),F=0,R=!1,N=!1,p=i.wrap,b=i.skin,a=i.inner,s=i.current,e=s.width,r=s.height,l=s.minWidth,u=s.minHeight,d=s.maxWidth,h=s.maxHeight,q=s.scrolling,A=s.scrollOutside?s.scrollbarWidth:0,I=s.margin,L=o(I[1]+I[3]),H=o(I[0]+I[2]),w,D,k,E,g,m,P,j,v,x,y,S,O,T,M;p.add(b).add(a).width("auto").height("auto").removeClass("fancybox-tmp");w=o(b.outerWidth(!0)-b.width());D=o(b.outerHeight(!0)-b.height());k=L+w;E=H+D;g=f(e)?(C.w-k)*o(e)/100:e;m=f(r)?(C.h-E)*o(r)/100:r;if(s.type==="iframe"){T=s.content;if(s.autoHeight&&T.data("ready")===1){try{if(T[0].contentWindow.document.location){a.width(g).height(9999);M=T.contents().find("body");if(A){M.css("overflow-x","hidden")};m=M.outerHeight(!0)}}catch(t){}}}
else if(s.autoWidth||s.autoHeight){a.addClass("fancybox-tmp");if(!s.autoWidth){a.width(g)};if(!s.autoHeight){a.height(m)};if(s.autoWidth){g=a.width()};if(s.autoHeight){m=a.height()};a.removeClass("fancybox-tmp")};e=o(g);r=o(m);v=g/m;l=o(f(l)?o(l,"w")-k:l);d=o(f(d)?o(d,"w")-k:d);u=o(f(u)?o(u,"h")-E:u);h=o(f(h)?o(h,"h")-E:h);P=d;j=h;if(s.fitToView){d=Math.min(C.w-k,d);h=Math.min(C.h-E,h)};S=C.w-L;O=C.h-H;if(s.aspectRatio){if(e>d){e=d;r=o(e/v)};if(r>h){r=h;e=o(r*v)};if(e<l){e=l;r=o(e/v)};if(r<u){r=u;e=o(r*v)}}
else{e=Math.max(l,Math.min(e,d));if(s.autoHeight&&s.type!=="iframe"){a.width(e);r=a.height()};r=Math.max(u,Math.min(r,h))};if(s.fitToView){a.width(e).height(r);p.width(e+w);x=p.width();y=p.height();if(s.aspectRatio){while((x>S||y>O)&&e>l&&r>u){if(F++>19){break};r=Math.max(u,Math.min(h,r-10));e=o(r*v);if(e<l){e=l;r=o(e/v)};if(e>d){e=d;r=o(e/v)};a.width(e).height(r);p.width(e+w);x=p.width();y=p.height()}}
else{e=Math.max(l,Math.min(e,e-(x-S)));r=Math.max(u,Math.min(r,r-(y-O)))}};if(A&&q==="auto"&&r<m&&(e+w+A)<S){e+=A};a.width(e).height(r);p.width(e+w);x=p.width();y=p.height();R=(x>S||y>O)&&e>l&&r>u;N=s.aspectRatio?(e<P&&r<j&&e<g&&r<m):((e<P||r<j)&&(e<g||r<m));n.extend(s,{dim:{width:c(x),height:c(y)},origWidth:g,origHeight:m,canShrink:R,canExpand:N,wPadding:w,hPadding:D,wrapSpace:y-b.outerHeight(!0),skinSpace:b.height()-r});if(!T&&s.autoHeight&&r>u&&r<h&&!N){a.height("auto")}},_getPosition:function(t){var n=i.current,r=i.getViewport(),o=n.margin,s=i.wrap.width()+o[1]+o[3],a=i.wrap.height()+o[0]+o[2],e={position:"absolute",top:o[0],left:o[3]};if(n.autoCenter&&n.fixed&&!t&&a<=r.h&&s<=r.w){e.position="fixed"}
else if(!n.locked){e.top+=r.y;e.left+=r.x};e.top=c(Math.max(e.top,e.top+((r.h-a)*n.topRatio)));e.left=c(Math.max(e.left,e.left+((r.w-s)*n.leftRatio)));return e},_afterZoomIn:function(){var t=i.current;if(!t){return};i.isOpen=i.isOpened=!0;i.wrap.css("overflow","visible").addClass("fancybox-opened");i.update();if(t.closeClick||(t.nextClick&&i.group.length>1)){i.inner.css("cursor","pointer").bind("click.fb",function(e){if(!n(e.target).is("a")&&!n(e.target).parent().is("a")){e.preventDefault();i[t.closeClick?"close":"next"]()}})};if(t.closeBtn){n(t.tpl.closeBtn).appendTo(i.skin).bind("click.fb",function(t){t.preventDefault();i.close()})};if(t.arrows&&i.group.length>1){if(t.loop||t.index>0){n(t.tpl.prev).appendTo(i.outer).bind("click.fb",i.prev)};if(t.loop||t.index<i.group.length-1){n(t.tpl.next).appendTo(i.outer).bind("click.fb",i.next)}};i.trigger("afterShow");if(!t.loop&&t.index===t.group.length-1){i.play(!1)}
else if(i.opts.autoPlay&&!i.player.isActive){i.opts.autoPlay=!1;i.play()}},_afterZoomOut:function(t){t=t||i.current;n(".fancybox-wrap").trigger("onReset").remove();n.extend(i,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null});i.trigger("afterClose",t)}});i.transitions={getOrigPosition:function(){var t=i.current,o=t.element,e=t.orig,n={},s=50,a=50,l=t.hPadding,u=t.wPadding,r=i.getViewport();if(!e&&t.isDom&&o.is(":visible")){e=o.find("img:first");if(!e.length){e=o}};if(d(e)){n=e.offset();if(e.is("img")){s=e.outerWidth();a=e.outerHeight()}}
else{n.top=r.y+(r.h-a)*t.topRatio;n.left=r.x+(r.w-s)*t.leftRatio};if(i.wrap.css("position")==="fixed"||t.locked){n.top-=r.y;n.left-=r.x};n={top:c(n.top-l*t.topRatio),left:c(n.left-u*t.leftRatio),width:c(s+u),height:c(a+l)};return n},step:function(t,e){var r,l,s,n=e.prop,a=i.current,c=a.wrapSpace,u=a.skinSpace;if(n==="width"||n==="height"){r=e.end===e.start?1:(t-e.start)/(e.end-e.start);if(i.isClosing){r=1-r};l=n==="width"?a.wPadding:a.hPadding;s=t-l;i.skin[n](o(n==="width"?s:s-(c*r)));i.inner[n](o(n==="width"?s:s-(c*r)-(u*r)))}},zoomIn:function(){var t=i.current,e=t.pos,r=t.openEffect,o=r==="elastic",s=n.extend({opacity:1},e);delete s.position;if(o){e=this.getOrigPosition();if(t.openOpacity){e.opacity=0.1}}
else if(r==="fade"){e.opacity=0.1};i.wrap.css(e).animate(s,{duration:r==="none"?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:i._afterZoomIn})},zoomOut:function(){var t=i.current,n=t.closeEffect,r=n==="elastic",e={opacity:0.1};if(r){e=this.getOrigPosition();if(t.closeOpacity){e.opacity=0.1}};i.wrap.animate(e,{duration:n==="none"?0:t.closeSpeed,easing:t.closeEasing,step:r?this.step:null,complete:i._afterZoomOut})},changeIn:function(){var n=i.current,l=n.nextEffect,e=n.pos,a={opacity:1},r=i.direction,s=200,t;e.opacity=0.1;if(l==="elastic"){t=r==="down"||r==="up"?"top":"left";if(r==="down"||r==="right"){e[t]=c(o(e[t])-s);a[t]="+="+s+"px"}
else{e[t]=c(o(e[t])+s);a[t]="-="+s+"px"}};if(l==="none"){i._afterZoomIn()}
else{i.wrap.css(e).animate(a,{duration:n.nextSpeed,easing:n.nextEasing,complete:i._afterZoomIn})}},changeOut:function(){var t=i.previous,r=t.prevEffect,o={opacity:0.1},e=i.direction,s=200;if(r==="elastic"){o[e==="down"||e==="up"?"top":"left"]=(e==="up"||e==="left"?"-":"+")+"="+s+"px"};t.wrap.animate(o,{duration:r==="none"?0:t.prevSpeed,easing:t.prevEasing,complete:function(){n(this).trigger("onReset").remove()}})}};i.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!l,fixed:!0},overlay:null,fixed:!1,el:n("html"),create:function(t){t=n.extend({},this.defaults,t);if(this.overlay){this.close()};this.overlay=n("<div class=\"fancybox-overlay\"></div>").appendTo(i.coming?i.coming.parent:t.parent);this.fixed=!1;if(t.fixed&&i.defaults.fixed){this.overlay.addClass("fancybox-overlay-fixed");this.fixed=!0}},open:function(t){var e=this;t=n.extend({},this.defaults,t);if(this.overlay){this.overlay.unbind(".overlay").width("auto").height("auto")}
else{this.create(t)};if(!this.fixed){s.bind("resize.overlay",n.proxy(this.update,this));this.update()};if(t.closeClick){this.overlay.bind("click.overlay",function(t){if(n(t.target).hasClass("fancybox-overlay")){if(i.isActive){i.close()}
else{e.close()};return!1}})};this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay");if(this.el.hasClass("fancybox-lock")){n(".fancybox-margin").removeClass("fancybox-margin");t=s.scrollTop();e=s.scrollLeft();this.el.removeClass("fancybox-lock");s.scrollTop(t).scrollLeft(e)};n(".fancybox-overlay").remove().hide();n.extend(this,{overlay:null,fixed:!1})},update:function(){var t="100%",n;this.overlay.width(t).height("100%");if(p){n=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth);if(a.width()>n){t=a.width()}}
else if(a.width()>s.width()){t=a.width()};this.overlay.width(t).height(a.height())},onReady:function(t,e){var i=this.overlay;n(".fancybox-overlay").stop(!0,!0);if(!i){this.create(t)};if(t.locked&&this.fixed&&e.fixed){if(!i){this.margin=a.height()>s.height()?n("html").css("margin-right").replace("px",""):!1};e.locked=this.overlay.append(e.wrap);e.fixed=!1};if(t.showEarly===!0){this.beforeShow.apply(this,arguments)}},beforeShow:function(t,e){var i,r;if(e.locked){if(this.margin!==!1){n("*").filter(function(){return(n(this).css("position")==="fixed"&&!n(this).hasClass("fancybox-overlay")&&!n(this).hasClass("fancybox-wrap"))}).addClass("fancybox-margin");this.el.addClass("fancybox-margin")};i=s.scrollTop();r=s.scrollLeft();this.el.addClass("fancybox-lock");s.scrollTop(i).scrollLeft(r)};this.open(t)},onUpdate:function(){if(!this.fixed){this.update()}},afterClose:function(t){if(this.overlay&&!i.coming){this.overlay.fadeOut(t.speedOut,n.proxy(this.close,this))}}};i.helpers.title={defaults:{type:"inside",position:"top"},beforeShow:function(t){var a=i.current,r=a.title,l=t.type,e,s;if(n.isFunction(r)){r=r.call(a.element,a)};if(!u(r)||n.trim(r)===""){return};e=n("<div class=\"fancybox-title fancybox-title-"+l+"-wrap\">"+r+"</div>");switch(l){case"inside":s=i.skin;break;case"outside":s=i.wrap;break;case"over":s=i.inner;break;default:s=i.skin;e.appendTo("body");if(p){e.width(e.width())};e.wrapInner("<span class=\"child\"></span>");i.current.margin[2]+=Math.abs(o(e.css("margin-bottom")));break};e[(t.position==="top"?"prependTo":"appendTo")](s)}};n.fn.fancybox=function(t){var r,o=n(this),e=this.selector||"",s=function(s){var a=n(this).blur(),u=r,c,l;if(!(s.ctrlKey||s.altKey||s.shiftKey||s.metaKey)&&!a.is(".fancybox-wrap")){c=t.groupAttr||"data-fancybox-group";l=a.attr(c);if(!l){c="rel";l=a.get(0)[c]};if(l&&l!==""&&l!=="nofollow"){a=e.length?n(e):o;a=a.filter("["+c+"=\""+l+"\"]");u=a.index(this)};t.index=u;if(i.open(a,t)!==!1){s.preventDefault()}}};t=t||{};r=t.index||0;if(!e||t.live===!1){o.unbind("click.fb-start").bind("click.fb-start",s)}
else{a.undelegate(e,"click.fb-start").delegate(e+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s)};this.filter("[data-fancybox-start=1]").trigger("click");return this};a.ready(function(){var e,o;if(n.scrollbarWidth===r){n.scrollbarWidth=function(){var t=n("<div style=\"width:50px;height:50px;overflow:auto\"><div/></div>").appendTo("body"),e=t.children(),i=e.innerWidth()-e.height(99).innerWidth();t.remove();return i}};if(n.support.fixedPosition===r){n.support.fixedPosition=(function(){var t=n("<div style=\"position:fixed;top:20px;\"></div>").appendTo("body"),e=(t[0].offsetTop===20||t[0].offsetTop===15);t.remove();return e}())};n.extend(i.defaults,{scrollbarWidth:n.scrollbarWidth(),fixed:n.support.fixedPosition,parent:n("body")});e=n(t).width();m.addClass("fancybox-lock-test");o=n(t).width();m.removeClass("fancybox-lock-test");n("<style type='text/css'>.fancybox-margin{margin-right:"+(o-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery));!function(t,e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Spinner=e()}(this,function(){"use strict";function n(t,e){var n,i=document.createElement(t||"div");for(n in e)i[n]=e[n];return i};function e(t){for(var e=1,n=arguments.length;n>e;e++)t.appendChild(arguments[e]);return t};function h(t,e,n,i){var o=["opacity",e,~~(100*t),n,i].join("-"),a=.01+n/i*100,l=Math.max(1-(1-t)/e*(100-a),t),u=r.substring(0,r.indexOf("Animation")).toLowerCase(),f=u&&"-"+u+"-"||"";return c[o]||(s.insertRule("@"+f+"keyframes "+o+"{0%{opacity:"+l+"}"+a+"%{opacity:"+t+"}"+(a+.01)+"%{opacity:1}"+(a+e)%100+"%{opacity:"+t+"}100%{opacity:"+l+"}}",s.cssRules.length),c[o]=1),o};function a(t,e){var i,n,r=t.style;for(e=e.charAt(0).toUpperCase()+e.slice(1),n=0;n<l.length;n++)if(i=l[n]+e,void 0!==r[i])return i;return void 0!==r[e]?e:void 0};function t(t,e){for(var n in e)t.style[a(t,n)||n]=e[n];return t};function u(t){for(var n=1;n<arguments.length;n++){var i=arguments[n];for(var e in i)void 0===t[e]&&(t[e]=i[e])};return t};function f(t,e){return"string"==typeof t?t:t[e%t.length]};function i(t){this.opts=u(t||{},i.defaults,d)};function p(){function r(t,e){return n("<"+t+" xmlns=\"urn:schemas-microsoft.com:vml\" class=\"spin-vml\">",e)};s.addRule(".spin-vml","behavior:url(#default#VML)"),i.prototype.lines=function(n,i){function u(){return t(r("group",{coordsize:a+" "+a,coordorigin:-s+" "+-s}),{width:a,height:a})};function d(n,o,a){e(c,e(t(u(),{rotation:360/i.lines*n+"deg",left:~~o}),e(t(r("roundrect",{arcsize:i.corners}),{width:s,height:i.width,left:i.radius,top:-i.width>>1,filter:a}),r("fill",{color:f(i.color,n),opacity:i.opacity}),r("stroke",{opacity:0}))))};var o,s=i.length+i.width,a=2*s,l=2*-(i.width+i.length)+"px",c=t(u(),{position:"absolute",top:l,left:l});if(i.shadow)for(o=1;o<=i.lines;o++)d(o,-2,"progid:DXImageTransform.Microsoft.Blur(pixelradius=2,makeshadow=1,shadowopacity=.3)");for(o=1;o<=i.lines;o++)d(o);return e(n,c)},i.prototype.opacity=function(t,e,n,i){var r=t.firstChild;i=i.shadow&&i.lines||0,r&&e+i<r.childNodes.length&&(r=r.childNodes[e+i],r=r&&r.firstChild,r=r&&r.firstChild,r&&(r.opacity=n))}};var r,l=["webkit","Moz","ms","O"],c={},s=function(){var t=n("style",{type:"text/css"});return e(document.getElementsByTagName("head")[0],t),t.sheet||t.styleSheet}(),d={lines:12,length:7,width:5,radius:10,rotate:0,corners:1,color:"#000",direction:1,speed:1,trail:100,opacity:.25,fps:20,zIndex:2e9,className:"spinner",top:"50%",left:"50%",position:"absolute"};i.defaults={},u(i.prototype,{spin:function(e){this.stop();{var o=this,i=o.opts,s=o.el=t(n(0,{className:i.className}),{position:i.position,width:0,zIndex:i.zIndex});i.radius+i.length+i.width};if(t(s,{left:i.left,top:i.top}),e&&e.insertBefore(s,e.firstChild||null),s.setAttribute("role","progressbar"),o.lines(s,o.opts),!r){var l,c=0,f=(i.lines-1)*(1-i.direction)/2,u=i.fps,a=u/i.speed,d=(1-i.opacity)/(a*i.trail/100),h=a/i.lines;!function p(){c++;for(var t=0;t<i.lines;t++)l=Math.max(1-(c+(i.lines-t)*h)%a*d,i.opacity),o.opacity(s,t*i.direction+f,l,i);o.timeout=o.el&&setTimeout(p,~~(1e3/u))}()};return o},stop:function(){var t=this.el;return t&&(clearTimeout(this.timeout),t.parentNode&&t.parentNode.removeChild(t),this.el=void 0),this},lines:function(i,o){function l(e,i){return t(n(),{position:"absolute",width:o.length+o.width+"px",height:o.width+"px",background:e,boxShadow:i,transformOrigin:"left",transform:"rotate("+~~(360/o.lines*s+o.rotate)+"deg) translate("+o.radius+"px,0)",borderRadius:(o.corners*o.width>>1)+"px"})};for(var a,s=0,c=(o.lines-1)*(1-o.direction)/2;s<o.lines;s++)a=t(n(),{position:"absolute",top:1+~(o.width/2)+"px",transform:o.hwaccel?"translate3d(0,0,0)":"",opacity:o.opacity,animation:r&&h(o.opacity,o.trail,c+s*o.direction,o.lines)+" "+1/o.speed+"s linear infinite"}),o.shadow&&e(a,t(l("#000","0 0 4px #000"),{top:"2px"})),e(i,e(a,l(f(o.color,s),"0 0 1px rgba(0,0,0,.1)")));return i},opacity:function(t,e,n){e<t.childNodes.length&&(t.childNodes[e].style.opacity=n)}});var o=t(n("group"),{behavior:"url(#default#VML)"});return!a(o,"transform")&&o.adj?p():r=a(o,"animation"),i});!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function t(e,n){"use strict";function h(t){var e=s[a.locale];return e?e[t]:s.en[t]};function l(t,n,i){t.stopPropagation(),t.preventDefault();var r=e.isFunction(i)&&i.call(n,t)===!1;r||n.modal("hide")};function p(t){var n,e=0;for(n in t)e++;return e};function r(t,n){var i=0;e.each(t,function(t,e){n(t,e,i++)})};function m(t){var n,i;if("object"!=typeof t)throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=e.extend({},a,t),t.buttons||(t.buttons={}),n=t.buttons,i=p(n),r(n,function(t,r,o){if(e.isFunction(r)&&(r=n[t]={callback:r}),"object"!==e.type(r))throw new Error("button with key "+t+" must be an object");r.label||(r.label=t),r.className||(r.className=2>=i&&o===i-1?"btn-primary":"btn-default")}),t};function g(t,e){var i=t.length,n={};if(1>i||i>2)throw new Error("Invalid argument length");return 2===i||"string"==typeof t[0]?(n[e[0]]=t[0],n[e[1]]=t[1]):n=t[0],n};function c(t,n,i){return e.extend(!0,{},t,g(n,i))};function u(t,e,n,i){var r={className:"bootbox-"+t,buttons:f.apply(null,e)};return d(c(r,i,n),e)};function f(){for(var n={},t=0,o=arguments.length;o>t;t++){var e=arguments[t],i=e.toLowerCase(),r=e.toUpperCase();n[i]={label:h(r)}};return n};function d(t,e){var i={};return r(e,function(t,e){i[e]=!0}),r(t.buttons,function(t){if(i[t]===n)throw new Error("button key "+t+" is not allowed (options are "+e.join("\n")+")")}),t};var o={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div class='bootbox-body'></div></div></div></div></div>",header:"<div class='modal-header'><h4 class='modal-title'></h4></div>",footer:"<div class='modal-footer'></div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-hidden='true'>&times;</button>",form:"<form class='bootbox-form'></form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'></textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'></select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /></label></div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},a={locale:"en",backdrop:"static",animate:!0,className:null,closeButton:!0,show:!0,container:"body"},i={};i.alert=function(){var t;if(t=u("alert",["ok"],["message","callback"],arguments),t.callback&&!e.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return e.isFunction(t.callback)?t.callback.call(this):!0},i.dialog(t)},i.confirm=function(){var t;if(t=u("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,!1)},t.buttons.confirm.callback=function(){return t.callback.call(this,!0)},!e.isFunction(t.callback))throw new Error("confirm requires a callback");return i.dialog(t)},i.prompt=function(){var t,p,l,h,s,m,a;if(h=e(o.form),p={className:"bootbox-prompt",buttons:f("cancel","confirm"),value:"",inputType:"text"},t=d(c(p,arguments,["title","callback"]),["cancel","confirm"]),m=t.show===n?!0:t.show,t.message=h,t.buttons.cancel.callback=t.onEscape=function(){return t.callback.call(this,null)},t.buttons.confirm.callback=function(){var n;switch(t.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":n=s.val();break;case"checkbox":var i=s.find("input:checked");n=[],r(i,function(t,i){n.push(e(i).val())})};return t.callback.call(this,n)},t.show=!1,!t.title)throw new Error("prompt requires a title");if(!e.isFunction(t.callback))throw new Error("prompt requires a callback");if(!o.inputs[t.inputType])throw new Error("invalid prompt type");switch(s=e(o.inputs[t.inputType]),t.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":s.val(t.value);break;case"select":var u={};if(a=t.inputOptions||[],!e.isArray(a))throw new Error("Please pass an array of input options");if(!a.length)throw new Error("prompt with select requires options");r(a,function(t,i){var r=s;if(i.value===n||i.text===n)throw new Error("given options in wrong format");i.group&&(u[i.group]||(u[i.group]=e("<optgroup/>").attr("label",i.group)),r=u[i.group]),r.append("<option value='"+i.value+"'>"+i.text+"</option>")}),r(u,function(t,e){s.append(e)}),s.val(t.value);break;case"checkbox":var g=e.isArray(t.value)?t.value:[t.value];if(a=t.inputOptions||[],!a.length)throw new Error("prompt with checkbox requires options");if(!a[0].value||!a[0].text)throw new Error("given options in wrong format");s=e("<div/>"),r(a,function(n,i){var a=e(o.inputs[t.inputType]);a.find("input").attr("value",i.value),a.find("label").append(i.text),r(g,function(t,e){e===i.value&&a.find("input").prop("checked",!0)}),s.append(a)})};return t.placeholder&&s.attr("placeholder",t.placeholder),t.pattern&&s.attr("pattern",t.pattern),t.maxlength&&s.attr("maxlength",t.maxlength),h.append(s),h.on("submit",function(t){t.preventDefault(),t.stopPropagation(),l.find(".btn-primary").click()}),l=i.dialog(t),l.off("shown.bs.modal"),l.on("shown.bs.modal",function(){s.focus()}),m===!0&&l.modal("show"),l},i.dialog=function(t){t=m(t);var i=e(o.dialog),f=i.find(".modal-dialog"),a=i.find(".modal-body"),d=t.buttons,c="",s={onEscape:t.onEscape};if(e.fn.modal===n)throw new Error("$.fn.modal is not defined; please double check you have included the Bootstrap JavaScript library. See http://getbootstrap.com/javascript/ for more details.");if(r(d,function(t,e){c+="<button data-bb-handler='"+t+"' type='button' class='btn "+e.className+"'>"+e.label+"</button>",s[t]=e.callback}),a.find(".bootbox-body").html(t.message),t.animate===!0&&i.addClass("fade"),t.className&&i.addClass(t.className),"large"===t.size?f.addClass("modal-lg"):"small"===t.size&&f.addClass("modal-sm"),t.title&&a.before(o.header),t.closeButton){var u=e(o.closeButton);t.title?i.find(".modal-header").prepend(u):u.css("margin-top","-10px").prependTo(a)};return t.title&&i.find(".modal-title").html(t.title),c.length&&(a.after(o.footer),i.find(".modal-footer").html(c)),i.on("hidden.bs.modal",function(t){t.target===this&&i.remove()}),i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus()}),"static"!==t.backdrop&&i.on("click.dismiss.bs.modal",function(t){i.children(".modal-backdrop").length&&(t.currentTarget=i.children(".modal-backdrop").get(0)),t.target===t.currentTarget&&i.trigger("escape.close.bb")}),i.on("escape.close.bb",function(t){s.onEscape&&l(t,i,s.onEscape)}),i.on("click",".modal-footer button",function(t){var n=e(this).data("bb-handler");l(t,i,s[n])}),i.on("click",".bootbox-close-button",function(t){l(t,i,s.onEscape)}),i.on("keyup",function(t){27===t.which&&i.trigger("escape.close.bb")}),e(t.container).append(i),i.modal({backdrop:t.backdrop?"static":!1,keyboard:!1,show:!1}),t.show&&i.modal("show"),i},i.setDefaults=function(){var t={};2===arguments.length?t[arguments[0]]=arguments[1]:t=arguments[0],e.extend(a,t)},i.hideAll=function(){return e(".bootbox").modal("hide"),i};var s={bg_BG:{OK:"Ок",CANCEL:"Отказ",CONFIRM:"Потвърждавам"},br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},cs:{OK:"OK",CANCEL:"Zrušit",CONFIRM:"Potvrdit"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},el:{OK:"Εντάξει",CANCEL:"Ακύρωση",CONFIRM:"Επιβεβαίωση"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},et:{OK:"OK",CANCEL:"Katkesta",CONFIRM:"OK"},fa:{OK:"قبول",CANCEL:"لغو",CONFIRM:"تایید"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},hu:{OK:"OK",CANCEL:"Mégsem",CONFIRM:"Megerősít"},hr:{OK:"OK",CANCEL:"Odustani",CONFIRM:"Potvrdi"},id:{OK:"OK",CANCEL:"Batal",CONFIRM:"OK"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},ja:{OK:"OK",CANCEL:"キャンセル",CONFIRM:"確認"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},pt:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Confirmar"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sq:{OK:"OK",CANCEL:"Anulo",CONFIRM:"Prano"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},th:{OK:"ตกลง",CANCEL:"ยกเลิก",CONFIRM:"ยืนยัน"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}};return i.addLocale=function(t,n){return e.each(["OK","CANCEL","CONFIRM"],function(t,e){if(!n[e])throw new Error("Please supply a translation for '"+e+"'")}),s[t]={OK:n.OK,CANCEL:n.CANCEL,CONFIRM:n.CONFIRM},i},i.removeLocale=function(t){return delete s[t],i},i.setLocale=function(t){return i.setDefaults("locale",t)},i.init=function(n){return t(n||e)},i});(function(t){var i={type:"html",content:"",url:"",ajax:{},ajax_request:null,closeOnEsc:!0,closeOnOverlayClick:!0,clone:!1,overlay:{block:void 0,tpl:"<div class=\"arcticmodal-overlay\"></div>",css:{backgroundColor:"#000",opacity:0.8}},container:{block:void 0,tpl:"<div class=\"arcticmodal-container\"><table class=\"arcticmodal-container_i\"><tr><td class=\"arcticmodal-container_i2\"></td></tr></table></div>"},wrap:void 0,body:void 0,errors:{tpl:"<div class=\"arcticmodal-error arcticmodal-close\"></div>",autoclose_delay:2E3,ajax_unsuccessful_load:"Error"},openEffect:{type:"fade",speed:400},closeEffect:{type:"fade",speed:400},beforeOpen:t.noop,afterOpen:t.noop,beforeClose:t.noop,afterClose:t.noop,afterLoading:t.noop,afterLoadingOnShow:t.noop,errorLoading:t.noop},o=0,e=t([]),s={isEventOut:function(e,n){var i=!0;t(e).each(function(){t(n.target).get(0)==t(this).get(0)&&(i=!1);0==t(n.target).closest("HTML",t(this).get(0)).length&&(i=!1)});return i}},n={getParentEl:function(e){var n=t(e);return n.data("arcticmodal")?n:(n=t(e).closest(".arcticmodal-container").data("arcticmodalParentEl"))?n:!1},transition:function(e,n,i,r){r=void 0==r?t.noop:r;switch(i.type){case"fade":"show"==n?e.fadeIn(i.speed,r):e.fadeOut(i.speed,r);break;case"none":"show"==n?e.show():e.hide(),r()}},prepare_body:function(e,n){t(".arcticmodal-close",e.body).unbind("click.arcticmodal").bind("click.arcticmodal",function(){n.arcticmodal("close");return!1})},init_el:function(i,a){var l=i.data("arcticmodal");if(!l){l=a;o++;l.modalID=o;l.overlay.block=t(l.overlay.tpl);l.overlay.block.css(l.overlay.css);l.container.block=t(l.container.tpl);l.body=t(".arcticmodal-container_i2",l.container.block);a.clone?l.body.html(i.clone(!0)):(i.before("<div id=\"arcticmodalReserve"+l.modalID+"\" style=\"display: none\" />"),l.body.html(i));n.prepare_body(l,i);l.closeOnOverlayClick&&l.overlay.block.add(l.container.block).click(function(e){s.isEventOut(t(">*",l.body),e)&&i.arcticmodal("close")});l.container.block.data("arcticmodalParentEl",i);i.data("arcticmodal",l);e=t.merge(e,i);t.proxy(r.show,i)();if("html"==l.type)return i;if(void 0!=l.ajax.beforeSend){var f=l.ajax.beforeSend;delete l.ajax.beforeSend};if(void 0!=l.ajax.success){var u=l.ajax.success;delete l.ajax.success};if(void 0!=l.ajax.error){var c=l.ajax.error;delete l.ajax.error};var d=t.extend(!0,{url:l.url,beforeSend:function(){void 0==f?l.body.html("<div class=\"arcticmodal-loading\" />"):f(l,i)},success:function(t){i.trigger("afterLoading");l.afterLoading(l,i,t);void 0==u?l.body.html(t):u(l,i,t);n.prepare_body(l,i);i.trigger("afterLoadingOnShow");l.afterLoadingOnShow(l,i,t)},error:function(){i.trigger("errorLoading");l.errorLoading(l,i);void 0==c?(l.body.html(l.errors.tpl),t(".arcticmodal-error",l.body).html(l.errors.ajax_unsuccessful_load),t(".arcticmodal-close",l.body).click(function(){i.arcticmodal("close");return!1}),l.errors.autoclose_delay&&setTimeout(function(){i.arcticmodal("close")},l.errors.autoclose_delay)):c(l,i)}},l.ajax);l.ajax_request=t.ajax(d);i.data("arcticmodal",l)}},init:function(e){e=t.extend(!0,{},i,e);if(t.isFunction(this))if(void 0==e)t.error("jquery.arcticmodal: Uncorrect parameters");else if(""==e.type)t.error("jquery.arcticmodal: Don't set parameter \"type\"");else switch(e.type){case"html":if(""==e.content){t.error("jquery.arcticmodal: Don't set parameter \"content\"");break};var r=e.content;e.content="";return n.init_el(t(r),e);case"ajax":if(""==e.url){t.error("jquery.arcticmodal: Don't set parameter \"url\"");break};return n.init_el(t("<div />"),e)}
else return this.each(function(){n.init_el(t(this),t.extend(!0,{},e))})}},r={show:function(){var r=n.getParentEl(this);if(!1===r)t.error("jquery.arcticmodal: Uncorrect call");else{var i=r.data("arcticmodal");i.overlay.block.hide();i.container.block.hide();t("BODY").append(i.overlay.block);t("BODY").append(i.container.block);i.beforeOpen(i,r);r.trigger("beforeOpen");if("hidden"!=i.wrap.css("overflow")){i.wrap.data("arcticmodalOverflow",i.wrap.css("overflow"));var s=i.wrap.outerWidth(!0);i.wrap.css("overflow","hidden");var o=i.wrap.outerWidth(!0);o!=s&&i.wrap.css("marginRight",o-s+"px")};e.not(r).each(function(){t(this).data("arcticmodal").overlay.block.hide()});n.transition(i.overlay.block,"show",1<e.length?{type:"none"}:i.openEffect);n.transition(i.container.block,"show",1<e.length?{type:"none"}:i.openEffect,function(){i.afterOpen(i,r);r.trigger("afterOpen")});return r}},close:function(){if(t.isFunction(this))e.each(function(){t(this).arcticmodal("close")});else return this.each(function(){var r=n.getParentEl(this);if(!1===r)t.error("jquery.arcticmodal: Uncorrect call");else{var i=r.data("arcticmodal");!1!==i.beforeClose(i,r)&&(r.trigger("beforeClose"),e.not(r).last().each(function(){t(this).data("arcticmodal").overlay.block.show()}),n.transition(i.overlay.block,"hide",1<e.length?{type:"none"}:i.closeEffect),n.transition(i.container.block,"hide",1<e.length?{type:"none"}:i.closeEffect,function(){i.afterClose(i,r);r.trigger("afterClose");i.clone||t("#arcticmodalReserve"+i.modalID).replaceWith(i.body.find(">*"));i.overlay.block.remove();i.container.block.remove();r.data("arcticmodal",null);t(".arcticmodal-container").length||(i.wrap.data("arcticmodalOverflow")&&i.wrap.css("overflow",i.wrap.data("arcticmodalOverflow")),i.wrap.css("marginRight",0))}),"ajax"==i.type&&i.ajax_request.abort(),e=e.not(r))}})},setDefault:function(e){t.extend(!0,i,e)}};t(function(){i.wrap=t(document.all&&!document.querySelector?"html":"body")});t(document).bind("keyup.arcticmodal",function(t){var n=e.last();n.length&&n.data("arcticmodal").closeOnEsc&&27===t.keyCode&&n.arcticmodal("close")});t.arcticmodal=t.fn.arcticmodal=function(e){if(r[e])return r[e].apply(this,Array.prototype.slice.call(arguments,1));if("object"===typeof e||!e)return n.init.apply(this,arguments);t.error("jquery.arcticmodal: Method "+e+" does not exist")}})(jQuery);(function(t){t.fn.multilevelpushmenu=function(e){"use strict";var i=arguments,n=null;this.each(function(){var r=this,s=t(this),p=(s.context!=undefined)?s:t("body"),L=(e&&e.menu!=undefined)?e.menu:s.find("nav"),o,m,H=t.extend({container:p,containersToPush:null,menuID:((p.prop("id")!=undefined&&p.prop("id")!="")?p.prop("id"):this.nodeName.toLowerCase())+"_multilevelpushmenu",wrapperClass:"multilevelpushmenu_wrapper",menuInactiveClass:"multilevelpushmenu_inactive",menu:L,menuWidth:0,menuHeight:0,collapsed:!1,fullCollapse:!1,direction:"ltr",backText:"Back",backItemClass:"backItemClass",backItemIcon:"fa fa-angle-right",groupIcon:"fa fa-angle-left",mode:"overlap",overlapWidth:40,preventItemClick:!0,preventGroupItemClick:!0,swipe:"both",durationSlideOut:400,durationSlideDown:500,durationTransition:400,onCollapseMenuStart:function(){},onCollapseMenuEnd:function(){},onExpandMenuStart:function(){},onExpandMenuEnd:function(){},onGroupItemClick:function(){},onItemClick:function(){},onTitleItemClick:function(){},onBackItemClick:function(){},onMenuReady:function(){},onMenuSwipe:function(){}},e);if(!t.data(r,"plugin_multilevelpushmenu")){t.data(r,"plugin_multilevelpushmenu",H);r.settings=t.data(r,"plugin_multilevelpushmenu")};var b={init:function(){return U.apply(this,Array.prototype.slice.call(arguments))},collapse:function(){return d.apply(this,Array.prototype.slice.call(arguments))},expand:function(){return x.apply(this,Array.prototype.slice.call(arguments))},menuexpanded:function(){return R.apply(this,Array.prototype.slice.call(arguments))},activemenu:function(){return h.apply(this,Array.prototype.slice.call(arguments))},findmenusbytitle:function(){return y.apply(this,Array.prototype.slice.call(arguments))},finditemsbyname:function(){return K.apply(this,Array.prototype.slice.call(arguments))},pathtoroot:function(){return j.apply(this,Array.prototype.slice.call(arguments))},comparepaths:function(){return M.apply(this,Array.prototype.slice.call(arguments))},option:function(){return Y.apply(this,Array.prototype.slice.call(arguments))},additems:function(){return G.apply(this,Array.prototype.slice.call(arguments))},removeitems:function(){return X.apply(this,Array.prototype.slice.call(arguments))},redraw:function(){return v.apply(this,Array.prototype.slice.call(arguments))},visiblemenus:function(){return w.apply(this,Array.prototype.slice.call(arguments))},hiddenmenus:function(){return D.apply(this,Array.prototype.slice.call(arguments))},propagateevent:function(){return C.apply(this,Array.prototype.slice.call(arguments))}};function g(t){if(t.stopPropagation&&t.preventDefault){t.stopPropagation();t.preventDefault()}
else{t.cancelBubble=!0;t.returnValue=!1}};function C(e,n){if(e==undefined||n==undefined)return!1;e.on(n,function(i,r){e.hide();try{if(!i.pageX||!i.pageY)return!1;r=r||{pageX:i.pageX,pageY:i.pageY};var s=document.elementFromPoint(r.pageX,r.pageY);s=(s.nodeType==3)?s.parentNode:s;t(s).trigger(n,r)}catch(o){t.error("Error while propagating event: "+o.message)}finally{e.show()}})};function F(){var e=t("<nav />").prop({"id":r.settings.menuID,"className":r.settings.wrapperClass}).appendTo(r.settings.container);k(r.settings.menu,e)};function k(e,n){if(e.level==undefined)e.level=0;t.each(e,function(){var i=t("<div />").attr({"class":"levelHolderClass"+((r.settings.direction=="rtl")?" rtl":" ltr"),"data-level":e.level,"style":((r.settings.direction=="rtl")?"margin-right: ":"margin-left: ")+((e.level==0&&!r.settings.collapsed)?0:"-200%")}).appendTo(n),f=(u(r.settings.menuWidth)||(a(r.settings.menuWidth)&&r.settings.menuWidth>0));i.bind(m,function(t){N(t,i)});if(this.id!=undefined)i.attr({"id":this.id});var s=t("<h2 />").attr({"style":"text-align: "+((r.settings.direction=="rtl")?"right":"left")}).text(this.title).appendTo(i),l=t("<i />").prop({"class":((r.settings.direction=="rtl")?"floatLeft":"floatRight")+" cursorPointer "+this.icon}).prependTo(s);l.bind(o,function(t){B(t,i,e)});if(e.level>0)S(i);var c=t("<ul />").appendTo(i);t.each(this.items,function(){I(this,i,-1)})})};function q(){var t=(r.settings.container.find("nav").length>0)?r.settings.container.find("nav"):r.settings.menu;if(t.length==0)return!1;t.prop({"id":r.settings.menuID,"className":r.settings.wrapperClass});E(t)};function E(e){if(e.level==undefined)e.level=0;t.each(e,function(){var n=t("<div />").attr({"class":"levelHolderClass"+((r.settings.direction=="rtl")?" rtl":" ltr"),"data-level":e.level,"style":((r.settings.direction=="rtl")?"margin-right: ":"margin-left: ")+((e.level==0&&!r.settings.collapsed)?0:"-200%")}).appendTo(e),c=(u(r.settings.menuWidth)||(a(r.settings.menuWidth)&&r.settings.menuWidth>0));n.bind(m,function(t){N(t,n)});var i=e.children("h2");i.attr({"style":"text-align: "+((r.settings.direction=="rtl")?"right":"left")});i.appendTo(n);var l=i.children("i");l.addClass(((r.settings.direction=="rtl")?"floatLeft":"floatRight")+" cursorPointer");if(e.level>0)S(n);var s=e.children("ul");s.appendTo(n);t.each(s.children("li"),function(){var i=t(this);i.attr({"style":"text-align: "+((r.settings.direction=="rtl")?"right":"left")});var s=i.children("a"),a=s.children("i");a.addClass(((r.settings.direction=="rtl")?"floatLeft":"floatRight"));if(i.children("ul").length>0){s.bind(o,function(t){T(t,n,i)});A(s);i.level=e.level+1;E(i)}
else{s.bind(o,function(t){O(t,n,i)})}})})};function B(e,n,i){if(t(r).find("div.levelHolderClass").is(":animated"))return!1;r.settings.onTitleItemClick.apply(this,Array.prototype.slice.call([e,n,r.settings]));g(e);var a=(r.settings.direction=="rtl")?parseInt(n.css("margin-right"))<0:parseInt(n.css("margin-left"))<0;if(i.level==0&&a){x()}
else{var o=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var e=(r.settings.direction=="rtl")?((t(this).attr("data-level")>n.attr("data-level"))&&(parseInt(t(this).css("margin-right"))>=0)):((t(this).attr("data-level")>n.attr("data-level"))&&(parseInt(t(this).css("margin-left"))>=0));return e}),s=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var e=(r.settings.direction=="rtl")?((t(this).attr("data-level")<=n.attr("data-level"))&&(parseInt(t(this).css("margin-right"))>=0)):((t(this).attr("data-level")<=n.attr("data-level"))&&(parseInt(t(this).css("margin-left"))>=0));return e}),l=(o.length==0&&s.length==1)?d():d(parseInt(n.attr("data-level")))};n.css("visibility","visible");n.find("."+r.settings.backItemClass).css("visibility","visible");n.find("ul").css("visibility","visible");n.removeClass(r.settings.menuInactiveClass)};function S(e){var i=t("<div />").attr({"class":r.settings.backItemClass}).appendTo(e),n=t("<a />").prop({"href":"#"}).text(r.settings.backText).appendTo(i),s=t("<i />").prop({"class":((r.settings.direction=="rtl")?"floatLeft ":"floatRight ")+r.settings.backItemIcon}).prependTo(n);n.bind(o,function(t){W(t,e)})};function W(e,n){if(t(r).find("div.levelHolderClass").is(":animated"))return!1;r.settings.onBackItemClick.apply(this,Array.prototype.slice.call([e,n,r.settings]));g(e);d(parseInt(n.attr("data-level")-1))};function T(e,n,i){if(t(r).find("div.levelHolderClass").is(":animated"))return!1;r.settings.onGroupItemClick.apply(this,Array.prototype.slice.call([e,n,i,r.settings]));x(i.find("div:first"));if(r.settings.preventGroupItemClick)g(e)};function A(e){var n=t("<i />").attr({"class":((r.settings.direction=="rtl")?" floatRight iconSpacing_rtl ":" floatLeft iconSpacing_ltr ")+r.settings.groupIcon}).prependTo(e)};function I(){var e=arguments[0],s=arguments[1],a=arguments[2],l=s.find("ul:first"),n=t("<li />");(a<(l.children("li").length)&&a>=0)?n.insertBefore(l.children("li").eq(a)):n.appendTo(l);n.attr({"style":"text-align: "+((r.settings.direction=="rtl")?"right":"left")});if(e.id!=undefined)n.attr({"id":e.id});var i=t("<a />").prop({"href":e.link}).text(e.name).appendTo(n),c=t("<i />").prop({"class":((r.settings.direction=="rtl")?"floatLeft ":"floatRight ")+e.icon}).prependTo(i);if(e.items){i.bind(o,function(t){T(t,s,n)});A(i);e.items.level=parseInt(s.attr("data-level"),10)+1;k(e.items,n)}
else{i.bind(o,function(t){O(t,s,n)})}};function O(t,e,n){r.settings.onItemClick.apply(this,Array.prototype.slice.call([t,e,n,r.settings]));if(r.settings.preventItemClick)g(t)};function N(t,e){};function w(){var e=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var e=(r.settings.direction=="rtl")?(parseInt(t(this).css("margin-right"))>=0&&t(this).position().left<r.settings.container.width()-r.settings.overlapWidth):(parseInt(t(this).css("margin-left"))>=0&&t(this).position().left>=0);return e});if(e.length<1)e=!1;return e};function D(){var e=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var e=(r.settings.direction=="rtl")?((t(this).position().left>r.settings.container.width()||parseInt(t(this).css("margin-right"))<0)):((t(this).position().left<0||parseInt(t(this).css("margin-left"))<0));return e});if(e.length<1)e=!1;return e};function v(){if(!r.redraw){r.redraw=!0;var o=arguments[0],g=arguments[1],v=arguments[2],n=(t("#"+r.settings.menuID+" div.levelHolderClass").first().css("filter").match(/DXImageTransform\.Microsoft\.Shadow/))?t("#"+r.settings.menuID+" div.levelHolderClass").first().get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength:0,s=(o==undefined)?Math.max.apply(null,t("#"+r.settings.menuID+" div.levelHolderClass").map(function(){return t(this).width()}).get())-n:o-n,y=Math.max.apply(null,t("#"+r.settings.menuID+" div.levelHolderClass").map(function(){return t(this).attr("data-level")}).get()),f=(u(r.settings.menuWidth)||(a(r.settings.menuWidth)&&r.settings.menuWidth>0)),k=(u(r.settings.menuHeight)||(a(r.settings.menuHeight)&&r.settings.menuHeight>0)),e=(v==undefined)?t("#"+r.settings.menuID+" div.levelHolderClass"):v,b;if(!f&&r.menuWidth!=undefined)s=r.menuWidth;(f&&o==undefined)?e.width(r.settings.menuWidth):e.width(s);if(f){if((e.width()==0||(u(r.settings.menuWidth)&&r.settings.menuWidth.indexOf("%")!=-1))&&o==undefined){e.css("min-width","");e.width(parseInt(r.settings.container.parent().width()*parseInt(r.settings.menuWidth)/100))};s=e.width()-n;e.css("min-width",e.width()-n+"px")};var C=(f&&o==undefined)?(e.width()-n+y*(r.settings.overlapWidth+n)):(s+y*(r.settings.overlapWidth+n)),i=(g==undefined)?Math.max.apply(null,t("#"+r.settings.menuID+" div.levelHolderClass").map(function(){return t(this).height()}).get()):g;r.settings.container.css("min-height","");r.settings.container.children("nav:first").css("min-height","");if(k){r.settings.container.height(r.settings.menuHeight);r.settings.container.css("min-height",r.settings.menuHeight);r.settings.container.children("nav:first").css("min-height",r.settings.menuHeight);t("#"+r.settings.menuID).height(r.settings.menuHeight);i=r.settings.container.height()}
else{t("#"+r.settings.menuID).height(i)};r.settings.container.css("min-height",i+"px");r.settings.container.children("nav:first").css("min-height",i+"px");r.settings.container.width(C);r.settings.container.height(i);var l=t("#"+r.settings.menuID+" div.levelHolderClass:first"),d=w(),p=D(),m=h(),x=(m.length==1)?m.attr("data-level"):0;if(d)d.each(function(){if(r.settings.mode=="overlap")t(this).width(t(this).width()+(parseInt(x,10)-parseInt(t(this).attr("data-level"),10))*(r.settings.overlapWidth+n))});if(p)p.each(function(){(r.settings.direction=="rtl")?t(this).css("margin-right",(t(this).attr("data-level")==l.attr("data-level")&&!r.settings.fullCollapse)?t(this).width()*(-1)+r.settings.overlapWidth:t(this).width()*(-2)):t(this).css("margin-left",(t(this).attr("data-level")==l.attr("data-level")&&!r.settings.fullCollapse)?t(this).width()*(-1)+r.settings.overlapWidth:t(this).width()*(-2))});b=l.width()+parseInt(l.css((r.settings.direction=="rtl")?"margin-right":"margin-left"),10);c(r.settings.container,b);r.menuWidth=s;r.menuHeight=i;r.redraw=!1}};function c(t,e){if(t==undefined||e==undefined)return!1;t.css("min-width","");t.css("min-width",e+"px");t.children("nav:first").css("min-width","");t.children("nav:first").css("min-width",e+"px");t.width(e)};function V(){var e=t("#"+r.settings.menuID+" div.levelHolderClass:first"),n=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var n=(r.settings.direction=="rtl")?((t(this).position().left>r.settings.container.width()||parseInt(t(this).css("margin-right"))<0)&&t(this).attr("data-level")>e.attr("data-level")):((t(this).position().left<0||parseInt(t(this).css("margin-left"))<0)&&t(this).attr("data-level")>e.attr("data-level"));return n});n.each(function(){if(r.settings.direction=="rtl"){t(this).css("margin-right",((t(this).attr("data-level")==e.attr("data-level")&&!r.settings.collapsed)?0:(-2)*t(this).width()))}
else{t(this).css("margin-left",((t(this).attr("data-level")==e.attr("data-level")&&!r.settings.collapsed)?0:(-2)*t(this).width()))}});if(r.settings.direction=="rtl"){e.css("margin-right",(!r.settings.collapsed)?0:(-2)*e.width())}
else{e.css("margin-left",(!r.settings.collapsed)?0:(-2)*e.width())}};function a(t){return typeof t==="number"&&parseFloat(t)==parseInt(t,10)&&!isNaN(t)};function u(t){return typeof t==="string"&&(t.indexOf("%")!=-1||t.indexOf("px")!=-1||t.indexOf("em")!=-1)};function U(){var t=(e&&e.menu!=undefined)?F():q();C(r.settings.container,o);v();V();z(r.settings.collapsed);r.settings.onMenuReady.apply(this,Array.prototype.slice.call([r.settings]));return s};function z(e){if(e){var n=t("#"+r.settings.menuID+" div.levelHolderClass:first");n.find("ul").hide();n.addClass(r.settings.menuInactiveClass);if(r.settings.direction=="rtl"){n.stop().animate({marginRight:((-1)*n.width()+((r.settings.fullCollapse)?0:r.settings.overlapWidth))},r.settings.durationSlideOut)}
else{n.stop().animate({marginLeft:((-1)*n.width()+((r.settings.fullCollapse)?0:r.settings.overlapWidth))},r.settings.durationSlideOut)}}};function f(e){if(r.settings.containersToPush==null)return!1;t.each(r.settings.containersToPush,function(){var n=parseInt(t(this).css("margin-left")),o=a(n)?n:0,i=parseInt(t(this).css("margin-right")),s=a(i)?i:0;t(this).stop().animate({marginLeft:o+((r.settings.direction=="rtl")?(-1):1)*e,marginRight:s+((r.settings.direction=="rtl")?1:(-1))*e},r.settings.durationSlideOut)})};function d(){if(t(r).find("div.levelHolderClass").is(":animated"))return!1;r.settings.onCollapseMenuStart.apply(this,Array.prototype.slice.call([r.settings]));var e=arguments[0],h=arguments[1],o={},i,d,b,w,x,n=t("#"+r.settings.menuID+" div.levelHolderClass:first"),m=(e==undefined)?!0:!1,g;o["collapsingEnded"]=!1;if(typeof e=="object"){e=e.attr("data-level")}
else if(typeof e=="string"){var v=y(e);if(v&&v.length==1){e=v.attr("data-level")}
else{e=n.attr("data-level")}}
else if(e==undefined||!a(e)||e<0){e=n.attr("data-level")};if(h==undefined&&typeof h!="object"){h=[{"method":r.settings.onCollapseMenuEnd,"args":[r.settings]}]}
else{t.merge(h,[{"method":r.settings.onCollapseMenuEnd,"args":[r.settings]}])};var u=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var n=(r.settings.direction=="rtl")?(t(this).attr("data-level")>e)&&(parseInt(t(this).css("margin-right"))>=0&&t(this).position().left<r.settings.container.width()-r.settings.overlapWidth):(t(this).attr("data-level")>e)&&(parseInt(t(this).css("margin-left"))>=0&&t(this).position().left>=0);return n}),p=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var n=(r.settings.direction=="rtl")?(t(this).attr("data-level")<=e)&&(parseInt(t(this).css("margin-right"))>=0&&t(this).position().left<r.settings.container.width()-r.settings.overlapWidth):(t(this).attr("data-level")<=e)&&(parseInt(t(this).css("margin-left"))>=0&&t(this).position().left>=0);return n});if(p.length>0){o["prevAnimEnded"]=!1;u.each(function(e,n){i=(t(n).css("filter").match(/DXImageTransform\.Microsoft\.Shadow/))?t(n).get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength:0;d=(r.settings.mode=="overlap")?t(n).width()-(u.length+p.length-t(n).attr("data-level")-1)*(r.settings.overlapWidth+i)-i:t(n).width()-i;if(r.settings.direction=="rtl"){t(n).stop().animate({marginRight:((-1)*d),width:d},r.settings.durationTransition)}
else{t(n).stop().animate({marginLeft:((-1)*d),width:d},r.settings.durationTransition)}});o["nextAnimEnded"]=(u.length>0)?!1:!0;u.last().queue(function(){o["nextAnimEnded"]=!0;l(o,h)});p.each(function(o,s){i=(t(s).css("filter").match(/DXImageTransform\.Microsoft\.Shadow/))?t(s).get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength:0;var a=p.filter(function(){return t(this).attr("data-level")==e});a.css("visibility","visible");a.find("."+r.settings.backItemClass).css("visibility","visible");a.find("ul").css("visibility","visible");a.removeClass(r.settings.menuInactiveClass);d=(r.settings.mode=="overlap")?t(s).width()-u.length*(r.settings.overlapWidth+i)-i:t(s).width()-i;if(r.settings.direction=="rtl"){t(s).stop().animate({width:d,marginRight:(t(s).attr("data-level")==n.attr("data-level")&&m)?(r.settings.fullCollapse)?(-1)*t(s).width():((-1)*t(s).width()+((r.settings.mode=="overlap")?u.length+1:1)*r.settings.overlapWidth):0},r.settings.durationSlideOut,function(){if(t(s).attr("data-level")==n.attr("data-level")&&m){n.children("ul").first().hide(r.settings.durationSlideDown,function(){n.addClass(r.settings.menuInactiveClass)})};g=n.width()+parseInt(n.css("margin-right"),10);c(r.settings.container,g)})}
else{t(s).stop().animate({width:d,marginLeft:(t(s).attr("data-level")==n.attr("data-level")&&m)?(r.settings.fullCollapse)?(-1)*t(s).width():((-1)*t(s).width()+((r.settings.mode=="overlap")?u.length+1:1)*r.settings.overlapWidth):0},r.settings.durationSlideOut,function(){if(t(s).attr("data-level")==n.attr("data-level")&&m){n.children("ul").first().hide(r.settings.durationSlideDown,function(){n.addClass(r.settings.menuInactiveClass)})};g=n.width()+parseInt(n.css("margin-left"),10);c(r.settings.container,g)})};b=(r.settings.mode=="overlap")?((-1)*(u.length*(r.settings.overlapWidth+i))):0;if(t(s).attr("data-level")==n.attr("data-level")&&m){var l=(r.settings.fullCollapse)?(-1)*(n.width()-i):(-1)*(n.width()-i)+r.settings.overlapWidth;f(l)}
else{f(b)}});p.last().queue(function(){o["prevAnimEnded"]=!0;l(o,h)})};o["collapsingEnded"]=!0;l(o,h);return s};function P(){if(t(r).find("div.levelHolderClass").is(":animated"))return!1;r.settings.onExpandMenuStart.apply(this,Array.prototype.slice.call([r.settings]));var u=arguments[0],o=arguments[1],a,d,b,m,w,i={},e=t("#"+r.settings.menuID+" div.levelHolderClass:first"),k=(u==undefined)?!0:!1,x=(r.settings.direction=="rtl")?parseInt(e.css("margin-right"),10)<0||e.position().left>=r.settings.container.width()-r.settings.overlapWidth:parseInt(e.css("margin-left"),10)<0||e.position().left<0;i["expandingEnded"]=!1;if(o==undefined&&typeof o!="object"){o=[{"method":r.settings.onExpandMenuEnd,"args":[r.settings]}]}
else{t.merge(o,[{"method":r.settings.onExpandMenuEnd,"args":[r.settings]}])};if(k){i["baseAnimEnded"]=!1;e.removeClass(r.settings.menuInactiveClass);w=e.width();c(r.settings.container,w);if(r.settings.direction=="rtl"){e.stop().animate({marginRight:0},r.settings.durationSlideOut,function(){e.children("ul").first().show(r.settings.durationSlideDown,function(){i["baseAnimEnded"]=!0;l(i,o)})})}
else{e.stop().animate({marginLeft:0},r.settings.durationSlideOut,function(){e.children("ul").first().show(r.settings.durationSlideDown,function(){i["baseAnimEnded"]=!0;l(i,o)})})};m=(r.settings.fullCollapse)?e.width():e.width()-r.settings.overlapWidth;var E=(!R(e))?f(m):null}
else{var n;if(typeof u=="object"){n=u}
else if(typeof u=="string"){n=y(u)}
else{n=null;t.error("Provided menu selector is not valid")};if(n&&n.length==1){var v=h(),C=(v.length==1)?v.attr("data-level"):0,p=n.width(),s=j(n);i["setToOpenAnimEnded"]=!1;if(s){var g=t(s).length-1;e.find("ul").each(function(){t(this).show(0)});t(s).find("ul").css("visibility","hidden");t(s).find("div").css("visibility","visible");t(s).find("."+r.settings.backItemClass).css("visibility","hidden");t(s).each(function(e,n){a=(t(n).css("filter").match(/DXImageTransform\.Microsoft\.Shadow/))?t(n).get(0).filters.item("DXImageTransform.Microsoft.Shadow").strength:0;d=p-a+(g-t(n).attr("data-level"))*(r.settings.overlapWidth+a);if(r.settings.container.width()<d&&r.settings.mode=="overlap")c(r.settings.container,d);if(r.settings.direction=="rtl"){t(n).stop().animate({marginRight:0,width:(r.settings.mode=="overlap")?d:p-a},r.settings.durationTransition,function(){t(n).addClass(r.settings.menuInactiveClass)})}
else{t(n).stop().animate({marginLeft:0,width:(r.settings.mode=="overlap")?d:p-a},r.settings.durationTransition,function(){t(n).addClass(r.settings.menuInactiveClass)})}});t(s).last().queue(function(){t(this).removeClass(r.settings.menuInactiveClass);i["setToOpenAnimEnded"]=!0;l(i,o)});if(x){m=(r.settings.fullCollapse)?e.width():(e.width()-r.settings.overlapWidth);f(m)};if(r.settings.mode=="overlap"){b=((x)?(p+(g-((r.settings.fullCollapse)?0:1))*(r.settings.overlapWidth+a)):((g-C)*(r.settings.overlapWidth+a)));f(b)};n.css("visibility","visible");n.find("."+r.settings.backItemClass).css("visibility","visible");n.find("ul").css("visibility","visible");n.removeClass(r.settings.menuInactiveClass)}
else{t.error("Invalid menu object provided")}}
else{t.error("No or too many menus named "+u)}};i["expandingEnded"]=!0;l(i,o)};function x(){var e=arguments[0],n,l=h(),i,o,a;if(typeof e=="object"){n=e}
else if(typeof e=="string"){a=y(e);if(a){n=a.eq(0)}
else{t.error(e+" menu level does not exist!")}}
else{n=t("#"+r.settings.menuID+" div.levelHolderClass:first")};i=M(n,l,!0);o=(i.length>0)?Math.max.apply(null,i.map(function(){return t(this).attr("data-level")}).get()):0;if(o<l.attr("data-level")){d(o,[{"method":P,"args":arguments}])}
else{P.apply(this,Array.prototype.slice.call(arguments))};return s};function y(){var o=arguments[0],e,i=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){return((t(this).children("h2").text()==o))});if(i.length>0){n=i;e=n}
else{n=!1;e=n};return e};function K(){var o=arguments[0],e,i=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass li").filter(function(){return((t(this).children("a").text()==o))});if(i.length>0){n=i;e=n}
else{n=!1;e=n};return e};function j(){var e=arguments[0],i,r,o;if(e==undefined||e.length!=1){n=!1;return n};i=e.parents("div.levelHolderClass");r=t.merge(i.get().reverse(),e.get());n=r;return n};function M(){var i=arguments[0],r=arguments[1],f=(arguments[2]!=undefined)?arguments[2]:!1,s,a,e,o,l,c,u,d;if(i==undefined||r==undefined){n=!1;return n};s=(i.length==1)?i.parents("div.levelHolderClass"):null;a=(r.length==1)?r.parents("div.levelHolderClass"):null;e=(s!=null)?t.merge(s.get().reverse(),i.get()):[];o=(a!=null)?t.merge(a.get().reverse(),r.get()):[];l=(e.length>=o.length)?e:o;c=(l===e)?o:e;u=t(l).filter(function(){return(f)?(t.inArray(this,c)!=-1):(t.inArray(this,c)==-1)});n=u;return n};function h(){var e=r.settings.container.find("#"+r.settings.menuID+" div.levelHolderClass").filter(function(){var e=(r.settings.direction=="rtl")?((parseInt(t(this).css("margin-right"))>=0&&t(this).position().left<r.settings.container.width()-r.settings.overlapWidth)):((parseInt(t(this).css("margin-left"))>=0&&t(this).position().left>=0));return e}),i=Math.max.apply(null,e.map(function(){return t(this).attr("data-level")}).get()),o=e.filter(function(){return t(this).attr("data-level")==i});n=o;return n};function R(){var t=arguments[0],n=!1;if(t==undefined)return n;var e=(r.settings.direction=="rtl")?(parseInt(t.css("margin-right"))>=0&&t.position().left<r.settings.container.width()-r.settings.overlapWidth):(parseInt(t.css("margin-left"))>=0&&t.position().left>=0);return e};function G(){var n=arguments[0],e=arguments[1],i=arguments[2];if(e==undefined||typeof n!="object"||!e)return!1;if(n.level==undefined)n.level=parseInt(e.attr("data-level"),10);if(i==undefined)i=0;var o=e.find("ul:first");t.each(n,function(){if(this.name!=undefined)I(this,e,i)});v(r.menuWidth);return s};function X(){var n=arguments[0];if(n==undefined||typeof n!="object"||n.length==0)return!1;n.remove();var e=h();if(e.length==1){e.css("visibility","visible");e.find("."+r.settings.backItemClass).css("visibility","visible");e.find("ul").css("visibility","visible");e.removeClass(r.settings.menuInactiveClass);var o=e.width()-r.menuWidth;if(o!=0){var i=w();if(i)i.each(function(){t(this).width(t(this).width()-o)})}};v(r.menuWidth);return s};function l(e,n){var i=!0;t.each(e,function(t,e){i=i&&e});if(i)window.setTimeout(function(){t.each(n,function(t,e){e["method"].apply(this,Array.prototype.slice.call(e["args"]))})},1)};function Y(){var e=!1;if(r.settings[arguments[0]]!=undefined){if(arguments[1]!=undefined)r.settings[arguments[0]]=arguments[1];e=r.settings[arguments[0]]}
else{t.error("No option "+arguments[0]+" found in jQuery.multilevelpushmenu")};return e};function Q(){var t=!1;(function(e){if(/(android|ipad|playbook|silk|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))t=!0})(navigator.userAgent||navigator.vendor||window.opera);return t};if(Q()){o="click";m="touchmove"}
else{o="click";m="mousedown"};if(b[e]){n=b[e].apply(this,Array.prototype.slice.call(i,1));return n}
else if(typeof e==="object"||!e){n=b.init.apply(this,arguments);return n}
else{t.error("No "+e+" method found in jQuery.multilevelpushmenu")};if(!n){n=this}});return n}}(jQuery));(function(t){"use strict";function o(t){return new RegExp("(^|\\s+)"+t+"(\\s+|$)")};var e,n,i;if("classList" in document.documentElement){e=function(t,e){return t.classList.contains(e)};n=function(t,e){t.classList.add(e)};i=function(t,e){t.classList.remove(e)}}
else{e=function(t,e){return o(e).test(t.className)};n=function(t,n){if(!e(t,n)){t.className=t.className+" "+n}};i=function(t,e){t.className=t.className.replace(o(e)," ")}};function s(t,r){var o=e(t,r)?i:n;o(t,r)};var r={hasClass:e,addClass:n,removeClass:i,toggleClass:s,has:e,add:n,remove:i,toggle:s};if(typeof define==="function"&&define.amd){define(r)}
else{t.classie=r}})(window);var ModalEffects=(function(){function t(){var t=document.querySelector(".md-overlay");[].slice.call(document.querySelectorAll(".md-trigger")).forEach(function(e,n){var i=document.querySelector("#"+e.getAttribute("data-modal")),o=i.querySelector(".md-close");function s(t){classie.remove(i,"md-show");if(t){classie.remove(document.documentElement,"md-perspective")}};function r(){s(classie.has(e,"md-setperspective"))};e.addEventListener("click",function(n){classie.add(i,"md-show");t.removeEventListener("click",r);t.addEventListener("click",r);if(classie.has(e,"md-setperspective")){setTimeout(function(){classie.add(document.documentElement,"md-perspective")},25)}});o.addEventListener("click",function(t){t.stopPropagation();r()})})};t()})();!function(){"use strict";function e(t,e){var n;for(n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t};function t(e){if(!this||this.find!==t.prototype.find)return new t(e);if(this.length=0,e)if("string"==typeof e&&(e=this.find(e)),e.nodeType||e===e.window)this.length=1,this[0]=e;else{var n=e.length;for(this.length=n;n;)n-=1,this[n]=e[n]}};t.extend=e,t.contains=function(t,e){do if(e=e.parentNode,e===t)return!0;while(e);return!1},t.parseJSON=function(t){return window.JSON&&JSON.parse(t)},e(t.prototype,{find:function(e){var n=this[0]||document;return"string"==typeof e&&(e=n.querySelectorAll?n.querySelectorAll(e):"#"===e.charAt(0)?n.getElementById(e.slice(1)):n.getElementsByTagName(e)),new t(e)},hasClass:function(t){return this[0]?new RegExp("(^|\\s+)"+t+"(\\s+|$)").test(this[0].className):!1},addClass:function(t){for(var e,n=this.length;n;){if(n-=1,e=this[n],!e.className)return e.className=t,this;if(this.hasClass(t))return this;e.className+=" "+t};return this},removeClass:function(t){for(var e,i=new RegExp("(^|\\s+)"+t+"(\\s+|$)"),n=this.length;n;)n-=1,e=this[n],e.className=e.className.replace(i," ");return this},on:function(t,e){for(var i,n,r=t.split(/\s+/);r.length;)for(t=r.shift(),i=this.length;i;)i-=1,n=this[i],n.addEventListener?n.addEventListener(t,e,!1):n.attachEvent&&n.attachEvent("on"+t,e);return this},off:function(t,e){for(var i,n,r=t.split(/\s+/);r.length;)for(t=r.shift(),i=this.length;i;)i-=1,n=this[i],n.removeEventListener?n.removeEventListener(t,e,!1):n.detachEvent&&n.detachEvent("on"+t,e);return this},empty:function(){for(var t,e=this.length;e;)for(e-=1,t=this[e];t.hasChildNodes();)t.removeChild(t.lastChild);return this},first:function(){return new t(this[0])}}),"function"==typeof define&&define.amd?define(function(){return t}):(window.blueimp=window.blueimp||{},window.blueimp.helper=t)}(),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper"],t):(window.blueimp=window.blueimp||{},window.blueimp.Gallery=t(window.blueimp.helper||window.jQuery))}(function(t){"use strict";function e(t,n){return void 0===document.body.style.maxHeight?null:this&&this.options===e.prototype.options?t&&t.length?(this.list=t,this.num=t.length,this.initOptions(n),void this.initialize()):void this.console.log("blueimp Gallery: No or empty list provided as first argument.",t):new e(t,n)};return t.extend(e.prototype,{options:{container:"#blueimp-gallery",slidesContainer:"div",titleElement:"h3",displayClass:"blueimp-gallery-display",controlsClass:"blueimp-gallery-controls",singleClass:"blueimp-gallery-single",leftEdgeClass:"blueimp-gallery-left",rightEdgeClass:"blueimp-gallery-right",playingClass:"blueimp-gallery-playing",slideClass:"slide",slideLoadingClass:"slide-loading",slideErrorClass:"slide-error",slideContentClass:"slide-content",toggleClass:"toggle",prevClass:"prev",nextClass:"next",closeClass:"close",playPauseClass:"play-pause",typeProperty:"type",titleProperty:"title",urlProperty:"href",displayTransition:!0,clearSlides:!0,stretchImages:!1,toggleControlsOnReturn:!0,toggleSlideshowOnSpace:!0,enableKeyboardNavigation:!0,closeOnEscape:!0,closeOnSlideClick:!0,closeOnSwipeUpOrDown:!0,emulateTouchEvents:!0,stopTouchEventsPropagation:!1,hidePageScrollbars:!0,disableScroll:!0,carousel:!1,continuous:!0,unloadElements:!0,startSlideshow:!1,slideshowInterval:5e3,index:0,preloadRange:2,transitionSpeed:400,slideshowTransitionSpeed:void 0,event:void 0,onopen:void 0,onopened:void 0,onslide:void 0,onslideend:void 0,onslidecomplete:void 0,onclose:void 0,onclosed:void 0},carouselOptions:{hidePageScrollbars:!1,toggleControlsOnReturn:!1,toggleSlideshowOnSpace:!1,enableKeyboardNavigation:!1,closeOnEscape:!1,closeOnSlideClick:!1,closeOnSwipeUpOrDown:!1,disableScroll:!1,startSlideshow:!0},console:window.console&&"function"==typeof window.console.log?window.console:{log:function(){}},support:function(e){var n={touch:void 0!==window.ontouchstart||window.DocumentTouch&&document instanceof DocumentTouch},r={webkitTransition:{end:"webkitTransitionEnd",prefix:"-webkit-"},MozTransition:{end:"transitionend",prefix:"-moz-"},OTransition:{end:"otransitionend",prefix:"-o-"},transition:{end:"transitionend",prefix:""}},i=function(){var t,r,i=n.transition;document.body.appendChild(e),i&&(t=i.name.slice(0,-9)+"ransform",void 0!==e.style[t]&&(e.style[t]="translateZ(0)",r=window.getComputedStyle(e).getPropertyValue(i.prefix+"transform"),n.transform={prefix:i.prefix,name:t,translate:!0,translateZ:!!r&&"none"!==r})),void 0!==e.style.backgroundSize&&(n.backgroundSize={},e.style.backgroundSize="contain",n.backgroundSize.contain="contain"===window.getComputedStyle(e).getPropertyValue("background-size"),e.style.backgroundSize="cover",n.backgroundSize.cover="cover"===window.getComputedStyle(e).getPropertyValue("background-size")),document.body.removeChild(e)};return function(t,n){var i;for(i in n)if(n.hasOwnProperty(i)&&void 0!==e.style[i]){t.transition=n[i],t.transition.name=i;break}}(n,r),document.body?i():t(document).on("DOMContentLoaded",i),n}(document.createElement("div")),requestAnimationFrame:window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,initialize:function(){return this.initStartIndex(),this.initWidget()===!1?!1:(this.initEventListeners(),this.onslide(this.index),this.ontransitionend(),void(this.options.startSlideshow&&this.play()))},slide:function(t,e){window.clearTimeout(this.timeout);var n,o,r,i=this.index;if(i!==t&&1!==this.num){if(e||(e=this.options.transitionSpeed),this.support.transform){for(this.options.continuous||(t=this.circle(t)),n=Math.abs(i-t)/(i-t),this.options.continuous&&(o=n,n=-this.positions[this.circle(t)]/this.slideWidth,n!==o&&(t=-n*this.num+t)),r=Math.abs(i-t)-1;r;)r-=1,this.move(this.circle((t>i?t:i)-r-1),this.slideWidth*n,0);t=this.circle(t),this.move(i,this.slideWidth*n,e),this.move(t,0,e),this.options.continuous&&this.move(this.circle(t-n),-(this.slideWidth*n),0)}
else t=this.circle(t),this.animate(i*-this.slideWidth,t*-this.slideWidth,e);this.onslide(t)}},getIndex:function(){return this.index},getNumber:function(){return this.num},prev:function(){(this.options.continuous||this.index)&&this.slide(this.index-1)},next:function(){(this.options.continuous||this.index<this.num-1)&&this.slide(this.index+1)},play:function(t){var e=this;window.clearTimeout(this.timeout),this.interval=t||this.options.slideshowInterval,this.elements[this.index]>1&&(this.timeout=this.setTimeout(!this.requestAnimationFrame&&this.slide||function(t,n){e.animationFrameId=e.requestAnimationFrame.call(window,function(){e.slide(t,n)})},[this.index+1,this.options.slideshowTransitionSpeed],this.interval)),this.container.addClass(this.options.playingClass)},pause:function(){window.clearTimeout(this.timeout),this.interval=null,this.container.removeClass(this.options.playingClass)},add:function(t){var e;for(t.concat||(t=Array.prototype.slice.call(t)),this.list.concat||(this.list=Array.prototype.slice.call(this.list)),this.list=this.list.concat(t),this.num=this.list.length,this.num>2&&null===this.options.continuous&&(this.options.continuous=!0,this.container.removeClass(this.options.leftEdgeClass)),this.container.removeClass(this.options.rightEdgeClass).removeClass(this.options.singleClass),e=this.num-t.length;e<this.num;e+=1)this.addSlide(e),this.positionSlide(e);this.positions.length=this.num,this.initSlides(!0)},resetSlides:function(){this.slidesContainer.empty(),this.unloadAllSlides(),this.slides=[]},handleClose:function(){var t=this.options;this.destroyEventListeners(),this.pause(),this.container[0].style.display="none",this.container.removeClass(t.displayClass).removeClass(t.singleClass).removeClass(t.leftEdgeClass).removeClass(t.rightEdgeClass),t.hidePageScrollbars&&(document.body.style.overflow=this.bodyOverflowStyle),this.options.clearSlides&&this.resetSlides(),this.options.onclosed&&this.options.onclosed.call(this)},close:function(){var t=this,e=function(n){n.target===t.container[0]&&(t.container.off(t.support.transition.end,e),t.handleClose())};this.options.onclose&&this.options.onclose.call(this),this.support.transition&&this.options.displayTransition?(this.container.on(this.support.transition.end,e),this.container.removeClass(this.options.displayClass)):this.handleClose()},circle:function(t){return(this.num+t%this.num)%this.num},move:function(t,e,n){this.translateX(t,e,n),this.positions[t]=e},translate:function(t,e,n,i){var r=this.slides[t].style,s=this.support.transition,o=this.support.transform;r[s.name+"Duration"]=i+"ms",r[o.name]="translate("+e+"px, "+n+"px)"+(o.translateZ?" translateZ(0)":"")},translateX:function(t,e,n){this.translate(t,e,0,n)},translateY:function(t,e,n){this.translate(t,0,e,n)},animate:function(t,e,n){if(!n)return void(this.slidesContainer[0].style.left=e+"px");var i=this,r=(new Date).getTime(),o=window.setInterval(function(){var s=(new Date).getTime()-r;return s>n?(i.slidesContainer[0].style.left=e+"px",i.ontransitionend(),void window.clearInterval(o)):void(i.slidesContainer[0].style.left=(e-t)*(Math.floor(s/n*100)/100)+t+"px")},4)},preventDefault:function(t){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},onresize:function(){this.initSlides(!0)},onmousedown:function(t){t.which&&1===t.which&&"VIDEO"!==t.target.nodeName&&(t.preventDefault(),(t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchstart(t))},onmousemove:function(t){this.touchStart&&((t.originalEvent||t).touches=[{pageX:t.pageX,pageY:t.pageY}],this.ontouchmove(t))},onmouseup:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},onmouseout:function(e){if(this.touchStart){var i=e.target,n=e.relatedTarget;(!n||n!==i&&!t.contains(i,n))&&this.onmouseup(e)}},ontouchstart:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var e=(t.originalEvent||t).touches[0];this.touchStart={x:e.pageX,y:e.pageY,time:Date.now()},this.isScrolling=void 0,this.touchDelta={}},ontouchmove:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var n,i,r=(t.originalEvent||t).touches[0],o=(t.originalEvent||t).scale,e=this.index;if(!(r.length>1||o&&1!==o))if(this.options.disableScroll&&t.preventDefault(),this.touchDelta={x:r.pageX-this.touchStart.x,y:r.pageY-this.touchStart.y},n=this.touchDelta.x,void 0===this.isScrolling&&(this.isScrolling=this.isScrolling||Math.abs(n)<Math.abs(this.touchDelta.y)),this.isScrolling)this.options.closeOnSwipeUpOrDown&&this.translateY(e,this.touchDelta.y+this.positions[e],0);else for(t.preventDefault(),window.clearTimeout(this.timeout),this.options.continuous?i=[this.circle(e+1),e,this.circle(e-1)]:(this.touchDelta.x=n/=!e&&n>0||e===this.num-1&&0>n?Math.abs(n)/this.slideWidth+1:1,i=[e],e&&i.push(e-1),e<this.num-1&&i.unshift(e+1));i.length;)e=i.pop(),this.translateX(e,n+this.positions[e],0)},ontouchend:function(t){this.options.stopTouchEventsPropagation&&this.stopPropagation(t);var r,o,a,s,l,e=this.index,n=this.options.transitionSpeed,i=this.slideWidth,c=Number(Date.now()-this.touchStart.time)<250,u=c&&Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.x)>i/2,f=!e&&this.touchDelta.x>0||e===this.num-1&&this.touchDelta.x<0,d=!u&&this.options.closeOnSwipeUpOrDown&&(c&&Math.abs(this.touchDelta.y)>20||Math.abs(this.touchDelta.y)>this.slideHeight/2);this.options.continuous&&(f=!1),r=this.touchDelta.x<0?-1:1,this.isScrolling?d?this.close():this.translateY(e,0,n):u&&!f?(o=e+r,a=e-r,s=i*r,l=-i*r,this.options.continuous?(this.move(this.circle(o),s,0),this.move(this.circle(e-2*r),l,0)):o>=0&&o<this.num&&this.move(o,s,0),this.move(e,this.positions[e]+s,n),this.move(this.circle(a),this.positions[this.circle(a)]+s,n),e=this.circle(a),this.onslide(e)):this.options.continuous?(this.move(this.circle(e-1),-i,n),this.move(e,0,n),this.move(this.circle(e+1),i,n)):(e&&this.move(e-1,-i,n),this.move(e,0,n),e<this.num-1&&this.move(e+1,i,n))},ontouchcancel:function(t){this.touchStart&&(this.ontouchend(t),delete this.touchStart)},ontransitionend:function(t){var e=this.slides[this.index];t&&e!==t.target||(this.interval&&this.play(),this.setTimeout(this.options.onslideend,[this.index,e]))},oncomplete:function(e){var r,i=e.target||e.srcElement,n=i&&i.parentNode;i&&n&&(r=this.getNodeIndex(n),t(n).removeClass(this.options.slideLoadingClass),"error"===e.type?(t(n).addClass(this.options.slideErrorClass),this.elements[r]=3):this.elements[r]=2,i.clientHeight>this.container[0].clientHeight&&(i.style.maxHeight=this.container[0].clientHeight),this.interval&&this.slides[this.index]===n&&this.play(),this.setTimeout(this.options.onslidecomplete,[r,n]))},onload:function(t){this.oncomplete(t)},onerror:function(t){this.oncomplete(t)},onkeydown:function(t){switch(t.which||t.keyCode){case 13:this.options.toggleControlsOnReturn&&(this.preventDefault(t),this.toggleControls());break;case 27:this.options.closeOnEscape&&(this.close(),t.stopImmediatePropagation());break;case 32:this.options.toggleSlideshowOnSpace&&(this.preventDefault(t),this.toggleSlideshow());break;case 37:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.prev());break;case 39:this.options.enableKeyboardNavigation&&(this.preventDefault(t),this.next())}},handleClick:function(e){var n=this.options,o=e.target||e.srcElement,r=o.parentNode,i=function(e){return t(o).hasClass(e)||t(r).hasClass(e)};i(n.toggleClass)?(this.preventDefault(e),this.toggleControls()):i(n.prevClass)?(this.preventDefault(e),this.prev()):i(n.nextClass)?(this.preventDefault(e),this.next()):i(n.closeClass)?(this.preventDefault(e),this.close()):i(n.playPauseClass)?(this.preventDefault(e),this.toggleSlideshow()):r===this.slidesContainer[0]?(this.preventDefault(e),n.closeOnSlideClick?this.close():this.toggleControls()):r.parentNode&&r.parentNode===this.slidesContainer[0]&&(this.preventDefault(e),this.toggleControls())},onclick:function(t){return this.options.emulateTouchEvents&&this.touchDelta&&(Math.abs(this.touchDelta.x)>20||Math.abs(this.touchDelta.y)>20)?void delete this.touchDelta:this.handleClick(t)},updateEdgeClasses:function(t){t?this.container.removeClass(this.options.leftEdgeClass):this.container.addClass(this.options.leftEdgeClass),t===this.num-1?this.container.addClass(this.options.rightEdgeClass):this.container.removeClass(this.options.rightEdgeClass)},handleSlide:function(t){this.options.continuous||this.updateEdgeClasses(t),this.loadElements(t),this.options.unloadElements&&this.unloadElements(t),this.setTitle(t)},onslide:function(t){this.index=t,this.handleSlide(t),this.setTimeout(this.options.onslide,[t,this.slides[t]])},setTitle:function(t){var e=this.slides[t].firstChild.title,n=this.titleElement;n.length&&(this.titleElement.empty(),e&&n[0].appendChild(document.createTextNode(e)))},setTimeout:function(t,e,n){var i=this;return t&&window.setTimeout(function(){t.apply(i,e||[])},n||0)},imageFactory:function(e,n){var c,i,a,u=this,o=this.imagePrototype.cloneNode(!1),s=e,r=this.options.stretchImages,l=function(e){if(!c){if(e={type:e.type,target:i},!i.parentNode)return u.setTimeout(l,[e]);c=!0,t(o).off("load error",l),r&&"load"===e.type&&(i.style.background="url(\""+s+"\") center no-repeat",i.style.backgroundSize=r),n(e)}};return"string"!=typeof s&&(s=this.getItemProperty(e,this.options.urlProperty),a=this.getItemProperty(e,this.options.titleProperty)),r===!0&&(r="contain"),r=this.support.backgroundSize&&this.support.backgroundSize[r]&&r,r?i=this.elementPrototype.cloneNode(!1):(i=o,o.draggable=!1),a&&(i.title=a),t(o).on("load error",l),o.src=s,i},createElement:function(e,n){var r=e&&this.getItemProperty(e,this.options.typeProperty),o=r&&this[r.split("/")[0]+"Factory"]||this.imageFactory,i=e&&o.call(this,e,n);return i||(i=this.elementPrototype.cloneNode(!1),this.setTimeout(n,[{type:"error",target:i}])),t(i).addClass(this.options.slideContentClass),i},loadElement:function(e){this.elements[e]||(this.slides[e].firstChild?this.elements[e]=t(this.slides[e]).hasClass(this.options.slideErrorClass)?3:2:(this.elements[e]=1,t(this.slides[e]).addClass(this.options.slideLoadingClass),this.slides[e].appendChild(this.createElement(this.list[e],this.proxyListener))))},loadElements:function(t){var e,i=Math.min(this.num,2*this.options.preloadRange+1),n=t;for(e=0;i>e;e+=1)n+=e*(e%2===0?-1:1),n=this.circle(n),this.loadElement(n)},unloadElements:function(t){var e,n;for(e in this.elements)this.elements.hasOwnProperty(e)&&(n=Math.abs(t-e),n>this.options.preloadRange&&n+this.options.preloadRange<this.num&&(this.unloadSlide(e),delete this.elements[e]))},addSlide:function(t){var e=this.slidePrototype.cloneNode(!1);e.setAttribute("data-index",t),this.slidesContainer[0].appendChild(e),this.slides.push(e)},positionSlide:function(t){var e=this.slides[t];e.style.width=this.slideWidth+"px",this.support.transform&&(e.style.left=t*-this.slideWidth+"px",this.move(t,this.index>t?-this.slideWidth:this.index<t?this.slideWidth:0,0))},initSlides:function(e){var i,n;for(e||(this.positions=[],this.positions.length=this.num,this.elements={},this.imagePrototype=document.createElement("img"),this.elementPrototype=document.createElement("div"),this.slidePrototype=document.createElement("div"),t(this.slidePrototype).addClass(this.options.slideClass),this.slides=this.slidesContainer[0].children,i=this.options.clearSlides||this.slides.length!==this.num),this.slideWidth=this.container[0].offsetWidth,this.slideHeight=this.container[0].offsetHeight,this.slidesContainer[0].style.width=this.num*this.slideWidth+"px",i&&this.resetSlides(),n=0;n<this.num;n+=1)i&&this.addSlide(n),this.positionSlide(n);this.options.continuous&&this.support.transform&&(this.move(this.circle(this.index-1),-this.slideWidth,0),this.move(this.circle(this.index+1),this.slideWidth,0)),this.support.transform||(this.slidesContainer[0].style.left=this.index*-this.slideWidth+"px")},unloadSlide:function(t){var e,n;e=this.slides[t],n=e.firstChild,null!==n&&e.removeChild(n)},unloadAllSlides:function(){var t,e;for(t=0,e=this.slides.length;e>t;t++)this.unloadSlide(t)},toggleControls:function(){var t=this.options.controlsClass;this.container.hasClass(t)?this.container.removeClass(t):this.container.addClass(t)},toggleSlideshow:function(){this.interval?this.pause():this.play()},getNodeIndex:function(t){return parseInt(t.getAttribute("data-index"),10)},getNestedProperty:function(t,e){return e.replace(/\[(?:'([^']+)'|"([^"]+)"|(\d+))\]|(?:(?:^|\.)([^\.\[]+))/g,function(e,n,i,r,o){var s=o||n||i||r&&parseInt(r,10);e&&t&&(t=t[s])}),t},getDataProperty:function(e,n){if(e.getAttribute){var r=e.getAttribute("data-"+n.replace(/([A-Z])/g,"-$1").toLowerCase());if("string"==typeof r){if(/^(true|false|null|-?\d+(\.\d+)?|\{[\s\S]*\}|\[[\s\S]*\])$/.test(r))try{return t.parseJSON(r)}catch(i){};return r}}},getItemProperty:function(t,e){var n=t[e];return void 0===n&&(n=this.getDataProperty(t,e),void 0===n&&(n=this.getNestedProperty(t,e))),n},initStartIndex:function(){var t,e=this.options.index,n=this.options.urlProperty;if(e&&"number"!=typeof e)for(t=0;t<this.num;t+=1)if(this.list[t]===e||this.getItemProperty(this.list[t],n)===this.getItemProperty(e,n)){e=t;break};this.index=this.circle(parseInt(e,10)||0)},initEventListeners:function(){var n=this,i=this.slidesContainer,e=function(t){var e=n.support.transition&&n.support.transition.end===t.type?"transitionend":t.type;n["on"+e](t)};t(window).on("resize",e),t(document.body).on("keydown",e),this.container.on("click",e),this.support.touch?i.on("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&i.on("mousedown mousemove mouseup mouseout",e),this.support.transition&&i.on(this.support.transition.end,e),this.proxyListener=e},destroyEventListeners:function(){var n=this.slidesContainer,e=this.proxyListener;t(window).off("resize",e),t(document.body).off("keydown",e),this.container.off("click",e),this.support.touch?n.off("touchstart touchmove touchend touchcancel",e):this.options.emulateTouchEvents&&this.support.transition&&n.off("mousedown mousemove mouseup mouseout",e),this.support.transition&&n.off(this.support.transition.end,e)},handleOpen:function(){this.options.onopened&&this.options.onopened.call(this)},initWidget:function(){var e=this,n=function(t){t.target===e.container[0]&&(e.container.off(e.support.transition.end,n),e.handleOpen())};return this.container=t(this.options.container),this.container.length?(this.slidesContainer=this.container.find(this.options.slidesContainer).first(),this.slidesContainer.length?(this.titleElement=this.container.find(this.options.titleElement).first(),1===this.num&&this.container.addClass(this.options.singleClass),this.options.onopen&&this.options.onopen.call(this),this.support.transition&&this.options.displayTransition?this.container.on(this.support.transition.end,n):this.handleOpen(),this.options.hidePageScrollbars&&(this.bodyOverflowStyle=document.body.style.overflow,document.body.style.overflow="hidden"),this.container[0].style.display="block",this.initSlides(),void this.container.addClass(this.options.displayClass)):(this.console.log("blueimp Gallery: Slides container not found.",this.options.slidesContainer),!1)):(this.console.log("blueimp Gallery: Widget container not found.",this.options.container),!1)},initOptions:function(e){this.options=t.extend({},this.options),(e&&e.carousel||this.options.carousel&&(!e||e.carousel!==!1))&&t.extend(this.options,this.carouselOptions),t.extend(this.options,e),this.num<3&&(this.options.continuous=this.options.continuous?null:!1),this.support.transition||(this.options.emulateTouchEvents=!1),this.options.event&&this.preventDefault(this.options.event)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{fullScreen:!1});var n=e.prototype.initialize,i=e.prototype.close;return t.extend(e.prototype,{getFullScreenElement:function(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement},requestFullScreen:function(t){t.requestFullscreen?t.requestFullscreen():t.webkitRequestFullscreen?t.webkitRequestFullscreen():t.mozRequestFullScreen?t.mozRequestFullScreen():t.msRequestFullscreen&&t.msRequestFullscreen()},exitFullScreen:function(){document.exitFullscreen?document.exitFullscreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},initialize:function(){n.call(this),this.options.fullScreen&&!this.getFullScreenElement()&&this.requestFullScreen(this.container[0])},close:function(){this.getFullScreenElement()===this.container[0]&&this.exitFullScreen(),i.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0});var n=e.prototype.initSlides,i=e.prototype.addSlide,r=e.prototype.resetSlides,o=e.prototype.handleClick,s=e.prototype.handleSlide,a=e.prototype.handleClose;return t.extend(e.prototype,{createIndicator:function(e){var n,i,r=this.indicatorPrototype.cloneNode(!1),o=this.getItemProperty(e,this.options.titleProperty),s=this.options.thumbnailProperty;return this.options.thumbnailIndicators&&(s&&(n=this.getItemProperty(e,s)),void 0===n&&(i=e.getElementsByTagName&&t(e).find("img")[0],i&&(n=i.src)),n&&(r.style.backgroundImage="url(\""+n+"\")")),o&&(r.title=o),r},addIndicator:function(t){if(this.indicatorContainer.length){var e=this.createIndicator(this.list[t]);e.setAttribute("data-index",t),this.indicatorContainer[0].appendChild(e),this.indicators.push(e)}},setActiveIndicator:function(e){this.indicators&&(this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),this.activeIndicator=t(this.indicators[e]),this.activeIndicator.addClass(this.options.activeIndicatorClass))},initSlides:function(t){t||(this.indicatorContainer=this.container.find(this.options.indicatorContainer),this.indicatorContainer.length&&(this.indicatorPrototype=document.createElement("li"),this.indicators=this.indicatorContainer[0].children)),n.call(this,t)},addSlide:function(t){i.call(this,t),this.addIndicator(t)},resetSlides:function(){r.call(this),this.indicatorContainer.empty(),this.indicators=[]},handleClick:function(t){var n=t.target||t.srcElement,e=n.parentNode;if(e===this.indicatorContainer[0])this.preventDefault(t),this.slide(this.getNodeIndex(n));else{if(e.parentNode!==this.indicatorContainer[0])return o.call(this,t);this.preventDefault(t),this.slide(this.getNodeIndex(e))}},handleSlide:function(t){s.call(this,t),this.setActiveIndicator(t)},handleClose:function(){this.activeIndicator&&this.activeIndicator.removeClass(this.options.activeIndicatorClass),a.call(this)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";t.extend(e.prototype.options,{videoContentClass:"video-content",videoLoadingClass:"video-loading",videoPlayingClass:"video-playing",videoPosterProperty:"poster",videoSourcesProperty:"sources"});var n=e.prototype.handleSlide;return t.extend(e.prototype,{handleSlide:function(t){n.call(this,t),this.playingVideo&&this.playingVideo.pause()},videoFactory:function(e,n,i){var u,p,l,d,m,r=this,s=this.options,a=this.elementPrototype.cloneNode(!1),h=t(a),b=[{type:"error",target:a}],o=i||document.createElement("video"),c=this.getItemProperty(e,s.urlProperty),f=this.getItemProperty(e,s.typeProperty),g=this.getItemProperty(e,s.titleProperty),v=this.getItemProperty(e,s.videoPosterProperty),y=this.getItemProperty(e,s.videoSourcesProperty);if(h.addClass(s.videoContentClass),g&&(a.title=g),o.canPlayType)if(c&&f&&o.canPlayType(f))o.src=c;else for(;y&&y.length;)if(p=y.shift(),c=this.getItemProperty(p,s.urlProperty),f=this.getItemProperty(p,s.typeProperty),c&&f&&o.canPlayType(f)){o.src=c;break};return v&&(o.poster=v,u=this.imagePrototype.cloneNode(!1),t(u).addClass(s.toggleClass),u.src=v,u.draggable=!1,a.appendChild(u)),l=document.createElement("a"),l.setAttribute("target","_blank"),i||l.setAttribute("download",g),l.href=c,o.src&&(o.controls=!0,(i||t(o)).on("error",function(){r.setTimeout(n,b)}).on("pause",function(){d=!1,h.removeClass(r.options.videoLoadingClass).removeClass(r.options.videoPlayingClass),m&&r.container.addClass(r.options.controlsClass),delete r.playingVideo,r.interval&&r.play()}).on("playing",function(){d=!1,h.removeClass(r.options.videoLoadingClass).addClass(r.options.videoPlayingClass),r.container.hasClass(r.options.controlsClass)?(m=!0,r.container.removeClass(r.options.controlsClass)):m=!1}).on("play",function(){window.clearTimeout(r.timeout),d=!0,h.addClass(r.options.videoLoadingClass),r.playingVideo=o}),t(l).on("click",function(t){r.preventDefault(t),d?o.pause():o.play()}),a.appendChild(i&&i.element||o)),a.appendChild(l),this.setTimeout(n,[{type:"load",target:a}]),a}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{vimeoVideoIdProperty:"vimeo",vimeoPlayerUrl:"//player.vimeo.com/video/VIDEO_ID?api=1&player_id=PLAYER_ID",vimeoPlayerIdPrefix:"vimeo-player-",vimeoClickToPlay:!0});var r=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,n,i){this.url=t,this.videoId=e,this.playerId=n,this.clickToPlay=i,this.element=document.createElement("div"),this.listeners={}},i=0;return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){for(var e,r,o=this,s="//"+("https"===location.protocol?"secure-":"")+"a.vimeocdn.com/js/froogaloop2.min.js",n=document.getElementsByTagName("script"),i=n.length,a=function(){!r&&o.playOnReady&&o.play(),r=!0};i;)if(i-=1,n[i].src===s){e=n[i];break};e||(e=document.createElement("script"),e.src=s),t(e).on("load",a),n[0].parentNode.insertBefore(e,n[0]),/loaded|complete/.test(e.readyState)&&a()},onReady:function(){var t=this;this.ready=!0,this.player.addEvent("play",function(){t.hasPlayed=!0,t.onPlaying()}),this.player.addEvent("pause",function(){t.onPause()}),this.player.addEvent("finish",function(){t.onPause()}),this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){this.listeners.pause(),delete this.playStatus},insertIframe:function(){var t=document.createElement("iframe");t.src=this.url.replace("VIDEO_ID",this.videoId).replace("PLAYER_ID",this.playerId),t.id=this.playerId,this.element.parentNode.replaceChild(t,this.element),this.element=t},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.api("play"):(this.playOnReady=!0,window.$f?this.player||(this.insertIframe(),this.player=$f(this.element),this.player.addEvent("ready",function(){t.onReady()})):this.loadAPI())},pause:function(){this.ready?this.player.api("pause"):this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{VimeoPlayer:n,textFactory:function(t,e){var o=this.options,s=this.getItemProperty(t,o.vimeoVideoIdProperty);return s?(void 0===this.getItemProperty(t,o.urlProperty)&&(t[o.urlProperty]="//vimeo.com/"+s),i+=1,this.videoFactory(t,e,new n(o.vimeoPlayerUrl,s,o.vimeoPlayerIdPrefix+i,o.vimeoClickToPlay))):r.call(this,t,e)}}),e}),function(t){"use strict";"function"==typeof define&&define.amd?define(["./blueimp-helper","./blueimp-gallery-video"],t):t(window.blueimp.helper||window.jQuery,window.blueimp.Gallery)}(function(t,e){"use strict";if(!window.postMessage)return e;t.extend(e.prototype.options,{youTubeVideoIdProperty:"youtube",youTubePlayerVars:{wmode:"transparent"},youTubeClickToPlay:!0});var i=e.prototype.textFactory||e.prototype.imageFactory,n=function(t,e,n){this.videoId=t,this.playerVars=e,this.clickToPlay=n,this.element=document.createElement("div"),this.listeners={}};return t.extend(n.prototype,{canPlayType:function(){return!0},on:function(t,e){return this.listeners[t]=e,this},loadAPI:function(){var e,i=this,r=window.onYouTubeIframeAPIReady,o="//www.youtube.com/iframe_api",t=document.getElementsByTagName("script"),n=t.length;for(window.onYouTubeIframeAPIReady=function(){r&&r.apply(this),i.playOnReady&&i.play()};n;)if(n-=1,t[n].src===o)return;e=document.createElement("script"),e.src=o,t[0].parentNode.insertBefore(e,t[0])},onReady:function(){this.ready=!0,this.playOnReady&&this.play()},onPlaying:function(){this.playStatus<2&&(this.listeners.playing(),this.playStatus=2)},onPause:function(){e.prototype.setTimeout.call(this,this.checkSeek,null,2e3)},checkSeek:function(){(this.stateChange===YT.PlayerState.PAUSED||this.stateChange===YT.PlayerState.ENDED)&&(this.listeners.pause(),delete this.playStatus)},onStateChange:function(t){switch(t.data){case YT.PlayerState.PLAYING:this.hasPlayed=!0,this.onPlaying();break;case YT.PlayerState.PAUSED:case YT.PlayerState.ENDED:this.onPause()};this.stateChange=t.data},onError:function(t){this.listeners.error(t)},play:function(){var t=this;this.playStatus||(this.listeners.play(),this.playStatus=1),this.ready?!this.hasPlayed&&(this.clickToPlay||window.navigator&&/iP(hone|od|ad)/.test(window.navigator.platform))?this.onPlaying():this.player.playVideo():(this.playOnReady=!0,window.YT&&YT.Player?this.player||(this.player=new YT.Player(this.element,{videoId:this.videoId,playerVars:this.playerVars,events:{onReady:function(){t.onReady()},onStateChange:function(e){t.onStateChange(e)},onError:function(e){t.onError(e)}}})):this.loadAPI())},pause:function(){this.ready?this.player.pauseVideo():this.playStatus&&(delete this.playOnReady,this.listeners.pause(),delete this.playStatus)}}),t.extend(e.prototype,{YouTubePlayer:n,textFactory:function(t,e){var r=this.options,o=this.getItemProperty(t,r.youTubeVideoIdProperty);return o?(void 0===this.getItemProperty(t,r.urlProperty)&&(t[r.urlProperty]="//www.youtube.com/watch?v="+o),void 0===this.getItemProperty(t,r.videoPosterProperty)&&(t[r.videoPosterProperty]="//img.youtube.com/vi/"+o+"/maxresdefault.jpg"),this.videoFactory(t,e,new n(o,r.youTubePlayerVars,r.youTubeClickToPlay))):i.call(this,t,e)}}),e});if(!(document.cookie.indexOf("delivery")>=0)){set_cookie("delivery",0)};function show_cities(){$(".mp-pusher").animate({top:500},500,function(){$(window).bind("scroll",function(){if($(window).scrollTop()>$(".choosecity").outerHeight()+500){$("#atelmenumain").addClass("atelfixed")}
else{$("#atelmenumain").removeClass("atelfixed")}});$("#citycaret").removeClass("fa-caret-down").addClass("fa-caret-up");$("#city_chooser_trigger").attr("onclick","hide_cities()")})};function hide_cities(){$(".scroller").animate({top:0},500,function(){$(window).bind("scroll",function(){if($(window).scrollTop()>$(".choosecity").outerHeight()){$("#atelmenumain").addClass("atelfixed")}
else{$("#atelmenumain").removeClass("atelfixed")}});$("#citycaret").removeClass("fa-caret-up").addClass("fa-caret-down");$("#city_chooser_trigger").attr("onclick","show_cities()")})};function objinit(t,e){var n=new google.maps.LatLng(t,e),o={zoom:16,scrollwheel:!1,center:n,styles:[{"featureType":"landscape","stylers":[{"saturation":-100},{"lightness":65},{"visibility":"on"}]},{"featureType":"poi","stylers":[{"saturation":-100},{"lightness":51},{"visibility":"simplified"}]},{"featureType":"road.highway","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"road.arterial","stylers":[{"saturation":-100},{"lightness":30},{"visibility":"on"}]},{"featureType":"road.local","stylers":[{"saturation":-100},{"lightness":40},{"visibility":"on"}]},{"featureType":"transit","stylers":[{"saturation":-100},{"visibility":"simplified"}]},{"featureType":"administrative.province","stylers":[{"visibility":"off"}]},{"featureType":"water","elementType":"labels","stylers":[{"visibility":"on"},{"lightness":-25},{"saturation":-100}]},{"featureType":"water","elementType":"geometry","stylers":[{"hue":"#ffff00"},{"lightness":-25},{"saturation":-97}]}]};var i=document.getElementById("obj-map"),r=new google.maps.Map(i,o),s=new google.maps.Marker({position:n,map:r})};var cl;function goToByScroll(){$("html,body").animate({scrollTop:$(".choosecity").offset().top},"slow")};function gotoelemscroll(t){$("html,body").animate({scrollTop:$("#"+t).offset().top-100},"slow")};function gotoidbyscroll(t){$("html,body").animate({scrollTop:$("#"+t).offset().top},"slow")};function loadarctic(){$(".portfolio_arctic").each(function(){$(this).click(function(t){t.preventDefault(t);$.arcticmodal({type:"ajax",url:$(this).attr("href"),ajax:{type:"POST",success:function(t,e,n){t.body.html("<div class='box-modal'><div class='box-modal_close arcticmodal-close'><i class='fa fa-times-circle'></i></div>"+n+"</div>")}}})})})};function on_page_load(){cart_widget();overall();$(".btn").button();if(parseInt(get_cookie("delivery"))==150){$("#delivery").addClass("active");$("#tbldelivery").fadeIn()}
else{$("#selfdelivery").addClass("active");$("#tbldelivery").fadeOut()};$(".fancybox").fancybox({afterLoad:function(){if(this.title!=""){if($(this.element).attr("type")=="many")this.title="Ссылка: <a onclick='event.preventDefault(); $.fancybox.close(); content_load($(this).attr(\"href\"));' href='"+$(this.element).attr("link")+"'>"+this.title+"</a> ";if($(this.element).attr("type")=="gal")this.title="<strong>"+this.title+"</strong><br>"+$(this.element).attr("description")}},padding:0,margin:0,helpers:{title:{type:"inside",position:"bottom"}}});$(".yamm .dropmr").dropdown().on("hide.bs.dropdown",function(t){if($.contains(dropdown,t.target)){t.preventDefault()}});fullurl=decodeURIComponent(document.location.pathname);url=fullurl.split("/");$(function(){$(".inactiveUntilOnLoad").removeClass("inactiveUntilOnLoad")});$("#accordian h3").click(function(){$("#accordian ul ul").slideUp();if(!$(this).next().is(":visible")){$(this).next().slideDown()}});$(".navbar").each(function(){curmenu=this;mwidht=100/$(this).find(".countablem").length;mwidht=mwidht.toFixed(2)-0.01+"%";$(this).find(".countablem").each(function(){$(this).css("width",mwidht);$(this).has("ul").hover(function(){$(this).addClass("atelhover_covershadow")},function(){$(this).removeClass("atelhover_covershadow")});$(this).hover(function(){$(this).addClass("atelhover")},function(){$(this).removeClass("atelhover")})})});$(".four").each(function(){$(this).click(function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)});$(this).onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)}});if(document.getElementById("links"))document.getElementById("links").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links2"))document.getElementById("links2").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links3"))document.getElementById("links3").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links4"))document.getElementById("links4").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links5"))document.getElementById("links5").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links6"))document.getElementById("links6").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links7"))document.getElementById("links7").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)};if(document.getElementById("links8"))document.getElementById("links8").onclick=function(t){t=t||window.event;var e=t.target||t.srcElement,n=e.src?e.parentNode:e,i={index:n,fullScreen:!1,event:t,indicatorContainer:"ol",activeIndicatorClass:"active",thumbnailProperty:"thumbnail",thumbnailIndicators:!0},r=this.getElementsByTagName("a");blueimp.Gallery(r,i)}};function content_load(t,e,n){var i=t;t="/"+t.split("/")[2];$(".canvas_inner").fadeIn("slow");$.post("/common/content/content_load.php",{link:t,pnumber:e},function(t){$("#ajaxcontent").html(t.content);$("#filter").html(t.filter);$(".canvas_inner").fadeOut("slow");if(t.seo_pagetitle)tmp_title=t.seo_pagetitle;else tmp_title=t.head+" | "+global_title;if(n!=1)history.pushState({pnumber:e},tmp_title,i);document.title=tmp_title;on_page_load();goToByScroll()},"json")};function content_load_f(t,e,n){$(".canvas_inner").fadeIn("slow");$.post("/common/content/content_load.php",{link:t,pnumber:e},function(i){$("#ajaxcontent").html(i.content);$("#filter").html(i.filter);$(".canvas_inner").fadeOut("slow");if(i.seo_pagetitle)tmp_title=i.seo_pagetitle;else tmp_title=i.head+" | "+global_title;if(n!=1)history.pushState({pnumber:e},tmp_title,t);document.title=tmp_title;goToByScroll()},"json")};function fixedEncodeURI(t){return t.replace("%5B","[").replace("%5D","]")};function material_filter(t,e,n){$(".canvas_inner").fadeIn("slow");sData=$("#filterform").serialize()+"&type_id="+t+"&parent="+e+"&pnumber="+n;$.get("/common/content/productfilter.php",sData,function(t){$("#ajaxcontent").html(t);$(".canvas_inner").fadeOut("slow")})};function add_to_cart(t){$.post("/mod/shop.php",{c:"add",id:t},function(t){noty({text:"<div style=\"font-size:1.3em\">В <a style=\"color:black\" href=\"/Корзина\" ><span class=\"glyphicon glyphicon-shopping-cart\"></span> Корзину</a> добавлен товар</div>",layout:"bottomRight",type:"success",timeout:1000});cart_widget()})};function confirm_order(t){bootbox.dialog({title:"Отправка сообщения",message:"<form id='modalPrivateSend'>		<center>Заполните данные</center><br>		<input id='cart_time' class='form-control input-sm modalformmargin' name='time' placeholder='Время доставки'>		<input id='cart_adress' class='form-control input-sm modalformmargin' name='adress' placeholder='Ваш адрес'>		<input id='cart_name' class='form-control input-sm modalformmargin' name='name' placeholder='Ваше имя'>		<input id='cart_phone' class='form-control input-sm modalformmargin' name='phone' placeholder='Ваш телефон'>		<input id='cart_email' class='form-control input-sm modalformmargin' name='email' placeholder='Ваш E-mail'>		<textarea id='cart_message' style='height:150px' class='form-control input-sm' name='message' placeholder='Ваше сообщение' >		</textarea></form>",buttons:{danger:{label:"Отмена",className:"btn-danger"},confirm:{label:"Отправить",className:"btn-primary",callback:function(){$.post("/mod/shop.php",{c:"order_for_send"},function(e){products=e;message=$("#cart_message").val()+"<br>";phone=$("#cart_phone").val();email=$("#cart_email").val();time=$("#cart_time").val();adress=$("#cart_adress").val();name=$("#cart_name").val();cart_send(message,phone,name,email,t,time,adress,products)})}}}})};function cart_send(t,e,n,i,r,o,s,a){$.post("/mod/message.php",{place:"Корзина",products:a,time:o,adress:s,to_user_id:r,message:t,phone:e,name:n,email:i},function(t){$(".modal").modal("hide");bootbox.alert(t)})};function overall(){val=0;$(".sums").each(function(){val+=parseInt($(this).text())});val+=parseInt(get_cookie("delivery"));$("#overall").html(val+" рублей")};function sum(t){count=$("#count"+t).val();cost=$("#cost"+t).text();val=cost*count;$("#sum"+t).html(val);$.ajax({type:"POST",url:"/mod/shop.php",data:{c:"count",id:t,count:count},beforeSend:function(){overall()},success:function(t){},complete:function(){},error:function(){alert("error")}})};function plus(t){val=$("#count"+t).val();val++;$("#count"+t).val(val);sum(t)};function minus(t){val=$("#count"+t).val();if(val>1)val=val-1;$("#count"+t).val(val);sum(t)};function proddelete(t){$.ajax({type:"POST",url:"/mod/shop.php",data:{c:"del",id:t},beforeSend:function(){},success:function(t){},complete:function(){$("#stroke"+t).remove();overall();cart_widget()},error:function(){alert("error")}})};function order(){$(":input").each(function(){$(this).attr("value",$(this).val())});$("textarea").each(function(){$(this).text($(this).val())});$.ajax({type:"POST",url:"/common/widget/order.php",data:{ajax:1,content:$("#myproducts").html(),email:emailfield},beforeSend:function(){},success:function(t){$.fancybox({type:"inline",content:t})},complete:function(){},error:function(){alert("error")}})};function prodfilter(t,e){sData=$("#productfilter").serialize();sData+="&category="+t+"&type="+e;$("#ajaxcontent").html("<center><br><br><img src='/common/img/load.gif'></center>");$.post("/common/content/productfilter.php",sData,function(t){$("#ajaxcontent").html(t)})};function filter_addict_load(t){option_id=$("*[name="+t+"]").val();$.post("/common/content/addict_param.php",{param_id:t,option_id:option_id},function(e){$("#filter_addict"+t).html(e)})};function prodsearch(){sdata=$("#sdata").val();$("#ajaxcontent").html("<center><br><br><img src='/common/img/load.gif'></center>");$.post("/common/content/prodsearch.php",{sdata:sdata},function(t){$("#ajaxcontent").html(t)})};function cart_widget(){$.post("/mod/shop.php",{c:"cart_widget"},function(t){$("#shop-basket").html(t)})};function clear_cart(){$.post("/mod/shop.php",{c:"clear_cart"},function(t){cart_widget();if(window.location.pathname=="/%D0%9A%D0%BE%D1%80%D0%B7%D0%B8%D0%BD%D0%B0")location.reload()})};function getsvar(t){var i=[],e,r=t.slice(window.location.href.indexOf("?")+1).split("&");for(var n=0;n<r.length;n++){e=r[n].split("=");i.push(e[0]);i[e[0]]=e[1]};return i};function ordersendnifty(t,e){$.post("/mod/message.php",t,function(t){$("#"+e).find(".md-message").html(t)})};function nifty_send_message(t){sData=$("#modalSendMessage").serialize();sData="place=Отправка сообщения&"+sData;if(getsvar(sData)["phone"]=""||!getsvar(sData)["phone"])bootbox.alert("Заполните все поля!");else ordersendnifty(sData,t)};function nifty_order_call(t){sData=$("#modalOrderCall").serialize();sData="place=Заказ звонка&"+sData;if(getsvar(sData)["phone"]=""||!getsvar(sData)["phone"])bootbox.alert("Заполните все поля!");else ordersendnifty(sData,t)};function land_recall(){phone=$("#land_phone").val();if(phone==""||!phone)bootbox.alert("Эм, а куда звонить? Укажи номер телефона");else $.post("/mod/message.php",{place:"LAND_RECALL",to_user_id:2,phone:phone},function(t){bootbox.alert("Ок, мы тебе позвоним!");goog_report_conversion()})};function order_ivi(t,e,n){products="Название отеля:<br><a href='"+n+"'>"+e+"</a><br>Тип номера:<br>"+t;bootbox.dialog({title:"Бронирование",message:"<form id='modalPrivateSend' class='inputmrgn'>		<center>"+e+" / "+t+"</center><br>		<input id='cart_name' class='form-control input-sm modalformmargin' name='name' placeholder='Ваше имя'>		<input id='cart_phone' class='form-control input-sm modalformmargin' name='phone' placeholder='Ваш телефон'>		<input id='cart_email' class='form-control input-sm modalformmargin' name='email' placeholder='Ваш E-mail'>		<textarea id='cart_message' style='height:150px' class='form-control input-sm' name='message' placeholder='Ваш комментарий' ></textarea></form>",buttons:{danger:{label:"Отмена",className:"btn-danger"},confirm:{label:"Отправить",className:"btn-primary",callback:function(){message=$("#cart_message").val()+"<br>";phone=$("#cart_phone").val();email=$("#cart_email").val();name=$("#cart_name").val();$.post("/mod/message.php",{products:products,place:"Бронирование",to_user_id:2,message:message,phone:phone,name:name,email:email},function(t){$(".modal").modal("hide");bootbox.alert(t)})}}}})};$(document).ready(function(){onloads()});function onloads(){init_canvas();mpmenuinit();on_page_load();svgconvert();minheight();$(window).resize(function(){minheight();constantheight()});constantheight();myownaffix();rowsame();updateGradient();setInterval(updateGradient,10);$(".canvas_inner").fadeOut("slow");if(mymain!=1)scrolldowntomain()};function rowsame(){maxheight=0;$(".rowsame div[class^=col]").each(function(){if($(this).height()>maxheight)maxheight=$(this).height()});$(".rowsame div[class^=col]").each(function(){$(this).height(maxheight)});$(".rowsame div[class^=col]").each(function(){$(this).find("div").height(maxheight)})};function scrl(t){lsls=$("#"+t).offset().top;$("html,body").animate({scrollTop:lsls},"slow")};function constantheight(){$(".constantheight").each(function(){$(this).css("height",$(this).outerHeight())})};function portrotate(t){if(t=="right"){$(".portactive").fadeOut();if($(".portactive").is(":last-child")){next=$(".macbook_inner:nth-child(2)")}
else{next=$(".portactive").next()};$(".portactive").removeClass("portactive");next.addClass("portactive");next.fadeIn()};if(t=="left"){$(".portactive").fadeOut();if($(".portactive").is(":nth-child(2)")){prev=$(".macbook_inner:last-child")}
else{prev=$(".portactive").prev()};$(".portactive").removeClass("portactive");prev.addClass("portactive");prev.fadeIn()}};function minheight(){var t=$(window).height();$(".minheight").each(function(){$(this).css("min-height",t)})};function scrolldowntomain(){$("html,body").animate({scrollTop:$(".min-height ").offset().top},"slow")};function galaxymy(){var t=new Space();t.init();t.stop();$(".top_logo").addClass("off");$("#scrolldownbutton").addClass("off");$("#top_galaxy_bg").mouseenter(function(){t.continue();$(".top_logo").removeClass("off");$("#scrolldownbutton").removeClass("off")});$("#top_galaxy_bg").mouseleave(function(){t.stop();$(".top_logo").addClass("off");$("#scrolldownbutton").addClass("off")})};function angularloads(){angular.module("myvideo_land",["angularVideoBg"]);angular.module("myvideo_land").controller("VideoCtrl",function(t){t.video={id:"Oy_AegQpR6I"}})};function myownaffix(){var t=$("#model_menu").offset().top,e=$("#model_menu_mobile").offset().top;$(window).bind("scroll",function(){$("#mp-menu").multilevelpushmenu("redraw");if($(window).scrollTop()>t){$("#model_menu").addClass("atelfixed")}
else{$("#model_menu").removeClass("atelfixed")};if($(window).scrollTop()>e){$("#model_menu_mobile").addClass("atelfixed");$("#mobile_menu_logo").fadeIn()}
else{$("#model_menu_mobile").removeClass("atelfixed");$("#mobile_menu_logo").fadeOut()}})};function mpmenuinit(){$("#mp-menu").multilevelpushmenu({menuWidth:"70%",menuHeight:"100%",collapsed:!0,overlapWidth:0,mode:"overlap",swipe:"both",backText:"Назад",preventItemClick:!1,onMenuReady:function(){$("#mp-menu nav").fadeIn();$("#mp-menu").find(".fa-times").click(function(t){t.preventDefault();$("#mp-menu").multilevelpushmenu("collapse")})},onItemClick:function(){var n=arguments[0],i=arguments[1],t=arguments[2],r=arguments[3],e=t.find("a:first").attr("href");location.href=e}});$(window).resize(function(){$("#mp-menu").multilevelpushmenu("redraw")})};function svgconvert(){jQuery("img.svg").each(function(){var t=jQuery(this),e=t.attr("id"),n=t.attr("class"),i=t.attr("src");jQuery.get(i,function(i){var r=jQuery(i).find("svg");if(typeof e!=="undefined"){r=r.attr("id",e)};if(typeof n!=="undefined"){r=r.attr("class",n+" replaced-svg")};r=r.removeAttr("xmlns:a");t.replaceWith(r)},"xml")})};function init_canvas(){var e={lines:17,length:35,width:10,radius:30,corners:1,rotate:76,direction:1,color:"#319C96",speed:2.1,trail:60,shadow:!1,hwaccel:!1,className:"spinner",zIndex:2e9,top:"50%",left:"50%"};var t=document.getElementById("canvas_overlay"),n=new Spinner(e).spin(t)};var colors=new Array([62,35,255],[60,255,60],[255,35,98],[45,175,230],[255,0,255],[255,128,0]),step=0,colorIndices=[0,1,2,3,4,5],gradientSpeed=0.003;function updateGradient(){if($===undefined)return;var e=colors[colorIndices[0]],n=colors[colorIndices[1]],i=colors[colorIndices[2]],r=colors[colorIndices[3]],t=1-step,a=Math.round(t*e[0]+step*n[0]),l=Math.round(t*e[1]+step*n[1]),c=Math.round(t*e[2]+step*n[2]),o="rgb("+a+","+l+","+c+")",u=Math.round(t*i[0]+step*r[0]),f=Math.round(t*i[1]+step*r[1]),d=Math.round(t*i[2]+step*r[2]),s="rgb("+u+","+f+","+d+")";$("body").css({background:"-webkit-gradient(linear, left top, right top, from("+o+"), to("+s+"))"}).css({background:"-moz-linear-gradient(left, "+o+" 0%, "+s+" 100%)"});step+=gradientSpeed;if(step>=1){step%=1;colorIndices[0]=colorIndices[1];colorIndices[2]=colorIndices[3];colorIndices[1]=(colorIndices[1]+Math.floor(1+Math.random()*(colors.length-1)))%colors.length;colorIndices[3]=(colorIndices[3]+Math.floor(1+Math.random()*(colors.length-1)))%colors.length}};
