-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbundle.js
37 lines (37 loc) · 193 KB
/
bundle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
!function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=12)}([function(t,e,n){"use strict";function i(t){return"[object Array]"===x.call(t)}function o(t){return"[object ArrayBuffer]"===x.call(t)}function r(t){return"undefined"!=typeof FormData&&t instanceof FormData}function s(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function a(t){return"string"==typeof t}function l(t){return"number"==typeof t}function c(t){return void 0===t}function u(t){return null!==t&&"object"===(void 0===t?"undefined":w(t))}function f(t){return"[object Date]"===x.call(t)}function d(t){return"[object File]"===x.call(t)}function h(t){return"[object Blob]"===x.call(t)}function p(t){return"[object Function]"===x.call(t)}function g(t){return u(t)&&p(t.pipe)}function m(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function v(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}function b(t,e){if(null!==t&&void 0!==t)if("object"===(void 0===t?"undefined":w(t))||i(t)||(t=[t]),i(t))for(var n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.call(null,t[r],r,t)}function _(){function t(t,n){"object"===w(e[n])&&"object"===(void 0===t?"undefined":w(t))?e[n]=_(e[n],t):e[n]=t}for(var e={},n=0,i=arguments.length;n<i;n++)b(arguments[n],t);return e}function E(t,e,n){return b(e,function(e,i){t[i]=n&&"function"==typeof e?T(e,n):e}),t}var w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T=n(7),C=n(17),x=Object.prototype.toString;t.exports={isArray:i,isArrayBuffer:o,isBuffer:C,isFormData:r,isArrayBufferView:s,isString:a,isNumber:l,isObject:u,isUndefined:c,isDate:f,isFile:d,isBlob:h,isFunction:p,isStream:g,isURLSearchParams:m,isStandardBrowserEnv:y,forEach:b,merge:_,extend:E,trim:v}},function(t,e,n){"use strict";(function(t){var n,i,o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*!
* jQuery JavaScript Library v3.2.1
* https://jquery.com/
*
* Includes Sizzle.js
* https://sizzlejs.com/
*
* Copyright JS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2017-03-20T18:59Z
*/
!function(e,n){"object"===o(t)&&"object"===o(t.exports)?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:void 0,function(r,s){function a(t,e){e=e||at;var n=e.createElement("script");n.text=t,e.head.appendChild(n).parentNode.removeChild(n)}function l(t){var e=!!t&&"length"in t&&t.length,n=bt.type(t);return"function"!==n&&!bt.isWindow(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}function c(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}function u(t,e,n){return bt.isFunction(e)?bt.grep(t,function(t,i){return!!e.call(t,i,t)!==n}):e.nodeType?bt.grep(t,function(t){return t===e!==n}):"string"!=typeof e?bt.grep(t,function(t){return dt.call(e,t)>-1!==n}):Dt.test(e)?bt.filter(e,t,n):(e=bt.filter(e,t),bt.grep(t,function(t){return dt.call(e,t)>-1!==n&&1===t.nodeType}))}function f(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}function d(t){var e={};return bt.each(t.match(jt)||[],function(t,n){e[n]=!0}),e}function h(t){return t}function p(t){throw t}function g(t,e,n,i){var o;try{t&&bt.isFunction(o=t.promise)?o.call(t).done(e).fail(n):t&&bt.isFunction(o=t.then)?o.call(t,e,n):e.apply(void 0,[t].slice(i))}catch(t){n.apply(void 0,[t])}}function m(){at.removeEventListener("DOMContentLoaded",m),r.removeEventListener("load",m),bt.ready()}function v(){this.expando=bt.expando+v.uid++}function y(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Bt.test(t)?JSON.parse(t):t)}function b(t,e,n){var i;if(void 0===n&&1===t.nodeType)if(i="data-"+e.replace(Ut,"-$&").toLowerCase(),"string"==typeof(n=t.getAttribute(i))){try{n=y(n)}catch(t){}Ft.set(t,e,n)}else n=void 0;return n}function _(t,e,n,i){var o,r=1,s=20,a=i?function(){return i.cur()}:function(){return bt.css(t,e,"")},l=a(),c=n&&n[3]||(bt.cssNumber[e]?"":"px"),u=(bt.cssNumber[e]||"px"!==c&&+l)&&Vt.exec(bt.css(t,e));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do{r=r||".5",u/=r,bt.style(t,e,u+c)}while(r!==(r=a()/l)&&1!==r&&--s)}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}function E(t){var e,n=t.ownerDocument,i=t.nodeName,o=Xt[i];return o||(e=n.body.appendChild(n.createElement(i)),o=bt.css(e,"display"),e.parentNode.removeChild(e),"none"===o&&(o="block"),Xt[i]=o,o)}function w(t,e){for(var n,i,o=[],r=0,s=t.length;r<s;r++)i=t[r],i.style&&(n=i.style.display,e?("none"===n&&(o[r]=Wt.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&Kt(i)&&(o[r]=E(i))):"none"!==n&&(o[r]="none",Wt.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(t[r].style.display=o[r]);return t}function T(t,e){var n;return n=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&c(t,e)?bt.merge([t],n):n}function C(t,e){for(var n=0,i=t.length;n<i;n++)Wt.set(t[n],"globalEval",!e||Wt.get(e[n],"globalEval"))}function x(t,e,n,i,o){for(var r,s,a,l,c,u,f=e.createDocumentFragment(),d=[],h=0,p=t.length;h<p;h++)if((r=t[h])||0===r)if("object"===bt.type(r))bt.merge(d,r.nodeType?[r]:r);else if(Zt.test(r)){for(s=s||f.appendChild(e.createElement("div")),a=(Yt.exec(r)||["",""])[1].toLowerCase(),l=Jt[a]||Jt._default,s.innerHTML=l[1]+bt.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;bt.merge(d,s.childNodes),s=f.firstChild,s.textContent=""}else d.push(e.createTextNode(r));for(f.textContent="",h=0;r=d[h++];)if(i&&bt.inArray(r,i)>-1)o&&o.push(r);else if(c=bt.contains(r.ownerDocument,r),s=T(f.appendChild(r),"script"),c&&C(s),n)for(u=0;r=s[u++];)Qt.test(r.type||"")&&n.push(r);return f}function A(){return!0}function S(){return!1}function O(){try{return at.activeElement}catch(t){}}function D(t,e,n,i,r,s){var a,l;if("object"===(void 0===e?"undefined":o(e))){"string"!=typeof n&&(i=i||n,n=void 0);for(l in e)D(t,l,n,i,e[l],s);return t}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=S;else if(!r)return t;return 1===s&&(a=r,r=function(t){return bt().off(t),a.apply(this,arguments)},r.guid=a.guid||(a.guid=bt.guid++)),t.each(function(){bt.event.add(this,e,r,i,n)})}function I(t,e){return c(t,"table")&&c(11!==e.nodeType?e:e.firstChild,"tr")?bt(">tbody",t)[0]||t:t}function N(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function k(t){var e=ae.exec(t.type);return e?t.type=e[1]:t.removeAttribute("type"),t}function L(t,e){var n,i,o,r,s,a,l,c;if(1===e.nodeType){if(Wt.hasData(t)&&(r=Wt.access(t),s=Wt.set(e,r),c=r.events)){delete s.handle,s.events={};for(o in c)for(n=0,i=c[o].length;n<i;n++)bt.event.add(e,o,c[o][n])}Ft.hasData(t)&&(a=Ft.access(t),l=bt.extend({},a),Ft.set(e,l))}}function j(t,e){var n=e.nodeName.toLowerCase();"input"===n&&$t.test(t.type)?e.checked=t.checked:"input"!==n&&"textarea"!==n||(e.defaultValue=t.defaultValue)}function P(t,e,n,i){e=ut.apply([],e);var o,r,s,l,c,u,f=0,d=t.length,h=d-1,p=e[0],g=bt.isFunction(p);if(g||d>1&&"string"==typeof p&&!yt.checkClone&&se.test(p))return t.each(function(o){var r=t.eq(o);g&&(e[0]=p.call(this,o,r.html())),P(r,e,n,i)});if(d&&(o=x(e,t[0].ownerDocument,!1,t,i),r=o.firstChild,1===o.childNodes.length&&(o=r),r||i)){for(s=bt.map(T(o,"script"),N),l=s.length;f<d;f++)c=o,f!==h&&(c=bt.clone(c,!0,!0),l&&bt.merge(s,T(c,"script"))),n.call(t[f],c,f);if(l)for(u=s[s.length-1].ownerDocument,bt.map(s,k),f=0;f<l;f++)c=s[f],Qt.test(c.type||"")&&!Wt.access(c,"globalEval")&&bt.contains(u,c)&&(c.src?bt._evalUrl&&bt._evalUrl(c.src):a(c.textContent.replace(le,""),u))}return t}function R(t,e,n){for(var i,o=e?bt.filter(e,t):t,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||bt.cleanData(T(i)),i.parentNode&&(n&&bt.contains(i.ownerDocument,i)&&C(T(i,"script")),i.parentNode.removeChild(i));return t}function H(t,e,n){var i,o,r,s,a=t.style;return n=n||fe(t),n&&(s=n.getPropertyValue(e)||n[e],""!==s||bt.contains(t.ownerDocument,t)||(s=bt.style(t,e)),!yt.pixelMarginRight()&&ue.test(s)&&ce.test(e)&&(i=a.width,o=a.minWidth,r=a.maxWidth,a.minWidth=a.maxWidth=a.width=s,s=n.width,a.width=i,a.minWidth=o,a.maxWidth=r)),void 0!==s?s+"":s}function M(t,e){return{get:function(){return t()?void delete this.get:(this.get=e).apply(this,arguments)}}}function W(t){if(t in ve)return t;for(var e=t[0].toUpperCase()+t.slice(1),n=me.length;n--;)if((t=me[n]+e)in ve)return t}function F(t){var e=bt.cssProps[t];return e||(e=bt.cssProps[t]=W(t)||t),e}function B(t,e,n){var i=Vt.exec(e);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):e}function U(t,e,n,i,o){var r,s=0;for(r=n===(i?"border":"content")?4:"width"===e?1:0;r<4;r+=2)"margin"===n&&(s+=bt.css(t,n+Gt[r],!0,o)),i?("content"===n&&(s-=bt.css(t,"padding"+Gt[r],!0,o)),"margin"!==n&&(s-=bt.css(t,"border"+Gt[r]+"Width",!0,o))):(s+=bt.css(t,"padding"+Gt[r],!0,o),"padding"!==n&&(s+=bt.css(t,"border"+Gt[r]+"Width",!0,o)));return s}function q(t,e,n){var i,o=fe(t),r=H(t,e,o),s="border-box"===bt.css(t,"boxSizing",!1,o);return ue.test(r)?r:(i=s&&(yt.boxSizingReliable()||r===t.style[e]),"auto"===r&&(r=t["offset"+e[0].toUpperCase()+e.slice(1)]),(r=parseFloat(r)||0)+U(t,e,n||(s?"border":"content"),i,o)+"px")}function V(t,e,n,i,o){return new V.prototype.init(t,e,n,i,o)}function G(){be&&(!1===at.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(G):r.setTimeout(G,bt.fx.interval),bt.fx.tick())}function K(){return r.setTimeout(function(){ye=void 0}),ye=bt.now()}function z(t,e){var n,i=0,o={height:t};for(e=e?1:0;i<4;i+=2-e)n=Gt[i],o["margin"+n]=o["padding"+n]=t;return e&&(o.opacity=o.width=t),o}function X(t,e,n){for(var i,o=(Q.tweeners[e]||[]).concat(Q.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,e,t))return i}function $(t,e,n){var i,o,r,s,a,l,c,u,f="width"in e||"height"in e,d=this,h={},p=t.style,g=t.nodeType&&Kt(t),m=Wt.get(t,"fxshow");n.queue||(s=bt._queueHooks(t,"fx"),null==s.unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,bt.queue(t,"fx").length||s.empty.fire()})}));for(i in e)if(o=e[i],_e.test(o)){if(delete e[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}h[i]=m&&m[i]||bt.style(t,i)}if((l=!bt.isEmptyObject(e))||!bt.isEmptyObject(h)){f&&1===t.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],c=m&&m.display,null==c&&(c=Wt.get(t,"display")),u=bt.css(t,"display"),"none"===u&&(c?u=c:(w([t],!0),c=t.style.display||c,u=bt.css(t,"display"),w([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===bt.css(t,"float")&&(l||(d.done(function(){p.display=c}),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always(function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]})),l=!1;for(i in h)l||(m?"hidden"in m&&(g=m.hidden):m=Wt.access(t,"fxshow",{display:c}),r&&(m.hidden=!g),g&&w([t],!0),d.done(function(){g||w([t]),Wt.remove(t,"fxshow");for(i in h)bt.style(t,i,h[i])})),l=X(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}}function Y(t,e){var n,i,o,r,s;for(n in t)if(i=bt.camelCase(n),o=e[i],r=t[n],Array.isArray(r)&&(o=r[1],r=t[n]=r[0]),n!==i&&(t[i]=r,delete t[n]),(s=bt.cssHooks[i])&&"expand"in s){r=s.expand(r),delete t[i];for(n in r)n in t||(t[n]=r[n],e[n]=o)}else e[i]=o}function Q(t,e,n){var i,o,r=0,s=Q.prefilters.length,a=bt.Deferred().always(function(){delete l.elem}),l=function(){if(o)return!1;for(var e=ye||K(),n=Math.max(0,c.startTime+c.duration-e),i=n/c.duration||0,r=1-i,s=0,l=c.tweens.length;s<l;s++)c.tweens[s].run(r);return a.notifyWith(t,[c,r,n]),r<1&&l?n:(l||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:bt.extend({},e),opts:bt.extend(!0,{specialEasing:{},easing:bt.easing._default},n),originalProperties:e,originalOptions:n,startTime:ye||K(),duration:n.duration,tweens:[],createTween:function(e,n){var i=bt.Tween(t,c.opts,e,n,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(i),i},stop:function(e){var n=0,i=e?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(Y(u,c.opts.specialEasing);r<s;r++)if(i=Q.prefilters[r].call(c,t,u,c.opts))return bt.isFunction(i.stop)&&(bt._queueHooks(c.elem,c.opts.queue).stop=bt.proxy(i.stop,i)),i;return bt.map(u,X,c),bt.isFunction(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),bt.fx.timer(bt.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}function J(t){return(t.match(jt)||[]).join(" ")}function Z(t){return t.getAttribute&&t.getAttribute("class")||""}function tt(t,e,n,i){var r;if(Array.isArray(e))bt.each(e,function(e,r){n||Ne.test(t)?i(t,r):tt(t+"["+("object"===(void 0===r?"undefined":o(r))&&null!=r?e:"")+"]",r,n,i)});else if(n||"object"!==bt.type(e))i(t,e);else for(r in e)tt(t+"["+r+"]",e[r],n,i)}function et(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var i,o=0,r=e.toLowerCase().match(jt)||[];if(bt.isFunction(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(t[i]=t[i]||[]).unshift(n)):(t[i]=t[i]||[]).push(n)}}function nt(t,e,n,i){function o(a){var l;return r[a]=!0,bt.each(t[a]||[],function(t,a){var c=a(e,n,i);return"string"!=typeof c||s||r[c]?s?!(l=c):void 0:(e.dataTypes.unshift(c),o(c),!1)}),l}var r={},s=t===qe;return o(e.dataTypes[0])||!r["*"]&&o("*")}function it(t,e){var n,i,o=bt.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((o[n]?t:i||(i={}))[n]=e[n]);return i&&bt.extend(!0,t,i),t}function ot(t,e,n){for(var i,o,r,s,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=t.mimeType||e.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||t.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}function rt(t,e,n,i){var o,r,s,a,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(r=u.shift();r;)if(t.responseFields[r]&&(n[t.responseFields[r]]=e),!l&&i&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if(a=o.split(" "),a[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+r}}}return{state:"success",data:e}}var st=[],at=r.document,lt=Object.getPrototypeOf,ct=st.slice,ut=st.concat,ft=st.push,dt=st.indexOf,ht={},pt=ht.toString,gt=ht.hasOwnProperty,mt=gt.toString,vt=mt.call(Object),yt={},bt=function t(e,n){return new t.fn.init(e,n)},_t=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,Et=/^-ms-/,wt=/-([a-z])/g,Tt=function(t,e){return e.toUpperCase()};bt.fn=bt.prototype={jquery:"3.2.1",constructor:bt,length:0,toArray:function(){return ct.call(this)},get:function(t){return null==t?ct.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=bt.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return bt.each(this,t)},map:function(t){return this.pushStack(bt.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(ct.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:ft,sort:st.sort,splice:st.splice},bt.extend=bt.fn.extend=function(){var t,e,n,i,r,s,a=arguments[0]||{},l=1,c=arguments.length,u=!1;for("boolean"==typeof a&&(u=a,a=arguments[l]||{},l++),"object"===(void 0===a?"undefined":o(a))||bt.isFunction(a)||(a={}),l===c&&(a=this,l--);l<c;l++)if(null!=(t=arguments[l]))for(e in t)n=a[e],i=t[e],a!==i&&(u&&i&&(bt.isPlainObject(i)||(r=Array.isArray(i)))?(r?(r=!1,s=n&&Array.isArray(n)?n:[]):s=n&&bt.isPlainObject(n)?n:{},a[e]=bt.extend(u,s,i)):void 0!==i&&(a[e]=i));return a},bt.extend({expando:"jQuery"+("3.2.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===bt.type(t)},isWindow:function(t){return null!=t&&t===t.window},isNumeric:function(t){var e=bt.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},isPlainObject:function(t){var e,n;return!(!t||"[object Object]"!==pt.call(t))&&(!(e=lt(t))||"function"==typeof(n=gt.call(e,"constructor")&&e.constructor)&&mt.call(n)===vt)},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},type:function(t){return null==t?t+"":"object"===(void 0===t?"undefined":o(t))||"function"==typeof t?ht[pt.call(t)]||"object":void 0===t?"undefined":o(t)},globalEval:function(t){a(t)},camelCase:function(t){return t.replace(Et,"ms-").replace(wt,Tt)},each:function(t,e){var n,i=0;if(l(t))for(n=t.length;i<n&&!1!==e.call(t[i],i,t[i]);i++);else for(i in t)if(!1===e.call(t[i],i,t[i]))break;return t},trim:function(t){return null==t?"":(t+"").replace(_t,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(l(Object(t))?bt.merge(n,"string"==typeof t?[t]:t):ft.call(n,t)),n},inArray:function(t,e,n){return null==e?-1:dt.call(e,t,n)},merge:function(t,e){for(var n=+e.length,i=0,o=t.length;i<n;i++)t[o++]=e[i];return t.length=o,t},grep:function(t,e,n){for(var i=[],o=0,r=t.length,s=!n;o<r;o++)!e(t[o],o)!==s&&i.push(t[o]);return i},map:function(t,e,n){var i,o,r=0,s=[];if(l(t))for(i=t.length;r<i;r++)null!=(o=e(t[r],r,n))&&s.push(o);else for(r in t)null!=(o=e(t[r],r,n))&&s.push(o);return ut.apply([],s)},guid:1,proxy:function(t,e){var n,i,o;if("string"==typeof e&&(n=t[e],e=t,t=n),bt.isFunction(t))return i=ct.call(arguments,2),o=function(){return t.apply(e||this,i.concat(ct.call(arguments)))},o.guid=t.guid=t.guid||bt.guid++,o},now:Date.now,support:yt}),"function"==typeof Symbol&&(bt.fn[Symbol.iterator]=st[Symbol.iterator]),bt.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(t,e){ht["[object "+e+"]"]=e.toLowerCase()});var Ct=/*!
* Sizzle CSS Selector Engine v2.3.3
* https://sizzlejs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2016-08-08
*/
function(t){function e(t,e,n,i){var o,r,s,a,l,u,d,h=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!i&&((e?e.ownerDocument||e:W)!==N&&I(e),e=e||N,L)){if(11!==p&&(l=gt.exec(t)))if(o=l[1]){if(9===p){if(!(s=e.getElementById(o)))return n;if(s.id===o)return n.push(s),n}else if(h&&(s=h.getElementById(o))&&H(e,s)&&s.id===o)return n.push(s),n}else{if(l[2])return Y.apply(n,e.getElementsByTagName(t)),n;if((o=l[3])&&_.getElementsByClassName&&e.getElementsByClassName)return Y.apply(n,e.getElementsByClassName(o)),n}if(_.qsa&&!V[t+" "]&&(!j||!j.test(t))){if(1!==p)h=e,d=t;else if("object"!==e.nodeName.toLowerCase()){for((a=e.getAttribute("id"))?a=a.replace(bt,_t):e.setAttribute("id",a=M),u=C(t),r=u.length;r--;)u[r]="#"+a+" "+f(u[r]);d=u.join(","),h=mt.test(t)&&c(e.parentNode)||e}if(d)try{return Y.apply(n,h.querySelectorAll(d)),n}catch(t){}finally{a===M&&e.removeAttribute("id")}}}return A(t.replace(rt,"$1"),e,n,i)}function n(){function t(n,i){return e.push(n+" ")>E.cacheLength&&delete t[e.shift()],t[n+" "]=i}var e=[];return t}function i(t){return t[M]=!0,t}function o(t){var e=N.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function r(t,e){for(var n=t.split("|"),i=n.length;i--;)E.attrHandle[n[i]]=e}function s(t,e){var n=e&&t,i=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function a(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&wt(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function l(t){return i(function(e){return e=+e,i(function(n,i){for(var o,r=t([],n.length,e),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))})})}function c(t){return t&&void 0!==t.getElementsByTagName&&t}function u(){}function f(t){for(var e=0,n=t.length,i="";e<n;e++)i+=t[e].value;return i}function d(t,e,n){var i=e.dir,o=e.next,r=o||i,s=n&&"parentNode"===r,a=B++;return e.first?function(e,n,o){for(;e=e[i];)if(1===e.nodeType||s)return t(e,n,o);return!1}:function(e,n,l){var c,u,f,d=[F,a];if(l){for(;e=e[i];)if((1===e.nodeType||s)&&t(e,n,l))return!0}else for(;e=e[i];)if(1===e.nodeType||s)if(f=e[M]||(e[M]={}),u=f[e.uniqueID]||(f[e.uniqueID]={}),o&&o===e.nodeName.toLowerCase())e=e[i]||e;else{if((c=u[r])&&c[0]===F&&c[1]===a)return d[2]=c[2];if(u[r]=d,d[2]=t(e,n,l))return!0}return!1}}function h(t){return t.length>1?function(e,n,i){for(var o=t.length;o--;)if(!t[o](e,n,i))return!1;return!0}:t[0]}function p(t,n,i){for(var o=0,r=n.length;o<r;o++)e(t,n[o],i);return i}function g(t,e,n,i,o){for(var r,s=[],a=0,l=t.length,c=null!=e;a<l;a++)(r=t[a])&&(n&&!n(r,i,o)||(s.push(r),c&&e.push(a)));return s}function m(t,e,n,o,r,s){return o&&!o[M]&&(o=m(o)),r&&!r[M]&&(r=m(r,s)),i(function(i,s,a,l){var c,u,f,d=[],h=[],m=s.length,v=i||p(e||"*",a.nodeType?[a]:a,[]),y=!t||!i&&e?v:g(v,d,t,a,l),b=n?r||(i?t:m||o)?[]:s:y;if(n&&n(y,b,a,l),o)for(c=g(b,h),o(c,[],a,l),u=c.length;u--;)(f=c[u])&&(b[h[u]]=!(y[h[u]]=f));if(i){if(r||t){if(r){for(c=[],u=b.length;u--;)(f=b[u])&&c.push(y[u]=f);r(null,b=[],c,l)}for(u=b.length;u--;)(f=b[u])&&(c=r?J(i,f):d[u])>-1&&(i[c]=!(s[c]=f))}}else b=g(b===s?b.splice(m,b.length):b),r?r(null,s,b,l):Y.apply(s,b)})}function v(t){for(var e,n,i,o=t.length,r=E.relative[t[0].type],s=r||E.relative[" "],a=r?1:0,l=d(function(t){return t===e},s,!0),c=d(function(t){return J(e,t)>-1},s,!0),u=[function(t,n,i){var o=!r&&(i||n!==S)||((e=n).nodeType?l(t,n,i):c(t,n,i));return e=null,o}];a<o;a++)if(n=E.relative[t[a].type])u=[d(h(u),n)];else{if(n=E.filter[t[a].type].apply(null,t[a].matches),n[M]){for(i=++a;i<o&&!E.relative[t[i].type];i++);return m(a>1&&h(u),a>1&&f(t.slice(0,a-1).concat({value:" "===t[a-2].type?"*":""})).replace(rt,"$1"),n,a<i&&v(t.slice(a,i)),i<o&&v(t=t.slice(i)),i<o&&f(t))}u.push(n)}return h(u)}function y(t,n){var o=n.length>0,r=t.length>0,s=function(i,s,a,l,c){var u,f,d,h=0,p="0",m=i&&[],v=[],y=S,b=i||r&&E.find.TAG("*",c),_=F+=null==y?1:Math.random()||.1,w=b.length;for(c&&(S=s===N||s||c);p!==w&&null!=(u=b[p]);p++){if(r&&u){for(f=0,s||u.ownerDocument===N||(I(u),a=!L);d=t[f++];)if(d(u,s||N,a)){l.push(u);break}c&&(F=_)}o&&((u=!d&&u)&&h--,i&&m.push(u))}if(h+=p,o&&p!==h){for(f=0;d=n[f++];)d(m,v,s,a);if(i){if(h>0)for(;p--;)m[p]||v[p]||(v[p]=X.call(l));v=g(v)}Y.apply(l,v),c&&!i&&v.length>0&&h+n.length>1&&e.uniqueSort(l)}return c&&(F=_,S=y),m};return o?i(s):s}var b,_,E,w,T,C,x,A,S,O,D,I,N,k,L,j,P,R,H,M="sizzle"+1*new Date,W=t.document,F=0,B=0,U=n(),q=n(),V=n(),G=function(t,e){return t===e&&(D=!0),0},K={}.hasOwnProperty,z=[],X=z.pop,$=z.push,Y=z.push,Q=z.slice,J=function(t,e){for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},Z="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",tt="[\\x20\\t\\r\\n\\f]",et="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",nt="\\["+tt+"*("+et+")(?:"+tt+"*([*^$|!~]?=)"+tt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+et+"))|)"+tt+"*\\]",it=":("+et+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+nt+")*)|.*)\\)|)",ot=new RegExp(tt+"+","g"),rt=new RegExp("^"+tt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+tt+"+$","g"),st=new RegExp("^"+tt+"*,"+tt+"*"),at=new RegExp("^"+tt+"*([>+~]|"+tt+")"+tt+"*"),lt=new RegExp("="+tt+"*([^\\]'\"]*?)"+tt+"*\\]","g"),ct=new RegExp(it),ut=new RegExp("^"+et+"$"),ft={ID:new RegExp("^#("+et+")"),CLASS:new RegExp("^\\.("+et+")"),TAG:new RegExp("^("+et+"|[*])"),ATTR:new RegExp("^"+nt),PSEUDO:new RegExp("^"+it),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+tt+"*(even|odd|(([+-]|)(\\d*)n|)"+tt+"*(?:([+-]|)"+tt+"*(\\d+)|))"+tt+"*\\)|)","i"),bool:new RegExp("^(?:"+Z+")$","i"),needsContext:new RegExp("^"+tt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+tt+"*((?:-\\d)?\\d*)"+tt+"*\\)|)(?=[^-]|$)","i")},dt=/^(?:input|select|textarea|button)$/i,ht=/^h\d$/i,pt=/^[^{]+\{\s*\[native \w/,gt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,mt=/[+~]/,vt=new RegExp("\\\\([\\da-f]{1,6}"+tt+"?|("+tt+")|.)","ig"),yt=function(t,e,n){var i="0x"+e-65536;return i!==i||n?e:i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320)},bt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,_t=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},Et=function(){I()},wt=d(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{Y.apply(z=Q.call(W.childNodes),W.childNodes),z[W.childNodes.length].nodeType}catch(t){Y={apply:z.length?function(t,e){$.apply(t,Q.call(e))}:function(t,e){for(var n=t.length,i=0;t[n++]=e[i++];);t.length=n-1}}}_=e.support={},T=e.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},I=e.setDocument=function(t){var e,n,i=t?t.ownerDocument||t:W;return i!==N&&9===i.nodeType&&i.documentElement?(N=i,k=N.documentElement,L=!T(N),W!==N&&(n=N.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",Et,!1):n.attachEvent&&n.attachEvent("onunload",Et)),_.attributes=o(function(t){return t.className="i",!t.getAttribute("className")}),_.getElementsByTagName=o(function(t){return t.appendChild(N.createComment("")),!t.getElementsByTagName("*").length}),_.getElementsByClassName=pt.test(N.getElementsByClassName),_.getById=o(function(t){return k.appendChild(t).id=M,!N.getElementsByName||!N.getElementsByName(M).length}),_.getById?(E.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){return t.getAttribute("id")===e}},E.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n=e.getElementById(t);return n?[n]:[]}}):(E.filter.ID=function(t){var e=t.replace(vt,yt);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},E.find.ID=function(t,e){if(void 0!==e.getElementById&&L){var n,i,o,r=e.getElementById(t);if(r){if((n=r.getAttributeNode("id"))&&n.value===t)return[r];for(o=e.getElementsByName(t),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===t)return[r]}return[]}}),E.find.TAG=_.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):_.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,i=[],o=0,r=e.getElementsByTagName(t);if("*"===t){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},E.find.CLASS=_.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&L)return e.getElementsByClassName(t)},P=[],j=[],(_.qsa=pt.test(N.querySelectorAll))&&(o(function(t){k.appendChild(t).innerHTML="<a id='"+M+"'></a><select id='"+M+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+tt+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||j.push("\\["+tt+"*(?:value|"+Z+")"),t.querySelectorAll("[id~="+M+"-]").length||j.push("~="),t.querySelectorAll(":checked").length||j.push(":checked"),t.querySelectorAll("a#"+M+"+*").length||j.push(".#.+[+~]")}),o(function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=N.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&j.push("name"+tt+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&j.push(":enabled",":disabled"),k.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&j.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),j.push(",.*:")})),(_.matchesSelector=pt.test(R=k.matches||k.webkitMatchesSelector||k.mozMatchesSelector||k.oMatchesSelector||k.msMatchesSelector))&&o(function(t){_.disconnectedMatch=R.call(t,"*"),R.call(t,"[s!='']:x"),P.push("!=",it)}),j=j.length&&new RegExp(j.join("|")),P=P.length&&new RegExp(P.join("|")),e=pt.test(k.compareDocumentPosition),H=e||pt.test(k.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},G=e?function(t,e){if(t===e)return D=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1,1&n||!_.sortDetached&&e.compareDocumentPosition(t)===n?t===N||t.ownerDocument===W&&H(W,t)?-1:e===N||e.ownerDocument===W&&H(W,e)?1:O?J(O,t)-J(O,e):0:4&n?-1:1)}:function(t,e){if(t===e)return D=!0,0;var n,i=0,o=t.parentNode,r=e.parentNode,a=[t],l=[e];if(!o||!r)return t===N?-1:e===N?1:o?-1:r?1:O?J(O,t)-J(O,e):0;if(o===r)return s(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)l.unshift(n);for(;a[i]===l[i];)i++;return i?s(a[i],l[i]):a[i]===W?-1:l[i]===W?1:0},N):N},e.matches=function(t,n){return e(t,null,null,n)},e.matchesSelector=function(t,n){if((t.ownerDocument||t)!==N&&I(t),n=n.replace(lt,"='$1']"),_.matchesSelector&&L&&!V[n+" "]&&(!P||!P.test(n))&&(!j||!j.test(n)))try{var i=R.call(t,n);if(i||_.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){}return e(n,N,null,[t]).length>0},e.contains=function(t,e){return(t.ownerDocument||t)!==N&&I(t),H(t,e)},e.attr=function(t,e){(t.ownerDocument||t)!==N&&I(t);var n=E.attrHandle[e.toLowerCase()],i=n&&K.call(E.attrHandle,e.toLowerCase())?n(t,e,!L):void 0;return void 0!==i?i:_.attributes||!L?t.getAttribute(e):(i=t.getAttributeNode(e))&&i.specified?i.value:null},e.escape=function(t){return(t+"").replace(bt,_t)},e.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},e.uniqueSort=function(t){var e,n=[],i=0,o=0;if(D=!_.detectDuplicates,O=!_.sortStable&&t.slice(0),t.sort(G),D){for(;e=t[o++];)e===t[o]&&(i=n.push(o));for(;i--;)t.splice(n[i],1)}return O=null,t},w=e.getText=function(t){var e,n="",i=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=w(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[i++];)n+=w(e);return n},E=e.selectors={cacheLength:50,createPseudo:i,match:ft,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(vt,yt),t[3]=(t[3]||t[4]||t[5]||"").replace(vt,yt),"~="===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]||e.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]&&e.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return ft.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&ct.test(n)&&(e=C(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(vt,yt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=U[t+" "];return e||(e=new RegExp("(^|"+tt+")"+t+"("+tt+"|$)"))&&U(t,function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,n,i){return function(o){var r=e.attr(o,t);return null==r?"!="===n:!n||(r+="","="===n?r===i:"!="===n?r!==i:"^="===n?i&&0===r.indexOf(i):"*="===n?i&&r.indexOf(i)>-1:"$="===n?i&&r.slice(-i.length)===i:"~="===n?(" "+r.replace(ot," ")+" ").indexOf(i)>-1:"|="===n&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,n,i,o){var r="nth"!==t.slice(0,3),s="last"!==t.slice(-4),a="of-type"===e;return 1===i&&0===o?function(t){return!!t.parentNode}:function(e,n,l){var c,u,f,d,h,p,g=r!==s?"nextSibling":"previousSibling",m=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(m){if(r){for(;g;){for(d=e;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&y){for(d=m,f=d[M]||(d[M]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),c=u[t]||[],h=c[0]===F&&c[1],b=h&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[g]||(b=h=0)||p.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[F,h,b];break}}else if(y&&(d=e,f=d[M]||(d[M]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),c=u[t]||[],h=c[0]===F&&c[1],b=h),!1===b)for(;(d=++h&&d&&d[g]||(b=h=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&(f=d[M]||(d[M]={}),u=f[d.uniqueID]||(f[d.uniqueID]={}),u[t]=[F,b]),d!==e)););return(b-=o)===i||b%i==0&&b/i>=0}}},PSEUDO:function(t,n){var o,r=E.pseudos[t]||E.setFilters[t.toLowerCase()]||e.error("unsupported pseudo: "+t);return r[M]?r(n):r.length>1?(o=[t,t,"",n],E.setFilters.hasOwnProperty(t.toLowerCase())?i(function(t,e){for(var i,o=r(t,n),s=o.length;s--;)i=J(t,o[s]),t[i]=!(e[i]=o[s])}):function(t){return r(t,0,o)}):r}},pseudos:{not:i(function(t){var e=[],n=[],o=x(t.replace(rt,"$1"));return o[M]?i(function(t,e,n,i){for(var r,s=o(t,null,i,[]),a=t.length;a--;)(r=s[a])&&(t[a]=!(e[a]=r))}):function(t,i,r){return e[0]=t,o(e,null,r,n),e[0]=null,!n.pop()}}),has:i(function(t){return function(n){return e(t,n).length>0}}),contains:i(function(t){return t=t.replace(vt,yt),function(e){return(e.textContent||e.innerText||w(e)).indexOf(t)>-1}}),lang:i(function(t){return ut.test(t||"")||e.error("unsupported lang: "+t),t=t.replace(vt,yt).toLowerCase(),function(e){var n;do{if(n=L?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===k},focus:function(t){return t===N.activeElement&&(!N.hasFocus||N.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:a(!1),disabled:a(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!E.pseudos.empty(t)},header:function(t){return ht.test(t.nodeName)},input:function(t){return dt.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:l(function(){return[0]}),last:l(function(t,e){return[e-1]}),eq:l(function(t,e,n){return[n<0?n+e:n]}),even:l(function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t}),odd:l(function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t}),lt:l(function(t,e,n){for(var i=n<0?n+e:n;--i>=0;)t.push(i);return t}),gt:l(function(t,e,n){for(var i=n<0?n+e:n;++i<e;)t.push(i);return t})}},E.pseudos.nth=E.pseudos.eq;for(b in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})E.pseudos[b]=function(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}(b);for(b in{submit:!0,reset:!0})E.pseudos[b]=function(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}(b);return u.prototype=E.filters=E.pseudos,E.setFilters=new u,C=e.tokenize=function(t,n){var i,o,r,s,a,l,c,u=q[t+" "];if(u)return n?0:u.slice(0);for(a=t,l=[],c=E.preFilter;a;){i&&!(o=st.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=at.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(rt," ")}),a=a.slice(i.length));for(s in E.filter)!(o=ft[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?e.error(t):q(t,l).slice(0)},x=e.compile=function(t,e){var n,i=[],o=[],r=V[t+" "];if(!r){for(e||(e=C(t)),n=e.length;n--;)r=v(e[n]),r[M]?i.push(r):o.push(r);r=V(t,y(o,i)),r.selector=t}return r},A=e.select=function(t,e,n,i){var o,r,s,a,l,u="function"==typeof t&&t,d=!i&&C(t=u.selector||t);if(n=n||[],1===d.length){if(r=d[0]=d[0].slice(0),r.length>2&&"ID"===(s=r[0]).type&&9===e.nodeType&&L&&E.relative[r[1].type]){if(!(e=(E.find.ID(s.matches[0].replace(vt,yt),e)||[])[0]))return n;u&&(e=e.parentNode),t=t.slice(r.shift().value.length)}for(o=ft.needsContext.test(t)?0:r.length;o--&&(s=r[o],!E.relative[a=s.type]);)if((l=E.find[a])&&(i=l(s.matches[0].replace(vt,yt),mt.test(r[0].type)&&c(e.parentNode)||e))){if(r.splice(o,1),!(t=i.length&&f(r)))return Y.apply(n,i),n;break}}return(u||x(t,d))(i,e,!L,n,!e||mt.test(t)&&c(e.parentNode)||e),n},_.sortStable=M.split("").sort(G).join("")===M,_.detectDuplicates=!!D,I(),_.sortDetached=o(function(t){return 1&t.compareDocumentPosition(N.createElement("fieldset"))}),o(function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")})||r("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),_.attributes&&o(function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||r("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),o(function(t){return null==t.getAttribute("disabled")})||r(Z,function(t,e,n){var i;if(!n)return!0===t[e]?e.toLowerCase():(i=t.getAttributeNode(e))&&i.specified?i.value:null}),e}(r);bt.find=Ct,bt.expr=Ct.selectors,bt.expr[":"]=bt.expr.pseudos,bt.uniqueSort=bt.unique=Ct.uniqueSort,bt.text=Ct.getText,bt.isXMLDoc=Ct.isXML,bt.contains=Ct.contains,bt.escapeSelector=Ct.escape;var xt=function(t,e,n){for(var i=[],o=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(o&&bt(t).is(n))break;i.push(t)}return i},At=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},St=bt.expr.match.needsContext,Ot=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,Dt=/^.[^:#\[\.,]*$/;bt.filter=function(t,e,n){var i=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===i.nodeType?bt.find.matchesSelector(i,t)?[i]:[]:bt.find.matches(t,bt.grep(e,function(t){return 1===t.nodeType}))},bt.fn.extend({find:function(t){var e,n,i=this.length,o=this;if("string"!=typeof t)return this.pushStack(bt(t).filter(function(){for(e=0;e<i;e++)if(bt.contains(o[e],this))return!0}));for(n=this.pushStack([]),e=0;e<i;e++)bt.find(t,o[e],n);return i>1?bt.uniqueSort(n):n},filter:function(t){return this.pushStack(u(this,t||[],!1))},not:function(t){return this.pushStack(u(this,t||[],!0))},is:function(t){return!!u(this,"string"==typeof t&&St.test(t)?bt(t):t||[],!1).length}});var It,Nt=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(bt.fn.init=function(t,e,n){var i,o;if(!t)return this;if(n=n||It,"string"==typeof t){if(!(i="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:Nt.exec(t))||!i[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(i[1]){if(e=e instanceof bt?e[0]:e,bt.merge(this,bt.parseHTML(i[1],e&&e.nodeType?e.ownerDocument||e:at,!0)),Ot.test(i[1])&&bt.isPlainObject(e))for(i in e)bt.isFunction(this[i])?this[i](e[i]):this.attr(i,e[i]);return this}return o=at.getElementById(i[2]),o&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):bt.isFunction(t)?void 0!==n.ready?n.ready(t):t(bt):bt.makeArray(t,this)}).prototype=bt.fn,It=bt(at);var kt=/^(?:parents|prev(?:Until|All))/,Lt={children:!0,contents:!0,next:!0,prev:!0};bt.fn.extend({has:function(t){var e=bt(t,this),n=e.length;return this.filter(function(){for(var t=0;t<n;t++)if(bt.contains(this,e[t]))return!0})},closest:function(t,e){var n,i=0,o=this.length,r=[],s="string"!=typeof t&&bt(t);if(!St.test(t))for(;i<o;i++)for(n=this[i];n&&n!==e;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&bt.find.matchesSelector(n,t))){r.push(n);break}return this.pushStack(r.length>1?bt.uniqueSort(r):r)},index:function(t){return t?"string"==typeof t?dt.call(bt(t),this[0]):dt.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(bt.uniqueSort(bt.merge(this.get(),bt(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),bt.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return xt(t,"parentNode")},parentsUntil:function(t,e,n){return xt(t,"parentNode",n)},next:function(t){return f(t,"nextSibling")},prev:function(t){return f(t,"previousSibling")},nextAll:function(t){return xt(t,"nextSibling")},prevAll:function(t){return xt(t,"previousSibling")},nextUntil:function(t,e,n){return xt(t,"nextSibling",n)},prevUntil:function(t,e,n){return xt(t,"previousSibling",n)},siblings:function(t){return At((t.parentNode||{}).firstChild,t)},children:function(t){return At(t.firstChild)},contents:function(t){return c(t,"iframe")?t.contentDocument:(c(t,"template")&&(t=t.content||t),bt.merge([],t.childNodes))}},function(t,e){bt.fn[t]=function(n,i){var o=bt.map(this,e,n);return"Until"!==t.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=bt.filter(i,o)),this.length>1&&(Lt[t]||bt.uniqueSort(o),kt.test(t)&&o.reverse()),this.pushStack(o)}});var jt=/[^\x20\t\r\n\f]+/g;bt.Callbacks=function(t){t="string"==typeof t?d(t):bt.extend({},t);var e,n,i,o,r=[],s=[],a=-1,l=function(){for(o=o||t.once,i=e=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&t.stopOnFalse&&(a=r.length,n=!1);t.memory||(n=!1),e=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!e&&(a=r.length-1,s.push(n)),function e(n){bt.each(n,function(n,i){bt.isFunction(i)?t.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==bt.type(i)&&e(i)})}(arguments),n&&!e&&l()),this},remove:function(){return bt.each(arguments,function(t,e){for(var n;(n=bt.inArray(e,r,n))>-1;)r.splice(n,1),n<=a&&a--}),this},has:function(t){return t?bt.inArray(t,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||e||(r=n=""),this},locked:function(){return!!o},fireWith:function(t,n){return o||(n=n||[],n=[t,n.slice?n.slice():n],s.push(n),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},bt.extend({Deferred:function(t){var e=[["notify","progress",bt.Callbacks("memory"),bt.Callbacks("memory"),2],["resolve","done",bt.Callbacks("once memory"),bt.Callbacks("once memory"),0,"resolved"],["reject","fail",bt.Callbacks("once memory"),bt.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return bt.Deferred(function(n){bt.each(e,function(e,i){var o=bt.isFunction(t[i[4]])&&t[i[4]];s[i[1]](function(){var t=o&&o.apply(this,arguments);t&&bt.isFunction(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[t]:arguments)})}),t=null}).promise()},then:function(t,n,i){function s(t,e,n,i){return function(){var l=this,c=arguments,u=function(){var r,u;if(!(t<a)){if((r=n.apply(l,c))===e.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"===(void 0===r?"undefined":o(r))||"function"==typeof r)&&r.then,bt.isFunction(u)?i?u.call(r,s(a,e,h,i),s(a,e,p,i)):(a++,u.call(r,s(a,e,h,i),s(a,e,p,i),s(a,e,h,e.notifyWith))):(n!==h&&(l=void 0,c=[r]),(i||e.resolveWith)(l,c))}},f=i?u:function(){try{u()}catch(i){bt.Deferred.exceptionHook&&bt.Deferred.exceptionHook(i,f.stackTrace),t+1>=a&&(n!==p&&(l=void 0,c=[i]),e.rejectWith(l,c))}};t?f():(bt.Deferred.getStackHook&&(f.stackTrace=bt.Deferred.getStackHook()),r.setTimeout(f))}}var a=0;return bt.Deferred(function(o){e[0][3].add(s(0,o,bt.isFunction(i)?i:h,o.notifyWith)),e[1][3].add(s(0,o,bt.isFunction(t)?t:h)),e[2][3].add(s(0,o,bt.isFunction(n)?n:p))}).promise()},promise:function(t){return null!=t?bt.extend(t,i):i}},s={};return bt.each(e,function(t,o){var r=o[2],a=o[5];i[o[1]]=r.add,a&&r.add(function(){n=a},e[3-t][2].disable,e[0][2].lock),r.add(o[3].fire),s[o[0]]=function(){return s[o[0]+"With"](this===s?void 0:this,arguments),this},s[o[0]+"With"]=r.fireWith}),i.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,n=e,i=Array(n),o=ct.call(arguments),r=bt.Deferred(),s=function(t){return function(n){i[t]=this,o[t]=arguments.length>1?ct.call(arguments):n,--e||r.resolveWith(i,o)}};if(e<=1&&(g(t,r.done(s(n)).resolve,r.reject,!e),"pending"===r.state()||bt.isFunction(o[n]&&o[n].then)))return r.then();for(;n--;)g(o[n],s(n),r.reject);return r.promise()}});var Pt=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;bt.Deferred.exceptionHook=function(t,e){r.console&&r.console.warn&&t&&Pt.test(t.name)&&r.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},bt.readyException=function(t){r.setTimeout(function(){throw t})};var Rt=bt.Deferred();bt.fn.ready=function(t){return Rt.then(t).catch(function(t){bt.readyException(t)}),this},bt.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--bt.readyWait:bt.isReady)||(bt.isReady=!0,!0!==t&&--bt.readyWait>0||Rt.resolveWith(at,[bt]))}}),bt.ready.then=Rt.then,"complete"===at.readyState||"loading"!==at.readyState&&!at.documentElement.doScroll?r.setTimeout(bt.ready):(at.addEventListener("DOMContentLoaded",m),r.addEventListener("load",m));var Ht=function t(e,n,i,o,r,s,a){var l=0,c=e.length,u=null==i;if("object"===bt.type(i)){r=!0;for(l in i)t(e,n,l,i[l],!0,s,a)}else if(void 0!==o&&(r=!0,bt.isFunction(o)||(a=!0),u&&(a?(n.call(e,o),n=null):(u=n,n=function(t,e,n){return u.call(bt(t),n)})),n))for(;l<c;l++)n(e[l],i,a?o:o.call(e[l],l,n(e[l],i)));return r?e:u?n.call(e):c?n(e[0],i):s},Mt=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};v.uid=1,v.prototype={cache:function(t){var e=t[this.expando];return e||(e={},Mt(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,n){var i,o=this.cache(t);if("string"==typeof e)o[bt.camelCase(e)]=n;else for(i in e)o[bt.camelCase(i)]=e[i];return o},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][bt.camelCase(e)]},access:function(t,e,n){return void 0===e||e&&"string"==typeof e&&void 0===n?this.get(t,e):(this.set(t,e,n),void 0!==n?n:e)},remove:function(t,e){var n,i=t[this.expando];if(void 0!==i){if(void 0!==e){Array.isArray(e)?e=e.map(bt.camelCase):(e=bt.camelCase(e),e=e in i?[e]:e.match(jt)||[]),n=e.length;for(;n--;)delete i[e[n]]}(void 0===e||bt.isEmptyObject(i))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!bt.isEmptyObject(e)}};var Wt=new v,Ft=new v,Bt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ut=/[A-Z]/g;bt.extend({hasData:function(t){return Ft.hasData(t)||Wt.hasData(t)},data:function(t,e,n){return Ft.access(t,e,n)},removeData:function(t,e){Ft.remove(t,e)},_data:function(t,e,n){return Wt.access(t,e,n)},_removeData:function(t,e){Wt.remove(t,e)}}),bt.fn.extend({data:function(t,e){var n,i,r,s=this[0],a=s&&s.attributes;if(void 0===t){if(this.length&&(r=Ft.get(s),1===s.nodeType&&!Wt.get(s,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&(i=a[n].name,0===i.indexOf("data-")&&(i=bt.camelCase(i.slice(5)),b(s,i,r[i])));Wt.set(s,"hasDataAttrs",!0)}return r}return"object"===(void 0===t?"undefined":o(t))?this.each(function(){Ft.set(this,t)}):Ht(this,function(e){var n;if(s&&void 0===e){if(void 0!==(n=Ft.get(s,t)))return n;if(void 0!==(n=b(s,t)))return n}else this.each(function(){Ft.set(this,t,e)})},null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each(function(){Ft.remove(this,t)})}}),bt.extend({queue:function(t,e,n){var i;if(t)return e=(e||"fx")+"queue",i=Wt.get(t,e),n&&(!i||Array.isArray(n)?i=Wt.access(t,e,bt.makeArray(n)):i.push(n)),i||[]},dequeue:function(t,e){e=e||"fx";var n=bt.queue(t,e),i=n.length,o=n.shift(),r=bt._queueHooks(t,e),s=function(){bt.dequeue(t,e)};"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===e&&n.unshift("inprogress"),delete r.stop,o.call(t,s,r)),!i&&r&&r.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return Wt.get(t,n)||Wt.access(t,n,{empty:bt.Callbacks("once memory").add(function(){Wt.remove(t,[e+"queue",n])})})}}),bt.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length<n?bt.queue(this[0],t):void 0===e?this:this.each(function(){var n=bt.queue(this,t,e);bt._queueHooks(this,t),"fx"===t&&"inprogress"!==n[0]&&bt.dequeue(this,t)})},dequeue:function(t){return this.each(function(){bt.dequeue(this,t)})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var n,i=1,o=bt.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(n=Wt.get(r[s],t+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(e)}});var qt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Vt=new RegExp("^(?:([+-])=|)("+qt+")([a-z%]*)$","i"),Gt=["Top","Right","Bottom","Left"],Kt=function(t,e){return t=e||t,"none"===t.style.display||""===t.style.display&&bt.contains(t.ownerDocument,t)&&"none"===bt.css(t,"display")},zt=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},Xt={};bt.fn.extend({show:function(){return w(this,!0)},hide:function(){return w(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each(function(){Kt(this)?bt(this).show():bt(this).hide()})}});var $t=/^(?:checkbox|radio)$/i,Yt=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,Qt=/^$|\/(?:java|ecma)script/i,Jt={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,"",""]};Jt.optgroup=Jt.option,Jt.tbody=Jt.tfoot=Jt.colgroup=Jt.caption=Jt.thead,Jt.th=Jt.td;var Zt=/<|&#?\w+;/;!function(){var t=at.createDocumentFragment(),e=t.appendChild(at.createElement("div")),n=at.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),e.appendChild(n),yt.checkClone=e.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="<textarea>x</textarea>",yt.noCloneChecked=!!e.cloneNode(!0).lastChild.defaultValue}();var te=at.documentElement,ee=/^key/,ne=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ie=/^([^.]*)(?:\.(.+)|)/;bt.event={global:{},add:function(t,e,n,i,o){var r,s,a,l,c,u,f,d,h,p,g,m=Wt.get(t);if(m)for(n.handler&&(r=n,n=r.handler,o=r.selector),o&&bt.find.matchesSelector(te,o),n.guid||(n.guid=bt.guid++),(l=m.events)||(l=m.events={}),(s=m.handle)||(s=m.handle=function(e){return void 0!==bt&&bt.event.triggered!==e.type?bt.event.dispatch.apply(t,arguments):void 0}),e=(e||"").match(jt)||[""],c=e.length;c--;)a=ie.exec(e[c])||[],h=g=a[1],p=(a[2]||"").split(".").sort(),h&&(f=bt.event.special[h]||{},h=(o?f.delegateType:f.bindType)||h,f=bt.event.special[h]||{},u=bt.extend({type:h,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&bt.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[h])||(d=l[h]=[],d.delegateCount=0,f.setup&&!1!==f.setup.call(t,i,p,s)||t.addEventListener&&t.addEventListener(h,s)),f.add&&(f.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),bt.event.global[h]=!0)},remove:function(t,e,n,i,o){var r,s,a,l,c,u,f,d,h,p,g,m=Wt.hasData(t)&&Wt.get(t);if(m&&(l=m.events)){for(e=(e||"").match(jt)||[""],c=e.length;c--;)if(a=ie.exec(e[c])||[],h=g=a[1],p=(a[2]||"").split(".").sort(),h){for(f=bt.event.special[h]||{},h=(i?f.delegateType:f.bindType)||h,d=l[h]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)u=d[r],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,f.remove&&f.remove.call(t,u));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(t,p,m.handle)||bt.removeEvent(t,h,m.handle),delete l[h])}else for(h in l)bt.event.remove(t,h+e[c],n,i,!0);bt.isEmptyObject(l)&&Wt.remove(t,"handle events")}},dispatch:function(t){var e,n,i,o,r,s,a=bt.event.fix(t),l=new Array(arguments.length),c=(Wt.get(this,"events")||{})[a.type]||[],u=bt.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(s=bt.event.handlers.call(this,a,c),e=0;(o=s[e++])&&!a.isPropagationStopped();)for(a.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(r.namespace)||(a.handleObj=r,a.data=r.data,void 0!==(i=((bt.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,l))&&!1===(a.result=i)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var n,i,o,r,s,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(r=[],s={},n=0;n<l;n++)i=e[n],o=i.selector+" ",void 0===s[o]&&(s[o]=i.needsContext?bt(o,this).index(c)>-1:bt.find(o,this,null,[c]).length),s[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(bt.Event.prototype,t,{enumerable:!0,configurable:!0,get:bt.isFunction(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[bt.expando]?t:new bt.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==O()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===O()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&c(this,"input"))return this.click(),!1},_default:function(t){return c(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},bt.removeEvent=function(t,e,n){t.removeEventListener&&t.removeEventListener(e,n)},bt.Event=function(t,e){if(!(this instanceof bt.Event))return new bt.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?A:S,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&bt.extend(this,e),this.timeStamp=t&&t.timeStamp||bt.now(),this[bt.expando]=!0},bt.Event.prototype={constructor:bt.Event,isDefaultPrevented:S,isPropagationStopped:S,isImmediatePropagationStopped:S,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=A,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=A,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=A,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},bt.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&ee.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&ne.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},bt.event.addProp),bt.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(t,e){bt.event.special[t]={delegateType:e,bindType:e,handle:function(t){var n,i=this,o=t.relatedTarget,r=t.handleObj;return o&&(o===i||bt.contains(i,o))||(t.type=r.origType,n=r.handler.apply(this,arguments),t.type=e),n}}}),bt.fn.extend({on:function(t,e,n,i){return D(this,t,e,n,i)},one:function(t,e,n,i){return D(this,t,e,n,i,1)},off:function(t,e,n){var i,r;if(t&&t.preventDefault&&t.handleObj)return i=t.handleObj,bt(t.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"===(void 0===t?"undefined":o(t))){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(n=e,e=void 0),!1===n&&(n=S),this.each(function(){bt.event.remove(this,t,n,e)})}});var oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,re=/<script|<style|<link/i,se=/checked\s*(?:[^=]|=\s*.checked.)/i,ae=/^true\/(.*)/,le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;bt.extend({htmlPrefilter:function(t){return t.replace(oe,"<$1></$2>")},clone:function(t,e,n){var i,o,r,s,a=t.cloneNode(!0),l=bt.contains(t.ownerDocument,t);if(!(yt.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||bt.isXMLDoc(t)))for(s=T(a),r=T(t),i=0,o=r.length;i<o;i++)j(r[i],s[i]);if(e)if(n)for(r=r||T(t),s=s||T(a),i=0,o=r.length;i<o;i++)L(r[i],s[i]);else L(t,a);return s=T(a,"script"),s.length>0&&C(s,!l&&T(t,"script")),a},cleanData:function(t){for(var e,n,i,o=bt.event.special,r=0;void 0!==(n=t[r]);r++)if(Mt(n)){if(e=n[Wt.expando]){if(e.events)for(i in e.events)o[i]?bt.event.remove(n,i):bt.removeEvent(n,i,e.handle);n[Wt.expando]=void 0}n[Ft.expando]&&(n[Ft.expando]=void 0)}}}),bt.fn.extend({detach:function(t){return R(this,t,!0)},remove:function(t){return R(this,t)},text:function(t){return Ht(this,function(t){return void 0===t?bt.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return P(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){I(this,t).appendChild(t)}})},prepend:function(){return P(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=I(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return P(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return P(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&&(bt.cleanData(T(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return bt.clone(this,t,e)})},html:function(t){return Ht(this,function(t){var e=this[0]||{},n=0,i=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!re.test(t)&&!Jt[(Yt.exec(t)||["",""])[1].toLowerCase()]){t=bt.htmlPrefilter(t);try{for(;n<i;n++)e=this[n]||{},1===e.nodeType&&(bt.cleanData(T(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)},null,t,arguments.length)},replaceWith:function(){var t=[];return P(this,arguments,function(e){var n=this.parentNode;bt.inArray(this,t)<0&&(bt.cleanData(T(this)),n&&n.replaceChild(e,this))},t)}}),bt.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,e){bt.fn[t]=function(t){for(var n,i=[],o=bt(t),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),bt(o[s])[e](n),ft.apply(i,n.get());return this.pushStack(i)}});var ce=/^margin/,ue=new RegExp("^("+qt+")(?!px)[a-z%]+$","i"),fe=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=r),e.getComputedStyle(t)};!function(){function t(){if(a){a.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",a.innerHTML="",te.appendChild(s);var t=r.getComputedStyle(a);e="1%"!==t.top,o="2px"===t.marginLeft,n="4px"===t.width,a.style.marginRight="50%",i="4px"===t.marginRight,te.removeChild(s),a=null}}var e,n,i,o,s=at.createElement("div"),a=at.createElement("div");a.style&&(a.style.backgroundClip="content-box",a.cloneNode(!0).style.backgroundClip="",yt.clearCloneStyle="content-box"===a.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(a),bt.extend(yt,{pixelPosition:function(){return t(),e},boxSizingReliable:function(){return t(),n},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),o}}))}();var de=/^(none|table(?!-c[ea]).+)/,he=/^--/,pe={position:"absolute",visibility:"hidden",display:"block"},ge={letterSpacing:"0",fontWeight:"400"},me=["Webkit","Moz","ms"],ve=at.createElement("div").style;bt.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=H(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:"cssFloat"},style:function(t,e,n,i){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,a,l=bt.camelCase(e),c=he.test(e),u=t.style;if(c||(e=F(l)),a=bt.cssHooks[e]||bt.cssHooks[l],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(t,!1,i))?r:u[e];s=void 0===n?"undefined":o(n),"string"===s&&(r=Vt.exec(n))&&r[1]&&(n=_(t,e,r),s="number"),null!=n&&n===n&&("number"===s&&(n+=r&&r[3]||(bt.cssNumber[l]?"":"px")),yt.clearCloneStyle||""!==n||0!==e.indexOf("background")||(u[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,i))||(c?u.setProperty(e,n):u[e]=n))}},css:function(t,e,n,i){var o,r,s,a=bt.camelCase(e);return he.test(e)||(e=F(a)),s=bt.cssHooks[e]||bt.cssHooks[a],s&&"get"in s&&(o=s.get(t,!0,n)),void 0===o&&(o=H(t,e,i)),"normal"===o&&e in ge&&(o=ge[e]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),bt.each(["height","width"],function(t,e){bt.cssHooks[e]={get:function(t,n,i){if(n)return!de.test(bt.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?q(t,e,i):zt(t,pe,function(){return q(t,e,i)})},set:function(t,n,i){var o,r=i&&fe(t),s=i&&U(t,e,i,"border-box"===bt.css(t,"boxSizing",!1,r),r);return s&&(o=Vt.exec(n))&&"px"!==(o[3]||"px")&&(t.style[e]=n,n=bt.css(t,e)),B(t,n,s)}}}),bt.cssHooks.marginLeft=M(yt.reliableMarginLeft,function(t,e){if(e)return(parseFloat(H(t,"marginLeft"))||t.getBoundingClientRect().left-zt(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),bt.each({margin:"",padding:"",border:"Width"},function(t,e){bt.cssHooks[t+e]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[t+Gt[i]+e]=r[i]||r[i-2]||r[0];return o}},ce.test(t)||(bt.cssHooks[t+e].set=B)}),bt.fn.extend({css:function(t,e){return Ht(this,function(t,e,n){var i,o,r={},s=0;if(Array.isArray(e)){for(i=fe(t),o=e.length;s<o;s++)r[e[s]]=bt.css(t,e[s],!1,i);return r}return void 0!==n?bt.style(t,e,n):bt.css(t,e)},t,e,arguments.length>1)}}),bt.Tween=V,V.prototype={constructor:V,init:function(t,e,n,i,o,r){this.elem=t,this.prop=n,this.easing=o||bt.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=i,this.unit=r||(bt.cssNumber[n]?"":"px")},cur:function(){var t=V.propHooks[this.prop];return t&&t.get?t.get(this):V.propHooks._default.get(this)},run:function(t){var e,n=V.propHooks[this.prop];return this.options.duration?this.pos=e=bt.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):V.propHooks._default.set(this),this}},V.prototype.init.prototype=V.prototype,V.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=bt.css(t.elem,t.prop,""),e&&"auto"!==e?e:0)},set:function(t){bt.fx.step[t.prop]?bt.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[bt.cssProps[t.prop]]&&!bt.cssHooks[t.prop]?t.elem[t.prop]=t.now:bt.style(t.elem,t.prop,t.now+t.unit)}}},V.propHooks.scrollTop=V.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},bt.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},bt.fx=V.prototype.init,bt.fx.step={};var ye,be,_e=/^(?:toggle|show|hide)$/,Ee=/queueHooks$/;bt.Animation=bt.extend(Q,{tweeners:{"*":[function(t,e){var n=this.createTween(t,e);return _(n.elem,t,Vt.exec(e),n),n}]},tweener:function(t,e){bt.isFunction(t)?(e=t,t=["*"]):t=t.match(jt);for(var n,i=0,o=t.length;i<o;i++)n=t[i],Q.tweeners[n]=Q.tweeners[n]||[],Q.tweeners[n].unshift(e)},prefilters:[$],prefilter:function(t,e){e?Q.prefilters.unshift(t):Q.prefilters.push(t)}}),bt.speed=function(t,e,n){var i=t&&"object"===(void 0===t?"undefined":o(t))?bt.extend({},t):{complete:n||!n&&e||bt.isFunction(t)&&t,duration:t,easing:n&&e||e&&!bt.isFunction(e)&&e};return bt.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in bt.fx.speeds?i.duration=bt.fx.speeds[i.duration]:i.duration=bt.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){bt.isFunction(i.old)&&i.old.call(this),i.queue&&bt.dequeue(this,i.queue)},i},bt.fn.extend({fadeTo:function(t,e,n,i){return this.filter(Kt).css("opacity",0).show().end().animate({opacity:e},t,n,i)},animate:function(t,e,n,i){var o=bt.isEmptyObject(t),r=bt.speed(e,n,i),s=function(){var e=Q(this,bt.extend({},t),r);(o||Wt.get(this,"finish"))&&e.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(t,e,n){var i=function(t){var e=t.stop;delete t.stop,e(n)};return"string"!=typeof t&&(n=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each(function(){var e=!0,o=null!=t&&t+"queueHooks",r=bt.timers,s=Wt.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&Ee.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=t&&r[o].queue!==t||(r[o].anim.stop(n),e=!1,r.splice(o,1));!e&&n||bt.dequeue(this,t)})},finish:function(t){return!1!==t&&(t=t||"fx"),this.each(function(){var e,n=Wt.get(this),i=n[t+"queue"],o=n[t+"queueHooks"],r=bt.timers,s=i?i.length:0;for(n.finish=!0,bt.queue(this,t,[]),o&&o.stop&&o.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;e<s;e++)i[e]&&i[e].finish&&i[e].finish.call(this);delete n.finish})}}),bt.each(["toggle","show","hide"],function(t,e){var n=bt.fn[e];bt.fn[e]=function(t,i,o){return null==t||"boolean"==typeof t?n.apply(this,arguments):this.animate(z(e,!0),t,i,o)}}),bt.each({slideDown:z("show"),slideUp:z("hide"),slideToggle:z("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,e){bt.fn[t]=function(t,n,i){return this.animate(e,t,n,i)}}),bt.timers=[],bt.fx.tick=function(){var t,e=0,n=bt.timers;for(ye=bt.now();e<n.length;e++)(t=n[e])()||n[e]!==t||n.splice(e--,1);n.length||bt.fx.stop(),ye=void 0},bt.fx.timer=function(t){bt.timers.push(t),bt.fx.start()},bt.fx.interval=13,bt.fx.start=function(){be||(be=!0,G())},bt.fx.stop=function(){be=null},bt.fx.speeds={slow:600,fast:200,_default:400},bt.fn.delay=function(t,e){return t=bt.fx?bt.fx.speeds[t]||t:t,e=e||"fx",this.queue(e,function(e,n){var i=r.setTimeout(e,t);n.stop=function(){r.clearTimeout(i)}})},function(){var t=at.createElement("input"),e=at.createElement("select"),n=e.appendChild(at.createElement("option"));t.type="checkbox",yt.checkOn=""!==t.value,yt.optSelected=n.selected,t=at.createElement("input"),t.value="t",t.type="radio",yt.radioValue="t"===t.value}();var we,Te=bt.expr.attrHandle;bt.fn.extend({attr:function(t,e){return Ht(this,bt.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each(function(){bt.removeAttr(this,t)})}}),bt.extend({attr:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===t.getAttribute?bt.prop(t,e,n):(1===r&&bt.isXMLDoc(t)||(o=bt.attrHooks[e.toLowerCase()]||(bt.expr.match.bool.test(e)?we:void 0)),void 0!==n?null===n?void bt.removeAttr(t,e):o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:(t.setAttribute(e,n+""),n):o&&"get"in o&&null!==(i=o.get(t,e))?i:(i=bt.find.attr(t,e),null==i?void 0:i))},attrHooks:{type:{set:function(t,e){if(!yt.radioValue&&"radio"===e&&c(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,i=0,o=e&&e.match(jt);if(o&&1===t.nodeType)for(;n=o[i++];)t.removeAttribute(n)}}),we={set:function(t,e,n){return!1===e?bt.removeAttr(t,n):t.setAttribute(n,n),n}},bt.each(bt.expr.match.bool.source.match(/\w+/g),function(t,e){var n=Te[e]||bt.find.attr;Te[e]=function(t,e,i){var o,r,s=e.toLowerCase();return i||(r=Te[s],Te[s]=o,o=null!=n(t,e,i)?s:null,Te[s]=r),o}});var Ce=/^(?:input|select|textarea|button)$/i,xe=/^(?:a|area)$/i;bt.fn.extend({prop:function(t,e){return Ht(this,bt.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[bt.propFix[t]||t]})}}),bt.extend({prop:function(t,e,n){var i,o,r=t.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&bt.isXMLDoc(t)||(e=bt.propFix[e]||e,o=bt.propHooks[e]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(t,n,e))?i:t[e]=n:o&&"get"in o&&null!==(i=o.get(t,e))?i:t[e]},propHooks:{tabIndex:{get:function(t){var e=bt.find.attr(t,"tabindex");return e?parseInt(e,10):Ce.test(t.nodeName)||xe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),yt.optSelected||(bt.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),bt.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){bt.propFix[this.toLowerCase()]=this}),bt.fn.extend({addClass:function(t){var e,n,i,o,r,s,a,l=0;if(bt.isFunction(t))return this.each(function(e){bt(this).addClass(t.call(this,e,Z(this)))});if("string"==typeof t&&t)for(e=t.match(jt)||[];n=this[l++];)if(o=Z(n),i=1===n.nodeType&&" "+J(o)+" "){for(s=0;r=e[s++];)i.indexOf(" "+r+" ")<0&&(i+=r+" ");a=J(i),o!==a&&n.setAttribute("class",a)}return this},removeClass:function(t){var e,n,i,o,r,s,a,l=0;if(bt.isFunction(t))return this.each(function(e){bt(this).removeClass(t.call(this,e,Z(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof t&&t)for(e=t.match(jt)||[];n=this[l++];)if(o=Z(n),i=1===n.nodeType&&" "+J(o)+" "){for(s=0;r=e[s++];)for(;i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");a=J(i),o!==a&&n.setAttribute("class",a)}return this},toggleClass:function(t,e){var n=void 0===t?"undefined":o(t);return"boolean"==typeof e&&"string"===n?e?this.addClass(t):this.removeClass(t):bt.isFunction(t)?this.each(function(n){bt(this).toggleClass(t.call(this,n,Z(this),e),e)}):this.each(function(){var e,i,o,r;if("string"===n)for(i=0,o=bt(this),r=t.match(jt)||[];e=r[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||(e=Z(this),e&&Wt.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Wt.get(this,"__className__")||""))})},hasClass:function(t){var e,n,i=0;for(e=" "+t+" ";n=this[i++];)if(1===n.nodeType&&(" "+J(Z(n))+" ").indexOf(e)>-1)return!0;return!1}});var Ae=/\r/g;bt.fn.extend({val:function(t){var e,n,i,o=this[0];{if(arguments.length)return i=bt.isFunction(t),this.each(function(n){var o;1===this.nodeType&&(o=i?t.call(this,n,bt(this).val()):t,null==o?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=bt.map(o,function(t){return null==t?"":t+""})),(e=bt.valHooks[this.type]||bt.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,o,"value")||(this.value=o))});if(o)return(e=bt.valHooks[o.type]||bt.valHooks[o.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(o,"value"))?n:(n=o.value,"string"==typeof n?n.replace(Ae,""):null==n?"":n)}}}),bt.extend({valHooks:{option:{get:function(t){var e=bt.find.attr(t,"value");return null!=e?e:J(bt.text(t))}},select:{get:function(t){var e,n,i,o=t.options,r=t.selectedIndex,s="select-one"===t.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(n=o[i],(n.selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!c(n.parentNode,"optgroup"))){if(e=bt(n).val(),s)return e;a.push(e)}return a},set:function(t,e){for(var n,i,o=t.options,r=bt.makeArray(e),s=o.length;s--;)i=o[s],(i.selected=bt.inArray(bt.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(t.selectedIndex=-1),r}}}}),bt.each(["radio","checkbox"],function(){bt.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=bt.inArray(bt(t).val(),e)>-1}},yt.checkOn||(bt.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})});var Se=/^(?:focusinfocus|focusoutblur)$/;bt.extend(bt.event,{trigger:function(t,e,n,i){var s,a,l,c,u,f,d,h=[n||at],p=gt.call(t,"type")?t.type:t,g=gt.call(t,"namespace")?t.namespace.split("."):[];if(a=l=n=n||at,3!==n.nodeType&&8!==n.nodeType&&!Se.test(p+bt.event.triggered)&&(p.indexOf(".")>-1&&(g=p.split("."),p=g.shift(),g.sort()),u=p.indexOf(":")<0&&"on"+p,t=t[bt.expando]?t:new bt.Event(p,"object"===(void 0===t?"undefined":o(t))&&t),t.isTrigger=i?2:3,t.namespace=g.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),e=null==e?[t]:bt.makeArray(e,[t]),d=bt.event.special[p]||{},i||!d.trigger||!1!==d.trigger.apply(n,e))){if(!i&&!d.noBubble&&!bt.isWindow(n)){for(c=d.delegateType||p,Se.test(c+p)||(a=a.parentNode);a;a=a.parentNode)h.push(a),l=a;l===(n.ownerDocument||at)&&h.push(l.defaultView||l.parentWindow||r)}for(s=0;(a=h[s++])&&!t.isPropagationStopped();)t.type=s>1?c:d.bindType||p,f=(Wt.get(a,"events")||{})[t.type]&&Wt.get(a,"handle"),f&&f.apply(a,e),(f=u&&a[u])&&f.apply&&Mt(a)&&(t.result=f.apply(a,e),!1===t.result&&t.preventDefault());return t.type=p,i||t.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),e)||!Mt(n)||u&&bt.isFunction(n[p])&&!bt.isWindow(n)&&(l=n[u],l&&(n[u]=null),bt.event.triggered=p,n[p](),bt.event.triggered=void 0,l&&(n[u]=l)),t.result}},simulate:function(t,e,n){var i=bt.extend(new bt.Event,n,{type:t,isSimulated:!0});bt.event.trigger(i,null,e)}}),bt.fn.extend({trigger:function(t,e){return this.each(function(){bt.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return bt.event.trigger(t,e,n,!0)}}),bt.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(t,e){bt.fn[e]=function(t,n){return arguments.length>0?this.on(e,null,t,n):this.trigger(e)}}),bt.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),yt.focusin="onfocusin"in r,yt.focusin||bt.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){bt.event.simulate(e,t.target,bt.event.fix(t))};bt.event.special[e]={setup:function(){var i=this.ownerDocument||this,o=Wt.access(i,e);o||i.addEventListener(t,n,!0),Wt.access(i,e,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this,o=Wt.access(i,e)-1;o?Wt.access(i,e,o):(i.removeEventListener(t,n,!0),Wt.remove(i,e))}}});var Oe=r.location,De=bt.now(),Ie=/\?/;bt.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new r.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||bt.error("Invalid XML: "+t),e};var Ne=/\[\]$/,ke=/\r?\n/g,Le=/^(?:submit|button|image|reset|file)$/i,je=/^(?:input|select|textarea|keygen)/i;bt.param=function(t,e){var n,i=[],o=function(t,e){var n=bt.isFunction(e)?e():e;i[i.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!bt.isPlainObject(t))bt.each(t,function(){o(this.name,this.value)});else for(n in t)tt(n,t[n],e,o);return i.join("&")},bt.fn.extend({serialize:function(){return bt.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=bt.prop(this,"elements");return t?bt.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!bt(this).is(":disabled")&&je.test(this.nodeName)&&!Le.test(t)&&(this.checked||!$t.test(t))}).map(function(t,e){var n=bt(this).val();return null==n?null:Array.isArray(n)?bt.map(n,function(t){return{name:e.name,value:t.replace(ke,"\r\n")}}):{name:e.name,value:n.replace(ke,"\r\n")}}).get()}});var Pe=/%20/g,Re=/#.*$/,He=/([?&])_=[^&]*/,Me=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Fe=/^(?:GET|HEAD)$/,Be=/^\/\//,Ue={},qe={},Ve="*/".concat("*"),Ge=at.createElement("a");Ge.href=Oe.href,bt.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Oe.href,type:"GET",isLocal:We.test(Oe.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ve,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":bt.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?it(it(t,bt.ajaxSettings),e):it(bt.ajaxSettings,t)},ajaxPrefilter:et(Ue),ajaxTransport:et(qe),ajax:function(t,e){function n(t,e,n,o){var l,u,h,p,E,w=e;f||(f=!0,c&&r.clearTimeout(c),i=void 0,a=o||"",C.readyState=t>0?4:0,l=t>=200&&t<300||304===t,n&&(p=ot(g,C,n)),p=rt(g,p,C,l),l?(g.ifModified&&(E=C.getResponseHeader("Last-Modified"),E&&(bt.lastModified[s]=E),(E=C.getResponseHeader("etag"))&&(bt.etag[s]=E)),204===t||"HEAD"===g.type?w="nocontent":304===t?w="notmodified":(w=p.state,u=p.data,h=p.error,l=!h)):(h=w,!t&&w||(w="error",t<0&&(t=0))),C.status=t,C.statusText=(e||w)+"",l?y.resolveWith(m,[u,w,C]):y.rejectWith(m,[C,w,h]),C.statusCode(_),_=void 0,d&&v.trigger(l?"ajaxSuccess":"ajaxError",[C,g,l?u:h]),b.fireWith(m,[C,w]),d&&(v.trigger("ajaxComplete",[C,g]),--bt.active||bt.event.trigger("ajaxStop")))}"object"===(void 0===t?"undefined":o(t))&&(e=t,t=void 0),e=e||{};var i,s,a,l,c,u,f,d,h,p,g=bt.ajaxSetup({},e),m=g.context||g,v=g.context&&(m.nodeType||m.jquery)?bt(m):bt.event,y=bt.Deferred(),b=bt.Callbacks("once memory"),_=g.statusCode||{},E={},w={},T="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(f){if(!l)for(l={};e=Me.exec(a);)l[e[1].toLowerCase()]=e[2];e=l[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return f?a:null},setRequestHeader:function(t,e){return null==f&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,E[t]=e),this},overrideMimeType:function(t){return null==f&&(g.mimeType=t),this},statusCode:function(t){var e;if(t)if(f)C.always(t[C.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||T;return i&&i.abort(e),n(0,e),this}};if(y.promise(C),g.url=((t||g.url||Oe.href)+"").replace(Be,Oe.protocol+"//"),g.type=e.method||e.type||g.method||g.type,g.dataTypes=(g.dataType||"*").toLowerCase().match(jt)||[""],null==g.crossDomain){u=at.createElement("a");try{u.href=g.url,u.href=u.href,g.crossDomain=Ge.protocol+"//"+Ge.host!=u.protocol+"//"+u.host}catch(t){g.crossDomain=!0}}if(g.data&&g.processData&&"string"!=typeof g.data&&(g.data=bt.param(g.data,g.traditional)),nt(Ue,g,e,C),f)return C;d=bt.event&&g.global,d&&0==bt.active++&&bt.event.trigger("ajaxStart"),g.type=g.type.toUpperCase(),g.hasContent=!Fe.test(g.type),s=g.url.replace(Re,""),g.hasContent?g.data&&g.processData&&0===(g.contentType||"").indexOf("application/x-www-form-urlencoded")&&(g.data=g.data.replace(Pe,"+")):(p=g.url.slice(s.length),g.data&&(s+=(Ie.test(s)?"&":"?")+g.data,delete g.data),!1===g.cache&&(s=s.replace(He,"$1"),p=(Ie.test(s)?"&":"?")+"_="+De+++p),g.url=s+p),g.ifModified&&(bt.lastModified[s]&&C.setRequestHeader("If-Modified-Since",bt.lastModified[s]),bt.etag[s]&&C.setRequestHeader("If-None-Match",bt.etag[s])),(g.data&&g.hasContent&&!1!==g.contentType||e.contentType)&&C.setRequestHeader("Content-Type",g.contentType),C.setRequestHeader("Accept",g.dataTypes[0]&&g.accepts[g.dataTypes[0]]?g.accepts[g.dataTypes[0]]+("*"!==g.dataTypes[0]?", "+Ve+"; q=0.01":""):g.accepts["*"]);for(h in g.headers)C.setRequestHeader(h,g.headers[h]);if(g.beforeSend&&(!1===g.beforeSend.call(m,C,g)||f))return C.abort();if(T="abort",b.add(g.complete),C.done(g.success),C.fail(g.error),i=nt(qe,g,e,C)){if(C.readyState=1,d&&v.trigger("ajaxSend",[C,g]),f)return C;g.async&&g.timeout>0&&(c=r.setTimeout(function(){C.abort("timeout")},g.timeout));try{f=!1,i.send(E,n)}catch(t){if(f)throw t;n(-1,t)}}else n(-1,"No Transport");return C},getJSON:function(t,e,n){return bt.get(t,e,n,"json")},getScript:function(t,e){return bt.get(t,void 0,e,"script")}}),bt.each(["get","post"],function(t,e){bt[e]=function(t,n,i,o){return bt.isFunction(n)&&(o=o||i,i=n,n=void 0),bt.ajax(bt.extend({url:t,type:e,dataType:o,data:n,success:i},bt.isPlainObject(t)&&t))}}),bt._evalUrl=function(t){return bt.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},bt.fn.extend({wrapAll:function(t){var e;return this[0]&&(bt.isFunction(t)&&(t=t.call(this[0])),e=bt(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return bt.isFunction(t)?this.each(function(e){bt(this).wrapInner(t.call(this,e))}):this.each(function(){var e=bt(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=bt.isFunction(t);return this.each(function(n){bt(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){bt(this).replaceWith(this.childNodes)}),this}}),bt.expr.pseudos.hidden=function(t){return!bt.expr.pseudos.visible(t)},bt.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},bt.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(t){}};var Ke={0:200,1223:204},ze=bt.ajaxSettings.xhr();yt.cors=!!ze&&"withCredentials"in ze,yt.ajax=ze=!!ze,bt.ajaxTransport(function(t){var e,n;if(yt.cors||ze&&!t.crossDomain)return{send:function(i,o){var s,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)a[s]=t.xhrFields[s];t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)a.setRequestHeader(s,i[s]);e=function(t){return function(){e&&(e=n=a.onload=a.onerror=a.onabort=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Ke[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),n=a.onerror=e("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout(function(){e&&n()})},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),bt.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),bt.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 bt.globalEval(t),t}}}),bt.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),bt.ajaxTransport("script",function(t){if(t.crossDomain){var e,n;return{send:function(i,o){e=bt("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",n=function(t){e.remove(),n=null,t&&o("error"===t.type?404:200,t.type)}),at.head.appendChild(e[0])},abort:function(){n&&n()}}}});var Xe=[],$e=/(=)\?(?=&|$)|\?\?/;bt.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Xe.pop()||bt.expando+"_"+De++;return this[t]=!0,t}}),bt.ajaxPrefilter("json jsonp",function(t,e,n){var i,o,s,a=!1!==t.jsonp&&($e.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&$e.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return i=t.jsonpCallback=bt.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace($e,"$1"+i):!1!==t.jsonp&&(t.url+=(Ie.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||bt.error(i+" was not called"),s[0]},t.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always(function(){void 0===o?bt(r).removeProp(i):r[i]=o,t[i]&&(t.jsonpCallback=e.jsonpCallback,Xe.push(i)),s&&bt.isFunction(o)&&o(s[0]),s=o=void 0}),"script"}),yt.createHTMLDocument=function(){var t=at.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),bt.parseHTML=function(t,e,n){if("string"!=typeof t)return[];"boolean"==typeof e&&(n=e,e=!1);var i,o,r;return e||(yt.createHTMLDocument?(e=at.implementation.createHTMLDocument(""),i=e.createElement("base"),i.href=at.location.href,e.head.appendChild(i)):e=at),o=Ot.exec(t),r=!n&&[],o?[e.createElement(o[1])]:(o=x([t],e,r),r&&r.length&&bt(r).remove(),bt.merge([],o.childNodes))},bt.fn.load=function(t,e,n){var i,r,s,a=this,l=t.indexOf(" ");return l>-1&&(i=J(t.slice(l)),t=t.slice(0,l)),bt.isFunction(e)?(n=e,e=void 0):e&&"object"===(void 0===e?"undefined":o(e))&&(r="POST"),a.length>0&&bt.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done(function(t){s=arguments,a.html(i?bt("<div>").append(bt.parseHTML(t)).find(i):t)}).always(n&&function(t,e){a.each(function(){n.apply(this,s||[t.responseText,e,t])})}),this},bt.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(t,e){bt.fn[e]=function(t){return this.on(e,t)}}),bt.expr.pseudos.animated=function(t){return bt.grep(bt.timers,function(e){return t===e.elem}).length},bt.offset={setOffset:function(t,e,n){var i,o,r,s,a,l,c,u=bt.css(t,"position"),f=bt(t),d={};"static"===u&&(t.style.position="relative"),a=f.offset(),r=bt.css(t,"top"),l=bt.css(t,"left"),c=("absolute"===u||"fixed"===u)&&(r+l).indexOf("auto")>-1,c?(i=f.position(),s=i.top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),bt.isFunction(e)&&(e=e.call(t,n,bt.extend({},a))),null!=e.top&&(d.top=e.top-a.top+s),null!=e.left&&(d.left=e.left-a.left+o),"using"in e?e.using.call(t,d):f.css(d)}},bt.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){bt.offset.setOffset(this,t,e)});var e,n,i,o,r=this[0];if(r)return r.getClientRects().length?(i=r.getBoundingClientRect(),e=r.ownerDocument,n=e.documentElement,o=e.defaultView,{top:i.top+o.pageYOffset-n.clientTop,left:i.left+o.pageXOffset-n.clientLeft}):{top:0,left:0}},position:function(){if(this[0]){var t,e,n=this[0],i={top:0,left:0};return"fixed"===bt.css(n,"position")?e=n.getBoundingClientRect():(t=this.offsetParent(),e=this.offset(),c(t[0],"html")||(i=t.offset()),i={top:i.top+bt.css(t[0],"borderTopWidth",!0),left:i.left+bt.css(t[0],"borderLeftWidth",!0)}),{top:e.top-i.top-bt.css(n,"marginTop",!0),left:e.left-i.left-bt.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent;t&&"static"===bt.css(t,"position");)t=t.offsetParent;return t||te})}}),bt.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,e){var n="pageYOffset"===e;bt.fn[t]=function(i){return Ht(this,function(t,i,o){var r;if(bt.isWindow(t)?r=t:9===t.nodeType&&(r=t.defaultView),void 0===o)return r?r[e]:t[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):t[i]=o},t,i,arguments.length)}}),bt.each(["top","left"],function(t,e){bt.cssHooks[e]=M(yt.pixelPosition,function(t,n){if(n)return n=H(t,e),ue.test(n)?bt(t).position()[e]+"px":n})}),bt.each({Height:"height",Width:"width"},function(t,e){bt.each({padding:"inner"+t,content:e,"":"outer"+t},function(n,i){bt.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return Ht(this,function(e,n,o){var r;return bt.isWindow(e)?0===i.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+t],r["scroll"+t],e.body["offset"+t],r["offset"+t],r["client"+t])):void 0===o?bt.css(e,n,a):bt.style(e,n,o,a)},e,s?o:void 0,s)}})}),bt.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)}}),bt.holdReady=function(t){t?bt.readyWait++:bt.ready(!0)},bt.isArray=Array.isArray,bt.parseJSON=JSON.parse,bt.nodeName=c,n=[],void 0!==(i=function(){return bt}.apply(e,n))&&(t.exports=i);var Ye=r.jQuery,Qe=r.$;return bt.noConflict=function(t){return r.$===bt&&(r.$=Qe),t&&r.jQuery===bt&&(r.jQuery=Ye),bt},s||(r.jQuery=r.$=bt),bt})}).call(e,n(14)(t))},function(t,e,n){"use strict";t.exports=n(16)},function(t,e,n){"use strict";(function(e){function i(t,e){!o.isUndefined(t)&&o.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var o=n(0),r=n(20),s={"Content-Type":"application/x-www-form-urlencoded"},a={adapter:function(){var t;return"undefined"!=typeof XMLHttpRequest?t=n(8):void 0!==e&&(t=n(8)),t}(),transformRequest:[function(t,e){return r(e,"Content-Type"),o.isFormData(t)||o.isArrayBuffer(t)||o.isBuffer(t)||o.isStream(t)||o.isFile(t)||o.isBlob(t)?t:o.isArrayBufferView(t)?t.buffer:o.isURLSearchParams(t)?(i(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):o.isObject(t)?(i(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return t>=200&&t<300}};a.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){a.headers[t]={}}),o.forEach(["post","put","patch"],function(t){a.headers[t]=o.merge(s)}),t.exports=a}).call(e,n(19))},function(t,e,n){"use strict";(function(e){function i(t){b=t}function o(t,n,i){for(var o=e(".recipeInstructions .col:nth-child("+i+")"),r=t;r<n;r++){var s=e(".item-"+r),a=s.html();s.html("");var l='<p class="mb-0 pl-0 pr-0 col" style="color: #282828; font-weight: 300">'+a+"</p>";l='<div id="step-'+(r+1)+'" \n class="overlay mr-3 d-flex align-items-center align-self-start justify-content-center" \n style="min-height: 40px; min-width: 40px;max-height: 40px; max-width: 40px; border: 0.5px solid lightcoral; border-radius: 50%;">\n <p style="line-height: 40px; color: gray; font-size: 20px; font-weight: 300; margin-bottom: 1.5px;">\n '+(r+1)+"</p>\n </div>"+l,s.html(l),o.append(s)}}function r(t,n,i){console.log("recipe html string is:"),console.log(t),e("#recipe-container").css("display","block").html(t),e(".recipeInstructions").addClass("mt-5"),e(".recipeInstructions ol").addClass("d-flex pl-0 justify-content-between");for(var r=0;r<n;r++)e(".recipeInstructions ol li:nth-child("+(r+1)+")").addClass("justify-content-between border-0 list-group-item list-group-item procedures item-"+r).css("flex-flow","row");e(".recipeInstructions ol").prepend('<li class="col list-group pl-0 pr-0"></li>'),console.log({arr1:[0,Math.ceil(n/2-1),1],arr2:[Math.ceil(n/2-1),n,2]}),o(0,n,1),e(".recipeInstructions").prepend('\n <div class="card-block pb-0" \n style=" background-color: white;"><h2 \n style="border-bottom: 0.5px solid #B7CB39; color: black; font-weight: 300;" class="mb-0 pb-3">Directions\n </h2></div>');var s=void 0;i.length>6?(s='<ul class="col list-group">'+i.slice(0,Math.ceil(i.length/2)).join("")+"</ul>",s+='<ul class="col list-group">'+i.slice(Math.ceil(i.length/2),i.length).join("")+"</ul>",s='\n <div class="card-block mt-5 pb-0" \n style=" background-color: white;"><h2 \n style="border-bottom: 0.5px solid #B7CB39;color: black; font-weight: 300;" class="mb-0 pb-3">Ingredients\n </h2></div>\n <div class="d-flex pl-0 flex-row justify-content-between hidden-md-down" style="background-color: \n white;">\n '+s+"\n </div>\n ",s+='<ul class="col list-group hidden-lg-up pl-0 pr-0">'+i.slice(0,i.length).join("")+"</ul>`",e(".recipe-container").prepend(s)):e(".recipe-container").prepend('\n <div class="card-block mt-5 pb-0" \n style=" background-color: white;"><h2 \n style="border-bottom: 0.5px solid #B7CB39;color: black; font-weight: 300;" class="mb-0 pb-3">Ingredients\n </h2>\n </div>\n <ul class="mb-5 col list-group pl-0 pr-0">'+i.join("")+"</ul>")}function s(t,n,i){E.default.get(t,n).then(function(t){var n=t.data.instructions;n=n.replace(/[\uE000-\uF8FF]/g,"");var i=e(n).find("li").length,o=n.trim();console.log(o),console.log(i);var s=t.data.extendedIngredients,a=[];s.forEach(function(t,e){var n=t.originalString;a.push('<li class="justify-content-between list-group-item border-0" style="flex-flow: row !important;">\n <div id="step-'+(e+1)+'" \n class="overlay mr-4 d-flex align-items-center align-self-start justify-content-center" \n style="min-height: 40px; min-width: 40px;max-height: 40px; max-width: 40px; border: 0.5px solid lightcoral; border-radius: 50%;">\n <p style="line-height: 40px; color: gray; font-size: 20px; font-weight: 300; margin-bottom: 1.5px;">\n '+(e+1)+'</p>\n </div>\n <p class="mb-0 col pl-0 pr-0" style="color: #282828; font-weight: 300">'+n+"</p>\n </li>")}),r(o,i,a)})}function a(){e("#search, #general-search-btn").click(function(t){if(e("#no-results").css("display","none"),e(".nav-form").removeClass("show").attr("aria-expanded","false"),t.preventDefault(),""===e("#general-search").val()&&""===e("#ingredients").val())e("#query-error").css("display","block"),a();else{var n="";n=void 0!==e("#general-search").val()&&""!==e("#general-search").val()?e("#general-search").val():e("#ingredients").val();var i=e("#ingredients").val(),o=e("#exclude-ingredients").val(),r=e("#max-calories").val(),s=e("#min-calories").val();if(r<s)e("#calories-error").css("display","block"),a();else{e("#search-message, .home, #calories-error").css("display","none"),e(".card-columns").css("display","block"),e("#recipe-container").css("display","none"),e(".card-columns").empty();var l=e(".diet:checked").attr("id"),c="";e(".intolerance:checked").each(function(){c+=e(this).attr("id")+" "}),c=c.trim();var f={headers:{"X-Mashape-Key":"VftGeJE2qimshoNc94fZxoUiEp04p154Astjsn7Kuggh3FXLVw"}},d={limitLicence:!1,number:300,query:n,ingredients:i,excludeIngredients:o,maxCalories:r,minCalories:s,diet:l,intolerances:c,ranking:1,addRecipeInformation:!0};u(d);for(var h in d)""===d[h]&&delete d[h];var g="https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/searchComplex?";g+="?"+e.param(d),p(g,f)}}})}function l(t,e){var n=[];return void 0!==t&&(n=e.concat(t).unique()),n.sort(function(t,e){return t.aggregateLikes>e.aggregateLikes?-1:t.aggregateLikes<e.aggregateLikes?1:0}),n=n.slice(0,50),console.log(n),n}function c(t){var e=firebase.database(),n=e.ref("/top50Recipes"),i=[];n.once("value",function(e){if(e.exists()){i=e.val().recipesArray;var o=l(i,t);n.transaction(function(t){return null!==t?(t.recipesArray=o,t):t={recipesArray:o}})}else{console.log("Snapshot doesn't exist");var o=l([],t);n.transaction(function(t){return null!==t?(t.recipesArray=o,t):t={recipesArray:o}})}},function(t){console.log(t.code)})}function u(t){var n="Search: "+t.query;t.query!==t.ingredients&&""!==t.ingredients&&(n+="; Ingredients: "+t.ingredients),""!==t.excludeIngredients&&(n+="; exclude ingredients: "+t.excludeIngredients),""!==t.maxCalories&&(n+="; max. calories: "+t.maxCalories),""!==t.minCalories&&(n+="; min. calories: "+t.minCalories),""!==t.diet&&void 0!==t.diet&&(n+="; special diet: "+t.diet),""!==t.intolerances&&(n+="; dietary restrictions: "+t.intolerances),e("#search-message").html(n).css("display","block")}function f(t){console.log(t);var n=[];if(void 0===t[0])return C.stopAndRemove(),void e("#no-results").css("display","block");t.forEach(function(e){firebase.database().ref("recipes/"+e.id).once("value",function(i){i.val()?(e.ourLikes=i.val().ourLikes,e.aggregateLikes+=e.ourLikes,firebase.database().ref("recipes/"+e.id).set(e,function(t){t?(console.log(t.code),console.log(t.message)):console.log("recipe has been stored in firebase with key: "+e.id)}).then(function(){n.push(E.default.get("https://project1-4f221.firebaseio.com/recipes/"+e.id+".json")),console.log(n),n.length>=t.length&&Promise.all(n).then(function(t){d(t)})})):(e.ourLikes=0,firebase.database().ref("recipes/"+e.id).set(e,function(t){t?(console.log(t.code),console.log(t.message)):(console.log("recipe has been stored in firebase with key: "+e.id),console.log("hello3"))}).then(function(){n.push(E.default.get("https://project1-4f221.firebaseio.com/recipes/"+e.id+".json")),console.log(n),n.length>=t.length&&Promise.all(n).then(function(t){d(t)})}))})})}function d(t){var n="",i=[];t.forEach(function(t){if(console.log(t.data),t.data.aggregateLikes>100){i.push(t.data);var e=t.data.sourceUrl?t.data.sourceUrl:"none",o=t.data.image,r=t.data.title,s=t.data.servings,a=t.data.readyInMinutes?t.data.readyInMinutes+" m":"N/A",l=t.data.id,c=y(t.data.spoonacularScore),u=t.data.aggregateLikes;n+=g(r,s,a,o,e,l,c,u)}}),e(T).css("display","none"),C.stopAndRemove(),e(".card-columns").html(n),v(),c(i)}function h(t,n){return e(T).css("display","block"),C.startAll(),E.default.get(t,n).then(function(t){return t.data.results}).catch(function(){e(T).css("display","none"),C.stopAndRemove()})}function p(t,e){if(b.currentUser)h(t,e).then(function(t){f(t)});else{b.signInAnonymously().then(function(){h(t,e).then(function(t){f(t),console.log(t)})}).catch(function(){console.log("error signing in anonymously to perform search")})}}function g(t,e,n,i,o,r,s,a){return'\n <my-card\n url="'+o+'"\n data-url="'+o+'"\n source="'+i+'"\n title="'+t+'"\n time="'+n+'"\n servings="'+e+'"\n recipeId="'+r+'" \n data-recipeId="'+r+'"\n likes="'+a+'" \n stars="'+s+'" \n ></my-card>\n'}function m(t){return t.ourLikes+=1,t}function v(){e("#nav-brand").click(function(){e("#no-results").css("display","none"),e(".home").css("display","block"),e("#search-message, #no-results, #recipe-container, .recipeInstructions, .card-columns, #calories-error, #query-error").css("display","none"),e("form").trigger("reset"),e("#collapseExample").removeClass("show")}),e(".heart").on("click",function(){var t=e(this).attr("heart-id");x||(x=!0,b.currentUser?b.currentUser.isAnonymous?x=!1:firebase.database().ref("userRecipes/"+b.currentUser.uid).once("value",function(e){e.hasChild(t)?x=!1:firebase.database().ref("userRecipes/"+b.currentUser.uid+"/"+t).set(!0,function(e){if(x=!1,e)console.log(e.code);else{firebase.database().ref("recipes/"+t).transaction(function(t){return t?t=m(t):t})}})},function(t){x=!1,console.log(t.code)}):x=!1)}),e(document).on("click","#more-instructions",function(){e(".home").css("display","none"),e(".card-columns").css("display","none"),console.log("click");var t=e(this).attr("data-url"),n=e(this).attr("data-recipeId");console.log("myId: "+n),console.log(t);var i={headers:{"X-Mashape-Key":"VftGeJE2qimshoNc94fZxoUiEp04p154Astjsn7Kuggh3FXLVw"}},o={forceExtraction:!1,url:t},r="https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/extract?";r+=e.param(o),s(r,i,n)}),e("my-card").on("click",".recipe-footer, .recipe-img, .recipe-block",function(){e(".card-columns").css("display","none"),console.log("click");var t=e(this).attr("source-url"),n=e(this).attr("data-recipeId");console.log("myId: "+n),console.log(t);var i={headers:{"X-Mashape-Key":"VftGeJE2qimshoNc94fZxoUiEp04p154Astjsn7Kuggh3FXLVw"}},o={forceExtraction:!1,url:t},r="https://spoonacular-recipe-food-nutrition-v1.p.mashape.com/recipes/extract?";r+=e.param(o),s(r,i,n)})}function y(t){for(var e={fullstars:function(){return t%20>15?Math.floor(t/20)+1:Math.floor(t/20)},halfstar:function(){return t%20<=15&&t%20>=5?1:0}},n="",i=0;i<e.fullstars();i++)e.fullstars()>0&&(n+="<i class='fa fa-star'></i> ");return e.halfstar()>0&&(n+="<i class='fa fa-star-half'></i>"),n}var b,_=n(2),E=function(t){return t&&t.__esModule?t:{default:t}}(_),w=n(5),T=document.getElementById("cardsLoadContainer"),C=new w.MyLoadAnimation1(T,75,12,4,["#b7cb39","#f76f4d"]);e(".collapse-menu").on("click",function(){"(-)"===e(this).find(".plus-minus").text()?e(this).find(".plus-minus").text("(+)"):e(this).find(".plus-minus").text("(-)")});var x=!1;Array.prototype.unique=function(){for(var t=this.concat(),e=0;e<t.length;++e)for(var n=e+1;n<t.length;++n)t[e].id===t[n].id&&t.splice(n--,1);return t},t.exports={cardsEventApi:a,passAuth:i,recipeEventApi:v,getCard:g,printStars:y}}).call(e,n(1))},function(t,e,n){"use strict";(function(e){function n(t,e,n,i,o){this.counter=0,this.elementsToAnimate=[],this.size=e,this.radius=e/2,this.circleSize=n,this.canPlay=!0,this.myTimer=null,this.colors=o,this.numberOfCircles=i,this.parentContainer=t,this.loadContainer=null}n.prototype.getRadians=function(t){return t*(Math.PI/180)},n.prototype.getXCoord=function(t,e,n){return t+(t-e)*Math.cos(this.getRadians(n))-e},n.prototype.getYCoord=function(t,e,n){return t+(t-e)*Math.sin(this.getRadians(n))-e},n.prototype.removeAnimation=function(){e(this.loadContainer).remove()},n.prototype.buildCircle=function(t){var n=document.createElement("div");return e(n).addClass("MyLoadAnimation1-Circle"),e(n).css("position","absolute"),e(n).css("width",this.circleSize+"px"),e(n).css("height",this.circleSize+"px"),e(n).css("border-radius","50%"),e(n).css("background-color",t+""),e(n).css("display","none"),n},n.prototype.buildHTML=function(){var t=document.createElement("div");e(t).addClass("MyLoadAnimation1-LoadContainer"),e(t).css("position","absolute"),e(t).css("margin","auto"),e(t).css("left","0"),e(t).css("right","0"),e(t).css("top","0"),e(t).css("bottom","0"),e(t).css("height",this.size+"px"),e(t).css("width",this.size+"px"),e(t).css("-webkit-transform","rotate(270deg)"),e(t).css("-moz-transform","rotate(270deg)"),e(t).css("-o-transform","rotate(270deg)"),e(t).css("-ms-transform","rotate(270deg)"),e(t).css("transform","rotate(270deg)");for(var n=0,i=0;i<this.numberOfCircles;i++){n>=this.colors.length&&(n=0);var o=this.buildCircle(this.colors[n]);n++,this.elementsToAnimate.push(o),e(t).append(e(o))}return this.loadContainer=t,this.loadContainer},n.prototype.stopAnimation=function(){this.canPlay=!1,clearTimeout(this.myTimer)},n.prototype.stopAndRemove=function(){this.stopAnimation(),this.removeAnimation()},n.prototype.animate=function(t,n,i,o,r,s,a){if(0!=o){var l=this;if(e(t).show(),t.style.left=this.getXCoord(o,n/2,r)+"px",t.style.top=this.getYCoord(o,i/2,r)+"px",a+=s,r+=a,r>=180&&(s*=-1),r>=360)return void(++this.counter==this.elementsToAnimate.length&&(this.counter=0,setTimeout(function(){l.startAnimation(0,l.elementsToAnimate.length)},1e3)));this.canPlay&&setTimeout(function(){l.animate(t,n,i,o,r,s,a)},20)}},n.prototype.startAll=function(){this.canPlay=!0,e(this.parentContainer).append(this.buildHTML()),this.startAnimation(0,this.elementsToAnimate.length)},n.prototype.startAnimation=function(t,e){var n=this;t<e&&this.canPlay&&(this.animate(this.elementsToAnimate[t],this.circleSize,this.circleSize,this.radius,0,.15,3),this.myTimer=setTimeout(function(){n.startAnimation(t+1,e)},100))},t.exports={MyLoadAnimation1:n}}).call(e,n(1))},function(t,e,n){"use strict";var i,o,r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*! tether 1.4.0 */
!function(r,s){i=s,void 0!==(o="function"==typeof i?i.call(e,n,e,t):i)&&(t.exports=o)}(0,function(t,e,n){function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t){var e=t.getBoundingClientRect(),n={};for(var i in e)n[i]=e[i];if(t.ownerDocument!==document){var r=t.ownerDocument.defaultView.frameElement;if(r){var s=o(r);n.top+=s.top,n.bottom+=s.top,n.left+=s.left,n.right+=s.left}}return n}function s(t){var e=getComputedStyle(t)||{},n=e.position,i=[];if("fixed"===n)return[t];for(var o=t;(o=o.parentNode)&&o&&1===o.nodeType;){var r=void 0;try{r=getComputedStyle(o)}catch(t){}if(void 0===r||null===r)return i.push(o),i;var s=r,a=s.overflow,l=s.overflowX;/(auto|scroll)/.test(a+s.overflowY+l)&&("absolute"!==n||["relative","absolute","fixed"].indexOf(r.position)>=0)&&i.push(o)}return i.push(t.ownerDocument.body),t.ownerDocument!==document&&i.push(t.ownerDocument.defaultView),i}function a(){A&&document.body.removeChild(A),A=null}function l(t){var e=void 0;t===document?(e=document,t=document.documentElement):e=t.ownerDocument;var n=e.documentElement,i=o(t),r=D();return i.top-=r.top,i.left-=r.left,void 0===i.width&&(i.width=document.body.scrollWidth-i.left-i.right),void 0===i.height&&(i.height=document.body.scrollHeight-i.top-i.bottom),i.top=i.top-n.clientTop,i.left=i.left-n.clientLeft,i.right=e.body.clientWidth-i.width-i.left,i.bottom=e.body.clientHeight-i.height-i.top,i}function c(t){return t.offsetParent||document.documentElement}function u(){if(I)return I;var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var e=document.createElement("div");f(e.style,{position:"absolute",top:0,left:0,pointerEvents:"none",visibility:"hidden",width:"200px",height:"150px",overflow:"hidden"}),e.appendChild(t),document.body.appendChild(e);var n=t.offsetWidth;e.style.overflow="scroll";var i=t.offsetWidth;n===i&&(i=e.clientWidth),document.body.removeChild(e);var o=n-i;return I={width:o,height:o}}function f(){var t=arguments.length<=0||void 0===arguments[0]?{}:arguments[0],e=[];return Array.prototype.push.apply(e,arguments),e.slice(1).forEach(function(e){if(e)for(var n in e)({}).hasOwnProperty.call(e,n)&&(t[n]=e[n])}),t}function d(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.remove(e)});else{var n=new RegExp("(^| )"+e.split(" ").join("|")+"( |$)","gi"),i=g(t).replace(n," ");m(t,i)}}function h(t,e){if(void 0!==t.classList)e.split(" ").forEach(function(e){e.trim()&&t.classList.add(e)});else{d(t,e);var n=g(t)+" "+e;m(t,n)}}function p(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=g(t);return new RegExp("(^| )"+e+"( |$)","gi").test(n)}function g(t){return t.className instanceof t.ownerDocument.defaultView.SVGAnimatedString?t.className.baseVal:t.className}function m(t,e){t.setAttribute("class",e)}function v(t,e,n){n.forEach(function(n){-1===e.indexOf(n)&&p(t,n)&&d(t,n)}),e.forEach(function(e){p(t,e)||h(t,e)})}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function b(t,e){var n=arguments.length<=2||void 0===arguments[2]?1:arguments[2];return t+n>=e&&e>=t-n}function _(){return"undefined"!=typeof performance&&void 0!==performance.now?performance.now():+new Date}function E(){for(var t={top:0,left:0},e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];return n.forEach(function(e){var n=e.top,i=e.left;"string"==typeof n&&(n=parseFloat(n,10)),"string"==typeof i&&(i=parseFloat(i,10)),t.top+=n,t.left+=i}),t}function w(t,e){return"string"==typeof t.left&&-1!==t.left.indexOf("%")&&(t.left=parseFloat(t.left,10)/100*e.width),"string"==typeof t.top&&-1!==t.top.indexOf("%")&&(t.top=parseFloat(t.top,10)/100*e.height),t}function T(t,e){return"scrollParent"===e?e=t.scrollParents[0]:"window"===e&&(e=[pageXOffset,pageYOffset,innerWidth+pageXOffset,innerHeight+pageYOffset]),e===document&&(e=e.documentElement),void 0!==e.nodeType&&function(){var t=e,n=l(e),i=n,o=getComputedStyle(e);if(e=[i.left,i.top,n.width+i.left,n.height+i.top],t.ownerDocument!==document){var r=t.ownerDocument.defaultView;e[0]+=r.pageXOffset,e[1]+=r.pageYOffset,e[2]+=r.pageXOffset,e[3]+=r.pageYOffset}Y.forEach(function(t,n){t=t[0].toUpperCase()+t.substr(1),"Top"===t||"Left"===t?e[n]+=parseFloat(o["border"+t+"Width"]):e[n]-=parseFloat(o["border"+t+"Width"])})}(),e}var C=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),x=void 0;void 0===x&&(x={modules:[]});var A=null,S=function(){var t=0;return function(){return++t}}(),O={},D=function(){var t=A;t&&document.body.contains(t)||(t=document.createElement("div"),t.setAttribute("data-tether-id",S()),f(t.style,{top:0,left:0,position:"absolute"}),document.body.appendChild(t),A=t);var e=t.getAttribute("data-tether-id");return void 0===O[e]&&(O[e]=o(t),k(function(){delete O[e]})),O[e]},I=null,N=[],k=function(t){N.push(t)},L=function(){for(var t=void 0;t=N.pop();)t()},j=function(){function t(){i(this,t)}return C(t,[{key:"on",value:function(t,e,n){var i=!(arguments.length<=3||void 0===arguments[3])&&arguments[3];void 0===this.bindings&&(this.bindings={}),void 0===this.bindings[t]&&(this.bindings[t]=[]),this.bindings[t].push({handler:e,ctx:n,once:i})}},{key:"once",value:function(t,e,n){this.on(t,e,n,!0)}},{key:"off",value:function(t,e){if(void 0!==this.bindings&&void 0!==this.bindings[t])if(void 0===e)delete this.bindings[t];else for(var n=0;n<this.bindings[t].length;)this.bindings[t][n].handler===e?this.bindings[t].splice(n,1):++n}},{key:"trigger",value:function(t){if(void 0!==this.bindings&&this.bindings[t]){for(var e=0,n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(;e<this.bindings[t].length;){var r=this.bindings[t][e],s=r.handler,a=r.ctx,l=r.once,c=a;void 0===c&&(c=this),s.apply(c,i),l?this.bindings[t].splice(e,1):++e}}}}]),t}();x.Utils={getActualBoundingClientRect:o,getScrollParents:s,getBounds:l,getOffsetParent:c,extend:f,addClass:h,removeClass:d,hasClass:p,updateClasses:v,defer:k,flush:L,uniqueId:S,Evented:j,getScrollBarSize:u,removeUtilElements:a};var P=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),C=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),R=function(t,e,n){for(var i=!0;i;){var o=t,r=e,s=n;i=!1,null===o&&(o=Function.prototype);var a=Object.getOwnPropertyDescriptor(o,r);if(void 0!==a){if("value"in a)return a.value;var l=a.get;if(void 0===l)return;return l.call(s)}var c=Object.getPrototypeOf(o);if(null===c)return;t=c,e=r,n=s,i=!0,a=c=void 0}};if(void 0===x)throw new Error("You must include the utils.js file before tether.js");var H=x.Utils,s=H.getScrollParents,l=H.getBounds,c=H.getOffsetParent,f=H.extend,h=H.addClass,d=H.removeClass,v=H.updateClasses,k=H.defer,L=H.flush,u=H.getScrollBarSize,a=H.removeUtilElements,M=function(){if("undefined"==typeof document)return"";for(var t=document.createElement("div"),e=["transform","WebkitTransform","OTransform","MozTransform","msTransform"],n=0;n<e.length;++n){var i=e[n];if(void 0!==t.style[i])return i}}(),W=[],F=function(){W.forEach(function(t){t.position(!1)}),L()};!function(){var t=null,e=null,n=null,i=function i(){if(void 0!==e&&e>16)return e=Math.min(e-16,250),void(n=setTimeout(i,250));void 0!==t&&_()-t<10||(null!=n&&(clearTimeout(n),n=null),t=_(),F(),e=_()-t)};"undefined"!=typeof window&&void 0!==window.addEventListener&&["resize","scroll","touchmove"].forEach(function(t){window.addEventListener(t,i)})}();var B={center:"center",left:"right",right:"left"},U={middle:"middle",top:"bottom",bottom:"top"},q={top:0,left:0,middle:"50%",center:"50%",bottom:"100%",right:"100%"},V=function(t,e){var n=t.left,i=t.top;return"auto"===n&&(n=B[e.left]),"auto"===i&&(i=U[e.top]),{left:n,top:i}},G=function(t){var e=t.left,n=t.top;return void 0!==q[t.left]&&(e=q[t.left]),void 0!==q[t.top]&&(n=q[t.top]),{left:e,top:n}},K=function(t){var e=t.split(" "),n=P(e,2);return{top:n[0],left:n[1]}},z=K,X=function(t){function e(t){var n=this;i(this,e),R(Object.getPrototypeOf(e.prototype),"constructor",this).call(this),this.position=this.position.bind(this),W.push(this),this.history=[],this.setOptions(t,!1),x.modules.forEach(function(t){void 0!==t.initialize&&t.initialize.call(n)}),this.position()}return y(e,t),C(e,[{key:"getClass",value:function(){var t=arguments.length<=0||void 0===arguments[0]?"":arguments[0],e=this.options.classes;return void 0!==e&&e[t]?this.options.classes[t]:this.options.classPrefix?this.options.classPrefix+"-"+t:t}},{key:"setOptions",value:function(t){var e=this,n=arguments.length<=1||void 0===arguments[1]||arguments[1],i={offset:"0 0",targetOffset:"0 0",targetAttachment:"auto auto",classPrefix:"tether"};this.options=f(i,t);var o=this.options,r=o.element,a=o.target,l=o.targetModifier;if(this.element=r,this.target=a,this.targetModifier=l,"viewport"===this.target?(this.target=document.body,this.targetModifier="visible"):"scroll-handle"===this.target&&(this.target=document.body,this.targetModifier="scroll-handle"),["element","target"].forEach(function(t){if(void 0===e[t])throw new Error("Tether Error: Both element and target must be defined");void 0!==e[t].jquery?e[t]=e[t][0]:"string"==typeof e[t]&&(e[t]=document.querySelector(e[t]))}),h(this.element,this.getClass("element")),!1!==this.options.addTargetClasses&&h(this.target,this.getClass("target")),!this.options.attachment)throw new Error("Tether Error: You must provide an attachment");this.targetAttachment=z(this.options.targetAttachment),this.attachment=z(this.options.attachment),this.offset=K(this.options.offset),this.targetOffset=K(this.options.targetOffset),void 0!==this.scrollParents&&this.disable(),"scroll-handle"===this.targetModifier?this.scrollParents=[this.target]:this.scrollParents=s(this.target),!1!==this.options.enabled&&this.enable(n)}},{key:"getTargetBounds",value:function(){if(void 0===this.targetModifier)return l(this.target);if("visible"===this.targetModifier){if(this.target===document.body)return{top:pageYOffset,left:pageXOffset,height:innerHeight,width:innerWidth};var t=l(this.target),e={height:t.height,width:t.width,top:t.top,left:t.left};return e.height=Math.min(e.height,t.height-(pageYOffset-t.top)),e.height=Math.min(e.height,t.height-(t.top+t.height-(pageYOffset+innerHeight))),e.height=Math.min(innerHeight,e.height),e.height-=2,e.width=Math.min(e.width,t.width-(pageXOffset-t.left)),e.width=Math.min(e.width,t.width-(t.left+t.width-(pageXOffset+innerWidth))),e.width=Math.min(innerWidth,e.width),e.width-=2,e.top<pageYOffset&&(e.top=pageYOffset),e.left<pageXOffset&&(e.left=pageXOffset),e}if("scroll-handle"===this.targetModifier){var t=void 0,n=this.target;n===document.body?(n=document.documentElement,t={left:pageXOffset,top:pageYOffset,height:innerHeight,width:innerWidth}):t=l(n);var i=getComputedStyle(n),o=n.scrollWidth>n.clientWidth||[i.overflow,i.overflowX].indexOf("scroll")>=0||this.target!==document.body,r=0;o&&(r=15);var s=t.height-parseFloat(i.borderTopWidth)-parseFloat(i.borderBottomWidth)-r,e={width:15,height:.975*s*(s/n.scrollHeight),left:t.left+t.width-parseFloat(i.borderLeftWidth)-15},a=0;s<408&&this.target===document.body&&(a=-11e-5*Math.pow(s,2)-.00727*s+22.58),this.target!==document.body&&(e.height=Math.max(e.height,24));var c=this.target.scrollTop/(n.scrollHeight-s);return e.top=c*(s-e.height-a)+t.top+parseFloat(i.borderTopWidth),this.target===document.body&&(e.height=Math.max(e.height,24)),e}}},{key:"clearCache",value:function(){this._cache={}}},{key:"cache",value:function(t,e){return void 0===this._cache&&(this._cache={}),void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]}},{key:"enable",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];!1!==this.options.addTargetClasses&&h(this.target,this.getClass("enabled")),h(this.element,this.getClass("enabled")),this.enabled=!0,this.scrollParents.forEach(function(e){e!==t.target.ownerDocument&&e.addEventListener("scroll",t.position)}),e&&this.position()}},{key:"disable",value:function(){var t=this;d(this.target,this.getClass("enabled")),d(this.element,this.getClass("enabled")),this.enabled=!1,void 0!==this.scrollParents&&this.scrollParents.forEach(function(e){e.removeEventListener("scroll",t.position)})}},{key:"destroy",value:function(){var t=this;this.disable(),W.forEach(function(e,n){e===t&&W.splice(n,1)}),0===W.length&&a()}},{key:"updateAttachClasses",value:function(t,e){var n=this;t=t||this.attachment,e=e||this.targetAttachment;var i=["left","top","bottom","right","middle","center"];void 0!==this._addAttachClasses&&this._addAttachClasses.length&&this._addAttachClasses.splice(0,this._addAttachClasses.length),void 0===this._addAttachClasses&&(this._addAttachClasses=[]);var o=this._addAttachClasses;t.top&&o.push(this.getClass("element-attached")+"-"+t.top),t.left&&o.push(this.getClass("element-attached")+"-"+t.left),e.top&&o.push(this.getClass("target-attached")+"-"+e.top),e.left&&o.push(this.getClass("target-attached")+"-"+e.left);var r=[];i.forEach(function(t){r.push(n.getClass("element-attached")+"-"+t),r.push(n.getClass("target-attached")+"-"+t)}),k(function(){void 0!==n._addAttachClasses&&(v(n.element,n._addAttachClasses,r),!1!==n.options.addTargetClasses&&v(n.target,n._addAttachClasses,r),delete n._addAttachClasses)})}},{key:"position",value:function(){var t=this,e=arguments.length<=0||void 0===arguments[0]||arguments[0];if(this.enabled){this.clearCache();var n=V(this.targetAttachment,this.attachment);this.updateAttachClasses(this.attachment,n);var i=this.cache("element-bounds",function(){return l(t.element)}),o=i.width,s=i.height;if(0===o&&0===s&&void 0!==this.lastSize){var a=this.lastSize;o=a.width,s=a.height}else this.lastSize={width:o,height:s};var f=this.cache("target-bounds",function(){return t.getTargetBounds()}),d=f,h=w(G(this.attachment),{width:o,height:s}),p=w(G(n),d),g=w(this.offset,{width:o,height:s}),m=w(this.targetOffset,d);h=E(h,g),p=E(p,m);for(var v=f.left+p.left-h.left,y=f.top+p.top-h.top,b=0;b<x.modules.length;++b){var _=x.modules[b],T=_.position.call(this,{left:v,top:y,targetAttachment:n,targetPos:f,elementPos:i,offset:h,targetOffset:p,manualOffset:g,manualTargetOffset:m,scrollbarSize:O,attachment:this.attachment});if(!1===T)return!1;void 0!==T&&"object"===(void 0===T?"undefined":r(T))&&(y=T.top,v=T.left)}var C={page:{top:y,left:v},viewport:{top:y-pageYOffset,bottom:pageYOffset-y-s+innerHeight,left:v-pageXOffset,right:pageXOffset-v-o+innerWidth}},A=this.target.ownerDocument,S=A.defaultView,O=void 0;return S.innerHeight>A.documentElement.clientHeight&&(O=this.cache("scrollbar-size",u),C.viewport.bottom-=O.height),S.innerWidth>A.documentElement.clientWidth&&(O=this.cache("scrollbar-size",u),C.viewport.right-=O.width),-1!==["","static"].indexOf(A.body.style.position)&&-1!==["","static"].indexOf(A.body.parentElement.style.position)||(C.page.bottom=A.body.scrollHeight-y-s,C.page.right=A.body.scrollWidth-v-o),void 0!==this.options.optimizations&&!1!==this.options.optimizations.moveElement&&void 0===this.targetModifier&&function(){var e=t.cache("target-offsetparent",function(){return c(t.target)}),n=t.cache("target-offsetparent-bounds",function(){return l(e)}),i=getComputedStyle(e),o=n,r={};if(["Top","Left","Bottom","Right"].forEach(function(t){r[t.toLowerCase()]=parseFloat(i["border"+t+"Width"])}),n.right=A.body.scrollWidth-n.left-o.width+r.right,n.bottom=A.body.scrollHeight-n.top-o.height+r.bottom,C.page.top>=n.top+r.top&&C.page.bottom>=n.bottom&&C.page.left>=n.left+r.left&&C.page.right>=n.right){var s=e.scrollTop,a=e.scrollLeft;C.offset={top:C.page.top-n.top+s-r.top,left:C.page.left-n.left+a-r.left}}}(),this.move(C),this.history.unshift(C),this.history.length>3&&this.history.pop(),e&&L(),!0}}},{key:"move",value:function(t){var e=this;if(void 0!==this.element.parentNode){var n={};for(var i in t){n[i]={};for(var o in t[i]){for(var r=!1,s=0;s<this.history.length;++s){var a=this.history[s];if(void 0!==a[i]&&!b(a[i][o],t[i][o])){r=!0;break}}r||(n[i][o]=!0)}}var l={top:"",left:"",right:"",bottom:""},u=function(t,n){if(!1!==(void 0!==e.options.optimizations?e.options.optimizations.gpu:null)){var i=void 0,o=void 0;t.top?(l.top=0,i=n.top):(l.bottom=0,i=-n.bottom),t.left?(l.left=0,o=n.left):(l.right=0,o=-n.right),window.matchMedia&&(window.matchMedia("only screen and (min-resolution: 1.3dppx)").matches||window.matchMedia("only screen and (-webkit-min-device-pixel-ratio: 1.3)").matches||(o=Math.round(o),i=Math.round(i))),l[M]="translateX("+o+"px) translateY("+i+"px)","msTransform"!==M&&(l[M]+=" translateZ(0)")}else t.top?l.top=n.top+"px":l.bottom=n.bottom+"px",t.left?l.left=n.left+"px":l.right=n.right+"px"},d=!1;if((n.page.top||n.page.bottom)&&(n.page.left||n.page.right)?(l.position="absolute",u(n.page,t.page)):(n.viewport.top||n.viewport.bottom)&&(n.viewport.left||n.viewport.right)?(l.position="fixed",u(n.viewport,t.viewport)):void 0!==n.offset&&n.offset.top&&n.offset.left?function(){l.position="absolute";var i=e.cache("target-offsetparent",function(){return c(e.target)});c(e.element)!==i&&k(function(){e.element.parentNode.removeChild(e.element),i.appendChild(e.element)}),u(n.offset,t.offset),d=!0}():(l.position="absolute",u({top:!0,left:!0},t.page)),!d)if(this.options.bodyElement)this.options.bodyElement.appendChild(this.element);else{for(var h=!0,p=this.element.parentNode;p&&1===p.nodeType&&"BODY"!==p.tagName;){if("static"!==getComputedStyle(p).position){h=!1;break}p=p.parentNode}h||(this.element.parentNode.removeChild(this.element),this.element.ownerDocument.body.appendChild(this.element))}var g={},m=!1;for(var o in l){var v=l[o];this.element.style[o]!==v&&(m=!0,g[o]=v)}m&&k(function(){f(e.element.style,g),e.trigger("repositioned")})}}}]),e}(j);X.modules=[],x.position=F;var $=f(X,x),P=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),H=x.Utils,l=H.getBounds,f=H.extend,v=H.updateClasses,k=H.defer,Y=["left","top","right","bottom"];x.modules.push({position:function(t){var e=this,n=t.top,i=t.left,o=t.targetAttachment;if(!this.options.constraints)return!0;var r=this.cache("element-bounds",function(){return l(e.element)}),s=r.height,a=r.width;if(0===a&&0===s&&void 0!==this.lastSize){var c=this.lastSize;a=c.width,s=c.height}var u=this.cache("target-bounds",function(){return e.getTargetBounds()}),d=u.height,h=u.width,p=[this.getClass("pinned"),this.getClass("out-of-bounds")];this.options.constraints.forEach(function(t){var e=t.outOfBoundsClass,n=t.pinnedClass;e&&p.push(e),n&&p.push(n)}),p.forEach(function(t){["left","top","right","bottom"].forEach(function(e){p.push(t+"-"+e)})});var g=[],m=f({},o),y=f({},this.attachment);return this.options.constraints.forEach(function(t){var r=t.to,l=t.attachment,c=t.pin;void 0===l&&(l="");var u=void 0,f=void 0;if(l.indexOf(" ")>=0){var p=l.split(" "),v=P(p,2);f=v[0],u=v[1]}else u=f=l;var b=T(e,r);"target"!==f&&"both"!==f||(n<b[1]&&"top"===m.top&&(n+=d,m.top="bottom"),n+s>b[3]&&"bottom"===m.top&&(n-=d,m.top="top")),"together"===f&&("top"===m.top&&("bottom"===y.top&&n<b[1]?(n+=d,m.top="bottom",n+=s,y.top="top"):"top"===y.top&&n+s>b[3]&&n-(s-d)>=b[1]&&(n-=s-d,m.top="bottom",y.top="bottom")),"bottom"===m.top&&("top"===y.top&&n+s>b[3]?(n-=d,m.top="top",n-=s,y.top="bottom"):"bottom"===y.top&&n<b[1]&&n+(2*s-d)<=b[3]&&(n+=s-d,m.top="top",y.top="top")),"middle"===m.top&&(n+s>b[3]&&"top"===y.top?(n-=s,y.top="bottom"):n<b[1]&&"bottom"===y.top&&(n+=s,y.top="top"))),"target"!==u&&"both"!==u||(i<b[0]&&"left"===m.left&&(i+=h,m.left="right"),i+a>b[2]&&"right"===m.left&&(i-=h,m.left="left")),"together"===u&&(i<b[0]&&"left"===m.left?"right"===y.left?(i+=h,m.left="right",i+=a,y.left="left"):"left"===y.left&&(i+=h,m.left="right",i-=a,y.left="right"):i+a>b[2]&&"right"===m.left?"left"===y.left?(i-=h,m.left="left",i-=a,y.left="right"):"right"===y.left&&(i-=h,m.left="left",i+=a,y.left="left"):"center"===m.left&&(i+a>b[2]&&"left"===y.left?(i-=a,y.left="right"):i<b[0]&&"right"===y.left&&(i+=a,y.left="left"))),"element"!==f&&"both"!==f||(n<b[1]&&"bottom"===y.top&&(n+=s,y.top="top"),n+s>b[3]&&"top"===y.top&&(n-=s,y.top="bottom")),"element"!==u&&"both"!==u||(i<b[0]&&("right"===y.left?(i+=a,y.left="left"):"center"===y.left&&(i+=a/2,y.left="left")),i+a>b[2]&&("left"===y.left?(i-=a,y.left="right"):"center"===y.left&&(i-=a/2,y.left="right"))),"string"==typeof c?c=c.split(",").map(function(t){return t.trim()}):!0===c&&(c=["top","left","right","bottom"]),c=c||[];var _=[],E=[];n<b[1]&&(c.indexOf("top")>=0?(n=b[1],_.push("top")):E.push("top")),n+s>b[3]&&(c.indexOf("bottom")>=0?(n=b[3]-s,_.push("bottom")):E.push("bottom")),i<b[0]&&(c.indexOf("left")>=0?(i=b[0],_.push("left")):E.push("left")),i+a>b[2]&&(c.indexOf("right")>=0?(i=b[2]-a,_.push("right")):E.push("right")),_.length&&function(){var t=void 0;t=void 0!==e.options.pinnedClass?e.options.pinnedClass:e.getClass("pinned"),g.push(t),_.forEach(function(e){g.push(t+"-"+e)})}(),E.length&&function(){var t=void 0;t=void 0!==e.options.outOfBoundsClass?e.options.outOfBoundsClass:e.getClass("out-of-bounds"),g.push(t),E.forEach(function(e){g.push(t+"-"+e)})}(),(_.indexOf("left")>=0||_.indexOf("right")>=0)&&(y.left=m.left=!1),(_.indexOf("top")>=0||_.indexOf("bottom")>=0)&&(y.top=m.top=!1),m.top===o.top&&m.left===o.left&&y.top===e.attachment.top&&y.left===e.attachment.left||(e.updateAttachClasses(y,m),e.trigger("update",{attachment:y,targetAttachment:m}))}),k(function(){!1!==e.options.addTargetClasses&&v(e.target,g,p),v(e.element,g,p)}),{top:n,left:i}}});var H=x.Utils,l=H.getBounds,v=H.updateClasses,k=H.defer;x.modules.push({position:function(t){var e=this,n=t.top,i=t.left,o=this.cache("element-bounds",function(){return l(e.element)}),r=o.height,s=o.width,a=this.getTargetBounds(),c=n+r,u=i+s,f=[];n<=a.bottom&&c>=a.top&&["left","right"].forEach(function(t){var e=a[t];e!==i&&e!==u||f.push(t)}),i<=a.right&&u>=a.left&&["top","bottom"].forEach(function(t){var e=a[t];e!==n&&e!==c||f.push(t)});var d=[],h=[],p=["left","top","right","bottom"];return d.push(this.getClass("abutted")),p.forEach(function(t){d.push(e.getClass("abutted")+"-"+t)}),f.length&&h.push(this.getClass("abutted")),f.forEach(function(t){h.push(e.getClass("abutted")+"-"+t)}),k(function(){!1!==e.options.addTargetClasses&&v(e.target,h,d),v(e.element,h,d)}),!0}});var P=function(){function t(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done)&&(n.push(s.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{!i&&a.return&&a.return()}finally{if(o)throw r}}return n}return function(e,n){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return t(e,n);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();return x.modules.push({position:function(t){var e=t.top,n=t.left;if(this.options.shift){var i=this.options.shift;"function"==typeof this.options.shift&&(i=this.options.shift.call(this,{top:e,left:n}));var o=void 0,r=void 0;if("string"==typeof i){i=i.split(" "),i[1]=i[1]||i[0];var s=i,a=P(s,2);o=a[0],r=a[1],o=parseFloat(o,10),r=parseFloat(r,10)}else o=i.top,r=i.left;return e+=o,n+=r,{top:e,left:n}}}}),$})},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return t.apply(e,n)}}},function(t,e,n){"use strict";var i=n(0),o=n(21),r=n(23),s=n(24),a=n(25),l=n(9),c="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(26);t.exports=function(t){return new Promise(function(e,u){var f=t.data,d=t.headers;i.isFormData(f)&&delete d["Content-Type"];var h=new XMLHttpRequest,p="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in h||a(t.url)||(h=new window.XDomainRequest,p="onload",g=!0,h.onprogress=function(){},h.ontimeout=function(){}),t.auth){var m=t.auth.username||"",v=t.auth.password||"";d.Authorization="Basic "+c(m+":"+v)}if(h.open(t.method.toUpperCase(),r(t.url,t.params,t.paramsSerializer),!0),h.timeout=t.timeout,h[p]=function(){if(h&&(4===h.readyState||g)&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in h?s(h.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?h.response:h.responseText,r={data:i,status:1223===h.status?204:h.status,statusText:1223===h.status?"No Content":h.statusText,headers:n,config:t,request:h};o(e,u,r),h=null}},h.onerror=function(){u(l("Network Error",t,null,h)),h=null},h.ontimeout=function(){u(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED",h)),h=null},i.isStandardBrowserEnv()){var y=n(27),b=(t.withCredentials||a(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;b&&(d[t.xsrfHeaderName]=b)}if("setRequestHeader"in h&&i.forEach(d,function(t,e){void 0===f&&"content-type"===e.toLowerCase()?delete d[e]:h.setRequestHeader(e,t)}),t.withCredentials&&(h.withCredentials=!0),t.responseType)try{h.responseType=t.responseType}catch(e){if("json"!==t.responseType)throw e}"function"==typeof t.onDownloadProgress&&h.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&h.upload&&h.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){h&&(h.abort(),u(t),h=null)}),void 0===f&&(f=null),h.send(f)})}},function(t,e,n){"use strict";var i=n(22);t.exports=function(t,e,n,o,r){var s=new Error(t);return i(s,e,n,o,r)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,n){"use strict";n(13),n(1),n(6),n(15);var i=n(2),o=(function(t){t&&t.__esModule}(i),n(4)),r=n(35),s=n(36),a=n(37),l=n(38),c={apiKey:"AIzaSyAo2GM4PjdcCsGq-3detGaqYkG-C6r_4iw",authDomain:"project1-4f221.firebaseapp.com",databaseURL:"https://project1-4f221.firebaseio.com/",projectId:"project1-4f221",storageBucket:"project1-4f221.appspot.com",messagingSenderId:"364363031540"};firebase.initializeApp(c);var u=firebase.auth(),f=firebase.database();!function(){(0,l.printPopular)(),(0,s.initMap)(),(0,o.passAuth)(u),(0,o.cardsEventApi)(),(0,r.signUp)(u),(0,r.signIn)(u),(0,r.signOut)(u),(0,r.authStateChanged)(u,f),(0,a.getMyRecipes)()}(),t.exports={authorization:u,wholeDb:f},function(t,e){console.log(t+e)}(2,3)},function(t,e){},function(t,e,n){"use strict";t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";(function(t,e){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};/*!
* Bootstrap v4.0.0-alpha.6 (https://getbootstrap.com)
* Copyright 2011-2017 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
*/
if(void 0===t)throw new Error("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");+function(t){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]>=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}(t),function(){function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==(void 0===e?"undefined":n(e))&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+(void 0===e?"undefined":n(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return void 0===t?"undefined":n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":void 0===t?"undefined":n(t)},a=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),l=function(t){function e(t){return{}.toString.call(t).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}function n(t){return(t[0]||t).nodeType}function i(){return{bindType:s.end,delegateType:s.end,handle:function(e){if(t(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}}}function o(){if(window.QUnit)return!1;var t=document.createElement("bootstrap");for(var e in a)if(void 0!==t.style[e])return{end:a[e]};return!1}function r(e){var n=this,i=!1;return t(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(n)},e),this}var s=!1,a={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e=t.getAttribute("data-target");return e||(e=t.getAttribute("href")||"",e=/^#[a-z]/i.test(e)?e:null),e},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(e){t(e).trigger(s.end)},supportsTransitionEnd:function(){return Boolean(s)},typeCheckConfig:function(t,i,o){for(var r in o)if(o.hasOwnProperty(r)){var s=o[r],a=i[r],l=a&&n(a)?"element":e(a);if(!new RegExp(s).test(l))throw new Error(t.toUpperCase()+': Option "'+r+'" provided type "'+l+'" but expected type "'+s+'".')}}};return function(){s=o(),t.fn.emulateTransitionEnd=r,l.supportsTransitionEnd()&&(t.event.special[l.TRANSITION_END]=i())}(),l}(t),c=(function(t){var e="alert",n=t.fn[e],i={DISMISS:'[data-dismiss="alert"]'},o={CLOSE:"close.bs.alert",CLOSED:"closed.bs.alert",CLICK_DATA_API:"click.bs.alert.data-api"},s={ALERT:"alert",FADE:"fade",SHOW:"show"},c=function(){function e(t){r(this,e),this._element=t}return e.prototype.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.prototype.dispose=function(){t.removeData(this._element,"bs.alert"),this._element=null},e.prototype._getRootElement=function(e){var n=l.getSelectorFromElement(e),i=!1;return n&&(i=t(n)[0]),i||(i=t(e).closest("."+s.ALERT)[0]),i},e.prototype._triggerCloseEvent=function(e){var n=t.Event(o.CLOSE);return t(e).trigger(n),n},e.prototype._removeElement=function(e){var n=this;if(t(e).removeClass(s.SHOW),!l.supportsTransitionEnd()||!t(e).hasClass(s.FADE))return void this._destroyElement(e);t(e).one(l.TRANSITION_END,function(t){return n._destroyElement(e,t)}).emulateTransitionEnd(150)},e.prototype._destroyElement=function(e){t(e).detach().trigger(o.CLOSED).remove()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.alert");o||(o=new e(this),i.data("bs.alert",o)),"close"===n&&o[n](this)})},e._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(o.CLICK_DATA_API,i.DISMISS,c._handleDismiss(new c)),t.fn[e]=c._jQueryInterface,t.fn[e].Constructor=c,t.fn[e].noConflict=function(){return t.fn[e]=n,c._jQueryInterface}}(t),function(t){var e="button",n=t.fn[e],i={ACTIVE:"active",BUTTON:"btn",FOCUS:"focus"},o={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:"input",ACTIVE:".active",BUTTON:".btn"},s={CLICK_DATA_API:"click.bs.button.data-api",FOCUS_BLUR_DATA_API:"focus.bs.button.data-api blur.bs.button.data-api"},l=function(){function e(t){r(this,e),this._element=t}return e.prototype.toggle=function(){var e=!0,n=t(this._element).closest(o.DATA_TOGGLE)[0];if(n){var r=t(this._element).find(o.INPUT)[0];if(r){if("radio"===r.type)if(r.checked&&t(this._element).hasClass(i.ACTIVE))e=!1;else{var s=t(n).find(o.ACTIVE)[0];s&&t(s).removeClass(i.ACTIVE)}e&&(r.checked=!t(this._element).hasClass(i.ACTIVE),t(r).trigger("change")),r.focus()}}this._element.setAttribute("aria-pressed",!t(this._element).hasClass(i.ACTIVE)),e&&t(this._element).toggleClass(i.ACTIVE)},e.prototype.dispose=function(){t.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.button");i||(i=new e(this),t(this).data("bs.button",i)),"toggle"===n&&i[n]()})},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(s.CLICK_DATA_API,o.DATA_TOGGLE_CARROT,function(e){e.preventDefault();var n=e.target;t(n).hasClass(i.BUTTON)||(n=t(n).closest(o.BUTTON)),l._jQueryInterface.call(t(n),"toggle")}).on(s.FOCUS_BLUR_DATA_API,o.DATA_TOGGLE_CARROT,function(e){var n=t(e.target).closest(o.BUTTON)[0];t(n).toggleClass(i.FOCUS,/^focus(in)?$/.test(e.type))}),t.fn[e]=l._jQueryInterface,t.fn[e].Constructor=l,t.fn[e].noConflict=function(){return t.fn[e]=n,l._jQueryInterface}}(t),function(t){var e="carousel",n="bs.carousel",i="."+n,o=t.fn[e],c={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},u={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},f={NEXT:"next",PREV:"prev",LEFT:"left",RIGHT:"right"},d={SLIDE:"slide"+i,SLID:"slid"+i,KEYDOWN:"keydown"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i,LOAD_DATA_API:"load.bs.carousel.data-api",CLICK_DATA_API:"click.bs.carousel.data-api"},h={CAROUSEL:"carousel",ACTIVE:"active",SLIDE:"slide",RIGHT:"carousel-item-right",LEFT:"carousel-item-left",NEXT:"carousel-item-next",PREV:"carousel-item-prev",ITEM:"carousel-item"},p={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},g=function(){function o(e,n){r(this,o),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this._config=this._getConfig(n),this._element=t(e)[0],this._indicatorsElement=t(this._element).find(p.INDICATORS)[0],this._addEventListeners()}return o.prototype.next=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(f.NEXT)},o.prototype.nextWhenVisible=function(){document.hidden||this.next()},o.prototype.prev=function(){if(this._isSliding)throw new Error("Carousel is sliding");this._slide(f.PREVIOUS)},o.prototype.pause=function(e){e||(this._isPaused=!0),t(this._element).find(p.NEXT_PREV)[0]&&l.supportsTransitionEnd()&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},o.prototype.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},o.prototype.to=function(e){var n=this;this._activeElement=t(this._element).find(p.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0)){if(this._isSliding)return void t(this._element).one(d.SLID,function(){return n.to(e)});if(i===e)return this.pause(),void this.cycle();var o=e>i?f.NEXT:f.PREVIOUS;this._slide(o,this._items[e])}},o.prototype.dispose=function(){t(this._element).off(i),t.removeData(this._element,n),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},o.prototype._getConfig=function(n){return n=t.extend({},c,n),l.typeCheckConfig(e,n,u),n},o.prototype._addEventListeners=function(){var e=this;this._config.keyboard&&t(this._element).on(d.KEYDOWN,function(t){return e._keydown(t)}),"hover"!==this._config.pause||"ontouchstart"in document.documentElement||t(this._element).on(d.MOUSEENTER,function(t){return e.pause(t)}).on(d.MOUSELEAVE,function(t){return e.cycle(t)})},o.prototype._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next();break;default:return}},o.prototype._getItemIndex=function(e){return this._items=t.makeArray(t(e).parent().find(p.ITEM)),this._items.indexOf(e)},o.prototype._getItemByDirection=function(t,e){var n=t===f.NEXT,i=t===f.PREVIOUS,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=t===f.PREVIOUS?-1:1,a=(o+s)%this._items.length;return-1===a?this._items[this._items.length-1]:this._items[a]},o.prototype._triggerSlideEvent=function(e,n){var i=t.Event(d.SLIDE,{relatedTarget:e,direction:n});return t(this._element).trigger(i),i},o.prototype._setActiveIndicatorElement=function(e){if(this._indicatorsElement){t(this._indicatorsElement).find(p.ACTIVE).removeClass(h.ACTIVE);var n=this._indicatorsElement.children[this._getItemIndex(e)];n&&t(n).addClass(h.ACTIVE)}},o.prototype._slide=function(e,n){var i=this,o=t(this._element).find(p.ACTIVE_ITEM)[0],r=n||o&&this._getItemByDirection(e,o),s=Boolean(this._interval),a=void 0,c=void 0,u=void 0;if(e===f.NEXT?(a=h.LEFT,c=h.NEXT,u=f.LEFT):(a=h.RIGHT,c=h.PREV,u=f.RIGHT),r&&t(r).hasClass(h.ACTIVE))return void(this._isSliding=!1);if(!this._triggerSlideEvent(r,u).isDefaultPrevented()&&o&&r){this._isSliding=!0,s&&this.pause(),this._setActiveIndicatorElement(r);var g=t.Event(d.SLID,{relatedTarget:r,direction:u});l.supportsTransitionEnd()&&t(this._element).hasClass(h.SLIDE)?(t(r).addClass(c),l.reflow(r),t(o).addClass(a),t(r).addClass(a),t(o).one(l.TRANSITION_END,function(){t(r).removeClass(a+" "+c).addClass(h.ACTIVE),t(o).removeClass(h.ACTIVE+" "+c+" "+a),i._isSliding=!1,setTimeout(function(){return t(i._element).trigger(g)},0)}).emulateTransitionEnd(600)):(t(o).removeClass(h.ACTIVE),t(r).addClass(h.ACTIVE),this._isSliding=!1,t(this._element).trigger(g)),s&&this.cycle()}},o._jQueryInterface=function(e){return this.each(function(){var i=t(this).data(n),r=t.extend({},c,t(this).data());"object"===(void 0===e?"undefined":s(e))&&t.extend(r,e);var a="string"==typeof e?e:r.slide;if(i||(i=new o(this,r),t(this).data(n,i)),"number"==typeof e)i.to(e);else if("string"==typeof a){if(void 0===i[a])throw new Error('No method named "'+a+'"');i[a]()}else r.interval&&(i.pause(),i.cycle())})},o._dataApiClickHandler=function(e){var i=l.getSelectorFromElement(this);if(i){var r=t(i)[0];if(r&&t(r).hasClass(h.CAROUSEL)){var s=t.extend({},t(r).data(),t(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),o._jQueryInterface.call(t(r),s),a&&t(r).data(n).to(a),e.preventDefault()}}},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}}]),o}();t(document).on(d.CLICK_DATA_API,p.DATA_SLIDE,g._dataApiClickHandler),t(window).on(d.LOAD_DATA_API,function(){t(p.DATA_RIDE).each(function(){var e=t(this);g._jQueryInterface.call(e,e.data())})}),t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=o,g._jQueryInterface}}(t),function(t){var e="collapse",n="bs.collapse",i=t.fn[e],o={toggle:!0,parent:""},c={toggle:"boolean",parent:"string"},u={SHOW:"show.bs.collapse",SHOWN:"shown.bs.collapse",HIDE:"hide.bs.collapse",HIDDEN:"hidden.bs.collapse",CLICK_DATA_API:"click.bs.collapse.data-api"},f={SHOW:"show",COLLAPSE:"collapse",COLLAPSING:"collapsing",COLLAPSED:"collapsed"},d={WIDTH:"width",HEIGHT:"height"},h={ACTIVES:".card > .show, .card > .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},p=function(){function i(e,n){r(this,i),this._isTransitioning=!1,this._element=e,this._config=this._getConfig(n),this._triggerArray=t.makeArray(t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]')),this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}return i.prototype.toggle=function(){t(this._element).hasClass(f.SHOW)?this.hide():this.show()},i.prototype.show=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(!t(this._element).hasClass(f.SHOW)){var o=void 0,r=void 0;if(this._parent&&(o=t.makeArray(t(this._parent).find(h.ACTIVES)),o.length||(o=null)),!(o&&(r=t(o).data(n))&&r._isTransitioning)){var s=t.Event(u.SHOW);if(t(this._element).trigger(s),!s.isDefaultPrevented()){o&&(i._jQueryInterface.call(t(o),"hide"),r||t(o).data(n,null));var a=this._getDimension();t(this._element).removeClass(f.COLLAPSE).addClass(f.COLLAPSING),this._element.style[a]=0,this._element.setAttribute("aria-expanded",!0),this._triggerArray.length&&t(this._triggerArray).removeClass(f.COLLAPSED).attr("aria-expanded",!0),this.setTransitioning(!0);var c=function(){t(e._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).addClass(f.SHOW),e._element.style[a]="",e.setTransitioning(!1),t(e._element).trigger(u.SHOWN)};if(!l.supportsTransitionEnd())return void c();var d=a[0].toUpperCase()+a.slice(1),p="scroll"+d;t(this._element).one(l.TRANSITION_END,c).emulateTransitionEnd(600),this._element.style[a]=this._element[p]+"px"}}}},i.prototype.hide=function(){var e=this;if(this._isTransitioning)throw new Error("Collapse is transitioning");if(t(this._element).hasClass(f.SHOW)){var n=t.Event(u.HIDE);if(t(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension(),o=i===d.WIDTH?"offsetWidth":"offsetHeight";this._element.style[i]=this._element[o]+"px",l.reflow(this._element),t(this._element).addClass(f.COLLAPSING).removeClass(f.COLLAPSE).removeClass(f.SHOW),this._element.setAttribute("aria-expanded",!1),this._triggerArray.length&&t(this._triggerArray).addClass(f.COLLAPSED).attr("aria-expanded",!1),this.setTransitioning(!0);var r=function(){e.setTransitioning(!1),t(e._element).removeClass(f.COLLAPSING).addClass(f.COLLAPSE).trigger(u.HIDDEN)};if(this._element.style[i]="",!l.supportsTransitionEnd())return void r();t(this._element).one(l.TRANSITION_END,r).emulateTransitionEnd(600)}}},i.prototype.setTransitioning=function(t){this._isTransitioning=t},i.prototype.dispose=function(){t.removeData(this._element,n),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},i.prototype._getConfig=function(n){return n=t.extend({},o,n),n.toggle=Boolean(n.toggle),l.typeCheckConfig(e,n,c),n},i.prototype._getDimension=function(){return t(this._element).hasClass(d.WIDTH)?d.WIDTH:d.HEIGHT},i.prototype._getParent=function(){var e=this,n=t(this._config.parent)[0],o='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return t(n).find(o).each(function(t,n){e._addAriaAndCollapsedClass(i._getTargetFromElement(n),[n])}),n},i.prototype._addAriaAndCollapsedClass=function(e,n){if(e){var i=t(e).hasClass(f.SHOW);e.setAttribute("aria-expanded",i),n.length&&t(n).toggleClass(f.COLLAPSED,!i).attr("aria-expanded",i)}},i._getTargetFromElement=function(e){var n=l.getSelectorFromElement(e);return n?t(n)[0]:null},i._jQueryInterface=function(e){return this.each(function(){var r=t(this),a=r.data(n),l=t.extend({},o,r.data(),"object"===(void 0===e?"undefined":s(e))&&e);if(!a&&l.toggle&&/show|hide/.test(e)&&(l.toggle=!1),a||(a=new i(this,l),r.data(n,a)),"string"==typeof e){if(void 0===a[e])throw new Error('No method named "'+e+'"');a[e]()}})},a(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return o}}]),i}();t(document).on(u.CLICK_DATA_API,h.DATA_TOGGLE,function(e){e.preventDefault();var i=p._getTargetFromElement(this),o=t(i).data(n),r=o?"toggle":t(this).data();p._jQueryInterface.call(t(i),r)}),t.fn[e]=p._jQueryInterface,t.fn[e].Constructor=p,t.fn[e].noConflict=function(){return t.fn[e]=i,p._jQueryInterface}}(t),function(t){var e="dropdown",n=".bs.dropdown",i=t.fn[e],o={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,CLICK:"click"+n,CLICK_DATA_API:"click.bs.dropdown.data-api",FOCUSIN_DATA_API:"focusin.bs.dropdown.data-api",KEYDOWN_DATA_API:"keydown.bs.dropdown.data-api"},s={BACKDROP:"dropdown-backdrop",DISABLED:"disabled",SHOW:"show"},c={BACKDROP:".dropdown-backdrop",DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:".dropdown form",ROLE_MENU:'[role="menu"]',ROLE_LISTBOX:'[role="listbox"]',NAVBAR_NAV:".navbar-nav",VISIBLE_ITEMS:'[role="menu"] li:not(.disabled) a, [role="listbox"] li:not(.disabled) a'},u=function(){function e(t){r(this,e),this._element=t,this._addEventListeners()}return e.prototype.toggle=function(){if(this.disabled||t(this).hasClass(s.DISABLED))return!1;var n=e._getParentFromElement(this),i=t(n).hasClass(s.SHOW);if(e._clearMenus(),i)return!1;if("ontouchstart"in document.documentElement&&!t(n).closest(c.NAVBAR_NAV).length){var r=document.createElement("div");r.className=s.BACKDROP,t(r).insertBefore(this),t(r).on("click",e._clearMenus)}var a={relatedTarget:this},l=t.Event(o.SHOW,a);return t(n).trigger(l),!l.isDefaultPrevented()&&(this.focus(),this.setAttribute("aria-expanded",!0),t(n).toggleClass(s.SHOW),t(n).trigger(t.Event(o.SHOWN,a)),!1)},e.prototype.dispose=function(){t.removeData(this._element,"bs.dropdown"),t(this._element).off(n),this._element=null},e.prototype._addEventListeners=function(){t(this._element).on(o.CLICK,this.toggle)},e._jQueryInterface=function(n){return this.each(function(){var i=t(this).data("bs.dropdown");if(i||(i=new e(this),t(this).data("bs.dropdown",i)),"string"==typeof n){if(void 0===i[n])throw new Error('No method named "'+n+'"');i[n].call(this)}})},e._clearMenus=function(n){if(!n||3!==n.which){var i=t(c.BACKDROP)[0];i&&i.parentNode.removeChild(i);for(var r=t.makeArray(t(c.DATA_TOGGLE)),a=0;a<r.length;a++){var l=e._getParentFromElement(r[a]),u={relatedTarget:r[a]};if(t(l).hasClass(s.SHOW)&&!(n&&("click"===n.type&&/input|textarea/i.test(n.target.tagName)||"focusin"===n.type)&&t.contains(l,n.target))){var f=t.Event(o.HIDE,u);t(l).trigger(f),f.isDefaultPrevented()||(r[a].setAttribute("aria-expanded","false"),t(l).removeClass(s.SHOW).trigger(t.Event(o.HIDDEN,u)))}}}},e._getParentFromElement=function(e){var n=void 0,i=l.getSelectorFromElement(e);return i&&(n=t(i)[0]),n||e.parentNode},e._dataApiKeydownHandler=function(n){if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(n.preventDefault(),n.stopPropagation(),!this.disabled&&!t(this).hasClass(s.DISABLED))){var i=e._getParentFromElement(this),o=t(i).hasClass(s.SHOW);if(!o&&27!==n.which||o&&27===n.which){if(27===n.which){var r=t(i).find(c.DATA_TOGGLE)[0];t(r).trigger("focus")}return void t(this).trigger("click")}var a=t(i).find(c.VISIBLE_ITEMS).get();if(a.length){var l=a.indexOf(n.target);38===n.which&&l>0&&l--,40===n.which&&l<a.length-1&&l++,l<0&&(l=0),a[l].focus()}}},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(o.KEYDOWN_DATA_API,c.DATA_TOGGLE,u._dataApiKeydownHandler).on(o.KEYDOWN_DATA_API,c.ROLE_MENU,u._dataApiKeydownHandler).on(o.KEYDOWN_DATA_API,c.ROLE_LISTBOX,u._dataApiKeydownHandler).on(o.CLICK_DATA_API+" "+o.FOCUSIN_DATA_API,u._clearMenus).on(o.CLICK_DATA_API,c.DATA_TOGGLE,u.prototype.toggle).on(o.CLICK_DATA_API,c.FORM_CHILD,function(t){t.stopPropagation()}),t.fn[e]=u._jQueryInterface,t.fn[e].Constructor=u,t.fn[e].noConflict=function(){return t.fn[e]=i,u._jQueryInterface}}(t),function(t){var e="modal",n=".bs.modal",i=t.fn[e],o={backdrop:!0,keyboard:!0,focus:!0,show:!0},c={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},u={HIDE:"hide.bs.modal",HIDDEN:"hidden.bs.modal",SHOW:"show.bs.modal",SHOWN:"shown.bs.modal",FOCUSIN:"focusin.bs.modal",RESIZE:"resize.bs.modal",CLICK_DISMISS:"click.dismiss.bs.modal",KEYDOWN_DISMISS:"keydown.dismiss.bs.modal",MOUSEUP_DISMISS:"mouseup.dismiss.bs.modal",MOUSEDOWN_DISMISS:"mousedown.dismiss.bs.modal",CLICK_DATA_API:"click.bs.modal.data-api"},f={SCROLLBAR_MEASURER:"modal-scrollbar-measure",BACKDROP:"modal-backdrop",OPEN:"modal-open",FADE:"fade",SHOW:"show"},d={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"},h=function(){function i(e,n){r(this,i),this._config=this._getConfig(n),this._element=e,this._dialog=t(e).find(d.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}return i.prototype.toggle=function(t){return this._isShown?this.hide():this.show(t)},i.prototype.show=function(e){var n=this;if(this._isTransitioning)throw new Error("Modal is transitioning");l.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE)&&(this._isTransitioning=!0);var i=t.Event(u.SHOW,{relatedTarget:e});t(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),t(document.body).addClass(f.OPEN),this._setEscapeEvent(),this._setResizeEvent(),t(this._element).on(u.CLICK_DISMISS,d.DATA_DISMISS,function(t){return n.hide(t)}),t(this._dialog).on(u.MOUSEDOWN_DISMISS,function(){t(n._element).one(u.MOUSEUP_DISMISS,function(e){t(e.target).is(n._element)&&(n._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return n._showElement(e)}))},i.prototype.hide=function(e){var n=this;if(e&&e.preventDefault(),this._isTransitioning)throw new Error("Modal is transitioning");var i=l.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE);i&&(this._isTransitioning=!0);var o=t.Event(u.HIDE);t(this._element).trigger(o),this._isShown&&!o.isDefaultPrevented()&&(this._isShown=!1,this._setEscapeEvent(),this._setResizeEvent(),t(document).off(u.FOCUSIN),t(this._element).removeClass(f.SHOW),t(this._element).off(u.CLICK_DISMISS),t(this._dialog).off(u.MOUSEDOWN_DISMISS),i?t(this._element).one(l.TRANSITION_END,function(t){return n._hideModal(t)}).emulateTransitionEnd(300):this._hideModal())},i.prototype.dispose=function(){t.removeData(this._element,"bs.modal"),t(window,document,this._element,this._backdrop).off(n),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._originalBodyPadding=null,this._scrollbarWidth=null},i.prototype._getConfig=function(n){return n=t.extend({},o,n),l.typeCheckConfig(e,n,c),n},i.prototype._showElement=function(e){var n=this,i=l.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&l.reflow(this._element),t(this._element).addClass(f.SHOW),this._config.focus&&this._enforceFocus();var o=t.Event(u.SHOWN,{relatedTarget:e}),r=function(){n._config.focus&&n._element.focus(),n._isTransitioning=!1,t(n._element).trigger(o)};i?t(this._dialog).one(l.TRANSITION_END,r).emulateTransitionEnd(300):r()},i.prototype._enforceFocus=function(){var e=this;t(document).off(u.FOCUSIN).on(u.FOCUSIN,function(n){document===n.target||e._element===n.target||t(e._element).has(n.target).length||e._element.focus()})},i.prototype._setEscapeEvent=function(){var e=this;this._isShown&&this._config.keyboard?t(this._element).on(u.KEYDOWN_DISMISS,function(t){27===t.which&&e.hide()}):this._isShown||t(this._element).off(u.KEYDOWN_DISMISS)},i.prototype._setResizeEvent=function(){var e=this;this._isShown?t(window).on(u.RESIZE,function(t){return e._handleUpdate(t)}):t(window).off(u.RESIZE)},i.prototype._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden","true"),this._isTransitioning=!1,this._showBackdrop(function(){t(document.body).removeClass(f.OPEN),e._resetAdjustments(),e._resetScrollbar(),t(e._element).trigger(u.HIDDEN)})},i.prototype._removeBackdrop=function(){this._backdrop&&(t(this._backdrop).remove(),this._backdrop=null)},i.prototype._showBackdrop=function(e){var n=this,i=t(this._element).hasClass(f.FADE)?f.FADE:"";if(this._isShown&&this._config.backdrop){var o=l.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className=f.BACKDROP,i&&t(this._backdrop).addClass(i),t(this._backdrop).appendTo(document.body),t(this._element).on(u.CLICK_DISMISS,function(t){if(n._ignoreBackdropClick)return void(n._ignoreBackdropClick=!1);t.target===t.currentTarget&&("static"===n._config.backdrop?n._element.focus():n.hide())}),o&&l.reflow(this._backdrop),t(this._backdrop).addClass(f.SHOW),!e)return;if(!o)return void e();t(this._backdrop).one(l.TRANSITION_END,e).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){t(this._backdrop).removeClass(f.SHOW);var r=function(){n._removeBackdrop(),e&&e()};l.supportsTransitionEnd()&&t(this._element).hasClass(f.FADE)?t(this._backdrop).one(l.TRANSITION_END,r).emulateTransitionEnd(150):r()}else e&&e()},i.prototype._handleUpdate=function(){this._adjustDialog()},i.prototype._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},i.prototype._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},i.prototype._checkScrollbar=function(){this._isBodyOverflowing=document.body.clientWidth<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},i.prototype._setScrollbar=function(){var e=parseInt(t(d.FIXED_CONTENT).css("padding-right")||0,10);this._originalBodyPadding=document.body.style.paddingRight||"",this._isBodyOverflowing&&(document.body.style.paddingRight=e+this._scrollbarWidth+"px")},i.prototype._resetScrollbar=function(){document.body.style.paddingRight=this._originalBodyPadding},i.prototype._getScrollbarWidth=function(){var t=document.createElement("div");t.className=f.SCROLLBAR_MEASURER,document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},i._jQueryInterface=function(e,n){return this.each(function(){var o=t(this).data("bs.modal"),r=t.extend({},i.Default,t(this).data(),"object"===(void 0===e?"undefined":s(e))&&e);if(o||(o=new i(this,r),t(this).data("bs.modal",o)),"string"==typeof e){if(void 0===o[e])throw new Error('No method named "'+e+'"');o[e](n)}else r.show&&o.show(n)})},a(i,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return o}}]),i}();t(document).on(u.CLICK_DATA_API,d.DATA_TOGGLE,function(e){var n=this,i=void 0,o=l.getSelectorFromElement(this);o&&(i=t(o)[0]);var r=t(i).data("bs.modal")?"toggle":t.extend({},t(i).data(),t(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var s=t(i).one(u.SHOW,function(e){e.isDefaultPrevented()||s.one(u.HIDDEN,function(){t(n).is(":visible")&&n.focus()})});h._jQueryInterface.call(t(i),r,this)}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=i,h._jQueryInterface}}(t),function(t){var e="scrollspy",n=t.fn[e],i={offset:10,method:"auto",target:""},o={offset:"number",method:"string",target:"(string|element)"},c={ACTIVATE:"activate.bs.scrollspy",SCROLL:"scroll.bs.scrollspy",LOAD_DATA_API:"load.bs.scrollspy.data-api"},u={DROPDOWN_ITEM:"dropdown-item",DROPDOWN_MENU:"dropdown-menu",NAV_LINK:"nav-link",NAV:"nav",ACTIVE:"active"},f={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",LIST_ITEM:".list-item",LI:"li",LI_DROPDOWN:"li.dropdown",NAV_LINKS:".nav-link",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},d={OFFSET:"offset",POSITION:"position"},h=function(){function n(e,i){var o=this;r(this,n),this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(i),this._selector=this._config.target+" "+f.NAV_LINKS+","+this._config.target+" "+f.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,t(this._scrollElement).on(c.SCROLL,function(t){return o._process(t)}),this.refresh(),this._process()}return n.prototype.refresh=function(){var e=this,n=this._scrollElement!==this._scrollElement.window?d.POSITION:d.OFFSET,i="auto"===this._config.method?n:this._config.method,o=i===d.POSITION?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),t.makeArray(t(this._selector)).map(function(e){var n=void 0,r=l.getSelectorFromElement(e);return r&&(n=t(r)[0]),n&&(n.offsetWidth||n.offsetHeight)?[t(n)[i]().top+o,r]:null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}).forEach(function(t){e._offsets.push(t[0]),e._targets.push(t[1])})},n.prototype.dispose=function(){t.removeData(this._element,"bs.scrollspy"),t(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n.prototype._getConfig=function(n){if(n=t.extend({},i,n),"string"!=typeof n.target){var r=t(n.target).attr("id");r||(r=l.getUID(e),t(n.target).attr("id",r)),n.target="#"+r}return l.typeCheckConfig(e,n,o),n},n.prototype._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n.prototype._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n.prototype._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.offsetHeight},n.prototype._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];return void(this._activeTarget!==i&&this._activate(i))}if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},n.prototype._activate=function(e){this._activeTarget=e,this._clear();var n=this._selector.split(",");n=n.map(function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'});var i=t(n.join(","));i.hasClass(u.DROPDOWN_ITEM)?(i.closest(f.DROPDOWN).find(f.DROPDOWN_TOGGLE).addClass(u.ACTIVE),i.addClass(u.ACTIVE)):i.parents(f.LI).find("> "+f.NAV_LINKS).addClass(u.ACTIVE),t(this._scrollElement).trigger(c.ACTIVATE,{relatedTarget:e})},n.prototype._clear=function(){t(this._selector).filter(f.ACTIVE).removeClass(u.ACTIVE)},n._jQueryInterface=function(e){return this.each(function(){var i=t(this).data("bs.scrollspy"),o="object"===(void 0===e?"undefined":s(e))&&e;if(i||(i=new n(this,o),t(this).data("bs.scrollspy",i)),"string"==typeof e){if(void 0===i[e])throw new Error('No method named "'+e+'"');i[e]()}})},a(n,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return i}}]),n}();t(window).on(c.LOAD_DATA_API,function(){for(var e=t.makeArray(t(f.DATA_SPY)),n=e.length;n--;){var i=t(e[n]);h._jQueryInterface.call(i,i.data())}}),t.fn[e]=h._jQueryInterface,t.fn[e].Constructor=h,t.fn[e].noConflict=function(){return t.fn[e]=n,h._jQueryInterface}}(t),function(t){var e=t.fn.tab,n={HIDE:"hide.bs.tab",HIDDEN:"hidden.bs.tab",SHOW:"show.bs.tab",SHOWN:"shown.bs.tab",CLICK_DATA_API:"click.bs.tab.data-api"},i={DROPDOWN_MENU:"dropdown-menu",ACTIVE:"active",DISABLED:"disabled",FADE:"fade",SHOW:"show"},o={A:"a",LI:"li",DROPDOWN:".dropdown",LIST:"ul:not(.dropdown-menu), ol:not(.dropdown-menu), nav:not(.dropdown-menu)",FADE_CHILD:"> .nav-item .fade, > .fade",ACTIVE:".active",ACTIVE_CHILD:"> .nav-item > .active, > .active",DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"]',DROPDOWN_TOGGLE:".dropdown-toggle",DROPDOWN_ACTIVE_CHILD:"> .dropdown-menu .active"},s=function(){function e(t){r(this,e),this._element=t}return e.prototype.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&t(this._element).hasClass(i.ACTIVE)||t(this._element).hasClass(i.DISABLED))){var r=void 0,s=void 0,a=t(this._element).closest(o.LIST)[0],c=l.getSelectorFromElement(this._element);a&&(s=t.makeArray(t(a).find(o.ACTIVE)),s=s[s.length-1]);var u=t.Event(n.HIDE,{relatedTarget:this._element}),f=t.Event(n.SHOW,{relatedTarget:s});if(s&&t(s).trigger(u),t(this._element).trigger(f),!f.isDefaultPrevented()&&!u.isDefaultPrevented()){c&&(r=t(c)[0]),this._activate(this._element,a);var d=function(){var i=t.Event(n.HIDDEN,{relatedTarget:e._element}),o=t.Event(n.SHOWN,{relatedTarget:s});t(s).trigger(i),t(e._element).trigger(o)};r?this._activate(r,r.parentNode,d):d()}}},e.prototype.dispose=function(){t.removeClass(this._element,"bs.tab"),this._element=null},e.prototype._activate=function(e,n,r){var s=this,a=t(n).find(o.ACTIVE_CHILD)[0],c=r&&l.supportsTransitionEnd()&&(a&&t(a).hasClass(i.FADE)||Boolean(t(n).find(o.FADE_CHILD)[0])),u=function(){return s._transitionComplete(e,a,c,r)};a&&c?t(a).one(l.TRANSITION_END,u).emulateTransitionEnd(150):u(),a&&t(a).removeClass(i.SHOW)},e.prototype._transitionComplete=function(e,n,r,s){if(n){t(n).removeClass(i.ACTIVE);var a=t(n.parentNode).find(o.DROPDOWN_ACTIVE_CHILD)[0];a&&t(a).removeClass(i.ACTIVE),n.setAttribute("aria-expanded",!1)}if(t(e).addClass(i.ACTIVE),e.setAttribute("aria-expanded",!0),r?(l.reflow(e),t(e).addClass(i.SHOW)):t(e).removeClass(i.FADE),e.parentNode&&t(e.parentNode).hasClass(i.DROPDOWN_MENU)){var c=t(e).closest(o.DROPDOWN)[0];c&&t(c).find(o.DROPDOWN_TOGGLE).addClass(i.ACTIVE),e.setAttribute("aria-expanded",!0)}s&&s()},e._jQueryInterface=function(n){return this.each(function(){var i=t(this),o=i.data("bs.tab");if(o||(o=new e(this),i.data("bs.tab",o)),"string"==typeof n){if(void 0===o[n])throw new Error('No method named "'+n+'"');o[n]()}})},a(e,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}}]),e}();t(document).on(n.CLICK_DATA_API,o.DATA_TOGGLE,function(e){e.preventDefault(),s._jQueryInterface.call(t(this),"show")}),t.fn.tab=s._jQueryInterface,t.fn.tab.Constructor=s,t.fn.tab.noConflict=function(){return t.fn.tab=e,s._jQueryInterface}}(t),function(t){if(void 0===e)throw new Error("Bootstrap tooltips require Tether (http://tether.io/)");var n="tooltip",i=".bs.tooltip",o=t.fn[n],c={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:"0 0",constraints:[],container:!1},u={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"string",constraints:"array",container:"(string|element|boolean)"},f={TOP:"bottom center",RIGHT:"middle left",BOTTOM:"top center",LEFT:"middle right"},d={SHOW:"show",OUT:"out"},h={HIDE:"hide"+i,HIDDEN:"hidden"+i,SHOW:"show"+i,SHOWN:"shown"+i,INSERTED:"inserted"+i,CLICK:"click"+i,FOCUSIN:"focusin"+i,FOCUSOUT:"focusout"+i,MOUSEENTER:"mouseenter"+i,MOUSELEAVE:"mouseleave"+i},p={FADE:"fade",SHOW:"show"},g={TOOLTIP:".tooltip",TOOLTIP_INNER:".tooltip-inner"},m={element:!1,enabled:!1},v={HOVER:"hover",FOCUS:"focus",CLICK:"click",MANUAL:"manual"},y=function(){function o(t,e){r(this,o),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._isTransitioning=!1,this._tether=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}return o.prototype.enable=function(){this._isEnabled=!0},o.prototype.disable=function(){this._isEnabled=!1},o.prototype.toggleEnabled=function(){this._isEnabled=!this._isEnabled},o.prototype.toggle=function(e){if(e){var n=this.constructor.DATA_KEY,i=t(e.currentTarget).data(n);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(t(this.getTipElement()).hasClass(p.SHOW))return void this._leave(null,this);this._enter(null,this)}},o.prototype.dispose=function(){clearTimeout(this._timeout),this.cleanupTether(),t.removeData(this.element,this.constructor.DATA_KEY),t(this.element).off(this.constructor.EVENT_KEY),t(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&t(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._tether=null,this.element=null,this.config=null,this.tip=null},o.prototype.show=function(){var n=this;if("none"===t(this.element).css("display"))throw new Error("Please use show on visible elements");var i=t.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){if(this._isTransitioning)throw new Error("Tooltip is transitioning");t(this.element).trigger(i);var r=t.contains(this.element.ownerDocument.documentElement,this.element);if(i.isDefaultPrevented()||!r)return;var s=this.getTipElement(),a=l.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&t(s).addClass(p.FADE);var c="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,u=this._getAttachment(c),f=!1===this.config.container?document.body:t(this.config.container);t(s).data(this.constructor.DATA_KEY,this).appendTo(f),t(this.element).trigger(this.constructor.Event.INSERTED),this._tether=new e({attachment:u,element:s,target:this.element,classes:m,classPrefix:"bs-tether",offset:this.config.offset,constraints:this.config.constraints,addTargetClasses:!1}),l.reflow(s),this._tether.position(),t(s).addClass(p.SHOW);var h=function(){var e=n._hoverState;n._hoverState=null,n._isTransitioning=!1,t(n.element).trigger(n.constructor.Event.SHOWN),e===d.OUT&&n._leave(null,n)};if(l.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE))return this._isTransitioning=!0,void t(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(o._TRANSITION_DURATION);h()}},o.prototype.hide=function(e){var n=this,i=this.getTipElement(),o=t.Event(this.constructor.Event.HIDE);if(this._isTransitioning)throw new Error("Tooltip is transitioning");var r=function(){n._hoverState!==d.SHOW&&i.parentNode&&i.parentNode.removeChild(i),n.element.removeAttribute("aria-describedby"),t(n.element).trigger(n.constructor.Event.HIDDEN),n._isTransitioning=!1,n.cleanupTether(),e&&e()};t(this.element).trigger(o),o.isDefaultPrevented()||(t(i).removeClass(p.SHOW),this._activeTrigger[v.CLICK]=!1,this._activeTrigger[v.FOCUS]=!1,this._activeTrigger[v.HOVER]=!1,l.supportsTransitionEnd()&&t(this.tip).hasClass(p.FADE)?(this._isTransitioning=!0,t(i).one(l.TRANSITION_END,r).emulateTransitionEnd(150)):r(),this._hoverState="")},o.prototype.isWithContent=function(){return Boolean(this.getTitle())},o.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},o.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(g.TOOLTIP_INNER),this.getTitle()),e.removeClass(p.FADE+" "+p.SHOW),this.cleanupTether()},o.prototype.setElementContent=function(e,n){var i=this.config.html;"object"===(void 0===n?"undefined":s(n))&&(n.nodeType||n.jquery)?i?t(n).parent().is(e)||e.empty().append(n):e.text(t(n).text()):e[i?"html":"text"](n)},o.prototype.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},o.prototype.cleanupTether=function(){this._tether&&this._tether.destroy()},o.prototype._getAttachment=function(t){return f[t.toUpperCase()]},o.prototype._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach(function(n){if("click"===n)t(e.element).on(e.constructor.Event.CLICK,e.config.selector,function(t){return e.toggle(t)});else if(n!==v.MANUAL){var i=n===v.HOVER?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,o=n===v.HOVER?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;t(e.element).on(i,e.config.selector,function(t){return e._enter(t)}).on(o,e.config.selector,function(t){return e._leave(t)})}t(e.element).closest(".modal").on("hide.bs.modal",function(){return e.hide()})}),this.config.selector?this.config=t.extend({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},o.prototype._fixTitle=function(){var t=s(this.element.getAttribute("data-original-title"));(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},o.prototype._enter=function(e,n){var i=this.constructor.DATA_KEY;return n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusin"===e.type?v.FOCUS:v.HOVER]=!0),t(n.getTipElement()).hasClass(p.SHOW)||n._hoverState===d.SHOW?void(n._hoverState=d.SHOW):(clearTimeout(n._timeout),n._hoverState=d.SHOW,n.config.delay&&n.config.delay.show?void(n._timeout=setTimeout(function(){n._hoverState===d.SHOW&&n.show()},n.config.delay.show)):void n.show())},o.prototype._leave=function(e,n){var i=this.constructor.DATA_KEY;if(n=n||t(e.currentTarget).data(i),n||(n=new this.constructor(e.currentTarget,this._getDelegateConfig()),t(e.currentTarget).data(i,n)),e&&(n._activeTrigger["focusout"===e.type?v.FOCUS:v.HOVER]=!1),!n._isWithActiveTrigger()){if(clearTimeout(n._timeout),n._hoverState=d.OUT,!n.config.delay||!n.config.delay.hide)return void n.hide();n._timeout=setTimeout(function(){n._hoverState===d.OUT&&n.hide()},n.config.delay.hide)}},o.prototype._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},o.prototype._getConfig=function(e){return e=t.extend({},this.constructor.Default,t(this.element).data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),l.typeCheckConfig(n,e,this.constructor.DefaultType),e},o.prototype._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},o._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.tooltip"),i="object"===(void 0===e?"undefined":s(e))&&e;if((n||!/dispose|hide/.test(e))&&(n||(n=new o(this,i),t(this).data("bs.tooltip",n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},a(o,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return c}},{key:"NAME",get:function(){return n}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return h}},{key:"EVENT_KEY",get:function(){return i}},{key:"DefaultType",get:function(){return u}}]),o}();return t.fn[n]=y._jQueryInterface,t.fn[n].Constructor=y,t.fn[n].noConflict=function(){return t.fn[n]=o,y._jQueryInterface},y}(t));!function(t){var e="popover",n=".bs.popover",l=t.fn[e],u=t.extend({},c.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),f=t.extend({},c.DefaultType,{content:"(string|element|function)"}),d={FADE:"fade",SHOW:"show"},h={TITLE:".popover-title",CONTENT:".popover-content"},p={HIDE:"hide"+n,HIDDEN:"hidden"+n,SHOW:"show"+n,SHOWN:"shown"+n,INSERTED:"inserted"+n,CLICK:"click"+n,FOCUSIN:"focusin"+n,FOCUSOUT:"focusout"+n,MOUSEENTER:"mouseenter"+n,MOUSELEAVE:"mouseleave"+n},g=function(l){function c(){return r(this,c),i(this,l.apply(this,arguments))}return o(c,l),c.prototype.isWithContent=function(){return this.getTitle()||this._getContent()},c.prototype.getTipElement=function(){return this.tip=this.tip||t(this.config.template)[0]},c.prototype.setContent=function(){var e=t(this.getTipElement());this.setElementContent(e.find(h.TITLE),this.getTitle()),this.setElementContent(e.find(h.CONTENT),this._getContent()),e.removeClass(d.FADE+" "+d.SHOW),this.cleanupTether()},c.prototype._getContent=function(){return this.element.getAttribute("data-content")||("function"==typeof this.config.content?this.config.content.call(this.element):this.config.content)},c._jQueryInterface=function(e){return this.each(function(){var n=t(this).data("bs.popover"),i="object"===(void 0===e?"undefined":s(e))?e:null;if((n||!/destroy|hide/.test(e))&&(n||(n=new c(this,i),t(this).data("bs.popover",n)),"string"==typeof e)){if(void 0===n[e])throw new Error('No method named "'+e+'"');n[e]()}})},a(c,null,[{key:"VERSION",get:function(){return"4.0.0-alpha.6"}},{key:"Default",get:function(){return u}},{key:"NAME",get:function(){return e}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return p}},{key:"EVENT_KEY",get:function(){return n}},{key:"DefaultType",get:function(){return f}}]),c}(c);t.fn[e]=g._jQueryInterface,t.fn[e].Constructor=g,t.fn[e].noConflict=function(){return t.fn[e]=l,g._jQueryInterface}}(t)}()}).call(e,n(1),n(6))},function(t,e,n){"use strict";function i(t){var e=new s(t),n=r(s.prototype.request,e);return o.extend(n,s.prototype,e),o.extend(n,e),n}var o=n(0),r=n(7),s=n(18),a=n(3),l=i(a);l.Axios=s,l.create=function(t){return i(o.merge(a,t))},l.Cancel=n(11),l.CancelToken=n(33),l.isCancel=n(10),l.all=function(t){return Promise.all(t)},l.spread=n(34),t.exports=l,t.exports.default=l},function(t,e,n){"use strict";function i(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}function o(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&i(t.slice(0,0))}/*!
* Determine if an object is a Buffer
*
* @author Feross Aboukhadijeh <[email protected]> <http://feross.org>
* @license MIT
*/
t.exports=function(t){return null!=t&&(i(t)||o(t)||!!t._isBuffer)}},function(t,e,n){"use strict";function i(t){this.defaults=t,this.interceptors={request:new s,response:new s}}var o=n(3),r=n(0),s=n(28),a=n(29),l=n(31),c=n(32);i.prototype.request=function(t){"string"==typeof t&&(t=r.merge({url:arguments[0]},arguments[1])),t=r.merge(o,this.defaults,{method:"get"},t),t.method=t.method.toLowerCase(),t.baseURL&&!l(t.url)&&(t.url=c(t.baseURL,t.url));var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},r.forEach(["delete","get","head","options"],function(t){i.prototype[t]=function(e,n){return this.request(r.merge(n||{},{method:t,url:e}))}}),r.forEach(["post","put","patch"],function(t){i.prototype[t]=function(e,n,i){return this.request(r.merge(i||{},{method:t,url:e,data:n}))}}),t.exports=i},function(t,e,n){"use strict";function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function r(t){if(f===setTimeout)return setTimeout(t,0);if((f===i||!f)&&setTimeout)return f=setTimeout,setTimeout(t,0);try{return f(t,0)}catch(e){try{return f.call(null,t,0)}catch(e){return f.call(this,t,0)}}}function s(t){if(d===clearTimeout)return clearTimeout(t);if((d===o||!d)&&clearTimeout)return d=clearTimeout,clearTimeout(t);try{return d(t)}catch(e){try{return d.call(null,t)}catch(e){return d.call(this,t)}}}function a(){m&&p&&(m=!1,p.length?g=p.concat(g):v=-1,g.length&&l())}function l(){if(!m){var t=r(a);m=!0;for(var e=g.length;e;){for(p=g,g=[];++v<e;)p&&p[v].run();v=-1,e=g.length}p=null,m=!1,s(t)}}function c(t,e){this.fun=t,this.array=e}function u(){}var f,d,h=t.exports={};!function(){try{f="function"==typeof setTimeout?setTimeout:i}catch(t){f=i}try{d="function"==typeof clearTimeout?clearTimeout:o}catch(t){d=o}}();var p,g=[],m=!1,v=-1;h.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];g.push(new c(t,e)),1!==g.length||m||r(l)},c.prototype.run=function(){this.fun.apply(null,this.array)},h.title="browser",h.browser=!0,h.env={},h.argv=[],h.version="",h.versions={},h.on=u,h.addListener=u,h.once=u,h.off=u,h.removeListener=u,h.removeAllListeners=u,h.emit=u,h.prependListener=u,h.prependOnceListener=u,h.listeners=function(t){return[]},h.binding=function(t){throw new Error("process.binding is not supported")},h.cwd=function(){return"/"},h.chdir=function(t){throw new Error("process.chdir is not supported")},h.umask=function(){return 0}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t,e){i.forEach(t,function(n,i){i!==e&&i.toUpperCase()===e.toUpperCase()&&(t[e]=n,delete t[i])})}},function(t,e,n){"use strict";var i=n(9);t.exports=function(t,e,n){var o=n.config.validateStatus;n.status&&o&&!o(n.status)?e(i("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,i,o){return t.config=e,n&&(t.code=n),t.request=i,t.response=o,t}},function(t,e,n){"use strict";function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var o=n(0);t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(o.isURLSearchParams(e))r=e.toString();else{var s=[];o.forEach(e,function(t,e){null!==t&&void 0!==t&&(o.isArray(t)&&(e+="[]"),o.isArray(t)||(t=[t]),o.forEach(t,function(t){o.isDate(t)?t=t.toISOString():o.isObject(t)&&(t=JSON.stringify(t)),s.push(i(e)+"="+i(t))}))}),r=s.join("&")}return r&&(t+=(-1===t.indexOf("?")?"?":"&")+r),t}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t){var e,n,o,r={};return t?(i.forEach(t.split("\n"),function(t){o=t.indexOf(":"),e=i.trim(t.substr(0,o)).toLowerCase(),n=i.trim(t.substr(o+1)),e&&(r[e]=r[e]?r[e]+", "+n:n)}),r):r}},function(t,e,n){"use strict";var i=n(0);t.exports=i.isStandardBrowserEnv()?function(){function t(t){var e=t;return n&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}var e,n=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");return e=t(window.location.href),function(n){var o=i.isString(n)?t(n):n;return o.protocol===e.protocol&&o.host===e.host}}():function(){return function(){return!0}}()},function(t,e,n){"use strict";function i(){this.message="String contains an invalid character"}function o(t){for(var e,n,o=String(t),s="",a=0,l=r;o.charAt(0|a)||(l="=",a%1);s+=l.charAt(63&e>>8-a%1*8)){if((n=o.charCodeAt(a+=.75))>255)throw new i;e=e<<8|n}return s}var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";i.prototype=new Error,i.prototype.code=5,i.prototype.name="InvalidCharacterError",t.exports=o},function(t,e,n){"use strict";var i=n(0);t.exports=i.isStandardBrowserEnv()?function(){return{write:function(t,e,n,o,r,s){var a=[];a.push(t+"="+encodeURIComponent(e)),i.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),i.isString(o)&&a.push("path="+o),i.isString(r)&&a.push("domain="+r),!0===s&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}()},function(t,e,n){"use strict";function i(){this.handlers=[]}var o=n(0);i.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},i.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},i.prototype.forEach=function(t){o.forEach(this.handlers,function(e){null!==e&&t(e)})},t.exports=i},function(t,e,n){"use strict";function i(t){t.cancelToken&&t.cancelToken.throwIfRequested()}var o=n(0),r=n(30),s=n(10),a=n(3);t.exports=function(t){return i(t),t.headers=t.headers||{},t.data=r(t.data,t.headers,t.transformRequest),t.headers=o.merge(t.headers.common||{},t.headers[t.method]||{},t.headers||{}),o.forEach(["delete","get","head","post","put","patch","common"],function(e){delete t.headers[e]}),(t.adapter||a.adapter)(t).then(function(e){return i(t),e.data=r(e.data,e.headers,t.transformResponse),e},function(e){return s(e)||(i(t),e&&e.response&&(e.response.data=r(e.response.data,e.response.headers,t.transformResponse))),Promise.reject(e)})}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t,e,n){return i.forEach(n,function(n){t=n(t,e)}),t}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";function i(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new o(t),e(n.reason))})}var o=n(11);i.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},i.source=function(){var t;return{token:new i(function(e){t=e}),cancel:t}},t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return function(e){return t.apply(null,e)}}},function(t,e,n){"use strict";(function(e){function n(){e(".in-error-message").html(""),e(".in-email-input").val(""),e(".in-password-input").val(""),e(".up-error-message").html(""),e(".up-email-input").val(""),e(".up-password-input").val("")}function i(){e(".signOutButton").css("display","none"),e(".signInButton").css("display","inline-block"),e(".signUpButton").css("display","inline-block"),e(".myRecipesButton").css("display","none")}function o(t){e(".signUpSubmitButton").on("click",function(){u=e(this).data("file-id");var n=e("#up-email-input-"+u).val(),i=e("#up-password-input-"+u).val();t.currentUser?t.currentUser.isAnonymous?t.signInWithEmailAndPassword(n,i).catch(function(t){console.log("Could not log in: "+t.code),e("#in-error-message-"+u).text(t.message)}):(console.log("a user is already signed in, cannot sign up"),e("#up-error-message-"+u).text("A user is already logged on, you must sign out to sign up")):t.createUserWithEmailAndPassword(n,i).catch(function(t){console.log("Could not sign up"),e("#up-error-message-"+u).text(t.message)})})}function r(t){e(".signInSubmitButton").on("click",function(){u=e(this).data("file-id");var n=e("#in-email-input-"+u).val(),i=e("#in-password-input-"+u).val();t.currentUser?t.currentUser.isAnonymous?t.signInWithEmailAndPassword(n,i).catch(function(t){console.log("Could not log in: "+t.code),e("#in-error-message-"+u).text(t.message)}):(console.log("a user is already signed in"),e("#up-error-message-"+u).text("A user is already logged on, you must sign out to sign in again")):t.signInWithEmailAndPassword(n,i).catch(function(t){console.log("Could not log in: "+t.code),e("#in-error-message-"+u).text(t.message)})})}function s(t){e(".signOutButton").on("click",function(){t.signOut()})}function a(t,o){t.onAuthStateChanged(function(t){if(t)if(t.isAnonymous)console.log("a user is signed in anonymously with uid: "+t.uid),i();else{var r=o.ref("usersInfo/");r.once("value",function(e){if(!e.hasChild(t.uid)){o.ref("usersInfo").child(t.uid).set({state:{length:0}})}}),console.log(t),console.log(t.email+" is signed in "),l&&(n(),e(".signInModal").modal("hide")),c&&(n(),e(".signUpModal").modal("hide")),e(".signOutButton").css("display","inline-block"),e(".signInButton").css("display","none"),e(".signUpButton").css("display","none"),e(".myRecipesButton").css("display","inline-block")}else console.log("a user is not logged in"),i()})}var l=!1;e(".signInModal").on("shown.bs.modal",function(t){l=!0}),e(".signInModal").on("hidden.bs.modal",function(t){n(),l=!1});var c=!1;e(".signUpModal").on("shown.bs.modal",function(t){c=!0}),e(".signUpModal").on("hidden.bs.modal",function(t){n(),c=!1});var u;t.exports={signUp:o,signIn:r,signOut:s,authStateChanged:a}}).call(e,n(1))},function(t,e,n){"use strict";(function(e){function n(t,e){if(!u||e){u=new google.maps.Map(document.getElementById("map"),{center:t,zoom:13}),d=new google.maps.InfoWindow;var n=new google.maps.Marker({map:u,position:t,icon:"https://maps.google.com/mapfiles/ms/icons/blue-dot.png"});google.maps.event.addListener(n,"click",function(){d.setContent("You are here"),d.open(u,this)})}f=new google.maps.InfoWindow;var i=new google.maps.places.PlacesService(u),o=u.getBounds();o?i.nearbySearch({bounds:o,type:["grocery_or_supermarket"],keyword:["grocery"]},s):i.nearbySearch({location:t,radius:6e3,type:["grocery_or_supermarket"],keyword:["grocery"]},s)}function i(){navigator.geolocation?navigator.geolocation.getCurrentPosition(function(t){n({lat:t.coords.latitude,lng:t.coords.longitude},!1)},function(){r(!0)}):r(!1)}function o(){var t=e("#myLocationInput").val().trim();t?(console.log(t),a(t)):i()}function r(t){t?alert("Error: The Geolocation service failed."):alert("Error: Your browser does not support geolocation")}function s(t,e){if(e===google.maps.places.PlacesServiceStatus.OK)for(var n=0;n<t.length;n++)l(t[n])}function a(t){(new google.maps.Geocoder).geocode({address:t},function(t,e){"OK"===e?(console.log(t),n(t[0].geometry.location,!0)):(console.log("Geocode was not successful for the following reason: "+e),i())})}function l(t){var e=new google.maps.Marker({map:u,position:t.geometry.location});google.maps.event.addListener(e,"click",function(){f.setContent(c(t)),d.close(),f.open(u,this)})}function c(t){var n=e("<div>");n.addClass("placeContainer");var i=e("<div>");if(i.addClass("placeNameContainer"),i.text(t.name),n.append(i),t.photos){var o=e("<img>");o.addClass("placeImage"),o.attr("src",t.photos[0].getUrl({maxWidth:400,maxHeight:200})),n.append(o)}if(t.vicinity){var r=e("<div>");r.addClass("placeAddress"),r.text(t.vicinity),n.append(r)}if(t.opening_hours){var s=e("<div>");s.addClass("placeOpenStatus"),t.opening_hours.open_now?(s.text("Open Now"),s.css("color","green")):(s.text("Closed"),s.css("color","red")),n.append(s)}return n.html()}var u,f,d,h;h=document.getElementById("findStoresButton"),h.addEventListener("click",function(t){t.preventDefault(),o()}),t.exports={initMap:o}}).call(e,n(1))},function(t,e,n){"use strict";(function(e){function i(t,n,o,r,s,a){if(n<t.length){firebase.database().ref("recipes/"+t[n]).once("value",function(e){var c=e.val().sourceUrl?e.val().sourceUrl:"none";r+=(0,l.getCard)(e.val().title,e.val().servings,e.val().preparationMinutes,e.val().image,c,e.val().id),i(t,n+1,o,r,s,a)},function(e){console.log(e.code),i(t,n+1,o,r,s,a)})}else e(s).css("display","none"),a.stopAndRemove(),e(".card-columns").html(r),e(".card-columns").css("display","block"),(0,l.recipeEventApi)()}function o(t){return firebase.database().ref("userRecipes/"+t).once("value")}function r(t){var n=o(t),r=document.getElementById("cardsLoadContainer");e(r).css("display","block");var s=new c.MyLoadAnimation1(r,75,12,4,["#b7cb39","#f76f4d"]);s.startAll(),n.then(function(t){var n=t.val();console.log(n);var o=Object.keys(n);e(".recipe-container").html(""),e(".card-columns").html(""),i(o,0,[],"",r,s)}).catch(function(t){e(r).css("display","none"),s.stopAndRemove(),console.log(t.code)})}function s(){e("#getMyRecipesButton, .my-rec").on("click",function(t){e(".home").css("display","none"),firebase.auth().currentUser&&(firebase.auth().currentUser.isAnonymous||r(firebase.auth().currentUser.uid))})}var a=n(2),l=(function(t){t&&t.__esModule}(a),n(4)),c=n(5);t.exports={getMyRecipes:s}}).call(e,n(1))},function(t,e,n){"use strict";(function(e){function i(t,e,n,i,o,r,s,a){return'<div class="card featured-recipe">\n\t <div class="card-block row">\n\t\t <div class="col-lg-3 col-md-4 col-12 mb-sm-2 mb-xs-2">\n\t\t <img class="img-fluid"\n\t\t src='+i+'\n\t\t alt="Card image cap"\n\t\t style="width: 100%">\n\t\t </div>\n\t\t <div class="col-lg-9 col-md-8 col-12">\n\t\t <h4 class="card-title">'+t+"</h4>\n\t\t "+s+'\n\t\t <ol style="padding-left:15px;">'+a+'\n\t\t \t<li style="list-style:none;"><br><a href="#" id="more-instructions" data-url='+r+" data-recipeid="+o+'>More instructions...</a></li>\n\t\t </ol>\n\t\t <hr>\n\t\t <div class="featured-footer">\n\t\t <div class="card-cooktime mr-3 mr-sm-1 ">\n\t\t <i class="fa fa-clock-o"></i>\n\t\t <span class="icon-text"><small>'+n+'</small></span>\n\t\t </div>\n\t\t <div class="card-yield mr-3 mr-sm-1 ">\n\t\t <i class="fa fa-pie-chart"></i>\n\t\t <span class="icon-text"><small>'+e+" servings</small></span>\n\t\t </div>\n\t\t </div>\n\t\t </div>\n\t </div>\n \t</div>"}function o(){firebase.database().ref("/top50Recipes").once("value",function(t){if(t.exists()){var n=t.val().recipesArray,o=n.slice(0,3),a="";e(o).each(function(t,n){var r=o[t],l=r.image,c=r.title,u=r.servings,f="";f=void 0!==r.preparationMinutes?r.preparationMinutes+" m":"unknown";var d=r.id,h=r.sourceUrl?r.sourceUrl:"none",p=(0,s.printStars)(r.spoonacularScore),g="";e(r.analyzedInstructions[0].steps).each(function(t,e){var n=r.analyzedInstructions[0].steps[t].step,i="<li>"+n+"</li>";g.length<300&&(g+=i)}),a+=i(c,u,f,l,d,h,p,g)}),e("#popular-recipes").html(a),(0,s.recipeEventApi)(),e("#see-more-popular").on("click",function(){r(n)})}else console.log("Error with getting top50Ref from Firebase")})}function r(t){var n="";e(t).each(function(e,i){var o=t[e],r=o.sourceUrl?o.sourceUrl:"none",a=o.image,l=o.title,c=o.servings,u=o.aggregateLikes,f="";f=void 0!==o.preparationMinutes?o.preparationMinutes+" m":"unknown";var d=o.id,h=(0,s.printStars)(o.spoonacularScore);n+=(0,s.getCard)(l,c,f,a,r,d,h,u)});var i=document.getElementById("cardsLoadContainer");e(i).css("display","none"),e(".home, #calories-error").css("display","none"),e("#recipe-container").css("display","none"),e("#search-message").css("display","block").html("Popular Recipes"),e(".card-columns").empty(),e(".card-columns").html(n),e(".card-columns").css("display","block"),(0,s.recipeEventApi)()}var s=n(4);n(5);t.exports={printPopular:o}}).call(e,n(1))}]);
//# sourceMappingURL=bundle.js.map