/*!
 * Squarespace Lightbox Plugin
 * Version: 1.3.0
 * Author: Dmytro Kyselov https://dmytrokyselov.com/
 * License: Standard License
 */(()=>{var e={357:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
 * @license
 * Copyright 2016 Squarespace, INC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var n={load:function(e,t){return window.ImageLoader.load(e,t)}};t.default=n,e.exports=t.default},538:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
 * @license
 * Copyright 2016 Squarespace, INC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var n={init:function(){window.Squarespace.AFTER_BODY_LOADED=!1,window.Squarespace.afterBodyLoad()},destroy:function(){window.Squarespace.globalDestroy(window.Y)}};t.default=n,e.exports=t.default},746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;
/**
 * @license
 * Copyright 2016 Squarespace, INC.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
var n=window.Static.SQUARESPACE_CONTEXT.authenticatedAccount,o={all:{callbacks:[]}},r={getValue:function(e){return e&&"string"==typeof e?window.Static.SQUARESPACE_CONTEXT.tweakJSON[e]||window.Static.SQUARESPACE_CONTEXT.tweakJSON[e.replace("@","").replace(".","")]:(console.error("squarespace-core: Invalid tweak name "+e),null)},watch:function(){var e=arguments;if(n)if(0!==arguments.length)if(1!==arguments.length)if("string"==typeof arguments[0]&&"function"==typeof arguments[1]){var t=arguments[0];o[t]||(o[t]={callbacks:[]}),o[t].callbacks.push(arguments[1])}else arguments[0].constructor===Array&&"function"==typeof arguments[1]&&arguments[0].forEach((function(t){o[t]||(o[t]={callbacks:[]}),o[t].callbacks.push(e[1])}));else"function"==typeof arguments[0]&&o.all.callbacks.push(arguments[0]);else console.error("squarespace-core: Tweak.watch must be called with at least one parameter")}};function i(){window.Y.Global.on("tweak:change",(function(e){var t=e.getName(),n={name:t,value:e.config&&e.config.value||e.value};o[t]&&o[t].callbacks.forEach((function(e){try{e(n)}catch(e){console.error(e)}})),o.all.callbacks.length>0&&o.all.callbacks.forEach((function(e){try{e(n)}catch(e){console.error(e)}}))}))}n&&("complete"!==document.readyState?window.addEventListener("load",i):window.Y&&window.Y.Global&&i());var a=r;t.default=a,e.exports=t.default},622:(e,t,n)=>{e.exports="function"==typeof Array.from?Array.from:n(486)},486:e=>{var t,n,o,r;e.exports=(t=function(e){return"function"==typeof e},n=Math.pow(2,53)-1,o=function(e){var t=function(e){var t=Number(e);return isNaN(t)?0:0!==t&&isFinite(t)?(t>0?1:-1)*Math.floor(Math.abs(t)):t}(e);return Math.min(Math.max(t,0),n)},r=function(e){var t=e.next();return!Boolean(t.done)&&t},function(e){"use strict";var n,i,a,s=this,l=arguments.length>1?arguments[1]:void 0;if(void 0!==l){if(!t(l))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(n=arguments[2])}var c=function(e,n){if(null!=e&&null!=n){var o=e[n];if(null==o)return;if(!t(o))throw new TypeError(o+" is not a function");return o}}(e,function(e){if(null!=e){if(["string","number","boolean","symbol"].indexOf(typeof e)>-1)return Symbol.iterator;if("undefined"!=typeof Symbol&&"iterator"in Symbol&&Symbol.iterator in e)return Symbol.iterator;if("@@iterator"in e)return"@@iterator"}}(e));if(void 0!==c){i=t(s)?Object(new s):[];var u,d,f=c.call(e);if(null==f)throw new TypeError("Array.from requires an array-like or iterable object");for(a=0;;){if(!(u=r(f)))return i.length=a,i;d=u.value,i[a]=l?l.call(n,d,a):d,a++}}else{var p=Object(e);if(null==e)throw new TypeError("Array.from requires an array-like object - not null or undefined");var h,g=o(p.length);for(i=t(s)?Object(new s(g)):new Array(g),a=0;a<g;)h=p[a],i[a]=l?l.call(n,h,a):h,a++;i.length=g}return i})},97:(e,t,n)=>{"use strict";n(91).polyfill()},91:e=>{"use strict";function t(e,t){if(null==e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),o=1;o<arguments.length;o++){var r=arguments[o];if(null!=r)for(var i=Object.keys(Object(r)),a=0,s=i.length;a<s;a++){var l=i[a],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(n[l]=r[l])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},955:e=>{e.exports=function(){if("undefined"==typeof window||!window.document)return 15;const e=document.createElement("p");e.style.width="100%",e.style.height="200px";const t=document.createElement("div");t.style.position="absolute",t.style.top="0px",t.style.left="0px",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.overflow="hidden",t.appendChild(e),document.body.appendChild(t);const n=e.offsetWidth;t.style.overflow="scroll";var o=e.offsetWidth;return n===o&&(o=t.clientWidth),document.body.removeChild(t),n-o}},755:function(e,t){var n;
/*!
 * jQuery JavaScript Library v3.6.4
 * https://jquery.com/
 *
 * Includes Sizzle.js
 * https://sizzlejs.com/
 *
 * Copyright OpenJS Foundation and other contributors
 * Released under the MIT license
 * https://jquery.org/license
 *
 * Date: 2023-03-08T15:28Z
 */!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(o,r){"use strict";var i=[],a=Object.getPrototypeOf,s=i.slice,l=i.flat?function(e){return i.flat.call(e)}:function(e){return i.concat.apply([],e)},c=i.push,u=i.indexOf,d={},f=d.toString,p=d.hasOwnProperty,h=p.toString,g=h.call(Object),m={},y=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},b=function(e){return null!=e&&e===e.window},v=o.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var o,r,i=(n=n||v).createElement("script");if(i.text=e,t)for(o in x)(r=t[o]||t.getAttribute&&t.getAttribute(o))&&i.setAttribute(o,r);n.head.appendChild(i).parentNode.removeChild(i)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[f.call(e)]||"object":typeof e}var C="3.6.4",T=function(e,t){return new T.fn.init(e,t)};function A(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!y(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}T.fn=T.prototype={jquery:C,constructor:T,length:0,toArray:function(){return s.call(this)},get:function(e){return null==e?s.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(s.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var e,t,n,o,r,i,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||y(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)o=e[t],"__proto__"!==t&&a!==o&&(c&&o&&(T.isPlainObject(o)||(r=Array.isArray(o)))?(n=a[t],i=r&&!Array.isArray(n)?[]:r||T.isPlainObject(n)?n:{},r=!1,a[t]=T.extend(c,i,o)):void 0!==o&&(a[t]=o));return a},T.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==f.call(e))&&(!(t=a(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&h.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,o=0;if(A(e))for(n=e.length;o<n&&!1!==t.call(e[o],o,e[o]);o++);else for(o in e)if(!1===t.call(e[o],o,e[o]))break;return e},makeArray:function(e,t){var n=t||[];return null!=e&&(A(Object(e))?T.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,o=0,r=e.length;o<n;o++)e[r++]=t[o];return e.length=r,e},grep:function(e,t,n){for(var o=[],r=0,i=e.length,a=!n;r<i;r++)!t(e[r],r)!==a&&o.push(e[r]);return o},map:function(e,t,n){var o,r,i=0,a=[];if(A(e))for(o=e.length;i<o;i++)null!=(r=t(e[i],i,n))&&a.push(r);else for(i in e)null!=(r=t(e[i],i,n))&&a.push(r);return l(a)},guid:1,support:m}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var E=
/*!
 * Sizzle CSS Selector Engine v2.3.10
 * https://sizzlejs.com/
 *
 * Copyright JS Foundation and other contributors
 * Released under the MIT license
 * https://js.foundation/
 *
 * Date: 2023-02-14
 */
function(e){var t,n,o,r,i,a,s,l,c,u,d,f,p,h,g,m,y,b,v,x="sizzle"+1*new Date,w=e.document,S=0,C=0,T=le(),A=le(),E=le(),$=le(),P=function(e,t){return e===t&&(d=!0),0},k={}.hasOwnProperty,L=[],j=L.pop,_=L.push,q=L.push,D=L.slice,N=function(e,t){for(var n=0,o=e.length;n<o;n++)if(e[n]===t)return n;return-1},O="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",I="[\\x20\\t\\r\\n\\f]",M="(?:\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\["+I+"*("+M+")(?:"+I+"*([*^$|!~]?=)"+I+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+M+"))|)"+I+"*\\]",F=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",H=new RegExp(I+"+","g"),B=new RegExp("^"+I+"+|((?:^|[^\\\\])(?:\\\\.)*)"+I+"+$","g"),z=new RegExp("^"+I+"*,"+I+"*"),W=new RegExp("^"+I+"*([>+~]|"+I+")"+I+"*"),U=new RegExp(I+"|>"),X=new RegExp(F),Y=new RegExp("^"+M+"$"),V={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+I+"*(even|odd|(([+-]|)(\\d*)n|)"+I+"*(?:([+-]|)"+I+"*(\\d+)|))"+I+"*\\)|)","i"),bool:new RegExp("^(?:"+O+")$","i"),needsContext:new RegExp("^"+I+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+I+"*((?:-\\d)?\\d*)"+I+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,K=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+I+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},oe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,re=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ie=function(){f()},ae=xe((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{q.apply(L=D.call(w.childNodes),w.childNodes),L[w.childNodes.length].nodeType}catch(e){q={apply:L.length?function(e,t){_.apply(e,D.call(t))}:function(e,t){for(var n=e.length,o=0;e[n++]=t[o++];);e.length=n-1}}}function se(e,t,o,r){var i,s,c,u,d,h,y,b=t&&t.ownerDocument,w=t?t.nodeType:9;if(o=o||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return o;if(!r&&(f(t),t=t||p,g)){if(11!==w&&(d=J.exec(e)))if(i=d[1]){if(9===w){if(!(c=t.getElementById(i)))return o;if(c.id===i)return o.push(c),o}else if(b&&(c=b.getElementById(i))&&v(t,c)&&c.id===i)return o.push(c),o}else{if(d[2])return q.apply(o,t.getElementsByTagName(e)),o;if((i=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return q.apply(o,t.getElementsByClassName(i)),o}if(n.qsa&&!$[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(y=e,b=t,1===w&&(U.test(e)||W.test(e))){for((b=ee.test(e)&&ye(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(oe,re):t.setAttribute("id",u=x)),s=(h=a(e)).length;s--;)h[s]=(u?"#"+u:":scope")+" "+ve(h[s]);y=h.join(",")}try{return q.apply(o,b.querySelectorAll(y)),o}catch(t){$(e,!0)}finally{u===x&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,o,r)}function le(){var e=[];return function t(n,r){return e.push(n+" ")>o.cacheLength&&delete t[e.shift()],t[n+" "]=r}}function ce(e){return e[x]=!0,e}function ue(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function de(e,t){for(var n=e.split("|"),r=n.length;r--;)o.attrHandle[n[r]]=t}function fe(e,t){var n=t&&e,o=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(o)return o;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function he(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ae(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(n,o){for(var r,i=e([],n.length,t),a=i.length;a--;)n[r=i[a]]&&(n[r]=!(o[r]=n[r]))}))}))}function ye(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=se.support={},i=se.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},f=se.setDocument=function(e){var t,r,a=e?e.ownerDocument||e:w;return a!=p&&9===a.nodeType&&a.documentElement?(h=(p=a).documentElement,g=!i(p),w!=p&&(r=p.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",ie,!1):r.attachEvent&&r.attachEvent("onunload",ie)),n.scope=ue((function(e){return h.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssHas=ue((function(){try{return p.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=Z.test(p.getElementsByClassName),n.getById=ue((function(e){return h.appendChild(e).id=x,!p.getElementsByName||!p.getElementsByName(x).length})),n.getById?(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(o.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},o.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n,o,r,i=t.getElementById(e);if(i){if((n=i.getAttributeNode("id"))&&n.value===e)return[i];for(r=t.getElementsByName(e),o=0;i=r[o++];)if((n=i.getAttributeNode("id"))&&n.value===e)return[i]}return[]}}),o.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,o=[],r=0,i=t.getElementsByTagName(e);if("*"===e){for(;n=i[r++];)1===n.nodeType&&o.push(n);return o}return i},o.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},y=[],m=[],(n.qsa=Z.test(p.querySelectorAll))&&(ue((function(e){var t;h.appendChild(e).innerHTML="<a id='"+x+"'></a><select id='"+x+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+I+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+I+"*(?:value|"+O+")"),e.querySelectorAll("[id~="+x+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+I+"*name"+I+"*="+I+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+x+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+I+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=Z.test(b=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),y.push("!=",F)})),n.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),y=y.length&&new RegExp(y.join("|")),t=Z.test(h.compareDocumentPosition),v=t||Z.test(h.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,o=t&&t.parentNode;return e===o||!(!o||1!==o.nodeType||!(n.contains?n.contains(o):e.compareDocumentPosition&&16&e.compareDocumentPosition(o)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},P=t?function(e,t){if(e===t)return d=!0,0;var o=!e.compareDocumentPosition-!t.compareDocumentPosition;return o||(1&(o=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===o?e==p||e.ownerDocument==w&&v(w,e)?-1:t==p||t.ownerDocument==w&&v(w,t)?1:u?N(u,e)-N(u,t):0:4&o?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,o=0,r=e.parentNode,i=t.parentNode,a=[e],s=[t];if(!r||!i)return e==p?-1:t==p?1:r?-1:i?1:u?N(u,e)-N(u,t):0;if(r===i)return fe(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[o]===s[o];)o++;return o?fe(a[o],s[o]):a[o]==w?-1:s[o]==w?1:0},p):p},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(f(e),n.matchesSelector&&g&&!$[t+" "]&&(!y||!y.test(t))&&(!m||!m.test(t)))try{var o=b.call(e,t);if(o||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return o}catch(e){$(t,!0)}return se(t,p,null,[e]).length>0},se.contains=function(e,t){return(e.ownerDocument||e)!=p&&f(e),v(e,t)},se.attr=function(e,t){(e.ownerDocument||e)!=p&&f(e);var r=o.attrHandle[t.toLowerCase()],i=r&&k.call(o.attrHandle,t.toLowerCase())?r(e,t,!g):void 0;return void 0!==i?i:n.attributes||!g?e.getAttribute(t):(i=e.getAttributeNode(t))&&i.specified?i.value:null},se.escape=function(e){return(e+"").replace(oe,re)},se.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},se.uniqueSort=function(e){var t,o=[],r=0,i=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(P),d){for(;t=e[i++];)t===e[i]&&(r=o.push(i));for(;r--;)e.splice(o[r],1)}return u=null,e},r=se.getText=function(e){var t,n="",o=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=r(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[o++];)n+=r(t);return n},o=se.selectors={cacheLength:50,createPseudo:ce,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=a(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+I+")"+e+"("+I+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(o){var r=se.attr(o,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(H," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,o,r){var i="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="of-type"===t;return 1===o&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,f,p,h,g=i!==a?"nextSibling":"previousSibling",m=t.parentNode,y=s&&t.nodeName.toLowerCase(),b=!l&&!s,v=!1;if(m){if(i){for(;g;){for(f=t;f=f[g];)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=g="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?m.firstChild:m.lastChild],a&&b){for(v=(p=(c=(u=(d=(f=m)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],f=p&&m.childNodes[p];f=++p&&f&&f[g]||(v=p=0)||h.pop();)if(1===f.nodeType&&++v&&f===t){u[e]=[S,p,v];break}}else if(b&&(v=p=(c=(u=(d=(f=t)[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===v)for(;(f=++p&&f&&f[g]||(v=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++v||(b&&((u=(d=f[x]||(f[x]={}))[f.uniqueID]||(d[f.uniqueID]={}))[e]=[S,v]),f!==t)););return(v-=r)===o||v%o==0&&v/o>=0}}},PSEUDO:function(e,t){var n,r=o.pseudos[e]||o.setFilters[e.toLowerCase()]||se.error("unsupported pseudo: "+e);return r[x]?r(t):r.length>1?(n=[e,e,"",t],o.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var o,i=r(e,t),a=i.length;a--;)e[o=N(e,i[a])]=!(n[o]=i[a])})):function(e){return r(e,0,n)}):r}},pseudos:{not:ce((function(e){var t=[],n=[],o=s(e.replace(B,"$1"));return o[x]?ce((function(e,t,n,r){for(var i,a=o(e,null,r,[]),s=e.length;s--;)(i=a[s])&&(e[s]=!(t[s]=i))})):function(e,r,i){return t[0]=e,o(t,null,i,n),t[0]=null,!n.pop()}})),has:ce((function(e){return function(t){return se(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||r(t)).indexOf(e)>-1}})),lang:ce((function(e){return Y.test(e||"")||se.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===h},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!o.pseudos.empty(e)},header:function(e){return Q.test(e.nodeName)},input:function(e){return K.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:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var o=n<0?n+t:n>t?t:n;--o>=0;)e.push(o);return e})),gt:me((function(e,t,n){for(var o=n<0?n+t:n;++o<t;)e.push(o);return e}))}},o.pseudos.nth=o.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})o.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})o.pseudos[t]=he(t);function be(){}function ve(e){for(var t=0,n=e.length,o="";t<n;t++)o+=e[t].value;return o}function xe(e,t,n){var o=t.dir,r=t.next,i=r||o,a=n&&"parentNode"===i,s=C++;return t.first?function(t,n,r){for(;t=t[o];)if(1===t.nodeType||a)return e(t,n,r);return!1}:function(t,n,l){var c,u,d,f=[S,s];if(l){for(;t=t[o];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[o];)if(1===t.nodeType||a)if(u=(d=t[x]||(t[x]={}))[t.uniqueID]||(d[t.uniqueID]={}),r&&r===t.nodeName.toLowerCase())t=t[o]||t;else{if((c=u[i])&&c[0]===S&&c[1]===s)return f[2]=c[2];if(u[i]=f,f[2]=e(t,n,l))return!0}return!1}}function we(e){return e.length>1?function(t,n,o){for(var r=e.length;r--;)if(!e[r](t,n,o))return!1;return!0}:e[0]}function Se(e,t,n,o,r){for(var i,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(i=e[s])&&(n&&!n(i,o,r)||(a.push(i),c&&t.push(s)));return a}function Ce(e,t,n,o,r,i){return o&&!o[x]&&(o=Ce(o)),r&&!r[x]&&(r=Ce(r,i)),ce((function(i,a,s,l){var c,u,d,f=[],p=[],h=a.length,g=i||function(e,t,n){for(var o=0,r=t.length;o<r;o++)se(e,t[o],n);return n}(t||"*",s.nodeType?[s]:s,[]),m=!e||!i&&t?g:Se(g,f,e,s,l),y=n?r||(i?e:h||o)?[]:a:m;if(n&&n(m,y,s,l),o)for(c=Se(y,p),o(c,[],s,l),u=c.length;u--;)(d=c[u])&&(y[p[u]]=!(m[p[u]]=d));if(i){if(r||e){if(r){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(m[u]=d);r(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=r?N(i,d):f[u])>-1&&(i[c]=!(a[c]=d))}}else y=Se(y===a?y.splice(h,y.length):y),r?r(null,a,y,l):q.apply(a,y)}))}function Te(e){for(var t,n,r,i=e.length,a=o.relative[e[0].type],s=a||o.relative[" "],l=a?1:0,u=xe((function(e){return e===t}),s,!0),d=xe((function(e){return N(t,e)>-1}),s,!0),f=[function(e,n,o){var r=!a&&(o||n!==c)||((t=n).nodeType?u(e,n,o):d(e,n,o));return t=null,r}];l<i;l++)if(n=o.relative[e[l].type])f=[xe(we(f),n)];else{if((n=o.filter[e[l].type].apply(null,e[l].matches))[x]){for(r=++l;r<i&&!o.relative[e[r].type];r++);return Ce(l>1&&we(f),l>1&&ve(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<r&&Te(e.slice(l,r)),r<i&&Te(e=e.slice(r)),r<i&&ve(e))}f.push(n)}return we(f)}return be.prototype=o.filters=o.pseudos,o.setFilters=new be,a=se.tokenize=function(e,t){var n,r,i,a,s,l,c,u=A[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=o.preFilter;s;){for(a in n&&!(r=z.exec(s))||(r&&(s=s.slice(r[0].length)||s),l.push(i=[])),n=!1,(r=W.exec(s))&&(n=r.shift(),i.push({value:n,type:r[0].replace(B," ")}),s=s.slice(n.length)),o.filter)!(r=V[a].exec(s))||c[a]&&!(r=c[a](r))||(n=r.shift(),i.push({value:n,type:a,matches:r}),s=s.slice(n.length));if(!n)break}return t?s.length:s?se.error(e):A(e,l).slice(0)},s=se.compile=function(e,t){var n,r=[],i=[],s=E[e+" "];if(!s){for(t||(t=a(e)),n=t.length;n--;)(s=Te(t[n]))[x]?r.push(s):i.push(s);s=E(e,function(e,t){var n=t.length>0,r=e.length>0,i=function(i,a,s,l,u){var d,h,m,y=0,b="0",v=i&&[],x=[],w=c,C=i||r&&o.find.TAG("*",u),T=S+=null==w?1:Math.random()||.1,A=C.length;for(u&&(c=a==p||a||u);b!==A&&null!=(d=C[b]);b++){if(r&&d){for(h=0,a||d.ownerDocument==p||(f(d),s=!g);m=e[h++];)if(m(d,a||p,s)){l.push(d);break}u&&(S=T)}n&&((d=!m&&d)&&y--,i&&v.push(d))}if(y+=b,n&&b!==y){for(h=0;m=t[h++];)m(v,x,a,s);if(i){if(y>0)for(;b--;)v[b]||x[b]||(x[b]=j.call(l));x=Se(x)}q.apply(l,x),u&&!i&&x.length>0&&y+t.length>1&&se.uniqueSort(l)}return u&&(S=T,c=w),v};return n?ce(i):i}(i,r)),s.selector=e}return s},l=se.select=function(e,t,n,r){var i,l,c,u,d,f="function"==typeof e&&e,p=!r&&a(e=f.selector||e);if(n=n||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&o.relative[l[1].type]){if(!(t=(o.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;f&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(i=V.needsContext.test(e)?0:l.length;i--&&(c=l[i],!o.relative[u=c.type]);)if((d=o.find[u])&&(r=d(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ye(t.parentNode)||t))){if(l.splice(i,1),!(e=r.length&&ve(l)))return q.apply(n,r),n;break}}return(f||s(e,p))(r,t,!g,n,!t||ee.test(e)&&ye(t.parentNode)||t),n},n.sortStable=x.split("").sort(P).join("")===x,n.detectDuplicates=!!d,f(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||de("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||de("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||de(O,(function(e,t,n){var o;if(!n)return!0===e[t]?t.toLowerCase():(o=e.getAttributeNode(t))&&o.specified?o.value:null})),se}(o);T.find=E,T.expr=E.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=E.uniqueSort,T.text=E.getText,T.isXMLDoc=E.isXML,T.contains=E.contains,T.escapeSelector=E.escape;var $=function(e,t,n){for(var o=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&T(e).is(n))break;o.push(e)}return o},P=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=T.expr.match.needsContext;function L(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var j=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function _(e,t,n){return y(t)?T.grep(e,(function(e,o){return!!t.call(e,o,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var o=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===o.nodeType?T.find.matchesSelector(o,e)?[o]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,o=this.length,r=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<o;t++)if(T.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<o;t++)T.find(e,r[t],n);return o>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&k.test(e)?T(e):e||[],!1).length}});var q,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var o,r;if(!e)return this;if(n=n||q,"string"==typeof e){if(!(o="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:D.exec(e))||!o[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(o[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(o[1],t&&t.nodeType?t.ownerDocument||t:v,!0)),j.test(o[1])&&T.isPlainObject(t))for(o in t)y(this[o])?this[o](t[o]):this.attr(o,t[o]);return this}return(r=v.getElementById(o[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):y(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,q=T(v);var N=/^(?:parents|prev(?:Until|All))/,O={children:!0,contents:!0,next:!0,prev:!0};function I(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,o=0,r=this.length,i=[],a="string"!=typeof e&&T(e);if(!k.test(e))for(;o<r;o++)for(n=this[o];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){i.push(n);break}return this.pushStack(i.length>1?T.uniqueSort(i):i)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return $(e,"parentNode")},parentsUntil:function(e,t,n){return $(e,"parentNode",n)},next:function(e){return I(e,"nextSibling")},prev:function(e){return I(e,"previousSibling")},nextAll:function(e){return $(e,"nextSibling")},prevAll:function(e){return $(e,"previousSibling")},nextUntil:function(e,t,n){return $(e,"nextSibling",n)},prevUntil:function(e,t,n){return $(e,"previousSibling",n)},siblings:function(e){return P((e.parentNode||{}).firstChild,e)},children:function(e){return P(e.firstChild)},contents:function(e){return null!=e.contentDocument&&a(e.contentDocument)?e.contentDocument:(L(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,o){var r=T.map(this,t,n);return"Until"!==e.slice(-5)&&(o=n),o&&"string"==typeof o&&(r=T.filter(o,r)),this.length>1&&(O[e]||T.uniqueSort(r),N.test(e)&&r.reverse()),this.pushStack(r)}}));var M=/[^\x20\t\r\n\f]+/g;function R(e){return e}function F(e){throw e}function H(e,t,n,o){var r;try{e&&y(r=e.promise)?r.call(e).done(t).fail(n):e&&y(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(o))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(M)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,o,r,i=[],a=[],s=-1,l=function(){for(r=r||e.once,o=t=!0;a.length;s=-1)for(n=a.shift();++s<i.length;)!1===i[s].apply(n[0],n[1])&&e.stopOnFalse&&(s=i.length,n=!1);e.memory||(n=!1),t=!1,r&&(i=n?[]:"")},c={add:function(){return i&&(n&&!t&&(s=i.length-1,a.push(n)),function t(n){T.each(n,(function(n,o){y(o)?e.unique&&c.has(o)||i.push(o):o&&o.length&&"string"!==S(o)&&t(o)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,i,n))>-1;)i.splice(n,1),n<=s&&s--})),this},has:function(e){return e?T.inArray(e,i)>-1:i.length>0},empty:function(){return i&&(i=[]),this},disable:function(){return r=a=[],i=n="",this},disabled:function(){return!i},lock:function(){return r=a=[],n||t||(i=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],a.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!o}};return c},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,o){var r=y(e[o[4]])&&e[o[4]];i[o[1]]((function(){var e=r&&r.apply(this,arguments);e&&y(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[o[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var i=0;function a(e,t,n,r){return function(){var s=this,l=arguments,c=function(){var o,c;if(!(e<i)){if((o=n.apply(s,l))===t.promise())throw new TypeError("Thenable self-resolution");c=o&&("object"==typeof o||"function"==typeof o)&&o.then,y(c)?r?c.call(o,a(i,t,R,r),a(i,t,F,r)):(i++,c.call(o,a(i,t,R,r),a(i,t,F,r),a(i,t,R,t.notifyWith))):(n!==R&&(s=void 0,l=[o]),(r||t.resolveWith)(s,l))}},u=r?c:function(){try{c()}catch(o){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(o,u.stackTrace),e+1>=i&&(n!==F&&(s=void 0,l=[o]),t.rejectWith(s,l))}};e?u():(T.Deferred.getStackHook&&(u.stackTrace=T.Deferred.getStackHook()),o.setTimeout(u))}}return T.Deferred((function(o){t[0][3].add(a(0,o,y(r)?r:R,o.notifyWith)),t[1][3].add(a(0,o,y(e)?e:R)),t[2][3].add(a(0,o,y(n)?n:F))})).promise()},promise:function(e){return null!=e?T.extend(e,r):r}},i={};return T.each(t,(function(e,o){var a=o[2],s=o[5];r[o[1]]=a.add,s&&a.add((function(){n=s}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),a.add(o[3].fire),i[o[0]]=function(){return i[o[0]+"With"](this===i?void 0:this,arguments),this},i[o[0]+"With"]=a.fireWith})),r.promise(i),e&&e.call(i,i),i},when:function(e){var t=arguments.length,n=t,o=Array(n),r=s.call(arguments),i=T.Deferred(),a=function(e){return function(n){o[e]=this,r[e]=arguments.length>1?s.call(arguments):n,--t||i.resolveWith(o,r)}};if(t<=1&&(H(e,i.done(a(n)).resolve,i.reject,!t),"pending"===i.state()||y(r[n]&&r[n].then)))return i.then();for(;n--;)H(r[n],a(n),i.reject);return i.promise()}});var B=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){o.console&&o.console.warn&&e&&B.test(e.name)&&o.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){o.setTimeout((function(){throw e}))};var z=T.Deferred();function W(){v.removeEventListener("DOMContentLoaded",W),o.removeEventListener("load",W),T.ready()}T.fn.ready=function(e){return z.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||z.resolveWith(v,[T]))}}),T.ready.then=z.then,"complete"===v.readyState||"loading"!==v.readyState&&!v.documentElement.doScroll?o.setTimeout(T.ready):(v.addEventListener("DOMContentLoaded",W),o.addEventListener("load",W));var U=function(e,t,n,o,r,i,a){var s=0,l=e.length,c=null==n;if("object"===S(n))for(s in r=!0,n)U(e,t,s,n[s],!0,i,a);else if(void 0!==o&&(r=!0,y(o)||(a=!0),c&&(a?(t.call(e,o),t=null):(c=t,t=function(e,t,n){return c.call(T(e),n)})),t))for(;s<l;s++)t(e[s],n,a?o:o.call(e[s],s,t(e[s],n)));return r?e:c?t.call(e):l?t(e[0],n):i},X=/^-ms-/,Y=/-([a-z])/g;function V(e,t){return t.toUpperCase()}function G(e){return e.replace(X,"ms-").replace(Y,V)}var K=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Q(){this.expando=T.expando+Q.uid++}Q.uid=1,Q.prototype={cache:function(e){var t=e[this.expando];return t||(t={},K(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var o,r=this.cache(e);if("string"==typeof t)r[G(t)]=n;else for(o in t)r[G(o)]=t[o];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,o=e[this.expando];if(void 0!==o){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in o?[t]:t.match(M)||[]).length;for(;n--;)delete o[t[n]]}(void 0===t||T.isEmptyObject(o))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var Z=new Q,J=new Q,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var o;if(void 0===n&&1===e.nodeType)if(o="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(o))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}J.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return J.hasData(e)||Z.hasData(e)},data:function(e,t,n){return J.access(e,t,n)},removeData:function(e,t){J.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,o,r,i=this[0],a=i&&i.attributes;if(void 0===e){if(this.length&&(r=J.get(i),1===i.nodeType&&!Z.get(i,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(o=a[n].name).indexOf("data-")&&(o=G(o.slice(5)),ne(i,o,r[o]));Z.set(i,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){J.set(this,e)})):U(this,(function(t){var n;if(i&&void 0===t)return void 0!==(n=J.get(i,e))||void 0!==(n=ne(i,e))?n:void 0;this.each((function(){J.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){J.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var o;if(e)return t=(t||"fx")+"queue",o=Z.get(e,t),n&&(!o||Array.isArray(n)?o=Z.access(e,t,T.makeArray(n)):o.push(n)),o||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),o=n.length,r=n.shift(),i=T._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),o--),r&&("fx"===t&&n.unshift("inprogress"),delete i.stop,r.call(e,(function(){T.dequeue(e,t)}),i)),!o&&i&&i.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:T.Callbacks("once memory").add((function(){Z.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,o=1,r=T.Deferred(),i=this,a=this.length,s=function(){--o||r.resolveWith(i,[i])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(i[a],e+"queueHooks"))&&n.empty&&(o++,n.empty.add(s));return s(),r.promise(t)}});var oe=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,re=new RegExp("^(?:([+-])=|)("+oe+")([a-z%]*)$","i"),ie=["Top","Right","Bottom","Left"],ae=v.documentElement,se=function(e){return T.contains(e.ownerDocument,e)},le={composed:!0};ae.getRootNode&&(se=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&se(e)&&"none"===T.css(e,"display")};function ue(e,t,n,o){var r,i,a=20,s=o?function(){return o.cur()}:function(){return T.css(e,t,"")},l=s(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&re.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)T.style(e,t,u+c),(1-i)*(1-(i=s()/l||.5))<=0&&(a=0),u/=i;u*=2,T.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],o&&(o.unit=c,o.start=u,o.end=r)),r}var de={};function fe(e){var t,n=e.ownerDocument,o=e.nodeName,r=de[o];return r||(t=n.body.appendChild(n.createElement(o)),r=T.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),de[o]=r,r)}function pe(e,t){for(var n,o,r=[],i=0,a=e.length;i<a;i++)(o=e[i]).style&&(n=o.style.display,t?("none"===n&&(r[i]=Z.get(o,"display")||null,r[i]||(o.style.display="")),""===o.style.display&&ce(o)&&(r[i]=fe(o))):"none"!==n&&(r[i]="none",Z.set(o,"display",n)));for(i=0;i<a;i++)null!=r[i]&&(e[i].style.display=r[i]);return e}T.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?T(this).show():T(this).hide()}))}});var he,ge,me=/^(?:checkbox|radio)$/i,ye=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;he=v.createDocumentFragment().appendChild(v.createElement("div")),(ge=v.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),he.appendChild(ge),m.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue,he.innerHTML="<option></option>",m.option=!!he.lastChild;var ve={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function xe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&L(e,t)?T.merge([e],n):n}function we(e,t){for(var n=0,o=e.length;n<o;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}ve.tbody=ve.tfoot=ve.colgroup=ve.caption=ve.thead,ve.th=ve.td,m.option||(ve.optgroup=ve.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function Ce(e,t,n,o,r){for(var i,a,s,l,c,u,d=t.createDocumentFragment(),f=[],p=0,h=e.length;p<h;p++)if((i=e[p])||0===i)if("object"===S(i))T.merge(f,i.nodeType?[i]:i);else if(Se.test(i)){for(a=a||d.appendChild(t.createElement("div")),s=(ye.exec(i)||["",""])[1].toLowerCase(),l=ve[s]||ve._default,a.innerHTML=l[1]+T.htmlPrefilter(i)+l[2],u=l[0];u--;)a=a.lastChild;T.merge(f,a.childNodes),(a=d.firstChild).textContent=""}else f.push(t.createTextNode(i));for(d.textContent="",p=0;i=f[p++];)if(o&&T.inArray(i,o)>-1)r&&r.push(i);else if(c=se(i),a=xe(d.appendChild(i),"script"),c&&we(a),n)for(u=0;i=a[u++];)be.test(i.type||"")&&n.push(i);return d}var Te=/^([^.]*)(?:\.(.+)|)/;function Ae(){return!0}function Ee(){return!1}function $e(e,t){return e===function(){try{return v.activeElement}catch(e){}}()==("focus"===t)}function Pe(e,t,n,o,r,i){var a,s;if("object"==typeof t){for(s in"string"!=typeof n&&(o=o||n,n=void 0),t)Pe(e,s,n,o,t[s],i);return e}if(null==o&&null==r?(r=n,o=n=void 0):null==r&&("string"==typeof n?(r=o,o=void 0):(r=o,o=n,n=void 0)),!1===r)r=Ee;else if(!r)return e;return 1===i&&(a=r,r=function(e){return T().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=T.guid++)),e.each((function(){T.event.add(this,t,r,o,n)}))}function ke(e,t,n){n?(Z.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var o,r,i=Z.get(this,t);if(1&e.isTrigger&&this[t]){if(i.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=s.call(arguments),Z.set(this,t,i),o=n(this,t),this[t](),i!==(r=Z.get(this,t))||o?Z.set(this,t,!1):r={},i!==r)return e.stopImmediatePropagation(),e.preventDefault(),r&&r.value}else i.length&&(Z.set(this,t,{value:T.event.trigger(T.extend(i[0],T.Event.prototype),i.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Z.get(e,t)&&T.event.add(e,t,Ae)}T.event={global:{},add:function(e,t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,m=Z.get(e);if(K(e))for(n.handler&&(n=(i=n).handler,r=i.selector),r&&T.find.matchesSelector(ae,r),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(a=m.handle)||(a=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(M)||[""]).length;c--;)p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p&&(d=T.event.special[p]||{},p=(r?d.delegateType:d.bindType)||p,d=T.event.special[p]||{},u=T.extend({type:p,origType:g,data:o,handler:n,guid:n.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:h.join(".")},i),(f=l[p])||((f=l[p]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,o,h,a)||e.addEventListener&&e.addEventListener(p,a)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?f.splice(f.delegateCount++,0,u):f.push(u),T.event.global[p]=!0)},remove:function(e,t,n,o,r){var i,a,s,l,c,u,d,f,p,h,g,m=Z.hasData(e)&&Z.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(M)||[""]).length;c--;)if(p=g=(s=Te.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),p){for(d=T.event.special[p]||{},f=l[p=(o?d.delegateType:d.bindType)||p]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=i=f.length;i--;)u=f[i],!r&&g!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||o&&o!==u.selector&&("**"!==o||!u.selector)||(f.splice(i,1),u.selector&&f.delegateCount--,d.remove&&d.remove.call(e,u));a&&!f.length&&(d.teardown&&!1!==d.teardown.call(e,h,m.handle)||T.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[c],n,o,!0);T.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,o,r,i,a,s=new Array(arguments.length),l=T.event.fix(e),c=(Z.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(s[0]=l,t=1;t<arguments.length;t++)s[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(a=T.event.handlers.call(this,l,c),t=0;(r=a[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(i=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==i.namespace&&!l.rnamespace.test(i.namespace)||(l.handleObj=i,l.data=i.data,void 0!==(o=((T.event.special[i.origType]||{}).handle||i.handler).apply(r.elem,s))&&!1===(l.result=o)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,o,r,i,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(i=[],a={},n=0;n<l;n++)void 0===a[r=(o=t[n]).selector+" "]&&(a[r]=o.needsContext?T(r,this).index(c)>-1:T.find(r,this,null,[c]).length),a[r]&&i.push(o);i.length&&s.push({elem:c,handlers:i})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:y(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&ke(t,"click",Ae),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&L(t,"input")&&ke(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&L(t,"input")&&Z.get(t,"click")||L(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ae:Ee,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Ee,isPropagationStopped:Ee,isImmediatePropagationStopped:Ee,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ae,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ae,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ae,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return ke(this,e,$e),!1},trigger:function(){return ke(this,e),!0},_default:function(t){return Z.get(t.target,e)},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,o=e.relatedTarget,r=e.handleObj;return o&&(o===this||T.contains(this,o))||(e.type=r.origType,n=r.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,o){return Pe(this,e,t,n,o)},one:function(e,t,n,o){return Pe(this,e,t,n,o,1)},off:function(e,t,n){var o,r;if(e&&e.preventDefault&&e.handleObj)return o=e.handleObj,T(e.delegateTarget).off(o.namespace?o.origType+"."+o.namespace:o.origType,o.selector,o.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Ee),this.each((function(){T.event.remove(this,e,n,t)}))}});var Le=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function qe(e,t){return L(e,"table")&&L(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function De(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,o,r,i,a,s;if(1===t.nodeType){if(Z.hasData(e)&&(s=Z.get(e).events))for(r in Z.remove(t,"handle events"),s)for(n=0,o=s[r].length;n<o;n++)T.event.add(t,r,s[r][n]);J.hasData(e)&&(i=J.access(e),a=T.extend({},i),J.set(t,a))}}function Ie(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Me(e,t,n,o){t=l(t);var r,i,a,s,c,u,d=0,f=e.length,p=f-1,h=t[0],g=y(h);if(g||f>1&&"string"==typeof h&&!m.checkClone&&je.test(h))return e.each((function(r){var i=e.eq(r);g&&(t[0]=h.call(this,r,i.html())),Me(i,t,n,o)}));if(f&&(i=(r=Ce(t,e[0].ownerDocument,!1,e,o)).firstChild,1===r.childNodes.length&&(r=i),i||o)){for(s=(a=T.map(xe(r,"script"),De)).length;d<f;d++)c=r,d!==p&&(c=T.clone(c,!0,!0),s&&T.merge(a,xe(c,"script"))),n.call(e[d],c,d);if(s)for(u=a[a.length-1].ownerDocument,T.map(a,Ne),d=0;d<s;d++)c=a[d],be.test(c.type||"")&&!Z.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):w(c.textContent.replace(_e,""),c,u))}return e}function Re(e,t,n){for(var o,r=t?T.filter(t,e):e,i=0;null!=(o=r[i]);i++)n||1!==o.nodeType||T.cleanData(xe(o)),o.parentNode&&(n&&se(o)&&we(xe(o,"script")),o.parentNode.removeChild(o));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var o,r,i,a,s=e.cloneNode(!0),l=se(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(a=xe(s),o=0,r=(i=xe(e)).length;o<r;o++)Ie(i[o],a[o]);if(t)if(n)for(i=i||xe(e),a=a||xe(s),o=0,r=i.length;o<r;o++)Oe(i[o],a[o]);else Oe(e,s);return(a=xe(s,"script")).length>0&&we(a,!l&&xe(e,"script")),s},cleanData:function(e){for(var t,n,o,r=T.event.special,i=0;void 0!==(n=e[i]);i++)if(K(n)){if(t=n[Z.expando]){if(t.events)for(o in t.events)r[o]?T.event.remove(n,o):T.removeEvent(n,o,t.handle);n[Z.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Re(this,e,!0)},remove:function(e){return Re(this,e)},text:function(e){return U(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Me(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)}))},prepend:function(){return Me(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=qe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Me(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Me(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(xe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return U(this,(function(e){var t=this[0]||{},n=0,o=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Le.test(e)&&!ve[(ye.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<o;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(xe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Me(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(xe(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,o=[],r=T(e),i=r.length-1,a=0;a<=i;a++)n=a===i?this:this.clone(!0),T(r[a])[t](n),c.apply(o,n.get());return this.pushStack(o)}}));var Fe=new RegExp("^("+oe+")(?!px)[a-z%]+$","i"),He=/^--/,Be=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=o),t.getComputedStyle(e)},ze=function(e,t,n){var o,r,i={};for(r in t)i[r]=e.style[r],e.style[r]=t[r];for(r in o=n.call(e),t)e.style[r]=i[r];return o},We=new RegExp(ie.join("|"),"i"),Ue="[\\x20\\t\\r\\n\\f]",Xe=new RegExp("^"+Ue+"+|((?:^|[^\\\\])(?:\\\\.)*)"+Ue+"+$","g");function Ye(e,t,n){var o,r,i,a,s=He.test(t),l=e.style;return(n=n||Be(e))&&(a=n.getPropertyValue(t)||n[t],s&&a&&(a=a.replace(Xe,"$1")||void 0),""!==a||se(e)||(a=T.style(e,t)),!m.pixelBoxStyles()&&Fe.test(a)&&We.test(t)&&(o=l.width,r=l.minWidth,i=l.maxWidth,l.minWidth=l.maxWidth=l.width=a,a=n.width,l.width=o,l.minWidth=r,l.maxWidth=i)),void 0!==a?a+"":a}function Ve(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ae.appendChild(c).appendChild(u);var e=o.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",a=36===t(e.right),r=36===t(e.width),u.style.position="absolute",i=12===t(u.offsetWidth/3),ae.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,i,a,s,l,c=v.createElement("div"),u=v.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),i},reliableTrDimensions:function(){var e,t,n,r;return null==s&&(e=v.createElement("table"),t=v.createElement("tr"),n=v.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ae.appendChild(e).appendChild(t).appendChild(n),r=o.getComputedStyle(t),s=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,ae.removeChild(e)),s}}))}();var Ge=["Webkit","Moz","ms"],Ke=v.createElement("div").style,Qe={};function Ze(e){var t=T.cssProps[e]||Qe[e];return t||(e in Ke?e:Qe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ke)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var o=re.exec(t);return o?Math.max(0,o[2]-(n||0))+(o[3]||"px"):t}function ot(e,t,n,o,r,i){var a="width"===t?1:0,s=0,l=0;if(n===(o?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=T.css(e,n+ie[a],!0,r)),o?("content"===n&&(l-=T.css(e,"padding"+ie[a],!0,r)),"margin"!==n&&(l-=T.css(e,"border"+ie[a]+"Width",!0,r))):(l+=T.css(e,"padding"+ie[a],!0,r),"padding"!==n?l+=T.css(e,"border"+ie[a]+"Width",!0,r):s+=T.css(e,"border"+ie[a]+"Width",!0,r));return!o&&i>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-i-l-s-.5))||0),l}function rt(e,t,n){var o=Be(e),r=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,o),i=r,a=Ye(e,t,o),s="offset"+t[0].toUpperCase()+t.slice(1);if(Fe.test(a)){if(!n)return a;a="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&L(e,"tr")||"auto"===a||!parseFloat(a)&&"inline"===T.css(e,"display",!1,o))&&e.getClientRects().length&&(r="border-box"===T.css(e,"boxSizing",!1,o),(i=s in e)&&(a=e[s])),(a=parseFloat(a)||0)+ot(e,t,n||(r?"border":"content"),i,o,a)+"px"}function it(e,t,n,o,r){return new it.prototype.init(e,t,n,o,r)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,o){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,i,a,s=G(t),l=He.test(t),c=e.style;if(l||(t=Ze(s)),a=T.cssHooks[t]||T.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(r=a.get(e,!1,o))?r:c[t];"string"===(i=typeof n)&&(r=re.exec(n))&&r[1]&&(n=ue(e,t,r),i="number"),null!=n&&n==n&&("number"!==i||l||(n+=r&&r[3]||(T.cssNumber[s]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,o))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,o){var r,i,a,s=G(t);return He.test(t)||(t=Ze(s)),(a=T.cssHooks[t]||T.cssHooks[s])&&"get"in a&&(r=a.get(e,!0,n)),void 0===r&&(r=Ye(e,t,o)),"normal"===r&&t in tt&&(r=tt[t]),""===n||n?(i=parseFloat(r),!0===n||isFinite(i)?i||0:r):r}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,o){if(n)return!Je.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?rt(e,t,o):ze(e,et,(function(){return rt(e,t,o)}))},set:function(e,n,o){var r,i=Be(e),a=!m.scrollboxSize()&&"absolute"===i.position,s=(a||o)&&"border-box"===T.css(e,"boxSizing",!1,i),l=o?ot(e,t,o,s,i):0;return s&&a&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(i[t])-ot(e,t,"border",!1,i)-.5)),l&&(r=re.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),nt(0,n,l)}}})),T.cssHooks.marginLeft=Ve(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-ze(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var o=0,r={},i="string"==typeof n?n.split(" "):[n];o<4;o++)r[e+ie[o]+t]=i[o]||i[o-2]||i[0];return r}},"margin"!==e&&(T.cssHooks[e+t].set=nt)})),T.fn.extend({css:function(e,t){return U(this,(function(e,t,n){var o,r,i={},a=0;if(Array.isArray(t)){for(o=Be(e),r=t.length;a<r;a++)i[t[a]]=T.css(e,t[a],!1,o);return i}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=it,it.prototype={constructor:it,init:function(e,t,n,o,r,i){this.elem=e,this.prop=n,this.easing=r||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=o,this.unit=i||(T.cssNumber[n]?"":"px")},cur:function(){var e=it.propHooks[this.prop];return e&&e.get?e.get(this):it.propHooks._default.get(this)},run:function(e){var t,n=it.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):it.propHooks._default.set(this),this}},it.prototype.init.prototype=it.prototype,it.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=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Ze(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},it.propHooks.scrollTop=it.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=it.prototype.init,T.fx.step={};var at,st,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){st&&(!1===v.hidden&&o.requestAnimationFrame?o.requestAnimationFrame(ut):o.setTimeout(ut,T.fx.interval),T.fx.tick())}function dt(){return o.setTimeout((function(){at=void 0})),at=Date.now()}function ft(e,t){var n,o=0,r={height:e};for(t=t?1:0;o<4;o+=2-t)r["margin"+(n=ie[o])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function pt(e,t,n){for(var o,r=(ht.tweeners[t]||[]).concat(ht.tweeners["*"]),i=0,a=r.length;i<a;i++)if(o=r[i].call(n,t,e))return o}function ht(e,t,n){var o,r,i=0,a=ht.prefilters.length,s=T.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=at||dt(),n=Math.max(0,c.startTime+c.duration-t),o=1-(n/c.duration||0),i=0,a=c.tweens.length;i<a;i++)c.tweens[i].run(o);return s.notifyWith(e,[c,o,n]),o<1&&a?n:(a||s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c]),!1)},c=s.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:at||dt(),duration:n.duration,tweens:[],createTween:function(t,n){var o=T.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(o),o},stop:function(t){var n=0,o=t?c.tweens.length:0;if(r)return this;for(r=!0;n<o;n++)c.tweens[n].run(1);return t?(s.notifyWith(e,[c,1,0]),s.resolveWith(e,[c,t])):s.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,o,r,i,a;for(n in e)if(r=t[o=G(n)],i=e[n],Array.isArray(i)&&(r=i[1],i=e[n]=i[0]),n!==o&&(e[o]=i,delete e[n]),(a=T.cssHooks[o])&&"expand"in a)for(n in i=a.expand(i),delete e[o],i)n in e||(e[n]=i[n],t[n]=r);else t[o]=r}(u,c.opts.specialEasing);i<a;i++)if(o=ht.prefilters[i].call(c,e,u,c.opts))return y(o.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=o.stop.bind(o)),o;return T.map(u,pt,c),y(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ht,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,re.exec(t),n),n}]},tweener:function(e,t){y(e)?(t=e,e=["*"]):e=e.match(M);for(var n,o=0,r=e.length;o<r;o++)n=e[o],ht.tweeners[n]=ht.tweeners[n]||[],ht.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var o,r,i,a,s,l,c,u,d="width"in t||"height"in t,f=this,p={},h=e.style,g=e.nodeType&&ce(e),m=Z.get(e,"fxshow");for(o in n.queue||(null==(a=T._queueHooks(e,"fx")).unqueued&&(a.unqueued=0,s=a.empty.fire,a.empty.fire=function(){a.unqueued||s()}),a.unqueued++,f.always((function(){f.always((function(){a.unqueued--,T.queue(e,"fx").length||a.empty.fire()}))}))),t)if(r=t[o],lt.test(r)){if(delete t[o],i=i||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[o])continue;g=!0}p[o]=m&&m[o]||T.style(e,o)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(o in d&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(c=m&&m.display)&&(c=Z.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(pe([e],!0),c=e.style.display||c,u=T.css(e,"display"),pe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(e,"float")&&(l||(f.done((function(){h.display=c})),null==c&&(u=h.display,c="none"===u?"":u)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",f.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Z.access(e,"fxshow",{display:c}),i&&(m.hidden=!g),g&&pe([e],!0),f.done((function(){for(o in g||pe([e]),Z.remove(e,"fxshow"),p)T.style(e,o,p[o])}))),l=pt(g?m[o]:0,o,f),o in m||(m[o]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ht.prefilters.unshift(e):ht.prefilters.push(e)}}),T.speed=function(e,t,n){var o=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||y(e)&&e,duration:e,easing:n&&t||t&&!y(t)&&t};return T.fx.off?o.duration=0:"number"!=typeof o.duration&&(o.duration in T.fx.speeds?o.duration=T.fx.speeds[o.duration]:o.duration=T.fx.speeds._default),null!=o.queue&&!0!==o.queue||(o.queue="fx"),o.old=o.complete,o.complete=function(){y(o.old)&&o.old.call(this),o.queue&&T.dequeue(this,o.queue)},o},T.fn.extend({fadeTo:function(e,t,n,o){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,o)},animate:function(e,t,n,o){var r=T.isEmptyObject(e),i=T.speed(t,n,o),a=function(){var t=ht(this,T.extend({},e),i);(r||Z.get(this,"finish"))&&t.stop(!0)};return a.finish=a,r||!1===i.queue?this.each(a):this.queue(i.queue,a)},stop:function(e,t,n){var o=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",i=T.timers,a=Z.get(this);if(r)a[r]&&a[r].stop&&o(a[r]);else for(r in a)a[r]&&a[r].stop&&ct.test(r)&&o(a[r]);for(r=i.length;r--;)i[r].elem!==this||null!=e&&i[r].queue!==e||(i[r].anim.stop(n),t=!1,i.splice(r,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=Z.get(this),o=n[e+"queue"],r=n[e+"queueHooks"],i=T.timers,a=o?o.length:0;for(n.finish=!0,T.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=i.length;t--;)i[t].elem===this&&i[t].queue===e&&(i[t].anim.stop(!0),i.splice(t,1));for(t=0;t<a;t++)o[t]&&o[t].finish&&o[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,o,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(ft(t,!0),e,o,r)}})),T.each({slideDown:ft("show"),slideUp:ft("hide"),slideToggle:ft("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,o){return this.animate(t,e,n,o)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(at=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),at=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){st||(st=!0,ut())},T.fx.stop=function(){st=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=o.setTimeout(t,e);n.stop=function(){o.clearTimeout(r)}}))},function(){var e=v.createElement("input"),t=v.createElement("select").appendChild(v.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=v.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return U(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return void 0===e.getAttribute?T.prop(e,t,n):(1===i&&T.isXMLDoc(e)||(r=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(o=r.get(e,t))?o:null==(o=T.find.attr(e,t))?void 0:o)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&L(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,o=0,r=t&&t.match(M);if(r&&1===e.nodeType)for(;n=r[o++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||T.find.attr;mt[t]=function(e,t,o){var r,i,a=t.toLowerCase();return o||(i=mt[a],mt[a]=r,r=null!=n(e,t,o)?a:null,mt[a]=i),r}}));var yt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function vt(e){return(e.match(M)||[]).join(" ")}function xt(e){return e.getAttribute&&e.getAttribute("class")||""}function wt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}T.fn.extend({prop:function(e,t){return U(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var o,r,i=e.nodeType;if(3!==i&&8!==i&&2!==i)return 1===i&&T.isXMLDoc(e)||(t=T.propFix[t]||t,r=T.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(o=r.set(e,n,t))?o:e[t]=n:r&&"get"in r&&null!==(o=r.get(e,t))?o:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):yt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,o,r,i,a;return y(e)?this.each((function(t){T(this).addClass(e.call(this,t,xt(this)))})):(t=wt(e)).length?this.each((function(){if(o=xt(this),n=1===this.nodeType&&" "+vt(o)+" "){for(i=0;i<t.length;i++)r=t[i],n.indexOf(" "+r+" ")<0&&(n+=r+" ");a=vt(n),o!==a&&this.setAttribute("class",a)}})):this},removeClass:function(e){var t,n,o,r,i,a;return y(e)?this.each((function(t){T(this).removeClass(e.call(this,t,xt(this)))})):arguments.length?(t=wt(e)).length?this.each((function(){if(o=xt(this),n=1===this.nodeType&&" "+vt(o)+" "){for(i=0;i<t.length;i++)for(r=t[i];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");a=vt(n),o!==a&&this.setAttribute("class",a)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,o,r,i,a=typeof e,s="string"===a||Array.isArray(e);return y(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,xt(this),t),t)})):"boolean"==typeof t&&s?t?this.addClass(e):this.removeClass(e):(n=wt(e),this.each((function(){if(s)for(i=T(this),r=0;r<n.length;r++)o=n[r],i.hasClass(o)?i.removeClass(o):i.addClass(o);else void 0!==e&&"boolean"!==a||((o=xt(this))&&Z.set(this,"__className__",o),this.setAttribute&&this.setAttribute("class",o||!1===e?"":Z.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,o=0;for(t=" "+e+" ";n=this[o++];)if(1===n.nodeType&&(" "+vt(xt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;T.fn.extend({val:function(e){var t,n,o,r=this[0];return arguments.length?(o=y(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=o?e.call(this,n,T(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(St,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:vt(T.text(e))}},select:{get:function(e){var t,n,o,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?i+1:r.length;for(o=i<0?l:a?i:0;o<l;o++)if(((n=r[o]).selected||o===i)&&!n.disabled&&(!n.parentNode.disabled||!L(n.parentNode,"optgroup"))){if(t=T(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,o,r=e.options,i=T.makeArray(t),a=r.length;a--;)((o=r[a]).selected=T.inArray(T.valHooks.option.get(o),i)>-1)&&(n=!0);return n||(e.selectedIndex=-1),i}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in o;var Ct=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,r){var i,a,s,l,c,u,d,f,h=[n||v],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(a=f=s=n=n||v,3!==n.nodeType&&8!==n.nodeType&&!Ct.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),d=T.event.special[g]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!b(n)){for(l=d.delegateType||g,Ct.test(l+g)||(a=a.parentNode);a;a=a.parentNode)h.push(a),s=a;s===(n.ownerDocument||v)&&h.push(s.defaultView||s.parentWindow||o)}for(i=0;(a=h[i++])&&!e.isPropagationStopped();)f=a,e.type=i>1?l:d.bindType||g,(u=(Z.get(a,"events")||Object.create(null))[e.type]&&Z.get(a,"handle"))&&u.apply(a,t),(u=c&&a[c])&&u.apply&&K(a)&&(e.result=u.apply(a,t),!1===e.result&&e.preventDefault());return e.type=g,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(h.pop(),t)||!K(n)||c&&y(n[g])&&!b(n)&&((s=n[c])&&(n[c]=null),T.event.triggered=g,e.isPropagationStopped()&&f.addEventListener(g,Tt),n[g](),e.isPropagationStopped()&&f.removeEventListener(g,Tt),T.event.triggered=void 0,s&&(n[c]=s)),e.result}},simulate:function(e,t,n){var o=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(o,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var o=this.ownerDocument||this.document||this,r=Z.access(o,t);r||o.addEventListener(e,n,!0),Z.access(o,t,(r||0)+1)},teardown:function(){var o=this.ownerDocument||this.document||this,r=Z.access(o,t)-1;r?Z.access(o,t,r):(o.removeEventListener(e,n,!0),Z.remove(o,t))}}}));var At=o.location,Et={guid:Date.now()},$t=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new o.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Pt=/\[\]$/,kt=/\r?\n/g,Lt=/^(?:submit|button|image|reset|file)$/i,jt=/^(?:input|select|textarea|keygen)/i;function _t(e,t,n,o){var r;if(Array.isArray(t))T.each(t,(function(t,r){n||Pt.test(e)?o(e,r):_t(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,o)}));else if(n||"object"!==S(t))o(e,t);else for(r in t)_t(e+"["+r+"]",t[r],n,o)}T.param=function(e,t){var n,o=[],r=function(e,t){var n=y(t)?t():t;o[o.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){r(this.name,this.value)}));else for(n in e)_t(n,e[n],t,r);return o.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&jt.test(this.nodeName)&&!Lt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var qt=/%20/g,Dt=/#.*$/,Nt=/([?&])_=[^&]*/,Ot=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:GET|HEAD)$/,Mt=/^\/\//,Rt={},Ft={},Ht="*/".concat("*"),Bt=v.createElement("a");function zt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var o,r=0,i=t.toLowerCase().match(M)||[];if(y(n))for(;o=i[r++];)"+"===o[0]?(o=o.slice(1)||"*",(e[o]=e[o]||[]).unshift(n)):(e[o]=e[o]||[]).push(n)}}function Wt(e,t,n,o){var r={},i=e===Ft;function a(s){var l;return r[s]=!0,T.each(e[s]||[],(function(e,s){var c=s(t,n,o);return"string"!=typeof c||i||r[c]?i?!(l=c):void 0:(t.dataTypes.unshift(c),a(c),!1)})),l}return a(t.dataTypes[0])||!r["*"]&&a("*")}function Ut(e,t){var n,o,r=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:o||(o={}))[n]=t[n]);return o&&T.extend(!0,e,o),e}Bt.href=At.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:At.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(At.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ht,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Ut(Ut(e,T.ajaxSettings),t):Ut(T.ajaxSettings,e)},ajaxPrefilter:zt(Rt),ajaxTransport:zt(Ft),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,i,a,s,l,c,u,d,f,p=T.ajaxSetup({},t),h=p.context||p,g=p.context&&(h.nodeType||h.jquery)?T(h):T.event,m=T.Deferred(),y=T.Callbacks("once memory"),b=p.statusCode||{},x={},w={},S="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(c){if(!a)for(a={};t=Ot.exec(i);)a[t[1].toLowerCase()+" "]=(a[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=a[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?i:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)C.always(e[C.status]);else for(t in e)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),A(0,t),this}};if(m.promise(C),p.url=((e||p.url||At.href)+"").replace(Mt,At.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(M)||[""],null==p.crossDomain){l=v.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Bt.protocol+"//"+Bt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Wt(Rt,p,t,C),c)return C;for(d in(u=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!It.test(p.type),r=p.url.replace(Dt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(qt,"+")):(f=p.url.slice(r.length),p.data&&(p.processData||"string"==typeof p.data)&&(r+=($t.test(r)?"&":"?")+p.data,delete p.data),!1===p.cache&&(r=r.replace(Nt,"$1"),f=($t.test(r)?"&":"?")+"_="+Et.guid+++f),p.url=r+f),p.ifModified&&(T.lastModified[r]&&C.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&C.setRequestHeader("If-None-Match",T.etag[r])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ht+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(d,p.headers[d]);if(p.beforeSend&&(!1===p.beforeSend.call(h,C,p)||c))return C.abort();if(S="abort",y.add(p.complete),C.done(p.success),C.fail(p.error),n=Wt(Ft,p,t,C)){if(C.readyState=1,u&&g.trigger("ajaxSend",[C,p]),c)return C;p.async&&p.timeout>0&&(s=o.setTimeout((function(){C.abort("timeout")}),p.timeout));try{c=!1,n.send(x,A)}catch(e){if(c)throw e;A(-1,e)}}else A(-1,"No Transport");function A(e,t,a,l){var d,f,v,x,w,S=t;c||(c=!0,s&&o.clearTimeout(s),n=void 0,i=l||"",C.readyState=e>0?4:0,d=e>=200&&e<300||304===e,a&&(x=function(e,t,n){for(var o,r,i,a,s=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===o&&(o=e.mimeType||t.getResponseHeader("Content-Type"));if(o)for(r in s)if(s[r]&&s[r].test(o)){l.unshift(r);break}if(l[0]in n)i=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){i=r;break}a||(a=r)}i=i||a}if(i)return i!==l[0]&&l.unshift(i),n[i]}(p,C,a)),!d&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,n,o){var r,i,a,s,l,c={},u=e.dataTypes.slice();if(u[1])for(a in e.converters)c[a.toLowerCase()]=e.converters[a];for(i=u.shift();i;)if(e.responseFields[i]&&(n[e.responseFields[i]]=t),!l&&o&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=i,i=u.shift())if("*"===i)i=l;else if("*"!==l&&l!==i){if(!(a=c[l+" "+i]||c["* "+i]))for(r in c)if((s=r.split(" "))[1]===i&&(a=c[l+" "+s[0]]||c["* "+s[0]])){!0===a?a=c[r]:!0!==c[r]&&(i=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&e.throws)t=a(t);else try{t=a(t)}catch(e){return{state:"parsererror",error:a?e:"No conversion from "+l+" to "+i}}}return{state:"success",data:t}}(p,x,C,d),d?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=w),(w=C.getResponseHeader("etag"))&&(T.etag[r]=w)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=x.state,f=x.data,d=!(v=x.error))):(v=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",d?m.resolveWith(h,[f,S,C]):m.rejectWith(h,[C,S,v]),C.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[C,p,d?f:v]),y.fireWith(h,[C,S]),u&&(g.trigger("ajaxComplete",[C,p]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,o,r){return y(n)&&(r=r||o,o=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:r,data:n,success:o},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(y(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return y(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=y(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new o.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Yt=T.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,T.ajaxTransport((function(e){var t,n;if(m.cors||Yt&&!e.crossDomain)return{send:function(r,i){var a,s=e.xhr();if(s.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(a in e.xhrFields)s[a]=e.xhrFields[a];for(a in e.mimeType&&s.overrideMimeType&&s.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)s.setRequestHeader(a,r[a]);t=function(e){return function(){t&&(t=n=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===e?s.abort():"error"===e?"number"!=typeof s.status?i(0,"error"):i(s.status,s.statusText):i(Xt[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=t(),n=s.onerror=s.ontimeout=t("error"),void 0!==s.onabort?s.onabort=n:s.onreadystatechange=function(){4===s.readyState&&o.setTimeout((function(){t&&n()}))},t=t("abort");try{s.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.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 T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(o,r){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),v.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Vt,Gt=[],Kt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||T.expando+"_"+Et.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var r,i,a,s=!1!==e.jsonp&&(Kt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(e.data)&&"data");if(s||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=y(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,s?e[s]=e[s].replace(Kt,"$1"+r):!1!==e.jsonp&&(e.url+=($t.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return a||T.error(r+" was not called"),a[0]},e.dataTypes[0]="json",i=o[r],o[r]=function(){a=arguments},n.always((function(){void 0===i?T(o).removeProp(r):o[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(r)),a&&y(i)&&i(a[0]),a=i=void 0})),"script"})),m.createHTMLDocument=((Vt=v.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Vt.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((o=(t=v.implementation.createHTMLDocument("")).createElement("base")).href=v.location.href,t.head.appendChild(o)):t=v),i=!n&&[],(r=j.exec(e))?[t.createElement(r[1])]:(r=Ce([e],t,i),i&&i.length&&T(i).remove(),T.merge([],r.childNodes)));var o,r,i},T.fn.load=function(e,t,n){var o,r,i,a=this,s=e.indexOf(" ");return s>-1&&(o=vt(e.slice(s)),e=e.slice(0,s)),y(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),a.length>0&&T.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){i=arguments,a.html(o?T("<div>").append(T.parseHTML(e)).find(o):e)})).always(n&&function(e,t){a.each((function(){n.apply(this,i||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var o,r,i,a,s,l,c=T.css(e,"position"),u=T(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),i=T.css(e,"top"),l=T.css(e,"left"),("absolute"===c||"fixed"===c)&&(i+l).indexOf("auto")>-1?(a=(o=u.position()).top,r=o.left):(a=parseFloat(i)||0,r=parseFloat(l)||0),y(t)&&(t=t.call(e,n,T.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+r),"using"in t?t.using.call(e,d):u.css(d)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,o=this[0];return o?o.getClientRects().length?(t=o.getBoundingClientRect(),n=o.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,o=this[0],r={top:0,left:0};if("fixed"===T.css(o,"position"))t=o.getBoundingClientRect();else{for(t=this.offset(),n=o.ownerDocument,e=o.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==o&&1===e.nodeType&&((r=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),r.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-T.css(o,"marginTop",!0),left:t.left-r.left-T.css(o,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||ae}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(o){return U(this,(function(e,o,r){var i;if(b(e)?i=e:9===e.nodeType&&(i=e.defaultView),void 0===r)return i?i[t]:e[o];i?i.scrollTo(n?i.pageXOffset:r,n?r:i.pageYOffset):e[o]=r}),e,o,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ve(m.pixelPosition,(function(e,n){if(n)return n=Ye(e,t),Fe.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,o){T.fn[o]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(!0===r||!0===i?"margin":"border");return U(this,(function(t,n,r){var i;return b(t)?0===o.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?T.css(t,n,s):T.style(t,n,r,s)}),t,a?r:void 0,a)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,o){return this.on(t,e,n,o)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Qt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,o,r;if("string"==typeof t&&(n=e[t],t=e,e=n),y(e))return o=s.call(arguments,2),r=function(){return e.apply(t||this,o.concat(s.call(arguments)))},r.guid=e.guid=e.guid||T.guid++,r},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=L,T.isFunction=y,T.isWindow=b,T.camelCase=G,T.type=S,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(Qt,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var Zt=o.jQuery,Jt=o.$;return T.noConflict=function(e){return o.$===T&&(o.$=Jt),e&&o.jQuery===T&&(o.jQuery=Zt),T},void 0===r&&(o.jQuery=o.$=T),T}))},394:()=>{window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function n(t){var n,o={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(n in t)o[n]!==e&&t[n]!==e&&(o[n]=t[n]);return o}function o(t,o){var s=i(t,o);return function(c){var u=c.length;if(o.a&&3===t.nodeType&&t.nodeValue!==s.a&&c.push(new n({type:"characterData",target:t,oldValue:s.a})),o.b&&s.b&&r(c,t,s.b,o.f),o.c||o.g)var d=function(t,o,i,s){function c(e,o,i,a,l){var c,d,f,p=e.length-1;for(l=-~((p-l)/2);f=e.pop();)c=i[f.j],d=a[f.l],s.c&&l&&Math.abs(f.j-f.l)>=p&&(t.push(n({type:"childList",target:o,addedNodes:[c],removedNodes:[c],nextSibling:c.nextSibling,previousSibling:c.previousSibling})),l--),s.b&&d.b&&r(t,c,d.b,s.f),s.a&&3===c.nodeType&&c.nodeValue!==d.a&&t.push(n({type:"characterData",target:c,oldValue:d.a})),s.g&&u(c,d)}function u(o,i){for(var f,p,h,g,m,y=o.childNodes,b=i.c,v=y.length,x=b?b.length:0,w=0,S=0,C=0;S<v||C<x;)(g=y[S])===(m=(h=b[C])&&h.node)?(s.b&&h.b&&r(t,g,h.b,s.f),s.a&&h.a!==e&&g.nodeValue!==h.a&&t.push(n({type:"characterData",target:g,oldValue:h.a})),p&&c(p,o,y,b,w),s.g&&(g.childNodes.length||h.c&&h.c.length)&&u(g,h),S++,C++):(d=!0,f||(f={},p=[]),g&&(f[h=a(g)]||(f[h]=!0,-1===(h=l(b,g,C,"node"))?s.c&&(t.push(n({type:"childList",target:o,addedNodes:[g],nextSibling:g.nextSibling,previousSibling:g.previousSibling})),w++):p.push({j:S,l:h})),S++),m&&m!==y[S]&&(f[h=a(m)]||(f[h]=!0,-1===(h=l(y,m,S))?s.c&&(t.push(n({type:"childList",target:i.node,removedNodes:[m],nextSibling:b[C+1],previousSibling:b[C-1]})),w--):p.push({j:h,l:C})),C++));p&&c(p,o,y,b,w)}var d;return u(o,i),d}(c,t,s,o);(d||c.length!==u)&&(s=i(t,o))}}function r(t,o,r,i){for(var a,s,l={},c=o.attributes,d=c.length;d--;)s=(a=c[d]).name,i&&i[s]===e||(u(o,a)!==r[s]&&t.push(n({type:"attributes",target:o,attributeName:s,oldValue:r[s],attributeNamespace:a.namespaceURI})),l[s]=!0);for(s in r)l[s]||t.push(n({target:o,type:"attributes",attributeName:s,oldValue:r[s]}))}function i(e,t){var n=!0;return function e(o){var r={node:o};return!t.a||3!==o.nodeType&&8!==o.nodeType?(t.b&&n&&1===o.nodeType&&(r.b=s(o.attributes,(function(e,n){return t.f&&!t.f[n.name]||(e[n.name]=u(o,n)),e}),{})),n&&(t.c||t.a||t.b&&t.g)&&(r.c=function(e,t){for(var n=[],o=0;o<e.length;o++)n[o]=t(e[o],o,e);return n}(o.childNodes,e)),n=t.g):r.a=o.nodeValue,r}(e)}function a(e){try{return e.id||(e.mo_id=e.mo_id||d++)}catch(t){try{return e.nodeValue}catch(e){return d++}}}function s(e,t,n){for(var o=0;o<e.length;o++)n=t(n,e[o],o,e);return n}function l(e,t,n,o){for(;n<e.length;n++)if((o?e[n][o]:e[n])===t)return n;return-1}t._period=30,t.prototype={observe:function(e,n){for(var r={b:!!(n.attributes||n.attributeFilter||n.attributeOldValue),c:!!n.childList,g:!!n.subtree,a:!(!n.characterData&&!n.characterDataOldValue)},i=this.i,a=0;a<i.length;a++)i[a].s===e&&i.splice(a,1);n.attributeFilter&&(r.f=s(n.attributeFilter,(function(e,t){return e[t]=!0,e}),{})),i.push({s:e,o:o(e,r)}),this.h||function(e){!function n(){var o=e.takeRecords();o.length&&e.m(o,e),e.h=setTimeout(n,t._period)}()}(this)},takeRecords:function(){for(var e=[],t=this.i,n=0;n<t.length;n++)t[n].o(e);return e},disconnect:function(){this.i=[],clearTimeout(this.h),this.h=null}};var c=document.createElement("i");c.style.top=0;var u=(c="null"!=c.attributes.style.value)?function(e,t){return t.value}:function(e,t){return"style"!==t.name?t.value:e.style.cssText},d=1;return t}(void 0))},670:(e,t,n)=>{"use strict";e.exports=n(607)},829:(e,t,n)=>{"use strict";var o,r,i,a=n(946),s="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){i=!1}function c(e){if(e){if(e!==o){if(e.length!==s.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. You submitted "+e.length+" characters: "+e);var t=e.split("").filter((function(e,t,n){return t!==n.lastIndexOf(e)}));if(t.length)throw new Error("Custom alphabet for shortid must be "+s.length+" unique characters. These characters were not unique: "+t.join(", "));o=e,l()}}else o!==s&&(o=s,l())}function u(){return i||(i=function(){o||c(s);for(var e,t=o.split(""),n=[],r=a.nextValue();t.length>0;)r=a.nextValue(),e=Math.floor(r*t.length),n.push(t.splice(e,1)[0]);return n.join("")}())}e.exports={get:function(){return o||s},characters:function(e){return c(e),o},seed:function(e){a.seed(e),r!==e&&(l(),r=e)},lookup:function(e){return u()[e]},shuffled:u}},480:(e,t,n)=>{"use strict";var o,r,i=n(416);n(829);e.exports=function(e){var t="",n=Math.floor(.001*(Date.now()-1567752802062));return n===r?o++:(o=0,r=n),t+=i(7),t+=i(e),o>0&&(t+=i(o)),t+=i(n)}},416:(e,t,n)=>{"use strict";var o=n(829),r=n(766),i=n(296);e.exports=function(e){for(var t,n=0,a="";!t;)a+=i(r,o.get(),1),t=e<Math.pow(16,n+1),n++;return a}},607:(e,t,n)=>{"use strict";var o=n(829),r=n(480),i=n(82),a=n(636)||0;function s(){return r(a)}e.exports=s,e.exports.generate=s,e.exports.seed=function(t){return o.seed(t),e.exports},e.exports.worker=function(t){return a=t,e.exports},e.exports.characters=function(e){return void 0!==e&&o.characters(e),o.shuffled()},e.exports.isValid=i},82:(e,t,n)=>{"use strict";var o=n(829);e.exports=function(e){return!(!e||"string"!=typeof e||e.length<6)&&!new RegExp("[^"+o.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(e)}},766:e=>{"use strict";var t,n="object"==typeof window&&(window.crypto||window.msCrypto);t=n&&n.getRandomValues?function(e){return n.getRandomValues(new Uint8Array(e))}:function(e){for(var t=[],n=0;n<e;n++)t.push(Math.floor(256*Math.random()));return t},e.exports=t},946:e=>{"use strict";var t=1;e.exports={nextValue:function(){return(t=(9301*t+49297)%233280)/233280},seed:function(e){t=e}}},636:e=>{"use strict";e.exports=0},296:e=>{e.exports=function(e,t,n){for(var o=(2<<Math.log(t.length-1)/Math.LN2)-1,r=-~(1.6*o*n/t.length),i="";;)for(var a=e(r),s=r;s--;)if((i+=t[a[s]&o]||"").length===+n)return i}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),(()=>{"use strict";
/*! @ryanmorr/ready v1.4.1 | https://github.com/ryanmorr/ready */
let e=null;const t=[],o=window.document,r=Symbol("ready");let i=/complete|loaded|interactive/.test(o.readyState);function a({selector:e,callback:t}){const n=o.querySelectorAll(e);for(let e=0,o=n.length;e<o;e++){const o=n[e];o[r]||(o[r]=!0,t.call(o,o))}}function s(){t.forEach(a)}function l(n,r){if("function"==typeof n&&(r=n,n=o,i))return r.call(o,o),()=>null;e||(e=new MutationObserver(s),e.observe(o.documentElement,{childList:!0,subtree:!0}));const l={selector:n,callback:r};return t.push(l),a(l),()=>function(n){let o=t.indexOf(n);-1!==o&&t.splice(o,1),0===t.length&&null!=e&&(e.disconnect(),e=null)}(l)}function c(e){"interactive"===document.readyState||"complete"===document.readyState?e():document.addEventListener("DOMContentLoaded",(function t(){document.removeEventListener("DOMContentLoaded",t),e()}))}i||o.addEventListener("DOMContentLoaded",(()=>{i=!0;for(let e=0,n=t.length;e<n;e++){const n=t[e];n.selector===o&&(n.callback.call(o,o),t.splice(e--,1))}}));var u=n(746),d=n.n(u);const f=function(e){d().getValue("tweak-site-ajax-loading-enable")&&c((function(){return setTimeout((function(){return function(e){var t=document.querySelector("body[data-ajax-loader]");t?new MutationObserver((function(n){"data-ajax-loader"===n[0].attributeName&&"loaded"===t.getAttribute("data-ajax-loader")&&e()})).observe(t,{attributes:!0}):window.addEventListener("mercury:load",e)}(e)}),100)}))};const p=function(){return window.parent.Static&&!0===window.parent.Static.IN_BACKEND};var h=n(622),g=n.n(h);const m=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))};const y=function(e){return new this((function(t,n){if(!e||void 0===e.length)return n(new TypeError(typeof e+" "+e+" is not iterable(cannot read property Symbol(Symbol.iterator))"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);var r=o.length;function i(e,n){if(n&&("object"==typeof n||"function"==typeof n)){var a=n.then;if("function"==typeof a)return void a.call(n,(function(t){i(e,t)}),(function(n){o[e]={status:"rejected",reason:n},0==--r&&t(o)}))}o[e]={status:"fulfilled",value:n},0==--r&&t(o)}for(var a=0;a<o.length;a++)i(a,o[a])}))};function b(e,t){this.name="AggregateError",this.errors=e,this.message=t||""}b.prototype=Error.prototype;const v=function(e){var t=this;return new t((function(n,o){if(!e||void 0===e.length)return o(new TypeError("Promise.any accepts an array"));var r=Array.prototype.slice.call(e);if(0===r.length)return o();for(var i=[],a=0;a<r.length;a++)try{t.resolve(r[a]).then(n).catch((function(e){i.push(e),i.length===r.length&&o(new b(i,"All promises were rejected"))}))}catch(e){o(e)}}))};var x=setTimeout;function w(e){return Boolean(e&&void 0!==e.length)}function S(){}function C(e){if(!(this instanceof C))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],k(e,this)}function T(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,C._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var o;try{o=n(e._value)}catch(e){return void E(t.promise,e)}A(t.promise,o)}else(1===e._state?A:E)(t.promise,e._value)}))):e._deferreds.push(t)}function A(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof C)return e._state=3,e._value=t,void $(e);if("function"==typeof n)return void k((o=n,r=t,function(){o.apply(r,arguments)}),e)}e._state=1,e._value=t,$(e)}catch(t){E(e,t)}var o,r}function E(e,t){e._state=2,e._value=t,$(e)}function $(e){2===e._state&&0===e._deferreds.length&&C._immediateFn((function(){e._handled||C._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)T(e,e._deferreds[t]);e._deferreds=null}function P(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function k(e,t){var n=!1;try{e((function(e){n||(n=!0,A(t,e))}),(function(e){n||(n=!0,E(t,e))}))}catch(e){if(n)return;n=!0,E(t,e)}}C.prototype.catch=function(e){return this.then(null,e)},C.prototype.then=function(e,t){var n=new this.constructor(S);return T(this,new P(e,t,n)),n},C.prototype.finally=m,C.all=function(e){return new C((function(t,n){if(!w(e))return n(new TypeError("Promise.all accepts an array"));var o=Array.prototype.slice.call(e);if(0===o.length)return t([]);var r=o.length;function i(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(t){i(e,t)}),n)}o[e]=a,0==--r&&t(o)}catch(e){n(e)}}for(var a=0;a<o.length;a++)i(a,o[a])}))},C.any=v,C.allSettled=y,C.resolve=function(e){return e&&"object"==typeof e&&e.constructor===C?e:new C((function(t){t(e)}))},C.reject=function(e){return new C((function(t,n){n(e)}))},C.race=function(e){return new C((function(t,n){if(!w(e))return n(new TypeError("Promise.race accepts an array"));for(var o=0,r=e.length;o<r;o++)C.resolve(e[o]).then(t,n)}))},C._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){x(e,0)},C._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};const L=C;n(97),n(394);var j="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==j&&j,_={searchParams:"URLSearchParams"in j,iterable:"Symbol"in j&&"iterator"in Symbol,blob:"FileReader"in j&&"Blob"in j&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in j,arrayBuffer:"ArrayBuffer"in j};if(_.arrayBuffer)var q=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],D=ArrayBuffer.isView||function(e){return e&&q.indexOf(Object.prototype.toString.call(e))>-1};function N(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function O(e){return"string"!=typeof e&&(e=String(e)),e}function I(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return _.iterable&&(t[Symbol.iterator]=function(){return t}),t}function M(e){this.map={},e instanceof M?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function R(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function F(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function H(e){var t=new FileReader,n=F(t);return t.readAsArrayBuffer(e),n}function B(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function z(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:_.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:_.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():_.arrayBuffer&&_.blob&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=B(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):_.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||D(e))?this._bodyArrayBuffer=B(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):_.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},_.blob&&(this.blob=function(){var e=R(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=R(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(H)}),this.text=function(){var e,t,n,o=R(this);if(o)return o;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=F(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),o=0;o<t.length;o++)n[o]=String.fromCharCode(t[o]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},_.formData&&(this.formData=function(){return this.text().then(X)}),this.json=function(){return this.text().then(JSON.parse)},this}M.prototype.append=function(e,t){e=N(e),t=O(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},M.prototype.delete=function(e){delete this.map[N(e)]},M.prototype.get=function(e){return e=N(e),this.has(e)?this.map[e]:null},M.prototype.has=function(e){return this.map.hasOwnProperty(N(e))},M.prototype.set=function(e,t){this.map[N(e)]=O(t)},M.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},M.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),I(e)},M.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),I(e)},M.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),I(e)},_.iterable&&(M.prototype[Symbol.iterator]=M.prototype.entries);var W=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function U(e,t){if(!(this instanceof U))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,o,r=(t=t||{}).body;if(e instanceof U){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new M(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,r||null==e._bodyInit||(r=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new M(t.headers)),this.method=(n=t.method||this.method||"GET",o=n.toUpperCase(),W.indexOf(o)>-1?o:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(r),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function X(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),o=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(r))}})),t}function V(e,t){if(!(this instanceof V))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new M(t.headers),this.url=t.url||"",this._initBody(e)}U.prototype.clone=function(){return new U(this,{body:this._bodyInit})},z.call(U.prototype),z.call(V.prototype),V.prototype.clone=function(){return new V(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new M(this.headers),url:this.url})},V.error=function(){var e=new V(null,{status:0,statusText:""});return e.type="error",e};var G=[301,302,303,307,308];V.redirect=function(e,t){if(-1===G.indexOf(t))throw new RangeError("Invalid status code");return new V(null,{status:t,headers:{location:e}})};var K=j.DOMException;try{new K}catch(e){(K=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),K.prototype.constructor=K}function Q(e,t){return new Promise((function(n,o){var r=new U(e,t);if(r.signal&&r.signal.aborted)return o(new K("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,o={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new M,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),o=n.shift().trim();if(o){var r=n.join(":").trim();t.append(o,r)}})),t)};o.url="responseURL"in i?i.responseURL:o.headers.get("X-Request-URL");var r="response"in i?i.response:i.responseText;setTimeout((function(){n(new V(r,o))}),0)},i.onerror=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){o(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){o(new K("Aborted","AbortError"))}),0)},i.open(r.method,function(e){try{return""===e&&j.location.href?j.location.href:e}catch(t){return e}}(r.url),!0),"include"===r.credentials?i.withCredentials=!0:"omit"===r.credentials&&(i.withCredentials=!1),"responseType"in i&&(_.blob?i.responseType="blob":_.arrayBuffer&&r.headers.get("Content-Type")&&-1!==r.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof M?r.headers.forEach((function(e,t){i.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){i.setRequestHeader(e,O(t.headers[e]))})),r.signal&&(r.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&r.signal.removeEventListener("abort",a)}),i.send(void 0===r._bodyInit?null:r._bodyInit)}))}Q.polyfill=!0,j.fetch||(j.fetch=Q,j.Headers=M,j.Request=U,j.Response=V);const Z={init:function(){Array.from||(Array.from=g()),window.Promise||(window.Promise=L)}};function J(e,t,n){var o=(n||{}).atBegin;return function(e,t,n){var o,r=n||{},i=r.noTrailing,a=void 0!==i&&i,s=r.noLeading,l=void 0!==s&&s,c=r.debounceMode,u=void 0===c?void 0:c,d=!1,f=0;function p(){o&&clearTimeout(o)}function h(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var s=this,c=Date.now()-f;function h(){f=Date.now(),t.apply(s,r)}function g(){o=void 0}d||(l||!u||o||h(),p(),void 0===u&&c>e?l?(f=Date.now(),a||(o=setTimeout(u?g:h,e))):h():!0!==a&&(o=setTimeout(u?g:h,void 0===u?e-c:e)))}return h.cancel=function(e){var t=(e||{}).upcomingOnly,n=void 0!==t&&t;p(),d=!n},h}(e,t,{debounceMode:!1!==(void 0!==o&&o)})}var ee=n(955),te=n.n(ee),ne=n(755),oe=n.n(ne);!function(e,t,n,o){function r(e,t){var o,r,i,a=[],s=0;e&&e.isDefaultPrevented()||(e.preventDefault(),t=t||{},e&&e.data&&(t=p(e.data.options,t)),o=t.$target||n(e.currentTarget).trigger("blur"),(i=n.fancybox.getInstance())&&i.$trigger&&i.$trigger.is(o)||(t.selector?a=n(t.selector):(r=o.attr("data-fancybox")||"")?a=(a=e.data?e.data.items:[]).length?a.filter('[data-fancybox="'+r+'"]'):n('[data-fancybox="'+r+'"]'):a=[o],(s=n(a).index(o))<0&&(s=0),(i=n.fancybox.open(a,t,s)).$trigger=o))}if(e.console=e.console||{info:function(e){}},n){if(n.fn.fancybox)return void console.info("fancyBox already initialized");var i={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span>&nbsp;/&nbsp;<span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:n.noop,beforeLoad:n.noop,afterLoad:n.noop,beforeShow:n.noop,afterShow:n.noop,beforeClose:n.noop,afterClose:n.noop,onActivate:n.noop,onDeactivate:n.noop,clickContent:function(e,t){return"image"===e.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(e,t){return"image"===e.type&&"toggleControls"},clickSlide:function(e,t){return"image"===e.type?"toggleControls":"close"},dblclickContent:function(e,t){return"image"===e.type&&"zoom"},dblclickSlide:function(e,t){return"image"===e.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schlie&szlig;en",NEXT:"Weiter",PREV:"Zur&uuml;ck",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es sp&auml;ter nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergr&ouml;&szlig;ern"}}},a=n(e),s=n(t),l=0,c=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},u=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},d=function(){var e,n=t.createElement("fakeelement"),o={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(e in o)if(void 0!==n.style[e])return o[e];return"transitionend"}(),f=function(e){return e&&e.length&&e[0].offsetHeight},p=function(e,t){var o=n.extend(!0,{},e,t);return n.each(t,(function(e,t){n.isArray(t)&&(o[e]=t)})),o},h=function(e){var o,r;return!(!e||e.ownerDocument!==t)&&(n(".fancybox-container").css("pointer-events","none"),o={x:e.getBoundingClientRect().left+e.offsetWidth/2,y:e.getBoundingClientRect().top+e.offsetHeight/2},r=t.elementFromPoint(o.x,o.y)===e,n(".fancybox-container").css("pointer-events",""),r)},g=function(e,t,o){var r=this;r.opts=p({index:o},n.fancybox.defaults),n.isPlainObject(t)&&(r.opts=p(r.opts,t)),n.fancybox.isMobile&&(r.opts=p(r.opts,r.opts.mobile)),r.id=r.opts.id||++l,r.currIndex=parseInt(r.opts.index,10)||0,r.prevIndex=null,r.prevPos=null,r.currPos=0,r.firstRun=!0,r.group=[],r.slides={},r.addContent(e),r.group.length&&r.init()};n.extend(g.prototype,{init:function(){var o,r,i=this,a=i.group[i.currIndex].opts;a.closeExisting&&n.fancybox.close(!0),n("body").addClass("fancybox-active"),!n.fancybox.getInstance()&&!1!==a.hideScrollbar&&!n.fancybox.isMobile&&t.body.scrollHeight>e.innerHeight&&(n("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(e.innerWidth-t.documentElement.clientWidth)+"px;}</style>"),n("body").addClass("compensate-for-scrollbar")),r="",n.each(a.buttons,(function(e,t){r+=a.btnTpl[t]||""})),o=n(i.translate(i,a.baseTpl.replace("{{buttons}}",r).replace("{{arrows}}",a.btnTpl.arrowLeft+a.btnTpl.arrowRight))).attr("id","fancybox-container-"+i.id).addClass(a.baseClass).data("FancyBox",i).appendTo(a.parentEl),i.$refs={container:o},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach((function(e){i.$refs[e]=o.find(".fancybox-"+e)})),i.trigger("onInit"),i.activate(),i.jumpTo(i.currIndex)},translate:function(e,t){var n=e.opts.i18n[e.opts.lang]||e.opts.i18n.en;return t.replace(/\{\{(\w+)\}\}/g,(function(e,t){return void 0===n[t]?e:n[t]}))},addContent:function(e){var t,o=this,r=n.makeArray(e);n.each(r,(function(e,t){var r,i,a,s,l,c={},u={};n.isPlainObject(t)?(c=t,u=t.opts||t):"object"===n.type(t)&&n(t).length?(u=(r=n(t)).data()||{},(u=n.extend(!0,{},u,u.options)).$orig=r,c.src=o.opts.src||u.src||r.attr("href"),c.type||c.src||(c.type="inline",c.src=t)):c={type:"html",src:t+""},c.opts=n.extend(!0,{},o.opts,u),n.isArray(u.buttons)&&(c.opts.buttons=u.buttons),n.fancybox.isMobile&&c.opts.mobile&&(c.opts=p(c.opts,c.opts.mobile)),i=c.type||c.opts.type,s=c.src||"",!i&&s&&((a=s.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(i="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===a[1]?"ogg":a[1]))):s.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?i="image":s.match(/\.(pdf)((\?|#).*)?$/i)?(i="iframe",c=n.extend(!0,c,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===s.charAt(0)&&(i="inline")),i?c.type=i:o.trigger("objectNeedsType",c),c.contentType||(c.contentType=n.inArray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=o.group.length,"auto"==c.opts.smallBtn&&(c.opts.smallBtn=n.inArray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallBtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===o.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===n.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(t,[o,c])),"function"===n.type(o.opts.caption)&&(c.opts.caption=o.opts.caption.apply(t,[o,c])),c.opts.caption instanceof n||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&((l=s.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift())),c.opts.modal&&(c.opts=n.extend(!0,c.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),o.group.push(c)})),Object.keys(o.slides).length&&(o.updateControls(),(t=o.Thumbs)&&t.isActive&&(t.create(),t.focus()))},addEvents:function(){var t=this;t.removeEvents(),t.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(e){e.stopPropagation(),e.preventDefault(),t.close(e)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(e){e.stopPropagation(),e.preventDefault(),t.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(e){e.stopPropagation(),e.preventDefault(),t.next()})).on("click.fb","[data-fancybox-zoom]",(function(e){t[t.isScaledDown()?"scaleToActual":"scaleToFit"]()})),a.on("orientationchange.fb resize.fb",(function(e){e&&e.originalEvent&&"resize"===e.originalEvent.type?(t.requestId&&u(t.requestId),t.requestId=c((function(){t.update(e)}))):(t.current&&"iframe"===t.current.type&&t.$refs.stage.hide(),setTimeout((function(){t.$refs.stage.show(),t.update(e)}),n.fancybox.isMobile?600:250))})),s.on("keydown.fb",(function(e){var o=(n.fancybox?n.fancybox.getInstance():null).current,r=e.keyCode||e.which;if(9!=r)return!o.opts.keyboard||e.ctrlKey||e.altKey||e.shiftKey||n(e.target).is("input,textarea,video,audio,select")?void 0:8===r||27===r?(e.preventDefault(),void t.close(e)):37===r||38===r?(e.preventDefault(),void t.previous()):39===r||40===r?(e.preventDefault(),void t.next()):void t.trigger("afterKeydown",e,r);o.opts.trapFocus&&t.focus(e)})),t.group[t.currIndex].opts.idleTime&&(t.idleSecondsCounter=0,s.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(e){t.idleSecondsCounter=0,t.isIdle&&t.showControls(),t.isIdle=!1})),t.idleInterval=e.setInterval((function(){++t.idleSecondsCounter>=t.group[t.currIndex].opts.idleTime&&!t.isDragging&&(t.isIdle=!0,t.idleSecondsCounter=0,t.hideControls())}),1e3))},removeEvents:function(){var t=this;a.off("orientationchange.fb resize.fb"),s.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),t.idleInterval&&(e.clearInterval(t.idleInterval),t.idleInterval=null)},previous:function(e){return this.jumpTo(this.currPos-1,e)},next:function(e){return this.jumpTo(this.currPos+1,e)},jumpTo:function(e,t){var o,r,i,a,s,l,c,u,d,p=this,h=p.group.length;if(!(p.isDragging||p.isClosing||p.isAnimating&&p.firstRun)){if(e=parseInt(e,10),!(i=p.current?p.current.opts.loop:p.opts.loop)&&(e<0||e>=h))return!1;if(o=p.firstRun=!Object.keys(p.slides).length,s=p.current,p.prevIndex=p.currIndex,p.prevPos=p.currPos,a=p.createSlide(e),h>1&&((i||a.index<h-1)&&p.createSlide(e+1),(i||a.index>0)&&p.createSlide(e-1)),p.current=a,p.currIndex=a.index,p.currPos=a.pos,p.trigger("beforeShow",o),p.updateControls(),a.forcedDuration=void 0,n.isNumeric(t)?a.forcedDuration=t:t=a.opts[o?"animationDuration":"transitionDuration"],t=parseInt(t,10),r=p.isMoved(a),a.$slide.addClass("fancybox-slide--current"),o)return a.opts.animationEffect&&t&&p.$refs.container.css("transition-duration",t+"ms"),p.$refs.container.addClass("fancybox-is-open").trigger("focus"),p.loadSlide(a),void p.preload("image");l=n.fancybox.getTranslate(s.$slide),c=n.fancybox.getTranslate(p.$refs.stage),n.each(p.slides,(function(e,t){n.fancybox.stop(t.$slide,!0)})),s.pos!==a.pos&&(s.isComplete=!1),s.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),r?(d=l.left-(s.pos*l.width+s.pos*s.opts.gutter),n.each(p.slides,(function(e,o){o.$slide.removeClass("fancybox-animated").removeClass((function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")}));var r=o.pos*l.width+o.pos*o.opts.gutter;n.fancybox.setTranslate(o.$slide,{top:0,left:r-c.left+d}),o.pos!==a.pos&&o.$slide.addClass("fancybox-slide--"+(o.pos>a.pos?"next":"previous")),f(o.$slide),n.fancybox.animate(o.$slide,{top:0,left:(o.pos-a.pos)*l.width+(o.pos-a.pos)*o.opts.gutter},t,(function(){o.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),o.pos===p.currPos&&p.complete()}))}))):t&&a.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+a.opts.transitionEffect,s.$slide.addClass("fancybox-slide--"+(s.pos>a.pos?"next":"previous")),n.fancybox.animate(s.$slide,u,t,(function(){s.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")}),!1)),a.isLoaded?p.revealContent(a):p.loadSlide(a),p.preload("image")}},createSlide:function(e){var t,o,r=this;return o=(o=e%r.group.length)<0?r.group.length+o:o,!r.slides[e]&&r.group[o]&&(t=n('<div class="fancybox-slide"></div>').appendTo(r.$refs.stage),r.slides[e]=n.extend(!0,{},r.group[o],{pos:e,$slide:t,isLoaded:!1}),r.updateSlide(r.slides[e])),r.slides[e]},scaleToActual:function(e,t,o){var r,i,a,s,l,c=this,u=c.current,d=u.$content,f=n.fancybox.getTranslate(u.$slide).width,p=n.fancybox.getTranslate(u.$slide).height,h=u.width,g=u.height;c.isAnimating||c.isMoved()||!d||"image"!=u.type||!u.isLoaded||u.hasError||(c.isAnimating=!0,n.fancybox.stop(d),e=void 0===e?.5*f:e,t=void 0===t?.5*p:t,(r=n.fancybox.getTranslate(d)).top-=n.fancybox.getTranslate(u.$slide).top,r.left-=n.fancybox.getTranslate(u.$slide).left,s=h/r.width,l=g/r.height,i=.5*f-.5*h,a=.5*p-.5*g,h>f&&((i=r.left*s-(e*s-e))>0&&(i=0),i<f-h&&(i=f-h)),g>p&&((a=r.top*l-(t*l-t))>0&&(a=0),a<p-g&&(a=p-g)),c.updateCursor(h,g),n.fancybox.animate(d,{top:a,left:i,scaleX:s,scaleY:l},o||366,(function(){c.isAnimating=!1})),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(e){var t,o=this,r=o.current,i=r.$content;o.isAnimating||o.isMoved()||!i||"image"!=r.type||!r.isLoaded||r.hasError||(o.isAnimating=!0,n.fancybox.stop(i),t=o.getFitPos(r),o.updateCursor(t.width,t.height),n.fancybox.animate(i,{top:t.top,left:t.left,scaleX:t.width/i.width(),scaleY:t.height/i.height()},e||366,(function(){o.isAnimating=!1})))},getFitPos:function(e){var t,o,r,i,a=e.$content,s=e.$slide,l=e.width||e.opts.width,c=e.height||e.opts.height,u={};return!!(e.isLoaded&&a&&a.length)&&(t=n.fancybox.getTranslate(this.$refs.stage).width,o=n.fancybox.getTranslate(this.$refs.stage).height,t-=parseFloat(s.css("paddingLeft"))+parseFloat(s.css("paddingRight"))+parseFloat(a.css("marginLeft"))+parseFloat(a.css("marginRight")),o-=parseFloat(s.css("paddingTop"))+parseFloat(s.css("paddingBottom"))+parseFloat(a.css("marginTop"))+parseFloat(a.css("marginBottom")),l&&c||(l=t,c=o),(l*=r=Math.min(1,t/l,o/c))>t-.5&&(l=t),(c*=r)>o-.5&&(c=o),"image"===e.type?(u.top=Math.floor(.5*(o-c))+parseFloat(s.css("paddingTop")),u.left=Math.floor(.5*(t-l))+parseFloat(s.css("paddingLeft"))):"video"===e.contentType&&(c>l/(i=e.opts.width&&e.opts.height?l/c:e.opts.ratio||16/9)?c=l/i:l>c*i&&(l=c*i)),u.width=l,u.height=c,u)},update:function(e){var t=this;n.each(t.slides,(function(n,o){t.updateSlide(o,e)}))},updateSlide:function(e,t){var o=this,r=e&&e.$content,i=e.width||e.opts.width,a=e.height||e.opts.height,s=e.$slide;o.adjustCaption(e),r&&(i||a||"video"===e.contentType)&&!e.hasError&&(n.fancybox.stop(r),n.fancybox.setTranslate(r,o.getFitPos(e)),e.pos===o.currPos&&(o.isAnimating=!1,o.updateCursor())),o.adjustLayout(e),s.length&&(s.trigger("refresh"),e.pos===o.currPos&&o.$refs.toolbar.add(o.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",s.get(0).scrollHeight>s.get(0).clientHeight)),o.trigger("onUpdate",e,t)},centerSlide:function(e){var t=this,o=t.current,r=o.$slide;!t.isClosing&&o&&(r.siblings().css({transform:"",opacity:""}),r.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),n.fancybox.animate(r,{top:0,left:0,opacity:1},void 0===e?0:e,(function(){r.css({transform:"",opacity:""}),o.isComplete||t.complete()}),!1))},isMoved:function(e){var t,o,r=e||this.current;return!!r&&(o=n.fancybox.getTranslate(this.$refs.stage),t=n.fancybox.getTranslate(r.$slide),!r.$slide.hasClass("fancybox-animated")&&(Math.abs(t.top-o.top)>.5||Math.abs(t.left-o.left)>.5))},updateCursor:function(e,t){var o,r,i=this,a=i.current,s=i.$refs.container;a&&!i.isClosing&&i.Guestures&&(s.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),r=!!(o=i.canPan(e,t))||i.isZoomable(),s.toggleClass("fancybox-is-zoomable",r),n("[data-fancybox-zoom]").prop("disabled",!r),o?s.addClass("fancybox-can-pan"):r&&("zoom"===a.opts.clickContent||n.isFunction(a.opts.clickContent)&&"zoom"==a.opts.clickContent(a))?s.addClass("fancybox-can-zoomIn"):a.opts.touch&&(a.opts.touch.vertical||i.group.length>1)&&"video"!==a.contentType&&s.addClass("fancybox-can-swipe"))},isZoomable:function(){var e,t=this,n=t.current;if(n&&!t.isClosing&&"image"===n.type&&!n.hasError){if(!n.isLoaded)return!0;if((e=t.getFitPos(n))&&(n.width>e.width||n.height>e.height))return!0}return!1},isScaledDown:function(e,t){var o=!1,r=this.current,i=r.$content;return void 0!==e&&void 0!==t?o=e<r.width&&t<r.height:i&&(o=(o=n.fancybox.getTranslate(i)).width<r.width&&o.height<r.height),o},canPan:function(e,t){var o=this.current,r=null,i=!1;return"image"===o.type&&(o.isComplete||e&&t)&&!o.hasError&&(i=this.getFitPos(o),void 0!==e&&void 0!==t?r={width:e,height:t}:o.isComplete&&(r=n.fancybox.getTranslate(o.$content)),r&&i&&(i=Math.abs(r.width-i.width)>1.5||Math.abs(r.height-i.height)>1.5)),i},loadSlide:function(e){var t,o,r,i=this;if(!e.isLoading&&!e.isLoaded){if(e.isLoading=!0,!1===i.trigger("beforeLoad",e))return e.isLoading=!1,!1;switch(t=e.type,(o=e.$slide).off("refresh").trigger("onReset").addClass(e.opts.slideClass),t){case"image":i.setImage(e);break;case"iframe":i.setIframe(e);break;case"html":i.setContent(e,e.src||e.content);break;case"video":i.setContent(e,e.opts.video.tpl.replace(/\{\{src\}\}/gi,e.src).replace("{{format}}",e.opts.videoFormat||e.opts.video.format||"").replace("{{poster}}",e.thumb||""));break;case"inline":n(e.src).length?i.setContent(e,n(e.src)):i.setError(e);break;case"ajax":i.showLoading(e),r=n.ajax(n.extend({},e.opts.ajax.settings,{url:e.src,success:function(t,n){"success"===n&&i.setContent(e,t)},error:function(t,n){t&&"abort"!==n&&i.setError(e)}})),o.one("onReset",(function(){r.abort()}));break;default:i.setError(e)}return!0}},setImage:function(e){var o,r=this;setTimeout((function(){var t=e.$image;r.isClosing||!e.isLoading||t&&t.length&&t[0].complete||e.hasError||r.showLoading(e)}),50),r.checkSrcset(e),e.$content=n('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(e.$slide.addClass("fancybox-slide--image")),!1!==e.opts.preload&&e.opts.width&&e.opts.height&&e.thumb&&(e.width=e.opts.width,e.height=e.opts.height,(o=t.createElement("img")).onerror=function(){n(this).remove(),e.$ghost=null},o.onload=function(){r.afterLoad(e)},e.$ghost=n(o).addClass("fancybox-image").appendTo(e.$content).attr("src",e.thumb)),r.setBigImage(e)},checkSrcset:function(t){var n,o,r,i,a=t.opts.srcset||t.opts.image.srcset;if(a){r=e.devicePixelRatio||1,i=e.innerWidth*r,o=a.split(",").map((function(e){var t={};return e.trim().split(/\s+/).forEach((function(e,n){var o=parseInt(e.substring(0,e.length-1),10);if(0===n)return t.url=e;o&&(t.value=o,t.postfix=e[e.length-1])})),t})),o.sort((function(e,t){return e.value-t.value}));for(var s=0;s<o.length;s++){var l=o[s];if("w"===l.postfix&&l.value>=i||"x"===l.postfix&&l.value>=r){n=l;break}}!n&&o.length&&(n=o[o.length-1]),n&&(t.src=n.url,t.width&&t.height&&"w"==n.postfix&&(t.height=t.width/t.height*n.value,t.width=n.value),t.opts.srcset=a)}},setBigImage:function(e){var o=this,r=t.createElement("img"),i=n(r);e.$image=i.one("error",(function(){o.setError(e)})).one("load",(function(){var t;e.$ghost||(o.resolveImageSlideSize(e,this.naturalWidth,this.naturalHeight),o.afterLoad(e)),o.isClosing||(e.opts.srcset&&((t=e.opts.sizes)&&"auto"!==t||(t=(e.width/e.height>1&&a.width()/a.height()>1?"100":Math.round(e.width/e.height*100))+"vw"),i.attr("sizes",t).attr("srcset",e.opts.srcset)),e.$ghost&&setTimeout((function(){e.$ghost&&!o.isClosing&&e.$ghost.hide()}),Math.min(300,Math.max(1e3,e.height/1600))),o.hideLoading(e))})).addClass("fancybox-image").attr("src",e.src).appendTo(e.$content),(r.complete||"complete"==r.readyState)&&i.naturalWidth&&i.naturalHeight?i.trigger("load"):r.error&&i.trigger("error")},resolveImageSlideSize:function(e,t,n){var o=parseInt(e.opts.width,10),r=parseInt(e.opts.height,10);e.width=t,e.height=n,o>0&&(e.width=o,e.height=Math.floor(o*n/t)),r>0&&(e.width=Math.floor(r*t/n),e.height=r)},setIframe:function(e){var t,o=this,r=e.opts.iframe,i=e.$slide;e.$content=n('<div class="fancybox-content'+(r.preload?" fancybox-is-hidden":"")+'"></div>').css(r.css).appendTo(i),i.addClass("fancybox-slide--"+e.contentType),e.$iframe=t=n(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(e.$content),r.preload?(o.showLoading(e),t.on("load.fb error.fb",(function(t){this.isReady=1,e.$slide.trigger("refresh"),o.afterLoad(e)})),i.on("refresh.fb",(function(){var n,o=e.$content,a=r.css.width,s=r.css.height;if(1===t[0].isReady){try{n=t.contents().find("body")}catch(e){}n&&n.length&&n.children().length&&(i.css("overflow","visible"),o.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===a&&(a=Math.ceil(Math.max(n[0].clientWidth,n.outerWidth(!0)))),o.css("width",a||"").css("max-width",""),void 0===s&&(s=Math.ceil(Math.max(n[0].clientHeight,n.outerHeight(!0)))),o.css("height",s||""),i.css("overflow","auto")),o.removeClass("fancybox-is-hidden")}}))):o.afterLoad(e),t.attr("src",e.src),i.one("onReset",(function(){try{n(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(e){}n(this).off("refresh.fb").empty(),e.isLoaded=!1,e.isRevealed=!1}))},setContent:function(e,t){var o=this;o.isClosing||(o.hideLoading(e),e.$content&&n.fancybox.stop(e.$content),e.$slide.empty(),function(e){return e&&e.hasOwnProperty&&e instanceof n}(t)&&t.parent().length?((t.hasClass("fancybox-content")||t.parent().hasClass("fancybox-content"))&&t.parents(".fancybox-slide").trigger("onReset"),e.$placeholder=n("<div>").hide().insertAfter(t),t.css("display","inline-block")):e.hasError||("string"===n.type(t)&&(t=n("<div>").append(n.trim(t)).contents()),e.opts.filter&&(t=n("<div>").html(t).find(e.opts.filter))),e.$slide.one("onReset",(function(){n(this).find("video,audio").trigger("pause"),e.$placeholder&&(e.$placeholder.after(t.removeClass("fancybox-content").hide()).remove(),e.$placeholder=null),e.$smallBtn&&(e.$smallBtn.remove(),e.$smallBtn=null),e.hasError||(n(this).empty(),e.isLoaded=!1,e.isRevealed=!1)})),n(t).appendTo(e.$slide),n(t).is("video,audio")&&(n(t).addClass("fancybox-video"),n(t).wrap("<div></div>"),e.contentType="video",e.opts.width=e.opts.width||n(t).attr("width"),e.opts.height=e.opts.height||n(t).attr("height")),e.$content=e.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),e.$content.siblings().hide(),e.$content.length||(e.$content=e.$slide.wrapInner("<div></div>").children().first()),e.$content.addClass("fancybox-content"),e.$slide.addClass("fancybox-slide--"+e.contentType),o.afterLoad(e))},setError:function(e){e.hasError=!0,e.$slide.trigger("onReset").removeClass("fancybox-slide--"+e.contentType).addClass("fancybox-slide--error"),e.contentType="html",this.setContent(e,this.translate(e,e.opts.errorTpl)),e.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(e){var t=this;(e=e||t.current)&&!e.$spinner&&(e.$spinner=n(t.translate(t,t.opts.spinnerTpl)).appendTo(e.$slide).hide().fadeIn("fast"))},hideLoading:function(e){(e=e||this.current)&&e.$spinner&&(e.$spinner.stop().remove(),delete e.$spinner)},afterLoad:function(e){var t=this;t.isClosing||(e.isLoading=!1,e.isLoaded=!0,t.trigger("afterLoad",e),t.hideLoading(e),!e.opts.smallBtn||e.$smallBtn&&e.$smallBtn.length||(e.$smallBtn=n(t.translate(e,e.opts.btnTpl.smallBtn)).appendTo(e.$content)),e.opts.protect&&e.$content&&!e.hasError&&(e.$content.on("contextmenu.fb",(function(e){return 2==e.button&&e.preventDefault(),!0})),"image"===e.type&&n('<div class="fancybox-spaceball"></div>').appendTo(e.$content)),t.adjustCaption(e),t.adjustLayout(e),e.pos===t.currPos&&t.updateCursor(),t.revealContent(e))},adjustCaption:function(e){var t,n=this,o=e||n.current,r=o.opts.caption,i=o.opts.preventCaptionOverlap,a=n.$refs.caption,s=!1;a.toggleClass("fancybox-caption--separate",i),i&&r&&r.length&&(o.pos!==n.currPos?((t=a.clone().appendTo(a.parent())).children().eq(0).empty().html(r),s=t.outerHeight(!0),t.empty().remove()):n.$caption&&(s=n.$caption.outerHeight(!0)),o.$slide.css("padding-bottom",s||""))},adjustLayout:function(e){var t,n,o,r,i=e||this.current;i.isLoaded&&!0!==i.opts.disableLayoutFix&&(i.$content.css("margin-bottom",""),i.$content.outerHeight()>i.$slide.height()+.5&&(o=i.$slide[0].style["padding-bottom"],r=i.$slide.css("padding-bottom"),parseFloat(r)>0&&(t=i.$slide[0].scrollHeight,i.$slide.css("padding-bottom",0),Math.abs(t-i.$slide[0].scrollHeight)<1&&(n=r),i.$slide.css("padding-bottom",o))),i.$content.css("margin-bottom",n))},revealContent:function(e){var t,o,r,i,a=this,s=e.$slide,l=!1,c=!1,u=a.isMoved(e),d=e.isRevealed;return e.isRevealed=!0,t=e.opts[a.firstRun?"animationEffect":"transitionEffect"],r=e.opts[a.firstRun?"animationDuration":"transitionDuration"],r=parseInt(void 0===e.forcedDuration?r:e.forcedDuration,10),!u&&e.pos===a.currPos&&r||(t=!1),"zoom"===t&&(e.pos===a.currPos&&r&&"image"===e.type&&!e.hasError&&(c=a.getThumbPos(e))?l=a.getFitPos(e):t="fade"),"zoom"===t?(a.isAnimating=!0,l.scaleX=l.width/c.width,l.scaleY=l.height/c.height,"auto"==(i=e.opts.zoomOpacity)&&(i=Math.abs(e.width/e.height-c.width/c.height)>.1),i&&(c.opacity=.1,l.opacity=1),n.fancybox.setTranslate(e.$content.removeClass("fancybox-is-hidden"),c),f(e.$content),void n.fancybox.animate(e.$content,l,r,(function(){a.isAnimating=!1,a.complete()}))):(a.updateSlide(e),t?(n.fancybox.stop(s),o="fancybox-slide--"+(e.pos>=a.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+t,s.addClass(o).removeClass("fancybox-slide--current"),e.$content.removeClass("fancybox-is-hidden"),f(s),"image"!==e.type&&e.$content.hide().show(0),void n.fancybox.animate(s,"fancybox-slide--current",r,(function(){s.removeClass(o).css({transform:"",opacity:""}),e.pos===a.currPos&&a.complete()}),!0)):(e.$content.removeClass("fancybox-is-hidden"),d||!u||"image"!==e.type||e.hasError||e.$content.hide().fadeIn("fast"),void(e.pos===a.currPos&&a.complete())))},getThumbPos:function(e){var t,o,r,i,a,s=!1,l=e.$thumb;return!(!l||!h(l[0]))&&(t=n.fancybox.getTranslate(l),o=parseFloat(l.css("border-top-width")||0),r=parseFloat(l.css("border-right-width")||0),i=parseFloat(l.css("border-bottom-width")||0),a=parseFloat(l.css("border-left-width")||0),s={top:t.top+o,left:t.left+a,width:t.width-r-a,height:t.height-o-i,scaleX:1,scaleY:1},t.width>0&&t.height>0&&s)},complete:function(){var e,t=this,o=t.current,r={};!t.isMoved()&&o.isLoaded&&(o.isComplete||(o.isComplete=!0,o.$slide.siblings().trigger("onReset"),t.preload("inline"),f(o.$slide),o.$slide.addClass("fancybox-slide--complete"),n.each(t.slides,(function(e,o){o.pos>=t.currPos-1&&o.pos<=t.currPos+1?r[o.pos]=o:o&&(n.fancybox.stop(o.$slide),o.$slide.off().remove())})),t.slides=r),t.isAnimating=!1,t.updateCursor(),t.trigger("afterShow"),o.opts.video.autoStart&&o.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),t.next()})),o.opts.autoFocus&&"html"===o.contentType&&((e=o.$content.find("input[autofocus]:enabled:visible:first")).length?e.trigger("focus"):t.focus(null,!0)),o.$slide.scrollTop(0).scrollLeft(0))},preload:function(e){var t,n,o=this;o.group.length<2||(n=o.slides[o.currPos+1],(t=o.slides[o.currPos-1])&&t.type===e&&o.loadSlide(t),n&&n.type===e&&o.loadSlide(n))},focus:function(e,o){var r,i,a=this,s=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");a.isClosing||((r=(r=!e&&a.current&&a.current.isComplete?a.current.$slide.find("*:visible"+(o?":not(.fancybox-close-small)":"")):a.$refs.container.find("*:visible")).filter(s).filter((function(){return"hidden"!==n(this).css("visibility")&&!n(this).hasClass("disabled")}))).length?(i=r.index(t.activeElement),e&&e.shiftKey?(i<0||0==i)&&(e.preventDefault(),r.eq(r.length-1).trigger("focus")):(i<0||i==r.length-1)&&(e&&e.preventDefault(),r.eq(0).trigger("focus"))):a.$refs.container.trigger("focus"))},activate:function(){var e=this;n(".fancybox-container").each((function(){var t=n(this).data("FancyBox");t&&t.id!==e.id&&!t.isClosing&&(t.trigger("onDeactivate"),t.removeEvents(),t.isVisible=!1)})),e.isVisible=!0,(e.current||e.isIdle)&&(e.update(),e.updateControls()),e.trigger("onActivate"),e.addEvents()},close:function(e,t){var o,r,i,a,s,l,u,d=this,p=d.current,h=function(){d.cleanUp(e)};return!(d.isClosing||(d.isClosing=!0,!1===d.trigger("beforeClose",e)?(d.isClosing=!1,c((function(){d.update()})),1):(d.removeEvents(),i=p.$content,o=p.opts.animationEffect,r=n.isNumeric(t)?t:o?p.opts.animationDuration:0,p.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==e?n.fancybox.stop(p.$slide):o=!1,p.$slide.siblings().trigger("onReset").remove(),r&&d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",r+"ms"),d.hideLoading(p),d.hideControls(!0),d.updateCursor(),"zoom"!==o||i&&r&&"image"===p.type&&!d.isMoved()&&!p.hasError&&(u=d.getThumbPos(p))||(o="fade"),"zoom"===o?(n.fancybox.stop(i),a=n.fancybox.getTranslate(i),l={top:a.top,left:a.left,scaleX:a.width/u.width,scaleY:a.height/u.height,width:u.width,height:u.height},s=p.opts.zoomOpacity,"auto"==s&&(s=Math.abs(p.width/p.height-u.width/u.height)>.1),s&&(u.opacity=0),n.fancybox.setTranslate(i,l),f(i),n.fancybox.animate(i,u,r,h),0):(o&&r?n.fancybox.animate(p.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+o,r,h):!0===e?setTimeout(h,r):h(),0))))},cleanUp:function(t){var o,r,i,a=this,s=a.current.opts.$orig;a.current.$slide.trigger("onReset"),a.$refs.container.empty().remove(),a.trigger("afterClose",t),a.current.opts.backFocus&&(s&&s.length&&s.is(":visible")||(s=a.$trigger),s&&s.length&&(r=e.scrollX,i=e.scrollY,s.trigger("focus"),n("html, body").scrollTop(i).scrollLeft(r))),a.current=null,(o=n.fancybox.getInstance())?o.activate():(n("body").removeClass("fancybox-active compensate-for-scrollbar"),n("#fancybox-style-noscroll").remove())},trigger:function(e,t){var o,r=Array.prototype.slice.call(arguments,1),i=this,a=t&&t.opts?t:i.current;if(a?r.unshift(a):a=i,r.unshift(i),n.isFunction(a.opts[e])&&(o=a.opts[e].apply(a,r)),!1===o)return o;"afterClose"!==e&&i.$refs?i.$refs.container.trigger(e+".fb",r):s.trigger(e+".fb",r)},updateControls:function(){var e=this,o=e.current,r=o.index,i=e.$refs.container,a=e.$refs.caption,s=o.opts.caption;o.$slide.trigger("refresh"),s&&s.length?(e.$caption=a,a.children().eq(0).html(s)):e.$caption=null,e.hasHiddenControls||e.isIdle||e.showControls(),i.find("[data-fancybox-count]").html(e.group.length),i.find("[data-fancybox-index]").html(r+1),i.find("[data-fancybox-prev]").prop("disabled",!o.opts.loop&&r<=0),i.find("[data-fancybox-next]").prop("disabled",!o.opts.loop&&r>=e.group.length-1),"image"===o.type?i.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",o.opts.image.src||o.src).show():o.opts.toolbar&&i.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),n(t.activeElement).is(":hidden,[disabled]")&&e.$refs.container.trigger("focus")},hideControls:function(e){var t=["infobar","toolbar","nav"];!e&&this.current.opts.preventCaptionOverlap||t.push("caption"),this.$refs.container.removeClass(t.map((function(e){return"fancybox-show-"+e})).join(" ")),this.hasHiddenControls=!0},showControls:function(){var e=this,t=e.current?e.current.opts:e.opts,n=e.$refs.container;e.hasHiddenControls=!1,e.idleSecondsCounter=0,n.toggleClass("fancybox-show-toolbar",!(!t.toolbar||!t.buttons)).toggleClass("fancybox-show-infobar",!!(t.infobar&&e.group.length>1)).toggleClass("fancybox-show-caption",!!e.$caption).toggleClass("fancybox-show-nav",!!(t.arrows&&e.group.length>1)).toggleClass("fancybox-is-modal",!!t.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),n.fancybox={version:"3.5.7",defaults:i,getInstance:function(e){var t=n('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),o=Array.prototype.slice.call(arguments,1);return t instanceof g&&("string"===n.type(e)?t[e].apply(t,o):"function"===n.type(e)&&e.apply(t,o),t)},open:function(e,t,n){return new g(e,t,n)},close:function(e){var t=this.getInstance();t&&(t.close(),!0===e&&this.close(e))},destroy:function(){this.close(!0),s.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var n=t.createElement("div");return e.getComputedStyle&&e.getComputedStyle(n)&&e.getComputedStyle(n).getPropertyValue("transform")&&!(t.documentMode&&t.documentMode<11)}(),getTranslate:function(e){var t;return!(!e||!e.length)&&{top:(t=e[0].getBoundingClientRect()).top||0,left:t.left||0,width:t.width,height:t.height,opacity:parseFloat(e.css("opacity"))}},setTranslate:function(e,t){var n="",o={};if(e&&t)return void 0===t.left&&void 0===t.top||(n=(void 0===t.left?e.position().left:t.left)+"px, "+(void 0===t.top?e.position().top:t.top)+"px",n=this.use3d?"translate3d("+n+", 0px)":"translate("+n+")"),void 0!==t.scaleX&&void 0!==t.scaleY?n+=" scale("+t.scaleX+", "+t.scaleY+")":void 0!==t.scaleX&&(n+=" scaleX("+t.scaleX+")"),n.length&&(o.transform=n),void 0!==t.opacity&&(o.opacity=t.opacity),void 0!==t.width&&(o.width=t.width),void 0!==t.height&&(o.height=t.height),e.css(o)},animate:function(e,t,o,r,i){var a,s=this;n.isFunction(o)&&(r=o,o=null),s.stop(e),a=s.getTranslate(e),e.on(d,(function(l){(!l||!l.originalEvent||e.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(s.stop(e),n.isNumeric(o)&&e.css("transition-duration",""),n.isPlainObject(t)?void 0!==t.scaleX&&void 0!==t.scaleY&&s.setTranslate(e,{top:t.top,left:t.left,width:a.width*t.scaleX,height:a.height*t.scaleY,scaleX:1,scaleY:1}):!0!==i&&e.removeClass(t),n.isFunction(r)&&r(l))})),n.isNumeric(o)&&e.css("transition-duration",o+"ms"),n.isPlainObject(t)?(void 0!==t.scaleX&&void 0!==t.scaleY&&(delete t.width,delete t.height,e.parent().hasClass("fancybox-slide--image")&&e.parent().addClass("fancybox-is-scaling")),n.fancybox.setTranslate(e,t)):e.addClass(t),e.data("timer",setTimeout((function(){e.trigger(d)}),o+33))},stop:function(e,t){e&&e.length&&(clearTimeout(e.data("timer")),t&&e.trigger(d),e.off(d).css("transition-duration",""),e.parent().removeClass("fancybox-is-scaling"))}},n.fn.fancybox=function(e){var t;return(t=(e=e||{}).selector||!1)?n("body").off("click.fb-start",t).on("click.fb-start",t,{options:e},r):this.off("click.fb-start").on("click.fb-start",{items:this,options:e},r),this},s.on("click.fb-start","[data-fancybox]",r),s.on("click.fb-start","[data-fancybox-trigger]",(function(e){n('[data-fancybox="'+n(this).attr("data-fancybox-trigger")+'"]').eq(n(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:n(this)})})),function(){var e=null;s.on("mousedown mouseup focus blur",".fancybox-button",(function(t){switch(t.type){case"mousedown":e=n(this);break;case"mouseup":e=null;break;case"focusin":n(".fancybox-button").removeClass("fancybox-focus"),n(this).is(e)||n(this).is("[disabled]")||n(this).addClass("fancybox-focus");break;case"focusout":n(".fancybox-button").removeClass("fancybox-focus")}}))}()}}(window,document,oe()),function(e){var t={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/?ll="+(e[9]?e[9]+"&z="+Math.floor(e[10])+(e[12]?e[12].replace(/^\//,"&"):""):e[12]+"").replace(/\?/,"&")+"&output="+(e[12]&&e[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(e){return"//maps.google."+e[2]+"/maps?q="+e[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},n=function(t,n,o){if(t)return o=o||"","object"===e.type(o)&&(o=e.param(o,!0)),e.each(n,(function(e,n){t=t.replace("$"+e,n||"")})),o.length&&(t+=(t.indexOf("?")>0?"&":"?")+o),t};e(document).on("objectNeedsType.fb",(function(o,r,i){var a,s,l,c,u,d,f,p=i.src||"",h=!1;a=e.extend(!0,{},t,i.opts.media),e.each(a,(function(t,o){if(l=p.match(o.matcher)){if(h=o.type,f=t,d={},o.paramPlace&&l[o.paramPlace]){"?"==(u=l[o.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var r=0;r<u.length;++r){var a=u[r].split("=",2);2==a.length&&(d[a[0]]=decodeURIComponent(a[1].replace(/\+/g," ")))}}return c=e.extend(!0,{},o.params,i.opts[t],d),p="function"===e.type(o.url)?o.url.call(this,l,c,i):n(o.url,l,c),s="function"===e.type(o.thumb)?o.thumb.call(this,l,c,i):n(o.thumb,l),"youtube"===t?p=p.replace(/&t=((\d+)m)?(\d+)s/,(function(e,t,n,o){return"&start="+((n?60*parseInt(n,10):0)+parseInt(o,10))})):"vimeo"===t&&(p=p.replace("&%23","#")),!1}})),h?(i.opts.thumb||i.opts.$thumb&&i.opts.$thumb.length||(i.opts.thumb=s),"iframe"===h&&(i.opts=e.extend(!0,i.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),e.extend(i,{type:h,src:p,origSrc:i.src,contentSource:f,contentType:"image"===h?"image":"gmap_place"==f||"gmap_search"==f?"map":"video"})):p&&(i.type=i.opts.defaultType)}));var o={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(e){var t,n=this;this[e].loaded?setTimeout((function(){n.done(e)})):this[e].loading||(this[e].loading=!0,(t=document.createElement("script")).type="text/javascript",t.src=this[e].src,"youtube"===e?window.onYouTubeIframeAPIReady=function(){n[e].loaded=!0,n.done(e)}:t.onload=function(){n[e].loaded=!0,n.done(e)},document.body.appendChild(t))},done:function(t){var n,o;"youtube"===t&&delete window.onYouTubeIframeAPIReady,(n=e.fancybox.getInstance())&&(o=n.current.$content.find("iframe"),"youtube"===t&&void 0!==YT&&YT?new YT.Player(o.attr("id"),{events:{onStateChange:function(e){0==e.data&&n.next()}}}):"vimeo"===t&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(o).on("ended",(function(){n.next()})))}};e(document).on({"afterShow.fb":function(e,t,n){t.group.length>1&&("youtube"===n.contentSource||"vimeo"===n.contentSource)&&o.load(n.contentSource)}})}(oe()),function(e,t,n){var o=e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||function(t){return e.setTimeout(t,1e3/60)},r=e.cancelAnimationFrame||e.webkitCancelAnimationFrame||e.mozCancelAnimationFrame||e.oCancelAnimationFrame||function(t){e.clearTimeout(t)},i=function(t){var n=[];for(var o in t=(t=t.originalEvent||t||e.e).touches&&t.touches.length?t.touches:t.changedTouches&&t.changedTouches.length?t.changedTouches:[t])t[o].pageX?n.push({x:t[o].pageX,y:t[o].pageY}):t[o].clientX&&n.push({x:t[o].clientX,y:t[o].clientY});return n},a=function(e,t,n){return t&&e?"x"===n?e.x-t.x:"y"===n?e.y-t.y:Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2)):0},s=function(e){if(e.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||n.isFunction(e.get(0).onclick)||e.data("selectable"))return!0;for(var t=0,o=e[0].attributes,r=o.length;t<r;t++)if("data-fancybox-"===o[t].nodeName.substr(0,14))return!0;return!1},l=function(t){var n=e.getComputedStyle(t)["overflow-y"],o=e.getComputedStyle(t)["overflow-x"],r=("scroll"===n||"auto"===n)&&t.scrollHeight>t.clientHeight,i=("scroll"===o||"auto"===o)&&t.scrollWidth>t.clientWidth;return r||i},c=function(e){for(var t=!1;!(t=l(e.get(0)))&&((e=e.parent()).length&&!e.hasClass("fancybox-stage")&&!e.is("body")););return t},u=function(e){var t=this;t.instance=e,t.$bg=e.$refs.bg,t.$stage=e.$refs.stage,t.$container=e.$refs.container,t.destroy(),t.$container.on("touchstart.fb.touch mousedown.fb.touch",n.proxy(t,"ontouchstart"))};u.prototype.destroy=function(){var e=this;e.$container.off(".fb.touch"),n(t).off(".fb.touch"),e.requestId&&(r(e.requestId),e.requestId=null),e.tapped&&(clearTimeout(e.tapped),e.tapped=null)},u.prototype.ontouchstart=function(o){var r=this,l=n(o.target),u=r.instance,d=u.current,f=d.$slide,p=d.$content,h="touchstart"==o.type;if(h&&r.$container.off("mousedown.fb.touch"),(!o.originalEvent||2!=o.originalEvent.button)&&f.length&&l.length&&!s(l)&&!s(l.parent())&&(l.is("img")||!(o.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!d||u.isAnimating||d.$slide.hasClass("fancybox-animated"))return o.stopPropagation(),void o.preventDefault();r.realPoints=r.startPoints=i(o),r.startPoints.length&&(d.touch&&o.stopPropagation(),r.startEvent=o,r.canTap=!0,r.$target=l,r.$content=p,r.opts=d.opts.touch,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.isScrolling=!1,r.canPan=u.canPan(),r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.canvasWidth=Math.round(f[0].clientWidth),r.canvasHeight=Math.round(f[0].clientHeight),r.contentLastPos=null,r.contentStartPos=n.fancybox.getTranslate(r.$content)||{top:0,left:0},r.sliderStartPos=n.fancybox.getTranslate(f),r.stagePos=n.fancybox.getTranslate(u.$refs.stage),r.sliderStartPos.top-=r.stagePos.top,r.sliderStartPos.left-=r.stagePos.left,r.contentStartPos.top-=r.stagePos.top,r.contentStartPos.left-=r.stagePos.left,n(t).off(".fb.touch").on(h?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",n.proxy(r,"ontouchend")).on(h?"touchmove.fb.touch":"mousemove.fb.touch",n.proxy(r,"ontouchmove")),n.fancybox.isMobile&&t.addEventListener("scroll",r.onscroll,!0),((r.opts||r.canPan)&&(l.is(r.$stage)||r.$stage.find(l).length)||(l.is(".fancybox-image")&&o.preventDefault(),n.fancybox.isMobile&&l.parents(".fancybox-caption").length))&&(r.isScrollable=c(l)||c(l.parent()),n.fancybox.isMobile&&r.isScrollable||o.preventDefault(),(1===r.startPoints.length||d.hasError)&&(r.canPan?(n.fancybox.stop(r.$content),r.isPanning=!0):r.isSwiping=!0,r.$container.addClass("fancybox-is-grabbing")),2===r.startPoints.length&&"image"===d.type&&(d.isLoaded||d.$ghost)&&(r.canTap=!1,r.isSwiping=!1,r.isPanning=!1,r.isZooming=!0,n.fancybox.stop(r.$content),r.centerPointStartX=.5*(r.startPoints[0].x+r.startPoints[1].x)-n(e).scrollLeft(),r.centerPointStartY=.5*(r.startPoints[0].y+r.startPoints[1].y)-n(e).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=a(r.startPoints[0],r.startPoints[1]))))}},u.prototype.onscroll=function(e){this.isScrolling=!0,t.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(e){var t=this;return void 0!==e.originalEvent.buttons&&0===e.originalEvent.buttons?void t.ontouchend(e):t.isScrolling?void(t.canTap=!1):(t.newPoints=i(e),void((t.opts||t.canPan)&&t.newPoints.length&&t.newPoints.length&&(t.isSwiping&&!0===t.isSwiping||e.preventDefault(),t.distanceX=a(t.newPoints[0],t.startPoints[0],"x"),t.distanceY=a(t.newPoints[0],t.startPoints[0],"y"),t.distance=a(t.newPoints[0],t.startPoints[0]),t.distance>0&&(t.isSwiping?t.onSwipe(e):t.isPanning?t.onPan():t.isZooming&&t.onZoom()))))},u.prototype.onSwipe=function(t){var i,a=this,s=a.instance,l=a.isSwiping,c=a.sliderStartPos.left||0;if(!0!==l)"x"==l&&(a.distanceX>0&&(a.instance.group.length<2||0===a.instance.current.index&&!a.instance.current.opts.loop)?c+=Math.pow(a.distanceX,.8):a.distanceX<0&&(a.instance.group.length<2||a.instance.current.index===a.instance.group.length-1&&!a.instance.current.opts.loop)?c-=Math.pow(-a.distanceX,.8):c+=a.distanceX),a.sliderLastPos={top:"x"==l?0:a.sliderStartPos.top+a.distanceY,left:c},a.requestId&&(r(a.requestId),a.requestId=null),a.requestId=o((function(){a.sliderLastPos&&(n.each(a.instance.slides,(function(e,t){var o=t.pos-a.instance.currPos;n.fancybox.setTranslate(t.$slide,{top:a.sliderLastPos.top,left:a.sliderLastPos.left+o*a.canvasWidth+o*t.opts.gutter})})),a.$container.addClass("fancybox-is-sliding"))}));else if(Math.abs(a.distance)>10){if(a.canTap=!1,s.group.length<2&&a.opts.vertical?a.isSwiping="y":s.isDragging||!1===a.opts.vertical||"auto"===a.opts.vertical&&n(e).width()>800?a.isSwiping="x":(i=Math.abs(180*Math.atan2(a.distanceY,a.distanceX)/Math.PI),a.isSwiping=i>45&&i<135?"y":"x"),"y"===a.isSwiping&&n.fancybox.isMobile&&a.isScrollable)return void(a.isScrolling=!0);s.isDragging=a.isSwiping,a.startPoints=a.newPoints,n.each(s.slides,(function(e,t){var o,r;n.fancybox.stop(t.$slide),o=n.fancybox.getTranslate(t.$slide),r=n.fancybox.getTranslate(s.$refs.stage),t.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass((function(e,t){return(t.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")})),t.pos===s.current.pos&&(a.sliderStartPos.top=o.top-r.top,a.sliderStartPos.left=o.left-r.left),n.fancybox.setTranslate(t.$slide,{top:o.top-r.top,left:o.left-r.left})})),s.SlideShow&&s.SlideShow.isActive&&s.SlideShow.stop()}},u.prototype.onPan=function(){var e=this;a(e.newPoints[0],e.realPoints[0])<(n.fancybox.isMobile?10:5)?e.startPoints=e.newPoints:(e.canTap=!1,e.contentLastPos=e.limitMovement(),e.requestId&&r(e.requestId),e.requestId=o((function(){n.fancybox.setTranslate(e.$content,e.contentLastPos)})))},u.prototype.limitMovement=function(){var e,t,n,o,r,i,a=this,s=a.canvasWidth,l=a.canvasHeight,c=a.distanceX,u=a.distanceY,d=a.contentStartPos,f=d.left,p=d.top,h=d.width,g=d.height;return r=h>s?f+c:f,i=p+u,e=Math.max(0,.5*s-.5*h),t=Math.max(0,.5*l-.5*g),n=Math.min(s-h,.5*s-.5*h),o=Math.min(l-g,.5*l-.5*g),c>0&&r>e&&(r=e-1+Math.pow(-e+f+c,.8)||0),c<0&&r<n&&(r=n+1-Math.pow(n-f-c,.8)||0),u>0&&i>t&&(i=t-1+Math.pow(-t+p+u,.8)||0),u<0&&i<o&&(i=o+1-Math.pow(o-p-u,.8)||0),{top:i,left:r}},u.prototype.limitPosition=function(e,t,n,o){var r=this.canvasWidth,i=this.canvasHeight;return n>r?e=(e=e>0?0:e)<r-n?r-n:e:e=Math.max(0,r/2-n/2),o>i?t=(t=t>0?0:t)<i-o?i-o:t:t=Math.max(0,i/2-o/2),{top:t,left:e}},u.prototype.onZoom=function(){var t=this,i=t.contentStartPos,s=i.width,l=i.height,c=i.left,u=i.top,d=a(t.newPoints[0],t.newPoints[1])/t.startDistanceBetweenFingers,f=Math.floor(s*d),p=Math.floor(l*d),h=(s-f)*t.percentageOfImageAtPinchPointX,g=(l-p)*t.percentageOfImageAtPinchPointY,m=(t.newPoints[0].x+t.newPoints[1].x)/2-n(e).scrollLeft(),y=(t.newPoints[0].y+t.newPoints[1].y)/2-n(e).scrollTop(),b=m-t.centerPointStartX,v={top:u+(g+(y-t.centerPointStartY)),left:c+(h+b),scaleX:d,scaleY:d};t.canTap=!1,t.newWidth=f,t.newHeight=p,t.contentLastPos=v,t.requestId&&r(t.requestId),t.requestId=o((function(){n.fancybox.setTranslate(t.$content,t.contentLastPos)}))},u.prototype.ontouchend=function(e){var o=this,a=o.isSwiping,s=o.isPanning,l=o.isZooming,c=o.isScrolling;if(o.endPoints=i(e),o.dMs=Math.max((new Date).getTime()-o.startTime,1),o.$container.removeClass("fancybox-is-grabbing"),n(t).off(".fb.touch"),t.removeEventListener("scroll",o.onscroll,!0),o.requestId&&(r(o.requestId),o.requestId=null),o.isSwiping=!1,o.isPanning=!1,o.isZooming=!1,o.isScrolling=!1,o.instance.isDragging=!1,o.canTap)return o.onTap(e);o.speed=100,o.velocityX=o.distanceX/o.dMs*.5,o.velocityY=o.distanceY/o.dMs*.5,s?o.endPanning():l?o.endZooming():o.endSwiping(a,c)},u.prototype.endSwiping=function(e,t){var o=this,r=!1,i=o.instance.group.length,a=Math.abs(o.distanceX),s="x"==e&&i>1&&(o.dMs>130&&a>10||a>50);o.sliderLastPos=null,"y"==e&&!t&&Math.abs(o.distanceY)>50?(n.fancybox.animate(o.instance.current.$slide,{top:o.sliderStartPos.top+o.distanceY+150*o.velocityY,opacity:0},200),r=o.instance.close(!0,250)):s&&o.distanceX>0?r=o.instance.previous(300):s&&o.distanceX<0&&(r=o.instance.next(300)),!1!==r||"x"!=e&&"y"!=e||o.instance.centerSlide(200),o.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var e,t,o,r=this;r.contentLastPos&&(!1===r.opts.momentum||r.dMs>350?(e=r.contentLastPos.left,t=r.contentLastPos.top):(e=r.contentLastPos.left+500*r.velocityX,t=r.contentLastPos.top+500*r.velocityY),(o=r.limitPosition(e,t,r.contentStartPos.width,r.contentStartPos.height)).width=r.contentStartPos.width,o.height=r.contentStartPos.height,n.fancybox.animate(r.$content,o,366))},u.prototype.endZooming=function(){var e,t,o,r,i=this,a=i.instance.current,s=i.newWidth,l=i.newHeight;i.contentLastPos&&(e=i.contentLastPos.left,r={top:t=i.contentLastPos.top,left:e,width:s,height:l,scaleX:1,scaleY:1},n.fancybox.setTranslate(i.$content,r),s<i.canvasWidth&&l<i.canvasHeight?i.instance.scaleToFit(150):s>a.width||l>a.height?i.instance.scaleToActual(i.centerPointStartX,i.centerPointStartY,150):(o=i.limitPosition(e,t,s,l),n.fancybox.animate(i.$content,o,150)))},u.prototype.onTap=function(t){var o,r=this,a=n(t.target),s=r.instance,l=s.current,c=t&&i(t)||r.startPoints,u=c[0]?c[0].x-n(e).scrollLeft()-r.stagePos.left:0,d=c[0]?c[0].y-n(e).scrollTop()-r.stagePos.top:0,f=function(e){var o=l.opts[e];if(n.isFunction(o)&&(o=o.apply(s,[l,t])),o)switch(o){case"close":s.close(r.startEvent);break;case"toggleControls":s.toggleControls();break;case"next":s.next();break;case"nextOrClose":s.group.length>1?s.next():s.close(r.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(s.canPan()?s.scaleToFit():s.isScaledDown()?s.scaleToActual(u,d):s.group.length<2&&s.close(r.startEvent))}};if((!t.originalEvent||2!=t.originalEvent.button)&&(a.is("img")||!(u>a[0].clientWidth+a.offset().left))){if(a.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))o="Outside";else if(a.is(".fancybox-slide"))o="Slide";else{if(!s.current.$content||!s.current.$content.find(a).addBack().filter(a).length)return;o="Content"}if(r.tapped){if(clearTimeout(r.tapped),r.tapped=null,Math.abs(u-r.tapX)>50||Math.abs(d-r.tapY)>50)return this;f("dblclick"+o)}else r.tapX=u,r.tapY=d,l.opts["dblclick"+o]&&l.opts["dblclick"+o]!==l.opts["click"+o]?r.tapped=setTimeout((function(){r.tapped=null,s.isAnimating||f("click"+o)}),500):f("click"+o);return this}},n(t).on("onActivate.fb",(function(e,t){t&&!t.Guestures&&(t.Guestures=new u(t))})).on("beforeClose.fb",(function(e,t){t&&t.Guestures&&t.Guestures.destroy()}))}(window,document,oe()),function(e,t){t.extend(!0,t.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var n=function(e){this.instance=e,this.init()};t.extend(n.prototype,{timer:null,isActive:!1,$button:null,init:function(){var e=this,n=e.instance,o=n.group[n.currIndex].opts.slideShow;e.$button=n.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){e.toggle()})),n.group.length<2||!o?e.$button.hide():o.progress&&(e.$progress=t('<div class="fancybox-progress"></div>').appendTo(n.$refs.inner))},set:function(e){var n=this,o=n.instance,r=o.current;r&&(!0===e||r.opts.loop||o.currIndex<o.group.length-1)?n.isActive&&"video"!==r.contentType&&(n.$progress&&t.fancybox.animate(n.$progress.show(),{scaleX:1},r.opts.slideShow.speed),n.timer=setTimeout((function(){o.current.opts.loop||o.current.index!=o.group.length-1?o.next():o.jumpTo(0)}),r.opts.slideShow.speed)):(n.stop(),o.idleSecondsCounter=0,o.showControls())},clear:function(){var e=this;clearTimeout(e.timer),e.timer=null,e.$progress&&e.$progress.removeAttr("style").hide()},start:function(){var e=this,t=e.instance.current;t&&(e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),e.isActive=!0,t.isComplete&&e.set(!0),e.instance.trigger("onSlideShowChange",!0))},stop:function(){var e=this,t=e.instance.current;e.clear(),e.$button.attr("title",(t.opts.i18n[t.opts.lang]||t.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),e.isActive=!1,e.instance.trigger("onSlideShowChange",!1),e.$progress&&e.$progress.removeAttr("style").hide()},toggle:function(){var e=this;e.isActive?e.stop():e.start()}}),t(e).on({"onInit.fb":function(e,t){t&&!t.SlideShow&&(t.SlideShow=new n(t))},"beforeShow.fb":function(e,t,n,o){var r=t&&t.SlideShow;o?r&&n.opts.slideShow.autoStart&&r.start():r&&r.isActive&&r.clear()},"afterShow.fb":function(e,t,n){var o=t&&t.SlideShow;o&&o.isActive&&o.set()},"afterKeydown.fb":function(n,o,r,i,a){var s=o&&o.SlideShow;!s||!r.opts.slideShow||80!==a&&32!==a||t(e.activeElement).is("button,a,input")||(i.preventDefault(),s.toggle())},"beforeClose.fb onDeactivate.fb":function(e,t){var n=t&&t.SlideShow;n&&n.stop()}}),t(e).on("visibilitychange",(function(){var n=t.fancybox.getInstance(),o=n&&n.SlideShow;o&&o.isActive&&(e.hidden?o.clear():o.set())}))}(document,oe()),function(e,t){var n=function(){for(var t=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n={},o=0;o<t.length;o++){var r=t[o];if(r&&r[1]in e){for(var i=0;i<r.length;i++)n[t[0][i]]=r[i];return n}}return!1}();if(n){var o={request:function(t){(t=t||e.documentElement)[n.requestFullscreen](t.ALLOW_KEYBOARD_INPUT)},exit:function(){e[n.exitFullscreen]()},toggle:function(t){t=t||e.documentElement,this.isFullscreen()?this.exit():this.request(t)},isFullscreen:function(){return Boolean(e[n.fullscreenElement])},enabled:function(){return Boolean(e[n.fullscreenEnabled])}};t.extend(!0,t.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),t(e).on(n.fullscreenchange,(function(){var e=o.isFullscreen(),n=t.fancybox.getInstance();n&&(n.current&&"image"===n.current.type&&n.isAnimating&&(n.isAnimating=!1,n.update(!0,!0,0),n.isComplete||n.complete()),n.trigger("onFullscreenChange",e),n.$refs.container.toggleClass("fancybox-is-fullscreen",e),n.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!e).toggleClass("fancybox-button--fsexit",e))}))}t(e).on({"onInit.fb":function(e,t){n?t&&t.group[t.currIndex].opts.fullScreen?(t.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(e){e.stopPropagation(),e.preventDefault(),o.toggle()})),t.opts.fullScreen&&!0===t.opts.fullScreen.autoStart&&o.request(),t.FullScreen=o):t&&t.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():t.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(e,t,n,o,r){t&&t.FullScreen&&70===r&&(o.preventDefault(),t.FullScreen.toggle())},"beforeClose.fb":function(e,t){t&&t.FullScreen&&t.$refs.container.hasClass("fancybox-is-fullscreen")&&o.exit()}})}(document,oe()),function(e,t){var n="fancybox-thumbs";t.fancybox.defaults=t.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},t.fancybox.defaults);var o=function(e){this.init(e)};t.extend(o.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(e){var t=this,n=e.group,o=0;t.instance=e,t.opts=n[e.currIndex].opts.thumbs,e.Thumbs=t,t.$button=e.$refs.toolbar.find("[data-fancybox-thumbs]");for(var r=0,i=n.length;r<i&&(n[r].thumb&&o++,!(o>1));r++);o>1&&t.opts?(t.$button.removeAttr("style").on("click",(function(){t.toggle()})),t.isActive=!0):t.$button.hide()},create:function(){var e,o=this,r=o.instance,i=o.opts.parentEl,a=[];o.$grid||(o.$grid=t('<div class="'+n+" "+n+"-"+o.opts.axis+'"></div>').appendTo(r.$refs.container.find(i).addBack().filter(i)),o.$grid.on("click","a",(function(){r.jumpTo(t(this).attr("data-index"))}))),o.$list||(o.$list=t('<div class="'+n+'__list">').appendTo(o.$grid)),t.each(r.group,(function(t,n){(e=n.thumb)||"image"!==n.type||(e=n.src),a.push('<a href="javascript:;" tabindex="0" data-index="'+t+'"'+(e&&e.length?' style="background-image:url('+e+')"':'class="fancybox-thumbs-missing"')+"></a>")})),o.$list[0].innerHTML=a.join(""),"x"===o.opts.axis&&o.$list.width(parseInt(o.$grid.css("padding-right"),10)+r.group.length*o.$list.children().eq(0).outerWidth(!0))},focus:function(e){var t,n,o=this,r=o.$list,i=o.$grid;o.instance.current&&(n=(t=r.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+o.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===o.opts.axis&&(n.top<0||n.top>r.height()-t.outerHeight())?r.stop().animate({scrollTop:r.scrollTop()+n.top},e):"x"===o.opts.axis&&(n.left<i.scrollLeft()||n.left>i.scrollLeft()+(i.width()-t.outerWidth()))&&r.parent().stop().animate({scrollLeft:n.left},e))},update:function(){var e=this;e.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),e.isVisible?(e.$grid||e.create(),e.instance.trigger("onThumbsShow"),e.focus(0)):e.$grid&&e.instance.trigger("onThumbsHide"),e.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),t(e).on({"onInit.fb":function(e,t){var n;t&&!t.Thumbs&&((n=new o(t)).isActive&&!0===n.opts.autoStart&&n.show())},"beforeShow.fb":function(e,t,n,o){var r=t&&t.Thumbs;r&&r.isVisible&&r.focus(o?0:250)},"afterKeydown.fb":function(e,t,n,o,r){var i=t&&t.Thumbs;i&&i.isActive&&71===r&&(o.preventDefault(),i.toggle())},"beforeClose.fb":function(e,t){var n=t&&t.Thumbs;n&&n.isVisible&&!1!==n.opts.hideOnClose&&n.$grid.hide()}})}(document,oe()),function(e,t){t.extend(!0,t.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(e,t){return!e.currentHash&&"inline"!==t.type&&"html"!==t.type&&(t.origSrc||t.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),t(e).on("click","[data-fancybox-share]",(function(){var e,n,o=t.fancybox.getInstance(),r=o.current||null;r&&("function"===t.type(r.opts.share.url)&&(e=r.opts.share.url.apply(r,[o,r])),n=r.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===r.type?encodeURIComponent(r.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(e)).replace(/\{\{url_raw\}\}/g,function(e){var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};return String(e).replace(/[&<>"'`=\/]/g,(function(e){return t[e]}))}(e)).replace(/\{\{descr\}\}/g,o.$caption?encodeURIComponent(o.$caption.text()):""),t.fancybox.open({src:o.translate(o,n),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(e,t){o.$refs.container.one("beforeClose.fb",(function(){e.close(null,0)})),t.$content.find(".fancybox-share__button").click((function(){return window.open(this.href,"Share","width=550, height=450"),!1}))},mobile:{autoFocus:!1}}}))}))}(document,oe()),function(e,t,n){function o(){var t=e.location.hash.substr(1),n=t.split("-"),o=n.length>1&&/^\+?\d+$/.test(n[n.length-1])&&parseInt(n.pop(-1),10)||1;return{hash:t,index:o<1?1:o,gallery:n.join("-")}}function r(e){""!==e.gallery&&n("[data-fancybox='"+n.escapeSelector(e.gallery)+"']").eq(e.index-1).focus().trigger("click.fb-start")}function i(e){var t,n;return!!e&&(""!==(n=(t=e.current?e.current.opts:e.opts).hash||(t.$orig?t.$orig.data("fancybox")||t.$orig.data("fancybox-trigger"):""))&&n)}n.escapeSelector||(n.escapeSelector=function(e){return(e+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}))}),n((function(){!1!==n.fancybox.defaults.hash&&(n(t).on({"onInit.fb":function(e,t){var n,r;!1!==t.group[t.currIndex].opts.hash&&(n=o(),(r=i(t))&&n.gallery&&r==n.gallery&&(t.currIndex=n.index-1))},"beforeShow.fb":function(n,o,r,a){var s;r&&!1!==r.opts.hash&&(s=i(o))&&(o.currentHash=s+(o.group.length>1?"-"+(r.index+1):""),e.location.hash!=="#"+o.currentHash&&(a&&!o.origHash&&(o.origHash=e.location.hash),o.hashTimer&&clearTimeout(o.hashTimer),o.hashTimer=setTimeout((function(){"replaceState"in e.history?(e.history[a?"pushState":"replaceState"]({},t.title,e.location.pathname+e.location.search+"#"+o.currentHash),a&&(o.hasCreatedHistory=!0)):e.location.hash=o.currentHash,o.hashTimer=null}),300)))},"beforeClose.fb":function(n,o,r){r&&!1!==r.opts.hash&&(clearTimeout(o.hashTimer),o.currentHash&&o.hasCreatedHistory?e.history.back():o.currentHash&&("replaceState"in e.history?e.history.replaceState({},t.title,e.location.pathname+e.location.search+(o.origHash||"")):e.location.hash=o.origHash),o.currentHash=null)}}),n(e).on("hashchange.fb",(function(){var e=o(),t=null;n.each(n(".fancybox-container").get().reverse(),(function(e,o){var r=n(o).data("FancyBox");if(r&&r.currentHash)return t=r,!1})),t?t.currentHash===e.gallery+"-"+e.index||1===e.index&&t.currentHash==e.gallery||(t.currentHash=null,t.close()):""!==e.gallery&&r(e)})),setTimeout((function(){n.fancybox.getInstance()||r(o())}),50))}))}(window,document,oe()),function(e,t){var n=(new Date).getTime();t(e).on({"onInit.fb":function(e,t,o){t.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",(function(e){var o=t.current,r=(new Date).getTime();t.group.length<2||!1===o.opts.wheel||"auto"===o.opts.wheel&&"image"!==o.type||(e.preventDefault(),e.stopPropagation(),o.$slide.hasClass("fancybox-animated")||(e=e.originalEvent||e,r-n<250||(n=r,t[(-e.deltaY||-e.deltaX||e.wheelDelta||-e.detail)<0?"next":"previous"]())))}))}})}(document,oe());const re=oe();const ie=function(e){var t={сloseInside:e.iconCloseInside?decodeURI(e.iconCloseInside):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.984 6.422l-5.578 5.578 5.578 5.578-1.406 1.406-5.578-5.578-5.578 5.578-1.406-1.406 5.578-5.578-5.578-5.578 1.406-1.406 5.578 5.578 5.578-5.578z"></path></svg>',close:e.iconClose?decodeURI(e.iconClose):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 11.293l10.293-10.293.707.707-10.293 10.293 10.293 10.293-.707.707-10.293-10.293-10.293 10.293-.707-.707 10.293-10.293-10.293-10.293.707-.707 10.293 10.293z"/></svg>',slideShowPlay:e.iconSlideshowPlay?decodeURI(e.iconSlideshowPlay):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M23 12l-22 12v-24l22 12zm-21 10.315l18.912-10.315-18.912-10.315v20.63z"/></svg>',slideShowPause:e.iconSlideshowPause?decodeURI(e.iconSlideshowPause):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M10 24h-6v-24h6v24zm10 0h-6v-24h6v24zm-11-23h-4v22h4v-22zm10 0h-4v22h4v-22z"/></svg>',thumbs:e.iconThumbs?decodeURI(e.iconThumbs):'<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="2"><path d="M23.99 0H13v11h11l-.01-11zM14 1v9h9l-.01-9H14zM10.99 0H0v11h11l-.01-11zM1 1v9h9l-.01-9H1zM23.99 13H13v11h11l-.01-11zM14 14v9h9l-.01-9H14zM10.99 13H0v11h11l-.01-11zM1 14v9h9l-.01-9H1z"/></svg>',arrowLeft:e.iconArrowLeft?decodeURI(e.iconArrowLeft):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M20 .755l-14.374 11.245 14.374 11.219-.619.781-15.381-12 15.391-12 .609.755z"/></svg>',arrowRight:e.iconArrowRight?decodeURI(e.iconArrowRight):'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M4 .755l14.374 11.245-14.374 11.219.619.781 15.381-12-15.391-12-.609.755z"/></svg>'},n={closeExisting:e.closeExisting,loop:!0,preventCaptionOverlap:!0,buttons:["slideShow","thumbs","close"],idleTime:+e.autohideControls||!1,protect:"false"!==e.disableRightClick,slideClass:"c-lightbox__slide",baseClass:"c-lightbox",animationDuration:350,transitionDuration:350,thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"x"},baseTpl:'<div class="fancybox-container c-lightbox" role="dialog" tabindex="-1"><div class="fancybox-bg c-lightbox__overlay"></div><div class="fancybox-inner c-lightbox__inner"><div class="fancybox-infobar c-lightbox__infobar"><span data-fancybox-index></span>/<span data-fancybox-count></span></div><div class="fancybox-toolbar c-lightbox__toolbar compensate-for-scrollbar">{{buttons}}</div><div class="fancybox-navigation c-lightbox__nav">{{arrows}}</div><div class="fancybox-stage c-lightbox__stage"></div><div class="fancybox-caption c-lightbox__caption"><div class="fancybox-caption__body c-lightbox__caption-inner"></div></div><ul class="c-lightbox__nav-dots"></ul></div></div>',spinnerTpl:'<div class="c-lightbox__loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{close:'<button data-fancybox-close class="fancybox-button fancybox-button--close c-lightbox__button c-lightbox__button--close">'.concat(t.close,"</button>"),slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play c-lightbox__button c-lightbox__button--slideshow">\n          '.concat(t.slideShowPlay,"\n          ").concat(t.slideShowPause,"\n        </button>"),thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs c-lightbox__button c-lightbox__button--thumbs">'.concat(t.thumbs,"</button>"),arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left c-lightbox__button c-lightbox__button--arrow_left"><div>'.concat(t.arrowLeft,"</div></button>"),arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right c-lightbox__button c-lightbox__button--arrow_right"><div>'.concat(t.arrowRight,"</div></button>"),smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small c-lightbox__close">'.concat(t.сloseInside,"</button>")},parentEl:document.querySelector("#siteWrapper")?"#siteWrapper":"body",hideScrollbar:!0,autoFocus:!1,backFocus:!1,trapFocus:!0,touch:"ontouchstart"in document.documentElement&&{vertical:!0,momentum:!0},hash:!1,clickSlide:e.clickOutside||"close",media:{loom:{matcher:/^.+loom.com\/share\/([a-z0-9]*)(.*)?/,params:{autoplay:1},paramPlace:2,type:"iframe",url:"https://www.loom.com/embed/$1"},wistia:{matcher:/^.+support.wistia.com\/medias\/([a-z0-9]*)(.*)?/,params:{autoPlay:1,videoFoam:1},paramPlace:2,type:"iframe",url:"https://fast.wistia.net/embed/iframe/$1"}},mobile:{preventCaptionOverlap:!0}};return n=Object.assign(n,e),e.displayThumbsOnOpen&&(n.thumbs.autoStart=!0),n};function ae(){return Y&&Y.Squarespace&&Y.Squarespace.EscManager}const se={disable:function(){return ae()?Y.Squarespace.EscManager.disable():""},enable:function(){return ae()?Y.Squarespace.EscManager.enable():""}};function le(e){return function(e){if(Array.isArray(e))return ce(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return ce(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ce(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ce(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ue(e,t){var n=te()();if(!e)return le(document.querySelectorAll("*[data-original-style]")).forEach((function(e){var t=e.getAttribute("data-original-style");e.removeAttribute("data-original-style"),t?e.setAttribute("style",t):e.removeAttribute("style")})),null;le(document.querySelectorAll("div:not(.".concat(t,"):not(.c-lightbox__loading):not(.shopify-buy-cart-wrapper):not(.shopify-buy-frame), nav, header, footer, iframe"))).filter((function(e){if("none"!==e.style.display){var t=getComputedStyle(e);if("none"!==t.display&&"fixed"===t.position){var o=e.getBoundingClientRect(),r=Math.round(o.left),i=Math.round(document.documentElement.clientWidth-o.right),a=e.getAttribute("style");e.setAttribute("data-original-style",a||""),e.style.transition="none",0!==r||0!==i&&i!==n?r===i||r===i+1||e.style.marginLeft===-n/2+"px"?e.style.marginLeft=-n/2+"px":r>i&&(t.right.match(/\d+/)[0]?e.style.right="calc(".concat(t.right," + ").concat(n,"px)"):"none"===t.transform&&(e.style.transform="translateX(-".concat(n,"px)"))):(e.style.right="auto",e.style.width="calc(100% - ".concat(n,"px)"))}}}))}const de=function(e){var t=Y,n=t.config.win,o=(t.config.win.document,new function(){var n={body:t.one(e),gallery:t.one(e+" .sqs-system-gallery"),slideWrapper:t.one(e+" .sqs-system-gallery").one(".gallery-wrapper"),slidesAndControls:t.one(e+" .sqs-system-gallery").one(".slides-controls"),circles:t.one(e+" .sqs-system-gallery").one(".circles")},o={show:"show",ready:"sqs-system-gallery-ready",interaction:"sqs-system-gallery-interaction",mouseenterleft:"sqs-system-gallery-hover-slides-left",mouseenterright:"sqs-system-gallery-hover-slides-right",init:"sqs-system-gallery-init",circlesNav:"gallery-navigation-circles",crop:"gallery-auto-crop",iframe:"sqs-system-gallery-video-iframe"},r=null,i=null,a=window.innerWidth,s=[],l=[];function c(e,n){var o=t.Squarespace.Template.getTweakValue(e);return n?o=parseFloat(o):"string"==typeof o&&(o=o.toLowerCase()),"true"===o?o=!0:"false"===o&&(o=!1),o}function u(){var e=n.gallery.one(".slide.sqs-active-slide");return e&&"video"===e.getAttribute("data-type")&&e.one("iframe")}function d(){return"grid"!==c("gallery-design")}function f(e){var t=0,n=e&&e.match(/(\d+):(\d+)/);return n&&3===n.length&&(t=n[1]/n[2]),t}function p(){var e=n.gallery.one(".slide.sqs-active-slide"),t=e&&e.getAttribute("data-slide-id")||null,r=n.gallery.one('.slide-meta[data-slide-id="'+t+'"]');r&&(n.body.hasClass(o.crop)?r.setStyles({top:null,bottom:null,left:null,width:null}):(n.body.hasClass(o.circlesNav)?(r.setStyle("top",(parseFloat(e._node.clientHeight)-parseFloat(e.one("img")._node.clientHeight))/2),r.setStyle("bottom",null)):(r.setStyle("top",null),r.setStyle("bottom",(parseFloat(e._node.clientHeight)-parseFloat(e.one("img")._node.clientHeight))/2)),r.setStyles({left:e.one("img").getComputedStyle("left"),width:e.one("img")._node.clientWidth})))}function h(e){var t,r=n.gallery.one(".slide.sqs-active-slide"),i=r&&r.one("img"),a=r&&r.getAttribute("data-slide-id")||null;if(n.gallery.all(".slide-meta").removeClass(o.show),e&&Modernizr&&!Modernizr.touch&&n.gallery.addClass(o.interaction),u()?(n.gallery.addClass(o.iframe),n.gallery.removeClass(o.mouseenterleft),n.gallery.removeClass(o.mouseenterright)):(n.gallery.removeClass(o.iframe),e&&"Gallery:currentIndexChange"===e.type&&(-1===e.direction?n.gallery.addClass(o.mouseenterleft):n.gallery.addClass(o.mouseenterright))),a&&(function(e,t,n){var r,i,a;t&&(r=t.one(".title"),i=t.one(".description"),(r&&r._node.innerHTML||i&&i._node.innerHTML)&&(n?a=!0:(t.addClass(o.show),p())))}(0,n.gallery.one('.slide-meta[data-slide-id="'+a+'"]')),i&&n.body.hasClass(o.circlesNav))){var l=function(){t=Math.max(0,(parseFloat(r._node.clientHeight)-parseFloat(i._node.clientHeight))/2),n.circles.setStyle("bottom",t)};i.get("complete")?l():s.push(i.on("load",l))}}function g(){var a=c("gallery-loop"),l=c("gallery-auto-crop"),u=c("gallery-autoplay"),g=c("gallery-transitions"),m=1e3*c("galleryAutoplaySpeed",!0),y=c("gallery-navigation"),b=c("gallery-aspect-ratio"),v=b.split(" ")[0],x=!d(),w=0;v=parseInt(b.split(":")[1],10)/parseInt(b.split(":")[0],10),b=n.gallery._node.clientWidth*v,n.gallery.removeClass(o.init),n.gallery.removeClass(o.ready),n.gallery.removeClass(o.interaction),n.gallery.removeClass(o.mouseenterleft),n.gallery.removeClass(o.mouseenterright),n.gallery.all(".slide-meta").removeClass(o.show),r&&(w=r.get("currentIndex"),n.gallery.all(".sqs-disabled").removeClass("sqs-disabled"),n.gallery.all(".sqs-active-slide").removeClass("sqs-active-slide"),n.gallery.all(".slide, img").setStyles({visibility:null,left:null,top:null,overflow:null,width:null,height:null}),r.destroy()),i&&(n.gallery.all(".thumbnail img[data-src]").each((function(e){e.setStyles({height:null,width:null,top:null,left:null})})),i.destroy()),n.gallery.one(".slides-controls").setStyle("height",x?null:b),n.slideWrapper.setStyle("minHeight",x?null:b),r=new t.SQS.Gallery.Gallery2({container:Y.one(e+" .slides"),slides:".slide",currentIndex:w,elements:{next:e+" .next-slide, "+e+" .simple .next",previous:e+" .previous-slide, "+e+" .simple .previous",controls:e+" .dots, "+e+" .numbers, "+e+" .circles",currentIndex:e+" .current-index",totalSlides:e+" .total-slides"},loop:a,autoplay:!x&&u,autoplayOptions:{randomize:!1,timeout:m,pauseOnMouseover:[".thumbnail-wrapper"]},lazyLoad:!0,loaderOptions:{mode:x?"auto"===c("aspect-ratio")?"none":"fill":l?"fill":"fit"},design:x?"autocolumns":"stacked",designOptions:{transition:g,lightbox:x,clickBehavior:"auto",gutter:c("gridSpacing",!0),columnWidth:c("gridSize",!0),aspectRatio:f(c("aspect-ratio"))},historyHash:!0}),n.gallery.all(".arrow").each((function(e){e.setStyle("top",n.slideWrapper._node.clientHeight/2)})),x||"thumbnails"!==y||(i=new t.SQS.Gallery.Gallery2({container:Y.one(e+" .thumbnail-wrapper"),currentIndex:w,loaderOptions:{mode:"fill",load:!0},lazyLoad:!0,design:"strip"}),r.addChild(i));var S=r.after("currentIndexChange",h);h();var C=r.after("image-loaded",p);p(),n.gallery.addClass(o.ready),s.push(S,C)}function m(e){"function"==typeof e&&(window.throttleTimeout&&clearTimeout(window.throttleTimeout),window.throttleTimeout=setTimeout(e,750))}function y(e,t){var r=e._event.offsetX||e._event.layerX;n.gallery.addClass(o.interaction),e._event.target&&("img"===e._event.target.localName||"sqs-video-opaque"===e._event.target.className||e.target.hasClass("slide"))&&(t?(n.gallery.removeClass(o.mouseenterleft),n.gallery.removeClass(o.mouseenterright)):r<=e._currentTarget.clientWidth/2?(n.gallery.removeClass(o.mouseenterright),n.gallery.addClass(o.mouseenterleft)):(n.gallery.removeClass(o.mouseenterleft),n.gallery.addClass(o.mouseenterright)))}function b(e){var t=e.keyCode;(37===t||39===t&&d())&&n.gallery.addClass(o.interaction)}function v(e,n){s.push(t.Global.on("tweak:change",(function(t){if(t.getName()===e&&"function"==typeof n){var o=t.getValue();"true"===o?o=!0:"false"===o&&(o=!1),n(o)}})))}return{init:function(){g(),function(){var e=new t.Squarespace.ResizeEmitter({timeout:100});e.on("resize:end",(function(){window.innerWidth!==a&&(a=window.innerWidth,m(g))})),l.push(e),Modernizr&&!Modernizr.touch&&s.push(t.on("mousemove",(function(e){d()&&y(e,!1)}),n.gallery.one(".slides-controls")),t.on("mouseleave",(function(e){d()&&(y(e,!0),n.gallery.removeClass(o.iframe))}),n.gallery.one(".slides-controls")),t.on("mouseenter",(function(e){d()&&u()&&n.gallery.addClass(o.iframe)}),n.gallery.one(".slides-controls"))),s.push(t.on("keydown",b))}(),t.Lang.isValue(Static.SQUARESPACE_CONTEXT.authenticatedAccount)&&function(){v("gallery-loop",g),v("gallery-transitions",g),v("gallery-auto-crop",g),v("gallery-navigation",(function(e){"Thumbnails"!==e||n.gallery.one(".thumbnail-wrapper img[src]")||g(),p()})),v("gallery-autoplay",(function(e){r.set("autoplay",e)})),v("gallery-aspect-ratio",(function(){g()})),v("galleryAutoplaySpeed",(function(){m(g)})),v("galleryInfoBackground",(function(){h()})),v("gallery-design",g),v("aspect-ratio",g),v("gridSpacing",g),v("gridSize",g),t.Global&&s.push(t.Global.on(["tweak:reset","tweak:close"],(function(e){t.later(500,this,g)}),this))}()},destroy:function(){s=s.filter((function(e){return e.detach(),!1})),l=l.filter((function(e){return"function"==typeof e.destroy&&e.destroy(),!1})),r&&(r.get("container")&&r.get("container").hide(),"function"==typeof r.destroy&&r.destroy()),i&&(i.get("container")&&i.get("container").hide(),"function"==typeof i.destroy&&i.destroy())}}});o.init(),n.Squarespace.onDestroy(t,(function(){o&&(o.destroy&&"function"==typeof o.destroy&&o.destroy(),o=null)}))};const fe=function(e){var t=[];return e.forEach((function(e){if("_blank"===e.getAttribute("target"))return null;var n=e.getAttribute("href"),o=function(e){return e.match(/^#lightbox(>|_)http/)||e.match(/^#lightbox(>|_)(\#|\.)/)?e.replace(/#lightbox(>|_)/,""):(-1!==(e=e.replace(/#lightbox(>|_|-)/,"").split("/").filter((function(e){return e})))[0].indexOf("http")&&(e.shift(),e.shift()),(e="/"+e.join("/")).split("?").shift())}(n),r=function(e){var t=e.split("?");if(t[1]){var n=t[1].split("&").filter((function(e){return-1!==e.indexOf("group")}))[0];return!(!n||!n.split("="))&&n.split("=")[1]}}(n)||e.getAttribute("data-fancybox"),i=o.replace(/^\//,"").replace(/https:\/\//,"").replace(/\.|\#/,"").replace(/[^a-zA-Z0-9-_]/g,"-"),a=t.filter((function(e){return e.id===i}))[0];if(a)return a.duplicateLinks?a.duplicateLinks.push(e):a.duplicateLinks=[e],null;var s="page",l="inline";o.match(/^http/)&&o.match(/(youtu.be|youtube.com|vimeo.com|loom.com|wistia.com\/medias\/)/)?(s="embed-video",l="video"):o.match(/^http.*(\.jpg|\.jpeg|\.png|\.gif)(\?format=[0-9]{1,}w)?((\?|\&)group=[a-z0-9-]{3,})?$/i)?l=s="image":o.match(/^http/)&&(l=s="iframe"),t.push({sourceType:s,type:l,group:r,id:i,target:o,link:e})})),t};function pe(e){return pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function he(e){var t=localStorage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}function ge(e,t){t="object"===pe(t)?JSON.stringify(t):t,localStorage.setItem(e,t)}function me(e){var t=he(e.storageKeyExpires);return t&&t<=Date.now()}function ye(e,t){if(!t)throw new Error("Data is empty!");var n=he(e.storageKey);function o(t){var n=60*e.localCacheExpires*1e3+Date.now();ge(e.storageKeyExpires,n),ge(e.storageKey,t)}return"json"===e.format&&e.reduceData&&(t=function(e){var t={collection:e.collection},n=e.item,o=e.items;return n&&(delete n.body,t.item=n),o&&(o=o.map((function(e){return delete e.body,e})),t.items=o),t}(t)),n&&me(e)?o(t):n||o(t),Promise.resolve(t)}function be(e){return fetch(function(e){var t=e.url;return e.format&&(t=function(e,t){var n=e.split("?")[0],o="?format="+t+(e.split("?")[1]?"&"+e.split("?")[1]:"");return-1===n.indexOf("http")&&0!==n.indexOf("/")&&(n="/"+n),n+o}(e.url,e.format)),t}(e),e.fetch).then((function(e){return function(e,t){if(200!==t.status)throw new Error("Fetch Error: ".concat(t.statusText||t.status));return t}(0,e)})).then((function(t){return"json"===e.format?t.json():t.text()})).then((function(t){return"html"===e.format?(n=t,o=e.htmlTarget,(r=(new DOMParser).parseFromString(n,"text/html").querySelector(o)).innerHTML?r.innerHTML:"Empty"):t;var n,o,r})).catch(console.error)}const ve=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(e=Object.assign({url:null,format:"json",fetch:{cache:"no-store",credentials:"same-origin"},reduceData:!1,localCache:!1,localCacheExpires:5},e)).url?(e.storageKey=e.storageKey||e.url+"_"+e.format,e.storageKeyExpires=e.storageKey+"_expires",function(e){if(!e.localCache)return be(e);var t=he(e.storageKey);return t?(me(e)&&be(e).then((function(t){return ye(e,t)})),Promise.resolve(t)):be(e).then((function(t){return ye(e,t)}))}(e)):(console.error("Fetch Data: Need to set URL!"),null)};const xe=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=function(){var n=e.attributes[o].name;t.filter((function(e){return e===n})).length||e.removeAttribute(n)},o=e.attributes.length-1;o>=0;o--)n()};function we(e){return function(e){if(Array.isArray(e))return Se(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Se(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Se(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Se(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Ce(e){var t=e.split(">").length>1?e.split(">")[0]:e.split("_")[0],n=e.replace(t,"").replace(/(>|_)/,"");function o(e){var t=(new DOMParser).parseFromString(e,"text/html"),o=document.createElement("div"),r=t.querySelector('[data-content-field="main-content"]')||t.querySelector("#page")||t.querySelector("body"),i=t.querySelector("#sectionThemesStyles"),a=we(t.querySelectorAll("[data-lightbox-code-injection]")),s=r.querySelector(".sqs-layout"),l=r.querySelector(".system-page");if(n){var c=r.querySelector(n)||r.querySelector("#"+n)||r.querySelector("."+n);c?o.appendChild(c):o.innerHTML='<span class="error-label">Error:</span> The '.concat(n," element not found.")}else o.appendChild(r.firstElementChild);i&&(i.removeAttribute("id"),i.className="section-themes-styles",o.appendChild(i)),a.forEach((function(e){return o.appendChild(e)})),s&&xe(s,["class"]),l&&l.classList.remove("system-page");var u=(function(e,t){var n=e.querySelector("body");if(n){var o=we(n.classList),r=o.findIndex((function(e){return e.match(t)}));return r?o[r]:""}return""}(t,/^collection-type-/)||"none").replace("collection-type-",""),d=new RegExp("^(tweak-|)".concat(u)),f="collection-type-".concat(u);return f+=" ".concat(t.querySelector(".view-list")?"view-list":""," "),f+=" ".concat(t.querySelector(".view-item")?"view-item":""," "),f=(f+=document.body.className.split(" ").filter((function(e){return e.match(d)})).join(" ")).replace(/\s+/g," "),o.className=f,o}return ve({url:t,format:"html",htmlTarget:"html"}).then((function(e){try{return o(e)}catch(e){return console.error("Lightbox Fetch Data:",e),'<span class="error-label">Error:</span> Page '.concat(t," not found. Please, check the page URL slug!")}}))}function Te(e,t){var n="";return"page"===e&&(n=new Promise((function(e){Ce(t).then((function(t){return e(t)}))}))),n||Promise.resolve("")}var Ae=n(538),Ee=n.n(Ae);function $e(e){return function(e){if(Array.isArray(e))return Pe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Pe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Pe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Pe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function ke(e){return function(e){if(Array.isArray(e))return Le(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Le(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Le(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Le(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function je(){var e,t,n=document.querySelector('script[src*="site-bundle"]'),o=document.querySelector(".sections[data-page-sections]"),r=Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings;if(!o)return null;if(n){var i=ke(document.querySelectorAll('body, #header, #page [data-controller][data-props], [data-controller="ProductGallery"]')),a=document.createElement("script"),s=n.parentNode;a.src=n.getAttribute("src"),s.removeChild(n),e=i,t=o.getAttribute("data-page-sections"),o.setAttribute("data-page-sections-freeze",t),o.removeAttribute("data-page-sections"),e.forEach((function(e){e.setAttribute("data-freeze-controller",e.getAttribute("data-controller")),e.removeAttribute("data-controller")})),Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings.productReviewsEnabled=!1,Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings.displayNativeProductReviewsEnabled=!1,Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings.displayImportedProductReviewsEnabled=!1,setTimeout((function(){ke(document.querySelectorAll('[data-show="true"] [data-animation-role], [data-animation-role="header-element"], .preFade.fadeIn, .preScale.scaleIn, .preSlide.slideIn, .preSlide.clipIn, .preFlex.flexIn')).forEach((function(e){e.classList.add("disable-executed-animation")})),ke(document.querySelectorAll(".animation-segment-parent-hidden")).forEach((function(e){e.classList.remove("animation-segment-parent-hidden");var t=e.cloneNode(!0);e.parentNode.insertBefore(t,e),e.parentNode.removeChild(e)})),s.appendChild(a),setTimeout((function(){return function(e){var t=o.getAttribute("data-page-sections-freeze");o.setAttribute("data-page-sections",t),o.removeAttribute("data-page-sections-freeze"),e.forEach((function(e){e.setAttribute("data-controller",e.getAttribute("data-freeze-controller")),e.removeAttribute("data-freeze-controller")})),Static.SQUARESPACE_CONTEXT.websiteSettings.storeSettings.merchandisingSettings=r}(i)}),150)}),150)}}function _e(e){return function(e){if(Array.isArray(e))return qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var De=n(670),Ne=n.n(De);function Oe(e){if(!e.length)return document.readyState,!1;function t(){Oe(e)}var n=e.shift(),o=document.createElement("script");if(function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],o=function(){var o=e.attributes[r].name,i=e.attributes[r].value;n.filter((function(e){return e===o})).length||t.setAttribute(o,i)},r=e.attributes.length-1;r>=0;r--)o()}(n,o),n.src)o.onload=t,o.onerror=t,o.src=n.src;else if(o.textContent=n.textContent,-1!==n.textContent.indexOf("document.write")){var r=Ne().generate();o.setAttribute("data-dynamic-id",r),o.textContent=function(e,t){return e.textContent.replace(/document\.write\s{0,}\(/g,"document.querySelector('script[data-dynamic-id=\"".concat(t,"\"]').insertAdjacentHTML('beforebegin',"))}(o,r)}n.parentNode.insertBefore(o,n),n.parentNode.removeChild(n),o.src||t()}function Ie(e){var t=[];e.querySelectorAll("script").forEach((function(e){var n=e.getAttribute("type");n&&"text/javascript"!==n||t.push(e)})),t.length&&Oe(t)}const Me=function(e){Ie(e)};var Re=n(357),Fe=n.n(Re);function He(e){return function(e){if(Array.isArray(e))return Be(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Be(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Be(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Be(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}const ze=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"body",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"img[data-src]";He("string"==typeof e?document.querySelectorAll(e+" "+t):e.querySelectorAll(t)).forEach((function(e){Fe().load(e,{load:!0}),e.classList.add("loaded")}))};function We(){window.Y?Y.all("img").each((function(e){e.refresh&&e.refresh()})):window.dispatchEvent(new Event("resize"))}function Ue(e){return function(e){if(Array.isArray(e))return Xe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Xe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Xe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Ye(e,t){function n(){history.pushState("",document.title,window.location.pathname+window.location.search)}var o=e.getAttribute("data-section-id")||e.getAttribute("id"),r=Ue(e.querySelectorAll('.margin-wrapper .video-lightbox-wrapper, .margin-wrapper a, a[class*="lightbox-link"], figure.has-clickthrough a'));r.length||(r=Ue(e.querySelectorAll(".slide, .image-wrapper"))),r.forEach((function(e){e.style.poinerEvent="none";var r=e.querySelector("img");if(!r)return null;var i=r.cloneNode(),a=r.getAttribute("alt"),s=e.getAttribute("data-title")||(a?a.split(" _TD_ ")[0]:""),l=e.getAttribute("data-description")||!!a&&a.split(" _TD_ ")[1]||"",c=s.match(/(\.jpg|\.jpeg|\.png|\.gif)$/i)?"":"<h3>".concat(s,"</h3>").concat(l||""),u=r.getAttribute("data-src"),d=e.getAttribute("href")||function(e){var t=e.querySelector(".sqs-video-wrapper"),n=t?t.getAttribute("data-html"):"",o=document.createElement("div");o.innerHTML=n;var r=o.querySelector("iframe");return!!r&&r.getAttribute("src")}(e)||"",f=d.match(/(youtu.be|youtube.com|vimeo.com|loom.com|wistia.com\/medias)/)?d:"",p="#lightbox>"+(f||u+"?format=2500w"),h=document.createElement("a");h.setAttribute("data-fancybox",o),t.hideCaption||!s&&!l||h.setAttribute("data-caption",c),h.setAttribute("href",p),h.className=e.className,e.appendChild(h),e.classList.add("lightbox-link-wrapper"),h.addEventListener("click",(function(e){return e.stopPropagation()})),setTimeout((function(){(r.style.top&&"0px"===r.style.top||!r.style.top)&&(h.appendChild(i),i.setAttribute("src",u),new MutationObserver((function(){i.setAttribute("style",r.getAttribute("style"))})).observe(r,{attributes:!0}))}),100);var g=e.querySelector(".sqs-video-overlay");if(g){var m=g.cloneNode(!0);h.appendChild(m),m.style.opacity="1",h.className="sqs-video-wrapper image-slide-anchor content-fill",h.style.cursor="pointer",r.className="thumb-image loaded"}h.addEventListener("click",(function(){return setTimeout(n,10)}))}))}const Ve=function(){var e=[500,750,1e3,1500,2500];[].slice.call(document.querySelectorAll(".c-lightbox img[data-image]")).forEach((function(t){var n=function(t){for(var n=0;n<e.length;n++)if(e[n]>t)return e[n]+"w";return e[e.length-1]+"w"}(2*t.parentNode.offsetWidth),o=t.getAttribute("data-image")+"?format="+n;t.setAttribute("src",o);var r=t.getAttribute("srcset");r&&t.setAttribute("srcset",r.split(",").splice(3).join(","))}))};function Ge(e){return Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ge(e)}function Ke(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var Ze=[];function Je(e,t){Ke(e.querySelectorAll('iframe[src*="autoplay"], iframe[data-src*="autoplay"]')).forEach((function(e){if(e.getAttribute("data-src")||e.setAttribute("data-src",e.getAttribute("src")),"open"===t)e.setAttribute("src",e.getAttribute("data-src"));else{e.removeAttribute("src");var n=e.cloneNode();e.parentNode.insertBefore(n,e),e.parentNode.removeChild(e)}}))}function et(){Ke(document.querySelectorAll(".sqs-audio-embed")).forEach((function(e){var t=e.querySelector(".playing .pause");t&&t.click()}))}function tt(e){setTimeout((function(){var t;"false"!==e.reinitSiteLifecycle70&&((t=$e(document.querySelectorAll("body > *:not(#lightbox-items-content) .captcha-container.rendered"))).forEach((function(e){return e.classList.remove("captcha-container")})),Ee().init(),t.forEach((function(e){return e.classList.add("captcha-container")}))),"false"!==e.reinitSiteLifecycle71&&je(),"false"!==e.reinitCommerceLifecycle&&window.Y&&Y.Squarespace.Commerce&&Y.Squarespace.Commerce.destroyCommerce&&(Y.Squarespace.Commerce.destroyCommerce(),_e(document.querySelectorAll('.c-lightbox[class*="is-open"] .sqs-add-to-cart-button')).forEach((function(e){var t=e.cloneNode(!0);e.parentNode.appendChild(t),e.parentNode.removeChild(e)})),Y.Squarespace.Commerce.initializeCommerce()),setTimeout(We,50),setTimeout(Ve,100)}),arguments.length>1&&void 0!==arguments[1]?arguments[1]:1e3)}function nt(e,t,n){if(t.contentLoaded)return Promise.resolve(t);var o=n.parentNode.parentNode,r=document.createElement("div");r.className="c-lightbox__loading";var i="page"===t.sourceType?Te(t.sourceType,t.target):t.content;return o.classList.add("is-loading"),o.appendChild(r),i.then((function(i){t.contentLoaded=!0,i&&"object"===Ge(i)?n.appendChild(i):i&&(n.innerHTML=i),e.codeInjection&&(n.innerHTML=n.innerHTML+decodeURI(e.codeInjection)),"page"===t.sourceType&&"object"===Ge(i)&&(!function(e,t){if(t.classList.contains("collection-type-gallery")){setTimeout((function(){t.querySelector(".slides[style]")||de('[id="'.concat(e,'"]'))}),500);var n=Y.one(t).one(".slides").getData("gallery"),o=t.querySelector(".slides"),r=Ke(o.querySelectorAll(".slides .slide")),i=Ke(o.querySelectorAll(".slides .slide .slide-meta"));o.style.display="",n&&n.refresh(),o.removeAttribute("data-collection-full-url"),r.forEach((function(e){return xe(e,["id","class","style"])})),i.forEach((function(e){e.removeAttribute("style"),e.firstElementChild||(e.innerHTML="")})),setTimeout((function(){window.dispatchEvent(new Event("resize"))}),1e3)}}("lightbox__".concat(t.id,"__content"),i),ze(i,"img:not([src])"),setTimeout((function(){Me(n)}),150),e.preloadContent?Je(n,"close"):tt(e,100)),setTimeout((function(){o.removeChild(r),o.classList.remove("is-loading"),o.classList.add("is-loaded")}),250)}))}function ot(e,t,n){var o="lightbox__"+t.id+"__content",r=t.link,i="page"===t.sourceType||"element"===t.sourceType?"#"+o:t.target;if(r.classList.add("lightbox-link"),r.classList.add("not-initialized"),r.setAttribute("href","#l-"+t.id),r.setAttribute("rel","nofollow"),r.setAttribute("data-id",t.id),r.setAttribute("data-src",i),r.setAttribute("data-target",t.target),r.setAttribute("data-source-type",t.sourceType),"inline"!==t.type&&"iframe"!==t.type||r.setAttribute("data-type",t.type),t.group&&r.setAttribute("data-fancybox",t.group),"image"!==t.sourceType&&"embed-video"!==t.sourceType&&r.setAttribute("data-touch",!1),"iframe"!==t.sourceType||"image"!==t.sourceType){var a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div");a.setAttribute("id",o),a.setAttribute("data-type",t.type),a.className="c-lightbox__content",t.group&&a.setAttribute("data-group",t.group),s.className="c-lightbox__content-wrapper",l.className="c-lightbox__content-inner",n.appendChild(a),a.appendChild(s),s.appendChild(l),t.contentContainer=l,(e.preloadContent||"page"!==t.sourceType)&&nt(e,t,t.contentContainer)}t.duplicateLinks&&t.duplicateLinks.forEach((function(e){e.classList.add("lightbox-link"),e.setAttribute("data-source-type",t.sourceType),e.setAttribute("href","#l-"+t.id),e.setAttribute("rel","nofollow"),e.addEventListener("click",(function(e){e.preventDefault(),t.link.click()}))}))}function rt(e){var t=e.parentNode.parentNode,n=te()(),o=t.querySelector(".c-lightbox__close"),r=o?window.getComputedStyle(o):"";function i(e){o&&n&&"0px"===r.right&&(o.style.transform=e?"translateX(-".concat(n,"px)"):"")}if("inline"!==t.getAttribute("data-type")||!t.getAttribute("data-group"))return null;t.style.height="100%",e.offsetHeight>t.offsetHeight?(t.classList.add("is-overflow"),i(!0)):(t.classList.remove("is-overflow"),i(!1)),t.style.height=""}function it(e,t){return t.onInit=function(e){e.group.length>1&&function(e){var t=e.$refs.container[0].querySelector(".c-lightbox__nav-dots");e.group.forEach((function(n,o){var r=document.createElement("li"),i=document.createElement("button");i.innerHTML="<span></span>",r.appendChild(i),t.appendChild(r),i.setAttribute("aria-label","Slide "+(o+1)),i.addEventListener("click",(function(){e.jumpTo(o)}))}))}(e)},t.beforeShow=function(t,n){var o=n.opts.$orig[0].getAttribute("data-id"),r=Ze.filter((function(e){return e.id===o}))[0],i=t.$refs.container[0];i.setAttribute("id","lightbox_"+(r.group?r.group:r.id)),i.setAttribute("data-type",r.type),r.group&&i.setAttribute("data-group",r.group),t.group.length>1&&function(e){Ke(e.$refs.container[0].querySelectorAll(".c-lightbox__nav-dots button")).forEach((function(t,n){t.classList.remove("is-active"),e.currIndex===n&&t.classList.add("is-active")}))}(t),e.preloadContent||nt(e,r,r.contentContainer).then((function(){rt(r.contentContainer),setTimeout((function(){return rt(r.contentContainer)}),500),t.current.$content[0].querySelector(".sqs-gallery")&&(window.dispatchEvent(new Event("resize")),setTimeout((function(){return window.dispatchEvent(new Event("resize"))}),100))})),rt(r.contentContainer),se.disable(),ue(!0,"c-lightbox"),We(),function(e){function t(e){return(e.getAttribute("href")||"").match(/^(http|\/|#close-lightbox)/)&&!e.getAttribute("target")}e.$refs.container[0].addEventListener("click",(function(n){(t(n.target)||t(n.target.parentNode)||t(n.target.parentNode.parentNode))&&e.close()}))}(t),et(),document.body.classList.add("lightbox-is-open")},t.afterShow=function(e){Je(e.current.$content[0],"open")},t.beforeClose=function(e){Je(e.current.$content[0],"close"),et(),function(e){var t=e.firstElementChild,n=t&&t.getAttribute?t.getAttribute("src"):"";n&&(n=n.replace(/\?format=[0-9]+w/,""));var o=document.querySelector('.sqs-gallery-thumbnails img[src^="'.concat(n,'"]'));o&&o.click()}(e.current.$content[0])},t.afterClose=function(){ue(),se.enable(),document.body.classList.remove("lightbox-is-open")},t}const at={init:function(e){var t=function(){var e=[];return Ke(document.querySelectorAll('a[href^="http"]:not([target="_blank"])')).forEach((function(t){t.getAttribute("href").match(/(youtu.be|youtube.com|vimeo.com|loom.com|wistia.com\/medias\/)/)&&e.push(t)})),e}();"true"!==e.replaceGalleryLightbox||p()||Ke(document.querySelectorAll(".sqs-block-gallery:not(.custom-lightbox),.gallery-grid:not(.custom-lightbox),.gallery-strips:not(.custom-lightbox),.gallery-masonry:not(.custom-lightbox),.gallery:not(.custom-lightbox)")).forEach((function(t){var n=JSON.parse(t.getAttribute("data-props")||t.getAttribute("data-block-json")||"{}");(n.lightboxEnabled||n.lightbox||!1)&&(t.classList.add("custom-lightbox"),Ye(t,{hideCaption:"true"===e.hideCaption}))})),"true"!==e.replaceBlockImageLightbox||p()||Ke(document.querySelectorAll(".sqs-block-image .lightbox")).forEach((function(t){!function(e,t){if(!e)return null;var n=e.querySelector("img[data-src]"),o=document.createElement("a");o.setAttribute("href","#lightbox>"+(n.getAttribute("src")||n.getAttribute("data-src")+"?format=2500w")),o.setAttribute("data-title",e.getAttribute("data-title")||""),o.setAttribute("data-description",e.getAttribute("data-description")||""),n.parentNode.appendChild(o),n.parentNode.classList.add("lightbox-link-wrapper"),o.appendChild(n.cloneNode()),o.addEventListener("click",(function(e){return e.stopPropagation()}));var r=o.getAttribute("data-title")||n.getAttribute("alt").split(" _TD_ ")[0],i=o.getAttribute("data-description")||n.getAttribute("alt").split(" _TD_ ")[1]||"",a=(r.match(/(\.jpg|\.jpeg|\.png|\.gif)$/i)||-1!==i.indexOf(r)?"":"<h3>".concat(r,"</h3>"))+"".concat(i||"");t.hideCaption||!r&&!i||o.setAttribute("data-caption",a)}(t,{hideCaption:"true"===e.hideCaption})})),"false"===e.videoLinksPrefix&&t.forEach((function(e){e.setAttribute("href","#lightbox>"+e.getAttribute("href"))})),"true"===e.attachCrossIconToVideo&&t.forEach((function(e){return e.setAttribute("data-small-btn","true")}));var n=document.querySelector("#lightbox-items-content");n||((n=document.createElement("div")).setAttribute("id","lightbox-items-content"),document.body.appendChild(n));var o=fe(Ke(document.querySelectorAll('[href*="#lightbox"]')).filter((function(e){return e.getAttribute("href").match(/#lightbox.{2,}/)}))),r=[],i=[],a=[];o.forEach((function(t){Ze.push(t),"page"!==t.sourceType?(t.content=Te(t.sourceType,t.target),r.push(t)):(e.preloadContent&&(t.content=Te(t.sourceType,t.target)),i.push(t))})),i.forEach((function(e){return a.push(e.content)})),Promise.all(a).then((function(){e.preloadContent&&tt(e)})),r.forEach((function(t){return ot(e,t,n)})),i.forEach((function(t){return ot(e,t,n)}));var s=ie(e);s=it(e,s),re(".lightbox-link.not-initialized").fancybox(s).each((function(e,t){t.classList.remove("not-initialized")})),window.addEventListener("resize",J(100,(function(){Ke(document.querySelectorAll(".c-lightbox__content-inner")).forEach((function(e){rt(e)}))})))}};function st(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lt(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}window.pluginLightbox=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e=Object.assign({disableRightClick:!0,preloadContent:!1,replaceGalleryLightbox:!1,reinitSiteLifecycle70:!0,reinitSiteLifecycle71:!0,reinitCommerceLifecycle:!0},e),p()&&(e.preloadContent=!1),Z.init(),f((function(){return at.init(e)})),c((function(){return at.init(e)})),l(".sqs-announcement-bar-url, .sqs-announcement-bar-text a, .sqs-popup-overlay-content .actions a, .gallery-reel-image-link, .user-items-list-carousel .user-items-list-carousel__slide a",(function(t){t.classList.contains("lightbox-link")&&(t.classList.contains("gallery-reel-image-link")||t.parentNode)&&t.setAttribute("href","#lightbox_"+t.getAttribute("data-target")),at.init(e)})),l(".sqs-widgets-confirmation.alert ~ .sqs-widgets-confirmation.alert",(function(){var e=st(document.querySelectorAll(".sqs-widgets-confirmation.alert")),t=[];if(e.length>1)for(var n=e[1].querySelector(".message").textContent,o=1;o<e.length;o++)e[o].querySelector(".message").textContent===n&&t.push(e[o]);t.forEach((function(e){return e.parentNode.removeChild(e)})),t.length&&e[0].querySelector(".confirmation-button").addEventListener("click",(function(){st(document.querySelectorAll(".sqs-widgets-confirmation-overlay")).forEach((function(e){return e.parentNode.removeChild(e)}))}))}))}})()})();