function gtag(){dataLayer.push(arguments)}function dataPopupClosed(e){e&&e.id&&e.reference&&($("#fs_modal .modal-title").text("Please wait..."),$("#fs_modal .modal-body").html("<p>Processing your payment. Please wait...</p>"),$("#fs_modal").modal("show"),$.post("/fs_order_completed",e).done((function(e){"OK"==e.msg?""!=e.nu?($("#fs_modal .modal-title").text("New account created"),$("#fs_modal .modal-body").html("<h5>We just created your new account!</h5><p>Please use this temporary login info and change your password in Settings page:<br/>"+e.nu+'</p><p><button class="btn btn-primary">CONTINUE</button></p>'),$("#fs_modal .modal-body button").click((function(){window.location="/chrome"}))):window.location="/prospects":"ERROR"==e.msg&&($("#fs_modal .modal-title").text("Error"),$("#fs_modal .modal-body").html("<h5>Error</h5><p>"+e.error+'</p><p><button class="btn btn-primary">OK</button></p>'),$("#fs_modal .modal-body button").click((function(){$("#fs_modal").modal("hide")})))})))}function switchPayment(e,t){let i=document.querySelectorAll(".slider-plans");var n,s,a;for(s=document.getElementsByClassName("tabcontent"),n=0;n<s.length;n++)s[n].style.display="none";for(a=document.getElementsByClassName("tablinks"),n=0;n<a.length;n++)a[n].className=a[n].className.replace(" active","");if(e.currentTarget.className+=" active","Annual"==t){document.getElementById("yearly-plans-tab").classList.remove("d-none"),document.getElementById("monthly-plans-tab").classList.add("d-none");let e=document.querySelectorAll(".display-monthly-price"),t=document.querySelectorAll(".monthly-plans-form"),n=document.querySelectorAll(".yearly-plans-form");console.log(t);for(let i=0;i<t.length;i++)t[i].classList.add("d-none"),n[i].classList.remove("d-none"),e[i].classList.remove("d-none");i.forEach((e=>{e.classList.contains("d-none")||e.classList.add("d-none")}))}else{document.getElementById("yearly-plans-tab").classList.add("d-none"),document.getElementById("monthly-plans-tab").classList.remove("d-none");let e=document.querySelectorAll(".monthly-plans-form"),t=document.querySelectorAll(".display-monthly-price"),n=document.querySelectorAll(".yearly-plans-form");for(let i=0;i<e.length;i++)e[i].classList.remove("d-none"),n[i].classList.add("d-none"),t[i].classList.add("d-none");i.forEach((()=>{}))}}!function(e,t){"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,(function(e,t){function i(e){var t=!!e&&"length"in e&&e.length,i=pe.type(e);return"function"!==i&&!pe.isWindow(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function n(e,t,i){if(pe.isFunction(t))return pe.grep(e,(function(e,n){return!!t.call(e,n,e)!==i}));if(t.nodeType)return pe.grep(e,(function(e){return e===t!==i}));if("string"==typeof t){if(Ce.test(t))return pe.filter(t,e,i);t=pe.filter(t,e)}return pe.grep(e,(function(e){return pe.inArray(e,t)>-1!==i}))}function s(e,t){do{e=e[t]}while(e&&1!==e.nodeType);return e}function a(e){var t={};return pe.each(e.match(Ie)||[],(function(e,i){t[i]=!0})),t}function r(){ne.addEventListener?(ne.removeEventListener("DOMContentLoaded",o),e.removeEventListener("load",o)):(ne.detachEvent("onreadystatechange",o),e.detachEvent("onload",o))}function o(){(ne.addEventListener||"load"===e.event.type||"complete"===ne.readyState)&&(r(),pe.ready())}function l(e,t,i){if(void 0===i&&1===e.nodeType){var n="data-"+t.replace(Ne,"-$1").toLowerCase();if("string"==typeof(i=e.getAttribute(n))){try{i="true"===i||"false"!==i&&("null"===i?null:+i+""===i?+i:Le.test(i)?pe.parseJSON(i):i)}catch(e){}pe.data(e,t,i)}else i=void 0}return i}function c(e){var t;for(t in e)if(("data"!==t||!pe.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function h(e,t,i,n){if(Ae(e)){var s,a,r=pe.expando,o=e.nodeType,l=o?pe.cache:e,c=o?e[r]:e[r]&&r;if(c&&l[c]&&(n||l[c].data)||void 0!==i||"string"!=typeof t)return c||(c=o?e[r]=ie.pop()||pe.guid++:r),l[c]||(l[c]=o?{}:{toJSON:pe.noop}),"object"!=typeof t&&"function"!=typeof t||(n?l[c]=pe.extend(l[c],t):l[c].data=pe.extend(l[c].data,t)),a=l[c],n||(a.data||(a.data={}),a=a.data),void 0!==i&&(a[pe.camelCase(t)]=i),"string"==typeof t?null==(s=a[t])&&(s=a[pe.camelCase(t)]):s=a,s}}function u(e,t,i){if(Ae(e)){var n,s,a=e.nodeType,r=a?pe.cache:e,o=a?e[pe.expando]:pe.expando;if(r[o]){if(t&&(n=i?r[o]:r[o].data)){s=(t=pe.isArray(t)?t.concat(pe.map(t,pe.camelCase)):t in n||(t=pe.camelCase(t))in n?[t]:t.split(" ")).length;for(;s--;)delete n[t[s]];if(i?!c(n):!pe.isEmptyObject(n))return}(i||(delete r[o].data,c(r[o])))&&(a?pe.cleanData([e],!0):ue.deleteExpando||r!=r.window?delete r[o]:r[o]=void 0)}}}function d(e,t,i,n){var s,a=1,r=20,o=n?function(){return n.cur()}:function(){return pe.css(e,t,"")},l=o(),c=i&&i[3]||(pe.cssNumber[t]?"":"px"),h=(pe.cssNumber[t]||"px"!==c&&+l)&&Fe.exec(pe.css(e,t));if(h&&h[3]!==c){c=c||h[3],i=i||[],h=+l||1;do{h/=a=a||".5",pe.style(e,t,h+c)}while(a!==(a=o()/l)&&1!==a&&--r)}return i&&(h=+h||+l||0,s=i[1]?h+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=h,n.end=s)),s}function p(e){var t=Xe.split("|"),i=e.createDocumentFragment();if(i.createElement)for(;t.length;)i.createElement(t.pop());return i}function f(e,t){var i,n,s=0,a=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!a)for(a=[],i=e.childNodes||e;null!=(n=i[s]);s++)!t||pe.nodeName(n,t)?a.push(n):pe.merge(a,f(n,t));return void 0===t||t&&pe.nodeName(e,t)?pe.merge([e],a):a}function m(e,t){for(var i,n=0;null!=(i=e[n]);n++)pe._data(i,"globalEval",!t||pe._data(t[n],"globalEval"))}function g(e){Be.test(e.type)&&(e.defaultChecked=e.checked)}function v(e,t,i,n,s){for(var a,r,o,l,c,h,u,d=e.length,v=p(t),b=[],y=0;y<d;y++)if((r=e[y])||0===r)if("object"===pe.type(r))pe.merge(b,r.nodeType?[r]:r);else if(Ge.test(r)){for(l=l||v.appendChild(t.createElement("div")),c=($e.exec(r)||["",""])[1].toLowerCase(),u=Ue[c]||Ue._default,l.innerHTML=u[1]+pe.htmlPrefilter(r)+u[2],a=u[0];a--;)l=l.lastChild;if(!ue.leadingWhitespace&&Ye.test(r)&&b.push(t.createTextNode(Ye.exec(r)[0])),!ue.tbody)for(a=(r="table"!==c||Ke.test(r)?"<table>"!==u[1]||Ke.test(r)?0:l:l.firstChild)&&r.childNodes.length;a--;)pe.nodeName(h=r.childNodes[a],"tbody")&&!h.childNodes.length&&r.removeChild(h);for(pe.merge(b,l.childNodes),l.textContent="";l.firstChild;)l.removeChild(l.firstChild);l=v.lastChild}else b.push(t.createTextNode(r));for(l&&v.removeChild(l),ue.appendChecked||pe.grep(f(b,"input"),g),y=0;r=b[y++];)if(n&&pe.inArray(r,n)>-1)s&&s.push(r);else if(o=pe.contains(r.ownerDocument,r),l=f(v.appendChild(r),"script"),o&&m(l),i)for(a=0;r=l[a++];)Ve.test(r.type||"")&&i.push(r);return l=null,v}function b(){return!0}function y(){return!1}function _(){try{return ne.activeElement}catch(e){}}function w(e,t,i,n,s,a){var r,o;if("object"==typeof t){for(o in"string"!=typeof i&&(n=n||i,i=void 0),t)w(e,o,i,n,t[o],a);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=y;else if(!s)return e;return 1===a&&(r=s,s=function(e){return pe().off(e),r.apply(this,arguments)},s.guid=r.guid||(r.guid=pe.guid++)),e.each((function(){pe.event.add(this,t,s,n,i)}))}function x(e,t){return pe.nodeName(e,"table")&&pe.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function C(e){return e.type=(null!==pe.find.attr(e,"type"))+"/"+e.type,e}function T(e){var t=ot.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function E(e,t){if(1===t.nodeType&&pe.hasData(e)){var i,n,s,a=pe._data(e),r=pe._data(t,a),o=a.events;if(o)for(i in delete r.handle,r.events={},o)for(n=0,s=o[i].length;n<s;n++)pe.event.add(t,i,o[i][n]);r.data&&(r.data=pe.extend({},r.data))}}function S(e,t){var i,n,s;if(1===t.nodeType){if(i=t.nodeName.toLowerCase(),!ue.noCloneEvent&&t[pe.expando]){for(n in(s=pe._data(t)).events)pe.removeEvent(t,n,s.handle);t.removeAttribute(pe.expando)}"script"===i&&t.text!==e.text?(C(t).text=e.text,T(t)):"object"===i?(t.parentNode&&(t.outerHTML=e.outerHTML),ue.html5Clone&&e.innerHTML&&!pe.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===i&&Be.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===i?t.defaultSelected=t.selected=e.defaultSelected:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}}function k(e,t,i,n){t=ae.apply([],t);var s,a,r,o,l,c,h=0,u=e.length,d=u-1,p=t[0],m=pe.isFunction(p);if(m||u>1&&"string"==typeof p&&!ue.checkClone&&rt.test(p))return e.each((function(s){var a=e.eq(s);m&&(t[0]=p.call(this,s,a.html())),k(a,t,i,n)}));if(u&&(s=(c=v(t,e[0].ownerDocument,!1,e,n)).firstChild,1===c.childNodes.length&&(c=s),s||n)){for(r=(o=pe.map(f(c,"script"),C)).length;h<u;h++)a=c,h!==d&&(a=pe.clone(a,!0,!0),r&&pe.merge(o,f(a,"script"))),i.call(e[h],a,h);if(r)for(l=o[o.length-1].ownerDocument,pe.map(o,T),h=0;h<r;h++)a=o[h],Ve.test(a.type||"")&&!pe._data(a,"globalEval")&&pe.contains(l,a)&&(a.src?pe._evalUrl&&pe._evalUrl(a.src):pe.globalEval((a.text||a.textContent||a.innerHTML||"").replace(lt,"")));c=s=null}return e}function D(e,t,i){for(var n,s=t?pe.filter(t,e):e,a=0;null!=(n=s[a]);a++)i||1!==n.nodeType||pe.cleanData(f(n)),n.parentNode&&(i&&pe.contains(n.ownerDocument,n)&&m(f(n,"script")),n.parentNode.removeChild(n));return e}function P(e,t){var i=pe(t.createElement(e)).appendTo(t.body),n=pe.css(i[0],"display");return i.detach(),n}function I(e){var t=ne,i=ut[e];return i||("none"!==(i=P(e,t))&&i||((t=((ht=(ht||pe("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement))[0].contentWindow||ht[0].contentDocument).document).write(),t.close(),i=P(e,t),ht.detach()),ut[e]=i),i}function M(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}function A(e){if(e in St)return e;for(var t=e.charAt(0).toUpperCase()+e.slice(1),i=Et.length;i--;)if((e=Et[i]+t)in St)return e}function L(e,t){for(var i,n,s,a=[],r=0,o=e.length;r<o;r++)(n=e[r]).style&&(a[r]=pe._data(n,"olddisplay"),i=n.style.display,t?(a[r]||"none"!==i||(n.style.display=""),""===n.style.display&&je(n)&&(a[r]=pe._data(n,"olddisplay",I(n.nodeName)))):(s=je(n),(i&&"none"!==i||!s)&&pe._data(n,"olddisplay",s?i:pe.css(n,"display"))));for(r=0;r<o;r++)(n=e[r]).style&&(t&&"none"!==n.style.display&&""!==n.style.display||(n.style.display=t?a[r]||"":"none"));return e}function N(e,t,i){var n=xt.exec(t);return n?Math.max(0,n[1]-(i||0))+(n[2]||"px"):t}function O(e,t,i,n,s){for(var a=i===(n?"border":"content")?4:"width"===t?1:0,r=0;a<4;a+=2)"margin"===i&&(r+=pe.css(e,i+qe[a],!0,s)),n?("content"===i&&(r-=pe.css(e,"padding"+qe[a],!0,s)),"margin"!==i&&(r-=pe.css(e,"border"+qe[a]+"Width",!0,s))):(r+=pe.css(e,"padding"+qe[a],!0,s),"padding"!==i&&(r+=pe.css(e,"border"+qe[a]+"Width",!0,s)));return r}function R(e,t,i){var n=!0,s="width"===t?e.offsetWidth:e.offsetHeight,a=gt(e),r=ue.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,a);if(s<=0||null==s){if(((s=vt(e,t,a))<0||null==s)&&(s=e.style[t]),pt.test(s))return s;n=r&&(ue.boxSizingReliable()||s===e.style[t]),s=parseFloat(s)||0}return s+O(e,t,i||(r?"border":"content"),n,a)+"px"}function z(e,t,i,n,s){return new z.prototype.init(e,t,i,n,s)}function H(){return e.setTimeout((function(){kt=void 0})),kt=pe.now()}function F(e,t){var i,n={height:e},s=0;for(t=t?1:0;s<4;s+=2-t)n["margin"+(i=qe[s])]=n["padding"+i]=e;return t&&(n.opacity=n.width=e),n}function q(e,t,i){for(var n,s=(B.tweeners[t]||[]).concat(B.tweeners["*"]),a=0,r=s.length;a<r;a++)if(n=s[a].call(i,t,e))return n}function j(e,t,i){var n,s,a,r,o,l,c,h=this,u={},d=e.style,p=e.nodeType&&je(e),f=pe._data(e,"fxshow");for(n in i.queue||(null==(o=pe._queueHooks(e,"fx")).unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,h.always((function(){h.always((function(){o.unqueued--,pe.queue(e,"fx").length||o.empty.fire()}))}))),1===e.nodeType&&("height"in t||"width"in t)&&(i.overflow=[d.overflow,d.overflowX,d.overflowY],"inline"===("none"===(c=pe.css(e,"display"))?pe._data(e,"olddisplay")||I(e.nodeName):c)&&"none"===pe.css(e,"float")&&(ue.inlineBlockNeedsLayout&&"inline"!==I(e.nodeName)?d.zoom=1:d.display="inline-block")),i.overflow&&(d.overflow="hidden",ue.shrinkWrapBlocks()||h.always((function(){d.overflow=i.overflow[0],d.overflowX=i.overflow[1],d.overflowY=i.overflow[2]}))),t)if(s=t[n],Pt.exec(s)){if(delete t[n],a=a||"toggle"===s,s===(p?"hide":"show")){if("show"!==s||!f||void 0===f[n])continue;p=!0}u[n]=f&&f[n]||pe.style(e,n)}else c=void 0;if(pe.isEmptyObject(u))"inline"===("none"===c?I(e.nodeName):c)&&(d.display=c);else for(n in f?"hidden"in f&&(p=f.hidden):f=pe._data(e,"fxshow",{}),a&&(f.hidden=!p),p?pe(e).show():h.done((function(){pe(e).hide()})),h.done((function(){var t;for(t in pe._removeData(e,"fxshow"),u)pe.style(e,t,u[t])})),u)r=q(p?f[n]:0,n,h),n in f||(f[n]=r.start,p&&(r.end=r.start,r.start="width"===n||"height"===n?1:0))}function W(e,t){var i,n,s,a,r;for(i in e)if(s=t[n=pe.camelCase(i)],a=e[i],pe.isArray(a)&&(s=a[1],a=e[i]=a[0]),i!==n&&(e[n]=a,delete e[i]),(r=pe.cssHooks[n])&&"expand"in r)for(i in a=r.expand(a),delete e[n],a)i in e||(e[i]=a[i],t[i]=s);else t[n]=s}function B(e,t,i){var n,s,a=0,r=B.prefilters.length,o=pe.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=kt||H(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),a=0,r=c.tweens.length;a<r;a++)c.tweens[a].run(n);return o.notifyWith(e,[c,n,i]),n<1&&r?i:(o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:pe.extend({},t),opts:pe.extend(!0,{specialEasing:{},easing:pe.easing._default},i),originalProperties:t,originalOptions:i,startTime:kt||H(),duration:i.duration,tweens:[],createTween:function(t,i){var n=pe.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),h=c.props;for(W(h,c.opts.specialEasing);a<r;a++)if(n=B.prefilters[a].call(c,e,h,c.opts))return pe.isFunction(n.stop)&&(pe._queueHooks(c.elem,c.opts.queue).stop=pe.proxy(n.stop,n)),n;return pe.map(h,q,c),pe.isFunction(c.opts.start)&&c.opts.start.call(e,c),pe.fx.timer(pe.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function $(e){return pe.attr(e,"class")||""}function V(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,a=t.toLowerCase().match(Ie)||[];if(pe.isFunction(i))for(;n=a[s++];)"+"===n.charAt(0)?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Y(e,t,i,n){function s(o){var l;return a[o]=!0,pe.each(e[o]||[],(function(e,o){var c=o(t,i,n);return"string"!=typeof c||r||a[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}var a={},r=e===ei;return s(t.dataTypes[0])||!a["*"]&&s("*")}function X(e,t){var i,n,s=pe.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((s[n]?e:i||(i={}))[n]=t[n]);return i&&pe.extend(!0,e,i),e}function U(e,t,i){for(var n,s,a,r,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===s&&(s=e.mimeType||t.getResponseHeader("Content-Type"));if(s)for(r in o)if(o[r]&&o[r].test(s)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}n||(n=r)}a=a||n}if(a)return a!==l[0]&&l.unshift(a),i[a]}function G(e,t,i,n){var s,a,r,o,l,c={},h=e.dataTypes.slice();if(h[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(a=h.shift();a;)if(e.responseFields[a]&&(i[e.responseFields[a]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=h.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(r=c[l+" "+a]||c["* "+a]))for(s in c)if((o=s.split(" "))[1]===a&&(r=c[l+" "+o[0]]||c["* "+o[0]])){!0===r?r=c[s]:!0!==c[s]&&(a=o[0],h.unshift(o[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}function K(e){return e.style&&e.style.display||pe.css(e,"display")}function Q(e){if(!pe.contains(e.ownerDocument||ne,e))return!0;for(;e&&1===e.nodeType;){if("none"===K(e)||"hidden"===e.type)return!0;e=e.parentNode}return!1}function J(e,t,i,n){var s;if(pe.isArray(t))pe.each(t,(function(t,s){i||ai.test(e)?n(e,s):J(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,i,n)}));else if(i||"object"!==pe.type(t))n(e,t);else for(s in t)J(e+"["+s+"]",t[s],i,n)}function Z(){try{return new e.XMLHttpRequest}catch(e){}}function ee(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function te(e){return pe.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}var ie=[],ne=e.document,se=ie.slice,ae=ie.concat,re=ie.push,oe=ie.indexOf,le={},ce=le.toString,he=le.hasOwnProperty,ue={},de="1.12.4",pe=function(e,t){return new pe.fn.init(e,t)},fe=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,me=/^-ms-/,ge=/-([\da-z])/gi,ve=function(e,t){return t.toUpperCase()};pe.fn=pe.prototype={jquery:de,constructor:pe,selector:"",length:0,toArray:function(){return se.call(this)},get:function(e){return null!=e?e<0?this[e+this.length]:this[e]:se.call(this)},pushStack:function(e){var t=pe.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e){return pe.each(this,e)},map:function(e){return this.pushStack(pe.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(se.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:re,sort:ie.sort,splice:ie.splice},pe.extend=pe.fn.extend=function(){var e,t,i,n,s,a,r=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[o]||{},o++),"object"==typeof r||pe.isFunction(r)||(r={}),o===l&&(r=this,o--);o<l;o++)if(null!=(s=arguments[o]))for(n in s)e=r[n],r!==(i=s[n])&&(c&&i&&(pe.isPlainObject(i)||(t=pe.isArray(i)))?(t?(t=!1,a=e&&pe.isArray(e)?e:[]):a=e&&pe.isPlainObject(e)?e:{},r[n]=pe.extend(c,a,i)):void 0!==i&&(r[n]=i));return r},pe.extend({expando:"jQuery"+(de+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===pe.type(e)},isArray:Array.isArray||function(e){return"array"===pe.type(e)},isWindow:function(e){return null!=e&&e==e.window},isNumeric:function(e){var t=e&&e.toString();return!pe.isArray(e)&&t-parseFloat(t)+1>=0},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},isPlainObject:function(e){var t;if(!e||"object"!==pe.type(e)||e.nodeType||pe.isWindow(e))return!1;try{if(e.constructor&&!he.call(e,"constructor")&&!he.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(e){return!1}if(!ue.ownFirst)for(t in e)return he.call(e,t);for(t in e);return void 0===t||he.call(e,t)},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?le[ce.call(e)]||"object":typeof e},globalEval:function(t){t&&pe.trim(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(me,"ms-").replace(ge,ve)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,s=0;if(i(e))for(n=e.length;s<n&&!1!==t.call(e[s],s,e[s]);s++);else for(s in e)if(!1===t.call(e[s],s,e[s]))break;return e},trim:function(e){return null==e?"":(e+"").replace(fe,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(i(Object(e))?pe.merge(n,"string"==typeof e?[e]:e):re.call(n,e)),n},inArray:function(e,t,i){var n;if(t){if(oe)return oe.call(t,e,i);for(n=t.length,i=i?i<0?Math.max(0,n+i):i:0;i<n;i++)if(i in t&&t[i]===e)return i}return-1},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;)e[s++]=t[n++];if(i!=i)for(;void 0!==t[n];)e[s++]=t[n++];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,a=e.length,r=!i;s<a;s++)!t(e[s],s)!==r&&n.push(e[s]);return n},map:function(e,t,n){var s,a,r=0,o=[];if(i(e))for(s=e.length;r<s;r++)null!=(a=t(e[r],r,n))&&o.push(a);else for(r in e)null!=(a=t(e[r],r,n))&&o.push(a);return ae.apply([],o)},guid:1,proxy:function(e,t){var i,n,s;if("string"==typeof t&&(s=e[t],t=e,e=s),pe.isFunction(e))return i=se.call(arguments,2),n=function(){return e.apply(t||this,i.concat(se.call(arguments)))},n.guid=e.guid=e.guid||pe.guid++,n},now:function(){return+new Date},support:ue}),"function"==typeof Symbol&&(pe.fn[Symbol.iterator]=ie[Symbol.iterator]),pe.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){le["[object "+t+"]"]=t.toLowerCase()}));var be=function(e){function t(e,t,i,n){var s,a,r,o,l,c,u,p,f=t&&t.ownerDocument,m=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==m&&9!==m&&11!==m)return i;if(!n&&((t?t.ownerDocument||t:q)!==A&&M(t),t=t||A,N)){if(11!==m&&(c=ve.exec(e)))if(s=c[1]){if(9===m){if(!(r=t.getElementById(s)))return i;if(r.id===s)return i.push(r),i}else if(f&&(r=f.getElementById(s))&&H(t,r)&&r.id===s)return i.push(r),i}else{if(c[2])return J.apply(i,t.getElementsByTagName(e)),i;if((s=c[3])&&w.getElementsByClassName&&t.getElementsByClassName)return J.apply(i,t.getElementsByClassName(s)),i}if(w.qsa&&!V[e+" "]&&(!O||!O.test(e))){if(1!==m)f=t,p=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(ye,"\\$&"):t.setAttribute("id",o=F),a=(u=E(e)).length,l=de.test(o)?"#"+o:"[id='"+o+"']";a--;)u[a]=l+" "+d(u[a]);p=u.join(","),f=be.test(e)&&h(t.parentNode)||t}if(p)try{return J.apply(i,f.querySelectorAll(p)),i}catch(e){}finally{o===F&&t.removeAttribute("id")}}}return k(e.replace(oe,"$1"),t,i,n)}function i(){function e(i,n){return t.push(i+" ")>x.cacheLength&&delete e[t.shift()],e[i+" "]=n}var t=[];return e}function n(e){return e[F]=!0,e}function s(e){var t=A.createElement("div");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var i=e.split("|"),n=i.length;n--;)x.attrHandle[i[n]]=t}function r(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||X)-(~e.sourceIndex||X);if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function o(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function l(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function c(e){return n((function(t){return t=+t,n((function(i,n){for(var s,a=e([],i.length,t),r=a.length;r--;)i[s=a[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function h(e){return e&&void 0!==e.getElementsByTagName&&e}function u(){}function d(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function p(e,t,i){var n=t.dir,s=i&&"parentNode"===n,a=W++;return t.first?function(t,i,a){for(;t=t[n];)if(1===t.nodeType||s)return e(t,i,a)}:function(t,i,r){var o,l,c,h=[j,a];if(r){for(;t=t[n];)if((1===t.nodeType||s)&&e(t,i,r))return!0}else for(;t=t[n];)if(1===t.nodeType||s){if((o=(l=(c=t[F]||(t[F]={}))[t.uniqueID]||(c[t.uniqueID]={}))[n])&&o[0]===j&&o[1]===a)return h[2]=o[2];if(l[n]=h,h[2]=e(t,i,r))return!0}}}function f(e){return e.length>1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function m(e,i,n){for(var s=0,a=i.length;s<a;s++)t(e,i[s],n);return n}function g(e,t,i,n,s){for(var a,r=[],o=0,l=e.length,c=null!=t;o<l;o++)(a=e[o])&&(i&&!i(a,n,s)||(r.push(a),c&&t.push(o)));return r}function v(e,t,i,s,a,r){return s&&!s[F]&&(s=v(s)),a&&!a[F]&&(a=v(a,r)),n((function(n,r,o,l){var c,h,u,d=[],p=[],f=r.length,v=n||m(t||"*",o.nodeType?[o]:o,[]),b=!e||!n&&t?v:g(v,d,e,o,l),y=i?a||(n?e:f||s)?[]:r:b;if(i&&i(b,y,o,l),s)for(c=g(y,p),s(c,[],o,l),h=c.length;h--;)(u=c[h])&&(y[p[h]]=!(b[p[h]]=u));if(n){if(a||e){if(a){for(c=[],h=y.length;h--;)(u=y[h])&&c.push(b[h]=u);a(null,y=[],c,l)}for(h=y.length;h--;)(u=y[h])&&(c=a?ee(n,u):d[h])>-1&&(n[c]=!(r[c]=u))}}else y=g(y===r?y.splice(f,y.length):y),a?a(null,r,y,l):J.apply(r,y)}))}function b(e){for(var t,i,n,s=e.length,a=x.relative[e[0].type],r=a||x.relative[" "],o=a?1:0,l=p((function(e){return e===t}),r,!0),c=p((function(e){return ee(t,e)>-1}),r,!0),h=[function(e,i,n){var s=!a&&(n||i!==D)||((t=i).nodeType?l(e,i,n):c(e,i,n));return t=null,s}];o<s;o++)if(i=x.relative[e[o].type])h=[p(f(h),i)];else{if((i=x.filter[e[o].type].apply(null,e[o].matches))[F]){for(n=++o;n<s&&!x.relative[e[n].type];n++);return v(o>1&&f(h),o>1&&d(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(oe,"$1"),i,o<n&&b(e.slice(o,n)),n<s&&b(e=e.slice(n)),n<s&&d(e))}h.push(i)}return f(h)}function y(e,i){var s=i.length>0,a=e.length>0,r=function(n,r,o,l,c){var h,u,d,p=0,f="0",m=n&&[],v=[],b=D,y=n||a&&x.find.TAG("*",c),_=j+=null==b?1:Math.random()||.1,w=y.length;for(c&&(D=r===A||r||c);f!==w&&null!=(h=y[f]);f++){if(a&&h){for(u=0,r||h.ownerDocument===A||(M(h),o=!N);d=e[u++];)if(d(h,r||A,o)){l.push(h);break}c&&(j=_)}s&&((h=!d&&h)&&p--,n&&m.push(h))}if(p+=f,s&&f!==p){for(u=0;d=i[u++];)d(m,v,r,o);if(n){if(p>0)for(;f--;)m[f]||v[f]||(v[f]=K.call(l));v=g(v)}J.apply(l,v),c&&!n&&v.length>0&&p+i.length>1&&t.uniqueSort(l)}return c&&(j=_,D=b),m};return s?n(r):r}var _,w,x,C,T,E,S,k,D,P,I,M,A,L,N,O,R,z,H,F="sizzle"+1*new Date,q=e.document,j=0,W=0,B=i(),$=i(),V=i(),Y=function(e,t){return e===t&&(I=!0),0},X=1<<31,U={}.hasOwnProperty,G=[],K=G.pop,Q=G.push,J=G.push,Z=G.slice,ee=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ie="[\\x20\\t\\r\\n\\f]",ne="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",se="\\["+ie+"*("+ne+")(?:"+ie+"*([*^$|!~]?=)"+ie+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+ne+"))|)"+ie+"*\\]",ae=":("+ne+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+se+")*)|.*)\\)|)",re=new RegExp(ie+"+","g"),oe=new RegExp("^"+ie+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ie+"+$","g"),le=new RegExp("^"+ie+"*,"+ie+"*"),ce=new RegExp("^"+ie+"*([>+~]|"+ie+")"+ie+"*"),he=new RegExp("="+ie+"*([^\\]'\"]*?)"+ie+"*\\]","g"),ue=new RegExp(ae),de=new RegExp("^"+ne+"$"),pe={ID:new RegExp("^#("+ne+")"),CLASS:new RegExp("^\\.("+ne+")"),TAG:new RegExp("^("+ne+"|[*])"),ATTR:new RegExp("^"+se),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ie+"*(even|odd|(([+-]|)(\\d*)n|)"+ie+"*(?:([+-]|)"+ie+"*(\\d+)|))"+ie+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ie+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ie+"*((?:-\\d)?\\d*)"+ie+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,ve=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,be=/[+~]/,ye=/'|\\/g,_e=new RegExp("\\\\([\\da-f]{1,6}"+ie+"?|("+ie+")|.)","ig"),we=function(e,t,i){var n="0x"+t-65536;return n!=n||i?t:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},xe=function(){M()};try{J.apply(G=Z.call(q.childNodes),q.childNodes),G[q.childNodes.length].nodeType}catch(e){J={apply:G.length?function(e,t){Q.apply(e,Z.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}for(_ in w=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},M=t.setDocument=function(e){var t,i,n=e?e.ownerDocument||e:q;return n!==A&&9===n.nodeType&&n.documentElement?(L=(A=n).documentElement,N=!T(A),(i=A.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",xe,!1):i.attachEvent&&i.attachEvent("onunload",xe)),w.attributes=s((function(e){return e.className="i",!e.getAttribute("className")})),w.getElementsByTagName=s((function(e){return e.appendChild(A.createComment("")),!e.getElementsByTagName("*").length})),w.getElementsByClassName=ge.test(A.getElementsByClassName),w.getById=s((function(e){return L.appendChild(e).id=F,!A.getElementsByName||!A.getElementsByName(F).length})),w.getById?(x.find.ID=function(e,t){if(void 0!==t.getElementById&&N){var i=t.getElementById(e);return i?[i]:[]}},x.filter.ID=function(e){var t=e.replace(_e,we);return function(e){return e.getAttribute("id")===t}}):(delete x.find.ID,x.filter.ID=function(e){var t=e.replace(_e,we);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}}),x.find.TAG=w.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):w.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,a=t.getElementsByTagName(e);if("*"===e){for(;i=a[s++];)1===i.nodeType&&n.push(i);return n}return a},x.find.CLASS=w.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&N)return t.getElementsByClassName(e)},R=[],O=[],(w.qsa=ge.test(A.querySelectorAll))&&(s((function(e){L.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&O.push("[*^$]="+ie+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||O.push("\\["+ie+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||O.push("~="),e.querySelectorAll(":checked").length||O.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||O.push(".#.+[+~]")})),s((function(e){var t=A.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&O.push("name"+ie+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||O.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),O.push(",.*:")}))),(w.matchesSelector=ge.test(z=L.matches||L.webkitMatchesSelector||L.mozMatchesSelector||L.oMatchesSelector||L.msMatchesSelector))&&s((function(e){w.disconnectedMatch=z.call(e,"div"),z.call(e,"[s!='']:x"),R.push("!=",ae)})),O=O.length&&new RegExp(O.join("|")),R=R.length&&new RegExp(R.join("|")),t=ge.test(L.compareDocumentPosition),H=t||ge.test(L.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},Y=t?function(e,t){if(e===t)return I=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!w.sortDetached&&t.compareDocumentPosition(e)===i?e===A||e.ownerDocument===q&&H(q,e)?-1:t===A||t.ownerDocument===q&&H(q,t)?1:P?ee(P,e)-ee(P,t):0:4&i?-1:1)}:function(e,t){if(e===t)return I=!0,0;var i,n=0,s=e.parentNode,a=t.parentNode,o=[e],l=[t];if(!s||!a)return e===A?-1:t===A?1:s?-1:a?1:P?ee(P,e)-ee(P,t):0;if(s===a)return r(e,t);for(i=e;i=i.parentNode;)o.unshift(i);for(i=t;i=i.parentNode;)l.unshift(i);for(;o[n]===l[n];)n++;return n?r(o[n],l[n]):o[n]===q?-1:l[n]===q?1:0},A):A},t.matches=function(e,i){return t(e,null,null,i)},t.matchesSelector=function(e,i){if((e.ownerDocument||e)!==A&&M(e),i=i.replace(he,"='$1']"),w.matchesSelector&&N&&!V[i+" "]&&(!R||!R.test(i))&&(!O||!O.test(i)))try{var n=z.call(e,i);if(n||w.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){}return t(i,A,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==A&&M(e),H(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==A&&M(e);var i=x.attrHandle[t.toLowerCase()],n=i&&U.call(x.attrHandle,t.toLowerCase())?i(e,t,!N):void 0;return void 0!==n?n:w.attributes||!N?e.getAttribute(t):(n=e.getAttributeNode(t))&&n.specified?n.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,i=[],n=0,s=0;if(I=!w.detectDuplicates,P=!w.sortStable&&e.slice(0),e.sort(Y),I){for(;t=e[s++];)t===e[s]&&(n=i.push(s));for(;n--;)e.splice(i[n],1)}return P=null,e},C=t.getText=function(e){var t,i="",n=0,s=e.nodeType;if(s){if(1===s||9===s||11===s){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=C(e)}else if(3===s||4===s)return e.nodeValue}else for(;t=e[n++];)i+=C(t);return i},x=t.selectors={cacheLength:50,createPseudo:n,match:pe,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(_e,we),e[3]=(e[3]||e[4]||e[5]||"").replace(_e,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},
PSEUDO:function(e){var t,i=!e[6]&&e[2];return pe.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&ue.test(i)&&(t=E(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(_e,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+ie+")"+e+"("+ie+"|$)"))&&B(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,i,n){return function(s){var a=t.attr(s,e);return null==a?"!="===i:!i||(a+="","="===i?a===n:"!="===i?a!==n:"^="===i?n&&0===a.indexOf(n):"*="===i?n&&a.indexOf(n)>-1:"$="===i?n&&a.slice(-n.length)===n:"~="===i?(" "+a.replace(re," ")+" ").indexOf(n)>-1:"|="===i&&(a===n||a.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,i,n,s){var a="nth"!==e.slice(0,3),r="last"!==e.slice(-4),o="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var c,h,u,d,p,f,m=a!==r?"nextSibling":"previousSibling",g=t.parentNode,v=o&&t.nodeName.toLowerCase(),b=!l&&!o,y=!1;if(g){if(a){for(;m;){for(d=t;d=d[m];)if(o?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&b){for(y=(p=(c=(h=(u=(d=g)[F]||(d[F]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===j&&c[1])&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(y=p=0)||f.pop();)if(1===d.nodeType&&++y&&d===t){h[e]=[j,p,y];break}}else if(b&&(y=p=(c=(h=(u=(d=t)[F]||(d[F]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]||[])[0]===j&&c[1]),!1===y)for(;(d=++p&&d&&d[m]||(y=p=0)||f.pop())&&((o?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++y||(b&&((h=(u=d[F]||(d[F]={}))[d.uniqueID]||(u[d.uniqueID]={}))[e]=[j,y]),d!==t)););return(y-=s)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,i){var s,a=x.pseudos[e]||x.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[F]?a(i):a.length>1?(s=[e,e,"",i],x.setFilters.hasOwnProperty(e.toLowerCase())?n((function(e,t){for(var n,s=a(e,i),r=s.length;r--;)e[n=ee(e,s[r])]=!(t[n]=s[r])})):function(e){return a(e,0,s)}):a}},pseudos:{not:n((function(e){var t=[],i=[],s=S(e.replace(oe,"$1"));return s[F]?n((function(e,t,i,n){for(var a,r=s(e,null,n,[]),o=e.length;o--;)(a=r[o])&&(e[o]=!(t[o]=a))})):function(e,n,a){return t[0]=e,s(t,null,a,i),t[0]=null,!i.pop()}})),has:n((function(e){return function(i){return t(e,i).length>0}})),contains:n((function(e){return e=e.replace(_e,we),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}})),lang:n((function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(_e,we).toLowerCase(),function(t){var i;do{if(i=N?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===L},focus:function(e){return e===A.activeElement&&(!A.hasFocus||A.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return!1===e.disabled},disabled:function(e){return!0===e.disabled},checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!x.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:c((function(){return[0]})),last:c((function(e,t){return[t-1]})),eq:c((function(e,t,i){return[i<0?i+t:i]})),even:c((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:c((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:c((function(e,t,i){for(var n=i<0?i+t:i;--n>=0;)e.push(n);return e})),gt:c((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},x.pseudos.nth=x.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})x.pseudos[_]=o(_);for(_ in{submit:!0,reset:!0})x.pseudos[_]=l(_);return u.prototype=x.filters=x.pseudos,x.setFilters=new u,E=t.tokenize=function(e,i){var n,s,a,r,o,l,c,h=$[e+" "];if(h)return i?0:h.slice(0);for(o=e,l=[],c=x.preFilter;o;){for(r in n&&!(s=le.exec(o))||(s&&(o=o.slice(s[0].length)||o),l.push(a=[])),n=!1,(s=ce.exec(o))&&(n=s.shift(),a.push({value:n,type:s[0].replace(oe," ")}),o=o.slice(n.length)),x.filter)!(s=pe[r].exec(o))||c[r]&&!(s=c[r](s))||(n=s.shift(),a.push({value:n,type:r,matches:s}),o=o.slice(n.length));if(!n)break}return i?o.length:o?t.error(e):$(e,l).slice(0)},S=t.compile=function(e,t){var i,n=[],s=[],a=V[e+" "];if(!a){for(t||(t=E(e)),i=t.length;i--;)(a=b(t[i]))[F]?n.push(a):s.push(a);(a=V(e,y(s,n))).selector=e}return a},k=t.select=function(e,t,i,n){var s,a,r,o,l,c="function"==typeof e&&e,u=!n&&E(e=c.selector||e);if(i=i||[],1===u.length){if((a=u[0]=u[0].slice(0)).length>2&&"ID"===(r=a[0]).type&&w.getById&&9===t.nodeType&&N&&x.relative[a[1].type]){if(!(t=(x.find.ID(r.matches[0].replace(_e,we),t)||[])[0]))return i;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(s=pe.needsContext.test(e)?0:a.length;s--&&(r=a[s],!x.relative[o=r.type]);)if((l=x.find[o])&&(n=l(r.matches[0].replace(_e,we),be.test(a[0].type)&&h(t.parentNode)||t))){if(a.splice(s,1),!(e=n.length&&d(a)))return J.apply(i,n),i;break}}return(c||S(e,u))(n,t,!N,i,!t||be.test(e)&&h(t.parentNode)||t),i},w.sortStable=F.split("").sort(Y).join("")===F,w.detectDuplicates=!!I,M(),w.sortDetached=s((function(e){return 1&e.compareDocumentPosition(A.createElement("div"))})),s((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||a("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),w.attributes&&s((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||a("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),s((function(e){return null==e.getAttribute("disabled")}))||a(te,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),t}(e);pe.find=be,pe.expr=be.selectors,pe.expr[":"]=pe.expr.pseudos,pe.uniqueSort=pe.unique=be.uniqueSort,pe.text=be.getText,pe.isXMLDoc=be.isXML,pe.contains=be.contains;var ye=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&pe(e).is(i))break;n.push(e)}return n},_e=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},we=pe.expr.match.needsContext,xe=/^<([\w-]+)\s*\/?>(?:<\/\1>|)$/,Ce=/^.[^:#\[\.,]*$/;pe.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?pe.find.matchesSelector(n,e)?[n]:[]:pe.find.matches(e,pe.grep(t,(function(e){return 1===e.nodeType})))},pe.fn.extend({find:function(e){var t,i=[],n=this,s=n.length;if("string"!=typeof e)return this.pushStack(pe(e).filter((function(){for(t=0;t<s;t++)if(pe.contains(n[t],this))return!0})));for(t=0;t<s;t++)pe.find(e,n[t],i);return(i=this.pushStack(s>1?pe.unique(i):i)).selector=this.selector?this.selector+" "+e:e,i},filter:function(e){return this.pushStack(n(this,e||[],!1))},not:function(e){return this.pushStack(n(this,e||[],!0))},is:function(e){return!!n(this,"string"==typeof e&&we.test(e)?pe(e):e||[],!1).length}});var Te,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/;(pe.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||Te,"string"==typeof e){if(!(n="<"===e.charAt(0)&&">"===e.charAt(e.length-1)&&e.length>=3?[null,e,null]:Ee.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof pe?t[0]:t,pe.merge(this,pe.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:ne,!0)),xe.test(n[1])&&pe.isPlainObject(t))for(n in t)pe.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}if((s=ne.getElementById(n[2]))&&s.parentNode){if(s.id!==n[2])return Te.find(e);this.length=1,this[0]=s}return this.context=ne,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):pe.isFunction(e)?void 0!==i.ready?i.ready(e):e(pe):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),pe.makeArray(e,this))}).prototype=pe.fn,Te=pe(ne);var Se=/^(?:parents|prev(?:Until|All))/,ke={children:!0,contents:!0,next:!0,prev:!0};pe.fn.extend({has:function(e){var t,i=pe(e,this),n=i.length;return this.filter((function(){for(t=0;t<n;t++)if(pe.contains(this,i[t]))return!0}))},closest:function(e,t){for(var i,n=0,s=this.length,a=[],r=we.test(e)||"string"!=typeof e?pe(e,t||this.context):0;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&pe.find.matchesSelector(i,e))){a.push(i);break}return this.pushStack(a.length>1?pe.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?pe.inArray(this[0],pe(e)):pe.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(pe.uniqueSort(pe.merge(this.get(),pe(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),pe.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ye(e,"parentNode")},parentsUntil:function(e,t,i){return ye(e,"parentNode",i)},next:function(e){return s(e,"nextSibling")},prev:function(e){return s(e,"previousSibling")},nextAll:function(e){return ye(e,"nextSibling")},prevAll:function(e){return ye(e,"previousSibling")},nextUntil:function(e,t,i){return ye(e,"nextSibling",i)},prevUntil:function(e,t,i){return ye(e,"previousSibling",i)},siblings:function(e){return _e((e.parentNode||{}).firstChild,e)},children:function(e){return _e(e.firstChild)},contents:function(e){return pe.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:pe.merge([],e.childNodes)}},(function(e,t){pe.fn[e]=function(i,n){var s=pe.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=pe.filter(n,s)),this.length>1&&(ke[e]||(s=pe.uniqueSort(s)),Se.test(e)&&(s=s.reverse())),this.pushStack(s)}}));var De,Pe,Ie=/\S+/g;for(Pe in pe.Callbacks=function(e){e="string"==typeof e?a(e):pe.extend({},e);var t,i,n,s,r=[],o=[],l=-1,c=function(){for(s=e.once,n=t=!0;o.length;l=-1)for(i=o.shift();++l<r.length;)!1===r[l].apply(i[0],i[1])&&e.stopOnFalse&&(l=r.length,i=!1);e.memory||(i=!1),t=!1,s&&(r=i?[]:"")},h={add:function(){return r&&(i&&!t&&(l=r.length-1,o.push(i)),function t(i){pe.each(i,(function(i,n){pe.isFunction(n)?e.unique&&h.has(n)||r.push(n):n&&n.length&&"string"!==pe.type(n)&&t(n)}))}(arguments),i&&!t&&c()),this},remove:function(){return pe.each(arguments,(function(e,t){for(var i;(i=pe.inArray(t,r,i))>-1;)r.splice(i,1),i<=l&&l--})),this},has:function(e){return e?pe.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return s=o=[],r=i="",this},disabled:function(){return!r},lock:function(){return s=!0,i||h.disable(),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=[e,(i=i||[]).slice?i.slice():i],o.push(i),t||c()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},pe.extend({Deferred:function(e){var t=[["resolve","done",pe.Callbacks("once memory"),"resolved"],["reject","fail",pe.Callbacks("once memory"),"rejected"],["notify","progress",pe.Callbacks("memory")]],i="pending",n={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},then:function(){var e=arguments;return pe.Deferred((function(i){pe.each(t,(function(t,a){var r=pe.isFunction(e[t])&&e[t];s[a[1]]((function(){var e=r&&r.apply(this,arguments);e&&pe.isFunction(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[a[0]+"With"](this===n?i.promise():this,r?[e]:arguments)}))})),e=null})).promise()},promise:function(e){return null!=e?pe.extend(e,n):n}},s={};return n.pipe=n.then,pe.each(t,(function(e,a){var r=a[2],o=a[3];n[a[1]]=r.add,o&&r.add((function(){i=o}),t[1^e][2].disable,t[2][2].lock),s[a[0]]=function(){return s[a[0]+"With"](this===s?n:this,arguments),this},s[a[0]+"With"]=r.fireWith})),n.promise(s),e&&e.call(s,s),s},when:function(e){var t,i,n,s=0,a=se.call(arguments),r=a.length,o=1!==r||e&&pe.isFunction(e.promise)?r:0,l=1===o?e:pe.Deferred(),c=function(e,i,n){return function(s){i[e]=this,n[e]=arguments.length>1?se.call(arguments):s,n===t?l.notifyWith(i,n):--o||l.resolveWith(i,n)}};if(r>1)for(t=new Array(r),i=new Array(r),n=new Array(r);s<r;s++)a[s]&&pe.isFunction(a[s].promise)?a[s].promise().progress(c(s,i,t)).done(c(s,n,a)).fail(l.reject):--o;return o||l.resolveWith(n,a),l.promise()}}),pe.fn.ready=function(e){return pe.ready.promise().done(e),this},pe.extend({isReady:!1,readyWait:1,holdReady:function(e){e?pe.readyWait++:pe.ready(!0)},ready:function(e){(!0===e?--pe.readyWait:pe.isReady)||(pe.isReady=!0,!0!==e&&--pe.readyWait>0||(De.resolveWith(ne,[pe]),pe.fn.triggerHandler&&(pe(ne).triggerHandler("ready"),pe(ne).off("ready"))))}}),pe.ready.promise=function(t){if(!De)if(De=pe.Deferred(),"complete"===ne.readyState||"loading"!==ne.readyState&&!ne.documentElement.doScroll)e.setTimeout(pe.ready);else if(ne.addEventListener)ne.addEventListener("DOMContentLoaded",o),e.addEventListener("load",o);else{ne.attachEvent("onreadystatechange",o),e.attachEvent("onload",o);var i=!1;try{i=null==e.frameElement&&ne.documentElement}catch(e){}i&&i.doScroll&&function t(){if(!pe.isReady){try{i.doScroll("left")}catch(i){return e.setTimeout(t,50)}r(),pe.ready()}}()}return De.promise(t)},pe.ready.promise(),pe(ue))break;ue.ownFirst="0"===Pe,ue.inlineBlockNeedsLayout=!1,pe((function(){var e,t,i,n;(i=ne.getElementsByTagName("body")[0])&&i.style&&(t=ne.createElement("div"),(n=ne.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",i.appendChild(n).appendChild(t),void 0!==t.style.zoom&&(t.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",ue.inlineBlockNeedsLayout=e=3===t.offsetWidth,e&&(i.style.zoom=1)),i.removeChild(n))})),function(){var e=ne.createElement("div");ue.deleteExpando=!0;try{delete e.test}catch(e){ue.deleteExpando=!1}e=null}();var Me,Ae=function(e){var t=pe.noData[(e.nodeName+" ").toLowerCase()],i=+e.nodeType||1;return(1===i||9===i)&&(!t||!0!==t&&e.getAttribute("classid")===t)},Le=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Ne=/([A-Z])/g;pe.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(e){return!!(e=e.nodeType?pe.cache[e[pe.expando]]:e[pe.expando])&&!c(e)},data:function(e,t,i){return h(e,t,i)},removeData:function(e,t){return u(e,t)},_data:function(e,t,i){return h(e,t,i,!0)},_removeData:function(e,t){return u(e,t,!0)}}),pe.fn.extend({data:function(e,t){var i,n,s,a=this[0],r=a&&a.attributes;if(void 0===e){if(this.length&&(s=pe.data(a),1===a.nodeType&&!pe._data(a,"parsedAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&l(a,n=pe.camelCase(n.slice(5)),s[n]);pe._data(a,"parsedAttrs",!0)}return s}return"object"==typeof e?this.each((function(){pe.data(this,e)})):arguments.length>1?this.each((function(){pe.data(this,e,t)})):a?l(a,e,pe.data(a,e)):void 0},removeData:function(e){return this.each((function(){pe.removeData(this,e)}))}}),pe.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=pe._data(e,t),i&&(!n||pe.isArray(i)?n=pe._data(e,t,pe.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=pe.queue(e,t),n=i.length,s=i.shift(),a=pe._queueHooks(e,t),r=function(){pe.dequeue(e,t)};"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete a.stop,s.call(e,r,a)),!n&&a&&a.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return pe._data(e,i)||pe._data(e,i,{empty:pe.Callbacks("once memory").add((function(){pe._removeData(e,t+"queue"),pe._removeData(e,i)}))})}}),pe.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?pe.queue(this[0],e):void 0===t?this:this.each((function(){var i=pe.queue(this,e,t);pe._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&pe.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){pe.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=pe.Deferred(),a=this,r=this.length,o=function(){--n||s.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=pe._data(a[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),s.promise(t)}}),ue.shrinkWrapBlocks=function(){return null!=Me?Me:(Me=!1,(t=ne.getElementsByTagName("body")[0])&&t.style?(e=ne.createElement("div"),(i=ne.createElement("div")).style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",t.appendChild(i).appendChild(e),void 0!==e.style.zoom&&(e.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:1px;width:1px;zoom:1",e.appendChild(ne.createElement("div")).style.width="5px",Me=3!==e.offsetWidth),t.removeChild(i),Me):void 0);var e,t,i};var Oe,Re,ze,He=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,Fe=new RegExp("^(?:([+-])=|)("+He+")([a-z%]*)$","i"),qe=["Top","Right","Bottom","Left"],je=function(e,t){return e=t||e,"none"===pe.css(e,"display")||!pe.contains(e.ownerDocument,e)},We=function(e,t,i,n,s,a,r){var o=0,l=e.length,c=null==i;if("object"===pe.type(i))for(o in s=!0,i)We(e,t,o,i[o],!0,a,r);else if(void 0!==n&&(s=!0,pe.isFunction(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(pe(e),i)})),t))for(;o<l;o++)t(e[o],i,r?n:n.call(e[o],o,t(e[o],i)));return s?e:c?t.call(e):l?t(e[0],i):a},Be=/^(?:checkbox|radio)$/i,$e=/<([\w:-]+)/,Ve=/^$|\/(?:java|ecma)script/i,Ye=/^\s+/,Xe="abbr|article|aside|audio|bdi|canvas|data|datalist|details|dialog|figcaption|figure|footer|header|hgroup|main|mark|meter|nav|output|picture|progress|section|summary|template|time|video";Oe=ne.createElement("div"),Re=ne.createDocumentFragment(),ze=ne.createElement("input"),Oe.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",ue.leadingWhitespace=3===Oe.firstChild.nodeType,ue.tbody=!Oe.getElementsByTagName("tbody").length,ue.htmlSerialize=!!Oe.getElementsByTagName("link").length,ue.html5Clone="<:nav></:nav>"!==ne.createElement("nav").cloneNode(!0).outerHTML,ze.type="checkbox",ze.checked=!0,Re.appendChild(ze),ue.appendChecked=ze.checked,Oe.innerHTML="<textarea>x</textarea>",ue.noCloneChecked=!!Oe.cloneNode(!0).lastChild.defaultValue,Re.appendChild(Oe),(ze=ne.createElement("input")).setAttribute("type","radio"),ze.setAttribute("checked","checked"),ze.setAttribute("name","t"),Oe.appendChild(ze),ue.checkClone=Oe.cloneNode(!0).cloneNode(!0).lastChild.checked,ue.noCloneEvent=!!Oe.addEventListener,Oe[pe.expando]=1,ue.attributes=!Oe.getAttribute(pe.expando);var Ue={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],area:[1,"<map>","</map>"],param:[1,"<object>","</object>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:ue.htmlSerialize?[0,"",""]:[1,"X<div>","</div>"]};Ue.optgroup=Ue.option,Ue.tbody=Ue.tfoot=Ue.colgroup=Ue.caption=Ue.thead,Ue.th=Ue.td;var Ge=/<|&#?\w+;/,Ke=/<tbody/i;!function(){var t,i,n=ne.createElement("div");for(t in{submit:!0,change:!0,focusin:!0})i="on"+t,(ue[t]=i in e)||(n.setAttribute(i,"t"),ue[t]=!1===n.attributes[i].expando);n=null}();var Qe=/^(?:input|select|textarea)$/i,Je=/^key/,Ze=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,et=/^(?:focusinfocus|focusoutblur)$/,tt=/^([^.]*)(?:\.(.+)|)/;pe.event={global:{},add:function(e,t,i,n,s){var a,r,o,l,c,h,u,d,p,f,m,g=pe._data(e);if(g){for(i.handler&&(i=(l=i).handler,s=l.selector),i.guid||(i.guid=pe.guid++),(r=g.events)||(r=g.events={}),(h=g.handle)||(h=g.handle=function(e){return void 0===pe||e&&pe.event.triggered===e.type?void 0:pe.event.dispatch.apply(h.elem,arguments)},h.elem=e),o=(t=(t||"").match(Ie)||[""]).length;o--;)p=m=(a=tt.exec(t[o])||[])[1],f=(a[2]||"").split(".").sort(),p&&(c=pe.event.special[p]||{},p=(s?c.delegateType:c.bindType)||p,c=pe.event.special[p]||{},u=pe.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&pe.expr.match.needsContext.test(s),namespace:f.join(".")},l),(d=r[p])||((d=r[p]=[]).delegateCount=0,c.setup&&!1!==c.setup.call(e,n,f,h)||(e.addEventListener?e.addEventListener(p,h,!1):e.attachEvent&&e.attachEvent("on"+p,h))),c.add&&(c.add.call(e,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),pe.event.global[p]=!0);e=null}},remove:function(e,t,i,n,s){var a,r,o,l,c,h,u,d,p,f,m,g=pe.hasData(e)&&pe._data(e);if(g&&(h=g.events)){for(c=(t=(t||"").match(Ie)||[""]).length;c--;)if(p=m=(o=tt.exec(t[c])||[])[1],f=(o[2]||"").split(".").sort(),p){for(u=pe.event.special[p]||{},d=h[p=(n?u.delegateType:u.bindType)||p]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),l=a=d.length;a--;)r=d[a],!s&&m!==r.origType||i&&i.guid!==r.guid||o&&!o.test(r.namespace)||n&&n!==r.selector&&("**"!==n||!r.selector)||(d.splice(a,1),r.selector&&d.delegateCount--,u.remove&&u.remove.call(e,r));l&&!d.length&&(u.teardown&&!1!==u.teardown.call(e,f,g.handle)||pe.removeEvent(e,p,g.handle),delete h[p])}else for(p in h)pe.event.remove(e,p+t[c],i,n,!0);pe.isEmptyObject(h)&&(delete g.handle,pe._removeData(e,"events"))}},trigger:function(t,i,n,s){var a,r,o,l,c,h,u,d=[n||ne],p=he.call(t,"type")?t.type:t,f=he.call(t,"namespace")?t.namespace.split("."):[];if(o=h=n=n||ne,3!==n.nodeType&&8!==n.nodeType&&!et.test(p+pe.event.triggered)&&(p.indexOf(".")>-1&&(f=p.split("."),p=f.shift(),f.sort()),r=p.indexOf(":")<0&&"on"+p,(t=t[pe.expando]?t:new pe.Event(p,"object"==typeof t&&t)).isTrigger=s?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=n),i=null==i?[t]:pe.makeArray(i,[t]),c=pe.event.special[p]||{},s||!c.trigger||!1!==c.trigger.apply(n,i))){if(!s&&!c.noBubble&&!pe.isWindow(n)){for(l=c.delegateType||p,et.test(l+p)||(o=o.parentNode);o;o=o.parentNode)d.push(o),h=o;h===(n.ownerDocument||ne)&&d.push(h.defaultView||h.parentWindow||e)}for(u=0;(o=d[u++])&&!t.isPropagationStopped();)t.type=u>1?l:c.bindType||p,(a=(pe._data(o,"events")||{})[t.type]&&pe._data(o,"handle"))&&a.apply(o,i),(a=r&&o[r])&&a.apply&&Ae(o)&&(t.result=a.apply(o,i),!1===t.result&&t.preventDefault());if(t.type=p,!s&&!t.isDefaultPrevented()&&(!c._default||!1===c._default.apply(d.pop(),i))&&Ae(n)&&r&&n[p]&&!pe.isWindow(n)){(h=n[r])&&(n[r]=null),pe.event.triggered=p;try{n[p]()}catch(e){}pe.event.triggered=void 0,h&&(n[r]=h)}return t.result}},dispatch:function(e){e=pe.event.fix(e);var t,i,n,s,a,r=[],o=se.call(arguments),l=(pe._data(this,"events")||{})[e.type]||[],c=pe.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,e)){for(r=pe.event.handlers.call(this,e,l),t=0;(s=r[t++])&&!e.isPropagationStopped();)for(e.currentTarget=s.elem,i=0;(a=s.handlers[i++])&&!e.isImmediatePropagationStopped();)e.rnamespace&&!e.rnamespace.test(a.namespace)||(e.handleObj=a,e.data=a.data,void 0!==(n=((pe.event.special[a.origType]||{}).handle||a.handler).apply(s.elem,o))&&!1===(e.result=n)&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var i,n,s,a,r=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!=this;l=l.parentNode||this)if(1===l.nodeType&&(!0!==l.disabled||"click"!==e.type)){for(n=[],i=0;i<o;i++)void 0===n[s=(a=t[i]).selector+" "]&&(n[s]=a.needsContext?pe(s,this).index(l)>-1:pe.find(s,this,null,[l]).length),n[s]&&n.push(a);n.length&&r.push({elem:l,handlers:n})}return o<t.length&&r.push({elem:this,handlers:t.slice(o)}),r},fix:function(e){if(e[pe.expando])return e;var t,i,n,s=e.type,a=e,r=this.fixHooks[s];for(r||(this.fixHooks[s]=r=Ze.test(s)?this.mouseHooks:Je.test(s)?this.keyHooks:{}),n=r.props?this.props.concat(r.props):this.props,e=new pe.Event(a),t=n.length;t--;)e[i=n[t]]=a[i];return e.target||(e.target=a.srcElement||ne),3===e.target.nodeType&&(e.target=e.target.parentNode),e.metaKey=!!e.metaKey,r.filter?r.filter(e,a):e},props:"altKey bubbles cancelable ctrlKey currentTarget detail eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var i,n,s,a=t.button,r=t.fromElement;return null==e.pageX&&null!=t.clientX&&(s=(n=e.target.ownerDocument||ne).documentElement,i=n.body,e.pageX=t.clientX+(s&&s.scrollLeft||i&&i.scrollLeft||0)-(s&&s.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(s&&s.scrollTop||i&&i.scrollTop||0)-(s&&s.clientTop||i&&i.clientTop||0)),!e.relatedTarget&&r&&(e.relatedTarget=r===e.target?t.toElement:r),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==_()&&this.focus)try{return this.focus(),!1}catch(e){}},delegateType:"focusin"},blur:{trigger:function(){if(this===_()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if(pe.nodeName(this,"input")&&"checkbox"===this.type&&this.click)return this.click(),!1},_default:function(e){return pe.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,i){var n=pe.extend(new pe.Event,i,{type:e,isSimulated:!0});pe.event.trigger(n,null,t),n.isDefaultPrevented()&&i.preventDefault()}},pe.removeEvent=ne.removeEventListener?function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)}:function(e,t,i){var n="on"+t;e.detachEvent&&(void 0===e[n]&&(e[n]=null),e.detachEvent(n,i))},pe.Event=function(e,t){if(!(this instanceof pe.Event))return new pe.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?b:y):this.type=e,t&&pe.extend(this,t),this.timeStamp=e&&e.timeStamp||pe.now(),this[pe.expando]=!0},pe.Event.prototype={constructor:pe.Event,isDefaultPrevented:y,isPropagationStopped:y,isImmediatePropagationStopped:y,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=b,e&&(e.preventDefault?e.preventDefault():e.returnValue=!1)},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=b,e&&!this.isSimulated&&(e.stopPropagation&&e.stopPropagation(),e.cancelBubble=!0)},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=b,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},pe.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){pe.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,s=e.relatedTarget,a=e.handleObj;return s&&(s===n||pe.contains(n,s))||(e.type=a.origType,i=a.handler.apply(this,arguments),e.type=t),i}}})),ue.submit||(pe.event.special.submit={setup:function(){if(pe.nodeName(this,"form"))return!1;pe.event.add(this,"click._submit keypress._submit",(function(e){var t=e.target,i=pe.nodeName(t,"input")||pe.nodeName(t,"button")?pe.prop(t,"form"):void 0;i&&!pe._data(i,"submit")&&(pe.event.add(i,"submit._submit",(function(e){e._submitBubble=!0})),pe._data(i,"submit",!0))}))},postDispatch:function(e){e._submitBubble&&(delete e._submitBubble,this.parentNode&&!e.isTrigger&&pe.event.simulate("submit",this.parentNode,e))},teardown:function(){if(pe.nodeName(this,"form"))return!1;pe.event.remove(this,"._submit")}}),ue.change||(pe.event.special.change={setup:function(){if(Qe.test(this.nodeName))return"checkbox"!==this.type&&"radio"!==this.type||(pe.event.add(this,"propertychange._change",(function(e){"checked"===e.originalEvent.propertyName&&(this._justChanged=!0)})),pe.event.add(this,"click._change",(function(e){this._justChanged&&!e.isTrigger&&(this._justChanged=!1),pe.event.simulate("change",this,e)}))),!1;pe.event.add(this,"beforeactivate._change",(function(e){var t=e.target;Qe.test(t.nodeName)&&!pe._data(t,"change")&&(pe.event.add(t,"change._change",(function(e){!this.parentNode||e.isSimulated||e.isTrigger||pe.event.simulate("change",this.parentNode,e)})),pe._data(t,"change",!0))}))},handle:function(e){var t=e.target;if(this!==t||e.isSimulated||e.isTrigger||"radio"!==t.type&&"checkbox"!==t.type)return e.handleObj.handler.apply(this,arguments)},teardown:function(){return pe.event.remove(this,"._change"),!Qe.test(this.nodeName)}}),ue.focusin||pe.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){pe.event.simulate(t,e.target,pe.event.fix(e))};pe.event.special[t]={setup:function(){var n=this.ownerDocument||this,s=pe._data(n,t);s||n.addEventListener(e,i,!0),pe._data(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=pe._data(n,t)-1;s?pe._data(n,t,s):(n.removeEventListener(e,i,!0),pe._removeData(n,t))}}})),pe.fn.extend({on:function(e,t,i,n){return w(this,e,t,i,n)},one:function(e,t,i,n){return w(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,pe(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=y),this.each((function(){pe.event.remove(this,e,i,t)}))},trigger:function(e,t){return this.each((function(){pe.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return pe.event.trigger(e,t,i,!0)}});var it=/ jQuery\d+="(?:null|\d+)"/g,nt=new RegExp("<(?:"+Xe+")[\\s/>]","i"),st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:-]+)[^>]*)\/>/gi,at=/<script|<style|<link/i,rt=/checked\s*(?:[^=]|=\s*.checked.)/i,ot=/^true\/(.*)/,lt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,ct=p(ne).appendChild(ne.createElement("div"));pe.extend({htmlPrefilter:function(e){return e.replace(st,"<$1></$2>")},clone:function(e,t,i){var n,s,a,r,o,l=pe.contains(e.ownerDocument,e);if(ue.html5Clone||pe.isXMLDoc(e)||!nt.test("<"+e.nodeName+">")?a=e.cloneNode(!0):(ct.innerHTML=e.outerHTML,ct.removeChild(a=ct.firstChild)),!(ue.noCloneEvent&&ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||pe.isXMLDoc(e)))for(n=f(a),o=f(e),r=0;null!=(s=o[r]);++r)n[r]&&S(s,n[r]);if(t)if(i)for(o=o||f(e),n=n||f(a),r=0;null!=(s=o[r]);r++)E(s,n[r]);else E(e,a);return(n=f(a,"script")).length>0&&m(n,!l&&f(e,"script")),n=o=s=null,a},cleanData:function(e,t){for(var i,n,s,a,r=0,o=pe.expando,l=pe.cache,c=ue.attributes,h=pe.event.special;null!=(i=e[r]);r++)if((t||Ae(i))&&(a=(s=i[o])&&l[s])){if(a.events)for(n in a.events)h[n]?pe.event.remove(i,n):pe.removeEvent(i,n,a.handle);l[s]&&(delete l[s],c||void 0===i.removeAttribute?i[o]=void 0:i.removeAttribute(o),ie.push(s))}}}),pe.fn.extend({domManip:k,detach:function(e){return D(this,e,!0)},remove:function(e){return D(this,e)},text:function(e){return We(this,(function(e){return void 0===e?pe.text(this):this.empty().append((this[0]&&this[0].ownerDocument||ne).createTextNode(e))}),null,e,arguments.length)},append:function(){return k(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||x(this,e).appendChild(e)}))},prepend:function(){return k(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=x(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return k(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return k(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++){for(1===e.nodeType&&pe.cleanData(f(e,!1));e.firstChild;)e.removeChild(e.firstChild);e.options&&pe.nodeName(e,"select")&&(e.options.length=0)}return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,
this.map((function(){return pe.clone(this,e,t)}))},html:function(e){return We(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e)return 1===t.nodeType?t.innerHTML.replace(it,""):void 0;if("string"==typeof e&&!at.test(e)&&(ue.htmlSerialize||!nt.test(e))&&(ue.leadingWhitespace||!Ye.test(e))&&!Ue[($e.exec(e)||["",""])[1].toLowerCase()]){e=pe.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(pe.cleanData(f(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return k(this,arguments,(function(t){var i=this.parentNode;pe.inArray(this,e)<0&&(pe.cleanData(f(this)),i&&i.replaceChild(t,this))}),e)}}),pe.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){pe.fn[e]=function(e){for(var i,n=0,s=[],a=pe(e),r=a.length-1;n<=r;n++)i=n===r?this:this.clone(!0),pe(a[n])[t](i),re.apply(s,i.get());return this.pushStack(s)}}));var ht,ut={HTML:"block",BODY:"block"},dt=/^margin/,pt=new RegExp("^("+He+")(?!px)[a-z%]+$","i"),ft=function(e,t,i,n){var s,a,r={};for(a in t)r[a]=e.style[a],e.style[a]=t[a];for(a in s=i.apply(e,n||[]),t)e.style[a]=r[a];return s},mt=ne.documentElement;!function(){function t(){var t,h,u=ne.documentElement;u.appendChild(l),c.style.cssText="-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",i=s=o=!1,n=r=!0,e.getComputedStyle&&(h=e.getComputedStyle(c),i="1%"!==(h||{}).top,o="2px"===(h||{}).marginLeft,s="4px"===(h||{width:"4px"}).width,c.style.marginRight="50%",n="4px"===(h||{marginRight:"4px"}).marginRight,(t=c.appendChild(ne.createElement("div"))).style.cssText=c.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",t.style.marginRight=t.style.width="0",c.style.width="1px",r=!parseFloat((e.getComputedStyle(t)||{}).marginRight),c.removeChild(t)),c.style.display="none",(a=0===c.getClientRects().length)&&(c.style.display="",c.innerHTML="<table><tr><td></td><td>t</td></tr></table>",c.childNodes[0].style.borderCollapse="separate",(t=c.getElementsByTagName("td"))[0].style.cssText="margin:0;border:0;padding:0;display:none",(a=0===t[0].offsetHeight)&&(t[0].style.display="",t[1].style.display="none",a=0===t[0].offsetHeight)),u.removeChild(l)}var i,n,s,a,r,o,l=ne.createElement("div"),c=ne.createElement("div");c.style&&(c.style.cssText="float:left;opacity:.5",ue.opacity="0.5"===c.style.opacity,ue.cssFloat=!!c.style.cssFloat,c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",ue.clearCloneStyle="content-box"===c.style.backgroundClip,(l=ne.createElement("div")).style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",c.innerHTML="",l.appendChild(c),ue.boxSizing=""===c.style.boxSizing||""===c.style.MozBoxSizing||""===c.style.WebkitBoxSizing,pe.extend(ue,{reliableHiddenOffsets:function(){return null==i&&t(),a},boxSizingReliable:function(){return null==i&&t(),s},pixelMarginRight:function(){return null==i&&t(),n},pixelPosition:function(){return null==i&&t(),i},reliableMarginRight:function(){return null==i&&t(),r},reliableMarginLeft:function(){return null==i&&t(),o}}))}();var gt,vt,bt=/^(top|right|bottom|left)$/;e.getComputedStyle?(gt=function(t){var i=t.ownerDocument.defaultView;return i&&i.opener||(i=e),i.getComputedStyle(t)},vt=function(e,t,i){var n,s,a,r,o=e.style;return""!==(r=(i=i||gt(e))?i.getPropertyValue(t)||i[t]:void 0)&&void 0!==r||pe.contains(e.ownerDocument,e)||(r=pe.style(e,t)),i&&!ue.pixelMarginRight()&&pt.test(r)&&dt.test(t)&&(n=o.width,s=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=r,r=i.width,o.width=n,o.minWidth=s,o.maxWidth=a),void 0===r?r:r+""}):mt.currentStyle&&(gt=function(e){return e.currentStyle},vt=function(e,t,i){var n,s,a,r,o=e.style;return null==(r=(i=i||gt(e))?i[t]:void 0)&&o&&o[t]&&(r=o[t]),pt.test(r)&&!bt.test(t)&&(n=o.left,(a=(s=e.runtimeStyle)&&s.left)&&(s.left=e.currentStyle.left),o.left="fontSize"===t?"1em":r,r=o.pixelLeft+"px",o.left=n,a&&(s.left=a)),void 0===r?r:r+""||"auto"});var yt=/alpha\([^)]*\)/i,_t=/opacity\s*=\s*([^)]*)/i,wt=/^(none|table(?!-c[ea]).+)/,xt=new RegExp("^("+He+")(.*)$","i"),Ct={position:"absolute",visibility:"hidden",display:"block"},Tt={letterSpacing:"0",fontWeight:"400"},Et=["Webkit","O","Moz","ms"],St=ne.createElement("div").style;pe.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=vt(e,"opacity");return""===i?"1":i}}}},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:ue.cssFloat?"cssFloat":"styleFloat"},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,a,r,o=pe.camelCase(t),l=e.style;if(t=pe.cssProps[o]||(pe.cssProps[o]=A(o)||o),r=pe.cssHooks[t]||pe.cssHooks[o],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:l[t];if(!("string"===(a=typeof i)&&(s=Fe.exec(i))&&s[1]&&(i=d(e,t,s),a="number"),null==i||i!=i||("number"===a&&(i+=s&&s[3]||(pe.cssNumber[o]?"":"px")),ue.clearCloneStyle||""!==i||0!==t.indexOf("background")||(l[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n)))))try{l[t]=i}catch(e){}}},css:function(e,t,i,n){var s,a,r,o=pe.camelCase(t);return t=pe.cssProps[o]||(pe.cssProps[o]=A(o)||o),(r=pe.cssHooks[t]||pe.cssHooks[o])&&"get"in r&&(a=r.get(e,!0,i)),void 0===a&&(a=vt(e,t,n)),"normal"===a&&t in Tt&&(a=Tt[t]),""===i||i?(s=parseFloat(a),!0===i||isFinite(s)?s||0:a):a}}),pe.each(["height","width"],(function(e,t){pe.cssHooks[t]={get:function(e,i,n){if(i)return wt.test(pe.css(e,"display"))&&0===e.offsetWidth?ft(e,Ct,(function(){return R(e,t,n)})):R(e,t,n)},set:function(e,i,n){var s=n&&gt(e);return N(e,i,n?O(e,t,n,ue.boxSizing&&"border-box"===pe.css(e,"boxSizing",!1,s),s):0)}}})),ue.opacity||(pe.cssHooks.opacity={get:function(e,t){return _t.test((t&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?.01*parseFloat(RegExp.$1)+"":t?"1":""},set:function(e,t){var i=e.style,n=e.currentStyle,s=pe.isNumeric(t)?"alpha(opacity="+100*t+")":"",a=n&&n.filter||i.filter||"";i.zoom=1,(t>=1||""===t)&&""===pe.trim(a.replace(yt,""))&&i.removeAttribute&&(i.removeAttribute("filter"),""===t||n&&!n.filter)||(i.filter=yt.test(a)?a.replace(yt,s):a+" "+s)}}),pe.cssHooks.marginRight=M(ue.reliableMarginRight,(function(e,t){if(t)return ft(e,{display:"inline-block"},vt,[e,"marginRight"])})),pe.cssHooks.marginLeft=M(ue.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(vt(e,"marginLeft"))||(pe.contains(e.ownerDocument,e)?e.getBoundingClientRect().left-ft(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})):0))+"px"})),pe.each({margin:"",padding:"",border:"Width"},(function(e,t){pe.cssHooks[e+t]={expand:function(i){for(var n=0,s={},a="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+qe[n]+t]=a[n]||a[n-2]||a[0];return s}},dt.test(e)||(pe.cssHooks[e+t].set=N)})),pe.fn.extend({css:function(e,t){return We(this,(function(e,t,i){var n,s,a={},r=0;if(pe.isArray(t)){for(n=gt(e),s=t.length;r<s;r++)a[t[r]]=pe.css(e,t[r],!1,n);return a}return void 0!==i?pe.style(e,t,i):pe.css(e,t)}),e,t,arguments.length>1)},show:function(){return L(this,!0)},hide:function(){return L(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){je(this)?pe(this).show():pe(this).hide()}))}}),pe.Tween=z,z.prototype={constructor:z,init:function(e,t,i,n,s,a){this.elem=e,this.prop=i,this.easing=s||pe.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=a||(pe.cssNumber[i]?"":"px")},cur:function(){var e=z.propHooks[this.prop];return e&&e.get?e.get(this):z.propHooks._default.get(this)},run:function(e){var t,i=z.propHooks[this.prop];return this.options.duration?this.pos=t=pe.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):z.propHooks._default.set(this),this}},z.prototype.init.prototype=z.prototype,z.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=pe.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){pe.fx.step[e.prop]?pe.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[pe.cssProps[e.prop]]&&!pe.cssHooks[e.prop]?e.elem[e.prop]=e.now:pe.style(e.elem,e.prop,e.now+e.unit)}}},z.propHooks.scrollTop=z.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},pe.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},pe.fx=z.prototype.init,pe.fx.step={};var kt,Dt,Pt=/^(?:toggle|show|hide)$/,It=/queueHooks$/;pe.Animation=pe.extend(B,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return d(i.elem,e,Fe.exec(t),i),i}]},tweener:function(e,t){pe.isFunction(e)?(t=e,e=["*"]):e=e.match(Ie);for(var i,n=0,s=e.length;n<s;n++)i=e[n],B.tweeners[i]=B.tweeners[i]||[],B.tweeners[i].unshift(t)},prefilters:[j],prefilter:function(e,t){t?B.prefilters.unshift(e):B.prefilters.push(e)}}),pe.speed=function(e,t,i){var n=e&&"object"==typeof e?pe.extend({},e):{complete:i||!i&&t||pe.isFunction(e)&&e,duration:e,easing:i&&t||t&&!pe.isFunction(t)&&t};return n.duration=pe.fx.off?0:"number"==typeof n.duration?n.duration:n.duration in pe.fx.speeds?pe.fx.speeds[n.duration]:pe.fx.speeds._default,null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){pe.isFunction(n.old)&&n.old.call(this),n.queue&&pe.dequeue(this,n.queue)},n},pe.fn.extend({fadeTo:function(e,t,i,n){return this.filter(je).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var s=pe.isEmptyObject(e),a=pe.speed(t,i,n),r=function(){var t=B(this,pe.extend({},e),a);(s||pe._data(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===a.queue?this.each(r):this.queue(a.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&!1!==e&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",a=pe.timers,r=pe._data(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&It.test(s)&&n(r[s]);for(s=a.length;s--;)a[s].elem!==this||null!=e&&a[s].queue!==e||(a[s].anim.stop(i),t=!1,a.splice(s,1));!t&&i||pe.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=pe._data(this),n=i[e+"queue"],s=i[e+"queueHooks"],a=pe.timers,r=n?n.length:0;for(i.finish=!0,pe.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),pe.each(["toggle","show","hide"],(function(e,t){var i=pe.fn[t];pe.fn[t]=function(e,n,s){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(F(t,!0),e,n,s)}})),pe.each({slideDown:F("show"),slideUp:F("hide"),slideToggle:F("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){pe.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),pe.timers=[],pe.fx.tick=function(){var e,t=pe.timers,i=0;for(kt=pe.now();i<t.length;i++)(e=t[i])()||t[i]!==e||t.splice(i--,1);t.length||pe.fx.stop(),kt=void 0},pe.fx.timer=function(e){pe.timers.push(e),e()?pe.fx.start():pe.timers.pop()},pe.fx.interval=13,pe.fx.start=function(){Dt||(Dt=e.setInterval(pe.fx.tick,pe.fx.interval))},pe.fx.stop=function(){e.clearInterval(Dt),Dt=null},pe.fx.speeds={slow:600,fast:200,_default:400},pe.fn.delay=function(t,i){return t=pe.fx&&pe.fx.speeds[t]||t,i=i||"fx",this.queue(i,(function(i,n){var s=e.setTimeout(i,t);n.stop=function(){e.clearTimeout(s)}}))},function(){var e,t=ne.createElement("input"),i=ne.createElement("div"),n=ne.createElement("select"),s=n.appendChild(ne.createElement("option"));(i=ne.createElement("div")).setAttribute("className","t"),i.innerHTML="  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>",e=i.getElementsByTagName("a")[0],t.setAttribute("type","checkbox"),i.appendChild(t),(e=i.getElementsByTagName("a")[0]).style.cssText="top:1px",ue.getSetAttribute="t"!==i.className,ue.style=/top/.test(e.getAttribute("style")),ue.hrefNormalized="/a"===e.getAttribute("href"),ue.checkOn=!!t.value,ue.optSelected=s.selected,ue.enctype=!!ne.createElement("form").enctype,n.disabled=!0,ue.optDisabled=!s.disabled,(t=ne.createElement("input")).setAttribute("value",""),ue.input=""===t.getAttribute("value"),t.value="t",t.setAttribute("type","radio"),ue.radioValue="t"===t.value}();var Mt=/\r/g,At=/[\x20\t\r\n\f]+/g;pe.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=pe.isFunction(e),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,pe(this).val()):e)?s="":"number"==typeof s?s+="":pe.isArray(s)&&(s=pe.map(s,(function(e){return null==e?"":e+""}))),(t=pe.valHooks[this.type]||pe.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=pe.valHooks[s.type]||pe.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(Mt,""):null==i?"":i:void 0}}),pe.extend({valHooks:{option:{get:function(e){var t=pe.find.attr(e,"value");return null!=t?t:pe.trim(pe.text(e)).replace(At," ")}},select:{get:function(e){for(var t,i,n=e.options,s=e.selectedIndex,a="select-one"===e.type||s<0,r=a?null:[],o=a?s+1:n.length,l=s<0?o:a?s:0;l<o;l++)if(((i=n[l]).selected||l===s)&&(ue.optDisabled?!i.disabled:null===i.getAttribute("disabled"))&&(!i.parentNode.disabled||!pe.nodeName(i.parentNode,"optgroup"))){if(t=pe(i).val(),a)return t;r.push(t)}return r},set:function(e,t){for(var i,n,s=e.options,a=pe.makeArray(t),r=s.length;r--;)if(n=s[r],pe.inArray(pe.valHooks.option.get(n),a)>-1)try{n.selected=i=!0}catch(e){n.scrollHeight}else n.selected=!1;return i||(e.selectedIndex=-1),s}}}}),pe.each(["radio","checkbox"],(function(){pe.valHooks[this]={set:function(e,t){if(pe.isArray(t))return e.checked=pe.inArray(pe(e).val(),t)>-1}},ue.checkOn||(pe.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt,Nt,Ot=pe.expr.attrHandle,Rt=/^(?:checked|selected)$/i,zt=ue.getSetAttribute,Ht=ue.input;pe.fn.extend({attr:function(e,t){return We(this,pe.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){pe.removeAttr(this,e)}))}}),pe.extend({attr:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?pe.prop(e,t,i):(1===a&&pe.isXMLDoc(e)||(t=t.toLowerCase(),s=pe.attrHooks[t]||(pe.expr.match.bool.test(t)?Nt:Lt)),void 0!==i?null===i?void pe.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=pe.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!ue.radioValue&&"radio"===t&&pe.nodeName(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n,s=0,a=t&&t.match(Ie);if(a&&1===e.nodeType)for(;i=a[s++];)n=pe.propFix[i]||i,pe.expr.match.bool.test(i)?Ht&&zt||!Rt.test(i)?e[n]=!1:e[pe.camelCase("default-"+i)]=e[n]=!1:pe.attr(e,i,""),e.removeAttribute(zt?i:n)}}),Nt={set:function(e,t,i){return!1===t?pe.removeAttr(e,i):Ht&&zt||!Rt.test(i)?e.setAttribute(!zt&&pe.propFix[i]||i,i):e[pe.camelCase("default-"+i)]=e[i]=!0,i}},pe.each(pe.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=Ot[t]||pe.find.attr;Ht&&zt||!Rt.test(t)?Ot[t]=function(e,t,n){var s,a;return n||(a=Ot[t],Ot[t]=s,s=null!=i(e,t,n)?t.toLowerCase():null,Ot[t]=a),s}:Ot[t]=function(e,t,i){if(!i)return e[pe.camelCase("default-"+t)]?t.toLowerCase():null}})),Ht&&zt||(pe.attrHooks.value={set:function(e,t,i){if(!pe.nodeName(e,"input"))return Lt&&Lt.set(e,t,i);e.defaultValue=t}}),zt||(Lt={set:function(e,t,i){var n=e.getAttributeNode(i);if(n||e.setAttributeNode(n=e.ownerDocument.createAttribute(i)),n.value=t+="","value"===i||t===e.getAttribute(i))return t}},Ot.id=Ot.name=Ot.coords=function(e,t,i){var n;if(!i)return(n=e.getAttributeNode(t))&&""!==n.value?n.value:null},pe.valHooks.button={get:function(e,t){var i=e.getAttributeNode(t);if(i&&i.specified)return i.value},set:Lt.set},pe.attrHooks.contenteditable={set:function(e,t,i){Lt.set(e,""!==t&&t,i)}},pe.each(["width","height"],(function(e,t){pe.attrHooks[t]={set:function(e,i){if(""===i)return e.setAttribute(t,"auto"),i}}}))),ue.style||(pe.attrHooks.style={get:function(e){return e.style.cssText||void 0},set:function(e,t){return e.style.cssText=t+""}});var Ft=/^(?:input|select|textarea|button|object)$/i,qt=/^(?:a|area)$/i;pe.fn.extend({prop:function(e,t){return We(this,pe.prop,e,t,arguments.length>1)},removeProp:function(e){return e=pe.propFix[e]||e,this.each((function(){try{this[e]=void 0,delete this[e]}catch(e){}}))}}),pe.extend({prop:function(e,t,i){var n,s,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&pe.isXMLDoc(e)||(t=pe.propFix[t]||t,s=pe.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=pe.find.attr(e,"tabindex");return t?parseInt(t,10):Ft.test(e.nodeName)||qt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),ue.hrefNormalized||pe.each(["href","src"],(function(e,t){pe.propHooks[t]={get:function(e){return e.getAttribute(t,4)}}})),ue.optSelected||(pe.propHooks.selected={get:function(e){var t=e.parentNode;return t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex),null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),pe.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){pe.propFix[this.toLowerCase()]=this})),ue.enctype||(pe.propFix.enctype="encoding");var jt=/[\t\r\n\f]/g;pe.fn.extend({addClass:function(e){var t,i,n,s,a,r,o,l=0;if(pe.isFunction(e))return this.each((function(t){pe(this).addClass(e.call(this,t,$(this)))}));if("string"==typeof e&&e)for(t=e.match(Ie)||[];i=this[l++];)if(s=$(i),n=1===i.nodeType&&(" "+s+" ").replace(jt," ")){for(r=0;a=t[r++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");s!==(o=pe.trim(n))&&pe.attr(i,"class",o)}return this},removeClass:function(e){var t,i,n,s,a,r,o,l=0;if(pe.isFunction(e))return this.each((function(t){pe(this).removeClass(e.call(this,t,$(this)))}));if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ie)||[];i=this[l++];)if(s=$(i),n=1===i.nodeType&&(" "+s+" ").replace(jt," ")){for(r=0;a=t[r++];)for(;n.indexOf(" "+a+" ")>-1;)n=n.replace(" "+a+" "," ");s!==(o=pe.trim(n))&&pe.attr(i,"class",o)}return this},toggleClass:function(e,t){var i=typeof e;return"boolean"==typeof t&&"string"===i?t?this.addClass(e):this.removeClass(e):pe.isFunction(e)?this.each((function(i){pe(this).toggleClass(e.call(this,i,$(this),t),t)})):this.each((function(){var t,n,s,a;if("string"===i)for(n=0,s=pe(this),a=e.match(Ie)||[];t=a[n++];)s.hasClass(t)?s.removeClass(t):s.addClass(t);else void 0!==e&&"boolean"!==i||((t=$(this))&&pe._data(this,"__className__",t),pe.attr(this,"class",t||!1===e?"":pe._data(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+$(i)+" ").replace(jt," ").indexOf(t)>-1)return!0;return!1}}),pe.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),(function(e,t){pe.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}})),pe.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}});var Wt=e.location,Bt=pe.now(),$t=/\?/,Vt=/(,)|(\[|{)|(}|])|"(?:[^"\\\r\n]|\\["\\\/bfnrt]|\\u[\da-fA-F]{4})*"\s*:?|true|false|null|-?(?!0\d)\d+(?:\.\d+|)(?:[eE][+-]?\d+|)/g;pe.parseJSON=function(t){if(e.JSON&&e.JSON.parse)return e.JSON.parse(t+"");var i,n=null,s=pe.trim(t+"");return s&&!pe.trim(s.replace(Vt,(function(e,t,s,a){return i&&t&&(n=0),0===n?e:(i=s||t,n+=!a-!s,"")})))?Function("return "+s)():pe.error("Invalid JSON: "+t)},pe.parseXML=function(t){var i;if(!t||"string"!=typeof t)return null;try{e.DOMParser?i=(new e.DOMParser).parseFromString(t,"text/xml"):((i=new e.ActiveXObject("Microsoft.XMLDOM")).async="false",i.loadXML(t))}catch(e){i=void 0}return i&&i.documentElement&&!i.getElementsByTagName("parsererror").length||pe.error("Invalid XML: "+t),i};var Yt=/#.*$/,Xt=/([?&])_=[^&]*/,Ut=/^(.*?):[ \t]*([^\r\n]*)\r?$/gm,Gt=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Kt=/^(?:GET|HEAD)$/,Qt=/^\/\//,Jt=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,Zt={},ei={},ti="*/".concat("*"),ii=Wt.href,ni=Jt.exec(ii.toLowerCase())||[];pe.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ii,type:"GET",isLocal:Gt.test(ni[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":ti,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":pe.parseJSON,"text xml":pe.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?X(X(e,pe.ajaxSettings),t):X(pe.ajaxSettings,e)},ajaxPrefilter:V(Zt),ajaxTransport:V(ei),ajax:function(t,i){function n(t,i,n,s){var a,u,b,y,w,C=i;2!==_&&(_=2,l&&e.clearTimeout(l),h=void 0,o=s||"",x.readyState=t>0?4:0,a=t>=200&&t<300||304===t,n&&(y=U(d,x,n)),y=G(d,y,x,a),a?(d.ifModified&&((w=x.getResponseHeader("Last-Modified"))&&(pe.lastModified[r]=w),(w=x.getResponseHeader("etag"))&&(pe.etag[r]=w)),204===t||"HEAD"===d.type?C="nocontent":304===t?C="notmodified":(C=y.state,u=y.data,a=!(b=y.error))):(b=C,!t&&C||(C="error",t<0&&(t=0))),x.status=t,x.statusText=(i||C)+"",a?m.resolveWith(p,[u,C,x]):m.rejectWith(p,[x,C,b]),x.statusCode(v),v=void 0,c&&f.trigger(a?"ajaxSuccess":"ajaxError",[x,d,a?u:b]),g.fireWith(p,[x,C]),c&&(f.trigger("ajaxComplete",[x,d]),--pe.active||pe.event.trigger("ajaxStop")))}"object"==typeof t&&(i=t,t=void 0),i=i||{};var s,a,r,o,l,c,h,u,d=pe.ajaxSetup({},i),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?pe(p):pe.event,m=pe.Deferred(),g=pe.Callbacks("once memory"),v=d.statusCode||{},b={},y={},_=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===_){if(!u)for(u={};t=Ut.exec(o);)u[t[1].toLowerCase()]=t[2];t=u[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===_?o:null},setRequestHeader:function(e,t){var i=e.toLowerCase();return _||(e=y[i]=y[i]||e,b[e]=t),this},overrideMimeType:function(e){return _||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(_<2)for(t in e)v[t]=[v[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return h&&h.abort(t),n(0,t),this}};if(m.promise(x).complete=g.add,x.success=x.done,x.error=x.fail,d.url=((t||d.url||ii)+"").replace(Yt,"").replace(Qt,ni[1]+"//"),d.type=i.method||i.type||d.method||d.type,d.dataTypes=pe.trim(d.dataType||"*").toLowerCase().match(Ie)||[""],null==d.crossDomain&&(s=Jt.exec(d.url.toLowerCase()),d.crossDomain=!(!s||s[1]===ni[1]&&s[2]===ni[2]&&(s[3]||("http:"===s[1]?"80":"443"))===(ni[3]||("http:"===ni[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=pe.param(d.data,d.traditional)),Y(Zt,d,i,x),2===_)return x;for(a in(c=pe.event&&d.global)&&0==pe.active++&&pe.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!Kt.test(d.type),r=d.url,d.hasContent||(d.data&&(r=d.url+=($t.test(r)?"&":"?")+d.data,delete d.data),!1===d.cache&&(d.url=Xt.test(r)?r.replace(Xt,"$1_="+Bt++):r+($t.test(r)?"&":"?")+"_="+Bt++)),d.ifModified&&(pe.lastModified[r]&&x.setRequestHeader("If-Modified-Since",pe.lastModified[r]),pe.etag[r]&&x.setRequestHeader("If-None-Match",pe.etag[r])),(d.data&&d.hasContent&&!1!==d.contentType||i.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+ti+"; q=0.01":""):d.accepts["*"]),d.headers)x.setRequestHeader(a,d.headers[a]);if(d.beforeSend&&(!1===d.beforeSend.call(p,x,d)||2===_))return x.abort();for(a in w="abort",{success:1,error:1,complete:1})x[a](d[a]);if(h=Y(ei,d,i,x)){if(x.readyState=1,c&&f.trigger("ajaxSend",[x,d]),2===_)return x;d.async&&d.timeout>0&&(l=e.setTimeout((function(){x.abort("timeout")}),d.timeout));try{_=1,h.send(b,n)}catch(e){if(!(_<2))throw e;n(-1,e)}}else n(-1,"No Transport");return x},getJSON:function(e,t,i){return pe.get(e,t,i,"json")},getScript:function(e,t){return pe.get(e,void 0,t,"script")}}),pe.each(["get","post"],(function(e,t){pe[t]=function(e,i,n,s){return pe.isFunction(i)&&(s=s||n,n=i,i=void 0),pe.ajax(pe.extend({url:e,type:t,dataType:s,data:i,success:n},pe.isPlainObject(e)&&e))}})),pe._evalUrl=function(e){return pe.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},pe.fn.extend({wrapAll:function(e){if(pe.isFunction(e))return this.each((function(t){pe(this).wrapAll(e.call(this,t))}));if(this[0]){var t=pe(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstChild&&1===e.firstChild.nodeType;)e=e.firstChild;return e})).append(this)}return this},wrapInner:function(e){return pe.isFunction(e)?this.each((function(t){pe(this).wrapInner(e.call(this,t))})):this.each((function(){var t=pe(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=pe.isFunction(e);return this.each((function(i){pe(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(){return this.parent().each((function(){pe.nodeName(this,"body")||pe(this).replaceWith(this.childNodes)})).end()}}),pe.expr.filters.hidden=function(e){return ue.reliableHiddenOffsets()?e.offsetWidth<=0&&e.offsetHeight<=0&&!e.getClientRects().length:Q(e)},pe.expr.filters.visible=function(e){return!pe.expr.filters.hidden(e)};var si=/%20/g,ai=/\[\]$/,ri=/\r?\n/g,oi=/^(?:submit|button|image|reset|file)$/i,li=/^(?:input|select|textarea|keygen)/i;pe.param=function(e,t){var i,n=[],s=function(e,t){t=pe.isFunction(t)?t():null==t?"":t,n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=pe.ajaxSettings&&pe.ajaxSettings.traditional),pe.isArray(e)||e.jquery&&!pe.isPlainObject(e))pe.each(e,(function(){s(this.name,this.value)}));else for(i in e)J(i,e[i],t,s);return n.join("&").replace(si,"+")},pe.fn.extend({serialize:function(){return pe.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=pe.prop(this,"elements");return e?pe.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!pe(this).is(":disabled")&&li.test(this.nodeName)&&!oi.test(e)&&(this.checked||!Be.test(e))})).map((function(e,t){var i=pe(this).val();return null==i?null:pe.isArray(i)?pe.map(i,(function(e){return{name:t.name,value:e.replace(ri,"\r\n")}})):{name:t.name,value:i.replace(ri,"\r\n")}})).get()}}),pe.ajaxSettings.xhr=void 0!==e.ActiveXObject?function(){return this.isLocal?ee():ne.documentMode>8?Z():/^(get|post|head|put|delete|options)$/i.test(this.type)&&Z()||ee()}:Z;var ci=0,hi={},ui=pe.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",(function(){for(var e in hi)hi[e](void 0,!0)})),ue.cors=!!ui&&"withCredentials"in ui,(ui=ue.ajax=!!ui)&&pe.ajaxTransport((function(t){var i;if(!t.crossDomain||ue.cors)return{send:function(n,s){var a,r=t.xhr(),o=++ci;if(r.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)r[a]=t.xhrFields[a];for(a in t.mimeType&&r.overrideMimeType&&r.overrideMimeType(t.mimeType),t.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),n)void 0!==n[a]&&r.setRequestHeader(a,n[a]+"");r.send(t.hasContent&&t.data||null),i=function(e,n){var a,l,c;if(i&&(n||4===r.readyState))if(delete hi[o],i=void 0,r.onreadystatechange=pe.noop,n)4!==r.readyState&&r.abort();else{c={},a=r.status,"string"==typeof r.responseText&&(c.text=r.responseText);try{l=r.statusText}catch(e){l=""}a||!t.isLocal||t.crossDomain?1223===a&&(a=204):a=c.text?200:404}c&&s(a,l,c,r.getAllResponseHeaders())},t.async?4===r.readyState?e.setTimeout(i):r.onreadystatechange=hi[o]=i:i()},abort:function(){i&&i(void 0,!0)}}})),pe.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return pe.globalEval(e),e}}}),pe.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)})),pe.ajaxTransport("script",(function(e){if(e.crossDomain){var t,i=ne.head||pe("head")[0]||ne.documentElement;return{send:function(n,s){(t=ne.createElement("script")).async=!0,e.scriptCharset&&(t.charset=e.scriptCharset),t.src=e.url,t.onload=t.onreadystatechange=function(e,i){(i||!t.readyState||/loaded|complete/.test(t.readyState))&&(t.onload=t.onreadystatechange=null,t.parentNode&&t.parentNode.removeChild(t),t=null,i||s(200,"success"))},i.insertBefore(t,i.firstChild)},abort:function(){t&&t.onload(void 0,!0)}}}}));var di=[],pi=/(=)\?(?=&|$)|\?\?/;pe.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=di.pop()||pe.expando+"_"+Bt++;return this[e]=!0,e}}),pe.ajaxPrefilter("json jsonp",(function(t,i,n){var s,a,r,o=!1!==t.jsonp&&(pi.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&pi.test(t.data)&&"data");if(o||"jsonp"===t.dataTypes[0])return s=t.jsonpCallback=pe.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(pi,"$1"+s):!1!==t.jsonp&&(t.url+=($t.test(t.url)?"&":"?")+t.jsonp+"="+s),t.converters["script json"]=function(){return r||pe.error(s+" was not called"),r[0]},t.dataTypes[0]="json",a=e[s],e[s]=function(){r=arguments},n.always((function(){void 0===a?pe(e).removeProp(s):e[s]=a,t[s]&&(t.jsonpCallback=i.jsonpCallback,di.push(s)),r&&pe.isFunction(a)&&a(r[0]),r=a=void 0})),"script"})),pe.parseHTML=function(e,t,i){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(i=t,t=!1),t=t||ne;var n=xe.exec(e),s=!i&&[];return n?[t.createElement(n[1])]:(n=v([e],t,s),s&&s.length&&pe(s).remove(),pe.merge([],n.childNodes))};var fi=pe.fn.load;pe.fn.load=function(e,t,i){if("string"!=typeof e&&fi)return fi.apply(this,arguments);var n,s,a,r=this,o=e.indexOf(" ");return o>-1&&(n=pe.trim(e.slice(o,e.length)),e=e.slice(0,o)),pe.isFunction(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),r.length>0&&pe.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){a=arguments,r.html(n?pe("<div>").append(pe.parseHTML(e)).find(n):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,a||[e.responseText,t,e])}))}),this},pe.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){pe.fn[t]=function(e){return this.on(t,e)}})),pe.expr.filters.animated=function(e){return pe.grep(pe.timers,(function(t){return e===t.elem})).length},pe.offset={setOffset:function(e,t,i){var n,s,a,r,o,l,c=pe.css(e,"position"),h=pe(e),u={};"static"===c&&(e.style.position="relative"),o=h.offset(),a=pe.css(e,"top"),l=pe.css(e,"left"),("absolute"===c||"fixed"===c)&&pe.inArray("auto",[a,l])>-1?(r=(n=h.position()).top,s=n.left):(r=parseFloat(a)||0,s=parseFloat(l)||0),pe.isFunction(t)&&(t=t.call(e,i,pe.extend({},o))),null!=t.top&&(u.top=t.top-o.top+r),null!=t.left&&(u.left=t.left-o.left+s),"using"in t?t.using.call(e,u):h.css(u)}},pe.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){pe.offset.setOffset(this,e,t)}));var t,i,n={top:0,left:0},s=this[0],a=s&&s.ownerDocument;return a?(t=a.documentElement,pe.contains(t,s)?(void 0!==s.getBoundingClientRect&&(n=s.getBoundingClientRect()),i=te(a),{top:n.top+(i.pageYOffset||t.scrollTop)-(t.clientTop||0),left:n.left+(i.pageXOffset||t.scrollLeft)-(t.clientLeft||0)}):n):void 0},position:function(){if(this[0]){var e,t,i={top:0,left:0},n=this[0];return"fixed"===pe.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),pe.nodeName(e[0],"html")||(i=e.offset()),i.top+=pe.css(e[0],"borderTopWidth",!0),i.left+=pe.css(e[0],"borderLeftWidth",!0)),{top:t.top-i.top-pe.css(n,"marginTop",!0),left:t.left-i.left-pe.css(n,"marginLeft",!0)}}},offsetParent:function(){
return this.map((function(){for(var e=this.offsetParent;e&&!pe.nodeName(e,"html")&&"static"===pe.css(e,"position");)e=e.offsetParent;return e||mt}))}}),pe.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i=/Y/.test(t);pe.fn[e]=function(n){return We(this,(function(e,n,s){var a=te(e);if(void 0===s)return a?t in a?a[t]:a.document.documentElement[n]:e[n];a?a.scrollTo(i?pe(a).scrollLeft():s,i?s:pe(a).scrollTop()):e[n]=s}),e,n,arguments.length,null)}})),pe.each(["top","left"],(function(e,t){pe.cssHooks[t]=M(ue.pixelPosition,(function(e,i){if(i)return i=vt(e,t),pt.test(i)?pe(e).position()[t]+"px":i}))})),pe.each({Height:"height",Width:"width"},(function(e,t){pe.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){pe.fn[n]=function(n,s){var a=arguments.length&&(i||"boolean"!=typeof n),r=i||(!0===n||!0===s?"margin":"border");return We(this,(function(t,i,n){var s;return pe.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(s=t.documentElement,Math.max(t.body["scroll"+e],s["scroll"+e],t.body["offset"+e],s["offset"+e],s["client"+e])):void 0===n?pe.css(t,i,r):pe.style(t,i,n,r)}),t,a?n:void 0,a,null)}}))})),pe.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)}}),pe.fn.size=function(){return this.length},pe.fn.andSelf=pe.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],(function(){return pe}));var mi=e.jQuery,gi=e.$;return pe.noConflict=function(t){return e.$===pe&&(e.$=gi),t&&e.jQuery===pe&&(e.jQuery=mi),pe},t||(e.jQuery=e.$=pe),pe})),function(){"use strict";var e=function(e,t){var i;e.rails!==t&&e.error("jquery-ujs has already been loaded!");var n=e(document);e.rails=i={linkClickSelector:"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]",buttonClickSelector:"button[data-remote]:not([form]):not(form button), button[data-confirm]:not([form]):not(form button)",inputChangeSelector:"select[data-remote], input[data-remote], textarea[data-remote]",formSubmitSelector:"form:not([data-turbo=true])",formInputClickSelector:"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])",disableSelector:"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled",enableSelector:"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled",requiredInputSelector:"input[name][required]:not([disabled]), textarea[name][required]:not([disabled])",fileInputSelector:"input[name][type=file]:not([disabled])",linkDisableSelector:"a[data-disable-with], a[data-disable]",buttonDisableSelector:"button[data-remote][data-disable-with], button[data-remote][data-disable]",csrfToken:function(){return e("meta[name=csrf-token]").attr("content")},csrfParam:function(){return e("meta[name=csrf-param]").attr("content")},CSRFProtection:function(e){var t=i.csrfToken();t&&e.setRequestHeader("X-CSRF-Token",t)},refreshCSRFTokens:function(){e('form input[name="'+i.csrfParam()+'"]').val(i.csrfToken())},fire:function(t,i,n){var s=e.Event(i);return t.trigger(s,n),!1!==s.result},confirm:function(e){return confirm(e)},ajax:function(t){return e.ajax(t)},href:function(e){return e[0].href},isRemote:function(e){return e.data("remote")!==t&&!1!==e.data("remote")},handleRemote:function(n){var s,a,r,o,l,c;if(i.fire(n,"ajax:before")){if(o=n.data("with-credentials")||null,l=n.data("type")||e.ajaxSettings&&e.ajaxSettings.dataType,n.is("form")){s=n.data("ujs:submit-button-formmethod")||n.attr("method"),a=n.data("ujs:submit-button-formaction")||n.attr("action"),r=e(n[0]).serializeArray();var h=n.data("ujs:submit-button");h&&(r.push(h),n.data("ujs:submit-button",null)),n.data("ujs:submit-button-formmethod",null),n.data("ujs:submit-button-formaction",null)}else n.is(i.inputChangeSelector)?(s=n.data("method"),a=n.data("url"),r=n.serialize(),n.data("params")&&(r=r+"&"+n.data("params"))):n.is(i.buttonClickSelector)?(s=n.data("method")||"get",a=n.data("url"),r=n.serialize(),n.data("params")&&(r=r+"&"+n.data("params"))):(s=n.data("method"),a=i.href(n),r=n.data("params")||null);return c={type:s||"GET",data:r,dataType:l,beforeSend:function(e,s){if(s.dataType===t&&e.setRequestHeader("accept","*/*;q=0.5, "+s.accepts.script),!i.fire(n,"ajax:beforeSend",[e,s]))return!1;n.trigger("ajax:send",e)},success:function(e,t,i){n.trigger("ajax:success",[e,t,i])},complete:function(e,t){n.trigger("ajax:complete",[e,t])},error:function(e,t,i){n.trigger("ajax:error",[e,t,i])},crossDomain:i.isCrossDomain(a)},o&&(c.xhrFields={withCredentials:o}),a&&(c.url=a),i.ajax(c)}return!1},isCrossDomain:function(e){var t=document.createElement("a");t.href=location.href;var i=document.createElement("a");try{return i.href=e,i.href=i.href,!((!i.protocol||":"===i.protocol)&&!i.host||t.protocol+"//"+t.host==i.protocol+"//"+i.host)}catch(e){return!0}},handleMethod:function(n){var s=i.href(n),a=n.data("method"),r=n.attr("target"),o=i.csrfToken(),l=i.csrfParam(),c=e('<form method="post" action="'+s+'"></form>'),h='<input name="_method" value="'+a+'" type="hidden" />';l===t||o===t||i.isCrossDomain(s)||(h+='<input name="'+l+'" value="'+o+'" type="hidden" />'),r&&c.attr("target",r),c.hide().append(h).appendTo("body"),c.submit()},formElements:function(t,i){return t.is("form")?e(t[0].elements).filter(i):t.find(i)},disableFormElements:function(t){i.formElements(t,i.disableSelector).each((function(){i.disableFormElement(e(this))}))},disableFormElement:function(e){var i,n;i=e.is("button")?"html":"val",(n=e.data("disable-with"))!==t&&(e.data("ujs:enable-with",e[i]()),e[i](n)),e.prop("disabled",!0),e.data("ujs:disabled",!0)},enableFormElements:function(t){i.formElements(t,i.enableSelector).each((function(){i.enableFormElement(e(this))}))},enableFormElement:function(e){var i=e.is("button")?"html":"val";e.data("ujs:enable-with")!==t&&(e[i](e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.prop("disabled",!1),e.removeData("ujs:disabled")},allowAction:function(e){var t,n=e.data("confirm"),s=!1;if(!n)return!0;if(i.fire(e,"confirm")){try{s=i.confirm(n)}catch(e){(console.error||console.log).call(console,e.stack||e)}t=i.fire(e,"confirm:complete",[s])}return s&&t},blankInputs:function(t,i,n){var s,a,r,o=e(),l=i||"input,textarea",c=t.find(l),h={};return c.each((function(){(s=e(this)).is("input[type=radio]")?(r=s.attr("name"),h[r]||(0===t.find('input[type=radio]:checked[name="'+r+'"]').length&&(a=t.find('input[type=radio][name="'+r+'"]'),o=o.add(a)),h[r]=r)):(s.is("input[type=checkbox],input[type=radio]")?s.is(":checked"):!!s.val())===n&&(o=o.add(s))})),!!o.length&&o},nonBlankInputs:function(e,t){return i.blankInputs(e,t,!0)},stopEverything:function(t){return e(t.target).trigger("ujs:everythingStopped"),t.stopImmediatePropagation(),!1},disableElement:function(e){var n=e.data("disable-with");n!==t&&(e.data("ujs:enable-with",e.html()),e.html(n)),e.on("click.railsDisable",(function(e){return i.stopEverything(e)})),e.data("ujs:disabled",!0)},enableElement:function(e){e.data("ujs:enable-with")!==t&&(e.html(e.data("ujs:enable-with")),e.removeData("ujs:enable-with")),e.off("click.railsDisable"),e.removeData("ujs:disabled")}},i.fire(n,"rails:attachBindings")&&(e.ajaxPrefilter((function(e,t,n){e.crossDomain||i.CSRFProtection(n)})),e(window).on("pageshow.rails",(function(){e(e.rails.enableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableFormElement(t)})),e(e.rails.linkDisableSelector).each((function(){var t=e(this);t.data("ujs:disabled")&&e.rails.enableElement(t)}))})),n.on("ajax:complete",i.linkDisableSelector,(function(){i.enableElement(e(this))})),n.on("ajax:complete",i.buttonDisableSelector,(function(){i.enableFormElement(e(this))})),n.on("click.rails",i.linkClickSelector,(function(t){var n=e(this),s=n.data("method"),a=n.data("params"),r=t.metaKey||t.ctrlKey;if(!i.allowAction(n))return i.stopEverything(t);if(!r&&n.is(i.linkDisableSelector)&&i.disableElement(n),i.isRemote(n)){if(r&&(!s||"GET"===s)&&!a)return!0;var o=i.handleRemote(n);return!1===o?i.enableElement(n):o.fail((function(){i.enableElement(n)})),!1}return s?(i.handleMethod(n),!1):void 0})),n.on("click.rails",i.buttonClickSelector,(function(t){var n=e(this);if(!i.allowAction(n)||!i.isRemote(n))return i.stopEverything(t);n.is(i.buttonDisableSelector)&&i.disableFormElement(n);var s=i.handleRemote(n);return!1===s?i.enableFormElement(n):s.fail((function(){i.enableFormElement(n)})),!1})),n.on("change.rails",i.inputChangeSelector,(function(t){var n=e(this);return i.allowAction(n)&&i.isRemote(n)?(i.handleRemote(n),!1):i.stopEverything(t)})),n.on("submit.rails",i.formSubmitSelector,(function(n){var s,a,r=e(this),o=i.isRemote(r);if(!i.allowAction(r))return i.stopEverything(n);if(r.attr("novalidate")===t)if(r.data("ujs:formnovalidate-button")===t){if((s=i.blankInputs(r,i.requiredInputSelector,!1))&&i.fire(r,"ajax:aborted:required",[s]))return i.stopEverything(n)}else r.data("ujs:formnovalidate-button",t);if(o){if(a=i.nonBlankInputs(r,i.fileInputSelector)){setTimeout((function(){i.disableFormElements(r)}),13);var l=i.fire(r,"ajax:aborted:file",[a]);return l||setTimeout((function(){i.enableFormElements(r)}),13),l}return i.handleRemote(r),!1}setTimeout((function(){i.disableFormElements(r)}),13)})),n.on("click.rails",i.formInputClickSelector,(function(t){var n=e(this);if(!i.allowAction(n))return i.stopEverything(t);var s=n.attr("name"),a=s?{name:s,value:n.val()}:null,r=n.closest("form");0===r.length&&(r=e("#"+n.attr("form"))),r.data("ujs:submit-button",a),r.data("ujs:formnovalidate-button",n.attr("formnovalidate")),r.data("ujs:submit-button-formaction",n.attr("formaction")),r.data("ujs:submit-button-formmethod",n.attr("formmethod"))})),n.on("ajax:send.rails",i.formSubmitSelector,(function(t){this===t.target&&i.disableFormElements(e(this))})),n.on("ajax:complete.rails",i.formSubmitSelector,(function(t){this===t.target&&i.enableFormElements(e(this))})),e((function(){i.refreshCSRFTokens()})))};window.jQuery?e(jQuery):"object"==typeof exports&&"object"==typeof module&&(module.exports=e)}(),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).Turbo={})}(this,(function(e){"use strict";function t(e){const t=e instanceof Element?e:e instanceof Node?e.parentElement:null,i=t?t.closest("input, button"):null;return"submit"==i?.type?i:null}function i(e){const i=t(e.target);i&&i.form&&$e.set(i.form,i)}function n(e){return"lazy"===e.toLowerCase()?Ve.lazy:Ve.eager}function s(e){return new URL(e.toString(),document.baseURI)}function a(e){let t;return e.hash?e.hash.slice(1):(t=e.href.match(/#(.*)$/))?t[1]:void 0}function r(e,t){return s(t?.getAttribute("formaction")||e.getAttribute("action")||e.action)}function o(e){return(m(e).match(/\.[^.]*$/)||[])[0]||""}function l(e){return!!o(e).match(/^(?:|\.(?:htm|html|xhtml|php))$/)}function c(e,t){const i=g(t);return e.href===s(i).href||e.href.startsWith(i)}function h(e,t){return c(e,t)&&l(e)}function u(e){const t=a(e);return null!=t?e.href.slice(0,-(t.length+1)):e.href}function d(e){return u(e)}function p(e,t){return s(e).href==s(t).href}function f(e){return e.pathname.split("/").slice(1)}function m(e){return f(e).slice(-1)[0]}function g(e){return v(e.origin+e.pathname)}function v(e){return e.endsWith("/")?e:e+"/"}function b(e){if("false"==e.getAttribute("data-turbo-eval"))return e;{const t=document.createElement("script"),i=F("csp-nonce");return i&&(t.nonce=i),t.textContent=e.textContent,t.async=!1,y(t,e),t}}function y(e,t){for(const{name:i,value:n}of t.attributes)e.setAttribute(i,n)}function _(e){const t=document.createElement("template");return t.innerHTML=e,t.content}function w(e,{target:t,cancelable:i,detail:n}={}){const s=new CustomEvent(e,{cancelable:i,bubbles:!0,composed:!0,detail:n});return t&&t.isConnected?t.dispatchEvent(s):document.documentElement.dispatchEvent(s),s}function x(){return"hidden"===document.visibilityState?T():C()}function C(){return new Promise((e=>requestAnimationFrame((()=>e()))))}function T(){return new Promise((e=>setTimeout((()=>e()),0)))}function E(){return Promise.resolve()}function S(e=""){return(new DOMParser).parseFromString(e,"text/html")}function k(e,...t){const i=D(e,t).replace(/^\n/,"").split("\n"),n=i[0].match(/^\s+/),s=n?n[0].length:0;return i.map((e=>e.slice(s))).join("\n")}function D(e,t){return e.reduce(((e,i,n)=>e+i+(null==t[n]?"":t[n])),"")}function P(){return Array.from({length:36}).map(((e,t)=>8==t||13==t||18==t||23==t?"-":14==t?"4":19==t?(Math.floor(4*Math.random())+8).toString(16):Math.floor(15*Math.random()).toString(16))).join("")}function I(e,...t){for(const i of t.map((t=>t?.getAttribute(e))))if("string"==typeof i)return i;return null}function M(e,...t){return t.some((t=>t&&t.hasAttribute(e)))}function A(...e){for(const t of e)"turbo-frame"==t.localName&&t.setAttribute("busy",""),t.setAttribute("aria-busy","true")}function L(...e){for(const t of e)"turbo-frame"==t.localName&&t.removeAttribute("busy"),t.removeAttribute("aria-busy")}function N(e,t=2e3){return new Promise((i=>{const n=()=>{e.removeEventListener("error",n),e.removeEventListener("load",n),i()};e.addEventListener("load",n,{once:!0}),e.addEventListener("error",n,{once:!0}),setTimeout(i,t)}))}function O(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}function R(e){return"advance"==e||"replace"==e||"restore"==e}function z(...e){const t=I("data-turbo-action",...e);return R(t)?t:null}function H(e){return document.querySelector(`meta[name="${e}"]`)}function F(e){const t=H(e);return t&&t.content}function q(e,t){let i=H(e);return i||(i=document.createElement("meta"),i.setAttribute("name",e),document.head.appendChild(i)),i.setAttribute("content",t),i}function j(e,t){if(e instanceof Element)return e.closest(t)||j(e.assignedSlot||e.getRootNode()?.host,t)}function W(e){const t="[inert], :disabled, [hidden], details:not([open]), dialog:not([open])";return!!e&&null==e.closest(t)&&"function"==typeof e.focus}function B(e){return Array.from(e.querySelectorAll("[autofocus]")).find(W)}async function $(e,t){const i=t();e(),await C();return[i,t()]}function V(e){if(e.hasAttribute("target"))for(const t of document.getElementsByName(e.target))if(t instanceof HTMLIFrameElement)return!1;return!0}function Y(e){return j(e,"a[href]:not([target^=_]):not([download])")}function X(e){return s(e.getAttribute("href")||"")}function U(e,t){let i=null;return(...n)=>{const s=()=>e.apply(this,n);clearTimeout(i),i=setTimeout(s,t)}}function G(e,t={}){const i=new Headers(t.headers||{}),n=P();return Ge.add(n),i.append("X-Turbo-Request-Id",n),Ke(e,{...t,headers:i})}function K(e){switch(e.toLowerCase()){case"get":return Qe.get;case"post":return Qe.post;case"put":return Qe.put;case"patch":return Qe.patch;case"delete":return Qe.delete}}function Q(e){switch(e.toLowerCase()){case Je.multipart:return Je.multipart;case Je.plain:return Je.plain;default:return Je.urlEncoded}}function J(e){return K(e)==Qe.get}function Z(e,t,i,n){const s=Array.from(i).length>0?new URLSearchParams(ee(i)):e.searchParams;return J(t)?[te(e,s),null]:n==Je.urlEncoded?[e,s]:[e,i]}function ee(e){const t=[];for(const[i,n]of e)n instanceof File||t.push([i,n]);return t}function te(e,t){const i=new URLSearchParams(ee(t));return e.search=i.toString(),e}function ie(e){for(const t of e.querySelectorAll("turbo-stream")){const e=document.importNode(t,!0);for(const t of e.templateElement.content.querySelectorAll("script"))t.replaceWith(b(t));t.replaceWith(e)}return e}function ne(e,t){const i=new FormData(e),n=t?.getAttribute("name"),s=t?.getAttribute("value");return n&&i.append(n,s||""),i}function se(e){if(null!=e){const t=(document.cookie?document.cookie.split("; "):[]).find((t=>t.startsWith(e)));if(t){const e=t.split("=").slice(1).join("=");return e?decodeURIComponent(e):void 0}}}function ae(e){return 200==e.statusCode&&!e.redirected}function re(e,t){const i="string"==typeof e.action?e.action:null;return t?.hasAttribute("formaction")?t.getAttribute("formaction")||"":e.getAttribute("action")||i||""}function oe(e,t){const i=s(e);return J(t)&&(i.search=""),i}function le(e,t){return K((t?.getAttribute("formmethod")||e.getAttribute("method")||"").toLowerCase())||Qe.get}function ce(e,t){return Q(t?.getAttribute("formenctype")||e.enctype)}function he(e,t){return e.querySelector(`#${t}[data-turbo-permanent]`)}function ue(e){return e.querySelectorAll("[id][data-turbo-permanent]")}function de(e,t){return"dialog"!=(t?.getAttribute("formmethod")||e.getAttribute("method"))}function pe(e,t){if(t?.hasAttribute("formtarget")||e.hasAttribute("target")){const i=t?.getAttribute("formtarget")||e.target;for(const e of document.getElementsByName(i))if(e instanceof HTMLIFrameElement)return!1;return!0}return!0}function fe(e){const t=document.createElement("meta");return t.setAttribute("name","turbo-permanent-placeholder"),t.setAttribute("content",e.id),t}function me(e,t){return"end"==e||"start"==e||"center"==e||"nearest"==e?e:t}function ge(e,t){return"auto"==e||"smooth"==e?e:t}function ve(e){return ye(e)?"script":we(e)?"stylesheet":void 0}function be(e){return"reload"==e.getAttribute("data-turbo-track")}function ye(e){return"script"==e.localName}function _e(e){return"noscript"==e.localName}function we(e){const t=e.localName;return"style"==t||"link"==t&&"stylesheet"==e.getAttribute("rel")}function xe(e,t){return"meta"==e.localName&&e.getAttribute("name")==t}function Ce(e){return e.hasAttribute("nonce")&&e.setAttribute("nonce",""),e}function Te(e){return e>=200&&e<300}function Ee(e){const t=ue(document.documentElement),i={};for(const n of t){const{id:t}=n;for(const s of e.querySelectorAll("turbo-stream")){const e=he(s.templateElement.content,t);e&&(i[t]=[n,e])}}return i}async function Se(e,t){const i=`turbo-stream-autofocus-${P()}`,n=De(e.querySelectorAll("turbo-stream"));let s=null;n&&(s=n.id?n.id:i,n.id=s),t(),await x();if((null==document.activeElement||document.activeElement==document.body)&&s){const e=document.getElementById(s);W(e)&&e.focus(),e&&e.id==i&&e.removeAttribute("id")}}async function ke(e){const[t,i]=await $(e,(()=>document.activeElement)),n=t&&t.id;if(n){const e=document.getElementById(n);W(e)&&e!=i&&e.focus()}}function De(e){for(const t of e){const e=B(t.templateElement.content);if(e)return e}return null}function Pe(e){const t=e.detail?.fetchResponse;if(t instanceof Xe)return t}function Ie(e){return(e.contentType??"").startsWith(tt.contentType)}function Me(e){Object.defineProperties(e,ei)}function Ae(){ti.start()}function Le(e){ti.registerAdapter(e)}function Ne(e,t){ti.visit(e,t)}function Oe(e){ti.connectStreamSource(e)}function Re(e){ti.disconnectStreamSource(e)}function ze(e){ti.renderStreamMessage(e)}function He(){console.warn("Please replace `Turbo.clearCache()` with `Turbo.cache.clear()`. The top-level function is deprecated and will be removed in a future version of Turbo.`"),ti.clearCache()}function Fe(e){ti.setProgressBarDelay(e)}function qe(e){ot.confirmMethod=e}function je(e){ti.setFormMode(e)}function We(e){if(null!=e){const t=document.getElementById(e);if(t instanceof Ye)return t}}function Be(e,t){if(e){const i=e.getAttribute("src");if(null!=i&&null!=t&&p(i,t))throw new Error(`Matching <turbo-frame id="${e.id}"> element has a source URL which references itself`);if(e.ownerDocument!==document&&(e=document.importNode(e,!0)),e instanceof Ye)return e.connectedCallback(),e.disconnectedCallback(),e}}!function(e){function t(e,t){e instanceof HTMLElement||i(TypeError,"parameter 1 is not of type 'HTMLElement'"),"submit"==e.type||i(TypeError,"The specified element is not a submit button"),e.form==t||i(DOMException,"The specified element is not owned by this form element","NotFoundError")}function i(e,t,i){throw new e("Failed to execute 'requestSubmit' on 'HTMLFormElement': "+t+".",i)}"function"!=typeof e.requestSubmit&&(e.requestSubmit=function(e){e?(t(e,this),e.click()):((e=document.createElement("input")).type="submit",e.hidden=!0,this.appendChild(e),e.click(),this.removeChild(e))})}(HTMLFormElement.prototype);const $e=new WeakMap;!function(){if("submitter"in Event.prototype)return;let e=window.Event.prototype;if("SubmitEvent"in window){const t=window.SubmitEvent.prototype;if(!/Apple Computer/.test(navigator.vendor)||"submitter"in t)return;e=t}addEventListener("click",i,!0),Object.defineProperty(e,"submitter",{get(){if("submit"==this.type&&this.target instanceof HTMLFormElement)return $e.get(this.target)}})}();const Ve={eager:"eager",lazy:"lazy"};class Ye extends HTMLElement{static delegateConstructor=void 0;loaded=Promise.resolve();static get observedAttributes(){return["disabled","loading","src"]}constructor(){super(),this.delegate=new Ye.delegateConstructor(this)}connectedCallback(){this.delegate.connect()}disconnectedCallback(){this.delegate.disconnect()}reload(){return this.delegate.sourceURLReloaded()}attributeChangedCallback(e){"loading"==e?this.delegate.loadingStyleChanged():"src"==e?this.delegate.sourceURLChanged():"disabled"==e&&this.delegate.disabledChanged()}get src(){return this.getAttribute("src")}set src(e){e?this.setAttribute("src",e):this.removeAttribute("src")}get refresh(){return this.getAttribute("refresh")}set refresh(e){e?this.setAttribute("refresh",e):this.removeAttribute("refresh")}get loading(){return n(this.getAttribute("loading")||"")}set loading(e){e?this.setAttribute("loading",e):this.removeAttribute("loading")}get disabled(){return this.hasAttribute("disabled")}set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}get autoscroll(){return this.hasAttribute("autoscroll")}set autoscroll(e){e?this.setAttribute("autoscroll",""):this.removeAttribute("autoscroll")}get complete(){return!this.delegate.isLoading}get isActive(){return this.ownerDocument===document&&!this.isPreview}get isPreview(){return this.ownerDocument?.documentElement?.hasAttribute("data-turbo-preview")}}class Xe{constructor(e){this.response=e}get succeeded(){return this.response.ok}get failed(){return!this.succeeded}get clientError(){return this.statusCode>=400&&this.statusCode<=499}get serverError(){return this.statusCode>=500&&this.statusCode<=599}get redirected(){return this.response.redirected}get location(){return s(this.response.url)}get isHTML(){return this.contentType&&this.contentType.match(/^(?:text\/([^\s;,]+\b)?html|application\/xhtml\+xml)\b/)}get statusCode(){return this.response.status}get contentType(){return this.header("Content-Type")}get responseText(){return this.response.clone().text()}get responseHTML(){return this.isHTML?this.response.clone().text():Promise.resolve(void 0)}header(e){return this.response.headers.get(e)}}class Ue extends Set{constructor(e){super(),this.maxSize=e}add(e){if(this.size>=this.maxSize){const e=this.values().next().value;this.delete(e)}super.add(e)}}const Ge=new Ue(20),Ke=window.fetch,Qe={get:"get",post:"post",put:"put",patch:"patch",delete:"delete"},Je={urlEncoded:"application/x-www-form-urlencoded",multipart:"multipart/form-data",plain:"text/plain"};class Ze{abortController=new AbortController;#e=()=>{};constructor(e,t,i,n=new URLSearchParams,a=null,r=Je.urlEncoded){const[o,l]=Z(s(i),t,n,r);this.delegate=e,this.url=o,this.target=a,this.fetchOptions={credentials:"same-origin",redirect:"follow",method:t,headers:{...this.defaultHeaders},body:l,signal:this.abortSignal,referrer:this.delegate.referrer?.href},this.enctype=r}get method(){return this.fetchOptions.method}set method(e){const t=this.isSafe?this.url.searchParams:this.fetchOptions.body||new FormData,i=K(e)||Qe.get;this.url.search="";const[n,s]=Z(this.url,i,t,this.enctype);this.url=n,this.fetchOptions.body=s,this.fetchOptions.method=i}get headers(){return this.fetchOptions.headers}set headers(e){this.fetchOptions.headers=e}get body(){return this.isSafe?this.url.searchParams:this.fetchOptions.body}set body(e){this.fetchOptions.body=e}get location(){return this.url}get params(){return this.url.searchParams}get entries(){return this.body?Array.from(this.body.entries()):[]}cancel(){this.abortController.abort()}async perform(){const{fetchOptions:e}=this;this.delegate.prepareRequest(this);const t=await this.#t(e);try{this.delegate.requestStarted(this),t.detail.fetchRequest?this.response=t.detail.fetchRequest.response:this.response=G(this.url.href,e);const i=await this.response;return await this.receive(i)}catch(e){if("AbortError"!==e.name)throw this.#i(e)&&this.delegate.requestErrored(this,e),e}finally{this.delegate.requestFinished(this)}}async receive(e){const t=new Xe(e);return w("turbo:before-fetch-response",{cancelable:!0,detail:{fetchResponse:t},target:this.target}).defaultPrevented?this.delegate.requestPreventedHandlingResponse(this,t):t.succeeded?this.delegate.requestSucceededWithResponse(this,t):this.delegate.requestFailedWithResponse(this,t),t}get defaultHeaders(){return{Accept:"text/html, application/xhtml+xml"}}get isSafe(){return J(this.method)}get abortSignal(){return this.abortController.signal}acceptResponseType(e){this.headers.Accept=[e,this.headers.Accept].join(", ")}async#t(e){const t=new Promise((e=>this.#e=e)),i=w("turbo:before-fetch-request",{cancelable:!0,detail:{fetchOptions:e,url:this.url,resume:this.#e},target:this.target});return this.url=i.detail.url,i.defaultPrevented&&await t,i}#i(e){return!w("turbo:fetch-request-error",{target:this.target,cancelable:!0,detail:{request:this,error:e}}).defaultPrevented}}class et{started=!1;constructor(e,t){this.delegate=e,this.element=t,this.intersectionObserver=new IntersectionObserver(this.intersect)}start(){this.started||(this.started=!0,this.intersectionObserver.observe(this.element))}stop(){this.started&&(this.started=!1,this.intersectionObserver.unobserve(this.element))}intersect=e=>{const t=e.slice(-1)[0];t?.isIntersecting&&this.delegate.elementAppearedInViewport(this.element)}}class tt{static contentType="text/vnd.turbo-stream.html";static wrap(e){return"string"==typeof e?new this(_(e)):e}constructor(e){this.fragment=ie(e)}}const it=100;class nt{#n=null;#s=null;get(e){if(this.#s&&this.#s.url===e&&this.#s.expire>Date.now())return this.#s.request}setLater(e,t,i){this.clear(),this.#n=setTimeout((()=>{t.perform(),this.set(e,t,i),this.#n=null}),it)}set(e,t,i){this.#s={url:e,request:t,expire:new Date((new Date).getTime()+i)}}clear(){this.#n&&clearTimeout(this.#n),this.#s=null}}const st=1e4,at=new nt,rt={initialized:"initialized",requesting:"requesting",waiting:"waiting",receiving:"receiving",stopping:"stopping",stopped:"stopped"};class ot{state=rt.initialized;static confirmMethod(e,t,i){return Promise.resolve(confirm(e))}constructor(e,t,i,n=!1){const s=le(t,i),a=oe(re(t,i),s),r=ne(t,i),o=ce(t,i);this.delegate=e,this.formElement=t,this.submitter=i,this.fetchRequest=new Ze(this,s,a,r,t,o),this.mustRedirect=n}get method(){return this.fetchRequest.method}set method(e){this.fetchRequest.method=e}get action(){return this.fetchRequest.url.toString()}set action(e){this.fetchRequest.url=s(e)}get body(){return this.fetchRequest.body}get enctype(){return this.fetchRequest.enctype}get isSafe(){return this.fetchRequest.isSafe}get location(){return this.fetchRequest.url}async start(){const{initialized:e,requesting:t}=rt,i=I("data-turbo-confirm",this.submitter,this.formElement);if("string"==typeof i){if(!await ot.confirmMethod(i,this.formElement,this.submitter))return}if(this.state==e)return this.state=t,this.fetchRequest.perform()}stop(){const{stopping:e,stopped:t}=rt;if(this.state!=e&&this.state!=t)return this.state=e,this.fetchRequest.cancel(),!0}prepareRequest(e){if(!e.isSafe){const t=se(F("csrf-param"))||F("csrf-token");t&&(e.headers["X-CSRF-Token"]=t)}this.requestAcceptsTurboStreamResponse(e)&&e.acceptResponseType(tt.contentType)}requestStarted(e){this.state=rt.waiting,this.submitter?.setAttribute("disabled",""),this.setSubmitsWith(),A(this.formElement),w("turbo:submit-start",{target:this.formElement,detail:{formSubmission:this}}),this.delegate.formSubmissionStarted(this)}requestPreventedHandlingResponse(e,t){at.clear(),this.result={success:t.succeeded,fetchResponse:t}}requestSucceededWithResponse(e,t){if(t.clientError||t.serverError)this.delegate.formSubmissionFailedWithResponse(this,t);else if(at.clear(),this.requestMustRedirect(e)&&ae(t)){const e=new Error("Form responses must redirect to another location");this.delegate.formSubmissionErrored(this,e)}else this.state=rt.receiving,this.result={success:!0,fetchResponse:t},this.delegate.formSubmissionSucceededWithResponse(this,t)}requestFailedWithResponse(e,t){this.result={success:!1,fetchResponse:t},this.delegate.formSubmissionFailedWithResponse(this,t)}requestErrored(e,t){this.result={success:!1,error:t},this.delegate.formSubmissionErrored(this,t)}requestFinished(e){this.state=rt.stopped,this.submitter?.removeAttribute("disabled"),this.resetSubmitterText(),L(this.formElement),w("turbo:submit-end",{target:this.formElement,detail:{formSubmission:this,...this.result}}),this.delegate.formSubmissionFinished(this)}setSubmitsWith(){if(this.submitter&&this.submitsWith)if(this.submitter.matches("button"))this.originalSubmitText=this.submitter.innerHTML,this.submitter.innerHTML=this.submitsWith;else if(this.submitter.matches("input")){const e=this.submitter;this.originalSubmitText=e.value,e.value=this.submitsWith}}resetSubmitterText(){if(this.submitter&&this.originalSubmitText)if(this.submitter.matches("button"))this.submitter.innerHTML=this.originalSubmitText;else if(this.submitter.matches("input")){this.submitter.value=this.originalSubmitText}}requestMustRedirect(e){return!e.isSafe&&this.mustRedirect}requestAcceptsTurboStreamResponse(e){return!e.isSafe||M("data-turbo-stream",this.submitter,this.formElement)}get submitsWith(){return this.submitter?.getAttribute("data-turbo-submits-with")}}class lt{constructor(e){this.element=e}get activeElement(){return this.element.ownerDocument.activeElement}get children(){return[...this.element.children]}hasAnchor(e){return null!=this.getElementForAnchor(e)}getElementForAnchor(e){return e?this.element.querySelector(`[id='${e}'], a[name='${e}']`):null}get isConnected(){return this.element.isConnected}get firstAutofocusableElement(){return B(this.element)}get permanentElements(){return ue(this.element)}getPermanentElementById(e){return he(this.element,e)}getPermanentElementMapForSnapshot(e){const t={};for(const i of this.permanentElements){const{id:n}=i,s=e.getPermanentElementById(n);s&&(t[n]=[i,s])}return t}}class ct{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("submit",this.submitCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("submit",this.submitCaptured,!0),this.started=!1)}submitCaptured=()=>{this.eventTarget.removeEventListener("submit",this.submitBubbled,!1),this.eventTarget.addEventListener("submit",this.submitBubbled,!1)};submitBubbled=e=>{if(!e.defaultPrevented){const t=e.target instanceof HTMLFormElement?e.target:void 0,i=e.submitter||void 0;t&&de(t,i)&&pe(t,i)&&this.delegate.willSubmitForm(t,i)&&(e.preventDefault(),e.stopImmediatePropagation(),this.delegate.formSubmitted(t,i))}}}class ht{#a=()=>{};#r=()=>{};constructor(e,t){this.delegate=e,this.element=t}scrollToAnchor(e){const t=this.snapshot.getElementForAnchor(e);t?(this.scrollToElement(t),this.focusElement(t)):this.scrollToPosition({x:0,y:0})}scrollToAnchorFromLocation(e){this.scrollToAnchor(a(e))}scrollToElement(e){e.scrollIntoView()}focusElement(e){e instanceof HTMLElement&&(e.hasAttribute("tabindex")?e.focus():(e.setAttribute("tabindex","-1"),e.focus(),e.removeAttribute("tabindex")))}scrollToPosition({x:e,y:t}){this.scrollRoot.scrollTo(e,t)}scrollToTop(){this.scrollToPosition({x:0,y:0})}get scrollRoot(){return window}async render(e){const{isPreview:t,shouldRender:i,willRender:n,newSnapshot:s}=e,a=n;if(i)try{this.renderPromise=new Promise((e=>this.#a=e)),this.renderer=e,await this.prepareToRenderSnapshot(e);const i=new Promise((e=>this.#r=e)),n={resume:this.#r,render:this.renderer.renderElement,renderMethod:this.renderer.renderMethod};this.delegate.allowsImmediateRender(s,n)||await i,
await this.renderSnapshot(e),this.delegate.viewRenderedSnapshot(s,t,this.renderer.renderMethod),this.delegate.preloadOnLoadLinksForView(this.element),this.finishRenderingSnapshot(e)}finally{delete this.renderer,this.#a(void 0),delete this.renderPromise}else a&&this.invalidate(e.reloadReason)}invalidate(e){this.delegate.viewInvalidated(e)}async prepareToRenderSnapshot(e){this.markAsPreview(e.isPreview),await e.prepareToRender()}markAsPreview(e){e?this.element.setAttribute("data-turbo-preview",""):this.element.removeAttribute("data-turbo-preview")}markVisitDirection(e){this.element.setAttribute("data-turbo-visit-direction",e)}unmarkVisitDirection(){this.element.removeAttribute("data-turbo-visit-direction")}async renderSnapshot(e){await e.render()}finishRenderingSnapshot(e){e.finishRendering()}}class ut extends ht{missing(){this.element.innerHTML='<strong class="turbo-frame-error">Content missing</strong>'}get snapshot(){return new lt(this.element)}}class dt{constructor(e,t){this.delegate=e,this.element=t}start(){this.element.addEventListener("click",this.clickBubbled),document.addEventListener("turbo:click",this.linkClicked),document.addEventListener("turbo:before-visit",this.willVisit)}stop(){this.element.removeEventListener("click",this.clickBubbled),document.removeEventListener("turbo:click",this.linkClicked),document.removeEventListener("turbo:before-visit",this.willVisit)}clickBubbled=e=>{this.respondsToEventTarget(e.target)?this.clickEvent=e:delete this.clickEvent};linkClicked=e=>{this.clickEvent&&this.respondsToEventTarget(e.target)&&e.target instanceof Element&&this.delegate.shouldInterceptLinkClick(e.target,e.detail.url,e.detail.originalEvent)&&(this.clickEvent.preventDefault(),e.preventDefault(),this.delegate.linkClickIntercepted(e.target,e.detail.url,e.detail.originalEvent)),delete this.clickEvent};willVisit=()=>{delete this.clickEvent};respondsToEventTarget(e){const t=e instanceof Element?e:e instanceof Node?e.parentElement:null;return t&&t.closest("turbo-frame, html")==this.element}}class pt{started=!1;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||(this.eventTarget.addEventListener("click",this.clickCaptured,!0),this.started=!0)}stop(){this.started&&(this.eventTarget.removeEventListener("click",this.clickCaptured,!0),this.started=!1)}clickCaptured=()=>{this.eventTarget.removeEventListener("click",this.clickBubbled,!1),this.eventTarget.addEventListener("click",this.clickBubbled,!1)};clickBubbled=e=>{if(e instanceof MouseEvent&&this.clickEventIsSignificant(e)){const t=Y(e.composedPath&&e.composedPath()[0]||e.target);if(t&&V(t)){const i=X(t);this.delegate.willFollowLinkToLocation(t,i,e)&&(e.preventDefault(),this.delegate.followedLinkToLocation(t,i))}}};clickEventIsSignificant(e){return!(e.target&&e.target.isContentEditable||e.defaultPrevented||e.which>1||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)}}class ft{constructor(e,t){this.delegate=e,this.linkInterceptor=new pt(this,t)}start(){this.linkInterceptor.start()}stop(){this.linkInterceptor.stop()}canPrefetchRequestToLocation(e,t){return!1}prefetchAndCacheRequestToLocation(e,t){}willFollowLinkToLocation(e,t,i){return this.delegate.willSubmitFormLinkToLocation(e,t,i)&&(e.hasAttribute("data-turbo-method")||e.hasAttribute("data-turbo-stream"))}followedLinkToLocation(e,t){const i=document.createElement("form"),n="hidden";for(const[e,s]of t.searchParams)i.append(Object.assign(document.createElement("input"),{type:n,name:e,value:s}));const s=Object.assign(t,{search:""});i.setAttribute("data-turbo","true"),i.setAttribute("action",s.href),i.setAttribute("hidden","");const a=e.getAttribute("data-turbo-method");a&&i.setAttribute("method",a);const r=e.getAttribute("data-turbo-frame");r&&i.setAttribute("data-turbo-frame",r);const o=z(e);o&&i.setAttribute("data-turbo-action",o);const l=e.getAttribute("data-turbo-confirm");l&&i.setAttribute("data-turbo-confirm",l);e.hasAttribute("data-turbo-stream")&&i.setAttribute("data-turbo-stream",""),this.delegate.submittedFormLinkToLocation(e,t,i),document.body.appendChild(i),i.addEventListener("turbo:submit-end",(()=>i.remove()),{once:!0}),requestAnimationFrame((()=>i.requestSubmit()))}}class mt{static async preservingPermanentElements(e,t,i){const n=new this(e,t);n.enter(),await i(),n.leave()}constructor(e,t){this.delegate=e,this.permanentElementMap=t}enter(){for(const e in this.permanentElementMap){const[t,i]=this.permanentElementMap[e];this.delegate.enteringBardo(t,i),this.replaceNewPermanentElementWithPlaceholder(i)}}leave(){for(const e in this.permanentElementMap){const[t]=this.permanentElementMap[e];this.replaceCurrentPermanentElementWithClone(t),this.replacePlaceholderWithPermanentElement(t),this.delegate.leavingBardo(t)}}replaceNewPermanentElementWithPlaceholder(e){const t=fe(e);e.replaceWith(t)}replaceCurrentPermanentElementWithClone(e){const t=e.cloneNode(!0);e.replaceWith(t)}replacePlaceholderWithPermanentElement(e){const t=this.getPlaceholderById(e.id);t?.replaceWith(e)}getPlaceholderById(e){return this.placeholders.find((t=>t.content==e))}get placeholders(){return[...document.querySelectorAll("meta[name=turbo-permanent-placeholder][content]")]}}class gt{#o=null;constructor(e,t,i,n,s=!0){this.currentSnapshot=e,this.newSnapshot=t,this.isPreview=n,this.willRender=s,this.renderElement=i,this.promise=new Promise(((e,t)=>this.resolvingFunctions={resolve:e,reject:t}))}get shouldRender(){return!0}get reloadReason(){}prepareToRender(){}render(){}finishRendering(){this.resolvingFunctions&&(this.resolvingFunctions.resolve(),delete this.resolvingFunctions)}async preservingPermanentElements(e){await mt.preservingPermanentElements(this,this.permanentElementMap,e)}focusFirstAutofocusableElement(){const e=this.connectedSnapshot.firstAutofocusableElement;e&&e.focus()}enteringBardo(e){this.#o||e.contains(this.currentSnapshot.activeElement)&&(this.#o=this.currentSnapshot.activeElement)}leavingBardo(e){e.contains(this.#o)&&this.#o instanceof HTMLElement&&(this.#o.focus(),this.#o=null)}get connectedSnapshot(){return this.newSnapshot.isConnected?this.newSnapshot:this.currentSnapshot}get currentElement(){return this.currentSnapshot.element}get newElement(){return this.newSnapshot.element}get permanentElementMap(){return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)}get renderMethod(){return"replace"}}class vt extends gt{static renderElement(e,t){const i=document.createRange();i.selectNodeContents(e),i.deleteContents();const n=t,s=n.ownerDocument?.createRange();s&&(s.selectNodeContents(n),e.appendChild(s.extractContents()))}constructor(e,t,i,n,s,a=!0){super(t,i,n,s,a),this.delegate=e}get shouldRender(){return!0}async render(){await x(),this.preservingPermanentElements((()=>{this.loadFrameElement()})),this.scrollFrameIntoView(),await x(),this.focusFirstAutofocusableElement(),await x(),this.activateScriptElements()}loadFrameElement(){this.delegate.willRenderFrame(this.currentElement,this.newElement),this.renderElement(this.currentElement,this.newElement)}scrollFrameIntoView(){if(this.currentElement.autoscroll||this.newElement.autoscroll){const e=this.currentElement.firstElementChild,t=me(this.currentElement.getAttribute("data-autoscroll-block"),"end"),i=ge(this.currentElement.getAttribute("data-autoscroll-behavior"),"auto");if(e)return e.scrollIntoView({block:t,behavior:i}),!0}return!1}activateScriptElements(){for(const e of this.newScriptElements){const t=b(e);e.replaceWith(t)}}get newScriptElements(){return this.currentElement.querySelectorAll("script")}}class bt{static animationDuration=300;static get defaultCSS(){return k`
      .turbo-progress-bar {
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        height: 3px;
        background: #0076ff;
        z-index: 2147483647;
        transition:
          width ${bt.animationDuration}ms ease-out,
          opacity ${bt.animationDuration/2}ms ${bt.animationDuration/2}ms ease-in;
        transform: translate3d(0, 0, 0);
      }
    `}hiding=!1;value=0;visible=!1;constructor(){this.stylesheetElement=this.createStylesheetElement(),this.progressElement=this.createProgressElement(),this.installStylesheetElement(),this.setValue(0)}show(){this.visible||(this.visible=!0,this.installProgressElement(),this.startTrickling())}hide(){this.visible&&!this.hiding&&(this.hiding=!0,this.fadeProgressElement((()=>{this.uninstallProgressElement(),this.stopTrickling(),this.visible=!1,this.hiding=!1})))}setValue(e){this.value=e,this.refresh()}installStylesheetElement(){document.head.insertBefore(this.stylesheetElement,document.head.firstChild)}installProgressElement(){this.progressElement.style.width="0",this.progressElement.style.opacity="1",document.documentElement.insertBefore(this.progressElement,document.body),this.refresh()}fadeProgressElement(e){this.progressElement.style.opacity="0",setTimeout(e,1.5*bt.animationDuration)}uninstallProgressElement(){this.progressElement.parentNode&&document.documentElement.removeChild(this.progressElement)}startTrickling(){this.trickleInterval||(this.trickleInterval=window.setInterval(this.trickle,bt.animationDuration))}stopTrickling(){window.clearInterval(this.trickleInterval),delete this.trickleInterval}trickle=()=>{this.setValue(this.value+Math.random()/100)};refresh(){requestAnimationFrame((()=>{this.progressElement.style.width=10+90*this.value+"%"}))}createStylesheetElement(){const e=document.createElement("style");return e.type="text/css",e.textContent=bt.defaultCSS,this.cspNonce&&(e.nonce=this.cspNonce),e}createProgressElement(){const e=document.createElement("div");return e.className="turbo-progress-bar",e}get cspNonce(){return F("csp-nonce")}}class yt extends lt{detailsByOuterHTML=this.children.filter((e=>!_e(e))).map((e=>Ce(e))).reduce(((e,t)=>{const{outerHTML:i}=t,n=i in e?e[i]:{type:ve(t),tracked:be(t),elements:[]};return{...e,[i]:{...n,elements:[...n.elements,t]}}}),{});get trackedElementSignature(){return Object.keys(this.detailsByOuterHTML).filter((e=>this.detailsByOuterHTML[e].tracked)).join("")}getScriptElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("script",e)}getStylesheetElementsNotInSnapshot(e){return this.getElementsMatchingTypeNotInSnapshot("stylesheet",e)}getElementsMatchingTypeNotInSnapshot(e,t){return Object.keys(this.detailsByOuterHTML).filter((e=>!(e in t.detailsByOuterHTML))).map((e=>this.detailsByOuterHTML[e])).filter((({type:t})=>t==e)).map((({elements:[e]})=>e))}get provisionalElements(){return Object.keys(this.detailsByOuterHTML).reduce(((e,t)=>{const{type:i,tracked:n,elements:s}=this.detailsByOuterHTML[t];return null!=i||n?s.length>1?[...e,...s.slice(1)]:e:[...e,...s]}),[])}getMetaValue(e){const t=this.findMetaElementByName(e);return t?t.getAttribute("content"):null}findMetaElementByName(e){return Object.keys(this.detailsByOuterHTML).reduce(((t,i)=>{const{elements:[n]}=this.detailsByOuterHTML[i];return xe(n,e)?n:t}),0)}}class _t extends lt{static fromHTMLString(e=""){return this.fromDocument(S(e))}static fromElement(e){return this.fromDocument(e.ownerDocument)}static fromDocument({documentElement:e,body:t,head:i}){return new this(e,t,new yt(i))}constructor(e,t,i){super(t),this.documentElement=e,this.headSnapshot=i}clone(){const e=this.element.cloneNode(!0),t=this.element.querySelectorAll("select"),i=e.querySelectorAll("select");for(const[e,n]of t.entries()){const t=i[e];for(const e of t.selectedOptions)e.selected=!1;for(const e of n.selectedOptions)t.options[e.index].selected=!0}for(const t of e.querySelectorAll('input[type="password"]'))t.value="";return new _t(this.documentElement,e,this.headSnapshot)}get lang(){return this.documentElement.getAttribute("lang")}get headElement(){return this.headSnapshot.element}get rootLocation(){return s(this.getSetting("root")??"/")}get cacheControlValue(){return this.getSetting("cache-control")}get isPreviewable(){return"no-preview"!=this.cacheControlValue}get isCacheable(){return"no-cache"!=this.cacheControlValue}get isVisitable(){return"reload"!=this.getSetting("visit-control")}get prefersViewTransitions(){return"same-origin"===this.headSnapshot.getMetaValue("view-transition")}get shouldMorphPage(){return"morph"===this.getSetting("refresh-method")}get shouldPreserveScrollPosition(){return"preserve"===this.getSetting("refresh-scroll")}getSetting(e){return this.headSnapshot.getMetaValue(`turbo-${e}`)}}class wt{#l=!1;#c=Promise.resolve();renderChange(e,t){return e&&this.viewTransitionsAvailable&&!this.#l?(this.#l=!0,this.#c=this.#c.then((async()=>{await document.startViewTransition(t).finished}))):this.#c=this.#c.then(t),this.#c}get viewTransitionsAvailable(){return document.startViewTransition}}const xt={action:"advance",historyChanged:!1,visitCachedSnapshot:()=>{},willRender:!0,updateHistory:!0,shouldCacheSnapshot:!0,acceptsStreamResponse:!1},Ct={visitStart:"visitStart",requestStart:"requestStart",requestEnd:"requestEnd",visitEnd:"visitEnd"},Tt={initialized:"initialized",started:"started",canceled:"canceled",failed:"failed",completed:"completed"},Et={networkFailure:0,timeoutFailure:-1,contentTypeMismatch:-2},St={advance:"forward",restore:"back",replace:"none"};class kt{identifier=P();timingMetrics={};followedRedirect=!1;historyChanged=!1;scrolled=!1;shouldCacheSnapshot=!0;acceptsStreamResponse=!1;snapshotCached=!1;state=Tt.initialized;viewTransitioner=new wt;constructor(e,t,i,n={}){this.delegate=e,this.location=t,this.restorationIdentifier=i||P();const{action:s,historyChanged:a,referrer:r,snapshot:o,snapshotHTML:l,response:c,visitCachedSnapshot:h,willRender:u,updateHistory:d,shouldCacheSnapshot:p,acceptsStreamResponse:f,direction:m}={...xt,...n};this.action=s,this.historyChanged=a,this.referrer=r,this.snapshot=o,this.snapshotHTML=l,this.response=c,this.isSamePage=this.delegate.locationWithActionIsSamePage(this.location,this.action),this.isPageRefresh=this.view.isPageRefresh(this),this.visitCachedSnapshot=h,this.willRender=u,this.updateHistory=d,this.scrolled=!u,this.shouldCacheSnapshot=p,this.acceptsStreamResponse=f,this.direction=m||St[s]}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get history(){return this.delegate.history}get restorationData(){return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)}get silent(){return this.isSamePage}start(){this.state==Tt.initialized&&(this.recordTimingMetric(Ct.visitStart),this.state=Tt.started,this.adapter.visitStarted(this),this.delegate.visitStarted(this))}cancel(){this.state==Tt.started&&(this.request&&this.request.cancel(),this.cancelRender(),this.state=Tt.canceled)}complete(){this.state==Tt.started&&(this.recordTimingMetric(Ct.visitEnd),this.adapter.visitCompleted(this),this.state=Tt.completed,this.followRedirect(),this.followedRedirect||this.delegate.visitCompleted(this))}fail(){this.state==Tt.started&&(this.state=Tt.failed,this.adapter.visitFailed(this),this.delegate.visitCompleted(this))}changeHistory(){if(!this.historyChanged&&this.updateHistory){const e=O(this.location.href===this.referrer?.href?"replace":this.action);this.history.update(e,this.location,this.restorationIdentifier),this.historyChanged=!0}}issueRequest(){this.hasPreloadedResponse()?this.simulateRequest():this.shouldIssueRequest()&&!this.request&&(this.request=new Ze(this,Qe.get,this.location),this.request.perform())}simulateRequest(){this.response&&(this.startRequest(),this.recordResponse(),this.finishRequest())}startRequest(){this.recordTimingMetric(Ct.requestStart),this.adapter.visitRequestStarted(this)}recordResponse(e=this.response){if(this.response=e,e){const{statusCode:t}=e;Te(t)?this.adapter.visitRequestCompleted(this):this.adapter.visitRequestFailedWithStatusCode(this,t)}}finishRequest(){this.recordTimingMetric(Ct.requestEnd),this.adapter.visitRequestFinished(this)}loadResponse(){if(this.response){const{statusCode:e,responseHTML:t}=this.response;this.render((async()=>{if(this.shouldCacheSnapshot&&this.cacheSnapshot(),this.view.renderPromise&&await this.view.renderPromise,Te(e)&&null!=t){const e=_t.fromHTMLString(t);await this.renderPageSnapshot(e,!1),this.adapter.visitRendered(this),this.complete()}else await this.view.renderError(_t.fromHTMLString(t),this),this.adapter.visitRendered(this),this.fail()}))}}getCachedSnapshot(){const e=this.view.getCachedSnapshotForLocation(this.location)||this.getPreloadedSnapshot();if(e&&(!a(this.location)||e.hasAnchor(a(this.location)))&&("restore"==this.action||e.isPreviewable))return e}getPreloadedSnapshot(){if(this.snapshotHTML)return _t.fromHTMLString(this.snapshotHTML)}hasCachedSnapshot(){return null!=this.getCachedSnapshot()}loadCachedSnapshot(){const e=this.getCachedSnapshot();if(e){const t=this.shouldIssueRequest();this.render((async()=>{this.cacheSnapshot(),this.isSamePage||this.isPageRefresh?this.adapter.visitRendered(this):(this.view.renderPromise&&await this.view.renderPromise,await this.renderPageSnapshot(e,t),this.adapter.visitRendered(this),t||this.complete())}))}}followRedirect(){this.redirectedToLocation&&!this.followedRedirect&&this.response?.redirected&&(this.adapter.visitProposedToLocation(this.redirectedToLocation,{action:"replace",response:this.response,shouldCacheSnapshot:!1,willRender:!1}),this.followedRedirect=!0)}goToSamePageAnchor(){this.isSamePage&&this.render((async()=>{this.cacheSnapshot(),this.performScroll(),this.changeHistory(),this.adapter.visitRendered(this)}))}prepareRequest(e){this.acceptsStreamResponse&&e.acceptResponseType(tt.contentType)}requestStarted(){this.startRequest()}requestPreventedHandlingResponse(e,t){}async requestSucceededWithResponse(e,t){const i=await t.responseHTML,{redirected:n,statusCode:s}=t;null==i?this.recordResponse({statusCode:Et.contentTypeMismatch,redirected:n}):(this.redirectedToLocation=t.redirected?t.location:void 0,this.recordResponse({statusCode:s,responseHTML:i,redirected:n}))}async requestFailedWithResponse(e,t){const i=await t.responseHTML,{redirected:n,statusCode:s}=t;null==i?this.recordResponse({statusCode:Et.contentTypeMismatch,redirected:n}):this.recordResponse({statusCode:s,responseHTML:i,redirected:n})}requestErrored(e,t){this.recordResponse({statusCode:Et.networkFailure,redirected:!1})}requestFinished(){this.finishRequest()}performScroll(){this.scrolled||this.view.forceReloaded||this.view.shouldPreserveScrollPosition(this)||("restore"==this.action?this.scrollToRestoredPosition()||this.scrollToAnchor()||this.view.scrollToTop():this.scrollToAnchor()||this.view.scrollToTop(),this.isSamePage&&this.delegate.visitScrolledToSamePageLocation(this.view.lastRenderedLocation,this.location),this.scrolled=!0)}scrollToRestoredPosition(){const{scrollPosition:e}=this.restorationData;if(e)return this.view.scrollToPosition(e),!0}scrollToAnchor(){const e=a(this.location);if(null!=e)return this.view.scrollToAnchor(e),!0}recordTimingMetric(e){this.timingMetrics[e]=(new Date).getTime()}getTimingMetrics(){return{...this.timingMetrics}}getHistoryMethodForAction(e){switch(e){case"replace":return history.replaceState;case"advance":case"restore":return history.pushState}}hasPreloadedResponse(){return"object"==typeof this.response}shouldIssueRequest(){return!this.isSamePage&&("restore"==this.action?!this.hasCachedSnapshot():this.willRender)}cacheSnapshot(){this.snapshotCached||(this.view.cacheSnapshot(this.snapshot).then((e=>e&&this.visitCachedSnapshot(e))),this.snapshotCached=!0)}async render(e){this.cancelRender(),this.frame=await x(),await e(),delete this.frame}async renderPageSnapshot(e,t){await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(e),(async()=>{await this.view.renderPage(e,t,this.willRender,this),this.performScroll()}))}cancelRender(){this.frame&&(cancelAnimationFrame(this.frame),delete this.frame)}}class Dt{progressBar=new bt;constructor(e){this.session=e}visitProposedToLocation(e,t){h(e,this.navigator.rootLocation)?this.navigator.startVisit(e,t?.restorationIdentifier||P(),t):window.location.href=e.toString()}visitStarted(e){this.location=e.location,e.loadCachedSnapshot(),e.issueRequest(),e.goToSamePageAnchor()}visitRequestStarted(e){this.progressBar.setValue(0),e.hasCachedSnapshot()||"restore"!=e.action?this.showVisitProgressBarAfterDelay():this.showProgressBar()}visitRequestCompleted(e){e.loadResponse()}visitRequestFailedWithStatusCode(e,t){switch(t){case Et.networkFailure:case Et.timeoutFailure:case Et.contentTypeMismatch:return this.reload({reason:"request_failed",context:{statusCode:t}});default:return e.loadResponse()}}visitRequestFinished(e){}visitCompleted(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}pageInvalidated(e){this.reload(e)}visitFailed(e){this.progressBar.setValue(1),this.hideVisitProgressBar()}visitRendered(e){}formSubmissionStarted(e){this.progressBar.setValue(0),this.showFormProgressBarAfterDelay()}formSubmissionFinished(e){this.progressBar.setValue(1),this.hideFormProgressBar()}showVisitProgressBarAfterDelay(){this.visitProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay)}hideVisitProgressBar(){this.progressBar.hide(),null!=this.visitProgressBarTimeout&&(window.clearTimeout(this.visitProgressBarTimeout),delete this.visitProgressBarTimeout)}showFormProgressBarAfterDelay(){null==this.formProgressBarTimeout&&(this.formProgressBarTimeout=window.setTimeout(this.showProgressBar,this.session.progressBarDelay))}hideFormProgressBar(){this.progressBar.hide(),null!=this.formProgressBarTimeout&&(window.clearTimeout(this.formProgressBarTimeout),delete this.formProgressBarTimeout)}showProgressBar=()=>{this.progressBar.show()};reload(e){w("turbo:reload",{detail:e}),window.location.href=this.location?.toString()||window.location.href}get navigator(){return this.session.navigator}}class Pt{selector="[data-turbo-temporary]";deprecatedSelector="[data-turbo-cache=false]";started=!1;start(){this.started||(this.started=!0,addEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}stop(){this.started&&(this.started=!1,removeEventListener("turbo:before-cache",this.removeTemporaryElements,!1))}removeTemporaryElements=()=>{for(const e of this.temporaryElements)e.remove()};get temporaryElements(){return[...document.querySelectorAll(this.selector),...this.temporaryElementsWithDeprecation]}get temporaryElementsWithDeprecation(){const e=document.querySelectorAll(this.deprecatedSelector);return e.length&&console.warn(`The ${this.deprecatedSelector} selector is deprecated and will be removed in a future version. Use ${this.selector} instead.`),[...e]}}class It{constructor(e,t){this.session=e,this.element=t,this.linkInterceptor=new dt(this,t),this.formSubmitObserver=new ct(this,t)}start(){this.linkInterceptor.start(),this.formSubmitObserver.start()}stop(){this.linkInterceptor.stop(),this.formSubmitObserver.stop()}shouldInterceptLinkClick(e,t,i){return this.#h(e)}linkClickIntercepted(e,t,i){const n=this.#u(e);n&&n.delegate.linkClickIntercepted(e,t,i)}willSubmitForm(e,t){return null==e.closest("turbo-frame")&&this.#d(e,t)&&this.#h(e,t)}formSubmitted(e,t){const i=this.#u(e,t);i&&i.delegate.formSubmitted(e,t)}#d(e,t){const i=r(e,t),n=this.element.ownerDocument.querySelector('meta[name="turbo-root"]'),a=s(n?.content??"/");return this.#h(e,t)&&h(i,a)}#h(e,t){if(e instanceof HTMLFormElement?this.session.submissionIsNavigatable(e,t):this.session.elementIsNavigatable(e)){const i=this.#u(e,t);return!!i&&i!=e.closest("turbo-frame")}return!1}#u(e,t){const i=t?.getAttribute("data-turbo-frame")||e.getAttribute("data-turbo-frame");if(i&&"_top"!=i){const e=this.element.querySelector(`#${i}:not([disabled])`);if(e instanceof Ye)return e}}}class Mt{location;restorationIdentifier=P();restorationData={};started=!1;pageLoaded=!1;currentIndex=0;constructor(e){this.delegate=e}start(){this.started||(addEventListener("popstate",this.onPopState,!1),addEventListener("load",this.onPageLoad,!1),this.currentIndex=history.state?.turbo?.restorationIndex||0,this.started=!0,this.replace(new URL(window.location.href)))}stop(){this.started&&(removeEventListener("popstate",this.onPopState,!1),removeEventListener("load",this.onPageLoad,!1),this.started=!1)}push(e,t){this.update(history.pushState,e,t)}replace(e,t){this.update(history.replaceState,e,t)}update(e,t,i=P()){e===history.pushState&&++this.currentIndex;const n={turbo:{restorationIdentifier:i,restorationIndex:this.currentIndex}};e.call(history,n,"",t.href),this.location=t,this.restorationIdentifier=i}getRestorationDataForIdentifier(e){return this.restorationData[e]||{}}updateRestorationData(e){const{restorationIdentifier:t}=this,i=this.restorationData[t];this.restorationData[t]={...i,...e}}assumeControlOfScrollRestoration(){this.previousScrollRestoration||(this.previousScrollRestoration=history.scrollRestoration??"auto",history.scrollRestoration="manual")}relinquishControlOfScrollRestoration(){this.previousScrollRestoration&&(history.scrollRestoration=this.previousScrollRestoration,delete this.previousScrollRestoration)}onPopState=e=>{if(this.shouldHandlePopState()){const{turbo:t}=e.state||{};if(t){this.location=new URL(window.location.href);const{restorationIdentifier:e,restorationIndex:i}=t;this.restorationIdentifier=e;const n=i>this.currentIndex?"forward":"back";this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location,e,n),this.currentIndex=i}}};onPageLoad=async()=>{await E(),this.pageLoaded=!0};shouldHandlePopState(){return this.pageIsLoaded()}pageIsLoaded(){return this.pageLoaded||"complete"==document.readyState}}class At{started=!1;#p=null;constructor(e,t){this.delegate=e,this.eventTarget=t}start(){this.started||("loading"===this.eventTarget.readyState?this.eventTarget.addEventListener("DOMContentLoaded",this.#f,{once:!0}):this.#f())}stop(){this.started&&(this.eventTarget.removeEventListener("mouseenter",this.#m,{capture:!0,passive:!0}),this.eventTarget.removeEventListener("mouseleave",this.#g,{capture:!0,passive:!0}),this.eventTarget.removeEventListener("turbo:before-fetch-request",this.#v,!0),this.started=!1)}#f=()=>{this.eventTarget.addEventListener("mouseenter",this.#m,{capture:!0,passive:!0}),this.eventTarget.addEventListener("mouseleave",this.#g,{capture:!0,passive:!0}),this.eventTarget.addEventListener("turbo:before-fetch-request",this.#v,!0),this.started=!0};#m=e=>{if("false"===F("turbo-prefetch"))return;const t=e.target;if(t.matches&&t.matches("a[href]:not([target^=_]):not([download])")&&this.#b(t)){const e=t,i=X(e);if(this.delegate.canPrefetchRequestToLocation(e,i)){this.#p=e;const n=new Ze(this,Qe.get,i,new URLSearchParams,t);at.setLater(i.toString(),n,this.#y)}}};#g=e=>{e.target===this.#p&&this.#_()};#_=()=>{at.clear(),this.#p=null};#v=e=>{if("FORM"!==e.target.tagName&&"get"===e.detail.fetchOptions.method){const t=at.get(e.detail.url.toString());t&&(e.detail.fetchRequest=t),at.clear()}};prepareRequest(e){const t=e.target;e.headers["X-Sec-Purpose"]="prefetch";const i=t.closest("turbo-frame"),n=t.getAttribute("data-turbo-frame")||i?.getAttribute("target")||i?.id;n&&"_top"!==n&&(e.headers["Turbo-Frame"]=n)}requestSucceededWithResponse(){}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}get#y(){return Number(F("turbo-prefetch-cache-time"))||st}#b(e){return!!e.getAttribute("href")&&(!Lt(e)&&(!Nt(e)&&(!Ot(e)&&(!Rt(e)&&!Ht(e)))))}}const Lt=e=>e.origin!==document.location.origin||!["http:","https:"].includes(e.protocol)||e.hasAttribute("target"),Nt=e=>e.pathname+e.search===document.location.pathname+document.location.search||e.href.startsWith("#"),Ot=e=>{if("false"===e.getAttribute("data-turbo-prefetch"))return!0;if("false"===e.getAttribute("data-turbo"))return!0;const t=j(e,"[data-turbo-prefetch]");return!(!t||"false"!==t.getAttribute("data-turbo-prefetch"))},Rt=e=>{const t=e.getAttribute("data-turbo-method");return!(!t||"get"===t.toLowerCase())||(!!zt(e)||(!!e.hasAttribute("data-turbo-confirm")||!!e.hasAttribute("data-turbo-stream")))},zt=e=>e.hasAttribute("data-remote")||e.hasAttribute("data-behavior")||e.hasAttribute("data-confirm")||e.hasAttribute("data-method"),Ht=e=>w("turbo:before-prefetch",{target:e,cancelable:!0}).defaultPrevented;class Ft{constructor(e){this.delegate=e}proposeVisit(e,t={}){this.delegate.allowsVisitingLocationWithAction(e,t.action)&&this.delegate.visitProposedToLocation(e,t)}startVisit(e,t,i={}){this.stop(),this.currentVisit=new kt(this,s(e),t,{referrer:this.location,...i}),this.currentVisit.start()}submitForm(e,t){this.stop(),this.formSubmission=new ot(this,e,t,!0),this.formSubmission.start()}stop(){this.formSubmission&&(this.formSubmission.stop(),delete this.formSubmission),this.currentVisit&&(this.currentVisit.cancel(),delete this.currentVisit)}get adapter(){return this.delegate.adapter}get view(){return this.delegate.view}get rootLocation(){return this.view.snapshot.rootLocation}get history(){return this.delegate.history}formSubmissionStarted(e){"function"==typeof this.adapter.formSubmissionStarted&&this.adapter.formSubmissionStarted(e)}async formSubmissionSucceededWithResponse(e,t){if(e==this.formSubmission){const i=await t.responseHTML;if(i){const n=e.isSafe;n||this.view.clearSnapshotCache();const{statusCode:s,redirected:a}=t,r={action:this.#w(e,t),shouldCacheSnapshot:n,response:{statusCode:s,responseHTML:i,redirected:a}};this.proposeVisit(t.location,r)}}}async formSubmissionFailedWithResponse(e,t){const i=await t.responseHTML;if(i){const e=_t.fromHTMLString(i);t.serverError?await this.view.renderError(e,this.currentVisit):await this.view.renderPage(e,!1,!0,this.currentVisit),e.shouldPreserveScrollPosition||this.view.scrollToTop(),this.view.clearSnapshotCache()}}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished(e){"function"==typeof this.adapter.formSubmissionFinished&&this.adapter.formSubmissionFinished(e)}visitStarted(e){this.delegate.visitStarted(e)}visitCompleted(e){this.delegate.visitCompleted(e)}locationWithActionIsSamePage(e,t){const i=a(e),n=a(this.view.lastRenderedLocation),s="restore"===t&&void 0===i;return"replace"!==t&&u(e)===u(this.view.lastRenderedLocation)&&(s||null!=i&&i!==n)}visitScrolledToSamePageLocation(e,t){this.delegate.visitScrolledToSamePageLocation(e,t)}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}#w(e,t){const{submitter:i,formElement:n}=e;return z(i,n)||this.#x(t)}#x(e){return e.redirected&&e.location.href===this.location?.href?"replace":"advance"}}const qt={initial:0,loading:1,interactive:2,complete:3};class jt{stage=qt.initial;started=!1;constructor(e){this.delegate=e}start(){this.started||(this.stage==qt.initial&&(this.stage=qt.loading),document.addEventListener("readystatechange",this.interpretReadyState,!1),addEventListener("pagehide",this.pageWillUnload,!1),this.started=!0)}stop(){this.started&&(document.removeEventListener("readystatechange",this.interpretReadyState,!1),removeEventListener("pagehide",this.pageWillUnload,!1),this.started=!1)}interpretReadyState=()=>{const{readyState:e}=this;"interactive"==e?this.pageIsInteractive():"complete"==e&&this.pageIsComplete()};pageIsInteractive(){this.stage==qt.loading&&(this.stage=qt.interactive,this.delegate.pageBecameInteractive())}pageIsComplete(){this.pageIsInteractive(),this.stage==qt.interactive&&(this.stage=qt.complete,this.delegate.pageLoaded())}pageWillUnload=()=>{this.delegate.pageWillUnload()};get readyState(){return document.readyState}}class Wt{started=!1;constructor(e){this.delegate=e}start(){this.started||(addEventListener("scroll",this.onScroll,!1),this.onScroll(),this.started=!0)}stop(){this.started&&(removeEventListener("scroll",this.onScroll,!1),this.started=!1)}onScroll=()=>{this.updatePosition({x:window.pageXOffset,y:window.pageYOffset})};updatePosition(e){this.delegate.scrollPositionChanged(e)}}class Bt{render({fragment:e}){mt.preservingPermanentElements(this,Ee(e),(()=>{Se(e,(()=>{ke((()=>{document.documentElement.appendChild(e)}))}))}))}enteringBardo(e,t){t.replaceWith(e.cloneNode(!0))}leavingBardo(){}}class $t{sources=new Set;#C=!1;constructor(e){this.delegate=e}start(){this.#C||(this.#C=!0,addEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}stop(){this.#C&&(this.#C=!1,removeEventListener("turbo:before-fetch-response",this.inspectFetchResponse,!1))}connectStreamSource(e){this.streamSourceIsConnected(e)||(this.sources.add(e),e.addEventListener("message",this.receiveMessageEvent,!1))}disconnectStreamSource(e){this.streamSourceIsConnected(e)&&(this.sources.delete(e),e.removeEventListener("message",this.receiveMessageEvent,!1))}streamSourceIsConnected(e){return this.sources.has(e)}inspectFetchResponse=e=>{const t=Pe(e);t&&Ie(t)&&(e.preventDefault(),this.receiveMessageResponse(t))};receiveMessageEvent=e=>{this.#C&&"string"==typeof e.data&&this.receiveMessageHTML(e.data)};async receiveMessageResponse(e){const t=await e.responseHTML;t&&this.receiveMessageHTML(t)}receiveMessageHTML(e){this.delegate.receivedMessageFromStream(tt.wrap(e))}}class Vt extends gt{static renderElement(e,t){const{documentElement:i,body:n}=document;i.replaceChild(t,n)}async render(){this.replaceHeadAndBody(),this.activateScriptElements()}replaceHeadAndBody(){const{documentElement:e,head:t}=document;e.replaceChild(this.newHead,t),this.renderElement(this.currentElement,this.newElement)}activateScriptElements(){for(const e of this.scriptElements){const t=e.parentNode;if(t){const i=b(e);t.replaceChild(i,e)}}}get newHead(){return this.newSnapshot.headSnapshot.element}get scriptElements(){return document.documentElement.querySelectorAll("script")}}var Yt=function(){function e(e,i,n={}){e instanceof Document&&(e=e.documentElement),"string"==typeof i&&(i=b(i));let s=y(i);return t(e,s,d(e,s,n))}function t(e,i,a){if(a.head.block){let n=e.querySelector("head"),s=i.querySelector("head");if(n&&s){let r=c(s,n,a);return void Promise.all(r).then((function(){t(e,i,Object.assign(a,{head:{block:!1,ignore:!0}}))}))}}if("innerHTML"===a.morphStyle)return s(i,e,a),e.children;if("outerHTML"===a.morphStyle||null==a.morphStyle){let t=w(i,e,a),s=t?.previousSibling,r=t?.nextSibling,o=n(e,t,a);return t?_(s,o,r):[]}throw"Do not understand how to morph style "+a.morphStyle}function i(e,t){return t.ignoreActiveValue&&e===document.activeElement&&e!==document.body}function n(e,t,n){if(!n.ignoreActive||e!==document.activeElement)return null==t?!1===n.callbacks.beforeNodeRemoved(e)?e:(e.remove(),n.callbacks.afterNodeRemoved(e),null):f(e,t)?(!1===n.callbacks.beforeNodeMorphed(e,t)||(e instanceof HTMLHeadElement&&n.head.ignore||(e instanceof HTMLHeadElement&&"morph"!==n.head.style?c(t,e,n):(r(t,e,n),i(e,n)||s(t,e,n))),n.callbacks.afterNodeMorphed(e,t)),e):!1===n.callbacks.beforeNodeRemoved(e)||!1===n.callbacks.beforeNodeAdded(t)?e:(e.parentElement.replaceChild(t,e),n.callbacks.afterNodeAdded(t),n.callbacks.afterNodeRemoved(e),t)}function s(e,t,i){let s,a=e.firstChild,r=t.firstChild;for(;a;){if(s=a,a=s.nextSibling,null==r){if(!1===i.callbacks.beforeNodeAdded(s))return;t.appendChild(s),i.callbacks.afterNodeAdded(s),S(i,s);continue}if(p(s,r,i)){n(r,s,i),r=r.nextSibling,S(i,s);continue}let o=g(e,t,s,r,i);if(o){r=m(r,o,i),n(o,s,i),S(i,s);continue}let l=v(e,t,s,r,i);if(l)r=m(r,l,i),n(l,s,i),S(i,s);else{if(!1===i.callbacks.beforeNodeAdded(s))return;t.insertBefore(s,r),i.callbacks.afterNodeAdded(s),S(i,s)}}for(;null!==r;){let e=r;r=r.nextSibling,C(e,i)}}function a(e,t,i,n){return!("value"!==e||!n.ignoreActiveValue||t!==document.activeElement)||!1===n.callbacks.beforeAttributeUpdated(e,t,i)}function r(e,t,n){let s=e.nodeType;if(1===s){const i=e.attributes,s=t.attributes;for(const e of i)a(e.name,t,"update",n)||t.getAttribute(e.name)!==e.value&&t.setAttribute(e.name,e.value);for(let i=s.length-1;0<=i;i--){const r=s[i];a(r.name,t,"remove",n)||(e.hasAttribute(r.name)||t.removeAttribute(r.name))}}8!==s&&3!==s||t.nodeValue!==e.nodeValue&&(t.nodeValue=e.nodeValue),i(t,n)||l(e,t,n)}function o(e,t,i,n){if(e[i]!==t[i]){let s=a(i,t,"update",n);s||(t[i]=e[i]),e[i]?s||t.setAttribute(i,e[i]):a(i,t,"remove",n)||t.removeAttribute(i)}}function l(e,t,i){if(e instanceof HTMLInputElement&&t instanceof HTMLInputElement&&"file"!==e.type){let n=e.value,s=t.value;o(e,t,"checked",i),o(e,t,"disabled",i),e.hasAttribute("value")?n!==s&&(a("value",t,"update",i)||(t.setAttribute("value",n),t.value=n)):a("value",t,"remove",i)||(t.value="",t.removeAttribute("value"))}else if(e instanceof HTMLOptionElement)o(e,t,"selected",i);else if(e instanceof HTMLTextAreaElement&&t instanceof HTMLTextAreaElement){let n=e.value,s=t.value;if(a("value",t,"update",i))return;n!==s&&(t.value=n),t.firstChild&&t.firstChild.nodeValue!==n&&(t.firstChild.nodeValue=n)}}function c(e,t,i){let n=[],s=[],a=[],r=[],o=i.head.style,l=new Map;for(const t of e.children)l.set(t.outerHTML,t);for(const e of t.children){let t=l.has(e.outerHTML),n=i.head.shouldReAppend(e),c=i.head.shouldPreserve(e);t||c?n?s.push(e):(l.delete(e.outerHTML),a.push(e)):"append"===o?n&&(s.push(e),r.push(e)):!1!==i.head.shouldRemove(e)&&s.push(e)}r.push(...l.values());let c=[];for(const e of r){let s=document.createRange().createContextualFragment(e.outerHTML).firstChild;if(!1!==i.callbacks.beforeNodeAdded(s)){if(s.href||s.src){let e=null,t=new Promise((function(t){e=t}));s.addEventListener("load",(function(){e()})),c.push(t)}t.appendChild(s),i.callbacks.afterNodeAdded(s),n.push(s)}}for(const e of s)!1!==i.callbacks.beforeNodeRemoved(e)&&(t.removeChild(e),i.callbacks.afterNodeRemoved(e));return i.head.afterHeadMorphed(t,{added:n,kept:a,removed:s}),c}function h(){}function u(e){let t={};return Object.assign(t,M),Object.assign(t,e),t.callbacks={},Object.assign(t.callbacks,M.callbacks),Object.assign(t.callbacks,e.callbacks),t.head={},Object.assign(t.head,M.head),Object.assign(t.head,e.head),t}function d(e,t,i){return{target:e,newContent:t,config:i=u(i),morphStyle:i.morphStyle,ignoreActive:i.ignoreActive,ignoreActiveValue:i.ignoreActiveValue,idMap:P(e,t),deadIds:new Set,callbacks:i.callbacks,head:i.head}}function p(e,t,i){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName&&(""!==e.id&&e.id===t.id||k(i,e,t)>0))}function f(e,t){return null!=e&&null!=t&&(e.nodeType===t.nodeType&&e.tagName===t.tagName)}function m(e,t,i){for(;e!==t;){let t=e;e=e.nextSibling,C(t,i)}return S(i,t),t.nextSibling}function g(e,t,i,n,s){let a=k(s,i,t),r=null;if(a>0){let t=n,r=0;for(;null!=t;){if(p(i,t,s))return t;if(r+=k(s,t,e),r>a)return null;t=t.nextSibling}}return r}function v(e,t,i,n,s){let a=n,r=i.nextSibling,o=0;for(;null!=a;){if(k(s,a,e)>0)return null;if(f(i,a))return a;if(f(r,a)&&(o++,r=r.nextSibling,o>=2))return null;a=a.nextSibling}return a}function b(e){let t=new DOMParser,i=e.replace(/<svg(\s[^>]*>|>)([\s\S]*?)<\/svg>/gim,"");if(i.match(/<\/html>/)||i.match(/<\/head>/)||i.match(/<\/body>/)){let n=t.parseFromString(e,"text/html");if(i.match(/<\/html>/))return n.generatedByIdiomorph=!0,n;{let e=n.firstChild;return e?(e.generatedByIdiomorph=!0,e):null}}{let i=t.parseFromString("<body><template>"+e+"</template></body>","text/html").body.querySelector("template").content;return i.generatedByIdiomorph=!0,i}}function y(e){if(null==e){return document.createElement("div")}if(e.generatedByIdiomorph)return e;if(e instanceof Node){const t=document.createElement("div");return t.append(e),t}{const t=document.createElement("div");for(const i of[...e])t.append(i);return t}}function _(e,t,i){let n=[],s=[];for(;null!=e;)n.push(e),e=e.previousSibling;for(;n.length>0;){let e=n.pop();s.push(e),t.parentElement.insertBefore(e,t)}for(s.push(t);null!=i;)n.push(i),s.push(i),i=i.nextSibling;for(;n.length>0;)t.parentElement.insertBefore(n.pop(),t.nextSibling);return s}function w(e,t,i){let n;n=e.firstChild;let s=n,a=0;for(;n;){let e=x(n,t,i);e>a&&(s=n,a=e),n=n.nextSibling}return s}function x(e,t,i){return f(e,t)?.5+k(i,e,t):0}function C(e,t){S(t,e),!1!==t.callbacks.beforeNodeRemoved(e)&&(e.remove(),t.callbacks.afterNodeRemoved(e))}function T(e,t){return!e.deadIds.has(t)}function E(e,t,i){return(e.idMap.get(i)||I).has(t)}function S(e,t){let i=e.idMap.get(t)||I;for(const t of i)e.deadIds.add(t)}function k(e,t,i){let n=e.idMap.get(t)||I,s=0;for(const t of n)T(e,t)&&E(e,t,i)&&++s;return s}function D(e,t){let i=e.parentElement,n=e.querySelectorAll("[id]");for(const e of n){let n=e;for(;n!==i&&null!=n;){let i=t.get(n);null==i&&(i=new Set,t.set(n,i)),i.add(e.id),n=n.parentElement}}}function P(e,t){let i=new Map;return D(e,i),D(t,i),i}let I=new Set,M={morphStyle:"outerHTML",callbacks:{beforeNodeAdded:h,afterNodeAdded:h,beforeNodeMorphed:h,afterNodeMorphed:h,beforeNodeRemoved:h,afterNodeRemoved:h,beforeAttributeUpdated:h},head:{style:"merge",shouldPreserve:function(e){return"true"===e.getAttribute("im-preserve")},shouldReAppend:function(e){return"true"===e.getAttribute("im-re-append")},shouldRemove:h,afterHeadMorphed:h
}};return{morph:e,defaults:M}}();class Xt extends gt{static renderElement(e,t){document.body&&t instanceof HTMLBodyElement?document.body.replaceWith(t):document.documentElement.appendChild(t)}get shouldRender(){return this.newSnapshot.isVisitable&&this.trackedElementsAreIdentical}get reloadReason(){return this.newSnapshot.isVisitable?this.trackedElementsAreIdentical?void 0:{reason:"tracked_element_mismatch"}:{reason:"turbo_visit_control_is_reload"}}async prepareToRender(){this.#T(),await this.mergeHead()}async render(){this.willRender&&await this.replaceBody()}finishRendering(){super.finishRendering(),this.isPreview||this.focusFirstAutofocusableElement()}get currentHeadSnapshot(){return this.currentSnapshot.headSnapshot}get newHeadSnapshot(){return this.newSnapshot.headSnapshot}get newElement(){return this.newSnapshot.element}#T(){const{documentElement:e}=this.currentSnapshot,{lang:t}=this.newSnapshot;t?e.setAttribute("lang",t):e.removeAttribute("lang")}async mergeHead(){const e=this.mergeProvisionalElements(),t=this.copyNewHeadStylesheetElements();this.copyNewHeadScriptElements(),await e,await t,this.willRender&&this.removeUnusedDynamicStylesheetElements()}async replaceBody(){await this.preservingPermanentElements((async()=>{this.activateNewBody(),await this.assignNewBody()}))}get trackedElementsAreIdentical(){return this.currentHeadSnapshot.trackedElementSignature==this.newHeadSnapshot.trackedElementSignature}async copyNewHeadStylesheetElements(){const e=[];for(const t of this.newHeadStylesheetElements)e.push(N(t)),document.head.appendChild(t);await Promise.all(e)}copyNewHeadScriptElements(){for(const e of this.newHeadScriptElements)document.head.appendChild(b(e))}removeUnusedDynamicStylesheetElements(){for(const e of this.unusedDynamicStylesheetElements)document.head.removeChild(e)}async mergeProvisionalElements(){const e=[...this.newHeadProvisionalElements];for(const t of this.currentHeadProvisionalElements)this.isCurrentElementInElementList(t,e)||document.head.removeChild(t);for(const t of e)document.head.appendChild(t)}isCurrentElementInElementList(e,t){for(const[i,n]of t.entries()){if("TITLE"==e.tagName){if("TITLE"!=n.tagName)continue;if(e.innerHTML==n.innerHTML)return t.splice(i,1),!0}if(n.isEqualNode(e))return t.splice(i,1),!0}return!1}removeCurrentHeadProvisionalElements(){for(const e of this.currentHeadProvisionalElements)document.head.removeChild(e)}copyNewHeadProvisionalElements(){for(const e of this.newHeadProvisionalElements)document.head.appendChild(e)}activateNewBody(){document.adoptNode(this.newElement),this.activateNewBodyScriptElements()}activateNewBodyScriptElements(){for(const e of this.newBodyScriptElements){const t=b(e);e.replaceWith(t)}}async assignNewBody(){await this.renderElement(this.currentElement,this.newElement)}get unusedDynamicStylesheetElements(){return this.oldHeadStylesheetElements.filter((e=>"dynamic"===e.getAttribute("data-turbo-track")))}get oldHeadStylesheetElements(){return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)}get newHeadStylesheetElements(){return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)}get newHeadScriptElements(){return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)}get currentHeadProvisionalElements(){return this.currentHeadSnapshot.provisionalElements}get newHeadProvisionalElements(){return this.newHeadSnapshot.provisionalElements}get newBodyScriptElements(){return this.newElement.querySelectorAll("script")}}class Ut extends Xt{async render(){this.willRender&&await this.#E()}get renderMethod(){return"morph"}async#E(){this.#S(this.currentElement,this.newElement),this.#k(),w("turbo:morph",{detail:{currentElement:this.currentElement,newElement:this.newElement}})}#S(e,t,i="outerHTML"){this.isMorphingTurboFrame=this.#D(e),Yt.morph(e,t,{morphStyle:i,callbacks:{beforeNodeAdded:this.#P,beforeNodeMorphed:this.#I,beforeAttributeUpdated:this.#M,beforeNodeRemoved:this.#A,afterNodeMorphed:this.#L}})}#P=e=>!(e.id&&e.hasAttribute("data-turbo-permanent")&&document.getElementById(e.id));#I=(e,t)=>{if(e instanceof HTMLElement){if(e.hasAttribute("data-turbo-permanent")||!this.isMorphingTurboFrame&&this.#D(e))return!1;return!w("turbo:before-morph-element",{cancelable:!0,target:e,detail:{newElement:t}}).defaultPrevented}};#M=(e,t,i)=>!w("turbo:before-morph-attribute",{cancelable:!0,target:t,detail:{attributeName:e,mutationType:i}}).defaultPrevented;#L=(e,t)=>{t instanceof HTMLElement&&w("turbo:morph-element",{target:e,detail:{newElement:t}})};#A=e=>this.#I(e);#k(){this.#N().forEach((e=>{this.#D(e)&&(this.#O(e),e.reload())}))}#O(e){e.addEventListener("turbo:before-frame-render",(e=>{e.detail.render=this.#R}),{once:!0})}#R=(e,t)=>{w("turbo:before-frame-morph",{target:e,detail:{currentElement:e,newElement:t}}),this.#S(e,t.children,"innerHTML")};#D(e){return e.src&&"morph"===e.refresh}#N(){return Array.from(document.querySelectorAll("turbo-frame[src]")).filter((e=>!e.closest("[data-turbo-permanent]")))}}class Gt{keys=[];snapshots={};constructor(e){this.size=e}has(e){return d(e)in this.snapshots}get(e){if(this.has(e)){const t=this.read(e);return this.touch(e),t}}put(e,t){return this.write(e,t),this.touch(e),t}clear(){this.snapshots={}}read(e){return this.snapshots[d(e)]}write(e,t){this.snapshots[d(e)]=t}touch(e){const t=d(e),i=this.keys.indexOf(t);i>-1&&this.keys.splice(i,1),this.keys.unshift(t),this.trim()}trim(){for(const e of this.keys.splice(this.size))delete this.snapshots[e]}}class Kt extends ht{snapshotCache=new Gt(10);lastRenderedLocation=new URL(location.href);forceReloaded=!1;shouldTransitionTo(e){return this.snapshot.prefersViewTransitions&&e.prefersViewTransitions}renderPage(e,t=!1,i=!0,n){const s=new(this.isPageRefresh(n)&&this.snapshot.shouldMorphPage?Ut:Xt)(this.snapshot,e,Xt.renderElement,t,i);return s.shouldRender?n?.changeHistory():this.forceReloaded=!0,this.render(s)}renderError(e,t){t?.changeHistory();const i=new Vt(this.snapshot,e,Vt.renderElement,!1);return this.render(i)}clearSnapshotCache(){this.snapshotCache.clear()}async cacheSnapshot(e=this.snapshot){if(e.isCacheable){this.delegate.viewWillCacheSnapshot();const{lastRenderedLocation:t}=this;await T();const i=e.clone();return this.snapshotCache.put(t,i),i}}getCachedSnapshotForLocation(e){return this.snapshotCache.get(e)}isPageRefresh(e){return!e||this.lastRenderedLocation.pathname===e.location.pathname&&"replace"===e.action}shouldPreserveScrollPosition(e){return this.isPageRefresh(e)&&this.snapshot.shouldPreserveScrollPosition}get snapshot(){return _t.fromElement(this.element)}}class Qt{selector="a[data-turbo-preload]";constructor(e,t){this.delegate=e,this.snapshotCache=t}start(){"loading"===document.readyState?document.addEventListener("DOMContentLoaded",this.#z):this.preloadOnLoadLinksForView(document.body)}stop(){document.removeEventListener("DOMContentLoaded",this.#z)}preloadOnLoadLinksForView(e){for(const t of e.querySelectorAll(this.selector))this.delegate.shouldPreloadLink(t)&&this.preloadURL(t)}async preloadURL(e){const t=new URL(e.href);if(this.snapshotCache.has(t))return;const i=new Ze(this,Qe.get,t,new URLSearchParams,e);await i.perform()}prepareRequest(e){e.headers["X-Sec-Purpose"]="prefetch"}async requestSucceededWithResponse(e,t){try{const i=await t.responseHTML,n=_t.fromHTMLString(i);this.snapshotCache.put(e.url,n)}catch(e){}}requestStarted(e){}requestErrored(e){}requestFinished(e){}requestPreventedHandlingResponse(e,t){}requestFailedWithResponse(e,t){}#z=()=>{this.preloadOnLoadLinksForView(document.body)}}class Jt{constructor(e){this.session=e}clear(){this.session.clearCache()}resetCacheControl(){this.#H("")}exemptPageFromCache(){this.#H("no-cache")}exemptPageFromPreview(){this.#H("no-preview")}#H(e){q("turbo-cache-control",e)}}class Zt{navigator=new Ft(this);history=new Mt(this);view=new Kt(this,document.documentElement);adapter=new Dt(this);pageObserver=new jt(this);cacheObserver=new Pt;linkPrefetchObserver=new At(this,document);linkClickObserver=new pt(this,window);formSubmitObserver=new ct(this,document);scrollObserver=new Wt(this);streamObserver=new $t(this);formLinkClickObserver=new ft(this,document.documentElement);frameRedirector=new It(this,document.documentElement);streamMessageRenderer=new Bt;cache=new Jt(this);drive=!0;enabled=!0;progressBarDelay=500;started=!1;formMode="on";#F=150;constructor(e){this.recentRequests=e,this.preloader=new Qt(this,this.view.snapshotCache),this.debouncedRefresh=this.refresh,this.pageRefreshDebouncePeriod=this.pageRefreshDebouncePeriod}start(){this.started||(this.pageObserver.start(),this.cacheObserver.start(),this.linkPrefetchObserver.start(),this.formLinkClickObserver.start(),this.linkClickObserver.start(),this.formSubmitObserver.start(),this.scrollObserver.start(),this.streamObserver.start(),this.frameRedirector.start(),this.history.start(),this.preloader.start(),this.started=!0,this.enabled=!0)}disable(){this.enabled=!1}stop(){this.started&&(this.pageObserver.stop(),this.cacheObserver.stop(),this.linkPrefetchObserver.stop(),this.formLinkClickObserver.stop(),this.linkClickObserver.stop(),this.formSubmitObserver.stop(),this.scrollObserver.stop(),this.streamObserver.stop(),this.frameRedirector.stop(),this.history.stop(),this.preloader.stop(),this.started=!1)}registerAdapter(e){this.adapter=e}visit(e,t={}){const i=t.frame?document.getElementById(t.frame):null;if(i instanceof Ye){const n=t.action||z(i);i.delegate.proposeVisitIfNavigatedWithAction(i,n),i.src=e.toString()}else this.navigator.proposeVisit(s(e),t)}refresh(e,t){t&&this.recentRequests.has(t)||this.visit(e,{action:"replace",shouldCacheSnapshot:!1})}connectStreamSource(e){this.streamObserver.connectStreamSource(e)}disconnectStreamSource(e){this.streamObserver.disconnectStreamSource(e)}renderStreamMessage(e){this.streamMessageRenderer.render(tt.wrap(e))}clearCache(){this.view.clearSnapshotCache()}setProgressBarDelay(e){this.progressBarDelay=e}setFormMode(e){this.formMode=e}get location(){return this.history.location}get restorationIdentifier(){return this.history.restorationIdentifier}get pageRefreshDebouncePeriod(){return this.#F}set pageRefreshDebouncePeriod(e){this.refresh=U(this.debouncedRefresh.bind(this),e),this.#F=e}shouldPreloadLink(e){const t=e.hasAttribute("data-turbo-method"),i=e.hasAttribute("data-turbo-stream"),n=e.getAttribute("data-turbo-frame"),s="_top"==n?null:document.getElementById(n)||j(e,"turbo-frame:not([disabled])");if(t||i||s instanceof Ye)return!1;{const t=new URL(e.href);return this.elementIsNavigatable(e)&&h(t,this.snapshot.rootLocation)}}historyPoppedToLocationWithRestorationIdentifierAndDirection(e,t,i){this.enabled?this.navigator.startVisit(e,t,{action:"restore",historyChanged:!0,direction:i}):this.adapter.pageInvalidated({reason:"turbo_disabled"})}scrollPositionChanged(e){this.history.updateRestorationData({scrollPosition:e})}willSubmitFormLinkToLocation(e,t){return this.elementIsNavigatable(e)&&h(t,this.snapshot.rootLocation)}submittedFormLinkToLocation(){}canPrefetchRequestToLocation(e,t){return this.elementIsNavigatable(e)&&h(t,this.snapshot.rootLocation)}willFollowLinkToLocation(e,t,i){return this.elementIsNavigatable(e)&&h(t,this.snapshot.rootLocation)&&this.applicationAllowsFollowingLinkToLocation(e,t,i)}followedLinkToLocation(e,t){const i=this.getActionForLink(e),n=e.hasAttribute("data-turbo-stream");this.visit(t.href,{action:i,acceptsStreamResponse:n})}allowsVisitingLocationWithAction(e,t){return this.locationWithActionIsSamePage(e,t)||this.applicationAllowsVisitingLocation(e)}visitProposedToLocation(e,t){Me(e),this.adapter.visitProposedToLocation(e,t)}visitStarted(e){e.acceptsStreamResponse||(A(document.documentElement),this.view.markVisitDirection(e.direction)),Me(e.location),e.silent||this.notifyApplicationAfterVisitingLocation(e.location,e.action)}visitCompleted(e){this.view.unmarkVisitDirection(),L(document.documentElement),this.notifyApplicationAfterPageLoad(e.getTimingMetrics())}locationWithActionIsSamePage(e,t){return this.navigator.locationWithActionIsSamePage(e,t)}visitScrolledToSamePageLocation(e,t){this.notifyApplicationAfterVisitingSamePageLocation(e,t)}willSubmitForm(e,t){const i=r(e,t);return this.submissionIsNavigatable(e,t)&&h(s(i),this.snapshot.rootLocation)}formSubmitted(e,t){this.navigator.submitForm(e,t)}pageBecameInteractive(){this.view.lastRenderedLocation=this.location,this.notifyApplicationAfterPageLoad()}pageLoaded(){this.history.assumeControlOfScrollRestoration()}pageWillUnload(){this.history.relinquishControlOfScrollRestoration()}receivedMessageFromStream(e){this.renderStreamMessage(e)}viewWillCacheSnapshot(){this.navigator.currentVisit?.silent||this.notifyApplicationBeforeCachingSnapshot()}allowsImmediateRender({element:e},t){const i=this.notifyApplicationBeforeRender(e,t),{defaultPrevented:n,detail:{render:s}}=i;return this.view.renderer&&s&&(this.view.renderer.renderElement=s),!n}viewRenderedSnapshot(e,t,i){this.view.lastRenderedLocation=this.history.location,this.notifyApplicationAfterRender(i)}preloadOnLoadLinksForView(e){this.preloader.preloadOnLoadLinksForView(e)}viewInvalidated(e){this.adapter.pageInvalidated(e)}frameLoaded(e){this.notifyApplicationAfterFrameLoad(e)}frameRendered(e,t){this.notifyApplicationAfterFrameRender(e,t)}applicationAllowsFollowingLinkToLocation(e,t,i){return!this.notifyApplicationAfterClickingLinkToLocation(e,t,i).defaultPrevented}applicationAllowsVisitingLocation(e){return!this.notifyApplicationBeforeVisitingLocation(e).defaultPrevented}notifyApplicationAfterClickingLinkToLocation(e,t,i){return w("turbo:click",{target:e,detail:{url:t.href,originalEvent:i},cancelable:!0})}notifyApplicationBeforeVisitingLocation(e){return w("turbo:before-visit",{detail:{url:e.href},cancelable:!0})}notifyApplicationAfterVisitingLocation(e,t){return w("turbo:visit",{detail:{url:e.href,action:t}})}notifyApplicationBeforeCachingSnapshot(){return w("turbo:before-cache")}notifyApplicationBeforeRender(e,t){return w("turbo:before-render",{detail:{newBody:e,...t},cancelable:!0})}notifyApplicationAfterRender(e){return w("turbo:render",{detail:{renderMethod:e}})}notifyApplicationAfterPageLoad(e={}){return w("turbo:load",{detail:{url:this.location.href,timing:e}})}notifyApplicationAfterVisitingSamePageLocation(e,t){dispatchEvent(new HashChangeEvent("hashchange",{oldURL:e.toString(),newURL:t.toString()}))}notifyApplicationAfterFrameLoad(e){return w("turbo:frame-load",{target:e})}notifyApplicationAfterFrameRender(e,t){return w("turbo:frame-render",{detail:{fetchResponse:e},target:t,cancelable:!0})}submissionIsNavigatable(e,t){if("off"==this.formMode)return!1;{const i=!t||this.elementIsNavigatable(t);return"optin"==this.formMode?i&&null!=e.closest('[data-turbo="true"]'):i&&this.elementIsNavigatable(e)}}elementIsNavigatable(e){const t=j(e,"[data-turbo]"),i=j(e,"turbo-frame");return this.drive||i?!t||"false"!=t.getAttribute("data-turbo"):!!t&&"true"==t.getAttribute("data-turbo")}getActionForLink(e){return z(e)||"advance"}get snapshot(){return this.view.snapshot}}const ei={absoluteURL:{get(){return this.toString()}}},ti=new Zt(Ge),{cache:ii,navigator:ni}=ti;var si=Object.freeze({__proto__:null,navigator:ni,session:ti,cache:ii,PageRenderer:Xt,PageSnapshot:_t,FrameRenderer:vt,fetch:G,start:Ae,registerAdapter:Le,visit:Ne,connectStreamSource:Oe,disconnectStreamSource:Re,renderStreamMessage:ze,clearCache:He,setProgressBarDelay:Fe,setConfirmMethod:qe,setFormMode:je});class ai extends Error{}class ri{fetchResponseLoaded=()=>Promise.resolve();#q=null;#j=()=>{};#W=!1;#B=!1;#$=new Set;action=null;constructor(e){this.element=e,this.view=new ut(this,this.element),this.appearanceObserver=new et(this,this.element),this.formLinkClickObserver=new ft(this,this.element),this.linkInterceptor=new dt(this,this.element),this.restorationIdentifier=P(),this.formSubmitObserver=new ct(this,this.element)}connect(){this.#W||(this.#W=!0,this.loadingStyle==Ve.lazy?this.appearanceObserver.start():this.#V(),this.formLinkClickObserver.start(),this.linkInterceptor.start(),this.formSubmitObserver.start())}disconnect(){this.#W&&(this.#W=!1,this.appearanceObserver.stop(),this.formLinkClickObserver.stop(),this.linkInterceptor.stop(),this.formSubmitObserver.stop())}disabledChanged(){this.loadingStyle==Ve.eager&&this.#V()}sourceURLChanged(){this.#Y("src")||(this.element.isConnected&&(this.complete=!1),(this.loadingStyle==Ve.eager||this.#B)&&this.#V())}sourceURLReloaded(){const{src:e}=this.element;return this.element.removeAttribute("complete"),this.element.src=null,this.element.src=e,this.element.loaded}loadingStyleChanged(){this.loadingStyle==Ve.lazy?this.appearanceObserver.start():(this.appearanceObserver.stop(),this.#V())}async#V(){this.enabled&&this.isActive&&!this.complete&&this.sourceURL&&(this.element.loaded=this.#X(s(this.sourceURL)),this.appearanceObserver.stop(),await this.element.loaded,this.#B=!0)}async loadResponse(e){(e.redirected||e.succeeded&&e.isHTML)&&(this.sourceURL=e.response.url);try{const t=await e.responseHTML;if(t){const i=S(t);_t.fromDocument(i).isVisitable?await this.#U(e,i):await this.#G(e)}}finally{this.fetchResponseLoaded=()=>Promise.resolve()}}elementAppearedInViewport(e){this.proposeVisitIfNavigatedWithAction(e,z(e)),this.#V()}willSubmitFormLinkToLocation(e){return this.#K(e)}submittedFormLinkToLocation(e,t,i){const n=this.#u(e);n&&i.setAttribute("data-turbo-frame",n.id)}shouldInterceptLinkClick(e,t,i){return this.#K(e)}linkClickIntercepted(e,t){this.#Q(e,t)}willSubmitForm(e,t){return e.closest("turbo-frame")==this.element&&this.#K(e,t)}formSubmitted(e,t){this.formSubmission&&this.formSubmission.stop(),this.formSubmission=new ot(this,e,t);const{fetchRequest:i}=this.formSubmission;this.prepareRequest(i),this.formSubmission.start()}prepareRequest(e){e.headers["Turbo-Frame"]=this.id,this.currentNavigationElement?.hasAttribute("data-turbo-stream")&&e.acceptResponseType(tt.contentType)}requestStarted(e){A(this.element)}requestPreventedHandlingResponse(e,t){this.#j()}async requestSucceededWithResponse(e,t){await this.loadResponse(t),this.#j()}async requestFailedWithResponse(e,t){await this.loadResponse(t),this.#j()}requestErrored(e,t){console.error(t),this.#j()}requestFinished(e){L(this.element)}formSubmissionStarted({formElement:e}){A(e,this.#u(e))}formSubmissionSucceededWithResponse(e,t){const i=this.#u(e.formElement,e.submitter);i.delegate.proposeVisitIfNavigatedWithAction(i,z(e.submitter,e.formElement,i)),i.delegate.loadResponse(t),e.isSafe||ti.clearCache()}formSubmissionFailedWithResponse(e,t){this.element.delegate.loadResponse(t),ti.clearCache()}formSubmissionErrored(e,t){console.error(t)}formSubmissionFinished({formElement:e}){L(e,this.#u(e))}allowsImmediateRender({element:e},t){const i=w("turbo:before-frame-render",{target:this.element,detail:{newFrame:e,...t},cancelable:!0}),{defaultPrevented:n,detail:{render:s}}=i;return this.view.renderer&&s&&(this.view.renderer.renderElement=s),!n}viewRenderedSnapshot(e,t,i){}preloadOnLoadLinksForView(e){ti.preloadOnLoadLinksForView(e)}viewInvalidated(){}willRenderFrame(e,t){this.previousFrameElement=e.cloneNode(!0)}visitCachedSnapshot=({element:e})=>{const t=e.querySelector("#"+this.element.id);t&&this.previousFrameElement&&t.replaceChildren(...this.previousFrameElement.children),delete this.previousFrameElement};async#U(e,t){const i=await this.extractForeignFrameElement(t.body);if(i){const t=new lt(i),n=new vt(this,this.view.snapshot,t,vt.renderElement,!1,!1);this.view.renderPromise&&await this.view.renderPromise,this.changeHistory(),await this.view.render(n),this.complete=!0,ti.frameRendered(e,this.element),ti.frameLoaded(this.element),await this.fetchResponseLoaded(e)}else this.#J(e)&&this.#Z(e)}async#X(e){const t=new Ze(this,Qe.get,e,new URLSearchParams,this.element);return this.#q?.cancel(),this.#q=t,new Promise((e=>{this.#j=()=>{this.#j=()=>{},this.#q=null,e()},t.perform()}))}#Q(e,t,i){const n=this.#u(e,i);n.delegate.proposeVisitIfNavigatedWithAction(n,z(i,e,n)),this.#ee(e,(()=>{n.src=t}))}proposeVisitIfNavigatedWithAction(e,t=null){if(this.action=t,this.action){const t=_t.fromElement(e).clone(),{visitCachedSnapshot:i}=e.delegate;e.delegate.fetchResponseLoaded=async n=>{if(e.src){const{statusCode:s,redirected:a}=n,r={response:{statusCode:s,redirected:a,responseHTML:await n.responseHTML},visitCachedSnapshot:i,willRender:!1,updateHistory:!1,restorationIdentifier:this.restorationIdentifier,snapshot:t};this.action&&(r.action=this.action),ti.visit(e.src,r)}}}}changeHistory(){if(this.action){const e=O(this.action);ti.history.update(e,s(this.element.src||""),this.restorationIdentifier)}}async#G(e){console.warn(`The response (${e.statusCode}) from <turbo-frame id="${this.element.id}"> is performing a full page visit due to turbo-visit-control.`),await this.#te(e.response)}#J(e){this.element.setAttribute("complete","");const t=e.response,i=async(e,t)=>{e instanceof Response?this.#te(e):ti.visit(e,t)};return!w("turbo:frame-missing",{target:this.element,detail:{response:t,visit:i},cancelable:!0}).defaultPrevented}#Z(e){this.view.missing(),this.#ie(e)}#ie(e){const t=`The response (${e.statusCode}) did not contain the expected <turbo-frame id="${this.element.id}"> and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;throw new ai(t)}async#te(e){const t=new Xe(e),i=await t.responseHTML,{location:n,redirected:s,statusCode:a}=t;return ti.visit(n,{response:{redirected:s,statusCode:a,responseHTML:i}})}#u(e,t){return We(I("data-turbo-frame",t,e)||this.element.getAttribute("target"))??this.element}async extractForeignFrameElement(e){let t;const i=CSS.escape(this.id);try{if(t=Be(e.querySelector(`turbo-frame#${i}`),this.sourceURL),t)return t;if(t=Be(e.querySelector(`turbo-frame[src][recurse~=${i}]`),this.sourceURL),t)return await t.loaded,await this.extractForeignFrameElement(t)}catch(e){return console.error(e),new Ye}return null}#ne(e,t){return h(s(r(e,t)),this.rootLocation)}#K(e,t){const i=I("data-turbo-frame",t,e)||this.element.getAttribute("target");if(e instanceof HTMLFormElement&&!this.#ne(e,t))return!1;if(!this.enabled||"_top"==i)return!1;if(i){const e=We(i);if(e)return!e.disabled}return!!ti.elementIsNavigatable(e)&&!(t&&!ti.elementIsNavigatable(t))}get id(){return this.element.id}get enabled(){return!this.element.disabled}get sourceURL(){if(this.element.src)return this.element.src}set sourceURL(e){this.#se("src",(()=>{this.element.src=e??null}))}get loadingStyle(){return this.element.loading}get isLoading(){return void 0!==this.formSubmission||void 0!==this.#j()}get complete(){return this.element.hasAttribute("complete")}set complete(e){e?this.element.setAttribute("complete",""):this.element.removeAttribute("complete")}get isActive(){return this.element.isActive&&this.#W}get rootLocation(){const e=this.element.ownerDocument.querySelector('meta[name="turbo-root"]');return s(e?.content??"/")}#Y(e){return this.#$.has(e)}#se(e,t){this.#$.add(e),t(),this.#$.delete(e)}#ee(e,t){this.currentNavigationElement=e,t(),delete this.currentNavigationElement}}const oi={after(){this.targetElements.forEach((e=>e.parentElement?.insertBefore(this.templateContent,e.nextSibling)))},append(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.append(this.templateContent)))},before(){this.targetElements.forEach((e=>e.parentElement?.insertBefore(this.templateContent,e)))},prepend(){this.removeDuplicateTargetChildren(),this.targetElements.forEach((e=>e.prepend(this.templateContent)))},remove(){this.targetElements.forEach((e=>e.remove()))},replace(){this.targetElements.forEach((e=>e.replaceWith(this.templateContent)))},update(){this.targetElements.forEach((e=>{e.innerHTML="",e.append(this.templateContent)}))},refresh(){ti.refresh(this.baseURI,this.requestId)}};class li extends HTMLElement{static async renderElement(e){await e.performAction()}async connectedCallback(){try{await this.render()}catch(e){console.error(e)}finally{this.disconnect()}}async render(){return this.renderPromise??=(async()=>{const e=this.beforeRenderEvent;this.dispatchEvent(e)&&(await x(),await e.detail.render(this))})()}disconnect(){try{this.remove()}catch{}}removeDuplicateTargetChildren(){this.duplicateChildren.forEach((e=>e.remove()))}get duplicateChildren(){const e=this.targetElements.flatMap((e=>[...e.children])).filter((e=>!!e.id)),t=[...this.templateContent?.children||[]].filter((e=>!!e.id)).map((e=>e.id));return e.filter((e=>t.includes(e.id)))}get performAction(){if(this.action){const e=oi[this.action];if(e)return e;this.#ae("unknown action")}this.#ae("action attribute is missing")}get targetElements(){return this.target?this.targetElementsById:this.targets?this.targetElementsByQuery:void this.#ae("target or targets attribute is missing")}get templateContent(){return this.templateElement.content.cloneNode(!0)}get templateElement(){if(null===this.firstElementChild){const e=this.ownerDocument.createElement("template");return this.appendChild(e),e}if(this.firstElementChild instanceof HTMLTemplateElement)return this.firstElementChild;this.#ae("first child element must be a <template> element")}get action(){return this.getAttribute("action")}get target(){return this.getAttribute("target")}get targets(){return this.getAttribute("targets")}get requestId(){return this.getAttribute("request-id")}#ae(e){throw new Error(`${this.description}: ${e}`)}get description(){return(this.outerHTML.match(/<[^>]+>/)??[])[0]??"<turbo-stream>"}get beforeRenderEvent(){return new CustomEvent("turbo:before-stream-render",{bubbles:!0,cancelable:!0,detail:{newStream:this,render:li.renderElement}})}get targetElementsById(){const e=this.ownerDocument?.getElementById(this.target);return null!==e?[e]:[]}get targetElementsByQuery(){const e=this.ownerDocument?.querySelectorAll(this.targets);return 0!==e.length?Array.prototype.slice.call(e):[]}}class ci extends HTMLElement{streamSource=null;connectedCallback(){this.streamSource=this.src.match(/^ws{1,2}:/)?new WebSocket(this.src):new EventSource(this.src),Oe(this.streamSource)}disconnectedCallback(){this.streamSource&&(this.streamSource.close(),Re(this.streamSource))}get src(){return this.getAttribute("src")||""}}Ye.delegateConstructor=ri,void 0===customElements.get("turbo-frame")&&customElements.define("turbo-frame",Ye),void 0===customElements.get("turbo-stream")&&customElements.define("turbo-stream",li),void 0===customElements.get("turbo-stream-source")&&customElements.define("turbo-stream-source",ci),(()=>{let e=document.currentScript;if(e&&!e.hasAttribute("data-turbo-suppress-warning"))for(e=e.parentElement;e;){if(e==document.body)return console.warn(k`
        You are loading Turbo from a <script> element inside the <body> element. This is probably not what you meant to do!

        Load your application’s JavaScript bundle inside the <head> element instead. <script> elements in <body> are evaluated with each page change.

        For more information, see: https://turbo.hotwired.dev/handbook/building#working-with-script-elements

        ——
        Suppress this warning by adding a "data-turbo-suppress-warning" attribute to: %s
      `,e.outerHTML);e=e.parentElement}})(),window.Turbo={...si,StreamActions:oi},Ae(),e.FetchEnctype=Je,e.FetchMethod=Qe,e.FetchRequest=Ze,e.FetchResponse=Xe,e.FrameElement=Ye,e.FrameLoadingStyle=Ve,e.FrameRenderer=vt,e.PageRenderer=Xt,e.PageSnapshot=_t,e.StreamActions=oi,e.StreamElement=li,e.StreamSourceElement=ci,e.cache=ii,e.clearCache=He,e.connectStreamSource=Oe,e.disconnectStreamSource=Re,e.fetch=G,e.fetchEnctypeFromString=Q,e.fetchMethodFromString=K,e.isSafe=J,e.navigator=ni,e.registerAdapter=Le,e.renderStreamMessage=ze,e.session=ti,e.setConfirmMethod=qe,e.setFormMode=je,e.setProgressBarDelay=Fe,e.start=Ae,e.visit=Ne,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)}((function(e){"use strict";return e.ui=e.ui||{},e.ui.version="1.13.0"})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}})):function(t,i,n){return!!e.data(t,n[3])}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.extend({disableSelection:(t="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(t+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var t})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";function t(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}return e.ui.focusable=function(i,n){var s,a,r,o,l,c=i.nodeName.toLowerCase();return"area"===c?(a=(s=i.parentNode).name,!(!i.href||!a||"map"!==s.nodeName.toLowerCase())&&((r=e("img[usemap='#"+a+"']")).length>0&&r.is(":visible"))):(/^(input|select|textarea|button|object)$/.test(c)?(o=!i.disabled)&&(l=e(i).closest("fieldset")[0])&&(o=!l.disabled):o="a"===c&&i.href||n,o&&e(i).is(":visible")&&t(e(i)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase())})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.labels=function(){var t,i,n,s,a;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(n=this.attr("id"))&&(a=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),i="label[for='"+e.escapeSelector(n)+"']",s=s.add(a.find(i).addBack(i))),this.pushStack(s)):this.pushStack([])}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";if(e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique),!e.escapeSelector){var t=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,i=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};e.escapeSelector=function(e){return(e+"").replace(t,i)}}e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter((function(e){return e%2==0}))},odd:function(){return this.filter((function(e){return e%2==1}))}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.plugin={add:function(t,i,n){var s,a=e.ui[t].prototype;for(s in n)a.plugins[s]=a.plugins[s]||[],a.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,a=e.plugins[t];if(a&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<a.length;s++)e.options[a[s][0]]&&a[s][1].apply(e.element,i)}}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,a=this.parents().filter((function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==i&&a.length?a:e(this[0].ownerDocument||document)}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version","./focusable"],e):e(jQuery)}((function(e){"use strict";return e.extend(e.expr.pseudos,{tabbable:function(t){var i=e.attr(t,"tabindex"),n=null!=i;return(!n||i>=0)&&e.ui.focusable(t,n)}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return e.fn.extend({uniqueId:(t=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++t)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}});var t})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(){"use strict"})),function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(e.jQuery)}(this,(function(e,t){function i(e){return null==e?e+"":"object"==typeof e?l[c.call(e)]||"object":typeof e}function n(e,t,i){var n=f[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:Math.min(n.max,Math.max(0,e)))}function s(t){var i=d(),n=i._rgba=[];return t=t.toLowerCase(),v(u,(function(e,s){var a,r=s.re.exec(t),o=r&&s.parse(r),l=s.space||"rgba";if(o)return a=i[l](o),i[p[l].cache]=a[p[l].cache],n=i._rgba=a._rgba,!1})),n.length?("0,0,0,0"===n.join()&&e.extend(n,r.transparent),i):r[t]}function a(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}var r,o="backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor",l={},c=l.toString,h=/^([\-+])=\s*(\d+\.?\d*)/,u=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],d=e.Color=function(t,i,n,s){return new e.Color.fn.parse(t,i,n,s)},p={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},f={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},m=d.support={},g=e("<p>")[0],v=e.each;g.style.cssText="background-color:rgba(1,1,1,.5)",m.rgba=g.style.backgroundColor.indexOf("rgba")>-1,v(p,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),e.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()})),d.fn=e.extend(d.prototype,{parse:function(a,o,l,c){if(a===t)return this._rgba=[null,null,null,null],this;(a.jquery||a.nodeType)&&(a=e(a).css(o),o=t);var h=this,u=i(a),f=this._rgba=[];return o!==t&&(a=[a,o,l,c],u="array"),"string"===u?this.parse(s(a)||r._default):"array"===u?(v(p.rgba.props,(function(e,t){f[t.idx]=n(a[t.idx],t)})),this):"object"===u?(v(p,a instanceof d?function(e,t){a[t.cache]&&(h[t.cache]=a[t.cache].slice())}:function(t,i){var s=i.cache;v(i.props,(function(e,t){if(!h[s]&&i.to){if("alpha"===e||null==a[e])return;h[s]=i.to(h._rgba)}h[s][t.idx]=n(a[e],t,!0)})),h[s]&&e.inArray(null,h[s].slice(0,3))<0&&(null==h[s][3]&&(h[s][3]=1),i.from&&(h._rgba=i.from(h[s])))}),this):void 0},is:function(e){var t=d(e),i=!0,n=this;return v(p,(function(e,s){var a,r=t[s.cache];return r&&(a=n[s.cache]||s.to&&s.to(n._rgba)||[],v(s.props,(function(e,t){if(null!=r[t.idx])return i=r[t.idx]===a[t.idx]}))),i})),i},_space:function(){var e=[],t=this;return v(p,(function(i,n){t[n.cache]&&e.push(i)})),e.pop()},transition:function(e,t){var i=d(e),s=i._space(),a=p[s],r=0===this.alpha()?d("transparent"):this,o=r[a.cache]||a.to(r._rgba),l=o.slice();return i=i[a.cache],v(a.props,(function(e,s){var a=s.idx,r=o[a],c=i[a],h=f[s.type]||{};null!==c&&(null===r?l[a]=c:(h.mod&&(c-r>h.mod/2?r+=h.mod:r-c>h.mod/2&&(r-=h.mod)),l[a]=n((c-r)*t+r,s)))})),this[s](l)},blend:function(t){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),s=d(t)._rgba;return d(e.map(i,(function(e,t){return(1-n)*s[t]+n*e})))},toRgbaString:function(){var t="rgba(",i=e.map(this._rgba,(function(e,t){return null!=e?e:t>2?1:0}));return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")"},toHslaString:function(){var t="hsla(",i=e.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")"},toHexString:function(t){var i=this._rgba.slice(),n=i.pop();return t&&i.push(~~(255*n)),"#"+e.map(i,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),d.fn.parse.prototype=d.fn,p.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,s=e[1]/255,a=e[2]/255,r=e[3],o=Math.max(n,s,a),l=Math.min(n,s,a),c=o-l,h=o+l,u=.5*h;return t=l===o?0:n===o?60*(s-a)/c+360:s===o?60*(a-n)/c+120:60*(n-s)/c+240,i=0===c?0:u<=.5?c/h:c/(2-h),[Math.round(t)%360,i,u,null==r?1:r]},p.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],r=n<=.5?n*(1+i):n+i-n*i,o=2*n-r;return[Math.round(255*a(o,r,t+1/3)),Math.round(255*a(o,r,t)),Math.round(255*a(o,r,t-1/3)),s]},v(p,(function(e,s){var a=s.props,r=s.cache,o=s.to,l=s.from;d.fn[e]=function(e){if(o&&!this[r]&&(this[r]=o(this._rgba)),e===t)return this[r].slice();var s,c=i(e),h="array"===c||"object"===c?e:arguments,u=this[r].slice();return v(a,(function(e,t){var i=h["object"===c?e:t.idx];null==i&&(i=u[t.idx]),u[t.idx]=n(i,t)})),l?((s=d(l(u)))[r]=u,s):d(u)},v(a,(function(t,n){d.fn[t]||(d.fn[t]=function(s){var a,r,o,l,c=i(s);return r=(a=this[l="alpha"===t?this._hsla?"hsla":"rgba":e]())[n.idx],"undefined"===c?r:("function"===c&&(c=i(s=s.call(this,r))),null==s&&n.empty?this:("string"===c&&(o=h.exec(s))&&(s=r+parseFloat(o[2])*("+"===o[1]?1:-1)),a[n.idx]=s,this[l](a)))})}))})),d.hook=function(t){var n=t.split(" ");v(n,(function(t,n){e.cssHooks[n]={set:function(t,a){var r,o,l="";if("transparent"!==a&&("string"!==i(a)||(r=s(a)))){if(a=d(r||a),!m.rgba&&1!==a._rgba[3]){for(o="backgroundColor"===n?t.parentNode:t;(""===l||"transparent"===l)&&o&&o.style;)try{l=e.css(o,"backgroundColor"),o=o.parentNode}catch(e){}a=a.blend(l&&"transparent"!==l?l:"_default")}a=a.toRgbaString()}try{t.style[n]=a}catch(e){}}},e.fx.step[n]=function(t){t.colorInit||(t.start=d(t.elem,n),t.end=d(t.end),t.colorInit=!0),e.cssHooks[n].set(t.elem,t.start.transition(t.end,t.pos))}}))},d.hook(o),e.cssHooks.borderColor={expand:function(e){var t={};return v(["Top","Right","Bottom","Left"],(function(i,n){t["border"+n+"Color"]=e})),t}},r=e.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./jquery-var-for-color","./vendor/jquery-color/jquery.color","./version"],e):e(jQuery)}((function(e){"use strict";var t,i="ui-effects-",n="ui-effects-style",s="ui-effects-animated";return e.effects={effect:{}},function(){function t(e){return e.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()}))}function i(e){var i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,a={};if(s&&s.length&&s[0]&&s[s[0]])for(n=s.length;n--;)"string"==typeof s[i=s[n]]&&(a[t(i)]=s[i]);else for(i in s)"string"==typeof s[i]&&(a[i]=s[i]);return a}function n(t,i){var n,s,a={};for(n in i)s=i[n],t[n]!==s&&(r[n]||!e.fx.step[n]&&isNaN(parseFloat(s))||(a[n]=s));return a}var s,a=["add","remove","toggle"],r={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(jQuery.style(e.elem,i,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(t,s,r,o){var l=e.speed(s,r,o);return this.queue((function(){var s,r=e(this),o=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map((function(){return{el:e(this),start:i(this)}})),(s=function(){e.each(a,(function(e,i){t[i]&&r[i+"Class"](t[i])}))})(),c=c.map((function(){return this.end=i(this.el[0]),this.diff=n(this.start,this.end),this})),r.attr("class",o),c=c.map((function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()})),e.when.apply(e,c.get()).done((function(){s(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(r[0])}))}))},e.fn.extend({addClass:(s=e.fn.addClass,function(t,i,n,a){return i?e.effects.animateClass.call(this,{add:t},i,n,a):s.apply(this,arguments)}),removeClass:function(t){return function(i,n,s,a){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,s,a):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,s,a,r){return"boolean"==typeof n||void 0===n?s?e.effects.animateClass.call(this,n?{add:i}:{remove:i},s,a,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,s,a)}}(e.fn.toggleClass),switchClass:function(t,i,n,s,a){return e.effects.animateClass.call(this,{add:i,remove:t},n,s,a)}})}(),function(){function t(t,i,n,s){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),"function"==typeof i&&(s=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(s=n,n=i,i={}),"function"==typeof n&&(s=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=s||i.complete,t}function a(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||("string"==typeof t&&!e.effects.effect[t]||("function"==typeof t||"object"==typeof t&&!t.effect))}function r(e,t){var i=t.outerWidth(),n=t.outerHeight(),s=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(e)||["",0,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}var o;e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=(o=e.expr.pseudos.animated,function(t){return!!e(t).data(s)||o(t)})),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var n=0,s=t.length;n<s;n++)null!==t[n]&&e.data(i+t[n],e[0].style[t[n]])},restore:function(e,t){for(var n,s=0,a=t.length;s<a;s++)null!==t[s]&&(n=e.data(i+t[s]),e.css(t[s],n))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:t.width(),height:t.height()},a=document.activeElement;try{a.id}catch(e){a=document.body}return t.wrap(n),(t[0]===a||e.contains(t[0],a))&&e(a).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(s),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.0",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,s="vertical"!==i?(t||100)/100:1;return{height:e.height()*s,width:e.width()*n,outerHeight:e.outerHeight()*s,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(n,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(n)||"",e.removeData(n)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var n,s=t.css("position"),a=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(s)&&(s="absolute",n=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(i+"placeholder",n)),t.css({position:s,left:a.left,top:a.top}),n},removePlaceholder:function(e){var t=i+"placeholder",n=e.data(t);n&&(n.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,s){return s=s||{},e.each(i,(function(e,i){var a=t.cssUnit(i);a[0]>0&&(s[i]=a[0]*n+a[1])})),s}}),e.fn.extend({effect:function(){function i(t){function i(){l.removeData(s),e.effects.cleanUp(l),"hide"===n.mode&&l.hide(),o()}function o(){"function"==typeof c&&c.call(l[0]),"function"==typeof t&&t()}var l=e(this);n.mode=u.shift(),!1===e.uiBackCompat||r?"none"===n.mode?(l[h](),o()):a.call(l[0],n,i):(l.is(":hidden")?"hide"===h:"show"===h)?(l[h](),o()):a.call(l[0],n,o)}var n=t.apply(this,arguments),a=e.effects.effect[n.effect],r=a.mode,o=n.queue,l=o||"fx",c=n.complete,h=n.mode,u=[],d=function(t){var i=e(this),n=e.effects.mode(i,h)||r;i.data(s,!0),u.push(n),r&&("show"===n||n===r&&"hide"===n)&&i.show(),r&&"none"===n||e.effects.saveStyle(i),"function"==typeof t&&t()};return e.fx.off||!a?h?this[h](n.duration,c):this.each((function(){c&&c.call(this)})):!1===o?this.each(d).each(i):this.queue(l,d).queue(l,i)},show:function(e){return function(i){if(a(i))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)}}(e.fn.show),hide:function(e){return function(i){if(a(i))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)}}(e.fn.hide),toggle:function(e){return function(i){if(a(i)||"boolean"==typeof i)return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="toggle",this.effect.call(this,n)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):r(this.css("clip"),this)},transfer:function(t,i){var n=e(this),s=e(t.to),a="fixed"===s.css("position"),r=e("body"),o=a?r.scrollTop():0,l=a?r.scrollLeft():0,c=s.offset(),h={top:c.top-o,left:c.left-l,height:s.innerHeight(),width:s.innerWidth()},u=n.offset(),d=e("<div class='ui-effects-transfer'></div>");d.appendTo("body").addClass(t.className).css({top:u.top-o,left:u.left-l,height:n.innerHeight(),width:n.innerWidth(),position:a?"fixed":"absolute"}).animate(h,t.duration,t.easing,(function(){d.remove(),"function"==typeof i&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=r(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),t={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,i){t[i]=function(t){return Math.pow(t,e+2)}})),e.extend(t,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(t,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}})),e.effects})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./form","./version"],e):e(jQuery)}((function(e){"use strict";return e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var i=t.data("ui-form-reset-instances");e.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}}})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";return function(){function t(e,t,i){return[parseFloat(e[0])*(d.test(e[0])?t/100:1),parseFloat(e[1])*(d.test(e[1])?i/100:1)]}function i(t,i){return parseInt(e.css(t,i),10)||0}function n(e){return null!=e&&e===e.window}function s(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:n(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}var a,r=Math.max,o=Math.abs,l=/left|center|right/,c=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,d=/%$/,p=e.fn.position;e.position={scrollbarWidth:function(){if(void 0!==a)return a;var t,i,n=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),s=n.children()[0];return e("body").append(n),t=s.offsetWidth,n.css("overflow","scroll"),t===(i=s.offsetWidth)&&(i=n[0].clientWidth),n.remove(),a=t-i},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),s="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:s?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),s=n(i[0]),a=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:s,isDocument:a,offset:!s&&!a?e(t).offset():{left:0,top:0},scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(n){if(!n||!n.of)return p.apply(this,arguments);var a,d,f,m,g,v,b="string"==typeof(n=e.extend({},n)).of?e(document).find(n.of):e(n.of),y=e.position.getWithinInfo(n.within),_=e.position.getScrollInfo(y),w=(n.collision||"flip").split(" "),x={};return v=s(b),b[0].preventDefault&&(n.at="left top"),d=v.width,f=v.height,m=v.offset,g=e.extend({},m),e.each(["my","at"],(function(){var e,t,i=(n[this]||"").split(" ");1===i.length&&(i=l.test(i[0])?i.concat(["center"]):c.test(i[0])?["center"].concat(i):["center","center"]),i[0]=l.test(i[0])?i[0]:"center",i[1]=c.test(i[1])?i[1]:"center",e=h.exec(i[0]),t=h.exec(i[1]),x[this]=[e?e[0]:0,t?t[0]:0],n[this]=[u.exec(i[0])[0],u.exec(i[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?g.left+=d:"center"===n.at[0]&&(g.left+=d/2),"bottom"===n.at[1]?g.top+=f:"center"===n.at[1]&&(g.top+=f/2),a=t(x.at,d,f),g.left+=a[0],g.top+=a[1],this.each((function(){var s,l,c=e(this),h=c.outerWidth(),u=c.outerHeight(),p=i(this,"marginLeft"),v=i(this,"marginTop"),C=h+p+i(this,"marginRight")+_.width,T=u+v+i(this,"marginBottom")+_.height,E=e.extend({},g),S=t(x.my,c.outerWidth(),c.outerHeight());"right"===n.my[0]?E.left-=h:"center"===n.my[0]&&(E.left-=h/2),"bottom"===n.my[1]?E.top-=u:"center"===n.my[1]&&(E.top-=u/2),E.left+=S[0],E.top+=S[1],s={marginLeft:p,marginTop:v},e.each(["left","top"],(function(t,i){e.ui.position[w[t]]&&e.ui.position[w[t]][i](E,{targetWidth:d,targetHeight:f,elemWidth:h,elemHeight:u,collisionPosition:s,collisionWidth:C,collisionHeight:T,offset:[a[0]+S[0],a[1]+S[1]],my:n.my,at:n.at,within:y,elem:c})})),n.using&&(l=function(e){var t=m.left-E.left,i=t+d-h,s=m.top-E.top,a=s+f-u,l={target:{element:b,left:m.left,top:m.top,width:d,height:f},element:{element:c,left:E.left,top:E.top,width:h,height:u},horizontal:i<0?"left":t>0?"right":"center",vertical:a<0?"top":s>0?"bottom":"middle"};d<h&&o(t+i)<d&&(l.horizontal="center"),f<u&&o(s+a)<f&&(l.vertical="middle"),r(o(t),o(i))>r(o(s),o(a))?l.important="horizontal":l.important="vertical",n.using.call(this,e,l)}),c.offset(e.extend(E,{using:l}))}))},e.ui.position={fit:{left:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,o=e.left-t.collisionPosition.marginLeft,l=s-o,c=o+t.collisionWidth-a-s;t.collisionWidth>a?l>0&&c<=0?(i=e.left+l+t.collisionWidth-a-s,e.left+=l-i):e.left=c>0&&l<=0?s:l>c?s+a-t.collisionWidth:s:l>0?e.left+=l:c>0?e.left-=c:e.left=r(e.left-o,e.left)},top:function(e,t){var i,n=t.within,s=n.isWindow?n.scrollTop:n.offset.top,a=t.within.height,o=e.top-t.collisionPosition.marginTop,l=s-o,c=o+t.collisionHeight-a-s;t.collisionHeight>a?l>0&&c<=0?(i=e.top+l+t.collisionHeight-a-s,e.top+=l-i):e.top=c>0&&l<=0?s:l>c?s+a-t.collisionHeight:s:l>0?e.top+=l:c>0?e.top-=c:e.top=r(e.top-o,e.top)}},flip:{left:function(e,t){var i,n,s=t.within,a=s.offset.left+s.scrollLeft,r=s.width,l=s.isWindow?s.scrollLeft:s.offset.left,c=e.left-t.collisionPosition.marginLeft,h=c-l,u=c+t.collisionWidth-r-l,d="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];h<0?((i=e.left+d+p+f+t.collisionWidth-r-a)<0||i<o(h))&&(e.left+=d+p+f):u>0&&((n=e.left-t.collisionPosition.marginLeft+d+p+f-l)>0||o(n)<u)&&(e.left+=d+p+f)},top:function(e,t){var i,n,s=t.within,a=s.offset.top+s.scrollTop,r=s.height,l=s.isWindow?s.scrollTop:s.offset.top,c=e.top-t.collisionPosition.marginTop,h=c-l,u=c+t.collisionHeight-r-l,d="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];h<0?((n=e.top+d+p+f+t.collisionHeight-r-a)<0||n<o(h))&&(e.top+=d+p+f):u>0&&((i=e.top-t.collisionPosition.marginTop+d+p+f-l)>0||o(i)<u)&&(e.top+=d+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./version"],e):e(jQuery)}((function(e){"use strict";var t,i=0,n=Array.prototype.hasOwnProperty,s=Array.prototype.slice;return e.cleanData=(t=e.cleanData,function(i){var n,s,a;for(a=0;null!=(s=i[a]);a++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)}),e.widget=function(t,i,n){var s,a,r,o={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},s=e[l][t],a=e[l][t]=function(e,t){if(!this._createWidget)return new a(e,t);arguments.length&&this._createWidget(e,t)},e.extend(a,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,(function(e,t){o[e]="function"==typeof t?function(){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,a=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=a,e}}():t})),a.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},o,{constructor:a,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,(function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,a,i._proto)})),delete s._childConstructors):i._childConstructors.push(a),e.widget.bridge(t,a),a},e.widget.extend=function(t){for(var i,a,r=s.call(arguments,1),o=0,l=r.length;o<l;o++)for(i in r[o])a=r[o][i],n.call(r[o],i)&&void 0!==a&&(e.isPlainObject(a)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],a):e.widget.extend({},a):t[i]=a);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(a){var r="string"==typeof a,o=s.call(arguments,1),l=this;return r?this.length||"instance"!==a?this.each((function(){var i,s=e.data(this,n);return"instance"===a?(l=s,!1):s?"function"!=typeof s[a]||"_"===a.charAt(0)?e.error("no such method '"+a+"' for "+t+" widget instance"):(i=s[a].apply(s,o))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,
!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+a+"'")})):l=void 0:(o.length&&(a=e.widget.extend.apply(null,[a].concat(o))),this.each((function(){var t=e.data(this,n);t?(t.option(a||{}),t._init&&t._init()):e.data(this,n,new i(a,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,i){t._removeClass(i,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,a,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},n=t.split("."),t=n.shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),a=0;a<n.length-1;a++)s[n[a]]=s[n[a]]||{},s=s[n[a]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){function i(){t.element.each((function(t,i){e.map(a.classesElementLookup,(function(e){return e})).some((function(e){return e.is(i)}))||a._on(e(i),{remove:"_untrackClassesElement"})}))}function n(n,r){var o,l;for(l=0;l<n.length;l++)o=a.classesElementLookup[n[l]]||e(),t.add?(i(),o=e(e.uniqueSort(o.get().concat(t.element.get())))):o=e(o.not(t.element).get()),a.classesElementLookup[n[l]]=o,s.push(n[l]),r&&t.classes[n[l]]&&s.push(t.classes[n[l]])}var s=[],a=this;return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&n(t.keys.match(/\S+/g)||[],!0),t.extra&&n(t.extra.match(/\S+/g)||[]),s.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,(function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,a={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return a.element.toggleClass(this._classes(a),n),this},_on:function(t,i,n){var s,a=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,(function(n,r){function o(){if(t||!0!==a.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?a[r]:r).apply(a,arguments)}"string"!=typeof r&&(o.guid=r.guid=r.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+a.eventNamespace,h=l[2];h?s.on(c,h,o):i.on(c,o)}))},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){function i(){return("string"==typeof e?n[e]:e).apply(n,arguments)}var n=this;return setTimeout(i,t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,a,r=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],a=i.originalEvent)for(s in a)s in i||(i[s]=a[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,i){e.Widget.prototype["_"+t]=function(n,s,a){var r;"string"==typeof s&&(s={effect:s});var o=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!e.isEmptyObject(s),s.complete=a,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,a):n.queue((function(i){e(this)[t](),a&&a.call(n[0]),i()}))}})),e.widget})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("blind","hide",(function(t,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=e(this),a=t.direction||"up",r=s.cssClip(),o={clip:e.extend({},r)},l=e.effects.createPlaceholder(s);o.clip[n[a][0]]=o.clip[n[a][1]],"show"===t.mode&&(s.cssClip(o.clip),l&&l.css(e.effects.clipToBox(o)),o.clip=r),l&&l.animate(e.effects.clipToBox(o),t.duration,t.easing),s.animate(o,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("bounce",(function(t,i){var n,s,a,r=e(this),o=t.mode,l="hide"===o,c="show"===o,h=t.direction||"up",u=t.distance,d=t.times||5,p=2*d+(c||l?1:0),f=t.duration/p,m=t.easing,g="up"===h||"down"===h?"top":"left",v="up"===h||"left"===h,b=0,y=r.queue().length;for(e.effects.createPlaceholder(r),a=r.css(g),u||(u=r["top"===g?"outerHeight":"outerWidth"]()/3),c&&((s={opacity:1})[g]=a,r.css("opacity",0).css(g,v?2*-u:2*u).animate(s,f,m)),l&&(u/=Math.pow(2,d-1)),(s={})[g]=a;b<d;b++)(n={})[g]=(v?"-=":"+=")+u,r.animate(n,f,m).animate(s,f,m),u=l?2*u:u/2;l&&((n={opacity:0})[g]=(v?"-=":"+=")+u,r.animate(n,f,m)),r.queue(i),e.effects.unshift(r,y,p+1)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("clip","hide",(function(t,i){var n,s={},a=e(this),r=t.direction||"vertical",o="both"===r,l=o||"horizontal"===r,c=o||"vertical"===r;n=a.cssClip(),s.clip={top:c?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},e.effects.createPlaceholder(a),"show"===t.mode&&(a.cssClip(s.clip),s.clip=n),a.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("drop","hide",(function(t,i){var n,s=e(this),a="show"===t.mode,r=t.direction||"left",o="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",h={opacity:0};e.effects.createPlaceholder(s),n=t.distance||s["top"===o?"outerHeight":"outerWidth"](!0)/2,h[o]=l+n,a&&(s.css(h),h[o]=c+n,h.opacity=1),s.animate(h,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("explode","hide",(function(t,i){function n(){b.push(this),b.length===u*d&&s()}function s(){p.css({visibility:"visible"}),e(b).remove(),i()}var a,r,o,l,c,h,u=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=u,p=e(this),f="show"===t.mode,m=p.show().css("visibility","hidden").offset(),g=Math.ceil(p.outerWidth()/d),v=Math.ceil(p.outerHeight()/u),b=[];for(a=0;a<u;a++)for(l=m.top+a*v,h=a-(u-1)/2,r=0;r<d;r++)o=m.left+r*g,c=r-(d-1)/2,p.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-r*g,top:-a*v}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g,height:v,left:o+(f?c*g:0),top:l+(f?h*v:0),opacity:f?0:1}).animate({left:o+(f?0:c*g),top:l+(f?0:h*v),opacity:f?1:0},t.duration||500,t.easing,n)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("fade","toggle",(function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("fold","hide",(function(t,i){var n=e(this),s=t.mode,a="show"===s,r="hide"===s,o=t.size||15,l=/([0-9]+)%/.exec(o),c=!!t.horizFirst?["right","bottom"]:["bottom","right"],h=t.duration/2,u=e.effects.createPlaceholder(n),d=n.cssClip(),p={clip:e.extend({},d)},f={clip:e.extend({},d)},m=[d[c[0]],d[c[1]]],g=n.queue().length;l&&(o=parseInt(l[1],10)/100*m[r?0:1]),p.clip[c[0]]=o,f.clip[c[0]]=o,f.clip[c[1]]=0,a&&(n.cssClip(f.clip),u&&u.css(e.effects.clipToBox(f)),f.clip=d),n.queue((function(i){u&&u.animate(e.effects.clipToBox(p),h,t.easing).animate(e.effects.clipToBox(f),h,t.easing),i()})).animate(p,h,t.easing).animate(f,h,t.easing).queue(i),e.effects.unshift(n,g,4)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("highlight","show",(function(t,i){var n=e(this),s={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),e.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("size",(function(t,i){var n,s,a,r=e(this),o=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],h=t.mode,u="effect"!==h,d=t.scale||"both",p=t.origin||["middle","center"],f=r.css("position"),m=r.position(),g=e.effects.scaledDimensions(r),v=t.from||g,b=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===h&&(a=v,v=b,b=a),s={from:{y:v.height/g.height,x:v.width/g.width},to:{y:b.height/g.height,x:b.width/g.width}},"box"!==d&&"both"!==d||(s.from.y!==s.to.y&&(v=e.effects.setTransition(r,l,s.from.y,v),b=e.effects.setTransition(r,l,s.to.y,b)),s.from.x!==s.to.x&&(v=e.effects.setTransition(r,c,s.from.x,v),b=e.effects.setTransition(r,c,s.to.x,b))),"content"!==d&&"both"!==d||s.from.y!==s.to.y&&(v=e.effects.setTransition(r,o,s.from.y,v),b=e.effects.setTransition(r,o,s.to.y,b)),p&&(n=e.effects.getBaseline(p,g),v.top=(g.outerHeight-v.outerHeight)*n.y+m.top,v.left=(g.outerWidth-v.outerWidth)*n.x+m.left,b.top=(g.outerHeight-b.outerHeight)*n.y+m.top,b.left=(g.outerWidth-b.outerWidth)*n.x+m.left),delete v.outerHeight,delete v.outerWidth,r.css(v),"content"!==d&&"both"!==d||(l=l.concat(["marginTop","marginBottom"]).concat(o),c=c.concat(["marginLeft","marginRight"]),r.find("*[width]").each((function(){var i=e(this),n=e.effects.scaledDimensions(i),a={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},r={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x};s.from.y!==s.to.y&&(a=e.effects.setTransition(i,l,s.from.y,a),r=e.effects.setTransition(i,l,s.to.y,r)),s.from.x!==s.to.x&&(a=e.effects.setTransition(i,c,s.from.x,a),r=e.effects.setTransition(i,c,s.to.x,r)),u&&e.effects.saveStyle(i),i.css(a),i.animate(r,t.duration,t.easing,(function(){u&&e.effects.restoreStyle(i)}))}))),r.animate(b,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===b.opacity&&r.css("opacity",v.opacity),u||(r.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(r)),i()}})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-size"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("scale",(function(t,i){var n=e(this),s=t.mode,a=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(n),to:e.effects.scaledDimensions(n,a,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect","./effect-scale"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("puff","hide",(function(t,i){var n=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,n,i)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("pulsate","show",(function(t,i){var n=e(this),s=t.mode,a="show"===s,r=a||"hide"===s,o=2*(t.times||5)+(r?1:0),l=t.duration/o,c=0,h=1,u=n.queue().length;for(!a&&n.is(":visible")||(n.css("opacity",0).show(),c=1);h<o;h++)n.animate({opacity:c},l,t.easing),c=1-c;n.animate({opacity:c},l,t.easing),n.queue(i),e.effects.unshift(n,u,o+1)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("shake",(function(t,i){var n=1,s=e(this),a=t.direction||"left",r=t.distance||20,o=t.times||3,l=2*o+1,c=Math.round(t.duration/l),h="up"===a||"down"===a?"top":"left",u="up"===a||"left"===a,d={},p={},f={},m=s.queue().length;for(e.effects.createPlaceholder(s),d[h]=(u?"-=":"+=")+r,p[h]=(u?"+=":"-=")+2*r,f[h]=(u?"-=":"+=")+2*r,s.animate(d,c,t.easing);n<o;n++)s.animate(p,c,t.easing).animate(f,c,t.easing);s.animate(p,c,t.easing).animate(d,c/2,t.easing).queue(i),e.effects.unshift(s,m,l+1)}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";return e.effects.define("slide","show",(function(t,i){var n,s,a=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},o=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",h="up"===l||"left"===l,u=t.distance||a["top"===c?"outerHeight":"outerWidth"](!0),d={};e.effects.createPlaceholder(a),n=a.cssClip(),s=a.position()[c],d[c]=(h?-1:1)*u+s,d.clip=a.cssClip(),d.clip[r[l][1]]=d.clip[r[l][0]],"show"===o&&(a.cssClip(d.clip),a.css(c,d[c]),d.clip=n,d[c]=s),a.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:i})}))})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../effect"],e):e(jQuery)}((function(e){"use strict";var t;return!1!==e.uiBackCompat&&(t=e.effects.define("transfer",(function(t,i){e(this).transfer(t,i)}))),t})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode","../unique-id","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.accordion",{version:"1.13.0",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(e){return e.find("> li > :first-child").add(e.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,i,n=this.options.icons;n&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+n.header),t.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,n=this.headers.length,s=this.headers.index(t.target),a=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:a=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:a=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:a=this.headers[0];break;case i.END:a=this.headers[n-1]}a&&(e(t.target).attr("tabIndex",-1),e(a).attr("tabIndex",0),e(a).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=e()):!1===t.active?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var t=e(this),i=t.uniqueId().attr("id"),n=t.next(),s=n.uniqueId().attr("id");t.attr("aria-controls",s),n.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(t=s.height(),this.element.siblings(":visible").each((function(){var i=e(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(t-=i.outerHeight(!0))})),this.headers.each((function(){t-=e(this).outerHeight(!0)})),this.headers.next().each((function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===n&&(t=0,this.headers.next().each((function(){var i=e(this).is(":visible");i||e(this).show(),t=Math.max(t,e(this).css("height","").height()),i||e(this).hide()})).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),(function(e,t){i[t]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(t){var i,n,s=this.options,a=this.active,r=e(t.currentTarget),o=r[0]===a[0],l=o&&s.collapsible,c=l?e():r.next(),h=a.next(),u={oldHeader:a,oldPanel:h,newHeader:l?e():r,newPanel:c};t.preventDefault(),o&&!s.collapsible||!1===this._trigger("beforeActivate",t,u)||(s.active=!l&&this.headers.index(r),this.active=o?e():r,this._toggle(u),this._removeClass(a,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=a.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.activeHeader)._addClass(i,null,s.icons.header)),o||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=r.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.header)._addClass(n,null,s.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,t):(n.hide(),i.show(),this._toggleComplete(t)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(e(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,i){var n,s,a,r=this,o=0,l=e.css("box-sizing"),c=e.length&&(!t.length||e.index()<t.index()),h=this.options.animate||{},u=c&&h.down||h,d=function(){r._toggleComplete(i)};return"number"==typeof u&&(a=u),"string"==typeof u&&(s=u),s=s||u.easing||h.easing,a=a||u.duration||h.duration,t.length?e.length?(n=e.show().outerHeight(),t.animate(this.hideProps,{duration:a,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:a,easing:s,complete:d,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?"content-box"===l&&(o+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(n-t.outerHeight()-o),o=0)}})):t.animate(this.hideProps,a,s,d):e.animate(this.showProps,a,s,d)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.menu",{version:"1.13.0",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),n=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay((function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),n=e(t.currentTarget);i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n)))}},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var i,n,s,a,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,n=this.previousFilter||"",a=!1,s=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===n?a=!0:s=n+s,i=this._filterMenuItems(s),(i=a&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(s=String.fromCharCode(t.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(t,i),this.previousFilter=s,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,n,s,a=this,r=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),i=t.prev(),n=e("<span>").data("ui-menu-submenu-caret",!0);a._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);a._isDivider(t)&&a._addClass(t,"ui-menu-divider","ui-widget-content")})),s=(n=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(s,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,n,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,n,s,a,r,o;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-i-n,a=this.activeMenu.scrollTop(),r=this.activeMenu.height(),o=t.outerHeight(),s<0?this.activeMenu.scrollTop(a+s):s+o>r&&this.activeMenu.scrollTop(a+s-r+o))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(t),
this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[t]()),this.focus(i,n)},nextPage:function(t){var i,n,s;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n-s<0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,n,s;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n+s>0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return n.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))}))}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../keycode","../position","../safe-active-element","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.autocomplete",{version:"1.13.0",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var t,i,n,s=this.element[0].nodeName.toLowerCase(),a="textarea"===s,r="input"===s;this.isMultiLine=a||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[a||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return t=!0,n=!0,void(i=!0);t=!1,n=!1,i=!1;var a=e.ui.keyCode;switch(s.keyCode){case a.PAGE_UP:t=!0,this._move("previousPage",s);break;case a.PAGE_DOWN:t=!0,this._move("nextPage",s);break;case a.UP:t=!0,this._keyEvent("previous",s);break;case a.DOWN:t=!0,this._keyEvent("next",s);break;case a.ENTER:this.menu.active&&(t=!0,s.preventDefault(),this.menu.select(s));break;case a.TAB:this.menu.active&&this.menu.select(s);break;case a.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=e.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(e){if(n)return n=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var n,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(n=i.item.attr("aria-label")||s.value)&&String.prototype.trim.call(n).length&&(this.liveRegion.children().hide(),e("<div>").text(n).appendTo(this.liveRegion))},menuselect:function(t,i){var n=i.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=n}))),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=e("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,n=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,n){n(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,s){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){s(e)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),n=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||n)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var n=this;e.each(i,(function(e,i){n._renderItemData(t,i)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,(function(e){return n.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,this.liveRegion.children().hide(),e("<div>").text(i).appendTo(this.liveRegion))}}),e.ui.autocomplete})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../widget"],e):e(jQuery)}((function(e){"use strict";var t=/ui-corner-([a-z]){2,6}/g;return e.widget("ui.controlgroup",{version:"1.13.0",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var t=this,i=[];e.each(this.options.items,(function(n,s){var a,r={};if(s)return"controlgroupLabel"===n?((a=t.element.find(s)).each((function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),t._addClass(a,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(a.get()))):void(e.fn[n]&&(r=t["_"+n+"Options"]?t["_"+n+"Options"]("middle"):{classes:{}},t.element.find(s).each((function(){var s=e(this),a=s[n]("instance"),o=e.widget.extend({},r);if("button"!==n||!s.parent(".ui-spinner").length){a||(a=s[n]()[n]("instance")),a&&(o.classes=t._resolveClassesValues(o.classes,a)),s[n](o);var l=s[n]("widget");e.data(l[0],"ui-controlgroup-data",a||s[n]("instance")),i.push(l[0])}}))))})),this.childWidgets=e(e.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each((function(){var i=e(this).data("ui-controlgroup-data");i&&i[t]&&i[t]()}))},_updateCornerClass:function(e,t){var i="ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all",n=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,i),this._addClass(e,null,n)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],n},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(i,n){var s={};return e.each(i,(function(e){var a=n.options.classes[e]||"";a=String.prototype.trim.call(a.replace(t,"")),s[e]=(a+" "+i[e]).replace(/\s+/g," ")})),s},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],(function(e,n){var s=t[n]().data("ui-controlgroup-data");if(s&&i["_"+s.widgetName+"Options"]){var a=i["_"+s.widgetName+"Options"](1===t.length?"only":n);a.classes=i._resolveClassesValues(a.classes,s),s.element[s.widgetName](a)}else i._updateCornerClass(t[n](),n)})),this._callChildMethod("refresh"))}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../form-reset-mixin","../labels","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.13.0",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,n=this,s=this._super()||{};return this._readType(),i=this.element.labels(),this.label=e(i[i.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each((function(){n.originalLabel+=3===this.nodeType?e(this).text():this.outerHTML})),this.originalLabel&&(s.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(s.disabled=t),s},_create:function(){var e=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,i="input[name='"+e.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(i):e(i).filter((function(){return 0===e(this)._form().length}))).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each((function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),e.ui.checkboxradio})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./controlgroup","./checkboxradio","../keycode","../widget"],e):e(jQuery)}((function(e){"use strict";var t;return e.widget("ui.button",{version:"1.13.0",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(t){t.keyCode===e.ui.keyCode.SPACE&&(t.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(t,i){var n="iconPosition"!==t,s=n?this.options.iconPosition:i,a="top"===s||"bottom"===s;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(s),a?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,i=void 0===e.icon?this.options.icon:e.icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=(t=e.fn.button,function(i){var n="string"==typeof i,s=Array.prototype.slice.call(arguments,1),a=this;return n?this.length||"instance"!==i?this.each((function(){var t,n=e(this).attr("type"),r="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",o=e.data(this,"ui-"+r);return"instance"===i?(a=o,!1):o?"function"!=typeof o[i]||"_"===i.charAt(0)?e.error("no such method '"+i+"' for button widget instance"):(t=o[i].apply(o,s))!==o&&void 0!==t?(a=t&&t.jquery?a.pushStack(t.get()):t,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")})):a=void 0:(s.length&&(i=e.widget.extend.apply(null,[i].concat(s))),this.each((function(){var n=e(this).attr("type"),s="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",a=e.data(this,"ui-"+s);if(a)a.option(i||{}),a._init&&a._init();else{if("button"===s)return void t.call(e(this),i);e(this).checkboxradio(e.extend({icon:!1},i))}}))),a}),e.fn.buttonset=function(){return e.ui.controlgroup||e.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),e.ui.button})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../keycode"],e):e(jQuery)}((function(e){"use strict";function t(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,s)}function s(){e.datepicker._isDisabledDatepicker(r.inline?r.dpDiv.parent()[0]:r.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function a(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}var r;return e.extend(e.ui,{datepicker:{version:"1.13.0"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return a(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),a?i.trigger.html(e("<img>").attr({src:a,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,r){var o,l,c,h,u,d=this._dialogInst;return d||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(d=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",d)),a(d.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(d,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,h=document.documentElement.scrollLeft||document.body.scrollLeft,u=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+h,c/2-150+u]),
this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),d.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",d),this},_destroyDatepicker:function(t){var i,n=e(t),s=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),r===s&&(r=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,r,o,l,c=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(i=e.datepicker._get(a,"onSelect"))?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(i){var n,s,r,o,l,c,h;("input"!==(i=i.target||i).nodeName.toLowerCase()&&(i=e("input",i.parentNode)[0]),e.datepicker._isDisabledDatepicker(i)||e.datepicker._lastInput===i)||(n=e.datepicker._getInst(i),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(r=(s=e.datepicker._get(n,"beforeShow"))?s.apply(i,[i,n]):{})&&(a(n.settings,r),n.lastVal=null,e.datepicker._lastInput=i,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(i.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(i),e.datepicker._pos[1]+=i.offsetHeight),o=!1,e(i).parents().each((function(){return!(o|="fixed"===e(this).css("position"))})),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),l=e.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=e.datepicker._get(n,"showAnim"),h=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",t(e(i))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[c]?n.dpDiv.show(c,e.datepicker._get(n,"showOptions"),h):n.dpDiv[c||"show"](c?h:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(t){this.maxRows=4,r=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,n=this._getNumberOfMonths(t),a=n[1],o=17,l=t.dpDiv.find("."+this._dayOverClass+" a"),c=e.datepicker._get(t,"onUpdateDatepicker");l.length>0&&s.apply(l.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&t.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",o*a+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout((function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),i=t.yearshtml=null}),0)),c&&c.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i,n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=parseInt(e("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(n=this._get(a,"onSelect"))?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,a,r,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,h="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),u=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,d=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,b=-1,y=!1,_=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},w=function(e){var t=_(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),a=i.substring(l).match(s);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(t,n,s){var a=-1,r=e.map(_(t)?s:n,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(r,(function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=t[0],l+=n.length,!1})),-1!==a)return a+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(y)"'"!==t.charAt(s)||_("'")?C():y=!1;else switch(t.charAt(s)){case"d":v=w("d");break;case"D":x("D",u,d);break;case"o":b=w("o");break;case"m":g=w("m");break;case"M":g=x("M",p,f);break;case"y":m=w("y");break;case"@":m=(o=new Date(w("@"))).getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"!":m=(o=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),g=o.getMonth()+1,v=o.getDate();break;case"'":_("'")?C():y=!0;break;default:C()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===m?m=(new Date).getFullYear():m<100&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(m<=h?0:-100)),b>-1)for(g=1,v=b;;){if(v<=(a=this._getDaysInMonth(m,g-1)))break;g++,v-=a}if((o=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||o.getMonth()+1!==g||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},h=function(e,t,i,n){return l(e)?n[t]:i[t]},u="",d=!1;if(t)for(n=0;n<e.length;n++)if(d)"'"!==e.charAt(n)||l("'")?u+=e.charAt(n):d=!1;else switch(e.charAt(n)){case"d":u+=c("d",t.getDate(),2);break;case"D":u+=h("D",t.getDay(),s,a);break;case"o":u+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":u+=c("m",t.getMonth()+1,2);break;case"M":u+=h("M",t.getMonth(),r,o);break;case"y":u+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":u+=t.getTime();break;case"!":u+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?u+="'":d=!0;break;default:u+=e.charAt(n)}return u},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(i)}return new Date(s,a,r)},r=null==i||""===i?n:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var i,n,s,a,r,o,l,c,h,u,d,p,f,m,g,v,b,y,_,w,x,C,T,E,S,k,D,P,I,M,A,L,N,O,R,z,H,F,q,j=new Date,W=this._daylightSavingAdjust(new Date(j.getFullYear(),j.getMonth(),j.getDate())),B=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),X=this._getNumberOfMonths(t),U=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),K=1!==X[0]||1!==X[1],Q=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),ee=t.drawMonth-U,te=t.drawYear;if(ee<0&&(ee+=12,te--),Z)for(i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-X[0]*X[1]+1,Z.getDate())),i=J&&i<J?J:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-G,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(n))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"e":"w")).text(n))[0].outerHTML,a=this._get(t,"nextText"),a=Y?this.formatDate(a,this._daylightSavingAdjust(new Date(te,ee+G,1)),this._getFormatConfig(t)):a,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(a))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(B?"w":"e")).text(a))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Q:W,o=Y?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),h="",$&&(h=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(B?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(B?"":c)[0].outerHTML),u=parseInt(this._get(t,"firstDay"),10),u=isNaN(u)?0:u,d=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),m=this._get(t,"monthNames"),g=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),b=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),w="",C=0;C<X[0];C++){for(T="",this.maxRows=4,E=0;E<X[1];E++){if(S=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),k=" ui-corner-all",D="",K){if(D+="<div class='ui-datepicker-group",X[1]>1)switch(E){case 0:D+=" ui-datepicker-group-first",k=" ui-corner-"+(B?"right":"left");break;case X[1]-1:D+=" ui-datepicker-group-last",k=" ui-corner-"+(B?"left":"right");break;default:D+=" ui-datepicker-group-middle",k=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+k+"'>"+(/all|left/.test(k)&&0===C?B?r:s:"")+(/all|right/.test(k)&&0===C?B?s:r:"")+this._generateMonthYearHeader(t,ee,te,J,Z,C>0||E>0,m,g)+"</div><table class='ui-datepicker-calendar'><thead><tr>",P=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)P+="<th scope='col'"+((x+u+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[I=(x+u)%7]+"'>"+f[I]+"</span></th>";for(D+=P+"</tr></thead><tbody>",M=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),A=(this._getFirstDayOfMonth(te,ee)-u+7)%7,L=Math.ceil((A+M)/7),N=K&&this.maxRows>L?this.maxRows:L,this.maxRows=N,O=this._daylightSavingAdjust(new Date(te,ee,1-A)),R=0;R<N;R++){for(D+="<tr>",z=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(O)+"</td>":"",x=0;x<7;x++)H=v?v.apply(t.input?t.input[0]:null,[O]):[!0,""],q=(F=O.getMonth()!==ee)&&!y||!H[0]||J&&O<J||Z&&O>Z,z+="<td class='"+((x+u+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(O.getTime()===S.getTime()&&ee===t.selectedMonth&&t._keyEvent||_.getTime()===O.getTime()&&_.getTime()===S.getTime()?" "+this._dayOverClass:"")+(q?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!b?"":" "+H[1]+(O.getTime()===Q.getTime()?" "+this._currentClass:"")+(O.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(F&&!b||!H[2]?"":" title='"+H[2].replace(/'/g,"&#39;")+"'")+(q?"":" data-handler='selectDay' data-event='click' data-month='"+O.getMonth()+"' data-year='"+O.getFullYear()+"'")+">"+(F&&!b?"&#xa0;":q?"<span class='ui-state-default'>"+O.getDate()+"</span>":"<a class='ui-state-default"+(O.getTime()===W.getTime()?" ui-state-highlight":"")+(O.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(O.getTime()===Q.getTime()?"true":"false")+"' data-date='"+O.getDate()+"'>"+O.getDate()+"</a>")+"</td>",O.setDate(O.getDate()+1),O=this._daylightSavingAdjust(O);D+=z+"</tr>"}++ee>11&&(ee=0,te++),T+=D+="</tbody></table>"+(K?"</div>"+(X[0]>0&&E===X[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=T}return w+=h,t._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,c,h,u,d,p,f,m,g=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),w="<div class='ui-datepicker-title'>",x="";if(a||!g)x+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,x+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",h=0;h<12;h++)(!l||h>=n.getMonth())&&(!c||h<=s.getMonth())&&(x+="<option value='"+h+"'"+(h===t?" selected='selected'":"")+">"+o[h]+"</option>");x+="</select>"}if(b||(w+=x+(!a&&g&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!v)w+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(u=this._get(e,"yearRange").split(":"),d=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?d+parseInt(e,10):parseInt(e,10);return isNaN(t)?d:t},f=p(u[0]),m=Math.max(f,p(u[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";f<=m;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",w+=e.yearshtml,e.yearshtml=null}return w+=this._get(e,"yearSuffix"),b&&(w+=(!a&&g&&v?"":"&#xa0;")+x),w+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.0",e.datepicker})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../ie","../version","../widget"],e):e(jQuery)}((function(e){"use strict";var t=!1;return e(document).on("mouseup",(function(){t=!1})),e.widget("ui.mouse",{version:"1.13.0",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,a=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&e(i.target).closest(this.options.cancel).length;return!(s&&!a&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){
return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../plugin","../safe-active-element","../safe-blur","../scroll-parent","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.draggable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter((function(){return"fixed"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",t)&&i._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper,s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,a=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,e(a).width()-this.helperProportions.width-this.margins.left,(e(a).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||a.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,a,r=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,a=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?a-this.offset.click.left>=i[0]||a-this.offset.click.left>i[2]?a:a-this.offset.click.left>=i[0]?a-r.grid[0]:a+r.grid[0]:a),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))}))},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,(function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,s))}))},drag:function(t,i,n){e.each(n.sortables,(function(){var s=!1,a=this;a.positionAbs=n.positionAbs,a.helperProportions=n.helperProportions,a.offset.click=n.offset.click,a._intersectsWith(a.containerCache)&&(s=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==a&&this._intersectsWith(this.containerCache)&&e.contains(a.element[0],this.element[0])&&(s=!1),s}))),s?(a.isOver||(a.isOver=1,n._parent=i.helper.parent(),a.currentItem=i.helper.appendTo(a.element).data("ui-sortable-item",!0),a.options._helper=a.options.helper,a.options.helper=function(){return i.helper[0]},t.target=a.currentItem[0],a._mouseCapture(t,!0),a._mouseStart(t,!0,!0),a.offset.click.top=n.offset.click.top,a.offset.click.left=n.offset.click.left,a.offset.parent.left-=n.offset.parent.left-a.offset.parent.left,a.offset.parent.top-=n.offset.parent.top-a.offset.parent.top,n._trigger("toSortable",t),n.dropped=a.element,e.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,a.fromOutside=n),a.currentItem&&(a._mouseDrag(t),i.position=a.position)):a.isOver&&(a.isOver=0,a.cancelHelperRemoval=!0,a.options._revert=a.options.revert,a.options.revert=!1,a._trigger("out",t,a._uiHash(a)),a._mouseStop(t,!0),a.options.revert=a.options._revert,a.options.helper=a.options._helper,a.placeholder&&a.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),a=n.options;s.css("cursor")&&(a._cursor=s.css("cursor")),s.css("cursor",a.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("opacity")&&(a._opacity=s.css("opacity")),s.css("opacity",a.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,a=!1,r=n.scrollParentNotHidden[0],o=n.document[0];r!==o&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=a=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=a=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=a=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=a=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(o).scrollTop()<s.scrollSensitivity?a=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(a=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?a=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(a=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==a&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each((function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})}))},drag:function(t,i,n){var s,a,r,o,l,c,h,u,d,p,f=n.options,m=f.snapTolerance,g=i.offset.left,v=g+n.helperProportions.width,b=i.offset.top,y=b+n.helperProportions.height;for(d=n.snapElements.length-1;d>=0;d--)c=(l=n.snapElements[d].left-n.margins.left)+n.snapElements[d].width,u=(h=n.snapElements[d].top-n.margins.top)+n.snapElements[d].height,v<l-m||g>c+m||y<h-m||b>u+m||!e.contains(n.snapElements[d].item.ownerDocument,n.snapElements[d].item)?(n.snapElements[d].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(h-y)<=m,a=Math.abs(u-b)<=m,r=Math.abs(l-v)<=m,o=Math.abs(c-g)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=s||a||r||o,"outer"!==f.snapMode&&(s=Math.abs(h-b)<=m,a=Math.abs(u-y)<=m,r=Math.abs(l-g)<=m,o=Math.abs(c-v)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),a&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[d].snapping&&(s||a||r||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[d].item})),n.snapElements[d].snapping=s||a||r||o||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,a=n.options,r=e.makeArray(e(a.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));r.length&&(s=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each((function(t){e(this).css("zIndex",s+t)})),this.css("zIndex",s+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),a=n.options;s.css("zIndex")&&(a._zIndex=s.css("zIndex")),s.css("zIndex",a.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../disable-selection","../plugin","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.resizable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;if(t[n]>0)return!0;try{t[n]=1,s=t[n]>0,t[n]=0}catch(e){}return s},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){this._mouseDestroy(),this._addedHandles.remove();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,i,n,s,a,r=this.options,o=this;if(this.handles=r.handles||(e(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=e(),this._addedHandles=e(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)s="ui-resizable-"+(t=String.prototype.trim.call(n[i])),a=e("<div>"),this._addClass(a,"ui-resizable-handle "+s),a.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(a),this._addedHandles=this._addedHandles.add(a));this._renderAxis=function(t){var i,n,s,a;for(i in t=t||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=e(this.handles[i]),this._on(this.handles[i],{mousedown:o._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),a=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(s,a),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){o.resizing||(this.className&&(a=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),o.axis=a&&a[1]?a[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,n,s=!1;for(i in this.handles)((n=e(this.handles[i])[0])===t.target||e.contains(n,t.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,n,s,a=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),a.containment&&(i+=e(a.containment).scrollLeft()||0,n+=e(a.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof a.aspectRatio?a.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,n,s=this.originalMousePosition,a=this.axis,r=t.pageX-s.left||0,o=t.pageY-s.top||0,l=this._change[a];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,r,o]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,n,s,a,r,o,l,c=this.options,h=this;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:h.sizeDiff.height,a=n?0:h.sizeDiff.width,r={width:h.helper.width()-a,height:h.helper.height()-s},o=parseFloat(h.element.css("left"))+(h.position.left-h.originalPosition.left)||null,l=parseFloat(h.element.css("top"))+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(e.extend(r,{top:l,left:o})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,a,r=this.options;a={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=a.minHeight*this.aspectRatio,n=a.minWidth/this.aspectRatio,i=a.maxHeight*this.aspectRatio,s=a.maxWidth/this.aspectRatio,t>a.minWidth&&(a.minWidth=t),n>a.minHeight&&(a.minHeight=n),i<a.maxWidth&&(a.maxWidth=i),s<a.maxHeight&&(a.maxHeight=s)),this._vBoundaries=a},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,a=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,o=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),h=/nw|ne|n/.test(i);return a&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),a&&c&&(e.left=o-t.minWidth),n&&c&&(e.left=o-t.maxWidth),r&&h&&(e.top=l-t.minHeight),s&&h&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,a=s.length&&/textarea/i.test(s[0].nodeName),r=a&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,o=a?0:i.sizeDiff.width,l={width:i.size.width-o,height:i.size.height-r},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,h=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,h&&c?{top:h,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&e(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n,s,a,r,o,l=e(this).resizable("instance"),c=l.options,h=l.element,u=c.containment,d=u instanceof e?u.get(0):/parent/.test(u)?h.parent().get(0):u;d&&(l.containerElement=e(d),/document/.test(u)||u===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(d),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=l._num(t.css("padding"+n))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,a=l.containerSize.width,r=l._hasScroll(d,"left")?d.scrollWidth:a,o=l._hasScroll(d)?d.scrollHeight:s,l.parentData={element:d,left:n.left,top:n.top,width:r,height:o}))},
resize:function(t){var i,n,s,a,r=e(this).resizable("instance"),o=r.options,l=r.containerOffset,c=r.position,h=r._aspectRatio||t.shiftKey,u={top:0,left:0},d=r.containerElement,p=!0;d[0]!==document&&/static/.test(d.css("position"))&&(u=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-u.left),h&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=o.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),h&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),a=/relative|absolute/.test(r.containerElement.css("position")),s&&a?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-u.left:r.offset.left-l.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-u.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,h&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,h&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.containerPosition,a=t.containerElement,r=e(t.helper),o=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(a.css("position"))&&e(this).css({left:o.left-s.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(a.css("position"))&&e(this).css({left:o.left-s.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,i){var n=e(this).resizable("instance"),s=n.options,a=n.originalSize,r=n.originalPosition,o={height:n.size.height-a.height||0,width:n.size.width-a.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};e(s.alsoResize).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),s={},a=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(a,(function(e,t){var i=(n[t]||0)+(o[t]||0);i&&i>=0&&(s[t]=i||null)})),t.css(s)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),n=i.options,s=i.size,a=i.originalSize,r=i.originalPosition,o=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,h=l[1]||1,u=Math.round((s.width-a.width)/c)*c,d=Math.round((s.height-a.height)/h)*h,p=a.width+u,f=a.height+d,m=n.maxWidth&&n.maxWidth<p,g=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,b=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),b&&(f+=h),m&&(p-=c),g&&(f-=h),/^(se|s|e)$/.test(o)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(o)?(i.size.width=p,i.size.height=f,i.position.left=r.left-u):((f-h<=0||p-c<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),f-h>0?(i.size.height=f,i.position.top=r.top-d):(f=h-t.height,i.size.height=f,i.position.top=r.top+a.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-u):(p=c-t.width,i.size.width=p,i.position.left=r.left+a.width-p))}}),e.ui.resizable})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","./draggable","./mouse","./resizable","../focusable","../keycode","../position","../safe-active-element","../safe-blur","../tabbable","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.dialog",{version:"1.13.0",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(t){var i=e(this).css(t).offset().top;i<0&&e(this).css("top",t.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+e(this).css("z-index")})).get(),a=Math.max.apply(null,s);return a>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",a+1),n=!0),n&&!i&&this._trigger("focus",t),n},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=e("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.first(),s=i.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){s.trigger("focus")})),t.preventDefault()):(this._delay((function(){n.trigger("focus")})),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(i,(function(i,n){var s,a;n="function"==typeof n?{click:n,text:i}:n,n=e.extend({type:"button"},n),s=n.click,a={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,e("<button></button>",n).button(a).appendTo(t.uiButtonSet).on("click",(function(){s.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function t(e){return{position:e.position,offset:e.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,s){i._addClass(e(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,t(s))},drag:function(e,n){i._trigger("drag",e,t(n))},stop:function(s,a){var r=a.offset.left-i.document.scrollLeft(),o=a.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(o>=0?"+":"")+o,of:i.window},i._removeClass(e(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",s,t(a))}})},_makeResizable:function(){function t(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}var i=this,n=this.options,s=n.resizable,a=this.uiDialog.css("position"),r="string"==typeof s?s:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:r,start:function(n,s){i._addClass(e(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,t(s))},resize:function(e,n){i._trigger("resize",e,t(n))},stop:function(s,a){var r=i.uiDialog.offset(),o=r.left-i.document.scrollLeft(),l=r.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(o>=0?"+":"")+o+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(e(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",s,t(a))}}).css("position",a)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};e.each(t,(function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)})),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,i){var n,s,a=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=a.is(":data(ui-draggable)"))&&!i&&a.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=a.is(":data(ui-resizable)"))&&!i&&a.resizable("destroy"),s&&"string"==typeof i&&a.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=e.fn.jquery.substring(0,4),i=!0;this._delay((function(){i=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){if(!i){var n=this._trackingInstances()[0];n._allowInteraction(e)||(e.preventDefault(),n._focusTabbable(),"3.4."!==t&&"3.5."!==t||n._delay(n._restoreTabbableFocus))}}.bind(this)),this.overlay=e("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./draggable","./mouse","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.droppable",{version:"1.13.0",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if("accept"===t)this.accept="function"==typeof i?i:function(e){return e.is(i)};else if("scope"===t){var n=e.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",t,this.ui(i)))},_out:function(t){var i=e.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return s=!0,!1})),!s&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(n)),this.element)))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),e.ui.intersect=function(){function e(e,t,i){return e>=t&&e<t+i}return function(t,i,n,s){if(!i.offset)return!1;var a=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,o=a+t.helperProportions.width,l=r+t.helperProportions.height,c=i.offset.left,h=i.offset.top,u=c+i.proportions().width,d=h+i.proportions().height;switch(n){case"fit":return c<=a&&o<=u&&h<=r&&l<=d;case"intersect":return c<a+t.helperProportions.width/2&&o-t.helperProportions.width/2<u&&h<r+t.helperProportions.height/2&&l-t.helperProportions.height/2<d;case"pointer":return e(s.pageY,h,i.proportions().height)&&e(s.pageX,c,i.proportions().width);case"touch":return(r>=h&&r<=d||l>=h&&l<=d||r<h&&l>d)&&(a>=c&&a<=u||o>=c&&o<=u||a<c&&o>u);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,s,a=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,o=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<a.length;n++)if(!(a[n].options.disabled||t&&!a[n].accept.call(a[n].element[0],t.currentItem||t.element))){for(s=0;s<o.length;s++)if(o[s]===a[n].element[0]){a[n].proportions().height=0;continue e}a[n].visible="none"!==a[n].element.css("display"),a[n].visible&&("mousedown"===r&&a[n]._activate.call(a[n],i),a[n].offset=a[n].element.offset(),a[n].proportions({width:a[n].element[0].offsetWidth,height:a[n].element[0].offsetHeight}))}},drop:function(t,i){var n=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}))},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,a,r=e.ui.intersect(t,this,this.options.tolerance,i),o=!r&&this.isover?"isout":r&&!this.isover?"isover":null;o&&(this.options.greedy&&(s=this.options.scope,(a=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===s}))).length&&((n=e(a[0]).droppable("instance")).greedyChild="isover"===o)),n&&"isover"===o&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[o]=!0,this["isout"===o?"isover":"isout"]=!1,this["isover"===o?"_over":"_out"].call(this,i),n&&"isout"===o&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),e.ui.droppable})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.progressbar",{version:"1.13.0",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=e("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.selectable",e.ui.mouse,{version:"1.13.0",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each((function(){var i=e(this),n=i.offset(),s={left:n.left-t.elementPos.left,top:n.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var i=this,n=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))})),e(t.target).parents().addBack().each((function(){var n,s=e.data(this,"selectable-item");if(s)return n=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",t,{selecting:s.element}):i._trigger("unselecting",t,{unselecting:s.element}),!1})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,a=this.opos[0],r=this.opos[1],o=t.pageX,l=t.pageY;return a>o&&(i=o,o=a,a=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:a,top:r,width:o-a,height:l-r}),this.selectees.each((function(){var i=e.data(this,"selectable-item"),c=!1,h={};i&&i.element!==n.element[0]&&(h.left=i.left+n.elementPos.left,h.right=i.right+n.elementPos.left,h.top=i.top+n.elementPos.top,h.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?c=!(h.left>o||h.right<a||h.top>l||h.bottom<r):"fit"===s.tolerance&&(c=h.left>a&&h.right<o&&h.top>r&&h.bottom<l),c?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element})))))})),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var n=e.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",t,{unselected:n.element})})),e(".ui-selecting",this.element[0]).each((function(){var n=e.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",t,{selected:n.element})})),this._trigger("stop",t),this.helper.remove(),!1}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./menu","../form-reset-mixin","../keycode","../labels","../position","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.13.0",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=e("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),t=e("<span>").appendTo(this.button),this._addClass(t,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){i._rendered||i._refreshMenu()}))},_drawMenu:function(){var t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),
this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(e,i){e.preventDefault(),t._setSelection(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var n=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&n.index!==t.focusIndex&&(t._trigger("focus",e,{item:n}),t.isOpen||t._select(n,e)),t.focusIndex=n.index,t.button.attr("aria-activedescendant",t.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=e("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var n=this,s="";e.each(i,(function(i,a){var r;a.optgroup!==s&&(r=e("<li>",{text:a.optgroup}),n._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(a.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),s=a.optgroup),n._renderItemData(t,a)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var n=e("<li>"),s=e("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var i=this,n=[];t.each((function(t,s){s.hidden||n.push(i._parseOption(e(s),t))})),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}])})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../keycode","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.slider",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var t,i,n=this.options,s=this.element.find(".ui-slider-handle"),a="<span tabindex='0'></span>",r=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),t=s.length;t<i;t++)r.push(a);this.handles=s.add(e(r.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(t){var i,n,s,a,r,o,l,c=this,h=this.options;return!h.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var i=Math.abs(n-c.values(t));(s>i||s===i&&(t===c._lastChangedValue||c.values(t)===h.min))&&(s=i,a=e(this),r=t)})),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(a,null,"ui-state-active"),a.trigger("focus"),o=a.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-o.left-a.width()/2,top:t.pageY-o.top-a.height()/2-(parseInt(a.css("borderTopWidth"),10)||0)-(parseInt(a.css("borderBottomWidth"),10)||0)+(parseInt(a.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s,a;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/t)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),a=this._valueMin()+n*s,this._trimAlignValue(a)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),a=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),a[t]=i),i!==s&&!1!==this._trigger("slide",e,this._uiHash(t,i,a))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,n=arguments[0],s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,t),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(t),this.handles.css("horizontal"===t?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;i>=0;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return e=this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],t=this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,n,s,a,r=this.options.range,o=this.options,l=this,c=!this._animateOff&&o.animate,h={};this._hasMultipleValues()?this.handles.each((function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,h["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](h,o.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},o.animate),1===n&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:o.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},o.animate),1===n&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:o.animate}))),t=i})):(n=this.value(),s=this._valueMin(),a=this._valueMax(),i=a!==s?(n-s)/(a-s)*100:0,h["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](h,o.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},o.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},o.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},o.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},o.animate))},_handleEvents:{keydown:function(t){var i,n,s,a=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,a)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(a):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(t,a,n)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./mouse","../data","../ie","../scroll-parent","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.0",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,a.widgetName+"-item")===a)return n=e(this),!1})),e.data(t.target,a.widgetName+"-item")===a&&(n=e(t.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each((function(){this===t.target&&(s=!0)})),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,a,r=this.options;if(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),this._contactContainers(t),null!==this.innermostContainer)for(r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(t)}))}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each((function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))})),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each((function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")})),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>o&&n+c<l,d="y"===this.options.axis||t+h>a&&t+h<r,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){function i(){o.push(this)}var n,s,a,r,o=[],l=[],c=this._connectWith();if(c&&t)for(n=c.length-1;n>=0;n--)for(s=(a=e(c[n],this.document[0])).length-1;s>=0;s--)(r=e.data(a[s],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push(["function"==typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return e(o)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,h=this.items,u=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(s=e(d[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(u.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=u.length-1;i>=0;i--)for(r=u[i][1],n=0,c=(o=u[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",r),h.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,a;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),a=s.offset(),n.left=a.left,n.top=a.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),null!==this.innermostContainer&&this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,a){i&&!s.forcePlaceholderSize||(a.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each((function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){
var i,n,s,a,r,o,l,c,h,u,d=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(d&&e.contains(this.containers[i].element[0],d.element[0]))continue;d=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(this.innermostContainer=d,d)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,r=(h=d.floating||this._isFloating(this.currentItem))?"left":"top",o=h?"width":"height",u=h?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[r],c=!1,t[u]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[u]-l)<s&&(s=Math.abs(t[u]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(e,t){function i(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}this.reverting=!1;var n,s=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)"auto"!==this._storedCSS[n]&&"static"!==this._storedCSS[n]||(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!t&&s.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||s.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(s.push((function(e){this._trigger("remove",e,this._uiHash())})),s.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),s.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)t||s.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(s.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(n=0;n<s.length;n++)s[n].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","./button","../version","../keycode","../safe-active-element","../widget"],e):e(jQuery)}((function(e){"use strict";function t(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}return e.widget("ui.spinner",{version:"1.13.0",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var t=this._super(),i=this.element;return e.each(["min","max","step"],(function(e,n){var s=i.attr(n);null!=s&&s.length&&(t[n]=s)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(t,i){var n=e.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((i>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(t)}),100),t.preventDefault()}},"mousedown .ui-spinner-button":function(t){function i(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=n,this._delay((function(){this.previous=n})))}var n;n=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),i.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,i.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,i)}),e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?"function"==typeof t?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return i=e-(t=null!==n.min?n.min:0),e=t+(i=Math.round(i/n.step)*n.step),e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,s;if("culture"===e||"numberFormat"===e)return i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:t((function(e){this._super(e)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:t((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:t((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:t((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:t((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){if(!arguments.length)return this._parse(this.element.val());t(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),e.ui.spinner})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../safe-active-element","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";var t;return e.widget("ui.tabs",{version:"1.13.0",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(t=/#.*$/,function(e){var i,n;i=e.href.replace(t,""),n=location.href.replace(t,"");try{i=decodeURIComponent(i)}catch(e){}try{n=decodeURIComponent(n)}catch(e){}return e.hash.length>1&&i===n}),_create:function(){var t=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),Array.isArray(i.disabled)&&(i.disabled=e.uniqueSort(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),(function(e){return t.tabs.index(e)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===t&&(n&&this.tabs.each((function(i,s){if(e(s).attr("aria-controls")===n)return t=i,!1})),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==t&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:s=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),t.ctrlKey||t.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",n)}),this.delay))}},_panelKeydown:function(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){function n(){return t>s&&(t=0),t<0&&(t=s),t}for(var s=this.tabs.length-1;-1!==e.inArray(n(),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"!==e?(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),(function(e){return i.index(e)})),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var t=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(t){e(this).is(".ui-state-disabled")&&t.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){e(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return e("a",this)[0]})).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each((function(i,n){var s,a,r,o=e(n).uniqueId().attr("id"),l=e(n).closest("li"),c=l.attr("aria-controls");t._isLocal(n)?(r=(s=n.hash).substring(1),a=t.element.find(t._sanitizeSelector(s))):(s="#"+(r=l.attr("aria-controls")||e({}).uniqueId()[0].id),(a=t.element.find(s)).length||(a=t._createPanel(r)).insertAfter(t.panels[i-1]||t.tablist),a.attr("aria-live","polite")),a.length&&(t.panels=t.panels.add(a)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":o}),a.attr("aria-labelledby",o)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,n,s;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;n=this.tabs[s];s++)i=e(n),!0===t||-1!==e.inArray(s,t)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),(function(e,t){i[t]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(t){var i,n=this.element.parent();"fill"===t?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=e(this).outerHeight(!0)})),this.panels.each((function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each((function(){i=Math.max(i,e(this).height("").height())})).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,s=e(t.currentTarget).closest("li"),a=s[0]===n[0],r=a&&i.collapsible,o=r?e():this._getPanelForTab(s),l=n.length?this._getPanelForTab(n):e(),c={oldTab:n,oldPanel:l,newTab:r?e():s,newPanel:o};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||a&&!i.collapsible||!1===this._trigger("beforeActivate",t,c)||(i.active=!r&&this.tabs.index(s),this.active=a?e():s,this.xhr&&this.xhr.abort(),l.length||o.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),o.length&&this.load(this.tabs.index(s),t),this._toggle(t,c))},_toggle:function(t,i){function n(){a.running=!1,a._trigger("activate",t,i)}function s(){a._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),r.length&&a.options.show?a._show(r,a.options.show,n):(r.show(),n())}var a=this,r=i.newPanel,o=i.oldPanel;this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,(function(){a._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),s()})):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),s()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),r.length&&o.length?i.oldTab.attr("tabIndex",-1):r.length&&this.tabs.filter((function(){return 0===e(this).attr("tabIndex")})).attr("tabIndex",-1),r.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.escapeSelector(t)+"']"))),t},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=Array.isArray(i)?e.map(i,(function(e){return e!==t?e:null})):e.map(this.tabs,(function(e,i){return i!==t?i:null}))),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=Array.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var n=this,s=this.tabs.eq(t),a=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),o={tab:s,panel:r},l=function(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr};this._isLocal(a[0])||(this.xhr=e.ajax(this._ajaxSettings(a,i,o)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done((function(e,t,s){setTimeout((function(){r.html(e),n._trigger("load",i,o),l(s,t)}),1)})).fail((function(e,t){setTimeout((function(){l(e,t)}),1)}))))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,a){return s._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:a},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs})),function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery","../keycode","../position","../unique-id","../version","../widget"],e):e(jQuery)}((function(e){"use strict";return e.widget("ui.tooltip",{version:"1.13.0",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title");return e("<a>").text(t).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),s=e.inArray(i,n);-1!==s&&n.splice(s,1),t.removeData("ui-tooltip-id"),(n=String.prototype.trim.call(n.join(" ")))?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=e([])},_setOption:function(t,i){var n=this;this._super(t,i),"content"===t&&e.each(this.tooltips,(function(e,t){n._updateContent(t.element)}))},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,(function(i,n){var s=e.Event("blur");s.target=s.currentTarget=n.element[0],t.close(s,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})),this.disabledTitles=e([])},open:function(t){var i=this,n=e(t?t.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),t&&"mouseover"===t.type&&n.parents().each((function(){var t,n=e(this);n.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))})),this._registerCloseHandlers(t,n),this._updateContent(n,t))},_updateContent:function(e,t){var i,n=this.options.content,s=this,a=t?t.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(t,e,n);(i=n.call(e[0],(function(i){
s._delay((function(){e.data("ui-tooltip-open")&&(t&&(t.type=a),this._open(t,e,i))}))})))&&this._open(t,e,i)},_open:function(t,i,n){function s(e){c.of=e,r.is(":hidden")||r.position(c)}var a,r,o,l,c=e.extend({},this.options.position);n&&((a=this._find(i))?a.tooltip.find(".ui-tooltip-content").html(n):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),a=this._tooltip(i),r=a.tooltip,this._addDescribedBy(i,r.attr("id")),r.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(l=e("<div>").html(r.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:s}),s(t)):r.position(e.extend({of:i},this.options.position)),r.hide(),this._show(r,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(o=this.delayedShow=setInterval((function(){r.is(":visible")&&(s(c.of),clearInterval(o))}),13)),this._trigger("open",t,{tooltip:r})))},_registerCloseHandlers:function(t,i){var n={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,i,n)},close:function(t){var i,n=this,s=e(t?t.currentTarget:this.element),a=this._find(s);a?(i=a.tooltip,a.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),a.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){n._removeTooltip(e(this))})),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,(function(t,i){e(i.element).attr("title",i.title),delete n.parents[t]})),a.closing=!0,this._trigger("close",t,{tooltip:i}),a.hiding||(a.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var i=e("<div>").attr("role","tooltip"),n=e("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(t)),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,(function(i,n){var s=e.Event("blur"),a=n.element;s.target=s.currentTarget=a[0],t.close(s,!0),e("#"+i).remove(),a.data("ui-tooltip-title")&&(a.attr("title")||a.attr("title",a.data("ui-tooltip-title")),a.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip})),function(e,t){var i,n,s,a,r,o;e.toastr=(i={tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,fadeIn:300,fadeOut:1e3,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message"},n=function(e,t){return o({iconClass:a().iconClasses.error,message:e,title:t})},s=function(e){var i=t("#"+e.containerId);return i.length||(i=t("<div/>").attr("id",e.containerId).addClass(e.positionClass)).appendTo(t("body")),i},a=function(){return t.extend({},i,toastr.options)},r=function(e,t){return o({iconClass:a().iconClasses.info,message:e,title:t})},o=function(e){var i=a(),n=e.iconClass||i.iconClass,r=null,o=s(i),l=t("<div/>"),c=t("<div/>"),h=t("<div/>"),u={options:i,map:e};e.iconClass&&l.addClass(i.toastClass).addClass(n),e.title&&(c.append(e.title).addClass(i.titleClass),l.append(c)),e.message&&(h.append(e.message).addClass(i.messageClass),l.append(h));var d=function(){if(!(t(":focus",l).length>0)){var e=function(){return l.fadeOut(i.fadeOut)};t.when(e()).done((function(){l.is(":visible")||(l.remove(),0===o.children().length&&o.remove())}))}},p=function(){(i.timeOut>0||i.extendedTimeOut>0)&&(r=setTimeout(d,i.extendedTimeOut))},f=function(){clearTimeout(r),l.stop(!0,!0).fadeIn(i.fadeIn)};return l.hide(),o.prepend(l),l.fadeIn(i.fadeIn),i.timeOut>0&&(r=setTimeout(d,i.timeOut)),l.hover(f,p),i.tapToDismiss&&l.click(d),i.debug&&console.log(u),l},{error:n,info:r,options:{},success:function(e,t){return o({iconClass:a().iconClasses.success,message:e,title:t})},warning:function(e,t){return o({iconClass:a().iconClasses.warning,message:e,title:t})}})}(window,jQuery),$((function(){ParallaxScroll.init()}));var ParallaxScroll={showLogs:!1,round:1e3,init:function(){if(this._log("init"),this._inited)return this._log("Already Inited"),void(this._inited=!0);this._requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this._onScroll(!0)},_inited:!1,_properties:["x","y","z","rotateX","rotateY","rotateZ","scaleX","scaleY","scaleZ","scale"],_requestAnimationFrame:null,_log:function(e){this.showLogs&&console.log("Parallax Scroll / "+e)},_onScroll:function(e){var t=$(document).scrollTop(),i=$(window).height();this._log("onScroll "+t),$("[data-parallax]").each($.proxy((function(n,s){var a=$(s),r=[],o=!1,l=a.data("style");null==l&&(l=a.attr("style")||"",a.data("style",l));var c,h=[a.data("parallax")];for(c=2;a.data("parallax"+c);c++)h.push(a.data("parallax-"+c));var u=h.length;for(c=0;c<u;c++){var d=h[c],p=d["from-scroll"];null==p&&(p=Math.max(0,$(s).offset().top-i)),p|=0;var f=d.distance,m=d["to-scroll"];null==f&&null==m&&(f=i),f=Math.max(0|f,1);var g=d.easing,v=d["easing-return"];if(null!=g&&$.easing&&$.easing[g]||(g=null),null!=v&&$.easing&&$.easing[v]||(v=g),g){var b=d.duration;null==b&&(b=f),b=Math.max(0|b,1);var y=d["duration-return"];null==y&&(y=b),f=1;var _=a.data("current-time");null==_&&(_=0)}null==m&&(m=p+f),m|=0;var w=d.smoothness;null==w&&(w=30),w|=0,(e||0==w)&&(w=1),w|=0;var x=t;x=Math.max(x,p),x=Math.min(x,m),g&&(null==a.data("sens")&&a.data("sens","back"),x>p&&("back"==a.data("sens")?(_=1,a.data("sens","go")):_++),x<m&&("go"==a.data("sens")?(_=1,a.data("sens","back")):_++),e&&(_=b),a.data("current-time",_)),this._properties.map($.proxy((function(e){var t=0,i=d[e];if(null!=i){"scale"==e||"scaleX"==e||"scaleY"==e||"scaleZ"==e?t=1:i|=0;var n=a.data("_"+e);null==n&&(n=t);var s=(x-p)/(m-p)*(i-t)+t,l=n+(s-n)/w;if(g&&_>0&&_<=b){var c=t;"back"==a.data("sens")&&(c=i,i=-i,g=v,b=y),l=$.easing[g](null,_,c,i,b)}(l=Math.ceil(l*this.round)/this.round)==n&&s==i&&(l=i),r[e]||(r[e]=0),r[e]+=l,n!=r[e]&&(a.data("_"+e,r[e]),o=!0)}}),this))}if(o){if(null!=r.z){var C=d.perspective;null==C&&(C=800);var T=a.parent();T.data("style")||T.data("style",T.attr("style")||""),T.attr("style","perspective:"+C+"px; -webkit-perspective:"+C+"px; "+T.data("style"))}null==r.scaleX&&(r.scaleX=1),null==r.scaleY&&(r.scaleY=1),null==r.scaleZ&&(r.scaleZ=1),null!=r.scale&&(r.scaleX*=r.scale,r.scaleY*=r.scale,r.scaleZ*=r.scale);var E="translate3d("+(r.x?r.x:0)+"px, "+(r.y?r.y:0)+"px, "+(r.z?r.z:0)+"px)"+" "+("rotateX("+(r.rotateX?r.rotateX:0)+"deg) rotateY("+(r.rotateY?r.rotateY:0)+"deg) rotateZ("+(r.rotateZ?r.rotateZ:0)+"deg)")+" "+("scaleX("+r.scaleX+") scaleY("+r.scaleY+") scaleZ("+r.scaleZ+")")+";";this._log(E),a.attr("style","transform:"+E+" -webkit-transform:"+E+" "+l)}}),this)),window.requestAnimationFrame?window.requestAnimationFrame($.proxy(this._onScroll,this,!1)):this._requestAnimationFrame($.proxy(this._onScroll,this,!1))}};!function(e,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t(require,exports,module):e.CountUp=t()}(this,(function(){var e=function(e,t,i,n,s,a){function r(e){var t,i,n,s,a,r,o=e<0;if(e=Math.abs(e).toFixed(c.decimals),i=(t=(e+="").split("."))[0],n=t.length>1?c.options.decimal+t[1]:"",c.options.useGrouping){for(s="",a=0,r=i.length;a<r;++a)0!==a&&a%3==0&&(s=c.options.separator+s),s=i[r-a-1]+s;i=s}return c.options.numerals.length&&(i=i.replace(/[0-9]/g,(function(e){return c.options.numerals[+e]})),n=n.replace(/[0-9]/g,(function(e){return c.options.numerals[+e]}))),(o?"-":"")+c.options.prefix+i+n+c.options.suffix}function o(e,t,i,n){return i*(1-Math.pow(2,-10*e/n))*1024/1023+t}function l(e){return"number"==typeof e&&!isNaN(e)}var c=this;if(c.version=function(){return"1.9.3"},c.options={useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:o,formattingFn:r,prefix:"",suffix:"",numerals:[]},a&&"object"==typeof a)for(var h in c.options)a.hasOwnProperty(h)&&null!==a[h]&&(c.options[h]=a[h]);""===c.options.separator?c.options.useGrouping=!1:c.options.separator=""+c.options.separator;for(var u=0,d=["webkit","moz","ms","o"],p=0;p<d.length&&!window.requestAnimationFrame;++p)window.requestAnimationFrame=window[d[p]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[d[p]+"CancelAnimationFrame"]||window[d[p]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(e){var t=(new Date).getTime(),i=Math.max(0,16-(t-u)),n=window.setTimeout((function(){e(t+i)}),i);return u=t+i,n}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)}),c.initialize=function(){return!(!c.initialized&&(c.error="",c.d="string"==typeof e?document.getElementById(e):e,c.d?(c.startVal=Number(t),c.endVal=Number(i),l(c.startVal)&&l(c.endVal)?(c.decimals=Math.max(0,n||0),c.dec=Math.pow(10,c.decimals),c.duration=1e3*Number(s)||2e3,c.countDown=c.startVal>c.endVal,c.frameVal=c.startVal,c.initialized=!0,0):(c.error="[CountUp] startVal ("+t+") or endVal ("+i+") is not a number",1)):(c.error="[CountUp] target is null or undefined",1)))},c.printValue=function(e){var t=c.options.formattingFn(e);"INPUT"===c.d.tagName?this.d.value=t:"text"===c.d.tagName||"tspan"===c.d.tagName?this.d.textContent=t:this.d.innerHTML=t},c.count=function(e){c.startTime||(c.startTime=e),c.timestamp=e;var t=e-c.startTime;c.remaining=c.duration-t,c.options.useEasing?c.countDown?c.frameVal=c.startVal-c.options.easingFn(t,0,c.startVal-c.endVal,c.duration):c.frameVal=c.options.easingFn(t,c.startVal,c.endVal-c.startVal,c.duration):c.countDown?c.frameVal=c.startVal-(c.startVal-c.endVal)*(t/c.duration):c.frameVal=c.startVal+(c.endVal-c.startVal)*(t/c.duration),c.countDown?c.frameVal=c.frameVal<c.endVal?c.endVal:c.frameVal:c.frameVal=c.frameVal>c.endVal?c.endVal:c.frameVal,c.frameVal=Math.round(c.frameVal*c.dec)/c.dec,c.printValue(c.frameVal),t<c.duration?c.rAF=requestAnimationFrame(c.count):c.callback&&c.callback()},c.start=function(e){c.initialize()&&(c.callback=e,c.rAF=requestAnimationFrame(c.count))},c.pauseResume=function(){c.paused?(c.paused=!1,delete c.startTime,c.duration=c.remaining,c.startVal=c.frameVal,requestAnimationFrame(c.count)):(c.paused=!0,cancelAnimationFrame(c.rAF))},c.reset=function(){c.paused=!1,delete c.startTime,c.initialized=!1,c.initialize()&&(cancelAnimationFrame(c.rAF),c.printValue(c.startVal))},c.update=function(e){if(c.initialize()){if(!l(e=Number(e)))return void(c.error="[CountUp] update() - new endVal is not a number: "+e);c.error="",e!==c.frameVal&&(cancelAnimationFrame(c.rAF),c.paused=!1,delete c.startTime,c.startVal=c.frameVal,c.endVal=e,c.countDown=c.startVal>c.endVal,c.rAF=requestAnimationFrame(c.count))}},c.initialize()&&c.printValue(c.startVal)};return e})),function(e){e.fn.appear=function(t,i){var n=e.extend({data:void 0,one:!0,accX:0,accY:0},i);return this.each((function(){var i=e(this);if(i.appeared=!1,t){var s=e(window),a=function(){if(i.is(":visible")){var e=s.scrollLeft(),t=s.scrollTop(),a=i.offset(),r=a.left,o=a.top,l=n.accX,c=n.accY,h=i.height(),u=s.height(),d=i.width(),p=s.width();o+h+c>=t&&o<=t+u+c&&r+d+l>=e&&r<=e+p+l?i.appeared||i.trigger("appear",n.data):i.appeared=!1}else i.appeared=!1},r=function(){if(i.appeared=!0,n.one){s.unbind("scroll",a);var r=e.inArray(a,e.fn.appear.checks);r>=0&&e.fn.appear.checks.splice(r,1)}t.apply(this,arguments)};n.one?i.one("appear",n.data,r):i.bind("appear",n.data,r),s.scroll(a),e.fn.appear.checks.push(a),a()}else i.trigger("appear",n.data)}))},e.extend(e.fn.appear,{checks:[],timeout:null,checkAll:function(){var t=e.fn.appear.checks.length;if(t>0)for(;t--;)e.fn.appear.checks[t]()},run:function(){e.fn.appear.timeout&&clearTimeout(e.fn.appear.timeout),e.fn.appear.timeout=setTimeout(e.fn.appear.checkAll,20)}}),e.each(["append","prepend","after","before","attr","removeAttr","addClass","removeClass","toggleClass","remove","css","show","hide"],(function(t,i){var n=e.fn[i];n&&(e.fn[i]=function(){var t=n.apply(this,arguments);return e.fn.appear.run(),t})}))}(jQuery),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).Swiper=t()}(this,(function(){"use strict";function e(e,t){var i=[],n=0;if(e&&!t&&e instanceof o)return e;if(e)if("string"==typeof e){var s,l,c=e.trim();if(0<=c.indexOf("<")&&0<=c.indexOf(">")){var h="div";for(0===c.indexOf("<li")&&(h="ul"),0===c.indexOf("<tr")&&(h="tbody"),0!==c.indexOf("<td")&&0!==c.indexOf("<th")||(h="tr"),0===c.indexOf("<tbody")&&(h="table"),0===c.indexOf("<option")&&(h="select"),(l=a.createElement(h)).innerHTML=c,n=0;n<l.childNodes.length;n+=1)i.push(l.childNodes[n])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||a).querySelectorAll(e.trim()):[a.getElementById(e.trim().split("#")[1])],n=0;n<s.length;n+=1)s[n]&&i.push(s[n])}else if(e.nodeType||e===r||e===a)i.push(e);else if(0<e.length&&e[0].nodeType)for(n=0;n<e.length;n+=1)i.push(e[n]);return new o(i)}function t(e){for(var t=[],i=0;i<e.length;i+=1)-1===t.indexOf(e[i])&&t.push(e[i]);return t}function i(e){void 0===e&&(e={});var t=this;t.params=e,t.eventsListeners={},t.params&&t.params.on&&Object.keys(t.params.on).forEach((function(e){t.on(e,t.params.on[e])}))}function n(){var e=this,t=e.params,i=e.el;if(!i||0!==i.offsetWidth){t.breakpoints&&e.setBreakpoint();var n=e.allowSlideNext,s=e.allowSlidePrev,a=e.snapGrid;if(e.allowSlideNext=!0,e.allowSlidePrev=!0,e.updateSize(),e.updateSlides(),t.freeMode){var r=Math.min(Math.max(e.translate,e.maxTranslate()),e.minTranslate());e.setTranslate(r),e.updateActiveIndex(),e.updateSlidesClasses(),t.autoHeight&&e.updateAutoHeight()}else e.updateSlidesClasses(),("auto"===t.slidesPerView||1<t.slidesPerView)&&e.isEnd&&!e.params.centeredSlides?e.slideTo(e.slides.length-1,0,!1,!0):e.slideTo(e.activeIndex,0,!1,!0);e.autoplay&&e.autoplay.running&&e.autoplay.paused&&e.autoplay.run(),e.allowSlidePrev=s,e.allowSlideNext=n,e.params.watchOverflow&&a!==e.snapGrid&&e.checkOverflow()}}function s(){}var a="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,r="undefined"==typeof window?{document:a,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,o=function(e){for(var t=0;t<e.length;t+=1)this[t]=e[t];return this.length=e.length,this};e.fn=o.prototype,e.Class=o,e.Dom7=o;var l={addClass:function(e){if(void 0===e)return this;for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(t[i]);return this},removeClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(t[i]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=e.split(" "),i=0;i<t.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(t[i]);return this},attr:function(e,t){var i=arguments;if(1===arguments.length&&"string"==typeof e)return this[0]?this[0].getAttribute(e):void 0;for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(e,t);else for(var s in e)this[n][s]=e[s],this[n].setAttribute(s,e[s]);return this},removeAttr:function(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this},data:function(e,t){var i;if(void 0!==t){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[e]=t;return this}if(i=this[0])return i.dom7ElementDataStorage&&e in i.dom7ElementDataStorage?i.dom7ElementDataStorage[e]:i.getAttribute("data-"+e)||void 0},transform:function(e){for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransform=e,i.transform=e}return this},transition:function(e){"string"!=typeof e&&(e+="ms");for(var t=0;t<this.length;t+=1){var i=this[t].style;i.webkitTransitionDuration=e,i.transitionDuration=e}return this},on:function(){function t(t){var i=t.target;if(i){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),e(i).is(o))l.apply(i,n);else for(var s=e(i).parents(),a=0;a<s.length;a+=1)e(s[a]).is(o)&&l.apply(s[a],n)}}function i(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),l.apply(this,t)}for(var n,s=[],a=arguments.length;a--;)s[a]=arguments[a];var r=s[0],o=s[1],l=s[2],c=s[3];"function"==typeof s[1]&&(r=(n=s)[0],l=n[1],c=n[2],o=void 0),c=c||!1;for(var h,u=r.split(" "),d=0;d<this.length;d+=1){var p=this[d];if(o)for(h=0;h<u.length;h+=1){var f=u[h];p.dom7LiveListeners||(p.dom7LiveListeners={}),p.dom7LiveListeners[f]||(p.dom7LiveListeners[f]=[]),p.dom7LiveListeners[f].push({listener:l,proxyListener:t}),p.addEventListener(f,t,c)}else for(h=0;h<u.length;h+=1){var m=u[h];p.dom7Listeners||(p.dom7Listeners={}),p.dom7Listeners[m]||(p.dom7Listeners[m]=[]),p.dom7Listeners[m].push({listener:l,proxyListener:i}),p.addEventListener(m,i,c)}}return this},off:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];var n=t[0],s=t[1],a=t[2],r=t[3];"function"==typeof t[1]&&(n=(e=t)[0],a=e[1],r=e[2],s=void 0),r=r||!1;for(var o=n.split(" "),l=0;l<o.length;l+=1)for(var c=o[l],h=0;h<this.length;h+=1){var u=this[h],d=void 0;if(!s&&u.dom7Listeners?d=u.dom7Listeners[c]:s&&u.dom7LiveListeners&&(d=u.dom7LiveListeners[c]),d&&d.length)for(var p=d.length-1;0<=p;p-=1){var f=d[p];a&&f.listener===a||a&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===a?(u.removeEventListener(c,f.proxyListener,r),d.splice(p,1)):a||(u.removeEventListener(c,f.proxyListener,r),d.splice(p,1))}}return this},trigger:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=e[0].split(" "),n=e[1],s=0;s<i.length;s+=1)for(var o=i[s],l=0;l<this.length;l+=1){var c=this[l],h=void 0;try{h=new r.CustomEvent(o,{detail:n,bubbles:!0,cancelable:!0})}catch(e){(h=a.createEvent("Event")).initEvent(o,!0,!0),h.detail=n}c.dom7EventData=e.filter((function(e,t){return 0<t})),c.dispatchEvent(h),c.dom7EventData=[],delete c.dom7EventData}return this},transitionEnd:function(e){function t(a){if(a.target===this)for(e.call(this,a),i=0;i<n.length;i+=1)s.off(n[i],t)}var i,n=["webkitTransitionEnd","transitionend"],s=this;if(e)for(i=0;i<n.length;i+=1)s.on(n[i],t);return this},outerWidth:function(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(e){if(0<this.length){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(0<this.length){var e=this[0],t=e.getBoundingClientRect(),i=a.body,n=e.clientTop||i.clientTop||0,s=e.clientLeft||i.clientLeft||0,o=e===r?r.scrollY:e.scrollTop,l=e===r?r.scrollX:e.scrollLeft;return{top:t.top+o-n,left:t.left+l-s}}return null},css:function(e,t){var i;if(1===arguments.length){if("string"!=typeof e){for(i=0;i<this.length;i+=1)for(var n in e)this[i].style[n]=e[n];return this}if(this[0])return r.getComputedStyle(this[0],null).getPropertyValue(e)}if(2!==arguments.length||"string"!=typeof e)return this;for(i=0;i<this.length;i+=1)this[i].style[e]=t;return this},each:function(e){if(!e)return this;for(var t=0;t<this.length;t+=1)if(!1===e.call(this[t],t,this[t]))return this;return this},html:function(e){if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var t=0;t<this.length;t+=1)this[t].innerHTML=e;return this},text:function(e){if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var t=0;t<this.length;t+=1)this[t].textContent=e;return this},is:function(t){var i,n,s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(i=e(t),n=0;n<i.length;n+=1)if(i[n]===s)return!0;return!1}if(t===a)return s===a;if(t===r)return s===r;if(t.nodeType||t instanceof o){for(i=t.nodeType?[t]:t,n=0;n<i.length;n+=1)if(i[n]===s)return!0;return!1}return!1},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,i=this.length;return new o(i-1<e?[]:e<0?(t=i+e)<0?[]:[this[t]]:[this[e]])},append:function(){for(var e,t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var n=0;n<t.length;n+=1){e=t[n];for(var s=0;s<this.length;s+=1)if("string"==typeof e){var r=a.createElement("div");for(r.innerHTML=e;r.firstChild;)this[s].appendChild(r.firstChild)}else if(e instanceof o)for(var l=0;l<e.length;l+=1)this[s].appendChild(e[l]);else this[s].appendChild(e)}return this},prepend:function(e){var t,i;for(t=0;t<this.length;t+=1)if("string"==typeof e){var n=a.createElement("div");for(n.innerHTML=e,i=n.childNodes.length-1;0<=i;i-=1)this[t].insertBefore(n.childNodes[i],this[t].childNodes[0])}else if(e instanceof o)for(i=0;i<e.length;i+=1)this[t].insertBefore(e[i],this[t].childNodes[0]);else this[t].insertBefore(e,this[t].childNodes[0]);return this},next:function(t){return 0<this.length?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?new o([this[0].nextElementSibling]):new o([]):this[0].nextElementSibling?new o([this[0].nextElementSibling]):new o([]):new o([])},nextAll:function(t){var i=[],n=this[0];if(!n)return new o([]);for(;n.nextElementSibling;){var s=n.nextElementSibling;t?e(s).is(t)&&i.push(s):i.push(s),n=s}return new o(i)},prev:function(t){if(0<this.length){var i=this[0];return t?i.previousElementSibling&&e(i.previousElementSibling).is(t)?new o([i.previousElementSibling]):new o([]):i.previousElementSibling?new o([i.previousElementSibling]):new o([])}return new o([])},prevAll:function(t){var i=[],n=this[0];if(!n)return new o([]);for(;n.previousElementSibling;){var s=n.previousElementSibling;t?e(s).is(t)&&i.push(s):i.push(s),n=s}return new o(i)},parent:function(i){for(var n=[],s=0;s<this.length;s+=1)null!==this[s].parentNode&&(i?e(this[s].parentNode).is(i)&&n.push(this[s].parentNode):n.push(this[s].parentNode));return e(t(n))},parents:function(i){for(var n=[],s=0;s<this.length;s+=1)for(var a=this[s].parentNode;a;)i?e(a).is(i)&&n.push(a):n.push(a),a=a.parentNode;return e(t(n))},closest:function(e){var t=this;return void 0===e?new o([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(e),s=0;s<n.length;s+=1)t.push(n[s]);return new o(t)},children:function(i){for(var n=[],s=0;s<this.length;s+=1)for(var a=this[s].childNodes,r=0;r<a.length;r+=1)i?1===a[r].nodeType&&e(a[r]).is(i)&&n.push(a[r]):1===a[r].nodeType&&n.push(a[r]);return new o(t(n))},remove:function(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this},add:function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];var n,s;for(n=0;n<t.length;n+=1){var a=e(t[n]);for(s=0;s<a.length;s+=1)this[this.length]=a[s],this.length+=1}return this},styles:function(){return this[0]?r.getComputedStyle(this[0],null):{}}};Object.keys(l).forEach((function(t){e.fn[t]=e.fn[t]||l[t]}));var c,h,u,d,p={deleteProps:function(e){var t=e;Object.keys(t).forEach((function(e){try{t[e]=null}catch(e){}try{delete t[e]}catch(e){}}))},nextTick:function(e,t){return void 0===t&&(t=0),setTimeout(e,t)},now:function(){return Date.now()},getTranslate:function(e,t){var i,n,s;void 0===t&&(t="x");var a=r.getComputedStyle(e,null);return r.WebKitCSSMatrix?(6<(n=a.transform||a.webkitTransform).split(",").length&&(n=n.split(", ").map((function(e){return e.replace(",",".")})).join(", ")),s=new r.WebKitCSSMatrix("none"===n?"":n)):i=(s=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===t&&(n=r.WebKitCSSMatrix?s.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===t&&(n=r.WebKitCSSMatrix?s.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(e){var t,i,n,s,a={},o=e||r.location.href;if("string"==typeof o&&o.length)for(s=(i=(o=-1<o.indexOf("?")?o.replace(/\S*\?/,""):"").split("&").filter((function(e){return""!==e}))).length,t=0;t<s;t+=1)n=i[t].replace(/#\S+/g,"").split("="),a[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return a},isObject:function(e){return"object"==typeof e&&null!==e&&e.constructor&&e.constructor===Object},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var i=Object(e[0]),n=1;n<e.length;n+=1){var s=e[n];if(null!=s)for(var a=Object.keys(Object(s)),r=0,o=a.length;r<o;r+=1){var l=a[r],c=Object.getOwnPropertyDescriptor(s,l);void 0!==c&&c.enumerable&&(p.isObject(i[l])&&p.isObject(s[l])?p.extend(i[l],s[l]):!p.isObject(i[l])&&p.isObject(s[l])?(i[l]={},p.extend(i[l],s[l])):i[l]=s[l])}}return i}},f=(u=a.createElement("div"),{touch:r.Modernizr&&!0===r.Modernizr.touch||!!(0<r.navigator.maxTouchPoints||"ontouchstart"in r||r.DocumentTouch&&a instanceof r.DocumentTouch),pointerEvents:!!(r.navigator.pointerEnabled||r.PointerEvent||"maxTouchPoints"in r.navigator&&0<r.navigator.maxTouchPoints),prefixedPointerEvents:!!r.navigator.msPointerEnabled,transition:(h=u.style,"transition"in h||"webkitTransition"in h||"MozTransition"in h),transforms3d:r.Modernizr&&!0===r.Modernizr.csstransforms3d||(c=u.style,"webkitPerspective"in c||"MozPerspective"in c||"OPerspective"in c||"MsPerspective"in c||"perspective"in c),flexbox:function(){for(var e=u.style,t="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<t.length;i+=1)if(t[i]in e)return!0;return!1}(),observer:"MutationObserver"in r||"WebkitMutationObserver"in r,passiveListener:function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});r.addEventListener("testPassiveListener",null,t)}catch(e){}return e}(),gestures:"ongesturestart"in r}),m={isIE:!!r.navigator.userAgent.match(/Trident/g)||!!r.navigator.userAgent.match(/MSIE/g),isEdge:!!r.navigator.userAgent.match(/Edge/g),isSafari:(d=r.navigator.userAgent.toLowerCase(),0<=d.indexOf("safari")&&d.indexOf("chrome")<0&&d.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(r.navigator.userAgent)},g={components:{configurable:!0}};i.prototype.on=function(e,t,i){var n=this;if("function"!=typeof t)return n;var s=i?"unshift":"push";return e.split(" ").forEach((function(e){n.eventsListeners[e]||(n.eventsListeners[e]=[]),n.eventsListeners[e][s](t)})),n},i.prototype.once=function(e,t,i){function n(){for(var i=[],a=arguments.length;a--;)i[a]=arguments[a];t.apply(s,i),s.off(e,n),n.f7proxy&&delete n.f7proxy}var s=this;return"function"!=typeof t?s:(n.f7proxy=t,s.on(e,n,i))},i.prototype.off=function(e,t){var i=this;return i.eventsListeners&&e.split(" ").forEach((function(e){void 0===t?i.eventsListeners[e]=[]:i.eventsListeners[e]&&i.eventsListeners[e].length&&i.eventsListeners[e].forEach((function(n,s){(n===t||n.f7proxy&&n.f7proxy===t)&&i.eventsListeners[e].splice(s,1)}))})),i},i.prototype.emit=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];var i,n,s,a=this;return a.eventsListeners&&(s="string"==typeof e[0]||Array.isArray(e[0])?(i=e[0],n=e.slice(1,e.length),a):(i=e[0].events,n=e[0].data,e[0].context||a),(Array.isArray(i)?i:i.split(" ")).forEach((function(e){if(a.eventsListeners&&a.eventsListeners[e]){var t=[];a.eventsListeners[e].forEach((function(e){t.push(e)})),t.forEach((function(e){e.apply(s,n)}))}}))),a},i.prototype.useModulesParams=function(e){var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var n=t.modules[i];n.params&&p.extend(e,n.params)}))},i.prototype.useModules=function(e){void 0===e&&(e={});var t=this;t.modules&&Object.keys(t.modules).forEach((function(i){var n=t.modules[i],s=e[i]||{};n.instance&&Object.keys(n.instance).forEach((function(e){var i=n.instance[e];t[e]="function"==typeof i?i.bind(t):i})),n.on&&t.on&&Object.keys(n.on).forEach((function(e){t.on(e,n.on[e])})),n.create&&n.create.bind(t)(s)}))},g.components.set=function(e){this.use&&this.use(e)},i.installModule=function(e){for(var t=[],i=arguments.length-1;0<i--;)t[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var s=e.name||Object.keys(n.prototype.modules).length+"_"+p.now();return(n.prototype.modules[s]=e).proto&&Object.keys(e.proto).forEach((function(t){n.prototype[t]=e.proto[t]})),e.static&&Object.keys(e.static).forEach((function(t){n[t]=e.static[t]})),e.install&&e.install.apply(n,t),n},i.use=function(e){for(var t=[],i=arguments.length-1;0<i--;)t[i]=arguments[i+1];var n=this;return Array.isArray(e)?(e.forEach((function(e){return n.installModule(e)})),n):n.installModule.apply(n,[e].concat(t))},Object.defineProperties(i,g);var v={updateSize:function(){var e,t,i=this,n=i.$el;e=void 0!==i.params.width?i.params.width:n[0].clientWidth,t=void 0!==i.params.height?i.params.height:n[0].clientHeight,0===e&&i.isHorizontal()||0===t&&i.isVertical()||(e=e-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),t=t-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),p.extend(i,{width:e,height:t,size:i.isHorizontal()?e:t}))},updateSlides:function(){var e=this,t=e.params,i=e.$wrapperEl,n=e.size,s=e.rtlTranslate,a=e.wrongRTL,o=e.virtual&&t.virtual.enabled,l=o?e.virtual.slides.length:e.slides.length,c=i.children("."+e.params.slideClass),h=o?e.virtual.slides.length:c.length,u=[],d=[],g=[],v=t.slidesOffsetBefore;"function"==typeof v&&(v=t.slidesOffsetBefore.call(e));var b=t.slidesOffsetAfter;"function"==typeof b&&(b=t.slidesOffsetAfter.call(e));var y=e.snapGrid.length,_=e.snapGrid.length,w=t.spaceBetween,x=-v,C=0,T=0;if(void 0!==n){var E,S;"string"==typeof w&&0<=w.indexOf("%")&&(w=parseFloat(w.replace("%",""))/100*n),e.virtualSize=-w,s?c.css({marginLeft:"",marginTop:""}):c.css({marginRight:"",marginBottom:""}),1<t.slidesPerColumn&&(E=Math.floor(h/t.slidesPerColumn)===h/e.params.slidesPerColumn?h:Math.ceil(h/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(E=Math.max(E,t.slidesPerView*t.slidesPerColumn)));for(var k,D=t.slidesPerColumn,P=E/D,I=Math.floor(h/t.slidesPerColumn),M=0;M<h;M+=1){S=0;var A=c.eq(M);if(1<t.slidesPerColumn){var L=void 0,N=void 0,O=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&1<t.slidesPerGroup){if("column"===t.slidesPerColumnFill)O=M-(N=Math.floor(M/D))*D,(I<N||N===I&&O===D-1)&&D<=(O+=1)&&(O=0,N+=1);else{var R=Math.floor(M/t.slidesPerGroup);N=M-(O=Math.floor(M/t.slidesPerView)-R*t.slidesPerColumn)*t.slidesPerView-R*t.slidesPerView}L=N+O*E/D,A.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L
})}else N=M-(O=Math.floor(M/P))*P;A.css("margin-"+(e.isHorizontal()?"top":"left"),0!==O&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",N).attr("data-swiper-row",O)}if("none"!==A.css("display")){if("auto"===t.slidesPerView){var z=r.getComputedStyle(A[0],null),H=A[0].style.transform,F=A[0].style.webkitTransform;if(H&&(A[0].style.transform="none"),F&&(A[0].style.webkitTransform="none"),t.roundLengths)S=e.isHorizontal()?A.outerWidth(!0):A.outerHeight(!0);else if(e.isHorizontal()){var q=parseFloat(z.getPropertyValue("width")),j=parseFloat(z.getPropertyValue("padding-left")),W=parseFloat(z.getPropertyValue("padding-right")),B=parseFloat(z.getPropertyValue("margin-left")),$=parseFloat(z.getPropertyValue("margin-right")),V=z.getPropertyValue("box-sizing");S=V&&"border-box"===V&&!m.isIE?q+B+$:q+j+W+B+$}else{var Y=parseFloat(z.getPropertyValue("height")),X=parseFloat(z.getPropertyValue("padding-top")),U=parseFloat(z.getPropertyValue("padding-bottom")),G=parseFloat(z.getPropertyValue("margin-top")),K=parseFloat(z.getPropertyValue("margin-bottom")),Q=z.getPropertyValue("box-sizing");S=Q&&"border-box"===Q&&!m.isIE?Y+G+K:Y+X+U+G+K}H&&(A[0].style.transform=H),F&&(A[0].style.webkitTransform=F),t.roundLengths&&(S=Math.floor(S))}else S=(n-(t.slidesPerView-1)*w)/t.slidesPerView,t.roundLengths&&(S=Math.floor(S)),c[M]&&(e.isHorizontal()?c[M].style.width=S+"px":c[M].style.height=S+"px");c[M]&&(c[M].swiperSlideSize=S),g.push(S),t.centeredSlides?(x=x+S/2+C/2+w,0===C&&0!==M&&(x=x-n/2-w),0===M&&(x=x-n/2-w),Math.abs(x)<.001&&(x=0),t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&u.push(x),d.push(x)):(t.roundLengths&&(x=Math.floor(x)),T%t.slidesPerGroup==0&&u.push(x),d.push(x),x=x+S+w),e.virtualSize+=S+w,C=S,T+=1}}if(e.virtualSize=Math.max(e.virtualSize,n)+b,s&&a&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:e.virtualSize+t.spaceBetween+"px"}),f.flexbox&&!t.setWrapperSize||(e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"})),1<t.slidesPerColumn&&(e.virtualSize=(S+t.spaceBetween)*E,e.virtualSize=Math.ceil(e.virtualSize/t.slidesPerColumn)-t.spaceBetween,e.isHorizontal()?i.css({width:e.virtualSize+t.spaceBetween+"px"}):i.css({height:e.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){k=[];for(var J=0;J<u.length;J+=1){var Z=u[J];t.roundLengths&&(Z=Math.floor(Z)),u[J]<e.virtualSize+u[0]&&k.push(Z)}u=k}if(!t.centeredSlides){k=[];for(var ee=0;ee<u.length;ee+=1){var te=u[ee];t.roundLengths&&(te=Math.floor(te)),u[ee]<=e.virtualSize-n&&k.push(te)}u=k,1<Math.floor(e.virtualSize-n)-Math.floor(u[u.length-1])&&u.push(e.virtualSize-n)}if(0===u.length&&(u=[0]),0!==t.spaceBetween&&(e.isHorizontal()?s?c.css({marginLeft:w+"px"}):c.css({marginRight:w+"px"}):c.css({marginBottom:w+"px"})),t.centerInsufficientSlides){var ie=0;if(g.forEach((function(e){ie+=e+(t.spaceBetween?t.spaceBetween:0)})),(ie-=t.spaceBetween)<n){var ne=(n-ie)/2;u.forEach((function(e,t){u[t]=e-ne})),d.forEach((function(e,t){d[t]=e+ne}))}}p.extend(e,{slides:c,snapGrid:u,slidesGrid:d,slidesSizesGrid:g}),h!==l&&e.emit("slidesLengthChange"),u.length!==y&&(e.params.watchOverflow&&e.checkOverflow(),e.emit("snapGridLengthChange")),d.length!==_&&e.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&e.updateSlidesOffset()}},updateAutoHeight:function(e){var t,i=this,n=[],s=0;if("number"==typeof e?i.setTransition(e):!0===e&&i.setTransition(i.params.speed),"auto"!==i.params.slidesPerView&&1<i.params.slidesPerView)for(t=0;t<Math.ceil(i.params.slidesPerView);t+=1){var a=i.activeIndex+t;if(a>i.slides.length)break;n.push(i.slides.eq(a)[0])}else n.push(i.slides.eq(i.activeIndex)[0]);for(t=0;t<n.length;t+=1)if(void 0!==n[t]){var r=n[t].offsetHeight;s=s<r?r:s}s&&i.$wrapperEl.css("height",s+"px")},updateSlidesOffset:function(){for(var e=this.slides,t=0;t<e.length;t+=1)e[t].swiperSlideOffset=this.isHorizontal()?e[t].offsetLeft:e[t].offsetTop},updateSlidesProgress:function(t){var i=this,n=i.params;void 0===t&&(t=i&&i.translate||0);var s=i.slides,a=i.rtlTranslate;if(0!==s.length){void 0===s[0].swiperSlideOffset&&i.updateSlidesOffset();var r=-t;a&&(r=t),s.removeClass(n.slideVisibleClass),i.visibleSlidesIndexes=[],i.visibleSlides=[];for(var o=0;o<s.length;o+=1){var l=s[o],c=(r+(n.centeredSlides?i.minTranslate():0)-l.swiperSlideOffset)/(l.swiperSlideSize+n.spaceBetween);if(n.watchSlidesVisibility){var h=-(r-l.swiperSlideOffset),u=h+i.slidesSizesGrid[o];(0<=h&&h<i.size-1||1<u&&u<=i.size||h<=0&&u>=i.size)&&(i.visibleSlides.push(l),i.visibleSlidesIndexes.push(o),s.eq(o).addClass(n.slideVisibleClass))}l.progress=a?-c:c}i.visibleSlides=e(i.visibleSlides)}},updateProgress:function(e){var t=this,i=t.params;if(void 0===e){var n=t.rtlTranslate?-1:1;e=t&&t.translate&&t.translate*n||0}var s=t.maxTranslate()-t.minTranslate(),a=t.progress,r=t.isBeginning,o=t.isEnd,l=r,c=o;o=0==s?r=!(a=0):(r=(a=(e-t.minTranslate())/s)<=0,1<=a),p.extend(t,{progress:a,isBeginning:r,isEnd:o}),(i.watchSlidesProgress||i.watchSlidesVisibility)&&t.updateSlidesProgress(e),r&&!l&&t.emit("reachBeginning toEdge"),o&&!c&&t.emit("reachEnd toEdge"),(l&&!r||c&&!o)&&t.emit("fromEdge"),t.emit("progress",a)},updateSlidesClasses:function(){var e,t=this,i=t.slides,n=t.params,s=t.$wrapperEl,a=t.activeIndex,r=t.realIndex,o=t.virtual&&n.virtual.enabled;i.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(e=o?t.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+a+'"]'):i.eq(a)).addClass(n.slideActiveClass),n.loop&&(e.hasClass(n.slideDuplicateClass)?s.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass):s.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(n.slideDuplicateActiveClass));var l=e.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===l.length&&(l=i.eq(0)).addClass(n.slideNextClass);var c=e.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=i.eq(-1)).addClass(n.slidePrevClass),n.loop&&(l.hasClass(n.slideDuplicateClass)?s.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):s.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?s.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):s.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(e){var t,i=this,n=i.rtlTranslate?i.translate:-i.translate,s=i.slidesGrid,a=i.snapGrid,r=i.params,o=i.activeIndex,l=i.realIndex,c=i.snapIndex,h=e;if(void 0===h){for(var u=0;u<s.length;u+=1)void 0!==s[u+1]?n>=s[u]&&n<s[u+1]-(s[u+1]-s[u])/2?h=u:n>=s[u]&&n<s[u+1]&&(h=u+1):n>=s[u]&&(h=u);r.normalizeSlideIndex&&(h<0||void 0===h)&&(h=0)}if((t=0<=a.indexOf(n)?a.indexOf(n):Math.floor(h/r.slidesPerGroup))>=a.length&&(t=a.length-1),h!==o){var d=parseInt(i.slides.eq(h).attr("data-swiper-slide-index")||h,10);p.extend(i,{snapIndex:t,realIndex:d,previousIndex:o,activeIndex:h}),i.emit("activeIndexChange"),i.emit("snapIndexChange"),l!==d&&i.emit("realIndexChange"),(i.initialized||i.runCallbacksOnInit)&&i.emit("slideChange")}else t!==c&&(i.snapIndex=t,i.emit("snapIndexChange"))},updateClickedSlide:function(t){var i=this,n=i.params,s=e(t.target).closest("."+n.slideClass)[0],a=!1;if(s)for(var r=0;r<i.slides.length;r+=1)i.slides[r]===s&&(a=!0);if(!s||!a)return i.clickedSlide=void 0,void(i.clickedIndex=void 0);i.clickedSlide=s,i.virtual&&i.params.virtual.enabled?i.clickedIndex=parseInt(e(s).attr("data-swiper-slide-index"),10):i.clickedIndex=e(s).index(),n.slideToClickedSlide&&void 0!==i.clickedIndex&&i.clickedIndex!==i.activeIndex&&i.slideToClickedSlide()}},b={getTranslate:function(e){void 0===e&&(e=this.isHorizontal()?"x":"y");var t=this.params,i=this.rtlTranslate,n=this.translate,s=this.$wrapperEl;if(t.virtualTranslate)return i?-n:n;var a=p.getTranslate(s[0],e);return i&&(a=-a),a||0},setTranslate:function(e,t){var i=this,n=i.rtlTranslate,s=i.params,a=i.$wrapperEl,r=i.progress,o=0,l=0;i.isHorizontal()?o=n?-e:e:l=e,s.roundLengths&&(o=Math.floor(o),l=Math.floor(l)),s.virtualTranslate||(f.transforms3d?a.transform("translate3d("+o+"px, "+l+"px, 0px)"):a.transform("translate("+o+"px, "+l+"px)")),i.previousTranslate=i.translate,i.translate=i.isHorizontal()?o:l;var c=i.maxTranslate()-i.minTranslate();(0==c?0:(e-i.minTranslate())/c)!==r&&i.updateProgress(e),i.emit("setTranslate",i.translate,t)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}},y={setTransition:function(e,t){this.$wrapperEl.transition(e),this.emit("setTransition",e,t)},transitionStart:function(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,s=i.params,a=i.previousIndex;s.autoHeight&&i.updateAutoHeight();var r=t;if(r=r||(a<n?"next":n<a?"prev":"reset"),i.emit("transitionStart"),e&&n!==a){if("reset"===r)return void i.emit("slideResetTransitionStart");i.emit("slideChangeTransitionStart"),"next"===r?i.emit("slideNextTransitionStart"):i.emit("slidePrevTransitionStart")}},transitionEnd:function(e,t){void 0===e&&(e=!0);var i=this,n=i.activeIndex,s=i.previousIndex;i.animating=!1,i.setTransition(0);var a=t;if(a=a||(s<n?"next":n<s?"prev":"reset"),i.emit("transitionEnd"),e&&n!==s){if("reset"===a)return void i.emit("slideResetTransitionEnd");i.emit("slideChangeTransitionEnd"),"next"===a?i.emit("slideNextTransitionEnd"):i.emit("slidePrevTransitionEnd")}}},_={slideTo:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var s=this,a=e;a<0&&(a=0);var r=s.params,o=s.snapGrid,l=s.slidesGrid,c=s.previousIndex,h=s.activeIndex,u=s.rtlTranslate;if(s.animating&&r.preventInteractionOnTransition)return!1;var d=Math.floor(a/r.slidesPerGroup);d>=o.length&&(d=o.length-1),(h||r.initialSlide||0)===(c||0)&&i&&s.emit("beforeSlideChangeStart");var p,m=-o[d];if(s.updateProgress(m),r.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*m)>=Math.floor(100*l[g])&&(a=g);if(s.initialized&&a!==h){if(!s.allowSlideNext&&m<s.translate&&m<s.minTranslate())return!1;if(!s.allowSlidePrev&&m>s.translate&&m>s.maxTranslate()&&(h||0)!==a)return!1}return p=h<a?"next":a<h?"prev":"reset",u&&-m===s.translate||!u&&m===s.translate?(s.updateActiveIndex(a),r.autoHeight&&s.updateAutoHeight(),s.updateSlidesClasses(),"slide"!==r.effect&&s.setTranslate(m),"reset"!==p&&(s.transitionStart(i,p),s.transitionEnd(i,p)),!1):(0!==t&&f.transition?(s.setTransition(t),s.setTranslate(m),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,p),s.animating||(s.animating=!0,s.onSlideToWrapperTransitionEnd||(s.onSlideToWrapperTransitionEnd=function(e){s&&!s.destroyed&&e.target===this&&(s.$wrapperEl[0].removeEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].removeEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd),s.onSlideToWrapperTransitionEnd=null,delete s.onSlideToWrapperTransitionEnd,s.transitionEnd(i,p))}),s.$wrapperEl[0].addEventListener("transitionend",s.onSlideToWrapperTransitionEnd),s.$wrapperEl[0].addEventListener("webkitTransitionEnd",s.onSlideToWrapperTransitionEnd))):(s.setTransition(0),s.setTranslate(m),s.updateActiveIndex(a),s.updateSlidesClasses(),s.emit("beforeTransitionStart",t,n),s.transitionStart(i,p),s.transitionEnd(i,p)),!0)},slideToLoop:function(e,t,i,n){void 0===e&&(e=0),void 0===t&&(t=this.params.speed),void 0===i&&(i=!0);var s=e;return this.params.loop&&(s+=this.loopedSlides),this.slideTo(s,t,i,n)},slideNext:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,s=n.params,a=n.animating;return s.loop?!a&&(n.loopFix(),n._clientLeft=n.$wrapperEl[0].clientLeft,n.slideTo(n.activeIndex+s.slidesPerGroup,e,t,i)):n.slideTo(n.activeIndex+s.slidesPerGroup,e,t,i)},slidePrev:function(e,t,i){function n(e){return e<0?-Math.floor(Math.abs(e)):Math.floor(e)}void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var s=this,a=s.params,r=s.animating,o=s.snapGrid,l=s.slidesGrid,c=s.rtlTranslate;if(a.loop){if(r)return!1;s.loopFix(),s._clientLeft=s.$wrapperEl[0].clientLeft}var h,u=n(c?s.translate:-s.translate),d=o.map((function(e){return n(e)})),p=(l.map((function(e){return n(e)})),o[d.indexOf(u)],o[d.indexOf(u)-1]);return void 0!==p&&(h=l.indexOf(p))<0&&(h=s.activeIndex-1),s.slideTo(h,e,t,i)},slideReset:function(e,t,i){return void 0===e&&(e=this.params.speed),void 0===t&&(t=!0),this.slideTo(this.activeIndex,e,t,i)},slideToClosest:function(e,t,i){void 0===e&&(e=this.params.speed),void 0===t&&(t=!0);var n=this,s=n.activeIndex,a=Math.floor(s/n.params.slidesPerGroup);if(a<n.snapGrid.length-1){var r=n.rtlTranslate?n.translate:-n.translate,o=n.snapGrid[a];(n.snapGrid[a+1]-o)/2<r-o&&(s=n.params.slidesPerGroup)}return n.slideTo(s,e,t,i)},slideToClickedSlide:function(){var t,i=this,n=i.params,s=i.$wrapperEl,a="auto"===n.slidesPerView?i.slidesPerViewDynamic():n.slidesPerView,r=i.clickedIndex;if(n.loop){if(i.animating)return;t=parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?r<i.loopedSlides-a/2||r>i.slides.length-i.loopedSlides+a/2?(i.loopFix(),r=s.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),p.nextTick((function(){i.slideTo(r)}))):i.slideTo(r):r>i.slides.length-a?(i.loopFix(),r=s.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),p.nextTick((function(){i.slideTo(r)}))):i.slideTo(r)}else i.slideTo(r)}},w={loopCreate:function(){var t=this,i=t.params,n=t.$wrapperEl;n.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var s=n.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var r=i.slidesPerGroup-s.length%i.slidesPerGroup;if(r!==i.slidesPerGroup){for(var o=0;o<r;o+=1){var l=e(a.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);n.append(l)}s=n.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=s.length),t.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),t.loopedSlides+=i.loopAdditionalSlides,t.loopedSlides>s.length&&(t.loopedSlides=s.length);var c=[],h=[];s.each((function(i,n){var a=e(n);i<t.loopedSlides&&h.push(n),i<s.length&&i>=s.length-t.loopedSlides&&c.push(n),a.attr("data-swiper-slide-index",i)}));for(var u=0;u<h.length;u+=1)n.append(e(h[u].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var d=c.length-1;0<=d;d-=1)n.prepend(e(c[d].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var e,t=this,i=t.params,n=t.activeIndex,s=t.slides,a=t.loopedSlides,r=t.allowSlidePrev,o=t.allowSlideNext,l=t.snapGrid,c=t.rtlTranslate;t.allowSlidePrev=!0,t.allowSlideNext=!0;var h=-l[n]-t.getTranslate();n<a?(e=s.length-3*a+n,e+=a,t.slideTo(e,0,!1,!0)&&0!=h&&t.setTranslate((c?-t.translate:t.translate)-h)):("auto"===i.slidesPerView&&2*a<=n||n>=s.length-a)&&(e=-s.length+n+a,e+=a,t.slideTo(e,0,!1,!0)&&0!=h&&t.setTranslate((c?-t.translate:t.translate)-h)),t.allowSlidePrev=r,t.allowSlideNext=o},loopDestroy:function(){var e=this.$wrapperEl,t=this.params,i=this.slides;e.children("."+t.slideClass+"."+t.slideDuplicateClass+",."+t.slideClass+"."+t.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}},x={setGrabCursor:function(e){if(!(f.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var t=this.el;t.style.cursor="move",t.style.cursor=e?"-webkit-grabbing":"-webkit-grab",t.style.cursor=e?"-moz-grabbin":"-moz-grab",t.style.cursor=e?"grabbing":"grab"}},unsetGrabCursor:function(){f.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}},C={appendSlide:function(e){var t=this,i=t.$wrapperEl,n=t.params;if(n.loop&&t.loopDestroy(),"object"==typeof e&&"length"in e)for(var s=0;s<e.length;s+=1)e[s]&&i.append(e[s]);else i.append(e);n.loop&&t.loopCreate(),n.observer&&f.observer||t.update()},prependSlide:function(e){var t=this,i=t.params,n=t.$wrapperEl,s=t.activeIndex;i.loop&&t.loopDestroy();var a=s+1;if("object"==typeof e&&"length"in e){for(var r=0;r<e.length;r+=1)e[r]&&n.prepend(e[r]);a=s+e.length}else n.prepend(e);i.loop&&t.loopCreate(),i.observer&&f.observer||t.update(),t.slideTo(a,0,!1)},addSlide:function(e,t){var i=this,n=i.$wrapperEl,s=i.params,a=i.activeIndex;s.loop&&(a-=i.loopedSlides,i.loopDestroy(),i.slides=n.children("."+s.slideClass));var r=i.slides.length;if(e<=0)i.prependSlide(t);else if(r<=e)i.appendSlide(t);else{for(var o=e<a?a+1:a,l=[],c=r-1;e<=c;c-=1){var h=i.slides.eq(c);h.remove(),l.unshift(h)}if("object"==typeof t&&"length"in t){for(var u=0;u<t.length;u+=1)t[u]&&n.append(t[u]);o=e<a?a+t.length:a}else n.append(t);for(var d=0;d<l.length;d+=1)n.append(l[d]);s.loop&&i.loopCreate(),s.observer&&f.observer||i.update(),s.loop?i.slideTo(o+i.loopedSlides,0,!1):i.slideTo(o,0,!1)}},removeSlide:function(e){var t=this,i=t.params,n=t.$wrapperEl,s=t.activeIndex;i.loop&&(s-=t.loopedSlides,t.loopDestroy(),t.slides=n.children("."+i.slideClass));var a,r=s;if("object"==typeof e&&"length"in e){for(var o=0;o<e.length;o+=1)a=e[o],t.slides[a]&&t.slides.eq(a).remove(),a<r&&(r-=1);r=Math.max(r,0)}else a=e,t.slides[a]&&t.slides.eq(a).remove(),a<r&&(r-=1),r=Math.max(r,0);i.loop&&t.loopCreate(),i.observer&&f.observer||t.update(),i.loop?t.slideTo(r+t.loopedSlides,0,!1):t.slideTo(r,0,!1)},removeAllSlides:function(){for(var e=[],t=0;t<this.slides.length;t+=1)e.push(t);this.removeSlide(e)}},T=function(){var e=r.navigator.userAgent,t={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:r.cordova||r.phonegap,phonegap:r.cordova||r.phonegap},i=e.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=e.match(/(Android);?[\s\/]+([\d.]+)?/),s=e.match(/(iPad).*OS\s([\d_]+)/),o=e.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&e.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(t.os="windows",t.osVersion=i[2],t.windows=!0),n&&!i&&(t.os="android",t.osVersion=n[2],t.android=!0,t.androidChrome=0<=e.toLowerCase().indexOf("chrome")),(s||l||o)&&(t.os="ios",t.ios=!0),l&&!o&&(t.osVersion=l[2].replace(/_/g,"."),t.iphone=!0),s&&(t.osVersion=s[2].replace(/_/g,"."),t.ipad=!0),o&&(t.osVersion=o[3]?o[3].replace(/_/g,"."):null,t.iphone=!0),t.ios&&t.osVersion&&0<=e.indexOf("Version/")&&"10"===t.osVersion.split(".")[0]&&(t.osVersion=e.toLowerCase().split("version/")[1].split(" ")[0]),t.desktop=!(t.os||t.android||t.webView),t.webView=(l||s||o)&&e.match(/.*AppleWebKit(?!.*Safari)/i),t.os&&"ios"===t.os){var c=t.osVersion.split("."),h=a.querySelector('meta[name="viewport"]');t.minimalUi=!t.webView&&(o||l)&&(1*c[0]==7?1<=1*c[1]:7<1*c[0])&&h&&0<=h.getAttribute("content").indexOf("minimal-ui")}return t.pixelRatio=r.devicePixelRatio||1,t}(),E=!1,S={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},k={update:v,translate:b,transition:y,slide:_,loop:w,grabCursor:x,manipulation:C,events:{attachEvents:function(){var t=this,i=t.params,o=t.touchEvents,l=t.el,c=t.wrapperEl;t.onTouchStart=function(t){var i=this,n=i.touchEventsData,s=i.params,o=i.touches;if(!i.animating||!s.preventInteractionOnTransition){var l=t;if(l.originalEvent&&(l=l.originalEvent),n.isTouchEvent="touchstart"===l.type,(n.isTouchEvent||!("which"in l)||3!==l.which)&&!(!n.isTouchEvent&&"button"in l&&0<l.button||n.isTouched&&n.isMoved))if(s.noSwiping&&e(l.target).closest(s.noSwipingSelector?s.noSwipingSelector:"."+s.noSwipingClass)[0])i.allowClick=!0;else if(!s.swipeHandler||e(l).closest(s.swipeHandler)[0]){o.currentX="touchstart"===l.type?l.targetTouches[0].pageX:l.pageX,o.currentY="touchstart"===l.type?l.targetTouches[0].pageY:l.pageY;var c=o.currentX,h=o.currentY,u=s.edgeSwipeDetection||s.iOSEdgeSwipeDetection,d=s.edgeSwipeThreshold||s.iOSEdgeSwipeThreshold;if(!u||!(c<=d||c>=r.screen.width-d)){if(p.extend(n,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),o.startX=c,o.startY=h,n.touchStartTime=p.now(),i.allowClick=!0,i.updateSize(),i.swipeDirection=void 0,0<s.threshold&&(n.allowThresholdMove=!1),"touchstart"!==l.type){var f=!0;e(l.target).is(n.formElements)&&(f=!1),a.activeElement&&e(a.activeElement).is(n.formElements)&&a.activeElement!==l.target&&a.activeElement.blur();var m=f&&i.allowTouchMove&&s.touchStartPreventDefault;(s.touchStartForcePreventDefault||m)&&l.preventDefault()}i.emit("touchStart",l)}}}}.bind(t),t.onTouchMove=function(t){var i=this,n=i.touchEventsData,s=i.params,r=i.touches,o=i.rtlTranslate,l=t;if(l.originalEvent&&(l=l.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==l.type){var c="touchmove"===l.type&&l.targetTouches&&(l.targetTouches[0]||l.changedTouches[0]),h="touchmove"===l.type?c.pageX:l.pageX,u="touchmove"===l.type?c.pageY:l.pageY;if(l.preventedByNestedSwiper)return r.startX=h,void(r.startY=u);if(!i.allowTouchMove)return i.allowClick=!1,void(n.isTouched&&(p.extend(r,{startX:h,startY:u,currentX:h,currentY:u}),n.touchStartTime=p.now()));if(n.isTouchEvent&&s.touchReleaseOnEdges&&!s.loop)if(i.isVertical()){if(u<r.startY&&i.translate<=i.maxTranslate()||u>r.startY&&i.translate>=i.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(h<r.startX&&i.translate<=i.maxTranslate()||h>r.startX&&i.translate>=i.minTranslate())return;if(n.isTouchEvent&&a.activeElement&&l.target===a.activeElement&&e(l.target).is(n.formElements))return n.isMoved=!0,void(i.allowClick=!1);if(n.allowTouchCallbacks&&i.emit("touchMove",l),!(l.targetTouches&&1<l.targetTouches.length)){r.currentX=h,r.currentY=u;var d,f=r.currentX-r.startX,m=r.currentY-r.startY;if(!(i.params.threshold&&Math.sqrt(Math.pow(f,2)+Math.pow(m,2))<i.params.threshold))if(void 0===n.isScrolling&&(i.isHorizontal()&&r.currentY===r.startY||i.isVertical()&&r.currentX===r.startX?n.isScrolling=!1:25<=f*f+m*m&&(d=180*Math.atan2(Math.abs(m),Math.abs(f))/Math.PI,n.isScrolling=i.isHorizontal()?d>s.touchAngle:90-d>s.touchAngle)),n.isScrolling&&i.emit("touchMoveOpposite",l),void 0===n.startMoving&&(r.currentX===r.startX&&r.currentY===r.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){i.allowClick=!1,l.preventDefault(),s.touchMoveStopPropagation&&!s.nested&&l.stopPropagation(),n.isMoved||(s.loop&&i.loopFix(),n.startTranslate=i.getTranslate(),i.setTransition(0),i.animating&&i.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!s.grabCursor||!0!==i.allowSlideNext&&!0!==i.allowSlidePrev||i.setGrabCursor(!0),i.emit("sliderFirstMove",l)),i.emit("sliderMove",l),n.isMoved=!0;var g=i.isHorizontal()?f:m;r.diff=g,g*=s.touchRatio,o&&(g=-g),i.swipeDirection=0<g?"prev":"next",n.currentTranslate=g+n.startTranslate;var v=!0,b=s.resistanceRatio;if(s.touchReleaseOnEdges&&(b=0),0<g&&n.currentTranslate>i.minTranslate()?(v=!1,s.resistance&&(n.currentTranslate=i.minTranslate()-1+Math.pow(-i.minTranslate()+n.startTranslate+g,b))):g<0&&n.currentTranslate<i.maxTranslate()&&(v=!1,s.resistance&&(n.currentTranslate=i.maxTranslate()+1-Math.pow(i.maxTranslate()-n.startTranslate-g,b))),v&&(l.preventedByNestedSwiper=!0),!i.allowSlideNext&&"next"===i.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!i.allowSlidePrev&&"prev"===i.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),0<s.threshold){if(!(Math.abs(g)>s.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,r.startX=r.currentX,r.startY=r.currentY,n.currentTranslate=n.startTranslate,void(r.diff=i.isHorizontal()?r.currentX-r.startX:r.currentY-r.startY)}s.followFinger&&((s.freeMode||s.watchSlidesProgress||s.watchSlidesVisibility)&&(i.updateActiveIndex(),i.updateSlidesClasses()),s.freeMode&&(0===n.velocities.length&&n.velocities.push({position:r[i.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:r[i.isHorizontal()?"currentX":"currentY"],time:p.now()})),i.updateProgress(n.currentTranslate),i.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&i.emit("touchMoveOpposite",l)}.bind(t),t.onTouchEnd=function(e){var t=this,i=t.touchEventsData,n=t.params,s=t.touches,a=t.rtlTranslate,r=t.$wrapperEl,o=t.slidesGrid,l=t.snapGrid,c=e;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&t.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&t.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===t.allowSlideNext||!0===t.allowSlidePrev)&&t.setGrabCursor(!1);var h,u=p.now(),d=u-i.touchStartTime;if(t.allowClick&&(t.updateClickedSlide(c),t.emit("tap",c),d<300&&300<u-i.lastClickTime&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=p.nextTick((function(){t&&!t.destroyed&&t.emit("click",c)}),300)),d<300&&u-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),t.emit("doubleTap",c))),i.lastClickTime=p.now(),p.nextTick((function(){t.destroyed||(t.allowClick=!0)})),!i.isTouched||!i.isMoved||!t.swipeDirection||0===s.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=n.followFinger?a?t.translate:-t.translate:-i.currentTranslate,n.freeMode){if(h<-t.minTranslate())return void t.slideTo(t.activeIndex);if(h>-t.maxTranslate())return void(t.slides.length<l.length?t.slideTo(l.length-1):t.slideTo(t.slides.length-1));if(n.freeModeMomentum){if(1<i.velocities.length){var f=i.velocities.pop(),m=i.velocities.pop(),g=f.position-m.position,v=f.time-m.time;t.velocity=g/v,t.velocity/=2,Math.abs(t.velocity)<n.freeModeMinimumVelocity&&(t.velocity=0),(150<v||300<p.now()-f.time)&&(t.velocity=0)}else t.velocity=0;t.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var b=1e3*n.freeModeMomentumRatio,y=t.velocity*b,_=t.translate+y;a&&(_=-_);var w,x,C=!1,T=20*Math.abs(t.velocity)*n.freeModeMomentumBounceRatio;if(_<t.maxTranslate())n.freeModeMomentumBounce?(_+t.maxTranslate()<-T&&(_=t.maxTranslate()-T),w=t.maxTranslate(),C=!0,i.allowMomentumBounce=!0):_=t.maxTranslate(),n.loop&&n.centeredSlides&&(x=!0);else if(_>t.minTranslate())n.freeModeMomentumBounce?(_-t.minTranslate()>T&&(_=t.minTranslate()+T),w=t.minTranslate(),C=!0,i.allowMomentumBounce=!0):_=t.minTranslate(),n.loop&&n.centeredSlides&&(x=!0);else if(n.freeModeSticky){for(var E,S=0;S<l.length;S+=1)if(l[S]>-_){E=S;break}_=-(_=Math.abs(l[E]-_)<Math.abs(l[E-1]-_)||"next"===t.swipeDirection?l[E]:l[E-1])}if(x&&t.once("transitionEnd",(function(){t.loopFix()})),0!==t.velocity)b=a?Math.abs((-_-t.translate)/t.velocity):Math.abs((_-t.translate)/t.velocity);else if(n.freeModeSticky)return void t.slideToClosest();n.freeModeMomentumBounce&&C?(t.updateProgress(w),t.setTransition(b),t.setTranslate(_),t.transitionStart(!0,t.swipeDirection),t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&i.allowMomentumBounce&&(t.emit("momentumBounce"),t.setTransition(n.speed),t.setTranslate(w),r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))}))):t.velocity?(t.updateProgress(_),t.setTransition(b),t.setTranslate(_),t.transitionStart(!0,t.swipeDirection),t.animating||(t.animating=!0,r.transitionEnd((function(){t&&!t.destroyed&&t.transitionEnd()})))):t.updateProgress(_),t.updateActiveIndex(),t.updateSlidesClasses()}else if(n.freeModeSticky)return void t.slideToClosest();(!n.freeModeMomentum||d>=n.longSwipesMs)&&(t.updateProgress(),t.updateActiveIndex(),t.updateSlidesClasses())}else{for(var k=0,D=t.slidesSizesGrid[0],P=0;P<o.length;P+=n.slidesPerGroup)void 0!==o[P+n.slidesPerGroup]?h>=o[P]&&h<o[P+n.slidesPerGroup]&&(D=o[(k=P)+n.slidesPerGroup]-o[P]):h>=o[P]&&(k=P,D=o[o.length-1]-o[o.length-2]);var I=(h-o[k])/D;if(d>n.longSwipesMs){if(!n.longSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&(I>=n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k)),"prev"===t.swipeDirection&&(I>1-n.longSwipesRatio?t.slideTo(k+n.slidesPerGroup):t.slideTo(k))}else{if(!n.shortSwipes)return void t.slideTo(t.activeIndex);"next"===t.swipeDirection&&t.slideTo(k+n.slidesPerGroup),"prev"===t.swipeDirection&&t.slideTo(k)}}}.bind(t),t.onClick=function(e){this.allowClick||(this.params.preventClicks&&e.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(e.stopPropagation(),e.stopImmediatePropagation()))}.bind(t);var h="container"===i.touchEventsTarget?l:c,u=!!i.nested;if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var d=!("touchstart"!==o.start||!f.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};h.addEventListener(o.start,t.onTouchStart,d),h.addEventListener(o.move,t.onTouchMove,f.passiveListener?{passive:!1,capture:u}:u),h.addEventListener(o.end,t.onTouchEnd,d),E||(a.addEventListener("touchstart",s),E=!0)}(i.simulateTouch&&!T.ios&&!T.android||i.simulateTouch&&!f.touch&&T.ios)&&(h.addEventListener("mousedown",t.onTouchStart,!1),a.addEventListener("mousemove",t.onTouchMove,u),a.addEventListener("mouseup",t.onTouchEnd,!1))}else h.addEventListener(o.start,t.onTouchStart,!1),a.addEventListener(o.move,t.onTouchMove,u),a.addEventListener(o.end,t.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&h.addEventListener("click",t.onClick,!0),t.on(T.ios||T.android?"resize orientationchange observerUpdate":"resize observerUpdate",n,!0)},detachEvents:function(){var e=this,t=e.params,i=e.touchEvents,s=e.el,r=e.wrapperEl,o="container"===t.touchEventsTarget?s:r,l=!!t.nested;if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var c=!("onTouchStart"!==i.start||!f.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(i.start,e.onTouchStart,c),o.removeEventListener(i.move,e.onTouchMove,l),o.removeEventListener(i.end,e.onTouchEnd,c)}(t.simulateTouch&&!T.ios&&!T.android||t.simulateTouch&&!f.touch&&T.ios)&&(o.removeEventListener("mousedown",e.onTouchStart,!1),a.removeEventListener("mousemove",e.onTouchMove,l),a.removeEventListener("mouseup",e.onTouchEnd,!1))}else o.removeEventListener(i.start,e.onTouchStart,!1),a.removeEventListener(i.move,e.onTouchMove,l),a.removeEventListener(i.end,e.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&o.removeEventListener("click",e.onClick,!0),e.off(T.ios||T.android?"resize orientationchange observerUpdate":"resize observerUpdate",n)}},breakpoints:{setBreakpoint:function(){var e=this,t=e.activeIndex,i=e.initialized,n=e.loopedSlides;void 0===n&&(n=0);var s=e.params,a=s.breakpoints;if(a&&(!a||0!==Object.keys(a).length)){var r=e.getBreakpoint(a)
;if(r&&e.currentBreakpoint!==r){var o=r in a?a[r]:void 0;o&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach((function(e){var t=o[e];void 0!==t&&(o[e]="slidesPerView"!==e||"AUTO"!==t&&"auto"!==t?"slidesPerView"===e?parseFloat(t):parseInt(t,10):"auto")}));var l=o||e.originalParams,c=l.direction&&l.direction!==s.direction,h=s.loop&&(l.slidesPerView!==s.slidesPerView||c);c&&i&&e.changeDirection(),p.extend(e.params,l),p.extend(e,{allowTouchMove:e.params.allowTouchMove,allowSlideNext:e.params.allowSlideNext,allowSlidePrev:e.params.allowSlidePrev}),e.currentBreakpoint=r,h&&i&&(e.loopDestroy(),e.loopCreate(),e.updateSlides(),e.slideTo(t-n+e.loopedSlides,0,!1)),e.emit("breakpoint",l)}}},getBreakpoint:function(e){if(e){var t=!1,i=[];Object.keys(e).forEach((function(e){i.push(e)})),i.sort((function(e,t){return parseInt(e,10)-parseInt(t,10)}));for(var n=0;n<i.length;n+=1){var s=i[n];this.params.breakpointsInverse?s<=r.innerWidth&&(t=s):s>=r.innerWidth&&!t&&(t=s)}return t||"max"}}},checkOverflow:{checkOverflow:function(){var e=this,t=e.isLocked;e.isLocked=1===e.snapGrid.length,e.allowSlideNext=!e.isLocked,e.allowSlidePrev=!e.isLocked,t!==e.isLocked&&e.emit(e.isLocked?"lock":"unlock"),t&&t!==e.isLocked&&(e.isEnd=!1,e.navigation.update())}},classes:{addClasses:function(){var e=this.classNames,t=this.params,i=this.rtl,n=this.$el,s=[];s.push("initialized"),s.push(t.direction),t.freeMode&&s.push("free-mode"),f.flexbox||s.push("no-flexbox"),t.autoHeight&&s.push("autoheight"),i&&s.push("rtl"),1<t.slidesPerColumn&&s.push("multirow"),T.android&&s.push("android"),T.ios&&s.push("ios"),(m.isIE||m.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&s.push("wp8-"+t.direction),s.forEach((function(i){e.push(t.containerModifierClass+i)})),n.addClass(e.join(" "))},removeClasses:function(){var e=this.$el,t=this.classNames;e.removeClass(t.join(" "))}},images:{loadImage:function(e,t,i,n,s,a){function o(){a&&a()}var l;e.complete&&s?o():t?((l=new r.Image).onload=o,l.onerror=o,n&&(l.sizes=n),i&&(l.srcset=i),t&&(l.src=t)):o()},preloadImages:function(){function e(){null!=t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}var t=this;t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},D={},P=function(t){function i(){for(var n,s,a,r=[],o=arguments.length;o--;)r[o]=arguments[o];a=(a=1===r.length&&r[0].constructor&&r[0].constructor===Object?r[0]:(s=(n=r)[0],n[1]))||{},a=p.extend({},a),s&&!a.el&&(a.el=s),t.call(this,a),Object.keys(k).forEach((function(e){Object.keys(k[e]).forEach((function(t){i.prototype[t]||(i.prototype[t]=k[e][t])}))}));var l=this;void 0===l.modules&&(l.modules={}),Object.keys(l.modules).forEach((function(e){var t=l.modules[e];if(t.params){var i=Object.keys(t.params)[0],n=t.params[i];if("object"!=typeof n||null===n)return;if(!(i in a)||!("enabled"in n))return;!0===a[i]&&(a[i]={enabled:!0}),"object"!=typeof a[i]||"enabled"in a[i]||(a[i].enabled=!0),a[i]||(a[i]={enabled:!1})}}));var c=p.extend({},S);l.useModulesParams(c),l.params=p.extend({},c,D,a),l.originalParams=p.extend({},l.params),l.passedParams=p.extend({},a);var h=(l.$=e)(l.params.el);if(s=h[0]){if(1<h.length){var u=[];return h.each((function(e,t){var n=p.extend({},a,{el:t});u.push(new i(n))})),u}s.swiper=l,h.data("swiper",l);var d,m,g=h.children("."+l.params.wrapperClass);return p.extend(l,{$el:h,el:s,$wrapperEl:g,wrapperEl:g[0],classNames:[],slides:e(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===l.params.direction},isVertical:function(){return"vertical"===l.params.direction},rtl:"rtl"===s.dir.toLowerCase()||"rtl"===h.css("direction"),rtlTranslate:"horizontal"===l.params.direction&&("rtl"===s.dir.toLowerCase()||"rtl"===h.css("direction")),wrongRTL:"-webkit-box"===g.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:l.params.allowSlideNext,allowSlidePrev:l.params.allowSlidePrev,touchEvents:(d=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],f.pointerEvents?m=["pointerdown","pointermove","pointerup"]:f.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),l.touchEventsTouch={start:d[0],move:d[1],end:d[2]},l.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},f.touch||!l.params.simulateTouch?l.touchEventsTouch:l.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:p.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:l.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),l.useModules(),l.params.init&&l.init(),l}}t&&(i.__proto__=t);var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return((i.prototype=Object.create(t&&t.prototype)).constructor=i).prototype.slidesPerViewDynamic=function(){var e=this,t=e.params,i=e.slides,n=e.slidesGrid,s=e.size,a=e.activeIndex,r=1;if(t.centeredSlides){for(var o,l=i[a].swiperSlideSize,c=a+1;c<i.length;c+=1)i[c]&&!o&&(r+=1,s<(l+=i[c].swiperSlideSize)&&(o=!0));for(var h=a-1;0<=h;h-=1)i[h]&&!o&&(r+=1,s<(l+=i[h].swiperSlideSize)&&(o=!0))}else for(var u=a+1;u<i.length;u+=1)n[u]-n[a]<s&&(r+=1);return r},i.prototype.update=function(){function e(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}var t=this;if(t&&!t.destroyed){var i=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(e(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||1<t.params.slidesPerView)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||e(),n.watchOverflow&&i!==t.snapGrid&&t.checkOverflow(),t.emit("update")}},i.prototype.changeDirection=function(e,t){void 0===t&&(t=!0);var i=this,n=i.params.direction;return(e=e||("horizontal"===n?"vertical":"horizontal"))===n||"horizontal"!==e&&"vertical"!==e||(i.$el.removeClass(""+i.params.containerModifierClass+n+" wp8-"+n).addClass(""+i.params.containerModifierClass+e),(m.isIE||m.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&i.$el.addClass(i.params.containerModifierClass+"wp8-"+e),i.params.direction=e,i.slides.each((function(t,i){"vertical"===e?i.style.width="":i.style.height=""})),i.emit("changeDirection"),t&&i.update()),i},i.prototype.init=function(){var e=this;e.initialized||(e.emit("beforeInit"),e.params.breakpoints&&e.setBreakpoint(),e.addClasses(),e.params.loop&&e.loopCreate(),e.updateSize(),e.updateSlides(),e.params.watchOverflow&&e.checkOverflow(),e.params.grabCursor&&e.setGrabCursor(),e.params.preloadImages&&e.preloadImages(),e.params.loop?e.slideTo(e.params.initialSlide+e.loopedSlides,0,e.params.runCallbacksOnInit):e.slideTo(e.params.initialSlide,0,e.params.runCallbacksOnInit),e.attachEvents(),e.initialized=!0,e.emit("init"))},i.prototype.destroy=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0);var i=this,n=i.params,s=i.$el,a=i.$wrapperEl,r=i.slides;return void 0===i.params||i.destroyed||(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),t&&(i.removeClasses(),s.removeAttr("style"),a.removeAttr("style"),r&&r.length&&r.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach((function(e){i.off(e)})),!1!==e&&(i.$el[0].swiper=null,i.$el.data("swiper",null),p.deleteProps(i)),i.destroyed=!0),null},i.extendDefaults=function(e){p.extend(D,e)},n.extendedDefaults.get=function(){return D},n.defaults.get=function(){return S},n.Class.get=function(){return t},n.$.get=function(){return e},Object.defineProperties(i,n),i}(i),I={name:"device",proto:{device:T},static:{device:T}},M={name:"support",proto:{support:f},static:{support:f}},A={name:"browser",proto:{browser:m},static:{browser:m}},L={name:"resize",create:function(){var e=this;p.extend(e,{resize:{resizeHandler:function(){e&&!e.destroyed&&e.initialized&&(e.emit("beforeResize"),e.emit("resize"))},orientationChangeHandler:function(){e&&!e.destroyed&&e.initialized&&e.emit("orientationchange")}}})},on:{init:function(){r.addEventListener("resize",this.resize.resizeHandler),r.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){r.removeEventListener("resize",this.resize.resizeHandler),r.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},N={func:r.MutationObserver||r.WebkitMutationObserver,attach:function(e,t){void 0===t&&(t={});var i=this,n=new N.func((function(e){if(1!==e.length){var t=function(){i.emit("observerUpdate",e[0])};r.requestAnimationFrame?r.requestAnimationFrame(t):r.setTimeout(t,0)}else i.emit("observerUpdate",e[0])}));n.observe(e,{attributes:void 0===t.attributes||t.attributes,childList:void 0===t.childList||t.childList,characterData:void 0===t.characterData||t.characterData}),i.observer.observers.push(n)},init:function(){var e=this;if(f.observer&&e.params.observer){if(e.params.observeParents)for(var t=e.$el.parents(),i=0;i<t.length;i+=1)e.observer.attach(t[i]);e.observer.attach(e.$el[0],{childList:e.params.observeSlideChildren}),e.observer.attach(e.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach((function(e){e.disconnect()})),this.observer.observers=[]}},O={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){p.extend(this,{observer:{init:N.init.bind(this),attach:N.attach.bind(this),destroy:N.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},R={update:function(e){function t(){i.updateSlides(),i.updateProgress(),i.updateSlidesClasses(),i.lazy&&i.params.lazy.enabled&&i.lazy.load()}var i=this,n=i.params,s=n.slidesPerView,a=n.slidesPerGroup,r=n.centeredSlides,o=i.params.virtual,l=o.addSlidesBefore,c=o.addSlidesAfter,h=i.virtual,u=h.from,d=h.to,f=h.slides,m=h.slidesGrid,g=h.renderSlide,v=h.offset;i.updateActiveIndex();var b,y,_,w=i.activeIndex||0;b=i.rtlTranslate?"right":i.isHorizontal()?"left":"top",_=r?(y=Math.floor(s/2)+a+l,Math.floor(s/2)+a+c):(y=s+(a-1)+l,a+c);var x=Math.max((w||0)-_,0),C=Math.min((w||0)+y,f.length-1),T=(i.slidesGrid[x]||0)-(i.slidesGrid[0]||0);if(p.extend(i.virtual,{from:x,to:C,offset:T,slidesGrid:i.slidesGrid}),u===x&&d===C&&!e)return i.slidesGrid!==m&&T!==v&&i.slides.css(b,T+"px"),void i.updateProgress();if(i.params.virtual.renderExternal)return i.params.virtual.renderExternal.call(i,{offset:T,from:x,to:C,slides:function(){for(var e=[],t=x;t<=C;t+=1)e.push(f[t]);return e}()}),void t();var E=[],S=[];if(e)i.$wrapperEl.find("."+i.params.slideClass).remove();else for(var k=u;k<=d;k+=1)(k<x||C<k)&&i.$wrapperEl.find("."+i.params.slideClass+'[data-swiper-slide-index="'+k+'"]').remove();for(var D=0;D<f.length;D+=1)x<=D&&D<=C&&(void 0===d||e?S.push(D):(d<D&&S.push(D),D<u&&E.push(D)));S.forEach((function(e){i.$wrapperEl.append(g(f[e],e))})),E.sort((function(e,t){return t-e})).forEach((function(e){i.$wrapperEl.prepend(g(f[e],e))})),i.$wrapperEl.children(".swiper-slide").css(b,T+"px"),t()},renderSlide:function(t,i){var n=this,s=n.params.virtual;if(s.cache&&n.virtual.cache[i])return n.virtual.cache[i];var a=s.renderSlide?e(s.renderSlide.call(n,t,i)):e('<div class="'+n.params.slideClass+'" data-swiper-slide-index="'+i+'">'+t+"</div>");return a.attr("data-swiper-slide-index")||a.attr("data-swiper-slide-index",i),s.cache&&(n.virtual.cache[i]=a),a},appendSlide:function(e){if("object"==typeof e&&"length"in e)for(var t=0;t<e.length;t+=1)e[t]&&this.virtual.slides.push(e[t]);else this.virtual.slides.push(e);this.virtual.update(!0)},prependSlide:function(e){var t=this,i=t.activeIndex,n=i+1,s=1;if(Array.isArray(e)){for(var a=0;a<e.length;a+=1)e[a]&&t.virtual.slides.unshift(e[a]);n=i+e.length,s=e.length}else t.virtual.slides.unshift(e);if(t.params.virtual.cache){var r=t.virtual.cache,o={};Object.keys(r).forEach((function(e){o[parseInt(e,10)+s]=r[e]})),t.virtual.cache=o}t.virtual.update(!0),t.slideTo(n,0)},removeSlide:function(e){var t=this;if(null!=e){var i=t.activeIndex;if(Array.isArray(e))for(var n=e.length-1;0<=n;n-=1)t.virtual.slides.splice(e[n],1),t.params.virtual.cache&&delete t.virtual.cache[e[n]],e[n]<i&&(i-=1),i=Math.max(i,0);else t.virtual.slides.splice(e,1),t.params.virtual.cache&&delete t.virtual.cache[e],e<i&&(i-=1),i=Math.max(i,0);t.virtual.update(!0),t.slideTo(i,0)}},removeAllSlides:function(){var e=this;e.virtual.slides=[],e.params.virtual.cache&&(e.virtual.cache={}),e.virtual.update(!0),e.slideTo(0,0)}},z={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){var e=this;p.extend(e,{virtual:{update:R.update.bind(e),appendSlide:R.appendSlide.bind(e),prependSlide:R.prependSlide.bind(e),removeSlide:R.removeSlide.bind(e),removeAllSlides:R.removeAllSlides.bind(e),renderSlide:R.renderSlide.bind(e),slides:e.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){var e=this;if(e.params.virtual.enabled){e.classNames.push(e.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};p.extend(e.params,t),p.extend(e.originalParams,t),e.params.initialSlide||e.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},H={handle:function(e){var t=this,i=t.rtlTranslate,n=e;n.originalEvent&&(n=n.originalEvent);var s=n.keyCode||n.charCode;if(!t.allowSlideNext&&(t.isHorizontal()&&39===s||t.isVertical()&&40===s||34===s))return!1;if(!t.allowSlidePrev&&(t.isHorizontal()&&37===s||t.isVertical()&&38===s||33===s))return!1;if(!(n.shiftKey||n.altKey||n.ctrlKey||n.metaKey||a.activeElement&&a.activeElement.nodeName&&("input"===a.activeElement.nodeName.toLowerCase()||"textarea"===a.activeElement.nodeName.toLowerCase()))){if(t.params.keyboard.onlyInViewport&&(33===s||34===s||37===s||39===s||38===s||40===s)){var o=!1;if(0<t.$el.parents("."+t.params.slideClass).length&&0===t.$el.parents("."+t.params.slideActiveClass).length)return;var l=r.innerWidth,c=r.innerHeight,h=t.$el.offset();i&&(h.left-=t.$el[0].scrollLeft);for(var u=[[h.left,h.top],[h.left+t.width,h.top],[h.left,h.top+t.height],[h.left+t.width,h.top+t.height]],d=0;d<u.length;d+=1){var p=u[d];0<=p[0]&&p[0]<=l&&0<=p[1]&&p[1]<=c&&(o=!0)}if(!o)return}t.isHorizontal()?(33!==s&&34!==s&&37!==s&&39!==s||(n.preventDefault?n.preventDefault():n.returnValue=!1),(34!==s&&39!==s||i)&&(33!==s&&37!==s||!i)||t.slideNext(),(33!==s&&37!==s||i)&&(34!==s&&39!==s||!i)||t.slidePrev()):(33!==s&&34!==s&&38!==s&&40!==s||(n.preventDefault?n.preventDefault():n.returnValue=!1),34!==s&&40!==s||t.slideNext(),33!==s&&38!==s||t.slidePrev()),t.emit("keyPress",s)}},enable:function(){this.keyboard.enabled||(e(a).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(e(a).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},F={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){p.extend(this,{keyboard:{enabled:!1,enable:H.enable.bind(this),disable:H.disable.bind(this),handle:H.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}},q={lastScrollTime:p.now(),event:-1<r.navigator.userAgent.indexOf("firefox")?"DOMMouseScroll":function(){var e="onwheel",t=e in a;if(!t){var i=a.createElement("div");i.setAttribute(e,"return;"),t="function"==typeof i[e]}return!t&&a.implementation&&a.implementation.hasFeature&&!0!==a.implementation.hasFeature("","")&&(t=a.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(e){var t=0,i=0,n=0,s=0;return"detail"in e&&(i=e.detail),"wheelDelta"in e&&(i=-e.wheelDelta/120),"wheelDeltaY"in e&&(i=-e.wheelDeltaY/120),"wheelDeltaX"in e&&(t=-e.wheelDeltaX/120),"axis"in e&&e.axis===e.HORIZONTAL_AXIS&&(t=i,i=0),n=10*t,s=10*i,"deltaY"in e&&(s=e.deltaY),"deltaX"in e&&(n=e.deltaX),(n||s)&&e.deltaMode&&(1===e.deltaMode?(n*=40,s*=40):(n*=800,s*=800)),n&&!t&&(t=n<1?-1:1),s&&!i&&(i=s<1?-1:1),{spinX:t,spinY:i,pixelX:n,pixelY:s}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(e){var t=e,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;t.originalEvent&&(t=t.originalEvent);var s=0,a=i.rtlTranslate?-1:1,o=q.normalize(t);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(o.pixelX)>Math.abs(o.pixelY)))return!0;s=o.pixelX*a}else{if(!(Math.abs(o.pixelY)>Math.abs(o.pixelX)))return!0;s=o.pixelY}else s=Math.abs(o.pixelX)>Math.abs(o.pixelY)?-o.pixelX*a:-o.pixelY;if(0===s)return!0;if(n.invert&&(s=-s),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+s*n.sensitivity,c=i.isBeginning,h=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!c&&i.isBeginning||!h&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=p.nextTick((function(){i.slideToClosest()}),300)),i.emit("scroll",t),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(60<p.now()-i.mousewheel.lastScrollTime)if(s<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",t);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",t);i.mousewheel.lastScrollTime=(new r.Date).getTime()}return t.preventDefault?t.preventDefault():t.returnValue=!1,!1},enable:function(){var t=this;if(!q.event)return!1;if(t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.on("mouseenter",t.mousewheel.handleMouseEnter),i.on("mouseleave",t.mousewheel.handleMouseLeave),i.on(q.event,t.mousewheel.handle),t.mousewheel.enabled=!0},disable:function(){var t=this;if(!q.event)return!1;if(!t.mousewheel.enabled)return!1;var i=t.$el;return"container"!==t.params.mousewheel.eventsTarged&&(i=e(t.params.mousewheel.eventsTarged)),i.off(q.event,t.mousewheel.handle),!(t.mousewheel.enabled=!1)}},j={update:function(){var e=this,t=e.params.navigation;if(!e.params.loop){var i=e.navigation,n=i.$nextEl,s=i.$prevEl;s&&0<s.length&&(e.isBeginning?s.addClass(t.disabledClass):s.removeClass(t.disabledClass),s[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass)),n&&0<n.length&&(e.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(e){e.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(e){e.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,i,n=this,s=n.params.navigation;(s.nextEl||s.prevEl)&&(s.nextEl&&(t=e(s.nextEl),n.params.uniqueNavElements&&"string"==typeof s.nextEl&&1<t.length&&1===n.$el.find(s.nextEl).length&&(t=n.$el.find(s.nextEl))),s.prevEl&&(i=e(s.prevEl),n.params.uniqueNavElements&&"string"==typeof s.prevEl&&1<i.length&&1===n.$el.find(s.prevEl).length&&(i=n.$el.find(s.prevEl))),t&&0<t.length&&t.on("click",n.navigation.onNextClick),i&&0<i.length&&i.on("click",n.navigation.onPrevClick),p.extend(n.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:i,prevEl:i&&i[0]}))},destroy:function(){var e=this,t=e.navigation,i=t.$nextEl,n=t.$prevEl;i&&i.length&&(i.off("click",e.navigation.onNextClick),i.removeClass(e.params.navigation.disabledClass)),n&&n.length&&(n.off("click",e.navigation.onPrevClick),n.removeClass(e.params.navigation.disabledClass))}},W={update:function(){var t=this,i=t.rtl,n=t.params.pagination;if(n.el&&t.pagination.el&&t.pagination.$el&&0!==t.pagination.$el.length){var s,a=t.virtual&&t.params.virtual.enabled?t.virtual.slides.length:t.slides.length,r=t.pagination.$el,o=t.params.loop?Math.ceil((a-2*t.loopedSlides)/t.params.slidesPerGroup):t.snapGrid.length;if(t.params.loop?((s=Math.ceil((t.activeIndex-t.loopedSlides)/t.params.slidesPerGroup))>a-1-2*t.loopedSlides&&(s-=a-2*t.loopedSlides),o-1<s&&(s-=o),s<0&&"bullets"!==t.params.paginationType&&(s=o+s)):s=void 0!==t.snapIndex?t.snapIndex:t.activeIndex||0,"bullets"===n.type&&t.pagination.bullets&&0<t.pagination.bullets.length){var l,c,h,u=t.pagination.bullets;if(n.dynamicBullets&&(t.pagination.bulletSize=u.eq(0)[t.isHorizontal()?"outerWidth":"outerHeight"](!0),r.css(t.isHorizontal()?"width":"height",t.pagination.bulletSize*(n.dynamicMainBullets+4)+"px"),1<n.dynamicMainBullets&&void 0!==t.previousIndex&&(t.pagination.dynamicBulletIndex+=s-t.previousIndex,t.pagination.dynamicBulletIndex>n.dynamicMainBullets-1?t.pagination.dynamicBulletIndex=n.dynamicMainBullets-1:t.pagination.dynamicBulletIndex<0&&(t.pagination.dynamicBulletIndex=0)),l=s-t.pagination.dynamicBulletIndex,h=((c=l+(Math.min(u.length,n.dynamicMainBullets)-1))+l)/2),u.removeClass(n.bulletActiveClass+" "+n.bulletActiveClass+"-next "+n.bulletActiveClass+"-next-next "+n.bulletActiveClass+"-prev "+n.bulletActiveClass+"-prev-prev "+n.bulletActiveClass+"-main"),1<r.length)u.each((function(t,i){var a=e(i),r=a.index();r===s&&a.addClass(n.bulletActiveClass),n.dynamicBullets&&(l<=r&&r<=c&&a.addClass(n.bulletActiveClass+"-main"),r===l&&a.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),r===c&&a.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next"))}));else if(u.eq(s).addClass(n.bulletActiveClass),n.dynamicBullets){for(var d=u.eq(l),p=u.eq(c),f=l;f<=c;f+=1)u.eq(f).addClass(n.bulletActiveClass+"-main");d.prev().addClass(n.bulletActiveClass+"-prev").prev().addClass(n.bulletActiveClass+"-prev-prev"),p.next().addClass(n.bulletActiveClass+"-next").next().addClass(n.bulletActiveClass+"-next-next")}if(n.dynamicBullets){var m=Math.min(u.length,n.dynamicMainBullets+4),g=(t.pagination.bulletSize*m-t.pagination.bulletSize)/2-h*t.pagination.bulletSize,v=i?"right":"left";u.css(t.isHorizontal()?v:"top",g+"px")}}if("fraction"===n.type&&(r.find("."+n.currentClass).text(n.formatFractionCurrent(s+1)),r.find("."+n.totalClass).text(n.formatFractionTotal(o))),"progressbar"===n.type){var b;b=n.progressbarOpposite?t.isHorizontal()?"vertical":"horizontal":t.isHorizontal()?"horizontal":"vertical";var y=(s+1)/o,_=1,w=1;"horizontal"===b?_=y:w=y,r.find("."+n.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+_+") scaleY("+w+")").transition(t.params.speed)}"custom"===n.type&&n.renderCustom?(r.html(n.renderCustom(t,s+1,o)),t.emit("paginationRender",t,r[0])):t.emit("paginationUpdate",t,r[0]),r[t.params.watchOverflow&&t.isLocked?"addClass":"removeClass"](n.lockClass)}},render:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.virtual&&e.params.virtual.enabled?e.virtual.slides.length:e.slides.length,n=e.pagination.$el,s="";if("bullets"===t.type){for(var a=e.params.loop?Math.ceil((i-2*e.loopedSlides)/e.params.slidesPerGroup):e.snapGrid.length,r=0;r<a;r+=1)t.renderBullet?s+=t.renderBullet.call(e,r,t.bulletClass):s+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(s),e.pagination.bullets=n.find("."+t.bulletClass)}"fraction"===t.type&&(s=t.renderFraction?t.renderFraction.call(e,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',n.html(s)),"progressbar"===t.type&&(s=t.renderProgressbar?t.renderProgressbar.call(e,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(s)),"custom"!==t.type&&e.emit("paginationRender",e.pagination.$el[0])}},init:function(){var t=this,i=t.params.pagination;if(i.el){var n=e(i.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof i.el&&1<n.length&&1===t.$el.find(i.el).length&&(n=t.$el.find(i.el)),"bullets"===i.type&&i.clickable&&n.addClass(i.clickableClass),n.addClass(i.modifierClass+i.type),"bullets"===i.type&&i.dynamicBullets&&(n.addClass(""+i.modifierClass+i.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,i.dynamicMainBullets<1&&(i.dynamicMainBullets=1)),"progressbar"===i.type&&i.progressbarOpposite&&n.addClass(i.progressbarOppositeClass),i.clickable&&n.on("click","."+i.bulletClass,(function(i){i.preventDefault();var n=e(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)})),p.extend(t.pagination,{$el:n,el:n[0]}))}},destroy:function(){var e=this,t=e.params.pagination;if(t.el&&e.pagination.el&&e.pagination.$el&&0!==e.pagination.$el.length){var i=e.pagination.$el;i.removeClass(t.hiddenClass),i.removeClass(t.modifierClass+t.type),e.pagination.bullets&&e.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&i.off("click","."+t.bulletClass)}}},B={setTranslate:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=e.rtlTranslate,n=e.progress,s=t.dragSize,a=t.trackSize,r=t.$dragEl,o=t.$el,l=e.params.scrollbar,c=s,h=(a-s)*n;i?0<(h=-h)?(c=s-h,h=0):a<-h+s&&(c=a+h):h<0?(c=s+h,h=0):a<h+s&&(c=a-h),e.isHorizontal()?(f.transforms3d?r.transform("translate3d("+h+"px, 0, 0)"):r.transform("translateX("+h+"px)"),r[0].style.width=c+"px"):(f.transforms3d?r.transform("translate3d(0px, "+h+"px, 0)"):r.transform("translateY("+h+"px)"),r[0].style.height=c+"px"),l.hide&&(clearTimeout(e.scrollbar.timeout),o[0].style.opacity=1,e.scrollbar.timeout=setTimeout((function(){o[0].style.opacity=0,o.transition(400)}),1e3))}},setTransition:function(e){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(e)},updateSize:function(){var e=this;if(e.params.scrollbar.el&&e.scrollbar.el){var t=e.scrollbar,i=t.$dragEl,n=t.$el;i[0].style.width="",i[0].style.height="";var s,a=e.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,r=e.size/e.virtualSize,o=r*(a/e.size);s="auto"===e.params.scrollbar.dragSize?a*r:parseInt(e.params.scrollbar.dragSize,10),e.isHorizontal()?i[0].style.width=s+"px":i[0].style.height=s+"px",n[0].style.display=1<=r?"none":"",e.params.scrollbar.hide&&(n[0].style.opacity=0),p.extend(t,{trackSize:a,divider:r,moveDivider:o,dragSize:s}),t.$el[e.params.watchOverflow&&e.isLocked?"addClass":"removeClass"](e.params.scrollbar.lockClass)}},getPointerPosition:function(e){return this.isHorizontal()?"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageX:e.pageX||e.clientX:"touchstart"===e.type||"touchmove"===e.type?e.targetTouches[0].pageY:e.pageY||e.clientY},setDragPosition:function(e){var t,i=this,n=i.scrollbar,s=i.rtlTranslate,a=n.$el,r=n.dragSize,o=n.trackSize,l=n.dragStartPos;t=(n.getPointerPosition(e)-a.offset()[i.isHorizontal()?"left":"top"]-(null!==l?l:r/2))/(o-r),t=Math.max(Math.min(t,1),0),s&&(t=1-t);var c=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*t;i.updateProgress(c),i.setTranslate(c),i.updateActiveIndex(),i.updateSlidesClasses()},onDragStart:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar,s=t.$wrapperEl,a=n.$el,r=n.$dragEl;t.scrollbar.isTouched=!0,t.scrollbar.dragStartPos=e.target===r[0]||e.target===r?n.getPointerPosition(e)-e.target.getBoundingClientRect()[t.isHorizontal()?"left":"top"]:null,e.preventDefault(),e.stopPropagation(),s.transition(100),r.transition(100),n.setDragPosition(e),clearTimeout(t.scrollbar.dragTimeout),a.transition(0),i.hide&&a.css("opacity",1),t.emit("scrollbarDragStart",e)},onDragMove:function(e){var t=this.scrollbar,i=this.$wrapperEl,n=t.$el,s=t.$dragEl;this.scrollbar.isTouched&&(e.preventDefault?e.preventDefault():e.returnValue=!1,t.setDragPosition(e),i.transition(0),n.transition(0),s.transition(0),this.emit("scrollbarDragMove",e))},onDragEnd:function(e){var t=this,i=t.params.scrollbar,n=t.scrollbar.$el;t.scrollbar.isTouched&&(t.scrollbar.isTouched=!1,i.hide&&(clearTimeout(t.scrollbar.dragTimeout),t.scrollbar.dragTimeout=p.nextTick((function(){n.css("opacity",0),n.transition(400)}),1e3)),t.emit("scrollbarDragEnd",e),i.snapOnRelease&&t.slideToClosest())},enableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,s=e.params,r=t.$el[0],o=!(!f.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},l=!(!f.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};f.touch?(r.addEventListener(i.start,e.scrollbar.onDragStart,o),r.addEventListener(i.move,e.scrollbar.onDragMove,o),r.addEventListener(i.end,e.scrollbar.onDragEnd,l)):(r.addEventListener(n.start,e.scrollbar.onDragStart,o),a.addEventListener(n.move,e.scrollbar.onDragMove,o),a.addEventListener(n.end,e.scrollbar.onDragEnd,l))}},disableDraggable:function(){var e=this;if(e.params.scrollbar.el){var t=e.scrollbar,i=e.touchEventsTouch,n=e.touchEventsDesktop,s=e.params,r=t.$el[0],o=!(!f.passiveListener||!s.passiveListeners)&&{passive:!1,capture:!1},l=!(!f.passiveListener||!s.passiveListeners)&&{passive:!0,capture:!1};f.touch?(r.removeEventListener(i.start,e.scrollbar.onDragStart,o),r.removeEventListener(i.move,e.scrollbar.onDragMove,o),r.removeEventListener(i.end,e.scrollbar.onDragEnd,l)):(r.removeEventListener(n.start,e.scrollbar.onDragStart,o),a.removeEventListener(n.move,e.scrollbar.onDragMove,o),a.removeEventListener(n.end,e.scrollbar.onDragEnd,l))}},init:function(){var t=this;if(t.params.scrollbar.el){var i=t.scrollbar,n=t.$el,s=t.params.scrollbar,a=e(s.el);t.params.uniqueNavElements&&"string"==typeof s.el&&1<a.length&&1===n.find(s.el).length&&(a=n.find(s.el));var r=a.find("."+t.params.scrollbar.dragClass);0===r.length&&(r=e('<div class="'+t.params.scrollbar.dragClass+'"></div>'),a.append(r)),p.extend(i,{$el:a,el:a[0],$dragEl:r,dragEl:r[0]}),s.draggable&&i.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},$={setTransform:function(t,i){var n=this.rtl,s=e(t),a=n?-1:1,r=s.attr("data-swiper-parallax")||"0",o=s.attr("data-swiper-parallax-x"),l=s.attr("data-swiper-parallax-y"),c=s.attr("data-swiper-parallax-scale"),h=s.attr("data-swiper-parallax-opacity");if(o||l?(o=o||"0",l=l||"0"):this.isHorizontal()?(o=r,l="0"):(l=r,o="0"),o=0<=o.indexOf("%")?parseInt(o,10)*i*a+"%":o*i*a+"px",l=0<=l.indexOf("%")?parseInt(l,10)*i+"%":l*i+"px",null!=h){var u=h-(h-1)*(1-Math.abs(i));s[0].style.opacity=u}if(null==c)s.transform("translate3d("+o+", "+l+", 0px)");else{var d=c-(c-1)*(1-Math.abs(i));s.transform("translate3d("+o+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,i=t.$el,n=t.slides,s=t.progress,a=t.snapGrid;i.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,s)})),n.each((function(i,n){var r=n.progress;1<t.params.slidesPerGroup&&"auto"!==t.params.slidesPerView&&(r+=Math.ceil(i/2)-s*(a.length-1)),r=Math.min(Math.max(r,-1),1),e(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(e,i){t.parallax.setTransform(i,r)}))}))},setTransition:function(t){void 0===t&&(t=this.params.speed),this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each((function(i,n){var s=e(n),a=parseInt(s.attr("data-swiper-parallax-duration"),10)||t;0===t&&(a=0),s.transition(a)}))}},V={getDistanceBetweenTouches:function(e){if(e.targetTouches.length<2)return 1;var t=e.targetTouches[0].pageX,i=e.targetTouches[0].pageY,n=e.targetTouches[1].pageX,s=e.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-t,2)+Math.pow(s-i,2))},onGestureStart:function(t){var i=this,n=i.params.zoom,s=i.zoom,a=s.gesture;if(s.fakeGestureTouched=!1,s.fakeGestureMoved=!1,!f.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return
;s.fakeGestureTouched=!0,a.scaleStart=V.getDistanceBetweenTouches(t)}a.$slideEl&&a.$slideEl.length||(a.$slideEl=e(t.target).closest(".swiper-slide"),0===a.$slideEl.length&&(a.$slideEl=i.slides.eq(i.activeIndex)),a.$imageEl=a.$slideEl.find("img, svg, canvas"),a.$imageWrapEl=a.$imageEl.parent("."+n.containerClass),a.maxRatio=a.$imageWrapEl.attr("data-swiper-zoom")||n.maxRatio,0!==a.$imageWrapEl.length)?(a.$imageEl.transition(0),i.zoom.isScaling=!0):a.$imageEl=void 0},onGestureChange:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!f.gestures){if("touchmove"!==e.type||"touchmove"===e.type&&e.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=V.getDistanceBetweenTouches(e)}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=f.gestures?e.scale*i.currentScale:n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<t.minRatio&&(i.scale=t.minRatio+1-Math.pow(t.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(e){var t=this.params.zoom,i=this.zoom,n=i.gesture;if(!f.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==e.type||"touchend"===e.type&&e.changedTouches.length<2&&!T.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),t.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(e){var t=this.zoom,i=t.gesture,n=t.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(T.android&&e.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===e.type?e.targetTouches[0].pageX:e.pageX,n.touchesStart.y="touchstart"===e.type?e.targetTouches[0].pageY:e.pageY))},onTouchMove:function(e){var t=this,i=t.zoom,n=i.gesture,s=i.image,a=i.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(t.allowClick=!1,s.isTouched&&n.$slideEl)){s.isMoved||(s.width=n.$imageEl[0].offsetWidth,s.height=n.$imageEl[0].offsetHeight,s.startX=p.getTranslate(n.$imageWrapEl[0],"x")||0,s.startY=p.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),t.rtl&&(s.startX=-s.startX,s.startY=-s.startY));var r=s.width*i.scale,o=s.height*i.scale;if(!(r<n.slideWidth&&o<n.slideHeight)){if(s.minX=Math.min(n.slideWidth/2-r/2,0),s.maxX=-s.minX,s.minY=Math.min(n.slideHeight/2-o/2,0),s.maxY=-s.minY,s.touchesCurrent.x="touchmove"===e.type?e.targetTouches[0].pageX:e.pageX,s.touchesCurrent.y="touchmove"===e.type?e.targetTouches[0].pageY:e.pageY,!s.isMoved&&!i.isScaling){if(t.isHorizontal()&&(Math.floor(s.minX)===Math.floor(s.startX)&&s.touchesCurrent.x<s.touchesStart.x||Math.floor(s.maxX)===Math.floor(s.startX)&&s.touchesCurrent.x>s.touchesStart.x))return void(s.isTouched=!1);if(!t.isHorizontal()&&(Math.floor(s.minY)===Math.floor(s.startY)&&s.touchesCurrent.y<s.touchesStart.y||Math.floor(s.maxY)===Math.floor(s.startY)&&s.touchesCurrent.y>s.touchesStart.y))return void(s.isTouched=!1)}e.preventDefault(),e.stopPropagation(),s.isMoved=!0,s.currentX=s.touchesCurrent.x-s.touchesStart.x+s.startX,s.currentY=s.touchesCurrent.y-s.touchesStart.y+s.startY,s.currentX<s.minX&&(s.currentX=s.minX+1-Math.pow(s.minX-s.currentX+1,.8)),s.currentX>s.maxX&&(s.currentX=s.maxX-1+Math.pow(s.currentX-s.maxX+1,.8)),s.currentY<s.minY&&(s.currentY=s.minY+1-Math.pow(s.minY-s.currentY+1,.8)),s.currentY>s.maxY&&(s.currentY=s.maxY-1+Math.pow(s.currentY-s.maxY+1,.8)),a.prevPositionX||(a.prevPositionX=s.touchesCurrent.x),a.prevPositionY||(a.prevPositionY=s.touchesCurrent.y),a.prevTime||(a.prevTime=Date.now()),a.x=(s.touchesCurrent.x-a.prevPositionX)/(Date.now()-a.prevTime)/2,a.y=(s.touchesCurrent.y-a.prevPositionY)/(Date.now()-a.prevTime)/2,Math.abs(s.touchesCurrent.x-a.prevPositionX)<2&&(a.x=0),Math.abs(s.touchesCurrent.y-a.prevPositionY)<2&&(a.y=0),a.prevPositionX=s.touchesCurrent.x,a.prevPositionY=s.touchesCurrent.y,a.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+s.currentX+"px, "+s.currentY+"px,0)")}}},onTouchEnd:function(){var e=this.zoom,t=e.gesture,i=e.image,n=e.velocity;if(t.$imageEl&&0!==t.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var s=300,a=300,r=n.x*s,o=i.currentX+r,l=n.y*a,c=i.currentY+l;0!==n.x&&(s=Math.abs((o-i.currentX)/n.x)),0!==n.y&&(a=Math.abs((c-i.currentY)/n.y));var h=Math.max(s,a);i.currentX=o,i.currentY=c;var u=i.width*e.scale,d=i.height*e.scale;i.minX=Math.min(t.slideWidth/2-u/2,0),i.maxX=-i.minX,i.minY=Math.min(t.slideHeight/2-d/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),t.$imageWrapEl.transition(h).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var e=this.zoom,t=e.gesture;t.$slideEl&&this.previousIndex!==this.activeIndex&&(t.$imageEl.transform("translate3d(0,0,0) scale(1)"),t.$imageWrapEl.transform("translate3d(0,0,0)"),e.scale=1,e.currentScale=1,t.$slideEl=void 0,t.$imageEl=void 0,t.$imageWrapEl=void 0)},toggle:function(e){var t=this.zoom;t.scale&&1!==t.scale?t.out():t.in(e)},in:function(t){var i,n,s,a,r,o,l,c,h,u,d,p,f,m,g,v,b=this,y=b.zoom,_=b.params.zoom,w=y.gesture,x=y.image;w.$slideEl||(w.$slideEl=b.clickedSlide?e(b.clickedSlide):b.slides.eq(b.activeIndex),w.$imageEl=w.$slideEl.find("img, svg, canvas"),w.$imageWrapEl=w.$imageEl.parent("."+_.containerClass)),w.$imageEl&&0!==w.$imageEl.length&&(w.$slideEl.addClass(""+_.zoomedSlideClass),n=void 0===x.touchesStart.x&&t?(i="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,"touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(i=x.touchesStart.x,x.touchesStart.y),y.scale=w.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,y.currentScale=w.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,t?(g=w.$slideEl[0].offsetWidth,v=w.$slideEl[0].offsetHeight,s=w.$slideEl.offset().left+g/2-i,a=w.$slideEl.offset().top+v/2-n,l=w.$imageEl[0].offsetWidth,c=w.$imageEl[0].offsetHeight,h=l*y.scale,u=c*y.scale,f=-(d=Math.min(g/2-h/2,0)),m=-(p=Math.min(v/2-u/2,0)),(r=s*y.scale)<d&&(r=d),f<r&&(r=f),(o=a*y.scale)<p&&(o=p),m<o&&(o=m)):o=r=0,w.$imageWrapEl.transition(300).transform("translate3d("+r+"px, "+o+"px,0)"),w.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this,i=t.zoom,n=t.params.zoom,s=i.gesture;s.$slideEl||(s.$slideEl=t.clickedSlide?e(t.clickedSlide):t.slides.eq(t.activeIndex),s.$imageEl=s.$slideEl.find("img, svg, canvas"),s.$imageWrapEl=s.$imageEl.parent("."+n.containerClass)),s.$imageEl&&0!==s.$imageEl.length&&(i.scale=1,i.currentScale=1,s.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),s.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),s.$slideEl.removeClass(""+n.zoomedSlideClass),s.$slideEl=void 0)},enable:function(){var e=this,t=e.zoom;if(!t.enabled){t.enabled=!0;var i=!("touchstart"!==e.touchEvents.start||!f.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(e.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.on(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.on(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.on(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.on(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var e=this,t=e.zoom;if(t.enabled){e.zoom.enabled=!1;var i=!("touchstart"!==e.touchEvents.start||!f.passiveListener||!e.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(e.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,i)):"touchstart"===e.touchEvents.start&&(e.$wrapperEl.off(e.touchEvents.start,".swiper-slide",t.onGestureStart,i),e.$wrapperEl.off(e.touchEvents.move,".swiper-slide",t.onGestureChange,i),e.$wrapperEl.off(e.touchEvents.end,".swiper-slide",t.onGestureEnd,i)),e.$wrapperEl.off(e.touchEvents.move,"."+e.params.zoom.containerClass,t.onTouchMove)}}},Y={loadInSlide:function(t,i){void 0===i&&(i=!0);var n=this,s=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var a=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),r=a.find("."+s.elementClass+":not(."+s.loadedClass+"):not(."+s.loadingClass+")");!a.hasClass(s.elementClass)||a.hasClass(s.loadedClass)||a.hasClass(s.loadingClass)||(r=r.add(a[0])),0!==r.length&&r.each((function(t,r){var o=e(r);o.addClass(s.loadingClass);var l=o.attr("data-background"),c=o.attr("data-src"),h=o.attr("data-srcset"),u=o.attr("data-sizes");n.loadImage(o[0],c||l,h,u,!1,(function(){if(null!=n&&n&&(!n||n.params)&&!n.destroyed){if(l?(o.css("background-image",'url("'+l+'")'),o.removeAttr("data-background")):(h&&(o.attr("srcset",h),o.removeAttr("data-srcset")),u&&(o.attr("sizes",u),o.removeAttr("data-sizes")),c&&(o.attr("src",c),o.removeAttr("data-src"))),o.addClass(s.loadedClass).removeClass(s.loadingClass),a.find("."+s.preloaderClass).remove(),n.params.loop&&i){var e=a.attr("data-swiper-slide-index");if(a.hasClass(n.params.slideDuplicateClass)){var t=n.$wrapperEl.children('[data-swiper-slide-index="'+e+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(t.index(),!1)}else{var r=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+e+'"]');n.lazy.loadInSlide(r.index(),!1)}}n.emit("lazyImageReady",a[0],o[0])}})),n.emit("lazyImageLoad",a[0],o[0])}))}},load:function(){function t(e){if(l){if(s.children("."+a.slideClass+'[data-swiper-slide-index="'+e+'"]').length)return!0}else if(r[e])return!0;return!1}function i(t){return l?e(t).attr("data-swiper-slide-index"):e(t).index()}var n=this,s=n.$wrapperEl,a=n.params,r=n.slides,o=n.activeIndex,l=n.virtual&&a.virtual.enabled,c=a.lazy,h=a.slidesPerView;if("auto"===h&&(h=0),n.lazy.initialImageLoaded||(n.lazy.initialImageLoaded=!0),n.params.watchSlidesVisibility)s.children("."+a.slideVisibleClass).each((function(t,i){var s=l?e(i).attr("data-swiper-slide-index"):e(i).index();n.lazy.loadInSlide(s)}));else if(1<h)for(var u=o;u<o+h;u+=1)t(u)&&n.lazy.loadInSlide(u);else n.lazy.loadInSlide(o);if(c.loadPrevNext)if(1<h||c.loadPrevNextAmount&&1<c.loadPrevNextAmount){for(var d=c.loadPrevNextAmount,p=h,f=Math.min(o+p+Math.max(d,p),r.length),m=Math.max(o-Math.max(p,d),0),g=o+h;g<f;g+=1)t(g)&&n.lazy.loadInSlide(g);for(var v=m;v<o;v+=1)t(v)&&n.lazy.loadInSlide(v)}else{var b=s.children("."+a.slideNextClass);0<b.length&&n.lazy.loadInSlide(i(b));var y=s.children("."+a.slidePrevClass);0<y.length&&n.lazy.loadInSlide(i(y))}}},X={LinearSpline:function(e,t){var i,n,s,a,r,o=function(e,t){for(n=-1,i=e.length;1<i-n;)e[s=i+n>>1]<=t?n=s:i=s;return i};return this.x=e,this.y=t,this.lastIndex=e.length-1,this.interpolate=function(e){return e?(r=o(this.x,e),a=r-1,(e-this.x[a])*(this.y[r]-this.y[a])/(this.x[r]-this.x[a])+this.y[a]):0},this},getInterpolateFunction:function(e){var t=this;t.controller.spline||(t.controller.spline=t.params.loop?new X.LinearSpline(t.slidesGrid,e.slidesGrid):new X.LinearSpline(t.snapGrid,e.snapGrid))},setTranslate:function(e,t){function i(e){var t=a.rtlTranslate?-a.translate:a.translate;"slide"===a.params.controller.by&&(a.controller.getInterpolateFunction(e),s=-a.controller.spline.interpolate(-t)),s&&"container"!==a.params.controller.by||(n=(e.maxTranslate()-e.minTranslate())/(a.maxTranslate()-a.minTranslate()),s=(t-a.minTranslate())*n+e.minTranslate()),a.params.controller.inverse&&(s=e.maxTranslate()-s),e.updateProgress(s),e.setTranslate(s,a),e.updateActiveIndex(),e.updateSlidesClasses()}var n,s,a=this,r=a.controller.control;if(Array.isArray(r))for(var o=0;o<r.length;o+=1)r[o]!==t&&r[o]instanceof P&&i(r[o]);else r instanceof P&&t!==r&&i(r)},setTransition:function(e,t){function i(t){t.setTransition(e,s),0!==e&&(t.transitionStart(),t.params.autoHeight&&p.nextTick((function(){t.updateAutoHeight()})),t.$wrapperEl.transitionEnd((function(){a&&(t.params.loop&&"slide"===s.params.controller.by&&t.loopFix(),t.transitionEnd())})))}var n,s=this,a=s.controller.control;if(Array.isArray(a))for(n=0;n<a.length;n+=1)a[n]!==t&&a[n]instanceof P&&i(a[n]);else a instanceof P&&t!==a&&i(a)}},U={makeElFocusable:function(e){return e.attr("tabIndex","0"),e},addElRole:function(e,t){return e.attr("role",t),e},addElLabel:function(e,t){return e.attr("aria-label",t),e},disableEl:function(e){return e.attr("aria-disabled",!0),e},enableEl:function(e){return e.attr("aria-disabled",!1),e},onEnterKey:function(t){var i=this,n=i.params.a11y;if(13===t.keyCode){var s=e(t.target);i.navigation&&i.navigation.$nextEl&&s.is(i.navigation.$nextEl)&&(i.isEnd&&!i.params.loop||i.slideNext(),i.isEnd?i.a11y.notify(n.lastSlideMessage):i.a11y.notify(n.nextSlideMessage)),i.navigation&&i.navigation.$prevEl&&s.is(i.navigation.$prevEl)&&(i.isBeginning&&!i.params.loop||i.slidePrev(),i.isBeginning?i.a11y.notify(n.firstSlideMessage):i.a11y.notify(n.prevSlideMessage)),i.pagination&&s.is("."+i.params.pagination.bulletClass)&&s[0].click()}},notify:function(e){var t=this.a11y.liveRegion;0!==t.length&&(t.html(""),t.html(e))},updateNavigation:function(){var e=this;if(!e.params.loop){var t=e.navigation,i=t.$nextEl,n=t.$prevEl;n&&0<n.length&&(e.isBeginning?e.a11y.disableEl(n):e.a11y.enableEl(n)),i&&0<i.length&&(e.isEnd?e.a11y.disableEl(i):e.a11y.enableEl(i))}},updatePagination:function(){var t=this,i=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each((function(n,s){var a=e(s);t.a11y.makeElFocusable(a),t.a11y.addElRole(a,"button"),t.a11y.addElLabel(a,i.paginationBulletMessage.replace(/{{index}}/,a.index()+1))}))},init:function(){var e=this;e.$el.append(e.a11y.liveRegion);var t,i,n=e.params.a11y;e.navigation&&e.navigation.$nextEl&&(t=e.navigation.$nextEl),e.navigation&&e.navigation.$prevEl&&(i=e.navigation.$prevEl),t&&(e.a11y.makeElFocusable(t),e.a11y.addElRole(t,"button"),e.a11y.addElLabel(t,n.nextSlideMessage),t.on("keydown",e.a11y.onEnterKey)),i&&(e.a11y.makeElFocusable(i),e.a11y.addElRole(i,"button"),e.a11y.addElLabel(i,n.prevSlideMessage),i.on("keydown",e.a11y.onEnterKey)),e.pagination&&e.params.pagination.clickable&&e.pagination.bullets&&e.pagination.bullets.length&&e.pagination.$el.on("keydown","."+e.params.pagination.bulletClass,e.a11y.onEnterKey)},destroy:function(){var e,t,i=this;i.a11y.liveRegion&&0<i.a11y.liveRegion.length&&i.a11y.liveRegion.remove(),i.navigation&&i.navigation.$nextEl&&(e=i.navigation.$nextEl),i.navigation&&i.navigation.$prevEl&&(t=i.navigation.$prevEl),e&&e.off("keydown",i.a11y.onEnterKey),t&&t.off("keydown",i.a11y.onEnterKey),i.pagination&&i.params.pagination.clickable&&i.pagination.bullets&&i.pagination.bullets.length&&i.pagination.$el.off("keydown","."+i.params.pagination.bulletClass,i.a11y.onEnterKey)}},G={init:function(){var e=this;if(e.params.history){if(!r.history||!r.history.pushState)return e.params.history.enabled=!1,void(e.params.hashNavigation.enabled=!0);var t=e.history;t.initialized=!0,t.paths=G.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,e.params.runCallbacksOnInit),e.params.history.replaceState||r.addEventListener("popstate",e.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||r.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=G.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var e=r.location.pathname.slice(1).split("/").filter((function(e){return""!==e})),t=e.length;return{key:e[t-2],value:e[t-1]}},setHistory:function(e,t){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(t),n=G.slugify(i.attr("data-history"));r.location.pathname.includes(e)||(n=e+"/"+n);var s=r.history.state;s&&s.value===n||(this.params.history.replaceState?r.history.replaceState({value:n},null,n):r.history.pushState({value:n},null,n))}},slugify:function(e){return e.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(e,t,i){var n=this;if(t)for(var s=0,a=n.slides.length;s<a;s+=1){var r=n.slides.eq(s);if(G.slugify(r.attr("data-history"))===t&&!r.hasClass(n.params.slideDuplicateClass)){var o=r.index();n.slideTo(o,e,i)}}else n.slideTo(0,e,i)}},K={onHashCange:function(){var e=this,t=a.location.hash.replace("#","");if(t!==e.slides.eq(e.activeIndex).attr("data-hash")){var i=e.$wrapperEl.children("."+e.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===i)return;e.slideTo(i)}},setHash:function(){var e=this;if(e.hashNavigation.initialized&&e.params.hashNavigation.enabled)if(e.params.hashNavigation.replaceState&&r.history&&r.history.replaceState)r.history.replaceState(null,null,"#"+e.slides.eq(e.activeIndex).attr("data-hash")||"");else{var t=e.slides.eq(e.activeIndex),i=t.attr("data-hash")||t.attr("data-history");a.location.hash=i||""}},init:function(){var t=this;if(!(!t.params.hashNavigation.enabled||t.params.history&&t.params.history.enabled)){t.hashNavigation.initialized=!0;var i=a.location.hash.replace("#","");if(i)for(var n=0,s=t.slides.length;n<s;n+=1){var o=t.slides.eq(n);if((o.attr("data-hash")||o.attr("data-history"))===i&&!o.hasClass(t.params.slideDuplicateClass)){var l=o.index();t.slideTo(l,0,t.params.runCallbacksOnInit,!0)}}t.params.hashNavigation.watchState&&e(r).on("hashchange",t.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&e(r).off("hashchange",this.hashNavigation.onHashCange)}},Q={run:function(){var e=this,t=e.slides.eq(e.activeIndex),i=e.params.autoplay.delay;t.attr("data-swiper-autoplay")&&(i=t.attr("data-swiper-autoplay")||e.params.autoplay.delay),clearTimeout(e.autoplay.timeout),e.autoplay.timeout=p.nextTick((function(){e.params.autoplay.reverseDirection?e.params.loop?(e.loopFix(),e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.isBeginning?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(e.slides.length-1,e.params.speed,!0,!0),e.emit("autoplay")):(e.slidePrev(e.params.speed,!0,!0),e.emit("autoplay")):e.params.loop?(e.loopFix(),e.slideNext(e.params.speed,!0,!0),e.emit("autoplay")):e.isEnd?e.params.autoplay.stopOnLastSlide?e.autoplay.stop():(e.slideTo(0,e.params.speed,!0,!0),e.emit("autoplay")):(e.slideNext(e.params.speed,!0,!0),e.emit("autoplay"))}),i)},start:function(){var e=this;return void 0===e.autoplay.timeout&&!e.autoplay.running&&(e.autoplay.running=!0,e.emit("autoplayStart"),e.autoplay.run(),!0)},stop:function(){var e=this;return!!e.autoplay.running&&void 0!==e.autoplay.timeout&&(e.autoplay.timeout&&(clearTimeout(e.autoplay.timeout),e.autoplay.timeout=void 0),e.autoplay.running=!1,e.emit("autoplayStop"),!0)},pause:function(e){var t=this;t.autoplay.running&&(t.autoplay.paused||(t.autoplay.timeout&&clearTimeout(t.autoplay.timeout),t.autoplay.paused=!0,0!==e&&t.params.autoplay.waitForTransition?(t.$wrapperEl[0].addEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].addEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd)):(t.autoplay.paused=!1,t.autoplay.run())))}},J={setTranslate:function(){for(var e=this,t=e.slides,i=0;i<t.length;i+=1){var n=e.slides.eq(i),s=-n[0].swiperSlideOffset;e.params.virtualTranslate||(s-=e.translate);var a=0;e.isHorizontal()||(a=s,s=0);var r=e.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:r}).transform("translate3d("+s+"px, "+a+"px, 0px)")}},setTransition:function(e){var t=this,i=t.slides,n=t.$wrapperEl;if(i.transition(e),t.params.virtualTranslate&&0!==e){var s=!1;i.transitionEnd((function(){if(!s&&t&&!t.destroyed){s=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)n.trigger(e[i])}}))}}},Z={setTranslate:function(){var t,i=this,n=i.$el,s=i.$wrapperEl,a=i.slides,r=i.width,o=i.height,l=i.rtlTranslate,c=i.size,h=i.params.cubeEffect,u=i.isHorizontal(),d=i.virtual&&i.params.virtual.enabled,p=0;h.shadow&&(u?(0===(t=s.find(".swiper-cube-shadow")).length&&(t=e('<div class="swiper-cube-shadow"></div>'),s.append(t)),t.css({height:r+"px"})):0===(t=n.find(".swiper-cube-shadow")).length&&(t=e('<div class="swiper-cube-shadow"></div>'),n.append(t)));for(var f=0;f<a.length;f+=1){var g=a.eq(f),v=f;d&&(v=parseInt(g.attr("data-swiper-slide-index"),10));var b=90*v,y=Math.floor(b/360);l&&(b=-b,y=Math.floor(-b/360));var _=Math.max(Math.min(g[0].progress,1),-1),w=0,x=0,C=0;v%4==0?(w=4*-y*c,C=0):(v-1)%4==0?(w=0,C=4*-y*c):(v-2)%4==0?(w=c+4*y*c,C=c):(v-3)%4==0&&(w=-c,C=3*c+4*c*y),l&&(w=-w),u||(x=w,w=0);var T="rotateX("+(u?0:-b)+"deg) rotateY("+(u?b:0)+"deg) translate3d("+w+"px, "+x+"px, "+C+"px)";if(_<=1&&-1<_&&(p=90*v+90*_,l&&(p=90*-v-90*_)),g.transform(T),h.slideShadows){var E=u?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),S=u?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(u?"left":"top")+'"></div>'),g.append(E)),0===S.length&&(S=e('<div class="swiper-slide-shadow-'+(u?"right":"bottom")+'"></div>'),g.append(S)),E.length&&(E[0].style.opacity=Math.max(-_,0)),S.length&&(S[0].style.opacity=Math.max(_,0))}}if(s.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),h.shadow)if(u)t.transform("translate3d(0px, "+(r/2+h.shadowOffset)+"px, "+-r/2+"px) rotateX(90deg) rotateZ(0deg) scale("+h.shadowScale+")");else{var k=Math.abs(p)-90*Math.floor(Math.abs(p)/90),D=1.5-(Math.sin(2*k*Math.PI/360)/2+Math.cos(2*k*Math.PI/360)/2),P=h.shadowScale,I=h.shadowScale/D,M=h.shadowOffset;t.transform("scale3d("+P+", 1, "+I+") translate3d(0px, "+(o/2+M)+"px, "+-o/2/I+"px) rotateX(-90deg)")}var A=m.isSafari||m.isUiWebView?-c/2:0;s.transform("translate3d(0px,0,"+A+"px) rotateX("+(i.isHorizontal()?0:p)+"deg) rotateY("+(i.isHorizontal()?-p:0)+"deg)")},setTransition:function(e){var t=this.$el;this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),this.params.cubeEffect.shadow&&!this.isHorizontal()&&t.find(".swiper-cube-shadow").transition(e)}},ee={setTranslate:function(){for(var t=this,i=t.slides,n=t.rtlTranslate,s=0;s<i.length;s+=1){var a=i.eq(s),r=a[0].progress;t.params.flipEffect.limitRotation&&(r=Math.max(Math.min(a[0].progress,1),-1));var o=-180*r,l=0,c=-a[0].swiperSlideOffset,h=0;if(t.isHorizontal()?n&&(o=-o):(h=c,l=-o,o=c=0),a[0].style.zIndex=-Math.abs(Math.round(r))+i.length,t.params.flipEffect.slideShadows){var u=t.isHorizontal()?a.find(".swiper-slide-shadow-left"):a.find(".swiper-slide-shadow-top"),d=t.isHorizontal()?a.find(".swiper-slide-shadow-right"):a.find(".swiper-slide-shadow-bottom");0===u.length&&(u=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"left":"top")+'"></div>'),a.append(u)),0===d.length&&(d=e('<div class="swiper-slide-shadow-'+(t.isHorizontal()?"right":"bottom")+'"></div>'),a.append(d)),u.length&&(u[0].style.opacity=Math.max(-r,0)),d.length&&(d[0].style.opacity=Math.max(r,0))}a.transform("translate3d("+c+"px, "+h+"px, 0px) rotateX("+l+"deg) rotateY("+o+"deg)")}},setTransition:function(e){var t=this,i=t.slides,n=t.activeIndex,s=t.$wrapperEl;if(i.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e),t.params.virtualTranslate&&0!==e){var a=!1;i.eq(n).transitionEnd((function(){if(!a&&t&&!t.destroyed){a=!0,t.animating=!1;for(var e=["webkitTransitionEnd","transitionend"],i=0;i<e.length;i+=1)s.trigger(e[i])}}))}}},te={setTranslate:function(){for(var t=this,i=t.width,n=t.height,s=t.slides,a=t.$wrapperEl,r=t.slidesSizesGrid,o=t.params.coverflowEffect,l=t.isHorizontal(),c=t.translate,h=l?i/2-c:n/2-c,u=l?o.rotate:-o.rotate,d=o.depth,p=0,m=s.length;p<m;p+=1){var g=s.eq(p),v=r[p],b=(h-g[0].swiperSlideOffset-v/2)/v*o.modifier,y=l?u*b:0,_=l?0:u*b,w=-d*Math.abs(b),x=l?0:o.stretch*b,C=l?o.stretch*b:0;Math.abs(C)<.001&&(C=0),Math.abs(x)<.001&&(x=0),Math.abs(w)<.001&&(w=0),Math.abs(y)<.001&&(y=0),Math.abs(_)<.001&&(_=0);var T="translate3d("+C+"px,"+x+"px,"+w+"px)  rotateX("+_+"deg) rotateY("+y+"deg)";if(g.transform(T),g[0].style.zIndex=1-Math.abs(Math.round(b)),o.slideShadows){var E=l?g.find(".swiper-slide-shadow-left"):g.find(".swiper-slide-shadow-top"),S=l?g.find(".swiper-slide-shadow-right"):g.find(".swiper-slide-shadow-bottom");0===E.length&&(E=e('<div class="swiper-slide-shadow-'+(l?"left":"top")+'"></div>'),g.append(E)),0===S.length&&(S=e('<div class="swiper-slide-shadow-'+(l?"right":"bottom")+'"></div>'),g.append(S)),E.length&&(E[0].style.opacity=0<b?b:0),S.length&&(S[0].style.opacity=0<-b?-b:0)}}(f.pointerEvents||f.prefixedPointerEvents)&&(a[0].style.perspectiveOrigin=h+"px 50%")},setTransition:function(e){this.slides.transition(e).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(e)}},ie={init:function(){var e=this,t=e.params.thumbs,i=e.constructor;t.swiper instanceof i?(e.thumbs.swiper=t.swiper,p.extend(e.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),p.extend(e.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):p.isObject(t.swiper)&&(e.thumbs.swiper=new i(p.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),e.thumbs.swiperCreated=!0),e.thumbs.swiper.$el.addClass(e.params.thumbs.thumbsContainerClass),e.thumbs.swiper.on("tap",e.thumbs.onThumbClick)},onThumbClick:function(){var t=this,i=t.thumbs.swiper;if(i){var n=i.clickedIndex,s=i.clickedSlide;if(!(s&&e(s).hasClass(t.params.thumbs.slideThumbActiveClass)||null==n)){var a;if(a=i.params.loop?parseInt(e(i.clickedSlide).attr("data-swiper-slide-index"),10):n,t.params.loop){var r=t.activeIndex;t.slides.eq(r).hasClass(t.params.slideDuplicateClass)&&(t.loopFix(),t._clientLeft=t.$wrapperEl[0].clientLeft,r=t.activeIndex);var o=t.slides.eq(r).prevAll('[data-swiper-slide-index="'+a+'"]').eq(0).index(),l=t.slides.eq(r).nextAll('[data-swiper-slide-index="'+a+'"]').eq(0).index();a=void 0===o?l:void 0===l?o:l-r<r-o?l:o}t.slideTo(a)}}},update:function(e){var t=this,i=t.thumbs.swiper;if(i){var n="auto"===i.params.slidesPerView?i.slidesPerViewDynamic():i.params.slidesPerView;if(t.realIndex!==i.realIndex){var s,a=i.activeIndex;if(i.params.loop){i.slides.eq(a).hasClass(i.params.slideDuplicateClass)&&(i.loopFix(),i._clientLeft=i.$wrapperEl[0].clientLeft,a=i.activeIndex);var r=i.slides.eq(a).prevAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index(),o=i.slides.eq(a).nextAll('[data-swiper-slide-index="'+t.realIndex+'"]').eq(0).index();s=void 0===r?o:void 0===o?r:o-a==a-r?a:o-a<a-r?o:r}else s=t.realIndex;i.visibleSlidesIndexes&&i.visibleSlidesIndexes.indexOf(s)<0&&(i.params.centeredSlides?s=a<s?s-Math.floor(n/2)+1:s+Math.floor(n/2)-1:a<s&&(s=s-n+1),i.slideTo(s,e?0:void 0))}var l=1,c=t.params.thumbs.slideThumbActiveClass;if(1<t.params.slidesPerView&&!t.params.centeredSlides&&(l=t.params.slidesPerView),i.slides.removeClass(c),i.params.loop||i.params.virtual)for(var h=0;h<l;h+=1)i.$wrapperEl.children('[data-swiper-slide-index="'+(t.realIndex+h)+'"]').addClass(c);else for(var u=0;u<l;u+=1)i.slides.eq(t.realIndex+u).addClass(c)}}},ne=[I,M,A,L,O,z,F,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){var e=this;p.extend(e,{mousewheel:{enabled:!1,enable:q.enable.bind(e),disable:q.disable.bind(e),handle:q.handle.bind(e),handleMouseEnter:q.handleMouseEnter.bind(e),handleMouseLeave:q.handleMouseLeave.bind(e),lastScrollTime:p.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){var e=this;p.extend(e,{navigation:{init:j.init.bind(e),update:j.update.bind(e),destroy:j.destroy.bind(e),onNextClick:j.onNextClick.bind(e),onPrevClick:j.onPrevClick.bind(e)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var i,n=this,s=n.navigation,a=s.$nextEl,r=s.$prevEl;!n.params.navigation.hideOnClick||e(t.target).is(r)||e(t.target).is(a)||(a?i=a.hasClass(n.params.navigation.hiddenClass):r&&(i=r.hasClass(n.params.navigation.hiddenClass)),!0===i?n.emit("navigationShow",n):n.emit("navigationHide",n),a&&a.toggleClass(n.params.navigation.hiddenClass),r&&r.toggleClass(n.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(e){return e},formatFractionTotal:function(e){return e},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){var e=this;p.extend(e,{pagination:{init:W.init.bind(e),render:W.render.bind(e),update:W.update.bind(e),destroy:W.destroy.bind(e),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){(this.params.loop||void 0===this.snapIndex)&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){var i=this;i.params.pagination.el&&i.params.pagination.hideOnClick&&0<i.pagination.$el.length&&!e(t.target).hasClass(i.params.pagination.bulletClass)&&(!0===i.pagination.$el.hasClass(i.params.pagination.hiddenClass)?i.emit("paginationShow",i):i.emit("paginationHide",i),i.pagination.$el.toggleClass(i.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){var e=this;p.extend(e,{scrollbar:{init:B.init.bind(e),destroy:B.destroy.bind(e),updateSize:B.updateSize.bind(e),setTranslate:B.setTranslate.bind(e),setTransition:B.setTransition.bind(e),enableDraggable:B.enableDraggable.bind(e),disableDraggable:B.disableDraggable.bind(e),setDragPosition:B.setDragPosition.bind(e),getPointerPosition:B.getPointerPosition.bind(e),onDragStart:B.onDragStart.bind(e),onDragMove:B.onDragMove.bind(e),onDragEnd:B.onDragEnd.bind(e),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(e){this.scrollbar.setTransition(e)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){p.extend(this,{parallax:{setTransform:$.setTransform.bind(this),setTranslate:$.setTranslate.bind(this),setTransition:$.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){
this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(e){this.params.parallax.enabled&&this.parallax.setTransition(e)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var e=this,t={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach((function(i){t[i]=V[i].bind(e)})),p.extend(e,{zoom:t});var i=1;Object.defineProperty(e.zoom,"scale",{get:function(){return i},set:function(t){if(i!==t){var n=e.zoom.gesture.$imageEl?e.zoom.gesture.$imageEl[0]:void 0,s=e.zoom.gesture.$slideEl?e.zoom.gesture.$slideEl[0]:void 0;e.emit("zoomChange",t,n,s)}i=t}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(e){this.zoom.enabled&&this.zoom.onTouchStart(e)},touchEnd:function(e){this.zoom.enabled&&this.zoom.onTouchEnd(e)},doubleTap:function(e){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(e)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){p.extend(this,{lazy:{initialImageLoaded:!1,load:Y.load.bind(this),loadInSlide:Y.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){var e=this;e.params.lazy.enabled&&(!e.params.lazy.loadOnTransitionStart&&(e.params.lazy.loadOnTransitionStart||e.lazy.initialImageLoaded)||e.lazy.load())},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){var e=this;p.extend(e,{controller:{control:e.params.controller.control,getInterpolateFunction:X.getInterpolateFunction.bind(e),setTranslate:X.setTranslate.bind(e),setTransition:X.setTransition.bind(e)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(e,t){this.controller.control&&this.controller.setTranslate(e,t)},setTransition:function(e,t){this.controller.control&&this.controller.setTransition(e,t)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;p.extend(t,{a11y:{liveRegion:e('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(U).forEach((function(e){t.a11y[e]=U[e].bind(t)}))},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){var e=this;p.extend(e,{history:{init:G.init.bind(e),setHistory:G.setHistory.bind(e),setHistoryPopState:G.setHistoryPopState.bind(e),scrollToSlide:G.scrollToSlide.bind(e),destroy:G.destroy.bind(e)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){var e=this;p.extend(e,{hashNavigation:{initialized:!1,init:K.init.bind(e),destroy:K.destroy.bind(e),setHash:K.setHash.bind(e),onHashCange:K.onHashCange.bind(e)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var e=this;p.extend(e,{autoplay:{running:!1,paused:!1,run:Q.run.bind(e),start:Q.start.bind(e),stop:Q.stop.bind(e),pause:Q.pause.bind(e),onTransitionEnd:function(t){e&&!e.destroyed&&e.$wrapperEl&&t.target===this&&(e.$wrapperEl[0].removeEventListener("transitionend",e.autoplay.onTransitionEnd),e.$wrapperEl[0].removeEventListener("webkitTransitionEnd",e.autoplay.onTransitionEnd),e.autoplay.paused=!1,e.autoplay.running?e.autoplay.run():e.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(e,t){this.autoplay.running&&(t||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(e):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){p.extend(this,{fadeEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("fade"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};p.extend(e.params,t),p.extend(e.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(e){"fade"===this.params.effect&&this.fadeEffect.setTransition(e)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){p.extend(this,{cubeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("cube"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"cube"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};p.extend(e.params,t),p.extend(e.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(e){"cube"===this.params.effect&&this.cubeEffect.setTransition(e)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){p.extend(this,{flipEffect:{setTranslate:ee.setTranslate.bind(this),setTransition:ee.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;if("flip"===e.params.effect){e.classNames.push(e.params.containerModifierClass+"flip"),e.classNames.push(e.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};p.extend(e.params,t),p.extend(e.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(e){"flip"===this.params.effect&&this.flipEffect.setTransition(e)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){p.extend(this,{coverflowEffect:{setTranslate:te.setTranslate.bind(this),setTransition:te.setTransition.bind(this)}})},on:{beforeInit:function(){var e=this;"coverflow"===e.params.effect&&(e.classNames.push(e.params.containerModifierClass+"coverflow"),e.classNames.push(e.params.containerModifierClass+"3d"),e.params.watchSlidesProgress=!0,e.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(e){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(e)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){p.extend(this,{thumbs:{swiper:null,init:ie.init.bind(this),update:ie.update.bind(this),onThumbClick:ie.onThumbClick.bind(this)}})},on:{beforeInit:function(){var e=this.params.thumbs;e&&e.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(e){var t=this.thumbs.swiper;t&&t.setTransition(e)},beforeDestroy:function(){var e=this.thumbs.swiper;e&&this.thumbs.swiperCreated&&e&&e.destroy()}}}];return void 0===P.use&&(P.use=P.Class.use,P.installModule=P.Class.installModule),P.use(ne),P})),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).bootstrap={},e.jQuery,e.Popper)}(this,(function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function s(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function a(e,t,i){return t&&s(e.prototype,t),i&&s(e,i),e}function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e}).apply(this,arguments)}function o(e){var t=this,i=!1;return c.default(this).one(u.TRANSITION_END,(function(){i=!0})),setTimeout((function(){i||u.triggerTransitionEnd(t)}),e),this}function l(e,t,i){if(0===e.length)return e;if(i&&"function"==typeof i)return i(e);for(var n=(new window.DOMParser).parseFromString(e,"text/html"),s=Object.keys(t),a=[].slice.call(n.body.querySelectorAll("*")),r=function(e){var i=a[e],n=i.nodeName.toLowerCase();if(-1===s.indexOf(i.nodeName.toLowerCase()))return i.parentNode.removeChild(i),"continue";var r=[].slice.call(i.attributes),o=[].concat(t["*"]||[],t[n]||[]);r.forEach((function(e){(function(e,t){var i=e.nodeName.toLowerCase();if(-1!==t.indexOf(i))return-1===F.indexOf(i)||Boolean(e.nodeValue.match(j)||e.nodeValue.match(W));for(var n=t.filter((function(e){return e instanceof RegExp})),s=0,a=n.length;s<a;s++)if(i.match(n[s]))return!0;return!1})(e,o)||i.removeAttribute(e.nodeName)}))},o=0,l=a.length;o<l;o++)r(o);return n.body.innerHTML}var c=n(t),h=n(i),u={TRANSITION_END:"bsTransitionEnd",getUID:function(e){do{e+=~~(1e6*Math.random())}while(document.getElementById(e));return e},getSelectorFromElement:function(e){var t=e.getAttribute("data-target");if(!t||"#"===t){var i=e.getAttribute("href");t=i&&"#"!==i?i.trim():""}try{return document.querySelector(t)?t:null}catch(e){return null}},getTransitionDurationFromElement:function(e){if(!e)return 0;var t=c.default(e).css("transition-duration"),i=c.default(e).css("transition-delay"),n=parseFloat(t),s=parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(parseFloat(t)+parseFloat(i))):0},reflow:function(e){return e.offsetHeight},triggerTransitionEnd:function(e){c.default(e).trigger("transitionend")},supportsTransitionEnd:function(){return Boolean("transitionend")},isElement:function(e){return(e[0]||e).nodeType},typeCheckConfig:function(e,t,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var s=i[n],a=t[n],r=a&&u.isElement(a)?"element":null===(o=a)||void 0===o?""+o:{}.toString.call(o).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(r))throw new Error(e.toUpperCase()+': Option "'+n+'" provided type "'+r+'" but expected type "'+s+'".')}var o},findShadowRoot:function(e){if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){var t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?u.findShadowRoot(e.parentNode):null},jQueryDetection:function(){if(void 0===c.default)throw new TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=c.default.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")}};u.jQueryDetection(),c.default.fn.emulateTransitionEnd=o,c.default.event.special[u.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(e){if(c.default(e.target).is(this))return e.handleObj.handler.apply(this,arguments)}};var d="alert",p=c.default.fn[d],f=function(){function e(e){this._element=e}var t=e.prototype;return t.close=function(e){var t=this._element;e&&(t=this._getRootElement(e)),this._triggerCloseEvent(t).isDefaultPrevented()||this._removeElement(t)},t.dispose=function(){c.default.removeData(this._element,"bs.alert"),this._element=null},t._getRootElement=function(e){var t=u.getSelectorFromElement(e),i=!1;return t&&(i=document.querySelector(t)),i||(i=c.default(e).closest(".alert")[0]),i},t._triggerCloseEvent=function(e){var t=c.default.Event("close.bs.alert");return c.default(e).trigger(t),t},t._removeElement=function(e){var t=this;if(c.default(e).removeClass("show"),c.default(e).hasClass("fade")){var i=u.getTransitionDurationFromElement(e);c.default(e).one(u.TRANSITION_END,(function(i){return t._destroyElement(e,i)})).emulateTransitionEnd(i)}else this._destroyElement(e)},t._destroyElement=function(e){c.default(e).detach().trigger("closed.bs.alert").remove()},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this),n=i.data("bs.alert");n||(n=new e(this),i.data("bs.alert",n)),"close"===t&&n[t](this)}))},e._handleDismiss=function(e){return function(t){t&&t.preventDefault(),e.close(this)}},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();c.default(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',f._handleDismiss(new f)),c.default.fn[d]=f._jQueryInterface,c.default.fn[d].Constructor=f,c.default.fn[d].noConflict=function(){return c.default.fn[d]=p,f._jQueryInterface};var m=c.default.fn.button,g=function(){function e(e){this._element=e,this.shouldAvoidTriggerChange=!1}var t=e.prototype;return t.toggle=function(){var e=!0,t=!0,i=c.default(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=this._element.querySelector('input:not([type="hidden"])');if(n){if("radio"===n.type)if(n.checked&&this._element.classList.contains("active"))e=!1;else{var s=i.querySelector(".active");s&&c.default(s).removeClass("active")}e&&("checkbox"!==n.type&&"radio"!==n.type||(n.checked=!this._element.classList.contains("active")),this.shouldAvoidTriggerChange||c.default(n).trigger("change")),n.focus(),t=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(t&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),e&&c.default(this._element).toggleClass("active"))},t.dispose=function(){c.default.removeData(this._element,"bs.button"),this._element=null},e._jQueryInterface=function(t,i){return this.each((function(){var n=c.default(this),s=n.data("bs.button");s||(s=new e(this),n.data("bs.button",s)),s.shouldAvoidTriggerChange=i,"toggle"===t&&s[t]()}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();c.default(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(e){var t=e.target,i=t;if(c.default(t).hasClass("btn")||(t=c.default(t).closest(".btn")[0]),!t||t.hasAttribute("disabled")||t.classList.contains("disabled"))e.preventDefault();else{var n=t.querySelector('input:not([type="hidden"])');if(n&&(n.hasAttribute("disabled")||n.classList.contains("disabled")))return void e.preventDefault();"INPUT"!==i.tagName&&"LABEL"===t.tagName||g._jQueryInterface.call(c.default(t),"toggle","INPUT"===i.tagName)}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(e){var t=c.default(e.target).closest(".btn")[0];c.default(t).toggleClass("focus",/^focus(in)?$/.test(e.type))})),c.default(window).on("load.bs.button.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),t=0,i=e.length;t<i;t++){var n=e[t],s=n.querySelector('input:not([type="hidden"])');s.checked||s.hasAttribute("checked")?n.classList.add("active"):n.classList.remove("active")}for(var a=0,r=(e=[].slice.call(document.querySelectorAll('[data-toggle="button"]'))).length;a<r;a++){var o=e[a];"true"===o.getAttribute("aria-pressed")?o.classList.add("active"):o.classList.remove("active")}})),c.default.fn.button=g._jQueryInterface,c.default.fn.button.Constructor=g,c.default.fn.button.noConflict=function(){return c.default.fn.button=m,g._jQueryInterface};var v="carousel",b=".bs.carousel",y=c.default.fn[v],_={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},w={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},x={TOUCH:"touch",PEN:"pen"},C=function(){function e(e,t){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._element=e,this._indicatorsElement=this._element.querySelector(".carousel-indicators"),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var t=e.prototype;return t.next=function(){this._isSliding||this._slide("next")},t.nextWhenVisible=function(){var e=c.default(this._element);!document.hidden&&e.is(":visible")&&"hidden"!==e.css("visibility")&&this.next()},t.prev=function(){this._isSliding||this._slide("prev")},t.pause=function(e){e||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(u.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},t.cycle=function(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},t.to=function(e){var t=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(e>this._items.length-1||e<0))if(this._isSliding)c.default(this._element).one("slid.bs.carousel",(function(){return t.to(e)}));else{if(i===e)return this.pause(),void this.cycle();var n=e>i?"next":"prev";this._slide(n,this._items[e])}},t.dispose=function(){c.default(this._element).off(b),c.default.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},t._getConfig=function(e){return e=r({},_,e),u.typeCheckConfig(v,e,w),e},t._handleSwipe=function(){var e=Math.abs(this.touchDeltaX);if(!(e<=40)){var t=e/this.touchDeltaX;this.touchDeltaX=0,t>0&&this.prev(),t<0&&this.next()}},t._addEventListeners=function(){var e=this;this._config.keyboard&&c.default(this._element).on("keydown.bs.carousel",(function(t){return e._keydown(t)})),"hover"===this._config.pause&&c.default(this._element).on("mouseenter.bs.carousel",(function(t){return e.pause(t)})).on("mouseleave.bs.carousel",(function(t){return e.cycle(t)})),this._config.touch&&this._addTouchEventListeners()},t._addTouchEventListeners=function(){var e=this;if(this._touchSupported){var t=function(t){e._pointerEvent&&x[t.originalEvent.pointerType.toUpperCase()]?e.touchStartX=t.originalEvent.clientX:e._pointerEvent||(e.touchStartX=t.originalEvent.touches[0].clientX)},i=function(t){e._pointerEvent&&x[t.originalEvent.pointerType.toUpperCase()]&&(e.touchDeltaX=t.originalEvent.clientX-e.touchStartX),e._handleSwipe(),"hover"===e._config.pause&&(e.pause(),e.touchTimeout&&clearTimeout(e.touchTimeout),e.touchTimeout=setTimeout((function(t){return e.cycle(t)}),500+e._config.interval))};c.default(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(e){return e.preventDefault()})),this._pointerEvent?(c.default(this._element).on("pointerdown.bs.carousel",(function(e){return t(e)})),c.default(this._element).on("pointerup.bs.carousel",(function(e){return i(e)})),this._element.classList.add("pointer-event")):(c.default(this._element).on("touchstart.bs.carousel",(function(e){return t(e)})),c.default(this._element).on("touchmove.bs.carousel",(function(t){return function(t){t.originalEvent.touches&&t.originalEvent.touches.length>1?e.touchDeltaX=0:e.touchDeltaX=t.originalEvent.touches[0].clientX-e.touchStartX}(t)})),c.default(this._element).on("touchend.bs.carousel",(function(e){return i(e)})))}},t._keydown=function(e){if(!/input|textarea/i.test(e.target.tagName))switch(e.which){case 37:e.preventDefault(),this.prev();break;case 39:e.preventDefault(),this.next()}},t._getItemIndex=function(e){return this._items=e&&e.parentNode?[].slice.call(e.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(e)},t._getItemByDirection=function(e,t){var i="next"===e,n="prev"===e,s=this._getItemIndex(t),a=this._items.length-1;if((n&&0===s||i&&s===a)&&!this._config.wrap)return t;var r=(s+("prev"===e?-1:1))%this._items.length;return-1===r?this._items[this._items.length-1]:this._items[r]},t._triggerSlideEvent=function(e,t){var i=this._getItemIndex(e),n=this._getItemIndex(this._element.querySelector(".active.carousel-item")),s=c.default.Event("slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i});return c.default(this._element).trigger(s),s},t._setActiveIndicatorElement=function(e){if(this._indicatorsElement){var t=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));c.default(t).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(e)];i&&c.default(i).addClass("active")}},t._updateInterval=function(){var e=this._activeElement||this._element.querySelector(".active.carousel-item");if(e){var t=parseInt(e.getAttribute("data-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}},t._slide=function(e,t){var i,n,s,a=this,r=this._element.querySelector(".active.carousel-item"),o=this._getItemIndex(r),l=t||r&&this._getItemByDirection(e,r),h=this._getItemIndex(l),d=Boolean(this._interval);if("next"===e?(i="carousel-item-left",n="carousel-item-next",s="left"):(i="carousel-item-right",n="carousel-item-prev",s="right"),l&&c.default(l).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(l,s).isDefaultPrevented()&&r&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l),this._activeElement=l;var p=c.default.Event("slid.bs.carousel",{relatedTarget:l,direction:s,from:o,to:h});if(c.default(this._element).hasClass("slide")){c.default(l).addClass(n),u.reflow(l),c.default(r).addClass(i),c.default(l).addClass(i);var f=u.getTransitionDurationFromElement(r);c.default(r).one(u.TRANSITION_END,(function(){c.default(l).removeClass(i+" "+n).addClass("active"),c.default(r).removeClass("active "+n+" "+i),a._isSliding=!1,setTimeout((function(){return c.default(a._element).trigger(p)}),0)})).emulateTransitionEnd(f)}else c.default(r).removeClass("active"),c.default(l).addClass("active"),this._isSliding=!1,c.default(this._element).trigger(p);d&&this.cycle()}},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this).data("bs.carousel"),n=r({},_,c.default(this).data());"object"==typeof t&&(n=r({},n,t));var s="string"==typeof t?t:n.slide;if(i||(i=new e(this,n),c.default(this).data("bs.carousel",i)),"number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError('No method named "'+s+'"');i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}))},e._dataApiClickHandler=function(t){var i=u.getSelectorFromElement(this);if(i){var n=c.default(i)[0];if(n&&c.default(n).hasClass("carousel")){var s=r({},c.default(n).data(),c.default(this).data()),a=this.getAttribute("data-slide-to");a&&(s.interval=!1),e._jQueryInterface.call(c.default(n),s),a&&c.default(n).data("bs.carousel").to(a),t.preventDefault()}}},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return _}}]),e}();c.default(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",C._dataApiClickHandler),c.default(window).on("load.bs.carousel.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),t=0,i=e.length;t<i;t++){var n=c.default(e[t]);C._jQueryInterface.call(n,n.data())}})),c.default.fn[v]=C._jQueryInterface,c.default.fn[v].Constructor=C,c.default.fn[v].noConflict=function(){return c.default.fn[v]=y,C._jQueryInterface};var T="collapse",E=c.default.fn[T],S={toggle:!0,parent:""},k={toggle:"boolean",parent:"(string|element)"},D=function(){function e(e,t){this._isTransitioning=!1,this._element=e,this._config=this._getConfig(t),this._triggerArray=[].slice.call(document.querySelectorAll('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'));for(var i=[].slice.call(document.querySelectorAll('[data-toggle="collapse"]')),n=0,s=i.length;n<s;n++){var a=i[n],r=u.getSelectorFromElement(a),o=[].slice.call(document.querySelectorAll(r)).filter((function(t){return t===e}));null!==r&&o.length>0&&(this._selector=r,this._triggerArray.push(a))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var t=e.prototype;return t.toggle=function(){c.default(this._element).hasClass("show")?this.hide():this.show()},t.show=function(){var t,i,n=this;if(!(this._isTransitioning||c.default(this._element).hasClass("show")||(this._parent&&0===(t=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(e){return"string"==typeof n._config.parent?e.getAttribute("data-parent")===n._config.parent:e.classList.contains("collapse")}))).length&&(t=null),t&&(i=c.default(t).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var s=c.default.Event("show.bs.collapse");if(c.default(this._element).trigger(s),!s.isDefaultPrevented()){t&&(e._jQueryInterface.call(c.default(t).not(this._selector),"hide"),i||c.default(t).data("bs.collapse",null));var a=this._getDimension();c.default(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[a]=0,this._triggerArray.length&&c.default(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var r="scroll"+(a[0].toUpperCase()+a.slice(1)),o=u.getTransitionDurationFromElement(this._element);c.default(this._element).one(u.TRANSITION_END,(function(){c.default(n._element).removeClass("collapsing").addClass("collapse show"),n._element.style[a]="",n.setTransitioning(!1),c.default(n._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(o),this._element.style[a]=this._element[r]+"px"}}},t.hide=function(){var e=this;if(!this._isTransitioning&&c.default(this._element).hasClass("show")){var t=c.default.Event("hide.bs.collapse");if(c.default(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",u.reflow(this._element),c.default(this._element).addClass("collapsing").removeClass("collapse show");var n=this._triggerArray.length;if(n>0)for(var s=0;s<n;s++){var a=this._triggerArray[s],r=u.getSelectorFromElement(a);null!==r&&(c.default([].slice.call(document.querySelectorAll(r))).hasClass("show")||c.default(a).addClass("collapsed").attr("aria-expanded",!1))}this.setTransitioning(!0),this._element.style[i]="";var o=u.getTransitionDurationFromElement(this._element);c.default(this._element).one(u.TRANSITION_END,(function(){e.setTransitioning(!1),c.default(e._element).removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")})).emulateTransitionEnd(o)}}},t.setTransitioning=function(e){this._isTransitioning=e},t.dispose=function(){c.default.removeData(this._element,"bs.collapse"),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},t._getConfig=function(e){return(e=r({},S,e)).toggle=Boolean(e.toggle),u.typeCheckConfig(T,e,k),e},t._getDimension=function(){return c.default(this._element).hasClass("width")?"width":"height"},t._getParent=function(){var t,i=this;u.isElement(this._config.parent)?(t=this._config.parent,void 0!==this._config.parent.jquery&&(t=this._config.parent[0])):t=document.querySelector(this._config.parent);var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]',s=[].slice.call(t.querySelectorAll(n));return c.default(s).each((function(t,n){i._addAriaAndCollapsedClass(e._getTargetFromElement(n),[n])})),t},t._addAriaAndCollapsedClass=function(e,t){var i=c.default(e).hasClass("show");t.length&&c.default(t).toggleClass("collapsed",!i).attr("aria-expanded",i)},e._getTargetFromElement=function(e){var t=u.getSelectorFromElement(e);return t?document.querySelector(t):null},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this),n=i.data("bs.collapse"),s=r({},S,i.data(),"object"==typeof t&&t?t:{});if(!n&&s.toggle&&"string"==typeof t&&/show|hide/.test(t)&&(s.toggle=!1),n||(n=new e(this,s),i.data("bs.collapse",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return S}}]),e}();c.default(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',(function(e){"A"===e.currentTarget.tagName&&e.preventDefault();var t=c.default(this),i=u.getSelectorFromElement(this),n=[].slice.call(document.querySelectorAll(i));c.default(n).each((function(){var e=c.default(this),i=e.data("bs.collapse")?"toggle":t.data();D._jQueryInterface.call(e,i)}))})),c.default.fn[T]=D._jQueryInterface,c.default.fn[T].Constructor=D,c.default.fn[T].noConflict=function(){return c.default.fn[T]=E,D._jQueryInterface};var P="dropdown",I=c.default.fn[P],M=new RegExp("38|40|27"),A={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},L={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},N=function(){function e(e,t){this._element=e,this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}
var t=e.prototype;return t.toggle=function(){if(!this._element.disabled&&!c.default(this._element).hasClass("disabled")){var t=c.default(this._menu).hasClass("show");e._clearMenus(),t||this.show(!0)}},t.show=function(t){if(void 0===t&&(t=!1),!(this._element.disabled||c.default(this._element).hasClass("disabled")||c.default(this._menu).hasClass("show"))){var i={relatedTarget:this._element},n=c.default.Event("show.bs.dropdown",i),s=e._getParentFromElement(this._element);if(c.default(s).trigger(n),!n.isDefaultPrevented()){if(!this._inNavbar&&t){if(void 0===h.default)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");var a=this._element;"parent"===this._config.reference?a=s:u.isElement(this._config.reference)&&(a=this._config.reference,void 0!==this._config.reference.jquery&&(a=this._config.reference[0])),"scrollParent"!==this._config.boundary&&c.default(s).addClass("position-static"),this._popper=new h.default(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===c.default(s).closest(".navbar-nav").length&&c.default(document.body).children().on("mouseover",null,c.default.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),c.default(this._menu).toggleClass("show"),c.default(s).toggleClass("show").trigger(c.default.Event("shown.bs.dropdown",i))}}},t.hide=function(){if(!this._element.disabled&&!c.default(this._element).hasClass("disabled")&&c.default(this._menu).hasClass("show")){var t={relatedTarget:this._element},i=c.default.Event("hide.bs.dropdown",t),n=e._getParentFromElement(this._element);c.default(n).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),c.default(this._menu).toggleClass("show"),c.default(n).toggleClass("show").trigger(c.default.Event("hidden.bs.dropdown",t)))}},t.dispose=function(){c.default.removeData(this._element,"bs.dropdown"),c.default(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},t.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},t._addEventListeners=function(){var e=this;c.default(this._element).on("click.bs.dropdown",(function(t){t.preventDefault(),t.stopPropagation(),e.toggle()}))},t._getConfig=function(e){return e=r({},this.constructor.Default,c.default(this._element).data(),e),u.typeCheckConfig(P,e,this.constructor.DefaultType),e},t._getMenuElement=function(){if(!this._menu){var t=e._getParentFromElement(this._element);t&&(this._menu=t.querySelector(".dropdown-menu"))}return this._menu},t._getPlacement=function(){var e=c.default(this._element.parentNode),t="bottom-start";return e.hasClass("dropup")?t=c.default(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":e.hasClass("dropright")?t="right-start":e.hasClass("dropleft")?t="left-start":c.default(this._menu).hasClass("dropdown-menu-right")&&(t="bottom-end"),t},t._detectNavbar=function(){return c.default(this._element).closest(".navbar").length>0},t._getOffset=function(){var e=this,t={};return"function"==typeof this._config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e._config.offset(t.offsets,e._element)||{}),t}:t.offset=this._config.offset,t},t._getPopperConfig=function(){var e={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(e.modifiers.applyStyle={enabled:!1}),r({},e,this._config.popperConfig)},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this).data("bs.dropdown");if(i||(i=new e(this,"object"==typeof t?t:null),c.default(this).data("bs.dropdown",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},e._clearMenus=function(t){if(!t||3!==t.which&&("keyup"!==t.type||9===t.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),n=0,s=i.length;n<s;n++){var a=e._getParentFromElement(i[n]),r=c.default(i[n]).data("bs.dropdown"),o={relatedTarget:i[n]};if(t&&"click"===t.type&&(o.clickEvent=t),r){var l=r._menu;if(c.default(a).hasClass("show")&&!(t&&("click"===t.type&&/input|textarea/i.test(t.target.tagName)||"keyup"===t.type&&9===t.which)&&c.default.contains(a,t.target))){var h=c.default.Event("hide.bs.dropdown",o);c.default(a).trigger(h),h.isDefaultPrevented()||("ontouchstart"in document.documentElement&&c.default(document.body).children().off("mouseover",null,c.default.noop),i[n].setAttribute("aria-expanded","false"),r._popper&&r._popper.destroy(),c.default(l).removeClass("show"),c.default(a).removeClass("show").trigger(c.default.Event("hidden.bs.dropdown",o)))}}}},e._getParentFromElement=function(e){var t,i=u.getSelectorFromElement(e);return i&&(t=document.querySelector(i)),t||e.parentNode},e._dataApiKeydownHandler=function(t){if(!(/input|textarea/i.test(t.target.tagName)?32===t.which||27!==t.which&&(40!==t.which&&38!==t.which||c.default(t.target).closest(".dropdown-menu").length):!M.test(t.which))&&!this.disabled&&!c.default(this).hasClass("disabled")){var i=e._getParentFromElement(this),n=c.default(i).hasClass("show");if(n||27!==t.which){if(t.preventDefault(),t.stopPropagation(),!n||27===t.which||32===t.which)return 27===t.which&&c.default(i.querySelector('[data-toggle="dropdown"]')).trigger("focus"),void c.default(this).trigger("click");var s=[].slice.call(i.querySelectorAll(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)")).filter((function(e){return c.default(e).is(":visible")}));if(0!==s.length){var a=s.indexOf(t.target);38===t.which&&a>0&&a--,40===t.which&&a<s.length-1&&a++,a<0&&(a=0),s[a].focus()}}}},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return A}},{key:"DefaultType",get:function(){return L}}]),e}();c.default(document).on("keydown.bs.dropdown.data-api",'[data-toggle="dropdown"]',N._dataApiKeydownHandler).on("keydown.bs.dropdown.data-api",".dropdown-menu",N._dataApiKeydownHandler).on("click.bs.dropdown.data-api keyup.bs.dropdown.data-api",N._clearMenus).on("click.bs.dropdown.data-api",'[data-toggle="dropdown"]',(function(e){e.preventDefault(),e.stopPropagation(),N._jQueryInterface.call(c.default(this),"toggle")})).on("click.bs.dropdown.data-api",".dropdown form",(function(e){e.stopPropagation()})),c.default.fn[P]=N._jQueryInterface,c.default.fn[P].Constructor=N,c.default.fn[P].noConflict=function(){return c.default.fn[P]=I,N._jQueryInterface};var O=c.default.fn.modal,R={backdrop:!0,keyboard:!0,focus:!0,show:!0},z={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},H=function(){function e(e,t){this._config=this._getConfig(t),this._element=e,this._dialog=e.querySelector(".modal-dialog"),this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollbarWidth=0}var t=e.prototype;return t.toggle=function(e){return this._isShown?this.hide():this.show(e)},t.show=function(e){var t=this;if(!this._isShown&&!this._isTransitioning){c.default(this._element).hasClass("fade")&&(this._isTransitioning=!0);var i=c.default.Event("show.bs.modal",{relatedTarget:e});c.default(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),c.default(this._element).on("click.dismiss.bs.modal",'[data-dismiss="modal"]',(function(e){return t.hide(e)})),c.default(this._dialog).on("mousedown.dismiss.bs.modal",(function(){c.default(t._element).one("mouseup.dismiss.bs.modal",(function(e){c.default(e.target).is(t._element)&&(t._ignoreBackdropClick=!0)}))})),this._showBackdrop((function(){return t._showElement(e)})))}},t.hide=function(e){var t=this;if(e&&e.preventDefault(),this._isShown&&!this._isTransitioning){var i=c.default.Event("hide.bs.modal");if(c.default(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=c.default(this._element).hasClass("fade");if(n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),c.default(document).off("focusin.bs.modal"),c.default(this._element).removeClass("show"),c.default(this._element).off("click.dismiss.bs.modal"),c.default(this._dialog).off("mousedown.dismiss.bs.modal"),n){var s=u.getTransitionDurationFromElement(this._element);c.default(this._element).one(u.TRANSITION_END,(function(e){return t._hideModal(e)})).emulateTransitionEnd(s)}else this._hideModal()}}},t.dispose=function(){[window,this._element,this._dialog].forEach((function(e){return c.default(e).off(".bs.modal")})),c.default(document).off("focusin.bs.modal"),c.default.removeData(this._element,"bs.modal"),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._isTransitioning=null,this._scrollbarWidth=null},t.handleUpdate=function(){this._adjustDialog()},t._getConfig=function(e){return e=r({},R,e),u.typeCheckConfig("modal",e,z),e},t._triggerBackdropTransition=function(){var e=this,t=c.default.Event("hidePrevented.bs.modal");if(c.default(this._element).trigger(t),!t.isDefaultPrevented()){var i=this._element.scrollHeight>document.documentElement.clientHeight;i||(this._element.style.overflowY="hidden"),this._element.classList.add("modal-static");var n=u.getTransitionDurationFromElement(this._dialog);c.default(this._element).off(u.TRANSITION_END),c.default(this._element).one(u.TRANSITION_END,(function(){e._element.classList.remove("modal-static"),i||c.default(e._element).one(u.TRANSITION_END,(function(){e._element.style.overflowY=""})).emulateTransitionEnd(e._element,n)})).emulateTransitionEnd(n),this._element.focus()}},t._showElement=function(e){var t=this,i=c.default(this._element).hasClass("fade"),n=this._dialog?this._dialog.querySelector(".modal-body"):null;this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),c.default(this._dialog).hasClass("modal-dialog-scrollable")&&n?n.scrollTop=0:this._element.scrollTop=0,i&&u.reflow(this._element),c.default(this._element).addClass("show"),this._config.focus&&this._enforceFocus();var s=c.default.Event("shown.bs.modal",{relatedTarget:e}),a=function(){t._config.focus&&t._element.focus(),t._isTransitioning=!1,c.default(t._element).trigger(s)};if(i){var r=u.getTransitionDurationFromElement(this._dialog);c.default(this._dialog).one(u.TRANSITION_END,a).emulateTransitionEnd(r)}else a()},t._enforceFocus=function(){var e=this;c.default(document).off("focusin.bs.modal").on("focusin.bs.modal",(function(t){document!==t.target&&e._element!==t.target&&0===c.default(e._element).has(t.target).length&&e._element.focus()}))},t._setEscapeEvent=function(){var e=this;this._isShown?c.default(this._element).on("keydown.dismiss.bs.modal",(function(t){e._config.keyboard&&27===t.which?(t.preventDefault(),e.hide()):e._config.keyboard||27!==t.which||e._triggerBackdropTransition()})):this._isShown||c.default(this._element).off("keydown.dismiss.bs.modal")},t._setResizeEvent=function(){var e=this;this._isShown?c.default(window).on("resize.bs.modal",(function(t){return e.handleUpdate(t)})):c.default(window).off("resize.bs.modal")},t._hideModal=function(){var e=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._showBackdrop((function(){c.default(document.body).removeClass("modal-open"),e._resetAdjustments(),e._resetScrollbar(),c.default(e._element).trigger("hidden.bs.modal")}))},t._removeBackdrop=function(){this._backdrop&&(c.default(this._backdrop).remove(),this._backdrop=null)},t._showBackdrop=function(e){var t=this,i=c.default(this._element).hasClass("fade")?"fade":"";if(this._isShown&&this._config.backdrop){if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&this._backdrop.classList.add(i),c.default(this._backdrop).appendTo(document.body),c.default(this._element).on("click.dismiss.bs.modal",(function(e){t._ignoreBackdropClick?t._ignoreBackdropClick=!1:e.target===e.currentTarget&&("static"===t._config.backdrop?t._triggerBackdropTransition():t.hide())})),i&&u.reflow(this._backdrop),c.default(this._backdrop).addClass("show"),!e)return;if(!i)return void e();var n=u.getTransitionDurationFromElement(this._backdrop);c.default(this._backdrop).one(u.TRANSITION_END,e).emulateTransitionEnd(n)}else if(!this._isShown&&this._backdrop){c.default(this._backdrop).removeClass("show");var s=function(){t._removeBackdrop(),e&&e()};if(c.default(this._element).hasClass("fade")){var a=u.getTransitionDurationFromElement(this._backdrop);c.default(this._backdrop).one(u.TRANSITION_END,s).emulateTransitionEnd(a)}else s()}else e&&e()},t._adjustDialog=function(){var e=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&e&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!e&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},t._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},t._checkScrollbar=function(){var e=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(e.left+e.right)<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},t._setScrollbar=function(){var e=this;if(this._isBodyOverflowing){var t=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")),i=[].slice.call(document.querySelectorAll(".sticky-top"));c.default(t).each((function(t,i){var n=i.style.paddingRight,s=c.default(i).css("padding-right");c.default(i).data("padding-right",n).css("padding-right",parseFloat(s)+e._scrollbarWidth+"px")})),c.default(i).each((function(t,i){var n=i.style.marginRight,s=c.default(i).css("margin-right");c.default(i).data("margin-right",n).css("margin-right",parseFloat(s)-e._scrollbarWidth+"px")}));var n=document.body.style.paddingRight,s=c.default(document.body).css("padding-right");c.default(document.body).data("padding-right",n).css("padding-right",parseFloat(s)+this._scrollbarWidth+"px")}c.default(document.body).addClass("modal-open")},t._resetScrollbar=function(){var e=[].slice.call(document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top"));c.default(e).each((function(e,t){var i=c.default(t).data("padding-right");c.default(t).removeData("padding-right"),t.style.paddingRight=i||""}));var t=[].slice.call(document.querySelectorAll(".sticky-top"));c.default(t).each((function(e,t){var i=c.default(t).data("margin-right");void 0!==i&&c.default(t).css("margin-right",i).removeData("margin-right")}));var i=c.default(document.body).data("padding-right");c.default(document.body).removeData("padding-right"),document.body.style.paddingRight=i||""},t._getScrollbarWidth=function(){var e=document.createElement("div");e.className="modal-scrollbar-measure",document.body.appendChild(e);var t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t},e._jQueryInterface=function(t,i){return this.each((function(){var n=c.default(this).data("bs.modal"),s=r({},R,c.default(this).data(),"object"==typeof t&&t?t:{});if(n||(n=new e(this,s),c.default(this).data("bs.modal",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](i)}else s.show&&n.show(i)}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return R}}]),e}();c.default(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',(function(e){var t,i=this,n=u.getSelectorFromElement(this);n&&(t=document.querySelector(n));var s=c.default(t).data("bs.modal")?"toggle":r({},c.default(t).data(),c.default(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||e.preventDefault();var a=c.default(t).one("show.bs.modal",(function(e){e.isDefaultPrevented()||a.one("hidden.bs.modal",(function(){c.default(i).is(":visible")&&i.focus()}))}));H._jQueryInterface.call(c.default(t),s,this)})),c.default.fn.modal=H._jQueryInterface,c.default.fn.modal.Constructor=H,c.default.fn.modal.noConflict=function(){return c.default.fn.modal=O,H._jQueryInterface};var F=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],q={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},j=/^(?:(?:https?|mailto|ftp|tel|file):|[^#&/:?]*(?:[#/?]|$))/gi,W=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,B="tooltip",$=c.default.fn[B],V=new RegExp("(^|\\s)bs-tooltip\\S+","g"),Y=["sanitize","whiteList","sanitizeFn"],X={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string|function)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",whiteList:"object",popperConfig:"(null|object)"},U={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},G={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",customClass:"",sanitize:!0,sanitizeFn:null,whiteList:q,popperConfig:null},K={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},Q=function(){function e(e,t){if(void 0===h.default)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=e,this.config=this._getConfig(t),this.tip=null,this._setListeners()}var t=e.prototype;return t.enable=function(){this._isEnabled=!0},t.disable=function(){this._isEnabled=!1},t.toggleEnabled=function(){this._isEnabled=!this._isEnabled},t.toggle=function(e){if(this._isEnabled)if(e){var t=this.constructor.DATA_KEY,i=c.default(e.currentTarget).data(t);i||(i=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(t,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(c.default(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},t.dispose=function(){clearTimeout(this._timeout),c.default.removeData(this.element,this.constructor.DATA_KEY),c.default(this.element).off(this.constructor.EVENT_KEY),c.default(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&c.default(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},t.show=function(){var e=this;if("none"===c.default(this.element).css("display"))throw new Error("Please use show on visible elements");var t=c.default.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){c.default(this.element).trigger(t);var i=u.findShadowRoot(this.element),n=c.default.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(t.isDefaultPrevented()||!n)return;var s=this.getTipElement(),a=u.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&c.default(s).addClass("fade");var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,o=this._getAttachment(r);this.addAttachmentClass(o);var l=this._getContainer();c.default(s).data(this.constructor.DATA_KEY,this),c.default.contains(this.element.ownerDocument.documentElement,this.tip)||c.default(s).appendTo(l),c.default(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new h.default(this.element,s,this._getPopperConfig(o)),c.default(s).addClass("show"),c.default(s).addClass(this.config.customClass),"ontouchstart"in document.documentElement&&c.default(document.body).children().on("mouseover",null,c.default.noop);var d=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,c.default(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};if(c.default(this.tip).hasClass("fade")){var p=u.getTransitionDurationFromElement(this.tip);c.default(this.tip).one(u.TRANSITION_END,d).emulateTransitionEnd(p)}else d()}},t.hide=function(e){var t=this,i=this.getTipElement(),n=c.default.Event(this.constructor.Event.HIDE),s=function(){"show"!==t._hoverState&&i.parentNode&&i.parentNode.removeChild(i),t._cleanTipClass(),t.element.removeAttribute("aria-describedby"),c.default(t.element).trigger(t.constructor.Event.HIDDEN),null!==t._popper&&t._popper.destroy(),e&&e()};if(c.default(this.element).trigger(n),!n.isDefaultPrevented()){if(c.default(i).removeClass("show"),"ontouchstart"in document.documentElement&&c.default(document.body).children().off("mouseover",null,c.default.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,c.default(this.tip).hasClass("fade")){var a=u.getTransitionDurationFromElement(i);c.default(i).one(u.TRANSITION_END,s).emulateTransitionEnd(a)}else s();this._hoverState=""}},t.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},t.isWithContent=function(){return Boolean(this.getTitle())},t.addAttachmentClass=function(e){c.default(this.getTipElement()).addClass("bs-tooltip-"+e)},t.getTipElement=function(){return this.tip=this.tip||c.default(this.config.template)[0],this.tip},t.setContent=function(){var e=this.getTipElement();this.setElementContent(c.default(e.querySelectorAll(".tooltip-inner")),this.getTitle()),c.default(e).removeClass("fade show")},t.setElementContent=function(e,t){"object"!=typeof t||!t.nodeType&&!t.jquery?this.config.html?(this.config.sanitize&&(t=l(t,this.config.whiteList,this.config.sanitizeFn)),e.html(t)):e.text(t):this.config.html?c.default(t).parent().is(e)||e.empty().append(t):e.text(c.default(t).text())},t.getTitle=function(){var e=this.element.getAttribute("data-original-title");return e||(e="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),e},t._getPopperConfig=function(e){var t=this;return r({},{placement:e,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(e){e.originalPlacement!==e.placement&&t._handlePopperPlacementChange(e)},onUpdate:function(e){return t._handlePopperPlacementChange(e)}},this.config.popperConfig)},t._getOffset=function(){var e=this,t={};return"function"==typeof this.config.offset?t.fn=function(t){return t.offsets=r({},t.offsets,e.config.offset(t.offsets,e.element)||{}),t}:t.offset=this.config.offset,t},t._getContainer=function(){return!1===this.config.container?document.body:u.isElement(this.config.container)?c.default(this.config.container):c.default(document).find(this.config.container)},t._getAttachment=function(e){return U[e.toUpperCase()]},t._setListeners=function(){var e=this;this.config.trigger.split(" ").forEach((function(t){if("click"===t)c.default(e.element).on(e.constructor.Event.CLICK,e.config.selector,(function(t){return e.toggle(t)}));else if("manual"!==t){var i="hover"===t?e.constructor.Event.MOUSEENTER:e.constructor.Event.FOCUSIN,n="hover"===t?e.constructor.Event.MOUSELEAVE:e.constructor.Event.FOCUSOUT;c.default(e.element).on(i,e.config.selector,(function(t){return e._enter(t)})).on(n,e.config.selector,(function(t){return e._leave(t)}))}})),this._hideModalHandler=function(){e.element&&e.hide()},c.default(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=r({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},t._fixTitle=function(){var e=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==e)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},t._enter=function(e,t){var i=this.constructor.DATA_KEY;(t=t||c.default(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusin"===e.type?"focus":"hover"]=!0),c.default(t.getTipElement()).hasClass("show")||"show"===t._hoverState?t._hoverState="show":(clearTimeout(t._timeout),t._hoverState="show",t.config.delay&&t.config.delay.show?t._timeout=setTimeout((function(){"show"===t._hoverState&&t.show()}),t.config.delay.show):t.show())},t._leave=function(e,t){var i=this.constructor.DATA_KEY;(t=t||c.default(e.currentTarget).data(i))||(t=new this.constructor(e.currentTarget,this._getDelegateConfig()),c.default(e.currentTarget).data(i,t)),e&&(t._activeTrigger["focusout"===e.type?"focus":"hover"]=!1),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState="out",t.config.delay&&t.config.delay.hide?t._timeout=setTimeout((function(){"out"===t._hoverState&&t.hide()}),t.config.delay.hide):t.hide())},t._isWithActiveTrigger=function(){for(var e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1},t._getConfig=function(e){var t=c.default(this.element).data();return Object.keys(t).forEach((function(e){-1!==Y.indexOf(e)&&delete t[e]})),"number"==typeof(e=r({},this.constructor.Default,t,"object"==typeof e&&e?e:{})).delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),u.typeCheckConfig(B,e,this.constructor.DefaultType),e.sanitize&&(e.template=l(e.template,e.whiteList,e.sanitizeFn)),e},t._getDelegateConfig=function(){var e={};if(this.config)for(var t in this.config)this.constructor.Default[t]!==this.config[t]&&(e[t]=this.config[t]);return e},t._cleanTipClass=function(){var e=c.default(this.getTipElement()),t=e.attr("class").match(V);null!==t&&t.length&&e.removeClass(t.join(""))},t._handlePopperPlacementChange=function(e){this.tip=e.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(e.placement))},t._fixTransition=function(){var e=this.getTipElement(),t=this.config.animation;null===e.getAttribute("x-placement")&&(c.default(e).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=t)},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this),n=i.data("bs.tooltip"),s="object"==typeof t&&t;if((n||!/dispose|hide/.test(t))&&(n||(n=new e(this,s),i.data("bs.tooltip",n)),"string"==typeof t)){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return G}},{key:"NAME",get:function(){return B}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return K}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return X}}]),e}();c.default.fn[B]=Q._jQueryInterface,c.default.fn[B].Constructor=Q,c.default.fn[B].noConflict=function(){return c.default.fn[B]=$,Q._jQueryInterface};var J="popover",Z=c.default.fn[J],ee=new RegExp("(^|\\s)bs-popover\\S+","g"),te=r({},Q.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),ie=r({},Q.DefaultType,{content:"(string|element|function)"}),ne={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},se=function(e){function t(){return e.apply(this,arguments)||this}var i,n;n=e,(i=t).prototype=Object.create(n.prototype),i.prototype.constructor=i,i.__proto__=n;var s=t.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(e){c.default(this.getTipElement()).addClass("bs-popover-"+e)},s.getTipElement=function(){return this.tip=this.tip||c.default(this.config.template)[0],this.tip},s.setContent=function(){var e=c.default(this.getTipElement());this.setElementContent(e.find(".popover-header"),this.getTitle());var t=this._getContent();"function"==typeof t&&(t=t.call(this.element)),this.setElementContent(e.find(".popover-body"),t),e.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var e=c.default(this.getTipElement()),t=e.attr("class").match(ee);null!==t&&t.length>0&&e.removeClass(t.join(""))},t._jQueryInterface=function(e){return this.each((function(){var i=c.default(this).data("bs.popover"),n="object"==typeof e?e:null;if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,n),c.default(this).data("bs.popover",i)),"string"==typeof e)){if(void 0===i[e])throw new TypeError('No method named "'+e+'"');i[e]()}}))},a(t,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return te}},{key:"NAME",get:function(){return J}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return ne}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return ie}}]),t}(Q);c.default.fn[J]=se._jQueryInterface,c.default.fn[J].Constructor=se,c.default.fn[J].noConflict=function(){return c.default.fn[J]=Z,se._jQueryInterface};var ae="scrollspy",re=c.default.fn[ae],oe={offset:10,method:"auto",target:""},le={offset:"number",method:"string",target:"(string|element)"},ce=function(){function e(e,t){var i=this;this._element=e,this._scrollElement="BODY"===e.tagName?window:e,this._config=this._getConfig(t),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,c.default(this._scrollElement).on("scroll.bs.scrollspy",(function(e){return i._process(e)})),this.refresh(),this._process()}var t=e.prototype;return t.refresh=function(){var e=this,t=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?t:this._config.method,n="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(e){var t,s=u.getSelectorFromElement(e);if(s&&(t=document.querySelector(s)),t){var a=t.getBoundingClientRect();if(a.width||a.height)return[c.default(t)[i]().top+n,s]}return null})).filter((function(e){return e})).sort((function(e,t){return e[0]-t[0]})).forEach((function(t){e._offsets.push(t[0]),e._targets.push(t[1])}))},t.dispose=function(){c.default.removeData(this._element,"bs.scrollspy"),c.default(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},t._getConfig=function(e){if("string"!=typeof(e=r({},oe,"object"==typeof e&&e?e:{})).target&&u.isElement(e.target)){var t=c.default(e.target).attr("id");t||(t=u.getUID(ae),c.default(e.target).attr("id",t)),e.target="#"+t}return u.typeCheckConfig(ae,e,le),e},t._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},t._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},
t._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},t._process=function(){var e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var s=this._offsets.length;s--;)this._activeTarget!==this._targets[s]&&e>=this._offsets[s]&&(void 0===this._offsets[s+1]||e<this._offsets[s+1])&&this._activate(this._targets[s])}},t._activate=function(e){this._activeTarget=e,this._clear();var t=this._selector.split(",").map((function(t){return t+'[data-target="'+e+'"],'+t+'[href="'+e+'"]'})),i=c.default([].slice.call(document.querySelectorAll(t.join(","))));i.hasClass("dropdown-item")?(i.closest(".dropdown").find(".dropdown-toggle").addClass("active"),i.addClass("active")):(i.addClass("active"),i.parents(".nav, .list-group").prev(".nav-link, .list-group-item").addClass("active"),i.parents(".nav, .list-group").prev(".nav-item").children(".nav-link").addClass("active")),c.default(this._scrollElement).trigger("activate.bs.scrollspy",{relatedTarget:e})},t._clear=function(){[].slice.call(document.querySelectorAll(this._selector)).filter((function(e){return e.classList.contains("active")})).forEach((function(e){return e.classList.remove("active")}))},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this).data("bs.scrollspy");if(i||(i=new e(this,"object"==typeof t&&t),c.default(this).data("bs.scrollspy",i)),"string"==typeof t){if(void 0===i[t])throw new TypeError('No method named "'+t+'"');i[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"Default",get:function(){return oe}}]),e}();c.default(window).on("load.bs.scrollspy.data-api",(function(){for(var e=[].slice.call(document.querySelectorAll('[data-spy="scroll"]')),t=e.length;t--;){var i=c.default(e[t]);ce._jQueryInterface.call(i,i.data())}})),c.default.fn[ae]=ce._jQueryInterface,c.default.fn[ae].Constructor=ce,c.default.fn[ae].noConflict=function(){return c.default.fn[ae]=re,ce._jQueryInterface};var he=c.default.fn.tab,ue=function(){function e(e){this._element=e}var t=e.prototype;return t.show=function(){var e=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&c.default(this._element).hasClass("active")||c.default(this._element).hasClass("disabled"))){var t,i,n=c.default(this._element).closest(".nav, .list-group")[0],s=u.getSelectorFromElement(this._element);if(n){var a="UL"===n.nodeName||"OL"===n.nodeName?"> li > .active":".active";i=(i=c.default.makeArray(c.default(n).find(a)))[i.length-1]}var r=c.default.Event("hide.bs.tab",{relatedTarget:this._element}),o=c.default.Event("show.bs.tab",{relatedTarget:i});if(i&&c.default(i).trigger(r),c.default(this._element).trigger(o),!o.isDefaultPrevented()&&!r.isDefaultPrevented()){s&&(t=document.querySelector(s)),this._activate(this._element,n);var l=function(){var t=c.default.Event("hidden.bs.tab",{relatedTarget:e._element}),n=c.default.Event("shown.bs.tab",{relatedTarget:i});c.default(i).trigger(t),c.default(e._element).trigger(n)};t?this._activate(t,t.parentNode,l):l()}}},t.dispose=function(){c.default.removeData(this._element,"bs.tab"),this._element=null},t._activate=function(e,t,i){var n=this,s=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?c.default(t).children(".active"):c.default(t).find("> li > .active"))[0],a=i&&s&&c.default(s).hasClass("fade"),r=function(){return n._transitionComplete(e,s,i)};if(s&&a){var o=u.getTransitionDurationFromElement(s);c.default(s).removeClass("show").one(u.TRANSITION_END,r).emulateTransitionEnd(o)}else r()},t._transitionComplete=function(e,t,i){if(t){c.default(t).removeClass("active");var n=c.default(t.parentNode).find("> .dropdown-menu .active")[0];n&&c.default(n).removeClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}if(c.default(e).addClass("active"),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u.reflow(e),e.classList.contains("fade")&&e.classList.add("show"),e.parentNode&&c.default(e.parentNode).hasClass("dropdown-menu")){var s=c.default(e).closest(".dropdown")[0];if(s){var a=[].slice.call(s.querySelectorAll(".dropdown-toggle"));c.default(a).addClass("active")}e.setAttribute("aria-expanded",!0)}i&&i()},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this),n=i.data("bs.tab");if(n||(n=new e(this),i.data("bs.tab",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}}]),e}();c.default(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(e){e.preventDefault(),ue._jQueryInterface.call(c.default(this),"show")})),c.default.fn.tab=ue._jQueryInterface,c.default.fn.tab.Constructor=ue,c.default.fn.tab.noConflict=function(){return c.default.fn.tab=he,ue._jQueryInterface};var de=c.default.fn.toast,pe={animation:"boolean",autohide:"boolean",delay:"number"},fe={animation:!0,autohide:!0,delay:500},me=function(){function e(e,t){this._element=e,this._config=this._getConfig(t),this._timeout=null,this._setListeners()}var t=e.prototype;return t.show=function(){var e=this,t=c.default.Event("show.bs.toast");if(c.default(this._element).trigger(t),!t.isDefaultPrevented()){this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");var i=function(){e._element.classList.remove("showing"),e._element.classList.add("show"),c.default(e._element).trigger("shown.bs.toast"),e._config.autohide&&(e._timeout=setTimeout((function(){e.hide()}),e._config.delay))};if(this._element.classList.remove("hide"),u.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var n=u.getTransitionDurationFromElement(this._element);c.default(this._element).one(u.TRANSITION_END,i).emulateTransitionEnd(n)}else i()}},t.hide=function(){if(this._element.classList.contains("show")){var e=c.default.Event("hide.bs.toast");c.default(this._element).trigger(e),e.isDefaultPrevented()||this._close()}},t.dispose=function(){this._clearTimeout(),this._element.classList.contains("show")&&this._element.classList.remove("show"),c.default(this._element).off("click.dismiss.bs.toast"),c.default.removeData(this._element,"bs.toast"),this._element=null,this._config=null},t._getConfig=function(e){return e=r({},fe,c.default(this._element).data(),"object"==typeof e&&e?e:{}),u.typeCheckConfig("toast",e,this.constructor.DefaultType),e},t._setListeners=function(){var e=this;c.default(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return e.hide()}))},t._close=function(){var e=this,t=function(){e._element.classList.add("hide"),c.default(e._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=u.getTransitionDurationFromElement(this._element);c.default(this._element).one(u.TRANSITION_END,t).emulateTransitionEnd(i)}else t()},t._clearTimeout=function(){clearTimeout(this._timeout),this._timeout=null},e._jQueryInterface=function(t){return this.each((function(){var i=c.default(this),n=i.data("bs.toast");if(n||(n=new e(this,"object"==typeof t&&t),i.data("bs.toast",n)),"string"==typeof t){if(void 0===n[t])throw new TypeError('No method named "'+t+'"');n[t](this)}}))},a(e,null,[{key:"VERSION",get:function(){return"4.6.0"}},{key:"DefaultType",get:function(){return pe}},{key:"Default",get:function(){return fe}}]),e}();c.default.fn.toast=me._jQueryInterface,c.default.fn.toast.Constructor=me,c.default.fn.toast.noConflict=function(){return c.default.fn.toast=de,me._jQueryInterface},e.Alert=f,e.Button=g,e.Carousel=C,e.Collapse=D,e.Dropdown=N,e.Modal=H,e.Popover=se,e.Scrollspy=ce,e.Tab=ue,e.Toast=me,e.Tooltip=Q,e.Util=u,Object.defineProperty(e,"__esModule",{value:!0})})),function(e){var t=function(e,t,i){"use strict";var n,s;if(function(){var t,i={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};for(t in s=e.lazySizesConfig||e.lazysizesConfig||{},i)t in s||(s[t]=i[t])}(),!t||!t.getElementsByClassName)return{init:function(){},cfg:s,noSupport:!0};var a=t.documentElement,r=e.HTMLPictureElement,o="addEventListener",l="getAttribute",c=e[o].bind(e),h=e.setTimeout,u=e.requestAnimationFrame||h,d=e.requestIdleCallback,p=/^picture$/i,f=["load","error","lazyincluded","_lazyloaded"],m={},g=Array.prototype.forEach,v=function(e,t){return m[t]||(m[t]=new RegExp("(\\s|^)"+t+"(\\s|$)")),m[t].test(e[l]("class")||"")&&m[t]},b=function(e,t){v(e,t)||e.setAttribute("class",(e[l]("class")||"").trim()+" "+t)},y=function(e,t){var i;(i=v(e,t))&&e.setAttribute("class",(e[l]("class")||"").replace(i," "))},_=function(e,t,i){var n=i?o:"removeEventListener";i&&_(e,t),f.forEach((function(i){e[n](i,t)}))},w=function(e,i,s,a,r){var o=t.createEvent("Event");return s||(s={}),s.instance=n,o.initEvent(i,!a,!r),o.detail=s,e.dispatchEvent(o),o},x=function(t,i){var n;!r&&(n=e.picturefill||s.pf)?(i&&i.src&&!t[l]("srcset")&&t.setAttribute("srcset",i.src),n({reevaluate:!0,elements:[t]})):i&&i.src&&(t.src=i.src)},C=function(e,t){return(getComputedStyle(e,null)||{})[t]},T=function(e,t,i){for(i=i||e.offsetWidth;i<s.minSize&&t&&!e._lazysizesWidth;)i=t.offsetWidth,t=t.parentNode;return i},E=function(){var e,i,n=[],s=[],a=n,r=function(){var t=a;for(a=n.length?s:n,e=!0,i=!1;t.length;)t.shift()();e=!1},o=function(n,s){e&&!s?n.apply(this,arguments):(a.push(n),i||(i=!0,(t.hidden?h:u)(r)))};return o._lsFlush=r,o}(),S=function(e,t){return t?function(){E(e)}:function(){var t=this,i=arguments;E((function(){e.apply(t,i)}))}},k=function(e){var t,n=0,a=s.throttleDelay,r=s.ricTimeout,o=function(){t=!1,n=i.now(),e()},l=d&&r>49?function(){d(o,{timeout:r}),r!==s.ricTimeout&&(r=s.ricTimeout)}:S((function(){h(o)}),!0);return function(e){var s;(e=!0===e)&&(r=33),t||(t=!0,(s=a-(i.now()-n))<0&&(s=0),e||s<9?l():h(l,s))}},D=function(e){var t,n,s=99,a=function(){t=null,e()},r=function(){var e=i.now()-n;e<s?h(r,s-e):(d||a)(a)};return function(){n=i.now(),t||(t=h(r,s))}},P=function(){var r,d,f,m,T,P,M,A,L,N,O,R,z=/^img$/i,H=/^iframe$/i,F="onscroll"in e&&!/(gle|ing)bot/.test(navigator.userAgent),q=0,j=0,W=0,B=-1,$=function(e){W--,(!e||W<0||!e.target)&&(W=0)},V=function(e){return null==R&&(R="hidden"==C(t.body,"visibility")),R||!("hidden"==C(e.parentNode,"visibility")&&"hidden"==C(e,"visibility"))},Y=function(e,i){var n,s=e,r=V(e);for(A-=i,O+=i,L-=i,N+=i;r&&(s=s.offsetParent)&&s!=t.body&&s!=a;)(r=(C(s,"opacity")||1)>0)&&"visible"!=C(s,"overflow")&&(n=s.getBoundingClientRect(),r=N>n.left&&L<n.right&&O>n.top-1&&A<n.bottom+1);return r},X=function(){var e,i,o,c,h,u,p,f,g,v,b,y,_=n.elements;if((m=s.loadMode)&&W<8&&(e=_.length)){for(i=0,B++;i<e;i++)if(_[i]&&!_[i]._lazyRace)if(!F||n.prematureUnveil&&n.prematureUnveil(_[i]))te(_[i]);else if((f=_[i][l]("data-expand"))&&(u=1*f)||(u=j),v||(v=!s.expand||s.expand<1?a.clientHeight>500&&a.clientWidth>500?500:370:s.expand,n._defEx=v,b=v*s.expFactor,y=s.hFac,R=null,j<b&&W<1&&B>2&&m>2&&!t.hidden?(j=b,B=0):j=m>1&&B>1&&W<6?v:q),g!==u&&(P=innerWidth+u*y,M=innerHeight+u,p=-1*u,g=u),o=_[i].getBoundingClientRect(),(O=o.bottom)>=p&&(A=o.top)<=M&&(N=o.right)>=p*y&&(L=o.left)<=P&&(O||N||L||A)&&(s.loadHidden||V(_[i]))&&(d&&W<3&&!f&&(m<3||B<4)||Y(_[i],u))){if(te(_[i]),h=!0,W>9)break}else!h&&d&&!c&&W<4&&B<4&&m>2&&(r[0]||s.preloadAfterLoad)&&(r[0]||!f&&(O||N||L||A||"auto"!=_[i][l](s.sizesAttr)))&&(c=r[0]||_[i]);c&&!h&&te(c)}},U=k(X),G=function(e){var t=e.target;t._lazyCache?delete t._lazyCache:($(e),b(t,s.loadedClass),y(t,s.loadingClass),_(t,Q),w(t,"lazyloaded"))},K=S(G),Q=function(e){K({target:e.target})},J=function(e,t){var i=e.getAttribute("data-load-mode")||s.iframeLoadMode;0==i?e.contentWindow.location.replace(t):1==i&&(e.src=t)},Z=function(e){var t,i=e[l](s.srcsetAttr);(t=s.customMedia[e[l]("data-media")||e[l]("media")])&&e.setAttribute("media",t),i&&e.setAttribute("srcset",i)},ee=S((function(e,t,i,n,a){var r,o,c,u,d,m;(d=w(e,"lazybeforeunveil",t)).defaultPrevented||(n&&(i?b(e,s.autosizesClass):e.setAttribute("sizes",n)),o=e[l](s.srcsetAttr),r=e[l](s.srcAttr),a&&(u=(c=e.parentNode)&&p.test(c.nodeName||"")),m=t.firesLoad||"src"in e&&(o||r||u),d={target:e},b(e,s.loadingClass),m&&(clearTimeout(f),f=h($,2500),_(e,Q,!0)),u&&g.call(c.getElementsByTagName("source"),Z),o?e.setAttribute("srcset",o):r&&!u&&(H.test(e.nodeName)?J(e,r):e.src=r),a&&(o||u)&&x(e,{src:r})),e._lazyRace&&delete e._lazyRace,y(e,s.lazyClass),E((function(){var t=e.complete&&e.naturalWidth>1;m&&!t||(t&&b(e,s.fastLoadedClass),G(d),e._lazyCache=!0,h((function(){"_lazyCache"in e&&delete e._lazyCache}),9)),"lazy"==e.loading&&W--}),!0)})),te=function(e){if(!e._lazyRace){var t,i=z.test(e.nodeName),n=i&&(e[l](s.sizesAttr)||e[l]("sizes")),a="auto"==n;(!a&&d||!i||!e[l]("src")&&!e.srcset||e.complete||v(e,s.errorClass)||!v(e,s.lazyClass))&&(t=w(e,"lazyunveilread").detail,a&&I.updateElem(e,!0,e.offsetWidth),e._lazyRace=!0,W++,ee(e,t,a,n,i))}},ie=D((function(){s.loadMode=3,U()})),ne=function(){3==s.loadMode&&(s.loadMode=2),ie()},se=function(){d||(i.now()-T<999?h(se,999):(d=!0,s.loadMode=3,U(),c("scroll",ne,!0)))};return{_:function(){T=i.now(),n.elements=t.getElementsByClassName(s.lazyClass),r=t.getElementsByClassName(s.lazyClass+" "+s.preloadClass),c("scroll",U,!0),c("resize",U,!0),c("pageshow",(function(e){if(e.persisted){var i=t.querySelectorAll("."+s.loadingClass);i.length&&i.forEach&&u((function(){i.forEach((function(e){e.complete&&te(e)}))}))}})),e.MutationObserver?new MutationObserver(U).observe(a,{childList:!0,subtree:!0,attributes:!0}):(a[o]("DOMNodeInserted",U,!0),a[o]("DOMAttrModified",U,!0),setInterval(U,999)),c("hashchange",U,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach((function(e){t[o](e,U,!0)})),/d$|^c/.test(t.readyState)?se():(c("load",se),t[o]("DOMContentLoaded",U),h(se,2e4)),n.elements.length?(X(),E._lsFlush()):U()},checkElems:U,unveil:te,_aLSL:ne}}(),I=function(){var e,i=S((function(e,t,i,n){var s,a,r;if(e._lazysizesWidth=n,n+="px",e.setAttribute("sizes",n),p.test(t.nodeName||""))for(a=0,r=(s=t.getElementsByTagName("source")).length;a<r;a++)s[a].setAttribute("sizes",n);i.detail.dataAttr||x(e,i.detail)})),n=function(e,t,n){var s,a=e.parentNode;a&&(n=T(e,a,n),(s=w(e,"lazybeforesizes",{width:n,dataAttr:!!t})).defaultPrevented||(n=s.detail.width)&&n!==e._lazysizesWidth&&i(e,a,s,n))},a=function(){var t,i=e.length;if(i)for(t=0;t<i;t++)n(e[t])},r=D(a);return{_:function(){e=t.getElementsByClassName(s.autosizesClass),c("resize",r)},checkElems:r,updateElem:n}}(),M=function(){!M.i&&t.getElementsByClassName&&(M.i=!0,I._(),P._())};return h((function(){s.init&&M()})),n={cfg:s,autoSizer:I,loader:P,init:M,uP:x,aC:b,rC:y,hC:v,fire:w,gW:T,rAF:E}}(e,e.document,Date);e.lazySizes=t,"object"==typeof module&&module.exports&&(module.exports=t)}("undefined"!=typeof window?window:{}),function(e,t,i){"use strict";function n(){e(".aside-nav").on("click",(function(){return e(".aside-menu").toggleClass("active-menu"),e(".site-header").toggleClass("active-menu"),!1})),e(".menu-wrapper:not(.unit) .menu-item-has-children > a").on("click",(function(i){i.preventDefault(),e(t).width()<=e(".menu-wrapper").data("top")&&e(this).parent().find(".sub-menu").toggleClass("d-block")}));var i=e(".menu-wrapper").data("top");if(t.outerWidth>=i?(e(".menu-wrapper").on("click",(function(t){t.target.closest(".aside-menu")||e(".sub-menu-open").slideUp(250)})),e(".aside-menu .menu-item-has-children a").addClass("hide-drop"),e(".aside-menu .menu-item a").on("click",(function(){e(this).parent().hasClass("menu-item-has-children")&&(e(this).hasClass("hide-drop")?e(this).closest(".sub-menu").length?(e(this).removeClass("hide-drop").next(".sub-menu").slideDown(250).removeClass("sub-menu-open"),e(this).parent().siblings().find(".sub-menu").slideUp(250).addClass("sub-menu-open")):(e(".menu-item-has-children a").addClass("hide-drop").next(".sub-menu").hide(250).removeClass("sub-menu-open"),e(this).removeClass("hide-drop").next(".sub-menu").slideToggle(250).toggleClass("sub-menu-open")):(e(this).addClass("hide-drop").next(".sub-menu").hide(250).find(".menu-item-has-children a").addClass("hide-drop").next(".sub-menu").hide(250),e(this).next(".sub-menu").removeClass("sub-menu-open")))}))):e(".menu-item-has-children a").removeClass("hide-drop"),e(".aside-fix").length&&e(t).width()>i){var n=e(".logo span, .logo img").outerWidth();e(".logo").css("top",n+"px")}}function s(){var i,n=e(".site-header").not(".header_trans-fixed").outerHeight(),s=e(".menu-wrapper").data("top"),a=e("#wpadminbar").outerHeight();e("#wpadminbar").length?(i=a+n,e(".site-header").css("margin-top",a)):i=n,e(t).width()<s?e(".menu-wrapper").css("padding-top",i+"px"):e("#wpadminbar").length&&e(".site-header").hasClass("header_trans-fixed")?e(".menu-wrapper").css("padding-top",a+"px"):e(".menu-wrapper").css("padding-top","0"),e("#wpadminbar").length&&e(t).width()<768&&e("#wpadminbar").css({position:"fixed",top:"0"})}function a(){e("header .menu-item-has-children i.fa.fa-angle-down").remove()}function r(){var t=e("#wpadminbar").length?e("#wpadminbar").outerHeight():0;e(".additional-inner-wrap").css("top",t+"px")}e(t).on("scroll load",(function(){e(this).scrollTop()>=30?(e(".site-header.header_trans-fixed").length&&(e(".site-header.header_trans-fixed").not(".fixed-dark").addClass("pix-header-fixed"),e(".fixed-dark").addClass("bg-fixed-dark"),e(".sticky-logo, .header-button-scroll").show(),e(".main-logo, .header-button-default").hide()),e(".right-menu.modern").length&&e(".right-menu.modern").closest(".fixed-header").addClass("fixed-header-scroll")):(e(".site-header.header_trans-fixed").length&&(e(".site-header.header_trans-fixed").not(".fixed-dark").removeClass("pix-header-fixed"),e(".fixed-dark").removeClass("bg-fixed-dark"),e(".sticky-logo, .header-button-scroll").hide(),e(".main-logo, .header-button-default").show()),e(".right-menu.modern").length&&e(".right-menu.modern").closest(".fixed-header").removeClass("fixed-header-scroll")),e(".share-btn").mouseenter((function(){e(this).addClass("clicked")})),e(".share-btn").on("click touchstart",(function(){e(".share-btn").hasClass("clicked")?e(".clicked").removeClass("clicked"):e(".share-btn").addClass("clicked")})),e(".share-btn").mouseleave((function(t){e(".clicked").removeClass("clicked"),t.stopPropagation()})),e(".copy-to-clipboard-email").click((function(){var e=i.createElement("textarea");i.body.appendChild(e),e.value=i.querySelector(".contact-us-email .value").innerText,e.select();var t=i.getElementsByClassName("copied-text-email")[0];i.execCommand("copy"),t.classList.add("copied");var n=setInterval((function(){t.classList.remove("copied"),clearInterval(n)}),600);i.body.removeChild(e)})),e(".copy-to-clipboard-phone").click((function(){var e=i.createElement("textarea");i.body.appendChild(e),e.value=i.querySelector(".contact-us-phone .value").innerText,e.select(),i.execCommand("copy");var t=i.getElementsByClassName("copied-text-phone")[0];t.classList.add("copied");var n=setInterval((function(){t.classList.remove("copied"),clearInterval(n)}),600);i.body.removeChild(e)}))})),e(t).width()>=e(".menu-wrapper").data("top")&&e('.site-main-menu li:not(.menu-item-has-children) > a[href^="#"]').on("click",(function(t){t.preventDefault();var i=e(this).attr("href");e(i).length&&e("html,body").animate({scrollTop:e(i).offset().top-e(".header_trans-fixed").outerHeight()-e("#wpadminbar").outerHeight()},"slow")})),e(".open-search").on("click",(function(){e("body").css("overflow","hidden"),e(".site-search").addClass("open")})),e(".close-search").on("click",(function(){e("body").css("overflow",""),e(".site-search").removeClass("open")})),e(".toggle-menu").on("click",(function(i){i.preventDefault(),e('<div class="mask-overlay">').hide().appendTo("body").fadeIn("fast"),e("html").addClass("no-scroll sidebar-open").height(t.innerHeight+"px"),e("#wpadminbar").length?e(".sidebar-open .site-nav").css("top","46px"):e(".sidebar-open .site-nav").css("top","0")})),e(".close-menu, .mask-overlay").on("click",(function(t){t.preventDefault(),e("html").removeClass("no-scroll sidebar-open").height("auto"),e(".mask-overlay").remove()})),e(".search-icon-wrapper.ico-style .close-search").on("click",(function(){e(this).parent().toggleClass("is-active"),e(this).parent().hasClass("is-active")&&setTimeout((function(){e(".search-icon-wrapper.ico-style .search-field").focus()}),300)})),e(i).on("click",(function(t){e(t.target).closest(".search-icon-wrapper.ico-style").length||e(".ico-style .close-search").parent().removeClass("is-active"),t.stopPropagation()})),e(".additional-nav").on("click",(function(t){t.preventDefault(),e(".additional-menu-wrapper").addClass("menu-open"),e(".menu-wrapper").addClass("additional-menu-open")})),e(".additional-nav-close, .additional-menu-overlay").on("click",(function(){e(".additional-menu-wrapper").removeClass("menu-open"),e(".menu-wrapper").removeClass("additional-menu-open")})),e(t).on("load",(function(){n(),s(),a(),r()})),e(t).on("scroll",(function(){})),e(t).on("resize",(function(){s(),a(),r()})),e(i).ready((function(){s(),a(),r()})),t.addEventListener("orientationchange",(function(){r(),s(),a()}))}(jQuery,window,document);var PIXELSIGNS=PIXELSIGNS||{};!function(e){"use strict";PIXELSIGNS.initialize={init:function(){PIXELSIGNS.initialize.general(),PIXELSIGNS.initialize.tab(),PIXELSIGNS.initialize.sectionBackground(),PIXELSIGNS.initialize.sectionSwitch(),PIXELSIGNS.initialize.portfolio(),PIXELSIGNS.initialize.countUp(),PIXELSIGNS.initialize.swiperSlider();var e=window.location.hash.toLowerCase();"/"==window.location.pathname&&"#feature_request"==e&&($crisp.push(["do","chat:open"]),history.pushState("",document.title,window.location.pathname+window.location.search))},general:function(){e(".saaspik-dropdown li").on("click",(function(t){var i=e(t.target),n=i.closest(".saaspik-dropdown"),s=n.find("label"),a=s.find("span"),r=n.find("input");(n.hasClass("init")||r.is(":checked")&&!i.hasClass("selected"))&&(n.removeClass("init"),n.find("li.selected").removeClass("selected"),i.addClass("selected"),n.attr("data-val",i.attr("data-val")||""==i.attr("data-val")?i.attr("data-val"):i.text().trim()),a.text(i.attr("data-text")?i.attr("data-text"):i.text().trim()),s.css("width",a.width()+20+"px"),r.prop("checked",!1))})),e(".saaspik-select").on("click",".placeholder",(function(){var t=e(this).closest(".saaspik-select");t.hasClass("is-open")?t.removeClass("is-open"):(t.addClass("is-open"),e(".saaspik-select.is-open").not(t).removeClass("is-open"))})).on("click","ul>li",(function(){e(this).closest(".saaspik-select").removeClass("is-open").find(".placeholder").text(e(this).text())})),e(".lng-dropdown.init li:first-child").click();try{new WOW({boxClass:"wow",animateClass:"animated",offset:0,mobile:!1,live:!0,scrollContainer:null}).init()}catch(e){console.log(e)}e(".faq .card").each((function(){var t=e(this);t.on("click",(function(){var i=t.hasClass("active");e(".faq .card").removeClass("active"),i?t.removeClass("active"):t.addClass("active")}))})),e(".popup-video").each((function(){e(".popup-video").magnificPopup({type:"iframe"})})),e(".pricing-tab-switcher, .tab-btn").on("click",(function(){e(".pricing-tab-switcher, .tab-btn").toggleClass("active"),e(".pricing-tab").toggleClass("seleceted"),e(".pricing-amount").toggleClass("change-subs-duration")})),e(".tabs-box").length&&e(".tabs-box .pricing-tab  .tab-btn").on("click",(function(t){t.preventDefault();var i=e(e(this).attr("data-tab"));if(e(i).is(":visible"))return!1;i.parents(".tabs-box").find(".pricing-tab ").find(".tab-btn").removeClass("active-btn"),e(this).addClass("active-btn"),i.parents(".tabs-box").find(".tabs-content").find(".tab").fadeOut(0),i.parents(".tabs-box").find(".tabs-content").find(".tab").removeClass("active-tab animated fadeIn"),e(i).fadeIn(300),e(i).addClass("active-tab animated fadeIn")})),e("#pix-tabs-nav li:nth-child(2)").addClass("active"),e("#pix-tabs-content .content").hide(),e("#pix-tabs-content .content:nth-child(2)").show(),e("#pix-tabs-nav li").on("click",(function(){e("#pix-tabs-nav li").removeClass("active"),e(this).addClass("active"),e("#pix-tabs-content .content").hide();var t=e(this).find("a").attr("href");return e(t).fadeIn(400),!1})),e(".site-main-menu li a").each((function(){e(this).attr("href")==location.href.split("/").slice(-1)&&e(this).addClass("current_page")}))},swiperSlider:function(){e(".swiper-container").each((function(){var t=e(this),i=(e(this).attr("id"),e(this).data("perpage")||1),n=e(this).data("loop")||!0,s=e(this).data("speed")||500,a=e(this).data("autoplay")||4e3,r=e(this).data("slidegroup")||1,o=e(this).data("space")||0,l=e(this).data("effect"),c=e(this).data("direction")||"horizontal",h=e(this).data("breakpoints");new Swiper(t,{slidesPerView:i,spaceBetween:o,slidesPerGroup:r,loop:n,speed:s,effect:l,direction:c,breakpoints:h,watchSlidesVisibility:!0,slideVisibleClass:"swiper-slide-visible",autoplay:{delay:a,disableOnInteraction:!1},pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-button-next",prevEl:".swiper-button-prev"}})}))},portfolio:function(){if(void 0!==e.fn.imagesLoaded&&void 0!==e.fn.isotope){e(".pixsass-portfolio-items").imagesLoaded((function(){var i=e(".pixsass-portfolio-items");i.isotope({itemSelector:".pixsass-portfolio-item",percentPosition:!0,transitionDuration:"0.5s",masonry:{columnWidth:".grid-sizer",layoutMode:"masonry"}}),e(".pixsass-isotope-filter a").on("click",(function(){e(".pixsass-isotope-filter").find(".current").removeClass("current"),e(this).parent().addClass("current");var t=e(this).attr("data-filter");return i.isotope({filter:t}),!1})),e(window).resize((function(){i.isotope(),t.masonry()}))}));var t=e(".blog-items");t.masonry({itemSelector:".blog-item",percentPosition:!0})}},mobileMenu:function(){e(window).width()<991&&(e(".site-main-menu li.active").addClass("open").children("ul").show(),document.querySelectorAll(".site-main-menu li.menu-item-has-children>a").forEach(on("click",(function(){e(this).removeAttr("href");var t=e(this).parent("li");t.hasClass("open")?(t.removeClass("open"),t.find("li").removeClass("open"),t.find("ul").slideUp(400)):(t.addClass("open"),t.children("ul").slideDown(400),t.siblings("li").children("ul").slideUp(400),t.siblings("li").removeClass("open"),t.siblings("li").find("li").removeClass("open"),t.siblings("li").find("ul").slideUp(400))})))),e(".toggle-menu").on("click",(function(t){t.preventDefault();var i='<div class="mask-overlay">';e("body").toggleClass("open-menu"),e(i).hide().appendTo("body").fadeIn("fast"),e(".mask-overlay, .close-menu").on("click",(function(){e("body").removeClass("open-menu"),e(".mask-overlay").remove()}))}))},sectionBackground:function(){e("[data-bg-image]").each((function(){var t=e(this).data("bg-image");e(this).css({backgroundImage:"url("+t+")"})}))},progressBar:function(){e(".skill-wrapper").length&&e(".skills").not(".active").each((function(){e(window).scrollTop()>=e(this).offset().top-1*e(window).height()&&(e(this).addClass("active"),e(this).find(".skill").each((function(){var t=e(this).attr("data-value");e(this).find(".active-line").css("width",t+"%")})))}))},sectionSwitch:function(){e('[data-type="section-switch"], #menu-home li a, .scroll-btn').on("click",(function(){if(location.pathname.replace(/^\//,"")==this.pathname.replace(/^\//,"")&&location.hostname==this.hostname){var t=e(this.hash);if(t.length>0)return t=t.length?t:e("[name="+this.hash.slice(1)+"]"),e("html,body").animate({scrollTop:t.offset().top},1e3),!1}}))},tab:function(){function t(e){var t=parseInt(e.children(".gp-tabs-navigation").width()),i=parseInt(e.width());e.scrollLeft()>=t-i?e.parent(".gp-tabs").addClass("is-ended"):e.parent(".gp-tabs").removeClass("is-ended")}e(".tab-nav-item").on("click",(function(){console.log(e(this).find(".acc-btn")),e(this).find(".acc-btn").hasClass("active")?(e(this).find(".acc-btn").removeClass("active"),e(this).find(".acc-btn").siblings(".content").slideUp(400),e(".tab-nav-item > .acc-btn i").removeClass("fa-minus").addClass("fa-plus")):(e(".tab-nav-item > .acc-btn i").removeClass("fa-minus").addClass("fa-plus"),e(this).find(".acc-btn").find("i").removeClass("fa-plus").addClass("fa-minus"),e(".tab-nav-item > .acc-btn").removeClass("active"),e(this).find(".acc-btn").addClass("active"),e(".content").slideUp(400),e(this).find(".acc-btn").siblings(".content").slideDown(400))}));var i=e(".gp-tabs-navigation li"),n=e(".gp-tabs-content");i.on("click",(function(t){t.preventDefault();var s=e(this);if(!s.hasClass("active-tab")){var a=s.data("content"),r=n.find('.pix-tab-item[data-content="'+a+'"]'),o=r.innerHeight();i.removeClass("active-tab"),s.addClass("active-tab"),r.addClass("active-tab").siblings(".pix-tab-item").removeClass("active-tab"),n.animate({height:o},500)}})),t(e(".gp-tabs nav")),e(window).on("resize",(function(){t(e(".gp-tabs nav")),n.css("height","auto")})),e(".gp-tabs nav").on("scroll",(function(){t(e(this))}))},countUp:function(){var t={useEasing:!0,useGrouping:!0,separator:",",decimal:".",prefix:"",suffix:""},i=e("[data-counter]");i&&i.each((function(){var i=e(this).data("counter"),n=new CountUp(this,0,i,0,2.5,t);e(this).appear((function(){n.start()}),{accX:0,accY:0})}))},contactFrom:function(){e("[data-pixsaas]").each((function(){var t=e(this);e(".form-result",t).css("display","none"),t.submit((function(){e('button[type="submit"]',t).addClass("clicked");var i={};return e("[name]",t).each((function(){var t=e(this),n=t.attr("name"),s=t.val();i[n]=s})),e.ajax({url:t.attr("action"),type:"POST",data:i,success:function(i){1==i.error?e(".form-result",t).addClass("alert-warning").removeClass("alert-success alert-danger").css("display","block"):e(".form-result",t).addClass("alert-success").removeClass("alert-warning alert-danger").css("display","block"),e(".form-result > .content",t).html(i.message),e('button[type="submit"]',t).removeClass("clicked")},error:function(){e(".form-result",t).addClass("alert-danger").removeClass("alert-warning alert-success").css("display","block"),e(".form-result > .content",t).html("Sorry, an error occurred."),e('button[type="submit"]',t).removeClass("clicked")}}),!1}))}))}},PIXELSIGNS.documentOnReady={init:function(){PIXELSIGNS.initialize.init()}},PIXELSIGNS.documentOnLoad={init:function(){e(".page-loader").fadeOut("slow")}},PIXELSIGNS.documentOnResize={init:function(){}},PIXELSIGNS.documentOnScroll={init:function(){PIXELSIGNS.initialize.sectionBackground(),PIXELSIGNS.initialize.progressBar(),e(window).scrollTop()>300?e(".return-to-top").addClass("back-top"):e(".return-to-top").removeClass("back-top")}},e(document).ready(PIXELSIGNS.documentOnReady.init),e(window).on("load",PIXELSIGNS.documentOnLoad.init),e(window).on("resize",PIXELSIGNS.documentOnResize.init),e(window).on("scroll",PIXELSIGNS.documentOnScroll.init)}(jQuery),$(".trial-email").on("change",(function(){var e=$(this).val().trim().toLowerCase();excluded_domains.indexOf(e.split("@")[1])>-1?this.setCustomValidity("Please enter a valid work email"):this.setCustomValidity("")})),window.dataLayer=window.dataLayer||[],gtag("js",new Date),gtag("config","G-2XTEB2BRZ9"),function(e){e(document).on("turbo:load",(function(){e(".tenure_btn").on("click",(function(){e(".tenure_btn").removeClass("active"),e(this).addClass("active"),e(".tenure_plan").hide().removeClass("active_plan");var t=e(this).attr("data-active");e("."+t).show().addClass("active_plan"),e(".foo_plan.active_plan").css("display","block")})),e(".month_switch").on("click",(function(t){t.preventDefault(),e(".month_p").show(),e(".year_p").hide(),e(".switch").removeClass("active"),e(this).addClass("active")})),e(".year_switch").on("click",(function(t){t.preventDefault(),e(".month_p").hide(),e(".year_p").show(),e(".switch").removeClass("active"),e(this).addClass("active")})),e(".product-service-switcher .switch_ps").on("click",(function(t){t.preventDefault(),e(".pricing_tabs_content").hide(),e("."+e(this).attr("data-tab")).show(),e(".switch_ps").removeClass("active"),e(this).addClass("active")})),e(".recurring-tab").on("click",(function(){e(".chooser-option").hide(),e(".recurring").show(),e(".pc-tabs").removeClass("active"),e(this).addClass("active"),e(".software-option").show(),e(".services-option").hide(),
e(".software-option .price_point .header").addClass("monthly")})),e(".instant-tab").on("click",(function(){e(".chooser-option").hide(),e(".one-time").show(),e(".pc-tabs").removeClass("active"),e(this).addClass("active"),e(".software-option").show(),e(".services-option").hide(),e(".software-option .price_point .header").removeClass("monthly")})),e(".services-tab").on("click",(function(){e(".pc-tabs").removeClass("active"),e(this).addClass("active"),e(".software-option").hide(),e(".services-option").show()}))}))}(jQuery);