!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)})},7895: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))}}))},9508: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()}))}))},8890: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)}))},5767: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")}}()},5834:function(e,t,n){n(6992),n(1539),n(8783),n(2165);var i=n(6061);e.exports=i.f("iterator")},9662:function(e,t,n){var i=n(614),o=n(6330),r=TypeError;e.exports=function(e){if(i(e))return e;throw r(o(e)+" is not a function")}},6077:function(e,t,n){var i=n(614),o=String,r=TypeError;e.exports=function(e){if("object"==typeof e||i(e))return e;throw r("Can't set "+o(e)+" as a prototype")}},1223:function(e,t,n){var i=n(5112),o=n(30),r=n(3070).f,s=i("unscopables"),a=Array.prototype;null==a[s]&&r(a,s,{configurable:!0,value:o(null)}),e.exports=function(e){a[s][e]=!0}},9670:function(e,t,n){var i=n(111),o=String,r=TypeError;e.exports=function(e){if(i(e))return e;throw r(o(e)+" is not an object")}},1318:function(e,t,n){var i=n(5656),o=n(1400),r=n(6244),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)}},4326:function(e,t,n){var i=n(1702),o=i({}.toString),r=i("".slice);e.exports=function(e){return r(o(e),8,-1)}},648:function(e,t,n){var i=n(1694),o=n(614),r=n(4326),s=n(5112)("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}},9920:function(e,t,n){var i=n(2597),o=n(3887),r=n(1236),s=n(3070);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))}}},8544:function(e,t,n){var i=n(7293);e.exports=!i((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},6178:function(e){e.exports=function(e,t){return{value:e,done:t}}},8880:function(e,t,n){var i=n(9781),o=n(3070),r=n(9114);e.exports=i?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},9114:function(e){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},8052:function(e,t,n){var i=n(614),o=n(3070),r=n(6339),s=n(3072);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}},3072:function(e,t,n){var i=n(7854),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}},9781:function(e,t,n){var i=n(7293);e.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},4154:function(e){var t="object"==typeof document&&document.all,n=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:n}},317:function(e,t,n){var i=n(7854),o=n(111),r=i.document,s=o(r)&&o(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},8324:function(e){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}},8509:function(e,t,n){var i=n(317)("span").classList,o=i&&i.constructor&&i.constructor.prototype;e.exports=o===Object.prototype?void 0:o},8113:function(e){e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},7392:function(e,t,n){var i,o,r=n(7854),s=n(8113),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},748:function(e){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},2109:function(e,t,n){var i=n(7854),o=n(1236).f,r=n(8880),s=n(8052),a=n(3072),l=n(9920),c=n(4705);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)}}},7293:function(e){e.exports=function(e){try{return!!e()}catch(e){return!0}}},4374:function(e,t,n){var i=n(7293);e.exports=!i((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},6916:function(e,t,n){var i=n(4374),o=Function.prototype.call;e.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},6530:function(e,t,n){var i=n(9781),o=n(2597),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}},5668:function(e,t,n){var i=n(1702),o=n(9662);e.exports=function(e,t,n){try{return i(o(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},1702:function(e,t,n){var i=n(4374),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)}}},5005:function(e,t,n){var i=n(7854),o=n(614);e.exports=function(e,t){return arguments.length<2?(n=i[e],o(n)?n:void 0):i[e]&&i[e][t];var n}},8173:function(e,t,n){var i=n(9662),o=n(8554);e.exports=function(e,t){var n=e[t];return o(n)?void 0:i(n)}},7854:function(e,t,n){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")()},2597:function(e,t,n){var i=n(1702),o=n(7908),r=i({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return r(o(e),t)}},3501:function(e){e.exports={}},490:function(e,t,n){var i=n(5005);e.exports=i("document","documentElement")},4664:function(e,t,n){var i=n(9781),o=n(7293),r=n(317);e.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},8361:function(e,t,n){var i=n(1702),o=n(7293),r=n(4326),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},2788:function(e,t,n){var i=n(1702),o=n(614),r=n(5465),s=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(e){return s(e)}),e.exports=r.inspectSource},9909:function(e,t,n){var i,o,r,s=n(4811),a=n(7854),l=n(111),c=n(8880),u=n(2597),h=n(5465),d=n(6200),f=n(3501),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 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 b=d("state");f[b]=!0,i=function(e,t){if(u(e,b))throw g(p);return t.facade=e,c(e,b,t),t},o=function(e){return u(e,b)?e[b]:{}},r=function(e){return u(e,b)}}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 g("Incompatible receiver, "+e+" required");return n}}}},614:function(e,t,n){var i=n(4154),o=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===o}:function(e){return"function"==typeof e}},4705:function(e,t,n){var i=n(7293),o=n(614),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},8554:function(e){e.exports=function(e){return null==e}},111:function(e,t,n){var i=n(614),o=n(4154),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)}},1913:function(e){e.exports=!1},2190:function(e,t,n){var i=n(5005),o=n(614),r=n(7976),s=n(3307),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))}},3061:function(e,t,n){"use strict";var i=n(3383).IteratorPrototype,o=n(30),r=n(9114),s=n(8003),a=n(7497),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}},1656:function(e,t,n){"use strict";var i=n(2109),o=n(6916),r=n(1913),s=n(6530),a=n(614),l=n(3061),c=n(9518),u=n(7674),h=n(8003),d=n(8880),f=n(8052),p=n(5112),g=n(7497),m=n(3383),v=s.PROPER,b=s.CONFIGURABLE,y=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,P){l(n,t,s);var A,O,k,M=function(e){if(e===p&&R)return R;if(!w&&e in N)return N[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",D=!1,N=e.prototype,j=N[x]||N["@@iterator"]||p&&N[p],R=!w&&j||M(p),I="Array"==t&&N.entries||j;if(I&&(A=c(I.call(new e)))!==Object.prototype&&A.next&&(r||c(A)===y||(u?u(A,y):a(A[x])||f(A,x,C)),h(A,L,!0,!0),r&&(g[L]=C)),v&&p==E&&j&&j.name!==E&&(!r&&b?d(N,"name",E):(D=!0,R=function(){return o(j,this)})),p)if(O={values:M(E),keys:m?R:M(S),entries:M(T)},P)for(k in O)(w||D||!(k in N))&&f(N,k,O[k]);else i({target:t,proto:!0,forced:w||D},O);return r&&!P||N[x]===R||f(N,x,R,{name:p}),g[t]=R,O}},3383:function(e,t,n){"use strict";var i,o,r,s=n(7293),a=n(614),l=n(111),c=n(30),u=n(9518),h=n(8052),d=n(5112),f=n(1913),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}},7497:function(e){e.exports={}},6244:function(e,t,n){var i=n(7466);e.exports=function(e){return i(e.length)}},6339:function(e,t,n){var i=n(1702),o=n(7293),r=n(614),s=n(2597),a=n(9781),l=n(6530).CONFIGURABLE,c=n(2788),u=n(9909),h=u.enforce,d=u.get,f=String,p=Object.defineProperty,g=i("".slice),m=i("".replace),v=i([].join),b=a&&!o((function(){return 8!==p((function(){}),"length",{value:8}).length})),y=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),b&&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(y,"string"==typeof t?t:"")),e};Function.prototype.toString=w((function(){return r(this)&&d(this).source||c(this)}),"toString")},4758:function(e){var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var i=+e;return(i>0?n:t)(i)}},30:function(e,t,n){var i,o=n(9670),r=n(6048),s=n(748),a=n(3501),l=n(490),c=n(317),u=n(6200),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)}},6048:function(e,t,n){var i=n(9781),o=n(3353),r=n(3070),s=n(9670),a=n(5656),l=n(1956);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}},3070:function(e,t,n){var i=n(9781),o=n(4664),r=n(3353),s=n(9670),a=n(4948),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 l("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},1236:function(e,t,n){var i=n(9781),o=n(6916),r=n(5296),s=n(9114),a=n(5656),l=n(4948),c=n(2597),u=n(4664),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])}},8006:function(e,t,n){var i=n(6324),o=n(748).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,o)}},5181:function(e,t){t.f=Object.getOwnPropertySymbols},9518:function(e,t,n){var i=n(2597),o=n(614),r=n(7908),s=n(6200),a=n(8544),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}},7976:function(e,t,n){var i=n(1702);e.exports=i({}.isPrototypeOf)},6324:function(e,t,n){var i=n(1702),o=n(2597),r=n(5656),s=n(1318).indexOf,a=n(3501),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}},1956:function(e,t,n){var i=n(6324),o=n(748);e.exports=Object.keys||function(e){return i(e,o)}},5296: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},7674:function(e,t,n){var i=n(5668),o=n(9670),r=n(6077);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)},288:function(e,t,n){"use strict";var i=n(1694),o=n(648);e.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},2140:function(e,t,n){var i=n(6916),o=n(614),r=n(111),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 s("Can't convert object to primitive value")}},3887:function(e,t,n){var i=n(5005),o=n(1702),r=n(8006),s=n(5181),a=n(9670),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}},857:function(e,t,n){var i=n(7854);e.exports=i},4488:function(e,t,n){var i=n(8554),o=TypeError;e.exports=function(e){if(i(e))throw o("Can't call method on "+e);return e}},8003:function(e,t,n){var i=n(3070).f,o=n(2597),r=n(5112)("toStringTag");e.exports=function(e,t,n){e&&!n&&(e=e.prototype),e&&!o(e,r)&&i(e,r,{configurable:!0,value:t})}},6200:function(e,t,n){var i=n(2309),o=n(9711),r=i("keys");e.exports=function(e){return r[e]||(r[e]=o(e))}},5465:function(e,t,n){var i=n(7854),o=n(3072),r="__core-js_shared__",s=i[r]||o(r,{});e.exports=s},2309:function(e,t,n){var i=n(1913),o=n(5465);(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},8710:function(e,t,n){var i=n(1702),o=n(9303),r=n(1340),s=n(4488),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)}},6293:function(e,t,n){var i=n(7392),o=n(7293),r=n(7854).String;e.exports=!!Object.getOwnPropertySymbols&&!o((function(){var e=Symbol();return!r(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},1400:function(e,t,n){var i=n(9303),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)}},5656:function(e,t,n){var i=n(8361),o=n(4488);e.exports=function(e){return i(o(e))}},9303:function(e,t,n){var i=n(4758);e.exports=function(e){var t=+e;return t!=t||0===t?0:i(t)}},7466:function(e,t,n){var i=n(9303),o=Math.min;e.exports=function(e){return e>0?o(i(e),9007199254740991):0}},7908:function(e,t,n){var i=n(4488),o=Object;e.exports=function(e){return o(i(e))}},7593:function(e,t,n){var i=n(6916),o=n(111),r=n(2190),s=n(8173),a=n(2140),l=n(5112),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 c("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},4948:function(e,t,n){var i=n(7593),o=n(2190);e.exports=function(e){var t=i(e,"string");return o(t)?t:t+""}},1694:function(e,t,n){var i={};i[n(5112)("toStringTag")]="z",e.exports="[object z]"===String(i)},1340:function(e,t,n){var i=n(648),o=String;e.exports=function(e){if("Symbol"===i(e))throw TypeError("Cannot convert a Symbol value to a string");return o(e)}},6330:function(e){var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9711:function(e,t,n){var i=n(1702),o=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++o+r,36)}},3307:function(e,t,n){var i=n(6293);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3353:function(e,t,n){var i=n(9781),o=n(7293);e.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},4811:function(e,t,n){var i=n(7854),o=n(614),r=i.WeakMap;e.exports=o(r)&&/native code/.test(String(r))},6800:function(e,t,n){var i=n(857),o=n(2597),r=n(6061),s=n(3070).f;e.exports=function(e){var t=i.Symbol||(i.Symbol={});o(t,e)||s(t,e,{value:r.f(e)})}},6061:function(e,t,n){var i=n(5112);t.f=i},5112:function(e,t,n){var i=n(7854),o=n(2309),r=n(2597),s=n(9711),a=n(6293),l=n(3307),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]}},6992:function(e,t,n){"use strict";var i=n(5656),o=n(1223),r=n(7497),s=n(9909),a=n(3070).f,l=n(1656),c=n(6178),u=n(1913),h=n(9781),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.kind,i=e.index++;return!t||i>=t.length?(e.target=void 0,c(void 0,!0)):c("keys"==n?i:"values"==n?t[i]:[i,t[i]],!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){}},1539:function(e,t,n){var i=n(1694),o=n(8052),r=n(288);i||o(Object.prototype,"toString",r,{unsafe:!0})},8783:function(e,t,n){"use strict";var i=n(8710).charAt,o=n(1340),r=n(9909),s=n(1656),a=n(6178),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))}))},2165:function(e,t,n){n(6800)("iterator")},3948:function(e,t,n){var i=n(7854),o=n(8324),r=n(8509),s=n(6992),a=n(8880),l=n(5112),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")},8970:function(e,t,n){var i=n(5834);n(3948),e.exports=i},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},b=function(e){return null!=e&&e===e.window},y=i.document,w={type:!0,src:!0,nonce:!0,noModule:!0};function x(e,t,n){var i,o,r=(n=n||y).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.6.4",T=function(e,t){return new T.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!b(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}T.fn=T.prototype={jquery:E,constructor:T,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=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:r.sort,splice:r.splice},T.extend=T.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&&(T.isPlainObject(i)||(o=Array.isArray(i)))?(n=s[t],r=o&&!Array.isArray(n)?[]:o||T.isPlainObject(n)?n:{},o=!1,s[t]=T.extend(c,r,i)):void 0!==i&&(s[t]=i));return s},T.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(C(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},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?T.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},merge:function(e,t){for(var n=+t.length,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(C(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&&(T.fn[Symbol.iterator]=r[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var P=function(e){var t,n,i,o,r,s,a,l,c,u,h,d,f,p,g,m,v,b,y,w="sizzle"+1*new Date,x=e.document,S=0,E=0,T=le(),C=le(),P=le(),A=le(),O=function(e,t){return e===t&&(h=!0),0},k={}.hasOwnProperty,M=[],L=M.pop,D=M.push,N=M.push,j=M.slice,R=function(e,t){for(var n=0,i=e.length;n<i;n++)if(e[n]===t)return n;return-1},I="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",F="[\\x20\\t\\r\\n\\f]",z="(?:\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",H="\\["+F+"*("+z+")(?:"+F+"*([*^$|!~]?=)"+F+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+F+"*\\]",q=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",_=new RegExp(F+"+","g"),W=new RegExp("^"+F+"+|((?:^|[^\\\\])(?:\\\\.)*)"+F+"+$","g"),B=new RegExp("^"+F+"*,"+F+"*"),V=new RegExp("^"+F+"*([>+~]|"+F+")"+F+"*"),$=new RegExp(F+"|>"),X=new RegExp(q),Y=new RegExp("^"+z+"$"),U={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+F+"*(even|odd|(([+-]|)(\\d*)n|)"+F+"*(?:([+-]|)"+F+"*(\\d+)|))"+F+"*\\)|)","i"),bool:new RegExp("^(?:"+I+")$","i"),needsContext:new RegExp("^"+F+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+F+"*((?:-\\d)?\\d*)"+F+"*\\)|)(?=[^-]|$)","i")},G=/HTML$/i,Z=/^(?:input|select|textarea|button)$/i,K=/^h\d$/i,J=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+F+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},ie=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,oe=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){d()},se=we((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{N.apply(M=j.call(x.childNodes),x.childNodes),M[x.childNodes.length].nodeType}catch(e){N={apply:M.length?function(e,t){D.apply(e,j.call(t))}:function(e,t){for(var n=e.length,i=0;e[n++]=t[i++];);e.length=n-1}}}function ae(e,t,i,o){var r,a,c,u,h,p,v,b=t&&t.ownerDocument,x=t?t.nodeType:9;if(i=i||[],"string"!=typeof e||!e||1!==x&&9!==x&&11!==x)return i;if(!o&&(d(t),t=t||f,g)){if(11!==x&&(h=Q.exec(e)))if(r=h[1]){if(9===x){if(!(c=t.getElementById(r)))return i;if(c.id===r)return i.push(c),i}else if(b&&(c=b.getElementById(r))&&y(t,c)&&c.id===r)return i.push(c),i}else{if(h[2])return N.apply(i,t.getElementsByTagName(e)),i;if((r=h[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(i,t.getElementsByClassName(r)),i}if(n.qsa&&!A[e+" "]&&(!m||!m.test(e))&&(1!==x||"object"!==t.nodeName.toLowerCase())){if(v=e,b=t,1===x&&($.test(e)||V.test(e))){for((b=ee.test(e)&&ve(t.parentNode)||t)===t&&n.scope||((u=t.getAttribute("id"))?u=u.replace(ie,oe):t.setAttribute("id",u=w)),a=(p=s(e)).length;a--;)p[a]=(u?"#"+u:":scope")+" "+ye(p[a]);v=p.join(",")}try{return N.apply(i,b.querySelectorAll(v)),i}catch(t){A(e,!0)}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,i,o)}function le(){var e=[];return function t(n,o){return e.push(n+" ")>i.cacheLength&&delete t[e.shift()],t[n+" "]=o}}function ce(e){return e[w]=!0,e}function ue(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var n=e.split("|"),o=n.length;o--;)i.attrHandle[n[o]]=t}function de(e,t){var n=t&&e,i=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(i)return i;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function fe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&se(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((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 ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in n=ae.support={},r=ae.isXML=function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!G.test(t||n&&n.nodeName||"HTML")},d=ae.setDocument=function(e){var t,o,s=e?e.ownerDocument||e:x;return s!=f&&9===s.nodeType&&s.documentElement?(p=(f=s).documentElement,g=!r(f),x!=f&&(o=f.defaultView)&&o.top!==o&&(o.addEventListener?o.addEventListener("unload",re,!1):o.attachEvent&&o.attachEvent("onunload",re)),n.scope=ue((function(e){return p.appendChild(e).appendChild(f.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),n.cssHas=ue((function(){try{return f.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),n.attributes=ue((function(e){return e.className="i",!e.getAttribute("className")})),n.getElementsByTagName=ue((function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length})),n.getElementsByClassName=J.test(f.getElementsByClassName),n.getById=ue((function(e){return p.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),n.getById?(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var n=t.getElementById(e);return n?[n]:[]}}):(i.filter.ID=function(e){var t=e.replace(te,ne);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},i.find.ID=function(e,t){if(void 0!==t.getElementById&&g){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[]}}),i.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,i=[],o=0,r=t.getElementsByTagName(e);if("*"===e){for(;n=r[o++];)1===n.nodeType&&i.push(n);return i}return r},i.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(n.qsa=J.test(f.querySelectorAll))&&(ue((function(e){var t;p.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+F+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\["+F+"*(?:value|"+I+")"),e.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(t=f.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\["+F+"*name"+F+"*="+F+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ue((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name"+F+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(n.matchesSelector=J.test(b=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ue((function(e){n.disconnectedMatch=b.call(e,"*"),b.call(e,"[s!='']:x"),v.push("!=",q)})),n.cssHas||m.push(":has"),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=J.test(p.compareDocumentPosition),y=t||J.test(p.contains)?function(e,t){var n=9===e.nodeType&&e.documentElement||e,i=t&&t.parentNode;return e===i||!(!i||1!==i.nodeType||!(n.contains?n.contains(i):e.compareDocumentPosition&&16&e.compareDocumentPosition(i)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return h=!0,0;var i=!e.compareDocumentPosition-!t.compareDocumentPosition;return i||(1&(i=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===i?e==f||e.ownerDocument==x&&y(x,e)?-1:t==f||t.ownerDocument==x&&y(x,t)?1:u?R(u,e)-R(u,t):0:4&i?-1:1)}:function(e,t){if(e===t)return h=!0,0;var n,i=0,o=e.parentNode,r=t.parentNode,s=[e],a=[t];if(!o||!r)return e==f?-1:t==f?1:o?-1:r?1:u?R(u,e)-R(u,t):0;if(o===r)return de(e,t);for(n=e;n=n.parentNode;)s.unshift(n);for(n=t;n=n.parentNode;)a.unshift(n);for(;s[i]===a[i];)i++;return i?de(s[i],a[i]):s[i]==x?-1:a[i]==x?1:0},f):f},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(d(e),n.matchesSelector&&g&&!A[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var i=b.call(e,t);if(i||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return i}catch(e){A(t,!0)}return ae(t,f,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=f&&d(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=f&&d(e);var o=i.attrHandle[t.toLowerCase()],r=o&&k.call(i.attrHandle,t.toLowerCase())?o(e,t,!g):void 0;return void 0!==r?r:n.attributes||!g?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},ae.escape=function(e){return(e+"").replace(ie,oe)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,i=[],o=0,r=0;if(h=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(O),h){for(;t=e[r++];)t===e[r]&&(o=i.push(r));for(;o--;)e.splice(i[o],1)}return u=null,e},o=ae.getText=function(e){var t,n="",i=0,r=e.nodeType;if(r){if(1===r||9===r||11===r){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=o(e)}else if(3===r||4===r)return e.nodeValue}else for(;t=e[i++];)n+=o(t);return n},i=ae.selectors={cacheLength:50,createPseudo:ce,match:U,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.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]&&ae.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return U.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=s(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=T[e+" "];return t||(t=new RegExp("(^|"+F+")"+e+"("+F+"|$)"))&&T(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var o=ae.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(_," ")+" ").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,g=r!==s?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),b=!l&&!a,y=!1;if(m){if(r){for(;g;){for(d=t;d=d[g];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;p=g="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(y=(f=(c=(u=(h=(d=m)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===S&&c[1])&&c[2],d=f&&m.childNodes[f];d=++f&&d&&d[g]||(y=f=0)||p.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[S,f,y];break}}else if(b&&(y=f=(c=(u=(h=(d=t)[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]||[])[0]===S&&c[1]),!1===y)for(;(d=++f&&d&&d[g]||(y=f=0)||p.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++y||(b&&((u=(h=d[w]||(d[w]={}))[d.uniqueID]||(h[d.uniqueID]={}))[e]=[S,y]),d!==t)););return(y-=o)===i||y%i==0&&y/i>=0}}},PSEUDO:function(e,t){var n,o=i.pseudos[e]||i.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return o[w]?o(t):o.length>1?(n=[e,e,"",t],i.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,n){for(var i,r=o(e,t),s=r.length;s--;)e[i=R(e,r[s])]=!(n[i]=r[s])})):function(e){return o(e,0,n)}):o}},pseudos:{not:ce((function(e){var t=[],n=[],i=a(e.replace(W,"$1"));return i[w]?ce((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:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ne),function(t){return(t.textContent||o(t)).indexOf(e)>-1}})),lang:ce((function(e){return Y.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ne).toLowerCase(),function(t){var n;do{if(n=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===p},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!i.pseudos.empty(e)},header:function(e){return K.test(e.nodeName)},input:function(e){return Z.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,n){return[n<0?n+t:n]})),even:me((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:me((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:me((function(e,t,n){for(var i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:me((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},i.pseudos.nth=i.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})i.pseudos[t]=fe(t);for(t in{submit:!0,reset:!0})i.pseudos[t]=pe(t);function be(){}function ye(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function we(e,t,n){var i=t.dir,o=t.next,r=o||i,s=n&&"parentNode"===r,a=E++;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,d=[S,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=(h=t[w]||(t[w]={}))[t.uniqueID]||(h[t.uniqueID]={}),o&&o===t.nodeName.toLowerCase())t=t[i]||t;else{if((c=u[r])&&c[0]===S&&c[1]===a)return d[2]=c[2];if(u[r]=d,d[2]=e(t,n,l))return!0}return!1}}function xe(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 Se(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 Ee(e,t,n,i,o,r){return i&&!i[w]&&(i=Ee(i)),o&&!o[w]&&(o=Ee(o,r)),ce((function(r,s,a,l){var c,u,h,d=[],f=[],p=s.length,g=r||function(e,t,n){for(var i=0,o=t.length;i<o;i++)ae(e,t[i],n);return n}(t||"*",a.nodeType?[a]:a,[]),m=!e||!r&&t?g:Se(g,d,e,a,l),v=n?o||(r?e:p||i)?[]:s:m;if(n&&n(m,v,a,l),i)for(c=Se(v,f),i(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[f[u]]=!(m[f[u]]=h));if(r){if(o||e){if(o){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(m[u]=h);o(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=o?R(r,h):d[u])>-1&&(r[c]=!(s[c]=h))}}else v=Se(v===s?v.splice(p,v.length):v),o?o(null,s,v,l):N.apply(s,v)}))}function Te(e){for(var t,n,o,r=e.length,s=i.relative[e[0].type],a=s||i.relative[" "],l=s?1:0,u=we((function(e){return e===t}),a,!0),h=we((function(e){return R(t,e)>-1}),a,!0),d=[function(e,n,i){var o=!s&&(i||n!==c)||((t=n).nodeType?u(e,n,i):h(e,n,i));return t=null,o}];l<r;l++)if(n=i.relative[e[l].type])d=[we(xe(d),n)];else{if((n=i.filter[e[l].type].apply(null,e[l].matches))[w]){for(o=++l;o<r&&!i.relative[e[o].type];o++);return Ee(l>1&&xe(d),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),n,l<o&&Te(e.slice(l,o)),o<r&&Te(e=e.slice(o)),o<r&&ye(e))}d.push(n)}return xe(d)}return be.prototype=i.filters=i.pseudos,i.setFilters=new be,s=ae.tokenize=function(e,t){var n,o,r,s,a,l,c,u=C[e+" "];if(u)return t?0:u.slice(0);for(a=e,l=[],c=i.preFilter;a;){for(s in n&&!(o=B.exec(a))||(o&&(a=a.slice(o[0].length)||a),l.push(r=[])),n=!1,(o=V.exec(a))&&(n=o.shift(),r.push({value:n,type:o[0].replace(W," ")}),a=a.slice(n.length)),i.filter)!(o=U[s].exec(a))||c[s]&&!(o=c[s](o))||(n=o.shift(),r.push({value:n,type:s,matches:o}),a=a.slice(n.length));if(!n)break}return t?a.length:a?ae.error(e):C(e,l).slice(0)},a=ae.compile=function(e,t){var n,o=[],r=[],a=P[e+" "];if(!a){for(t||(t=s(e)),n=t.length;n--;)(a=Te(t[n]))[w]?o.push(a):r.push(a);a=P(e,function(e,t){var n=t.length>0,o=e.length>0,r=function(r,s,a,l,u){var h,p,m,v=0,b="0",y=r&&[],w=[],x=c,E=r||o&&i.find.TAG("*",u),T=S+=null==x?1:Math.random()||.1,C=E.length;for(u&&(c=s==f||s||u);b!==C&&null!=(h=E[b]);b++){if(o&&h){for(p=0,s||h.ownerDocument==f||(d(h),a=!g);m=e[p++];)if(m(h,s||f,a)){l.push(h);break}u&&(S=T)}n&&((h=!m&&h)&&v--,r&&y.push(h))}if(v+=b,n&&b!==v){for(p=0;m=t[p++];)m(y,w,s,a);if(r){if(v>0)for(;b--;)y[b]||w[b]||(w[b]=L.call(l));w=Se(w)}N.apply(l,w),u&&!r&&w.length>0&&v+t.length>1&&ae.uniqueSort(l)}return u&&(S=T,c=x),y};return n?ce(r):r}(r,o)),a.selector=e}return a},l=ae.select=function(e,t,n,o){var r,l,c,u,h,d="function"==typeof e&&e,f=!o&&s(e=d.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&i.relative[l[1].type]){if(!(t=(i.find.ID(c.matches[0].replace(te,ne),t)||[])[0]))return n;d&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(r=U.needsContext.test(e)?0:l.length;r--&&(c=l[r],!i.relative[u=c.type]);)if((h=i.find[u])&&(o=h(c.matches[0].replace(te,ne),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(r,1),!(e=o.length&&ye(l)))return N.apply(n,o),n;break}}return(d||a(e,f))(o,t,!g,n,!t||ee.test(e)&&ve(t.parentNode)||t),n},n.sortStable=w.split("").sort(O).join("")===w,n.detectDuplicates=!!h,d(),n.sortDetached=ue((function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))})),ue((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),n.attributes&&ue((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),ue((function(e){return null==e.getAttribute("disabled")}))||he(I,(function(e,t,n){var i;if(!n)return!0===e[t]?t.toLowerCase():(i=e.getAttributeNode(t))&&i.specified?i.value:null})),ae}(i);T.find=P,T.expr=P.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=P.uniqueSort,T.text=P.getText,T.isXMLDoc=P.isXML,T.contains=P.contains,T.escapeSelector=P.escape;var A=function(e,t,n){for(var i=[],o=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(o&&T(e).is(n))break;i.push(e)}return i},O=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},k=T.expr.match.needsContext;function M(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return v(t)?T.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return u.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?T.find.matchesSelector(i,e)?[i]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,i=this.length,o=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<i;t++)if(T.contains(o[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)T.find(e,o[t],n);return i>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&k.test(e)?T(e):e||[],!1).length}});var N,j=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||N,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:j.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 T?t[0]:t,T.merge(this,T.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),L.test(i[1])&&T.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=y.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(T):T.makeArray(e,this)}).prototype=T.fn,N=T(y);var R=/^(?:parents|prev(?:Until|All))/,I={children:!0,contents:!0,next:!0,prev:!0};function F(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,o=this.length,r=[],s="string"!=typeof e&&T(e);if(!k.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&&T.find.matchesSelector(n,e))){r.push(n);break}return this.pushStack(r.length>1?T.uniqueSort(r):r)},index:function(e){return e?"string"==typeof e?u.call(T(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return A(e,"parentNode")},parentsUntil:function(e,t,n){return A(e,"parentNode",n)},next:function(e){return F(e,"nextSibling")},prev:function(e){return F(e,"previousSibling")},nextAll:function(e){return A(e,"nextSibling")},prevAll:function(e){return A(e,"previousSibling")},nextUntil:function(e,t,n){return A(e,"nextSibling",n)},prevUntil:function(e,t,n){return A(e,"previousSibling",n)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(M(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,i){var o=T.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(o=T.filter(i,o)),this.length>1&&(I[e]||T.uniqueSort(o),R.test(e)&&o.reverse()),this.pushStack(o)}}));var z=/[^\x20\t\r\n\f]+/g;function H(e){return e}function q(e){throw e}function _(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])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(z)||[],(function(e,n){t[n]=!0})),t}(e):T.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){T.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 T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,r,n))>-1;)r.splice(n,1),n<=a&&a--})),this},has:function(e){return e?T.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},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",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 T.Deferred((function(n){T.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,H,o),s(r,t,q,o)):(r++,c.call(i,s(r,t,H,o),s(r,t,q,o),s(r,t,H,t.notifyWith))):(n!==H&&(a=void 0,l=[i]),(o||t.resolveWith)(a,l))}},u=o?c:function(){try{c()}catch(i){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(i,u.stackTrace),e+1>=r&&(n!==q&&(a=void 0,l=[i]),t.rejectWith(a,l))}};e?u():(T.Deferred.getStackHook&&(u.stackTrace=T.Deferred.getStackHook()),i.setTimeout(u))}}return T.Deferred((function(i){t[0][3].add(s(0,i,v(o)?o:H,i.notifyWith)),t[1][3].add(s(0,i,v(e)?e:H)),t[2][3].add(s(0,i,v(n)?n:q))})).promise()},promise:function(e){return null!=e?T.extend(e,o):o}},r={};return T.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=T.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&&(_(e,r.done(s(n)).resolve,r.reject,!t),"pending"===r.state()||v(o[n]&&o[n].then)))return r.then();for(;n--;)_(o[n],s(n),r.reject);return r.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&W.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){i.setTimeout((function(){throw e}))};var B=T.Deferred();function V(){y.removeEventListener("DOMContentLoaded",V),i.removeEventListener("load",V),T.ready()}T.fn.ready=function(e){return B.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||B.resolveWith(y,[T]))}}),T.ready.then=B.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?i.setTimeout(T.ready):(y.addEventListener("DOMContentLoaded",V),i.addEventListener("load",V));var $=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)$(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(T(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},X=/^-ms-/,Y=/-([a-z])/g;function U(e,t){return t.toUpperCase()}function G(e){return e.replace(X,"ms-").replace(Y,U)}var Z=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function K(){this.expando=T.expando+K.uid++}K.uid=1,K.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Z(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[G(t)]=n;else for(i in t)o[G(i)]=t[i];return o},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][G(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(G):(t=G(t))in i?[t]:t.match(z)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||T.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&&!T.isEmptyObject(t)}};var J=new K,Q=new K,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ne(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(n)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return Q.hasData(e)||J.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return J.access(e,t,n)},_removeData:function(e,t){J.remove(e,t)}}),T.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=Q.get(r),1===r.nodeType&&!J.get(r,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=G(i.slice(5)),ne(r,i,o[i]));J.set(r,"hasDataAttrs",!0)}return o}return"object"==typeof e?this.each((function(){Q.set(this,e)})):$(this,(function(t){var n;if(r&&void 0===t)return void 0!==(n=Q.get(r,e))||void 0!==(n=ne(r,e))?n:void 0;this.each((function(){Q.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Q.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=J.get(e,t),n&&(!i||Array.isArray(n)?i=J.access(e,t,T.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),i=n.length,o=n.shift(),r=T._queueHooks(e,t);"inprogress"===o&&(o=n.shift(),i--),o&&("fx"===t&&n.unshift("inprogress"),delete r.stop,o.call(e,(function(){T.dequeue(e,t)}),r)),!i&&r&&r.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return J.get(e,n)||J.access(e,n,{empty:T.Callbacks("once memory").add((function(){J.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,o=T.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=J.get(r[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(a));return a(),o.promise(t)}});var ie=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,oe=new RegExp("^(?:([+-])=|)("+ie+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],se=y.documentElement,ae=function(e){return T.contains(e.ownerDocument,e)},le={composed:!0};se.getRootNode&&(ae=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===T.css(e,"display")};function ue(e,t,n,i){var o,r,s=20,a=i?function(){return i.cur()}:function(){return T.css(e,t,"")},l=a(),c=n&&n[3]||(T.cssNumber[t]?"":"px"),u=e.nodeType&&(T.cssNumber[t]||"px"!==c&&+l)&&oe.exec(T.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)T.style(e,t,u+c),(1-r)*(1-(r=a()/l||.5))<=0&&(s=0),u/=r;u*=2,T.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 he={};function de(e){var t,n=e.ownerDocument,i=e.nodeName,o=he[i];return o||(t=n.body.appendChild(n.createElement(i)),o=T.css(t,"display"),t.parentNode.removeChild(t),"none"===o&&(o="block"),he[i]=o,o)}function fe(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]=J.get(i,"display")||null,o[r]||(i.style.display="")),""===i.style.display&&ce(i)&&(o[r]=de(i))):"none"!==n&&(o[r]="none",J.set(i,"display",n)));for(r=0;r<s;r++)null!=o[r]&&(e[r].style.display=o[r]);return e}T.fn.extend({show:function(){return fe(this,!0)},hide:function(){return fe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?T(this).show():T(this).hide()}))}});var pe,ge,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,be=/^$|^module$|\/(?:java|ecma)script/i;pe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),pe.appendChild(ge),m.checkClone=pe.cloneNode(!0).cloneNode(!0).lastChild.checked,pe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!pe.cloneNode(!0).lastChild.defaultValue,pe.innerHTML="<option></option>",m.option=!!pe.lastChild;var ye={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 we(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&M(e,t)?T.merge([e],n):n}function xe(e,t){for(var n=0,i=e.length;n<i;n++)J.set(e[n],"globalEval",!t||J.get(t[n],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var Se=/<|&#?\w+;/;function Ee(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))T.merge(d,r.nodeType?[r]:r);else if(Se.test(r)){for(s=s||h.appendChild(t.createElement("div")),a=(ve.exec(r)||["",""])[1].toLowerCase(),l=ye[a]||ye._default,s.innerHTML=l[1]+T.htmlPrefilter(r)+l[2],u=l[0];u--;)s=s.lastChild;T.merge(d,s.childNodes),(s=h.firstChild).textContent=""}else d.push(t.createTextNode(r));for(h.textContent="",f=0;r=d[f++];)if(i&&T.inArray(r,i)>-1)o&&o.push(r);else if(c=ae(r),s=we(h.appendChild(r),"script"),c&&xe(s),n)for(u=0;r=s[u++];)be.test(r.type||"")&&n.push(r);return h}var Te=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function Pe(){return!1}function Ae(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Oe(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)Oe(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=Pe;else if(!o)return e;return 1===r&&(s=o,o=function(e){return T().off(e),s.apply(this,arguments)},o.guid=s.guid||(s.guid=T.guid++)),e.each((function(){T.event.add(this,t,o,i,n)}))}function ke(e,t,n){n?(J.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var i,o,r=J.get(this,t);if(1&e.isTrigger&&this[t]){if(r.length)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),J.set(this,t,r),i=n(this,t),this[t](),r!==(o=J.get(this,t))||i?J.set(this,t,!1):o={},r!==o)return e.stopImmediatePropagation(),e.preventDefault(),o&&o.value}else r.length&&(J.set(this,t,{value:T.event.trigger(T.extend(r[0],T.Event.prototype),r.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===J.get(e,t)&&T.event.add(e,t,Ce)}T.event={global:{},add:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=J.get(e);if(Z(e))for(n.handler&&(n=(r=n).handler,o=r.selector),o&&T.find.matchesSelector(se,o),n.guid||(n.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(z)||[""]).length;c--;)f=g=(a=Te.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f&&(h=T.event.special[f]||{},f=(o?h.delegateType:h.bindType)||f,h=T.event.special[f]||{},u=T.extend({type:f,origType:g,data:i,handler:n,guid:n.guid,selector:o,needsContext:o&&T.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),T.event.global[f]=!0)},remove:function(e,t,n,i,o){var r,s,a,l,c,u,h,d,f,p,g,m=J.hasData(e)&&J.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(z)||[""]).length;c--;)if(f=g=(a=Te.exec(t[c])||[])[1],p=(a[2]||"").split(".").sort(),f){for(h=T.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)||T.removeEvent(e,f,m.handle),delete l[f])}else for(f in l)T.event.remove(e,f+t[c],n,i,!0);T.isEmptyObject(l)&&J.remove(e,"handle events")}},dispatch:function(e){var t,n,i,o,r,s,a=new Array(arguments.length),l=T.event.fix(e),c=(J.get(this,"events")||Object.create(null))[l.type]||[],u=T.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=T.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=((T.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?T(o,this).index(c)>-1:T.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(T.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[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&M(t,"input")&&ke(t,"click",Ce),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&M(t,"input")&&ke(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&M(t,"input")&&J.get(t,"click")||M(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:Pe,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:Pe,isPropagationStopped:Pe,isImmediatePropagationStopped:Pe,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){T.event.special[e]={setup:function(){return ke(this,e,Ae),!1},trigger:function(){return ke(this,e),!0},_default:function(t){return J.get(t.target,e)},delegateType:t}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=e.relatedTarget,o=e.handleObj;return i&&(i===this||T.contains(this,i))||(e.type=o.origType,n=o.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,i){return Oe(this,e,t,n,i)},one:function(e,t,n,i){return Oe(this,e,t,n,i,1)},off:function(e,t,n){var i,o;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,T(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=Pe),this.each((function(){T.event.remove(this,e,n,t)}))}});var Me=/<script|<style|<link/i,Le=/checked\s*(?:[^=]|=\s*.checked.)/i,De=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Ne(e,t){return M(e,"table")&&M(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Re(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Ie(e,t){var n,i,o,r,s,a;if(1===t.nodeType){if(J.hasData(e)&&(a=J.get(e).events))for(o in J.remove(t,"handle events"),a)for(n=0,i=a[o].length;n<i;n++)T.event.add(t,o,a[o][n]);Q.hasData(e)&&(r=Q.access(e),s=T.extend({},r),Q.set(t,s))}}function Fe(e,t){var n=t.nodeName.toLowerCase();"input"===n&&me.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(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&&Le.test(p))return e.each((function(o){var r=e.eq(o);g&&(t[0]=p.call(this,o,r.html())),ze(r,t,n,i)}));if(d&&(r=(o=Ee(t,e[0].ownerDocument,!1,e,i)).firstChild,1===o.childNodes.length&&(o=r),r||i)){for(a=(s=T.map(we(o,"script"),je)).length;h<d;h++)c=o,h!==f&&(c=T.clone(c,!0,!0),a&&T.merge(s,we(c,"script"))),n.call(e[h],c,h);if(a)for(u=s[s.length-1].ownerDocument,T.map(s,Re),h=0;h<a;h++)c=s[h],be.test(c.type||"")&&!J.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):x(c.textContent.replace(De,""),c,u))}return e}function He(e,t,n){for(var i,o=t?T.filter(t,e):e,r=0;null!=(i=o[r]);r++)n||1!==i.nodeType||T.cleanData(we(i)),i.parentNode&&(n&&ae(i)&&xe(we(i,"script")),i.parentNode.removeChild(i));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,o,r,s,a=e.cloneNode(!0),l=ae(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(s=we(a),i=0,o=(r=we(e)).length;i<o;i++)Fe(r[i],s[i]);if(t)if(n)for(r=r||we(e),s=s||we(a),i=0,o=r.length;i<o;i++)Ie(r[i],s[i]);else Ie(e,a);return(s=we(a,"script")).length>0&&xe(s,!l&&we(e,"script")),a},cleanData:function(e){for(var t,n,i,o=T.event.special,r=0;void 0!==(n=e[r]);r++)if(Z(n)){if(t=n[J.expando]){if(t.events)for(i in t.events)o[i]?T.event.remove(n,i):T.removeEvent(n,i,t.handle);n[J.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),T.fn.extend({detach:function(e){return He(this,e,!0)},remove:function(e){return He(this,e)},text:function(e){return $(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ne(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ne(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(we(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return $(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&&!Me.test(e)&&!ye[(ve.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(we(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(we(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,i=[],o=T(e),r=o.length-1,s=0;s<=r;s++)n=s===r?this:this.clone(!0),T(o[s])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var qe=new RegExp("^("+ie+")(?!px)[a-z%]+$","i"),_e=/^--/,We=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Be=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},Ve=new RegExp(re.join("|"),"i"),$e="[\\x20\\t\\r\\n\\f]",Xe=new RegExp("^"+$e+"+|((?:^|[^\\\\])(?:\\\\.)*)"+$e+"+$","g");function Ye(e,t,n){var i,o,r,s,a=_e.test(t),l=e.style;return(n=n||We(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(Xe,"$1")||void 0),""!==s||ae(e)||(s=T.style(e,t)),!m.pixelBoxStyles()&&qe.test(s)&&Ve.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 Ue(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%",se.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),se.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,o,r,s,a,l,c=y.createElement("div"),u=y.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(m,{boxSizingReliable:function(){return e(),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=y.createElement("table"),t=y.createElement("tr"),n=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",se.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,se.removeChild(e)),a}}))}();var Ge=["Webkit","Moz","ms"],Ze=y.createElement("div").style,Ke={};function Je(e){var t=T.cssProps[e]||Ke[e];return t||(e in Ze?e:Ke[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=Ge.length;n--;)if((e=Ge[n]+t)in Ze)return e}(e)||e)}var Qe=/^(none|table(?!-c[ea]).+)/,et={position:"absolute",visibility:"hidden",display:"block"},tt={letterSpacing:"0",fontWeight:"400"};function nt(e,t,n){var i=oe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function it(e,t,n,i,o,r){var s="width"===t?1:0,a=0,l=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(l+=T.css(e,n+re[s],!0,o)),i?("content"===n&&(l-=T.css(e,"padding"+re[s],!0,o)),"margin"!==n&&(l-=T.css(e,"border"+re[s]+"Width",!0,o))):(l+=T.css(e,"padding"+re[s],!0,o),"padding"!==n?l+=T.css(e,"border"+re[s]+"Width",!0,o):a+=T.css(e,"border"+re[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}function ot(e,t,n){var i=We(e),o=(!m.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,i),r=o,s=Ye(e,t,i),a="offset"+t[0].toUpperCase()+t.slice(1);if(qe.test(s)){if(!n)return s;s="auto"}return(!m.boxSizingReliable()&&o||!m.reliableTrDimensions()&&M(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,i))&&e.getClientRects().length&&(o="border-box"===T.css(e,"boxSizing",!1,i),(r=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+it(e,t,n||(o?"border":"content"),r,i,s)+"px"}function rt(e,t,n,i,o){return new rt.prototype.init(e,t,n,i,o)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ye(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var o,r,s,a=G(t),l=_e.test(t),c=e.style;if(l||(t=Je(a)),s=T.cssHooks[t]||T.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=oe.exec(n))&&o[1]&&(n=ue(e,t,o),r="number"),null!=n&&n==n&&("number"!==r||l||(n+=o&&o[3]||(T.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=G(t);return _e.test(t)||(t=Je(a)),(s=T.cssHooks[t]||T.cssHooks[a])&&"get"in s&&(o=s.get(e,!0,n)),void 0===o&&(o=Ye(e,t,i)),"normal"===o&&t in tt&&(o=tt[t]),""===n||n?(r=parseFloat(o),!0===n||isFinite(r)?r||0:o):o}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,i){if(n)return!Qe.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ot(e,t,i):Be(e,et,(function(){return ot(e,t,i)}))},set:function(e,n,i){var o,r=We(e),s=!m.scrollboxSize()&&"absolute"===r.position,a=(s||i)&&"border-box"===T.css(e,"boxSizing",!1,r),l=i?it(e,t,i,a,r):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(r[t])-it(e,t,"border",!1,r)-.5)),l&&(o=oe.exec(n))&&"px"!==(o[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),nt(0,n,l)}}})),T.cssHooks.marginLeft=Ue(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ye(e,"marginLeft"))||e.getBoundingClientRect().left-Be(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var i=0,o={},r="string"==typeof n?n.split(" "):[n];i<4;i++)o[e+re[i]+t]=r[i]||r[i-2]||r[0];return o}},"margin"!==e&&(T.cssHooks[e+t].set=nt)})),T.fn.extend({css:function(e,t){return $(this,(function(e,t,n){var i,o,r={},s=0;if(Array.isArray(t)){for(i=We(e),o=t.length;s<o;s++)r[t[s]]=T.css(e,t[s],!1,i);return r}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=rt,rt.prototype={constructor:rt,init:function(e,t,n,i,o,r){this.elem=e,this.prop=n,this.easing=o||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=r||(T.cssNumber[n]?"":"px")},cur:function(){var e=rt.propHooks[this.prop];return e&&e.get?e.get(this):rt.propHooks._default.get(this)},run:function(e){var t,n=rt.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):rt.propHooks._default.set(this),this}},rt.prototype.init.prototype=rt.prototype,rt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[Je(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},rt.propHooks.scrollTop=rt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=rt.prototype.init,T.fx.step={};var st,at,lt=/^(?:toggle|show|hide)$/,ct=/queueHooks$/;function ut(){at&&(!1===y.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(ut):i.setTimeout(ut,T.fx.interval),T.fx.tick())}function ht(){return i.setTimeout((function(){st=void 0})),st=Date.now()}function dt(e,t){var n,i=0,o={height:e};for(t=t?1:0;i<4;i+=2-t)o["margin"+(n=re[i])]=o["padding"+n]=e;return t&&(o.opacity=o.width=e),o}function ft(e,t,n){for(var i,o=(pt.tweeners[t]||[]).concat(pt.tweeners["*"]),r=0,s=o.length;r<s;r++)if(i=o[r].call(n,t,e))return i}function pt(e,t,n){var i,o,r=0,s=pt.prefilters.length,a=T.Deferred().always((function(){delete l.elem})),l=function(){if(o)return!1;for(var t=st||ht(),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:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:st||ht(),duration:n.duration,tweens:[],createTween:function(t,n){var i=T.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=G(n)],r=e[n],Array.isArray(r)&&(o=r[1],r=e[n]=r[0]),n!==i&&(e[i]=r,delete e[n]),(s=T.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=pt.prefilters[r].call(c,e,u,c.opts))return v(i.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return T.map(u,ft,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),T.fx.timer(T.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(pt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return ue(n.elem,e,oe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(z);for(var n,i=0,o=e.length;i<o;i++)n=e[i],pt.tweeners[n]=pt.tweeners[n]||[],pt.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&&ce(e),m=J.get(e,"fxshow");for(i in n.queue||(null==(s=T._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--,T.queue(e,"fx").length||s.empty.fire()}))}))),t)if(o=t[i],lt.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]||T.style(e,i)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(f))for(i in h&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=J.get(e,"display")),"none"===(u=T.css(e,"display"))&&(c?u=c:(fe([e],!0),c=e.style.display||c,u=T.css(e,"display"),fe([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.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=J.access(e,"fxshow",{display:c}),r&&(m.hidden=!g),g&&fe([e],!0),d.done((function(){for(i in g||fe([e]),J.remove(e,"fxshow"),f)T.style(e,i,f[i])}))),l=ft(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?pt.prefilters.unshift(e):pt.prefilters.push(e)}}),T.speed=function(e,t,n){var i=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in T.fx.speeds?i.duration=T.fx.speeds[i.duration]:i.duration=T.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&&T.dequeue(this,i.queue)},i},T.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var o=T.isEmptyObject(e),r=T.speed(t,n,i),s=function(){var t=pt(this,T.extend({},e),r);(o||J.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=T.timers,s=J.get(this);if(o)s[o]&&s[o].stop&&i(s[o]);else for(o in s)s[o]&&s[o].stop&&ct.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||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=J.get(this),i=n[e+"queue"],o=n[e+"queueHooks"],r=T.timers,s=i?i.length:0;for(n.finish=!0,T.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}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,i,o){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(dt(t,!0),e,i,o)}})),T.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(st=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),st=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){at||(at=!0,ut())},T.fx.stop=function(){at=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var o=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(o)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var gt,mt=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return $(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return void 0===e.getAttribute?T.prop(e,t,n):(1===r&&T.isXMLDoc(e)||(o=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?gt:void 0)),void 0!==n?null===n?void T.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=T.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&M(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(z);if(o&&1===e.nodeType)for(;n=o[i++];)e.removeAttribute(n)}}),gt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=mt[t]||T.find.attr;mt[t]=function(e,t,i){var o,r,s=t.toLowerCase();return i||(r=mt[s],mt[s]=o,o=null!=n(e,t,i)?s:null,mt[s]=r),o}}));var vt=/^(?:input|select|textarea|button)$/i,bt=/^(?:a|area)$/i;function yt(e){return(e.match(z)||[]).join(" ")}function wt(e){return e.getAttribute&&e.getAttribute("class")||""}function xt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(z)||[]}T.fn.extend({prop:function(e,t){return $(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var i,o,r=e.nodeType;if(3!==r&&8!==r&&2!==r)return 1===r&&T.isXMLDoc(e)||(t=T.propFix[t]||t,o=T.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=T.find.attr(e,"tabindex");return t?parseInt(t,10):vt.test(e.nodeName)||bt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,i,o,r,s;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,wt(this)))})):(t=xt(e)).length?this.each((function(){if(i=wt(this),n=1===this.nodeType&&" "+yt(i)+" "){for(r=0;r<t.length;r++)o=t[r],n.indexOf(" "+o+" ")<0&&(n+=o+" ");s=yt(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){T(this).removeClass(e.call(this,t,wt(this)))})):arguments.length?(t=xt(e)).length?this.each((function(){if(i=wt(this),n=1===this.nodeType&&" "+yt(i)+" "){for(r=0;r<t.length;r++)for(o=t[r];n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s=yt(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){T(this).toggleClass(e.call(this,n,wt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=xt(e),this.each((function(){if(a)for(r=T(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=wt(this))&&J.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":J.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+yt(wt(n))+" ").indexOf(t)>-1)return!0;return!1}});var St=/\r/g;T.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,T(this).val()):e)?o="":"number"==typeof o?o+="":Array.isArray(o)&&(o=T.map(o,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,o,"value")||(this.value=o))}))):o?(t=T.valHooks[o.type]||T.valHooks[o.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(o,"value"))?n:"string"==typeof(n=o.value)?n.replace(St,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:yt(T.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||!M(n.parentNode,"optgroup"))){if(t=T(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,i,o=e.options,r=T.makeArray(t),s=o.length;s--;)((i=o[s]).selected=T.inArray(T.valHooks.option.get(i),r)>-1)&&(n=!0);return n||(e.selectedIndex=-1),r}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},m.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in i;var Et=/^(?:focusinfocus|focusoutblur)$/,Tt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,o){var r,s,a,l,c,u,h,d,p=[n||y],g=f.call(e,"type")?e.type:e,m=f.call(e,"namespace")?e.namespace.split("."):[];if(s=d=a=n=n||y,3!==n.nodeType&&8!==n.nodeType&&!Et.test(g+T.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[T.expando]?e:new T.Event(g,"object"==typeof e&&e)).isTrigger=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]:T.makeArray(t,[e]),h=T.event.special[g]||{},o||!h.trigger||!1!==h.trigger.apply(n,t))){if(!o&&!h.noBubble&&!b(n)){for(l=h.delegateType||g,Et.test(l+g)||(s=s.parentNode);s;s=s.parentNode)p.push(s),a=s;a===(n.ownerDocument||y)&&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=(J.get(s,"events")||Object.create(null))[e.type]&&J.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&Z(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)||!Z(n)||c&&v(n[g])&&!b(n)&&((a=n[c])&&(n[c]=null),T.event.triggered=g,e.isPropagationStopped()&&d.addEventListener(g,Tt),n[g](),e.isPropagationStopped()&&d.removeEventListener(g,Tt),T.event.triggered=void 0,a&&(n[c]=a)),e.result}},simulate:function(e,t,n){var i=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(i,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}}),m.focusin||T.each({focus:"focusin",blur:"focusout"},(function(e,t){var n=function(e){T.event.simulate(t,e.target,T.event.fix(e))};T.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t);o||i.addEventListener(e,n,!0),J.access(i,t,(o||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,o=J.access(i,t)-1;o?J.access(i,t,o):(i.removeEventListener(e,n,!0),J.remove(i,t))}}}));var Ct=i.location,Pt={guid:Date.now()},At=/\?/;T.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||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/\[\]$/,kt=/\r?\n/g,Mt=/^(?:submit|button|image|reset|file)$/i,Lt=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,n,i){var o;if(Array.isArray(t))T.each(t,(function(t,o){n||Ot.test(e)?i(e,o):Dt(e+"["+("object"==typeof o&&null!=o?t:"")+"]",o,n,i)}));else if(n||"object"!==S(t))i(e,t);else for(o in t)Dt(e+"["+o+"]",t[o],n,i)}T.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&&!T.isPlainObject(e))T.each(e,(function(){o(this.name,this.value)}));else for(n in e)Dt(n,e[n],t,o);return i.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Lt.test(this.nodeName)&&!Mt.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(kt,"\r\n")}})):{name:t.name,value:n.replace(kt,"\r\n")}})).get()}});var Nt=/%20/g,jt=/#.*$/,Rt=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ft=/^(?:GET|HEAD)$/,zt=/^\/\//,Ht={},qt={},_t="*/".concat("*"),Wt=y.createElement("a");function Bt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,o=0,r=t.toLowerCase().match(z)||[];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 Vt(e,t,n,i){var o={},r=e===qt;function s(a){var l;return o[a]=!0,T.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 $t(e,t){var n,i,o=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((o[n]?e:i||(i={}))[n]=t[n]);return i&&T.extend(!0,e,i),e}Wt.href=Ct.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Ct.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Ct.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":_t,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?$t($t(e,T.ajaxSettings),t):$t(T.ajaxSettings,e)},ajaxPrefilter:Bt(Ht),ajaxTransport:Bt(qt),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=T.ajaxSetup({},t),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?T(p):T.event,m=T.Deferred(),v=T.Callbacks("once memory"),b=f.statusCode||{},w={},x={},S="canceled",E={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=It.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)b[t]=[b[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),C(0,t),this}};if(m.promise(E),f.url=((e||f.url||Ct.href)+"").replace(zt,Ct.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(z)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Wt.protocol+"//"+Wt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Vt(Ht,f,t,E),c)return E;for(h in(u=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ft.test(f.type),o=f.url.replace(jt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(d=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(At.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Rt,"$1"),d=(At.test(o)?"&":"?")+"_="+Pt.guid+++d),f.url=o+d),f.ifModified&&(T.lastModified[o]&&E.setRequestHeader("If-Modified-Since",T.lastModified[o]),T.etag[o]&&E.setRequestHeader("If-None-Match",T.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]?", "+_t+"; 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=Vt(qt,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,C)}catch(e){if(c)throw e;C(-1,e)}}else C(-1,"No Transport");function C(e,t,s,l){var h,d,y,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&&T.inArray("script",f.dataTypes)>-1&&T.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"))&&(T.lastModified[o]=x),(x=E.getResponseHeader("etag"))&&(T.etag[o]=x)),204===e||"HEAD"===f.type?S="nocontent":304===e?S="notmodified":(S=w.state,d=w.data,h=!(y=w.error))):(y=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,y]),E.statusCode(b),b=void 0,u&&g.trigger(h?"ajaxSuccess":"ajaxError",[E,f,h?d:y]),v.fireWith(p,[E,S]),u&&(g.trigger("ajaxComplete",[E,f]),--T.active||T.event.trigger("ajaxStop")))}return E},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,i,o){return v(n)&&(o=o||i,i=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:o,data:n,success:i},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Xt={0:200,1223:204},Yt=T.ajaxSettings.xhr();m.cors=!!Yt&&"withCredentials"in Yt,m.ajax=Yt=!!Yt,T.ajaxTransport((function(e){var t,n;if(m.cors||Yt&&!e.crossDomain)return{send:function(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(Xt[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()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,o){t=T("<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)}),y.head.appendChild(t[0])},abort:function(){n&&n()}}}));var Ut,Gt=[],Zt=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Gt.pop()||T.expando+"_"+Pt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var o,r,s,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.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(Zt,"$1"+o):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+o),e.converters["script json"]=function(){return s||T.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?T(i).removeProp(o):i[o]=r,e[o]&&(e.jsonpCallback=t.jsonpCallback,Gt.push(o)),s&&v(r)&&r(s[0]),s=r=void 0})),"script"})),m.createHTMLDocument=((Ut=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(m.createHTMLDocument?((i=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(i)):t=y),r=!n&&[],(o=L.exec(e))?[t.createElement(o[1])]:(o=Ee([e],t,r),r&&r.length&&T(r).remove(),T.merge([],o.childNodes)));var i,o,r},T.fn.load=function(e,t,n){var i,o,r,s=this,a=e.indexOf(" ");return a>-1&&(i=yt(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(o="POST"),s.length>0&&T.ajax({url:e,type:o||"GET",dataType:"html",data:t}).done((function(e){r=arguments,s.html(i?T("<div>").append(T.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,r||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var i,o,r,s,a,l,c=T.css(e,"position"),u=T(e),h={};"static"===c&&(e.style.position="relative"),a=u.offset(),r=T.css(e,"top"),l=T.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,T.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)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,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"===T.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"===T.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((o=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),o.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-o.top-T.css(i,"marginTop",!0),left:t.left-o.left-T.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||se}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(i){return $(this,(function(e,i,o){var r;if(b(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)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=Ue(m.pixelPosition,(function(e,n){if(n)return n=Ye(e,t),qe.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){T.fn[i]=function(o,r){var s=arguments.length&&(n||"boolean"!=typeof o),a=n||(!0===o||!0===r?"margin":"border");return $(this,(function(t,n,o){var r;return b(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?T.css(t,n,a):T.style(t,n,o,a)}),t,s?o:void 0,s)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,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.mouseenter(e).mouseleave(t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.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||T.guid++,o},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=M,T.isFunction=v,T.isWindow=b,T.camelCase=G,T.type=S,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(Kt,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var Jt=i.jQuery,Qt=i.$;return T.noConflict=function(e){return i.$===T&&(i.$=Qt),e&&i.jQuery===T&&(i.jQuery=Jt),T},void 0===o&&(i.jQuery=i.$=T),T}))}},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(8970),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},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.setAttribute("aria-selected","false"),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");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.setAttribute("aria-hidden","false")}}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){const t=this.navWrapperEl.querySelector(this.options.searchSelector);if(this.navWrapperEl)if(this.isMobileView){this.navWrapperEl.appendChild(t);for(let e of this.navs)this.navWrapperEl.appendChild(e)}else if(e){for(const e of this.upperNavChildren)this.upperNav.appendChild(e);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(7895),n(9508);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(8890);var f=n(9479);function p(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,i.key,i)}}var g=void 0!==n.g&&"[object global]"==={}.toString.call(n.g);function m(e,t){return 0===e.indexOf(t.toLowerCase())?e:"".concat(t.toLowerCase()).concat(e.substr(0,1).toUpperCase()).concat(e.substr(1))}function v(e){return/^(https?:)?\/\/((player|www)\.)?vimeo\.com(?=$|\/)/.test(e)}function b(e){return/^https:\/\/player\.vimeo\.com\/video\/\d+/.test(e)}function y(){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(v(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 w=void 0!==Array.prototype.indexOf,x="undefined"!=typeof window&&void 0!==window.postMessage;if(!(g||w&&x))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var S="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:S);var E,T,C=(E=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=S)[t="Promise"]=n[t]||i(),e.exports&&(e.exports=n[t])},E(T={exports:{}},T.exports),T.exports),P=new WeakMap;function A(e,t,n){var i=P.get(e.element)||{};t in i||(i[t]=[]),i[t].push(n),P.set(e.element,i)}function O(e,t){return(P.get(e.element)||{})[t]||[]}function k(e,t,n){var i=P.get(e.element)||{};if(!i[t])return!0;if(!n)return i[t]=[],P.set(e.element,i),!0;var o=i[t].indexOf(n);return-1!==o&&i[t].splice(o,1),P.set(e.element,i),i[t]&&0===i[t].length}function M(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(e){return console.warn(e),{}}return e}function L(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 D(e,t){var n,i=[];if((t=M(t)).event){if("error"===t.event)O(e,t.data.method).forEach((function(n){var i=new Error(t.data.message);i.name=t.data.name,n.reject(i),k(e,t.data.method,n)}));i=O(e,"event:".concat(t.event)),n=t.data}else if(t.method){var o=function(e,t){var n=O(e,t);if(n.length<1)return!1;var i=n.shift();return k(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 N=["autopause","autoplay","background","byline","color","controls","dnt","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","playsinline","portrait","responsive","speed","texttrack","title","transparent","url","width"];function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return N.reduce((function(t,n){var i=e.getAttribute("data-vimeo-".concat(n));return(i||""===i)&&(t[n]=""===i?1:i),t}),t)}function R(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 I(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(!v(e))throw new TypeError("“".concat(e,"” is not a vimeo.com url."));var r="https://vimeo.com/api/oembed.json?url=".concat(encodeURIComponent(e));for(var s in t)t.hasOwnProperty(s)&&(r+="&".concat(s,"=").concat(encodeURIComponent(t[s])));var a="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;a.open("GET",r,!0),a.onload=function(){if(404!==a.status)if(403!==a.status)try{var t=JSON.parse(a.responseText);if(403===t.domain_status_code)return R(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.")))},a.onerror=function(){var e=a.status?" (".concat(a.status,")"):"";o(new Error("There was an error fetching the embed code from Vimeo".concat(e,".")))},a.send()}))}var F=new WeakMap,z=new WeakMap,H={},q=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),window.jQuery&&t instanceof f&&(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&&!v(t.getAttribute("src")||""))throw new Error("The player element passed isn’t a Vimeo embed.");if(F.has(t))return F.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var r=new C((function(e,o){if(n._onMessage=function(t){if(v(t.origin)&&n.element.contentWindow===t.source){"*"===n.origin&&(n.origin=t.origin);var i=M(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();D(n,i)}},n._window.addEventListener("message",n._onMessage),"IFRAME"!==n.element.nodeName){var r=j(t,i);I(y(r),r,t).then((function(e){var i,o,r,s=R(e,t);return n.element=s,n._originalElement=t,i=t,o=s,r=P.get(i),P.set(o,r),P.delete(i),F.set(n.element,n),e})).catch(o)}}));if(z.set(this,r),F.set(this.element,this),"IFRAME"===this.element.nodeName&&L(this,"ping"),H.isEnabled){var s=function(){return H.exit()};this.fullscreenchangeHandler=function(){H.isFullscreen?A(n,"event:exitFullscreen",s):k(n,"event:exitFullscreen",s),n.ready().then((function(){L(n,"fullscreenchange",H.isFullscreen)}))},H.on("fullscreenchange",this.fullscreenchangeHandler)}return this}var t,n,i;return t=e,n=[{key:"callMethod",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new C((function(i,o){return t.ready().then((function(){A(t,e,{resolve:i,reject:o}),L(t,e,n)})).catch(o)}))}},{key:"get",value:function(e){var t=this;return new C((function(n,i){return e=m(e,"get"),t.ready().then((function(){A(t,e,{resolve:n,reject:i}),L(t,e)})).catch(i)}))}},{key:"set",value:function(e,t){var n=this;return new C((function(i,o){if(e=m(e,"set"),null==t)throw new TypeError("There must be a value to set.");return n.ready().then((function(){A(n,e,{resolve:i,reject:o}),L(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===O(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch((function(){})),A(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.");k(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=z.get(this)||new C((function(e,t){t(new Error("Unknown player. Probably unloaded."))}));return C.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 H.isEnabled?H.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return H.isEnabled?H.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return H.isEnabled?C.resolve(H.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 C((function(t){if(z.delete(e),F.delete(e.element),e._originalElement&&(F.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),H.isEnabled&&H.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:"setColor",value:function(e){return this.set("color",e)}},{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)}}],n&&p(t.prototype,n),i&&p(t,i),e}();g||(H=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=j(e);I(y(t),t,e).then((function(t){return R(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(v(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(v(t.origin)){var n=M(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;b(r.src)&&s&&new q(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(v(n.origin)){var i=M(n.data);if(i&&"ready"===i.event)for(var o=e.querySelectorAll("iframe"),r=0;r<o.length;r++){var s=o[r],a=s.contentWindow===n.source;b(s.src)&&a&&function(){var e=new q(s);e.getVideoId().then((function(t){var n=new RegExp("[?&]vimeo_t_".concat(t,"=([^&#]*)")).exec(window.location.href);if(n&&n[1]){var i=decodeURI(n[1]);e.setCurrentTime(i)}})).catch(t)}()}}}))}}());var _,W=q;n(9479)("#"+(_="bannerVimeo")).length&&new W(_,{playsinline:!0,muted:!0,loop:!0,autoplay:!0,background:!0});const B=(e,t=1e4)=>(e=parseFloat(e+"")||0,Math.round((e+Number.EPSILON)*t)/t),V=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},$=function(e,t){return!(!e||e===document.body||t&&e===t)&&(V(e)?e:$(e.parentElement,t))},X=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},Y=e=>`${e||""}`.split(" ").filter((e=>!!e)),U=(e,t,n)=>{Y(t).forEach((t=>{e&&e.classList.toggle(t,n||!1)}))};class G{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 Z={passive:!1};class K{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,Z),this.element.addEventListener("touchstart",this.onTouchStart,Z),this.element.addEventListener("touchmove",this.onMove,Z),this.element.addEventListener("touchend",this.onTouchEnd),this.element.addEventListener("touchcancel",this.onTouchEnd)}onPointerStart(e){if(!e.buttons||0!==e.button)return;const t=new G(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 G(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 G(e))):[new G(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 G(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 G(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,Z),this.element.removeEventListener("touchstart",this.onTouchStart,Z),this.element.removeEventListener("touchmove",this.onMove,Z),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 J(e,t){return t?Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2)):0}function Q(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}const ee=e=>"object"==typeof e&&null!==e&&e.constructor===Object&&"[object Object]"===Object.prototype.toString.call(e),te=(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}),ee(n)?Object.assign(e[t],te(i,n)):Array.isArray(n)?Object.assign(e,{[t]:[...n]}):Object.assign(e,{[t]:n})}))}return e},ne=function(e,t){return e.split(".").reduce(((e,t)=>"object"==typeof e?e[t]:void 0),t)};class ie{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?te({},this.constructor.defaults,e):{};for(const[e,t]of Object.entries(this.option("on")||{}))this.on(e,t)}option(e,...t){let n=ne(e,this.options);return n&&"function"==typeof n&&(n=n.call(this,this,...t)),n}optionFor(e,t,n,...i){let o=ne(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=ne(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(ie,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(ie,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}});class oe extends ie{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();this.emit("attachPlugins")}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 re;!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"}(re||(re={}));const se=["a","b","c","d","e","f"],ae={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"},le={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:ae},ce='<div class="f-spinner"><svg viewBox="0 0 50 50"><circle cx="25" cy="25" r="20"></circle><circle cx="25" cy="25" r="20"></circle></svg></div>',ue=e=>e&&null!==e&&e instanceof Element&&"nodeType"in e,he=(e,t)=>{e&&Y(t).forEach((t=>{e.classList.remove(t)}))},de=(e,t)=>{e&&Y(t).forEach((t=>{e.classList.add(t)}))},fe={a:1,b:0,c:0,d:1,e:0,f:0};let pe=null,ge=null;class me extends oe{get isTouchDevice(){return null===ge&&(ge=window.matchMedia("(hover: none)").matches),ge}get isMobile(){return null===pe&&(pe=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)),pe}get panMode(){return"mousemove"!==this.options.panMode||this.isTouchDevice?"drag":"mousemove"}get panOnlyZoomed(){const e=this.options.panOnlyZoomed;return"auto"===e?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 se){const t="e"==e||"f"===e?.001: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,"friction",{enumerable:!0,configurable:!0,writable:!0,value:0}),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,"state",{enumerable:!0,configurable:!0,writable:!0,value:re.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({},fe)}),Object.defineProperty(this,"target",{enumerable:!0,configurable:!0,writable:!0,value:Object.assign({},fe)}),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({},me.Plugins),n)),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=X(ce);!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("content");let n=this.option("content")||e.querySelector(`.${t}`);if(n||(n=e.querySelector("img,picture")||e.firstElementChild,n&&de(n,t)),n instanceof HTMLPictureElement&&(n=n.querySelector("img")),!n)throw new Error("No content found");this.content=n}onLoad(){this.spinner&&(this.spinner.remove(),this.spinner=null),this.option("spinner")&&this.container.classList.remove(this.cn("isLoading")),this.emit("afterLoad"),this.state===re.Init?this.enable():this.updateMetrics()}onError(){this.state!==re.Destroy&&(this.spinner&&(this.spinner.remove(),this.spinner=null),this.stop(),this.detachEvents(),this.state=re.Error,this.emit("error"))}attachObserver(){var e;const t=()=>Math.abs(this.containerRect.width-this.container.getBoundingClientRect().width)>.1||Math.abs(this.containerRect.height-this.container.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 K(e,{start:this.onPointerDown,move:this.onPointerMove,end:this.onPointerUp}),document.addEventListener("mousemove",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("mousemove",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(){const e=this.friction;this.setTargetForce();const t=this.option("maxVelocity");for(const n of se)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 se)"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)<.001&&(d=0),Math.abs(f)<.001&&(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),b=Math.abs(g.x-f.x),y=Math.abs(g.y-f.y);a=Math.max(m,b),l=Math.max(v,y)}return{contentWidth:a,contentHeight:l}}setEdgeForce(){if(this.ignoreBounds||this.isDragging||"mousemove"===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 se)this.current[e]=this.target[e]=t[e];this.updateMetrics(),this.attachObserver(),this.attachEvents(),this.state=re.Ready,this.emit("ready")}onClick(e){var t;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&&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&&ue(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();const a=this.content.getBoundingClientRect();if(this.dragStart.time&&!this.canZoomOut()&&(Math.abs(a.x-this.dragStart.x)>2||Math.abs(a.y-this.dragStart.y)>2))return;this.dragStart.time=0;const l=t=>{this.option("zoom")&&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}))},c=this.option("click",e),u=this.option("dblClick",e);u?(this.clicks++,1==this.clicks&&(this.clickTimer=setTimeout((()=>{1===this.clicks?(this.emit("click",e),!e.defaultPrevented&&c&&l(c)):(this.emit("dblClick",e),e.defaultPrevented||l(u)),this.clicks=0,this.clickTimer=null}),350))):(this.emit("click",e),!e.defaultPrevented&&c&&l(c))}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;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("mousemove"===this.panMode&&this.targetScale>1)return e.preventDefault(),e.stopPropagation(),!1;if(!n.length){const t=e.composedPath()[0];if(["A","TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].includes(t.nodeName)||t.closest("[contenteditable]")||t.closest("[data-selectable]")||t.closest("[data-panzoom-change]")||t.closest("[data-panzoom-action]"))return!1;null===(i=window.getSelection())||void 0===i||i.removeAllRanges()}if("mousedown"===e.type)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&&B(this.targetScale)<=B(this.minScale))return;if(this.emit("touchMove",e),e.defaultPrevented)return;this.addTrackingPoint(t[0]);const{content:i}=this,o=Q(n[0],n[1]),r=Q(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=J(n[0],n[1]),c=J(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 f=B(this.targetScale)===B(this.minScale)&&this.option("lockAxis");if(f&&!this.lockedAxis)if("xy"===f||"y"===f||"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=f;if($(e.target,this.content)&&(f="x",this.dragOffset.y=0),f&&"xy"!==f&&this.lockedAxis!==f&&B(this.targetScale)===B(this.minScale))return;e.cancelable&&e.preventDefault(),this.container.classList.add(this.cn("isDragging"));const p=this.checkBounds(h,d);this.option("rubberband")?("x"!==this.isInfinite&&(p.xDiff>0&&h<0||p.xDiff<0&&h>0)&&(h*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitWidth*p.xDiff))),"y"!==this.isInfinite&&(p.yDiff>0&&d<0||p.yDiff<0&&d>0)&&(d*=Math.max(0,.5-Math.abs(.75/this.contentRect.fitHeight*p.yDiff)))):(p.xDiff&&(h=0),p.yDiff&&(d=0));const g=this.targetScale,m=this.minScale,v=this.maxScale;g<.5*m&&(u=Math.max(u,m)),g>1.5*v&&(u=Math.min(u,v)),"y"===this.lockedAxis&&B(g)===B(m)&&(h=0),"x"===this.lockedAxis&&B(g)===B(m)&&(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=[]),$(e.target,this.content)&&"y"===this.lockedAxis&&(this.trackingPoints=[]),this.emit("touchEnd",e),this.isDragging=!1,this.lockedAxis=!1,this.state!==re.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 se)this.velocity[e]=0;this.target.e=this.current.e,this.target.f=this.current.f,he(this.container,"is-scaling"),he(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,f=this.option("decelFriction");const p=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-f)-1)),d&&(u=d/(1/(1-f)-1)),("y"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"y"===this.lockedAxis&&B(p)===this.minScale)&&(c=h=0),("x"===this.option("lockAxis")||"xy"===this.option("lockAxis")&&"x"===this.lockedAxis&&B(p)===this.minScale)&&(u=d=0);const g=this.dragOffset.x,m=this.dragOffset.y,v=this.option("dragMinThreshold")||0;Math.abs(g)<v&&Math.abs(m)<v&&(c=u=0,h=d=0),(p<this.minScale-1e-5||p>this.maxScale+1e-5||t&&!c&&!u)&&(f=.35),this.applyChange({panX:c,panY:u,friction:f}),this.emit("decel",h,d,g,m)}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),"mousemove"===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({},fe);for(const n of se){const i="e"==n||"f"===n?1e3:1e5;o[n]=B(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:f,contentHeight:p}=this.calculateContentDim();i.width=f,i.height=p,this.emit("afterTransform")}updateMetrics(e=!1){var t;if(!this||this.state===re.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};let f=this.option("width")||"auto",p=this.option("height")||"auto";"auto"===f&&(f=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)),"auto"===p&&(p=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 g=o.parentElement instanceof HTMLPictureElement?o.parentElement:o;this.option("transformParent")&&(g=g.parentElement||g);const m=g.getAttribute("style")||"";g.style.setProperty("transform","none","important"),r&&(g.style.width="",g.style.height=""),g.offsetHeight;const v=o.getBoundingClientRect();let b=v.width*n,y=v.height*n,w=0,x=0;r&&(Math.abs(f-b)>1||Math.abs(p-y)>1)&&({width:b,height:y,top:w,left:x}=((e,t,n,i)=>{const o=n/i;return o>e/t?(n=e,i=e/o):(n=t*o,i=t),{width:n,height:i,top:.5*(t-i),left:.5*(e-n)}})(b,y,f,p)),this.contentRect=Object.assign(Object.assign({},this.contentRect),{top:v.top-s.top+w,bottom:s.bottom-v.bottom+w,left:v.left-s.left+x,right:s.right-v.right+x,fitWidth:b,fitHeight:y,width:b,height:y,fullWidth:f,fullHeight:p}),g.style.cssText=m,r&&(g.style.width=`${b}px`,g.style.height=`${y}px`),this.setTransform(),!0!==e&&this.emit("refresh"),this.ignoreBounds||(B(this.targetScale)<B(this.minScale)?this.zoomTo(this.minScale,{friction:0}):this.targetScale>this.maxScale?this.zoomTo(this.maxScale,{friction:0}):this.state===re.Init||this.checkBounds().inBounds||this.requestTick()),this.updateControls()}getBounds(){const e=this.option("bounds");if("auto"!==e)return e;const{contentWidth:t,contentHeight:n}=this.calculateContentDim(this.target);let i=0,o=0,r=0,s=0;const a=this.option("infinite");if(!0===a||this.lockedAxis&&a===this.lockedAxis)i=-1/0,r=1/0,o=-1/0,s=1/0;else{let{containerRect:e,contentRect:a}=this,l=B(this.contentRect.fitWidth*this.targetScale,1e3),c=B(this.contentRect.fitHeight*this.targetScale,1e3),{innerWidth:u,innerHeight:h}=e;if(this.containerRect.width===l&&(u=e.width),this.containerRect.width===c&&(h=e.height),t>u){r=.5*(t-u),i=-1*r;let e=.5*(a.right-a.left);i+=e,r+=e}if(this.contentRect.fitWidth>u&&t<u&&(i-=.5*(this.contentRect.fitWidth-u),r-=.5*(this.contentRect.fitWidth-u)),n>h){s=.5*(n-h),o=-1*s;let e=.5*(a.bottom-a.top);o+=e,s+=e}this.contentRect.fitHeight>h&&n<h&&(i-=.5*(this.contentRect.fitHeight-h),r-=.5*(this.contentRect.fitHeight-h))}return{x:{min:i,max:r},y:{min:o,max:s}}}updateControls(){const e=this,t=e.container,{panMode:n,contentRect:i,fullScale:o,targetScale:r,coverScale:s,maxScale:a,minScale:l}=e;let c={toggleMax:r-l<.5*(a-l)?a:l,toggleCover:r-l<.5*(s-l)?s:l,toggleZoom:r-l<.5*(o-l)?o:l}[e.option("click")||""]||l,u=e.canZoomIn(),h=e.canZoomOut(),d=h&&"drag"===n;B(r)<B(l)&&!this.panOnlyZoomed&&(d=!0),(B(i.width,1)>B(i.fitWidth,1)||B(i.height,1)>B(i.fitHeight,1))&&(d=!0),B(i.width*r,1)<B(i.fitWidth,1)&&(d=!1),"mousemove"===n&&(d=!1);let f=u&&B(c)>B(r),p=!f&&!d&&h&&B(c)<B(r);U(t,this.cn("canZoomIn"),f),U(t,this.cn("canZoomOut"),p),U(t,this.cn("isDraggable"),d);for(const e of t.querySelectorAll('[data-panzoom-action="zoomIn"]'))u?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="zoomOut"]'))h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));for(const e of t.querySelectorAll('[data-panzoom-action="toggleZoom"],[data-panzoom-action="iterateZoom"]')){u||h?(e.removeAttribute("disabled"),e.removeAttribute("tabindex")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"));const t=e.querySelector("g");t&&(t.style.display=u?"":"none")}}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!==re.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")}){if(this.state===re.Destroy)return;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.friction=s||0,this.ignoreBounds=c;const{current:h}=this,d=h.e,f=h.f,p=this.getMatrix(this.target);let g=(new DOMMatrix).translate(d,f).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)}g=g.scale(n)}g=g.translate(-o,-r).translate(-d,-f).multiply(p),i&&(g=g.rotate(i)),a&&(g=g.scale(-1,1)),l&&(g=g.scale(1,-1));for(const e of se)"e"!==e&&"f"!==e&&(g[e]>this.minScale+1e-5||g[e]<this.minScale-1e-5)?this.target[e]=g[e]:this.target[e]=B(g[e],1e3);(this.targetScale<this.scale||Math.abs(n-1)>.1||"mousemove"===this.panMode||!1===u)&&!c&&this.clampTargetBounds(),this.isResting||(this.state=re.Panning,this.requestTick())}stop(e=!1){if(this.state===re.Init||this.state===re.Destroy)return;const t=this.isTicking;this.rAF&&(cancelAnimationFrame(this.rAF),this.rAF=null),this.isBouncingX=!1,this.isBouncingY=!1;for(const t of se)this.velocity[t]=0,"current"===e?this.current[t]=this.target[t]:"target"===e&&(this.target[t]=this.current[t]);this.setTransform(),he(this.container,"is-scaling"),he(this.container,"is-animating"),this.isTicking=!1,this.state=re.Ready,t&&(this.emit("endAnimation"),this.updateControls())}requestTick(){this.isTicking||(this.emit("startAnimation"),this.updateControls(),de(this.container,"is-animating"),this.isScaling&&de(this.container,"is-scaling")),this.isTicking=!0,this.rAF||(this.rAF=requestAnimationFrame((()=>this.animate())))}panWithMouse(e,t=this.option("mouseMoveFriction")){if(this.pmme=e,"mousemove"!==this.panMode||!e)return;if(B(this.targetScale)<=B(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 f=.5*(u-r)-l/r*100/100*(u-r);f+=.5*(o.right-o.left);let p=.5*(h-s)-c/s*100/100*(h-s);p+=.5*(o.bottom-o.top),this.applyChange({panX:f-this.target.e,panY:p-this.target.f,friction:t})}zoomWithWheel(e){if(this.state===re.Destroy||this.state===re.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;B(a)<B(s)&&B(o)<=B(s)?(this.cwd+=Math.abs(i),a=s):B(a)>B(r)&&B(o)>=B(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(),B(a)!==B(o)&&this.zoomTo(a,{event:e}))}canZoomIn(){return this.option("zoom")&&(B(this.contentRect.width,1)<B(this.contentRect.fitWidth,1)||B(this.targetScale)<B(this.maxScale))}canZoomOut(){return this.option("zoom")&&B(this.targetScale)>B(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.targetScale-this.minScale<.5*(this.fullScale-this.minScale)?"full":"fit",e)}toggleMax(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.maxScale-this.minScale)?"max":"fit",e)}toggleCover(e){this.zoomTo(this.targetScale-this.minScale<.5*(this.coverScale-this.minScale)?"cover":"fit",e)}iterateZoom(e){this.zoomTo("next",e)}zoomTo(e=1,{friction:t="auto",originX:n=0,originY:i=0,event:o}={}){if(this.isContentLoading||this.state===re.Destroy)return;const{targetScale:r}=this;this.stop();let s=1;if("mousemove"===this.panMode&&(o=this.pmme||o),o){const e=this.content.getBoundingClientRect(),t=o.clientX||0,r=o.clientY||0;n=t-e.left-.5*e.width,i=r-e.top-.5*e.height}const a=this.fullScale,l=this.maxScale;let c=this.coverScale;"number"==typeof e?s=e/r:("next"===e&&(a-c<.2&&(c=a),e=r<a-1e-5?"full":r<l-1e-5?"max":"fit"),s="full"===e?a/r||1:"cover"===e?c/r||1:"max"===e?l/r||1:1/r||1),t="auto"===t?s>1?.15:.25:t,this.applyChange({scale:s,originX:n,originY:i,friction:t}),o&&"mousemove"===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!==re.Init&&this.state!==re.Destroy){this.stop("current");for(const e of se)this.target[e]=fe[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=re.Panning,this.requestTick())}}destroy(){this.stop(),this.state=re.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(me,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:le}),Object.defineProperty(me,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:{}});const ve=function(e,t){let n=!0;return(...i)=>{n&&(n=!1,e(...i),setTimeout((()=>{n=!0}),t))}},be=(e,t)=>{let n=[];return e.childNodes.forEach((e=>{e.nodeType!==Node.ELEMENT_NODE||t&&!e.matches(t)||n.push(e)})),n};var ye;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Destroy=2]="Destroy"}(ye||(ye={}));const we=e=>{if("string"==typeof e&&(e={html:e}),!(e instanceof String||e instanceof HTMLElement)){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:"",index:-1,dim:0,gap:0,pos:0,transition:!1},e)},xe=(e={})=>Object.assign({index:-1,slides:[],dim:0,pos:-1},e);class Se extends ie{constructor(e,t){super(t),Object.defineProperty(this,"instance",{enumerable:!0,configurable:!0,writable:!0,value:e})}attach(){}detach(){}}class Ee extends Se{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;return e||(e=document.createElement("ul"),de(e,this.cn("list")),e.setAttribute("role","tablist"),this.instance.container.appendChild(e),de(this.instance.container,this.cn("hasDots")),this.list=e),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(U(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),U(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"])he(t,this.cn(e));c++}if(l=l||a.firstChild,r&&l){const e=l.previousElementSibling,t=e&&e.previousElementSibling;de(e,this.cn("isPrev")),de(t,this.cn("isBeforePrev"));const n=l.nextElementSibling,i=n&&n.nextElementSibling;de(n,this.cn("isNext")),de(i,this.cn("isAfterNext"))}this.isDynamic=r}createItem(e=0){var t;const n=document.createElement("li");n.setAttribute("role","presentation");const i=X(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,he(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(Ee,"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}});class Te extends Se{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})}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("disabled"),o.removeAttribute("disabled"),e.isInfinite||(n<=0&&i.setAttribute("disabled",""),n>=t-1&&o.setAttribute("disabled","")))}createButton(e){const t=this.instance,n=document.createElement("button");n.setAttribute("tabindex","0"),n.setAttribute("title",t.localize(`{{${e.toUpperCase()}}}`)),de(n,this.cn("button")+" "+this.cn("next"===e?"isNext":"isPrev"));const i=t.isRTL?"next"===e?"prev":"next":e;var o;return n.innerHTML=t.localize(this.option(`${i}Tpl`)),n.dataset[`carousel${o=e,o?o.match("^[a-z]")?o.charAt(0).toUpperCase()+o.substring(1):o:""}`]="true",n}build(){let e=this.container;e||(this.container=e=document.createElement("div"),de(e,this.cn("container")),this.instance.container.appendChild(e)),this.next||(this.next=e.appendChild(this.createButton("next"))),this.prev||(this.prev=e.appendChild(this.createButton("prev")))}cleanup(){this.prev&&this.prev.remove(),this.next&&this.next.remove(),this.container&&this.container.remove(),this.prev=null,this.next=null,this.container=null}attach(){this.instance.on(["refresh","change"],this.onRefresh)}detach(){this.instance.off(["refresh","change"],this.onRefresh),this.cleanup()}}Object.defineProperty(Te,"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 Ce extends Se{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(){this.nav&&this.target&&(this.nav.options.initialSlide=this.target.options.initialPage,this.nav.on("ready",this.onNavReady),this.nav.state===ye.Ready&&this.onNavReady(this.nav),this.target.on("ready",this.onTargetReady),this.target.state===ye.Ready&&this.onTargetReady(this.target))}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){n.pointerType||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")}),this.markSelectedSlide(c)}onNavCreateSlide(e,t){t.index===this.selectedIndex&&this.markSelectedSlide(t.index)}onTargetChange(){const{target:e,nav:t}=this;if(!e||!t)return;if(t.state!==ye.Ready||e.state!==ye.Ready)return;const n=e.pages[e.page].slides[0].index,i=t.getPageForSlide(n);this.markSelectedSlide(n),t.slideTo(i)}markSelectedSlide(e){const{nav:t}=this;t&&t.state===ye.Ready&&(this.selectedIndex=e,[...t.slides].map((t=>{t.el&&t.el.classList[t.index===e?"add":"remove"]("is-nav-selected")})))}attach(){let e=this.options.target,t=this.options.nav;e?this.addAsNavFor(e):t&&this.addAsTargetFor(t)}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)),this.nav=null,n&&(n.off("ready",e.onTargetReady),n.off("refresh",e.onTargetChange),n.off("change",e.onTargetChange)),this.target=null}}Object.defineProperty(Ce,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{friction:.35}});const Pe={Navigation:Te,Dots:Ee,Sync:Ce};class Ae extends oe{get axis(){return this.isHorizontal?"e":"f"}get isEnabled(){return this.state===ye.Ready}get isInfinite(){let e=!1;const{contentDim:t,viewportDim:n,pages:i,slides:o}=this;return i.length>=2&&t+o[0].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,"userOptions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"userPlugins",{enumerable:!0,configurable:!0,writable:!0,value:{}}),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,"state",{enumerable:!0,configurable:!0,writable:!0,value:ye.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||!ue(e))throw new Error("No Element found");this.container=e,this.slideNext=ve(this.slideNext.bind(this),150),this.slidePrev=ve(this.slidePrev.bind(this),150),this.userOptions=t,this.userPlugins=n,queueMicrotask((()=>{this.processOptions()}))}processOptions(){const e=te({},Ae.defaults,this.userOptions);let t="";const n=e.breakpoints;if(n&&ee(n))for(const[i,o]of Object.entries(n))window.matchMedia(i).matches&&ee(o)&&(t+=i,te(e,o));t===this.bp&&this.state!==ye.Init||(this.bp=t,this.state===ye.Ready&&(e.initialSlide=this.pages[this.page].slides[0].index),this.state!==ye.Init&&this.destroy(),super.setOptions(e),!1===this.option("enabled")?this.attachEvents():setTimeout((()=>{this.init()}),0))}init(){this.state=ye.Init,this.emit("init"),this.attachPlugins(Object.assign(Object.assign({},Ae.Plugins),this.userPlugins)),this.initLayout(),this.initSlides(),this.updateMetrics(),this.setInitialPosition(),this.initPanzoom(),this.attachEvents(),this.state=ye.Ready,this.emit("ready")}initLayout(){const{container:e}=this,t=this.option("classes");de(e,this.cn("container")),U(e,t.isLTR,!this.isRTL),U(e,t.isRTL,this.isRTL),U(e,t.isVertical,!this.isHorizontal),U(e,t.isHorizontal,this.isHorizontal);let n=this.option("viewport")||e.querySelector(`.${t.viewport}`);n||(n=document.createElement("div"),de(n,t.viewport),n.append(...be(e,`.${t.slide}`)),e.prepend(n));let i=this.option("track")||e.querySelector(`.${t.track}`);i||(i=document.createElement("div"),de(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){this.slides=[],[...be(e,`.${this.cn("slide")}`)].forEach((e=>{if(ue(e)){const t=we({el:e,isDom:!0,index:this.slides.length});this.slides.push(t),this.emit("initSlide",t,this.slides.length)}}));for(let e of this.option("slides",[])){const t=we(e);t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",t,this.slides.length)}this.emit("initSlides")}}setInitialPage(){let e=0;const t=this.option("initialSlide");e="number"==typeof t?this.getPageForSlide(t):parseInt(this.option("initialPage",0)+"",10)||0,this.page=e}setInitialPosition(){if(!this.track||!this.pages.length)return;const e=this.isHorizontal;let t=this.page;this.pages[t]||(this.page=t=0);const n=this.pages[t].pos*(this.isRTL&&e?1:-1),i=e?`${n}px`:"0",o=e?"0":`${n}px`;this.track.style.transform=`translate3d(${i}, ${o}, 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 me(this.viewport,te({},{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");("number"!=typeof i||t<=n)&&(i=1/0);let o=0,r=0,s=0;for(const t of this.slides)(!e.length||r+t.dim>n||s===i)&&(e.push(xe()),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}=this,i=this.option("center"),o=this.option("fill"),r=o&&i&&t>n&&!this.isInfinite;if(e.forEach(((e,o)=>{e.index=o,e.pos=e.slides[0].pos,e.dim=0;for(const[t,n]of e.slides.entries())e.dim+=n.dim,t<e.slides.length-1&&(e.dim+=n.gap);r&&e.pos+.5*e.dim<.5*n?e.pos=0:r&&e.pos+.5*e.dim>=t-.5*n?e.pos=t-n:i&&(e.pos+=-.5*(n-e.dim))})),e.forEach(((e,i)=>{o&&!this.isInfinite&&t>n&&(e.pos=Math.max(e.pos,0),e.pos=Math.min(e.pos,t-n)),e.pos=B(e.pos,1e3),e.dim=B(e.dim,1e3),e.pos<.1&&e.pos>-.1&&(e.pos=0)})),this.isInfinite)return e;const s=[];let a;return e.forEach((e=>{const t=Object.assign({},e);a&&t.pos===a.pos?(a.dim+=t.dim,a.slides=[...a.slides,...t.slides]):(t.index=s.length,a=t,s.push(t))})),s}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;const n=this.isHorizontal?"width":"height";let i=0,o=0,r=e.el;if(r?i=parseFloat(r.dataset[n]||"")||0:(r=document.createElement("div"),r.style.visibility="hidden",de(r,this.cn("slide")+" "+e.class),(this.track||document.body).prepend(r)),i)r.style[n]=`${i}px`,r.style["width"===n?"height":"width"]="";else{const e=Math.max(1,(null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1);i=r.getBoundingClientRect()[n]*e}const s=getComputedStyle(r);return"content-box"===s.boxSizing&&(this.isHorizontal?(i+=parseFloat(s.paddingLeft)||0,i+=parseFloat(s.paddingRight)||0):(i+=parseFloat(s.paddingTop)||0,i+=parseFloat(s.paddingBottom)||0)),o=parseFloat(s[this.isHorizontal?"marginRight":"marginBottom"])||0,e.el||r.remove(),{dim:B(i,1e3),gap:B(o,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,f=0,p=0;u?p=-1*u.current[this.axis]:l[a]&&(p=l[a].pos||0),e=t?n?"right":"left":"top",n&&t&&(p*=-1);for(const t of c)t.el?("top"===e?(t.el.style.right="",t.el.style.left=""):t.el.style.top="",t.index!==h?t.el.style[e]=0===d?"":`${B(d,1e3)}px`:t.el.style[e]="",f+=t.dim+t.gap,h++):d+=t.dim+t.gap;if(i&&f&&o){let n=getComputedStyle(o),i="padding",a=t?"Right":"Bottom",l=parseFloat(n[i+(t?"Left":"Top")]);p-=l,r+=l,r+=parseFloat(n[i+a]);for(const t of c)t.el&&(B(t.pos)<B(r)&&B(t.pos+t.dim+t.gap)<B(p)&&B(p)>B(s-r)&&(t.el.style[e]=`${B(d+f,1e3)}px`),B(t.pos+t.gap)>=B(s-r)&&B(t.pos)>B(p+r)&&B(p)<B(r)&&(t.el.style[e]=`-${B(f,1e3)}px`))}let g,m,v=[...this.inTransition];if(v.length>1&&(g=l[v[0]],m=l[v[1]]),g&&m){let t=0;for(const n of c)n.el?this.inTransition.has(n.index)&&g.slides.indexOf(n)<0&&(n.el.style[e]=`${B(t+(g.pos-m.pos),1e3)}px`):t+=n.dim+n.gap}}createSlideEl(e){const{track:t,slides:n}=this;if(!t||!e)return;if(e.el)return;const i=document.createElement("div");de(i,this.cn("slide")),de(i,e.class),de(i,e.customClass),e.html&&(i.innerHTML=e.html);const o=[];n.forEach(((e,t)=>{e.el&&o.push(t)}));const r=e.index;let s=null;o.length&&(s=n[o.reduce(((e,t)=>Math.abs(t-r)<Math.abs(e-r)?t:e))]);const a=s&&s.el?s.index<e.index?s.el.nextSibling:s.el:null;t.insertBefore(i,t.contains(a)?a:null),e.el=i,this.emit("createSlide",e)}removeSlideEl(e,t=!1){const n=e.el;if(!n)return;if(he(n,this.cn("isSelected")),e.isDom&&!t)return n.removeAttribute("aria-hidden"),n.removeAttribute("data-index"),he(n,this.cn("isSelected")),void(n.style.left="");this.emit("removeSlide",e);const i=new CustomEvent("animationend");n.dispatchEvent(i),e.el&&e.el.remove(),e.el=null}transitionTo(e=0,t=this.option("transition")){if(!t)return!1;const{pages:n,panzoom:i}=this;e=parseInt((e||0).toString())||0;const o=this.getPageFromIndex(e);if(!i||!n[o]||n.length<2||Math.abs(n[this.page].slides[0].dim-this.viewportDim)>1)return!1;const r=e>this.page?1:-1,s=this.pages[o].pos*(this.isRTL?1:-1);if(this.page===o&&B(s,1e3)===B(i.target[this.axis],1e3))return!1;this.clearTransitions();const a=i.isResting;de(this.container,this.cn("inTransition"));const l=this.pages[this.page].slides[0],c=this.pages[o].slides[0];this.inTransition.add(c.index),this.createSlideEl(c);let u=l.el,h=c.el;a||"slide"===t||(t="fadeFast",u=null);const d=this.isRTL?"next":"prev",f=this.isRTL?"prev":"next";return u&&(this.inTransition.add(l.index),l.transition=t,u.addEventListener("animationend",this.onAnimationEnd),u.classList.add(`f-${t}Out`,`to-${r>0?f:d}`)),h&&(c.transition=t,h.addEventListener("animationend",this.onAnimationEnd),h.classList.add(`f-${t}In`,`from-${r>0?d:f}`)),i.panTo({x:this.isHorizontal?s:0,y:this.isHorizontal?0:s,friction:0}),this.onChange(o),!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("isSelected");if(t)for(const n of this.slides)n.el&&(n.el.dataset.index=`${n.index}`,this.pages[this.page].slides.includes(n)?(n.el.classList.contains(t)||(de(n.el,t),this.emit("selectSlide",n)),n.el.removeAttribute(e)):(n.el.classList.contains(t)&&(he(n.el,t),this.emit("unselectSlide",n)),n.el.setAttribute(e,"true")))}flipInfiniteTrack(){const e=this.panzoom;if(!e||!this.isInfinite)return;const t="x"===this.option("axis")?"e":"f",{viewportDim:n,contentDim:i}=this;let o=e.current[t],r=e.target[t]-o,s=0,a=.5*n,l=i;this.isRTL&&this.isHorizontal?(o<-a&&(s=-1,o+=l),o>l-a&&(s=1,o-=l)):(o>a&&(s=1,o-=l),o<-l+a&&(s=-1,o+=l)),s&&(e.current[t]=o,e.target[t]=o+r)}lazyLoadSlide(e){const t=this,n=e&&e.el;if(!n)return;const i=new Set,o="f-fadeIn";n.querySelectorAll("[data-lazy-srcset]").forEach((e=>{e instanceof HTMLImageElement&&i.add(e)}));let r=Array.from(n.querySelectorAll("[data-lazy-src]"));n.dataset.lazySrc&&r.push(n),r.map((e=>{e instanceof HTMLImageElement?i.add(e):ue(e)&&(e.style.backgroundImage=`url('${e.dataset.lazySrc||""}')`,delete e.dataset.lazySrc)}));const s=(e,n,i)=>{i&&(i.remove(),i=null),n.complete&&(n.classList.add(o),setTimeout((()=>{n.classList.remove(o)}),350),n.style.display=""),this.option("adaptiveHeight")&&e.el&&this.pages[this.page].slides.indexOf(e)>-1&&(t.updateMetrics(),t.setViewportHeight()),this.emit("load",e)};for(const t of i){let n=null;t.src=t.dataset.lazySrcset||t.dataset.lazySrc||"",delete t.dataset.lazySrc,delete t.dataset.lazySrcset,t.style.display="none",t.addEventListener("error",(()=>{s(e,t,n)})),t.addEventListener("load",(()=>{s(e,t,n)})),setTimeout((()=>{t.parentNode&&e.el&&(t.complete?s(e,t,n):(n=X(ce),t.parentNode.insertBefore(n,t)))}),300)}}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){const{isRTL:i,isHorizontal:o,axis:r,pages:s}=this,a=s.length,l=Math.abs(Math.atan2(n,t)/(Math.PI/180));let c=0;if(c=l>45&&l<135?o?0:n:o?t:0,!a)return;const u=this.option("dragFree");let h=this.page,d=i&&o?1:-1;const f=e.target[r]*d,p=e.current[r]*d;let{pageIndex:g}=this.getPageFromPosition(f),{pageIndex:m}=this.getPageFromPosition(p);u?this.onChange(g):(Math.abs(c)>5?(s[h].dim<document.documentElement["client"+(this.isHorizontal?"Width":"Height")]-1&&(h=m),h=i&&o?c<0?h-1:h+1:c<0?h+1:h-1):h=m,this.slideTo(h,{transition:!1,friction:e.option("decelFriction")}))}onClick(e){const t=e.target,n=t&&ue(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})}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=ye.Init,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===ye.Destroy)return;const{axis:i,isHorizontal:o,isRTL:r,pages:s,panzoom:a}=this,l=s.length,c=r&&o?1:-1;if(!a||!l)return;if(this.transitionTo(e,n))return;const u=this.getPageFromIndex(e);let h=s[u].pos;if(this.isInfinite){const t=this.contentDim,n=a.target[i]*c;if(2===l)h+=t*Math.floor(parseFloat(e+"")/2);else{const e=n;h=[h,h-t,h+t].reduce((function(t,n){return Math.abs(n-e)<Math.abs(t-e)?n:t}))}}h*=c,Math.abs(a.target[i]-h)<.1||(a.panTo({x:o?h:0,y:o?0:h,friction:t}),this.onChange(u))}slideToClosest(e){if(this.panzoom){const{pageIndex:t}=this.getPageFromPosition(this.panzoom.current[this.isHorizontal?"e":"f"]);this.slideTo(t,e)}}slideNext(){this.slideTo(this.page+1)}slidePrev(){this.slideTo(this.page-1)}clearTransitions(){this.inTransition.clear(),he(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("animationend",this.onAnimationEnd),n.classList.remove(...e);const i=t.transition;i&&n.classList.remove(`f-${i}Out`,`f-${i}In`)}}this.manageSlideVisiblity()}prependSlide(e){var t,n;let i=Array.isArray(e)?e:[e];for(const e of i.reverse())this.slides.unshift(we(e));for(let e=0;e<this.slides.length;e++)this.slides[e].index=e;const o=(null===(t=this.pages[this.page])||void 0===t?void 0:t.pos)||0;this.page+=i.length,this.updateMetrics();const r=(null===(n=this.pages[this.page])||void 0===n?void 0:n.pos)||0;if(this.panzoom){const e=this.isRTL?o-r:r-o;this.panzoom.target.e-=e,this.panzoom.current.e-=e,this.panzoom.requestTick()}}appendSlide(e){let t=Array.isArray(e)?e:[e];for(const e of t){const t=we(e);t.index=this.slides.length,this.slides.push(t),this.emit("initSlide",e,this.slides.length)}this.updateMetrics()}removeSlide(e){const t=this.slides.length;e=(e%t+t)%t,this.removeSlideEl(this.slides[e],!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})}updateMetrics(){const{panzoom:e,viewport:t,track:n,isHorizontal:i}=this;if(!n)return;const o=i?"width":"height",r=i?"offsetWidth":"offsetHeight";if(t){let e=Math.max(t[r],B(t.getBoundingClientRect()[o],1e3)),n=getComputedStyle(t),s="padding",a=i?"Right":"Bottom";e-=parseFloat(n[s+(i?"Left":"Top")])+parseFloat(n[s+a]),this.viewportDim=e}let s,a=this.pages.length,l=0;for(const[e,t]of this.slides.entries()){let n=0,i=0;!t.el&&s?(n=s.dim,i=s.gap):(({dim:n,gap:i}=this.getSlideMetrics(t)),s=t),n=B(n,1e3),i=B(i,1e3),t.dim=n,t.gap=i,t.pos=l,l+=n,(this.isInfinite||e<this.slides.length-1)&&(l+=i)}const c=this.contentDim;l=B(l,1e3),this.contentDim=l,e&&(e.contentRect[o]=l,e.contentRect["e"===this.axis?"fullWidth":"fullHeight"]=l),this.pages=this.createPages(),this.pages=this.processPages(),this.state===ye.Init&&this.setInitialPage(),this.page=Math.max(0,Math.min(this.page,this.pages.length-1)),e&&a===this.pages.length&&Math.abs(l-c)>.5&&(e.target[this.axis]=-1*this.pages[this.page].pos,e.current[this.axis]=-1*this.pages[this.page].pos,e.stop()),this.manageSlideVisiblity(),this.emit("refresh")}getProgress(e,t=!1){void 0===e&&(e=this.page);const n=this,i=n.panzoom,o=n.pages[e]||0;if(!o||!i)return 0;let r=-1*i.current.e,s=n.contentDim;var a=[B((r-o.pos)/(1*o.dim),1e3),B((r+s-o.pos)/(1*o.dim),1e3),B((r-s-o.pos)/(1*o.dim),1e3)].reduce((function(e,t){return Math.abs(t)<Math.abs(e)?t:e}));return t?a:Math.max(-1,Math.min(1,a))}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{contentDim:i,viewportDim:o,pages:r,page:s}=this;i=i+(null===(t=this.slides[this.slides.length-1])||void 0===t?void 0:t.gap)||0;let a=0;a=this.panzoom?-1*this.panzoom.current[this.axis]:r[s]&&r[s].pos||0,this.isInfinite&&(a-=Math.floor(a/i)*i),this.isRTL&&this.isHorizontal&&(a*=-1);const l=a-o*e,c=a+o*(e+1),u=this.isInfinite?[-1,0,1]:[0];for(const e of this.slides)for(const t of u){const o=e.pos+t*i,r=e.pos+e.dim+e.gap+t*i;o<c&&r>l&&n.add(e)}return n}getPageFromPosition(e){const{viewportDim:t,contentDim:n}=this,i=this.pages.length,o=this.slides.length,r=this.slides[o-1];let s=0,a=0,l=0;const c=this.option("center");c&&(e+=.5*t),this.isInfinite||(e=Math.max(this.slides[0].pos,Math.min(e,r.pos)));const u=n+r.gap;l=Math.floor(e/u)||0,e-=l*u;let h=r,d=this.slides.find((t=>{const n=e+(h&&!c?.5*h.dim:0);return h=t,t.pos<=n&&t.pos+t.dim+t.gap>n}));return d||(d=r),a=this.getPageForSlide(d.index),s=a+l*i,{page:s,pageIndex:a}}destroy(){if([ye.Destroy].includes(this.state))return;this.state=ye.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.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(Ae,"Panzoom",{enumerable:!0,configurable:!0,writable:!0,value:me}),Object.defineProperty(Ae,"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(Ae,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:Pe});const Oe=function(e){const t=window.pageYOffset,n=window.pageYOffset+window.innerHeight;if(!ue(e))return 0;const i=e.getBoundingClientRect(),o=i.y+window.pageYOffset,r=i.y+i.height+window.pageYOffset;if(t>r||n<o)return 0;if(t<o&&n>r)return 100;if(o<t&&r>n)return 100;let s=i.height;o<t&&(s-=window.pageYOffset-o),r>n&&(s-=r-n);const a=s/window.innerHeight*100;return Math.round(a)},ke=!("undefined"==typeof window||!window.document||!window.document.createElement);let Me;const Le=["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(","),De=e=>{if(e&&ke){void 0===Me&&document.createElement("div").focus({get preventScroll(){return Me=!0,!1}});try{if(Me)e.focus({preventScroll:!0});else{const t=window.pageXOffset||document.body.scrollTop,n=window.pageYOffset||document.body.scrollLeft;e.focus(),document.body.scrollTo({top:t,left:n,behavior:"auto"})}}catch(e){}}},Ne={dragToClose:!0,hideScrollbar:!0,Carousel:{classes:{container:"fancybox__carousel",viewport:"fancybox__viewport",track:"fancybox__track",slide:"fancybox__slide"}},contentClick:"toggleZoom",contentDblClick:!1,backdropClick:"close",animated:!0,idle:3500,showClass:"f-zoomInUp",hideClass:"f-fadeOut",commonCaption:!1,parentEl:null,startIndex:0,l10n:Object.assign(Object.assign({},ae),{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"}),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>'},groupAll:!1,groupAttr:"data-fancybox",defaultType:"image",defaultDisplay:"block",autoFocus:!0,trapFocus:!0,placeFocusBack:!0,closeButton:"auto",keyboard:{Escape:"close",Delete:"close",Backspace:"close",PageUp:"next",PageDown:"prev",ArrowUp:"prev",ArrowDown:"next",ArrowRight:"next",ArrowLeft:"prev"},Fullscreen:{autoStart:!1},compact:()=>window.matchMedia("(max-width: 578px), (max-height: 578px)").matches,wheel:"zoom"};var je,Re;!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"}(je||(je={})),function(e){e[e.Loading=0]="Loading",e[e.Opening=1]="Opening",e[e.Ready=2]="Ready",e[e.Closing=3]="Closing"}(Re||(Re={}));const Ie=()=>{queueMicrotask((()=>{(()=>{const{slug:e,index:t}=Fe.parseURL(),n=st.getInstance();if(n&&!1!==n.option("Hash")){const i=n.carousel;if(e&&i){for(let t of i.slides)if(t.slug&&t.slug===e)return i.slideTo(t.index);if(e===n.option("slug"))return i.slideTo(t-1);const o=n.getSlide(),r=o&&o.triggerEl&&o.triggerEl.dataset;if(r&&r.fancybox===e)return i.slideTo(t-1)}Fe.hasSilentClose=!0,n.close()}Fe.startFromUrl()})()}))};class Fe extends Se{constructor(){super(...arguments),Object.defineProperty(this,"origHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"timer",{enumerable:!0,configurable:!0,writable:!0,value:null})}onChange(){const e=this.instance,t=e.carousel;this.timer&&clearTimeout(this.timer);const n=e.getSlide();if(!t||!n)return;const i=e.isOpeningSlide(n),o=new URL(document.URL).hash;let r,s=n.slug||void 0,a=n.triggerEl||void 0;r=s||this.instance.option("slug"),!r&&a&&a.dataset&&(r=a.dataset.fancybox);let l="";r&&"true"!==r&&(l="#"+r+(!s&&t.slides.length>1?"-"+(n.index+1):"")),i&&(this.origHash=o!==l?o:""),l&&o!==l&&(this.timer=setTimeout((()=>{try{e.state===je.Ready&&window.history[i?"pushState":"replaceState"]({},document.title,window.location.pathname+window.location.search+l)}catch(e){}}),300))}onClose(){if(this.timer&&clearTimeout(this.timer),!0!==Fe.hasSilentClose)try{window.history.replaceState({},document.title,window.location.pathname+window.location.search+(this.origHash||""))}catch(e){}}attach(){const e=this.instance;e.on("Carousel.ready",this.onChange),e.on("Carousel.change",this.onChange),e.on("close",this.onClose)}detach(){const e=this.instance;e.off("Carousel.ready",this.onChange),e.off("Carousel.change",this.onChange),e.off("close",this.onClose)}static parseURL(){const e=window.location.hash.slice(1),t=e.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}}static startFromUrl(){if(Fe.hasSilentClose=!1,st.getInstance()||!1===st.defaults.Hash)return;const{hash:e,slug:t,index:n}=Fe.parseURL();if(!t)return;let i=document.querySelector(`[data-slug="${e}"]`);if(i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})),st.getInstance())return;const o=document.querySelectorAll(`[data-fancybox="${t}"]`);o.length&&(i=o[n-1],i&&i.dispatchEvent(new CustomEvent("click",{bubbles:!0,cancelable:!0})))}static destroy(){window.removeEventListener("hashchange",Ie,!1)}}function ze(){window.addEventListener("hashchange",Ie,!1),setTimeout((()=>{Fe.startFromUrl()}),500)}Object.defineProperty(Fe,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(Fe,"hasSilentClose",{enumerable:!0,configurable:!0,writable:!0,value:!1}),ke&&(/complete|interactive|loaded/.test(document.readyState)?ze():document.addEventListener("DOMContentLoaded",ze));class He extends Se{onCreateSlide(e,t,n){const i=this.instance,o=i.optionFor(n,"src")||"",{el:r,type:s}=n;r&&"image"===s&&"string"==typeof o&&this.setContent(n,o).then((e=>{const t=n.contentEl,o=n.imageEl,s=n.thumbElSrc;if(i.isClosing()||!t||!o)return;t.offsetHeight;const a=!!i.isOpeningSlide(n)&&this.getZoomInfo(n);if(this.option("protected")){r.addEventListener("contextmenu",(e=>{e.preventDefault()}));const e=document.createElement("div");de(e,"fancybox-protected"),t.appendChild(e)}if(s&&a){const o=e.contentRect,r=Math.max(o.fullWidth,o.fullHeight);let c=null;!a.opacity&&r>1200&&(c=document.createElement("img"),de(c,"fancybox-ghost"),c.src=s,t.appendChild(c));const u=()=>{c&&(de(c,"f-fadeFastOut"),setTimeout((()=>{c&&(c.remove(),c=null)}),200))};(l=s,new Promise(((e,t)=>{const n=new Image;n.onload=e,n.onerror=t,n.src=l}))).then((()=>{n.state=Re.Opening,this.instance.emit("reveal",n),this.zoomIn(n).then((()=>{u(),this.instance.done(n)}),(()=>{i.hideLoading(n)})),c&&setTimeout((()=>{u()}),r>2500?800:200)}),(()=>{i.hideLoading(n),i.revealContent(n)}))}else{const t=this.optionFor(n,"initialSize"),o=this.optionFor(n,"zoom"),r={event:i.prevMouseMoveEvent||i.options.event,friction:o?.12:0};let s=i.optionFor(n,"showClass")||void 0,a=!0;i.isOpeningSlide(n)&&("full"===t?e.zoomToFull(r):"cover"===t?e.zoomToCover(r):"max"===t?e.zoomToMax(r):a=!1,e.stop("current")),a&&s&&(s=e.isDragging?"f-fadeIn":""),i.revealContent(n,s)}var l}),(()=>{i.setError(n,"{{IMAGE_ERROR}}")}))}onRemoveSlide(e,t,n){n.panzoom&&n.panzoom.destroy(),n.panzoom=void 0,n.imageEl=void 0}onChange(e,t,n,i){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}=i,a=i.thumbElSrc;if(!o||!a||!r||!s||s.isContentLoading||s.state===re.Init||s.state===re.Destroy)return;s.updateMetrics();let l=this.getZoomInfo(i);if(!l)return;this.instance.state=je.CustomClosing,n.classList.remove("is-zooming-in"),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:`${window.pageYOffset}px`,left:`${window.pageXOffset}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()}setContent(e,t){return new Promise(((n,i)=>{var o,r;const s=this.instance,a=e.el;if(!a)return void i();s.showLoading(e);let l=this.optionFor(e,"content");"string"==typeof l&&(l=X(l)),l&&ue(l)||(l=document.createElement("img"),l instanceof HTMLImageElement&&(l.src=t||"",l.alt=(null===(o=e.caption)||void 0===o?void 0:o.replace(/<[^>]+>/gi,"").substring(0,1e3))||`Image ${e.index+1} of ${null===(r=s.carousel)||void 0===r?void 0:r.pages.length}`,l.draggable=!1,e.srcset&&l.setAttribute("srcset",e.srcset)),e.sizes&&l.setAttribute("sizes",e.sizes)),l.classList.add("fancybox-image"),e.imageEl=l,s.setContent(e,l,!1),e.panzoom=new me(a,te({},this.option("Panzoom")||{},{content:l,width:s.optionFor(e,"width","auto"),height:s.optionFor(e,"height","auto"),wheel:()=>{const e=s.option("wheel");return("zoom"===e||"pan"==e)&&e},click:(t,n)=>{var i,o;if(s.isCompact||s.isClosing())return!1;if(e.index!==(null===(i=s.getSlide())||void 0===i?void 0:i.index))return!1;let r=!n||n.target&&(null===(o=e.contentEl)||void 0===o?void 0:o.contains(n.target));return s.option(r?"contentClick":"backdropClick")||!1},dblClick:()=>s.isCompact?"toggleZoom":s.option("contentDblClick")||!1,spinner:!1,panOnlyZoomed:!0,wheelLimit:1/0,transformParent:!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!==Re.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=>{he(o,"is-zooming-in"),e.scale<.99||e.scale>1.01||(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");de(o,"is-zooming-in"),i.hideLoading(e),"full"===m?r.zoomToFull(g):"cover"===m?r.zoomToCover(g):"max"===m?r.zoomToMax(g):r.reset(.172)}))}getZoomInfo(e){var t;const{el:n,imageEl:i,thumbEl:o,panzoom:r}=e;if(!n||!i||!o||!r||Oe(o)<3||!this.optionFor(e,"zoom")||this.instance.state===je.Destroy)return!1;if(1!==((null===(t=window.visualViewport)||void 0===t?void 0:t.scale)||1))return!1;let{top:s,left:a,width:l,height:c}=o.getBoundingClientRect(),{top:u,left:h,fitWidth:d,fitHeight:f}=r.contentRect;if(!(l&&c&&d&&f))return!1;const p=r.container.getBoundingClientRect();h+=p.left,u+=p.top;const g=-1*(h+.5*d-(a+.5*l)),m=-1*(u+.5*f-(s+.5*c)),v=l/d;let b=this.option("zoomOpacity")||!1;return"auto"===b&&(b=Math.abs(l/c-d/f)>.1),{x:g,y:m,scale:v,opacity:b}}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(He,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{initialSize:"fit",Panzoom:{maxScale:1},protected:!1,zoom:!0,zoomOpacity:"auto"}});const qe=(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.toString();"t"===e?o.set("start",parseInt(t).toString()):o.set(e,t)}let r=o.toString(),s=e.match(/#t=((.*)?\d+s)/);return s&&(r+=`#t=${s[1]}`),r},_e=["image","html","ajax","inline","clone","iframe","map","pdf","html5video","youtube","vimeo","video"];class We extends Se{onInitSlide(e,t,n){this.processType(n)}onCreateSlide(e,t,n){this.setContent(n)}onRemoveSlide(e,t,n){n.closeBtnEl&&(n.closeBtnEl.remove(),n.closeBtnEl=void 0),n.xhr&&(n.xhr.abort(),n.xhr=null);const i=n.iframeEl;i&&(i.onload=i.onerror=null,i.src="//about:blank",n.iframeEl=null);const o=n.contentEl,r=n.placeholderEl;if("inline"===n.type&&o&&r)o.classList.remove("fancybox__content"),"none"!==o.style.display&&(o.style.display="none"),r.parentNode&&r.parentNode.insertBefore(o,r),r.remove(),n.placeholderEl=null;else for(;n.el&&n.el.firstChild;)n.el.removeChild(n.el.firstChild)}onSelectSlide(e,t,n){n.state===Re.Ready&&this.playVideo()}onUnselectSlide(e,t,n){var i,o;if("html5video"===n.type){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;"vimeo"===n.type?r={method:"pause",value:"true"}:"youtube"===n.type&&(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.setAspectRatio(e),this.resizeIframe(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===je.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(ue(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;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(n.classList.add("is-loading"),"iframe"!==e.type||!1===r)return o.setAttribute("src",e.src+""),this.resizeIframe(e),void i.setContent(e,o);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 t=e.iframeEl,n=null==t?void 0:t.parentElement;if(!t||!n)return;let i=e.autoSize,o=e.width||0,r=e.height||0;o&&r&&(i=!1);const s=n&&n.style;if(!1!==e.preload&&!1!==i&&s)try{const e=window.getComputedStyle(n),i=parseFloat(e.paddingLeft)+parseFloat(e.paddingRight),a=parseFloat(e.paddingTop)+parseFloat(e.paddingBottom),l=t.contentWindow;if(l){const e=l.document,t=e.getElementsByTagName("html")[0],n=e.body;s.width="",n.style.overflow="hidden",o=o||t.scrollWidth+i,s.width=`${o}px`,n.style.overflow="",s.flex="0 0 auto",s.height=`${n.scrollHeight}px`,r=t.scrollHeight+a}}catch(e){}if(o||r){const e={flex:"0 1 auto",width:"",height:""};o&&(e.width=`${o}px`),r&&(e.height=`${r}px`),Object.assign(s,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("html5video"===e.type)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("youtube"!==e.type&&"vimeo"!==e.type)return;const n=()=>{if(e.iframeEl&&e.iframeEl.contentWindow){let t;if("true"===e.iframeEl.dataset.ready)return t="youtube"===e.type?{event:"command",func:"playVideo"}:{method:"play",value:"true"},t&&e.iframeEl.contentWindow.postMessage(JSON.stringify(t),"*"),void(e.poller=void 0);"youtube"===e.type&&(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="html",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,"youtube"),{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=qe(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="youtube"}else if(i=t.match(/^.+vimeo.com\/(?:\/)?([\d]+)((\/|\?h=)([a-z0-9]+))?(.*)?/)){const o=qe(t,this.optionFor(e,"vimeo")),r=encodeURIComponent(i[1]),s=i[4]||"";e.videoId=r,e.src=`https://player.vimeo.com/video/${r}?${s?`h=${s}${o?"&":""}`:""}${o}`,n="vimeo"}if(!n&&e.triggerEl){const t=e.triggerEl.dataset.type;_e.includes(t)&&(n=t)}n||"string"==typeof t&&("#"===t.charAt(0)?n="inline":(i=t.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(n="html5video",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="image":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="map"):(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="map")),n=n||this.instance.option("defaultType"),e.type=n,"image"===n&&(e.thumbSrc=e.thumbSrc||e.src)}setContent(e){const t=this.instance.optionFor(e,"src")||"";if(e&&e.type&&t){switch(e.type){case"html":this.instance.setContent(e,t);break;case"html5video":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"map":case"youtube":case"vimeo":e.preload=!1;case"iframe":this.setIframeContent(e)}this.setAspectRatio(e)}}setAspectRatio(e){var t;const n=e.contentEl,i=this.optionFor(e,"videoRatio"),o=null===(t=e.el)||void 0===t?void 0:t.getBoundingClientRect();if(!(n&&o&&i&&1!==i&&e.type&&["video","youtube","vimeo","html5video"].includes(e.type)))return;const r=o.width,s=o.height;n.style.aspectRatio=i+"",n.style.width=r/s>i?"auto":"",n.style.height=r/s>i?"":"auto"}attach(){const e=this.instance;e.on("Carousel.initSlide",this.onInitSlide),e.on("Carousel.createSlide",this.onCreateSlide),e.on("Carousel.removeSlide",this.onRemoveSlide),e.on("Carousel.selectSlide",this.onSelectSlide),e.on("Carousel.unselectSlide",this.onUnselectSlide),e.on("Carousel.Panzoom.refresh",this.onRefresh),e.on("done",this.onDone),window.addEventListener("message",this.onMessage)}detach(){const e=this.instance;e.off("Carousel.initSlide",this.onInitSlide),e.off("Carousel.createSlide",this.onCreateSlide),e.off("Carousel.removeSlide",this.onRemoveSlide),e.off("Carousel.selectSlide",this.onSelectSlide),e.off("Carousel.unselectSlide",this.onUnselectSlide),e.off("Carousel.Panzoom.refresh",this.onRefresh),e.off("done",this.onDone),window.removeEventListener("message",this.onMessage)}}Object.defineProperty(We,"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}}});class Be extends Se{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:"ready"}),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"ready"!==this.state}onReady(e){this.option("autoStart")&&(e.isInfinite||e.page<e.pages.length-1)&&this.start()}onChange(){var e;(null===(e=this.instance.panzoom)||void 0===e?void 0:e.isResting)||(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(){"play"===this.state&&(this.instance.isInfinite||this.instance.page!==this.instance.pages.length-1?this.instance.slideNext():this.instance.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 de(o,"f-progress"),i.prepend(o),this.progressBar=o,o.offsetHeight,o}set(){if(this.instance.pages.length<2)return;if(this.progressBar)return;const e=this.option("timeout");this.state="play",de(this.instance.container,"has-autoplay");let t=this.createProgressBar();t&&(t.style.transitionDuration=`${e}ms`,t.style.transform="scaleX(1)"),this.timer=setTimeout((()=>{this.timer=null,this.inHover||this.onTimerEnd()}),e),this.emit("set")}clear(){this.timer&&(clearTimeout(this.timer),this.timer=null),this.removeProgressBar()}start(){if(this.set(),this.option("pauseOnHover")){const e=this.instance.container;e.addEventListener("mouseenter",this.onMouseEnter,!1),e.addEventListener("mouseleave",this.onMouseLeave,!1)}document.addEventListener("visibilitychange",this.onVisibilityChange,!1)}stop(){const e=this.instance.container;this.clear(),this.state="ready",e.removeEventListener("mouseenter",this.onMouseEnter,!1),e.removeEventListener("mouseleave",this.onMouseLeave,!1),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),he(e,"has-autoplay"),this.emit("stop")}pause(){"play"===this.state&&(this.state="pause",this.clear(),this.emit("pause"))}resume(){const e=this.instance;if(e.isInfinite||e.page!==e.pages.length-1)if("play"!==this.state){if("pause"===this.state&&!this.inHover){const e=new Event("resume",{bubbles:!0,cancelable:!0});this.emit("resume",event),e.defaultPrevented||this.set()}}else this.set();else this.stop()}toggle(){"play"===this.state||"pause"===this.state?this.stop():this.set()}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(Be,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:{autoStart:!0,pauseOnHover:!0,progressParentEl:null,showProgress:!0,timeout:3e3}});class Ve extends Se{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=te({autoStart:!1},this.option("Autoplay")||{},{pauseOnHover:!1,timeout:this.option("timeout"),progressParentEl:()=>this.option("progressParentEl")||null,on:{set:t=>{var i;n.classList.add("has-slideshow"),(null===(i=e.getSlide())||void 0===i?void 0:i.state)!==Re.Ready&&t.pause()},stop:()=>{n.classList.remove("has-slideshow"),e.isCompact||e.endIdle()},resume:(t,n)=>{var i,o,r;!n||!n.cancelable||(null===(i=e.getSlide())||void 0===i?void 0:i.state)===Re.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:Be}),this.ref=t.plugins.Autoplay)}onReady(e){const t=e.carousel,n=this.ref;t&&n&&this.option("playOnStart")&&(t.isInfinite||t.page<t.pages.length-1)&&n.start()}onDone(e,t){const n=this.ref;if(!n)return;const i=t.panzoom;i&&i.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",e[e.Disabled=3]="Disabled"}(Xe||(Xe={}));let Ye=class extends Se{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,"panzoom",{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,"shouldCenter",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Xe.Init})}formatThumb(e,t){return this.instance.localize(t,[["%i",e.index],["%d",e.index+1],["%s",e.thumbSrc||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"]])}getSlides(){const e=[],t=this.option("thumbTpl")||"";if(t)for(const n of this.instance.slides||[]){let i="";n.type&&(i=`for-${n.type}`,n.type&&["video","youtube","vimeo","html5video"].includes(n.type)&&(i+=" for-video")),e.push({html:this.formatThumb(n,t),customClass:i})}return e}onInitSlide(e,t){const n=t.el;n&&(t.thumbSrc=n.dataset.thumbSrc||t.thumbSrc||"",t.thumbClipWidth=parseFloat(n.dataset.thumbClipWidth||"")||t.thumbClipWidth||0,t.thumbHeight=parseFloat(n.dataset.thumbHeight||"")||t.thumbHeight||0)}onInitSlides(){this.state===Xe.Init&&this.build()}onRefreshM(){this.refreshModern()}onChangeM(){"modern"===this.type&&(this.shouldCenter=!0,this.centerModern())}onClickModern(e){e.preventDefault(),e.stopPropagation();const t=this.instance,n=t.page,i=e=>{if(e){const t=e.closest("[data-carousel-index]");if(t)return parseInt(t.dataset.carouselIndex||"",10)||0}return-1},o=(e,t)=>{const n=document.elementFromPoint(e,t);return n?i(n):-1};let r=i(e.target);r<0&&(r=o(e.clientX+this.thumbGap,e.clientY),r===n&&(r=n-1)),r<0&&(r=o(e.clientX-this.thumbGap,e.clientY),r===n&&(r=n+1)),r<0&&(r=(t=>{let i=o(e.clientX-t,e.clientY),s=o(e.clientX+t,e.clientY);return r<0&&i===n&&(r=n+1),r<0&&s===n&&(r=n-1),r})(this.thumbExtraGap)),r===n?this.centerModern():r>-1&&r<t.pages.length&&t.slideTo(r)}onTransformM(){if("modern"!==this.type)return;const{instance:e,container:t,track:n}=this,i=e.panzoom;if(!(t&&n&&i&&this.panzoom))return;U(t,this.cn("isResting"),i.state!==re.Init&&i.isResting);const o=this.thumbGap,r=this.thumbExtraGap,s=this.thumbClipWidth;let a=0,l=0,c=0;for(const t of e.slides){let n=t.index,i=t.thumbSlideEl;if(!i)continue;U(i,this.cn("isSelected"),n===e.page),l=1-Math.abs(e.getProgress(n)),i.style.setProperty("--progress",l?l+"":"");const u=.5*((t.thumbWidth||0)-s);a+=o,a+=u,l&&(a-=l*(u+r)),i.style.setProperty("--shift",a-o+""),a+=u,l&&(a-=l*(u+r)),a-=o,0===n&&(c=r*l)}n&&(n.style.setProperty("--left",c+""),n.style.setProperty("--width",a+c+o+r*l+"")),this.shouldCenter&&this.centerModern()}buildClassic(){const{container:e,track:t}=this,n=this.getSlides();if(!e||!t||!n)return;const i=new this.instance.constructor(e,te({track:t,infinite:!1,center:!0,fill:!0,dragFree:!0,slidesPerPage:1,transition:!1,Dots:!1,Navigation:!1,Sync:{},classes:{container:"f-thumbs",viewport:"f-thumbs__viewport",track:"f-thumbs__track",slide:"f-thumbs__slide"}},this.option("Carousel")||{},{Sync:{target:this.instance},slides:n}));this.carousel=i,this.track=t,i.on("ready",(()=>{this.emit("ready")}))}buildModern(){if("modern"!==this.type)return;const{container:e,track:t,instance:n}=this,i=this.option("thumbTpl")||"";if(!e||!t||!i)return;de(e,"is-horizontal"),this.updateModern();for(const e of n.slides||[]){const n=document.createElement("div");if(de(n,this.cn("slide")),e.type){let t=`for-${e.type}`;["video","youtube","vimeo","html5video"].includes(e.type)&&(t+=" for-video"),de(n,t)}n.appendChild(X(this.formatThumb(e,i))),e.thumbSlideEl=n,t.appendChild(n),this.resizeModernSlide(e)}const o=new n.constructor.Panzoom(e,{content:t,lockAxis:"x",zoom:!1,panOnlyZoomed:!1,bounds:()=>{let e=0,t=0,i=n.slides[0],o=n.slides[n.slides.length-1],r=n.slides[n.page];return i&&o&&r&&(t=-1*this.getModernThumbPos(0),0!==n.page&&(t+=.5*(i.thumbWidth||0)),e=-1*this.getModernThumbPos(n.slides.length-1),n.page!==n.slides.length-1&&(e+=(o.thumbWidth||0)-(r.thumbWidth||0)-.5*(o.thumbWidth||0))),{x:{min:e,max:t},y:{min:0,max:0}}}});o.on("touchStart",((e,t)=>{this.shouldCenter=!1})),o.on("click",((e,t)=>this.onClickModern(t))),o.on("ready",(()=>{this.centerModern(),this.emit("ready")})),o.on(["afterTransform","refresh"],(e=>{this.lazyLoadModern()})),this.panzoom=o,this.refreshModern()}updateModern(){if("modern"!==this.type)return;const{container:e}=this;e&&(this.thumbGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-gap"))||0,this.thumbExtraGap=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-extra-gap"))||0,this.thumbWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-width"))||40,this.thumbClipWidth=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-clip-width"))||40,this.thumbHeight=parseFloat(getComputedStyle(e).getPropertyValue("--f-thumb-height"))||40)}refreshModern(){var e;if("modern"===this.type){this.updateModern();for(const e of this.instance.slides||[])this.resizeModernSlide(e);this.onTransformM(),null===(e=this.panzoom)||void 0===e||e.updateMetrics(!0),this.centerModern(0)}}centerModern(e){const t=this.instance,{container:n,panzoom:i}=this;if(!n||!i||i.state===re.Init)return;const o=t.page;let r=this.getModernThumbPos(o),s=r;for(let e=t.page-3;e<t.page+3;e++){if(e<0||e>t.pages.length-1||e===t.page)continue;const n=1-Math.abs(t.getProgress(e));n>0&&n<1&&(s+=n*(this.getModernThumbPos(e)-r))}let a=100;void 0===e&&(e=.2,t.inTransition.size>0&&(e=.12),Math.abs(-1*i.current.e-s)>i.containerRect.width&&(e=.5,a=0)),i.options.maxVelocity=a,i.applyChange({panX:B(-1*s-i.target.e,1e3),friction:null===t.prevPage?0:e})}lazyLoadModern(){const{instance:e,panzoom:t}=this;if(!t)return;const n=-1*t.current.e||0;let i=this.getModernThumbPos(e.page);if(t.state!==re.Init||0===i)for(const i of e.slides||[]){const e=i.thumbSlideEl;if(!e)continue;const o=e.querySelector("img[data-lazy-src]"),r=i.index,s=this.getModernThumbPos(r),a=n-.5*t.containerRect.innerWidth,l=a+t.containerRect.innerWidth;if(!o||s<a||s>l)continue;let c=o.dataset.lazySrc;if(!c||!c.length)continue;if(delete o.dataset.lazySrc,o.src=c,o.complete)continue;de(e,this.cn("isLoading"));const u=X(ce);e.appendChild(u),o.addEventListener("load",(()=>{e.offsetParent&&(e.classList.remove(this.cn("isLoading")),u.remove())}),!1)}}resizeModernSlide(e){if("modern"!==this.type)return;if(!e.thumbSlideEl)return;const t=e.thumbClipWidth&&e.thumbHeight?Math.round(this.thumbHeight*(e.thumbClipWidth/e.thumbHeight)):this.thumbWidth;e.thumbWidth=t}getModernThumbPos(e){const t=this.instance.slides[e],n=this.panzoom;if(!n||!n.contentRect.fitWidth)return 0;let i=n.containerRect.innerWidth,o=n.contentRect.width;2===this.instance.slides.length&&(e-=1,o=2*this.thumbClipWidth);let r=e*(this.thumbClipWidth+this.thumbGap)+this.thumbExtraGap+.5*(t.thumbWidth||0);return r-=o>i?.5*i:.5*o,B(r||0,1)}build(){const e=this.instance,t=e.container,n=this.option("minCount")||0;if(n){let t=0;for(const n of e.slides||[])n.thumbSrc&&t++;if(t<n)return this.cleanup(),void(this.state=Xe.Disabled)}const i=this.option("type");if(["modern","classic"].indexOf(i)<0)return void(this.state=Xe.Disabled);this.type=i;const o=document.createElement("div");de(o,this.cn("container")),de(o,`is-${i}`);const r=this.option("parentEl");r?r.appendChild(o):t.after(o),this.container=o,de(t,this.cn("hasThumbs"));const s=document.createElement("div");de(s,this.cn("track")),o.appendChild(s),this.track=s,"classic"===i?this.buildClassic():this.buildModern(),this.state=Xe.Ready,o.addEventListener("click",(t=>{setTimeout((()=>{var t;null===(t=null==o?void 0:o.querySelector(`[data-carousel-index="${e.page}"]`))||void 0===t||t.focus()}),100)}))}cleanup(){this.carousel&&this.carousel.destroy(),this.carousel=null,this.panzoom&&this.panzoom.destroy(),this.panzoom=null,this.container&&this.container.remove(),this.container=null,this.track=null,this.state=Xe.Init,he(this.instance.container,this.cn("hasThumbs"))}attach(){const e=this,t=e.instance;t.on("initSlide",e.onInitSlide),t.state===ye.Init?t.on("initSlides",e.onInitSlides):e.onInitSlides(),t.on("Panzoom.afterTransform",e.onTransformM),t.on("Panzoom.refresh",e.onRefreshM),t.on("change",e.onChangeM)}detach(){const e=this,t=e.instance;t.off("initSlide",e.onInitSlide),t.off("initSlides",e.onInitSlides),t.off("Panzoom.afterTransform",e.onTransformM),t.off("Panzoom.refresh",e.onRefreshM),t.off("change",e.onChangeM),e.cleanup()}};Object.defineProperty(Ye,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:$e});const Ue=Object.assign(Object.assign({},$e),{key:"t",showOnStart:!0,parentEl:null});class Ge extends Se{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.state!==Xe.Disabled}get isHidden(){return this.hidden}onInit(){const e=this.instance,t=e.carousel;if(this.ref||!t)return;const n=this.option("parentEl")||e.footer||e.container;n&&(t.options.Thumbs=te({},this.options,{parentEl:n,classes:{container:"f-thumbs fancybox__thumbs"},Carousel:{Sync:{friction:e.option("Carousel.friction")},on:{click:(e,t)=>{t.stopPropagation()}}},on:{ready:e=>{const t=e.container;t&&this.hidden&&(this.refresh(),t.style.transition="none",this.hide(),t.offsetHeight,queueMicrotask((()=>{t.style.transition="",this.show()})))}}}),t.attachPlugins({Thumbs:Ye}),this.ref=t.plugins.Thumbs,this.option("showOnStart")||(this.ref.state=Xe.Hidden,this.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;e&&e.state!==Xe.Disabled&&(e.state!==Xe.Hidden?this.hidden?this.show():this.hide():e.build())}show(){const e=this.ref,t=e&&e.state!==Xe.Disabled&&e.container;t&&(this.refresh(),t.offsetHeight,t.removeAttribute("aria-hidden"),t.classList.remove("is-hidden"),this.hidden=!1)}hide(){const e=this.ref,t=e&&e.container;t&&(this.refresh(),t.offsetHeight,t.classList.add("is-hidden"),t.setAttribute("aria-hidden","true")),this.hidden=!0}refresh(){const e=this.ref;if(!e||e.state===Xe.Disabled)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===je.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(Ge,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ue});const Ze={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 Ke;!function(e){e[e.Init=0]="Init",e[e.Ready=1]="Ready",e[e.Disabled=2]="Disabled"}(Ke||(Ke={}));const Je={tabindex:"-1",width:"24",height:"24",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"};class Qe extends Se{constructor(){super(...arguments),Object.defineProperty(this,"state",{enumerable:!0,configurable:!0,writable:!0,value:Ke.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");de(n,"fancybox__toolbar__column is-"+e);for(const e of t)n.appendChild(e);"auto"!==i||"middle"!==e||t.length||(i=!0),a.appendChild(n)}!0===i&&de(a,"is-absolute"),this.state=Ke.Ready,this.onRefresh()}else this.state=Ke.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&&ue(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!==Re.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,n=document.createElement("div");return de(n,"fancybox__toolbar"),t.prepend(n),n.addEventListener("click",this.onClick,{passive:!1,capture:!0}),e&&de(e,"has-toolbar"),this.container=n,n}createEl(e){var t;const n=this.instance.carousel;if(!n)return null;if("toggleFS"===e)return null;if("fullscreen"===e&&!this.instance.fsAPI)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!==Ze[e]&&!r)return null;if("download"===e&&!s)return null;if("thumbs"===e){const e=this.instance.plugins.Thumbs;if(!e||!e.isEnabled)return null}if("slideshow"===e&&(!(null===(t=this.instance.carousel)||void 0===t?void 0:t.plugins.Autoplay)||o<2))return null;if(void 0!==Ze[e]){const t=Ze[e];i=document.createElement("button"),i.setAttribute("title",this.instance.localize(`{{${e.toUpperCase()}}}`)),de(i,"f-button"),t.action&&(i.dataset.panzoomAction=t.action),t.change&&(i.dataset.panzoomChange=JSON.stringify(t.change)),i.appendChild(X(this.instance.localize(t.icon)))}else{const t=(this.option("items")||[])[e];t&&(i=X(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(Je))a.getAttribute(e)||a.setAttribute(e,String(t));return i}removeContainer(){const e=this.container;e&&e.remove(),this.container=null,this.state=Ke.Disabled;const t=this.instance.container;t&&he(t,"has-toolbar")}attach(){const e=this,t=e.instance;t.on("Carousel.initSlides",e.onReady),t.on("done",e.onDone),t.on("reveal",e.onChange),t.on("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",e.onChange),t.off("Carousel.change",e.onChange),e.removeContainer()}}Object.defineProperty(Qe,"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 et={Hash:Fe,Html:We,Images:He,Slideshow:Ve,Thumbs:Ge,Toolbar:Qe},tt=function(){var e=window.getSelection();return e&&"Range"===e.type};let nt=null,it=null;const ot=new Map;let rt=0;class st extends oe{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,"state",{enumerable:!0,configurable:!0,writable:!0,value:je.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,"footer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"caption",{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}),Object.defineProperty(this,"fsAPI",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.fsAPI=(()=>{let e,t="",n="",i="";return document.fullscreenEnabled?(t="requestFullscreen",n="exitFullscreen",i="fullscreenElement"):document.webkitFullscreenEnabled&&(t="webkitRequestFullscreen",n="webkitExitFullscreen",i="webkitFullscreenElement"),t&&(e={request:function(e){return"webkitRequestFullscreen"===t?e[t](Element.ALLOW_KEYBOARD_INPUT):e[t]()},exit:function(){return document[i]&&document[n]()},isFullscreen:function(){return document[i]}}),e})(),this.id=t.id||++rt,ot.set(this.id,this),this.userSlides=e,this.userPlugins=n,queueMicrotask((()=>{this.init()}))}init(){if(this.state===je.Destroy)return;this.state=je.Init,this.attachPlugins(Object.assign(Object.assign({},st.Plugins),this.userPlugins)),this.emit("init"),!0===this.option("hideScrollbar")&&(()=>{if(!ke)return;const e=document.body;if(e.classList.contains("hide-scrollbar"))return;let t=window.innerWidth-document.documentElement.getBoundingClientRect().width;t<0&&(t=0);const n=e.currentStyle||window.getComputedStyle(e),i=parseFloat(n.marginRight);document.documentElement.style.setProperty("--fancybox-scrollbar-compensate",`${t}px`),i&&e.style.setProperty("--fancybox-body-margin",`${i}px`),e.classList.add("hide-scrollbar")})(),this.initLayout(),this.scale();const e=()=>{this.initCarousel(this.userSlides),this.state=je.Ready,this.attachEvents(),this.emit("ready"),setTimeout((()=>{this.container&&this.container.setAttribute("aria-hidden","false")}),16)},t=this.fsAPI;this.option("Fullscreen.autoStart")&&t&&!t.isFullscreen()?t.request(this.container).then((()=>e())).catch((()=>e())):e()}initLayout(){var e,t;const n=this.option("parentEl")||document.body,i=X(this.localize(this.option("tpl.main")||""));i&&(i.setAttribute("id",`fancybox-${this.id}`),i.setAttribute("aria-label",this.localize("{{MODAL}}")),i.classList.toggle("is-compact",this.isCompact),de(i,this.option("mainClass")||""),this.container=i,this.footer=i.querySelector(".fancybox__footer"),n.appendChild(i),de(document.documentElement,"with-fancybox"),nt&&it||(nt=document.createElement("span"),de(nt,"fancybox-focus-guard"),nt.setAttribute("tabindex","0"),nt.setAttribute("aria-hidden","true"),nt.setAttribute("aria-label","Focus guard"),it=nt.cloneNode(),null===(e=i.parentElement)||void 0===e||e.insertBefore(nt,i),null===(t=i.parentElement)||void 0===t||t.append(it)),this.option("animated")&&(de(i,"is-animated"),setTimeout((()=>{this.isClosing()||he(i,"is-animated")}),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 Ae(n,te({},{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"],(()=>{var e;const t=this.getSlide();t&&(null===(e=t.panzoom)||void 0===e||e.updateControls()),this.manageCaption(t)})),i.on("removeSlide",((e,t)=>{t.closeBtnEl&&t.closeBtnEl.remove(),t.closeBtnEl=void 0,t.captionEl&&t.captionEl.remove(),t.captionEl=void 0,t.spinnerEl&&t.spinnerEl.remove(),t.spinnerEl=void 0,t.state=void 0})),i.on("Panzoom.touchStart",(()=>{this.isCompact||this.endIdle()})),i.on("settle",(()=>{this.idleTimer||this.isCompact||!this.option("idle")||this.setIdle(),this.option("autoFocus")&&this.checkFocus()})),this.option("dragToClose")&&(i.on("Panzoom.afterTransform",((e,t)=>{const n=this.getSlide();if(n&&V(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&&V(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("disabled"),n.removeAttribute("tabindex")):(n.setAttribute("disabled",""),n.setAttribute("tabindex","-1"));for(const n of t.querySelectorAll("[data-fancybox-prev]"))e.page>0?(n.removeAttribute("disabled"),n.removeAttribute("tabindex")):(n.setAttribute("disabled",""),n.setAttribute("tabindex","-1"))}const n=this.getSlide();if(!n)return;let i=n.downloadSrc||"";i||"image"!==n.type||n.error||"string"!=typeof n.src||(i=n.src);for(const e of t.querySelectorAll("[data-fancybox-download]")){const t=n.downloadFilename;i?(e.removeAttribute("disabled"),e.removeAttribute("tabindex"),e.setAttribute("href",i),e.setAttribute("download",t||i),e.setAttribute("target","_blank")):(e.setAttribute("disabled",""),e.setAttribute("tabindex","-1"),e.removeAttribute("href"),e.removeAttribute("download"))}})),this.emit("initCarousel")}attachEvents(){const e=this.container;if(!e)return;e.addEventListener("click",this.onClick,{passive:!1,capture:!1}),e.addEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),document.addEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),document.addEventListener("visibilitychange",this.onVisibilityChange,!1),document.addEventListener("mousemove",this.onMousemove),this.option("trapFocus")&&document.addEventListener("focus",this.onFocus,!0),window.addEventListener("resize",this.onResize);const t=window.visualViewport;t&&(t.addEventListener("scroll",this.onResize),t.addEventListener("resize",this.onResize))}detachEvents(){const e=this.container;if(!e)return;document.removeEventListener("keydown",this.onKeydown,{passive:!1,capture:!0}),e.removeEventListener("wheel",this.onWheel,{passive:!1,capture:!1}),e.removeEventListener("click",this.onClick,{passive:!1,capture:!1}),document.removeEventListener("mousemove",this.onMousemove),window.removeEventListener("resize",this.onResize);const t=window.visualViewport;t&&(t.removeEventListener("resize",this.onResize),t.removeEventListener("scroll",this.onResize)),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),document.removeEventListener("focus",this.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,n;const{container:i,isCompact:o}=this;if(!i||this.isClosing())return;!o&&this.option("idle")&&this.resetIdle();const r=document.activeElement;if(tt()&&r&&i.contains(r))return;const s=e.composedPath()[0];if(s===(null===(t=this.carousel)||void 0===t?void 0:t.container))return;if(s.closest(".f-spinner")||s.closest("[data-fancybox-close]"))return e.preventDefault(),void this.close(e);if(s.closest("[data-fancybox-prev]"))return e.preventDefault(),void this.prev();if(s.closest("[data-fancybox-next]"))return e.preventDefault(),void this.next();if(o&&"image"===(null===(n=this.getSlide())||void 0===n?void 0:n.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 a=!1;if(s.closest(".fancybox__content")){if(r){if(r.closest("[contenteditable]"))return;s.matches(Le)||r.blur()}if(tt())return;a=this.option("contentClick")}else s.closest(".fancybox__carousel")&&!s.matches(Le)&&(a=this.option("backdropClick"));"close"===a?(e.preventDefault(),this.close(e)):"next"===a?(e.preventDefault(),this.next()):"prev"===a&&(e.preventDefault(),this.prev())}onWheel(e){const t=this.option("wheel",e),n="slide"===t,i=[-e.deltaX||0,-e.deltaY||0,-e.detail||0].reduce((function(e,t){return Math.abs(t)>Math.abs(e)?t:e})),o=Math.max(-1,Math.min(1,i)),r=Date.now();this.pwt&&r-this.pwt<300?n&&e.preventDefault():(this.pwt=r,this.emit("wheel",e),e.defaultPrevented||("close"===t?(e.preventDefault(),this.close(e)):"slide"===t&&(e.preventDefault(),this[o>0?"prev":"next"]())))}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||e.ctrlKey||e.altKey||e.shiftKey)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&&ue(i)&&(i.isContentEditable||-1!==["TEXTAREA","OPTION","INPUT","SELECT","VIDEO"].indexOf(i.nodeName)))return;this.emit("keydown",t,e);const s=n[t];"function"==typeof this[s]&&(e.preventDefault(),this[s]())}onResize(){const e=this.container;if(!e)return;const t=this.isCompact;e.classList.toggle("is-compact",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===Ke.Ready)return}if(!t)return;if(!e.contentEl||e.closeBtnEl)return;const n=this.option("tpl.closeButton");if(n){const t=X(this.localize(n));e.closeBtnEl=e.contentEl.appendChild(t),e.el&&de(e.el,"has-close-btn")}}manageCaption(e){var t,n;const i="fancybox__caption",o="has-caption",r=this.container;if(!r)return;const s=this.isCompact||this.option("commonCaption"),a=!s;if(this.caption&&this.stop(this.caption),a&&this.caption&&(this.caption.remove(),this.caption=null),s&&!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,he(e.el,o),null===(n=e.el)||void 0===n||n.removeAttribute("aria-labelledby"));if(e||(e=this.getSlide()),!e||s&&!this.isCurrentSlide(e))return;const l=e.el;let c=this.optionFor(e,"caption","");if("string"!=typeof c||!c.length)return void(s&&this.caption&&this.animate(this.caption,"f-fadeOut",(()=>{var e;null===(e=this.caption)||void 0===e||e.remove(),this.caption=null})));let u=null;if(a){if(u=e.captionEl||null,l&&!u){const t=`fancybox__caption_${this.id}_${e.index}`;u=document.createElement("div"),de(u,i),u.setAttribute("id",t),e.captionEl=l.appendChild(u),de(l,o),l.setAttribute("aria-labelledby",t)}}else u=this.caption,u||(u=r.querySelector("."+i)),u||(u=document.createElement("div"),u.dataset.fancyboxCaption="",de(u,i),u.innerHTML=c,(this.footer||r).prepend(u)),de(r,o),this.caption=u;u&&(u.innerHTML=c)}checkFocus(e){var t;const n=document.activeElement||null;n&&(null===(t=this.container)||void 0===t?void 0:t.contains(n))||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=this.getSlide();if(!o||!(null===(t=this.carousel)||void 0===t?void 0:t.viewport))return;if(!e&&n&&o.contains(n))return;const s=r&&r.state===Re.Ready?r.el:null;if(!s||s.contains(n)||o===n)return;e&&e.cancelable&&e.preventDefault(),this.ignoreFocusChange=!0;const a=Array.from(o.querySelectorAll(Le));let l=[],c=null;for(let e of a){const t=!e.offsetParent||e.closest('[aria-hidden="true"]'),n=s&&s.contains(e),i=!this.carousel.viewport.contains(e);e===o||(n||i)&&!t?(l.push(e),void 0!==e.dataset.origTabindex&&(e.tabIndex=parseFloat(e.dataset.origTabindex)),e.removeAttribute("data-orig-tabindex"),!e.hasAttribute("autoFocus")&&c||(c=e)):(e.dataset.origTabindex=void 0===e.dataset.origTabindex?e.getAttribute("tabindex")||void 0:e.dataset.origTabindex,e.tabIndex=-1)}let u=null;e?(!i||l.indexOf(i)<0)&&(u=c||o,l.length&&(n===it?u=l[0]:this.lastFocus!==o&&n!==nt||(u=l[l.length-1]))):u=r&&"image"===r.type?o:c||o,u&&De(u),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=st.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(),he(e,t))};e.dataset.animationName=t,e.addEventListener("animationend",i),de(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(ue(t)?o=t:(o=X(t+""),ue(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}ue(o)&&e.filter&&!e.error&&(o=o.querySelector(e.filter)),o&&ue(o)?(de(o,"fancybox__content"),e.id&&o.setAttribute("id",e.id),"none"!==o.style.display&&"none"!==getComputedStyle(o).getPropertyValue("display")||(o.style.display=e.display||this.option("defaultDisplay")||"flex"),i.classList.add(`has-${e.error?"error":e.type||"unknown"}`),i.prepend(o),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=Re.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=Re.Ready,this.emit("done",e),de(e.el,"is-done"),this.isCurrentSlide(e)&&this.option("autoFocus")&&queueMicrotask((()=>{this.option("autoFocus")&&(this.option("autoFocus")?this.focus():this.checkFocus())})),this.isOpeningSlide(e)&&!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.index===(null===(n=this.getSlide())||void 0===n?void 0:n.index)}showLoading(e){e.state=Re.Loading;const t=e.el;t&&(de(t,"is-loading"),this.emit("loading",e),e.spinnerEl||setTimeout((()=>{if(!this.isClosing()&&!e.spinnerEl&&e.state===Re.Loading){let n=X(ce);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():(he(t,"is-loading"),n&&this.animate(n,"f-fadeOut",(()=>{n.remove()})),e.state===Re.Loading&&(this.emit("loaded",e),e.state=Re.Ready))}setError(e,t){if(this.isClosing())return;this.emit("error"),e.error=t,this.hideLoading(e),this.clearContent(e);const n=document.createElement("div");n.classList.add("fancybox-error"),n.innerHTML=this.localize(t||"<p>{{ERROR}}</p>"),this.setContent(e,n)}clearContent(e){var t;null===(t=this.carousel)||void 0===t||t.emit("removeSlide",e),e.contentEl&&(e.contentEl.remove(),e.contentEl=void 0),e.closeBtnEl&&(e.closeBtnEl.remove(),e.closeBtnEl=void 0);const n=e.el;n&&(he(n,"is-loading"),he(n,"has-error"),he(n,"has-unknown"),he(n,`has-${e.type||"unknown"}`))}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.fsAPI,o=()=>{this.proceedClose(e,t)};i&&i.isFullscreen()?Promise.resolve(i.exit()).then((()=>o())):o()}clearIdle(){this.idleTimer&&clearTimeout(this.idleTimer),this.idleTimer=null}setIdle(e=!1){const t=()=>{this.clearIdle(),this.idle=!0,de(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,he(this.container,"is-idle"),this.emit("endIdle"))}resetIdle(){this.endIdle(),this.setIdle()}toggleIdle(){this.idle?this.endIdle():this.setIdle(!0)}toggleFullscreen(){const e=this.fsAPI;e&&(e.isFullscreen()?e.exit():this.container&&e.request(this.container))}isClosing(){return[je.Closing,je.CustomClosing,je.Destroy].includes(this.state)}proceedClose(e,t){var n,i;this.state=je.Closing,this.clearIdle(),this.detachEvents();const o=this.container,r=this.carousel,s=this.getSlide(),a=s&&this.option("placeFocusBack")?s.triggerEl||this.option("trigger"):null;if(a&&(Oe(a)?De(a):a.focus()),o&&(de(o,"is-closing"),o.setAttribute("aria-hidden","true"),this.option("animated")&&de(o,"is-animated"),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=Re.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)}}this.emit("close",e),this.state!==je.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===je.Destroy)return;this.state=je.Destroy,null===(e=this.carousel)||void 0===e||e.destroy();const t=this.container;t&&t.remove(),ot.delete(this.id);const n=st.getInstance();n?n.focus():(nt&&(nt.remove(),nt=null),it&&(it.remove(),it=null),he(document.documentElement,"with-fancybox"),(()=>{if(!ke)return;const e=document,t=e.body;t.classList.remove("hide-scrollbar"),t.style.setProperty("--fancybox-body-margin",""),e.documentElement.style.setProperty("--fancybox-scrollbar-compensate","")})(),this.emit("destroy"))}static bind(e,t,n){if(!ke)return;let i,o="",r={};if(void 0===e?i=document.body:"string"==typeof e?(i=document.body,o=e,"object"==typeof t&&(r=t||{})):(i=e,"string"==typeof t&&(o=t),"object"==typeof n&&(r=n||{})),!i||!ue(i))return;o=o||"[data-fancybox]";const s=st.openers.get(i)||new Map;s.set(o,r),st.openers.set(i,s),1===s.size&&i.addEventListener("click",st.fromEvent)}static unbind(e,t){let n,i="";if("string"==typeof e?(n=document.body,i=e):(n=e,"string"==typeof t&&(i=t)),!n)return;const o=st.openers.get(n);o&&i&&o.delete(i),i&&o||(st.openers.delete(n),n.removeEventListener("click",st.fromEvent))}static destroy(){let e;for(;e=st.getInstance();)e.destroy();for(const e of st.openers.keys())e.removeEventListener("click",st.fromEvent);st.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([...st.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=te({},Ne,s);l.event=e,l.trigger=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=st.getInstance();return d&&d.options.trigger&&a.indexOf(d.options.trigger)>-1?void 0:(t&&(l.startIndex=a.indexOf(t)),st.fromNodes(a,l))}static fromSelector(e,t){let n=null,i="";if("string"==typeof e?(n=document.body,i=e):e instanceof HTMLElement&&"string"==typeof t&&(n=e,i=t),!n||!i)return!1;const o=st.openers.get(n);if(!o)return!1;const r=o.get(i);return!!r&&st.fromNodes(Array.from(n.querySelectorAll(i)),r)}static fromNodes(e,t){t=te({},Ne,t||{});const n=[];for(const i of e){const e=i.dataset||{},o=e.src||i.getAttribute("href")||i.getAttribute("currentSrc")||i.getAttribute("src")||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.src||void 0,!a&&r.dataset&&(a=r.dataset.lazySrc||r.dataset.src||void 0));const l={src:o,triggerEl:i,thumbEl:r,thumbElSrc:a,thumbSrc:a};for(const t in e)"fancybox"!==t&&(l[t]=e[t]+"");n.push(l)}return new st(n,t)}static getInstance(e){return e?ot.get(e):Array.from(ot.values()).reverse().find((e=>!e.isClosing()&&e))||null}static getSlide(){var e;return(null===(e=st.getInstance())||void 0===e?void 0:e.getSlide())||null}static show(e=[],t={}){return new st(e,t)}static next(){const e=st.getInstance();e&&e.next()}static prev(){const e=st.getInstance();e&&e.prev()}static close(e=!0,...t){if(e)for(const e of ot.values())e.close(...t);else{const e=st.getInstance();e&&e.close(...t)}}}Object.defineProperty(st,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.0.17"}),Object.defineProperty(st,"defaults",{enumerable:!0,configurable:!0,writable:!0,value:Ne}),Object.defineProperty(st,"Plugins",{enumerable:!0,configurable:!0,writable:!0,value:et}),Object.defineProperty(st,"openers",{enumerable:!0,configurable:!0,writable:!0,value:new Map}),st.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 at=n(9479),lt=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")},ct=n(9479);!function(){ct(".news.filters input").each((function(){lt(at(this)),at(this).on("blur",(function(){lt(at(this))})),at(this).on("focus",(function(){lt(at(this),!0)})),at(this).on("keyup",(function(){lt(at(this))}))}));var e=ct(".news.list.default .filters"),t=e.find("form"),n=e.find("fieldset"),i=t.find("button.search").clone(),o=t.find(".filter.keywords"),r=ct('<div class="keywordsSearch" />'),s=ct('<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=ct(this),n=e.closest(".field").siblings(".label");"all"!==e.val()&&ct(".activeFilters").removeClass("isHidden");var i=n.text().trim()||"",o=i;if("all"!==e.val()&&""!==e.val()){var r=ct('<button class="buttonInline" data-category="'.concat(o,'">').concat(i,"</button>"));ct(".activeFiltersList").append(r),r.on("click.filter",(function(n){n.preventDefault(),e.is("input")?e.val(""):e.val("All"),t.submit()}))}})),ct(".activeFiltersList .clearAll").on("click.filters",(function(n){n.preventDefault(),e.find(".filter input").each((function(){ct(this).val("all")})),t.submit()}))}();n(5767),n(6359);var ut=function(){return(ut=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}).apply(this,arguments)},ht=function(){function e(e,t,n){var i=this;this.endVal=t,this.options=n,this.version="2.3.2",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,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.callback&&i.callback()},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=0,c=n.length;l<c;++l)0!==l&&l%3==0&&(r=i.options.separator+r),r=n[c-l-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=ut(ut({},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+n.height+window.pageYOffset;i<t&&i>window.scrollY&&e.paused?(e.paused=!1,setTimeout((function(){return e.start()}),e.options.scrollSpyDelay),e.options.scrollSpyOnce&&(e.once=!0)):window.scrollY>i&&!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.callback=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=this.formattingFn(e);"INPUT"===this.el.tagName?this.el.value=t:"text"===this.el.tagName||"tspan"===this.el.tagName?this.el.textContent=t:this.el.innerHTML=t},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}(),dt=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=dt(".stat.hasAnimation");if(e.length&&!t()){e.each((function(){var e=dt(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)})),dt(".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 ht(t,n,i);dt(t).is(":visible")&&(o.error||o.start())}}}}()}()}();