PageSourceSearch

https://www.eauk.org/dist/assets/index-CtfCBndc.js

js eauk.org collected 2026-09-24 09:02:12 UTC 499,276 bytes, 70 lines download raw bytes

1import{r as pi,g as bs,c as il}from"./vendor-jquery-AS2qogP-.js";import{a as to}from"./vendor-aos-B3U8EP5G.js";import{g as If,n as Cn,a as ya,e as Ff,c as Dc,m as We,b as Nf,s as nl,d as Rf,f as rl,h as Rr,i as _i,j as Bf,k as Mc,l as qf,S as io}from"./vendor-swiper-BvnZjCSI.js";var jf=pi();const ut=bs(jf);var Lc={exports:{}};/*!
2 * Select2 4.0.13
3 * https://select2.github.io
4 *
5 * Released under the MIT license
6 * https://github.com/select2/select2/blob/master/LICENSE.md
7 */(function(e){(function(i){e.exports?e.exports=function(n,r){return r===void 0&&(typeof window<"u"?r=pi():r=pi()(n)),i(r),r}:i(jQuery)})(function(i){var n=function(){if(i&&i.fn&&i.fn.select2&&i.fn.select2.amd)var s=i.fn.select2.amd;var s;return function(){if(!s||!s.requirejs){s?o=s:s={};/**
8 * @license almond 0.3.3 Copyright jQuery Foundation and other contributors.
9 * Released under MIT license, http://github.com/requirejs/almond/LICENSE
10 */var a,o,c;(function(l){var f,d,h,p,g={},v={},y={},C={},T=Object.prototype.hasOwnProperty,_=[].slice,b=/\.js$/;function E(S,I){return T.call(S,I)}function L(S,I){var B,M,N,O,F,D,Y,z,K,ue,ne,se,de=I&&I.split("/"),fe=y.map,Ee=fe&&fe["*"]||{};if(S){for(S=S.split("/"),F=S.length-1,y.nodeIdCompat&&b.test(S[F])&&(S[F]=S[F].replace(b,"")),S[0].charAt(0)==="."&&de&&(se=de.slice(0,de.length-1),S=se.concat(S)),K=0;K<S.length;K++)if(ne=S[K],ne===".")S.splice(K,1),K-=1;else if(ne===".."){if(K===0||K===1&&S[2]===".."||S[K-1]==="..")continue;K>0&&(S.splice(K-1,2),K-=2)}S=S.join("/")}if((de||Ee)&&fe){for(B=S.split("/"),K=B.length;K>0;K-=1){if(M=B.slice(0,K).join("/"),de){for(ue=de.length;ue>0;ue-=1)if(N=fe[de.slice(0,ue).join("/")],N&&(N=N[M],N)){O=N,D=K;break}}if(O)break;!Y&&Ee&&Ee[M]&&(Y=Ee[M],z=K)}!O&&Y&&(O=Y,D=z),O&&(B.splice(0,D,O),S=B.join("/"))}return S}function P(S,I){return function(){var B=_.call(arguments,0);
10return typeof B[0]!="string"&&B.length===1&&B.push(null),d.apply(l,B.concat([S,I]))}}function j(S){return function(I){return L(I,S)}}function H(S){return function(I){g[S]=I}}function q(S){if(E(v,S)){var I=v[S];delete v[S],C[S]=!0,f.apply(l,I)}if(!E(g,S)&&!E(C,S))throw new Error("No "+S);return g[S]}function U(S){var I,B=S?S.indexOf("!"):-1;return B>-1&&(I=S.substring(0,B),S=S.substring(B+1,S.length)),[I,S]}function Q(S){return S?U(S):[]}h=function(S,I){var B,M=U(S),N=M[0],O=I[1];return S=M[1],N&&(N=L(N,O),B=q(N)),N?B&&B.normalize?S=B.normalize(S,j(O)):S=L(S,O):(S=L(S,O),M=U(S),N=M[0],S=M[1],N&&(B=q(N))),{f:N?N+"!"+S:S,n:S,pr:N,p:B}};function V(S){return function(){return y&&y.config&&y.config[S]||{}}}p={require:function(S){return P(S)},exports:function(S){var I=g[S];return typeof I<"u"?I:g[S]={}},module:function(S){return{id:S,uri:"",exports:g[S],config:V(S)}}},f=function(S,I,B,M){var N,O,F,D,Y,z,K=[],ue=typeof B,ne;if(M=M||S,z=Q(M),ue==="undefined"||ue==="function"){for(I=!I.length&&B.length?["require","exports","module"]:I,Y=0;Y<I.length;Y+=1)if(D=h(I[Y],z),O=D.f,O==="require")K[Y]=p.require(S);else if(O==="exports")K[Y]=p.exports(S),ne=!0;else if(O==="module")N=K[Y]=p.module(S);else if(E(g,O)||E(v,O)||E(C,O))K[Y]=q(O);else if(D.p)D.p.load(D.n,P(M,!0),H(O),{}),K[Y]=g[O];else throw new Error(S+" missing "+O);F=B?B.apply(g[S],K):void 0,S&&(N&&N.exports!==l&&N.exports!==g[S]?g[S]=N.exports:(F!==l||!ne)&&(g[S]=F))}else S&&(g[S]=B)},a=o=d=function(S,I,B,M,N){if(typeof S=="string")return p[S]?p[S](I):q(h(S,Q(I)).f);if(!S.splice){if(y=S,y.deps&&d(y.deps,y.callback),!I)return;I.splice?(S=I,I=B,B=null):S=l}return I=I||function(){},typeof B=="function"&&(B=M,M=N),M?f(l,S,I,B):setTimeout(function(){f(l,S,I,B)},4),d},d.config=function(S){return d(S)},a._defined=g,c=function(S,I,B){if(typeof S!="string")throw new Error("See almond README: incorrect module build, no module name");I.splice||(B=I,I=[]),!E(g,S)&&!E(v,S)&&(v[S]=[S,I,B])},c.amd={jQuery:!0}})(),s.requirejs=a,s.require=o,s.define=c}}(),s.define("almond",function(){}),s.define("jquery",[],function(){var a=i||$;return a==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),a}),s.define("select2/utils",["jquery"],function(a){var o={};o.Extend=function(d,h){var p={}.hasOwnProperty;function g(){this.constructor=d}for(var v in h)p.call(h,v)&&(d[v]=h[v]);return g.prototype=h.prototype,d.prototype=new g,d.__super__=h.prototype,d};function c(d){var h=d.prototype,p=[];for(var g in h){var v=h[g];typeof v=="function"&&g!=="constructor"&&p.push(g)}return p}o.Decorate=function(d,h){var p=c(h),g=c(d);function v(){var L=Array.prototype.unshift,P=h.prototype.constructor.length,j=d.prototype.constructor;P>0&&(L.call(arguments,d.prototype.constructor),j=h.prototype.constructor),j.apply(this,arguments)}h.displayName=d.displayName;function y(){this.constructor=v}v.prototype=new y;for(var C=0;C<g.length;C++){var T=g[C];v.prototype[T]=d.prototype[T]}for(var _=function(L){var P=function(){};L in v.prototype&&(P=v.prototype[L]);var j=h.prototype[L];return function(){var H=Array.prototype.unshift;return H.call(arguments,P),j.apply(this,arguments)}},b=0;b<p.length;b++){var E=p[b];v.prototype[E]=_(E)}return v};var l=function(){this.listeners={}};l.prototype.on=function(d,h){this.listeners=this.listeners||{},d in this.listeners?this.listeners[d].push(h):this.listeners[d]=[h]},l.prototype.trigger=function(d){var h=Array.prototype.slice,p=h.call(arguments,1);this.listeners=this.listeners||{},p==null&&(p=[]),p.length===0&&p.push({}),p[0]._type=d,d in this.listeners&&this.invoke(this.listeners[d],h.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},l.prototype.invoke=function(d,h){for(var p=0,g=d.length;p<g;p++)d[p].apply(this,h)},o.Observable=l,o.generateChars=function(d){for(var h="",p=0;p<d;p++){var g=Math.floor(Math.random()*36);h+=g.toString(36)}return h},o.bind=function(d,h){return function(){d.apply(h,arguments)}},o._convertData=function(d){for(var h in d){var p=h.split("-"),g=d;if(p.length!==1){for(var v=0;v<p.length;v++){var y=p[v];y=y.substring(0,1).toLowerCase()+y.substring(1),y in g||(g[y]={}),v==p.length-1&&(g[y]=d[h]),g=g[y]}delete d[h]}}return d},o.hasScroll=function(d,h){var p=a(h),g=h.style.overflowX,v=h.style.overflowY;return g===v&&(v==="hidden"||v==="visible")?!1:g==="scroll"||v==="scroll"?!0:p.innerHeight()<h.scrollHeight||p.innerWidth()<h.scrollWidth},o.escapeMarkup=function(d){var h={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof d!="string"?d:String(d).replace(/[&<>"'\/\\]/g,function(p){return h[p]})},o.appendMany=function(d,h){if(a.fn.jquery.substr(0,3)==="1.7"){var p=a();a.map(h,function(g){p=p.add(g)}),h=p}d.append(h)},o.__cache={};var f=0;return o.GetUniqueElementId=function(d){var h=d.getAttribute("data-select2-id");return h==null&&(d.id?(h=d.id,d.setAttribute("data-select2-id",h)):(d.setAttribute("data-select2-id",++f),h=f.toString())),h},o.StoreData=function(d,h,p){var g=o.GetUniqueElementId(d);o.__cache[g]||(o.__cache[g]={}),o.__cache[g][h]=p},o.GetData=function(d,h){var p=o.GetUniqueElementId(d);return h?o.__cache[p]&&o.__cache[p][h]!=null?o.__cache[p][h]:a(d).data(h):o.__cache[p]},o.RemoveData=function(d){var h=o.GetUniqueElementId(d);o.__cache[h]!=null&&delete o.__cache[h],d.removeAttribute("data-select2-id")},o}),s.define("select2/results",["jquery","./utils"],function(a,o){function c(l,f,d){this.$element=l,this.data=d,this.options=f,c.__super__.constructor.call(this)}return o.Extend(c,o.Observable),c.prototype.render=function(){var l=a('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&l.attr("aria-multiselectable","true"),this.$results=l,l},c.prototype.clear=function(){this.$results.empty()},c.prototype.displayMessage=function(l){var f=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var d=a('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),h=this.options.get("translations").get(l.message);d.append(f(h(l.args))),d[0].className+=" select2-results__message",this.$results.append(d)},c.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},c.prototype.append=function(l){this.hideLoading();var f=[];if(l.results==null||l.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}l.results=this.sort(l.results);for(var d=0;d<l.results.length;d++){var h=l.results[d],p=this.option(h);f.push(p)}this.$results.append(f)},c.prototype.position=function(l,f){var d=f.find(".select2-results");d.append(l)},c.prototype.sort=function(l){var f=this.options.get("sorter");return f(l)},c.prototype.highlightFirstItem=function(){var l=this.$results.find(".select2-results__option[aria-selected]"),f=l.filter("[aria-selected=true]");f.length>0?f.first().trigger("mouseenter"):l.first().trigger("mouseenter"),this.ensureHighlightVisible()},c.prototype.setClasses=function(){var l=this;this.data.current(function(f){var d=a.map(f,function(p){return p.id.toString()}),h=l.$results.find(".select2-results__option[aria-selected]");h.each(function(){var p=a(this),g=o.GetData(this,"data"),v=""+g.id;g.element!=null&&g.element.selected||g.element==null&&a.inArray(v,d)>-1?p.attr("aria-selected","true"):p.attr("aria-selected","false")})})},c.prototype.showLoading=function(l){this.hideLoading();var f=this.options.get("translations").get("searching"),d={disabled:!0,loading:!0,text:f(l)},h=this.option(d);h.className+=" loading-results",this.$results.prepend(h)},c.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},c.prototype.option=function(l){var f=document.createElement("li");f.className="select2-results__option";var d={role:"option","aria-selected":"false"},h=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(l.element!=null&&h.call(l.element,":disabled")||l.element==null&&l.disabled)&&(delete d["aria-selected"],d["aria-disabled"]="true"),l.id==null&&delete d["aria-selected"],l._resultId!=null&&(f.id=l._resultId),l.title&&(f.title=l.title),l.children&&(d.role="group",d["aria-label"]=l.text,delete d["aria-selected"]);for(var p in d){var g=d[p];f.setAttribute(p,g)}if(l.children){var v=a(f),y=document.createElement("strong");y.className="select2-results__group",a(y),this.template(l,y);for(var C=[],T=0;T<l.children.length;T++){var _=l.children[T],b=this.option(_);C.push(b)}var E=a("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});E.append(C),v.append(y),v.append(E)}else this.template(l,f);return o.StoreData(f,"data",l),f},c.prototype.bind=function(l,f){var d=this,h=l.id+"-results";this.$results.attr("id",h),l.on("results:all",function(p){d.clear(),d.append(p.data),l.isOpen()&&(d.setClasses(),d.highlightFirstItem())}),l.on("results:append",function(p){d.append(p.data),l.isOpen()&&d.setClasses()}),l.on("query",function(p){d.hideMessages(),d.showLoading(p)}),l.on("select",function(){l.isOpen()&&(d.setClasses(),d.options.get("scrollAfterSelect")&&d.highlightFirstItem())}),l.on("unselect",function(){l.isOpen()&&(d.setClasses(),d.options.get("scrollAfterSelect")&&d.highlightFirstItem())}),l.on("open",function(){d.$results.attr("aria-expanded","true"),d.$results.attr("aria-hidden","false"),d.setClasses(),d.ensureHighlightVisible()}
10),l.on("close",function(){d.$results.attr("aria-expanded","false"),d.$results.attr("aria-hidden","true"),d.$results.removeAttr("aria-activedescendant")}),l.on("results:toggle",function(){var p=d.getHighlightedResults();p.length!==0&&p.trigger("mouseup")}),l.on("results:select",function(){var p=d.getHighlightedResults();if(p.length!==0){var g=o.GetData(p[0],"data");p.attr("aria-selected")=="true"?d.trigger("close",{}):d.trigger("select",{data:g})}}),l.on("results:previous",function(){var p=d.getHighlightedResults(),g=d.$results.find("[aria-selected]"),v=g.index(p);if(!(v<=0)){var y=v-1;p.length===0&&(y=0);var C=g.eq(y);C.trigger("mouseenter");var T=d.$results.offset().top,_=C.offset().top,b=d.$results.scrollTop()+(_-T);y===0?d.$results.scrollTop(0):_-T<0&&d.$results.scrollTop(b)}}),l.on("results:next",function(){var p=d.getHighlightedResults(),g=d.$results.find("[aria-selected]"),v=g.index(p),y=v+1;if(!(y>=g.length)){var C=g.eq(y);C.trigger("mouseenter");var T=d.$results.offset().top+d.$results.outerHeight(!1),_=C.offset().top+C.outerHeight(!1),b=d.$results.scrollTop()+_-T;y===0?d.$results.scrollTop(0):_>T&&d.$results.scrollTop(b)}}),l.on("results:focus",function(p){p.element.addClass("select2-results__option--highlighted")}),l.on("results:message",function(p){d.displayMessage(p)}),a.fn.mousewheel&&this.$results.on("mousewheel",function(p){var g=d.$results.scrollTop(),v=d.$results.get(0).scrollHeight-g+p.deltaY,y=p.deltaY>0&&g-p.deltaY<=0,C=p.deltaY<0&&v<=d.$results.height();y?(d.$results.scrollTop(0),p.preventDefault(),p.stopPropagation()):C&&(d.$results.scrollTop(d.$results.get(0).scrollHeight-d.$results.height()),p.preventDefault(),p.stopPropagation())}),this.$results.on("mouseup",".select2-results__option[aria-selected]",function(p){var g=a(this),v=o.GetData(this,"data");if(g.attr("aria-selected")==="true"){d.options.get("multiple")?d.trigger("unselect",{originalEvent:p,data:v}):d.trigger("close",{});return}d.trigger("select",{originalEvent:p,data:v})}),this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(p){var g=o.GetData(this,"data");d.getHighlightedResults().removeClass("select2-results__option--highlighted"),d.trigger("results:focus",{data:g,element:a(this)})})},c.prototype.getHighlightedResults=function(){var l=this.$results.find(".select2-results__option--highlighted");return l},c.prototype.destroy=function(){this.$results.remove()},c.prototype.ensureHighlightVisible=function(){var l=this.getHighlightedResults();if(l.length!==0){var f=this.$results.find("[aria-selected]"),d=f.index(l),h=this.$results.offset().top,p=l.offset().top,g=this.$results.scrollTop()+(p-h),v=p-h;g-=l.outerHeight(!1)*2,d<=2?this.$results.scrollTop(0):(v>this.$results.outerHeight()||v<0)&&this.$results.scrollTop(g)}},c.prototype.template=function(l,f){var d=this.options.get("templateResult"),h=this.options.get("escapeMarkup"),p=d(l,f);p==null?f.style.display="none":typeof p=="string"?f.innerHTML=h(p):a(f).append(p)},c}),s.define("select2/keys",[],function(){var a={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46};return a}),s.define("select2/selection/base",["jquery","../utils","../keys"],function(a,o,c){function l(f,d){this.$element=f,this.options=d,l.__super__.constructor.call(this)}return o.Extend(l,o.Observable),l.prototype.render=function(){var f=a('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,o.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=o.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),f.attr("title",this.$element.attr("title")),f.attr("tabindex",this._tabindex),f.attr("aria-disabled","false"),this.$selection=f,f},l.prototype.bind=function(f,d){var h=this,p=f.id+"-results";this.container=f,this.$selection.on("focus",function(g){h.trigger("focus",g)}),this.$selection.on("blur",function(g){h._handleBlur(g)}),this.$selection.on("keydown",function(g){h.trigger("keypress",g),g.which===c.SPACE&&g.preventDefault()}),f.on("results:focus",function(g){h.$selection.attr("aria-activedescendant",g.data._resultId)}),f.on("selection:update",function(g){h.update(g.data)}),f.on("open",function(){h.$selection.attr("aria-expanded","true"),h.$selection.attr("aria-owns",p),h._attachCloseHandler(f)}),f.on("close",function(){h.$selection.attr("aria-expanded","fal
10se"),h.$selection.removeAttr("aria-activedescendant"),h.$selection.removeAttr("aria-owns"),h.$selection.trigger("focus"),h._detachCloseHandler(f)}),f.on("enable",function(){h.$selection.attr("tabindex",h._tabindex),h.$selection.attr("aria-disabled","false")}),f.on("disable",function(){h.$selection.attr("tabindex","-1"),h.$selection.attr("aria-disabled","true")})},l.prototype._handleBlur=function(f){var d=this;window.setTimeout(function(){document.activeElement==d.$selection[0]||a.contains(d.$selection[0],document.activeElement)||d.trigger("blur",f)},1)},l.prototype._attachCloseHandler=function(f){a(document.body).on("mousedown.select2."+f.id,function(d){var h=a(d.target),p=h.closest(".select2"),g=a(".select2.select2-container--open");g.each(function(){if(this!=p[0]){var v=o.GetData(this,"element");v.select2("close")}})})},l.prototype._detachCloseHandler=function(f){a(document.body).off("mousedown.select2."+f.id)},l.prototype.position=function(f,d){var h=d.find(".selection");h.append(f)},l.prototype.destroy=function(){this._detachCloseHandler(this.container)},l.prototype.update=function(f){throw new Error("The `update` method must be defined in child classes.")},l.prototype.isEnabled=function(){return!this.isDisabled()},l.prototype.isDisabled=function(){return this.options.get("disabled")},l}),s.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(a,o,c,l){function f(){f.__super__.constructor.apply(this,arguments)}return c.Extend(f,o),f.prototype.render=function(){var d=f.__super__.render.call(this);return d.addClass("select2-selection--single"),d.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),d},f.prototype.bind=function(d,h){var p=this;f.__super__.bind.apply(this,arguments);var g=d.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",g).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",g),this.$selection.on("mousedown",function(v){v.which===1&&p.trigger("toggle",{originalEvent:v})}),this.$selection.on("focus",function(v){}),this.$selection.on("blur",function(v){}),d.on("focus",function(v){d.isOpen()||p.$selection.trigger("focus")})},f.prototype.clear=function(){var d=this.$selection.find(".select2-selection__rendered");d.empty(),d.removeAttr("title")},f.prototype.display=function(d,h){var p=this.options.get("templateSelection"),g=this.options.get("escapeMarkup");return g(p(d,h))},f.prototype.selectionContainer=function(){return a("<span></span>")},f.prototype.update=function(d){if(d.length===0){this.clear();return}var h=d[0],p=this.$selection.find(".select2-selection__rendered"),g=this.display(h,p);p.empty().append(g);var v=h.title||h.text;v?p.attr("title",v):p.removeAttr("title")},f}),s.define("select2/selection/multiple",["jquery","./base","../utils"],function(a,o,c){function l(f,d){l.__super__.constructor.apply(this,arguments)}return c.Extend(l,o),l.prototype.render=function(){var f=l.__super__.render.call(this);return f.addClass("select2-selection--multiple"),f.html('<ul class="select2-selection__rendered"></ul>'),f},l.prototype.bind=function(f,d){var h=this;l.__super__.bind.apply(this,arguments),this.$selection.on("click",function(p){h.trigger("toggle",{originalEvent:p})}),this.$selection.on("click",".select2-selection__choice__remove",function(p){if(!h.isDisabled()){var g=a(this),v=g.parent(),y=c.GetData(v[0],"data");h.trigger("unselect",{originalEvent:p,data:y})}})},l.prototype.clear=function(){var f=this.$selection.find(".select2-selection__rendered");f.empty(),f.removeAttr("title")},l.prototype.display=function(f,d){var h=this.options.get("templateSelection"),p=this.options.get("escapeMarkup");return p(h(f,d))},l.prototype.selectionContainer=function(){var f=a('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">&times;</span></li>');return f},l.prototype.update=function(f){if(this.clear(),f.length!==0){for(var d=[],h=0;h<f.length;h++){var p=f[h],g=this.selectionContainer(),v=this.display(p,g);g.append(v);var y=p.title||p.text;y&&g.attr("title",y),c.StoreData(g[0],"data",p),d.push(g)}var C=this.$selection.find(".select2-selection__rendered");c.appendMany(C,d)}},l}),s.define("select2/selection/placeholder",["../utils"],function(a){function o(c,l,f){this.placeholder=this.normalizePlaceholder(f.get("placeholder")),c.call(this,l,f)}return o.prototype.normalizePlaceholder=function(c,l){return typeof l=="string"&&(l={id:"",text:l}),l},o.prototype.createPlaceholder=function(c,l){var f=this.selectionContainer();return f.html(this.display(l)),f.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),f},o.prototype.update=function(c,l){var f=l.length==1&&l[0].id!=this.placeholder.id,d=l.length>1;if(d||f)return c.call(this,l);this.clear();var h=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(h)},o}
10),s.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(a,o,c){function l(){}return l.prototype.bind=function(f,d,h){var p=this;f.call(this,d,h),this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",function(g){p._handleClear(g)}),d.on("keypress",function(g){p._handleKeyboardClear(g,d)})},l.prototype._handleClear=function(f,d){if(!this.isDisabled()){var h=this.$selection.find(".select2-selection__clear");if(h.length!==0){d.stopPropagation();var p=c.GetData(h[0],"data"),g=this.$element.val();this.$element.val(this.placeholder.id);var v={data:p};if(this.trigger("clear",v),v.prevented){this.$element.val(g);return}for(var y=0;y<p.length;y++)if(v={data:p[y]},this.trigger("unselect",v),v.prevented){this.$element.val(g);return}this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}},l.prototype._handleKeyboardClear=function(f,d,h){h.isOpen()||(d.which==o.DELETE||d.which==o.BACKSPACE)&&this._handleClear(d)},l.prototype.update=function(f,d){if(f.call(this,d),!(this.$selection.find(".select2-selection__placeholder").length>0||d.length===0)){var h=this.options.get("translations").get("removeAllItems"),p=a('<span class="select2-selection__clear" title="'+h()+'">&times;</span>');c.StoreData(p[0],"data",d),this.$selection.find(".select2-selection__rendered").prepend(p)}},l}),s.define("select2/selection/search",["jquery","../utils","../keys"],function(a,o,c){function l(f,d,h){f.call(this,d,h)}return l.prototype.render=function(f){var d=a('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></li>');this.$searchContainer=d,this.$search=d.find("input");var h=f.call(this);return this._transferTabIndex(),h},l.prototype.bind=function(f,d,h){var p=this,g=d.id+"-results";f.call(this,d,h),d.on("open",function(){p.$search.attr("aria-controls",g),p.$search.trigger("focus")}),d.on("close",function(){p.$search.val(""),p.$search.removeAttr("aria-controls"),p.$search.removeAttr("aria-activedescendant"),p.$search.trigger("focus")}),d.on("enable",function(){p.$search.prop("disabled",!1),p._transferTabIndex()}),d.on("disable",function(){p.$search.prop("disabled",!0)}),d.on("focus",function(C){p.$search.trigger("focus")}),d.on("results:focus",function(C){C.data._resultId?p.$search.attr("aria-activedescendant",C.data._resultId):p.$search.removeAttr("aria-activedescendant")}),this.$selection.on("focusin",".select2-search--inline",function(C){p.trigger("focus",C)}),this.$selection.on("focusout",".select2-search--inline",function(C){p._handleBlur(C)}),this.$selection.on("keydown",".select2-search--inline",function(C){C.stopPropagation(),p.trigger("keypress",C),p._keyUpPrevented=C.isDefaultPrevented();var T=C.which;if(T===c.BACKSPACE&&p.$search.val()===""){var _=p.$searchContainer.prev(".select2-selection__choice");if(_.length>0){var b=o.GetData(_[0],"data");p.searchRemoveChoice(b),C.preventDefault()}}}),this.$selection.on("click",".select2-search--inline",function(C){p.$search.val()&&C.stopPropagation()});var v=document.documentMode,y=v&&v<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(C){if(y){p.$selection.off("input.search input.searchcheck");return}p.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".select2-search--inline",function(C){if(y&&C.type==="input"){p.$selection.off("input.search input.searchcheck");return}var T=C.which;T==c.SHIFT||T==c.CTRL||T==c.ALT||T!=c.TAB&&p.handleSearch(C)})},l.prototype._transferTabIndex=function(f){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},l.prototype.createPlaceholder=function(f,d){this.$search.attr("placeholder",d.text)},l.prototype.update=function(f,d){var h=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),f.call(this,d),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),h&&this.$search.trigger("focus")},l.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var f=this.$search.val();this.trigger("query",{term:f})}this._keyUpPrevented=!1},l.prototype.searchRemoveChoice=function(f,d){this.trigger("unselect",{data:d}),this.$search.val(d.text),this.handleSearch()},l.prototype.resizeSearch=function(){this.$search.css("width","25px");var f="";if(this.$search.attr("placeholder")!=="")f=this.$selection.find(".select2-selection__rendered").width();else{var d=this.$search.val().length+1;f=d*.75+"em"}this.$search.css("width",f)},l}),s.define("select2/selection/eventRelay",["jquery"],function(a){function o(){}return o.prototype.bind=function(c,l,f){var d=this,h=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],p=["opening","closing","selecting","unselecting","clearing"];c.call(this,l,f),l.on("*",function(g,v){if(a.inArray(g,h)!==-1){v=v||{};var y=a.Event("select2:"+g,{params:v});d.$element.trigger(y),a.inArray(g,p)!==-1&&(v.prevented=y.isDefaultPrevented())}})},o}),s.define("select2/translation",["jquery","require"],function(a,o){function c(l){this.dict=l||{}}return c.prototype.all=function(){return this.dict},c.prototype.get=function(l){return this.dict[l]},c.prototype.extend=function(l){this.dict=a.extend({},l.all(),this.dict)},c._cache={}
10,c.loadPath=function(l){if(!(l in c._cache)){var f=o(l);c._cache[l]=f}return new c(c._cache[l])},c}),s.define("select2/diacritics",[],function(){var a={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ç :"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA",Æ:"AE",Ǽ:"AE",Ç¢:"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B",ï¼¢:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B","Ƀ":"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",ï¼£:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C","È»":"C","Ꜿ":"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D","Ꝺ":"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",ï¼¥:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F","Ꝼ":"F","Ⓖ":"G",ï¼§:"G",Ç´:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ä :"G",Ǧ:"G",Ä¢:"G",Ǥ:"G",Ɠ:"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H","â±§":"H","â±µ":"H","Ɥ":"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Ä®:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ä´:"J","Ɉ":"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L",L:"L",Ä¿:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ä»:"L",Ḽ:"L",Ḻ:"L",Ł:"L","Ƚ":"L","â±¢":"L","â± ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",ï¼­:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M","â±®":"M",Ɯ:"M","Ⓝ":"N",ï¼®:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N","È ":"N",Ɲ:"N","Ꞑ":"N","Ꞥ":"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",È®:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Æ :"O",Ờ:"O",Ớ:"O",á» :"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O","Ꝋ":"O","Ꝍ":"O",Œ:"OE",Æ¢:"OI","Ꝏ":"OO",È¢:"OU","Ⓟ":"P",ï¼°:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P","â±£":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q",ï¼±:"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R",ï¼²:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S",ï¼³:"S","ẞ":"S",Ś:"S",Ṥ:"S",Ŝ:"S",á¹ :"S",Å :"S",Ṧ:"S",á¹¢:"S",Ṩ:"S",Ș:"S",Ş:"S","â±¾":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T",ï¼´:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Å¢:"T",á¹°:"T",á¹®:"T",Ŧ:"T",Ƭ:"T",Æ®:"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U",ï¼µ:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Å®:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",á»®:"U",Ử:"U",á»°:"U",Ụ:"U",á¹²:"U",Ų:"U",á¹¶:"U",á¹´:"U","Ʉ":"U","Ⓥ":"V",ï¼¶:"V",á¹¼:"V",á¹¾:"V",Ʋ:"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W",ï¼·:"W",Ẁ:"W",Ẃ:"W",Å´:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W","â±²":"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",ï¼¹:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",á»¶:"Y",á»´:"Y",Ƴ:"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Å»:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",Ç¡:"a",ä:"a",ǟ:"a",ả:"a",Ã¥:"a",Ç»:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a","â±¥":"a",ɐ:"a","ꜳ":"aa",æ:"ae",ǽ:"ae",Ç£:"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d","ꝺ":"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",á
10º¿:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",È©:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e","ɇ":"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f","ꝼ":"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",Ä¡:"g",ǧ:"g",Ä£:"g",Ç¥:"g",É :"g","ꞡ":"g","áµ¹":"g","ꝿ":"g","ⓗ":"h",h:"h",Ä¥:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h","ⱨ":"h","â±¶":"h",É¥:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",Ä©:"i",Ä«:"i",Ä­:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j","ɉ":"j","ⓚ":"k",k:"k",ḱ:"k",Ç©:"k",ḳ:"k",Ä·:"k",ḵ:"k",ƙ:"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",Å¿:"l",ł:"l",ƚ:"l",É«:"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n","ꞑ":"n","ꞥ":"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",È­:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",È«:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",Æ¡:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",Ç«:"o",Ç­:"o",ø:"o",Ç¿:"o",ɔ:"o","ꝋ":"o","ꝍ":"o",ɵ:"o",œ:"oe",Æ£:"oi",È£:"ou","ꝏ":"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",Æ¥:"p","áµ½":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q",q:"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r","ɍ":"r",ɽ:"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s",s:"s",ß:"s",ś:"s",á¹¥:"s",ŝ:"s",ṡ:"s",Å¡:"s",á¹§:"s",á¹£:"s",ṩ:"s",ș:"s",ş:"s","È¿":"s","ꞩ":"s","ꞅ":"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",Å¥:"t",á¹­:"t",ț:"t",Å£:"t",á¹±:"t",ṯ:"t",ŧ:"t",Æ­:"t",ʈ:"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",Å©:"u",á¹¹:"u",Å«:"u",á¹»:"u",Å­:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",á»§:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",á»­:"u",á»±:"u",ụ:"u",á¹³:"u",ų:"u",á¹·:"u",á¹µ:"u",ʉ:"u","ⓥ":"v",v:"v",á¹½:"v",ṿ:"v",ʋ:"v","ꝟ":"v",ʌ:"v","ꝡ":"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w","â±³":"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",Å·:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",á»·:"y",ẙ:"y",ỵ:"y",Æ´:"y","ɏ":"y","ỿ":"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",È¥:"z","ɀ":"z","ⱬ":"z","ꝣ":"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Î¥",Ϋ:"Î¥",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"};return a}),s.define("select2/data/base",["../utils"],function(a){function o(c,l){o.__super__.constructor.call(this)}return a.Extend(o,a.Observable),o.prototype.current=function(c){throw new Error("The `current` method must be defined in child classes.")},o.prototype.query=function(c,l){throw new Error("The `query` method must be defined in child classes.")},o.prototype.bind=function(c,l){},o.prototype.destroy=function(){},o.prototype.generateResultId=function(c,l){var f=c.id+"-result-";return f+=a.generateChars(4),l.id!=null?f+="-"+l.id.toString():f+="-"+a.generateChars(4),f},o}),s.define("select2/data/select",["./base","../utils","jquery"],function(a,o,c){function l(f,d){this.$element=f,this.options=d,l.__super__.constructor.call(this)}return o.Extend(l,a),l.prototype.current=function(f){var d=[],h=this;this.$element.find(":selected").each(function(){var p=c(this),g=h.item(p);d.push(g)}),f(d)},l.prototype.select=function(f){var d=this;if(f.selected=!0,c(f.element).is("option")){f.element.selected=!0,this.$element.trigger("input").trigger("change");return}if(this.$element.prop("multiple"))this.current(function(p){var g=[];f=[f],f.push.apply(f,p);for(var v=0;v<f.length;v++){var y=f[v].id;c.inArray(y,g)===-1&&g.push(y)}d.$element.val(g),d.$element.trigger("input").trigger("change")});else{var h=f.id;this.$element.val(h),this.$element.trigger("input").trigger("change")}},l.prototype.unselect=function(f){var d=this;if(this.$element.prop("multiple")){if(f.selected=!1,c(f.element).is("option")){f.element.selected=!1,this.$element.trigger("input").trigger("change");return}this.current(function(h){for(var p=[],g=0;g<h.length;g++){var v=h[g].id;v!==f.id&&c.inArray(v,p)===-1&&p.push(v)}d.$element.val(p),d.$element.trigger("input").trigger("change")})}},l.prototype.bind=function(f,d){var h=this;this.container=f,f.on("select",function(p){h.select(p.data)}),f.on("unselect",function(p){h.unselect(p.data)})},l.prototype.destroy=function(){this.$element.find("*").each(function(){o.RemoveData(this)})},l.prototype.query=function(f,d){var h=[],p=this,g=this.$element.children();g.each(function(){var v=c(this);if(!(!v.is("option")&&!v.is("optgroup"))){var y=p.item(v),C=p.matches(f,y);C!==null&&h.push(C)}}),d({results:h})},l.prototype.addOptions=function(f){o.appendMany(this.$element,f)},l.prototype.option=function(f){var d;f.children?(d=document.createElement("optgroup"),d.label=f.text):(d=document.createElement("option"),d.textContent!==void 0?d.textContent=f.text:d.innerText=f.text),f.id!==void 0&&(d.value=f.id),f.disabled&&(d.disabled=!0),f.selected&&(
10d.selected=!0),f.title&&(d.title=f.title);var h=c(d),p=this._normalizeItem(f);return p.element=d,o.StoreData(d,"data",p),h},l.prototype.item=function(f){var d={};if(d=o.GetData(f[0],"data"),d!=null)return d;if(f.is("option"))d={id:f.val(),text:f.text(),disabled:f.prop("disabled"),selected:f.prop("selected"),title:f.prop("title")};else if(f.is("optgroup")){d={text:f.prop("label"),children:[],title:f.prop("title")};for(var h=f.children("option"),p=[],g=0;g<h.length;g++){var v=c(h[g]),y=this.item(v);p.push(y)}d.children=p}return d=this._normalizeItem(d),d.element=f[0],o.StoreData(f[0],"data",d),d},l.prototype._normalizeItem=function(f){f!==Object(f)&&(f={id:f,text:f}),f=c.extend({},{text:""},f);var d={selected:!1,disabled:!1};return f.id!=null&&(f.id=f.id.toString()),f.text!=null&&(f.text=f.text.toString()),f._resultId==null&&f.id&&this.container!=null&&(f._resultId=this.generateResultId(this.container,f)),c.extend({},d,f)},l.prototype.matches=function(f,d){var h=this.options.get("matcher");return h(f,d)},l}),s.define("select2/data/array",["./select","../utils","jquery"],function(a,o,c){function l(f,d){this._dataToConvert=d.get("data")||[],l.__super__.constructor.call(this,f,d)}return o.Extend(l,a),l.prototype.bind=function(f,d){l.__super__.bind.call(this,f,d),this.addOptions(this.convertToOptions(this._dataToConvert))},l.prototype.select=function(f){var d=this.$element.find("option").filter(function(h,p){return p.value==f.id.toString()});d.length===0&&(d=this.option(f),this.addOptions(d)),l.__super__.select.call(this,f)},l.prototype.convertToOptions=function(f){var d=this,h=this.$element.find("option"),p=h.map(function(){return d.item(c(this)).id}).get(),g=[];function v(j){return function(){return c(this).val()==j.id}}for(var y=0;y<f.length;y++){var C=this._normalizeItem(f[y]);if(c.inArray(C.id,p)>=0){var T=h.filter(v(C)),_=this.item(T),b=c.extend(!0,{},C,_),E=this.option(b);T.replaceWith(E);continue}var L=this.option(C);if(C.children){var P=this.convertToOptions(C.children);o.appendMany(L,P)}g.push(L)}return g},l}),s.define("select2/data/ajax",["./array","../utils","jquery"],function(a,o,c){function l(f,d){this.ajaxOptions=this._applyDefaults(d.get("ajax")),this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults),l.__super__.constructor.call(this,f,d)}return o.Extend(l,a),l.prototype._applyDefaults=function(f){var d={data:function(h){return c.extend({},h,{q:h.term})},transport:function(h,p,g){var v=c.ajax(h);return v.then(p),v.fail(g),v}};return c.extend({},d,f,!0)},l.prototype.processResults=function(f){return f},l.prototype.query=function(f,d){var h=this;this._request!=null&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var p=c.extend({type:"GET"},this.ajaxOptions);typeof p.url=="function"&&(p.url=p.url.call(this.$element,f)),typeof p.data=="function"&&(p.data=p.data.call(this.$element,f));function g(){var v=p.transport(p,function(y){var C=h.processResults(y,f);h.options.get("debug")&&window.console&&console.error&&(!C||!C.results||!c.isArray(C.results))&&console.error("Select2: The AJAX results did not return an array in the `results` key of the response."),d(C)},function(){"status"in v&&(v.status===0||v.status==="0")||h.trigger("results:message",{message:"errorLoading"})});h._request=v}this.ajaxOptions.delay&&f.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(g,this.ajaxOptions.delay)):g()},l}),s.define("select2/data/tags",["jquery"],function(a){function o(c,l,f){var d=f.get("tags"),h=f.get("createTag");h!==void 0&&(this.createTag=h);var p=f.get("insertTag");if(p!==void 0&&(this.insertTag=p),c.call(this,l,f),a.isArray(d))for(var g=0;g<d.length;g++){var v=d[g],y=this._normalizeItem(v),C=this.option(y);this.$element.append(C)}}return o.prototype.query=function(c,l,f){var d=this;if(this._removeOldTags(),l.term==null||l.page!=null){c.call(this,l,f);return}function h(p,g){for(var v=p.results,y=0;y<v.length;y++){var C=v[y],T=C.children!=null&&!h({results:C.children},!0),_=(C.text||"").toUpperCase(),b=(l.term||"").toUpperCase(),E=_===b;if(E||T){if(g)return!1;p.data=v,f(p);return}}if(g)return!0;var L=d.createTag(l);if(L!=null){var P=d.option(L);P.attr("data-select2-tag",!0),d.addOptions([P]),d.insertTag(v,L)}p.results=v,f(p)}c.call(this,l,h)},o.prototype.createTag=function(c,l){var f=a.trim(l.term);return f===""?null:{id:f,text:f}},o.prototype.insertTag=function(c,l,f){l.unshift(f)},o.prototype._removeOldTags=function(c){var l=this.$element.find("option[data-select2-tag]");l.each(function(){this.selected||a(this).remove()})},o}),s.define("select2/data/tokenizer",["jquery"],function(a){function o(c,l,f){var d=f.get("tokenizer");d!==void 0&&(this.tokenizer=d),c.call(this,l,f)}return o.prototype.bind=function(c,l,f){c.call(this,l,f),this.$search=l.dropdown.$search||l.selection.$search||f.find(".select2-search__field")},o.prototype.query=function(c,l,f){var d=this;function h(v){var y=d._normalizeItem(v),C=d.$element.find("option").filter(function(){return a(this).val()===y.id});if(!C.length){var T=d.option(y);T.attr("data-select2-tag",!0),d._removeOldTags(),d.addOptions([T])}p(y)}function p(v){d.trigger("select",{data:v})}l.term=l.term||"";var g=this.tokenizer(l,this.options,h);g.term!==l.term&&(this.$search.length&&(this.$search.val(g.term),this.$search.trigger("focus")),l.term=g.term),c.call(this,l,f)},o.prototype.tokenizer=function(c,l,f,d){for(var h=f.get("tokenSeparators")||[],p=l.term,g=0,v=this.createTag||function(b){return{id:b.term,text:b.term}};g<p.length;){var y=p[g];if(a.inArray(y,h)===-1){g++;continue}var C=p.substr(0,g),T=a.extend({},l,{term:C}),_=v(T);if(_==null){g++;continue}d(_),p=p.substr(g+1)||"",g=0}return{term:p}},o}),s.define("select2/data/minimumInputLength",[],function(){function a(o,c,l){this.minimumInputLength=l.get("minimumInputLength"),o.call(this,c,l)}return a.prototype.query=function(o,c,l){if(c.term=c.term||"",c.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:c.term,params:c}});return}o.call(this,c,l)},a}),s.define("select2/data/maximumInputLength",[],function(){function a(o,c,l){this.maximumInputLength=l.get("maximumInputLength"),o.call(this,c,l)}return a.prototype.query=function(o,c,l){if(c.term=c.term||"",this.maximumInputLength>0&&c.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:c.term,params:c}});return}o.call(this,c,l)},a}),s.define("select2/data/maximumSelectionLength",[],function(){function a(o,c,l){this.maximumSelectionLength=l.get("maximumSelectionLength"),o.call(this,c,l)}return a.prototype.bind=function(o,c,l){var f=this;o.call(this,c,l),c.on("select",function(){f._checkIfMaximumSelected()})},a.prototype.query=function(o,c,l){var f=this;this._checkIfMaximumSelected(function(){o.call(f,c,l)})},a.prototype._checkIfMaximumSelected=function(o,c){var l=this;this.current(function(f){var d=f!=null?f.length:0;if(l.maximumSelectionLength>0&&d>=l.maximumSelectionLength){l.trigger("results:message",{message:"maximumSelected",args:{maximum:l.maximumSelectionLength}});return}c&&c()})},a}),s.define("select2/dropdown",["jquery","./utils"],function(a,o){function c(l,f){this.$element=l,this.options=f,c.__super__.constructor.call(this)}return o.Extend(c,o.Observable),c.prototype.render=function(){var l=a('<span class="select2-dropdown"><span class="select2-results"></span></span>');return l.attr("dir",this.options.get("dir")),this.$dropdown=l,l},c.prototype.bind=function(){},c.prototype.position=function(l,f){},c.prototype.destroy=function(){this.$dropdown.remove()},c}),s.define("select2/dropdown/search",["jquery","../utils"],function(a,o){function c(){}return c.prototype.render=function(l){var f=l.call(this),d=a('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=d,this.$search=d.find("input"),f.prepend(d),f},c.prototype.bind=function(l,f,d){var h=this,p=f.id+"-results";l.call(this,f,d),this.$search.on("keydown",function(g){h.trigger("keypress",g),h._keyUpPrevented=g.isDefaultPrevented()}),this.$search.on("input",function(g){a(this).off("keyup")}),this.$search.on("keyup input",function(g){h.handleSearch(g)}),f.on("open",function(){h.$search.attr("tabindex",0),h.$search.attr("aria-controls",p),h.$search.trigger("focus"),window.setTimeout(function(){h.$search.trigger("focus")},0)}),f.on("close",function(){h.$search.attr("tabindex",-1),h.$search.removeAttr("aria-controls"),h.$search.removeAttr("aria-activedescendant"),h.$search.val(""),h.$search.trigger("blur")}),f.on("focus",function(){f.isOpen()||h.$search.trigger("focus")}),f.on("results:all",function(g){if(g.query.term==null||g.query.term===""){var v=h.showSearch(g);v?h.$searchContainer.removeClass("select2-search--hide"):h.$searchContainer.addClass("select2-search--hide")}}),f.on("results:focus",function(g){g.data._resultId?h.$search.attr("aria-activedescendant",g.data._resultId):h.$search.removeAttr("aria-activedescendant")})},c.prototype.handleSearch=function(l){if(!this._keyUpPrevented){var f=this.$search.val();this.trigger("query",{term:f})}this._keyUpPrevented=!1},c.prototype.showSearch=function(l,f){return!0},c}),s.define("select2/dropdown/hidePlaceholder",[],function(){function a(o,c,l,f){this.placeholder=this.normalizePlaceholder(l.get("placeholder")),o.call(this,c,l,f)}return a.prototype.append=function(o,c){c.results=this.removePlaceholder(c.results),o.call(this,c)},a.prototype.normalizePlaceholder=function(o,c){return typeof c=="string"&&(c={id:"",text:c}),c},a.prototype.removePlaceholder=function(o,c){for(var l=c.slice(0),f=c.length-1;f>=0;f--){var d=c[f];this.placeholder.id===d.id&&l.splice(f,1)}return l},a}),s.define("select2/dropdown/infiniteScroll",["jquery"],function(a){function o(c,l,f,d){this.lastParams={},c.call(this,l,f,d),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return o.prototype.append=function(c,l){this.$loadingMore.remove(),this.loading=!1,c.call(this,l),this.showLoadingMore(l)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},o.prototype.bind=function(c,l,f){var d=this;c.call(this,l,f),l.on("query",function(h){d.lastParams=h,d.loading=!0}),l.on("query:append",function(h){d.lastParams=h,d.loading=!0}),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},o.prototype.loadMoreIfNeeded=function(){var c=a.contains(document.documentElement,this.$loadingMore[0]);if(!(this.loading||!c)){var l=this.$results.offset().top+this.$results.outerHeight(!1),f=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1);l+50>=f&&this.loadMore()}},o.prototype.loadMore=function(){this.loading=!0;var c=a.extend({},{page:1},this.lastParams);c.page++,this.trigger("query:append",c)},o.prototype.showLoadingMore=function(c,l){return l.pagination&&l.pagination.more},o.prototype.createLoadingMore=function(){var c=a('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),l=this.options.get("translations").get("loadingMore");return c.html(l(this.lastParams)),c},o}),s.define("select2/dropdown/attachBody",["jquery","../utils"],function(a,o){function c(l,f,d){this.$dropdownParent=a(d.get("dropdownParent")||document.body),l.call(this,f,d)}return c.prototype.bind=function(l,f,d){var h=this;l.call(this,f,d),f.on("open",function(){h._showDropdown(),h._attachPositioningHandler(f),h._bindContainerResultHandlers(f)}),f.on("close",function(){h._hideDropdown(),h._detachPositioningHandler(f)}),this.$dropdownContainer.on("mousedown",function(p){p.stopPropagation()})},c.prototype.destroy=function(l){l.call(this),this.$dropdownContainer.remove()},c.prototype.position=function(l,f,d){f.attr("class",d.attr("class")),f.removeClass("select2"),f.addClass("select2-container--open"),f.css({position:"absolute",top:-999999}),this.$container=d},c.prototype.render=function(l){var f=a("<span></span>"),d=l.call(this);return f.append(d),this.$dropdownContainer=f,f},c.prototype._hideDropdown=function(l){this.$dropdownContainer.detach()},c.prototype._bindContainerResultHandlers=function(l,f){if(!this._containerResultsHandlersBound){var d=this;f.on("results:all",function(){d._positionDropdown(),d._resizeDropdown()}),f.on("results:append",function(){d._positionDropdown(),d._resizeDropdown()}),f.on("results:message",function(){d._positionDropdown(),d._resizeDropdown()}),f.on("select",function(){d._positionDropdown(),d._resizeDropdown()}),f.on("unselect",function(){d._positionDropdown(),d._resizeDropdown()}),this._containerResultsHandlersBound=!0}},c.prototype._attachPositioningHandler=function(l,f){var d=this,h="scroll.
10select2."+f.id,p="resize.select2."+f.id,g="orientationchange.select2."+f.id,v=this.$container.parents().filter(o.hasScroll);v.each(function(){o.StoreData(this,"select2-scroll-position",{x:a(this).scrollLeft(),y:a(this).scrollTop()})}),v.on(h,function(y){var C=o.GetData(this,"select2-scroll-position");a(this).scrollTop(C.y)}),a(window).on(h+" "+p+" "+g,function(y){d._positionDropdown(),d._resizeDropdown()})},c.prototype._detachPositioningHandler=function(l,f){var d="scroll.select2."+f.id,h="resize.select2."+f.id,p="orientationchange.select2."+f.id,g=this.$container.parents().filter(o.hasScroll);g.off(d),a(window).off(d+" "+h+" "+p)},c.prototype._positionDropdown=function(){var l=a(window),f=this.$dropdown.hasClass("select2-dropdown--above"),d=this.$dropdown.hasClass("select2-dropdown--below"),h=null,p=this.$container.offset();p.bottom=p.top+this.$container.outerHeight(!1);var g={height:this.$container.outerHeight(!1)};g.top=p.top,g.bottom=p.top+g.height;var v={height:this.$dropdown.outerHeight(!1)},y={top:l.scrollTop(),bottom:l.scrollTop()+l.height()},C=y.top<p.top-v.height,T=y.bottom>p.bottom+v.height,_={left:p.left,top:g.bottom},b=this.$dropdownParent;b.css("position")==="static"&&(b=b.offsetParent());var E={top:0,left:0};(a.contains(document.body,b[0])||b[0].isConnected)&&(E=b.offset()),_.top-=E.top,_.left-=E.left,!f&&!d&&(h="below"),!T&&C&&!f?h="above":!C&&T&&f&&(h="below"),(h=="above"||f&&h!=="below")&&(_.top=g.top-E.top-v.height),h!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+h),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+h)),this.$dropdownContainer.css(_)},c.prototype._resizeDropdown=function(){var l={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(l.minWidth=l.width,l.position="relative",l.width="auto"),this.$dropdown.css(l)},c.prototype._showDropdown=function(l){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},c}),s.define("select2/dropdown/minimumResultsForSearch",[],function(){function a(c){for(var l=0,f=0;f<c.length;f++){var d=c[f];d.children?l+=a(d.children):l++}return l}function o(c,l,f,d){this.minimumResultsForSearch=f.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),c.call(this,l,f,d)}return o.prototype.showSearch=function(c,l){return a(l.data.results)<this.minimumResultsForSearch?!1:c.call(this,l)},o}),s.define("select2/dropdown/selectOnClose",["../utils"],function(a){function o(){}return o.prototype.bind=function(c,l,f){var d=this;c.call(this,l,f),l.on("close",function(h){d._handleSelectOnClose(h)})},o.prototype._handleSelectOnClose=function(c,l){if(l&&l.originalSelect2Event!=null){var f=l.originalSelect2Event;if(f._type==="select"||f._type==="unselect")return}var d=this.getHighlightedResults();if(!(d.length<1)){var h=a.GetData(d[0],"data");h.element!=null&&h.element.selected||h.element==null&&h.selected||this.trigger("select",{data:h})}},o}),s.define("select2/dropdown/closeOnSelect",[],function(){function a(){}return a.prototype.bind=function(o,c,l){var f=this;o.call(this,c,l),c.on("select",function(d){f._selectTriggered(d)}),c.on("unselect",function(d){f._selectTriggered(d)})},a.prototype._selectTriggered=function(o,c){var l=c.originalEvent;l&&(l.ctrlKey||l.metaKey)||this.trigger("close",{originalEvent:l,originalSelect2Event:c})},a}),s.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(a){var o=a.input.length-a.maximum,c="Please delete "+o+" character";return o!=1&&(c+="s"),c},inputTooShort:function(a){var o=a.minimum-a.input.length,c="Please enter "+o+" or more characters";return c},loadingMore:function(){return"Loading more results…"},maximumSelected:function(a){var o="You can only select "+a.maximum+" item";return a.maximum!=1&&(o+="s"),o},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),s.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(a,o,c,l,f,d,h,p,g,v,y,C,T,_,b,E,L,P,j,H,q,U,Q,V,S,I,B,M,N){function O(){this.reset()}O.prototype.apply=function(D){if(D=a.extend(!0,{},this.defaults,D),D.dataAdapter==null){if(D.ajax!=null?D.dataAdapter=b:D.data!=null?D.dataAdapter=_:D.dataAdapter=T,D.minimumInputLength>0&&(D.dataAdapter=v.Decorate(D.dataAdapter,P)),D.maximumInputLength>0&&(D.dataAdapter=v.Decorate(D.dataAdapter,j)),D.maximumSelectionLength>0&&(D.dataAdapter=v.Decorate(D.dataAdapter,H)),D.tags&&(D.dataAdapter=v.Decorate(D.dataAdapter,E)),(D.tokenSeparators!=null||D.tokenizer!=null)&&(D.dataAdapter=v.Decorate(D.dataAdapter,L)),D.query!=null){var Y=o(D.amdBase+"compat/query");D.dataAdapter=v.Decorate(D.dataAdapter,Y)}if(D.initSelection!=null){var z=o(D.amdBase+"compat/initSelection");D.dataAdapter=v.Decorate(D.dataAdapter,z)}}if(D.resultsAdapter==null&&(D.resultsAdapter=c,D.ajax!=null&&(D.resultsAdapter=v.Decorate(D.resultsAdapter,V)),D.placeholder!=null&&(D.resultsAdapter=v.Decorate(D.resultsAdapter,Q)),D.selectOnClose&&(D.resultsAdapter=v.Decorate(D.resultsAdapter,B))),D.dropdownAdapter==null){if(D.multiple)D.dropdownAdapter=q;else{var K=v.Decorate(q,U);D.dropdownAdapter=K}if(D.minimumResultsForSearch!==0&&(D.dropdownAdapter=v.Decorate(D.dropdownAdapter,I)),D.closeOnSelect&&(D.dropdownAdapter=v.Decorate(D.dropdownAdapter,M)),D.dropdownCssClass!=null||D.dropdownCss!=null||D.adaptDropdownCssClass!=null){var ue=o(D.amdBase+"compat/dropdownCss");D.dropdownAdapter=v.Decorate(D.dropdownAdapter,ue)}D.dropdownAdapter=v.Decorate(D.dropdownAdapter,S)}if(D.selectionAdapter==null){if(D.multiple?D.selectionAdapter=f:D.selectionAdapter=l,D.placeholder!=null&&(D.selectionAdapter=v.Decorate(D.selectionAdapter,d)),D.allowClear&&(D.selectionAdapter=v.Decorate(D.selectionAdapter,h)),D.multiple&&(D.selectionAdapter=v.Decorate(D.selectionAdapter,p)),D.containerCssClass!=null||D.containerCss!=null||D.adaptContainerCssClass!=null){var ne=o(D.amdBase+"compat/containerCss");D.selectionAdapter=v.Decorate(D.selectionAdapter,ne)}D.selectionAdapter=v.Decorate(D.selectionAdapter,g)}D.language=this._resolveLanguage(D.language),D.language.push("en");for(var se=[],de=0;de<D.language.length;de++){var fe=D.language[de];se.indexOf(fe)===-1&&se.push(fe)}return D.language=se,D.translations=this._processTranslations(D.language,D.debug),D},O.prototype.reset=function(){function D(z){function K(ue){return C[ue]||ue}
10return z.replace(/[^\u0000-\u007E]/g,K)}function Y(z,K){if(a.trim(z.term)==="")return K;if(K.children&&K.children.length>0){for(var ue=a.extend(!0,{},K),ne=K.children.length-1;ne>=0;ne--){var se=K.children[ne],de=Y(z,se);de==null&&ue.children.splice(ne,1)}return ue.children.length>0?ue:Y(z,ue)}var fe=D(K.text).toUpperCase(),Ee=D(z.term).toUpperCase();return fe.indexOf(Ee)>-1?K:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:v.escapeMarkup,language:{},matcher:Y,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(z){return z},templateResult:function(z){return z.text},templateSelection:function(z){return z.text},theme:"default",width:"resolve"}},O.prototype.applyFromElement=function(D,Y){var z=D.language,K=this.defaults.language,ue=Y.prop("lang"),ne=Y.closest("[lang]").prop("lang"),se=Array.prototype.concat.call(this._resolveLanguage(ue),this._resolveLanguage(z),this._resolveLanguage(K),this._resolveLanguage(ne));return D.language=se,D},O.prototype._resolveLanguage=function(D){if(!D)return[];if(a.isEmptyObject(D))return[];if(a.isPlainObject(D))return[D];var Y;a.isArray(D)?Y=D:Y=[D];for(var z=[],K=0;K<Y.length;K++)if(z.push(Y[K]),typeof Y[K]=="string"&&Y[K].indexOf("-")>0){var ue=Y[K].split("-"),ne=ue[0];z.push(ne)}return z},O.prototype._processTranslations=function(D,Y){for(var z=new y,K=0;K<D.length;K++){var ue=new y,ne=D[K];if(typeof ne=="string")try{ue=y.loadPath(ne)}catch{try{ne=this.defaults.amdLanguageBase+ne,ue=y.loadPath(ne)}catch{Y&&window.console&&console.warn&&console.warn('Select2: The language file for "'+ne+'" could not be automatically loaded. A fallback will be used instead.')}}else a.isPlainObject(ne)?ue=new y(ne):ue=ne;z.extend(ue)}return z},O.prototype.set=function(D,Y){var z=a.camelCase(D),K={};K[z]=Y;var ue=v._convertData(K);a.extend(!0,this.defaults,ue)};var F=new O;return F}),s.define("select2/options",["require","jquery","./defaults","./utils"],function(a,o,c,l){function f(d,h){if(this.options=d,h!=null&&this.fromElement(h),h!=null&&(this.options=c.applyFromElement(this.options,h)),this.options=c.apply(this.options),h&&h.is("input")){var p=a(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=l.Decorate(this.options.dataAdapter,p)}}return f.prototype.fromElement=function(d){var h=["select2"];this.options.multiple==null&&(this.options.multiple=d.prop("multiple")),this.options.disabled==null&&(this.options.disabled=d.prop("disabled")),this.options.dir==null&&(d.prop("dir")?this.options.dir=d.prop("dir"):d.closest("[dir]").prop("dir")?this.options.dir=d.closest("[dir]").prop("dir"):this.options.dir="ltr"),d.prop("disabled",this.options.disabled),d.prop("multiple",this.options.multiple),l.GetData(d[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),l.StoreData(d[0],"data",l.GetData(d[0],"select2Tags")),l.StoreData(d[0],"tags",!0)),l.GetData(d[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),d.attr("ajax--url",l.GetData(d[0],"ajaxUrl")),l.StoreData(d[0],"ajax-Url",l.GetData(d[0],"ajaxUrl")));var p={};function g(P,j){return j.toUpperCase()}for(var v=0;v<d[0].attributes.length;v++){var y=d[0].attributes[v].name,C="data-";if(y.substr(0,C.length)==C){var T=y.substring(C.length),_=l.GetData(d[0],T),b=T.replace(/-([a-z])/g,g);p[b]=_}}o.fn.jquery&&o.fn.jquery.substr(0,2)=="1."&&d[0].dataset&&(p=o.extend(!0,{},d[0].dataset,p));var E=o.extend(!0,{},l.GetData(d[0]),p);E=l._convertData(E);for(var L in E)o.inArray(L,h)>-1||(o.isPlainObject(this.options[L])?o.extend(this.options[L],E[L]):this.options[L]=E[L]);return this},f.prototype.get=function(d){return this.options[d]},f.prototype.set=function(d,h){this.options[d]=h},f}),s.define("select2/core",["jquery","./options","./utils","./keys"],function(a,o,c,l){var f=function(d,h){c.GetData(d[0],"select2")!=null&&c.GetData(d[0],"select2").destroy(),this.$element=d,this.id=this._generateId(d),h=h||{},this.options=new o(h,d),f.__super__.constructor.call(this);var p=d.attr("tabindex")||0;c.StoreData(d[0],"old-tabindex",p),d.attr("tabindex","-1");var g=this.options.get("dataAdapter");this.dataAdapter=new g(d,this.options);var v=this.render();this._placeContainer(v);var y=this.options.get("selectionAdapter");this.selection=new y(d,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,v);var C=this.options.get("dropdownAdapter");this.dropdown=new C(d,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,v);var T=this.options.get("resultsAdapter");this.results=new T(d,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var _=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current(function(b){_.trigger("selection:update",{data:b})}),d.addClass("select2-hidden-accessible"),d.attr("aria-hidden","true"),this._syncAttributes(),c.StoreData(d[0],"select2",this),d.data("select2",this)};return c.Extend(f,c.Observable),f.prototype._generateId=function(d){var h="";return d.attr("id")!=null?h=d.attr("id"):d.attr("name")!=null?h=d.attr("name")+"-"+c.generateChars(2):h=c.generateChars(4),h=h.replace(/(:|\.|\[|\]|,)/g,""),h="select2-"+h,h},f.prototype._placeContainer=function(d){d.insertAfter(this.$element);var h=this._resolveWidth(this.$element,this.options.get("width"));h!=null&&d.css("width",h)},f.prototype._resolveWidth=function(d,h){var p=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if(h=="resolve"){var g=this._resolveWidth(d,"style");return g??this._resolveWidth(d,"element")}if(h=="element"){var v=d.outerWidth(!1);return v<=0?"auto":v+"px"}if(h=="style"){var y=d.attr("style");
10if(typeof y!="string")return null;for(var C=y.split(";"),T=0,_=C.length;T<_;T=T+1){var b=C[T].replace(/\s/g,""),E=b.match(p);if(E!==null&&E.length>=1)return E[1]}return null}if(h=="computedstyle"){var L=window.getComputedStyle(d[0]);return L.width}return h},f.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},f.prototype._registerDomEvents=function(){var d=this;this.$element.on("change.select2",function(){d.dataAdapter.current(function(p){d.trigger("selection:update",{data:p})})}),this.$element.on("focus.select2",function(p){d.trigger("focus",p)}),this._syncA=c.bind(this._syncAttributes,this),this._syncS=c.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var h=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;h!=null?(this._observer=new h(function(p){d._syncA(),d._syncS(null,p)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",d._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",d._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",d._syncS,!1))},f.prototype._registerDataEvents=function(){var d=this;this.dataAdapter.on("*",function(h,p){d.trigger(h,p)})},f.prototype._registerSelectionEvents=function(){var d=this,h=["toggle","focus"];this.selection.on("toggle",function(){d.toggleDropdown()}),this.selection.on("focus",function(p){d.focus(p)}),this.selection.on("*",function(p,g){a.inArray(p,h)===-1&&d.trigger(p,g)})},f.prototype._registerDropdownEvents=function(){var d=this;this.dropdown.on("*",function(h,p){d.trigger(h,p)})},f.prototype._registerResultsEvents=function(){var d=this;this.results.on("*",function(h,p){d.trigger(h,p)})},f.prototype._registerEvents=function(){var d=this;this.on("open",function(){d.$container.addClass("select2-container--open")}),this.on("close",function(){d.$container.removeClass("select2-container--open")}),this.on("enable",function(){d.$container.removeClass("select2-container--disabled")}),this.on("disable",function(){d.$container.addClass("select2-container--disabled")}),this.on("blur",function(){d.$container.removeClass("select2-container--focus")}),this.on("query",function(h){d.isOpen()||d.trigger("open",{}),this.dataAdapter.query(h,function(p){d.trigger("results:all",{data:p,query:h})})}),this.on("query:append",function(h){this.dataAdapter.query(h,function(p){d.trigger("results:append",{data:p,query:h})})}),this.on("keypress",function(h){var p=h.which;d.isOpen()?p===l.ESC||p===l.TAB||p===l.UP&&h.altKey?(d.close(h),h.preventDefault()):p===l.ENTER?(d.trigger("results:select",{}),h.preventDefault()):p===l.SPACE&&h.ctrlKey?(d.trigger("results:toggle",{}),h.preventDefault()):p===l.UP?(d.trigger("results:previous",{}),h.preventDefault()):p===l.DOWN&&(d.trigger("results:next",{}),h.preventDefault()):(p===l.ENTER||p===l.SPACE||p===l.DOWN&&h.altKey)&&(d.open(),h.preventDefault())})},f.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},f.prototype._isChangeMutation=function(d,h){var p=!1,g=this;if(!(d&&d.target&&d.target.nodeName!=="OPTION"&&d.target.nodeName!=="OPTGROUP")){if(!h)p=!0;else if(h.addedNodes&&h.addedNodes.length>0)for(var v=0;v<h.addedNodes.length;v++){var y=h.addedNodes[v];y.selected&&(p=!0)}else h.removedNodes&&h.removedNodes.length>0?p=!0:a.isArray(h)&&a.each(h,function(C,T){if(g._isChangeMutation(C,T))return p=!0,!1});return p}},f.prototype._syncSubtree=function(d,h){var p=this._isChangeMutation(d,h),g=this;p&&this.dataAdapter.current(function(v){g.trigger("selection:update",{data:v})})},f.prototype.trigger=function(d,h){var p=f.__super__.trigger,g={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(h===void 0&&(h={}
10),d in g){var v=g[d],y={prevented:!1,name:d,args:h};if(p.call(this,v,y),y.prevented){h.prevented=!0;return}}p.call(this,d,h)},f.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},f.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},f.prototype.close=function(d){this.isOpen()&&this.trigger("close",{originalEvent:d})},f.prototype.isEnabled=function(){return!this.isDisabled()},f.prototype.isDisabled=function(){return this.options.get("disabled")},f.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},f.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},f.prototype.focus=function(d){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},f.prototype.enable=function(d){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),(d==null||d.length===0)&&(d=[!0]);var h=!d[0];this.$element.prop("disabled",h)},f.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var d=[];return this.dataAdapter.current(function(h){d=h}),d},f.prototype.val=function(d){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),d==null||d.length===0)return this.$element.val();var h=d[0];a.isArray(h)&&(h=a.map(h,function(p){return p.toString()})),this.$element.val(h).trigger("input").trigger("change")},f.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),this._observer!=null?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",c.GetData(this.$element[0],"old-tabindex")),this.$element.removeClass("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),c.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},f.prototype.render=function(){var d=a('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return d.attr("dir",this.options.get("dir")),this.$container=d,this.$container.addClass("select2-container--"+this.options.get("theme")),c.StoreData(d[0],"element",this.$element),d},f}),s.define("jquery-mousewheel",["jquery"],function(a){return a}),s.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(a,o,c,l,f){if(a.fn.select2==null){var d=["open","close","destroy"];a.fn.select2=function(h){if(h=h||{},typeof h=="object")return this.each(function(){var v=a.extend(!0,{},h);new c(a(this),v)}),this;if(typeof h=="string"){var p,g=Array.prototype.slice.call(arguments,1);return this.each(function(){var v=f.GetData(this,"select2");v==null&&window.console&&console.error&&console.error("The select2('"+h+"') method was called on an element that is not using Select2."),p=v[h].apply(v,g)}),a.inArray(h,d)>-1?this:p}else throw new Error("Invalid arguments for Select2: "+h)}}return a.fn.select2.defaults==null&&(a.fn.select2.defaults=l),c}),{define:s.define,require:s.require}}(),r=n.require("jquery.select2");return i.fn.select2.amd=n,r})})(Lc);var Hf=Lc.exports;const Oc=bs(Hf);var Vf={exports:{}};/*!
11* Parsley.js
12* Version 2.9.2 - built Tue, Dec 10th 2019, 6:18 pm
13* http://parsleyjs.org
14* Guillaume Potier - <[email protected]>
15* Marc-Andre Lafortune - <[email protected]>
16* MIT Licensed
17*/(function(e,i){(function(n,r){e.exports=r(pi())})(il,function(n){function r(k){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?r=function(m){return typeof m}:r=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},r(k)}function s(){return s=Object.assign||function(k){for(var m=1;m<arguments.length;m++){var w=arguments[m];for(var A in w)Object.prototype.hasOwnProperty.call(w,A)&&(k[A]=w[A])}return k},s.apply(this,arguments)}function a(k,m){return l(k)||d(k,m)||p()}function o(k){return c(k)||f(k)||h()}function c(k){if(Array.isArray(k)){for(var m=0,w=new Array(k.length);m<k.length;m++)w[m]=k[m];return w}}function l(k){if(Array.isArray(k))return k}function f(k){if(Symbol.iterator in Object(k)||Object.prototype.toString.call(k)==="[object Arguments]")return Array.from(k)}function d(k,m){if(Symbol.iterator in Object(k)||Object.prototype.toString.call(k)==="[object Arguments]"){var w=[],A=!0,R=!1,W=void 0;try{for(var oe=k[Symbol.iterator](),be;!(A=(be=oe.next()).done)&&(w.push(be.value),!(m&&w.length===m));A=!0);}catch(we){R=!0,W=we}finally{try{!A&&oe.return!=null&&oe.return()}finally{if(R)throw W}}return w}}function h(){throw new TypeError("Invalid attempt to spread non-iterable instance")}
17function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}var g=1,v={},y={attr:function(m,w,A){var R,W,oe,be=new RegExp("^"+w,"i");if(typeof A>"u")A={};else for(R in A)A.hasOwnProperty(R)&&delete A[R];if(!m)return A;for(oe=m.attributes,R=oe.length;R--;)W=oe[R],W&&W.specified&&be.test(W.name)&&(A[this.camelize(W.name.slice(w.length))]=this.deserializeValue(W.value));return A},checkAttr:function(m,w,A){return m.hasAttribute(w+A)},setAttr:function(m,w,A,R){m.setAttribute(this.dasherize(w+A),String(R))},getType:function(m){return m.getAttribute("type")||"text"},generateID:function(){return""+g++},deserializeValue:function(m){var w;try{return m&&(m=="true"||(m=="false"?!1:m=="null"?null:isNaN(w=Number(m))?/^[\[\{]/.test(m)?JSON.parse(m):m:w))}catch{return m}},camelize:function(m){return m.replace(/-+(.)?/g,function(w,A){return A?A.toUpperCase():""})},dasherize:function(m){return m.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()},warn:function(){var m;window.console&&typeof window.console.warn=="function"&&(m=window.console).warn.apply(m,arguments)},warnOnce:function(m){v[m]||(v[m]=!0,this.warn.apply(this,arguments))},_resetWarnings:function(){v={}},trimString:function(m){return m.replace(/^\s+|\s+$/g,"")},parse:{date:function(m){var w=m.match(/^(\d{4,})-(\d\d)-(\d\d)$/);if(!w)return null;var A=w.map(function(tt){return parseInt(tt,10)}),R=a(A,4);R[0];var W=R[1],oe=R[2],be=R[3],we=new Date(W,oe-1,be);return we.getFullYear()!==W||we.getMonth()+1!==oe||we.getDate()!==be?null:we},string:function(m){return m},integer:function(m){return isNaN(m)?null:parseInt(m,10)},number:function(m){if(isNaN(m))throw null;return parseFloat(m)},boolean:function(m){return!/^\s*false\s*$/i.test(m)},object:function(m){return y.deserializeValue(m)},regexp:function(m){var w="";return/^\/.*\/(?:[gimy]*)$/.test(m)?(w=m.replace(/.*\/([gimy]*)$/,"$1"),m=m.replace(new RegExp("^/(.*?)/"+w+"$"),"$1")):m="^"+m+"$",new RegExp(m,w)}},parseRequirement:function(m,w){var A=this.parse[m||"string"];if(!A)throw'Unknown requirement specification: "'+m+'"';var R=A(w);if(R===null)throw"Requirement is not a ".concat(m,': "').concat(w,'"');return R},namespaceEvents:function(m,w){return m=this.trimString(m||"").split(/\s+/),m[0]?n.map(m,function(A){return"".concat(A,".").concat(w)}).join(" "):""},difference:function(m,w){var A=[];return n.each(m,function(R,W){w.indexOf(W)==-1&&A.push(W)}),A},all:function(m){return n.when.apply(n,o(m).concat([42,42]))},objectCreate:Object.create||function(){var k=function(){};return function(m){if(arguments.length>1)throw Error("Second argument not supported");if(r(m)!="object")throw TypeError("Argument must be an object");k.prototype=m;var w=new k;return k.prototype=null,w}}(),_SubmitSelector:'input[type="submit"], button:submit'},C={namespace:"data-parsley-",inputs:"input, textarea, select",excluded:"input[type=button], input[type=submit], input[type=reset], input[type=hidden]",priorityEnabled:!0,multiple:null,group:null,uiEnabled:!0,validationThreshold:3,focus:"first",trigger:!1,triggerAfterFailure:"input",errorClass:"parsley-error",successClass:"parsley-success",classHandler:function(m){},errorsContainer:function(m){},errorsWrapper:'<ul class="parsley-errors-list"></ul>',errorTemplate:"<li></li>"},T=function(){this.__id__=y.generateID()};T.prototype={asyncSupport:!0,_pipeAccordingToValidationResult:function(){var m=this,w=function(){var R=n.Deferred();return m.validationResult!==!0&&R.reject(),R.resolve().promise()};return[w,w]},actualizeOptions:function(){return y.attr(this.element,this.options.namespace,this.domOptions),this.parent&&this.parent.actualizeOptions&&this.parent.actualizeOptions(),this},_resetOptions:function(m){this.domOptions=y.objectCreate(this.parent.options),this.options=y.objectCreate(this.domOptions);for(var w in m)m.hasOwnProperty(w)&&(this.options[w]=m[w]);this.actualizeOptions()},_listeners:null,on:function(m,w){this._listeners=this._listeners||{};var A=this._listeners[m]=this._listeners[m]||[];return A.push(w),this},subscribe:function(m,w){n.listenTo(this,m.toLowerCase(),w)},off:function(m,w){var A=this._listeners&&this._listeners[m];if(A)if(!w)delete this._listeners[m];else for(var R=A.length;R--;)A[R]===w&&A.splice(R,1);return this},unsubscribe:function(m,w){n.unsubscribeTo(this,m.toLowerCase())},trigger:function(m,w,A){w=w||this;var R=this._listeners&&this._listeners[m],W;if(R){for(var oe=R.length;oe--;)if(W=R[oe].call(w,w,A),W===!1)return W}return this.parent?this.parent.trigger(m,w,A):!0},asyncIsValid:function(m,w){return y.warnOnce("asyncIsValid is deprecated; please use whenValid instead"),this.whenValid({group:m,force:w})},_findRelated:function(){return this.options.multiple?n(this.parent.element.querySelectorAll("[".concat(this.options.namespace,'multiple="').concat(this.options.multiple,'"]'))):this.$element}};var _=function(m,w){var A=m.match(/^\s*\[(.*)\]\s*$/);if(!A)throw'Requirement is not an array: "'+m+'"';var R=A[1].split(",").map(y.trimString);if(R.length!==w)throw"Requirement has "+R.length+" values when "+w+" are needed";return R},b=function(m,w,A){var R=null,W={};for(var oe in m)if(oe){var be=A(oe);
17typeof be=="string"&&(be=y.parseRequirement(m[oe],be)),W[oe]=be}else R=y.parseRequirement(m[oe],w);return[R,W]},E=function(m){n.extend(!0,this,m)};E.prototype={validate:function(m,w){if(this.fn)return arguments.length>3&&(w=[].slice.call(arguments,1,-1)),this.fn(m,w);if(Array.isArray(m)){if(!this.validateMultiple)throw"Validator `"+this.name+"` does not handle multiple values";return this.validateMultiple.apply(this,arguments)}else{var A=arguments[arguments.length-1];if(this.validateDate&&A._isDateInput())return arguments[0]=y.parse.date(arguments[0]),arguments[0]===null?!1:this.validateDate.apply(this,arguments);if(this.validateNumber)return m?isNaN(m)?!1:(arguments[0]=parseFloat(arguments[0]),this.validateNumber.apply(this,arguments)):!0;if(this.validateString)return this.validateString.apply(this,arguments);throw"Validator `"+this.name+"` only handles multiple values"}},parseRequirements:function(m,w){if(typeof m!="string")return Array.isArray(m)?m:[m];var A=this.requirementType;if(Array.isArray(A)){for(var R=_(m,A.length),W=0;W<R.length;W++)R[W]=y.parseRequirement(A[W],R[W]);return R}else return n.isPlainObject(A)?b(A,m,w):[y.parseRequirement(A,m)]},requirementType:"string",priority:2};var L=function(m,w){this.__class__="ValidatorRegistry",this.locale="en",this.init(m||{},w||{})},P={email:/^((([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-zA-Z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-zA-Z]|\d|-|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-zA-Z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))$/,number:/^-?(\d*\.)?\d+(e[-+]?\d+)?$/i,integer:/^-?\d+$/,digits:/^\d+$/,alphanum:/^\w+$/i,date:{test:function(m){return y.parse.date(m)!==null}},url:new RegExp("^(?:(?:https?|ftp)://)?(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-zA-Z\\u00a1-\\uffff0-9]-*)*[a-zA-Z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-zA-Z\\u00a1-\\uffff]{2,})))(?::\\d{2,5})?(?:/\\S*)?$")};P.range=P.number;var j=function(m){var w=(""+m).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return w?Math.max(0,(w[1]?w[1].length:0)-(w[2]?+w[2]:0)):0},H=function(m,w){return w.map(y.parse[m])},q=function(m,w){return function(A){for(var R=arguments.length,W=new Array(R>1?R-1:0),oe=1;oe<R;oe++)W[oe-1]=arguments[oe];return W.pop(),w.apply(void 0,[A].concat(o(H(m,W))))}},U=function(m){return{validateDate:q("date",m),validateNumber:q("number",m),requirementType:m.length<=2?"string":["string","string"],priority:30}};L.prototype={init:function(m,w){this.catalog=w,this.validators=s({},this.validators);for(var A in m)this.addValidator(A,m[A].fn,m[A].priority);window.Parsley.trigger("parsley:validator:init")},setLocale:function(m){if(typeof this.catalog[m]>"u")throw new Error(m+" is not available in the catalog");return this.locale=m,this},addCatalog:function(m,w,A){return r(w)==="object"&&(this.catalog[m]=w),A===!0?this.setLocale(m):this},addMessage:function(m,w,A){return typeof this.catalog[m]>"u"&&(this.catalog[m]={}),this.catalog[m][w]=A,this},addMessages:function(m,w){for(var A in w)this.addMessage(m,A,w[A]);return this},addValidator:function(m,w,A){if(this.validators[m])y.warn('Validator "'+m+'" is already defined.');else if(C.hasOwnProperty(m)){y.warn('"'+m+'" is a restricted keyword and is not a valid validator name.');return}return this._setValidator.apply(this,arguments)},hasValidator:function(m){return!!this.validators[m]}
17,updateValidator:function(m,w,A){return this.validators[m]?this._setValidator.apply(this,arguments):(y.warn('Validator "'+m+'" is not already defined.'),this.addValidator.apply(this,arguments))},removeValidator:function(m){return this.validators[m]||y.warn('Validator "'+m+'" is not defined.'),delete this.validators[m],this},_setValidator:function(m,w,A){r(w)!=="object"&&(w={fn:w,priority:A}),w.validate||(w=new E(w)),this.validators[m]=w;for(var R in w.messages||{})this.addMessage(R,m,w.messages[R]);return this},getErrorMessage:function(m){var w;if(m.name==="type"){var A=this.catalog[this.locale][m.name]||{};w=A[m.requirements]}else w=this.formatMessage(this.catalog[this.locale][m.name],m.requirements);return w||this.catalog[this.locale].defaultMessage||this.catalog.en.defaultMessage},formatMessage:function(m,w){if(r(w)==="object"){for(var A in w)m=this.formatMessage(m,w[A]);return m}return typeof m=="string"?m.replace(/%s/i,w):""},validators:{notblank:{validateString:function(m){return/\S/.test(m)},priority:2},required:{validateMultiple:function(m){return m.length>0},validateString:function(m){return/\S/.test(m)},priority:512},type:{validateString:function(m,w){var A=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},R=A.step,W=R===void 0?"any":R,oe=A.base,be=oe===void 0?0:oe,we=P[w];if(!we)throw new Error("validator type `"+w+"` is not supported");if(!m)return!0;if(!we.test(m))return!1;if(w==="number"&&!/^any$/i.test(W||"")){var tt=Number(m),He=Math.max(j(W),j(be));if(j(tt)>He)return!1;var mt=function(Ct){return Math.round(Ct*Math.pow(10,He))};if((mt(tt)-mt(be))%mt(W)!=0)return!1}return!0},requirementType:{"":"string",step:"string",base:"number"},priority:256},pattern:{validateString:function(m,w){return m?w.test(m):!0},requirementType:"regexp",priority:64},minlength:{validateString:function(m,w){return m?m.length>=w:!0},requirementType:"integer",priority:30},maxlength:{validateString:function(m,w){return m.length<=w},requirementType:"integer",priority:30},length:{validateString:function(m,w,A){return m?m.length>=w&&m.length<=A:!0},requirementType:["integer","integer"],priority:30},mincheck:{validateMultiple:function(m,w){return m.length>=w},requirementType:"integer",priority:30},maxcheck:{validateMultiple:function(m,w){return m.length<=w},requirementType:"integer",priority:30},check:{validateMultiple:function(m,w,A){return m.length>=w&&m.length<=A},requirementType:["integer","integer"],priority:30},min:U(function(k,m){return k>=m}),max:U(function(k,m){return k<=m}),range:U(function(k,m,w){return k>=m&&k<=w}),equalto:{validateString:function(m,w){if(!m)return!0;var A=n(w);return A.length?m===A.val():m===w},priority:256},euvatin:{validateString:function(m,w){if(!m)return!0;var A=/^[A-Z][A-Z][A-Za-z0-9 -]{2,}$/;return A.test(m)},priority:30}}};var Q={},V=function k(m,w,A){for(var R=[],W=[],oe=0;oe<m.length;oe++){for(var be=!1,we=0;we<w.length;we++)if(m[oe].assert.name===w[we].assert.name){be=!0;break}be?W.push(m[oe]):R.push(m[oe])}return{kept:W,added:R,removed:A?[]:k(w,m,!0).added}};Q.Form={_actualizeTriggers:function(){var m=this;this.$element.on("submit.Parsley",function(w){m.onSubmitValidate(w)}),this.$element.on("click.Parsley",y._SubmitSelector,function(w){m.onSubmitButton(w)}),this.options.uiEnabled!==!1&&this.element.setAttribute("novalidate","")},focus:function(){if(this._focusedField=null,this.validationResult===!0||this.options.focus==="none")return null;for(var m=0;m<this.fields.length;m++){var w=this.fields[m];if(w.validationResult!==!0&&w.validationResult.length>0&&typeof w.options.noFocus>"u"&&(this._focusedField=w.$element,this.options.focus==="first"))break}return this._focusedField===null?null:this._focusedField.focus()},_destroyUI:function(){this.$element.off(".Parsley")}},Q.Field={_reflowUI:function(){if(this._buildUI(),!!this._ui){var m=V(this.validationResult,this._ui.lastValidationResult);this._ui.lastValidationResult=this.validationResult,this._manageStatusClass(),this._manageErrorsMessages(m),this._actualizeTriggers(),(m.kept.length||m.added.length)&&!this._failedOnce&&(this._failedOnce=!0,this._actualizeTriggers())}},getErrorsMessages:function(){if(this.validationResult===!0)return[];for(var m=[],w=0;w<this.validationResult.length;w++)m.push(this.validationResult[w].errorMessage||this._getErrorMessage(this.validationResult[w].assert));return m},addError:function(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=w.message,R=w.assert,W=w.updateClass,oe=W===void 0?!0:W;this._buildUI(),this._addError(m,{message:A,assert:R}),oe&&this._errorClass()},updateError:function(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=w.message,R=w.assert,W=w.updateClass,oe=W===void 0?!0:W;this._buildUI(),this._updateError(m,{message:A,assert:R}),oe&&this._errorClass()},removeError:function(m){var w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},A=w.updateClass,R=A===void 0?!0:A;this._buildUI(),this._removeError(m),R&&this._manageStatusClass()},_manageStatusClass:function(){this.hasConstraints()&&this.needsValidation()&&this.validationResult===!0?this._successClass():this.validationResult.length>0?this._errorClass():this._resetClass()},_manageErrorsMessages:function(m){if(!(typeof this.options.errorsMessagesDisabled<"u")){if(typeof this.options.errorMessage<"u")return m.added.length||m.kept.length?(this._insertErrorWrapper(),this._ui.$errorsWrapper.find(".parsley-custom-error-message").length===0&&this._ui.$errorsWrapper.append(n(this.options.errorTemplate).addClass("parsley-custom-error-message")),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").find(".parsley-custom-error-message").html(this.options.errorMessage)):(this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-custom-error-message").remove());for(var w=0;w<m.removed.length;w++)this._removeError(m.removed[w].assert.name);for(w=0;w<m.added.length;w++)this._addError(m.added[w].assert.name,{message:m.added[w].errorMessage,assert:m.added[w].assert});for(w=0;w<m.kept.length;w++)this._updateError(m.kept[w].assert.name,{message:m.kept[w].errorMessage,assert:m.kept[w].assert})}},_addError:function(m,w){var A=w.message,R=w.assert;this._insertErrorWrapper(),this._ui.$errorClassHandler.attr("aria-describedby",this._ui.errorsWrapperId),this._ui.$errorsWrapper.addClass("filled").attr("aria-hidden","false").append(n(this.options.errorTemplate).addClass("parsley-"+m).html(A||this._getErrorMessage(R)))},_updateError:function(m,w){var A=w.message,R=w.assert;this._ui.$errorsWrapper.addClass("filled").find(".parsley-"+m).html(A||this._getErrorMessage(R))},_removeError:function(m){this._ui.$errorClassHandler.removeAttr("aria-describedby"),this._ui.$errorsWrapper.removeClass("filled").attr("aria-hidden","true").find(".parsley-"+m).remove()},_getErrorMessage:function(m){var w=m.name+"Message";return typeof this.options[w]<"u"?window.Parsley.formatMessage(this.options[w],m.requirements):window.Parsley.getErrorMessage(m)},_buildUI:function(){if(!(this._ui||this.options.uiEnabled===!1)){var m={};this.element.setAttribute(this.options.namespace+"id",this.__id__),m.$errorClassHandler=this._manageClassHandler(),m.errorsWrapperId="parsley-id-"+(this.options.multiple?"multiple-"+this.options.multiple:this.__id__),m.$errorsWrapper=n(this.options.errorsWrapper).attr("id",m.errorsWrapperId),m.lastValidationResult=[],m.validationInformationVisible=!1,this._ui=m}},_manageClassHandler:function(){if(typeof this.options.classHandler=="string"&&n(this.options.classHandler).length)return n(this.options.classHandler);var m=this.options.classHandler;if(typeof this.options.classHandler=="string"&&typeof window[this.options.classHandler]=="function"&&(m=window[this.options.classHandler]),typeof m=="function"){var w=m.call(this,this);if(typeof w<"u"&&w.length)return w}else{if(r(m)==="object"&&m instanceof jQuery&&m.length)return m;m&&y.warn("The class handler `"+m+"` does not exist in DOM nor as a global JS function")}return this._inputHolder()},_inputHolder:function(){return!this.options.multiple||this.element.nodeName==="SELECT"?this.$element:this.$element.parent()},_insertErrorWrapper:function(){var m=this.options.errorsContainer;if(this._ui.$errorsWrapper.parent().length!==0)return this._ui.$errorsWrapper.parent();if(typeof m=="string"){if(n(m).length)return n(m).append(this._ui.$errorsWrapper);typeof window[m]=="function"?m=window[m]:y.warn("The errors container `"+m+"` does not exist in DOM nor as a global JS function")}return typeof m=="function"&&(m=m.call(this,this)),r(m)==="object"&&m.length?m.append(this._ui.$errorsWrapper):this._inputHolder().after(this._ui.$errorsWrapper)},_actualizeTriggers:function(){var m=this,w=this._findRelated(),A;w.off(".Parsley"),this._failedOnce?w.on(y.namespaceEvents(this.options.triggerAfterFailure,"Parsley"),function(){m._validateIfNeeded()}):(A=y.namespaceEvents(this.options.trigger,"Parsley"))&&w.on(A,function(R){m._validateIfNeeded(R)})},_validateIfNeeded:function(m){var w=this;m&&/key|input/.test(m.type)&&!(this._ui&&this._ui.validationInformationVisible)&&this.getValue().length<=this.options.validationThreshold||(this.options.debounce?(window.clearTimeout(this._debounced),this._debounced=window.setTimeout(function(){return w.validate()},this.options.debounce)):this.validate())},_resetUI:function(){this._failedOnce=!1,this._actualizeTriggers(),!(typeof this._ui>"u")&&(this._ui.$errorsWrapper.removeClass("filled").children().remove(),this._resetClass(),this._ui.lastValidationResult=[],this._ui.validationInformationVisible=!1)},_destroyUI:function(){this._resetUI(),typeof this._ui<"u"&&this._ui.$errorsWrapper.remove(),delete this._ui},_successClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.errorClass).addClass(this.options.successClass)},_errorClass:function(){this._ui.validationInformationVisible=!0,this._ui.$errorClassHandler.removeClass(this.options.successClass).addClass(this.options.errorClass)},_resetClass:function(){this._ui.$errorClassHandler.removeClass(this.options.successClass).removeClass(this.options.errorClass)}};var S=function(m,w,A){this.__class__="Form",this.element=m,this.$element=n(m),this.domOptions=w,this.options=A,this.parent=window.Parsley,this.fields=[],this.validationResult=null},I={pending:null,resolved:!0,rejected:!1};S.prototype={onSubmitValidate:function(m){var w=this;if(m.parsley!==!0){var A=this._submitSource||this.$element.find(y._SubmitSelector)[0];if(this._submitSource=null,this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!0),!(A&&A.getAttribute("formnovalidate")!==null)){window.Parsley._remoteCache={};var R=this.whenValidate({event:m});R.state()==="resolved"&&this._trigger("submit")!==!1||(m.stopImmediatePropagation(),m.preventDefault(),R.state()==="pending"&&R.done(function(){w._submit(A)}))}}},onSubmitButton:function(m){this._submitSource=m.currentTarget},_submit:function(m){if(this._trigger("submit")!==!1){if(m){var w=this.$element.find(".parsley-synthetic-submit-button").prop("disabled",!1);w.length===0&&(w=n('<input class="parsley-synthetic-submit-button" type="hidden">').appendTo(this.$element)),w.attr({name:m.getAttribute("name"),value:m.getAttribute("value")})}this.$element.trigger(s(n.Event("submit"),{parsley:!0}))}},validate:function(m){if(arguments.length>=1&&!n.isPlainObject(m)){y.warnOnce("Calling validate on a parsley form without passing arguments as an object is deprecated.");var w=Array.prototype.slice.call(arguments),A=w[0],R=w[1],W=w[2];m={group:A,force:R,event:W}}return I[this.whenValidate(m).state()]},whenValidate:function(){var m=this,w,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=A.group,W=A.force,oe=A.event;this.submitEvent=oe,oe&&(this.submitEvent=s({},oe,{preventDefault:function(){y.warnOnce("Using `this.submitEvent.preventDefault()` is deprecated; instead, call `this.validationResult = false`"),m.validationResult=!1}})),this.validationResult=!0,this._trigger("validate"),this._refreshFields();var be=this._withoutReactualizingFormOptions(function(){return n.map(m.fields,function(we){return we.whenValidate({force:W,group:R})})});return(w=y.all(be).done(function(){m._trigger("success")}).fail(function(){m.validationResult=!1,m.focus(),m._trigger("error")}).always(function(){m._trigger("validated")})).pipe.apply(w,o(this._pipeAccordingToValidationResult()))},isValid:function(m){if(arguments.length>=1&&!n.isPlainObject(m)){y.warnOnce("Calling isValid on a parsley form without passing arguments as an object is deprecated.");var w=Array.prototype.slice.call(arguments),A=w[0],R=w[1];m={group:A,force:R}}return I[this.whenValid(m).state()]},whenValid:function(){var m=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=w.group,R=w.force;this._refreshFields();var W=this._withoutReactualizingFormOptions(function(){return n.map(m.fields,function(oe){return oe.whenValid({group:A,force:R})})});return y.all(W)},refresh:function(){return this._refreshFields(),this},reset:function(){for(var m=0;m<this.fields.length;m++)this.fields[m].reset();this._trigger("reset")},destroy:function(){this._destroyUI();for(var m=0;m<this.fields.length;m++)this.fields[m].destroy();this.$element.removeData("Parsley"),this._trigger("destroy")},_refreshFields:function(){return this.actualizeOptions()._bindFields()},_bindFields:function(){var m=this,w=this.fields;return this.fields=[],this.fieldsMappedById={},this._withoutReactualizingFormOptions(function(){m.$element.find(m.options.inputs).not(m.options.excluded).not("[".concat(m.options.namespace,"excluded=true]")).each(function(A,R){var W=new window.Parsley.Factory(R,{},m);if(W.__class__==="Field"||W.__class__==="FieldMultiple"){var oe=W.__class__+"-"+W.__id__;typeof m.fieldsMappedById[oe]>"u"&&(m.fieldsMappedById[oe]=W,m.fields.push(W))}}),n.each(y.difference(w,m.fields),function(A,R){R.reset()})}),this},_withoutReactualizingFormOptions:function(m){var w=this.actualizeOptions;this.actualizeOptions=function(){return this};var A=m();return this.actualizeOptions=w,A},_trigger:function(m){return this.trigger("form:"+m)}};var B=function(m,w,A,R,W){var oe=window.Parsley._validatorRegistry.validators[w],be=new E(oe);R=R||m.options[w+"Priority"]||be.priority,W=W===!0,s(this,{validator:be,name:w,requirements:A,priority:R,isDomConstraint:W}),this._parseRequirements(m.options)},M=function(m){var w=m[0].toUpperCase();return w+m.slice(1)};B.prototype={validate:function(m,w){var A;return(A=this.validator).validate.apply(A,[m].concat(o(this.requirementList),[w]))},_parseRequirements:function(m){var w=this;this.requirementList=this.validator.parseRequirements(this.requirements,function(A){return m[w.name+M(A)]})}};var N=function(m,w,A,R){this.__class__="Field",this.element=m,this.$element=n(m),typeof R<"u"&&(this.parent=R
17),this.options=A,this.domOptions=w,this.constraints=[],this.constraintsByName={},this.validationResult=!0,this._bindConstraints()},O={pending:null,resolved:!0,rejected:!1};N.prototype={validate:function(m){arguments.length>=1&&!n.isPlainObject(m)&&(y.warnOnce("Calling validate on a parsley field without passing arguments as an object is deprecated."),m={options:m});var w=this.whenValidate(m);if(!w)return!0;switch(w.state()){case"pending":return null;case"resolved":return!0;case"rejected":return this.validationResult}},whenValidate:function(){var m,w=this,A=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},R=A.force,W=A.group;if(this.refresh(),!(W&&!this._isInGroup(W)))return this.value=this.getValue(),this._trigger("validate"),(m=this.whenValid({force:R,value:this.value,_refreshed:!0}).always(function(){w._reflowUI()}).done(function(){w._trigger("success")}).fail(function(){w._trigger("error")}).always(function(){w._trigger("validated")})).pipe.apply(m,o(this._pipeAccordingToValidationResult()))},hasConstraints:function(){return this.constraints.length!==0},needsValidation:function(m){return typeof m>"u"&&(m=this.getValue()),!(!m.length&&!this._isRequired()&&typeof this.options.validateIfEmpty>"u")},_isInGroup:function(m){return Array.isArray(this.options.group)?n.inArray(m,this.options.group)!==-1:this.options.group===m},isValid:function(m){if(arguments.length>=1&&!n.isPlainObject(m)){y.warnOnce("Calling isValid on a parsley field without passing arguments as an object is deprecated.");var w=Array.prototype.slice.call(arguments),A=w[0],R=w[1];m={force:A,value:R}}var W=this.whenValid(m);return W?O[W.state()]:!0},whenValid:function(){var m=this,w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},A=w.force,R=A===void 0?!1:A,W=w.value,oe=w.group,be=w._refreshed;if(be||this.refresh(),!(oe&&!this._isInGroup(oe))){if(this.validationResult=!0,!this.hasConstraints()||((typeof W>"u"||W===null)&&(W=this.getValue()),!this.needsValidation(W)&&R!==!0))return n.when();var we=this._getGroupedConstraints(),tt=[];return n.each(we,function(He,mt){var Ui=y.all(n.map(mt,function(Ct){return m._validateConstraint(W,Ct)}));if(tt.push(Ui),Ui.state()==="rejected")return!1}),y.all(tt)}},_validateConstraint:function(m,w){var A=this,R=w.validate(m,this);return R===!1&&(R=n.Deferred().reject()),y.all([R]).fail(function(W){A.validationResult instanceof Array||(A.validationResult=[]),A.validationResult.push({assert:w,errorMessage:typeof W=="string"&&W})})},getValue:function(){var m;return typeof this.options.value=="function"?m=this.options.value(this):typeof this.options.value<"u"?m=this.options.value:m=this.$element.val(),typeof m>"u"||m===null?"":this._handleWhitespace(m)},reset:function(){return this._resetUI(),this._trigger("reset")},destroy:function(){this._destroyUI(),this.$element.removeData("Parsley"),this.$element.removeData("FieldMultiple"),this._trigger("destroy")},refresh:function(){return this._refreshConstraints(),this},_refreshConstraints:function(){return this.actualizeOptions()._bindConstraints()},refreshConstraints:function(){return y.warnOnce("Parsley's refreshConstraints is deprecated. Please use refresh"),this.refresh()},addConstraint:function(m,w,A,R){if(window.Parsley._validatorRegistry.validators[m]){var W=new B(this,m,w,A,R);this.constraintsByName[W.name]!=="undefined"&&this.removeConstraint(W.name),this.constraints.push(W),this.constraintsByName[W.name]=W}return this},removeConstraint:function(m){for(var w=0;w<this.constraints.length;w++)if(m===this.constraints[w].name){this.constraints.splice(w,1);break}return delete this.constraintsByName[m],this},updateConstraint:function(m,w,A){return this.removeConstraint(m).addConstraint(m,w,A)},_bindConstraints:function(){for(var m=[],w={},A=0;A<this.constraints.length;A++)this.constraints[A].isDomConstraint===!1&&(m.push(this.constraints[A]),w[this.constraints[A].name]=this.constraints[A]);this.constraints=m,this.constraintsByName=w;for(var R in this.options)this.addConstraint(R,this.options[R],void 0,!0);return this._bindHtml5Constraints()},_bindHtml5Constraints:function(){this.element.getAttribute("required")!==null&&this.addConstraint("required",!0,void 0,!0),this.element.getAttribute("pattern")!==null&&this.addConstraint("pattern",this.element.getAttribute("pattern"),void 0,!0);var m=this.element.getAttribute("min"),w=this.element.getAttribute("max");m!==null&&w!==null?this.addConstraint("range",[m,w],void 0,!0):m!==null?this.addConstraint("min",m,void 0,!0):w!==null&&this.addConstraint("max",w,void 0,!0),this.element.getAttribute("minlength")!==null&&this.element.getAttribute("maxlength")!==null?this.addConstraint("length",[this.element.getAttribute("minlength"),this.element.getAttribute("maxlength")],void 0,!0):this.element.getAttribute("minlength")!==null?this.addConstraint("minlength",this.element.getAttribute("minlength"),void 0,!0):this.element.getAttribute("maxlength")!==null&&this.addConstraint("maxlength",this.element.getAttribute("maxlength"),void 0,!0);var A=y.getType(this.element);return A==="number"?this.addConstraint("type",["number",{step:this.element.getAttribute("step")||"1",base
17:m||this.element.getAttribute("value")}],void 0,!0):/^(email|url|range|date)$/i.test(A)?this.addConstraint("type",A,void 0,!0):this},_isRequired:function(){return typeof this.constraintsByName.required>"u"?!1:this.constraintsByName.required.requirements!==!1},_trigger:function(m){return this.trigger("field:"+m)},_handleWhitespace:function(m){return this.options.trimValue===!0&&y.warnOnce('data-parsley-trim-value="true" is deprecated, please use data-parsley-whitespace="trim"'),this.options.whitespace==="squish"&&(m=m.replace(/\s{2,}/g," ")),(this.options.whitespace==="trim"||this.options.whitespace==="squish"||this.options.trimValue===!0)&&(m=y.trimString(m)),m},_isDateInput:function(){var m=this.constraintsByName.type;return m&&m.requirements==="date"},_getGroupedConstraints:function(){if(this.options.priorityEnabled===!1)return[this.constraints];for(var m=[],w={},A=0;A<this.constraints.length;A++){var R=this.constraints[A].priority;w[R]||m.push(w[R]=[]),w[R].push(this.constraints[A])}return m.sort(function(W,oe){return oe[0].priority-W[0].priority}),m}};var F=function(){this.__class__="FieldMultiple"};F.prototype={addElement:function(m){return this.$elements.push(m),this},_refreshConstraints:function(){var m;if(this.constraints=[],this.element.nodeName==="SELECT")return this.actualizeOptions()._bindConstraints(),this;for(var w=0;w<this.$elements.length;w++){if(!n("html").has(this.$elements[w]).length){this.$elements.splice(w,1);continue}m=this.$elements[w].data("FieldMultiple")._refreshConstraints().constraints;for(var A=0;A<m.length;A++)this.addConstraint(m[A].name,m[A].requirements,m[A].priority,m[A].isDomConstraint)}return this},getValue:function(){if(typeof this.options.value=="function")return this.options.value(this);if(typeof this.options.value<"u")return this.options.value;if(this.element.nodeName==="INPUT"){var m=y.getType(this.element);if(m==="radio")return this._findRelated().filter(":checked").val()||"";if(m==="checkbox"){var w=[];return this._findRelated().filter(":checked").each(function(){w.push(n(this).val())}),w}}return this.element.nodeName==="SELECT"&&this.$element.val()===null?[]:this.$element.val()},_init:function(){return this.$elements=[this.$element],this}};var D=function(m,w,A){this.element=m,this.$element=n(m);var R=this.$element.data("Parsley");if(R)return typeof A<"u"&&R.parent===window.Parsley&&(R.parent=A,R._resetOptions(R.options)),r(w)==="object"&&s(R.options,w),R;if(!this.$element.length)throw new Error("You must bind Parsley on an existing element.");if(typeof A<"u"&&A.__class__!=="Form")throw new Error("Parent instance must be a Form instance");return this.parent=A||window.Parsley,this.init(w)};D.prototype={init:function(m){return this.__class__="Parsley",this.__version__="2.9.2",this.__id__=y.generateID(),this._resetOptions(m),this.element.nodeName==="FORM"||y.checkAttr(this.element,this.options.namespace,"validate")&&!this.$element.is(this.options.inputs)?this.bind("parsleyForm"):this.isMultiple()?this.handleMultiple():this.bind("parsleyField")},isMultiple:function(){var m=y.getType(this.element);return m==="radio"||m==="checkbox"||this.element.nodeName==="SELECT"&&this.element.getAttribute("multiple")!==null},handleMultiple:function(){var m=this,w,A;if(this.options.multiple=this.options.multiple||(w=this.element.getAttribute("name"))||this.element.getAttribute("id"),this.element.nodeName==="SELECT"&&this.element.getAttribute("multiple")!==null)return this.options.multiple=this.options.multiple||this.__id__,this.bind("parsleyFieldMultiple");if(!this.options.multiple)return y.warn("To be bound by Parsley, a radio, a checkbox and a multiple select input must have either a name or a multiple option.",this.$element),this;this.options.multiple=this.options.multiple.replace(/(:|\.|\[|\]|\{|\}|\$)/g,""),w&&n('input[name="'+w+'"]').each(function(oe,be){var we=y.getType(be);(we==="radio"||we==="checkbox")&&be.setAttribute(m.options.namespace+"multiple",m.options.multiple)});for(var R=this._findRelated(),W=0;W<R.length;W++)if(A=n(R.get(W)).data("Parsley"),typeof A<"u"){this.$element.data("FieldMultiple")||A.addElement(this.$element);break}return this.bind("parsleyField",!0),A||this.bind("parsleyFieldMultiple")},bind:function(m,w){var A;switch(m){case"parsleyForm":A=n.extend(new S(this.element,this.domOptions,this.options),new T,window.ParsleyExtend)._bindFields();break;case"parsleyField":A=n.extend(new N(this.element,this.domOptions,this.options,this.parent),new T,window.ParsleyExtend);break;case"parsleyFieldMultiple":A=n.extend(new N(this.element,this.domOptions,this.options,this.parent),new F,new T,window.ParsleyExtend)._init();break;default:throw new Error(m+"is not a supported Parsley type")}return this.options.multiple&&y.setAttr(this.element,this.options.namespace,"multiple",this.options.multiple),typeof w<"u"?(this.$element.data("FieldMultiple",A),A):(this.$element.data("Parsley",A),A._actualizeTriggers(),A._trigger("init"),A)}};var Y=n.fn.jquery.split(".");if(parseInt(Y[0])<=1&&parseInt(Y[1])<8)throw"The loaded version of jQuery is too old. Please upgrade to 1.8.x or better.";Y.forEach||y.warn("Parsley requires ES5 to run properly. Please include https://github.com/es-shims/es5-shim");var z=s(new T,{element:document,$element:n(document),actualizeOptions:null,_resetOptions:null,Factory:D,version:"2.9.2"});s(N.prototype,Q.Field,T.prototype),s(S.prototype,Q.Form,T.prototype),s(D.prototype,T.prototype),n.fn.parsley=n.fn.psly=function(k){if(this.length>1){var m=[];return this.each(function(){m.push(n(this).parsley(k))}),m}if(this.length!=0)return new D(this[0],k)},typeof window.ParsleyExtend>"u"&&(window.ParsleyExtend={}),z.options=s(y.objectCreate(C),window.ParsleyConfig),window.ParsleyConfig=z.options,window.Parsley=window.psly=z,z.Utils=y,window.ParsleyUtils={},n.each(y,function(k,m){typeof m=="function"&&(window.ParsleyUtils[k]=function(){return y.warnOnce("Accessing `window.ParsleyUtils` is deprecated. Use `window.Parsley.Utils` instead."),y[k].apply(y,arguments)})});var K=window.Parsley._validatorRegistry=new L(window.ParsleyConfig.validators,window.ParsleyConfig.i18n);window.ParsleyValidator={},n.each("setLocale addCatalog addMessage addMessages getErrorMessage formatMessage addValidator updateV
17alidator removeValidator hasValidator".split(" "),function(k,m){window.Parsley[m]=function(){return K[m].apply(K,arguments)},window.ParsleyValidator[m]=function(){var w;return y.warnOnce("Accessing the method '".concat(m,"' through Validator is deprecated. Simply call 'window.Parsley.").concat(m,"(...)'")),(w=window.Parsley)[m].apply(w,arguments)}}),window.Parsley.UI=Q,window.ParsleyUI={removeError:function(m,w,A){var R=A!==!0;return y.warnOnce("Accessing UI is deprecated. Call 'removeError' on the instance directly. Please comment in issue 1073 as to your need to call this method."),m.removeError(w,{updateClass:R})},getErrorsMessages:function(m){return y.warnOnce("Accessing UI is deprecated. Call 'getErrorsMessages' on the instance directly."),m.getErrorsMessages()}},n.each("addError updateError".split(" "),function(k,m){window.ParsleyUI[m]=function(w,A,R,W,oe){var be=oe!==!0;return y.warnOnce("Accessing UI is deprecated. Call '".concat(m,"' on the instance directly. Please comment in issue 1073 as to your need to call this method.")),w[m](A,{message:R,assert:W,updateClass:be})}}),window.ParsleyConfig.autoBind!==!1&&n(function(){n("[data-parsley-validate]").length&&n("[data-parsley-validate]").parsley()});var ue=n({}),ne=function(){y.warnOnce("Parsley's pubsub module is deprecated; use the 'on' and 'off' methods on parsley instances or window.Parsley")};function se(k,m){return k.parsleyAdaptedCallback||(k.parsleyAdaptedCallback=function(){var w=Array.prototype.slice.call(arguments,0);w.unshift(this),k.apply(m||ue,w)}),k.parsleyAdaptedCallback}var de="parsley:";function fe(k){return k.lastIndexOf(de,0)===0?k.substr(de.length):k}n.listen=function(k,m){var w;if(ne(),r(arguments[1])==="object"&&typeof arguments[2]=="function"&&(w=arguments[1],m=arguments[2]),typeof m!="function")throw new Error("Wrong parameters");window.Parsley.on(fe(k),se(m,w))},n.listenTo=function(k,m,w){if(ne(),!(k instanceof N)&&!(k instanceof S))throw new Error("Mu
17st give Parsley instance");if(typeof m!="string"||typeof w!="function")throw new Error("Wrong parameters");k.on(fe(m),se(w))},n.unsubscribe=function(k,m){if(ne(),typeof k!="string"||typeof m!="function")throw new Error("Wrong arguments");window.Parsley.off(fe(k),m.parsleyAdaptedCallback)},n.unsubscribeTo=function(k,m){if(ne(),!(k instanceof N)&&!(k instanceof S))throw new Error("Must give Parsley instance");k.off(fe(m))},n.unsubscribeAll=function(k){ne(),window.Parsley.off(fe(k)),n("form,input,textarea,select").each(function(){var m=n(this).data("Parsley");m&&m.off(fe(k))})},n.emit=function(k,m){var w;ne();var A=m instanceof N||m instanceof S,R=Array.prototype.slice.call(arguments,A?2:1);R.unshift(fe(k)),A||(m=window.Parsley),(w=m).trigger.apply(w,o(R))},n.extend(!0,z,{asyncValidators:{default:{fn:function(m){return m.status>=200&&m.status<300},url:!1},reverse:{fn:function(m){return m.status<200||m.status>=300},url:!1}},addAsyncValidator:function(m,w,A,R){return z.asyncValidators[m]={fn:w,url:A||!1,options:R||{}},this}}),z.addValidator("remote",{requirementType:{"":"string",validator:"string",reverse:"boolean",options:"object"},validateString:function(m,w,A,R){var W={}
17,oe,be,we=A.validator||(A.reverse===!0?"reverse":"default");if(typeof z.asyncValidators[we]>"u")throw new Error("Calling an undefined async validator: `"+we+"`");w=z.asyncValidators[we].url||w,w.indexOf("{value}")>-1?w=w.replace("{value}",encodeURIComponent(m)):W[R.element.getAttribute("name")||R.element.getAttribute("id")]=m;var tt=n.extend(!0,A.options||{},z.asyncValidators[we].options);oe=n.extend(!0,{},{url:w,data:W,type:"GET"},tt),R.trigger("field:ajaxoptions",R,oe),be=n.param(oe),typeof z._remoteCache>"u"&&(z._remoteCache={});var He=z._remoteCache[be]=z._remoteCache[be]||n.ajax(oe),mt=function(){var Ct=z.asyncValidators[we].fn.call(R,He,w,A);return Ct||(Ct=n.Deferred().reject()),n.when(Ct)};return He.then(mt,mt)},priority:-1}),z.on("form:submit",function(){z._remoteCache={}}),T.prototype.addAsyncValidator=function(){return y.warnOnce("Accessing the method `addAsyncValidator` through an instance is deprecated. Simply call `Parsley.addAsyncValidator(...)`"),z.addAsyncValidator.apply(z,arguments)},z.addMessages("en",{defaultMessage:"This value seems to be invalid.",type:{email:"This value should be a valid email.",url:"This value should be a valid url.",number:"This value should be a valid number.",integer:"This value should be a valid integer.",digits:"This value should be digits.",alphanum:"This value should be alphanumeric."},notblank:"This value should not be blank.",required:"This value is required.",pattern:"This value seems to be invalid.",min:"This value should be greater than or equal to %s.",max:"This value should be lower than or equal to %s.",range:"This value should be between %s and %s.",minlength:"This value is too short. It should have %s characters or more.",maxlength:"This value is too long. It should have %s characters or fewer.",length:"This value length is invalid. It should be between %s and %s characters long.",mincheck:"You must select at least %s choices.",maxcheck:"You must select %s choices or fewer.",check:"You must select between %s and %s choices.",equalto:"This value should be the same.",euvatin:"It's not a valid VAT Identification Number."}),z.setLocale("en");function Ee(){var k=this,m=window||il;s(this,{isNativeEvent:function(A){return A.originalEvent&&A.originalEvent.isTrusted!==!1},fakeInputEvent:function(A){k.isNativeEvent(A)&&n(A.target).trigger("input")},misbehaves:function(A){k.isNativeEvent(A)&&(k.behavesOk(A),n(document).on("change.inputevent",A.data.selector,k.fakeInputEvent),k.fakeInputEvent(A))},behavesOk:function(A){k.isNativeEvent(A)&&n(document).off("input.inputevent",A.data.selector,k.behavesOk).off("change.inputevent",A.data.selector,k.misbehaves)},install:function(){if(!m.inputEventPatched){m.inputEventPatched="0.0.3";for(var A=0,R=["select",'input[type="checkbox"]','input[type="radio"]','input[type="file"]'];A<R.length;A++){var W=R[A];n(document).on("input.inputevent",W,{selector:W},k.behavesOk).on("change.inputevent",W,{selector:W},k.misbehaves)}}},uninstall:function(){delete m.inputEventPatched,n(document).off(".inputevent")}})}var lt=new Ee;return lt.install(),z})})(Vf);/*!
18* CookieConsent 3.0.0-rc.17
19* https://github.com/orestbida/cookieconsent/tree/v3.0-beta
20* Author Orest Bida
21* Released under the MIT License
22*/const Pc="opt-in",jn="opt-out",Ic="show--consent",Fc="show--preferences",sl="disable--interaction",Jr="data-category",Ce="div",vt="button",bt="aria-hidden",Wn="btn-group",et="click",en="data-role",no="consentModal",ro="preferencesModal";class zf{constructor(){this.t={mode:Pc,revision:0,autoShow:!0,lazyHtmlGeneration:!0,autoClearCookies:!0,manageScriptTags:!0,hideFromBots:!0,cookie:{name:"cc_cookie",expiresAfterDays:182,domain:"",path:"/",sameSite:"Lax"}},this.o={i:{},l:"",_:{},u:{},p:{},m:[],v:!1,h:null,C:null,S:null,M:"",D:!0,T:!1,k:!1,A:!1,N:!1,H:[],V:!1,I:!0,j:[],F:!1,P:"",L:!1,O:[],R:[],B:[],G:[],J:!1,U:!1,$:!1,q:[],K:[],W:[],X:{},Y:{},Z:{},ee:{},te:{},ne:[]},this.oe={se:{},ae:{}},this.ce={},this.re={ie:"cc:onFirstConsent",le:"cc:onConsent",de:"cc:onChange",fe:"cc:onModalShow",_e:"cc:onModalHide",ue:"cc:onModalReady"}}}const G=new zf,Nc=(e,i)=>e.indexOf(i),Te=(e,i)=>Nc(e,i)!==-1,ws=e=>Array.isArray(e),mn=e=>typeof e=="string",va=e=>!!e&&typeof e=="object"&&!ws(e),Vt=e=>
vendor: 7,712 bytes, line 22
22typeof e=="function",Di=e=>Object.keys(e),Rc=e=>Array.from(new Set(e)),Zr=()=>document.activeElement,Zi=e=>e.preventDefault(),so=(e,i)=>e.querySelectorAll(i),ce=e=>{const i=document.createElement(e);return e===vt&&(i.type=e),i},ge=(e,i,n)=>e.setAttribute(i,n),qs=(e,i,n)=>{e.removeAttribute(n?"data-"+i:i)},Br=(e,i,n)=>e.getAttribute(n?"data-"+i:i),le=(e,i)=>e.appendChild(i),De=(e,i)=>e.classList.add(i),nt=(e,i)=>De(e,"cm__"+i),_e=(e,i)=>De(e,"pm__"+i),di=(e,i)=>e.classList.remove(i),li=e=>{if(typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());let i=Array.isArray(e)?[]:{};for(let n in e){let r=e[n];i[n]=li(r)}return i},al=(e,i)=>dispatchEvent(new CustomEvent(e,{detail:i})),Fe=(e,i,n,r)=>{e.addEventListener(i,n),r&&G.o.m.push({pe:e,me:i,ge:n})},Wf=()=>{const e=G.t.cookie.expiresAfterDays;return Vt(e)?e(G.o.P):e},js=(e,i)=>{const n=e||[],r=i||[];return n.filter(s=>!Te(r,s)).concat(r.filter(s=>!Te(n,s)))},Bc=e=>{G.o.R=Rc(e),G.o.P=(()=>{let i="custom";const{R:n,O:r,B:s}=G.o,a=n.length;return a===r.length?i="all":a===s.length&&(i="necessary"),i})()},qc=(e,i,n,r)=>{const s="accept-",{show:a,showPreferences:o,hide:c,hidePreferences:l,acceptCategory:f}=i,d=e||document,h=b=>so(d,`[data-cc="${b}"]`),p=(b,E)=>{Zi(b),f(E),l(),c()},g=h("show-preferencesModal"),v=h("show-consentModal"),y=h(s+"all"),C=h(s+"necessary"),T=h(s+"custom"),_=G.t.lazyHtmlGeneration;for(const b of g)ge(b,"aria-haspopup","dialog"),Fe(b,et,E=>{Zi(E),o()}),_&&(Fe(b,"mouseenter",E=>{Zi(E),G.o.N||n(i,r)},!0),Fe(b,"focus",()=>{G.o.N||n(i,r)}));for(let b of v)ge(b,"aria-haspopup","dialog"),Fe(b,et,E=>{Zi(E),a(!0)},!0);for(let b of y)Fe(b,et,E=>{p(E,"all")},!0);for(let b of T)Fe(b,et,E=>{p(E)},!0);for(let b of C)Fe(b,et,E=>{p(E,[])},!0)},Lt=(e,i)=>{e&&(i&&(e.tabIndex=-1),e.focus(),i&&e.removeAttribute("tabindex"))},jc=(e,i)=>{const n=r=>{r.target.removeEventListener("transitionend",n),r.propertyName==="opacity"&&getComputedStyle(e).opacity==="1"&&Lt((s=>s===1?G.oe.be:G.oe.ve)(i))};Fe(e,"transitionend",n)};let ol;const Hc=e=>{clearTimeout(ol),e?De(G.oe.ye,sl):ol=setTimeout(()=>{di(G.oe.ye,sl)},500)},Uf=["M 19.5 4.5 L 4.5 19.5 M 4.5 4.501 L 19.5 19.5","M 3.572 13.406 L 8.281 18.115 L 20.428 5.885","M 21.999 6.94 L 11.639 17.18 L 2.001 6.82 "],tr=(e=0,i=1.5)=>`<svg viewBox="0 0 24 24" stroke-width="${i}"><path d="${Uf[e]}"/></svg>`,Vc=e=>{const i=G.oe,n=G.o;(r=>{const s=r===i.he,a=n.i.disablePageInteraction?i.ye:s?i.Ce:i.ye;Fe(a,"keydown",o=>{if(o.key!=="Tab"||!(s?n.k&&!n.A:n.A))return;const c=Zr(),l=s?n.q:n.K;l.length!==0&&(o.shiftKey?c!==l[0]&&r.contains(c)||(Zi(o),Lt(l[1])):c!==l[1]&&r.contains(c)||(Zi(o),Lt(l[0])))},!0)})(e)},$f=["[href]",vt,"input","details","[tabindex]"].map(e=>e+':not([tabindex="-1"])').join(","),zc=e=>{const{o:i,oe:n}=G,r=(s,a)=>{const o=so(s,$f);a[0]=o[0],a[1]=o[o.length-1]};e===1&&i.T&&r(n.he,i.q),e===2&&i.N&&r(n.we,i.K)},Ot=(e,i,n)=>{const{de:r,le:s,ie:a,_e:o,ue:c,fe:l}=G.ce,f=G.re;if(i){const h={modalName:i};return e===f.fe?Vt(l)&&l(h):e===f._e?Vt(o)&&o(h):(h.modal=n,Vt(c)&&c(h)),al(e,h)}const d={cookie:G.o.p};e===f.ie?Vt(a)&&a(li(d)):e===f.le?Vt(s)&&s(li(d)):(d.changedCategories=G.o.j,d.changedServices=G.o.ee,Vt(r)&&r(li(d))),al(e,li(d))},ba=e=>{const{Y:i,ee:n,O:r,X:s,ne:a,p:o,j:c}=G.o;for(const h of r){const p=n[h]||i[h]||[];for(const g of p){const v=s[h][g];if(!v)continue;const{onAccept:y,onReject:C}=v;!v.Se&&Te(i[h],g)&&Vt(y)?(v.Se=!0,y()):v.Se&&!Te(i[h],g)&&Vt(C)&&(v.Se=!1,C())}}if(!G.t.manageScriptTags)return;const l=a,f=e||o.categories||[],d=(h,p)=>{if(p>=h.length)return;const g=a[p];if(g.xe)return d(h,p+1);const v=g.Me,y=g.De,C=g.Te,T=Te(f,y),_=!!C&&Te(i[y],C);if(!C&&!g.ke&&T||!C&&g.ke&&!T&&Te(c,y)||C&&!g.ke&&_||C&&g.ke&&!_&&Te(n[y]||[],C)){g.xe=!0;const b=Br(v,"type",!0);qs(v,"type",!!b),qs(v,Jr);let E=Br(v,"src",!0);E&&qs(v,"src",!0);const L=ce("script");L.textContent=v.innerHTML;for(const{nodeName:j}of v.attributes)ge(L,j,v[j]||Br(v,j));b&&(L.type=b),E?L.src=E:E=v.src;const P=!!E&&(!b||["text/javascript","module"].includes(b));if(P&&(L.onload=L.onerror=()=>{d(h,++p)}),v.replaceWith(L),P)return}d(h,++p)};d(l,0)},qr="bottom",wa="left",Wc="center",ao="right",Hs="inline",Uc="wide",$c="pm--",Vs=["middle","top",qr],ll=[wa,Wc,ao],Yf={box:{Ae:[Uc,Hs],Ee:Vs,Ne:ll,He:qr,Ve:ao},cloud:{Ae:[Hs],Ee:Vs,Ne:ll,He:qr,Ve:Wc},bar:{Ae:[Hs],Ee:Vs.slice(1),Ne:[],He:qr,Ve:""}},Gf={box:{Ae:[],Ee:[],Ne:[],He:"",Ve:""},bar:{Ae:[Uc],Ee:[],Ne:[wa,ao],He:"",Ve:wa}},Yc=e=>{const i=G.o.i.guiOptions,n=i&&i.consentModal,r=i&&i.preferencesModal;e===0&&cl(G.oe.he,Yf,n,"cm--","box","cm"),e===1&&cl(G.oe.we,Gf,r,$c,"box","pm")},cl=(e,i,n,r,s,a)=>{e.className=a;const o=n&&n.layout,c=n&&n.position,l=n&&n.flipButtons,f=!n||n.equalWeightButtons!==!1,d=o&&o.split(" ")||[],h=d[0],p=d[1],g=h in i?h:s,v=i[g],y=Te(v.Ae,p)&&p,C=c&&c.split(" ")||[],T=C[0],_=r===$c?C[0]:C[1],b=Te(v.Ee,T)?T:v.He,E=Te(v.Ne,_)?_:v.Ve,L=j=>{j&&De(e,r+j)};L(g),L(y),L(b),L(E),l&&L("flip");const P=a+"__btn--secondary";if(a==="cm"){const{Ie:j,je:H}=G.oe;j&&(f?di(j,P):De(j,P)),H&&(f?di(H,P):De(H,P))}else{const{Fe:j}=G.oe;j&&(f?di(j,P):De(j,P))}},ir=(e,i)=>{const n=G.o,r=G.oe,{hide:s,hidePreferences:a,acceptCategory:o}=e,c=E=>{o(E),a(),s()},l=n.u&&n.u.preferencesModal;if(!l)return;const f=l.title,d=l.closeIconLabel,h=l.acceptAllBtn,p=l.acceptNecessaryBtn,g=l.savePreferencesBtn,v=l.sections||[],y=h||p||g;if(r.Pe)r.Le=ce(Ce),_e(r.Le,"body");else{r.Pe=ce(Ce),De(r.Pe,"pm-wrapper");const E=ce("div");De(E,"pm-overlay"),le(r.Pe,E),Fe(E,et,a),r.we=ce(Ce),De(r.we,"pm"),ge(r.we,"role","dialog"),ge(r.we,bt,!0),ge(r.we,"aria-modal",!0),ge(r.we,"aria-labelledby","pm__title"),Fe(r.ye,"keydown",L=>{L.keyCode===27&&a()},!0),r.Oe=ce(Ce),_e(r.Oe,"header"),r.Re=ce("h2"),_e(r.Re,"title"),r.Re.id="pm__title",r.Be=ce(vt),_e(r.Be,"close-btn"),ge(r.Be,"aria-label",l.closeIconLabel||""),Fe(r.Be,et,a),r.Ge=ce("span"),r.Ge.innerHTML=tr(),le(r.Be,r.Ge),r.Je=ce(Ce),_e(r.Je,"body"),r.Ue=ce(Ce),_e(r.Ue,"footer");var C=ce(Ce);De(C,"btns");var T=ce(Ce),_=ce(Ce);_e(T,Wn),_e(_,Wn),le(r.Ue,T),le(r.Ue,_),le(r.Oe,r.Re),le(r.Oe,r.Be),r.ve=ce(Ce),ge(r.ve,"tabIndex",-1),le(r.we,r.ve),le(r.we,r.Oe),le(r.we,r.Je),y&&le(r.we,r.Ue),le(r.Pe,r.we)}let b;f&&(r.Re.innerHTML=f,d&&ge(r.Be,"aria-label",d)),v.forEach((E,L)=>{const P=E.title,j=E.description,H=E.linkedCategory,q=H&&n.L[H],U=E.cookieTable,Q=U&&U.body,V=U&&U.caption,S=Q&&Q.length>0,I=!!q,B=I&&n.X[H],M=va(B)&&Di(B)||[],N=I&&(!!j||!!S||Di(B).length>0);var O=ce(Ce);if(_e(O,"section"),N||j){var F=ce(Ce);_e(F,"section-desc-wrapper")}let D=M.length;if(N&&D>0){const se=ce(Ce);_e(se,"section-services");for(const de of M){const fe=B[de],Ee=fe&&fe.label||de,lt=ce(Ce),k=ce(Ce),m=ce(Ce),w=ce(Ce);_e(lt,"service"),_e(w,"service-title"),_e(k,"service-header"),_e(m,"service-icon");const A=ul(Ee,de,q,!0,H);w.innerHTML=Ee,le(k,m),le(k,w),le(lt,k),le(lt,A),le(se,lt)}le(F,se)}if(P){var Y=ce(Ce),z=ce(I?vt:Ce);if(_e(Y,"section-title-wrapper"),_e(z,"section-title"),z.innerHTML=P,le(Y,z),I){const se=ce("span");se.innerHTML=tr(2,3.5),_e(se,"section-arrow"),le(Y,se),O.className+="--toggle";const de=ul(P,H,q);let fe=l.serviceCounterLabel;if(D>0&&mn(fe)){let Ee=ce("span");_e(Ee,"badge"),_e(Ee,"service-counter"),ge(Ee,bt,!0),ge(Ee,"data-servicecounter",D),fe&&(fe=fe.split("|"),fe=fe.length>1&&D>1?fe[1]:fe[0],ge(Ee,"data-counterlabel",fe)),Ee.innerHTML=D+(fe?" "+fe:""),le(z,Ee)}if(N){_e(O,"section--expandable");var K=H+"-desc";ge(z,"aria-expanded",!1),ge(z,"aria-controls",K)}le(Y,de)}else ge(z,"role","heading"),ge(z,"aria-level","3");le(O,Y)}if(j){var ue=ce("p");_e(ue,"section-desc"),ue.innerHTML=j,le(F,ue)}if(N&&(ge(F,bt,"true"),F.id=K,((se,de,fe)=>{Fe(z,et,()=>{de.classList.contains("is-expanded")?(di(de,"is-expanded"),ge(fe,"aria-expanded","fal
22se"),ge(se,bt,"true")):(De(de,"is-expanded"),ge(fe,"aria-expanded","true"),ge(se,bt,"false"))})})(F,O,z),S)){const se=ce("table"),de=ce("thead"),fe=ce("tbody");if(V){const A=ce("caption");_e(A,"table-caption"),A.innerHTML=V,se.appendChild(A)}_e(se,"section-table"),_e(de,"table-head"),_e(fe,"table-body");const Ee=U.headers,lt=Di(Ee),k=r.$e.createDocumentFragment(),m=ce("tr");for(const A of lt){const R=Ee[A],W=ce("th");W.id="cc__row-"+R+L,ge(W,"scope","col"),_e(W,"table-th"),W.innerHTML=R,le(k,W)}le(m,k),le(de,m);const w=r.$e.createDocumentFragment();for(const A of Q){const R=ce("tr");_e(R,"table-tr");for(const W of lt){const oe=Ee[W],be=A[W],we=ce("td"),tt=ce(Ce);_e(we,"table-td"),ge(we,"data-column",oe),ge(we,"headers","cc__row-"+oe+L),tt.insertAdjacentHTML("beforeend",be),le(we,tt),le(R,we)}le(w,R)}le(fe,w),le(se,de),le(se,fe),le(F,se)}(N||j)&&le(O,F);const ne=r.Le||r.Je;I?(b||(b=ce(Ce),_e(b,"section-toggles")),b.appendChild(O)):b=null,le(ne,b||O)}),h&&(r.ze||(r.ze=ce(vt),_e(r.ze,"btn"),ge(r.ze,en,"all"),le(T,r.ze),Fe(r.ze,et,()=>c("all"))),r.ze.innerHTML=h),p&&(r.Fe||(r.Fe=ce(vt),_e(r.Fe,"btn"),ge(r.Fe,en,"necessary"),le(T,r.Fe),Fe(r.Fe,et,()=>c([]))),r.Fe.innerHTML=p),g&&(r.qe||(r.qe=ce(vt),_e(r.qe,"btn"),_e(r.qe,"btn--secondary"),ge(r.qe,en,"save"),le(_,r.qe),Fe(r.qe,et,()=>c())),r.qe.innerHTML=g),r.Le&&(r.we.replaceChild(r.Le,r.Je),r.Je=r.Le),Yc(1),n.N||(n.N=!0,Ot(G.re.ue,ro,r.we),i(e),le(r.Ce,r.Pe),Vc(r.we),setTimeout(()=>De(r.Pe,"cc--anim"),100)),zc(2)};function ul(e,i,n,r,s){const a=G.o,o=G.oe,c=ce("label"),l=ce("input"),f=ce("span"),d=ce("span"),h=ce("span"),p=ce("span"),g=ce("span");if(p.innerHTML=tr(1,3),g.innerHTML=tr(0,3),l.type="checkbox",De(c,"section__toggle-wrapper"),De(l,"section__toggle"),De(p,"toggle__icon-on"),De(g,"toggle__icon-off"),De(f,"toggle__icon"),De(d,"toggle__icon-circle"),De(h,"toggle__label"),ge(f,bt,"true"),r?(De(c,"toggle-service"),ge(l,Jr,s),o.ae[s][i]=l):o.se[i]=l,r?(v=>{Fe(l,"change",()=>{const y=o.ae[v],C=o.se[v];a.Z[v]=[];for(let T in y){const _=y[T];_.checked&&a.Z[v].push(_.value)}C.checked=a.Z[v].length>0})})(s):(v=>{Fe(l,et,()=>{const y=o.ae[v],C=l.checked;a.Z[v]=[];for(let T in y)y[T].checked=C,C&&a.Z[v].push(T)})})(i),l.value=i,h.textContent=e.replace(/<.*>.*<\/.*>/gm,""),le(d,g),le(d,p),le(f,d),a.D)(n.readOnly||n.enabled)&&(l.checked=!0);else if(r){const v=a.Y[s];l.checked=n.readOnly||Te(v,i)}else Te(a.R,i)&&(l.checked=!0);return n.readOnly&&(l.disabled=!0),le(c,l),le(c,f),le(c,h),c}const zs=()=>{const e=ce("span");return G.oe.Ke||(G.oe.Ke=e),e},Gc=(e,i)=>{const n=G.o,r=G.oe,{hide:s,showPreferences:a,acceptCategory:o}=e,c=n.u&&n.u.consentModal;if(!c)return;const l=c.acceptAllBtn,f=c.acceptNecessaryBtn,d=c.showPreferencesBtn,h=c.closeIconLabel,p=c.footer,g=c.label,v=c.title,y=T=>{s(),o(T)};if(!r.Qe){r.Qe=ce(Ce),r.he=ce(Ce),r.We=ce(Ce),r.Xe=ce(Ce),r.Ye=ce(Ce),De(r.Qe,"cm-wrapper"),De(r.he,"cm"),nt(r.We,"body"),nt(r.Xe,"texts"),nt(r.Ye,"btns"),ge(r.he,"role","dialog"),ge(r.he,"aria-modal","true"),ge(r.he,bt,"false"),ge(r.he,"aria-describedby","cm__desc"),g?ge(r.he,"aria-label",g):v&&ge(r.he,"aria-labelledby","cm__title");const T="box",_=n.i.guiOptions,b=_&&_.consentModal,E=(b&&b.layout||T).split(" ")[0]===T;v&&h&&E&&(r.je||(r.je=ce(vt),r.je.innerHTML=tr(),nt(r.je,"btn"),nt(r.je,"btn--close"),Fe(r.je,et,()=>{y([])}),le(r.We,r.je)),ge(r.je,"aria-label",h)),le(r.We,r.Xe),(l||f||d)&&le(r.We,r.Ye),r.be=ce(Ce),ge(r.be,"tabIndex",-1),le(r.he,r.be),le(r.he,r.We),le(r.Qe,r.he)}v&&(r.Ze||(r.Ze=ce("h2"),r.Ze.className=r.Ze.id="cm__title",le(r.Xe,r.Ze)),r.Ze.innerHTML=v);let C=c.description;if(C&&(n.V&&(C=C.replace("{{revisionMessage}}",n.I?"":c.revisionMessage||"")),r.et||(r.et=ce("p"),r.et.className=r.et.id="cm__desc",le(r.Xe,r.et)),r.et.innerHTML=C),l&&(r.tt||(r.tt=ce(vt),le(r.tt,zs()),nt(r.tt,"btn"),ge(r.tt,en,"all"),Fe(r.tt,et,()=>{y("all")})),r.tt.firstElementChild.innerHTML=l),f&&(r.Ie||(r.Ie=ce(vt),le(r.Ie,zs()),nt(r.Ie,"btn"),ge(r.Ie,en,"necessary"),Fe(r.Ie,et,()=>{y([])})),r.Ie.firstElementChild.innerHTML=f),d&&(r.nt||(r.nt=ce(vt),le(r.nt,zs()),nt(r.nt,"btn"),nt(r.nt,"btn--secondary"),ge(r.nt,en,"show"),Fe(r.nt,"mouseenter",()=>{n.N||ir(e,i)}),Fe(r.nt,et,a)),r.nt.firstElementChild.innerHTML=d),r.ot||(r.ot=ce(Ce),nt(r.ot,Wn),l&&le(r.ot,r.tt),f&&le(r.ot,r.Ie),(l||f)&&le(r.We,r.ot),le(r.Ye,r.ot)),r.nt&&!r.st&&(r.st=ce(Ce),r.Ie&&r.tt?(nt(r.st,Wn),le(r.st,r.nt),le(r.Ye,r.st)):(le(r.ot,r.nt),nt(r.ot,Wn+"--uneven"))),p){if(!r.ct){let T=ce(Ce),_=ce(Ce);r.ct=ce(Ce),nt(T,"footer"),nt(_,"links"),nt(r.ct,"link-group"),le(_,r.ct),le(T,_),le(r.he,T)}r.ct.innerHTML=p}Yc(0),n.T||(n.T=!0,Ot(G.re.ue,no,r.he),i(e),le(r.Ce,r.Qe),Vc(r.he),setTimeout(()=>De(r.Qe,"cc--anim"),100)),zc(1),qc(r.We,e,ir,i)},Kc=e=>{if(!mn(e))return null;if(e in G.o._)return e;let i=e.slice(0,2);return i in G.o._?i:null},Xc=()=>G.o.l||G.o.i.language.default,Jc=e=>{e&&(G.o.l=e)},Kf=async e=>{const i=G.o;let n=Kc(e)?e:Xc(),r=i._[n];if(!r)return!1;if(mn(r)){const s=await(async a=>{try{const o=await fetch(a);return!(!o||!o.ok)&&await o.json()}catch{return!1}})(r);if(!s)return!1;r=s}return i.u=r,Jc(n),!0},Xf=()=>{let e=G.o.i.language.rtl,i=G.oe.Ce;e&&i&&(ws(e)||(e=[e]),Te(e,G.o.l)?De(i,"cc--rtl"):di(i,"cc--rtl"))},Un=()=>{const e=G.oe;if(e.Ce)return;e.Ce=ce(Ce),e.Ce.id="cc-main",Xf();let i=G.o.i.root;i&&mn(i)&&(i=document.querySelector(i)),(i||e.$e.body).appendChild(e.Ce)},dl=(e,i)=>{if(i instanceof RegExp)return e.filter(n=>i.test(n));{const n=Nc(e,i);return n>-1?[e[n]]:[]}},Jf=e=>{const{hostname:i,protocol:n}=location,{name:r,path:s,domain:a,sameSite:o}=G.t.cookie,c=encodeURIComponent(JSON.stringify(G.o.p)),l=864e5*Wf(),f=new Date;f.setTime(f.getTime()+l);let d=r+"="+c+(l!==0?"; expires="+f.toUTCString():"")+"; Path="+s+"; SameSite="+o;Te(i,".")&&(d+="; Domain="+a),n==="https:"&&(d+="; Secure"),document.cookie=d,G.o.p},fl=(e,i,n)=>{if(e.length===0)return;const r=n||G.t.cookie.domain,s=i||G.t.cookie.path,a=r.slice(0,4)==="www.",o=a&&r.substring(4),c=(l,f)=>{document.cookie=l+"=; path="+s+(f?"; domain=."+f:"")+"; expires=Thu, 01 Jan 1970 00:00:01 GMT;"};for(const l of e)c(l),c(l,r),a&&c(l,o)},Zf=e=>(i=>{let n;try{n=JSON.parse(decodeURIComponent(i))}catch{n={}}return n})(Qf(G.t.cookie.name)),Qf=(e,i)=>{const n=document.cookie.match("(^|;)\\s*"+e+"\\s*=\\s*([^;]+)");return n?n.pop():""},eh=e=>{const i=document.cookie.split(/;\s*/),n=[];for(const r of i){let s=r.split("=")[0];n.push(s)}return n},th=(e,i=[])=>{((n,r)=>{const{O:s,R:a,B:o,N:c,Z:l,X:f}=G.o;let d=[];if(n){ws(n)?d.push(...n):mn(n)&&(d=n==="all"?s:[n]);for(const h of s)l[h]=Te(d,h)?Di(f[h]):[]}else d=a,d=c&&(()=>{const h=G.oe.se;if(!h)return[];let p=[];for(let g in h)h[g].checked&&p.push(g);return p})();d=d.filter(h=>!Te(s,h)||!Te(r,h)),d.push(...o),Bc(d)})(e,i),(n=>{const r=G.o,{Z:s,B:a,Y:o,X:c,O:l}=r,f=l;r.te=li(o);for(const d of f){const h=c[d],p=Di(h),g=s[d]&&s[d].length>0,v=Te(a,d);if(p.length!==0){if(o[d]=[],v)o[d].push(...p);else if(g){const y=s[d];o[d].push(...y)}else o[d]=[];o[d]=Rc(o[d])}}})(),(()=>{const n=G.o;n.j=G.t.mode===jn&&n.D?js(n.G,n.R):js(n.R,n.p.categories);let r=n.j.length>0,s=!1;for(const l of n.O)n.ee[l]=js(n.Y[l],n.te[l]),n.ee[l].length>0&&(s=!0);const a=G.oe.se;for(const l in a)a[l].checked=Te(n.R,l);for(const l of n.O){const f=G.oe.ae[l],d=n.Y[l];for(const h in f)f[h].checked=Te(d,h)}n.C||(n.C=new Date),n.M||(n.M=("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,l=>(l^crypto.getRandomValues(new Uint8Array(1))[0]&15>>l/4).toString(16))),n.p={categories:li(n.R),revision:G.t.revision,data:n.h,consentTimestamp:n.C.toISOString(),consentId:n.M,services:li(n.Y)};let o=!1;const c=r||s;
22(n.D||c)&&(n.D&&(n.D=!1,o=!0),n.S=n.S?new Date:n.C,n.p.lastConsentTimestamp=n.S.toISOString(),Jf(),G.t.autoClearCookies&&(o||c)&&(l=>{const f=G.o,d=eh(),h=(p=>{const g=G.o;return(p?g.O:g.j).filter(v=>{const y=g.L[v];return!!y&&!y.readOnly&&!!y.autoClear})})(l);for(const p in f.ee)for(const g of f.ee[p]){const v=f.X[p][g].cookies;if(!Te(f.Y[p],g)&&v)for(const y of v){const C=dl(d,y.name);fl(C,y.path,y.domain)}}for(const p of h){const g=f.L[p].autoClear,v=g&&g.cookies||[],y=Te(f.j,p),C=!Te(f.R,p),T=y&&C;if(l?C:T){g.reloadPage&&T&&(f.F=!0);for(const _ of v){const b=dl(d,_.name);fl(b,_.path,_.domain)}}}})(o),ba()),o&&(Ot(G.re.ie),Ot(G.re.le),G.t.mode===Pc)||(c&&Ot(G.re.de),n.F&&(n.F=!1,location.reload()))})()},Zc=e=>{const i=G.o.D?[]:G.o.R;return Te(i,e)},ih=(e,i)=>{const n=G.o.D?[]:G.o.Y[i];return Te(n,e)},Qc=e=>{const{oe:i,o:n}=G;if(!n.k){if(!n.T){if(!e)return;Gc(oo,Un)}n.k=!0,n.U=Zr(),n.v&&Hc(!0),jc(i.he,1),De(i.ye,Ic),ge(i.he,bt,"false"),setTimeout(()=>{Lt(G.oe.be)},100),Ot(G.re.fe,no)}},nh=()=>{const{oe:e,o:i,re:n}=G;i.k&&(i.k=!1,i.v&&Hc(),Lt(e.Ke,!0),di(e.ye,Ic),ge(e.he,bt,"true"),Lt(i.U),i.U=null,Ot(n._e,no))},rh=()=>{const e=G.o;e.A||(e.N||ir(oo,Un),e.A=!0,e.k?e.$=Zr():e.U=Zr(),jc(G.oe.we,2),De(G.oe.ye,Fc),ge(G.oe.we,bt,"false"),setTimeout(()=>{Lt(G.oe.ve)},100),Ot(G.re.fe,ro))},sh=()=>{const e=G.o;e.A&&(e.A=!1,(()=>{const i=eu(),n=G.o.L,r=G.oe.se,s=G.oe.ae,a=o=>Te(G.o.G,o);for(const o in r){const c=!!n[o].readOnly;r[o].checked=c||(i?Zc(o):a(o));for(const l in s[o])s[o][l].checked=c||(i?ih(l,o):a(o))}})(),Lt(G.oe.Ge,!0),di(G.oe.ye,Fc),ge(G.oe.we,bt,"true"),e.k?(Lt(e.$),e.$=null):(Lt(e.U),e.U=null),Ot(G.re._e,ro))};var oo={show:Qc,hide:nh,showPreferences:rh,hidePreferences:sh,acceptCategory:th};const eu=()=>!G.o.D,ah=async e=>{const{o:i,t:n,re:r}=G,s=window;if(!s._ccRun){if(s._ccRun=!0,(c=>{const{oe:l,t:f,o:d}=G,h=f,p=d,{cookie:g}=h,v=G.ce,y=c.cookie,C=c.categories,T=Di(C)||[],_=navigator,b=document;l.$e=b,l.ye=b.documentElement,g.domain=location.hostname,p.i=c,p.L=C,p.O=T,p._=c.language.translations,p.v=!!c.disablePageInteraction,v.ie=c.onFirstConsent,v.le=c.onConsent,v.de=c.onChange,v._e=c.onModalHide,v.fe=c.onModalShow,v.ue=c.onModalReady;const{mode:E,autoShow:L,lazyHtmlGeneration:P,autoClearCookies:j,revision:H,manageScriptTags:q,hideFromBots:U}=c;E===jn&&(h.mode=E),typeof j=="boolean"&&(h.autoClearCookies=j),typeof q=="boolean"&&(h.manageScriptTags=q),typeof H=="number"&&H>=0&&(h.revision=H,p.V=!0),typeof L=="boolean"&&(h.autoShow=L),typeof P=="boolean"&&(h.lazyHtmlGeneration=P),U===!1&&(h.hideFromBots=!1),h.hideFromBots===!0&&_&&(p.J=_.userAgent&&/bot|crawl|spider|slurp|teoma/i.test(_.userAgent)||_.webdriver),va(y)&&(h.cookie={...g,...y}),h.autoClearCookies,p.V,h.manageScriptTags,(Q=>{const{L:V,X:S,Y:I,Z:B,B:M}=G.o;for(let N of Q){const O=V[N],F=O.services||{},D=va(F)&&Di(F)||[];S[N]={},I[N]=[],B[N]=[],O.readOnly&&(M.push(N),I[N]=D),G.oe.ae[N]={};for(let Y of D){const z=F[Y];z.Se=!1,S[N][Y]=z}}})(T),(()=>{if(!G.t.manageScriptTags)return;const Q=G.o,V=so(document,"script["+Jr+"]");for(const S of V){let I=Br(S,Jr),B=S.dataset.service||"",M=!1;if(I&&I.charAt(0)==="!"&&(I=I.slice(1),M=!0),B.charAt(0)==="!"&&(B=B.slice(1),M=!0),Te(Q.O,I)&&(Q.ne.push({Me:S,xe:!1,ke:M,De:I,Te:B}),B)){const N=Q.X[I];N[B]||(N[B]={Se:!1})}}})(),Jc((()=>{const Q=G.o.i.language.autoDetect;if(Q){const V={browser:navigator.language,document:document.documentElement.lang},S=Kc(V[Q]);if(S)return S}return Xc()})())})(e),i.J)return;(()=>{const c=G.o,l=G.t,f=Zf(),{categories:d,services:h,consentId:p,consentTimestamp:g,lastConsentTimestamp:v,data:y,revision:C}=f,T=ws(d);c.p=f,c.M=p;const _=!!p&&mn(p);c.C=g,c.C&&(c.C=new Date(g)),c.S=v,c.S&&(c.S=new Date(v)),c.h=y!==void 0?y:null,c.V&&_&&C!==l.revision&&(c.I=!1),c.D=!(_&&c.I&&c.C&&c.S&&T),c.D,(()=>{const b=G.o;for(const E of b.O){const L=b.L[E];if(L.readOnly||L.enabled&&b.i.mode===jn){b.G.push(E);const P=b.X[E]||{};for(let j in P)b.Y[E].push(j)}}})(),c.D?l.mode===jn&&(c.R=[...c.G]):(c.Y={...c.Y,...h},Bc([...c.B,...d])),c.Z={...c.Y}})();const o=eu();if(!await Kf())return!1;if(qc(null,a=oo,ir,Un),G.o.D&&Gc(a,Un),G.t.lazyHtmlGeneration||ir(a,Un),n.autoShow&&!o&&Qc(!0),o)return ba(),Ot(r.le);n.mode===jn&&ba(i.G)}var a};var oh={exports:{}};(function(e){(function(i,n){var r=n(i,i.document,Date);i.lazySizes=r,e.exports&&(e.exports=r)})(typeof window<"u"?window:{},function(n,r,s){var a,o;if(function(){var O,F={lazyClass:"lazyload",loadedClass:"lazyloaded",loadingClass:"lazyloading",preloadClass:"lazypreload",errorClass:"lazyerror",autosizesClass:"lazyautosizes",fastLoadedClass:"ls-is-cached",iframeLoadMode:0,srcAttr:"data-src",srcsetAttr:"data-srcset",sizesAttr:"data-sizes",minSize:40,customMedia:{},init:!0,expFactor:1.5,hFac:.8,loadMode:2,loadHidden:!0,ricTimeout:0,throttleDelay:125};o=n.lazySizesConfig||n.lazysizesConfig||{};for(O in F)O in o||(o[O]=F[O])}(),!r||!r.getElementsByClassName)return{init:function(){},cfg:o,noSupport:!0};var c=r.documentElement,l=n.HTMLPictureElement,f="addEventListener",d="getAttribute",h=n[f].bind(n),p=n.setTimeout,g=n.requestAnimationFrame||p,v=n.requestIdleCallback,y=/^picture$/i,C=["load","error","lazyincluded","_lazyloaded"],T={},_=Array.prototype.forEach,b=function(O,F){return T[F]||(T[F]=new RegExp("(\\s|^)"+F+"(\\s|$)")),T[F].test(O[d]("class")||"")&&T[F]},E=function(O,F){b(O,F)||O.setAttribute("class",(O[d]("class")||"").trim()+" "+F)},L=function(O,F){var D;(D=b(O,F))&&O.setAttribute("class",(O[d]("class")||"").replace(D," "))},P=function(O,F,D){var Y=D?f:"removeEventListener";
22D&&P(O,F),C.forEach(function(z){O[Y](z,F)})},j=function(O,F,D,Y,z){var K=r.createEvent("Event");return D||(D={}),D.instance=a,K.initEvent(F,!Y,!z),K.detail=D,O.dispatchEvent(K),K},H=function(O,F){var D;!l&&(D=n.picturefill||o.pf)?(F&&F.src&&!O[d]("srcset")&&O.setAttribute("srcset",F.src),D({reevaluate:!0,elements:[O]})):F&&F.src&&(O.src=F.src)},q=function(O,F){return(getComputedStyle(O,null)||{})[F]},U=function(O,F,D){for(D=D||O.offsetWidth;D<o.minSize&&F&&!O._lazysizesWidth;)D=F.offsetWidth,F=F.parentNode;return D},Q=function(){var O,F,D=[],Y=[],z=D,K=function(){var ne=z;for(z=D.length?Y:D,O=!0,F=!1;ne.length;)ne.shift()();O=!1},ue=function(ne,se){O&&!se?ne.apply(this,arguments):(z.push(ne),F||(F=!0,(r.hidden?p:g)(K)))};return ue._lsFlush=K,ue}(),V=function(O,F){return F?function(){Q(O)}:function(){var D=this,Y=arguments;Q(function(){O.apply(D,Y)})}},S=function(O){var F,D=0,Y=o.throttleDelay,z=o.ricTimeout,K=function(){F=!1,D=s.now(),O()},ue=v&&z>49?function(){v(K,{timeout:z}),z!==o.ricTimeout&&(z=o.ricTimeout)}:V(function(){p(K)},!0);return function(ne){var se;(ne=ne===!0)&&(z=33),!F&&(F=!0,se=Y-(s.now()-D),se<0&&(se=0),ne||se<9?ue():p(ue,se))}},I=function(O){var F,D,Y=99,z=function(){F=null,O()},K=function(){var ue=s.now()-D;ue<Y?p(K,Y-ue):(v||z)(z)};return function(){D=s.now(),F||(F=p(K,Y))}},B=function(){var O,F,D,Y,z,K,ue,ne,se,de,fe,Ee,lt=/^img$/i,k=/^iframe$/i,m="onscroll"in n&&!/(gle|ing)bot/.test(navigator.userAgent),w=0,A=0,R=0,W=-1,oe=function(ae){R--,(!ae||R<0||!ae.target)&&(R=0)},be=function(ae){return Ee==null&&(Ee=q(r.body,"visibility")=="hidden"),Ee||!(q(ae.parentNode,"visibility")=="hidden"&&q(ae,"visibility")=="hidden")},we=function(ae,ye){var Me,$e=ae,Ke=be(ae);for(ne-=ye,fe+=ye,se-=ye,de+=ye;Ke&&($e=$e.offsetParent)&&$e!=r.body&&$e!=c;)Ke=(q($e,"opacity")||1)>0,Ke&&q($e,"overflow")!="visible"&&(Me=$e.getBoundingClientRect(),Ke=de>Me.left&&se<Me.right&&fe>Me.top-1&&ne<Me.bottom+1);return Ke},tt=function(){var ae,ye,Me,$e,Ke,it,Nt,Rt,ni,Bt,wi,$i,dt=a.elements;if((Y=o.loadMode)&&R<8&&(ae=dt.length)){for(ye=0,W++;ye<ae;ye++)if(!(!dt[ye]||dt[ye]._lazyRace)){if(!m||a.prematureUnveil&&a.prematureUnveil(dt[ye])){En(dt[ye]);continue}if((!(Rt=dt[ye][d]("data-expand"))||!(it=Rt*1))&&(it=A),Bt||(Bt=!o.expand||o.expand<1?c.clientHeight>500&&c.clientWidth>500?500:370:o.expand,a._defEx=Bt,wi=Bt*o.expFactor,$i=o.hFac,Ee=null,A<wi&&R<1&&W>2&&Y>2&&!r.hidden?(A=wi,W=0):Y>1&&W>1&&R<6?A=Bt:A=w),ni!==it&&(K=innerWidth+it*$i,ue=innerHeight+it,Nt=it*-1,ni=it),Me=dt[ye].getBoundingClientRect(),(fe=Me.bottom)>=Nt&&(ne=Me.top)<=ue&&(de=Me.right)>=Nt*$i&&(se=Me.left)<=K&&(fe||de||se||ne)&&(o.loadHidden||be(dt[ye]))&&(F&&R<3&&!Rt&&(Y<3||W<4)||we(dt[ye],it))){if(En(dt[ye]),Ke=!0,R>9)break}else!Ke&&F&&!$e&&R<4&&W<4&&Y>2&&(O[0]||o.preloadAfterLoad)&&(O[0]||!Rt&&(fe||de||se||ne||dt[ye][d](o.sizesAttr)!="auto"))&&($e=O[0]||dt[ye])}$e&&!Ke&&En($e)}},He=S(tt),mt=function(ae){var ye=ae.target;if(ye._lazyCache){delete ye._lazyCache;return}oe(ae),E(ye,o.loadedClass),L(ye,o.loadingClass),P(ye,Ct),j(ye,"lazyloaded")},Ui=V(mt),Ct=function(ae){Ui({target:ae.target})},Mf=function(ae,ye){var Me=ae.getAttribute("data-load-mode")||o.iframeLoadMode;Me==0?ae.contentWindow.location.replace(ye):Me==1&&(ae.src=ye)},Lf=function(ae){var ye,Me=ae[d](o.srcsetAttr);(ye=o.customMedia[ae[d]("data-media")||ae[d]("media")])&&ae.setAttribute("media",ye),Me&&ae.setAttribute("srcset",Me)},Of=V(function(ae,ye,Me,$e,Ke){var it,Nt,Rt,ni,Bt,wi;(Bt=j(ae,"lazybeforeunveil",ye)).defaultPrevented||($e&&(Me?E(ae,o.autosizesClass):ae.setAttribute("sizes",$e)),Nt=ae[d](o.srcsetAttr),it=ae[d](o.srcAttr),Ke&&(Rt=ae.parentNode,ni=Rt&&y.test(Rt.nodeName||"")),wi=ye.firesLoad||"src"in ae&&(Nt||it||ni),Bt={target:ae},E(ae,o.loadingClass),wi&&(clearTimeout(D),D=p(oe,2500),P(ae,Ct,!0)),ni&&_.call(Rt.getElementsByTagName("source"),Lf),Nt?ae.setAttribute("srcset",Nt):it&&!ni&&(k.test(ae.nodeName)?Mf(ae,it):ae.src=it),Ke&&(Nt||ni)&&H(ae,{src:it})),ae._lazyRace&&delete ae._lazyRace,L(ae,o.lazyClass),Q(function(){var $i=ae.complete&&ae.naturalWidth>1;(!wi||$i)&&($i&&E(ae,o.fastLoadedClass),mt(Bt),ae._lazyCache=!0,p(function(){"_lazyCache"in ae&&delete ae._lazyCache},9)),ae.loading=="lazy"&&R--},!0)}),En=function(ae){if(!ae._lazyRace){var ye,Me=lt.test(ae.nodeName),$e=Me&&(ae[d](o.sizesAttr)||ae[d]("sizes")),Ke=$e=="auto";(Ke||!F)&&Me&&(ae[d]("src")||ae.srcset)&&!ae.complete&&!b(ae,o.errorClass)&&b(ae,o.lazyClass)||(ye=j(ae,"lazyunveilread").detail,Ke&&M.updateElem(ae,!0,ae.offsetWidth),ae._lazyRace=!0,R++,Of(ae,ye,Ke,$e,Me))}},Pf=I(function(){o.loadMode=3,He()}
22),tl=function(){o.loadMode==3&&(o.loadMode=2),Pf()},xr=function(){if(!F){if(s.now()-z<999){p(xr,999);return}F=!0,o.loadMode=3,He(),h("scroll",tl,!0)}};return{_:function(){z=s.now(),a.elements=r.getElementsByClassName(o.lazyClass),O=r.getElementsByClassName(o.lazyClass+" "+o.preloadClass),h("scroll",He,!0),h("resize",He,!0),h("pageshow",function(ae){if(ae.persisted){var ye=r.querySelectorAll("."+o.loadingClass);ye.length&&ye.forEach&&g(function(){ye.forEach(function(Me){Me.complete&&En(Me)})})}}),n.MutationObserver?new MutationObserver(He).observe(c,{childList:!0,subtree:!0,attributes:!0}):(c[f]("DOMNodeInserted",He,!0),c[f]("DOMAttrModified",He,!0),setInterval(He,999)),h("hashchange",He,!0),["focus","mouseover","click","load","transitionend","animationend"].forEach(function(ae){r[f](ae,He,!0)}),/d$|^c/.test(r.readyState)?xr():(h("load",xr),r[f]("DOMContentLoaded",He),p(xr,2e4)),a.elements.length?(tt(),Q._lsFlush()):He()},checkElems:He,unveil:En,_aLSL:tl}}(),M=function(){var O,F=V(function(K,ue,ne,se){var de,fe,Ee;if(K._lazysizesWidth=se,se+="px",K.setAttribute("sizes",se),y.test(ue.nodeName||""))for(de=ue.getElementsByTagName("source"),fe=0,Ee=de.length;fe<Ee;fe++)de[fe].setAttribute("sizes",se);ne.detail.dataAttr||H(K,ne.detail)}),D=function(K,ue,ne){var se,de=K.parentNode;de&&(ne=U(K,de,ne),se=j(K,"lazybeforesizes",{width:ne,dataAttr:!!ue}),se.defaultPrevented||(ne=se.detail.width,ne&&ne!==K._lazysizesWidth&&F(K,de,se,ne)))},Y=function(){var K,ue=O.length;if(ue)for(K=0;K<ue;K++)D(O[K])},z=I(Y);return{_:function(){O=r.getElementsByClassName(o.autosizesClass),h("resize",z)},checkElems:z,updateElem:D}}(),N=function(){!N.i&&r.getElementsByClassName&&(N.i=!0,M._(),B._())};return p(function(){o.init&&N()}),a={cfg:o,autoSizer:M,loader:B,init:N,uP:H,aC:E,rC:L,hC:b,fire:j,gW:U,rAF:Q},a})})(oh);/*!
23 * Waves v0.7.6
24 * http://fian.my.id/Waves
25 *
26 * Copyright 2014-2018 Alfiana E. Sibuea and other contributors
27 * Released under the MIT license
28 * https://github.com/fians/Waves/blob/master/LICENSE
29 */(function(e,i){typeof define=="function"&&define.amd?define([],function(){return e.Waves=i.call(e),e.Waves}):e.Waves=i.call(e)})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:void 0,function(){var e=this,i=e&&e.Waves?e.Waves:{},n=document.querySelectorAll.bind(document),r=Object.prototype.toString,s=e&&"ontouchstart"in e,a=e&&e.getComputedStyle?e.getComputedStyle.bind(e):null;function o(b){return b!==null&&b===b.window}function c(b){return o(b)?b:b.nodeType===9&&b.defaultView}function l(b){var E=typeof b;return E==="function"||E==="object"&&!!b}function f(b){return l(b)&&b.nodeType>0}function d(b){var E=r.call(b);return E==="[object String]"?n(b):l(b)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(E)&&b.hasOwnProperty("length")?b:f(b)?[b]:[]}function h(b){var E,L,P={top:0,left:0},j=b&&b.ownerDocument;return E=j.documentElement,typeof b.getBoundingClientRect<"u"&&(P=b.getBoundingClientRect()),L=c(j),{top:P.top+L.pageYOffset-E.clientTop,left:P.left+L.pageXOffset-E.clientLeft}}function p(b){var E="";for(var L in b)b.hasOwnProperty(L)&&(E+=L+":"+b[L]+";");return E}var g={duration:750,delay:200,show:function(b,E,L){if(b.button===2)return!1;E=E||this;var P=document.createElement("div");P.className="waves-ripple waves-rippling",E.appendChild(P);var j=h(E),H=0,q=0;"touches"in b&&b.touches.length?(H=b.touches[0].pageY-j.top,q=b.touches[0].pageX-j.left):(H=b.pageY-j.top,q=b.pageX-j.left),q=q>=0?q:0,H=H>=0?H:0;var U="scale("+E.clientWidth/100*3+")",Q="translate(0,0)";L&&(Q="translate("+L.x+"px, "+L.y+"px)"),P.setAttribute("data-hold",Date.now()),P.setAttribute("data-x",q),P.setAttribute("data-y",H),P.setAttribute("data-scale",U),P.setAttribute("data-translate",Q);var V={top:H+"px",left:q+"px"};P.classList.add("waves-notransition"),P.setAttribute("style",p(V)),P.classList.remove("waves-notransition"),V["-webkit-transform"]=U+" "+Q,V["-moz-transform"]=U+" "+Q,V["-ms-transform"]=U+" "+Q,V["-o-transform"]=U+" "+Q,V.transform=U+" "+Q,V.opacity="1";var S=b.type==="mousemove"?2500:g.duration;V["-webkit-transition-duration"]=S+"ms",V["-moz-transition-duration"]=S+"ms",V["-o-transition-duration"]=S+"ms",V["transition-duration"]=S+"ms",P.setAttribute("style",p(V))},hide:function(b,E){E=E||this;for(var L=E.getElementsByClassName("waves-rippling"),P=0,j=L.length;P<j;P++)y(b,E,L[P]);s&&(E.removeEventListener("touchend",g.hide),E.removeEventListener("touchcancel",g.hide)),E.removeEventListener("mouseup",g.hide),E.removeEventListener("mouseleave",g.hide)}},v={input:function(b){var E=b.parentNode;if(!(E.tagName.toLowerCase()==="i"&&E.classList.contains("waves-effect"))){var L=document.createElement("i");L.className=b.className+" waves-input-wrapper",b.className="waves-button-input",E.replaceChild(L,b),L.appendChild(b);var P=a?a(b,null):b.currentStyle||{},j=P.color,H=P.backgroundColor;L.setAttribute("style","color:"+j+";background:"+H),b.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(b){var E=b.parentNode;if(!(E.tagName.toLowerCase()==="i"&&E.classList.contains("waves-effect"))){var L=document.createElement("i");E.replaceChild(L,b),L.appendChild(b)}}};function y(b,E,L){if(L){L.classList.remove("waves-rippling");var P=L.getAttribute("data-x"),j=L.getAttribute("data-y"),H=L.getAttribute("data-scale"),q=L.getAttribute("data-translate"),U=Date.now()-Number(L.getAttribute("data-hold")),Q=350-U;Q<0&&(Q=0),b.type==="mousemove"&&(Q=150);var V=b.type==="mousemove"?2500:g.duration;setTimeout(function(){var S={top:j+"px",left:P+"px",opacity:"0","-webkit-transition-duration":V+"ms","-moz-transition-duration":V+"ms","-o-transition-duration":V+"ms","transition-duration":V+"ms","-webkit-transform":H+" "+q,"-moz-transform":H+" "+q,"-ms-transform":H+" "+q,"-o-transform":H+" "+q,transform:H+" "+q};L.setAttribute("style",p(S)),setTimeout(function(){try{E.removeChild(L)}catch{return!1}},V)},Q)}}var C={touches:0,allowEvent:function(b){var E=!0;return/^(mousedown|mousemove)$/.test(b.type)&&C.touches&&(E=!1),E},registerEvent:function(b){var E=b.type;E==="touchstart"?C.touches+=1:/^(touchend|touchcancel)$/.test(E)&&setTimeout(function(){C.touches&&(C.touches-=1)},500)}};function T(b){if(C.allowEvent(b)===!1)return null;for(var E=null,L=b.target||b.srcElement;L.parentElement;){if(!(L instanceof SVGElement)&&L.classList.contains("waves-effect")){E=L;break}L=L.parentElement}return E}function _(b){var E=T(b);if(E!==null){if(E.disabled||E.getAttribute("disabled")||E.classList.contains("disabled"))return;if(C.registerEvent(b),b.type==="touchstart"&&g.delay){var L=!1,P=setTimeout(function(){P=null,g.show(b,E)},g.delay),j=function(U){P&&(clearTimeout(P),P=null,g.show(b,E)),L||(L=!0,g.hide(U,E)),q()},H=function(U){P&&(clearTimeout(P),P=null),j(U),q()};E.addEventListener("touchmove",H,!1),E.addEventListener("touchend",j,!1),E.addEventListener("touchcancel",j,!1);var q=function(){E.removeEventListener("touchmove",H),E.removeEventListener("touchend",j),E.removeEventListener("touchcancel",j)}}else g.show(b,E),s&&(E.addEventListener("touchend",g.hide,!1),E.addEventListener("touchcancel",g.hide,!1)),E.addEventListener("mouseup",g.hide,!1),E.addEventListener("mouseleave",g.hide,!1)}}return i.init=function(b){var E=document.body;b=b||{},"duration"in b&&(g.duration=b.duration),"delay"in b&&(g.delay=b.delay),s&&(E.addEventListener("touchstart",_,!1),E.addEventListener("touchcancel",C.registerEvent,!1),E.addEventListener("touchend",C.registerEvent,!1)),E.addEventListener("mousedown",_,!1)},i.attach=function(b,E){b=d(b),r.call(E)==="[object Array]"&&(E=E.join(" ")),E=E?" "+E:"";for(var L,P,j=0,H=b.length;j<H;j++)L=b[j],P=L.tagName.toLowerCase(),["input","img"].indexOf(P)!==-1&&(v[P](L),L=L.parentElement),L.className.indexOf("waves-effect")===-1&&(L.className+=" waves-effect"+E)},i.ripple=function(b,E){b=d(b);var L=b.length;if(E=E||{},E.wait=E.wait||0,E.position=E.position||null,L){for(var P,j,H,q={},U=0,Q={type:"mousedown",button:1},V=function(I,B){return function(){g.hide(I,B)}};U<L;U++)if(P=b[U],j=E.position||{x:P.clientWidth/2,y:P.clientHeight/2},H=h(P),q.x=H.left+j.x,q.y=H.top+j.y,Q.pageX=q.x,Q.pageY=q.y,g.show(Q,P),E.wait>=0&&E.wait!==null){var S={type:"mouseup",button:1};setTimeout(V(S,P),E.wait)}}},i.calm=function(b){b=d(b);for(var E={type:"mouseup",button:1},L=0,P=b.length;L<P;L++)g.hide(E,b[L])},i.displayEffect=function(b){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),i.init(b)},i});const lh=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:{},ch=lh.Waves;window.$=window.jQuery=ut;function uh(e){try{Oe("event","Outbound","Click",e,void 0,!1),e=="https://consult.education.gov.uk/pshe/relationships-education-rse-health-education/consultation/"?fbq("track","Purchase",{currency:"GBP",value:1}):e=="https://www.eauk.org/sent"&&fbq("track","Purchase",{currency:"GBP",value:1})}catch{}return!0}if(!$("body").hasClass("devmode-true")&&($('a[href^="mailto:"]').click(function(){var e=ut(this).attr("href");return Oe("event","Email Enquiry","Mailto Click",e,void 0,!1),!0}),$('a[href^="tel:"]').click(function(){var e=ut(this).attr("href");return Oe("event","Telephone Enquiry","Tel Link Click",e,void 0,!1),!0}),$(".apply, .apply-sidebar").click(function(){fbq("track","Purchase",{currency:"GBP",value:1})}),$(".profile-dropdown-btn").click(function(){$(".profile-dropdown").hasClass("show")||Oe("event","Your account","Interaction","Open",void 0,!1)}),$(".video-play, .video-img.enable-play").click(function(){var e=$
29(this).data("title");e&&Oe("event","Video","Play",e,void 0,!1)}),$(".container .join-us").click(function(){Oe("event","Join us header","Interaction",window.location.href,void 0,!1)}),$(".sharing a").click(function(){$(this).hasClass("fb")?Oe("event","Social media share","Facebook",window.location.href,void 0,!1):$(this).hasClass("twitter")?Oe("event","Social media share","Twitter",window.location.href,void 0,!1):$(this).hasClass("messenger")?Oe("event","Social media share","Messenger",window.location.href,void 0,!1):$(this).hasClass("email")&&Oe("event","Social media share","Email",window.location.href,void 0,!1)}),$(document).on("click",".sponsored,.sponsored-listing-idea-online",function(){link=$(this).attr("href"),console.log(link),Oe("event","Advertisement","Click",link,void 0,!1)}),$(".sponsored-listing-idea-online").length)){let e=function(n){var r=n.getBoundingClientRect(),s=r.top,a=r.top+r.height;return s>=0&&a<=Math.min(document.documentElement.clientHeight,window.innerHeight||0)},i=function(){for(var n=document.querySelectorAll(".sponsored-listing-idea-online"),r=0;r<n.length;r++)window.matchMedia("(min-width: "+screen_sm+"px)").matches&&!hl&&e(n[r])&&(Oe("event","Advertisement","View",dh,void 0,!1),hl=!0,console.log("YES"))};var hl=!1,dh=$(".sponsored-listing-idea-online").attr("href");i(),$(window).on("scroll",i)}var tu={exports:{}};(function(e){(function(i){e.exports?e.exports=function(n,r){return r===void 0&&(r=typeof window<"u"?pi():pi()(n)),i(r),r}:i(jQuery)})(function(i){function n(h,p){if(!(this instanceof n)){var g=new n(h,p);return g.open(),g}this.id=n.id++,this.setup(h,p),this.chainCallbacks(n._callbackChain)}function r(h,p){var g={};for(var v in h)v in p&&(g[v]=h[v],delete h[v]);return g}function s(h,p){var g={},v=new RegExp("^"+p+"([A-Z])(.*)");for(var y in h){var C=y.match(v);if(C){var T=(C[1]+C[2].replace(/([A-Z])/g,"-$1")).toLowerCase();g[T]=h[y]}}return g}if(typeof i>"u")return void("console"in window&&window.console.info("Too much lightness, Featherlight needs jQuery."));if(i.fn.jquery.match(/-ajax/))return void("console"in window&&window.console.info("Featherlight needs regular jQuery, not the slim version."));var a=[],o=function(h){return a=i.grep(a,function(p){return p!==h&&p.$instance.closest("body").length>0})},c={allow:1,allowfullscreen:1,frameborder:1,height:1,longdesc:1,marginheight:1,marginwidth:1,mozallowfullscreen:1,name:1,referrerpolicy:1,sandbox:1,scrolling:1,src:1,srcdoc:1,style:1,webkitallowfullscreen:1,width:1},l={keyup:"onKeyUp",resize:"onResize"},f=function(h){i.each(n.opened().reverse(),function(){return h.isDefaultPrevented()||this[l[h.type]](h)!==!1?void 0:(h.preventDefault(),h.stopPropagation(),!1)})},d=function(h){if(h!==n._globalHandlerInstalled){n._globalHandlerInstalled=h;var p=i.map(l,function(g,v){return v+"."+n.prototype.namespace}).join(" ");i(window)[h?"on":"off"](p,f)}};n.prototype={constructor:n,namespace:"featherlight",targetAttr:"data-featherlight",variant:null,resetCss:!1,background:null,openTrigger:"click",closeTrigger:"click",filter:null,root:"body",openSpeed:250,closeSpeed:250,closeOnClick:"background",closeOnEsc:!0,closeIcon:"&#10005;",loading:"",persist:!1,otherClose:null,beforeOpen:i.noop,beforeContent:i.noop,beforeClose:i.noop,afterOpen:i.noop,afterContent:i.noop,afterClose:i.noop,onKeyUp:i.noop,onResize:i.noop,type:null,contentFilters:["jquery","image","html","ajax","iframe","text"],setup:function(h,p){typeof h!="object"||h instanceof i||p||(p=h,h=void 0);var g=i.extend(this,p,{target:h}),v=g.resetCss?g.namespace+"-reset":g.namespace,y=i(g.background||['<div class="'+v+"-loading "+v+'">','<div class="'+v+'-content">','<button class="'+v+"-close-icon "+g.namespace+'-close" aria-label="Close">',g.closeIcon,"</button>",'<div class="'+g.namespace+'-inner">'+g.loading+"</div>","</div>","</div>"].join("")),C="."+g.namespace+"-close"+(g.otherClose?","+g.otherClose:"");return g.$instance=y.clone().addClass(g.variant),g.$instance.on(g.closeTrigger+"."+g.namespace,function(T){if(!T.isDefaultPrevented()){var _=i(T.target);(g.closeOnClick==="background"&&_.is("."+g.namespace)||g.closeOnClick==="anywhere"||_.closest(C).length)&&(g.close(T),T.preventDefault())}}),this},getContent:function(){if(this.persist!==!1&&this.$content)return this.$content;var h=this,p=this.constructor.contentFilters,g=function(b){return h.$currentTarget&&h.$currentTarget.attr(b)},v=g(h.targetAttr),y=h.target||v||"",C=p[h.type];if(!C&&y in p&&(C=p[y],y=h.target&&v),y=y||g("href")||"",!C)for(var T in p)h[T]&&(C=p[T],y=h[T]);if(!C){var _=y;if(y=null,i.each(h.contentFilters,function(){return C=p[this],C.test&&(y=C.test(_)),!y&&C.regex&&_.match&&_.match(C.regex)&&(y=_),!y}),!y)return"console"in window&&window.console.error("Featherlight: n
29o content filter found "+(_?' for "'+_+'"':" (no target specified)")),!1}return C.process.call(h,y)},setContent:function(h){return this.$instance.removeClass(this.namespace+"-loading"),this.$instance.toggleClass(this.namespace+"-iframe",h.is("iframe")),this.$instance.find("."+this.namespace+"-inner").not(h).slice(1).remove().end().replaceWith(i.contains(this.$instance[0],h[0])?"":h),this.$content=h.addClass(this.namespace+"-inner"),this},open:function(h){var p=this;if(p.$instance.hide().appendTo(p.root),!(h&&h.isDefaultPrevented()||p.beforeOpen(h)===!1)){h&&h.preventDefault();var g=p.getContent();if(g)return a.push(p),d(!0),p.$instance.fadeIn(p.openSpeed),p.beforeContent(h),i.when(g).always(function(v){v&&(p.setContent(v),p.afterContent(h))}).then(p.$instance.promise()).done(function(){p.afterOpen(h)})}return p.$instance.detach(),i.Deferred().reject().promise()},close:function(h){var p=this,g=i.Deferred();return p.beforeClose(h)===!1?g.reject():(o(p).length===0&&d(!1),p.$instance.fadeOut(p.closeSpeed,function(){p.$instance.detach(),p.afterClose(h),g.resolve()})),g.promise()},resize:function(h,p){if(h&&p){this.$content.css("width","").css("height","");var g=Math.max(h/(this.$content.parent().width()-1),p/(this.$content.parent().height()-1));g>1&&(g=p/Math.floor(p/g),this.$content.css("width",""+h/g+"px").css("height",""+p/g+"px"))}},chainCallbacks:function(h){for(var p in h)this[p]=i.proxy(h[p],this,i.proxy(this[p],this))}},i.extend(n,{id:0,autoBind:"[data-featherlight]",defaults:n.prototype,contentFilters:{jquery:{regex:/^[#.]\w/,test:function(h){return h instanceof i&&h},process:function(h){return this.persist!==!1?i(h):i(h).clone(!0)}},image:{regex:/\.(png|jpg|jpeg|gif|tiff?|bmp|svg)(\?\S*)?$/i,process:function(h){var p=this,g=i.Deferred(),v=new Image,y=i('<img src="'+h+'" alt="" class="'+p.namespace+'-image" />');return v.onload=function(){y.naturalWidth=v.width,y.naturalHeight=v.height,g.resolve(y)},v.onerror=function(){g.reject(y)},v.src=h,g.promise()}},html:{regex:/^\s*<[\w!][^<]*>/,process:function(h){return i(h)}},ajax:{regex:/./,process:function(h){var p=i.Deferred(),g=i("<div></div>").load(h,function(v,y){y!=="error"&&p.resolve(g.contents()),p.reject()});return p.promise()}},iframe:{process:function(h){var p=new i.Deferred,g=i("<iframe/>"),v=s(this,"iframe"),y=r(v,c);return g.hide().attr("src",h).attr(y).css(v).on("load",function(){p.resolve(g.show())}).appendTo(this.$instance.find("."+this.namespace+"-content")),p.promise()}},text:{process:function(h){return i("<div>",{text:h})}}},functionAttributes:["beforeOpen","afterOpen","beforeContent","afterContent","beforeClose","afterClose"],readElementConfig:function(h,p){var g=this,v=new RegExp("^data-"+p+"-(.*)"),y={};return h&&h.attributes&&i.each(h.attributes,function(){var C=this.name.match(v);if(C){var T=this.value,_=i.camelCase(C[1]);if(i.inArray(_,g.functionAttributes)>=0)T=new Function(T);else try{T=JSON.parse(T)}catch{}y[_]=T}}),y},extend:function(h,p){var g=function(){this.constructor=h};return g.prototype=this.prototype,h.prototype=new g,h.__super__=this.prototype,i.extend(h,this,p),h.defaults=h.prototype,h},attach:function(h,p,g){var v=this;typeof p!="object"||p instanceof i||g||(g=p,p=void 0),g=i.extend({},g);var y,C=g.namespace||v.defaults.namespace,T=i.extend({},v.defaults,v.readElementConfig(h[0],C),g),_=function(b){var E=i(b.currentTarget),L=i.extend({$source:h,$currentTarget:E},v.readElementConfig(h[0],T.namespace),v.readElementConfig(b.currentTarget,T.namespace),g),P=y||E.data("featherlight-persisted")||new v(p,L);P.persist==="shared"?y=P:P.persist!==!1&&E.data("featherlight-persisted",P),L.$currentTarget.blur&&L.$currentTarget.blur(),P.open(b)};return h.on(T.openTrigger+"."+T.namespace,T.filter,_),{filter:T.filter,handler:_}},current:function(){var h=this.opened();return h[h.length-1]||null},opened:function(){var h=this;return o(),i.grep(a,function(p){return p instanceof h})},close:function(h){var p=this.current();return p?p.close(h):void 0},_onReady:function(){var h=this;if(h.autoBind){var p=i(h.autoBind);p.each(function(){h.attach(i(this))}),i(document).on("click",h.autoBind,function(g){if(!g.isDefaultPrevented()){var v=i(g.currentTarget),y=p.length;if(p=p.add(v),y!==p.length){var C=h.attach(v);(!C.filter||i(g.target).parentsUntil(v,C.filter).length>0)&&C.handler(g)}}})}},_callbackChain:{onKeyUp:function(h,p){return p.keyCode===27?(this.closeOnEsc&&i.featherlight.close(p),!1):h(p)},beforeOpen:function(h,p){return i(document.documentElement).addClass("with-featherlight"),this._previouslyActive=document.activeElement,this._$previouslyTabbable=i("a, input, select, textarea, iframe, button, iframe, [contentEditable=true]").not("[tabindex]").not(this.$instance.find("button")),this._$previouslyWithTabIndex=i("[tabindex]").not('[tabindex="-1"]'),this._previousWithTabIndices=this._$previouslyWithTabIndex.map(function(g,v){return i(v).attr("tabindex")}),this._$previouslyWithTabIndex.add(this._$previouslyTabbable).attr("tabindex",-1),document.activeElement.blur&&document.activeElement.blur(),h(p)},afterClose:function(h,p){var g=h(p),v=this;return this._$previouslyTabbable.removeAttr("tabindex"),this._$previouslyWithTabIndex.each(function(y,C){i(C).attr("tabindex",v._previousWithTabIndices[y])}),this._previouslyActive.focus(),n.opened().length===0&&i(document.documentElement).removeClass("with-featherlight"),g},onResize:function(h,p){return this.resize(this.$content.naturalWi
29dth,this.$content.naturalHeight),h(p)},afterContent:function(h,p){var g=h(p);return this.$instance.find("[autofocus]:not([disabled])").focus(),this.onResize(p),g}}}),i.featherlight=n,i.fn.featherlight=function(h,p){return n.attach(this,h,p),this},i(document).ready(function(){n._onReady()})})})(tu);var fh=tu.exports;const hh=bs(fh);var iu={exports:{}};(function(e){(function(i){e.exports?e.exports=function(n,r){return r===void 0&&(r=typeof window<"u"?pi():pi()(n)),i(r),r}:i(jQuery)})(function(i){function n(f,d){if(!(this instanceof n)){var h=new n(i.extend({$source:f,$currentTarget:f.first()},d));return h.open(),h}i.featherlight.apply(this,arguments),this.chainCallbacks(l)}var r=function(f){window.console&&window.console.warn&&window.console.warn("FeatherlightGallery: "+f)};if(typeof i>"u")return r("Too much lightness, Featherlight needs jQuery.");if(!i.featherlight)return r("Load the featherlight plugin before the gallery plugin");var s="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,a=i.event&&i.event.special.swipeleft&&i,o=window.Hammer&&function(f){var d=new window.Hammer.Manager(f[0]);return d.add(new window.Hammer.Swipe),d},c=s&&(a||o);s&&!c&&r("No compatible swipe library detected; one must be included before featherlightGallery for swipe motions to navigate the galleries.");var l={afterClose:function(f,d){var h=this;return h.$instance.off("next."+h.namespace+" previous."+h.namespace),h._swiper&&(h._swiper.off("swipeleft",h._swipeleft).off("swiperight",h._swiperight),h._swiper=null),f(d)},beforeOpen:function(f,d){var h=this;return h.$instance.on("next."+h.namespace+" previous."+h.namespace,function(p){var g=p.type==="next"?1:-1;h.navigateTo(h.currentNavigation()+g)}),c&&(h._swiper=c(h.$instance).on("swipeleft",h._swipeleft=function(){h.$instance.trigger("next")}).on("swiperight",h._swiperight=function(){h.$instance.trigger("previous")}),h.$instance.addClass(this.namespace+"-swipe-aware",c)),h.$instance.find("."+h.namespace+"-content").append(h.createNavigation("previous")).append(h.createNavigation("next")),f(d)},beforeContent:function(f,d){var h=this.currentNavigation(),p=this.slides().length;return this.$instance.toggleClass(this.namespace+"-first-slide",h===0).toggleClass(this.namespace+"-last-slide",h===p-1),f(d)},onKeyUp:function(f,d){var h={37:"previous",39:"next"}[d.keyCode];return h?(this.$instance.trigger(h),!1):f(d)}};i.featherlight.extend(n,{autoBind:"[data-featherlight-gallery]"}),i.extend(n.prototype,{previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:100,galleryFadeOut:300,slides:function(){return this.filter?this.$source.find(this.filter):this.$source},images:function(){return r("images is deprecated, please use slides instead"),this.slides()},currentNavigation:function(){return this.slides().index(this.$currentTarget)},navigateTo:function(f){var d=this,h=d.slides(),p=h.length,g=d.$instance.find("."+d.namespace+"-inner");return f=(f%p+p)%p,this.$instance.addClass(this.namespace+"-loading"),d.$currentTarget=h.eq(f),d.beforeContent(),i.when(d.getContent(),g.fadeTo(d.galleryFadeOut,.2)).always(function(v){d.setContent(v),d.afterContent(),v.fadeTo(d.galleryFadeIn,1)})},createNavigation:function(f){var d=this;return i('<span title="'+f+'" class="'+this.namespace+"-"+f+'"><span>'+this[f+"Icon"]+"</span></span>").click(function(h){i(this).trigger(f+"."+d.namespace),h.preventDefault()})}}),i.featherlightGallery=n,i.fn.featherlightGallery=function(f){return n.attach(this,f),this},i(document).ready(function(){n._onReady()})})})(iu);var ph=iu.exports;const mh=bs(ph);window.$=window.jQuery=ut;hh(window,ut);mh(window,ut);window.featherlight=ut.featherlight;var pl;window.addEventListener("load",function(){const e=ch||(typeof window<"u"?window.Waves:null);e?(console.log("Waves loaded"),e.init(),e.attach(".button, .ripple")):console.log("Waves not loaded"),document.documentElement.classList.remove("no-js");var i=co("cookieconsent_status");if(i!=="dismiss"){var n=function(){var r=!1;try{r=Zc("analytics")}catch{}window.dispatchEvent(new CustomEvent("eauk:consentchange",{detail:{analytics:r}}))};ah({onConsent:({cookie:r})=>{window.consent_status=!0,n()},onChange:({cookie:r,changedCategories:s})=>{n()},guiOptions:{consentModal:{layout:"box",position:"bottom left",equalWeightButtons:!1,flipButtons:!1},preferencesModal:{layout:"bar",position:"left",equalWeightButtons:!1,flipButtons:!1}},categories:{necessary:{readOnly:!0},analytics:{enabled:!0}},language:{default:"en",autoDetect:"browser",translations:{en:{consentModal:{title:"Cookies on our website",description:"We use some essential cookies to ensure you get the best experience while on our website.",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",showPreferencesBtn:"Manage preferences",footer
29:`<a href="/privacy-policy">Privacy Policy</a>
30<a href="/cookie-policy">Cookie policy</a>`},preferencesModal:{title:"Consent Preferences Center",acceptAllBtn:"Accept all",acceptNecessaryBtn:"Reject all",savePreferencesBtn:"Save preferences",closeIconLabel:"Close modal",serviceCounterLabel:"Service|Services",sections:[{title:"Cookie Usage",description:"We use cookies to enhance your experience of using our website. Some essential features on our website won’t work without cookies.."},{title:'Strictly Necessary Cookies <span class="pm__badge">Always Enabled</span>',description:"These cookies are required in order for the website to work as intended.",linkedCategory:"necessary"},{title:"Analytics Cookies",description:"These cookies help us enhance the website so we can anonymously analyse how people engage with our website..",linkedCategory:"analytics"},{title:"More information",description:'For any query in relation to our policy on cookies and your choices, please <a class="cc__link" href="/contact-us">contact us</a>.'}]}}}}})}else window.consent_status=!0});function lo(e,i,n){var r=new Date;r.setTime(r.getTime()+n*24*60*60*1e3);var s="expires="+r.toUTCString();document.cookie=e+"="+i+";"+s+";path=/"}function co(e){for(var i=e+"=",n=document.cookie.split(";"),r=0;r<n.length;r++){for(var s=n[r];s.charAt(0)==" ";)s=s.substring(1);if(s.indexOf(i)==0)return s.substring(i.length,s.length)}return""}window.setCookie=lo;window.getCookie=co;window.getUrlParameter=rt;function gh(){if(typeof window>"u"||typeof document>"u"||window.__eaukUserContextBridgeInit)return;window.__eaukUserContextBridgeInit=!0,window.dataLayer=window.dataLayer||[],typeof window.csrfTokenName>"u"&&(window.csrfTokenName=null),typeof window.csrfTokenValue>"u"&&(window.csrfTokenValue=null),window.eaukUserData=window.eaukUserData||{isLoggedIn:!1,isMember:!1,isLapsed:!1,isGuest:!0,membershipId:null,isStaff:!1};let e=null,i=null;function n(c){document.readyState==="complete"?c():window.addEventListener("load",c,{once:!0})}function r(c){c&&(c.loginRedirectUrl?n(function(){}):c.clearLoginRedirect&&n(function(){typeof window.setCookie=="function"&&window.setCookie("login_redirect","",-1)}))}function s(c){if(c){if(window.eaukUserData=Object.assign({},window.eaukUserData,c),n(function(){document.body&&(window.eaukUserData.isLoggedIn?document.body.classList.add("logged-in"):document.body.classList.remove("logged-in"))}),window.eaukUserData.membershipId){const l={userId:window.eaukUserData.membershipId};window.eaukUserData.isStaff&&(l.event="traffic_type",l.traffic_type="internal"),(window.eaukUserData.membershipId!==e||window.eaukUserData.isStaff!==i)&&(window.dataLayer.push(l),e=window.eaukUserData.membershipId,i=window.eaukUserData.isStaff)}r(window.eaukUserData)}}function a(c){if(!c||typeof c.getAttribute!="function")return null;const l=c.getAttribute("data-eauk-user-context");if(!l)return null;try{return JSON.parse(l)}catch(f){return console.warn("Unable to parse user context payload.",f),null}}function o(c){const l=(c||document).querySelector?(c||document).querySelector("[data-eauk-user-context]"):null;if(!l)return;const f=a(l);f&&s(f)}if(typeof MutationObserver<"u"){const c=new MutationObserver(function(l){let f=!1;for(const d of l){if(f)break;for(const h of d.addedNodes)if(!(typeof Node<"u"&&h.nodeType!==Node.ELEMENT_NODE)){if(h&&typeof h.getAttribute=="function"&&h.hasAttribute("data-eauk-user-context")){const p=a(h);if(p){s(p),f=!0;break}}else if(h&&typeof h.querySelector=="function"){const p=h.querySelector("[data-eauk-user-context]");if(p){const g=a(p);if(g){s(g),f=!0;break}}}}}f&&c.disconnect()});c.observe(document.body,{childList:!0,subtree:!0})}o(document),window.addEventListener("eauk:user-data",function(c){s(c.detail||{})})}gh();async function uo({force:e=!1}={}){if(!!(window.csrfTokenName&&window.csrfTokenValue)&&!e)return;const n={credentials:"same-origin",headers:{"X-Requested-With":"XMLHttpRequest"}};try{const[r,s]=await Promise.all([fetch("/actions/blitz/csrf/param",n),fetch("/actions/blitz/csrf/token",n)]);if(!r.ok||!s.ok)throw new Error("Unexpected response when refreshing CSRF context.");const[a,o]=await Promise.all([r.text(),s.text()]),c=a.trim(),l=o.trim();c&&(window.csrfTokenName=c),l&&(window.csrfTokenValue=l),window.dispatchEvent(new CustomEvent("eauk:user-data",{detail:{csrfTokenName:window.csrfTokenName,csrfTokenValue:window.csrfTokenValue}}))}catch(r){console.warn("Unable to refresh CSRF context.",r)}}window.refreshCsrfContext=uo;document.querySelector('form[method="post" i], form[data-needs-csrf]')&&uo();window.addEventListener("eauk:refresh-csrf",()=>{uo({force:!0})});function yh(){$("body").append('<div class="animated-loading-bar fixed"></div>')}function vh(){$(".animated-loading-bar.fixed").remove()}function bh(e){var i=/[A-Z]{1,2}[0-9]{1,2} ?[0-9][A-Z]{2}/i;return i.test(e)}function rt(e){var i=decodeURIComponent(window.location.search.substring(1)),n=i.split("&"),r,s;for(s=0;s<n.length;s++)if(r=n[s].split("="),r[0]===e)return r[1]===void 0?!0:r[1]}function Oe(e,i,n,r,s,a){typeof window.dataLayer<"u"?window.dataLayer.push({event:e,event_category:i,event_action:n,event_label:r,event_value:parseInt(s,10),nonInteraction:a}):console.log("window.dataLayer is undefined")}(function(e){e(window).on("load",function(){e.expr[":"].external=function(i){var n=i.hostname.split(".").reverse(),r=n[1]+"."+n[0],s=window.location.hostname.split(".").reverse(),a=s[1]+"."+s[0];return!i.href.match(/^mailto\:/)&&!i.href.match(/^tel\:/)&&r!==a},e("a:external").addClass("ext_link"),e(".ext_link").each(function(){var i=e(this);i.attr("data-featherlight")&&i.removeClass("ext_link"),i.hasClass("sponsored")&&i.removeClass("ext_link"),this.href.indexOf("mailto:")!=-1&&i.removeClass("ext_link"),this.href.indexOf("tel:")!=-1&&i.removeClass("ext_link")}),e(function(){e("a.ext_link").click(function(){pl=e(this).attr("href"),uh(pl)})})}),e("input[type=radio][name=feedback-star]").change(function(){type=e(this).data("type"),rating=e(this).data("rating"),type&&rating&&(e("body").hasClass("devmode-true")||Oe("event",type,"feedback",rating,void 0,!1),e(".stars").addClass("hidden"),e(".thanks").removeClass("hidden"),lo(type+"-feedback",!0,9999))})})(ut);const wh=700;let ml=0,gl=0;function nu(){gl<30&&(gl++,ml+wh<Date.now()&&(to.refresh(),ml=Date.now()),setTimeout(function(){ru()},700))}nu();function ru(){$(".slick-slider").css("maxWidth",$(".content-container").width()+"px"),nu()}$(window).resize(function(){ru()});$(window).on("load",function(){to.refresh()});$(function(){to.init({once:!0,disable:function(){return/bot|googlebot|crawler|spider|robot|crawling/i.test(navigator.userAgent)}}),$("body").removeClass("no-aos")});var _a=!1,Ea=!1,Mi=[],Ca=-1,fo=!1;function _h(e){xh(e)}function Eh(){fo=!0}function Ch(){fo=!1,su()}function xh(e){Mi.includes(e)||Mi.push(e),su()}function kh(e){let i=Mi.indexOf(e);i!==-1&&i>Ca&&Mi.splice(i,1)}
vendor: 21,180 bytes, lines 30-34
30function su(){if(!Ea&&!_a){if(fo)return;_a=!0,queueMicrotask(Ah)}}function Ah(){_a=!1,Ea=!0;for(let e=0;e<Mi.length;e++)Mi[e](),Ca=e;Mi.length=0,Ca=-1,Ea=!1}var gn,zi,yn,au,xa=!0;function Th(e){xa=!1,e(),xa=!0}function Sh(e){gn=e.reactive,yn=e.release,zi=i=>e.effect(i,{scheduler:n=>{xa?_h(n):n()}}),au=e.raw}function yl(e){zi=e}function Dh(e){let i=()=>{};return[r=>{let s=zi(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(a=>a())}),e._x_effects.add(s),i=()=>{s!==void 0&&(e._x_effects.delete(s),yn(s))},s},()=>{i()}]}function ou(e,i){let n=!0,r,s,a=zi(()=>{let o=e(),c=JSON.stringify(o);if(!n&&(typeof o=="object"||o!==r)){let l=typeof r=="object"?JSON.parse(s):r;queueMicrotask(()=>{i(o,l)})}r=o,s=c,n=!1});return()=>yn(a)}async function Mh(e){Eh();try{await e(),await Promise.resolve()}finally{Ch()}}var lu=[],cu=[],uu=[];function Lh(e){uu.push(e)}function ho(e,i){typeof i=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(i)):(i=e,cu.push(i))}function du(e){lu.push(e)}function fu(e,i,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[i]||(e._x_attributeCleanups[i]=[]),e._x_attributeCleanups[i].push(n)}function hu(e,i){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(i===void 0||i.includes(n))&&(r.forEach(s=>s()),delete e._x_attributeCleanups[n])})}function Oh(e){var i,n;for((i=e._x_effects)==null||i.forEach(kh);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var po=new MutationObserver(vo),mo=!1;function go(){po.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),mo=!0}function pu(){Ph(),po.disconnect(),mo=!1}var xn=[];function Ph(){let e=po.takeRecords();xn.push(()=>e.length>0&&vo(e));let i=xn.length;queueMicrotask(()=>{if(xn.length===i)for(;xn.length>0;)xn.shift()()})}function je(e){if(!mo)return e();pu();let i=e();return go(),i}var yo=!1,Qr=[];function Ih(){yo=!0}function Fh(){yo=!1,vo(Qr),Qr=[]}function vo(e){if(yo){Qr=Qr.concat(e);return}let i=[],n=new Set,r=new Map,s=new Map;for(let a=0;a<e.length;a++)if(!e[a].target._x_ignoreMutationObserver&&(e[a].type==="childList"&&(e[a].removedNodes.forEach(o=>{o.nodeType===1&&o._x_marker&&n.add(o)}),e[a].addedNodes.forEach(o=>{if(o.nodeType===1){if(n.has(o)){n.delete(o);return}o._x_marker||i.push(o)}})),e[a].type==="attributes")){let o=e[a].target,c=e[a].attributeName,l=e[a].oldValue,f=()=>{r.has(o)||r.set(o,[]),r.get(o).push({name:c,value:o.getAttribute(c)})},d=()=>{s.has(o)||s.set(o,[]),s.get(o).push(c)};o.hasAttribute(c)&&l===null?f():o.hasAttribute(c)?(d(),f()):d()}s.forEach((a,o)=>{hu(o,a)}),r.forEach((a,o)=>{lu.forEach(c=>c(o,a))});for(let a of n)i.some(o=>o.contains(a))||cu.forEach(o=>o(a));for(let a of i)a.isConnected&&uu.forEach(o=>o(a));i=null,n=null,r=null,s=null}function mu(e){return Ni(Fi(e))}function yr(e,i,n){return e._x_dataStack=[i,...Fi(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==i)}}function Fi(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?Fi(e.host):e.parentNode?Fi(e.parentNode):[]}function Ni(e){return new Proxy({objects:e},Nh)}function gu(e,i){return e===null||e===Object.prototype?null:Object.prototype.hasOwnProperty.call(e,i)?e:gu(Object.getPrototypeOf(e),i)}var Nh={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(i=>Object.keys(i))))},has({objects:e},i){return i==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,i)||Reflect.has(n,i))},get({objects:e},i,n){return i=="toJSON"?Rh:Reflect.get(e.find(r=>Reflect.has(r,i))||{},i,n)},set({objects:e},i,n,r){let s;for(const o of e)if(s=gu(o,i),s)break;s||(s=e[e.length-1]);const a=Object.getOwnPropertyDescriptor(s,i);return a!=null&&a.set&&(a!=null&&a.get)?a.set.call(r,n)||!0:Reflect.set(s,i,n)}};function Rh(){return Reflect.ownKeys(this).reduce((i,n)=>(i[n]=Reflect.get(this,n),i),{})}function bo(e){let i=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,s="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([a,{value:o,enumerable:c}])=>{if(c===!1||o===void 0||typeof o=="object"&&o!==null&&o.__v_skip)return;let l=s===""?a:`${s}.${a}`;typeof o=="object"&&o!==null&&o._x_interceptor?r[a]=o.initialize(e,l,a):i(o)&&o!==r&&!(o instanceof Element)&&n(o,l)})};return n(e)}function yu(e,i=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,s,a){return e(this.initialValue,()=>Bh(r,s),o=>ka(r,s,o),s,a)}};return i(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let s=n.initialize.bind(n);n.initialize=(a,o,c)=>{let l=r.initialize(a,o,c);return n.initialValue=l,s(a,o,c)}}else n.initialValue=r;return n}}function Bh(e,i){return i.split(".").reduce((n,r)=>n[r],e)}function ka(e,i,n){if(typeof i=="string"&&(i=i.split(".")),i.length===1)e[i[0]]=n;else{if(i.length===0)throw error;return e[i[0]]||(e[i[0]]={}),ka(e[i[0]],i.slice(1),n)}}var vu={};function Et(e,i){vu[e]=i}function nr(e,i){let n=qh(i);return Object.entries(vu).forEach(([r,s])=>{Object.defineProperty(e,`$${r}`,{get(){return s(i,n)},enumerable:!1})}),e}function qh(e){let[i,n]=ku(e),r={interceptor:yu,...i};return ho(e,n),r}function jh(e,i,n,...r){try{return n(...r)}catch(s){rr(s,e,i)}}function rr(...e){return bu(...e)}var bu=Vh;function Hh(e){bu=e}function Vh(e,i,n=void 0){e=Object.assign(e??{message:"No error message given."},{el:i,expression:n}),console.warn(`Alpine Expression Error: ${e.message}
31
32${n?'Expression: "'+n+`"
33
34`:""}`,i),setTimeout(()=>{throw e},0)}var tn=!0;function wu(e){let i=tn;tn=!1;let n=e();return tn=i,n}function Li(e,i,n={}){let r;return st(e,i)(s=>r=s,n),r}function st(...e){return _u(...e)}var _u=()=>{};function zh(e){_u=e}var Eu;function Wh(e){Eu=e}function Uh(e,i){let n={};nr(n,e);let r=[n,...Fi(e)],s=typeof i=="function"?$h(r,i):Gh(r,i,e);return jh.bind(null,e,i,s)}function $h(e,i){return(n=()=>{},{scope:r={},params:s=[],context:a}={})=>{if(!tn){sr(n,i,Ni([r,...e]),s);return}let o=i.apply(Ni([r,...e]),s);sr(n,o)}}var Ws={};function Yh(e,i){if(Ws[e])return Ws[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,a=(()=>{try{let o=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(o,"name",{value:`[Alpine] ${e}`}),o}catch(o){return rr(o,i,e),Promise.resolve()}})();return Ws[e]=a,a}function Gh(e,i,n){let r=Yh(i,n);return(s=()=>{},{scope:a={},params:o=[],context:c}={})=>{r.result=void 0,r.finished=!1;let l=Ni([a,...e]);if(typeof r=="function"){let f=r.call(c,r,l).catch(d=>rr(d,n,i));r.finished?(sr(s,r.result,l,o,n),r.result=void 0):f.then(d=>{sr(s,d,l,o,n)}).catch(d=>rr(d,n,i)).finally(()=>r.result=void 0)}}}function sr(e,i,n,r,s){if(tn&&typeof i=="function"){let a=i.apply(n,r);a instanceof Promise?a.then(o=>sr(e,o,n,r)).catch(o=>rr(o,s,i)):e(a)}else typeof i=="object"&&i instanceof Promise?i.then(a=>e(a)):e(i)}function Kh(...e){return Eu(...e)}function Xh(e,i,n={}){let r={};nr(r,e);let s=[r,...Fi(e)],a=Ni([n.scope??{},...s]),o=n.params??[];if(i.includes("await")){let c=Object.getPrototypeOf(async function(){}).constructor,l=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(async()=>{ ${i} })()`:i;return new c(["scope"],`with (scope) { let __result = ${l}; return __result }`).call(n.context,a)}else{let c=/^[\n\s]*if.*\(.*\)/.test(i.trim())||/^(let|const)\s/.test(i.trim())?`(()=>{ ${i} })()`:i,f=new Function(["scope"],`with (scope) { let __result = ${c}; return __result }`).call(n.context,a);return typeof f=="function"&&tn?f.apply(a,o):f}}var wo="x-";function vn(e=""){return wo+e}function Jh(e){wo=e}var es={};function Ve(e,i){return es[e]=i,{before(n){if(!es[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}const r=Ti.indexOf(n);Ti.splice(r>=0?r:Ti.indexOf("DEFAULT"),0,e)}}}function Zh(e){return Object.keys(es).includes(e)}function _o(e,i,n){if(i=Array.from(i),e._x_virtualDirectives){let a=Object.entries(e._x_virtualDirectives).map(([c,l])=>({name:c,value:l})),o=Cu(a);a=a.map(c=>o.find(l=>l.name===c.name)?{name:`x-bind:${c.name}`,value:`"${c.value}"`}:c),i=i.concat(a)}let r={};return i.map(Su((a,o)=>r[a]=o)).filter(Mu).map(tp(r,n)).sort(ip).map(a=>ep(e,a))}function Cu(e){return Array.from(e).map(Su()).filter(i=>!Mu(i))}var Aa=!1,Hn=new Map,xu=Symbol();function Qh(e){Aa=!0;let i=Symbol();xu=i,Hn.set(i,[]);let n=()=>{for(;Hn.get(i).length;)Hn.get(i).shift()();Hn.delete(i)},r=()=>{Aa=!1,n()};e(n),r()}function ku(e){let i=[],n=c=>i.push(c),[r,s]=Dh(e);return i.push(s),[{Alpine:wn,effect:r,cleanup:n,evaluateLater:st.bind(st,e),evaluate:Li.bind(Li,e)},()=>i.forEach(c=>c())]}function ep(e,i){let n=()=>{},r=es[i.type]||n,[s,a]=ku(e);fu(e,i.original,a);let o=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,i,s),r=r.bind(r,e,i,s),Aa?Hn.get(xu).push(r):r())};return o.runCleanups=a,o}var Au=(e,i)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,i)),{name:n,value:r}),Tu=e=>e;function Su(e=()=>{}){return({name:i,value:n})=>{let{name:r,value:s}=Du.reduce((a,o)=>o(a),{name:i,value:n});return r!==i&&e(r,i),{name:r,value:s}}}var Du=[];function Eo(e){Du.push(e)}function Mu({name:e}){return Lu().test(e)}var Lu=()=>new RegExp(`^${wo}([^:^.]+)\\b`);function tp(e,i){return({name:n,value:r})=>{n===r&&(r="");let s=n.match(Lu()),a=n.match(/:([a-zA-Z0-9\-_:]+)/),o=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],c=i||e[n]||n;return{type:s?s[1]:null,value:a?a[1]:null,modifiers:o.map(l=>l.replace(".","")),expression:r,original:c}}}var Ta="DEFAULT",Ti=["ignore","ref","id","data","anchor","bind","init","for","model","modelable","transition","show","if",Ta,"teleport"];function ip(e,i){let n=Ti.indexOf(e.type)===-1?Ta:e.type,r=Ti.indexOf(i.type)===-1?Ta:i.type;return Ti.indexOf(n)-Ti.indexOf(r)}function $n(e,i,n={},r={}){return e.dispatchEvent(new CustomEvent(i,{detail:n,bubbles:!0,composed:!0,cancelable:!0,...r}))}function Ri(e,i){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(s=>Ri(s,i));return}let n=!1;if(i(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)Ri(r,i),r=r.nextElementSibling}function Pt(e,...i){console.warn(`Alpine Warning: ${e}`,...i)}var vl=!1;function np(){vl&&Pt("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),vl=!0,document.body||Pt("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),$n(document,"alpine:init"),$n(document,"alpine:initializing"),go(),Lh(i=>ei(i,Ri)),ho(i=>bn(i)),du((i,n)=>{_o(i,n).forEach(r=>r())});let e=i=>!_s(i.parentElement,!0);Array.from(document.querySelectorAll(Iu().join(","))).filter(e).forEach(i=>{ei(i)}),$n(document,"alpine:initialized"),setTimeout(()=>{op()})}var Co=[],Ou=[];function Pu(){return Co.map(e=>e())}function Iu(){return Co.concat(Ou).map(e=>e())}function Fu(e){Co.push(e)}function Nu(e){Ou.push(e)}function _s(e,i=!1){return Jt(e,n=>{if((i?Iu():Pu()).some(s=>n.matches(s)))return!0})}function Jt(e,i){if(e){if(i(e))return e;if(e._x_teleportBack)return Jt(e._x_teleportBack,i);if(e.parentNode instanceof ShadowRoot)return Jt(e.parentNode.host,i);if(e.parentElement)return Jt(e.parentElement,i)}}function rp(e){return Pu().some(i=>e.matches(i))}var Ru=[];function sp(e){Ru.push(e)}var ap=1;function ei(e,i=Ri,n=()=>{}){Jt(e,r=>r._x_ignore)||Qh(()=>{i(e,(r,s)=>{r._x_marker||(n(r,s),Ru.forEach(a=>a(r,s)),_o(r,r.attributes).forEach(a=>a()),r._x_ignore||(r._x_marker=ap++),r._x_ignore&&s())})})}function bn(e,i=Ri){i(e,n=>{Oh(n),hu(n),delete n._x_marker})}function op(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([i,n,r])=>{Zh(n)||r.some(s=>{if(document.querySelector(s))return Pt(`found "${s}", but missing ${i} plugin`),!0})})}var Sa=[],xo=!1;function ko(e=()=>{}){return queueMicrotask(()=>{xo||setTimeout(()=>{Da()})}),new Promise(i=>{Sa.push(()=>{e(),i()})})}function Da(){for(xo=!1;Sa.length;)Sa.shift()()}function lp(){xo=!0}function Ao(e,i){return Array.isArray(i)?bl(e,i.join(" ")):typeof i=="object"&&i!==null?cp(e,i):typeof i=="function"?Ao(e,i()):bl(e,i)}function Ma(e){return e.split(/\s/).filter(Boolean)}function bl(e,i){let n=s=>Ma(s).filter(a=>!e.classList.contains(a)).filter(Boolean),r=s=>(e.classList.add(...s),()=>{e.classList.remove(...s)});return i=i===!0?i="":i||"",r(n(i))}function cp(e,i){let n=Object.entries(i).flatMap(([o,c])=>c?Ma(o):!1).filter(Boolean),r=Object.entries(i).flatMap(([o,c])=>c?!1:Ma(o)).filter(Boolean),s=[],a=[];return r.forEach(o=>{e.classList.contains(o)&&(e.classList.remove(o),a.push(o))}),n.forEach(o=>{e.classList.contains(o)||(e.classList.add(o),s.push(o))}),()=>{a.forEach(o=>e.classList.add(o)),s.forEach(o=>e.classList.remove(o))}}function Es(e,i){return typeof i=="object"&&i!==null?up(e,i):dp(e,i)}function up(e,i){let n={};return Object.entries(i).forEach(([r,s])=>{n[r]=e.style[r],r.startsWith("--")||(r=fp(r)),e.style.setProperty(r,s)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{Es(e,n)}}function dp(e,i){let n=e.getAttribute("style",i);return e.setAttribute("style",i),()=>{e.setAttribute("style",n||"")}}function fp(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function La(e,i=()=>{}){let n=!1;return function(){n?i.apply(this,arguments):(n=!0,e.apply(this,arguments))}}Ve("transition",(e,{value:i,modifiers:n,expression:r},{evaluate:s})=>{typeof r=="function"&&(r=s(r)),r!==!1&&(!r||typeof r=="boolean"?pp(e,n,i):hp(e,r,i))});function hp(e,i,n){Bu(e,Ao,""),{enter:s=>{e._x_transition.enter.during=s},"enter-start":s=>{e._x_transition.enter.start=s},"enter-end":s=>{e._x_transition.enter.end=s},leave:s=>{e._x_transition.leave.during=s},"leave-start":s=>{e._x_transition.leave.start=s},"leave-end":s=>{e._x_transition.leave.end=s}}[n](i)}function pp(e,i,n){Bu(e,Es);let r=!i.includes("in")&&!i.includes("out")&&!n,s=r||i.includes("in")||["enter"].includes(n),a=r||i.includes("out")||["leave"].includes(n);i.includes("in")&&!r&&(i=i.filter((T,_)=>_<i.indexOf("out"))),i.includes("out")&&!r&&(i=i.filter((T,_)=>_>i.indexOf("out")));let o=!i.includes("opacity")&&!i.includes("scale"),c=o||i.includes("opacity"),l=o||i.includes("scale"),f=c?0:1,d=l?kn(i,"scale",95)/100:1,h=kn(i,"delay",0)/1e3,p=kn(i,"origin","center"),g="opacity, transform",v=kn(i,"duration",150)/1e3,y=kn(i,"duration",75)/1e3,C="cubic-bezier(0.4, 0.0, 0.2, 1)";s&&(e._x_transition.enter.during={transformOrigin:p,transitionDelay:`${h}s`,transitionProperty:g,transitionDuration:`${v}s`,transitionTimingFunction:C},e._x_transition.enter.start={opacity:f,transform:`scale(${d})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),a&&(e._x_transition.leave.during={transformOrigin:p,transitionDelay:`${h}s`,transitionProperty:g,transitionDuration:`${y}s`,transitionTimingFunction:C},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:f,transform:`scale(${d})`})}function Bu(e,i,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},s=()=>{}){Oa(e,i,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,s)},out(r=()=>{},s=()=>{}){Oa(e,i,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,s)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,i,n,r){const s=document.visibilityState==="visible"?requestAnimationFrame:setTimeout;let a=()=>s(n);if(i){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):a():e._x_transition?e._x_transition.in(n):a();return}e._x_hidePromise=e._x_transition?new Promise((o,c)=>{e._x_transition.out(()=>{},()=>o(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>c({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let o=qu(e);o?(o._x_hideChildren||(o._x_hideChildren=[]),o._x_hideChildren.push(e)):s(()=>{let c=l=>{let f=Promise.all([l._x_hidePromise,...(l._x_hideChildren||[]).map(c)]).then(([d])=>d==null?void 0:d());return delete l._x_hidePromise,delete l._x_hideChildren,f};c(e).catch(l=>{if(!l.isFromCancelledTransition)throw l})})})};function qu(e){let i=e.parentNode;if(i)return i._x_hidePromise?i:qu(i)}function Oa(e,i,{during:n,start:r,end:s}={},a=()=>{},o=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(s).length===0){a(),o();return}let c,l,f;mp(e,{start(){c=i(e,r)},during(){l=i(e,n)},before:a,end(){c(),f=i(e,s)},after:o,cleanup(){l(),f()}})}function mp(e,i){let n,r,s,a=La(()=>{je(()=>{n=!0,r||i.before(),s||(i.end(),Da()),i.after(),e.isConnected&&i.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(o){this.beforeCancels.push(o)},cancel:La(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();a()}),finish:a},je(()=>{i.start(),i.during()}),lp(),requestAnimationFrame(()=>{if(n)return;let o=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,c=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;o===0&&(o=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),je(()=>{i.before()}),r=!0,requestAnimationFrame(()=>{n||(je(()=>{i.end()}),Da(),setTimeout(e._x_transitioning.finish,o+c),s=!0)})})}function kn(e,i,n){if(e.indexOf(i)===-1)return n;const r=e[e.indexOf(i)+1];if(!r||i==="scale"&&isNaN(r))return n;if(i==="duration"||i==="delay"){let s=r.match(/([0-9]+)ms/);if(s)return s[1]}return i==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(i)+2])?[r,e[e.indexOf(i)+2]].join(" "):r}var mi=!1;function vi(e,i=()=>{}){return(...n)=>mi?i(...n):e(...n)}function gp(e){return(...i)=>mi&&e(...i)}var ju=[];function Cs(e){ju.push(e)}function yp(e,i){ju.forEach(n=>n(e,i)),mi=!0,Hu(()=>{ei(i,(n,r)=>{r(n,()=>{})})}),mi=!1}var Pa=!1;function vp(e,i){i._x_dataStack||(i._x_dataStack=e._x_dataStack),mi=!0,Pa=!0,Hu(()=>{bp(i)}),mi=!1,Pa=!1}function bp(e){let i=!1;ei(e,(r,s)=>{Ri(r,(a,o)=>{if(i&&rp(a))return o();i=!0,s(a,o)})})}function Hu(e){let i=zi;yl((n,r)=>{let s=i(n);return yn(s),()=>{}}),e(),yl(i)}function Vu(e,i,n,r=[]){switch(e._x_bindings||(e._x_bindings=gn({})),e._x_bindings[i]=n,i=r.includes("camel")?Tp(i):i,i){case"value":wp(e,n);break;case"style":Ep(e,n);break;case"class":_p(e,n);break;case"selected":case"checked":Cp(e,i,n);break;default:zu(e,i,n);break}}function wp(e,i){if(To(e))e.attributes.value===void 0&&(e.value=i);else if(ts(e))Number.isInteger(i)?e.value=i:!Array.isArray(i)&&typeof i!="boolean"&&![null,void 0].includes(i)?e.value=String(i):Array.isArray(i)?e.checked=i.some(n=>Sp(n,e.value)):e.checked=!!i;else if(e.tagName==="SELECT")Ap(e,i);else{if(e.value===i)return;e.value=i===void 0?"":i}}function _p(e,i){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Ao(e,i)}function Ep(e,i){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=Es(e,i)}function Cp(e,i,n){zu(e,i,n),kp(e,i,n)}function zu(e,i,n){[null,void 0,!1].includes(n)&&Mp(i)?e.removeAttribute(i):(Wu(i)&&(n=i),xp(e,i,n))}function xp(e,i,n){e.getAttribute(i)!=n&&e.setAttribute(i,n)}function kp(e,i,n){e[i]!==n&&(e[i]=n)}function Ap(e,i){const n=[].concat(i).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function Tp(e){return e.toLowerCase().replace(/-(\w)/g,(i,n)=>n.toUpperCase())}function Sp(e,i){return e==i}function jr(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var Dp=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function Wu(e){return Dp.has(e)}function Mp(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Lp(e,i,n){return e._x_bindings&&e._x_bindings[i]!==void 0?e._x_bindings[i]:Uu(e,i,n)}function Op(e,i,n,r=!0){if(e._x_bindings&&e._x_bindings[i]!==void 0)return e._x_bindings[i];if(e._x_inlineBindings&&e._x_inlineBindings[i]!==void 0){let s=e._x_inlineBindings[i];return s.extract=r,wu(()=>Li(e,s.expression))}return Uu(e,i,n)}function Uu(e,i,n){let r=e.getAttribute(i);return r===null?typeof n=="function"?n():n:r===""?!0:Wu(i)?!![i,"true"].includes(r):r}function ts(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function To(e){return e.type==="radio"||e.localName==="ui-radio"}function $u(e,i){let n;return function(){const r=this,s=arguments,a=function(){n=null,e.apply(r,s)};clearTimeout(n),n=setTimeout(a,i)}}function Yu(e,i){let n;return function(){let r=this,s=arguments;
34n||(e.apply(r,s),n=!0,setTimeout(()=>n=!1,i))}}function Gu({get:e,set:i},{get:n,set:r}){let s=!0,a,o=zi(()=>{let c=e(),l=n();if(s)r(Us(c)),s=!1;else{let f=JSON.stringify(c),d=JSON.stringify(l);f!==a?r(Us(c)):f!==d&&i(Us(l))}a=JSON.stringify(e()),JSON.stringify(n())});return()=>{yn(o)}}function Us(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Pp(e){(Array.isArray(e)?e:[e]).forEach(n=>n(wn))}var ki={},wl=!1;function Ip(e,i){if(wl||(ki=gn(ki),wl=!0),i===void 0)return ki[e];ki[e]=i,bo(ki[e]),typeof i=="object"&&i!==null&&i.hasOwnProperty("init")&&typeof i.init=="function"&&ki[e].init()}function Fp(){return ki}var Ku={};function Np(e,i){let n=typeof i!="function"?()=>i:i;return e instanceof Element?Xu(e,n()):(Ku[e]=n,()=>{})}function Rp(e){return Object.entries(Ku).forEach(([i,n])=>{Object.defineProperty(e,i,{get(){return(...r)=>n(...r)}})}),e}function Xu(e,i,n){let r=[];for(;r.length;)r.pop()();let s=Object.entries(i).map(([o,c])=>({name:o,value:c})),a=Cu(s);return s=s.map(o=>a.find(c=>c.name===o.name)?{name:`x-bind:${o.name}`,value:`"${o.value}"`}:o),_o(e,s,n).map(o=>{r.push(o.runCleanups),o()}),()=>{for(;r.length;)r.pop()()}}var Ju={};function Bp(e,i){Ju[e]=i}function qp(e,i){return Object.entries(Ju).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...s)=>r.bind(i)(...s)},enumerable:!1})}),e}var jp={get reactive(){return gn},get release(){return yn},get effect(){return zi},get raw(){return au},get transaction(){return Mh},version:"3.15.12",flushAndStopDeferringMutations:Fh,dontAutoEvaluateFunctions:wu,disableEffectScheduling:Th,startObservingMutations:go,stopObservingMutations:pu,setReactivityEngine:Sh,onAttributeRemoved:fu,onAttributesAdded:du,closestDataStack:Fi,skipDuringClone:vi,onlyDuringClone:gp,addRootSelector:Fu,addInitSelector:Nu,setErrorHandler:Hh,interceptClone:Cs,addScopeToNode:yr,deferMutations:Ih,mapAttributes:Eo,evaluateLater:st,interceptInit:sp,initInterceptors:bo,injectMagics:nr,setEvaluator:zh,setRawEvaluator:Wh,mergeProxies:Ni,extractProp:Op,findClosest:Jt,onElRemoved:ho,closestRoot:_s,destroyTree:bn,interceptor:yu,transition:Oa,setStyles:Es,mutateDom:je,directive:Ve,entangle:Gu,throttle:Yu,debounce:$u,evaluate:Li,evaluateRaw:Kh,initTree:ei,nextTick:ko,prefixed:vn,prefix:Jh,plugin:Pp,magic:Et,store:Ip,start:np,clone:vp,cloneNode:yp,bound:Lp,$data:mu,watch:ou,walk:Ri,data:Bp,bind:Np},wn=jp;function Hp(e,i){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return s=>!!n[s]}var Vp=Object.freeze({}),zp=Object.prototype.hasOwnProperty,xs=(e,i)=>zp.call(e,i),Oi=Array.isArray,Yn=e=>Zu(e)==="[object Map]",Wp=e=>typeof e=="string",So=e=>typeof e=="symbol",ks=e=>e!==null&&typeof e=="object",Up=Object.prototype.toString,Zu=e=>Up.call(e),Qu=e=>Zu(e).slice(8,-1),Do=e=>Wp(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,$p=e=>{const i=Object.create(null);return n=>i[n]||(i[n]=e(n))},Yp=$p(e=>e.charAt(0).toUpperCase()+e.slice(1)),ed=(e,i)=>e!==i&&(e===e||i===i),Ia=new WeakMap,An=[],Tt,Pi=Symbol("iterate"),Fa=Symbol("Map key iterate");function Gp(e){return e&&e._isEffect===!0}function Kp(e,i=Vp){Gp(e)&&(e=e.raw);const n=Zp(e,i);return i.lazy||n(),n}function Xp(e){e.active&&(td(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var Jp=0;function Zp(e,i){const n=function(){if(!n.active)return e();if(!An.includes(n)){td(n);try{return em(),An.push(n),Tt=n,e()}finally{An.pop(),id(),Tt=An[An.length-1]}}};return n.id=Jp++,n.allowRecurse=!!i.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=i,n}function td(e){const{deps:i}=e;if(i.length){for(let n=0;n<i.length;n++)i[n].delete(e);i.length=0}}var an=!0,Mo=[];function Qp(){Mo.push(an),an=!1}function em(){Mo.push(an),an=!0}function id(){const e=Mo.pop();an=e===void 0?!0:e}function _t(e,i,n){if(!an||Tt===void 0)return;let r=Ia.get(e);r||Ia.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=new Set),s.has(Tt)||(s.add(Tt),Tt.deps.push(s),Tt.options.onTrack&&Tt.options.onTrack({effect:Tt,target:e,type:i,key:n}))}function gi(e,i,n,r,s,a){const o=Ia.get(e);if(!o)return;const c=new Set,l=d=>{d&&d.forEach(h=>{(h!==Tt||h.allowRecurse)&&c.add(h)})};
34if(i==="clear")o.forEach(l);else if(n==="length"&&Oi(e))o.forEach((d,h)=>{(h==="length"||h>=r)&&l(d)});else switch(n!==void 0&&l(o.get(n)),i){case"add":Oi(e)?Do(n)&&l(o.get("length")):(l(o.get(Pi)),Yn(e)&&l(o.get(Fa)));break;case"delete":Oi(e)||(l(o.get(Pi)),Yn(e)&&l(o.get(Fa)));break;case"set":Yn(e)&&l(o.get(Pi));break}const f=d=>{d.options.onTrigger&&d.options.onTrigger({effect:d,target:e,key:n,type:i,newValue:r,oldValue:s,oldTarget:a}),d.options.scheduler?d.options.scheduler(d):d()};c.forEach(f)}var tm=Hp("__proto__,__v_isRef,__isVue"),nd=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(So)),im=rd(),nm=rd(!0),_l=rm();function rm(){const e={};return["includes","indexOf","lastIndexOf"].forEach(i=>{e[i]=function(...n){const r=Pe(this);for(let a=0,o=this.length;a<o;a++)_t(r,"get",a+"");const s=r[i](...n);return s===-1||s===!1?r[i](...n.map(Pe)):s}}),["push","pop","shift","unshift","splice"].forEach(i=>{e[i]=function(...n){Qp();const r=Pe(this)[i].apply(this,n);return id(),r}}),e}function rd(e=!1,i=!1){return function(r,s,a){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_raw"&&a===(e?i?vm:ld:i?ym:od).get(r))return r;const o=Oi(r);if(!e&&o&&xs(_l,s))return Reflect.get(_l,s,a);const c=Reflect.get(r,s,a);return(So(s)?nd.has(s):tm(s))||(e||_t(r,"get",s),i)?c:Na(c)?!o||!Do(s)?c.value:c:ks(c)?e?cd(c):Io(c):c}}var sm=am();function am(e=!1){return function(n,r,s,a){let o=n[r];if(!e&&(s=Pe(s),o=Pe(o),!Oi(n)&&Na(o)&&!Na(s)))return o.value=s,!0;const c=Oi(n)&&Do(r)?Number(r)<n.length:xs(n,r),l=Reflect.set(n,r,s,a);return n===Pe(a)&&(c?ed(s,o)&&gi(n,"set",r,s,o):gi(n,"add",r,s)),l}}function om(e,i){const n=xs(e,i),r=e[i],s=Reflect.deleteProperty(e,i);return s&&n&&gi(e,"delete",i,void 0,r),s}function lm(e,i){const n=Reflect.has(e,i);return(!So(i)||!nd.has(i))&&_t(e,"has",i),n}function cm(e){return _t(e,"iterate",Oi(e)?"length":Pi),Reflect.ownKeys(e)}var um={get:im,set:sm,deleteProperty:om,has:lm,ownKeys:cm},dm={get:nm,set(e,i){return console.warn(`Set operation on key "${String(i)}" failed: target is readonly.`,e),!0},deleteProperty(e,i){return console.warn(`Delete operation on key "${String(i)}" failed: target is readonly.`,e),!0}},Lo=e=>ks(e)?Io(e):e,Oo=e=>ks(e)?cd(e):e,Po=e=>e,As=e=>Reflect.getPrototypeOf(e);function kr(e,i,n=!1,r=!1){e=e.__v_raw;const s=Pe(e),a=Pe(i);i!==a&&!n&&_t(s,"get",i),!n&&_t(s,"get",a);const{has:o}=As(s),c=r?Po:n?Oo:Lo;if(o.call(s,i))return c(e.get(i));if(o.call(s,a))return c(e.get(a));e!==s&&e.get(i)}function Ar(e,i=!1){const n=this.__v_raw,r=Pe(n),s=Pe(e);return e!==s&&!i&&_t(r,"has",e),!i&&_t(r,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function Tr(e,i=!1){return e=e.__v_raw,!i&&_t(Pe(e),"iterate",Pi),Reflect.get(e,"size",e)}function El(e){e=Pe(e);const i=Pe(this);return As(i).has.call(i,e)||(i.add(e),gi(i,"add",e,e)),this}function Cl(e,i){i=Pe(i);const n=Pe(this),{has:r,get:s}=As(n);let a=r.call(n,e);a?ad(n,r,e):(e=Pe(e),a=r.call(n,e));const o=s.call(n,e);return n.set(e,i),a?ed(i,o)&&gi(n,"set",e,i,o):gi(n,"add",e,i),this}function xl(e){const i=Pe(this),{has:n,get:r}=As(i);let s=n.call(i,e);s?ad(i,n,e):(e=Pe(e),s=n.call(i,e));const a=r?r.call(i,e):void 0,o=i.delete(e);return s&&gi(i,"delete",e,void 0,a),o}function kl(){const e=Pe(this),i=e.size!==0,n=Yn(e)?new Map(e):new Set(e),r=e.clear();return i&&gi(e,"clear",void 0,void 0,n),r}function Sr(e,i){return function(r,s){const a=this,o=a.__v_raw,c=Pe(o),l=i?Po:e?Oo:Lo;return!e&&_t(c,"iterate",Pi),o.forEach((f,d)=>r.call(s,l(f),l(d),a))}}function Dr(e,i,n){return function(...r){const s=this.__v_raw,a=Pe(s),o=Yn(a),c=e==="entries"||e===Symbol.iterator&&o,l=e==="keys"&&o,f=s[e](...r),d=n?Po:i?Oo:Lo;return!i&&_t(a,"iterate",l?Fa:Pi),{next(){const{value:h,done:p}=f.next();return p?{value:h,done:p}:{value:c?[d(h[0]),d(h[1])]:d(h),done:p}},[Symbol.iterator](){return this}}}}function ri(e){return function(...i){{const n=i[0]?`on key "${i[0]}" `:"";console.warn(`${Yp(e)} operation ${n}failed: target is readonly.`,Pe(this))}return e==="delete"?!1:this}}function fm(){const e={get(a){return kr(this,a)},get size(){return Tr(this)},has:Ar,add:El,set:Cl,delete:xl,clear:kl,forEach:Sr(!1,!1)},i={get(a){return kr(this,a,!1,!0)},get size(){return Tr(this)},has:Ar,add:El,set:Cl,delete:xl,clear:kl,forEach:Sr(!1,!0)},n={get(a){return kr(this,a,!0)},get size(){return Tr(this,!0)},has(a){return Ar.call(this,a,!0)},add:ri("add"),set:ri("set"),delete:ri("delete"),clear:ri("clear"),forEach:Sr(!0,!1)}
34,r={get(a){return kr(this,a,!0,!0)},get size(){return Tr(this,!0)},has(a){return Ar.call(this,a,!0)},add:ri("add"),set:ri("set"),delete:ri("delete"),clear:ri("clear"),forEach:Sr(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(a=>{e[a]=Dr(a,!1,!1),n[a]=Dr(a,!0,!1),i[a]=Dr(a,!1,!0),r[a]=Dr(a,!0,!0)}),[e,n,i,r]}var[hm,pm,Sv,Dv]=fm();function sd(e,i){const n=e?pm:hm;return(r,s,a)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(xs(n,s)&&s in r?n:r,s,a)}var mm={get:sd(!1)},gm={get:sd(!0)};function ad(e,i,n){const r=Pe(n);if(r!==n&&i.call(e,r)){const s=Qu(e);console.warn(`Reactive ${s} contains both the raw and reactive versions of the same object${s==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var od=new WeakMap,ym=new WeakMap,ld=new WeakMap,vm=new WeakMap;function bm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wm(e){return e.__v_skip||!Object.isExtensible(e)?0:bm(Qu(e))}function Io(e){return e&&e.__v_isReadonly?e:ud(e,!1,um,mm,od)}function cd(e){return ud(e,!0,dm,gm,ld)}function ud(e,i,n,r,s){if(!ks(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(i&&e.__v_isReactive))return e;const a=s.get(e);if(a)return a;const o=wm(e);if(o===0)return e;const c=new Proxy(e,o===2?r:n);return s.set(e,c),c}function Pe(e){return e&&Pe(e.__v_raw)||e}function Na(e){return!!(e&&e.__v_isRef===!0)}Et("nextTick",()=>ko);Et("dispatch",e=>$n.bind($n,e));Et("watch",(e,{evaluateLater:i,cleanup:n})=>(r,s)=>{let a=i(r),c=ou(()=>{let l;return a(f=>l=f),l},s);n(c)});Et("store",Fp);Et("data",e=>mu(e));Et("root",e=>_s(e));Et("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=Ni(_m(e))),e._x_refs_proxy));function _m(e){let i=[];return Jt(e,n=>{n._x_refs&&i.push(n._x_refs)}),i}var $s={};function dd(e){return $s[e]||($s[e]=0),++$s[e]}function Em(e,i){return Jt(e,n=>{if(n._x_ids&&n._x_ids[i])return!0})}function Cm(e,i){e._x_ids||(e._x_ids={}),e._x_ids[i]||(e._x_ids[i]=dd(i))}Et("id",(e,{cleanup:i})=>(n,r=null)=>{let s=`${n}${r?`-${r}`:""}`;return xm(e,s,i,()=>{let a=Em(e,n),o=a?a._x_ids[n]:dd(n);return r?`${n}-${o}-${r}`:`${n}-${o}`})});Cs((e,i)=>{e._x_id&&(i._x_id=e._x_id)});function xm(e,i,n,r){if(e._x_id||(e._x_id={}),e._x_id[i])return e._x_id[i];let s=r();return e._x_id[i]=s,n(()=>{delete e._x_id[i]}),s}Et("el",e=>e);fd("Focus","focus","focus");fd("Persist","persist","persist");function fd(e,i,n){Et(i,r=>Pt(`You can't use [$${i}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}Ve("modelable",(e,{expression:i},{effect:n,evaluateLater:r,cleanup:s})=>{let a=r(i),o=()=>{let d;return a(h=>d=h),d},c=r(`${i} = __placeholder`),l=d=>c(()=>{},{scope:{__placeholder:d}}),f=o();l(f),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let d=e._x_model.get,h=e._x_model.setWithModifiers,p=Gu({get(){return d()},set(g){h(g)}},{get(){return o()},set(g){l(g)}});s(p)})});Ve("teleport",(e,{modifiers:i,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Pt("x-teleport can only be used on a <template> tag",e);let s=Al(n),a=e.content.cloneNode(!0).firstElementChild;e._x_teleport=a,a._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),a.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(c=>{a.addEventListener(c,l=>{l.stopPropagation(),e.dispatchEvent(new l.constructor(l.type,l))})}),yr(a,{},e);let o=(c,l,f)=>{f.includes("prepend")?l.parentNode.insertBefore(c,l):f.includes("append")?l.parentNode.insertBefore(c,l.nextSibling):l.appendChild(c)};je(()=>{vi(()=>{o(a,s,i),ei(a)})()}),e._x_teleportPutBack=()=>{let c=Al(n);je(()=>{o(e._x_teleport,c,i)})},r(()=>je(()=>{a.remove(),bn(a)}))});var km=document.createElement("div");function Al(e){let i=vi(()=>document.querySelector(e),()=>km)();return i||Pt(`Cannot find x-teleport element for selector: "${e}"`),i}var hd=()=>{};hd.inline=(e,{modifiers:i},{cleanup:n})=>
vendor: 11,348 bytes, line 34
34{i.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{i.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};Ve("ignore",hd);Ve("effect",vi((e,{expression:i},{effect:n})=>{n(st(e,i))}));function Ki(e,i,n,r){let s=e,a=l=>r(l),o={},c=(l,f)=>d=>f(l,d);return n.includes("dot")&&(i=Am(i)),n.includes("camel")&&(i=Tm(i)),n.includes("capture")&&(o.capture=!0),n.includes("window")&&(s=window),n.includes("document")&&(s=document),n.includes("passive")&&(o.passive=n[n.indexOf("passive")+1]!=="false"),a=pd(n,a),n.includes("prevent")&&(a=c(a,(l,f)=>{f.preventDefault(),l(f)})),n.includes("stop")&&(a=c(a,(l,f)=>{f.stopPropagation(),l(f)})),n.includes("once")&&(a=c(a,(l,f)=>{l(f),s.removeEventListener(i,a,o)})),(n.includes("away")||n.includes("outside"))&&(s=document,a=c(a,(l,f)=>{e.contains(f.target)||f.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&l(f))})),n.includes("self")&&(a=c(a,(l,f)=>{f.target===e&&l(f)})),i==="submit"&&(a=c(a,(l,f)=>{f.target._x_pendingModelUpdates&&f.target._x_pendingModelUpdates.forEach(d=>d()),l(f)})),(Dm(i)||md(i))&&(a=c(a,(l,f)=>{Mm(f,n)||l(f)})),s.addEventListener(i,a,o),()=>{s.removeEventListener(i,a,o)}}function pd(e,i){if(e.includes("debounce")){let n=e[e.indexOf("debounce")+1]||"invalid-wait",r=is(n.split("ms")[0])?Number(n.split("ms")[0]):250;i=$u(i,r)}if(e.includes("throttle")){let n=e[e.indexOf("throttle")+1]||"invalid-wait",r=is(n.split("ms")[0])?Number(n.split("ms")[0]):250;i=Yu(i,r)}return i}function Am(e){return e.replace(/-/g,".")}function Tm(e){return e.toLowerCase().replace(/-(\w)/g,(i,n)=>n.toUpperCase())}function is(e){return!Array.isArray(e)&&!isNaN(e)}function Sm(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Dm(e){return["keydown","keyup"].includes(e)}function md(e){return["contextmenu","click","mouse"].some(i=>e.includes(i))}function Mm(e,i){let n=i.filter(a=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll","blur","change","lazy"].includes(a));if(n.includes("debounce")){let a=n.indexOf("debounce");n.splice(a,is((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let a=n.indexOf("throttle");n.splice(a,is((n[a+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Tl(e.key).includes(n[0]))return!1;const s=["ctrl","shift","alt","meta","cmd","super"].filter(a=>n.includes(a));return n=n.filter(a=>!s.includes(a)),!(s.length>0&&s.filter(o=>((o==="cmd"||o==="super")&&(o="meta"),e[`${o}Key`])).length===s.length&&(md(e.type)||Tl(e.key).includes(n[0])))}function Tl(e){if(!e)return[];e=Sm(e);let i={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return i[e]=e,Object.keys(i).map(n=>{if(i[n]===e)return n}).filter(n=>n)}Ve("model",(e,{modifiers:i,expression:n},{effect:r,cleanup:s})=>{let a=e;i.includes("parent")&&(a=Jt(e,y=>y!==e));let o=st(a,n),c;typeof n=="string"?c=st(a,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?c=st(a,`${n()} = __placeholder`):c=()=>{};let l=()=>{let y;return o(C=>y=C),Sl(y)?y.get():y},f=y=>{let C;o(T=>C=T),Sl(C)?C.set(y):c(()=>{},{scope:{__placeholder:y}})};typeof n=="string"&&e.type==="radio"&&je(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let d=i.includes("change")||i.includes("lazy"),h=i.includes("blur"),p=i.includes("enter"),g=d||h||p,v;if(mi)v=()=>{};else if(g){let y=[],C=T=>f(Mr(e,i,T,l()));if(d&&y.push(Ki(e,"change",i,C)),h&&(y.push(Ki(e,"blur",i,C)),e.form)){let T=e.form,_=()=>C({target:e});T._x_pendingModelUpdates||(T._x_pendingModelUpdates=[]),T._x_pendingModelUpdates.push(_),s(()=>{T._x_pendingModelUpdates&&T._x_pendingModelUpdates.splice(T._x_pendingModelUpdates.indexOf(_),1)})}p&&y.push(Ki(e,"keydown",i,T=>{T.key==="Enter"&&C(T)})),v=()=>y.forEach(T=>T())}else{let y=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)?"change":"input";v=Ki(e,y,i,C=>{f(Mr(e,i,C,l()))})}if(i.includes("fill")&&([void 0,null,""].includes(l())||ts(e)&&Array.isArray(l())||e.tagName.toLowerCase()==="select"&&e.multiple)&&f(Mr(e,i,{target:e},l())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=v,s(()=>e._x_removeModelListeners.default()),e.form){let y=Ki(e.form,"reset",[],C=>{ko(()=>e._x_model&&e._x_model.set(Mr(e,i,{target:e},l())))});s(()=>y())}e._x_model={get(){return l()},set(y){f(y)},setWithModifiers:pd(i,f)},e._x_forceModelUpdate=y=>{y===void 0&&typeof n=="string"&&n.match(/\./)&&(y=""),je(()=>{ts(e)?Array.isArray(y)?e.checked=y.some(C=>C==e.value):e.checked=!!y:To(e)?typeof y=="boolean"?e.checked=jr(e.value)===y:e.checked=e.value==y:Vu(e,"value",y)})},r(()=>{let y=l();i.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(y)})});function Mr(e,i,n,r){return je(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(ts(e))if(Array.isArray(r)){let s=null;return i.includes("number")?s=Ys(n.target.value):i.includes("boolean")?s=jr(n.target.value):s=n.target.value,n.target.checked?r.includes(s)?r:r.concat([s]):r.filter(a=>!Lm(a,s))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return i.includes("number")?Array.from(n.target.selectedOptions).map(s=>{let a=s.value||s.text;return Ys(a)}):i.includes("boolean")?Array.from(n.target.selectedOptions).map(s=>{let a=s.value||s.text;return jr(a)}):Array.from(n.target.selectedOptions).map(s=>s.value||s.text);{let s;return To(e)?n.target.checked?s=n.target.value:s=r:s=n.target.value,i.includes("number")?Ys(s):i.includes("boolean")?jr(s):i.includes("trim")?s.trim():s}}})}function Ys(e){let i=e?parseFloat(e):null;return Om(i)?i:e}function Lm(e,i){return e==i}function Om(e){return!Array.isArray(e)&&!isNaN(e)}function Sl(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}Ve("cloak",e=>queueMicrotask(()=>je(()=>e.removeAttribute(vn("cloak")))));Nu(()=>`[${vn("init")}]`);Ve("init",vi((e,{expression:i},{evaluate:n})=>typeof i=="string"?!!i.trim()&&n(i,{},!1):n(i,{},!1)));Ve("text",(e,{expression:i},{effect:n,evaluateLater:r})=>{let s=r(i);n(()=>{s(a=>{je(()=>{e.textContent=a})})})});Ve("html",(e,{expression:i},{effect:n,evaluateLater:r})=>{let s=r(i);n(()=>{s(a=>{je(()=>{e.innerHTML=a??"",e._x_ignoreSelf=!0,ei(e),delete e._x_ignoreSelf})})})});Eo(Au(":",Tu(vn("bind:"))));var gd=(e,{value:i,modifiers:n,expression:r,original:s},{effect:a,cleanup:o})=>{if(!i){let l={};Rp(l),st(e,r)(d=>{Xu(e,d,s)},{scope:l});return}if(i==="key")return Pm(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[i]&&e._x_inlineBindings[i].extract)return;let c=st(e,r);a(()=>c(l=>{l===void 0&&typeof r=="string"&&r.match(/\./)&&(l=""),je(()=>Vu(e,i,l,n))})),o(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};gd.inline=(e,{value:i,modifiers:n,expression:r})=>{i&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[i]={expression:r,extract:!1})};Ve("bind",gd);function Pm(e,i){e._x_keyExpression=i}Fu(()=>`[${vn("data")}]`);Ve("data",(e,{expression:i},{cleanup:n})=>{if(Im(e))return;i=i===""?"{}":i;let r={};nr(r,e);let s={};qp(s,r);let a=Li(e,i,{scope:s});(a===void 0||a===!0)&&(a={}),nr(a,e);let o=gn(a);bo(o);let c=yr(e,o);o.init&&Li(e,o.init),n(()=>{o.destroy&&Li(e,o.destroy),c()})});Cs((e,i)=>{e._x_dataStack&&(i._x_dataStack=e._x_dataStack,i.setAttribute("data-has-alpine-state",!0))});function Im(e){return mi?Pa?!0:e.hasAttribute("data-has-alpine-state"):!1}Ve("show",(e,{modifiers:i,expression:n},{effect:r})=>{let s=st(e,n);e._x_doHide||(e._x_doHide=()=>{je(()=>{e.style.setProperty("display","none",i.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{je(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let a=()=>{e._x_doHide(),e._x_isShown=!1},o=()=>{e._x_doShow(),e._x_isShown=!0},c=()=>setTimeout(o),l=La(h=>h?o():a(),h=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,h,o,a):h?c():a()}),f,d=!0;r(()=>s(h=>{!d&&h===f||(i.includes("immediate")&&(h?c():a()),l(h),f=h,d=!1)}))});Ve("for",(e,{expression:i},{effect:n,cleanup:r})=>{let s=Rm(i),a=st(e,s.items),o=st(e,e._x_keyExpression||"index");e._x_lookup=new Map,n(()=>Nm(e,s,a,o)),r(()=>{e._x_lookup.forEach(c=>je(()=>{bn(c),c.remove()})),delete e._x_lookup})});function Fm(e){return i=>{Object.entries(i).forEach(([n,r])=>{e[n]=r})}}function Nm(e,i,n,r){n(s=>{qm(s)&&(s=Array.from({length:s},(f,d)=>d+1)),s==null&&(s=[]),s instanceof Set&&(s=Array.from(s)),s instanceof Map&&(s=Array.from(s));let a=e._x_lookup,o=new Map;e._x_lookup=o;let c=jm(s),l=Object.entries(s).map(([f,d])=>{c||(f=parseInt(f));let h=Bm(i,d,f,s),p;return r(g=>{typeof g=="object"&&Pt("x-for key cannot be an object, it must be a string or an integer",e),a.has(g)&&(o.set(g,a.get(g)),a.delete(g)),p=g},{scope:{index:f,...h}}),[p,h]});je(()=>{a.forEach(h=>{bn(h),h.remove()});let f=new Set,d=e;l.forEach(([h,p])=>{if(o.has(h)){let y=o.get(h);y._x_refreshXForScope(p),d.nextElementSibling!==y&&(d.nextElementSibling&&y.replaceWith(d.nextElementSibling),d.after(y)),d=y,y._x_currentIfEl&&(y.nextElementSibling!==y._x_currentIfEl&&d.after(y._x_currentIfEl),d=y._x_currentIfEl);return}e.content.children.length>1&&Pt("x-for templates require a single root element, additional elements will be ignored.",e);let g=document.importNode(e.content,!0).firstElementChild,v=gn(p);yr(g,v,e),g._x_refreshXForScope=Fm(v),o.set(h,g),f.add(g),d.after(g),d=g}),vi(()=>f.forEach(h=>ei(h)))()})})}function Rm(e){let i=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,s=e.match(r);if(!s)return;let a={};a.items=s[2].trim();let o=s[1].replace(n,"").trim(),c=o.match(i);return c?(a.item=o.replace(i,"").trim(),a.index=c[1].trim(),c[2]&&(a.collection=c[2].trim())):a.item=o,a}function Bm(e,i,n,r){let s={};return/^\[.*\]$/.test(e.item)&&Array.isArray(i)?e.item.replace("[","").replace("]","").split(",").map(o=>o.trim()).forEach((o,c)=>{s[o]=i[c]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(i)&&typeof i=="object"?e.item.replace("{","").replace("}","").split(",").map(o=>o.trim()).forEach(o=>{s[o]=i[o]}):s[e.item]=i,e.index&&(s[e.index]=n),e.collection&&(s[e.collection]=r),s}function qm(e){return typeof e!="object"&&!isNaN(e)}function jm(e){return typeof e=="object"&&!Array.isArray(e)}function yd(){}yd.inline=(e,{expression:i},{cleanup:n})=>{let r=_s(e);r&&(r._x_refs||(r._x_refs={}),r._x_refs[i]=e,n(()=>delete r._x_refs[i]))};Ve("ref",yd);Ve("if",(e,{expression:i},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Pt("x-if can only be used on a <template> tag",e);let s=st(e,i),a=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let c=e.content.cloneNode(!0).firstElementChild;return yr(c,{},e),je(()=>{e.after(c),vi(()=>ei(c))()}),e._x_currentIfEl=c,e._x_undoIf=()=>{je(()=>{bn(c),c.remove()}),delete e._x_currentIfEl},c},o=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>s(c=>{c?a():o()})),r(()=>e._x_undoIf&&e._x_undoIf())});Ve("id",(e,{expression:i},{evaluate:n})=>
34{n(i).forEach(s=>Cm(e,s))});Cs((e,i)=>{e._x_ids&&(i._x_ids=e._x_ids)});Eo(Au("@",Tu(vn("on:"))));Ve("on",vi((e,{value:i,modifiers:n,expression:r},{cleanup:s})=>{let a=r?st(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(i)||e._x_forwardEvents.push(i));let o=Ki(e,i,n,c=>{a(()=>{},{scope:{$event:c},params:[c]})});s(()=>o())}));Ts("Collapse","collapse","collapse");Ts("Intersect","intersect","intersect");Ts("Focus","trap","focus");Ts("Mask","mask","mask");function Ts(e,i,n){Ve(i,r=>Pt(`You can't use [x-${i}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}wn.setEvaluator(Uh);wn.setRawEvaluator(Xh);wn.setReactivityEngine({reactive:Io,effect:Kp,release:Xp,raw:Pe});var Hm=wn,vd=Hm,Vm=400,ft,Le="address1",Tn=$("<div></div>",{class:"p-3 text-center",id:"address_loading",html:'<i class="far fa-spinner fa-lg fa-pulse"></i><p class="mt-2 block text-sm">Searching</p>'});(function(e){if(!e('form[has-afd="true"]').length){let n=function(){r(".address_search[data-target="+Le+"]",".address-search-results[data-target="+Le+"]","#address_status")},r=function(s,a,o,l){Tn.remove();var l=l||0,f=e(s).val().trim(),d=e(s).data("target");if(f!=""){l==0&&e(a).empty(),e(a).before(Tn);var h="/actions/eauk-general/default/get-address?address="+encodeURIComponent(f);e.ajax({url:h}).done(function(p){if(p.Result=="-2")Tn.remove(),e(a).text("No addresses found"),e(".address-search-results-container[data-target="+d+"]").removeClass("hidden");else{var g=p.Item;ft=g,console.log("Loading, remove spinner 1"),e("#address_loading").remove(),g?(e.each(g,function(v,y){var E=[y.Organisation,y.Property,y.Street,y.Locality,y.Town,y.PostalCounty,y.Postcode].filter(P=>P).join(", ").replace(/,+/g,", ").replace(/^, /,"");E=E.replaceAll(f,'<span class="font-bold">'+f+"</span>");var L='<li data-address="'+v+'" class="cursor-pointer px-5 py-2 rounded-lg hover:bg-gray-50"><h3 class="text-gray-900 font-medium text-md mb-0">'+E+"</h3></li>";e(a).append(L),e(".address-search-results-container[data-target="+d+"]").removeClass("hidden")}),Tn.remove()):e(a).text("No addresses found")}}).fail(function(p){Tn.remove(),e(o).text("Error occurred"),e(a).text("Error occurred")})}};e(document).on("keyup",".address_search",function(){var s=e(this);Le=s.data("target"),clearTimeout(s.data("typingTimer")),s.val()&&s.data("typingTimer",setTimeout(n,Vm))}),e(document).on("click",".address_search",function(){var s=e(this);Le=s.data("target"),s.val()&&s.val().length>3&&n()}),e(document).on("click",".findaddress, #findaddress",function(s){s.preventDefault();var a=e(this).data("target");if(!a){var o=e(this).closest(".input").find(".address_search");o.length&&(a=o.data("target"))}return a&&(Le=a),n(),!1}),e(document).on("click",".manual-address",function(s){s.preventDefault(),Le=e(this).data("address-target");var a=e("#"+Le+"-fulladdress");return a.removeClass("hidden"),a.find("input").each(function(){e(this).removeAttr("readonly")}),e("#py3_areatext").val(""),e("#"+Le+"_area").val(""),e("#"+Le+"_longitude").val(""),e("#"+Le+"_latitude").val(""),!1}),e(document).click(function(){e(".address-search-results-container").addClass("hidden")}),e(document).on("click",".address_search, .address-search-results-container",function(s){s.stopPropagation();var a=e(this).data("target")||e(this).find(".address-search-results").data("target");a&&e(".address-search-results-container[data-target="+a+"]").removeClass("hidden")}),e(document).on("click",".address-search-results li",function(s){s.stopPropagation(),console.log("Address result clicked");var a=e(this).closest(".address-search-results").data("target")||Le;Le=a;var o=e(this).data("address");e(".address-search-items #"+Le+"_latitude").val(ft[o].Latitude||""),e(".address-search-items #"+Le+"_longitude").val(ft[o].Longitude||"");var c=ft[o].EERName||"",l=e(".address-search-items #"+Le+"_area");l.length&&l.val(c),Le=="address1"&&e(".address-search-items #py3_areatext").val(c),e(".address-search-items #"+Le+"_name").val(ft[o].Organisation||""),ft[o].Organisation||e(".address-search-items #"+Le+"_name").parent().addClass("hidden"),e(".address-search-items #"+Le+"_line1").val(ft[o].Property||""),e(".address-search-items #"+Le+"_line2").val(ft[o].Street||""),e(".address-search-items #"+Le+"_line3").val(ft[o].Locality||""),e(".address-search-items #"+Le+"_city").val(ft[o].Town||""),e(".address-search-items #"+Le+"_county").val(ft[o].PostalCounty||""),e(".address-search-items #"+Le+"_postalcode").val(ft[o].Postcode||""),console.log("Now hide search results, address selected"),e(".address-search-results-container").addClass("hidden"),window.pageYOffset||document.documentElement.scrollTop,e("#"+Le+"-fulladdress").removeClass("hidden"),e("#"+Le+"-fulladdress").find("input").each(function(){e(this).removeAttr("readonly")})});
34var i=["input[id$='_name']","input[id$='_line1']","input[id$='_line2']","input[id$='_line3']","input[id$='_city']"];e(document).on("keyup",i.map(function(s){return".address-search-items "+s}).join(","),function(){var s=e(this).val();s&&e(this).val(s.charAt(0).toUpperCase()+s.slice(1))}),e(document).on("keyup",".address-search-items input[id$='_postalcode']",function(){var s=e(this).val();s&&e(this).val(s.toUpperCase())})}})(jQuery);(function(){const e=document.querySelector("[data-article-body]");if(!e)return;const i=3,n=120,r=document.querySelector("[data-article-readbar]"),s=document.querySelector("[data-article-progress]"),a=document.querySelector("[data-article-remaining]"),o=document.querySelector("[data-article-contents-menu]"),c=document.querySelector("[data-article-contents-toggle]"),l=document.getElementById("article-contents-menu"),f=document.querySelector("[data-article-contents-card]"),d=Array.prototype.slice.call(document.querySelectorAll("[data-article-contents-list]")),h=r&&parseInt(r.getAttribute("data-article-minutes"),10)||0,p=window.matchMedia("(prefers-reduced-motion: reduce)").matches;function g(V){return V.toLowerCase().replace(/[‘’“”']/g,"").replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,60)}function v(){const V=Array.prototype.slice.call(e.querySelectorAll("h2, h3")),S={};return V.filter(function(I){return I.closest("[data-article-contents-card]")?!1:I.textContent.trim().length>0}).map(function(I){let B=I.id;return B||(B=g(I.textContent)||"section",S[B]?(S[B]+=1,B=B+"-"+S[B]):S[B]=1,I.id=B),{id:B,text:I.textContent.trim(),level:I.tagName==="H3"?3:2,node:I}})}const y=v(),C=[];y.length>=i&&(d.forEach(function(V){const S=document.createDocumentFragment();y.forEach(function(I){const B=document.createElement("li");B.className="article-contents__item article-contents__item--level-"+I.level;const M=document.createElement("a");M.href="#"+I.id,M.textContent=I.text,M.className="article-contents__link",M.setAttribute("data-article-contents-link",I.id),B.appendChild(M),S.appendChild(B),C.push(M)}),V.appendChild(S)}),f&&(f.hidden=!1,f.open=window.matchMedia("(min-width: 1024px)").matches),o&&(o.hidden=!1));let T=56;function _(){return r?(r.hidden||(T=r.offsetHeight),T+16):16}function b(V){const S=document.getElementById(V);if(!S)return;const I=window.pageYOffset+S.getBoundingClientRect().top-_();window.scrollTo({top:I,behavior:p?"auto":"smooth"})}C.forEach(function(V){V.addEventListener("click",function(S){S.preventDefault();const I=V.getAttribute("data-article-contents-link");b(I),L(),window.history&&window.history.replaceState&&window.history.replaceState(null,"","#"+I)})});function E(){!c||!l||(l.hidden=!1,c.setAttribute("aria-expanded","true"))}function L(){!c||!l||(l.hidden=!0,c.setAttribute("aria-expanded","false"))}c&&(c.addEventListener("click",function(){c.getAttribute("aria-expanded")==="true"?L():E()}),document.addEventListener("click",function(V){!o||o.contains(V.target)||L()}),document.addEventListener("keydown",function(V){V.key==="Escape"&&L()}));let P=null;function j(){if(!C.length)return;const V=_()+4;let S=y[0].id;for(let I=0;I<y.length&&!(y[I].node.getBoundingClientRect().top>V);I++)S=y[I].id;S!==P&&(P=S,C.forEach(function(I){const B=I.getAttribute("data-article-contents-link")===S;I.classList.toggle("is-active",B),B?I.setAttribute("aria-current","true"):I.removeAttribute("aria-current")}))}let H=!1;function q(){H=!1;const V=e.getBoundingClientRect(),S=-V.top,I=Math.max(1,V.height-window.innerHeight),B=Math.min(1,Math.max(0,S/I));if(s&&(s.style.transform="scaleX("+B+")"),r){const M=S>n;M&&r.hidden?(r.hidden=!1,window.requestAnimationFrame(function(){r.classList.add("is-visible")})):!M&&!r.hidden&&(r.classList.remove("is-visible"),r.hidden=!0,L())}if(a&&h){const M=a.querySelector("span");if(M)if(B>=.98)M.textContent="Finished";else if(B<.03)M.textContent=h+" min read";else{const N=Math.max(1,Math.ceil(h*(1-B)));M.textContent=N+" min left"}}j()}function U(){H||(H=!0,window.requestAnimationFrame(q))}window.addEventListener("scroll",U,{passive:!0}),window.addEventListener("resize",U,{passive:!0}),q();const Q=document.querySelector("[data-article-to-top]");Q&&Q.addEventListener("click",function(){window.scrollTo({top:0,behavior:p?"auto":"smooth"})}),navigator.clipboard&&window.isSecureContext&&document.querySelectorAll("[data-article-copy-link]").forEach(function(V){V.classList.remove("hidden");const S=V.querySelector("i"),I=S?S.className:null;V.addEventListener("click",function(){const B=V.getAttribute("data-copy-url");navigator.clipboard.writeText(B).then(function(){V.classList.add("is-copied"),S&&(S.className=I.replace("fa-link","fa-check")),window.setTimeout(function(){V.classList.remove("is-copied"),S&&I&&(S.className=I)},2e3)})})}),navigator.share&&document.querySelectorAll("[data-article-native-share]").forEach(function(V){V.classList.remove("hidden"),V.addEventListener("click",function(){navigator.share({title:V.getAttribute("data-share-title"),url:V.getAttribute("data-share-url")}
34).catch(function(){})})})})();(function(e){e(document).on("click","#share-card-icon",function(){return title=e(this).data("title"),url=e(this).data("url"),url_encode=encodeURI(url),title_encode=encodeURI(title),originalHTML=e("#share-card").html(),console.log(title),console.log(title_encode),console.log(url_encode),console.log(url),console.log(e("#share-card")),e("#share-card").html(originalHTML.replace(/\[\[title\]\]/g,title).replace(/\[\[title_url\]\]/g,title_encode).replace(/\[\[url\]\]/g,url_encode).replace(/\[\[url_link\]\]/g,url)),e.featherlight(e("#share-card"),{afterClose:function(){e("#share-card").html(originalHTML)}}),!1}),e(document).on("click",".link-btn",function(){var i=document.getElementById("link-cp");i.select(),i.setSelectionRange(0,99999),document.execCommand("copy"),e("label.copied").removeClass("opacity-0"),setTimeout(function(){e("label.copied").addClass("opacity-0")},2e3)})})(jQuery);document.body.classList.contains("find-a-church")&&$m();function Ze(e,i=document){return i.querySelector(e)}function Hr(e,i=document){return Array.from(i.querySelectorAll(e))}function zm(e){e&&window.scrollTo({top:e.getBoundingClientRect().top+window.scrollY,behavior:"smooth"})}function bd(e){try{const i=new URL(e);return i.protocol==="http:"||i.protocol==="https:"}catch{return!1}}let Re,Gn=null,Vr,yi,Ut=null;const wt=[],Ss=[];let zt=[],on="",ln,cn,Zt="map",vr="all",fi=[],zr=[],Wr=null,Ra=0,ns="all",Kn=null,Qe=null;const Dl=40,Ml="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z";let Ds,wd;const Fo=document.body.classList.contains("devmode-true"),Wm=window.btoa(`
35	<svg fill="#2bb2bc" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 240 240">
36	<circle cx="120" cy="120" opacity="1" r="70" />
37	<circle cx="120" cy="120" opacity=".7" r="90" />
38	<circle cx="120" cy="120" opacity=".3" r="110" />
39	<circle cx="120" cy="120" opacity=".2" r="130" />
40	</svg>`),Um={render:({count:e,position:i})=>new google.maps.Marker({label:{text:String(e),color:"#fff",fontFamily:"proxima-nova, sans-serif",fontSize:"13px",fontWeight:"600"},icon:{url:`data:image/svg+xml;base64,${Wm}`,scaledSize:new google.maps.Size(45,45)},position:i,zIndex:Number(google.maps.Marker.MAX_ZINDEX)+e})};let St,Bi,$t,pt,Ue,rs,nn,Ur,Qt,Vn,Ba,ar;async function $m(){const{Map:e}=await google.maps.importLibrary("maps"),{Autocomplete:i}=await google.maps.importLibrary("places");St=document.getElementById("church_search"),Bi=Ze(".church-finder-map-container"),$t=Ze(".no-results"),pt=Ze(".search-sidebar"),Ue=Ze(".results"),rs=Ze(".sidebar-template"),nn=Ze(".church-finder-wrapper"),Ur=Hr(".view-toggle-btn"),Qt=Hr(".az-btn"),Vn=Ze(".list-count"),Ba=Ze(".list-loading"),ar=Ze(".list-empty"),Zt=nn&&nn.getAttribute("data-view")==="list"?"list":"map",Ur.forEach(h=>{h.setAttribute("aria-pressed",h.dataset.view===Zt?"true":"false")}),Ds={path:Ml,anchor:new google.maps.Point(12,17),fillOpacity:1,fillColor:"#2bb2bc",strokeWeight:1,strokeColor:"#1c9da0",scale:2},wd={path:Ml,anchor:new google.maps.Point(12,17),fillOpacity:1,fillColor:"#3c4981",strokeWeight:1,strokeColor:"#2e3d6b",scale:2};const n=parseFloat(rt("search_lat")),r=parseFloat(rt("search_lon")),s=decodeURIComponent(rt("search_place")||""),a=decodeURIComponent(rt("search_name")||""),o=decodeURIComponent(rt("search")||""),c={lat:n||53.76293458756777,lng:r||-2.1087462927010394},l=6;Re=new e(document.getElementById("map"),{center:c,zoom:l,mapId:"10c54dda61bbc61b",mapTypeControl:!1}),ln=c,cn=l,yi=new google.maps.InfoWindow({maxWidth:320}),yi.addListener("closeclick",()=>Ol());const f=new i(St);f.setComponentRestrictions({country:["gb"]}),f.addListener("place_changed",()=>{const h=f.getPlace();if(h.geometry){const p=h.geometry.location.lat(),g=h.geometry.location.lng();Gs(p,g),Re.setCenter(h.geometry.location)}}),n&&r?(Gs(n,r),Pl(n,r)):s&&s!=="undefined"?(No(s),St.value=s):a&&a!=="undefined"?(Ed(a),St.value=a):o&&o!=="undefined"?(St.value=o,Ll(o)):Xn();const d=document.getElementById("church-search-form");d&&d.addEventListener("submit",h=>{h.preventDefault();const p=St.value.trim();_d(),p.length===0?Xn():p.length>=2&&Ll(p)}),Hr(".view-all-churches").forEach(h=>{h.addEventListener("click",p=>{p.preventDefault(),Xn(),Bo()})}),Ur.forEach(h=>{h.addEventListener("click",()=>
40Xm(h.dataset.view))}),Qt.forEach(h=>{h.addEventListener("click",()=>{h.disabled||tg(h.dataset.letter)})}),Ue&&Ue.addEventListener("click",h=>{const p=h.target.closest(".church");if(p){if(Zt==="list"){rg(p);return}if(p.classList.contains("expanded"))Ol();else{const g=p.dataset.churchUid,v=p.dataset.markerId,y=Ss[v];y&&y.marker&&Ro(g,y.marker,!1)}}}),navigator.geolocation&&document.addEventListener("click",h=>{h.target.closest(".get-location")&&navigator.geolocation.getCurrentPosition(p=>{new google.maps.Marker({position:new google.maps.LatLng(p.coords.latitude,p.coords.longitude),draggable:!1,icon:{path:google.maps.SymbolPath.CIRCLE,fillColor:"#459bea",fillOpacity:1,scale:11,strokeWeight:0}}).setMap(Re),Gs(p.coords.latitude,p.coords.longitude),Pl(p.coords.latitude,p.coords.longitude)},()=>{alert("There was a problem finding your location")})})}function _d(){Gn&&(Gn.abort(),Gn=null)}async function br(e,i={}){_d(),Gn=new AbortController;const n=new URLSearchParams(i).toString(),r=n?`${e}?${n}`:e,s=await fetch(r,{method:"GET",headers:{Accept:"application/json"},signal:Gn.signal});if(!s.ok)throw new Error(`HTTP ${s.status}`);return s.json()}function It(e){Bi&&Bi.classList.toggle("searching",e==="start"),Zt==="list"&&(Ms(e==="start"),e==="start"&&(ar&&ar.classList.add("hidden"),$t&&$t.classList.add("hidden")))}function Ll(e){if(!e||e.length<2){Xn();return}bh(e)?No(e):Ed(e)}async function Ed(e){if(e){e=e.replace(/\+/g," "),on="?search="+encodeURIComponent(e),It("start"),Fo||Oe("event",void 0,"church_search","name",encodeURIComponent(e),!0);try{const i=await br("/actions/church-search/search/search-name",{name:e});i&&i.length>0?or(i,"name"):await No(e)}catch(i){i.name!=="AbortError"&&console.error("search_name failed:",i)}finally{It("end")}}}function Ym(e){return new Promise((i,n)=>{new google.maps.Geocoder().geocode({address:e,componentRestrictions:{country:"GB"}},(s,a)=>{if(a==="OK"&&s&&s[0]&&s[0].geometry){const o=s[0].geometry.location;i({lat:o.lat(),lng:o.lng()})}else n(new Error("Geocode failed: "+a))})})}async function No(e){if(e){on="?search="+encodeURIComponent(e),It("start"),Fo||Oe("event",void 0,"church_search","place",encodeURIComponent(e),!0);try{const{lat:i,lng:n}=await Ym(e);Re&&Re.setCenter({lat:i,lng:n});const r=await br("/actions/church-search/search/search-location",{lat:i,lon:n});or(r,"place")}catch(i){if(i.name==="AbortError")return;console.error("search_place failed:",i),or([],"place")}finally{It("end")}}}async function Gs(e,i){if(!(!e||!i)){on="?search_lat="+encodeURIComponent(e)+"&search_lon="+encodeURIComponent(i),It("start"),Fo||Oe("event",void 0,"church_search","latlon",encodeURIComponent(e+","+i),!0);try{const n=await br("/actions/church-search/search/search-location",{lat:e,lon:i});or(n,"place")}catch(n){n.name!=="AbortError"&&console.error("search_lat_lon failed:",n)}finally{It("end")}}}async function Xn(){pt&&pt.classList.add("hidden"),St&&(St.value=""),on="",It("start");try{const e=await br("/actions/church-search/search/search-all");or(e,"all")}catch(e){e.name!=="AbortError"&&console.error("search_all failed:",e)}finally{It("end")}}async function Gm(){It("start");try{const e=await br("/actions/church-search/search/search-all");if(!e||e.length===0)return;const i=e.map(n=>({lat:n.actual_latitude||n.latitude,lng:n.actual_longitude||n.longitude,name:n.name,slug:n.slug}));zt=e,Md(i),Bi&&Bi.classList.remove("hidden")}catch(e){e.name!=="AbortError"&&console.error("loadAllMarkers failed:",e)}finally{It("end")}}function or(e,i){if(!e||!i)return;if(kd(),e.length===0){$t&&$t.classList.remove("hidden"),Zt==="list"?(Ms(!1),Ue&&(Ue.innerHTML=""),pt&&pt.classList.add("hidden"),lr(),Ad(0)):(pt&&pt.classList.add("hidden"),Gm());return}Bi&&Bi.classList.remove("hidden"),$t&&$t.classList.add("hidden");const n=[];zt=[];for(let r=0;r<e.length;r++){const s=e[r],a=s.actual_latitude||s.latitude,o=s.actual_longitude||s.longitude;n.push({lat:a,lng:o,name:s.name,slug:s.slug}),i!=="all"&&(s.address=(s.address1?s.address1+", ":"")+(s.address2?s.address2+", ":"")+(s.address3?s.address3+", ":"")+(s.town?s.town+", ":"")+(s.county?s.county+", ":"")+(s.postcode||"")),zt.push(s)}fi=zt,vr=i==="all"?"all":"search",i==="all"&&(Wr=zt),ig(),Zt==="list"?ss():i!=="all"&&xd(zt),Md(n),Zt==="map"&&i!=="all"&&Bo()}function Km(e){if(!e)return"";typeof e.address>"u"&&(e.address=(e.address1?e.address1+", ":"")+(e.address2?e.address2+", ":"")+(e.address3?e.address3+", ":"")+(e.town?e.town+", ":"")+(e.county?e.county+", ":"")+(e.postcode||""));
40let i='<div id="content" class="font-sans-primary overflow-hidden mb-4 mr-2"><h1 class="font-bold font-sans-secondary text-primary-400 border-b-3 text-lg sm:text-2xl">'+e.name+'</h1><div class="text-sm"><p>';if(e.address&&(i+='<i class="far fa-map-marked-alt text-primary-400 mr-2 mt-2"></i> '+e.address+"<br>"),e.membershipID&&(i+='<i class="far fa-id-card text-primary-400 mr-2 mt-2"></i> '+e.membershipID+"<br>"),e.website){const n=bd(e.website)?e.website:"http://"+e.website;i+='<i class="fas fa-globe text-primary-400 mr-2 mt-2"></i><a href="'+n+'" target="_blank" rel="noopener noreferrer">'+e.website+"</a><br>"}return e.phone&&(i+='<i class="far fa-phone text-primary-400 mr-2 mt-2"></i>'+e.phone+"<br>"),e.denomination&&(i+='<i class="far fa-church text-primary-400 mr-2 mt-2"></i>'+e.denomination),i+='</p><p class="my-2 text-right w-full font-bold"><a href="/churches/'+e.slug+'">Go to church profile &rarr;</a></p></div></div>',i}function Cd(e,i){if(!e||!rs)return"";let n=rs.innerHTML;if((typeof e.address>"u"||e.address==="")&&(e.address=(e.address1?e.address1+", ":"")+(e.address2?e.address2+", ":"")+(e.address3?e.address3+", ":"")+(e.town?e.town+", ":"")+(e.county?e.county+", ":"")+(e.postcode||"")),n=n.replace("[marker_id]",i),n=n.replace("[church_uid]",e.slug),n=n.replace("[number]",i+1),n=n.replace("[name]",e.name),n=n.replace("[address]",e.address),e.distance){const r=parseFloat(e.distance).toFixed(2);n=n.replace("[distance]",'<p class="flex items-start"><i class="far fa-route text-primary-200 mr-2 mt-0.5 flex-shrink-0"></i><span>'+r+" miles</span></p>")}else n=n.replace("[distance]","");if(e.membershipID?n=n.replace("[extra_mem_num]",'<p class="flex items-start"><i class="far fa-id-card text-primary-200 mr-2 mt-0.5 flex-shrink-0"></i><span>Membership: '+e.membershipID+"</span></p>"):n=n.replace("[extra_mem_num]",""),n=n.replace("[go_to_profile]",'<p class="mt-2"><a class="font-bold text-primary-200 hover:text-primary-100 transition" href="/churches/'+e.slug+'">Go to church profile &rarr;</a></p>'),e.denomination?n=n.replace("[extra_denomination]",'<p class="flex items-start"><i class="far fa-church text-primary-200 mr-2 mt-0.5 flex-shrink-0"></i><span>'+e.denomination+"</span></p>"):n=n.replace("[extra_denomination]",""),e.website){const r=bd(e.website)?e.website:"http://"+e.website;n=n.replace("[extra_website]",'<p class="flex items-start"><i class="fas fa-globe text-primary-200 mr-2 mt-0.5 flex-shrink-0"></i><a href="'+r+'" target="_blank" rel="noopener noreferrer" class="text-primary-200 hover:underline truncate">'+e.website+"</a></p>")}else n=n.replace("[extra_website]","");return e.phone?n=n.replace("[extra_tel]",'<p class="flex items-start"><i class="far fa-phone text-primary-200 mr-2 mt-0.5 flex-shrink-0"></i><span>'+e.phone+"</span></p>"):n=n.replace("[extra_tel]",""),n}function xd(e){if(!e||!Ue||!rs)return;pt.classList.remove("hidden");const i=document.createDocumentFragment(),n=document.createElement("div");for(let r=0;r<e.length;r++)for(n.innerHTML=Cd(e[r],r);n.firstChild;)i.appendChild(n.firstChild);Ue.innerHTML="",Ue.appendChild(i)}function Xm(e){e!=="list"&&e!=="map"&&(e="map"),Zt=e,nn&&nn.setAttribute("data-view",e);try{window.localStorage.setItem("eaukChurchView",e)}catch{}Ur.forEach(i=>{i.setAttribute("aria-pressed",i.dataset.view===e?"true":"false")}),kd(),e==="list"?Zm():Qm()}function Jm(){let e="/churches"+(on||"");return Zt==="list"&&(e+=(on?"&":"?")+"view=list"),e}function kd(){window.history.replaceState({},document.title,Jm())}function Zm(){fi&&fi.length?ss():Wr&&Wr.length?(fi=Wr,vr="all",ss()):(Ms(!0),Xn())}function Qm(){if(lr(),vr==="all"?(pt&&pt.classList.add("hidden"),Ue&&(Ue.innerHTML="")):fi&&fi.length&&xd(fi),Re)if(google.maps.event.trigger(Re,"resize"),wt.length>1){const e=wt.reduce((i,n)=>i.extend(n.getPosition()),new google.maps.LatLngBounds);Re.fitBounds(e)}else wt.length===1?Re.setCenter(wt[0].getPosition()):ln&&(Re.setCenter(ln),cn&&Re.setZoom(cn))}function Ms(e){Ba&&Ba.classList.toggle("hidden",!e)}function Ad(e){Vn&&(e===0?Vn.textContent="":vr==="all"?Vn.textContent=e===1?"1 church":e.toLocaleStr
40ing()+" churches":Vn.textContent=e===1?"1 result":e+" results")}function Td(e){const i=(e||"").trim().charAt(0).toUpperCase();return i>="A"&&i<="Z"?i:"#"}function eg(e){if(!Qt||!Qt.length)return;const i=new Set;for(let n=0;n<e.length;n++)i.add(Td(e[n].name));Qt.forEach(n=>{const r=n.dataset.letter;if(r==="all")return;const s=i.has(r);n.disabled=!s,n.classList.toggle("opacity-40",!s),n.classList.toggle("cursor-not-allowed",!s)})}function tg(e){ns=e,Qt&&Qt.forEach(i=>{i.setAttribute("aria-pressed",i.dataset.letter===e?"true":"false")}),ss()}function ig(){ns="all",Qt&&Qt.forEach(e=>{e.setAttribute("aria-pressed",e.dataset.letter==="all"?"true":"false")})}function ss(){if(!Ue)return;Ms(!1),$t&&$t.classList.add("hidden"),lr();const e=fi||[];eg(e);let i=e;ns!=="all"&&(i=e.filter(n=>Td(n.name)===ns)),vr==="all"&&(i=i.slice().sort((n,r)=>(n.name||"").localeCompare(r.name||""))),zr=i,Ra=0,Ue.innerHTML="",Ad(i.length),ar&&ar.classList.toggle("hidden",i.length!==0),pt&&pt.classList.toggle("hidden",i.length===0),i.length&&Sd()}function Sd(){if(!Ue)return;const e=Ra*Dl,i=Math.min(e+Dl,zr.length);if(e>=i){lr();return}const n=document.createDocumentFragment(),r=document.createElement("div");for(let s=e;s<i;s++)for(r.innerHTML=Cd(zr[s],s);r.firstChild;)n.appendChild(r.firstChild);Qe&&Qe.parentNode===Ue?Ue.insertBefore(n,Qe):Ue.appendChild(n),Ra++,i<zr.length?ng():lr()}function ng(){Ue&&(Qe||(Qe=document.createElement("li"),Qe.className="list-sentinel",Qe.setAttribute("aria-hidden","true")),Qe.parentNode!==Ue&&Ue.appendChild(Qe),Kn||(Kn=new IntersectionObserver(e=>{e.forEach(i=>{i.isIntersecting&&Sd()})},{rootMargin:"400px"})),Kn.observe(Qe))}function lr(){Kn&&Qe&&Kn.unobserve(Qe),Qe&&Qe.parentNode&&Qe.parentNode.removeChild(Qe)}function rg(e){const i=Ze(".extra-details",e),n=Ze(".more-details",e);e.classList.contains("expanded")?(e.classList.remove("expanded","bg-gray-50"),i&&i.classList.add("hidden"),n&&n.classList.remove("rotate-180")):(e.classList.add("expanded","bg-gray-50"),i&&i.classList.remove("hidden"),n&&n.classList.add("rotate-180"))}function sg(e){e&&e.marker&&(e=e.marker),yi.close(),Ut&&(Ut.setIcon(Ds),Ut.setZIndex(1)),e.setIcon(wd),e.setZIndex(50),Ut=e,Re.setZoom(14),Re.panTo(e.position)}function Ol(){Ut&&(Ut.setIcon(Ds),Ut.setZIndex(1),Ut=null),yi.close(),Dd(),ln&&cn&&(Re.setZoom(cn),Re.panTo(ln))}function ag(e,i){const n=new google.maps.LatLng(e.lat,e.lng);zt[i];const r=new google.maps.Marker({position:n,icon:Ds});Ss[i]={position:n,slug:e.slug,marker:r},r.addListener("click",()=>{Ro(e.slug,r,!0)}),wt.push(r)}function og(e,i){wt.length=0,Ss.length=0;const n=250;let r=0;function s(){const a=Math.min(r+n,e.length);for(let o=r;o<a;o++)ag(e[o],o);r=a,r<e.length?requestAnimationFrame(s):i&&i()}s()}function Dd(){Hr(".results .church").forEach(e=>{e.classList.remove("selected","expanded","bg-gray-50");const i=Ze(".extra-details",e);i&&i.classList.add("hidden");const n=Ze(".more-details",e);n&&n.classList.remove("rotate-180")})}function Ro(e,i,n){sg(i);const r=wt.indexOf(i);r!==-1&&zt[r]&&(yi.setContent(Km(zt[r])),yi.open({anchor:i,map:Re})),Dd();const s=Ze(`.results .church[data-church-uid="${e}"]`);if(s){s.classList.add("selected","expanded","bg-gray-50");const a=Ze(".extra-details",s);a&&a.classList.remove("hidden");const o=Ze(".more-details",s);o&&o.classList.add("rotate-180"),n&&s.scrollIntoView({behavior:"smooth",block:"nearest"})}Bo()}function Md(e){lg(),og(e,function(){Vr=new markerClusterer.MarkerClusterer({markers:wt,map:Re,renderer:Um});const n=wt.reduce((r,s)=>r.extend(s.getPosition()),new google.maps.LatLngBounds);e.length>1?Re.fitBounds(n):Re.setCenter(n.getCenter()),google.maps.event.addListenerOnce(Re,"idle",()=>{ln=Re.getCenter(),cn=Re.getZoom(),e.length===1&&Ro(e[0].slug,wt[0],!1)})})}function lg(){Vr&&(Vr.clearMarkers(),Vr=null),wt.length=0,Ss.length=0,Ut=null,yi&&yi.close()}function Bo(){zm(nn)}function Pl(e,i){new google.maps.Geocoder().geocode({location:{lat:e,lng:i}},(r,s)=>{s==="OK"&&r[0]&&St&&(St.value=r[0].formatted_address)})}(function(e){if(e("body.countdown").length){let i=function(){var n=new Date("30 August 2018 12:00:00 GMT+01:00");n=Date.parse(n)/1e3;var r=new Date;r=Date.parse(r)/1e3;var s=n-r,a=Math.floor(s/86400),o=Math.floor((s-a*86400)/3600),c=Math.floor((s-a*86400-o*3600)/60),l=Math.floor(s-a*86400-o*3600-c*60);o<"10"&&(o="0"+o),c<"10"&&(c="0"+c),l<"10"&&(l="0"+l),e("#js-clock-hours").html(o),e("#js-clock-minutes").html(c),e("#js-clock-seconds").html(l)};setInterval(function(){i()},1e3)}})(jQuery);document.addEventListener("d365mkt-afterformsubmit",function(){removeLoadingBar(),$(".dataprotection").addClass("hidden")});document.addEventListener("d365mkt-afterformload",function(){console.log("afterFormLoad");const e=new Date;document.getElementById("c781f1fc-0b8d-ed11-81ad-0022481b5bd0")&&(document.getElementById("c781f1fc-0b8d-ed11-81ad-0022481b5bd0").value=e.toISOString().slice(0,-8)),document.getElementById("py3_bulkemailconsent-1712752767486")&&(document.getElementById("py3_bulkemailconsent-1712752767486").value=e.toISOString().slice(0,-8));let i=new URLSearchParams(document.location.search);document.getElementById("8a60cbb2-650f-ee11-8f6e-002248c65cbe")&&(document.getElementById("8a60cbb2-650f-ee11-8f6e-002248c65cbe").value=d
40ocument.referrer),document.getElementById("4df5c77f-640f-ee11-8f6e-002248c65cbe")&&(document.getElementById("4df5c77f-640f-ee11-8f6e-002248c65cbe").value=i.get("utm_source")),document.getElementById("d9c4d0b4-680f-ee11-8f6e-002248c65cbe")&&(document.getElementById("d9c4d0b4-680f-ee11-8f6e-002248c65cbe").value=i.get("utm_source")),document.getElementById("08f86e8e-650f-ee11-8f6e-002248c65cbe")&&(document.getElementById("08f86e8e-650f-ee11-8f6e-002248c65cbe").value=i.get("utm_medium")),document.getElementById("7fc09aa0-650f-ee11-8f6e-002248c65cbe")&&(document.getElementById("7fc09aa0-650f-ee11-8f6e-002248c65cbe").value=i.get("utm_campaign")),document.getElementById("fee497a6-650f-ee11-8f6e-002248c65cbe")&&(document.getElementById("fee497a6-650f-ee11-8f6e-002248c65cbe").value=i.get("utm_content")),document.getElementById("87671ca2-334b-ee11-be6f-002248c651e3")&&(document.getElementById("87671ca2-334b-ee11-be6f-002248c651e3").checked||(document.getElementById("87671ca2-334b-ee11-be6f-002248c651e3").parentElement.parentElement.parentElement.parentElement.style.display="none")),$(document).on("click",'.marketingForm input[type="text"], .marketingForm input[type="email"]',function(n){var r=$(".dataprotectionstatementSource").html();$(".dataprotectionstatement").html('<div class="w-full text-white dataprotection text-xs 2xl:text-sm leading-tight text-center"><div class="hidden sm:block">'+r+'</div><div class="block sm:hidden"><p>By signing up you agree to our <a href="/privacy-policy#data-protection-statement">Data Protection Statement</a></p></div></div>'),$(".dataprotection").removeClass("hidden")})});window.screen_xs=480;const cg=window.screen_sm=768;window.screen_md=992;(function(e){e(document).on("click",'.signup input[type="text"], .signup input[type="email"]',function(n){e(".dataprotection").removeClass("hidden")}),e(".signup").outerHeight(),e(".signup").length&&e(window).scroll(function(n){i()});function i(){window.matchMedia("(min-width: "+cg+"px)")}e(document).on("click",".signup button.btn-reset",function(n){lo("signup","close",999),e(".signup").removeClass("appear").addClass("disappear")}),e(document).ready(function(){close=co("signup"),close=="close"&&e(".signup").removeClass("appear").addClass("disappear")}),e(document).on("click",".mob-popup",function(){e(this).remove(),e(".signup-form").removeClass("hidden")})})(jQuery);jQuery;function qo(e){return e[e.length-1]}function wr(e,...i){return i.forEach(n=>{e.includes(n)||e.push(n)}),e}function Il(e,i){return e?e.split(i):[]}function jo(e,i,n){const r=i===void 0||e>=i,s=n===void 0||e<=n;return r&&s}function Ld(e,i,n){return e<i?i:e>n?n:e}function un(e,i,n={},r=0,s=""){const a=Object.keys(n).reduce((c,l)=>{let f=n[l];return typeof f=="function"&&(f=f(r)),`${c} ${l}="${f}"`},e);s+=`<${a}></${e}>`;const o=r+1;return o<i?un(e,i,n,o,s):s}function Ho(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function qa(e){return new Date(e).setHours(0,0,0,0)}function Wi(){return new Date().setHours(0,0,0,0)}function dn(...e){switch(e.length){case 0:return Wi();case 1:return qa(e[0])}const i=new Date(0);return i.setFullYear(...e),i.setHours(0,0,0,0)}function cr(e,i){const n=new Date(e);return n.setDate(n.getDate()+i)}function ug(e,i){return cr(e,i*7)}function as(e,i){const n=new Date(e),r=n.getMonth()+i;let s=r%12;s<0&&(s+=12);const a=n.setMonth(r);return n.getMonth()!==s?n.setDate(0):a}function ur(e,i){const n=new Date(e),r=n.getMonth(),s=n.setFullYear(n.getFullYear()+i);return r===1&&n.getMonth()===2?n.setDate(0):s}function Fl(e,i){return(e-i+7)%7}function Ii(e,i,n=0){const r=new Date(e).getDay();return cr(e,Fl(i,n)-Fl(r,n))}function Od(e,i){return Math.round((e-i)/6048e5)+1}function dg(e){const i=Ii(e,4,1),n=Ii(new Date(i).setMonth(0,4),4,1);return Od(i,n)}function Pd(e,i){const n=Ii(new Date(e).setMonth(0,1),i,i),r=Ii(e,i,i),s=Od(r,n);if(s<53)return s;const a=Ii(new Date(e).setDate(32),i,i);return r===a?1:s}function fg(e){return Pd(e,0)}function hg(e){return Pd(e,6)}function Yi(e,i){const n=new Date(e).getFullYear();return Math.floor(n/i)*i}function hi(e,i,n){if(i!==1&&i!==2)return e;const r=new Date(e);return i===1?n?r.setMonth(r.getMonth()+1,0):r.setDate(1):n?r.setFullYear(r.getFullYear()+1,0,0):r.setMonth(0,1),r.setHours(0,0,0,0)}const ja=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,pg=/[\s!-/:-@[-`{-~年月日]+/;let Ks={};const Nl={y(e,i){return new Date(e).setFullYear(parseInt(i,10))},m(e,i,n){const r=new Date(e);let s=parseInt(i,10)-1;if(isNaN(s)){if(!i)return NaN;const a=i.toLowerCase(),o=c=>c.toLowerCase().startsWith(a);if(s=n.monthsShort.findIndex(o),s<0&&(s=n.months.findIndex(o)),s<0)return NaN}return r.setMonth(s),r.getMonth()!==Id(s)?r.setDate(0):r.getTime()},d(e,i){return new Date(e).setDate(parseInt(i,10))}},mg={d(e){return e.getDate()},dd(e){return Lr(e.getDate(),2)},D(e,i){return i.daysShort[e.getDay()]},DD(e,i){return i.days[e.getDay()]},m(e){return e.getMonth()+1},mm(e){return Lr(e.getMonth()+1,2)},M(e,i){return i.monthsShort[e.getMonth()]},MM(e,i){return i.months[e.getMonth()]},y(e){return e.getFullYear()},yy(e){return Lr(e.getFullYear(),2).slice(-2)},yyyy(e){return Lr(e.getFullYear(),4)}};function Id(e){return e>-1?e%12:Id(e+12)}function Lr(e,i){return e.toString().padStart(i,"0")}function Fd(e){if(typeof e!="string")throw new Error("Invalid date format.");if(e in Ks)return Ks[e];const i=e.split(ja),n=e.match(new RegExp(ja,"g"));if(i.length===0||!n)throw new Error("Invalid date format.");const r=n.map(a=>mg[a]),s=Object.keys(Nl).reduce((a,o)=>(n.find(l=>l[0]!=="D"&&l[0].toLowerCase()===o)&&a.push(o),a),[]);return Ks[e]={parser(a,o){const c=a.split(pg).reduce((l,f,d)=>{if(f.length>0&&n[d]){const h=n[d][0];h==="M"?l.m=f:h!=="D"&&(l[h]=f)}return l},{});return s.reduce((l,f)=>{const d=Nl[f](l,c[f],o);return isNaN(d)?l:d},Wi())},formatter(a,o){let c=r.reduce((l,f,d)=>l+=`${i[d]}${f(a,o)}`,"");return c+=qo(i)}}}function qi(e,i,n){if(e instanceof Date||typeof e=="number"){const r=qa(e);return isNaN(r)?void 0:r}if(e){if(e==="today")return Wi();if(i&&i.toValue){const r=i.toValue(e,i,n);return isNaN(r)?void 0:qa(r)}return Fd(i).parser(e,n)}}function Ls(e,i,n){if(isNaN(e)||!e&&e!==0)return"";const r=typeof e=="number"?new Date(e):e;return i.toDisplay?i.toDisplay(r,i,n):Fd(i).formatter(r,n)}const gg=document.createRange();function ti(e){return gg.createContextualFragment(e)}function Nd(e){return e.parentElement||(e.parentNode instanceof ShadowRoot?e.parentNode.host:void 0)}function Os(e){return e.getRootNode().activeElement===e}function Jn(e){e.style.display!=="none"&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function Zn(e){e.style.display==="none"&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function os(e){e.firstChild&&(e.removeChild(e.firstChild),os(e))}function yg(e,i){os(e),i instanceof DocumentFragment?e.appendChild(i):typeof i=="string"?e.appendChild(ti(i)):typeof i.forEac
40h=="function"&&i.forEach(n=>{e.appendChild(n)})}const ls=new WeakMap,{addEventListener:vg,removeEventListener:bg}=EventTarget.prototype;function Ha(e,i){let n=ls.get(e);n||(n=[],ls.set(e,n)),i.forEach(r=>{vg.call(...r),n.push(r)})}function wg(e){let i=ls.get(e);i&&(i.forEach(n=>{bg.call(...n)}),ls.delete(e))}if(!Event.prototype.composedPath){const e=(i,n=[])=>{n.push(i);let r;return i.parentNode?r=i.parentNode:i.host?r=i.host:i.defaultView&&(r=i.defaultView),r?e(r,n):n};Event.prototype.composedPath=function(){return e(this.target)}}function Rd(e,i,n){const[r,...s]=e;if(i(r))return r;if(!(r===n||r.tagName==="HTML"||s.length===0))return Rd(s,i,n)}function Bd(e,i){const n=typeof i=="function"?i:r=>r instanceof Element&&r.matches(i);return Rd(e.composedPath(),n,e.currentTarget)}const Sn={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},Vo={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0},{language:Xs,format:_g,weekStart:Eg}=Vo;function Rl(e,i){return e.length<6&&i>=0&&i<7?wr(e,i):e}function qd(e,i){switch(e===4?i===6?3:!i+1:e){case 1:return dg;case 2:return fg;case 3:return hg}}function Bl(e,i,n){return i.weekStart=e,i.weekEnd=(e+6)%7,n===4&&(i.getWeekNumber=qd(4,e)),e}function ql(e,i,n,r){const s=qi(e,i,n);return s!==void 0?s:r}function Js(e,i,n=3){const r=parseInt(e,10);return r>=0&&r<=n?r:i}function Or(e,i,n,r=void 0){i in e&&(n in e||(e[n]=r?r(e[i]):e[i]),delete e[i])}function Zs(e,i){const n=Object.assign({},e),r={},s=i.constructor.locales,a=!!i.rangeSideIndex;let{datesDisabled:o,format:c,language:l,locale:f,maxDate:d,maxView:h,minDate:p,pickLevel:g,startView:v,weekNumbers:y,weekStart:C}=i.config||{};if(Or(n,"calendarWeeks","weekNumbers",P=>P?1:0),Or(n,"clearBtn","clearButton"),Or(n,"todayBtn","todayButton"),Or(n,"todayBtnMode","todayButtonMode"),n.language){let P;if(n.language!==l&&(s[n.language]?P=n.language:(P=n.language.split("-")[0],s[P]||(P=!1))),delete n.language,P){l=r.language=P;const j=f||s[Xs];f=Object.assign({format:_g,weekStart:Eg},s[Xs]),l!==Xs&&Object.assign(f,s[l]),r.locale=f,c===j.format&&(c=r.format=f.format),C===j.weekStart&&(C=Bl(f.weekStart,r,y))}}if(n.format){const P=typeof n.format.toDisplay=="function",j=typeof n.format.toValue=="function",H=ja.test(n.format);(P&&j||H)&&(c=r.format=n.format),delete n.format}let T=g;"pickLevel"in n&&(T=Js(n.pickLevel,g,2),delete n.pickLevel),T!==g&&(T>g&&("minDate"in n||(n.minDate=p),"maxDate"in n||(n.maxDate=d)),o&&!n.datesDisabled&&(n.datesDisabled=[]),g=r.pickLevel=T);let _=p,b=d;if("minDate"in n){const P=dn(0,0,1);_=n.minDate===null?P:ql(n.minDate,c,f,_),_!==P&&(_=hi(_,g,!1)),delete n.minDate}if("maxDate"in n&&(b=n.maxDate===null?void 0:ql(n.maxDate,c,f,b),b!==void 0&&(b=hi(b,g,!0)),delete n.maxDate),b<_?(p=r.minDate=b,d=r.maxDate=_):(p!==_&&(p=r.minDate=_),d!==b&&(d=r.maxDate=b)),n.datesDisabled){const P=n.datesDisabled;if(typeof P=="function")r.datesDisabled=null,r.checkDisabled=(j,H)=>P(new Date(j),H,a);else{const j=r.datesDisabled=P.reduce((H,q)=>{const U=qi(q,c,f);return U!==void 0?wr(H,hi(U,g,a)):H},[]);r.checkDisabled=H=>j.includes(H)}delete n.datesDisabled}if("defaultViewDate"in n){const P=qi(n.defaultViewDate,c,f);P!==void 0&&(r.defaultViewDate=P),delete n.defaultViewDate}if("weekStart"in n){const P=Number(n.weekStart)%7;isNaN(P)||(C=Bl(P,r,y)),delete n.weekStart}if(n.daysOfWeekDisabled&&(r.daysOfWeekDisabled=n.daysOfWeekDisabled.reduce(Rl,[]),delete n.daysOfWeekDisabled),n.daysOfWeekHighlighted&&(r.daysOfWeekHighlighted=n.daysOfWeekHighlighted.reduce(Rl,[]),delete n.daysOfWeekHighlighted),"weekNumbers"in n){let P=n.weekNumbers;if(P){const j=typeof P=="function"?(H,q)=>P(new Date(H),q):qd(P=parseInt(P,10),C);j&&(y=r.weekNumbers=P,r.getWeekNumber=j)}else y=r.weekNumbers=0,r.getWeekNumber=null;delete n.weekNumbers}if("maxNumberOfDates"in n){const P=parseInt(n.maxNumberOfDates,10);P>=0&&(r.maxNumberOfDates=P,r.multidate=P!==1),delete n.maxNumberOfDates}n.dateDelimiter&&(r.dateDelimiter=String(n.dateDelimiter),delete n.dateDelimiter);let E=h;
vendor: 8,882 bytes, lines 40-61
40"maxView"in n&&(E=Js(n.maxView,h),delete n.maxView),E=g>E?g:E,E!==h&&(h=r.maxView=E);let L=v;if("startView"in n&&(L=Js(n.startView,L),delete n.startView),L<g?L=g:L>h&&(L=h),L!==v&&(r.startView=L),n.prevArrow){const P=ti(n.prevArrow);P.childNodes.length>0&&(r.prevArrow=P.childNodes),delete n.prevArrow}if(n.nextArrow){const P=ti(n.nextArrow);P.childNodes.length>0&&(r.nextArrow=P.childNodes),delete n.nextArrow}if("disableTouchKeyboard"in n&&(r.disableTouchKeyboard="ontouchstart"in document&&!!n.disableTouchKeyboard,delete n.disableTouchKeyboard),n.orientation){const P=n.orientation.toLowerCase().split(/\s+/g);r.orientation={x:P.find(j=>j==="left"||j==="right")||"auto",y:P.find(j=>j==="top"||j==="bottom")||"auto"},delete n.orientation}if("todayButtonMode"in n){switch(n.todayButtonMode){case 0:case 1:r.todayButtonMode=n.todayButtonMode}delete n.todayButtonMode}return Object.entries(n).forEach(([P,j])=>{j!==void 0&&P in Vo&&(r[P]=j)}),r}const jl={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};function Cg(e){return Object.keys(jl).reduce((i,n)=>{const r=e[n]===void 0?jl[n]:e[n],s=r&&r.key;if(!s||typeof s!="string")return i;const a={key:s,ctrlOrMetaKey:!!(r.ctrlOrMetaKey||r.ctrlKey||r.metaKey)};return s.length>1&&(a.altKey=!!r.altKey,a.shiftKey=!!r.shiftKey),i[n]=a,i},{})}const Hl=e=>e.map(i=>`<button type="button" class="%buttonClass% ${i}" tabindex="-1"></button>`).join(""),xg=Ho(`<div class="datepicker">
41  <div class="datepicker-picker">
42    <div class="datepicker-header">
43      <div class="datepicker-title"></div>
44      <div class="datepicker-controls">
45        ${Hl(["prev-button prev-btn","view-switch","next-button next-btn"])}
46      </div>
47    </div>
48    <div class="datepicker-main"></div>
49    <div class="datepicker-footer">
50      <div class="datepicker-controls">
51        ${Hl(["today-button today-btn","clear-button clear-btn"])}
52      </div>
53    </div>
54  </div>
55</div>`),kg=Ho(`<div class="days">
56  <div class="days-of-week">${un("span",7,{class:"dow"})}</div>
57  <div class="datepicker-grid">${un("span",42)}</div>
58</div>`),Ag=Ho(`<div class="week-numbers calendar-weeks">
59  <div class="days-of-week"><span class="dow"></span></div>
60  <div class="weeks">${un("span",6,{class:"week"})}</div>
61</div>`);class zo{constructor(i,n){Object.assign(this,n,{picker:i,element:ti('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!i.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(i){"pickLevel"in i&&(this.isMinView=this.id===i.pickLevel),this.setOptions(i),this.updateFocus(),this.updateSelection()}prepareForRender(i,n,r){this.disabled=[];const s=this.picker;s.setViewSwitchLabel(i),s.setPrevButtonDisabled(n),s.setNextButtonDisabled(r)}setDisabled(i,n){n.add("disabled"),wr(this.disabled,i)}performBeforeHook(i,n){let r=this.beforeShow(new Date(n));switch(typeof r){case"boolean":r={enabled:r};break;case"string":r={classes:r}}if(r){const s=i.classList;if(r.enabled===!1&&this.setDisabled(n,s),r.classes){const a=r.classes.split(/\s+/);s.add(...a),a.includes("disabled")&&this.setDisabled(n,s)}r.content&&yg(i,r.content)}}renderCell(i,n,r,s,{selected:a,range:o},c,l=[]){i.textContent=n,this.isMinView&&(i.dataset.date=s);const f=i.classList;if(i.className=`datepicker-cell ${this.cellClass}`,r<this.first?f.add("prev"):r>this.last&&f.add("next"),f.add(...l),(c||this.checkDisabled(s,this.id))&&this.setDisabled(s,f),o){const[d,h]=o;r>d&&r<h&&f.add("range"),r===d&&f.add("range-start"),r===h&&f.add("range-end")}a.includes(r)&&f.add("selected"),r===this.focused&&f.add("focused"),this.beforeShow&&this.performBeforeHook(i,s)}refreshCell(i,n,r,[s,a]){const o=i.classList;o.remove("range","range-start","range-end","selected","focused"),n>s&&n<a&&o.add("range"),n===s&&o.add("range-start"),n===a&&o.add("range-end"),r.includes(n)&&o.add("selected"),n===this.focused&&o.add("focused")}changeFocusedCell(i){this.grid.querySelectorAll(".focused").forEach(n=>{n.classList.remove("focused")}),this.grid.children[i].classList.add("focused")}}class Tg extends zo{constructor(i){super(i,{id:0,name:"days",cellClass:"day"})}init(i,n=!0){if(n){const r=ti(kg).firstChild;this.dow=r.firstChild,this.grid=r.lastChild,this.element.appendChild(r)}super.init(i)}setOptions(i){let n;if("minDate"in i&&(this.minDate=i.minDate),"maxDate"in i&&(this.maxDate=i.maxDate),i.checkDisabled&&(this.checkDisabled=i.checkDisabled),i.daysOfWeekDisabled&&(this.daysOfWeekDisabled=i.daysOfWeekDisabled,n=!0),i.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=i.daysOfWeekHighlighted),"todayHighlight"in i&&(this.todayHighlight=i.todayHighlight),"weekStart"in i&&(this.weekStart=i.weekStart,this.weekEnd=i.weekEnd,n=!0),i.locale){const r=this.locale=i.locale;this.dayNames=r.daysMin,this.switchLabelFormat=r.titleFormat,n=!0}if("beforeShowDay"in i&&(this.beforeShow=typeof i.beforeShowDay=="function"?i.beforeShowDay:void 0),"weekNumbers"in i)if(i.weekNumbers&&!this.weekNumbers){const r=ti(Ag).firstChild;this.weekNumbers={element:r,dow:r.firstChild,weeks:r.lastChild},this.element.insertBefore(r,this.element.firstChild)}else this.weekNumbers&&!i.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in i&&(this.getWeekNumber=i.getWeekNumber),"showDaysOfWeek"in i&&(i.showDaysOfWeek?(Zn(this.dow),this.weekNumbers&&Zn(this.weekNumbers.dow)):(Jn(this.dow),this.weekNumbers&&Jn(this.weekNumbers.dow))),n&&Array.from(this.dow.children).forEach((r,s)=>{const a=(this.weekStart+s)%7;r.textContent=this.dayNames[a],r.className=this.daysOfWeekDisabled.includes(a)?"dow disabled":"dow"})}updateFocus(){const i=new Date(this.picker.viewDate),n=i.getFullYear(),r=i.getMonth(),s=dn(n,r,1),a=Ii(s,this.weekStart,this.weekStart);this.first=s,this.last=dn(n,r+1,0),this.start=a,this.focused=this.picker.viewDate}updateSelection(){const{dates:i,rangepicker:n}=this.picker.datepicker;this.selected=i,n&&(this.range=n.dates)}render(){if(this.today=this.todayHighlight?Wi():void 0,this.prepareForRender(Ls(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const i=this.weekStart,n=Ii(this.first,i,i);Array.from(this.weekNumbers.weeks.children).forEach((r,s)=>{const a=ug(n,s);r.textContent=this.getWeekNumber(a,i),s>3&&r.classList[a>this.last?"add":"remove"]("next")})}Array.from(this.grid.children).forEach((i,n)=>{const r=cr(this.start,n),s=new Date(r),a=s.getDay(),o=[];this.today===r&&o.push("today"),this.daysOfWeekHighlighted.includes(a)&&o.push("highlighted"),this.renderCell(i,s.getDate(),r,r,this,r<this.minDate||r>this.maxDate||this.daysOfWeekDisabled.includes(a),o)})}refresh(){const i=this.range||[];Array.from(this.grid.children).forEach(n=>{this.refreshCell(n,Number(n.dataset.date),this.selected,i)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function Vl(e,i){if(!e||!e[0]||!e[1])return;const[[n,r],[s,a]]=e;if(!(n>i||s<i))return[n===i?r:-1,s===i?a:12]}class Sg extends zo{constructor(i){super(i,{id:1,name:"months",cellClass:"month"})}init(i,n=!0){n&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(ti(un("span",12,{"data-month":r=>r}))),this.first=0,this.last=11),super.init(i)}setOptions(i){if(i.locale&&(this.monthNames=i.locale.monthsShort),"minDate"in i)if(i.minDate===void 0)this.minYear=this.minMonth=this.minDate=void 0;else{const n=new Date(i.minDate);this.minYear=n.getFullYear(),this.minMonth=n.getMonth(),this.minDate=n.setDate(1)}if("maxDate"in i)if(i.maxDate===void 0)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const n=new Date(i.maxDate);this.maxYear=n.getFullYear(),this.maxMonth=n.getMonth(),this.maxDate=dn(this.maxYear,this.maxMonth+1,0)}i.checkDisabled&&(this.checkDisabled=this.isMinView||i.datesDisabled===null?i.checkDisabled:()=>!1),"beforeShowMonth"in i&&(this.beforeShow=typeof i.beforeShowMonth=="function"?i.beforeShowMonth:void 0)}updateFocus(){const i=new Date(this.picker.viewDate);this.year=i.getFullYear(),this.focused=i.getMonth()}updateSelection(){const{dates:i,rangepicker:n}=this.picker.datepicker;this.selected=i.reduce((r,s)=>{const a=new Date(s),o=a.getFullYear(),c=a.getMonth();return r[o]===void 0?r[o]=[c]:wr(r[o],c),r},{}),n&&n.dates&&(this.range=n.dates.map(r=>{const s=new Date(r);return isNaN(s)?void 0:[s.getFullYear(),s.getMonth()]}))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const i=this.selected[this.year]||[],n=this.year<this.minYear||this.year>this.maxYear,r=this.year===this.minYear,s=this.year===this.maxYear,a=Vl(this.range,this.year);
61Array.from(this.grid.children).forEach((o,c)=>{const l=hi(new Date(this.year,c,1),1,this.isRangeEnd);this.renderCell(o,this.monthNames[c],c,l,{selected:i,range:a},n||r&&c<this.minMonth||s&&c>this.maxMonth)})}refresh(){const i=this.selected[this.year]||[],n=Vl(this.range,this.year)||[];Array.from(this.grid.children).forEach((r,s)=>{this.refreshCell(r,s,i,n)})}refreshFocus(){this.changeFocusedCell(this.focused)}}function Dg(e){return[...e].reduce((i,n,r)=>i+=r?n:n.toUpperCase(),"")}class zl extends zo{constructor(i,n){super(i,n)}init(i,n=!0){n&&(this.navStep=this.step*10,this.beforeShowOption=`beforeShow${Dg(this.cellClass)}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(ti(un("span",12)))),super.init(i)}setOptions(i){if("minDate"in i&&(i.minDate===void 0?this.minYear=this.minDate=void 0:(this.minYear=Yi(i.minDate,this.step),this.minDate=dn(this.minYear,0,1))),"maxDate"in i&&(i.maxDate===void 0?this.maxYear=this.maxDate=void 0:(this.maxYear=Yi(i.maxDate,this.step),this.maxDate=dn(this.maxYear,11,31))),i.checkDisabled&&(this.checkDisabled=this.isMinView||i.datesDisabled===null?i.checkDisabled:()=>!1),this.beforeShowOption in i){const n=i[this.beforeShowOption];this.beforeShow=typeof n=="function"?n:void 0}}updateFocus(){const i=new Date(this.picker.viewDate),n=Yi(i,this.navStep),r=n+9*this.step;this.first=n,this.last=r,this.start=n-this.step,this.focused=Yi(i,this.step)}updateSelection(){const{dates:i,rangepicker:n}=this.picker.datepicker;this.selected=i.reduce((r,s)=>wr(r,Yi(s,this.step)),[]),n&&n.dates&&(this.range=n.dates.map(r=>{if(r!==void 0)return Yi(r,this.step)}))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>=this.maxYear),Array.from(this.grid.children).forEach((i,n)=>{const r=this.start+n*this.step,s=hi(new Date(r,0,1),2,this.isRangeEnd);i.dataset.year=r,this.renderCell(i,r,r,s,this,r<this.minYear||r>this.maxYear)})}refresh(){const i=this.range||[];Array.from(this.grid.children).forEach(n=>{this.refreshCell(n,Number(n.textContent),this.selected,i)})}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function Xi(e,i){const n={bubbles:!0,cancelable:!0,detail:{date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e}};e.element.dispatchEvent(new CustomEvent(i,n))}function cs(e,i){const{config:n,picker:r}=e,{currentView:s,viewDate:a}=r;let o;switch(s.id){case 0:o=as(a,i);break;case 1:o=ur(a,i);break;default:o=ur(a,i*s.navStep)}o=Ld(o,n.minDate,n.maxDate),r.changeFocus(o).render()}function jd(e){const i=e.picker.currentView.id;i!==e.config.maxView&&e.picker.changeView(i+1).render()}function Hd(e){e.setDate({clear:!0})}function Vd(e){const i=Wi();e.config.todayButtonMode===1?e.setDate(i,{forceRefresh:!0,viewDate:i}):e.setFocusedDate(i,!0)}function zd(e){const i=()=>{e.config.updateOnBlur?e.update({revert:!0}):e.refresh("input"),e.hide()},n=e.element;Os(n)?n.addEventListener("blur",i,{once:!0}):i()}function Wl(e,i){const n=e.picker,r=new Date(n.viewDate),s=n.currentView.id,a=s===1?as(r,i-r.getMonth()):ur(r,i-r.getFullYear());n.changeFocus(a).changeView(s-1).render()}function Mg(e){jd(e)}function Lg(e){cs(e,-1)}function Og(e){cs(e,1)}function Pg(e,i){const n=Bd(i,".datepicker-cell");if(!n||n.classList.contains("disabled"))return;const{id:r,isMinView:s}=e.picker.currentView,a=n.dataset;s?e.setDate(Number(a.date)):r===1?Wl(e,Number(a.month)):Wl(e,Number(a.year))}function Ig(e){e.preventDefault()}const Qs=["left","top","right","bottom"].reduce((e,i)=>(e[i]=`datepicker-orient-${i}`,e),{}),Ul=e=>e&&`${e}px`;function $l(e,i){if("title"in i&&(i.title?(e.controls.title.textContent=i.title,Zn(e.controls.title)):(e.controls.title.textContent="",Jn(e.controls.title))),i.prevArrow){const n=e.controls.prevButton;os(n),i.prevArrow.forEach(r=>{n.appendChild(r.cloneNode(!0))})}if(i.nextArrow){const n=e.controls.nextButton;os(n),i.nextArrow.forEach(r=>{n.appendChild(r.cloneNode(!0))})}if(i.locale&&(e.controls.todayButton.textContent=i.locale.today,e.controls.clearButton.textContent=i.locale.clear),"todayButton"in i&&(i.todayButton?Zn(e.controls.todayButton):Jn(e.controls.todayButton)),"minDate"in i||"maxDate"in i){const{minDate:n,maxDate:r}=e.datepicker.config;e.controls.todayButton.disabled=!jo(Wi(),n,r)}"clearButton"in i&&(i.clearButton?Zn(e.controls.clearButton):Jn(e.controls.clearButton))}function Yl(e){const{dates:i,config:n,rangeSideIndex:r}=e,s=i.length>0?qo(i):hi(n.defaultViewDate,n.pickLevel,r);return Ld(s,n.minDate,n.maxDate)}
61function Gl(e,i){!("_oldViewDate"in e)&&i!==e.viewDate&&(e._oldViewDate=e.viewDate),e.viewDate=i;const{id:n,year:r,first:s,last:a}=e.currentView,o=new Date(i).getFullYear();switch(n){case 0:return i<s||i>a;case 1:return o!==r;default:return o<s||o>a}}function ea(e){return window.getComputedStyle(e).direction}function Wd(e){const i=Nd(e);if(!(i===document.body||!i))return window.getComputedStyle(i).overflow!=="visible"?i:Wd(i)}class Fg{constructor(i){const{config:n,inputField:r}=this.datepicker=i,s=xg.replace(/%buttonClass%/g,n.buttonClass),a=this.element=ti(s).firstChild,[o,c,l]=a.firstChild.children,f=o.firstElementChild,[d,h,p]=o.lastElementChild.children,[g,v]=l.firstChild.children,y={title:f,prevButton:d,viewSwitch:h,nextButton:p,todayButton:g,clearButton:v};this.main=c,this.controls=y;const C=r?"dropdown":"inline";a.classList.add(`datepicker-${C}`),$l(this,n),this.viewDate=Yl(i),Ha(i,[[a,"mousedown",Ig],[c,"click",Pg.bind(null,i)],[y.viewSwitch,"click",Mg.bind(null,i)],[y.prevButton,"click",Lg.bind(null,i)],[y.nextButton,"click",Og.bind(null,i)],[y.todayButton,"click",Vd.bind(null,i)],[y.clearButton,"click",Hd.bind(null,i)]]),this.views=[new Tg(this),new Sg(this),new zl(this,{id:2,name:"years",cellClass:"year",step:1}),new zl(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[n.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),n.container?n.container.appendChild(this.element):r.after(this.element)}setOptions(i){$l(this,i),this.views.forEach(n=>{n.init(i,!1)}),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:i,element:n}=this,r=i.inputField;if(r){const s=ea(r);s!==ea(Nd(n))?n.dir=s:n.dir&&n.removeAttribute("dir"),this.place(),n.classList.add("active"),i.config.disableTouchKeyboard&&r.blur()}else n.classList.add("active");this.active=!0,Xi(i,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,Xi(this.datepicker,"hide"))}place(){const{classList:i,style:n}=this.element;n.display="block";const{width:r,height:s}=this.element.getBoundingClientRect(),a=this.element.offsetParent;n.display="";const{config:o,inputField:c}=this.datepicker,{left:l,top:f,right:d,bottom:h,width:p,height:g}=c.getBoundingClientRect();let{x:v,y}=o.orientation,C=l,T=f;if(a===document.body||!a)C+=window.scrollX,T+=window.scrollY;else{const H=a.getBoundingClientRect();C-=H.left-a.scrollLeft,T-=H.top-a.scrollTop}const _=Wd(c);let b=0,E=0,{clientWidth:L,clientHeight:P}=document.documentElement;if(_){const H=_.getBoundingClientRect();H.top>0&&(E=H.top),H.left>0&&(b=H.left),H.right<L&&(L=H.right),H.bottom<P&&(P=H.bottom)}let j=0;v==="auto"&&(l<b?(v="left",j=b-l):l+r>L?(v="right",L<d&&(j=L-d)):ea(c)==="rtl"?v=d-r<b?"left":"right":v="left"),v==="right"&&(C+=p-r),C+=j,y==="auto"&&(f-s>E?y=h+s>P?"top":"bottom":y="bottom"),y==="top"?T-=s:T+=g,i.remove(...Object.values(Qs)),i.add(Qs[v],Qs[y]),n.left=Ul(C),n.top=Ul(T)}setViewSwitchLabel(i){this.controls.viewSwitch.textContent=i}setPrevButtonDisabled(i){this.controls.prevButton.disabled=i}setNextButtonDisabled(i){this.controls.nextButton.disabled=i}changeView(i){const n=this.currentView;return i!==n.id&&(this._oldView||(this._oldView=n),this.currentView=this.views[i],this._renderMethod="render"),this}changeFocus(i){return this._renderMethod=Gl(this,i)?"render":"refreshFocus",this.views.forEach(n=>{n.updateFocus()}),this}update(i=void 0){const n=i===void 0?Yl(this.datepicker):i;return this._renderMethod=Gl(this,n)?"render":"refresh",this.views.forEach(r=>{r.updateFocus(),r.updateSelection()}),this}render(i=!0){const{currentView:n,datepicker:r,_oldView:s}=this,a=new Date(this._oldViewDate),o=i&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,n[o](),s&&(this.main.replaceChild(n.element,s.element),Xi(r,"changeView")),!isNaN(a)){const c=new Date(this.viewDate);c.getFullYear()!==a.getFullYear()&&Xi(r,"changeYear"),c.getMonth()!==a.getMonth()&&Xi(r,"changeMonth")}}}function Ud(e,i,n,r,s,a){if(jo(e,s,a)){if(r(e)){const o=i(e,n);return Ud(o,i,n,r,s,a)}return e}}function Ng(e,i,n){const r=e.picker,s=r.currentView,a=s.step||1;let o=r.viewDate,c;switch(s.id){case 0:o=cr(o,n?i*7:i),c=cr;break;case 1:o=as(o,n?i*4:i),c=as;break;default:o=ur(o,i*(n?4:1)*a),c=ur}o=Ud(o,c,i<0?-a:a,l=>s.disabled.includes(l),s.minDate,s.maxDate),o!==void 0&&r.changeFocus(o).render()}function Rg(e,i){const{config:n,picker:r,editMode:s}=e,a=r.active,{key:o,altKey:c,shiftKey:l}=i,f=i.ctrlKey||i.metaKey,d=()=>{i.preventDefault(),i.stopPropagation()};if(o==="Tab"){zd(e);return}
61if(o==="Enter"){if(!a)e.update();else if(s)e.exitEditMode({update:!0,autohide:n.autohide});else{const y=r.currentView;y.isMinView?e.setDate(r.viewDate):(r.changeView(y.id-1).render(),d())}return}const h=n.shortcutKeys,p={key:o,ctrlOrMetaKey:f,altKey:c,shiftKey:l},g=Object.keys(h).find(y=>{const C=h[y];return!Object.keys(C).find(T=>C[T]!==p[T])});if(g){let y;if(g==="toggle"?y=g:s?g==="exitEditMode"&&(y=g):a?g==="hide"?y=g:g==="prevButton"?y=[cs,[e,-1]]:g==="nextButton"?y=[cs,[e,1]]:g==="viewSwitch"?y=[jd,[e]]:n.clearButton&&g==="clearButton"?y=[Hd,[e]]:n.todayButton&&g==="todayButton"&&(y=[Vd,[e]]):g==="show"&&(y=g),y){Array.isArray(y)?y[0].apply(null,y[1]):e[y](),d();return}}if(!a||s)return;const v=(y,C)=>{l||f||c?e.enterEditMode():(Ng(e,y,C),i.preventDefault())};o==="ArrowLeft"?v(-1,!1):o==="ArrowRight"?v(1,!1):o==="ArrowUp"?v(-1,!0):o==="ArrowDown"?v(1,!0):(o==="Backspace"||o==="Delete"||o&&o.length===1&&!f)&&e.enterEditMode()}function Bg(e){e.config.showOnFocus&&!e._showing&&e.show()}function qg(e,i){const n=i.target;(e.picker.active||e.config.showOnClick)&&(n._active=Os(n),n._clicking=setTimeout(()=>{delete n._active,delete n._clicking},2e3))}function jg(e,i){const n=i.target;n._clicking&&(clearTimeout(n._clicking),delete n._clicking,n._active&&e.enterEditMode(),delete n._active,e.config.showOnClick&&e.show())}function Hg(e,i){i.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function Vg(e,i){const{element:n,picker:r}=e;if(!r.active&&!Os(n))return;const s=r.element;Bd(i,a=>a===n||a===s)||zd(e)}function $d(e,i){return e.map(n=>Ls(n,i.format,i.locale)).join(i.dateDelimiter)}function Yd(e,i,n=!1){if(i.length===0)return n?[]:void 0;const{config:r,dates:s,rangeSideIndex:a}=e,{pickLevel:o,maxNumberOfDates:c}=r;let l=i.reduce((f,d)=>{let h=qi(d,r.format,r.locale);return h===void 0||(h=hi(h,o,a),jo(h,r.minDate,r.maxDate)&&!f.includes(h)&&!r.checkDisabled(h,o)&&(o>0||!r.daysOfWeekDisabled.includes(new Date(h).getDay()))&&f.push(h)),f},[]);if(l.length!==0)return r.multidate&&!n&&(l=l.reduce((f,d)=>(s.includes(d)||f.push(d),f),s.filter(f=>!l.includes(f)))),c&&l.length>c?l.slice(c*-1):l}function us(e,i=3,n=!0,r=void 0){const{config:s,picker:a,inputField:o}=e;if(i&2){const c=a.active?s.pickLevel:s.startView;a.update(r).changeView(c).render(n)}i&1&&o&&(o.value=$d(e.dates,s))}function Kl(e,i,n){const r=e.config;let{clear:s,render:a,autohide:o,revert:c,forceRefresh:l,viewDate:f}=n;a===void 0&&(a=!0),a?o===void 0&&(o=r.autohide):o=l=!1,f=qi(f,r.format,r.locale);const d=Yd(e,i,s);!d&&!c||(d&&d.toString()!==e.dates.toString()?(e.dates=d,us(e,a?3:1,!0,f),Xi(e,"changeDate")):us(e,l?3:1,!0,f),o&&e.hide())}function Xl(e,i){return i?n=>Ls(n,i,e.config.locale):n=>new Date(n)}class qt{constructor(i,n={},r=void 0){i.datepicker=this,this.element=i,this.dates=[];const s=this.config=Object.assign({buttonClass:n.buttonClass&&String(n.buttonClass)||"button",container:null,defaultViewDate:Wi(),maxDate:void 0,minDate:void 0},Zs(Vo,this));let a;if(i.tagName==="INPUT"?(a=this.inputField=i,a.classList.add("datepicker-input"),n.container&&(s.container=n.container instanceof HTMLElement?n.container:document.querySelector(n.container))):s.container=i,r){const d=r.inputs.indexOf(a),h=r.datepickers;if(d<0||d>1||!Array.isArray(h))throw Error("Invalid rangepicker object.");h[d]=this,this.rangepicker=r,this.rangeSideIndex=d}this._options=n,Object.assign(s,Zs(n,this)),s.shortcutKeys=Cg(n.shortcutKeys||{});const o=Il(i.value||i.dataset.date,s.dateDelimiter);delete i.dataset.date;const c=Yd(this,o);c&&c.length>0&&(this.dates=c),a&&(a.value=$d(this.dates,s));const l=this.picker=new Fg(this),f=[i,"keydown",Rg.bind(null,this)];a?Ha(this,[f,[a,"focus",Bg.bind(null,this)],[a,"mousedown",qg.bind(null,this)],[a,"click",jg.bind(null,this)],[a,"paste",Hg.bind(null,this)],[document,"mousedown",Vg.bind(null,this)],[window,"resize",l.place.bind(l)]]):(Ha(this,[f]),this.show())}static formatDate(i,n,r){return Ls(i,n,r&&Sn[r]||Sn.en)}static parseDate(i,n,r){return qi(i,n,r&&Sn[r]||Sn.en)}static get locales(){return Sn}get active(){return!!(this.picker&&this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(i){const n=Zs(i,this);Object.assign(this._options,i),Object.assign(this.config,n),this.picker.setOptions(n),us(this,3)}show(){if(this.inputField){const{config:i,inputField:n}=this;if(n.disabled||n.readOnly&&!i.enableOnReadonly)return;!Os(n)&&!i.disableTouchKeyboard&&(this._showing=!0,n.focus(),delete this._showing)}this.picker.show()}
61hide(){this.inputField&&(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),wg(this),this.picker.detach();const i=this.element;return i.classList.remove("datepicker-input"),delete i.datepicker,this}getDate(i=void 0){const n=Xl(this,i);if(this.config.multidate)return this.dates.map(n);if(this.dates.length>0)return n(this.dates[0])}setDate(...i){const n=[...i],r={},s=qo(i);s&&typeof s=="object"&&!Array.isArray(s)&&!(s instanceof Date)&&Object.assign(r,n.pop());const a=Array.isArray(n[0])?n[0]:n;Kl(this,a,r)}update(i=void 0){if(!this.inputField)return;const n=Object.assign(i||{},{clear:!0,render:!0,viewDate:void 0}),r=Il(this.inputField.value,this.config.dateDelimiter);Kl(this,r,n)}getFocusedDate(i=void 0){return Xl(this,i)(this.picker.viewDate)}setFocusedDate(i,n=!1){const{config:r,picker:s,active:a,rangeSideIndex:o}=this,c=r.pickLevel,l=qi(i,r.format,r.locale);l!==void 0&&(s.changeFocus(hi(l,c,o)),a&&n&&s.changeView(c),s.render())}refresh(i=void 0,n=!1){i&&typeof i!="string"&&(n=i,i=void 0);let r;i==="picker"?r=2:i==="input"?r=1:r=3,us(this,r,!n)}enterEditMode(){const i=this.inputField;!i||i.readOnly||!this.picker.active||this.editMode||(this.editMode=!0,i.classList.add("in-edit"))}exitEditMode(i=void 0){if(!this.inputField||!this.editMode)return;const n=Object.assign({update:!1},i);delete this.editMode,this.inputField.classList.remove("in-edit"),n.update&&this.update(n)}}var Jl;(function(e){Jl=function(){yh(),e('button[type="submit"]').find("span").addClass("hidden"),e('button[type="submit"]').find("svg").removeClass("hidden")},e(document).on("submit","form",function(i){Jl()})})(jQuery);function zg(){vh(),$('button[type="submit"]').find("span").removeClass("hidden"),$('button[type="submit"]').find("svg").addClass("hidden")}if(window.location.pathname.includes("being-human-conversation-cards")){var Wo=document.querySelector("form[data-freeform]");Wo.addEventListener("freeform-ajax-after-submit",function(e){const i=document.querySelector('input[name="howManyPacks"]'),n=document.getElementById("bh-card-price"),r=document.querySelector('input[name="paymentAmount"]');if(i&&n){let s=function(o){return o=Math.max(0,o),o===0?0:o>=1&&o<=4?o*8:o===5?37:o>=6&&o<=10?37+(o-5)*7:0},a=function(){let o=parseInt(i.value,10)||0;const c=Math.min(Math.max(o,0),10);c!==o&&(i.value=c);const f=s(c).toFixed(2);n.textContent=f,r&&(r.value=f)};a(),i.addEventListener("input",a),i.addEventListener("change",a)}})}if(window.location.pathname.includes("discovering-jesus/payment-form")){var Wo=document.querySelector("form[data-freeform]");Wo.addEventListener("freeform-ajax-after-submit",function(i){const n=document.querySelector('input[name="smallPackQuantity"]'),r=document.querySelector('input[name="largePackQuantity"]'),s=document.querySelector('input[name="extraBookQuantity"]'),a=document.getElementById("order-total-price"),o=document.querySelector('input[name="paymentAmount"]'),c=2,l=12,f=1;if(n&&r&&s&&a){let d=function(p,g,v){p=Math.max(0,p),g=Math.max(0,g),v=Math.max(0,v);const y=p*c,C=g*l,T=v*f;return y+C+T},h=function(){const p=parseInt(n.value,10)||0,g=parseInt(r.value,10)||0,v=parseInt(s.value,10)||0,C=d(p,g,v).toFixed(2);a.textContent=C,o&&(o.value=C)};h(),n.addEventListener("input",h),n.addEventListener("change",h),r.addEventListener("input",h),r.addEventListener("change",h),s.addEventListener("input",h),s.addEventListener("change",h)}})}var Wg="2.0.0",fn="",Zl="?",ds="function",ci="undefined",hn="object",Va="string",dr="major",ee="model",J="name",X="type",te="vendor",Z="version",at="architecture",Qi="console",ve="mobile",Ie="tablet",Je="smarttv",zn="wearable",ta="xr",za="embedded",Dn="inapp",Ql="user-agent",Wa=500,Uo="brands",Ai="formFactors",$o="fullVersionList",rn="platform",Yo="platformVersion",Ps="bitness",bi="sec-ch-ua",Ug=bi+"-full-version-list",$g=bi+"-arch",Yg=bi+"-"+Ps,Gg=bi+"-form-factors",Kg=bi+"-"+ve,Xg=bi+"-"+ee,Gd=bi+"-"+rn,Jg=Gd+"-version",Kd=[Uo,$o,ve,ee,rn,Yo,at,Ai,Ps],ct="browser",Wt="cpu",Dt="device",Yt="engine",ht="os",sn="result",Pr="Amazon",Mn="Apple",ec="ASUS",tc="BlackBerry",Ei="Google",ic="Huawei",nc="Lenovo",Zg="Honor",ia="LG",$r="Microsoft",rc="Motorola",Ln="Samsung",sc="Sharp",Ir="Sony",na="Xiaomi",ra="Zebra",Gi="Mobile ",On=" Browser",ac="Chrome",si="Chromecast",Qg="Edge",Pn="Firefox",In="Opera",oc="Facebook",lc="Sogou",Ua="Windows",ey=typeof window!==ci,ot=ey&&window.navigator?window.navigator:void 0,ai=ot&&ot.userAgentData?ot.userAgentData:void 0,ty=function(e,i){var n={},r=i;if(!fs(i)){r={};for(var s in i)for(var a in i[s])r[a]=i[s][a].concat(r[a]?r[a]:[])}for(var o in e)n[o]=r[o]&&r[o].length%2===0?r[o].concat(e[o]):e[o];return n},Is=function(e){for(var i={},n=0;n<e.length;n++)i[e[n].toUpperCase()]=e[n];return i},$a=function(e,i){if(typeof e===hn&&e.length>0){for(var n in e)if(Gt(e[n])==Gt(i))return!0;return!1}return _n(e)?Gt(i).indexOf(Gt(e))!==-1:!1},fs=function(e,i){for(var n in e)return/^(browser|cpu|device|engine|os)$/.test(n)||(i?fs(e[n]):!1)},_n=function(e){return typeof e===Va},sa=function(e){if(e){for(var i=[],n=ji(/\\?\"/g,e).split(","),r=0;r<n.length;r++)if(n[r].indexOf(";")>-1){var s=fr(n[r]).split(";v=");i[r]={brand:s[0],version:s[1]}}else i[r]=fr(n[r]);return i}},Gt=function(e){return _n(e)?e.toLowerCase():e},aa=function(e){return _n(e)?ji(/[^\d\.]/g,e).split(".")[0]:void 0},Kt=function(e){for(var i in e){var n=e[i];typeof n==hn&&n.length==2?this[n[0]]=n[1]:this[n]=void 0}return this},ji=function(e,i){return _n(i)?i.replace(e,fn):i},Fn=function(e){return ji(/\\?\"/g,e)},fr=function(e,i){if(_n(e))return e=ji(/^\s\s*/,e),typeof i===ci?e:e.substring(0,Wa)},cc=function(e,i){if(!(!e||!i))for(var n=0,r,s,a,o,c,l;n<i.length&&!c;){var f=i[n],d=i[n+1];for(r=s=0;r<f.length&&!c&&f[r];)if(c=f[r++].exec(e),c)for(a=0;a<d.length;a++)l=c[++s],o=d[a],typeof o===hn&&o.length>0?o.length===2?typeof o[1]==ds?this[o[0]]=o[1].call(this,l):this[o[0]]=o[1]:o.length===3?typeof o[1]===ds&&!(o[1].exec&&o[1].test)?this[o[0]]=l?o[1].call(this,l,o[2]):void 0:this[o[0]]=l?l.replace(o[
vendor: 4,224 bytes, line 61
611],o[2]):void 0:o.length===4&&(this[o[0]]=l?o[3].call(this,l.replace(o[1],o[2])):void 0):this[o]=l||void 0;n+=2}},Qn=function(e,i){for(var n in i)if(typeof i[n]===hn&&i[n].length>0){for(var r=0;r<i[n].length;r++)if($a(i[n][r],e))return n===Zl?void 0:n}else if($a(i[n],e))return n===Zl?void 0:n;return i.hasOwnProperty("*")?i["*"]:e},uc={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2","8.1":"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},dc={embedded:"Automotive",mobile:"Mobile",tablet:["Tablet","EInk"],smarttv:"TV",wearable:"Watch",xr:["VR","XR"],"?":["Desktop","Unknown"],"*":void 0},fc={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[Z,[J,Gi+"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[Z,[J,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[J,Z],[/opios[\/ ]+([\w\.]+)/i],[Z,[J,In+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[Z,[J,In+" GX"]],[/\bopr\/([\w\.]+)/i],[Z,[J,In]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[Z,[J,"Baidu"]],[/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i],[Z,[J,"Maxthon"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i,/(heytap|ovi|115)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[J,Z],[/quark(?:pc)?\/([-\w\.]+)/i],[Z,[J,"Quark"]],[/\bddg\/([\w\.]+)/i],[Z,[J,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[Z,[J,"UCBrowser"]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[Z,[J,"WeChat"]],[/konqueror\/([\w\.]+)/i],[Z,[J,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[Z,[J,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[Z,[J,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[Z,[J,"Smart "+nc+On]],[/(avast|avg)\/([\w\.]+)/i],[[J,/(.+)/,"$1 Secure"+On],Z],[/\bfocus\/([\w\.]+)/i],[Z,[J,Pn+" Focus"]],[/\bopt\/([\w\.]+)/i],[Z,[J,In+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[Z,[J,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[Z,[J,"Dolphin"]],[/coast\/([\w\.]+)/i],[Z,[J,In+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[Z,[J,"MIUI"+On]],[/fxios\/([\w\.-]+)/i],[Z,[J,Gi+Pn]],[/\bqihoobrowser\/?([\w\.]*)/i],[Z,[J,"360"]],[/\b(qq)\/([\w\.]+)/i],[[J,/(.+)/,"$1Browser"],Z],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[J,/(.+)/,"$1"+On],Z],[/samsungbrowser\/([\w\.]+)/i],[Z,[J,Ln+" Internet"]],[/metasr[\/ ]?([\d\.]+)/i],[Z,[J,lc+" Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[J,lc+" Mobile"],Z],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i],[J,Z],[/(lbbrowser|rekonq)/i],[J],[/ome\/([\w\.]+) \w* ?(iron) saf/i,/ome\/([\w\.]+).+qihu (360)[es]e/i],[Z,J],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[J,oc],Z,[X,Dn]],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(instagram|snapchat)[\/ ]([-\w\.]+)/i],[J,Z,[X,Dn]],[/\bgsa\/([\w\.]+) .*safari\//i],[Z,[J,"GSA"],[X,Dn]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[Z,[J,"TikTok"],[X,Dn]],[/\[(linkedin)app\]/i],[J,[X,Dn]],[/(chromium)[\/ ]([-\w\.]+)/i],[J,Z],[/headlesschrome(?:\/([\w\.]+)| )/i],[Z,[J,ac+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[J,ac+" WebView"],Z],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[Z,[J,"Android"+On]],[/chrome\/([\w\.]+) mobile/i],[Z,[J,Gi+"Chrome"]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[J,Z],[/version\/([\w\.\,]+) .*mobile(?:\/\w+ | ?)safari/i],[Z,[J,Gi+"Safari"]],[/iphone .*mobile(?:\/\w+ | ?)safari/i],[[J,Gi+"Safari"]],[/version\/([\w\.\,]+) .*(safari)/i],[Z,J],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[J,[Z,"1"]],[/(webkit|khtml)\/([\w\.]+)/i],[J,Z],[/(?:mobile|tablet);
61.*(firefox)\/([\w\.-]+)/i],[[J,Gi+Pn],Z],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[J,"Netscape"],Z],[/(wolvic|librewolf)\/([\w\.]+)/i],[J,Z],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[Z,[J,Pn+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/\b(links) \(([\w\.]+)/i],[J,[Z,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[J,[Z,/[^\d\.]+./,fn]]],cpu:[[/\b(?:(amd|x|x86[-_]?|wow|win)64)\b/i],[[at,"amd64"]],[/(ia32(?=;))/i,/((?:i[346]|x)86)[;\)]/i],[[at,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[at,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[at,"armhf"]],[/windows (ce|mobile); ppc;/i],[[at,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[at,/ower/,fn,Gt]],[/(sun4\w)[;\)]/i],[[at,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[at,Gt]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[ee,[te,Ln],[X,Ie]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[ee,[te,Ln],[X,ve]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[ee,[te,Mn],[X,ve]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[ee,[te,Mn],[X,Ie]],[/(macintosh);/i],[ee,[te,Mn]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[ee,[te,sc],[X,ve]],[/(?:honor)([-\w ]+)[;\)]/i],[ee,[te,Zg],[X,ve]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[ee,[te,ic],[X,Ie]],[/(?:huawei)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[ee,[te,ic],[X,ve]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[ee,/_/g," "],[te,na],[X,ve]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[ee,/_/g," "],[te,na],[X,Ie]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[ee,[te,"OPPO"],[X,ve]],[/\b(opd2\d{3}a?) bui/i],[ee,[te,"OPPO"],[X,Ie]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[ee,[te,"Vivo"],[X,ve]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[ee,[te,"Realme"],[X,ve]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[ee,[te,rc],[X,ve]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[ee,[te,rc],[X,Ie]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[ee,[te,ia],[X,Ie]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[ee,[te,ia],[X,ve]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[ee,[te,nc],[X,Ie]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[ee,/_/g," "],[te,"Nokia"],[X,ve]],[/(pixel c)\b/i],[ee,[te,Ei],[X,Ie]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[ee,[te,Ei],[X,ve]],[/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[ee,[te,Ir],[X,ve]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[ee,"Xperia Tablet"],[te,Ir],[X,Ie]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[ee,[te,"OnePlus"],[X,ve]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[ee,[te,Pr],[X,Ie]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[ee,/(.+)/g,"Fire Phone $1"],[te,Pr],[X,ve]],[/(playbook);[-\w\),; ]+(rim)/i],[ee,te,[X,Ie]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[ee,[te,tc],[X,ve]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[ee,[te,ec],[X,Ie]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[ee,[te,ec],[X,ve]],[/(nexus 9)/i],[ee,[te,"HTC"],[X,Ie]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[te,[ee,/_/g," "],[X,ve]],[/tcl (xess p17aa)/i,/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])(_\w(\w|\w\w)
vendor: 4,070 bytes, line 61
61)?(\)| bui)/i],[ee,[te,"TCL"],[X,Ie]],[/droid [\w\.]+; (418(?:7d|8v)|5087z|5102l|61(?:02[dh]|25[adfh]|27[ai]|56[dh]|59k|65[ah])|a509dl|t(?:43(?:0w|1[adepqu])|50(?:6d|7[adju])|6(?:09dl|10k|12b|71[efho]|76[hjk])|7(?:66[ahju]|67[hw]|7[045][bh]|71[hk]|73o|76[ho]|79w|81[hks]?|82h|90[bhsy]|99b)|810[hs]))(_\w(\w|\w\w))?(\)| bui)/i],[ee,[te,"TCL"],[X,ve]],[/(itel) ((\w+))/i],[[te,Gt],ee,[X,Qn,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[ee,[te,"Acer"],[X,Ie]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[ee,[te,"Meizu"],[X,ve]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[ee,[te,"Ulefone"],[X,ve]],[/; (energy ?\w+)(?: bui|\))/i,/; energizer ([\w ]+)(?: bui|\))/i],[ee,[te,"Energizer"],[X,ve]],[/; cat (b35);/i,/; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i],[ee,[te,"Cat"],[X,ve]],[/((?:new )?andromax[\w- ]+)(?: bui|\))/i],[ee,[te,"Smartfren"],[X,ve]],[/droid.+; (a(?:015|06[35]|142p?))/i],[ee,[te,"Nothing"],[X,ve]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i,/; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[te,ee,[X,ve]],[/(imo) (tab \w+)/i,/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i],[te,ee,[X,Ie]],[/(surface duo)/i],[ee,[te,$r],[X,Ie]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[ee,[te,"Fairphone"],[X,ve]],[/(shield[\w ]+) b/i],[ee,[te,"Nvidia"],[X,Ie]],[/(sprint) (\w+)/i],[te,ee,[X,ve]],[/(kin\.[onetw]{3})/i],[[ee,/\./g," "],[te,$r],[X,ve]],[/droid.+; ([c6]+|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[ee,[te,ra],[X,Ie]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[ee,[te,ra],[X,ve]],[/smart-tv.+(samsung)/i],[te,[X,Je]],[/hbbtv.+maple;(\d+)/i],[[ee,/^/,"SmartTV"],[te,Ln],[X,Je]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[te,ia],[X,Je]],[/(apple) ?tv/i],[te,[ee,Mn+" TV"],[X,Je]],[/crkey.*devicetype\/chromecast/i],[[ee,si+" Third Generation"],[te,Ei],[X,Je]],[/crkey.*devicetype\/([^/]*)/i],[[ee,/^/,"Chromecast "],[te,Ei],[X,Je]],[/fuchsia.*crkey/i],[[ee,si+" Nest Hub"],[te,Ei],[X,Je]],[/crkey/i],[[ee,si],[te,Ei],[X,Je]],[/droid.+aft(\w+)( bui|\))/i],[ee,[te,Pr],[X,Je]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[ee,[te,sc],[X,Je]],[/(bravia[\w ]+)( bui|\))/i],[ee,[te,Ir],[X,Je]],[/(mitv-\w{5}) bui/i],[ee,[te,na],[X,Je]],[/Hbbtv.*(technisat) (.*);/i],[te,ee,[X,Je]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[te,fr],[ee,fr],[X,Je]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[X,Je]],[/(ouya)/i,/(nintendo) (\w+)/i],[te,ee,[X,Qi]],[/droid.+; (shield) bui/i],[ee,[te,"Nvidia"],[X,Qi]],[/(playstation \w+)/i],[ee,[te,Ir],[X,Qi]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[ee,[te,$r],[X,Qi]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[ee,[te,Ln],[X,zn]],[/((pebble))app/i],[te,ee,[X,zn]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[ee,[te,Mn],[X,zn]],[/droid.+; (wt63?0{2,3})\)/i],[ee,[te,ra],[X,zn]],[/droid.+; (glass) \d/i],[ee,[te,Ei],[X,ta]],[/(pico) (4|neo3(?: link|pro)?)/i],[te,ee,[X,ta]],[/; (quest( \d| pro)?)/i],[ee,[te,oc],[X,ta]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[te,[X,za]],[/(aeobc)\b/i],[ee,[te,Pr],[X,za]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[ee,[X,ve]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[ee,[X,Ie]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[X,Ie]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[X,ve]],[/(android[-\w\. ]{0,9});.+buil/i],[ee,[te,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[Z,[J,Qg+"HTML"]],[/(arkweb)\/([\w\.]+)/i],[J,Z],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[Z,[J,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[J,Z],[/rv\
vendor: 4,583 bytes, line 61
61:([\w\.]{1,9})\b.+(gecko)/i],[Z,J]],os:[[/microsoft (windows) (vista|xp)/i],[J,Z],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[J,[Z,Qn,uc]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[Z,Qn,uc],[J,Ua]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[Z,/_/g,"."],[J,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[J,"macOS"],[Z,/_/g,"."]],[/android ([\d\.]+).*crkey/i],[Z,[J,si+" Android"]],[/fuchsia.*crkey\/([\d\.]+)/i],[Z,[J,si+" Fuchsia"]],[/crkey\/([\d\.]+).*devicetype\/smartspeaker/i],[Z,[J,si+" SmartSpeaker"]],[/linux.*crkey\/([\d\.]+)/i],[Z,[J,si+" Linux"]],[/crkey\/([\d\.]+)/i],[Z,[J,si]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[Z,J],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[J,Z],[/\(bb(10);/i],[Z,[J,tc]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[Z,[J,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[Z,[J,Pn+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[Z,[J,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[Z,[J,"watchOS"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[J,"Chrome OS"],Z],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) (\w+)/i,/(xbox); +xbox ([^\);]+)/i,/(pico) .+os([\w\.]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[J,Z],[/(sunos) ?([\w\.\d]*)/i],[[J,"Solaris"],Z],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[J,Z]]},Fr=function(){var e={init:{},isIgnore:{},isIgnoreRgx:{},toString:{}};return Kt.call(e.init,[[ct,[J,Z,dr,X]],[Wt,[at]],[Dt,[X,ee,te]],[Yt,[J,Z]],[ht,[J,Z]]]),Kt.call(e.isIgnore,[[ct,[Z,dr]],[Yt,[Z]],[ht,[Z]]]),Kt.call(e.isIgnoreRgx,[[ct,/ ?browser$/i],[ht,/ ?os$/i]]),Kt.call(e.toString,[[ct,[J,Z]],[Wt,[at]],[Dt,[te,ee]],[Yt,[J,Z]],[ht,[J,Z]]]),e}(),iy=function(e,i){var n=Fr.init[i],r=Fr.isIgnore[i]||0,s=Fr.isIgnoreRgx[i]||0,a=Fr.toString[i]||0;function o(){Kt.call(this,n)}return o.prototype.getItem=function(){return e},o.prototype.withClientHints=function(){return ai?ai.getHighEntropyValues(Kd).then(function(c){return e.setCH(new Xd(c,!1)).parseCH().get()}):e.parseCH().get()},o.prototype.withFeatureCheck=function(){return e.detectFeature().get()},i!=sn&&(o.prototype.is=function(c){var l=!1;for(var f in this)if(this.hasOwnProperty(f)&&!$a(r,f)&&Gt(s?ji(s,this[f]):this[f])==Gt(s?ji(s,c):c)){if(l=!0,c!=ci)break}else if(c==ci&&l){l=!l;break}return l},o.prototype.toString=function(){var c=fn;for(var l in a)typeof this[a[l]]!==ci&&(c+=(c?" ":fn)+this[a[l]]);return c||ci}),ai||(o.prototype.then=function(c){var l=this,f=function(){for(var h in l)l.hasOwnProperty(h)&&(this[h]=l[h])};f.prototype={is:o.prototype.is,toString:o.prototype.toString};var d=new f;return c(d),d}),new o};function Xd(e,i){if(e=e||{},Kt.call(this,Kd),i)Kt.call(this,[[Uo,sa(e[bi])],[$o,sa(e[Ug])],[ve,/\?1/.test(e[Kg])],[ee,Fn(e[Xg])],[rn,Fn(e[Gd])],[Yo,Fn(e[Jg])],[at,Fn(e[$g])],[Ai,sa(e[Gg])],[Ps,Fn(e[Yg])]]);else for(var n in e)this.hasOwnProperty(n)&&typeof e[n]!==ci&&(this[n]=e[n])}function hc(e,i,n,r){return this.get=function(s){return s?this.data.hasOwnProperty(s)?this.data[s]:void 0:this.data},this.set=function(s,a){return this.data[s]=a,this},this.setCH=function(s){return this.uaCH=s,this},this.detectFeature=function(){if(ot&&ot.userAgent==this.ua)switch(this.itemType){case ct:ot.brave&&typeof ot.brave.isBrave==ds&&this.set(J,"Brave");break;case Dt:!this.get(X)&&ai&&ai[ve]&&this.set(X,ve),this.get(ee)=="Macintosh"&&ot&&typeof ot.standalone!==ci&&ot.maxTouchPoints&&ot.maxTouchPoints>2&&this.set(ee,"iPad").set(X,Ie);break;case ht:!this.get(J)&&ai&&ai[rn]&&this.set(J,ai[rn]);break;case sn:var s=this.data,a=function(o){return s[o].getItem().detectFeature
61().get()};this.set(ct,a(ct)).set(Wt,a(Wt)).set(Dt,a(Dt)).set(Yt,a(Yt)).set(ht,a(ht))}return this},this.parseUA=function(){return this.itemType!=sn&&cc.call(this.data,this.ua,this.rgxMap),this.itemType==ct&&this.set(dr,aa(this.get(Z))),this},this.parseCH=function(){var s=this.uaCH,a=this.rgxMap;switch(this.itemType){case ct:var o=s[$o]||s[Uo],c;if(o)for(var l in o){var f=ji(/(Google|Microsoft) /,o[l].brand||o[l]),d=o[l].version;!/not.a.brand/i.test(f)&&(!c||/chrom/i.test(c)&&!/chromi/i.test(f))&&(this.set(J,f).set(Z,d).set(dr,aa(d)),c=f)}break;case Wt:var h=s[at];h&&(h&&s[Ps]=="64"&&(h+="64"),cc.call(this.data,h+";",a));break;case Dt:if(s[ve]&&this.set(X,ve),s[ee]&&this.set(ee,s[ee]),s[ee]=="Xbox"&&this.set(X,Qi).set(te,$r),s[Ai]){var p;if(typeof s[Ai]!="string")for(var g=0;!p&&g<s[Ai].length;)p=Qn(s[Ai][g++],dc);else p=Qn(s[Ai],dc);this.set(X,p)}break;case ht:var v=s[rn];if(v){var y=s[Yo];v==Ua&&(y=parseInt(aa(y),10)>=13?"11":"10"),this.set(J,v).set(Z,y)}this.get(J)==Ua&&s[ee]=="Xbox"&&this.set(J,"Xbox").set(Z,void 0);break;case sn:var C=this.data,T=function(_){return C[_].getItem().setCH(s).parseCH().get()};this.set(ct,T(ct)).set(Wt,T(Wt)).set(Dt,T(Dt)).set(Yt,T(Yt)).set(ht,T(ht))}return this},Kt.call(this,[["itemType",e],["ua",i],["uaCH",r],["rgxMap",n],["data",iy(this,e)]]),this}function Ft(e,i,n){if(typeof e===hn?(fs(e,!0)?(typeof i===hn&&(n=i),i=e):(n=e,i=void 0),e=void 0):typeof e===Va&&!fs(i,!0)&&(n=i,i=void 0),n&&typeof n.append===ds){var r={};n.forEach(function(l,f){r[f]=l}),n=r}if(!(this instanceof Ft))return new Ft(e,i,n).getResult();var s=typeof e===Va?e:n&&n[Ql]?n[Ql]:ot&&ot.userAgent?ot.userAgent:fn,a=new Xd(n,!0),o=i?ty(fc,i):fc,c=function(l){return l==sn?function(){return new hc(l,s,o,a).set("ua",s).set(ct,this.getBrowser()).set(Wt,this.getCPU()).set(Dt,this.getDevice()).set(Yt,this.getEngine()).set(ht,this.getOS()).get()}:function(){return new hc(l,s,o[l],a).parseUA().get()}};return Kt.call(this,[["getBrowser",c(ct)],["getCPU",c(Wt)],["getDevice",c(Dt)],["getEngine",c(Yt)],["getOS",c(ht)],["getResult",c(sn)],["getUA",function(){return s}],["setUA",function(l){return _n(l)&&(s=l.length>Wa?fr(l,Wa):l),this}]]).setUA(s),this}Ft.VERSION=Wg;Ft.BROWSER=Is([J,Z,dr,X]);Ft.CPU=Is([at]);Ft.DEVICE=Is([ee,te,X,Qi,ve,Je,Ie,zn,za]);Ft.ENGINE=Ft.OS=Is([J,Z]);Oc(ut);window.UAParser=Ft;var jt=1,he=ut("form#join-us-form"),Ne=3,Ht="New membership sign up",oa={page1:!1,page2:!1,page3:!1,page4:!1},pc=Date.now(),Ci,la=null,xt=!1,kt,Nr,ca;let Hi=window.csrfTokenName||null,Vi=window.csrfTokenValue||null;const Go=(e={})=>{e.csrfTokenName?Hi=e.csrfTokenName:window.csrfTokenName&&(Hi=window.csrfTokenName),e.csrfTokenValue?Vi=e.csrfTokenValue:window.csrfTokenValue&&(Vi=window.csrfTokenValue)},mc=e=>{Array.isArray(e)&&Hi&&Vi&&e.push({name:Hi,value:Vi})},ny=e=>(Hi&&Vi&&(e[Hi]=Vi),e);Go();(!Hi||!Vi)&&typeof window.refreshCsrfContext=="function"&&window.refreshCsrfContext().then(()=>{Go()}).catch(()=>{});window.addEventListener("eauk:user-data",e=>{Go(e.detail||{})});function ry(e){var i=document.getElementById(e).value;if(i.length==0)return!0;var n=/^(((\+44\s?\d{4}|\(?0\d{4}\)?)\s?\d{3}\s?\d{3})|((\+44\s?\d{3}|\(?0\d{3}\)?)\s?\d{3}\s?\d{4})|((\+44\s?\d{2}|\(?0\d{2}\)?)\s?\d{4}\s?\d{4}))(\s?\#(\d{4}|\d{3}))?$/;return!!n.test(i)}(function(e){if(he.length!=0){let f=function(){e(".join-us-error").addClass("hidden"),e(".join-us-error .message").html("")},d=function(M){e(".join-us-error").removeClass("hidden"),e(".join-us-error .message").html(M),e("html, body").animate({scrollTop:e(".join-us-error").offset().top-10},200)},v=function(M){M==="individual"?(h.addClass("bg-primary-200 text-white").removeClass("bg-white text-primary-200"),p.removeClass("bg-primary-200 text-white").addClass("bg-white text-primary-200"),g.val("0")):M==="couple"&&(p.addClass("bg-primary-200 text-white").removeClass("bg-white text-primary-200"),h.removeClass("bg-primary-200 text-white").addClass("bg-white text-primary-200"),g.val("1")),g.trigger("change")},y=function(M){var N=he.find(".section-"+M),O=N.find("input,select,textarea,radio,checkbox"),F=!0;if(e(".person-2-required").addClass("hidden"),O.each(function(){var Y=e(this).parsley(),z=Y.validate();if(e(this).next(".error-message"),e(this).hasClass("select2-hidden-accessible")){var K=e(this).next(".select2-container");z!==!0?K.addClass("error"):K.removeClass("error")}if(e(this).attr("name")=="phone"&&ry(e(this).attr("id"))==!1&&(z=!1,e(this).parsley().removeError("custom",{updateClass:!0}),e(this).parsley().addError("custom",{message:"Please enter a valid phone number"})),e("#coupleJoin").val()==="1"&&e(this).attr("name")=="person2_email"&&e(this).val()==e("#email").val()&&(e(this).parsley().removeError("custom",{updateClass:!0}),e(this).parsley().addError("custom",{message:"Please enter a different email address to person 1"}),z=!1),z!==!0){e(this).on("input",function(){e(this).parsley().isValid()&&(e(this).removeClass("border-red-500 parsley-error is-invalid").addClass("is-valid"),e(this).siblings(".error-message, .parsley-errors-list").remove())}),e(this).attr("name").startsWith("person2")&&e(".person-2-required").removeClass("hidden");var ue=e(this).attr("name");if(ue=="address1_line1"||ue=="address1_postalcode"){e('input[name="address_search"]').addClass("border-red-500");var ne=e('input[name="address_search"]');ne.parsley().removeError("custom"),ne.parsley().addError("custom",{message:"Please select an address"}),ne.on("input",function(){e(this).removeClass("border-red-500 parsley-error is-invalid").addClass("is-valid"),e(this).siblings(".error-message, .parsley-errors-list").remove()}),F=!1}else F=!1,e(this).addClass("border-red-500")}else e(this).removeClass("border-red-500")}),F)return f(),!0;var D="Please fill in all of the required fields.";return d(D),!1},C=function(M){M==1?he.find(".steps").addClass("hidden").removeClass("sm:flex"):xt||he.find(".steps").removeClass("hidden").addClass("hidden sm:flex");var N=he.find(".steps").find("[data-page]");N.find(".flex").removeClass("bg-primary-400 text-white rounded p-2");var O=N.filter(function(){return parseInt(e(this).attr("data-page"))<M});O.addClass("cursor-pointer text-primary-200 hover:opacity-75"),O.find(".flex").find(".indicator").html('<svg xmlns="http://www.w3.org/2000/svg" fill="currentColor" aria-hidden="true" class="w-4 h-4 mr-2 sm:w-5 sm:h-5" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M10 18a8 8 0 1 0 0-16 8 8 0 0 0 0 16zm3.707-9.293a1 1 0 0 0-1.414-1.414L9 10.586 7.707 9.293a1 1 0 0 0-1.414 1.414l2 2a1 1 0 0 0 1.414 0l4-4z" clip-rule="evenodd"/></svg>');var F=N.filter(function(){return parseInt(e(this).attr("data-page"))>=M});F.removeClass("cursor-pointer text-primary-200 hover:opacity-75"),F.each(function(Y,z){e(this).find(".flex").find(".indicator").html('<span class="mr-2">'+parseInt(e(this).attr("data-page"))+"</span>")});var D=he.find(".steps").find('[data-page="'+M+'"]');D.find(".flex").addClass("bg-primary-400 text-white rounded p-2")},T=function(M){var N={day:"numeric",month:"long",year:"numeric"},Y=M.toLocaleDateString("en-US",N),O=M.getDate(),F=M.toLocaleStr
61ing("default",{month:"long"}),D=M.getFullYear(),Y=O+" "+F+" "+D;return Y},_=function(M,N){if(!(M>0&&M<6)||N&&!y(jt))return!1;f(),he.find(".section").addClass("hidden"),he.find(".section-"+M).removeClass("hidden");var O=jt;jt=M,he.data("page",M);var F=he.find(".section-"+jt);if(F.find("input, select").each(function(){e(this).parsley().reset(),e(this).removeClass("border-red-500")}),console.log(""),console.log("Go to page: "+M),console.log("prevPage: "+Nr),console.log("currentPage: "+jt),jt<6&&(he.find(".section").addClass("hidden"),he.find(".section-"+M).removeClass("hidden"),e("html, body").animate({scrollTop:e(".sections").offset().top-10},200),jt=M,he.data("page",M),setTimeout(function(k){zg()},500)),kt=M,Nr=kt-1,ca=kt+1,C(kt),kt==2&&(e(".membership-page").addClass("hidden"),L()),kt==3&&he.find(".dd-amount").text(Ne.toLocaleString("en-GB",{style:"currency",currency:"GBP"})),kt==4){if(he.find(".confirm-title").text(e("#title").find("option:selected").text()),he.find(".confirm-firstname").text(e("#firstName").val()),he.find(".confirm-lastname").text(e("#lastName").val()),he.find(".confirm-sex").text(e("#gender").find("option:selected").text()),he.find(".confirm-dob").text(e("#dob").val()),he.find(".confirm-email").text(e("#email").val()),he.find(".confirm-phone").text(e("#phone").val()),e("#coupleJoin").val()==="1"?(e(".confirm-person2").removeClass("hidden"),he.find(".confirm-person2-title").text(e("#person2_title").find("option:selected").text()),he.find(".confirm-person2-firstname").text(e("#person2_firstName").val()),he.find(".confirm-person2-lastname").text(e("#person2_lastName").val()),he.find(".confirm-person2-sex").text(e("#person2_gender").find("option:selected").text()),he.find(".confirm-person2-dob").text(e("#person2_dob").val()),he.find(".confirm-person2-email").text(e("#person2_email").val()),he.find(".confirm-gift-aid-payer").text(e("#taxpayer").find("option:selected").text())):e(".confirm-person2").addClass("hidden"),he.find(".confirm-address-name").text(e("#address1_name").val()),he.find(".confirm-address-1").text(e("#address1_line1").val()),he.find(".confirm-address-2").text(e("#address1_line2").val()),he.find(".confirm-address-3").text(e("#address1_line3").val()),he.find(".confirm-city").text(e("#address1_city").val()),he.find(".confirm-postcode").text(e("#address1_postalcode").val()),e("#gift_aid").is(":checked"))if(he.find(".confirm-gift-aid").text("Yes"),he.find(".gift-aid-date").removeClass("hidden"),e("#giftaid_startdate").val()!=""){var D=e("#giftaid_startdate").val(),Y=D.split("-"),z=parseInt(Y[0]),K=parseInt(Y[1])-1,ue=parseInt(Y[2]),ne=new Date(z,K,ue),se=T(ne);he.find(".confirm-gift-aid-start-date").text(se)}else{var de=new Date,fe=de.getFullYear(),Ee=fe-4,lt=new Date(Ee,3,6),se=T(lt);he.find(".confirm-gift-aid-start-date").text(se)}else he.find(".confirm-gift-aid").text("No"),he.find(".gift-aid-date").addClass("hidden");he.find(".confirm-account-holder").text(e("#accountname").val()),he.find(".confirm-account-number").text(e("#accountnumber").val()),he.find(".confirm-sort-code").text(e("#sortcode").val())}e(".membership-type-addition").addClass("hidden"),kt==1?(e("#join-us-form").removeClass("sm:w-full").addClass("lg:w-6/12"),Ci==="bothlives"?e(".membership-type-addition.bothlives").removeClass("hidden"):Ci==="publicleadership"?e(".membership-type-addition.publicleadership").removeClass("hidden"):la&&e(".membership-type-addition.video").removeClass("hidden")):kt==2&&e("#join-us-form").removeClass("lg:w-6/12").addClass("sm:w-full"),M<O&&E(M-1),kt>=2&&(b(Nr),pc=Date.now())},b=function(M){if(!oa["page"+M]){var N=Date.now(),O=(N-pc)/1e3;if(Oe("paperless_dd",Ht,"Interaction","Page "+M,O,!1),console.log("Tracked page "+M+" after "+O+" seconds"),M==1)console.log("begin_checkout"),window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"begin_checkout",step_number:1,membership_type:"personal membership",page_referrer:document.referrer||"direct"});else if(M==2){if(Ne)var F="Default";else var F="Custom";if(e("#coupleJoin").val()==="1")var D="Couple";else var D="Individual";if(e("#gift_aid").is(":checked"))var Y="True";else var Y="False";window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"details_step",step_number:2,membership_type:"personal membership",page_referrer:document.referrer||"direct",membership_option:D,donation_amount_type:F,currency:"GBP",value:Ne,gift_aid_status:Y,ecommerce:{currency:"GBP",value:Ne,items:[{item_name:"Personal Membership",item_category:D,price:Ne,quantity:1}]}})}else if(M==3){if(Ne)var F="Default";else var F="Custom";if(e("#coupleJoin").val()==="1")var D="Couple";else var D="Individual";if(e("#gift_aid").is(":checked"))var Y="True";else var Y="False";window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"add_payment_info",step_number:3,membership_type:"personal membership",page_referrer:document.referrer||"direct",membership_option:D,donation_amount_type:F,currency:"GBP",value:Ne,gift_aid_status:Y,ecommerce:{currency:"GBP",value:Ne,items:[{item_name:"Personal Membership",item_category:D,price:Ne,quantity:1}]}})}oa["page"+M]=!0}},E=function(M){for(let N=M+1;N<=4;N++)oa["page"+N]=!1},L=function(){console.log("Update gift aid amounts with donationAmount: "+Ne),he.find(".donation-amt").text(Ne.toLocaleStr
61ing("en-GB",{style:"currency",currency:"GBP"})),he.find(".giftaid-amt").text(parseFloat(Ne*1.25).toLocaleString("en-GB",{style:"currency",currency:"GBP"})),xt?he.find('button[name="next"][value="page3"]').text("Join us today"):he.find('button[name="next"][value="page3"]').text("Next >")},P=function(){const M=e(".loader"),N=e(window).height(),O=M.outerHeight(),F=M.offset().top-(N-O)/2;e("html, body").scrollTop(F),e(".loading-screen").removeClass("hidden"),e(".loading-screen .loading-message").html("Please wait, checking your details");const D=e(".loading-message"),Y=D.outerHeight(),z=D.offset().top-(N-Y)/2;e("html, body").scrollTop(z)},j=function(){e(".loading-screen").addClass("hidden")},H=function(){e(".donation-prompt-step-1").removeClass("hidden"),e(".donation-prompt-step-2").addClass("hidden"),e(".donation-prompt").removeClass("hidden")},q=function(){e(".donation-prompt").addClass("hidden")},U=function(){function M(se){const de=he.find('[name="'+se+'"]');if(!de.length)return"";if(de.is(":radio")||de.is(":checkbox")){const fe=de.filter(":checked");return fe.length?((fe.val()||"")+"").trim():""}return de.is("select")?de.find("option:selected").text().trim()||((de.val()||"")+"").trim():((de.first().val()||"")+"").trim()}const N=[],O=function(se,de){de&&N.push(se+": "+de)},F=(M("firstName")+" "+M("lastName")).trim(),D=function(se){return he.find('[name="'+se+'"]').is(":checked")?"Yes":"No"};O("Membership type",M("membership_type")),O("Title",M("title")),O("Name",F),O("Email",M("email")),O("Phone",M("phone")),O("Date of birth",M("dob")),O("Gender",M("gender")),O("Headlines email",D("headlines_contact1"));const Y=["address1_line1","address1_line2","address1_line3","address1_city","address1_county","address1_postalcode"].map(M).filter(Boolean);if(Y.length&&N.push("Address: "+Y.join(", ")),e("#coupleJoin").val()==="1"){N.push(""),N.push("Second member:");const se=function(de,fe){fe&&N.push("  "+de+": "+fe)};se("Title",M("person2_title")),se("Name",(M("person2_firstName")+" "+M("person2_lastName")).trim()),se("Email",M("person2_email")),se("Date of birth",M("person2_dob")),se("Gender",M("person2_gender")),se("Headlines email",D("headlines_contact2")),N.push("")}let z=M("source");const K=M("other_source");K&&(z=z?z+" - "+K:K),O("How I heard about EA",z);const ue="Free membership request"+(F?" - "+F:""),ne=`Hi,
62
63I'd like to set up free membership. Here are the details I entered on the website:
64
65`+N.join(`
66`)+`
67
68Thank you.`;return"mailto:[email protected]?subject="+encodeURIComponent(ue)+"&body="+encodeURIComponent(ne)},Q=function(M){I(M).then(N=>{var O=N.success;if(O){j();var F=null;N.contact.py3_recordnumber&&(e("#contact-num").html(N.contact.py3_recordnumber),F=N.contact.py3_recordnumber),e(".sections").addClass("hidden"),e(".confirmation.success").removeClass("hidden"),xt&&e(".confirmation .direct-debit").addClass("hidden");let D;e("#coupleJoin").val()==="1"?(D="Couple",Oe("paperless_dd",Ht,"New member","New joint member",Ne,!1)):(D="Individual",Oe("paperless_dd",Ht,"New member","New member",Ne,!1));const Y=Ne?"Default":"Custom",z=e("#gift_aid").is(":checked")?"True":"False";F||(F="M_"+Math.floor(Math.random()*1e6)),window.dataLayer=window.dataLayer||[],window.dataLayer.push({ecommerce:null}),window.dataLayer.push({event:"purchase",step_number:4,membership_type:"personal membership",page_referrer:document.referrer||"direct",membership_option:D,donation_amount_type:Y,currency:"GBP",value:Ne,gift_aid_status:z,ecommerce:{transaction_id:F,currency:"GBP",value:Ne,items:[{item_name:"Personal Membership",item_category:D,price:Ne,quantity:1}]}}),window.dataLayer.push({event:"newMember",event_value:parseInt(Ne,10)})}else O||(j(),N.contact&&e("#error-contact-num").html(" referencing number "+N.contact),e(".sections").addClass("hidden"),e(".confirmation.error").removeClass("hidden"),Oe("paperless_dd",Ht,"Creation failure","Unknown error",null,!1))}).catch(()=>{j(),e(".sections").addClass("hidden"),e(".confirmation.error").removeClass("hidden"),Oe("paperless_dd",Ht,"Creation failure","Unknown error",null,!1)})},V=function(){const M=he.data("page");if(M===2&&xt)return H(),!1;if(M===4)return y(M)&&(P(),S().then(N=>{if(N.success===!0){e(".loading-screen .loading-message").html("Details verified, setting up your Direct Debit");const O=he.serializeArray();O.forEach(F=>{F.name==="sortcode"&&(F.value=F.value.replace(/-/g,""))}),mc(O),Q(O)}else N.success===!1?(j(),d('<strong>Bank verification failed</strong><br>Sorry, your bank details have not passed our verification tests.<br>If you think this is a mistake, please <a class="underline hover:no-underline" href="/contact-us">contact us</a>.'),Oe("paperless_dd",Ht,"Verification failure","Bank verification failed",null,!1),console.log("We have a error"),N.errors?B("bank_verification_failed",N.errors):B("bank_verification_failed","Bank verification failed - no response error")):(console.log("We have a problem"),Oe("paperless_dd",Ht,"Verification failure","Unknown error",null,!1),B("bank_verification_failed","Bank verification failed - other unknown"))}).catch(N=>{Oe("paperless_dd",Ht,"Verification failure","Unknown error",null,!1),B("bank_verification_failed","Unknown error"),d('<strong>Something went wrong</strong><br>Sorry, something went wrong. Please try again. If you continue to get this error message, please <a class="underline hover:no-underline" href="/contact-us">contact us</a>.'),console.log(N)})),!1;Nr=M-1,ca=M+1,_(ca,!0)},B=function(M,N){console.log("Save error session");const O=he.serializeArray();O.forEach((F,D)=>{(F.name==="sortcode"||F.name==="accountnumber")&&O.splice(D,1)}),mc(O),O.push({name:"errorType",value:M}),O.push({name:"errorDetails",value:N}),e.ajax({type:"POST",url:"/actions/eauk-general/paperless/save-error",data:O}).done(function(F){console.log("Error posted")}).fail(function(F){console.log("Error posting error")})};const o=document.querySelector('input[name="dob"]');var i=new Date,n=new Date;n.setFullYear(i.getFullYear()-100);var r=new Date;r.setFullYear(i.getFullYear()-18);
68var s=!1,a={format:"dd/mm/yyyy",format:{toValue(M){e(this);let N;if(s=!0,M.match(/^\d{2}\/\d{2}\/\d{4}$/))N=new Date(qt.parseDate(M,"dd/mm/yyyy","en")),s=!1;else if(M.match(/^\d{2}\/\d{2}\/\d{2}$/)){N=new Date(qt.parseDate(M,"dd/mm/yy","en"));const O=N.getFullYear();N.setFullYear(O+(O<50?2e3:1900))}else if(M.match(/^\d{1}\/\d{1}\/\d{2}$/)){N=new Date(qt.parseDate(M,"d/m/yy","en"));const O=N.getFullYear();N.setFullYear(O+(O<50?2e3:1900))}else if(M.match(/^\d{1}\/\d{2}\/\d{2}$/)){N=new Date(qt.parseDate(M,"d/mm/yy","en"));const O=N.getFullYear();N.setFullYear(O+(O<50?2e3:1900))}else if(M.match(/^\d{2}\/\d{1}\/\d{2}$/)){N=new Date(qt.parseDate(M,"dd/m/yy","en"));const O=N.getFullYear();N.setFullYear(O+(O<50?2e3:1900))}else N=new Date(qt.parseDate(M,"dd/m/yy","en")),s=!1;return N},toDisplay(M){return qt.formatDate(M,"dd/mm/yyyy","en")}},minDate:n,maxDate:r};const c=new qt(o,a);console.log("datepicker"),console.log(c),o.addEventListener("changeDate",function(M){e(this).siblings(".parsley-errors-list").remove(),s&&e(this).after('<ul class="parsley-errors-list filled" id="parsley-id-16" aria-hidden="false"><li class="parsley-custom-error-message text-yellow-500	">Please check the date of birth entered</li></ul>')});const l=document.querySelector('input[name="person2_dob"]');new qt(l,a),l.addEventListener("changeDate",function(M){e(this).siblings(".parsley-errors-list").remove(),s&&e(this).after('<ul class="parsley-errors-list filled" id="parsley-id-16" aria-hidden="false"><li class="parsley-custom-error-messag text-yellow-500	">Please check the date of birth entered</li></ul>')}),e(document).on("keydown",".select2-title,.select2-person2-title",function(M){M.originalEvent&&M.which==40&&(M.preventDefault(),e(this).siblings("select").select2("open"))}),e(".select2-title,.select2-person2-title").select2({dropdownAutoWidth:!0,width:"100%",selectOnClose:!0}),e(document).on("click",".manual-address",function(M){e('input[name="address1_line1"]').attr("required","required")}),e("#coupleJoin").change(function(){console.log("CoupleJoin change event fired! Current value:",e(this).val()),e("#coupleJoin").val()==="1"?(e(".couple").removeClass("hidden"),e("#person2_title").attr("data-parsley-required","true"),e("#person2_firstName").attr("data-parsley-required","true"),e("#person2_lastName").attr("data-parsley-required","true")):(e(".couple").addClass("hidden"),e("#person2_title").attr("data-parsley-required","false"),e("#person2_firstName").attr("data-parsley-required","false"),e("#person2_lastName").attr("data-parsley-required","false"))});const h=e(".type-of-membership .individualbtn"),p=e(".type-of-membership .couplebtn"),g=e("#coupleJoin");console.log(g.val()),g.val()==="1"?v("couple"):v("individual"),h.on("click",function(){console.log("Individual button clicked"),v("individual")}),p.on("click",function(){console.log("Couple button clicked"),v("couple")}),e(document).ready(function(){var M=rt("utm_source"),N=rt("utm_campaign"),O=rt("utm_medium"),F=!1;M==="speaking_engagement"||M==="speaker"?(N=N.replace(/_/g," ").replace(/\w\S*/g,function(ne){return ne.charAt(0).toUpperCase()+ne.substr(1).toLowerCase()}),e("#source").find('option[value="Speaker"]').prop("selected",!0),e("#source").trigger("change"),e("#speaker").find("option").each(function(){if(e(this).val()===N)return e(this).prop("selected",!0),!1}),N=="opc"&&(e("#source").find('option[value="project"]').prop("selected",!0).trigger("change"),e("#project").find('option[value="One People Commission"]').prop("selected",!0)),F=!0):M==="talkingjesus"?(e("#source").find('option[value="Talking Jesus"]').prop("selected",!0).trigger("change"),F=!0):O==="event"?(e("#source").find('option[value="Event"]').prop("selected",!0).trigger("change"),F=!0):O==="social"||O&&O.toLowerCase().indexOf("social")!==-1||M==="ig"||M==="fb"||M==="facebook"||M==="instagram"?(e("#source").find('option[value="Social media"]').prop("selected",!0).trigger("change"),F=!0):O==="organic"||O==="cpc"?(e("#source").find('option[value="Search engine"]').prop("selected",!0).trigger("change"),F=!0):M=="team"&&(e("#source").find('option[value="other"]').prop("selected",!0).trigger("change"),N&&e("#other_source").val(N),F=!0),F&&(e("#source_container").addClass("hidden"),e("#other_source_container").addClass("hidden"),e("#speakerOptions").addClass("hidden"),e("#eventOptions").addClass("hidden"),e("#projectOptions").addClass("hidden"),e("#podcastOptions").addClass("hidden"),e("#source").attr("data-parsley-required","false"),e("#other_source").attr("data-parsley-required","false"),e("#speaker").attr("data-parsley-required","false"),e("#event").attr("data-parsley-required","false"),e("#project").attr("data-parsley-required","false"),e("#podcast").attr("data-parsley-required","false"));const D=new Ft;var Y=document.cookie.split("; ").find(ne=>ne.startsWith("_ga="));if(Y){var z=Y.split("=")[1].split(".").slice(2).join(".");document.getElementById("gaClientId").value=z}const K=D.getBrowser(),ue=D.getOS();document.getElementById("browser").value=K.name+" "+K.version,document.getElementById("operatingSystem").value=ue.name+" "+ue.version,document.getElementById("utm_campaign").value=rt("utm_campaign")||"",document.getElementById("utm_medium").value=rt("utm_medium")||"",document.getElementById("utm_source").value=rt("utm_source")||"",document.getElementById("utm_term").value=rt("utm_term")||"",document.getElementById("utm_c
68ontent").value=rt("utm_content")||"",Ci=rt("membership_type"),Ci&&(e("#membership_type").val(Ci),Ci==="bothlives"?e(".membership-type-addition.bothlives").removeClass("hidden"):Ci==="publicleadership"&&e(".membership-type-addition.publicleadership").removeClass("hidden")),la=he.data("video"),la&&e(".membership-type-addition.video").removeClass("hidden")}),e("#source").change(function(){e(this).val()=="Speaker"?(e("#speakerOptions").removeClass("hidden"),e("#speaker").attr("data-parsley-required","true")):(e("#speakerOptions").addClass("hidden"),e("#speaker").attr("data-parsley-required","false")),e(this).val()=="Event"?(e("#eventOptions").removeClass("hidden"),e("#event").attr("data-parsley-required","true")):(e("#eventOptions").addClass("hidden"),e("#event").attr("data-parsley-required","false")),e(this).val()=="project"?(e("#projectOptions").removeClass("hidden"),e("#project").attr("data-parsley-required","true")):(e("#projectOptions").addClass("hidden"),e("#project").attr("data-parsley-required","false")),e(this).val()=="podcast"?(e("#podcastOptions").removeClass("hidden"),e("#podcast").attr("data-parsley-required","true")):(e("#podcastOptions").addClass("hidden"),e("#podcast").attr("data-parsley-required","false")),e(this).val()=="other"?(e("#other_source_container").removeClass("hidden"),e("#other_source").attr("data-parsley-required","true")):(e("#other_source_container").addClass("hidden"),e("#other_source").attr("data-parsley-required","false"))}),e(document).on("click",".steps li",function(M){page=e(this).data("page"),page<jt&&_(page,!1)}),e(document).on("input",'input[name="other_amount"]',function(M){if(e(this).val()!=""){he.find('input[name="donation_amount"]').prop("checked",!1);var N=parseFloat(e(this).val());N<=0?xt=!0:xt=!1}}),e('input[name="other_amount"]').on("keydown",function(M){(M.which===38||M.which===40)&&e(this).attr("step",1)}).on("focus",function(){e(this).attr("step",1)}).on("blur",function(){e(this).attr("step",.01),e(this).val()==""&&e(this).val(0)}),e(document).on("click",'input[name="donation_amount"]',function(M){e(this).is(":checked")&&(he.find('input[name="other_amount"]').val(""),Ne=parseFloat(e(this).val()),Ne<=0?(xt=!0,e(".giftaid").addClass("hidden")):(xt=!1,e(".giftaid").removeClass("hidden")),L())}),e(document).on("click",'input[name="gift_aid"]',function(M){if(e(".giftaid_choose").addClass("hidden"),e(this).is(":checked")&&e("#coupleJoin").val()==="1"){var N=e("#title").find("option:selected").text(),O=e("#person2_title").find("option:selected").text(),F=N+" "+e("#firstName").val()+" "+e("#lastName").val(),D=O+" "+e("#person2_firstName").val()+" "+e("#person2_lastName").val();e("#taxpayer").html('<option value="person1">'+F+'</option><option value="person2">'+D+"</option>"),e(".giftaid_choose").removeClass("hidden")}}),e(document).on("input",'input[name="accountnumber"]',function(M){let N=e(this).val().replace(/[^0-9]/g,"").substr(0,8);e(this).val(N)}),e(document).on("keydown",'input[name="sortcode"]',function(M){const N=[8,9,46,35,36,37,39,109,189],O=Array.from({length:10},(Y,z)=>z+48),F=Array.from({length:10},(Y,z)=>z+96);if([...N,...O,...F].includes(M.keyCode))return!0;M.preventDefault()}),e(document).on("input",'input[name="sortcode"]',function(){let M=e(this).val().replace(/[^0-9]/g,"").substr(0,6),N="";for(let O=0;O<M.length;O++)O>0&&O%2===0&&(N+="-"),N+=M[O];e(this).val(N)}),e(document).on("click",".donation-prompt-yes",function(M){q(),he.find('input[name="other_amount"]').val(""),he.find('input[name="donation_amount"]').first().prop("checked",!0).trigger("click");const N=e(".section-2-section.donation");N.length&&e("html, body").animate({scrollTop:N.offset().top-10},200)}),e(document).on("click",".donation-prompt-no",function(M){const N=U();e(".donation-prompt-step-2 a[href^='mailto:']").attr("href",N),e(".donation-prompt-step-1").addClass("hidden"),e(".donation-prompt-step-2").removeClass("hidden")}),e(document).on("click",".donation-prompt-close",function(M){q()}),e(document).on("click",".donation-prompt",function(M){M.target===this&&q()}),e(document).on("keydown",function(M){M.keyCode===27&&!e(".donation-prompt").hasClass("hidden")&&q()}),e(document).on("click",'button[name="next"]',M=>(V(),!1)),e(document).on("click",'button[name="back"]',M=>(_(jt-1,!1),!1)),e(document).on("input",'input[name="other_amount"]',function(){e(this).val()==0?(xt=!0,e(".free-membership-contact").removeClass("hidden"),e(".giftaid").addClass("hidden")):(xt=!1,e(".free-membership-contact").addClass("hidden"),e(".giftaid").removeClass("hidden")),Ne=parseFloat(e(this).val()),L()}),e(document).on("keydown",'input[name="other_amount"]',function(M){if(M.keyCode==13)return V(),!1});const S=()=>new Promise(async(M,N)=>{const F=e("#dob").val().split("/"),D=ny({Personal:{PersonalDetails:{Title:e('input[name="title"]').val(),Forename:e('input[name="firstName"]').val(),Surname:e('input[name="lastName"]').val(),DOBDay:F[0],DOBMonth:F[1],DOBYear:F[2]}},Addresses:{CurrentAddress:{Country:"United Kingdom",AddressLine1:e('input[name="address1_line1"]').val(),AddressLine2:e('input[name="address1_line2"]').val(),AddressLine3:e('input[name="address1_line3"]').val(),AddressLine4:e('input[name="address1_city"]').val(),ZipPostcode:e('input[name="address1_postalcode"]').val()}},BankingDetails:{BankAccount:{SortCode:e('input[name="sortcode"]').val().replace(/-/g,""),AccountNumber:e('input[name="accountnumber"]').val()}}});try{const Y=await e.ajax({type:"POST",url:"/actions/eauk-general/paperless/verify",data:JSON.stringify(D),contentType:"application/json",dataType:"json"});M(Y)}catch{B("bank_verification_failed","Failed to send AJAX request"),console.log("Error: Failed to send AJAX request."),d('<strong>Something went wrong</strong><br>Your bank details have not passed our verification test due to an error.<br>Please try again. If you continue to encounter this error please <a class="underline hover:no-underline" href="/contact-us">contact us</a>.'),N("Error: Failed to send AJAX request.")}}),I=M=>new Promise((N,O)=>{e.ajax({type:"POST",url:"/actions/eauk-general/dynamics/create-new-member",data:M}).done(F=>{N(F)}).fail(F=>{Oe("paperless_dd",Ht,"Verification failure","Unknown error",null,!1),B("create_member_failed","Error: Failed to send AJAX request for member."),d('<strong>Something went wrong</strong><br>Your bank details have passed our verification test, but we failed to set up your membership.<br>Please try again. If you continue to encounter this error please <a class="underline hover:no-underline" href="/contact-us">contact us</a>.'),console.log("Error: Failed to send AJAX request for member."),O("Error: Failed to send AJAX request for member.")})})}})(jQuery);var gc,sy=400,gt,Nn="address1",ay=$(".address_search"),oy=$("form[has-afd-membership]");(function(e){if(oy.length){let a=function(c){o(c,".address-search-results[data-target="+Nn+"]","#address_status")}
68,o=function(c,l,f,h){var h=h||0;console.log("address_results",l);var p=c.val().trim();if(p!=""){h==0&&e(l).empty();var g=e("<div></div>",{class:"p-3 text-center",id:"address_loading",html:'<i class="far fa-spinner fa-lg fa-pulse"></i><p class="mt-2 block text-sm">Searching</p>'});e(l).before(g);var v="/actions/eauk-general/default/get-address?address="+encodeURIComponent(p);e.ajax({url:v}).done(function(y){var C=y.Item;if(gt=C,e("#address_loading").remove(),C)e.each(C,function(_,b){var H=[b.Organisation,b.Property,b.Street,b.Locality,b.Town,b.PostalCounty,b.Postcode].filter(U=>U).join(", ").replace(/,+/g,", ").replace(/^, /,"");H=H.replaceAll(p,'<span class="font-bold">'+p+"</span>");var q='<li data-address="'+_+'" class="cursor-pointer px-5 py-2 rounded-lg hover:bg-gray-50"><h3 class="text-gray-900 font-medium text-md mb-0">'+H+"</h3></li>";e(l).append(q),e(".address-search-results-container[data-target="+Nn+"]").removeClass("hidden")});else{var T='<li class="cursor-pointer px-5 py-2 rounded-lg hover:bg-gray-50"><h3 class="text-gray-900 font-medium text-md mb-0 no-address">No address found. Click here to enter your address manually.</h3></li>';e(l).append(T),e(".address-search-results-container[data-target="+Nn+"]").removeClass("hidden")}}).fail(function(y){g.remove(),e(f).text("Error occurred"),e(l).text("Error occurred")})}};const r=new Date;["form-input-contact1EmailConsent","form-input-primaryContactEmailConsent","form-input-seniorMinisterEmailConsent","form-input-referee1EmailConsent","form-input-referee2EmailConsent","form-input-churchEmailConsent","form-input-contact1PhoneConsent","form-input-primaryContactPhoneConsent","form-input-seniorMinisterPhoneConsent","form-input-referee1PhoneConsent","form-input-referee2PhoneConsent","form-input-churchPhoneConsent","form-input-contact1MailConsent","form-input-primaryContactMailConsent","form-input-seniorMinisterMailConsent","form-input-referee1MailConsent","form-input-referee2MailConsent","form-input-churchMailConsent"].forEach(c=>{const l=document.getElementById(c);l&&(l.value=r.toISOString().slice(0,-8))}),ay.each(function(){e(this).keyup(function(){Nn=e(this).data("target"),console.log("address_target",Nn),clearTimeout(gc),e(this).val()&&e(this).val().length>3&&(gc=setTimeout(()=>a(e(this)),sy))}),e(this).click(function(){e(this).val()&&a(e(this))})}),e(document).on("click",".address-search-results li",function(c){c.preventDefault();var l=e(this).parent().parent().data("target")?e(this).parent().parent().data("target"):"address1",f=e(this).data("address");if(e(this).find(".no-address").length>0){e(".address-search-results-container").addClass("hidden"),e("[data-field-container="+l+"Group]").removeClass("hidden");return}e("#form-input-"+l+"AddressLatitude").val(gt[f].Latitude||""),e("#form-input-"+l+"AddressLongitude").val(gt[f].Longitude||""),e("#form-input-"+l+"AddressArea").val(gt[f].EERName||""),e("#form-input-"+l+"Name").val(gt[f].Organisation||""),e("#form-input-"+l+"AddressLine1").val(gt[f].Property||""),e("#form-input-"+l+"AddressLine2").val(gt[f].Street||""),e("#form-input-"+l+"AddressLine3").val(gt[f].Locality||""),e("#form-input-"+l+"AddressCity1").val(gt[f].Town||""),e("#form-input-"+l+"AddressCounty").val(gt[f].PostalCounty||""),e("#form-input-"+l+"AddressPostcode").val(gt[f].Postcode||""),e(".address-search-results-container").addClass("hidden"),e("[data-field-container="+l+"Group]").removeClass("hidden")});var i="",n="";e("#check-bank-details").click(function(){i=e("#form-input-acciuntNumber").val(),n=e("#form-input-branchSortCode").val(),i&&n&&(console.log("check 2"),e(".bank-results").removeClass("hidden"),e.get("https://pce.afd.co.uk/afddata.pce",{data:"bank",serial:"831775",password:"ucEo0dG8",task:"account",clearing:"all",fields:"account",sortcode:n,accountnumber:i,format:"json"}).done(function(c){c.Result==="1"?e(".bank-results").removeClass("border-red-500").addClass("border-green-500").html("Success: The account number and sort code are valid."):e(".bank-results").removeClass("border-green-500").addClass("border-red-500").html("Failure: "+c.ErrorText)}).fail(function(){e(".bank-results").html("Failure: The request could not be completed.")}))})}})(jQuery);document.querySelectorAll("button[aria-controls^='filter-section-']").forEach(e
68=>{e.addEventListener("click",function(){const i=this.getAttribute("aria-controls");document.querySelectorAll("."+i).forEach(r=>{r.classList.toggle("hidden")}),this.querySelectorAll("svg").forEach(r=>{r.classList.toggle("hidden")});const n=this.getAttribute("aria-expanded")==="true";this.setAttribute("aria-expanded",(!n).toString())})});document.addEventListener("click",function(e){const i=e.target.closest("#search-sidebar-mob");e.target.closest("#search-mob"),e.target.closest(".search-sidebar-close"),i&&document.querySelectorAll(".filter-desktop").forEach(r=>{r.classList.toggle("hidden")})});document.querySelectorAll(".search-sidebar input[type='checkbox']").forEach(e=>{e.addEventListener("change",function(){const i=new URLSearchParams(window.location.search),n={},r=[];if(["q","order"].forEach(a=>{const o=i.get(a);o!==null&&i.set(a,o)}),i.delete("topic[]"),i.delete("engel"),i.delete("engelLow"),i.delete("engelHigh"),i.delete("el"),i.delete("em"),document.querySelectorAll(".search-sidebar input[type='checkbox']:checked").forEach(a=>{let o=a.name;if(o.endsWith("[]")&&(o=o.slice(0,-2)),o==="engel"){const[c,l]=a.value.split(",").map(Number);r.push(c,l)}else n[o]||(n[o]=[]),n[o].push(a.value)}),r.length){const a=Math.min(...r),o=Math.max(...r);i.set("el",a),i.set("em",o)}else i.delete("el"),i.delete("em");for(const a in n)n[a].forEach(o=>{i.append(`${a}[]`,o)})})});document.addEventListener("DOMContentLoaded",function(){const e=document.querySelector(".gc-search-form");e&&e.addEventListener("submit",function(i){i.preventDefault();const n={},r=location.search.substring(1),s=/([^&=]+)=([^&]*)/g;let a;for(;a=s.exec(r);)n[decodeURIComponent(a[1])]=decodeURIComponent(a[2]);const o=e.querySelector('input[name="q"]');o&&o.value.trim()!==""?n.q=o.value.trim():delete n.q;const l=document.location.href.split("?")[0],f=new URLSearchParams(n).toString();window.location.href=l+(f?"?"+f:"")})});(function(e){const i=window.screen_sm||768,n=window.screen_md||992;window.matchMedia("(max-width: "+n+"px)").matches&&e(".parent").removeClass("sel"),e(window).on("resize",function(){window.matchMedia("(min-width: "+i+"px)").matches?e(".secondary nav ul li.has-big-menu:not(.gc) a.parent").off("click.mobileMega"):e(".secondary nav ul li.has-big-menu:not(.gc) a.parent").off("click.mobileMega").on("click.mobileMega",function(a){a.stopImmediatePropagation(),a.preventDefault();var o=e(this).parent().find(".nav-big-menu"),c=!o.hasClass("hidden");return e(this).parent().find(".mob-nav-icon svg").toggleClass("hidden"),e(".nav-big-menu").addClass("hidden"),c||o.removeClass("hidden"),!1})}),e(window).trigger("resize"),e(document).on("click","body.nav-hover #main",function(s){e(".secondary nav ul li").removeClass("open-menu"),e("body").removeClass("nav-hover")}),e(".mob-menu").on("click",function(){e(".secondary").toggleClass("hidden"),e(".search-col").addClass("hidden"),e(".mob-menu svg").toggleClass("hidden")}),e(".mob-search").on("click",function(){e(".search-col").toggleClass("hidden"),e(".search-col").hasClass("hidden")||e(".head-search").trigger("focus")}),document.addEventListener("lazyloaded",function(s){s.target.getAttribute("data-location")=="header"})})(jQuery);let hs={btn:null,dropdown:null};function Fs(){const e=document.querySelector(".profile-dropdown-btn"),i=document.querySelector(".profile-dropdown");!e||!i||(hs={btn:e,dropdown:i},e.dataset.eaukDropdownBound!=="1"&&(e.dataset.eaukDropdownBound="1",e.addEventListener("click",function(n){n.preventDefault(),n.stopPropagation(),i.classList.toggle("hidden"),hs={btn:e,dropdown:i}})))}window.eaukInitProfileDropdown=Fs;Fs();document.addEventListener("click",function(e){const i=hs.btn,n=hs.dropdown;!i||!n||!i.contains(e.target)&&!n.contains(e.target)&&n.classList.add("hidden")});document.addEventListener("afterBlitzInject",function(){Fs()});typeof htmx<"u"&&htmx.on("htmx:afterSwap",function(e){console.log("HTMX content swapped"),Fs()});function Jd(e){let{swiper:i,extendParams:n,on:r,emit:s}=e;const a=If();n({mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarget:"container",thresholdDelta:null,thresholdTime:null,noMousewheelClass:"swiper-no-mousewheel"}}),i.mousewheel={enabled:!1};let o,c=Cn(),l;const f=[];function d(b){let j=0,H=0,q=0,U=0;return"detail"in b&&(H=b.detail),"wheelDelta"in b&&(H=-b.wheelDelta/120),"wheelDeltaY"in b&&(H=-b.wheelDeltaY/120
vendor: 5,562 bytes, line 68
68),"wheelDeltaX"in b&&(j=-b.wheelDeltaX/120),"axis"in b&&b.axis===b.HORIZONTAL_AXIS&&(j=H,H=0),q=j*10,U=H*10,"deltaY"in b&&(U=b.deltaY),"deltaX"in b&&(q=b.deltaX),b.shiftKey&&!q&&(q=U,U=0),(q||U)&&b.deltaMode&&(b.deltaMode===1?(q*=40,U*=40):(q*=800,U*=800)),q&&!j&&(j=q<1?-1:1),U&&!H&&(H=U<1?-1:1),{spinX:j,spinY:H,pixelX:q,pixelY:U}}function h(){i.enabled&&(i.mouseEntered=!0)}function p(){i.enabled&&(i.mouseEntered=!1)}function g(b){return i.params.mousewheel.thresholdDelta&&b.delta<i.params.mousewheel.thresholdDelta||i.params.mousewheel.thresholdTime&&Cn()-c<i.params.mousewheel.thresholdTime?!1:b.delta>=6&&Cn()-c<60?!0:(b.direction<0?(!i.isEnd||i.params.loop)&&!i.animating&&(i.slideNext(),s("scroll",b.raw)):(!i.isBeginning||i.params.loop)&&!i.animating&&(i.slidePrev(),s("scroll",b.raw)),c=new a.Date().getTime(),!1)}function v(b){const E=i.params.mousewheel;if(b.direction<0){if(i.isEnd&&!i.params.loop&&E.releaseOnEdges)return!0}else if(i.isBeginning&&!i.params.loop&&E.releaseOnEdges)return!0;return!1}function y(b){let E=b,L=!0;if(!i.enabled||b.target.closest(`.${i.params.mousewheel.noMousewheelClass}`))return;const P=i.params.mousewheel;i.params.cssMode&&E.preventDefault();let j=i.el;i.params.mousewheel.eventsTarget!=="container"&&(j=document.querySelector(i.params.mousewheel.eventsTarget));const H=j&&j.contains(E.target);if(!i.mouseEntered&&!H&&!P.releaseOnEdges)return!0;E.originalEvent&&(E=E.originalEvent);let q=0;const U=i.rtlTranslate?-1:1,Q=d(E);if(P.forceToAxis)if(i.isHorizontal())if(Math.abs(Q.pixelX)>Math.abs(Q.pixelY))q=-Q.pixelX*U;else return!0;else if(Math.abs(Q.pixelY)>Math.abs(Q.pixelX))q=-Q.pixelY;else return!0;else q=Math.abs(Q.pixelX)>Math.abs(Q.pixelY)?-Q.pixelX*U:-Q.pixelY;if(q===0)return!0;P.invert&&(q=-q);let V=i.getTranslate()+q*P.sensitivity;if(V>=i.minTranslate()&&(V=i.minTranslate()),V<=i.maxTranslate()&&(V=i.maxTranslate()),L=i.params.loop?!0:!(V===i.minTranslate()||V===i.maxTranslate()),L&&i.params.nested&&E.stopPropagation(),!i.params.freeMode||!i.params.freeMode.enabled){const S={time:Cn(),delta:Math.abs(q),direction:Math.sign(q),raw:b};f.length>=2&&f.shift();const I=f.length?f[f.length-1]:void 0;if(f.push(S),I?(S.direction!==I.direction||S.delta>I.delta||S.time>I.time+150)&&g(S):g(S),v(S))return!0}else{const S={time:Cn(),delta:Math.abs(q),direction:Math.sign(q)},I=l&&S.time<l.time+500&&S.delta<=l.delta&&S.direction===l.direction;if(!I){l=void 0;let B=i.getTranslate()+q*P.sensitivity;const M=i.isBeginning,N=i.isEnd;if(B>=i.minTranslate()&&(B=i.minTranslate()),B<=i.maxTranslate()&&(B=i.maxTranslate()),i.setTransition(0),i.setTranslate(B),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!M&&i.isBeginning||!N&&i.isEnd)&&i.updateSlidesClasses(),i.params.loop&&i.loopFix({direction:S.direction<0?"next":"prev",byMousewheel:!0}),i.params.freeMode.sticky){clearTimeout(o),o=void 0,f.length>=15&&f.shift();const O=f.length?f[f.length-1]:void 0,F=f[0];if(f.push(S),O&&(S.delta>O.delta||S.direction!==O.direction))f.splice(0);else if(f.length>=15&&S.time-F.time<500&&F.delta-S.delta>=1&&S.delta<=6){const D=q>0?.8:.2;l=S,f.splice(0),o=ya(()=>{i.destroyed||!i.params||i.slideToClosest(i.params.speed,!0,void 0,D)},0)}o||(o=ya(()=>{if(i.destroyed||!i.params)return;const D=.5;l=S,f.splice(0),i.slideToClosest(i.params.speed,!0,void 0,D)},500))}if(I||s("scroll",E),i.params.autoplay&&i.params.autoplay.disableOnInteraction&&i.autoplay.stop(),P.releaseOnEdges&&(B===i.minTranslate()||B===i.maxTranslate()))return!0}}return E.preventDefault?E.preventDefault():E.returnValue=!1,!1}function C(b){let E=i.el;i.params.mousewheel.eventsTarget!=="container"&&(E=document.querySelector(i.params.mousewheel.eventsTarget)),E[b]("mouseenter",h),E[b]("mouseleave",p),E[b]("wheel",y)}function T(){return i.params.cssMode?(i.wrapperEl.removeEventListener("wheel",y),!0):i.mousewheel.enabled?!1:(C("addEventListener"),i.mousewheel.enabled=!0,!0)}function _(){return i.params.cssMode?(i.wrapperEl.addEventListener(event,y),!0):i.mousewheel.enabled?(C("removeEventListener"),i.mousewheel.enabled=!1,!0):!1}r("init",()=>{!i.params.mousewheel.enabled&&i.params.cssMode&&_(),i.params.mousewheel.enabled&&T()}),r("destroy",()=>{i.params.cssMode&&T(),i.mousewheel.enabled&&_()}),Object.assign(i.mousewheel,{enable:T,disable:_})}function Ko(e,i,n,r){return e.params.createElements&&Object.keys(r).forEach(s=>{if(!n[s]&&n.auto===!0){let a=Ff(e.el,`.${r[s]}`)[0];a||(a=Dc("div",r[s]),a.className=r[s],e.el.append(a)),n[s]=a,i[s]=a}}),n}function Zd(e){let{swiper:i,extendParams:n,on:r,emit:s}=e;n({navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock",navigationDisabledClass:"swiper-navigation-disabled"}}),i.navigation={nextEl:null,prevEl:null};function a(v){let y;return v&&typeof v=="string"&&i.isElement&&(y=i.el.querySelector(v)||i.hostEl.querySelector(v),y)?y:(v&&(typeof v=="string"&&(y=[...document.querySelectorAll(v)]),i.params.uniqueNavElements&&typeof v=="string"&&y&&y.length>1&&i.el.querySelectorAll(v).length===1?y=i.el.querySelector(v):y&&y.length===1&&(y=y[0])),v&&!y?v:y)}function o(v,y){const C=i.params.navigation;v=We(v),v.forEach(T=>{T&&(T.classList[y?"add":"remove"](...C.disabledClass.split(" ")),T.tagName==="BUTTON"&&(T.disabled=y),i.params.watchOverflow&&i.enabled&&T.classList[i.isLocked?"add":"remove"](C.lockClass))})}function c(){const{nextEl:v,prevEl:y}=i.navigation;if(i.params.loop){o(y,!1),o(v,!1);return}o(y,i.isBeginning&&!i.params.rewind),o(v,i.isEnd&&!i.params.rewind)}
68function l(v){v.preventDefault(),!(i.isBeginning&&!i.params.loop&&!i.params.rewind)&&(i.slidePrev(),s("navigationPrev"))}function f(v){v.preventDefault(),!(i.isEnd&&!i.params.loop&&!i.params.rewind)&&(i.slideNext(),s("navigationNext"))}function d(){const v=i.params.navigation;if(i.params.navigation=Ko(i,i.originalParams.navigation,i.params.navigation,{nextEl:"swiper-button-next",prevEl:"swiper-button-prev"}),!(v.nextEl||v.prevEl))return;let y=a(v.nextEl),C=a(v.prevEl);Object.assign(i.navigation,{nextEl:y,prevEl:C}),y=We(y),C=We(C);const T=(_,b)=>{_&&_.addEventListener("click",b==="next"?f:l),!i.enabled&&_&&_.classList.add(...v.lockClass.split(" "))};y.forEach(_=>T(_,"next")),C.forEach(_=>T(_,"prev"))}function h(){let{nextEl:v,prevEl:y}=i.navigation;v=We(v),y=We(y);const C=(T,_)=>{T.removeEventListener("click",_==="next"?f:l),T.classList.remove(...i.params.navigation.disabledClass.split(" "))};v.forEach(T=>C(T,"next")),y.forEach(T=>C(T,"prev"))}r("init",()=>{i.params.navigation.enabled===!1?g():(d(),c())}),r("toEdge fromEdge lock unlock",()=>{c()}),r("destroy",()=>{h()}),r("enable disable",()=>{let{nextEl:v,prevEl:y}=i.navigation;if(v=We(v),y=We(y),i.enabled){c();return}[...v,...y].filter(C=>!!C).forEach(C=>C.classList.add(i.params.navigation.lockClass))}),r("click",(v,y)=>{let{nextEl:C,prevEl:T}=i.navigation;C=We(C),T=We(T);const _=y.target;let b=T.includes(_)||C.includes(_);if(i.isElement&&!b){const E=y.path||y.composedPath&&y.composedPath();E&&(b=E.find(L=>C.includes(L)||T.includes(L)))}if(i.params.navigation.hideOnClick&&!b){if(i.pagination&&i.params.pagination&&i.params.pagination.clickable&&(i.pagination.el===_||i.pagination.el.contains(_)))return;let E;C.length?E=C[0].classList.contains(i.params.navigation.hiddenClass):T.length&&(E=T[0].classList.contains(i.params.navigation.hiddenClass)),s(E===!0?"navigationShow":"navigationHide"),[...C,...T].filter(L=>
68!!L).forEach(L=>L.classList.toggle(i.params.navigation.hiddenClass))}});const p=()=>{i.el.classList.remove(...i.params.navigation.navigationDisabledClass.split(" ")),d(),c()},g=()=>{i.el.classList.add(...i.params.navigation.navigationDisabledClass.split(" ")),h()};Object.assign(i.navigation,{enable:p,disable:g,update:c,init:d,destroy:h})}function Ji(e){return e===void 0&&(e=""),`.${e.trim().replace(/([\.:!+\/()[\]])/g,"\\$1").replace(/ /g,".")}`}function Qd(e){let{swiper:i,extendParams:n,on:r,emit:s}=e;const a="swiper-pagination";n({pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:_=>_,formatFractionTotal:_=>_,bulletClass:`${a}-bullet`,bulletActiveClass:`${a}-bullet-active`,modifierClass:`${a}-`,currentClass:`${a}-current`,totalClass:`${a}-total`,hiddenClass:`${a}-hidden`,progressbarFillClass:`${a}-progressbar-fill`,progressbarOppositeClass:`${a}-progressbar-opposite`,clickableClass:`${a}-clickable`,lockClass:`${a}-lock`,horizontalClass:`${a}-horizontal`,verticalClass:`${a}-vertical`,paginationDisabledClass:`${a}-disabled`}}),i.pagination={el:null,bullets:[]};let o,c=0;function l(){return!i.params.pagination.el||!i.pagination.el||Array.isArray(i.pagination.el)&&i.pagination.el.length===0}function f(_,b){const{bulletActiveClass:E}=i.params.pagination;_&&(_=_[`${b==="prev"?"previous":"next"}ElementSibling`],_&&(_.classList.add(`${E}-${b}`),_=_[`${b==="prev"?"previous":"next"}ElementSibling`],_&&_.classList.add(`${E}-${b}-${b}`)))}function d(_,b,E){if(_=_%E,b=b%E,b===_+1)return"next";if(b===_-1)return"previous"}function h(_){const b=_.target.closest(Ji(i.params.pagination.bulletClass));if(!b)return;_.preventDefault();const E=rl(b)*i.params.slidesPerGroup;if(i.params.loop){if(i.realIndex===E)return;const L=d(i.realIndex,E,i.slides.length);L==="next"?i.slideNext():L==="previous"?i.slidePrev():i.slideToLoop(E)}else i.slideTo(E)}function p(){const _=i.rtl,b=i.params.pagination;if(l())return;let E=i.pagination.el;E=We(E);let L,P;const j=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.slides.length,H=i.params.loop?Math.ceil(j/i.params.slidesPerGroup):i.snapGrid.length;if(i.params.loop?(P=i.previousRealIndex||0,L=i.params.slidesPerGroup>1?Math.floor(i.realIndex/i.params.slidesPerGroup):i.realIndex):typeof i.snapIndex<"u"?(L=i.snapIndex,P=i.previousSnapIndex):(P=i.previousIndex||0,L=i.activeIndex||0),b.type==="bullets"&&i.pagination.bullets&&i.pagination.bullets.length>0){const q=i.pagination.bullets;let U,Q,V;if(b.dynamicBullets&&(o=Rf(q[0],i.isHorizontal()?"width":"height"),E.forEach(S=>{S.style[i.isHorizontal()?"width":"height"]=`${o*(b.dynamicMainBullets+4)}px`}),b.dynamicMainBullets>1&&P!==void 0&&(c+=L-(P||0),c>b.dynamicMainBullets-1?c=b.dynamicMainBullets-1:c<0&&(c=0)),U=Math.max(L-c,0),Q=U+(Math.min(q.length,b.dynamicMainBullets)-1),V=(Q+U)/2),q.forEach(S=>{const I=[...["","-next","-next-next","-prev","-prev-prev","-main"].map(B=>`${b.bulletActiveClass}${B}`)].map(B=>typeof B=="string"&&B.includes(" ")?B.split(" "):B).flat();S.classList.remove(...I)}),E.length>1)q.forEach(S=>{const I=rl(S);I===L?S.classList.add(...b.bulletActiveClass.split(" ")):i.isElement&&S.setAttribute("part","bullet"),b.dynamicBullets&&(I>=U&&I<=Q&&S.classList.add(...`${b.bulletActiveClass}-main`.split(" ")),I===U&&f(S,"prev"),I===Q&&f(S,"next"))});else{const S=q[L];if(S&&S.classList.add(...b.bulletActiveClass.split(" ")),i.isElement&&q.forEach((I,B)=>{I.setAttribute("part",B===L?"bullet-active":"bullet")}),b.dynamicBullets){const I=q[U],B=q[Q];for(let M=U;M<=Q;M+=1)q[M]&&q[M].classList.add(...`${b.bulletActiveClass}-main`.split(" "));f(I,"prev"),f(B,"next")}}if(b.dynamicBullets){const S=Math.min(q.length,b.dynamicMainBullets+4),I=(o*S-o)/2-V*o,B=_?"right":"left";q.forEach(M=>{M.style[i.isHorizontal()?B:"top"]=`${I}px`})}}E.forEach((q,U)=>{if(b.type==="fraction"&&(q.querySelectorAll(Ji(b.currentClass)).forEach(Q=>{Q.textContent=b.formatFractionCurrent(L+1)}
68),q.querySelectorAll(Ji(b.totalClass)).forEach(Q=>{Q.textContent=b.formatFractionTotal(H)})),b.type==="progressbar"){let Q;b.progressbarOpposite?Q=i.isHorizontal()?"vertical":"horizontal":Q=i.isHorizontal()?"horizontal":"vertical";const V=(L+1)/H;let S=1,I=1;Q==="horizontal"?S=V:I=V,q.querySelectorAll(Ji(b.progressbarFillClass)).forEach(B=>{B.style.transform=`translate3d(0,0,0) scaleX(${S}) scaleY(${I})`,B.style.transitionDuration=`${i.params.speed}ms`})}b.type==="custom"&&b.renderCustom?(nl(q,b.renderCustom(i,L+1,H)),U===0&&s("paginationRender",q)):(U===0&&s("paginationRender",q),s("paginationUpdate",q)),i.params.watchOverflow&&i.enabled&&q.classList[i.isLocked?"add":"remove"](b.lockClass)})}function g(){const _=i.params.pagination;if(l())return;const b=i.virtual&&i.params.virtual.enabled?i.virtual.slides.length:i.grid&&i.params.grid.rows>1?i.slides.length/Math.ceil(i.params.grid.rows):i.slides.length;let E=i.pagination.el;E=We(E);let L="";if(_.type==="bullets"){let P=i.params.loop?Math.ceil(b/i.params.slidesPerGroup):i.snapGrid.length;i.params.freeMode&&i.params.freeMode.enabled&&P>b&&(P=b);for(let j=0;j<P;j+=1)_.renderBullet?L+=_.renderBullet.call(i,j,_.bulletClass):L+=`<${_.bulletElement} ${i.isElement?'part="bullet"':""} class="${_.bulletClass}"></${_.bulletElement}>`}_.type==="fraction"&&(_.renderFraction?L=_.renderFraction.call(i,_.currentClass,_.totalClass):L=`<span class="${_.currentClass}"></span> / <span class="${_.totalClass}"></span>`),_.type==="progressbar"&&(_.renderProgressbar?L=_.renderProgressbar.call(i,_.progressbarFillClass):L=`<span class="${_.progressbarFillClass}"></span>`),i.pagination.bullets=[],E.forEach(P=>{_.type!=="custom"&&nl(P,L||""),_.type==="bullets"&&i.pagination.bullets.push(...P.querySelectorAll(Ji(_.bulletClass)))}),_.type!=="custom"&&s("paginationRender",E[0])}function v(){i.params.pagination=Ko(i,i.originalParams.pagination,i.params.pagination,{el:"swiper-pagination"});const _=i.params.pagination;if(!_.el)return;let b;typeof _.el=="string"&&i.isElement&&(b=i.el.querySelector(_.el)),!b&&typeof _.el=="string"&&(b=[...document.querySelectorAll(_.el)]),b||(b=_.el),!(!b||b.length===0)&&(i.params.uniqueNavElements&&typeof _.el=="string"&&Array.isArray(b)&&b.length>1&&(b=[...i.el.querySelectorAll(_.el)],b.length>1&&(b=b.find(E=>Nf(E,".swiper")[0]===i.el))),Array.isArray(b)&&b.length===1&&(b=b[0]),Object.assign(i.pagination,{el:b}),b=We(b),b.forEach(E=>{_.type==="bullets"&&_.clickable&&E.classList.add(...(_.clickableClass||"").split(" ")),E.classList.add(_.modifierClass+_.type),E.classList.add(i.isHorizontal()?_.horizontalClass:_.verticalClass),_.type==="bullets"&&_.dynamicBullets&&(E.classList.add(`${_.modifierClass}${_.type}-dynamic`),c=0,_.dynamicMainBullets<1&&(_.dynamicMainBullets=1)),_.type==="progressbar"&&_.progressbarOpposite&&E.classList.add(_.progressbarOppositeClass),_.clickable&&E.addEventListener("click",h),i.enabled||E.classList.add(_.lockClass)}))}function y(){const _=i.params.pagination;if(l())return;let b=i.pagination.el;b&&(b=We(b),b.forEach(E=>{E.classList.remove(_.hiddenClass),E.classList.remove(_.modifierClass+_.type),E.classList.remove(i.isHorizontal()?_.horizontalClass:_.verticalClass),_.clickable&&(E.classList.remove(...(_.clickableClass||"").split(" ")),E.removeEventListener("click",h))})),i.pagination.bullets&&i.pagination.bullets.forEach(E=>E.classList.remove(..._.bulletActiveClass.split(" ")))}r("changeDirection",()=>{if(!i.pagination||!i.pagination.el)return;const _=i.params.pagination;let{el:b}=i.pagination;b=We(b),b.forEach(E=>{E.classList.remove(_.horizontalClass,_.verticalClass),E.classList.add(i.isHorizontal()?_.horizontalClass:_.verticalClass)})}),r("init",()=>{i.params.pagination.enabled===!1?T():(v(),g(),p())}),r("activeIndexChange",()=>{typeof i.snapIndex>"u"&&p()}),r("snapIndexChange",()=>{p()}),r("snapGridLengthChange",()=>{g(),p()}),r("destroy",()=>{y()}),r("enable disable",()=>{let{el:_}=i.pagination;_&&(_=We(_),_.forEach(b=>b.classList[i.enabled?"remove":"add"](i.params.pagination.lockClass)))}),r("lock unlock",()=>{p()}),r("click",(_,b)=>{const E=b.target,L=We(i.pagination.el);if(i.params.pagination.el&&i.params.pagination.hideOnClick&&L&&L.length>0&&!E.classList.contains(i.params.pagination.bulletClass)){if(i.navigation&&(i.navigation.nextEl&&E===i.navigation.nextEl||i.navigation.prevEl&&E===i.navigation.prevEl))return;const P=L[0].classList.contains(i.params.pagination.hiddenClass);
68s(P===!0?"paginationShow":"paginationHide"),L.forEach(j=>j.classList.toggle(i.params.pagination.hiddenClass))}});const C=()=>{i.el.classList.remove(i.params.pagination.paginationDisabledClass);let{el:_}=i.pagination;_&&(_=We(_),_.forEach(b=>b.classList.remove(i.params.pagination.paginationDisabledClass))),v(),g(),p()},T=()=>{i.el.classList.add(i.params.pagination.paginationDisabledClass);let{el:_}=i.pagination;_&&(_=We(_),_.forEach(b=>b.classList.add(i.params.pagination.paginationDisabledClass))),y()};Object.assign(i.pagination,{enable:C,disable:T,render:g,update:p,init:v,destroy:y})}function ef(e){let{swiper:i,extendParams:n,on:r,emit:s}=e;const a=Rr();let o=!1,c=null,l=null,f,d,h,p;n({scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag",scrollbarDisabledClass:"swiper-scrollbar-disabled",horizontalClass:"swiper-scrollbar-horizontal",verticalClass:"swiper-scrollbar-vertical"}}),i.scrollbar={el:null,dragEl:null};function g(){if(!i.params.scrollbar.el||!i.scrollbar.el)return;const{scrollbar:V,rtlTranslate:S}=i,{dragEl:I,el:B}=V,M=i.params.scrollbar,N=i.params.loop?i.progressLoop:i.progress;let O=d,F=(h-d)*N;S?(F=-F,F>0?(O=d-F,F=0):-F+d>h&&(O=h+F)):F<0?(O=d+F,F=0):F+d>h&&(O=h-F),i.isHorizontal()?(I.style.transform=`translate3d(${F}px, 0, 0)`,I.style.width=`${O}px`):(I.style.transform=`translate3d(0px, ${F}px, 0)`,I.style.height=`${O}px`),M.hide&&(clearTimeout(c),B.style.opacity=1,c=setTimeout(()=>{B.style.opacity=0,B.style.transitionDuration="400ms"},1e3))}function v(V){!i.params.scrollbar.el||!i.scrollbar.el||(i.scrollbar.dragEl.style.transitionDuration=`${V}ms`)}function y(){if(!i.params.scrollbar.el||!i.scrollbar.el)return;const{scrollbar:V}=i,{dragEl:S,el:I}=V;S.style.width="",S.style.height="",h=i.isHorizontal()?I.offsetWidth:I.offsetHeight,p=i.size/(i.virtualSize+i.params.slidesOffsetBefore-(i.params.centeredSlides?i.snapGrid[0]:0)),i.params.scrollbar.dragSize==="auto"?d=h*p:d=parseInt(i.params.scrollbar.dragSize,10),i.isHorizontal()?S.style.width=`${d}px`:S.style.height=`${d}px`,p>=1?I.style.display="none":I.style.display="",i.params.scrollbar.hide&&(I.style.opacity=0),i.params.watchOverflow&&i.enabled&&V.el.classList[i.isLocked?"add":"remove"](i.params.scrollbar.lockClass)}function C(V){return i.isHorizontal()?V.clientX:V.clientY}function T(V){const{scrollbar:S,rtlTranslate:I}=i,{el:B}=S;let M;M=(C(V)-Bf(B)[i.isHorizontal()?"left":"top"]-(f!==null?f:d/2))/(h-d),M=Math.max(Math.min(M,1),0),I&&(M=1-M);const N=i.minTranslate()+(i.maxTranslate()-i.minTranslate())*M;i.updateProgress(N),i.setTranslate(N),i.updateActiveIndex(),i.updateSlidesClasses()}function _(V){const S=i.params.scrollbar,{scrollbar:I,wrapperEl:B}=i,{el:M,dragEl:N}=I;o=!0,f=V.target===N?C(V)-V.target.getBoundingClientRect()[i.isHorizontal()?"left":"top"]:null,V.preventDefault(),V.stopPropagation(),B.style.transitionDuration="100ms",N.style.transitionDuration="100ms",T(V),clearTimeout(l),M.style.transitionDuration="0ms",S.hide&&(M.style.opacity=1),i.params.cssMode&&(i.wrapperEl.style["scroll-snap-type"]="none"),s("scrollbarDragStart",V)}function b(V){const{scrollbar:S,wrapperEl:I}=i,{el:B,dragEl:M}=S;o&&(V.preventDefault&&V.cancelable?V.preventDefault():V.returnValue=!1,T(V),I.style.transitionDuration="0ms",B.style.transitionDuration="0ms",M.style.transitionDuration="0ms",s("scrollbarDragMove",V))}function E(V){const S=i.params.scrollbar,{scrollbar:I,wrapperEl:B}=i,{el:M}=I;o&&(o=!1,i.params.cssMode&&(i.wrapperEl.style["scroll-snap-type"]="",B.style.transitionDuration=""),S.hide&&(clearTimeout(l),l=ya(()=>{M.style.opacity=0,M.style.transitionDuration="400ms"},1e3)),s("scrollbarDragEnd",V),S.snapOnRelease&&i.slideToClosest())}function L(V){const{scrollbar:S,params:I}=i,B=S.el;if(!B)return;const M=B,N=I.passiveListeners?{passive:!1,capture:!1}:!1,O=I.passiveListeners?{passive:!0,capture:!1}:!1;if(!M)return;const F=V==="on"?"addEventListener":"removeEventListener";M[F]("pointerdown",_,N),a[F]("pointermove",b,N),a[F]("pointerup",E,O)}function P(){!i.params.scrollbar.el||!i.scrollbar.el||L("on")}function j(){!i.params.scrollbar.el||!i.scrollbar.el||L("off")}function H(){const{scrollbar:V,el:S}=i;
68i.params.scrollbar=Ko(i,i.originalParams.scrollbar,i.params.scrollbar,{el:"swiper-scrollbar"});const I=i.params.scrollbar;if(!I.el)return;let B;if(typeof I.el=="string"&&i.isElement&&(B=i.el.querySelector(I.el)),!B&&typeof I.el=="string"){if(B=a.querySelectorAll(I.el),!B.length)return}else B||(B=I.el);i.params.uniqueNavElements&&typeof I.el=="string"&&B.length>1&&S.querySelectorAll(I.el).length===1&&(B=S.querySelector(I.el)),B.length>0&&(B=B[0]),B.classList.add(i.isHorizontal()?I.horizontalClass:I.verticalClass);let M;B&&(M=B.querySelector(Ji(i.params.scrollbar.dragClass)),M||(M=Dc("div",i.params.scrollbar.dragClass),B.append(M))),Object.assign(V,{el:B,dragEl:M}),I.draggable&&P(),B&&B.classList[i.enabled?"remove":"add"](..._i(i.params.scrollbar.lockClass))}function q(){const V=i.params.scrollbar,S=i.scrollbar.el;S&&S.classList.remove(..._i(i.isHorizontal()?V.horizontalClass:V.verticalClass)),j()}r("changeDirection",()=>{if(!i.scrollbar||!i.scrollbar.el)return;const V=i.params.scrollbar;let{el:S}=i.scrollbar;S=We(S),S.forEach(I=>{I.classList.remove(V.horizontalClass,V.verticalClass),I.classList.add(i.isHorizontal()?V.horizontalClass:V.verticalClass)})}),r("init",()=>{i.params.scrollbar.enabled===!1?Q():(H(),y(),g())}),r("update resize observerUpdate lock unlock changeDirection",()=>{y()}),r("setTranslate",()=>{g()}),r("setTransition",(V,S)=>{v(S)}),r("enable disable",()=>{const{el:V}=i.scrollbar;V&&V.classList[i.enabled?"remove":"add"](..._i(i.params.scrollbar.lockClass))}),r("destroy",()=>{q()});const U=()=>{i.el.classList.remove(..._i(i.params.scrollbar.scrollbarDisabledClass)),i.scrollbar.el&&i.scrollbar.el.classList.remove(..._i(i.params.scrollbar.scrollbarDisabledClass)),H(),y(),g()},Q=()=>{i.el.classList.add(..._i(i.params.scrollbar.scrollbarDisabledClass)),i.scrollbar.el&&i.scrollbar.el.classList.add(..._i(i.params.scrollbar.scrollbarDisabledClass)),q()};Object.assign(i.scrollbar,{enable:U,disable:Q,updateSize:y,setTranslate:g,init:H,destroy:q})}function tf(e){let{swiper:i,extendParams:n,on:r,emit:s,params:a}=e;i.autoplay={running:!1,paused:!1,timeLeft:0},n({autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!1,stopOnLastSlide:!1,reverseDirection:!1,pauseOnMouseEnter:!1}});let o,c,l=a&&a.autoplay?a.autoplay.delay:3e3,f=a&&a.autoplay?a.autoplay.delay:3e3,d,h=new Date().getTime(),p,g,v,y,C,T,_;function b(O){!i||i.destroyed||!i.wrapperEl||O.target===i.wrapperEl&&(i.wrapperEl.removeEventListener("transitionend",b),!(_||O.detail&&O.detail.bySwiperTouchMove)&&U())}const E=()=>{if(i.destroyed||!i.autoplay.running)return;i.autoplay.paused?p=!0:p&&(f=d,p=!1);const O=i.autoplay.paused?d:h+f-new Date().getTime();i.autoplay.timeLeft=O,s("autoplayTimeLeft",O,O/l),c=requestAnimationFrame(()=>{E()})},L=()=>{let O;return i.virtual&&i.params.virtual.enabled?O=i.slides.find(D=>D.classList.contains("swiper-slide-active")):O=i.slides[i.activeIndex],O?parseInt(O.getAttribute("data-swiper-autoplay"),10):void 0},P=O=>{if(i.destroyed||!i.autoplay.running)return;cancelAnimationFrame(c),E();let F=typeof O>"u"?i.params.autoplay.delay:O;l=i.params.autoplay.delay,f=i.params.autoplay.delay;const D=L();!Number.isNaN(D)&&D>0&&typeof O>"u"&&(F=D,l=D,f=D),d=F;const Y=i.params.speed,z=()=>{!i||i.destroyed||(i.params.autoplay.reverseDirection?!i.isBeginning||i.params.loop||i.params.rewind?(i.slidePrev(Y,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(i.slides.length-1,Y,!0,!0),s("autoplay")):!i.isEnd||i.params.loop||i.params.rewind?(i.slideNext(Y,!0,!0),s("autoplay")):i.params.autoplay.stopOnLastSlide||(i.slideTo(0,Y,!0,!0),s("autoplay")),i.params.cssMode&&(h=new Date().getTime(),requestAnimationFrame(()=>{P()})))};return F>0?(clearTimeout(o),o=setTimeout(()=>{z()},F)):requestAnimationFrame(()=>{z()}),F},j=()=>{h=new Date().getTime(),i.autoplay.running=!0,P(),s("autoplayStart")},H=()=>{i.autoplay.running=!1,clearTimeout(o),cancelAnimationFrame(c),s("autoplayStop")},q=(O,F)=>{if(i.destroyed||!i.autoplay.running)return;clearTimeout(o),O||(T=!0);const D=()=>{s("autoplayPause"),i.params.autoplay.waitForTransition?i.wrapperEl.addEventListener("transitionend",b):U()};if(i.autoplay.paused=!0,F){C&&(d=i.params.autoplay.delay),C=!1,D();return}d=(d||i.params.autoplay.delay)-(new Date().getTime()-h),!(i.isEnd&&d<0&&!i.params.loop)&&(d<0&&(d=0),D())},U=()=>{i.isEnd&&d<0&&!i.params.loop||i.destroyed||!i.autoplay.running||(h=new Date().getTime(),T?(T=!1,P(d)):P(),i.autoplay.paused=!1,s("autoplayResume"))},Q=()=>
68{if(i.destroyed||!i.autoplay.running)return;const O=Rr();O.visibilityState==="hidden"&&(T=!0,q(!0)),O.visibilityState==="visible"&&U()},V=O=>{O.pointerType==="mouse"&&(T=!0,_=!0,!(i.animating||i.autoplay.paused)&&q(!0))},S=O=>{O.pointerType==="mouse"&&(_=!1,i.autoplay.paused&&U())},I=()=>{i.params.autoplay.pauseOnMouseEnter&&(i.el.addEventListener("pointerenter",V),i.el.addEventListener("pointerleave",S))},B=()=>{i.el&&typeof i.el!="string"&&(i.el.removeEventListener("pointerenter",V),i.el.removeEventListener("pointerleave",S))},M=()=>{Rr().addEventListener("visibilitychange",Q)},N=()=>{Rr().removeEventListener("visibilitychange",Q)};r("init",()=>{i.params.autoplay.enabled&&(I(),M(),j())}),r("destroy",()=>{B(),N(),i.autoplay.running&&H()}),r("_freeModeStaticRelease",()=>{(v||T)&&U()}),r("_freeModeNoMomentumRelease",()=>{i.params.autoplay.disableOnInteraction?H():q(!0,!0)}),r("beforeTransitionStart",(O,F,D)=>{i.destroyed||!i.autoplay.running||(D||!i.params.autoplay.disableOnInteraction?q(!0,!0):H())}),r("sliderFirstMove",()=>{if(!(i.destroyed||!i.autoplay.running)){if(i.params.autoplay.disableOnInteraction){H();return}g=!0,v=!1,T=!1,y=setTimeout(()=>{T=!0,v=!0,q(!0)},200)}}),r("touchEnd",()=>{if(!(i.destroyed||!i.autoplay.running||!g)){if(clearTimeout(y),clearTimeout(o),i.params.autoplay.disableOnInteraction){v=!1,g=!1;return}v&&i.params.cssMode&&U(),v=!1,g=!1}}),r("slideChange",()=>{i.destroyed||!i.autoplay.running||(C=!0)}),Object.assign(i.autoplay,{start:j,stop:H,pause:q,resume:U})}function ly(e){const{effect:i,swiper:n,on:r,setTranslate:s,setTransition:a,overwriteParams:o,perspective:c,recreateShadows:l,getEffectParams:f}=e;r("beforeInit",()=>{if(n.params.effect!==i)return;n.classNames.push(`${n.params.containerModifierClass}${i}`),c&&c()&&n.classNames.push(`${n.params.containerModifierClass}3d`);const h=o?o():{};Object.assign(n.params,h),Object.assign(n.originalParams,h)}),r("setTranslate _virtualUpdated",()=>{n.params.effect===i&&s()}),r("setTransition",(h,p)=>{n.params.effect===i&&a(p)}),r("transitionEnd",()=>{if(n.params.effect===i&&l){if(!f||!f().slideShadows)return;n.slides.forEach(h=>{h.querySelectorAll(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").forEach(p=>p.remove())}),l()}});let d;r("virtualUpdate",()=>{n.params.effect===i&&(n.slides.length||(d=!0),requestAnimationFrame(()=>{d&&n.slides&&n.slides.length&&(s(),d=!1)}))})}function cy(e,i){const n=Mc(i);return n!==i&&(n.style.backfaceVisibility="hidden",n.style["-webkit-backface-visibility"]="hidden"),n}function uy(e){let{swiper:i,duration:n,transformElements:r}=e;const{activeIndex:s}=i;if(i.params.virtualTranslate&&n!==0){let a=!1,o;o=r,o.forEach(c=>{qf(c,()=>{if(a||!i||i.destroyed)return;a=!0,i.animating=!1;const l=new window.CustomEvent("transitionend",{bubbles:!0,cancelable:!0});i.wrapperEl.dispatchEvent(l)})})}}function nf(e){let{swiper:i,extendParams:n,on:r}=e;n({fadeEffect:{crossFade:!1}}),ly({effect:"fade",swiper:i,on:r,setTranslate:()=>{const{slides:o}=i,c=i.params.fadeEffect;for(let l=0;l<o.length;l+=1){const f=i.slides[l];let h=-f.swiperSlideOffset;i.params.virtualTranslate||(h-=i.translate);let p=0;i.isHorizontal()||(p=h,h=0);const g=i.params.fadeEffect.crossFade?Math.max(1-Math.abs(f.progress),0):1+Math.min(Math.max(f.progress,-1),0),v=cy(c,f);v.style.opacity=g,v.style.transform=`translate3d(${h}px, ${p}px, 0px)`}},setTransition:o=>{const c=i.slides.map(l=>Mc(l));c.forEach(l=>{l.style.transitionDuration=`${o}ms`}),uy({swiper:i,duration:o,transformElements:c})},overwriteParams:()=>({slidesPerView:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!i.params.cssMode})})}(function(e){e("body.home").length&&(e(".login-tabs li").click(function(){var i=e(this).attr("data-tab");e(".login-tabs li").removeClass("active"),e(".tab-content").removeClass("current"),e(this).addClass("active"),e("#"+i).addClass("current")}),document.addEventListener("DOMContentLoaded",function(){console.log("swiping"),new io(".hero-slick-container",{modules:[tf,nf],slidesPerView:1,loop:!0,autoplay:{delay:4e3,disableOnInteraction:!1},effect:"fade",fadeEffect:{crossFade:!0},allowTouchMove:!0,speed:1e3,navigation:!0})}),e(document).ready(function(i){navigator.geolocation&&e(document).on("click",".get-location",function(n){return n.preventDefault(),navigator.geolocation.getCurrentPosition(function(r){window.document.location="/churches?search_lat="+r.coords.latitude+"&search_lon="+r.coords.longitude},function(){alert("There was a problem finding your location"),console.error("Error getting your location"),console.info("Might be on a non-https URL")}),!1})}))})(jQuery);(function(e){e("body.login,body.register,body.change-password").length&&(e(document).on("click",".type-of-membership button",function(i){e("#register").removeClass("hidden"),e(this).hasClass("individual")?(e(".mem-type").html("Individual"),e("#membershipType").val("individual")):e(this).hasClass("church")?(e(".mem-type").html("Church"),e("#membershipType").val("church")):e(this).hasClass("organisation")&&(e(".mem-type").html("Organisation"),e("#membershipType").val("organisation"))}),e(document).on("submit","form",function(i){showLoadingBar(),e(".form-btn").addClass("spinner")})),window.Parsley.addValidator("equals",{requirementType:"string",validateString:function(i,n){return i==e(n).val()}}),window.Parsley.addValidator("notequalto",{requirementType:"string",validateString:function(i,n){return i!==e(n).val()}})})(jQuery);(function(e){e(".gallery-group").length&&e(document).ready(function(){e(".photo").featherlightGallery({gallery:{next:"next »",previous:"« previous"},previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:0,galleryFadeOut:0,openSpeed:150,closeSpeed:150})})})(jQuery);(function(){const e=document.querySelector("[data-reader-count]");if(!e)return;const i="eaukArticleReads",n="eaukArticleCountOptOut",r=1,s=365*24*60*60*1e3,a=e.getAttribute("data-article-id"),o=parseInt(e.getAttribute("data-reveal-threshold"),10)||1,c=e.querySelector("[data-reader-count-panel]"),l=e.querySelector("[data-reader-count-optedout]"),f=Array.prototype.slice.call(e.querySelectorAll("[data-reader-count-number]")),d=e.querySelector("[data-reader-count-noun]"),h=e.querySelector("[data-reader-count-off]"),p=e.querySelector("[data-reader-count-on]");function g(){try{const q=window.localStorage.getItem(i);if(!q)return[];const U=JSON.parse(q);return U&&Array.isArray(U.reads)?U.reads:[]}catch{return[]}}function v(q){try{window.localStorage.setItem(i,JSON.stringify({v:r,reads:q}))}catch{}}function y(){try{window.localStorage.removeItem(i)}catch{}}function C(){try{return window.localStorage.getItem(n)==="1"}catch{return!1}}function T(q){try{q?window.localStorage.setItem(n,"1"):window.localStorage.removeItem(n)}catch{}}function _(){try{const q=window.getCookie?window.getCookie("cc_cookie"):"";if(!q)return!1;const U=JSON.parse(decodeURIComponent(q));return!!(U&&Array.isArray(U.categories)&&U.categories.indexOf("analytics")!==-1)}catch{return!1}}function b(q){const U=Date.now()-s;return q.filter(function(Q){return Q&&typeof Q.ts=="number"&&Q.ts>U})}function E(){const q=b(g()),U=q.some(function(Q){return String(Q.id)===String(a)});return a&&!U&&q.push({id:a,ts:Date.now()}),v(q),q}function L(q){const U={};return q.forEach(function(Q){U[Q.id]=!0}),Object.keys(U).length}function P(q){f.forEach(function(U){U.textContent=String(q)}
68),d&&(d.textContent=q===1?"article":"articles")}function j(q){c&&(c.hidden=q!=="panel"),l&&(l.hidden=q!=="optedout"),e.hidden=q==="hidden"}function H(q){if(!_()){y(),j("hidden");return}if(C()){y(),P(0),j("optedout");return}const U=L(E());P(U),q||U>=o?j("panel"):j("hidden")}h&&h.addEventListener("click",function(){T(!0),y(),H()}),p&&p.addEventListener("click",function(){T(!1),H(!0)}),window.addEventListener("eauk:consentchange",function(){H()}),H()})();(function(e){if(!e("body.search").length)return;const i="eauk_recent_searches",n=10;document.addEventListener("htmx:afterSettle",function(){const a=document.getElementById("search-q");if(a&&(document.activeElement===document.body||document.activeElement===null)){const o=a.value.length;a.focus();try{a.setSelectionRange(o,o)}catch{}}}),document.addEventListener("htmx:beforeRequest",function(){const a=document.getElementById("search-q");if(!a||a.value.trim().length<2)return;const o=a.value.trim();let c=[];try{c=JSON.parse(localStorage.getItem(i)||"[]")}catch{}c=[o,...c.filter(function(l){return l!==o})].slice(0,n);try{localStorage.setItem(i,JSON.stringify(c))}catch{}});var r;document.addEventListener("htmx:beforeRequest",function(){if(window.dataLayer){clearTimeout(r);var a=document.getElementById("search-q");if(a){var o=a.value.trim();r=setTimeout(function(){o.length>1&&window.dataLayer.push({event:"GAEvent",event_category:"search_live",event_action:void 0,event_label:o,event_value:void 0,nonInteraction:!1})},1e3)}}});var s=-1;document.addEventListener("keydown",function(a){var o=document.querySelectorAll(".js-search-result-link"),c=document.getElementById("search-q");o.length&&(a.key==="ArrowDown"?(a.preventDefault(),s=Math.min(s+1,o.length-1),o[s].focus()):a.key==="ArrowUp"?(a.preventDefault(),s<=0?(s=-1,c&&c.focus()):(s=s-1,o[s].focus())):a.key==="Escape"&&(s=-1,c&&c.focus()))}),document.addEventListener("htmx:afterSettle",function(){s=-1}),e(document).on("submit",'form[role="search"]',function(){typeof showLoadingBar=="function"&&showLoadingBar()})})(jQuery);window.eaukSearch=function(){var e="eauk_recent_searches";return{recentSearches:[],showRecent:!1,init:function(){var i=this;try{i.recentSearches=JSON.parse(localStorage.getItem(e)||"[]")}catch{i.recentSearches=[]}var n=document.getElementById("search-q"),r=n&&n.value.trim().length>0;i.showRecent=!r&&i.recentSearches.length>0,document.addEventListener("htmx:afterSettle",function(){try{i.recentSearches=JSON.parse(localStorage.getItem(e)||"[]")}catch{}var s=document.getElementById("search-q");i.showRecent=s&&s.value.trim().length===0&&i.recentSearches.length>0})},fillSearch:function(i){var n=document.getElementById("search-q");n&&(n.value=i,this.showRecent=!1,n.dispatchEvent(new Event("input",{bubbles:!0})))},clearRecent:function(){try{localStorage.removeItem(e)}catch{}this.recentSearches=[],this.showRecent=!1}}};(function(e){e(".sidebar").length&&(e(document).on("click",".sidebar .fb",function(i){FB.ui({method:"share",href:e(this).data("entry-url")},function(n){})}),e(document).on("click",".sidebar .twitter, .sidebar .messenger",function(i){width=500,height=400;var n,r;n=window.screen.width/2-(width/2+10),r=window.screen.height/2-(height/2+50);var s="status=no,height="+height+",width="+width+",resizable=yes,left="+n+",top="+r+",screenX="+n+",screenY="+r+",toolbar=no,menubar=no,scrollbars=no,location=no,directories=no";return u=location.href,t=document.title,window.open(e(this).attr("href"),"sharer",s),!1}))})(jQuery);jQuery;window.Swiper=io;window.SwiperModules={Autoplay:tf,EffectFade:nf,Navigation:Zd,Pagination:Qd,Mousewheel:Jd,Scrollbar:ef};function dy(){var e=document.querySelectorAll(".card-swiper");e.forEach(function(i){console.log("Initializing swiper for",i);var n=i;n.getAttribute("data-swiper-slides-per-view"),new io(n,{modules:[Zd,Qd,Jd,ef],mousewheel:{forceToAxis:!0},lazy:!0,pagination:{el:".swiper-pagination",clickable:!0},navigation:{nextEl:".swiper-btn-next",prevEl:".swiper-btn-prev"},scrollbar:{el:".swiper-scrollbar",draggable:!0},slidesPerView:1,spaceBetween:20,breakpoints:{768:{slidesPerView:3,spaceBetween:20}}})})}dy();(function(i){i(".table-of-contents").length&&(i(".toc-col").matchHeight(),i(".sidebar").sticky(),i(".toc-section").each(function(){var r=i(this),s=r.position();r.scrollspy({buffer:-400,min:s.top,max:s.top+r.height(),onEnter:function(o){},onEnter:function(o){i(".sidebar a").removeClass("current"),i('.sidebar a[data-scroll-id="'+o.id+'"]').addClass("current")}})}))})(jQuery);(function(e){e(".team-group").length&&(e(".team-group .person").matchHeight(),e(document).ready(function(){console.log("featherlight"),e(".person").featherlightGallery({gallery:{next:"next »",previous:"« previous"},previousIcon:"&#9664;",nextIcon:"&#9654;",galleryFadeIn:0,galleryFadeOut:0,openSpeed:150,closeSpeed:150})}))})(jQuery);Oc(ut);ut(function(){ut(".select2-org-categories").select2({width:"100%",placeholder:"Select categories",closeOnSelect:!1,allowClear:!0})});var Rn={lat:0,lng:0},yc,vc;(function(e){if(e("body.update-meeting-address").length){let r=function(){e("#address2_latitude").val(Rn.lat),e("#address2_longitude").val(Rn.lng),e("#actualLatitude").val(Rn.lat),e("#actualLongitude").val(Rn.lng)};if(e("#actualLatitude").val()&&e("#actualLongitude").val())var i={lat:parseFloat(e("#actualLatitude").val()),lng:parseFloat(e("#actualLongitude").val())};else if(e("#address2_latitude").val()&&e("#address2_longitude").val())var i={lat:parseFloat(e("#address2_latitude").val()),lng:parseFloat(e("#address2_longitude").val())};async function n(){const{Map:s}=await google.maps.importLibrary("maps"),{AdvancedMarkerElement:a}=await google.maps.importLibrary("marker");yc=new s(document.getElementById("map"),{center:i,zoom:18,mapId:"10c54dda61bbc61b"});var o="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",c={path:o,anchor:new google.maps.Point(12,17),fillOpacity:1,fillColor:"#2bb2bc",strokeWeight:1,strokeColor:"#1c9da0",scale:2};new google.maps.Point(12,17),vc=new google.maps.Marker({position:i,map:yc,draggable:!0,icon:c}),google.maps.event.addListener(vc,"dragend",function(l){Rn={lat:l.latLng.lat(),lng:l.latLng.lng()},r()})}document.addEventListener("DOMContentLoaded",function(){n(),r()})}})(jQuery);let Ya,fy;const rf={},ps={},ua={},ms={},hy=e=>e?e.closest(".video-block:not(.video-link):not(.marketing-list-access):not(.plyr-managed)"):null,py=e=>{if(!e)return null;const i=e.split("v=")[1];if(i){const r=i.indexOf("&");return r!==-1?i.substring(0,r):i}const n=e.match(/^.*(?:youtu\.be\/|v\/|embed\/|watch\?|youtube\.com\/user\/[^#]*#(?:[^\/]*?\/)*)\??v?=?([^#&?]*).*/);
68return n?n[1]:null},my=e=>{const i=hy(e.target);if(!i)return;e.preventDefault();const n=i.dataset.iframeSrc;if(!n)return;const r=i.querySelector(".video-info"),s=i.querySelector(".video-display");r&&r.classList.add("hidden"),s&&s.classList.remove("hidden");const a=ps[n],o=rf[n];if(!a||!o){!a&&o==="youtube"&&(ms[n]=!0);return}if(o==="vimeo"&&typeof a.play=="function"){a.play(),typeof a.setVolume=="function"&&a.setVolume(1);return}o==="youtube"&&(typeof a.loadModule=="function"&&(a.loadModule("captions"),a.loadModule("cc")),typeof a.setVolume=="function"&&a.setVolume(100),typeof a.playVideo=="function"&&(a.playVideo(),ms[n]=!1))},da=()=>{document.querySelectorAll(".video-block").forEach(i=>{const n=i.dataset.iframeSrc;if(!n)return;let r=null;if(i.classList.contains("youtube")?r="youtube":i.classList.contains("vimeo")&&(r="vimeo"),!!r){if(rf[n]=r,r==="vimeo"&&typeof Vimeo<"u"&&Vimeo.Player){const s=i.querySelector(".video-frame");if(!s)return;const a=new Vimeo.Player(s,{url:n});typeof a.setVolume=="function"&&a.setVolume(0),ps[n]=a;return}if(r==="youtube"){const s=i.querySelector(".video-iframe"),a=py(n);if(!s||!a)return;ua[a]={videoElement:s,iframeSrc:n}}}}),Ya=()=>{Object.keys(ua).forEach(i=>{const{videoElement:n,iframeSrc:r}=ua[i];if(!n)return;const s=new YT.Player(n,{videoId:i,playerVars:{cc_load_policy:1,autoplay:0,playsinline:1},events:{onReady:a=>{ms[r]&&(typeof a.target.loadModule=="function"&&(a.target.loadModule("captions"),a.target.loadModule("cc")),typeof a.target.setVolume=="function"&&a.target.setVolume(100),typeof a.target.playVideo=="function"&&a.target.playVideo(),ms[r]=!1)},onStateChange:fy}});ps[r]=s})}};document.querySelector(".video-block")&&(document.addEventListener("click",my,!1),window.videoStories=ps,window.loadVideos=da,window.onYouTubeIframeAPIReady=()=>Ya&&Ya(),document.readyState==="loading"?document.addEventListener("DOMContentLoaded",da):da());function re(e,i,n){return(i=yy(i))in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function gy(e,i){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,i);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(i==="string"?String:Number)(e)}function yy(e){var i=gy(e,"string");return typeof i=="symbol"?i:i+""}function vy(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function bc(e,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function by(e,i,n){return i&&bc(e.prototype,i),n&&bc(e,n),e}function wy(e,i,n){return i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function wc(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function _c(e){for(var i=1;i<arguments.length;i++){var n=arguments[i]!=null?arguments[i]:{};i%2?wc(Object(n),!0).forEach(function(r){wy(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wc(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Ec={addCSS:!0,thumbWidth:15,watch:!0};function _y(e,i){return(function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function Ey(e,i){if(e&&i){var n=new Event(i,{bubbles:!0});e.dispatchEvent(n)}}var _r=function(e){return e!=null?e.constructor:null},Xo=function(e,i){return!!(e&&i&&e instanceof i)},sf=function(e){return e==null},af=function(e){return _r(e)===Object},Cy=function(e){return _r(e)===Number&&!Number.isNaN(e)},of=function(e){return _r(e)===String},xy=function(e){return _r(e)===Boolean},ky=function(e){return _r(e)===Function},lf=function(e){return Array.isArray(e)},cf=function(e){return Xo(e,NodeList)},Ay=function(e){return Xo(e,Element)},Ty=function(e){return Xo(e,Event)},Sy=function(e){return sf(e)||(of(e)||lf(e)||cf(e))&&!e.length||af(e)&&!Object.keys(e).length},Xe={nullOrUndefined:sf,object:af,number:Cy,string:of,boolean:xy,function:ky,array:lf,nodeList:cf,element:Ay,event:Ty,empty:Sy};function Dy(e){var i="".concat(e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}function My(e,i){if(1>i){var n=Dy(i);return parseFloat(e.toFixed(n))}return Math.round(e/i)*i}var Ly=function(){function e(i,n){vy(this,e),Xe.element(i)?this.element=i:Xe.string(i)&&(this.element=document.querySelector(i)),Xe.element(this.element)&&Xe.empty(this.element.rangeTouch)&&(this.config=_c({},Ec,{},n),this.init())}return by(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var n=this,r=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(s){n.element[r](s,function(a){return n.set(a)},!1)})}}
68,{key:"get",value:function(i){if(!e.enabled||!Xe.event(i))return null;var n,r=i.target,s=i.changedTouches[0],a=parseFloat(r.getAttribute("min"))||0,o=parseFloat(r.getAttribute("max"))||100,c=parseFloat(r.getAttribute("step"))||1,l=r.getBoundingClientRect(),f=100/l.width*(this.config.thumbWidth/2)/100;return 0>(n=100/l.width*(s.clientX-l.left))?n=0:100<n&&(n=100),50>n?n-=(100-2*n)*f:50<n&&(n+=2*(n-50)*f),a+My(n/100*(o-a),c)}},{key:"set",value:function(i){e.enabled&&Xe.event(i)&&!i.target.disabled&&(i.preventDefault(),i.target.value=this.get(i),Ey(i.target,i.type==="touchend"?"change":"input"))}}],[{key:"setup",value:function(i){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:{},r=null;if(Xe.empty(i)||Xe.string(i)?r=Array.from(document.querySelectorAll(Xe.string(i)?i:'input[type="range"]')):Xe.element(i)?r=[i]:Xe.nodeList(i)?r=Array.from(i):Xe.array(i)&&(r=i.filter(Xe.element)),Xe.empty(r))return null;var s=_c({},Ec,{},n);if(Xe.string(i)&&s.watch){var a=new MutationObserver(function(o){Array.from(o).forEach(function(c){Array.from(c.addedNodes).forEach(function(l){Xe.element(l)&&_y(l,i)&&new e(l,s)})})});a.observe(document.body,{childList:!0,subtree:!0})}return r.map(function(o){return new e(o,n)})}},{key:"enabled",get:function(){return"ontouchstart"in document.documentElement}}]),e}();const Er=e=>e!==null&&typeof e<"u"?e.constructor:null,ii=(e,i)=>!!(e&&i&&e instanceof i),Jo=e=>e===null||typeof e>"u",uf=e=>Er(e)===Object,Oy=e=>Er(e)===Number&&!Number.isNaN(e),Ns=e=>Er(e)===String,Py=e=>Er(e)===Boolean,df=e=>typeof e=="function",ff=e=>Array.isArray(e),Iy=e=>ii(e,WeakMap),hf=e=>ii(e,NodeList),Fy=e=>Er(e)===Text,Ny=e=>ii(e,Event),Ry=e=>ii(e,KeyboardEvent),By=e=>ii(e,window.TextTrackCue)||ii(e,window.VTTCue),qy=e=>ii(e,TextTrack)||!Jo(e)&&Ns(e.kind),jy=e=>ii(e,Promise)&&df(e.then);function Hy(e){return e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object"}function pf(e){return Jo(e)||(Ns(e)||ff(e)||hf(e))&&!e.length||uf(e)&&!Object.keys(e).length}function Vy(e){if(ii(e,window.URL))return!0;if(!Ns(e))return!1;let i=e;(!e.startsWith("http://")||!e.startsWith("https://"))&&(i=`http://${e}`);try{return!pf(new URL(i).hostname)}catch{return!1}}var x={nullOrUndefined:Jo,object:uf,number:Oy,string:Ns,boolean:Py,function:df,array:ff,weakMap:Iy,nodeList:hf,element:Hy,textNode:Fy,event:Ny,keyboardEvent:Ry,cue:By,track:qy,promise:jy,url:Vy,empty:pf};const Ga=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},n=Object.keys(i).find(r=>e.style[r]!==void 0);return x.string(n)?i[n]:!1})();function mf(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}function zy(e){return JSON.parse(JSON.stringify(e))}function gf(e,i){return i.split(".").reduce((n,r)=>n&&n[r],e)}function Be(e={},...i){if(!i.length)return e;const n=i.shift();return x.object(n)?(Object.keys(n).forEach(r=>{x.object(n[r])?(Object.keys(e).includes(r)||Object.assign(e,{[r]:{}}),Be(e[r],n[r])):Object.assign(e,{[r]:n[r]})}),Be(e,...i)):e}function yf(e,i){const n=e.length?e:[e];Array.from(n).reverse().forEach((r,s)=>{const a=s>0?i.cloneNode(!0):i,o=r.parentNode,c=r.nextSibling;a.appendChild(r),c?o.insertBefore(a,c):o.appendChild(a)})}function Ka(e,i){!x.element(e)||x.empty(i)||Object.entries(i).filter(([,n])=>!x.nullOrUndefined(n)).forEach(([n,r])=>e.setAttribute(n,r))}function pe(e,i,n){const r=document.createElement(e);return x.object(i)&&Ka(r,i),x.string(n)&&(r.textContent=n),r}
68function Wy(e,i){!x.element(e)||!x.element(i)||i.parentNode.insertBefore(e,i.nextSibling)}function Cc(e,i,n,r){x.element(i)&&i.appendChild(pe(e,n,r))}function Xt(e){if(x.nodeList(e)||x.array(e)){Array.from(e).forEach(Xt);return}!x.element(e)||!x.element(e.parentNode)||e.parentNode.removeChild(e)}function Yr(e){if(!x.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function gs(e,i){return!x.element(i)||!x.element(i.parentNode)||!x.element(e)?null:(i.parentNode.replaceChild(e,i),e)}function At(e,i){if(!x.string(e)||x.empty(e))return{};const n={},r=Be({},i);return e.split(",").forEach(s=>{const a=s.trim(),o=a.replace(".",""),l=a.replace(/[[\]]/g,"").split("="),[f]=l,d=l.length>1?l[1].replace(/["']/g,""):"";switch(a.charAt(0)){case".":x.string(r.class)?n.class=`${r.class} ${o}`:n.class=o;break;case"#":n.id=a.replace("#","");break;case"[":n[f]=d;break}}),Be(r,n)}function xi(e,i){if(!x.element(e))return;let n=i;x.boolean(n)||(n=!e.hidden),e.hidden=n}function Ae(e,i,n){if(x.nodeList(e))return Array.from(e).map(r=>Ae(r,i,n));
68if(x.element(e)){let r="toggle";return typeof n<"u"&&(r=n?"add":"remove"),e.classList[r](i),e.classList.contains(i)}return!1}function ys(e,i){return x.element(e)&&e.classList.contains(i)}function Si(e,i){const{prototype:n}=Element;function r(){return Array.from(document.querySelectorAll(i)).includes(this)}return(n.matches||n.webkitMatchesSelector||n.mozMatchesSelector||n.msMatchesSelector||r).call(e,i)}function Uy(e,i){const{prototype:n}=Element;function r(){let a=this;do{if(Si.matches(a,i))return a;a=a.parentElement||a.parentNode}while(a!==null&&a.nodeType===1);return null}return(n.closest||r).call(e,i)}function hr(e){return this.elements.container.querySelectorAll(e)}function ze(e){return this.elements.container.querySelector(e)}function fa(e=null,i=!1){x.element(e)&&e.focus({preventScroll:!0,focusVisible:i})}const xc={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},qe={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i){const n=qe[e]||i!=="html5",r=n&&qe.rangeInput;return{api:n,ui:r}},pip:document.pictureInPictureEnabled&&!pe("video").disablePictureInPicture,airplay:x.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(x.empty(e))return!1;const[i]=e.split("/");let n=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(xc).includes(n)&&(n+=`; codecs="${xc[e]}"`);try{return!!(n&&this.media.canPlayType(n).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Ga!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},$y=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get(){return e=!0,null}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function pr(e,i,n,r=!1,s=!0,a=!1){if(!e||!("addEventListener"in e)||x.empty(i)||!x.function(n))return;const o=i.split(" ");let c=a;$y&&(c={passive:s,capture:a}),o.forEach(l=>{this&&this.eventListeners&&r&&this.eventListeners.push({element:e,type:l,callback:n,options:c}),e[r?"addEventListener":"removeEventListener"](l,n,c)})}function xe(e,i="",n,r=!0,s=!1){pr.call(this,e,i,n,!0,r,s)}function Rs(e,i="",n,r=!0,s=!1){pr.call(this,e,i,n,!1,r,s)}function Zo(e,i="",n,r=!0,s=!1){const a=(...o)=>{Rs(e,i,a,r,s),n.apply(this,o)};pr.call(this,e,i,a,!0,r,s)}function me(e,i="",n=!1,r={}){if(!x.element(e)||x.empty(i))return;const s=new CustomEvent(i,{bubbles:n,detail:{...r,plyr:this}});e.dispatchEvent(s)}function Yy(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:n,callback:r,options:s}=e;i.removeEventListener(n,r,s)}),this.eventListeners=[])}function Gy(){return new Promise(e=>this.ready?setTimeout(e,0):xe.call(this,this.elements.container,"ready",e)).then(()=>{})}function Mt(e){x.promise(e)&&e.then(null,()=>{})}function Xa(e){return x.array(e)?e.filter((i,n)=>e.indexOf(i)===n):e}function vf(e,i){return!x.array(e)||!e.length?null:e.reduce((n,r)=>Math.abs(r-i)<Math.abs(n-i)?r:n)}function bf(e){return!window||!window.CSS?!1:window.CSS.supports(e)}const kc=[[1,1],[4,3],[3,4],[5,4],[4,5],[3,2],[2,3],[16,10],[10,16],[16,9],[9,16],[21,9],[9,21],[32,9],[9,32]].reduce((e,[i,n])=>({...e,[i/n]:[i,n]}),{});function wf(e){return!x.array(e)&&(!x.string(e)||!e.includes(":"))?!1:(x.array(e)?e:e.split(":")).map(Number).every(x.number)}function vs(e){if(!x.array(e)||!e.every(x.number))return null;const[i,n]=e,r=(a,o)=>o===0?a:r(o,a%o),s=r(i,n);return[i/s,n/s]}function Qo(e){const i=r=>wf(r)?r.split(":").map(Number):null;let n=i(e);if(n===null&&(n=i(this.config.ratio)),n===null&&!x.empty(this.embed)&&x.array(this.embed.ratio)&&({ratio:n}=this.embed),n===null&&this.isHTML5){const{videoWidth:r,videoHeight:s}=this.media;n=[r,s]}return vs(n)}function pn(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,n=Qo.call(this,e);if(!x.array(n))return{};const[r,s]=vs(n),a=bf(`aspect-ratio: ${r}/${s}`),o=100/r*s;if(a?i.style.aspectRatio=`${r}/${s}`:i.style.paddingBottom=`${o}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const c=100/this.media.offsetWidth*Number.parseInt(window.getComputedStyle(this.media).paddingBottom,10),l=(c-o)/(c/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${l}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:o,ratio:n}}function _f(e,i,n=.05){const r=e/i,s=vf(Object.keys(kc),r);return Math.abs(s-r)<=n?kc[s]:[e,i]}function Ky(){const e=Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),i=Math.max(document.documentElement.clientHeight||0,window.innerHeight||0);return[e,i]}const ui={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(i=>{const n=i.getAttribute("type");return x.empty(n)?!0:qe.mime.call(this,n)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:ui.getSources.call(this).map(e=>
vendor: 5,944 bytes, line 68
68Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,x.empty(this.config.ratio)||pn.call(e),Object.defineProperty(e.media,"quality",{get(){const n=ui.getSources.call(e).find(r=>r.getAttribute("src")===e.source);return n&&Number(n.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&x.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const r=ui.getSources.call(e).find(f=>Number(f.getAttribute("size"))===i);if(!r)return;const{currentTime:s,paused:a,preload:o,readyState:c,playbackRate:l}=e.media;e.media.src=r.getAttribute("src"),(o!=="none"||c)&&(e.once("loadedmetadata",()=>{e.speed=l,e.currentTime=s,a||Mt(e.play())}),e.media.load())}me.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(Xt(ui.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}},Xy=!!window.document.documentMode,Jy=/Edge/.test(navigator.userAgent),Zy="WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),Qy=navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1,ev=/iPad|iPhone|iPod/i.test(navigator.userAgent)&&navigator.maxTouchPoints>1;var Ge={isIE:Xy,isEdge:Jy,isWebKit:Zy,isIPadOS:Qy,isIos:ev};function tv(e){return`${e}-${Math.floor(Math.random()*1e4)}`}function Ja(e,...i){return x.empty(e)?e:e.toString().replace(/\{(\d+)\}/g,(n,r)=>i[r].toString())}function iv(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}function er(e="",i="",n=""){return e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),n.toString())}function Ef(e=""){return e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase())}function nv(e=""){let i=e.toString();return i=er(i,"-"," "),i=er(i,"_"," "),i=Ef(i),er(i," ","")}function rv(e=""){let i=e.toString();return i=nv(i),i.charAt(0).toLowerCase()+i.slice(1)}function sv(e){const i=document.createDocumentFragment(),n=document.createElement("div");return i.appendChild(n),n.innerHTML=e,i.firstChild.textContent}function av(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const Ac={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},Ye={get(e="",i={}){if(x.empty(e)||x.empty(i))return"";let n=gf(i.i18n,e);if(x.empty(n))return Object.keys(Ac).includes(e)?Ac[e]:"";const r={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(r).forEach(([s,a])=>{n=er(n,s,a)}),n}};class mr{constructor(i){re(this,"get",n=>{if(!mr.supported||!this.enabled)return null;const r=window.localStorage.getItem(this.key);if(x.empty(r))return null;const s=JSON.parse(r);return x.string(n)&&n.length?s[n]:s}),re(this,"set",n=>{if(!mr.supported||!this.enabled||!x.object(n))return;let r=this.get();x.empty(r)&&(r={}),Be(r,n);try{window.localStorage.setItem(this.key,JSON.stringify(r))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Cr(e,i="text",n=!1){return new Promise((r,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;n&&(a.withCredentials=!0),a.addEventListener("load",()=>{if(i==="text")try{r(JSON.parse(a.responseText))}catch{r(a.responseText)}else r(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function Cf(e,i){if(!x.string(e))return;const n="cache",r=x.string(i);let s=!1;const a=()=>document.getElementById(i)!==null,o=(c,l)=>{c.innerHTML=l,!(r&&a())&&document.body.insertAdjacentElement("afterbegin",c)};if(!r||!a()){const c=mr.supported,l=document.createElement("div");if(l.setAttribute("hidden",""),r&&l.setAttribute("id",i),c){const f=window.localStorage.getItem(`${n}-${i}`);if(s=f!==null,s){const d=JSON.parse(f);o(l,d.content)}}Cr(e).then(f=>{if(!x.empty(f)){if(c)try{window.localStorage.setItem(`${n}-${i}`,JSON.stringify({content:f}))}catch{}o(l,f)}}).catch(()=>{})}}const xf=e=>Math.trunc(e/60/60%60,10),ov=e=>Math.trunc(e/60%60,10),lv=e=>Math.trunc(e%60,10);function Bs(e=0,i=!1,n=!1){if(!x.number(e))return Bs(void 0,i,n);const r=c=>`0${c}`.slice(-2);let s=xf(e);const a=ov(e),o=lv(e);return i||s>0?s=`${s}:`:s="",`${n&&e>0?"-":""}${s}${r(a)}:${r(o)}`}const ie={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,n=e.host!==i||Ge.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:n}},findElements(){try{return this.elements.controls=ze.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:hr.call(this,this.config.selectors.buttons.play),pause:ze.call(this,this.config.selectors.buttons.pause),restart:ze.call(this,this.config.selectors.buttons.restart),rewind:ze.call(this,this.config.selectors.buttons.rewind),fastForward:ze.call(this,this.config.selectors.buttons.fastForward),mute:ze.call(this,this.config.selectors.buttons.mute),pip:ze.call(this,this.config.selectors.buttons.pip),airplay:ze.call(this,this.config.selectors.buttons.airplay),settings:ze.call(this,this.config.selectors.buttons.settings),captions:ze.call(this,this.config.selectors.buttons.captions),fullscreen:ze.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=ze.call(this,this.config.selectors.progress),this.elements.inputs={seek:ze.call(this,this.config.selectors.inputs.seek),volume:ze.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:ze.call(this,this.config.selectors.display.buffer),currentTime:ze.call(this,this.config.selectors.display.currentTime),duration:ze.call(this,this.config.selectors.display.duration)}
vendor: 4,233 bytes, line 68
68,x.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const n="http://www.w3.org/2000/svg",r=ie.getIconUrl.call(this),s=`${r.cors?"":r.url}#${this.config.iconPrefix}`,a=document.createElementNS(n,"svg");Ka(a,Be(i,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(n,"use"),c=`${s}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",c),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c),a.appendChild(o),a},createLabel(e,i={}){const n=Ye.get(e,this.config),r={...i,class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")};return pe("span",r,n)},createBadge(e){if(x.empty(e))return null;const i=pe("span",{class:this.config.classNames.menu.value});return i.appendChild(pe("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const n=Be({},i);let r=rv(e);const s={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(n).includes(o)&&(s[o]=n[o],delete n[o])}),s.element==="button"&&!Object.keys(n).includes("type")&&(n.type="button"),Object.keys(n).includes("class")?n.class.split(" ").includes(this.config.classNames.control)||Be(n,{class:`${n.class} ${this.config.classNames.control}`}):n.class=this.config.classNames.control,e){case"play":s.toggle=!0,s.label="play",s.labelPressed="pause",s.icon="play",s.iconPressed="pause";break;case"mute":s.toggle=!0,s.label="mute",s.labelPressed="unmute",s.icon="volume",s.iconPressed="muted";break;case"captions":s.toggle=!0,s.label="enableCaptions",s.labelPressed="disableCaptions",s.icon="captions-off",s.iconPressed="captions-on";break;case"fullscreen":s.toggle=!0,s.label="enterFullscreen",s.labelPressed="exitFullscreen",s.icon="enter-fullscreen",s.iconPressed="exit-fullscreen";break;case"play-large":n.class+=` ${this.config.classNames.control}--overlaid`,r="play",s.label="play",s.icon="play";break;default:x.empty(s.label)&&(s.label=r),x.empty(s.icon)&&(s.icon=e)}const a=pe(s.element);return s.toggle?(a.appendChild(ie.createIcon.call(this,s.iconPressed,{class:"icon--pressed"})),a.appendChild(ie.createIcon.call(this,s.icon,{class:"icon--not-pressed"})),a.appendChild(ie.createLabel.call(this,s.labelPressed,{class:"label--pressed"})),a.appendChild(ie.createLabel.call(this,s.label,{class:"label--not-pressed"}))):(a.appendChild(ie.createIcon.call(this,s.icon)),a.appendChild(ie.createLabel.call(this,s.label))),Be(n,At(this.config.selectors.buttons[r],n)),Ka(a,n),r==="play"?(x.array(this.elements.buttons[r])||(this.elements.buttons[r]=[]),this.elements.buttons[r].push(a)):this.elements.buttons[r]=a,a},createRange(e,i){const n=pe("input",Be(At(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":Ye.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=n,ie.updateRangeFill.call(this,n),Ly.setup(n),n},createProgress(e,i){const n=pe("progress",Be(At(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){n.appendChild(pe("span",null,"0"));const r={played:"played",buffer:"buffered"}[e],s=r?Ye.get(r,this.config):"";n.textContent=`% ${s.toLowerCase()}`}return this.elements.display[e]=n,n},createTime(e,i){const n=At(this.config.selectors.display[e],i),r=pe("div",Be(n,{class:`${n.class?n.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":Ye.get(e,this.config),role:"timer"}),"00:00");return this.elements.display[e]=r,r},bindMenuItemShortcuts(e,i){xe.call(this,e,"keydown keyup",n=>{if(![" ","ArrowUp","ArrowDown","ArrowRight"].includes(n.key)||(n.preventDefault(),n.stopPropagation(),n.type==="keydown"))return;const r=Si(e,'[role="menuitemradio"]');if(!r&&[" ","ArrowRight"].includes(n.key))ie.showMenuPanel.call(this,i,!0);else{let s;n.key!==" "&&(n.key==="ArrowDown"||r&&n.key==="ArrowRight"?(s=e.nextElementSibling,x.element
68(s)||(s=e.parentNode.firstElementChild)):(s=e.previousElementSibling,x.element(s)||(s=e.parentNode.lastElementChild)),fa.call(this,s,!0))}},!1),xe.call(this,e,"keyup",n=>{n.key==="Return"&&ie.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:n,title:r,badge:s=null,checked:a=!1}){const o=At(this.config.selectors.inputs[n]),c=pe("button",Be(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":a,value:e})),l=pe("span");l.innerHTML=r,x.element(s)&&l.appendChild(s),c.appendChild(l),Object.defineProperty(c,"checked",{enumerable:!0,get(){return c.getAttribute("aria-checked")==="true"},set(f){f&&Array.from(c.parentNode.children).filter(d=>Si(d,'[role="menuitemradio"]')).forEach(d=>d.setAttribute("aria-checked","false")),c.setAttribute("aria-checked",f?"true":"false")}}),this.listeners.bind(c,"click keyup",f=>{if(!(x.keyboardEvent(f)&&f.key!==" ")){switch(f.preventDefault(),f.stopPropagation(),c.checked=!0,n){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=Number.parseFloat(e);break}ie.showMenuPanel.call(this,"home",x.keyboardEvent(f))}},n,!1),ie.bindMenuItemShortcuts.call(this,c,n),i.appendChild(c)},formatTime(e=0,i=!1){if(!x.number(e))return e;const n=xf(this.duration)>0;return Bs(e,n,i)},updateTimeDisplay(e=null,i=0,n=!1){!x.element(e)||!x.number(i)||(e.textContent=ie.formatTime(i,n))}
68,updateVolume(){this.supported.ui&&(x.element(this.elements.inputs.volume)&&ie.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),x.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){x.element(e)&&(e.value=i,ie.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!x.event(e))return;let i=0;const n=(r,s)=>{const a=x.number(s)?s:0,o=x.element(r)?r:this.elements.display.buffer;if(x.element(o)){o.value=a;const c=o.getElementsByTagName("span")[0];x.element(c)&&(c.childNodes[0].nodeValue=a)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=iv(this.currentTime,this.duration),e.type==="timeupdate"&&ie.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":n(this.elements.display.buffer,this.buffered*100);break}},updateRangeFill(e){const i=x.event(e)?e.target:e;if(!(!x.element(i)||i.getAttribute("type")!=="range")){if(Si(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const n=ie.formatTime(this.currentTime),r=ie.formatTime(this.duration),s=Ye.get("seekLabel",this.config);i.setAttribute("aria-valuetext",s.replace("{currentTime}",n).replace("{duration}",r))}else if(Si(i,this.config.selectors.inputs.volume)){const n=i.value*100;i.setAttribute("aria-valuenow",n),i.setAttribute("aria-valuetext",`${n.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);!Ge.isWebKit&&!Ge.isIPadOS||i.style.setProperty("--value",`${i.value/i.max*100}%`)}},updateSeekTooltip(e){var i,n;
68if(!this.config.tooltips.seek||!x.element(this.elements.inputs.seek)||!x.element(this.elements.display.seekTooltip)||this.duration===0)return;const r=this.elements.display.seekTooltip,s=`${this.config.classNames.tooltip}--visible`,a=d=>Ae(r,s,d);if(this.touch){a(!1);return}let o=0;const c=this.elements.progress.getBoundingClientRect();if(x.event(e)){const d=e.pageX-e.clientX;o=100/c.width*(e.pageX-c.left-d)}else if(ys(r,s))o=Number.parseFloat(r.style.left,10);else return;o<0?o=0:o>100&&(o=100);const l=this.duration/100*o;r.textContent=ie.formatTime(l);const f=(i=this.config.markers)===null||i===void 0||(n=i.points)===null||n===void 0?void 0:n.find(({time:d})=>d===Math.round(l));f&&r.insertAdjacentHTML("afterbegin",`${f.label}<br>`),r.style.left=`${o}%`,x.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&a(e.type==="mouseenter")},timeUpdate(e){const i=!x.element(this.elements.display.duration)&&this.config.invertTime;ie.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),!(e&&e.type==="timeupdate"&&this.media.seeking)&&ie.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32){xi(this.elements.display.currentTime,!0),xi(this.elements.progress,!0);return}x.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=x.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&ie.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&ie.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),this.config.markers.enabled&&ie.setMarkers.call(this),ie.updateSeekTooltip.call(this)},toggleMenuButton(e,i){xi(this.elements.settings.buttons[e],!i)},updateSetting(e,i,n){const r=this.elements.settings.panels[e];let s=null,a=i;if(e==="captions")s=this.currentTrack;else{if(s=x.empty(n)?this[e]:n,x.empty(s)&&(s=this.config[e].default),!x.empty(this.options[e])&&!this.options[e].includes(s)){this.debug.warn(`Unsupported value of '${s}' for ${e}`);return}if(!this.config[e].options.includes(s)){this.debug.warn(`Disabled value of '${s}' for ${e}`);return}}if(x.element(a)||(a=r&&r.querySelector('[role="menu"]')),!x.element(a))return;const o=this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`);o.innerHTML=ie.getLabel.call(this,e,s);const c=a&&a.querySelector(`[value="${s}"]`);x.element(c)&&(c.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?Ye.get("normal",this.config):`${i}&times;`;case"quality":if(x.number(i)){const n=Ye.get(`qualityLabel.${i}`,this.config);return n.length?n:`${i}p`}return Ef(i);case"captions":return ke.getLabel.call(this);default:return null}},setQualityMenu(e){if(!x.element(this.elements.settings.panels.quality))return;const i="quality",n=this.elements.settings.panels.quality.querySelector('[role="menu"]');x.array(e)&&(this.options.quality=Xa(e).filter(a=>this.config.quality.options.includes(a)));const r=!x.empty(this.options.quality)&&this.options.quality.length>1;if(ie.toggleMenuButton.call(this,i,r),Yr(n),ie.checkMenu.call(this),!r)return;const s=a=>{const o=Ye.get(`qualityBadge.${a}`,this.config);return o.length?ie.createBadge.call(this,o):null};this.options.quality.sort((a,o)=>{const c=this.config.quality.options;return c.indexOf(a)>c.indexOf(o)?1:-1}).forEach(a=>{ie.createMenuItem.call(this,{value:a,list:n,type:i,title:ie.getLabel.call(this,"quality",a),badge:s(a)})}),ie.updateSetting.call(this,i,n)},setCaptionsMenu(){if(!x.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),n=ke.getTracks.call(this),r=!!n.length;if(ie.toggleMenuButton.call(this,e,r),Yr(i),ie.checkMenu.call(this),!r)return;const s=n.map((a,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:ke.getLabel.call(this,a),badge:a.language&&ie.createBadge.call(this,a.language.toUpperCase()),list:i,type:"language"}));s.unshift({value:-1,checked:!this.captions.toggled,title:Ye.get("disabled",this.config),list:i,type:"language"}
vendor: 1,071 bytes, line 68
68),s.forEach(ie.createMenuItem.bind(this)),ie.updateSetting.call(this,e,i)},setSpeedMenu(){if(!x.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(r=>r>=this.minimumSpeed&&r<=this.maximumSpeed);const n=!x.empty(this.options.speed)&&this.options.speed.length>1;ie.toggleMenuButton.call(this,e,n),Yr(i),ie.checkMenu.call(this),n&&(this.options.speed.forEach(r=>{ie.createMenuItem.call(this,{value:r,list:i,type:e,title:ie.getLabel.call(this,"speed",r)})}),ie.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!x.empty(e)&&Object.values(e).some(n=>!n.hidden);xi(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let n=e;x.element(n)||(n=Object.values(this.elements.settings.panels).find(s=>!s.hidden));const r=n.querySelector('[role^="menuitem"]');fa.call(this,r,i)},toggleMenu(e){const{popup:i}=this.elements.settings,n=this.elements.buttons.settings;
68if(!x.element(i)||!x.element(n))return;const{hidden:r}=i;let s=r;if(x.boolean(e))s=e;else if(x.keyboardEvent(e)&&e.key==="Escape")s=!1;else if(x.event(e)){const a=x.function(e.composedPath)?e.composedPath()[0]:e.target,o=i.contains(a);if(o||!o&&e.target!==n&&s)return}n.setAttribute("aria-expanded",s),xi(i,!s),Ae(this.elements.container,this.config.classNames.menu.open,s),s&&x.keyboardEvent(e)?ie.focusFirstMenuItem.call(this,null,!0):!s&&!r&&fa.call(this,n,x.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const n=i.scrollWidth,r=i.scrollHeight;return Xt(i),{width:n,height:r}},showMenuPanel(e="",i=!1){const n=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!x.element(n))return;const r=n.parentNode,s=Array.from(r.children).find(a=>!a.hidden);if(qe.transitions&&!qe.reducedMotion){r.style.width=`${s.scrollWidth}px`,r.style.height=`${s.scrollHeight}px`;const a=ie.getMenuSize.call(this,n),o=c=>{c.target!==r||!["width","height"].includes(c.propertyName)||(r.style.width="",r.style.height="",Rs.call(this,r,Ga,o))};xe.call(this,r,Ga,o),r.style.width=`${a.width}px`,r.style.height=`${a.height}px`}xi(s,!0),xi(n,!1),ie.focusFirstMenuItem.call(this,n,i)}
vendor: 4,421 bytes, line 68
68,setDownloadUrl(){const e=this.elements.buttons.download;x.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:n,createProgress:r,createRange:s,createTime:a,setQualityMenu:o,setSpeedMenu:c,showMenuPanel:l}=ie;this.elements.controls=null,x.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(n.call(this,"play-large"));const f=pe("div",At(this.config.selectors.controls.wrapper));this.elements.controls=f;const d={class:"plyr__controls__item"};return Xa(x.array(this.config.controls)?this.config.controls:[]).forEach(h=>{if(h==="restart"&&f.appendChild(n.call(this,"restart",d)),h==="rewind"&&f.appendChild(n.call(this,"rewind",d)),h==="play"&&f.appendChild(n.call(this,"play",d)),h==="fast-forward"&&f.appendChild(n.call(this,"fast-forward",d)),h==="progress"){const p=pe("div",{class:`${d.class} plyr__progress__container`}),g=pe("div",At(this.config.selectors.progress));if(g.appendChild(s.call(this,"seek",{id:`plyr-seek-${e.id}`})),g.appendChild(r.call(this,"buffer")),this.config.tooltips.seek){const v=pe("span",{class:this.config.classNames.tooltip},"00:00");g.appendChild(v),this.elements.display.seekTooltip=v}this.elements.progress=g,p.appendChild(this.elements.progress),f.appendChild(p)}if(h==="current-time"&&f.appendChild(a.call(this,"currentTime",d)),h==="duration"&&f.appendChild(a.call(this,"duration",d)),h==="mute"||h==="volume"){let{volume:p}=this.elements;if((!x.element(p)||!f.contains(p))&&(p=pe("div",Be({},d,{class:`${d.class} plyr__volume`.trim()})),this.elements.volume=p,f.appendChild(p)),h==="mute"&&p.appendChild(n.call(this,"mute")),h==="volume"&&!Ge.isIos&&!Ge.isIPadOS){const g={max:1,step:.05,value:this.config.volume};p.appendChild(s.call(this,"volume",Be(g,{id:`plyr-volume-${e.id}`})))}}if(h==="captions"&&f.appendChild(n.call(this,"captions",d)),h==="settings"&&!x.empty(this.config.settings)){const p=pe("div",Be({},d,{class:`${d.class} plyr__menu`.trim(),hidden:""}));p.appendChild(n.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const g=pe("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),v=pe("div"),y=pe("div",{id:`plyr-settings-${e.id}-home`}),C=pe("div",{role:"menu"});y.appendChild(C),v.appendChild(y),this.elements.settings.panels.home=y,this.config.settings.forEach(T=>{const _=pe("button",Be(At(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,_,T),xe.call(this,_,"click",()=>{l.call(this,T,!1)});const b=pe("span",null,Ye.get(T,this.config)),E=pe("span",{class:this.config.classNames.menu.value});E.innerHTML=e[T],b.appendChild(E),_.appendChild(b),C.appendChild(_);const L=pe("div",{id:`plyr-settings-${e.id}-${T}`,hidden:""}),P=pe("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});P.appendChild(pe("span",{"aria-hidden":!0},Ye.get(T,this.config))),P.appendChild(pe("span",{class:this.config.classNames.hidden},Ye.get("menuBack",this.config))),xe.call(this,L,"keydown",j=>{j.key==="ArrowLeft"&&(j.preventDefault(),j.stopPropagation(),l.call(this,"home",!0))},!1),xe.call(this,P,"click",()=>{l.call(this,"home",!1)}),L.appendChild(P),L.appendChild(pe("div",{role:"menu"})),v.appendChild(L),this.elements.settings.buttons[T]=_,this.elements.settings.panels[T]=L}),g.appendChild(v),p.appendChild(g),f.appendChild(p),this.elements.settings.popup=g,this.elements.settings.menu=p}if(h==="pip"&&qe.pip&&f.appendChild(n.call(this,"pip",d)),h==="airplay"&&qe.airplay&&f.appendChild(n.call(this,"airplay",d)),h==="download"){const p=Be({},d,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(p.download="");const{download:g}=this.config.urls;!x.url(g)&&this.isEmbed&&Be(p,{icon:`logo-${this.provider}`,label:this.provider}),f.appendChild(n.call(this,"download",p))}h==="fullscreen"&&f.appendChild(n.call(this,"fullscreen",d))}),this.isHTML5&&o.call(this,ui.getQualityOptions.call(this)),c.call(this),f},inject(){if(this.config.loadSprite){const o=ie.getIconUrl.call(this);o.cors&&Cf(o.url,"sprite-plyr")}this.id=Math.floor(Math.random()*1e4);let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let n=!0;
68x.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),x.element(this.config.controls)||x.string(this.config.controls)?e=this.config.controls:(e=ie.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:ke.getLabel.call(this)}),n=!1);const r=o=>{let c=o;return Object.entries(i).forEach(([l,f])=>{c=er(c,`{${l}}`,f)}),c};n&&x.string(this.config.controls)&&(e=r(e));let s;x.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),x.element(s)||(s=this.elements.container);const a=x.element(e)?"insertAdjacentElement":"insertAdjacentHTML";if(s[a]("afterbegin",e),x.element(this.elements.controls)||ie.findElements.call(this),!x.empty(this.elements.buttons)){const o=c=>{const l=this.config.classNames.controlPressed;c.setAttribute("aria-pressed","false"),Object.defineProperty(c,"pressed",{configurable:!0,enumerable:!0,get(){return ys(c,l)},set(f=!1){Ae(c,l,f),c.setAttribute("aria-pressed",f?"true":"false")}})};Object.values(this.elements.buttons).filter(Boolean).forEach(c=>{x.array(c)||x.nodeList(c)?Array.from(c).filter(Boolean).forEach(o):o(c)})}if(Ge.isEdge&&mf(s),this.config.tooltips.controls){const{classNames:o,selectors:c}=this.config,l=`${c.controls.wrapper} ${c.labels} .${o.hidden}`,f=hr.call(this,l);Array.from(f).forEach(d=>{Ae(d,this.config.classNames.hidden,!1),Ae(d,this.config.classNames.tooltip,!0)})}},setMediaMetadata(){try{"mediaSession"in navigator&&(navigator.mediaSession.metadata=new window.MediaMetadata({title:this.config.mediaMetadata.title,artist:this.config.mediaMetadata.artist,album:this.config.mediaMetadata.album,artwork:this.config.mediaMetadata.artwork}))}catch{}},setMarkers(){var e,i;if(!this.duration||this.elements.markers)return;const n=(e=this.config.markers)===null||e===void 0||(i=e.points)===null||i===void 0?void 0:i.filter(({time:l})=>l>0&&l<this.duration);if(!(n!=null&&n.length))return;const r=document.createDocumentFragment(),s=document.createDocumentFragment();let a=null;const o=`${this.config.classNames.tooltip}--visible`,c=l=>Ae(a,o,l);n.forEach(l=>{const f=pe("span",{class:this.config.classNames.marker},""),d=`${l.time/this.duration*100}%`;a&&(f.addEventListener("mouseenter",()=>{l.label||(a.style.left=d,a.innerHTML=l.label,c(!0))}),f.addEventListener("mouseleave",()=>{c(!1)})),f.addEventListener("click",()=>{this.currentTime=l.time}),f.style.left=d,s.appendChild(f)}),r.appendChild(s),this.config.tooltips.seek||(a=pe("span",{class:this.config.classNames.tooltip},""),r.appendChild(a)),this.elements.markers={points:s,tip:a},this.elements.progress.appendChild(r)}};function kf(e,i=!0){let n=e;if(i){const r=document.createElement("a");r.href=n,n=r.href}try{return new URL(n)}catch{return null}}function Af(e){const i=new URLSearchParams;return x.object(e)&&Object.entries(e).forEach(([n,r])=>{i.set(n,r)}),i}const ke={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!qe.textTracks){x.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ie.setCaptionsMenu.call(this);return}if(x.element(this.elements.captions)||(this.elements.captions=pe("div",At(this.config.selectors.captions)),this.elements.captions.setAttribute("dir","auto"),Wy(this.elements.captions,this.elements.wrapper)),Ge.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(a=>{const o=a.getAttribute("src"),c=kf(o);c!==null&&c.hostname!==window.location.href.hostname&&["http:","https:"].includes(c.protocol)&&Cr(o,"blob").then(l=>{a.setAttribute("src",window.URL.createObjectURL(l))}).catch(()=>{Xt(a)})})}const e=navigator.languages||[navigator.language||navigator.userLanguage||"en"],i=Xa(e.map(s=>s.split("-")[0]));let n=(this.storage.get("language")||this.captions.language||this.config.captions.language||"auto").toLowerCase();n==="auto"&&([n]=i);let r=this.storage.get("captions")||this.captions.active;if(x.boolean(r)||({active:r}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:r,language:n,languages:i}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";xe.call(this,this.media.textTracks,s,ke.update.bind(this))}setTimeout(ke.update.bind(this),0)},update(){const e=ke.getTracks.call(this,!0),{active:i,language:n,meta:r,currentTrackNode:s}=this.captions,a=!!e.find(o=>o.language===n);this.isHTML5&&this.isVideo&&e.filter(o=>
vendor: 5,164 bytes, lines 68-69
68!r.get(o)).forEach(o=>{this.debug.log("Track added",o),r.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),xe.call(this,o,"cuechange",()=>ke.updateCues.call(this))}),(a&&this.language!==n||!e.includes(s))&&(ke.setLanguage.call(this,n),ke.toggle.call(this,i&&a)),this.elements&&Ae(this.elements.container,this.config.classNames.captions.enabled,!x.empty(e)),x.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&ie.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:n}=this.captions,r=this.config.classNames.captions.active,s=x.nullOrUndefined(e)?!n:e;if(s!==n){if(i||(this.captions.active=s,this.storage.set({captions:s})),!this.language&&s&&!i){const a=ke.getTracks.call(this),o=ke.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);this.captions.language=o.language,ke.set.call(this,a.indexOf(o));return}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=s),Ae(this.elements.container,r,s),this.captions.toggled=s,ie.updateSetting.call(this,"captions"),me.call(this,this.media,s?"captionsenabled":"captionsdisabled")}setTimeout(()=>{s&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const n=ke.getTracks.call(this);if(e===-1){ke.toggle.call(this,!1,i);return}if(!x.number(e)){this.debug.warn("Invalid caption argument",e);return}if(!(e in n)){this.debug.warn("Track not found",e);return}if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const r=n[e],{language:s}=r||{};this.captions.currentTrackNode=r,ie.updateSetting.call(this,"captions"),i||(this.captions.language=s,this.storage.set({language:s})),this.isVimeo&&this.embed.enableTextTrack(s,null,!1),me.call(this,this.media,"languagechange")}ke.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&ke.updateCues.call(this)},setLanguage(e,i=!0){if(!x.string(e)){this.debug.warn("Invalid language argument",e);return}const n=e.toLowerCase();this.captions.language=n;const r=ke.getTracks.call(this),s=ke.findTrack.call(this,[n]);ke.set.call(this,r.indexOf(s),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(n=>!this.isHTML5||e||this.captions.meta.has(n)).filter(n=>["captions","subtitles"].includes(n.kind))},findTrack(e,i=!1){const n=ke.getTracks.call(this),r=o=>Number((this.captions.meta.get(o)||{}).default),s=Array.from(n).sort((o,c)=>r(c)-r(o));let a;return e.every(o=>(a=s.find(c=>c.language===o),!a)),a||(i?s[0]:void 0)},getCurrentTrack(){return ke.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!x.track(i)&&qe.textTracks&&this.captions.toggled&&(i=ke.getCurrentTrack.call(this)),x.track(i)?x.empty(i.label)?x.empty(i.language)?Ye.get("enabled",this.config):e.language.toUpperCase():i.label:Ye.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!x.element(this.elements.captions)){this.debug.warn("No captions element to render to");return}if(!x.nullOrUndefined(e)&&!Array.isArray(e)){this.debug.warn("updateCues: Invalid input",e);return}let i=e;if(!i){const s=ke.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(av)}const n=i.map(s=>s.trim()).join(`
69`);if(n!==this.elements.captions.innerHTML){Yr(this.elements.captions);const s=pe("span",At(this.config.selectors.caption));s.innerHTML=n,this.elements.captions.appendChild(s),me.call(this,this.media,"cuechange")}}},Tf={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.8.4/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"S
69D"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",marker:"plyr__progress__marker",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:"",withCredentials:!1},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1},mediaMetadata:{title:"",artist:"",album:"",artwork:[]},markers:{enabled:!1,points:[]}},ha={active:"picture-in-picture",inactive:"inline"},oi={html5:"html5",youtube:"youtube",vimeo:"vimeo"},pa={audio:"audio",video:"video"};function cv(e){return/^(?:https?:\/\/)?(?:www\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?oi.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?oi.vimeo:null}function ma(){}class uv{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):ma}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):ma}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):ma}}class yt{constructor(i){re(this,"onChange",()=>{if(!this.supported)return;const n=this.player.elements.buttons.fullscreen;
69x.element(n)&&(n.pressed=this.active);const r=this.target===this.player.media?this.target:this.player.elements.container;me.call(this.player,r,this.active?"enterfullscreen":"exitfullscreen",!0)}),re(this,"toggleFallback",(n=!1)=>{if(n){var r,s;this.scrollPosition={x:(r=window.scrollX)!==null&&r!==void 0?r:0,y:(s=window.scrollY)!==null&&s!==void 0?s:0}}else window.scrollTo(this.scrollPosition.x,this.scrollPosition.y);if(document.body.style.overflow=n?"hidden":"",Ae(this.target,this.player.config.classNames.fullscreen.fallback,n),Ge.isIos){let a=document.head.querySelector('meta[name="viewport"]');const o="viewport-fit=cover";a||(a=document.createElement("meta"),a.setAttribute("name","viewport"));const c=x.string(a.content)&&a.content.includes(o);n?(this.cleanupViewport=!c,c||(a.content+=`,${o}`)):this.cleanupViewport&&(a.content=a.content.split(",").filter(l=>l.trim()!==o).join(","))}this.onChange()}),re(this,"trapFocus",n=>{if(Ge.isIos||Ge.isIPadOS||!this.active||n.key!=="Tab")return;const r=document.activeElement,s=hr.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[a]=s,o=s[s.length-1];r===o&&!n.shiftKey?(a.focus(),n.preventDefault()):r===a&&n.shiftKey&&(o.focus(),n.preventDefault())}),re(this,"update",()=>{if(this.supported){let n;this.forceFallback?n="Fallback (forced)":yt.nativeSupported?n="Native":n="Fallback",this.player.debug.log(`${n} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");Ae(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.supported)}),re(this,"enter",()=>{this.supported&&(Ge.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!yt.nativeSupported||this.forceFallback?this.toggleFallback(!0):this.prefix?x.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),re(this,"exit",()=>{if(this.supported){if(Ge.isIos&&this.player.config.fullscreen.iosNative)this.player.isVimeo?this.player.embed.exitFullscreen():this.target.webkitEnterFullscreen(),Mt(this.player.play());else if(!yt.nativeSupported||this.forceFallback)this.toggleFallback(!1);else if(!this.prefix)(document.cancelFullScreen||document.exitFullscreen).call(document);else if(!x.empty(this.prefix)){const n=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${n}${this.property}`]()}}}),re(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=yt.prefix,this.property=yt.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&Uy(this.player.elements.container,i.config.fullscreen.container),xe.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),xe.call(this.player,this.player.elements.container,"dblclick",n=>{x.element(this.player.elements.controls)&&this.player.elements.controls.contains(n.target)||this.player.listeners.proxy(n,this.toggle,"fullscreen")}),xe.call(this,this.player.elements.container,"keydown",n=>this.trapFocus(n)),this.update()}static get nativeSupported(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get useNative(){return yt.nativeSupported&&!this.forceFallback}static get prefix(){if(x.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(r=>x.function(document[`${r}ExitFullscreen`])||x.function(document[`${r}CancelFullScreen`])?(i=r,!0):!1),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get supported(){return[this.player.config.fullscreen.enabled,this.player.isVideo,yt.nativeSupported||this.player.config.fullscreen.fallback,!this.player.isYouTube||yt.nativeSupported||!Ge.isIos||this.player.config.playsinline&&!this.player.config.fullscreen.iosNative].every(Boolean)}get active(){if(!this.supported)return!1;if(!yt.nativeSupported||this.forceFallback)return ys(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){var i;return Ge.isIos&&this.player.config.fullscreen.iosNative?this.player.media:(i=this.player.elements.fullscreen)!==null&&i!==void 0?i:this.player.elements.container}}
vendor: 4,771 bytes, line 69
69function Gr(e,i=1){return new Promise((n,r)=>{const s=new Image,a=()=>{delete s.onload,delete s.onerror,(s.naturalWidth>=i?n:r)(s)};Object.assign(s,{onload:a,onerror:a,src:e})})}const Se={addStyleHook(){Ae(this.elements.container,this.config.selectors.container.replace(".",""),!0),Ae(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui){this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),Se.toggleNativeControls.call(this,!0);return}x.element(this.elements.controls)||(ie.inject.call(this),this.listeners.controls()),Se.toggleNativeControls.call(this),this.isHTML5&&ke.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,ie.updateVolume.call(this),ie.timeUpdate.call(this),ie.durationUpdate.call(this),Se.checkPlaying.call(this),Ae(this.elements.container,this.config.classNames.pip.supported,qe.pip&&this.isHTML5&&this.isVideo),Ae(this.elements.container,this.config.classNames.airplay.supported,qe.airplay&&this.isHTML5),Ae(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{me.call(this,this.media,"ready")},0),Se.setTitle.call(this),this.poster&&Se.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&ie.durationUpdate.call(this),this.config.mediaMetadata&&ie.setMediaMetadata.call(this)},setTitle(){let e=Ye.get("play",this.config);if(x.string(this.config.title)&&!x.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=ze.call(this,"iframe");if(!x.element(i))return;const n=x.empty(this.config.title)?"video":this.config.title,r=Ye.get("frameTitle",this.config);i.setAttribute("title",r.replace("{title}",n))}},togglePoster(e){Ae(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),Gy.call(this).then(()=>Gr(e)).catch(n=>{throw e===this.poster&&Se.togglePoster.call(this,!1),n}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),Se.togglePoster.call(this,!0),e)))},checkPlaying(e){Ae(this.elements.container,this.config.classNames.playing,this.playing),Ae(this.elements.container,this.config.classNames.paused,this.paused),Ae(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",Ye.get(this.playing?"pause":"play",this.config))}),!(x.event(e)&&e.type==="timeupdate")&&Se.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{Ae(this.elements.container,this.config.classNames.loading,this.loading),Se.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const n=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(!!(e||this.loading||this.paused||i.pressed||i.hover||n))}},migrateStyles(){Object.values({...this.media.style}).filter(e=>!x.empty(e)&&x.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),x.empty(this.media.style)&&this.media.removeAttribute("style")}};class dv{constructor(i){re(this,"firstTouch",()=>{const{player:n}=this,{elements:r}=n;n.touch=!0,Ae(r.container,n.config.classNames.isTouch,!0)}),re(this,"global",(n=!0)=>{const{player:r}=this;r.config.keyboard.global&&pr.call(r,window,"keydown keyup",this.handleKey,n,!1),pr.call(r,document.body,"click",this.toggleMenu,n),Zo.call(r,document.body,"touchstart",this.firstTouch)}),re(this,"container",()=>{const{player:n}=this,{config:r,elements:s,timers:a}=n;!r.keyboard.global&&r.keyboard.focused&&xe.call(n,s.container,"keydown keyup",this.handleKey,!1),xe.call(n,s.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",l=>{const{controls:f}=s;f&&l.type==="enterfullscreen"&&(f.pressed=!1,f.hover=!1);const d=["touchstart","touchmove","mousemove"].includes(l.type);let h=0;d&&(Se.toggleControls.call(n,!0),h=n.touch?3e3:2e3),clearTimeout(a.controls),a.controls=setTimeout(()=>Se.toggleControls.call(n,!1),h)});const o=()=>
69{if(!n.isVimeo||n.config.vimeo.premium)return;const l=s.wrapper,{active:f}=n.fullscreen,[d,h]=Qo.call(n),p=bf(`aspect-ratio: ${d} / ${h}`);if(!f){p?(l.style.width=null,l.style.height=null):(l.style.maxWidth=null,l.style.margin=null);return}const[g,v]=Ky(),y=g/v>d/h;p?(l.style.width=y?"auto":"100%",l.style.height=y?"100%":"auto"):(l.style.maxWidth=y?`${v/h*d}px`:null,l.style.margin=y?"0 auto":null)},c=()=>{clearTimeout(a.resized),a.resized=setTimeout(o,50)};xe.call(n,s.container,"enterfullscreen exitfullscreen",l=>{const{target:f}=n.fullscreen;if(f!==s.container||!n.isEmbed&&x.empty(n.config.ratio))return;o(),(l.type==="enterfullscreen"?xe:Rs).call(n,window,"resize",c)})}),re(this,"media",()=>{const{player:n}=this,{elements:r}=n;if(xe.call(n,n.media,"timeupdate seeking seeked",a=>ie.timeUpdate.call(n,a)),xe.call(n,n.media,"durationchange loadeddata loadedmetadata",a=>ie.durationUpdate.call(n,a)),xe.call(n,n.media,"ended",()=>{n.isHTML5&&n.isVideo&&n.config.resetOnEnd&&(n.restart(),n.pause())}),xe.call(n,n.media,"progress playing seeking seeked",a=>ie.updateProgress.call(n,a)),xe.call(n,n.media,"volumechange",a=>ie.updateVolume.call(n,a)),xe.call(n,n.media,"playing play pause ended emptied timeupdate",a=>Se.checkPlaying.call(n,a)),xe.call(n,n.media,"waiting canplay seeked playing",a=>Se.checkLoading.call(n,a)),n.supported.ui&&n.config.clickToPlay&&!n.isAudio){const a=ze.call(n,`.${n.config.classNames.video}`);
vendor: 2,175 bytes, line 69
69if(!x.element(a))return;xe.call(n,r.container,"click",o=>{![r.container,a].includes(o.target)&&!a.contains(o.target)||n.touch&&n.config.hideControls||(n.ended?(this.proxy(o,n.restart,"restart"),this.proxy(o,()=>{Mt(n.play())},"play")):this.proxy(o,()=>{Mt(n.togglePlay())},"play"))})}n.supported.ui&&n.config.disableContextMenu&&xe.call(n,r.wrapper,"contextmenu",a=>{a.preventDefault()},!1),xe.call(n,n.media,"volumechange",()=>{n.storage.set({volume:n.volume,muted:n.muted})}),xe.call(n,n.media,"ratechange",()=>{ie.updateSetting.call(n,"speed"),n.storage.set({speed:n.speed})}),xe.call(n,n.media,"qualitychange",a=>{ie.updateSetting.call(n,"quality",null,a.detail.quality)}),xe.call(n,n.media,"ready qualitychange",()=>{ie.setDownloadUrl.call(n)});const s=n.config.events.concat(["keyup","keydown"]).join(" ");xe.call(n,n.media,s,a=>{let{detail:o={}}=a;a.type==="error"&&(o=n.media.error),me.call(n,r.container,a.type,!0,o)})}),re(this,"proxy",(n,r,s)=>{const{player:a}=this,o=a.config.listeners[s],c=x.function(o);let l=!0;c&&(l=o.call(a,n)),l!==!1&&x.function(r)&&r.call(a,n)}),re(this,"bind",(n,r,s,a,o=!0)=>{const{player:c}=this,l=c.config.listeners[a],f=x.function(l);xe.call(c,n,r,d=>this.proxy(d,s,a),o&&!f)}),re(this,"controls",()=>{const{player:n}=this,{elements:r}=n,s=Ge.isIE?"change":"input";if(r.buttons.play&&Array.from(r.buttons.play).forEach(a=>{this.bind(a,"click",()=>{Mt(n.togglePlay())},"play")}),this.bind(r.buttons.restart,"click",n.restart,"restart"),this.bind(r.buttons.rewind,"click",()=>{n.lastSeekTime=Date.now(),n.rewind()},"rewind"),this.bind(r.buttons.fastForward,"click",()=>{n.lastSeekTime=Date.now(),n.forward()},"fastForward"),this.bind(r.buttons.mute,"click",()=>{n.muted=!n.muted},"mute"),this.bind(r.buttons.captions,"click",()=>n.toggleCaptions()),this.bind(r.buttons.download,"click",()=>{me.call(n,n.media,"download")},"download"),this.bind(r.buttons.fullscreen,"click",()=>{n.fullscreen.toggle()},"fullscreen"),this.bind(r.buttons.pip,"click",()=>{n.pip="toggle"},"pip"),this.bind(r.buttons.airplay,"click",n.airplay,"airplay"),this.bind(r.buttons.settings,"click",a=>{a.stopPropagation(),a.preventDefault(),ie.toggleMenu.call(n,a)}
69,null,!1),this.bind(r.buttons.settings,"keyup",a=>{if([" ","Enter"].includes(a.key)){if(a.key==="Enter"){ie.focusFirstMenuItem.call(n,null,!0);return}a.preventDefault(),a.stopPropagation(),ie.toggleMenu.call(n,a)}},null,!1),this.bind(r.settings.menu,"keydown",a=>{a.key==="Escape"&&ie.toggleMenu.call(n,a)}),this.bind(r.inputs.seek,"mousedown mousemove",a=>{const o=r.progress.getBoundingClientRect(),c=a.pageX-a.clientX,l=100/o.width*(a.pageX-o.left-c);a.currentTarget.setAttribute("seek-value",l)}),this.bind(r.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",a=>{const o=a.currentTarget,c="play-on-seeked";if(x.keyboardEvent(a)&&!["ArrowLeft","ArrowRight"].includes(a.key))return;n.lastSeekTime=Date.now();const l=o.hasAttribute(c),f=["mouseup","touchend","keyup"].includes(a.type);l&&f?(o.removeAttribute(c),Mt(n.play())):!f&&n.playing&&(o.setAttribute(c,""),n.pause())}),Ge.isIos){const a=hr.call(n,'input[type="range"]');Array.from(a).forEach(o=>this.bind(o,s,c=>mf(c.target)))}this.bind(r.inputs.seek,s,a=>{const o=a.currentTarget;let c=o.getAttribute("seek-value");x.empty(c)&&(c=o.value),o.removeAttribute("seek-value"),n.currentTime=c/o.max*n.duration},"seek"),this.bind(r.progress,"mouseenter mouseleave mousemove",a=>ie.updateSeekTooltip.call(n,a)),this.bind(r.progress,"mousemove touchmove",a=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.startMove(a)}),this.bind(r.progress,"mouseleave touchend click",()=>{const{previewThumbnails:a}=n;a&&a.loaded&&a.endMove(!1,!0)}),this.bind(r.progress,"mousedown touchstart",a=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.startScrubbing(a)}),this.bind(r.progress,"mouseup touchend",a=>{const{previewThumbnails:o}=n;o&&o.loaded&&o.endScrubbing(a)}),Ge.isWebKit&&Array.from(hr.call(n,'input[type="range"]')).forEach(a=>{this.bind(a,"input",o=>ie.updateRangeFill.call(n,o.target))}),n.config.toggleInvert&&!x.element(r.display.duration)&&this.bind(r.display.currentTime,"click",()=>{n.currentTime!==0&&(n.config.invertTime=!n.config.invertTime,ie.timeUpdate.call(n))}),this.bind(r.inputs.volume,s,a=>{n.volume=a.target.value},"volume"),this.bind(r.controls,"mouseenter mouseleave",a=>{r.controls.hover=!n.touch&&a.type==="mouseenter"}),r.fullscreen&&Array.from(r.fullscreen.children).filter(a=>
69!a.contains(r.container)).forEach(a=>{this.bind(a,"mouseenter mouseleave",o=>{r.controls&&(r.controls.hover=!n.touch&&o.type==="mouseenter")})}),this.bind(r.controls,"mousedown mouseup touchstart touchend touchcancel",a=>{r.controls.pressed=["mousedown","touchstart"].includes(a.type)}),this.bind(r.controls,"focusin",()=>{const{config:a,timers:o}=n;Ae(r.controls,a.classNames.noTransition,!0),Se.toggleControls.call(n,!0),setTimeout(()=>{Ae(r.controls,a.classNames.noTransition,!1)},0);const c=this.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(()=>Se.toggleControls.call(n,!1),c)}),this.bind(r.inputs.volume,"wheel",a=>{const o=a.webkitDirectionInvertedFromDevice,[c,l]=[a.deltaX,-a.deltaY].map(h=>o?-h:h),f=Math.sign(Math.abs(c)>Math.abs(l)?c:l);n.increaseVolume(f/50);const{volume:d}=n.media;(f===1&&d<1||f===-1&&d>0)&&a.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:n}=this,{elements:r}=n,{key:s,type:a,altKey:o,ctrlKey:c,metaKey:l,shiftKey:f}=i,d=a==="keydown",h=d&&s===this.lastKey;if(o||c||l||f||!s)return;const p=g=>{n.currentTime=n.duration/10*g};if(d){const g=document.activeElement;
69if(x.element(g)){const{editable:y}=n.config.selectors,{seek:C}=r.inputs;if(g!==C&&Si(g,y)||i.key===" "&&Si(g,'button, [role^="menuitem"]'))return}switch([" ","ArrowLeft","ArrowUp","ArrowRight","ArrowDown","0","1","2","3","4","5","6","7","8","9","c","f","k","l","m"].includes(s)&&(i.preventDefault(),i.stopPropagation()),s){case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":h||p(Number.parseInt(s,10));break;case" ":case"k":h||Mt(n.togglePlay());break;case"ArrowUp":n.increaseVolume(.1);break;case"ArrowDown":n.decreaseVolume(.1);break;case"m":h||(n.muted=!n.muted);break;case"ArrowRight":n.forward();break;case"ArrowLeft":n.rewind();break;case"f":n.fullscreen.toggle();break;case"c":h||n.toggleCaptions();break;case"l":n.loop=!n.loop;break}s==="Escape"&&!n.fullscreen.usingNative&&n.fullscreen.active&&n.fullscreen.toggle(),this.lastKey=s}else this.lastKey=null}toggleMenu(i){ie.toggleMenu.call(this.player,i)}}function fv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Kr={exports:{}},hv=Kr.exports,Tc;function pv(){return Tc||(Tc=1,function(e,i){(function(n,r){e.exports=r()})(hv,function(){var n=function(){},r={},s={},a={};function o(p,g){p=p.push?p:[p];var v=[],y=p.length,C=y,T,_,b,E;for(T=function(L,P){P.length&&v.push(L),C--,C||g(v)};y--;){if(_=p[y],b=s[_],b){T(_,b);continue}E=a[_]=a[_]||[],E.push(T)}}function c(p,g){if(p){var v=a[p];if(s[p]=g,!!v)for(;v.length;)v[0](p,g),v.splice(0,1)}}function l(p,g){p.call&&(p={success:p}),g.length?(p.error||n)(g):(p.success||n)(p)}function f(p,g,v,y){var C=document,T=v.async,_=(v.numRetries||0)+1,b=v.before||n,E=p.replace(/[\?|#].*$/,""),L=p.replace(/^(css|img|module|nomodule)!/,""),P,j,H;if(y=y||0,/(^css!|\.css$)/.test(E))H=C.createElement("link"),H.rel="stylesheet",H.href=L,P="hideFocus"in H,P&&H.relList&&(P=0,H.rel="preload",H.as="style");else if(/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(E))H=C.createElement("img"),H.src=L;else if(H=C.createElement("script"),H.src=L,H.async=T===void 0?!0:T,j="noModule"in H,/^module!/.test(E)){if(!j)return g(p,"l");H.type="module"}else if(/^nomodule!/.test(E)&&j)return g(p,"l");H.onload=H.onerror=H.onbeforeload=function(q){var U=q.type[0];if(P)try{H.sheet.cssText.length||(U="e")}catch(Q){Q.code!=18&&(U="e")}if(U=="e"){if(y+=1,y<_)return f(p,g,v,y)}else if(H.rel=="preload"&&H.as=="style")return H.rel="stylesheet";g(p,U,q.defaultPrevented)},b(p,H)!==!1&&C.head.appendChild(H)}function d(p,g,v){p=p.push?p:[p];var y=p.length,C=y,T=[],_,b;for(_=function(E,L,P){if(L=="e"&&T.push(E),L=="b")if(P)T.push(E);else return;y--,y||g(T)},b=0;b<C;b++)f(p[b],_,v)}function h(p,g,v){var y,C;if(g&&g.trim&&(y=g),C=(y?v:g)||{},y){if(y in r)throw"LoadJS";r[y]=!0}function T(_,b){d(p,function(E){l(C,E),_&&l({success:_,error:b},E),c(y,E)},C)}if(C.returnPromise)return new Promise(T);T()}return h.ready=function(g,v){return o(g,function(y){l(v,y)}),h},h.done=function(g){c(g,[])},h.reset=function(){r={},s={},a={}},h.isDefined=function(g){return g in r},h})}(Kr)),Kr.exports}var mv=pv(),gv=fv(mv);function el(e){return new Promise((i,n)=>{gv(e,{success:i,error:n})})}function yv(e){if(x.empty(e))return null;if(x.number(Number(e)))return e;const i=/^.*(vimeo.com\/|video\/)(\d+).*/,n=e.match(i);return n?n[2]:e}function vv(e){const i=/^.*(vimeo.com\/|video\/)(\d+)(\?.*h=|\/)+([\d,a-f]+)/,n=e.match(i);return n&&n.length===5?n[4]:null}function Bn(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,me.call(this,this.media,e?"play":"pause"))}const Za={setup(){const e=this;Ae(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,pn.call(e),x.object(window.Vimeo)?Za.ready.call(e):el(e.config.urls.vimeo.sdk).then(()=>{Za.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,{premium:n,referrerPolicy:r,...s}=i;let a=e.media.getAttribute("src"),o="";x.empty(a)?(a=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=vv(a);const c=o?{h:o}:{};n&&Object.assign(s,{controls:!1,sidedock:!1});const l=Af({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:e.config.playsinline,...c,...s}),f=yv(a),d=pe("iframe"),h=Ja(e.config.urls.vimeo.iframe,f,l);if(d.setAttribute("src",h),d.setAttribute("allowfullscreen",""),d.setAttribute("allow",["auto
69play","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),x.empty(r)||d.setAttribute("referrerPolicy",r),n||!i.customControls)d.setAttribute("data-poster",e.poster),e.media=gs(d,e.media);else{const _=pe("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});_.appendChild(d),e.media=gs(_,e.media)}i.customControls||Cr(Ja(e.config.urls.vimeo.api,h)).then(_=>{x.empty(_)||!_.thumbnail_url||Se.setPoster.call(e,_.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(d,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Bn.call(e,!0),e.embed.play()),e.media.pause=()=>(Bn.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:p}=e.media;Object.defineProperty(e.media,"currentTime",{get(){return p},set(_){const{embed:b,media:E,paused:L,volume:P}=e,j=L&&!b.hasPlayed;E.seeking=!0,me.call(e,E,"seeking"),Promise.resolve(j&&b.setVolume(0)).then(()=>b.setCurrentTime(_)).then(()=>j&&b.pause()).then(()=>j&&b.setVolume(P)).catch(()=>{})}});let g=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get(){return g},set(_){e.embed.setPlaybackRate(_).then(()=>{g=_,me.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:v}=e.config;Object.defineProperty(e.media,"volume",{get(){return v},set(_){e.embed.setVolume(_).then(()=>{v=_,me.call(e,e.media,"volumechange")})}});let{muted:y}=e.config;Object.defineProperty(e.media,"muted",{get(){return y},set(_){const b=x.boolean(_)?_:!1;e.embed.setMuted(b?!0:e.config.muted).then(()=>{y=b,me.call(e,e.media,"volumechange")})}});let{loop:C}=e.config;Object.defineProperty(e.media,"loop",{get(){return C},set(_){const b=x.boolean(_)?_:e.config.loop.active;e.embed.setLoop(b).then(()=>{C=b})}});let T;e.embed.getVideoUrl().then(_=>{T=_,ie.setDownloadUrl.call(e)}).catch(_=>{this.debug.warn(_)}),Object.defineProperty(e.media,"currentSrc",{get(){return T}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(_=>{const[b,E]=_;e.embed.ratio=_f(b,E),pn.call(this)}),e.embed.setAutopause(e.config.autopause).then(_=>{e.config.autopause=_}),e.embed.getVideoTitle().then(_=>{e.config.title=_,Se.setTitle.call(this)}),e.embed.getCurrentTime().then(_=>{p=_,me.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(_=>{e.media.duration=_,me.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(_=>{e.media.textTracks=_,ke.setup.call(e)}),e.embed.on("cuechange",({cues:_=[]})=>{const b=_.map(E=>sv(E.text));ke.updateCues.call(e,b)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(_=>{Bn.call(e,!_),_||me.call(e,e.media,"playing")}),x.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{me.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{me.call(e,e.media,"playing")}),e.embed.on("play",()=>{Bn.call(e,!0),me.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Bn.call(e,!1)}),e.embed.on("timeupdate",_=>{e.media.seeking=!1,p=_.seconds,me.call(e,e.media,"timeupdate")}),e.embed.on("progress",_=>{e.media.buffered=_.percent,me.call(e,e.media,"progress"),Number.parseInt(_.percent,10)===1&&me.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(b=>{b!==e.media.duration&&(e.media.duration=b,me.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,me.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,me.call(e,e.media,"ended")}),e.embed.on("error",_=>{e.media.error=_,me.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>Se.build.call(e),0)}};function bv(e){if(x.empty(e))return null;const i=/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/,n=e.match(i);return n&&n[2]?n[2]:e}function qn(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,me.call(this,this.media,e?"play":"pause"))}function wv(e){if(e.noCookie)return"https://www.youtube-nocookie.com";if(window.location.protocol==="http:")return"http://www.youtube.com"}const Xr={setup(){if(Ae(this.elements.wrapper,this.config.classNames.embed,!0),x.object(window.YT)&&x.function(window.YT.Player))Xr.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{x.function(e)&&e(),Xr.ready.call(this)},el(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){const i=Ja(this.config.urls.youtube.api,e);Cr(i).then(n=>{if(x.object(n)){const{title:r,height:s,width:a}=n;this.config.title=r,Se.setTitle.call(this),this.embed.ratio=_f(a,s)}pn.call(this)}).catch(()=>{pn.call(this)})},ready(){const e=this,i=e.config.youtube,n=e.media&&e.media.getAttribute("id");if(!x.empty(n)&&n.startsWith("youtube-"))return;let r=e.media.getAttribute("src");x.empty(r)&&(r=e.media.getAttribute(this.config.attributes.embed.id));const s=bv(r),a=tv(e.provider),o=pe("div",{id:a,"data-poster":i.customControls?e.poster:void 0});if(e.media=gs(o,e.media),i.customControls){const c=l=>`https://i.ytimg.com/vi/${s}/${l}default.jpg`;Gr(c("maxres"),121).catch(()=>
vendor: 6,660 bytes, line 69
69Gr(c("sd"),121)).catch(()=>Gr(c("hq"))).then(l=>Se.setPoster.call(e,l.src)).then(l=>{l.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:s,host:wv(i),playerVars:Be({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.playsinline&&!e.config.fullscreen.iosNative?1:0,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(c){if(!e.media.error){const l=c.data,f={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[l]||"An unknown error occurred";e.media.error={code:l,message:f},me.call(e,e.media,"error")}},onPlaybackRateChange(c){const l=c.target;e.media.playbackRate=l.getPlaybackRate(),me.call(e,e.media,"ratechange")},onReady(c){if(x.function(e.media.play))return;const l=c.target;Xr.getTitle.call(e,s),e.media.play=()=>{qn.call(e,!0),l.playVideo()},e.media.pause=()=>{qn.call(e,!1),l.pauseVideo()},e.media.stop=()=>{l.stopVideo()},e.media.duration=l.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get(){return Number(l.getCurrentTime())},set(p){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,me.call(e,e.media,"seeking"),l.seekTo(p)}}),Object.defineProperty(e.media,"playbackRate",{get(){return l.getPlaybackRate()},set(p){l.setPlaybackRate(p)}});let{volume:f}=e.config;Object.defineProperty(e.media,"volume",{get(){return f},set(p){f=p,l.setVolume(f*100),me.call(e,e.media,"volumechange")}});let{muted:d}=e.config;Object.defineProperty(e.media,"muted",{get(){return d},set(p){const g=x.boolean(p)?p:d;d=g,l[g?"mute":"unMute"](),l.setVolume(f*100),me.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get(){return l.getVideoUrl()}}),Object.defineProperty(e.media,"ended",{get(){return e.currentTime===e.duration}});const h=l.getAvailablePlaybackRates();e.options.speed=h.filter(p=>e.config.speed.options.includes(p)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),me.call(e,e.media,"timeupdate"),me.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=l.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBuffered<e.media.buffered)&&me.call(e,e.media,"progress"),e.media.lastBuffered=e.media.buffered,e.media.buffered===1&&(clearInterval(e.timers.buffering),me.call(e,e.media,"canplaythrough"))},200),i.customControls&&setTimeout(()=>Se.build.call(e),50)},onStateChange(c){const l=c.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(c.data)&&(e.media.seeking=!1,me.call(e,e.media,"seeked")),c.data){case-1:me.call(e,e.media,"timeupdate"),e.media.buffered=l.getVideoLoadedFraction(),me.call(e,e.media,"progress");break;case 0:qn.call(e,!1),e.media.loop?(l.stopVideo(),l.playVideo()):me.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(qn.call(e,!0),me.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{me.call(e,e.media,"timeupdate")},50),e.media.duration!==l.getDuration()&&(e.media.duration=l.getDuration(),me.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),qn.call(e,!1);break;case 3:me.call(e,e.media,"waiting");break}me.call(e,e.elements.container,"statechange",!1,{code:c.data})}}})}},Sf={setup(){if(!this.media){this.debug.warn("No media element found!");return}Ae(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),Ae(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&Ae(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=pe("div",{class:this.config.classNames.video}),yf(this.media,this.elements.wrapper),this.elements.poster=pe("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?ui.setup.call(this):this.isYouTube?Xr.setup.call(this):this.isVimeo&&Za.setup.call(this)}};function _v(e){e.manager&&e.manager.destroy(),e.elements.displayContainer&&e.elements.displayContainer.destroy(),e.elements.container.remove()}class Ev{constructor(i){re(this,"load",()=>{this.enabled&&(!x.object(window.google)||!x.object(window.google.ima)?el(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}):this.ready())}),re(this,"ready",()=>{this.enabled||_v(this),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),re(this,"setupIMA",()=>{this.elements.container=pe("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,n=>this.onAdsManagerLoaded(n),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,n=>this.onAdError(n),!1),this.requestAds()}),re(this,"requestAds",()=>{const{container:n}=this.player.elements;try{const r=new google.ima.AdsRequest;r.adTagUrl=this.tagUrl,r.linearAdSlotWidth=n.offsetWidth,r.linearAdSlotHeight=n.offsetHeight,r.nonLinearAdSlotWidth=n.offsetWidth,r.nonLinearAdSlotHeight=n.offsetHeight,r.forceNonLinearFullSlot=!1,r.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(r)}catch(r){this.onAdError(r)}}),re(this,"pollCountdown",(n=!1)=>
vendor: 20,949 bytes, line 69
69{if(!n){clearInterval(this.countdownTimer),this.elements.container.removeAttribute("data-badge-text");return}const r=()=>{const s=Bs(Math.max(this.manager.getRemainingTime(),0)),a=`${Ye.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)};this.countdownTimer=setInterval(r,100)}),re(this,"onAdsManagerLoaded",n=>{if(!this.enabled)return;const r=new google.ima.AdsRenderingSettings;r.restoreCustomPlaybackStateOnAdBreakComplete=!0,r.enablePreloading=!0,this.manager=n.getAdsManager(this.player,r),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,s=>this.onAdError(s)),Object.keys(google.ima.AdEvent.Type).forEach(s=>{this.manager.addEventListener(google.ima.AdEvent.Type[s],a=>this.onAdEvent(a))}),this.trigger("loaded")}),re(this,"addCuePoints",()=>{x.empty(this.cuePoints)||this.cuePoints.forEach(n=>{if(n!==0&&n!==-1&&n<this.player.duration){const r=this.player.elements.progress;if(x.element(r)){const s=100/this.player.duration*n,a=pe("span",{class:this.player.config.classNames.cues});a.style.left=`${s.toString()}%`,r.appendChild(a)}}})}),re(this,"onAdEvent",n=>{const{container:r}=this.player.elements,s=n.getAd(),a=n.getAdData();switch((c=>{me.call(this.player,this.player.media,`ads${c.replace(/_/g,"").toLowerCase()}`)})(n.type),n.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),s.isLinear()||(s.width=r.offsetWidth,s.height=r.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:a.adError&&this.player.debug.warn(`Non-fatal ad error: ${a.adError.getMessage()}`);break}}),re(this,"onAdError",n=>{this.cancel(),this.player.debug.warn("Ads error",n)}),re(this,"listeners",()=>{const{container:n}=this.player.elements;let r;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{r=this.player.currentTime}),this.player.on("seeked",()=>{const s=this.player.currentTime;x.empty(this.cuePoints)||this.cuePoints.forEach((a,o)=>{r<a&&a<s&&(this.manager.discardAdBreak(),this.cuePoints.splice(o,1))})}),window.addEventListener("resize",()=>{this.manager&&this.manager.resize(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL)})}),re(this,"play",()=>{const{container:n}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(n.offsetWidth,n.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(r){this.onAdError(r)}}).catch(()=>{})}),re(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,Mt(this.player.media.play())}),re(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),re(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),re(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(n=>{this.on("loaded",n),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),re(this,"trigger",(n,...r)=>{const s=this.events[n];x.array(s)&&s.forEach(a=>{x.function(a)&&a.apply(this,r)})}),re(this,"on",(n,r)=>(x.array(this.events[n])||(this.events[n]=[]),this.events[n].push(r),this)),re(this,"startSafetyTimer",(n,r)=>{this.player.debug.log(`Safety timer invoked from: ${r}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},n)}),re(this,"clearSafetyTimer",n=>{x.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${n}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((n,r)=>{this.on("loaded",n),this.on("error",r)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!x.empty(i.publisherId)||x.url(i.tagUrl))}get tagUrl(){const{config:i}=this;if(x.url(i.tagUrl))return i.tagUrl;const n={AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId};return`https://go.aniview.com/api/adserver6/vast/?${Af(n)}`}}function Df(e=0,i=0,n=255){return Math.min(Math.max(e,i),n)}function Cv(e){const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(r=>{const s={};r.split(/\r\n|\n|\r/).forEach(o=>{if(x.number(s.startTime)){if(!x.empty(o.trim())&&x.empty(s.text)){const c=o.trim().split("#xywh=");[s.text]=c,c[1]&&([s.x,s.y,s.w,s.h]=c[1].split(","))}}else{const c=o.match(/(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})( ?--> ?)(\d{2})?:?(\d{2}):(\d{2}).(\d{2,3})/);c&&(s.startTime=Number(c[1]||0)*60*60+Number(c[2])*60+Number(c[3])+ +`0.${c[4]}`,s.endTime=Number(c[6]||0)*60*60+Number(c[7])*60+Number(c[8])+ +`0.${c[9]}`)}}),s.text&&i.push(s)}),i}function Sc(e,i){const n=i.width/i.height,r={};return e>n?(r.width=i.width,r.height=1/e*i.width):(r.height=i.height,r.width=e*i.height),r}class Qa{constructor(i){re(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.listeners(),this.loaded=!0)})}),re(this,"getThumbnails",()=>new Promise(n=>{const{src:r}=this.player.config.previewThumbnails;if(x.empty(r))throw new Error("Missing previewThumbnails.src config attribute");const s=()=>{this.thumbnails.sort((a,o)=>a.height-o.height),this.player.debug.log("Preview thumbnails",this.thumbnails),n()};if(x.function(r))r(a=>{this.thumbnails=a,s()});else{const o=(x.string(r)?[r]:r).map(c=>this.getThumbnail(c));Promise.all(o).then(s)}})),re(this,"getThumbnail",n=>new Promise(r=>{Cr(n,void 0,this.player.config.previewThumbnails.withCredentials).then(s=>{const a={frames:Cv(s),height:null,urlPrefix:""};!a.frames[0].text.startsWith("/")&&!a.frames[0].text.startsWith("http://")&&!a.frames[0].text.startsWith("https://")&&(a.urlPrefix=n.substring(0,n.lastIndexOf("/")+1));const o=new Image;o.onload=()=>{a.height=o.naturalHeight,a.width=o.naturalWidth,this.thumbnails.push(a),r()},o.src=a.urlPrefix+a.frames[0].text})})),re(this,"startMove",n=>{if(this.loaded&&!(!x.event(n)||!["touchmove","mousemove"].includes(n.type))&&this.player.media.duration){if(n.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{var r,s;const a=this.player.elements.progress.getBoundingClientRect(),o=100/a.width*(n.pageX-a.left);this.seekTime=this.player.media.duration*(o/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=n.pageX,this.elements.thumb.time.textContent=Bs(this.seekTime);const c=(r=this.player.config.markers)===null||r===void 0||(s=r.points)===null||s===void 0?void 0:s.find(({time:l})=>l===Math.round(this.seekTime));c&&this.elements.thumb.time.insertAdjacentHTML("afterbegin",`${c.label}<br>`)}this.showImageAtCurrentTime()}}),re(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),re(this,"startScrubbing",n=>{(x.nullOrUndefined(n.button)||n.button===!1||n.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),re(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):Zo.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),re(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),re(this,"render",()=>{this.elements.thumb.container=pe("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=pe("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const n=pe("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=pe("span",{},"00:00"),n.appendChild(this.elements.thumb.time),this.elements.thumb.imageContainer.appendChild(n),x.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=pe("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),re(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),re(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const n=this.thumbnails[0].frames.findIndex(a=>this.seekTime>=a.startTime&&this.seekTime<=a.endTime),r=n>=0;let s=0;this.mouseDown||this.toggleThumbContainer(r),r&&(this.thumbnails.forEach((a,o)=>{this.loadedImages.includes(a.frames[n].text)&&(s=o)}),n!==this.showingThumb&&(this.showingThumb=n,this.loadImage(s)))}),re(this,"loadImage",(n=0)=>{const r=this.showingThumb,s=this.thumbnails[n],{urlPrefix:a}=s,o=s.frames[r],c=s.frames[r].text,l=a+c;if(!this.currentImageElement||this.currentImageElement.dataset.filename!==c){this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const f=new Image;f.src=l,f.dataset.index=r,f.dataset.filename=c,this.showingThumbFilename=c,this.player.debug.log(`Loading image: ${l}`),f.onload=()=>this.showImage(f,o,n,r,c,!0),this.loadingImage=f,this.removeOldImages(f)}else this.showImage(this.currentImageElement,o,n,r,c,!1),this.currentImageElement.dataset.index=r,this.removeOldImages(this.currentImageElement)}),re(this,"showImage",(n,r,s,a,o,c=!0)=>{this.player.debug.log(`Showing thumb: ${o}. num: ${a}. qual: ${s}. newimg: ${c}`),this.setImageSizeAndOffset(n,r),c&&(this.currentImageContainer.appendChild(n),this.currentImageElement=n,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(a,!0).then(this.preloadNearby(a,!1)).then(this.getHigherQuality(s,n,r,o))}),re(this,"removeOldImages",n=>{Array.from(this.currentImageContainer.children).forEach(r=>{if(r.tagName.toLowerCase()!=="img")return;const s=this.usingSprites?500:1e3;if(r.dataset.index!==n.dataset.index&&!r.dataset.deleting){r.dataset.deleting=!0;const{currentImageContainer:a}=this;setTimeout(()=>{a.removeChild(r),this.player.debug.log(`Removing thumb: ${r.dataset.filename}`)},s)}})}),re(this,"preloadNearby",(n,r=!0)=>new Promise(s=>{setTimeout(()=>{const a=this.thumbnails[0].frames[n].text;if(this.showingThumbFilename===a){let o;r?o=this.thumbnails[0].frames.slice(n):o=this.thumbnails[0].frames.slice(0,n).reverse();let c=!1;o.forEach(l=>{const f=l.text;if(f!==a&&!this.loadedImages.includes(f)){c=!0,this.player.debug.log(`Preloading thumb filename: ${f}`);const{urlPrefix:d}=this.thumbnails[0],h=d+f,p=new Image;p.src=h,p.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${f}`),this.loadedImages.includes(f)||this.loadedImages.push(f),s()}}}),c||s()}},300)})),re(this,"getHigherQuality",(n,r,s,a)=>{if(n<this.thumbnails.length-1){let o=r.naturalHeight;this.usingSprites&&(o=s.h),o<this.thumbContainerHeight&&setTimeout(()=>{this.showingThumbFilename===a&&(this.player.debug.log(`Showing higher quality thumb for: ${a}`),this.loadImage(n+1))},300)}}),re(this,"toggleThumbContainer",(n=!1,r=!1)=>{const s=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(s,n),!n&&r&&(this.showingThumb=null,this.showingThumbFilename=null)}),re(this,"toggleScrubbingContainer",(n=!1)=>{const r=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(r,n),n||(this.showingThumb=null,this.showingThumbFilename=null)}),re(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),re(this,"setThumbContainerSizeAndPos",()=>{const{imageContainer:n}=this.elements.thumb;if(this.sizeSpecifiedInCSS){if(n.clientHeight>20&&n.clientWidth<20){const r=Math.floor(n.clientHeight*this.thumbAspectRatio);n.style.width=`${r}px`}else if(n.clientHeight<20&&n.clientWidth>20){const r=Math.floor(n.clientWidth/this.thumbAspectRatio);n.style.height=`${r}px`}}else{const r=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);n.style.height=`${this.thumbContainerHeight}px`,n.style.width=`${r}px`}this.setThumbContainerPos()}),re(this,"setThumbContainerPos",()=>{const n=this.player.elements.progress.getBoundingClientRect(),r=this.player.elements.container.getBoundingClientRect(),{container:s}=this.elements.thumb,a=r.left-n.left+10,o=r.right-n.left-s.clientWidth-10,c=this.mousePosX-n.left-s.clientWidth/2,l=Df(c,a,o);s.style.left=`${l}px`,s.style.setProperty("--preview-arrow-offset",`${c-l}px`)}),re(this,"setScrubbingContainerSize",()=>{const{width:n,height:r}=Sc(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${n}px`,this.elements.scrubbing.container.style.height=`${r}px`}),re(this,"setImageSizeAndOffset",(n,r)=>{if(!this.usingSprites)return;const s=this.thumbContainerHeight/r.h;n.style.height=`${n.naturalHeight*s}px`,n.style.width=`${n.naturalWidth*s}px`,n.style.left=`-${r.x*s}px`,n.style.top=`-${r.y*s}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=Sc(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const eo={insertElements(e,i){x.string(i)?Cc(e,this.media,{src:i}):x.array(i)&&i.forEach(n=>{Cc(e,this.media,n)})},change(e){if(!gf(e,"sources.length")){this.debug.warn("Invalid source format");return}ui.cancelRequests.call(this),this.destroy(()=>{this.options.quality=[],Xt(this.media),this.media=null,x.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:n}=e,[{provider:r=oi.html5,src:s}]=i,a=r==="html5"?n:"div",o=r==="html5"?{}:{src:s};Object.assign(this,{provider:r,type:n,supported:qe.check(n,r,this.config.playsinline),media:pe(a,o)}),this.elements.container.appendChild(this.media),x.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),x.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),Se.addStyleHook.call(this),this.isHTML5&&eo.insertElements.call(this,"source",i),this.config.title=e.title,Sf.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&eo.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Se.build.call(this),this.isHTML5&&this.media.load(),x.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Qa(this))),this.fullscreen.update()},!0)}};class gr{constructor(i,n){if(re(this,"play",()=>x.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>Mt(this.media.play())),this.media.play()):null),re(this,"pause",()=>!this.playing||!x.function(this.media.pause)?null:this.media.pause()),re(this,"togglePlay",c=>(x.boolean(c)?c:!this.playing)?this.play():this.pause()),re(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):x.function(this.media.stop)&&this.media.stop()}),re(this,"restart",()=>{this.currentTime=0}),re(this,"rewind",c=>{this.currentTime-=x.number(c)?c:this.config.seekTime}),re(this,"forward",c=>{this.currentTime+=x.number(c)?c:this.config.seekTime}),re(this,"increaseVolume",c=>{const l=this.media.muted?0:this.volume;this.volume=l+(x.number(c)?c:0)}),re(this,"decreaseVolume",c=>{this.increaseVolume(-c)}),re(this,"airplay",()=>{qe.airplay&&this.media.webkitShowPlaybackTargetPicker()}),re(this,"toggleControls",c=>{if(this.supported.ui&&!this.isAudio){const l=ys(this.elements.container,this.config.classNames.hideControls),f=typeof c>"u"?void 0:!c,d=Ae(this.elements.container,this.config.classNames.hideControls,f);if(d&&x.array(this.config.controls)&&this.config.controls.includes("settings")&&!x.empty(this.config.settings)&&ie.toggleMenu.call(this,!1),d!==l){const h=d?"controlshidden":"controlsshown";me.call(this,this.media,h)}return!d}return!1}),re(this,"on",(c,l)=>{xe.call(this,this.elements.container,c,l)}),re(this,"once",(c,l)=>{Zo.call(this,this.elements.container,c,l)}),re(this,"off",(c,l)=>{Rs(this.elements.container,c,l)}),re(this,"destroy",(c,l=!1)=>{if(!this.ready)return;const f=()=>{document.body.style.overflow="",this.embed=null,l?(Object.keys(this.elements).length&&(Xt(this.elements.buttons.play),Xt(this.elements.captions),Xt(this.elements.controls),Xt(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),x.function(c)&&c()):(Yy.call(this),ui.cancelRequests.call(this),gs(this.elements.original,this.elements.container),me.call(this,this.elements.original,"destroyed",!0),x.function(c)&&c.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(Se.toggleNativeControls.call(this,!0),f()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&x.function(this.embed.destroy)&&this.embed.destroy(),f()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(f),setTimeout(f,200))}),re(this,"supports",c=>qe.mime.call(this,c)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=qe.touch,this.media=i,x.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||x.nodeList(this.media)||x.array(this.media))&&(this.media=this.media[0]),this.config=Be({},Tf,gr.defaults,n||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new uv(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",qe),x.nullOrUndefined(this.media)||!x.element
69(this.media)){this.debug.error("Setup failed: no suitable element passed");return}if(this.media.plyr){this.debug.warn("Target already setup");return}if(!this.config.enabled){this.debug.error("Setup failed: disabled by config");return}if(!qe.check().api){this.debug.error("Setup failed: no support");return}const r=this.media.cloneNode(!0);r.autoplay=!1,this.elements.original=r;const s=this.media.tagName.toLowerCase();let a=null,o=null;switch(s){case"div":if(a=this.media.querySelector("iframe"),x.element(a)){if(o=kf(a.getAttribute("src")),this.provider=cv(o.toString()),this.elements.container=this.media,this.media=a,this.elements.container.className="",o.search.length){const c=["1","true"];c.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),c.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=c.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(x.empty(this.provider)||!Object.values(oi).includes(this.provider)){this.debug.error("Setup failed: Invalid provider");return}this.type=pa.video;break;case"video":case"audio":this.type=s,this.provider=oi.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:this.debug.error("Setup failed: unsupported type");return}if(this.supported=qe.check(this.type,this.provider),!this.supported.api){this.debug.error("Setup failed: no support");return}this.eventListeners=[],this.listeners=new dv(this),this.storage=new mr(this),this.media.plyr=this,x.element(this.elements.container)||(this.elements.container=pe("div"),yf(this.media,this.elements.container)),Se.migrateStyles.call(this),Se.addStyleHook.call(this),Sf.setup.call(this),this.config.debug&&xe.call(this,this.elements.container,this.config.events.join(" "),c=>{this.debug.log(`event: ${c.type}`)}),this.fullscreen=new yt(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&Se.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new Ev(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>Mt(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Qa(this))}get isHTML5(){return this.provider===oi.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===oi.youtube}get isVimeo(){return this.provider===oi.vimeo}get isVideo(){return this.type===pa.video}get isAudio(){return this.type===pa.audio}get playing(){return!!(this.ready&&!this.paused&&!this.ended)}get paused(){return!!this.media.paused}get stopped(){return!!(this.paused&&this.currentTime===0)}get ended(){return!!this.media.ended}set currentTime(i){if(!this.duration)return;const n=x.number(i)&&i>0;this.media.currentTime=n?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return x.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return!!this.media.seeking}get duration(){const i=Number.parseFloat(this.config.duration),n=(this.media||{}).duration,r=!x.number(n)||n===1/0?0:n;return i||r}set volume(i){let n=i;const r=1,s=0;x.string(n)&&(n=Number(n)),x.number(n)||(n=this.storage.get("volume")),x.number(n)||({volume:n}=this.config),n>r&&(n=r),n<s&&(n=s),this.config.volume=n,this.media.volume=n,!x.empty(i)&&this.muted&&n>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let n=i;x.boolean(n)||(n=this.storage.get("muted")),x.boolean(n)||(n=this.config.muted),this.config.muted=n,this.media.muted=n}get muted(){return!!this.media.muted}get hasAudio(){return!this.isHTML5||this.isAudio?!0:!!this.media.mozHasAudio||!!this.media.webkitAudioDecodedByteCount||!!(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let n=null;x.number(i)&&(n=i),x.number(n)||(n=this.storage.get("speed")),x.number(n)||(n=this.config.speed.selected);const{minimumSpeed:r,maximumSpeed:s}=this;n=Df(n,r,s),this.config.speed.selected=n,setTimeout(()=>{this.media&&(this.media.playbackRate=n)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const n=this.config.quality,r=this.options.quality;if(!r.length)return;let s=[!x.empty(i)&&Number(i),this.storage.get("quality"),n.selected,n.default].find(x.number),a=!0;if(!r.includes(s)){const o=vf(r,s);this.debug.warn(`Unsupported quality option: ${s}, using ${o} instead`),s=o,a=!1}n.selected=s,this.media.quality=s,a&&this.storage.set({quality:s})}get quality(){return this.media.quality}set loop(i){const n=x.boolean(i)?i:this.config.loop.active;this.config.loop.active=n,this.media.loop=n}get loop(){return!!this.media.loop}set source(i){eo.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return x.url(i)?i:this.source}set download(i){x.url(i)&&(this.config.urls.download=i,ie.setDownloadUrl.call(this))}set poster(i){if(!this.isVideo){this.debug.warn("Poster can only be set for video");return}Se.setPoster.call(this,i,!1).catch(()=>{})}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=vs(Qo.call(this));return x.array(i)?i.join(":"):i}set ratio(i){if(!this.isVideo){this.debug.warn("Aspect ratio can only be set for video");return}if(!x.string(i)||!wf(i)){this.debug.error(`Invalid aspect ratio specified (${i})`);return}this.config.ratio=vs(i),pn.call(this)}
69set autoplay(i){this.config.autoplay=x.boolean(i)?i:this.config.autoplay}get autoplay(){return!!this.config.autoplay}toggleCaptions(i){ke.toggle.call(this,i,!1)}set currentTrack(i){ke.set.call(this,i,!1),ke.setup.call(this)}get currentTrack(){const{toggled:i,currentTrack:n}=this.captions;return i?n:-1}set language(i){ke.setLanguage.call(this,i,!1)}get language(){return(ke.getCurrentTrack.call(this)||{}).language}set pip(i){if(!qe.pip)return;const n=x.boolean(i)?i:!this.pip;x.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(n?ha.active:ha.inactive),x.function(this.media.requestPictureInPicture)&&(!this.pip&&n?this.media.requestPictureInPicture():this.pip&&!n&&document.exitPictureInPicture())}get pip(){return qe.pip?x.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===ha.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new Qa(this))}static supported(i,n){return qe.check(i,n)}static loadSprite(i,n){return Cf(i,n)}static setup(i,n={}){let r=null;return x.string(i)?r=Array.from(document.querySelectorAll(i)):x.nodeList(i)?r=Array.from(i):x.array(i)&&(r=i.filter(x.element)),x.empty(r)?null:r.map(s=>new gr(s,n))}}gr.defaults=zy(Tf);const ga=new Map,xv=e=>{const i=e.target.closest(".video-block.plyr-managed:not(.video-link):not(.marketing-list-access)");if(!i)return;e.preventDefault();const n=i.querySelector(".plyr-video");if(!n)return;const r=i.querySelector(".video-info"),s=i.querySelector(".video-display");if(r&&r.classList.add("hidden"),s&&s.classList.remove("hidden"),ga.has(n)){ga.get(n).play();return}const a=new gr(n,{controls:["play-large","play","progress","current-time","mute","volume","captions","fullscreen"],captions:{active:!0,language:"auto",update:!0},youtube:{cc_load_policy:1},autoplay:!0,muted:!0});ga.set(n,a),a.on("ready",()=>{if(a.play(),a.muted=!1,a.volume=1,a.provider==="youtube"){a.elements.container.classList.add("plyr--captions-enabled");const o=a.elements.container.querySelector('[data-plyr="captions"]');if(o){let c=!0;o.classList.add("plyr__control--pressed"),o.setAttribute("aria-pressed","true"),o.addEventListener("click",l=>{l.stopPropagation(),c=!c;try{c?a.embed.loadModule("captions"):a.embed.unloadModule("captions")}catch{}o.classList.toggle("plyr__control--pressed",c),o.setAttribute("aria-pressed",String(c))})}}})};document.querySelector(".video-block.plyr-managed")&&document.addEventListener("click",xv,!1);window.Alpine=vd;vd.start();
70//# sourceMappingURL=index-CtfCBndc.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.