
!function(){var e={6359:function(e,t,n){!function(e){"use strict";e.fn.scrollTrigger=function(t){if(!window.IntersectionObserver)return void(document.documentElement.className+=" noIntersectionObsvr");const n=e(this),i=e.extend({root:null,rootMargin:"0px",threshold:.25,once:!0,animateClassName:"isVisible",animatableClass:"hasAnimation",beforeReveal:e=>e,afterReveal:()=>{}},t),o=new IntersectionObserver((t=>{e(t).each(((e,t)=>{t.intersectionRatio>=i.threshold?((e=>{e.target.classList.add(i.animateClassName),i.afterReveal(e.target)})(t),i.once&&o.unobserve(t.target)):i.once||(e=>{e.target.classList.remove(i.animateClassName)})(t)}))}),i);e(n).each(((t,n)=>{i.beforeReveal(n)&&(e(n).addClass(i.animatableClass),o.observe(n))}))}}(n(9479))},585:function(){var e;"function"!=typeof(e=window.Element.prototype).matches&&(e.matches=e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||function(e){for(var t=this,n=(t.document||t.ownerDocument).querySelectorAll(e),i=0;n[i]&&n[i]!==t;)++i;return Boolean(n[i])}),"function"!=typeof e.closest&&(Element.prototype.closest=function(e){var t=this;if(!document.documentElement.contains(t))return null;do{if(t.matches(e))return t;t=t.parentElement}while(null!==t);return null})},473:function(){"undefined"!=typeof window&&window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(e,t){t=t||window;for(var n=0;n<this.length;n++)e.call(t,this[n],n,this)})},3957:function(){String.prototype.includes||(String.prototype.includes=function(e,t){"use strict";return"number"!=typeof t&&(t=0),!(t+e.length>this.length)&&-1!==this.indexOf(e,t)})},8007:function(e,t,n){var i,o=n(9479);i="h2, h3, h4, h5",o("ul li").each((function(){var e=o(this);if(e.find(i).length){var t=e.find(i).first().prop("tagName").split("")[1];e.addClass("heading".concat(t))}}))},5102:function(e,t,n){var i=n(9479);i("\n\t\t.news.default .record,\n\t\t.news.masonry .record,\n\t\t.news.jobs .record,\n\t\t.users.list .record\n\t").each((function(){var e=i(this),t=e.find(".mainLink");e.on("click.card",(function(){!window.getSelection().toString()&&t[0].click()}))}))},3543:function(e,t,n){var i=n(9479);i("p:not(.button) a[href^=mailto]").each((function(){var e=i(this).attr("href").split("mailto:")[1].split("@"),t=e[0]+"<wbr>@",n=e[1].split(".").map((function(e){return"<wbr>".concat(e)})).join(".");i(this).html(t+n)}))},7667:function(e,t,n){var i=n(9479);!function(){var e=i(".users.single");if(e.length){var t=e.find(".card");t.find(".cardContent").text().trim().length||t.find(".wrapper").addClass("isHidden")}}()},9479:function(e,t,n){var i=n(9755),o=n(7672);o.$=i,o.jQuery=i,o.jquery=i,e.exports=i},7672:function(e,t,n){"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==n.g)return n.g}return e}()},9755:function(e,t){var n;!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(i,o){"use strict";var r=[],s=Object.getPrototypeOf,a=r.slice,l=r.flat?function(e){return r.flat.call(e)}:function(e){return r.concat.apply([],e)},c=r.push,u=r.indexOf,h={},d=h.toString,f=h.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var i,o,r=(n=n||b).createElement("script");if(r.text=e,t)for(i in w)(o=t[i]||t.getAttribute&&t.getAttribute(i))&&r.setAttribute(i,o);n.head.appendChild(r).parentNode.removeChild(r)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[d.call(e)]||"object":typeof e}var E="3.7.1",T=/HTML$/i,C=function(e,t){return new C.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function P(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}C.fn=C.prototype={jquery:E,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.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:r.sort,splice:r.splice},C.extend=C.fn.extend=function(){var e,t,n,i,o,r,s=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(c&&i&&(C.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[t],r=o&&!Array.isArray(n)?[]:o||C.isPlainObject(n)?n:{},o=!1,s[t]=C.extend(c,r,i)):void 0!==i&&(s[t]=i));return s},C.extend({expando:"jQuery"+(E+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]"!==d.call(e))&&(!(t=s(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===g)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){x(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(k(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,o=e.nodeType;if(!o)for(;t=e[i++];)n+=C.text(t);return 1===o||11===o?e.textContent:9===o?e.documentElement.textContent:3===o||4===o?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?C.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)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!T.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,o=e.length;i<n;i++)e[o++]=t[i];return e.length=o,e},grep:function(e,t,n){for(var i=[],o=0,r=e.length,s=!n;o<r;o++)!t(e[o],o)!==s&&i.push(e[o]);return i},map:function(e,t,n){var i,o,r=0,s=[];if(k(e))for(i=e.length;r<i;r++)null!=(o=t(e[r],r,n))&&s.push(o);else for(r in e)null!=(o=t(e[r],r,n))&&s.push(o);return l(s)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=r[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var O=r.pop,A=r.sort,M=r.splice,L="[\\x20\\t\\r\\n\\f]",j=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g");C.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function N(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}C.escapeSelector=function(e){return(e+"").replace(D,N)};var R=b,F=c;!function(){var e,t,n,o,s,l,c,h,d,p,g=F,v=C.expando,y=0,b=0,w=ee(),x=ee(),S=ee(),E=ee(),T=function(e,t){return e===t&&(s=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",N="\\["+L+"*("+D+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+L+"*\\]",I=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+N+")*)|.*)\\)|)",z=new RegExp(L+"+","g"),H=new RegExp("^"+L+"*,"+L+"*"),_=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),q=new RegExp(L+"|>"),B=new RegExp(I),W=new RegExp("^"+D+"$"),V={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+N),PSEUDO:new RegExp("^"+I),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,U=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+L+"?|\\\\([^\\r\\n\\f])","g"),Z=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))},K=function(){le()},J=de((function(e){return!0===e.disabled&&P(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(r=a.call(R.childNodes),R.childNodes),r[R.childNodes.length].nodeType}catch(e){g={apply:function(e,t){F.apply(e,a.call(t))},call:function(e){F.apply(e,a.call(arguments,1))}}}function Q(e,t,n,i){var o,r,s,a,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,h)){if(11!==y&&(c=U.exec(e)))if(o=c[1]){if(9===y){if(!(s=t.getElementById(o)))return n;if(s.id===o)return g.call(n,s),n}else if(p&&(s=p.getElementById(o))&&Q.contains(t,s)&&s.id===o)return g.call(n,s),n}else{if(c[2])return g.apply(n,t.getElementsByTagName(e)),n;if((o=c[3])&&t.getElementsByClassName)return g.apply(n,t.getElementsByClassName(o)),n}if(!(E[e+" "]||d&&d.test(e))){if(f=e,p=t,1===y&&(q.test(e)||_.test(e))){for((p=Y.test(e)&&ae(t.parentNode)||t)==t&&m.scope||((a=t.getAttribute("id"))?a=C.escapeSelector(a):t.setAttribute("id",a=v)),r=(u=ue(e)).length;r--;)u[r]=(a?"#"+a:":scope")+" "+he(u[r]);f=u.join(",")}try{return g.apply(n,p.querySelectorAll(f)),n}catch(t){E(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(j,"$1"),t,n,i)}function ee(){var e=[];return function n(i,o){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=o}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return P(t,"input")&&t.type===e}}function oe(e){return function(t){return(P(t,"input")||P(t,"button"))&&t.type===e}}function re(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&&J(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(n,i){for(var o,r=e([],n.length,t),s=r.length;s--;)n[o=r[s]]&&(n[o]=!(i[o]=n[o]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:R;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,h=!C.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&R!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",K),m.getById=ne((function(e){return c.appendChild(e).id=C.expando,!l.getElementsByName||!l.getElementsByName(C.expando).length})),m.disconnectedMatch=ne((function(e){return p.call(e,"*")})),m.scope=ne((function(){return l.querySelectorAll(":scope")})),m.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),m.getById?(t.filter.ID=function(e){var t=e.replace(G,Z);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,Z);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&h){var n,i,o,r=t.getElementById(e);if(r){if((n=r.getAttributeNode("id"))&&n.value===e)return[r];for(o=t.getElementsByName(e),i=0;r=o[i++];)if((n=r.getAttributeNode("id"))&&n.value===e)return[r]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&h)return t.getElementsByClassName(e)},d=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+L+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+v+"-]").length||d.push("~="),e.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+L+"*name"+L+"*="+L+"*(?:''|\"\")")})),m.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),T=function(e,t){if(e===t)return s=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!m.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==R&&Q.contains(R,e)?-1:t===l||t.ownerDocument==R&&Q.contains(R,t)?1:o?u.call(o,e)-u.call(o,t):0:4&n?-1:1)},l):l}for(e in Q.matches=function(e,t){return Q(e,null,null,t)},Q.matchesSelector=function(e,t){if(le(e),h&&!E[t+" "]&&(!d||!d.test(t)))try{var n=p.call(e,t);if(n||m.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){E(t,!0)}return Q(t,l,null,[e]).length>0},Q.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),C.contains(e,t)},Q.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],o=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!h):void 0;return void 0!==o?o:e.getAttribute(n)},Q.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},C.uniqueSort=function(e){var t,n=[],i=0,r=0;if(s=!m.sortStable,o=!m.sortStable&&a.call(e,0),A.call(e,T),s){for(;t=e[r++];)t===e[r]&&(i=n.push(r));for(;i--;)M.call(e,n[i],1)}return o=null,e},C.fn.uniqueSort=function(){return this.pushStack(C.uniqueSort(a.apply(this)))},t=C.expr={cacheLength:50,createPseudo:te,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(G,Z),e[3]=(e[3]||e[4]||e[5]||"").replace(G,Z),"~="===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]||Q.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]&&Q.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&&B.test(n)&&(t=ue(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(G,Z).toLowerCase();return"*"===e?function(){return!0}:function(e){return P(e,t)}},CLASS:function(e){var t=w[e+" "];return t||(t=new RegExp("(^|"+L+")"+e+"("+L+"|$)"))&&w(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(i){var o=Q.attr(i,e);return null==o?"!="===t:!t||(o+="","="===t?o===n:"!="===t?o!==n:"^="===t?n&&0===o.indexOf(n):"*="===t?n&&o.indexOf(n)>-1:"$="===t?n&&o.slice(-n.length)===n:"~="===t?(" "+o.replace(z," ")+" ").indexOf(n)>-1:"|="===t&&(o===n||o.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,o){var r="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===i&&0===o?function(e){return!!e.parentNode}:function(t,n,l){var c,u,h,d,f,p=r!==s?"nextSibling":"previousSibling",g=t.parentNode,m=a&&t.nodeName.toLowerCase(),b=!l&&!a,w=!1;if(g){if(r){for(;p;){for(h=t;h=h[p];)if(a?P(h,m):1===h.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&b){for(w=(d=(c=(u=g[v]||(g[v]={}))[e]||[])[0]===y&&c[1])&&c[2],h=d&&g.childNodes[d];h=++d&&h&&h[p]||(w=d=0)||f.pop();)if(1===h.nodeType&&++w&&h===t){u[e]=[y,d,w];break}}else if(b&&(w=d=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===w)for(;(h=++d&&h&&h[p]||(w=d=0)||f.pop())&&(!(a?P(h,m):1===h.nodeType)||!++w||(b&&((u=h[v]||(h[v]={}))[e]=[y,w]),h!==t)););return(w-=o)===i||w%i==0&&w/i>=0}}},PSEUDO:function(e,n){var i,o=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Q.error("unsupported pseudo: "+e);return o[v]?o(n):o.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,r=o(e,n),s=r.length;s--;)e[i=u.call(e,r[s])]=!(t[i]=r[s])})):function(e){return o(e,0,i)}):o}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(j,"$1"));return i[v]?te((function(e,t,n,o){for(var r,s=i(e,null,o,[]),a=e.length;a--;)(r=s[a])&&(e[a]=!(t[a]=r))})):function(e,o,r){return t[0]=e,i(t,null,r,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Q(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,Z),function(t){return(t.textContent||C.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||Q.error("unsupported lang: "+e),e=e.replace(G,Z).toLowerCase(),function(t){var n;do{if(n=h?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(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:re(!1),disabled:re(!0),checked:function(e){return P(e,"input")&&!!e.checked||P(e,"option")&&!!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!t.pseudos.empty(e)},header:function(e){return X.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return P(e,"input")&&"button"===e.type||P(e,"button")},text:function(e){var t;return P(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:se((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=oe(e);function ce(){}function ue(e,n){var i,o,r,s,a,l,c,u=x[e+" "];if(u)return n?0:u.slice(0);for(a=e,l=[],c=t.preFilter;a;){for(s in i&&!(o=H.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),i=!1,(o=_.exec(a))&&(i=o.shift(),r.push({value:i,type:o[0].replace(j," ")}),a=a.slice(i.length)),t.filter)!(o=V[s].exec(a))||c[s]&&!(o=c[s](o))||(i=o.shift(),r.push({value:i,type:s,matches:o}),a=a.slice(i.length));if(!i)break}return n?a.length:a?Q.error(e):x(e,l).slice(0)}function he(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function de(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=b++;return t.first?function(t,n,o){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,o);return!1}:function(t,n,l){var c,u,h=[y,a];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),o&&P(t,o))t=t[i]||t;else{if((c=u[r])&&c[0]===y&&c[1]===a)return h[2]=c[2];if(u[r]=h,h[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var o=e.length;o--;)if(!e[o](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,o){for(var r,s=[],a=0,l=e.length,c=null!=t;a<l;a++)(r=e[a])&&(n&&!n(r,i,o)||(s.push(r),c&&t.push(a)));return s}function ge(e,t,n,i,o,r){return i&&!i[v]&&(i=ge(i)),o&&!o[v]&&(o=ge(o,r)),te((function(r,s,a,l){var c,h,d,f,p=[],m=[],v=s.length,y=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)Q(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),b=!e||!r&&t?y:pe(y,p,e,a,l);if(n?n(b,f=o||(r?e:v||i)?[]:s,a,l):f=b,i)for(c=pe(f,m),i(c,[],a,l),h=c.length;h--;)(d=c[h])&&(f[m[h]]=!(b[m[h]]=d));if(r){if(o||e){if(o){for(c=[],h=f.length;h--;)(d=f[h])&&c.push(b[h]=d);o(null,f=[],c,l)}for(h=f.length;h--;)(d=f[h])&&(c=o?u.call(r,d):p[h])>-1&&(r[c]=!(s[c]=d))}}else f=pe(f===s?f.splice(v,f.length):f),o?o(null,s,f,l):g.apply(s,f)}))}function me(e){for(var i,o,r,s=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],c=a?1:0,h=de((function(e){return e===i}),l,!0),d=de((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,o){var r=!a&&(o||t!=n)||((i=t).nodeType?h(e,t,o):d(e,t,o));return i=null,r}];c<s;c++)if(o=t.relative[e[c].type])f=[de(fe(f),o)];else{if((o=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(r=++c;r<s&&!t.relative[e[r].type];r++);return ge(c>1&&fe(f),c>1&&he(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(j,"$1"),o,c<r&&me(e.slice(c,r)),r<s&&me(e=e.slice(r)),r<s&&he(e))}f.push(o)}return fe(f)}function ve(e,i){var o,r=[],s=[],a=S[e+" "];if(!a){for(i||(i=ue(e)),o=i.length;o--;)(a=me(i[o]))[v]?r.push(a):s.push(a);a=S(e,function(e,i){var o=i.length>0,r=e.length>0,s=function(s,a,c,u,d){var f,p,m,v=0,b="0",w=s&&[],x=[],S=n,E=s||r&&t.find.TAG("*",d),T=y+=null==S?1:Math.random()||.1,k=E.length;for(d&&(n=a==l||a||d);b!==k&&null!=(f=E[b]);b++){if(r&&f){for(p=0,a||f.ownerDocument==l||(le(f),c=!h);m=e[p++];)if(m(f,a||l,c)){g.call(u,f);break}d&&(y=T)}o&&((f=!m&&f)&&v--,s&&w.push(f))}if(v+=b,o&&b!==v){for(p=0;m=i[p++];)m(w,x,a,c);if(s){if(v>0)for(;b--;)w[b]||x[b]||(x[b]=O.call(u));x=pe(x)}g.apply(u,x),d&&!s&&x.length>0&&v+i.length>1&&C.uniqueSort(u)}return d&&(y=T,n=S),w};return o?te(s):s}(s,r)),a.selector=e}return a}function ye(e,n,i,o){var r,s,a,l,c,u="function"==typeof e&&e,d=!o&&ue(e=u.selector||e);if(i=i||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&h&&t.relative[s[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(G,Z),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(s.shift().value.length)}for(r=V.needsContext.test(e)?0:s.length;r--&&(a=s[r],!t.relative[l=a.type]);)if((c=t.find[l])&&(o=c(a.matches[0].replace(G,Z),Y.test(s[0].type)&&ae(n.parentNode)||n))){if(s.splice(r,1),!(e=o.length&&he(s)))return g.apply(i,o),i;break}}return(u||ve(e,d))(o,n,!h,i,!n||Y.test(e)&&ae(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,m.sortStable=v.split("").sort(T).join("")===v,le(),m.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),C.find=Q,C.expr[":"]=C.expr.pseudos,C.unique=C.uniqueSort,Q.compile=ve,Q.select=ye,Q.setDocument=le,Q.tokenize=ue,Q.escape=C.escapeSelector,Q.getText=C.text,Q.isXML=C.isXMLDoc,Q.selectors=C.expr,Q.support=C.support,Q.uniqueSort=C.uniqueSort}();var I=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&C(e).is(n))break;i.push(e)}return i},z=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},H=C.expr.match.needsContext,_=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function q(e,t,n){return v(t)?C.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?C.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?C.grep(e,(function(e){return u.call(t,e)>-1!==n})):C.filter(t,e,n)}C.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?C.find.matchesSelector(i,e)?[i]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<i;t++)if(C.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)C.find(e,o[t],n);return i>1?C.uniqueSort(n):n},filter:function(e){return this.pushStack(q(this,e||[],!1))},not:function(e){return this.pushStack(q(this,e||[],!0))},is:function(e){return!!q(this,"string"==typeof e&&H.test(e)?C(e):e||[],!1).length}});var B,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||B,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),_.test(i[1])&&C.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=b.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,B=C(b);var V=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function X(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&C(e);if(!H.test(e))for(;i<o;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&C.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?C.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(C(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(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return I(e,"parentNode")},parentsUntil:function(e,t,n){return I(e,"parentNode",n)},next:function(e){return X(e,"nextSibling")},prev:function(e){return X(e,"previousSibling")},nextAll:function(e){return I(e,"nextSibling")},prevAll:function(e){return I(e,"previousSibling")},nextUntil:function(e,t,n){return I(e,"nextSibling",n)},prevUntil:function(e,t,n){return I(e,"previousSibling",n)},siblings:function(e){return z((e.parentNode||{}).firstChild,e)},children:function(e){return z(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(P(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(n,i){var o=C.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=C.filter(i,o)),this.length>1&&($[e]||C.uniqueSort(o),V.test(e)&&o.reverse()),this.pushStack(o)}}));var U=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function G(e){throw e}function Z(e,t,n,i){var o;try{e&&v(o=e.promise)?o.call(e).done(t).fail(n):e&&v(o=e.then)?o.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(U)||[],(function(e,n){t[n]=!0})),t}(e):C.extend({},e);var t,n,i,o,r=[],s=[],a=-1,l=function(){for(o=o||e.once,i=t=!0;s.length;a=-1)for(n=s.shift();++a<r.length;)!1===r[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=r.length,n=!1);e.memory||(n=!1),t=!1,o&&(r=n?[]:"")},c={add:function(){return r&&(n&&!t&&(a=r.length-1,s.push(n)),function t(n){C.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||r.push(i):i&&i.length&&"string"!==S(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var n;(n=C.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(e){return e?C.inArray(e,r)>-1:r.length>0},empty:function(){return r&&(r=[]),this},disable:function(){return o=s=[],r=n="",this},disabled:function(){return!r},lock:function(){return o=s=[],n||t||(r=n=""),this},locked:function(){return!!o},fireWith:function(e,n){return o||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],n="pending",o={state:function(){return n},always:function(){return r.done(arguments).fail(arguments),this},catch:function(e){return o.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(n){C.each(t,(function(t,i){var o=v(e[i[4]])&&e[i[4]];r[i[1]]((function(){var e=o&&o.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,o?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,o){var r=0;function s(e,t,n,o){return function(){var a=this,l=arguments,c=function(){var i,c;if(!(e<r)){if((i=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?o?c.call(i,s(r,t,Y,o),s(r,t,G,o)):(r++,c.call(i,s(r,t,Y,o),s(r,t,G,o),s(r,t,Y,t.notifyWith))):(n!==Y&&(a=void 0,l=[i]),(o||t.resolveWith)(a,l))}},u=o?c:function(){try{c()}catch(i){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(i,u.error),e+1>=r&&(n!==G&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(C.Deferred.getErrorHook?u.error=C.Deferred.getErrorHook():C.Deferred.getStackHook&&(u.error=C.Deferred.getStackHook()),i.setTimeout(u))}}return C.Deferred((function(i){t[0][3].add(s(0,i,v(o)?o:Y,i.notifyWith)),t[1][3].add(s(0,i,v(e)?e:Y)),t[2][3].add(s(0,i,v(n)?n:G))})).promise()},promise:function(e){return null!=e?C.extend(e,o):o}},r={};return C.each(t,(function(e,i){var s=i[2],a=i[5];o[i[1]]=s.add,a&&s.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(i[3].fire),r[i[0]]=function(){return r[i[0]+"With"](this===r?void 0:this,arguments),this},r[i[0]+"With"]=s.fireWith})),o.promise(r),e&&e.call(r,r),r},when:function(e){var t=arguments.length,n=t,i=Array(n),o=a.call(arguments),r=C.Deferred(),s=function(e){return function(n){i[e]=this,o[e]=arguments.length>1?a.call(arguments):n,--t||r.resolveWith(i,o)}};if(t<=1&&(Z(e,r.done(s(n)).resolve,r.reject,!t),"pending"===r.state()||v(o[n]&&o[n].then)))return r.then();for(;n--;)Z(o[n],s(n),r.reject);return r.promise()}});var K=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&K.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){i.setTimeout((function(){throw e}))};var J=C.Deferred();function Q(){b.removeEventListener("DOMContentLoaded",Q),i.removeEventListener("load",Q),C.ready()}C.fn.ready=function(e){return J.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||J.resolveWith(b,[C]))}}),C.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(C.ready):(b.addEventListener("DOMContentLoaded",Q),i.addEventListener("load",Q));var ee=function(e,t,n,i,o,r,s){var a=0,l=e.length,c=null==n;if("object"===S(n))for(a in o=!0,n)ee(e,t,a,n[a],!0,r,s);else if(void 0!==i&&(o=!0,v(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(C(e),n)})),t))for(;a<l;a++)t(e[a],n,s?i:i.call(e[a],a,t(e[a],n)));return o?e:c?t.call(e):l?t(e[0],n):r},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function oe(e){return e.replace(te,"ms-").replace(ne,ie)}var re=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=C.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},re(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,o=this.cache(e);if("string"==typeof t)o[oe(t)]=n;else for(i in t)o[oe(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][oe(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,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(oe):(t=oe(t))in i?[t]:t.match(U)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||C.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var ae=new se,le=new se,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function he(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}C.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),C.fn.extend({data:function(e,t){var n,i,o,r=this[0],s=r&&r.attributes;if(void 0===e){if(this.length&&(o=le.get(r),1===r.nodeType&&!ae.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=oe(i.slice(5)),he(r,i,o[i]));ae.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=le.get(r,e))||void 0!==(n=he(r,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),C.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=ae.get(e,t),n&&(!i||Array.isArray(n)?i=ae.access(e,t,C.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=C.queue(e,t),i=n.length,o=n.shift(),r=C._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,(function(){C.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:C.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),C.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?C.queue(this[0],e):void 0===t?this:this.each((function(){var n=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=C.Deferred(),r=this,s=this.length,a=function(){--i||o.resolveWith(r,[r])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ae.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],ge=b.documentElement,me=function(e){return C.contains(e.ownerDocument,e)},ve={composed:!0};ge.getRootNode&&(me=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&me(e)&&"none"===C.css(e,"display")};function be(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return C.css(e,t,"")},l=a(),c=n&&n[3]||(C.cssNumber[t]?"":"px"),u=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&fe.exec(C.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)C.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,C.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,o=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=o)),o}var we={};function xe(e){var t,n=e.ownerDocument,i=e.nodeName,o=we[i];return o||(t=n.body.appendChild(n.createElement(i)),o=C.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),we[i]=o,o)}function Se(e,t){for(var n,i,o=[],r=0,s=e.length;r<s;r++)(i=e[r]).style&&(n=i.style.display,t?("none"===n&&(o[r]=ae.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ye(i)&&(o[r]=xe(i))):"none"!==n&&(o[r]="none",ae.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}C.fn.extend({show:function(){return Se(this,!0)},hide:function(){return Se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?C(this).show():C(this).hide()}))}});var Ee,Te,Ce=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Pe=/^$|^module$|\/(?:java|ecma)script/i;Ee=b.createDocumentFragment().appendChild(b.createElement("div")),(Te=b.createElement("input")).setAttribute("type","radio"),Te.setAttribute("checked","checked"),Te.setAttribute("name","t"),Ee.appendChild(Te),m.checkClone=Ee.cloneNode(!0).cloneNode(!0).lastChild.checked,Ee.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Ee.cloneNode(!0).lastChild.defaultValue,Ee.innerHTML="<option></option>",m.option=!!Ee.lastChild;var Oe={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 Ae(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&P(e,t)?C.merge([e],n):n}function Me(e,t){for(var n=0,i=e.length;n<i;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}Oe.tbody=Oe.tfoot=Oe.colgroup=Oe.caption=Oe.thead,Oe.th=Oe.td,m.option||(Oe.optgroup=Oe.option=[1,"<select multiple='multiple'>","</select>"]);var Le=/<|&#?\w+;/;function je(e,t,n,i,o){for(var r,s,a,l,c,u,h=t.createDocumentFragment(),d=[],f=0,p=e.length;f<p;f++)if((r=e[f])||0===r)if("object"===S(r))C.merge(d,r.nodeType?[r]:r);else if(Le.test(r)){for(s=s||h.appendChild(t.createElement("div")),a=(ke.exec(r)||["",""])[1].toLowerCase(),l=Oe[a]||Oe._default,s.innerHTML=l[1]+C.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;C.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(r));for(h.textContent="",f=0;r=d[f++];)if(i&&C.inArray(r,i)>-1)o&&o.push(r);else if(c=me(r),s=Ae(h.appendChild(r),"script"),c&&Me(s),n)for(u=0;r=s[u++];)Pe.test(r.type||"")&&n.push(r);return h}var De=/^([^.]*)(?:\.(.+)|)/;function Ne(){return!0}function Re(){return!1}function Fe(e,t,n,i,o,r){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(i=i||n,n=void 0),t)Fe(e,a,n,i,t[a],r);return e}if(null==i&&null==o?(o=n,i=n=void 0):null==o&&("string"==typeof n?(o=i,i=void 0):(o=i,i=n,n=void 0)),!1===o)o=Re;else if(!o)return e;return 1===r&&(s=o,o=function(e){return C().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=C.guid++)),e.each((function(){C.event.add(this,t,o,i,n)}))}function Ie(e,t,n){n?(ae.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var n,i=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=a.call(arguments),ae.set(this,t,i),this[t](),n=ae.get(this,t),ae.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(ae.set(this,t,C.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Ne)}})):void 0===ae.get(e,t)&&C.event.add(e,t,Ne)}C.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=ae.get(e);if(re(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&C.find.matchesSelector(ge,o),n.guid||(n.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(U)||[""]).length;c--;)f=g=(a=De.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=C.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=C.event.special[f]||{},u=C.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&C.expr.match.needsContext.test(o),namespace:p.join(".")},r),(d=l[f])||((d=l[f]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),h.add&&(h.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),o?d.splice(d.delegateCount++,0,u):d.push(u),C.event.global[f]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=ae.hasData(e)&&ae.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(U)||[""]).length;c--;)if(f=g=(a=De.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=C.event.special[f]||{},d=l[f=(i?h.delegateType:h.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=r=d.length;r--;)u=d[r],!o&&g!==u.origType||n&&n.guid!==u.guid||a&&!a.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(d.splice(r,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(e,u));s&&!d.length&&(h.teardown&&!1!==h.teardown.call(e,p,m.handle)||C.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)C.event.remove(e,f+t[c],n,i,!0);C.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=new Array(arguments.length),l=C.event.fix(e),c=(ae.get(this,"events")||Object.create(null))[l.type]||[],u=C.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=C.event.handlers.call(this,l,c),t=0;(o=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=o.elem,n=0;(r=o.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==r.namespace&&!l.rnamespace.test(r.namespace)||(l.handleObj=r,l.data=r.data,void 0!==(i=((C.event.special[r.origType]||{}).handle||r.handler).apply(o.elem,a))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,o,r,s,a=[],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(r=[],s={},n=0;n<l;n++)void 0===s[o=(i=t[n]).selector+" "]&&(s[o]=i.needsContext?C(o,this).index(c)>-1:C.find(o,this,null,[c]).length),s[o]&&r.push(i);r.length&&a.push({elem:c,handlers:r})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(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[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&P(t,"input")&&Ie(t,"click",!0),!1},trigger:function(e){var t=this||e;return Ce.test(t.type)&&t.click&&P(t,"input")&&Ie(t,"click"),!0},_default:function(e){var t=e.target;return Ce.test(t.type)&&t.click&&P(t,"input")&&ae.get(t,"click")||P(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ne:Re,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&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Re,isPropagationStopped:Re,isImmediatePropagationStopped:Re,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ne,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ne,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ne,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.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},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=ae.get(this,"handle"),i=C.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else C.event.simulate(t,e.target,C.event.fix(e))}C.event.special[e]={setup:function(){var i;if(Ie(this,e,!0),!b.documentMode)return!1;(i=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(i||0)+1)},trigger:function(){return Ie(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},C.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,r=ae.get(o,t);r||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),ae.set(o,t,(r||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=b.documentMode?this:i,r=ae.get(o,t)-1;r?ae.set(o,t,r):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),ae.remove(o,t))}}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||C.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),C.fn.extend({on:function(e,t,n,i){return Fe(this,e,t,n,i)},one:function(e,t,n,i){return Fe(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,C(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(o in e)this.off(o,t,e[o]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Re),this.each((function(){C.event.remove(this,e,n,t)}))}});var ze=/<script|<style|<link/i,He=/checked\s*(?:[^=]|=\s*.checked.)/i,_e=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function qe(e,t){return P(e,"table")&&P(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Be(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ve(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(o in ae.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)C.event.add(t,o,a[o][n]);le.hasData(e)&&(r=le.access(e),s=C.extend({},r),le.set(t,s))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ce.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function Xe(e,t,n,i){t=l(t);var o,r,s,a,c,u,h=0,d=e.length,f=d-1,p=t[0],g=v(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&He.test(p))return e.each((function(o){var r=e.eq(o);g&&(t[0]=p.call(this,o,r.html())),Xe(r,t,n,i)}));if(d&&(r=(o=je(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(a=(s=C.map(Ae(o,"script"),Be)).length;h<d;h++)c=o,h!==f&&(c=C.clone(c,!0,!0),a&&C.merge(s,Ae(c,"script"))),n.call(e[h],c,h);if(a)for(u=s[s.length-1].ownerDocument,C.map(s,We),h=0;h<a;h++)c=s[h],Pe.test(c.type||"")&&!ae.access(c,"globalEval")&&C.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(_e,""),c,u))}return e}function Ue(e,t,n){for(var i,o=t?C.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||C.cleanData(Ae(i)),i.parentNode&&(n&&me(i)&&Me(Ae(i,"script")),i.parentNode.removeChild(i));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,s,a=e.cloneNode(!0),l=me(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(s=Ae(a),i=0,o=(r=Ae(e)).length;i<o;i++)$e(r[i],s[i]);if(t)if(n)for(r=r||Ae(e),s=s||Ae(a),i=0,o=r.length;i<o;i++)Ve(r[i],s[i]);else Ve(e,a);return(s=Ae(a,"script")).length>0&&Me(s,!l&&Ae(e,"script")),a},cleanData:function(e){for(var t,n,i,o=C.event.special,r=0;void 0!==(n=e[r]);r++)if(re(n)){if(t=n[ae.expando]){if(t.events)for(i in t.events)o[i]?C.event.remove(n,i):C.removeEvent(n,i,t.handle);n[ae.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Ue(this,e,!0)},remove:function(e){return Ue(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?C.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 Xe(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||qe(this,e).appendChild(e)}))},prepend:function(){return Xe(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 Xe(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Xe(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&&(C.cleanData(Ae(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!ze.test(e)&&!Oe[(ke.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(C.cleanData(Ae(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Xe(this,arguments,(function(t){var n=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(Ae(this)),n&&n.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var n,i=[],o=C(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),C(o[s])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ye=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Ge=/^--/,Ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Ke=function(e,t,n){var i,o,r={};for(o in t)r[o]=e.style[o],e.style[o]=t[o];for(o in i=n.call(e),t)e.style[o]=r[o];return i},Je=new RegExp(pe.join("|"),"i");function Qe(e,t,n){var i,o,r,s,a=Ge.test(t),l=e.style;return(n=n||Ze(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(j,"$1")||void 0),""!==s||me(e)||(s=C.style(e,t)),!m.pixelBoxStyles()&&Ye.test(s)&&Je.test(t)&&(i=l.width,o=l.minWidth,r=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=o,l.maxWidth=r)),void 0!==s?s+"":s}function et(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%",ge.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),o=36===t(e.width),u.style.position="absolute",r=12===t(u.offsetWidth/3),ge.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,r,s,a,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r},reliableTrDimensions:function(){var e,t,n,o;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",ge.appendChild(e).appendChild(t).appendChild(n),o=i.getComputedStyle(t),a=parseInt(o.height,10)+parseInt(o.borderTopWidth,10)+parseInt(o.borderBottomWidth,10)===t.offsetHeight,ge.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function ot(e){var t=C.cssProps[e]||it[e];return t||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var rt=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=C.css(e,n+pe[s],!0,o)),i?("content"===n&&(l-=C.css(e,"padding"+pe[s],!0,o)),"margin"!==n&&(l-=C.css(e,"border"+pe[s]+"Width",!0,o))):(l+=C.css(e,"padding"+pe[s],!0,o),"padding"!==n?l+=C.css(e,"border"+pe[s]+"Width",!0,o):a+=C.css(e,"border"+pe[s]+"Width",!0,o));return!i&&r>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-r-l-a-.5))||0),l+c}function ut(e,t,n){var i=Ze(e),o=(!m.boxSizingReliable()||n)&&"border-box"===C.css(e,"boxSizing",!1,i),r=o,s=Qe(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&P(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===C.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===C.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ct(e,t,n||(o?"border":"content"),r,i,s)+"px"}function ht(e,t,n,i,o){return new ht.prototype.init(e,t,n,i,o)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=oe(t),l=Ge.test(t),c=e.style;if(l||(t=ot(a)),s=C.cssHooks[t]||C.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(o=s.get(e,!1,i))?o:c[t];"string"===(r=typeof n)&&(o=fe.exec(n))&&o[1]&&(n=be(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(C.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var o,r,s,a=oe(t);return Ge.test(t)||(t=ot(a)),(s=C.cssHooks[t]||C.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Qe(e,t,i)),"normal"===o&&t in at&&(o=at[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,n,i){if(n)return!rt.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Ke(e,st,(function(){return ut(e,t,i)}))},set:function(e,n,i){var o,r=Ze(e),s=!m.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===C.css(e,"boxSizing",!1,r),l=i?ct(e,t,i,a,r):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-ct(e,t,"border",!1,r)-.5)),l&&(o=fe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=C.css(e,t)),lt(0,n,l)}}})),C.cssHooks.marginLeft=et(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Qe(e,"marginLeft"))||e.getBoundingClientRect().left-Ke(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+pe[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(C.cssHooks[e+t].set=lt)})),C.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=Ze(e),o=t.length;s<o;s++)r[t[s]]=C.css(e,t[s],!1,i);return r}return void 0!==n?C.style(e,t,n):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=ht,ht.prototype={constructor:ht,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(C.cssNumber[n]?"":"px")},cur:function(){var e=ht.propHooks[this.prop];return e&&e.get?e.get(this):ht.propHooks._default.get(this)},run:function(e){var t,n=ht.propHooks[this.prop];return this.options.duration?this.pos=t=C.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):ht.propHooks._default.set(this),this}},ht.prototype.init.prototype=ht.prototype,ht.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=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[ot(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},ht.propHooks.scrollTop=ht.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=ht.prototype.init,C.fx.step={};var dt,ft,pt=/^(?:toggle|show|hide)$/,gt=/queueHooks$/;function mt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(mt):i.setTimeout(mt,C.fx.interval),C.fx.tick())}function vt(){return i.setTimeout((function(){dt=void 0})),dt=Date.now()}function yt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=pe[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function bt(e,t,n){for(var i,o=(wt.tweeners[t]||[]).concat(wt.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function wt(e,t,n){var i,o,r=0,s=wt.prefilters.length,a=C.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=dt||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),r=0,s=c.tweens.length;r<s;r++)c.tweens[r].run(i);return a.notifyWith(e,[c,i,n]),i<1&&s?n:(s||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=C.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(o)return this;for(o=!0;n<i;n++)c.tweens[n].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,o,r,s;for(n in e)if(o=t[i=oe(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=C.cssHooks[i])&&"expand"in s)for(n in r=s.expand(r),delete e[i],r)n in e||(e[n]=r[n],t[n]=o);else t[i]=o}(u,c.opts.specialEasing);r<s;r++)if(i=wt.prefilters[r].call(c,e,u,c.opts))return v(i.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return C.map(u,bt,c),v(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),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(wt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(U);for(var n,i=0,o=e.length;i<o;i++)n=e[i],wt.tweeners[n]=wt.tweeners[n]||[],wt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,o,r,s,a,l,c,u,h="width"in t||"height"in t,d=this,f={},p=e.style,g=e.nodeType&&ye(e),m=ae.get(e,"fxshow");for(i in n.queue||(null==(s=C._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,C.queue(e,"fx").length||s.empty.fire()}))}))),t)if(o=t[i],pt.test(o)){if(delete t[i],r=r||"toggle"===o,o===(g?"hide":"show")){if("show"!==o||!m||void 0===m[i])continue;g=!0}f[i]=m&&m[i]||C.style(e,i)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(f))for(i in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=ae.get(e,"display")),"none"===(u=C.css(e,"display"))&&(c?u=c:(Se([e],!0),c=e.style.display||c,u=C.css(e,"display"),Se([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===C.css(e,"float")&&(l||(d.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=ae.access(e,"fxshow",{display:c}),r&&(m.hidden=!g),g&&Se([e],!0),d.done((function(){for(i in g||Se([e]),ae.remove(e,"fxshow"),f)C.style(e,i,f[i])}))),l=bt(g?m[i]:0,i,d),i in m||(m[i]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?wt.prefilters.unshift(e):wt.prefilters.push(e)}}),C.speed=function(e,t,n){var i=e&&"object"==typeof e?C.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return C.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in C.fx.speeds?i.duration=C.fx.speeds[i.duration]:i.duration=C.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&C.dequeue(this,i.queue)},i},C.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=C.isEmptyObject(e),r=C.speed(t,n,i),s=function(){var t=wt(this,C.extend({},e),r);(o||ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,o||!1===r.queue?this.each(s):this.queue(r.queue,s)},stop:function(e,t,n){var i=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,o=null!=e&&e+"queueHooks",r=C.timers,s=ae.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&gt.test(o)&&i(s[o]);for(o=r.length;o--;)r[o].elem!==this||null!=e&&r[o].queue!==e||(r[o].anim.stop(n),t=!1,r.splice(o,1));!t&&n||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=C.timers,s=i?i.length:0;for(n.finish=!0,C.queue(this,e,[]),o&&o.stop&&o.stop.call(this,!0),t=r.length;t--;)r[t].elem===this&&r[t].queue===e&&(r[t].anim.stop(!0),r.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var n=C.fn[t];C.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,o)}})),C.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),C.timers=[],C.fx.tick=function(){var e,t=0,n=C.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||C.fx.stop(),dt=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ft||(ft=!0,mt())},C.fx.stop=function(){ft=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(o)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var xt,St=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return ee(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?C.prop(e,t,n):(1===r&&C.isXMLDoc(e)||(o=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?xt:void 0)),void 0!==n?null===n?void C.removeAttr(e,t):o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:(e.setAttribute(t,n+""),n):o&&"get"in o&&null!==(i=o.get(e,t))?i:null==(i=C.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&P(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,o=t&&t.match(U);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),xt={set:function(e,t,n){return!1===t?C.removeAttr(e,n):e.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=St[t]||C.find.attr;St[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=St[s],St[s]=o,o=null!=n(e,t,i)?s:null,St[s]=r),o}}));var Et=/^(?:input|select|textarea|button)$/i,Tt=/^(?:a|area)$/i;function Ct(e){return(e.match(U)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function Pt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(U)||[]}C.fn.extend({prop:function(e,t){return ee(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&C.isXMLDoc(e)||(t=C.propFix[t]||t,o=C.propHooks[t]),void 0!==n?o&&"set"in o&&void 0!==(i=o.set(e,n,t))?i:e[t]=n:o&&"get"in o&&null!==(i=o.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):Et.test(e.nodeName)||Tt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.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)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,n,i,o,r,s;return v(e)?this.each((function(t){C(this).addClass(e.call(this,t,kt(this)))})):(t=Pt(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Ct(i)+" "){for(r=0;r<t.length;r++)o=t[r],n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=Ct(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,i,o,r,s;return v(e)?this.each((function(t){C(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=Pt(e)).length?this.each((function(){if(i=kt(this),n=1===this.nodeType&&" "+Ct(i)+" "){for(r=0;r<t.length;r++)for(o=t[r];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=Ct(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,o,r,s=typeof e,a="string"===s||Array.isArray(e);return v(e)?this.each((function(n){C(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=Pt(e),this.each((function(){if(a)for(r=C(this),o=0;o<n.length;o++)i=n[o],r.hasClass(i)?r.removeClass(i):r.addClass(i);else void 0!==e&&"boolean"!==s||((i=kt(this))&&ae.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+Ct(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Ot=/\r/g;C.fn.extend({val:function(e){var t,n,i,o=this[0];return arguments.length?(i=v(e),this.each((function(n){var o;1===this.nodeType&&(null==(o=i?e.call(this,n,C(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=C.map(o,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=C.valHooks[o.type]||C.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(Ot,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:Ct(C.text(e))}},select:{get:function(e){var t,n,i,o=e.options,r=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?r+1:o.length;for(i=r<0?l:s?r:0;i<l;i++)if(((n=o[i]).selected||i===r)&&!n.disabled&&(!n.parentNode.disabled||!P(n.parentNode,"optgroup"))){if(t=C(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=C.makeArray(t),s=o.length;s--;)((i=o[s]).selected=C.inArray(C.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var At=i.location,Mt={guid:Date.now()},Lt=/\?/;C.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||C.error("Invalid XML: "+(n?C.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var jt=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,n,o){var r,s,a,l,c,u,h,d,p=[n||b],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(s=d=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!jt.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=o?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]:C.makeArray(t,[e]),h=C.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(n,t))){if(!o&&!h.noBubble&&!y(n)){for(l=h.delegateType||g,jt.test(l+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||b)&&p.push(a.defaultView||a.parentWindow||i)}for(r=0;(s=p[r++])&&!e.isPropagationStopped();)d=s,e.type=r>1?l:h.bindType||g,(u=(ae.get(s,"events")||Object.create(null))[e.type]&&ae.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&re(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=g,o||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(p.pop(),t)||!re(n)||c&&v(n[g])&&!y(n)&&((a=n[c])&&(n[c]=null),C.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Dt),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Dt),C.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=C.extend(new C.Event,n,{type:e,isSimulated:!0});C.event.trigger(i,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return C.event.trigger(e,t,n,!0)}});var Nt=/\[\]$/,Rt=/\r?\n/g,Ft=/^(?:submit|button|image|reset|file)$/i,It=/^(?:input|select|textarea|keygen)/i;function zt(e,t,n,i){var o;if(Array.isArray(t))C.each(t,(function(t,o){n||Nt.test(e)?i(e,o):zt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==S(t))i(e,t);else for(o in t)zt(e+"["+o+"]",t[o],n,i)}C.param=function(e,t){var n,i=[],o=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){o(this.name,this.value)}));else for(n in e)zt(n,e[n],t,o);return i.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&It.test(this.nodeName)&&!Ft.test(e)&&(this.checked||!Ce.test(e))})).map((function(e,t){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,(function(e){return{name:t.name,value:e.replace(Rt,"\r\n")}})):{name:t.name,value:n.replace(Rt,"\r\n")}})).get()}});var Ht=/%20/g,_t=/#.*$/,qt=/([?&])_=[^&]*/,Bt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Vt=/^\/\//,$t={},Xt={},Ut="*/".concat("*"),Yt=b.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(U)||[];if(v(n))for(;i=r[o++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Zt(e,t,n,i){var o={},r=e===Xt;function s(a){var l;return o[a]=!0,C.each(e[a]||[],(function(e,a){var c=a(t,n,i);return"string"!=typeof c||r||o[c]?r?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!o["*"]&&s("*")}function Kt(e,t){var n,i,o=C.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&C.extend(!0,e,i),e}Yt.href=At.href,C.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:{"*":Ut,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":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Kt(Kt(e,C.ajaxSettings),t):Kt(C.ajaxSettings,e)},ajaxPrefilter:Gt($t),ajaxTransport:Gt(Xt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,o,r,s,a,l,c,u,h,d,f=C.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?C(p):C.event,m=C.Deferred(),v=C.Callbacks("once memory"),y=f.statusCode||{},w={},x={},S="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Bt.exec(r);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?r:null},setRequestHeader:function(e,t){return null==c&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)E.always(e[E.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),T(0,t),this}};if(m.promise(E),f.url=((e||f.url||At.href)+"").replace(Vt,At.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(U)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Zt($t,f,t,E),c)return E;for(h in(u=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),o=f.url.replace(_t,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ht,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(Lt.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(qt,"$1"),d=(Lt.test(o)?"&":"?")+"_="+Mt.guid+++d),f.url=o+d),f.ifModified&&(C.lastModified[o]&&E.setRequestHeader("If-Modified-Since",C.lastModified[o]),C.etag[o]&&E.setRequestHeader("If-None-Match",C.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ut+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(p,E,f)||c))return E.abort();if(S="abort",v.add(f.complete),E.done(f.success),E.fail(f.error),n=Zt(Xt,f,t,E)){if(E.readyState=1,u&&g.trigger("ajaxSend",[E,f]),c)return E;f.async&&f.timeout>0&&(a=i.setTimeout((function(){E.abort("timeout")}),f.timeout));try{c=!1,n.send(w,T)}catch(e){if(c)throw e;T(-1,e)}}else T(-1,"No Transport");function T(e,t,s,l){var h,d,b,w,x,S=t;c||(c=!0,a&&i.clearTimeout(a),n=void 0,r=l||"",E.readyState=e>0?4:0,h=e>=200&&e<300||304===e,s&&(w=function(e,t,n){for(var i,o,r,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(o in a)if(a[o]&&a[o].test(i)){l.unshift(o);break}if(l[0]in n)r=l[0];else{for(o in n){if(!l[0]||e.converters[o+" "+l[0]]){r=o;break}s||(s=o)}r=r||s}if(r)return r!==l[0]&&l.unshift(r),n[r]}(f,E,s)),!h&&C.inArray("script",f.dataTypes)>-1&&C.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(e,t,n,i){var o,r,s,a,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(r=u.shift();r;)if(e.responseFields[r]&&(n[e.responseFields[r]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=r,r=u.shift())if("*"===r)r=l;else if("*"!==l&&l!==r){if(!(s=c[l+" "+r]||c["* "+r]))for(o in c)if((a=o.split(" "))[1]===r&&(s=c[l+" "+a[0]]||c["* "+a[0]])){!0===s?s=c[o]:!0!==c[o]&&(r=a[0],u.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+r}}}return{state:"success",data:t}}(f,w,E,h),h?(f.ifModified&&((x=E.getResponseHeader("Last-Modified"))&&(C.lastModified[o]=x),(x=E.getResponseHeader("etag"))&&(C.etag[o]=x)),204===e||"HEAD"===f.type?S="nocontent":304===e?S="notmodified":(S=w.state,d=w.data,h=!(b=w.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),E.status=e,E.statusText=(t||S)+"",h?m.resolveWith(p,[d,S,E]):m.rejectWith(p,[E,S,b]),E.statusCode(y),y=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[E,f,h?d:b]),v.fireWith(p,[E,S]),u&&(g.trigger("ajaxComplete",[E,f]),--C.active||C.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return C.get(e,t,n,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,n,i,o){return v(n)&&(o=o||i,i=n,n=void 0),C.ajax(C.extend({url:e,type:t,dataType:o,data:n,success:i},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,n){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,n)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=C(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 v(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){C(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Qt=C.ajaxSettings.xhr();m.cors=!!Qt&&"withCredentials"in Qt,m.ajax=Qt=!!Qt,C.ajaxTransport((function(e){var t,n;if(m.cors||Qt&&!e.crossDomain)return{send:function(o,r){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||o["X-Requested-With"]||(o["X-Requested-With"]="XMLHttpRequest"),o)a.setRequestHeader(s,o[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?r(0,"error"):r(a.status,a.statusText):r(Jt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.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 C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&o("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||C.expando+"_"+Mt.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,n){var o,r,s,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return o=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+o):!1!==e.jsonp&&(e.url+=(Lt.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||C.error(o+" was not called"),s[0]},e.dataTypes[0]="json",r=i[o],i[o]=function(){s=arguments},n.always((function(){void 0===r?C(i).removeProp(o):i[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,tn.push(o)),s&&v(r)&&r(s[0]),s=r=void 0})),"script"})),m.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),C.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),r=!n&&[],(o=_.exec(e))?[t.createElement(o[1])]:(o=je([e],t,r),r&&r.length&&C(r).remove(),C.merge([],o.childNodes)));var i,o,r},C.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=Ct(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&C.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){r=arguments,s.html(i?C("<div>").append(C.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=C.css(e,"position"),u=C(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(r+l).indexOf("auto")>-1?(s=(i=u.position()).top,o=i.left):(s=parseFloat(r)||0,o=parseFloat(l)||0),v(t)&&(t=t.call(e,n,C.extend({},a))),null!=t.top&&(h.top=t.top-a.top+s),null!=t.left&&(h.left=t.left-a.left+o),"using"in t?t.using.call(e,h):u.css(h)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.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,i=this[0],o={top:0,left:0};if("fixed"===C.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),o.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-C.css(i,"marginTop",!0),left:t.left-o.left-C.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||ge}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;C.fn[e]=function(i){return ee(this,(function(e,i,o){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===o)return r?r[t]:e[i];r?r.scrollTo(n?r.pageXOffset:o,n?o:r.pageYOffset):e[i]=o}),e,i,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=et(m.pixelPosition,(function(e,n){if(n)return n=Qe(e,t),Ye.test(n)?C(e).position()[t]+"px":n}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){C.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return ee(this,(function(t,n,o){var r;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(r=t.documentElement,Math.max(t.body["scroll"+e],r["scroll"+e],t.body["offset"+e],r["offset"+e],r["client"+e])):void 0===o?C.css(t,n,a):C.style(t,n,o,a)}),t,s?o:void 0,s)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.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,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),C.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){C.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var on=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var n,i,o;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=a.call(arguments,2),o=function(){return e.apply(t||this,i.concat(a.call(arguments)))},o.guid=e.guid=e.guid||C.guid++,o},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=P,C.isFunction=v,C.isWindow=y,C.camelCase=oe,C.type=S,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(on,"$1")},void 0===(n=function(){return C}.apply(t,[]))||(e.exports=n);var rn=i.jQuery,sn=i.$;return C.noConflict=function(e){return i.$===C&&(i.$=sn),e&&i.jQuery===C&&(i.jQuery=rn),C},void 0===o&&(i.jQuery=i.$=C),C}))},6220:function(e,t,n){"use strict";n(752),n(228),n(1694),n(4254);var i=n(6145);e.exports=i.f("iterator")},509:function(e,t,n){"use strict";var i=n(9985),o=n(3691),r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(o(e)+" is not a function")}},3550:function(e,t,n){"use strict";var i=n(9985),o=String,r=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw new r("Can't set "+o(e)+" as a prototype")}},7370:function(e,t,n){"use strict";var i=n(4201),o=n(5391),r=n(2560).f,s=i("unscopables"),a=Array.prototype;void 0===a[s]&&r(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},5027:function(e,t,n){"use strict";var i=n(8999),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw new r(o(e)+" is not an object")}},4328:function(e,t,n){"use strict";var i=n(5290),o=n(7578),r=n(6310),s=function(e){return function(t,n,s){var a,l=i(t),c=r(l),u=o(s,c);if(e&&n!=n){for(;c>u;)if((a=l[u++])!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}};e.exports={includes:s(!0),indexOf:s(!1)}},6648:function(e,t,n){"use strict";var i=n(8844),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},926:function(e,t,n){"use strict";var i=n(3043),o=n(9985),r=n(6648),s=n(4201)("toStringTag"),a=Object,l="Arguments"===r(function(){return arguments}());e.exports=i?r:function(e){var t,n,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),s))?n:l?r(t):"Object"===(i=r(t))&&o(t.callee)?"Arguments":i}},8758:function(e,t,n){"use strict";var i=n(6812),o=n(9152),r=n(2474),s=n(2560);e.exports=function(e,t,n){for(var a=o(t),l=s.f,c=r.f,u=0;u<a.length;u++){var h=a[u];i(e,h)||n&&i(n,h)||l(e,h,c(t,h))}}},1748:function(e,t,n){"use strict";var i=n(3689);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7807:function(e){"use strict";e.exports=function(e,t){return{value:e,done:t}}},5773:function(e,t,n){"use strict";var i=n(7697),o=n(2560),r=n(5684);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},5684:function(e){"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},1880:function(e,t,n){"use strict";var i=n(9985),o=n(2560),r=n(8702),s=n(5014);e.exports=function(e,t,n,a){a||(a={});var l=a.enumerable,c=void 0!==a.name?a.name:t;if(i(n)&&r(n,c,a),a.global)l?e[t]=n:s(t,n);else{try{a.unsafe?e[t]&&(l=!0):delete e[t]}catch(e){}l?e[t]=n:o.f(e,t,{value:n,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return e}},5014:function(e,t,n){"use strict";var i=n(9037),o=Object.defineProperty;e.exports=function(e,t){try{o(i,e,{value:t,configurable:!0,writable:!0})}catch(n){i[e]=t}return t}},7697:function(e,t,n){"use strict";var i=n(3689);e.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},2659:function(e){"use strict";var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},6420:function(e,t,n){"use strict";var i=n(9037),o=n(8999),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},6338:function(e){"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},3265:function(e,t,n){"use strict";var i=n(6420)("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},71:function(e){"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3615:function(e,t,n){"use strict";var i,o,r=n(9037),s=n(71),a=r.process,l=r.Deno,c=a&&a.versions||l&&l.version,u=c&&c.v8;u&&(o=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&s&&(!(i=s.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=s.match(/Chrome\/(\d+)/))&&(o=+i[1]),e.exports=o},2739:function(e){"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9989:function(e,t,n){"use strict";var i=n(9037),o=n(2474).f,r=n(5773),s=n(1880),a=n(5014),l=n(8758),c=n(5266);e.exports=function(e,t){var n,u,h,d,f,p=e.target,g=e.global,m=e.stat;if(n=g?i:m?i[p]||a(p,{}):(i[p]||{}).prototype)for(u in t){if(d=t[u],h=e.dontCallGetSet?(f=o(n,u))&&f.value:n[u],!c(g?u:p+(m?".":"#")+u,e.forced)&&void 0!==h){if(typeof d==typeof h)continue;l(d,h)}(e.sham||h&&h.sham)&&r(d,"sham",!0),s(n,u,d,e)}}},3689:function(e){"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7215:function(e,t,n){"use strict";var i=n(3689);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},2615:function(e,t,n){"use strict";var i=n(7215),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},1236:function(e,t,n){"use strict";var i=n(7697),o=n(6812),r=Function.prototype,s=i&&Object.getOwnPropertyDescriptor,a=o(r,"name"),l=a&&"something"===function(){}.name,c=a&&(!i||i&&s(r,"name").configurable);e.exports={EXISTS:a,PROPER:l,CONFIGURABLE:c}},2743:function(e,t,n){"use strict";var i=n(8844),o=n(509);e.exports=function(e,t,n){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},8844:function(e,t,n){"use strict";var i=n(7215),o=Function.prototype,r=o.call,s=i&&o.bind.bind(r,r);e.exports=i?s:function(e){return function(){return r.apply(e,arguments)}}},6058:function(e,t,n){"use strict";var i=n(9037),o=n(9985);e.exports=function(e,t){return arguments.length<2?(n=i[e],o(n)?n:void 0):i[e]&&i[e][t];var n}},4849:function(e,t,n){"use strict";var i=n(509),o=n(981);e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},9037:function(e,t,n){"use strict";var i=function(e){return e&&e.Math===Math&&e};e.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},6812:function(e,t,n){"use strict";var i=n(8844),o=n(690),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},7248:function(e){"use strict";e.exports={}},2688:function(e,t,n){"use strict";var i=n(6058);e.exports=i("document","documentElement")},8506:function(e,t,n){"use strict";var i=n(7697),o=n(3689),r=n(6420);e.exports=!i&&!o((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},4413:function(e,t,n){"use strict";var i=n(8844),o=n(3689),r=n(6648),s=Object,a=i("".split);e.exports=o((function(){return!s("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?a(e,""):s(e)}:s},6738:function(e,t,n){"use strict";var i=n(8844),o=n(9985),r=n(4091),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},618:function(e,t,n){"use strict";var i,o,r,s=n(9834),a=n(9037),l=n(8999),c=n(5773),u=n(6812),h=n(4091),d=n(2713),f=n(7248),p="Object already initialized",g=a.TypeError,m=a.WeakMap;if(s||h.state){var v=h.state||(h.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,i=function(e,t){if(v.has(e))throw new g(p);return t.facade=e,v.set(e,t),t},o=function(e){return v.get(e)||{}},r=function(e){return v.has(e)}}else{var y=d("state");f[y]=!0,i=function(e,t){if(u(e,y))throw new g(p);return t.facade=e,c(e,y,t),t},o=function(e){return u(e,y)?e[y]:{}},r=function(e){return u(e,y)}}e.exports={set:i,get:o,has:r,enforce:function(e){return r(e)?o(e):i(e,{})},getterFor:function(e){return function(t){var n;if(!l(t)||(n=o(t)).type!==e)throw new g("Incompatible receiver, "+e+" required");return n}}}},9985:function(e,t,n){"use strict";var i=n(2659),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},5266:function(e,t,n){"use strict";var i=n(3689),o=n(9985),r=/#|\.prototype\./,s=function(e,t){var n=l[a(e)];return n===u||n!==c&&(o(t)?i(t):!!t)},a=s.normalize=function(e){return String(e).replace(r,".").toLowerCase()},l=s.data={},c=s.NATIVE="N",u=s.POLYFILL="P";e.exports=s},981:function(e){"use strict";e.exports=function(e){return null==e}},8999:function(e,t,n){"use strict";var i=n(9985),o=n(2659),r=o.all;e.exports=o.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:i(e)||e===r}:function(e){return"object"==typeof e?null!==e:i(e)}},3931:function(e){"use strict";e.exports=!1},734:function(e,t,n){"use strict";var i=n(6058),o=n(9985),r=n(3622),s=n(9525),a=Object;e.exports=s?function(e){return"symbol"==typeof e}:function(e){var t=i("Symbol");return o(t)&&r(t.prototype,a(e))}},974:function(e,t,n){"use strict";var i=n(2013).IteratorPrototype,o=n(5391),r=n(5684),s=n(5997),a=n(9478),l=function(){return this};e.exports=function(e,t,n,c){var u=t+" Iterator";return e.prototype=o(i,{next:r(+!c,n)}),s(e,u,!1,!0),a[u]=l,e}},1934:function(e,t,n){"use strict";var i=n(9989),o=n(2615),r=n(3931),s=n(1236),a=n(9985),l=n(974),c=n(1868),u=n(9385),h=n(5997),d=n(5773),f=n(1880),p=n(4201),g=n(9478),m=n(2013),v=s.PROPER,y=s.CONFIGURABLE,b=m.IteratorPrototype,w=m.BUGGY_SAFARI_ITERATORS,x=p("iterator"),S="keys",E="values",T="entries",C=function(){return this};e.exports=function(e,t,n,s,p,m,k){l(n,t,s);var P,O,A,M=function(e){if(e===p&&R)return R;if(!w&&e&&e in D)return D[e];switch(e){case S:case E:case T:return function(){return new n(this,e)}}return function(){return new n(this)}},L=t+" Iterator",j=!1,D=e.prototype,N=D[x]||D["@@iterator"]||p&&D[p],R=!w&&N||M(p),F="Array"===t&&D.entries||N;if(F&&(P=c(F.call(new e)))!==Object.prototype&&P.next&&(r||c(P)===b||(u?u(P,b):a(P[x])||f(P,x,C)),h(P,L,!0,!0),r&&(g[L]=C)),v&&p===E&&N&&N.name!==E&&(!r&&y?d(D,"name",E):(j=!0,R=function(){return o(N,this)})),p)if(O={values:M(E),keys:m?R:M(S),entries:M(T)},k)for(A in O)(w||j||!(A in D))&&f(D,A,O[A]);else i({target:t,proto:!0,forced:w||j},O);return r&&!k||D[x]===R||f(D,x,R,{name:p}),g[t]=R,O}},2013:function(e,t,n){"use strict";var i,o,r,s=n(3689),a=n(9985),l=n(8999),c=n(5391),u=n(1868),h=n(1880),d=n(4201),f=n(3931),p=d("iterator"),g=!1;[].keys&&("next"in(r=[].keys())?(o=u(u(r)))!==Object.prototype&&(i=o):g=!0),!l(i)||s((function(){var e={};return i[p].call(e)!==e}))?i={}:f&&(i=c(i)),a(i[p])||h(i,p,(function(){return this})),e.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},9478:function(e){"use strict";e.exports={}},6310:function(e,t,n){"use strict";var i=n(3126);e.exports=function(e){return i(e.length)}},8702:function(e,t,n){"use strict";var i=n(8844),o=n(3689),r=n(9985),s=n(6812),a=n(7697),l=n(1236).CONFIGURABLE,c=n(6738),u=n(618),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),y=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=e.exports=function(e,t,n){"Symbol("===g(f(t),0,7)&&(t="["+m(f(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!s(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),y&&n&&s(n,"arity")&&e.length!==n.arity&&p(e,"length",{value:n.arity});try{n&&s(n,"constructor")&&n.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var i=h(e);return s(i,"source")||(i.source=v(b,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return r(this)&&d(this).source||c(this)}),"toString")},8828:function(e){"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},5391:function(e,t,n){"use strict";var i,o=n(5027),r=n(8920),s=n(2739),a=n(7248),l=n(2688),c=n(6420),u=n(2713),h="prototype",d="script",f=u("IE_PROTO"),p=function(){},g=function(e){return"<"+d+">"+e+"</"+d+">"},m=function(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){try{i=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;v="undefined"!=typeof document?document.domain&&i?m(i):(t=c("iframe"),n="java"+d+":",t.style.display="none",l.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F):m(i);for(var o=s.length;o--;)delete v[h][s[o]];return v()};a[f]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(p[h]=o(e),n=new p,p[h]=null,n[f]=e):n=v(),void 0===t?n:r.f(n,t)}},8920:function(e,t,n){"use strict";var i=n(7697),o=n(5648),r=n(2560),s=n(5027),a=n(5290),l=n(300);t.f=i&&!o?Object.defineProperties:function(e,t){s(e);for(var n,i=a(t),o=l(t),c=o.length,u=0;c>u;)r.f(e,n=o[u++],i[n]);return e}},2560:function(e,t,n){"use strict";var i=n(7697),o=n(8506),r=n(5648),s=n(5027),a=n(8360),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,h="enumerable",d="configurable",f="writable";t.f=i?r?function(e,t,n){if(s(e),t=a(t),s(n),"function"==typeof e&&"prototype"===t&&"value"in n&&f in n&&!n[f]){var i=u(e,t);i&&i[f]&&(e[t]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:h in n?n[h]:i[h],writable:!1})}return c(e,t,n)}:c:function(e,t,n){if(s(e),t=a(t),s(n),o)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},2474:function(e,t,n){"use strict";var i=n(7697),o=n(2615),r=n(9556),s=n(5684),a=n(5290),l=n(8360),c=n(6812),u=n(8506),h=Object.getOwnPropertyDescriptor;t.f=i?h:function(e,t){if(e=a(e),t=l(t),u)try{return h(e,t)}catch(e){}if(c(e,t))return s(!o(r.f,e,t),e[t])}},2741:function(e,t,n){"use strict";var i=n(4948),o=n(2739).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},7518:function(e,t){"use strict";t.f=Object.getOwnPropertySymbols},1868:function(e,t,n){"use strict";var i=n(6812),o=n(9985),r=n(690),s=n(2713),a=n(1748),l=s("IE_PROTO"),c=Object,u=c.prototype;e.exports=a?c.getPrototypeOf:function(e){var t=r(e);if(i(t,l))return t[l];var n=t.constructor;return o(n)&&t instanceof n?n.prototype:t instanceof c?u:null}},3622:function(e,t,n){"use strict";var i=n(8844);e.exports=i({}.isPrototypeOf)},4948:function(e,t,n){"use strict";var i=n(8844),o=n(6812),r=n(5290),s=n(4328).indexOf,a=n(7248),l=i([].push);e.exports=function(e,t){var n,i=r(e),c=0,u=[];for(n in i)!o(a,n)&&o(i,n)&&l(u,n);for(;t.length>c;)o(i,n=t[c++])&&(~s(u,n)||l(u,n));return u}},300:function(e,t,n){"use strict";var i=n(4948),o=n(2739);e.exports=Object.keys||function(e){return i(e,o)}},9556:function(e,t){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,o=i&&!n.call({1:2},1);t.f=o?function(e){var t=i(this,e);return!!t&&t.enumerable}:n},9385:function(e,t,n){"use strict";var i=n(2743),o=n(5027),r=n(3550);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=i(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,i){return o(n),r(i),t?e(n,i):n.__proto__=i,n}}():void 0)},5073:function(e,t,n){"use strict";var i=n(3043),o=n(926);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},5899:function(e,t,n){"use strict";var i=n(2615),o=n(9985),r=n(8999),s=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&o(n=e.toString)&&!r(a=i(n,e)))return a;if(o(n=e.valueOf)&&!r(a=i(n,e)))return a;if("string"!==t&&o(n=e.toString)&&!r(a=i(n,e)))return a;throw new s("Can't convert object to primitive value")}},9152:function(e,t,n){"use strict";var i=n(6058),o=n(8844),r=n(2741),s=n(7518),a=n(5027),l=o([].concat);e.exports=i("Reflect","ownKeys")||function(e){var t=r.f(a(e)),n=s.f;return n?l(t,n(e)):t}},496:function(e,t,n){"use strict";var i=n(9037);e.exports=i},4684:function(e,t,n){"use strict";var i=n(981),o=TypeError;e.exports=function(e){if(i(e))throw new o("Can't call method on "+e);return e}},5997:function(e,t,n){"use strict";var i=n(2560).f,o=n(6812),r=n(4201)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,r)&&i(e,r,{configurable:!0,value:t})}},2713:function(e,t,n){"use strict";var i=n(3430),o=n(4630),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},4091:function(e,t,n){"use strict";var i=n(9037),o=n(5014),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},3430:function(e,t,n){"use strict";var i=n(3931),o=n(4091);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.2/LICENSE",source:"https://github.com/zloirock/core-js"})},730:function(e,t,n){"use strict";var i=n(8844),o=n(8700),r=n(4327),s=n(4684),a=i("".charAt),l=i("".charCodeAt),c=i("".slice),u=function(e){return function(t,n){var i,u,h=r(s(t)),d=o(n),f=h.length;return d<0||d>=f?e?"":void 0:(i=l(h,d))<55296||i>56319||d+1===f||(u=l(h,d+1))<56320||u>57343?e?a(h,d):i:e?c(h,d,d+2):u-56320+(i-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},146:function(e,t,n){"use strict";var i=n(3615),o=n(3689),r=n(9037).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol("symbol detection");return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7578:function(e,t,n){"use strict";var i=n(8700),o=Math.max,r=Math.min;e.exports=function(e,t){var n=i(e);return n<0?o(n+t,0):r(n,t)}},5290:function(e,t,n){"use strict";var i=n(4413),o=n(4684);e.exports=function(e){return i(o(e))}},8700:function(e,t,n){"use strict";var i=n(8828);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},3126:function(e,t,n){"use strict";var i=n(8700),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},690:function(e,t,n){"use strict";var i=n(4684),o=Object;e.exports=function(e){return o(i(e))}},8732:function(e,t,n){"use strict";var i=n(2615),o=n(8999),r=n(734),s=n(4849),a=n(5899),l=n(4201),c=TypeError,u=l("toPrimitive");e.exports=function(e,t){if(!o(e)||r(e))return e;var n,l=s(e,u);if(l){if(void 0===t&&(t="default"),n=i(l,e,t),!o(n)||r(n))return n;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},8360:function(e,t,n){"use strict";var i=n(8732),o=n(734);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},3043:function(e,t,n){"use strict";var i={};i[n(4201)("toStringTag")]="z",e.exports="[object z]"===String(i)},4327:function(e,t,n){"use strict";var i=n(926),o=String;e.exports=function(e){if("Symbol"===i(e))throw new TypeError("Cannot convert a Symbol value to a string");return o(e)}},3691:function(e){"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},4630:function(e,t,n){"use strict";var i=n(8844),o=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+r,36)}},9525:function(e,t,n){"use strict";var i=n(146);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},5648:function(e,t,n){"use strict";var i=n(7697),o=n(3689);e.exports=i&&o((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},9834:function(e,t,n){"use strict";var i=n(9037),o=n(9985),r=i.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},5405:function(e,t,n){"use strict";var i=n(496),o=n(6812),r=n(6145),s=n(2560).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||s(t,e,{value:r.f(e)})}},6145:function(e,t,n){"use strict";var i=n(4201);t.f=i},4201:function(e,t,n){"use strict";var i=n(9037),o=n(3430),r=n(6812),s=n(4630),a=n(146),l=n(9525),c=i.Symbol,u=o("wks"),h=l?c.for||c:c&&c.withoutSetter||s;e.exports=function(e){return r(u,e)||(u[e]=a&&r(c,e)?c[e]:h("Symbol."+e)),u[e]}},752:function(e,t,n){"use strict";var i=n(5290),o=n(7370),r=n(9478),s=n(618),a=n(2560).f,l=n(1934),c=n(7807),u=n(3931),h=n(7697),d="Array Iterator",f=s.set,p=s.getterFor(d);e.exports=l(Array,"Array",(function(e,t){f(this,{type:d,target:i(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,c(void 0,!0);switch(e.kind){case"keys":return c(n,!1);case"values":return c(t[n],!1)}return c([n,t[n]],!1)}),"values");var g=r.Arguments=r.Array;if(o("keys"),o("values"),o("entries"),!u&&h&&"values"!==g.name)try{a(g,"name",{value:"values"})}catch(e){}},228:function(e,t,n){"use strict";var i=n(3043),o=n(1880),r=n(5073);i||o(Object.prototype,"toString",r,{unsafe:!0})},1694:function(e,t,n){"use strict";var i=n(730).charAt,o=n(4327),r=n(618),s=n(1934),a=n(7807),l="String Iterator",c=r.set,u=r.getterFor(l);s(String,"String",(function(e){c(this,{type:l,string:o(e),index:0})}),(function(){var e,t=u(this),n=t.string,o=t.index;return o>=n.length?a(void 0,!0):(e=i(n,o),t.index+=e.length,a(e,!1))}))},4254:function(e,t,n){"use strict";n(5405)("iterator")},6265:function(e,t,n){"use strict";var i=n(9037),o=n(6338),r=n(3265),s=n(752),a=n(5773),l=n(4201),c=l("iterator"),u=l("toStringTag"),h=s.values,d=function(e,t){if(e){if(e[c]!==h)try{a(e,c,h)}catch(t){e[c]=h}if(e[u]||a(e,u,t),o[t])for(var n in s)if(e[n]!==s[n])try{a(e,n,s[n])}catch(t){e[n]=s[n]}}};for(var f in o)d(i[f]&&i[f].prototype,f);d(r,"DOMTokenList")},1992:function(e,t,n){"use strict";var i=n(6220);n(6265),e.exports=i}},t={};function n(i){var o=t[i];if(void 0!==o)return o.exports;var r=t[i]={exports:{}};return e[i].call(r.exports,r,r.exports,n),r.exports}n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),function(){"use strict";n(1992),n(585),n(473),n(3957);var e=(e,t,n)=>{let i;return function(){let o=this,r=arguments,s=n&&!i;clearTimeout(i),i=setTimeout((function(){i=null,n||e.apply(o,r)}),t),s&&e.apply(o,r)}};function t(e=navigator.userAgent){return/Android|iPhone|iPad|iPod/i.test(e)}function i(e=".mobileNavigation"){return null!==document.querySelector(e).offsetParent}var o=(e,t)=>{for(const n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e};n(9479);var r=n(9479);new class{constructor(e){this.options=o({tabs:".tabs",wrapper:".tabs > .wrapper",content:".tabs > .wrapper > .content",activeClass:"active",tabLinksInnerHTML:!0},e),this.tabLinks=[],this.tabs=document.querySelectorAll(this.options.tabs),this.tabs.length&&window.addEventListener("load",this.init())}init(){for(const e of this.tabs){let t=e.getAttribute("id");t||(t="t"+Math.random().toString(36).substr(2,7),e.setAttribute("id",t));const n=e.querySelectorAll(".links li"),i=e.querySelectorAll(".tab");for(const e of n)e.classList.remove(this.options.activeClass);for(const e of i)e.classList.remove(this.options.activeClass);this.clickHandlers(e,i),this.setFirstActive(e,i)}}clickHandlers(e,t){const n=e.querySelectorAll(".links a");for(const i of n)i.addEventListener("click",(i=>{i.preventDefault(),this.tabHandler(i,e,t,n)}),!1);for(const e of t){(e.querySelector("header")||e.querySelector(".csc-firstHeader")).addEventListener("click",(function(){this.parentNode.parentNode.classList.toggle("isOpen")}),!1)}}tabHandler(e,t,n,i){const o=e.currentTarget;e.preventDefault(),this.clearSelection(),this.updateURL(o.getAttribute("href"));for(const e of i)e.removeAttribute("aria-selected"),e.parentNode.classList.remove(this.options.activeClass);o.parentNode.classList.add(this.options.activeClass);for(const e of n)e.classList.remove(this.options.activeClass),e.setAttribute("aria-hidden","true"),e.setAttribute("hidden","true"),e.setAttribute("tabindex","-1");var r=o.getAttribute("href");if(o.setAttribute("aria-selected","true"),r.length>1){var s=t.querySelector(r);s.classList.add(this.options.activeClass),s.removeAttribute("aria-hidden"),s.removeAttribute("hidden"),s.removeAttribute("tabindex")}}updateURL(e){window.history.replaceState("",document.title,window.location.href.replace(location.hash,"")+e)}setFirstActive(e,t){let n;window.location.hash?n=window.location.hash:(n=Array.prototype.filter.call(t,(e=>e.classList.contains(this.options.activeClass))),n.length&&(n=`#${n[0].id}`));let i=e.querySelector(".links a");r(n).length&&r(n).hasClass("tab")&&e.querySelector(n)&&(i=e.querySelector(`a[href="${n}"]`));let o=i.getAttribute("href"),s=e.querySelector(o);i.parentNode.classList.add(this.options.activeClass),i.setAttribute("aria-selected","true"),s.setAttribute("aria-hidden","false"),s.classList.add(this.options.activeClass),e.classList.add("loaded")}clearSelection(){document.selection?document.selection.empty():window.getSelection&&window.getSelection().removeAllRanges()}};(()=>{const t=document.querySelectorAll(".box.toggle");let n={"@context":"http://schema.org","@type":"FAQPage",mainEntity:[]};function i(e){const t=("<h1><h2><h3><h4><h5><h6><br><ol><ul><li><a><p><div><b><strong><i><em>".toLowerCase().match(/<[a-z][a-z0-9]*>/g)||[]).join(""),n=e.replace(/<!--[\s\S]*?-->|<\?(?:php)?[\s\S]*?\?>/gi,"").replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>/gi,(function(e,n){return t.indexOf("<"+n.toLowerCase()+">")>-1?e:""}));return e===n&&e}if(t.length){for(let o of t){let t=o.querySelector(".title"),r=o.querySelector(".content"),s=r.querySelector(".csc-firstHeader"),a=r.querySelectorAll("img"),l={"@type":"Question",acceptedAnswer:{"@type":"Answer"}};for(const e of a)e.setAttribute("loading","eager");if(""===r.innerHTML){o.classList.add("isEmpty");continue}if(t&&s&&(t.innerHTML="",t.appendChild(s)),null===t&&s){let e=document.createElement("div");e.setAttribute("class","title"),e.appendChild(s),r.closest(".wrapper").insertBefore(e,r),t=e}let c=document.createElement("div");c.setAttribute("class","toggleContentWrapper"),c.innerHTML=r.innerHTML,r.innerHTML="",r.appendChild(c);let u=o.getAttribute("id");if(u||(u=`box-${Math.random().toString(36).substring(7)}`),o.classList.add("isToggle"),t.classList.add("hasToggleClosed"),t.setAttribute("role","button"),t.setAttribute("id",`${u}-title`),t.setAttribute("aria-controls",`${u}-content`),t.setAttribute("aria-expanded","false"),t.setAttribute("tabindex",0),r.setAttribute("id",`${u}-content`),r.setAttribute("aria-labelledby",`${u}-title`),r.setAttribute("aria-hidden","true"),c.innerHTML){const e=i(c.innerHTML);e&&(l.name=l.text=t.innerText||t.textContent,l.acceptedAnswer.text=e,n.mainEntity.push(l))}let h=function(){const e=document.querySelector(".box.toggle.isOpen");e&&(e.classList.remove("isOpen"),e.querySelector(".content").style.maxHeight=null,e.querySelector(".title").setAttribute("aria-expanded","false"),e.querySelector(".content").setAttribute("aria-hidden","true"))},d=e=>{const n=e.closest(".box.toggle");if(n.classList.contains("isOpen"))return t.classList.add("hasToggleClosed"),n.classList.remove("isOpen"),r.style.maxHeight=null,t.setAttribute("aria-expanded","false"),r.setAttribute("aria-hidden","true"),void r.setAttribute("aria-hidden","true");r.style.maxHeight=r.dataset.height,t.classList.remove("hasToggleClosed"),t.setAttribute("aria-expanded","true"),r.setAttribute("aria-hidden","false"),h(),n.classList.toggle("isOpen")},f=e=>{e.setAttribute("data-height",`${c.offsetHeight}px`)};window.addEventListener("load",(()=>{f(r)})),window.addEventListener("resize",e((e=>f(r)),400)),t.addEventListener("click",(function(){d(this)})),t.addEventListener("keyup",(function(e){e.preventDefault(),13!==event.keyCode&&32!==event.keyCode||d(this)})),document.addEventListener("DOMContentLoaded",(()=>{if(location.hash.length){const e=document.querySelector(location.hash);"undefined"!==e&&null!==e&&e.classList.contains("toggle")&&d(e)}}))}if(n.mainEntity.length){let e=document.createElement("script");e.type="application/ld+json",e.innerHTML=JSON.stringify(n),document.body.appendChild(e)}}})();var s=n(9479);class a{constructor(t=[],n){this.options=o({dropdownSelector:".hasChildren",desktopDropdownSelector:!1,hasDesktopToggle:!1,hasDropDownLogIn:".hasDropDownLogIn",mainNavigation:".primaryNavigation",mobileNavSelector:".mobileNavigation",mobileNavTargetAttribute:"data-target",navWrapper:".navigationWrapper",subNavDistanceFromTop:65,subNavWrapper:".subNavWrapper",subNavWrapperWithAbstract:!1,searchSelector:"#search",upperNavigation:{selector:".upperNavigation",children:[".headerNavigation",".localisationNavigation"]}},n);const r=[...new Set([...t,this.options.mainNavigation,...this.options.upperNavigation.children])];var s;this.navs=document.querySelectorAll(r),this.upperNav=document.querySelector(this.options.upperNavigation.selector),this.upperNavChildren=document.querySelectorAll(this.options.upperNavigation.children),this.mobileNav=document.querySelector(this.options.mobileNavSelector),this.mobileTrigger=this.mobileNav.querySelector("["+this.options.mobileNavTargetAttribute+"]"),this.navWrapperEl=document.querySelector(this.options.navWrapper),this.hasResized=!1,this.mobileNavIsOpen=!1,this.mobileDrawerPosition=0,s=()=>{this.isMobileView=i(),this.onCreate(),this.init()},"complete"===document.readyState||"interactive"===document.readyState?setTimeout(s,1):document.addEventListener("DOMContentLoaded",s),window.addEventListener("resize",e((()=>this.onResize()),200))}onCreate(){this.createEventsDelegation();for(const e of this.navs){if("string"==typeof this.options.desktopDropdownSelector){const t=e.querySelectorAll(this.options.desktopDropdownSelector);for(const e of t)e.classList.contains("hasChildren")||e.classList.add("hasChildren")}const t=e.querySelectorAll(".hasChildren");for(const e of t)this.createSubNavHeader(e)}}onResize(){let e=i();this.isMobileView!==e&&(this.isMobileView=e,this.hasResized=!0,this.mobileNavIsOpen&&this.mobileTrigger.click(),this.resetDrawerPosition(),this.resetSubNavPosition(),this.closeSubNav(),this.init(!0))}init(e=!1){this.isMobileView&&this.renderMobileNav(e),this.sortNavElements(e),setTimeout((()=>this.openLowerLevelPage()),0)}createSubNavHeader(e){const t=e.querySelector(".subNav");let n=!1;if("string"==typeof this.options.subNavWrapperWithAbstract&&(n=e.querySelector(this.options.subNavWrapperWithAbstract)),!t)return void e.classList.remove("hasChildren");const i=e.querySelector("a").cloneNode(!0);i.classList.remove("active");const o=document.createElement("ul");o.setAttribute("class",this.options.subNavWrapper.replace(".",""));const r=document.createElement("li");r.setAttribute("class","back"),r.innerHTML="Back";const a=document.createElement("li");a.setAttribute("class","subject"),a.appendChild(i),o.appendChild(r),o.appendChild(a),o.appendChild(t),n?n.appendChild(o):e.appendChild(o),this.options.hasDesktopToggle&&1===s(e).parents(".subNav").length&&!this.isMobileView&&s(e).addClass("isToggle"),this.options.hasDesktopToggle&&e.classList.contains("active")&&1===s(e).parents(".subNav").length&&!this.isMobileView&&(s(e).addClass("isOpen"),s(e).find(this.options.subNavWrapper).slideDown())}createEventsDelegation(){this.navWrapperEl.addEventListener("click",(e=>{this.isMobileView?this.m_eventDelegation(e):this.d_eventDelegation(e)})),document.addEventListener("click",(e=>{const t=e.target;this.isMobileView||this.navWrapperEl.contains(t)||(this.closeSubNav(),document.documentElement.classList.remove("multiNavigationIsOpen")),this.isMobileView&&this.mobileNavIsOpen&&t!==this.mobileTrigger&&!this.navWrapperEl.contains(t)&&this.mobileTrigger.click()})),this.mobileTrigger.addEventListener("click",(e=>{e.preventDefault(),this.drawerHandle()}))}d_eventDelegation(e){const t=e.target;let n=this.options.dropdownSelector;"string"==typeof this.options.desktopDropdownSelector&&(n=this.options.desktopDropdownSelector);const i=n.replace(".",""),o=t.closest(n);let r=null;null!==o&&(r=o.closest(".subNav")),s(t).closest("li").hasClass(i)&&o.classList.contains(i)&&null===r&&(e.preventDefault(),this.closeSubNav(o),o.classList.contains("isActive")?document.documentElement.classList.remove("multiNavigationIsOpen"):document.documentElement.classList.add("multiNavigationIsOpen"),o.classList.toggle("isActive")),this.options.hasDesktopToggle&&1===s(t).parents(this.options.subNavWrapper).length&&s(t).closest("li").hasClass(i)&&!s(t).closest("li").hasClass("subject")&&(e.preventDefault(),s(o).hasClass("isOpen")?(s(o).removeClass("isOpen").find(this.options.subNavWrapper).slideUp(),s(o).closest(`${this.options.dropdownSelector}.isActive`).removeClass("subNavIsOpen")):(s(o).siblings().removeClass("isOpen").find(this.options.subNavWrapper).slideUp(),s(o).addClass("isOpen").find(this.options.subNavWrapper).slideDown(),s(o).closest(`${this.options.dropdownSelector}.isActive`).addClass("subNavIsOpen")))}m_eventDelegation(e){const t="SPAN"===e.target.tagName?e.target.parentNode:e.target,n=this.options.dropdownSelector.replace(".",""),i=t.closest(this.options.dropdownSelector),o=t.classList.contains("back");(t.parentNode.classList.contains(n)||o)&&(e.preventDefault(),t!==e.currentTarget&&!o&&t.nextSibling&&(e.preventDefault(),this.updateDrawerPosition("forward",t),i.classList.add("isActive")),o&&(this.updateDrawerPosition("backwards",t),i.classList.remove("isActive")),this.navWrapperEl.scrollTop=0)}renderMobileNav(){for(const e of this.navs)this.updatePositionOfSubNavs(e,`.navigation > ${this.options.desktopDropdownSelector} > ${this.options.subNavWrapper}`)}drawerHandle(){const e=this.mobileTrigger.getAttribute(this.options.mobileNavTargetAttribute),t=document.querySelector(e),n=document.documentElement;this.mobileTrigger.classList.toggle("isActive"),t.classList.toggle("isOpen"),n.classList.toggle("hasMobileMultiNavigationOpen"),this.mobileNavIsOpen=!this.mobileNavIsOpen}updateDrawerPosition(e,t){"backwards"===e?this.mobileDrawerPosition+=100:"forward"===e&&(this.mobileDrawerPosition-=100);for(let e of this.navs)e.style.transform=`translateX(${this.mobileDrawerPosition}%)`;this.updatePositionOfSubNavs(s(t).parent().find(".subNavWrapper").first(),".subNav > .hasChildren",!1)}resetDrawerPosition(){this.mobileDrawerPosition=0;for(let e of this.navs)e.style.transform=""}closeSubNav(e=""){if(s(e).siblings().length)s(e).siblings().each((function(){s(this).removeClass("isActive")}));else for(const e of this.navs){const t=e.querySelectorAll(".isActive");for(const e of t)e.classList.remove("isActive")}}sortNavElements(e=!1){let t;if(this.options.searchSelector.length>0&&!!this.navWrapperEl.querySelector(this.options.searchSelector)&&(t=this.navWrapperEl.querySelector(this.options.searchSelector)),this.navWrapperEl)if(this.isMobileView){t&&this.navWrapperEl.appendChild(t);for(let e of this.navs)this.navWrapperEl.appendChild(e)}else if(e){if(this.upperNavChildren.length>1)for(const e of this.upperNavChildren)this.upperNav.appendChild(e);t&&this.upperNav.appendChild(t)}}updatePositionOfSubNavs(e,t,n=!0){this._checkElements(e,t).then((e=>this.setPositionOfSubNavs(e,n)))}setPositionOfSubNavs(e,t){for(const n of e){const e=s(n).find(this.options.subNavWrapper);if(!e.length)return;let i=-1*(n.offsetTop-this.options.subNavDistanceFromTop);t||(i=-1*n.offsetTop),e.css("margin-top",`${i}px`)}}resetSubNavPosition(){const e=document.querySelectorAll(this.options.subNavWrapper);for(const t of e)t.style.marginTop=0}openLowerLevelPage(){for(const e of this.navs){const t=s(e).find(`li.active${this.options.desktopDropdownSelector}`);t.length&&t.each(((e,t)=>{this.isMobileView&&s(t).find("> a > span").trigger("click"),!this.isMobileView&&s(t).hasClass("isToggle isOpen")&&s(t).parents(`li.active${this.options.desktopDropdownSelector}`).addClass("subNavIsOpen")}))}}_checkElements(e,t){return new Promise(((n,i)=>{const o=s(e).find(t);o||i("No SubNav found!"),n(o)}))}}var l=n(9479);!function(){new a([".mainNavigation"],{mainNavigation:".mainNavigation",upperNavigation:{selector:".upperNavigation",children:[".headerNavigation"]},desktopDropdownSelector:".hasChildren",searchSelector:".searchForm",subNavDistanceFromTop:72,hasDesktopToggle:!0});var e=function(e){var t=e.closest(".subNavWrapper"),n=e.next(".subNavWrapper"),i=0;setTimeout((function(){t.data("height",t.data("height")||t.outerHeight()),n.data("height",n.data("height")||n.outerHeight()),i=t.data("height"),n.data("height")>t.data("height")&&(i=n.data("height")),t.attr("style","height: ".concat(i,"px !important")),n.attr("style","height: ".concat(i,"px !important"))}),0)};i()||(l(".mainNavigation").on("click.subnavheight",".wrapper > ul > .hasChildren > a",(function(){e(l(this).closest("li").find(".subNavWrapper .isOpen > a"))})),l(".mainNavigation").on("click.subnavheight",".subNavWrapper li.hasChildren > a",(function(){e(l(this))})))}();n(8007),n(5102);function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var u=function e(t,n){function i(e,i,o){if("undefined"!=typeof document){"number"==typeof(o=c({},n,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var r="";for(var s in o)o[s]&&(r+="; "+s,!0!==o[s]&&(r+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+r}}return Object.create({set:i,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],i={},o=0;o<n.length;o++){var r=n[o].split("="),s=r.slice(1).join("=");try{var a=decodeURIComponent(r[0]);if(i[a]=t.read(s,a),e===a)break}catch(e){}}return e?i[e]:i}},remove:function(e,t){i(e,"",c({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,c({},this.attributes,t))},withConverter:function(t){return e(c({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"}),h=n(9479);!function(){var e="ll_fe_cookie_policy";if(!u.get(e)){var t=h('<div class="cookiePolicy">This site uses cookies. By continuing to browse and use the site you are agreeing to our use of cookies. To find out more please see our  <a href="/cookies-privacy-policy/">privacy statement</a>.<div class="closeCookieMessage"><button>I agree</button></div></div>');h("body").append(t),h("body").on("click.closeCookie",".closeCookieMessage",(function(){u.set(e,1,{expires:7,path:"/"}),h(t).fadeOut()}))}}();var d=n(9479);!function(){if(!i()){var e=d("body"),t=d(".searchForm");e.on("click.searchBox",".searchForm button",(function(n){d(".searchForm").hasClass("isActive")||(n.preventDefault(),t.addClass("isActive"),t.find("input").focus(),e.addClass("searchIsOpen"))})),d(document).on("click.searchBox",(function(n){d(n.target).parents().is(t)||(t.removeClass("isActive"),e.removeClass("searchIsOpen"))}))}}();n(3543);const f=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),p=function(e){if(!(e&&e instanceof Element&&e.offsetParent))return!1;const t=e.scrollHeight>e.clientHeight,n=window.getComputedStyle(e).overflowY,i=-1!==n.indexOf("hidden"),o=-1!==n.indexOf("visible");return t&&!i&&!o},g=function(e,t=void 0){return!(!e||e===document.body||t&&e===t)&&(p(e)?e:g(e.parentElement,t))},m=function(e){var t=(new DOMParser).parseFromString(e,"text/html").body;if(t.childElementCount>1){for(var n=document.createElement("div");t.firstChild;)n.appendChild(t.firstChild);return n}return t.firstChild},v=e=>`${e||""}`.split(" ").filter((e=>!!e)),y=(e,t,n)=>{e&&v(t).forEach((t=>{e.classList.toggle(t,n||!1)}))};class b{constructor(e){Object.defineProperty(this,"pageX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"pageY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"clientY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"time",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nativePointer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.nativePointer=e,this.pageX=e.pageX,this.pageY=e.pageY,this.clientX=e.clientX,this.clientY=e.clientY,this.id=self.Touch&&e instanceof Touch?e.identifier:-1,this.time=Date.now()}}const w={passive:!1};class x{constructor(e,{start:t=(()=>!0),move:n=(()=>{}),end:i=(()=>{})}){Object.defineProperty(this,"element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"moveCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"endCallback",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"currentPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"startPointers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this.element=e,this.startCallback=t,this.moveCallback=n,this.endCallback=i;for(const e of["onPointerStart","onTouchStart","onMove","onTouchEnd","onPointerEnd","onWindowBlur"])this[e]=this[e].bind(this);this.element.addEventListener("mousedown",this.onPointerStart,w),this.element.addEventListener("touchstart",this.onTouchStart,w),this.element.addEventListener("touchmove",this.onMove,w),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new b(e);this.currentPointers.some((e=>e.id===t.id))||this.triggerPointerStart(t,e)&&(window.addEventListener("mousemove",this.onMove),window.addEventListener("mouseup",this.onPointerEnd),window.addEventListener("blur",this.onWindowBlur))}onTouchStart(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerStart(new b(t),e);window.addEventListener("blur",this.onWindowBlur)}onMove(e){const t=this.currentPointers.slice(),n="changedTouches"in e?Array.from(e.changedTouches||[]).map((e=>new b(e))):[new b(e)],i=[];for(const e of n){const t=this.currentPointers.findIndex((t=>t.id===e.id));t<0||(i.push(e),this.currentPointers[t]=e)}i.length&&this.moveCallback(e,this.currentPointers.slice(),t)}onPointerEnd(e){e.buttons>0&&0!==e.button||(this.triggerPointerEnd(e,new b(e)),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur))}onTouchEnd(e){for(const t of Array.from(e.changedTouches||[]))this.triggerPointerEnd(e,new b(t))}triggerPointerStart(e,t){return!!this.startCallback(t,e,this.currentPointers.slice())&&(this.currentPointers.push(e),this.startPointers.push(e),!0)}triggerPointerEnd(e,t){const n=this.currentPointers.findIndex((e=>e.id===t.id));n<0||(this.currentPointers.splice(n,1),this.startPointers.splice(n,1),this.endCallback(e,t,this.currentPointers.slice()))}onWindowBlur(){this.clear()}clear(){for(;this.currentPointers.length;){const e=this.currentPointers[this.currentPointers.length-1];this.currentPointers.splice(this.currentPointers.length-1,1),this.startPointers.splice(this.currentPointers.length-1,1),this.endCallback(new Event("touchend",{bubbles:!0,cancelable:!0,clientX:e.clientX,clientY:e.clientY}),e,this.currentPointers.slice())}}stop(){this.element.removeEventListener("mousedown",this.onPointerStart,w),this.element.removeEventListener("touchstart",this.onTouchStart,w),this.element.removeEventListener("touchmove",this.onMove,w),this.element.removeEventListener("touchend",this.onTouchEnd),this.element.removeEventListener("touchcancel",this.onTouchEnd),window.removeEventListener("mousemove",this.onMove),window.removeEventListener("mouseup",this.onPointerEnd),window.removeEventListener("blur",this.onWindowBlur)}}function S(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function E(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const T=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),C=(e,...t)=>{const n=t.length;for(let i=0;i<n;i++){const n=t[i]||{};Object.entries(n).forEach((([t,n])=>{const i=Array.isArray(n)?[]:{};e[t]||Object.assign(e,{[t]:i}),T(n)?Object.assign(e[t],C(i,n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})}))}return e},k=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class P{constructor(e={}){Object.defineProperty(this,"options",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),this.setOptions(e);for(const e of Object.getOwnPropertyNames(Object.getPrototypeOf(this)))e.startsWith("on")&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}setOptions(e){this.options=e?C({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let n=k(e,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...t)),n}optionFor(e,t,n,...i){let o=k(t,e);var r;"string"!=typeof(r=o)||isNaN(r)||isNaN(parseFloat(r))||(o=parseFloat(o)),"true"===o&&(o=!0),"false"===o&&(o=!1),o&&"function"==typeof o&&(o=o.call(this,this,e,...i));let s=k(t,this.options);return s&&"function"==typeof s?o=s.call(this,this,e,...i,o):void 0===o&&(o=s),void 0===o?n:o}cn(e){const t=this.options.classes;return t&&t[e]||""}localize(e,t=[]){e=String(e).replace(/\{\{(\w+).?(\w+)?\}\}/g,((e,t,n)=>{let i="";return n?i=this.option(`${t[0]+t.toLowerCase().substring(1)}.l10n.${n}`):t&&(i=this.option(`l10n.${t}`)),i||(i=e),i}));for(let n=0;n<t.length;n++)e=e.split(t[n][0]).join(t[n][1]);return e.replace(/\{\{(.*?)\}\}/g,((e,t)=>t))}on(e,t){let n=[];"string"==typeof e?n=e.split(" "):Array.isArray(e)&&(n=e),this.events||(this.events=new Map),n.forEach((e=>{let n=this.events.get(e);n||(this.events.set(e,[]),n=[]),n.includes(t)||n.push(t),this.events.set(e,n)}))}off(e,t){let n=[];"string"==typeof e?n=e.split(" "):Array.isArray(e)&&(n=e),n.forEach((e=>{const n=this.events.get(e);if(Array.isArray(n)){const e=n.indexOf(t);e>-1&&n.splice(e,1)}}))}emit(e,...t){[...this.events.get(e)||[]].forEach((e=>e(this,...t))),"*"!==e&&this.emit("*",e,...t)}}Object.defineProperty(P,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(P,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class O extends P{constructor(e={}){super(e),Object.defineProperty(this,"plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}})}attachPlugins(e={}){const t=new Map;for(const[n,i]of Object.entries(e)){const e=this.option(n),o=this.plugins[n];o||!1===e?o&&!1===e&&(o.detach(),delete this.plugins[n]):t.set(n,new i(this,e||{}))}for(const[e,n]of t)this.plugins[e]=n,n.attach()}detachPlugins(e){e=e||Object.keys(this.plugins);for(const t of e){const e=this.plugins[t];e&&e.detach(),delete this.plugins[t]}return this.emit("detachPlugins"),this}}var A;!function(e){e[e.Init=0]="Init",e[e.Error=1]="Error",e[e.Ready=2]="Ready",e[e.Panning=3]="Panning",e[e.Mousemove=4]="Mousemove",e[e.Destroy=5]="Destroy"}(A||(A={}));const M=["a","b","c","d","e","f"],L={PANUP:"Move up",PANDOWN:"Move down",PANLEFT:"Move left",PANRIGHT:"Move right",ZOOMIN:"Zoom in",ZOOMOUT:"Zoom out",TOGGLEZOOM:"Toggle zoom level",TOGGLE1TO1:"Toggle zoom level",ITERATEZOOM:"Toggle zoom level",ROTATECCW:"Rotate counterclockwise",ROTATECW:"Rotate clockwise",FLIPX:"Flip horizontally",FLIPY:"Flip vertically",FITX:"Fit horizontally",FITY:"Fit vertically",RESET:"Reset",TOGGLEFS:"Toggle fullscreen"},j={content:null,width:"auto",height:"auto",panMode:"drag",touch:!0,dragMinThreshold:3,lockAxis:!1,mouseMoveFactor:1,mouseMoveFriction:.12,zoom:!0,pinchToZoom:!0,panOnlyZoomed:"auto",minScale:1,maxScale:2,friction:.25,dragFriction:.35,decelFriction:.05,click:"toggleZoom",dblClick:!1,wheel:"zoom",wheelLimit:7,spinner:!0,bounds:"auto",infinite:!1,rubberband:!0,bounce:!0,maxVelocity:75,transformParent:!1,classes:{content:"f-panzoom__content",isLoading:"is-loading",canZoomIn:"can-zoom_in",canZoomOut:"can-zoom_out",isDraggable:"is-draggable",isDragging:"is-dragging",inFullscreen:"in-fullscreen",htmlHasFullscreen:"with-panzoom-in-fullscreen"},l10n:L},D='<circle cx="25" cy="25" r="20"></circle>',N='<div class="f-spinner"><svg viewBox="0 0 50 50">'+D+D+"</svg></div>",R=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,F=(e,t)=>{e&&v(t).forEach((t=>{e.classList.remove(t)}))},I=(e,t)=>{e&&v(t).forEach((t=>{e.classList.add(t)}))},z={a:1,b:0,c:0,d:1,e:0,f:0},H=1e4,_="mousemove",q="drag",B="content",W="auto";let V=null,$=null;class X extends O{get fits(){return this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1}get isTouchDevice(){return null===$&&($=window.matchMedia("(hover: none)").matches),$}get isMobile(){return null===V&&(V=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),V}get panMode(){return this.options.panMode!==_||this.isTouchDevice?q:_}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return e===W?this.isTouchDevice:e}get isInfinite(){return this.option("infinite")}get angle(){return 180*Math.atan2(this.current.b,this.current.a)/Math.PI||0}get targetAngle(){return 180*Math.atan2(this.target.b,this.target.a)/Math.PI||0}get scale(){const{a:e,b:t}=this.current;return Math.sqrt(e*e+t*t)||1}get targetScale(){const{a:e,b:t}=this.target;return Math.sqrt(e*e+t*t)||1}get minScale(){return this.option("minScale")||1}get fullScale(){const{contentRect:e}=this;return e.fullWidth/e.fitWidth||1}get maxScale(){return this.fullScale*(this.option("maxScale")||1)||1}get coverScale(){const{containerRect:e,contentRect:t}=this,n=Math.max(e.height/t.fitHeight,e.width/t.fitWidth)||1;return Math.min(this.fullScale,n)}get isScaling(){return Math.abs(this.targetScale-this.scale)>1e-5&&!this.isResting}get isContentLoading(){const e=this.content;return!!(e&&e instanceof HTMLImageElement)&&!e.complete}get isResting(){if(this.isBouncingX||this.isBouncingY)return!1;for(const e of M){const t="e"==e||"f"===e?1e-4:1e-5;if(Math.abs(this.target[e]-this.current[e])>t)return!1}return!(!this.ignoreBounds&&!this.checkBounds().inBounds)}constructor(e,t={},n={}){var i;if(super(t),Object.defineProperty(this,"pointerTracker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"resizeObserver",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"updateTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"rAF",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isTicking",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ignoreBounds",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isBouncingY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"clicks",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"trackingPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"cwd",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"pmme",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:A.Init}),Object.defineProperty(this,"isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"content",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"spinner",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"containerRect",{enumerable:!0,configurable:!0,writable:!0,value:{width:0,height:0,innerWidth:0,innerHeight:0}}),Object.defineProperty(this,"contentRect",{enumerable:!0,configurable:!0,writable:!0,value:{top:0,right:0,bottom:0,left:0,fullWidth:0,fullHeight:0,fitWidth:0,fitHeight:0,width:0,height:0}}),Object.defineProperty(this,"dragStart",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,top:0,left:0,time:0}}),Object.defineProperty(this,"dragOffset",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0,time:0}}),Object.defineProperty(this,"current",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},z)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},z)}),Object.defineProperty(this,"velocity",{enumerable:!0,configurable:!0,writable:!0,value:{a:0,b:0,c:0,d:0,e:0,f:0}}),Object.defineProperty(this,"lockedAxis",{enumerable:!0,configurable:!0,writable:!0,value:!1}),!e)throw new Error("Container Element Not Found");this.container=e,this.initContent(),this.attachPlugins(Object.assign(Object.assign({},X.Plugins),n)),this.emit("attachPlugins"),this.emit("init");const o=this.content;if(o.addEventListener("load",this.onLoad),o.addEventListener("error",this.onError),this.isContentLoading){if(this.option("spinner")){e.classList.add(this.cn("isLoading"));const t=m(N);!e.contains(o)||o.parentElement instanceof HTMLPictureElement?this.spinner=e.appendChild(t):this.spinner=(null===(i=o.parentElement)||void 0===i?void 0:i.insertBefore(t,o))||null}this.emit("beforeLoad")}else queueMicrotask((()=>{this.enable()}))}initContent(){const{container:e}=this,t=this.cn(B);let n=this.option(B)||e.querySelector(`.${t}`);if(n||(n=e.querySelector("img,picture")||e.firstElementChild,n&&I(n,t)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){const{spinner:e,container:t,state:n}=this;e&&(e.remove(),this.spinner=null),this.option("spinner")&&t.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),n===A.Init?this.enable():this.updateMetrics()}onError(){this.state!==A.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=A.Error,this.emit("error"))}getNextScale(e){const{fullScale:t,targetScale:n,coverScale:i,maxScale:o,minScale:r}=this;let s=r;switch(e){case"toggleMax":s=n-r<.5*(o-r)?o:r;break;case"toggleCover":s=n-r<.5*(i-r)?i:r;break;case"toggleZoom":s=n-r<.5*(t-r)?t:r;break;case"iterateZoom":let e=[1,t,o].sort(((e,t)=>e-t)),a=e.findIndex((e=>e>n+1e-5));s=e[a]||1}return s}attachObserver(){var e;const t=()=>{const{container:e,containerRect:t}=this;return Math.abs(t.width-e.getBoundingClientRect().width)>.1||Math.abs(t.height-e.getBoundingClientRect().height)>.1};this.resizeObserver||void 0===window.ResizeObserver||(this.resizeObserver=new ResizeObserver((()=>{this.updateTimer||(t()?(this.onResize(),this.isMobile&&(this.updateTimer=setTimeout((()=>{t()&&this.onResize(),this.updateTimer=null}),500))):this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null))}))),null===(e=this.resizeObserver)||void 0===e||e.observe(this.container)}detachObserver(){var e;null===(e=this.resizeObserver)||void 0===e||e.disconnect()}attachEvents(){const{container:e}=this;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1}),this.pointerTracker=new x(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener(_,this.onMouseMove)}detachEvents(){var e;const{container:t}=this;t.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),t.removeEventListener("wheel",this.onWheel,{passive:!1}),null===(e=this.pointerTracker)||void 0===e||e.stop(),this.pointerTracker=null,document.removeEventListener(_,this.onMouseMove),document.removeEventListener("keydown",this.onKeydown,!0),this.clickTimer&&(clearTimeout(this.clickTimer),this.clickTimer=null),this.updateTimer&&(clearTimeout(this.updateTimer),this.updateTimer=null)}animate(){this.setTargetForce();const e=this.friction,t=this.option("maxVelocity");for(const n of M)e?(this.velocity[n]*=1-e,t&&!this.isScaling&&(this.velocity[n]=Math.max(Math.min(this.velocity[n],t),-1*t)),this.current[n]+=this.velocity[n]):this.current[n]=this.target[n];this.setTransform(),this.setEdgeForce(),!this.isResting||this.isDragging?this.rAF=requestAnimationFrame((()=>this.animate())):this.stop("current")}setTargetForce(){for(const e of M)"e"===e&&this.isBouncingX||"f"===e&&this.isBouncingY||(this.velocity[e]=(1/(1-this.friction)-1)*(this.target[e]-this.current[e]))}checkBounds(e=0,t=0){const{current:n}=this,i=n.e+e,o=n.f+t,r=this.getBounds(),{x:s,y:a}=r,l=s.min,c=s.max,u=a.min,h=a.max;let d=0,f=0;return l!==1/0&&i<l?d=l-i:c!==1/0&&i>c&&(d=c-i),u!==1/0&&o<u?f=u-o:h!==1/0&&o>h&&(f=h-o),Math.abs(d)<1e-4&&(d=0),Math.abs(f)<1e-4&&(f=0),Object.assign(Object.assign({},r),{xDiff:d,yDiff:f,inBounds:!d&&!f})}clampTargetBounds(){const{target:e}=this,{x:t,y:n}=this.getBounds();t.min!==1/0&&(e.e=Math.max(e.e,t.min)),t.max!==1/0&&(e.e=Math.min(e.e,t.max)),n.min!==1/0&&(e.f=Math.max(e.f,n.min)),n.max!==1/0&&(e.f=Math.min(e.f,n.max))}calculateContentDim(e=this.current){const{content:t,contentRect:n}=this,{fitWidth:i,fitHeight:o,fullWidth:r,fullHeight:s}=n;let a=r,l=s;if(this.option("zoom")||0!==this.angle){const n=!(t instanceof HTMLImageElement||"none"!==window.getComputedStyle(t).maxWidth&&"none"!==window.getComputedStyle(t).maxHeight),c=n?r:i,u=n?s:o,h=this.getMatrix(e),d=new DOMPoint(0,0).matrixTransform(h),f=new DOMPoint(0+c,0).matrixTransform(h),p=new DOMPoint(0+c,0+u).matrixTransform(h),g=new DOMPoint(0,0+u).matrixTransform(h),m=Math.abs(p.x-d.x),v=Math.abs(p.y-d.y),y=Math.abs(g.x-f.x),b=Math.abs(g.y-f.y);a=Math.max(m,y),l=Math.max(v,b)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||this.panMode===_||this.targetScale<this.scale)return this.isBouncingX=!1,void(this.isBouncingY=!1);const{target:e}=this,{x:t,y:n,xDiff:i,yDiff:o}=this.checkBounds(),r=this.option("maxVelocity");let s=this.velocity.e,a=this.velocity.f;0!==i?(this.isBouncingX=!0,i*s<=0?s+=.14*i:(s=.14*i,t.min!==1/0&&(this.target.e=Math.max(e.e,t.min)),t.max!==1/0&&(this.target.e=Math.min(e.e,t.max))),r&&(s=Math.max(Math.min(s,r),-1*r))):this.isBouncingX=!1,0!==o?(this.isBouncingY=!0,o*a<=0?a+=.14*o:(a=.14*o,n.min!==1/0&&(this.target.f=Math.max(e.f,n.min)),n.max!==1/0&&(this.target.f=Math.min(e.f,n.max))),r&&(a=Math.max(Math.min(a,r),-1*r))):this.isBouncingY=!1,this.isBouncingX&&(this.velocity.e=s),this.isBouncingY&&(this.velocity.f=a)}enable(){const{content:e}=this,t=new DOMMatrixReadOnly(window.getComputedStyle(e).transform);for(const e of M)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=A.Ready,this.emit("ready")}onClick(e){var t;"click"===e.type&&0===e.detail&&(this.dragOffset.x=0,this.dragOffset.y=0),this.isDragging&&(null===(t=this.pointerTracker)||void 0===t||t.clear(),this.trackingPoints=[],this.startDecelAnim());const n=e.target;if(!n||e.defaultPrevented)return;if(n.hasAttribute("disabled"))return e.preventDefault(),void e.stopPropagation();if((()=>{const e=window.getSelection();return e&&"Range"===e.type})()&&!n.closest("button"))return;const i=n.closest("[data-panzoom-action]"),o=n.closest("[data-panzoom-change]"),r=i||o,s=r&&R(r)?r.dataset:null;if(s){const t=s.panzoomChange,n=s.panzoomAction;if((t||n)&&e.preventDefault(),t){let n={};try{n=JSON.parse(t)}catch(e){console&&console.warn("The given data was not valid JSON")}return void this.applyChange(n)}if(n)return void(this[n]&&this[n]())}if(Math.abs(this.dragOffset.x)>3||Math.abs(this.dragOffset.y)>3)return e.preventDefault(),void e.stopPropagation();if(n.closest("[data-fancybox]"))return;const a=this.content.getBoundingClientRect(),l=this.dragStart;if(l.time&&!this.canZoomOut()&&(Math.abs(a.x-l.x)>2||Math.abs(a.y-l.y)>2))return;this.dragStart.time=0;const c=t=>{this.option("zoom",e)&&t&&"string"==typeof t&&/(iterateZoom)|(toggle(Zoom|Full|Cover|Max)|(zoomTo(Fit|Cover|Max)))/.test(t)&&"function"==typeof this[t]&&(e.preventDefault(),this[t]({event:e}))},u=this.option("click",e),h=this.option("dblClick",e);h?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&u&&c(u)):(this.emit("dblClick",e),e.defaultPrevented||c(h)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&u&&c(u))}addTrackingPoint(e){const t=this.trackingPoints.filter((e=>e.time>Date.now()-100));t.push(e),this.trackingPoints=t}onPointerDown(e,t,n){var i;if(!1===this.option("touch",e))return!1;this.pwt=0,this.dragOffset={x:0,y:0,time:0},this.trackingPoints=[];const o=this.content.getBoundingClientRect();if(this.dragStart={x:o.x,y:o.y,top:o.top,left:o.left,time:Date.now()},this.clickTimer)return!1;if(this.panMode===_&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;const r=e.composedPath()[0];if(!n.length){if(["TEXTAREA","OPTION","INPUT","SELECT","VIDEO","IFRAME"].includes(r.nodeName)||r.closest("[contenteditable],[data-selectable],[data-draggable],[data-clickable],[data-panzoom-change],[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===e.type)["A","BUTTON"].includes(r.nodeName)||e.preventDefault();else if(Math.abs(this.velocity.a)>.3)return!1;return this.target.e=this.current.e,this.target.f=this.current.f,this.stop(),this.isDragging||(this.isDragging=!0,this.addTrackingPoint(t),this.emit("touchStart",e)),!0}onPointerMove(e,t,n){if(!1===this.option("touch",e))return;if(!this.isDragging)return;if(t.length<2&&this.panOnlyZoomed&&f(this.targetScale)<=f(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(t[0]);const{content:i}=this,o=E(n[0],n[1]),r=E(t[0],t[1]);let s=0,a=0;if(t.length>1){const e=i.getBoundingClientRect();s=o.clientX-e.left-.5*e.width,a=o.clientY-e.top-.5*e.height}const l=S(n[0],n[1]),c=S(t[0],t[1]);let u=l?c/l:1,h=r.clientX-o.clientX,d=r.clientY-o.clientY;this.dragOffset.x+=h,this.dragOffset.y+=d,this.dragOffset.time=Date.now()-this.dragStart.time;let p=f(this.targetScale)===f(this.minScale)&&this.option("lockAxis");if(p&&!this.lockedAxis)if("xy"===p||"y"===p||"touchmove"===e.type){if(Math.abs(this.dragOffset.x)<6&&Math.abs(this.dragOffset.y)<6)return void e.preventDefault();const t=Math.abs(180*Math.atan2(this.dragOffset.y,this.dragOffset.x)/Math.PI);this.lockedAxis=t>45&&t<135?"y":"x",this.dragOffset.x=0,this.dragOffset.y=0,h=0,d=0}else this.lockedAxis=p;if(g(e.target,this.content)&&(p="x",this.dragOffset.y=0),p&&"xy"!==p&&this.lockedAxis!==p&&f(this.targetScale)===f(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const m=this.checkBounds(h,d);this.option("rubberband")?("x"!==this.isInfinite&&(m.xDiff>0&&h<0||m.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*m.xDiff))),"y"!==this.isInfinite&&(m.yDiff>0&&d<0||m.yDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*m.yDiff)))):(m.xDiff&&(h=0),m.yDiff&&(d=0));const v=this.targetScale,y=this.minScale,b=this.maxScale;v<.5*y&&(u=Math.max(u,y)),v>1.5*b&&(u=Math.min(u,b)),"y"===this.lockedAxis&&f(v)===f(y)&&(h=0),"x"===this.lockedAxis&&f(v)===f(y)&&(d=0),this.applyChange({originX:s,originY:a,panX:h,panY:d,scale:u,friction:this.option("dragFriction"),ignoreBounds:!0})}onPointerUp(e,t,n){if(n.length)return this.dragOffset.x=0,this.dragOffset.y=0,void(this.trackingPoints=[]);this.container.classList.remove(this.cn("isDragging")),this.isDragging&&(this.addTrackingPoint(t),this.panOnlyZoomed&&this.contentRect.width-this.contentRect.fitWidth<1&&this.contentRect.height-this.contentRect.fitHeight<1&&(this.trackingPoints=[]),g(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==A.Destroy&&(e.defaultPrevented||this.startDecelAnim()))}startDecelAnim(){var e;const t=this.isScaling;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const e of M)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,F(this.container,"is-scaling"),F(this.container,"is-animating"),this.isTicking=!1;const{trackingPoints:n}=this,i=n[0],o=n[n.length-1];let r=0,s=0,a=0;o&&i&&(r=o.clientX-i.clientX,s=o.clientY-i.clientY,a=o.time-i.time);const l=(null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1;1!==l&&(r*=l,s*=l);let c=0,u=0,h=0,d=0,p=this.option("decelFriction");const g=this.targetScale;if(a>0){h=Math.abs(r)>3?r/(a/30):0,d=Math.abs(s)>3?s/(a/30):0;const e=this.option("maxVelocity");e&&(h=Math.max(Math.min(h,e),-1*e),d=Math.max(Math.min(d,e),-1*e))}h&&(c=h/(1/(1-p)-1)),d&&(u=d/(1/(1-p)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&f(g)===this.minScale)&&(c=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&f(g)===this.minScale)&&(u=d=0);const m=this.dragOffset.x,v=this.dragOffset.y,y=this.option("dragMinThreshold")||0;Math.abs(m)<y&&Math.abs(v)<y&&(c=u=0,h=d=0),(this.option("zoom")&&(g<this.minScale-1e-5||g>this.maxScale+1e-5)||t&&!c&&!u)&&(p=.35),this.applyChange({panX:c,panY:u,friction:p}),this.emit("decel",h,d,m,v)}onWheel(e){var t=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const n=Math.max(-1,Math.min(1,t));if(this.emit("wheel",e,n),this.panMode===_)return;if(e.defaultPrevented)return;const i=this.option("wheel");"pan"===i?(e.preventDefault(),this.panOnlyZoomed&&!this.canZoomOut()||this.applyChange({panX:2*-e.deltaX,panY:2*-e.deltaY,bounce:!1})):"zoom"===i&&!1!==this.option("zoom")&&this.zoomWithWheel(e)}onMouseMove(e){this.panWithMouse(e)}onKeydown(e){"Escape"===e.key&&this.toggleFS()}onResize(){this.updateMetrics(),this.checkBounds().inBounds||this.requestTick()}setTransform(){this.emit("beforeTransform");const{current:e,target:t,content:n,contentRect:i}=this,o=Object.assign({},z);for(const n of M){const i="e"==n||"f"===n?H:1e5;o[n]=f(e[n],i),Math.abs(t[n]-e[n])<("e"==n||"f"===n?.51:.001)&&(e[n]=t[n])}let{a:r,b:s,c:a,d:l,e:c,f:u}=o,h=`matrix(${r}, ${s}, ${a}, ${l}, ${c}, ${u})`,d=n.parentElement instanceof HTMLPictureElement?n.parentElement:n;if(this.option("transformParent")&&(d=d.parentElement||d),d.style.transform===h)return;d.style.transform=h;const{contentWidth:p,contentHeight:g}=this.calculateContentDim();i.width=p,i.height=g,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===A.Destroy)return;if(this.isContentLoading)return;const n=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1),{container:i,content:o}=this,r=o instanceof HTMLImageElement,s=i.getBoundingClientRect(),a=getComputedStyle(this.container);let l=s.width*n,c=s.height*n;const u=parseFloat(a.paddingTop)+parseFloat(a.paddingBottom),h=l-(parseFloat(a.paddingLeft)+parseFloat(a.paddingRight)),d=c-u;this.containerRect={width:l,height:c,innerWidth:h,innerHeight:d};const p=parseFloat(o.dataset.width||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalWidth:e instanceof SVGElement?e.width.baseVal.value:Math.max(e.offsetWidth,e.scrollWidth),t||0})(o),g=parseFloat(o.dataset.height||"")||(e=>{let t=0;return t=e instanceof HTMLImageElement?e.naturalHeight:e instanceof SVGElement?e.height.baseVal.value:Math.max(e.offsetHeight,e.scrollHeight),t||0})(o);let m=this.option("width",p)||W,v=this.option("height",g)||W;const y=m===W,b=v===W;"number"!=typeof m&&(m=p),"number"!=typeof v&&(v=g),y&&(m=p*(v/g)),b&&(v=g/(p/m));let w=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(w=w.parentElement||w);const x=w.getAttribute("style")||"";w.style.setProperty("transform","none","important"),r&&(w.style.width="",w.style.height=""),w.offsetHeight;const S=o.getBoundingClientRect();let E=S.width*n,T=S.height*n,C=E,k=T;E=Math.min(E,m),T=Math.min(T,v),r?({width:E,height:T}=((e,t,n,i)=>{const o=n/e,r=i/t,s=Math.min(o,r);return{width:e*=s,height:t*=s}})(m,v,E,T)):(E=Math.min(E,m),T=Math.min(T,v));let P=.5*(k-T),O=.5*(C-E);this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:S.top-s.top+P,bottom:s.bottom-S.bottom+P,left:S.left-s.left+O,right:s.right-S.right+O,fitWidth:E,fitHeight:T,width:E,height:T,fullWidth:m,fullHeight:v}),w.style.cssText=x,r&&(w.style.width=`${E}px`,w.style.height=`${T}px`),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(f(this.targetScale)<f(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===A.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}calculateBounds(){const{contentWidth:e,contentHeight:t}=this.calculateContentDim(this.target),{targetScale:n,lockedAxis:i}=this,{fitWidth:o,fitHeight:r}=this.contentRect;let s=0,a=0,l=0,c=0;const u=this.option("infinite");if(!0===u||i&&u===i)s=-1/0,l=1/0,a=-1/0,c=1/0;else{let{containerRect:i,contentRect:u}=this,h=f(o*n,H),d=f(r*n,H),{innerWidth:p,innerHeight:g}=i;if(i.width===h&&(p=i.width),i.width===d&&(g=i.height),e>p){l=.5*(e-p),s=-1*l;let t=.5*(u.right-u.left);s+=t,l+=t}if(o>p&&e<p&&(s-=.5*(o-p),l-=.5*(o-p)),t>g){c=.5*(t-g),a=-1*c;let e=.5*(u.bottom-u.top);a+=e,c+=e}r>g&&t<g&&(s-=.5*(r-g),l-=.5*(r-g))}return{x:{min:s,max:l},y:{min:a,max:c}}}getBounds(){const e=this.option("bounds");return e!==W?e:this.calculateBounds()}updateControls(){const e=this,t=e.container,{panMode:n,contentRect:i,targetScale:o,minScale:r}=e;let s=r,a=e.option("click")||!1;a&&(s=e.getNextScale(a));let l=e.canZoomIn(),c=e.canZoomOut(),u=n===q&&!!this.option("touch"),h=c&&u;if(u&&(f(o)<f(r)&&!this.panOnlyZoomed&&(h=!0),(f(i.width,1)>f(i.fitWidth,1)||f(i.height,1)>f(i.fitHeight,1))&&(h=!0)),f(i.width*o,1)<f(i.fitWidth,1)&&(h=!1),n===_&&(h=!1),y(t,this.cn("isDraggable"),h),!this.option("zoom"))return;let d=l&&f(s)>f(o),p=!d&&!h&&c&&f(s)<f(o);y(t,this.cn("canZoomIn"),d),y(t,this.cn("canZoomOut"),p);for(const e of t.querySelectorAll("[data-panzoom-action]")){let t=!1,n=!1;switch(e.dataset.panzoomAction){case"zoomIn":l?t=!0:n=!0;break;case"zoomOut":c?t=!0:n=!0;break;case"toggleZoom":case"iterateZoom":l||c?t=!0:n=!0;const i=e.querySelector("g");i&&(i.style.display=l?"":"none")}t?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):n&&(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"))}}panTo({x:e=this.target.e,y:t=this.target.f,scale:n=this.targetScale,friction:i=this.option("friction"),angle:o=0,originX:r=0,originY:s=0,flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1}){this.state!==A.Destroy&&this.applyChange({panX:e-this.target.e,panY:t-this.target.f,scale:n/this.targetScale,angle:o,originX:r,originY:s,friction:i,flipX:a,flipY:l,ignoreBounds:c})}applyChange({panX:e=0,panY:t=0,scale:n=1,angle:i=0,originX:o=-this.current.e,originY:r=-this.current.f,friction:s=this.option("friction"),flipX:a=!1,flipY:l=!1,ignoreBounds:c=!1,bounce:u=this.option("bounce")}){const h=this.state;if(h===A.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=s||0,this.ignoreBounds=c;const{current:d}=this,p=d.e,g=d.f,m=this.getMatrix(this.target);let v=(new DOMMatrix).translate(p,g).translate(o,r).translate(e,t);if(this.option("zoom")){if(!c){const e=this.targetScale,t=this.minScale,i=this.maxScale;e*n<t&&(n=t/e),e*n>i&&(n=i/e)}v=v.scale(n)}v=v.translate(-o,-r).translate(-p,-g).multiply(m),i&&(v=v.rotate(i)),a&&(v=v.scale(-1,1)),l&&(v=v.scale(1,-1));for(const e of M)"e"!==e&&"f"!==e&&(v[e]>this.minScale+1e-5||v[e]<this.minScale-1e-5)?this.target[e]=v[e]:this.target[e]=f(v[e],H);(this.targetScale<this.scale||Math.abs(n-1)>.1||this.panMode===_||!1===u)&&!c&&this.clampTargetBounds(),h===A.Init?this.animate():this.isResting||(this.state=A.Panning,this.requestTick())}stop(e=!1){if(this.state===A.Init||this.state===A.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of M)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),F(this.container,"is-scaling"),F(this.container,"is-animating"),this.isTicking=!1,this.state=A.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),I(this.container,"is-animating"),this.isScaling&&I(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,this.panMode!==_||!e)return;if(f(this.targetScale)<=f(this.minScale))return;this.emit("mouseMove",e);const{container:n,containerRect:i,contentRect:o}=this,r=i.width,s=i.height,a=n.getBoundingClientRect(),l=(e.clientX||0)-a.left,c=(e.clientY||0)-a.top;let{contentWidth:u,contentHeight:h}=this.calculateContentDim(this.target);const d=this.option("mouseMoveFactor");d>1&&(u!==r&&(u*=d),h!==s&&(h*=d));let p=.5*(u-r)-l/r*100/100*(u-r);p+=.5*(o.right-o.left);let g=.5*(h-s)-c/s*100/100*(h-s);g+=.5*(o.bottom-o.top),this.applyChange({panX:p-this.target.e,panY:g-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===A.Destroy||this.state===A.Init)return;const t=Date.now();if(t-this.pwt<45)return void e.preventDefault();this.pwt=t;var n=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e}));const i=Math.max(-1,Math.min(1,n)),{targetScale:o,maxScale:r,minScale:s}=this;let a=o*(100+45*i)/100;f(a)<f(s)&&f(o)<=f(s)?(this.cwd+=Math.abs(i),a=s):f(a)>f(r)&&f(o)>=f(r)?(this.cwd+=Math.abs(i),a=r):(this.cwd=0,a=Math.max(Math.min(a,r),s)),this.cwd>this.option("wheelLimit")||(e.preventDefault(),f(a)!==f(o)&&this.zoomTo(a,{event:e}))}canZoomIn(){return this.option("zoom")&&(f(this.contentRect.width,1)<f(this.contentRect.fitWidth,1)||f(this.targetScale)<f(this.maxScale))}canZoomOut(){return this.option("zoom")&&f(this.targetScale)>f(this.minScale)}zoomIn(e=1.25,t){this.zoomTo(this.targetScale*e,t)}zoomOut(e=.8,t){this.zoomTo(this.targetScale*e,t)}zoomToFit(e){this.zoomTo("fit",e)}zoomToCover(e){this.zoomTo("cover",e)}zoomToFull(e){this.zoomTo("full",e)}zoomToMax(e){this.zoomTo("max",e)}toggleZoom(e){this.zoomTo(this.getNextScale("toggleZoom"),e)}toggleMax(e){this.zoomTo(this.getNextScale("toggleMax"),e)}toggleCover(e){this.zoomTo(this.getNextScale("toggleCover"),e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t=W,originX:n=W,originY:i=W,event:o}={}){if(this.isContentLoading||this.state===A.Destroy)return;const{targetScale:r,fullScale:s,maxScale:a,coverScale:l}=this;if(this.stop(),this.panMode===_&&(o=this.pmme||o),o||n===W||i===W){const e=this.content.getBoundingClientRect(),t=this.container.getBoundingClientRect(),r=o?o.clientX:t.left+.5*t.width,s=o?o.clientY:t.top+.5*t.height;n=r-e.left-.5*e.width,i=s-e.top-.5*e.height}let c=1;"number"==typeof e?c=e:"full"===e?c=s:"cover"===e?c=l:"max"===e?c=a:"fit"===e?c=1:"next"===e&&(c=this.getNextScale("iterateZoom")),c=c/r||1,t=t===W?c>1?.15:.25:t,this.applyChange({scale:c,originX:n,originY:i,friction:t}),o&&this.panMode===_&&this.panWithMouse(o,t)}rotateCCW(){this.applyChange({angle:-90})}rotateCW(){this.applyChange({angle:90})}flipX(){this.applyChange({flipX:!0})}flipY(){this.applyChange({flipY:!0})}fitX(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.height-(t.top+.5*t.fitHeight)-n.f,scale:e.width/t.fitWidth/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}fitY(){this.stop("target");const{containerRect:e,contentRect:t,target:n}=this;this.applyChange({panX:.5*e.width-(t.left+.5*t.fitWidth)-n.e,panY:.5*e.innerHeight-(t.top+.5*t.fitHeight)-n.f,scale:e.height/t.fitHeight/this.targetScale,originX:0,originY:0,ignoreBounds:!0})}toggleFS(){const{container:e}=this,t=this.cn("inFullscreen"),n=this.cn("htmlHasFullscreen");e.classList.toggle(t);const i=e.classList.contains(t);i?(document.documentElement.classList.add(n),document.addEventListener("keydown",this.onKeydown,!0)):(document.documentElement.classList.remove(n),document.removeEventListener("keydown",this.onKeydown,!0)),this.updateMetrics(),this.emit(i?"enterFS":"exitFS")}getMatrix(e=this.current){const{a:t,b:n,c:i,d:o,e:r,f:s}=e;return new DOMMatrix([t,n,i,o,r,s])}reset(e){if(this.state!==A.Init&&this.state!==A.Destroy){this.stop("current");for(const e of M)this.target[e]=z[e];this.target.a=this.minScale,this.target.d=this.minScale,this.clampTargetBounds(),this.isResting||(this.friction=void 0===e?this.option("friction"):e,this.state=A.Panning,this.requestTick())}}destroy(){this.stop(),this.state=A.Destroy,this.detachEvents(),this.detachObserver();const{container:e,content:t}=this,n=this.option("classes")||{};for(const t of Object.values(n))e.classList.remove(t+"");t&&(t.removeEventListener("load",this.onLoad),t.removeEventListener("error",this.onError)),this.detachPlugins()}}Object.defineProperty(X,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:j}),Object.defineProperty(X,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const U=function(e,t){let n=!0;return(...i)=>{n&&(n=!1,e(...i),setTimeout((()=>{n=!0}),t))}},Y=(e,t)=>{let n=[];return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)})),n};var G;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(G||(G={}));const Z=e=>{if("string"==typeof e||e instanceof HTMLElement)e={html:e};else{const t=e.thumb;void 0!==t&&("string"==typeof t&&(e.thumbSrc=t),t instanceof HTMLImageElement&&(e.thumbEl=t,e.thumbElSrc=t.src,e.thumbSrc=t.src),delete e.thumb)}return Object.assign({html:"",el:null,isDom:!1,class:"",customClass:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},K=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class J extends P{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class Q extends J{constructor(){super(...arguments),Object.defineProperty(this,"isDynamic",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"list",{enumerable:!0,configurable:!0,writable:!0,value:null})}onRefresh(){this.refresh()}build(){let e=this.list;if(!e){e=document.createElement("ul"),I(e,this.cn("list")),e.setAttribute("role","tablist");const t=this.instance.container;t.appendChild(e),I(t,this.cn("hasDots")),this.list=e}return e}refresh(){var e;const t=this.instance.pages.length,n=Math.min(2,this.option("minCount")),i=Math.max(2e3,this.option("maxCount")),o=this.option("dynamicFrom");if(t<n||t>i)return void this.cleanup();const r="number"==typeof o&&t>5&&t>=o,s=!this.list||this.isDynamic!==r||this.list.children.length!==t;s&&this.cleanup();const a=this.build();if(y(a,this.cn("isDynamic"),!!r),s)for(let e=0;e<t;e++)a.append(this.createItem(e));let l,c=0;for(const t of[...a.children]){const n=c===this.instance.page;n&&(l=t),y(t,this.cn("isCurrent"),n),null===(e=t.children[0])||void 0===e||e.setAttribute("aria-selected",n?"true":"false");for(const e of["isBeforePrev","isPrev","isNext","isAfterNext"])F(t,this.cn(e));c++}if(l=l||a.firstChild,r&&l){const e=l.previousElementSibling,t=e&&e.previousElementSibling;I(e,this.cn("isPrev")),I(t,this.cn("isBeforePrev"));const n=l.nextElementSibling,i=n&&n.nextElementSibling;I(n,this.cn("isNext")),I(i,this.cn("isAfterNext"))}this.isDynamic=r}createItem(e=0){var t;const n=document.createElement("li");n.setAttribute("role","presentation");const i=m(this.instance.localize(this.option("dotTpl"),[["%d",e+1]]).replace(/\%i/g,e+""));return n.appendChild(i),null===(t=n.children[0])||void 0===t||t.setAttribute("role","tab"),n}cleanup(){this.list&&(this.list.remove(),this.list=null),this.isDynamic=!1,F(this.instance.container,this.cn("hasDots"))}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Q,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{list:"f-carousel__dots",isDynamic:"is-dynamic",hasDots:"has-dots",dot:"f-carousel__dot",isBeforePrev:"is-before-prev",isPrev:"is-prev",isCurrent:"is-current",isNext:"is-next",isAfterNext:"is-after-next"},dotTpl:'<button type="button" data-carousel-page="%i" aria-label="{{GOTO}}"><span class="f-carousel__dot" aria-hidden="true"></span></button>',dynamicFrom:11,maxCount:1/0,minCount:2}});const ee="disabled",te="next",ne="prev";class ie extends J{constructor(){super(...arguments),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prev",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"next",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"isDom",{enumerable:!0,configurable:!0,writable:!0,value:!1})}onRefresh(){const e=this.instance,t=e.pages.length,n=e.page;if(t<2)return void this.cleanup();this.build();let i=this.prev,o=this.next;i&&o&&(i.removeAttribute(ee),o.removeAttribute(ee),e.isInfinite||(n<=0&&i.setAttribute(ee,""),n>=t-1&&o.setAttribute(ee,"")))}addBtn(e){var t;const n=this.instance,i=document.createElement("button");i.setAttribute("tabindex","0"),i.setAttribute("title",n.localize(`{{${e.toUpperCase()}}}`)),I(i,this.cn("button")+" "+this.cn(e===te?"isNext":"isPrev"));const o=n.isRTL?e===te?ne:te:e;var r;return i.innerHTML=n.localize(this.option(`${o}Tpl`)),i.dataset[`carousel${r=e,r?r.match("^[a-z]")?r.charAt(0).toUpperCase()+r.substring(1):r:""}`]="true",null===(t=this.container)||void 0===t||t.appendChild(i),i}build(){const e=this.instance.container,t=this.cn("container");let{container:n,prev:i,next:o}=this;n||(n=e.querySelector("."+t),this.isDom=!!n),n||(n=document.createElement("div"),I(n,t),e.appendChild(n)),this.container=n,o||(o=n.querySelector("[data-carousel-next]")),o||(o=this.addBtn(te)),this.next=o,i||(i=n.querySelector("[data-carousel-prev]")),i||(i=this.addBtn(ne)),this.prev=i}cleanup(){this.isDom||(this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove()),this.prev=null,this.next=null,this.container=null,this.isDom=!1}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(ie,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{classes:{container:"f-carousel__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"},nextTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M9 3l9 9-9 9"/></svg>',prevTpl:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M15 3l-9 9 9 9"/></svg>'}});class oe extends J{constructor(){super(...arguments),Object.defineProperty(this,"selectedIndex",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"nav",{enumerable:!0,configurable:!0,writable:!0,value:null})}addAsTargetFor(e){this.target=this.instance,this.nav=e,this.attachEvents()}addAsNavFor(e){this.nav=this.instance,this.target=e,this.attachEvents()}attachEvents(){const{nav:e,target:t}=this;e&&t&&(e.options.initialSlide=t.options.initialPage,e.state===G.Ready?this.onNavReady(e):e.on("ready",this.onNavReady),t.state===G.Ready?this.onTargetReady(t):t.on("ready",this.onTargetReady))}onNavReady(e){e.on("createSlide",this.onNavCreateSlide),e.on("Panzoom.click",this.onNavClick),e.on("Panzoom.touchEnd",this.onNavTouch),this.onTargetChange()}onTargetReady(e){e.on("change",this.onTargetChange),e.on("Panzoom.refresh",this.onTargetChange),this.onTargetChange()}onNavClick(e,t,n){this.onNavTouch(e,e.panzoom,n)}onNavTouch(e,t,n){var i,o;if(Math.abs(t.dragOffset.x)>3||Math.abs(t.dragOffset.y)>3)return;const r=n.target,{nav:s,target:a}=this;if(!s||!a||!r)return;const l=r.closest("[data-index]");if(n.stopPropagation(),n.preventDefault(),!l)return;const c=parseInt(l.dataset.index||"",10)||0,u=a.getPageForSlide(c),h=s.getPageForSlide(c);s.slideTo(h),a.slideTo(u,{friction:(null===(o=null===(i=this.nav)||void 0===i?void 0:i.plugins)||void 0===o?void 0:o.Sync.option("friction"))||0}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){var e,t;const{target:n,nav:i}=this;if(!n||!i)return;if(i.state!==G.Ready||n.state!==G.Ready)return;const o=null===(t=null===(e=n.pages[n.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index,r=i.getPageForSlide(o);this.markSelectedSlide(o),i.slideTo(r,null===i.prevPage&&null===n.prevPage?{friction:0}:void 0)}markSelectedSlide(e){const t=this.nav;t&&t.state===G.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){const e=this;let t=e.options.target,n=e.options.nav;t?e.addAsNavFor(t):n&&e.addAsTargetFor(n)}detach(){const e=this,t=e.nav,n=e.target;t&&(t.off("ready",e.onNavReady),t.off("createSlide",e.onNavCreateSlide),t.off("Panzoom.click",e.onNavClick),t.off("Panzoom.touchEnd",e.onNavTouch)),e.nav=null,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),e.target=null}}Object.defineProperty(oe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const re={Navigation:ie,Dots:Q,Sync:oe},se="animationend",ae="isSelected",le="slide";class ce extends O{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===G.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:n,pages:i,slides:o}=this,r=o[0];return i.length>=2&&r&&t+r.dim>=n&&(e=this.option("infinite")),e}get isRTL(){return"rtl"===this.option("direction")}get isHorizontal(){return"x"===this.option("axis")}constructor(e,t={},n={}){if(super(),Object.defineProperty(this,"bp",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"lp",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:G.Init}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"prevPage",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"viewport",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"slides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"pages",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"panzoom",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"inTransition",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"contentDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"viewportDim",{enumerable:!0,configurable:!0,writable:!0,value:0}),"string"==typeof e&&(e=document.querySelector(e)),!e||!R(e))throw new Error("No Element found");this.container=e,this.slideNext=U(this.slideNext.bind(this),150),this.slidePrev=U(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=n,queueMicrotask((()=>{this.processOptions()}))}processOptions(){var e,t;const n=C({},ce.defaults,this.userOptions);let i="";const o=n.breakpoints;if(o&&T(o))for(const[e,t]of Object.entries(o))window.matchMedia(e).matches&&T(t)&&(i+=e,C(n,t));i===this.bp&&this.state!==G.Init||(this.bp=i,this.state===G.Ready&&(n.initialSlide=(null===(t=null===(e=this.pages[this.page])||void 0===e?void 0:e.slides[0])||void 0===t?void 0:t.index)||0),this.state!==G.Init&&this.destroy(),super.setOptions(n),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=G.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},ce.Plugins),this.userPlugins)),this.emit("attachPlugins"),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=G.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");I(e,this.cn("container")),y(e,t.isLTR,!this.isRTL),y(e,t.isRTL,this.isRTL),y(e,t.isVertical,!this.isHorizontal),y(e,t.isHorizontal,this.isHorizontal);let n=this.option("viewport")||e.querySelector(`.${t.viewport}`);n||(n=document.createElement("div"),I(n,t.viewport),n.append(...Y(e,`.${t.slide}`)),e.prepend(n)),n.addEventListener("scroll",this.onScroll);let i=this.option("track")||e.querySelector(`.${t.track}`);i||(i=document.createElement("div"),I(i,t.track),i.append(...Array.from(n.childNodes))),i.setAttribute("aria-live","polite"),n.contains(i)||n.prepend(i),this.viewport=n,this.track=i,this.emit("initLayout")}initSlides(){const{track:e}=this;if(!e)return;const t=[...this.slides],n=[];[...Y(e,`.${this.cn(le)}`)].forEach((e=>{if(R(e)){const t=Z({el:e,isDom:!0,index:this.slides.length});n.push(t)}}));for(let e of[...this.option("slides",[])||[],...t])n.push(Z(e));this.slides=n;for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of n)this.emit("beforeInitSlide",e,e.index),this.emit("initSlide",e,e.index);this.emit("initSlides")}setInitialPage(){const e=this.option("initialSlide");this.page="number"==typeof e?this.getPageForSlide(e):parseInt(this.option("initialPage",0)+"",10)||0}setInitialPosition(){const{track:e,pages:t,isHorizontal:n}=this;if(!e||!t.length)return;let i=this.page;t[i]||(this.page=i=0);const o=(t[i].pos||0)*(this.isRTL&&n?1:-1),r=n?`${o}px`:"0",s=n?"0":`${o}px`;e.style.transform=`translate3d(${r}, ${s}, 0) scale(1)`,this.option("adaptiveHeight")&&this.setViewportHeight()}initPanzoom(){this.panzoom&&(this.panzoom.destroy(),this.panzoom=null);const e=this.option("Panzoom")||{};this.panzoom=new X(this.viewport,C({},{content:this.track,zoom:!1,panOnlyZoomed:!1,lockAxis:this.isHorizontal?"x":"y",infinite:this.isInfinite,click:!1,dblClick:!1,touch:e=>!(this.pages.length<2&&!e.options.infinite),bounds:()=>this.getBounds(),maxVelocity:e=>Math.abs(e.target[this.axis]-e.current[this.axis])<2*this.viewportDim?100:0},e)),this.panzoom.on("*",((e,t,...n)=>{this.emit(`Panzoom.${t}`,e,...n)})),this.panzoom.on("decel",this.onDecel),this.panzoom.on("refresh",this.onRefresh),this.panzoom.on("beforeTransform",this.onBeforeTransform),this.panzoom.on("endAnimation",this.onEndAnimation)}attachEvents(){const e=this.container;e&&(e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("slideTo",this.onSlideTo)),window.addEventListener("resize",this.onResize)}createPages(){let e=[];const{contentDim:t,viewportDim:n}=this;let i=this.option("slidesPerPage");i=("auto"===i||t<=n)&&!1!==this.option("fill")?1/0:parseFloat(i+"");let o=0,r=0,s=0;for(const t of this.slides)(!e.length||r+t.dim-n>.05||s>=i)&&(e.push(K()),o=e.length-1,r=0,s=0),e[o].slides.push(t),r+=t.dim+t.gap,s++;return e}processPages(){const e=this.pages,{contentDim:t,viewportDim:n,isInfinite:i}=this,o=this.option("center"),r=this.option("fill"),s=r&&o&&t>n&&!i;if(e.forEach(((e,i)=>{var r;e.index=i,e.pos=(null===(r=e.slides[0])||void 0===r?void 0:r.pos)||0,e.dim=0;for(const[t,n]of e.slides.entries())e.dim+=n.dim,t<e.slides.length-1&&(e.dim+=n.gap);s&&e.pos+.5*e.dim<.5*n?e.pos=0:s&&e.pos+.5*e.dim>=t-.5*n?e.pos=t-n:o&&(e.pos+=-.5*(n-e.dim))})),e.forEach((e=>{r&&!i&&t>n&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-n)),e.pos=f(e.pos,1e3),e.dim=f(e.dim,1e3),Math.abs(e.pos)<=.1&&(e.pos=0)})),i)return e;const a=[];let l;return e.forEach((e=>{const t=Object.assign({},e);l&&t.pos===l.pos?(l.dim+=t.dim,l.slides=[...l.slides,...t.slides]):(t.index=a.length,l=t,a.push(t))})),a}getPageFromIndex(e=0){const t=this.pages.length;let n;return e=parseInt((e||0).toString())||0,n=this.isInfinite?(e%t+t)%t:Math.max(Math.min(e,t-1),0),n}getSlideMetrics(e){var t,n;const i=this.isHorizontal?"width":"height";let o=0,r=0,s=e.el;const a=!(!s||s.parentNode);if(s?o=parseFloat(s.dataset[i]||"")||0:(s=document.createElement("div"),s.style.visibility="hidden",(this.track||document.body).prepend(s)),I(s,this.cn(le)+" "+e.class+" "+e.customClass),o)s.style[i]=`${o}px`,s.style["width"===i?"height":"width"]="";else{a&&(this.track||document.body).prepend(s),o=s.getBoundingClientRect()[i]*Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);let e=s[this.isHorizontal?"offsetWidth":"offsetHeight"];e-1>o&&(o=e)}const l=getComputedStyle(s);return"content-box"===l.boxSizing&&(this.isHorizontal?(o+=parseFloat(l.paddingLeft)||0,o+=parseFloat(l.paddingRight)||0):(o+=parseFloat(l.paddingTop)||0,o+=parseFloat(l.paddingBottom)||0)),r=parseFloat(l[this.isHorizontal?"marginRight":"marginBottom"])||0,a?null===(n=s.parentElement)||void 0===n||n.removeChild(s):e.el||s.remove(),{dim:f(o,1e3),gap:f(r,1e3)}}getBounds(){const{isInfinite:e,isRTL:t,isHorizontal:n,pages:i}=this;let o={min:0,max:0};if(e)o={min:-1/0,max:1/0};else if(i.length){const e=i[0].pos,r=i[i.length-1].pos;o=t&&n?{min:e,max:r}:{min:-1*r,max:-1*e}}return{x:n?o:{min:0,max:0},y:n?{min:0,max:0}:o}}repositionSlides(){let e,{isHorizontal:t,isRTL:n,isInfinite:i,viewport:o,viewportDim:r,contentDim:s,page:a,pages:l,slides:c,panzoom:u}=this,h=0,d=0,p=0,g=0;u?g=-1*u.current[this.axis]:l[a]&&(g=l[a].pos||0),e=t?n?"right":"left":"top",n&&t&&(g*=-1);for(const t of c){const n=t.el;n?("top"===e?(n.style.right="",n.style.left=""):n.style.top="",t.index!==h?n.style[e]=0===d?"":`${f(d,1e3)}px`:n.style[e]="",p+=t.dim+t.gap,h++):d+=t.dim+t.gap}if(i&&p&&o){let n=getComputedStyle(o),i="padding",a=t?"Right":"Bottom",l=parseFloat(n[i+(t?"Left":"Top")]);g-=l,r+=l,r+=parseFloat(n[i+a]);for(const t of c)t.el&&(f(t.pos)<f(r)&&f(t.pos+t.dim+t.gap)<f(g)&&f(g)>f(s-r)&&(t.el.style[e]=`${f(d+p,1e3)}px`),f(t.pos+t.gap)>=f(s-r)&&f(t.pos)>f(g+r)&&f(g)<f(r)&&(t.el.style[e]=`-${f(p,1e3)}px`))}let m,v,y=[...this.inTransition];if(y.length>1&&(m=l[y[0]],v=l[y[1]]),m&&v){let t=0;for(const n of c)n.el?this.inTransition.has(n.index)&&m.slides.indexOf(n)<0&&(n.el.style[e]=`${f(t+(m.pos-v.pos),1e3)}px`):t+=n.dim+n.gap}}createSlideEl(e){const{track:t,slides:n}=this;if(!t||!e)return;if(e.el&&e.el.parentNode)return;const i=e.el||document.createElement("div");I(i,this.cn(le)),I(i,e.class),I(i,e.customClass);const o=e.html;o&&(o instanceof HTMLElement?i.appendChild(o):i.innerHTML=e.html+"");const r=[];n.forEach(((e,t)=>{e.el&&r.push(t)}));const s=e.index;let a=null;r.length&&(a=n[r.reduce(((e,t)=>Math.abs(t-s)<Math.abs(e-s)?t:e))]);const l=a&&a.el&&a.el.parentNode?a.index<e.index?a.el.nextSibling:a.el:null;t.insertBefore(i,t.contains(l)?l:null),e.el=i,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const n=null==e?void 0:e.el;if(!n||!n.parentNode)return;const i=this.cn(ae);if(n.classList.contains(i)&&(F(n,i),this.emit("unselectSlide",e)),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),void(n.style.left="");this.emit("removeSlide",e);const o=new CustomEvent(se);n.dispatchEvent(o),e.el&&(e.el.remove(),e.el=null)}transitionTo(e=0,t=this.option("transition")){var n,i,o,r;if(!t)return!1;const s=this.page,{pages:a,panzoom:l}=this;e=parseInt((e||0).toString())||0;const c=this.getPageFromIndex(e);if(!l||!a[c]||a.length<2||Math.abs(((null===(i=null===(n=a[s])||void 0===n?void 0:n.slides[0])||void 0===i?void 0:i.dim)||0)-this.viewportDim)>1)return!1;let u=e>s?1:-1;this.isInfinite&&(0===s&&e===a.length-1&&(u=-1),s===a.length-1&&0===e&&(u=1));const h=a[c].pos*(this.isRTL?1:-1);if(s===c&&Math.abs(h-l.target[this.axis])<1)return!1;this.clearTransitions();const d=l.isResting;I(this.container,this.cn("inTransition"));const f=(null===(o=a[s])||void 0===o?void 0:o.slides[0])||null,p=(null===(r=a[c])||void 0===r?void 0:r.slides[0])||null;this.inTransition.add(p.index),this.createSlideEl(p);let g=f.el,m=p.el;d||t===le||(t="fadeFast",g=null);const v=this.isRTL?"next":"prev",y=this.isRTL?"prev":"next";return g&&(this.inTransition.add(f.index),f.transition=t,g.addEventListener(se,this.onAnimationEnd),g.classList.add(`f-${t}Out`,`to-${u>0?y:v}`)),m&&(p.transition=t,m.addEventListener(se,this.onAnimationEnd),m.classList.add(`f-${t}In`,`from-${u>0?v:y}`)),l.current[this.axis]=h,l.target[this.axis]=h,l.requestTick(),this.onChange(c),!0}manageSlideVisiblity(){const e=new Set,t=new Set,n=this.getVisibleSlides(parseFloat(this.option("preload",0)+"")||0);for(const i of this.slides)n.has(i)?e.add(i):t.add(i);for(const t of this.inTransition)e.add(this.slides[t]);for(const t of e)this.createSlideEl(t),this.lazyLoadSlide(t);for(const n of t)e.has(n)||this.removeSlideEl(n);this.markSelectedSlides(),this.repositionSlides()}markSelectedSlides(){if(!this.pages[this.page]||!this.pages[this.page].slides)return;const e="aria-hidden";let t=this.cn(ae);if(t)for(const n of this.slides){const i=n.el;i&&(i.dataset.index=`${n.index}`,i.classList.contains("f-thumbs__slide")?this.getVisibleSlides(0).has(n)?i.removeAttribute(e):i.setAttribute(e,"true"):this.pages[this.page].slides.includes(n)?(i.classList.contains(t)||(I(i,t),this.emit("selectSlide",n)),i.removeAttribute(e)):(i.classList.contains(t)&&(F(i,t),this.emit("unselectSlide",n)),i.setAttribute(e,"true")))}}flipInfiniteTrack(){const{axis:e,isHorizontal:t,isInfinite:n,isRTL:i,viewportDim:o,contentDim:r}=this,s=this.panzoom;if(!s||!n)return;let a=s.current[e],l=s.target[e]-a,c=0,u=.5*o;i&&t?(a<-u&&(c=-1,a+=r),a>r-u&&(c=1,a-=r)):(a>u&&(c=1,a-=r),a<-r+u&&(c=-1,a+=r)),c&&(s.current[e]=a,s.target[e]=a+l)}lazyLoadImg(e,t){const n=this,i="f-fadeIn",o="is-preloading";let r=!1,s=null;const a=()=>{r||(r=!0,s&&(s.remove(),s=null),F(t,o),t.complete&&(I(t,i),setTimeout((()=>{F(t,i)}),350)),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(n.updateMetrics(),n.setViewportHeight()),this.emit("load",e))};I(t,o),t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.addEventListener("error",(()=>{a()})),t.addEventListener("load",(()=>{a()})),setTimeout((()=>{const n=t.parentNode;n&&e.el&&(t.complete?a():r||(s=m(N),n.insertBefore(s,t)))}),300)}lazyLoadSlide(e){const t=e&&e.el;if(!t)return;const n=new Set;let i=Array.from(t.querySelectorAll("[data-lazy-src],[data-lazy-srcset]"));t.dataset.lazySrc&&i.push(t),i.map((e=>{e instanceof HTMLImageElement?n.add(e):e instanceof HTMLElement&&e.dataset.lazySrc&&(e.style.backgroundImage=`url('${e.dataset.lazySrc}')`,delete e.dataset.lazySrc)}));for(const t of n)this.lazyLoadImg(e,t)}onAnimationEnd(e){var t;const n=e.target,i=n?parseInt(n.dataset.index||"",10)||0:-1,o=this.slides[i],r=e.animationName;if(!n||!o||!r)return;const s=!!this.inTransition.has(i)&&o.transition;s&&r.substring(0,s.length+2)===`f-${s}`&&this.inTransition.delete(i),this.inTransition.size||this.clearTransitions(),i===this.page&&(null===(t=this.panzoom)||void 0===t?void 0:t.isResting)&&this.emit("settle")}onDecel(e,t=0,n=0,i=0,o=0){if(this.option("dragFree"))return void this.setPageFromPosition();const{isRTL:r,isHorizontal:s,axis:a,pages:l}=this,c=l.length,u=Math.abs(Math.atan2(n,t)/(Math.PI/180));let h=0;if(h=u>45&&u<135?s?0:n:s?t:0,!c)return;let d=this.page,f=r&&s?1:-1;const p=e.current[a]*f;let{pageIndex:g}=this.getPageFromPosition(p);Math.abs(h)>5?(l[d].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(d=g),d=r&&s?h<0?d-1:d+1:h<0?d+1:d-1):d=0===i&&0===o?d:g,this.slideTo(d,{transition:!1,friction:e.option("decelFriction")})}onClick(e){const t=e.target,n=t&&R(t)?t.dataset:null;let i,o;n&&(void 0!==n.carouselPage?(o="slideTo",i=n.carouselPage):void 0!==n.carouselNext?o="slideNext":void 0!==n.carouselPrev&&(o="slidePrev")),o?(e.preventDefault(),e.stopPropagation(),t&&!t.hasAttribute("disabled")&&this[o](i)):this.emit("click",e)}onSlideTo(e){const t=e.detail||0;this.slideTo(this.getPageForSlide(t),{friction:0})}onChange(e,t=0){const n=this.page;this.prevPage=n,this.page=e,this.option("adaptiveHeight")&&this.setViewportHeight(),e!==n&&(this.markSelectedSlides(),this.emit("change",e,n,t))}onRefresh(){let e=this.contentDim,t=this.viewportDim;this.updateMetrics(),this.contentDim===e&&this.viewportDim===t||this.slideTo(this.page,{friction:0,transition:!1})}onScroll(){var e;null===(e=this.viewport)||void 0===e||e.scroll(0,0)}onResize(){this.option("breakpoints")&&this.processOptions()}onBeforeTransform(e){this.lp!==e.current[this.axis]&&(this.flipInfiniteTrack(),this.manageSlideVisiblity()),this.lp=e.current.e}onEndAnimation(){this.inTransition.size||this.emit("settle")}reInit(e=null,t=null){this.destroy(),this.state=G.Init,this.prevPage=null,this.userOptions=e||this.userOptions,this.userPlugins=t||this.userPlugins,this.processOptions()}slideTo(e=0,{friction:t=this.option("friction"),transition:n=this.option("transition")}={}){if(this.state===G.Destroy)return;e=parseInt((e||0).toString())||0;const i=this.getPageFromIndex(e),{axis:o,isHorizontal:r,isRTL:s,pages:a,panzoom:l}=this,c=a.length,u=s&&r?1:-1;if(!l||!c)return;if(this.page!==i){const t=new Event("beforeChange",{bubbles:!0,cancelable:!0});if(this.emit("beforeChange",t,e),t.defaultPrevented)return}if(this.transitionTo(e,n))return;let h=a[i].pos;if(this.isInfinite){const t=this.contentDim,n=l.target[o]*u;2===c?h+=t*Math.floor(parseFloat(e+"")/2):h=[h,h-t,h+t].reduce((function(e,t){return Math.abs(t-n)<Math.abs(e-n)?t:e}))}h*=u,Math.abs(l.target[o]-h)<1||(l.panTo({x:r?h:0,y:r?0:h,friction:t}),this.onChange(i))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition();this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),F(this.container,this.cn("inTransition"));const e=["to-prev","to-next","from-prev","from-next"];for(const t of this.slides){const n=t.el;if(n){n.removeEventListener(se,this.onAnimationEnd),n.classList.remove(...e);const i=t.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}addSlide(e,t){var n,i,o,r;const s=this.panzoom,a=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0,l=(null===(i=this.pages[this.page])||void 0===i?void 0:i.dim)||0,c=this.contentDim<this.viewportDim;let u=Array.isArray(t)?t:[t];const h=[];for(const e of u)h.push(Z(e));this.slides.splice(e,0,...h);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;for(const e of h)this.emit("beforeInitSlide",e,e.index);if(this.page>=e&&(this.page+=h.length),this.updateMetrics(),s){const t=(null===(o=this.pages[this.page])||void 0===o?void 0:o.pos)||0,n=(null===(r=this.pages[this.page])||void 0===r?void 0:r.dim)||0,i=this.pages.length||1,u=this.isRTL?l-n:n-l,h=this.isRTL?a-t:t-a;c&&1===i?(e<=this.page&&(s.current[this.axis]-=u,s.target[this.axis]-=u),s.panTo({[this.isHorizontal?"x":"y"]:-1*t})):h&&e<=this.page&&(s.target[this.axis]-=h,s.current[this.axis]-=h,s.requestTick())}for(const e of h)this.emit("initSlide",e,e.index)}prependSlide(e){this.addSlide(0,e)}appendSlide(e){this.addSlide(this.slides.length,e)}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t;const n=this.slides[e];if(n){this.removeSlideEl(n,!0),this.slides.splice(e,1);for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;this.updateMetrics(),this.slideTo(this.page,{friction:0,transition:!1}),this.emit("destroySlide",n)}}updateMetrics(){const{panzoom:e,viewport:t,track:n,slides:i,isHorizontal:o,isInfinite:r}=this;if(!n)return;const s=o?"width":"height",a=o?"offsetWidth":"offsetHeight";if(t){let e=Math.max(t[a],f(t.getBoundingClientRect()[s],1e3)),n=getComputedStyle(t),i="padding",r=o?"Right":"Bottom";e-=parseFloat(n[i+(o?"Left":"Top")])+parseFloat(n[i+r]),this.viewportDim=e}let l,c=0;for(const[e,t]of i.entries()){let n=0,o=0;!t.el&&l?(n=l.dim,o=l.gap):(({dim:n,gap:o}=this.getSlideMetrics(t)),l=t),n=f(n,1e3),o=f(o,1e3),t.dim=n,t.gap=o,t.pos=c,c+=n,(r||e<i.length-1)&&(c+=o)}c=f(c,1e3),this.contentDim=c,e&&(e.contentRect[s]=c,e.contentRect[o?"fullWidth":"fullHeight"]=c),this.pages=this.createPages(),this.pages=this.processPages(),this.state===G.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1,n=!1){void 0===e&&(e=this.page);const i=this,o=i.panzoom,r=i.contentDim,s=i.pages[e]||0;if(!s||!o)return e>this.page?-1:1;let a=-1*o.current.e,l=f((a-s.pos)/(1*s.dim),1e3),c=l,u=l;this.isInfinite&&!0!==n&&(c=f((a-s.pos+r)/(1*s.dim),1e3),u=f((a-s.pos-r)/(1*s.dim),1e3));let h=[l,c,u].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?h:h>1?1:h<-1?-1:h}setViewportHeight(){const{page:e,pages:t,viewport:n,isHorizontal:i}=this;if(!n||!t[e])return;let o=0;i&&this.track&&(this.track.style.height="auto",t[e].slides.forEach((e=>{e.el&&(o=Math.max(o,e.el.offsetHeight))}))),n.style.height=o?`${o}px`:""}getPageForSlide(e){for(const t of this.pages)for(const n of t.slides)if(n.index===e)return t.index;return-1}getVisibleSlides(e=0){var t;const n=new Set;let{panzoom:i,contentDim:o,viewportDim:r,pages:s,page:a}=this;if(r){o=o+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let l=0;l=i&&i.state!==A.Init&&i.state!==A.Destroy?-1*i.current[this.axis]:s[a]&&s[a].pos||0,this.isInfinite&&(l-=Math.floor(l/o)*o),this.isRTL&&this.isHorizontal&&(l*=-1);const c=l-r*e,u=l+r*(e+1),h=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of h){const i=e.pos+t*o,r=i+e.dim+e.gap;i<u&&r>c&&n.add(e)}}return n}getPageFromPosition(e){const{viewportDim:t,contentDim:n,slides:i,pages:o,panzoom:r}=this,s=o.length,a=i.length,l=i[0],c=i[a-1],u=this.option("center");let h=0,d=0,f=0,p=void 0===e?-1*((null==r?void 0:r.target[this.axis])||0):e;u&&(p+=.5*t),this.isInfinite?(p<l.pos-.5*c.gap&&(p-=n,f=-1),p>c.pos+c.dim+.5*c.gap&&(p-=n,f=1)):p=Math.max(l.pos||0,Math.min(p,c.pos));let g=c,m=i.find((e=>{const t=e.pos-.5*g.gap,n=e.pos+e.dim+.5*e.gap;return g=e,p>=t&&p<n}));return m||(m=c),d=this.getPageForSlide(m.index),h=d+f*s,{page:h,pageIndex:d}}setPageFromPosition(){const{pageIndex:e}=this.getPageFromPosition();this.onChange(e)}destroy(){if([G.Destroy].includes(this.state))return;this.state=G.Destroy;const{container:e,viewport:t,track:n,slides:i,panzoom:o}=this,r=this.option("classes");e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),e.removeEventListener("slideTo",this.onSlideTo),window.removeEventListener("resize",this.onResize),o&&(o.destroy(),this.panzoom=null),i&&i.forEach((e=>{this.removeSlideEl(e)})),this.detachPlugins(),t&&(t.removeEventListener("scroll",this.onScroll),t.offsetParent&&n&&n.offsetParent&&t.replaceWith(...n.childNodes));for(const[t,n]of Object.entries(r))"container"!==t&&n&&e.classList.remove(n);this.track=null,this.viewport=null,this.page=0,this.slides=[];const s=this.events.get("ready");this.events=new Map,s&&this.events.set("ready",s)}}Object.defineProperty(ce,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:X}),Object.defineProperty(ce,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{viewport:null,track:null,enabled:!0,slides:[],axis:"x",transition:"fade",preload:1,slidesPerPage:"auto",initialPage:0,friction:.12,Panzoom:{decelFriction:.12},center:!0,infinite:!0,fill:!0,dragFree:!1,adaptiveHeight:!1,direction:"ltr",classes:{container:"f-carousel",viewport:"f-carousel__viewport",track:"f-carousel__track",slide:"f-carousel__slide",isLTR:"is-ltr",isRTL:"is-rtl",isHorizontal:"is-horizontal",isVertical:"is-vertical",inTransition:"in-transition",isSelected:"is-selected"},l10n:{NEXT:"Next slide",PREV:"Previous slide",GOTO:"Go to slide #%d"}}}),Object.defineProperty(ce,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:re});const ue=function(e){if(!R(e))return 0;const t=window.scrollY,n=window.innerHeight,i=t+n,o=e.getBoundingClientRect(),r=o.y+t,s=o.height,a=r+s;if(t>a||i<r)return 0;if(t<r&&i>a)return 100;if(r<t&&a>i)return 100;let l=s;r<t&&(l-=t-r),a>i&&(l-=a-i);const c=l/n*100;return Math.round(c)},he=!("undefined"==typeof window||!window.document||!window.document.createElement);let de;const fe=["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]):not(.fancybox-focus-guard)","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"]):not([disabled]):not([aria-hidden])'].join(","),pe=e=>{if(e&&he){void 0===de&&document.createElement("div").focus({get preventScroll(){return de=!0,!1}});try{if(de)e.focus({preventScroll:!0});else{const t=window.scrollY||document.body.scrollTop,n=window.scrollX||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(e){}}},ge=()=>{const e=document;let t,n="",i="",o="";return e.fullscreenEnabled?(n="requestFullscreen",i="exitFullscreen",o="fullscreenElement"):e.webkitFullscreenEnabled&&(n="webkitRequestFullscreen",i="webkitExitFullscreen",o="webkitFullscreenElement"),n&&(t={request:function(t=e.documentElement){return"webkitRequestFullscreen"===n?t[n](Element.ALLOW_KEYBOARD_INPUT):t[n]()},exit:function(){return e[o]&&e[i]()},isFullscreen:function(){return e[o]}}),t},me={animated:!0,autoFocus:!0,backdropClick:"close",Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},closeButton:"auto",closeExisting:!1,commonCaption:!1,compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,contentClick:"toggleZoom",contentDblClick:!1,defaultType:"image",defaultDisplay:"flex",dragToClose:!0,Fullscreen:{autoStart:!1},groupAll:!1,groupAttr:"data-fancybox",hideClass:"f-fadeOut",hideScrollbar:!0,idle:3500,keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},l10n:Object.assign(Object.assign({},L),{CLOSE:"Close",NEXT:"Next",PREV:"Previous",MODAL:"You can close this modal content with the ESC key",ERROR:"Something Went Wrong, Please Try Again Later",IMAGE_ERROR:"Image Not Found",ELEMENT_NOT_FOUND:"HTML Element Not Found",AJAX_NOT_FOUND:"Error Loading AJAX : Not Found",AJAX_FORBIDDEN:"Error Loading AJAX : Forbidden",IFRAME_ERROR:"Error Loading Page",TOGGLE_ZOOM:"Toggle zoom level",TOGGLE_THUMBS:"Toggle thumbnails",TOGGLE_SLIDESHOW:"Toggle slideshow",TOGGLE_FULLSCREEN:"Toggle full-screen mode",DOWNLOAD:"Download"}),parentEl:null,placeFocusBack:!0,showClass:"f-zoomInUp",startIndex:0,tpl:{closeButton:'<button data-fancybox-close class="f-button is-close-btn" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" tabindex="-1"><path d="M20 20L4 4m16 0L4 20"/></svg></button>',main:'<div class="fancybox__container" role="dialog" aria-modal="true" aria-label="{{MODAL}}" tabindex="-1">\n    <div class="fancybox__backdrop"></div>\n    <div class="fancybox__carousel"></div>\n    <div class="fancybox__footer"></div>\n  </div>'},trapFocus:!0,wheel:"zoom"};var ve,ye;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Closing=2]="Closing",e[e.CustomClosing=3]="CustomClosing",e[e.Destroy=4]="Destroy"}(ve||(ve={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(ye||(ye={}));let be="",we=!1,xe=!1,Se=null;const Ee=()=>{let e="",t="";const n=Ft.getInstance();if(n){const i=n.carousel,o=n.getSlide();if(i&&o){let r=o.slug||void 0,s=o.triggerEl||void 0;t=r||n.option("slug")||"",!t&&s&&s.dataset&&(t=s.dataset.fancybox||""),t&&"true"!==t&&(e="#"+t+(!r&&i.slides.length>1?"-"+(o.index+1):""))}}return{hash:e,slug:t,index:1}},Te=()=>{const e=new URL(document.URL).hash,t=e.slice(1).split("-"),n=t[t.length-1],i=n&&/^\+?\d+$/.test(n)&&parseInt(t.pop()||"1",10)||1;return{hash:e,slug:t.join("-"),index:i}},Ce=()=>{const{slug:e,index:t}=Te();if(!e)return;let n=document.querySelector(`[data-slug="${e}"]`);if(n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),Ft.getInstance())return;const i=document.querySelectorAll(`[data-fancybox="${e}"]`);i.length&&(n=i[t-1],n&&n.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))},ke=()=>{if(!1===Ft.defaults.Hash)return;const e=Ft.getInstance();if(!1===(null==e?void 0:e.options.Hash))return;const{slug:t,index:n}=Te(),{slug:i}=Ee();e&&(t===i?e.jumpTo(n-1):(we=!0,e.close())),Ce()},Pe=()=>{Se&&clearTimeout(Se),queueMicrotask((()=>{ke()}))},Oe=()=>{window.addEventListener("hashchange",Pe,!1),setTimeout((()=>{ke()}),500)};he&&(/complete|interactive|loaded/.test(document.readyState)?Oe():document.addEventListener("DOMContentLoaded",Oe));const Ae="is-zooming-in";class Me extends J{onCreateSlide(e,t,n){const i=this.instance.optionFor(n,"src")||"";n.el&&"image"===n.type&&"string"==typeof i&&this.setImage(n,i)}onRemoveSlide(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(e,t,n,i){F(this.instance.container,Ae);for(const e of t.slides){const t=e.panzoom;t&&e.index!==n&&t.reset(.35)}}onClose(){var e;const t=this.instance,n=t.container,i=t.getSlide();if(!n||!n.parentElement||!i)return;const{el:o,contentEl:r,panzoom:s,thumbElSrc:a}=i;if(!o||!a||!r||!s||s.isContentLoading||s.state===A.Init||s.state===A.Destroy)return;s.updateMetrics();let l=this.getZoomInfo(i);if(!l)return;this.instance.state=ve.CustomClosing,n.classList.remove(Ae),n.classList.add("is-zooming-out"),r.style.backgroundImage=`url('${a}')`;const c=n.getBoundingClientRect();1===((null===(e=window.visualViewport)||void 0===e?void 0:e.scale)||1)&&Object.assign(n.style,{position:"absolute",top:`${n.offsetTop+window.scrollY}px`,left:`${n.offsetLeft+window.scrollX}px`,bottom:"auto",right:"auto",width:`${c.width}px`,height:`${c.height}px`,overflow:"hidden"});const{x:u,y:h,scale:d,opacity:f}=l;if(f){const e=((e,t,n,i)=>{const o=t-e;return t=>1+((t-e)/o*-1||0)})(s.scale,d);s.on("afterTransform",(()=>{r.style.opacity=e(s.scale)+""}))}s.on("endAnimation",(()=>{t.destroy()})),s.target.a=d,s.target.b=0,s.target.c=0,s.target.d=d,s.panTo({x:u,y:h,scale:d,friction:f?.2:.33,ignoreBounds:!0}),s.isResting&&t.destroy()}setImage(e,t){const n=this.instance;e.src=t,this.process(e,t).then((t=>{const{contentEl:i,imageEl:o,thumbElSrc:r,el:s}=e;if(n.isClosing()||!i||!o)return;i.offsetHeight;const a=!!n.isOpeningSlide(e)&&this.getZoomInfo(e);if(this.option("protected")&&s){s.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");I(e,"fancybox-protected"),i.appendChild(e)}if(r&&a){const o=t.contentRect,s=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&s>1200&&(c=document.createElement("img"),I(c,"fancybox-ghost"),c.src=r,i.appendChild(c));const u=()=>{c&&(I(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=r,new Promise(((e,t)=>{const n=new Image;n.onload=e,n.onerror=t,n.src=l}))).then((()=>{n.hideLoading(e),e.state=ye.Opening,this.instance.emit("reveal",e),this.zoomIn(e).then((()=>{u(),this.instance.done(e)}),(()=>{})),c&&setTimeout((()=>{u()}),s>2500?800:200)}),(()=>{n.hideLoading(e),n.revealContent(e)}))}else{const i=this.optionFor(e,"initialSize"),o=this.optionFor(e,"zoom"),r={event:n.prevMouseMoveEvent||n.options.event,friction:o?.12:0};let s=n.optionFor(e,"showClass")||void 0,a=!0;n.isOpeningSlide(e)&&("full"===i?t.zoomToFull(r):"cover"===i?t.zoomToCover(r):"max"===i?t.zoomToMax(r):a=!1,t.stop("current")),a&&s&&(s=t.isDragging?"f-fadeIn":""),n.hideLoading(e),n.revealContent(e,s)}var l}),(()=>{n.setError(e,"{{IMAGE_ERROR}}")}))}process(e,t){return new Promise(((n,i)=>{var o;const r=this.instance,s=e.el;r.clearContent(e),r.showLoading(e);let a=this.optionFor(e,"content");if("string"==typeof a&&(a=m(a)),!a||!R(a)){if(a=document.createElement("img"),a instanceof HTMLImageElement){let n="",i=e.caption;n="string"==typeof i&&i?i.replace(/<[^>]+>/gi,"").substring(0,1e3):`Image ${e.index+1} of ${(null===(o=r.carousel)||void 0===o?void 0:o.pages.length)||1}`,a.src=t||"",a.alt=n,a.draggable=!1,e.srcset&&a.setAttribute("srcset",e.srcset),this.instance.isOpeningSlide(e)&&(a.fetchPriority="high")}e.sizes&&a.setAttribute("sizes",e.sizes)}I(a,"fancybox-image"),e.imageEl=a,r.setContent(e,a,!1),e.panzoom=new X(s,C({transformParent:!0},this.option("Panzoom")||{},{content:a,width:(t,n)=>r.optionFor(e,"width","auto",n)||"auto",height:(t,n)=>r.optionFor(e,"height","auto",n)||"auto",wheel:()=>{const e=r.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,n)=>{var i,o;if(r.isCompact||r.isClosing())return!1;if(e.index!==(null===(i=r.getSlide())||void 0===i?void 0:i.index))return!1;if(n){const e=n.composedPath()[0];if(["A","BUTTON","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(e.nodeName))return!1}let s=!n||n.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(n.target));return r.option(s?"contentClick":"backdropClick")||!1},dblClick:()=>r.isCompact?"toggleZoom":r.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,on:{ready:e=>{n(e)},error:()=>{i()},destroy:()=>{i()}}}))}))}zoomIn(e){return new Promise(((t,n)=>{const i=this.instance,o=i.container,{panzoom:r,contentEl:s,el:a}=e;r&&r.updateMetrics();const l=this.getZoomInfo(e);if(!(l&&a&&s&&r&&o))return void n();const{x:c,y:u,scale:h,opacity:d}=l,f=()=>{e.state!==ye.Closing&&(d&&(s.style.opacity=Math.max(Math.min(1,1-(1-r.scale)/(1-h)),0)+""),r.scale>=1&&r.scale>r.targetScale-.1&&t(r))},p=e=>{(e.scale<.99||e.scale>1.01)&&!e.isDragging||(F(o,Ae),s.style.opacity="",e.off("endAnimation",p),e.off("touchStart",p),e.off("afterTransform",f),t(e))};r.on("endAnimation",p),r.on("touchStart",p),r.on("afterTransform",f),r.on(["error","destroy"],(()=>{n()})),r.panTo({x:c,y:u,scale:h,friction:0,ignoreBounds:!0}),r.stop("current");const g={event:"mousemove"===r.panMode?i.prevMouseMoveEvent||i.options.event:void 0},m=this.optionFor(e,"initialSize");I(o,Ae),i.hideLoading(e),"full"===m?r.zoomToFull(g):"cover"===m?r.zoomToCover(g):"max"===m?r.zoomToMax(g):r.reset(.172)}))}getZoomInfo(e){const{el:t,imageEl:n,thumbEl:i,panzoom:o}=e,r=this.instance,s=r.container;if(!t||!n||!i||!o||ue(i)<3||!this.optionFor(e,"zoom")||!s||r.state===ve.Destroy)return!1;if("0"===getComputedStyle(s).getPropertyValue("--f-images-zoom"))return!1;const a=window.visualViewport||null;if(1!==(a?a.scale:1))return!1;let{top:l,left:c,width:u,height:h}=i.getBoundingClientRect(),{top:d,left:f,fitWidth:p,fitHeight:g}=o.contentRect;if(!(u&&h&&p&&g))return!1;const m=o.container.getBoundingClientRect();f+=m.left,d+=m.top;const v=-1*(f+.5*p-(c+.5*u)),y=-1*(d+.5*g-(l+.5*h)),b=u/p;let w=this.option("zoomOpacity")||!1;return"auto"===w&&(w=Math.abs(u/h-p/g)>.1),{x:v,y:y,scale:b,opacity:w}}attach(){const e=this,t=e.instance;t.on("Carousel.change",e.onChange),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.removeSlide",e.onRemoveSlide),t.on("close",e.onClose)}detach(){const e=this,t=e.instance;t.off("Carousel.change",e.onChange),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.removeSlide",e.onRemoveSlide),t.off("close",e.onClose)}}Object.defineProperty(Me,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}}),"function"==typeof SuppressedError&&SuppressedError;const Le="html",je="image",De="map",Ne="youtube",Re="vimeo",Fe="html5video",Ie=(e,t={})=>{const n=new URL(e),i=new URLSearchParams(n.search),o=new URLSearchParams;for(const[e,n]of[...i,...Object.entries(t)]){let t=n+"";if("t"===e){let e=t.match(/((\d*)m)?(\d*)s?/);e&&o.set("start",60*parseInt(e[2]||"0")+parseInt(e[3]||"0")+"")}else o.set(e,t)}let r=o+"",s=e.match(/#t=((.*)?\d+s)/);return s&&(r+=`#t=${s[1]}`),r},ze=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo"];class He extends J{onBeforeInitSlide(e,t,n){this.processType(n)}onCreateSlide(e,t,n){this.setContent(n)}onClearContent(e,t){t.xhr&&(t.xhr.abort(),t.xhr=null);const n=t.iframeEl;n&&(n.onload=n.onerror=null,n.src="//about:blank",t.iframeEl=null);const i=t.contentEl,o=t.placeholderEl;if("inline"===t.type&&i&&o)i.classList.remove("fancybox__content"),"none"!==getComputedStyle(i).getPropertyValue("display")&&(i.style.display="none"),setTimeout((()=>{o&&(i&&o.parentNode&&o.parentNode.insertBefore(i,o),o.remove())}),0),t.contentEl=void 0,t.placeholderEl=void 0;else for(;t.el&&t.el.firstChild;)t.el.removeChild(t.el.firstChild)}onSelectSlide(e,t,n){n.state===ye.Ready&&this.playVideo()}onUnselectSlide(e,t,n){var i,o;if(n.type===Fe){try{null===(o=null===(i=n.el)||void 0===i?void 0:i.querySelector("video"))||void 0===o||o.pause()}catch(e){}return}let r;n.type===Re?r={method:"pause",value:"true"}:n.type===Ne&&(r={event:"command",func:"pauseVideo"}),r&&n.iframeEl&&n.iframeEl.contentWindow&&n.iframeEl.contentWindow.postMessage(JSON.stringify(r),"*"),n.poller&&clearTimeout(n.poller)}onDone(e,t){e.isCurrentSlide(t)&&!e.isClosing()&&this.playVideo()}onRefresh(e,t){t.slides.forEach((e=>{e.el&&(this.resizeIframe(e),this.setAspectRatio(e))}))}onMessage(e){try{let t=JSON.parse(e.data);if("https://player.vimeo.com"===e.origin){if("ready"===t.event)for(let t of Array.from(document.getElementsByClassName("fancybox__iframe")))t instanceof HTMLIFrameElement&&t.contentWindow===e.source&&(t.dataset.ready="true")}else if(e.origin.match(/^https:\/\/(www.)?youtube(-nocookie)?.com$/)&&"onReady"===t.event){const e=document.getElementById(t.id);e&&(e.dataset.ready="true")}}catch(e){}}loadAjaxContent(e){const t=this.instance.optionFor(e,"src")||"";this.instance.showLoading(e);const n=this.instance,i=new XMLHttpRequest;n.showLoading(e),i.onreadystatechange=function(){i.readyState===XMLHttpRequest.DONE&&n.state===ve.Ready&&(n.hideLoading(e),200===i.status?n.setContent(e,i.responseText):n.setError(e,404===i.status?"{{AJAX_NOT_FOUND}}":"{{AJAX_FORBIDDEN}}"))};const o=e.ajax||null;i.open(o?"POST":"GET",t+""),i.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.send(o),e.xhr=i}setInlineContent(e){let t=null;if(R(e.src))t=e.src;else if("string"==typeof e.src){const n=e.src.split("#",2).pop();t=n?document.getElementById(n):null}if(t){if("clone"===e.type||t.closest(".fancybox__slide")){t=t.cloneNode(!0);const n=t.dataset.animationName;n&&(t.classList.remove(n),delete t.dataset.animationName);let i=t.getAttribute("id");i=i?`${i}--clone`:`clone-${this.instance.id}-${e.index}`,t.setAttribute("id",i)}else if(t.parentNode){const n=document.createElement("div");n.classList.add("fancybox-placeholder"),t.parentNode.insertBefore(n,t),e.placeholderEl=n}this.instance.setContent(e,t)}else this.instance.setError(e,"{{ELEMENT_NOT_FOUND}}")}setIframeContent(e){const{src:t,el:n}=e;if(!t||"string"!=typeof t||!n)return;n.classList.add("is-loading");const i=this.instance,o=document.createElement("iframe");o.className="fancybox__iframe",o.setAttribute("id",`fancybox__iframe_${i.id}_${e.index}`);for(const[t,n]of Object.entries(this.optionFor(e,"iframeAttr")||{}))o.setAttribute(t,n);o.onerror=()=>{i.setError(e,"{{IFRAME_ERROR}}")},e.iframeEl=o;const r=this.optionFor(e,"preload");if("iframe"!==e.type||!1===r)return o.setAttribute("src",e.src+""),i.setContent(e,o,!1),this.resizeIframe(e),void i.revealContent(e);i.showLoading(e),o.onload=()=>{if(!o.src.length)return;const t="true"!==o.dataset.ready;o.dataset.ready="true",this.resizeIframe(e),t?i.revealContent(e):i.hideLoading(e)},o.setAttribute("src",t),i.setContent(e,o,!1)}resizeIframe(e){const{type:t,iframeEl:n}=e;if(t===Ne||t===Re)return;const i=null==n?void 0:n.parentElement;if(!n||!i)return;let o=e.autoSize;void 0===o&&(o=this.optionFor(e,"autoSize"));let r=e.width||0,s=e.height||0;r&&s&&(o=!1);const a=i&&i.style;if(!1!==e.preload&&!1!==o&&a)try{const e=window.getComputedStyle(i),t=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),o=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=n.contentWindow;if(l){const e=l.document,n=e.getElementsByTagName(Le)[0],i=e.body;a.width="",i.style.overflow="hidden",r=r||n.scrollWidth+t,a.width=`${r}px`,i.style.overflow="",a.flex="0 0 auto",a.height=`${i.scrollHeight}px`,s=n.scrollHeight+o}}catch(e){}if(r||s){const e={flex:"0 1 auto",width:"",height:""};r&&"auto"!==r&&(e.width=`${r}px`),s&&"auto"!==s&&(e.height=`${s}px`),Object.assign(a,e)}}playVideo(){const e=this.instance.getSlide();if(!e)return;const{el:t}=e;if(!t||!t.offsetParent)return;if(!this.optionFor(e,"videoAutoplay"))return;if(e.type===Fe)try{const e=t.querySelector("video");if(e){const t=e.play();void 0!==t&&t.then((()=>{})).catch((t=>{e.muted=!0,e.play()}))}}catch(e){}if(e.type!==Ne&&e.type!==Re)return;const n=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t=e.type===Ne?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);e.type===Ne&&(t={event:"listening",id:e.iframeEl.getAttribute("id")},e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"))}e.poller=setTimeout(n,250)};n()}processType(e){if(e.html)return e.type=Le,e.src=e.html,void(e.html="");const t=this.instance.optionFor(e,"src","");if(!t||"string"!=typeof t)return;let n=e.type,i=null;if(i=t.match(/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(?:watch\?(?:.*&)?v=|v\/|u\/|shorts\/|embed\/?)?(videoseries\?list=(?:.*)|[\w-]{11}|\?listType=(?:.*)&list=(?:.*))(?:.*)/i)){const o=this.optionFor(e,Ne),{nocookie:r}=o,s=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(i=Object.getOwnPropertySymbols(e);o<i.length;o++)t.indexOf(i[o])<0&&Object.prototype.propertyIsEnumerable.call(e,i[o])&&(n[i[o]]=e[i[o]])}return n}(o,["nocookie"]),a=`www.youtube${r?"-nocookie":""}.com`,l=Ie(t,s),c=encodeURIComponent(i[2]);e.videoId=c,e.src=`https://${a}/embed/${c}?${l}`,e.thumbSrc=e.thumbSrc||`https://i.ytimg.com/vi/${c}/mqdefault.jpg`,n=Ne}else if(i=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=Ie(t,this.optionFor(e,Re)),r=encodeURIComponent(i[1]),s=i[4]||"";e.videoId=r,e.src=`https://player.vimeo.com/video/${r}?${s?`h=${s}${o?"&":""}`:""}${o}`,n=Re}if(!n&&e.triggerEl){const t=e.triggerEl.dataset.type;ze.includes(t)&&(n=t)}n||"string"==typeof t&&("#"===t.charAt(0)?n="inline":(i=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n=Fe,e.videoFormat=e.videoFormat||"video/"+("ogv"===i[1]?"ogg":i[1])):t.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?n=je:t.match(/\.(pdf)((\?|#).*)?$/i)&&(n="pdf")),(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:(?:(?:maps\/(?:place\/(?:.*)\/)?\@(.*),(\d+.?\d+?)z))|(?:\?ll=))(.*)?/i))?(e.src=`https://maps.google.${i[1]}/?ll=${(i[2]?i[2]+"&z="+Math.floor(parseFloat(i[3]))+(i[4]?i[4].replace(/^\//,"&"):""):i[4]+"").replace(/\?/,"&")}&output=${i[4]&&i[4].indexOf("layer=c")>0?"svembed":"embed"}`,n=De):(i=t.match(/(?:maps\.)?google\.([a-z]{2,3}(?:\.[a-z]{2})?)\/(?:maps\/search\/)(.*)/i))&&(e.src=`https://maps.google.${i[1]}/maps?q=${i[2].replace("query=","q=").replace("api=1","")}&output=embed`,n=De),n=n||this.instance.option("defaultType"),e.type=n,n===je&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case Le:this.instance.setContent(e,t);break;case Fe:const n=this.option("videoTpl");n&&this.instance.setContent(e,n.replace(/\{\{src\}\}/gi,t+"").replace(/\{\{format\}\}/gi,this.optionFor(e,"videoFormat")||"").replace(/\{\{poster\}\}/gi,e.poster||e.thumbSrc||""));break;case"inline":case"clone":this.setInlineContent(e);break;case"ajax":this.loadAjaxContent(e);break;case"pdf":case De:case Ne:case Re:e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){const t=e.contentEl;if(!(e.el&&t&&e.type&&[Ne,Re,Fe].includes(e.type)))return;let n,i=e.width||"auto",o=e.height||"auto";if("auto"===i||"auto"===o){n=this.optionFor(e,"videoRatio");const t=(n+"").match(/(\d+)\s*\/\s?(\d+)/);n=t&&t.length>2?parseFloat(t[1])/parseFloat(t[2]):parseFloat(n+"")}else i&&o&&(n=i/o);if(!n)return;t.style.aspectRatio="",t.style.width="",t.style.height="",t.offsetHeight;const r=t.getBoundingClientRect(),s=r.width||1,a=r.height||1;t.style.aspectRatio=n+"",n<s/a?(o="auto"===o?a:Math.min(a,o),t.style.width="auto",t.style.height=`${o}px`):(i="auto"===i?s:Math.min(s,i),t.style.width=`${i}px`,t.style.height="auto")}attach(){const e=this,t=e.instance;t.on("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.on("Carousel.createSlide",e.onCreateSlide),t.on("Carousel.selectSlide",e.onSelectSlide),t.on("Carousel.unselectSlide",e.onUnselectSlide),t.on("Carousel.Panzoom.refresh",e.onRefresh),t.on("done",e.onDone),t.on("clearContent",e.onClearContent),window.addEventListener("message",e.onMessage)}detach(){const e=this,t=e.instance;t.off("Carousel.beforeInitSlide",e.onBeforeInitSlide),t.off("Carousel.createSlide",e.onCreateSlide),t.off("Carousel.selectSlide",e.onSelectSlide),t.off("Carousel.unselectSlide",e.onUnselectSlide),t.off("Carousel.Panzoom.refresh",e.onRefresh),t.off("done",e.onDone),t.off("clearContent",e.onClearContent),window.removeEventListener("message",e.onMessage)}}Object.defineProperty(He,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{ajax:null,autoSize:!0,iframeAttr:{allow:"autoplay; fullscreen",scrolling:"auto"},preload:!0,videoAutoplay:!0,videoRatio:16/9,videoTpl:'<video class="fancybox__html5video" playsinline controls controlsList="nodownload" poster="{{poster}}">\n  <source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos.</video>',videoFormat:"",vimeo:{byline:1,color:"00adef",controls:1,dnt:1,muted:0},youtube:{controls:1,enablejsapi:1,nocookie:1,rel:0,fs:1}}});const _e="play",qe="pause",Be="ready";class We extends J{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Be}),Object.defineProperty(this,"inHover",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"progressBar",{enumerable:!0,configurable:!0,writable:!0,value:null})}get isActive(){return this.state!==Be}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){this.removeProgressBar(),this.pause()}onSettle(){this.resume()}onVisibilityChange(){"visible"===document.visibilityState?this.resume():this.pause()}onMouseEnter(){this.inHover=!0,this.pause()}onMouseLeave(){var e;this.inHover=!1,(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)&&this.resume()}onTimerEnd(){const e=this.instance;"play"===this.state&&(e.isInfinite||e.page!==e.pages.length-1?e.slideNext():e.slideTo(0))}removeProgressBar(){this.progressBar&&(this.progressBar.remove(),this.progressBar=null)}createProgressBar(){var e;if(!this.option("showProgress"))return null;this.removeProgressBar();const t=this.instance,n=(null===(e=t.pages[t.page])||void 0===e?void 0:e.slides)||[];let i=this.option("progressParentEl");if(i||(i=(1===n.length?n[0].el:null)||t.viewport),!i)return null;const o=document.createElement("div");return I(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){const e=this,t=e.instance;if(t.pages.length<2)return;if(e.timer)return;const n=e.option("timeout");e.state=_e,I(t.container,"has-autoplay");let i=e.createProgressBar();i&&(i.style.transitionDuration=`${n}ms`,i.style.transform="scaleX(1)"),e.timer=setTimeout((()=>{e.timer=null,e.inHover||e.onTimerEnd()}),n),e.emit("set")}clear(){const e=this;e.timer&&(clearTimeout(e.timer),e.timer=null),e.removeProgressBar()}start(){const e=this;if(e.set(),e.state!==Be){if(e.option("pauseOnHover")){const t=e.instance.container;t.addEventListener("mouseenter",e.onMouseEnter,!1),t.addEventListener("mouseleave",e.onMouseLeave,!1)}document.addEventListener("visibilitychange",e.onVisibilityChange,!1),e.emit("start")}}stop(){const e=this,t=e.state,n=e.instance.container;e.clear(),e.state=Be,n.removeEventListener("mouseenter",e.onMouseEnter,!1),n.removeEventListener("mouseleave",e.onMouseLeave,!1),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),F(n,"has-autoplay"),t!==Be&&e.emit("stop")}pause(){const e=this;e.state===_e&&(e.state=qe,e.clear(),e.emit(qe))}resume(){const e=this,t=e.instance;if(t.isInfinite||t.page!==t.pages.length-1)if(e.state!==_e){if(e.state===qe&&!e.inHover){const t=new Event("resume",{bubbles:!0,cancelable:!0});e.emit("resume",t),t.defaultPrevented||e.set()}}else e.set();else e.stop()}toggle(){this.state===_e||this.state===qe?this.stop():this.start()}attach(){const e=this,t=e.instance;t.on("ready",e.onReady),t.on("Panzoom.startAnimation",e.onChange),t.on("Panzoom.endAnimation",e.onSettle),t.on("Panzoom.touchMove",e.onChange)}detach(){const e=this,t=e.instance;t.off("ready",e.onReady),t.off("Panzoom.startAnimation",e.onChange),t.off("Panzoom.endAnimation",e.onSettle),t.off("Panzoom.touchMove",e.onChange),e.stop()}}Object.defineProperty(We,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Ve extends J{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null})}onPrepare(e){const t=e.carousel;if(!t)return;const n=e.container;n&&(t.options.Autoplay=C({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{start:()=>{e.emit("startSlideshow")},set:t=>{var i;n.classList.add("has-slideshow"),(null===(i=e.getSlide())||void 0===i?void 0:i.state)!==ye.Ready&&t.pause()},stop:()=>{n.classList.remove("has-slideshow"),e.isCompact||e.endIdle(),e.emit("endSlideshow")},resume:(t,n)=>{var i,o,r;!n||!n.cancelable||(null===(i=e.getSlide())||void 0===i?void 0:i.state)===ye.Ready&&(null===(r=null===(o=e.carousel)||void 0===o?void 0:o.panzoom)||void 0===r?void 0:r.isResting)||n.preventDefault()}}}),t.attachPlugins({Autoplay:We}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,n=this.ref;n&&t&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}onDone(e,t){const n=this.ref,i=e.carousel;if(!n||!i)return;const o=t.panzoom;o&&o.on("startAnimation",(()=>{e.isCurrentSlide(t)&&n.stop()})),e.isCurrentSlide(t)&&n.resume()}onKeydown(e,t){var n;const i=this.ref;i&&t===this.option("key")&&"BUTTON"!==(null===(n=document.activeElement)||void 0===n?void 0:n.nodeName)&&i.toggle()}attach(){const e=this,t=e.instance;t.on("Carousel.init",e.onPrepare),t.on("Carousel.ready",e.onReady),t.on("done",e.onDone),t.on("keydown",e.onKeydown)}detach(){const e=this,t=e.instance;t.off("Carousel.init",e.onPrepare),t.off("Carousel.ready",e.onReady),t.off("done",e.onDone),t.off("keydown",e.onKeydown)}}Object.defineProperty(Ve,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{key:" ",playOnStart:!1,progressParentEl:e=>{var t;return(null===(t=e.instance.container)||void 0===t?void 0:t.querySelector(".fancybox__toolbar [data-fancybox-toggle-slideshow]"))||e.instance.container},timeout:3e3}});const $e={classes:{container:"f-thumbs f-carousel__thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide",isResting:"is-resting",isSelected:"is-selected",isLoading:"is-loading",hasThumbs:"has-thumbs"},minCount:2,parentEl:null,thumbTpl:'<button class="f-thumbs__slide__button" tabindex="0" type="button" aria-label="{{GOTO}}" data-carousel-index="%i"><img class="f-thumbs__slide__img" data-lazy-src="{{%s}}" alt="" /></button>',type:"modern"};var Xe;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Hidden=2]="Hidden"}(Xe||(Xe={}));const Ue="isResting",Ye="thumbWidth",Ge="thumbHeight",Ze="thumbClipWidth";let Ke=class extends J{constructor(){super(...arguments),Object.defineProperty(this,"type",{enumerable:!0,configurable:!0,writable:!0,value:"modern"}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"track",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"thumbWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbClipWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"thumbExtraGap",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xe.Init})}get isModern(){return"modern"===this.type}onInitSlide(e,t){const n=t.el?t.el.dataset:void 0;n&&(t.thumbSrc=n.thumbSrc||t.thumbSrc||"",t[Ze]=parseFloat(n[Ze]||"")||t[Ze]||0,t[Ge]=parseFloat(n.thumbHeight||"")||t[Ge]||0),this.addSlide(t)}onInitSlides(){this.build()}onChange(){var e;if(!this.isModern)return;const t=this.container,n=this.instance,i=n.panzoom,o=this.carousel,r=o?o.panzoom:null,s=n.page;if(i&&o&&r){if(i.isDragging){F(t,this.cn(Ue));let i=(null===(e=o.pages[s])||void 0===e?void 0:e.pos)||0;i+=n.getProgress(s)*(this[Ze]+this.thumbGap);let a=r.getBounds();-1*i>a.x.min&&-1*i<a.x.max&&r.panTo({x:-1*i,friction:.12})}else y(t,this.cn(Ue),i.isResting);this.shiftModern()}}onRefresh(){this.updateProps();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.shiftModern()}isDisabled(){const e=this.option("minCount")||0;if(e){const t=this.instance;let n=0;for(const e of t.slides||[])e.thumbSrc&&n++;if(n<e)return!0}const t=this.option("type");return["modern","classic"].indexOf(t)<0}getThumb(e){const t=this.option("thumbTpl")||"";return{html:this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}}addSlide(e){const t=this.carousel;t&&t.addSlide(e.index,this.getThumb(e))}getSlides(){const e=[];for(const t of this.instance.slides||[])e.push(this.getThumb(t));return e}resizeModernSlide(e){this.isModern&&(e[Ye]=e[Ze]&&e[Ge]?Math.round(this[Ge]*(e[Ze]/e[Ge])):this[Ye])}updateProps(){const e=this.container;if(!e)return;const t=t=>parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-"+t))||0;this.thumbGap=t("gap"),this.thumbExtraGap=t("extra-gap"),this[Ye]=t("width")||40,this[Ze]=t("clip-width")||40,this[Ge]=t("height")||40}build(){const e=this;if(e.state!==Xe.Init)return;if(e.isDisabled())return void e.emit("disabled");const t=e.instance,n=t.container,i=e.getSlides(),o=e.option("type");e.type=o;const r=e.option("parentEl"),s=e.cn("container"),a=e.cn("track");let l=null==r?void 0:r.querySelector("."+s);l||(l=document.createElement("div"),I(l,s),r?r.appendChild(l):n.after(l)),I(l,`is-${o}`),I(n,e.cn("hasThumbs")),e.container=l,e.updateProps();let c=l.querySelector("."+a);c||(c=document.createElement("div"),I(c,e.cn("track")),l.appendChild(c)),e.track=c;const u=C({},{track:c,infinite:!1,center:!0,fill:"classic"===o,dragFree:!0,slidesPerPage:1,transition:!1,preload:.25,friction:.12,Panzoom:{maxVelocity:0},Dots:!1,Navigation:!1,classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},e.option("Carousel")||{},{Sync:{target:t},slides:i}),h=new t.constructor(l,u);h.on("createSlide",((t,n)=>{e.setProps(n.index),e.emit("createSlide",n,n.el)})),h.on("ready",(()=>{e.shiftModern(),e.emit("ready")})),h.on("refresh",(()=>{e.shiftModern()})),h.on("Panzoom.click",((t,n,i)=>{e.onClick(i)})),e.carousel=h,e.state=Xe.Ready}onClick(e){e.preventDefault(),e.stopPropagation();const t=this.instance,{pages:n,page:i}=t,o=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return[parseInt(t.dataset.carouselIndex||"",10)||0,t]}return[-1,void 0]},r=(e,t)=>{const n=document.elementFromPoint(e,t);return n?o(n):[-1,void 0]};let[s,a]=o(e.target);if(s>-1)return;const l=this[Ze],c=e.clientX,u=e.clientY;let[h,d]=r(c-l,u),[f,p]=r(c+l,u);d&&p?(s=Math.abs(c-d.getBoundingClientRect().right)<Math.abs(c-p.getBoundingClientRect().left)?h:f,s===i&&(s=s===h?f:h)):d?s=h:p&&(s=f),s>-1&&n[s]&&t.slideTo(s)}getShift(e){var t;const n=this,{instance:i}=n,o=n.carousel;if(!i||!o)return 0;const r=n[Ye],s=n[Ze],a=n.thumbGap,l=n.thumbExtraGap;if(!(null===(t=o.slides[e])||void 0===t?void 0:t.el))return 0;const c=.5*(r-s),u=i.pages.length-1;let h=i.getProgress(0),d=i.getProgress(u),f=i.getProgress(e,!1,!0),p=0,g=c+l+a;const m=h<0&&h>-1,v=d>0&&d<1;return 0===e?(p=g*Math.abs(h),v&&1===h&&(p-=g*Math.abs(d))):e===u?(p=g*Math.abs(d)*-1,m&&-1===d&&(p+=g*Math.abs(h))):m||v?(p=-1*g,p+=g*Math.abs(h),p+=g*(1-Math.abs(d))):p=g*f,p}setProps(e){var t;const n=this;if(!n.isModern)return;const{instance:i}=n,o=n.carousel;if(i&&o){const r=null===(t=o.slides[e])||void 0===t?void 0:t.el;if(r&&r.childNodes.length){let t=f(1-Math.abs(i.getProgress(e))),o=f(n.getShift(e));r.style.setProperty("--progress",t?t+"":""),r.style.setProperty("--shift",o+"")}}}shiftModern(){const e=this;if(!e.isModern)return;const{instance:t,track:n}=e,i=t.panzoom,o=e.carousel;if(!(t&&n&&i&&o))return;if(i.state===A.Init||i.state===A.Destroy)return;for(const n of t.slides)e.setProps(n.index);let r=(e[Ze]+e.thumbGap)*(o.slides.length||0);n.style.setProperty("--width",r+"")}cleanup(){const e=this;e.carousel&&e.carousel.destroy(),e.carousel=null,e.container&&e.container.remove(),e.container=null,e.track&&e.track.remove(),e.track=null,e.state=Xe.Init,F(e.instance.container,e.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===G.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on(["change","Panzoom.afterTransform"],e.onChange),t.on("Panzoom.refresh",e.onRefresh)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off(["change","Panzoom.afterTransform"],e.onChange),t.off("Panzoom.refresh",e.onRefresh),e.cleanup()}};Object.defineProperty(Ke,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:$e});const Je=Object.assign(Object.assign({},$e),{key:"t",showOnStart:!0,parentEl:null}),Qe="is-masked",et="aria-hidden";class tt extends J{constructor(){super(...arguments),Object.defineProperty(this,"ref",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"hidden",{enumerable:!0,configurable:!0,writable:!0,value:!1})}get isEnabled(){const e=this.ref;return e&&!e.isDisabled()}get isHidden(){return this.hidden}onClick(e,t){t.stopPropagation()}onCreateSlide(e,t){var n,i,o;const r=(null===(o=null===(i=null===(n=this.instance)||void 0===n?void 0:n.carousel)||void 0===i?void 0:i.slides[t.index])||void 0===o?void 0:o.type)||"",s=t.el;if(s&&r){let e=`for-${r}`;["video","youtube","vimeo","html5video"].includes(r)&&(e+=" for-video"),I(s,e)}}onInit(){var e;const t=this,n=t.instance,i=n.carousel;if(t.ref||!i)return;const o=t.option("parentEl")||n.footer||n.container;if(!o)return;const r=C({},t.options,{parentEl:o,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:n.option("Carousel.friction")||0}},on:{ready:e=>{const n=e.container;n&&this.hidden&&(t.refresh(),n.style.transition="none",t.hide(),n.offsetHeight,queueMicrotask((()=>{n.style.transition="",t.show()})))}}});r.Carousel=r.Carousel||{},r.Carousel.on=C((null===(e=t.options.Carousel)||void 0===e?void 0:e.on)||{},{click:this.onClick,createSlide:this.onCreateSlide}),i.options.Thumbs=r,i.attachPlugins({Thumbs:Ke}),t.ref=i.plugins.Thumbs,t.option("showOnStart")||(t.ref.state=Xe.Hidden,t.hidden=!0)}onResize(){var e;const t=null===(e=this.ref)||void 0===e?void 0:e.container;t&&(t.style.maxHeight="")}onKeydown(e,t){const n=this.option("key");n&&n===t&&this.toggle()}toggle(){const e=this.ref;if(e&&!e.isDisabled())return e.state===Xe.Hidden?(e.state=Xe.Init,void e.build()):void(this.hidden?this.show():this.hide())}show(){const e=this.ref;if(!e||e.isDisabled())return;const t=e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute(et),t.classList.remove(Qe),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add(Qe),t.setAttribute(et,"true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||!e.state)return;const t=e.container,n=(null==t?void 0:t.firstChild)||null;t&&n&&n.childNodes.length&&(t.style.maxHeight=`${n.getBoundingClientRect().height}px`)}attach(){const e=this,t=e.instance;t.state===ve.Init?t.on("Carousel.init",e.onInit):e.onInit(),t.on("resize",e.onResize),t.on("keydown",e.onKeydown)}detach(){var e;const t=this,n=t.instance;n.off("Carousel.init",t.onInit),n.off("resize",t.onResize),n.off("keydown",t.onKeydown),null===(e=n.carousel)||void 0===e||e.detachPlugins(["Thumbs"]),t.ref=null}}Object.defineProperty(tt,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Je});const nt={panLeft:{icon:'<svg><path d="M5 12h14M5 12l6 6M5 12l6-6"/></svg>',change:{panX:-100}},panRight:{icon:'<svg><path d="M5 12h14M13 18l6-6M13 6l6 6"/></svg>',change:{panX:100}},panUp:{icon:'<svg><path d="M12 5v14M18 11l-6-6M6 11l6-6"/></svg>',change:{panY:-100}},panDown:{icon:'<svg><path d="M12 5v14M18 13l-6 6M6 13l6 6"/></svg>',change:{panY:100}},zoomIn:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M11 8v6M8 11h6"/></svg>',action:"zoomIn"},zoomOut:{icon:'<svg><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"zoomOut"},toggle1to1:{icon:'<svg><path d="M3.51 3.07c5.74.02 11.48-.02 17.22.02 1.37.1 2.34 1.64 2.18 3.13 0 4.08.02 8.16 0 12.23-.1 1.54-1.47 2.64-2.79 2.46-5.61-.01-11.24.02-16.86-.01-1.36-.12-2.33-1.65-2.17-3.14 0-4.07-.02-8.16 0-12.23.1-1.36 1.22-2.48 2.42-2.46Z"/><path d="M5.65 8.54h1.49v6.92m8.94-6.92h1.49v6.92M11.5 9.4v.02m0 5.18v0"/></svg>',action:"toggleZoom"},toggleZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"toggleZoom"},iterateZoom:{icon:'<svg><g><line x1="11" y1="8" x2="11" y2="14"></line></g><circle cx="11" cy="11" r="7.5"/><path d="m21 21-4.35-4.35M8 11h6"/></svg>',action:"iterateZoom"},rotateCCW:{icon:'<svg><path d="M15 4.55a8 8 0 0 0-6 14.9M9 15v5H4M18.37 7.16v.01M13 19.94v.01M16.84 18.37v.01M19.37 15.1v.01M19.94 11v.01"/></svg>',action:"rotateCCW"},rotateCW:{icon:'<svg><path d="M9 4.55a8 8 0 0 1 6 14.9M15 15v5h5M5.63 7.16v.01M4.06 11v.01M4.63 15.1v.01M7.16 18.37v.01M11 19.94v.01"/></svg>',action:"rotateCW"},flipX:{icon:'<svg style="stroke-width: 1.3"><path d="M12 3v18M16 7v10h5L16 7M8 7v10H3L8 7"/></svg>',action:"flipX"},flipY:{icon:'<svg style="stroke-width: 1.3"><path d="M3 12h18M7 16h10L7 21v-5M7 8h10L7 3v5"/></svg>',action:"flipY"},fitX:{icon:'<svg><path d="M4 12V6a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v6M10 18H3M21 18h-7M6 15l-3 3 3 3M18 15l3 3-3 3"/></svg>',action:"fitX"},fitY:{icon:'<svg><path d="M12 20H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h6M18 14v7M18 3v7M15 18l3 3 3-3M15 6l3-3 3 3"/></svg>',action:"fitY"},reset:{icon:'<svg><path d="M20 11A8.1 8.1 0 0 0 4.5 9M4 5v4h4M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4"/></svg>',action:"reset"},toggleFS:{icon:'<svg><g><path d="M14.5 9.5 21 3m0 0h-6m6 0v6M3 21l6.5-6.5M3 21v-6m0 6h6"/></g><g><path d="m14 10 7-7m-7 7h6m-6 0V4M3 21l7-7m0 0v6m0-6H4"/></g></svg>',action:"toggleFS"}};var it;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(it||(it={}));const ot={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},rt="has-toolbar",st="fancybox__toolbar";class at extends J{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:it.Init}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null})}onReady(e){var t;if(!e.carousel)return;let n=this.option("display"),i=this.option("absolute"),o=this.option("enabled");if("auto"===o){const e=this.instance.carousel;let t=0;if(e)for(const n of e.slides)(n.panzoom||"image"===n.type)&&t++;t||(o=!1)}o||(n=void 0);let r=0;const s={left:[],middle:[],right:[]};if(n)for(const e of["left","middle","right"])for(const i of n[e]){const n=this.createEl(i);n&&(null===(t=s[e])||void 0===t||t.push(n),r++)}let a=null;if(r&&(a=this.createContainer()),a){for(const[e,t]of Object.entries(s)){const n=document.createElement("div");I(n,st+"__column is-"+e);for(const e of t)n.appendChild(e);"auto"!==i||"middle"!==e||t.length||(i=!0),a.appendChild(n)}!0===i&&I(a,"is-absolute"),this.state=it.Ready,this.onRefresh()}else this.state=it.Disabled}onClick(e){var t,n;const i=this.instance,o=i.getSlide(),r=null==o?void 0:o.panzoom,s=e.target,a=s&&R(s)?s.dataset:null;if(!a)return;if(void 0!==a.fancyboxToggleThumbs)return e.preventDefault(),e.stopPropagation(),void(null===(t=i.plugins.Thumbs)||void 0===t||t.toggle());if(void 0!==a.fancyboxToggleFullscreen)return e.preventDefault(),e.stopPropagation(),void this.instance.toggleFullscreen();if(void 0!==a.fancyboxToggleSlideshow){e.preventDefault(),e.stopPropagation();const t=null===(n=i.carousel)||void 0===n?void 0:n.plugins.Autoplay;let o=t.isActive;return r&&"mousemove"===r.panMode&&!o&&r.reset(),void(o?t.stop():t.start())}const l=a.panzoomAction,c=a.panzoomChange;if((c||l)&&(e.preventDefault(),e.stopPropagation()),c){let t={};try{t=JSON.parse(c)}catch(e){}r&&r.applyChange(t)}else l&&r&&r[l]&&r[l]()}onChange(){this.onRefresh()}onRefresh(){if(this.instance.isClosing())return;const e=this.container;if(!e)return;const t=this.instance.getSlide();if(!t||t.state!==ye.Ready)return;const n=t&&!t.error&&t.panzoom;for(const t of e.querySelectorAll("[data-panzoom-action]"))n?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));let i=n&&n.canZoomIn(),o=n&&n.canZoomOut();for(const t of e.querySelectorAll('[data-panzoom-action="zoomIn"]'))i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="zoomOut"]'))o?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));for(const t of e.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){o||i?(t.removeAttribute("disabled"),t.removeAttribute("tabindex")):(t.setAttribute("disabled",""),t.setAttribute("tabindex","-1"));const e=t.querySelector("g");e&&(e.style.display=i?"":"none")}}onDone(e,t){var n;null===(n=t.panzoom)||void 0===n||n.on("afterTransform",(()=>{this.instance.isCurrentSlide(t)&&this.onRefresh()})),this.instance.isCurrentSlide(t)&&this.onRefresh()}createContainer(){const e=this.instance.container;if(!e)return null;const t=this.option("parentEl")||e;let n=t.querySelector("."+st);return n||(n=document.createElement("div"),I(n,st),t.prepend(n)),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&I(e,rt),this.container=n,n}createEl(e){const t=this.instance,n=t.carousel;if(!n)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!ge())return null;let i=null;const o=n.slides.length||0;let r=0,s=0;for(const e of n.slides)(e.panzoom||"image"===e.type)&&r++,("image"===e.type||e.downloadSrc)&&s++;if(o<2&&["infobar","prev","next"].includes(e))return i;if(void 0!==nt[e]&&!r)return null;if("download"===e&&!s)return null;if("thumbs"===e){const e=t.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!n.plugins.Autoplay||o<2))return null;if(void 0!==nt[e]){const t=nt[e];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),I(i,"f-button"),t.action&&(i.dataset.panzoomAction=t.action),t.change&&(i.dataset.panzoomChange=JSON.stringify(t.change)),i.appendChild(m(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(i=m(this.instance.localize(t.tpl)),"function"==typeof t.click&&i.addEventListener("click",(e=>{e.preventDefault(),e.stopPropagation(),"function"==typeof t.click&&t.click.call(this,this,e)})))}const a=null==i?void 0:i.querySelector("svg");if(a)for(const[e,t]of Object.entries(ot))a.getAttribute(e)||a.setAttribute(e,String(t));return i}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=it.Disabled;const t=this.instance.container;t&&F(t,rt)}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on(["reveal","Carousel.change"],e.onChange),e.onReady(e.instance)}detach(){const e=this,t=e.instance;t.off("Carousel.initSlides",e.onReady),t.off("done",e.onDone),t.off(["reveal","Carousel.change"],e.onChange),e.removeContainer()}}Object.defineProperty(at,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{absolute:"auto",display:{left:["infobar"],middle:[],right:["iterateZoom","slideshow","fullscreen","thumbs","close"]},enabled:"auto",items:{infobar:{tpl:'<div class="fancybox__infobar" tabindex="-1"><span data-fancybox-current-index></span>/<span data-fancybox-count></span></div>'},download:{tpl:'<a class="f-button" title="{{DOWNLOAD}}" data-fancybox-download href="javasript:;"><svg><path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-2M7 11l5 5 5-5M12 4v12"/></svg></a>'},prev:{tpl:'<button class="f-button" title="{{PREV}}" data-fancybox-prev><svg><path d="m15 6-6 6 6 6"/></svg></button>'},next:{tpl:'<button class="f-button" title="{{NEXT}}" data-fancybox-next><svg><path d="m9 6 6 6-6 6"/></svg></button>'},slideshow:{tpl:'<button class="f-button" title="{{TOGGLE_SLIDESHOW}}" data-fancybox-toggle-slideshow><svg><g><path d="M8 4v16l13 -8z"></path></g><g><path d="M8 4v15M17 4v15"/></g></svg></button>'},fullscreen:{tpl:'<button class="f-button" title="{{TOGGLE_FULLSCREEN}}" data-fancybox-toggle-fullscreen><svg><g><path d="M4 8V6a2 2 0 0 1 2-2h2M4 16v2a2 2 0 0 0 2 2h2M16 4h2a2 2 0 0 1 2 2v2M16 20h2a2 2 0 0 0 2-2v-2"/></g><g><path d="M15 19v-2a2 2 0 0 1 2-2h2M15 5v2a2 2 0 0 0 2 2h2M5 15h2a2 2 0 0 1 2 2v2M5 9h2a2 2 0 0 0 2-2V5"/></g></svg></button>'},thumbs:{tpl:'<button class="f-button" title="{{TOGGLE_THUMBS}}" data-fancybox-toggle-thumbs><svg><circle cx="5.5" cy="5.5" r="1"/><circle cx="12" cy="5.5" r="1"/><circle cx="18.5" cy="5.5" r="1"/><circle cx="5.5" cy="12" r="1"/><circle cx="12" cy="12" r="1"/><circle cx="18.5" cy="12" r="1"/><circle cx="5.5" cy="18.5" r="1"/><circle cx="12" cy="18.5" r="1"/><circle cx="18.5" cy="18.5" r="1"/></svg></button>'},close:{tpl:'<button class="f-button" title="{{CLOSE}}" data-fancybox-close><svg><path d="m19.5 4.5-15 15M4.5 4.5l15 15"/></svg></button>'}},parentEl:null}});const lt={Hash:class extends J{onReady(){we=!1}onChange(e){Se&&clearTimeout(Se);const{hash:t}=Ee(),{hash:n}=Te(),i=e.isOpeningSlide(e.getSlide());i&&(be=n===t?"":n),t&&t!==n&&(Se=setTimeout((()=>{try{if(e.state===ve.Ready){let e="replaceState";i&&!xe&&(e="pushState",xe=!0),window.history[e]({},document.title,window.location.pathname+window.location.search+t)}}catch(e){}}),300))}onClose(e){if(Se&&clearTimeout(Se),!we&&xe)return xe=!1,we=!1,void window.history.back();if(!we)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(be||""))}catch(e){}}attach(){const e=this.instance;e.on("ready",this.onReady),e.on(["Carousel.ready","Carousel.change"],this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("ready",this.onReady),e.off(["Carousel.ready","Carousel.change"],this.onChange),e.off("close",this.onClose)}static parseURL(){return Te()}static startFromUrl(){Ce()}static destroy(){window.removeEventListener("hashchange",Pe,!1)}},Html:He,Images:Me,Slideshow:Ve,Thumbs:tt,Toolbar:at},ct="with-fancybox",ut="hide-scrollbar",ht="--fancybox-scrollbar-compensate",dt="--fancybox-body-margin",ft="aria-hidden",pt="is-using-tab",gt="is-animated",mt="is-compact",vt="is-loading",yt="is-opening",bt="has-caption",wt="disabled",xt="tabindex",St="download",Et="href",Tt="src",Ct=e=>"string"==typeof e,kt=function(){var e=window.getSelection();return!!e&&"Range"===e.type};let Pt,Ot=null,At=null,Mt=0,Lt=0,jt=0,Dt=0;const Nt=new Map;let Rt=0;class Ft extends O{get isIdle(){return this.idle}get isCompact(){return this.option("compact")}constructor(e=[],t={},n={}){super(t),Object.defineProperty(this,"userSlides",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"idle",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"idleTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"clickTimer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"pwt",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"ignoreFocusChange",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"startedFs",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:ve.Init}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"carousel",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"lastFocus",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"prevMouseMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Pt||(Pt=ge()),this.id=t.id||++Rt,Nt.set(this.id,this),this.userSlides=e,this.userPlugins=n,queueMicrotask((()=>{this.init()}))}init(){if(this.state===ve.Destroy)return;this.state=ve.Init,this.attachPlugins(Object.assign(Object.assign({},Ft.Plugins),this.userPlugins)),this.emit("init"),this.emit("attachPlugins"),!0===this.option("hideScrollbar")&&(()=>{if(!he)return;const e=document,t=e.body,n=e.documentElement;if(t.classList.contains(ut))return;let i=window.innerWidth-n.getBoundingClientRect().width;const o=parseFloat(window.getComputedStyle(t).marginRight);i<0&&(i=0),n.style.setProperty(ht,`${i}px`),o&&t.style.setProperty(dt,`${o}px`),t.classList.add(ut)})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=ve.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute(ft,"false")}),16)};this.option("Fullscreen.autoStart")&&Pt&&!Pt.isFullscreen()?Pt.request().then((()=>{this.startedFs=!0,e()})).catch((()=>e())):e()}initLayout(){var e,t;const n=this.option("parentEl")||document.body,i=m(this.localize(this.option("tpl.main")||""));if(i){if(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle(mt,this.isCompact),I(i,this.option("mainClass")||""),I(i,yt),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),I(document.documentElement,ct),Ot&&At||(Ot=document.createElement("span"),I(Ot,"fancybox-focus-guard"),Ot.setAttribute(xt,"0"),Ot.setAttribute(ft,"true"),Ot.setAttribute("aria-label","Focus guard"),At=Ot.cloneNode(),null===(e=i.parentElement)||void 0===e||e.insertBefore(Ot,i),null===(t=i.parentElement)||void 0===t||t.append(At)),i.addEventListener("mousedown",(e=>{Mt=e.pageX,Lt=e.pageY,F(i,pt)})),this.option("closeExisting"))for(const e of Nt.values())e.id!==this.id&&e.close();else this.option("animated")&&(I(i,gt),setTimeout((()=>{this.isClosing()||F(i,gt)}),350));this.emit("initLayout")}}initCarousel(e){const t=this.container;if(!t)return;const n=t.querySelector(".fancybox__carousel");if(!n)return;const i=this.carousel=new ce(n,C({},{slides:e,transition:"fade",Panzoom:{lockAxis:this.option("dragToClose")?"xy":"x",infinite:!!this.option("dragToClose")&&"y"},Dots:!1,Navigation:{classes:{container:"fancybox__nav",button:"f-button",isNext:"is-next",isPrev:"is-prev"}},initialPage:this.option("startIndex"),l10n:this.option("l10n")},this.option("Carousel")||{}));i.on("*",((e,t,...n)=>{this.emit(`Carousel.${t}`,e,...n)})),i.on(["ready","change"],(()=>{this.manageCaption()})),this.on("Carousel.removeSlide",((e,t,n)=>{this.clearContent(n),n.state=void 0})),i.on("Panzoom.touchStart",(()=>{var e,t;this.isCompact||this.endIdle(),(null===(e=document.activeElement)||void 0===e?void 0:e.closest(".f-thumbs"))&&(null===(t=this.container)||void 0===t||t.focus())})),i.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&!this.isClosing&&this.checkFocus()})),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",((e,t)=>{const n=this.getSlide();if(n&&p(n.el))return;const i=this.container;if(i){const e=Math.abs(t.current.f),n=e<1?"":Math.max(.5,Math.min(1,1-e/t.contentRect.fitHeight*1.5));i.style.setProperty("--fancybox-ts",n?"0s":""),i.style.setProperty("--fancybox-opacity",n+"")}})),i.on("Panzoom.touchEnd",((e,t,n)=>{var i;const o=this.getSlide();if(o&&p(o.el))return;if(t.isMobile&&document.activeElement&&-1!==["TEXTAREA","INPUT"].indexOf(null===(i=document.activeElement)||void 0===i?void 0:i.nodeName))return;const r=Math.abs(t.dragOffset.y);"y"===t.lockedAxis&&(r>=200||r>=50&&t.dragOffset.time<300)&&(n&&n.cancelable&&n.preventDefault(),this.close(n,"f-throwOut"+(t.current.f<0?"Up":"Down")))}))),i.on("change",(e=>{var t;let n=null===(t=this.getSlide())||void 0===t?void 0:t.triggerEl;if(n){const t=new CustomEvent("slideTo",{bubbles:!0,cancelable:!0,detail:e.page});n.dispatchEvent(t)}})),i.on(["refresh","change"],(e=>{const t=this.container;if(!t)return;for(const n of t.querySelectorAll("[data-fancybox-current-index]"))n.innerHTML=e.page+1;for(const n of t.querySelectorAll("[data-fancybox-count]"))n.innerHTML=e.pages.length;if(!e.isInfinite){for(const n of t.querySelectorAll("[data-fancybox-next]"))e.page<e.pages.length-1?(n.removeAttribute(wt),n.removeAttribute(xt)):(n.setAttribute(wt,""),n.setAttribute(xt,"-1"));for(const n of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(n.removeAttribute(wt),n.removeAttribute(xt)):(n.setAttribute(wt,""),n.setAttribute(xt,"-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||!Ct(n[Tt])||(i=n[Tt]);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=n.downloadFilename;i?(e.removeAttribute(wt),e.removeAttribute(xt),e.setAttribute(Et,i),e.setAttribute(St,t||i),e.setAttribute("target","_blank")):(e.setAttribute(wt,""),e.setAttribute(xt,"-1"),e.removeAttribute(Et),e.removeAttribute(St))}})),this.emit("initCarousel")}attachEvents(){const e=this,t=e.container;if(!t)return;t.addEventListener("click",e.onClick,{passive:!1,capture:!1}),t.addEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",e.onVisibilityChange,!1),document.addEventListener("mousemove",e.onMousemove),e.option("trapFocus")&&document.addEventListener("focus",e.onFocus,!0),window.addEventListener("resize",e.onResize);const n=window.visualViewport;n&&(n.addEventListener("scroll",e.onResize),n.addEventListener("resize",e.onResize))}detachEvents(){const e=this,t=e.container;if(!t)return;document.removeEventListener("keydown",e.onKeydown,{passive:!1,capture:!0}),t.removeEventListener("wheel",e.onWheel,{passive:!1,capture:!1}),t.removeEventListener("click",e.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",e.onMousemove),window.removeEventListener("resize",e.onResize);const n=window.visualViewport;n&&(n.removeEventListener("resize",e.onResize),n.removeEventListener("scroll",e.onResize)),document.removeEventListener("visibilitychange",e.onVisibilityChange,!1),document.removeEventListener("focus",e.onFocus,!0)}scale(){const e=this.container;if(!e)return;const t=window.visualViewport,n=Math.max(1,(null==t?void 0:t.scale)||1);let i="",o="",r="";if(t&&n>1){let e=`${t.offsetLeft}px`,s=`${t.offsetTop}px`;i=t.width*n+"px",o=t.height*n+"px",r=`translate3d(${e}, ${s}, 0) scale(${1/n})`}e.style.transform=r,e.style.width=i,e.style.height=o}onClick(e){var t;const{container:n,isCompact:i}=this;if(!n||this.isClosing())return;!i&&this.option("idle")&&this.resetIdle();const o=e.composedPath()[0];if(o.closest(".fancybox-spinner")||o.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(o.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(o.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if("click"===e.type&&0===e.detail)return;if(Math.abs(e.pageX-Mt)>30||Math.abs(e.pageY-Lt)>30)return;const r=document.activeElement;if(kt()&&r&&n.contains(r))return;if(i&&"image"===(null===(t=this.getSlide())||void 0===t?void 0:t.type))return void(this.clickTimer?(clearTimeout(this.clickTimer),this.clickTimer=null):this.clickTimer=setTimeout((()=>{this.toggleIdle(),this.clickTimer=null}),350));if(this.emit("click",e),e.defaultPrevented)return;let s=!1;if(o.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;o.matches(fe)||r.blur()}if(kt())return;s=this.option("contentClick")}else o.closest(".fancybox__carousel")&&!o.matches(fe)&&(s=this.option("backdropClick"));"close"===s?(e.preventDefault(),this.close(e)):"next"===s?(e.preventDefault(),this.next()):"prev"===s&&(e.preventDefault(),this.prev())}onWheel(e){const t=e.target;let n=this.option("wheel",e);t.closest(".fancybox__thumbs")&&(n="slide");const i="slide"===n,o=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),r=Math.max(-1,Math.min(1,o)),s=Date.now();this.pwt&&s-this.pwt<300?i&&e.preventDefault():(this.pwt=s,this.emit("wheel",e,r),e.defaultPrevented||("close"===n?(e.preventDefault(),this.close(e)):"slide"===n&&(g(t)||(e.preventDefault(),this[r>0?"prev":"next"]()))))}onScroll(){window.scrollTo(jt,Dt)}onKeydown(e){if(!this.isTopmost())return;this.isCompact||!this.option("idle")||this.isClosing()||this.resetIdle();const t=e.key,n=this.option("keyboard");if(!n)return;const i=e.composedPath()[0],o=document.activeElement&&document.activeElement.classList,r=o&&o.contains("f-button")||i.dataset.carouselPage||i.dataset.carouselIndex;if("Escape"!==t&&!r&&R(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;if("Tab"===e.key?I(this.container,pt):F(this.container,pt),e.ctrlKey||e.altKey||e.shiftKey)return;this.emit("keydown",t,e);const s=n[t];s&&"function"==typeof this[s]&&(e.preventDefault(),this[s]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle(mt,t),this.manageCaption(this.getSlide()),this.isCompact?this.clearIdle():this.endIdle(),this.scale(),this.emit("resize")}onFocus(e){this.isTopmost()&&this.checkFocus(e)}onMousemove(e){this.prevMouseMoveEvent=e,!this.isCompact&&this.option("idle")&&this.resetIdle()}onVisibilityChange(){"visible"===document.visibilityState?this.checkFocus():this.endIdle()}manageCloseBtn(e){const t=this.optionFor(e,"closeButton")||!1;if("auto"===t){const e=this.plugins.Toolbar;if(e&&e.state===it.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const t=m(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&I(e.el,"has-close-btn")}}manageCaption(e=void 0){var t,n;const i="fancybox__caption",o=this.container;if(!o)return;F(o,bt);const r=this.isCompact||this.option("commonCaption"),s=!r;if(this.caption&&this.stop(this.caption),s&&this.caption&&(this.caption.remove(),this.caption=null),r&&!this.caption)for(const e of(null===(t=this.carousel)||void 0===t?void 0:t.slides)||[])e.captionEl&&(e.captionEl.remove(),e.captionEl=void 0,F(e.el,bt),null===(n=e.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||r&&!this.isCurrentSlide(e))return;const a=e.el;let l=this.optionFor(e,"caption","");if(!l)return void(r&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{this.caption&&(this.caption.innerHTML="")})));let c=null;if(s){if(c=e.captionEl||null,a&&!c){const t=i+`_${this.id}_${e.index}`;c=document.createElement("div"),I(c,i),c.setAttribute("id",t),e.captionEl=a.appendChild(c),I(a,bt),a.setAttribute("aria-labelledby",t)}}else c=this.caption,c||(c=o.querySelector("."+i)),c||(c=document.createElement("div"),c.dataset.fancyboxCaption="",I(c,i),(this.footer||o).prepend(c)),I(o,bt),this.caption=c;c&&(c.innerHTML="",Ct(l)||"number"==typeof l?c.innerHTML=l+"":l instanceof HTMLElement&&c.appendChild(l))}checkFocus(e){this.focus(e)}focus(e){var t;if(this.ignoreFocusChange)return;const n=document.activeElement||null,i=(null==e?void 0:e.target)||null,o=this.container,r=null===(t=this.carousel)||void 0===t?void 0:t.viewport;if(!o||!r)return;if(!e&&n&&o.contains(n))return;const s=this.getSlide(),a=s&&s.state===ye.Ready?s.el:null;if(!a||a.contains(n)||o===n)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const l=Array.from(o.querySelectorAll(fe));let c=[],u=null;for(let e of l){const t=!e.offsetParent||!!e.closest('[aria-hidden="true"]'),n=a&&a.contains(e),i=!r.contains(e);if(e===o||(n||i)&&!t){c.push(e);const t=e.dataset.origTabindex;void 0!==t&&t&&(e.tabIndex=parseFloat(t)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&u||(u=e)}else{const t=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||"":e.dataset.origTabindex;t&&(e.dataset.origTabindex=t),e.tabIndex=-1}}let h=null;e?(!i||c.indexOf(i)<0)&&(h=u||o,c.length&&(n===At?h=c[0]:this.lastFocus!==o&&n!==Ot||(h=c[c.length-1]))):h=s&&"image"===s.type?o:u||o,h&&pe(h),this.lastFocus=document.activeElement,this.ignoreFocusChange=!1}next(){const e=this.carousel;e&&e.pages.length>1&&e.slideNext()}prev(){const e=this.carousel;e&&e.pages.length>1&&e.slidePrev()}jumpTo(...e){this.carousel&&this.carousel.slideTo(...e)}isTopmost(){var e;return(null===(e=Ft.getInstance())||void 0===e?void 0:e.id)==this.id}animate(e=null,t="",n){if(!e||!t)return void(n&&n());this.stop(e);const i=o=>{o.target===e&&e.dataset.animationName&&(e.removeEventListener("animationend",i),delete e.dataset.animationName,n&&n(),F(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",i),I(e,t)}stop(e){e&&e.dispatchEvent(new CustomEvent("animationend",{bubbles:!1,cancelable:!0,currentTarget:e}))}setContent(e,t="",n=!0){if(this.isClosing())return;const i=e.el;if(!i)return;let o=null;if(R(t)?o=t:(o=m(t+""),R(o)||(o=document.createElement("div"),o.innerHTML=t+"")),["img","picture","iframe","video","audio"].includes(o.nodeName.toLowerCase())){const e=document.createElement("div");e.appendChild(o),o=e}R(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&R(o)?(I(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),i.classList.add(`has-${e.error?"error":e.type||"unknown"}`),i.prepend(o),"none"===o.style.display&&(o.style.display=""),"none"===getComputedStyle(o).getPropertyValue("display")&&(o.style.display=e.display||this.option("defaultDisplay")||"flex"),e.contentEl=o,n&&this.revealContent(e),this.manageCloseBtn(e),this.manageCaption(e)):this.setError(e,"{{ELEMENT_NOT_FOUND}}")}revealContent(e,t){const n=e.el,i=e.contentEl;n&&i&&(this.emit("reveal",e),this.hideLoading(e),e.state=ye.Opening,(t=this.isOpeningSlide(e)?void 0===t?this.optionFor(e,"showClass"):t:"f-fadeIn")?this.animate(i,t,(()=>{this.done(e)})):this.done(e))}done(e){this.isClosing()||(e.state=ye.Ready,this.emit("done",e),I(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{var t;null===(t=e.panzoom)||void 0===t||t.updateControls(),this.option("autoFocus")&&this.focus()})),this.isOpeningSlide(e)&&(F(this.container,yt),!this.isCompact&&this.option("idle")&&this.setIdle()))}isCurrentSlide(e){const t=this.getSlide();return!(!e||!t)&&t.index===e.index}isOpeningSlide(e){var t,n;return null===(null===(t=this.carousel)||void 0===t?void 0:t.prevPage)&&e&&e.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(e){e.state=ye.Loading;const t=e.el;t&&(I(t,vt),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===ye.Loading){let n=m(N);I(n,"fancybox-spinner"),e.spinnerEl=n,t.prepend(n),this.animate(n,"f-fadeIn")}}),250))}hideLoading(e){const t=e.el;if(!t)return;const n=e.spinnerEl;this.isClosing()?null==n||n.remove():(F(t,vt),n&&this.animate(n,"f-fadeOut",(()=>{n.remove()})),e.state===ye.Loading&&(this.emit("loaded",e),e.state=ye.Ready))}setError(e,t){if(this.isClosing())return;const n=new Event("error",{bubbles:!0,cancelable:!0});if(this.emit("error",n,e),n.defaultPrevented)return;e.error=t,this.hideLoading(e),this.clearContent(e);const i=document.createElement("div");i.classList.add("fancybox-error"),i.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,i)}clearContent(e){if(void 0===e.state)return;this.emit("clearContent",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0);const t=e.el;t&&(F(t,"has-error"),F(t,"has-unknown"),F(t,`has-${e.type||"unknown"}`)),e.closeBtnEl&&e.closeBtnEl.remove(),e.closeBtnEl=void 0,e.captionEl&&e.captionEl.remove(),e.captionEl=void 0,e.spinnerEl&&e.spinnerEl.remove(),e.spinnerEl=void 0}getSlide(){var e;const t=this.carousel;return(null===(e=null==t?void 0:t.pages[null==t?void 0:t.page])||void 0===e?void 0:e.slides[0])||void 0}close(e,t){if(this.isClosing())return;const n=new Event("shouldClose",{bubbles:!0,cancelable:!0});if(this.emit("shouldClose",n,e),n.defaultPrevented)return;e&&e.cancelable&&(e.preventDefault(),e.stopPropagation());const i=()=>{this.proceedClose(e,t)};this.startedFs&&Pt&&Pt.isFullscreen()?Promise.resolve(Pt.exit()).then((()=>i())):i()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,I(this.container,"is-idle"),this.emit("setIdle")};if(this.clearIdle(),!this.isClosing())if(e)t();else{const e=this.option("idle");e&&(this.idleTimer=setTimeout(t,e))}}endIdle(){this.clearIdle(),this.idle&&!this.isClosing()&&(this.idle=!1,F(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){Pt&&(Pt.isFullscreen()?Pt.exit():Pt.request().then((()=>{this.startedFs=!0})))}isClosing(){return[ve.Closing,ve.CustomClosing,ve.Destroy].includes(this.state)}proceedClose(e,t){var n,i;this.state=ve.Closing,this.clearIdle(),this.detachEvents();const o=this.container,r=this.carousel,s=this.getSlide(),a=s&&this.option("placeFocusBack")?s.triggerEl||this.option("triggerEl"):null;if(a&&(ue(a)?pe(a):a.focus()),o&&(F(o,yt),I(o,"is-closing"),o.setAttribute(ft,"true"),this.option("animated")&&I(o,gt),o.style.pointerEvents="none"),r){r.clearTransitions(),null===(n=r.panzoom)||void 0===n||n.destroy(),null===(i=r.plugins.Navigation)||void 0===i||i.detach();for(const e of r.slides){e.state=ye.Closing,this.hideLoading(e);const t=e.contentEl;t&&this.stop(t);const n=null==e?void 0:e.panzoom;n&&(n.stop(),n.detachEvents(),n.detachObserver()),this.isCurrentSlide(e)||r.emit("removeSlide",e)}}jt=window.scrollX,Dt=window.scrollY,window.addEventListener("scroll",this.onScroll),this.emit("close",e),this.state!==ve.CustomClosing?(void 0===t&&s&&(t=this.optionFor(s,"hideClass")),t&&s?(this.animate(s.contentEl,t,(()=>{r&&r.emit("removeSlide",s)})),setTimeout((()=>{this.destroy()}),500)):this.destroy()):setTimeout((()=>{this.destroy()}),500)}destroy(){var e;if(this.state===ve.Destroy)return;window.removeEventListener("scroll",this.onScroll),this.state=ve.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),Nt.delete(this.id);const n=Ft.getInstance();n?n.focus():(Ot&&(Ot.remove(),Ot=null),At&&(At.remove(),At=null),F(document.documentElement,ct),(()=>{if(!he)return;const e=document,t=e.body;t.classList.remove(ut),t.style.setProperty(dt,""),e.documentElement.style.setProperty(ht,"")})(),this.emit("destroy"))}static bind(e,t,n){if(!he)return;let i,o="",r={};if(void 0===e?i=document.body:Ct(e)?(i=document.body,o=e,"object"==typeof t&&(r=t||{})):(i=e,Ct(t)&&(o=t),"object"==typeof n&&(r=n||{})),!i||!R(i))return;o=o||"[data-fancybox]";const s=Ft.openers.get(i)||new Map;s.set(o,r),Ft.openers.set(i,s),1===s.size&&i.addEventListener("click",Ft.fromEvent)}static unbind(e,t){let n,i="";if(Ct(e)?(n=document.body,i=e):(n=e,Ct(t)&&(i=t)),!n)return;const o=Ft.openers.get(n);o&&i&&o.delete(i),i&&o||(Ft.openers.delete(n),n.removeEventListener("click",Ft.fromEvent))}static destroy(){let e;for(;e=Ft.getInstance();)e.destroy();for(const e of Ft.openers.keys())e.removeEventListener("click",Ft.fromEvent);Ft.openers=new Map}static fromEvent(e){if(e.defaultPrevented)return;if(e.button&&0!==e.button)return;if(e.ctrlKey||e.metaKey||e.shiftKey)return;let t=e.composedPath()[0];const n=t.closest("[data-fancybox-trigger]");if(n){const e=n.dataset.fancyboxTrigger||"",i=document.querySelectorAll(`[data-fancybox="${e}"]`),o=parseInt(n.dataset.fancyboxIndex||"",10)||0;t=i[o]||t}if(!(t&&t instanceof Element))return;let i,o,r,s;if([...Ft.openers].reverse().find((([e,n])=>!(!e.contains(t)||![...n].reverse().find((([n,a])=>{let l=t.closest(n);return!!l&&(i=e,o=n,r=l,s=a,!0)}))))),!i||!o||!r)return;s=s||{},e.preventDefault(),t=r;let a=[],l=C({},me,s);l.event=e,l.triggerEl=t,l.delegate=n;const c=l.groupAll,u=l.groupAttr,h=u&&t?t.getAttribute(`${u}`):"";if((!t||h||c)&&(a=[].slice.call(i.querySelectorAll(o))),t&&!c&&(a=h?a.filter((e=>e.getAttribute(`${u}`)===h)):[t]),!a.length)return;const d=Ft.getInstance();return d&&d.options.triggerEl&&a.indexOf(d.options.triggerEl)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),Ft.fromNodes(a,l))}static fromSelector(e,t,n){let i=null,o="",r={};if(Ct(e)?(i=document.body,o=e,"object"==typeof t&&(r=t||{})):e instanceof HTMLElement&&Ct(t)&&(i=e,o=t,"object"==typeof n&&(r=n||{})),!i||!o)return!1;const s=Ft.openers.get(i);return!!s&&(r=C({},s.get(o)||{},r),!!r&&Ft.fromNodes(Array.from(i.querySelectorAll(o)),r))}static fromNodes(e,t){t=C({},me,t||{});const n=[];for(const i of e){const e=i.dataset||{},o=e[Tt]||i.getAttribute(Et)||i.getAttribute("currentSrc")||i.getAttribute(Tt)||void 0;let r;const s=t.delegate;let a;s&&n.length===t.startIndex&&(r=s instanceof HTMLImageElement?s:s.querySelector("img:not([aria-hidden])")),r||(r=i instanceof HTMLImageElement?i:i.querySelector("img:not([aria-hidden])")),r&&(a=r.currentSrc||r[Tt]||void 0,!a&&r.dataset&&(a=r.dataset.lazySrc||r.dataset[Tt]||void 0));const l={src:o,triggerEl:i,thumbEl:r,thumbElSrc:a,thumbSrc:a};for(const t in e){let n=e[t]+"";n="false"!==n&&("true"===n||n),l[t]=n}n.push(l)}return new Ft(n,t)}static getInstance(e){return e?Nt.get(e):Array.from(Nt.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=Ft.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new Ft(e,t)}static next(){const e=Ft.getInstance();e&&e.next()}static prev(){const e=Ft.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of Nt.values())e.close(...t);else{const e=Ft.getInstance();e&&e.close(...t)}}}Object.defineProperty(Ft,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.36"}),Object.defineProperty(Ft,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:me}),Object.defineProperty(Ft,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:lt}),Object.defineProperty(Ft,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map});var It=n(9479);It('[class*="buttonModal"] a').each((function(){var e=It(this),t=e.prop("href"),n=new URL(t,window.location).hash;n.length>0&&e.attr("data-type","ajax").attr("data-src",t).attr("data-filter",n)})),Ft.bind(".buttonModal a",{}),Ft.bind(".buttonModalSidebar a",{mainClass:"modalSidebar",showClass:"fancybox-slideFromRight",hideClass:"fancybox-slideToRight"});var zt=n(9479);function Ht(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ht(Object(n),!0).forEach((function(t){Ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ht(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function qt(){qt=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",a=o.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(e){l=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var r=t&&t.prototype instanceof d?t:d,s=Object.create(r.prototype),a=new C(o||[]);return i(s,"_invoke",{value:x(e,n,a)}),s}function u(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var h={};function d(){}function f(){}function p(){}var g={};l(g,r,(function(){return this}));var m=Object.getPrototypeOf,v=m&&m(m(k([])));v&&v!==t&&n.call(v,r)&&(g=v);var y=p.prototype=d.prototype=Object.create(g);function b(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function w(e,t){function o(i,r,s,a){var l=u(e[i],e,r);if("throw"!==l.type){var c=l.arg,h=c.value;return h&&"object"==typeof h&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){o("next",e,s,a)}),(function(e){o("throw",e,s,a)})):t.resolve(h).then((function(e){c.value=e,s(c)}),(function(e){return o("throw",e,s,a)}))}a(l.arg)}var r;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){o(e,n,t,i)}))}return r=r?r.then(i,i):i()}})}function x(e,t,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return P()}for(n.method=o,n.arg=r;;){var s=n.delegate;if(s){var a=S(s,n);if(a){if(a===h)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(e,t,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function S(e,t){var n=t.method,i=e.iterator[n];if(void 0===i)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var o=u(i,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;var r=o.arg;return r?r.done?(t[e.resultName]=r.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):r:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function E(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(E,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function t(){for(;++i<e.length;)if(n.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:P}}function P(){return{value:void 0,done:!0}}return f.prototype=p,i(y,"constructor",{value:p,configurable:!0}),i(p,"constructor",{value:f,configurable:!0}),f.displayName=l(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===f||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,a,"GeneratorFunction")),e.prototype=Object.create(y),e},e.awrap=function(e){return{__await:e}},b(w.prototype),l(w.prototype,s,(function(){return this})),e.AsyncIterator=w,e.async=function(t,n,i,o,r){void 0===r&&(r=Promise);var s=new w(c(t,n,i,o),r);return e.isGeneratorFunction(n)?s:s.next().then((function(e){return e.done?e.value:s.next()}))},b(y),l(y,a,"Generator"),l(y,r,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},e.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(n,i){return s.type="throw",s.arg=e,t.next=n,i&&(t.method="next",t.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],s=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var a=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(a&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(e,t){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=e,s.arg=t,r?(this.method="next",this.next=r.finallyLoc,h):this.complete(s)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var o=i.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function Bt(e,t,n,i,o,r,s){try{var a=e[r](s),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,o)}function Wt(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var r=e.apply(t,n);function s(e){Bt(r,i,o,s,a,"next",e)}function a(e){Bt(r,i,o,s,a,"throw",e)}s(void 0)}))}}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,tn(i.key),i)}}function Xt(e,t,n){return t&&$t(e.prototype,t),n&&$t(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ut(e,t,n){return(t=tn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yt(e){return Yt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Yt(e)}function Gt(e,t){return Gt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Gt(e,t)}function Zt(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function Kt(e,t,n){return Kt=Zt()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&Gt(o,n.prototype),o},Kt.apply(null,arguments)}function Jt(e){var t="function"==typeof Map?new Map:void 0;return Jt=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,i)}function i(){return Kt(e,arguments,Yt(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Gt(i,e)},Jt(e)}function Qt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function en(e){var t=Zt();return function(){var n,i=Yt(e);if(t){var o=Yt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Qt(e)}(this,n)}}function tn(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var nn=void 0!==n.g&&"[object global]"==={}.toString.call(n.g);function on(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function rn(e){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.videoji\.hk))(?=$|\/)/.test(e)}function sn(e){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.videoji\.hk))\/video\/\d+/.test(e)}function an(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.id,i=t.url,o=n||i;if(!o)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(e=o,!isNaN(parseFloat(e))&&isFinite(e)&&Math.floor(e)==e)return"https://vimeo.com/".concat(o);if(rn(o))return o.replace("http:","https:");if(n)throw new TypeError("“".concat(n,"” is not a valid video id."));throw new TypeError("“".concat(o,"” is not a vimeo.com url."))}var ln=function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",r="string"==typeof t?[t]:t;return r.forEach((function(t){e[i](t,n)})),{cancel:function(){return r.forEach((function(t){return e[o](t,n)}))}}},cn=void 0!==Array.prototype.indexOf,un="undefined"!=typeof window&&void 0!==window.postMessage;if(!(nn||cn&&un))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var hn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};!function(e){if(!e.WeakMap){var t=Object.prototype.hasOwnProperty,n=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch(e){}}(),i=function(e,t,i){n?Object.defineProperty(e,t,{configurable:!0,writable:!0,value:i}):e[t]=i};e.WeakMap=function(){function e(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(i(this,"_id","_WeakMap"+"_"+r()+"."+r()),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function n(e,n){if(!o(e)||!t.call(e,"_id"))throw new TypeError(n+" method called on incompatible receiver "+typeof e)}function r(){return Math.random().toString().substring(2)}return i(e.prototype,"delete",(function(e){if(n(this,"delete"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)&&(delete e[this._id],!0)})),i(e.prototype,"get",(function(e){if(n(this,"get"),o(e)){var t=e[this._id];return t&&t[0]===e?t[1]:void 0}})),i(e.prototype,"has",(function(e){if(n(this,"has"),!o(e))return!1;var t=e[this._id];return!(!t||t[0]!==e)})),i(e.prototype,"set",(function(e,t){if(n(this,"set"),!o(e))throw new TypeError("Invalid value used as weak map key");var r=e[this._id];return r&&r[0]===e?(r[1]=t,this):(i(e,this._id,[e,t]),this)})),i(e,"_polyfill",!0),e}()}function o(e){return Object(e)===e}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:hn);var dn,fn,pn=(dn=function(e){var t,n,i;i=function(){var e,t,n,i=Object.prototype.toString,o="undefined"!=typeof setImmediate?function(e){return setImmediate(e)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(e,t,n,i){return Object.defineProperty(e,t,{value:n,writable:!0,configurable:!1!==i})}}catch(t){e=function(e,t,n){return e[t]=n,e}}function r(e,i){n.add(e,i),t||(t=o(n.drain))}function s(e){var t,n=typeof e;return null==e||"object"!=n&&"function"!=n||(t=e.then),"function"==typeof t&&t}function a(){for(var e=0;e<this.chain.length;e++)l(this,1===this.state?this.chain[e].success:this.chain[e].failure,this.chain[e]);this.chain.length=0}function l(e,t,n){var i,o;try{!1===t?n.reject(e.msg):(i=!0===t?e.msg:t.call(void 0,e.msg))===n.promise?n.reject(TypeError("Promise-chain cycle")):(o=s(i))?o.call(i,n.resolve,n.reject):n.resolve(i)}catch(e){n.reject(e)}}function c(e){var t,n=this;if(!n.triggered){n.triggered=!0,n.def&&(n=n.def);try{(t=s(e))?r((function(){var i=new d(n);try{t.call(e,(function(){c.apply(i,arguments)}),(function(){u.apply(i,arguments)}))}catch(e){u.call(i,e)}})):(n.msg=e,n.state=1,n.chain.length>0&&r(a,n))}catch(e){u.call(new d(n),e)}}}function u(e){var t=this;t.triggered||(t.triggered=!0,t.def&&(t=t.def),t.msg=e,t.state=2,t.chain.length>0&&r(a,t))}function h(e,t,n,i){for(var o=0;o<t.length;o++)!function(o){e.resolve(t[o]).then((function(e){n(o,e)}),i)}(o)}function d(e){this.def=e,this.triggered=!1}function f(e){this.promise=e,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function p(e){if("function"!=typeof e)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var t=new f(this);this.then=function(e,n){var i={success:"function"!=typeof e||e,failure:"function"==typeof n&&n};return i.promise=new this.constructor((function(e,t){if("function"!=typeof e||"function"!=typeof t)throw TypeError("Not a function");i.resolve=e,i.reject=t})),t.chain.push(i),0!==t.state&&r(a,t),i.promise},this.catch=function(e){return this.then(void 0,e)};try{e.call(void 0,(function(e){c.call(t,e)}),(function(e){u.call(t,e)}))}catch(e){u.call(t,e)}}n=function(){var e,n,i;function o(e,t){this.fn=e,this.self=t,this.next=void 0}return{add:function(t,r){i=new o(t,r),n?n.next=i:e=i,n=i,i=void 0},drain:function(){var i=e;for(e=n=t=void 0;i;)i.fn.call(i.self),i=i.next}}}();var g=e({},"constructor",p,!1);return p.prototype=g,e(g,"__NPO__",0,!1),e(p,"resolve",(function(e){return e&&"object"==typeof e&&1===e.__NPO__?e:new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");t(e)}))})),e(p,"reject",(function(e){return new this((function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");n(e)}))})),e(p,"all",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):0===e.length?t.resolve([]):new t((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");var o=e.length,r=Array(o),s=0;h(t,e,(function(e,t){r[e]=t,++s===o&&n(r)}),i)}))})),e(p,"race",(function(e){var t=this;return"[object Array]"!=i.call(e)?t.reject(TypeError("Not an array")):new t((function(n,i){if("function"!=typeof n||"function"!=typeof i)throw TypeError("Not a function");h(t,e,(function(e,t){n(t)}),i)}))})),p},(n=hn)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])},dn(fn={exports:{}},fn.exports),fn.exports),gn=new WeakMap;function mn(e,t,n){var i=gn.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),gn.set(e.element,i)}function vn(e,t){return(gn.get(e.element)||{})[t]||[]}function yn(e,t,n){var i=gn.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],gn.set(e.element,i),!0;var o=i[t].indexOf(n);return-1!==o&&i[t].splice(o,1),gn.set(e.element,i),i[t]&&0===i[t].length}function bn(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function wn(e,t,n){if(e.element.contentWindow&&e.element.contentWindow.postMessage){var i={method:t};void 0!==n&&(i.value=n);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(i=JSON.stringify(i)),e.element.contentWindow.postMessage(i,e.origin)}}function xn(e,t){var n,i=[];if((t=bn(t)).event){if("error"===t.event)vn(e,t.data.method).forEach((function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),yn(e,t.data.method,n)}));i=vn(e,"event:".concat(t.event)),n=t.data}else if(t.method){var o=function(e,t){var n=vn(e,t);if(n.length<1)return!1;var i=n.shift();return yn(e,t,i),i}(e,t.method);o&&(i.push(o),n=t.value)}i.forEach((function(t){try{if("function"==typeof t)return void t.call(e,n);t.resolve(n)}catch(e){}}))}var Sn=["airplay","audio_tracks","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","url","vimeo_logo","volume","watch_full_video","width"];function En(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Sn.reduce((function(t,n){var i=e.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(t[n]=""===i?1:i),t}),t)}function Tn(e,t){var n=e.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var i=document.createElement("div");return i.innerHTML=n,t.appendChild(i.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return new Promise((function(i,o){if(!rn(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var r=function(e){var t=(e||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),n=(t&&t[1]||"").replace("player.","");return n.endsWith(".videoji.hk")?n:"vimeo.com"}(e),s="https://".concat(r,"/api/oembed.json?url=").concat(encodeURIComponent(e));for(var a in t)t.hasOwnProperty(a)&&(s+="&".concat(a,"=").concat(encodeURIComponent(t[a])));var l="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;l.open("GET",s,!0),l.onload=function(){if(404!==l.status)if(403!==l.status)try{var t=JSON.parse(l.responseText);if(403===t.domain_status_code)return Tn(t,n),void o(new Error("“".concat(e,"” is not embeddable.")));i(t)}catch(e){o(e)}else o(new Error("“".concat(e,"” is not embeddable.")));else o(new Error("“".concat(e,"” was not found.")))},l.onerror=function(){var e=l.status?" (".concat(l.status,")"):"";o(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},l.send()}))}var kn={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},Pn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Gt(e,t)}(r,e);var t,n,i,o=en(r);function r(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3?arguments[3]:void 0;return Vt(this,r),Ut(Qt(n=o.call(this)),"logger",void 0),Ut(Qt(n),"speedAdjustment",0),Ut(Qt(n),"adjustSpeed",function(){var e=Wt(qt().mark((function e(t,i){var o;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n.speedAdjustment!==i){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.getPlaybackRate();case 4:return e.t0=e.sent,e.t1=n.speedAdjustment,e.t2=e.t0-e.t1,e.t3=i,o=e.t2+e.t3,n.log("New playbackRate:  ".concat(o)),e.next=12,t.setPlaybackRate(o);case 12:n.speedAdjustment=i;case 13:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()),n.logger=s,n.init(t,e,_t(_t({},kn),i)),n}return Xt(r,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(i=Wt(qt().mark((function e(t,n,i){var o,r,s,a=this;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.waitForTOReadyState(t,"open");case 2:if("viewer"!==i.role){e.next=10;break}return e.next=5,this.updatePlayer(t,n,i);case 5:o=ln(t,"change",(function(){return a.updatePlayer(t,n,i)})),r=this.maintainPlaybackPosition(t,n,i),this.addEventListener("disconnect",(function(){r.cancel(),o.cancel()})),e.next=14;break;case 10:return e.next=12,this.updateTimingObject(t,n);case 12:s=ln(n,["seeked","play","pause","ratechange"],(function(){return a.updateTimingObject(t,n)}),"on","off"),this.addEventListener("disconnect",(function(){return s.cancel()}));case 14:case"end":return e.stop()}}),e,this)}))),function(e,t,n){return i.apply(this,arguments)})},{key:"updateTimingObject",value:(n=Wt(qt().mark((function e(t,n){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t,e.next=3,n.getCurrentTime();case 3:return e.t1=e.sent,e.next=6,n.getPaused();case 6:if(!e.sent){e.next=10;break}e.t2=0,e.next=13;break;case 10:return e.next=12,n.getPlaybackRate();case 12:e.t2=e.sent;case 13:e.t3=e.t2,e.t4={position:e.t1,velocity:e.t3},e.t0.update.call(e.t0,e.t4);case 16:case"end":return e.stop()}}),e)}))),function(e,t){return n.apply(this,arguments)})},{key:"updatePlayer",value:(t=Wt(qt().mark((function e(t,n,i){var o,r,s;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.query(),r=o.position,s=o.velocity,"number"==typeof r&&n.setCurrentTime(r),"number"!=typeof s){e.next=25;break}if(0!==s){e.next=11;break}return e.next=6,n.getPaused();case 6:if(e.t0=e.sent,!1!==e.t0){e.next=9;break}n.pause();case 9:e.next=25;break;case 11:if(!(s>0)){e.next=25;break}return e.next=14,n.getPaused();case 14:if(e.t1=e.sent,!0!==e.t1){e.next=19;break}return e.next=18,n.play().catch(function(){var e=Wt(qt().mark((function e(t){return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("NotAllowedError"!==t.name||!i.autoPlayMuted){e.next=5;break}return e.next=3,n.setMuted(!0);case 3:return e.next=5,n.play().catch((function(e){return console.error("Couldn't play the video from TimingSrcConnector. Error:",e)}));case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());case 18:this.updatePlayer(t,n,i);case 19:return e.next=21,n.getPlaybackRate();case 21:if(e.t2=e.sent,e.t3=s,e.t2===e.t3){e.next=25;break}n.setPlaybackRate(s);case 25:case"end":return e.stop()}}),e,this)}))),function(e,n,i){return t.apply(this,arguments)})},{key:"maintainPlaybackPosition",value:function(e,t,n){var i=this,o=n.allowedDrift,r=n.maxAllowedDrift,s=n.minCheckInterval,a=n.maxRateAdjustment,l=n.maxTimeToCatchUp,c=1e3*Math.min(l,Math.max(s,r)),u=function(){var n=Wt(qt().mark((function n(){var s,c,u,h,d;return qt().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=0===e.query().velocity,n.t0){n.next=6;break}return n.next=4,t.getPaused();case 4:n.t1=n.sent,n.t0=!0===n.t1;case 6:if(!n.t0){n.next=8;break}return n.abrupt("return");case 8:return n.t2=e.query().position,n.next=11,t.getCurrentTime();case 11:if(n.t3=n.sent,s=n.t2-n.t3,c=Math.abs(s),i.log("Drift: ".concat(s)),!(c>r)){n.next=22;break}return n.next=18,i.adjustSpeed(t,0);case 18:t.setCurrentTime(e.query().position),i.log("Resync by currentTime"),n.next=29;break;case 22:if(!(c>o)){n.next=29;break}return d=(u=c/l)<(h=a)?(h-u)/2:h,n.next=28,i.adjustSpeed(t,d*Math.sign(s));case 28:i.log("Resync by playbackRate");case 29:case"end":return n.stop()}}),n)})));return function(){return n.apply(this,arguments)}}(),h=setInterval((function(){return u()}),c);return{cancel:function(){return clearInterval(h)}}}},{key:"log",value:function(e){var t;null===(t=this.logger)||void 0===t||t.call(this,"TimingSrcConnector: ".concat(e))}},{key:"waitForTOReadyState",value:function(e,t){return new Promise((function(n){!function i(){e.readyState===t?n():e.addEventListener("readystatechange",i,{once:!0})}()}))}}]),r}(Jt(EventTarget)),On=new WeakMap,An=new WeakMap,Mn={},Ln=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Vt(this,e),window.jQuery&&t instanceof zt&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),"undefined"!=typeof document&&"string"==typeof t&&(t=document.getElementById(t)),!function(e){return Boolean(e&&1===e.nodeType&&"nodeName"in e&&e.ownerDocument&&e.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var o=t.querySelector("iframe");o&&(t=o)}if("IFRAME"===t.nodeName&&!rn(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(On.has(t))return On.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var r=new pn((function(e,o){if(n._onMessage=function(t){if(rn(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var i=bn(t.data);if(i&&"error"===i.event&&i.data&&"ready"===i.data.method){var r=new Error(i.data.message);return r.name=i.data.name,void o(r)}var s=i&&"ready"===i.event,a=i&&"ping"===i.method;if(s||a)return n.element.setAttribute("data-ready","true"),void e();xn(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var r=En(t,i);Cn(an(r),r,t).then((function(e){var i,o,r,s=Tn(e,t);return n.element=s,n._originalElement=t,i=t,o=s,r=gn.get(i),gn.set(o,r),gn.delete(i),On.set(n.element,n),e})).catch(o)}}));if(An.set(this,r),On.set(this.element,this),"IFRAME"===this.element.nodeName&&wn(this,"ping"),Mn.isEnabled){var s=function(){return Mn.exit()};this.fullscreenchangeHandler=function(){Mn.isFullscreen?mn(n,"event:exitFullscreen",s):yn(n,"event:exitFullscreen",s),n.ready().then((function(){wn(n,"fullscreenchange",Mn.isFullscreen)}))},Mn.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t;return Xt(e,[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new pn((function(i,o){return t.ready().then((function(){mn(t,e,{resolve:i,reject:o}),wn(t,e,n)})).catch(o)}))}},{key:"get",value:function(e){var t=this;return new pn((function(n,i){return e=on(e,"get"),t.ready().then((function(){mn(t,e,{resolve:n,reject:i}),wn(t,e)})).catch(i)}))}},{key:"set",value:function(e,t){var n=this;return new pn((function(i,o){if(e=on(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){mn(n,e,{resolve:i,reject:o}),wn(n,e,t)})).catch(o)}))}},{key:"on",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(!t)throw new TypeError("You must pass a callback function.");if("function"!=typeof t)throw new TypeError("The callback must be a function.");0===vn(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),mn(this,"event:".concat(e),t)}},{key:"off",value:function(e,t){if(!e)throw new TypeError("You must pass an event name.");if(t&&"function"!=typeof t)throw new TypeError("The callback must be a function.");yn(this,"event:".concat(e),t)&&this.callMethod("removeEventListener",e).catch((function(e){}))}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=An.get(this)||new pn((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return pn.resolve(e)}},{key:"addCuePoint",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.callMethod("addCuePoint",{time:e,data:t})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,t){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:t})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return Mn.isEnabled?Mn.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return Mn.isEnabled?Mn.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return Mn.isEnabled?pn.resolve(Mn.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new pn((function(t){if(An.delete(e),On.delete(e.element),e._originalElement&&(On.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var n=e.element.querySelector("iframe");n&&n.parentNode&&(n.parentNode.parentNode&&e._originalElement&&e._originalElement!==n.parentNode?n.parentNode.parentNode.removeChild(n.parentNode):n.parentNode.removeChild(n))}e._window.removeEventListener("message",e._onMessage),Mn.isEnabled&&Mn.off("fullscreenchange",e.fullscreenchangeHandler),t()}))}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return pn.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new pn((function(e,t){return t(new TypeError("Argument must be an array."))}));var t=new pn((function(e){return e(null)})),n=[e[0]?this.set("colorOne",e[0]):t,e[1]?this.set("colorTwo",e[1]):t,e[2]?this.set("colorThree",e[2]):t,e[3]?this.set("colorFour",e[3]):t];return pn.all(n)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=Wt(qt().mark((function e(t,n){var i,o=this;return qt().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return e.next=4,this.ready();case 4:return i=new Pn(this,t,n),wn(this,"notifyTimingObjectConnect"),i.addEventListener("disconnect",(function(){return wn(o,"notifyTimingObjectDisconnect")})),e.abrupt("return",i);case 8:case"end":return e.stop()}}),e,this)}))),function(e,n){return t.apply(this,arguments)})}]),e}();nn||(Mn=function(){var e=function(){for(var e,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=0,i=t.length,o={};n<i;n++)if((e=t[n])&&e[1]in document){for(n=0;n<e.length;n++)o[t[0][n]]=e[n];return o}return!1}(),t={fullscreenchange:e.fullscreenchange,fullscreenerror:e.fullscreenerror},n={request:function(t){return new Promise((function(i,o){var r=function e(){n.off("fullscreenchange",e),i()};n.on("fullscreenchange",r);var s=(t=t||document.documentElement)[e.requestFullscreen]();s instanceof Promise&&s.then(r).catch(o)}))},exit:function(){return new Promise((function(t,i){if(n.isFullscreen){var o=function e(){n.off("fullscreenchange",e),t()};n.on("fullscreenchange",o);var r=document[e.exitFullscreen]();r instanceof Promise&&r.then(o).catch(i)}else t()}))},on:function(e,n){var i=t[e];i&&document.addEventListener(i,n)},off:function(e,n){var i=t[e];i&&document.removeEventListener(i,n)}};return Object.defineProperties(n,{isFullscreen:{get:function(){return Boolean(document[e.fullscreenElement])}},element:{enumerable:!0,get:function(){return document[e.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return Boolean(document[e.fullscreenEnabled])}}}),n}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(e.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),n=function(e){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(e))};t.forEach((function(e){try{if(null!==e.getAttribute("data-vimeo-defer"))return;var t=En(e);Cn(an(t),t,e).then((function(t){return Tn(t,e)})).catch(n)}catch(e){n(e)}}))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",(function(t){if(rn(t.origin)&&t.data&&"spacechange"===t.data.event)for(var n=e.querySelectorAll("iframe"),i=0;i<n.length;i++)if(n[i].contentWindow===t.source){n[i].parentElement.style.paddingBottom="".concat(t.data.data[0].bottom,"px");break}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",(function(t){if(rn(t.origin)){var n=bn(t.data);if(n&&"ready"===n.event)for(var i=e.querySelectorAll("iframe"),o=0;o<i.length;o++){var r=i[o],s=r.contentWindow===t.source;sn(r.src)&&s&&new Ln(r).callMethod("appendVideoMetadata",window.location.href)}}})))}(),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(e){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(e))};window.addEventListener("message",(function(n){if(rn(n.origin)){var i=bn(n.data);if(i&&"ready"===i.event)for(var o=e.querySelectorAll("iframe"),r=function(){var e=o[s],i=e.contentWindow===n.source;if(sn(e.src)&&i){var r=new Ln(e);r.getVideoId().then((function(e){var t=new RegExp("[?&]vimeo_t_".concat(e,"=([^&#]*)")).exec(window.location.href);if(t&&t[1]){var n=decodeURI(t[1]);r.setCurrentTime(n)}})).catch(t)}},s=0;s<o.length;s++)r()}}))}}());var jn,Dn=Ln;n(9479)("#"+(jn="bannerVimeo")).length&&new Dn(jn,{playsinline:!0,muted:!0,loop:!0,autoplay:!0,background:!0}),Ft.bind('a[href*="vimeo.com"], a[href*="youtube.com"]',{Html:{vimeo:{hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1}}});var Nn=n(9479),Rn=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.closest(".filter, .row");e.val().length||t?n.removeClass("isEmpty"):n.addClass("isEmpty")},Fn=n(9479);!function(){Fn(".news.filters input").each((function(){Rn(Nn(this)),Nn(this).on("blur",(function(){Rn(Nn(this))})),Nn(this).on("focus",(function(){Rn(Nn(this),!0)})),Nn(this).on("keyup",(function(){Rn(Nn(this))}))}));var e=Fn(".news.list.default .filters"),t=e.find("form"),n=e.find("fieldset"),i=t.find("button.search").clone(),o=t.find(".filter.keywords"),r=Fn('<div class="keywordsSearch" />'),s=Fn('<button class="filtersTrigger" aria-expanded="false" type="button"><span>Filters</span></button>');e.append('\n\t\t<div class="activeFilters isHidden">\n\t\t\t<h4>Active filters:</h4>\n\t\t\t<div class="activeFiltersList">\n\t\t\t\t<a href="#" class="clearAll">Clear</a>\n\t\t\t</div>\n\t\t</div>\n\t');var a=!1;n.attr("aria-hidden",!1),s.text(t.find("legend").text()),t.prepend(s),r.append(o),r.append(i),t.prepend(r),a||(n.hide(),n.attr("aria-hidden",!0)),s.on("click.filters",(function(t){t.preventDefault(),a=!a,n.slideToggle(),e.toggleClass("isOpen"),a?(s.attr("aria-expanded",!0),n.attr("aria-hidden",!1)):(s.attr("aria-expanded",!1),n.attr("aria-hidden",!0))})),e.find(".filter input:checked").each((function(){var e=Fn(this),n=e.closest(".field").siblings(".label");"all"!==e.val()&&Fn(".activeFilters").removeClass("isHidden");var i=n.text().trim()||"",o=i;if("all"!==e.val()&&""!==e.val()){var r=Fn('<button class="buttonInline" data-category="'.concat(o,'">').concat(i,"</button>"));Fn(".activeFiltersList").append(r),r.on("click.filter",(function(n){n.preventDefault(),e.is("input")?e.val(""):e.val("All"),t.submit()}))}})),Fn(".activeFiltersList .clearAll").on("click.filters",(function(n){n.preventDefault(),e.find(".filter input").each((function(){Fn(this).val("all")})),t.submit()}))}();var In=n(9479);!function(){var e=In(".users.filters"),t=e.closest(".content").find(".users:not(.filters"),n=e.find("form");e.wrapInner('<div class="wrapper"></div>'),t.prepend('\n\t\t<div class="activeFilters isHidden">\n\t\t\t<div class="activeFiltersList"></div>\n\t\t</div>\n\t');var o=e.find('input[type="checkbox"]:checked').filter((function(){return"all"!==In(this).val()})).length;e.prepend('<button class="toggleUsersFilters">Filters ('.concat(o,")</button>")),e.find("> .wrapper").append('\n\t\t\t<button type="reset" class="clearAll">Clear filters</button>\n\t\t\t<button type="button" class="closeModal"><span>Close</span></button>\n\t\t'),e.find("form").append('<button type="submit" class="searchModal">Search</button>'),In(document).on("click.filters",".toggleUsersFilters",(function(){In(this).next(".wrapper").toggleClass("isVisible")})),In(document).on("click.filters",".closeModal",(function(){In(this).closest(".wrapper").removeClass("isVisible")})),e.find(".filter input:checked").each((function(){var e=In(this),t=e.closest(".field").siblings(".label");"all"!==e.val()&&In(".activeFilters").removeClass("isHidden");var i=t.text().trim()||"",o=i;if("all"!==e.val()&&""!==e.val()){var r=In('<button data-category="'.concat(o,'">').concat(i,"</button>"));In(".activeFiltersList").prepend(r),r.on("click.filter",(function(t){t.preventDefault(),e.is("input")?e.val(""):e.val("All"),n.submit()}))}})),In(".users.filters .clearAll").on("click.filters",(function(t){t.preventDefault(),e.find('.filter input[type="checkbox"]').each((function(){In(this).val("all")})),e.find('input[type="text"]').each((function(){In(this).val("")})),n.addClass("isLoading").submit()})),i()||(In(".users.filters select, .users.filters input").on("change",(function(){In(this).closest("form").addClass("isLoading").submit()})),In('.users.filters .filter.categories input[type="checkbox"][value="all"]:is(:checked)').closest(".categories").hide(),In(".users.filters .filter.categories > h3").on("click",(function(){In(this).toggleClass("isActive").next(".categories").stop().slideToggle()}))),In(".users.filters .filter.addKeywords").next("button.search").addBack().wrapAll('<div class="addKeywordsSearch" />')}();n(7667),n(6359);var zn=function(){return zn=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},zn.apply(this,arguments)},Hn=function(){function e(e,t,n){var i=this;this.endVal=t,this.options=n,this.version="2.8.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(e){i.startTime||(i.startTime=e);var t=e-i.startTime;i.remaining=i.duration-t,i.useEasing?i.countDown?i.frameVal=i.startVal-i.easingFn(t,0,i.startVal-i.endVal,i.duration):i.frameVal=i.easingFn(t,i.startVal,i.endVal-i.startVal,i.duration):i.frameVal=i.startVal+(i.endVal-i.startVal)*(t/i.duration);var n=i.countDown?i.frameVal<i.endVal:i.frameVal>i.endVal;i.frameVal=n?i.endVal:i.frameVal,i.frameVal=Number(i.frameVal.toFixed(i.options.decimalPlaces)),i.printValue(i.frameVal),t<i.duration?i.rAF=requestAnimationFrame(i.count):null!==i.finalEndVal?i.update(i.finalEndVal):i.options.onCompleteCallback&&i.options.onCompleteCallback()},this.formatNumber=function(e){var t,n,o,r,s=e<0?"-":"";t=Math.abs(e).toFixed(i.options.decimalPlaces);var a=(t+="").split(".");if(n=a[0],o=a.length>1?i.options.decimal+a[1]:"",i.options.useGrouping){r="";for(var l=3,c=0,u=0,h=n.length;u<h;++u)i.options.useIndianSeparators&&4===u&&(l=2,c=1),0!==u&&c%l==0&&(r=i.options.separator+r),c++,r=n[h-u-1]+r;n=r}return i.options.numerals&&i.options.numerals.length&&(n=n.replace(/[0-9]/g,(function(e){return i.options.numerals[+e]})),o=o.replace(/[0-9]/g,(function(e){return i.options.numerals[+e]}))),s+i.options.prefix+n+o+i.options.suffix},this.easeOutExpo=function(e,t,n,i){return n*(1-Math.pow(2,-10*e/i))*1024/1023+t},this.options=zn(zn({},this.defaults),n),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(t),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,""===this.options.separator&&(this.options.useGrouping=!1),this.el="string"==typeof e?document.getElementById(e):e,this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined","undefined"!=typeof window&&this.options.enableScrollSpy&&(this.error?console.error(this.error,e):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push((function(){return i.handleScroll(i)})),window.onscroll=function(){window.onScrollFns.forEach((function(e){return e()}))},this.handleScroll(this)))}return e.prototype.handleScroll=function(e){if(e&&window&&!e.once){var t=window.innerHeight+window.scrollY,n=e.el.getBoundingClientRect(),i=n.top+window.pageYOffset,o=n.top+n.height+window.pageYOffset;o<t&&o>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):(window.scrollY>o||i>t)&&!e.paused&&e.reset()}},e.prototype.determineDirectionAndSmartEasing=function(){var e=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>e;var t=e-this.startVal;if(Math.abs(t)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=e;var n=this.countDown?1:-1;this.endVal=e+n*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=e,this.finalEndVal=null;null!==this.finalEndVal?this.useEasing=!1:this.useEasing=this.options.useEasing},e.prototype.start=function(e){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),e&&(this.options.onCompleteCallback=e),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},e.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},e.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},e.prototype.update=function(e){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(e),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,null==this.finalEndVal&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},e.prototype.printValue=function(e){var t;if(this.el){var n=this.formattingFn(e);(null===(t=this.options.plugin)||void 0===t?void 0:t.render)?this.options.plugin.render(this.el,n):"INPUT"===this.el.tagName?this.el.value=n:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=n:this.el.innerHTML=n}},e.prototype.ensureNumber=function(e){return"number"==typeof e&&!isNaN(e)},e.prototype.validateValue=function(e){var t=Number(e);return this.ensureNumber(t)?t:(this.error="[CountUp] invalid start or end value: ".concat(e),null)},e.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},e}(),_n=n(9479);!function(){if(!(()=>{let e=!1,t=window.navigator.userAgent;return(window.matchMedia("(prefers-reduced-motion)").matches||t.indexOf("MSIE ")>0)&&(e=!0,document.documentElement.classList.add("hasReducedMotion")),e})()){var e=_n(".stat.hasAnimation");if(e.length&&!t()){e.each((function(){var e=_n(this).find(".statNumber"),t=e.text(),n=t.split(".");e.data("stat",t),e.data("decimals",0),e.text(0),n.length>1&&e.data("decimals",n[1].length)})),_n(".stat.hasAnimation .statWrap").scrollTrigger({afterReveal:function(e){n(e)}});var n=function(e){var t=e.querySelector(".statNumber"),n=t.getAttribute("data-number"),i={startVal:0,decimalPlaces:t.getAttribute("data-decimals"),duration:3.5,decimal:".",prefix:"",separator:",",useEasing:!0,useGrouping:!1},o=new Hn(t,n,i);_n(t).is(":visible")&&(o.error||o.start())}}}}()}()}();